From e387f42aa4a2fd1cc98f72449a0f9f810af8b089 Mon Sep 17 00:00:00 2001 From: bouthilx Date: Fri, 17 Nov 2023 21:48:19 +0000 Subject: [PATCH] Compile Dashboard --- dashboard/build/asset-manifest.json | 12 +-- dashboard/build/index.html | 2 +- .../{main.56b5d8c7.css => main.2da6df03.css} | 4 +- .../build/static/css/main.2da6df03.css.map | 1 + .../build/static/css/main.56b5d8c7.css.map | 1 - dashboard/build/static/js/main.efa5e0ab.js | 3 + ...CENSE.txt => main.efa5e0ab.js.LICENSE.txt} | 73 +++++++++++-------- .../build/static/js/main.efa5e0ab.js.map | 1 + dashboard/build/static/js/main.f53d74b0.js | 3 - .../build/static/js/main.f53d74b0.js.map | 1 - 10 files changed, 56 insertions(+), 45 deletions(-) rename dashboard/build/static/css/{main.56b5d8c7.css => main.2da6df03.css} (99%) create mode 100644 dashboard/build/static/css/main.2da6df03.css.map delete mode 100644 dashboard/build/static/css/main.56b5d8c7.css.map create mode 100644 dashboard/build/static/js/main.efa5e0ab.js rename dashboard/build/static/js/{main.f53d74b0.js.LICENSE.txt => main.efa5e0ab.js.LICENSE.txt} (56%) create mode 100644 dashboard/build/static/js/main.efa5e0ab.js.map delete mode 100644 dashboard/build/static/js/main.f53d74b0.js delete mode 100644 dashboard/build/static/js/main.f53d74b0.js.map diff --git a/dashboard/build/asset-manifest.json b/dashboard/build/asset-manifest.json index 24e0f7ba6..d8c8c6e6e 100644 --- a/dashboard/build/asset-manifest.json +++ b/dashboard/build/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { - "main.css": "/static/css/main.56b5d8c7.css", - "main.js": "/static/js/main.f53d74b0.js", + "main.css": "/static/css/main.2da6df03.css", + "main.js": "/static/js/main.efa5e0ab.js", "index.html": "/index.html", - "main.56b5d8c7.css.map": "/static/css/main.56b5d8c7.css.map", - "main.f53d74b0.js.map": "/static/js/main.f53d74b0.js.map" + "main.2da6df03.css.map": "/static/css/main.2da6df03.css.map", + "main.efa5e0ab.js.map": "/static/js/main.efa5e0ab.js.map" }, "entrypoints": [ - "static/css/main.56b5d8c7.css", - "static/js/main.f53d74b0.js" + "static/css/main.2da6df03.css", + "static/js/main.efa5e0ab.js" ] } \ No newline at end of file diff --git a/dashboard/build/index.html b/dashboard/build/index.html index e1abac31b..8b41b910e 100644 --- a/dashboard/build/index.html +++ b/dashboard/build/index.html @@ -1 +1 @@ -Oríon Dashboard
\ No newline at end of file +Oríon Dashboard
\ No newline at end of file diff --git a/dashboard/build/static/css/main.56b5d8c7.css b/dashboard/build/static/css/main.2da6df03.css similarity index 99% rename from dashboard/build/static/css/main.56b5d8c7.css rename to dashboard/build/static/css/main.2da6df03.css index 714aadbe6..07145201b 100644 --- a/dashboard/build/static/css/main.56b5d8c7.css +++ b/dashboard/build/static/css/main.2da6df03.css @@ -1,4 +1,4 @@ -@media(min-width:42rem){.bx--grid--no-gutter{padding-left:1rem;padding-right:1rem}}.bx--content{padding:0}.span-link{cursor:pointer}.experiments-wrapper{flex-grow:1;overflow:auto}.experiments-list{table-layout:fixed}.experiment-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:70%}.bx--side-nav.benchmark-navbar,.bx--side-nav.experiment-navbar{z-index:7000}a.bx--header__menu-item.bx--header__menu-title[aria-label="benchmarks (selected)"],a.bx--header__menu-item.bx--header__menu-title[aria-label="experiments (selected)"]{font-weight:700}.bx--grid.object-to-grid{padding-left:1rem;padding-right:1rem}.bx--grid.object-to-grid .bx--col.object-to-grid-key{padding-right:.5rem}.bx--structured-list-row.selected-experiment-row{background-color:#d3d3d3}.bx--structured-list-row.selected-experiment-row .bx--structured-list-td{font-weight:700}.bx--data-table th.placeholder{background-color:#f4f4f4}.bx--grid.database-page .bx--col{align-items:flex-end;display:flex}.bx--grid.database-page .experiment-word{display:inline-block}.bx--grid.database-page .header-dnd{cursor:grab}.bx--grid.database-page th.no-placeholder.header-unsortable,.bx--grid.database-page th.no-placeholder.header-unsortable button{cursor:default}.bx--grid.database-page th.no-placeholder.header-unsortable:hover button.bx--table-sort{background-color:inherit}.bx--grid.database-page th.is-over button.bx--table-sort{font-style:italic;font-weight:400}.bx--table-sort.bx--table-sort--active .header-dnd .bx--table-sort__icon-unsorted{display:block}.trial-row{cursor:pointer}.modal-trial-key{text-align:right} +@media(min-width:42rem){.bx--grid--no-gutter{padding-left:1rem;padding-right:1rem}}.bx--content{padding:0}.span-link{cursor:pointer}.experiments-wrapper{flex-grow:1;overflow:auto}.experiments-list{table-layout:fixed}.experiment-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:70%}.bx--side-nav.benchmark-navbar,.bx--side-nav.experiment-navbar{z-index:7000}a.bx--header__menu-item.bx--header__menu-title[aria-label="benchmarks (selected)"],a.bx--header__menu-item.bx--header__menu-title[aria-label="experiments (selected)"]{font-weight:700}.bx--grid.object-to-grid{padding-left:1rem;padding-right:1rem}.bx--grid.object-to-grid .bx--col.object-to-grid-key{padding-right:.5rem}.bx--structured-list-row.selected-experiment-row{background-color:#d3d3d3}.bx--structured-list-row.selected-experiment-row .bx--structured-list-td{font-weight:700}.bx--data-table th.placeholder{background-color:#f4f4f4}.bx--grid.database-page .bx--col{align-items:flex-end;display:flex}.bx--grid.database-page .experiment-word{display:inline-block}.bx--grid.database-page .header-dnd{cursor:grab}.bx--grid.database-page th.no-placeholder.header-unsortable,.bx--grid.database-page th.no-placeholder.header-unsortable button{cursor:default}.bx--grid.database-page th.no-placeholder.header-unsortable:hover button.bx--table-sort{background-color:inherit}.bx--grid.database-page th.is-over button.bx--table-sort{font-style:italic;font-weight:400}.bx--table-sort.bx--table-sort--active .header-dnd .bx--table-sort__icon-unsorted{display:block}.trial-row{cursor:pointer}.modal-trial-key{text-align:right}.progress-bar.bg-running{background-color:#d3d3d3;color:#2f4f4f}.progress-bar.bg-suspended{background-color:pink}.database-container{padding-left:2.5rem;padding-right:2.5rem} /*! * Bootstrap v4.6.2 (https://getbootstrap.com/) @@ -6,4 +6,4 @@ * Copyright 2011-2022 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#da1e28;--light:#161616;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:initial;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{-ms-overflow-style:scrollbar;margin-bottom:1rem;margin-top:0;overflow:auto}figure{margin:0 0 1rem}img{border-style:none}img,svg{vertical-align:middle}svg{overflow:hidden}caption{caption-side:bottom;color:#6c757d;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:initial}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{cursor:pointer;display:list-item}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-weight:500;line-height:1.2;margin-bottom:.5rem}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem}.display-1,.display-2{font-weight:300;line-height:1.2}.display-2{font-size:5.5rem}.display-3{font-size:4.5rem}.display-3,.display-4{font-weight:300;line-height:1.2}.display-4{font-size:3.5rem}hr{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:1rem;margin-top:1rem}.small,small{font-size:.875em;font-weight:400}.mark,mark{background-color:#fcf8e3;padding:.2em}.list-inline,.list-unstyled{list-style:none;padding-left:0}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{font-size:1.25rem;margin-bottom:1rem}.blockquote-footer{color:#6c757d;display:block;font-size:.875em}.blockquote-footer:before{content:"— "}.img-fluid,.img-thumbnail{height:auto;max-width:100%}.img-thumbnail{background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;padding:.25rem}.figure{display:inline-block}.figure-img{line-height:1;margin-bottom:.5rem}.figure-caption{color:#6c757d;font-size:90%}code{word-wrap:break-word;color:#e83e8c;font-size:87.5%}a>code{color:inherit}kbd{background-color:#212529;border-radius:.2rem;color:#fff;font-size:87.5%;padding:.2rem .4rem}kbd kbd{font-size:100%;font-weight:700;padding:0}pre{color:#212529;display:block;font-size:87.5%}pre code{color:inherit;font-size:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px;width:100%}@media(min-width:576px){.container,.container-sm{max-width:540px}}@media(min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media(min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media(min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-left:-15px;margin-right:-15px}.no-gutters{margin-left:0;margin-right:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-left:0;padding-right:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{padding-left:15px;padding-right:15px;position:relative;width:100%}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-auto{flex:0 0 auto;max-width:100%;width:auto}.col-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}@media(min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-auto{flex:0 0 auto;max-width:100%;width:auto}.col-sm-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-sm-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-sm-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-sm-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-sm-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}}@media(min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-auto{flex:0 0 auto;max-width:100%;width:auto}.col-md-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-md-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-md-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-md-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-md-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}}@media(min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-auto{flex:0 0 auto;max-width:100%;width:auto}.col-lg-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-lg-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-lg-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-lg-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-lg-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}}@media(min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-auto{flex:0 0 auto;max-width:100%;width:auto}.col-xl-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-xl-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-xl-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-xl-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-xl-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}}.table{color:#212529;margin-bottom:1rem;width:100%}.table td,.table th{border-top:1px solid #dee2e6;padding:.75rem;vertical-align:top}.table thead th{border-bottom:2px solid #dee2e6;vertical-align:bottom}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{background-color:rgba(0,0,0,.075);color:#212529}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover,.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover,.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover,.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover,.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover,.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c0c3}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ec8a8f}.table-hover .table-danger:hover,.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f2aaae}.table-light,.table-light>td,.table-light>th{background-color:#bebebe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#868686}.table-hover .table-light:hover,.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#b1b1b1}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover,.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th,.table-hover .table-active:hover,.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{background-color:#343a40;border-color:#454d55;color:#fff}.table .thead-light th{background-color:#e9ecef;border-color:#dee2e6;color:#495057}.table-dark{background-color:#343a40;color:#fff}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:hsla(0,0%,100%,.05)}.table-dark.table-hover tbody tr:hover{background-color:hsla(0,0%,100%,.075);color:#fff}@media(max-width:575.98px){.table-responsive-sm{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto;width:100%}.table-responsive-sm>.table-bordered{border:0}}@media(max-width:767.98px){.table-responsive-md{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto;width:100%}.table-responsive-md>.table-bordered{border:0}}@media(max-width:991.98px){.table-responsive-lg{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto;width:100%}.table-responsive-lg>.table-bordered{border:0}}@media(max-width:1199.98px){.table-responsive-xl{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto;width:100%}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto;width:100%}.table-responsive>.table-bordered{border:0}.form-control{background-clip:padding-box;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem;color:#495057;display:block;font-size:1rem;font-weight:400;height:calc(1.5em + .75rem + 2px);line-height:1.5;padding:.375rem .75rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}@media(prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{background-color:#fff;border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25);color:#495057;outline:0}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{-webkit-appearance:none;appearance:none}select.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}select.form-control:focus::-ms-value{background-color:#fff;color:#495057}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{font-size:inherit;line-height:1.5;margin-bottom:0;padding-bottom:calc(.375rem + 1px);padding-top:calc(.375rem + 1px)}.col-form-label-lg{font-size:1.25rem;line-height:1.5;padding-bottom:calc(.5rem + 1px);padding-top:calc(.5rem + 1px)}.col-form-label-sm{font-size:.875rem;line-height:1.5;padding-bottom:calc(.25rem + 1px);padding-top:calc(.25rem + 1px)}.form-control-plaintext{background-color:transparent;border:solid transparent;border-width:1px 0;color:#212529;display:block;font-size:1rem;line-height:1.5;margin-bottom:0;padding:.375rem 0;width:100%}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-left:0;padding-right:0}.form-control-sm{border-radius:.2rem;font-size:.875rem;height:calc(1.5em + .5rem + 2px);line-height:1.5;padding:.25rem .5rem}.form-control-lg{border-radius:.3rem;font-size:1.25rem;height:calc(1.5em + 1rem + 2px);line-height:1.5;padding:.5rem 1rem}select.form-control[multiple],select.form-control[size],textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-left:-5px;margin-right:-5px}.form-row>.col,.form-row>[class*=col-]{padding-left:5px;padding-right:5px}.form-check{display:block;padding-left:1.25rem;position:relative}.form-check-input{margin-left:-1.25rem;margin-top:.3rem;position:absolute}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{align-items:center;display:inline-flex;margin-right:.75rem;padding-left:0}.form-check-inline .form-check-input{margin-left:0;margin-right:.3125rem;margin-top:0;position:static}.valid-feedback{color:#28a745;display:none;font-size:.875em;margin-top:.25rem;width:100%}.valid-tooltip{background-color:rgba(40,167,69,.9);border-radius:.25rem;color:#fff;display:none;font-size:.875rem;left:0;line-height:1.5;margin-top:.1rem;max-width:100%;padding:.25rem .5rem;position:absolute;top:100%;z-index:5}.form-row>.col>.valid-tooltip,.form-row>[class*=col-]>.valid-tooltip{left:5px}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2328a745' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");background-position:right calc(.375em + .1875rem) center;background-repeat:no-repeat;background-size:calc(.75em + .375rem) calc(.75em + .375rem);border-color:#28a745;padding-right:calc(1.5em + .75rem)!important}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.was-validated select.form-control:valid,select.form-control.is-valid{background-position:right 1.5rem center;padding-right:3rem!important}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem);padding-right:calc(1.5em + .75rem)}.custom-select.is-valid,.was-validated .custom-select:valid{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0 0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") right .75rem center/8px 10px no-repeat,#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2328a745' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E") center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem) no-repeat;border-color:#28a745;padding-right:calc(.75em + 2.3125rem)!important}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{background-color:#34ce57;border-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{color:#da1e28;display:none;font-size:.875em;margin-top:.25rem;width:100%}.invalid-tooltip{background-color:rgba(218,30,40,.9);border-radius:.25rem;color:#fff;display:none;font-size:.875rem;left:0;line-height:1.5;margin-top:.1rem;max-width:100%;padding:.25rem .5rem;position:absolute;top:100%;z-index:5}.form-row>.col>.invalid-tooltip,.form-row>[class*=col-]>.invalid-tooltip{left:5px}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23da1e28'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23da1e28' stroke='none'/%3E%3C/svg%3E");background-position:right calc(.375em + .1875rem) center;background-repeat:no-repeat;background-size:calc(.75em + .375rem) calc(.75em + .375rem);border-color:#da1e28;padding-right:calc(1.5em + .75rem)!important}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#da1e28;box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.was-validated select.form-control:invalid,select.form-control.is-invalid{background-position:right 1.5rem center;padding-right:3rem!important}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem);padding-right:calc(1.5em + .75rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0 0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") right .75rem center/8px 10px no-repeat,#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23da1e28'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23da1e28' stroke='none'/%3E%3C/svg%3E") center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem) no-repeat;border-color:#da1e28;padding-right:calc(.75em + 2.3125rem)!important}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#da1e28;box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#da1e28}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#da1e28}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#da1e28}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{background-color:#e5464e;border-color:#e5464e}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before{border-color:#da1e28}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#da1e28}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#da1e28;box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.form-inline{align-items:center;display:flex;flex-flow:row wrap}.form-inline .form-check{width:100%}@media(min-width:576px){.form-inline label{justify-content:center}.form-inline .form-group,.form-inline label{align-items:center;display:flex;margin-bottom:0}.form-inline .form-group{flex:0 0 auto;flex-flow:row wrap}.form-inline .form-control{display:inline-block;vertical-align:middle;width:auto}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{align-items:center;display:flex;justify-content:center;padding-left:0;width:auto}.form-inline .form-check-input{flex-shrink:0;margin-left:0;margin-right:.25rem;margin-top:0;position:relative}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{background-color:transparent;border:1px solid transparent;border-radius:.25rem;color:#212529;display:inline-block;font-size:1rem;font-weight:400;line-height:1.5;padding:.375rem .75rem;text-align:center;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-user-select:none;user-select:none;vertical-align:middle}@media(prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.25);outline:0}.btn.disabled,.btn:disabled{opacity:.65}.btn:not(:disabled):not(.disabled){cursor:pointer}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{background-color:#007bff;border-color:#007bff;color:#fff}.btn-primary.focus,.btn-primary:focus,.btn-primary:hover{background-color:#0069d9;border-color:#0062cc;color:#fff}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-primary.disabled,.btn-primary:disabled{background-color:#007bff;border-color:#007bff;color:#fff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{background-color:#0062cc;border-color:#005cbf;color:#fff}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary{background-color:#6c757d;border-color:#6c757d;color:#fff}.btn-secondary.focus,.btn-secondary:focus,.btn-secondary:hover{background-color:#5a6268;border-color:#545b62;color:#fff}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem hsla(208,6%,54%,.5)}.btn-secondary.disabled,.btn-secondary:disabled{background-color:#6c757d;border-color:#6c757d;color:#fff}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{background-color:#545b62;border-color:#4e555b;color:#fff}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem hsla(208,6%,54%,.5)}.btn-success{background-color:#28a745;border-color:#28a745;color:#fff}.btn-success.focus,.btn-success:focus,.btn-success:hover{background-color:#218838;border-color:#1e7e34;color:#fff}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-success.disabled,.btn-success:disabled{background-color:#28a745;border-color:#28a745;color:#fff}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{background-color:#1e7e34;border-color:#1c7430;color:#fff}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info{background-color:#17a2b8;border-color:#17a2b8;color:#fff}.btn-info.focus,.btn-info:focus,.btn-info:hover{background-color:#138496;border-color:#117a8b;color:#fff}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-info.disabled,.btn-info:disabled{background-color:#17a2b8;border-color:#17a2b8;color:#fff}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{background-color:#117a8b;border-color:#10707f;color:#fff}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning{background-color:#ffc107;border-color:#ffc107;color:#212529}.btn-warning.focus,.btn-warning:focus,.btn-warning:hover{background-color:#e0a800;border-color:#d39e00;color:#212529}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-warning.disabled,.btn-warning:disabled{background-color:#ffc107;border-color:#ffc107;color:#212529}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{background-color:#d39e00;border-color:#c69500;color:#212529}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger{background-color:#da1e28;border-color:#da1e28;color:#fff}.btn-danger.focus,.btn-danger:focus,.btn-danger:hover{background-color:#b81922;border-color:#ad1820;color:#fff}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(224,64,72,.5)}.btn-danger.disabled,.btn-danger:disabled{background-color:#da1e28;border-color:#da1e28;color:#fff}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{background-color:#ad1820;border-color:#a2161e;color:#fff}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(224,64,72,.5)}.btn-light{background-color:#161616;border-color:#161616;color:#fff}.btn-light.focus,.btn-light:focus,.btn-light:hover{background-color:#030303;border-color:#000;color:#fff}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(57,57,57,.5)}.btn-light.disabled,.btn-light:disabled{background-color:#161616;border-color:#161616;color:#fff}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{background-color:#000;border-color:#000;color:#fff}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(57,57,57,.5)}.btn-dark{background-color:#343a40;border-color:#343a40;color:#fff}.btn-dark.focus,.btn-dark:focus,.btn-dark:hover{background-color:#23272b;border-color:#1d2124;color:#fff}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{background-color:#343a40;border-color:#343a40;color:#fff}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{background-color:#1d2124;border-color:#171a1d;color:#fff}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{border-color:#007bff;color:#007bff}.btn-outline-primary:hover{background-color:#007bff;border-color:#007bff;color:#fff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{background-color:transparent;color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{background-color:#007bff;border-color:#007bff;color:#fff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{border-color:#6c757d;color:#6c757d}.btn-outline-secondary:hover{background-color:#6c757d;border-color:#6c757d;color:#fff}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem hsla(208,7%,46%,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{background-color:transparent;color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{background-color:#6c757d;border-color:#6c757d;color:#fff}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem hsla(208,7%,46%,.5)}.btn-outline-success{border-color:#28a745;color:#28a745}.btn-outline-success:hover{background-color:#28a745;border-color:#28a745;color:#fff}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{background-color:transparent;color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{background-color:#28a745;border-color:#28a745;color:#fff}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{border-color:#17a2b8;color:#17a2b8}.btn-outline-info:hover{background-color:#17a2b8;border-color:#17a2b8;color:#fff}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{background-color:transparent;color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{background-color:#17a2b8;border-color:#17a2b8;color:#fff}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{border-color:#ffc107;color:#ffc107}.btn-outline-warning:hover{background-color:#ffc107;border-color:#ffc107;color:#212529}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{background-color:transparent;color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{background-color:#ffc107;border-color:#ffc107;color:#212529}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{border-color:#da1e28;color:#da1e28}.btn-outline-danger:hover{background-color:#da1e28;border-color:#da1e28;color:#fff}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(218,30,40,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{background-color:transparent;color:#da1e28}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{background-color:#da1e28;border-color:#da1e28;color:#fff}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(218,30,40,.5)}.btn-outline-light{border-color:#161616;color:#161616}.btn-outline-light:hover{background-color:#161616;border-color:#161616;color:#fff}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem hsla(0,0%,9%,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{background-color:transparent;color:#161616}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{background-color:#161616;border-color:#161616;color:#fff}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem hsla(0,0%,9%,.5)}.btn-outline-dark{border-color:#343a40;color:#343a40}.btn-outline-dark:hover{background-color:#343a40;border-color:#343a40;color:#fff}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{background-color:transparent;color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{background-color:#343a40;border-color:#343a40;color:#fff}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{color:#007bff;font-weight:400;text-decoration:none}.btn-link:hover{color:#0056b3}.btn-link.focus,.btn-link:focus,.btn-link:hover{text-decoration:underline}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{border-radius:.3rem;font-size:1.25rem;line-height:1.5;padding:.5rem 1rem}.btn-group-sm>.btn,.btn-sm{border-radius:.2rem;font-size:.875rem;line-height:1.5;padding:.25rem .5rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;position:relative;transition:height .35s ease}@media(prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.width{height:auto;transition:width .35s ease;width:0}@media(prefers-reduced-motion:reduce){.collapsing.width{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{border-bottom:0;border-left:.3em solid transparent;border-right:.3em solid transparent;border-top:.3em solid;content:"";display:inline-block;margin-left:.255em;vertical-align:.255em}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.15);border-radius:.25rem;color:#212529;display:none;float:left;font-size:1rem;left:0;list-style:none;margin:.125rem 0 0;min-width:10rem;padding:.5rem 0;position:absolute;text-align:left;top:100%;z-index:1000}.dropdown-menu-left{left:0;right:auto}.dropdown-menu-right{left:auto;right:0}@media(min-width:576px){.dropdown-menu-sm-left{left:0;right:auto}.dropdown-menu-sm-right{left:auto;right:0}}@media(min-width:768px){.dropdown-menu-md-left{left:0;right:auto}.dropdown-menu-md-right{left:auto;right:0}}@media(min-width:992px){.dropdown-menu-lg-left{left:0;right:auto}.dropdown-menu-lg-right{left:auto;right:0}}@media(min-width:1200px){.dropdown-menu-xl-left{left:0;right:auto}.dropdown-menu-xl-right{left:auto;right:0}}.dropup .dropdown-menu{bottom:100%;margin-bottom:.125rem;margin-top:0;top:auto}.dropup .dropdown-toggle:after{border-bottom:.3em solid;border-left:.3em solid transparent;border-right:.3em solid transparent;border-top:0;content:"";display:inline-block;margin-left:.255em;vertical-align:.255em}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{left:100%;margin-left:.125rem;margin-top:0;right:auto;top:0}.dropright .dropdown-toggle:after{border-bottom:.3em solid transparent;border-left:.3em solid;border-right:0;border-top:.3em solid transparent;content:"";display:inline-block;margin-left:.255em;vertical-align:.255em}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{left:auto;margin-right:.125rem;margin-top:0;right:100%;top:0}.dropleft .dropdown-toggle:after{content:"";display:inline-block;display:none;margin-left:.255em;vertical-align:.255em}.dropleft .dropdown-toggle:before{border-bottom:.3em solid transparent;border-right:.3em solid;border-top:.3em solid transparent;content:"";display:inline-block;margin-right:.255em;vertical-align:.255em}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{bottom:auto;right:auto}.dropdown-divider{border-top:1px solid #e9ecef;height:0;margin:.5rem 0;overflow:hidden}.dropdown-item{background-color:transparent;border:0;clear:both;color:#212529;display:block;font-weight:400;padding:.25rem 1.5rem;text-align:inherit;white-space:nowrap;width:100%}.dropdown-item:focus,.dropdown-item:hover{background-color:#e9ecef;color:#16181b;text-decoration:none}.dropdown-item.active,.dropdown-item:active{background-color:#007bff;color:#fff;text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{background-color:transparent;color:#adb5bd;pointer-events:none}.dropdown-menu.show{display:block}.dropdown-header{color:#6c757d;display:block;font-size:.875rem;margin-bottom:0;padding:.5rem 1.5rem;white-space:nowrap}.dropdown-item-text{color:#212529;display:block;padding:.25rem 1.5rem}.btn-group,.btn-group-vertical{display:inline-flex;position:relative;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{flex:1 1 auto;position:relative}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.dropdown-toggle-split{padding-left:.5625rem;padding-right:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-left:.375rem;padding-right:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-left:.75rem;padding-right:.75rem}.btn-group-vertical{align-items:flex-start;flex-direction:column;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{clip:rect(0,0,0,0);pointer-events:none;position:absolute}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;position:relative;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{flex:1 1 auto;margin-bottom:0;min-width:0;position:relative;width:1%}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group>.custom-file{align-items:center;display:flex}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-bottom-right-radius:0;border-top-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-bottom-left-radius:0;border-top-left-radius:0}.input-group.has-validation>.custom-file:nth-last-child(n+3) .custom-file-label,.input-group.has-validation>.custom-file:nth-last-child(n+3) .custom-file-label:after,.input-group.has-validation>.custom-select:nth-last-child(n+3),.input-group.has-validation>.form-control:nth-last-child(n+3),.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label:after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{align-items:center;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem;color:#495057;display:flex;font-size:1rem;font-weight:400;line-height:1.5;margin-bottom:0;padding:.375rem .75rem;text-align:center;white-space:nowrap}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{border-radius:.3rem;font-size:1.25rem;line-height:1.5;padding:.5rem 1rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{border-radius:.2rem;font-size:.875rem;line-height:1.5;padding:.25rem .5rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group.has-validation>.input-group-append:nth-last-child(n+3)>.btn,.input-group.has-validation>.input-group-append:nth-last-child(n+3)>.input-group-text,.input-group:not(.has-validation)>.input-group-append:not(:last-child)>.btn,.input-group:not(.has-validation)>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-bottom-right-radius:0;border-top-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-bottom-left-radius:0;border-top-left-radius:0}.custom-control{display:block;min-height:1.5rem;padding-left:1.5rem;position:relative;print-color-adjust:exact;z-index:1}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{height:1.25rem;left:0;opacity:0;position:absolute;width:1rem;z-index:-1}.custom-control-input:checked~.custom-control-label:before{background-color:#007bff;border-color:#007bff;color:#fff}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label:before{background-color:#b3d7ff;border-color:#b3d7ff;color:#fff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{margin-bottom:0;position:relative;vertical-align:top}.custom-control-label:before{background-color:#fff;border:1px solid #adb5bd;pointer-events:none}.custom-control-label:after,.custom-control-label:before{content:"";display:block;height:1rem;left:-1.5rem;position:absolute;top:.25rem;width:1rem}.custom-control-label:after{background:50%/50% 50% no-repeat}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%23fff' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{background-color:#007bff;border-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{border-radius:.5rem;left:-2.25rem;pointer-events:all;width:1.75rem}.custom-switch .custom-control-label:after{background-color:#adb5bd;border-radius:.5rem;height:calc(1rem - 4px);left:calc(-2.25rem + 2px);top:calc(.25rem + 2px);transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;width:calc(1rem - 4px)}@media(prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;-webkit-transform:translateX(.75rem);transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-select{-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0 0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") right .75rem center/8px 10px no-repeat;border:1px solid #ced4da;border-radius:.25rem;color:#495057;display:inline-block;font-size:1rem;font-weight:400;height:calc(1.5em + .75rem + 2px);line-height:1.5;padding:.375rem 1.75rem .375rem .75rem;vertical-align:middle;width:100%}.custom-select:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25);outline:0}.custom-select:focus::-ms-value{background-color:#fff;color:#495057}.custom-select[multiple],.custom-select[size]:not([size="1"]){background-image:none;height:auto;padding-right:.75rem}.custom-select:disabled{background-color:#e9ecef;color:#6c757d}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{font-size:.875rem;height:calc(1.5em + .5rem + 2px);padding-bottom:.25rem;padding-left:.5rem;padding-top:.25rem}.custom-select-lg{font-size:1.25rem;height:calc(1.5em + 1rem + 2px);padding-bottom:.5rem;padding-left:1rem;padding-top:.5rem}.custom-file{display:inline-block;margin-bottom:0}.custom-file,.custom-file-input{height:calc(1.5em + .75rem + 2px);position:relative;width:100%}.custom-file-input{margin:0;opacity:0;overflow:hidden;z-index:2}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{background-color:#fff;border:1px solid #ced4da;border-radius:.25rem;font-weight:400;height:calc(1.5em + .75rem + 2px);left:0;overflow:hidden;z-index:1}.custom-file-label,.custom-file-label:after{color:#495057;line-height:1.5;padding:.375rem .75rem;position:absolute;right:0;top:0}.custom-file-label:after{background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0;bottom:0;content:"Browse";display:block;height:calc(1.5em + .75rem);z-index:3}.custom-range{-webkit-appearance:none;appearance:none;background-color:transparent;height:1.4rem;padding:0;width:100%}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:#007bff;border:0;border-radius:1rem;height:1rem;margin-top:-.25rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:1rem}@media(prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{background-color:#dee2e6;border-color:transparent;border-radius:1rem;color:transparent;cursor:pointer;height:.5rem;width:100%}.custom-range::-moz-range-thumb{appearance:none;background-color:#007bff;border:0;border-radius:1rem;height:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:1rem}@media(prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{background-color:#dee2e6;border-color:transparent;border-radius:1rem;color:transparent;cursor:pointer;height:.5rem;width:100%}.custom-range::-ms-thumb{appearance:none;background-color:#007bff;border:0;border-radius:1rem;height:1rem;margin-left:.2rem;margin-right:.2rem;margin-top:0;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:1rem}@media(prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{background-color:transparent;border-color:transparent;border-width:.5rem;color:transparent;cursor:pointer;height:.5rem;width:100%}.custom-range::-ms-fill-lower,.custom-range::-ms-fill-upper{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;list-style:none;margin-bottom:0;padding-left:0}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;cursor:default;pointer-events:none}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-link{background-color:transparent;border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem;margin-bottom:-1px}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6;isolation:isolate}.nav-tabs .nav-link.disabled{background-color:transparent;border-color:transparent;color:#6c757d}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{background-color:#fff;border-color:#dee2e6 #dee2e6 #fff;color:#495057}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}.nav-pills .nav-link{background:none;border:0;border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{background-color:#007bff;color:#fff}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{padding:.5rem 1rem;position:relative}.navbar,.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.navbar-brand{display:inline-block;font-size:1.25rem;line-height:inherit;margin-right:1rem;padding-bottom:.3125rem;padding-top:.3125rem;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;list-style:none;margin-bottom:0;padding-left:0}.navbar-nav .nav-link{padding-left:0;padding-right:0}.navbar-nav .dropdown-menu{float:none;position:static}.navbar-text{display:inline-block;padding-bottom:.5rem;padding-top:.5rem}.navbar-collapse{align-items:center;flex-basis:100%;flex-grow:1}.navbar-toggler{background-color:transparent;border:1px solid transparent;border-radius:.25rem;font-size:1.25rem;line-height:1;padding:.25rem .75rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{background:50%/100% 100% no-repeat;content:"";display:inline-block;height:1.5em;vertical-align:middle;width:1.5em}.navbar-nav-scroll{max-height:75vh;overflow-y:auto}@media(max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-left:0;padding-right:0}}@media(min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-left:.5rem;padding-right:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media(max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-left:0;padding-right:0}}@media(min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-left:.5rem;padding-right:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media(max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-left:0;padding-right:0}}@media(min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-left:.5rem;padding-right:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media(max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-left:0;padding-right:0}}@media(min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-left:.5rem;padding-right:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-left:0;padding-right:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-left:.5rem;padding-right:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand,.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{border-color:rgba(0,0,0,.1);color:rgba(0,0,0,.5)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a,.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand,.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:hsla(0,0%,100%,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:hsla(0,0%,100%,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{border-color:hsla(0,0%,100%,.1);color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-text a,.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{word-wrap:break-word;background-clip:initial;background-color:#fff;border:1px solid rgba(0,0,0,.125);border-radius:.25rem;display:flex;flex-direction:column;min-width:0;position:relative}.card>hr{margin-left:0;margin-right:0}.card>.list-group{border-bottom:inherit;border-top:inherit}.card>.list-group:first-child{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px);border-top-width:0}.card>.list-group:last-child{border-bottom-left-radius:calc(.25rem - 1px);border-bottom-right-radius:calc(.25rem - 1px);border-bottom-width:0}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem}.card-subtitle,.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125);margin-bottom:0;padding:.75rem 1.25rem}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-footer{background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125);padding:.75rem 1.25rem}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{border-bottom:0;margin-bottom:-.75rem}.card-header-pills,.card-header-tabs{margin-left:-.625rem;margin-right:-.625rem}.card-img-overlay{border-radius:calc(.25rem - 1px);bottom:0;left:0;padding:1.25rem;position:absolute;right:0;top:0}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-left-radius:calc(.25rem - 1px);border-bottom-right-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media(min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-left:-15px;margin-right:-15px}.card-deck .card{flex:1 0;margin-bottom:0;margin-left:15px;margin-right:15px}}.card-group>.card{margin-bottom:15px}@media(min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0;margin-bottom:0}.card-group>.card+.card{border-left:0;margin-left:0}.card-group>.card:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media(min-width:576px){.card-columns{-webkit-column-count:3;column-count:3;-webkit-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion{overflow-anchor:none}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{background-color:#e9ecef;border-radius:.25rem;display:flex;flex-wrap:wrap;list-style:none;margin-bottom:1rem;padding:.75rem 1rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{color:#6c757d;content:"/";float:left;padding-right:.5rem}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline;text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{border-radius:.25rem;display:flex;list-style:none;padding-left:0}.page-link{background-color:#fff;border:1px solid #dee2e6;color:#007bff;display:block;line-height:1.25;margin-left:-1px;padding:.5rem .75rem;position:relative}.page-link:hover{background-color:#e9ecef;border-color:#dee2e6;color:#0056b3;text-decoration:none;z-index:2}.page-link:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.25);outline:0;z-index:3}.page-item:first-child .page-link{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem;margin-left:0}.page-item:last-child .page-link{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.page-item.active .page-link{background-color:#007bff;border-color:#007bff;color:#fff;z-index:3}.page-item.disabled .page-link{background-color:#fff;border-color:#dee2e6;color:#6c757d;cursor:auto;pointer-events:none}.pagination-lg .page-link{font-size:1.25rem;line-height:1.5;padding:.75rem 1.5rem}.pagination-lg .page-item:first-child .page-link{border-bottom-left-radius:.3rem;border-top-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-bottom-right-radius:.3rem;border-top-right-radius:.3rem}.pagination-sm .page-link{font-size:.875rem;line-height:1.5;padding:.25rem .5rem}.pagination-sm .page-item:first-child .page-link{border-bottom-left-radius:.2rem;border-top-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-bottom-right-radius:.2rem;border-top-right-radius:.2rem}.badge{border-radius:.25rem;display:inline-block;font-size:75%;font-weight:700;line-height:1;padding:.25em .4em;text-align:center;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;vertical-align:initial;white-space:nowrap}@media(prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{border-radius:10rem;padding-left:.6em;padding-right:.6em}.badge-primary{background-color:#007bff;color:#fff}a.badge-primary:focus,a.badge-primary:hover{background-color:#0062cc;color:#fff}a.badge-primary.focus,a.badge-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5);outline:0}.badge-secondary{background-color:#6c757d;color:#fff}a.badge-secondary:focus,a.badge-secondary:hover{background-color:#545b62;color:#fff}a.badge-secondary.focus,a.badge-secondary:focus{box-shadow:0 0 0 .2rem hsla(208,7%,46%,.5);outline:0}.badge-success{background-color:#28a745;color:#fff}a.badge-success:focus,a.badge-success:hover{background-color:#1e7e34;color:#fff}a.badge-success.focus,a.badge-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5);outline:0}.badge-info{background-color:#17a2b8;color:#fff}a.badge-info:focus,a.badge-info:hover{background-color:#117a8b;color:#fff}a.badge-info.focus,a.badge-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5);outline:0}.badge-warning{background-color:#ffc107;color:#212529}a.badge-warning:focus,a.badge-warning:hover{background-color:#d39e00;color:#212529}a.badge-warning.focus,a.badge-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5);outline:0}.badge-danger{background-color:#da1e28;color:#fff}a.badge-danger:focus,a.badge-danger:hover{background-color:#ad1820;color:#fff}a.badge-danger.focus,a.badge-danger:focus{box-shadow:0 0 0 .2rem rgba(218,30,40,.5);outline:0}.badge-light{background-color:#161616;color:#fff}a.badge-light:focus,a.badge-light:hover{background-color:#000;color:#fff}a.badge-light.focus,a.badge-light:focus{box-shadow:0 0 0 .2rem hsla(0,0%,9%,.5);outline:0}.badge-dark{background-color:#343a40;color:#fff}a.badge-dark:focus,a.badge-dark:hover{background-color:#1d2124;color:#fff}a.badge-dark.focus,a.badge-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5);outline:0}.jumbotron{background-color:#e9ecef;border-radius:.3rem;margin-bottom:2rem;padding:2rem 1rem}@media(min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{border-radius:0;padding-left:0;padding-right:0}.alert{border:1px solid transparent;border-radius:.25rem;margin-bottom:1rem;padding:.75rem 1.25rem;position:relative}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{color:inherit;padding:.75rem 1.25rem;position:absolute;right:0;top:0;z-index:2}.alert-primary{background-color:#cce5ff;border-color:#b8daff;color:#004085}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{background-color:#e2e3e5;border-color:#d6d8db;color:#383d41}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{background-color:#d4edda;border-color:#c3e6cb;color:#155724}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{background-color:#d1ecf1;border-color:#bee5eb;color:#0c5460}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{background-color:#fff3cd;border-color:#ffeeba;color:#856404}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{background-color:#f8d2d4;border-color:#f5c0c3;color:#711015}.alert-danger hr{border-top-color:#f2aaae}.alert-danger .alert-link{color:#440a0d}.alert-light{background-color:#d0d0d0;border-color:#bebebe;color:#0b0b0b}.alert-light hr{border-top-color:#b1b1b1}.alert-light .alert-link{color:#000}.alert-dark{background-color:#d6d8d9;border-color:#c6c8ca;color:#1b1e21}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{background-color:#e9ecef;border-radius:.25rem;font-size:.75rem;height:1rem;line-height:0}.progress,.progress-bar{display:flex;overflow:hidden}.progress-bar{background-color:#007bff;color:#fff;flex-direction:column;justify-content:center;text-align:center;transition:width .6s ease;white-space:nowrap}@media(prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media(prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{align-items:flex-start;display:flex}.media-body{flex:1 1}.list-group{border-radius:.25rem;display:flex;flex-direction:column;margin-bottom:0;padding-left:0}.list-group-item-action{color:#495057;text-align:inherit;width:100%}.list-group-item-action:focus,.list-group-item-action:hover{background-color:#161616;color:#495057;text-decoration:none;z-index:1}.list-group-item-action:active{background-color:#e9ecef;color:#212529}.list-group-item{background-color:#fff;border:1px solid rgba(0,0,0,.125);display:block;padding:.75rem 1.25rem;position:relative}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{background-color:#fff;color:#6c757d;pointer-events:none}.list-group-item.active{background-color:#007bff;border-color:#007bff;color:#fff;z-index:2}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{border-top-width:1px;margin-top:-1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child{border-bottom-left-radius:0;border-top-right-radius:.25rem}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-left-width:0;border-top-width:1px}.list-group-horizontal>.list-group-item+.list-group-item.active{border-left-width:1px;margin-left:-1px}@media(min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child{border-bottom-left-radius:0;border-top-right-radius:.25rem}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-left-width:0;border-top-width:1px}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{border-left-width:1px;margin-left:-1px}}@media(min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child{border-bottom-left-radius:0;border-top-right-radius:.25rem}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-left-width:0;border-top-width:1px}.list-group-horizontal-md>.list-group-item+.list-group-item.active{border-left-width:1px;margin-left:-1px}}@media(min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child{border-bottom-left-radius:0;border-top-right-radius:.25rem}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-left-width:0;border-top-width:1px}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{border-left-width:1px;margin-left:-1px}}@media(min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child{border-bottom-left-radius:0;border-top-right-radius:.25rem}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-left-width:0;border-top-width:1px}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{border-left-width:1px;margin-left:-1px}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 1px}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{background-color:#b8daff;color:#004085}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{background-color:#9fcdff;color:#004085}.list-group-item-primary.list-group-item-action.active{background-color:#004085;border-color:#004085;color:#fff}.list-group-item-secondary{background-color:#d6d8db;color:#383d41}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{background-color:#c8cbcf;color:#383d41}.list-group-item-secondary.list-group-item-action.active{background-color:#383d41;border-color:#383d41;color:#fff}.list-group-item-success{background-color:#c3e6cb;color:#155724}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{background-color:#b1dfbb;color:#155724}.list-group-item-success.list-group-item-action.active{background-color:#155724;border-color:#155724;color:#fff}.list-group-item-info{background-color:#bee5eb;color:#0c5460}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{background-color:#abdde5;color:#0c5460}.list-group-item-info.list-group-item-action.active{background-color:#0c5460;border-color:#0c5460;color:#fff}.list-group-item-warning{background-color:#ffeeba;color:#856404}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{background-color:#ffe8a1;color:#856404}.list-group-item-warning.list-group-item-action.active{background-color:#856404;border-color:#856404;color:#fff}.list-group-item-danger{background-color:#f5c0c3;color:#711015}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{background-color:#f2aaae;color:#711015}.list-group-item-danger.list-group-item-action.active{background-color:#711015;border-color:#711015;color:#fff}.list-group-item-light{background-color:#bebebe;color:#0b0b0b}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{background-color:#b1b1b1;color:#0b0b0b}.list-group-item-light.list-group-item-action.active{background-color:#0b0b0b;border-color:#0b0b0b;color:#fff}.list-group-item-dark{background-color:#c6c8ca;color:#1b1e21}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{background-color:#b9bbbe;color:#1b1e21}.list-group-item-dark.list-group-item-action.active{background-color:#1b1e21;border-color:#1b1e21;color:#fff}.close{color:#000;float:right;font-size:1.5rem;font-weight:700;line-height:1;opacity:.5;text-shadow:0 1px 0 #fff}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{background-color:transparent;border:0;padding:0}a.close.disabled{pointer-events:none}.toast{background-clip:padding-box;background-color:hsla(0,0%,100%,.85);border:1px solid rgba(0,0,0,.1);border-radius:.25rem;box-shadow:0 .25rem .75rem rgba(0,0,0,.1);flex-basis:350px;font-size:.875rem;max-width:350px;opacity:0}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{align-items:center;background-clip:padding-box;background-color:hsla(0,0%,100%,.85);border-bottom:1px solid rgba(0,0,0,.05);border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px);color:#6c757d;display:flex;padding:.25rem .75rem}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{display:none;height:100%;left:0;outline:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:1050}.modal-dialog{margin:.5rem;pointer-events:none;position:relative;width:auto}.modal.fade .modal-dialog{-webkit-transform:translateY(-50px);transform:translateY(-50px);transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}@media(prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:none;transform:none}.modal.modal-static .modal-dialog{-webkit-transform:scale(1.02);transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{align-items:center;display:flex;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{content:"";display:block;height:calc(100vh - 1rem);height:-webkit-min-content;height:min-content}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;height:100%;justify-content:center}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;display:flex;flex-direction:column;outline:0;pointer-events:auto;position:relative;width:100%}.modal-backdrop{background-color:#000;height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1040}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{align-items:flex-start;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px);display:flex;justify-content:space-between;padding:1rem}.modal-header .close{margin:-1rem -1rem -1rem auto;padding:1rem}.modal-title{line-height:1.5;margin-bottom:0}.modal-body{flex:1 1 auto;padding:1rem;position:relative}.modal-footer{align-items:center;border-bottom-left-radius:calc(.3rem - 1px);border-bottom-right-radius:calc(.3rem - 1px);border-top:1px solid #dee2e6;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:.75rem}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{height:50px;overflow:scroll;position:absolute;top:-9999px;width:50px}@media(min-width:576px){.modal-dialog{margin:1.75rem auto;max-width:500px}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem);height:-webkit-min-content;height:min-content}.modal-sm{max-width:300px}}@media(min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media(min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{word-wrap:break-word;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.875rem;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;margin:0;opacity:0;position:absolute;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;z-index:1070}.tooltip.show{opacity:.9}.tooltip .arrow{display:block;height:.4rem;position:absolute;width:.8rem}.tooltip .arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{border-top-color:#000;border-width:.4rem .4rem 0;top:0}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{height:.8rem;left:0;width:.4rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{border-right-color:#000;border-width:.4rem .4rem .4rem 0;right:0}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{border-bottom-color:#000;border-width:0 .4rem .4rem;bottom:0}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{height:.8rem;right:0;width:.4rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{border-left-color:#000;border-width:.4rem 0 .4rem .4rem;left:0}.tooltip-inner{background-color:#000;border-radius:.25rem;color:#fff;max-width:200px;padding:.25rem .5rem;text-align:center}.popover{word-wrap:break-word;background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.875rem;font-style:normal;font-weight:400;left:0;letter-spacing:normal;line-break:auto;line-height:1.5;max-width:276px;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;top:0;white-space:normal;word-break:normal;word-spacing:normal;z-index:1060}.popover,.popover .arrow{display:block;position:absolute}.popover .arrow{height:.5rem;margin:0 .3rem;width:1rem}.popover .arrow:after,.popover .arrow:before{border-color:transparent;border-style:solid;content:"";display:block;position:absolute}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{border-top-color:rgba(0,0,0,.25);border-width:.5rem .5rem 0;bottom:0}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{border-top-color:#fff;border-width:.5rem .5rem 0;bottom:1px}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{height:1rem;left:calc(-.5rem - 1px);margin:.3rem 0;width:.5rem}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{border-right-color:rgba(0,0,0,.25);border-width:.5rem .5rem .5rem 0;left:0}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{border-right-color:#fff;border-width:.5rem .5rem .5rem 0;left:1px}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{border-bottom-color:rgba(0,0,0,.25);border-width:0 .5rem .5rem;top:0}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{border-bottom-color:#fff;border-width:0 .5rem .5rem;top:1px}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{border-bottom:1px solid #f7f7f7;content:"";display:block;left:50%;margin-left:-.5rem;position:absolute;top:0;width:1rem}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{height:1rem;margin:.3rem 0;right:calc(-.5rem - 1px);width:.5rem}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{border-left-color:rgba(0,0,0,.25);border-width:.5rem 0 .5rem .5rem;right:0}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{border-left-color:#fff;border-width:.5rem 0 .5rem .5rem;right:1px}.popover-header{background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px);font-size:1rem;margin-bottom:0;padding:.5rem .75rem}.popover-header:empty{display:none}.popover-body{color:#212529;padding:.5rem .75rem}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{overflow:hidden;position:relative;width:100%}.carousel-inner:after{clear:both;content:"";display:block}.carousel-item{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:none;float:left;margin-right:-100%;position:relative;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out;width:100%}@media(prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){-webkit-transform:translateX(100%);transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){-webkit-transform:translateX(-100%);transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;-webkit-transform:none;transform:none;transition-property:opacity}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{opacity:1;z-index:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{opacity:0;transition:opacity 0s .6s;z-index:0}@media(prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{align-items:center;background:none;border:0;bottom:0;color:#fff;display:flex;justify-content:center;opacity:.5;padding:0;position:absolute;text-align:center;top:0;transition:opacity .15s ease;width:15%;z-index:1}@media(prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;opacity:.9;outline:0;text-decoration:none}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{background:50%/100% 100% no-repeat;display:inline-block;height:20px;width:20px}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='m5.25 0-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='m2.75 0-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{bottom:0;display:flex;justify-content:center;left:0;list-style:none;margin-left:15%;margin-right:15%;padding-left:0;position:absolute;right:0;z-index:15}.carousel-indicators li{background-clip:padding-box;background-color:#fff;border-bottom:10px solid transparent;border-top:10px solid transparent;box-sizing:initial;cursor:pointer;flex:0 1 auto;height:3px;margin-left:3px;margin-right:3px;opacity:.5;text-indent:-999px;transition:opacity .6s ease;width:30px}@media(prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{bottom:20px;color:#fff;left:15%;padding-bottom:20px;padding-top:20px;position:absolute;right:15%;text-align:center;z-index:10}@-webkit-keyframes spinner-border{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spinner-border{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.spinner-border{-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite;border:.25em solid;border-radius:50%;border-right:.25em solid transparent;display:inline-block;height:2rem;vertical-align:-.125em;width:2rem}.spinner-border-sm{border-width:.2em;height:1rem;width:1rem}@-webkit-keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1;-webkit-transform:none;transform:none}}@keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1;-webkit-transform:none;transform:none}}.spinner-grow{-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite;background-color:currentcolor;border-radius:50%;display:inline-block;height:2rem;opacity:0;vertical-align:-.125em;width:2rem}.spinner-grow-sm{height:1rem;width:1rem}@media(prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{-webkit-animation-duration:1.5s;animation-duration:1.5s}}.align-baseline{vertical-align:initial!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#da1e28!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#ad1820!important}.bg-light{background-color:#161616!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#000!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#da1e28!important}.border-light{border-color:#161616!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important}.rounded-right,.rounded-top{border-top-right-radius:.25rem!important}.rounded-bottom,.rounded-right{border-bottom-right-radius:.25rem!important}.rounded-bottom,.rounded-left{border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{clear:both;content:"";display:block}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media(min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media(min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media(min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media(min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{display:block;overflow:hidden;padding:0;position:relative;width:100%}.embed-responsive:before{content:"";display:block}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{border:0;bottom:0;height:100%;left:0;position:absolute;top:0;width:100%}.embed-responsive-21by9:before{padding-top:42.85714286%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media(min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media(min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media(min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media(min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media(min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media(min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media(min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media(min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{top:0}.fixed-bottom,.fixed-top{left:0;position:fixed;right:0;z-index:1030}.fixed-bottom{bottom:0}@supports((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;overflow:visible;position:static;white-space:normal;width:auto}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media(min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media(min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media(min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media(min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.stretched-link:after{background-color:transparent;bottom:0;content:"";left:0;pointer-events:auto;position:absolute;right:0;top:0;z-index:1}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media(min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media(min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media(min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media(min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#da1e28!important}a.text-danger:focus,a.text-danger:hover{color:#97151c!important}.text-light{color:#161616!important}a.text-light:focus,a.text-light:hover{color:#000!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:hsla(0,0%,100%,.5)!important}.text-hide{background-color:transparent;border:0;color:transparent;font:0/0 a;text-shadow:none}.text-decoration-none{text-decoration:none!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{box-shadow:none!important;text-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd}blockquote,img,pre,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}.container,body{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{border-color:#dee2e6;color:inherit}}.plot-section__heading{font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.42857}.plot-box{display:flex;flex-direction:column}.plot-box,.plot-box svg{margin-top:3rem}@media(max-width:41.98rem){.plot-box:not(:nth-child(2)){border-top:1px solid #e0e0e0;padding-top:3rem}}@media(min-width:42rem){.plot-box:nth-child(odd){border-left:1px solid #e0e0e0}}@media(min-width:66rem){.plot-box{border-left:1px solid #e0e0e0;margin-top:0}.plot-box svg{margin-top:6rem}}.plot-box__heading{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.4}.plot-box__body{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;margin-top:1.5rem}@media(min-width:321px)and (max-width:41.98rem){.plot-box__body{max-width:75%}}.title-visualizations{padding:0 2rem 2rem}.visualizations-page .bx--row{padding-bottom:1rem;padding-top:1rem}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:initial}button,input,select,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:""}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:IBM Plex Sans,Helvetica Neue,Arial,sans-serif;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;letter-spacing:0;line-height:1.199}h2{font-size:2rem;line-height:1.25}h2,h3{font-weight:400;letter-spacing:0}h3{font-size:1.75rem;line-height:1.28572}h4{font-size:1.25rem;font-weight:400;line-height:1.4}h4,h5{letter-spacing:0}h5{font-size:1rem;line-height:1.375}h5,h6{font-weight:600}h6{font-size:.875rem;letter-spacing:.16px;line-height:1.28572}p{font-size:1rem;font-weight:400;letter-spacing:0;line-height:1.5}a{color:#0f62fe}em{font-style:italic}@-webkit-keyframes skeleton{0%{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}20%{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}28%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}51%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}58%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}82%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}83%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}96%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}to{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}}@keyframes skeleton{0%{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}20%{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}28%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}51%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}58%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:right;transform-origin:right}82%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:right;transform-origin:right}83%{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left;transform-origin:left}96%{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}to{opacity:.3;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:left;transform-origin:left}}.bx--text-truncate--end,.bx--text-truncate--front{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bx--text-truncate--front{direction:rtl}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:700;src:local("IBM Plex Mono Bold"),local("IBMPlexMono-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Bold.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Bold.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:700;src:local("IBM Plex Mono Bold"),local("IBMPlexMono-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:700;src:local("IBM Plex Mono Bold"),local("IBMPlexMono-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:700;src:local("IBM Plex Mono Bold"),local("IBMPlexMono-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:700;src:local("IBM Plex Mono Bold"),local("IBMPlexMono-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:700;src:local("IBM Plex Mono Bold"),local("IBMPlexMono-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:700;src:local("IBM Plex Mono Bold Italic"),local("IBMPlexMono-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-BoldItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-BoldItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:700;src:local("IBM Plex Mono Bold Italic"),local("IBMPlexMono-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:700;src:local("IBM Plex Mono Bold Italic"),local("IBMPlexMono-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:700;src:local("IBM Plex Mono Bold Italic"),local("IBMPlexMono-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:700;src:local("IBM Plex Mono Bold Italic"),local("IBMPlexMono-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:700;src:local("IBM Plex Mono Bold Italic"),local("IBMPlexMono-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:200;src:local("IBM Plex Mono ExtLt"),local("IBMPlexMono-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ExtraLight.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ExtraLight.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:200;src:local("IBM Plex Mono ExtLt"),local("IBMPlexMono-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:200;src:local("IBM Plex Mono ExtLt"),local("IBMPlexMono-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:200;src:local("IBM Plex Mono ExtLt"),local("IBMPlexMono-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:200;src:local("IBM Plex Mono ExtLt"),local("IBMPlexMono-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:200;src:local("IBM Plex Mono ExtLt"),local("IBMPlexMono-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:200;src:local("IBM Plex Mono ExtLt Italic"),local("IBMPlexMono-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ExtraLightItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ExtraLightItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:200;src:local("IBM Plex Mono ExtLt Italic"),local("IBMPlexMono-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:200;src:local("IBM Plex Mono ExtLt Italic"),local("IBMPlexMono-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:200;src:local("IBM Plex Mono ExtLt Italic"),local("IBMPlexMono-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:200;src:local("IBM Plex Mono ExtLt Italic"),local("IBMPlexMono-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:200;src:local("IBM Plex Mono ExtLt Italic"),local("IBMPlexMono-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:400;src:local("IBM Plex Mono Italic"),local("IBMPlexMono-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Italic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Italic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:400;src:local("IBM Plex Mono Italic"),local("IBMPlexMono-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:400;src:local("IBM Plex Mono Italic"),local("IBMPlexMono-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:400;src:local("IBM Plex Mono Italic"),local("IBMPlexMono-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:400;src:local("IBM Plex Mono Italic"),local("IBMPlexMono-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:400;src:local("IBM Plex Mono Italic"),local("IBMPlexMono-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:300;src:local("IBM Plex Mono Light"),local("IBMPlexMono-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Light.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Light.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:300;src:local("IBM Plex Mono Light"),local("IBMPlexMono-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:300;src:local("IBM Plex Mono Light"),local("IBMPlexMono-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:300;src:local("IBM Plex Mono Light"),local("IBMPlexMono-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:300;src:local("IBM Plex Mono Light"),local("IBMPlexMono-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:300;src:local("IBM Plex Mono Light"),local("IBMPlexMono-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:300;src:local("IBM Plex Mono Light Italic"),local("IBMPlexMono-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-LightItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-LightItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:300;src:local("IBM Plex Mono Light Italic"),local("IBMPlexMono-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:300;src:local("IBM Plex Mono Light Italic"),local("IBMPlexMono-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:300;src:local("IBM Plex Mono Light Italic"),local("IBMPlexMono-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:300;src:local("IBM Plex Mono Light Italic"),local("IBMPlexMono-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:300;src:local("IBM Plex Mono Light Italic"),local("IBMPlexMono-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:500;src:local("IBM Plex Mono Medm"),local("IBMPlexMono-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Medium.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Medium.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:500;src:local("IBM Plex Mono Medm"),local("IBMPlexMono-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:500;src:local("IBM Plex Mono Medm"),local("IBMPlexMono-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:500;src:local("IBM Plex Mono Medm"),local("IBMPlexMono-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:500;src:local("IBM Plex Mono Medm"),local("IBMPlexMono-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:500;src:local("IBM Plex Mono Medm"),local("IBMPlexMono-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:500;src:local("IBM Plex Mono Medm Italic"),local("IBMPlexMono-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-MediumItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-MediumItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:500;src:local("IBM Plex Mono Medm Italic"),local("IBMPlexMono-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:500;src:local("IBM Plex Mono Medm Italic"),local("IBMPlexMono-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:500;src:local("IBM Plex Mono Medm Italic"),local("IBMPlexMono-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:500;src:local("IBM Plex Mono Medm Italic"),local("IBMPlexMono-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:500;src:local("IBM Plex Mono Medm Italic"),local("IBMPlexMono-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:400;src:local("IBM Plex Mono"),local("IBMPlexMono"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Regular.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:400;src:local("IBM Plex Mono"),local("IBMPlexMono"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:400;src:local("IBM Plex Mono"),local("IBMPlexMono"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:400;src:local("IBM Plex Mono"),local("IBMPlexMono"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:400;src:local("IBM Plex Mono"),local("IBMPlexMono"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:400;src:local("IBM Plex Mono"),local("IBMPlexMono"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:600;src:local("IBM Plex Mono SmBld"),local("IBMPlexMono-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBold.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-SemiBold.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:600;src:local("IBM Plex Mono SmBld"),local("IBMPlexMono-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:600;src:local("IBM Plex Mono SmBld"),local("IBMPlexMono-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:600;src:local("IBM Plex Mono SmBld"),local("IBMPlexMono-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:600;src:local("IBM Plex Mono SmBld"),local("IBMPlexMono-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:600;src:local("IBM Plex Mono SmBld"),local("IBMPlexMono-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:600;src:local("IBM Plex Mono SmBld Italic"),local("IBMPlexMono-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBoldItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-SemiBoldItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:600;src:local("IBM Plex Mono SmBld Italic"),local("IBMPlexMono-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:600;src:local("IBM Plex Mono SmBld Italic"),local("IBMPlexMono-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:600;src:local("IBM Plex Mono SmBld Italic"),local("IBMPlexMono-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:600;src:local("IBM Plex Mono SmBld Italic"),local("IBMPlexMono-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:600;src:local("IBM Plex Mono SmBld Italic"),local("IBMPlexMono-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:450;src:local("IBM Plex Mono Text"),local("IBMPlexMono-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Text.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Text.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:450;src:local("IBM Plex Mono Text"),local("IBMPlexMono-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:450;src:local("IBM Plex Mono Text"),local("IBMPlexMono-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:450;src:local("IBM Plex Mono Text"),local("IBMPlexMono-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:450;src:local("IBM Plex Mono Text"),local("IBMPlexMono-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:450;src:local("IBM Plex Mono Text"),local("IBMPlexMono-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:450;src:local("IBM Plex Mono Text Italic"),local("IBMPlexMono-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-TextItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-TextItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:450;src:local("IBM Plex Mono Text Italic"),local("IBMPlexMono-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:450;src:local("IBM Plex Mono Text Italic"),local("IBMPlexMono-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:450;src:local("IBM Plex Mono Text Italic"),local("IBMPlexMono-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:450;src:local("IBM Plex Mono Text Italic"),local("IBMPlexMono-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:450;src:local("IBM Plex Mono Text Italic"),local("IBMPlexMono-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:100;src:local("IBM Plex Mono Thin"),local("IBMPlexMono-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Thin.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Thin.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:100;src:local("IBM Plex Mono Thin"),local("IBMPlexMono-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:100;src:local("IBM Plex Mono Thin"),local("IBMPlexMono-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:100;src:local("IBM Plex Mono Thin"),local("IBMPlexMono-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:100;src:local("IBM Plex Mono Thin"),local("IBMPlexMono-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:normal;font-weight:100;src:local("IBM Plex Mono Thin"),local("IBMPlexMono-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:100;src:local("IBM Plex Mono Thin Italic"),local("IBMPlexMono-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ThinItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ThinItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:100;src:local("IBM Plex Mono Thin Italic"),local("IBMPlexMono-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:100;src:local("IBM Plex Mono Thin Italic"),local("IBMPlexMono-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:100;src:local("IBM Plex Mono Thin Italic"),local("IBMPlexMono-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:100;src:local("IBM Plex Mono Thin Italic"),local("IBMPlexMono-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Mono;font-style:italic;font-weight:100;src:local("IBM Plex Mono Thin Italic"),local("IBMPlexMono-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Bold.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Bold.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-BoldItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-BoldItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:700;src:local("IBM Plex Sans Bold Italic"),local("IBMPlexSans-BoldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ExtraLight.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ExtraLight.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:200;src:local("IBM Plex Sans ExtLt"),local("IBMPlexSans-ExtLt"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ExtraLightItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ExtraLightItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:200;src:local("IBM Plex Sans ExtLt Italic"),local("IBMPlexSans-ExtLtItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Italic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Italic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:400;src:local("IBM Plex Sans Italic"),local("IBMPlexSans-Italic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Light.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Light.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-LightItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-LightItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:300;src:local("IBM Plex Sans Light Italic"),local("IBMPlexSans-LightItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Medium.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Medium.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:500;src:local("IBM Plex Sans Medm"),local("IBMPlexSans-Medm"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-MediumItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-MediumItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:500;src:local("IBM Plex Sans Medm Italic"),local("IBMPlexSans-MedmItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Regular.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Regular.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-SemiBold.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-SemiBold.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SmBld"),local("IBMPlexSans-SmBld"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-SemiBoldItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-SemiBoldItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:600;src:local("IBM Plex Sans SmBld Italic"),local("IBMPlexSans-SmBldItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Text.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Text.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:450;src:local("IBM Plex Sans Text"),local("IBMPlexSans-Text"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-TextItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-TextItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Thin.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Thin.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:normal;font-weight:100;src:local("IBM Plex Sans Thin"),local("IBMPlexSans-Thin"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ThinItalic.woff2) format("woff2"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ThinItalic.woff) format("woff")}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Cyrillic.woff2) format("woff2");unicode-range:u+0400-045f,u+0472-0473,u+0490-049d,u+04a0-04a5,u+04aa-04ab,u+04ae-04b3,u+04b6-04bb,u+04c0-04c2,u+04cf-04d9,u+04dc-04df,u+04e2-04e9,u+04ee-04f5,u+04f8-04f9}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Pi.woff2) format("woff2");unicode-range:u+0e3f,u+2032-2033,u+2070,u+2075-2079,u+2080-2081,u+2083,u+2085-2089,u+2113,u+2116,u+2126,u+212e,u+2150-2151,u+2153-215e,u+2190-2199,u+21a9-21aa,u+21b0-21b3,u+21b6-21b7,u+21ba-21bb,u+21c4,u+21c6,u+2202,u+2206,u+220f,u+2211,u+221a,u+221e,u+222b,u+2248,u+2260,u+2264-2265,u+25ca,u+2713,u+274c,u+2b0e-2b11,u+ebe1-ebe7,u+ece0,u+efcc}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin3.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin2.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin1.woff2) format("woff2");unicode-range:u+0000,u+000d,u+0020-007e,u+00a0-00a3,u+00a4-00ff,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2013-2014,u+2018-201a,u+201c-201e,u+2020-2022,u+2026,u+2030,u+2039-203a,u+2044,u+2074,u+20ac,u+2122,u+2212,u+fb01-fb02}@font-face{font-display:auto;font-family:IBM Plex Sans;font-style:italic;font-weight:100;src:local("IBM Plex Sans Thin Italic"),local("IBMPlexSans-ThinItalic"),url(https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Greek.woff2) format("woff2");unicode-range:u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ce}.bx--assistive-text,.bx--visually-hidden{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--body,body{background-color:#fff;color:#161616;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;line-height:1}.bx--grid{margin-left:auto;margin-right:auto;max-width:99rem;padding-left:1rem;padding-right:1rem}@media(min-width:42rem){.bx--grid{padding-left:2rem;padding-right:2rem}}@media(min-width:99rem){.bx--grid{padding-left:2.5rem;padding-right:2.5rem}.bx--grid--full-width{max-width:100%}}.bx--row{display:flex;flex-wrap:wrap;margin-left:-1rem;margin-right:-1rem}.bx--col-padding,.bx--row-padding [class*=bx--col]{padding-bottom:1rem;padding-top:1rem}.bx--grid--condensed [class*=bx--col]{padding-bottom:.03125rem;padding-top:.03125rem}.bx--col{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col,.bx--row--condensed .bx--col{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col,.bx--row--narrow .bx--col{padding-left:0;padding-right:1rem}.bx--col-sm-0{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-sm-0,.bx--row--condensed .bx--col-sm-0{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-sm-0,.bx--row--narrow .bx--col-sm-0{padding-left:0;padding-right:1rem}.bx--col-sm-1{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-sm-1,.bx--row--condensed .bx--col-sm-1{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-sm-1,.bx--row--narrow .bx--col-sm-1{padding-left:0;padding-right:1rem}.bx--col-sm-2{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-sm-2,.bx--row--condensed .bx--col-sm-2{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-sm-2,.bx--row--narrow .bx--col-sm-2{padding-left:0;padding-right:1rem}.bx--col-sm-3{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-sm-3,.bx--row--condensed .bx--col-sm-3{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-sm-3,.bx--row--narrow .bx--col-sm-3{padding-left:0;padding-right:1rem}.bx--col-sm-4{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-sm-4,.bx--row--condensed .bx--col-sm-4{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-sm-4,.bx--row--narrow .bx--col-sm-4{padding-left:0;padding-right:1rem}.bx--col-sm,.bx--col-sm--auto{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-sm,.bx--grid--condensed .bx--col-sm--auto,.bx--row--condensed .bx--col-sm,.bx--row--condensed .bx--col-sm--auto{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-sm,.bx--grid--narrow .bx--col-sm--auto,.bx--row--narrow .bx--col-sm,.bx--row--narrow .bx--col-sm--auto{padding-left:0;padding-right:1rem}.bx--col,.bx--col-sm{flex-basis:0;flex-grow:1;max-width:100%}.bx--col--auto,.bx--col-sm--auto{flex:1 0;max-width:100%;width:auto}.bx--col-sm-0{display:none}.bx--col-sm-1{display:block;flex:0 0 25%;max-width:25%}.bx--col-sm-2{display:block;flex:0 0 50%;max-width:50%}.bx--col-sm-3{display:block;flex:0 0 75%;max-width:75%}.bx--col-sm-4{display:block;flex:0 0 100%;max-width:100%}.bx--offset-sm-0{margin-left:0}.bx--offset-sm-1{margin-left:25%}.bx--offset-sm-2{margin-left:50%}.bx--offset-sm-3{margin-left:75%}.bx--col-md-0{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-0,.bx--row--condensed .bx--col-md-0{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-0,.bx--row--narrow .bx--col-md-0{padding-left:0;padding-right:1rem}.bx--col-md-1{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-1,.bx--row--condensed .bx--col-md-1{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-1,.bx--row--narrow .bx--col-md-1{padding-left:0;padding-right:1rem}.bx--col-md-2{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-2,.bx--row--condensed .bx--col-md-2{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-2,.bx--row--narrow .bx--col-md-2{padding-left:0;padding-right:1rem}.bx--col-md-3{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-3,.bx--row--condensed .bx--col-md-3{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-3,.bx--row--narrow .bx--col-md-3{padding-left:0;padding-right:1rem}.bx--col-md-4{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-4,.bx--row--condensed .bx--col-md-4{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-4,.bx--row--narrow .bx--col-md-4{padding-left:0;padding-right:1rem}.bx--col-md-5{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-5,.bx--row--condensed .bx--col-md-5{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-5,.bx--row--narrow .bx--col-md-5{padding-left:0;padding-right:1rem}.bx--col-md-6{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-6,.bx--row--condensed .bx--col-md-6{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-6,.bx--row--narrow .bx--col-md-6{padding-left:0;padding-right:1rem}.bx--col-md-7{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-7,.bx--row--condensed .bx--col-md-7{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-7,.bx--row--narrow .bx--col-md-7{padding-left:0;padding-right:1rem}.bx--col-md-8{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md-8,.bx--row--condensed .bx--col-md-8{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md-8,.bx--row--narrow .bx--col-md-8{padding-left:0;padding-right:1rem}.bx--col-md,.bx--col-md--auto{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-md,.bx--grid--condensed .bx--col-md--auto,.bx--row--condensed .bx--col-md,.bx--row--condensed .bx--col-md--auto{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-md,.bx--grid--narrow .bx--col-md--auto,.bx--row--narrow .bx--col-md,.bx--row--narrow .bx--col-md--auto{padding-left:0;padding-right:1rem}@media(min-width:42rem){.bx--col,.bx--col-md{flex-basis:0;flex-grow:1;max-width:100%}.bx--col--auto,.bx--col-md--auto{flex:1 0;max-width:100%;width:auto}.bx--col-md-0{display:none}.bx--col-md-1{display:block;flex:0 0 12.5%;max-width:12.5%}.bx--col-md-2{display:block;flex:0 0 25%;max-width:25%}.bx--col-md-3{display:block;flex:0 0 37.5%;max-width:37.5%}.bx--col-md-4{display:block;flex:0 0 50%;max-width:50%}.bx--col-md-5{display:block;flex:0 0 62.5%;max-width:62.5%}.bx--col-md-6{display:block;flex:0 0 75%;max-width:75%}.bx--col-md-7{display:block;flex:0 0 87.5%;max-width:87.5%}.bx--col-md-8{display:block;flex:0 0 100%;max-width:100%}.bx--offset-md-0{margin-left:0}.bx--offset-md-1{margin-left:12.5%}.bx--offset-md-2{margin-left:25%}.bx--offset-md-3{margin-left:37.5%}.bx--offset-md-4{margin-left:50%}.bx--offset-md-5{margin-left:62.5%}.bx--offset-md-6{margin-left:75%}.bx--offset-md-7{margin-left:87.5%}}.bx--col-lg-0{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-0,.bx--row--condensed .bx--col-lg-0{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-0,.bx--row--narrow .bx--col-lg-0{padding-left:0;padding-right:1rem}.bx--col-lg-1{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-1,.bx--row--condensed .bx--col-lg-1{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-1,.bx--row--narrow .bx--col-lg-1{padding-left:0;padding-right:1rem}.bx--col-lg-2{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-2,.bx--row--condensed .bx--col-lg-2{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-2,.bx--row--narrow .bx--col-lg-2{padding-left:0;padding-right:1rem}.bx--col-lg-3{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-3,.bx--row--condensed .bx--col-lg-3{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-3,.bx--row--narrow .bx--col-lg-3{padding-left:0;padding-right:1rem}.bx--col-lg-4{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-4,.bx--row--condensed .bx--col-lg-4{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-4,.bx--row--narrow .bx--col-lg-4{padding-left:0;padding-right:1rem}.bx--col-lg-5{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-5,.bx--row--condensed .bx--col-lg-5{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-5,.bx--row--narrow .bx--col-lg-5{padding-left:0;padding-right:1rem}.bx--col-lg-6{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-6,.bx--row--condensed .bx--col-lg-6{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-6,.bx--row--narrow .bx--col-lg-6{padding-left:0;padding-right:1rem}.bx--col-lg-7{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-7,.bx--row--condensed .bx--col-lg-7{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-7,.bx--row--narrow .bx--col-lg-7{padding-left:0;padding-right:1rem}.bx--col-lg-8{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-8,.bx--row--condensed .bx--col-lg-8{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-8,.bx--row--narrow .bx--col-lg-8{padding-left:0;padding-right:1rem}.bx--col-lg-9{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-9,.bx--row--condensed .bx--col-lg-9{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-9,.bx--row--narrow .bx--col-lg-9{padding-left:0;padding-right:1rem}.bx--col-lg-10{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-10,.bx--row--condensed .bx--col-lg-10{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-10,.bx--row--narrow .bx--col-lg-10{padding-left:0;padding-right:1rem}.bx--col-lg-11{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-11,.bx--row--condensed .bx--col-lg-11{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-11,.bx--row--narrow .bx--col-lg-11{padding-left:0;padding-right:1rem}.bx--col-lg-12{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-12,.bx--row--condensed .bx--col-lg-12{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-12,.bx--row--narrow .bx--col-lg-12{padding-left:0;padding-right:1rem}.bx--col-lg-13{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-13,.bx--row--condensed .bx--col-lg-13{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-13,.bx--row--narrow .bx--col-lg-13{padding-left:0;padding-right:1rem}.bx--col-lg-14{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-14,.bx--row--condensed .bx--col-lg-14{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-14,.bx--row--narrow .bx--col-lg-14{padding-left:0;padding-right:1rem}.bx--col-lg-15{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-15,.bx--row--condensed .bx--col-lg-15{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-15,.bx--row--narrow .bx--col-lg-15{padding-left:0;padding-right:1rem}.bx--col-lg-16{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg-16,.bx--row--condensed .bx--col-lg-16{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg-16,.bx--row--narrow .bx--col-lg-16{padding-left:0;padding-right:1rem}.bx--col-lg,.bx--col-lg--auto{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-lg,.bx--grid--condensed .bx--col-lg--auto,.bx--row--condensed .bx--col-lg,.bx--row--condensed .bx--col-lg--auto{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-lg,.bx--grid--narrow .bx--col-lg--auto,.bx--row--narrow .bx--col-lg,.bx--row--narrow .bx--col-lg--auto{padding-left:0;padding-right:1rem}@media(min-width:66rem){.bx--col,.bx--col-lg{flex-basis:0;flex-grow:1;max-width:100%}.bx--col--auto,.bx--col-lg--auto{flex:1 0;max-width:100%;width:auto}.bx--col-lg-0{display:none}.bx--col-lg-1{display:block;flex:0 0 6.25%;max-width:6.25%}.bx--col-lg-2{display:block;flex:0 0 12.5%;max-width:12.5%}.bx--col-lg-3{display:block;flex:0 0 18.75%;max-width:18.75%}.bx--col-lg-4{display:block;flex:0 0 25%;max-width:25%}.bx--col-lg-5{display:block;flex:0 0 31.25%;max-width:31.25%}.bx--col-lg-6{display:block;flex:0 0 37.5%;max-width:37.5%}.bx--col-lg-7{display:block;flex:0 0 43.75%;max-width:43.75%}.bx--col-lg-8{display:block;flex:0 0 50%;max-width:50%}.bx--col-lg-9{display:block;flex:0 0 56.25%;max-width:56.25%}.bx--col-lg-10{display:block;flex:0 0 62.5%;max-width:62.5%}.bx--col-lg-11{display:block;flex:0 0 68.75%;max-width:68.75%}.bx--col-lg-12{display:block;flex:0 0 75%;max-width:75%}.bx--col-lg-13{display:block;flex:0 0 81.25%;max-width:81.25%}.bx--col-lg-14{display:block;flex:0 0 87.5%;max-width:87.5%}.bx--col-lg-15{display:block;flex:0 0 93.75%;max-width:93.75%}.bx--col-lg-16{display:block;flex:0 0 100%;max-width:100%}.bx--offset-lg-0{margin-left:0}.bx--offset-lg-1{margin-left:6.25%}.bx--offset-lg-2{margin-left:12.5%}.bx--offset-lg-3{margin-left:18.75%}.bx--offset-lg-4{margin-left:25%}.bx--offset-lg-5{margin-left:31.25%}.bx--offset-lg-6{margin-left:37.5%}.bx--offset-lg-7{margin-left:43.75%}.bx--offset-lg-8{margin-left:50%}.bx--offset-lg-9{margin-left:56.25%}.bx--offset-lg-10{margin-left:62.5%}.bx--offset-lg-11{margin-left:68.75%}.bx--offset-lg-12{margin-left:75%}.bx--offset-lg-13{margin-left:81.25%}.bx--offset-lg-14{margin-left:87.5%}.bx--offset-lg-15{margin-left:93.75%}}.bx--col-xlg-0{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-0,.bx--row--condensed .bx--col-xlg-0{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-0,.bx--row--narrow .bx--col-xlg-0{padding-left:0;padding-right:1rem}.bx--col-xlg-1{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-1,.bx--row--condensed .bx--col-xlg-1{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-1,.bx--row--narrow .bx--col-xlg-1{padding-left:0;padding-right:1rem}.bx--col-xlg-2{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-2,.bx--row--condensed .bx--col-xlg-2{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-2,.bx--row--narrow .bx--col-xlg-2{padding-left:0;padding-right:1rem}.bx--col-xlg-3{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-3,.bx--row--condensed .bx--col-xlg-3{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-3,.bx--row--narrow .bx--col-xlg-3{padding-left:0;padding-right:1rem}.bx--col-xlg-4{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-4,.bx--row--condensed .bx--col-xlg-4{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-4,.bx--row--narrow .bx--col-xlg-4{padding-left:0;padding-right:1rem}.bx--col-xlg-5{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-5,.bx--row--condensed .bx--col-xlg-5{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-5,.bx--row--narrow .bx--col-xlg-5{padding-left:0;padding-right:1rem}.bx--col-xlg-6{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-6,.bx--row--condensed .bx--col-xlg-6{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-6,.bx--row--narrow .bx--col-xlg-6{padding-left:0;padding-right:1rem}.bx--col-xlg-7{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-7,.bx--row--condensed .bx--col-xlg-7{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-7,.bx--row--narrow .bx--col-xlg-7{padding-left:0;padding-right:1rem}.bx--col-xlg-8{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-8,.bx--row--condensed .bx--col-xlg-8{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-8,.bx--row--narrow .bx--col-xlg-8{padding-left:0;padding-right:1rem}.bx--col-xlg-9{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-9,.bx--row--condensed .bx--col-xlg-9{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-9,.bx--row--narrow .bx--col-xlg-9{padding-left:0;padding-right:1rem}.bx--col-xlg-10{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-10,.bx--row--condensed .bx--col-xlg-10{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-10,.bx--row--narrow .bx--col-xlg-10{padding-left:0;padding-right:1rem}.bx--col-xlg-11{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-11,.bx--row--condensed .bx--col-xlg-11{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-11,.bx--row--narrow .bx--col-xlg-11{padding-left:0;padding-right:1rem}.bx--col-xlg-12{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-12,.bx--row--condensed .bx--col-xlg-12{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-12,.bx--row--narrow .bx--col-xlg-12{padding-left:0;padding-right:1rem}.bx--col-xlg-13{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-13,.bx--row--condensed .bx--col-xlg-13{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-13,.bx--row--narrow .bx--col-xlg-13{padding-left:0;padding-right:1rem}.bx--col-xlg-14{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-14,.bx--row--condensed .bx--col-xlg-14{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-14,.bx--row--narrow .bx--col-xlg-14{padding-left:0;padding-right:1rem}.bx--col-xlg-15{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-15,.bx--row--condensed .bx--col-xlg-15{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-15,.bx--row--narrow .bx--col-xlg-15{padding-left:0;padding-right:1rem}.bx--col-xlg-16{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg-16,.bx--row--condensed .bx--col-xlg-16{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg-16,.bx--row--narrow .bx--col-xlg-16{padding-left:0;padding-right:1rem}.bx--col-xlg,.bx--col-xlg--auto{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-xlg,.bx--grid--condensed .bx--col-xlg--auto,.bx--row--condensed .bx--col-xlg,.bx--row--condensed .bx--col-xlg--auto{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-xlg,.bx--grid--narrow .bx--col-xlg--auto,.bx--row--narrow .bx--col-xlg,.bx--row--narrow .bx--col-xlg--auto{padding-left:0;padding-right:1rem}@media(min-width:82rem){.bx--col,.bx--col-xlg{flex-basis:0;flex-grow:1;max-width:100%}.bx--col--auto,.bx--col-xlg--auto{flex:1 0;max-width:100%;width:auto}.bx--col-xlg-0{display:none}.bx--col-xlg-1{display:block;flex:0 0 6.25%;max-width:6.25%}.bx--col-xlg-2{display:block;flex:0 0 12.5%;max-width:12.5%}.bx--col-xlg-3{display:block;flex:0 0 18.75%;max-width:18.75%}.bx--col-xlg-4{display:block;flex:0 0 25%;max-width:25%}.bx--col-xlg-5{display:block;flex:0 0 31.25%;max-width:31.25%}.bx--col-xlg-6{display:block;flex:0 0 37.5%;max-width:37.5%}.bx--col-xlg-7{display:block;flex:0 0 43.75%;max-width:43.75%}.bx--col-xlg-8{display:block;flex:0 0 50%;max-width:50%}.bx--col-xlg-9{display:block;flex:0 0 56.25%;max-width:56.25%}.bx--col-xlg-10{display:block;flex:0 0 62.5%;max-width:62.5%}.bx--col-xlg-11{display:block;flex:0 0 68.75%;max-width:68.75%}.bx--col-xlg-12{display:block;flex:0 0 75%;max-width:75%}.bx--col-xlg-13{display:block;flex:0 0 81.25%;max-width:81.25%}.bx--col-xlg-14{display:block;flex:0 0 87.5%;max-width:87.5%}.bx--col-xlg-15{display:block;flex:0 0 93.75%;max-width:93.75%}.bx--col-xlg-16{display:block;flex:0 0 100%;max-width:100%}.bx--offset-xlg-0{margin-left:0}.bx--offset-xlg-1{margin-left:6.25%}.bx--offset-xlg-2{margin-left:12.5%}.bx--offset-xlg-3{margin-left:18.75%}.bx--offset-xlg-4{margin-left:25%}.bx--offset-xlg-5{margin-left:31.25%}.bx--offset-xlg-6{margin-left:37.5%}.bx--offset-xlg-7{margin-left:43.75%}.bx--offset-xlg-8{margin-left:50%}.bx--offset-xlg-9{margin-left:56.25%}.bx--offset-xlg-10{margin-left:62.5%}.bx--offset-xlg-11{margin-left:68.75%}.bx--offset-xlg-12{margin-left:75%}.bx--offset-xlg-13{margin-left:81.25%}.bx--offset-xlg-14{margin-left:87.5%}.bx--offset-xlg-15{margin-left:93.75%}}.bx--col-max-0{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-0,.bx--row--condensed .bx--col-max-0{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-0,.bx--row--narrow .bx--col-max-0{padding-left:0;padding-right:1rem}.bx--col-max-1{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-1,.bx--row--condensed .bx--col-max-1{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-1,.bx--row--narrow .bx--col-max-1{padding-left:0;padding-right:1rem}.bx--col-max-2{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-2,.bx--row--condensed .bx--col-max-2{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-2,.bx--row--narrow .bx--col-max-2{padding-left:0;padding-right:1rem}.bx--col-max-3{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-3,.bx--row--condensed .bx--col-max-3{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-3,.bx--row--narrow .bx--col-max-3{padding-left:0;padding-right:1rem}.bx--col-max-4{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-4,.bx--row--condensed .bx--col-max-4{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-4,.bx--row--narrow .bx--col-max-4{padding-left:0;padding-right:1rem}.bx--col-max-5{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-5,.bx--row--condensed .bx--col-max-5{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-5,.bx--row--narrow .bx--col-max-5{padding-left:0;padding-right:1rem}.bx--col-max-6{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-6,.bx--row--condensed .bx--col-max-6{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-6,.bx--row--narrow .bx--col-max-6{padding-left:0;padding-right:1rem}.bx--col-max-7{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-7,.bx--row--condensed .bx--col-max-7{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-7,.bx--row--narrow .bx--col-max-7{padding-left:0;padding-right:1rem}.bx--col-max-8{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-8,.bx--row--condensed .bx--col-max-8{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-8,.bx--row--narrow .bx--col-max-8{padding-left:0;padding-right:1rem}.bx--col-max-9{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-9,.bx--row--condensed .bx--col-max-9{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-9,.bx--row--narrow .bx--col-max-9{padding-left:0;padding-right:1rem}.bx--col-max-10{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-10,.bx--row--condensed .bx--col-max-10{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-10,.bx--row--narrow .bx--col-max-10{padding-left:0;padding-right:1rem}.bx--col-max-11{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-11,.bx--row--condensed .bx--col-max-11{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-11,.bx--row--narrow .bx--col-max-11{padding-left:0;padding-right:1rem}.bx--col-max-12{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-12,.bx--row--condensed .bx--col-max-12{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-12,.bx--row--narrow .bx--col-max-12{padding-left:0;padding-right:1rem}.bx--col-max-13{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-13,.bx--row--condensed .bx--col-max-13{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-13,.bx--row--narrow .bx--col-max-13{padding-left:0;padding-right:1rem}.bx--col-max-14{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-14,.bx--row--condensed .bx--col-max-14{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-14,.bx--row--narrow .bx--col-max-14{padding-left:0;padding-right:1rem}.bx--col-max-15{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-15,.bx--row--condensed .bx--col-max-15{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-15,.bx--row--narrow .bx--col-max-15{padding-left:0;padding-right:1rem}.bx--col-max-16{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max-16,.bx--row--condensed .bx--col-max-16{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max-16,.bx--row--narrow .bx--col-max-16{padding-left:0;padding-right:1rem}.bx--col-max,.bx--col-max--auto{padding-left:1rem;padding-right:1rem;width:100%}.bx--grid--condensed .bx--col-max,.bx--grid--condensed .bx--col-max--auto,.bx--row--condensed .bx--col-max,.bx--row--condensed .bx--col-max--auto{padding-left:.03125rem;padding-right:.03125rem}.bx--grid--narrow .bx--col-max,.bx--grid--narrow .bx--col-max--auto,.bx--row--narrow .bx--col-max,.bx--row--narrow .bx--col-max--auto{padding-left:0;padding-right:1rem}@media(min-width:99rem){.bx--col,.bx--col-max{flex-basis:0;flex-grow:1;max-width:100%}.bx--col--auto,.bx--col-max--auto{flex:1 0;max-width:100%;width:auto}.bx--col-max-0{display:none}.bx--col-max-1{display:block;flex:0 0 6.25%;max-width:6.25%}.bx--col-max-2{display:block;flex:0 0 12.5%;max-width:12.5%}.bx--col-max-3{display:block;flex:0 0 18.75%;max-width:18.75%}.bx--col-max-4{display:block;flex:0 0 25%;max-width:25%}.bx--col-max-5{display:block;flex:0 0 31.25%;max-width:31.25%}.bx--col-max-6{display:block;flex:0 0 37.5%;max-width:37.5%}.bx--col-max-7{display:block;flex:0 0 43.75%;max-width:43.75%}.bx--col-max-8{display:block;flex:0 0 50%;max-width:50%}.bx--col-max-9{display:block;flex:0 0 56.25%;max-width:56.25%}.bx--col-max-10{display:block;flex:0 0 62.5%;max-width:62.5%}.bx--col-max-11{display:block;flex:0 0 68.75%;max-width:68.75%}.bx--col-max-12{display:block;flex:0 0 75%;max-width:75%}.bx--col-max-13{display:block;flex:0 0 81.25%;max-width:81.25%}.bx--col-max-14{display:block;flex:0 0 87.5%;max-width:87.5%}.bx--col-max-15{display:block;flex:0 0 93.75%;max-width:93.75%}.bx--col-max-16{display:block;flex:0 0 100%;max-width:100%}.bx--offset-max-0{margin-left:0}.bx--offset-max-1{margin-left:6.25%}.bx--offset-max-2{margin-left:12.5%}.bx--offset-max-3{margin-left:18.75%}.bx--offset-max-4{margin-left:25%}.bx--offset-max-5{margin-left:31.25%}.bx--offset-max-6{margin-left:37.5%}.bx--offset-max-7{margin-left:43.75%}.bx--offset-max-8{margin-left:50%}.bx--offset-max-9{margin-left:56.25%}.bx--offset-max-10{margin-left:62.5%}.bx--offset-max-11{margin-left:68.75%}.bx--offset-max-12{margin-left:75%}.bx--offset-max-13{margin-left:81.25%}.bx--offset-max-14{margin-left:87.5%}.bx--offset-max-15{margin-left:93.75%}}.bx--no-gutter,.bx--row.bx--no-gutter [class*=bx--col]{padding-left:0;padding-right:0}.bx--no-gutter--start,.bx--row.bx--no-gutter--start [class*=bx--col]{padding-left:0}.bx--no-gutter--end,.bx--row.bx--no-gutter--end [class*=bx--col]{padding-right:0}.bx--no-gutter--left,.bx--row.bx--no-gutter--left [class*=bx--col]{padding-left:0}.bx--no-gutter--right,.bx--row.bx--no-gutter--right [class*=bx--col]{padding-right:0}.bx--hang--start{padding-left:1rem}.bx--hang--end{padding-right:1rem}.bx--hang--left{padding-left:1rem}.bx--hang--right{padding-right:1rem}.bx--aspect-ratio{position:relative}.bx--aspect-ratio:before{content:"";float:left;height:0;margin-left:-1px;width:1px}.bx--aspect-ratio:after{clear:both;content:"";display:table}.bx--aspect-ratio--16x9:before{padding-top:56.25%}.bx--aspect-ratio--9x16:before{padding-top:177.7777777778%}.bx--aspect-ratio--2x1:before{padding-top:50%}.bx--aspect-ratio--1x2:before{padding-top:200%}.bx--aspect-ratio--4x3:before{padding-top:75%}.bx--aspect-ratio--3x4:before{padding-top:133.3333333333%}.bx--aspect-ratio--3x2:before{padding-top:66.6666666667%}.bx--aspect-ratio--2x3:before{padding-top:150%}.bx--aspect-ratio--1x1:before{padding-top:100%}.bx--aspect-ratio--object{height:100%;left:0;position:absolute;top:0;width:100%}@-webkit-keyframes collapse-accordion{0%{height:100%;opacity:1;visibility:inherit}to{height:0;opacity:0;visibility:hidden}}@keyframes collapse-accordion{0%{height:100%;opacity:1;visibility:inherit}to{height:0;opacity:0;visibility:hidden}}@-webkit-keyframes expand-accordion{0%{height:0;opacity:0;visibility:hidden}to{height:100%;opacity:1;visibility:inherit}}@keyframes expand-accordion{0%{height:0;opacity:0;visibility:hidden}to{height:100%;opacity:1;visibility:inherit}}.bx--accordion{list-style:none;width:100%}.bx--accordion__item{border-top:1px solid #e0e0e0;overflow:visible;transition:all .11s cubic-bezier(.2,0,.38,.9)}.bx--accordion__item:last-child{border-bottom:1px solid #e0e0e0}.bx--accordion__heading{align-items:flex-start;-webkit-appearance:none;appearance:none;background:none;border:0;color:#161616;cursor:pointer;display:inline-block;display:flex;flex-direction:row-reverse;justify-content:flex-start;margin:0;min-height:2.5rem;padding:.625rem 0;position:relative;transition:background-color .11s cubic-bezier(.2,0,.38,.9);width:100%}.bx--accordion__heading::-moz-focus-inner{border:0}.bx--accordion__heading:focus:before,.bx--accordion__heading:hover:before{content:"";height:calc(100% + 2px);left:0;position:absolute;top:-1px;width:100%}.bx--accordion__heading:hover:before{background-color:#e5e5e5}.bx--accordion__heading:focus{outline:none}.bx--accordion__heading:focus:before{border:2px solid #0f62fe;box-sizing:border-box}@media screen and (prefers-contrast){.bx--accordion__heading:focus:before{border-style:dotted}}.bx--accordion--lg .bx--accordion__heading,.bx--accordion--xl .bx--accordion__heading{min-height:3rem}.bx--accordion--sm .bx--accordion__heading{min-height:2rem;padding:.3125rem 0}.bx--accordion__heading[disabled]{color:#c6c6c6;cursor:not-allowed}.bx--accordion__heading[disabled] .bx--accordion__arrow{fill:#c6c6c6}.bx--accordion__heading[disabled]:hover:before{background-color:transparent}.bx--accordion__item--disabled,.bx--accordion__item--disabled+.bx--accordion__item{border-top:1px solid #f4f4f4}li.bx--accordion__item--disabled:last-of-type{border-bottom:1px solid #f4f4f4}.bx--accordion__arrow{fill:#161616;flex:0 0 1rem;height:1rem;margin:2px 1rem 0 0;outline:2px solid transparent;outline-offset:-2px;-webkit-transform:rotate(-270deg);transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9);width:1rem}.bx--accordion__title{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;margin:0 0 0 1rem;text-align:left;width:100%;z-index:1}.bx--accordion__content{display:none;padding-left:1rem;padding-right:1rem;transition:padding .11s cubic-bezier(.2,0,.38,.9)}@media(min-width:480px){.bx--accordion__content{padding-right:3rem}}@media(min-width:640px){.bx--accordion__content{padding-right:25%}}.bx--accordion__content>p{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857}.bx--accordion--start .bx--accordion__heading{flex-direction:row}.bx--accordion--start .bx--accordion__arrow{margin:2px 0 0 1rem}.bx--accordion--start .bx--accordion__title{margin-right:1rem}.bx--accordion--start .bx--accordion__content{margin-left:2rem}.bx--accordion__item--collapsing .bx--accordion__content,.bx--accordion__item--expanding .bx--accordion__content{display:block}.bx--accordion__item--collapsing .bx--accordion__content{-webkit-animation:collapse-accordion .11s cubic-bezier(.2,0,.38,.9);animation:collapse-accordion .11s cubic-bezier(.2,0,.38,.9)}.bx--accordion__item--expanding .bx--accordion__content{-webkit-animation:expand-accordion .11s cubic-bezier(.2,0,.38,.9);animation:expand-accordion .11s cubic-bezier(.2,0,.38,.9)}.bx--accordion__item--active{overflow:visible}.bx--accordion__item--active .bx--accordion__content{display:block;padding-bottom:1.5rem;padding-top:.5rem;transition:padding-top .11s cubic-bezier(0,0,.38,.9),padding-bottom .11s cubic-bezier(0,0,.38,.9)}.bx--accordion__item--active .bx--accordion__arrow{fill:#161616;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.bx--accordion.bx--skeleton .bx--accordion__button,.bx--accordion.bx--skeleton .bx--accordion__heading{cursor:default}.bx--accordion.bx--skeleton .bx--accordion__arrow{fill:#161616;cursor:default;pointer-events:none}.bx--accordion.bx--skeleton .bx--accordion__arrow:active,.bx--accordion.bx--skeleton .bx--accordion__arrow:focus,.bx--accordion.bx--skeleton .bx--accordion__arrow:hover{border:none;cursor:default;outline:none}.bx--accordion.bx--skeleton .bx--accordion__heading:hover:before{background-color:transparent}.bx--accordion--end.bx--skeleton .bx--accordion__arrow{margin-left:1rem}.bx--skeleton .bx--accordion__heading:focus .bx--accordion__arrow{border:none;cursor:default;outline:none}.bx--accordion__title.bx--skeleton__text{margin-bottom:0}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--accordion__arrow,.bx--accordion__item--active .bx--accordion__arrow{fill:ButtonText}}.bx--link{color:#0f62fe;display:inline-flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;outline:none;text-decoration:none;transition:color 70ms cubic-bezier(.2,0,.38,.9)}.bx--link:hover{color:#0043ce;text-decoration:underline}.bx--link:active,.bx--link:active:visited,.bx--link:active:visited:hover{color:#161616;text-decoration:underline}.bx--link:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--link:focus{outline-style:dotted}}.bx--link:visited{color:#0f62fe}.bx--link:visited:hover{color:#0043ce}.bx--link--disabled,.bx--link--disabled:hover{color:#c6c6c6;cursor:not-allowed;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;text-decoration:none}.bx--link.bx--link--visited:visited{color:#8a3ffc}.bx--link.bx--link--visited:visited:hover{color:#0043ce}.bx--link.bx--link--inline{text-decoration:underline}.bx--link.bx--link--inline:focus,.bx--link.bx--link--inline:visited{text-decoration:none}.bx--link--disabled.bx--link--inline{text-decoration:underline}.bx--link--sm{font-size:.75rem;letter-spacing:.32px;line-height:1.33333}.bx--link--lg{font-size:1rem;font-weight:400;letter-spacing:0;line-height:1.375}.bx--link__icon{align-self:center;display:inline-flex;margin-left:.5rem}.bx--breadcrumb{display:inline;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}@media(min-width:42rem){.bx--breadcrumb{display:flex;flex-wrap:wrap}}.bx--breadcrumb-item{align-items:center;display:flex;margin-right:.5rem;position:relative}.bx--breadcrumb-item .bx--link:visited{color:#0f62fe}.bx--breadcrumb-item .bx--link:visited:hover{color:#0043ce}.bx--breadcrumb-item:after{color:#161616;content:"/";margin-left:.5rem}.bx--breadcrumb--no-trailing-slash .bx--breadcrumb-item:last-child:after{content:""}.bx--breadcrumb-item:last-child,.bx--breadcrumb-item:last-child:after{margin-right:0}.bx--breadcrumb .bx--link{white-space:nowrap}.bx--breadcrumb-item [aria-current=page],.bx--breadcrumb-item.bx--breadcrumb-item--current .bx--link{color:#161616;cursor:auto}.bx--breadcrumb-item [aria-current=page]:hover,.bx--breadcrumb-item.bx--breadcrumb-item--current .bx--link:hover{text-decoration:none}.bx--breadcrumb-item .bx--overflow-menu{height:1.125rem;position:relative;width:1.25rem}.bx--breadcrumb-item .bx--overflow-menu:focus{outline:1px solid #0f62fe}.bx--breadcrumb-item .bx--overflow-menu:hover{background:transparent}.bx--breadcrumb-item .bx--overflow-menu:after{background:#0043ce;bottom:2px;content:"";height:1px;opacity:0;position:absolute;transition:opacity 70ms cubic-bezier(.2,0,.38,.9);width:.75rem}@media screen and (prefers-reduced-motion:reduce){.bx--breadcrumb-item .bx--overflow-menu:after{transition:none}}.bx--breadcrumb-item .bx--overflow-menu:hover:after{opacity:1}.bx--breadcrumb-item .bx--overflow-menu.bx--overflow-menu--open{background:transparent;box-shadow:none}.bx--breadcrumb-item .bx--overflow-menu__icon{fill:#0f62fe;position:relative;-webkit-transform:translateY(4px);transform:translateY(4px)}.bx--breadcrumb-item .bx--overflow-menu:hover .bx--overflow-menu__icon{fill:#0043ce}.bx--breadcrumb-menu-options:focus{outline:none}.bx--breadcrumb-menu-options.bx--overflow-menu-options[data-floating-menu-direction=bottom]:after{background:transparent;border-bottom:.4375rem solid #f4f4f4;border-left:.4375rem solid transparent;border-right:.4375rem solid transparent;height:0;left:.875rem;margin:0 auto;top:-.4375rem;width:0}.bx--breadcrumb.bx--skeleton .bx--link{background:#e5e5e5;border:none;box-shadow:none;height:1rem;padding:0;pointer-events:none;position:relative;width:6.25rem}.bx--breadcrumb.bx--skeleton .bx--link:active,.bx--breadcrumb.bx--skeleton .bx--link:focus,.bx--breadcrumb.bx--skeleton .bx--link:hover{border:none;cursor:default;outline:none}.bx--breadcrumb.bx--skeleton .bx--link:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--breadcrumb.bx--skeleton .bx--link:before{-webkit-animation:none;animation:none}}.bx--btn{align-items:center;border-radius:0;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:.875rem;font-weight:400;justify-content:space-between;letter-spacing:.16px;line-height:1.28572;margin:0;max-width:20rem;min-height:3rem;outline:none;padding:calc(.875rem - 3px) 63px calc(.875rem - 3px) 15px;position:relative;text-align:left;text-decoration:none;transition:background 70ms cubic-bezier(0,0,.38,.9),box-shadow 70ms cubic-bezier(0,0,.38,.9),border-color 70ms cubic-bezier(0,0,.38,.9),outline 70ms cubic-bezier(0,0,.38,.9);vertical-align:top}.bx--btn.bx--btn--disabled,.bx--btn.bx--btn--disabled:focus,.bx--btn.bx--btn--disabled:hover,.bx--btn:disabled,.bx--btn:focus:disabled,.bx--btn:hover:disabled{background:#c6c6c6;border-color:#c6c6c6;box-shadow:none;color:#8d8d8d;cursor:not-allowed}.bx--btn .bx--btn__icon{flex-shrink:0;height:1rem;position:absolute;right:1rem;width:1rem}.bx--btn::-moz-focus-inner{border:0;padding:0}.bx--btn--primary{background-color:#0f62fe;border:1px solid transparent;color:#fff}.bx--btn--primary:hover{background-color:#0353e9}.bx--btn--primary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--primary:active{background-color:#002d9c}.bx--btn--primary .bx--btn__icon,.bx--btn--primary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--primary:hover{color:#fff}.bx--btn--secondary{background-color:#393939;border:1px solid transparent;color:#fff}.bx--btn--secondary:hover{background-color:#4c4c4c}.bx--btn--secondary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--secondary:active{background-color:#6f6f6f}.bx--btn--secondary .bx--btn__icon,.bx--btn--secondary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--secondary:focus,.bx--btn--secondary:hover{color:#fff}.bx--btn--tertiary{background-color:transparent;border:1px solid #0f62fe;color:#0f62fe}.bx--btn--tertiary:hover{background-color:#0353e9}.bx--btn--tertiary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--tertiary .bx--btn__icon,.bx--btn--tertiary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--tertiary:hover{color:#fff}.bx--btn--tertiary:focus{background-color:#0f62fe;color:#fff}.bx--btn--tertiary:active{background-color:#002d9c;border-color:transparent;color:#fff}.bx--btn--tertiary.bx--btn--disabled,.bx--btn--tertiary.bx--btn--disabled:focus,.bx--btn--tertiary.bx--btn--disabled:hover,.bx--btn--tertiary:disabled,.bx--btn--tertiary:focus:disabled,.bx--btn--tertiary:hover:disabled{background:transparent;color:#8d8d8d;outline:none}.bx--btn--ghost{background-color:transparent;border:1px solid transparent;color:#0f62fe;padding:calc(.875rem - 3px) 16px}.bx--btn--ghost:hover{background-color:#e5e5e5}.bx--btn--ghost:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--ghost .bx--btn__icon,.bx--btn--ghost .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--ghost .bx--btn__icon{margin-left:.5rem;position:static}.bx--btn--ghost:active,.bx--btn--ghost:hover{color:#0043ce}.bx--btn--ghost:active{background-color:#c6c6c6}.bx--btn--ghost.bx--btn--disabled,.bx--btn--ghost.bx--btn--disabled:focus,.bx--btn--ghost.bx--btn--disabled:hover,.bx--btn--ghost:disabled,.bx--btn--ghost:focus:disabled,.bx--btn--ghost:hover:disabled{background:transparent;border-color:transparent;color:#8d8d8d;outline:none}.bx--btn--ghost.bx--btn--sm{padding:calc(.375rem - 3px) 16px}.bx--btn--ghost.bx--btn--field,.bx--btn--ghost.bx--btn--md{padding:calc(.675rem - 3px) 16px}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{outline:1px solid transparent}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{outline-style:dotted}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:before{display:inline-block}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:before{transition:none}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--a11y:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--a11y:before{transition:none}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:before{border-style:solid;content:"";height:0;width:0}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after{width:auto}}@supports(-ms-accelerator:true){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after{width:auto}}@supports(-ms-ime-align:auto){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after{border:1px solid transparent}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:after{content:attr(aria-label)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--a11y:after{content:none}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible:before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus:before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover:before{opacity:1}@-webkit-keyframes tooltip-fade{0%{opacity:0}to{opacity:1}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus.bx--tooltip--a11y:before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--hidden .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger svg,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover svg{fill:currentColor}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--btn--disabled .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--btn--disabled.bx--tooltip--a11y:after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--btn--disabled.bx--tooltip--a11y:before{clip:rect(0,0,0,0);margin:-1px;opacity:0;overflow:hidden}.bx--btn.bx--btn--icon-only:not(.bx--tooltip--hidden) .bx--assistive-text{pointer-events:all}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{border-color:#0f62fe}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:active:not([disabled]){border-color:transparent}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{outline-color:transparent}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger[disabled]:active,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger[disabled]:focus,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger[disabled]:hover{fill:#8d8d8d;cursor:not-allowed}.bx--tooltip__trigger.bx--btn--icon-only--top{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--btn--icon-only--top:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--top:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--top:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--btn--icon-only--top:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--top:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after,.bx--tooltip__trigger.bx--btn--icon-only--top:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after,.bx--tooltip__trigger.bx--btn--icon-only--top:before{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--top:after,.bx--tooltip__trigger.bx--btn--icon-only--top:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--btn--icon-only--top:after,.bx--tooltip__trigger.bx--btn--icon-only--top:before{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--top:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--btn--icon-only--top:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--btn--icon-only--top:focus:after,.bx--tooltip__trigger.bx--btn--icon-only--top:focus:before,.bx--tooltip__trigger.bx--btn--icon-only--top:hover:after,.bx--tooltip__trigger.bx--btn--icon-only--top:hover:before{opacity:1}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after,.bx--tooltip__trigger.bx--btn--icon-only--top:before{left:50%;top:0}.bx--tooltip__trigger.bx--btn--icon-only--top:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:after{left:50%;top:-.8125rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start:before{left:50%;top:0}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start:after{left:0;top:-.8125rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center:before{left:50%;top:0}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center:after{left:50%;top:-.8125rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end:before{left:50%;top:0}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end:after{left:auto;right:0;top:-.8125rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--btn--icon-only--right{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--btn--icon-only--right:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--right:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--right:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--btn--icon-only--right:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--right:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after,.bx--tooltip__trigger.bx--btn--icon-only--right:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after,.bx--tooltip__trigger.bx--btn--icon-only--right:before{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--right:after,.bx--tooltip__trigger.bx--btn--icon-only--right:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--btn--icon-only--right:after,.bx--tooltip__trigger.bx--btn--icon-only--right:before{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--right:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--btn--icon-only--right:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--btn--icon-only--right:focus:after,.bx--tooltip__trigger.bx--btn--icon-only--right:focus:before,.bx--tooltip__trigger.bx--btn--icon-only--right:hover:after,.bx--tooltip__trigger.bx--btn--icon-only--right:hover:before{opacity:1}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after,.bx--tooltip__trigger.bx--btn--icon-only--right:before{right:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--right:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start:before{right:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center:before{right:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end:before{right:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--bottom:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--btn--icon-only--bottom:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus:before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover:before{opacity:1}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start:after{bottom:-.8125rem;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end:after{bottom:-.8125rem;left:auto;right:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--btn--icon-only--left{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--btn--icon-only--left:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--left:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--left:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--btn--icon-only--left:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--left:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after,.bx--tooltip__trigger.bx--btn--icon-only--left:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after,.bx--tooltip__trigger.bx--btn--icon-only--left:before{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--left:after,.bx--tooltip__trigger.bx--btn--icon-only--left:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--btn--icon-only--left:after,.bx--tooltip__trigger.bx--btn--icon-only--left:before{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--left:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--btn--icon-only--left:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--btn--icon-only--left:focus:after,.bx--tooltip__trigger.bx--btn--icon-only--left:focus:before,.bx--tooltip__trigger.bx--btn--icon-only--left:hover:after,.bx--tooltip__trigger.bx--btn--icon-only--left:hover:before{opacity:1}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--btn--icon-only--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after,.bx--tooltip__trigger.bx--btn--icon-only--left:before{left:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--left:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start:before{left:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center:before{left:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end:before{left:0;top:50%}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--btn--icon-only{padding-left:.9375rem;padding-right:.9375rem}.bx--btn--icon-only .bx--btn__icon{position:static}.bx--btn--icon-only.bx--btn--danger--ghost .bx--btn__icon,.bx--btn--icon-only.bx--btn--ghost .bx--btn__icon{margin:0}.bx--btn--icon-only.bx--btn--selected{background:#e0e0e0}.bx--btn path[data-icon-path=inner-path]{fill:none}.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon,.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:#161616}.bx--btn--ghost.bx--btn--icon-only[disabled] .bx--btn__icon,.bx--btn--ghost.bx--btn--icon-only[disabled] .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn.bx--btn--icon-only.bx--btn--ghost[disabled]:hover .bx--btn__icon{fill:#8d8d8d}.bx--btn--ghost.bx--btn--icon-only[disabled]{cursor:not-allowed}.bx--btn--field.bx--btn--icon-only,.bx--btn--md.bx--btn--icon-only{padding-left:.6875rem;padding-right:.6875rem}.bx--btn--sm.bx--btn--icon-only{padding-left:.4375rem;padding-right:.4375rem}.bx--btn--danger{background-color:#da1e28;border:1px solid transparent;color:#fff}.bx--btn--danger:hover{background-color:#b81921}.bx--btn--danger:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--danger:active{background-color:#750e13}.bx--btn--danger .bx--btn__icon,.bx--btn--danger .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--danger:hover{color:#fff}.bx--btn--danger--tertiary,.bx--btn--danger-tertiary{background-color:transparent;border:1px solid #da1e28;color:#da1e28}.bx--btn--danger--tertiary:hover,.bx--btn--danger-tertiary:hover{background-color:#b81921}.bx--btn--danger--tertiary:focus,.bx--btn--danger-tertiary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--danger--tertiary:active,.bx--btn--danger-tertiary:active{background-color:#750e13}.bx--btn--danger--tertiary .bx--btn__icon,.bx--btn--danger--tertiary .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--danger-tertiary .bx--btn__icon,.bx--btn--danger-tertiary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--danger--tertiary:hover,.bx--btn--danger-tertiary:hover{border-color:#b81921;color:#fff}.bx--btn--danger--tertiary:focus,.bx--btn--danger-tertiary:focus{background-color:#da1e28;color:#fff}.bx--btn--danger--tertiary:active,.bx--btn--danger-tertiary:active{border-color:#750e13;color:#fff}.bx--btn--danger--tertiary.bx--btn--disabled,.bx--btn--danger--tertiary.bx--btn--disabled:focus,.bx--btn--danger--tertiary.bx--btn--disabled:hover,.bx--btn--danger--tertiary:disabled,.bx--btn--danger--tertiary:focus:disabled,.bx--btn--danger--tertiary:hover:disabled,.bx--btn--danger-tertiary.bx--btn--disabled,.bx--btn--danger-tertiary.bx--btn--disabled:focus,.bx--btn--danger-tertiary.bx--btn--disabled:hover,.bx--btn--danger-tertiary:disabled,.bx--btn--danger-tertiary:focus:disabled,.bx--btn--danger-tertiary:hover:disabled{background:transparent;color:#8d8d8d;outline:none}.bx--btn--danger--ghost,.bx--btn--danger-ghost{background-color:transparent;border:1px solid transparent;color:#da1e28;padding:calc(.875rem - 3px) 16px}.bx--btn--danger--ghost:hover,.bx--btn--danger-ghost:hover{background-color:#b81921}.bx--btn--danger--ghost:focus,.bx--btn--danger-ghost:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--danger--ghost:active,.bx--btn--danger-ghost:active{background-color:#750e13}.bx--btn--danger--ghost .bx--btn__icon,.bx--btn--danger--ghost .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--danger-ghost .bx--btn__icon,.bx--btn--danger-ghost .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--danger--ghost .bx--btn__icon,.bx--btn--danger-ghost .bx--btn__icon{margin-left:.5rem;position:static}.bx--btn--danger--ghost:active,.bx--btn--danger--ghost:hover,.bx--btn--danger-ghost:active,.bx--btn--danger-ghost:hover{color:#fff}.bx--btn--danger--ghost.bx--btn--disabled,.bx--btn--danger--ghost.bx--btn--disabled:focus,.bx--btn--danger--ghost.bx--btn--disabled:hover,.bx--btn--danger--ghost:disabled,.bx--btn--danger--ghost:focus:disabled,.bx--btn--danger--ghost:hover:disabled,.bx--btn--danger-ghost.bx--btn--disabled,.bx--btn--danger-ghost.bx--btn--disabled:focus,.bx--btn--danger-ghost.bx--btn--disabled:hover,.bx--btn--danger-ghost:disabled,.bx--btn--danger-ghost:focus:disabled,.bx--btn--danger-ghost:hover:disabled{background:transparent;border-color:transparent;color:#c6c6c6;outline:none}.bx--btn--danger--ghost.bx--btn--sm,.bx--btn--danger-ghost.bx--btn--sm{padding:calc(.375rem - 3px) 16px}.bx--btn--danger--ghost.bx--btn--field,.bx--btn--danger--ghost.bx--btn--md,.bx--btn--danger-ghost.bx--btn--field,.bx--btn--danger-ghost.bx--btn--md{padding:calc(.675rem - 3px) 16px}.bx--btn--sm{min-height:2rem;padding:calc(.375rem - 3px) 60px calc(.375rem - 3px) 12px}.bx--btn--xl:not(.bx--btn--icon-only){align-items:baseline;min-height:5rem;padding-left:1rem;padding-right:4rem;padding-top:1rem}.bx--btn--lg:not(.bx--btn--icon-only){align-items:baseline;min-height:4rem;padding-left:1rem;padding-right:4rem;padding-top:1rem}.bx--btn--field,.bx--btn--md{min-height:2.5rem;padding:calc(.675rem - 3px) 60px calc(.675rem - 3px) 12px}.bx--btn--expressive{font-size:1rem;font-weight:400;letter-spacing:0;line-height:1.375;min-height:3rem}.bx--btn--icon-only.bx--btn--expressive{padding:12px 13px}.bx--btn.bx--btn--expressive .bx--btn__icon{height:1.25rem;width:1.25rem}.bx--btn-set .bx--btn.bx--btn--expressive{max-width:20rem}.bx--btn.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative;width:9.375rem}.bx--btn.bx--skeleton:active,.bx--btn.bx--skeleton:focus,.bx--btn.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--btn.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--btn.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--btn-set{display:flex}.bx--btn-set--stacked{flex-direction:column}.bx--btn-set .bx--btn{max-width:12.25rem;width:100%}.bx--btn-set .bx--btn:not(:focus){box-shadow:-.0625rem 0 0 0 #e0e0e0}.bx--btn-set .bx--btn:first-of-type:not(:focus),.bx--btn-set .bx--btn:focus+.bx--btn{box-shadow:inherit}.bx--btn-set--stacked .bx--btn:not(:focus){box-shadow:0 -.0625rem 0 0 #e0e0e0}.bx--btn-set--stacked .bx--btn:first-of-type:not(:focus){box-shadow:inherit}.bx--btn-set .bx--btn.bx--btn--disabled{box-shadow:-.0625rem 0 0 0 #8d8d8d}.bx--btn-set .bx--btn.bx--btn--disabled:first-of-type{box-shadow:none}.bx--btn-set--stacked .bx--btn.bx--btn--disabled{box-shadow:0 -.0625rem 0 0 #8d8d8d}.bx--btn-set--stacked .bx--btn.bx--btn--disabled:first-of-type{box-shadow:none}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--btn:focus{color:Highlight;outline:1px solid Highlight}.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon,.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:ButtonText}}.bx--fieldset{margin-bottom:2rem}.bx--fieldset--no-margin{margin-bottom:0}.bx--form-item{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--label{color:#525252;display:inline-block;line-height:1.33333;line-height:1rem;margin-bottom:.5rem;vertical-align:initial}.bx--label,.bx--label .bx--tooltip__trigger{font-size:.75rem;font-weight:400;letter-spacing:.32px}.bx--label .bx--tooltip__trigger{line-height:1.33333}.bx--label.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;height:.875rem;padding:0;pointer-events:none;position:relative;width:4.6875rem}.bx--label.bx--skeleton:active,.bx--label.bx--skeleton:focus,.bx--label.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--label.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--label.bx--skeleton:before{-webkit-animation:none;animation:none}}input[type=number]{font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace}.bx--combo-box[data-invalid] .bx--text-input:not(:focus),.bx--list-box[data-invalid]:not(:focus),.bx--number[data-invalid] input[type=number]:not(:focus),.bx--select-input__wrapper[data-invalid] .bx--select-input:not(:focus),.bx--text-area__wrapper[data-invalid]>.bx--text-area--invalid:not(:focus),.bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--combo-box[data-invalid] .bx--text-input:not(:focus),.bx--list-box[data-invalid]:not(:focus),.bx--number[data-invalid] input[type=number]:not(:focus),.bx--select-input__wrapper[data-invalid] .bx--select-input:not(:focus),.bx--text-area__wrapper[data-invalid]>.bx--text-area--invalid:not(:focus),.bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline-style:dotted}}.bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--date-picker-input__wrapper--warn~.bx--form-requirement,.bx--date-picker-input__wrapper~.bx--form-requirement,.bx--list-box--warning~.bx--form-requirement,.bx--list-box[data-invalid]~.bx--form-requirement,.bx--number[data-invalid] .bx--number__input-wrapper~.bx--form-requirement,.bx--number__input-wrapper--warning~.bx--form-requirement,.bx--select--warning .bx--select-input__wrapper~.bx--form-requirement,.bx--select-input__wrapper[data-invalid]~.bx--form-requirement,.bx--text-area__wrapper[data-invalid]~.bx--form-requirement,.bx--text-input__field-wrapper--warning>.bx--text-input~.bx--form-requirement,.bx--text-input__field-wrapper--warning~.bx--form-requirement,.bx--text-input__field-wrapper[data-invalid]~.bx--form-requirement,.bx--time-picker--invalid~.bx--form-requirement,.bx--time-picker[data-invalid]~.bx--form-requirement,input[data-invalid]~.bx--form-requirement{display:block;font-weight:400;max-height:12.5rem;overflow:visible}.bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--date-picker-input__wrapper~.bx--form-requirement,.bx--list-box[data-invalid]~.bx--form-requirement,.bx--number[data-invalid] .bx--number__input-wrapper~.bx--form-requirement,.bx--select-input__wrapper[data-invalid]~.bx--form-requirement,.bx--text-area__wrapper[data-invalid]~.bx--form-requirement,.bx--text-input__field-wrapper[data-invalid]~.bx--form-requirement,.bx--time-picker--invalid~.bx--form-requirement,.bx--time-picker[data-invalid]~.bx--form-requirement,input[data-invalid]~.bx--form-requirement{color:#da1e28}.bx--form--fluid .bx--text-input__field-wrapper--warning,.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]{display:block}.bx--form--fluid .bx--fieldset{margin:0}.bx--form--fluid input[data-invalid]{outline:none}.bx--form--fluid .bx--form-requirement{margin:0;padding:.5rem 2.5rem .5rem 1rem}input:not(output):not([data-invalid]):-moz-ui-invalid{box-shadow:none}.bx--form-requirement{display:none;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;margin:.25rem 0 0;max-height:0;overflow:hidden}.bx--select--inline .bx--form__helper-text{margin-top:0}.bx--form__helper-text{color:#525252;font-size:.75rem;letter-spacing:.32px;line-height:1.33333;margin-top:.25rem;opacity:1;width:100%;z-index:0}.bx--form__helper-text--disabled,.bx--label--disabled,fieldset[disabled] .bx--form__helper-text,fieldset[disabled] .bx--label{color:#c6c6c6}.bx--form-item.bx--checkbox-wrapper{margin-bottom:.25rem;position:relative}.bx--form-item.bx--checkbox-wrapper:first-of-type{margin-top:.1875rem}.bx--label+.bx--form-item.bx--checkbox-wrapper{margin-top:-.125rem}.bx--form-item.bx--checkbox-wrapper:last-of-type{margin-bottom:.1875rem}.bx--checkbox{clip:rect(0,0,0,0);border:0;height:1px;left:.7rem;margin:-1px;overflow:hidden;padding:0;position:absolute;top:1.25rem;visibility:inherit;white-space:nowrap;width:1px}.bx--checkbox-label{cursor:pointer;display:flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;min-height:1.5rem;padding-left:1.25rem;padding-top:.1875rem;position:relative;-webkit-user-select:none;user-select:none}.bx--checkbox-label-text{padding-left:.375rem}.bx--checkbox-label:after,.bx--checkbox-label:before{box-sizing:border-box}.bx--checkbox-label:before{background-color:transparent;border:1px solid #161616;border-radius:1px;content:"";height:1rem;left:0;margin:.125rem .125rem .125rem .1875rem;position:absolute;top:.125rem;width:1rem}.bx--checkbox-label:after{background:none;border-bottom:2px solid #fff;border-left:2px solid #fff;content:"";height:.3125rem;left:.4375rem;margin-top:-.1875rem;position:absolute;top:.5rem;-webkit-transform:scale(0) rotate(-45deg);transform:scale(0) rotate(-45deg);-webkit-transform-origin:bottom right;transform-origin:bottom right;width:.5625rem}.bx--checkbox-label[data-contained-checkbox-state=mixed]:before,.bx--checkbox-label[data-contained-checkbox-state=true]:before,.bx--checkbox:checked+.bx--checkbox-label:before,.bx--checkbox:indeterminate+.bx--checkbox-label:before{background-color:#161616;border-color:#161616;border-width:1px}.bx--checkbox-label[data-contained-checkbox-state=true]:after,.bx--checkbox:checked+.bx--checkbox-label:after{-webkit-transform:scale(1) rotate(-45deg);transform:scale(1) rotate(-45deg)}.bx--checkbox-label[data-contained-checkbox-state=mixed]:after,.bx--checkbox:indeterminate+.bx--checkbox-label:after{border-bottom:2px solid #fff;border-left:0 solid #fff;top:.6875rem;-webkit-transform:scale(1) rotate(0deg);transform:scale(1) rotate(0deg);width:.5rem}.bx--checkbox-label[data-contained-checkbox-state=mixed].bx--checkbox-label__focus:before,.bx--checkbox-label[data-contained-checkbox-state=true].bx--checkbox-label__focus:before,.bx--checkbox-label__focus:before,.bx--checkbox:checked:focus+.bx--checkbox-label:before,.bx--checkbox:focus+.bx--checkbox-label:before,.bx--checkbox:indeterminate:focus+.bx--checkbox-label:before{outline:2px solid #0f62fe;outline-offset:1px}.bx--checkbox-label[data-contained-checkbox-disabled=true],.bx--checkbox:disabled+.bx--checkbox-label{color:#c6c6c6;cursor:not-allowed}.bx--checkbox-label[data-contained-checkbox-disabled=true]:before,.bx--checkbox:disabled+.bx--checkbox-label:before{border-color:#c6c6c6}.bx--checkbox-label[data-contained-checkbox-state=mixed][data-contained-checkbox-disabled=true]:before,.bx--checkbox-label[data-contained-checkbox-state=true][data-contained-checkbox-disabled=true]:before,.bx--checkbox:checked:disabled+.bx--checkbox-label:before,.bx--checkbox:indeterminate:disabled+.bx--checkbox-label:before{background-color:#c6c6c6}.bx--checkbox-label-text.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;height:1rem;margin:.0625rem 0 0 .375rem;padding:0;pointer-events:none;position:relative;width:6.25rem}.bx--checkbox-label-text.bx--skeleton:active,.bx--checkbox-label-text.bx--skeleton:focus,.bx--checkbox-label-text.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--checkbox-label-text.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--checkbox-label-text.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--checkbox--inline{position:relative}@-webkit-keyframes hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@-webkit-keyframes show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}.bx--snippet--disabled,.bx--snippet--disabled .bx--btn.bx--snippet-btn--expand{background-color:#f4f4f4;color:#c6c6c6}.bx--snippet--disabled .bx--copy-btn:hover,.bx--snippet--disabled .bx--snippet-btn--expand:hover{background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--snippet--disabled .bx--snippet-btn--expand .bx--icon-chevron--down,.bx--snippet--disabled .bx--snippet__icon{fill:#c6c6c6}.bx--snippet code{font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333}.bx--snippet--inline{background-color:#f4f4f4;border:2px solid transparent;border-radius:4px;color:#161616;cursor:pointer;display:inline;padding:0;position:relative}.bx--snippet--inline:hover{background-color:#e0e0e0}.bx--snippet--inline:active{background-color:#c6c6c6}.bx--snippet--inline:focus{border:2px solid #0f62fe;outline:none}.bx--snippet--inline:before{border-style:solid;content:"";display:none;height:0;position:absolute;width:0;z-index:6000}.bx--snippet--inline .bx--copy-btn__feedback{clip:auto;background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);box-sizing:initial;color:#fff;display:none;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;margin:auto;max-width:13rem;min-width:1.5rem;overflow:visible;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--snippet--inline .bx--copy-btn__feedback{width:auto}}@supports(-ms-accelerator:true){.bx--snippet--inline .bx--copy-btn__feedback{width:auto}}@supports(-ms-ime-align:auto){.bx--snippet--inline .bx--copy-btn__feedback{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--snippet--inline .bx--copy-btn__feedback{border:1px solid transparent}}.bx--snippet--inline .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--snippet--inline .bx--assistive-text,.bx--snippet--inline+.bx--assistive-text,.bx--snippet--inline:after,.bx--snippet--inline:before{bottom:0;left:50%}.bx--snippet--inline:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--snippet--inline .bx--assistive-text,.bx--snippet--inline+.bx--assistive-text,.bx--snippet--inline:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--snippet--inline.bx--copy-btn--animating .bx--copy-btn__feedback,.bx--snippet--inline.bx--copy-btn--animating:before{display:block}.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-out .bx--copy-btn__feedback,.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-out:before{-webkit-animation:hide-feedback .11s cubic-bezier(.2,0,.38,.9);animation:hide-feedback .11s cubic-bezier(.2,0,.38,.9)}.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-in .bx--copy-btn__feedback,.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-in:before{-webkit-animation:show-feedback .11s cubic-bezier(.2,0,.38,.9);animation:show-feedback .11s cubic-bezier(.2,0,.38,.9)}.bx--snippet--inline code{padding:0 .5rem}.bx--snippet--inline.bx--snippet--no-copy{display:inline-block}.bx--snippet--inline.bx--snippet--no-copy:hover{background-color:#f4f4f4;cursor:auto}.bx--snippet--light.bx--snippet--inline.bx--snippet--no-copy:hover{background-color:#fff;cursor:auto}.bx--snippet--single{align-items:center;background-color:#f4f4f4;display:flex;font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.75rem;font-weight:400;height:2.5rem;letter-spacing:.32px;line-height:1.33333;max-width:48rem;padding-right:2.5rem;position:relative;width:100%}.bx--snippet--single.bx--snippet--no-copy{padding:0}.bx--snippet--single.bx--snippet--no-copy:after{right:1rem}.bx--snippet--single .bx--snippet-container{align-items:center;display:flex;height:100%;overflow-x:auto;padding-left:1rem;position:relative}.bx--snippet--single .bx--snippet-container:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--snippet--single .bx--snippet-container:focus{outline-style:dotted}}.bx--snippet--single pre{font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;padding-right:.5rem}.bx--snippet--inline code,.bx--snippet--single pre{white-space:pre}.bx--snippet--multi{background-color:#f4f4f4;display:flex;font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;max-width:48rem;padding:1rem;position:relative;width:100%}.bx--snippet--multi .bx--snippet-container{max-height:100%;min-height:100%;order:1;overflow-y:auto;position:relative;transition:max-height .15s cubic-bezier(.2,0,.38,.9)}.bx--snippet--multi.bx--snippet--expand .bx--snippet-container{padding-bottom:1rem;transition:max-height .15s cubic-bezier(.2,0,.38,.9)}.bx--snippet--multi.bx--snippet--wraptext pre{word-wrap:break-word;white-space:pre-wrap}.bx--snippet--multi .bx--snippet-container pre{overflow-x:auto;padding-bottom:1.5rem;padding-right:2.5rem}.bx--snippet--multi.bx--snippet--no-copy .bx--snippet-container pre{padding-right:0}.bx--snippet--multi.bx--snippet--expand .bx--snippet-container pre{overflow-x:auto}.bx--snippet--multi .bx--snippet-container pre:after{background-image:linear-gradient(90deg,hsla(0,0%,96%,0),#f4f4f4);content:"";height:100%;position:absolute;right:0;top:0;width:1rem}.bx--snippet--multi .bx--snippet-container pre code{overflow:hidden}.bx--snippet__icon{fill:#161616;height:1rem;transition:all 70ms cubic-bezier(.2,0,.38,.9);width:1rem}.bx--snippet-button{align-items:center;background-color:#f4f4f4;border:none;cursor:pointer;display:flex;height:2.5rem;justify-content:center;outline:none;overflow:visible;padding:0;position:absolute;right:0;top:0;width:2.5rem}.bx--snippet-button:focus{outline:2px solid #0f62fe;outline-color:#0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--snippet-button:focus{outline-style:dotted}}.bx--snippet--multi .bx--snippet-button{height:2rem;right:.5rem;top:.5rem;width:2rem}.bx--snippet-button:hover{background:#e5e5e5}.bx--snippet-button:active{background-color:#c6c6c6}.bx--btn--copy__feedback{font-family:IBM Plex Sans,Helvetica Neue,Arial,sans-serif;font-size:.875rem;font-weight:400;left:inherit;letter-spacing:.16px;line-height:1.28572;right:1.25rem;top:.75rem;z-index:6000}.bx--btn--copy__feedback:after{border:none}.bx--snippet .bx--copy-btn{top:0}.bx--snippet .bx--copy-btn,.bx--snippet-btn--expand{font-family:IBM Plex Sans,Helvetica Neue,Arial,sans-serif;position:absolute;right:0}.bx--snippet-btn--expand{align-items:center;background-color:#f4f4f4;border:0;bottom:0;color:#161616;display:inline-flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;padding:.5rem 1rem;z-index:10}.bx--snippet-btn--expand .bx--snippet-btn--text{position:relative;top:-.0625rem}.bx--snippet-btn--expand--hide.bx--snippet-btn--expand{display:none}.bx--snippet-btn--expand .bx--icon-chevron--down{fill:#161616;margin-left:.5rem;-webkit-transform:rotate(0deg);transform:rotate(0deg);transition:.15s cubic-bezier(.2,0,.38,.9)}.bx--snippet-btn--expand:hover{background:#e5e5e5;color:#161616}.bx--snippet-btn--expand:active{background-color:#c6c6c6}.bx--snippet-btn--expand:focus{border-color:transparent;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--snippet-btn--expand:focus{outline-style:dotted}}.bx--snippet--expand .bx--snippet-btn--expand .bx--icon-chevron--down{-webkit-transform:rotate(180deg);transform:rotate(180deg);transition:-webkit-transform .24s;transition:transform .24s;transition:transform .24s,-webkit-transform .24s}.bx--snippet--light,.bx--snippet--light .bx--btn.bx--snippet-btn--expand,.bx--snippet--light .bx--copy-btn,.bx--snippet--light .bx--snippet-button{background-color:#fff}.bx--snippet--light .bx--btn.bx--snippet-btn--expand:hover,.bx--snippet--light .bx--copy-btn:hover,.bx--snippet--light .bx--snippet-button:hover,.bx--snippet--light.bx--snippet--inline:hover{background-color:#e5e5e5}.bx--snippet--light .bx--btn.bx--snippet-btn--expand:active,.bx--snippet--light .bx--copy-btn:active,.bx--snippet--light .bx--snippet-button:active,.bx--snippet--light.bx--snippet--inline:active{background-color:#c6c6c6}.bx--snippet--light.bx--snippet--multi .bx--snippet-container pre:after,.bx--snippet--light.bx--snippet--single:after{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff)}.bx--snippet.bx--skeleton .bx--snippet-container{height:100%;width:100%}.bx--snippet-button .bx--btn--copy__feedback{left:50%;right:auto;top:3.175rem}.bx--snippet-button .bx--btn--copy__feedback:before{top:0}.bx--snippet-button .bx--btn--copy__feedback:after{top:-.25rem}.bx--snippet--multi .bx--copy-btn{height:2rem;right:.5rem;top:.5rem;width:2rem;z-index:10}.bx--snippet--multi .bx--snippet-button .bx--btn--copy__feedback{top:2.675rem}.bx--snippet--inline .bx--btn--copy__feedback{left:50%;right:auto;top:calc(100% - .25rem)}.bx--snippet__overflow-indicator--left,.bx--snippet__overflow-indicator--right{flex:1 0 auto;width:1rem;z-index:1}.bx--snippet__overflow-indicator--left{background-image:linear-gradient(270deg,transparent,#f4f4f4);margin-right:-1rem;order:0}.bx--snippet__overflow-indicator--right{background-image:linear-gradient(90deg,transparent,#f4f4f4);margin-left:-1rem;order:2}.bx--snippet--single .bx--snippet__overflow-indicator--left,.bx--snippet--single .bx--snippet__overflow-indicator--right{height:calc(100% - .25rem);position:absolute;width:2rem}.bx--snippet--single .bx--snippet__overflow-indicator--right{right:2.5rem}.bx--snippet--single.bx--snippet--no-copy .bx--snippet__overflow-indicator--right{right:0}.bx--snippet--single .bx--snippet-container:focus~.bx--snippet__overflow-indicator--right{right:2.625rem}.bx--snippet--single .bx--snippet-container:focus+.bx--snippet__overflow-indicator--left{left:.125rem}.bx--snippet--light .bx--snippet__overflow-indicator--left{background-image:linear-gradient(270deg,transparent,#fff)}.bx--snippet--light .bx--snippet__overflow-indicator--right{background-image:linear-gradient(90deg,transparent,#fff)}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports(-webkit-appearance:none) and (stroke-color:transparent){.bx--snippet__overflow-indicator--left{background-image:linear-gradient(270deg,hsla(0,0%,96%,0),#f4f4f4)}.bx--snippet__overflow-indicator--right{background-image:linear-gradient(90deg,hsla(0,0%,96%,0),#f4f4f4)}}}.bx--snippet--multi.bx--skeleton{height:6.125rem}.bx--snippet--single.bx--skeleton{height:3.5rem}.bx--snippet.bx--skeleton span{background:#e5e5e5;border:none;box-shadow:none;display:block;height:1rem;margin-top:.5rem;padding:0;pointer-events:none;position:relative;width:100%}.bx--snippet.bx--skeleton span:active,.bx--snippet.bx--skeleton span:focus,.bx--snippet.bx--skeleton span:hover{border:none;cursor:default;outline:none}.bx--snippet.bx--skeleton span:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--snippet.bx--skeleton span:before{-webkit-animation:none;animation:none}}.bx--snippet.bx--skeleton span:first-child{margin:0}.bx--snippet.bx--skeleton span:nth-child(2){width:85%}.bx--snippet.bx--skeleton span:nth-child(3){width:95%}.bx--snippet--single.bx--skeleton .bx--snippet-container{padding-bottom:0}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--snippet__icon{fill:ButtonText}.bx--snippet--inline:focus{color:Highlight;outline:1px solid Highlight}.bx--snippet--multi,.bx--snippet--single{outline:1px solid transparent}}.bx--list-box__wrapper--inline{grid-gap:.25rem;align-items:center;display:inline-grid;grid-template:auto auto/auto auto}.bx--list-box__wrapper--inline .bx--label{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--list-box__wrapper--inline .bx--form-requirement,.bx--list-box__wrapper--inline .bx--form__helper-text,.bx--list-box__wrapper--inline .bx--label{margin:0}.bx--list-box__wrapper--inline .bx--form__helper-text{max-width:none}.bx--list-box__wrapper--inline .bx--form-requirement{grid-column:2}.bx--list-box{background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;color:#161616;cursor:pointer;height:2.5rem;max-height:2.5rem;position:relative;transition:all 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--list-box:hover{background-color:#e5e5e5}.bx--list-box--lg,.bx--list-box--xl{height:3rem;max-height:3rem}.bx--list-box--sm{height:2rem;max-height:2rem}.bx--list-box--expanded{border-bottom-color:#e0e0e0}.bx--list-box--expanded:hover{background-color:#f4f4f4}.bx--list-box--expanded:hover.bx--list-box--light:hover{background-color:#fff}.bx--list-box .bx--text-input{height:100%;min-width:0}.bx--list-box__invalid-icon{fill:#da1e28;position:absolute;right:2.5rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bx--list-box__invalid-icon--warning{fill:#f1c21b}.bx--list-box__invalid-icon--warning path[fill]{fill:#000;opacity:1}.bx--list-box.bx--list-box--warning .bx--list-box__field,.bx--list-box[data-invalid] .bx--list-box__field{border-bottom:0;padding-right:4rem}.bx--list-box[data-invalid].bx--list-box--inline .bx--list-box__field{padding-right:3.5rem}.bx--list-box--light{background-color:#fff}.bx--list-box--light:hover{background-color:#e5e5e5}.bx--list-box--light .bx--list-box__menu{background:#fff}.bx--list-box--light .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box--light.bx--list-box--expanded{border-bottom-color:transparent}.bx--list-box--disabled:hover{background-color:#f4f4f4}.bx--list-box--light.bx--list-box--disabled{background-color:#fff}.bx--list-box--disabled,.bx--list-box--disabled .bx--list-box__field,.bx--list-box--disabled .bx--list-box__field:focus{border-bottom-color:transparent;outline:none}.bx--list-box--disabled .bx--list-box__label,.bx--list-box--disabled.bx--list-box--inline .bx--list-box__label{color:#c6c6c6}.bx--list-box--disabled .bx--list-box__menu-icon>svg,.bx--list-box--disabled .bx--list-box__selection>svg{fill:#c6c6c6}.bx--list-box--disabled,.bx--list-box--disabled .bx--list-box__field,.bx--list-box--disabled .bx--list-box__menu-icon{cursor:not-allowed}.bx--list-box--disabled .bx--list-box__menu-item,.bx--list-box--disabled .bx--list-box__menu-item--highlighted,.bx--list-box--disabled .bx--list-box__menu-item:hover{color:#c6c6c6;text-decoration:none}.bx--list-box--disabled .bx--list-box__selection:hover{cursor:not-allowed}.bx--list-box--disabled.bx--list-box[data-invalid] .bx--list-box__field{padding-right:3rem}.bx--list-box--disabled.bx--list-box[data-invalid].bx--list-box--inline .bx--list-box__field{padding-right:2rem}.bx--list-box.bx--list-box--inline{background-color:transparent;border-width:0}.bx--list-box.bx--list-box--inline:hover{background-color:#e5e5e5}.bx--list-box.bx--list-box--inline.bx--list-box--expanded{border-bottom-width:0}.bx--list-box.bx--list-box--inline.bx--list-box--expanded .bx--list-box__field[aria-expanded=true]{border-width:0}.bx--list-box.bx--list-box--inline.bx--list-box--disabled:hover{background-color:transparent}.bx--list-box.bx--list-box--inline.bx--list-box--expanded:hover{background-color:#fff}.bx--list-box.bx--list-box--inline .bx--list-box__field{padding:0 2rem 0 .5rem}.bx--list-box.bx--list-box--inline .bx--list-box__menu-icon{right:.5rem}.bx--list-box.bx--list-box--inline .bx--list-box__invalid-icon{right:2rem}.bx--list-box--inline .bx--list-box__label{color:#161616}.bx--list-box--inline .bx--list-box__field{height:100%}.bx--dropdown--inline .bx--list-box__field{max-width:30rem}.bx--dropdown--inline .bx--list-box__menu{max-width:30rem;min-width:18rem}.bx--list-box__field{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:inline-flex;height:calc(100% + 1px);outline:none;overflow:hidden;padding:0 3rem 0 1rem;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;width:100%}.bx--list-box__field::-moz-focus-inner{border:0}.bx--list-box__field:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--list-box__field:focus{outline-style:dotted}}.bx--list-box__field[disabled]{color:#c6c6c6;outline:none}.bx--list-box__field .bx--text-input{padding-right:4.5rem}.bx--list-box--warning .bx--list-box__field .bx--text-input,.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input{padding-right:6.125rem}.bx--list-box--warning .bx--list-box__field .bx--text-input+.bx--list-box__invalid-icon,.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input+.bx--list-box__invalid-icon{right:4.125rem}.bx--list-box__field .bx--text-input--empty{padding-right:3rem}.bx--list-box--warning .bx--list-box__field .bx--text-input--empty,.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input--empty{padding-right:4.5rem}.bx--list-box--warning .bx--list-box__field .bx--text-input--empty+.bx--list-box__invalid-icon,.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input--empty+.bx--list-box__invalid-icon{right:2.5rem}.bx--list-box__label{color:#161616;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.bx--list-box__menu-icon{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;height:1.5rem;justify-content:center;outline:none;padding:0;position:absolute;right:1rem;transition:-webkit-transform 70ms cubic-bezier(.2,0,.38,.9);transition:transform 70ms cubic-bezier(.2,0,.38,.9);transition:transform 70ms cubic-bezier(.2,0,.38,.9),-webkit-transform 70ms cubic-bezier(.2,0,.38,.9);width:1.5rem}.bx--list-box__menu-icon::-moz-focus-inner{border:0}.bx--list-box__menu-icon>svg{fill:#161616}.bx--list-box__menu-icon--open{justify-content:center;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:1.5rem}.bx--list-box__selection{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:2.5rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);transition:background-color 70ms cubic-bezier(.2,0,.38,.9);-webkit-user-select:none;user-select:none;width:1.5rem}.bx--list-box__selection::-moz-focus-inner{border:0}.bx--list-box__selection:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--list-box__selection:focus{outline-style:dotted}}.bx--list-box__selection:focus:hover{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--list-box__selection:focus:hover{outline-style:dotted}}.bx--list-box__selection>svg{fill:#161616}.bx--list-box--disabled .bx--list-box__selection:focus{outline:none}.bx--list-box__selection--multi{align-items:center;background-color:#393939;border-radius:.75rem;color:#fff;display:flex;font-size:.75rem;font-weight:400;height:1.5rem;justify-content:space-between;letter-spacing:.32px;line-height:1.33333;line-height:0;margin-right:.625rem;padding:.5rem .125rem .5rem .5rem;position:static;top:auto;-webkit-transform:none;transform:none;width:auto}.bx--list-box__selection--multi>svg{fill:#fff;height:1.25rem;margin-left:.25rem;padding:.125rem;width:1.25rem}.bx--list-box__selection--multi>svg:hover{background-color:#4c4c4c;border-radius:50%}.bx--list-box--disabled .bx--list-box__selection--multi{background-color:#c6c6c6;color:#f4f4f4}.bx--list-box--disabled .bx--list-box__selection--multi .bx--tag__close-icon:hover,.bx--list-box--disabled .bx--list-box__selection--multi.bx--tag--interactive:hover{background-color:#c6c6c6}.bx--list-box--disabled .bx--list-box__selection--multi>svg{fill:#f4f4f4}.bx--list-box--disabled .bx--list-box__selection--multi>svg:hover{background-color:initial}.bx--list-box__selection--multi:hover{outline:none}.bx--list-box__menu{background-color:#f4f4f4;box-shadow:0 2px 6px rgba(0,0,0,.3);left:0;overflow-y:auto;position:absolute;right:0;transition:max-height .11s cubic-bezier(.2,0,.38,.9);width:100%;z-index:9100}.bx--list-box__menu:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--list-box__menu:focus{outline-style:dotted}}.bx--list-box .bx--list-box__field[aria-expanded=false]+.bx--list-box__menu{max-height:0}.bx--list-box--expanded .bx--list-box__menu{max-height:13.75rem}.bx--list-box--expanded.bx--list-box--lg .bx--list-box__menu,.bx--list-box--expanded.bx--list-box--xl .bx--list-box__menu{max-height:16.5rem}.bx--list-box--expanded.bx--list-box--sm .bx--list-box__menu{max-height:11rem}.bx--list-box__menu-item{color:#525252;cursor:pointer;font-size:.875rem;font-weight:400;height:2.5rem;letter-spacing:.16px;line-height:1.28572;position:relative;transition:background 70ms cubic-bezier(.2,0,.38,.9);-webkit-user-select:none;user-select:none}.bx--list-box__menu-item:hover{background-color:#e5e5e5}.bx--list-box__menu-item:active{background-color:#e0e0e0}.bx--list-box--light .bx--list-box__menu-item:hover{background-color:#e5e5e5}.bx--list-box--sm .bx--list-box__menu-item{height:2rem}.bx--list-box--lg .bx--list-box__menu-item,.bx--list-box--xl .bx--list-box__menu-item{height:3rem}.bx--list-box--disabled .bx--list-box__menu-item:hover{background-color:transparent}.bx--list-box--light .bx--list-box__menu-item:active{background-color:#e0e0e0}.bx--list-box--disabled .bx--list-box__menu-item__option:hover{border-top-color:#e0e0e0}.bx--list-box__menu-item:first-of-type .bx--list-box__menu-item__option{border-top-color:transparent}.bx--list-box__menu-item:hover .bx--list-box__menu-item__option{color:#161616}.bx--list-box__menu-item:hover+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:transparent}.bx--list-box--disabled .bx--list-box__menu-item:hover+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box__menu-item__option{border-bottom:1px solid transparent;border-top:1px solid #e0e0e0;color:#525252;display:block;font-weight:400;height:2.5rem;line-height:1rem;margin:0 1rem;outline:2px solid transparent;outline-offset:-2px;overflow:hidden;padding:.6875rem 1.5rem .6875rem 0;text-decoration:none;text-overflow:ellipsis;transition:border-color 70ms cubic-bezier(.2,0,.38,.9),color 70ms cubic-bezier(.2,0,.38,.9);white-space:nowrap}.bx--list-box__menu-item__option:focus{border-color:transparent;margin:0;outline:2px solid #0f62fe;outline-offset:-2px;padding:.6875rem 1rem}@media screen and (prefers-contrast){.bx--list-box__menu-item__option:focus{outline-style:dotted}}.bx--list-box__menu-item__option:hover{border-color:transparent;color:#161616}.bx--list-box--sm .bx--list-box__menu-item__option{height:2rem;padding-bottom:.4375rem;padding-top:.4375rem}.bx--list-box--lg .bx--list-box__menu-item__option,.bx--list-box--xl .bx--list-box__menu-item__option{height:3rem;padding-bottom:.9375rem;padding-top:.9375rem}.bx--list-box--disabled .bx--list-box__menu-item:hover .bx--list-box__menu-item__option,.bx--list-box--disabled .bx--list-box__menu-item__option{color:#c6c6c6}.bx--list-box__menu-item[disabled],.bx--list-box__menu-item[disabled] *,.bx--list-box__menu-item[disabled] .bx--list-box__menu-item__option,.bx--list-box__menu-item[disabled]:hover{color:#c6c6c6;cursor:not-allowed;outline:none}.bx--list-box__menu-item[disabled]:hover{background-color:revert}.bx--list-box__menu-item[disabled] .bx--checkbox-label:before{border-color:#c6c6c6}.bx--list-box__menu-item[disabled] .bx--list-box__menu-item__option,.bx--list-box__menu-item[disabled]:hover+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box.bx--list-box--inline .bx--list-box__menu-item__option{margin:0 .5rem}.bx--list-box.bx--list-box--inline .bx--list-box__menu-item__option:focus{margin:0;padding-left:.5rem;padding-right:.5rem}.bx--list-box__menu-item--highlighted{background-color:#e5e5e5;border-color:transparent;color:#161616}.bx--list-box__menu-item--highlighted .bx--list-box__menu-item__option,.bx--list-box__menu-item--highlighted+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:transparent}.bx--list-box__menu-item--highlighted .bx--list-box__menu-item__option{color:#161616}.bx--list-box__menu-item--active{color:#161616}.bx--list-box--light .bx--list-box__menu-item--active,.bx--list-box__menu-item--active{background-color:#e0e0e0;border-bottom-color:#e0e0e0}.bx--list-box__menu-item--active.bx--list-box__menu-item--highlighted,.bx--list-box__menu-item--active:hover{background-color:#cacaca;border-bottom-color:#cacaca}.bx--list-box__menu-item--active .bx--list-box__menu-item__option{color:#161616}.bx--list-box__menu-item--active+.bx--list-box__menu-item>.bx--list-box__menu-item__option{border-top-color:transparent}.bx--list-box__menu-item__selected-icon{fill:#161616;display:none;position:absolute;right:1rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bx--list-box--inline .bx--list-box__menu-item__selected-icon{right:.5rem}.bx--list-box__menu-item--active .bx--list-box__menu-item__selected-icon{display:block}.bx--list-box__menu-item .bx--checkbox-label{width:100%}.bx--list-box__menu-item .bx--checkbox-label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--list-box--up .bx--list-box__menu{bottom:2.5rem}.bx--list-box--up .bx--list-box--sm .bx--list-box__menu,.bx--list-box--up.bx--dropdown--sm .bx--list-box__menu,.bx--list-box--up.bx--list-box--sm .bx--list-box__menu{bottom:2rem}.bx--list-box--up .bx--list-box--lg .bx--list-box__menu,.bx--list-box--up.bx--dropdown--lg .bx--list-box__menu,.bx--list-box--up.bx--dropdown--xl .bx--list-box__menu,.bx--list-box--up.bx--list-box--lg .bx--list-box__menu,.bx--list-box--up.bx--list-box--xl .bx--list-box__menu{bottom:3rem}.bx--list-box input[role=combobox],.bx--list-box input[type=text]{background-color:inherit;min-width:0}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--list-box__field,.bx--list-box__menu,.bx--multi-select .bx--tag--filter{outline:1px solid transparent}.bx--list-box__field:focus,.bx--list-box__menu-item--highlighted .bx--list-box__menu-item__option,.bx--multi-select .bx--tag__close-icon:focus{color:Highlight;outline:1px solid Highlight}.bx--list-box__menu-icon>svg,.bx--list-box__selection--multi>svg,.bx--list-box__selection>svg{fill:ButtonText}}.bx--combo-box:hover{background-color:#f4f4f4}.bx--combo-box.bx--list-box--light:hover{background-color:#fff}.bx--combo-box .bx--text-input::-ms-clear{display:none}.bx--combo-box.bx--list-box--expanded .bx--text-input{border-bottom-color:#e0e0e0}.bx--combo-box .bx--list-box__field,.bx--combo-box.bx--list-box--disabled.bx--list-box--warning .bx--list-box__field,.bx--combo-box.bx--list-box--disabled.bx--list-box[data-invalid] .bx--list-box__field,.bx--combo-box.bx--list-box--warning .bx--list-box__field,.bx--combo-box.bx--list-box[data-invalid] .bx--list-box__field{padding:0}.bx--content-switcher{display:flex;height:2.5rem;justify-content:space-evenly;width:100%}.bx--content-switcher--sm{height:2rem}.bx--content-switcher--lg,.bx--content-switcher--xl{height:3rem}.bx--content-switcher-btn{align-items:center;background-color:transparent;border:.0625rem solid #161616;border-left:none;border-right:none;color:#525252;display:inline-flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin:0;outline:2px solid transparent;outline-offset:-2px;overflow:hidden;padding:.5rem 1rem;position:relative;text-align:left;text-decoration:none;transition:all .15s cubic-bezier(.2,0,.38,.9);white-space:nowrap;width:100%}.bx--content-switcher-btn:after{background-color:#161616;content:"";display:block;height:100%;left:0;position:absolute;top:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:bottom;transform-origin:bottom;transition:all .15s cubic-bezier(.2,0,.38,.9);width:100%}@media(prefers-reduced-motion:reduce){.bx--content-switcher-btn:after{transition:none}}.bx--content-switcher-btn:disabled:after{display:none}.bx--content-switcher-btn:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 2px #0f62fe,inset 0 0 0 3px #fff;z-index:3}.bx--content-switcher-btn:focus:after{-webkit-clip-path:inset(3px 3px 3px 3px);clip-path:inset(3px 3px 3px 3px)}.bx--content-switcher-btn:hover{color:#161616;cursor:pointer}.bx--content-switcher-btn:active,.bx--content-switcher-btn:hover{background-color:#e5e5e5;color:#161616;z-index:3}.bx--content-switcher-btn:disabled{background-color:transparent;border-color:#f4f4f4;color:#c6c6c6}.bx--content-switcher-btn:disabled:hover{cursor:not-allowed}.bx--content-switcher-btn:disabled:first-child,.bx--content-switcher-btn:disabled:last-child{border-color:#f4f4f4}.bx--content-switcher-btn:first-child{border-bottom-left-radius:.25rem;border-left:.0625rem solid #161616;border-top-left-radius:.25rem}.bx--content-switcher-btn:last-child{border-bottom-right-radius:.25rem;border-right:.0625rem solid #161616;border-top-right-radius:.25rem}.bx--content-switcher--selected,.bx--content-switcher--selected:first-child,.bx--content-switcher--selected:last-child{border:0}.bx--content-switcher-btn:before{background-color:#e0e0e0;content:"";display:block;height:1rem;left:0;position:absolute;width:.0625rem;z-index:2}.bx--content-switcher-btn:first-of-type:before{display:none}.bx--content-switcher--selected+.bx--content-switcher-btn:before,.bx--content-switcher--selected:before,.bx--content-switcher-btn:focus+.bx--content-switcher-btn:before,.bx--content-switcher-btn:focus:before,.bx--content-switcher-btn:hover+.bx--content-switcher-btn:before,.bx--content-switcher-btn:hover:before{background-color:transparent}.bx--content-switcher-btn:disabled:before,.bx--content-switcher-btn:disabled:hover+.bx--content-switcher-btn:disabled:before{background-color:#f4f4f4}.bx--content-switcher-btn.bx--content-switcher--selected:disabled+.bx--content-switcher-btn:before,.bx--content-switcher-btn.bx--content-switcher--selected:disabled:hover+.bx--content-switcher-btn:before{background-color:transparent}.bx--content-switcher__icon{fill:#525252;transition:fill 70ms cubic-bezier(.2,0,.38,.9)}.bx--content-switcher__icon+span{margin-left:.5rem}.bx--content-switcher__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:1}.bx--content-switcher-btn:focus .bx--content-switcher__icon,.bx--content-switcher-btn:hover .bx--content-switcher__icon{fill:#161616}.bx--content-switcher-btn.bx--content-switcher--selected{background-color:#161616;color:#fff;z-index:3}.bx--content-switcher-btn.bx--content-switcher--selected:after{-webkit-transform:scaleY(1);transform:scaleY(1)}.bx--content-switcher-btn.bx--content-switcher--selected:disabled{background-color:#8d8d8d;color:#c6c6c6}.bx--content-switcher-btn.bx--content-switcher--selected .bx--content-switcher__icon{fill:#fff}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--content-switcher-btn:focus{color:Highlight;outline:1px solid Highlight}}@keyframes hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}.bx--btn--copy{overflow:visible;position:relative}.bx--btn--copy .bx--btn__icon{margin-left:.3125rem}.bx--btn--copy__feedback{display:none;left:50%;position:absolute;top:1.2rem}.bx--btn--copy__feedback:before{border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;content:attr(data-feedback);font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;padding:.25rem;pointer-events:none;top:1.1rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap;z-index:2}.bx--btn--copy__feedback:after{border-bottom:1px solid #393939;border-right:1px solid #393939;content:"";height:.6rem;left:-.3rem;top:.85rem;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);width:.6rem;z-index:1}.bx--btn--copy__feedback:after,.bx--btn--copy__feedback:before{background:#393939;display:block;position:absolute}.bx--btn--copy__feedback--displayed{display:inline-flex}.bx--copy-btn{align-items:center;background-color:#f4f4f4;border:none;cursor:pointer;display:flex;height:2.5rem;justify-content:center;padding:0;position:relative;width:2.5rem}.bx--copy-btn:hover{background-color:#e5e5e5}.bx--copy-btn:active{background-color:#c6c6c6}.bx--copy-btn:before{border-style:solid;content:"";display:none;height:0;position:absolute;width:0;z-index:6000}.bx--copy-btn .bx--copy-btn__feedback{clip:auto;background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);box-sizing:initial;color:#fff;display:none;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;margin:auto;max-width:13rem;min-width:1.5rem;overflow:visible;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--copy-btn .bx--copy-btn__feedback{width:auto}}@supports(-ms-accelerator:true){.bx--copy-btn .bx--copy-btn__feedback{width:auto}}@supports(-ms-ime-align:auto){.bx--copy-btn .bx--copy-btn__feedback{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--copy-btn .bx--copy-btn__feedback{border:1px solid transparent}}.bx--copy-btn .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--copy-btn .bx--assistive-text,.bx--copy-btn+.bx--assistive-text,.bx--copy-btn:after,.bx--copy-btn:before{bottom:0;left:50%}.bx--copy-btn:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--copy-btn .bx--assistive-text,.bx--copy-btn+.bx--assistive-text,.bx--copy-btn:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--copy-btn:focus{outline:2px solid #0f62fe;outline-color:#0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--copy-btn:focus{outline-style:dotted}}.bx--copy-btn.bx--copy-btn--animating .bx--copy-btn__feedback,.bx--copy-btn.bx--copy-btn--animating:before{display:block}.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-out .bx--copy-btn__feedback,.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-out:before{-webkit-animation:hide-feedback .11s cubic-bezier(.2,0,.38,.9);animation:hide-feedback .11s cubic-bezier(.2,0,.38,.9)}.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-in .bx--copy-btn__feedback,.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-in:before{-webkit-animation:show-feedback .11s cubic-bezier(.2,0,.38,.9);animation:show-feedback .11s cubic-bezier(.2,0,.38,.9)}.bx--copy{font-size:0}.bx--table-toolbar{background-color:#f4f4f4;display:flex;min-height:3rem;position:relative;width:100%}.bx--toolbar-content{display:flex;height:3rem;justify-content:flex-end;-webkit-transform:translateZ(0);transform:translateZ(0);transition:-webkit-transform .11s cubic-bezier(.2,0,.38,.9),-webkit-clip-path .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),clip-path .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),clip-path .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9),-webkit-clip-path .11s cubic-bezier(.2,0,.38,.9);width:100%}.bx--batch-actions~.bx--toolbar-content{-webkit-clip-path:polygon(0 0,100% 0,100% 100%,0 100%);clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.bx--toolbar-content .bx--search .bx--search-input{background-color:transparent}.bx--batch-actions~.bx--toolbar-search-container{align-items:center;display:flex;opacity:1;transition:opacity .11s}.bx--toolbar-content .bx--toolbar-search-container-expandable{box-shadow:none;cursor:pointer;height:3rem;position:relative;transition:width .24s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(0,0,.38,.9);width:3rem}.bx--toolbar-content .bx--toolbar-search-container-expandable:hover{background-color:#e5e5e5}.bx--toolbar-search-container-expandable .bx--search-input{cursor:pointer;height:100%;opacity:0}.bx--toolbar-search-container-expandable:not(.bx--toolbar-search-container-active) .bx--search-input{padding:0}.bx--toolbar-search-container-expandable .bx--search-magnifier-icon{fill:#161616;height:3rem;left:0;padding:1rem;width:3rem}.bx--toolbar-search-container-expandable.bx--search--disabled .bx--search-magnifier-icon{background-color:#f4f4f4;cursor:not-allowed;transition:background-color none}.bx--toolbar-search-container-disabled .bx--search-input{cursor:not-allowed}.bx--toolbar-search-container-expandable.bx--search .bx--label{visibility:hidden}.bx--toolbar-search-container-expandable.bx--search .bx--search-close{height:3rem;width:3rem}.bx--toolbar-search-container-expandable.bx--search .bx--search-close:before{background-color:#e5e5e5;height:calc(100% - .25rem);top:.125rem}.bx--toolbar-search-container-expandable.bx--search .bx--search-close:focus:before{background-color:#0f62fe}.bx--toolbar-search-container-active.bx--search{width:100%}.bx--toolbar-search-container-active .bx--search-input{opacity:1}.bx--toolbar-search-container-active .bx--label,.bx--toolbar-search-container-active .bx--search-input{cursor:text;padding:0 3rem}.bx--toolbar-search-container-active .bx--search-input:focus+.bx--search-close{border:none;box-shadow:none;outline:none}.bx--toolbar-search-container-active .bx--search-input:not(:placeholder-shown){background-color:#e5e5e5;border:none}.bx--toolbar-search-container-active .bx--search-magnifier-icon:active,.bx--toolbar-search-container-active .bx--search-magnifier-icon:focus,.bx--toolbar-search-container-active .bx--search-magnifier-icon:hover{background-color:transparent;border:none;outline:none}.bx--toolbar-search-container-active .bx--search-close,.bx--toolbar-search-container-active .bx--search-close:hover,.bx--toolbar-search-container-persistent .bx--search-close,.bx--toolbar-search-container-persistent .bx--search-close:hover{background-color:transparent;border:none}.bx--toolbar-search-container-persistent .bx--search-close:before{display:none}.bx--overflow-menu.bx--toolbar-action{-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;height:3rem;padding:1rem;transition:background .11s cubic-bezier(0,0,.38,.9);width:100%;width:3rem}.bx--overflow-menu.bx--toolbar-action::-moz-focus-inner{border:0}.bx--toolbar-action{-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;height:3rem;padding:0;transition:background .11s cubic-bezier(0,0,.38,.9);width:100%;width:3rem}.bx--toolbar-action::-moz-focus-inner{border:0}.bx--toolbar-action:hover:not([disabled]){background-color:#e5e5e5}.bx--toolbar-action:hover[aria-expanded=true]{background-color:#f4f4f4}.bx--toolbar-action[disabled]{cursor:not-allowed}.bx--toolbar-action[disabled] .bx--toolbar-action__icon{fill:#c6c6c6;cursor:not-allowed}.bx--toolbar-action:active:not([disabled]),.bx--toolbar-action:focus:not([disabled]){outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--toolbar-action:active:not([disabled]),.bx--toolbar-action:focus:not([disabled]){outline-style:dotted}}.bx--toolbar-action:active:not([disabled]).bx--toolbar-search-container-expandable,.bx--toolbar-action:focus:not([disabled]).bx--toolbar-search-container-expandable{outline:none}.bx--toolbar-action~.bx--btn{margin:0;max-width:none;white-space:nowrap}.bx--overflow-menu--data-table{height:3rem}.bx--toolbar-action__icon{fill:#161616;height:1rem;max-width:1rem;width:auto}.bx--toolbar-search-container-persistent{height:3rem;opacity:1;position:relative;width:100%}.bx--toolbar-search-container-persistent+.bx--toolbar-content{position:relative;width:auto}.bx--toolbar-search-container-persistent .bx--search{position:static}.bx--toolbar-search-container-persistent .bx--search-magnifier-icon{left:1rem}.bx--toolbar-search-container-persistent .bx--search-input{border:none;height:3rem;padding:0 3rem}.bx--toolbar-search-container-persistent .bx--search-input:focus:not([disabled]){outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--toolbar-search-container-persistent .bx--search-input:focus:not([disabled]){outline-style:dotted}}.bx--toolbar-search-container-persistent .bx--search-input:hover:not([disabled]){background-color:#e5e5e5}.bx--toolbar-search-container-persistent .bx--search-input:active:not([disabled]),.bx--toolbar-search-container-persistent .bx--search-input:not(:placeholder-shown){background-color:#e5e5e5}.bx--toolbar-search-container-persistent .bx--search-close{height:3rem;width:3rem}.bx--batch-actions--active~.bx--toolbar-content,.bx--batch-actions--active~.bx--toolbar-search-container{transition:-webkit-transform .11s cubic-bezier(.2,0,.38,.9),-webkit-clip-path .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),clip-path .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),clip-path .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9),-webkit-clip-path .11s cubic-bezier(.2,0,.38,.9)}.bx--batch-actions,.bx--batch-actions--active~.bx--toolbar-content,.bx--batch-actions--active~.bx--toolbar-search-container{-webkit-clip-path:polygon(0 0,100% 0,100% 0,0 0);clip-path:polygon(0 0,100% 0,100% 0,0 0);-webkit-transform:translate3d(0,48px,0);transform:translate3d(0,48px,0)}.bx--batch-actions{align-items:center;background-color:#0f62fe;bottom:0;display:flex;justify-content:space-between;left:0;pointer-events:none;position:absolute;right:0;transition:opacity .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9),-webkit-clip-path .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),clip-path .11s cubic-bezier(.2,0,.38,.9),opacity .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),clip-path .11s cubic-bezier(.2,0,.38,.9),opacity .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9),-webkit-clip-path .11s cubic-bezier(.2,0,.38,.9);will-change:transform}.bx--batch-actions:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--batch-actions:focus{outline-style:dotted}}.bx--batch-actions--active{-webkit-clip-path:polygon(0 0,100% 0,100% 100%,0 100%);clip-path:polygon(0 0,100% 0,100% 100%,0 100%);overflow:auto hidden;pointer-events:all;-webkit-transform:translateZ(0);transform:translateZ(0)}.bx--action-list{align-items:center;display:flex}.bx--action-list .bx--btn{color:#fff;padding:calc(.875rem - 3px) 16px;white-space:nowrap}.bx--action-list .bx--btn:disabled{background-color:transparent;border-color:transparent;color:#fff;opacity:.5}.bx--action-list .bx--btn .bx--btn__icon{fill:#fff;margin-left:.5rem;position:static}.bx--action-list .bx--btn .bx--btn__icon .st0{fill:none}.bx--batch-download{padding:.0625rem}.bx--action-list .bx--btn--primary:after,.bx--action-list .bx--btn--primary:before,.bx--action-list .bx--btn--primary:focus:after,.bx--action-list .bx--btn--primary:focus:before{display:none}.bx--action-list .bx--btn--primary:focus{outline:2px solid #f4f4f4;outline-offset:-.125rem}.bx--action-list .bx--btn--primary:nth-child(3):focus+.bx--btn--primary.bx--batch-summary__cancel:before,.bx--action-list .bx--btn--primary:nth-child(3):hover+.bx--btn--primary.bx--batch-summary__cancel:before{opacity:0}.bx--btn--primary.bx--batch-summary__cancel:before{background-color:#fff;border:none;content:"";display:block;height:1rem;left:0;opacity:1;position:absolute;top:.9375rem;transition:opacity .11s cubic-bezier(.2,0,.38,.9);width:.0625rem}.bx--btn--primary.bx--batch-summary__cancel:hover:before{opacity:0;transition:opacity .11s cubic-bezier(.2,0,.38,.9)}.bx--batch-summary{align-items:center;background-color:#0f62fe;color:#fff;display:flex;left:0;min-height:3rem;padding:0 1rem;position:-webkit-sticky;position:sticky;z-index:100000}.bx--batch-summary__scroll{box-shadow:.5px 0 .2px #0043ce}.bx--batch-summary__para{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--table-toolbar--sm,.bx--table-toolbar--small{height:2rem;min-height:2rem}.bx--table-toolbar--sm .bx--toolbar-search-container-expandable,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search-input,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-input,.bx--table-toolbar--small .bx--toolbar-search-container-expandable,.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search-input,.bx--table-toolbar--small .bx--toolbar-search-container-persistent,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-input{height:2rem}.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search-close,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-close,.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search-close,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-close{height:2rem;width:2rem}.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search-magnifier-icon,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-magnifier-icon,.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search-magnifier-icon,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-magnifier-icon{height:2rem;padding:.5rem;width:2rem}.bx--table-toolbar--sm .bx--toolbar-action.bx--toolbar-search-container-persistent,.bx--table-toolbar--small .bx--toolbar-action.bx--toolbar-search-container-persistent{width:100%}.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-magnifier-icon,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-magnifier-icon{left:.5rem}.bx--table-toolbar--sm .bx--toolbar-search-container-expandable,.bx--table-toolbar--small .bx--toolbar-search-container-expandable{width:2rem}.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search .bx--search-input,.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search .bx--search-input{padding:0 3rem}.bx--table-toolbar--sm .bx--toolbar-search-container-active,.bx--table-toolbar--small .bx--toolbar-search-container-active{flex:auto;transition:flex 175ms cubic-bezier(.2,0,.38,.9)}.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input{visibility:inherit}.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:focus,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:focus{background-color:#e5e5e5;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:focus,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:focus{outline-style:dotted}}.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:active,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:not(:placeholder-shown),.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:active,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:not(:placeholder-shown){background-color:#e5e5e5}.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon:active,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon:focus,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon:hover,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon:active,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon:focus,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon:hover{background-color:transparent;outline:2px solid transparent;outline-offset:-2px}.bx--table-toolbar--sm .bx--overflow-menu.bx--toolbar-action,.bx--table-toolbar--small .bx--overflow-menu.bx--toolbar-action{height:2rem;min-width:2rem;width:2rem}.bx--table-toolbar--sm .bx--toolbar-content,.bx--table-toolbar--small .bx--toolbar-content{height:2rem}.bx--search--disabled .bx--search-magnifier-icon:hover{background-color:transparent}.bx--table-toolbar--sm .bx--batch-actions .bx--action-list,.bx--table-toolbar--small .bx--batch-actions .bx--action-list{height:2rem}.bx--table-toolbar--sm .bx--toolbar-action,.bx--table-toolbar--small .bx--toolbar-action{height:2rem;padding:.5rem 0;width:2rem}.bx--table-toolbar--sm .bx--btn--primary,.bx--table-toolbar--small .bx--btn--primary{height:2rem;min-height:auto;padding-bottom:calc(.375rem - 3px);padding-top:calc(.375rem - 3px)}.bx--table-toolbar--sm .bx--btn--primary.bx--batch-summary__cancel:before,.bx--table-toolbar--small .bx--btn--primary.bx--batch-summary__cancel:before{top:.5rem}.bx--table-toolbar--sm .bx--toolbar-action~.bx--btn,.bx--table-toolbar--small .bx--toolbar-action~.bx--btn{height:2rem;overflow:hidden}.bx--table-toolbar--sm .bx--batch-summary,.bx--table-toolbar--small .bx--batch-summary{min-height:2rem}.bx--data-table-container{padding-top:.125rem;position:relative}.bx--data-table-content{overflow-x:auto}.bx--data-table-header{background:#f4f4f4;padding:1rem 0 1.5rem 1rem}.bx--data-table-header__title{color:#161616;font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.4}.bx--data-table-header__description{color:#525252;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--data-table{border-collapse:collapse;border-spacing:0;width:100%}.bx--data-table thead{background-color:#e0e0e0;font-weight:600}.bx--data-table tbody,.bx--data-table thead{font-size:.875rem;letter-spacing:.16px;line-height:1.28572}.bx--data-table tbody{background-color:#f4f4f4;font-weight:400;width:100%}.bx--data-table tr{border:none;height:3rem;width:100%}.bx--data-table tbody tr,.bx--data-table tbody tr td,.bx--data-table tbody tr th{transition:background-color 70ms cubic-bezier(0,0,.38,.9)}.bx--data-table tbody tr:hover{background:#e5e5e5}.bx--data-table tbody tr:hover td,.bx--data-table tbody tr:hover th{background:#e5e5e5;border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5;color:#161616}.bx--data-table tr:hover .bx--link{color:#0043ce}.bx--data-table tr:hover .bx--link--disabled{color:#c6c6c6}.bx--data-table td,.bx--data-table th{text-align:left;vertical-align:middle}.bx--data-table td[align=right],.bx--data-table th[align=right]{text-align:right}.bx--data-table td[align=center],.bx--data-table th[align=center]{text-align:center}.bx--data-table th{background-color:#e0e0e0;color:#161616;padding-left:1rem;padding-right:1rem}.bx--data-table th:last-of-type{position:static;width:auto}.bx--data-table tbody th,.bx--data-table td{background:#f4f4f4;border-bottom:1px solid #e0e0e0;border-top:1px solid #f4f4f4;color:#525252;padding-left:1rem;padding-right:1rem}.bx--data-table tbody th+td:first-of-type,.bx--data-table td+td:first-of-type{padding-left:.75rem}@supports(-moz-appearance:none){.bx--data-table td{background-clip:padding-box}}.bx--data-table .bx--dropdown,.bx--data-table .bx--list-box,.bx--data-table .bx--list-box input[role=combobox],.bx--data-table .bx--list-box input[type=text],.bx--data-table .bx--number input[type=number],.bx--data-table .bx--number__control-btn:after,.bx--data-table .bx--number__control-btn:before,.bx--data-table .bx--select-input,.bx--data-table .bx--text-input{background-color:#fff}.bx--data-table td.bx--table-column-menu .bx--overflow-menu[aria-expanded=false]:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--data-table td.bx--table-column-menu .bx--overflow-menu[aria-expanded=false]:focus{outline-style:dotted}}.bx--data-table td.bx--table-column-menu .bx--overflow-menu[aria-expanded=true]:focus{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none),screen and (hover:hover){.bx--data-table td.bx--table-column-menu .bx--overflow-menu .bx--overflow-menu__icon{opacity:0}}.bx--data-table td.bx--table-column-menu .bx--overflow-menu.bx--overflow-menu--open .bx--overflow-menu__icon,.bx--data-table td.bx--table-column-menu .bx--overflow-menu:focus .bx--overflow-menu__icon,.bx--data-table td.bx--table-column-menu .bx--overflow-menu:hover .bx--overflow-menu__icon,.bx--data-table tr:hover td.bx--table-column-menu .bx--overflow-menu .bx--overflow-menu__icon,.bx--data-table.bx--data-table--visible-overflow-menu td.bx--table-column-menu .bx--overflow-menu .bx--overflow-menu__icon{opacity:1}.bx--table-row--menu-option .bx--overflow-menu-options__btn .bx--overflow-menu-options__option-content svg{margin-right:.5rem;position:relative;top:.1875rem}.bx--data-table .bx--overflow-menu:hover,.bx--data-table .bx--overflow-menu__trigger:hover{background-color:#cacaca}.bx--data-table--selected .bx--overflow-menu:hover,.bx--data-table--selected .bx--overflow-menu__trigger:hover{background-color:#e5e5e5}.bx--data-table--selected .bx--link:not(.bx--link--disabled){color:#0043ce}.bx--data-table--compact td.bx--table-column-menu,.bx--data-table--short td.bx--table-column-menu,.bx--data-table--sm td.bx--table-column-menu,.bx--data-table--xs td.bx--table-column-menu{height:1.5rem;padding-bottom:0;padding-top:0}.bx--data-table--short td.bx--table-column-menu,.bx--data-table--sm td.bx--table-column-menu{height:2rem}.bx--data-table--md td.bx--table-column-menu{height:2.5rem}.bx--data-table--tall .bx--table-column-menu,.bx--data-table--xl .bx--table-column-menu{padding-top:.5rem}.bx--data-table--zebra tbody tr:not(.bx--parent-row):nth-child(odd) td{border-bottom:1px solid #f4f4f4}.bx--data-table--zebra tbody tr:not(.bx--parent-row):nth-child(2n) td{background-color:#fff;border-bottom:1px solid #fff;border-top:1px solid #fff}.bx--data-table--zebra tbody tr:not(.bx--parent-row):hover td{background-color:#e5e5e5;border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5}.bx--table-column-checkbox .bx--checkbox-label{padding-left:0}.bx--data-table th.bx--table-column-checkbox{background:#e0e0e0;position:static;transition:background-color 70ms cubic-bezier(0,0,.38,.9);width:2rem}.bx--data-table .bx--table-column-checkbox .bx--checkbox:focus+.bx--checkbox-label:before{outline-offset:.375rem}.bx--data-table--compact .bx--table-column-checkbox .bx--checkbox:focus+.bx--checkbox-label:before,.bx--data-table--xs .bx--table-column-checkbox .bx--checkbox:focus+.bx--checkbox-label:before{outline-offset:.125rem}.bx--data-table tbody td.bx--table-column-checkbox,.bx--data-table tbody td.bx--table-expand,.bx--data-table thead th.bx--table-column-checkbox,.bx--data-table thead th.bx--table-expand{min-width:0}.bx--data-table tbody td.bx--table-column-checkbox,.bx--data-table thead th.bx--table-column-checkbox{padding-left:1rem;padding-right:.25rem;width:2.5rem}.bx--data-table tbody td.bx--table-expand,.bx--data-table thead th.bx--table-expand{height:2rem;width:2rem}.bx--data-table--compact tbody td.bx--table-expand,.bx--data-table--compact thead th.bx--table-expand,.bx--data-table--xs tbody td.bx--table-expand,.bx--data-table--xs thead th.bx--table-expand{height:1.5rem;padding:0 0 0 .5rem;width:1.5rem}.bx--data-table--short tbody td.bx--table-expand,.bx--data-table--short thead th.bx--table-expand,.bx--data-table--sm tbody td.bx--table-expand,.bx--data-table--sm thead th.bx--table-expand{height:2rem;padding:0 0 0 .5rem;width:2rem}.bx--data-table--md tbody td.bx--table-expand,.bx--data-table--md thead th.bx--table-expand{height:2.5rem;padding:.25rem 0 .25rem .5rem;width:2.5rem}.bx--data-table--tall tbody td.bx--table-expand,.bx--data-table--tall thead th.bx--table-expand,.bx--data-table--xl tbody td.bx--table-expand,.bx--data-table--xl thead th.bx--table-expand{height:4rem;padding-bottom:1.375rem;padding-top:.625rem}.bx--data-table--tall .bx--table-column-checkbox,.bx--data-table--xl .bx--table-column-checkbox{padding-top:.8125rem}.bx--data-table--tall .bx--table-column-radio,.bx--data-table--xl .bx--table-column-radio{padding-top:1rem}tr.bx--data-table--selected:hover .bx--checkbox[disabled]+.bx--checkbox-label,tr.bx--data-table--selected:hover .bx--link--disabled,tr.bx--data-table--selected:hover .bx--radio-button[disabled]+.bx--radio-button__label{color:#8d8d8d}tr.bx--data-table--selected:hover .bx--checkbox[disabled]+.bx--checkbox-label:before,tr.bx--data-table--selected:hover .bx--radio-button[disabled]+.bx--radio-button__label .bx--radio-button__appearance{border-color:#8d8d8d}.bx--table-column-radio{width:48px}.bx--table-column-radio .bx--radio-button__appearance{margin-right:-.125rem}.bx--data-table--zebra tbody tr:nth-child(odd).bx--data-table--selected td,tr.bx--data-table--selected td{background-color:#e0e0e0;border-bottom:1px solid #c6c6c6;border-top:1px solid #e0e0e0;color:#161616}.bx--data-table--zebra tbody tr:first-of-type:nth-child(odd).bx--data-table--selected td,tr.bx--data-table--selected:first-of-type td{border-top:1px solid #c6c6c6}.bx--data-table--zebra tbody tr:last-of-type:nth-child(2n).bx--data-table--selected td,.bx--data-table--zebra tbody tr:last-of-type:nth-child(odd).bx--data-table--selected td,tr.bx--data-table--selected:last-of-type td{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.bx--data-table--zebra tbody tr:nth-child(2n).bx--data-table--selected td{border-bottom:1px solid #c6c6c6}.bx--data-table--zebra tbody tr:nth-child(2n).bx--data-table--selected:hover td{border-bottom:1px solid #cacaca}.bx--data-table tbody .bx--data-table--selected:hover td,.bx--data-table--zebra tbody tr:nth-child(odd).bx--data-table--selected:hover td{background:#cacaca;border-bottom:1px solid #cacaca;border-top:1px solid #cacaca;color:#161616}.bx--data-table--selected .bx--overflow-menu .bx--overflow-menu__icon{opacity:1}.bx--data-table--compact tbody tr,.bx--data-table--compact tbody tr th,.bx--data-table--compact thead tr{height:1.5rem}.bx--data-table--compact .bx--table-header-label,.bx--data-table--compact tbody tr th,.bx--data-table--compact td{padding-bottom:.125rem;padding-top:.125rem}.bx--data-table--compact .bx--overflow-menu{height:100%;width:2rem}.bx--data-table.bx--data-table--compact .bx--table-column-checkbox{padding-bottom:0;padding-top:0}.bx--data-table.bx--data-table--compact .bx--table-column-checkbox .bx--checkbox-label{height:1.4375rem;min-height:1.4375rem}.bx--data-table--xs tbody tr,.bx--data-table--xs tbody tr th,.bx--data-table--xs thead tr{height:1.5rem}.bx--data-table--xs .bx--table-header-label,.bx--data-table--xs tbody tr th,.bx--data-table--xs td{padding-bottom:.125rem;padding-top:.125rem}.bx--data-table--xs .bx--overflow-menu{height:calc(100% + 1px);width:2rem}.bx--data-table.bx--data-table--xs .bx--table-column-checkbox{padding-bottom:0;padding-top:0}.bx--data-table.bx--data-table--xs .bx--table-column-checkbox .bx--checkbox-label{height:1.4375rem;min-height:1.4375rem}.bx--data-table--short tbody tr,.bx--data-table--short tbody tr th,.bx--data-table--short thead tr{height:2rem}.bx--data-table--short .bx--table-header-label{padding-bottom:.4375rem;padding-top:.4375rem}.bx--data-table--short tbody tr th,.bx--data-table--short td{padding-bottom:.375rem;padding-top:.4375rem}.bx--data-table.bx--data-table--short .bx--table-column-checkbox{padding-bottom:.1875rem;padding-top:.1875rem}.bx--data-table--short .bx--overflow-menu{height:100%}.bx--data-table--sm tbody tr,.bx--data-table--sm tbody tr th,.bx--data-table--sm thead tr{height:2rem}.bx--data-table--sm .bx--table-header-label{padding-bottom:.4375rem;padding-top:.4375rem}.bx--data-table--sm tbody tr th,.bx--data-table--sm td{padding-bottom:.375rem;padding-top:.4375rem}.bx--data-table.bx--data-table--sm .bx--table-column-checkbox{padding-bottom:.1875rem;padding-top:.1875rem}.bx--data-table--sm .bx--overflow-menu{height:calc(100% + 1px)}.bx--data-table--md tbody tr,.bx--data-table--md tbody tr th,.bx--data-table--md thead tr{height:2.5rem}.bx--data-table--md .bx--table-header-label{padding-bottom:.4375rem;padding-top:.4375rem}.bx--data-table--md tbody tr th,.bx--data-table--md td{padding-bottom:.375rem;padding-top:.4375rem}.bx--data-table--md .bx--table-column-menu,.bx--data-table.bx--data-table--md .bx--table-column-checkbox{padding-bottom:.1875rem;padding-top:.1875rem}.bx--data-table--tall tbody tr,.bx--data-table--tall tbody tr th,.bx--data-table--tall thead tr{height:4rem}.bx--data-table--tall .bx--table-header-label{padding-bottom:1rem;padding-top:1rem}.bx--data-table--tall tbody tr th,.bx--data-table--tall td{padding-top:1rem}.bx--data-table--tall td,.bx--data-table--tall th{vertical-align:top}.bx--data-table--tall .bx--data-table--cell-secondary-text{font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333}.bx--data-table--xl tbody tr,.bx--data-table--xl tbody tr th,.bx--data-table--xl thead tr{height:4rem}.bx--data-table--xl .bx--table-header-label{padding-bottom:1rem;padding-top:1rem}.bx--data-table--xl tbody tr th,.bx--data-table--xl td{padding-top:1rem}.bx--data-table--xl td,.bx--data-table--xl th{vertical-align:top}.bx--data-table--xl .bx--data-table--cell-secondary-text{font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333}.bx--data-table--static{width:auto}.bx--data-table-container--static{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bx--data-table_inner-container{background-color:#e0e0e0;-webkit-transform:translateZ(0);transform:translateZ(0)}.bx--data-table--sticky-header{display:block;overflow-y:scroll}.bx--data-table--sticky-header tbody,.bx--data-table--sticky-header td,.bx--data-table--sticky-header th,.bx--data-table--sticky-header thead,.bx--data-table--sticky-header tr{display:flex}.bx--data-table--sticky-header thead{-ms-overflow-style:none;overflow:scroll;position:-webkit-sticky;position:sticky;top:0;width:100%;will-change:transform;z-index:1}.bx--data-table--sticky-header thead tr th{border-bottom:1px solid #c6c6c6}.bx--data-table--sticky-header tbody{-ms-overflow-style:none;flex-direction:column;overflow-x:scroll;will-change:transform}.bx--data-table--sticky-header tr.bx--parent-row.bx--expandable-row{height:auto;min-height:3rem}.bx--data-table--sticky-header tr.bx--expandable-row:not(.bx--parent-row){height:auto}.bx--data-table--sticky-header .bx--table-expand{max-width:3rem}.bx--data-table--sticky-header thead .bx--table-expand{align-items:center}.bx--data-table--sticky-header .bx--parent-row{min-height:3rem}.bx--data-table--sticky-header:not(.bx--data-table--compact):not(.bx--data-table--xs):not(.bx--data-table--tall):not(.bx--data-table--xl):not(.bx--data-table--short):not(.bx--data-table--sm) td:not(.bx--table-column-menu):not(.bx--table-column-checkbox){padding-top:.875rem}.bx--data-table--sticky-header tr.bx--parent-row.bx--expandable-row:hover+tr[data-child-row] td{border-top:1px solid #e5e5e5}.bx--data-table--sticky-header tr.bx--expandable-row:last-of-type{overflow:hidden}.bx--data-table--sticky-header tr.bx--data-table--selected:first-of-type td{border-top:none}.bx--data-table--sticky-header tbody tr td.bx--table-column-checkbox,.bx--data-table--sticky-header thead th.bx--table-column-checkbox{align-items:center;min-width:2.25rem;width:2.25rem}.bx--data-table--sticky-header.bx--data-table--tall td.bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--tall thead th.bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--xl td.bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--xl thead th.bx--table-column-checkbox{align-items:flex-start}.bx--data-table--sticky-header th.bx--table-column-checkbox~th:last-of-type:empty{max-width:4rem}.bx--data-table--sticky-header th:empty:not(.bx--table-expand){max-width:2.25rem}.bx--data-table--sticky-header td.bx--table-column-menu{align-items:center;height:auto;padding-top:0}.bx--data-table--sticky-header tbody::-webkit-scrollbar,.bx--data-table--sticky-header thead::-webkit-scrollbar{display:none}@-moz-document url-prefix(){.bx--data-table--sticky-header tbody,.bx--data-table--sticky-header thead{scrollbar-width:none}}.bx--data-table--sticky-header tbody tr:last-of-type{border-bottom:0}.bx--data-table--sticky-header td:not(.bx--table-column-checkbox):not(.bx--table-column-menu):not(.bx--table-expand-v2):not(.bx--table-column-icon),.bx--data-table--sticky-header th:not(.bx--table-column-checkbox):not(.bx--table-column-menu):not(.bx--table-expand-v2):not(.bx--table-column-icon){min-width:0;width:100%}.bx--data-table--sticky-header.bx--data-table--compact tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--short tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--sm tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--tall tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xl tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xs tr:not(.bx--expandable-row){height:auto}.bx--data-table--sticky-header.bx--data-table--compact tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xs tr:not(.bx--expandable-row){min-height:1.5rem}.bx--data-table--sticky-header.bx--data-table--short tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--sm tr:not(.bx--expandable-row){min-height:2rem}.bx--data-table--sticky-header.bx--data-table--tall tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xl tr:not(.bx--expandable-row){min-height:4rem}.bx--data-table--sticky-header.bx--data-table--compact tr td.bx--table-expand,.bx--data-table--sticky-header.bx--data-table--xs tr td.bx--table-expand{padding-top:.25rem}.bx--data-table--sticky-header.bx--data-table--short tr td.bx--table-expand,.bx--data-table--sticky-header.bx--data-table--sm tr td.bx--table-expand{padding-top:.5rem}.bx--data-table--sticky-header .bx--table-header-label{display:block;max-width:calc(100% - 10px);overflow-x:hidden;overflow-y:hidden;padding-bottom:1rem;padding-top:.9375rem;text-overflow:ellipsis;white-space:nowrap}.bx--data-table--sticky-header.bx--data-table--compact th .bx--table-header-label,.bx--data-table--sticky-header.bx--data-table--xs th .bx--table-header-label{padding-bottom:0;padding-top:.1875rem}.bx--data-table--sticky-header.bx--data-table--short th .bx--table-header-label,.bx--data-table--sticky-header.bx--data-table--sm th .bx--table-header-label{padding-bottom:0;padding-top:.5rem}.bx--data-table--sticky-header.bx--data-table--tall th .bx--table-header-label,.bx--data-table--sticky-header.bx--data-table--xl th .bx--table-header-label{padding-top:1rem}.bx--data-table--sticky-header.bx--data-table--tall th.bx--table-expand,.bx--data-table--sticky-header.bx--data-table--xl th.bx--table-expand{align-items:flex-start;display:flex}.bx--data-table--sticky-header.bx--data-table--compact tr.bx--parent-row .bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--short tr.bx--parent-row .bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--sm tr.bx--parent-row .bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--xs tr.bx--parent-row .bx--table-column-checkbox{align-items:flex-start}.bx--data-table--max-width{max-width:100%}.bx--data-table--sticky-header{max-height:18.75rem}.bx--data-table .bx--form-item.bx--checkbox-wrapper:last-of-type{margin:0}.bx--data-table--compact .bx--form-item.bx--checkbox-wrapper:last-of-type,.bx--data-table--short .bx--form-item.bx--checkbox-wrapper:last-of-type,.bx--data-table--sm .bx--form-item.bx--checkbox-wrapper:last-of-type,.bx--data-table--xs .bx--form-item.bx--checkbox-wrapper:last-of-type{margin:-.1875rem 0}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--data-table-content{outline:1px solid transparent}}.bx--data-table tr.bx--parent-row:first-of-type td{border-top:1px solid #e0e0e0}.bx--expandable-row--hidden td{border-top:0;padding:1rem;width:auto}tr.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row]{height:0;transition:height .15s cubic-bezier(.2,0,.38,.9)}tr.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row] td{background-color:#e5e5e5;border:0;padding-bottom:0;padding-top:0;transition:padding .15s cubic-bezier(.2,0,.38,.9),background-color .15s cubic-bezier(.2,0,.38,.9)}tr.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row] td .bx--child-row-inner-container{max-height:0;overflow:hidden}tr.bx--parent-row.bx--expandable-row+tr[data-child-row]{transition:height .15s cubic-bezier(.2,0,.38,.9)}tr.bx--parent-row.bx--expandable-row+tr[data-child-row] td{border-bottom:1px solid #e0e0e0;padding-left:4rem;transition:padding-bottom .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9);transition:padding-bottom .11s cubic-bezier(.2,0,.38,.9),transform .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9);transition:padding-bottom .11s cubic-bezier(.2,0,.38,.9),transform .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9)}tr.bx--parent-row.bx--expandable-row+tr[data-child-row] td .bx--child-row-inner-container{max-height:100%}.bx--parent-row.bx--expandable-row+tr[data-child-row]>td,.bx--parent-row.bx--expandable-row>td{border-bottom:1px solid #e0e0e0;box-shadow:0 1px #e0e0e0}.bx--parent-row.bx--expandable-row>td:first-of-type,.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row]>td{box-shadow:none}tr.bx--parent-row.bx--expandable-row,tr.bx--parent-row.bx--expandable-row td,tr.bx--parent-row:not(.bx--expandable-row) td{transition:height .24s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9)}tr.bx--parent-row.bx--expandable-row:hover td,tr.bx--parent-row:not(.bx--expandable-row):first-of-type:hover td{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}tr.bx--parent-row.bx--expandable-row:hover td{background-color:#e5e5e5;color:#161616}tr.bx--parent-row.bx--expandable-row:hover td:first-of-type{border-bottom:1px solid #e5e5e5}tr.bx--parent-row.bx--expandable-row:hover+tr[data-child-row] td{background-color:#e5e5e5;border-bottom:1px solid #e0e0e0;color:#161616}tr.bx--expandable-row--hover+tr[data-child-row] td{border-bottom:1px solid #e0e0e0}tr.bx--expandable-row--hover{background-color:#e5e5e5}tr.bx--expandable-row--hover td{background-color:#e5e5e5;border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0;color:#161616}tr.bx--parent-row.bx--expandable-row.bx--expandable-row--hover td:first-of-type{border-bottom:1px solid transparent}.bx--data-table td.bx--table-expand{border-bottom:1px solid #e0e0e0}.bx--data-table td.bx--table-expand+.bx--table-column-checkbox,.bx--data-table th.bx--table-expand+.bx--table-column-checkbox{padding-left:.375rem;padding-right:.375rem}.bx--data-table td.bx--table-expand+.bx--table-column-checkbox+td,.bx--data-table th.bx--table-expand+.bx--table-column-checkbox+th{padding-left:.5rem}.bx--data-table td.bx--table-expand,.bx--data-table th.bx--table-expand{padding:.5rem 0 .5rem .5rem}.bx--data-table td.bx--table-expand[data-previous-value=collapsed]{border-bottom:1px solid transparent}.bx--table-expand[data-previous-value=collapsed] .bx--table-expand__svg{-webkit-transform:rotate(270deg);transform:rotate(270deg);transition:-webkit-transform .15s cubic-bezier(.2,0,.38,.9);transition:transform .15s cubic-bezier(.2,0,.38,.9);transition:transform .15s cubic-bezier(.2,0,.38,.9),-webkit-transform .15s cubic-bezier(.2,0,.38,.9)}.bx--table-expand__button{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:inline-flex;height:calc(100% + 1px);justify-content:center;padding:0 .5rem;vertical-align:inherit;width:100%}.bx--table-expand__button::-moz-focus-inner{border:0}.bx--table-expand__button:focus{box-shadow:inset 0 0 0 2px #0f62fe;outline:none}.bx--table-expand__svg{fill:#161616;-webkit-transform:rotate(90deg);transform:rotate(90deg);transition:-webkit-transform .15s cubic-bezier(.2,0,.38,.9);transition:transform .15s cubic-bezier(.2,0,.38,.9);transition:transform .15s cubic-bezier(.2,0,.38,.9),-webkit-transform .15s cubic-bezier(.2,0,.38,.9)}.bx--data-table--tall .bx--table-expand__button,.bx--data-table--xl .bx--table-expand__button{padding:0;width:2rem}tr.bx--parent-row.bx--expandable-row td.bx--table-expand+td:after{background:#e0e0e0;bottom:-.0625rem;content:"";height:.0625rem;left:0;position:absolute;width:.5rem}tr.bx--parent-row.bx--expandable-row.bx--expandable-row--hover td.bx--table-expand+td:after,tr.bx--parent-row.bx--expandable-row:hover td.bx--table-expand+td:after{background:#e5e5e5}tr.bx--parent-row.bx--data-table--selected td.bx--table-expand+td:after{display:none}.bx--data-table--zebra tbody tr[data-child-row]:nth-child(4n+4) td,.bx--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+3) td{border-bottom:1px solid #f4f4f4}.bx--data-table--zebra tbody tr[data-child-row]:nth-child(4n+2) td,.bx--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+1) td{background-color:#fff;border-bottom:1px solid #fff;border-top:1px solid #fff}.bx--data-table--zebra tr.bx--parent-row td,.bx--data-table--zebra tr.bx--parent-row.bx--expandable-row+tr[data-child-row] td{transition:border-bottom .15s cubic-bezier(.2,0,.38,.9),border-top .15s cubic-bezier(.2,0,.38,.9),-webkit-transform .15s cubic-bezier(.2,0,.38,.9);transition:transform .15s cubic-bezier(.2,0,.38,.9),border-bottom .15s cubic-bezier(.2,0,.38,.9),border-top .15s cubic-bezier(.2,0,.38,.9);transition:transform .15s cubic-bezier(.2,0,.38,.9),border-bottom .15s cubic-bezier(.2,0,.38,.9),border-top .15s cubic-bezier(.2,0,.38,.9),-webkit-transform .15s cubic-bezier(.2,0,.38,.9)}.bx--data-table--zebra tbody tr[data-child-row]:hover td,.bx--data-table--zebra tbody tr[data-parent-row]:hover td,.bx--data-table--zebra tbody tr[data-parent-row]:hover+tr[data-child-row] td{background-color:#e5e5e5;border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5}.bx--data-table--zebra tr.bx--parent-row.bx--expandable-row.bx--expandable-row--hover td{background:#e5e5e5;border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5}tr.bx--parent-row.bx--data-table--selected:first-of-type td{background:#e0e0e0;border-bottom:1px solid #e0e0e0;border-top:1px solid #c6c6c6;box-shadow:0 1px #c6c6c6}tr.bx--parent-row.bx--data-table--selected td{background:#e0e0e0;border-bottom:1px solid transparent;box-shadow:0 1px #c6c6c6;color:#161616}tr.bx--parent-row.bx--data-table--selected:last-of-type td{background:#e0e0e0;border-bottom:1px solid transparent;box-shadow:0 1px #e0e0e0}tr.bx--parent-row.bx--data-table--selected:not(.bx--expandable-row):hover td{background:#cacaca;border-bottom:1px solid #e0e0e0;border-top:1px solid #cacaca;box-shadow:0 1px #cacaca}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row td:first-of-type{border-bottom:1px solid transparent;box-shadow:0 1px #e0e0e0}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row--hover td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row--hover td:first-of-type,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row:hover td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row:hover td:first-of-type{background:#cacaca;border-bottom:1px solid transparent;border-top:1px solid #cacaca;box-shadow:0 1px #cacaca}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row+tr[data-child-row] td{background-color:#e5e5e5;border-bottom:1px solid #e0e0e0;border-top:1px solid #c6c6c6;box-shadow:0 1px #c6c6c6;color:#161616}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row+tr[data-child-row]:last-of-type td{box-shadow:inset 0 -1px #c6c6c6;padding-bottom:1.5rem}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row--hover+tr[data-child-row] td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row:hover+tr[data-child-row] td{background:#e0e0e0}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--table-expand__button:focus .bx--table-expand__svg{color:Highlight;outline:1px solid Highlight}.bx--table-expand__svg{fill:ButtonText}}.bx--data-table th[aria-sort],.bx--data-table--sort th{border-bottom:none;border-top:none;height:3rem;padding:0}.bx--table-sort{align-items:center;-webkit-appearance:none;appearance:none;background:none;background-color:#e0e0e0;border:0;color:#161616;cursor:pointer;display:inline-block;display:flex;font:inherit;justify-content:space-between;line-height:1;min-height:100%;padding:0 0 0 1rem;text-align:left;transition:background-color 70ms cubic-bezier(0,0,.38,.9),outline 70ms cubic-bezier(0,0,.38,.9);width:100%}.bx--table-sort::-moz-focus-inner{border:0}.bx--table-sort:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--table-sort:focus{outline-style:dotted}}.bx--table-sort:hover{background:#cacaca}.bx--table-sort:focus svg,.bx--table-sort:hover svg{opacity:1}.bx--data-table.bx--data-table--sort th>.bx--table-header-label{padding-left:1rem;padding-right:1rem}th .bx--table-sort__flex{align-items:center;display:flex;height:100%;justify-content:space-between;min-height:3rem;width:100%}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.bx--data-table--sort:not(.bx--data-table--compact):not(.bx--data-table--short):not(.bx--data-table--tall):not(.bx--data-table--xs):not(.bx--data-table--sm):not(.bx--data-table--md):not(.bx--data-table--xl) th .bx--table-sort__flex{height:2.99rem}}.bx--data-table--compact.bx--data-table--sort th .bx--table-sort__flex,.bx--data-table--xs.bx--data-table--sort th .bx--table-sort__flex{min-height:1.5rem}.bx--data-table--short.bx--data-table--sort th .bx--table-sort__flex,.bx--data-table--sm.bx--data-table--sort th .bx--table-sort__flex{min-height:2rem}.bx--data-table--md.bx--data-table--sort th .bx--table-sort__flex{min-height:2.5rem}.bx--data-table--tall.bx--data-table--sort th .bx--table-sort__flex,.bx--data-table--xl.bx--data-table--sort th .bx--table-sort__flex{align-items:flex-start;min-height:4rem}.bx--table-sort .bx--table-sort__icon-inactive{display:block}.bx--table-sort .bx--table-sort__icon{display:none}.bx--table-sort__icon-unsorted{fill:#161616;margin-left:.5rem;margin-right:.5rem;min-width:1rem;opacity:0;width:1.25rem}.bx--table-sort.bx--table-sort--active{background:#cacaca}.bx--table-sort.bx--table-sort--active .bx--table-sort__icon-unsorted{display:none}.bx--table-sort.bx--table-sort--active .bx--table-sort__icon{display:block;opacity:1}.bx--table-sort--ascending .bx--table-sort__icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bx--table-sort__icon{fill:#161616;margin-left:.5rem;margin-right:.5rem;min-width:1rem;opacity:1;-webkit-transform:rotate(0);transform:rotate(0);transition:-webkit-transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9);width:1.25rem}.bx--data-table--compact.bx--data-table--sort th,.bx--data-table--xs.bx--data-table--sort th{height:1.5rem}.bx--data-table--short.bx--data-table--sort th,.bx--data-table--sm.bx--data-table--sort th{height:2rem}.bx--data-table--md.bx--data-table--sort th{height:2.5rem}.bx--data-table--tall.bx--data-table--sort th,.bx--data-table--xl.bx--data-table--sort th{height:4rem}.bx--data-table--tall.bx--data-table--sort th .bx--table-sort,.bx--data-table--xl.bx--data-table--sort th .bx--table-sort{display:inline-block;height:4rem}.bx--data-table--tall .bx--table-sort__icon,.bx--data-table--tall .bx--table-sort__icon-unsorted,.bx--data-table--xl .bx--table-sort__icon,.bx--data-table--xl .bx--table-sort__icon-unsorted{margin-top:.8125rem}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--table-sort__icon,.bx--table-sort__icon-unsorted{fill:ButtonText}}.bx--inline-edit-label{align-items:center;display:flex;justify-content:space-between}.bx--inline-edit-label:hover .bx--inline-edit-label__icon{opacity:1}.bx--inline-edit-label--inactive{display:none}.bx--inline-edit-label__action{-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;padding:0}.bx--inline-edit-label__action::-moz-focus-inner{border:0}.bx--inline-edit-label__action:hover{cursor:pointer}.bx--inline-edit-label__action:focus{outline:1px solid #0f62fe;padding:.125rem}@media screen and (prefers-contrast){.bx--inline-edit-label__action:focus{outline-style:dotted}}.bx--inline-edit-label__action:focus .bx--inline-edit-label__icon{opacity:1;width:auto}.bx--inline-edit-label__icon{fill:#161616;opacity:0}.bx--inline-edit-input{display:none}.bx--inline-edit-input--active{display:block;margin-left:-.75rem}.bx--inline-edit-input--active input{padding-left:.75rem}.bx--data-table.bx--skeleton th{padding-left:1rem;vertical-align:middle}.bx--data-table.bx--skeleton td span,.bx--data-table.bx--skeleton th span{background:#e5e5e5;border:none;box-shadow:none;display:block;height:1rem;padding:0;pointer-events:none;position:relative;width:4rem}.bx--data-table.bx--skeleton td span:active,.bx--data-table.bx--skeleton td span:focus,.bx--data-table.bx--skeleton td span:hover,.bx--data-table.bx--skeleton th span:active,.bx--data-table.bx--skeleton th span:focus,.bx--data-table.bx--skeleton th span:hover{border:none;cursor:default;outline:none}.bx--data-table.bx--skeleton td span:before,.bx--data-table.bx--skeleton th span:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--data-table.bx--skeleton td span:before,.bx--data-table.bx--skeleton th span:before{-webkit-animation:none;animation:none}}.bx--data-table.bx--skeleton tr:hover td{background:transparent;border-color:#e0e0e0}.bx--data-table.bx--skeleton tr:hover td:first-of-type,.bx--data-table.bx--skeleton tr:hover td:last-of-type{border-color:#e0e0e0}.bx--data-table.bx--skeleton .bx--table-sort-v2{pointer-events:none}.bx--data-table.bx--skeleton th span{background:#c6c6c6}.bx--data-table.bx--skeleton th span:before{background:#e5e5e5}.bx--data-table-container.bx--skeleton .bx--data-table-header__title{background:#e5e5e5;border:none;box-shadow:none;height:1.5rem;padding:0;pointer-events:none;position:relative;width:7.5rem}.bx--data-table-container.bx--skeleton .bx--data-table-header__title:active,.bx--data-table-container.bx--skeleton .bx--data-table-header__title:focus,.bx--data-table-container.bx--skeleton .bx--data-table-header__title:hover{border:none;cursor:default;outline:none}.bx--data-table-container.bx--skeleton .bx--data-table-header__title:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--data-table-container.bx--skeleton .bx--data-table-header__title:before{-webkit-animation:none;animation:none}}.bx--data-table-container.bx--skeleton .bx--data-table-header__description{background:#e5e5e5;border:none;box-shadow:none;height:1rem;margin-top:.5rem;padding:0;pointer-events:none;position:relative;width:10rem}.bx--data-table-container.bx--skeleton .bx--data-table-header__description:active,.bx--data-table-container.bx--skeleton .bx--data-table-header__description:focus,.bx--data-table-container.bx--skeleton .bx--data-table-header__description:hover{border:none;cursor:default;outline:none}.bx--data-table-container.bx--skeleton .bx--data-table-header__description:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--data-table-container.bx--skeleton .bx--data-table-header__description:before{-webkit-animation:none;animation:none}}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpSlideLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fpSlideLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes fpSlideLeftNew{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpSlideLeftNew{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpSlideRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fpSlideRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes fpSlideRightNew{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpSlideRightNew{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpFadeOut{0%{opacity:1}to{opacity:0}}@keyframes fpFadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes fpFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fpFadeIn{0%{opacity:0}to{opacity:1}}.flatpickr-calendar{-webkit-animation:none;animation:none;border:0;border-radius:0;box-sizing:border-box;direction:ltr;max-height:0;opacity:0;overflow:hidden;padding:0;position:absolute;text-align:center;touch-action:manipulation;visibility:hidden;width:19.6875rem}.flatpickr-calendar.inline,.flatpickr-calendar.open{max-height:40rem;opacity:1;overflow:visible;visibility:inherit}.flatpickr-calendar.open{align-items:center;background-color:#f4f4f4;border:none;box-shadow:0 2px 6px rgba(0,0,0,.3);display:flex;flex-direction:column;height:21rem;justify-content:center;margin-top:-.125rem;overflow:hidden;padding:.25rem .25rem .5rem;width:18rem;z-index:99999}.flatpickr-calendar.open:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.flatpickr-calendar.open:focus{outline-style:dotted}}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .11s cubic-bezier(0,0,.38,.9);animation:fpFadeInDown .11s cubic-bezier(0,0,.38,.9)}.flatpickr-calendar.inline{display:block;position:relative;top:.125rem}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{display:block;z-index:999}.flatpickr-calendar.hasWeeks{width:auto}.dayContainer{display:flex;flex-wrap:wrap;height:15.375rem;justify-content:space-around;outline:0;padding:0}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{border-top:1px solid #e6e6e6;height:2.5rem}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:focus{outline:0}.flatpickr-months{display:flex;justify-content:space-between;width:100%}.flatpickr-month{align-items:center;background-color:transparent;color:#161616;display:flex;font-size:.875rem;font-weight:600;height:2.5rem;letter-spacing:.16px;line-height:1.28572;line-height:1;text-align:center}.flatpickr-next-month,.flatpickr-prev-month{fill:#161616;align-items:center;cursor:pointer;display:flex;height:2.5rem;justify-content:center;line-height:16px;padding:0;text-decoration:none;-webkit-transform:scale(1);transform:scale(1);transition:background-color 70ms cubic-bezier(.2,0,.38,.9);-webkit-user-select:none;user-select:none;width:2.5rem;z-index:3}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{background-color:#e5e5e5}.flatpickr-next-month.disabled svg,.flatpickr-prev-month.disabled svg{fill:#161616;cursor:not-allowed}.flatpickr-next-month.disabled:hover svg,.flatpickr-prev-month.disabled:hover svg{fill:#161616}.flatpickr-current-month{align-items:center;display:flex;font-size:.875rem;font-weight:600;height:1.75rem;justify-content:center;letter-spacing:.16px;line-height:1.28572;text-align:center}.flatpickr-current-month .cur-month{margin-left:.25rem;margin-right:.25rem}.flatpickr-current-month .cur-month:hover{background-color:#e5e5e5}.numInputWrapper{position:relative;width:3.75rem}.numInputWrapper:hover{background-color:#e5e5e5}.numInputWrapper .numInput{-moz-appearance:textfield;background-color:#f4f4f4;border:none;color:#161616;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;font-weight:600;margin:0;padding:.25rem;width:100%}.numInputWrapper .numInput::-webkit-inner-spin-button,.numInputWrapper .numInput::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.numInputWrapper .numInput:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.numInputWrapper .numInput:focus{outline-style:dotted}}.numInputWrapper .numInput[disabled],.numInputWrapper .numInput[disabled]:hover{background-color:#f4f4f4;color:#c6c6c6;pointer-events:none}.numInputWrapper .arrowUp{border-bottom:0;top:.25rem}.numInputWrapper .arrowUp:after{border-bottom:.25rem solid #161616}.numInputWrapper .arrowDown{top:.6875rem}.numInputWrapper .arrowDown:after{border-top:.25rem solid #161616}.numInputWrapper .arrowDown,.numInputWrapper .arrowUp{border:none;cursor:pointer;height:50%;left:2.6rem;line-height:50%;opacity:0;padding:0 .25rem 0 .125rem;position:absolute;width:.75rem}.numInputWrapper .arrowDown:after,.numInputWrapper .arrowUp:after{border-left:.25rem solid transparent;border-right:.25rem solid transparent;content:"";display:block;position:absolute;top:33%}.numInputWrapper .arrowDown:active:after,.numInputWrapper .arrowDown:hover:after,.numInputWrapper .arrowUp:active:after,.numInputWrapper .arrowUp:hover:after{border-bottom-color:#0f62fe;border-top-color:#0f62fe}.numInput[disabled]~.arrowUp:after{border-bottom-color:#c6c6c6}.numInput[disabled]~.arrowDown:after{border-top-color:#c6c6c6}.numInputWrapper:hover .arrowDown,.numInputWrapper:hover .arrowUp{opacity:1}.numInputWrapper:hover .numInput[disabled]~.arrowDown,.numInputWrapper:hover .numInput[disabled]~.arrowUp{opacity:0}.flatpickr-weekdays{align-items:center;display:flex;height:2.5rem}.flatpickr-weekdaycontainer{display:flex;width:100%}.flatpickr-weekday{color:#161616;cursor:default;flex:1 1;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.flatpickr-days:focus{outline:0}.flatpickr-calendar.animate .dayContainer.slideLeft{-webkit-animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.animate .dayContainer.slideLeft,.flatpickr-calendar.animate .dayContainer.slideLeftNew{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.flatpickr-calendar.animate .dayContainer.slideLeftNew{-webkit-animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.animate .dayContainer.slideRight{-webkit-animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideRight .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideRight .4s cubic-bezier(.23,1,.32,1);-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.flatpickr-calendar.animate .dayContainer.slideRightNew{-webkit-animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideRightNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideRightNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-day{align-items:center;color:#161616;cursor:pointer;display:flex;font-size:.875rem;font-weight:400;height:2.5rem;justify-content:center;letter-spacing:.16px;line-height:1.28572;transition:all 70ms cubic-bezier(.2,0,.38,.9);width:2.5rem}.flatpickr-day:hover{background:#e5e5e5}.flatpickr-day:focus{outline:2px solid #0f62fe;outline-color:#0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.flatpickr-day:focus{outline-style:dotted}}.nextMonthDay,.prevMonthDay{color:#6f6f6f}.flatpickr-day.today{color:#0f62fe;font-weight:600;position:relative}.flatpickr-day.today:after{background-color:#0f62fe;bottom:.4375rem;content:"";display:block;height:.25rem;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:.25rem}.flatpickr-day.today.no-border{border:none}.flatpickr-day.today.selected{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.flatpickr-day.today.selected{outline-style:dotted}}.flatpickr-day.today.selected:after{display:none}.flatpickr-day.inRange{background-color:#d0e2ff;color:#161616}.flatpickr-day.selected{background-color:#0f62fe;color:#fff}.flatpickr-day.selected:focus{outline:.0625rem solid #fff;outline-offset:-.1875rem}.flatpickr-day.startRange.selected{box-shadow:none;z-index:2}.flatpickr-day.endRange.inRange,.flatpickr-day.startRange.inRange:not(.selected){background:#f4f4f4;outline:2px solid #0f62fe;outline-offset:-2px;z-index:3}@media screen and (prefers-contrast){.flatpickr-day.endRange.inRange,.flatpickr-day.startRange.inRange:not(.selected){outline-style:dotted}}.flatpickr-day.endRange:hover{background:#f4f4f4;color:#161616;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.flatpickr-day.endRange:hover{outline-style:dotted}}.flatpickr-day.endRange.inRange.selected{background:#0f62fe;color:#fff}.flatpickr-day.flatpickr-disabled{color:#c6c6c6;cursor:not-allowed}.flatpickr-day.flatpickr-disabled:hover{background-color:transparent}.flatpickr-input[readonly]{cursor:pointer}@media (forced-colors:active),screen and (-ms-high-contrast:active){.flatpickr-next-month,.flatpickr-prev-month{fill:ButtonText}.flatpickr-day.selected{color:Highlight;outline:1px solid Highlight;outline-style:dotted}.flatpickr-day.inRange,.flatpickr-day.today{color:Highlight}.flatpickr-calendar{outline:1px solid transparent}}.bx--date-picker{display:flex}.bx--date-picker--light .bx--date-picker__input{background:#fff}.bx--date-picker~.bx--label{order:1}.bx--date-picker-container{display:flex;flex-direction:column;justify-content:space-between;position:relative}.bx--date-picker-input__wrapper{align-items:center;display:flex;position:relative}.bx--date-picker.bx--date-picker--simple .bx--date-picker__input,.bx--date-picker.bx--date-picker--simple .bx--label{width:7.5rem}.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--invalid .bx--date-picker__input,.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--warn .bx--date-picker__input,.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--warn~.bx--form-requirement{width:9.5rem}.bx--date-picker.bx--date-picker--simple.bx--date-picker--short .bx--date-picker__input{width:5.7rem}.bx--date-picker.bx--date-picker--single .bx--date-picker__input{width:18rem}.bx--date-picker .bx--date-picker-input__wrapper--warn~.bx--form-requirement{color:#161616}.bx--date-picker__input{background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;color:#161616;display:block;font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.875rem;font-weight:400;height:2.5rem;letter-spacing:.32px;line-height:1.42857;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;position:relative;transition:all 70ms cubic-bezier(.2,0,.38,.9)}.bx--date-picker__input.bx--focused,.bx--date-picker__input:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--date-picker__input.bx--focused,.bx--date-picker__input:focus{outline-style:dotted}}.bx--date-picker__input:disabled{background-color:#f4f4f4;border-bottom:1px solid transparent;color:#c6c6c6;cursor:not-allowed}.bx--date-picker__input:disabled::-webkit-input-placeholder{color:#c6c6c6}.bx--date-picker__input:disabled::placeholder{color:#c6c6c6}.bx--date-picker__input:disabled:hover{border-bottom:1px solid transparent}.bx--date-picker__input::-webkit-input-placeholder{color:#6f6f6f;opacity:1}.bx--date-picker__input::placeholder{color:#6f6f6f;opacity:1}.bx--date-picker__input--lg,.bx--date-picker__input--xl{height:3rem}.bx--date-picker__input--sm{height:2rem}.bx--date-picker__icon{fill:#161616;pointer-events:none;position:absolute;right:1rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1}.bx--date-picker__icon--invalid,.bx--date-picker__icon--warn{cursor:auto}.bx--date-picker__icon--warn{fill:#f1c21b}.bx--date-picker__icon--warn path:first-of-type{fill:#000;opacity:1}.bx--date-picker__icon--invalid{fill:#da1e28}.bx--date-picker__icon~.bx--date-picker__input{padding-right:3rem}.bx--date-picker__input:disabled~.bx--date-picker__icon{fill:#c6c6c6;cursor:not-allowed}.bx--date-picker--range>.bx--date-picker-container:first-child{margin-right:.0625rem}.bx--date-picker--range .bx--date-picker-container,.bx--date-picker--range .bx--date-picker__input{width:8.96875rem}.bx--date-picker.bx--skeleton input,.bx--date-picker__input.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative;width:100%}.bx--date-picker.bx--skeleton input:active,.bx--date-picker.bx--skeleton input:focus,.bx--date-picker.bx--skeleton input:hover,.bx--date-picker__input.bx--skeleton:active,.bx--date-picker__input.bx--skeleton:focus,.bx--date-picker__input.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--date-picker.bx--skeleton input:before,.bx--date-picker__input.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--date-picker.bx--skeleton input:before,.bx--date-picker__input.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--date-picker.bx--skeleton input::-webkit-input-placeholder,.bx--date-picker__input.bx--skeleton::-webkit-input-placeholder{color:transparent}.bx--date-picker.bx--skeleton input::placeholder,.bx--date-picker__input.bx--skeleton::placeholder{color:transparent}.bx--date-picker.bx--skeleton .bx--label{background:#e5e5e5;border:none;box-shadow:none;height:.875rem;padding:0;pointer-events:none;position:relative;width:4.6875rem}.bx--date-picker.bx--skeleton .bx--label:active,.bx--date-picker.bx--skeleton .bx--label:focus,.bx--date-picker.bx--skeleton .bx--label:hover{border:none;cursor:default;outline:none}.bx--date-picker.bx--skeleton .bx--label:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--date-picker.bx--skeleton .bx--label:before{-webkit-animation:none;animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--date-picker__icon{fill:ButtonText}}.bx--dropdown__wrapper--inline{grid-gap:0 1.5rem;align-items:center;display:inline-grid;grid-template:auto auto/auto -webkit-min-content;grid-template:auto auto/auto min-content}.bx--dropdown__wrapper--inline .bx--label{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--dropdown__wrapper--inline .bx--form-requirement,.bx--dropdown__wrapper--inline .bx--form__helper-text,.bx--dropdown__wrapper--inline .bx--label{margin:0}.bx--dropdown__wrapper--inline .bx--form-requirement{grid-column:2}.bx--dropdown{background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;color:#161616;cursor:pointer;display:block;height:2.5rem;list-style:none;outline:2px solid transparent;outline-offset:-2px;position:relative;transition:background-color 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--dropdown:hover{background-color:#e5e5e5}.bx--dropdown .bx--list-box__field{text-align:left}.bx--dropdown--lg,.bx--dropdown--xl{height:3rem;max-height:3rem}.bx--dropdown--lg .bx--dropdown__arrow,.bx--dropdown--xl .bx--dropdown__arrow{top:1rem}.bx--dropdown--sm{height:2rem;max-height:2rem}.bx--dropdown--sm .bx--dropdown__arrow{top:.5rem}.bx--dropdown--open{border-bottom-color:#e0e0e0}.bx--dropdown--invalid{outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--dropdown--invalid{outline-style:dotted}}.bx--dropdown--invalid .bx--dropdown-text{padding-right:3.5rem}.bx--dropdown--invalid+.bx--form-requirement{color:#da1e28;display:inline-block;max-height:12.5rem}.bx--dropdown__invalid-icon{fill:#da1e28;position:absolute;right:2.5rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bx--dropdown--open:hover{background-color:#f4f4f4}.bx--dropdown--open:focus{outline:1px solid transparent}.bx--dropdown--open .bx--dropdown-list{box-shadow:0 2px 6px rgba(0,0,0,.3);max-height:13.75rem;transition:max-height .11s cubic-bezier(0,0,.38,.9)}.bx--dropdown--light{background-color:#fff}.bx--dropdown--light:hover{background-color:#e5e5e5}.bx--dropdown--up .bx--dropdown-list{bottom:2rem}.bx--dropdown__arrow{fill:#161616;pointer-events:none;position:absolute;right:1rem;top:.8125rem;-webkit-transform-origin:50% 45%;transform-origin:50% 45%;transition:-webkit-transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9)}button.bx--dropdown-text{background:none;border:none;color:#161616;text-align:left;width:100%}button.bx--dropdown-text:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){button.bx--dropdown-text:focus{outline-style:dotted}}.bx--dropdown-text{display:block;height:calc(100% + 1px);overflow:hidden;padding-left:1rem;padding-right:2.625rem;text-overflow:ellipsis;white-space:nowrap}.bx--dropdown-list,.bx--dropdown-text{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--dropdown-list{background-color:#f4f4f4;box-shadow:0 2px 6px rgba(0,0,0,.3);display:flex;flex-direction:column;list-style:none;max-height:0;outline:2px solid transparent;outline-offset:-2px;overflow-x:hidden;overflow-y:auto;position:absolute;transition:max-height .11s cubic-bezier(.2,0,.38,.9);width:100%;z-index:9100}.bx--dropdown--light .bx--dropdown-list{background-color:#fff}.bx--dropdown:not(.bx--dropdown--open) .bx--dropdown-item{visibility:hidden}.bx--dropdown-item{opacity:0;position:relative;transition:visibility 70ms cubic-bezier(.2,0,.38,.9),opacity 70ms cubic-bezier(.2,0,.38,.9),background-color 70ms cubic-bezier(.2,0,.38,.9);visibility:inherit}.bx--dropdown-item:hover{background-color:#e5e5e5}.bx--dropdown-item:hover+.bx--dropdown-item .bx--dropdown-link{border-color:transparent}.bx--dropdown-item:active{background-color:#e0e0e0}.bx--dropdown-item:first-of-type .bx--dropdown-link{border-top-color:transparent}.bx--dropdown-item:last-of-type .bx--dropdown-link{border-bottom:none}.bx--dropdown-link{border:1px solid transparent;border-top-color:#e0e0e0;color:#525252;display:block;font-weight:400;height:2.5rem;line-height:1rem;margin:0 1rem;outline:2px solid transparent;outline-offset:-2px;overflow:hidden;padding:.6875rem 0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.bx--dropdown-link:hover{border-color:transparent;color:#161616}.bx--dropdown--light .bx--dropdown-link{border-top-color:#e0e0e0}.bx--dropdown--sm .bx--dropdown-link{height:2rem;padding-bottom:.4375rem;padding-top:.4375rem}.bx--dropdown--xl .bx--dropdown-link{height:3rem;padding-bottom:.9375rem;padding-top:.9375rem}.bx--dropdown--focused,.bx--dropdown-link:focus{margin:0;outline:2px solid #0f62fe;outline-offset:-2px;padding:.6875rem 1rem}@media screen and (prefers-contrast){.bx--dropdown--focused,.bx--dropdown-link:focus{outline-style:dotted}}.bx--dropdown-list[aria-activedescendant] .bx--dropdown-link:focus{margin:0 1rem;outline:none;padding:.6875rem 0}.bx--dropdown-list[aria-activedescendant] .bx--dropdown--focused:focus{margin:0;outline:2px solid #0f62fe;outline-offset:-2px;padding:.6875rem 1rem}@media screen and (prefers-contrast){.bx--dropdown-list[aria-activedescendant] .bx--dropdown--focused:focus{outline-style:dotted}}.bx--dropdown-list[aria-activedescendant] .bx--dropdown-item:active{background-color:inherit}.bx--dropdown-item:hover .bx--dropdown-link{border-bottom-color:#e5e5e5}.bx--dropdown--open .bx--dropdown__arrow{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.bx--dropdown--open.bx--dropdown--xl .bx--dropdown-list{max-height:16.5rem}.bx--dropdown--open.bx--dropdown--sm .bx--dropdown-list{max-height:11rem}.bx--dropdown--open .bx--dropdown-item{opacity:1}.bx--dropdown--disabled{border-bottom-color:transparent}.bx--dropdown--disabled:hover{background-color:#f4f4f4}.bx--dropdown--disabled:focus{outline:none}.bx--dropdown--disabled .bx--dropdown-text,.bx--dropdown--disabled .bx--list-box__label{color:#c6c6c6}.bx--dropdown--disabled .bx--dropdown__arrow,.bx--dropdown--disabled .bx--list-box__menu-icon svg{fill:#c6c6c6}.bx--dropdown--disabled.bx--dropdown--light:hover{background-color:#fff}.bx--dropdown--disabled .bx--list-box__field,.bx--dropdown--disabled .bx--list-box__menu-icon{cursor:not-allowed}.bx--dropdown--auto-width{max-width:25rem;width:auto}.bx--dropdown--inline{background-color:transparent;border-bottom-color:transparent;display:inline-block;justify-self:start;transition:background 70ms cubic-bezier(0,0,.38,.9);width:auto}.bx--dropdown--inline:hover{background-color:#e5e5e5}.bx--dropdown--inline.bx--dropdown--disabled{background-color:transparent}.bx--dropdown--inline .bx--dropdown__arrow{right:.5rem;top:.5rem}.bx--dropdown--inline.bx--dropdown--open{background-color:transparent}.bx--dropdown--inline .bx--dropdown-text{color:#161616;display:inline-block;height:2rem;overflow:visible;padding:.4375rem 2rem .4375rem .75rem}.bx--dropdown--inline.bx--dropdown--disabled .bx--dropdown-text{color:#c6c6c6}.bx--dropdown--inline.bx--dropdown--disabled:focus .bx--dropdown-text{outline:0}.bx--dropdown--inline.bx--dropdown--invalid .bx--dropdown__invalid-icon{right:2rem}.bx--dropdown--inline.bx--dropdown--invalid .bx--dropdown-text{padding-right:3.5rem}.bx--dropdown--inline.bx--dropdown--open:focus .bx--dropdown-list{box-shadow:0 2px 6px rgba(0,0,0,.3)}.bx--dropdown--inline .bx--dropdown-link{font-weight:400}.bx--dropdown--show-selected .bx--dropdown--selected{background-color:#e5e5e5;color:#161616;display:block}.bx--dropdown--show-selected .bx--dropdown--selected:hover{background-color:#e0e0e0}.bx--dropdown--show-selected .bx--dropdown--selected .bx--dropdown-link,.bx--dropdown--show-selected .bx--dropdown--selected+.bx--dropdown-item .bx--dropdown-link{border-top-color:transparent}.bx--dropdown--show-selected .bx--dropdown--selected .bx--list-box__menu-item__selected-icon{display:block}.bx--dropdown-v2.bx--skeleton,.bx--dropdown.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.bx--dropdown-v2.bx--skeleton:active,.bx--dropdown-v2.bx--skeleton:focus,.bx--dropdown-v2.bx--skeleton:hover,.bx--dropdown.bx--skeleton:active,.bx--dropdown.bx--skeleton:focus,.bx--dropdown.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--dropdown-v2.bx--skeleton:before,.bx--dropdown.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--dropdown-v2.bx--skeleton:before,.bx--dropdown.bx--skeleton:before{-webkit-animation:none;animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--dropdown .bx--list-box__field{outline:1px solid transparent}.bx--list-box__menu-item__option{outline:none}.bx--list-box__menu-item__selected-icon{fill:ButtonText}}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes rotate-end-p1{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes rotate-end-p2{to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@-webkit-keyframes init-stroke{0%{stroke-dashoffset:276.4608}to{stroke-dashoffset:52.527552}}@-webkit-keyframes stroke-end{0%{stroke-dashoffset:52.527552}to{stroke-dashoffset:276.4608}}.bx--loading{-webkit-animation-duration:.69s;animation-duration:.69s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:rotate;animation-name:rotate;-webkit-animation-timing-function:linear;animation-timing-function:linear;height:5.5rem;width:5.5rem}.bx--loading svg circle{-webkit-animation-duration:10ms;animation-duration:10ms;-webkit-animation-name:init-stroke;animation-name:init-stroke;-webkit-animation-timing-function:cubic-bezier(.2,0,.38,.9);animation-timing-function:cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--loading svg circle{-webkit-animation:none;animation:none}}.bx--loading__svg{fill:transparent}.bx--loading__svg circle{stroke-dasharray:276.4608 276.4608;stroke-linecap:butt;stroke-width:10}.bx--loading__stroke{stroke:#0f62fe;stroke-dashoffset:52.527552}.bx--loading--small .bx--loading__stroke{stroke-dashoffset:143.759616}.bx--loading--stop{-webkit-animation:rotate-end-p1 .7s cubic-bezier(.2,0,1,.9) forwards,rotate-end-p2 .7s cubic-bezier(.2,0,1,.9) .7s forwards;animation:rotate-end-p1 .7s cubic-bezier(.2,0,1,.9) forwards,rotate-end-p2 .7s cubic-bezier(.2,0,1,.9) .7s forwards}.bx--loading--stop svg circle{-webkit-animation-delay:.7s;animation-delay:.7s;-webkit-animation-duration:.7s;animation-duration:.7s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:stroke-end;animation-name:stroke-end;-webkit-animation-timing-function:cubic-bezier(.2,0,1,.9);animation-timing-function:cubic-bezier(.2,0,1,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--loading--stop svg circle{-webkit-animation:none;animation:none}}.bx--loading--small{height:1rem;width:1rem}.bx--loading--small circle{stroke-width:16}.bx--loading--small .bx--loading__svg{stroke:#0f62fe}.bx--loading__background{stroke:#e0e0e0;stroke-dashoffset:-22}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports(-webkit-appearance:none) and (stroke-color:transparent){circle.bx--loading__background{stroke-dasharray:265;stroke-dashoffset:0}}}.bx--loading-overlay{align-items:center;background-color:hsla(0,0%,9%,.5);display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;transition:background-color .72s cubic-bezier(.4,.14,.3,1);width:100%;z-index:6000}.bx--loading-overlay--stop{display:none}.bx--file{width:100%}.bx--file--invalid{fill:#da1e28;margin-right:.5rem}.bx--file--label{color:#161616;font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.28572;margin-bottom:.5rem}.bx--file--label--disabled{color:#c6c6c6}.bx--file-input{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--file-btn{display:inline-flex;margin:0;padding-right:4rem}.bx--file-browse-btn{color:#0f62fe;cursor:pointer;display:inline-block;margin-bottom:.5rem;max-width:20rem;outline:2px solid transparent;outline-offset:-2px;transition:.11s cubic-bezier(.2,0,.38,.9);width:100%}.bx--file-browse-btn:focus,.bx--file-browse-btn:hover{outline:2px solid #0f62fe}.bx--file-browse-btn:active,.bx--file-browse-btn:active:visited,.bx--file-browse-btn:focus,.bx--file-browse-btn:hover{text-decoration:underline}.bx--file-browse-btn:active{color:#161616}.bx--file-browse-btn--disabled{color:#c6c6c6;cursor:no-drop;text-decoration:none}.bx--file-browse-btn--disabled:focus,.bx--file-browse-btn--disabled:hover{color:#c6c6c6;outline:none;text-decoration:none}.bx--file-browse-btn--disabled .bx--file__drop-container{border:1px dashed #c6c6c6}.bx--label-description{color:#525252;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-bottom:1rem}.bx--label-description--disabled{color:#c6c6c6}.bx--file-btn~.bx--file-container{margin-top:1.5rem}.bx--btn~.bx--file-container{margin-top:1rem}.bx--file .bx--file-container,.bx--file~.bx--file-container{margin-top:.5rem}.bx--file__selected-file{grid-gap:.75rem 1rem;align-items:center;background-color:#f4f4f4;display:grid;gap:.75rem 1rem;grid-auto-rows:auto;grid-template-columns:1fr auto;margin-bottom:.5rem;max-width:20rem;min-height:3rem;word-break:break-word}.bx--file__selected-file:last-child{margin-bottom:0}.bx--file__selected-file .bx--form-requirement{display:block;grid-column:1/-1;margin:0;max-height:none}.bx--file__selected-file .bx--inline-loading__animation .bx--loading{margin-right:0}.bx--file__selected-file .bx--file-filename{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-left:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--file__selected-file--field,.bx--file__selected-file--md{gap:.5rem 1rem;min-height:2.5rem}.bx--file__selected-file--sm{gap:.25rem 1rem;min-height:2rem}.bx--file__selected-file--invalid__wrapper{background-color:#f4f4f4;margin-bottom:.5rem;max-width:20rem;outline:2px solid #da1e28;outline-offset:-2px;outline-width:1px}@media screen and (prefers-contrast){.bx--file__selected-file--invalid__wrapper{outline-style:dotted}}.bx--file__selected-file--invalid{outline:2px solid #da1e28;outline-offset:-2px;padding:.75rem 0}@media screen and (prefers-contrast){.bx--file__selected-file--invalid{outline-style:dotted}}.bx--file__selected-file--invalid.bx--file__selected-file--sm{padding:.25rem 0}.bx--file__selected-file--invalid.bx--file__selected-file--field,.bx--file__selected-file--invalid.bx--file__selected-file--md{padding:.5rem 0}.bx--file__selected-file--invalid .bx--form-requirement{border-top:1px solid #e0e0e0;padding-top:1rem}.bx--file__selected-file--invalid.bx--file__selected-file--sm .bx--form-requirement{padding-top:.4375rem}.bx--file__selected-file--invalid.bx--file__selected-file--field .bx--form-requirement,.bx--file__selected-file--invalid.bx--file__selected-file--md .bx--form-requirement{padding-top:.6875rem}.bx--file__selected-file--invalid .bx--form-requirement__supplement,.bx--file__selected-file--invalid .bx--form-requirement__title{font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;padding:0 1rem}.bx--file__selected-file--invalid .bx--form-requirement__title{color:#da1e28}.bx--file__selected-file--invalid .bx--form-requirement__supplement{color:#161616}.bx--file__selected-file--invalid+.bx--form-requirement{color:#da1e28;display:block;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;max-height:12.5rem;overflow:visible;padding:.5rem 1rem}.bx--file__selected-file--invalid+.bx--form-requirement .bx--form-requirement__supplement{color:#161616;padding-bottom:.5rem}.bx--file__state-container{align-items:center;display:flex;justify-content:center;min-width:1.5rem;padding-right:1rem}.bx--file__state-container .bx--loading__svg{stroke:#161616}.bx--file__state-container .bx--file-complete{fill:#0f62fe;cursor:pointer}.bx--file__state-container .bx--file-complete:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--file__state-container .bx--file-complete:focus{outline-style:dotted}}.bx--file__state-container .bx--file-complete [data-icon-path=inner-path]{fill:#fff;opacity:1}.bx--file__state-container .bx--file-invalid{fill:#da1e28;height:1rem;width:1rem}.bx--file__state-container .bx--file-close{fill:#161616;align-items:center;background-color:transparent;border:none;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;width:1.5rem}.bx--file__state-container .bx--file-close:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--file__state-container .bx--file-close:focus{outline-style:dotted}}.bx--file__state-container .bx--file-close svg path{fill:#161616}.bx--file__state-container .bx--inline-loading__animation{margin-right:-.5rem}.bx--file__drop-container{align-items:flex-start;border:1px dashed #8d8d8d;display:flex;height:6rem;justify-content:space-between;overflow:hidden;padding:1rem}.bx--file__drop-container--drag-over{background:none;outline:2px solid #0f62fe;outline-offset:-2px}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--file__selected-file{outline:1px solid transparent}.bx--file__state-container .bx--file-close svg path{fill:ButtonText}}@-webkit-keyframes stroke{to{stroke-dashoffset:0}}@keyframes stroke{to{stroke-dashoffset:0}}.bx--inline-loading{align-items:center;display:flex;min-height:2rem;width:100%}.bx--inline-loading__text{color:#525252;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333}.bx--inline-loading__animation{align-items:center;display:flex;justify-content:center;margin-right:.5rem;position:relative}.bx--inline-loading__checkmark-container{fill:#198038}.bx--inline-loading__checkmark-container.bx--inline-loading__svg{position:absolute;top:.75rem;width:.75rem}.bx--inline-loading__checkmark-container[hidden]{display:none}.bx--inline-loading__checkmark{fill:none;stroke:#0f62fe;stroke-dasharray:12;stroke-dashoffset:12;stroke-width:1.8;-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:stroke;animation-name:stroke;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.bx--inline-loading--error{fill:#da1e28;height:1rem;width:1rem}.bx--inline-loading--error[hidden]{display:none}.bx--loading--small .bx--inline-loading__svg{stroke:#0f62fe}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.bx--inline-loading__checkmark-container{right:.5rem;top:1px}.bx--inline-loading__checkmark{stroke-dasharray:0;stroke-dashoffset:0;-webkit-animation:none;animation:none}}.bx--list--nested,.bx--list--ordered,.bx--list--ordered--native,.bx--list--unordered{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;list-style:none}.bx--list--expressive,.bx--list--expressive .bx--list--nested{font-size:1rem;font-weight:400;letter-spacing:0;line-height:1.5}.bx--list--ordered--native{list-style:decimal}.bx--list__item{color:#161616}.bx--list--nested{margin-left:2rem}.bx--list--nested .bx--list__item{padding-left:.25rem}.bx--list--ordered:not(.bx--list--nested){counter-reset:item}.bx--list--ordered:not(.bx--list--nested)>.bx--list__item{position:relative}.bx--list--ordered:not(.bx--list--nested)>.bx--list__item:before{content:counter(item) ".";counter-increment:item;left:-1.5rem;position:absolute}.bx--list--ordered--native.bx--list--nested,.bx--list--ordered.bx--list--nested{list-style-type:lower-latin}.bx--list--unordered>.bx--list__item{position:relative}.bx--list--unordered>.bx--list__item:before{content:"–";left:-1rem;position:absolute}.bx--list--unordered.bx--list--nested>.bx--list__item:before{content:"▪";left:-.75rem}@keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate-end-p1{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate-end-p2{to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@keyframes init-stroke{0%{stroke-dashoffset:276.4608}to{stroke-dashoffset:52.527552}}@keyframes stroke-end{0%{stroke-dashoffset:52.527552}to{stroke-dashoffset:276.4608}}.bx--menu{background-color:#f4f4f4;box-shadow:0 2px 6px rgba(0,0,0,.3);max-width:18rem;min-width:13rem;padding:.25rem 0;position:fixed;visibility:hidden;z-index:9000}.bx--menu--open{visibility:visible}.bx--menu--open:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--menu--open:focus{outline-style:dotted}}.bx--menu--invisible{opacity:0;pointer-events:none}.bx--menu-option{background-color:#f4f4f4;color:#161616;cursor:pointer;height:2rem;position:relative;transition:background-color 70ms cubic-bezier(.2,0,.38,.9)}.bx--menu-option:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--menu-option:focus{outline-style:dotted}}.bx--menu-option--active,.bx--menu-option:hover{background-color:#e5e5e5}.bx--menu-option--danger:focus,.bx--menu-option--danger:hover{background-color:#da1e28;color:#fff}.bx--menu-option>.bx--menu{margin-top:-.25rem}.bx--menu-option__content{align-items:center;display:flex;height:100%;justify-content:space-between;padding:0 1rem}.bx--menu-option__content--disabled{background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--menu-option__content--disabled .bx--menu-option__icon,.bx--menu-option__content--disabled .bx--menu-option__info,.bx--menu-option__content--disabled .bx--menu-option__label{color:#c6c6c6}.bx--menu-option__content--indented .bx--menu-option__label{margin-left:1rem}.bx--menu-option__label{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;overflow:hidden;padding:.25rem 0;text-align:start;text-overflow:ellipsis;white-space:nowrap}.bx--menu-option__info{display:inline-flex;margin-left:1rem}.bx--menu-option__icon{align-items:center;display:flex;height:1rem;margin-right:.5rem;width:1rem}.bx--menu-divider{background-color:#e0e0e0;height:1px;margin:.25rem 0;width:100%}.bx--menu--md .bx--menu-option{height:2.5rem}.bx--menu--lg .bx--menu-option{height:3rem}.bx--modal{align-items:center;background-color:hsla(0,0%,9%,.5);content:"";display:flex;height:100vh;justify-content:center;left:0;opacity:0;position:fixed;top:0;transition:opacity .24s cubic-bezier(.4,.14,1,1),visibility 0ms linear .24s;visibility:hidden;width:100vw;z-index:9000}.bx--modal.is-visible{opacity:1;transition:opacity .24s cubic-bezier(0,0,.3,1),visibility 0ms linear;visibility:inherit}@media screen and (prefers-reduced-motion:reduce){.bx--modal.is-visible{transition:none}}.bx--modal .bx--date-picker__input,.bx--modal .bx--dropdown,.bx--modal .bx--dropdown-list,.bx--modal .bx--multi-select,.bx--modal .bx--number input[type=number],.bx--modal .bx--pagination,.bx--modal .bx--pagination__control-buttons,.bx--modal .bx--search-input,.bx--modal .bx--select-input,.bx--modal .bx--text-area,.bx--modal .bx--text-input{background-color:#fff}.bx--modal.is-visible .bx--modal-container{-webkit-transform:translateZ(0);transform:translateZ(0);transition:-webkit-transform .24s cubic-bezier(0,0,.3,1);transition:transform .24s cubic-bezier(0,0,.3,1);transition:transform .24s cubic-bezier(0,0,.3,1),-webkit-transform .24s cubic-bezier(0,0,.3,1)}.bx--modal-container{background-color:#f4f4f4;display:grid;grid-template-columns:100%;grid-template-rows:auto 1fr auto;height:100%;max-height:100%;outline:3px solid transparent;outline-offset:-3px;overflow:hidden;position:fixed;top:0;-webkit-transform:translate3d(0,-24px,0);transform:translate3d(0,-24px,0);-webkit-transform-origin:top center;transform-origin:top center;transition:-webkit-transform .24s cubic-bezier(.4,.14,1,1);transition:transform .24s cubic-bezier(.4,.14,1,1);transition:transform .24s cubic-bezier(.4,.14,1,1),-webkit-transform .24s cubic-bezier(.4,.14,1,1);width:100%}@media(min-width:42rem){.bx--modal-container{height:auto;max-height:90%;position:static;width:84%}}@media(min-width:66rem){.bx--modal-container{max-height:84%;width:60%}}@media(min-width:82rem){.bx--modal-container{width:48%}}.bx--modal-container .bx--modal-container-body{display:contents}.bx--modal-content{color:#161616;font-size:.875rem;font-weight:400;grid-column:1/-1;grid-row:2/-2;letter-spacing:.16px;line-height:1.42857;margin-bottom:3rem;overflow-y:auto;padding-left:1rem;padding-right:1rem;padding-top:.5rem;position:relative}.bx--modal-content:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--modal-content:focus{outline-style:dotted}}.bx--modal-content p,.bx--modal-content__regular-content{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;padding-right:20%}.bx--modal-content--with-form{padding-right:1rem}.bx--modal-header{grid-column:1/-1;grid-row:1/1;margin-bottom:.5rem;padding-left:1rem;padding-right:3rem;padding-top:1rem}.bx--modal-header__label{color:#525252;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;margin-bottom:.25rem}.bx--modal-header__heading{color:#161616;font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.4}.bx--modal-container--xs .bx--modal-content__regular-content{padding-right:1rem}.bx--modal-container--xs .bx--modal-content p{padding-right:0}@media(min-width:42rem){.bx--modal-container--xs{width:48%}}@media(min-width:66rem){.bx--modal-container--xs{max-height:48%;width:32%}}@media(min-width:82rem){.bx--modal-container--xs{width:24%}}.bx--modal-container--sm .bx--modal-content__regular-content{padding-right:1rem}.bx--modal-container--sm .bx--modal-content p{padding-right:0}@media(min-width:42rem){.bx--modal-container--sm{width:60%}}@media(min-width:66rem){.bx--modal-container--sm{max-height:72%;width:42%}.bx--modal-container--sm .bx--modal-content p,.bx--modal-container--sm .bx--modal-content__regular-content{padding-right:20%}}@media(min-width:82rem){.bx--modal-container--sm{width:36%}}@media(min-width:42rem){.bx--modal-container--lg{width:96%}}@media(min-width:66rem){.bx--modal-container--lg{max-height:96%;width:84%}}@media(min-width:82rem){.bx--modal-container--lg{width:72%}}.bx--modal-scroll-content>:last-child{padding-bottom:2rem}.bx--modal-content--overflow-indicator{background-image:linear-gradient(180deg,hsla(0,0%,96%,0),#f4f4f4);bottom:3rem;content:"";grid-column:1/-1;grid-row:2/-2;height:2rem;left:0;pointer-events:none;position:absolute;width:100%}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports(-webkit-appearance:none) and (stroke-color:transparent){.bx--modal-content--overflow-indicator{background-image:linear-gradient(180deg,hsla(0,0%,96%,0),#f4f4f4)}}}.bx--modal-content:focus~.bx--modal-content--overflow-indicator{margin:0 2px 2px;width:calc(100% - 4px)}@media screen and (-ms-high-contrast:active){.bx--modal-scroll-content>:last-child{padding-bottom:0}.bx--modal-content--overflow-indicator{display:none}}.bx--modal-footer{display:flex;grid-column:1/-1;grid-row:-1/-1;height:4rem;justify-content:flex-end;margin-top:auto}.bx--modal-footer .bx--btn{flex:0 1 50%;height:4rem;margin:0;max-width:none;padding-bottom:2rem;padding-top:1rem}.bx--modal-footer--three-button .bx--btn{align-items:flex-start;flex:0 1 25%}.bx--modal-close{background-color:transparent;border:2px solid transparent;cursor:pointer;height:3rem;overflow:hidden;padding:.75rem;position:absolute;right:0;top:0;transition:background-color .11s cubic-bezier(.2,0,.38,.9);width:3rem;z-index:2}.bx--modal-close:hover{background-color:#e5e5e5}.bx--modal-close:focus{border-color:#0f62fe;outline:none}.bx--modal-close::-moz-focus-inner{border:0}.bx--modal-close__icon{fill:#161616;height:1.25rem;width:1.25rem}.bx--body--with-modal-open{overflow:hidden}.bx--body--with-modal-open .bx--overflow-menu-options,.bx--body--with-modal-open .bx--tooltip{z-index:9000}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--modal-close__icon{fill:ButtonText}.bx--modal-close:focus{color:Highlight;outline:1px solid Highlight}}.bx--multi-select .bx--tag{margin:0 .5rem 0 0;min-width:auto}.bx--multi-select--filterable .bx--tag{margin:0 .5rem 0 1rem}.bx--multi-select .bx--list-box__menu{min-width:auto}.bx--multi-select .bx--list-box__menu-item__option .bx--checkbox-wrapper{align-items:center;display:flex;height:100%;width:100%}.bx--multi-select .bx--list-box__menu-item__option .bx--checkbox-label{display:inline-block;overflow:hidden;padding-left:1.75rem;text-overflow:ellipsis;white-space:nowrap;width:100%}.bx--multi-select .bx--list-box__menu-item__option>.bx--form-item{flex-direction:row;margin:0}.bx--multi-select .bx--list-box__menu-item .bx--checkbox:checked~.bx--checkbox-label-text{color:#161616}.bx--multi-select--filterable{transition:outline-color 70ms cubic-bezier(.2,0,.38,.9)}.bx--multi-select--filterable.bx--combo-box .bx--text-input{background-clip:padding-box;border:.125rem solid transparent;outline:none}.bx--multi-select--filterable--input-focused{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--multi-select--filterable--input-focused{outline-style:dotted}}.bx--multi-select--filterable.bx--multi-select--selected .bx--text-input{padding-left:0}.bx--multi-select--filterable.bx--list-box--disabled:hover .bx--text-input{background-color:#f4f4f4}.bx--multi-select--filterable .bx--list-box__selection--multi{margin:0 0 0 1rem}.bx--multi-select--filterable.bx--multi-select--inline,.bx--multi-select--filterable.bx--multi-select--inline .bx--text-input{background-color:transparent;border-bottom:0}.bx--multi-select:not(.bx--list-box--expanded) .bx--list-box__menu{visibility:hidden}.bx--inline-notification{color:#fff;display:flex;flex-wrap:wrap;height:auto;margin-bottom:1rem;margin-top:1rem;max-width:18rem;min-height:3rem;min-width:18rem;position:relative;width:100%}@media(min-width:42rem){.bx--inline-notification{flex-wrap:nowrap;max-width:38rem}}@media(min-width:66rem){.bx--inline-notification{max-width:46rem}}@media(min-width:99rem){.bx--inline-notification{max-width:52rem}}.bx--inline-notification:not(.bx--inline-notification--low-contrast) a{color:#78a9ff}.bx--inline-notification a{text-decoration:none}.bx--inline-notification a:hover{text-decoration:underline}.bx--inline-notification a:focus{outline:1px solid #78a9ff}.bx--inline-notification.bx--inline-notification--low-contrast a:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--inline-notification.bx--inline-notification--low-contrast a:focus{outline-style:dotted}}.bx--inline-notification--low-contrast{color:#161616}.bx--inline-notification--low-contrast:before{border-style:solid;border-width:1px 1px 1px 0;box-sizing:border-box;content:"";-webkit-filter:opacity(.4);filter:opacity(.4);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.bx--inline-notification--error{background:#393939;border-left:3px solid #fa4d56}.bx--inline-notification--error .bx--actionable-notification__icon,.bx--inline-notification--error .bx--inline-notification__icon,.bx--inline-notification--error .bx--toast-notification__icon{fill:#fa4d56}.bx--inline-notification--low-contrast.bx--inline-notification--error{background:#fff1f1;border-left:3px solid #da1e28}.bx--inline-notification--low-contrast.bx--inline-notification--error .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--error .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--error .bx--toast-notification__icon{fill:#da1e28}.bx--inline-notification--low-contrast.bx--inline-notification--error:before{border-color:#da1e28}.bx--inline-notification--success{background:#393939;border-left:3px solid #42be65}.bx--inline-notification--success .bx--actionable-notification__icon,.bx--inline-notification--success .bx--inline-notification__icon,.bx--inline-notification--success .bx--toast-notification__icon{fill:#42be65}.bx--inline-notification--low-contrast.bx--inline-notification--success{background:#defbe6;border-left:3px solid #198038}.bx--inline-notification--low-contrast.bx--inline-notification--success .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--success .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--success .bx--toast-notification__icon{fill:#198038}.bx--inline-notification--low-contrast.bx--inline-notification--success:before{border-color:#198038}.bx--inline-notification--info,.bx--inline-notification--info-square{background:#393939;border-left:3px solid #4589ff}.bx--inline-notification--info .bx--actionable-notification__icon,.bx--inline-notification--info .bx--inline-notification__icon,.bx--inline-notification--info .bx--toast-notification__icon,.bx--inline-notification--info-square .bx--actionable-notification__icon,.bx--inline-notification--info-square .bx--inline-notification__icon,.bx--inline-notification--info-square .bx--toast-notification__icon{fill:#4589ff}.bx--inline-notification--low-contrast.bx--inline-notification--info,.bx--inline-notification--low-contrast.bx--inline-notification--info-square{background:#edf5ff;border-left:3px solid #0043ce}.bx--inline-notification--low-contrast.bx--inline-notification--info .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info-square .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info-square .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info-square .bx--toast-notification__icon{fill:#0043ce}.bx--inline-notification--low-contrast.bx--inline-notification--info-square:before,.bx--inline-notification--low-contrast.bx--inline-notification--info:before{border-color:#0043ce}.bx--inline-notification--warning,.bx--inline-notification--warning-alt{background:#393939;border-left:3px solid #f1c21b}.bx--inline-notification--warning .bx--actionable-notification__icon,.bx--inline-notification--warning .bx--inline-notification__icon,.bx--inline-notification--warning .bx--toast-notification__icon,.bx--inline-notification--warning-alt .bx--actionable-notification__icon,.bx--inline-notification--warning-alt .bx--inline-notification__icon,.bx--inline-notification--warning-alt .bx--toast-notification__icon{fill:#f1c21b}.bx--inline-notification--low-contrast.bx--inline-notification--warning,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt{background:#fdf6dd;border-left:3px solid #f1c21b}.bx--inline-notification--low-contrast.bx--inline-notification--warning .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt .bx--toast-notification__icon{fill:#f1c21b}.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt:before,.bx--inline-notification--low-contrast.bx--inline-notification--warning:before{border-color:#f1c21b}.bx--inline-notification--warning .bx--inline-notification__icon path[opacity="0"]{fill:#000;opacity:1}.bx--inline-notification__details{display:flex;flex-grow:1;margin:0 3rem 0 1rem}@media(min-width:42rem){.bx--inline-notification__details{margin:0 1rem}}.bx--inline-notification__icon{flex-shrink:0;margin-right:1rem;margin-top:.875rem}.bx--inline-notification__text-wrapper{display:flex;flex-wrap:wrap;padding:.9375rem 0}.bx--inline-notification__title{font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.28572;margin:0 .25rem 0 0}.bx--inline-notification__subtitle{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;word-break:break-word}.bx--inline-notification__action-button.bx--btn--ghost{height:2rem;margin-bottom:.5rem;margin-left:2.5rem}@media(min-width:42rem){.bx--inline-notification__action-button.bx--btn--ghost{margin:.5rem 0}}.bx--inline-notification:not(.bx--inline-notification--low-contrast) .bx--inline-notification__action-button.bx--btn--ghost{color:#78a9ff}.bx--inline-notification__action-button.bx--btn--ghost:active,.bx--inline-notification__action-button.bx--btn--ghost:hover{background-color:#4c4c4c}.bx--inline-notification--low-contrast .bx--inline-notification__action-button.bx--btn--ghost:active,.bx--inline-notification--low-contrast .bx--inline-notification__action-button.bx--btn--ghost:hover{background-color:#fff}.bx--inline-notification__action-button.bx--btn--ghost:focus{border-color:transparent;box-shadow:none;outline:2px solid #fff;outline-offset:-2px}.bx--inline-notification--low-contrast .bx--inline-notification__action-button.bx--btn--ghost:focus{outline-color:#0f62fe}.bx--inline-notification--hide-close-button .bx--inline-notification__action-button.bx--btn--ghost{margin-right:.5rem}.bx--inline-notification__close-button{align-items:center;background:transparent;border:none;cursor:pointer;display:flex;flex-direction:column;height:3rem;justify-content:center;max-width:3rem;min-width:3rem;outline:2px solid transparent;outline-offset:-2px;padding:0;position:absolute;right:0;top:0;transition:outline .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9);width:3rem}.bx--inline-notification__close-button:focus{outline:2px solid #fff;outline-offset:-2px}.bx--inline-notification__close-button .bx--inline-notification__close-icon{fill:#fff}@media(min-width:42rem){.bx--inline-notification__close-button{position:static}}.bx--inline-notification--low-contrast .bx--inline-notification__close-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--inline-notification--low-contrast .bx--inline-notification__close-button:focus{outline-style:dotted}}.bx--inline-notification--low-contrast .bx--inline-notification__close-button .bx--inline-notification__close-icon{fill:#161616}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--inline-notification{outline:1px solid transparent}.bx--btn.bx--btn--ghost.bx--inline-notification__action-button:focus,.bx--inline-notification__close-button:focus{color:Highlight;outline:1px solid Highlight}.bx--inline-notification .bx--inline-notification__close-icon{fill:ButtonText}}.bx--toast-notification{box-shadow:0 2px 6px 0 rgba(0,0,0,.2);color:#fff;display:flex;height:auto;margin-bottom:.5rem;margin-right:1rem;margin-top:.5rem;padding-left:1rem;width:18rem}.bx--toast-notification:first-child{margin-top:1rem}@media(min-width:99rem){.bx--toast-notification{width:22rem}}.bx--toast-notification:not(.bx--toast-notification--low-contrast) a{color:#78a9ff}.bx--toast-notification a{text-decoration:none}.bx--toast-notification a:hover{text-decoration:underline}.bx--toast-notification a:focus{outline:1px solid #78a9ff}.bx--toast-notification.bx--toast-notification--low-contrast a:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--toast-notification.bx--toast-notification--low-contrast a:focus{outline-style:dotted}}.bx--toast-notification--low-contrast{color:#161616}.bx--toast-notification--error{background:#393939;border-left:3px solid #fa4d56}.bx--toast-notification--error .bx--actionable-notification__icon,.bx--toast-notification--error .bx--inline-notification__icon,.bx--toast-notification--error .bx--toast-notification__icon{fill:#fa4d56}.bx--toast-notification--low-contrast.bx--toast-notification--error{background:#fff1f1;border-left:3px solid #da1e28}.bx--toast-notification--low-contrast.bx--toast-notification--error .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--error .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--error .bx--toast-notification__icon{fill:#da1e28}.bx--toast-notification--success{background:#393939;border-left:3px solid #42be65}.bx--toast-notification--success .bx--actionable-notification__icon,.bx--toast-notification--success .bx--inline-notification__icon,.bx--toast-notification--success .bx--toast-notification__icon{fill:#42be65}.bx--toast-notification--low-contrast.bx--toast-notification--success{background:#defbe6;border-left:3px solid #198038}.bx--toast-notification--low-contrast.bx--toast-notification--success .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--success .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--success .bx--toast-notification__icon{fill:#198038}.bx--toast-notification--info,.bx--toast-notification--info-square{background:#393939;border-left:3px solid #4589ff}.bx--toast-notification--info .bx--actionable-notification__icon,.bx--toast-notification--info .bx--inline-notification__icon,.bx--toast-notification--info .bx--toast-notification__icon,.bx--toast-notification--info-square .bx--actionable-notification__icon,.bx--toast-notification--info-square .bx--inline-notification__icon,.bx--toast-notification--info-square .bx--toast-notification__icon{fill:#4589ff}.bx--toast-notification--low-contrast.bx--toast-notification--info,.bx--toast-notification--low-contrast.bx--toast-notification--info-square{background:#edf5ff;border-left:3px solid #0043ce}.bx--toast-notification--low-contrast.bx--toast-notification--info .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info-square .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info-square .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info-square .bx--toast-notification__icon{fill:#0043ce}.bx--toast-notification--warning,.bx--toast-notification--warning-alt{background:#393939;border-left:3px solid #f1c21b}.bx--toast-notification--warning .bx--actionable-notification__icon,.bx--toast-notification--warning .bx--inline-notification__icon,.bx--toast-notification--warning .bx--toast-notification__icon,.bx--toast-notification--warning-alt .bx--actionable-notification__icon,.bx--toast-notification--warning-alt .bx--inline-notification__icon,.bx--toast-notification--warning-alt .bx--toast-notification__icon{fill:#f1c21b}.bx--toast-notification--low-contrast.bx--toast-notification--warning,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt{background:#fdf6dd;border-left:3px solid #f1c21b}.bx--toast-notification--low-contrast.bx--toast-notification--warning .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt .bx--toast-notification__icon{fill:#f1c21b}.bx--toast-notification--warning .bx--toast-notification__icon path[opacity="0"]{fill:#000;opacity:1}.bx--toast-notification__icon{flex-shrink:0;margin-right:1rem;margin-top:1rem}.bx--toast-notification__details{margin-right:1rem}.bx--toast-notification__close-button{align-items:center;background-color:transparent;border:none;cursor:pointer;display:flex;flex-direction:column;height:3rem;justify-content:center;margin-left:auto;min-height:3rem;min-width:3rem;outline:2px solid transparent;outline-offset:-2px;padding:0;transition:outline .11s,background-color .11s;width:3rem}.bx--toast-notification__close-button:focus{outline:2px solid #fff;outline-offset:-2px}.bx--toast-notification__close-button .bx--toast-notification__close-icon{fill:#fff}.bx--toast-notification--low-contrast .bx--toast-notification__close-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--toast-notification--low-contrast .bx--toast-notification__close-button:focus{outline-style:dotted}}.bx--toast-notification--low-contrast .bx--toast-notification__close-button .bx--toast-notification__close-icon{fill:#161616}.bx--toast-notification__title{font-weight:600;margin-top:1rem}.bx--toast-notification__subtitle,.bx--toast-notification__title{font-size:.875rem;letter-spacing:.16px;line-height:1.28572;word-break:break-word}.bx--toast-notification__subtitle{color:#fff;font-weight:400;margin-bottom:1rem;margin-top:0}.bx--toast-notification--low-contrast .bx--toast-notification__subtitle{color:#161616}.bx--toast-notification__caption{color:#fff;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-bottom:1rem;padding-top:.5rem}.bx--toast-notification--low-contrast .bx--toast-notification__caption{color:#161616}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--toast-notification{outline:1px solid transparent}.bx--toast-notification__close-button:focus{color:Highlight;outline:1px solid Highlight}.bx--toast-notification .bx--toast-notification__close-icon{fill:ButtonText}}.bx--number{display:flex;flex-direction:column;position:relative;width:100%}.bx--number input[type=number]{-moz-appearance:textfield;background-color:#f4f4f4;border:0;border-bottom:.0625rem solid #8d8d8d;border-radius:0;box-sizing:border-box;color:#161616;display:inline-flex;font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.75rem;font-weight:400;font-weight:300;height:2.5rem;letter-spacing:.32px;line-height:1.33333;min-width:9.375rem;outline:2px solid transparent;outline-offset:-2px;padding-left:1rem;padding-right:8rem;transition:background-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--number input[type=number]:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--number input[type=number]:focus{outline-style:dotted}}.bx--number input[type=number]:disabled~.bx--number__controls{cursor:not-allowed;pointer-events:none}.bx--number input[type=number]:disabled~.bx--number__controls svg{fill:#c6c6c6}.bx--number input[type=number]::-ms-clear{display:none}.bx--number input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.bx--number--lg.bx--number input[type=number],.bx--number--xl.bx--number input[type=number]{padding-right:9rem}.bx--number--sm.bx--number input[type=number]{padding-right:7rem}.bx--number input[type=number]:disabled{background-color:#f4f4f4;border-bottom-color:transparent;color:#c6c6c6;cursor:not-allowed}.bx--number__input-wrapper{align-items:center;display:flex;position:relative}.bx--number__controls{display:flex;flex-direction:row;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:5rem}.bx--number__control-btn,.bx--number__controls{align-items:center;height:100%;justify-content:center}.bx--number__control-btn{-webkit-appearance:none;appearance:none;background:none;border:0;border-bottom:.0625rem solid #8d8d8d;color:#161616;cursor:pointer;display:inline-block;display:inline-flex;padding:0;position:relative;width:100%}.bx--number__control-btn::-moz-focus-inner{border:0}.bx--number__control-btn:after,.bx--number__control-btn:before{background-color:#f4f4f4;content:"";display:block;height:2.25rem;position:absolute;top:.125rem;width:.125rem}.bx--number__control-btn:before{left:0}.bx--number__control-btn:after{right:0}.bx--number__control-btn svg{fill:currentColor}.bx--number__control-btn:focus{color:#161616;outline:1px solid #0f62fe;outline-offset:-2px;outline-width:2px}@media screen and (prefers-contrast){.bx--number__control-btn:focus{outline-style:dotted}}.bx--number__control-btn:hover{background-color:#e5e5e5;color:#161616;cursor:pointer}.bx--number__control-btn:hover:after,.bx--number__control-btn:hover:before{background-color:#e5e5e5}.bx--number__control-btn:focus:after,.bx--number__control-btn:focus:before,.bx--number__control-btn:hover:focus:after,.bx--number__control-btn:hover:focus:before{background-color:transparent}.bx--number__control-btn:disabled{border-bottom-color:transparent;color:#c6c6c6;cursor:not-allowed}.bx--number__control-btn.down-icon{order:1}.bx--number__control-btn.up-icon{order:2}.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn{border-bottom-width:0}.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn:hover{border:0;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn:hover{outline-style:dotted}}.bx--number input[type=number][data-invalid]~.bx--number__controls .bx--number__control-btn{border-bottom-width:0}.bx--number input[type=number][data-invalid]:not(:focus)~.bx--number__controls .bx--number__control-btn:hover{outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--number input[type=number][data-invalid]:not(:focus)~.bx--number__controls .bx--number__control-btn:hover{outline-style:dotted}}.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn.up-icon:after{background-color:transparent}.bx--number input[type=number][data-invalid]~.bx--number__controls .bx--number__control-btn.up-icon:after{background-color:#da1e28}.bx--number input[type=number][data-invalid]:focus~.bx--number__controls .bx--number__control-btn.up-icon:after,.bx--number input[type=number][data-invalid]~.bx--number__controls .bx--number__control-btn.up-icon:focus:after{background-color:#0f62fe}.bx--number__rule-divider{background-color:#e0e0e0;height:1rem;position:absolute;width:.0625rem;z-index:6000}.bx--number__rule-divider:first-of-type{order:0}.bx--number__controls .bx--number__rule-divider:first-of-type{background-color:transparent;left:0}.bx--number--light .bx--number__invalid+.bx--number__controls .bx--number__rule-divider:first-of-type,.bx--number--light .bx--number__rule-divider,.bx--number__invalid+.bx--number__controls .bx--number__rule-divider:first-of-type{background-color:#e0e0e0}.bx--number input[type=number]:disabled+.bx--number__controls .bx--number__rule-divider:first-of-type{background-color:transparent}.bx--number input[type=number]:disabled+.bx--number__controls .bx--number__rule-divider{background-color:#c6c6c6}.bx--number__control-btn:focus~.bx--number__rule-divider{background-color:transparent}.bx--number__invalid{fill:#da1e28;position:absolute;right:6rem}.bx--number--lg .bx--number__invalid,.bx--number--xl .bx--number__invalid{right:7rem}.bx--number--sm .bx--number__invalid{right:5rem}.bx--number__invalid+.bx--number__rule-divider{position:absolute;right:5rem}.bx--number--lg .bx--number__invalid+.bx--number__rule-divider,.bx--number--xl .bx--number__invalid+.bx--number__rule-divider{right:6rem}.bx--number--sm .bx--number__invalid+.bx--number__rule-divider{right:4rem}.bx--number__control-btn.down-icon:focus~.bx--number__rule-divider,.bx--number__control-btn.down-icon:hover~.bx--number__rule-divider,.bx--number__control-btn.up-icon:focus+.bx--number__rule-divider,.bx--number__control-btn.up-icon:hover+.bx--number__rule-divider{background-color:transparent}.bx--number__invalid--warning{fill:#f1c21b}.bx--number__invalid--warning path:first-of-type{fill:#000;opacity:1}.bx--number--light .bx--number__control-btn:after,.bx--number--light .bx--number__control-btn:before,.bx--number--light input[type=number],.bx--number--light input[type=number]:disabled{background-color:#fff}.bx--number--light .bx--number__control-btn:focus:after,.bx--number--light .bx--number__control-btn:focus:before{background-color:transparent}.bx--number--light .bx--number__control-btn:hover,.bx--number--light .bx--number__control-btn:not(:focus):hover:after,.bx--number--light .bx--number__control-btn:not(:focus):hover:before{background-color:#e5e5e5}.bx--number--lg input[type=number],.bx--number--xl input[type=number]{height:3rem}.bx--number--lg .bx--number__controls,.bx--number--xl .bx--number__controls{width:6rem}.bx--number--lg .bx--number__control-btn,.bx--number--xl .bx--number__control-btn{width:3rem}.bx--number--lg .bx--number__control-btn:after,.bx--number--lg .bx--number__control-btn:before,.bx--number--xl .bx--number__control-btn:after,.bx--number--xl .bx--number__control-btn:before{height:2.75rem}.bx--number--sm input[type=number]{height:2rem}.bx--number--sm .bx--number__controls{width:4rem}.bx--number--sm .bx--number__control-btn{width:2rem}.bx--number--sm .bx--number__control-btn:after,.bx--number--sm .bx--number__control-btn:before{height:1.75rem}.bx--number--nolabel .bx--label+.bx--form__helper-text{margin-top:0}.bx--number--nosteppers input[type=number]{padding-right:3rem}.bx--number--nosteppers .bx--number__invalid{right:1rem}.bx--number--readonly input[type=number]{background:transparent}.bx--number--readonly .bx--number__controls{display:none}.bx--number__readonly-icon{position:absolute;right:1rem}.bx--number.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;height:2.5rem;padding:0;pointer-events:none;position:relative;width:100%}.bx--number.bx--skeleton:active,.bx--number.bx--skeleton:focus,.bx--number.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--number.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--number.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--number.bx--skeleton input[type=number]{display:none}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--number__control-btn:focus,.bx--number__control-btn:hover{color:Highlight;outline:1px solid Highlight}.bx--number__control-btn{outline:1px solid transparent}.bx--number__control-btn svg{fill:ButtonText}}.bx--overflow-menu,.bx--overflow-menu__trigger{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;height:2.5rem;justify-content:center;outline:2px solid transparent;outline-offset:-2px;padding:0;position:relative;transition:outline .11s cubic-bezier(0,0,.38,.9),background-color .11s cubic-bezier(0,0,.38,.9);width:100%;width:2.5rem}.bx--overflow-menu::-moz-focus-inner,.bx--overflow-menu__trigger::-moz-focus-inner{border:0}.bx--overflow-menu:focus,.bx--overflow-menu__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--overflow-menu:focus,.bx--overflow-menu__trigger:focus{outline-style:dotted}}.bx--overflow-menu:hover,.bx--overflow-menu__trigger:hover{background-color:#e5e5e5}.bx--overflow-menu--sm{height:2rem;width:2rem}.bx--overflow-menu--lg,.bx--overflow-menu--xl{height:3rem;width:3rem}.bx--overflow-menu__trigger.bx--tooltip--a11y.bx--tooltip__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--overflow-menu__trigger.bx--tooltip--a11y.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--overflow-menu__trigger.bx--tooltip--a11y.bx--tooltip__trigger:focus svg{outline:none}.bx--overflow-menu.bx--overflow-menu--open,.bx--overflow-menu.bx--overflow-menu--open .bx--overflow-menu__trigger{background-color:#f4f4f4;box-shadow:0 2px 6px rgba(0,0,0,.3);transition:none}.bx--overflow-menu--light.bx--overflow-menu--open,.bx--overflow-menu--light.bx--overflow-menu--open .bx--overflow-menu__trigger{background-color:#fff}.bx--overflow-menu__icon{fill:#161616;height:1rem;width:1rem}.bx--overflow-menu-options{align-items:flex-start;background-color:#f4f4f4;box-shadow:0 2px 6px rgba(0,0,0,.3);display:none;flex-direction:column;left:0;list-style:none;position:absolute;top:32px;width:10rem;z-index:6000}.bx--overflow-menu-options:after{background-color:#f4f4f4;content:"";display:block;position:absolute;transition:background-color .11s cubic-bezier(0,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--overflow-menu-options:after{transition:none}}.bx--overflow-menu.bx--overflow-menu--open:hover{background-color:#f4f4f4}.bx--overflow-menu-options--light,.bx--overflow-menu-options--light:after,.bx--overflow-menu.bx--overflow-menu--light.bx--overflow-menu--open:hover{background-color:#fff}.bx--overflow-menu-options[data-floating-menu-direction=bottom]:after{height:.1875rem;left:0;top:-.1875rem;width:2.5rem}.bx--overflow-menu-options[data-floating-menu-direction=top]:after{bottom:-.5rem;height:.5rem;left:0;width:2.5rem}.bx--overflow-menu-options[data-floating-menu-direction=left]:after{height:2.5rem;right:-.375rem;top:0;width:.375rem}.bx--overflow-menu-options[data-floating-menu-direction=right]:after{height:2.5rem;left:-.375rem;top:0;width:.375rem}.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=bottom]:after,.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=top]:after{width:2rem}.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=left]:after,.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=right]:after{height:2rem}.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=bottom]:after,.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=top]:after,.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=bottom]:after,.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=top]:after{width:3rem}.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=left]:after,.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=right]:after,.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=left]:after,.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=right]:after{height:3rem}.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=bottom]:after,.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=top]:after{left:auto;right:0}.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=left]:after,.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=right]:after{bottom:0;top:auto}.bx--overflow-menu-options--open{display:flex}.bx--overflow-menu-options__content{width:100%}.bx--overflow-menu-options__option{align-items:center;background-color:transparent;display:flex;height:2.5rem;padding:0;transition:background-color .11s cubic-bezier(0,0,.38,.9);width:100%}.bx--overflow-menu-options--sm .bx--overflow-menu-options__option{height:2rem}.bx--overflow-menu-options--lg .bx--overflow-menu-options__option,.bx--overflow-menu-options--xl .bx--overflow-menu-options__option{height:3rem}.bx--overflow-menu--divider,.bx--overflow-menu--light .bx--overflow-menu--divider{border-top:1px solid #e0e0e0}a.bx--overflow-menu-options__btn:before{content:"";display:inline-block;height:100%;vertical-align:middle}.bx--overflow-menu-options__btn{align-items:center;background-color:transparent;border:none;color:#525252;cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:400;height:100%;letter-spacing:.16px;line-height:1.28572;max-width:11.25rem;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;text-align:left;transition:outline .11s cubic-bezier(0,0,.38,.9),background-color .11s cubic-bezier(0,0,.38,.9),color .11s cubic-bezier(0,0,.38,.9);width:100%}.bx--overflow-menu-options__btn:hover{color:#161616}.bx--overflow-menu-options__btn:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--overflow-menu-options__btn:focus{outline-style:dotted}}.bx--overflow-menu-options__btn::-moz-focus-inner{border:none}.bx--overflow-menu-options__btn svg{fill:#525252}.bx--overflow-menu-options__btn:hover svg{fill:#161616}.bx--overflow-menu-options__option-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--overflow-menu-options__option:hover{background-color:#e5e5e5}.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:focus,.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:hover{background-color:#da1e28;color:#fff}.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:focus svg,.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:hover svg{fill:currentColor}.bx--overflow-menu-options__option--disabled:hover{background-color:#f4f4f4;cursor:not-allowed}.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn{color:#c6c6c6;pointer-events:none}.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn:active,.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn:focus,.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn:hover{background-color:#f4f4f4;outline:2px solid transparent;outline-offset:-2px}.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn svg{fill:#c6c6c6}.bx--overflow-menu--flip{left:-140px}.bx--overflow-menu--flip:before{left:145px}.bx--overflow-menu__container{display:inline-block}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--overflow-menu-options__btn:focus,.bx--overflow-menu:focus{color:Highlight;outline:1px solid Highlight}.bx--overflow-menu svg{fill:ButtonText}}.bx--pagination-nav{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;line-height:0}.bx--pagination-nav__list{align-items:center;display:flex;list-style:none}.bx--pagination-nav__list-item{padding:0}.bx--pagination-nav__list-item:first-child{padding-left:0}.bx--pagination-nav__list-item:last-child{padding-right:0}.bx--pagination-nav__page{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:0;color:#525252;cursor:pointer;display:inline-block;display:block;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;line-height:1;min-width:3rem;outline:0;padding:1.0625rem .25rem;position:relative;text-align:center;text-decoration:none;transition:background-color .11s cubic-bezier(.2,0,.38,.9),color .11s cubic-bezier(.2,0,.38,.9);-webkit-user-select:none;user-select:none}.bx--pagination-nav__page::-moz-focus-inner{border:0}.bx--pagination-nav__page:hover{background-color:#e5e5e5;color:#525252}.bx--pagination-nav__page:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--pagination-nav__page:focus{outline-style:dotted}}.bx--pagination-nav__page.bx--pagination-nav__page--disabled,.bx--pagination-nav__page:disabled{background:none;color:rgba(82,82,82,.5);outline:none;pointer-events:none}.bx--pagination-nav__page:not(.bx--pagination-nav__page--direction):after{background-color:#0f62fe;bottom:0;content:"";display:block;height:.25rem;left:50%;opacity:0;position:absolute;transition:width .11s cubic-bezier(.2,0,.38,.9);width:0}@media screen and (prefers-reduced-motion:reduce){.bx--pagination-nav__page:not(.bx--pagination-nav__page--direction):after{transition:none}}.bx--pagination-nav__page--active+.bx--pagination-nav__page:after,.bx--pagination-nav__page.bx--pagination-nav__page--active:after{left:calc(50% - .5rem);opacity:1;width:1rem}.bx--pagination-nav__page.bx--pagination-nav__page--active{background-color:initial;color:#525252;font-weight:600}.bx--pagination-nav__page .bx--pagination-nav__icon{fill:currentColor;pointer-events:none}.bx--pagination-nav__page--direction{align-items:center;display:flex;height:3rem;justify-content:center;line-height:0;width:3rem}.bx--pagination-nav__select{position:relative}.bx--pagination-nav__page--select{-webkit-appearance:none;appearance:none;max-height:3rem;text-indent:calc(50% - 4.5px)}@-moz-document url-prefix(){.bx--pagination-nav__page--select{text-indent:0}}.bx--pagination-nav__select-icon-wrapper{height:100%;pointer-events:none;position:absolute;top:0;width:100%}.bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction):after{background-color:#0f62fe;bottom:0;content:"";display:block;height:.25rem;left:50%;opacity:0;position:absolute;transition:width .11s cubic-bezier(.2,0,.38,.9);width:0}@media screen and (prefers-reduced-motion:reduce){.bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction):after{transition:none}}.bx--pagination-nav__page--active+.bx--pagination-nav__select-icon-wrapper:after,.bx--pagination-nav__select-icon-wrapper.bx--pagination-nav__page--active:after{left:calc(50% - .5rem);opacity:1;width:1rem}.bx--pagination-nav__page--active+.bx--pagination-nav__select-icon-wrapper .bx--pagination-nav__select-icon{display:none}.bx--pagination-nav__select-icon{left:calc(50% - .5rem);pointer-events:none;position:absolute;top:calc(50% - .5rem)}.bx--pagination-nav__accessibility-label{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--select{align-items:flex-start;flex-direction:column}.bx--select,.bx--select-input__wrapper{display:flex;position:relative;width:100%}.bx--select-input__wrapper{align-items:center}.bx--select-input{-webkit-appearance:none;appearance:none;background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;border-radius:0;color:#161616;cursor:pointer;display:block;font-family:inherit;font-size:.875rem;font-weight:400;height:2.5rem;letter-spacing:.16px;line-height:1.28572;opacity:1;outline:2px solid transparent;outline-offset:-2px;padding:0 3rem 0 1rem;transition:outline 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--select-input:hover{background-color:#e5e5e5}.bx--select-input::-ms-expand{display:none}@-moz-document url-prefix(){.bx--select-input:-moz-focusring,.bx--select-input::-moz-focus-inner{background-image:none;color:transparent;text-shadow:0 0 0 #000}}.bx--select-input:focus{color:#161616;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--select-input:focus{outline-style:dotted}}.bx--select-input:disabled,.bx--select-input:hover:disabled{background-color:#f4f4f4;border-bottom-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--select-input--sm{height:2rem;max-height:2rem}.bx--select-input--lg,.bx--select-input--xl{height:3rem;max-height:3rem}.bx--select--disabled .bx--form__helper-text,.bx--select--disabled .bx--label{color:#c6c6c6}.bx--select--warning .bx--select-input,.bx--select-input__wrapper[data-invalid] .bx--select-input{padding-right:4.5rem}.bx--select-input:disabled~.bx--select__arrow{fill:#c6c6c6}.bx--select--light .bx--select-input{background-color:#fff}.bx--select--light .bx--select-input:hover{background-color:#e5e5e5}.bx--select--light .bx--select-input:disabled,.bx--select--light .bx--select-input:hover:disabled{background-color:#fff;color:#c6c6c6;cursor:not-allowed}.bx--select__arrow{fill:#161616;height:100%;pointer-events:none;position:absolute;right:1rem;top:0}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--select__arrow path{fill:ButtonText}}.bx--select__invalid-icon{position:absolute;right:2.5rem}.bx--select-input__wrapper[data-invalid] .bx--select-input~.bx--select__invalid-icon{fill:#da1e28}.bx--select__invalid-icon--warning{fill:#f1c21b}.bx--select__invalid-icon--warning path[fill]{fill:#000;opacity:1}.bx--select-option,optgroup.bx--select-optgroup{background-color:#e5e5e5;color:#161616}.bx--select-option:disabled,optgroup.bx--select-optgroup:disabled{color:#c6c6c6}.bx--select--inline{align-items:center;display:flex;flex-direction:row}.bx--select--inline.bx--select--invalid .bx--form__helper-text,.bx--select--inline.bx--select--invalid .bx--label{align-self:flex-start;margin-top:.8125rem}.bx--select--inline .bx--form__helper-text{margin-bottom:0;margin-left:.5rem}.bx--select--inline .bx--label{margin:0 .5rem 0 0;white-space:nowrap}.bx--select--inline .bx--select-input{background-color:transparent;border-bottom:none;color:#161616;padding-left:.5rem;padding-right:2rem;width:auto}.bx--select--inline .bx--select-input:focus,.bx--select--inline .bx--select-input:focus optgroup,.bx--select--inline .bx--select-input:focus option{background-color:#fff}.bx--select--inline .bx--select-input[disabled],.bx--select--inline .bx--select-input[disabled]:hover{background-color:#f4f4f4}.bx--select--inline .bx--select__arrow{right:.5rem}.bx--select--inline.bx--select--invalid .bx--select-input{padding-right:3.5rem}.bx--select--inline.bx--select--invalid .bx--select-input~.bx--select__invalid-icon{right:2rem}.bx--select--inline .bx--select-input:disabled{color:#c6c6c6;cursor:not-allowed}.bx--select--inline .bx--select-input:disabled~*{cursor:not-allowed}.bx--select.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;height:2.5rem;padding:0;pointer-events:none;position:relative;width:100%}.bx--select.bx--skeleton:active,.bx--select.bx--skeleton:focus,.bx--select.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--select.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--select.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--select.bx--skeleton .bx--select-input{display:none}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--select__arrow{fill:ButtonText}}.bx--text-input{background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;color:#161616;font-size:.875rem;font-weight:400;height:2.5rem;letter-spacing:.16px;line-height:1.28572;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;transition:background-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--text-input:active,.bx--text-input:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--text-input:active,.bx--text-input:focus{outline-style:dotted}}.bx--text-input-wrapper svg[hidden]{display:none}.bx--text-input--lg,.bx--text-input--xl{height:3rem}.bx--text-input--sm{height:2rem}.bx--password-input{padding-right:2.5rem}.bx--text-input--sm.bx--password-input{padding-right:2rem}.bx--text-input--lg.bx--password-input{padding-right:3rem}.bx--text-input::-webkit-input-placeholder{color:#6f6f6f;opacity:1}.bx--text-input::placeholder{color:#6f6f6f;opacity:1}.bx--text-input--light{background-color:#fff}.bx--text-input__field-wrapper{display:flex;position:relative;width:100%}.bx--text-input__invalid-icon,.bx--text-input__readonly-icon{position:absolute;right:1rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bx--text-input__invalid-icon{fill:#da1e28}.bx--text-input__invalid-icon--warning{fill:#f1c21b}.bx--text-input__invalid-icon--warning path:first-of-type{fill:#000;opacity:1}.bx--text-input--password__visibility{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--text-input--password__visibility:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--text-input--password__visibility:focus{outline-style:dotted}}.bx--text-input--password__visibility:focus{outline:1px solid transparent}.bx--text-input--password__visibility:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--text-input--password__visibility:focus svg{outline-style:dotted}}.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after,.bx--text-input--password__visibility:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after,.bx--text-input--password__visibility:before{display:inline-block}}.bx--text-input--password__visibility:after,.bx--text-input--password__visibility:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--text-input--password__visibility:after,.bx--text-input--password__visibility:before{transition:none}}.bx--text-input--password__visibility.bx--tooltip--a11y:after,.bx--text-input--password__visibility.bx--tooltip--a11y:before{transition:none}.bx--text-input--password__visibility:before{border-style:solid;content:"";height:0;width:0}.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after{width:auto}}@supports(-ms-accelerator:true){.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after{width:auto}}@supports(-ms-ime-align:auto){.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after{border:1px solid transparent}}.bx--text-input--password__visibility:after{content:attr(aria-label)}.bx--text-input--password__visibility.bx--tooltip--a11y:after{content:none}.bx--text-input--password__visibility.bx--tooltip--visible:after,.bx--text-input--password__visibility.bx--tooltip--visible:before,.bx--text-input--password__visibility:focus:after,.bx--text-input--password__visibility:focus:before,.bx--text-input--password__visibility:hover:after,.bx--text-input--password__visibility:hover:before{opacity:1}.bx--text-input--password__visibility.bx--tooltip--visible .bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--visible+.bx--assistive-text,.bx--text-input--password__visibility:focus .bx--assistive-text,.bx--text-input--password__visibility:focus+.bx--assistive-text,.bx--text-input--password__visibility:hover .bx--assistive-text,.bx--text-input--password__visibility:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--text-input--password__visibility.bx--tooltip--visible .bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--visible+.bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--text-input--password__visibility:focus .bx--assistive-text,.bx--text-input--password__visibility:focus+.bx--assistive-text,.bx--text-input--password__visibility:focus.bx--tooltip--a11y:before,.bx--text-input--password__visibility:hover .bx--assistive-text,.bx--text-input--password__visibility:hover+.bx--assistive-text,.bx--text-input--password__visibility:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--text-input--password__visibility.bx--tooltip--hidden .bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--text-input--password__visibility.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--text-input--password__visibility .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after,.bx--text-input--password__visibility:before{bottom:0;left:50%}.bx--text-input--password__visibility:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text,.bx--text-input--password__visibility:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger,.bx--text-input--password__visibility{align-items:center;background:none;border:0;cursor:pointer;display:flex;height:100%;justify-content:center;min-height:auto;outline:2px solid transparent;outline-offset:-2px;padding:0;position:absolute;right:0;transition:outline 70ms cubic-bezier(.2,0,.38,.9);width:2.5rem}.bx--text-input--sm+.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger{width:2rem}.bx--text-input--lg+.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger{width:3rem}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg{fill:#525252;transition:fill 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg{fill:ButtonText}}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:focus svg,.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:hover svg{fill:#161616}.bx--text-input--invalid,.bx--text-input--warning,.bx--text-input-wrapper--readonly .bx--text-input{padding-right:2.5rem}.bx--text-input--invalid.bx--password-input{padding-right:4rem}.bx--text-input--invalid+.bx--text-input--password__visibility,.bx--text-input--invalid+.bx--text-input--password__visibility__toggle{right:1rem}.bx--password-input-wrapper .bx--text-input__invalid-icon{right:2.5rem}.bx--text-input:disabled+.bx--text-input--password__visibility svg,.bx--text-input:disabled+.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg{fill:#c6c6c6;cursor:not-allowed}.bx--text-input:disabled+.bx--text-input--password__visibility svg:hover,.bx--text-input:disabled+.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg:hover{fill:#c6c6c6}.bx--text-input:disabled{-webkit-text-fill-color:#c6c6c6;background-color:#f4f4f4;border-bottom:1px solid transparent;color:#c6c6c6;cursor:not-allowed;outline:2px solid transparent;outline-offset:-2px}.bx--text-input--light:disabled{background-color:#fff}.bx--text-input:disabled::-webkit-input-placeholder{color:#c6c6c6;opacity:1}.bx--text-input:disabled::placeholder{color:#c6c6c6;opacity:1}.bx--text-input--invalid{box-shadow:none;outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--text-input--invalid{outline-style:dotted}}.bx--text-input--invalid .bx--text-input--password__visibility,.bx--text-input--invalid .bx--text-input--password__visibility__toggle{right:2.5rem}.bx--skeleton.bx--text-input{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}.bx--skeleton.bx--text-input:active,.bx--skeleton.bx--text-input:focus,.bx--skeleton.bx--text-input:hover{border:none;cursor:default;outline:none}.bx--skeleton.bx--text-input:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--skeleton.bx--text-input:before{-webkit-animation:none;animation:none}}.bx--form--fluid .bx--text-input-wrapper{background:#f4f4f4;position:relative;transition:background-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9)}.bx--form--fluid .bx--label{left:1rem;margin:0;position:absolute;top:.8125rem;z-index:1}.bx--form--fluid .bx--form__helper-text{display:none}.bx--form--fluid .bx--text-input{min-height:4rem;padding:2rem 1rem .8125rem}.bx--form--fluid .bx--text-input__divider,.bx--text-input__divider{display:none}.bx--form--fluid .bx--text-input--invalid,.bx--form--fluid .bx--text-input--warn{border-bottom:none}.bx--form--fluid .bx--text-input--invalid+.bx--text-input__divider,.bx--form--fluid .bx--text-input--warn+.bx--text-input__divider{border-color:#e0e0e0;border-style:solid;border-bottom:none;display:block;margin:0 1rem}.bx--form--fluid .bx--text-input__invalid-icon{top:5rem}.bx--form--fluid .bx--text-input-wrapper--light{background:#fff}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid{outline:2px solid transparent;outline-offset:-2px}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]:not(:focus){outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]:not(:focus){outline-style:dotted}}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:focus{outline-style:dotted}}.bx--text-input-wrapper.bx--text-input-wrapper--inline{flex-flow:row wrap}.bx--text-input-wrapper .bx--label--inline{flex:1 1;margin:.8125rem 0 0;overflow-wrap:break-word;word-break:break-word}.bx--text-input-wrapper .bx--label--inline--sm{margin-top:.5625rem}.bx--text-input-wrapper .bx--label--inline--lg,.bx--text-input-wrapper .bx--label--inline--xl{margin-top:1.0625rem}.bx--text-input__label-helper-wrapper{flex:2 1;flex-direction:column;margin-right:1.5rem;max-width:8rem;overflow-wrap:break-word}.bx--text-input-wrapper .bx--form__helper-text--inline{margin-top:.125rem}.bx--text-input__field-outer-wrapper{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;width:100%}.bx--text-input__field-outer-wrapper--inline{flex:8 1;flex-direction:column}.bx--form--fluid .bx--text-input-wrapper--readonly,.bx--text-input-wrapper--readonly .bx--text-input{background:transparent}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--btn.bx--btn--icon-only.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg,.bx--btn.bx--btn--icon-only.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:hover svg,.bx--text-input--password__visibility{fill:ButtonText}}.bx--data-table-container+.bx--pagination{border-top:0}.bx--pagination{align-items:center;background-color:#f4f4f4;border-top:1px solid #e0e0e0;display:flex;font-size:.875rem;font-weight:400;justify-content:space-between;letter-spacing:.16px;line-height:1.28572;min-height:2.5rem;overflow-x:auto;width:calc(100% - 1px)}@media(min-width:42rem){.bx--pagination{overflow:visible;overflow:initial}.bx--pagination .bx--pagination__control-buttons{display:flex}}@media(max-width:41.98rem){.bx--pagination .bx--pagination__left>*,.bx--pagination .bx--pagination__right>*{display:none}.bx--pagination .bx--pagination__items-count{display:inline;display:initial}.bx--pagination .bx--pagination__control-buttons{display:flex}}.bx--pagination--sm{min-height:2rem}.bx--pagination--lg{min-height:3rem}.bx--pagination .bx--select{align-items:center;height:100%}.bx--pagination .bx--select-input--inline__wrapper{display:flex;height:100%}.bx--pagination .bx--select-input{background-color:#f4f4f4;font-size:.875rem;font-weight:400;height:100%;letter-spacing:.16px;line-height:1.28572;line-height:2.5rem;min-width:auto;padding:0 2.25rem 0 1rem;width:auto}.bx--pagination--sm .bx--select-input{line-height:2rem}.bx--pagination--lg .bx--select-input{line-height:3rem}.bx--pagination .bx--select-input:hover{background:#e5e5e5}.bx--pagination .bx--select--inline .bx--select-input:focus,.bx--pagination .bx--select--inline .bx--select-input:focus optgroup,.bx--pagination .bx--select--inline .bx--select-input:focus option{background-color:#f4f4f4}.bx--pagination .bx--select__arrow{top:50%;-webkit-transform:translate(-.5rem,-50%);transform:translate(-.5rem,-50%)}.bx--pagination .bx--select__item-count .bx--select-input{border-right:.0625rem solid #e0e0e0}.bx--pagination .bx--select__page-number .bx--select-input{border-left:1px solid #e0e0e0}.bx--pagination__left,.bx--pagination__right{align-items:center;display:flex;height:100%}.bx--pagination__left>.bx--form-item,.bx--pagination__right>.bx--form-item{height:100%}.bx--pagination__left .bx--pagination__text,.bx--pagination__right .bx--pagination__text{white-space:nowrap}.bx--pagination__left .bx--pagination__text{margin-right:.0625rem}.bx--pagination__right .bx--pagination__text{margin-left:.0625rem;margin-right:1rem}.bx--pagination__left{padding:0 1rem 0 0}@media(min-width:42rem){.bx--pagination__left{padding:0 1rem}.bx--pagination__text{display:inline-block}}span.bx--pagination__text{color:#525252;margin-left:1rem}.bx--btn--ghost.bx--pagination__button,.bx--pagination__button{fill:#161616;align-items:center;background:none;border:none;border-left:1px solid #e0e0e0;cursor:pointer;display:flex;height:2.5rem;justify-content:center;margin:0;min-height:2rem;transition:outline .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9);width:2.5rem}.bx--pagination--sm .bx--btn--ghost.bx--pagination__button,.bx--pagination--sm .bx--pagination__button{height:2rem;width:2rem}.bx--pagination--lg .bx--btn--ghost.bx--pagination__button,.bx--pagination--lg .bx--pagination__button{height:3rem;width:3rem}.bx--btn--ghost:focus.bx--pagination__button,.bx--pagination__button:focus{border-left:0;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--btn--ghost:focus.bx--pagination__button,.bx--pagination__button:focus{outline-style:dotted}}.bx--btn--ghost:hover.bx--pagination__button,.bx--pagination__button:hover{background:#e5e5e5}.bx--btn--ghost.bx--pagination__button--no-index,.bx--pagination__button--no-index{fill:#c6c6c6;cursor:not-allowed}.bx--btn--ghost:disabled:hover.bx--pagination__button,.bx--btn--ghost:hover.bx--pagination__button--no-index,.bx--pagination__button--no-index:hover,.bx--pagination__button:disabled:hover{fill:#c6c6c6;background:#f4f4f4;border-color:#e0e0e0;cursor:not-allowed}.bx--pagination.bx--skeleton .bx--skeleton__text{margin-bottom:0;margin-right:1rem}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--btn--ghost.bx--pagination__button,.bx--pagination__button{outline:1px solid transparent}}.bx--progress-bar__label{color:#161616;display:flex;font-size:.875rem;font-weight:400;justify-content:space-between;letter-spacing:.16px;line-height:1.28572;margin-bottom:.5rem;min-width:3rem}.bx--progress-bar__label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--progress-bar__track{background-color:#f4f4f4;height:.5rem;min-width:3rem;position:relative;width:100%}.bx--progress-bar--big .bx--progress-bar__track{height:.5rem}.bx--progress-bar--small .bx--progress-bar__track{height:.25rem}.bx--progress-bar__bar{background-color:currentColor;color:#0f62fe;display:block;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:0 center;transform-origin:0 center;transition:-webkit-transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9);width:100%}.bx--progress-bar--indeterminate .bx--progress-bar__track:after{-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:progress-bar-indeterminate;animation-name:progress-bar-indeterminate;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-image:linear-gradient(90deg,#0f62fe 12.5%,transparent 0);background-position-x:0;background-size:200% 100%;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.bx--progress-bar__helper-text{color:#525252;font-size:.75rem;letter-spacing:.32px;line-height:1.33333;margin-top:.5rem}.bx--progress-bar__status-icon{flex-shrink:0;margin-left:1rem}.bx--progress-bar--finished .bx--progress-bar__bar,.bx--progress-bar--finished .bx--progress-bar__status-icon{color:#198038}.bx--progress-bar--error .bx--progress-bar__bar,.bx--progress-bar--error .bx--progress-bar__helper-text,.bx--progress-bar--error .bx--progress-bar__status-icon{color:#da1e28}.bx--progress-bar--error .bx--progress-bar__bar,.bx--progress-bar--finished .bx--progress-bar__bar{-webkit-transform:scaleX(1);transform:scaleX(1)}.bx--progress-bar--error.bx--progress-bar--inline .bx--progress-bar__track,.bx--progress-bar--finished.bx--progress-bar--inline .bx--progress-bar__track{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--progress-bar--error.bx--progress-bar--inline .bx--progress-bar__label,.bx--progress-bar--finished.bx--progress-bar--inline .bx--progress-bar__label{flex-shrink:1;justify-content:flex-start;margin-right:0}@-webkit-keyframes progress-bar-indeterminate{0%{background-position-x:25%}80%,to{background-position-x:-105%}}@keyframes progress-bar-indeterminate{0%{background-position-x:25%}80%,to{background-position-x:-105%}}.bx--progress-bar--inline{align-items:center;display:flex}.bx--progress-bar--inline .bx--progress-bar__label{margin-bottom:0;margin-right:1rem}.bx--progress-bar--inline .bx--progress-bar__track{flex-basis:0;flex-grow:1}.bx--progress-bar--inline .bx--progress-bar__helper-text{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--progress-bar--indented .bx--progress-bar__helper-text,.bx--progress-bar--indented .bx--progress-bar__label{padding-left:1rem;padding-right:1rem}.bx--tooltip__label{align-items:center;color:#525252;display:inline-flex;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333}.bx--tooltip__label:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__label:focus{outline-style:dotted}}.bx--tooltip__trigger svg{fill:#525252}.bx--tooltip__trigger:not(.bx--btn--icon-only){align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:inline-flex;font-size:1rem;padding:0}.bx--tooltip__trigger:not(.bx--btn--icon-only)::-moz-focus-inner{border:0}.bx--tooltip__trigger:not(.bx--btn--icon-only):focus{fill:#0353e9;outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger:not(.bx--btn--icon-only):focus{outline-style:dotted}}.bx--tooltip__trigger:not(.bx--btn--icon-only)[disabled] svg{fill:#c6c6c6}.bx--tooltip__label .bx--tooltip__trigger{margin-left:.5rem}.bx--tooltip__label--bold{font-weight:600}.bx--tooltip{word-wrap:break-word;background:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;display:none;margin-top:.25rem;max-width:18rem;min-width:13rem;padding:1rem;position:absolute;z-index:6000}.bx--tooltip:focus{box-shadow:inset 0 0 0 1px #393939,inset 0 0 0 2px #fff;outline:0}.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-start,.bx--tooltip.bx--tooltip--top.bx--tooltip--align-start{-webkit-transform:translate(calc(50% - 22px));transform:translate(calc(50% - 22px))}.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-start .bx--tooltip__caret,.bx--tooltip.bx--tooltip--top.bx--tooltip--align-start .bx--tooltip__caret{margin-left:15px}.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-end,.bx--tooltip.bx--tooltip--top.bx--tooltip--align-end{-webkit-transform:translate(calc(22px - 50%));transform:translate(calc(22px - 50%))}.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-end .bx--tooltip__caret,.bx--tooltip.bx--tooltip--top.bx--tooltip--align-end .bx--tooltip__caret{margin-right:15px}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-start{-webkit-transform:translateY(calc(-15px + 50%));transform:translateY(calc(-15px + 50%))}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-start .bx--tooltip__caret{top:14px}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-end{-webkit-transform:translateY(calc(31px - 50%));transform:translateY(calc(31px - 50%))}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-end .bx--tooltip__caret{bottom:25px;top:auto}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-start{-webkit-transform:translateY(calc(-26px + 50%));transform:translateY(calc(-26px + 50%))}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-start .bx--tooltip__caret{top:26px}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-end{-webkit-transform:translateY(calc(20px - 50%));transform:translateY(calc(20px - 50%))}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-end .bx--tooltip__caret{bottom:12px;top:auto}.bx--tooltip p{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;text-align:left}.bx--tooltip button{padding-right:2rem}.bx--tooltip .bx--btn:focus{border-color:#fff;outline-color:#393939}.bx--tooltip .bx--link{color:#78a9ff;font-size:.875rem}.bx--tooltip .bx--link:focus{outline:1px solid #fff;outline-offset:2px}.bx--tooltip .bx--link:active,.bx--tooltip .bx--link:active:visited,.bx--tooltip .bx--link:active:visited:hover{color:#fff}.bx--tooltip .bx--link:visited{color:#78a9ff}.bx--tooltip .bx--tooltip__content[tabindex="-1"]:focus{outline:none}.bx--tooltip .bx--tooltip__caret{border-bottom:.4296875rem solid #393939;border-left:.4296875rem solid transparent;border-right:.4296875rem solid transparent;content:"";height:0;left:0;margin:0 auto;position:absolute;right:0;top:calc(-.42969rem + 1px);width:0}.bx--tooltip .bx--tooltip__footer{align-items:center;display:flex;justify-content:space-between;margin-top:1rem}.bx--tooltip[data-floating-menu-direction=left]{margin-left:-.5rem}.bx--tooltip[data-floating-menu-direction=left] .bx--tooltip__caret{left:auto;right:calc(-.42969rem + 1px);top:50%;-webkit-transform:rotate(90deg) translate(50%,-50%);transform:rotate(90deg) translate(50%,-50%)}.bx--tooltip[data-floating-menu-direction=top]{margin-top:-.5rem}.bx--tooltip[data-floating-menu-direction=top] .bx--tooltip__caret{bottom:calc(-.42969rem + 1px);top:auto;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bx--tooltip[data-floating-menu-direction=right]{margin-left:.5rem}.bx--tooltip[data-floating-menu-direction=right] .bx--tooltip__caret{left:calc(-.42969rem + 1px);right:auto;top:50%;-webkit-transform:rotate(270deg) translate(50%,-50%);transform:rotate(270deg) translate(50%,-50%)}.bx--tooltip[data-floating-menu-direction=bottom]{margin-top:.5rem}.bx--tooltip__heading{font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.28572;margin-bottom:.5rem}.bx--tooltip--shown{display:block;margin-top:0}.bx--tooltip--definition{position:relative}.bx--tooltip--definition .bx--tooltip__trigger{border-bottom:1px dotted #0f62fe;color:#161616;display:inline-flex;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;position:relative}.bx--tooltip--definition .bx--tooltip__trigger:hover+.bx--tooltip--definition__bottom,.bx--tooltip--definition .bx--tooltip__trigger:hover+.bx--tooltip--definition__top{display:block}.bx--tooltip--definition .bx--tooltip__trigger:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip--definition .bx--tooltip__trigger:focus{outline-style:dotted}}.bx--tooltip--definition .bx--tooltip__trigger:focus+.bx--tooltip--definition__bottom,.bx--tooltip--definition .bx--tooltip__trigger:focus+.bx--tooltip--definition__top{display:block}.bx--tooltip--definition__bottom,.bx--tooltip--definition__top{background:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);display:none;margin-top:.75rem;padding:.5rem 1rem;pointer-events:none;position:absolute;width:13rem;z-index:1}.bx--tooltip--definition__bottom p,.bx--tooltip--definition__top p{color:#fff;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--tooltip--definition__bottom .bx--tooltip__caret,.bx--tooltip--definition__top .bx--tooltip__caret{background:#393939;height:.6rem;left:0;margin-left:1rem;position:absolute;right:0;width:.6rem}.bx--tooltip--definition__bottom .bx--tooltip__caret{top:-.2rem;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.bx--tooltip--definition__top{margin-top:-2rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip--definition__top .bx--tooltip__caret{bottom:-.2rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bx--tooltip--definition__align-end{right:0}.bx--tooltip--definition__align-center{margin-left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.bx--tooltip--definition__top.bx--tooltip--definition__align-center{margin-left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip--definition__align-center .bx--tooltip__caret{left:auto;margin-left:auto;margin-right:calc(50% - 6px)}.bx--tooltip--definition__align-end .bx--tooltip__caret{left:auto;margin-left:auto;margin-right:1rem}.bx--tooltip--definition.bx--tooltip--a11y{display:inline-flex}.bx--tooltip--definition button.bx--tooltip--a11y{margin:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition{border-bottom:.0625rem dotted #525252;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;transition:border-color .11s}.bx--tooltip__trigger.bx--tooltip__trigger--definition:focus,.bx--tooltip__trigger.bx--tooltip__trigger--definition:hover{border-bottom-color:#0f62fe}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top{align-items:center;cursor:default;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{display:inline-block}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{transition:none}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.5rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover:before{opacity:1}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.25rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:after{left:0;top:-.5625rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.25rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start:after{left:0;top:-.5625rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.25rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center:after{left:50%;top:-.5625rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.25rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end:after{left:auto;right:0;top:-.5625rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom{align-items:center;cursor:default;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{display:inline-block}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{transition:none}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.5rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover:before{opacity:1}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.25rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:after{bottom:-.5625rem;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y+.bx--assistive-text{bottom:-.5rem;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.25rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start:after{bottom:-.5625rem;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start.bx--tooltip--a11y+.bx--assistive-text{bottom:-.5rem;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.25rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center:after{bottom:-.5625rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center.bx--tooltip--a11y+.bx--assistive-text{bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.25rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end:after{bottom:-.5625rem;left:auto;right:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end.bx--tooltip--a11y+.bx--assistive-text{bottom:-.5rem;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip--icon{align-items:center;display:inline-flex}.bx--tooltip--icon__bottom,.bx--tooltip--icon__top{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip--icon__bottom:after,.bx--tooltip--icon__bottom:before,.bx--tooltip--icon__top:after,.bx--tooltip--icon__top:before{align-items:center;display:flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;opacity:0;pointer-events:none;position:absolute;transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip--icon__bottom:after,.bx--tooltip--icon__bottom:before,.bx--tooltip--icon__top:after,.bx--tooltip--icon__top:before{transition:none}}.bx--tooltip--icon__bottom:before,.bx--tooltip--icon__top:before{border-color:transparent transparent #393939;border-style:solid;border-width:0 .25rem .3125rem;content:"";height:0;left:0;margin:1px auto 0 50%;right:0;width:0}.bx--tooltip--icon__bottom:after,.bx--tooltip--icon__top:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;content:attr(aria-label);font-weight:400;height:1.5rem;margin-left:50%;max-width:13rem;min-width:1.5rem;padding:0 1rem;pointer-events:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.bx--tooltip--icon__bottom:focus:after,.bx--tooltip--icon__bottom:focus:before,.bx--tooltip--icon__bottom:hover:after,.bx--tooltip--icon__bottom:hover:before,.bx--tooltip--icon__top:focus:after,.bx--tooltip--icon__top:focus:before,.bx--tooltip--icon__top:hover:after,.bx--tooltip--icon__top:hover:before{opacity:1}.bx--tooltip--icon__bottom:focus svg,.bx--tooltip--icon__bottom:hover svg,.bx--tooltip--icon__top:focus svg,.bx--tooltip--icon__top:hover svg{fill:#525252}.bx--tooltip--icon__bottom:focus,.bx--tooltip--icon__top:focus{outline:1px solid transparent}.bx--tooltip--icon__bottom:focus svg,.bx--tooltip--icon__top:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip--icon__bottom:focus svg,.bx--tooltip--icon__top:focus svg{outline-style:dotted}}.bx--tooltip--icon__top:before{top:1px;-webkit-transform:translate(-50%,calc(-100% - 9px)) rotate(180deg);transform:translate(-50%,calc(-100% - 9px)) rotate(180deg)}.bx--tooltip--icon__top:after{top:0;-webkit-transform:translate(-50%,calc(-100% - 12px));transform:translate(-50%,calc(-100% - 12px))}.bx--tooltip--icon__bottom:before{bottom:0;-webkit-transform:translate(-50%,10px) rotate(0);transform:translate(-50%,10px) rotate(0)}.bx--tooltip--icon__bottom:after{bottom:0;-webkit-transform:translate(-50%,calc(100% + 10px));transform:translate(-50%,calc(100% + 10px))}.bx--tooltip--icon__top.bx--tooltip--icon__align-start:before{margin-left:4px;top:1px;-webkit-transform:translateY(calc(-100% - 9px)) rotate(180deg);transform:translateY(calc(-100% - 9px)) rotate(180deg)}.bx--tooltip--icon__top.bx--tooltip--icon__align-start:after{margin-left:0;top:0;-webkit-transform:translateY(calc(-100% - 12px));transform:translateY(calc(-100% - 12px))}.bx--tooltip--icon__top.bx--tooltip--icon__align-end:before{left:auto;margin-right:4px;right:0;top:1px;-webkit-transform:translateY(calc(-100% - 9px)) rotate(180deg);transform:translateY(calc(-100% - 9px)) rotate(180deg)}.bx--tooltip--icon__top.bx--tooltip--icon__align-end:after{margin-left:0;right:0;top:0;-webkit-transform:translateY(calc(-100% - 12px));transform:translateY(calc(-100% - 12px))}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-start:before{bottom:0;margin-left:4px;-webkit-transform:translateY(10px) rotate(0);transform:translateY(10px) rotate(0)}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-start:after{bottom:0;margin-left:0;-webkit-transform:translateY(calc(100% + 10px));transform:translateY(calc(100% + 10px))}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-end:before{bottom:0;left:auto;margin-right:4px;right:0;-webkit-transform:translateY(10px) rotate(0);transform:translateY(10px) rotate(0)}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-end:after{bottom:0;margin-left:0;right:0;-webkit-transform:translateY(calc(100% + 10px));transform:translateY(calc(100% + 10px))}.bx--tooltip--icon .bx--tooltip__trigger svg{margin-left:0}.bx--tooltip__trigger:focus svg,.bx--tooltip__trigger:hover svg{fill:#525252}.bx--tooltip__trigger.bx--tooltip--top{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--tooltip--top:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--top:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--top:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--tooltip--top:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--top:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip--top:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip--top:before{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip--top:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip--top:before{transition:none}}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--tooltip--top:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--tooltip--top:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--tooltip--top:focus:after,.bx--tooltip__trigger.bx--tooltip--top:focus:before,.bx--tooltip__trigger.bx--tooltip--top:hover:after,.bx--tooltip__trigger.bx--tooltip--top:hover:before{opacity:1}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after,.bx--tooltip__trigger.bx--tooltip--top:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip--top:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:after{left:50%;top:-.8125rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start:after{left:0;top:-.8125rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center:after{left:50%;top:-.8125rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text:after{bottom:-.75rem;content:"";display:block;height:.75rem;left:0;position:absolute;width:100%}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end:before{left:50%;top:0}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end:before{border-color:#393939 transparent transparent;border-width:.3125rem .25rem 0;top:-.5rem;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end:after{left:auto;right:0;top:-.8125rem;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.bx--tooltip__trigger.bx--tooltip--right{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--tooltip--right:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--right:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--right:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--tooltip--right:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--right:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after,.bx--tooltip__trigger.bx--tooltip--right:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after,.bx--tooltip__trigger.bx--tooltip--right:before{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--right:after,.bx--tooltip__trigger.bx--tooltip--right:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--tooltip--right:after,.bx--tooltip__trigger.bx--tooltip--right:before{transition:none}}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--tooltip--right:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--tooltip--right:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--tooltip--right:focus:after,.bx--tooltip__trigger.bx--tooltip--right:focus:before,.bx--tooltip__trigger.bx--tooltip--right:hover:after,.bx--tooltip__trigger.bx--tooltip--right:hover:before{opacity:1}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after,.bx--tooltip__trigger.bx--tooltip--right:before{right:0;top:50%}.bx--tooltip__trigger.bx--tooltip--right:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start:before{right:0;top:50%}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center:before{right:0;top:50%}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:100%;left:-.75rem;position:absolute;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end:before{right:0;top:50%}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end:before{border-color:transparent #393939 transparent transparent;border-width:.25rem .3125rem .25rem 0;right:-.5rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end:after{right:-.8125rem;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}.bx--tooltip__trigger.bx--tooltip--bottom{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--tooltip--bottom:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--bottom:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--bottom:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--tooltip--bottom:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--bottom:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip--bottom:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip--bottom:before{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip--bottom:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip--bottom:before{transition:none}}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--tooltip--bottom:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--tooltip--bottom:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--tooltip--bottom:focus:after,.bx--tooltip__trigger.bx--tooltip--bottom:focus:before,.bx--tooltip__trigger.bx--tooltip--bottom:hover:after,.bx--tooltip__trigger.bx--tooltip--bottom:hover:before{opacity:1}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after,.bx--tooltip__trigger.bx--tooltip--bottom:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start:after{bottom:-.8125rem;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center:after{bottom:-.8125rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:.75rem;left:0;position:absolute;top:-.75rem;width:100%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end:before{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end:before{border-color:transparent transparent #393939;border-width:0 .25rem .3125rem;bottom:-.5rem;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end:after{bottom:-.8125rem;left:auto;right:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.bx--tooltip__trigger.bx--tooltip--left{align-items:center;cursor:pointer;display:inline-flex;overflow:visible;position:relative}.bx--tooltip__trigger.bx--tooltip--left:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--left:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--left:focus{outline:1px solid transparent}.bx--tooltip__trigger.bx--tooltip--left:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--left:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after,.bx--tooltip__trigger.bx--tooltip--left:before{align-items:center;display:flex;opacity:0;pointer-events:none;position:absolute;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after,.bx--tooltip__trigger.bx--tooltip--left:before{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--left:after,.bx--tooltip__trigger.bx--tooltip--left:before{transition:opacity 70ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tooltip__trigger.bx--tooltip--left:after,.bx--tooltip__trigger.bx--tooltip--left:before{transition:none}}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--a11y:after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--a11y:before{transition:none}.bx--tooltip__trigger.bx--tooltip--left:before{border-style:solid;content:"";height:0;width:0}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{box-sizing:initial;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after{background-color:#393939;border-radius:.125rem;box-shadow:0 2px 6px rgba(0,0,0,.3);color:#fff;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;max-width:13rem;min-width:1.5rem;padding:.1875rem 1rem;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:max-content;z-index:6000}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after{width:auto}}@supports(-ms-accelerator:true){.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after{width:auto}}@supports(-ms-ime-align:auto){.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after{width:auto}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after{border:1px solid transparent}}.bx--tooltip__trigger.bx--tooltip--left:after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--a11y:after{content:none}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible:after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible:before,.bx--tooltip__trigger.bx--tooltip--left:focus:after,.bx--tooltip__trigger.bx--tooltip--left:focus:before,.bx--tooltip__trigger.bx--tooltip--left:hover:after,.bx--tooltip__trigger.bx--tooltip--left:hover:before{opacity:1}@keyframes tooltip-fade{0%{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover+.bx--assistive-text{clip:auto;margin:auto;overflow:visible}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus.bx--tooltip--a11y:before,.bx--tooltip__trigger.bx--tooltip--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover.bx--tooltip--a11y:before{-webkit-animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9);animation:tooltip-fade 70ms cubic-bezier(.2,0,.38,.9)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--hidden+.bx--assistive-text{clip:rect(0,0,0,0);margin:-1px;overflow:hidden}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--hidden.bx--tooltip--a11y:before{-webkit-animation:none;animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after,.bx--tooltip__trigger.bx--tooltip--left:before{left:0;top:50%}.bx--tooltip__trigger.bx--tooltip--left:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start:after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start:before{left:0;top:50%}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center:after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center:before{left:0;top:50%}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end .bx--assistive-text:after{content:"";display:block;height:100%;position:absolute;right:-.75rem;top:0;width:.75rem}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end:after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end:before{left:0;top:50%}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end:before{border-color:transparent transparent transparent #393939;border-width:.25rem 0 .25rem .3125rem;left:-.5rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end:after{left:-.8125rem;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bx--tooltip__trigger:not(.bx--tooltip--hidden) .bx--assistive-text{pointer-events:all}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--tooltip__trigger svg,.bx--tooltip__trigger:focus svg,.bx--tooltip__trigger:hover svg{fill:ButtonText}.bx--tooltip__trigger:focus svg{color:Highlight;outline:1px solid Highlight}.bx--assistive-text,.bx--tooltip{outline:1px solid transparent}}.bx--progress{display:flex;list-style:none}.bx--progress-step{display:inline-flex;flex-direction:row;min-width:7rem;overflow:visible;position:relative;width:8rem}.bx--progress-step .bx--tooltip__label{display:block}.bx--progress--space-equal .bx--progress-step{flex-grow:1;min-width:8rem}.bx--progress-line{border:1px inset transparent;height:1px;left:0;position:absolute;width:8rem}.bx--progress--space-equal .bx--progress-line{min-width:8rem;width:100%}.bx--progress-step svg{fill:#0f62fe;border-radius:50%;flex-shrink:0;height:1rem;margin:.625rem .5rem 0 0;position:relative;width:1rem;z-index:1}.bx--progress-label{color:#161616;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;line-height:1.45;margin:.5rem 0 0;max-width:5.5rem;overflow:hidden;text-overflow:ellipsis;transition:box-shadow .11s cubic-bezier(.2,0,.38,.9),color .11s cubic-bezier(.2,0,.38,.9);white-space:nowrap}.bx--progress-label:before{content:"";display:block}.bx--progress-label:hover{box-shadow:0 .0625rem #0f62fe;color:#0f62fe;cursor:pointer}.bx--progress-label:focus{box-shadow:0 .1875rem 0 0 #0f62fe;color:#0f62fe;outline:none}.bx--progress--space-equal .bx--progress-label{margin-right:.75rem;max-width:100%}.bx--progress-step-button:not(.bx--progress-step-button--unclickable) .bx--progress-label:active{box-shadow:0 .1875rem 0 0 #0f62fe;color:#0f62fe}.bx--progress-label-overflow:focus~.bx--tooltip,.bx--progress-label-overflow:hover~.bx--tooltip{visibility:inherit}.bx--progress-step .bx--tooltip .bx--tooltip__caret{margin-left:.625rem}.bx--tooltip__text{font-weight:400;margin:0;padding:0}.bx--progress-step .bx--tooltip{display:block;margin-left:1.375rem;margin-top:2.5rem;min-height:1.5rem;min-width:7.1875rem;padding:.5rem 1rem;visibility:hidden;width:7.8125rem}.bx--progress-step .bx--tooltip,.bx--progress-step .bx--tooltip_multi{color:#fff;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857}.bx--progress-step .bx--tooltip_multi{height:auto;width:9.375rem}.bx--progress-optional{color:#525252;font-size:.75rem;font-weight:400;left:0;letter-spacing:.32px;line-height:1.33333;margin-left:1.5rem;margin-top:1.75rem;position:absolute;text-align:start}.bx--progress-step--current .bx--progress-line{background-color:#0f62fe}.bx--progress-step--incomplete svg{fill:#161616}.bx--progress-step--incomplete .bx--progress-line{background-color:#e0e0e0}.bx--progress-step--complete .bx--progress-line{background-color:#0f62fe}.bx--progress-step-button{-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;padding:0;text-align:left;width:100%}.bx--progress-step-button::-moz-focus-inner{border:0}.bx--progress-step-button--unclickable{cursor:default;outline:none}.bx--progress-step-button--unclickable .bx--progress-label:hover{box-shadow:none;color:#161616;cursor:default}.bx--progress-step-button--unclickable .bx--tooltip__label:hover{box-shadow:0 .0625rem #0f62fe;color:#0f62fe;cursor:pointer}.bx--progress-step--disabled{cursor:not-allowed;pointer-events:none}.bx--progress-step--disabled svg{fill:#c6c6c6;cursor:not-allowed}.bx--progress-step--disabled .bx--progress-label,.bx--progress-step--disabled .bx--progress-label:hover{box-shadow:none;color:#c6c6c6;cursor:not-allowed}.bx--progress-step--disabled .bx--progress-label:active,.bx--progress-step--disabled .bx--progress-label:focus{box-shadow:none;outline:none}.bx--progress-step--disabled .bx--progress-line{cursor:not-allowed}.bx--progress-step--disabled .bx--progress-label-overflow:hover~.bx--tooltip--definition .bx--tooltip--definition__bottom{display:none}.bx--progress__warning>*{fill:#da1e28}.bx--progress.bx--skeleton .bx--progress-label{background:#e5e5e5;border:none;box-shadow:none;height:.875rem;margin-top:.625rem;padding:0;pointer-events:none;position:relative;width:2.5rem}.bx--progress.bx--skeleton .bx--progress-label:active,.bx--progress.bx--skeleton .bx--progress-label:focus,.bx--progress.bx--skeleton .bx--progress-label:hover{border:none;cursor:default;outline:none}.bx--progress.bx--skeleton .bx--progress-label:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--progress.bx--skeleton .bx--progress-label:before{-webkit-animation:none;animation:none}}.bx--progress--vertical,.bx--progress-text{display:flex;flex-direction:column}.bx--progress--vertical .bx--progress-step,.bx--progress--vertical .bx--progress-step-button{align-content:flex-start;min-height:3.625rem;min-width:0;min-width:auto;width:auto}.bx--progress--vertical .bx--progress-step svg,.bx--progress--vertical .bx--progress-step-button svg{display:inline-block;margin:.0625rem .5rem 0}.bx--progress--vertical .bx--progress-label{display:inline-block;margin:0;max-width:10rem;vertical-align:top;white-space:normal;width:auto}.bx--progress--vertical .bx--progress-step .bx--tooltip{margin-top:.5rem}.bx--progress--vertical .bx--progress-optional{margin:auto 0;position:static;width:100%}.bx--progress--vertical .bx--progress-line{height:100%;left:0;position:absolute;top:0;width:1px}.bx--radio-button-group{align-items:center;display:flex;position:relative}.bx--label+.bx--form-item .bx--radio-button-group{margin-top:0}.bx--radio-button-group--vertical{align-items:flex-start;flex-direction:column}.bx--radio-button-group--vertical.bx--radio-button-group--label-left{align-items:flex-end}.bx--radio-button-group--vertical .bx--radio-button__label{line-height:1.25rem;margin-right:0}.bx--radio-button-group--vertical .bx--radio-button__label:not(:last-of-type){margin-bottom:.5rem}.bx--radio-button{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--radio-button__label{align-items:center;cursor:pointer;display:flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-right:1rem}.bx--radio-button__appearance{background-color:transparent;border:1px solid #161616;border-radius:50%;flex-shrink:0;height:1.125rem;margin:.0625rem .5rem .125rem .125rem;width:1.125rem}.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance{align-items:center;border-color:#161616;display:flex;justify-content:center}.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance:before{background-color:#161616;border-radius:50%;content:"";display:inline-block;height:100%;position:relative;-webkit-transform:scale(.5);transform:scale(.5);width:100%}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance:before{fill:ButtonText;background-color:ButtonText}}.bx--radio-button:disabled+.bx--radio-button__label{color:#c6c6c6;cursor:not-allowed}.bx--radio-button:disabled+.bx--radio-button__label .bx--radio-button__appearance,.bx--radio-button:disabled:checked+.bx--radio-button__label .bx--radio-button__appearance{border-color:#c6c6c6}.bx--radio-button:disabled+.bx--radio-button__label .bx--radio-button__appearance:before,.bx--radio-button:disabled:checked+.bx--radio-button__label .bx--radio-button__appearance:before{background-color:#c6c6c6}.bx--radio-button:focus+.bx--radio-button__label .bx--radio-button__appearance{outline:2px solid #0f62fe;outline-offset:1.5px}.bx--radio-button__label.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;height:1.125rem;padding:0;pointer-events:none;position:relative;width:6.25rem}.bx--radio-button__label.bx--skeleton:active,.bx--radio-button__label.bx--skeleton:focus,.bx--radio-button__label.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--radio-button__label.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--radio-button__label.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--radio-button__label.bx--skeleton .bx--radio-button__appearance{display:none}.bx--radio-button-wrapper .bx--radio-button__label{align-items:flex-start;display:flex;justify-content:center;margin:0}.bx--radio-button-wrapper:not(:last-of-type){margin-right:1rem}.bx--radio-button-group--vertical .bx--radio-button-wrapper:not(:last-of-type){margin-bottom:.5rem;margin-right:0}.bx--radio-button-group--label-right .bx--radio-button__label,.bx--radio-button-wrapper.bx--radio-button-wrapper--label-right .bx--radio-button__label{flex-direction:row}.bx--radio-button-group--label-left .bx--radio-button__label,.bx--radio-button-wrapper.bx--radio-button-wrapper--label-left .bx--radio-button__label{flex-direction:row-reverse}.bx--radio-button-group--label-left .bx--radio-button__appearance,.bx--radio-button-wrapper.bx--radio-button-wrapper--label-left .bx--radio-button__appearance{margin-left:.5rem;margin-right:0}.bx--search{align-items:center;display:flex;position:relative;width:100%}.bx--search .bx--label{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--search-input{-webkit-appearance:none;appearance:none;background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;color:#161616;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;order:1;outline:2px solid transparent;outline-offset:-2px;padding:0 2.5rem;text-overflow:ellipsis;transition:background-color .11s cubic-bezier(.2,0,.38,.9),outline .11s cubic-bezier(.2,0,.38,.9);width:100%}.bx--search-input:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-input:focus{outline-style:dotted}}.bx--search-input::-webkit-input-placeholder{color:#6f6f6f;opacity:1}.bx--search-input::placeholder{color:#6f6f6f;opacity:1}.bx--search-input::-ms-clear{display:none}.bx--search-input[disabled]{background-color:#f4f4f4;border-bottom:1px solid transparent;color:#c6c6c6;cursor:not-allowed}.bx--search-input[disabled]::-webkit-input-placeholder{color:#c6c6c6}.bx--search-input[disabled]::placeholder{color:#c6c6c6}.bx--search--light .bx--search-close:before,.bx--search--light .bx--search-input{background:#fff}.bx--search--sm .bx--search-input,.bx--search--sm.bx--search--expandable.bx--search--expanded .bx--search-input{height:2rem;padding:0 2rem}.bx--search--sm .bx--search-magnifier-icon{left:.5rem}.bx--search--lg .bx--search-input,.bx--search--lg.bx--search--expandable.bx--search--expanded .bx--search-input{height:2.5rem;padding:0 2.5rem}.bx--search--lg .bx--search-magnifier-icon{left:.75rem}.bx--search--xl .bx--search-input,.bx--search--xl.bx--search--expandable.bx--search--expanded .bx--search-input{height:3rem;padding:0 3rem}.bx--search-magnifier-icon{fill:#525252;height:1rem;left:1rem;pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:1rem;z-index:2}.bx--search-close{-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;outline:2px solid transparent;outline-offset:-2px;padding:0;position:absolute;right:0;top:0}.bx--search-close::-moz-focus-inner{border:0}.bx--search-close:before{background-color:#f4f4f4;content:"";display:block;height:calc(100% - 2px);left:0;position:absolute;top:.0625rem;transition:background-color .11s cubic-bezier(.2,0,.38,.9);width:2px}@media screen and (prefers-reduced-motion:reduce){.bx--search-close:before{transition:none}}.bx--search-close:hover{border-bottom:1px solid #8d8d8d}.bx--search-close:hover:before{background-color:#e5e5e5}.bx--search-button{background-color:#f4f4f4;flex-shrink:0;margin-left:.125rem}.bx--search-button svg{fill:currentColor;vertical-align:middle}.bx--search-close svg{fill:inherit}.bx--search-button,.bx--search-close{fill:#161616;align-items:center;border-color:transparent;border-style:solid;border-width:1px 0;cursor:pointer;display:flex;height:2.5rem;justify-content:center;opacity:1;transition:opacity .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9),outline .11s cubic-bezier(.2,0,.38,.9),border .11s cubic-bezier(.2,0,.38,.9);visibility:inherit;width:2.5rem}.bx--search-button:hover,.bx--search-close:hover{background-color:#e5e5e5}.bx--search-button:focus,.bx--search-close:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-button:focus,.bx--search-close:focus{outline-style:dotted}}.bx--search-button:active,.bx--search-close:active{background-color:#e0e0e0;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-button:active,.bx--search-close:active{outline-style:dotted}}.bx--search--disabled .bx--search-close,.bx--search--disabled.bx--search--expandable .bx--search-magnifier{cursor:not-allowed;outline:none}.bx--search--disabled .bx--search-close:hover,.bx--search--disabled.bx--search--expandable .bx--search-magnifier:hover{background-color:transparent;border-bottom-color:transparent}.bx--search--disabled .bx--search-close:hover:before,.bx--search--disabled.bx--search--expandable .bx--search-magnifier:hover:before{background-color:transparent}.bx--search--disabled svg{fill:#c6c6c6}.bx--search-close:active:before,.bx--search-close:focus:before{background-color:#0f62fe}.bx--search-input:focus~.bx--search-close:hover{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-input:focus~.bx--search-close:hover{outline-style:dotted}}.bx--search--sm .bx--search-close,.bx--search--sm.bx--search--expandable,.bx--search--sm.bx--search--expandable .bx--search-magnifier,.bx--search--sm~.bx--search-button{height:2rem;width:2rem}.bx--search--sm.bx--search--expandable .bx--search-input::-webkit-input-placeholder{padding:0 2rem}.bx--search--sm.bx--search--expandable .bx--search-input::placeholder{padding:0 2rem}.bx--search--lg .bx--search-close,.bx--search--lg.bx--search--expandable,.bx--search--lg.bx--search--expandable .bx--search-magnifier,.bx--search--lg~.bx--search-button{height:2.5rem;width:2.5rem}.bx--search--lg.bx--search--expandable .bx--search-input::-webkit-input-placeholder{padding:0 2.5rem}.bx--search--lg.bx--search--expandable .bx--search-input::placeholder{padding:0 2.5rem}.bx--search--xl .bx--search-close,.bx--search--xl.bx--search--expandable,.bx--search--xl.bx--search--expandable .bx--search-magnifier,.bx--search--xl~.bx--search-button{height:3rem;width:3rem}.bx--search--xl.bx--search--expandable .bx--search-input::-webkit-input-placeholder{padding:0 3rem}.bx--search--xl.bx--search--expandable .bx--search-input::placeholder{padding:0 3rem}.bx--search-close--hidden{opacity:0;visibility:hidden}.bx--search--lg.bx--skeleton .bx--search-input,.bx--search--sm.bx--skeleton .bx--search-input,.bx--search--xl.bx--skeleton .bx--search-input{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative;width:100%}.bx--search--lg.bx--skeleton .bx--search-input:active,.bx--search--lg.bx--skeleton .bx--search-input:focus,.bx--search--lg.bx--skeleton .bx--search-input:hover,.bx--search--sm.bx--skeleton .bx--search-input:active,.bx--search--sm.bx--skeleton .bx--search-input:focus,.bx--search--sm.bx--skeleton .bx--search-input:hover,.bx--search--xl.bx--skeleton .bx--search-input:active,.bx--search--xl.bx--skeleton .bx--search-input:focus,.bx--search--xl.bx--skeleton .bx--search-input:hover{border:none;cursor:default;outline:none}.bx--search--lg.bx--skeleton .bx--search-input:before,.bx--search--sm.bx--skeleton .bx--search-input:before,.bx--search--xl.bx--skeleton .bx--search-input:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--search--lg.bx--skeleton .bx--search-input:before,.bx--search--sm.bx--skeleton .bx--search-input:before,.bx--search--xl.bx--skeleton .bx--search-input:before{-webkit-animation:none;animation:none}}.bx--search--lg.bx--skeleton .bx--search-input::-webkit-input-placeholder,.bx--search--sm.bx--skeleton .bx--search-input::-webkit-input-placeholder,.bx--search--xl.bx--skeleton .bx--search-input::-webkit-input-placeholder{color:transparent}.bx--search--lg.bx--skeleton .bx--search-input::placeholder,.bx--search--sm.bx--skeleton .bx--search-input::placeholder,.bx--search--xl.bx--skeleton .bx--search-input::placeholder{color:transparent}.bx--search--expandable{transition:width 70ms cubic-bezier(.2,0,.38,.9)}.bx--search--expandable.bx--search--expanded{width:100%}.bx--search--expandable .bx--search-input{padding:0;transition:padding 70ms cubic-bezier(.2,0,.38,.9),width 0s linear 70ms;width:0}.bx--search--expandable .bx--search-input::-webkit-input-placeholder{opacity:0;position:relative;transition-duration:70ms;-webkit-transition-property:padding,opacity;transition-property:padding,opacity;transition-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--search--expandable .bx--search-input::placeholder{opacity:0;position:relative;transition-duration:70ms;transition-property:padding,opacity;transition-timing-function:cubic-bezier(.2,0,.38,.9)}.bx--search--expandable.bx--search--expanded .bx--search-input{transition:padding 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--search--expandable.bx--search--expanded .bx--search-input::-webkit-input-placeholder{opacity:1;padding:0;position:relative}.bx--search--expandable.bx--search--expanded .bx--search-input::placeholder{opacity:1;padding:0;position:relative}.bx--search--expandable .bx--search-magnifier{cursor:pointer;position:absolute}.bx--search--expandable .bx--search-magnifier:hover{background-color:#e5e5e5}.bx--search--expandable.bx--search--expanded .bx--search-magnifier{pointer-events:none}.bx--search--expandable .bx--search-magnifier-icon{fill:#161616}.bx--search--expandable.bx--search--expanded .bx--search-magnifier-icon{fill:#525252}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--search-close svg,.bx--search-magnifier-icon{fill:ButtonText}}.bx--skeleton__text{background:#e5e5e5;border:none;box-shadow:none;height:1rem;margin-bottom:.5rem;padding:0;pointer-events:none;position:relative;width:100%}.bx--skeleton__text:active,.bx--skeleton__text:focus,.bx--skeleton__text:hover{border:none;cursor:default;outline:none}.bx--skeleton__text:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--skeleton__text:before{-webkit-animation:none;animation:none}}.bx--skeleton__heading{height:1.5rem}.bx--icon--skeleton{background:#e5e5e5;border:none;box-shadow:none;display:inline-block;height:1rem;padding:0;pointer-events:none;position:relative;width:1rem}.bx--icon--skeleton:active,.bx--icon--skeleton:focus,.bx--icon--skeleton:hover{border:none;cursor:default;outline:none}.bx--icon--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--icon--skeleton:before{-webkit-animation:none;animation:none}}.bx--skeleton__placeholder{background:#e5e5e5;border:none;box-shadow:none;height:6.25rem;padding:0;pointer-events:none;position:relative;width:6.25rem}.bx--skeleton__placeholder:active,.bx--skeleton__placeholder:focus,.bx--skeleton__placeholder:hover{border:none;cursor:default;outline:none}.bx--skeleton__placeholder:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--skeleton__placeholder:before{-webkit-animation:none;animation:none}}.bx--slider-container{align-items:center;display:flex;-webkit-user-select:none;user-select:none}.bx--slider{cursor:pointer;margin:0 1rem;max-width:40rem;min-width:12.5rem;padding:1rem 0;position:relative;width:100%}.bx--slider__range-label{color:#161616;font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.875rem;font-weight:400;letter-spacing:.32px;line-height:1.42857;white-space:nowrap}.bx--slider__range-label:last-of-type{margin-right:1rem}.bx--slider__track{background:#e0e0e0;height:.125rem;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:100%}.bx--slider__track:before{background:#e0e0e0;content:"";display:inline-block;height:.25rem;left:50%;position:absolute;top:-.3125rem;-webkit-transform:translate(-50%);transform:translate(-50%);width:.125rem}.bx--slider__filled-track{background:#161616;height:.125rem;pointer-events:none;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform-origin:left;transform-origin:left;transition:background .11s cubic-bezier(.2,0,.38,.9);width:100%}.bx--slider__thumb{background:#161616;border-radius:50%;box-shadow:inset 0 0 0 1px transparent,inset 0 0 0 2px transparent;height:.875rem;outline:none;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition:background .11s cubic-bezier(.2,0,.38,.9),box-shadow .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),background .11s cubic-bezier(.2,0,.38,.9),box-shadow .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),background .11s cubic-bezier(.2,0,.38,.9),box-shadow .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9);width:.875rem;z-index:3}.bx--slider__thumb:focus,.bx--slider__thumb:hover{-webkit-transform:translate(-50%,-50%) scale(1.4286);transform:translate(-50%,-50%) scale(1.4286)}.bx--slider__thumb:focus{background-color:#0f62fe;box-shadow:inset 0 0 0 2px #0f62fe,inset 0 0 0 3px #f4f4f4}.bx--slider__thumb:active{box-shadow:inset 0 0 0 2px #0f62fe;-webkit-transform:translate(-50%,-50%) scale(1.4286);transform:translate(-50%,-50%) scale(1.4286)}.bx--slider__input{display:none}.bx--slider-text-input,.bx-slider-text-input{-moz-appearance:textfield;height:2.5rem;text-align:center;width:4rem}.bx--slider-text-input::-webkit-inner-spin-button,.bx--slider-text-input::-webkit-outer-spin-button,.bx-slider-text-input::-webkit-inner-spin-button,.bx-slider-text-input::-webkit-outer-spin-button{display:none}.bx--slider-text-input.bx--text-input--invalid{padding-right:1rem}.bx--slider__thumb:focus~.bx--slider__filled-track{background-color:#0f62fe}.bx--label--disabled~.bx--slider-container>.bx--slider__range-label{color:#c6c6c6}.bx--slider--disabled.bx--slider{cursor:not-allowed}.bx--slider--disabled .bx--slider__thumb{background-color:#e0e0e0}.bx--slider--disabled .bx--slider__thumb:hover{cursor:not-allowed;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.bx--slider--disabled .bx--slider__thumb:focus{background-color:#e0e0e0;box-shadow:none;outline:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.bx--slider--disabled .bx--slider__thumb:active{background:#e0e0e0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.bx--slider--disabled .bx--slider__filled-track,.bx--slider--disabled .bx--slider__thumb:focus~.bx--slider__filled-track,.bx--slider--disabled .bx--slider__track{background-color:#e0e0e0}.bx--slider--disabled~.bx--form-item .bx--slider-text-input,.bx--slider--disabled~.bx--slider-text-input{background-color:#f4f4f4;border:none;color:#c6c6c6;cursor:not-allowed;transition:none}.bx--slider--disabled~.bx--form-item .bx--slider-text-input:active,.bx--slider--disabled~.bx--form-item .bx--slider-text-input:focus,.bx--slider--disabled~.bx--form-item .bx--slider-text-input:hover,.bx--slider--disabled~.bx--slider-text-input:active,.bx--slider--disabled~.bx--slider-text-input:focus,.bx--slider--disabled~.bx--slider-text-input:hover{color:#c6c6c6;outline:none}.bx--slider-container.bx--skeleton .bx--slider__range-label{background:#e5e5e5;border:none;box-shadow:none;height:.75rem;padding:0;pointer-events:none;position:relative;width:1.25rem}.bx--slider-container.bx--skeleton .bx--slider__range-label:active,.bx--slider-container.bx--skeleton .bx--slider__range-label:focus,.bx--slider-container.bx--skeleton .bx--slider__range-label:hover{border:none;cursor:default;outline:none}.bx--slider-container.bx--skeleton .bx--slider__range-label:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--slider-container.bx--skeleton .bx--slider__range-label:before{-webkit-animation:none;animation:none}}.bx--slider-container.bx--skeleton .bx--slider__track{cursor:default;pointer-events:none}.bx--slider-container.bx--skeleton .bx--slider__thumb{cursor:default;left:50%;pointer-events:none}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--slider__thumb{outline:1px solid transparent}.bx--slider__thumb:focus{color:Highlight;outline:1px solid Highlight}.bx--slider__track{outline:1px solid transparent}}.bx--structured-list--selection .bx--structured-list-td,.bx--structured-list--selection .bx--structured-list-td:first-child,.bx--structured-list--selection .bx--structured-list-th,.bx--structured-list--selection .bx--structured-list-th:first-child{padding-left:1rem;padding-right:1rem}.bx--structured-list-input{display:none}.bx--structured-list{background-color:transparent;border-collapse:collapse;border-spacing:0;display:table;margin-bottom:5rem;overflow-x:auto;width:100%}.bx--structured-list.bx--structured-list--condensed .bx--structured-list-td,.bx--structured-list.bx--structured-list--condensed .bx--structured-list-th{padding:.5rem}.bx--structured-list .bx--structured-list-row .bx--structured-list-td:first-of-type,.bx--structured-list .bx--structured-list-row .bx--structured-list-th:first-of-type{padding-left:1rem}.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-td,.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-td:first-of-type,.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-th,.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-th:first-of-type{padding-left:0;padding-right:1rem}.bx--structured-list-row{border-bottom:1px solid #e0e0e0;display:table-row;transition:background-color .11s cubic-bezier(.2,0,.38,.9)}.bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row):not(.bx--structured-list-row--selected){background-color:#e5e5e5;border-bottom:1px solid #e5e5e5;cursor:pointer}.bx--structured-list-row.bx--structured-list-row--selected{background-color:#e0e0e0}.bx--structured-list-row.bx--structured-list-row--header-row{border-bottom:1px solid #e0e0e0;cursor:inherit}.bx--structured-list-row:focus:not(.bx--structured-list-row--header-row){outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--structured-list-row:focus:not(.bx--structured-list-row--header-row){outline-style:dotted}}.bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row)>.bx--structured-list-td,.bx--structured-list-row.bx--structured-list-row--selected>.bx--structured-list-td{color:#161616}.bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row)>.bx--structured-list-td{border-top:1px solid #f4f4f4}.bx--structured-list-thead{display:table-header-group;vertical-align:middle}.bx--structured-list-th{color:#161616;display:table-cell;font-size:.875rem;font-weight:600;height:2.5rem;letter-spacing:.16px;line-height:1.28572;padding:1rem .5rem .5rem;text-align:left;text-transform:none;vertical-align:top}.bx--structured-list-tbody{display:table-row-group;vertical-align:middle}.bx--structured-list-td{color:#525252;display:table-cell;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;max-width:36rem;padding:1rem .5rem 1.5rem;position:relative;transition:color .11s cubic-bezier(.2,0,.38,.9)}.bx--structured-list-content--nowrap{white-space:nowrap}.bx--structured-list-svg{fill:transparent;display:inline-block;transition:all .11s cubic-bezier(.2,0,.38,.9);vertical-align:middle}.bx--structured-list-input:checked+.bx--structured-list-row .bx--structured-list-svg,.bx--structured-list-input:checked+.bx--structured-list-td .bx--structured-list-svg{fill:#161616}.bx--structured-list.bx--skeleton .bx--structured-list-th:first-child{width:8%}.bx--structured-list.bx--skeleton .bx--structured-list-th:nth-child(3n+2){width:30%}.bx--structured-list.bx--skeleton .bx--structured-list-th:nth-child(3n+3){width:15%}.bx--structured-list.bx--skeleton span{background:#e5e5e5;border:none;box-shadow:none;display:block;height:1rem;padding:0;pointer-events:none;position:relative;width:75%}.bx--structured-list.bx--skeleton span:active,.bx--structured-list.bx--skeleton span:focus,.bx--structured-list.bx--skeleton span:hover{border:none;cursor:default;outline:none}.bx--structured-list.bx--skeleton span:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--structured-list.bx--skeleton span:before{-webkit-animation:none;animation:none}}.bx--structured-list.bx--structured-list--selection.bx--skeleton .bx--structured-list-th:first-child{width:5%}.bx--structured-list.bx--structured-list--selection.bx--skeleton .bx--structured-list-th:first-child span{display:none}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--structured-list-input:checked+.bx--structured-list-td .bx--structured-list-svg{fill:ButtonText}}.bx--tabs{color:#161616;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;position:relative;width:100%}@media(min-width:42rem){.bx--tabs{background:none;min-height:2.5rem}.bx--tabs--container{min-height:3rem}}.bx--tabs-trigger{align-items:center;background-color:#f4f4f4;border-bottom:1px solid #8d8d8d;color:#161616;cursor:pointer;display:flex;height:2.5rem;justify-content:space-between;outline:2px solid transparent;padding:0 3rem 0 1rem}@media(min-width:42rem){.bx--tabs-trigger{display:none}}.bx--tabs-trigger:active,.bx--tabs-trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tabs-trigger:active,.bx--tabs-trigger:focus{outline-style:dotted}}.bx--tabs-trigger svg{fill:#161616;position:absolute;right:1rem;transition:-webkit-transform 70ms cubic-bezier(.2,0,.38,.9);transition:transform 70ms cubic-bezier(.2,0,.38,.9);transition:transform 70ms cubic-bezier(.2,0,.38,.9),-webkit-transform 70ms cubic-bezier(.2,0,.38,.9)}.bx--tabs-trigger--open:active,.bx--tabs-trigger--open:focus{outline:2px solid transparent;outline-offset:-2px;transition:outline 70ms cubic-bezier(.2,0,.38,.9)}.bx--tabs-trigger--open{background:#e0e0e0}.bx--tabs-trigger--open svg{-webkit-transform:rotate(-180deg);transform:rotate(-180deg);-webkit-transform-origin:50% 45%;transform-origin:50% 45%;transition:-webkit-transform 70ms;transition:transform 70ms;transition:transform 70ms,-webkit-transform 70ms}.bx--tabs--light.bx--tabs-trigger{background-color:#fff}.bx--tabs-trigger-text{color:#161616;font-weight:400;overflow:hidden;padding-top:2px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.bx--tabs-trigger-text:hover{color:#161616}.bx--tabs-trigger-text:focus{outline:none}.bx--tabs__nav{background:#f4f4f4;box-shadow:0 2px 6px rgba(0,0,0,.3);display:flex;flex-direction:column;list-style:none;margin:0;max-height:600px;padding:0;position:absolute;transition:max-height 70ms cubic-bezier(.2,0,.38,.9);width:100%;z-index:9100}@media(min-width:42rem){.bx--tabs__nav{background:none;box-shadow:none;flex-direction:row;transition:inherit;width:auto;z-index:auto}}.bx--tabs__nav--hidden{max-height:0;overflow:hidden;transition:max-height 70ms cubic-bezier(.2,0,.38,.9)}@media(min-width:42rem){.bx--tabs__nav--hidden{display:flex;max-height:none;max-width:100%;overflow-x:auto;transition:inherit}}.bx--tabs__nav-item{background-color:#f4f4f4;cursor:pointer;display:flex;height:2.5rem;padding:0;transition:background-color 70ms cubic-bezier(.2,0,.38,.9);width:100%}@media(min-width:42rem){.bx--tabs__nav-item{background:transparent;height:auto}.bx--tabs__nav-item+.bx--tabs__nav-item{margin-left:.0625rem}.bx--tabs--container .bx--tabs__nav-item{background-color:#e0e0e0}.bx--tabs--container .bx--tabs__nav-item+.bx--tabs__nav-item{box-shadow:-1px 0 0 0 #8d8d8d;margin-left:0}.bx--tabs--container .bx--tabs__nav-item+.bx--tabs__nav-item.bx--tabs__nav-item--selected,.bx--tabs--container .bx--tabs__nav-item.bx--tabs__nav-item--selected+.bx--tabs__nav-item{box-shadow:none}}.bx--tabs__nav-item .bx--tabs__nav-link{transition:color 70ms cubic-bezier(.2,0,.38,.9),border-bottom-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9)}@media(min-width:42rem){.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected){background:transparent}}.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled){background-color:#e5e5e5;box-shadow:0 -1px 0 #e5e5e5}@media(min-width:42rem){.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled){background-color:transparent}.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled)+.bx--tabs__nav-item{box-shadow:none}.bx--tabs--container .bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled){background-color:#cacaca}}.bx--tabs__nav-item--disabled,.bx--tabs__nav-item--disabled:hover{cursor:not-allowed;outline:none}@media(min-width:42rem){.bx--tabs--container .bx--tabs__nav-item.bx--tabs__nav-item--disabled,.bx--tabs--container .bx--tabs__nav-item.bx--tabs__nav-item--disabled:hover{background-color:#c6c6c6}.bx--tabs--container .bx--tabs__nav-item--disabled .bx--tabs__nav-link{border-bottom:none;color:#8d8d8d}}.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled){border:none;display:none;transition:color 70ms cubic-bezier(.2,0,.38,.9)}@media(min-width:42rem){.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled){display:flex}.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link,.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:active,.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:focus{border-bottom:2px solid #0f62fe;color:#161616;font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.28572}.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled),.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled){background-color:#f4f4f4}.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link,.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{border-bottom:none;box-shadow:inset 0 2px 0 0 #0f62fe;line-height:2rem;padding:.5rem 1rem}.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:active,.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:focus,.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:active,.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:focus{box-shadow:none}}a.bx--tabs__nav-link{border-bottom:1px solid #e0e0e0;color:#525252;display:inline-block;font-weight:400;height:2.5rem;line-height:1rem;margin:0 1rem;outline:2px solid transparent;outline-offset:-2px;overflow:hidden;padding:.75rem 0;text-decoration:none;text-overflow:ellipsis;transition:border 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9);white-space:nowrap;width:calc(100% - 32px)}a.bx--tabs__nav-link:active,a.bx--tabs__nav-link:focus{margin:0;outline:2px solid #0f62fe;outline-offset:-2px;padding-left:16px;width:100%}@media screen and (prefers-contrast){a.bx--tabs__nav-link:active,a.bx--tabs__nav-link:focus{outline-style:dotted}}@media(min-width:42rem){a.bx--tabs__nav-link{border-bottom:2px solid #e0e0e0;line-height:inherit;margin:0;padding:.75rem 1rem .5rem;width:10rem}a.bx--tabs__nav-link:active,a.bx--tabs__nav-link:focus{border-bottom:2px;width:10rem}.bx--tabs--container a.bx--tabs__nav-link{border-bottom:none;height:3rem;line-height:2rem;padding:.5rem 1rem}}.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{color:#161616}@media(min-width:42rem){.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{border-bottom:2px solid #8d8d8d;color:#161616}.bx--tabs--container .bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{border-bottom:none}}.bx--tabs__nav-item--disabled .bx--tabs__nav-link{border-bottom:2px solid #f4f4f4;color:#c6c6c6;pointer-events:none}.bx--tabs__nav-item--disabled:hover .bx--tabs__nav-link{border-bottom:2px solid #f4f4f4;cursor:no-drop}.bx--tabs__nav-item--disabled .bx--tabs__nav-link:focus,.bx--tabs__nav-item--disabled a.bx--tabs__nav-link:active{border-bottom:2px solid #f4f4f4;outline:none}.bx--tabs__nav-item:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled):not(.bx--tabs__nav-item--selected) .bx--tabs__nav-link:focus,.bx--tabs__nav-item:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled):not(.bx--tabs__nav-item--selected) a.bx--tabs__nav-link:active{color:#525252}.bx--tab-content{padding:1rem}.bx--tab-content:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tab-content:focus{outline-style:dotted}}.bx--tabs.bx--skeleton{cursor:default;pointer-events:none}.bx--skeleton.bx--tabs--scrollable:not(.bx--tabs--scrollable--container) .bx--tabs--scrollable__nav-item{border-bottom:2px solid #c6c6c6}.bx--tabs.bx--skeleton .bx--tabs__nav-link{align-items:center;display:flex;height:100%;padding:0 1rem;width:10rem}.bx--tabs.bx--skeleton .bx--tabs__nav-link span{background:#e5e5e5;border:none;box-shadow:none;display:block;height:.875rem;padding:0;pointer-events:none;position:relative;width:100%}.bx--tabs.bx--skeleton .bx--tabs__nav-link span:active,.bx--tabs.bx--skeleton .bx--tabs__nav-link span:focus,.bx--tabs.bx--skeleton .bx--tabs__nav-link span:hover{border:none;cursor:default;outline:none}.bx--tabs.bx--skeleton .bx--tabs__nav-link span:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--tabs.bx--skeleton .bx--tabs__nav-link span:before{-webkit-animation:none;animation:none}}.bx--tabs.bx--skeleton .bx--tabs-trigger{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative;width:6.25rem}.bx--tabs.bx--skeleton .bx--tabs-trigger:active,.bx--tabs.bx--skeleton .bx--tabs-trigger:focus,.bx--tabs.bx--skeleton .bx--tabs-trigger:hover{border:none;cursor:default;outline:none}.bx--tabs.bx--skeleton .bx--tabs-trigger:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--tabs.bx--skeleton .bx--tabs-trigger:before{-webkit-animation:none;animation:none}}.bx--tabs.bx--skeleton .bx--tabs-trigger svg{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--tabs--scrollable{color:#161616;display:flex;font-size:.875rem;font-weight:400;height:auto;letter-spacing:.16px;line-height:1.28572;min-height:2.5rem;width:100%}.bx--tabs--scrollable.bx--tabs--scrollable--container{min-height:3rem}.bx--tabs--scrollable .bx--tabs--scrollable__nav{display:flex;flex-direction:row;list-style:none;margin:0;max-width:100%;outline:0;overflow:auto hidden;padding:0;scrollbar-width:none;transition:max-height 70ms cubic-bezier(.2,0,.38,.9);width:auto}.bx--tabs--scrollable .bx--tabs--scrollable__nav::-webkit-scrollbar{display:none}.bx--tabs--scrollable .bx--tabs__overflow-indicator--left,.bx--tabs--scrollable .bx--tabs__overflow-indicator--right{flex:1 0 auto;width:.5rem;z-index:1}.bx--tabs--scrollable .bx--tabs__overflow-indicator--left{background-image:linear-gradient(270deg,transparent,#fff);margin-right:-.5rem}.bx--tabs--scrollable .bx--tabs__overflow-indicator--right{background-image:linear-gradient(90deg,transparent,#fff);margin-left:-.5rem}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs__overflow-indicator--left{background-image:linear-gradient(270deg,transparent,#f4f4f4)}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs__overflow-indicator--right{background-image:linear-gradient(90deg,transparent,#f4f4f4)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--left{background-image:linear-gradient(270deg,transparent,#e0e0e0)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--right{background-image:linear-gradient(90deg,transparent,#e0e0e0)}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports(-webkit-appearance:none) and (stroke-color:transparent){.bx--tabs--scrollable .bx--tabs__overflow-indicator--left{background-image:linear-gradient(270deg,hsla(0,0%,100%,0),#fff)}.bx--tabs--scrollable .bx--tabs__overflow-indicator--right{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--left{background-image:linear-gradient(270deg,hsla(0,0%,88%,0),#e0e0e0)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--right{background-image:linear-gradient(90deg,hsla(0,0%,88%,0),#e0e0e0)}}}.bx--tabs--scrollable .bx--tab--overflow-nav-button{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;flex-shrink:0;justify-content:center;padding:0;width:100%;width:2.5rem}.bx--tabs--scrollable .bx--tab--overflow-nav-button::-moz-focus-inner{border:0}.bx--tabs--scrollable .bx--tab--overflow-nav-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tabs--scrollable .bx--tab--overflow-nav-button:focus{outline-style:dotted}}.bx--tabs--scrollable .bx--tab--overflow-nav-button--hidden{display:none}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tab--overflow-nav-button{background-color:#e0e0e0;margin:0;width:3rem}.bx--tabs--scrollable .bx--tab--overflow-nav-button svg{fill:#161616}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item{cursor:pointer;display:flex;padding:0;transition:background-color 70ms cubic-bezier(.2,0,.38,.9)}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item+.bx--tabs--scrollable__nav-item{margin-left:.0625rem}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item{background-color:#e0e0e0}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item+.bx--tabs--scrollable__nav-item{box-shadow:-.0625rem 0 0 0 #8d8d8d;margin-left:0}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item+.bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--selected,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--selected+.bx--tabs--scrollable__nav-item{box-shadow:none}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item .bx--tabs--scrollable__nav-link{transition:color 70ms cubic-bezier(.2,0,.38,.9),border-bottom-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item:hover{background-color:#cacaca}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled:hover{background-color:transparent;cursor:not-allowed;outline:none}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--disabled,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--disabled:hover{background-color:#c6c6c6}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected{transition:color 70ms cubic-bezier(.2,0,.38,.9)}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:focus{border-bottom:2px solid #0f62fe;color:#161616;font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.28572}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover{background-color:#f4f4f4}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover .bx--tabs--scrollable__nav-link:focus{box-shadow:none}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link{box-shadow:inset 0 2px 0 0 #0f62fe;line-height:2rem}.bx--tabs--scrollable.bx--tabs--scrollable--light.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected,.bx--tabs--scrollable.bx--tabs--scrollable--light.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover{background-color:#fff}.bx--tabs--scrollable .bx--tabs--scrollable__nav-link{-webkit-appearance:none;appearance:none;background:none;border:0;border-bottom:2px solid #e0e0e0;color:#525252;cursor:pointer;display:inline-block;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;outline:2px solid transparent;outline-offset:-2px;overflow:hidden;padding:.75rem 1rem .5rem;text-align:left;text-decoration:none;text-overflow:ellipsis;transition:border 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9);white-space:nowrap;width:10rem}.bx--tabs--scrollable .bx--tabs--scrollable__nav-link::-moz-focus-inner{border:0}.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:focus{outline-style:dotted}}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-link{border-bottom:0;height:3rem;line-height:2rem;padding:.5rem 1rem}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item:hover .bx--tabs--scrollable__nav-link{border-bottom:2px solid #8d8d8d;color:#161616}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item .bx--tabs--scrollable__nav-link{border-bottom:none}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{border-bottom:2px solid #f4f4f4;color:#c6c6c6}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled:hover .bx--tabs--scrollable__nav-link{border-bottom:2px solid #f4f4f4;color:#c6c6c6;cursor:not-allowed;pointer-events:none}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:focus{border-bottom:2px solid #f4f4f4;outline:none}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link,.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled:hover .bx--tabs--scrollable__nav-link{border-bottom-color:#e0e0e0}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{border-bottom:none;color:#8d8d8d}.bx--tabs--scrollable .bx--tab-content{padding:1rem}.bx--tabs--scrollable .bx--tabs.bx--skeleton{cursor:default;pointer-events:none}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link{background:#e5e5e5;border:none;box-shadow:none;padding:0;pointer-events:none;position:relative;width:4.6875rem}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:hover{border:none;cursor:default;outline:none}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:before{-webkit-animation:none;animation:none}}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger{background:#e5e5e5;border:none;box-shadow:none;margin-right:.0625rem;padding:0;pointer-events:none;position:relative;width:4.6875rem}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:active,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:focus,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:hover{border:none;cursor:default;outline:none}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:before{-webkit-animation:none;animation:none}}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger svg{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--tabs--scrollable__nav-item .bx--tabs__nav-item--selected .bx--tabs--scrollable__nav-item--selected{color:Highlight;outline:1px solid Highlight}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{fill:GrayText;color:GrayText}}.bx--tag{align-items:center;-webkit-appearance:none;appearance:none;background:none;background-color:#e0e0e0;border:0;border-radius:.9375rem;color:#393939;cursor:pointer;cursor:default;display:inline-block;display:inline-flex;font-size:.75rem;font-weight:400;justify-content:center;letter-spacing:.32px;line-height:1.33333;margin:.25rem;max-width:100%;min-height:1.5rem;min-width:2rem;padding:.25rem .5rem;vertical-align:middle;word-break:break-word}.bx--tag::-moz-focus-inner{border:0}.bx--tag .bx--tag__close-icon:hover,.bx--tag.bx--tag--interactive:hover{background-color:#c6c6c6}.bx--tag:not(:first-child){margin-left:0}.bx--tag--red{background-color:#ffd7d9;color:#750e13}.bx--tag--red .bx--tag__close-icon:hover,.bx--tag--red.bx--tag--interactive:hover{background-color:#ffb3b8}.bx--tag--magenta{background-color:#ffd6e8;color:#740937}.bx--tag--magenta .bx--tag__close-icon:hover,.bx--tag--magenta.bx--tag--interactive:hover{background-color:#ffafd2}.bx--tag--purple{background-color:#e8daff;color:#491d8b}.bx--tag--purple .bx--tag__close-icon:hover,.bx--tag--purple.bx--tag--interactive:hover{background-color:#d4bbff}.bx--tag--blue{background-color:#d0e2ff;color:#002d9c}.bx--tag--blue .bx--tag__close-icon:hover,.bx--tag--blue.bx--tag--interactive:hover{background-color:#a6c8ff}.bx--tag--cyan{background-color:#bae6ff;color:#003a6d}.bx--tag--cyan .bx--tag__close-icon:hover,.bx--tag--cyan.bx--tag--interactive:hover{background-color:#82cfff}.bx--tag--teal{background-color:#9ef0f0;color:#004144}.bx--tag--teal .bx--tag__close-icon:hover,.bx--tag--teal.bx--tag--interactive:hover{background-color:#3ddbd9}.bx--tag--green{background-color:#a7f0ba;color:#044317}.bx--tag--green .bx--tag__close-icon:hover,.bx--tag--green.bx--tag--interactive:hover{background-color:#6fdc8c}.bx--tag--gray{background-color:#e0e0e0;color:#393939}.bx--tag--gray .bx--tag__close-icon:hover,.bx--tag--gray.bx--tag--interactive:hover{background-color:#c6c6c6}.bx--tag--cool-gray{background-color:#dde1e6;color:#343a3f}.bx--tag--cool-gray .bx--tag__close-icon:hover,.bx--tag--cool-gray.bx--tag--interactive:hover{background-color:#c1c7cd}.bx--tag--warm-gray{background-color:#e5e0df;color:#3c3838}.bx--tag--warm-gray .bx--tag__close-icon:hover,.bx--tag--warm-gray.bx--tag--interactive:hover{background-color:#cac5c4}.bx--tag--high-contrast{background-color:#393939;color:#fff}.bx--tag--high-contrast .bx--tag__close-icon:hover,.bx--tag--high-contrast.bx--tag--interactive:hover{background-color:#4c4c4c}.bx--tag--outline{background-color:#fff;box-shadow:inset 0 0 0 1px #393939;color:#161616}.bx--tag--outline .bx--tag__close-icon:hover,.bx--tag--outline.bx--tag--interactive:hover{background-color:#e5e5e5}.bx--tag--disabled,.bx--tag--filter.bx--tag--disabled,.bx--tag--interactive.bx--tag--disabled{background-color:#f4f4f4;color:#c6c6c6}.bx--tag--disabled .bx--tag__close-icon:hover,.bx--tag--disabled.bx--tag--interactive:hover,.bx--tag--filter.bx--tag--disabled .bx--tag__close-icon:hover,.bx--tag--filter.bx--tag--disabled.bx--tag--interactive:hover,.bx--tag--interactive.bx--tag--disabled .bx--tag__close-icon:hover,.bx--tag--interactive.bx--tag--disabled.bx--tag--interactive:hover{background-color:#f4f4f4}.bx--tag--disabled:hover,.bx--tag--filter.bx--tag--disabled:hover,.bx--tag--interactive.bx--tag--disabled:hover{cursor:not-allowed}.bx--tag__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--tag--interactive:focus{box-shadow:inset 0 0 0 1px #0f62fe;outline:none}.bx--tag--interactive:hover{cursor:pointer}.bx--tag--filter{cursor:pointer;padding-bottom:0;padding-right:0;padding-top:0}.bx--tag--filter:hover{outline:none}.bx--tag--interactive{transition:background-color 70ms cubic-bezier(0,0,.38,.9)}.bx--tag__close-icon{align-items:center;background-color:transparent;border:0;border-radius:50%;color:currentColor;cursor:pointer;display:flex;flex-shrink:0;height:1.5rem;justify-content:center;margin:0 0 0 .125rem;padding:0;transition:background-color 70ms cubic-bezier(.2,0,.38,.9),box-shadow 70ms cubic-bezier(.2,0,.38,.9);width:1.5rem}.bx--tag__close-icon svg{fill:currentColor}.bx--tag__custom-icon{background-color:transparent;border:0;color:currentColor;flex-shrink:0;height:1rem;margin-right:.25rem;outline:none;padding:0;width:1rem}.bx--tag__custom-icon svg{fill:currentColor}.bx--tag--disabled .bx--tag__close-icon{cursor:not-allowed}.bx--tag__close-icon:focus{border-radius:50%;box-shadow:inset 0 0 0 1px #0f62fe;outline:none}.bx--tag--high-contrast .bx--tag__close-icon:focus{box-shadow:inset 0 0 0 1px #fff}.bx--tag--filter.bx--tag--disabled .bx--tag__close-icon:hover{background-color:transparent}.bx--tag--filter.bx--tag--disabled svg{fill:#c6c6c6}.bx--tag--sm{min-height:1.125rem;padding:0 .5rem}.bx--tag--sm.bx--tag--filter{padding-right:0}.bx--tag--sm .bx--tag__close-icon{height:1.125rem;margin-left:.3125rem;width:1.125rem}.bx--tag.bx--skeleton{background:#e5e5e5;background-color:#e5e5e5;border:none;box-shadow:none;color:#161616;overflow:hidden;padding:0;pointer-events:none;position:relative;width:3.75rem}.bx--tag.bx--skeleton:active,.bx--tag.bx--skeleton:focus,.bx--tag.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--tag.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--tag.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--tag.bx--skeleton .bx--tag__close-icon:hover,.bx--tag.bx--skeleton.bx--tag--interactive:hover{background-color:#e5e5e5}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports(-webkit-appearance:none) and (stroke-color:transparent){.bx--tag.bx--skeleton{-webkit-transform:translateZ(0);transform:translateZ(0)}}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--tag{outline:1px solid transparent}.bx--tag__close-icon svg,.bx--tag__custom-icon svg{fill:ButtonText}.bx--tag__close-icon:focus{color:Highlight;outline:1px solid Highlight}}.bx--text-area{background-color:#f4f4f4;border:none;border-bottom:1px solid #8d8d8d;color:#161616;font-size:.875rem;font-weight:400;height:100%;letter-spacing:.16px;line-height:1.42857;min-height:2.5rem;min-width:10rem;outline:2px solid transparent;outline-offset:-2px;padding:.6875rem 1rem;resize:vertical;transition:background-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9);width:100%}.bx--text-area:active,.bx--text-area:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--text-area:active,.bx--text-area:focus{outline-style:dotted}}.bx--text-area::-webkit-input-placeholder{color:#6f6f6f;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;opacity:1}.bx--text-area::placeholder{color:#6f6f6f;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.42857;opacity:1}.bx--text-area--light{background-color:#fff}.bx--text-area--invalid{padding-right:2.5rem}.bx--text-area__wrapper{display:flex;position:relative;width:100%}.bx--text-area__invalid-icon{fill:#da1e28;position:absolute;right:1rem;top:.75rem}.bx--text-area:disabled{background-color:#f4f4f4;border-bottom:1px solid transparent;color:#c6c6c6;cursor:not-allowed;outline:none}.bx--text-area:disabled::-webkit-input-placeholder{color:#c6c6c6}.bx--text-area:disabled::placeholder{color:#c6c6c6}.bx--text-area.bx--text-area--light:disabled{background-color:#fff}.bx--text-area.bx--skeleton{background:#e5e5e5;border:none;box-shadow:none;height:6.25rem;padding:0;pointer-events:none;position:relative}.bx--text-area.bx--skeleton:active,.bx--text-area.bx--skeleton:focus,.bx--text-area.bx--skeleton:hover{border:none;cursor:default;outline:none}.bx--text-area.bx--skeleton:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--text-area.bx--skeleton:before{-webkit-animation:none;animation:none}}.bx--text-area.bx--skeleton::-webkit-input-placeholder{color:transparent}.bx--text-area.bx--skeleton::placeholder{color:transparent}.bx--text-area__label-wrapper{display:flex;justify-content:space-between;width:100%}.bx--tile{background-color:#f4f4f4;display:block;min-height:4rem;min-width:8rem;outline:2px solid transparent;outline-offset:-2px;padding:1rem}.bx--tile:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile:focus{outline-style:dotted}}.bx--tile--light{background-color:#fff}.bx--tile--clickable,.bx--tile--expandable,.bx--tile--selectable{cursor:pointer;transition:.15s cubic-bezier(.2,0,.38,.9)}.bx--tile--clickable:hover,.bx--tile--expandable:hover,.bx--tile--selectable:hover{background:#e5e5e5}.bx--tile--expandable .bx--link{color:#0043ce}.bx--tile--clickable:focus,.bx--tile--expandable:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile--clickable:focus,.bx--tile--expandable:focus{outline-style:dotted}}.bx--tile--clickable:focus .bx--tile__checkmark,.bx--tile--clickable:hover .bx--tile__checkmark,.bx--tile--expandable:focus .bx--tile__checkmark,.bx--tile--expandable:hover .bx--tile__checkmark{opacity:1}.bx--tile--expandable::-moz-focus-inner{border:0}.bx--tile--clickable{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572}.bx--tile--clickable,.bx--tile--clickable:active,.bx--tile--clickable:hover,.bx--tile--clickable:visited,.bx--tile--clickable:visited:hover{color:#161616;text-decoration:none}.bx--tile--clickable.bx--link--disabled{color:#c6c6c6}.bx--tile--clickable:hover.bx--link--disabled{background-color:#f4f4f4;color:#c6c6c6;display:block}.bx--tile--selectable{border:1px solid transparent;padding-right:3rem;position:relative}.bx--tile__checkmark,.bx--tile__chevron{background:transparent;border:none;position:absolute;transition:.11s cubic-bezier(.2,0,.38,.9)}.bx--tile__checkmark{height:1rem;opacity:0;right:1rem;top:1rem}.bx--tile__checkmark svg{fill:#525252;border-radius:50%}.bx--tile__checkmark:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile__checkmark:focus{outline-style:dotted}}.bx--tile__checkmark--persistent{opacity:1}.bx--tile__chevron{align-items:flex-end;bottom:1rem;display:flex;height:1rem;position:absolute;right:1rem}.bx--tile__chevron svg{fill:#161616;margin-left:.5rem;-webkit-transform-origin:center;transform-origin:center;transition:.11s cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--tile__chevron svg{transition:none}}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tile__chevron svg{fill:ButtonText}}.bx--tile__chevron:hover{cursor:pointer}.bx--tile__chevron:focus{outline:none}.bx--tile--expandable{border:0;color:inherit;font-size:inherit;overflow:hidden;position:relative;text-align:left;transition:max-height .15s cubic-bezier(.2,0,.38,.9);width:100%}.bx--tile-content__above-the-fold{display:block}.bx--tile-content__below-the-fold{display:block;opacity:0;transition:opacity .11s cubic-bezier(.2,0,.38,.9),visibility .11s cubic-bezier(.2,0,.38,.9);visibility:hidden}.bx--tile--is-expanded{overflow:visible;transition:max-height .11s cubic-bezier(.2,0,.38,.9)}.bx--tile--is-expanded .bx--tile__chevron svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bx--tile--is-expanded .bx--tile-content__below-the-fold{opacity:1;transition:opacity .11s cubic-bezier(.2,0,.38,.9),visibility .11s cubic-bezier(.2,0,.38,.9);visibility:inherit}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports(-webkit-appearance:none) and (stroke-color:transparent){.bx--tile--is-expanded .bx--tile-content__below-the-fold{overflow-y:auto}}}.bx--tile--is-selected{border:1px solid #161616}.bx--tile--is-selected .bx--tile__checkmark{opacity:1}.bx--tile--is-selected .bx--tile__checkmark svg{fill:#161616}@media screen and (-ms-high-contrast:active),screen and (prefers-contrast){.bx--tile--is-selected .bx--tile__checkmark svg{fill:ButtonText}}.bx--tile-content{height:100%;width:100%}.bx--tile-input{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--tile-input:focus+.bx--tile{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile-input:focus+.bx--tile{outline-style:dotted}}.bx--tile--disabled.bx--tile--selectable{background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--tile--disabled.bx--tile--selectable.bx--tile--light{background-color:#fff}.bx--tile--disabled.bx--tile--is-selected{outline-color:#c6c6c6}.bx--tile--disabled.bx--tile--is-selected .bx--tile__checkmark svg{fill:#c6c6c6}.bx--time-picker{align-items:flex-end;display:flex}.bx--time-picker__select{justify-content:center}.bx--time-picker__select:not(:last-of-type){margin:0 .125rem}.bx--time-picker__input{display:flex;flex-direction:column}.bx--time-picker .bx--select-input{margin:0;min-width:auto;padding-right:3rem;width:auto}.bx--time-picker__input-field{align-items:center;display:flex;font-family:IBM Plex Mono,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier,monospace;font-size:.875rem;font-weight:400;height:2.5rem;letter-spacing:.32px;line-height:1.42857;outline:2px solid transparent;outline-offset:-2px;transition:outline 70ms cubic-bezier(.2,0,.38,.9),background-color 70ms cubic-bezier(.2,0,.38,.9);width:4.875rem}.bx--time-picker__input-field::-webkit-input-placeholder{color:#6f6f6f;opacity:1}.bx--time-picker__input-field::placeholder{color:#6f6f6f;opacity:1}.bx--time-picker--light .bx--select-input{background-color:#fff}.bx--time-picker--light .bx--select-input:hover{background-color:#e5e5e5}.bx--time-picker--light .bx--select-input:disabled,.bx--time-picker--light .bx--select-input:hover:disabled{background-color:transparent;border-bottom:1px solid transparent;color:#c6c6c6;cursor:not-allowed}.bx--time-picker--sm .bx--select-input,.bx--time-picker--sm .bx--time-picker__input-field{height:2rem;max-height:2rem}.bx--time-picker--lg .bx--select-input,.bx--time-picker--lg .bx--time-picker__input-field,.bx--time-picker--xl .bx--select-input,.bx--time-picker--xl .bx--time-picker__input-field{height:3rem;max-height:3rem}.bx--toggle{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--toggle:focus{outline:none}.bx--toggle__label{align-items:center;cursor:pointer;display:flex;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333;margin:.5rem 0;position:relative}.bx--toggle__appearance{height:1.5rem;position:relative;width:3rem}.bx--toggle__appearance:before{background-color:#8d8d8d;border-radius:.9375rem;box-shadow:0 0 0 1px transparent,0 0 0 3px transparent;box-sizing:border-box;content:"";cursor:pointer;display:block;height:1.5rem;position:absolute;top:0;transition:box-shadow 70ms cubic-bezier(.2,0,1,.9),background-color 70ms cubic-bezier(.2,0,1,.9);width:3rem;will-change:box-shadow}@media screen and (prefers-reduced-motion:reduce){.bx--toggle__appearance:before{transition:none}}.bx--toggle__appearance:after{background-color:#fff;border-radius:50%;box-sizing:border-box;content:"";cursor:pointer;display:block;height:1.125rem;left:.1875rem;position:absolute;top:.1875rem;transition:-webkit-transform 70ms cubic-bezier(.2,0,1,.9);transition:transform 70ms cubic-bezier(.2,0,1,.9);transition:transform 70ms cubic-bezier(.2,0,1,.9),-webkit-transform 70ms cubic-bezier(.2,0,1,.9);width:1.125rem}.bx--toggle__check{fill:#fff;height:.3125rem;left:.375rem;position:absolute;top:.375rem;-webkit-transform:scale(.2);transform:scale(.2);transition:70ms cubic-bezier(.2,0,1,.9);width:.375rem;z-index:1}.bx--toggle__text--left,.bx--toggle__text--right{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-left:.5rem;position:relative}.bx--toggle__text--left{left:3rem;position:absolute}.bx--toggle:checked+.bx--toggle__label .bx--toggle__text--left,.bx--toggle:not(:checked)+.bx--toggle__label .bx--toggle__text--right{visibility:hidden}.bx--toggle:checked+.bx--toggle__label .bx--toggle__text--right,.bx--toggle:not(:checked)+.bx--toggle__label .bx--toggle__text--left{display:inline}.bx--toggle:checked+.bx--toggle__label .bx--toggle__appearance:before{background-color:#198038}.bx--toggle:checked+.bx--toggle__label .bx--toggle__appearance:after{background-color:#fff;-webkit-transform:translateX(1.5rem);transform:translateX(1.5rem)}.bx--toggle+.bx--toggle__label .bx--toggle__appearance:before{box-shadow:0 0 0 1px transparent,0 0 0 3px transparent}.bx--toggle:active+.bx--toggle__label .bx--toggle__appearance:before,.bx--toggle:focus+.bx--toggle__label{box-shadow:0 0 0 1px #e0e0e0,0 0 0 3px #0f62fe}.bx--toggle:disabled+.bx--toggle__label{cursor:not-allowed}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance:before{background-color:#f4f4f4}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance:after{background-color:#c6c6c6}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance:after,.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance:before{cursor:not-allowed;transition:70ms cubic-bezier(.2,0,1,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance:after,.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance:before{transition:none}}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__text--left,.bx--toggle:disabled+.bx--toggle__label .bx--toggle__text--right{color:#c6c6c6}.bx--toggle:disabled:active+.bx--toggle__label .bx--toggle__appearance:before{box-shadow:none}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__check{fill:#c6c6c6}.bx--toggle--small+.bx--toggle__label .bx--toggle__appearance{height:1rem;width:2rem}.bx--toggle--small+.bx--toggle__label .bx--toggle__appearance:before{border-radius:.9375rem;box-sizing:border-box;height:1rem;top:0;width:2rem}.bx--toggle--small+.bx--toggle__label .bx--toggle__appearance:after{height:.625rem;left:.1875rem;top:.1875rem;width:.625rem}.bx--toggle--small:checked+.bx--toggle__label .bx--toggle__check{fill:#198038;-webkit-transform:scale(1) translateX(1rem);transform:scale(1) translateX(1rem)}.bx--toggle--small+.bx--toggle__label .bx--toggle__text--left{left:2rem}.bx--toggle--small:checked+.bx--toggle__label .bx--toggle__appearance:after{margin-left:0;-webkit-transform:translateX(1.0625rem);transform:translateX(1.0625rem)}.bx--toggle-input{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--toggle-input:focus{outline:none}.bx--toggle-input__label{align-items:flex-start;color:#525252;cursor:pointer;display:flex;flex-direction:column;font-size:.75rem;font-weight:400;letter-spacing:.32px;line-height:1.33333}.bx--toggle__switch{align-items:center;cursor:pointer;display:flex;height:1.5rem;position:relative;width:3rem}.bx--toggle__switch:before{background-color:#8d8d8d;border-radius:.9375rem;box-shadow:0 0 0 1px transparent,0 0 0 3px transparent;box-sizing:border-box;content:"";display:block;height:1.5rem;position:absolute;top:0;transition:box-shadow 70ms cubic-bezier(.2,0,1,.9),background-color 70ms cubic-bezier(.2,0,1,.9);width:3rem;will-change:box-shadow}@media screen and (prefers-reduced-motion:reduce){.bx--toggle__switch:before{transition:none}}.bx--toggle__switch:after{background-color:#fff;border-radius:50%;box-sizing:border-box;content:"";display:block;height:1.125rem;left:.1875rem;position:absolute;top:.1875rem;transition:-webkit-transform 70ms cubic-bezier(.2,0,1,.9);transition:transform 70ms cubic-bezier(.2,0,1,.9);transition:transform 70ms cubic-bezier(.2,0,1,.9),-webkit-transform 70ms cubic-bezier(.2,0,1,.9);width:1.125rem}.bx--toggle-input__label .bx--toggle__switch{margin-top:1rem}.bx--toggle__text--off,.bx--toggle__text--on{font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-left:3.5rem;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;user-select:none;white-space:nowrap}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch>.bx--toggle__text--off,.bx--toggle-input:not(:checked)+.bx--toggle-input__label>.bx--toggle__switch>.bx--toggle__text--on{visibility:hidden}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch:before{background-color:#198038}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch:after{background-color:#fff;-webkit-transform:translateX(1.5rem);transform:translateX(1.5rem)}.bx--toggle-input:active+.bx--toggle-input__label>.bx--toggle__switch:before,.bx--toggle-input:focus+.bx--toggle-input__label>.bx--toggle__switch:before{box-shadow:0 0 0 1px #fff,0 0 0 3px #0f62fe}.bx--toggle-input:disabled+.bx--toggle-input__label{color:#c6c6c6;cursor:not-allowed}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch{cursor:not-allowed}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch:before{background-color:#c6c6c6}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch:after{background-color:#8d8d8d}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch:after,.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch:before{cursor:not-allowed;transition:70ms cubic-bezier(.2,0,1,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch:after,.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch:before{transition:none}}.bx--toggle-input:disabled:active+.bx--toggle-input__label>.bx--toggle__switch:before{box-shadow:none}.bx--toggle-input--small+.bx--toggle-input__label>.bx--toggle__switch{height:1rem;width:2rem}.bx--toggle-input--small+.bx--toggle-input__label>.bx--toggle__switch:before{border-radius:.9375rem;height:1rem;width:2rem}.bx--toggle-input--small+.bx--toggle-input__label>.bx--toggle__switch:after{height:.625rem;width:.625rem}.bx--toggle-input--small+.bx--toggle-input__label .bx--toggle__text--off,.bx--toggle-input--small+.bx--toggle-input__label .bx--toggle__text--on{margin-left:2.5rem}.bx--toggle-input--small:checked+.bx--toggle-input__label>.bx--toggle__switch:after{-webkit-transform:translateX(1.0625rem);transform:translateX(1.0625rem)}.bx--toggle-input--small:checked+.bx--toggle-input__label .bx--toggle__check{fill:#198038;-webkit-transform:scale(1) translateX(1rem);transform:scale(1) translateX(1rem)}.bx--toggle-input--small:disabled:checked+.bx--toggle-input__label .bx--toggle__check{fill:#f4f4f4}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch{background:#e5e5e5;border:none;box-shadow:none;margin-top:.5rem;padding:0;pointer-events:none;position:relative;width:3rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:active,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:focus,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:hover{border:none;cursor:default;outline:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:before{-webkit-animation:none;animation:none}}.bx--toggle.bx--skeleton+.bx--toggle-input__label>div{background:#e5e5e5;border:none;box-shadow:none;font-size:0;height:.5rem;line-height:0;overflow:hidden;padding:0;pointer-events:none;position:relative;width:1.5rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:active,.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:focus,.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:hover{border:none;cursor:default;outline:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:before{-webkit-animation:none;animation:none}}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch{background:#e5e5e5;border:none;box-shadow:none;margin-top:.5rem;padding:0;pointer-events:none;position:relative;width:2rem}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:active,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:focus,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:hover{border:none;cursor:default;outline:none}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:before{-webkit-animation:none;animation:none}}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div{background:#e5e5e5;border:none;box-shadow:none;font-size:0;height:.5rem;line-height:0;overflow:hidden;padding:0;pointer-events:none;position:relative;width:1rem}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:active,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:focus,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:hover{border:none;cursor:default;outline:none}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:before{-webkit-animation:none;animation:none}}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left{background:#e5e5e5;border:none;box-shadow:none;height:.5rem;padding:0;pointer-events:none;position:relative;position:absolute;width:1rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:active,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:focus,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:hover{border:none;cursor:default;outline:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:before{-webkit-animation:skeleton 3s ease-in-out infinite;animation:skeleton 3s ease-in-out infinite;background:#c6c6c6;content:"";height:100%;left:0;position:absolute;top:0;width:100%;will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion:reduce){.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:before{-webkit-animation:none;animation:none}}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left{left:2rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__appearance:after,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__appearance:before,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:after{display:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:before{border-radius:0}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--toggle__switch:before{outline:1px solid transparent}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch:after,.bx--toggle__switch:after{background-color:ButtonText;outline:1px solid transparent}}.bx--toolbar{align-items:center;display:flex;flex-flow:row nowrap;margin:1rem 0}.bx--toolbar>div{margin:0 .25rem}.bx--toolbar .bx--search-input{background-color:transparent;height:2rem;outline:none}.bx--toolbar .bx--search-close{display:none}.bx--toolbar .bx--overflow-menu__icon{fill:#525252;transition:fill 50ms cubic-bezier(.2,0,.38,.9)}.bx--toolbar .bx--search-magnifier{fill:#525252;cursor:pointer;left:.375rem;top:.5rem;-webkit-transform:scale(1.15);transform:scale(1.15);transition:all 175ms cubic-bezier(.2,0,.38,.9)}.bx--toolbar fieldset{border:0;padding:0}.bx--toolbar .bx--toolbar-search--active{width:15.625rem}.bx--toolbar .bx--toolbar-search--active .bx--search-magnifier{top:.5625rem;-webkit-transform:scale(1);transform:scale(1)}.bx--toolbar .bx--toolbar-search--active .bx--search-input{background-color:#fff}.bx--toolbar .bx--toolbar-search--active .bx--search-close{display:block}.bx--toolbar .bx--checkbox-label{margin-bottom:0}.bx--toolbar .bx--overflow-menu--open>.bx--overflow-menu__icon{fill:#0f62fe}.bx--toolbar-search{transition:all 175ms cubic-bezier(.2,0,.38,.9);width:1.8rem}.bx--toolbar-search__btn{background:transparent;border:0;height:2rem;left:0;position:absolute;top:0;width:2rem}.bx--toolbar-search__btn:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--toolbar-search__btn:focus{outline-style:dotted}}.bx--toolbar-filter-icon{padding-left:0;padding-right:0}.bx--toolbar-menu__title{font-size:.75rem;font-weight:400;font-weight:600;letter-spacing:.32px;line-height:1.33333;padding:.5rem 1.25rem}.bx--toolbar-menu__option{padding:.5rem 1.25rem}.bx--toolbar-menu__divider{border:0;border-top:1px solid #e0e0e0;width:100%}.bx--radio-button-group{border:none}.bx--toolbar-search:not(.bx--toolbar-search--active) .bx--search-input{border-bottom:none}.bx--unstable-pagination{align-items:center;background-color:#f4f4f4;border-bottom:1px solid transparent;border-top:1px solid #e0e0e0;display:flex;font-size:.875rem;font-weight:400;height:3rem;justify-content:space-between;letter-spacing:.16px;line-height:1.28572;width:100%}.bx--unstable-pagination__text{color:#525252;margin:0 1rem}@media(min-width:42rem){.bx--unstable-pagination__text{display:inline-block}}.bx--unstable-pagination__left,.bx--unstable-pagination__right{align-items:center;display:flex;height:100%}.bx--unstable-pagination__left{padding:0 1rem 0 0}.bx--unstable-pagination__left>.bx--form-item,.bx--unstable-pagination__right>.bx--form-item{height:100%}.bx--unstable-pagination__left .bx--unstable-pagination__text{margin-right:.0625rem}.bx--unstable-pagination__right .bx--unstable-pagination__text{margin-left:.0625rem;margin-right:1rem}.bx--unstable-pagination__button{fill:#161616;align-items:center;background:none;border:none;border-left:1px solid #e0e0e0;color:#161616;cursor:pointer;display:flex;height:100%;justify-content:center;margin:0;padding:0 .875rem;transition:outline .11s cubic-bezier(.2,0,.38,.9),background-color .11s cubic-bezier(.2,0,.38,.9)}.bx--unstable-pagination__button .bx--btn__icon{height:auto;width:auto}.bx--unstable-pagination__button.bx--btn--icon-only.bx--tooltip__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--unstable-pagination__button.bx--btn--icon-only.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--unstable-pagination__button:hover{background:#e5e5e5;color:#161616}.bx--unstable-pagination__button--no-index{fill:#c6c6c6;cursor:not-allowed}.bx--unstable-pagination__button.bx--btn:disabled{background:transparent;border-color:#e0e0e0}.bx--unstable-pagination__button--no-index:hover,.bx--unstable-pagination__button:disabled:hover{fill:#c6c6c6;background:transparent;cursor:not-allowed}.bx--unstable-pagination__page-selector,.bx--unstable-pagination__page-sizer{align-items:center;height:100%}.bx--unstable-pagination__page-selector .bx--select-input--inline__wrapper,.bx--unstable-pagination__page-sizer .bx--select-input--inline__wrapper{display:flex;height:100%}.bx--unstable-pagination__page-selector .bx--select-input,.bx--unstable-pagination__page-sizer .bx--select-input{font-size:.875rem;font-weight:400;height:100%;letter-spacing:.16px;line-height:1.28572;margin-right:-.65rem;min-width:auto;padding:0 2.5rem 0 1rem;width:auto}@media(min-width:42rem){.bx--unstable-pagination__page-selector .bx--select-input,.bx--unstable-pagination__page-sizer .bx--select-input{margin-right:0;padding-right:2.25rem}}.bx--unstable-pagination__page-selector .bx--select-input:hover,.bx--unstable-pagination__page-sizer .bx--select-input:hover{background:#e5e5e5}.bx--unstable-pagination__page-selector .bx--select__arrow,.bx--unstable-pagination__page-sizer .bx--select__arrow{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media(min-width:42rem){.bx--unstable-pagination__page-selector .bx--select__arrow,.bx--unstable-pagination__page-sizer .bx--select__arrow{right:1rem}}.bx--unstable-pagination__page-selector{border-left:1px solid #e0e0e0}.bx--unstable-pagination__page-sizer{border-right:1px solid #e0e0e0}.bx--header{align-items:center;background-color:#161616;border-bottom:1px solid #393939;display:flex;height:3rem;left:0;position:fixed;right:0;top:0;z-index:8000}.bx--header__action{-webkit-appearance:none;appearance:none;background:none;border:.0625rem solid transparent;cursor:pointer;display:inline-block;height:3rem;padding:0;transition:background-color .11s,border-color .11s;width:100%;width:3rem}.bx--header__action::-moz-focus-inner{border:0}.bx--header__action--active>svg.bx--navigation-menu-panel-expand-icon,.bx--header__action>svg.bx--navigation-menu-panel-collapse-icon{display:none}.bx--header__action--active>svg.bx--navigation-menu-panel-collapse-icon{display:inline}.bx--header__action:hover{background-color:#353535}.bx--header__action--active{border-bottom:1px solid #161616;border-left:1px solid #393939;border-right:1px solid #393939}.bx--header__action:focus{border-color:#fff;outline:none}.bx--header__action:active{background-color:#393939}.bx--header__action.bx--btn--icon-only.bx--tooltip__trigger{justify-content:center}.bx--header__action>svg{fill:#fff}.bx--header__menu-trigger>svg{fill:#f4f4f4}.bx--header__menu-trigger:hover{fill:#2c2c2c}.bx--header__menu-toggle{align-items:center;display:flex;justify-content:center}@media(min-width:66rem){.bx--header__menu-toggle__hidden{display:none}}a.bx--header__name{align-items:center;border:.125rem solid transparent;display:flex;font-size:.875rem;font-weight:400;font-weight:600;height:100%;letter-spacing:.16px;letter-spacing:.1px;line-height:1.28572;line-height:1.25rem;outline:none;padding:0 2rem 0 1rem;text-decoration:none;transition:border-color .11s;-webkit-user-select:none;user-select:none}a.bx--header__name:focus{border-color:#fff}.bx--header__name--prefix{font-weight:400}a.bx--header__name,a.bx--header__name:hover{color:#f4f4f4}.bx--header__menu-toggle:not(.bx--header__menu-toggle__hidden)~.bx--header__name{padding-left:.5rem}.bx--header__nav{display:none;height:100%;padding-left:1rem;position:relative}@media(min-width:66rem){.bx--header__nav{display:block}}.bx--header__nav:before{background-color:#393939;content:"";display:block;height:1.5rem;left:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:.0625rem}.bx--header__menu-bar{display:flex;height:100%;list-style:none;margin:0;padding:0}a.bx--header__menu-item{align-items:center;border:2px solid transparent;color:#c6c6c6;display:flex;font-size:.875rem;font-weight:400;height:100%;letter-spacing:0;line-height:1.125rem;padding:0 1rem;position:relative;text-decoration:none;transition:background-color .11s,border-color .11s,color .11s;-webkit-user-select:none;user-select:none}a.bx--header__menu-item:hover{background-color:#2c2c2c;color:#f4f4f4}.bx--header__action:active,a.bx--header__menu-item:active{background-color:#393939;color:#f4f4f4}a.bx--header__menu-item:focus{border-color:#fff;color:#f4f4f4;outline:none}a.bx--header__menu-item:active>svg,a.bx--header__menu-item:focus>svg,a.bx--header__menu-item:hover>svg{fill:#f4f4f4}.bx--header__menu-item--current:after,a.bx--header__menu-item[aria-current=page]:after{border-bottom:3px solid #4589ff;bottom:-2px;content:"";left:0;position:absolute;right:0;top:0;width:100%}.bx--header__menu-item--current:focus:after,a.bx--header__menu-item[aria-current=page]:focus:after{border:0}a.bx--header__menu-item.bx--header__menu-item--current:focus,a.bx--header__menu-item[aria-current=page]:focus{border:2px solid #fff}.bx--header__submenu{position:relative}.bx--header__submenu--current:after{border-bottom:3px solid #0f62fe;bottom:0;content:"";left:0;position:absolute;right:0;top:0;width:100%}.bx--header__submenu--current:focus{border:2px solid #0f62fe}.bx--header__submenu--current:focus:after{border:0}.bx--header__menu-title[aria-haspopup=true]{position:relative}.bx--header__menu-title[aria-expanded=true]{background-color:#262626;color:#fff;z-index:8001}.bx--header__menu-title[aria-expanded=true]>.bx--header__menu-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bx--header__menu{display:none;list-style:none;margin:0;padding:0}.bx--header__menu-title[aria-expanded=true]+.bx--header__menu{background-color:#262626;bottom:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.5);display:flex;flex-direction:column;left:0;position:absolute;-webkit-transform:translateY(100%);transform:translateY(100%);width:12.5rem;z-index:8000}.bx--header__menu-title[aria-expanded=true]+.bx--header__menu .bx--header__menu-item:hover{background-color:#353535}.bx--header__menu-title[aria-expanded=true]+.bx--header__menu .bx--header__menu-item:active{background-color:#393939}.bx--header__menu .bx--header__menu-item{height:3rem}.bx--header__menu .bx--header__menu-item:hover{background-color:#262626;color:#f4f4f4}.bx--header__menu-arrow{fill:#c6c6c6;margin-left:.5rem;transition:fill .11s,-webkit-transform .11s;transition:transform .11s,fill .11s;transition:transform .11s,fill .11s,-webkit-transform .11s}.bx--header__global{display:flex;flex:1 1;height:100%;justify-content:flex-end}.bx--skip-to-content{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;visibility:inherit;white-space:nowrap;width:1px}.bx--skip-to-content:focus{clip:auto;align-items:center;background-color:#161616;border:4px solid #0f62fe;color:#f4f4f4;display:flex;height:3rem;left:0;outline:none;padding:0 1rem;top:0;width:auto;z-index:9999}.bx--header-panel{background-color:#161616;border:none;bottom:0;color:#c6c6c6;overflow:hidden;position:fixed;right:0;top:3rem;transition-timing-function:cubic-bezier(.2,0,1,.9);transition:width .11s;width:0;will-change:width;z-index:8000}.bx--header-panel--expanded{border-left:1px solid #393939;border-right:1px solid #393939;width:16rem}.bx--panel--overlay{background-color:#161616;bottom:0;height:100%;overflow-x:hidden;overflow-y:auto;padding:1rem 0;position:fixed;right:0;top:3rem;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);transition:-webkit-transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9);transition:transform .11s cubic-bezier(.2,0,.38,.9),-webkit-transform .11s cubic-bezier(.2,0,.38,.9);width:16rem;will-change:transform;z-index:1000}.bx--panel--expanded{box-shadow:0 8px 16px 0 rgba(0,0,0,.25);-webkit-transform:translateZ(0);transform:translateZ(0)}.bx--product-switcher__search{margin-bottom:1.5rem;padding:0 1rem}.bx--search--shell input{background-color:#e0e0e0}.bx--product-switcher__all-btn,.bx--product-switcher__subheader{color:#c6c6c6;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;padding:.5rem}.bx--product-switcher__all-btn,.bx--product-switcher__subheader{padding-left:3.5rem}.bx--product-switcher__all-btn,.bx--product-switcher__back-btn{background:transparent;border:none;color:#0f62fe;cursor:pointer;display:inline-block;text-align:left;width:100%}.bx--product-switcher__all-btn:hover,.bx--product-switcher__back-btn:hover{text-decoration:underline}.bx--product-switcher__all-btn:focus,.bx--product-switcher__back-btn:focus{box-shadow:inset 0 0 0 3px #0f62fe;outline:none}.bx--product-switcher__back-btn{align-items:center;display:flex;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;padding:.5rem 1rem}.bx--product-switcher__back-arrow{fill:#0f62fe;margin-right:1rem}.bx--product-list__item{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.bx--product-list__item:hover{background:#e0e0e0}.bx--product-link{align-items:center;display:flex;flex-direction:row;padding:.5rem 1rem;text-decoration:none;width:100%}.bx--product-link:focus{box-shadow:inset 0 0 0 3px #0f62fe;outline:none}.bx--product-switcher__icon{margin-right:1rem}.bx--product-link__name{color:#c6c6c6;font-size:.875rem;font-weight:400;letter-spacing:.16px;line-height:1.28572;margin-left:.25rem}.bx--product-switcher__product-list .bx--overflow-menu{align-items:center;display:none;justify-content:center;width:2.5rem}.bx--product-switcher__product-list .bx--overflow-menu.bx--overflow-menu--open{display:flex}.bx--product-switcher__product-list .bx--overflow-menu>svg{fill:#c6c6c6}.bx--product-switcher__product-list .bx--overflow-menu:hover{background:#c6c6c6}.bx--product-switcher__product-list .bx--overflow-menu:hover>svg{fill:#c6c6c6}.bx--product-switcher__product-list .bx--overflow-menu:focus{box-shadow:inset 0 0 0 3px #0f62fe;display:flex;outline:none}.bx--product-switcher__product-list .bx--overflow-menu-options__option:hover{background:#fff}.bx--product-list__item:hover .bx--overflow-menu{display:flex}.bx--switcher{align-items:center;color:#c6c6c6;display:flex;flex-direction:column;justify-content:center}.bx--switcher__item{height:2rem;width:100%}.bx--switcher__item:first-child{margin-top:1rem}.bx--switcher__item--divider{background:#393939;border:none;display:block;height:1px;margin:.5rem 1rem;width:14rem}.bx--switcher__item-link{color:#c6c6c6;display:block;font-size:.875rem;font-weight:600;height:2rem;letter-spacing:.16px;line-height:1.28572;padding:.375rem 1rem;text-decoration:none}.bx--switcher__item-link:hover:not(.bx--switcher__item-link--selected){background:#2c2c2c;color:#f4f4f4;cursor:pointer}.bx--switcher__item-link:focus{outline:2px solid #fff;outline-offset:-2px}.bx--switcher__item-link:active{background:#393939;color:#f4f4f4}.bx--switcher__item-link--selected{background:#262626;color:#f4f4f4}.bx--side-nav{background-color:#fff;bottom:0;color:#525252;left:0;max-width:16rem;overflow:hidden;position:fixed;top:0;transition:width .11s cubic-bezier(.2,0,1,.9);width:3rem;will-change:width;z-index:8000}.bx--side-nav--ux{top:3rem;width:16rem}@media(max-width:65.98rem){.bx--side-nav--ux{width:0}}.bx--side-nav--rail{width:3rem}.bx--side-nav--hidden{width:0}.bx--side-nav--expanded,.bx--side-nav.bx--side-nav--rail:not(.bx--side-nav--fixed):hover{width:16rem}.bx--side-nav__overlay{background-color:transparent;height:0;left:0;opacity:0;position:fixed;top:3rem;transition:opacity .24s cubic-bezier(.2,0,.38,.9),background-color .24s cubic-bezier(.2,0,.38,.9);width:0}@media(max-width:65.98rem){.bx--side-nav__overlay-active{background-color:hsla(0,0%,9%,.5);height:100vh;opacity:1;transition:opacity .24s cubic-bezier(.2,0,.38,.9),background-color .24s cubic-bezier(.2,0,.38,.9);width:100vw}}.bx--header~.bx--side-nav{height:calc(100% - 48px);top:3rem}.bx--side-nav--fixed{width:16rem}.bx--side-nav--collapsed{-webkit-transform:translateX(-16rem);transform:translateX(-16rem);width:16rem}.bx--side-nav__navigation{display:flex;flex-direction:column;height:100%}.bx--side-nav__header{border-bottom:1px solid #393939;display:flex;height:3rem;max-width:100%;width:100%}.bx--side-nav--expanded .bx--side-nav__header,.bx--side-nav--fixed .bx--side-nav__header,.bx--side-nav--ux .bx--side-nav__header,.bx--side-nav:hover .bx--side-nav__header{height:auto}.bx--side-nav__details{display:flex;flex:1 1;flex-direction:column;min-width:0;opacity:0;padding-right:1rem;visibility:hidden}.bx--side-nav--expanded .bx--side-nav__details,.bx--side-nav--fixed .bx--side-nav__details,.bx--side-nav--ux .bx--side-nav__details,.bx--side-nav:hover .bx--side-nav__details{opacity:1;visibility:inherit}.bx--side-nav__title{font-size:.875rem;font-weight:600;letter-spacing:.1px;margin-top:1rem;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.bx--side-nav__select,.bx--side-nav__title{padding-left:.5rem}.bx--side-nav__switcher{align-items:center;display:flex;justify-content:space-between;position:relative}.bx--side-nav__switcher-chevron{fill:#525252;align-items:center;bottom:0;display:flex;position:absolute;right:.5rem;top:0}.bx--side-nav__select{-webkit-appearance:none;appearance:none;background-color:#161616;border:none;border-radius:0;color:#f4f4f4;cursor:pointer;flex:1 1;font-size:.75rem;height:2rem;min-width:0;outline:2px solid transparent;outline-offset:-2px;padding-right:2rem;transition:outline .11s}.bx--side-nav__select:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav__select:focus{outline-style:dotted}}.bx--side-nav__footer{background-color:#fff;flex:0 0 3rem;width:100%}.bx--side-nav__toggle{-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;height:100%;outline:2px solid transparent;outline-offset:-2px;padding:0 0 0 1rem;text-align:left;transition:outline .11s;width:100%}.bx--side-nav__toggle::-moz-focus-inner{border:0}.bx--side-nav__toggle:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav__toggle:focus{outline-style:dotted}}.bx--side-nav__items{flex:1 1;overflow:hidden;padding:1rem 0 0}.bx--side-nav--expanded .bx--side-nav__items,.bx--side-nav--fixed .bx--side-nav__items,.bx--side-nav--ux .bx--side-nav__items,.bx--side-nav:hover .bx--side-nav__items{overflow-y:auto}.bx--side-nav__item{overflow:hidden}.bx--side-nav--ux .bx--side-nav__item,.bx--side-nav__item{height:auto;width:auto}.bx--side-nav .bx--header__menu-title[aria-expanded=true]:hover,.bx--side-nav a.bx--header__menu-item:hover,.bx--side-nav__item:not(.bx--side-nav__item--active):hover .bx--side-nav__item:not(.bx--side-nav__item--active)>.bx--side-nav__submenu:hover,.bx--side-nav__item:not(.bx--side-nav__item--active)>.bx--side-nav__link:hover,.bx--side-nav__menu a.bx--side-nav__link:not(.bx--side-nav__link--current):not([aria-current=page]):hover{background-color:#e5e5e5;color:#161616}.bx--side-nav__item:not(.bx--side-nav__item--active) .bx--side-nav__menu-item>.bx--side-nav__link:hover>span,.bx--side-nav__item:not(.bx--side-nav__item--active)>.bx--side-nav__link:hover>span{color:#161616}.bx--side-nav__item--large{height:3rem}.bx--side-nav__divider{background-color:#e0e0e0;height:1px;margin:.5rem 1rem}.bx--side-nav__submenu{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;color:#525252;cursor:pointer;display:inline-block;display:flex;font-size:.875rem;font-weight:600;height:2rem;letter-spacing:.16px;line-height:1.28572;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;transition:color .11s,background-color .11s,outline .11s;-webkit-user-select:none;user-select:none;width:100%}.bx--side-nav__submenu::-moz-focus-inner{border:0}.bx--side-nav__submenu:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav__submenu:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav__submenu:focus{outline-style:dotted}}.bx--side-nav__submenu-title{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.bx--side-nav__icon.bx--side-nav__submenu-chevron{display:flex;flex:1 1;justify-content:flex-end}.bx--side-nav__submenu-chevron>svg{height:1rem;transition:-webkit-transform .11s;transition:transform .11s;transition:transform .11s,-webkit-transform .11s;width:1rem}.bx--side-nav__submenu[aria-expanded=true] .bx--side-nav__submenu-chevron>svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bx--side-nav__item--large .bx--side-nav__submenu{height:3rem}.bx--side-nav__item--active .bx--side-nav__submenu:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav__item--active .bx--side-nav__submenu[aria-expanded=false]{background-color:#e5e5e5;color:#161616;position:relative}.bx--side-nav__item--active .bx--side-nav__submenu[aria-expanded=false]:before{background-color:#0f62fe;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.bx--side-nav__item--active .bx--side-nav__submenu-title{color:#161616;font-weight:600}.bx--side-nav__menu{display:block;max-height:0;visibility:hidden}.bx--side-nav__submenu[aria-expanded=true]+.bx--side-nav__menu{max-height:93.75rem;visibility:inherit}.bx--side-nav__menu a.bx--side-nav__link{font-weight:400;height:2rem;min-height:2rem;padding-left:2rem}.bx--side-nav__item.bx--side-nav__item--icon a.bx--side-nav__link{padding-left:4.5rem}.bx--side-nav__menu a.bx--side-nav__link--current,.bx--side-nav__menu a.bx--side-nav__link[aria-current=page],a.bx--side-nav__link--current{background-color:#e0e0e0}.bx--side-nav__menu a.bx--side-nav__link--current>span,.bx--side-nav__menu a.bx--side-nav__link[aria-current=page]>span,a.bx--side-nav__link--current>span{color:#161616;font-weight:600}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu,.bx--side-nav a.bx--header__menu-item,a.bx--side-nav__link{align-items:center;display:flex;font-size:.875rem;font-weight:600;letter-spacing:.16px;line-height:1.28572;min-height:2rem;outline:2px solid transparent;outline-offset:-2px;padding:0 1rem;position:relative;text-decoration:none;transition:color .11s,background-color .11s,outline .11s}.bx--side-nav__item--large a.bx--side-nav__link{height:3rem}.bx--side-nav a.bx--header__menu-item .bx--text-truncate-end,a.bx--side-nav__link>.bx--side-nav__link-text{color:#525252;font-size:.875rem;letter-spacing:.1px;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.bx--side-nav a.bx--header__menu-item:focus,a.bx--side-nav__link:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav a.bx--header__menu-item:focus,a.bx--side-nav__link:focus{outline-style:dotted}}a.bx--side-nav__link--current,a.bx--side-nav__link[aria-current=page]{background-color:#e5e5e5;font-weight:600}a.bx--side-nav__link--current .bx--side-nav__link-text,a.bx--side-nav__link[aria-current=page] .bx--side-nav__link-text{color:#161616}a.bx--side-nav__link--current:before,a.bx--side-nav__link[aria-current=page]:before{background-color:#0f62fe;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.bx--side-nav__icon{align-items:center;display:flex;flex:0 0 1rem;justify-content:center}.bx--side-nav__icon:not(.bx--side-nav__submenu-chevron){margin-right:1.5rem}.bx--side-nav__icon>svg{fill:#525252;height:1rem;width:1rem}.bx--side-nav--expanded .bx--side-nav__icon>svg.bx--side-nav-expand-icon,.bx--side-nav__icon>svg.bx--side-nav-collapse-icon{display:none}.bx--side-nav--expanded .bx--side-nav__icon>svg.bx--side-nav-collapse-icon{display:block}.bx--side-nav--fixed .bx--side-nav__submenu,.bx--side-nav--fixed a.bx--side-nav__link{padding-left:1rem}.bx--side-nav--fixed .bx--side-nav__item:not(.bx--side-nav__item--icon) .bx--side-nav__menu a.bx--side-nav__link{padding-left:2rem}@media(max-width:65.98rem){.bx--side-nav .bx--header__nav{display:block}}.bx--side-nav__header-navigation{display:none}@media(max-width:65.98rem){.bx--side-nav__header-navigation{display:block;margin-bottom:2rem;position:relative}}.bx--side-nav__header-divider:after{background:#e0e0e0;bottom:-1rem;content:"";height:.0625rem;left:1rem;position:absolute;width:calc(100% - 32px)}.bx--side-nav a.bx--header__menu-item{color:#525252;justify-content:space-between;white-space:nowrap}.bx--side-nav a.bx--header__menu-item[aria-expanded=true]{background-color:transparent}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu{background-color:transparent;bottom:inherit;box-shadow:none;padding:0;-webkit-transform:none;transform:none;width:100%}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu li{width:100%}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu a.bx--header__menu-item{font-weight:400;padding-left:4.25rem}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu a.bx--header__menu-item:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav .bx--header__menu a.bx--header__menu-item{height:inherit}.bx--side-nav .bx--header__menu-arrow,.bx--side-nav a.bx--header__menu-item:focus .bx--header__menu-arrow,.bx--side-nav a.bx--header__menu-item:hover .bx--header__menu-arrow{fill:#525252}@media (forced-colors:active),screen and (-ms-high-contrast:active){.bx--side-nav .bx--header__menu-arrow,.bx--side-nav a.bx--header__menu-item:focus .bx--header__menu-arrow,.bx--side-nav a.bx--header__menu-item:hover .bx--header__menu-arrow,.bx--side-nav__icon>svg{fill:ButtonText}}.bx--navigation{background-color:#262626;bottom:0;box-shadow:0 .5rem 1rem 0 rgba(0,0,0,.25);color:#f4f4f4;left:0;position:fixed;top:3rem;width:16rem;z-index:9100}.bx--navigation--right{left:auto;right:0}.bx--navigation svg{fill:#f4f4f4}.bx--navigation-section:not(:last-child):after{background-color:#393939;content:"";display:block;height:1px;margin:0 1rem}.bx--navigation-item{align-items:center;display:flex;position:relative}.bx--navigation-item--active>a.bx--navigation-link{color:#fff;font-weight:600}.bx--navigation-item--active:after{background-color:#0f62fe;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}a.bx--navigation-link{align-items:center;color:#f4f4f4;display:flex;font-size:.875rem;font-weight:400;min-height:2.5rem;padding-left:1rem;text-decoration:none;width:100%}a.bx--navigation-link:hover{background-color:#333;color:#fff}a.bx--navigation-link:focus{outline:.1875rem solid #0f62fe;outline-offset:-.1875rem}.bx--navigation-item--icon>a.bx--navigation-link{padding-left:0}.bx--navigation__category{width:100%}.bx--navigation__category-toggle{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;display:flex;padding:0;width:100%}.bx--navigation__category-toggle::-moz-focus-inner{border:0}.bx--navigation__category-toggle:hover{background-color:#333}.bx--navigation__category-toggle:focus{outline:.1875rem solid #0f62fe;outline-offset:-.1875rem}.bx--navigation__category-title{align-items:center;color:#f4f4f4;display:flex;font-size:.875rem;font-weight:400;justify-content:space-between;min-height:2.5rem;padding-left:1rem;padding-right:1rem;width:100%}.bx--navigation-item--icon .bx--navigation__category-title{padding-left:0}.bx--navigation__category-items{display:none;visibility:hidden}.bx--navigation__category-item>a.bx--navigation-link{align-items:center;display:flex;min-height:2rem;padding-left:2rem}.bx--navigation__category-item{position:relative}.bx--navigation-item--icon .bx--navigation__category-item>a.bx--navigation-link{padding-left:3.5rem}.bx--navigation__category-item--active:after{background-color:#0f62fe;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.bx--navigation__category-item--active>a.bx--navigation-link{color:#fff;font-weight:600}.bx--navigation__category--expanded .bx--navigation__category-title{font-weight:600}.bx--navigation__category--expanded .bx--navigation__category-title>svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bx--navigation__category--expanded .bx--navigation__category-items{display:block;visibility:inherit}.bx--navigation-icon{align-items:center;display:flex;height:2.5rem;justify-content:center;margin-right:.5rem;min-width:3rem;width:3rem}.bx--content{padding:2rem;will-change:margin-left}.bx--header~.bx--content{margin-top:3rem}.bx--side-nav~.bx--content{margin-left:3rem}.bx--side-nav.bx--side-nav--expanded~.bx--content{margin-left:16rem}.bx--tree{overflow:hidden}.bx--tree .bx--tree-node{background-color:#f4f4f4;color:#525252;padding-left:1rem}.bx--tree .bx--tree-node:focus{outline:none}.bx--tree .bx--tree-node:focus>.bx--tree-node__label{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tree .bx--tree-node:focus>.bx--tree-node__label{outline-style:dotted}}.bx--tree .bx--tree-node--disabled:focus>.bx--tree-node__label{outline:none}.bx--tree .bx--tree-node--disabled,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover .bx--tree-node__label__details{background-color:#f4f4f4;color:#c6c6c6}.bx--tree .bx--tree-node--disabled .bx--tree-node__icon,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover .bx--tree-node__icon,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover .bx--tree-parent-node__toggle-icon,.bx--tree .bx--tree-node--disabled .bx--tree-parent-node__toggle-icon{fill:#c6c6c6}.bx--tree .bx--tree-node--disabled,.bx--tree .bx--tree-node--disabled .bx--tree-parent-node__toggle-icon:hover{cursor:not-allowed}.bx--tree .bx--tree-node__label{align-items:center;display:flex;flex:1 1;min-height:2rem}.bx--tree .bx--tree-node__label:hover{background-color:#e5e5e5;color:#161616}.bx--tree .bx--tree-node__label:hover .bx--tree-node__label__details{color:#161616}.bx--tree .bx--tree-node__label:hover .bx--tree-node__icon,.bx--tree .bx--tree-node__label:hover .bx--tree-parent-node__toggle-icon{fill:#161616}.bx--tree .bx--tree-leaf-node{display:flex;padding-left:2.5rem}.bx--tree .bx--tree-leaf-node.bx--tree-node--with-icon{padding-left:2rem}.bx--tree .bx--tree-node__label__details{align-items:center;display:flex}.bx--tree .bx--tree-node--with-icon .bx--tree-parent-node__toggle{margin-right:0}.bx--tree .bx--tree-parent-node__toggle{border:0;margin-right:.5rem;padding:0}.bx--tree .bx--tree-parent-node__toggle:hover{cursor:pointer}.bx--tree .bx--tree-parent-node__toggle:focus{outline:none}.bx--tree .bx--tree-parent-node__toggle-icon{fill:#525252;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.bx--tree .bx--tree-parent-node__toggle-icon--expanded{-webkit-transform:rotate(0);transform:rotate(0)}.bx--tree .bx--tree-node__icon{fill:#525252;flex-shrink:0;margin-right:.5rem}.bx--tree .bx--tree-node--selected>.bx--tree-node__label{background-color:#e0e0e0;color:#161616}.bx--tree .bx--tree-node--selected>.bx--tree-node__label:hover{background-color:#cacaca}.bx--tree .bx--tree-node--selected>.bx--tree-node__label .bx--tree-node__icon,.bx--tree .bx--tree-node--selected>.bx--tree-node__label .bx--tree-parent-node__toggle-icon{fill:#161616}.bx--tree .bx--tree-node--active>.bx--tree-node__label{position:relative}.bx--tree .bx--tree-node--active>.bx--tree-node__label:before{background-color:#0f62fe;content:"";height:100%;left:0;position:absolute;top:0;width:.25rem}.bx--tree--compact .bx--tree-node__label{min-height:1.5rem}.plot-tile-bck{display:flex;flex-direction:column}@media(max-width:41.98rem){.plot-tile-bck:not(:nth-child(2)){border-top:1px solid #e0e0e0;padding-top:3rem}}@media(min-width:42rem){.plot-tile-bck:nth-child(odd){border-left:1px solid #e0e0e0}}@media(min-width:66rem){.plot-tile-bck{border-left:1px solid #e0e0e0;margin-top:0}.plot-tile-bck svg{margin-top:6rem}}.plot-tile{flex-grow:1;font-size:.875rem;font-weight:400;height:100%;letter-spacing:.16px;line-height:1.42857;width:100%}@media(min-width:321px)and (max-width:41.98rem){.plot-tile{max-width:75%}}.bx--tile{overflow:visible;white-space:normal}.assessments{white-space:nowrap}.assessments,.assessments .assessment{padding-left:1rem;padding-right:1rem;position:relative}.assessments .assessment{display:inline-block;vertical-align:top}.assessments .assessment .orion-plots{display:flex;position:relative;width:100%}.assessments .assessment .orion-plot{width:100%} -/*# sourceMappingURL=main.56b5d8c7.css.map*/ \ No newline at end of file +/*# sourceMappingURL=main.2da6df03.css.map*/ \ No newline at end of file diff --git a/dashboard/build/static/css/main.2da6df03.css.map b/dashboard/build/static/css/main.2da6df03.css.map new file mode 100644 index 000000000..a6fbc419f --- /dev/null +++ b/dashboard/build/static/css/main.2da6df03.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.2da6df03.css","mappings":"AA2KI,wBClKJ,qBACE,iBACE,mBACA,eAMJ,SACE,CCnBF,WACE,cACF,CACA,qBACE,WAAY,CACZ,aACF,CACA,kBACE,kBACF,CACA,iBAEE,eAAgB,CAChB,sBAAuB,CAFvB,kBAAmB,CAGnB,SACF,CACA,+DAEE,YACF,CACA,uKAEE,eACF,CACA,yBAEE,iBAAkB,CADlB,kBAEF,CACA,qDACE,mBACF,CAEA,iDACE,wBACF,CACA,yEACE,eACF,CACA,+BACE,wBACF,CACA,iCAEE,oBAAqB,CADrB,YAEF,CACA,yCACE,oBACF,CACA,oCACE,WACF,CAIA,+HACE,cACF,CACA,wFACE,wBACF,CACA,yDACE,iBAAkB,CAClB,eACF,CACA,kFACE,aACF,CACA,WACE,cACF,CACA,iBACE,gBACF,CACA,yBACE,wBAA2B,CAC3B,aACF,CACA,2BACE,qBACF,CACA,oBACE,mBAAoB,CACpB,oBACF;;ACnFA;;;;;ECAA,CAAC,MCGG,8MAIA,yIAIA,2GAKF,sNACA,uGCCF,iBAGE,sBAGF,KAGE,8BACA,0CAHA,uBACA,gBAEA,CAMF,sEACE,cAUF,KAME,aCnCS,CD+BT,wLCsO4B,CCjGxB,eFlIJ,eCmP4B,CDvP5B,SAMA,eC7CS,CD0DX,0CACE,oBASF,GACE,mBACA,SACA,iBAaF,kBAEE,oBADA,YCkN4B,CD1M9B,EAEE,mBADA,YCqF0B,CDzE5B,sCAKE,gBADA,YAFA,0BACA,0EAGA,oEAGF,QAEE,kBACA,oBAGF,iBALE,kBASA,CAJF,SAGE,YACA,CAGF,wBAIE,gBAGF,GACE,eCkJ4B,CD/I9B,GACE,oBACA,cAGF,WACE,gBAGF,SAEE,kBCqI4B,CDlI9B,MEII,cFKJ,QELI,cFSF,cAFA,kBAGA,uBAGF,kBACA,cAOA,EAGE,6BAFA,aCXwC,CDYxC,oBACA,CGhLA,QHmLE,aCdsC,CDetC,yBCdsC,CEtKxC,4DHkME,cACA,qBASJ,kBAIE,sFC0D4B,CClH1B,cF4DJ,IASE,6BALA,mBAFA,aAIA,aAGA,CAQF,OAEE,gBAQF,IAEE,kBAGF,QAJE,qBAQA,CAJF,IAGE,eACA,CAYF,QAKE,oBAFA,aCtQS,CDqQT,qBC6E4B,CD9E5B,kBC8E4B,CD3E5B,eACA,CAOF,GAEE,mBACA,gCAQF,MAEE,qBACA,mBC4JsC,CDtJxC,OAEE,gBAQF,iCACE,UAGF,sCAME,oBEhKE,kBFkKF,oBAHA,QAGA,CAGF,aAEE,iBAGF,cAEE,oBAMF,cACE,eAMF,OACE,iBAOF,gDAIE,0BASE,4GACE,eAMN,wHAKE,kBADA,SACA,CAGF,uCAEE,sBACA,UAIF,SACE,cAEA,gBAGF,SAUE,QAAO,CADP,SAHA,YAEA,SAEA,CAKF,OAQE,cAPA,cE1OI,iBFgPJ,oBAFA,oBAFA,eACA,UAKA,mBAPA,UAOA,CAGF,SACE,uBAIF,kFAEE,YAGF,cAME,wBADA,mBACA,CAOF,yCACE,wBAQF,6BAEE,0BADA,YACA,CAOF,OACE,qBAGF,QAEE,eADA,iBACA,CAGF,SACE,aAKF,SACE,uBI5dF,0CAIE,eHsS4B,CGrS5B,gBAHA,mBHyS4B,CGlS9B,OFqKM,iBEpKN,OFoKM,eEnKN,OFmKM,kBElKN,OFkKM,iBEjKN,OFiKM,kBEhKN,OFgKM,eE9JN,MF8JM,kBE5JJ,eHwS4B,CGpS9B,WFwJM,cD6HwB,CGhR9B,sBAHE,eH2R4B,CG1R5B,eHkR4B,CGhR9B,WFmJM,gBD6HwB,CG3Q9B,WF8IM,gBD6HwB,CGtQ9B,sBAHE,eHmR4B,CGlR5B,eHwQ4B,CGtQ9B,WFyIM,gBD6HwB,CG3P9B,GAGE,SACA,oCAFA,kBH+EO,CGhFP,eAGA,CAQF,aFkGI,iBE/FF,eH2N4B,CGxN9B,WAGE,yBADA,YH4Q4B,CG9P9B,4BCnFE,gBADA,cACA,CDsFF,kBACE,qBAEA,mCACE,kBHqP0B,CG3O9B,YF2DI,cEzDF,yBAIF,YFqEM,kBEpEJ,kBFoEI,CEhEN,mBAGE,cAFA,cF+CE,gBDvJO,CG4GT,0BACE,aE7GJ,0BCCE,YAHA,cAGA,CDDF,eAEE,qBLRS,CKST,yBEEE,qBFJF,cCAA,CDcF,QAEE,qBAGF,YAEE,aAAY,CADZ,mBACA,CAGF,gBAEE,cJ4HE,aDvJO,CQZX,KAGE,qBADA,aRmCQ,CC8HN,eOhKF,CAGA,OACE,cAKJ,IAIE,wBRDS,COEP,oBCFF,URTS,CC6JP,gBOtJF,mBDIE,CCGF,QP+IE,eO5IA,gBAFA,SR2Q0B,CQnQ9B,IAGE,cAFA,cPqIE,eDpJO,CQoBT,SAEE,cP8HA,kBO7HA,kBAKJ,gBACE,gBRikCkC,CQhkClC,kBCxCA,oFCGA,iBADA,kBADA,kBADA,mBADA,UAIA,CCmDE,wBFzCE,yBACE,eT8Le,EWtJnB,wBFzCE,uCACE,eT8Le,EWtJnB,wBFzCE,qDACE,eT8Le,EWtJnB,yBFzCE,mEACE,gBT8Le,ESlKrB,KCnCA,aACA,eAEA,kBADA,kBACA,CDsCA,YAEE,aAAY,CADZ,cACA,CAEA,2CAGE,cAAa,CADb,eACA,CGtDJ,sqBAIE,kBADA,mBAFA,kBACA,UAEA,CAsBE,KACE,aACA,YACA,eF4BN,cACE,cACA,eAFF,cACE,aACA,cAFF,cACE,wBACA,yBAFF,cACE,aACA,cAFF,cACE,aACA,cAFF,cACE,wBACA,yBEnBE,UFCJ,cAEA,eADA,UACA,CEGQ,OFbR,qBAIA,sBESQ,OFbR,sBAIA,uBESQ,OFbR,aAIA,cESQ,OFbR,sBAIA,uBESQ,OFbR,sBAIA,uBESQ,OFbR,aAIA,cESQ,OFbR,sBAIA,uBESQ,OFbR,sBAIA,uBESQ,OFbR,aAIA,cESQ,QFbR,sBAIA,uBESQ,QFbR,sBAIA,uBESQ,QFbR,cAIA,eEeI,sBAEA,qBAGE,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,gBADW,CACX,kBADW,CACX,kBADW,CACX,kBADW,CAQP,UFhBV,wBEgBU,UFhBV,yBEgBU,UFhBV,gBEgBU,UFhBV,yBEgBU,UFhBV,yBEgBU,UFhBV,gBEgBU,UFhBV,yBEgBU,UFhBV,yBEgBU,UFhBV,gBEgBU,WFhBV,yBEgBU,WFhBV,yBCKE,wBC3BE,QACE,aACA,YACA,eF4BN,iBACE,cACA,eAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBAFF,iBACE,aACA,cAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBEnBE,aFCJ,cAEA,eADA,UACA,CEGQ,UFbR,qBAIA,sBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,WFbR,sBAIA,uBESQ,WFbR,sBAIA,uBESQ,WFbR,cAIA,eEeI,yBAEA,wBAGE,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,qBADW,CACX,qBADW,CACX,qBADW,CAQP,aFhBV,cEgBU,aFhBV,wBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,cFhBV,yBEgBU,cFhBV,0BCKE,wBC3BE,QACE,aACA,YACA,eF4BN,iBACE,cACA,eAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBAFF,iBACE,aACA,cAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBEnBE,aFCJ,cAEA,eADA,UACA,CEGQ,UFbR,qBAIA,sBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,WFbR,sBAIA,uBESQ,WFbR,sBAIA,uBESQ,WFbR,cAIA,eEeI,yBAEA,wBAGE,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,qBADW,CACX,qBADW,CACX,qBADW,CAQP,aFhBV,cEgBU,aFhBV,wBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,cFhBV,yBEgBU,cFhBV,0BCKE,wBC3BE,QACE,aACA,YACA,eF4BN,iBACE,cACA,eAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBAFF,iBACE,aACA,cAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBEnBE,aFCJ,cAEA,eADA,UACA,CEGQ,UFbR,qBAIA,sBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,WFbR,sBAIA,uBESQ,WFbR,sBAIA,uBESQ,WFbR,cAIA,eEeI,yBAEA,wBAGE,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,qBADW,CACX,qBADW,CACX,qBADW,CAQP,aFhBV,cEgBU,aFhBV,wBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,cFhBV,yBEgBU,cFhBV,0BCKE,yBC3BE,QACE,aACA,YACA,eF4BN,iBACE,cACA,eAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBAFF,iBACE,aACA,cAFF,iBACE,aACA,cAFF,iBACE,wBACA,yBEnBE,aFCJ,cAEA,eADA,UACA,CEGQ,UFbR,qBAIA,sBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,UFbR,sBAIA,uBESQ,UFbR,sBAIA,uBESQ,UFbR,aAIA,cESQ,WFbR,sBAIA,uBESQ,WFbR,sBAIA,uBESQ,WFbR,cAIA,eEeI,yBAEA,wBAGE,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,mBADW,CACX,qBADW,CACX,qBADW,CACX,qBADW,CAQP,aFhBV,cEgBU,aFhBV,wBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,aFhBV,yBEgBU,aFhBV,yBEgBU,aFhBV,gBEgBU,cFhBV,yBEgBU,cFhBV,0BGnDF,OAGE,cADA,kBbiIO,CalIP,UbWS,CaNT,oBAIE,6BAFA,cbmV0B,CalV1B,kBACA,CAGF,gBAEE,gCADA,qBACA,CAGF,mBACE,6BAUF,0BAEE,ab6T0B,CajT5B,sDAEE,yBAIA,kDAEE,wBAMJ,mGAIE,SASF,yCACE,gCbyR0B,CExV5B,4BW4EI,kCADA,ab+QwB,CchW1B,mDAGE,wBD2F+B,CCvF/B,uFAIE,oBDmFyE,CCrEzE,4GAEE,wBARa,CAnBnB,yDAGE,wBD2F+B,CCvF/B,+FAIE,oBDmFyE,CCrEzE,kHAEE,wBARa,CAnBnB,mDAGE,wBD2F+B,CCvF/B,uFAIE,oBDmFyE,CCrEzE,4GAEE,wBARa,CAnBnB,0CAGE,wBD2F+B,CCvF/B,2EAIE,oBDmFyE,CCrEzE,mGAEE,wBARa,CAnBnB,mDAGE,wBD2F+B,CCvF/B,uFAIE,oBDmFyE,CCrEzE,4GAEE,wBARa,CAnBnB,gDAGE,wBD2F+B,CCvF/B,mFAIE,oBDmFyE,CCrEzE,yGAEE,wBARa,CAnBnB,6CAGE,wBD2F+B,CCvF/B,+EAIE,oBDmFyE,CCrEzE,sGAEE,wBARa,CAnBnB,0CAGE,wBD2F+B,CCvF/B,2EAIE,oBDmFyE,CCrEzE,mGAEE,wBARa,CAMf,yJAEE,iCARa,CDwFnB,sBAEE,wBbpGK,CaqGL,qBAFA,UbmQwB,Ca5P1B,uBAEE,wBblHK,CamHL,qBAFA,abhHK,CauHX,YAEE,yBADA,UbnHS,CasHT,mDAGE,oBb6O0B,Ca1O5B,2BACE,SAIA,oDACE,oCbiOwB,CEtW5B,uCW6IM,sCADA,Ub4NsB,CW3S1B,2BEiGA,qBAKI,iCAHA,cAEA,gBADA,UAEA,CAGA,qCACE,UF1GN,2BEiGA,qBAKI,iCAHA,cAEA,gBADA,UAEA,CAGA,qCACE,UF1GN,2BEiGA,qBAKI,iCAHA,cAEA,gBADA,UAEA,CAGA,qCACE,UF1GN,4BEiGA,qBAKI,iCAHA,cAEA,gBADA,UAEA,CAGA,qCACE,UATN,kBAKI,iCAHA,cAEA,gBADA,UAEA,CAGA,kCACE,SE7KV,cAWE,4BADA,qBfTS,CeWT,8CAHA,afDS,CePT,cd6KI,ecvKJ,efmR4B,CevR5B,iCf2esC,CetetC,efuR4B,Ce3R5B,uBCMI,qEDRJ,UAgBA,CCJI,sCDdN,cCeQ,iBDMN,0BACE,6BACA,SEhBF,oBAEE,qBjBRO,CiBSP,oBjBsdoC,CiBhdlC,2CARF,cAGA,SjB0X0B,CevW5B,yCACE,afxBO,Ce0BP,UAHF,2BACE,afxBO,Ce0BP,UAQF,+CAEE,wBfxCO,Ce0CP,UAQF,mIACE,wCAMF,mCACE,kBACA,0BAGF,qCAOE,sBADA,aftEO,Ce4EX,uCAEE,cACA,WAUF,gBdoEI,kBc/DF,gBAFA,gBADA,mCADA,+BfoM4B,Ce7L9B,mBd4EM,kBcxEJ,gBAFA,iCADA,6BfgI4B,Ce1H9B,mBdqEM,kBcjEJ,gBAFA,kCADA,8Bf0H4B,Ce9G9B,wBAQE,6BAEA,4CAHA,afnHS,Ce6GT,cduDI,eclDJ,efmK4B,CerK5B,gBADA,kBADA,UAQA,CAEA,gFAGE,cAAa,CADb,eACA,CAYJ,iBRrII,oBNkKE,kBc5BJ,gCf6VsC,Ce1VtC,ef+E4B,CejF5B,oBRvIE,CQ6IJ,iBR7II,oBNkKE,kBcpBJ,+BfsVsC,CenVtC,efsE4B,CexE5B,kBR/IE,CQ6JJ,8EACE,YAQF,YACE,kBf2UsC,CexUxC,WACE,cACA,iBf4TsC,CepTxC,UACE,aACA,eAEA,iBADA,iBACA,CAEA,uCAGE,iBADA,iBACA,CASJ,YAEE,cACA,qBAFA,iBfmSsC,Ce9RxC,kBAGE,qBADA,gBf6RsC,Ce9RtC,iBAEA,CAGA,2FAEE,afzNO,Ce6NX,kBACE,gBAGF,mBAEE,mBADA,oBAGA,oBADA,cf+QsC,Ce3QtC,qCAIE,aAAY,CADZ,qBfyQoC,Ce1QpC,aADA,eAGA,CE7MF,gBAKE,cAJA,ahBuHA,iBgBrHA,iBjB2coC,CiB5cpC,UFwNqC,CElNvC,eAYE,oCV9CA,qBU6CA,WANA,ahB2HE,kBgB7HF,OAOA,ejBuO0B,CiBzO1B,iBAFA,eACA,qBANA,kBACA,SAEA,SVtCA,CUmDA,qEAEE,SAKF,8HAEE,cA9CF,0DAwDI,2QAOA,CACA,wDAhEJ,CA+DI,2BACA,CAhEJ,2DA0EI,CAtBF,oBFkLmC,CE/KjC,4CAmBA,uEA1EJ,+DAmFI,uEAnFJ,wCAoFI,4BApFJ,2EA+FI,8EADA,kCACA,6DAGF,uiBAyBE,CA5BA,oEA4BA,6FACE,2CAKF,uTAOA,aACE,uHAGF,kJAUF,yKAKE,wBACE,CADF,oBACE,iJAxIR,0CAEE,6KVpCA,oBUmDA,2GAOA,2IA5CA,+DAoDE,mBAIE,cADA,aACA,iBADA,iBACA,CADA,UACA,kBAMF,yDAHE,UAGF,CAJE,aACA,kBADA,OACA,iCADA,mCACA,CAFA,2BACA,SAIF,0EAEE,QAhEJ,2NAoFI,qUAWA,CAGF,wDACE,CADF,4BACE,2DAQF,CAxBE,iEAwBF,gGACE,0CAGF,8NASA,6EAGE,CAHF,kCAGE,iEACE,imBA0BJ,CA3BE,oEA2BF,6EAKE,0KFyFN,aACA,mNAqBI,aACA,2HASA,aAIF,yIAWA,oBAEE,yJAaF,yBAJE,oBAIF,qJGxUF,0CAIA,CACA,gLXGE,oBSFE,+GAIA,+IESF,+DAMA,cAIF,kBAeF,CAfE,+BAeF,qCAEE,wBASA,mBCzDA,sBjBIA,6CiBNA,kBAEA,CAFA,ajBMA,ekBNE,ClBMF,yBiBEE,aAGF,mBCXE,4BDeA,oBAKE,uEAKJ,oBAGE,uDAQF,oJAQE,cAEA,kCAFA,YAEA,CANA,iBAMA,0HAKI,OCnDJ,4BDQA,6BAGF,CCXE,oBDeA,CD4CF,aC3DA,CAmDM,qBAtCJ,cCbA,CDmDI,eDQN,CE3DE,gBDWF,sBAEE,CAbF,kBAeE,6HAaA,CA1BF,wBjBIA,iBkBNE,CDAF,qBA4BE,uCAQF,oIAIE,CAJF,SAIE,6BAIA,+CAEA,oIAKI,CALJ,UAKI,CAjDN,yDDyDA,wBC3DA,qBnBsEa,CmBnBP,UAtCJ,CAXF,sCAHuG,0CAcrG,6CAOE,6CAKJ,CAVE,UAUF,wIAWA,kNAUE,uGAKI,CALJ,UAKI,CAjDN,+DAFA,6CAEA,CAiDM,UCnDJ,CDEF,0CASA,0CCXE,iDDoBE,wBAKJ,sBALI,UAKJ,8IAWA,6CAGE,CAHF,UAGE,gKAOA,0CAKI,sCAnDN,sBAmDM,UAnDN,CCAE,yDDEF,wBjBIA,qBkBNE,CDEF,UAkBI,CCpBF,+EDoBE,6CAKJ,6CAEE,CAFF,UAGE,wIAQF,6CAGE,CAHF,UAGE,0JAOA,oDAKI,6CAnDN,CAmDM,UAnDN,CjBMA,gDiBNA,wBjBMA,sBiBNA,UAeE,CjBTF,gCiBOE,0CAEA,uCAKE,wBAKJ,sBALI,UAKJ,+HAWA,yMAUE,gFAKI,qBDQN,CCbE,aDaF,ChBrDA,yDiBNA,wBAEA,qBjBIA,CiBNA,aAeE,CjBTF,sCiBOE,0CAEA,6CAUF,6CAGE,CARE,aAQF,wIAQF,wBAGE,qBACA,CAJF,aAIE,0JAMA,0CAKI,aDQN,wBC3DA,qBAEA,CAiDM,UAjDN,CAME,sDjBFF,wBkBNE,qBDQA,CjBFF,UiBcI,CAZF,oCAOA,yCAKE,2CAOF,wBACA,qBACA,CAJF,UAIE,qIAWA,wBAIA,qBAEA,CAPA,UAOA,uJAKI,yCDcN,YCPA,wBjBpDA,sBiBoDA,UjBpDA,CiB6DA,mDAJE,wBACA,kBAGF,CAJE,UASF,CALA,kCAKA,iFAGE,wBAGF,sBAHE,UAGF,kIAIE,qBACA,mBAFA,UAEA,oJAEA,wCAKI,mCDzBN,qBCPA,CAgCM,UAhCN,CAKE,gDjBzDF,6CiByDE,CAJF,UAUE,CANA,gCAIF,wCAEE,uCAGF,wBAEE,qBACA,CAHF,UAGE,+HAGF,yMAOE,4HAKI,wBDzBN,qBlBKa,CmBoBP,UA/BN,uDAGE,yCAEA,6DAKA,6BAFF,aAKA,gKAMA,0OAOE,iIAKI,wBAhCN,qBACA,CA+BM,UA/BN,2DAIE,0CAIF,iEAEE,4BAGF,CAHE,aAGF,sKAMA,gPAOE,0CAKI,0CDzBN,CCyBM,aDzBN,4BCNA,wBjBrDA,qBiBmDkD,CAElD,UAIE,uDAIF,sGAKA,2CAEE,+JAIF,6CAGE,CAHF,UAGE,kLAIA,4DAKI,oBDzBN,CCyBM,aDzBN,yBCNA,wBjBrDA,qBiBwDE,CAJF,UAIE,iDAEA,0CAGF,uDAKA,6BAHE,aAGF,uJAMA,iOAOE,gEAKI,qBALJ,aAKI,4BAhCN,wBACA,qBjBrDA,CgB2DA,ahB3DA,uDiB0DE,yCAGF,6DAKA,0MAMA,6CAGE,CAHF,aAIE,kLAGA,yCAKI,yCDzBN,CCyBM,aDzBN,2BhB3DA,wBiBwDE,qBACA,CAJF,UAIE,qDAIF,yCAEE,2DAGF,4BAGE,CAHF,aAGE,6JAGF,wBAIE,qBACA,CALF,UAKE,+KAEA,yCAKI,oBDbN,oBAEA,CAHF,aAGE,0BAGE,wBACA,qBAGF,ChBhFA,UgBgFA,mDlBsFwC,uCkB/EtC,yDCKF,4BAEA,CDKF,aCLE,0JDoBA,wBAGA,qBlByT4B,CkB7T5B,UAaA,4KFtHI,uCKjBJ,CACE,kBAMA,oBAIJ,CALE,aAKF,yBAGE,wBLDI,qBAIA,CKJJ,ULII,iDACE,wCKCJ,uDLFE,4BACE,CADF,aACE,uJMUF,wBACA,qBA/BJ,CA8BI,UA9BJ,yKCgBA,wCAGA,WAEA,aACA,CAFA,eACA,CACA,oBACA,CACA,6BAGA,iDtBwJI,yBsBrJJ,uCACA,ahBdE,oBgBuBA,4BZmBA,oBYdA,iBACE,gBZaF,CYlBE,kBZkBF,CYnBA,2BAOE,mBZYF,CYdA,iBACE,gBACA,CANA,oBZkBF,YYnBA,wBACE,uBAIF,gBACE,uFADF,+CZcA,uCYlBE,qBAIF,4BACE,CACA,qBAQJ,aACE,YAEA,QACA,iBAFA,iBACA,CvBgsBgC,2BsB9tBhC,uCAEE,YACA,etB6NwB,CsB5NxB,mBAxBJ,sCACA,CAFA,OAEA,uCACA,iCA8CE,yCCYF,mCAEE,kBAEA,wBD1DF,gBACA,kCACA,CAeI,mCAjBJ,CAgBI,qBACA,CADA,WC2CF,oBD7CA,oBACE,qBAbJ,8BACA,aAuCE,gBA5BA,2BAEE,CAFF,sBAEE,gCACA,qBAYA,CC6CF,aACA,CAXA,wBASA,cACA,CD/BE,OCiCF,eD9DA,CCyDF,kBAEE,CARE,+BAMJ,CD7BE,kBCiCA,eACA,CDlCA,QACE,aAdA,qBACE,OADF,UACE,sBAGF,iBACE,yBACA,uBACA,MACA,CADA,UACA,yBA9BN,mBACA,wBACA,6BAiCE,CAjCF,UAiCE,kCACE,CADF,OACE,0BCsCF,uBACE,MAQJ,CARI,UAQJ,sIAIE,SACA,CADA,OACA,yBCxGF,YACA,qBACA,CADA,aAFA,QAGA,gCD4HA,2DrBpHA,CqBiHA,mCAGA,CAJA,YACA,CAFA,UACA,CALA,oBAEA,oBACA,qBrB9GA,sCqBqIE,aH/IA,2BGmJF,6BAGE,CAHF,6BAGE,mCAgBJ,oCAKA,uBAEE,CAfE,cAQJ,CATI,iCACA,CAFA,UACA,CH7JA,oBG0JF,yCAmBA,yCACA,aAEA,mCAKF,gBACE,0BAEA,SE3LF,qBAEE,CAFF,aF0LE,UACA,CADA,KExLA,kCAKE,WAHF,oBAEA,CvBGA,auBHA,wCACE,CvBEF,kCuBME,oCAGE,CAHF,mIASJ,wCAGE,gDAEA,gBAOA,2IAMA,yClBVE,4BkBeF,CALA,SlBXE,8BkBgBF,gBAkBF,4BACE,SACA,CApBA,WlBFE,aACA,CkBCF,6BlBFE,CkBEF,sBlBDE,qCkBmBJ,CAlBE,UAoBA,2CAEA,wGAOE,wBAIJ,CALE,+BAKF,iDACE,4BAIF,CALA,iCAKA,oDAsBA,aACE,CAvBF,cAEE,iBAoBF,CArBE,eACA,CAFF,oBACE,CAsBA,kBACA,qBAGA,cAFA,mCAEA,gCAKA,oBAHE,iBAGF,gEAMA,cAJE,iBAIF,yNAKA,mClBxGE,0CACA,CkB2HF,+GAIE,gJAEE,CAFF,yBAEE,gFCnJJ,2BACA,CAHA,wBAGA,wBAEA,uJAQE,aAEA,qhBAGE,eAKJ,sHAOA,4BAPA,4BAOA,kGAME,wBnBIA,0BACA,0DmBEA,gNAIA,wDnBPA,cmBWA,oBnBVA,2BmBUA,CnBXA,iBACA,CmBUA,gtBA2BF,gBAKA,0IAIE,SACE,oDAIJ,sVASF,4BAQA,CATA,yBASA,gEzB+DM,2ByBxDJ,CAJA,wBAIA,CA0BF,klBAYA,6BnBhJI,yBmBgJJ,0CAEE,gEAGF,icAyBA,kgBnB9JI,+BACA,8PmBwKJ,oJnB1JI,gCoBxCJ,8PAsBE,sDAHA,oBAGA,+DAOA,4lBAuCA,4BAEA,CAJF,yBAIE,gXpB7DE,2BoBuGA,CALF,wBAKE,gDACE,qBADF,kBACE,yBADF,SACE,wBAKF,4DPzHA,cO8HA,CAJE,OAIF,UALA,iBACE,CP1HF,WpBoP0B,U2BtH1B,4DACE,8CADF,UACE,0DAKF,0CPpIA,wEOuIA,8FAWF,wBAEE,qBAIA,CANF,UAME,4GACE,aAKF,0HAWJ,wBACE,uBAGE,eACE,CADF,kBACE,kBACA,8BASA,qBACA,yBACA,CAHA,mBAGA,0DAHA,UACA,CAHF,aACE,aADF,aAHE,iBAGF,YACE,UX5KA,CWgLA,4BXhLA,2YW2KF,mFAcE,wBACA,CAFF,oBAEE,kFAKF,0KAiBF,sFAMA,mCACA,4FACA,mCAGA,4CAEA,iBACE,yEASA,2LAkBF,mFAOE,mCAKA,oCACA,6CAOF,mBACA,CAHA,a3B0NsC,C2BzNtC,kBACA,CADA,aAEA,4C1B1GI,wB0B4HJ,oBACA,CAXA,uB1BlHI,C0B+GJ,yB3B+G4B,C2B/G5B,uBAcA,yIAUA,kIAME,qKAOA,CAnCF,sBAmCE,uCAIA,2CAKF,0FAKF,qBAEE,qCAIA,6BACA,oFAMA,mCACA,gBAwCE,wCAzBA,iOAyBA,+CA5BA,aACA,CpB/VA,oBoBsVF,CAOE,8BACA,CARF,iCAGE,CAKA,gBALA,sCAIA,CAEA,qBAEA,CAXF,UAoCE,sBACA,0GACA,kGAOF,qBAEE,CALA,WAGF,qBAEE,yBPjZA,wBbYA,CoBsYA,apBtYA,4BSFE,0HW8YF,CX9YE,4FW8YF,mBXzYI,kBWyYJ,+BX1YE,CWiYJ,sCXhYM,CADF,iBACE,cW2YJ,qBAKF,gDP/ZE,iCO+ZF,CXhZM,iBW2YJ,WpB9YA,CoBmZF,mBAKE,QACA,UpBzZA,CoByZA,gB3ByLgC,SOllBhC,6CoB8ZF,oBAEE,2CpBhaA,gGSFE,wJAIA,6CW6aF,qBACA,yBAEA,sBALF,gBX1aM,iCWqaJ,CXraI,OIfJ,eOybF,CX1aM,SW+aJ,C3B1bO,4C2BsbP,aACA,CAFF,eACE,CANA,sBPpbA,CO0aF,kBX3ZM,QW2ZN,KXhaI,ChBNK,yBOQP,wBSFE,qDW0bJ,SAOE,gBpB/bA,CoBybA,aACA,4BAEA,CAJF,SX1bI,2IWocF,SACA,2CXjcE,yDACE,uCWkcJ,yDAMA,gCAEA,yDAGA,iCACA,SAIF,oCAqBI,wB3BhfK,e2BmfP,CAnBF,yBACE,2BACA,CANA,WpBtdA,mBoB0dF,CAEE,8GASA,uGAIA,CAnBA,UAuBA,uCACE,oCAIA,wB3BxfK,e2B6fX,qEXzfM,8CAIA,wBWqfN,6CXzfM,iBAIA,gBAJA,uBWyfN,iCCpeE,gBA9BA,wBAEA,4BACA,CAJA,WACA,CAMF,2GAUE,uGAcA,CAhCF,UAiCI,uCACA,gCACA,oBrBbA,yDLXF,yD0BiCE,wBACE,yBACA,mBACA,CANA,iBAGF,gBAHE,aADA,UAOA,0BAiCF,eACA,CA3BA,wBACA,4BAGF,CAPA,YAEE,iBACA,CAHF,kBAEE,CAFF,aAOA,0GAcA,uGAQE,CA7BF,UA8BE,uCAUF,yBAEE,mBACA,gBAKF,0DAGE,0BAeA,4BCxGF,yBAEA,mBACA,CDkGE,iBAEF,eACE,CAJF,aAVE,UCvFF,CAMA,4DALA,wBACA,mBAIA,8FAEE,wBACA,uDAsBF,cACA,0C7BkqBkC,wBCniB9B,0C4B1HJ,c3B1CA,2D2BsDF,gEAIE,sGAQA,uCAWF,+D7B2lBoC,e6B5kBpC,OACE,YACA,eAGA,CAKA,gBADF,gBAJE,cAKA,W5B8DI,c4B5DJ,kBACA,iCACA,wCtBxGE,aLFF,8C2B8GE,+BAMJ,qBAGE,4BAEA,6BACA,8BAGF,+BAEE,CAVA,kBAUA,qDAYM,sNAFJ,qBAoBI,kCACA,ClBlHJ,akBkHI,0BAGE,wBAEA,2BAHF,eAGE,sBACE,eAGF,+BACE,uDAMJ,sLACE,kBAcF,oCACE,sBAGF,sBlBxIJ,mBkBwII,iBlBxIJ,6IkB+II,mBANE,YAGI,CAAJ,cAGF,8BA5DE,eACA,oBlBjGN,CkBkHI,iBAEA,qBAHA,iBACA,CArBJ,uBAoBI,ClBjHJ,oBkB6FA,CAuBI,kBACE,yCAEA,oBACE,aAGF,kCACE,CACA,eAKJ,CANI,eACA,CADA,cAMJ,sMAeA,kBACE,CAfA,eAcF,YACE,iBAOA,4BAGF,6BACE,qBlBhJN,CkBwII,iBACE,cAGA,CAJF,qBlBxIJ,6CkBkFI,4JACE,mBACA,elBjGN,4CkBiHI,gMAWI,cACA,CAFF,eAEE,0BAKJ,kLACE,wCAeA,kBAGF,CAJA,mBAIA,iMAtDA,gJACE,mClBhGN,yCkBiHI,gMAWI,cACA,CAFF,eAEE,0BAKJ,0NAgBE,kBAGF,CAJA,mBAIA,iMAtDA,mLAEE,aAmBF,4BACE,gMAaF,wJAeA,gEAIA,kBACE,wCAMF,kBACE,CADF,mBACE,iMAwBJ,gB3BjOJ,0F2BoOM,sBAGF,mDAKF,0OAUA,eADA,eACA,2BAGF,kBACE,8EAIA,mB7BydgC,6C6Bvd9B,iB3BhQJ,yC2BmQM,mB3BnQN,mBFytBkC,C6B9clC,gM3B3QA,sE2BwRM,oCAGF,sCACE,mCAIJ,2PAaF,eAHE,eAGF,4BACE,6DAGF,iBACE,sC3BlTF,mB2BmTE,mB3BnTF,+K4BJA,mDACA,gBvBKE,iCuBAA,sBAGF,gBACE,gCAGA,avBEA,gGACA,oBuBEA,qCvBWA,yGuBHF,kEAMF,oBAGE,2K5BnCA,oB4B0DE,+BAYJ,2BACE,CATE,oBASF,oCAGA,wQvBpEE,4BuB4FJ,oBACE,CAEA,mGAMA,oBAIF,CAGE,6FvB5GE,UuBmHJ,4DAOA,mFvBhHI,0BuBqHJ,4CvBxGI,gMuBwHA,UACA,8BAME,+B9BwqB8B,C8B1qB9B,wB9B0qB8B,C8B1pBlC,kCACE,8QAuBM,mDAGE,CAEF,0GAGE,OvBtKR,oBACA,CuB4KM,wBvB5KN,qBuB4KM,wDAHF,kCvB1KJ,auBsKQ,iBAOF,UAGE,cAHF,cAGE,CAEF,yFAGE,yCAcV,CACE,0CnBxLA,CmBsKM,kBnBtKN,8BmB6LA,4CAKE,CANF,6CACA,CADA,qBAME,+DAcJ,wBACE,aAEA,+BACE,iCvBvOF,gBACA,mBuB0OA,sCvB1OA,eAfA,kBACA,oBuB4PA,0CvBtQA,cwBhBF,gCAEA,yCAGA,CANA,eACA,CDwRI,sBCnRJ,0BxBWE,uDwBJA,cAEA,gCAEE,sCAYJ,CAdE,sBAcF,gFAIA,mBAKE,eCvCJ,CDmCI,qBCnCJ,sCDsCE,oBACE,CALF,qBxBhBE,mByBRF,gCAEA,CAJA,QACA,uBACA,CAJF,iBACE,CACA,QADA,KAKA,0CAGA,aAEA,oCAEE,yCAEA,2CAKA,4BAQA,4CzBcA,CyBpBA,6CzBoBA,oCACA,yByBTA,0CzBNA,CACA,kBADA,kBACA,kByBUF,SACE,ehCvCO,CgCyCP,iBAHF,iBAGE,oBACA,kBAGF,yBACE,YACA,+BAGA,2BACA,gBCvDF,yBACE,ahCgLE,CgCjLJ,ahCiLI,oCgCzKA,4B1BqCF,C0BrCE,yB1BqCF,kGAdA,8HNkJE,4BgCzKA,qC1BqCF,2BACA,C0BtCE,wB1BsCF,oGAdA,wB2B9BJ,uGAME,2BAEA,sB3BKE,oBSFE,oIAIA,kDACE,WdLN,iCgCGI,kBAKJ,eACE,qCAOF,eAOF,CAEE,2B3BvBE,C2BqBJ,4B3BrBI,sC4BhBF,wBjCcA,yDiCTI,eAGF,gCATF,wBACA,qBjCcA,CiCNE,YAEE,eACA,CDqCJ,eCjDA,CAYI,kBDqCJ,CCrCI,mBjCGJ,qDiCTI,0CAKA,aACA,aAHF,8BAGE,gDAXJ,yBnC0Ea,CmCtET,oBjCUJ,CiCTI,wBAGF,0BAGE,oBDqCJ,CCxCE,YAEE,CACA,gBADA,cDsCJ,YC3CI,qBAGF,yBAEE,CALA,cALJ,ajCcA,CiCVI,gBACA,CjCSJ,gBiCVI,CjCUJ,qBiCfA,iBAWI,kBAXJ,wBACA,qBjCcA,CiCHI,kCAZJ,CAYI,SjCGJ,kBiCVI,0CAIF,CjCMF,SiCVI,CjCUJ,SiCNE,mCAGE,gCAZJ,CAYI,8BAHF,aATF,kCjCeA,iCiCTI,CjCSJ,8BiCTI,8BAGF,wBAGE,sBAHF,oBAGE,gCjCGJ,qBiCVI,qBACA,CALJ,cjCcA,YiCdA,mBAKI,2BAGF,iBAGE,iBAHF,qBAGE,kDjCGJ,+BiCVI,CAJJ,4BAII,iDAOA,iCAHF,6BAGE,2BCXJ,iBAEA,gBpCKS,CoCRT,oB7BiBE,kD6BNJ,+BAEE,CAdF,4BAcE,iDCPA,gCACA,CAHA,6BAGA,QAwBA,oBACE,CAzBF,oB9BUE,C8BLJ,aAEE,gBAIF,CACE,c9BFE,kB8BLJ,CAOE,iBAQF,CAKI,6HC9BF,CD0BA,sBAGA,CAJF,kBCzBE,uCAGE,sBAGF,8BACE,oBDsCF,cC/CA,YlBKE,8BkBHF,SAEA,aAIA,oBAHE,iBAGF,CAJA,kBAIA,gBDuCA,wBjB1CE,CiB0CF,UjB1CE,6CkBDF,wBACE,CADF,UACE,6CD0CF,yCC7CA,CD6CA,SC7CA,kBAEA,wBACE,CAHF,UAGE,iDALF,wBlBKE,CiB0CF,UjB1CE,iDkBAA,0CAGF,CAJA,SAIA,gBDuCA,wBjB1CE,CkBIA,UlBJA,6CkBDF,wBACE,CADF,UACE,6CD0CF,yCC7CA,CD6CA,SC7CA,aAEA,wBACE,CAHF,UAGE,uCD0CF,wBC/CA,CASE,UDuCmH,CjB3CnH,sCkBDF,0CAIA,CANA,SAMA,gBACE,wBCRF,CDOA,aCPA,6CAEE,wBAFF,CACE,aADF,6CACE,yCAKJ,CALI,SAKJ,eAEE,wBAEA,CAHA,UAGA,2ChCME,wBgCCJ,CALE,UAKF,2CAGE,yCAGA,CAHA,SAGA,cACA,wBACA,CAFA,UAEA,yCvBPI,yEuBWN,uCnBYE,CmBZF,SnBYE,iKmBVA,wCAIA,CnBMA,SmBNA,CACE,qHAGE,6BAJJ,kBAKM,eC1CR,CD0CQ,eALN,eCrCF,QCIA,4BAEE,qBAGA,CDJF,kBCDA,CDFE,sBAGF,CAJE,iBCQA,gBACA,alCQE,akCEJ,mCAEE,kBACA,2BAKE,aACA,CvCbF,sBuCYE,CvCZF,yCuCaE,gBACA,wBAGF,qBACE,CAJA,aAIA,mBACA,wBASJ,4BAEE,aACA,kBAGA,wBACA,sBAJA,aAIA,qBAEA,wBlC1BE,8BACA,6BkC6BF,wBlChBE,qBACA,CkCeF,alCfE,2CkCmBF,yCAEE,aACA,wBzCzDO,CyC8DT,qBALE,aAKF,gBAEE,wBACA,yBACA,aAGF,gBACE,wBAEA,sBAHF,aAGE,mBACE,wBACA,4BAcF,aACE,eAGE,6ClC1BJ,CkC0BI,alC1BJ,kBAZA,mDkC2CI,2BlC3CJ,wBAYA,qBkCoCI,ClChDJ,akCgDI,mEAIA,+CACE,qBACA,CAFF,aAEE,gBAEA,8DACE,yC9B1DR,6B8BmCA,2BACE,kCAGE,6BlC1BJ,2BAZA,yDAYA,CkC+BI,gBlC3CJ,YkC2CI,clC/BJ,yBAZA,akC2CI,eAaE,ClC5CN,ckCyCM,wBACA,CAFF,WAJA,4CAIA,mBAEE,yBAEA,CAJF,kBAIE,qDACE,gBACA,uB9B3DR,qK8B4CI,kDlC3CJ,yDkCgDI,kDACE,uCAGF,6CACE,eACA,SAEA,qEAtBN,qBAuBQ,kCACA,C9B3DR,e8BmCA,CzC6I0B,cyC7I1B,yBAII,wGAKA,wBlC3CJ,CkC2CI,mClC3CJ,yCAYA,wBkCoCI,ClCpCJ,akCoCI,kBAIA,uDAEE,CALA,aAGF,wBAJA,iBAME,8BAEA,8DACE,6BAvBR,iCACE,CzC4IwB,kCyC5IxB,qDlCvBF,qBAZA,CkCsCI,alC1BJ,oBAZA,yBkC2CI,wBlC3CJ,sBkC2CI,oBlC3CJ,mCkCgDI,4DAIA,qBAHE,eAGF,0CACE,qDAGA,0DAEE,oDAiBV,2BACE,ClCvHA,8BkCyHA,gDACE,sEvC5HJ,oBwCXE,oBxCWF,iEwCPM,qBACA,CxCMN,gBwCNM,yBAGF,oGAGE,gCAZJ,0BACA,uDxCWF,6GwCHI,yEAGE,mBDwIkE,CCzIlE,oBAZN,oExCaA,4GwCPM,wDAIF,iCACE,yBACA,uDAVJ,2BxCWF,CwCZE,8BxCYF,4HwCHI,4GAVJ,qBAEE,CAFF,gBAEE,0BxCWF,oIwCNM,0BAGF,uDAGE,2BAbN,CAYM,8BAZN,mDxCaA,4FwCPM,CxCON,oBwCPM,oEAKA,qBACA,CAFF,gBAEE,2BACA,0BAbN,kBAEE,wDxCWF,iHwCHI,2BACE,CADF,8BACE,mDAXN,yExCaA,4GwCNM,qBAGF,CAHE,gBAGF,mCACE,oCAEA,oBChBR,+CAGE,qBAEA,0BAEA,wBAIE,CALF,aAKE,6GAME,wBAYJ,CzCbA,ayCcA,wDAQA,wBCnCA,qBACA,CDiCF,UCjCE,4BAGA,wBACA,CADA,aACA,iHrCUE,wBqCJF,CrCIE,aqCJF,0DASE,wBAIF,qBAKF,CAVE,UAUF,0BAEE,wBACA,CADA,aAEA,6GrCTE,yBqCYF,arCZE,wDqCgBJ,wBCrCA,qBAEE,CtCoBE,UsCpBF,uBAGE,wBAMJ,CANI,aAMJ,uGAkBA,wBAEE,CATA,aASA,qDAMA,wB7B3BI,qB6B4BF,CADF,U7B3BI,6KAIA,wB6BuBJ,C7BvBI,a6BuBJ,wDAKE,6CAIF,CALA,UAKA,yBACE,iJASA,yBADF,aACE,uDAIF,6CAEE,CAFF,UAEE,wBAGF,wBAKF,CALE,aAKF,yGAOI,wBACA,CAFF,aAEE,sDAMF,8CAJE,UAKA,uBACA,wBAGA,CAHA,aAGA,uGAIA,wBACE,CADF,aACE,CAMN,oDAGE,wBAIA,qBACA,CALA,UAKA,QAEA,UtClGE,CsCgGF,WACA,iCACA,eAQF,WtC1GI,wBsC0GJ,cACE,UACA,qBAEA,C7CgjBkC,sF6CziBlC,yBAKF,4BAEE,UAFF,SAEE,CACA,oCACA,QtCpHE,4BADA,oCACA,gCsCyHA,CAQF,oBACA,CATE,yCAOJ,CAZE,gBACA,kBtCtHE,CsCsHF,gBAWF,SAEE,yBAMA,oBAGA,gBACA,SAIF,aACE,aACA,uBACA,YACA,eACA,kBACA,CtCxIE,4BADA,oCACA,wCsCoJJ,0CAEE,2CAGA,CtC1JE,csCuIF,YACA,CACA,qBAiBA,alCvIE,2BkC6IF,eACE,oBACA,iBAGF,gBACE,QAEA,aACE,YAHF,MAEA,CACE,SAIJ,CAJI,gBAHF,qBAEA,UACE,CADF,YAKF,eACE,YAEA,qBAFA,4BAEA,CACE,0BlC9JF,mCkCkLF,4BC5OA,CDwNI,yCACA,kClC/JF,iEmC1DF,uCAGA,0BCJA,gMAEA,YACA,6BAEA,yCAEA,6BAEA,+FAIA,aACA,sCDJA,eACA,wBAIA,kBACE,CAHF,YAEA,CACE,4BAEA,+BAYJ,WATI,aACE,0BAEA,2BACA,mBAKN,gDACE,qBAEA,kGAGE,sEAEE,YACA,gBAQJ,iFAGE,oBAEA,CARJ,mCAQI,UAPF,mBAEA,CAHF,kBACE,UAOE,iBAEE,qBACA,CADA,aAFF,uCAEE,CAFF,YAGE,sBAKN,wDACE,sBAEA,gCAGE,mFAEE,CAPJ,aAEA,0CAKI,sB9CpDK,6B8C0DX,CALM,YAKN,cACE,eAEA,CAHF,eAGE,wEAKE,mBAGE,2CAuBJ,CAxBI,4CACA,CAHF,4BAEE,CALF,YACA,eAEA,wCA0BF,iBACA,aACA,0BE9GA,2BAEA,CF6GA,iBvC9FE,uByCfF,yBAEA,cDJA,oBCKA,eDLA,sLAEA,+BAEA,2BAEA,2BACA,mBACA,WACA,gBACA,yBACA,oBACA,eACA,2BACA,U9CqKI,gB+CxKJ,WA+BE,qBA7BF,sMAcI,CAaF,iBAEA,CAfE,iBACA,gBAEA,CAOJ,qBAEA,CACE,gBAVE,gBAjBJ,SA6BE,UA/BF,iBACA,CAkBI,eACA,iBAKN,0DACE,CAEA,wDACE,CA5BF,YA8BE,0CAEE,cACA,aAFA,iBACA,CACA,mCAGF,2ChD2L0B,CgD3L1B,4BAEE,oDAMN,iFAGE,wFAME,sBAHA,0BAGA,CAJA,KAIA,uEAEE,sEAIF,mHAQJ,wBALM,gCAKN,CANM,OAMN,0DAGE,uFAGE,2FAGE,wBAGF,CAJE,0BACA,CADA,QAIF,yIAQF,aALI,mBAKJ,kFAIE,sBAEA,CALA,gCAGA,CAJF,MAME,gBAMJ,0CACE,CALE,UAIJ,CANI,eAEA,sBAIJ,iBACE,UA6CA,qBzCnIE,4ByCmIF,qBzCnIE,gCACA,oByCqIF,CA7CE,wLAQE,CAiCJ,iBACA,CAlCI,iBAGF,iBAZF,OAeI,qBAsBN,C/C4BM,e+CvBJ,CA9BE,gBAZF,eACE,CAWA,qDhD6G0B,CgD3GxB,oCACA,CAfJ,MAsCA,kBACA,CAFF,iBACE,CACA,mB/C0BI,C+CjEJ,YA8CA,0BA9CA,+BCrGA,CDmJA,gBAMA,YACA,eC3JF,CD0JE,UCzJA,8CAQA,wBAEA,mBCvBA,CDqBA,WADF,aACE,CAJA,iBCjBA,oDD2BF,mBACE,kEAKA,yGjClBI,kJiCsBN,sBjCjBQ,0BiCiBR,CAVA,UAUA,wDAMA,uFAKA,YAHE,wBAGF,eAHE,WAGF,oFAWE,kCAEE,CAXF,gCASA,CATA,MAWE,kFAIF,2HAGE,gBAIF,8FAGE,sFAHF,mCjCpDM,CiCoDN,gCjCpDM,oFiCyEN,wBACA,CAJA,0BAGA,CAJA,OAKA,wGATF,+B/CtEE,C+CsEF,WjClEM,uBiCkEN,mBjCtEM,iBAIA,iBdJJ,4I+CiGF,WACE,eAKF,CAXI,wBAKJ,YAMA,kFAaE,iCAEF,CALE,gCAGA,CAHA,OAKF,gFAIE,uBADF,gCACE,CAHA,SAGA,iBAYA,wBAEA,gCAEA,yCAIA,0CAGA,CAbA,cACA,CAFF,eACE,CAVA,oBAuBA,uBACE,YACA,eAGA,cAFA,oBAEA,CjDw5BiC,UiDv5BjC,iBACA,yBAEA,mCAGA,gBAFA,iBAEA,kCACA,UACA,WjC/JE,CiC8JF,ajC9JE,gBAKE,kCiC8JN,2BAUF,CjCzKM,wBiC6IJ,mBjCjJI,iBAIA,CiCyKN,4CAGE,qCAGA,uEE/LF,CnCgBM,UmChBN,uCACE,qLAMA,kCAEA,qGAIA,8FAGF,SACE,CAEA,sBAOF,gBATE,2BASF,mJAEI,yGASF,SACA,0BAEA,CAHA,SAGA,uCACA,qFAIA,+DASA,kBACE,CAEE,eC3DN,UDwDE,SAGI,WAHJ,aACE,sBAEE,CC3DN,WD2DM,UARJ,iBACA,CAOI,kBAPJ,KAIA,CCxDF,4BACA,CD0DM,UAHJ,SCvDF,uCACA,8CACA,qIAEA,WCDI,qBDCJ,oBCDI,wBnDUF,8FmDVE,kCnDUF,CmDLI,oBANJ,CACE,YADF,UnDWA,6OmDLI,6BALF,iNnDUF,sBmDLI,qBALF,wBAKE,OnDKJ,iDmDVE,cnDUF,mBmDLI,kBnDKJ,oDmDLI,CnDKJ,sBmDVE,oCnDUF,CmDLI,iCALF,CnDUF,kBmDLI,CnDKJ,emDLI,cANJ,UACE,gBnDUF,CmDVE,iBnDUF,0DmDLI,UnDKJ,uCmDLI,uCCEJ,+BAGF,4BCVA,YACA,WADA,SACA,oBADA,gBACA,CDUE,4BCVF,iBACA,CAFA,UAEA,qEACA,oDACA,0DAEA,kBAIA,qDAII,+CALJ,kBACA,mBADA,oCACA,CAHA,gCACA,wBADA,UAOI,qCADF,CACE,YADF,2CACE,8DADF,uBACE,sEADF,mBACE,qCAKF,+BAgBA,mDAIF,4CACE,CATA,6BAIA,mBATF,oBACE,YAGF,CAKE,UALF,sBACE,CAJA,UAaA,kBACA,6DAIA,6DACA,wBAGF,kBACE,gCACA,uDAIA,+BAGF,eACE,+BAGF,oBACE,oCAIA,kDLvEE,aAEA,kCMOE,4lC7CiDF,kC6CjDE,mW7CiDF,yD6CjDE,kVAUN,iBAEI,0YCrBJ,uCAOE,6BALA,wCAUA,2EAME,+BANF,0CAqBI,CAfF,cAEA,uCAaE,aADF,8BACE,2CADF,eACE,6BADF,YACE,yBCzBF,iBACA,sBADA,aACA,+BACA,oDACA,+DAEA,iCACA,yCACA,2CACA,+CACA,6BACA,oCACA,oCACA,4CAEA,kEACA,qDACA,6CACA,8DACA,0EAEA,+CACA,4CACA,kEACA,oCACA,8DAEA,8DACA,gDACA,qCACA,4DACA,+DACA,2DAEA,4CACA,8CACA,qDACA,wDACA,iCACA,0D/CYA,8B+ClDA,oCACA,oCACA,8DACA,8DAEA,gDACA,6BACA,+DACA,qDACA,gBACA,uCACA,2CACA,gDAEA,iEACA,mDACA,kCACA,0BADA,4BACA,0BACA,WADA,aACA,4IAIA,qCADA,uBACA,2CACA,wDACA,iDAEA,8CACA,uDACA,6CACA,6EACA,mDACA,gEAEA,oDACA,iDACA,wDACA,uCACA,+DACA,oC/CYA,wD+ClDA,yBACA,iCACA,gEACA,+DAEA,oDACA,gDACA,iDACA,uBACA,oDACA,6BACA,wDACA,oDAEA,qDACA,6DACA,2DACA,uDACA,8DAEA,6EACA,+CACA,mDACA,iDACA,kEAEA,gDACA,0DACA,gEACA,uCACA,kEACA,sEAEA,sCACA,yDACA,0CACA,kDACA,6DACA,8DAtCA,6DACA,uCACA,kEACA,uDAEA,mDACA,wBACA,sDACA,uDACA,6BACA,2DACA,uBACA,iCAEA,kFACA,+DACA,qCACA,8EACA,8EAEA,iDACA,kDACA,sDACA,oDACA,mEAEA,gDACA,0DACA,gEACA,uCACA,kEACA,sEAEA,sCACA,yDACA,0CACA,kDACA,6DACA,8D/CYA,gC+ClDA,6BACA,uCACA,kEACA,uDAEA,mDACA,wBACA,oFACA,yBACA,6BACA,2DACA,uBACA,0DAEA,yDACA,+DACA,+DACA,oDACA,8EAEA,iDACA,kDACA,sDACA,oDACA,mEAEA,gDACA,0DACA,gEACA,uCACA,kEACA,sEAEA,sCACA,yDACA,0CACA,kDACA,6DACA,8DC1CA,gCACA,6BACA,uChDoDA,4BgDtDA,sCACA,uBACA,gChDoDA,qBgDtDA,sDACA,4BACA,wDAFA,sDACA,yBACA,kChDoDA,uBgDtDA,0DACA,8BACA,2BCLF,wUCCA,yPAKF,sBAEE,oCAMF,yBAEE,uCAOA,wDADF,0BAEI,uDCrBF,eACA,uBAEA,iBACA,qBAEA,sCAEA,mBAUA,0CAEE,uBAEA,2BACA,oCC3BJ,2DACA,4DACA,oEACA,kECCI,4QAIJ,yBACA,kCAIA,uDACA,0BAEA,8BACA,2BCTQ,qCAGE,0BAIA,oCAIA,2BAEF,+BAEE,qBAfF,yBAGE,qDAIA,oBAEF,6BAEE,uBAIA,2BAfF,sDAGE,wBAEF,4BAEE,cAEF,oBAEE,cAEF,qBAEE,iCAfF,yBAGE,mCAIA,sCAEF,CAEE,mCAEF,0BAEE,eAfF,qBACA,gBAEE,qCAIA,8CAIA,mCAEF,iBAEE,qBAfF,oCAGE,2BAEF,eAEE,oBAEF,iBAEE,qCAIA,uCAfF,iCAGE,0BAEF,CAEE,oDAIA,2BAIA,qDAfF,CACA,0BAEE,gBAEF,uBAEE,2CAIA,2CAIA,oBAfF,4BACA,mBAEE,2BAEF,iBAEE,wBAEF,kBAEE,iCAIA,sCAfF,KAGE,0BAFF,MAEE,CAHF,eACA,QAEE,YAQA,CARA,cAIA,QAIA,2DAIA,YAfF,uCACA,MAEE,wBAQA,kBAEF,CAEE,SARA,WAEF,WAEE,iBAJA,SAEF,CANE,iBAIA,CAMF,kBAEE,CARA,SAQA,oDARA,UAFF,WAEE,kBAJA,gBAIA,kBAIA,CARA,UAQA,kEAYF,0DAGE,6DAIA,cAEF,yBAEE,0BAIA,iCAfF,+CAGE,6BAEF,2BAEE,2BAIA,mCAEF,qBAEE,8BAfF,iCAGE,kCAEF,aAEE,yBAEF,aAEE,0BAEF,8BAEE,+BAfF,wBACA,CAEE,kCAEF,aAEE,qCAEF,yBAEE,aAEF,uBAEE,6BAfF,wCAGE,0CAIA,2CAIA,yCAIA,4BAMN,uCACA,aAEE,4BAEF,aAEE,6BAEF,aAEE,2BAEF,2BAEE,sCtDTF,asDlDI,2BACA,aAEE,4BAEF,aAEE,0BAEF,6BAEE,aAEF,2BAEE,aAfF,8BACA,0CAEE,aAEF,4BAEE,2BAEF,CAEE,qCAEF,aAEE,4BAfF,wCACA,aAEE,0BAEF,yBAEE,oCAIA,sCAEF,aAEE,0BAfF,qCACA,8BAEE,aAEF,4BAEE,aAEF,8BAEE,4CAIA,0CAfF,MACA,uBAEE,wCAIA,0CAEF,aAEE,8BAEF,aAEE,4BAfF,yCACA,0BAEE,aAEF,4BAEE,aAEF,6BAEE,wCAIA,8BAfF,yCAGE,2CAIA,4CAIA,0CAIA,4BAfF,uCACA,aAEE,4BAEF,aAEE,0CAEF,2BAEE,+BAIA,2CAfF,6CAGE,8CAIA,4CAIA,8BAEF,eAEE,2BAfF,4CAGE,6CAIA,2CAIA,6BAEF,yCAEE,eAfF,4BACA,eAEE,6BAEF,0CAEE,OAEF,wBAEE,2CAIA,6CAfF,eACA,+BAEE,eAEF,6BAEE,6BAEF,eAEE,0BAEF,eAEE,4BAQF,4CACA,eAEE,2BAEF,8BAEE,mBAEF,yBAEE,8CAIA,+CAfF,mBACA,0BAEE,yBAEF,0BAEE,yCAIA,2CAEF,mBAEE,yBAfF,0CACA,SAEE,uBAEF,8CAEE,mBAEF,6BAEE,mBAEF,8BAEE,mBAfF,4BACA,+BAEE,mBAEF,0BAEE,mBAEF,4BAEE,gDAIA,8CAfF,SACA,qBAEE,4CAIA,8CAEF,mBAEE,4BAEF,mBAEE,0BAMN,gCACA,mBAEE,2BAEF,mBAEE,6BAEF,iDAEE,mBAEF,4BAEE,StDTF,sBsDlDI,2CACA,mBAEE,2BAIA,+CAIA,6CAIA,4BAfF,0CAGE,4CAIA,6CAEF,CAEE,0CAEF,SAEE,2CAfF,4BACA,mBAEE,8BAEF,CAEE,iDAIA,gDAIA,gCAfF,8CAGE,gDAIA,iDAIA,mBAEF,4BAEE,+BAfF,mBACA,0BAEE,mBAEF,4BAEE,gDAIA,8CAIA,iCAfF,mBACA,4BAEE,mBAEF,8BAEE,mBAEF,+BAEE,mBAEF,6BAEE,SAfF,yCACA,0BAEE,CAEF,kBAEE,4BAEF,mBAEE,6BAEF,mBAEE,2BAfF,kCACA,qBAEE,4BAEF,qBAEE,8BAEF,qBAEE,+BAIA,kDAfF,iCAGE,gDAIA,kDAIA,qBAEF,8BAEE,qBAfF,4BACA,gCAEE,qBAEF,0BAEE,qBAEF,4BAEE,qBAEF,6BAEE,qBAfF,2BACA,UAEE,6CAIA,iDAIA,+BAEF,oBAEE,+BAfF,kDAGE,gCAEF,qBAEE,0BAEF,qBAEE,4BAEF,qBAEE,6BAQF,gDAGE,iCAEF,yBAEE,yBAEF,yBAEE,2BAEF,yBAEE,4BAfF,mDAGE,0BAEF,0BAEE,yCAIA,2CAEF,mBAEE,yBAfF,0CACA,SAEE,uBAEF,8CAEE,mBAEF,6BAEE,mBAEF,8BAEE,mBAfF,4BACA,+BAEE,mBAEF,0BAEE,mBAEF,4BAEE,gDAIA,8CAfF,SACA,qBAEE,4CAIA,8CAEF,mBAEE,4BAEF,mBAEE,0BAMN,gCACA,mBAEE,2BAEF,mBAEE,6BAEF,iDAEE,mBAEF,4BAEE,StDTF,sBsDlDI,2CACA,mBAEE,2BAIA,+CAIA,6CAIA,4BAfF,0CAGE,4CAIA,6CAEF,CAEE,0CAEF,SAEE,2CAfF,4BACA,mBAEE,8BAEF,CAEE,iDAIA,gDAIA,gCAfF,8CAGE,gDAIA,iDAIA,mBAEF,4BAEE,+BAfF,mBACA,0BAEE,mBAEF,4BAEE,gDAIA,8CAIA,iCAfF,mBACA,4BAEE,mBAEF,8BAEE,mBAEF,+BAEE,mBAEF,6BAEE,SAfF,yCACA,0BAEE,CAEF,kBAEE,4BAEF,mBAEE,6BAEF,mBAEE,2BAfF,kCACA,qBAEE,4BAEF,qBAEE,8BAEF,qBAEE,+BAIA,kDAfF,iCAGE,gDAIA,kDAIA,qBAEF,8BAEE,qBAfF,4BACA,gCAEE,qBAEF,0BAEE,qBAEF,4BAEE,qBAEF,6BAEE,qBAfF,2BACA,UAEE,6CAIA,iDAIA,+BAEF,oBAEE,+BAfF,kDAGE,gCAEF,qBAEE,0BAEF,qBAEE,4BAEF,qBAEE,6BAQF,gDAGE,iCAEF,yBAEE,yBAEF,yBAEE,2BAEF,yBAEE,4BAfF,mDAGE,0BAEF,0BAEE,yCAIA,2CAEF,mBAEE,yBAfF,0CACA,SAEE,uBAEF,8CAEE,mBAEF,6BAEE,mBAEF,8BAEE,mBAfF,4BACA,+BAEE,mBAEF,0BAEE,mBAEF,4BAEE,gDAIA,8CAfF,SACA,qBAEE,4CAIA,8CAEF,mBAEE,4BAEF,mBAEE,0BAMN,gCACA,mBAEE,2BAEF,mBAEE,6BAEF,iDAEE,mBAEF,4BAEE,StDTF,wCsDlDI,yBACA,mBAEE,2BAIA,+CAIA,6CAIA,4BAfF,0CAGE,4CAIA,6CAEF,mBAEE,wBAEF,SAEE,2CAfF,4BACA,mBAEE,8BAEF,mBAEE,+BAIA,gDAIA,gCAfF,8CAGE,gDAIA,iDAIA,+CAIA,+BAfF,mBACA,0BAEE,+CAIA,gDAIA,8CAIA,iCAfF,+CAGE,mBAEF,8BAEE,mBAEF,+BAEE,mBAEF,6BAEE,SAfF,yCACA,0BAEE,mBAEF,4BAIA,mBAEE,6BAEF,mBAEE,2BAfF,kCACA,qBAEE,4BAEF,qBAEE,8BAEF,qBAEE,+BAIA,kDAfF,iCAGE,gDAIA,kDAIA,qBAEF,8BAEE,qBAfF,4BACA,gCAEE,qBAEF,0BAEE,qBAEF,4BAEE,qBAEF,6BAEE,qBAfF,2BACA,UAEE,6CAIA,iDAIA,mDAIA,+BAfF,kDAGE,gCAEF,qBAEE,0BAEF,qBAEE,4BAEF,qBAEE,6BAQF,gDAGE,iCAEF,yBAEE,yBAEF,yBAEE,2BAEF,yBAEE,4BAfF,mDAGE,2BAEF,0BAEE,yCAIA,2CAEF,mBAEE,yBAfF,0CACA,SAEE,uBAEF,8CAEE,mBAEF,6BAEE,mBAEF,8BAEE,mBAfF,4BACA,+BAEE,mBAEF,0BAEE,mBAEF,4BAEE,gDAIA,8CAfF,SACA,qBAEE,4CAIA,8CAEF,mBAEE,4BAEF,mBAEE,0BAMN,gCACA,mBAEE,2BAEF,mBAEE,6BAEF,iDAEE,mBAEF,4BAEE,SChEJ,qBACE,mBACA,yBAGA,mBAGA,2BAGA,+CCVJ,mHAIA,4CACA,mBACA,6CACA,wBCTE,SACA,wBACA,mBDeE,6BACA,gDACA,kDxDqCA,mBwDvCA,6BACA,mDACA,8CxDqCA,6BwDvCA,iDACA,mBACA,2DxDqCA,mBwDvCA,6CACA,4BACA,gDxDqCA,8CwDvCA,iCACA,+CACA,iDAMJ,kDACA,gDACA,+BAIA,6CACA,kEACA,8BACA,6CACA,uDACA,iDAIA,8BEtCI,oDnEUF,qBmELM,6BANN,CACE,gCnEUF,gDmELM,qBANN,6BnEWA,mDmELM,qBANN,4BnEWA,iCmELM,8CALJ,qBnEUF,iDmELM,6BALJ,qBnEUF,6DmELM,qBALJ,4BnEUF,mDmEXA,qBACE,+BnEUF,qBmELM,6BFuCR,gCACA,+CAEA,iDACA,kDGnDE,qBACA,2BAEA,iCHwDF,kDAEA,yBACE,2BACA,yBAKF,qDIhEE,0BAGF,wBCSM,4BAKE,CAZJ,SAOE,WAPF,MAKE,oBAEA,CDRJ,kBCCE,QDDF,KCCE,CAKE,SAOE,iBASJ,gGAoBE,2CACA,YAKA,4BAGF,CAGE,aACA,4BAKA,gBASA,eAGA,uBAEF,mBACE,qCAOF,aACE,0BAIA,yCAEA,yBAEE,uCAKF,gBAEE,2CAIJ,2BAGE,iEAIE,0CAKF,iBACA,2BC9HN,0BCgkBI,iFD3jBF,CE8Pa,gBF5Pb,2BAEA,2BGmKE,uCH7JA,gBACE,0BACA,iBG+HA,2BHzHF,oDGyHE,mDHjHF,qDEkPU,CF1Od,mBCyhBI,4EDrhBJ,qBACE,yBCohBE,iEEhXA,qEH9JA,aAIJ,oBACE,sCIrDF,2CAEE,uBC+BE,sYAiFE,uBAGA,cACA,uBACA,yCAIF,uBAKE,aAGF,8DAKA,4FAmBA,uBACE,CAGF,WACE,uBAKA,aAGF,uBAKA,8DAIE,kCAKA,YCjKF,4BC6CF,SDvCE,CD+JE,iBAIF,CARE,UAIA,CAIF,gBCnKA,kEAEA,8BACA,CAFA,+BAEA,oCAIA,4GExBF,0BDwDA,0BCxDA,aAEI,yBPkjBF,mMKpgBF,CLogBE,2QK1eF,kCGqHA,aACE,aACE,CACA,2EACA,2CAKA,2DACA,kCAIA,qBAJA,mBAIA,WACA,2DADA,eAKA,yDACA,4BAGF,iBACE,mDACA,uDAIA,uCACA,CADA,YACA,mDAIA,kCACA,iDAIA,6CACA,0CALA,iBAKA,iDAKA,gBACA,wDA9CJ,+BAGI,gcAqBA,SACA,4BADA,QACA,CADA,UACA,sBAGF,8BACE,mCACA,yCAGF,oFAEE,cAIA,+CACA,+CAGF,qDAEE,UACA,gDC9OJ,wBACE,sBACA,cACA,MAMA,iCAEA,mCAEA,CATA,yDAKA,CAIA,iCCXF,MACE,2FAIA,4OAOA,CAPA,wCAOA,qBACA,gCAEA,OADA,gBAEA,CADA,GACA,sJAGA,iBAHA,eAGA,6JAIF,sBACE,KACA,qCACA,oBACA,8BACA,iKAGA,+WAQA,sBACA,gCAEA,oBACA,4LAGA,yCAEF,oBACE,8BACA,sBACA,CACA,yCACA,kLAGA,0GAIA,gCACA,oBACA,+BAEA,mNAGA,0NAMA,sBACA,EAGA,kDAFA,oBACA,gBACA,2eAWA,uDAGA,iOAOA,0KAEA,uDAGA,kjBAYA,yFAGA,6LAOA,mUAUA,oGACA,sRAGA,iOAUA,uaAWA,2SAQA,0KAIA,qSAGA,uVAYA,yFAGA,gNAOA,sIAGA,gNAQA,6KAGA,gOAKF,iOAKE,4ZAWA,gSAQA,0KAIA,0RAGA,uVAYA,8RAUA,2UAOA,CCtRmB,mGD0RnB,8RAGA,iOAUA,qbAWA,mTAGA,0KASA,6SAGA,uVAYA,iTAUA,sIAGA,wNAQA,6KAGA,wOAMA,iOAIA,sZAWA,uDAGA,uOAQA,0KACA,6BAGA,klBAYA,6BAGA,4CAEF,gBACE,mMAIA,0EAGA,+PAQA,iIAGA,+PAOA,iOAGA,kZAWA,yEAGA,kNAMA,0KAGA,0EAGA,kiBAYA,yRAUA,sUASA,oGAEA,yRAGA,iOAUA,2aAWA,8SAQA,0KAIA,yFAGA,siBAYA,yEAGA,mOAOA,oGAGA,qPAQA,2JAGA,qPAOA,iOAGA,kZAWA,uDAGA,mOAOA,0KAEA,yEAGA,kiBAYA,wRAUA,qUASA,oGAEA,wRAGA,iOAUA,2aAWA,yFAGA,oNAMA,0KAGA,uDAGA,ukBAYA,uDAGA,kCAGA,kNAIA,yDAGA,+RAQA,oGAGA,2SAUA,0TAMF,iTAQE,iRASA,0KAGA,kmBAYA,YAGA,2CAEF,CACE,iBCnwBmB,CDowBnB,qMAGA,0EAGA,kPAQA,iIAGA,kPAMA,iOAIA,wZAWA,yFAGA,qMAMA,0KAGA,wRAGA,uVAYA,4RAUA,yUAQA,oGAGA,4RAGA,iOAUA,ibAWA,iTAQA,0KAIA,yFAGA,yiBAYA,yEAGA,sOAOA,oGAGA,wPAQA,iIAGA,kRAQA,iOAEA,8YAWA,uDAGA,iOAOA,0KAEA,uDAGA,kjBAYA,yFAGA,6LAOA,mUAUA,oGACA,sRAGA,iOAUA,uaAWA,0FAGA,iNAMA,0KAGA,yEAGA,mjBAYA,uDAGA,kPAOA,oGAGA,kPAQA,iIAGA,4QAQA,iOAEA,8YAWA,uDAGA,iOAOA,0KAEA,uDAGA,kjBAYA,yFAGA,6LAOA,mUAUA,oGACA,sRAGA,iOEtnCA,uaAWA,0FAGA,iNAMA,0KAGA,yEAGA,mjBAYA,uDAGA,kPAOA,oGAGA,kPAQA,iIAGA,4QAQA,iOAKA,uDAEF,kBACE,gBACA,qTAGA,0EAMF,eACE,+LAIA,0KAGA,kRASA,uVAGA,sRAYA,sIAGA,6LAOA,2JAGA,+NAQA,iOAGA,qRAUA,geAUA,2SAWA,0KAGA,qSASA,uVAGA,ySAYA,sVAUA,kIAGA,2QAQA,iOAGA,wSAUA,gHAGA,qWAOA,gSAWA,0KAGA,0RASA,uVAGA,8RAYA,2UAUA,kYAUA,iOACA,YAGA,iRAOA,CACA,wDAEA,qbAUA,mTAUA,CACA,uMAGA,+QASA,uVAGA,iTAYA,8VAUA,2JAGA,0PAQA,iOAGA,gTAUA,gHAGA,+VAOA,yFAMF,qMAKE,0KAGA,yFAIF,+LAKE,uVAGA,yFAOF,mMAKE,oGAGA,kCAEF,mMAKE,oGAGA,yFAIA,mMAIA,iOAGA,0EAKF,eACE,kMAIA,sFAGA,4CAEF,gBACE,yTAIA,2RAWA,0KAGA,qRASA,uVAGA,yRAYA,sUAUA,6KAGA,gNAQA,iOAGA,wRAUA,oeAUA,8SAWA,0KAGA,wSASA,uVAGA,4SAYA,sIAGA,mNAOA,gHAGA,gSAQA,iOAGA,yFAKF,kNAKE,qEAGA,6DAEF,gBACE,yTAIA,0FAMF,gMAKE,0KAGA,oRASA,uVAGA,wRAYA,qUAUA,6KAGA,+MAQA,iOAGA,uRAUA,oeAUA,6SAWA,0KAGA,uSASA,uVAGA,2SAYA,oGAGA,kCAEF,kNAKE,oGAGA,yEAIA,gBACA,kNAGA,iOAGA,uDAMA,kBACA,gBACA,iNAEA,yDAGA,YAEF,iBACE,0BACA,kBACA,gBACA,iTACA,6BAMF,CACE,yBACA,mBACA,uMAEA,0KAGA,uDAKA,kBACA,gBACA,kLAEA,uVAGA,uDAQA,kBACA,sMAGA,0EAGA,2BAEF,iBACE,gBACA,sLAGA,oGAGA,yEAGF,gBACE,sLAIA,iOAGA,yFAKF,qLAKE,gHAGA,iWAOA,8RAWA,0KAGA,wRASA,uVAGA,4RAYA,yUAUA,gYAUA,CACA,gOAGA,2RAQA,yDAEA,ibAUA,iTAWA,sLAGA,+RASA,uVAGA,+SAYA,sIAGA,sNAOA,oGAGA,+SAQA,iOAGA,0EAKF,eACE,qNAIA,yDAGA,uDAEF,kBACE,gBACA,qTAGA,0EAMF,eACE,+LAIA,0KAGA,kRASA,uVAGA,sRAYA,sIAGA,6LAOA,2JAGA,+NAQA,iOAGA,qRAUA,geAUA,2SAWA,0KAGA,qSASA,uVAGA,ySAYA,sHAGA,gOAOA,oGAGA,yFAGF,gNAKE,iOAGA,yEAKF,gBACE,+MAIA,yDAGA,uDAEF,kBACE,gBACA,qTAGA,0EAMF,eACE,+LAIA,0KAGA,kRASA,uVAGA,sRAYA,sIAGA,6LAOA,2JAGA,+NAQA,iOAGA,qRAUA,geZxuBA,uDa7hBA,kBACA,gBb4hBA,kNcxNI,0KZxNF,6BYsQF,0BAKF,kBAlOA,gBACA,4MA6OE,CA9SF,sVAnEA,uDAEE,kBACA,gBAIF,gNAPA,6CAGE,6BAIF,4DAEE,gNAFF,oGAbA,YACA,iBACA,0BAIA,kPAJA,iOAcE,YAwEA,2CAvFF,kBACA,gBAIA,+MAOA,mGAsFM,kBAGF,CALE,QACA,CAHF,WAGE,YAnFJ,eACA,CA+EE,SAEE,CApFN,iBAEE,CAuFE,qCAIE,CA1FJ,SA0FI,CAtEF,eA2EE,qBAhFJ,cAKE,kBA2EE,gBAhFJ,CAKE,oBA2EE,CAhFJ,mBAKE,cACA,WAqBF,gBA4DM,kBA5DN,CA4DM,eA1DN,CA0DM,iBA1DN,sDA5DF,iBACA,CA2DE,kBA3DF,0BAKA,mDAEE,sBACA,eAHF,CAGE,SAIF,6CAEE,CAFF,kBAEE,oDAbF,mBAIA,CALA,gBAKA,+DAEE,CAFF,qBAEE,UAKF,kBAJE,kBAIF,CAJE,UAIF,4DAbA,sBACA,CAeE,uBAfF,sDAKA,gDAGE,iBAIF,CALE,kBACA,CADA,UAKF,sEAsEI,sBAlFJ,CAcE,uBAdF,gEAKA,gDAGE,iBAIF,CALE,kBACA,CADA,UAKF,sEAsEI,sBAlFJ,CAcE,uBAdF,gEAKA,gDAGE,iBAIF,CALE,kBACA,CADA,UAKF,sEAsEI,sBAlFJ,CAcE,uBAdF,gEAKA,gDAGE,iBAIF,CALE,kBACA,CADA,UAKF,sEAsEI,sBAlFJ,CAcE,uBAdF,gEAKA,gDAGE,iBAIF,CALE,kBACA,CADA,UAKF,sEAsEI,sBAlFJ,CAcE,uBAdF,gEAKA,gEAOA,kBAJE,kBAIF,CALE,UAKF,+IAPA,iLAUE,cAwEA,CAzEA,kBAyEA,sBAvFF,wBACA,CAsFE,cAtFF,kCAIA,mIAEE,cACA,YAIF,CAJE,aAIF,kIAEE,+BZiFE,iCYDA,eAEE,kBACA,eACA,eAKA,iBAEA,CAJF,kBAEE,CAFF,UAIE,sEArEF,sBANF,CAKE,uBALF,gEAME,cA0EE,CA3EF,kBA2EE,eA1EF,iBA0EE,CA3EF,kBACA,CANF,UAgFI,sEA1EF,sBA0EE,CAhFJ,uBAgFI,gEA3EF,cACA,CANF,kBAME,eAiFI,iBA1DN,CAFA,kBA4DM,WA1DN,sEA0DM,uBA1DN,uBA0DM,gEA1DN,gDA3DF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,sEAME,sBACA,CAHF,uBAGE,gEAMA,cACA,CAHF,kBAGE,eAfF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,sEAME,sBACA,CAHF,uBAGE,gEAMA,cACA,CAHF,kBAGE,eAfF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,sEAME,sBACA,CAHF,uBAGE,gEAMA,cACA,CAHF,kBAGE,eAfF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,sEAME,sBACA,CAHF,uBAGE,gEAMA,cACA,CAHF,kBAGE,eAfF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,sEAME,sBACA,CAHF,uBAGE,gEAMA,cACA,CAHF,kBAGE,eAfF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,sEAME,sBACA,CAHF,uBAGE,gEAMA,cACA,CAHF,kBAGE,+BAdF,iBAIA,CALA,kBACA,CADA,UAKA,+IASE,sBACA,CAHF,uBAGE,mIARA,eAFF,kBAEE,yBAKF,8FAbA,QACA,CAkFI,cAnFJ,CAgBE,UAfF,eACA,2BAIA,2DAEE,cACA,aADA,aACA,eAIF,2DAEE,cACA,YAmEE,CAnEF,aAmEE,eAlFJ,cACA,cAIA,CALA,eAKA,sEAEE,cACA,cAIF,CALE,eAKF,yDAEE,+BACA,kBAhBF,iBACA,kBACA,eAIA,qEAEE,kCACA,kBAIF,kEAsEI,iBAnFJ,CAeE,kBAoEE,CApEF,UAfF,sEAMA,sBAEE,CAFF,uBAEE,gEAKF,gDAGE,iBAmEE,CApEF,kBACA,CADA,UAoEE,CAnFJ,qEAMA,8GAOA,gDAGE,iBAmEE,CApEF,kBACA,CAHF,UAsEI,sEA7EJ,8GAOA,gDAGE,iBAmEE,CApEF,kBACA,CAHF,UAsEI,sEA7EJ,8GAOA,gDAEE,iBACA,CAHF,kBAEE,CAFF,UAGE,CAmEE,qEA7EJ,8GAOA,eAJE,kBAIF,eAEE,iBACA,CAHF,kBAEE,CAFF,UAGE,sEAVF,8GAOA,eAJE,kBAIF,eAEE,iBACA,CAHF,kBAEE,CAFF,UAGE,sEAVF,uBALA,uBAKA,gHAGE,kBADA,kBACA,CAHF,UAGE,sEAIF,8GAkFI,eZCA,kBYCE,eAKF,kBAJE,kBAIF,CAJE,UAIF,sEAvEF,sBAKE,CARF,uBAQE,CACA,+DA0EE,cAhFJ,CAME,kBANF,eAgFI,iBAhFJ,CAME,kBA0EE,CA3EF,UALF,sEAgFI,sBAhFJ,CAKE,uBALF,gEAME,eADA,kBA2EE,gBA1EF,iBA0EE,CAhFJ,kBAME,CANF,UAgFI,wEA3EF,sBA2EE,CAhFJ,uBAgFI,kEAhFJ,cAKE,CA2EE,kBA3EF,CACA,eADA,iBACA,CA0EE,kBA3EF,CA2EE,UA1EF,wEANF,sBAKE,CACA,uBADA,CACA,iEAiFI,cA5DN,CArBE,kBAqBF,gBA4DM,iBA1DN,mBA0DM,WA1DN,wEA0DM,sBA1DN,yBA0DM,+EA1DN,mCA0DM,iBA1DN,mBA0DM,WA1DN,wEA0DM,sBA1DN,0FAuBE,cAnFJ,CA4DE,kBA5DF,gBAMA,kBAJA,kBAIA,CALA,UAKA,wEAGE,sBAIF,CALE,uBAKF,kEAsEI,cAnFJ,CAgBE,kBAhBF,gBAMA,kBAJA,kBAIA,CALA,UAKA,wEAGE,sBAIF,CALE,uBAKF,kEAsEI,cAnFJ,CAgBE,kBAhBF,gBAMA,kBAJA,kBAIA,CALA,UAKA,wEAGE,sBAIF,CALE,uBAKF,kEAsEI,cAnFJ,CAgBE,kBAhBF,+BAMA,kBAJA,kBAIA,CAJA,UAIA,+IAUE,sBAmEE,CAtEJ,uBAsEI,mIA3EF,cACA,CADA,kBACA,yBAIF,kCAEE,YAFF,cAEE,kCAdF,SADA,cACA,CAkFI,UAjFJ,2BAIA,0EAEE,aACA,eAIF,CAJE,eAIF,4CAEE,CAFF,gBAEE,eACA,cAmEE,YAnFJ,CAmFI,aAlFJ,4BACA,CAIA,gBAJA,gBAIA,2CAEE,CAFF,eAEE,eACA,cAIF,gBAJE,gBAIF,6BAEE,aAFF,aAEE,eACA,aAmEE,CAlFJ,gBAkFI,gBAlFJ,gBACA,aAIA,6DAEE,eACA,CAHF,gBAGE,gBAIF,qEAEE,CACA,eAmEE,CApEF,gBAoEE,gBAnFJ,aACA,CACA,eADA,eAKA,8EAEE,cACA,aAIF,CALE,cAKF,kEAEE,kBACA,iBAmEE,kBAnFJ,kBACA,kBACA,eAIA,uEAEE,kBACA,mBAIF,oEAEE,mBACA,iBAmEE,mBAnFJ,kBACA,mBACA,eAIA,yEAEE,mBACA,kBAIF,iEAEE,uEAbF,sBAIA,CALA,uBAKA,kEAGE,eADA,kBACA,gBAIF,uHAXA,sBAIA,CALA,uBAKA,kEAGE,eADA,kBACA,gBAIF,uHAXA,sBAIA,CALA,uBAKA,kEAEE,cACA,CADA,kBACA,gBAIF,uHAXA,sBAIA,CANA,uBAMA,kEAEE,cACA,CAHF,kBAGE,gBAIF,qCAJE,UAIF,wEAZA,sBACA,CAFA,uBAEA,CAIA,iEAEE,cACA,CAHF,kBAGE,gBAIF,qCAJE,UAIF,wEAZA,sBACA,CAiFI,uBAjFJ,kEAME,eAFF,kBAEE,gBAKF,qCAJE,UAIF,wEA2EE,sBAvFF,CAuFE,uBAvFF,kEAKA,wKAOA,gHAEE,cACA,CAHF,kBAGE,gBA+EE,iBAEE,CZDF,kBYDA,CZCA,UYCE,wEAUA,sBA/EJ,CA4EI,uBA5EJ,kEAmFI,cAhFJ,CAME,kBANF,gBAgFI,iBA3EF,CACA,kBA0EE,CA3EF,UAAC,CAAD,uEA2EE,sBA3EF,wBAAC,CAAD,iEACA,cA0EE,CA3EF,kBA2EE,iBA1EF,iBA0EE,CA3EF,kBACA,CANF,UAgFI,0EA1EF,sBA0EE,CAhFJ,uBAgFI,oEA3EF,cACA,CANF,kBAME,iBADA,iBACA,CANF,kBAKE,CA2EE,UA1EF,0EADA,sBACA,CA0EE,uBA1EF,oEA0EE,cAhFJ,CAME,kBANF,CAKE,gBAkFI,kBAjFJ,kBAiFI,CAjFJ,UAiFI,0EA1DN,sBA0DM,4FA1DN,cA0DM,qDA1DN,mBA0DM,CA1DN,UA0DM,0EA1DN,sBA0DM,4FA1DN,eA0DM,kBA1DN,CA0DM,gBAnCJ,iBAnFJ,CA4DE,kBAuBE,CAmCI,UAtHR,0EAMA,sBAEE,CAFF,uBAEE,oEAKF,kCAEE,gBAoEE,iBAlFJ,CAeE,kBAmEE,CApEF,UAdF,0EAKA,sBAEE,CAFF,uBAEE,oEAKF,cAEE,CAFF,kBAEE,iBAfF,iBACA,CAeE,kBAhBF,CAgBE,UAfF,0EAKA,sBAEE,CAFF,uBAEE,oEAKF,cAEE,CAFF,kBAEE,iCAdF,iBACA,CAFA,kBACA,CAkFI,UAjFJ,mJAWA,sBAEE,CAFF,uBAEE,uIATF,cAEE,CAFF,kBAEE,yBACA,sBAIF,0EAsEI,SAnEF,cAmEE,CApEF,UAoEE,gBAlFJ,4BACA,aAIA,6DAEE,cACA,CAHF,eAGE,6BAIF,8DAEE,CACA,aADA,aACA,gBAmEE,aAlFJ,CACA,gBADA,gBACA,gBAIA,4DAEE,cACA,eAIF,CALE,gBAKF,wEAEE,aACA,CAmEE,eAnFJ,CAgBE,gBAhBF,iBACA,aACA,CAIA,eAJA,eAIA,8CAEE,CAFF,gBAEE,iBACA,cAIF,aAJE,aAIF,+BAEE,gBAFF,gBAEE,CACA,gBAmEE,cAlFJ,eADA,eAEA,8BAIA,+DAEE,cACA,CADA,cACA,mBAIF,oEAEE,iBACA,mBAmEE,kBAlFJ,mBACA,gBAIA,wEAEE,qCACA,mBAIF,wEAEE,iBAoEE,oBAnFJ,kBACA,oBACA,eAIA,2EAEE,oBACA,kBAIF,iEAEE,uEAbF,sBAIA,CALA,uBAKA,kEAGE,eADA,kBACA,gBAIF,uHAXA,sBAIA,CALA,uBAKA,kEAGE,eADA,kBACA,gBAIF,uHAXA,sBAIA,CALA,uBAKA,kEAEE,cACA,CADA,kBACA,gBAIF,uHAXA,sBAIA,CANA,uBAMA,kEAEE,cACA,CAHF,kBAGE,gBAIF,qCAJE,UAIF,wEAZA,sBACA,CAFA,uBAEA,CAIA,iEAEE,cACA,CAHF,kBAGE,gBAIF,qCAJE,UAIF,wEAZA,sBACA,CAiFI,uBAjFJ,kEAME,eAFF,kBAEE,gBAKF,qCAJE,UAIF,wEA2EE,sBAvFF,CAuFE,uBAvFF,kEAKA,wKAOA,gHAEE,cACA,CAHF,kBAGE,gBA+EE,iBAEE,CZDF,kBYDA,CZCA,UYCE,wEAUA,sBA/EJ,CA4EI,uBA5EJ,kEAmFI,cAhFJ,CAME,kBANF,gBAgFI,iBA3EF,CACA,kBA0EE,CA3EF,UAAC,CAAD,uEA2EE,sBA3EF,wBAAC,CAAD,iEACA,cA0EE,CA3EF,kBA2EE,iBA1EF,iBA0EE,CA3EF,kBACA,CANF,UAgFI,0EA1EF,sBA0EE,CAhFJ,uBAgFI,oEA3EF,cACA,CANF,kBAME,iBADA,iBACA,CANF,kBAKE,CA2EE,UA1EF,0EADA,sBACA,CA0EE,uBA1EF,oEA0EE,cAhFJ,CAME,kBANF,CAKE,gBAkFI,kBAjFJ,kBAiFI,CAjFJ,UAiFI,0EA1DN,sBA0DM,4FA1DN,cA0DM,qDA1DN,mBA0DM,CA1DN,UA0DM,0EA1DN,sBA0DM,4FA1DN,eA0DM,kBA1DN,CA0DM,gBAiCR,kBA3FE,kBA2FF,CAjCQ,UAiCR,0EAMA,kHAKA,cAEE,CAFF,kBAEE,iBAIF,yHAOE,sBAcF,CAhBA,uBAgBA,oEAUE,cAGF,CAJA,kBAIA,iBAwCE,iBAGF,CAJA,kBACE,CAvCA,UA0CF,0EAQA,sBACE,CAJA,uBAIA,oEASA,eAEI,kBAFJ,kDAEI,CAFJ,mBAEI,WAFJ,wKAEI,+JASJ,cAEA,CAHF,kBAGE,yBAEA,sBC1TJ,YAXE,YACA,CAUF,cAVE,mCAOA,QAGF,CAJE,cACA,CAFA,UAKF,4BACE,gBAXA,aACA,CAcA,cATA,CALA,eAKA,gBACA,aAaF,+CAdE,aACA,CARA,eACA,CAOA,gBAPA,gBACA,aAmBF,aACE,CADF,aACE,gBAfA,aACA,CARA,eACA,CAOA,gBAPA,gBACA,aCeA,CAGE,cACA,CAJF,eAIE,gBAGF,aACE,CACA,gBADA,gBACA,gBACA,wDAEA,cACE,gBADF,gBACE,iBAIJ,cRkHA,cACA,CQnHA,eRmHA,iBAEA,6BACA,CADA,gBACA,iBACA,aAGE,CQvHA,YACA,CRsHA,aQtHA,iBAEA,cACA,eACA,CAFA,gBAEA,8BACA,eACA,CADA,eACA,iBAEA,aACA,CACA,gBADA,gBACA,4CR+GF,CQ/GE,cR+GF,gCACE,mBQ9GA,wEAEE,kBACA,CACA,kBAEA,kCACA,kBAGF,oCACE,mBAGF,qCAIA,oDRoBA,oBACA,iBAEA,sCQvBA,mCRwBE,oBQjBJ,6FAEE,yDAKA,cAIF,CALE,eAKF,sEAKA,gFAIA,mFAIA,oFAEE,eAGF,mDACE,kBAGF,kCRFE,oCACA,mBQKA,iBAGA,0BAGA,sBftEM,QesEN,kBADA,SACA,mCACA,YADA,aACA,kDAGF,gChBqcE,2BA0LsB,CA1LtB,8BgBjcA,eACA,+BAIF,+CAEE,eACA,+BAEA,0DALF,0BASI,+BdNF,gBcHF,+BAaI,gBAGF,2BhBsmBsB,WA1LtB,iFgBvaF,wBAEE,mBAGF,wCAEE,gCAGF,2CACE,IAGF,0EAIA,iHAKA,sDACE,yLAIF,iCACE,wDAWE,uBAXF,uBAGF,gCACE,CAJA,SAWE,6BAXF,qBAMA,aAEE,0BAGA,qCAJA,iBACA,CAGA,kBALF,kBAKE,0DAKA,CATA,Uf5II,CesJJ,6HAUJ,WALA,uBAKA,CALA,4CAKA,sCACE,wBAEA,+BAEA,2KAIE,mBACA,wFAMF,eAGF,2DAEE,mBAGF,mEAGE,yDAKF,4DRmBA,gHQdA,4BhB0UE,8EiBriBA,uBAMA,YACE,CAHF,6CAEA,CALA,6BAEA,oBACA,CAGE,iCAIF,wEAIE,CAXF,UAWE,CAGF,sBTsBA,iCAEA,qBACE,CADF,oBSpBA,iBACE,gBAGF,CTiBE,USrBF,CTqBE,SSjBF,yBACE,YAIJ,uFjBsgBE,yBiBjgBA,wBACA,kBACA,0BACA,wBAGF,iBACE,4BAGF,iCACE,CAGF,oBACE,CAJA,mBAIA,+CAEA,+DAMF,gEAIA,iBjBseE,+DiBleF,CjBkeE,iHiB5dA,aACA,0DjB2dA,mEEhbE,4DgBlHJ,yDAGE,iEAKA,0DAOF,8BACE,gBACA,sDAIF,mCAEE,CAFF,kBAKA,iGAKA,oDAIA,sEAIE,wGAEA,iEAMF,YACE,CADF,eACE,mBACA,0KAYA,uCACE,kEAIA,4BAGA,wDAEA,mFAVF,WAWI,gBAKN,sDACE,eAGF,qEAEE,yEAIF,eACE,YAKF,kCAJE,iBACA,qCAGF,CAHE,oBAGF,iCAGE,gDAIA,CAIF,iIAGE,aACA,0BACA,0CACA,sCACA,gBACA,oBACA,oBAIF,sCVuBA,4DAOA,iCAHA,iBACA,CAEA,gBU1BE,oBV0BF,CAFA,mBUxBE,CV0BF,iHAQA,kEAEE,qEAIA,mFACA,eAEA,qCAEA,CAFA,mBAEA,6BAXF,iCAYI,CAZJ,iBAYI,iBWjLJ,iBnB4iBE,CQ3XE,mBWjLJ,CnB4iBE,kCoB9iBF,cACA,CpB6iBE,iCoBhjBF,CACA,oBACA,CAFA,mBAGA,yBAEA,4BACA,sCACA,kBAGA,CAHA,aAGA,kBACA,CAJA,iBAIA,wCAEA,aACA,8CACA,8JAIA,iFAEA,iKASE,aACA,YAGF,kHDxBE,oBAIF,yCC0CA,eACA,CAFA,iBACA,cACA,+CAGA,yBACE,+CAIA,sBACA,+CAQF,mBAHE,WAGF,gCAJA,iBACE,CAGF,iDAEE,CALA,YAKA,mDD/CF,8CC0BA,eACA,sDnBnBU,SmBuBV,iEAIA,sBnBHQ,CmBKN,8DAIF,YACE,CADF,kBACE,iCAGF,kGAEE,gDDrCA,+GC2BA,sBAIF,CATE,oCAIA,uCACA,CANF,uCACE,CAHF,QAEA,CAHA,YACA,CAQE,cATF,cACA,OAYA,wCAIA,0DAEE,CAFF,6DAEE,yIDXE,0BACA,4DAIF,gOAQE,uCCxBJ,8CAEA,sBACA,eACA,WAQE,mBAQF,+BAVA,mBACE,CACA,cD0BA,iCChCF,CAME,6BAKA,CAXF,oBACE,CADF,oBAcA,SATE,eACA,iBAQF,aAHE,yDAGF,CAbE,iBAGF,CAUA,eAEE,qBDkBA,8KAcA,mLAME,kBACA,CADA,qBACA,eACA,cACA,mBAGF,yBAKA,0BAJE,4BAIF,uCAEE,qCElEJ,wBACA,CAFA,4BACA,CACA,UACA,yBAEA,qEbdE,wDacF,kDbXI,+GayBA,kGb1BF,4Ba0BE,sCbzBA,wBamCJ,8QAME,iBACA,qDAKA,8BAZF,4NAiBA,gHAEE,qDAEA,kDAJF,8TAeA,uBACE,aACA,aACA,iBAIF,+HAEE,wBAIA,uBAGA,oBAKF,mKbrGA,iDavBA,iBACA,CADA,eACA,8CAGA,qCAKA,wBACA,CACA,yMAOA,sBA0GA,CA1GA,yBA0GA,4SAtGA,iBAsGA,uHArGE,uDAqGF,+LA9FA,iGA8FA,+QAUA,6DACE,CAJA,iBAGF,aACE,4DAMA,8XAOI,oGAQJ,ohBAOA,msBAGE,iMAIJ,6OAQE,UACA,gCF/DA,iMAMA,wRAKE,4BAMJ,iFAKA,0EAIA,4ZAgBA,0CEpHA,gBACA,WAaE,geAeF,swBAmBE,6DAEA,sDAJF,mLASA,6IASE,sBACA,eAGF,sLAQE,iBACA,+QAtHF,kBACA,CAFA,WACA,CACA,SACA,CAHA,eAGA,2EAQA,kBACA,wDAEA,6FrBghBE,wBqB5gBF,4DA0GA,ybAnGA,yBAmGA,iMA9FA,kFA8FA,iWAiBE,8DANA,iBAMA,sTAKA,+HAUA,0XAEE,sDAKF,6hBAGE,kCAHF,YAGE,oBAIJ,CAJI,oBAHF,sEAGE,+DAHF,wDAOF,oPAOA,4CACE,wLAmCE,UAUA,gCAcJ,+QAsBA,wLAKI,4BAwBJ,+hBAnDA,wdAmDA,sBAxBI,gBAwBJ,qsBAnDA,gSA0BI,kBACA,CADA,2BACA,4FAwBJ,+bAlFE,cACA,sDA8BF,4EAdI,UAcJ,iQAsBA,8DAEI,gCACA,kGA0BJ,eAxBI,yBAwBJ,cAxBI,MAwBJ,CAxBI,kBAwBJ,4VFjHA,6FEhIA,4CbZE,CaqBA,8BATF,CASE,WbrBA,uCaYF,gCbXI,oQayBA,wDAUJ,4oBAiBA,4EAJI,UAIJ,wCAEE,gCAEA,uQAKF,8DAEE,gCAIF,gGAOA,maA/GA,SbwBA,KaxBA,6EAUA,4CAIA,CAVA,8BAMA,CAPA,UACA,CAUA,uCACA,8RA8GA,+FAtGA,iDAsGA,yKArGE,qCAEF,sDAmGA,oKA9FA,yHA8FA,2QAUA,kBACE,CADF,aACE,SAMA,qBAPF,8BAOE,obAeA,0bAEE,kBAEA,WAGF,CALE,SAFF,OAOA,yfAGE,kCAHF,YAGE,yCAHF,oIAGE,CAHF,wDAGE,4DAIJ,8LAIE,4CAGF,8LA4BE,0CAYE,8LAoBJ,qRAgCI,4BACA,wDAkBJ,ufAnDA,oeAiCI,6vBAjCJ,oSAgCI,mBADA,WACA,CADA,eACA,8FACA,sBAkBJ,gbAnFE,QADF,OACE,wDAgCF,yDAXI,qCAWJ,CAlBI,YAOA,CAWJ,oQAsBA,qFAQI,oGAGA,iDAkBJ,CAnBI,iBACA,mBAkBJ,0VFhGA,gGEjJA,wDbZE,CaUF,qCAEA,CAFA,abVE,sCaYF,ySAcI,sDbzBA,+BamCJ,0nBAiBA,yDAJI,qCAIJ,CAJI,aAIJ,sCAEE,4SAOF,qFAMA,kGAOA,wabvFA,8FanBA,wDAQA,CAVA,qCAEA,CAHA,YACA,CAUA,sCAEA,mSA8GA,8MAtGA,iBAsGA,uHArGE,uDAqGF,+LA9FA,iGA8FA,+QAUA,6DACE,CAJA,iBAGF,aACE,4DAMA,8XAUE,iDAKF,gaAEE,YAFF,gBAEE,2IAKF,oZAGE,CAHF,YAGE,yCAHF,6LAGE,6PAIJ,UAEE,kCAEA,iMA8BF,0CACE,iMAgCF,wRAsCI,qFACA,kGAYJ,4ZAnDA,0eAuCI,sBADA,gBACA,guBAvCJ,sSAqCI,+BAfJ,eAeI,+FAEA,+CAYJ,4ZApFA,0EAyBI,4CAQJ,CA1BI,8BAkBA,CAtBF,aAIE,CA0BJ,uRAaI,uCASJ,oIAgBI,UACA,CADA,cACA,qBADA,kBACA,oXAyCE,mGAhRN,4CAEA,CAJA,8BAEA,CAHA,aACA,CAIA,sCbZE,4Ta0BE,qEbzBA,CamCJ,ioBAiBA,6CAJI,8BAIJ,CAjBA,aAaI,CAIJ,sCAEE,+SAOF,uDAEE,+BAIF,mGAOA,4aA/GA,QACA,yFAUA,4CAIA,CAVA,8BAMA,CANA,cAUA,qErBghBE,uQqBlaF,qEAtGA,2BAsGA,8LArGE,yBAEF,sCAmGA,uNA9FA,+DA8FA,gUAiBE,mBANA,YAMA,+BAPF,8BAOE,mUAEE,2GAaF,qbAOA,8BAHE,QAGF,CAJE,OAIF,ofAGE,kCAHF,YAGE,yCAHF,yGAGE,4BAHF,wDAGE,4DAIJ,2LAOA,uOA8BE,UAUI,CAAF,+BAeA,2LAKJ,uFAsBA,2LAuBI,mFAMJ,gfAnDA,8dAmDA,UANI,WAMJ,CANI,gBAMJ,8sBAnDA,kSA4CI,2IAOJ,kcAlFE,OADA,OACA,uDA+BF,+FALI,WAKJ,oQAsBA,sFAqBI,mGAEA,yBAMJ,YANI,kBAMJ,cANI,kBAMJ,sVF7DE,8FAOA,wDAMF,CANE,kDAMF,uCACE,gCAGF,uQAWA,0LAWE,WADF,aACE,CAIF,YALA,kBAKA,cAJE,kBAIF,0VC/NE,MACA,CADA,OACA,iFAQF,yDAHE,qCAGF,CAHE,YAGF,uCD2OE,gCAKA,0QC1PF,sDnBHQ,CmBKN,gIAQF,qCAHE,iBnBQc,CmBLhB,8WDgQI,4FAME,wDAIF,CALA,qCACE,CADF,YAKA,wcAME,CANF,sBAME,oCACA,eAMJ,6GAII,QC5SN,uCDmTI,4DChTJ,0JAME,2PAQF,gJDoSI,6EAKA,sBAJE,sBAIF,0CAEE,CAFF,6BAEE,UAGF,ubAME,CANF,yBAME,cACA,iEAKF,0FGnRoB,oBHwRpB,oJAEE,+PAkBN,iBC5UA,kEAGA,oBD4UE,CAIF,4EAGE,mCAIF,oEnBqIE,oBmBlIA,WAGF,ihBXlQE,iGAGA,4BAEA,CAFA,6BAEA,8CAXF,4DW+RE,wBAGF,4DAKE,oBAEA,wDAGE,8DAGF,wBAKF,mPAYA,iBACE,8EAGE,iBAIJ,CALE,eAKF,yHAGE,ufnB4DA,sBuB9hBA,CvB8hBA,yBuB9hBA,aAIA,aACA,wEvBmtBsB,gCA1LtB,qJuBngBF,gCvBmgBE,uFuB5fF,CfsGA,sCAEA,oBPpEc,CsBhCZ,efyGF,Ce1GE,iBACA,CfuGF,mBADA,gBAGA,4DAIE,eACA,CAFA,iBACA,CAJF,kBAGE,CAHF,gBAQA,+CACE,0DAKA,qEACA,CADA,kBACA,eACA,yCACA,iBAEA,6CAXF,cAYI,CAZJ,aAYI,2Ce1HJ,eACE,mGAGF,CAHE,kBAGF,yYfmBE,uCACA,6BAEA,sBetBF,qYfuBI,0DeMF,gsBACE,sBACA,CAFF,gDACE,CADF,0EAEE,YAgBF,+JAfE,gBACA,CAcF,kZAMF,6FAME,8BACE,CAPJ,mBALI,iBAKJ,kBAWA,8CACE,uCAGF,+BACE,sBAMF,+HvBsaE,8ZuBnYF,yBC1KA,0DAEE,6ZAgCF,oBxB2gBE,s7BwBrcF,ioBAmBE,aACA,wHAEA,aAQF,8VAQE,kBARF,YAQE,CARF,eAQE,CACA,2CAOF,oCAMA,cANA,qCAGE,CAHF,oBAMA,4BAHE,UAGF,CAHE,SAGF,+HAKA,ySAKE,ehBZF,kBACA,CAFA,SAFA,UACA,CgB4BE,WhB1BF,YgBmBA,gBhBrBA,SACA,CgBoBA,kBAIE,WAGA,ChBzBF,kBACA,mBgBqBE,ChB1BF,SgB6BE,qBhBjBA,cAGF,CARA,0GAIE,oBACA,CALF,oBAIE,CAJF,kBAQA,yCACE,0BAGA,oBAEA,uGANF,6BASE,wBAEA,CAXF,iBAYI,YAHF,mBAEA,uCAXF,CAOE,iBACA,YACA,WAGE,2BiB5LJ,4CAIA,2BAIF,CAKE,UATA,CAKA,eATA,CAQF,kCARE,CDoMA,iBACE,UC7LJ,CAJE,yCAcF,kCAbE,sCALA,8BAkBF,CAVA,cAJE,wOCqBE,wBACA,CAHF,oBAEE,CAFF,gBAGE,+GAIF,yCAIE,kC1BqhBA,sH0B1gBA,4BACA,CACA,wBACA,CANF,aAME,uCACA,CzBIS,+ByBFT,CATF,WASE,CzBVQ,wXOOV,yBavBA,0HASA,aACA,mBACA,qHrB6sBwB,oBA1LtB,wUqBrgBF,+DAKA,+CKkBE,uCLjBA,CALA,SAIF,qBKkBE,iBLtBA,CAIF,aACE,sIAqLE,WACA,eAgBA,aAQJ,gGAsBA,2CAeI,8BACA,CAtCJ,sDAsCI,qFACA,6CAYJ,gHAsBI,+BASE,iCKlQN,+DAGE,IAGF,6GAGE,wIAGF,4KAGE,0HAOF,kCACE,oBAEA,CAHF,mBAGE,sBAMF,yBAJI,4BAIJ,kBACE,6BACA,CAPE,ezB3DO,SyB4DP,CAFF,iBAQA,4B1BgcA,2K2B9iBF,6BDqHE,aACA,CCvHF,QACA,C3B8iBE,iB2BjjBF,CAEA,QAFA,YDyHE,8ClBpDE,SkB8EJ,CAZE,wBACA,sBAEA,CAfA,mCAGF,CAgBE,kBlBzEE,CkBqEF,WlBtEA,YkB0EA,ClB7EA,iCACA,CkBoEF,YlBlEE,qBAFA,mBAEA,CACE,YkB6DA,eAIJ,CALE,gBACE,CAYF,iBARF,qBACE,CAIA,eACA,mCAEA,2BlB7EA,CkB8DA,yBAEA,mBAHF,YAqBA,4D1B8ZE,sI0B3ZA,0CAIF,6CAMA,uF1BiZE,0H2B9iBF,WADA,aACA,CDgKE,aACA,CCjKF,OAHA,iBAEA,CDkKE,WAIF,CCrKA,UDqKA,0IAME,8CAMA,4CACA,CAHF,8BAEE,CAFF,cAGE,sCAGF,+BACE,8GAOA,gBACA,uCAGF,+BAGE,0HAUF,qLAWA,8DAKA,uDAIE,sKAcA,8DAIA,uDlBtLA,2BACA,ekB2LE,2ClBzLF,oBkBsLA,iDAOF,oCzBnBa,CyBqBX,mEAMA,qBAGF,kCAgBA,mBAJE,wBAIF,cAfE,2F1BoSA,iBMvhBF,iBoBkQA,cpBlQA,oBoB2PE,CpB3PF,oBoB6PE,eACA,CAIF,oBAEE,CATA,iBACA,WAQA,2CAIA,0DAMA,UACA,6CAOF,kB1BiQE,CMvhBF,YoBsRA,a1B2bwB,eA1LtB,mBMvhBF,iBNuhBE,mDMvhBF,6CoB0RE,sCAGA,kDAGA,oBACA,CACA,0BACA,2FAQF,kCACE,oBAGF,CAJA,mBACE,CAGF,uEAGE,oClB3QA,wBACA,akB0RA,CAhBA,2FAKA,iBACA,CzB/SQ,eyBkTV,CACE,qBADF,mBACE,CAGF,elBxRE,CkB2RA,azBlRU,iByB+QZ,WAGE,4ClBvRE,gBkBoRJ,gBlBpRI,OkB0RJ,iBlB3RE,iBkBqRF,CAMA,oDAGE,gEACA,uHAIF,yFAIE,eAGF,CAPA,qBAIE,CAJF,oBAOA,6NAQA,uLAKE,gBzBhTgB,mByBmTlB,sGASA,mBAKA,yBAHE,WAGF,eAEE,CAXA,aAIF,oCAEE,CAKA,YACA,CAZA,iBAMA,UANA,4CAYA,2BAGA,0BACE,qBAGF,CAJA,mBAIA,sCACE,0BAIJ,oBACE,0CAOF,wBAHE,SAGF,wDAOA,oDAGE,0BAMF,yDAOA,CAZE,iBAKF,CAUE,gBADA,aATF,yCAQE,aACA,CAFF,uBAGE,CAGF,+BAGE,4CAGF,+GAHE,kBAGF,OAgBA,CAhBA,yBAWA,mBAKA,kCALA,SAKA,cALA,oBAXA,iCAEE,CAEA,qBAFA,mBAEA,CAOF,kBAEE,CAFF,UAKA,iDAGE,+BAGF,sHAMA,6DACE,iEAGF,gCACE,iEAMF,wDACE,yBADF,6CACE,sCACE,+BACE,4FAOF,gCACE,qFASN,iDAIA,oJlBrWA,qBkB6WE,gMlBnWF,4NAQE,wBACA,uHAGE,8DkB+VF,kDAIA,YAHE,UAGF,8CAKF,qFlBzSA,yDkBgTA,WlB9SI,mCAFJ,WkBoTA,ClBpTA,2CkBoTA,kElBpTA,2DkBwTA,oBlBxTA,uBkBwTA,gFE7gBE,aACA,CAFA,UACA,CADA,SAEA,wCAGA,4D5B6gBA,C4B7gBA,mBAFA,O5B+gBA,yC4BzgBA,+MAUA,2BAHE,iBAGF,yEAUA,aACA,kFAGA,OACA,2FAIA,cACE,0FAYF,YACA,4DAIA,yDAOF,6DACE,wDAKA,8FASA,kEAGF,uCAIA,iEAKA,yGAIE,oCAGF,kDAEE,6CAQE,mBADF,YACE,eAIJ,cACE,YAGF,kBATE,UAKF,oBAPE,iBAEA,CAMA,UAGF,iHAKE,0BAIF,oDAKE,kDAGF,yEAGE,CANA,YADF,yCACE,CAMA,8CAIF,kHAGE,6CAGF,2GAKA,wJAMA,8D3BvGc,e2B4GZ,4BAGF,CAKA,sEAKA,CAlBA,CAkBA,uHAMA,2CAEE,iCAEA,qBACE,CADF,mBACE,sJAQJ,+DAEE,cAGF,sDACE,4BAOF,yBAHE,WAGF,CAHE,+BAGF,cAEE,gBANF,gCAHE,iBAGF,CAME,6CAGF,CATA,UASA,qBAEE,wBAGF,gDAEE,gBAGF,8CACE,yBAGF,2BACE,+BAGF,wBACE,yDAIA,qBACA,+BpBpIF,WACA,CADA,WACA,6BAGA,YACA,CAFA,kBACA,aADA,OACA,CACA,kCoBuIE,2BACA,sCAGA,aACA,gDAEA,SACA,qHpBzNA,gBoB8NF,kBpB9NE,uEoB8NF,oBpB1NI,sBoB8NJ,iDAEE,wBAIF,0CAKA,2IAOE,+BAGF,kPAkBA,4JASA,2P5B8NE,yLQ3aF,kCAEA,wDAEA,kBACA,yEoBwOE,kBACA,8FAGA,8NpBtOF,qBACE,oGoB8OA,cACA,iEAIF,4BpB/PA,iEAIA,qBACA,yDoBiQE,sBAEA,6DAGA,WACA,gEACA,mEACA,4CpBnQF,uDoBqQE,0DpBlVA,gBAFA,eAEA,sBACE,0CoBoVA,gBpBxVF,iBAIE,SoB0VJ,cACE,CAVA,oBpBjVE,CADF,oBoBqVE,uBpBpVA,CoB2VF,YAGF,CpB/VE,eoBqVE,CpBpVA,qBoB0VJ,CpB7VE,iBAEA,CoB+VF,4DACE,CpBlWA,UoBkWA,wC5B6IA,iF4BtIA,sCAIA,2BACA,oBACA,iCAGA,0BACA,sCAEA,oBACA,8HAOA,sBAEA,sLCtcF,cACA,6CAIE,8JD6cA,wNASF,YACE,sBAUA,aAEA,CARF,iBpBjbA,iBoBobE,oBACA,CpBrbF,mBoBobE,CACA,eAEA,CAEA,uB3BrcM,wB2BucN,8DAQF,mBpBzbE,uBAEA,iBoBibA,gBpBnbA,SoB+bF,eAZE,oBpBnbA,CoBybF,iDAMA,cpB/bE,UAGE,iBoBsbJ,YAMA,2DAMA,yJAWE,CAvBF,YAuBE,4C5B6CA,kF4BrCA,sBAEA,iCACA,0BAJA,YAIA,0BAYF,kBACE,CAVA,uBACE,gCAGF,CAJA,SAaF,eAfE,qBAWF,2BACE,sBAGF,CAfE,SAEA,CAIA,iBACE,aAIJ,CAJI,QAQJ,kCAKA,sFAKA,2CAdA,YAcA,4CAIA,iEACE,oBAGF,qEAEE,oBAGF,gEAEE,0DAGF,qCAEE,oBAGF,mGAGE,6CAUF,kBpBjfE,CoBufA,wBACA,qBACA,YAXA,YAGF,CAPA,iCAOA,cpBjfE,6BACA,CoByeF,yCAeE,aACA,CALA,oBAEA,CAHA,iCACA,CAXF,eAIE,UAYA,sB3BtjBM,C2BujBN,eAVF,UAUE,qCAKA,SACA,C3BzjBQ,c2BsjBR,CACA,kBACA,CAFA,eACA,CAHA,aAKA,2CACA,mGAEA,wBAEA,6MpB7hBE,6DoBsiBA,+EAOF,wBACA,uCAIF,iCAIE,wBAGF,CAPA,oCAIE,OAGF,gBAPA,iBAGE,QACA,CAGF,qDAHE,WADA,YAIF,oDAIE,sCAGF,qLAME,mBAIF,2HAIA,kBAEE,8DAGF,gBAEE,0BAMA,a3BhoBM,C2BmoBR,eANA,+CAGE,CAHF,2DAMA,oDAEE,yBAEA,yEACE,iCAEA,wBAIJ,qDAEE,wBACA,4CAGF,qKAQA,kFAKA,wFAGE,wBAGF,yEAEE,4BAGF,wKAMA,8IAMA,wBAGE,kCAYF,mCAKA,CALA,6BAKA,cAXE,aACA,CAUF,gB3BnsBU,a2B2rBR,CAQF,gBAEE,CAFF,cAdA,6BACE,oBAEA,CACA,eACA,CACA,mCAUA,oBAGF,mHAME,mBACA,wCAQF,kCAJA,yBAIA,2IAWA,kSAmBA,0MAOA,mMAMA,8GpB/iBI,+DAPJ,qBoB6jBA,uKEzyBA,wBACE,qEAOF,yFAKA,6TASE,4BC5BA,wEAMF,+CAUA,qGALA,wBAKA,CALA,2BvB8EE,8GuB9DA,wBACA,CAHA,2BAGA,mEAGA,yGAIA,4BACA,yCAME,YACA,CAFA,YACA,CAJF,iBACE,CACA,UACA,CAFA,OACA,CAIA,kCACA,2BAEA,+DACA,qFAGA,2DAbF,UAcI,mDAIJ,eACE,uBAGF,mBACE,uCAEA,oLAOF,WACE,qRAgBA,WACE,mEAIJ,yGAOA,4EAEA,6BAGF,CAEE,+IAIF,2CAMA,CAIE,8FAOF,gBAvBA,CAuBA,qBAIA,qiBAkBA,6LAOA,sCAaE,kBACA,CAGF,4BAKA,CALA,iEAKA,cAXE,mBACA,CAVA,kCAGF,qBAHE,mBAGF,CAYA,SAZA,6BAIA,qBAGE,eACA,CACA,kBAGF,CARA,iBAEE,CAWF,oCACE,8CAIA,oBAdA,UAcA,iCAIA,oCAHE,cAGF,YAHE,OADF,iBACE,OAGF,2BACE,oBACA,gCAIJ,sEvBiDA,CuB1DI,UvB0DJ,uEuB1CA,0DvBiDI,YiB1PN,iCARE,oBAIA,yDAJA,SAIA,uCAJA,wCOSE,iCAGA,iCACE,aAIJ,iFAME,wBxByBF,ewBzBE,SxByBF,oCRugBE,+DgC3hBE,0CAEA,kBAEA,8FAGA,2DAMA,gCAGA,CALF,kCAEE,CAGA,6BACA,sCAGA,kCAFA,mCAEA,+BAGF,wHAOA,QACE,kCAcF,wBACA,WACA,CALA,aACA,CACA,YAHA,MACA,CAFA,iBACA,CAEA,cACA,CAHA,SAMA,gDAEA,YAEA,yTXtDF,4BAEA,8HAWA,wBACA,6MAIA,yDWkDE,2DX9CF,kCW8CE,iBX7CA,8BW6CA,eX3CF,eW2CE,uBXtCF,oBALA,SAKA,yHACE,YA6KF,0DAGE,wBAKE,WACA,CAPF,SAOE,gEAwBJ,kHAoCI,wBACA,oGAEA,8EAYJ,2EAsBI,2BASE,8DW/OJ,2BxBlCA,YACA,kBwBoCE,gCxBlCF,iBwB+BA,gBxB9BE,CADF,iBACE,+BwBoCF,0DAEE,CAFF,qCAEE,iCAOA,kBAJF,oCAIE,uCAJF,kBAIE,gBAJF,yCAIE,mCAJF,UAIE,mCAGF,+CAPA,SAOA,gCAGE,gCAHF,8BAGE,YAHF,oCAGE,4DAHF,qBAQF,gE/BuHa,kBgC3OX,CADA,cAFA,iBAGA,qCAIA,mBAEA,eAEA,mBACA,oDAFA,YACA,qCACA,WAFA,kBACA,YACA,kPAmBA,SACA,CAhBF,wBACE,uBALA,oCAiBA,kBACA,CAbA,WAWF,aARA,iCAEE,CAVA,WAIF,CAYA,qBANE,mBAMF,CAEE,WACA,CAnBA,iCAgBF,gBACE,CAbF,sBACE,kDAGF,4BARE,wDAoBA,4DAMF,sCAGE,UACA,kCAGA,sHAGA,uFAKF,kEAEE,0CAIF,2EAEE,CAFF,UAEE,8GAQA,QACA,SAGF,kEAIE,CAJF,6CAIE,sCAGF,wHAIA,gBAEE,uCAGF,oDAGE,yBAEA,gFAEE,oBACA,qBhChCO,CgCoCX,2GhC7CQ,agCsDR,0JAQA,8DAEE,uDAIF,wJAQA,8DAMA,yHAME,CANF,yDAME,sBACA,aACA,WAMF,2RASA,+LAaE,CA7BA,UA6BA,yCAGA,sDzBtCF,mGAXA,4BAGA,kDAKE,kByBgDA,CzBnDF,YAGE,CyBgDA,SACA,wBAEA,+DzB/CA,eyBmDF,gBzBpDA,WACE,CyBgDA,iBzBjDF,CyBoDA,8FAKE,CzBzDF,UyByDE,qEAOF,oFAKA,0IzBlJE,8EACE,YyBqJF,CAJF,WzBjJI,CyBiJJ,OzBjJI,ayBiJJ,UAIE,sKAEE,0DAMF,kBACA,gEAUF,iBACE,uEASF,WACE,CADF,UACE,8EAQA,wBAIF,CANA,0BAEE,CAFF,WAMA,oFAIA,yEAKA,kEhCzBa,SgC2BX,wGzB9MA,WACA,CADA,cACA,gFyBiNF,wHAKA,qCAEE,mNAUF,6BAHE,WAGF,8PAQE,2GACA,6VAOF,uBAEE,gBACA,CACA,eACA,CALF,SAQE,eAfA,qBAcA,wBACA,CAfA,SAOF,ChC3RiB,mDgCoSf,CAHA,UACA,WAEA,+CACA,2CACA,uEACA,0lBAMF,YzBlRE,8BAEA,0CyBgRF,gCzB/QI,WyBmRJ,2BAEE,wCADA,UACA,0CACA,qBACA,CAFA,4BAEA,gFAIF,WACE,sDAKA,eACA,qEAKA,qEAMF,YAHE,WAGF,iGAMA,yBAIA,oBAEE,sCAIF,wLAOA,8LAMA,+FAME,CANF,UAME,0GAkBF,4GAOE,6FAMA,+LAkBF,6HAzCE,gDAIA,yCAGA,wEAiDA,CAfF,mBAKE,4CAHA,QACA,aAEA,+BAFA,OAEA,oBALF,iBAEE,SAQA,6fAKA,+GAGE,yBAGF,kUAME,UhCrOS,CgC+NX,gCAME,CAGF,2KAKA,4BAJE,eAIF,sUAIE,yBAIF,2OAIA,6DAOA,wFAPA,iBAGE,aAIF,kDAEE,CAFF,cAEE,0DAGF,+EAIA,oEAHE,MAGF,gCAJA,uCACE,eAGF,oFzBtbA,iBACA,gByBybE,qBzBvbF,CyBubE,mBzBvbF,kDyBmbA,4BAOA,olBAOA,muBAkBA,0BAHE,UAGF,0KAaF,qXAsBE,8IAKF,0MAeE,cAIF,4HC9kBA,SACE,gDAKF,gKlCuiBE,8LkCtgBF,wBlCsgBE,CkC1gBA,yBACA,oBlCygBA,iNkC5fA,oBAGF,8XAoBE,wBACA,CjC1CQ,yjBiCuFR,4BACA,CAHA,6BACA,oBAEA,8HAQF,WACE,CADF,yBACE,4FAQF,8TASE,WAIF,iBAJE,UAIF,sF1BxFE,WACA,iBAEA,kC0BqFF,C1BvFE,+B0BuFF,wJAMA,qHASE,mHAQF,wGAOA,4ZAoBA,wBAIE,CAJF,eAIE,6CAJF,0DAYE,CARA,sBAQA,yBALA,eAKA,+BAOA,YjCrJkB,WiCqJlB,CANE,UAMF,2IAKF,gCAEE,kBAIF,sMAKE,aACA,8CAIF,mEAEE,sBAGF,iEAKA,mFAEE,iBAOF,4CAIE,cAGF,CAPA,oCAOA,wGASA,kBAIE,CAJF,gCAHE,4BAGF,CAIE,cAPA,kBADA,kBAQA,CACA,8EAOF,oDAIA,8CAEE,gXAcF,6GAYA,0KAOA,4GAIE,YACA,qFAGF,qFAOA,ugBAsBE,SACA,4GAKF,6IAKE,wBACA,gHAMA,wBAIF,wQAMA,0IAWA,+JAaA,iBACE,wEAIA,+BAIF,uEAOE,sBAFA,4BAEA,CAPF,yBAOE,+DAMF,qIAME,cAIF,gPAWE,wNAWF,sBAIE,2LAUA,kHAgBF,kBAVA,oBAUA,CAVA,YAUA,qFAMA,YAHE,UAGF,mMAWA,iCAEE,CAFF,YAEE,+LAYA,WAEA,oBAMF,CAXA,UAWA,6FAMA,2CACE,CAJA,YAIA,6LAYA,YAGF,wBAHE,mBAGF,iGAMA,+GAYA,4OAaE,wNAiBF,8GAMA,sBACE,0GAUF,yBAHE,+BAGF,CAJE,4BACA,CAGF,cAEE,sIAWF,wPAiBA,gCAHE,4BAGF,2EAMA,+BACE,iFAQF,0KAgBA,mBALA,+BAKA,CALA,6BAKA,oFAKA,mHAOA,cAMA,kHAKA,uFAKA,uBAEE,mElC9JA,iBkCiKF,alCjKE,wFkC4KF,qCACE,2FAMF,aACE,CAIF,mGAIE,mLAQA,iBAHE,aAGF,mFAKE,gBAEA,qBACA,oGAOF,2DAIE,uBACA,CAFA,oBAEA,8DAIA,sBACA,CAFF,oBAEE,kEAIA,uBAGF,CAJA,oBAIA,2CACE,WAGF,2FAIA,wDAKA,qOAEE,CAFF,oBAEE,wCAKF,kHAMA,0DAIA,oGAKA,4CAGE,yGAKF,0WASA,8EAIA,qDACE,CADF,mBACE,2FAMA,wDAIF,4FAMA,+DACE,4EAMF,gCACE,CAGF,qBAHE,mBAGF,yRAGE,aAIF,seAWA,wBALE,qBAKF,wHAEE,gBAKF,8MAOA,gVAaA,gJAKA,mE1B14BF,eACA,6E0B84BI,uJAMF,+XAcA,yGAMA,wJAQA,mBALE,WAKF,qnBA2BF,qfC98BE,WAIF,kKAMA,iLAOE,8KAaF,uKAME,wKACA,yZAKF,CALE,oBAKF,8JAQA,+LAYA,+JAWE,uBAHF,YAGE,qYAmBF,kDAEE,eAIF,oHAIE,QACA,6RAoBF,uFAGE,wBAMF,kFAIA,+JAUA,2HAWA,kCAHE,gBAGF,CAHE,cAGF,iGAMA,iGAKA,YAEE,CAFF,eAEE,yDACA,uT3BjDF,kJ2B8DE,mMAUA,2FACA,uKAIF,oHAOA,2IASE,gGAGF,CASA,gJAHE,4BAYF,CATA,8CASA,mGAKA,yHAEE,CAFF,gCAEE,aACA,oDAIF,sHAKE,ykBAKF,0LAQE,mCACA,yEAGF,gCAGE,yBACA,4DAQF,oDACE,qGAMF,2BAQE,kBACA,CAPA,uBACA,gBACA,gBAGF,CALE,SAKF,eANE,qBAMF,oBACE,wBACA,sBACA,iBAIF,uBAPA,UAOA,sFAGE,kCACA,clCzPkB,uBkC0PlB,YAIF,wKAME,qGAIF,sLASE,mBATF,gBAQE,CACA,UACA,CAFA,eACA,CADA,OARF,kBAQE,WAEA,qKASA,2FAMF,oJAQA,uK3B7HA,sB2BmIE,4B3BnIF,C2B6HA,yB3B7HA,iR4BhPE,2I5BqIF,4L4B9GE,iMAIF,wB5BqCI,CADF,+B4BpCF,C5BkCE,4BAGE,0F4BtBJ,mDANA,4BAMA,6DAeE,mBAHA,+BAEA,CAJF,4BAEE,CAIA,uEASA,kBALF,CAKE,oCALF,+PAYA,yPAUA,mCASA,oVA8BE,kBAEA,CAHF,mCACE,CALF,4BAIA,CAGE,wBACA,qFAUF,wBAEE,CAFF,gCAJE,4BAIF,CAEE,wBAGF,gHAOE,gCADF,qBACE,sLAWA,0LAQF,uCARE,CAQF,uDAOA,yEAaA,kBAEE,CARF,uBACE,gBAKF,iBAMA,yBAZA,SAYA,cANA,eAXE,oBAKF,CAMA,aAMA,yDANA,gBAMA,kCAME,gGAKF,CAjBA,UAiBA,+GAIE,sC5BgCF,kE4B5BA,uEC5NA,SACE,iEAKE,8DAUJ,mBATM,YAKN,YACE,CAGF,6B7B0HA,C6B7HE,eAGF,CAJA,U7B8HA,kFAIA,wO6BvHE,yJAYF,yJAaE,kFC9CE,kBACA,sI9B8JJ,sBAEA,CAHA,eAGA,gD8BtJI,a9BwJJ,4SAQA,uFACE,4DAKA,gFAGA,+BAFA,kBAEA,CAFA,eAEA,qCAEA,oBAXF,gH8B5JI,qGAIE,C9B8JJ,a8B9JI,8FAEE,aAMR,4FAIA,WACE,6CAGF,aACE,2F9BwHF,sIAOA,+NAIE,mBACA,qEAGF,qDAIE,eAEA,iJAGA,2CAEA,4CAXF,uBAYI,iCAZJ,SAYI,c8BxIJ,C9B4HA,8B8B5HA,gG9B+GA,cACA,sCAEA,yB8B9GE,CACA,eAEA,sC9B6GF,6NAGE,YACA,gCAIF,0FACE,iCAIA,iBACA,iGAGA,8CAEA,eAXF,YAQE,SACA,CAEA,oBAJA,iBACA,CAGA,UAXF,qQ+BzKE,wCACA,wFADA,6FAMF,mBACE,YAPA,YAJA,MACA,CADA,wBACA,UAGA,CAOA,8CAGA,+HAHA,gFAGA,yJAMA,oBAGA,oEALJ,sCAEI,+DAEF,kBACE,sEAMA,+CAGA,cAJF,SACE,oBAEF,CAJF,iBACE,CAIE,0PAIJ,4BACE,6EAIE,kDAJF,2CACE,+BAGA,mBAHA,iBAGA,kBAHA,8CAGA,uCAIJ,4EAEI,sBAOJ,4FAWI,kBACA,CAFF,WACE,CACA,eACA,CAEA,WACA,iBACA,CAPF,UAGE,mBACA,CAVF,iBAMA,CAIE,WAGA,qPAcA,WACA,eAGF,a/B5CA,mF+BqDE,kDAEA,2CAGA,mBACA,WAEA,CATA,YADA,OADA,uBACA,YAUA,8C/BnDA,CAEA,sC+BiDA,kFAKF,sBACE,oDAIA,UAJA,yEAIA,IAMA,SACA,CAPA,+BAKF,wBAEE,0BAGF,GAME,SAGF,CATA,wCAEE,iCAOF,IAIE,UAJF,+BAGE,wBACA,iCAKF,8DAEE,wCACA,iCAIF,2DAIA,oEAEE,iCAGF,oCACE,GAGF,uCAIA,gCAEE,mCAIF,wBvCsYE,sEuClYA,gCAEA,IACA,+BAEA,wBAGF,qCAEE,+BAEA,wBAEA,2CAGA,gCAEA,oFAEA,2EAEA,wCAEA,yEACE,IAIJ,uDAEE,6BACA,GAGF,6EAEE,+BvC4VA,yBA0LsB,CA1LtB,yCuCtVA,aACA,uBACA,gBACA,uCAIF,2BACE,oBACA,gBCnOiB,SDqOjB,sBAeA,sBAGA,eACA,CATE,QAIJ,iBAbI,qBAIJ,CAIE,aACE,CAJF,aASA,UARA,eAEA,CAHA,SACA,CAPA,iBACE,CASA,kBASF,yBACA,CANF,iBACE,CAVF,gBAeE,qDAGA,gBACA,CAGA,UAHA,gBACA,mBAEA,0BAEA,kBAIE,CAGF,wB/BnNE,a+B4MF,uEAOA,aAHE,sBAGF,C/BtNA,oBAEA,e+BoNA,C/BtNA,2BAEA,C+BoNA,YAPA,a/B5ME,gC+BuNF,+DAEE,+BACA,oBACA,mCAKF,4DAIE,qDAKF,4BAGE,cADF,iBACE,aAIJ,iEAEE,iCAIA,cADA,WACA,8BAEA,UACA,eACA,YAEA,8DACE,UADF,SACE,wFAIA,gBAIF,4BAHE,4BAGF,6CACE,ctCpSa,0DsCwSf,kGAEE,WAIJ,oCACE,+BAGF,yCACE,kBAQF,+CAKA,CALA,2BALA,kCAKA,cALA,oBAKA,CALA,oBAKA,+BAKA,6CAwBE,aAlBF,mBAiBA,eApBE,YAGF,CAKA,avC6ME,CuCjNA,sBACA,CvC0YsB,iBA1LtB,yDuCxMA,mBAOF,2DACE,2CAhBA,YAGF,CARE,SAqBA,wJAIF,kHAEE,sCAIA,gCAJA,iBAGF,iBACE,sCADF,oBACE,CADF,oBACE,+JAIF,iDACE,4EACA,sTAKA,sLAIF,kFAGE,wBACA,CvCmKA,auCpKA,CACA,mBACA,2BAGA,eACA,CAFA,UAEA,iCACA,kCAEA,6BACE,YAGF,mC/BzVA,+B+B4VE,uDASJ,WACE,eACA,CAPF,W/B5VI,Y+BiWJ,gBAEE,StC5XQ,CsCqXV,0BAKA,CAZE,iB/BrVE,a+BoWF,mEASE,oCACA,CAHA,qCAEA,CACA,WAJA,aACA,CAHA,iBACA,CACA,OAIA,C/BjXF,8J+B6XA,4B/B1XE,wB+B0XF,oCAKF,2BAEE,sCAGF,wBAEE,mEAGE,SACA,2GASJ,gD/BvZE,C+BuZF,a/BvZE,0C+B2ZA,YACA,+BALF,4B/BnZI,C+BmZJ,S/BpZE,iC+BoZF,yC/BnZI,uB+B2ZJ,8D/B9ZE,mGAGE,4F+BuaJ,4GAKI,wCAKF,iC/BjQF,wD+BqQA,kG/BrQA,qPiC/OA,6FASA,CjCsOA,uC+BgRA,gCEtfA,yDAKE,sGAOA,+FAKF,gBAUE,6DAVF,kCAUE,0DAPA,mBAOA,ySAOA,8GAUF,yBALA,gBAUA,WAVA,aAEE,CAGF,cALA,2BAKA,kCAGE,2BAEF,CARE,YzCyfA,2LQrdA,0DiCvBA,YACA,wBAGA,wBACA,CAFA,aAEA,yBACA,wBAEA,CAFA,UAEA,0DAEA,6DjCdA,eACA,CADA,SACA,kFAGE,kBiCeF,CALA,6CjCVE,UiCeF,sCACE,iFAMF,sEAIA,CAJA,2DAIA,sCACE,kDAGF,2CjCjEF,kBiCiEE,CjClEF,UiCkEE,mCjClEF,aACA,mBiCwEA,yCAEE,4BAGF,4BAIA,mFAOE,4CACA,gBAGF,wBAKA,2CAKA,sBAME,4CAGF,eACE,CAGF,oBAEE,6BAGF,CA/BE,CA+BF,8EAKA,+EAEE,YAIF,qDANA,iBAMA,iCjCPA,kBACA,CAFA,YACA,CAFA,iBAGA,sHAGA,2aAcE,qGAGA,YAEA,kEAXF,yFAYI,aiCXF,yBjCbF,wBAEA,CAJA,WAEA,CAFA,+BAEA,CAEA,ciCgBA,cALE,2FACE,kBADF,iBAKF,cALE,0FACE,CAIJ,cjCrBA,CiCiBI,iBAIJ,CjChBA,6CAEA,sJAKE,kEAIA,oBAEA,mCAGA,0JAGA,4DATF,qDAYI,mCA+DJ,iEiC5DA,gDCjLA,uBACE,yDAGA,2EAEA,Y1CmiBA,qB0CriBA,iBAEA,oB1CmiBA,6D0C/hBA,CAJA,SAIA,oKAMA,oDAKF,4DlCgEE,kBkC5DA,yDAKA,gCACA,+DAGA,qBACA,oGAGA,gBACE,0EAaF,kBAIF,CALE,WACA,CAIF,gBAPA,SAEE,CAKF,oBAPA,kBAOA,4QlCsBE,0BkCJF,qGAQI,kDAMJ,2CAEE,mBAEA,WACA,CAZA,WACE,CADF,OAHE,iBAGF,kBAYA,qFAIA,uFAOF,qClCtEA,iIkC+EA,iBACE,oGAQA,iBAGF,0CAME,mBADA,YACA,gBACA,eAHA,SACA,CACA,oBAHA,iBACA,CAEA,eACA,uOAQA,kDlCnFA,2CAGA,+BkC+EA,WACA,CAHA,OAFF,iBACE,MACA,CAEA,WlC/EA,8CACE,uCR4eF,sE0ClZA,eACA,sEAKA,uBACA,eACA,iClC1EA,iBAnDF,CAkDE,kBACA,CADA,oBAlDF,gDRugBE,oF0C/XA,iBACA,gBACA,CACA,oBACA,CAFA,mBAEA,sJASF,QACE,sDAGF,4BAQE,6IAGA,8BAEA,CARF,mBACE,kBAEA,CAKA,0DAGE,CARF,UAQE,6CACE,oCAIJ,eACE,qCAGF,0GAKF,QACE,mBAGF,2BlCzIE,wCACA,SkC2IA,qBACA,2BAEA,wBACA,yBACA,oBACA,sCAEA,uBAEA,oBACA,4CAGA,kEAQA,cADF,uCACE,6BAKA,YACA,CAHF,kBACE,YACA,CADA,QAEA,kCAGF,2BACE,2BACA,wBACA,2BAGF,6BlC5ME,wCACA,mCAEA,wEkCyMF,sBlCxMI,qBkCiNJ,oDAGE,sCAEA,WAIF,kClC9NE,oBACA,CkC6NF,0ClC7NE,gCkCkOA,yBlChOA,4DkC2NF,oDAeA,qGAKA,0BAIA,gBAHE,WAGF,8BACE,CAJA,UAIA,yDAGF,0DAGE,+BAGF,yCAUA,aACE,wBAEA,CAFA,gBAGE,kBADF,sBACE,uBAGF,mBACE,uCAfF,iBAGF,iBACE,oBAGF,CAJA,mBAsCA,CA1BI,mBAiBA,wBAIJ,CAjBE,mCAMA,CAEE,YAIF,sBACE,CAIJ,gBALE,aAZA,kDAiBF,kCAXE,kBAWF,oDAKA,CAVE,WANA,YAgBF,yCAEE,qBAGF,2DAGE,iBACA,oBACA,UADA,iBACA,CACA,2IAOE,6CAGF,wFAMF,wBACE,2BAGF,wBACE,qDAGA,gFAIF,sCAUA,4BAKA,CALA,wBAKA,eAVA,cAUA,gBARE,aAGF,CAKA,gBAEE,CAFF,cAbE,6BAGF,oCAEE,CAGF,mBAOE,oBAGF,oElC9XA,sCkCmYA,yCACE,wBAGF,sCACE,YACA,uBAGA,CAJA,oBAIA,kDACE,uBAGF,CAJA,oBAIA,iDAIA,SAJA,yBACE,oBAGF,4GACE,oBAGF,qEAMF,2BANE,kBAMF,wElCtSA,SAJA,yBACA,oBACA,sBAEA,uMAIE,wBACA,6CAGF,qEAIE,iCAEA,qGACA,yDAEA,gBAEA,wCAXF,iEAYI,uDA+DJ,mTkCoOA,oHC5dE,6CAIA,iDADF,4BACE,CAJA,+BAGF,CALF,oBAEI,CAIA,sEAMA,CAVA,UAUA,sDAFJ,6CAEI,wEAMA,YAFJ,SAEI,sEAFJ,CACE,yCAWA,aACE,CAXA,qBAKJ,YALI,gBAKJ,sCAMI,iEAJA,aAIA,uEAMA,4JC7BF,uFACA,mCACA,+GAEA,uCADA,aACA,4DCAc,wBDGd,CAEE,mKACA,0HAGE,uEEIF,mBADF,WACE,gBACA,CAFF,UAEE,mBACA,CANA,iBAMA,kNFGF,iKAIA,2CACE,+BALF,sDAKE,8CACA,uCACA,uEACA,qCACA,sIAEA,CACE,iCECJ,YACE,CAQF,wCACE,eAGF,CFfE,CEeF,0BAEE,iCAIF,kFACE,EAQF,iCACE,GACA,+BAGA,wBAEA,EAIA,oEAGF,yBCzEA,E/C4iBE,2F+C7hBA,EvC+FF,8BAEA,GACA,2BAEA,IACA,0BACA,EuCrFE,aAGF,+BACE,wBAEA,qC9CCQ,C8CKR,4BACA,2CAEA,iEAEA,+DAKA,oHAIE,yBAGF,kCACE,2BAIJ,4DAKE,uGAIE,wBAIJ,yDACE,gBAGF,0B/CydE,sE+CrdA,sBACA,cAGF,4BACE,0CAIF,4BAIA,+IAWE,oHAMA,+BACA,2BACA,oBAEA,+BACE,uBAGF,qCACE,6BAGA,kCAGF,oFAKA,kD/CmaA,mD+ChaE,8BAEA,sBACA,eAKJ,wEAEE,eACA,uCAIA,cACA,0BAIF,oCvClFE,8FuCuFA,kEALF,mDvC9EI,oBuCuFJ,wBvCxFE,kBuCwFF,kCAMA,CAHE,avC3FA,YuCwFF,uBvC1FE,MuC6FA,CvC9FA,eACA,MuCgGF,0DACE,CAJA,UvC3FA,CAHA,YuCkGA,4BAIF,sGPzKmB,aOgLjB,CAPF,iBAEE,gBAGF,6DAEE,4BAGF,8BAMA,4BAJE,WAIF,YANA,gBAEE,SAIF,CANA,kBAMA,sCANA,SAMA,oFAOA,6BAPA,oBAIE,CAGF,+H/CiWE,C+CpWA,U/CoWA,uD+CxVF,gJAOE,yBAIF,0C/C6UE,iF+C1UA,2EAKA,0BAGF,wGAIE,wBAQA,aAEA,CAPF,iBACE,gBACA,CACA,oBACA,CAFA,mBACA,CACA,kBAGA,+CACE,mCAIJ,+CAEE,eAEA,6DvClNA,gBAEA,0BuCqNA,qBALA,kBvC/ME,CuCoNF,yBALA,aAKA,mCAEE,+BAIJ,CvC1NI,mBuCoNF,CALA,gCAWF,qBACE,qCAKF,+DAGE,aPrQiB,COuQjB,iBADA,QACA,CADA,eACA,CACA,qEAIA,cAEA,8DvClOA,gBACA,CAEA,qBAFA,mBAEA,CuC+NA,iBvC/NA,euC+NA,0CvC9NE,8DuCuOJ,eAHE,iBAGF,8BACE,eAGF,CAJA,eAIA,4CAME,wBACA,CAFA,mBACA,CADA,gBAHA,yBAEA,oBACA,CAEA,iBAGF,sCACE,2CAEA,oBvCxEF,6DuC6EA,oBvClEI,uDAXJ,sDuCiFA,gEJ3UF,gBACE,gIASF,wEAMA,4BAEI,CANA,gBAMA,qFAOA,gMK1BA,oBAFJ,oICkBE,gBjDuiBE,CA0LsB,eA1LtB,CA0LsB,oBA1LtB,CA0LsB,mBA1LtB,CA0LsB,cCvsBd,CgDpBV,+DAGE,kFAKF,sEAeA,cALE,cANA,iBAWF,eACE,CAVE,oBAIF,CALE,mBACA,CAIF,kBACE,CADF,iBACE,kBAKF,2FACA,aACA,CADA,oBACA,4BAEA,kBACA,CAHA,aAGA,sBACA,CAHA,gBACA,CAEA,kBACA,8CACA,6DAMA,YAEA,CAHA,cAGA,qDAKF,+DAIA,wEAEE,4EAKA,mBACE,8CAEA,YCtEJ,CDsEI,YADA,UCrEJ,4CAUA,alDkiBE,+CkDliBF,ClDkiBE,YkDliBF,eAVA,0BlD4iBE,kCkD5iBF,YAUA,kDlDkiBE,6CkD7hBF,sCAIA,iDAKE,oBAGF,sDAIA,uEAIA,8CAKA,uBAGE,yBACA,CAPA,aAGF,yCAEE,CALA,eAGF,CAEE,YAEA,sCAIF,kIAKA,yBAGE,8BAQF,oDAGE,eP7EJ,COkEI,CC5DF,0B3CyCA,sB2CtCE,oBACA,GACA,mBACA,sBAGA,kBAGF,CALE,YACA,gBACA,CADA,UAIF,2B3CyCE,a2CtCA,iC3CoCA,CAEA,qBAFA,mB2CpCA,gCAMA,kBACA,CAFF,YACE,CACA,sBAGF,mBACE,C3C4BE,iB2C5BF,0ClDGM,YkDCN,kEACA,iBAEA,wB3C+BA,kDAGA,4C2CtBA,wBlDRQ,CkDYV,wCACE,iBAGF,CApBE,+BAKF,6DAEE,6BAGF,oDAEE,CAQF,gCACE,yBAEA,4BAEA,YAGF,CAJE,WACA,CADA,UAIF,oCACE,0DAKF,4LAMA,kBACE,oBAGF,CAJA,qCAIA,uFnDmeE,iBmDheA,gBACA,CAGA,oBACA,CAJA,mBAEA,CAEA,8EAKA,cACA,gBAGF,CACE,gBACA,CAFF,eAEE,4BAEA,kBACA,iBAGF,aACE,mBAEA,gBACA,mCASA,oBACE,0CADF,kBC5GF,2DAKE,iBAEA,kEAIA,yBAEA,wBAHA,YACA,CADA,iBAGA,iFAIA,2BAEE,oGAIA,WANF,CAME,4BANF,8DAYA,iTAWE,yBAIJ,sDACE,uDACA,sNAMF,CANE,YAMF,iBACE,kBAEA,uBAEA,yBAEA,sCAEA,0CACA,uBAEA,6BACA,kBACA,qDACA,CADA,8BACA,0DACA,+RAGE,wBAGA,uClD+CA,kBkD3CA,2BA1BJ,kBA+BI,ClDsCA,wBkDrEJ,CA+BI,6BAGF,oDAQF,wBpDqoBwB,CA1LtB,mNoD5bA,0E5CnDA,gBAEA,yB4C0DF,Y5C1DE,iB4CmDA,gB5ClDE,qB4CyDJ,C5CzDI,oB4CyDJ,gCAEE,iBpDibA,qFoD3aF,iBACE,wBAQA,kBACA,CAHF,YACE,YACA,CACA,kBACA,CAHA,UAGA,mBAKF,wBpD2ZE,CoD9ZA,WAGF,gBAJE,UpD+ZA,CA0LsB,+BA1LtB,6CoDxZA,WACA,YpDuZA,kBoDjZA,CAQA,4CACE,CpDwYF,0BoDjZA,sBAQA,CpDyYA,OoDxYE,UAZJ,epDoZE,MoDxYE,2ElDxCA,kBkDqCJ,CpDqkBwB,WA1LtB,CoDpZF,YASA,uBAYI,SlDjDA,2IkDmEF,8XAmBI,qBlDtFF,4CkD2FA,+BAOJ,wBlDlGI,yDkDyGA,iDAPJ,+FAuBA,sBAOE,yBAJA,YACA,CAGA,0BAEA,iCAEA,CAJA,4BAIA,6BAMF,qBAbE,eAGA,CANA,cACA,MACA,CAcF,yEACE,gEACE,2DACE,mDAKN,mGAMA,CAxBE,UAwBF,yBACE,qBACE,WAGF,gBAJA,eACE,UAGF,0BACE,qBAQF,cACA,CADA,SAEA,0BACA,qBACA,UACA,gDAIA,gBACA,oBAkBA,aAEA,CAlBA,iBACA,CAiBA,eACA,iBACA,cACA,CAhBF,qBnDtEa,mBmDsEb,CASE,kBAEA,CAKA,eACA,CATF,iBACE,CAPA,kBAMF,CAPE,iBACA,CAFF,iBAiBE,0BACA,6CAEA,+DAEA,+EAME,iBAIJ,iBAIA,qBAJA,mBAIA,CATI,iBASJ,CACE,8BAEA,kBAGF,mBAIA,oEAHE,kBAGF,CAJA,gBAIA,0B5C/GI,aAFJ,sD4CwHA,C5CxHA,oB4CwHA,oB5CxHA,4BAMI,aACA,CAPJ,kC4C4HA,gB5CtHI,CANJ,eAOI,8D6CtPF,kBACA,+CAGF,eACE,yBAGF,yBACE,UAGF,gEAGE,CAHF,SAGE,0BAEA,yBACA,SAGF,+DAGE,iEAGA,eACA,yBACA,yBAGF,4DAIE,cAGF,CAJE,SAIF,4GAOA,iBACE,4DAGF,4DAEE,mDAEA,cAGF,CAJE,SAIF,mD7CEE,iDAGA,2D6CDF,iEAKA,C7CHI,Y6CGJ,0CALA,Y7CEI,M6CFJ,CAKA,mBAEE,CAXF,iB7CMI,C6CFJ,UAOE,8FAKA,kEAGF,wGAOA,mEChFA,gBAGE,CD+EA,sBC/EA,8CAGA,sCAGA,gBACA,wCAGE,YAGF,oBpDwGE,aoDpGA,gBpDoGA,gBoDxHJ,oCAmBI,gBAnBJ,4BpDwHI,YoDxHJ,CpDwHI,YoD5FA,QAIJ,CARI,cpDgGA,CoDxHJ,mBA4BI,CA5BJ,gBAgCA,gEAEE,CAFF,YAEE,kBAYA,4BAGF,CAJA,4BACE,CAGF,eAPE,YADF,gBACE,cAGF,CrDRe,iBqDCb,CAGF,QAHE,MAWF,0D9CNE,C8CFF,UACE,CAJA,S9CKA,wBAEA,wB8CIF,6FAKA,gCAGE,aAFA,cAEA,CAHF,aAGE,4BACE,8GAOA,YACA,qEAEA,uBAIJ,gBC1DA,mEAHA,CAGA,yHD8DA,+HC9DA,+SAGE,kBDiEA,oGAKF,4CC5EA,uDAGA,oLD6EA,mFChFA,6CAGA,gaDwFA,gHCxFA,oZAGE,eD0FF,sIChGA,kCACA,yBAEA,ymBDoGE,mBCjGA,6BDiGA,iMAKF,mFCzGA,6bD8GA,8SC9GA,0hBDqHE,4GACE,CADF,6BACE,gZA4BF,YACA,kJAiBA,kBtDsXA,CsDzXE,6BtDyXF,onBsD3VF,4KAIE,oBAMF,yEAGE,kBACA,CAFA,6BAEA,yZAsBA,iKASA,6qBAsBF,+K9CzBI,wG8CqCJ,4H9CzCI,kCAPJ,4D8CqDA,kB9CrDA,kB8CqDA,wC9CnDI,YgD9OJ,kCAIE,iCAEA,iBAEE,gBACA,CACA,oBAGF,CAJE,mBACA,CAGF,uDAIE,iBACE,gBtDsGF,qBsDxHJ,CtDwHI,oBsDxHJ,qBA2BA,mEAEE,oBAGF,mBACE,yBAGF,uDAIA,4IhDGE,aAEA,4HACE,wBgDGJ,0MDnCA,2GtDgCqB,CuDWrB,+JD3CA,mLAFA,kBAEA,mDAGE,YC+CF,CDrDA,qBACA,CADA,YAGA,uBCkDA,cDrDA,CCqDA,eDlDA,qFAGE,CAHF,uGCsDA,CAJA,UAIA,oEDzDA,iGAGA,iQAGE,oFANF,yIAGA,0PCkEA,0GDlEA,onBC0EA,oID1EA,waC+EA,6VD/EA,wtB/CqEE,gFgD0DA,kBACA,CAHA,6BAGA,0YAoBF,kzBxDsYE,mFChgBW,kBuDoKX,ChB/MiB,6BgB+MjB,mZhDgCF,6JiDzOA,mBAHE,6BzDwiBA,inByDhhBA,8FAGA,kDjD6BA,aACA,CAEA,kBAFA,eAEA,kCiDhCA,wDASA,kBACE,CASF,6BALA,YAKA,eAdE,aAIF,kCACE,sBAIF,iBAKA,CAVA,gBAHE,cAGF,CALA,iDACE,CASF,UAKA,6CACE,CAfA,UAeA,6CAKJ,qHAME,4FAKA,yBACA,oBACA,sCAGF,kFASE,oBAGA,kHAOA,4CjDyCF,+BAEA,kEiD3CE,iBAGF,CjDoCA,oBAEA,CAHA,mBACA,CAEA,qBAQA,CANA,kCiDhCE,WAJA,eACA,CAGA,mBADA,YjDuCF,yEiDnCE,+CAYA,WAVE,iBACA,gBACA,CAGA,oBACA,CAJA,mBAGA,CAEA,kBAGF,CAJE,iBAIF,wEAQA,kFjD9EA,wBiDsFE,6BACA,CjDpFA,4CiDuFF,eACE,4BACA,CAGA,4DAMF,gBAdE,CAcF,2GA8BA,kDjDtHA,CiDsHA,8CjDtHA,gBiDgHF,sBjDhHE,aACA,CiD0GF,mBAKA,CjD/GE,2FiDqHA,CAtBE,gCACA,CAqBF,gBANF,cAdI,oBAKJ,CANI,mBACA,CAcJ,mBATA,6BAIA,qBASE,iBAEA,CANF,kBAIE,CAEA,iGAOF,CAbA,UAaA,sCAIE,yBAIF,mHjDnHE,gEAGA,kBiDgHF,mGjD/GI,2CiDsHJ,8FAIE,gBAGF,+GAIE,+CAGF,gLAQE,kBAGF,CAHE,aARF,iBAWA,uBAGE,YACA,CACA,kBAEA,CANA,iBACA,CACA,QADA,OACA,CAUF,6DAEE,CAXA,UAWA,gDARA,mBAFA,YAEA,sBAuBA,CAfA,yBAIF,uDAGE,CAHF,SAMA,kDAKE,CARA,eANA,oBAGF,CAMA,oBANA,UAMA,kBAHE,UAQA,4CAGF,wEAOA,oCAHE,aAGF,gBAPA,iBAIE,aAGF,8CAIE,sCAGF,qCACE,iDAMA,aAIF,CANE,yBAEA,CAIF,2EAEE,+BAGF,oBACE,EAGF,uDACE,cACA,eAIF,uQAeA,4MAQE,4FAOF,qBACE,2FAUA,SADF,6CACE,sCAGF,0FxD3SW,oBwDiTX,mHAEE,+GAKF,iMAYE,oBAIF,oGAMA,uIAIE,yPAeF,wBACE,2BAEA,wBAGE,CAHF,yDAGE,yCAKJ,sEAOA,4BAIA,CAJA,MAIA,CAME,sOjDlRF,wBAEA,uGAKA,qHAKE,wBAGF,0DAKE,4BACA,0IAGA,gDAEA,WAXF,+CAYI,4BiD0QF,+HAOF,0EjD5MI,UACA,yQkDpPJ,2DlD8HA,YACA,kDAEA,SACA,UACA,CkD1HE,0LAIA,uIlD4HF,4BkDzHE,oNlD6CE,uEkDxCA,wFAUJ,6FAOA,yMAGE,oGAKF,8JAME,sEAGF,0EAGE,8CAGF,UACE,0CAKF,sBlDjCA,6CkDsCE,YACA,4BAGA,iBACA,qCAGA,kBAEA,CAFA,YAEA,gBAEE,aACA,CANF,SACA,CAEA,mBACE,CALF,iBACA,CAKE,UACA,+FAKA,wEAMJ,kDAIA,2CAGE,+BAPF,mBAdE,iBASI,OAKN,WAOE,8CAKF,uEACE,sBAGF,6DACE,YACA,qEAKF,8DAGE,eACA,4BAGF,CAGE,yBAIF,8BAIE,6BAIA,gBAfF,CAeE,+CAKA,mBALA,iEAKA,eALA,qBAKA,kDAHE,6BAGF,qBALA,UAKA,iHASA,CAdA,UAEE,CAGF,YASA,uXAKA,qYAMF,8MAMA,6MAMA,+CAIA,YACE,CADF,sBACE,4BAYA,gDATF,mCAIE,CAGA,YACA,sBACA,CAFA,OAEA,eAGF,CARE,iBACA,CACA,QACA,CACA,YAHA,YAOF,kCAMA,oCAJE,aAIF,CANA,iBAEE,CAIF,4GAOA,iCACE,eAGF,2EACE,CAUF,oJ1DuUE,4F0D/TA,eACA,CAHA,MACA,CAFA,aACA,CACA,YAEA,oEAGA,aACA,CAEA,aAFA,MACA,aACA,qEAEA,sHAQA,cAJA,aACE,CADF,MACE,aAGF,sMAIA,gNAeA,WACA,2YAcA,qZAeA,qMASF,2MlDxEA,SkDwFE,QlDxFF,mFkD6FA,8ClDtFI,kBAPJ,8BAMI,YACA,eAPJ,mEmDvLA,CnD8LI,UmD9LJ,mE3DmfE,gJ2DreA,WAEA,CAIA,kFAKF,4B3D0dE,yCQ3aF,WR2aE,gCQ3aF,sBAEA,iCmDpCE,kBACA,CACA,sEAPA,mBAEA,CnDwCF,iBACA,CmDpCE,gBAHA,WACA,CATA,oBAEA,CnD8CF,mBmDhDE,CAOA,kBACA,CANA,6BACA,oBACA,CAMA,cACA,oJAKE,CAVF,UAUE,uCAIF,cnD9CA,sCACA,yBAEA,oBmD2CA,sCnD1CE,sCmD8CF,mFAEE,qCAEA,YACA,2CA/GF,wDACE,eACA,uBAEA,mBAEA,0CAGA,wBACA,mKAVF,wBAkBF,sLAkGE,qEACE,2CACA,8EAKA,iCACA,2PAsBF,wBALF,CAEE,6BACA,oBAHF,kFAUA,YACE,0BAEA,WACA,iCA3JA,kIAKE,+DAIA,eACA,6BAVF,uCAUE,CAVF,qDAaI,CAKN,qBALM,mBAKN,6KAIE,cA2IE,qFASF,uBACA,gBAGF,iBAJE,SnD3DF,eACA,emD8DA,cnDrEA,CmD+DE,oBACA,CnD/DF,cmDuDI,iBACE,CnDlDN,eACA,CmDsDA,oBACE,CADF,oBnDtDA,aACA,CAPA,cACA,CAMA,UANA,wBAEA,CALA,iBACA,CAQA,iBoDjHE,qBACA,gGAQA,yBAEA,iBAGF,6C5DyhBE,iEQrdA,cACA,iCoDjEA,yBAEA,CACA,yDAEA,gCACA,oBACA,kGASA,wEAEA,2EAYE,wBAEE,CAJJ,SAII,WAFF,qCAEE,UAJJ,kBAKI,+CAKJ,CARE,OAQF,mDpDAA,0EoDAA,epDGE,qIoDOA,sBACA,CAIJ,UAJI,UAIJ,4DASE,wBAGF,mFAKA,2EAEE,kBAGF,CALA,aAEE,YAGF,oCACE,CANF,UAME,6BAGF,oDAGE,uBACE,iBADF,gBACE,6BAGF,4EAEE,2CAOF,WACA,oBAEA,CARE,iBAIJ,iBAIE,0FAcF,wBACE,CAVA,QAGE,CAOF,WAPE,aACE,cAKN,CANI,SAOF,SACA,CAXA,kBAWA,+CAGF,CAVM,OAUN,mDAMA,yFAIA,eAEE,mKAUE,sBAIJ,CACE,SACA,CAFF,UAEE,6GAIF,8CAQA,0CACE,CANA,iBAEA,sBAIA,0CASF,kBAEE,CAFF,SAHE,WAGF,YAJE,gBACA,SAGF,CALA,kBAOE,kBACA,mBACA,CARA,SAQA,aAKF,uBAHE,qBAGF,wCAJE,aADA,iBACA,WAIF,iEAeA,uCAEE,yBAGF,CARE,WAGF,CAHE,+BAGF,CAKA,6CAdA,aAEE,CAYF,oBApBA,iBAGE,gBAGF,C3D/Hc,a2DoId,CALA,yCAcA,SAGE,CAjBF,kDAKA,sBAYE,iDAIA,CAnBA,UAmBA,yBACA,wBAEA,+BACE,yCAKJ,qEpDjFA,qBACA,kBoDoFE,uBpDlFF,uCAGE,CAHF,6CAGE,sCAEA,wBAGF,oBACE,8DAKA,qFACA,uBACA,WACA,6DAEA,2BAXF,+EoD6EA,gHAMA,oBpDNI,+CR0TF,uEQrdA,4CqDhFA,wBAEA,mGAKA,0EAGA,4CrD2CA,CqD9CA,4BAGA,CAHA,KrD8CA,4EAGA,wBqD9CA,2CrD+CE,iBqD1CF,mGAWF,YACE,oCAIA,2DAIA,mBAGF,iDACE,wBAGF,iFrDrBA,aACA,qBqD+BA,mBAPA,YACE,mBAMF,mHAQE,qBAEA,oBAEA,2DAGF,kDAIA,qCACE,uCASF,4BxCjCA,CwCiCA,mBxCjCA,aACA,CwC2BE,kBAKF,CANA,kBACE,CADF,UxC1BA,qJbRE,qBaYF,uGAWE,wBACE,wCAEA,sEb1BF,oBa0BE,qFAUJ,wLAME,kBACA,CAFA,WACA,CACA,eAEA,CAGA,cARA,SACA,CAIA,mBAGA,CAZF,iBAIE,CAQA,yGAZF,0HAiBA,0EAjBA,sDAiBA,8CAEE,uCAEA,gCAJF,8FAKI,qEAIJ,oDAaA,kFAEE,CAfF,iBAEE,gBAIF,CAOA,cAPA,sEAGE,oBAIF,gBAEE,iGAYF,CAdA,UAcA,8KA7HA,oBACA,sCACA,YACA,yCAEA,WAKA,qBACA,gCAEA,oBACA,wCACA,0DrBghBE,8DqB5gBF,kEA0GA,8LAtGA,iBAsGA,oKAnGA,uEAmGA,4EAlGE,eAIF,CA8FA,sDA9FA,sEA8FA,iLA7FE,iDAmGF,yBACE,sCAGF,gDAOE,2XAWI,6MAIJ,mNAEE,yFAKF,kmBAOF,+CAJI,oCAIJ,WAOA,kCAPA,YAOA,oBACE,CADF,oBAPA,sEAEE,mCAEA,2BAGF,CAXI,2CAIJ,CAJI,YAYF,4DA0BF,gKAiCA,4MAsBA,0CAeI,gKAEA,WAYJ,4OA+BM,4BwC/ON,qIrDNE,aqDWA,6UAoBF,warD3DE,UqD6EF,WrD7EE,CqD6EF,gBrD7EE,6nBqDkGF,6DAQA,sDAIA,6JASE,mBAFA,WAEA,CAHA,eAGA,oMrD3FA,UqDsGA,CrDvGA,aACA,CqDsGA,qBrDvGA,kBqDuGA,WACA,CADA,UACA,8MAcA,QAFF,uDrD7HE,4CAGA,CqDkIF,8BrDrIE,CqD+HA,aAMF,CrDlIE,sCACE,+BqDsIF,iKAUF,gBrD5EA,uCAGA,+BAEA,kHAgBE,2DALA,aAEA,WACA,CAEA,uBAFA,eAEA,CAXA,6BAEA,oBAGF,CAME,UANF,yBACE,CAKA,iDAGA,CARA,YAQA,gGATF,UAYI,gGqDyDF,UACA,gFACA,2DAIF,4EAQA,+EAKE,eACA,mFAGF,yBAKA,2IAKA,gMAaA,iHAQA,mFrDzME,uIATA,UACA,2DqDuNF,gLrD1OE,aqD+OF,kBrD/OE,gLAIE,YqDqPJ,0BAQE,+BAGF,CALE,wBACA,CAHF,mCAEE,CACA,gCACA,CARF,6BACE,oBAUF,iCACE,qBAIF,mHAKA,iDAIE,eACA,CAHA,yBACA,oBAEA,sCAGF,6CACE,EAGF,sIAQA,0CASA,+CAPE,SAOF,qBAPE,iBAOF,2GrDvHA,0BqD6HA,6KrD3HI,CqD2HJ,sDrD3HI,8CsD9OJ,uC9DwiBE,yE8DhiBA,2CAGA,kBACA,CAFA,iBACA,CACA,iG5D4GE,6B4DpGA,mBAFA,kBAEA,aAFA,SAEA,yC5DgIF,8C4DzHE,8GAME,8FASN,mBACE,mIAaA,oBACA,CAFF,kBACG,CACD,kBAGF,CALA,cAKA,6D9D4eE,SA0LsB,gD8DjqBtB,eACA,wFAKF,6BACE,CCpFM,mBDuFR,2EAIA,yBAIA,uPAcA,yBAEE,uJAMA,oBAGF,yDAGE,8DAGF,QAEE,oBAEA,yBAGF,sEAEE,mBAGF,+FAEE,oBAGF,uCAIA,kDACE,CAJA,cAGF,CACE,wBACA,wD5DjBE,kB4DoBJ,sCAUI,sBAIJ,C5DlCI,a4D4BJ,mCAEI,C5D9BA,U4DkCJ,8CAKA,oIAQE,sBAEA,qEAIA,gPASA,eACA,4CAGF,6BAOA,kBtDzIE,CAGA,yBAFA,4BAEA,CsDsIF,aAPA,kCtDlIE,6BACA,CsDqIA,oBAGF,CAPA,mBAIE,CAGF,kItDrII,kDsD4IJ,yCAEE,iFAGF,YAEE,8CAIF,kMAKE,kBACA,CADA,WACA,oDAKF,wBACE,mCtDwBE,wBwDhQJ,CxDqPA,kCsDPA,YtDOA,oBsDPA,CtDOA,oBwDrPA,mBF8OA,uCtDkBI,CsDlBJ,UE9OA,uChEijBE,iBA0LsB,sCgEvuBtB,gBACA,yCACA,kB/D6BQ,C+DzBV,oMAcA,4DAIA,gDACE,iCAGF,2DAIE,mCAEA,4DACA,2EACA,mBADA,YACA,4PAGF,mEAOE,qBADA,iBACA,yCACA,8DACA,2CADA,CACA,0BACA,8FhE4fA,agEtfA,mBhEsfA,gBgEpfA,WAGF,CAHE,6BAGF,ChEifE,egE3fA,2BAKA,sBACA,CAIF,QhEifE,CgE3fA,eAKA,ChEsfA,iGgEreF,CAtBE,YAsBF,wGAEE,WAGF,CAHE,UAGF,0MAMA,iGAEE,2EAGF,iGxDsBA,kBACA,oFAQA,aADA,kBACA,6LwDfA,aAHE,kBAGF,CAJE,oBACA,CAGF,oEAOI,eAPJ,CAOI,iBAPJ,qEAOI,+DAMF,6BAGF,2BAUA,cALA,aALA,iBACE,gBACA,CAIA,6BAIF,CALA,qBAHE,mBAGF,CAKA,oBALA,cAKA,+BxDnBA,eACA,uBAEA,mBAEA,0BwDkBA,sCxDfA,cwDeA,CxDjBA,iBACA,WwDgBA,gHC0KA,qCjE6PE,6BiE1PA,cACA,CjEyPA,0BiEzPA,2BAGA,sDzDrQA,0BACE,4DyD6QJ,oDzD7LA,qGyDiME,CjEyOA,UiEzOA,iEAGA,uDzDvRA,2CAEA,mCyDqRA,kDzDpRE,0CyD4RJ,yCAIA,qGASA,CzDtTA,iDyD0TE,CzDlNA,QyDyLA,CAyBA,UACA,CA1BA,OzD1LF,kBACE,QADF,KyDoNE,gCAOA,cALA,gBACA,CAEA,oBACA,CAHA,mBAEA,CACA,gBACA,gCAEA,aAGA,iBACE,+GAIF,8KAIE,4IACE,oBAIJ,0JAIE,mDAFA,eAEA,WAFA,kBAEA,yMAMA,uDAEA,2EACE,QAIJ,mEACE,2FAEA,mFAMF,qFACE,kFAOF,mBAJI,QAIJ,CALE,WAKF,YALE,yBACE,CADF,kBAKF,kBACE,oBANA,SAMA,iHAEA,iBACE,CADF,kBACE,qBjE4IJ,kBiEjIA,ejE2TsB,mBA1LtB,CiE3II,gBAIJ,gBjEuIA,yCiEjIA,2BAIA,0BACE,qCACA,0BAIA,oBACA,4BAEA,aACE,+CAUF,kBACE,CAPF,+EAGE,CAHF,qBAGE,mBAGF,CACE,cAOJ,CAdE,SAcF,kEACE,QAGF,sDAGE,YAEA,CAHA,yBAGA,sCAEA,qDACA,oBACA,+DAKF,uDAEE,iBACA,2BACA,eAGF,cAQI,qBAFA,wCAEA,CARJ,mCACE,CAOE,WALF,aACE,iBAEA,CAHF,6CAFA,8BAOE,2EAIJ,4HAGE,6CAGE,gMAQA,gBAEA,8GACA,6CAIJ,sCAKF,sJAQE,iBAxZF,yDAKE,+CjE6aA,qHiExaE,QACA,uDAGE,gKAMF,WzD/FF,CyD+FE,QzD/FF,0DyD+FE,uFAGE,4LAQN,uCzDpHA,4EyD4HE,WACA,CAFA,QAEA,gBzB5JiB,iByB6JjB,gBACA,CACA,oBAEA,CAHA,mBACA,CAEA,sDjEqYA,4FiE/XA,sGACE,iHAWJ,0CAEE,sEAIF,8CAMI,iFAIJ,CANE,0CAEE,CAQJ,WAVE,gBAMF,aAIA,CAZE,yBAEA,CAFA,2BAEA,OAUF,mCAEE,mBADA,YACA,8CAGF,mEAEE,qEAGF,uCAHE,OAGF,oDAIE,4CAGF,gDAEE,iBA0TF,oEAOA,6BACE,CADF,SACE,gCAIF,2EjEME,uFiECF,4BAHE,UAGF,CAHE,QAGF,iGAEE,mDAGF,uC5C1fA,iBACA,gBACA,CACA,oBAOE,CARF,mBACA,CAOE,mBALF,yEbdE,iEasCF,mEAxBA,qDbXI,CaWJ,oBbXI,iBamCJ,4SAKE,qDAIA,oBAGA,2KAZF,qHAaI,CAbJ,sFAaI,mBAIJ,CAjBA,uCAiBA,yTAIE,iBAJF,sHASA,4LAEE,aAIF,6FAEE,OACA,wCAIF,yMAGE,gCAMA,4DAKF,8QA7HA,QACA,wDAUA,qCAEA,CAXA,gBACA,CACA,eACA,CAKA,oBACA,CANA,mBAKA,CAGA,4BAEA,2HrBghBE,2BqB5gBF,yEA0GA,+zCAUA,oGAOE,qrBAeA,kXAGE,sBAIF,CAPA,oCAOA,6CAPA,YAOA,yCAPA,oDAOA,8EAPA,wDAOA,o6BAOF,6VAQE,4BACA,gFAyBF,wBACE,iGAgCF,siBA2BI,UAwBJ,0mBAnDA,q9BAmDA,6DAII,CAEE,qDACA,iOA1DN,+BAdI,eAcJ,urBA2BI,cAwBJ,sfApFA,wDAEE,4BAME,CACA,2HAwBJ,mhBA0BI,uHAyBJ,ifApPA,OADA,aACA,oCAQE,4BALF,6HbXI,eaWJ,sCbXI,CaWJ,mCbXI,8ba+CF,SAHA,KAGA,0GAZF,ofAmBE,QAEA,CAFA,cAEA,uEAJF,0HASA,eAJI,UAIJ,CATA,aAKI,CAIJ,qBATA,kBASA,4bAaA,qHAcA,6CALE,8BAKF,CALE,YAKF,mZA9GA,UADA,OACA,CADA,cACA,+DrBghBE,4EqBlaF,kCA1GA,oCA0GA,CA1GA,iBA0GA,sPAtGA,mWAsGA,krBAMA,iDAIA,sNAOE,uiBAeA,icAOA,kCAPA,YAOA,yCAPA,mEAEE,mCAKF,4BAPA,wDAOA,+7BAGE,uFAIJ,+QAOA,+GA2BA,4HAEE,YACA,4iBAoEE,UACA,4nBAxEJ,g/BAoFA,0VAyBM,kBAiBJ,CAjBI,2BAiBJ,+IAGI,eAEE,gHAnIR,sCACE,CADF,yBACE,YADF,UACE,kWAgCF,gJAsBA,CAtBA,8CAsBA,qVA6BA,kRAsBI,+HAoBF,4hBA7FF,6RAcI,2VAqCJ,2SAsBI,gIAoBF,giBrBoNA,8HiEvhBA,4CAXF,CASE,8BAEA,CAFA,eATF,maA8BA,uDzDHA,+ByDME,4IAQA,aACA,uCAEA,4JAMA,ohBAkME,2HzD5MA,4CyDkCF,CA0KE,8BzD5MA,CyD4MA,eA1KF,0ZAiBA,gGAKE,yIAtBF,2EAgBF,8GASI,kBA1BJ,gBAkBE,oCAQE,CARF,iBAlBF,iIAiBA,gCAhBE,iCAGE,CASA,oBAIJ,CANI,mBAEA,CAIJ,SACE,qBADF,kBACE,oGAlBF,gIACE,eAKE,mEAYF,4CAlBF,CAkBE,kBAlBF,CAkBE,8BAlBF,CACE,WAiBA,SADF,OAjBA,qBACE,CAgBF,QACE,OAjBA,gEAiBA,+CAjBA,mCAYE,CAKF,mDAKE,CANJ,8CAJI,gBAIJ,gBAMI,mBAMA,mCAmLJ,2BACE,mBA0TE,iT5CjiBJ,wJAcI,4Eb1BF,6Ba0BE,wEAUJ,2LAYE,QAZF,kEAQE,2DAIA,+BAZF,0IAiBA,SAjBA,yFAiBA,kCAEE,QAEA,CAJF,mDAEE,4CAEA,+DAKF,wBATA,qHASA,8DASE,cADA,KACA,CATF,gDAMA,yCAGE,CACA,4DAYA,0BAKF,CANE,OACA,CADA,QARF,qHAcA,4DbrGA,sBaqGA,KbrGA,CaqGA,yFbrGA,kEadA,QACA,iBATA,4CAGA,qCAMA,iErBohBE,uBqBhhBF,+CrBghBE,wGqBlaF,4CA1GA,4CA0GA,mIAtGA,+CAsGA,8VA9FA,+DA8FA,+LAMA,+DAIA,qEACE,mNAMA,wJAKA,iNAUA,gTAOA,0mBAOF,+CAJI,oCAIJ,WAIE,iCAGF,CAPA,YAOA,yCAXI,eAIJ,CAJI,iBAIJ,wEAEE,2BAEA,CARE,wDAWJ,4DAEE,mKA4CE,UAcJ,+MAMI,gCAgBJ,mKAKI,uFAwBJ,mKAcM,2EAlGN,wFAEE,YACA,oVA8BF,UAsBA,oaA6BA,4qBA7BA,6DAGI,sDACA,+JAyBJ,oPApFA,eAkGM,UAlGN,CAkGM,cAlGN,qBAkGM,kBAlGN,4NAiCA,2LAKI,gCAiBJ,oKAKI,8FAwBJ,0eb/PE,sFayBA,4CACE,CAZJ,8BAWE,CAXF,WAYI,uCAEA,gCb5BF,+OasCF,gLAYE,cAZF,CAYE,8CAHA,iBAGA,WAZF,0TAiBA,QAEE,CAFF,KAEE,yEAFF,6CAIE,8BAJF,CAIE,WAJF,uCASA,kRAaA,8FAEE,yFAYF,uYA/GA,QACA,CADA,KACA,sErBghBE,4CqB5gBF,CrB4gBE,0CqB5gBF,uCA0GA,wWArGE,0CAqGF,uMA9FA,mEA8FA,2JA7FE,sCAmGF,mDACE,oBAGF,2NAOE,iXAeA,uUAEE,qIAKF,seAGE,8CAIJ,CAPE,oCAOF,6CAJI,YAMF,oBAEA,CAJF,mBAEE,CANE,uDAIJ,8EAPE,yBAGE,mBAHF,YAWA,4DAGF,yKA6BE,4CAaE,yKAkBJ,mNAgCI,uFACA,yKAkBJ,4BAkBI,iDACA,0FAvGJ,4WAiCA,0bAmDA,8rBAzCI,6DAYJ,sDASI,mKAoBJ,wPAmBI,yBAvGJ,yBAuGI,oCAvGJ,0NAiCA,iPASI,CACA,yKAsBA,sDACA,4HAkBJ,oZAjPA,ebdE,0EAGE,wDauBA,CAZJ,qCbXI,CaWJ,aAYI,sCAEA,oRAUJ,mLAYE,WAHA,aAGA,0BAJA,iBACA,CAGA,oVAKF,mJAIE,qCAJF,CAIE,aAJF,sCAKI,+BAIJ,wPAaA,gLAcA,kDALE,iBAKF,yUAhHA,eACA,wErBihBE,wDqB5gBF,CrB4gBE,sCqBhhBF,YrBghBE,CqB5gBF,sCA0GA,gbAnGA,mBAmGA,kBAnGA,iBAmGA,gHAlGE,gDAIF,sEA8FA,iJA7FE,oDAmGF,mPAWE,qXAeA,kdAOA,4eAGE,+CAHF,oCAGE,WAIJ,kCAJI,YAIJ,yCAJI,gBAHF,gBAGE,uBAIJ,8EAPE,wDAOF,4DAOA,4KA2BA,4CAEE,4KA+BF,sNAqCI,uFAEA,4KAYJ,8EA+BM,2FAnHN,kXAiCA,gcAmDA,usBAnDA,6DAsBA,sDAcI,qKAeJ,+BAZI,eAYJ,4MA+BM,WATF,aASE,sBA/BN,iBAsBI,CASE,oPAlFN,+YAsCI,sFACA,8FAYJ,wZAxOE,iBATF,uHAWE,CbvBA,8BaYF,CbZE,cauBA,sCACE,+BAEA,wPAUJ,oLASE,WADA,aACA,CAGA,cAHA,MAGA,CALA,iBACA,CAIA,4VAKF,0IAIE,8BAJF,CAIE,cAJF,sCAKI,CAIJ,yRAaA,sFAEE,4FAYF,gZA9GA,0FAIA,4CA0GA,CrBkaE,8BqB5gBF,CrB4gBE,cqBlaF,4XArGE,2BAEF,yCAmGA,uIAlGE,yBAIF,oFA8FA,oJA7FE,yBAmGF,wFAIA,2OAOE,6WAeA,oTAIE,eAGF,mmBAOF,+CAPE,mCAGE,CAIJ,4BAEE,gBACA,CAPE,YAQF,oBAGF,CAHE,oBARE,sDAIJ,+EAJI,wDAWJ,4DACE,sKAwCE,UACA,kCAkBJ,gNAiBI,sKA2BA,UACA,6EAMJ,sKAmCI,4BACA,wEAxHJ,6EACE,0VAgCF,8CAiBI,IACA,SAIJ,4aA6BA,qrBA7BA,6DAoBI,sDAEA,iKAOJ,sPAoCI,UAxHJ,CAwHI,cAxHJ,YAwHI,kBAxHJ,sPAiCA,gPAsBA,uKAsBI,cACA,wEAMJ,6e4CkYA,uFzDhcA,wDAOI,CAPJ,kDAOI,uCAPJ,kR0D1OA,cACE,wCAEA,gCAEA,6FASA,WADF,aACE,CAIF,YALA,kBAKA,aACE,CALA,KACA,aAIA,8TlEmhBA,cA0LsB,CA1LtB,yEkEpfA,wDACA,CAJA,qCAGA,CAHA,YAIA,uEAEA,qPAoBF,sDAEE,gCAGF,0FAGE,UAIF,CALE,aACA,CAIF,YALE,kBAKF,kVAoBE,OADA,OACA,uEAQA,wDlEqbA,CkEvbA,qCAEA,CAHA,WACA,ClEinBsB,uCA1LtB,gCkE7aA,4OAkBA,sDAOA,gCACE,qEAIA,kBAMF,qEAMF,0F1DrCA,eACA,CAOA,+CACE,4B0DoCF,CAYA,8DAEE,C1D1DF,C0D0DE,cACA,YACA,gBAIF,oBACE,mBACA,CAGE,kBACA,CAFF,cACE,CAHF,gBAEA,CAJF,iBACE,CAGA,UAEE,wCAGF,4DAEE,YAFF,cAEE,oBAKF,+CAHE,iBAGF,0DAEE,cACA,CAHF,UAGE,wBAOF,6CAHE,WAGF,0BAJA,4BACE,CADF,SAIA,qBAaF,a1DtFA,C0DyEE,iCAGE,CAKJ,oBACE,CANE,mBAKJ,C1DjFA,gBAEA,C0DoFA,kCAJE,eAIF,C1DpFA,sBACA,0FAIA,4JAGE,CACA,0BACA,iCAGF,2BACE,gDAKA,oBADA,cACA,kGAEA,iCACA,+GAGE,uE0DsEF,mBACA,oBAGF,eAEE,CAFF,kBAEE,iCAIF,cAKE,oBAGF,CAJE,iBACA,CAFA,kBADA,mBACA,mBACA,CAIF,kBANE,eAMF,kFARA,0EAgBE,CARF,sCAOA,0BACE,wBAQF,cAPE,gCACA,CAGA,OADA,oBACA,CAHA,mBAEA,CAIF,mBAHE,kBAGF,CAHE,kBAGF,gBAGE,gDAGF,wBACE,CACA,mCAIF,+DAGE,wBCtSF,iDAIE,wBAKF,2BAKA,uCACE,gBACA,CANA,QAIF,CAEE,eAPF,qBASE,aATF,SACE,CAQA,gBAFA,UAEA,6CACE,gDAGF,2BACE,kEAIF,4CACE,kE3DgFJ,6BAGA,cAEA,eACA,8BACA,kBACA,oB2DjFE,kCnEugBA,gCA0LsB,wGmExrBtB,eAGF,iCAIE,gHAIA,eACA,8DAGF,6IAQE,kGAKE,kBACA,CADA,YACA,eACA,CACA,iC3DmKJ,C2DvKI,SACA,CAEA,mBACA,CALA,iBACA,CAIA,Y3DmKJ,iK2D/JM,uCAKN,uDAKA,+IAHE,kBAGF,+DAQE,oIAOF,8EAGE,6F3D8CF,wB2DtCE,C3DqCF,mBACA,CAHA,WACA,eACA,CAHA,U2DlCE,sG3DwCF,yFAQA,qBACE,QAEA,CAFA,gBAEA,kBAEA,CACA,mBANF,UAME,0EACA,+CAEA,aAEA,CAFA,0BAEA,4CACE,YAZJ,+BAYI,kC2DxDJ,oGAKA,+CAGE,sBACA,CAFA,qBAEA,sEAOF,gFAGE,mBAGF,CAJE,cAIF,qHAMA,4BAHE,UAGF,aANA,eAGE,CAGF,UANA,kBAMA,sCAHE,SAGF,0BAMA,+CANA,iBAGE,iBAGF,yFCvJE,4BAIF,CDwJE,wBC9JA,CAMF,iB5DqGA,C2DkDE,aACA,CALF,eAIE,CC7JA,qCAEA,CDuJF,c3D9CA,kFAOA,kBACA,CACA,oB4D1GA,C5DwGA,aACA,sB4DzGA,yFAOE,wBACA,kBACA,Y5DkEA,oBACA,C4DvEA,WAEA,C5DoEA,kB4DlEA,2BACA,oBACA,C5DiEA,U4DjEA,qEAGA,uGAGA,4B5D+BA,sDAGA,gC4DlCA,6KAQA,oBACE,2LAWA,wBADF,gFAMA,yBAGF,4DAKA,+CAGE,eAEA,CALF,6DAKE,sIASF,uCAGE,8CAWF,6FAGE,mBAEA,WAGF,CARA,YALA,MACE,CADF,wBACE,UAIF,CAQA,8CAGE,uCAIA,6CAEA,2G5DyBF,gEA7CE,uBA+CF,YA/CE,uBACA,C4D0BA,sD5D0BF,iBACE,gF4DjBE,oBAFA,cAEA,wJAMA,kBAZF,sJA0BF,0BAEE,gKAaF,iBAEE,CAFF,cAEE,CACA,YAGA,kBACA,CAFA,aAFA,iBAEA,WAEA,wBAMA,mBnExIQ,QmEuIR,CAFA,UACA,CACA,WACA,CAJA,gBAEA,UAHA,iBACA,CAIA,sCAJA,SAIA,mBnEDY,uBmEWZ,yC5D1HA,C4DsHA,WACE,CADF,+BACE,C5DvHF,aACA,C4D+GA,2EAMA,QANA,iDAIA,CAEA,iB5DrHA,sBAEA,kG4D2HA,CAVA,UAUA,kD5D9HA,oBACA,sC4DgIE,wB5D9HF,oB4D2HA,4D5D1HE,W4DiIJ,6HAME,yBAHA,mCAGA,yFACE,uDAIF,8GACE,iHAUF,0BACE,4CAIJ,qMAKE,sJAIE,4BAIF,YACE,CADF,sBACE,mBADF,8GACE,kBAMF,kLAKE,QAGF,CAHE,KAGF,+FACE,WAMF,CAPA,8DACE,aADF,CAOA,2DAPA,SAOA,qHAKE,+BAGF,wDACE,oBADF,kFAKF,uCAEE,uBAIF,kD5DvHA,Y4D4HE,CALF,mB5DzHA,wBACA,CADA,kBACA,CADA,kBACA,eACA,C4DuHA,iD5D5HA,C4DiIE,S5D1HF,mM4DqHA,Y5DrHA,oRAIE,qDAIF,+JAGE,oBAEA,6GACA,kBACA,aACA,CACA,uHATF,kM4DoHE,4MACE,yBADF,ySAUA,WAGF,CAJA,UAIA,qFAGE,qFAGA,wLAKE,+GAJA,gBAEA,uEAEA,0LASF,2GAEE,cAFF,qFACE,2BAMJ,yKASA,kBAEE,CAFF,YAEE,eAGF,CALA,UAKA,oBALA,kBAKA,2e5DlLA,WAGE,eACA,aACA,mKAWA,kDAGA,2CAXF,mBAYI,YALF,WACA,CAFA,MACA,CADA,wBACA,WAKE,8C6DjLJ,uC7DsJA,kKAOA,qQAcE,iBACA,qL8DpLF,kB9D8JA,wBACA,+CAIA,8C8D9JE,U9DgKF,2HAQA,CARA,OAQA,sEAME,UAFA,iBAEA,yGACA,CPvFY,oDOyFZ,CAEA,uDAXF,SAYI,CAZJ,kBAYI,4D+D9KF,qDAEA,gEAOA,iDAMF,CAPE,UAOF,2FvE0hBE,kHuEthBA,SAEA,CAFA,UADA,iBAGA,+CAKF,cACE,C/BnBiB,iB+BmBjB,qDAIA,4FAIA,mBACA,oDAGA,YACA,yEAGA,iFAKA,iDAGA,eACA,sBACA,mBADA,WACA,iBACA,gCAFA,UACA,mBACA,CAFA,kBAEA,0FAOA,WACA,4BACA,4BAEA,kDACA,2CACA,+BAHA,WACA,CADA,0CAGA,6eAME,6FAIA,mBACA,YALA,mBAFF,iBAEE,kBAKA,8CAEA,wFAGF,4CAEE,6DAIJ,CAJI,8BADA,iBACA,cAIJ,qGAQE,0BACA,aAEA,mJAEE,CAIJ,WANE,sDAMF,8CACE,uCAGF,kCACE,sBAIF,yDAMA,CANA,aAMA,yCACE,aAMA,6BAFA,etEtGM,CsEqGR,iBACE,CAEA,eAHF,4BAGE,0BASE,cAPA,2FAGF,kBACE,iBAEA,oBACA,CAHA,mBAEA,CACA,yDAGF,qCAEE,kCAFF,iBACE,CACA,kCAIJ,4BALI,UAKJ,6CAKE,YALF,4EAKE,iCAGF,2BARA,aAQA,2BAKE,kBACA,CADA,eACA,mBACA,CAPF,iBAIE,CAGA,kCAGA,qIANA,UAMA,uJAGE,CAHF,kBAGE,sCAMJ,+K/DnBA,iUAcE,C+DJA,uB/DIA,CAGA,kDAHA,oDPtFY,COwFZ,4C+DWF,C/DVE,yBAEA,mF+DQF,2BAGE,kCAGF,qDAGE,6C/D+CF,wGAWI,aAXJ,mBAWI,UAXJ,uMAWI,4DgEhQJ,sECKA,wBACA,qEAGA,2GAEE,wBDFA,gDAQA,kBACA,uCAKA,+BACA,gDAKA,4KAMA,2PAUA,yjBAuBF,uFAGE,kBACA,CADA,YACA,eAGF,eALE,UAKF,oBALE,kBAKF,qNAUE,WhEpBA,4BACA,oEgEmBA,kDAIF,0EAJE,sDAIF,wJAQA,2GAMI,oBAIJ,uDAEE,cAGF,CAHE,SAGF,mBC5FA,qEzE6hBE,gDwE5bA,CAKA,yBACA,eAGF,4BACE,CxEkbA,iDwE5bA,CA2BA,wPAUA,kBADA,kBACA,4BACA,YAGF,iTAgBI,sLhElBJ,iBACA,iaAmBE,2DAEA,+BACA,CAFA,iBACA,CACA,0DATF,kJgEuBA,wBAIE,CAJF,gCAIE,kGACE,8DhE+CJ,+BgE1CA,yFEtMA,yB1E4iBE,mIEhbE,oBwEnHA,sNAiBF,+IANF,4BAaI,4BAIJ,0BlEuBE,+CkEjBA,aACA,CAFF,mBlEqBE,iBkE1BF,CAOE,ezEfM,CyEaR,aACE,ClEqBE,oBkEtBJ,CALA,mBlE2BI,CADF,yBkEjBA,wJlEyCA,ckEtCF,mBAHE,2EAGF,elEsCE,CkEzCA,yBAGF,mBlEsCE,+CkElCA,sCAGF,kBACE,0BlE2CF,iBkExCA,oBlEwCA,8CACA,gMkEnCE,mFAMA,QACA,2EAMF,oFAQA,iDAKE,kBAEA,CAHA,WACA,CAEA,eACA,CACA,aACA,CACA,YARA,SACA,CAIA,oBlE1DF,iBkEqDE,CAOA,SACA,yIAME,WACA,eACA,cACA,8CAQF,kDxESE,2CwENA,mBACA,WACA,CALF,YAFA,MACA,CAFF,iBACE,OACA,UACA,CAKE,8CASJ,uCAKE,8CAEA,sBAEA,sHAIE,mHAQJ,iFAII,oFAMA,qLAEE,UAKN,gBALM,iBAKN,CACE,qCADF,CACE,qCAQF,yBxEpDI,+BwEoDJ,6BAEI,CAVF,yDAUE,6BAIJ,CAdE,qBAcF,2CACE,+DxE3DE,yBwE0DJ,0DAKI,iDAEA,4CxEjEA,awEiEA,iBACE,WxElEF,4DwEuEJ,oDAUA,qGxEjFI,8DwEuFJ,mGAKI,yBxE5FA,kBwEgGJ,8DAII,0BACA,iCAOJ,2DAEE,0BACA,iDxE/GE,mCwE4GJ,6CAOI,8BADA,eACA,oLAKE,kBACA,CANF,oC1E6TF,kC0ExTI,CACA,exEzHF,CwEwHE,S1EwTJ,iB0ExTI,UALF,iB1E6TF,CEhbE,oDwE8HJ,C1EkTE,uB0ElTF,6GAKI,CALJ,uBAKI,yBAEA,iNACE,oBAEA,wBAGA,gBAJA,aACA,wBAGA,0DAGF,CAPE,UAOF,4eAcF,eACA,CAfE,CAeF,wCAEA,yIAQA,sFAEA,sBAEA,+DlE3OA,wBACA,4BkE+OE,yBlE7OF,6DkEwOA,4BlEvOE,kFkEkPA,gBACA,kFAIA,wBAGE,CARF,CAQE,kEAKN,kBAEI,aACA,yBACA,kJASJ,wBAEE,CxElNE,uEwEgNJ,iCAEE,CAFF,iExEhNI,WwEyNJ,CxEzNI,awEyNJ,yIAII,YAOJ,6QAaE,+BACA,cAMF,CATA,sDAEE,CAFF,mBASA,salEpTI,qDkE0UF,iBAIF,CAbE,kBAaF,+clEjPA,gBkEuNA,ClEvNA,qBAQA,gCACE,aACA,CAVF,qBAWE,eACA,CAPA,aAGF,CAIE,gBAEA,CANF,aACE,CATF,iEAGE,CAKF,iBAME,mIAGA,oBAdA,uBAcA,wDAGE,SAZJ,8CAYI,kBAZJ,UAYI,sCkEkPJ,uDlE1QA,oBACA,0BACA,qBAEA,0JAIE,iBAIF,CAJE,WAIF,2CAME,mBAJA,WAEA,CAEA,iBAFA,kBAEA,CANF,CAME,oHAGA,aAEA,6IkEyPF,+BlE5TA,cACA,CAEA,yIR4bE,mBQ9bF,CR8bE,kD0EzHA,+BAEA,cACA,oBAEA,yDACE,+BAGF,kIAQE,+BAGA,aACA,iTAiBF,2CACE,wBACA,mFAGF,2CACE,yBACA,4IAKA,2EAGF,uHAKA,4DAEE,gBAFF,8BAHE,kBAKA,8KAKA,uCAMF,wDACE,kDACE,4CACE,8BAFJ,YADF,MACE,CADF,wBACE,WAEI,8CAOF,8FACE,sCAOF,4DAEE,CAFF,YAEE,gBAFF,UAEE,oBAFF,kBAEE,4JAKA,wFlE/YR,kDAEA,2CkEuZI,mBACA,WACA,ClE5ZJ,WACA,CAHA,MACA,CkEsZE,iBlEvZF,OACA,UACA,CkE4ZI,8ClEnZJ,uFkEqZI,qClEreF,+CAIE,kBkEseF,CALE,+BlEjeA,CADF,ekEkeE,WlEleF,kBkEueA,sCALE,SAKF,uBAQE,aAGF,CAPA,aAHE,iBAGF,iBAEE,WACA,CAHF,yCAGE,iBACA,CAJF,UAOA,uDACE,eAMF,kDAGE,YACA,CAEA,kCAIF,CAJE,wBAIF,UANE,oBACA,CACA,UAIF,yEAEE,CAPA,UAOA,qEAGF,kIAKA,mCAGE,2DAKF,4SAME,4DAGF,yFAEE,sJAQF,4DAQA,uJAEE,8FAKF,uPAUA,8DACE,2FAGF,6N1ExFA,uD0EoGA,mBAHE,uBAGF,iCAHE,SAGF,eAJE,qBAIF,kDAJE,UAIF,8FAME,2iBAMF,eAJI,YAIJ,4JAME,oBAGF,wQAUA,CAVA,aAUA,+TAUE,sGAIA,yIlEjjBJ,6FkEujBI,+JlEpoBF,4BkEooBE,qSAYA,wBAMF,gHAGE,8SAkBF,+BAEE,cpDpZmB,CoDkZrB,0EAGE,uMAKF,+jBAoBA,gJASA,kTAsBA,4ElE1oBF,uBkE8oBI,gBlE5oBJ,iBAFA,SAEA,+BAGE,cACA,CAJF,eAJA,oBACA,CAGA,uKAIE,eACA,qBAGF,+GAME,oBAdF,WAcE,iFACA,0HAPF,mFAYI,yHA1BJ,oBAEA,wFAIA,gBkEmpBI,WlEnpBJ,8KAIE,uHAMA,kBAEA,iGAEA,+BACA,cACA,uGARF,gEAYI,kOA5DJ,+BA2HA,ckEglBA,ugB1EpRE,2B6BtjBF,iI8CyBE,kBACA,cACA,wCAEA,YACA,8CnEwHF,kCqBjJE,8E8C6BE,kBAIJ,CALE,WACE,CAIJ,e9CtCA,C8CiCE,U9CjCF,mBACA,CAKI,iB8C2BF,C9ChCF,eAIE,2PACE,0B8CgDJ,kG9ChDI,kDALJ,2CAIE,0CACE,CADF,wF8CiEF,uC9CrEA,oFAIE,sBACE,e8CwEJ,iE9CzEE,8CACE,C8CgFJ,qB9CtFA,CAKE,UACE,oBADF,kBACE,eANJ,iNAKE,2M8CyGF,mB9C9GA,YAKE,YAJF,OADA,uBACA,WAIE,CALF,8CAKE,6G8CiHF,sB9CtHA,eACA,qE8CyHA,kB9C1HA,CAMI,Q8CoHJ,C9CpHI,W8CoHJ,Y9CrHE,gBACE,UADF,kB5B6Bc,kB0E2Fd,oB9CxHA,S8CwHA,qE9CxHA,wG8C2HF,4C9C3HE,6H8C2HF,C9C3HE,S8CgIA,mB9ChIA,gFACE,CADF,S8CsIA,sBAEA,C1ErDY,a0E6CZ,C9ChIA,e8CwIA,e9CxIA,qB8CgIA,oB9ChIA,iC8CgIA,sBACE,C9CjIF,yC8CqIF,aACE,CANA,gDACE,oBAIJ,CAGE,qBACA,sBAGF,4BACE,iFASF,wBAEE,4BACA,aACA,eAEA,wBACE,cAIJ,mFAIA,wBAEE,mBACA,wBAEA,yGAKA,wBAEA,0CAEA,+HAGA,gBACE,wBAIJ,cAEE,qFAKA,wBACA,gBACA,wBAEA,cACE,qFAQJ,wBACE,gBACA,wBACA,cAGF,qFAIA,iEAEE,qGASA,wBAIF,wCACE,cAGF,qFAOA,wBnExFA,qBAEA,wBACA,cACA,+FAGA,kLAUE,wBAGA,yBACA,0IAGA,wBAEA,wCAXF,mCAYI,CAZJ,aAYI,2FqBtLF,yBACE,8F8C0PF,sCACE,+VAYJ,wBnEjBI,iHAIA,kBACA,iBoErPJ,c5E0iBE,CQrTE,eoErPJ,C5E0iBE,uBA0LsB,kBA1LtB,6BQrdA,kCACA,aoEjFA,6BAEA,cACA,kBAGA,gCAFA,eACA,CADA,aAEA,CACA,mCACA,uBAEA,+EAIF,kBpEuCE,CAGA,4BoE1CF,CpEwCE,QAEA,CoE1CF,oCpE2CI,eoEtCJ,CATE,aAIF,4BpEuCE,sBACA,CAEA,qBAFA,UoEnCF,oG5EkhBE,C4E3hBA,Y5E2hBA,0B4ElhBF,wC5EkhBE,4B4E7gBF,C5E6gBE,S4E5gBA,mB5E4gBA,8C4E5gBA,YAGF,C5EygBE,UQ/gBF,UoEMA,2BACE,iBAGF,yCAEE,kBAIF,4BACE,kBACA,kC3EDW,C2ESb,gEAEE,+BACA,+DAKF,4BACE,wCADF,YACE,cAGF,iEAKA,kDpEiFA,oCAEA,CAJA,cAIA,uBAEA,2CAGE,CAHF,4BAGE,aACA,gBACA,CALF,8BoElFE,iBpEkFF,CAKE,aAGF,sFAME,qEAEA,kDAGA,2CAXF,8BAYI,CALF,WACA,CAFA,MACA,CADA,wBACA,WAKE,8CoEpGF,yGACE,oGC1EJ,wBAEE,8FAIA,kErEmDA,sBAEA,gCqElDA,uBrEmDE,uEqE1CJ,uCAME,mEAKA,2BAKA,2CrEsBA,CqEtCF,CrEsCE,eqEhBE,mFrEgBF,iBACA,gBAEA,CqEnBE,YrEmBF,oBqEzBA,CrEyBA,oBqEnBE,kCANF,iDrE0BE,CqEpBA,uI7EggBF,CQ5eE,UR4eF,sEA0LsB,mB6E1qBtB,sCAGF,2GAIE,aACA,kBAIF,iBACE,oBAGF,CAJA,mBACE,CALA,SAQF,6BACE,aACA,kBACA,gBAGF,CACE,oBACA,CAFF,mBACE,CALA,SAMA,uBACA,qBAGF,6CAEE,yBAEA,YACA,CADA,kBACA,wCAKA,YACA,CANA,iBAGF,CACE,UACA,CAFF,UAGE,yBAKE,wBAGF,CALA,mCAEE,CAGF,arE/CA,gCACA,oDqE8CA,mDAKF,2DAKE,qBACA,6BAMA,kBACE,CAHF,WAEA,CACE,eACA,CACA,eALF,UAIE,mBACA,CANF,iBAME,wGAGA,uCANF,oCAWE,kDAGE,2CAQJ,oBACE,WAZA,sDAYA,8CAMF,uCAGA,mCAEA,sBACA,wEAGF,iBAIA,0CACE,iBAEA,+FAMA,wBACA,CAPA,aAEA,CAGF,gBAHE,cAGF,CAEE,iDAEA,CAJF,YAIE,0CACE,0DAGF,uDACE,qBACA,0HAOA,oFACE,gEAVJ,wDAWM,yBAMR,oBACE,sCAGF,uDAIA,wNAaE,SAGF,yCrEjHA,QACA,sBAEA,iBACA,CACA,eACA,CACA,oBACA,CAFA,mBqE+GA,6IrE7GA,kCqEiHA,yCACE,4DAKF,sCACE,CADF,aACE,uBAGF,4BAIA,CAJA,oCAIA,yCAGE,sBCtPA,CDmPF,WAGE,CAHF,kBCnPE,yCAIF,sBAGE,iCAFA,QAEA,0BAKF,YACE,CALE,iBAKF,4BACA,yBAGF,oBACE,sCAGA,2BAGF,oBtE6DE,mCACA,SRodA,gM8E9gBA,CACA,uBACA,0CAEA,yFAGA,8ItERF,csEaA,sCACE,uBAGE,sBAGF,mBAJA,kCAIA,qEAJA,UAIA,mCAEE,aACA,mCACA,aACA,sGAMF,kBAKF,6KAIE,wBACA,0DtEyCF,SACA,4FuE8BI,mBACE,CAIJ,6FAGE,kEAIA,yDASA,eACA,0BAGA,wBACE,6CAIA,SACA,iDAEA,wFAIA,gDACA,0EAbF,kBAkBI,CADF,QAjBF,CAiBE,WAjBF,YAeE,eAEA,WAFA,kBAGE,kBAKJ,oBANE,SAMF,iCAEE,yBAEA,oBACA,sCAEA,gCAEA,oBACA,CACA,0CACA,wMAIJ,oEAIE,YACA,kBAGA,qBAFA,YAEA,gDACA,6CAGF,yC/EkVA,sE+E1UA,SAJE,cACA,mBAGF,CAJE,UAIF,+BAcA,kBAME,CANF,aATA,2FASA,0FATA,kDAeE,iGAUA,CAhBF,cAgBE,uEACE,sDACA,kEAOJ,sBAIE,wEAGF,6GAUA,6BANE,mCAMF,cACE,mBAMA,2FAIA,gNAIA,2BAEE,aAGA,kBALF,CAKE,SAFA,UAEA,aAFA,gBAEA,UAHA,iBACA,CAHF,sCAGE,SAHF,mDAWF,+CAXE,iCAMI,oBAKN,CAXE,mBAMI,CAKN,yDAME,aAGF,CATA,iBAME,WAGF,gCAMA,wBAGE,uBAOF,uDAGE,CAbF,sBAaE,UACA,eAEA,CAtBF,aAGE,cAGF,CANA,wBAsBE,gGAIE,CAvBF,WAuBE,sBACA,mDAGF,+BACE,eACA,CACA,+BASF,wEAGF,gBAPA,c9EpTW,e8EwTT,CAJF,6CAOA,yDASE,mJAWF,CA3BA,cA2BA,oBvE1QF,UADA,eACA,CAHA,YACA,CALA,iBACA,CACA,WACA,CAKA,2BACA,oBuE2QI,wCAKF,CvEpRF,aACA,CALA,SuEwRE,kD/EsKA,iC+EnKE,CACA,oBACA,CAFA,mBACA,CAEA,iBACA,CAFA,iBAEA,yBAIA,SACA,CAFF,iBAEE,sIAWE,iBACA,sIAMA,cACA,qKAIA,qBAhBF,qCAsBA,6BACE,+DAIA,sDAGA,2GAGA,iLAGF,wBACE,uE/E8GJ,sK+ElGE,kBACA,wCAOF,gMAQE,eAMA,mIAIA,4FAEE,2EAOJ,uKAYA,sBAEE,CAFF,kCANE,KAMF,WAEE,qEAQA,eALF,aAGE,CAHF,aAGE,aAEA,kEACE,wDAGF,mGAIA,2IAEE,gCACA,mBAHF,4BAKE,UALF,aAKE,gBALF,UAGE,iBAEA,CALF,sCAKE,SALF,+DAcA,sBAOA,8BAVF,kCAGE,CAdA,gBAMI,gBAKN,yCAUE,qBAIE,kCAHA,YACA,CAEA,cAJF,iBACE,CACA,UAEA,4BAMA,+CAEE,uDAIJ,CANE,sBAMF,WATI,cAGF,cALE,iBACA,CACA,MASJ,gGAEE,CAXE,UAGF,CAQA,sBAMF,8EACE,2CAKA,wCADA,qBACA,YAFF,6BACE,CADF,cAHE,iBAGF,cAEE,yDAIJ,kD9EpfY,C8E8fZ,gGvEpbF,CuEoaI,cvEpaJ,8CAGA,euEsbI,8CvEpbJ,+NAIE,mBACA,kMASA,gGAGA,sGATF,0DAYI,6BuEqaF,0JvE7bF,2CAEA,qDAEA,2MAQA,uGAME,sLAKA,0DAXF,mDAYI,6JAvBJ,eACA,wFAEA,gNAIE,CAJF,sBAIE,6EAIF,8KAME,uGAKA,uCAXF,8GAYI,wDuE6bF,oCAGE,uFvEzdJ,YACA,uEAIA,gWAYE,WACA,eACA,2FAGA,kDAEA,2CAXF,+BASE,YADA,OAFA,iBACA,MACA,WACA,CATF,8CuEudE,oHvEreF,sBAEA,eACA,wDAGA,sFuEseI,eACA,CvEveJ,gDuEueI,YvEveJ,sLAIE,WACA,eAGF,2EAIE,kDAEA,8DACA,YAJA,WACA,CAHA,OADF,iBACE,iBAEA,CAIA,8CAEA,uCAEA,6DAXF,0HuEkeE,+CAQA,iBARA,6BAQA,CARA,kBAQA,uRAaA,uCAGE,2FvE/aJ,6FuEwbE,+BvE7aE,WAXJ,CAWI,OuEyaF,iBvEzaE,kBuE6aF,8CvE7aE,uCuEkbE,0FClqBJ,sBACE,eAGF,qE/EgBQ,kB+EJN,CADA,YACA,gBANF,WACE,CADF,aACE,aAGF,CAPE,eAGF,CAIA,UAEE,oBAFF,kBAJA,UASA,6NAUE,WAIF,uGAKI,kDAGF,2C/ETO,C+EaP,8BAPE,YADA,MACA,CAFF,iBACE,OACA,WAOF,8CAKF,uCACE,0EAIA,sBAIJ,eACE,gGAUA,kBACA,CAFA,WACA,CACA,eAEA,CxErCA,YAEA,CwE8BA,SACA,CAIA,oBARA,iBAGA,CAKA,iBxErCA,WAEA,8SwEoDF,WACE,eAGF,mHAUA,kDhFybE,yEiFviBA,CD8GF,sDC9GE,8CAGA,uCAEA,qGAKF,sBAKE,eACA,6GAGF,uPAgBA,0FAKA,oFAMA,wDAKE,CAIA,uGAMA,0DAVA,CAUA,aAKF,mBALE,iCAKF,gCACE,gBACA,+BAGF,qFzEhBE,mDAGA,2DyEaF,oCAIA,4BzEhBI,YyEgBJ,CzEhBI,UyEgBJ,6BAEE,sBAGF,+CAEE,uBAGF,4DAEE,+EAGF,0DAEE,4DAKF,iFAGE,aAGF,kJAKE,8CAGF,CAJE,YAIF,0BjFwbE,gCiFxbF,WjFwbE,CiFxbF,yCjFwbE,gCiFpbA,yBACA,CACA,qCAEA,mDARF,mHAWI,CAKJ,gBAJI,oBAIJ,CALI,mBACA,CAIJ,iGAGE,QhFrES,CgFwEX,6BANA,UAMA,4GAGE,4CAHF,mBAcA,yBAJA,mCACE,CADF,6BAVA,aAGE,iB/EjBE,gB+EcJ,0CAUA,CAVA,mDAcA,gCCxJA,aACE,CDwJA,aCxJA,yBAEA,+BAGA,oBAEA,iE1EyHF,mB0EvHE,YAGF,Y1EoHA,gCAGA,gH0ElHE,0E1E0HF,qF0ErHA,wEAgBA,aAZE,kBAGF,CAKA,eACE,CANF,WAKA,CALA,6BAKA,CACE,4BAGF,CAhBA,wBAIE,CAGF,uBAKA,SALA,kBASA,iGAMA,iDAME,WAGF,CAJA,UAIA,gFACE,yBAIA,oBAGF,sCAIA,+EAME,oBACA,yChFmDE,kBgFhDJ,0DlFgeE,kFkFldA,sBACA,CAHA,oBAGA,kGAOA,aAHA,sBAEA,mBACA,8EAKA,kBAGF,CAHE,WAGF,oJASA,wBAEE,kHhFOE,iBgFDJ,gBAOI,CAOA,WACA,CALF,oBACE,CAJA,mBAGF,CAOE,qBALA,cAEA,CACA,uBACA,CALA,UAMA,yBAEA,iHAYJ,eAJE,qBAIF,+HASE,kBAEA,oHAMA,0CAEA,2BAGF,4IAOE,UCg+BgB,CD/9BhB,yCAGF,6BAEE,sCAIF,2CAQA,2CAEE,CAFF,gCALE,YAKF,aALE,OAHF,sBAGE,CAHF,kBAUE,qBAMA,uCAIF,kDAEE,CAFF,eARE,oBAEA,CAMF,YANE,SACA,CAOA,kDAGF,CALA,qBAKA,sLAWE,YACA,CACA,wEAOF,yCACE,wBAGF,6BAIA,+BACE,8BAGF,CARA,8BAQA,4CAIE,yCAIF,qFAEE,+CAGF,SACE,+BAGA,6CAGF,sCAGE,kBACA,CAFA,YACA,CACA,sBAGA,yBACA,iCACA,YACA,qBAIF,mDAGE,CAHF,aAJE,iBACA,iBAMA,eAGF,CANA,YAHE,oBAGF,CAMA,oBATE,oBASF,iCANA,sBAMA,iDAGE,yBAGF,2CAIA,4CACE,4DAKA,+FAEA,8EAMF,CANE,iBAMF,yBAEE,iBAEA,uCAaA,wBACA,WACA,CAPA,aAEA,CACA,aAEA,CALA,OAFF,iBACE,QACA,CAOA,kCACA,CAGF,2BATE,cASF,CACE,sBAEA,YACA,YACA,CAEA,gBADA,QACA,CAFA,SAGA,yBAGA,kBACA,CE3VF,4BCsDA,eHmSE,aGnSF,iCDnDE,CFsVA,WACA,CEvVA,gBACA,qBAEA,CFqVA,cACA,CAJA,iBACA,CEnVA,oBAEA,8DDwoCgB,CCnoChB,wBACA,iBAGF,+BACE,wBACA,eACA,0DErBA,wBAEA,cAEA,+BAEA,iBAEA,2BACA,wGAEA,YACA,oSAKA,uHAQA,qBACA,sBAGF,iBACE,qCtF6gBA,gCsFvgBF,StFugBE,WsFvgBF,iDtFugBE,CA0LsB,oCsF5rBtB,wBAGF,2CAIA,qDAIA,8DAEE,wBAEA,WACA,CAHA,YAGA,qEAMF,4EAEE,aAGF,yBAHE,SAGF,+DtFueE,yBsFpeA,QAGF,CtFieE,qCsF7dA,CAJF,atFieE,sBsFjeF,OAJE,kBAQA,kCAIF,4BARA,atFieE,CsFreA,YAYF,4FAWE,qHASA,wBAEA,0CAEA,WACA,gDAIA,sCACA,yBAIA,YAGF,CAJA,iBACE,CAGF,2CtFobE,+FsF5aF,0CACE,CADF,YACE,wBACA,CACA,qBAGA,kBACE,CADF,gCAFA,eAEA,WAFA,kBAGE,kBAIJ,oBALE,SAKF,4BAQA,UAJA,kBACE,CAGF,+DH+/BkB,CGngClB,gCAUA,aATE,cAGF,CAJA,iBAHE,YAaF,mBAMA,wBAEE,CAFF,qBAEE,aAGF,CALA,gBAJE,eAIF,QAHE,QAGF,CANA,kDAEE,CASF,sBALA,QAKA,kBATE,YASF,6BC/JE,6BACA,CAHA,8BAEA,CAHF,WAIE,qBAUA,wBAGF,CAPE,QAGF,aAIA,iBACE,gBACA,CANF,cACE,CATA,cAGF,CAEE,QADA,QACA,CAUA,uCAGA,gCAGF,4DvFghBE,oDuF3gBA,qGAKE,CAvBJ,YAuBI,qBACA,CA7BJ,YA6BI,sBACA,uCAIA,gCAIF,yBACE,8BAKJ,qBAJI,cAIJ,0BAEE,wBCLA,iEAYA,cANA,iBAEA,gBACA,CACA,oBAEA,CAHA,mBACA,CAEA,cAKA,gEtFoFA,mBsFrFF,gEAyBA,gEAJA,oBAIA,gBAEE,CAFF,UAEE,4EAQA,yBACA,4EAEA,gFAQE,kBAEA,CAFA,atFuCF,iBsF3CF,gBAEI,CACA,oBACA,CAFA,mBACA,CAGA,4GAOJ,kBACE,CAIF,eALA,aACE,6BAIF,+BAIA,kBACE,mBACA,kBAMF,CANE,gCAMF,kBACE,qBACA,CARA,UAQA,CACA,wBAMF,kCAEE,aACA,6BAEA,0CA7HF,+CAgII,CAhIJ,2DAgII,wDAYF,kBACA,CARA,YAMF,CAEE,sBAIA,CANF,YAME,gFAjJF,kJAuJA,oFAKA,YApLA,8DAyLE,kCAEA,CAJA,YAEA,CAEA,YACA,8EAKF,eAEE,kDAOA,YACA,eAEA,kBAGF,CACE,aACA,CANA,YACA,uBAGF,sBAEE,qBAGA,WACA,CAFA,UAEA,iCAIF,ehFvIE,8BgFgJA,kBAEA,CALA,WACA,ChF7IA,cgF2IA,UACA,CACA,iBAEA,ChF/IA,WgFiJA,0BAMA,aAGF,CALE,aACA,CALA,iBACA,iBAIA,WACA,CAHA,oBACA,CAHA,mBACA,CAIA,qBAGF,oBhFtLE,wEAGA,kBgFmLF,6BhFlLI,gCgFyLJ,sBAEE,oBACA,iChFrKA,gCACA,oCA0CF,kBACA,CACA,4BgFiIE,qBACA,ChFhIF,SgFgIE,ahF1HF,CAHE,OgF2HA,eACA,ChF5HA,egF0HA,ChF/HF,cACA,CACA,MAMA,6CgF6HA,CALE,WAKF,kBhFpIA,YgFoIA,mBhF7ME,oBACA,4BAEA,yBgF0MF,gChFzMI,uBgFgNJ,iGApPA,+DA8PA,CA9PA,gBA8PA,UA9PA,wBA8PA,iGAUA,CAxQA,OAwQA,4BAEE,8BAGF,kZAWE,sBACA,CADA,WACA,uBAGF,mFAiBA,2KAEE,YACA,mCAMF,ChFjNA,8BACA,CgFgNA,YhF9MA,UADA,kBACA,mBA5CE,yLADA,kBgFqQA,sBAGA,kBhFnNF,oCgFmNE,gBAFA,uChFjNF,wBgFsNA,kBALE,kBAKF,4CAKA,2ChFxSE,mBAFA,YAEA,8BgFwSF,ChF3SE,iBgF2SF,iCAjWA,aADA,kBACA,CAFA,qBACA,ChF2DI,iBgF2SJ,YAvWA,CAuWA,KArWA,uBAiXA,uBAEE,gBACA,0BAHF,YAGE,6CANA,SAMA,iBAPA,WACA,CAFA,WACA,CAFF,iDACE,CAEA,kBAGF,CAGE,uBAGF,gHAGE,4BAGF,4CAIA,sBAHE,aAGF,CAHE,UAGF,uBAKA,uBAEE,gBACA,iBAHF,SAGE,cACA,CAJF,qBAME,YAVA,6BACA,oBAGF,CAME,2DAFA,UAEA,yCAIE,QACA,6BLgbiB,yBK1arB,0DAEE,4BAGF,oBACE,EACA,qBAIF,SAHE,eAGF,kBASE,uKAIF,mDAEE,uEAFF,UAIA,mbhFlWE,wBACA,gNgF6XA,oDAIF,wBACE,wBAGF,CAJA,4BAIA,wBAaA,mBAbA,uBAzdA,gBACA,iBAwdA,ShFjaE,cgFvDF,cACA,CAudA,qBAaA,aAPE,iBACA,gBACA,CAKF,YAJE,oBACA,CAFA,mBACA,CACA,iDAGF,ehF9aE,yDAGA,yBgF2aF,kBApeA,UAoeA,0ChF1aI,sCgF+aJ,oEAEE,yBAIF,0IAMA,4HAME,YACA,kCAOF,oCAKE,6CAIF,2EAIA,CATE,UASF,+EAMA,gCAIA,4EAGE,WAGF,kFAGE,cAMF,yEAEE,wBAGF,eALA,iBAKA,gFAUA,yBtFtaE,SsFsaF,UAEI,CtFxaF,OsFgaA,iBtFhaA,gBsFwaE,0DtFxaF,6BsF4aF,kCAII,aACA,kBACA,gEAKF,mBAEA,mBACA,0CAOF,eACE,CANA,WACA,gBAIF,kBACE,mEAIA,gKAQA,wBAEA,4JAKA,6BAIA,wIAWF,gCANE,kCACE,qBADF,mBACE,CAKJ,gBANE,kDAMF,cAGE,CARE,iBAKJ,CAGE,oBAGF,iOAWA,wEhF7ZA,egF6ZA,4JC9oBA,yBAEE,oBAEA,sCAGA,uEAKF,oBACE,wEAWF,yBACE,eACA,yHAYA,aAGF,qFAQE,wBAEA,CAJA,SAIA,UACA,CALA,OADF,wBACE,SAKA,qBAQF,kBACE,CARA,YACA,cAMF,CACE,sBAEA,yDAGA,mBACA,yBAKF,aAHE,WAGF,CAHE,UAGF,CAKA,4HAKA,wFAQE,aAGF,uFjFwCA,kBACA,iHAOA,iBACE,4BiF1CF,+BACE,aAGF,mCACE,wCACA,iCAIA,aACA,mBACA,CAHF,iBAGE,sCAMA,kBAIF,CAPE,aAOF,WAJE,gBAHA,SACA,CAFA,iBACA,CACA,uBAMF,uCAIA,cAJA,6BAIA,mBACE,2DAIF,4BACE,CACA,4EASF,6BAJA,cACE,CAGF,iDAGE,eANA,UAMA,gFAMA,UACA,qGAOF,eAGE,CAHF,oBAGE,2GAQF,+FAGE,6LAgBA,YACA,qEClMF,sM3KKA,eACE,kBAKE,wBAEA,CAHA,SAGA,yCAKF,eARE,OAFF,cACE,SACA,YACA,CAFA,YASF,wByF+CA,sCACA,YAEA,gDACE,wBzF/CF,YAJA,sCAIA,sBACE,kBAGF,CAJA,YACE,CADF,iBAIA,kHAKE,wBkFoDU,ClFzDZ,SAME,WANF,sDAME,uBAGF,oSAQE,kDAGF,qFAaI,mBANF,uBACA,gBAEA,gBAEA,CANF,QACE,CAKA,eATA,oBAGF,CAME,YACE,CAPJ,UAME,UACE,oDAKJ,gDAIA,qJAQE,kBAGF,CACE,aAGF,CATA,aASA,iCACE,CALF,8BALA,iBAEE,CAGF,iBACE,CADF,mBALA,UAUE,4DAIF,+CACE,YAGF,wEAKE,kBACE,CADF,6BACE,iBAGF,iDACE,iFAMF,iEAIF,wBACE,CAJA,QAGF,CACE,WADF,qBAHE,wBAGF,SACE,8DAIA,0BACA,qEAIF,eACE,yEAGA,gCACE,yBAIJ,2HASA,mBATA,aAME,aAGF,0CACE,CAVF,cAME,CANF,UAUE,cAEA,8DACE,eACA,4BAGA,gBACA,mDAMN,kBACE,yBoFxJJ,0BDyJI,sCC9IA,CARF,iBAQE,gCACE,kEAOF,6CACE,sCApBN,qDA2BI,oBAEA,iEHghBA,YA0LsB,CA1LtB,gMGrfJ,wBACE,cACA,qTAoBA","sources":["../node_modules/carbon-components/scss/components/treeview/_treeview.scss","index.scss","style.css","benchmarks/app.scss","../node_modules/bootstrap/scss/bootstrap.scss","../node_modules/bootstrap/scss/_root.scss","../node_modules/bootstrap/scss/_reboot.scss","../node_modules/bootstrap/scss/_variables.scss","../node_modules/bootstrap/scss/vendor/_rfs.scss","../node_modules/bootstrap/scss/mixins/_hover.scss","../node_modules/bootstrap/scss/_type.scss","../node_modules/bootstrap/scss/mixins/_lists.scss","../node_modules/bootstrap/scss/_images.scss","../node_modules/bootstrap/scss/mixins/_image.scss","../node_modules/bootstrap/scss/mixins/_border-radius.scss","../node_modules/bootstrap/scss/_code.scss","../node_modules/bootstrap/scss/_grid.scss","../node_modules/bootstrap/scss/mixins/_grid.scss","../node_modules/bootstrap/scss/mixins/_breakpoints.scss","../node_modules/bootstrap/scss/mixins/_grid-framework.scss","../node_modules/bootstrap/scss/_tables.scss","../node_modules/bootstrap/scss/mixins/_table-row.scss","../node_modules/bootstrap/scss/_forms.scss","../node_modules/bootstrap/scss/mixins/_transition.scss","../node_modules/bootstrap/scss/mixins/_forms.scss","../node_modules/bootstrap/scss/_buttons.scss","../node_modules/bootstrap/scss/mixins/_buttons.scss","../node_modules/bootstrap/scss/mixins/_gradients.scss","../node_modules/bootstrap/scss/_transitions.scss","../node_modules/bootstrap/scss/mixins/_caret.scss","../node_modules/bootstrap/scss/_dropdown.scss","../node_modules/bootstrap/scss/mixins/_nav-divider.scss","../node_modules/bootstrap/scss/_button-group.scss","../node_modules/bootstrap/scss/_input-group.scss","../node_modules/bootstrap/scss/_custom-forms.scss","../node_modules/bootstrap/scss/_nav.scss","../node_modules/bootstrap/scss/_navbar.scss","../node_modules/bootstrap/scss/_card.scss","../node_modules/bootstrap/scss/_breadcrumb.scss","../node_modules/bootstrap/scss/_pagination.scss","../node_modules/bootstrap/scss/mixins/_pagination.scss","../node_modules/bootstrap/scss/_badge.scss","../node_modules/bootstrap/scss/mixins/_badge.scss","../node_modules/bootstrap/scss/_jumbotron.scss","../node_modules/bootstrap/scss/_alert.scss","../node_modules/bootstrap/scss/mixins/_alert.scss","../node_modules/bootstrap/scss/_progress.scss","../node_modules/bootstrap/scss/_media.scss","../node_modules/bootstrap/scss/_list-group.scss","../node_modules/bootstrap/scss/mixins/_list-group.scss","../node_modules/bootstrap/scss/_close.scss","../node_modules/bootstrap/scss/_toasts.scss","../node_modules/bootstrap/scss/_modal.scss","../node_modules/bootstrap/scss/_tooltip.scss","../node_modules/bootstrap/scss/mixins/_reset-text.scss","../node_modules/bootstrap/scss/_popover.scss","../node_modules/bootstrap/scss/_carousel.scss","../node_modules/bootstrap/scss/mixins/_clearfix.scss","../node_modules/bootstrap/scss/_spinners.scss","../node_modules/bootstrap/scss/utilities/_align.scss","../node_modules/bootstrap/scss/mixins/_background-variant.scss","../node_modules/bootstrap/scss/utilities/_background.scss","../node_modules/bootstrap/scss/utilities/_borders.scss","../node_modules/bootstrap/scss/utilities/_display.scss","../node_modules/bootstrap/scss/utilities/_embed.scss","../node_modules/bootstrap/scss/utilities/_flex.scss","../node_modules/bootstrap/scss/utilities/_float.scss","../node_modules/bootstrap/scss/utilities/_interactions.scss","../node_modules/bootstrap/scss/utilities/_position.scss","../node_modules/bootstrap/scss/mixins/_screen-reader.scss","../node_modules/bootstrap/scss/utilities/_shadows.scss","../node_modules/bootstrap/scss/utilities/_sizing.scss","../node_modules/bootstrap/scss/utilities/_spacing.scss","../node_modules/bootstrap/scss/utilities/_stretched-link.scss","../node_modules/bootstrap/scss/utilities/_text.scss","../node_modules/bootstrap/scss/mixins/_text-truncate.scss","../node_modules/bootstrap/scss/mixins/_text-emphasis.scss","../node_modules/bootstrap/scss/mixins/_text-hide.scss","../node_modules/bootstrap/scss/utilities/_visibility.scss","../node_modules/bootstrap/scss/_print.scss","benchmarks/content/BenchmarkVisualizationsPage/_plot-box.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.import.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/themes/generated/_mixins.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss","benchmarks/content/BenchmarkVisualizationsPage/_visualizations-page.scss","../node_modules/carbon-components/scss/globals/scss/_css--reset.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss","../node_modules/carbon-components/scss/globals/scss/_helper-mixins.scss","../node_modules/carbon-components/scss/globals/scss/_helper-classes.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/font-face/_mono.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/font-face/_settings.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/font-face/_sans.scss","../node_modules/carbon-components/scss/globals/scss/_css--helpers.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.import.scss","../node_modules/carbon-components/scss/components/accordion/_keyframes.scss","../node_modules/carbon-components/scss/components/accordion/_accordion.scss","../node_modules/carbon-components/scss/components/link/_link.scss","../node_modules/carbon-components/scss/components/breadcrumb/_breadcrumb.scss","../node_modules/carbon-components/scss/components/button/_button.scss","../node_modules/carbon-components/scss/components/button/_mixins.scss","../node_modules/carbon-components/scss/globals/scss/_tooltip.scss","../node_modules/carbon-components/scss/globals/scss/_theme-tokens.scss","../node_modules/carbon-components/scss/components/form/_form.scss","../node_modules/carbon-components/scss/components/checkbox/_checkbox.scss","../node_modules/carbon-components/scss/globals/scss/_keyframes.scss","../node_modules/carbon-components/scss/components/code-snippet/_code-snippet.scss","../node_modules/carbon-components/scss/components/code-snippet/_mixins.scss","../node_modules/carbon-components/scss/components/list-box/_list-box.scss","../node_modules/carbon-components/scss/components/tag/_mixins.scss","../node_modules/carbon-components/scss/components/combo-box/_combo-box.scss","../node_modules/carbon-components/scss/components/content-switcher/_content-switcher.scss","../node_modules/carbon-components/scss/components/copy-button/_copy-button.scss","../node_modules/carbon-components/scss/components/data-table/_data-table-action.scss","../node_modules/carbon-components/scss/components/data-table/_data-table-core.scss","../node_modules/carbon-components/scss/components/data-table/_data-table-expandable.scss","../node_modules/carbon-components/scss/components/data-table/_data-table-sort.scss","../node_modules/carbon-components/scss/components/data-table/_data-table-inline-edit.scss","../node_modules/carbon-components/scss/components/data-table/_data-table-skeleton.scss","../node_modules/carbon-components/scss/components/date-picker/_flatpickr.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/generated/_spacing.scss","../node_modules/carbon-components/scss/components/date-picker/_date-picker.scss","../node_modules/carbon-components/scss/components/dropdown/_dropdown.scss","../node_modules/carbon-components/scss/components/loading/_keyframes.scss","../node_modules/carbon-components/scss/components/loading/_mixins.scss","../node_modules/carbon-components/scss/components/loading/_vars.scss","../node_modules/carbon-components/scss/components/loading/_loading.scss","../node_modules/carbon-components/scss/components/file-uploader/_file-uploader.scss","../node_modules/carbon-components/scss/components/inline-loading/_keyframes.scss","../node_modules/carbon-components/scss/components/inline-loading/_inline-loading.scss","../node_modules/carbon-components/scss/components/list/_list.scss","../node_modules/carbon-components/scss/components/menu/_menu.scss","../node_modules/carbon-components/scss/components/modal/_modal.scss","../node_modules/carbon-components/scss/components/multi-select/_multi-select.scss","../node_modules/carbon-components/scss/components/notification/_inline-notification.scss","../node_modules/carbon-components/scss/components/notification/_mixins.scss","../node_modules/carbon-components/scss/components/notification/_toast-notification.scss","../node_modules/carbon-components/scss/components/number-input/_number-input.scss","../node_modules/carbon-components/scss/components/overflow-menu/_overflow-menu.scss","../node_modules/carbon-components/scss/components/pagination-nav/_pagination-nav.scss","../node_modules/carbon-components/scss/components/select/_select.scss","../node_modules/carbon-components/scss/components/text-input/_text-input.scss","../node_modules/carbon-components/scss/components/pagination/_pagination.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/layout/scss/generated/_size.scss","../node_modules/carbon-components/scss/components/progress-bar/_progress-bar.scss","../node_modules/carbon-components/scss/components/tooltip/_tooltip.scss","../node_modules/carbon-components/scss/components/progress-indicator/_progress-indicator.scss","../node_modules/carbon-components/scss/components/radio-button/_radio-button.scss","../node_modules/carbon-components/scss/components/search/_search.scss","../node_modules/carbon-components/scss/components/skeleton/_skeleton-text.scss","../node_modules/carbon-components/scss/components/skeleton/_skeleton-placeholder.scss","../node_modules/carbon-components/scss/components/slider/_slider.scss","../node_modules/carbon-components/scss/components/structured-list/_structured-list.scss","../node_modules/carbon-components/scss/components/structured-list/_mixins.scss","../node_modules/carbon-components/scss/components/tabs/_tabs.scss","../node_modules/carbon-components/scss/components/tag/_tag.scss","../node_modules/carbon-components/scss/components/text-area/_text-area.scss","../node_modules/carbon-components/scss/components/tile/_tile.scss","../node_modules/carbon-components/scss/components/time-picker/_time-picker.scss","../node_modules/carbon-components/scss/components/toggle/_toggle.scss","../node_modules/carbon-components/scss/components/toolbar/_toolbar.scss","../node_modules/carbon-components/scss/components/pagination/_unstable_pagination.scss","../node_modules/carbon-components/scss/components/ui-shell/_header.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/colors/mixins.scss","../node_modules/carbon-components/scss/components/ui-shell/_header-panel.scss","../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/motion/motion.scss","../node_modules/carbon-components/scss/components/ui-shell/_product-switcher.scss","../node_modules/carbon-components/scss/components/ui-shell/_switcher.scss","../node_modules/carbon-components/scss/components/ui-shell/_side-nav.scss","../node_modules/carbon-components/scss/components/ui-shell/_navigation-menu.scss","../node_modules/carbon-components/scss/components/ui-shell/_content.scss"],"sourcesContent":["//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n//-----------------------------\n// Treeview\n//-----------------------------\n\n@import '../../globals/scss/vars';\n@import '../../globals/scss/vendor/@carbon/elements/scss/import-once/import-once';\n@import '../../globals/scss/helper-mixins';\n@import '../../globals/scss/typography';\n\n/// Treeview styles\n/// @access private\n/// @group treeview\n@mixin treeview {\n .#{$prefix}--tree {\n overflow: hidden;\n\n .#{$prefix}--tree-node {\n padding-left: $spacing-05;\n background-color: $ui-01;\n color: $text-02;\n\n &:focus {\n outline: none;\n }\n }\n\n .#{$prefix}--tree-node:focus > .#{$prefix}--tree-node__label {\n @include focus-outline('outline');\n }\n\n .#{$prefix}--tree-node--disabled:focus > .#{$prefix}--tree-node__label {\n outline: none;\n }\n\n .#{$prefix}--tree-node--disabled,\n .#{$prefix}--tree-node--disabled .#{$prefix}--tree-node__label:hover,\n .#{$prefix}--tree-node--disabled\n .#{$prefix}--tree-node__label:hover\n .#{$prefix}--tree-node__label__details {\n background-color: $disabled-01;\n color: $disabled-02;\n }\n\n .#{$prefix}--tree-node--disabled .#{$prefix}--tree-parent-node__toggle-icon,\n .#{$prefix}--tree-node--disabled .#{$prefix}--tree-node__icon,\n .#{$prefix}--tree-node--disabled\n .#{$prefix}--tree-node__label:hover\n .#{$prefix}--tree-parent-node__toggle-icon,\n .#{$prefix}--tree-node--disabled\n .#{$prefix}--tree-node__label:hover\n .#{$prefix}--tree-node__icon {\n fill: $disabled-02;\n }\n\n .#{$prefix}--tree-node--disabled,\n .#{$prefix}--tree-node--disabled\n .#{$prefix}--tree-parent-node__toggle-icon:hover {\n cursor: not-allowed;\n }\n\n .#{$prefix}--tree-node__label {\n display: flex;\n min-height: rem(32px);\n flex: 1;\n align-items: center;\n\n &:hover {\n background-color: $hover-ui;\n color: $text-01;\n }\n }\n\n .#{$prefix}--tree-node__label:hover .#{$prefix}--tree-node__label__details {\n color: $text-01;\n }\n\n .#{$prefix}--tree-node__label:hover\n .#{$prefix}--tree-parent-node__toggle-icon,\n .#{$prefix}--tree-node__label:hover .#{$prefix}--tree-node__icon {\n fill: $icon-01;\n }\n\n .#{$prefix}--tree-leaf-node {\n display: flex;\n padding-left: $spacing-08;\n }\n\n .#{$prefix}--tree-leaf-node.#{$prefix}--tree-node--with-icon {\n padding-left: $spacing-07;\n }\n\n .#{$prefix}--tree-node__label__details {\n display: flex;\n align-items: center;\n }\n\n .#{$prefix}--tree-node--with-icon .#{$prefix}--tree-parent-node__toggle {\n margin-right: 0;\n }\n\n .#{$prefix}--tree-parent-node__toggle {\n padding: 0;\n border: 0;\n margin-right: $spacing-03;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n }\n\n .#{$prefix}--tree-parent-node__toggle-icon {\n fill: $icon-02;\n transform: rotate(-90deg);\n transition: all $duration--fast-02 motion(standard, productive);\n }\n\n .#{$prefix}--tree-parent-node__toggle-icon--expanded {\n transform: rotate(0);\n }\n\n .#{$prefix}--tree-node__icon {\n flex-shrink: 0;\n margin-right: $spacing-03;\n fill: $icon-02;\n }\n\n .#{$prefix}--tree-node--selected > .#{$prefix}--tree-node__label {\n background-color: $selected-ui;\n color: $text-01;\n\n &:hover {\n background-color: $hover-selected-ui;\n }\n }\n\n .#{$prefix}--tree-node--selected\n > .#{$prefix}--tree-node__label\n .#{$prefix}--tree-parent-node__toggle-icon,\n .#{$prefix}--tree-node--selected\n > .#{$prefix}--tree-node__label\n .#{$prefix}--tree-node__icon {\n fill: $icon-01;\n }\n\n .#{$prefix}--tree-node--active > .#{$prefix}--tree-node__label {\n position: relative;\n\n &::before {\n position: absolute;\n top: 0;\n left: 0;\n width: rem(4px);\n height: 100%;\n background-color: $interactive-04;\n content: '';\n }\n }\n }\n\n .#{$prefix}--tree--compact .#{$prefix}--tree-node__label {\n min-height: rem(24px);\n }\n}\n\n@include exports('treeview') {\n @include treeview;\n}\n","$feature-flags: (\n grid-columns-16: true,\n);\n\n@import 'carbon-components/scss/globals/scss/styles.scss';\n\n/// Remove overrides once Carbon bugs are fixed upstream.\n/// Need grid option to not add page gutters at large viewports, to also use when nesting grids\n/// @link https://github.com/carbon-design-system/carbon/issues/2792\n@media (min-width: 42rem) {\n .bx--grid--no-gutter {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n}\n\n/// Padding was introduced in 10.3.0, needs an option to let grid set the viewport gutter\n/// @link https://github.com/carbon-design-system/carbon/issues/3010\n.bx--content {\n padding: 0;\n}\n",".span-link {\n cursor: pointer;\n}\n.experiments-wrapper {\n flex-grow: 1;\n overflow: auto;\n}\n.experiments-list {\n table-layout: fixed;\n}\n.experiment-cell {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 70%;\n}\n.bx--side-nav.experiment-navbar,\n.bx--side-nav.benchmark-navbar {\n z-index: 7000;\n}\na.bx--header__menu-item.bx--header__menu-title[aria-label='experiments (selected)'],\na.bx--header__menu-item.bx--header__menu-title[aria-label='benchmarks (selected)'] {\n font-weight: bold;\n}\n.bx--grid.object-to-grid {\n padding-right: 1rem;\n padding-left: 1rem;\n}\n.bx--grid.object-to-grid .bx--col.object-to-grid-key {\n padding-right: 0.5rem;\n}\n\n.bx--structured-list-row.selected-experiment-row {\n background-color: lightgray;\n}\n.bx--structured-list-row.selected-experiment-row .bx--structured-list-td {\n font-weight: bold;\n}\n.bx--data-table th.placeholder {\n background-color: #f4f4f4;\n}\n.bx--grid.database-page .bx--col {\n display: flex;\n align-items: flex-end;\n}\n.bx--grid.database-page .experiment-word {\n display: inline-block;\n}\n.bx--grid.database-page .header-dnd {\n cursor: grab;\n}\n.bx--grid.database-page th.no-placeholder.header-unsortable {\n cursor: default;\n}\n.bx--grid.database-page th.no-placeholder.header-unsortable button {\n cursor: default;\n}\n.bx--grid.database-page th.no-placeholder.header-unsortable:hover button.bx--table-sort {\n background-color: inherit;\n}\n.bx--grid.database-page th.is-over button.bx--table-sort {\n font-style: italic;\n font-weight: normal;\n}\n.bx--table-sort.bx--table-sort--active .header-dnd .bx--table-sort__icon-unsorted {\n display: block;\n}\n.trial-row {\n cursor: pointer;\n}\n.modal-trial-key {\n text-align: right;\n}\n.progress-bar.bg-running {\n background-color: lightgray;\n color: darkslategrey;\n}\n.progress-bar.bg-suspended {\n background-color: pink;\n}\n.database-container {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n","/*!\n * Bootstrap v4.6.2 (https://getbootstrap.com/)\n * Copyright 2011-2022 The Bootstrap Authors\n * Copyright 2011-2022 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root{--blue: #007bff;--indigo: #6610f2;--purple: #6f42c1;--pink: #e83e8c;--red: #dc3545;--orange: #fd7e14;--yellow: #ffc107;--green: #28a745;--teal: #20c997;--cyan: #17a2b8;--white: #fff;--gray: #6c757d;--gray-dark: #343a40;--primary: #007bff;--secondary: #6c757d;--success: #28a745;--info: #17a2b8;--warning: #ffc107;--danger: #da1e28;--light: #161616;--dark: #343a40;--breakpoint-xs: 0;--breakpoint-sm: 576px;--breakpoint-md: 768px;--breakpoint-lg: 992px;--breakpoint-xl: 1200px;--font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace}*,*::before,*::after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",\"Liberation Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex=\"-1\"]:focus:not(:focus-visible){outline:0 !important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;border-bottom:0;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}a{color:#007bff;text-decoration:none;background-color:rgba(0,0,0,0)}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([class]){color:inherit;text-decoration:none}a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit;text-align:-webkit-match-parent}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none !important}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:2.5rem}h2,.h2{font-size:2rem}h3,.h3{font-size:1.75rem}h4,.h4{font-size:1.5rem}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}small,.small{font-size:0.875em;font-weight:400}mark,.mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:0.875em;color:#6c757d}.blockquote-footer::before{content:\"— \"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid,.container-xl,.container-lg,.container-md,.container-sm{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media(min-width: 576px){.container-sm,.container{max-width:540px}}@media(min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media(min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media(min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col-xl,.col-xl-auto,.col-xl-12,.col-xl-11,.col-xl-10,.col-xl-9,.col-xl-8,.col-xl-7,.col-xl-6,.col-xl-5,.col-xl-4,.col-xl-3,.col-xl-2,.col-xl-1,.col-lg,.col-lg-auto,.col-lg-12,.col-lg-11,.col-lg-10,.col-lg-9,.col-lg-8,.col-lg-7,.col-lg-6,.col-lg-5,.col-lg-4,.col-lg-3,.col-lg-2,.col-lg-1,.col-md,.col-md-auto,.col-md-12,.col-md-11,.col-md-10,.col-md-9,.col-md-8,.col-md-7,.col-md-6,.col-md-5,.col-md-4,.col-md-3,.col-md-2,.col-md-1,.col-sm,.col-sm-auto,.col-sm-12,.col-sm-11,.col-sm-10,.col-sm-9,.col-sm-8,.col-sm-7,.col-sm-6,.col-sm-5,.col-sm-4,.col-sm-3,.col-sm-2,.col-sm-1,.col,.col-auto,.col-12,.col-11,.col-10,.col-9,.col-8,.col-7,.col-6,.col-5,.col-4,.col-3,.col-2,.col-1{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}@media(min-width: 576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-sm-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-sm-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-sm-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-sm-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}}@media(min-width: 768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-md-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-md-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-md-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-md-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}}@media(min-width: 992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-lg-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-lg-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-lg-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-lg-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}}@media(min-width: 1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.33333333%;max-width:8.33333333%}.col-xl-2{flex:0 0 16.66666667%;max-width:16.66666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.33333333%;max-width:33.33333333%}.col-xl-5{flex:0 0 41.66666667%;max-width:41.66666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.33333333%;max-width:58.33333333%}.col-xl-8{flex:0 0 66.66666667%;max-width:66.66666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.33333333%;max-width:83.33333333%}.col-xl-11{flex:0 0 91.66666667%;max-width:91.66666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table th,.table td{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm th,.table-sm td{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered th,.table-bordered td{border:1px solid #dee2e6}.table-bordered thead th,.table-bordered thead td{border-bottom-width:2px}.table-borderless th,.table-borderless td,.table-borderless thead th,.table-borderless tbody+tbody{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>th,.table-primary>td{background-color:#b8daff}.table-primary th,.table-primary td,.table-primary thead th,.table-primary tbody+tbody{border-color:#7abaff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>th,.table-secondary>td{background-color:#d6d8db}.table-secondary th,.table-secondary td,.table-secondary thead th,.table-secondary tbody+tbody{border-color:#b3b7bb}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>th,.table-success>td{background-color:#c3e6cb}.table-success th,.table-success td,.table-success thead th,.table-success tbody+tbody{border-color:#8fd19e}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>th,.table-info>td{background-color:#bee5eb}.table-info th,.table-info td,.table-info thead th,.table-info tbody+tbody{border-color:#86cfda}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>th,.table-warning>td{background-color:#ffeeba}.table-warning th,.table-warning td,.table-warning thead th,.table-warning tbody+tbody{border-color:#ffdf7e}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>th,.table-danger>td{background-color:#f5c0c3}.table-danger th,.table-danger td,.table-danger thead th,.table-danger tbody+tbody{border-color:#ec8a8f}.table-hover .table-danger:hover{background-color:#f2aaae}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f2aaae}.table-light,.table-light>th,.table-light>td{background-color:#bebebe}.table-light th,.table-light td,.table-light thead th,.table-light tbody+tbody{border-color:#868686}.table-hover .table-light:hover{background-color:#b1b1b1}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#b1b1b1}.table-dark,.table-dark>th,.table-dark>td{background-color:#c6c8ca}.table-dark th,.table-dark td,.table-dark thead th,.table-dark tbody+tbody{border-color:#95999c}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>th,.table-active>td{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark th,.table-dark td,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:rgba(255,255,255,.075)}@media(max-width: 575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media(max-width: 767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media(max-width: 991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media(max-width: 1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + 0.75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:rgba(0,0,0,0);border:0}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{appearance:none}select.form-control:-moz-focusring{color:rgba(0,0,0,0);text-shadow:0 0 0 #495057}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(0.375rem + 1px);padding-bottom:calc(0.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(0.5rem + 1px);padding-bottom:calc(0.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(0.25rem + 1px);padding-bottom:calc(0.25rem + 1px);font-size:0.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:rgba(0,0,0,0);border:solid rgba(0,0,0,0);border-width:1px 0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + 0.5rem + 2px);padding:.25rem .5rem;font-size:0.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[size],select.form-control[multiple]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:0.875em;color:#28a745}.valid-tooltip{position:absolute;top:100%;left:0;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:0.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.form-row>.col>.valid-tooltip,.form-row>[class*=col-]>.valid-tooltip{left:5px}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#28a745;padding-right:calc(1.5em + 0.75rem) !important;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.was-validated select.form-control:valid,select.form-control.is-valid{padding-right:3rem !important;background-position:right 1.5rem center}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + 0.75rem);background-position:top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem)}.was-validated .custom-select:valid,.custom-select.is-valid{border-color:#28a745;padding-right:calc(0.75em + 2.3125rem) !important;background:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") right .75rem center/8px 10px no-repeat,#fff url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat}.was-validated .custom-select:valid:focus,.custom-select.is-valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#28a745}.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip,.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip{display:block}.was-validated .custom-control-input:valid~.custom-control-label,.custom-control-input.is-valid~.custom-control-label{color:#28a745}.was-validated .custom-control-input:valid~.custom-control-label::before,.custom-control-input.is-valid~.custom-control-label::before{border-color:#28a745}.was-validated .custom-control-input:valid:checked~.custom-control-label::before,.custom-control-input.is-valid:checked~.custom-control-label::before{border-color:#34ce57;background-color:#34ce57}.was-validated .custom-control-input:valid:focus~.custom-control-label::before,.custom-control-input.is-valid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before,.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before{border-color:#28a745}.was-validated .custom-file-input:valid~.custom-file-label,.custom-file-input.is-valid~.custom-file-label{border-color:#28a745}.was-validated .custom-file-input:valid:focus~.custom-file-label,.custom-file-input.is-valid:focus~.custom-file-label{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:0.875em;color:#da1e28}.invalid-tooltip{position:absolute;top:100%;left:0;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:0.875rem;line-height:1.5;color:#fff;background-color:rgba(218,30,40,.9);border-radius:.25rem}.form-row>.col>.invalid-tooltip,.form-row>[class*=col-]>.invalid-tooltip{left:5px}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#da1e28;padding-right:calc(1.5em + 0.75rem) !important;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23da1e28' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23da1e28' stroke='none'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#da1e28;box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.was-validated select.form-control:invalid,select.form-control.is-invalid{padding-right:3rem !important;background-position:right 1.5rem center}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + 0.75rem);background-position:top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem)}.was-validated .custom-select:invalid,.custom-select.is-invalid{border-color:#da1e28;padding-right:calc(0.75em + 2.3125rem) !important;background:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") right .75rem center/8px 10px no-repeat,#fff url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23da1e28' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23da1e28' stroke='none'/%3e%3c/svg%3e\") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat}.was-validated .custom-select:invalid:focus,.custom-select.is-invalid:focus{border-color:#da1e28;box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#da1e28}.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip,.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip{display:block}.was-validated .custom-control-input:invalid~.custom-control-label,.custom-control-input.is-invalid~.custom-control-label{color:#da1e28}.was-validated .custom-control-input:invalid~.custom-control-label::before,.custom-control-input.is-invalid~.custom-control-label::before{border-color:#da1e28}.was-validated .custom-control-input:invalid:checked~.custom-control-label::before,.custom-control-input.is-invalid:checked~.custom-control-label::before{border-color:#e5464e;background-color:#e5464e}.was-validated .custom-control-input:invalid:focus~.custom-control-label::before,.custom-control-input.is-invalid:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before,.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before{border-color:#da1e28}.was-validated .custom-file-input:invalid~.custom-file-label,.custom-file-input.is-invalid~.custom-file-label{border-color:#da1e28}.was-validated .custom-file-input:invalid:focus~.custom-file-label,.custom-file-input.is-invalid:focus~.custom-file-label{border-color:#da1e28;box-shadow:0 0 0 .2rem rgba(218,30,40,.25)}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media(min-width: 576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .input-group,.form-inline .custom-select{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;user-select:none;background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn:focus,.btn.focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}.btn:not(:disabled):not(.disabled){cursor:pointer}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#0069d9;border-color:#0062cc;box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled):active:focus,.btn-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary:focus,.btn-secondary.focus{color:#fff;background-color:#5a6268;border-color:#545b62;box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled):active:focus,.btn-secondary:not(:disabled):not(.disabled).active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success:focus,.btn-success.focus{color:#fff;background-color:#218838;border-color:#1e7e34;box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled):active,.btn-success:not(:disabled):not(.disabled).active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled):active:focus,.btn-success:not(:disabled):not(.disabled).active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info:focus,.btn-info.focus{color:#fff;background-color:#138496;border-color:#117a8b;box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled):active,.btn-info:not(:disabled):not(.disabled).active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled):active:focus,.btn-info:not(:disabled):not(.disabled).active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning:focus,.btn-warning.focus{color:#212529;background-color:#e0a800;border-color:#d39e00;box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled):active,.btn-warning:not(:disabled):not(.disabled).active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled):active:focus,.btn-warning:not(:disabled):not(.disabled).active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger{color:#fff;background-color:#da1e28;border-color:#da1e28}.btn-danger:hover{color:#fff;background-color:#b81922;border-color:#ad1820}.btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#b81922;border-color:#ad1820;box-shadow:0 0 0 .2rem rgba(224,64,72,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#da1e28;border-color:#da1e28}.btn-danger:not(:disabled):not(.disabled):active,.btn-danger:not(:disabled):not(.disabled).active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#ad1820;border-color:#a2161e}.btn-danger:not(:disabled):not(.disabled):active:focus,.btn-danger:not(:disabled):not(.disabled).active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(224,64,72,.5)}.btn-light{color:#fff;background-color:#161616;border-color:#161616}.btn-light:hover{color:#fff;background-color:#030303;border-color:#000}.btn-light:focus,.btn-light.focus{color:#fff;background-color:#030303;border-color:#000;box-shadow:0 0 0 .2rem rgba(57,57,57,.5)}.btn-light.disabled,.btn-light:disabled{color:#fff;background-color:#161616;border-color:#161616}.btn-light:not(:disabled):not(.disabled):active,.btn-light:not(:disabled):not(.disabled).active,.show>.btn-light.dropdown-toggle{color:#fff;background-color:#000;border-color:#000}.btn-light:not(:disabled):not(.disabled):active:focus,.btn-light:not(:disabled):not(.disabled).active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(57,57,57,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark:focus,.btn-dark.focus{color:#fff;background-color:#23272b;border-color:#1d2124;box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled):active,.btn-dark:not(:disabled):not(.disabled).active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled):active:focus,.btn-dark:not(:disabled):not(.disabled).active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:focus,.btn-outline-primary.focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:rgba(0,0,0,0)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:focus,.btn-outline-secondary.focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:rgba(0,0,0,0)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:focus,.btn-outline-success.focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:rgba(0,0,0,0)}.btn-outline-success:not(:disabled):not(.disabled):active,.btn-outline-success:not(:disabled):not(.disabled).active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled):active:focus,.btn-outline-success:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:focus,.btn-outline-info.focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:rgba(0,0,0,0)}.btn-outline-info:not(:disabled):not(.disabled):active,.btn-outline-info:not(:disabled):not(.disabled).active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled):active:focus,.btn-outline-info:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:focus,.btn-outline-warning.focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:rgba(0,0,0,0)}.btn-outline-warning:not(:disabled):not(.disabled):active,.btn-outline-warning:not(:disabled):not(.disabled).active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#da1e28;border-color:#da1e28}.btn-outline-danger:hover{color:#fff;background-color:#da1e28;border-color:#da1e28}.btn-outline-danger:focus,.btn-outline-danger.focus{box-shadow:0 0 0 .2rem rgba(218,30,40,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#da1e28;background-color:rgba(0,0,0,0)}.btn-outline-danger:not(:disabled):not(.disabled):active,.btn-outline-danger:not(:disabled):not(.disabled).active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#da1e28;border-color:#da1e28}.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(218,30,40,.5)}.btn-outline-light{color:#161616;border-color:#161616}.btn-outline-light:hover{color:#fff;background-color:#161616;border-color:#161616}.btn-outline-light:focus,.btn-outline-light.focus{box-shadow:0 0 0 .2rem rgba(22,22,22,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#161616;background-color:rgba(0,0,0,0)}.btn-outline-light:not(:disabled):not(.disabled):active,.btn-outline-light:not(:disabled):not(.disabled).active,.show>.btn-outline-light.dropdown-toggle{color:#fff;background-color:#161616;border-color:#161616}.btn-outline-light:not(:disabled):not(.disabled):active:focus,.btn-outline-light:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(22,22,22,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:focus,.btn-outline-dark.focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:rgba(0,0,0,0)}.btn-outline-dark:not(:disabled):not(.disabled):active,.btn-outline-dark:not(:disabled):not(.disabled).active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3;text-decoration:underline}.btn-link:focus,.btn-link.focus{text-decoration:underline}.btn-link:disabled,.btn-link.disabled{color:#6c757d;pointer-events:none}.btn-lg,.btn-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-sm,.btn-group-sm>.btn{padding:.25rem .5rem;font-size:0.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{transition:opacity .15s linear}@media(prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.width{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion: reduce){.collapsing.width{transition:none}}.dropup,.dropright,.dropdown,.dropleft{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:\"\";border-top:.3em solid;border-right:.3em solid rgba(0,0,0,0);border-bottom:0;border-left:.3em solid rgba(0,0,0,0)}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media(min-width: 576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media(min-width: 768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media(min-width: 992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media(min-width: 1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:\"\";border-top:0;border-right:.3em solid rgba(0,0,0,0);border-bottom:.3em solid;border-left:.3em solid rgba(0,0,0,0)}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:\"\";border-top:.3em solid rgba(0,0,0,0);border-right:0;border-bottom:.3em solid rgba(0,0,0,0);border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:\"\"}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:\"\";border-top:.3em solid rgba(0,0,0,0);border-right:.3em solid;border-bottom:.3em solid rgba(0,0,0,0)}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=top],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:rgba(0,0,0,0);border:0}.dropdown-item:hover,.dropdown-item:focus{color:#16181b;text-decoration:none;background-color:#e9ecef}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#adb5bd;pointer-events:none;background-color:rgba(0,0,0,0)}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:0.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover{z-index:1}.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn:not(:first-child),.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:not(:first-child),.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-control-plaintext,.input-group>.custom-select,.input-group>.custom-file{position:relative;flex:1 1 auto;width:1%;min-width:0;margin-bottom:0}.input-group>.form-control+.form-control,.input-group>.form-control+.custom-select,.input-group>.form-control+.custom-file,.input-group>.form-control-plaintext+.form-control,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.custom-file,.input-group>.custom-select+.form-control,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.custom-file,.input-group>.custom-file+.form-control,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.custom-file{margin-left:-1px}.input-group>.form-control:focus,.input-group>.custom-select:focus,.input-group>.custom-file .custom-file-input:focus~.custom-file-label{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.form-control:not(:first-child),.input-group>.custom-select:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group:not(.has-validation)>.form-control:not(:last-child),.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.form-control:nth-last-child(n+3),.input-group.has-validation>.custom-select:nth-last-child(n+3),.input-group.has-validation>.custom-file:nth-last-child(n+3) .custom-file-label,.input-group.has-validation>.custom-file:nth-last-child(n+3) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-prepend,.input-group-append{display:flex}.input-group-prepend .btn,.input-group-append .btn{position:relative;z-index:2}.input-group-prepend .btn:focus,.input-group-append .btn:focus{z-index:3}.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.input-group-text,.input-group-append .input-group-text+.btn{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=radio],.input-group-text input[type=checkbox]{margin-top:0}.input-group-lg>.form-control:not(textarea),.input-group-lg>.custom-select{height:calc(1.5em + 1rem + 2px)}.input-group-lg>.form-control,.input-group-lg>.custom-select,.input-group-lg>.input-group-prepend>.input-group-text,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-append>.btn{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.form-control:not(textarea),.input-group-sm>.custom-select{height:calc(1.5em + 0.5rem + 2px)}.input-group-sm>.form-control,.input-group-sm>.custom-select,.input-group-sm>.input-group-prepend>.input-group-text,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-append>.btn{padding:.25rem .5rem;font-size:0.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text,.input-group:not(.has-validation)>.input-group-append:not(:last-child)>.btn,.input-group:not(.has-validation)>.input-group-append:not(:last-child)>.input-group-text,.input-group.has-validation>.input-group-append:nth-last-child(n+3)>.btn,.input-group.has-validation>.input-group-append:nth-last-child(n+3)>.input-group-text,.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;z-index:1;display:block;min-height:1.5rem;padding-left:1.5rem;print-color-adjust:exact}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label::before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input[disabled]~.custom-control-label,.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input[disabled]~.custom-control-label::before,.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:\"\";background-color:#fff;border:1px solid #adb5bd}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:\"\";background:50%/50% 50% no-repeat}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e\")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e\")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e\")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label::before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label::after{top:calc(0.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion: reduce){.custom-switch .custom-control-label::after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label::after{background-color:#fff;transform:translateX(0.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.5em + 0.75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") right .75rem center/8px 10px no-repeat;border:1px solid #ced4da;border-radius:.25rem;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size=\"1\"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:rgba(0,0,0,0);text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + 0.5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:0.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + 0.75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + 0.75rem + 2px);margin:0;overflow:hidden;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input[disabled]~.custom-file-label,.custom-file-input:disabled~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label::after{content:\"Browse\"}.custom-file-input~.custom-file-label[data-browse]::after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + 0.75rem + 2px);padding:.375rem .75rem;overflow:hidden;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + 0.75rem);padding:.375rem .75rem;line-height:1.5;color:#495057;content:\"Browse\";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:rgba(0,0,0,0);appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-0.25rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media(prefers-reduced-motion: reduce){.custom-range::-webkit-slider-thumb{transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:rgba(0,0,0,0);cursor:pointer;background-color:#dee2e6;border-color:rgba(0,0,0,0);border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media(prefers-reduced-motion: reduce){.custom-range::-moz-range-thumb{transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:rgba(0,0,0,0);cursor:pointer;background-color:#dee2e6;border-color:rgba(0,0,0,0);border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media(prefers-reduced-motion: reduce){.custom-range::-ms-thumb{transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:rgba(0,0,0,0);cursor:pointer;background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0);border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion: reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:hover,.nav-link:focus{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-link{margin-bottom:-1px;background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{background:none;border:0;border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-sm,.navbar .container-md,.navbar .container-lg,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);border-radius:.25rem}.navbar-toggler:hover,.navbar-toggler:focus{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:\"\";background:50%/100% 100% no-repeat}.navbar-nav-scroll{max-height:75vh;overflow-y:auto}@media(max-width: 575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media(min-width: 576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media(max-width: 767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-md,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media(min-width: 768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-md,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media(max-width: 991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media(min-width: 992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media(max-width: 1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media(min-width: 1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-sm,.navbar-expand>.container-md,.navbar-expand>.container-lg,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-sm,.navbar-expand>.container-md,.navbar-expand>.container-lg,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:hover,.navbar-light .navbar-brand:focus{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:hover,.navbar-light .navbar-nav .nav-link:focus{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .show>.nav-link,.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .nav-link.active{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:hover,.navbar-light .navbar-text a:focus{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:hover,.navbar-dark .navbar-brand:focus{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:hover,.navbar-dark .navbar-nav .nav-link:focus{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .show>.nav-link,.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .nav-link.active{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:hover,.navbar-dark .navbar-text a:focus{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:calc(0.25rem - 1px);border-bottom-left-radius:calc(0.25rem - 1px)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-0.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}.card-header-tabs{margin-right:-0.625rem;margin-bottom:-0.75rem;margin-left:-0.625rem;border-bottom:0}.card-header-pills{margin-right:-0.625rem;margin-left:-0.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem;border-radius:calc(0.25rem - 1px)}.card-img,.card-img-top,.card-img-bottom{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(0.25rem - 1px);border-bottom-left-radius:calc(0.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media(min-width: 576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media(min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media(min-width: 576px){.card-columns{column-count:3;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion{overflow-anchor:none}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:.5rem;color:#6c757d;content:\"/\"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:0.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion: reduce){.badge{transition:none}}a.badge:hover,a.badge:focus{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:hover,a.badge-primary:focus{color:#fff;background-color:#0062cc}a.badge-primary:focus,a.badge-primary.focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:hover,a.badge-secondary:focus{color:#fff;background-color:#545b62}a.badge-secondary:focus,a.badge-secondary.focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#28a745}a.badge-success:hover,a.badge-success:focus{color:#fff;background-color:#1e7e34}a.badge-success:focus,a.badge-success.focus{outline:0;box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:hover,a.badge-info:focus{color:#fff;background-color:#117a8b}a.badge-info:focus,a.badge-info.focus{outline:0;box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:hover,a.badge-warning:focus{color:#212529;background-color:#d39e00}a.badge-warning:focus,a.badge-warning.focus{outline:0;box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.badge-danger{color:#fff;background-color:#da1e28}a.badge-danger:hover,a.badge-danger:focus{color:#fff;background-color:#ad1820}a.badge-danger:focus,a.badge-danger.focus{outline:0;box-shadow:0 0 0 .2rem rgba(218,30,40,.5)}.badge-light{color:#fff;background-color:#161616}a.badge-light:hover,a.badge-light:focus{color:#fff;background-color:#000}a.badge-light:focus,a.badge-light.focus{outline:0;box-shadow:0 0 0 .2rem rgba(22,22,22,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:hover,a.badge-dark:focus{color:#fff;background-color:#1d2124}a.badge-dark:focus,a.badge-dark.focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media(min-width: 576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid rgba(0,0,0,0);border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;z-index:2;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#711015;background-color:#f8d2d4;border-color:#f5c0c3}.alert-danger hr{border-top-color:#f2aaae}.alert-danger .alert-link{color:#440a0d}.alert-light{color:#0b0b0b;background-color:#d0d0d0;border-color:#bebebe}.alert-light hr{border-top-color:#b1b1b1}.alert-light .alert-link{color:#000}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;line-height:0;font-size:0.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:1rem 1rem}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:.25rem}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:#495057;text-decoration:none;background-color:#161616}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media(min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media(min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media(min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media(min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 1px}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#711015;background-color:#f5c0c3}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#711015;background-color:#f2aaae}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#711015;border-color:#711015}.list-group-item-light{color:#0b0b0b;background-color:#bebebe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#0b0b0b;background-color:#b1b1b1}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#0b0b0b;border-color:#0b0b0b}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):hover,.close:not(:disabled):not(.disabled):focus{opacity:.75}button.close{padding:0;background-color:rgba(0,0,0,0);border:0}a.close.disabled{pointer-events:none}.toast{flex-basis:350px;max-width:350px;font-size:0.875rem;background-color:rgba(255,255,255,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:rgba(255,255,255,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05);border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0, -50px)}@media(prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-header,.modal-dialog-scrollable .modal-footer{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered::before{display:block;height:calc(100vh - 1rem);height:min-content;content:\"\"}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable::before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem 1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px)}.modal-header .close{padding:1rem 1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(0.3rem - 1px);border-bottom-left-radius:calc(0.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media(min-width: 576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered::before{height:calc(100vh - 3.5rem);height:min-content}.modal-sm{max-width:300px}}@media(min-width: 992px){.modal-lg,.modal-xl{max-width:800px}}@media(min-width: 1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",\"Liberation Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:0.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:\"\";border-color:rgba(0,0,0,0);border-style:solid}.bs-tooltip-top,.bs-tooltip-auto[x-placement^=top]{padding:.4rem 0}.bs-tooltip-top .arrow,.bs-tooltip-auto[x-placement^=top] .arrow{bottom:0}.bs-tooltip-top .arrow::before,.bs-tooltip-auto[x-placement^=top] .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-right,.bs-tooltip-auto[x-placement^=right]{padding:0 .4rem}.bs-tooltip-right .arrow,.bs-tooltip-auto[x-placement^=right] .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-right .arrow::before,.bs-tooltip-auto[x-placement^=right] .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-bottom,.bs-tooltip-auto[x-placement^=bottom]{padding:.4rem 0}.bs-tooltip-bottom .arrow,.bs-tooltip-auto[x-placement^=bottom] .arrow{top:0}.bs-tooltip-bottom .arrow::before,.bs-tooltip-auto[x-placement^=bottom] .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-left,.bs-tooltip-auto[x-placement^=left]{padding:0 .4rem}.bs-tooltip-left .arrow,.bs-tooltip-auto[x-placement^=left] .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-left .arrow::before,.bs-tooltip-auto[x-placement^=left] .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",\"Liberation Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:0.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::before,.popover .arrow::after{position:absolute;display:block;content:\"\";border-color:rgba(0,0,0,0);border-style:solid}.bs-popover-top,.bs-popover-auto[x-placement^=top]{margin-bottom:.5rem}.bs-popover-top>.arrow,.bs-popover-auto[x-placement^=top]>.arrow{bottom:calc(-0.5rem - 1px)}.bs-popover-top>.arrow::before,.bs-popover-auto[x-placement^=top]>.arrow::before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-top>.arrow::after,.bs-popover-auto[x-placement^=top]>.arrow::after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-right,.bs-popover-auto[x-placement^=right]{margin-left:.5rem}.bs-popover-right>.arrow,.bs-popover-auto[x-placement^=right]>.arrow{left:calc(-0.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-right>.arrow::before,.bs-popover-auto[x-placement^=right]>.arrow::before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-right>.arrow::after,.bs-popover-auto[x-placement^=right]>.arrow::after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-bottom,.bs-popover-auto[x-placement^=bottom]{margin-top:.5rem}.bs-popover-bottom>.arrow,.bs-popover-auto[x-placement^=bottom]>.arrow{top:calc(-0.5rem - 1px)}.bs-popover-bottom>.arrow::before,.bs-popover-auto[x-placement^=bottom]>.arrow::before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-bottom>.arrow::after,.bs-popover-auto[x-placement^=bottom]>.arrow::after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-bottom .popover-header::before,.bs-popover-auto[x-placement^=bottom] .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-0.5rem;content:\"\";border-bottom:1px solid #f7f7f7}.bs-popover-left,.bs-popover-auto[x-placement^=left]{margin-right:.5rem}.bs-popover-left>.arrow,.bs-popover-auto[x-placement^=left]>.arrow{right:calc(-0.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-left>.arrow::before,.bs-popover-auto[x-placement^=left]>.arrow::before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-left>.arrow::after,.bs-popover-auto[x-placement^=left]>.arrow::after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:\"\"}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media(prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-left),.active.carousel-item-right{transform:translateX(100%)}.carousel-item-prev:not(.carousel-item-right),.active.carousel-item-left{transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media(prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media(prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:20px;height:20px;background:50%/100% 100% no-repeat}.carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e\")}.carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e\")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid rgba(0,0,0,0);border-bottom:10px solid rgba(0,0,0,0);opacity:.5;transition:opacity .6s ease}@media(prefers-reduced-motion: reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:-0.125em;border:.25em solid currentcolor;border-right-color:rgba(0,0,0,0);border-radius:50%;animation:.75s linear infinite spinner-border}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:-0.125em;background-color:currentcolor;border-radius:50%;opacity:0;animation:.75s linear infinite spinner-grow}.spinner-grow-sm{width:1rem;height:1rem}@media(prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{animation-duration:1.5s}}.align-baseline{vertical-align:baseline !important}.align-top{vertical-align:top !important}.align-middle{vertical-align:middle !important}.align-bottom{vertical-align:bottom !important}.align-text-bottom{vertical-align:text-bottom !important}.align-text-top{vertical-align:text-top !important}.bg-primary{background-color:#007bff !important}a.bg-primary:hover,a.bg-primary:focus,button.bg-primary:hover,button.bg-primary:focus{background-color:#0062cc !important}.bg-secondary{background-color:#6c757d !important}a.bg-secondary:hover,a.bg-secondary:focus,button.bg-secondary:hover,button.bg-secondary:focus{background-color:#545b62 !important}.bg-success{background-color:#28a745 !important}a.bg-success:hover,a.bg-success:focus,button.bg-success:hover,button.bg-success:focus{background-color:#1e7e34 !important}.bg-info{background-color:#17a2b8 !important}a.bg-info:hover,a.bg-info:focus,button.bg-info:hover,button.bg-info:focus{background-color:#117a8b !important}.bg-warning{background-color:#ffc107 !important}a.bg-warning:hover,a.bg-warning:focus,button.bg-warning:hover,button.bg-warning:focus{background-color:#d39e00 !important}.bg-danger{background-color:#da1e28 !important}a.bg-danger:hover,a.bg-danger:focus,button.bg-danger:hover,button.bg-danger:focus{background-color:#ad1820 !important}.bg-light{background-color:#161616 !important}a.bg-light:hover,a.bg-light:focus,button.bg-light:hover,button.bg-light:focus{background-color:#000 !important}.bg-dark{background-color:#343a40 !important}a.bg-dark:hover,a.bg-dark:focus,button.bg-dark:hover,button.bg-dark:focus{background-color:#1d2124 !important}.bg-white{background-color:#fff !important}.bg-transparent{background-color:rgba(0,0,0,0) !important}.border{border:1px solid #dee2e6 !important}.border-top{border-top:1px solid #dee2e6 !important}.border-right{border-right:1px solid #dee2e6 !important}.border-bottom{border-bottom:1px solid #dee2e6 !important}.border-left{border-left:1px solid #dee2e6 !important}.border-0{border:0 !important}.border-top-0{border-top:0 !important}.border-right-0{border-right:0 !important}.border-bottom-0{border-bottom:0 !important}.border-left-0{border-left:0 !important}.border-primary{border-color:#007bff !important}.border-secondary{border-color:#6c757d !important}.border-success{border-color:#28a745 !important}.border-info{border-color:#17a2b8 !important}.border-warning{border-color:#ffc107 !important}.border-danger{border-color:#da1e28 !important}.border-light{border-color:#161616 !important}.border-dark{border-color:#343a40 !important}.border-white{border-color:#fff !important}.rounded-sm{border-radius:.2rem !important}.rounded{border-radius:.25rem !important}.rounded-top{border-top-left-radius:.25rem !important;border-top-right-radius:.25rem !important}.rounded-right{border-top-right-radius:.25rem !important;border-bottom-right-radius:.25rem !important}.rounded-bottom{border-bottom-right-radius:.25rem !important;border-bottom-left-radius:.25rem !important}.rounded-left{border-top-left-radius:.25rem !important;border-bottom-left-radius:.25rem !important}.rounded-lg{border-radius:.3rem !important}.rounded-circle{border-radius:50% !important}.rounded-pill{border-radius:50rem !important}.rounded-0{border-radius:0 !important}.clearfix::after{display:block;clear:both;content:\"\"}.d-none{display:none !important}.d-inline{display:inline !important}.d-inline-block{display:inline-block !important}.d-block{display:block !important}.d-table{display:table !important}.d-table-row{display:table-row !important}.d-table-cell{display:table-cell !important}.d-flex{display:flex !important}.d-inline-flex{display:inline-flex !important}@media(min-width: 576px){.d-sm-none{display:none !important}.d-sm-inline{display:inline !important}.d-sm-inline-block{display:inline-block !important}.d-sm-block{display:block !important}.d-sm-table{display:table !important}.d-sm-table-row{display:table-row !important}.d-sm-table-cell{display:table-cell !important}.d-sm-flex{display:flex !important}.d-sm-inline-flex{display:inline-flex !important}}@media(min-width: 768px){.d-md-none{display:none !important}.d-md-inline{display:inline !important}.d-md-inline-block{display:inline-block !important}.d-md-block{display:block !important}.d-md-table{display:table !important}.d-md-table-row{display:table-row !important}.d-md-table-cell{display:table-cell !important}.d-md-flex{display:flex !important}.d-md-inline-flex{display:inline-flex !important}}@media(min-width: 992px){.d-lg-none{display:none !important}.d-lg-inline{display:inline !important}.d-lg-inline-block{display:inline-block !important}.d-lg-block{display:block !important}.d-lg-table{display:table !important}.d-lg-table-row{display:table-row !important}.d-lg-table-cell{display:table-cell !important}.d-lg-flex{display:flex !important}.d-lg-inline-flex{display:inline-flex !important}}@media(min-width: 1200px){.d-xl-none{display:none !important}.d-xl-inline{display:inline !important}.d-xl-inline-block{display:inline-block !important}.d-xl-block{display:block !important}.d-xl-table{display:table !important}.d-xl-table-row{display:table-row !important}.d-xl-table-cell{display:table-cell !important}.d-xl-flex{display:flex !important}.d-xl-inline-flex{display:inline-flex !important}}@media print{.d-print-none{display:none !important}.d-print-inline{display:inline !important}.d-print-inline-block{display:inline-block !important}.d-print-block{display:block !important}.d-print-table{display:table !important}.d-print-table-row{display:table-row !important}.d-print-table-cell{display:table-cell !important}.d-print-flex{display:flex !important}.d-print-inline-flex{display:inline-flex !important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:\"\"}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.85714286%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{flex-direction:row !important}.flex-column{flex-direction:column !important}.flex-row-reverse{flex-direction:row-reverse !important}.flex-column-reverse{flex-direction:column-reverse !important}.flex-wrap{flex-wrap:wrap !important}.flex-nowrap{flex-wrap:nowrap !important}.flex-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-fill{flex:1 1 auto !important}.flex-grow-0{flex-grow:0 !important}.flex-grow-1{flex-grow:1 !important}.flex-shrink-0{flex-shrink:0 !important}.flex-shrink-1{flex-shrink:1 !important}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.justify-content-between{justify-content:space-between !important}.justify-content-around{justify-content:space-around !important}.align-items-start{align-items:flex-start !important}.align-items-end{align-items:flex-end !important}.align-items-center{align-items:center !important}.align-items-baseline{align-items:baseline !important}.align-items-stretch{align-items:stretch !important}.align-content-start{align-content:flex-start !important}.align-content-end{align-content:flex-end !important}.align-content-center{align-content:center !important}.align-content-between{align-content:space-between !important}.align-content-around{align-content:space-around !important}.align-content-stretch{align-content:stretch !important}.align-self-auto{align-self:auto !important}.align-self-start{align-self:flex-start !important}.align-self-end{align-self:flex-end !important}.align-self-center{align-self:center !important}.align-self-baseline{align-self:baseline !important}.align-self-stretch{align-self:stretch !important}@media(min-width: 576px){.flex-sm-row{flex-direction:row !important}.flex-sm-column{flex-direction:column !important}.flex-sm-row-reverse{flex-direction:row-reverse !important}.flex-sm-column-reverse{flex-direction:column-reverse !important}.flex-sm-wrap{flex-wrap:wrap !important}.flex-sm-nowrap{flex-wrap:nowrap !important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-sm-fill{flex:1 1 auto !important}.flex-sm-grow-0{flex-grow:0 !important}.flex-sm-grow-1{flex-grow:1 !important}.flex-sm-shrink-0{flex-shrink:0 !important}.flex-sm-shrink-1{flex-shrink:1 !important}.justify-content-sm-start{justify-content:flex-start !important}.justify-content-sm-end{justify-content:flex-end !important}.justify-content-sm-center{justify-content:center !important}.justify-content-sm-between{justify-content:space-between !important}.justify-content-sm-around{justify-content:space-around !important}.align-items-sm-start{align-items:flex-start !important}.align-items-sm-end{align-items:flex-end !important}.align-items-sm-center{align-items:center !important}.align-items-sm-baseline{align-items:baseline !important}.align-items-sm-stretch{align-items:stretch !important}.align-content-sm-start{align-content:flex-start !important}.align-content-sm-end{align-content:flex-end !important}.align-content-sm-center{align-content:center !important}.align-content-sm-between{align-content:space-between !important}.align-content-sm-around{align-content:space-around !important}.align-content-sm-stretch{align-content:stretch !important}.align-self-sm-auto{align-self:auto !important}.align-self-sm-start{align-self:flex-start !important}.align-self-sm-end{align-self:flex-end !important}.align-self-sm-center{align-self:center !important}.align-self-sm-baseline{align-self:baseline !important}.align-self-sm-stretch{align-self:stretch !important}}@media(min-width: 768px){.flex-md-row{flex-direction:row !important}.flex-md-column{flex-direction:column !important}.flex-md-row-reverse{flex-direction:row-reverse !important}.flex-md-column-reverse{flex-direction:column-reverse !important}.flex-md-wrap{flex-wrap:wrap !important}.flex-md-nowrap{flex-wrap:nowrap !important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-md-fill{flex:1 1 auto !important}.flex-md-grow-0{flex-grow:0 !important}.flex-md-grow-1{flex-grow:1 !important}.flex-md-shrink-0{flex-shrink:0 !important}.flex-md-shrink-1{flex-shrink:1 !important}.justify-content-md-start{justify-content:flex-start !important}.justify-content-md-end{justify-content:flex-end !important}.justify-content-md-center{justify-content:center !important}.justify-content-md-between{justify-content:space-between !important}.justify-content-md-around{justify-content:space-around !important}.align-items-md-start{align-items:flex-start !important}.align-items-md-end{align-items:flex-end !important}.align-items-md-center{align-items:center !important}.align-items-md-baseline{align-items:baseline !important}.align-items-md-stretch{align-items:stretch !important}.align-content-md-start{align-content:flex-start !important}.align-content-md-end{align-content:flex-end !important}.align-content-md-center{align-content:center !important}.align-content-md-between{align-content:space-between !important}.align-content-md-around{align-content:space-around !important}.align-content-md-stretch{align-content:stretch !important}.align-self-md-auto{align-self:auto !important}.align-self-md-start{align-self:flex-start !important}.align-self-md-end{align-self:flex-end !important}.align-self-md-center{align-self:center !important}.align-self-md-baseline{align-self:baseline !important}.align-self-md-stretch{align-self:stretch !important}}@media(min-width: 992px){.flex-lg-row{flex-direction:row !important}.flex-lg-column{flex-direction:column !important}.flex-lg-row-reverse{flex-direction:row-reverse !important}.flex-lg-column-reverse{flex-direction:column-reverse !important}.flex-lg-wrap{flex-wrap:wrap !important}.flex-lg-nowrap{flex-wrap:nowrap !important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-lg-fill{flex:1 1 auto !important}.flex-lg-grow-0{flex-grow:0 !important}.flex-lg-grow-1{flex-grow:1 !important}.flex-lg-shrink-0{flex-shrink:0 !important}.flex-lg-shrink-1{flex-shrink:1 !important}.justify-content-lg-start{justify-content:flex-start !important}.justify-content-lg-end{justify-content:flex-end !important}.justify-content-lg-center{justify-content:center !important}.justify-content-lg-between{justify-content:space-between !important}.justify-content-lg-around{justify-content:space-around !important}.align-items-lg-start{align-items:flex-start !important}.align-items-lg-end{align-items:flex-end !important}.align-items-lg-center{align-items:center !important}.align-items-lg-baseline{align-items:baseline !important}.align-items-lg-stretch{align-items:stretch !important}.align-content-lg-start{align-content:flex-start !important}.align-content-lg-end{align-content:flex-end !important}.align-content-lg-center{align-content:center !important}.align-content-lg-between{align-content:space-between !important}.align-content-lg-around{align-content:space-around !important}.align-content-lg-stretch{align-content:stretch !important}.align-self-lg-auto{align-self:auto !important}.align-self-lg-start{align-self:flex-start !important}.align-self-lg-end{align-self:flex-end !important}.align-self-lg-center{align-self:center !important}.align-self-lg-baseline{align-self:baseline !important}.align-self-lg-stretch{align-self:stretch !important}}@media(min-width: 1200px){.flex-xl-row{flex-direction:row !important}.flex-xl-column{flex-direction:column !important}.flex-xl-row-reverse{flex-direction:row-reverse !important}.flex-xl-column-reverse{flex-direction:column-reverse !important}.flex-xl-wrap{flex-wrap:wrap !important}.flex-xl-nowrap{flex-wrap:nowrap !important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-xl-fill{flex:1 1 auto !important}.flex-xl-grow-0{flex-grow:0 !important}.flex-xl-grow-1{flex-grow:1 !important}.flex-xl-shrink-0{flex-shrink:0 !important}.flex-xl-shrink-1{flex-shrink:1 !important}.justify-content-xl-start{justify-content:flex-start !important}.justify-content-xl-end{justify-content:flex-end !important}.justify-content-xl-center{justify-content:center !important}.justify-content-xl-between{justify-content:space-between !important}.justify-content-xl-around{justify-content:space-around !important}.align-items-xl-start{align-items:flex-start !important}.align-items-xl-end{align-items:flex-end !important}.align-items-xl-center{align-items:center !important}.align-items-xl-baseline{align-items:baseline !important}.align-items-xl-stretch{align-items:stretch !important}.align-content-xl-start{align-content:flex-start !important}.align-content-xl-end{align-content:flex-end !important}.align-content-xl-center{align-content:center !important}.align-content-xl-between{align-content:space-between !important}.align-content-xl-around{align-content:space-around !important}.align-content-xl-stretch{align-content:stretch !important}.align-self-xl-auto{align-self:auto !important}.align-self-xl-start{align-self:flex-start !important}.align-self-xl-end{align-self:flex-end !important}.align-self-xl-center{align-self:center !important}.align-self-xl-baseline{align-self:baseline !important}.align-self-xl-stretch{align-self:stretch !important}}.float-left{float:left !important}.float-right{float:right !important}.float-none{float:none !important}@media(min-width: 576px){.float-sm-left{float:left !important}.float-sm-right{float:right !important}.float-sm-none{float:none !important}}@media(min-width: 768px){.float-md-left{float:left !important}.float-md-right{float:right !important}.float-md-none{float:none !important}}@media(min-width: 992px){.float-lg-left{float:left !important}.float-lg-right{float:right !important}.float-lg-none{float:none !important}}@media(min-width: 1200px){.float-xl-left{float:left !important}.float-xl-right{float:right !important}.float-xl-none{float:none !important}}.user-select-all{user-select:all !important}.user-select-auto{user-select:auto !important}.user-select-none{user-select:none !important}.overflow-auto{overflow:auto !important}.overflow-hidden{overflow:hidden !important}.position-static{position:static !important}.position-relative{position:relative !important}.position-absolute{position:absolute !important}.position-fixed{position:fixed !important}.position-sticky{position:sticky !important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports(position: sticky){.sticky-top{position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075) !important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15) !important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175) !important}.shadow-none{box-shadow:none !important}.w-25{width:25% !important}.w-50{width:50% !important}.w-75{width:75% !important}.w-100{width:100% !important}.w-auto{width:auto !important}.h-25{height:25% !important}.h-50{height:50% !important}.h-75{height:75% !important}.h-100{height:100% !important}.h-auto{height:auto !important}.mw-100{max-width:100% !important}.mh-100{max-height:100% !important}.min-vw-100{min-width:100vw !important}.min-vh-100{min-height:100vh !important}.vw-100{width:100vw !important}.vh-100{height:100vh !important}.m-0{margin:0 !important}.mt-0,.my-0{margin-top:0 !important}.mr-0,.mx-0{margin-right:0 !important}.mb-0,.my-0{margin-bottom:0 !important}.ml-0,.mx-0{margin-left:0 !important}.m-1{margin:.25rem !important}.mt-1,.my-1{margin-top:.25rem !important}.mr-1,.mx-1{margin-right:.25rem !important}.mb-1,.my-1{margin-bottom:.25rem !important}.ml-1,.mx-1{margin-left:.25rem !important}.m-2{margin:.5rem !important}.mt-2,.my-2{margin-top:.5rem !important}.mr-2,.mx-2{margin-right:.5rem !important}.mb-2,.my-2{margin-bottom:.5rem !important}.ml-2,.mx-2{margin-left:.5rem !important}.m-3{margin:1rem !important}.mt-3,.my-3{margin-top:1rem !important}.mr-3,.mx-3{margin-right:1rem !important}.mb-3,.my-3{margin-bottom:1rem !important}.ml-3,.mx-3{margin-left:1rem !important}.m-4{margin:1.5rem !important}.mt-4,.my-4{margin-top:1.5rem !important}.mr-4,.mx-4{margin-right:1.5rem !important}.mb-4,.my-4{margin-bottom:1.5rem !important}.ml-4,.mx-4{margin-left:1.5rem !important}.m-5{margin:3rem !important}.mt-5,.my-5{margin-top:3rem !important}.mr-5,.mx-5{margin-right:3rem !important}.mb-5,.my-5{margin-bottom:3rem !important}.ml-5,.mx-5{margin-left:3rem !important}.p-0{padding:0 !important}.pt-0,.py-0{padding-top:0 !important}.pr-0,.px-0{padding-right:0 !important}.pb-0,.py-0{padding-bottom:0 !important}.pl-0,.px-0{padding-left:0 !important}.p-1{padding:.25rem !important}.pt-1,.py-1{padding-top:.25rem !important}.pr-1,.px-1{padding-right:.25rem !important}.pb-1,.py-1{padding-bottom:.25rem !important}.pl-1,.px-1{padding-left:.25rem !important}.p-2{padding:.5rem !important}.pt-2,.py-2{padding-top:.5rem !important}.pr-2,.px-2{padding-right:.5rem !important}.pb-2,.py-2{padding-bottom:.5rem !important}.pl-2,.px-2{padding-left:.5rem !important}.p-3{padding:1rem !important}.pt-3,.py-3{padding-top:1rem !important}.pr-3,.px-3{padding-right:1rem !important}.pb-3,.py-3{padding-bottom:1rem !important}.pl-3,.px-3{padding-left:1rem !important}.p-4{padding:1.5rem !important}.pt-4,.py-4{padding-top:1.5rem !important}.pr-4,.px-4{padding-right:1.5rem !important}.pb-4,.py-4{padding-bottom:1.5rem !important}.pl-4,.px-4{padding-left:1.5rem !important}.p-5{padding:3rem !important}.pt-5,.py-5{padding-top:3rem !important}.pr-5,.px-5{padding-right:3rem !important}.pb-5,.py-5{padding-bottom:3rem !important}.pl-5,.px-5{padding-left:3rem !important}.m-n1{margin:-0.25rem !important}.mt-n1,.my-n1{margin-top:-0.25rem !important}.mr-n1,.mx-n1{margin-right:-0.25rem !important}.mb-n1,.my-n1{margin-bottom:-0.25rem !important}.ml-n1,.mx-n1{margin-left:-0.25rem !important}.m-n2{margin:-0.5rem !important}.mt-n2,.my-n2{margin-top:-0.5rem !important}.mr-n2,.mx-n2{margin-right:-0.5rem !important}.mb-n2,.my-n2{margin-bottom:-0.5rem !important}.ml-n2,.mx-n2{margin-left:-0.5rem !important}.m-n3{margin:-1rem !important}.mt-n3,.my-n3{margin-top:-1rem !important}.mr-n3,.mx-n3{margin-right:-1rem !important}.mb-n3,.my-n3{margin-bottom:-1rem !important}.ml-n3,.mx-n3{margin-left:-1rem !important}.m-n4{margin:-1.5rem !important}.mt-n4,.my-n4{margin-top:-1.5rem !important}.mr-n4,.mx-n4{margin-right:-1.5rem !important}.mb-n4,.my-n4{margin-bottom:-1.5rem !important}.ml-n4,.mx-n4{margin-left:-1.5rem !important}.m-n5{margin:-3rem !important}.mt-n5,.my-n5{margin-top:-3rem !important}.mr-n5,.mx-n5{margin-right:-3rem !important}.mb-n5,.my-n5{margin-bottom:-3rem !important}.ml-n5,.mx-n5{margin-left:-3rem !important}.m-auto{margin:auto !important}.mt-auto,.my-auto{margin-top:auto !important}.mr-auto,.mx-auto{margin-right:auto !important}.mb-auto,.my-auto{margin-bottom:auto !important}.ml-auto,.mx-auto{margin-left:auto !important}@media(min-width: 576px){.m-sm-0{margin:0 !important}.mt-sm-0,.my-sm-0{margin-top:0 !important}.mr-sm-0,.mx-sm-0{margin-right:0 !important}.mb-sm-0,.my-sm-0{margin-bottom:0 !important}.ml-sm-0,.mx-sm-0{margin-left:0 !important}.m-sm-1{margin:.25rem !important}.mt-sm-1,.my-sm-1{margin-top:.25rem !important}.mr-sm-1,.mx-sm-1{margin-right:.25rem !important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem !important}.ml-sm-1,.mx-sm-1{margin-left:.25rem !important}.m-sm-2{margin:.5rem !important}.mt-sm-2,.my-sm-2{margin-top:.5rem !important}.mr-sm-2,.mx-sm-2{margin-right:.5rem !important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem !important}.ml-sm-2,.mx-sm-2{margin-left:.5rem !important}.m-sm-3{margin:1rem !important}.mt-sm-3,.my-sm-3{margin-top:1rem !important}.mr-sm-3,.mx-sm-3{margin-right:1rem !important}.mb-sm-3,.my-sm-3{margin-bottom:1rem !important}.ml-sm-3,.mx-sm-3{margin-left:1rem !important}.m-sm-4{margin:1.5rem !important}.mt-sm-4,.my-sm-4{margin-top:1.5rem !important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem !important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem !important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem !important}.m-sm-5{margin:3rem !important}.mt-sm-5,.my-sm-5{margin-top:3rem !important}.mr-sm-5,.mx-sm-5{margin-right:3rem !important}.mb-sm-5,.my-sm-5{margin-bottom:3rem !important}.ml-sm-5,.mx-sm-5{margin-left:3rem !important}.p-sm-0{padding:0 !important}.pt-sm-0,.py-sm-0{padding-top:0 !important}.pr-sm-0,.px-sm-0{padding-right:0 !important}.pb-sm-0,.py-sm-0{padding-bottom:0 !important}.pl-sm-0,.px-sm-0{padding-left:0 !important}.p-sm-1{padding:.25rem !important}.pt-sm-1,.py-sm-1{padding-top:.25rem !important}.pr-sm-1,.px-sm-1{padding-right:.25rem !important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem !important}.pl-sm-1,.px-sm-1{padding-left:.25rem !important}.p-sm-2{padding:.5rem !important}.pt-sm-2,.py-sm-2{padding-top:.5rem !important}.pr-sm-2,.px-sm-2{padding-right:.5rem !important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem !important}.pl-sm-2,.px-sm-2{padding-left:.5rem !important}.p-sm-3{padding:1rem !important}.pt-sm-3,.py-sm-3{padding-top:1rem !important}.pr-sm-3,.px-sm-3{padding-right:1rem !important}.pb-sm-3,.py-sm-3{padding-bottom:1rem !important}.pl-sm-3,.px-sm-3{padding-left:1rem !important}.p-sm-4{padding:1.5rem !important}.pt-sm-4,.py-sm-4{padding-top:1.5rem !important}.pr-sm-4,.px-sm-4{padding-right:1.5rem !important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem !important}.pl-sm-4,.px-sm-4{padding-left:1.5rem !important}.p-sm-5{padding:3rem !important}.pt-sm-5,.py-sm-5{padding-top:3rem !important}.pr-sm-5,.px-sm-5{padding-right:3rem !important}.pb-sm-5,.py-sm-5{padding-bottom:3rem !important}.pl-sm-5,.px-sm-5{padding-left:3rem !important}.m-sm-n1{margin:-0.25rem !important}.mt-sm-n1,.my-sm-n1{margin-top:-0.25rem !important}.mr-sm-n1,.mx-sm-n1{margin-right:-0.25rem !important}.mb-sm-n1,.my-sm-n1{margin-bottom:-0.25rem !important}.ml-sm-n1,.mx-sm-n1{margin-left:-0.25rem !important}.m-sm-n2{margin:-0.5rem !important}.mt-sm-n2,.my-sm-n2{margin-top:-0.5rem !important}.mr-sm-n2,.mx-sm-n2{margin-right:-0.5rem !important}.mb-sm-n2,.my-sm-n2{margin-bottom:-0.5rem !important}.ml-sm-n2,.mx-sm-n2{margin-left:-0.5rem !important}.m-sm-n3{margin:-1rem !important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem !important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem !important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem !important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem !important}.m-sm-n4{margin:-1.5rem !important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem !important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem !important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem !important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem !important}.m-sm-n5{margin:-3rem !important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem !important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem !important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem !important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem !important}.m-sm-auto{margin:auto !important}.mt-sm-auto,.my-sm-auto{margin-top:auto !important}.mr-sm-auto,.mx-sm-auto{margin-right:auto !important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto !important}.ml-sm-auto,.mx-sm-auto{margin-left:auto !important}}@media(min-width: 768px){.m-md-0{margin:0 !important}.mt-md-0,.my-md-0{margin-top:0 !important}.mr-md-0,.mx-md-0{margin-right:0 !important}.mb-md-0,.my-md-0{margin-bottom:0 !important}.ml-md-0,.mx-md-0{margin-left:0 !important}.m-md-1{margin:.25rem !important}.mt-md-1,.my-md-1{margin-top:.25rem !important}.mr-md-1,.mx-md-1{margin-right:.25rem !important}.mb-md-1,.my-md-1{margin-bottom:.25rem !important}.ml-md-1,.mx-md-1{margin-left:.25rem !important}.m-md-2{margin:.5rem !important}.mt-md-2,.my-md-2{margin-top:.5rem !important}.mr-md-2,.mx-md-2{margin-right:.5rem !important}.mb-md-2,.my-md-2{margin-bottom:.5rem !important}.ml-md-2,.mx-md-2{margin-left:.5rem !important}.m-md-3{margin:1rem !important}.mt-md-3,.my-md-3{margin-top:1rem !important}.mr-md-3,.mx-md-3{margin-right:1rem !important}.mb-md-3,.my-md-3{margin-bottom:1rem !important}.ml-md-3,.mx-md-3{margin-left:1rem !important}.m-md-4{margin:1.5rem !important}.mt-md-4,.my-md-4{margin-top:1.5rem !important}.mr-md-4,.mx-md-4{margin-right:1.5rem !important}.mb-md-4,.my-md-4{margin-bottom:1.5rem !important}.ml-md-4,.mx-md-4{margin-left:1.5rem !important}.m-md-5{margin:3rem !important}.mt-md-5,.my-md-5{margin-top:3rem !important}.mr-md-5,.mx-md-5{margin-right:3rem !important}.mb-md-5,.my-md-5{margin-bottom:3rem !important}.ml-md-5,.mx-md-5{margin-left:3rem !important}.p-md-0{padding:0 !important}.pt-md-0,.py-md-0{padding-top:0 !important}.pr-md-0,.px-md-0{padding-right:0 !important}.pb-md-0,.py-md-0{padding-bottom:0 !important}.pl-md-0,.px-md-0{padding-left:0 !important}.p-md-1{padding:.25rem !important}.pt-md-1,.py-md-1{padding-top:.25rem !important}.pr-md-1,.px-md-1{padding-right:.25rem !important}.pb-md-1,.py-md-1{padding-bottom:.25rem !important}.pl-md-1,.px-md-1{padding-left:.25rem !important}.p-md-2{padding:.5rem !important}.pt-md-2,.py-md-2{padding-top:.5rem !important}.pr-md-2,.px-md-2{padding-right:.5rem !important}.pb-md-2,.py-md-2{padding-bottom:.5rem !important}.pl-md-2,.px-md-2{padding-left:.5rem !important}.p-md-3{padding:1rem !important}.pt-md-3,.py-md-3{padding-top:1rem !important}.pr-md-3,.px-md-3{padding-right:1rem !important}.pb-md-3,.py-md-3{padding-bottom:1rem !important}.pl-md-3,.px-md-3{padding-left:1rem !important}.p-md-4{padding:1.5rem !important}.pt-md-4,.py-md-4{padding-top:1.5rem !important}.pr-md-4,.px-md-4{padding-right:1.5rem !important}.pb-md-4,.py-md-4{padding-bottom:1.5rem !important}.pl-md-4,.px-md-4{padding-left:1.5rem !important}.p-md-5{padding:3rem !important}.pt-md-5,.py-md-5{padding-top:3rem !important}.pr-md-5,.px-md-5{padding-right:3rem !important}.pb-md-5,.py-md-5{padding-bottom:3rem !important}.pl-md-5,.px-md-5{padding-left:3rem !important}.m-md-n1{margin:-0.25rem !important}.mt-md-n1,.my-md-n1{margin-top:-0.25rem !important}.mr-md-n1,.mx-md-n1{margin-right:-0.25rem !important}.mb-md-n1,.my-md-n1{margin-bottom:-0.25rem !important}.ml-md-n1,.mx-md-n1{margin-left:-0.25rem !important}.m-md-n2{margin:-0.5rem !important}.mt-md-n2,.my-md-n2{margin-top:-0.5rem !important}.mr-md-n2,.mx-md-n2{margin-right:-0.5rem !important}.mb-md-n2,.my-md-n2{margin-bottom:-0.5rem !important}.ml-md-n2,.mx-md-n2{margin-left:-0.5rem !important}.m-md-n3{margin:-1rem !important}.mt-md-n3,.my-md-n3{margin-top:-1rem !important}.mr-md-n3,.mx-md-n3{margin-right:-1rem !important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem !important}.ml-md-n3,.mx-md-n3{margin-left:-1rem !important}.m-md-n4{margin:-1.5rem !important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem !important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem !important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem !important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem !important}.m-md-n5{margin:-3rem !important}.mt-md-n5,.my-md-n5{margin-top:-3rem !important}.mr-md-n5,.mx-md-n5{margin-right:-3rem !important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem !important}.ml-md-n5,.mx-md-n5{margin-left:-3rem !important}.m-md-auto{margin:auto !important}.mt-md-auto,.my-md-auto{margin-top:auto !important}.mr-md-auto,.mx-md-auto{margin-right:auto !important}.mb-md-auto,.my-md-auto{margin-bottom:auto !important}.ml-md-auto,.mx-md-auto{margin-left:auto !important}}@media(min-width: 992px){.m-lg-0{margin:0 !important}.mt-lg-0,.my-lg-0{margin-top:0 !important}.mr-lg-0,.mx-lg-0{margin-right:0 !important}.mb-lg-0,.my-lg-0{margin-bottom:0 !important}.ml-lg-0,.mx-lg-0{margin-left:0 !important}.m-lg-1{margin:.25rem !important}.mt-lg-1,.my-lg-1{margin-top:.25rem !important}.mr-lg-1,.mx-lg-1{margin-right:.25rem !important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem !important}.ml-lg-1,.mx-lg-1{margin-left:.25rem !important}.m-lg-2{margin:.5rem !important}.mt-lg-2,.my-lg-2{margin-top:.5rem !important}.mr-lg-2,.mx-lg-2{margin-right:.5rem !important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem !important}.ml-lg-2,.mx-lg-2{margin-left:.5rem !important}.m-lg-3{margin:1rem !important}.mt-lg-3,.my-lg-3{margin-top:1rem !important}.mr-lg-3,.mx-lg-3{margin-right:1rem !important}.mb-lg-3,.my-lg-3{margin-bottom:1rem !important}.ml-lg-3,.mx-lg-3{margin-left:1rem !important}.m-lg-4{margin:1.5rem !important}.mt-lg-4,.my-lg-4{margin-top:1.5rem !important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem !important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem !important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem !important}.m-lg-5{margin:3rem !important}.mt-lg-5,.my-lg-5{margin-top:3rem !important}.mr-lg-5,.mx-lg-5{margin-right:3rem !important}.mb-lg-5,.my-lg-5{margin-bottom:3rem !important}.ml-lg-5,.mx-lg-5{margin-left:3rem !important}.p-lg-0{padding:0 !important}.pt-lg-0,.py-lg-0{padding-top:0 !important}.pr-lg-0,.px-lg-0{padding-right:0 !important}.pb-lg-0,.py-lg-0{padding-bottom:0 !important}.pl-lg-0,.px-lg-0{padding-left:0 !important}.p-lg-1{padding:.25rem !important}.pt-lg-1,.py-lg-1{padding-top:.25rem !important}.pr-lg-1,.px-lg-1{padding-right:.25rem !important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem !important}.pl-lg-1,.px-lg-1{padding-left:.25rem !important}.p-lg-2{padding:.5rem !important}.pt-lg-2,.py-lg-2{padding-top:.5rem !important}.pr-lg-2,.px-lg-2{padding-right:.5rem !important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem !important}.pl-lg-2,.px-lg-2{padding-left:.5rem !important}.p-lg-3{padding:1rem !important}.pt-lg-3,.py-lg-3{padding-top:1rem !important}.pr-lg-3,.px-lg-3{padding-right:1rem !important}.pb-lg-3,.py-lg-3{padding-bottom:1rem !important}.pl-lg-3,.px-lg-3{padding-left:1rem !important}.p-lg-4{padding:1.5rem !important}.pt-lg-4,.py-lg-4{padding-top:1.5rem !important}.pr-lg-4,.px-lg-4{padding-right:1.5rem !important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem !important}.pl-lg-4,.px-lg-4{padding-left:1.5rem !important}.p-lg-5{padding:3rem !important}.pt-lg-5,.py-lg-5{padding-top:3rem !important}.pr-lg-5,.px-lg-5{padding-right:3rem !important}.pb-lg-5,.py-lg-5{padding-bottom:3rem !important}.pl-lg-5,.px-lg-5{padding-left:3rem !important}.m-lg-n1{margin:-0.25rem !important}.mt-lg-n1,.my-lg-n1{margin-top:-0.25rem !important}.mr-lg-n1,.mx-lg-n1{margin-right:-0.25rem !important}.mb-lg-n1,.my-lg-n1{margin-bottom:-0.25rem !important}.ml-lg-n1,.mx-lg-n1{margin-left:-0.25rem !important}.m-lg-n2{margin:-0.5rem !important}.mt-lg-n2,.my-lg-n2{margin-top:-0.5rem !important}.mr-lg-n2,.mx-lg-n2{margin-right:-0.5rem !important}.mb-lg-n2,.my-lg-n2{margin-bottom:-0.5rem !important}.ml-lg-n2,.mx-lg-n2{margin-left:-0.5rem !important}.m-lg-n3{margin:-1rem !important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem !important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem !important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem !important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem !important}.m-lg-n4{margin:-1.5rem !important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem !important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem !important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem !important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem !important}.m-lg-n5{margin:-3rem !important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem !important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem !important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem !important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem !important}.m-lg-auto{margin:auto !important}.mt-lg-auto,.my-lg-auto{margin-top:auto !important}.mr-lg-auto,.mx-lg-auto{margin-right:auto !important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto !important}.ml-lg-auto,.mx-lg-auto{margin-left:auto !important}}@media(min-width: 1200px){.m-xl-0{margin:0 !important}.mt-xl-0,.my-xl-0{margin-top:0 !important}.mr-xl-0,.mx-xl-0{margin-right:0 !important}.mb-xl-0,.my-xl-0{margin-bottom:0 !important}.ml-xl-0,.mx-xl-0{margin-left:0 !important}.m-xl-1{margin:.25rem !important}.mt-xl-1,.my-xl-1{margin-top:.25rem !important}.mr-xl-1,.mx-xl-1{margin-right:.25rem !important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem !important}.ml-xl-1,.mx-xl-1{margin-left:.25rem !important}.m-xl-2{margin:.5rem !important}.mt-xl-2,.my-xl-2{margin-top:.5rem !important}.mr-xl-2,.mx-xl-2{margin-right:.5rem !important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem !important}.ml-xl-2,.mx-xl-2{margin-left:.5rem !important}.m-xl-3{margin:1rem !important}.mt-xl-3,.my-xl-3{margin-top:1rem !important}.mr-xl-3,.mx-xl-3{margin-right:1rem !important}.mb-xl-3,.my-xl-3{margin-bottom:1rem !important}.ml-xl-3,.mx-xl-3{margin-left:1rem !important}.m-xl-4{margin:1.5rem !important}.mt-xl-4,.my-xl-4{margin-top:1.5rem !important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem !important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem !important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem !important}.m-xl-5{margin:3rem !important}.mt-xl-5,.my-xl-5{margin-top:3rem !important}.mr-xl-5,.mx-xl-5{margin-right:3rem !important}.mb-xl-5,.my-xl-5{margin-bottom:3rem !important}.ml-xl-5,.mx-xl-5{margin-left:3rem !important}.p-xl-0{padding:0 !important}.pt-xl-0,.py-xl-0{padding-top:0 !important}.pr-xl-0,.px-xl-0{padding-right:0 !important}.pb-xl-0,.py-xl-0{padding-bottom:0 !important}.pl-xl-0,.px-xl-0{padding-left:0 !important}.p-xl-1{padding:.25rem !important}.pt-xl-1,.py-xl-1{padding-top:.25rem !important}.pr-xl-1,.px-xl-1{padding-right:.25rem !important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem !important}.pl-xl-1,.px-xl-1{padding-left:.25rem !important}.p-xl-2{padding:.5rem !important}.pt-xl-2,.py-xl-2{padding-top:.5rem !important}.pr-xl-2,.px-xl-2{padding-right:.5rem !important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem !important}.pl-xl-2,.px-xl-2{padding-left:.5rem !important}.p-xl-3{padding:1rem !important}.pt-xl-3,.py-xl-3{padding-top:1rem !important}.pr-xl-3,.px-xl-3{padding-right:1rem !important}.pb-xl-3,.py-xl-3{padding-bottom:1rem !important}.pl-xl-3,.px-xl-3{padding-left:1rem !important}.p-xl-4{padding:1.5rem !important}.pt-xl-4,.py-xl-4{padding-top:1.5rem !important}.pr-xl-4,.px-xl-4{padding-right:1.5rem !important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem !important}.pl-xl-4,.px-xl-4{padding-left:1.5rem !important}.p-xl-5{padding:3rem !important}.pt-xl-5,.py-xl-5{padding-top:3rem !important}.pr-xl-5,.px-xl-5{padding-right:3rem !important}.pb-xl-5,.py-xl-5{padding-bottom:3rem !important}.pl-xl-5,.px-xl-5{padding-left:3rem !important}.m-xl-n1{margin:-0.25rem !important}.mt-xl-n1,.my-xl-n1{margin-top:-0.25rem !important}.mr-xl-n1,.mx-xl-n1{margin-right:-0.25rem !important}.mb-xl-n1,.my-xl-n1{margin-bottom:-0.25rem !important}.ml-xl-n1,.mx-xl-n1{margin-left:-0.25rem !important}.m-xl-n2{margin:-0.5rem !important}.mt-xl-n2,.my-xl-n2{margin-top:-0.5rem !important}.mr-xl-n2,.mx-xl-n2{margin-right:-0.5rem !important}.mb-xl-n2,.my-xl-n2{margin-bottom:-0.5rem !important}.ml-xl-n2,.mx-xl-n2{margin-left:-0.5rem !important}.m-xl-n3{margin:-1rem !important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem !important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem !important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem !important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem !important}.m-xl-n4{margin:-1.5rem !important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem !important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem !important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem !important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem !important}.m-xl-n5{margin:-3rem !important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem !important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem !important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem !important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem !important}.m-xl-auto{margin:auto !important}.mt-xl-auto,.my-xl-auto{margin-top:auto !important}.mr-xl-auto,.mx-xl-auto{margin-right:auto !important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto !important}.ml-xl-auto,.mx-xl-auto{margin-left:auto !important}}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:\"\";background-color:rgba(0,0,0,0)}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace !important}.text-justify{text-align:justify !important}.text-wrap{white-space:normal !important}.text-nowrap{white-space:nowrap !important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left !important}.text-right{text-align:right !important}.text-center{text-align:center !important}@media(min-width: 576px){.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}.text-sm-center{text-align:center !important}}@media(min-width: 768px){.text-md-left{text-align:left !important}.text-md-right{text-align:right !important}.text-md-center{text-align:center !important}}@media(min-width: 992px){.text-lg-left{text-align:left !important}.text-lg-right{text-align:right !important}.text-lg-center{text-align:center !important}}@media(min-width: 1200px){.text-xl-left{text-align:left !important}.text-xl-right{text-align:right !important}.text-xl-center{text-align:center !important}}.text-lowercase{text-transform:lowercase !important}.text-uppercase{text-transform:uppercase !important}.text-capitalize{text-transform:capitalize !important}.font-weight-light{font-weight:300 !important}.font-weight-lighter{font-weight:lighter !important}.font-weight-normal{font-weight:400 !important}.font-weight-bold{font-weight:700 !important}.font-weight-bolder{font-weight:bolder !important}.font-italic{font-style:italic !important}.text-white{color:#fff !important}.text-primary{color:#007bff !important}a.text-primary:hover,a.text-primary:focus{color:#0056b3 !important}.text-secondary{color:#6c757d !important}a.text-secondary:hover,a.text-secondary:focus{color:#494f54 !important}.text-success{color:#28a745 !important}a.text-success:hover,a.text-success:focus{color:#19692c !important}.text-info{color:#17a2b8 !important}a.text-info:hover,a.text-info:focus{color:#0f6674 !important}.text-warning{color:#ffc107 !important}a.text-warning:hover,a.text-warning:focus{color:#ba8b00 !important}.text-danger{color:#da1e28 !important}a.text-danger:hover,a.text-danger:focus{color:#97151c !important}.text-light{color:#161616 !important}a.text-light:hover,a.text-light:focus{color:#000 !important}.text-dark{color:#343a40 !important}a.text-dark:hover,a.text-dark:focus{color:#121416 !important}.text-body{color:#212529 !important}.text-muted{color:#6c757d !important}.text-black-50{color:rgba(0,0,0,.5) !important}.text-white-50{color:rgba(255,255,255,.5) !important}.text-hide{font:0/0 a;color:rgba(0,0,0,0);text-shadow:none;background-color:rgba(0,0,0,0);border:0}.text-decoration-none{text-decoration:none !important}.text-break{word-break:break-word !important;word-wrap:break-word !important}.text-reset{color:inherit !important}.visible{visibility:visible !important}.invisible{visibility:hidden !important}@media print{*,*::before,*::after{text-shadow:none !important;box-shadow:none !important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:\" (\" attr(title) \")\"}pre{white-space:pre-wrap !important}pre,blockquote{border:1px solid #adb5bd;page-break-inside:avoid}tr,img{page-break-inside:avoid}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px !important}.container{min-width:992px !important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse !important}.table td,.table th{background-color:#fff !important}.table-bordered th,.table-bordered td{border:1px solid #dee2e6 !important}.table-dark{color:inherit}.table-dark th,.table-dark td,.table-dark thead th,.table-dark tbody+tbody{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.plot-section__heading{font-size:.875rem;font-weight:600;line-height:1.42857;letter-spacing:.16px}.plot-box{margin-top:3rem;display:flex;flex-direction:column}.plot-box svg{margin-top:3rem}@media(max-width: 41.98rem){.plot-box:not(:nth-child(2)){border-top:1px solid #e0e0e0;padding-top:3rem}}@media(min-width: 42rem){.plot-box:nth-child(odd){border-left:1px solid #e0e0e0}}@media(min-width: 66rem){.plot-box{margin-top:0;border-left:1px solid #e0e0e0}.plot-box svg{margin-top:6rem}}.plot-box__heading{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.plot-box__body{margin-top:1.5rem;flex-grow:1;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px}@media(min-width: 321px)and (max-width: 41.98rem){.plot-box__body{max-width:75%}}.title-visualizations{padding:0 2rem 2rem 2rem}.visualizations-page .bx--row{padding-top:1rem;padding-bottom:1rem}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,select,input,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.28572;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.bx--text-truncate--end{display:inline-block;overflow:hidden;width:100%;text-overflow:ellipsis;white-space:nowrap}.bx--text-truncate--front{display:inline-block;overflow:hidden;width:100%;direction:rtl;text-overflow:ellipsis;white-space:nowrap}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:700;src:local(\"IBM Plex Mono Bold\"),local(\"IBMPlexMono-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Bold.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Bold.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:700;src:local(\"IBM Plex Mono Bold\"),local(\"IBMPlexMono-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:700;src:local(\"IBM Plex Mono Bold\"),local(\"IBMPlexMono-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:700;src:local(\"IBM Plex Mono Bold\"),local(\"IBMPlexMono-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:700;src:local(\"IBM Plex Mono Bold\"),local(\"IBMPlexMono-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:700;src:local(\"IBM Plex Mono Bold\"),local(\"IBMPlexMono-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:700;src:local(\"IBM Plex Mono Bold Italic\"),local(\"IBMPlexMono-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-BoldItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-BoldItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:700;src:local(\"IBM Plex Mono Bold Italic\"),local(\"IBMPlexMono-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:700;src:local(\"IBM Plex Mono Bold Italic\"),local(\"IBMPlexMono-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:700;src:local(\"IBM Plex Mono Bold Italic\"),local(\"IBMPlexMono-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:700;src:local(\"IBM Plex Mono Bold Italic\"),local(\"IBMPlexMono-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:700;src:local(\"IBM Plex Mono Bold Italic\"),local(\"IBMPlexMono-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:200;src:local(\"IBM Plex Mono ExtLt\"),local(\"IBMPlexMono-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ExtraLight.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ExtraLight.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:200;src:local(\"IBM Plex Mono ExtLt\"),local(\"IBMPlexMono-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:200;src:local(\"IBM Plex Mono ExtLt\"),local(\"IBMPlexMono-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:200;src:local(\"IBM Plex Mono ExtLt\"),local(\"IBMPlexMono-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:200;src:local(\"IBM Plex Mono ExtLt\"),local(\"IBMPlexMono-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:200;src:local(\"IBM Plex Mono ExtLt\"),local(\"IBMPlexMono-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:200;src:local(\"IBM Plex Mono ExtLt Italic\"),local(\"IBMPlexMono-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ExtraLightItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ExtraLightItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:200;src:local(\"IBM Plex Mono ExtLt Italic\"),local(\"IBMPlexMono-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:200;src:local(\"IBM Plex Mono ExtLt Italic\"),local(\"IBMPlexMono-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:200;src:local(\"IBM Plex Mono ExtLt Italic\"),local(\"IBMPlexMono-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:200;src:local(\"IBM Plex Mono ExtLt Italic\"),local(\"IBMPlexMono-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:200;src:local(\"IBM Plex Mono ExtLt Italic\"),local(\"IBMPlexMono-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:400;src:local(\"IBM Plex Mono Italic\"),local(\"IBMPlexMono-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Italic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Italic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:400;src:local(\"IBM Plex Mono Italic\"),local(\"IBMPlexMono-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:400;src:local(\"IBM Plex Mono Italic\"),local(\"IBMPlexMono-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:400;src:local(\"IBM Plex Mono Italic\"),local(\"IBMPlexMono-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:400;src:local(\"IBM Plex Mono Italic\"),local(\"IBMPlexMono-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:400;src:local(\"IBM Plex Mono Italic\"),local(\"IBMPlexMono-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:300;src:local(\"IBM Plex Mono Light\"),local(\"IBMPlexMono-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Light.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Light.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:300;src:local(\"IBM Plex Mono Light\"),local(\"IBMPlexMono-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:300;src:local(\"IBM Plex Mono Light\"),local(\"IBMPlexMono-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:300;src:local(\"IBM Plex Mono Light\"),local(\"IBMPlexMono-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:300;src:local(\"IBM Plex Mono Light\"),local(\"IBMPlexMono-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:300;src:local(\"IBM Plex Mono Light\"),local(\"IBMPlexMono-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:300;src:local(\"IBM Plex Mono Light Italic\"),local(\"IBMPlexMono-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-LightItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-LightItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:300;src:local(\"IBM Plex Mono Light Italic\"),local(\"IBMPlexMono-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:300;src:local(\"IBM Plex Mono Light Italic\"),local(\"IBMPlexMono-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:300;src:local(\"IBM Plex Mono Light Italic\"),local(\"IBMPlexMono-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:300;src:local(\"IBM Plex Mono Light Italic\"),local(\"IBMPlexMono-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:300;src:local(\"IBM Plex Mono Light Italic\"),local(\"IBMPlexMono-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:500;src:local(\"IBM Plex Mono Medm\"),local(\"IBMPlexMono-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Medium.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Medium.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:500;src:local(\"IBM Plex Mono Medm\"),local(\"IBMPlexMono-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:500;src:local(\"IBM Plex Mono Medm\"),local(\"IBMPlexMono-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:500;src:local(\"IBM Plex Mono Medm\"),local(\"IBMPlexMono-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:500;src:local(\"IBM Plex Mono Medm\"),local(\"IBMPlexMono-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:500;src:local(\"IBM Plex Mono Medm\"),local(\"IBMPlexMono-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:500;src:local(\"IBM Plex Mono Medm Italic\"),local(\"IBMPlexMono-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-MediumItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-MediumItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:500;src:local(\"IBM Plex Mono Medm Italic\"),local(\"IBMPlexMono-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:500;src:local(\"IBM Plex Mono Medm Italic\"),local(\"IBMPlexMono-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:500;src:local(\"IBM Plex Mono Medm Italic\"),local(\"IBMPlexMono-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:500;src:local(\"IBM Plex Mono Medm Italic\"),local(\"IBMPlexMono-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:500;src:local(\"IBM Plex Mono Medm Italic\"),local(\"IBMPlexMono-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:400;src:local(\"IBM Plex Mono\"),local(\"IBMPlexMono\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Regular.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:400;src:local(\"IBM Plex Mono\"),local(\"IBMPlexMono\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:400;src:local(\"IBM Plex Mono\"),local(\"IBMPlexMono\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:400;src:local(\"IBM Plex Mono\"),local(\"IBMPlexMono\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:400;src:local(\"IBM Plex Mono\"),local(\"IBMPlexMono\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:400;src:local(\"IBM Plex Mono\"),local(\"IBMPlexMono\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:600;src:local(\"IBM Plex Mono SmBld\"),local(\"IBMPlexMono-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBold.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-SemiBold.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:600;src:local(\"IBM Plex Mono SmBld\"),local(\"IBMPlexMono-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:600;src:local(\"IBM Plex Mono SmBld\"),local(\"IBMPlexMono-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:600;src:local(\"IBM Plex Mono SmBld\"),local(\"IBMPlexMono-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:600;src:local(\"IBM Plex Mono SmBld\"),local(\"IBMPlexMono-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:600;src:local(\"IBM Plex Mono SmBld\"),local(\"IBMPlexMono-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:600;src:local(\"IBM Plex Mono SmBld Italic\"),local(\"IBMPlexMono-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBoldItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-SemiBoldItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:600;src:local(\"IBM Plex Mono SmBld Italic\"),local(\"IBMPlexMono-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:600;src:local(\"IBM Plex Mono SmBld Italic\"),local(\"IBMPlexMono-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:600;src:local(\"IBM Plex Mono SmBld Italic\"),local(\"IBMPlexMono-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:600;src:local(\"IBM Plex Mono SmBld Italic\"),local(\"IBMPlexMono-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:600;src:local(\"IBM Plex Mono SmBld Italic\"),local(\"IBMPlexMono-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:450;src:local(\"IBM Plex Mono Text\"),local(\"IBMPlexMono-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Text.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Text.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:450;src:local(\"IBM Plex Mono Text\"),local(\"IBMPlexMono-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:450;src:local(\"IBM Plex Mono Text\"),local(\"IBMPlexMono-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:450;src:local(\"IBM Plex Mono Text\"),local(\"IBMPlexMono-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:450;src:local(\"IBM Plex Mono Text\"),local(\"IBMPlexMono-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:450;src:local(\"IBM Plex Mono Text\"),local(\"IBMPlexMono-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:450;src:local(\"IBM Plex Mono Text Italic\"),local(\"IBMPlexMono-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-TextItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-TextItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:450;src:local(\"IBM Plex Mono Text Italic\"),local(\"IBMPlexMono-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:450;src:local(\"IBM Plex Mono Text Italic\"),local(\"IBMPlexMono-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:450;src:local(\"IBM Plex Mono Text Italic\"),local(\"IBMPlexMono-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:450;src:local(\"IBM Plex Mono Text Italic\"),local(\"IBMPlexMono-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:450;src:local(\"IBM Plex Mono Text Italic\"),local(\"IBMPlexMono-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:100;src:local(\"IBM Plex Mono Thin\"),local(\"IBMPlexMono-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Thin.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Thin.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:100;src:local(\"IBM Plex Mono Thin\"),local(\"IBMPlexMono-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:100;src:local(\"IBM Plex Mono Thin\"),local(\"IBMPlexMono-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:100;src:local(\"IBM Plex Mono Thin\"),local(\"IBMPlexMono-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:100;src:local(\"IBM Plex Mono Thin\"),local(\"IBMPlexMono-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:normal;font-weight:100;src:local(\"IBM Plex Mono Thin\"),local(\"IBMPlexMono-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:100;src:local(\"IBM Plex Mono Thin Italic\"),local(\"IBMPlexMono-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ThinItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ThinItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:100;src:local(\"IBM Plex Mono Thin Italic\"),local(\"IBMPlexMono-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:100;src:local(\"IBM Plex Mono Thin Italic\"),local(\"IBMPlexMono-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:100;src:local(\"IBM Plex Mono Thin Italic\"),local(\"IBMPlexMono-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:100;src:local(\"IBM Plex Mono Thin Italic\"),local(\"IBMPlexMono-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Mono\";font-style:italic;font-weight:100;src:local(\"IBM Plex Mono Thin Italic\"),local(\"IBMPlexMono-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Bold.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Bold.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:700;src:local(\"IBM Plex Sans Bold\"),local(\"IBMPlexSans-Bold\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-BoldItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-BoldItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:700;src:local(\"IBM Plex Sans Bold Italic\"),local(\"IBMPlexSans-BoldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ExtraLight.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ExtraLight.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:200;src:local(\"IBM Plex Sans ExtLt\"),local(\"IBMPlexSans-ExtLt\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ExtraLightItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ExtraLightItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:200;src:local(\"IBM Plex Sans ExtLt Italic\"),local(\"IBMPlexSans-ExtLtItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Italic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Italic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:400;src:local(\"IBM Plex Sans Italic\"),local(\"IBMPlexSans-Italic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Light.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Light.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:300;src:local(\"IBM Plex Sans Light\"),local(\"IBMPlexSans-Light\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-LightItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-LightItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:300;src:local(\"IBM Plex Sans Light Italic\"),local(\"IBMPlexSans-LightItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Medium.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Medium.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:500;src:local(\"IBM Plex Sans Medm\"),local(\"IBMPlexSans-Medm\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-MediumItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-MediumItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:500;src:local(\"IBM Plex Sans Medm Italic\"),local(\"IBMPlexSans-MedmItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Regular.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Regular.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:400;src:local(\"IBM Plex Sans\"),local(\"IBMPlexSans\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-SemiBold.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-SemiBold.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:600;src:local(\"IBM Plex Sans SmBld\"),local(\"IBMPlexSans-SmBld\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-SemiBoldItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-SemiBoldItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:600;src:local(\"IBM Plex Sans SmBld Italic\"),local(\"IBMPlexSans-SmBldItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Text.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Text.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:450;src:local(\"IBM Plex Sans Text\"),local(\"IBMPlexSans-Text\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-TextItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-TextItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:450;src:local(\"IBM Plex Sans Text Italic\"),local(\"IBMPlexSans-TextItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Thin.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Thin.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:normal;font-weight:100;src:local(\"IBM Plex Sans Thin\"),local(\"IBMPlexSans-Thin\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ThinItalic.woff2\") format(\"woff2\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ThinItalic.woff\") format(\"woff\")}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Cyrillic.woff2\") format(\"woff2\");unicode-range:U+0400-045F,U+0472-0473,U+0490-049D,U+04A0-04A5,U+04AA-04AB,U+04AE-04B3,U+04B6-04BB,U+04C0-04C2,U+04CF-04D9,U+04DC-04DF,U+04E2-04E9,U+04EE-04F5,U+04F8-04F9}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Pi.woff2\") format(\"woff2\");unicode-range:U+0E3F,U+2032-2033,U+2070,U+2075-2079,U+2080-2081,U+2083,U+2085-2089,U+2113,U+2116,U+2126,U+212E,U+2150-2151,U+2153-215E,U+2190-2199,U+21A9-21AA,U+21B0-21B3,U+21B6-21B7,U+21BA-21BB,U+21C4,U+21C6,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+2713,U+274C,U+2B0E-2B11,U+EBE1-EBE7,U+ECE0,U+EFCC}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin3.woff2\") format(\"woff2\");unicode-range:U+0102-0103,U+1EA0-1EF9,U+20AB}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin2.woff2\") format(\"woff2\");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin1.woff2\") format(\"woff2\");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-display:auto;font-family:\"IBM Plex Sans\";font-style:italic;font-weight:100;src:local(\"IBM Plex Sans Thin Italic\"),local(\"IBMPlexSans-ThinItalic\"),url(\"https://1.www.s81c.com/common/carbon/plex/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Greek.woff2\") format(\"woff2\");unicode-range:U+0384-038A,U+038C,U+038E-03A1,U+03A3-03CE}.bx--assistive-text,.bx--visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--body{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;background-color:#fff;color:#161616;line-height:1}body{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;background-color:#fff;color:#161616;line-height:1}.bx--grid{margin-right:auto;margin-left:auto;max-width:99rem;padding-right:1rem;padding-left:1rem}@media(min-width: 42rem){.bx--grid{padding-right:2rem;padding-left:2rem}}@media(min-width: 99rem){.bx--grid{padding-right:2.5rem;padding-left:2.5rem}}@media(min-width: 99rem){.bx--grid--full-width{max-width:100%}}.bx--row{display:flex;flex-wrap:wrap;margin-right:-1rem;margin-left:-1rem}.bx--row-padding [class*=bx--col],.bx--col-padding{padding-top:1rem;padding-bottom:1rem}.bx--grid--condensed [class*=bx--col]{padding-top:.03125rem;padding-bottom:.03125rem}.bx--col{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col,.bx--grid--condensed .bx--col{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col,.bx--grid--narrow .bx--col{padding-right:1rem;padding-left:0}.bx--col-sm-0{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-sm-0,.bx--grid--condensed .bx--col-sm-0{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-sm-0,.bx--grid--narrow .bx--col-sm-0{padding-right:1rem;padding-left:0}.bx--col-sm-1{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-sm-1,.bx--grid--condensed .bx--col-sm-1{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-sm-1,.bx--grid--narrow .bx--col-sm-1{padding-right:1rem;padding-left:0}.bx--col-sm-2{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-sm-2,.bx--grid--condensed .bx--col-sm-2{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-sm-2,.bx--grid--narrow .bx--col-sm-2{padding-right:1rem;padding-left:0}.bx--col-sm-3{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-sm-3,.bx--grid--condensed .bx--col-sm-3{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-sm-3,.bx--grid--narrow .bx--col-sm-3{padding-right:1rem;padding-left:0}.bx--col-sm-4{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-sm-4,.bx--grid--condensed .bx--col-sm-4{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-sm-4,.bx--grid--narrow .bx--col-sm-4{padding-right:1rem;padding-left:0}.bx--col-sm,.bx--col-sm--auto{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-sm,.bx--grid--condensed .bx--col-sm,.bx--row--condensed .bx--col-sm--auto,.bx--grid--condensed .bx--col-sm--auto{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-sm,.bx--grid--narrow .bx--col-sm,.bx--row--narrow .bx--col-sm--auto,.bx--grid--narrow .bx--col-sm--auto{padding-right:1rem;padding-left:0}.bx--col,.bx--col-sm{max-width:100%;flex-basis:0;flex-grow:1}.bx--col--auto,.bx--col-sm--auto{width:auto;max-width:100%;flex:1 0 0%}.bx--col-sm-0{display:none}.bx--col-sm-1{display:block;max-width:25%;flex:0 0 25%}.bx--col-sm-2{display:block;max-width:50%;flex:0 0 50%}.bx--col-sm-3{display:block;max-width:75%;flex:0 0 75%}.bx--col-sm-4{display:block;max-width:100%;flex:0 0 100%}.bx--offset-sm-0{margin-left:0}.bx--offset-sm-1{margin-left:25%}.bx--offset-sm-2{margin-left:50%}.bx--offset-sm-3{margin-left:75%}.bx--col-md-0{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-0,.bx--grid--condensed .bx--col-md-0{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-0,.bx--grid--narrow .bx--col-md-0{padding-right:1rem;padding-left:0}.bx--col-md-1{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-1,.bx--grid--condensed .bx--col-md-1{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-1,.bx--grid--narrow .bx--col-md-1{padding-right:1rem;padding-left:0}.bx--col-md-2{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-2,.bx--grid--condensed .bx--col-md-2{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-2,.bx--grid--narrow .bx--col-md-2{padding-right:1rem;padding-left:0}.bx--col-md-3{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-3,.bx--grid--condensed .bx--col-md-3{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-3,.bx--grid--narrow .bx--col-md-3{padding-right:1rem;padding-left:0}.bx--col-md-4{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-4,.bx--grid--condensed .bx--col-md-4{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-4,.bx--grid--narrow .bx--col-md-4{padding-right:1rem;padding-left:0}.bx--col-md-5{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-5,.bx--grid--condensed .bx--col-md-5{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-5,.bx--grid--narrow .bx--col-md-5{padding-right:1rem;padding-left:0}.bx--col-md-6{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-6,.bx--grid--condensed .bx--col-md-6{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-6,.bx--grid--narrow .bx--col-md-6{padding-right:1rem;padding-left:0}.bx--col-md-7{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-7,.bx--grid--condensed .bx--col-md-7{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-7,.bx--grid--narrow .bx--col-md-7{padding-right:1rem;padding-left:0}.bx--col-md-8{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md-8,.bx--grid--condensed .bx--col-md-8{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md-8,.bx--grid--narrow .bx--col-md-8{padding-right:1rem;padding-left:0}.bx--col-md,.bx--col-md--auto{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-md,.bx--grid--condensed .bx--col-md,.bx--row--condensed .bx--col-md--auto,.bx--grid--condensed .bx--col-md--auto{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-md,.bx--grid--narrow .bx--col-md,.bx--row--narrow .bx--col-md--auto,.bx--grid--narrow .bx--col-md--auto{padding-right:1rem;padding-left:0}@media(min-width: 42rem){.bx--col,.bx--col-md{max-width:100%;flex-basis:0;flex-grow:1}.bx--col--auto,.bx--col-md--auto{width:auto;max-width:100%;flex:1 0 0%}.bx--col-md-0{display:none}.bx--col-md-1{display:block;max-width:12.5%;flex:0 0 12.5%}.bx--col-md-2{display:block;max-width:25%;flex:0 0 25%}.bx--col-md-3{display:block;max-width:37.5%;flex:0 0 37.5%}.bx--col-md-4{display:block;max-width:50%;flex:0 0 50%}.bx--col-md-5{display:block;max-width:62.5%;flex:0 0 62.5%}.bx--col-md-6{display:block;max-width:75%;flex:0 0 75%}.bx--col-md-7{display:block;max-width:87.5%;flex:0 0 87.5%}.bx--col-md-8{display:block;max-width:100%;flex:0 0 100%}.bx--offset-md-0{margin-left:0}.bx--offset-md-1{margin-left:12.5%}.bx--offset-md-2{margin-left:25%}.bx--offset-md-3{margin-left:37.5%}.bx--offset-md-4{margin-left:50%}.bx--offset-md-5{margin-left:62.5%}.bx--offset-md-6{margin-left:75%}.bx--offset-md-7{margin-left:87.5%}}.bx--col-lg-0{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-0,.bx--grid--condensed .bx--col-lg-0{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-0,.bx--grid--narrow .bx--col-lg-0{padding-right:1rem;padding-left:0}.bx--col-lg-1{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-1,.bx--grid--condensed .bx--col-lg-1{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-1,.bx--grid--narrow .bx--col-lg-1{padding-right:1rem;padding-left:0}.bx--col-lg-2{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-2,.bx--grid--condensed .bx--col-lg-2{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-2,.bx--grid--narrow .bx--col-lg-2{padding-right:1rem;padding-left:0}.bx--col-lg-3{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-3,.bx--grid--condensed .bx--col-lg-3{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-3,.bx--grid--narrow .bx--col-lg-3{padding-right:1rem;padding-left:0}.bx--col-lg-4{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-4,.bx--grid--condensed .bx--col-lg-4{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-4,.bx--grid--narrow .bx--col-lg-4{padding-right:1rem;padding-left:0}.bx--col-lg-5{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-5,.bx--grid--condensed .bx--col-lg-5{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-5,.bx--grid--narrow .bx--col-lg-5{padding-right:1rem;padding-left:0}.bx--col-lg-6{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-6,.bx--grid--condensed .bx--col-lg-6{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-6,.bx--grid--narrow .bx--col-lg-6{padding-right:1rem;padding-left:0}.bx--col-lg-7{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-7,.bx--grid--condensed .bx--col-lg-7{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-7,.bx--grid--narrow .bx--col-lg-7{padding-right:1rem;padding-left:0}.bx--col-lg-8{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-8,.bx--grid--condensed .bx--col-lg-8{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-8,.bx--grid--narrow .bx--col-lg-8{padding-right:1rem;padding-left:0}.bx--col-lg-9{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-9,.bx--grid--condensed .bx--col-lg-9{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-9,.bx--grid--narrow .bx--col-lg-9{padding-right:1rem;padding-left:0}.bx--col-lg-10{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-10,.bx--grid--condensed .bx--col-lg-10{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-10,.bx--grid--narrow .bx--col-lg-10{padding-right:1rem;padding-left:0}.bx--col-lg-11{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-11,.bx--grid--condensed .bx--col-lg-11{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-11,.bx--grid--narrow .bx--col-lg-11{padding-right:1rem;padding-left:0}.bx--col-lg-12{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-12,.bx--grid--condensed .bx--col-lg-12{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-12,.bx--grid--narrow .bx--col-lg-12{padding-right:1rem;padding-left:0}.bx--col-lg-13{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-13,.bx--grid--condensed .bx--col-lg-13{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-13,.bx--grid--narrow .bx--col-lg-13{padding-right:1rem;padding-left:0}.bx--col-lg-14{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-14,.bx--grid--condensed .bx--col-lg-14{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-14,.bx--grid--narrow .bx--col-lg-14{padding-right:1rem;padding-left:0}.bx--col-lg-15{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-15,.bx--grid--condensed .bx--col-lg-15{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-15,.bx--grid--narrow .bx--col-lg-15{padding-right:1rem;padding-left:0}.bx--col-lg-16{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg-16,.bx--grid--condensed .bx--col-lg-16{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg-16,.bx--grid--narrow .bx--col-lg-16{padding-right:1rem;padding-left:0}.bx--col-lg,.bx--col-lg--auto{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-lg,.bx--grid--condensed .bx--col-lg,.bx--row--condensed .bx--col-lg--auto,.bx--grid--condensed .bx--col-lg--auto{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-lg,.bx--grid--narrow .bx--col-lg,.bx--row--narrow .bx--col-lg--auto,.bx--grid--narrow .bx--col-lg--auto{padding-right:1rem;padding-left:0}@media(min-width: 66rem){.bx--col,.bx--col-lg{max-width:100%;flex-basis:0;flex-grow:1}.bx--col--auto,.bx--col-lg--auto{width:auto;max-width:100%;flex:1 0 0%}.bx--col-lg-0{display:none}.bx--col-lg-1{display:block;max-width:6.25%;flex:0 0 6.25%}.bx--col-lg-2{display:block;max-width:12.5%;flex:0 0 12.5%}.bx--col-lg-3{display:block;max-width:18.75%;flex:0 0 18.75%}.bx--col-lg-4{display:block;max-width:25%;flex:0 0 25%}.bx--col-lg-5{display:block;max-width:31.25%;flex:0 0 31.25%}.bx--col-lg-6{display:block;max-width:37.5%;flex:0 0 37.5%}.bx--col-lg-7{display:block;max-width:43.75%;flex:0 0 43.75%}.bx--col-lg-8{display:block;max-width:50%;flex:0 0 50%}.bx--col-lg-9{display:block;max-width:56.25%;flex:0 0 56.25%}.bx--col-lg-10{display:block;max-width:62.5%;flex:0 0 62.5%}.bx--col-lg-11{display:block;max-width:68.75%;flex:0 0 68.75%}.bx--col-lg-12{display:block;max-width:75%;flex:0 0 75%}.bx--col-lg-13{display:block;max-width:81.25%;flex:0 0 81.25%}.bx--col-lg-14{display:block;max-width:87.5%;flex:0 0 87.5%}.bx--col-lg-15{display:block;max-width:93.75%;flex:0 0 93.75%}.bx--col-lg-16{display:block;max-width:100%;flex:0 0 100%}.bx--offset-lg-0{margin-left:0}.bx--offset-lg-1{margin-left:6.25%}.bx--offset-lg-2{margin-left:12.5%}.bx--offset-lg-3{margin-left:18.75%}.bx--offset-lg-4{margin-left:25%}.bx--offset-lg-5{margin-left:31.25%}.bx--offset-lg-6{margin-left:37.5%}.bx--offset-lg-7{margin-left:43.75%}.bx--offset-lg-8{margin-left:50%}.bx--offset-lg-9{margin-left:56.25%}.bx--offset-lg-10{margin-left:62.5%}.bx--offset-lg-11{margin-left:68.75%}.bx--offset-lg-12{margin-left:75%}.bx--offset-lg-13{margin-left:81.25%}.bx--offset-lg-14{margin-left:87.5%}.bx--offset-lg-15{margin-left:93.75%}}.bx--col-xlg-0{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-0,.bx--grid--condensed .bx--col-xlg-0{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-0,.bx--grid--narrow .bx--col-xlg-0{padding-right:1rem;padding-left:0}.bx--col-xlg-1{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-1,.bx--grid--condensed .bx--col-xlg-1{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-1,.bx--grid--narrow .bx--col-xlg-1{padding-right:1rem;padding-left:0}.bx--col-xlg-2{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-2,.bx--grid--condensed .bx--col-xlg-2{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-2,.bx--grid--narrow .bx--col-xlg-2{padding-right:1rem;padding-left:0}.bx--col-xlg-3{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-3,.bx--grid--condensed .bx--col-xlg-3{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-3,.bx--grid--narrow .bx--col-xlg-3{padding-right:1rem;padding-left:0}.bx--col-xlg-4{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-4,.bx--grid--condensed .bx--col-xlg-4{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-4,.bx--grid--narrow .bx--col-xlg-4{padding-right:1rem;padding-left:0}.bx--col-xlg-5{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-5,.bx--grid--condensed .bx--col-xlg-5{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-5,.bx--grid--narrow .bx--col-xlg-5{padding-right:1rem;padding-left:0}.bx--col-xlg-6{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-6,.bx--grid--condensed .bx--col-xlg-6{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-6,.bx--grid--narrow .bx--col-xlg-6{padding-right:1rem;padding-left:0}.bx--col-xlg-7{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-7,.bx--grid--condensed .bx--col-xlg-7{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-7,.bx--grid--narrow .bx--col-xlg-7{padding-right:1rem;padding-left:0}.bx--col-xlg-8{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-8,.bx--grid--condensed .bx--col-xlg-8{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-8,.bx--grid--narrow .bx--col-xlg-8{padding-right:1rem;padding-left:0}.bx--col-xlg-9{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-9,.bx--grid--condensed .bx--col-xlg-9{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-9,.bx--grid--narrow .bx--col-xlg-9{padding-right:1rem;padding-left:0}.bx--col-xlg-10{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-10,.bx--grid--condensed .bx--col-xlg-10{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-10,.bx--grid--narrow .bx--col-xlg-10{padding-right:1rem;padding-left:0}.bx--col-xlg-11{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-11,.bx--grid--condensed .bx--col-xlg-11{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-11,.bx--grid--narrow .bx--col-xlg-11{padding-right:1rem;padding-left:0}.bx--col-xlg-12{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-12,.bx--grid--condensed .bx--col-xlg-12{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-12,.bx--grid--narrow .bx--col-xlg-12{padding-right:1rem;padding-left:0}.bx--col-xlg-13{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-13,.bx--grid--condensed .bx--col-xlg-13{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-13,.bx--grid--narrow .bx--col-xlg-13{padding-right:1rem;padding-left:0}.bx--col-xlg-14{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-14,.bx--grid--condensed .bx--col-xlg-14{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-14,.bx--grid--narrow .bx--col-xlg-14{padding-right:1rem;padding-left:0}.bx--col-xlg-15{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-15,.bx--grid--condensed .bx--col-xlg-15{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-15,.bx--grid--narrow .bx--col-xlg-15{padding-right:1rem;padding-left:0}.bx--col-xlg-16{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg-16,.bx--grid--condensed .bx--col-xlg-16{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg-16,.bx--grid--narrow .bx--col-xlg-16{padding-right:1rem;padding-left:0}.bx--col-xlg,.bx--col-xlg--auto{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-xlg,.bx--grid--condensed .bx--col-xlg,.bx--row--condensed .bx--col-xlg--auto,.bx--grid--condensed .bx--col-xlg--auto{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-xlg,.bx--grid--narrow .bx--col-xlg,.bx--row--narrow .bx--col-xlg--auto,.bx--grid--narrow .bx--col-xlg--auto{padding-right:1rem;padding-left:0}@media(min-width: 82rem){.bx--col,.bx--col-xlg{max-width:100%;flex-basis:0;flex-grow:1}.bx--col--auto,.bx--col-xlg--auto{width:auto;max-width:100%;flex:1 0 0%}.bx--col-xlg-0{display:none}.bx--col-xlg-1{display:block;max-width:6.25%;flex:0 0 6.25%}.bx--col-xlg-2{display:block;max-width:12.5%;flex:0 0 12.5%}.bx--col-xlg-3{display:block;max-width:18.75%;flex:0 0 18.75%}.bx--col-xlg-4{display:block;max-width:25%;flex:0 0 25%}.bx--col-xlg-5{display:block;max-width:31.25%;flex:0 0 31.25%}.bx--col-xlg-6{display:block;max-width:37.5%;flex:0 0 37.5%}.bx--col-xlg-7{display:block;max-width:43.75%;flex:0 0 43.75%}.bx--col-xlg-8{display:block;max-width:50%;flex:0 0 50%}.bx--col-xlg-9{display:block;max-width:56.25%;flex:0 0 56.25%}.bx--col-xlg-10{display:block;max-width:62.5%;flex:0 0 62.5%}.bx--col-xlg-11{display:block;max-width:68.75%;flex:0 0 68.75%}.bx--col-xlg-12{display:block;max-width:75%;flex:0 0 75%}.bx--col-xlg-13{display:block;max-width:81.25%;flex:0 0 81.25%}.bx--col-xlg-14{display:block;max-width:87.5%;flex:0 0 87.5%}.bx--col-xlg-15{display:block;max-width:93.75%;flex:0 0 93.75%}.bx--col-xlg-16{display:block;max-width:100%;flex:0 0 100%}.bx--offset-xlg-0{margin-left:0}.bx--offset-xlg-1{margin-left:6.25%}.bx--offset-xlg-2{margin-left:12.5%}.bx--offset-xlg-3{margin-left:18.75%}.bx--offset-xlg-4{margin-left:25%}.bx--offset-xlg-5{margin-left:31.25%}.bx--offset-xlg-6{margin-left:37.5%}.bx--offset-xlg-7{margin-left:43.75%}.bx--offset-xlg-8{margin-left:50%}.bx--offset-xlg-9{margin-left:56.25%}.bx--offset-xlg-10{margin-left:62.5%}.bx--offset-xlg-11{margin-left:68.75%}.bx--offset-xlg-12{margin-left:75%}.bx--offset-xlg-13{margin-left:81.25%}.bx--offset-xlg-14{margin-left:87.5%}.bx--offset-xlg-15{margin-left:93.75%}}.bx--col-max-0{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-0,.bx--grid--condensed .bx--col-max-0{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-0,.bx--grid--narrow .bx--col-max-0{padding-right:1rem;padding-left:0}.bx--col-max-1{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-1,.bx--grid--condensed .bx--col-max-1{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-1,.bx--grid--narrow .bx--col-max-1{padding-right:1rem;padding-left:0}.bx--col-max-2{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-2,.bx--grid--condensed .bx--col-max-2{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-2,.bx--grid--narrow .bx--col-max-2{padding-right:1rem;padding-left:0}.bx--col-max-3{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-3,.bx--grid--condensed .bx--col-max-3{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-3,.bx--grid--narrow .bx--col-max-3{padding-right:1rem;padding-left:0}.bx--col-max-4{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-4,.bx--grid--condensed .bx--col-max-4{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-4,.bx--grid--narrow .bx--col-max-4{padding-right:1rem;padding-left:0}.bx--col-max-5{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-5,.bx--grid--condensed .bx--col-max-5{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-5,.bx--grid--narrow .bx--col-max-5{padding-right:1rem;padding-left:0}.bx--col-max-6{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-6,.bx--grid--condensed .bx--col-max-6{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-6,.bx--grid--narrow .bx--col-max-6{padding-right:1rem;padding-left:0}.bx--col-max-7{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-7,.bx--grid--condensed .bx--col-max-7{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-7,.bx--grid--narrow .bx--col-max-7{padding-right:1rem;padding-left:0}.bx--col-max-8{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-8,.bx--grid--condensed .bx--col-max-8{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-8,.bx--grid--narrow .bx--col-max-8{padding-right:1rem;padding-left:0}.bx--col-max-9{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-9,.bx--grid--condensed .bx--col-max-9{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-9,.bx--grid--narrow .bx--col-max-9{padding-right:1rem;padding-left:0}.bx--col-max-10{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-10,.bx--grid--condensed .bx--col-max-10{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-10,.bx--grid--narrow .bx--col-max-10{padding-right:1rem;padding-left:0}.bx--col-max-11{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-11,.bx--grid--condensed .bx--col-max-11{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-11,.bx--grid--narrow .bx--col-max-11{padding-right:1rem;padding-left:0}.bx--col-max-12{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-12,.bx--grid--condensed .bx--col-max-12{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-12,.bx--grid--narrow .bx--col-max-12{padding-right:1rem;padding-left:0}.bx--col-max-13{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-13,.bx--grid--condensed .bx--col-max-13{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-13,.bx--grid--narrow .bx--col-max-13{padding-right:1rem;padding-left:0}.bx--col-max-14{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-14,.bx--grid--condensed .bx--col-max-14{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-14,.bx--grid--narrow .bx--col-max-14{padding-right:1rem;padding-left:0}.bx--col-max-15{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-15,.bx--grid--condensed .bx--col-max-15{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-15,.bx--grid--narrow .bx--col-max-15{padding-right:1rem;padding-left:0}.bx--col-max-16{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max-16,.bx--grid--condensed .bx--col-max-16{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max-16,.bx--grid--narrow .bx--col-max-16{padding-right:1rem;padding-left:0}.bx--col-max,.bx--col-max--auto{width:100%;padding-right:1rem;padding-left:1rem}.bx--row--condensed .bx--col-max,.bx--grid--condensed .bx--col-max,.bx--row--condensed .bx--col-max--auto,.bx--grid--condensed .bx--col-max--auto{padding-right:.03125rem;padding-left:.03125rem}.bx--row--narrow .bx--col-max,.bx--grid--narrow .bx--col-max,.bx--row--narrow .bx--col-max--auto,.bx--grid--narrow .bx--col-max--auto{padding-right:1rem;padding-left:0}@media(min-width: 99rem){.bx--col,.bx--col-max{max-width:100%;flex-basis:0;flex-grow:1}.bx--col--auto,.bx--col-max--auto{width:auto;max-width:100%;flex:1 0 0%}.bx--col-max-0{display:none}.bx--col-max-1{display:block;max-width:6.25%;flex:0 0 6.25%}.bx--col-max-2{display:block;max-width:12.5%;flex:0 0 12.5%}.bx--col-max-3{display:block;max-width:18.75%;flex:0 0 18.75%}.bx--col-max-4{display:block;max-width:25%;flex:0 0 25%}.bx--col-max-5{display:block;max-width:31.25%;flex:0 0 31.25%}.bx--col-max-6{display:block;max-width:37.5%;flex:0 0 37.5%}.bx--col-max-7{display:block;max-width:43.75%;flex:0 0 43.75%}.bx--col-max-8{display:block;max-width:50%;flex:0 0 50%}.bx--col-max-9{display:block;max-width:56.25%;flex:0 0 56.25%}.bx--col-max-10{display:block;max-width:62.5%;flex:0 0 62.5%}.bx--col-max-11{display:block;max-width:68.75%;flex:0 0 68.75%}.bx--col-max-12{display:block;max-width:75%;flex:0 0 75%}.bx--col-max-13{display:block;max-width:81.25%;flex:0 0 81.25%}.bx--col-max-14{display:block;max-width:87.5%;flex:0 0 87.5%}.bx--col-max-15{display:block;max-width:93.75%;flex:0 0 93.75%}.bx--col-max-16{display:block;max-width:100%;flex:0 0 100%}.bx--offset-max-0{margin-left:0}.bx--offset-max-1{margin-left:6.25%}.bx--offset-max-2{margin-left:12.5%}.bx--offset-max-3{margin-left:18.75%}.bx--offset-max-4{margin-left:25%}.bx--offset-max-5{margin-left:31.25%}.bx--offset-max-6{margin-left:37.5%}.bx--offset-max-7{margin-left:43.75%}.bx--offset-max-8{margin-left:50%}.bx--offset-max-9{margin-left:56.25%}.bx--offset-max-10{margin-left:62.5%}.bx--offset-max-11{margin-left:68.75%}.bx--offset-max-12{margin-left:75%}.bx--offset-max-13{margin-left:81.25%}.bx--offset-max-14{margin-left:87.5%}.bx--offset-max-15{margin-left:93.75%}}.bx--no-gutter,.bx--row.bx--no-gutter [class*=bx--col]{padding-right:0;padding-left:0}.bx--no-gutter--start,.bx--row.bx--no-gutter--start [class*=bx--col]{padding-left:0}.bx--no-gutter--end,.bx--row.bx--no-gutter--end [class*=bx--col]{padding-right:0}.bx--no-gutter--left,.bx--row.bx--no-gutter--left [class*=bx--col]{padding-left:0}.bx--no-gutter--right,.bx--row.bx--no-gutter--right [class*=bx--col]{padding-right:0}.bx--hang--start{padding-left:1rem}.bx--hang--end{padding-right:1rem}.bx--hang--left{padding-left:1rem}.bx--hang--right{padding-right:1rem}.bx--aspect-ratio{position:relative}.bx--aspect-ratio::before{width:1px;height:0;margin-left:-1px;content:\"\";float:left}.bx--aspect-ratio::after{display:table;clear:both;content:\"\"}.bx--aspect-ratio--16x9::before{padding-top:56.25%}.bx--aspect-ratio--9x16::before{padding-top:177.7777777778%}.bx--aspect-ratio--2x1::before{padding-top:50%}.bx--aspect-ratio--1x2::before{padding-top:200%}.bx--aspect-ratio--4x3::before{padding-top:75%}.bx--aspect-ratio--3x4::before{padding-top:133.3333333333%}.bx--aspect-ratio--3x2::before{padding-top:66.6666666667%}.bx--aspect-ratio--2x3::before{padding-top:150%}.bx--aspect-ratio--1x1::before{padding-top:100%}.bx--aspect-ratio--object{position:absolute;top:0;left:0;width:100%;height:100%}@keyframes collapse-accordion{0%{height:100%;opacity:1;visibility:inherit}100%{height:0;opacity:0;visibility:hidden}}@keyframes expand-accordion{0%{height:0;opacity:0;visibility:hidden}100%{height:100%;opacity:1;visibility:inherit}}.bx--accordion{width:100%;list-style:none}.bx--accordion__item{overflow:visible;border-top:1px solid #e0e0e0;transition:all 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--accordion__item:last-child{border-bottom:1px solid #e0e0e0}.bx--accordion__heading{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;position:relative;display:flex;width:100%;min-height:2.5rem;flex-direction:row-reverse;align-items:flex-start;justify-content:flex-start;padding:.625rem 0;margin:0;color:#161616;cursor:pointer;transition:background-color cubic-bezier(0.2, 0, 0.38, 0.9) 110ms}.bx--accordion__heading::-moz-focus-inner{border:0}.bx--accordion__heading:hover::before,.bx--accordion__heading:focus::before{position:absolute;top:-1px;left:0;width:100%;height:calc(100% + 2px);content:\"\"}.bx--accordion__heading:hover::before{background-color:#e5e5e5}.bx--accordion__heading:focus{outline:none}.bx--accordion__heading:focus::before{box-sizing:border-box;border:2px solid #0f62fe}@media screen and (prefers-contrast){.bx--accordion__heading:focus::before{border-style:dotted}}.bx--accordion--xl .bx--accordion__heading,.bx--accordion--lg .bx--accordion__heading{min-height:3rem}.bx--accordion--sm .bx--accordion__heading{min-height:2rem;padding:.3125rem 0}.bx--accordion__heading[disabled]{color:#c6c6c6;cursor:not-allowed}.bx--accordion__heading[disabled] .bx--accordion__arrow{fill:#c6c6c6}.bx--accordion__heading[disabled]:hover::before{background-color:rgba(0,0,0,0)}.bx--accordion__item--disabled,.bx--accordion__item--disabled+.bx--accordion__item{border-top:1px solid #f4f4f4}li.bx--accordion__item--disabled:last-of-type{border-bottom:1px solid #f4f4f4}.bx--accordion__arrow{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;width:1rem;height:1rem;flex:0 0 1rem;margin:2px 1rem 0 0;fill:#161616;transform:rotate(-270deg) /*rtl:ignore*/;transition:all 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--accordion__title{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;z-index:1;width:100%;margin:0 0 0 1rem;text-align:left}.bx--accordion__content{display:none;padding-right:1rem;padding-left:1rem;transition:padding cubic-bezier(0.2, 0, 0.38, 0.9) 110ms}@media(min-width: 480px){.bx--accordion__content{padding-right:3rem}}@media(min-width: 640px){.bx--accordion__content{padding-right:25%}}.bx--accordion__content>p{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px}.bx--accordion--start .bx--accordion__heading{flex-direction:row}.bx--accordion--start .bx--accordion__arrow{margin:2px 0 0 1rem}.bx--accordion--start .bx--accordion__title{margin-right:1rem}.bx--accordion--start .bx--accordion__content{margin-left:2rem}.bx--accordion__item--collapsing .bx--accordion__content,.bx--accordion__item--expanding .bx--accordion__content{display:block}.bx--accordion__item--collapsing .bx--accordion__content{animation:110ms cubic-bezier(0.2, 0, 0.38, 0.9) collapse-accordion}.bx--accordion__item--expanding .bx--accordion__content{animation:110ms cubic-bezier(0.2, 0, 0.38, 0.9) expand-accordion}.bx--accordion__item--active{overflow:visible}.bx--accordion__item--active .bx--accordion__content{display:block;padding-top:.5rem;padding-bottom:1.5rem;transition:padding-top cubic-bezier(0, 0, 0.38, 0.9) 110ms,padding-bottom cubic-bezier(0, 0, 0.38, 0.9) 110ms}.bx--accordion__item--active .bx--accordion__arrow{fill:#161616;transform:rotate(-90deg) /*rtl:ignore*/}.bx--accordion.bx--skeleton .bx--accordion__heading,.bx--accordion.bx--skeleton .bx--accordion__button{cursor:default}.bx--accordion.bx--skeleton .bx--accordion__arrow{cursor:default;fill:#161616;pointer-events:none}.bx--accordion.bx--skeleton .bx--accordion__arrow:hover,.bx--accordion.bx--skeleton .bx--accordion__arrow:focus,.bx--accordion.bx--skeleton .bx--accordion__arrow:active{border:none;cursor:default;outline:none}.bx--accordion.bx--skeleton .bx--accordion__heading:hover::before{background-color:rgba(0,0,0,0)}.bx--accordion--end.bx--skeleton .bx--accordion__arrow{margin-left:1rem}.bx--skeleton .bx--accordion__heading:focus .bx--accordion__arrow{border:none;cursor:default;outline:none}.bx--accordion__title.bx--skeleton__text{margin-bottom:0}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--accordion__arrow,.bx--accordion__item--active .bx--accordion__arrow{fill:ButtonText}}.bx--link{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:inline-flex;color:#0f62fe;outline:none;text-decoration:none;transition:color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--link:hover{color:#0043ce;text-decoration:underline}.bx--link:active,.bx--link:active:visited,.bx--link:active:visited:hover{color:#161616;text-decoration:underline}.bx--link:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--link:focus{outline-style:dotted}}.bx--link:visited{color:#0f62fe}.bx--link:visited:hover{color:#0043ce}.bx--link--disabled,.bx--link--disabled:hover{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;color:#c6c6c6;cursor:not-allowed;font-weight:400;text-decoration:none}.bx--link.bx--link--visited:visited{color:#8a3ffc}.bx--link.bx--link--visited:visited:hover{color:#0043ce}.bx--link.bx--link--inline{text-decoration:underline}.bx--link.bx--link--inline:focus,.bx--link.bx--link--inline:visited{text-decoration:none}.bx--link--disabled.bx--link--inline{text-decoration:underline}.bx--link--sm{font-size:.75rem;line-height:1.33333;letter-spacing:.32px}.bx--link--lg{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0}.bx--link__icon{display:inline-flex;align-self:center;margin-left:.5rem}.bx--breadcrumb{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:inline}@media(min-width: 42rem){.bx--breadcrumb{display:flex;flex-wrap:wrap}}.bx--breadcrumb-item{position:relative;display:flex;align-items:center;margin-right:.5rem}.bx--breadcrumb-item .bx--link:visited{color:#0f62fe}.bx--breadcrumb-item .bx--link:visited:hover{color:#0043ce}.bx--breadcrumb-item::after{margin-left:.5rem;color:#161616;content:\"/\"}.bx--breadcrumb--no-trailing-slash .bx--breadcrumb-item:last-child::after{content:\"\"}.bx--breadcrumb-item:last-child,.bx--breadcrumb-item:last-child::after{margin-right:0}.bx--breadcrumb .bx--link{white-space:nowrap}.bx--breadcrumb-item [aria-current=page],.bx--breadcrumb-item.bx--breadcrumb-item--current .bx--link{color:#161616;cursor:auto}.bx--breadcrumb-item [aria-current=page]:hover,.bx--breadcrumb-item.bx--breadcrumb-item--current .bx--link:hover{text-decoration:none}.bx--breadcrumb-item .bx--overflow-menu{position:relative;width:1.25rem;height:1.125rem}.bx--breadcrumb-item .bx--overflow-menu:focus{outline:1px solid #0f62fe}.bx--breadcrumb-item .bx--overflow-menu:hover{background:rgba(0,0,0,0)}.bx--breadcrumb-item .bx--overflow-menu::after{position:absolute;bottom:2px;width:.75rem;height:1px;background:#0043ce;content:\"\";opacity:0;transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--breadcrumb-item .bx--overflow-menu::after{transition:none}}.bx--breadcrumb-item .bx--overflow-menu:hover::after{opacity:1}.bx--breadcrumb-item .bx--overflow-menu.bx--overflow-menu--open{background:rgba(0,0,0,0);box-shadow:none}.bx--breadcrumb-item .bx--overflow-menu__icon{position:relative;fill:#0f62fe;transform:translateY(4px)}.bx--breadcrumb-item .bx--overflow-menu:hover .bx--overflow-menu__icon{fill:#0043ce}.bx--breadcrumb-menu-options:focus{outline:none}.bx--breadcrumb-menu-options.bx--overflow-menu-options[data-floating-menu-direction=bottom]::after{top:-0.4375rem;left:.875rem;width:0;height:0;border-right:.4375rem solid rgba(0,0,0,0);border-bottom:.4375rem solid #f4f4f4;border-left:.4375rem solid rgba(0,0,0,0);margin:0 auto;background:rgba(0,0,0,0)}.bx--breadcrumb.bx--skeleton .bx--link{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:6.25rem;height:1rem}.bx--breadcrumb.bx--skeleton .bx--link:hover,.bx--breadcrumb.bx--skeleton .bx--link:focus,.bx--breadcrumb.bx--skeleton .bx--link:active{border:none;cursor:default;outline:none}.bx--breadcrumb.bx--skeleton .bx--link::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--breadcrumb.bx--skeleton .bx--link::before{animation:none}}.bx--btn{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:relative;display:inline-flex;max-width:20rem;min-height:3rem;flex-shrink:0;align-items:center;justify-content:space-between;padding:calc(.875rem - 3px) 63px calc(.875rem - 3px) 15px;margin:0;border-radius:0;cursor:pointer;outline:none;text-align:left;text-decoration:none;transition:background 70ms cubic-bezier(0, 0, 0.38, 0.9),box-shadow 70ms cubic-bezier(0, 0, 0.38, 0.9),border-color 70ms cubic-bezier(0, 0, 0.38, 0.9),outline 70ms cubic-bezier(0, 0, 0.38, 0.9);vertical-align:top}.bx--btn:disabled,.bx--btn:hover:disabled,.bx--btn:focus:disabled,.bx--btn.bx--btn--disabled,.bx--btn.bx--btn--disabled:hover,.bx--btn.bx--btn--disabled:focus{border-color:#c6c6c6;background:#c6c6c6;box-shadow:none;color:#8d8d8d;cursor:not-allowed}.bx--btn .bx--btn__icon{position:absolute;right:1rem;width:1rem;height:1rem;flex-shrink:0}.bx--btn::-moz-focus-inner{padding:0;border:0}.bx--btn--primary{border-width:1px;border-style:solid;border-color:rgba(0,0,0,0);background-color:#0f62fe;color:#fff}.bx--btn--primary:hover{background-color:#0353e9}.bx--btn--primary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--primary:active{background-color:#002d9c}.bx--btn--primary .bx--btn__icon,.bx--btn--primary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--primary:hover{color:#fff}.bx--btn--secondary{border-width:1px;border-style:solid;border-color:rgba(0,0,0,0);background-color:#393939;color:#fff}.bx--btn--secondary:hover{background-color:#4c4c4c}.bx--btn--secondary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--secondary:active{background-color:#6f6f6f}.bx--btn--secondary .bx--btn__icon,.bx--btn--secondary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--secondary:hover,.bx--btn--secondary:focus{color:#fff}.bx--btn--tertiary{border-width:1px;border-style:solid;border-color:#0f62fe;background-color:rgba(0,0,0,0);color:#0f62fe}.bx--btn--tertiary:hover{background-color:#0353e9}.bx--btn--tertiary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--tertiary:active{background-color:#002d9c}.bx--btn--tertiary .bx--btn__icon,.bx--btn--tertiary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--tertiary:hover{color:#fff}.bx--btn--tertiary:focus{background-color:#0f62fe;color:#fff}.bx--btn--tertiary:active{border-color:rgba(0,0,0,0);background-color:#002d9c;color:#fff}.bx--btn--tertiary:disabled,.bx--btn--tertiary:hover:disabled,.bx--btn--tertiary:focus:disabled,.bx--btn--tertiary.bx--btn--disabled,.bx--btn--tertiary.bx--btn--disabled:hover,.bx--btn--tertiary.bx--btn--disabled:focus{background:rgba(0,0,0,0);color:#8d8d8d;outline:none}.bx--btn--ghost{border-width:1px;border-style:solid;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#0f62fe;padding:calc(.875rem - 3px) 16px}.bx--btn--ghost:hover{background-color:#e5e5e5}.bx--btn--ghost:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--ghost:active{background-color:#c6c6c6}.bx--btn--ghost .bx--btn__icon,.bx--btn--ghost .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--ghost .bx--btn__icon{position:static;margin-left:.5rem}.bx--btn--ghost:hover,.bx--btn--ghost:active{color:#0043ce}.bx--btn--ghost:active{background-color:#c6c6c6}.bx--btn--ghost:disabled,.bx--btn--ghost:hover:disabled,.bx--btn--ghost:focus:disabled,.bx--btn--ghost.bx--btn--disabled,.bx--btn--ghost.bx--btn--disabled:hover,.bx--btn--ghost.bx--btn--disabled:focus{border-color:rgba(0,0,0,0);background:rgba(0,0,0,0);color:#8d8d8d;outline:none}.bx--btn--ghost.bx--btn--sm{padding:calc(.375rem - 3px) 16px}.bx--btn--ghost.bx--btn--field,.bx--btn--ghost.bx--btn--md{padding:calc(.675rem - 3px) 16px}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{outline:1px solid rgba(0,0,0,0)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{outline-style:dotted}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{display:inline-block}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after{transition:none}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--a11y::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--a11y::after{transition:none}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::before{width:0;height:0;border-style:solid;content:\"\"}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger::after{content:attr(aria-label)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--a11y::after{content:none}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover.bx--tooltip--a11y::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus+.bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--hidden .bx--assistive-text,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger svg,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:hover svg,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{fill:currentColor}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--btn--disabled.bx--tooltip--a11y::before,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--btn--disabled.bx--tooltip--a11y::after,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger.bx--btn--disabled .bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0);opacity:0}.bx--btn.bx--btn--icon-only:not(.bx--tooltip--hidden) .bx--assistive-text{pointer-events:all}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus{border-color:#0f62fe}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:active:not([disabled]){border-color:rgba(0,0,0,0)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger:focus svg{outline-color:rgba(0,0,0,0)}.bx--btn.bx--btn--icon-only.bx--tooltip__trigger[disabled]:hover,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger[disabled]:focus,.bx--btn.bx--btn--icon-only.bx--tooltip__trigger[disabled]:active{cursor:not-allowed;fill:#8d8d8d}.bx--tooltip__trigger.bx--btn--icon-only--top{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--btn--icon-only--top:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--top:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--top:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--btn--icon-only--top:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--top:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--top::before,.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--top::before,.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--top::before,.bx--tooltip__trigger.bx--btn--icon-only--top::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--btn--icon-only--top::before,.bx--tooltip__trigger.bx--btn--icon-only--top::after{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--top::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--btn--icon-only--top::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--btn--icon-only--top:hover::before,.bx--tooltip__trigger.bx--btn--icon-only--top:hover::after,.bx--tooltip__trigger.bx--btn--icon-only--top:focus::before,.bx--tooltip__trigger.bx--btn--icon-only--top:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--top::before,.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--top::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top::after,.bx--tooltip__trigger.bx--btn--icon-only--top .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top+.bx--assistive-text{top:-0.8125rem;left:50%;transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-start+.bx--assistive-text{top:-0.8125rem;left:0;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-center+.bx--assistive-text{top:-0.8125rem;left:50%;transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--top.bx--tooltip--align-end+.bx--assistive-text{top:-0.8125rem;right:0;left:auto;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--btn--icon-only--right{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--btn--icon-only--right:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--right:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--right:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--btn--icon-only--right:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--right:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--right::before,.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--right::before,.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--right::before,.bx--tooltip__trigger.bx--btn--icon-only--right::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--btn--icon-only--right::before,.bx--tooltip__trigger.bx--btn--icon-only--right::after{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--right::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--btn--icon-only--right::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--btn--icon-only--right:hover::before,.bx--tooltip__trigger.bx--btn--icon-only--right:hover::after,.bx--tooltip__trigger.bx--btn--icon-only--right:focus::before,.bx--tooltip__trigger.bx--btn--icon-only--right:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right::before,.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--btn--icon-only--right::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right::after,.bx--tooltip__trigger.bx--btn--icon-only--right .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-start+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-center+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--right.bx--tooltip--align-end+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--bottom::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--bottom::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--bottom::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--btn--icon-only--bottom::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom::after{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--bottom::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--btn--icon-only--bottom::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--bottom::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-start+.bx--assistive-text{bottom:-0.8125rem;left:0;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-center+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--bottom.bx--tooltip--align-end+.bx--assistive-text{bottom:-0.8125rem;right:0;left:auto;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--btn--icon-only--left{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--btn--icon-only--left:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--left:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--left:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--btn--icon-only--left:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--left:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--btn--icon-only--left::before,.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--left::before,.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--btn--icon-only--left::before,.bx--tooltip__trigger.bx--btn--icon-only--left::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--btn--icon-only--left::before,.bx--tooltip__trigger.bx--btn--icon-only--left::after{transition:none}}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--btn--icon-only--left::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--btn--icon-only--left::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--btn--icon-only--left:hover::before,.bx--tooltip__trigger.bx--btn--icon-only--left:hover::after,.bx--tooltip__trigger.bx--btn--icon-only--left:focus::before,.bx--tooltip__trigger.bx--btn--icon-only--left:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--btn--icon-only--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left::before,.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--btn--icon-only--left::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left::after,.bx--tooltip__trigger.bx--btn--icon-only--left .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-start+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-center+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--btn--icon-only--left.bx--tooltip--align-end+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--btn--icon-only{padding-right:.9375rem;padding-left:.9375rem}.bx--btn--icon-only .bx--btn__icon{position:static}.bx--btn--icon-only.bx--btn--ghost .bx--btn__icon,.bx--btn--icon-only.bx--btn--danger--ghost .bx--btn__icon{margin:0}.bx--btn--icon-only.bx--btn--selected{background:#e0e0e0}.bx--btn path[data-icon-path=inner-path]{fill:none}.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon{fill:#161616}.bx--btn--ghost.bx--btn--icon-only[disabled] .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--ghost.bx--btn--icon-only[disabled] .bx--btn__icon,.bx--btn.bx--btn--icon-only.bx--btn--ghost[disabled]:hover .bx--btn__icon{fill:#8d8d8d}.bx--btn--ghost.bx--btn--icon-only[disabled]{cursor:not-allowed}.bx--btn--field.bx--btn--icon-only,.bx--btn--md.bx--btn--icon-only{padding-right:.6875rem;padding-left:.6875rem}.bx--btn--sm.bx--btn--icon-only{padding-right:.4375rem;padding-left:.4375rem}.bx--btn--danger{border-width:1px;border-style:solid;border-color:rgba(0,0,0,0);background-color:#da1e28;color:#fff}.bx--btn--danger:hover{background-color:#b81921}.bx--btn--danger:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--danger:active{background-color:#750e13}.bx--btn--danger .bx--btn__icon,.bx--btn--danger .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--danger:hover{color:#fff}.bx--btn--danger-tertiary,.bx--btn--danger--tertiary{border-width:1px;border-style:solid;border-color:#da1e28;background-color:rgba(0,0,0,0);color:#da1e28}.bx--btn--danger-tertiary:hover,.bx--btn--danger--tertiary:hover{background-color:#b81921}.bx--btn--danger-tertiary:focus,.bx--btn--danger--tertiary:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--danger-tertiary:active,.bx--btn--danger--tertiary:active{background-color:#750e13}.bx--btn--danger-tertiary .bx--btn__icon,.bx--btn--danger-tertiary .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--danger--tertiary .bx--btn__icon,.bx--btn--danger--tertiary .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--danger-tertiary:hover,.bx--btn--danger--tertiary:hover{border-color:#b81921;color:#fff}.bx--btn--danger-tertiary:focus,.bx--btn--danger--tertiary:focus{background-color:#da1e28;color:#fff}.bx--btn--danger-tertiary:active,.bx--btn--danger--tertiary:active{border-color:#750e13;color:#fff}.bx--btn--danger-tertiary:disabled,.bx--btn--danger-tertiary:hover:disabled,.bx--btn--danger-tertiary:focus:disabled,.bx--btn--danger-tertiary.bx--btn--disabled,.bx--btn--danger-tertiary.bx--btn--disabled:hover,.bx--btn--danger-tertiary.bx--btn--disabled:focus,.bx--btn--danger--tertiary:disabled,.bx--btn--danger--tertiary:hover:disabled,.bx--btn--danger--tertiary:focus:disabled,.bx--btn--danger--tertiary.bx--btn--disabled,.bx--btn--danger--tertiary.bx--btn--disabled:hover,.bx--btn--danger--tertiary.bx--btn--disabled:focus{background:rgba(0,0,0,0);color:#8d8d8d;outline:none}.bx--btn--danger-ghost,.bx--btn--danger--ghost{border-width:1px;border-style:solid;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#da1e28;padding:calc(.875rem - 3px) 16px}.bx--btn--danger-ghost:hover,.bx--btn--danger--ghost:hover{background-color:#b81921}.bx--btn--danger-ghost:focus,.bx--btn--danger--ghost:focus{border-color:#0f62fe;box-shadow:inset 0 0 0 1px #0f62fe,inset 0 0 0 2px #fff}.bx--btn--danger-ghost:active,.bx--btn--danger--ghost:active{background-color:#750e13}.bx--btn--danger-ghost .bx--btn__icon,.bx--btn--danger-ghost .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--danger--ghost .bx--btn__icon,.bx--btn--danger--ghost .bx--btn__icon path:not([data-icon-path]):not([fill=none]){fill:currentColor}.bx--btn--danger-ghost .bx--btn__icon,.bx--btn--danger--ghost .bx--btn__icon{position:static;margin-left:.5rem}.bx--btn--danger-ghost:hover,.bx--btn--danger-ghost:active,.bx--btn--danger--ghost:hover,.bx--btn--danger--ghost:active{color:#fff}.bx--btn--danger-ghost:disabled,.bx--btn--danger-ghost:hover:disabled,.bx--btn--danger-ghost:focus:disabled,.bx--btn--danger-ghost.bx--btn--disabled,.bx--btn--danger-ghost.bx--btn--disabled:hover,.bx--btn--danger-ghost.bx--btn--disabled:focus,.bx--btn--danger--ghost:disabled,.bx--btn--danger--ghost:hover:disabled,.bx--btn--danger--ghost:focus:disabled,.bx--btn--danger--ghost.bx--btn--disabled,.bx--btn--danger--ghost.bx--btn--disabled:hover,.bx--btn--danger--ghost.bx--btn--disabled:focus{border-color:rgba(0,0,0,0);background:rgba(0,0,0,0);color:#c6c6c6;outline:none}.bx--btn--danger-ghost.bx--btn--sm,.bx--btn--danger--ghost.bx--btn--sm{padding:calc(.375rem - 3px) 16px}.bx--btn--danger-ghost.bx--btn--field,.bx--btn--danger-ghost.bx--btn--md,.bx--btn--danger--ghost.bx--btn--field,.bx--btn--danger--ghost.bx--btn--md{padding:calc(.675rem - 3px) 16px}.bx--btn--sm{min-height:2rem;padding:calc(.375rem - 3px) 60px calc(.375rem - 3px) 12px}.bx--btn--xl:not(.bx--btn--icon-only){align-items:baseline;padding-top:1rem;padding-right:4rem;padding-left:1rem;min-height:5rem}.bx--btn--lg:not(.bx--btn--icon-only){align-items:baseline;padding-top:1rem;padding-right:4rem;padding-left:1rem;min-height:4rem}.bx--btn--field,.bx--btn--md{min-height:2.5rem;padding:calc(.675rem - 3px) 60px calc(.675rem - 3px) 12px}.bx--btn--expressive{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0;min-height:3rem}.bx--btn--icon-only.bx--btn--expressive{padding:12px 13px}.bx--btn.bx--btn--expressive .bx--btn__icon{width:1.25rem;height:1.25rem}.bx--btn-set .bx--btn.bx--btn--expressive{max-width:20rem}.bx--btn.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:9.375rem}.bx--btn.bx--skeleton:hover,.bx--btn.bx--skeleton:focus,.bx--btn.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--btn.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--btn.bx--skeleton::before{animation:none}}.bx--btn-set{display:flex}.bx--btn-set--stacked{flex-direction:column}.bx--btn-set .bx--btn{width:100%;max-width:12.25rem}.bx--btn-set .bx--btn:not(:focus){box-shadow:-0.0625rem 0 0 0 #e0e0e0}.bx--btn-set .bx--btn:first-of-type:not(:focus){box-shadow:inherit}.bx--btn-set .bx--btn:focus+.bx--btn{box-shadow:inherit}.bx--btn-set--stacked .bx--btn:not(:focus){box-shadow:0 -0.0625rem 0 0 #e0e0e0}.bx--btn-set--stacked .bx--btn:first-of-type:not(:focus){box-shadow:inherit}.bx--btn-set .bx--btn.bx--btn--disabled{box-shadow:-0.0625rem 0 0 0 #8d8d8d}.bx--btn-set .bx--btn.bx--btn--disabled:first-of-type{box-shadow:none}.bx--btn-set--stacked .bx--btn.bx--btn--disabled{box-shadow:0 -0.0625rem 0 0 #8d8d8d}.bx--btn-set--stacked .bx--btn.bx--btn--disabled:first-of-type{box-shadow:none}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--btn:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon path:not([data-icon-path]):not([fill=none]),.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon{fill:ButtonText}}.bx--fieldset{margin-bottom:2rem}.bx--fieldset--no-margin{margin-bottom:0}.bx--form-item{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}.bx--label{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;display:inline-block;margin-bottom:.5rem;color:#525252;font-weight:400;line-height:1rem;vertical-align:baseline}.bx--label .bx--tooltip__trigger{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px}.bx--label.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:4.6875rem;height:.875rem}.bx--label.bx--skeleton:hover,.bx--label.bx--skeleton:focus,.bx--label.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--label.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--label.bx--skeleton::before{animation:none}}input[type=number]{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}input[data-invalid]:not(:focus),.bx--number[data-invalid] input[type=number]:not(:focus),.bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:not(:focus),.bx--text-area__wrapper[data-invalid]>.bx--text-area--invalid:not(:focus),.bx--select-input__wrapper[data-invalid] .bx--select-input:not(:focus),.bx--list-box[data-invalid]:not(:focus),.bx--combo-box[data-invalid] .bx--text-input:not(:focus){outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){input[data-invalid]:not(:focus),.bx--number[data-invalid] input[type=number]:not(:focus),.bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:not(:focus),.bx--text-area__wrapper[data-invalid]>.bx--text-area--invalid:not(:focus),.bx--select-input__wrapper[data-invalid] .bx--select-input:not(:focus),.bx--list-box[data-invalid]:not(:focus),.bx--combo-box[data-invalid] .bx--text-input:not(:focus){outline-style:dotted}}input[data-invalid]~.bx--form-requirement,.bx--number[data-invalid] .bx--number__input-wrapper~.bx--form-requirement,.bx--number__input-wrapper--warning~.bx--form-requirement,.bx--date-picker-input__wrapper~.bx--form-requirement,.bx--date-picker-input__wrapper--warn~.bx--form-requirement,.bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--time-picker--invalid~.bx--form-requirement,.bx--text-input__field-wrapper[data-invalid]~.bx--form-requirement,.bx--text-input__field-wrapper--warning~.bx--form-requirement,.bx--text-input__field-wrapper--warning>.bx--text-input~.bx--form-requirement,.bx--text-area__wrapper[data-invalid]~.bx--form-requirement,.bx--select-input__wrapper[data-invalid]~.bx--form-requirement,.bx--select--warning .bx--select-input__wrapper~.bx--form-requirement,.bx--time-picker[data-invalid]~.bx--form-requirement,.bx--list-box[data-invalid]~.bx--form-requirement,.bx--list-box--warning~.bx--form-requirement{display:block;overflow:visible;max-height:12.5rem;font-weight:400}input[data-invalid]~.bx--form-requirement,.bx--number[data-invalid] .bx--number__input-wrapper~.bx--form-requirement,.bx--date-picker-input__wrapper~.bx--form-requirement,.bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--time-picker--invalid~.bx--form-requirement,.bx--text-input__field-wrapper[data-invalid]~.bx--form-requirement,.bx--text-area__wrapper[data-invalid]~.bx--form-requirement,.bx--select-input__wrapper[data-invalid]~.bx--form-requirement,.bx--time-picker[data-invalid]~.bx--form-requirement,.bx--list-box[data-invalid]~.bx--form-requirement{color:#da1e28}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid],.bx--form--fluid .bx--text-input__field-wrapper--warning{display:block}.bx--form--fluid .bx--fieldset{margin:0}.bx--form--fluid input[data-invalid]{outline:none}.bx--form--fluid .bx--form-requirement{padding:.5rem 2.5rem .5rem 1rem;margin:0}input:not(output):not([data-invalid]):-moz-ui-invalid{box-shadow:none}.bx--form-requirement{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;display:none;overflow:hidden;max-height:0;margin:.25rem 0 0}.bx--select--inline .bx--form__helper-text{margin-top:0}.bx--form__helper-text{font-size:.75rem;line-height:1.33333;letter-spacing:.32px;z-index:0;width:100%;margin-top:.25rem;color:#525252;opacity:1}.bx--label--disabled,.bx--form__helper-text--disabled{color:#c6c6c6}fieldset[disabled] .bx--label,fieldset[disabled] .bx--form__helper-text{color:#c6c6c6}.bx--form-item.bx--checkbox-wrapper{position:relative;margin-bottom:.25rem}.bx--form-item.bx--checkbox-wrapper:first-of-type{margin-top:.1875rem}.bx--label+.bx--form-item.bx--checkbox-wrapper{margin-top:-0.125rem}.bx--form-item.bx--checkbox-wrapper:last-of-type{margin-bottom:.1875rem}.bx--checkbox{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap;top:1.25rem;left:.7rem}.bx--checkbox-label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:relative;display:flex;min-height:1.5rem;padding-top:.1875rem;padding-left:1.25rem;cursor:pointer;user-select:none}.bx--checkbox-label-text{padding-left:.375rem}.bx--checkbox-label::before,.bx--checkbox-label::after{box-sizing:border-box}.bx--checkbox-label::before{position:absolute;top:.125rem;left:0;width:1rem;height:1rem;border:1px solid #161616;margin:.125rem .125rem .125rem .1875rem;background-color:rgba(0,0,0,0);border-radius:1px;content:\"\"}.bx--checkbox-label::after{position:absolute;top:.5rem;left:.4375rem;width:.5625rem;height:.3125rem;border-bottom:2px solid #fff;border-left:2px solid #fff;margin-top:-0.1875rem /*rtl:0rem*/;background:none;content:\"\";transform:scale(0) rotate(-45deg);transform-origin:bottom right /*rtl:center*/}.bx--checkbox:checked+.bx--checkbox-label::before,.bx--checkbox:indeterminate+.bx--checkbox-label::before,.bx--checkbox-label[data-contained-checkbox-state=true]::before,.bx--checkbox-label[data-contained-checkbox-state=mixed]::before{border-width:1px;border-color:#161616;background-color:#161616}.bx--checkbox:checked+.bx--checkbox-label::after,.bx--checkbox-label[data-contained-checkbox-state=true]::after{transform:scale(1) rotate(-45deg) /*rtl:scale(1.2) rotate3d(.5, 1, 0, 158deg)*/}.bx--checkbox:indeterminate+.bx--checkbox-label::after,.bx--checkbox-label[data-contained-checkbox-state=mixed]::after{top:.6875rem;width:.5rem;border-bottom:2px solid #fff;border-left:0 solid #fff;transform:scale(1) rotate(0deg)}.bx--checkbox:focus+.bx--checkbox-label::before,.bx--checkbox-label__focus::before,.bx--checkbox:checked:focus+.bx--checkbox-label::before,.bx--checkbox-label[data-contained-checkbox-state=true].bx--checkbox-label__focus::before,.bx--checkbox:indeterminate:focus+.bx--checkbox-label::before,.bx--checkbox-label[data-contained-checkbox-state=mixed].bx--checkbox-label__focus::before{outline:2px solid #0f62fe;outline-offset:1px}.bx--checkbox:disabled+.bx--checkbox-label,.bx--checkbox-label[data-contained-checkbox-disabled=true]{color:#c6c6c6;cursor:not-allowed}.bx--checkbox:disabled+.bx--checkbox-label::before,.bx--checkbox-label[data-contained-checkbox-disabled=true]::before{border-color:#c6c6c6}.bx--checkbox:checked:disabled+.bx--checkbox-label::before,.bx--checkbox:indeterminate:disabled+.bx--checkbox-label::before,.bx--checkbox-label[data-contained-checkbox-state=true][data-contained-checkbox-disabled=true]::before,.bx--checkbox-label[data-contained-checkbox-state=mixed][data-contained-checkbox-disabled=true]::before{background-color:#c6c6c6}.bx--checkbox-label-text.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:6.25rem;height:1rem;margin:.0625rem 0 0 .375rem}.bx--checkbox-label-text.bx--skeleton:hover,.bx--checkbox-label-text.bx--skeleton:focus,.bx--checkbox-label-text.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--checkbox-label-text.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--checkbox-label-text.bx--skeleton::before{animation:none}}.bx--checkbox--inline{position:relative}@keyframes hide-feedback{0%{opacity:1;visibility:inherit}100%{opacity:0;visibility:hidden}}@keyframes show-feedback{0%{opacity:0;visibility:hidden}100%{opacity:1;visibility:inherit}}.bx--snippet--disabled,.bx--snippet--disabled .bx--btn.bx--snippet-btn--expand{background-color:#f4f4f4;color:#c6c6c6}.bx--snippet--disabled .bx--snippet-btn--expand:hover,.bx--snippet--disabled .bx--copy-btn:hover{background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--snippet--disabled .bx--snippet__icon,.bx--snippet--disabled .bx--snippet-btn--expand .bx--icon-chevron--down{fill:#c6c6c6}.bx--snippet code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px}.bx--snippet--inline{position:relative;display:inline;padding:0;border:2px solid rgba(0,0,0,0);background-color:#f4f4f4;border-radius:4px;color:#161616;cursor:pointer}.bx--snippet--inline:hover{background-color:#e0e0e0}.bx--snippet--inline:active{background-color:#c6c6c6}.bx--snippet--inline:focus{border:2px solid #0f62fe;outline:none}.bx--snippet--inline::before{position:absolute;z-index:6000;width:0;height:0;border-style:solid;content:\"\";display:none}.bx--snippet--inline .bx--copy-btn__feedback{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:none;overflow:visible;box-sizing:content-box;margin:auto;clip:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--snippet--inline .bx--copy-btn__feedback{width:auto}}@supports(-ms-accelerator: true){.bx--snippet--inline .bx--copy-btn__feedback{width:auto}}@supports(-ms-ime-align: auto){.bx--snippet--inline .bx--copy-btn__feedback{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--snippet--inline .bx--copy-btn__feedback{border:1px solid rgba(0,0,0,0)}}.bx--snippet--inline .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--snippet--inline::before,.bx--snippet--inline::after,.bx--snippet--inline .bx--assistive-text,.bx--snippet--inline+.bx--assistive-text{bottom:0;left:50%}.bx--snippet--inline::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--snippet--inline::after,.bx--snippet--inline .bx--assistive-text,.bx--snippet--inline+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--snippet--inline.bx--copy-btn--animating::before,.bx--snippet--inline.bx--copy-btn--animating .bx--copy-btn__feedback{display:block}.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-out::before,.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-out .bx--copy-btn__feedback{animation:110ms cubic-bezier(0.2, 0, 0.38, 0.9) hide-feedback}.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-in::before,.bx--snippet--inline.bx--copy-btn--animating.bx--copy-btn--fade-in .bx--copy-btn__feedback{animation:110ms cubic-bezier(0.2, 0, 0.38, 0.9) show-feedback}.bx--snippet--inline code{padding:0 .5rem}.bx--snippet--inline.bx--snippet--no-copy{display:inline-block}.bx--snippet--inline.bx--snippet--no-copy:hover{background-color:#f4f4f4;cursor:auto}.bx--snippet--light.bx--snippet--inline.bx--snippet--no-copy:hover{background-color:#fff;cursor:auto}.bx--snippet--single{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;position:relative;width:100%;max-width:48rem;background-color:#f4f4f4;display:flex;height:2.5rem;align-items:center;padding-right:2.5rem}.bx--snippet--single.bx--snippet--no-copy{padding:0}.bx--snippet--single.bx--snippet--no-copy::after{right:1rem}.bx--snippet--single .bx--snippet-container{position:relative;display:flex;height:100%;align-items:center;padding-left:1rem;overflow-x:auto}.bx--snippet--single .bx--snippet-container:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--snippet--single .bx--snippet-container:focus{outline-style:dotted}}.bx--snippet--single pre{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;padding-right:.5rem}.bx--snippet--single pre,.bx--snippet--inline code{white-space:pre}.bx--snippet--multi{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;position:relative;width:100%;max-width:48rem;background-color:#f4f4f4;display:flex;padding:1rem}.bx--snippet--multi .bx--snippet-container{position:relative;min-height:100%;max-height:100%;order:1;overflow-y:auto;transition:max-height 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--snippet--multi.bx--snippet--expand .bx--snippet-container{padding-bottom:1rem;transition:max-height 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--snippet--multi.bx--snippet--wraptext pre{white-space:pre-wrap;word-wrap:break-word}.bx--snippet--multi .bx--snippet-container pre{padding-right:2.5rem;padding-bottom:1.5rem;overflow-x:auto}.bx--snippet--multi.bx--snippet--no-copy .bx--snippet-container pre{padding-right:0}.bx--snippet--multi.bx--snippet--expand .bx--snippet-container pre{overflow-x:auto}.bx--snippet--multi .bx--snippet-container pre::after{position:absolute;top:0;right:0;width:1rem;height:100%;background-image:linear-gradient(to right, rgba(244, 244, 244, 0), #f4f4f4);content:\"\"}.bx--snippet--multi .bx--snippet-container pre code{overflow:hidden}.bx--snippet__icon{width:1rem;height:1rem;fill:#161616;transition:all 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--snippet-button{position:absolute;top:0;right:0;display:flex;overflow:visible;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;padding:0;border:none;background-color:#f4f4f4;cursor:pointer;outline:none}.bx--snippet-button:focus{outline:2px solid #0f62fe;outline-offset:-2px;outline-color:#0f62fe}@media screen and (prefers-contrast){.bx--snippet-button:focus{outline-style:dotted}}.bx--snippet--multi .bx--snippet-button{top:.5rem;right:.5rem;width:2rem;height:2rem}.bx--snippet-button:hover{background:#e5e5e5}.bx--snippet-button:active{background-color:#c6c6c6}.bx--btn--copy__feedback{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;z-index:6000;top:.75rem;right:1.25rem;left:inherit;font-weight:400}.bx--btn--copy__feedback::before,.bx--btn--copy__feedback::after{background:#393939}.bx--btn--copy__feedback::after{border:none}.bx--snippet .bx--copy-btn{position:absolute;top:0;right:0;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif}.bx--snippet-btn--expand{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;position:absolute;z-index:10;right:0;bottom:0;display:inline-flex;align-items:center;padding:.5rem 1rem;border:0;background-color:#f4f4f4;color:#161616}.bx--snippet-btn--expand .bx--snippet-btn--text{position:relative;top:-0.0625rem}.bx--snippet-btn--expand--hide.bx--snippet-btn--expand{display:none}.bx--snippet-btn--expand .bx--icon-chevron--down{margin-left:.5rem;fill:#161616;transform:rotate(0deg);transition:150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--snippet-btn--expand:hover{background:#e5e5e5;color:#161616}.bx--snippet-btn--expand:active{background-color:#c6c6c6}.bx--snippet-btn--expand:focus{outline:2px solid #0f62fe;outline-offset:-2px;border-color:rgba(0,0,0,0)}@media screen and (prefers-contrast){.bx--snippet-btn--expand:focus{outline-style:dotted}}.bx--snippet--expand .bx--snippet-btn--expand .bx--icon-chevron--down{transform:rotate(180deg);transition:transform 240ms}.bx--snippet--light,.bx--snippet--light .bx--snippet-button,.bx--snippet--light .bx--btn.bx--snippet-btn--expand,.bx--snippet--light .bx--copy-btn{background-color:#fff}.bx--snippet--light.bx--snippet--inline:hover,.bx--snippet--light .bx--snippet-button:hover,.bx--snippet--light .bx--btn.bx--snippet-btn--expand:hover,.bx--snippet--light .bx--copy-btn:hover{background-color:#e5e5e5}.bx--snippet--light.bx--snippet--inline:active,.bx--snippet--light .bx--snippet-button:active,.bx--snippet--light .bx--btn.bx--snippet-btn--expand:active,.bx--snippet--light .bx--copy-btn:active{background-color:#c6c6c6}.bx--snippet--light.bx--snippet--single::after,.bx--snippet--light.bx--snippet--multi .bx--snippet-container pre::after{background-image:linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff)}.bx--snippet.bx--skeleton .bx--snippet-container{width:100%;height:100%}.bx--snippet-button .bx--btn--copy__feedback{top:3.175rem;right:auto;left:50%}.bx--snippet-button .bx--btn--copy__feedback::before{top:0}.bx--snippet-button .bx--btn--copy__feedback::after{top:-0.25rem}.bx--snippet--multi .bx--copy-btn{z-index:10;top:.5rem;right:.5rem;width:2rem;height:2rem}.bx--snippet--multi .bx--snippet-button .bx--btn--copy__feedback{top:2.675rem}.bx--snippet--inline .bx--btn--copy__feedback{top:calc(100% - 0.25rem);right:auto;left:50%}.bx--snippet__overflow-indicator--left,.bx--snippet__overflow-indicator--right{z-index:1;width:1rem;flex:1 0 auto}.bx--snippet__overflow-indicator--left{order:0;margin-right:-1rem;background-image:linear-gradient(to left, transparent, #f4f4f4)}.bx--snippet__overflow-indicator--right{order:2;margin-left:-1rem;background-image:linear-gradient(to right, transparent, #f4f4f4)}.bx--snippet--single .bx--snippet__overflow-indicator--right,.bx--snippet--single .bx--snippet__overflow-indicator--left{position:absolute;width:2rem;height:calc(100% - 0.25rem)}.bx--snippet--single .bx--snippet__overflow-indicator--right{right:2.5rem}.bx--snippet--single.bx--snippet--no-copy .bx--snippet__overflow-indicator--right{right:0}.bx--snippet--single .bx--snippet-container:focus~.bx--snippet__overflow-indicator--right{right:calc(2.5rem + 0.125rem)}.bx--snippet--single .bx--snippet-container:focus+.bx--snippet__overflow-indicator--left{left:.125rem}.bx--snippet--light .bx--snippet__overflow-indicator--left{background-image:linear-gradient(to left, transparent, #ffffff)}.bx--snippet--light .bx--snippet__overflow-indicator--right{background-image:linear-gradient(to right, transparent, #ffffff)}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none) and (stroke-color: transparent){.bx--snippet__overflow-indicator--left{background-image:linear-gradient(to left, rgba(244, 244, 244, 0), #f4f4f4)}.bx--snippet__overflow-indicator--right{background-image:linear-gradient(to right, rgba(244, 244, 244, 0), #f4f4f4)}}}.bx--snippet--multi.bx--skeleton{height:6.125rem}.bx--snippet--single.bx--skeleton{height:3.5rem}.bx--snippet.bx--skeleton span{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;display:block;width:100%;height:1rem;margin-top:.5rem}.bx--snippet.bx--skeleton span:hover,.bx--snippet.bx--skeleton span:focus,.bx--snippet.bx--skeleton span:active{border:none;cursor:default;outline:none}.bx--snippet.bx--skeleton span::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--snippet.bx--skeleton span::before{animation:none}}.bx--snippet.bx--skeleton span:first-child{margin:0}.bx--snippet.bx--skeleton span:nth-child(2){width:85%}.bx--snippet.bx--skeleton span:nth-child(3){width:95%}.bx--snippet--single.bx--skeleton .bx--snippet-container{padding-bottom:0}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--snippet__icon{fill:ButtonText}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--snippet--inline:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--snippet--single,.bx--snippet--multi{outline:1px solid rgba(0,0,0,0)}}.bx--list-box__wrapper--inline{display:inline-grid;align-items:center;grid-gap:.25rem;grid-template:auto auto/auto auto}.bx--list-box__wrapper--inline .bx--label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}.bx--list-box__wrapper--inline .bx--label,.bx--list-box__wrapper--inline .bx--form__helper-text,.bx--list-box__wrapper--inline .bx--form-requirement{margin:0}.bx--list-box__wrapper--inline .bx--form__helper-text{max-width:none}.bx--list-box__wrapper--inline .bx--form-requirement{grid-column:2}.bx--list-box{position:relative;width:100%;height:2.5rem;max-height:2.5rem;border:none;border-bottom:1px solid #8d8d8d;background-color:#f4f4f4;color:#161616;cursor:pointer;transition:all 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--list-box:hover{background-color:#e5e5e5}.bx--list-box--xl,.bx--list-box--lg{height:3rem;max-height:3rem}.bx--list-box--sm{height:2rem;max-height:2rem}.bx--list-box--expanded{border-bottom-color:#e0e0e0}.bx--list-box--expanded:hover{background-color:#f4f4f4}.bx--list-box--expanded:hover.bx--list-box--light:hover{background-color:#fff}.bx--list-box .bx--text-input{min-width:0;height:100%}.bx--list-box__invalid-icon{position:absolute;top:50%;right:2.5rem;fill:#da1e28;transform:translateY(-50%)}.bx--list-box__invalid-icon--warning{fill:#f1c21b}.bx--list-box__invalid-icon--warning path[fill]{fill:#000;opacity:1}.bx--list-box[data-invalid] .bx--list-box__field,.bx--list-box.bx--list-box--warning .bx--list-box__field{padding-right:4rem;border-bottom:0}.bx--list-box[data-invalid].bx--list-box--inline .bx--list-box__field{padding-right:3.5rem}.bx--list-box--light{background-color:#fff}.bx--list-box--light:hover{background-color:#e5e5e5}.bx--list-box--light .bx--list-box__menu{background:#fff}.bx--list-box--light .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box--light.bx--list-box--expanded{border-bottom-color:rgba(0,0,0,0)}.bx--list-box--disabled:hover{background-color:#f4f4f4}.bx--list-box--light.bx--list-box--disabled{background-color:#fff}.bx--list-box--disabled,.bx--list-box--disabled .bx--list-box__field,.bx--list-box--disabled .bx--list-box__field:focus{border-bottom-color:rgba(0,0,0,0);outline:none}.bx--list-box--disabled .bx--list-box__label,.bx--list-box--disabled.bx--list-box--inline .bx--list-box__label{color:#c6c6c6}.bx--list-box--disabled .bx--list-box__menu-icon>svg,.bx--list-box--disabled .bx--list-box__selection>svg{fill:#c6c6c6}.bx--list-box--disabled,.bx--list-box--disabled .bx--list-box__field,.bx--list-box--disabled .bx--list-box__menu-icon{cursor:not-allowed}.bx--list-box--disabled .bx--list-box__menu-item,.bx--list-box--disabled .bx--list-box__menu-item:hover,.bx--list-box--disabled .bx--list-box__menu-item--highlighted{color:#c6c6c6;text-decoration:none}.bx--list-box--disabled .bx--list-box__selection:hover{cursor:not-allowed}.bx--list-box--disabled.bx--list-box[data-invalid] .bx--list-box__field{padding-right:3rem}.bx--list-box--disabled.bx--list-box[data-invalid].bx--list-box--inline .bx--list-box__field{padding-right:2rem}.bx--list-box.bx--list-box--inline{border-width:0;background-color:rgba(0,0,0,0)}.bx--list-box.bx--list-box--inline:hover{background-color:#e5e5e5}.bx--list-box.bx--list-box--inline.bx--list-box--expanded{border-bottom-width:0}.bx--list-box.bx--list-box--inline.bx--list-box--expanded .bx--list-box__field[aria-expanded=true]{border-width:0}.bx--list-box.bx--list-box--inline.bx--list-box--disabled:hover{background-color:rgba(0,0,0,0)}.bx--list-box.bx--list-box--inline.bx--list-box--expanded:hover{background-color:#fff}.bx--list-box.bx--list-box--inline .bx--list-box__field{padding:0 2rem 0 .5rem}.bx--list-box.bx--list-box--inline .bx--list-box__menu-icon{right:.5rem}.bx--list-box.bx--list-box--inline .bx--list-box__invalid-icon{right:2rem}.bx--list-box--inline .bx--list-box__label{color:#161616}.bx--list-box--inline .bx--list-box__field{height:100%}.bx--dropdown--inline .bx--list-box__field{max-width:30rem}.bx--dropdown--inline .bx--list-box__menu{min-width:18rem;max-width:30rem}.bx--list-box__field{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;position:relative;display:inline-flex;overflow:hidden;height:calc(100% + 1px);align-items:center;padding:0 3rem 0 1rem;cursor:pointer;outline:none;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.bx--list-box__field::-moz-focus-inner{border:0}.bx--list-box__field:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--list-box__field:focus{outline-style:dotted}}.bx--list-box__field[disabled]{color:#c6c6c6;outline:none}.bx--list-box__field .bx--text-input{padding-right:4.5rem}.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input,.bx--list-box--warning .bx--list-box__field .bx--text-input{padding-right:6.125rem}.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input+.bx--list-box__invalid-icon,.bx--list-box--warning .bx--list-box__field .bx--text-input+.bx--list-box__invalid-icon{right:4.125rem}.bx--list-box__field .bx--text-input--empty{padding-right:3rem}.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input--empty,.bx--list-box--warning .bx--list-box__field .bx--text-input--empty{padding-right:4.5rem}.bx--list-box[data-invalid] .bx--list-box__field .bx--text-input--empty+.bx--list-box__invalid-icon,.bx--list-box--warning .bx--list-box__field .bx--text-input--empty+.bx--list-box__invalid-icon{right:2.5rem}.bx--list-box__label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;overflow:hidden;color:#161616;text-overflow:ellipsis;user-select:none;white-space:nowrap}.bx--list-box__menu-icon{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;position:absolute;right:1rem;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;cursor:pointer;outline:none;transition:transform 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--list-box__menu-icon::-moz-focus-inner{border:0}.bx--list-box__menu-icon>svg{fill:#161616}.bx--list-box__menu-icon--open{width:1.5rem;justify-content:center;transform:rotate(180deg)}.bx--list-box__selection{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;position:absolute;top:50%;right:2.5rem;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;cursor:pointer;transform:translateY(-50%);transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);user-select:none}.bx--list-box__selection::-moz-focus-inner{border:0}.bx--list-box__selection:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--list-box__selection:focus{outline-style:dotted}}.bx--list-box__selection:focus:hover{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--list-box__selection:focus:hover{outline-style:dotted}}.bx--list-box__selection>svg{fill:#161616}.bx--list-box--disabled .bx--list-box__selection:focus{outline:none}.bx--list-box__selection--multi{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;position:static;top:auto;display:flex;width:auto;height:1.5rem;align-items:center;justify-content:space-between;padding:.5rem;padding-right:.125rem;margin-right:.625rem;background-color:#393939;border-radius:.75rem;color:#fff;line-height:0;transform:none}.bx--list-box__selection--multi>svg{width:1.25rem;height:1.25rem;padding:.125rem;margin-left:.25rem;fill:#fff}.bx--list-box__selection--multi>svg:hover{background-color:#4c4c4c;border-radius:50%}.bx--list-box--disabled .bx--list-box__selection--multi{background-color:#c6c6c6;color:#f4f4f4}.bx--list-box--disabled .bx--list-box__selection--multi.bx--tag--interactive:hover,.bx--list-box--disabled .bx--list-box__selection--multi .bx--tag__close-icon:hover{background-color:#c6c6c6}.bx--list-box--disabled .bx--list-box__selection--multi>svg{fill:#f4f4f4}.bx--list-box--disabled .bx--list-box__selection--multi>svg:hover{background-color:initial}.bx--list-box__selection--multi:hover{outline:none}.bx--list-box__menu{box-shadow:0 2px 6px rgba(0,0,0,.3);position:absolute;z-index:9100;right:0;left:0;width:100%;background-color:#f4f4f4;overflow-y:auto;transition:max-height 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--list-box__menu:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--list-box__menu:focus{outline-style:dotted}}.bx--list-box .bx--list-box__field[aria-expanded=false]+.bx--list-box__menu{max-height:0}.bx--list-box--expanded .bx--list-box__menu{max-height:13.75rem}.bx--list-box--expanded.bx--list-box--xl .bx--list-box__menu,.bx--list-box--expanded.bx--list-box--lg .bx--list-box__menu{max-height:16.5rem}.bx--list-box--expanded.bx--list-box--sm .bx--list-box__menu{max-height:11rem}.bx--list-box__menu-item{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:relative;height:2.5rem;color:#525252;cursor:pointer;transition:background 70ms cubic-bezier(0.2, 0, 0.38, 0.9);user-select:none}.bx--list-box__menu-item:hover{background-color:#e5e5e5}.bx--list-box__menu-item:active{background-color:#e0e0e0}.bx--list-box--light .bx--list-box__menu-item:hover{background-color:#e5e5e5}.bx--list-box--sm .bx--list-box__menu-item{height:2rem}.bx--list-box--xl .bx--list-box__menu-item,.bx--list-box--lg .bx--list-box__menu-item{height:3rem}.bx--list-box--disabled .bx--list-box__menu-item:hover{background-color:rgba(0,0,0,0)}.bx--list-box--light .bx--list-box__menu-item:active{background-color:#e0e0e0}.bx--list-box--disabled .bx--list-box__menu-item__option:hover{border-top-color:#e0e0e0}.bx--list-box__menu-item:first-of-type .bx--list-box__menu-item__option{border-top-color:rgba(0,0,0,0)}.bx--list-box__menu-item:hover .bx--list-box__menu-item__option{color:#161616}.bx--list-box__menu-item:hover+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:rgba(0,0,0,0)}.bx--list-box--disabled .bx--list-box__menu-item:hover+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box__menu-item__option{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:block;overflow:hidden;height:2.5rem;padding:.6875rem 0;padding-right:1.5rem;border-top:1px solid rgba(0,0,0,0);border-top-color:#e0e0e0;border-bottom:1px solid rgba(0,0,0,0);margin:0 1rem;color:#525252;font-weight:normal;line-height:1rem;text-decoration:none;text-overflow:ellipsis;transition:border-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);white-space:nowrap}.bx--list-box__menu-item__option:focus{outline:2px solid #0f62fe;outline-offset:-2px;padding:.6875rem 1rem;border-color:rgba(0,0,0,0);margin:0}@media screen and (prefers-contrast){.bx--list-box__menu-item__option:focus{outline-style:dotted}}.bx--list-box__menu-item__option:hover{border-color:rgba(0,0,0,0);color:#161616}.bx--list-box--sm .bx--list-box__menu-item__option{height:2rem;padding-top:.4375rem;padding-bottom:.4375rem}.bx--list-box--xl .bx--list-box__menu-item__option,.bx--list-box--lg .bx--list-box__menu-item__option{height:3rem;padding-top:.9375rem;padding-bottom:.9375rem}.bx--list-box--disabled .bx--list-box__menu-item:hover .bx--list-box__menu-item__option,.bx--list-box--disabled .bx--list-box__menu-item__option{color:#c6c6c6}.bx--list-box__menu-item[disabled],.bx--list-box__menu-item[disabled] *,.bx--list-box__menu-item[disabled] .bx--list-box__menu-item__option,.bx--list-box__menu-item[disabled]:hover{color:#c6c6c6;cursor:not-allowed;outline:none}.bx--list-box__menu-item[disabled]:hover{background-color:revert}.bx--list-box__menu-item[disabled] .bx--checkbox-label::before{border-color:#c6c6c6}.bx--list-box__menu-item[disabled] .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box__menu-item[disabled]:hover+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:#e0e0e0}.bx--list-box.bx--list-box--inline .bx--list-box__menu-item__option{margin:0 .5rem}.bx--list-box.bx--list-box--inline .bx--list-box__menu-item__option:focus{padding-right:.5rem;padding-left:.5rem;margin:0}.bx--list-box__menu-item--highlighted{border-color:rgba(0,0,0,0);background-color:#e5e5e5;color:#161616}.bx--list-box__menu-item--highlighted .bx--list-box__menu-item__option,.bx--list-box__menu-item--highlighted+.bx--list-box__menu-item .bx--list-box__menu-item__option{border-top-color:rgba(0,0,0,0)}.bx--list-box__menu-item--highlighted .bx--list-box__menu-item__option{color:#161616}.bx--list-box__menu-item--active{border-bottom-color:#e0e0e0;background-color:#e0e0e0;color:#161616}.bx--list-box--light .bx--list-box__menu-item--active{border-bottom-color:#e0e0e0;background-color:#e0e0e0}.bx--list-box__menu-item--active:hover,.bx--list-box__menu-item--active.bx--list-box__menu-item--highlighted{border-bottom-color:#cacaca;background-color:#cacaca}.bx--list-box__menu-item--active .bx--list-box__menu-item__option{color:#161616}.bx--list-box__menu-item--active+.bx--list-box__menu-item>.bx--list-box__menu-item__option{border-top-color:rgba(0,0,0,0)}.bx--list-box__menu-item__selected-icon{position:absolute;top:50%;right:1rem;display:none;fill:#161616;transform:translateY(-50%)}.bx--list-box--inline .bx--list-box__menu-item__selected-icon{right:.5rem}.bx--list-box__menu-item--active .bx--list-box__menu-item__selected-icon{display:block}.bx--list-box__menu-item .bx--checkbox-label{width:100%}.bx--list-box__menu-item .bx--checkbox-label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--list-box--up .bx--list-box__menu{bottom:2.5rem}.bx--list-box--up.bx--dropdown--sm .bx--list-box__menu,.bx--list-box--up.bx--list-box--sm .bx--list-box__menu,.bx--list-box--up .bx--list-box--sm .bx--list-box__menu{bottom:2rem}.bx--list-box--up.bx--dropdown--xl .bx--list-box__menu,.bx--list-box--up.bx--list-box--xl .bx--list-box__menu,.bx--list-box--up.bx--dropdown--lg .bx--list-box__menu,.bx--list-box--up.bx--list-box--lg .bx--list-box__menu,.bx--list-box--up .bx--list-box--lg .bx--list-box__menu{bottom:3rem}.bx--list-box input[role=combobox],.bx--list-box input[type=text]{min-width:0;background-color:inherit}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--list-box__field,.bx--list-box__menu,.bx--multi-select .bx--tag--filter{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--list-box__field:focus,.bx--multi-select .bx--tag__close-icon:focus,.bx--list-box__menu-item--highlighted .bx--list-box__menu-item__option{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--list-box__menu-icon>svg,.bx--list-box__selection>svg,.bx--list-box__selection--multi>svg{fill:ButtonText}}.bx--combo-box:hover{background-color:#f4f4f4}.bx--combo-box.bx--list-box--light:hover{background-color:#fff}.bx--combo-box .bx--text-input::-ms-clear{display:none}.bx--combo-box.bx--list-box--expanded .bx--text-input{border-bottom-color:#e0e0e0}.bx--combo-box .bx--list-box__field,.bx--combo-box.bx--list-box[data-invalid] .bx--list-box__field,.bx--combo-box.bx--list-box--warning .bx--list-box__field,.bx--combo-box.bx--list-box--disabled.bx--list-box[data-invalid] .bx--list-box__field,.bx--combo-box.bx--list-box--disabled.bx--list-box--warning .bx--list-box__field{padding:0}.bx--content-switcher{display:flex;width:100%;height:2.5rem;justify-content:space-evenly}.bx--content-switcher--sm{height:2rem}.bx--content-switcher--xl,.bx--content-switcher--lg{height:3rem}.bx--content-switcher-btn{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:relative;display:inline-flex;overflow:hidden;width:100%;align-items:center;padding:.5rem 1rem;border:none;border-top:.0625rem solid #161616;border-bottom:.0625rem solid #161616;margin:0;background-color:rgba(0,0,0,0);color:#525252;text-align:left;text-decoration:none;transition:all 150ms cubic-bezier(0.2, 0, 0.38, 0.9);white-space:nowrap}.bx--content-switcher-btn::after{position:absolute;top:0;left:0;display:block;width:100%;height:100%;background-color:#161616;content:\"\";transform:scaleY(0);transform-origin:bottom;transition:all 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(prefers-reduced-motion: reduce){.bx--content-switcher-btn::after{transition:none}}.bx--content-switcher-btn:disabled::after{display:none}.bx--content-switcher-btn:focus{z-index:3;border-color:#0f62fe;box-shadow:inset 0 0 0 2px #0f62fe,inset 0 0 0 3px #fff}.bx--content-switcher-btn:focus::after{clip-path:inset(3px 3px 3px 3px)}.bx--content-switcher-btn:hover{color:#161616;cursor:pointer}.bx--content-switcher-btn:hover,.bx--content-switcher-btn:active{z-index:3;background-color:#e5e5e5;color:#161616}.bx--content-switcher-btn:disabled{border-color:#f4f4f4;background-color:rgba(0,0,0,0);color:#c6c6c6}.bx--content-switcher-btn:disabled:hover{cursor:not-allowed}.bx--content-switcher-btn:disabled:first-child,.bx--content-switcher-btn:disabled:last-child{border-color:#f4f4f4}.bx--content-switcher-btn:first-child{border-left:.0625rem solid #161616;border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.bx--content-switcher-btn:last-child{border-right:.0625rem solid #161616;border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.bx--content-switcher--selected,.bx--content-switcher--selected:first-child,.bx--content-switcher--selected:last-child{border:0}.bx--content-switcher-btn::before{position:absolute;z-index:2;left:0;display:block;width:.0625rem;height:1rem;background-color:#e0e0e0;content:\"\"}.bx--content-switcher-btn:first-of-type::before{display:none}.bx--content-switcher-btn:focus::before,.bx--content-switcher-btn:focus+.bx--content-switcher-btn::before,.bx--content-switcher-btn:hover::before,.bx--content-switcher-btn:hover+.bx--content-switcher-btn::before,.bx--content-switcher--selected::before,.bx--content-switcher--selected+.bx--content-switcher-btn::before{background-color:rgba(0,0,0,0)}.bx--content-switcher-btn:disabled::before,.bx--content-switcher-btn:disabled:hover+.bx--content-switcher-btn:disabled::before{background-color:#f4f4f4}.bx--content-switcher-btn.bx--content-switcher--selected:disabled+.bx--content-switcher-btn::before,.bx--content-switcher-btn.bx--content-switcher--selected:disabled:hover+.bx--content-switcher-btn::before{background-color:rgba(0,0,0,0)}.bx--content-switcher__icon{fill:#525252;transition:fill 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--content-switcher__icon+span{margin-left:.5rem}.bx--content-switcher__label{z-index:1;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.bx--content-switcher-btn:hover .bx--content-switcher__icon,.bx--content-switcher-btn:focus .bx--content-switcher__icon{fill:#161616}.bx--content-switcher-btn.bx--content-switcher--selected{z-index:3;background-color:#161616;color:#fff}.bx--content-switcher-btn.bx--content-switcher--selected::after{transform:scaleY(1)}.bx--content-switcher-btn.bx--content-switcher--selected:disabled{background-color:#8d8d8d;color:#c6c6c6}.bx--content-switcher-btn.bx--content-switcher--selected .bx--content-switcher__icon{fill:#fff}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--content-switcher-btn:focus{color:Highlight;outline:1px solid Highlight}}@keyframes hide-feedback{0%{opacity:1;visibility:inherit}100%{opacity:0;visibility:hidden}}@keyframes show-feedback{0%{opacity:0;visibility:hidden}100%{opacity:1;visibility:inherit}}.bx--btn--copy{position:relative;overflow:visible}.bx--btn--copy .bx--btn__icon{margin-left:.3125rem}.bx--btn--copy__feedback{position:absolute;top:1.2rem;left:50%;display:none}.bx--btn--copy__feedback::before{box-shadow:0 2px 6px rgba(0,0,0,.3);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;z-index:2;top:1.1rem;padding:.25rem;border-radius:4px;color:#fff;content:attr(data-feedback);font-weight:400;pointer-events:none;transform:translateX(-50%);white-space:nowrap}.bx--btn--copy__feedback::after{z-index:1;top:.85rem;left:-0.3rem;width:.6rem;height:.6rem;border-right:1px solid #393939;border-bottom:1px solid #393939;content:\"\";transform:rotate(-135deg)}.bx--btn--copy__feedback::before,.bx--btn--copy__feedback::after{position:absolute;display:block;background:#393939}.bx--btn--copy__feedback--displayed{display:inline-flex}.bx--copy-btn{position:relative;display:flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;padding:0;border:none;background-color:#f4f4f4;cursor:pointer}.bx--copy-btn:hover{background-color:#e5e5e5}.bx--copy-btn:active{background-color:#c6c6c6}.bx--copy-btn::before{position:absolute;z-index:6000;width:0;height:0;border-style:solid;content:\"\";display:none}.bx--copy-btn .bx--copy-btn__feedback{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:none;overflow:visible;box-sizing:content-box;margin:auto;clip:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--copy-btn .bx--copy-btn__feedback{width:auto}}@supports(-ms-accelerator: true){.bx--copy-btn .bx--copy-btn__feedback{width:auto}}@supports(-ms-ime-align: auto){.bx--copy-btn .bx--copy-btn__feedback{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--copy-btn .bx--copy-btn__feedback{border:1px solid rgba(0,0,0,0)}}.bx--copy-btn .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--copy-btn::before,.bx--copy-btn::after,.bx--copy-btn .bx--assistive-text,.bx--copy-btn+.bx--assistive-text{bottom:0;left:50%}.bx--copy-btn::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--copy-btn::after,.bx--copy-btn .bx--assistive-text,.bx--copy-btn+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--copy-btn:focus{outline:2px solid #0f62fe;outline-offset:-2px;outline-color:#0f62fe}@media screen and (prefers-contrast){.bx--copy-btn:focus{outline-style:dotted}}.bx--copy-btn.bx--copy-btn--animating::before,.bx--copy-btn.bx--copy-btn--animating .bx--copy-btn__feedback{display:block}.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-out::before,.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-out .bx--copy-btn__feedback{animation:110ms cubic-bezier(0.2, 0, 0.38, 0.9) hide-feedback}.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-in::before,.bx--copy-btn.bx--copy-btn--animating.bx--copy-btn--fade-in .bx--copy-btn__feedback{animation:110ms cubic-bezier(0.2, 0, 0.38, 0.9) show-feedback}.bx--copy{font-size:0}.bx--table-toolbar{position:relative;display:flex;width:100%;min-height:3rem;background-color:#f4f4f4}.bx--toolbar-content{display:flex;width:100%;height:3rem;justify-content:flex-end;transform:translate3d(0, 0, 0);transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9),clip-path 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--batch-actions~.bx--toolbar-content{clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%)}.bx--toolbar-content .bx--search .bx--search-input{background-color:rgba(0,0,0,0)}.bx--batch-actions~.bx--toolbar-search-container{display:flex;align-items:center;opacity:1;transition:opacity 110ms}.bx--toolbar-content .bx--toolbar-search-container-expandable{position:relative;width:3rem;height:3rem;box-shadow:none;cursor:pointer;transition:width 240ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--toolbar-content .bx--toolbar-search-container-expandable:hover{background-color:#e5e5e5}.bx--toolbar-search-container-expandable .bx--search-input{height:100%;cursor:pointer;opacity:0}.bx--toolbar-search-container-expandable:not(.bx--toolbar-search-container-active) .bx--search-input{padding:0}.bx--toolbar-search-container-expandable .bx--search-magnifier-icon{left:0;width:3rem;height:3rem;padding:1rem;fill:#161616}.bx--toolbar-search-container-expandable.bx--search--disabled .bx--search-magnifier-icon{background-color:#f4f4f4;cursor:not-allowed;transition:background-color none}.bx--toolbar-search-container-disabled .bx--search-input{cursor:not-allowed}.bx--toolbar-search-container-expandable.bx--search .bx--label{visibility:hidden}.bx--toolbar-search-container-expandable.bx--search .bx--search-close{width:3rem;height:3rem}.bx--toolbar-search-container-expandable.bx--search .bx--search-close::before{top:.125rem;height:calc(100% - 0.25rem);background-color:#e5e5e5}.bx--toolbar-search-container-expandable.bx--search .bx--search-close:focus::before{background-color:#0f62fe}.bx--toolbar-search-container-active.bx--search{width:100%}.bx--toolbar-search-container-active .bx--search-input{opacity:1}.bx--toolbar-search-container-active .bx--label,.bx--toolbar-search-container-active .bx--search-input{padding:0 3rem;cursor:text}.bx--toolbar-search-container-active .bx--search-input:focus+.bx--search-close{border:none;box-shadow:none;outline:none}.bx--toolbar-search-container-active .bx--search-input:not(:placeholder-shown){border:none;background-color:#e5e5e5}.bx--toolbar-search-container-active .bx--search-magnifier-icon:focus,.bx--toolbar-search-container-active .bx--search-magnifier-icon:active,.bx--toolbar-search-container-active .bx--search-magnifier-icon:hover{border:none;background-color:rgba(0,0,0,0);outline:none}.bx--toolbar-search-container-persistent .bx--search-close,.bx--toolbar-search-container-persistent .bx--search-close:hover,.bx--toolbar-search-container-active .bx--search-close,.bx--toolbar-search-container-active .bx--search-close:hover{border:none;background-color:rgba(0,0,0,0)}.bx--toolbar-search-container-persistent .bx--search-close::before{display:none}.bx--overflow-menu.bx--toolbar-action{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;display:flex;width:3rem;height:3rem;padding:1rem;cursor:pointer;transition:background 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--overflow-menu.bx--toolbar-action::-moz-focus-inner{border:0}.bx--toolbar-action{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;display:flex;width:3rem;height:3rem;cursor:pointer;transition:background 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--toolbar-action::-moz-focus-inner{border:0}.bx--toolbar-action:hover:not([disabled]){background-color:#e5e5e5}.bx--toolbar-action:hover[aria-expanded=true]{background-color:#f4f4f4}.bx--toolbar-action[disabled]{cursor:not-allowed}.bx--toolbar-action[disabled] .bx--toolbar-action__icon{cursor:not-allowed;fill:#c6c6c6}.bx--toolbar-action:focus:not([disabled]),.bx--toolbar-action:active:not([disabled]){outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--toolbar-action:focus:not([disabled]),.bx--toolbar-action:active:not([disabled]){outline-style:dotted}}.bx--toolbar-action:focus:not([disabled]).bx--toolbar-search-container-expandable,.bx--toolbar-action:active:not([disabled]).bx--toolbar-search-container-expandable{outline:none}.bx--toolbar-action~.bx--btn{max-width:none;margin:0;white-space:nowrap}.bx--overflow-menu--data-table{height:3rem}.bx--toolbar-action__icon{width:auto;max-width:1rem;height:1rem;fill:#161616}.bx--toolbar-search-container-persistent{position:relative;width:100%;height:3rem;opacity:1}.bx--toolbar-search-container-persistent+.bx--toolbar-content{position:relative;width:auto}.bx--toolbar-search-container-persistent .bx--search{position:initial}.bx--toolbar-search-container-persistent .bx--search-magnifier-icon{left:1rem}.bx--toolbar-search-container-persistent .bx--search-input{height:3rem;padding:0 3rem;border:none}.bx--toolbar-search-container-persistent .bx--search-input:focus:not([disabled]){outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--toolbar-search-container-persistent .bx--search-input:focus:not([disabled]){outline-style:dotted}}.bx--toolbar-search-container-persistent .bx--search-input:hover:not([disabled]){background-color:#e5e5e5}.bx--toolbar-search-container-persistent .bx--search-input:active:not([disabled]),.bx--toolbar-search-container-persistent .bx--search-input:not(:placeholder-shown){background-color:#e5e5e5}.bx--toolbar-search-container-persistent .bx--search-close{width:3rem;height:3rem}.bx--batch-actions--active~.bx--toolbar-search-container,.bx--batch-actions--active~.bx--toolbar-content{clip-path:polygon(0 0, 100% 0, 100% 0, 0 0);transform:translate3d(0, 48px, 0);transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9),clip-path 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--batch-actions{position:absolute;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:space-between;background-color:#0f62fe;clip-path:polygon(0 0, 100% 0, 100% 0, 0 0);pointer-events:none;transform:translate3d(0, 48px, 0);transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9),clip-path 110ms cubic-bezier(0.2, 0, 0.38, 0.9),opacity 110ms cubic-bezier(0.2, 0, 0.38, 0.9);will-change:transform}.bx--batch-actions:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--batch-actions:focus{outline-style:dotted}}.bx--batch-actions--active{overflow:auto hidden;clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);pointer-events:all;transform:translate3d(0, 0, 0)}.bx--action-list{display:flex;align-items:center}.bx--action-list .bx--btn{padding:calc(.875rem - 3px) 16px;color:#fff;white-space:nowrap}.bx--action-list .bx--btn:disabled{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#fff;opacity:.5}.bx--action-list .bx--btn .bx--btn__icon{position:static;margin-left:.5rem;fill:#fff}.bx--action-list .bx--btn .bx--btn__icon .st0{fill:none}.bx--batch-download{padding:.0625rem}.bx--action-list .bx--btn--primary:focus::before,.bx--action-list .bx--btn--primary::before,.bx--action-list .bx--btn--primary:focus::after,.bx--action-list .bx--btn--primary::after{display:none}.bx--action-list .bx--btn--primary:focus{outline:2px solid #f4f4f4;outline-offset:-0.125rem}.bx--action-list .bx--btn--primary:nth-child(3):hover+.bx--btn--primary.bx--batch-summary__cancel::before,.bx--action-list .bx--btn--primary:nth-child(3):focus+.bx--btn--primary.bx--batch-summary__cancel::before{opacity:0}.bx--btn--primary.bx--batch-summary__cancel::before{position:absolute;top:.9375rem;left:0;display:block;width:.0625rem;height:1rem;border:none;background-color:#fff;content:\"\";opacity:1;transition:opacity 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--btn--primary.bx--batch-summary__cancel:hover::before{opacity:0;transition:opacity 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--batch-summary{position:sticky;z-index:100000;left:0;display:flex;min-height:3rem;align-items:center;padding:0 1rem;background-color:#0f62fe;color:#fff}.bx--batch-summary__scroll{box-shadow:.5px 0 .2px #0043ce}.bx--batch-summary__para{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}.bx--table-toolbar--small,.bx--table-toolbar--sm{height:2rem;min-height:2rem}.bx--table-toolbar--small .bx--toolbar-search-container-expandable,.bx--table-toolbar--small .bx--toolbar-search-container-persistent,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent{height:2rem}.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search-input,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-input,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search-input,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-input{height:2rem}.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search-close,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-close,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search-close,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-close{width:2rem;height:2rem}.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search-magnifier-icon,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-magnifier-icon,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search-magnifier-icon,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-magnifier-icon{width:2rem;height:2rem;padding:.5rem}.bx--table-toolbar--small .bx--toolbar-action.bx--toolbar-search-container-persistent,.bx--table-toolbar--sm .bx--toolbar-action.bx--toolbar-search-container-persistent{width:100%}.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon,.bx--table-toolbar--small .bx--toolbar-search-container-persistent .bx--search-magnifier-icon,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon,.bx--table-toolbar--sm .bx--toolbar-search-container-persistent .bx--search-magnifier-icon{left:.5rem}.bx--table-toolbar--small .bx--toolbar-search-container-expandable,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable{width:2rem}.bx--table-toolbar--small .bx--toolbar-search-container-expandable .bx--search .bx--search-input,.bx--table-toolbar--sm .bx--toolbar-search-container-expandable .bx--search .bx--search-input{padding:0 3rem}.bx--table-toolbar--small .bx--toolbar-search-container-active,.bx--table-toolbar--sm .bx--toolbar-search-container-active{flex:auto;transition:flex 175ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input{visibility:inherit}.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:focus,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:focus{outline:2px solid #0f62fe;outline-offset:-2px;background-color:#e5e5e5}@media screen and (prefers-contrast){.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:focus,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:focus{outline-style:dotted}}.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:active,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-input:not(:placeholder-shown),.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:active,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-input:not(:placeholder-shown){background-color:#e5e5e5}.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon:focus,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon:active,.bx--table-toolbar--small .bx--toolbar-search-container-active .bx--search-magnifier-icon:hover,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon:focus,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon:active,.bx--table-toolbar--sm .bx--toolbar-search-container-active .bx--search-magnifier-icon:hover{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;background-color:rgba(0,0,0,0)}.bx--table-toolbar--small .bx--overflow-menu.bx--toolbar-action,.bx--table-toolbar--sm .bx--overflow-menu.bx--toolbar-action{width:2rem;min-width:2rem;height:2rem}.bx--table-toolbar--small .bx--toolbar-content,.bx--table-toolbar--sm .bx--toolbar-content{height:2rem}.bx--search--disabled .bx--search-magnifier-icon:hover{background-color:rgba(0,0,0,0)}.bx--table-toolbar--small .bx--batch-actions .bx--action-list,.bx--table-toolbar--sm .bx--batch-actions .bx--action-list{height:2rem}.bx--table-toolbar--small .bx--toolbar-action,.bx--table-toolbar--sm .bx--toolbar-action{width:2rem;height:2rem;padding:.5rem 0}.bx--table-toolbar--small .bx--btn--primary,.bx--table-toolbar--sm .bx--btn--primary{height:2rem;min-height:auto;padding-top:calc(.375rem - 3px);padding-bottom:calc(.375rem - 3px)}.bx--table-toolbar--small .bx--btn--primary.bx--batch-summary__cancel::before,.bx--table-toolbar--sm .bx--btn--primary.bx--batch-summary__cancel::before{top:.5rem}.bx--table-toolbar--small .bx--toolbar-action~.bx--btn,.bx--table-toolbar--sm .bx--toolbar-action~.bx--btn{overflow:hidden;height:2rem}.bx--table-toolbar--small .bx--batch-summary,.bx--table-toolbar--sm .bx--batch-summary{min-height:2rem}.bx--data-table-container{position:relative;padding-top:.125rem}.bx--data-table-content{overflow-x:auto}.bx--data-table-header{padding:1rem 0 1.5rem 1rem;background:#f4f4f4}.bx--data-table-header__title{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#161616}.bx--data-table-header__description{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;color:#525252}.bx--data-table{width:100%;border-collapse:collapse;border-spacing:0}.bx--data-table thead{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;background-color:#e0e0e0}.bx--data-table tbody{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;width:100%;background-color:#f4f4f4}.bx--data-table tr{width:100%;height:3rem;border:none}.bx--data-table tbody tr,.bx--data-table tbody tr td,.bx--data-table tbody tr th{transition:background-color 70ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--data-table tbody tr:hover{background:#e5e5e5}.bx--data-table tbody tr:hover td,.bx--data-table tbody tr:hover th{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background:#e5e5e5;color:#161616}.bx--data-table tr:hover .bx--link{color:#0043ce}.bx--data-table tr:hover .bx--link--disabled{color:#c6c6c6}.bx--data-table th,.bx--data-table td{text-align:left;vertical-align:middle}.bx--data-table th[align=right],.bx--data-table td[align=right]{text-align:right}.bx--data-table th[align=center],.bx--data-table td[align=center]{text-align:center}.bx--data-table th{padding-right:1rem;padding-left:1rem;background-color:#e0e0e0;color:#161616}.bx--data-table th:last-of-type{position:static;width:auto}.bx--data-table td,.bx--data-table tbody th{padding-right:1rem;padding-left:1rem;border-top:1px solid #f4f4f4;border-bottom:1px solid #e0e0e0;background:#f4f4f4;color:#525252}.bx--data-table td+td:first-of-type,.bx--data-table tbody th+td:first-of-type{padding-left:.75rem}@supports(-moz-appearance: none){.bx--data-table td{background-clip:padding-box}}.bx--data-table .bx--list-box input[role=combobox],.bx--data-table .bx--list-box input[type=text],.bx--data-table .bx--dropdown,.bx--data-table .bx--list-box,.bx--data-table .bx--number input[type=number],.bx--data-table .bx--number__control-btn::before,.bx--data-table .bx--number__control-btn::after,.bx--data-table .bx--text-input,.bx--data-table .bx--select-input{background-color:#fff}.bx--data-table td.bx--table-column-menu .bx--overflow-menu[aria-expanded=false]:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--data-table td.bx--table-column-menu .bx--overflow-menu[aria-expanded=false]:focus{outline-style:dotted}}.bx--data-table td.bx--table-column-menu .bx--overflow-menu[aria-expanded=true]:focus{outline:none}@media screen and (hover: hover),(-ms-high-contrast: active),(-ms-high-contrast: none){.bx--data-table td.bx--table-column-menu .bx--overflow-menu .bx--overflow-menu__icon{opacity:0}}.bx--data-table td.bx--table-column-menu .bx--overflow-menu.bx--overflow-menu--open .bx--overflow-menu__icon{opacity:1}.bx--data-table.bx--data-table--visible-overflow-menu td.bx--table-column-menu .bx--overflow-menu .bx--overflow-menu__icon,.bx--data-table td.bx--table-column-menu .bx--overflow-menu:hover .bx--overflow-menu__icon,.bx--data-table td.bx--table-column-menu .bx--overflow-menu:focus .bx--overflow-menu__icon,.bx--data-table tr:hover td.bx--table-column-menu .bx--overflow-menu .bx--overflow-menu__icon{opacity:1}.bx--table-row--menu-option .bx--overflow-menu-options__btn .bx--overflow-menu-options__option-content svg{position:relative;top:.1875rem;margin-right:.5rem}.bx--data-table .bx--overflow-menu:hover,.bx--data-table .bx--overflow-menu__trigger:hover{background-color:#cacaca}.bx--data-table--selected .bx--overflow-menu:hover,.bx--data-table--selected .bx--overflow-menu__trigger:hover{background-color:#e5e5e5}.bx--data-table--selected .bx--link:not(.bx--link--disabled){color:#0043ce}.bx--data-table--compact td.bx--table-column-menu,.bx--data-table--xs td.bx--table-column-menu,.bx--data-table--short td.bx--table-column-menu,.bx--data-table--sm td.bx--table-column-menu{height:1.5rem;padding-top:0;padding-bottom:0}.bx--data-table--short td.bx--table-column-menu,.bx--data-table--sm td.bx--table-column-menu{height:2rem}.bx--data-table--md td.bx--table-column-menu{height:2.5rem}.bx--data-table--tall .bx--table-column-menu,.bx--data-table--xl .bx--table-column-menu{padding-top:.5rem}.bx--data-table--zebra tbody tr:not(.bx--parent-row):nth-child(odd) td{border-bottom:1px solid #f4f4f4}.bx--data-table--zebra tbody tr:not(.bx--parent-row):nth-child(even) td{border-top:1px solid #fff;border-bottom:1px solid #fff;background-color:#fff}.bx--data-table--zebra tbody tr:not(.bx--parent-row):hover td{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background-color:#e5e5e5}.bx--table-column-checkbox .bx--checkbox-label{padding-left:0}.bx--data-table th.bx--table-column-checkbox{position:static;width:2rem;background:#e0e0e0;transition:background-color 70ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--data-table .bx--table-column-checkbox .bx--checkbox:focus+.bx--checkbox-label::before{outline-offset:.375rem}.bx--data-table--compact .bx--table-column-checkbox .bx--checkbox:focus+.bx--checkbox-label::before,.bx--data-table--xs .bx--table-column-checkbox .bx--checkbox:focus+.bx--checkbox-label::before{outline-offset:.125rem}.bx--data-table thead th.bx--table-column-checkbox,.bx--data-table tbody td.bx--table-column-checkbox,.bx--data-table thead th.bx--table-expand,.bx--data-table tbody td.bx--table-expand{min-width:0}.bx--data-table thead th.bx--table-column-checkbox,.bx--data-table tbody td.bx--table-column-checkbox{width:2.5rem;padding-right:.25rem;padding-left:1rem}.bx--data-table thead th.bx--table-expand,.bx--data-table tbody td.bx--table-expand{width:2rem;height:2rem}.bx--data-table--compact thead th.bx--table-expand,.bx--data-table--compact tbody td.bx--table-expand,.bx--data-table--xs thead th.bx--table-expand,.bx--data-table--xs tbody td.bx--table-expand{width:1.5rem;height:1.5rem;padding:0 0 0 .5rem}.bx--data-table--short thead th.bx--table-expand,.bx--data-table--short tbody td.bx--table-expand,.bx--data-table--sm thead th.bx--table-expand,.bx--data-table--sm tbody td.bx--table-expand{width:2rem;height:2rem;padding:0;padding-left:.5rem}.bx--data-table--md thead th.bx--table-expand,.bx--data-table--md tbody td.bx--table-expand{width:2.5rem;height:2.5rem;padding:.25rem 0 .25rem .5rem}.bx--data-table--tall thead th.bx--table-expand,.bx--data-table--tall tbody td.bx--table-expand,.bx--data-table--xl thead th.bx--table-expand,.bx--data-table--xl tbody td.bx--table-expand{height:4rem;padding-top:.625rem;padding-bottom:1.375rem}.bx--data-table--tall .bx--table-column-checkbox,.bx--data-table--xl .bx--table-column-checkbox{padding-top:.8125rem}.bx--data-table--tall .bx--table-column-radio,.bx--data-table--xl .bx--table-column-radio{padding-top:1rem}tr.bx--data-table--selected:hover .bx--radio-button[disabled]+.bx--radio-button__label,tr.bx--data-table--selected:hover .bx--checkbox[disabled]+.bx--checkbox-label,tr.bx--data-table--selected:hover .bx--link--disabled{color:#8d8d8d}tr.bx--data-table--selected:hover .bx--radio-button[disabled]+.bx--radio-button__label .bx--radio-button__appearance,tr.bx--data-table--selected:hover .bx--checkbox[disabled]+.bx--checkbox-label:before{border-color:#8d8d8d}.bx--table-column-radio{width:48px}.bx--table-column-radio .bx--radio-button__appearance{margin-right:-0.125rem}.bx--data-table--zebra tbody tr:nth-child(odd).bx--data-table--selected td,tr.bx--data-table--selected td{border-top:1px solid #e0e0e0;border-bottom:1px solid #c6c6c6;background-color:#e0e0e0;color:#161616}.bx--data-table--zebra tbody tr:first-of-type:nth-child(odd).bx--data-table--selected td,tr.bx--data-table--selected:first-of-type td{border-top:1px solid #c6c6c6}.bx--data-table--zebra tbody tr:last-of-type:nth-child(odd).bx--data-table--selected td,.bx--data-table--zebra tbody tr:last-of-type:nth-child(even).bx--data-table--selected td,tr.bx--data-table--selected:last-of-type td{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.bx--data-table--zebra tbody tr:nth-child(even).bx--data-table--selected td{border-bottom:1px solid #c6c6c6}.bx--data-table--zebra tbody tr:nth-child(even).bx--data-table--selected:hover td{border-bottom:1px solid #cacaca}.bx--data-table--zebra tbody tr:nth-child(odd).bx--data-table--selected:hover td,.bx--data-table tbody .bx--data-table--selected:hover td{border-top:1px solid #cacaca;border-bottom:1px solid #cacaca;background:#cacaca;color:#161616}.bx--data-table--selected .bx--overflow-menu .bx--overflow-menu__icon{opacity:1}.bx--data-table--compact thead tr,.bx--data-table--compact tbody tr,.bx--data-table--compact tbody tr th{height:1.5rem}.bx--data-table--compact .bx--table-header-label{padding-top:.125rem;padding-bottom:.125rem}.bx--data-table--compact td,.bx--data-table--compact tbody tr th{padding-top:.125rem;padding-bottom:.125rem}.bx--data-table--compact .bx--overflow-menu{width:2rem;height:100%}.bx--data-table.bx--data-table--compact .bx--table-column-checkbox{padding-top:0;padding-bottom:0}.bx--data-table.bx--data-table--compact .bx--table-column-checkbox .bx--checkbox-label{height:1.4375rem;min-height:1.4375rem}.bx--data-table--xs thead tr,.bx--data-table--xs tbody tr,.bx--data-table--xs tbody tr th{height:1.5rem}.bx--data-table--xs .bx--table-header-label{padding-top:.125rem;padding-bottom:.125rem}.bx--data-table--xs td,.bx--data-table--xs tbody tr th{padding-top:.125rem;padding-bottom:.125rem}.bx--data-table--xs .bx--overflow-menu{width:2rem;height:calc(100% + 1px)}.bx--data-table.bx--data-table--xs .bx--table-column-checkbox{padding-top:0;padding-bottom:0}.bx--data-table.bx--data-table--xs .bx--table-column-checkbox .bx--checkbox-label{height:1.4375rem;min-height:1.4375rem}.bx--data-table--short thead tr,.bx--data-table--short tbody tr,.bx--data-table--short tbody tr th{height:2rem}.bx--data-table--short .bx--table-header-label{padding-top:.4375rem;padding-bottom:.4375rem}.bx--data-table--short td,.bx--data-table--short tbody tr th{padding-top:.4375rem;padding-bottom:.375rem}.bx--data-table.bx--data-table--short .bx--table-column-checkbox{padding-top:.1875rem;padding-bottom:.1875rem}.bx--data-table--short .bx--overflow-menu{height:100%}.bx--data-table--sm thead tr,.bx--data-table--sm tbody tr,.bx--data-table--sm tbody tr th{height:2rem}.bx--data-table--sm .bx--table-header-label{padding-top:.4375rem;padding-bottom:.4375rem}.bx--data-table--sm td,.bx--data-table--sm tbody tr th{padding-top:.4375rem;padding-bottom:.375rem}.bx--data-table.bx--data-table--sm .bx--table-column-checkbox{padding-top:.1875rem;padding-bottom:.1875rem}.bx--data-table--sm .bx--overflow-menu{height:calc(100% + 1px)}.bx--data-table--md thead tr,.bx--data-table--md tbody tr,.bx--data-table--md tbody tr th{height:2.5rem}.bx--data-table--md .bx--table-header-label{padding-top:.4375rem;padding-bottom:.4375rem}.bx--data-table--md td,.bx--data-table--md tbody tr th{padding-top:.4375rem;padding-bottom:.375rem}.bx--data-table.bx--data-table--md .bx--table-column-checkbox{padding-top:.1875rem;padding-bottom:.1875rem}.bx--data-table--md .bx--table-column-menu{padding-top:.1875rem;padding-bottom:.1875rem}.bx--data-table--tall thead tr,.bx--data-table--tall tbody tr,.bx--data-table--tall tbody tr th{height:4rem}.bx--data-table--tall .bx--table-header-label{padding-top:1rem;padding-bottom:1rem}.bx--data-table--tall td,.bx--data-table--tall tbody tr th{padding-top:1rem}.bx--data-table--tall th,.bx--data-table--tall td{vertical-align:top}.bx--data-table--tall .bx--data-table--cell-secondary-text{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px}.bx--data-table--xl thead tr,.bx--data-table--xl tbody tr,.bx--data-table--xl tbody tr th{height:4rem}.bx--data-table--xl .bx--table-header-label{padding-top:1rem;padding-bottom:1rem}.bx--data-table--xl td,.bx--data-table--xl tbody tr th{padding-top:1rem}.bx--data-table--xl th,.bx--data-table--xl td{vertical-align:top}.bx--data-table--xl .bx--data-table--cell-secondary-text{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px}.bx--data-table--static{width:auto}.bx--data-table-container--static{width:fit-content}.bx--data-table_inner-container{background-color:#e0e0e0;transform:translateZ(0)}.bx--data-table--sticky-header{display:block;overflow-y:scroll}.bx--data-table--sticky-header thead,.bx--data-table--sticky-header tbody,.bx--data-table--sticky-header tr,.bx--data-table--sticky-header th,.bx--data-table--sticky-header td{display:flex}.bx--data-table--sticky-header thead{position:sticky;z-index:1;top:0;overflow:scroll;width:100%;-ms-overflow-style:none;will-change:transform}.bx--data-table--sticky-header thead tr th{border-bottom:1px solid #c6c6c6}.bx--data-table--sticky-header tbody{flex-direction:column;-ms-overflow-style:none;overflow-x:scroll;will-change:transform}.bx--data-table--sticky-header tr.bx--parent-row.bx--expandable-row{height:auto;min-height:3rem}.bx--data-table--sticky-header tr.bx--expandable-row:not(.bx--parent-row){height:auto}.bx--data-table--sticky-header .bx--table-expand{max-width:3rem}.bx--data-table--sticky-header thead .bx--table-expand{align-items:center}.bx--data-table--sticky-header .bx--parent-row{min-height:3rem}.bx--data-table--sticky-header:not(.bx--data-table--compact):not(.bx--data-table--xs):not(.bx--data-table--tall):not(.bx--data-table--xl):not(.bx--data-table--short):not(.bx--data-table--sm) td:not(.bx--table-column-menu):not(.bx--table-column-checkbox){padding-top:.875rem}.bx--data-table--sticky-header tr.bx--parent-row.bx--expandable-row:hover+tr[data-child-row] td{border-top:1px solid #e5e5e5}.bx--data-table--sticky-header tr.bx--expandable-row:last-of-type{overflow:hidden}.bx--data-table--sticky-header tr.bx--data-table--selected:first-of-type td{border-top:none}.bx--data-table--sticky-header thead th.bx--table-column-checkbox,.bx--data-table--sticky-header tbody tr td.bx--table-column-checkbox{width:2.25rem;min-width:2.25rem;align-items:center}.bx--data-table--sticky-header.bx--data-table--tall thead th.bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--xl thead th.bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--tall td.bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--xl td.bx--table-column-checkbox{align-items:flex-start}.bx--data-table--sticky-header th.bx--table-column-checkbox~th:last-of-type:empty{max-width:4rem}.bx--data-table--sticky-header th:empty:not(.bx--table-expand){max-width:2.25rem}.bx--data-table--sticky-header td.bx--table-column-menu{height:auto;align-items:center;padding-top:0}.bx--data-table--sticky-header thead::-webkit-scrollbar,.bx--data-table--sticky-header tbody::-webkit-scrollbar{display:none}@-moz-document url-prefix(){.bx--data-table--sticky-header thead,.bx--data-table--sticky-header tbody{scrollbar-width:none}}.bx--data-table--sticky-header tbody tr:last-of-type{border-bottom:0}.bx--data-table--sticky-header th:not(.bx--table-column-checkbox):not(.bx--table-column-menu):not(.bx--table-expand-v2):not(.bx--table-column-icon),.bx--data-table--sticky-header td:not(.bx--table-column-checkbox):not(.bx--table-column-menu):not(.bx--table-expand-v2):not(.bx--table-column-icon){width:100%;min-width:0}.bx--data-table--sticky-header.bx--data-table--compact tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xs tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--short tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--sm tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--tall tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xl tr:not(.bx--expandable-row){height:auto}.bx--data-table--sticky-header.bx--data-table--compact tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xs tr:not(.bx--expandable-row){min-height:1.5rem}.bx--data-table--sticky-header.bx--data-table--short tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--sm tr:not(.bx--expandable-row){min-height:2rem}.bx--data-table--sticky-header.bx--data-table--tall tr:not(.bx--expandable-row),.bx--data-table--sticky-header.bx--data-table--xl tr:not(.bx--expandable-row){min-height:4rem}.bx--data-table--sticky-header.bx--data-table--compact tr td.bx--table-expand,.bx--data-table--sticky-header.bx--data-table--xs tr td.bx--table-expand{padding-top:.25rem}.bx--data-table--sticky-header.bx--data-table--short tr td.bx--table-expand,.bx--data-table--sticky-header.bx--data-table--sm tr td.bx--table-expand{padding-top:.5rem}.bx--data-table--sticky-header .bx--table-header-label{display:block;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 10px);padding-top:.9375rem;padding-bottom:1rem;overflow-y:hidden}.bx--data-table--sticky-header.bx--data-table--compact th .bx--table-header-label,.bx--data-table--sticky-header.bx--data-table--xs th .bx--table-header-label{padding-top:.1875rem;padding-bottom:0}.bx--data-table--sticky-header.bx--data-table--short th .bx--table-header-label,.bx--data-table--sticky-header.bx--data-table--sm th .bx--table-header-label{padding-top:.5rem;padding-bottom:0}.bx--data-table--sticky-header.bx--data-table--tall th .bx--table-header-label,.bx--data-table--sticky-header.bx--data-table--xl th .bx--table-header-label{padding-top:1rem}.bx--data-table--sticky-header.bx--data-table--tall th.bx--table-expand,.bx--data-table--sticky-header.bx--data-table--xl th.bx--table-expand{display:flex;align-items:flex-start}.bx--data-table--sticky-header.bx--data-table--compact tr.bx--parent-row .bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--short tr.bx--parent-row .bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--xs tr.bx--parent-row .bx--table-column-checkbox,.bx--data-table--sticky-header.bx--data-table--sm tr.bx--parent-row .bx--table-column-checkbox{align-items:flex-start}.bx--data-table--max-width{max-width:100%}.bx--data-table--sticky-header{max-height:18.75rem}.bx--data-table .bx--form-item.bx--checkbox-wrapper:last-of-type{margin:0}.bx--data-table--short .bx--form-item.bx--checkbox-wrapper:last-of-type,.bx--data-table--compact .bx--form-item.bx--checkbox-wrapper:last-of-type,.bx--data-table--xs .bx--form-item.bx--checkbox-wrapper:last-of-type,.bx--data-table--sm .bx--form-item.bx--checkbox-wrapper:last-of-type{margin:-0.1875rem 0}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--data-table-content{outline:1px solid rgba(0,0,0,0)}}.bx--data-table tr.bx--parent-row:first-of-type td{border-top:1px solid #e0e0e0}.bx--expandable-row--hidden td{width:auto;padding:1rem;border-top:0}tr.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row]{height:0;transition:height 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}tr.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row] td{padding-top:0;padding-bottom:0;border:0;background-color:#e5e5e5;transition:padding 150ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}tr.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row] td .bx--child-row-inner-container{overflow:hidden;max-height:0}tr.bx--parent-row.bx--expandable-row+tr[data-child-row]{transition:height 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}tr.bx--parent-row.bx--expandable-row+tr[data-child-row] td{padding-left:4rem;border-bottom:1px solid #e0e0e0;transition:padding-bottom 110ms cubic-bezier(0.2, 0, 0.38, 0.9),transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}tr.bx--parent-row.bx--expandable-row+tr[data-child-row] td .bx--child-row-inner-container{max-height:100%}.bx--parent-row.bx--expandable-row>td,.bx--parent-row.bx--expandable-row+tr[data-child-row]>td{border-bottom:1px solid #e0e0e0;box-shadow:0 1px #e0e0e0}.bx--parent-row:not(.bx--expandable-row)+tr[data-child-row]>td{box-shadow:none}.bx--parent-row.bx--expandable-row>td:first-of-type{box-shadow:none}tr.bx--parent-row:not(.bx--expandable-row) td,tr.bx--parent-row.bx--expandable-row td,tr.bx--parent-row.bx--expandable-row{transition:height 240ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}tr.bx--parent-row:not(.bx--expandable-row):first-of-type:hover td{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}tr.bx--parent-row.bx--expandable-row:hover td{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;background-color:#e5e5e5;color:#161616}tr.bx--parent-row.bx--expandable-row:hover td:first-of-type{border-bottom:1px solid #e5e5e5}tr.bx--parent-row.bx--expandable-row:hover+tr[data-child-row] td{border-bottom:1px solid #e0e0e0;background-color:#e5e5e5;color:#161616}tr.bx--expandable-row--hover+tr[data-child-row] td{border-bottom:1px solid #e0e0e0}tr.bx--expandable-row--hover{background-color:#e5e5e5}tr.bx--expandable-row--hover td{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;background-color:#e5e5e5;color:#161616}tr.bx--parent-row.bx--expandable-row.bx--expandable-row--hover td:first-of-type{border-bottom:1px solid rgba(0,0,0,0)}.bx--data-table td.bx--table-expand{border-bottom:1px solid #e0e0e0}.bx--data-table th.bx--table-expand+.bx--table-column-checkbox,.bx--data-table td.bx--table-expand+.bx--table-column-checkbox{padding-right:.375rem;padding-left:.375rem}.bx--data-table th.bx--table-expand+.bx--table-column-checkbox+th,.bx--data-table td.bx--table-expand+.bx--table-column-checkbox+td{padding-left:.5rem}.bx--data-table td.bx--table-expand,.bx--data-table th.bx--table-expand{padding:.5rem;padding-right:0}.bx--data-table td.bx--table-expand[data-previous-value=collapsed]{border-bottom:1px solid rgba(0,0,0,0)}.bx--table-expand[data-previous-value=collapsed] .bx--table-expand__svg{transform:rotate(270deg);transition:transform 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--table-expand__button{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;display:inline-flex;width:100%;height:calc(100% + 1px);align-items:center;justify-content:center;padding:0 .5rem;vertical-align:inherit}.bx--table-expand__button::-moz-focus-inner{border:0}.bx--table-expand__button:focus{box-shadow:inset 0 0 0 2px #0f62fe;outline:none}.bx--table-expand__svg{fill:#161616;transform:rotate(90deg);transition:transform 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--data-table--tall .bx--table-expand__button,.bx--data-table--xl .bx--table-expand__button{width:2rem;padding:0}tr.bx--parent-row.bx--expandable-row td.bx--table-expand+td::after{position:absolute;bottom:-0.0625rem;left:0;width:.5rem;height:.0625rem;background:#e0e0e0;content:\"\"}tr.bx--parent-row.bx--expandable-row:hover td.bx--table-expand+td::after,tr.bx--parent-row.bx--expandable-row.bx--expandable-row--hover td.bx--table-expand+td::after{background:#e5e5e5}tr.bx--parent-row.bx--data-table--selected td.bx--table-expand+td::after{display:none}.bx--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+3) td,.bx--data-table--zebra tbody tr[data-child-row]:nth-child(4n+4) td{border-bottom:1px solid #f4f4f4}.bx--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+1) td,.bx--data-table--zebra tbody tr[data-child-row]:nth-child(4n+2) td{border-top:1px solid #fff;border-bottom:1px solid #fff;background-color:#fff}.bx--data-table--zebra tr.bx--parent-row td,.bx--data-table--zebra tr.bx--parent-row.bx--expandable-row+tr[data-child-row] td{transition:transform 150ms cubic-bezier(0.2, 0, 0.38, 0.9),border-bottom 150ms cubic-bezier(0.2, 0, 0.38, 0.9),border-top 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--data-table--zebra tbody tr[data-parent-row]:hover td,.bx--data-table--zebra tbody tr[data-parent-row]:hover+tr[data-child-row] td,.bx--data-table--zebra tbody tr[data-child-row]:hover td{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background-color:#e5e5e5}.bx--data-table--zebra tr.bx--parent-row.bx--expandable-row.bx--expandable-row--hover td{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;background:#e5e5e5}tr.bx--parent-row.bx--data-table--selected:first-of-type td{border-top:1px solid #c6c6c6;border-bottom:1px solid #e0e0e0;background:#e0e0e0;box-shadow:0 1px #c6c6c6}tr.bx--parent-row.bx--data-table--selected td{border-bottom:1px solid rgba(0,0,0,0);background:#e0e0e0;box-shadow:0 1px #c6c6c6;color:#161616}tr.bx--parent-row.bx--data-table--selected:last-of-type td{border-bottom:1px solid rgba(0,0,0,0);background:#e0e0e0;box-shadow:0 1px #e0e0e0}tr.bx--parent-row.bx--data-table--selected:not(.bx--expandable-row):hover td{border-top:1px solid #cacaca;border-bottom:1px solid #e0e0e0;background:#cacaca;box-shadow:0 1px #cacaca}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row td:first-of-type{border-bottom:1px solid rgba(0,0,0,0);box-shadow:0 1px #e0e0e0}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row:hover td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row:hover td:first-of-type,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row--hover td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row--hover td:first-of-type{border-top:1px solid #cacaca;border-bottom:1px solid rgba(0,0,0,0);background:#cacaca;box-shadow:0 1px #cacaca}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row+tr[data-child-row] td{border-top:1px solid #c6c6c6;border-bottom:1px solid #e0e0e0;background-color:#e5e5e5;box-shadow:0 1px #c6c6c6;color:#161616}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row+tr[data-child-row]:last-of-type td{padding-bottom:1.5rem;box-shadow:inset 0 -1px #c6c6c6}tr.bx--parent-row.bx--data-table--selected.bx--expandable-row:hover+tr[data-child-row] td,tr.bx--parent-row.bx--data-table--selected.bx--expandable-row--hover+tr[data-child-row] td{background:#e0e0e0}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--table-expand__button:focus .bx--table-expand__svg{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--table-expand__svg{fill:ButtonText}}.bx--data-table--sort th,.bx--data-table th[aria-sort]{height:3rem;padding:0;border-top:none;border-bottom:none}.bx--table-sort{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;display:flex;width:100%;min-height:100%;align-items:center;justify-content:space-between;padding-left:1rem;background-color:#e0e0e0;color:#161616;font:inherit;line-height:1;text-align:left;transition:background-color 70ms cubic-bezier(0, 0, 0.38, 0.9),outline 70ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--table-sort::-moz-focus-inner{border:0}.bx--table-sort:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--table-sort:focus{outline-style:dotted}}.bx--table-sort:hover{background:#cacaca}.bx--table-sort:focus svg,.bx--table-sort:hover svg{opacity:1}.bx--data-table.bx--data-table--sort th>.bx--table-header-label{padding-right:1rem;padding-left:1rem}th .bx--table-sort__flex{display:flex;width:100%;height:100%;min-height:3rem;align-items:center;justify-content:space-between}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.bx--data-table--sort:not(.bx--data-table--compact):not(.bx--data-table--short):not(.bx--data-table--tall):not(.bx--data-table--xs):not(.bx--data-table--sm):not(.bx--data-table--md):not(.bx--data-table--xl) th .bx--table-sort__flex{height:2.99rem}}.bx--data-table--compact.bx--data-table--sort th .bx--table-sort__flex,.bx--data-table--xs.bx--data-table--sort th .bx--table-sort__flex{min-height:1.5rem}.bx--data-table--short.bx--data-table--sort th .bx--table-sort__flex,.bx--data-table--sm.bx--data-table--sort th .bx--table-sort__flex{min-height:2rem}.bx--data-table--md.bx--data-table--sort th .bx--table-sort__flex{min-height:2.5rem}.bx--data-table--tall.bx--data-table--sort th .bx--table-sort__flex,.bx--data-table--xl.bx--data-table--sort th .bx--table-sort__flex{min-height:4rem;align-items:flex-start}.bx--table-sort .bx--table-sort__icon-inactive{display:block}.bx--table-sort .bx--table-sort__icon{display:none}.bx--table-sort__icon-unsorted{width:1.25rem;min-width:1rem;margin-right:.5rem;margin-left:.5rem;fill:#161616;opacity:0}.bx--table-sort.bx--table-sort--active{background:#cacaca}.bx--table-sort.bx--table-sort--active .bx--table-sort__icon-unsorted{display:none}.bx--table-sort.bx--table-sort--active .bx--table-sort__icon{display:block;opacity:1}.bx--table-sort--ascending .bx--table-sort__icon{transform:rotate(180deg)}.bx--table-sort__icon{width:1.25rem;min-width:1rem;margin-right:.5rem;margin-left:.5rem;fill:#161616;opacity:1;transform:rotate(0);transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--data-table--compact.bx--data-table--sort th,.bx--data-table--xs.bx--data-table--sort th{height:1.5rem}.bx--data-table--short.bx--data-table--sort th,.bx--data-table--sm.bx--data-table--sort th{height:2rem}.bx--data-table--md.bx--data-table--sort th{height:2.5rem}.bx--data-table--tall.bx--data-table--sort th,.bx--data-table--xl.bx--data-table--sort th{height:4rem}.bx--data-table--tall.bx--data-table--sort th .bx--table-sort,.bx--data-table--xl.bx--data-table--sort th .bx--table-sort{display:inline-block;height:4rem}.bx--data-table--tall .bx--table-sort__icon-unsorted,.bx--data-table--tall .bx--table-sort__icon,.bx--data-table--xl .bx--table-sort__icon-unsorted,.bx--data-table--xl .bx--table-sort__icon{margin-top:.8125rem}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--table-sort__icon,.bx--table-sort__icon-unsorted{fill:ButtonText}}.bx--inline-edit-label{display:flex;align-items:center;justify-content:space-between}.bx--inline-edit-label:hover .bx--inline-edit-label__icon{opacity:1}.bx--inline-edit-label--inactive{display:none}.bx--inline-edit-label__action{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer}.bx--inline-edit-label__action::-moz-focus-inner{border:0}.bx--inline-edit-label__action:hover{cursor:pointer}.bx--inline-edit-label__action:focus{outline:1px solid #0f62fe;padding:.125rem}@media screen and (prefers-contrast){.bx--inline-edit-label__action:focus{outline-style:dotted}}.bx--inline-edit-label__action:focus .bx--inline-edit-label__icon{width:auto;opacity:1}.bx--inline-edit-label__icon{fill:#161616;opacity:0}.bx--inline-edit-input{display:none}.bx--inline-edit-input--active{display:block;margin-left:-0.75rem}.bx--inline-edit-input--active input{padding-left:.75rem}.bx--data-table.bx--skeleton th{padding-left:1rem;vertical-align:middle}.bx--data-table.bx--skeleton th span,.bx--data-table.bx--skeleton td span{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;display:block;width:4rem;height:1rem}.bx--data-table.bx--skeleton th span:hover,.bx--data-table.bx--skeleton th span:focus,.bx--data-table.bx--skeleton th span:active,.bx--data-table.bx--skeleton td span:hover,.bx--data-table.bx--skeleton td span:focus,.bx--data-table.bx--skeleton td span:active{border:none;cursor:default;outline:none}.bx--data-table.bx--skeleton th span::before,.bx--data-table.bx--skeleton td span::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--data-table.bx--skeleton th span::before,.bx--data-table.bx--skeleton td span::before{animation:none}}.bx--data-table.bx--skeleton tr:hover td{border-color:#e0e0e0;background:rgba(0,0,0,0)}.bx--data-table.bx--skeleton tr:hover td:first-of-type,.bx--data-table.bx--skeleton tr:hover td:last-of-type{border-color:#e0e0e0}.bx--data-table.bx--skeleton .bx--table-sort-v2{pointer-events:none}.bx--data-table.bx--skeleton th span{background:#c6c6c6}.bx--data-table.bx--skeleton th span::before{background:#e5e5e5}.bx--data-table-container.bx--skeleton .bx--data-table-header__title{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:7.5rem;height:1.5rem}.bx--data-table-container.bx--skeleton .bx--data-table-header__title:hover,.bx--data-table-container.bx--skeleton .bx--data-table-header__title:focus,.bx--data-table-container.bx--skeleton .bx--data-table-header__title:active{border:none;cursor:default;outline:none}.bx--data-table-container.bx--skeleton .bx--data-table-header__title::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--data-table-container.bx--skeleton .bx--data-table-header__title::before{animation:none}}.bx--data-table-container.bx--skeleton .bx--data-table-header__description{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:10rem;height:1rem;margin-top:.5rem}.bx--data-table-container.bx--skeleton .bx--data-table-header__description:hover,.bx--data-table-container.bx--skeleton .bx--data-table-header__description:focus,.bx--data-table-container.bx--skeleton .bx--data-table-header__description:active{border:none;cursor:default;outline:none}.bx--data-table-container.bx--skeleton .bx--data-table-header__description::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--data-table-container.bx--skeleton .bx--data-table-header__description::before{animation:none}}@keyframes fpFadeInDown{from{transform:translate3d(0, -20px, 0);opacity:0}to{transform:translate3d(0, 0, 0);opacity:1}}@keyframes fpSlideLeft{from{transform:translate3d(0, 0, 0)}to{transform:translate3d(-100%, 0, 0)}}@keyframes fpSlideLeftNew{from{transform:translate3d(100%, 0, 0)}to{transform:translate3d(0, 0, 0)}}@keyframes fpSlideRight{from{transform:translate3d(0, 0, 0)}to{transform:translate3d(100%, 0, 0)}}@keyframes fpSlideRightNew{from{transform:translate3d(-100%, 0, 0)}to{transform:translate3d(0, 0, 0)}}@keyframes fpFadeOut{from{opacity:1}to{opacity:0}}@keyframes fpFadeIn{from{opacity:0}to{opacity:1}}.flatpickr-calendar{position:absolute;box-sizing:border-box;width:19.6875rem;max-height:0;padding:0;overflow:hidden;direction:ltr;text-align:center;border:0;border-radius:0;visibility:hidden;opacity:0;animation:none;touch-action:manipulation}.flatpickr-calendar.open,.flatpickr-calendar.inline{max-height:40rem;overflow:visible;visibility:inherit;opacity:1}.flatpickr-calendar.open{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;width:18rem;height:21rem;margin-top:-0.125rem;padding:.25rem .25rem .5rem .25rem;overflow:hidden;background-color:#f4f4f4;border:none}.flatpickr-calendar.open:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.flatpickr-calendar.open:focus{outline-style:dotted}}.flatpickr-calendar.animate.open{animation:fpFadeInDown 110ms cubic-bezier(0, 0, 0.38, 0.9)}.flatpickr-calendar.inline{position:relative;top:.125rem;display:block}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.hasWeeks{width:auto}.dayContainer{display:flex;flex-wrap:wrap;justify-content:space-around;height:15.375rem;padding:0;outline:0}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:2.5rem;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:focus{outline:0}.flatpickr-months{display:flex;justify-content:space-between;width:100%}.flatpickr-month{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;display:flex;align-items:center;height:2.5rem;color:#161616;line-height:1;text-align:center;background-color:rgba(0,0,0,0)}.flatpickr-prev-month,.flatpickr-next-month{z-index:3;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;line-height:16px;text-decoration:none;transform:scale(1, 1) /*rtl: scale(-1,1)*/;cursor:pointer;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);fill:#161616;user-select:none}.flatpickr-prev-month:hover,.flatpickr-next-month:hover{background-color:#e5e5e5}.flatpickr-next-month.disabled svg,.flatpickr-prev-month.disabled svg{cursor:not-allowed;fill:#161616}.flatpickr-next-month.disabled:hover svg,.flatpickr-prev-month.disabled:hover svg{fill:#161616}.flatpickr-current-month{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;display:flex;align-items:center;justify-content:center;height:1.75rem;text-align:center}.flatpickr-current-month .cur-month{margin-right:.25rem;margin-left:.25rem}.flatpickr-current-month .cur-month:hover{background-color:#e5e5e5}.numInputWrapper{position:relative;width:3.75rem}.numInputWrapper:hover{background-color:#e5e5e5}.numInputWrapper .numInput{display:inline-block;width:100%;margin:0;padding:.25rem;color:#161616;font-weight:600;font-size:inherit;font-family:inherit;background-color:#f4f4f4;border:none;cursor:default;-moz-appearance:textfield}.numInputWrapper .numInput::-webkit-outer-spin-button,.numInputWrapper .numInput::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper .numInput:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.numInputWrapper .numInput:focus{outline-style:dotted}}.numInputWrapper .numInput[disabled],.numInputWrapper .numInput[disabled]:hover{color:#c6c6c6;background-color:#f4f4f4;pointer-events:none}.numInputWrapper .arrowUp{top:.25rem;border-bottom:0}.numInputWrapper .arrowUp::after{border-bottom:.25rem solid #161616}.numInputWrapper .arrowDown{top:.6875rem}.numInputWrapper .arrowDown::after{border-top:.25rem solid #161616}.numInputWrapper .arrowUp,.numInputWrapper .arrowDown{position:absolute;left:2.6rem;width:.75rem;height:50%;padding:0 .25rem 0 .125rem;line-height:50%;border:none;cursor:pointer;opacity:0}.numInputWrapper .arrowUp::after,.numInputWrapper .arrowDown::after{position:absolute;top:33%;display:block;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0);content:\"\"}.numInputWrapper .arrowUp:hover::after,.numInputWrapper .arrowDown:hover::after{border-top-color:#0f62fe;border-bottom-color:#0f62fe}.numInputWrapper .arrowUp:active::after,.numInputWrapper .arrowDown:active::after{border-top-color:#0f62fe;border-bottom-color:#0f62fe}.numInput[disabled]~.arrowUp::after{border-bottom-color:#c6c6c6}.numInput[disabled]~.arrowDown::after{border-top-color:#c6c6c6}.numInputWrapper:hover .arrowUp,.numInputWrapper:hover .arrowDown{opacity:1}.numInputWrapper:hover .numInput[disabled]~.arrowUp,.numInputWrapper:hover .numInput[disabled]~.arrowDown{opacity:0}.flatpickr-weekdays{display:flex;align-items:center;height:2.5rem}.flatpickr-weekdaycontainer{display:flex;width:100%}.flatpickr-weekday{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;flex:1;color:#161616;cursor:default}.flatpickr-days:focus{outline:0}.flatpickr-calendar.animate .dayContainer.slideLeft{animation:fpFadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1),fpSlideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.animate .dayContainer.slideLeft,.flatpickr-calendar.animate .dayContainer.slideLeftNew{transform:translate3d(-100%, 0, 0)}.flatpickr-calendar.animate .dayContainer.slideLeftNew{animation:fpFadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1),fpSlideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.animate .dayContainer.slideRight{transform:translate3d(100%, 0, 0);animation:fpFadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1),fpSlideRight 400ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.animate .dayContainer.slideRightNew{animation:fpFadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1),fpSlideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-day{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;color:#161616;cursor:pointer;transition:all 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.flatpickr-day:hover{background:#e5e5e5}.flatpickr-day:focus{outline:2px solid #0f62fe;outline-offset:-2px;outline-color:#0f62fe}@media screen and (prefers-contrast){.flatpickr-day:focus{outline-style:dotted}}.nextMonthDay,.prevMonthDay{color:#6f6f6f}.flatpickr-day.today{position:relative;color:#0f62fe;font-weight:600}.flatpickr-day.today::after{position:absolute;bottom:.4375rem;left:50%;display:block;width:.25rem;height:.25rem;background-color:#0f62fe;transform:translateX(-50%);content:\"\"}.flatpickr-day.today.no-border{border:none}.flatpickr-day.today.selected{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.flatpickr-day.today.selected{outline-style:dotted}}.flatpickr-day.today.selected::after{display:none}.flatpickr-day.inRange{color:#161616;background-color:#d0e2ff}.flatpickr-day.selected{color:#fff;background-color:#0f62fe}.flatpickr-day.selected:focus{outline:.0625rem solid #fff;outline-offset:-0.1875rem}.flatpickr-day.startRange.selected{z-index:2;box-shadow:none}.flatpickr-day.startRange.inRange:not(.selected),.flatpickr-day.endRange.inRange{outline:2px solid #0f62fe;outline-offset:-2px;z-index:3;background:#f4f4f4}@media screen and (prefers-contrast){.flatpickr-day.startRange.inRange:not(.selected),.flatpickr-day.endRange.inRange{outline-style:dotted}}.flatpickr-day.endRange:hover{outline:2px solid #0f62fe;outline-offset:-2px;color:#161616;background:#f4f4f4}@media screen and (prefers-contrast){.flatpickr-day.endRange:hover{outline-style:dotted}}.flatpickr-day.endRange.inRange.selected{color:#fff;background:#0f62fe}.flatpickr-day.flatpickr-disabled{color:#c6c6c6;cursor:not-allowed}.flatpickr-day.flatpickr-disabled:hover{background-color:rgba(0,0,0,0)}.flatpickr-input[readonly]{cursor:pointer}@media screen and (-ms-high-contrast: active),(forced-colors: active){.flatpickr-prev-month,.flatpickr-next-month{fill:ButtonText}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.flatpickr-day.selected{color:Highlight;outline:1px solid Highlight;outline-style:dotted}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.flatpickr-day.today,.flatpickr-day.inRange{color:Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.flatpickr-calendar{outline:1px solid rgba(0,0,0,0)}}.bx--date-picker{display:flex}.bx--date-picker--light .bx--date-picker__input{background:#fff}.bx--date-picker~.bx--label{order:1}.bx--date-picker-container{position:relative;display:flex;flex-direction:column;justify-content:space-between}.bx--date-picker-input__wrapper{position:relative;display:flex;align-items:center}.bx--date-picker.bx--date-picker--simple .bx--date-picker__input,.bx--date-picker.bx--date-picker--simple .bx--label{width:7.5rem}.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--invalid .bx--date-picker__input,.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--invalid~.bx--form-requirement,.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--warn .bx--date-picker__input,.bx--date-picker.bx--date-picker--simple .bx--date-picker-input__wrapper--warn~.bx--form-requirement{width:9.5rem}.bx--date-picker.bx--date-picker--simple.bx--date-picker--short .bx--date-picker__input{width:5.7rem}.bx--date-picker.bx--date-picker--single .bx--date-picker__input{width:18rem}.bx--date-picker .bx--date-picker-input__wrapper--warn~.bx--form-requirement{color:#161616}.bx--date-picker__input{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.32px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:relative;display:block;height:2.5rem;padding:0 1rem;border:none;border-bottom:1px solid #8d8d8d;background-color:#f4f4f4;color:#161616;transition:70ms cubic-bezier(0.2, 0, 0.38, 0.9) all}.bx--date-picker__input:focus,.bx--date-picker__input.bx--focused{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--date-picker__input:focus,.bx--date-picker__input.bx--focused{outline-style:dotted}}.bx--date-picker__input:disabled{border-bottom:1px solid rgba(0,0,0,0);background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--date-picker__input:disabled::placeholder{color:#c6c6c6}.bx--date-picker__input:disabled:hover{border-bottom:1px solid rgba(0,0,0,0)}.bx--date-picker__input::placeholder{color:#6f6f6f;opacity:1}.bx--date-picker__input--xl,.bx--date-picker__input--lg{height:3rem}.bx--date-picker__input--sm{height:2rem}.bx--date-picker__icon{position:absolute;z-index:1;top:50%;right:1rem;fill:#161616;pointer-events:none;transform:translateY(-50%)}.bx--date-picker__icon--invalid,.bx--date-picker__icon--warn{cursor:auto}.bx--date-picker__icon--warn{fill:#f1c21b}.bx--date-picker__icon--warn path:first-of-type{fill:#000;opacity:1}.bx--date-picker__icon--invalid{fill:#da1e28}.bx--date-picker__icon~.bx--date-picker__input{padding-right:3rem}.bx--date-picker__input:disabled~.bx--date-picker__icon{cursor:not-allowed;fill:#c6c6c6}.bx--date-picker--range>.bx--date-picker-container:first-child{margin-right:.0625rem}.bx--date-picker--range .bx--date-picker-container,.bx--date-picker--range .bx--date-picker__input{width:8.96875rem}.bx--date-picker.bx--skeleton input,.bx--date-picker__input.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:100%}.bx--date-picker.bx--skeleton input:hover,.bx--date-picker.bx--skeleton input:focus,.bx--date-picker.bx--skeleton input:active,.bx--date-picker__input.bx--skeleton:hover,.bx--date-picker__input.bx--skeleton:focus,.bx--date-picker__input.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--date-picker.bx--skeleton input::before,.bx--date-picker__input.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--date-picker.bx--skeleton input::before,.bx--date-picker__input.bx--skeleton::before{animation:none}}.bx--date-picker.bx--skeleton input::placeholder,.bx--date-picker__input.bx--skeleton::placeholder{color:rgba(0,0,0,0)}.bx--date-picker.bx--skeleton .bx--label{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:4.6875rem;height:.875rem}.bx--date-picker.bx--skeleton .bx--label:hover,.bx--date-picker.bx--skeleton .bx--label:focus,.bx--date-picker.bx--skeleton .bx--label:active{border:none;cursor:default;outline:none}.bx--date-picker.bx--skeleton .bx--label::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--date-picker.bx--skeleton .bx--label::before{animation:none}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--date-picker__icon{fill:ButtonText}}.bx--dropdown__wrapper--inline{display:inline-grid;align-items:center;grid-gap:0 1.5rem;grid-template:auto auto/auto min-content}.bx--dropdown__wrapper--inline .bx--label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}.bx--dropdown__wrapper--inline .bx--label,.bx--dropdown__wrapper--inline .bx--form__helper-text,.bx--dropdown__wrapper--inline .bx--form-requirement{margin:0}.bx--dropdown__wrapper--inline .bx--form-requirement{grid-column:2}.bx--dropdown{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:relative;display:block;width:100%;height:2.5rem;border:none;border-bottom:1px solid #8d8d8d;background-color:#f4f4f4;color:#161616;cursor:pointer;list-style:none;outline:2px solid rgba(0,0,0,0);transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--dropdown:hover{background-color:#e5e5e5}.bx--dropdown .bx--list-box__field{text-align:left}.bx--dropdown--xl,.bx--dropdown--lg{height:3rem;max-height:3rem}.bx--dropdown--xl .bx--dropdown__arrow,.bx--dropdown--lg .bx--dropdown__arrow{top:1rem}.bx--dropdown--sm{height:2rem;max-height:2rem}.bx--dropdown--sm .bx--dropdown__arrow{top:.5rem}.bx--dropdown--open{border-bottom-color:#e0e0e0}.bx--dropdown--invalid{outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--dropdown--invalid{outline-style:dotted}}.bx--dropdown--invalid .bx--dropdown-text{padding-right:3.5rem}.bx--dropdown--invalid+.bx--form-requirement{display:inline-block;max-height:12.5rem;color:#da1e28}.bx--dropdown__invalid-icon{position:absolute;top:50%;right:2.5rem;fill:#da1e28;transform:translateY(-50%)}.bx--dropdown--open:hover{background-color:#f4f4f4}.bx--dropdown--open:focus{outline:1px solid rgba(0,0,0,0)}.bx--dropdown--open .bx--dropdown-list{box-shadow:0 2px 6px rgba(0,0,0,.3);max-height:13.75rem;transition:max-height 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--dropdown--light{background-color:#fff}.bx--dropdown--light:hover{background-color:#e5e5e5}.bx--dropdown--up .bx--dropdown-list{bottom:2rem}.bx--dropdown__arrow{position:absolute;top:.8125rem;right:1rem;fill:#161616;pointer-events:none;transform-origin:50% 45%;transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}button.bx--dropdown-text{width:100%;border:none;background:none;color:#161616;text-align:left}button.bx--dropdown-text:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){button.bx--dropdown-text:focus{outline-style:dotted}}.bx--dropdown-text{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:block;overflow:hidden;height:calc(100% + 1px);padding-right:2.625rem;padding-left:1rem;text-overflow:ellipsis;white-space:nowrap}.bx--dropdown-list{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;box-shadow:0 2px 6px rgba(0,0,0,.3);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:absolute;z-index:9100;display:flex;width:100%;max-height:0;flex-direction:column;background-color:#f4f4f4;list-style:none;overflow-x:hidden;overflow-y:auto;transition:max-height 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--dropdown--light .bx--dropdown-list{background-color:#fff}.bx--dropdown:not(.bx--dropdown--open) .bx--dropdown-item{visibility:hidden}.bx--dropdown-item{position:relative;opacity:0;transition:visibility 70ms cubic-bezier(0.2, 0, 0.38, 0.9),opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);visibility:inherit}.bx--dropdown-item:hover{background-color:#e5e5e5}.bx--dropdown-item:hover+.bx--dropdown-item .bx--dropdown-link{border-color:rgba(0,0,0,0)}.bx--dropdown-item:active{background-color:#e0e0e0}.bx--dropdown-item:first-of-type .bx--dropdown-link{border-top-color:rgba(0,0,0,0)}.bx--dropdown-item:last-of-type .bx--dropdown-link{border-bottom:none}.bx--dropdown-link{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:block;overflow:hidden;height:2.5rem;padding:.6875rem 0;border:1px solid rgba(0,0,0,0);border-top-color:#e0e0e0;margin:0 1rem;color:#525252;font-weight:normal;line-height:1rem;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.bx--dropdown-link:hover{border-color:rgba(0,0,0,0);color:#161616}.bx--dropdown--light .bx--dropdown-link{border-top-color:#e0e0e0}.bx--dropdown--sm .bx--dropdown-link{height:2rem;padding-top:.4375rem;padding-bottom:.4375rem}.bx--dropdown--xl .bx--dropdown-link{height:3rem;padding-top:.9375rem;padding-bottom:.9375rem}.bx--dropdown--focused,.bx--dropdown-link:focus{outline:2px solid #0f62fe;outline-offset:-2px;padding:.6875rem 1rem;margin:0}@media screen and (prefers-contrast){.bx--dropdown--focused,.bx--dropdown-link:focus{outline-style:dotted}}.bx--dropdown-list[aria-activedescendant] .bx--dropdown-link:focus{padding:.6875rem 0;margin:0 1rem;outline:none}.bx--dropdown-list[aria-activedescendant] .bx--dropdown--focused:focus{outline:2px solid #0f62fe;outline-offset:-2px;padding:.6875rem 1rem;margin:0}@media screen and (prefers-contrast){.bx--dropdown-list[aria-activedescendant] .bx--dropdown--focused:focus{outline-style:dotted}}.bx--dropdown-list[aria-activedescendant] .bx--dropdown-item:active{background-color:inherit}.bx--dropdown-item:hover .bx--dropdown-link{border-bottom-color:#e5e5e5}.bx--dropdown--open .bx--dropdown__arrow{transform:rotate(-180deg)}.bx--dropdown--open.bx--dropdown--xl .bx--dropdown-list{max-height:16.5rem}.bx--dropdown--open.bx--dropdown--sm .bx--dropdown-list{max-height:11rem}.bx--dropdown--open .bx--dropdown-item{opacity:1}.bx--dropdown--disabled{border-bottom-color:rgba(0,0,0,0)}.bx--dropdown--disabled:hover{background-color:#f4f4f4}.bx--dropdown--disabled:focus{outline:none}.bx--dropdown--disabled .bx--dropdown-text,.bx--dropdown--disabled .bx--list-box__label{color:#c6c6c6}.bx--dropdown--disabled .bx--dropdown__arrow,.bx--dropdown--disabled .bx--list-box__menu-icon svg{fill:#c6c6c6}.bx--dropdown--disabled.bx--dropdown--light:hover{background-color:#fff}.bx--dropdown--disabled .bx--list-box__field,.bx--dropdown--disabled .bx--list-box__menu-icon{cursor:not-allowed}.bx--dropdown--auto-width{width:auto;max-width:25rem}.bx--dropdown--inline{display:inline-block;width:auto;border-bottom-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);justify-self:start;transition:background 70ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--dropdown--inline:hover{background-color:#e5e5e5}.bx--dropdown--inline.bx--dropdown--disabled{background-color:rgba(0,0,0,0)}.bx--dropdown--inline .bx--dropdown__arrow{top:.5rem;right:.5rem}.bx--dropdown--inline.bx--dropdown--open{background-color:rgba(0,0,0,0)}.bx--dropdown--inline .bx--dropdown-text{display:inline-block;overflow:visible;height:2rem;padding:.4375rem 2rem .4375rem .75rem;color:#161616}.bx--dropdown--inline.bx--dropdown--disabled .bx--dropdown-text{color:#c6c6c6}.bx--dropdown--inline.bx--dropdown--disabled:focus .bx--dropdown-text{outline:0}.bx--dropdown--inline.bx--dropdown--invalid .bx--dropdown__invalid-icon{right:2rem}.bx--dropdown--inline.bx--dropdown--invalid .bx--dropdown-text{padding-right:3.5rem}.bx--dropdown--inline.bx--dropdown--open:focus .bx--dropdown-list{box-shadow:0 2px 6px rgba(0,0,0,.3)}.bx--dropdown--inline .bx--dropdown-link{font-weight:normal}.bx--dropdown--show-selected .bx--dropdown--selected{display:block;background-color:#e5e5e5;color:#161616}.bx--dropdown--show-selected .bx--dropdown--selected:hover{background-color:#e0e0e0}.bx--dropdown--show-selected .bx--dropdown--selected .bx--dropdown-link{border-top-color:rgba(0,0,0,0)}.bx--dropdown--show-selected .bx--dropdown--selected+.bx--dropdown-item .bx--dropdown-link{border-top-color:rgba(0,0,0,0)}.bx--dropdown--show-selected .bx--dropdown--selected .bx--list-box__menu-item__selected-icon{display:block}.bx--dropdown-v2.bx--skeleton,.bx--dropdown.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none}.bx--dropdown-v2.bx--skeleton:hover,.bx--dropdown-v2.bx--skeleton:focus,.bx--dropdown-v2.bx--skeleton:active,.bx--dropdown.bx--skeleton:hover,.bx--dropdown.bx--skeleton:focus,.bx--dropdown.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--dropdown-v2.bx--skeleton::before,.bx--dropdown.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--dropdown-v2.bx--skeleton::before,.bx--dropdown.bx--skeleton::before{animation:none}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--dropdown .bx--list-box__field{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--list-box__menu-item__option{outline:none}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--list-box__menu-item__selected-icon{fill:ButtonText}}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes rotate-end-p1{100%{transform:rotate(360deg)}}@keyframes rotate-end-p2{100%{transform:rotate(-360deg)}}@keyframes init-stroke{0%{stroke-dashoffset:276.4608}100%{stroke-dashoffset:52.527552}}@keyframes stroke-end{0%{stroke-dashoffset:52.527552}100%{stroke-dashoffset:276.4608}}.bx--loading{animation-duration:690ms;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:rotate;animation-timing-function:linear;width:5.5rem;height:5.5rem}.bx--loading svg circle{animation-duration:10ms;animation-name:init-stroke;animation-timing-function:cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--loading svg circle{animation:none}}.bx--loading__svg{fill:rgba(0,0,0,0)}.bx--loading__svg circle{stroke-dasharray:276.4608 276.4608;stroke-linecap:butt;stroke-width:10}.bx--loading__stroke{stroke:#0f62fe;stroke-dashoffset:52.527552}.bx--loading--small .bx--loading__stroke{stroke-dashoffset:143.759616}.bx--loading--stop{animation:rotate-end-p1 700ms cubic-bezier(0.2, 0, 1, 0.9) forwards,rotate-end-p2 700ms cubic-bezier(0.2, 0, 1, 0.9) 700ms forwards}.bx--loading--stop svg circle{animation-delay:700ms;animation-duration:700ms;animation-fill-mode:forwards;animation-name:stroke-end;animation-timing-function:cubic-bezier(0.2, 0, 1, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--loading--stop svg circle{animation:none}}.bx--loading--small{width:1rem;height:1rem}.bx--loading--small circle{stroke-width:16}.bx--loading--small .bx--loading__svg{stroke:#0f62fe}.bx--loading__background{stroke:#e0e0e0;stroke-dashoffset:-22}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none) and (stroke-color: transparent){circle.bx--loading__background{stroke-dasharray:265;stroke-dashoffset:0}}}.bx--loading-overlay{position:fixed;z-index:6000;top:0;left:0;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(22,22,22,.5);transition:background-color 720ms cubic-bezier(0.4, 0.14, 0.3, 1)}.bx--loading-overlay--stop{display:none}.bx--file{width:100%}.bx--file--invalid{margin-right:.5rem;fill:#da1e28}.bx--file--label{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;margin-bottom:.5rem;color:#161616}.bx--file--label--disabled{color:#c6c6c6}.bx--file-input{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--file-btn{display:inline-flex;padding-right:4rem;margin:0}.bx--file-browse-btn{display:inline-block;width:100%;max-width:20rem;margin-bottom:.5rem;color:#0f62fe;cursor:pointer;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;transition:110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--file-browse-btn:focus,.bx--file-browse-btn:hover{outline:2px solid #0f62fe}.bx--file-browse-btn:hover,.bx--file-browse-btn:focus,.bx--file-browse-btn:active,.bx--file-browse-btn:active:visited{text-decoration:underline}.bx--file-browse-btn:active{color:#161616}.bx--file-browse-btn--disabled{color:#c6c6c6;cursor:no-drop;text-decoration:none}.bx--file-browse-btn--disabled:hover,.bx--file-browse-btn--disabled:focus{color:#c6c6c6;outline:none;text-decoration:none}.bx--file-browse-btn--disabled .bx--file__drop-container{border:1px dashed #c6c6c6}.bx--label-description{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;margin-bottom:1rem;color:#525252}.bx--label-description--disabled{color:#c6c6c6}.bx--file-btn~.bx--file-container{margin-top:1.5rem}.bx--btn~.bx--file-container{margin-top:1rem}.bx--file .bx--file-container,.bx--file~.bx--file-container{margin-top:.5rem}.bx--file__selected-file{display:grid;max-width:20rem;min-height:3rem;align-items:center;margin-bottom:.5rem;background-color:#f4f4f4;gap:.75rem 1rem;grid-auto-rows:auto;grid-template-columns:1fr auto;word-break:break-word}.bx--file__selected-file:last-child{margin-bottom:0}.bx--file__selected-file .bx--form-requirement{display:block;max-height:none;margin:0;grid-column:1/-1}.bx--file__selected-file .bx--inline-loading__animation .bx--loading{margin-right:0}.bx--file__selected-file .bx--file-filename{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;overflow:hidden;margin-left:1rem;text-overflow:ellipsis;white-space:nowrap}.bx--file__selected-file--field,.bx--file__selected-file--md{min-height:2.5rem;gap:.5rem 1rem}.bx--file__selected-file--sm{min-height:2rem;gap:.25rem 1rem}.bx--file__selected-file--invalid__wrapper{outline:2px solid #da1e28;outline-offset:-2px;max-width:20rem;margin-bottom:.5rem;background-color:#f4f4f4;outline-width:1px}@media screen and (prefers-contrast){.bx--file__selected-file--invalid__wrapper{outline-style:dotted}}.bx--file__selected-file--invalid{outline:2px solid #da1e28;outline-offset:-2px;padding:.75rem 0}@media screen and (prefers-contrast){.bx--file__selected-file--invalid{outline-style:dotted}}.bx--file__selected-file--invalid.bx--file__selected-file--sm{padding:.25rem 0}.bx--file__selected-file--invalid.bx--file__selected-file--field,.bx--file__selected-file--invalid.bx--file__selected-file--md{padding:.5rem 0}.bx--file__selected-file--invalid .bx--form-requirement{padding-top:1rem;border-top:1px solid #e0e0e0}.bx--file__selected-file--invalid.bx--file__selected-file--sm .bx--form-requirement{padding-top:.4375rem}.bx--file__selected-file--invalid.bx--file__selected-file--field .bx--form-requirement,.bx--file__selected-file--invalid.bx--file__selected-file--md .bx--form-requirement{padding-top:.6875rem}.bx--file__selected-file--invalid .bx--form-requirement__title,.bx--file__selected-file--invalid .bx--form-requirement__supplement{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;padding:0 1rem}.bx--file__selected-file--invalid .bx--form-requirement__title{color:#da1e28}.bx--file__selected-file--invalid .bx--form-requirement__supplement{color:#161616}.bx--file__selected-file--invalid+.bx--form-requirement{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;display:block;overflow:visible;max-height:12.5rem;padding:.5rem 1rem;color:#da1e28;font-weight:400}.bx--file__selected-file--invalid+.bx--form-requirement .bx--form-requirement__supplement{padding-bottom:.5rem;color:#161616}.bx--file__state-container{display:flex;min-width:1.5rem;align-items:center;justify-content:center;padding-right:1rem}.bx--file__state-container .bx--loading__svg{stroke:#161616}.bx--file__state-container .bx--file-complete{cursor:pointer;fill:#0f62fe}.bx--file__state-container .bx--file-complete:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--file__state-container .bx--file-complete:focus{outline-style:dotted}}.bx--file__state-container .bx--file-complete [data-icon-path=inner-path]{fill:#fff;opacity:1}.bx--file__state-container .bx--file-invalid{width:1rem;height:1rem;fill:#da1e28}.bx--file__state-container .bx--file-close{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;padding:0;border:none;background-color:rgba(0,0,0,0);cursor:pointer;fill:#161616}.bx--file__state-container .bx--file-close:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--file__state-container .bx--file-close:focus{outline-style:dotted}}.bx--file__state-container .bx--file-close svg path{fill:#161616}.bx--file__state-container .bx--inline-loading__animation{margin-right:-0.5rem}.bx--file__drop-container{display:flex;overflow:hidden;height:6rem;align-items:flex-start;justify-content:space-between;padding:1rem;border:1px dashed #8d8d8d}.bx--file__drop-container--drag-over{background:none;outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--file__selected-file{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--file__state-container .bx--file-close svg path{fill:ButtonText}}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes rotate-end-p1{100%{transform:rotate(360deg)}}@keyframes rotate-end-p2{100%{transform:rotate(-360deg)}}@keyframes init-stroke{0%{stroke-dashoffset:276.4608}100%{stroke-dashoffset:52.527552}}@keyframes stroke-end{0%{stroke-dashoffset:52.527552}100%{stroke-dashoffset:276.4608}}@keyframes stroke{100%{stroke-dashoffset:0}}.bx--inline-loading{display:flex;width:100%;min-height:2rem;align-items:center}.bx--inline-loading__text{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;color:#525252}.bx--inline-loading__animation{position:relative;display:flex;align-items:center;justify-content:center;margin-right:.5rem}.bx--inline-loading__checkmark-container{fill:#198038}.bx--inline-loading__checkmark-container.bx--inline-loading__svg{position:absolute;top:.75rem;width:.75rem}.bx--inline-loading__checkmark-container[hidden]{display:none}.bx--inline-loading__checkmark{animation-duration:250ms;animation-fill-mode:forwards;animation-name:stroke;fill:none;stroke:#0f62fe;stroke-dasharray:12;stroke-dashoffset:12;stroke-width:1.8;transform-origin:50% 50%}.bx--inline-loading--error{width:1rem;height:1rem;fill:#da1e28}.bx--inline-loading--error[hidden]{display:none}.bx--loading--small .bx--inline-loading__svg{stroke:#0f62fe}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.bx--inline-loading__checkmark-container{top:1px;right:.5rem}.bx--inline-loading__checkmark{animation:none;stroke-dasharray:0;stroke-dashoffset:0}}.bx--list--nested,.bx--list--unordered,.bx--list--ordered,.bx--list--ordered--native{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;list-style:none}.bx--list--expressive,.bx--list--expressive .bx--list--nested{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}.bx--list--ordered--native{list-style:decimal}.bx--list__item{color:#161616}.bx--list--nested{margin-left:2rem}.bx--list--nested .bx--list__item{padding-left:.25rem}.bx--list--ordered:not(.bx--list--nested){counter-reset:item}.bx--list--ordered:not(.bx--list--nested)>.bx--list__item{position:relative}.bx--list--ordered:not(.bx--list--nested)>.bx--list__item::before{position:absolute;left:-1.5rem;content:counter(item) \".\";counter-increment:item}.bx--list--ordered.bx--list--nested,.bx--list--ordered--native.bx--list--nested{list-style-type:lower-latin}.bx--list--unordered>.bx--list__item{position:relative}.bx--list--unordered>.bx--list__item::before{position:absolute;left:-1rem;content:\"–\"}.bx--list--unordered.bx--list--nested>.bx--list__item::before{left:-0.75rem;content:\"▪\"}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes rotate-end-p1{100%{transform:rotate(360deg)}}@keyframes rotate-end-p2{100%{transform:rotate(-360deg)}}@keyframes init-stroke{0%{stroke-dashoffset:276.4608}100%{stroke-dashoffset:52.527552}}@keyframes stroke-end{0%{stroke-dashoffset:52.527552}100%{stroke-dashoffset:276.4608}}.bx--menu{box-shadow:0 2px 6px rgba(0,0,0,.3);position:fixed;z-index:9000;min-width:13rem;max-width:18rem;padding:.25rem 0;background-color:#f4f4f4;visibility:hidden}.bx--menu--open{visibility:visible}.bx--menu--open:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--menu--open:focus{outline-style:dotted}}.bx--menu--invisible{opacity:0;pointer-events:none}.bx--menu-option{position:relative;height:2rem;background-color:#f4f4f4;color:#161616;cursor:pointer;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--menu-option:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--menu-option:focus{outline-style:dotted}}.bx--menu-option--active,.bx--menu-option:hover{background-color:#e5e5e5}.bx--menu-option--danger:hover,.bx--menu-option--danger:focus{background-color:#da1e28;color:#fff}.bx--menu-option>.bx--menu{margin-top:calc(0.25rem * -1)}.bx--menu-option__content{display:flex;height:100%;align-items:center;justify-content:space-between;padding:0 1rem}.bx--menu-option__content--disabled{background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--menu-option__content--disabled .bx--menu-option__label,.bx--menu-option__content--disabled .bx--menu-option__info,.bx--menu-option__content--disabled .bx--menu-option__icon{color:#c6c6c6}.bx--menu-option__content--indented .bx--menu-option__label{margin-left:1rem}.bx--menu-option__label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;overflow:hidden;flex-grow:1;padding:.25rem 0;text-align:start;text-overflow:ellipsis;white-space:nowrap}.bx--menu-option__info{display:inline-flex;margin-left:1rem}.bx--menu-option__icon{display:flex;width:1rem;height:1rem;align-items:center;margin-right:.5rem}.bx--menu-divider{width:100%;height:1px;margin:.25rem 0;background-color:#e0e0e0}.bx--menu--md .bx--menu-option{height:2.5rem}.bx--menu--lg .bx--menu-option{height:3rem}.bx--modal{position:fixed;z-index:9000;top:0;left:0;display:flex;width:100vw;height:100vh;align-items:center;justify-content:center;background-color:rgba(22,22,22,.5);content:\"\";opacity:0;transition:opacity 240ms cubic-bezier(0.4, 0.14, 1, 1),visibility 0ms linear 240ms;visibility:hidden}.bx--modal.is-visible{opacity:1;transition:opacity 240ms cubic-bezier(0, 0, 0.3, 1),visibility 0ms linear;visibility:inherit}@media screen and (prefers-reduced-motion: reduce){.bx--modal.is-visible{transition:none}}.bx--modal .bx--pagination,.bx--modal .bx--pagination__control-buttons,.bx--modal .bx--text-input,.bx--modal .bx--text-area,.bx--modal .bx--search-input,.bx--modal .bx--select-input,.bx--modal .bx--dropdown,.bx--modal .bx--dropdown-list,.bx--modal .bx--number input[type=number],.bx--modal .bx--date-picker__input,.bx--modal .bx--multi-select{background-color:#fff}.bx--modal.is-visible .bx--modal-container{transform:translate3d(0, 0, 0);transition:transform 240ms cubic-bezier(0, 0, 0.3, 1)}.bx--modal-container{position:fixed;top:0;display:grid;overflow:hidden;width:100%;height:100%;max-height:100%;background-color:#f4f4f4;grid-template-columns:100%;grid-template-rows:auto 1fr auto;outline:3px solid rgba(0,0,0,0);outline-offset:-3px;transform:translate3d(0, -24px, 0);transform-origin:top center;transition:transform 240ms cubic-bezier(0.4, 0.14, 1, 1)}@media(min-width: 42rem){.bx--modal-container{position:static;width:84%;height:auto;max-height:90%}}@media(min-width: 66rem){.bx--modal-container{width:60%;max-height:84%}}@media(min-width: 82rem){.bx--modal-container{width:48%}}.bx--modal-container .bx--modal-container-body{display:contents}.bx--modal-content{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;position:relative;padding-top:.5rem;padding-right:1rem;padding-left:1rem;margin-bottom:3rem;color:#161616;font-weight:400;grid-column:1/-1;grid-row:2/-2;overflow-y:auto}.bx--modal-content:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--modal-content:focus{outline-style:dotted}}.bx--modal-content p,.bx--modal-content__regular-content{padding-right:20%;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px}.bx--modal-content--with-form{padding-right:1rem}.bx--modal-header{padding-top:1rem;padding-right:3rem;padding-left:1rem;margin-bottom:.5rem;grid-column:1/-1;grid-row:1/1}.bx--modal-header__label{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;margin-bottom:.25rem;color:#525252}.bx--modal-header__heading{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#161616}.bx--modal-container--xs .bx--modal-content__regular-content{padding-right:1rem}.bx--modal-container--xs .bx--modal-content p{padding-right:0}@media(min-width: 42rem){.bx--modal-container--xs{width:48%}}@media(min-width: 66rem){.bx--modal-container--xs{width:32%;max-height:48%}}@media(min-width: 82rem){.bx--modal-container--xs{width:24%}}.bx--modal-container--sm .bx--modal-content__regular-content{padding-right:1rem}.bx--modal-container--sm .bx--modal-content p{padding-right:0}@media(min-width: 42rem){.bx--modal-container--sm{width:60%}}@media(min-width: 66rem){.bx--modal-container--sm{width:42%;max-height:72%}.bx--modal-container--sm .bx--modal-content p,.bx--modal-container--sm .bx--modal-content__regular-content{padding-right:20%}}@media(min-width: 82rem){.bx--modal-container--sm{width:36%}}@media(min-width: 42rem){.bx--modal-container--lg{width:96%}}@media(min-width: 66rem){.bx--modal-container--lg{width:84%;max-height:96%}}@media(min-width: 82rem){.bx--modal-container--lg{width:72%}}.bx--modal-scroll-content>*:last-child{padding-bottom:2rem}.bx--modal-content--overflow-indicator{position:absolute;bottom:3rem;left:0;width:100%;height:2rem;background-image:linear-gradient(to bottom, rgba(244, 244, 244, 0), #f4f4f4);content:\"\";grid-column:1/-1;grid-row:2/-2;pointer-events:none}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none) and (stroke-color: transparent){.bx--modal-content--overflow-indicator{background-image:linear-gradient(to bottom, rgba(244, 244, 244, 0), #f4f4f4)}}}.bx--modal-content:focus~.bx--modal-content--overflow-indicator{width:calc(100% - 4px);margin:0 2px 2px}@media screen and (-ms-high-contrast: active){.bx--modal-scroll-content>*:last-child{padding-bottom:0}.bx--modal-content--overflow-indicator{display:none}}.bx--modal-footer{display:flex;height:4rem;justify-content:flex-end;margin-top:auto;grid-column:1/-1;grid-row:-1/-1}.bx--modal-footer .bx--btn{max-width:none;height:4rem;flex:0 1 50%;padding-top:1rem;padding-bottom:2rem;margin:0}.bx--modal-footer--three-button .bx--btn{flex:0 1 25%;align-items:flex-start}.bx--modal-close{position:absolute;z-index:2;top:0;right:0;overflow:hidden;width:3rem;height:3rem;padding:.75rem;border:2px solid rgba(0,0,0,0);background-color:rgba(0,0,0,0);cursor:pointer;transition:background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--modal-close:hover{background-color:#e5e5e5}.bx--modal-close:focus{border-color:#0f62fe;outline:none}.bx--modal-close::-moz-focus-inner{border:0}.bx--modal-close__icon{width:1.25rem;height:1.25rem;fill:#161616}.bx--body--with-modal-open{overflow:hidden}.bx--body--with-modal-open .bx--tooltip,.bx--body--with-modal-open .bx--overflow-menu-options{z-index:9000}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--modal-close__icon{fill:ButtonText}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--modal-close:focus{color:Highlight;outline:1px solid Highlight}}.bx--multi-select .bx--tag{min-width:auto;margin:0 .5rem 0 0}.bx--multi-select--filterable .bx--tag{margin:0 .5rem 0 1rem}.bx--multi-select .bx--list-box__menu{min-width:auto}.bx--multi-select .bx--list-box__menu-item__option .bx--checkbox-wrapper{display:flex;width:100%;height:100%;align-items:center}.bx--multi-select .bx--list-box__menu-item__option .bx--checkbox-label{display:inline-block;overflow:hidden;width:100%;padding-left:1.75rem;text-overflow:ellipsis;white-space:nowrap}.bx--multi-select .bx--list-box__menu-item__option>.bx--form-item{flex-direction:row;margin:0}.bx--multi-select .bx--list-box__menu-item .bx--checkbox:checked~.bx--checkbox-label-text{color:#161616}.bx--multi-select--filterable{transition:outline-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--multi-select--filterable.bx--combo-box .bx--text-input{border:.125rem solid rgba(0,0,0,0);background-clip:padding-box;outline:none}.bx--multi-select--filterable--input-focused{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--multi-select--filterable--input-focused{outline-style:dotted}}.bx--multi-select--filterable.bx--multi-select--selected .bx--text-input{padding-left:0}.bx--multi-select--filterable.bx--list-box--disabled:hover .bx--text-input{background-color:#f4f4f4}.bx--multi-select--filterable .bx--list-box__selection--multi{margin:0 0 0 1rem}.bx--multi-select--filterable.bx--multi-select--inline,.bx--multi-select--filterable.bx--multi-select--inline .bx--text-input{border-bottom:0;background-color:rgba(0,0,0,0)}.bx--multi-select:not(.bx--list-box--expanded) .bx--list-box__menu{visibility:hidden}.bx--inline-notification{position:relative;display:flex;width:100%;min-width:18rem;max-width:18rem;height:auto;min-height:3rem;flex-wrap:wrap;margin-top:1rem;margin-bottom:1rem;color:#fff}@media(min-width: 42rem){.bx--inline-notification{max-width:38rem;flex-wrap:nowrap}}@media(min-width: 66rem){.bx--inline-notification{max-width:46rem}}@media(min-width: 99rem){.bx--inline-notification{max-width:52rem}}.bx--inline-notification:not(.bx--inline-notification--low-contrast) a{color:#78a9ff}.bx--inline-notification a{text-decoration:none}.bx--inline-notification a:hover{text-decoration:underline}.bx--inline-notification a:focus{outline:1px solid #78a9ff}.bx--inline-notification.bx--inline-notification--low-contrast a:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--inline-notification.bx--inline-notification--low-contrast a:focus{outline-style:dotted}}.bx--inline-notification--low-contrast{color:#161616}.bx--inline-notification--low-contrast::before{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;border-width:1px 1px 1px 0;border-style:solid;content:\"\";filter:opacity(0.4);pointer-events:none}.bx--inline-notification--error{border-left:3px solid #fa4d56;background:#393939}.bx--inline-notification--error .bx--inline-notification__icon,.bx--inline-notification--error .bx--toast-notification__icon,.bx--inline-notification--error .bx--actionable-notification__icon{fill:#fa4d56}.bx--inline-notification--low-contrast.bx--inline-notification--error{border-left:3px solid #da1e28;background:#fff1f1}.bx--inline-notification--low-contrast.bx--inline-notification--error .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--error .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--error .bx--actionable-notification__icon{fill:#da1e28}.bx--inline-notification--low-contrast.bx--inline-notification--error::before{border-color:#da1e28}.bx--inline-notification--success{border-left:3px solid #42be65;background:#393939}.bx--inline-notification--success .bx--inline-notification__icon,.bx--inline-notification--success .bx--toast-notification__icon,.bx--inline-notification--success .bx--actionable-notification__icon{fill:#42be65}.bx--inline-notification--low-contrast.bx--inline-notification--success{border-left:3px solid #198038;background:#defbe6}.bx--inline-notification--low-contrast.bx--inline-notification--success .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--success .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--success .bx--actionable-notification__icon{fill:#198038}.bx--inline-notification--low-contrast.bx--inline-notification--success::before{border-color:#198038}.bx--inline-notification--info,.bx--inline-notification--info-square{border-left:3px solid #4589ff;background:#393939}.bx--inline-notification--info .bx--inline-notification__icon,.bx--inline-notification--info .bx--toast-notification__icon,.bx--inline-notification--info .bx--actionable-notification__icon,.bx--inline-notification--info-square .bx--inline-notification__icon,.bx--inline-notification--info-square .bx--toast-notification__icon,.bx--inline-notification--info-square .bx--actionable-notification__icon{fill:#4589ff}.bx--inline-notification--low-contrast.bx--inline-notification--info,.bx--inline-notification--low-contrast.bx--inline-notification--info-square{border-left:3px solid #0043ce;background:#edf5ff}.bx--inline-notification--low-contrast.bx--inline-notification--info .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info-square .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info-square .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--info-square .bx--actionable-notification__icon{fill:#0043ce}.bx--inline-notification--low-contrast.bx--inline-notification--info::before,.bx--inline-notification--low-contrast.bx--inline-notification--info-square::before{border-color:#0043ce}.bx--inline-notification--warning,.bx--inline-notification--warning-alt{border-left:3px solid #f1c21b;background:#393939}.bx--inline-notification--warning .bx--inline-notification__icon,.bx--inline-notification--warning .bx--toast-notification__icon,.bx--inline-notification--warning .bx--actionable-notification__icon,.bx--inline-notification--warning-alt .bx--inline-notification__icon,.bx--inline-notification--warning-alt .bx--toast-notification__icon,.bx--inline-notification--warning-alt .bx--actionable-notification__icon{fill:#f1c21b}.bx--inline-notification--low-contrast.bx--inline-notification--warning,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt{border-left:3px solid #f1c21b;background:#fdf6dd}.bx--inline-notification--low-contrast.bx--inline-notification--warning .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning .bx--actionable-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt .bx--inline-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt .bx--toast-notification__icon,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt .bx--actionable-notification__icon{fill:#f1c21b}.bx--inline-notification--low-contrast.bx--inline-notification--warning::before,.bx--inline-notification--low-contrast.bx--inline-notification--warning-alt::before{border-color:#f1c21b}.bx--inline-notification--warning .bx--inline-notification__icon path[opacity=\"0\"]{fill:#000;opacity:1}.bx--inline-notification__details{display:flex;flex-grow:1;margin:0 3rem 0 1rem}@media(min-width: 42rem){.bx--inline-notification__details{margin:0 1rem}}.bx--inline-notification__icon{flex-shrink:0;margin-top:.875rem;margin-right:1rem}.bx--inline-notification__text-wrapper{display:flex;flex-wrap:wrap;padding:.9375rem 0}.bx--inline-notification__title{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;margin:0 .25rem 0 0}.bx--inline-notification__subtitle{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;word-break:break-word}.bx--inline-notification__action-button.bx--btn--ghost{height:2rem;margin-bottom:.5rem;margin-left:2.5rem}@media(min-width: 42rem){.bx--inline-notification__action-button.bx--btn--ghost{margin:.5rem 0}}.bx--inline-notification:not(.bx--inline-notification--low-contrast) .bx--inline-notification__action-button.bx--btn--ghost{color:#78a9ff}.bx--inline-notification__action-button.bx--btn--ghost:active,.bx--inline-notification__action-button.bx--btn--ghost:hover{background-color:#4c4c4c}.bx--inline-notification--low-contrast .bx--inline-notification__action-button.bx--btn--ghost:active,.bx--inline-notification--low-contrast .bx--inline-notification__action-button.bx--btn--ghost:hover{background-color:#fff}.bx--inline-notification__action-button.bx--btn--ghost:focus{border-color:rgba(0,0,0,0);box-shadow:none;outline:2px solid #fff;outline-offset:-2px}.bx--inline-notification--low-contrast .bx--inline-notification__action-button.bx--btn--ghost:focus{outline-color:#0f62fe}.bx--inline-notification--hide-close-button .bx--inline-notification__action-button.bx--btn--ghost{margin-right:.5rem}.bx--inline-notification__close-button{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:absolute;top:0;right:0;display:flex;width:3rem;min-width:3rem;max-width:3rem;height:3rem;flex-direction:column;align-items:center;justify-content:center;padding:0;border:none;background:rgba(0,0,0,0);cursor:pointer;transition:outline 110ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--inline-notification__close-button:focus{outline:2px solid #fff;outline-offset:-2px}.bx--inline-notification__close-button .bx--inline-notification__close-icon{fill:#fff}@media(min-width: 42rem){.bx--inline-notification__close-button{position:static}}.bx--inline-notification--low-contrast .bx--inline-notification__close-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--inline-notification--low-contrast .bx--inline-notification__close-button:focus{outline-style:dotted}}.bx--inline-notification--low-contrast .bx--inline-notification__close-button .bx--inline-notification__close-icon{fill:#161616}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--inline-notification{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--inline-notification__close-button:focus,.bx--btn.bx--btn--ghost.bx--inline-notification__action-button:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--inline-notification .bx--inline-notification__close-icon{fill:ButtonText}}.bx--toast-notification{display:flex;width:18rem;height:auto;padding-left:1rem;margin-top:.5rem;margin-right:1rem;margin-bottom:.5rem;box-shadow:0 2px 6px 0 rgba(0,0,0,.2);color:#fff}.bx--toast-notification:first-child{margin-top:1rem}@media(min-width: 99rem){.bx--toast-notification{width:22rem}}.bx--toast-notification:not(.bx--toast-notification--low-contrast) a{color:#78a9ff}.bx--toast-notification a{text-decoration:none}.bx--toast-notification a:hover{text-decoration:underline}.bx--toast-notification a:focus{outline:1px solid #78a9ff}.bx--toast-notification.bx--toast-notification--low-contrast a:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--toast-notification.bx--toast-notification--low-contrast a:focus{outline-style:dotted}}.bx--toast-notification--low-contrast{color:#161616}.bx--toast-notification--error{border-left:3px solid #fa4d56;background:#393939}.bx--toast-notification--error .bx--inline-notification__icon,.bx--toast-notification--error .bx--toast-notification__icon,.bx--toast-notification--error .bx--actionable-notification__icon{fill:#fa4d56}.bx--toast-notification--low-contrast.bx--toast-notification--error{border-left:3px solid #da1e28;background:#fff1f1}.bx--toast-notification--low-contrast.bx--toast-notification--error .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--error .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--error .bx--actionable-notification__icon{fill:#da1e28}.bx--toast-notification--success{border-left:3px solid #42be65;background:#393939}.bx--toast-notification--success .bx--inline-notification__icon,.bx--toast-notification--success .bx--toast-notification__icon,.bx--toast-notification--success .bx--actionable-notification__icon{fill:#42be65}.bx--toast-notification--low-contrast.bx--toast-notification--success{border-left:3px solid #198038;background:#defbe6}.bx--toast-notification--low-contrast.bx--toast-notification--success .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--success .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--success .bx--actionable-notification__icon{fill:#198038}.bx--toast-notification--info,.bx--toast-notification--info-square{border-left:3px solid #4589ff;background:#393939}.bx--toast-notification--info .bx--inline-notification__icon,.bx--toast-notification--info .bx--toast-notification__icon,.bx--toast-notification--info .bx--actionable-notification__icon,.bx--toast-notification--info-square .bx--inline-notification__icon,.bx--toast-notification--info-square .bx--toast-notification__icon,.bx--toast-notification--info-square .bx--actionable-notification__icon{fill:#4589ff}.bx--toast-notification--low-contrast.bx--toast-notification--info,.bx--toast-notification--low-contrast.bx--toast-notification--info-square{border-left:3px solid #0043ce;background:#edf5ff}.bx--toast-notification--low-contrast.bx--toast-notification--info .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info-square .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info-square .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--info-square .bx--actionable-notification__icon{fill:#0043ce}.bx--toast-notification--warning,.bx--toast-notification--warning-alt{border-left:3px solid #f1c21b;background:#393939}.bx--toast-notification--warning .bx--inline-notification__icon,.bx--toast-notification--warning .bx--toast-notification__icon,.bx--toast-notification--warning .bx--actionable-notification__icon,.bx--toast-notification--warning-alt .bx--inline-notification__icon,.bx--toast-notification--warning-alt .bx--toast-notification__icon,.bx--toast-notification--warning-alt .bx--actionable-notification__icon{fill:#f1c21b}.bx--toast-notification--low-contrast.bx--toast-notification--warning,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt{border-left:3px solid #f1c21b;background:#fdf6dd}.bx--toast-notification--low-contrast.bx--toast-notification--warning .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning .bx--actionable-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt .bx--inline-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt .bx--toast-notification__icon,.bx--toast-notification--low-contrast.bx--toast-notification--warning-alt .bx--actionable-notification__icon{fill:#f1c21b}.bx--toast-notification--warning .bx--toast-notification__icon path[opacity=\"0\"]{fill:#000;opacity:1}.bx--toast-notification__icon{flex-shrink:0;margin-top:1rem;margin-right:1rem}.bx--toast-notification__details{margin-right:1rem}.bx--toast-notification__close-button{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:flex;width:3rem;min-width:3rem;height:3rem;min-height:3rem;flex-direction:column;align-items:center;justify-content:center;padding:0;border:none;margin-left:auto;background-color:rgba(0,0,0,0);cursor:pointer;transition:outline 110ms,background-color 110ms}.bx--toast-notification__close-button:focus{outline:2px solid #fff;outline-offset:-2px}.bx--toast-notification__close-button .bx--toast-notification__close-icon{fill:#fff}.bx--toast-notification--low-contrast .bx--toast-notification__close-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--toast-notification--low-contrast .bx--toast-notification__close-button:focus{outline-style:dotted}}.bx--toast-notification--low-contrast .bx--toast-notification__close-button .bx--toast-notification__close-icon{fill:#161616}.bx--toast-notification__title{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;margin-top:1rem;font-weight:600;word-break:break-word}.bx--toast-notification__subtitle{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;margin-top:0;margin-bottom:1rem;color:#fff;word-break:break-word}.bx--toast-notification--low-contrast .bx--toast-notification__subtitle{color:#161616}.bx--toast-notification__caption{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;padding-top:.5rem;margin-bottom:1rem;color:#fff}.bx--toast-notification--low-contrast .bx--toast-notification__caption{color:#161616}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--toast-notification{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--toast-notification__close-button:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--toast-notification .bx--toast-notification__close-icon{fill:ButtonText}}.bx--number{position:relative;display:flex;width:100%;flex-direction:column}.bx--number input[type=number]{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:inline-flex;width:100%;min-width:9.375rem;height:2.5rem;box-sizing:border-box;padding-right:8rem;padding-left:1rem;border:0;border-bottom:.0625rem solid #8d8d8d;-moz-appearance:textfield;background-color:#f4f4f4;border-radius:0;color:#161616;font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-weight:300;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--number input[type=number]:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--number input[type=number]:focus{outline-style:dotted}}.bx--number input[type=number]:disabled~.bx--number__controls{cursor:not-allowed;pointer-events:none}.bx--number input[type=number]:disabled~.bx--number__controls svg{fill:#c6c6c6}.bx--number input[type=number]::-ms-clear{display:none}.bx--number input[type=number]::-webkit-inner-spin-button{appearance:none}.bx--number--xl.bx--number input[type=number],.bx--number--lg.bx--number input[type=number]{padding-right:9rem}.bx--number--sm.bx--number input[type=number]{padding-right:7rem}.bx--number input[type=number]:disabled{border-bottom-color:rgba(0,0,0,0);background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--number__input-wrapper{position:relative;display:flex;align-items:center}.bx--number__controls{position:absolute;top:50%;right:0;display:flex;width:5rem;height:100%;flex-direction:row;align-items:center;justify-content:center;transform:translateY(-50%)}.bx--number__control-btn{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;position:relative;display:inline-flex;height:100%;align-items:center;justify-content:center;border-bottom:.0625rem solid #8d8d8d;color:#161616}.bx--number__control-btn::-moz-focus-inner{border:0}.bx--number__control-btn::before,.bx--number__control-btn::after{position:absolute;top:.125rem;display:block;width:.125rem;height:2.25rem;background-color:#f4f4f4;content:\"\"}.bx--number__control-btn::before{left:0}.bx--number__control-btn::after{right:0}.bx--number__control-btn svg{fill:currentColor}.bx--number__control-btn:focus{outline:1px solid #0f62fe;color:#161616;outline-offset:-2px;outline-width:2px}@media screen and (prefers-contrast){.bx--number__control-btn:focus{outline-style:dotted}}.bx--number__control-btn:hover{background-color:#e5e5e5;color:#161616;cursor:pointer}.bx--number__control-btn:hover::before,.bx--number__control-btn:hover::after{background-color:#e5e5e5}.bx--number__control-btn:focus::before,.bx--number__control-btn:focus::after,.bx--number__control-btn:hover:focus::before,.bx--number__control-btn:hover:focus::after{background-color:rgba(0,0,0,0)}.bx--number__control-btn:disabled{border-bottom-color:rgba(0,0,0,0);color:#c6c6c6;cursor:not-allowed}.bx--number__control-btn.down-icon{order:1}.bx--number__control-btn.up-icon{order:2}.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn{border-bottom-width:0}.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn:hover{outline:2px solid #0f62fe;outline-offset:-2px;border:0}@media screen and (prefers-contrast){.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn:hover{outline-style:dotted}}.bx--number input[type=number][data-invalid]~.bx--number__controls .bx--number__control-btn{border-bottom-width:0}.bx--number input[type=number][data-invalid]:not(:focus)~.bx--number__controls .bx--number__control-btn:hover{outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--number input[type=number][data-invalid]:not(:focus)~.bx--number__controls .bx--number__control-btn:hover{outline-style:dotted}}.bx--number input[type=number]:focus~.bx--number__controls .bx--number__control-btn.up-icon::after{background-color:rgba(0,0,0,0)}.bx--number input[type=number][data-invalid]~.bx--number__controls .bx--number__control-btn.up-icon::after{background-color:#da1e28}.bx--number input[type=number][data-invalid]:focus~.bx--number__controls .bx--number__control-btn.up-icon::after,.bx--number input[type=number][data-invalid]~.bx--number__controls .bx--number__control-btn.up-icon:focus::after{background-color:#0f62fe}.bx--number__rule-divider{position:absolute;z-index:6000;width:.0625rem;height:1rem;background-color:#e0e0e0}.bx--number__rule-divider:first-of-type{order:0}.bx--number__controls .bx--number__rule-divider:first-of-type{left:0;background-color:rgba(0,0,0,0)}.bx--number__invalid+.bx--number__controls .bx--number__rule-divider:first-of-type{background-color:#e0e0e0}.bx--number--light .bx--number__rule-divider,.bx--number--light .bx--number__invalid+.bx--number__controls .bx--number__rule-divider:first-of-type{background-color:#e0e0e0}.bx--number input[type=number]:disabled+.bx--number__controls .bx--number__rule-divider:first-of-type{background-color:rgba(0,0,0,0)}.bx--number input[type=number]:disabled+.bx--number__controls .bx--number__rule-divider{background-color:#c6c6c6}.bx--number__control-btn:focus~.bx--number__rule-divider{background-color:rgba(0,0,0,0)}.bx--number__invalid{position:absolute;right:6rem;fill:#da1e28}.bx--number--xl .bx--number__invalid,.bx--number--lg .bx--number__invalid{right:7rem}.bx--number--sm .bx--number__invalid{right:5rem}.bx--number__invalid+.bx--number__rule-divider{position:absolute;right:5rem}.bx--number--xl .bx--number__invalid+.bx--number__rule-divider,.bx--number--lg .bx--number__invalid+.bx--number__rule-divider{right:6rem}.bx--number--sm .bx--number__invalid+.bx--number__rule-divider{right:4rem}.bx--number__control-btn.down-icon:hover~.bx--number__rule-divider,.bx--number__control-btn.up-icon:hover+.bx--number__rule-divider,.bx--number__control-btn.down-icon:focus~.bx--number__rule-divider,.bx--number__control-btn.up-icon:focus+.bx--number__rule-divider{background-color:rgba(0,0,0,0)}.bx--number__invalid--warning{fill:#f1c21b}.bx--number__invalid--warning path:first-of-type{fill:#000;opacity:1}.bx--number--light input[type=number]{background-color:#fff}.bx--number--light input[type=number]:disabled{background-color:#fff}.bx--number--light .bx--number__control-btn::before,.bx--number--light .bx--number__control-btn::after{background-color:#fff}.bx--number--light .bx--number__control-btn:focus::before,.bx--number--light .bx--number__control-btn:focus::after{background-color:rgba(0,0,0,0)}.bx--number--light .bx--number__control-btn:hover,.bx--number--light .bx--number__control-btn:not(:focus):hover::before,.bx--number--light .bx--number__control-btn:not(:focus):hover::after{background-color:#e5e5e5}.bx--number--xl input[type=number],.bx--number--lg input[type=number]{height:3rem}.bx--number--xl .bx--number__controls,.bx--number--lg .bx--number__controls{width:6rem}.bx--number--xl .bx--number__control-btn,.bx--number--lg .bx--number__control-btn{width:3rem}.bx--number--xl .bx--number__control-btn::before,.bx--number--xl .bx--number__control-btn::after,.bx--number--lg .bx--number__control-btn::before,.bx--number--lg .bx--number__control-btn::after{height:2.75rem}.bx--number--sm input[type=number]{height:2rem}.bx--number--sm .bx--number__controls{width:4rem}.bx--number--sm .bx--number__control-btn{width:2rem}.bx--number--sm .bx--number__control-btn::before,.bx--number--sm .bx--number__control-btn::after{height:1.75rem}.bx--number--nolabel .bx--label+.bx--form__helper-text{margin-top:0}.bx--number--nosteppers input[type=number]{padding-right:3rem}.bx--number--nosteppers .bx--number__invalid{right:1rem}.bx--number--readonly input[type=number]{background:rgba(0,0,0,0)}.bx--number--readonly .bx--number__controls{display:none}.bx--number__readonly-icon{position:absolute;right:1rem}.bx--number.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:100%;height:2.5rem}.bx--number.bx--skeleton:hover,.bx--number.bx--skeleton:focus,.bx--number.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--number.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--number.bx--skeleton::before{animation:none}}.bx--number.bx--skeleton input[type=number]{display:none}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--number__control-btn:hover,.bx--number__control-btn:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--number__control-btn{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--number__control-btn svg{fill:ButtonText}}.bx--overflow-menu,.bx--overflow-menu__trigger{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:relative;display:flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;cursor:pointer;transition:outline 110ms cubic-bezier(0, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--overflow-menu::-moz-focus-inner,.bx--overflow-menu__trigger::-moz-focus-inner{border:0}.bx--overflow-menu:focus,.bx--overflow-menu__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--overflow-menu:focus,.bx--overflow-menu__trigger:focus{outline-style:dotted}}.bx--overflow-menu:hover,.bx--overflow-menu__trigger:hover{background-color:#e5e5e5}.bx--overflow-menu--sm{width:2rem;height:2rem}.bx--overflow-menu--xl,.bx--overflow-menu--lg{width:3rem;height:3rem}.bx--overflow-menu__trigger.bx--tooltip--a11y.bx--tooltip__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--overflow-menu__trigger.bx--tooltip--a11y.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--overflow-menu__trigger.bx--tooltip--a11y.bx--tooltip__trigger:focus svg{outline:none}.bx--overflow-menu.bx--overflow-menu--open,.bx--overflow-menu.bx--overflow-menu--open .bx--overflow-menu__trigger{box-shadow:0 2px 6px rgba(0,0,0,.3);background-color:#f4f4f4;transition:none}.bx--overflow-menu--light.bx--overflow-menu--open,.bx--overflow-menu--light.bx--overflow-menu--open .bx--overflow-menu__trigger{background-color:#fff}.bx--overflow-menu__icon{width:1rem;height:1rem;fill:#161616}.bx--overflow-menu-options{box-shadow:0 2px 6px rgba(0,0,0,.3);position:absolute;z-index:6000;top:32px;left:0;display:none;width:10rem;flex-direction:column;align-items:flex-start;background-color:#f4f4f4;list-style:none}.bx--overflow-menu-options::after{position:absolute;display:block;background-color:#f4f4f4;content:\"\";transition:background-color 110ms cubic-bezier(0, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--overflow-menu-options::after{transition:none}}.bx--overflow-menu.bx--overflow-menu--open:hover{background-color:#f4f4f4}.bx--overflow-menu-options--light{background-color:#fff}.bx--overflow-menu-options--light::after{background-color:#fff}.bx--overflow-menu.bx--overflow-menu--light.bx--overflow-menu--open:hover{background-color:#fff}.bx--overflow-menu-options[data-floating-menu-direction=bottom]::after{top:-0.1875rem;left:0;width:2.5rem;height:.1875rem}.bx--overflow-menu-options[data-floating-menu-direction=top]::after{bottom:-0.5rem;left:0;width:2.5rem;height:.5rem}.bx--overflow-menu-options[data-floating-menu-direction=left]::after{top:0;right:-0.375rem;width:.375rem;height:2.5rem}.bx--overflow-menu-options[data-floating-menu-direction=right]::after{top:0;left:-0.375rem;width:.375rem;height:2.5rem}.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=bottom]::after,.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=top]::after{width:2rem}.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=left]::after,.bx--overflow-menu-options--sm.bx--overflow-menu-options[data-floating-menu-direction=right]::after{height:2rem}.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=bottom]::after,.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=top]::after,.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=bottom]::after,.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=top]::after{width:3rem}.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=left]::after,.bx--overflow-menu-options--xl.bx--overflow-menu-options[data-floating-menu-direction=right]::after,.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=left]::after,.bx--overflow-menu-options--lg.bx--overflow-menu-options[data-floating-menu-direction=right]::after{height:3rem}.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=top]::after,.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=bottom]::after{right:0;left:auto}.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=left]::after,.bx--overflow-menu--flip.bx--overflow-menu-options[data-floating-menu-direction=right]::after{top:auto;bottom:0}.bx--overflow-menu-options--open{display:flex}.bx--overflow-menu-options__content{width:100%}.bx--overflow-menu-options__option{display:flex;width:100%;height:2.5rem;align-items:center;padding:0;background-color:rgba(0,0,0,0);transition:background-color 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--overflow-menu-options--sm .bx--overflow-menu-options__option{height:2rem}.bx--overflow-menu-options--xl .bx--overflow-menu-options__option,.bx--overflow-menu-options--lg .bx--overflow-menu-options__option{height:3rem}.bx--overflow-menu--divider{border-top:1px solid #e0e0e0}.bx--overflow-menu--light .bx--overflow-menu--divider{border-top:1px solid #e0e0e0}a.bx--overflow-menu-options__btn::before{display:inline-block;height:100%;content:\"\";vertical-align:middle}.bx--overflow-menu-options__btn{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:inline-flex;width:100%;max-width:11.25rem;height:100%;align-items:center;padding:0 1rem;border:none;background-color:rgba(0,0,0,0);color:#525252;cursor:pointer;font-weight:400;text-align:left;transition:outline 110ms cubic-bezier(0, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0, 0, 0.38, 0.9),color 110ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--overflow-menu-options__btn:hover{color:#161616}.bx--overflow-menu-options__btn:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--overflow-menu-options__btn:focus{outline-style:dotted}}.bx--overflow-menu-options__btn::-moz-focus-inner{border:none}.bx--overflow-menu-options__btn svg{fill:#525252}.bx--overflow-menu-options__btn:hover svg{fill:#161616}.bx--overflow-menu-options__option-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--overflow-menu-options__option:hover{background-color:#e5e5e5}.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:hover,.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:focus{background-color:#da1e28;color:#fff}.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:hover svg,.bx--overflow-menu-options__option--danger .bx--overflow-menu-options__btn:focus svg{fill:currentColor}.bx--overflow-menu-options__option--disabled:hover{background-color:#f4f4f4;cursor:not-allowed}.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn{color:#c6c6c6;pointer-events:none}.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn:hover,.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn:active,.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn:focus{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;background-color:#f4f4f4}.bx--overflow-menu-options__option--disabled .bx--overflow-menu-options__btn svg{fill:#c6c6c6}.bx--overflow-menu--flip{left:-140px}.bx--overflow-menu--flip::before{left:145px}.bx--overflow-menu__container{display:inline-block}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--overflow-menu:focus,.bx--overflow-menu-options__btn:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--overflow-menu svg{fill:ButtonText}}.bx--pagination-nav{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;line-height:0}.bx--pagination-nav__list{display:flex;align-items:center;list-style:none}.bx--pagination-nav__list-item{padding:0}.bx--pagination-nav__list-item:first-child{padding-left:0}.bx--pagination-nav__list-item:last-child{padding-right:0}.bx--pagination-nav__page{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;position:relative;display:block;min-width:3rem;padding:1.0625rem .25rem;border-radius:0;color:#525252;font-weight:400;line-height:1;outline:0;text-align:center;text-decoration:none;transition:background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9),color 110ms cubic-bezier(0.2, 0, 0.38, 0.9);user-select:none}.bx--pagination-nav__page::-moz-focus-inner{border:0}.bx--pagination-nav__page:hover{background-color:#e5e5e5;color:#525252}.bx--pagination-nav__page:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--pagination-nav__page:focus{outline-style:dotted}}.bx--pagination-nav__page:disabled,.bx--pagination-nav__page.bx--pagination-nav__page--disabled{background:none;color:rgba(82,82,82,.5);outline:none;pointer-events:none}.bx--pagination-nav__page:not(.bx--pagination-nav__page--direction)::after{position:absolute;bottom:0;left:50%;display:block;width:0;height:.25rem;background-color:#0f62fe;content:\"\";opacity:0;transition:width 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--pagination-nav__page:not(.bx--pagination-nav__page--direction)::after{transition:none}}.bx--pagination-nav__page--active+.bx--pagination-nav__page::after,.bx--pagination-nav__page.bx--pagination-nav__page--active::after{left:calc(50% - 0.5rem);width:1rem;opacity:1}.bx--pagination-nav__page.bx--pagination-nav__page--active{background-color:initial;color:#525252;font-weight:600}.bx--pagination-nav__page .bx--pagination-nav__icon{fill:currentColor;pointer-events:none}.bx--pagination-nav__page--direction{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;line-height:0}.bx--pagination-nav__select{position:relative}.bx--pagination-nav__page--select{max-height:3rem;appearance:none;text-indent:calc(50% - 4.5px)}@-moz-document url-prefix(){.bx--pagination-nav__page--select{text-indent:0}}.bx--pagination-nav__select-icon-wrapper{position:absolute;top:0;width:100%;height:100%;pointer-events:none}.bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction)::after{position:absolute;bottom:0;left:50%;display:block;width:0;height:.25rem;background-color:#0f62fe;content:\"\";opacity:0;transition:width 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction)::after{transition:none}}.bx--pagination-nav__page--active+.bx--pagination-nav__select-icon-wrapper::after,.bx--pagination-nav__select-icon-wrapper.bx--pagination-nav__page--active::after{left:calc(50% - 0.5rem);width:1rem;opacity:1}.bx--pagination-nav__page--active+.bx--pagination-nav__select-icon-wrapper .bx--pagination-nav__select-icon{display:none}.bx--pagination-nav__select-icon{position:absolute;top:calc(50% - 0.5rem);left:calc(50% - 0.5rem);pointer-events:none}.bx--pagination-nav__accessibility-label{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--select{position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}.bx--select-input__wrapper{position:relative;display:flex;width:100%;align-items:center}.bx--select-input{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:block;width:100%;height:2.5rem;padding:0 3rem 0 1rem;border:none;border-bottom:1px solid #8d8d8d;appearance:none;background-color:#f4f4f4;border-radius:0;color:#161616;cursor:pointer;font-family:inherit;opacity:1;transition:outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--select-input:hover{background-color:#e5e5e5}.bx--select-input::-ms-expand{display:none}@-moz-document url-prefix(){.bx--select-input:-moz-focusring,.bx--select-input::-moz-focus-inner{background-image:none;color:rgba(0,0,0,0);text-shadow:0 0 0 #000}}.bx--select-input:focus{outline:2px solid #0f62fe;outline-offset:-2px;color:#161616}@media screen and (prefers-contrast){.bx--select-input:focus{outline-style:dotted}}.bx--select-input:disabled,.bx--select-input:hover:disabled{border-bottom-color:#f4f4f4;background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--select-input--sm{height:2rem;max-height:2rem}.bx--select-input--xl,.bx--select-input--lg{height:3rem;max-height:3rem}.bx--select--disabled .bx--label,.bx--select--disabled .bx--form__helper-text{color:#c6c6c6}.bx--select-input__wrapper[data-invalid] .bx--select-input,.bx--select--warning .bx--select-input{padding-right:4.5rem}.bx--select-input:disabled~.bx--select__arrow{fill:#c6c6c6}.bx--select--light .bx--select-input{background-color:#fff}.bx--select--light .bx--select-input:hover{background-color:#e5e5e5}.bx--select--light .bx--select-input:disabled,.bx--select--light .bx--select-input:hover:disabled{background-color:#fff;color:#c6c6c6;cursor:not-allowed}.bx--select__arrow{position:absolute;top:0;right:1rem;height:100%;fill:#161616;pointer-events:none}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--select__arrow path{fill:ButtonText}}.bx--select__invalid-icon{position:absolute;right:2.5rem}.bx--select-input__wrapper[data-invalid] .bx--select-input~.bx--select__invalid-icon{fill:#da1e28}.bx--select__invalid-icon--warning{fill:#f1c21b}.bx--select__invalid-icon--warning path[fill]{fill:#000;opacity:1}optgroup.bx--select-optgroup,.bx--select-option{background-color:#e5e5e5;color:#161616}optgroup.bx--select-optgroup:disabled,.bx--select-option:disabled{color:#c6c6c6}.bx--select--inline{display:flex;flex-direction:row;align-items:center}.bx--select--inline.bx--select--invalid .bx--label,.bx--select--inline.bx--select--invalid .bx--form__helper-text{align-self:flex-start;margin-top:.8125rem}.bx--select--inline .bx--form__helper-text{margin-bottom:0;margin-left:.5rem}.bx--select--inline .bx--label{margin:0 .5rem 0 0;white-space:nowrap}.bx--select--inline .bx--select-input{width:auto;padding-right:2rem;padding-left:.5rem;border-bottom:none;background-color:rgba(0,0,0,0);color:#161616}.bx--select--inline .bx--select-input:focus,.bx--select--inline .bx--select-input:focus option,.bx--select--inline .bx--select-input:focus optgroup{background-color:#fff}.bx--select--inline .bx--select-input[disabled],.bx--select--inline .bx--select-input[disabled]:hover{background-color:#f4f4f4}.bx--select--inline .bx--select__arrow{right:.5rem}.bx--select--inline.bx--select--invalid .bx--select-input{padding-right:3.5rem}.bx--select--inline.bx--select--invalid .bx--select-input~.bx--select__invalid-icon{right:2rem}.bx--select--inline .bx--select-input:disabled{color:#c6c6c6;cursor:not-allowed}.bx--select--inline .bx--select-input:disabled~*{cursor:not-allowed}.bx--select.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:100%;height:2.5rem}.bx--select.bx--skeleton:hover,.bx--select.bx--skeleton:focus,.bx--select.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--select.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--select.bx--skeleton::before{animation:none}}.bx--select.bx--skeleton .bx--select-input{display:none}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--select__arrow{fill:ButtonText}}.bx--text-input{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;width:100%;height:2.5rem;padding:0 1rem;border:none;border-bottom:1px solid #8d8d8d;background-color:#f4f4f4;color:#161616;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--text-input:focus,.bx--text-input:active{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--text-input:focus,.bx--text-input:active{outline-style:dotted}}.bx--text-input-wrapper svg[hidden]{display:none}.bx--text-input--xl,.bx--text-input--lg{height:3rem}.bx--text-input--sm{height:2rem}.bx--password-input{padding-right:2.5rem}.bx--text-input--sm.bx--password-input{padding-right:2rem}.bx--text-input--lg.bx--password-input{padding-right:3rem}.bx--text-input::placeholder{color:#6f6f6f;opacity:1}.bx--text-input--light{background-color:#fff}.bx--text-input__field-wrapper{position:relative;display:flex;width:100%}.bx--text-input__invalid-icon,.bx--text-input__readonly-icon{position:absolute;top:50%;right:1rem;transform:translateY(-50%)}.bx--text-input__invalid-icon{fill:#da1e28}.bx--text-input__invalid-icon--warning{fill:#f1c21b}.bx--text-input__invalid-icon--warning path:first-of-type{fill:#000;opacity:1}.bx--text-input--password__visibility{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--text-input--password__visibility:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--text-input--password__visibility:focus{outline-style:dotted}}.bx--text-input--password__visibility:focus{outline:1px solid rgba(0,0,0,0)}.bx--text-input--password__visibility:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--text-input--password__visibility:focus svg{outline-style:dotted}}.bx--text-input--password__visibility::before,.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--text-input--password__visibility::before,.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{display:inline-block}}.bx--text-input--password__visibility::before,.bx--text-input--password__visibility::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--text-input--password__visibility::before,.bx--text-input--password__visibility::after{transition:none}}.bx--text-input--password__visibility.bx--tooltip--a11y::before,.bx--text-input--password__visibility.bx--tooltip--a11y::after{transition:none}.bx--text-input--password__visibility::before{width:0;height:0;border-style:solid;content:\"\"}.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--text-input--password__visibility::after{content:attr(aria-label)}.bx--text-input--password__visibility.bx--tooltip--a11y::after{content:none}.bx--text-input--password__visibility.bx--tooltip--visible::before,.bx--text-input--password__visibility.bx--tooltip--visible::after,.bx--text-input--password__visibility:hover::before,.bx--text-input--password__visibility:hover::after,.bx--text-input--password__visibility:focus::before,.bx--text-input--password__visibility:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--text-input--password__visibility.bx--tooltip--visible .bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--visible+.bx--assistive-text,.bx--text-input--password__visibility:hover .bx--assistive-text,.bx--text-input--password__visibility:hover+.bx--assistive-text,.bx--text-input--password__visibility:focus .bx--assistive-text,.bx--text-input--password__visibility:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--text-input--password__visibility.bx--tooltip--visible .bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--visible+.bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--text-input--password__visibility:hover .bx--assistive-text,.bx--text-input--password__visibility:hover+.bx--assistive-text,.bx--text-input--password__visibility:hover.bx--tooltip--a11y::before,.bx--text-input--password__visibility:focus .bx--assistive-text,.bx--text-input--password__visibility:focus+.bx--assistive-text,.bx--text-input--password__visibility:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--text-input--password__visibility.bx--tooltip--hidden .bx--assistive-text,.bx--text-input--password__visibility.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--text-input--password__visibility.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--text-input--password__visibility .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--text-input--password__visibility::before,.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{bottom:0;left:50%}.bx--text-input--password__visibility::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--text-input--password__visibility::after,.bx--text-input--password__visibility .bx--assistive-text,.bx--text-input--password__visibility+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--text-input--password__visibility,.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:absolute;right:0;display:flex;width:2.5rem;height:100%;min-height:auto;align-items:center;justify-content:center;padding:0;border:0;background:none;cursor:pointer;transition:outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--text-input--sm+.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger{width:2rem}.bx--text-input--lg+.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger{width:3rem}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg{fill:#525252;transition:fill 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg{fill:ButtonText}}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:hover svg,.bx--btn.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:focus svg{fill:#161616}.bx--text-input--invalid,.bx--text-input--warning,.bx--text-input-wrapper--readonly .bx--text-input{padding-right:2.5rem}.bx--text-input--invalid.bx--password-input{padding-right:4rem}.bx--text-input--invalid+.bx--text-input--password__visibility,.bx--text-input--invalid+.bx--text-input--password__visibility__toggle{right:1rem}.bx--password-input-wrapper .bx--text-input__invalid-icon{right:2.5rem}.bx--text-input:disabled+.bx--text-input--password__visibility svg,.bx--text-input:disabled+.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg{cursor:not-allowed;fill:#c6c6c6}.bx--text-input:disabled+.bx--text-input--password__visibility svg:hover,.bx--text-input:disabled+.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg:hover{fill:#c6c6c6}.bx--text-input:disabled{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;border-bottom:1px solid rgba(0,0,0,0);background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed;-webkit-text-fill-color:#c6c6c6}.bx--text-input--light:disabled{background-color:#fff}.bx--text-input:disabled::placeholder{color:#c6c6c6;opacity:1}.bx--text-input--invalid{outline:2px solid #da1e28;outline-offset:-2px;box-shadow:none}@media screen and (prefers-contrast){.bx--text-input--invalid{outline-style:dotted}}.bx--text-input--invalid .bx--text-input--password__visibility,.bx--text-input--invalid .bx--text-input--password__visibility__toggle{right:2.5rem}.bx--skeleton.bx--text-input{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none}.bx--skeleton.bx--text-input:hover,.bx--skeleton.bx--text-input:focus,.bx--skeleton.bx--text-input:active{border:none;cursor:default;outline:none}.bx--skeleton.bx--text-input::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--skeleton.bx--text-input::before{animation:none}}.bx--form--fluid .bx--text-input-wrapper{position:relative;background:#f4f4f4;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--form--fluid .bx--label{position:absolute;z-index:1;top:.8125rem;left:1rem;margin:0}.bx--form--fluid .bx--form__helper-text{display:none}.bx--form--fluid .bx--text-input{min-height:4rem;padding:2rem 1rem .8125rem}.bx--text-input__divider,.bx--form--fluid .bx--text-input__divider{display:none}.bx--form--fluid .bx--text-input--invalid,.bx--form--fluid .bx--text-input--warn{border-bottom:none}.bx--form--fluid .bx--text-input--invalid+.bx--text-input__divider,.bx--form--fluid .bx--text-input--warn+.bx--text-input__divider{display:block;border-style:solid;border-color:#e0e0e0;border-bottom:none;margin:0 1rem}.bx--form--fluid .bx--text-input__invalid-icon{top:5rem}.bx--form--fluid .bx--text-input-wrapper--light{background:#fff}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid{outline:2px solid rgba(0,0,0,0);outline-offset:-2px}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]:not(:focus){outline:2px solid #da1e28;outline-offset:-2px}@media screen and (prefers-contrast){.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]:not(:focus){outline-style:dotted}}.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--form--fluid .bx--text-input__field-wrapper[data-invalid]>.bx--text-input--invalid:focus{outline-style:dotted}}.bx--text-input-wrapper.bx--text-input-wrapper--inline{flex-flow:row wrap}.bx--text-input-wrapper .bx--label--inline{flex:1;margin:.8125rem 0 0 0;overflow-wrap:break-word;word-break:break-word}.bx--text-input-wrapper .bx--label--inline--sm{margin-top:.5625rem}.bx--text-input-wrapper .bx--label--inline--xl,.bx--text-input-wrapper .bx--label--inline--lg{margin-top:1.0625rem}.bx--text-input__label-helper-wrapper{max-width:8rem;flex:2;flex-direction:column;margin-right:1.5rem;overflow-wrap:break-word}.bx--text-input-wrapper .bx--form__helper-text--inline{margin-top:.125rem}.bx--text-input__field-outer-wrapper{display:flex;width:100%;flex:1 1 auto;flex-direction:column;align-items:flex-start}.bx--text-input__field-outer-wrapper--inline{flex:8;flex-direction:column}.bx--form--fluid .bx--text-input-wrapper--readonly,.bx--text-input-wrapper--readonly .bx--text-input{background:rgba(0,0,0,0)}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--text-input--password__visibility,.bx--btn.bx--btn--icon-only.bx--text-input--password__visibility__toggle.bx--tooltip__trigger svg,.bx--btn.bx--btn--icon-only.bx--text-input--password__visibility__toggle.bx--tooltip__trigger:hover svg{fill:ButtonText}}.bx--data-table-container+.bx--pagination{border-top:0}.bx--pagination{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;width:calc(100% - 1px);min-height:2.5rem;align-items:center;justify-content:space-between;border-top:1px solid #e0e0e0;background-color:#f4f4f4;overflow-x:auto}@media(min-width: 42rem){.bx--pagination{overflow:initial}.bx--pagination .bx--pagination__control-buttons{display:flex}}@media(max-width: 41.98rem){.bx--pagination .bx--pagination__left>*,.bx--pagination .bx--pagination__right>*{display:none}.bx--pagination .bx--pagination__items-count{display:initial}.bx--pagination .bx--pagination__control-buttons{display:flex}}.bx--pagination--sm{min-height:2rem}.bx--pagination--lg{min-height:3rem}.bx--pagination .bx--select{height:100%;align-items:center}.bx--pagination .bx--select-input--inline__wrapper{display:flex;height:100%}.bx--pagination .bx--select-input{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;width:auto;min-width:auto;height:100%;padding:0 2.25rem 0 1rem;background-color:#f4f4f4;line-height:2.5rem}.bx--pagination--sm .bx--select-input{line-height:2rem}.bx--pagination--lg .bx--select-input{line-height:3rem}.bx--pagination .bx--select-input:hover{background:#e5e5e5}.bx--pagination .bx--select--inline .bx--select-input:focus,.bx--pagination .bx--select--inline .bx--select-input:focus option,.bx--pagination .bx--select--inline .bx--select-input:focus optgroup{background-color:#f4f4f4}.bx--pagination .bx--select__arrow{top:50%;transform:translate(-0.5rem, -50%)}.bx--pagination .bx--select__item-count .bx--select-input{border-right:.0625rem solid #e0e0e0}.bx--pagination .bx--select__page-number .bx--select-input{border-left:1px solid #e0e0e0}.bx--pagination__left,.bx--pagination__right{display:flex;height:100%;align-items:center}.bx--pagination__left>.bx--form-item,.bx--pagination__right>.bx--form-item{height:100%}.bx--pagination__left .bx--pagination__text,.bx--pagination__right .bx--pagination__text{white-space:nowrap}.bx--pagination__left .bx--pagination__text{margin-right:.0625rem}.bx--pagination__right .bx--pagination__text{margin-right:1rem;margin-left:.0625rem}.bx--pagination__left{padding:0 1rem 0 0}@media(min-width: 42rem){.bx--pagination__left{padding:0 1rem}}@media(min-width: 42rem){.bx--pagination__text{display:inline-block}}span.bx--pagination__text{margin-left:1rem;color:#525252}.bx--pagination__button,.bx--btn--ghost.bx--pagination__button{display:flex;width:2.5rem;height:2.5rem;min-height:2rem;align-items:center;justify-content:center;border:none;border-left:1px solid #e0e0e0;margin:0;background:none;cursor:pointer;fill:#161616;transition:outline 110ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--pagination--sm .bx--pagination__button,.bx--pagination--sm .bx--btn--ghost.bx--pagination__button{width:2rem;height:2rem}.bx--pagination--lg .bx--pagination__button,.bx--pagination--lg .bx--btn--ghost.bx--pagination__button{width:3rem;height:3rem}.bx--pagination__button:focus,.bx--btn--ghost:focus.bx--pagination__button{outline:2px solid #0f62fe;outline-offset:-2px;border-left:0}@media screen and (prefers-contrast){.bx--pagination__button:focus,.bx--btn--ghost:focus.bx--pagination__button{outline-style:dotted}}.bx--pagination__button:hover,.bx--btn--ghost:hover.bx--pagination__button{background:#e5e5e5}.bx--pagination__button--no-index,.bx--btn--ghost.bx--pagination__button--no-index{cursor:not-allowed;fill:#c6c6c6}.bx--pagination__button:disabled:hover,.bx--pagination__button--no-index:hover,.bx--btn--ghost:disabled:hover.bx--pagination__button,.bx--btn--ghost:hover.bx--pagination__button--no-index{border-color:#e0e0e0;background:#f4f4f4;cursor:not-allowed;fill:#c6c6c6}.bx--pagination.bx--skeleton .bx--skeleton__text{margin-right:1rem;margin-bottom:0}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--pagination__button,.bx--btn--ghost.bx--pagination__button{outline:1px solid rgba(0,0,0,0)}}.bx--progress-bar__label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;min-width:3rem;justify-content:space-between;margin-bottom:.5rem;color:#161616}.bx--progress-bar__label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bx--progress-bar__track{position:relative;width:100%;min-width:3rem;height:.5rem;background-color:#f4f4f4}.bx--progress-bar--big .bx--progress-bar__track{height:.5rem}.bx--progress-bar--small .bx--progress-bar__track{height:.25rem}.bx--progress-bar__bar{display:block;width:100%;height:100%;background-color:currentColor;color:#0f62fe;transform:scaleX(0);transform-origin:0 center /*rtl:100% center*/;transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--progress-bar--indeterminate .bx--progress-bar__track::after{position:absolute;top:0;right:0;bottom:0;left:0;animation-duration:1400ms;animation-iteration-count:infinite;animation-name:progress-bar-indeterminate;animation-timing-function:linear;background-image:linear-gradient(90deg, #0f62fe 12.5%, transparent 12.5%);background-position-x:0%;background-size:200% 100%;content:\"\"}.bx--progress-bar__helper-text{font-size:.75rem;line-height:1.33333;letter-spacing:.32px;margin-top:.5rem;color:#525252}.bx--progress-bar__status-icon{flex-shrink:0;margin-left:1rem}.bx--progress-bar--finished .bx--progress-bar__bar,.bx--progress-bar--finished .bx--progress-bar__status-icon{color:#198038}.bx--progress-bar--error .bx--progress-bar__bar,.bx--progress-bar--error .bx--progress-bar__status-icon,.bx--progress-bar--error .bx--progress-bar__helper-text{color:#da1e28}.bx--progress-bar--finished .bx--progress-bar__bar,.bx--progress-bar--error .bx--progress-bar__bar{transform:scaleX(1)}.bx--progress-bar--finished.bx--progress-bar--inline .bx--progress-bar__track,.bx--progress-bar--error.bx--progress-bar--inline .bx--progress-bar__track{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--progress-bar--finished.bx--progress-bar--inline .bx--progress-bar__label,.bx--progress-bar--error.bx--progress-bar--inline .bx--progress-bar__label{flex-shrink:1;justify-content:flex-start;margin-right:0}@keyframes progress-bar-indeterminate{0%{background-position-x:25%}80%,100%{background-position-x:-105%}}.bx--progress-bar--inline{display:flex;align-items:center}.bx--progress-bar--inline .bx--progress-bar__label{margin-right:1rem;margin-bottom:0}.bx--progress-bar--inline .bx--progress-bar__track{flex-basis:0;flex-grow:1}.bx--progress-bar--inline .bx--progress-bar__helper-text{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--progress-bar--indented .bx--progress-bar__label,.bx--progress-bar--indented .bx--progress-bar__helper-text{padding-right:1rem;padding-left:1rem}.bx--tooltip__label{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;display:inline-flex;align-items:center;color:#525252}.bx--tooltip__label:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__label:focus{outline-style:dotted}}.bx--tooltip__trigger svg{fill:#525252}.bx--tooltip__trigger:not(.bx--btn--icon-only){display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;display:inline-flex;align-items:center;font-size:1rem}.bx--tooltip__trigger:not(.bx--btn--icon-only)::-moz-focus-inner{border:0}.bx--tooltip__trigger:not(.bx--btn--icon-only):focus{outline:1px solid #0f62fe;fill:#0353e9}@media screen and (prefers-contrast){.bx--tooltip__trigger:not(.bx--btn--icon-only):focus{outline-style:dotted}}.bx--tooltip__trigger:not(.bx--btn--icon-only)[disabled] svg{fill:#c6c6c6}.bx--tooltip__label .bx--tooltip__trigger{margin-left:.5rem}.bx--tooltip__label--bold{font-weight:600}.bx--tooltip{box-shadow:0 2px 6px rgba(0,0,0,.3);position:absolute;z-index:6000;display:none;min-width:13rem;max-width:18rem;padding:1rem;margin-top:.25rem;background:#393939;border-radius:.125rem;color:#fff;word-wrap:break-word}.bx--tooltip:focus{box-shadow:inset 0 0 0 1px #393939,inset 0 0 0 2px #fff;outline:0}.bx--tooltip.bx--tooltip--top.bx--tooltip--align-start,.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-start{transform:translate(calc(50% - 22px), 0)}.bx--tooltip.bx--tooltip--top.bx--tooltip--align-start .bx--tooltip__caret,.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-start .bx--tooltip__caret{margin-left:15px}.bx--tooltip.bx--tooltip--top.bx--tooltip--align-end,.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-end{transform:translate(calc(22px - 50%), 0)}.bx--tooltip.bx--tooltip--top.bx--tooltip--align-end .bx--tooltip__caret,.bx--tooltip.bx--tooltip--bottom.bx--tooltip--align-end .bx--tooltip__caret{margin-right:15px}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-start{transform:translate(0, calc(-15px + 50%))}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-start .bx--tooltip__caret{top:14px}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-end{transform:translate(0, calc(31px - 50%))}.bx--tooltip.bx--tooltip--left.bx--tooltip--align-end .bx--tooltip__caret{top:initial;bottom:25px}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-start{transform:translate(0, calc(-26px + 50%))}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-start .bx--tooltip__caret{top:26px}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-end{transform:translate(0, calc(20px - 50%))}.bx--tooltip.bx--tooltip--right.bx--tooltip--align-end .bx--tooltip__caret{top:initial;bottom:12px}.bx--tooltip p{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;text-align:left}.bx--tooltip button{padding-right:2rem}.bx--tooltip .bx--btn:focus{border-color:#fff;outline-color:#393939}.bx--tooltip .bx--link{color:#78a9ff;font-size:.875rem}.bx--tooltip .bx--link:focus{outline:1px solid #fff;outline-offset:2px}.bx--tooltip .bx--link:active,.bx--tooltip .bx--link:active:visited,.bx--tooltip .bx--link:active:visited:hover{color:#fff}.bx--tooltip .bx--link:visited{color:#78a9ff}.bx--tooltip .bx--tooltip__content[tabindex=\"-1\"]:focus{outline:none}.bx--tooltip .bx--tooltip__caret{position:absolute;top:calc(-0.4296875rem + 1px);right:0;left:0;width:0;height:0;border-right:.4296875rem solid rgba(0,0,0,0);border-bottom:.4296875rem solid #393939;border-left:.4296875rem solid rgba(0,0,0,0);margin:0 auto;content:\"\"}.bx--tooltip .bx--tooltip__footer{display:flex;align-items:center;justify-content:space-between;margin-top:1rem}.bx--tooltip[data-floating-menu-direction=left]{margin-left:calc(0.5rem * -1)}.bx--tooltip[data-floating-menu-direction=left] .bx--tooltip__caret{top:50%;right:calc(-0.4296875rem + 1px);left:auto;transform:rotate(90deg) translate(50%, -50%)}.bx--tooltip[data-floating-menu-direction=top]{margin-top:calc(0.5rem * -1)}.bx--tooltip[data-floating-menu-direction=top] .bx--tooltip__caret{top:auto;bottom:calc(-0.4296875rem + 1px);transform:rotate(180deg)}.bx--tooltip[data-floating-menu-direction=right]{margin-left:.5rem}.bx--tooltip[data-floating-menu-direction=right] .bx--tooltip__caret{top:50%;right:auto;left:calc(-0.4296875rem + 1px);transform:rotate(270deg) translate(50%, -50%)}.bx--tooltip[data-floating-menu-direction=bottom]{margin-top:.5rem}.bx--tooltip__heading{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;margin-bottom:.5rem}.bx--tooltip--shown{display:block;margin-top:0}.bx--tooltip--definition{position:relative}.bx--tooltip--definition .bx--tooltip__trigger{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;position:relative;display:inline-flex;border-bottom:1px dotted #0f62fe;color:#161616}.bx--tooltip--definition .bx--tooltip__trigger:hover+.bx--tooltip--definition__top,.bx--tooltip--definition .bx--tooltip__trigger:hover+.bx--tooltip--definition__bottom{display:block}.bx--tooltip--definition .bx--tooltip__trigger:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip--definition .bx--tooltip__trigger:focus{outline-style:dotted}}.bx--tooltip--definition .bx--tooltip__trigger:focus+.bx--tooltip--definition__top,.bx--tooltip--definition .bx--tooltip__trigger:focus+.bx--tooltip--definition__bottom{display:block}.bx--tooltip--definition__bottom,.bx--tooltip--definition__top{box-shadow:0 2px 6px rgba(0,0,0,.3);position:absolute;z-index:1;display:none;width:13rem;padding:.5rem 1rem;margin-top:.75rem;background:#393939;border-radius:.125rem;pointer-events:none}.bx--tooltip--definition__bottom p,.bx--tooltip--definition__top p{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;color:#fff}.bx--tooltip--definition__bottom .bx--tooltip__caret,.bx--tooltip--definition__top .bx--tooltip__caret{position:absolute;right:0;left:0;width:.6rem;height:.6rem;margin-left:1rem;background:#393939}.bx--tooltip--definition__bottom .bx--tooltip__caret{top:-0.2rem;transform:rotate(-135deg)}.bx--tooltip--definition__top{margin-top:-2rem;transform:translateY(-100%)}.bx--tooltip--definition__top .bx--tooltip__caret{bottom:-0.2rem;transform:rotate(45deg)}.bx--tooltip--definition__align-end{right:0}.bx--tooltip--definition__align-center{margin-left:50%;transform:translateX(-50%)}.bx--tooltip--definition__top.bx--tooltip--definition__align-center{margin-left:50%;transform:translate(-50%, -100%)}.bx--tooltip--definition__align-center .bx--tooltip__caret{left:auto;margin-right:calc(50% - 6px);margin-left:auto}.bx--tooltip--definition__align-end .bx--tooltip__caret{left:auto;margin-right:1rem;margin-left:auto}.bx--tooltip--definition.bx--tooltip--a11y{display:inline-flex}.bx--tooltip--definition button.bx--tooltip--a11y{margin:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;border-bottom:.0625rem dotted #525252;transition:border-color 110ms}.bx--tooltip__trigger.bx--tooltip__trigger--definition:hover,.bx--tooltip__trigger.bx--tooltip__trigger--definition:focus{border-bottom-color:#0f62fe}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:default}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after{transition:none}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.5rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::before{top:-0.25rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top+.bx--assistive-text{top:-0.5625rem;left:0;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start::before{top:-0.25rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text{top:-0.5625rem;left:0;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center::before{top:-0.25rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text{top:-0.5625rem;left:50%;transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end::before{top:-0.25rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text{top:-0.5625rem;right:0;left:auto;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:default}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after{transition:none}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.5rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::before{bottom:-0.25rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom+.bx--assistive-text{bottom:-0.5625rem;left:0;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--a11y+.bx--assistive-text{bottom:-0.5rem;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start::before{bottom:-0.25rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text{bottom:-0.5625rem;left:0;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-start.bx--tooltip--a11y+.bx--assistive-text{bottom:-0.5rem;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center::before{bottom:-0.25rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text{bottom:-0.5625rem;transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-center.bx--tooltip--a11y+.bx--assistive-text{bottom:-0.5rem;transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end::before{bottom:-0.25rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text{bottom:-0.5625rem;right:0;left:auto;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip__trigger--definition.bx--tooltip--bottom.bx--tooltip--align-end.bx--tooltip--a11y+.bx--assistive-text{bottom:-0.5rem;transform:translate(0, 100%)}.bx--tooltip--icon{display:inline-flex;align-items:center}.bx--tooltip--icon__top,.bx--tooltip--icon__bottom{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip--icon__top::before,.bx--tooltip--icon__top::after,.bx--tooltip--icon__bottom::before,.bx--tooltip--icon__bottom::after{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:absolute;display:flex;align-items:center;opacity:0;pointer-events:none;transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip--icon__top::before,.bx--tooltip--icon__top::after,.bx--tooltip--icon__bottom::before,.bx--tooltip--icon__bottom::after{transition:none}}.bx--tooltip--icon__top::before,.bx--tooltip--icon__bottom::before{right:0;left:0;width:0;height:0;border-width:0 .25rem .3125rem .25rem;border-style:solid;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);margin:0 auto;margin-top:1px;margin-left:50%;content:\"\"}.bx--tooltip--icon__top::after,.bx--tooltip--icon__bottom::after{box-shadow:0 2px 6px rgba(0,0,0,.3);min-width:1.5rem;max-width:13rem;height:1.5rem;padding:0 1rem;margin-left:50%;background-color:#393939;border-radius:.125rem;color:#fff;content:attr(aria-label);font-weight:400;pointer-events:none;transform:translateX(-50%);white-space:nowrap}.bx--tooltip--icon__top:hover::before,.bx--tooltip--icon__top:hover::after,.bx--tooltip--icon__top:focus::before,.bx--tooltip--icon__top:focus::after,.bx--tooltip--icon__bottom:hover::before,.bx--tooltip--icon__bottom:hover::after,.bx--tooltip--icon__bottom:focus::before,.bx--tooltip--icon__bottom:focus::after{opacity:1}.bx--tooltip--icon__top:hover svg,.bx--tooltip--icon__top:focus svg,.bx--tooltip--icon__bottom:hover svg,.bx--tooltip--icon__bottom:focus svg{fill:#525252}.bx--tooltip--icon__top:focus,.bx--tooltip--icon__bottom:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip--icon__top:focus svg,.bx--tooltip--icon__bottom:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip--icon__top:focus svg,.bx--tooltip--icon__bottom:focus svg{outline-style:dotted}}.bx--tooltip--icon__top::before{transform:translate(-50%, calc(-100% - 9px)) rotate(180deg);top:1px}.bx--tooltip--icon__top::after{transform:translate(-50%, calc(-100% - 12px));top:0}.bx--tooltip--icon__bottom::before{transform:translate(-50%, 10px) rotate(0);bottom:0}.bx--tooltip--icon__bottom::after{transform:translate(-50%, calc(100% + 10px));bottom:0}.bx--tooltip--icon__top.bx--tooltip--icon__align-start::before{transform:translate(0, calc(-100% - 9px)) rotate(180deg);top:1px;margin-left:4px}.bx--tooltip--icon__top.bx--tooltip--icon__align-start::after{transform:translate(0, calc(-100% - 12px));top:0;margin-left:0}.bx--tooltip--icon__top.bx--tooltip--icon__align-end::before{transform:translate(0, calc(-100% - 9px)) rotate(180deg);top:1px;right:0;left:auto;margin-right:4px}.bx--tooltip--icon__top.bx--tooltip--icon__align-end::after{transform:translate(0, calc(-100% - 12px));top:0;margin-left:0;right:0}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-start::before{transform:translate(0, 10px) rotate(0);bottom:0;margin-left:4px}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-start::after{transform:translate(0, calc(100% + 10px));bottom:0;margin-left:0}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-end::before{transform:translate(0, 10px) rotate(0);bottom:0;right:0;left:auto;margin-right:4px}.bx--tooltip--icon__bottom.bx--tooltip--icon__align-end::after{transform:translate(0, calc(100% + 10px));bottom:0;margin-left:0;right:0}.bx--tooltip--icon .bx--tooltip__trigger svg{margin-left:0}.bx--tooltip__trigger:hover svg,.bx--tooltip__trigger:focus svg{fill:#525252}.bx--tooltip__trigger.bx--tooltip--top{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--tooltip--top:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--top:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--top:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--tooltip--top:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--top:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip--top::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip--top::after{transition:none}}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--tooltip--top::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--tooltip--top::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--tooltip--top:hover::before,.bx--tooltip__trigger.bx--tooltip--top:hover::after,.bx--tooltip__trigger.bx--tooltip--top:focus::before,.bx--tooltip__trigger.bx--tooltip--top:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--top:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--top:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip--top::before,.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip--top::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip--top::after,.bx--tooltip__trigger.bx--tooltip--top .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top+.bx--assistive-text{top:-0.8125rem;left:50%;transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-start+.bx--assistive-text{top:-0.8125rem;left:0;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-center+.bx--assistive-text{top:-0.8125rem;left:50%;transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;bottom:-0.75rem}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text{top:0;left:50%}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end::before{top:-0.5rem;border-width:.3125rem .25rem 0 .25rem;border-color:#393939 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-50%, -100%)}.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--top.bx--tooltip--align-end+.bx--assistive-text{top:-0.8125rem;right:0;left:auto;transform:translate(0, -100%)}.bx--tooltip__trigger.bx--tooltip--right{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--tooltip--right:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--right:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--right:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--tooltip--right:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--right:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--right::before,.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--right::before,.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--right::before,.bx--tooltip__trigger.bx--tooltip--right::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--tooltip--right::before,.bx--tooltip__trigger.bx--tooltip--right::after{transition:none}}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--tooltip--right::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--tooltip--right::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--tooltip--right:hover::before,.bx--tooltip__trigger.bx--tooltip--right:hover::after,.bx--tooltip__trigger.bx--tooltip--right:focus::before,.bx--tooltip__trigger.bx--tooltip--right:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--right:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--right:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--tooltip--right::before,.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--tooltip--right::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right::after,.bx--tooltip__trigger.bx--tooltip--right .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-start+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-center+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;left:-0.75rem}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end+.bx--assistive-text{top:50%;right:0}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end::before{right:-0.5rem;border-width:.25rem .3125rem .25rem 0;border-color:rgba(0,0,0,0) #393939 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--right.bx--tooltip--align-end+.bx--assistive-text{right:-0.8125rem;transform:translate(100%, -50%)}.bx--tooltip__trigger.bx--tooltip--bottom{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--tooltip--bottom:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--bottom:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--bottom:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--tooltip--bottom:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--bottom:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip--bottom::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip--bottom::after{transition:none}}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--tooltip--bottom::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--tooltip--bottom::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--tooltip--bottom:hover::before,.bx--tooltip__trigger.bx--tooltip--bottom:hover::after,.bx--tooltip__trigger.bx--tooltip--bottom:focus::before,.bx--tooltip__trigger.bx--tooltip--bottom:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--bottom:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--bottom:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip--bottom::before,.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom::after,.bx--tooltip__trigger.bx--tooltip--bottom .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-start+.bx--assistive-text{bottom:-0.8125rem;left:0;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-center+.bx--assistive-text{bottom:-0.8125rem;transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";left:0;width:100%;height:.75rem;top:-0.75rem}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text{bottom:0;left:50%}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end::before{bottom:-0.5rem;border-width:0 .25rem .3125rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #393939 rgba(0,0,0,0);transform:translate(-50%, 100%)}.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--bottom.bx--tooltip--align-end+.bx--assistive-text{bottom:-0.8125rem;right:0;left:auto;transform:translate(0, 100%)}.bx--tooltip__trigger.bx--tooltip--left{position:relative;display:inline-flex;overflow:visible;align-items:center;cursor:pointer}.bx--tooltip__trigger.bx--tooltip--left:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--left:focus{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--left:focus{outline:1px solid rgba(0,0,0,0)}.bx--tooltip__trigger.bx--tooltip--left:focus svg{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--left:focus svg{outline-style:dotted}}.bx--tooltip__trigger.bx--tooltip--left::before,.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{position:absolute;z-index:6000;display:flex;align-items:center;opacity:0;pointer-events:none}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--left::before,.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{display:inline-block}}.bx--tooltip__trigger.bx--tooltip--left::before,.bx--tooltip__trigger.bx--tooltip--left::after{transition:opacity 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tooltip__trigger.bx--tooltip--left::before,.bx--tooltip__trigger.bx--tooltip--left::after{transition:none}}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--a11y::after{transition:none}.bx--tooltip__trigger.bx--tooltip--left::before{width:0;height:0;border-style:solid;content:\"\"}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{box-sizing:content-box;color:inherit;opacity:1;white-space:normal;word-break:break-word}.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{box-shadow:0 2px 6px rgba(0,0,0,.3);z-index:6000;width:max-content;min-width:1.5rem;max-width:13rem;height:auto;padding:.1875rem 1rem;background-color:#393939;border-radius:.125rem;color:#fff;font-weight:400;text-align:left;transform:translateX(-50%);font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{width:auto}}@supports(-ms-accelerator: true){.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{width:auto}}@supports(-ms-ime-align: auto){.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{width:auto}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{border:1px solid rgba(0,0,0,0)}}.bx--tooltip__trigger.bx--tooltip--left::after{content:attr(aria-label)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--a11y::after{content:none}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible::before,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible::after,.bx--tooltip__trigger.bx--tooltip--left:hover::before,.bx--tooltip__trigger.bx--tooltip--left:hover::after,.bx--tooltip__trigger.bx--tooltip--left:focus::before,.bx--tooltip__trigger.bx--tooltip--left:focus::after{opacity:1}@keyframes tooltip-fade{from{opacity:0}to{opacity:1}}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus+.bx--assistive-text{overflow:visible;margin:auto;clip:auto}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--visible.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--left:hover .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:hover.bx--tooltip--a11y::before,.bx--tooltip__trigger.bx--tooltip--left:focus .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus+.bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left:focus.bx--tooltip--a11y::before{animation:tooltip-fade 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--hidden .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--hidden+.bx--assistive-text{overflow:hidden;margin:-1px;clip:rect(0, 0, 0, 0)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--hidden.bx--tooltip--a11y::before{animation:none;opacity:0}.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--tooltip--left::before,.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--tooltip--left::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left::after,.bx--tooltip__trigger.bx--tooltip--left .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start::before,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start::after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-start+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center::before,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center::after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-center+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end .bx--assistive-text::after{position:absolute;display:block;content:\"\";top:0;width:.75rem;height:100%;right:-0.75rem}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end::before,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end+.bx--assistive-text{top:50%;left:0}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end::before{left:-0.5rem;border-width:.25rem 0 .25rem .3125rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #393939;transform:translate(-100%, -50%)}.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end::after,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end .bx--assistive-text,.bx--tooltip__trigger.bx--tooltip--left.bx--tooltip--align-end+.bx--assistive-text{left:-0.8125rem;transform:translate(-100%, -50%)}.bx--tooltip__trigger:not(.bx--tooltip--hidden) .bx--assistive-text{pointer-events:all}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tooltip__trigger svg,.bx--tooltip__trigger:hover svg,.bx--tooltip__trigger:focus svg{fill:ButtonText}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tooltip__trigger:focus svg{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tooltip{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--assistive-text{outline:1px solid rgba(0,0,0,0)}}.bx--progress{display:flex;list-style:none}.bx--progress-step{position:relative;display:inline-flex;overflow:visible;width:8rem;min-width:7rem;flex-direction:row}.bx--progress-step .bx--tooltip__label{display:block}.bx--progress--space-equal .bx--progress-step{min-width:8rem;flex-grow:1}.bx--progress-line{position:absolute;left:0;width:8rem;height:1px;border:1px inset rgba(0,0,0,0)}.bx--progress--space-equal .bx--progress-line{width:100%;min-width:8rem}.bx--progress-step svg{position:relative;z-index:1;width:1rem;height:1rem;flex-shrink:0;margin:.625rem .5rem 0 0;border-radius:50%;fill:#0f62fe}.bx--progress-label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;overflow:hidden;max-width:5.5rem;margin:.5rem 0 0 0;color:#161616;line-height:1.45;text-overflow:ellipsis;transition:box-shadow 110ms cubic-bezier(0.2, 0, 0.38, 0.9),color 110ms cubic-bezier(0.2, 0, 0.38, 0.9);white-space:nowrap}.bx--progress-label::before{display:block;content:\"\"}.bx--progress-label:hover{box-shadow:0 .0625rem #0f62fe;color:#0f62fe;cursor:pointer}.bx--progress-label:focus{box-shadow:0 .1875rem 0 0 #0f62fe;color:#0f62fe;outline:none}.bx--progress--space-equal .bx--progress-label{max-width:100%;margin-right:.75rem}.bx--progress-step-button:not(.bx--progress-step-button--unclickable) .bx--progress-label:active{box-shadow:0 .1875rem 0 0 #0f62fe;color:#0f62fe}.bx--progress-label-overflow:hover~.bx--tooltip,.bx--progress-label-overflow:focus~.bx--tooltip{visibility:inherit}.bx--progress-step .bx--tooltip .bx--tooltip__caret{margin-left:.625rem}.bx--tooltip__text{padding:0;margin:0;font-weight:normal}.bx--progress-step .bx--tooltip{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;display:block;width:7.8125rem;min-width:7.1875rem;min-height:1.5rem;padding:.5rem 1rem;margin-top:2.5rem;margin-left:1.375rem;color:#fff;visibility:hidden}.bx--progress-step .bx--tooltip_multi{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;width:9.375rem;height:auto;color:#fff}.bx--progress-optional{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;position:absolute;left:0;margin-top:1.75rem;margin-left:1.5rem;color:#525252;text-align:start}.bx--progress-step--current .bx--progress-line{background-color:#0f62fe}.bx--progress-step--incomplete svg{fill:#161616}.bx--progress-step--incomplete .bx--progress-line{background-color:#e0e0e0}.bx--progress-step--complete .bx--progress-line{background-color:#0f62fe}.bx--progress-step-button{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;display:flex;text-align:left}.bx--progress-step-button::-moz-focus-inner{border:0}.bx--progress-step-button--unclickable{cursor:default;outline:none}.bx--progress-step-button--unclickable .bx--progress-label:hover{box-shadow:none;color:#161616;cursor:default}.bx--progress-step-button--unclickable .bx--tooltip__label:hover{box-shadow:0 .0625rem #0f62fe;color:#0f62fe;cursor:pointer}.bx--progress-step--disabled{cursor:not-allowed;pointer-events:none}.bx--progress-step--disabled svg{cursor:not-allowed;fill:#c6c6c6}.bx--progress-step--disabled .bx--progress-label,.bx--progress-step--disabled .bx--progress-label:hover{box-shadow:none;color:#c6c6c6;cursor:not-allowed}.bx--progress-step--disabled .bx--progress-label:focus,.bx--progress-step--disabled .bx--progress-label:active{box-shadow:none;outline:none}.bx--progress-step--disabled .bx--progress-line{cursor:not-allowed}.bx--progress-step--disabled .bx--progress-label-overflow:hover~.bx--tooltip--definition .bx--tooltip--definition__bottom{display:none}.bx--progress__warning>*{fill:#da1e28}.bx--progress.bx--skeleton .bx--progress-label{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:2.5rem;height:.875rem;margin-top:.625rem}.bx--progress.bx--skeleton .bx--progress-label:hover,.bx--progress.bx--skeleton .bx--progress-label:focus,.bx--progress.bx--skeleton .bx--progress-label:active{border:none;cursor:default;outline:none}.bx--progress.bx--skeleton .bx--progress-label::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--progress.bx--skeleton .bx--progress-label::before{animation:none}}.bx--progress--vertical{display:flex;flex-direction:column}.bx--progress--vertical,.bx--progress-text{display:flex;flex-direction:column}.bx--progress--vertical .bx--progress-step,.bx--progress--vertical .bx--progress-step-button{width:initial;min-width:initial;min-height:3.625rem;align-content:flex-start}.bx--progress--vertical .bx--progress-step svg,.bx--progress--vertical .bx--progress-step-button svg{display:inline-block;margin:.0625rem .5rem 0}.bx--progress--vertical .bx--progress-label{display:inline-block;width:initial;max-width:10rem;margin:0;vertical-align:top;white-space:initial}.bx--progress--vertical .bx--progress-step .bx--tooltip{margin-top:.5rem}.bx--progress--vertical .bx--progress-optional{position:static;width:100%;margin:auto 0}.bx--progress--vertical .bx--progress-line{position:absolute;top:0;left:0;width:1px;height:100%}.bx--radio-button-group{position:relative;display:flex;align-items:center}.bx--label+.bx--form-item .bx--radio-button-group{margin-top:0}.bx--radio-button-group--vertical{flex-direction:column;align-items:flex-start}.bx--radio-button-group--vertical.bx--radio-button-group--label-left{align-items:flex-end}.bx--radio-button-group--vertical .bx--radio-button__label{margin-right:0;line-height:1.25rem}.bx--radio-button-group--vertical .bx--radio-button__label:not(:last-of-type){margin-bottom:.5rem}.bx--radio-button{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap;visibility:inherit}.bx--radio-button__label{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;align-items:center;margin-right:1rem;cursor:pointer}.bx--radio-button__appearance{width:1.125rem;height:1.125rem;flex-shrink:0;border:1px solid #161616;margin:.0625rem .5rem .125rem .125rem;background-color:rgba(0,0,0,0);border-radius:50%}.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance{display:flex;align-items:center;justify-content:center;border-color:#161616}.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance::before{position:relative;display:inline-block;width:100%;height:100%;background-color:#161616;border-radius:50%;content:\"\";transform:scale(0.5)}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--radio-button:checked+.bx--radio-button__label .bx--radio-button__appearance::before{fill:ButtonText;background-color:ButtonText}}.bx--radio-button:disabled+.bx--radio-button__label{color:#c6c6c6;cursor:not-allowed}.bx--radio-button:disabled+.bx--radio-button__label .bx--radio-button__appearance,.bx--radio-button:disabled:checked+.bx--radio-button__label .bx--radio-button__appearance{border-color:#c6c6c6}.bx--radio-button:disabled+.bx--radio-button__label .bx--radio-button__appearance::before,.bx--radio-button:disabled:checked+.bx--radio-button__label .bx--radio-button__appearance::before{background-color:#c6c6c6}.bx--radio-button:focus+.bx--radio-button__label .bx--radio-button__appearance{outline:2px solid #0f62fe;outline-offset:1.5px}.bx--radio-button__label.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:6.25rem;height:1.125rem}.bx--radio-button__label.bx--skeleton:hover,.bx--radio-button__label.bx--skeleton:focus,.bx--radio-button__label.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--radio-button__label.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--radio-button__label.bx--skeleton::before{animation:none}}.bx--radio-button__label.bx--skeleton .bx--radio-button__appearance{display:none}.bx--radio-button-wrapper .bx--radio-button__label{display:flex;align-items:flex-start;justify-content:center;margin:0}.bx--radio-button-wrapper:not(:last-of-type){margin-right:1rem}.bx--radio-button-group--vertical .bx--radio-button-wrapper:not(:last-of-type){margin-right:0;margin-bottom:.5rem}.bx--radio-button-group--label-right .bx--radio-button__label,.bx--radio-button-wrapper.bx--radio-button-wrapper--label-right .bx--radio-button__label{flex-direction:row}.bx--radio-button-group--label-left .bx--radio-button__label,.bx--radio-button-wrapper.bx--radio-button-wrapper--label-left .bx--radio-button__label{flex-direction:row-reverse}.bx--radio-button-group--label-left .bx--radio-button__appearance,.bx--radio-button-wrapper.bx--radio-button-wrapper--label-left .bx--radio-button__appearance{margin-right:0;margin-left:.5rem}.bx--search{position:relative;display:flex;width:100%;align-items:center}.bx--search .bx--label{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--search-input{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;width:100%;order:1;padding:0 2.5rem;border:none;border-bottom:1px solid #8d8d8d;appearance:none;background-color:#f4f4f4;color:#161616;text-overflow:ellipsis;transition:background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--search-input:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-input:focus{outline-style:dotted}}.bx--search-input::placeholder{color:#6f6f6f;opacity:1}.bx--search-input::-ms-clear{display:none}.bx--search-input[disabled]{border-bottom:1px solid rgba(0,0,0,0);background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--search-input[disabled]::placeholder{color:#c6c6c6}.bx--search--light .bx--search-input{background:#fff}.bx--search--light .bx--search-close::before{background:#fff}.bx--search--sm .bx--search-input,.bx--search--sm.bx--search--expandable.bx--search--expanded .bx--search-input{height:2rem;padding:0 2rem}.bx--search--sm .bx--search-magnifier-icon{left:.5rem}.bx--search--lg .bx--search-input,.bx--search--lg.bx--search--expandable.bx--search--expanded .bx--search-input{height:2.5rem;padding:0 2.5rem}.bx--search--lg .bx--search-magnifier-icon{left:.75rem}.bx--search--xl .bx--search-input,.bx--search--xl.bx--search--expandable.bx--search--expanded .bx--search-input{height:3rem;padding:0 3rem}.bx--search-magnifier-icon{position:absolute;z-index:2;top:50%;left:1rem;width:1rem;height:1rem;fill:#525252;pointer-events:none;transform:translateY(-50%)}.bx--search-close{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;position:absolute;top:0;right:0}.bx--search-close::-moz-focus-inner{border:0}.bx--search-close::before{position:absolute;top:.0625rem;left:0;display:block;width:2px;height:calc(100% - 2px);background-color:#f4f4f4;content:\"\";transition:background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--search-close::before{transition:none}}.bx--search-close:hover{border-bottom:1px solid #8d8d8d}.bx--search-close:hover::before{background-color:#e5e5e5}.bx--search-button{flex-shrink:0;margin-left:.125rem;background-color:#f4f4f4}.bx--search-button svg{fill:currentColor;vertical-align:middle}.bx--search-close svg{fill:inherit}.bx--search-close,.bx--search-button{display:flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border-width:1px 0;border-style:solid;border-color:rgba(0,0,0,0);cursor:pointer;fill:#161616;opacity:1;transition:opacity 110ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 110ms cubic-bezier(0.2, 0, 0.38, 0.9),border 110ms cubic-bezier(0.2, 0, 0.38, 0.9);visibility:inherit}.bx--search-close:hover,.bx--search-button:hover{background-color:#e5e5e5}.bx--search-close:focus,.bx--search-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-close:focus,.bx--search-button:focus{outline-style:dotted}}.bx--search-close:active,.bx--search-button:active{outline:2px solid #0f62fe;outline-offset:-2px;background-color:#e0e0e0}@media screen and (prefers-contrast){.bx--search-close:active,.bx--search-button:active{outline-style:dotted}}.bx--search--disabled .bx--search-close,.bx--search--disabled.bx--search--expandable .bx--search-magnifier{cursor:not-allowed;outline:none}.bx--search--disabled .bx--search-close:hover,.bx--search--disabled.bx--search--expandable .bx--search-magnifier:hover{border-bottom-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.bx--search--disabled .bx--search-close:hover::before,.bx--search--disabled.bx--search--expandable .bx--search-magnifier:hover::before{background-color:rgba(0,0,0,0)}.bx--search--disabled svg{fill:#c6c6c6}.bx--search-close:focus::before,.bx--search-close:active::before{background-color:#0f62fe}.bx--search-input:focus~.bx--search-close:hover{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--search-input:focus~.bx--search-close:hover{outline-style:dotted}}.bx--search--sm .bx--search-close,.bx--search--sm~.bx--search-button,.bx--search--sm.bx--search--expandable,.bx--search--sm.bx--search--expandable .bx--search-magnifier{width:2rem;height:2rem}.bx--search--sm.bx--search--expandable .bx--search-input::placeholder{padding:0 2rem}.bx--search--lg .bx--search-close,.bx--search--lg~.bx--search-button,.bx--search--lg.bx--search--expandable,.bx--search--lg.bx--search--expandable .bx--search-magnifier{width:2.5rem;height:2.5rem}.bx--search--lg.bx--search--expandable .bx--search-input::placeholder{padding:0 2.5rem}.bx--search--xl .bx--search-close,.bx--search--xl~.bx--search-button,.bx--search--xl.bx--search--expandable,.bx--search--xl.bx--search--expandable .bx--search-magnifier{width:3rem;height:3rem}.bx--search--xl.bx--search--expandable .bx--search-input::placeholder{padding:0 3rem}.bx--search-close--hidden{opacity:0;visibility:hidden}.bx--search--xl.bx--skeleton .bx--search-input,.bx--search--lg.bx--skeleton .bx--search-input,.bx--search--sm.bx--skeleton .bx--search-input{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:100%}.bx--search--xl.bx--skeleton .bx--search-input:hover,.bx--search--xl.bx--skeleton .bx--search-input:focus,.bx--search--xl.bx--skeleton .bx--search-input:active,.bx--search--lg.bx--skeleton .bx--search-input:hover,.bx--search--lg.bx--skeleton .bx--search-input:focus,.bx--search--lg.bx--skeleton .bx--search-input:active,.bx--search--sm.bx--skeleton .bx--search-input:hover,.bx--search--sm.bx--skeleton .bx--search-input:focus,.bx--search--sm.bx--skeleton .bx--search-input:active{border:none;cursor:default;outline:none}.bx--search--xl.bx--skeleton .bx--search-input::before,.bx--search--lg.bx--skeleton .bx--search-input::before,.bx--search--sm.bx--skeleton .bx--search-input::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--search--xl.bx--skeleton .bx--search-input::before,.bx--search--lg.bx--skeleton .bx--search-input::before,.bx--search--sm.bx--skeleton .bx--search-input::before{animation:none}}.bx--search--xl.bx--skeleton .bx--search-input::placeholder,.bx--search--lg.bx--skeleton .bx--search-input::placeholder,.bx--search--sm.bx--skeleton .bx--search-input::placeholder{color:rgba(0,0,0,0)}.bx--search--expandable{transition:width 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--search--expandable.bx--search--expanded{width:100%}.bx--search--expandable .bx--search-input{width:0;padding:0;transition:padding 70ms cubic-bezier(0.2, 0, 0.38, 0.9),width 0s linear 70ms}.bx--search--expandable .bx--search-input::placeholder{position:relative;opacity:0;transition-duration:70ms;transition-property:padding,opacity;transition-timing-function:cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--search--expandable.bx--search--expanded .bx--search-input{width:100%;transition:padding 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--search--expandable.bx--search--expanded .bx--search-input::placeholder{position:relative;padding:0;opacity:1}.bx--search--expandable .bx--search-magnifier{position:absolute;cursor:pointer}.bx--search--expandable .bx--search-magnifier:hover{background-color:#e5e5e5}.bx--search--expandable.bx--search--expanded .bx--search-magnifier{pointer-events:none}.bx--search--expandable .bx--search-magnifier-icon{fill:#161616}.bx--search--expandable.bx--search--expanded .bx--search-magnifier-icon{fill:#525252}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--search-close svg,.bx--search-magnifier-icon{fill:ButtonText}}.bx--skeleton__text{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:100%;height:1rem;margin-bottom:.5rem}.bx--skeleton__text:hover,.bx--skeleton__text:focus,.bx--skeleton__text:active{border:none;cursor:default;outline:none}.bx--skeleton__text::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--skeleton__text::before{animation:none}}.bx--skeleton__heading{height:1.5rem}.bx--icon--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;display:inline-block;width:1rem;height:1rem}.bx--icon--skeleton:hover,.bx--icon--skeleton:focus,.bx--icon--skeleton:active{border:none;cursor:default;outline:none}.bx--icon--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--icon--skeleton::before{animation:none}}.bx--skeleton__placeholder{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:6.25rem;height:6.25rem}.bx--skeleton__placeholder:hover,.bx--skeleton__placeholder:focus,.bx--skeleton__placeholder:active{border:none;cursor:default;outline:none}.bx--skeleton__placeholder::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--skeleton__placeholder::before{animation:none}}.bx--slider-container{display:flex;align-items:center;user-select:none}.bx--slider{position:relative;width:100%;min-width:12.5rem;max-width:40rem;padding:1rem 0;margin:0 1rem;cursor:pointer}.bx--slider__range-label{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.32px;color:#161616;white-space:nowrap}.bx--slider__range-label:last-of-type{margin-right:1rem}.bx--slider__track{position:absolute;width:100%;height:.125rem;background:#e0e0e0;transform:translate(0%, -50%)}.bx--slider__track:before{position:absolute;top:-0.3125rem;left:50%;display:inline-block;width:.125rem;height:.25rem;background:#e0e0e0;content:\"\";transform:translate(-50%, 0)}.bx--slider__filled-track{position:absolute;width:100%;height:.125rem;background:#161616;pointer-events:none;transform:translate(0%, -50%);transform-origin:left;transition:background 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--slider__thumb{position:absolute;z-index:3;width:.875rem;height:.875rem;background:#161616;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,0),inset 0 0 0 2px rgba(0,0,0,0);outline:none;transform:translate(-50%, -50%);transition:transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9),background 110ms cubic-bezier(0.2, 0, 0.38, 0.9),box-shadow 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--slider__thumb:hover{transform:translate(-50%, -50%) scale(1.4286)}.bx--slider__thumb:focus{background-color:#0f62fe;box-shadow:inset 0 0 0 2px #0f62fe,inset 0 0 0 3px #f4f4f4;transform:translate(-50%, -50%) scale(1.4286)}.bx--slider__thumb:active{box-shadow:inset 0 0 0 2px #0f62fe;transform:translate(-50%, -50%) scale(1.4286)}.bx--slider__input{display:none}.bx--slider-text-input,.bx-slider-text-input{width:4rem;height:2.5rem;-moz-appearance:textfield;text-align:center}.bx--slider-text-input::-webkit-outer-spin-button,.bx--slider-text-input::-webkit-inner-spin-button,.bx-slider-text-input::-webkit-outer-spin-button,.bx-slider-text-input::-webkit-inner-spin-button{display:none}.bx--slider-text-input.bx--text-input--invalid{padding-right:1rem}.bx--slider__thumb:focus~.bx--slider__filled-track{background-color:#0f62fe}.bx--label--disabled~.bx--slider-container>.bx--slider__range-label{color:#c6c6c6}.bx--slider--disabled.bx--slider{cursor:not-allowed}.bx--slider--disabled .bx--slider__thumb{background-color:#e0e0e0}.bx--slider--disabled .bx--slider__thumb:hover{cursor:not-allowed;transform:translate(-50%, -50%)}.bx--slider--disabled .bx--slider__thumb:focus{background-color:#e0e0e0;box-shadow:none;outline:none;transform:translate(-50%, -50%)}.bx--slider--disabled .bx--slider__thumb:active{background:#e0e0e0;transform:translate(-50%, -50%)}.bx--slider--disabled .bx--slider__track,.bx--slider--disabled .bx--slider__filled-track,.bx--slider--disabled .bx--slider__thumb:focus~.bx--slider__filled-track{background-color:#e0e0e0}.bx--slider--disabled~.bx--form-item .bx--slider-text-input,.bx--slider--disabled~.bx--slider-text-input{border:none;background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed;transition:none}.bx--slider--disabled~.bx--form-item .bx--slider-text-input:active,.bx--slider--disabled~.bx--form-item .bx--slider-text-input:focus,.bx--slider--disabled~.bx--form-item .bx--slider-text-input:hover,.bx--slider--disabled~.bx--slider-text-input:active,.bx--slider--disabled~.bx--slider-text-input:focus,.bx--slider--disabled~.bx--slider-text-input:hover{color:#c6c6c6;outline:none}.bx--slider-container.bx--skeleton .bx--slider__range-label{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:1.25rem;height:.75rem}.bx--slider-container.bx--skeleton .bx--slider__range-label:hover,.bx--slider-container.bx--skeleton .bx--slider__range-label:focus,.bx--slider-container.bx--skeleton .bx--slider__range-label:active{border:none;cursor:default;outline:none}.bx--slider-container.bx--skeleton .bx--slider__range-label::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--slider-container.bx--skeleton .bx--slider__range-label::before{animation:none}}.bx--slider-container.bx--skeleton .bx--slider__track{cursor:default;pointer-events:none}.bx--slider-container.bx--skeleton .bx--slider__thumb{left:50%;cursor:default;pointer-events:none}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--slider__thumb{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--slider__thumb:focus{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--slider__track{outline:1px solid rgba(0,0,0,0)}}.bx--structured-list--selection .bx--structured-list-td,.bx--structured-list--selection .bx--structured-list-th{padding-right:1rem;padding-left:1rem}.bx--structured-list--selection .bx--structured-list-td:first-child,.bx--structured-list--selection .bx--structured-list-th:first-child{padding-right:1rem;padding-left:1rem}.bx--structured-list-input{display:none}.bx--structured-list{display:table;width:100%;margin-bottom:5rem;background-color:rgba(0,0,0,0);border-collapse:collapse;border-spacing:0;overflow-x:auto}.bx--structured-list.bx--structured-list--condensed .bx--structured-list-td,.bx--structured-list.bx--structured-list--condensed .bx--structured-list-th{padding:.5rem}.bx--structured-list .bx--structured-list-row .bx--structured-list-td:first-of-type,.bx--structured-list .bx--structured-list-row .bx--structured-list-th:first-of-type{padding-left:1rem}.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-td,.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-th,.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-td:first-of-type,.bx--structured-list.bx--structured-list--flush .bx--structured-list-row .bx--structured-list-th:first-of-type{padding-right:1rem;padding-left:0}.bx--structured-list-row{display:table-row;border-bottom:1px solid #e0e0e0;transition:background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row):not(.bx--structured-list-row--selected){border-bottom:1px solid #e5e5e5;background-color:#e5e5e5;cursor:pointer}.bx--structured-list-row.bx--structured-list-row--selected{background-color:#e0e0e0}.bx--structured-list-row.bx--structured-list-row--header-row{border-bottom:1px solid #e0e0e0;cursor:inherit}.bx--structured-list-row:focus:not(.bx--structured-list-row--header-row){outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--structured-list-row:focus:not(.bx--structured-list-row--header-row){outline-style:dotted}}.bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row)>.bx--structured-list-td,.bx--structured-list-row.bx--structured-list-row--selected>.bx--structured-list-td{color:#161616}.bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row)>.bx--structured-list-td{border-top:1px solid #f4f4f4}.bx--structured-list-thead{display:table-header-group;vertical-align:middle}.bx--structured-list-th{padding:1rem .5rem .5rem .5rem;font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;display:table-cell;height:2.5rem;color:#161616;font-weight:600;text-align:left;text-transform:none;vertical-align:top}.bx--structured-list-tbody{display:table-row-group;vertical-align:middle}.bx--structured-list-td{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;padding:1rem .5rem 1.5rem .5rem;position:relative;display:table-cell;max-width:36rem;color:#525252;transition:color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--structured-list-content--nowrap{white-space:nowrap}.bx--structured-list-svg{display:inline-block;fill:rgba(0,0,0,0);transition:all 110ms cubic-bezier(0.2, 0, 0.38, 0.9);vertical-align:middle}.bx--structured-list-input:checked+.bx--structured-list-row .bx--structured-list-svg,.bx--structured-list-input:checked+.bx--structured-list-td .bx--structured-list-svg{fill:#161616}.bx--structured-list.bx--skeleton .bx--structured-list-th:first-child{width:8%}.bx--structured-list.bx--skeleton .bx--structured-list-th:nth-child(3n+2){width:30%}.bx--structured-list.bx--skeleton .bx--structured-list-th:nth-child(3n+3){width:15%}.bx--structured-list.bx--skeleton span{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;display:block;width:75%;height:1rem}.bx--structured-list.bx--skeleton span:hover,.bx--structured-list.bx--skeleton span:focus,.bx--structured-list.bx--skeleton span:active{border:none;cursor:default;outline:none}.bx--structured-list.bx--skeleton span::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--structured-list.bx--skeleton span::before{animation:none}}.bx--structured-list.bx--structured-list--selection.bx--skeleton .bx--structured-list-th:first-child{width:5%}.bx--structured-list.bx--structured-list--selection.bx--skeleton .bx--structured-list-th:first-child span{display:none}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--structured-list-input:checked+.bx--structured-list-td .bx--structured-list-svg{fill:ButtonText}}.bx--tabs{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:relative;width:100%;height:auto;color:#161616}@media(min-width: 42rem){.bx--tabs{min-height:2.5rem;background:none}}@media(min-width: 42rem){.bx--tabs--container{min-height:3rem}}.bx--tabs-trigger{display:flex;height:2.5rem;align-items:center;justify-content:space-between;padding:0 3rem 0 1rem;border-bottom:1px solid #8d8d8d;background-color:#f4f4f4;color:#161616;cursor:pointer;outline:2px solid rgba(0,0,0,0)}@media(min-width: 42rem){.bx--tabs-trigger{display:none}}.bx--tabs-trigger:focus,.bx--tabs-trigger:active{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tabs-trigger:focus,.bx--tabs-trigger:active{outline-style:dotted}}.bx--tabs-trigger svg{position:absolute;right:1rem;fill:#161616;transition:transform 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tabs-trigger--open:focus,.bx--tabs-trigger--open:active{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;transition:outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tabs-trigger--open{background:#e0e0e0}.bx--tabs-trigger--open svg{transform:rotate(-180deg);transform-origin:50% 45%;transition:transform 70ms}.bx--tabs--light.bx--tabs-trigger{background-color:#fff}.bx--tabs-trigger-text{overflow:hidden;padding-top:2px;color:#161616;font-weight:400;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.bx--tabs-trigger-text:hover{color:#161616}.bx--tabs-trigger-text:focus{outline:none}.bx--tabs__nav{box-shadow:0 2px 6px rgba(0,0,0,.3);position:absolute;z-index:9100;display:flex;width:100%;max-height:600px;flex-direction:column;padding:0;margin:0;background:#f4f4f4;list-style:none;transition:max-height 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(min-width: 42rem){.bx--tabs__nav{z-index:auto;width:auto;flex-direction:row;background:none;box-shadow:none;transition:inherit}}.bx--tabs__nav--hidden{overflow:hidden;max-height:0;transition:max-height 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(min-width: 42rem){.bx--tabs__nav--hidden{display:flex;max-width:100%;max-height:none;overflow-x:auto;transition:inherit}}.bx--tabs__nav-item{display:flex;width:100%;height:2.5rem;padding:0;background-color:#f4f4f4;cursor:pointer;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(min-width: 42rem){.bx--tabs__nav-item{height:auto;background:rgba(0,0,0,0)}.bx--tabs__nav-item+.bx--tabs__nav-item{margin-left:.0625rem}}@media(min-width: 42rem){.bx--tabs--container .bx--tabs__nav-item{background-color:#e0e0e0}.bx--tabs--container .bx--tabs__nav-item+.bx--tabs__nav-item{margin-left:0;box-shadow:-1px 0 0 0 #8d8d8d}.bx--tabs--container .bx--tabs__nav-item+.bx--tabs__nav-item.bx--tabs__nav-item--selected,.bx--tabs--container .bx--tabs__nav-item.bx--tabs__nav-item--selected+.bx--tabs__nav-item{box-shadow:none}}.bx--tabs__nav-item .bx--tabs__nav-link{transition:color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),border-bottom-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(min-width: 42rem){.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected){background:rgba(0,0,0,0)}}.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled){background-color:#e5e5e5;box-shadow:0 -1px 0 #e5e5e5}@media(min-width: 42rem){.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled){background-color:rgba(0,0,0,0)}.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled)+.bx--tabs__nav-item{box-shadow:none}}@media(min-width: 42rem){.bx--tabs--container .bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--disabled){background-color:#cacaca}}.bx--tabs__nav-item--disabled,.bx--tabs__nav-item--disabled:hover{cursor:not-allowed;outline:none}@media(min-width: 42rem){.bx--tabs--container .bx--tabs__nav-item.bx--tabs__nav-item--disabled,.bx--tabs--container .bx--tabs__nav-item.bx--tabs__nav-item--disabled:hover{background-color:#c6c6c6}}@media(min-width: 42rem){.bx--tabs--container .bx--tabs__nav-item--disabled .bx--tabs__nav-link{border-bottom:none;color:#8d8d8d}}.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled){display:none;border:none;transition:color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(min-width: 42rem){.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled){display:flex}.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link,.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:focus,.bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:active{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;border-bottom:2px solid #0f62fe;color:#161616}}@media(min-width: 42rem){.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled),.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled){background-color:#f4f4f4}.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link,.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{padding:.5rem 1rem;border-bottom:none;box-shadow:inset 0 2px 0 0 #0f62fe;line-height:calc(3rem - (0.5rem * 2))}.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:focus,.bx--tabs--container .bx--tabs__nav-item--selected:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:active,.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:focus,.bx--tabs--container .bx--tabs__nav-item--selected:hover:not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link:active{box-shadow:none}}a.bx--tabs__nav-link{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:inline-block;overflow:hidden;width:calc(100% - 32px);height:2.5rem;padding:.75rem 0;border-bottom:1px solid #e0e0e0;margin:0 1rem;color:#525252;font-weight:400;line-height:1rem;text-decoration:none;text-overflow:ellipsis;transition:border 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);white-space:nowrap}a.bx--tabs__nav-link:focus,a.bx--tabs__nav-link:active{outline:2px solid #0f62fe;outline-offset:-2px;width:100%;padding-left:16px;margin:0}@media screen and (prefers-contrast){a.bx--tabs__nav-link:focus,a.bx--tabs__nav-link:active{outline-style:dotted}}@media(min-width: 42rem){a.bx--tabs__nav-link{width:10rem;padding:.75rem 1rem .5rem;border-bottom:2px solid #e0e0e0;margin:0;line-height:inherit}a.bx--tabs__nav-link:focus,a.bx--tabs__nav-link:active{width:10rem;border-bottom:2px}}@media(min-width: 42rem){.bx--tabs--container a.bx--tabs__nav-link{height:3rem;padding:.5rem 1rem;border-bottom:none;line-height:calc(3rem - (0.5rem * 2))}}.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{color:#161616}@media(min-width: 42rem){.bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{border-bottom:2px solid #8d8d8d;color:#161616}}@media(min-width: 42rem){.bx--tabs--container .bx--tabs__nav-item:hover:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled) .bx--tabs__nav-link{border-bottom:none}}.bx--tabs__nav-item--disabled .bx--tabs__nav-link{border-bottom:2px solid #f4f4f4;color:#c6c6c6;pointer-events:none}.bx--tabs__nav-item--disabled:hover .bx--tabs__nav-link{border-bottom:2px solid #f4f4f4;cursor:no-drop}.bx--tabs__nav-item--disabled .bx--tabs__nav-link:focus,.bx--tabs__nav-item--disabled a.bx--tabs__nav-link:active{border-bottom:2px solid #f4f4f4;outline:none}.bx--tabs__nav-item:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled):not(.bx--tabs__nav-item--selected) .bx--tabs__nav-link:focus,.bx--tabs__nav-item:not(.bx--tabs__nav-item--selected):not(.bx--tabs__nav-item--disabled):not(.bx--tabs__nav-item--selected) a.bx--tabs__nav-link:active{color:#525252}.bx--tab-content{padding:1rem}.bx--tab-content:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tab-content:focus{outline-style:dotted}}.bx--tabs.bx--skeleton{cursor:default;pointer-events:none}.bx--skeleton.bx--tabs--scrollable:not(.bx--tabs--scrollable--container) .bx--tabs--scrollable__nav-item{border-bottom:2px solid #c6c6c6}.bx--tabs.bx--skeleton .bx--tabs__nav-link{display:flex;width:10rem;height:100%;align-items:center;padding:0 1rem}.bx--tabs.bx--skeleton .bx--tabs__nav-link span{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;display:block;width:100%;height:.875rem}.bx--tabs.bx--skeleton .bx--tabs__nav-link span:hover,.bx--tabs.bx--skeleton .bx--tabs__nav-link span:focus,.bx--tabs.bx--skeleton .bx--tabs__nav-link span:active{border:none;cursor:default;outline:none}.bx--tabs.bx--skeleton .bx--tabs__nav-link span::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--tabs.bx--skeleton .bx--tabs__nav-link span::before{animation:none}}.bx--tabs.bx--skeleton .bx--tabs-trigger{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:6.25rem}.bx--tabs.bx--skeleton .bx--tabs-trigger:hover,.bx--tabs.bx--skeleton .bx--tabs-trigger:focus,.bx--tabs.bx--skeleton .bx--tabs-trigger:active{border:none;cursor:default;outline:none}.bx--tabs.bx--skeleton .bx--tabs-trigger::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--tabs.bx--skeleton .bx--tabs-trigger::before{animation:none}}.bx--tabs.bx--skeleton .bx--tabs-trigger svg{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--tabs--scrollable{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;width:100%;height:auto;min-height:2.5rem;color:#161616}.bx--tabs--scrollable.bx--tabs--scrollable--container{min-height:3rem}.bx--tabs--scrollable .bx--tabs--scrollable__nav{display:flex;overflow:auto hidden;width:auto;max-width:100%;flex-direction:row;padding:0;margin:0;list-style:none;outline:0;scrollbar-width:none;transition:max-height 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tabs--scrollable .bx--tabs--scrollable__nav::-webkit-scrollbar{display:none}.bx--tabs--scrollable .bx--tabs__overflow-indicator--left,.bx--tabs--scrollable .bx--tabs__overflow-indicator--right{z-index:1;width:.5rem;flex:1 0 auto}.bx--tabs--scrollable .bx--tabs__overflow-indicator--left{margin-right:-0.5rem;background-image:linear-gradient(to left, transparent, #ffffff)}.bx--tabs--scrollable .bx--tabs__overflow-indicator--right{margin-left:-0.5rem;background-image:linear-gradient(to right, transparent, #ffffff)}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs__overflow-indicator--left{background-image:linear-gradient(to left, transparent, #f4f4f4)}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs__overflow-indicator--right{background-image:linear-gradient(to right, transparent, #f4f4f4)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--left{background-image:linear-gradient(to left, transparent, #e0e0e0)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--right{background-image:linear-gradient(to right, transparent, #e0e0e0)}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none) and (stroke-color: transparent){.bx--tabs--scrollable .bx--tabs__overflow-indicator--left{background-image:linear-gradient(to left, rgba(255, 255, 255, 0), #ffffff)}.bx--tabs--scrollable .bx--tabs__overflow-indicator--right{background-image:linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--left{background-image:linear-gradient(to left, rgba(224, 224, 224, 0), #e0e0e0)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs__overflow-indicator--right{background-image:linear-gradient(to right, rgba(224, 224, 224, 0), #e0e0e0)}}}.bx--tabs--scrollable .bx--tab--overflow-nav-button{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;display:flex;width:2.5rem;flex-shrink:0;align-items:center;justify-content:center}.bx--tabs--scrollable .bx--tab--overflow-nav-button::-moz-focus-inner{border:0}.bx--tabs--scrollable .bx--tab--overflow-nav-button:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tabs--scrollable .bx--tab--overflow-nav-button:focus{outline-style:dotted}}.bx--tabs--scrollable .bx--tab--overflow-nav-button--hidden{display:none}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tab--overflow-nav-button{width:3rem;margin:0;background-color:#e0e0e0}.bx--tabs--scrollable .bx--tab--overflow-nav-button svg{fill:#161616}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item{display:flex;padding:0;cursor:pointer;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item+.bx--tabs--scrollable__nav-item{margin-left:.0625rem}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item{background-color:#e0e0e0}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item+.bx--tabs--scrollable__nav-item{margin-left:0;box-shadow:-0.0625rem 0 0 0 #8d8d8d}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item+.bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--selected,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--selected+.bx--tabs--scrollable__nav-item{box-shadow:none}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item .bx--tabs--scrollable__nav-link{transition:color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),border-bottom-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item:hover{background-color:#cacaca}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled:hover{background-color:rgba(0,0,0,0);cursor:not-allowed;outline:none}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--disabled,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item.bx--tabs--scrollable__nav-item--disabled:hover{background-color:#c6c6c6}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected{transition:color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:active{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;border-bottom:2px solid #0f62fe;color:#161616}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover{background-color:#f4f4f4}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link:active,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover .bx--tabs--scrollable__nav-link:active{box-shadow:none}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected .bx--tabs--scrollable__nav-link{box-shadow:inset 0 2px 0 0 #0f62fe;line-height:calc(3rem - (0.5rem * 2))}.bx--tabs--scrollable.bx--tabs--scrollable--light.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected,.bx--tabs--scrollable.bx--tabs--scrollable--light.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--selected:hover{background-color:#fff}.bx--tabs--scrollable .bx--tabs--scrollable__nav-link{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;width:10rem;overflow:hidden;padding:.75rem 1rem .5rem;border-bottom:2px solid #e0e0e0;color:#525252;text-align:left;text-decoration:none;text-overflow:ellipsis;transition:border 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);white-space:nowrap}.bx--tabs--scrollable .bx--tabs--scrollable__nav-link::-moz-focus-inner{border:0}.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:active{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs--scrollable__nav-link:active{outline-style:dotted}}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-link{height:3rem;padding:.5rem 1rem;border-bottom:0;line-height:calc(3rem - (0.5rem * 2))}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item:hover .bx--tabs--scrollable__nav-link{border-bottom:2px solid #8d8d8d;color:#161616}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item .bx--tabs--scrollable__nav-link{border-bottom:none}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{border-bottom:2px solid #f4f4f4;color:#c6c6c6}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled:hover .bx--tabs--scrollable__nav-link{border-bottom:2px solid #f4f4f4;color:#c6c6c6;cursor:not-allowed;pointer-events:none}.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:active{border-bottom:2px solid #f4f4f4;outline:none}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{border-bottom-color:#e0e0e0}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled:hover .bx--tabs--scrollable__nav-link{border-bottom-color:#e0e0e0}.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs--scrollable--light .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link:active{border-bottom-color:#e0e0e0}.bx--tabs--scrollable.bx--tabs--scrollable--container .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{border-bottom:none;color:#8d8d8d}.bx--tabs--scrollable .bx--tab-content{padding:1rem}.bx--tabs--scrollable .bx--tabs.bx--skeleton{cursor:default;pointer-events:none}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:4.6875rem}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:hover,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:focus,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link:active{border:none;cursor:default;outline:none}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs--scrollable__nav-link::before{animation:none}}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:4.6875rem;margin-right:.0625rem}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:hover,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:focus,.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger:active{border:none;cursor:default;outline:none}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger::before{animation:none}}.bx--tabs--scrollable .bx--tabs.bx--skeleton .bx--tabs-trigger svg{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tabs--scrollable__nav-item .bx--tabs__nav-item--selected .bx--tabs--scrollable__nav-item--selected{color:Highlight;outline:1px solid Highlight}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tabs--scrollable .bx--tabs--scrollable__nav-item--disabled .bx--tabs--scrollable__nav-link{color:GrayText;fill:GrayText}}.bx--tag{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;background-color:#e0e0e0;color:#393939;display:inline-flex;min-width:2rem;max-width:100%;min-height:1.5rem;align-items:center;justify-content:center;padding:.25rem .5rem;margin:.25rem;border-radius:.9375rem;cursor:default;vertical-align:middle;word-break:break-word}.bx--tag::-moz-focus-inner{border:0}.bx--tag.bx--tag--interactive:hover,.bx--tag .bx--tag__close-icon:hover{background-color:#c6c6c6}.bx--tag:not(:first-child){margin-left:0}.bx--tag--red{background-color:#ffd7d9;color:#750e13}.bx--tag--red.bx--tag--interactive:hover,.bx--tag--red .bx--tag__close-icon:hover{background-color:#ffb3b8}.bx--tag--magenta{background-color:#ffd6e8;color:#740937}.bx--tag--magenta.bx--tag--interactive:hover,.bx--tag--magenta .bx--tag__close-icon:hover{background-color:#ffafd2}.bx--tag--purple{background-color:#e8daff;color:#491d8b}.bx--tag--purple.bx--tag--interactive:hover,.bx--tag--purple .bx--tag__close-icon:hover{background-color:#d4bbff}.bx--tag--blue{background-color:#d0e2ff;color:#002d9c}.bx--tag--blue.bx--tag--interactive:hover,.bx--tag--blue .bx--tag__close-icon:hover{background-color:#a6c8ff}.bx--tag--cyan{background-color:#bae6ff;color:#003a6d}.bx--tag--cyan.bx--tag--interactive:hover,.bx--tag--cyan .bx--tag__close-icon:hover{background-color:#82cfff}.bx--tag--teal{background-color:#9ef0f0;color:#004144}.bx--tag--teal.bx--tag--interactive:hover,.bx--tag--teal .bx--tag__close-icon:hover{background-color:#3ddbd9}.bx--tag--green{background-color:#a7f0ba;color:#044317}.bx--tag--green.bx--tag--interactive:hover,.bx--tag--green .bx--tag__close-icon:hover{background-color:#6fdc8c}.bx--tag--gray{background-color:#e0e0e0;color:#393939}.bx--tag--gray.bx--tag--interactive:hover,.bx--tag--gray .bx--tag__close-icon:hover{background-color:#c6c6c6}.bx--tag--cool-gray{background-color:#dde1e6;color:#343a3f}.bx--tag--cool-gray.bx--tag--interactive:hover,.bx--tag--cool-gray .bx--tag__close-icon:hover{background-color:#c1c7cd}.bx--tag--warm-gray{background-color:#e5e0df;color:#3c3838}.bx--tag--warm-gray.bx--tag--interactive:hover,.bx--tag--warm-gray .bx--tag__close-icon:hover{background-color:#cac5c4}.bx--tag--high-contrast{background-color:#393939;color:#fff}.bx--tag--high-contrast.bx--tag--interactive:hover,.bx--tag--high-contrast .bx--tag__close-icon:hover{background-color:#4c4c4c}.bx--tag--outline{background-color:#fff;color:#161616;box-shadow:inset 0 0 0 1px #393939}.bx--tag--outline.bx--tag--interactive:hover,.bx--tag--outline .bx--tag__close-icon:hover{background-color:#e5e5e5}.bx--tag--disabled,.bx--tag--filter.bx--tag--disabled,.bx--tag--interactive.bx--tag--disabled{background-color:#f4f4f4;color:#c6c6c6}.bx--tag--disabled.bx--tag--interactive:hover,.bx--tag--disabled .bx--tag__close-icon:hover,.bx--tag--filter.bx--tag--disabled.bx--tag--interactive:hover,.bx--tag--filter.bx--tag--disabled .bx--tag__close-icon:hover,.bx--tag--interactive.bx--tag--disabled.bx--tag--interactive:hover,.bx--tag--interactive.bx--tag--disabled .bx--tag__close-icon:hover{background-color:#f4f4f4}.bx--tag--disabled:hover,.bx--tag--filter.bx--tag--disabled:hover,.bx--tag--interactive.bx--tag--disabled:hover{cursor:not-allowed}.bx--tag__label{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.bx--tag--interactive:focus{box-shadow:inset 0 0 0 1px #0f62fe;outline:none}.bx--tag--interactive:hover{cursor:pointer}.bx--tag--filter{padding-top:0;padding-right:0;padding-bottom:0;cursor:pointer}.bx--tag--filter:hover{outline:none}.bx--tag--interactive{transition:background-color 70ms cubic-bezier(0, 0, 0.38, 0.9)}.bx--tag__close-icon{display:flex;width:1.5rem;height:1.5rem;flex-shrink:0;align-items:center;justify-content:center;padding:0;border:0;margin:0 0 0 .125rem;background-color:rgba(0,0,0,0);border-radius:50%;color:currentColor;cursor:pointer;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),box-shadow 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tag__close-icon svg{fill:currentColor}.bx--tag__custom-icon{width:1rem;height:1rem;flex-shrink:0;padding:0;border:0;margin-right:.25rem;background-color:rgba(0,0,0,0);color:currentColor;outline:none}.bx--tag__custom-icon svg{fill:currentColor}.bx--tag--disabled .bx--tag__close-icon{cursor:not-allowed}.bx--tag__close-icon:focus{border-radius:50%;box-shadow:inset 0 0 0 1px #0f62fe;outline:none}.bx--tag--high-contrast .bx--tag__close-icon:focus{box-shadow:inset 0 0 0 1px #fff}.bx--tag--filter.bx--tag--disabled .bx--tag__close-icon:hover{background-color:rgba(0,0,0,0)}.bx--tag--filter.bx--tag--disabled svg{fill:#c6c6c6}.bx--tag--sm{min-height:1.125rem;padding:0 .5rem}.bx--tag--sm.bx--tag--filter{padding-right:0}.bx--tag--sm .bx--tag__close-icon{width:1.125rem;height:1.125rem;margin-left:.3125rem}.bx--tag.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;background-color:#e5e5e5;color:#161616;overflow:hidden;width:3.75rem}.bx--tag.bx--skeleton:hover,.bx--tag.bx--skeleton:focus,.bx--tag.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--tag.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--tag.bx--skeleton::before{animation:none}}.bx--tag.bx--skeleton.bx--tag--interactive:hover,.bx--tag.bx--skeleton .bx--tag__close-icon:hover{background-color:#e5e5e5}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none) and (stroke-color: transparent){.bx--tag.bx--skeleton{transform:translateZ(0)}}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tag{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tag__close-icon svg,.bx--tag__custom-icon svg{fill:ButtonText}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--tag__close-icon:focus{color:Highlight;outline:1px solid Highlight}}.bx--text-area{font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;width:100%;min-width:10rem;height:100%;min-height:2.5rem;padding:.6875rem 1rem;border:none;border-bottom:1px solid #8d8d8d;background-color:#f4f4f4;color:#161616;resize:vertical;transition:background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9),outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--text-area:focus,.bx--text-area:active{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--text-area:focus,.bx--text-area:active{outline-style:dotted}}.bx--text-area::placeholder{color:#6f6f6f;opacity:1;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px}.bx--text-area--light{background-color:#fff}.bx--text-area--invalid{padding-right:2.5rem}.bx--text-area__wrapper{position:relative;display:flex;width:100%}.bx--text-area__invalid-icon{position:absolute;top:.75rem;right:1rem;fill:#da1e28}.bx--text-area:disabled{border-bottom:1px solid rgba(0,0,0,0);background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed;outline:none}.bx--text-area:disabled::placeholder{color:#c6c6c6}.bx--text-area.bx--text-area--light:disabled{background-color:#fff}.bx--text-area.bx--skeleton{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;height:6.25rem}.bx--text-area.bx--skeleton:hover,.bx--text-area.bx--skeleton:focus,.bx--text-area.bx--skeleton:active{border:none;cursor:default;outline:none}.bx--text-area.bx--skeleton::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--text-area.bx--skeleton::before{animation:none}}.bx--text-area.bx--skeleton::placeholder{color:rgba(0,0,0,0)}.bx--text-area__label-wrapper{display:flex;width:100%;justify-content:space-between}.bx--tile{display:block;min-width:8rem;min-height:4rem;padding:1rem;background-color:#f4f4f4;outline:2px solid rgba(0,0,0,0);outline-offset:-2px}.bx--tile:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile:focus{outline-style:dotted}}.bx--tile--light{background-color:#fff}.bx--tile--clickable,.bx--tile--selectable,.bx--tile--expandable{cursor:pointer;transition:150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tile--clickable:hover,.bx--tile--selectable:hover,.bx--tile--expandable:hover{background:#e5e5e5}.bx--tile--expandable .bx--link{color:#0043ce}.bx--tile--clickable:focus,.bx--tile--expandable:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile--clickable:focus,.bx--tile--expandable:focus{outline-style:dotted}}.bx--tile--clickable:hover .bx--tile__checkmark,.bx--tile--clickable:focus .bx--tile__checkmark,.bx--tile--expandable:hover .bx--tile__checkmark,.bx--tile--expandable:focus .bx--tile__checkmark{opacity:1}.bx--tile--expandable::-moz-focus-inner{border:0}.bx--tile--clickable{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;color:#161616;text-decoration:none}.bx--tile--clickable:hover,.bx--tile--clickable:active,.bx--tile--clickable:visited,.bx--tile--clickable:visited:hover{color:#161616;text-decoration:none}.bx--tile--clickable.bx--link--disabled{color:#c6c6c6}.bx--tile--clickable:hover.bx--link--disabled{display:block;background-color:#f4f4f4;color:#c6c6c6}.bx--tile--selectable{position:relative;padding-right:3rem;border:1px solid rgba(0,0,0,0)}.bx--tile__checkmark,.bx--tile__chevron{position:absolute;border:none;background:rgba(0,0,0,0);transition:110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tile__checkmark{top:1rem;right:1rem;height:1rem;opacity:0}.bx--tile__checkmark svg{border-radius:50%;fill:#525252}.bx--tile__checkmark:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile__checkmark:focus{outline-style:dotted}}.bx--tile__checkmark--persistent{opacity:1}.bx--tile__chevron{position:absolute;right:1rem;bottom:1rem;display:flex;height:1rem;align-items:flex-end}.bx--tile__chevron svg{margin-left:.5rem;fill:#161616;transform-origin:center;transition:110ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--tile__chevron svg{transition:none}}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tile__chevron svg{fill:ButtonText}}.bx--tile__chevron:hover{cursor:pointer}.bx--tile__chevron:focus{outline:none}.bx--tile--expandable{position:relative;overflow:hidden;width:100%;border:0;color:inherit;font-size:inherit;text-align:left;transition:max-height 150ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tile-content__above-the-fold{display:block}.bx--tile-content__below-the-fold{display:block;opacity:0;transition:opacity 110ms cubic-bezier(0.2, 0, 0.38, 0.9),visibility 110ms cubic-bezier(0.2, 0, 0.38, 0.9);visibility:hidden}.bx--tile--is-expanded{overflow:visible;transition:max-height 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tile--is-expanded .bx--tile__chevron svg{transform:rotate(180deg)}.bx--tile--is-expanded .bx--tile-content__below-the-fold{opacity:1;transition:opacity 110ms cubic-bezier(0.2, 0, 0.38, 0.9),visibility 110ms cubic-bezier(0.2, 0, 0.38, 0.9);visibility:inherit}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none) and (stroke-color: transparent){.bx--tile--is-expanded .bx--tile-content__below-the-fold{overflow-y:auto}}}.bx--tile--is-selected{border:1px solid #161616}.bx--tile--is-selected .bx--tile__checkmark{opacity:1}.bx--tile--is-selected .bx--tile__checkmark svg{fill:#161616}@media screen and (-ms-high-contrast: active),screen and (prefers-contrast){.bx--tile--is-selected .bx--tile__checkmark svg{fill:ButtonText}}.bx--tile-content{width:100%;height:100%}.bx--tile-input{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--tile-input:focus+.bx--tile{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tile-input:focus+.bx--tile{outline-style:dotted}}.bx--tile--disabled.bx--tile--selectable{background-color:#f4f4f4;color:#c6c6c6;cursor:not-allowed}.bx--tile--disabled.bx--tile--selectable.bx--tile--light{background-color:#fff}.bx--tile--disabled.bx--tile--is-selected{outline-color:#c6c6c6}.bx--tile--disabled.bx--tile--is-selected .bx--tile__checkmark svg{fill:#c6c6c6}.bx--time-picker{display:flex;align-items:flex-end}.bx--time-picker__select{justify-content:center}.bx--time-picker__select:not(:last-of-type){margin:0 .125rem}.bx--time-picker__input{display:flex;flex-direction:column}.bx--time-picker .bx--select-input{width:auto;min-width:auto;padding-right:3rem;margin:0}.bx--time-picker__input-field{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.32px;display:flex;width:4.875rem;height:2.5rem;align-items:center;transition:outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--time-picker__input-field::placeholder{color:#6f6f6f;opacity:1}.bx--time-picker--light .bx--select-input{background-color:#fff}.bx--time-picker--light .bx--select-input:hover{background-color:#e5e5e5}.bx--time-picker--light .bx--select-input:disabled,.bx--time-picker--light .bx--select-input:hover:disabled{border-bottom:1px solid rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#c6c6c6;cursor:not-allowed}.bx--time-picker--sm .bx--select-input,.bx--time-picker--sm .bx--time-picker__input-field{height:2rem;max-height:2rem}.bx--time-picker--xl .bx--select-input,.bx--time-picker--xl .bx--time-picker__input-field,.bx--time-picker--lg .bx--select-input,.bx--time-picker--lg .bx--time-picker__input-field{height:3rem;max-height:3rem}.bx--toggle{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--toggle:focus{outline:none}.bx--toggle__label{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;position:relative;display:flex;align-items:center;margin:.5rem 0;cursor:pointer}.bx--toggle__appearance{position:relative;width:3rem;height:1.5rem}.bx--toggle__appearance::before{position:absolute;top:0;display:block;width:3rem;height:1.5rem;box-sizing:border-box;background-color:#8d8d8d;border-radius:.9375rem;box-shadow:0 0 0 1px rgba(0,0,0,0),0 0 0 3px rgba(0,0,0,0);content:\"\";cursor:pointer;transition:box-shadow 70ms cubic-bezier(0.2, 0, 1, 0.9),background-color 70ms cubic-bezier(0.2, 0, 1, 0.9);will-change:box-shadow}@media screen and (prefers-reduced-motion: reduce){.bx--toggle__appearance::before{transition:none}}.bx--toggle__appearance::after{position:absolute;top:.1875rem;left:.1875rem;display:block;width:1.125rem;height:1.125rem;box-sizing:border-box;background-color:#fff;border-radius:50%;content:\"\";cursor:pointer;transition:transform 70ms cubic-bezier(0.2, 0, 1, 0.9)}.bx--toggle__check{position:absolute;z-index:1;top:.375rem;left:.375rem;width:.375rem;height:.3125rem;fill:#fff;transform:scale(0.2);transition:70ms cubic-bezier(0.2, 0, 1, 0.9)}.bx--toggle__text--left,.bx--toggle__text--right{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:relative;margin-left:.5rem}.bx--toggle__text--left{position:absolute;left:3rem}.bx--toggle:checked+.bx--toggle__label .bx--toggle__text--left,.bx--toggle:not(:checked)+.bx--toggle__label .bx--toggle__text--right{visibility:hidden}.bx--toggle:checked+.bx--toggle__label .bx--toggle__text--right,.bx--toggle:not(:checked)+.bx--toggle__label .bx--toggle__text--left{display:inline}.bx--toggle:checked+.bx--toggle__label .bx--toggle__appearance::before{background-color:#198038}.bx--toggle:checked+.bx--toggle__label .bx--toggle__appearance::after{background-color:#fff;transform:translateX(1.5rem)}.bx--toggle+.bx--toggle__label .bx--toggle__appearance::before{box-shadow:0 0 0 1px rgba(0,0,0,0),0 0 0 3px rgba(0,0,0,0)}.bx--toggle:focus+.bx--toggle__label,.bx--toggle:active+.bx--toggle__label .bx--toggle__appearance::before{box-shadow:0 0 0 1px #e0e0e0,0 0 0 3px #0f62fe}.bx--toggle:disabled+.bx--toggle__label{cursor:not-allowed}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance::before{background-color:#f4f4f4}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance::after{background-color:#c6c6c6}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance::before,.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance::after{cursor:not-allowed;transition:70ms cubic-bezier(0.2, 0, 1, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance::before,.bx--toggle:disabled+.bx--toggle__label .bx--toggle__appearance::after{transition:none}}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__text--left,.bx--toggle:disabled+.bx--toggle__label .bx--toggle__text--right{color:#c6c6c6}.bx--toggle:disabled:active+.bx--toggle__label .bx--toggle__appearance:before{box-shadow:none}.bx--toggle:disabled+.bx--toggle__label .bx--toggle__check{fill:#c6c6c6}.bx--toggle--small+.bx--toggle__label .bx--toggle__appearance{width:2rem;height:1rem}.bx--toggle--small+.bx--toggle__label .bx--toggle__appearance::before{top:0;width:2rem;height:1rem;box-sizing:border-box;border-radius:.9375rem}.bx--toggle--small+.bx--toggle__label .bx--toggle__appearance::after{top:.1875rem;left:.1875rem;width:.625rem;height:.625rem}.bx--toggle--small:checked+.bx--toggle__label .bx--toggle__check{fill:#198038;transform:scale(1) translateX(1rem)}.bx--toggle--small+.bx--toggle__label .bx--toggle__text--left{left:2rem}.bx--toggle--small:checked+.bx--toggle__label .bx--toggle__appearance::after{margin-left:0;transform:translateX(1.0625rem)}.bx--toggle-input{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--toggle-input:focus{outline:none}.bx--toggle-input__label{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;display:flex;flex-direction:column;align-items:flex-start;color:#525252;cursor:pointer}.bx--toggle__switch{position:relative;display:flex;width:3rem;height:1.5rem;align-items:center;cursor:pointer}.bx--toggle__switch::before{position:absolute;top:0;display:block;width:3rem;height:1.5rem;box-sizing:border-box;background-color:#8d8d8d;border-radius:.9375rem;box-shadow:0 0 0 1px rgba(0,0,0,0),0 0 0 3px rgba(0,0,0,0);content:\"\";transition:box-shadow 70ms cubic-bezier(0.2, 0, 1, 0.9),background-color 70ms cubic-bezier(0.2, 0, 1, 0.9);will-change:box-shadow}@media screen and (prefers-reduced-motion: reduce){.bx--toggle__switch::before{transition:none}}.bx--toggle__switch::after{position:absolute;top:.1875rem;left:.1875rem;display:block;width:1.125rem;height:1.125rem;box-sizing:border-box;background-color:#fff;border-radius:50%;content:\"\";transition:transform 70ms cubic-bezier(0.2, 0, 1, 0.9)}.bx--toggle-input__label .bx--toggle__switch{margin-top:1rem}.bx--toggle__text--off,.bx--toggle__text--on{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;position:absolute;top:50%;margin-left:3.5rem;transform:translateY(-50%);user-select:none;white-space:nowrap}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch>.bx--toggle__text--off,.bx--toggle-input:not(:checked)+.bx--toggle-input__label>.bx--toggle__switch>.bx--toggle__text--on{visibility:hidden}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch::before{background-color:#198038}.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch::after{background-color:#fff;transform:translateX(1.5rem)}.bx--toggle-input:focus+.bx--toggle-input__label>.bx--toggle__switch::before,.bx--toggle-input:active+.bx--toggle-input__label>.bx--toggle__switch::before{box-shadow:0 0 0 1px #fff,0 0 0 3px #0f62fe}.bx--toggle-input:disabled+.bx--toggle-input__label{color:#c6c6c6;cursor:not-allowed}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch{cursor:not-allowed}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch::before{background-color:#c6c6c6}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch::after{background-color:#8d8d8d}.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch::before,.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch::after{cursor:not-allowed;transition:70ms cubic-bezier(0.2, 0, 1, 0.9)}@media screen and (prefers-reduced-motion: reduce){.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch::before,.bx--toggle-input:disabled+.bx--toggle-input__label>.bx--toggle__switch::after{transition:none}}.bx--toggle-input:disabled:active+.bx--toggle-input__label>.bx--toggle__switch::before{box-shadow:none}.bx--toggle-input--small+.bx--toggle-input__label>.bx--toggle__switch{width:2rem;height:1rem}.bx--toggle-input--small+.bx--toggle-input__label>.bx--toggle__switch::before{width:2rem;height:1rem;border-radius:.9375rem}.bx--toggle-input--small+.bx--toggle-input__label>.bx--toggle__switch::after{width:.625rem;height:.625rem}.bx--toggle-input--small+.bx--toggle-input__label .bx--toggle__text--off,.bx--toggle-input--small+.bx--toggle-input__label .bx--toggle__text--on{margin-left:2.5rem}.bx--toggle-input--small:checked+.bx--toggle-input__label>.bx--toggle__switch::after{transform:translateX(1.0625rem)}.bx--toggle-input--small:checked+.bx--toggle-input__label .bx--toggle__check{fill:#198038;transform:scale(1) translateX(1rem)}.bx--toggle-input--small:disabled:checked+.bx--toggle-input__label .bx--toggle__check{fill:#f4f4f4}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:3rem;margin-top:.5rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:hover,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:focus,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:active{border:none;cursor:default;outline:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch::before{animation:none}}.bx--toggle.bx--skeleton+.bx--toggle-input__label>div{overflow:hidden;width:1.5rem;height:.5rem;font-size:0%;line-height:0;position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:hover,.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:focus,.bx--toggle.bx--skeleton+.bx--toggle-input__label>div:active{border:none;cursor:default;outline:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label>div::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--toggle.bx--skeleton+.bx--toggle-input__label>div::before{animation:none}}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;width:2rem;margin-top:.5rem}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:hover,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:focus,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch:active{border:none;cursor:default;outline:none}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch::before{animation:none}}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div{overflow:hidden;width:1rem;height:.5rem;font-size:0%;line-height:0;position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:hover,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:focus,.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div:active{border:none;cursor:default;outline:none}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label>div::before{animation:none}}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left{position:relative;padding:0;border:none;background:#e5e5e5;box-shadow:none;pointer-events:none;position:absolute;width:1rem;height:.5rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:hover,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:focus,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:active{border:none;cursor:default;outline:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left::before{position:absolute;top:0;left:0;width:100%;height:100%;animation:3000ms ease-in-out skeleton infinite;background:#c6c6c6;content:\"\";will-change:transform-origin,transform,opacity}@media(prefers-reduced-motion: reduce){.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left::before{animation:none}}.bx--toggle-input--small.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left{left:2rem}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch::after,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__appearance::after,.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__appearance::before{display:none}.bx--toggle.bx--skeleton+.bx--toggle-input__label .bx--toggle__switch::before{border-radius:0}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--toggle__switch::before{outline:1px solid rgba(0,0,0,0)}}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--toggle__switch::after,.bx--toggle-input:checked+.bx--toggle-input__label>.bx--toggle__switch::after{outline:1px solid rgba(0,0,0,0);background-color:ButtonText}}.bx--toolbar{display:flex;flex-flow:row nowrap;align-items:center;margin:1rem 0}.bx--toolbar>div{margin:0 .25rem}.bx--toolbar .bx--search-input{height:2rem;background-color:rgba(0,0,0,0);outline:none}.bx--toolbar .bx--search-close{display:none}.bx--toolbar .bx--overflow-menu__icon{fill:#525252;transition:fill 50ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--toolbar .bx--search-magnifier{top:.5rem;left:.375rem;cursor:pointer;fill:#525252;transform:scale(1.15);transition:all 175ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--toolbar fieldset{padding:0;border:0}.bx--toolbar .bx--toolbar-search--active{width:15.625rem}.bx--toolbar .bx--toolbar-search--active .bx--search-magnifier{top:.5625rem;transform:scale(1)}.bx--toolbar .bx--toolbar-search--active .bx--search-input{background-color:#fff}.bx--toolbar .bx--toolbar-search--active .bx--search-close{display:block}.bx--toolbar .bx--checkbox-label{margin-bottom:0}.bx--toolbar .bx--overflow-menu--open>.bx--overflow-menu__icon{fill:#0f62fe}.bx--toolbar-search{width:1.8rem;transition:all 175ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--toolbar-search__btn{position:absolute;top:0;left:0;width:2rem;height:2rem;border:0;background:rgba(0,0,0,0)}.bx--toolbar-search__btn:focus{outline:1px solid #0f62fe}@media screen and (prefers-contrast){.bx--toolbar-search__btn:focus{outline-style:dotted}}.bx--toolbar-filter-icon{padding-right:0;padding-left:0}.bx--toolbar-menu__title{font-size:.75rem;font-weight:400;line-height:1.33333;letter-spacing:.32px;padding:.5rem 1.25rem;font-weight:600}.bx--toolbar-menu__option{padding:.5rem 1.25rem}.bx--toolbar-menu__divider{width:100%;border:0;border-top:1px solid #e0e0e0}.bx--radio-button-group{border:none}.bx--toolbar-search:not(.bx--toolbar-search--active) .bx--search-input{border-bottom:none}.bx--unstable-pagination{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;width:100%;height:3rem;align-items:center;justify-content:space-between;border-top:1px solid #e0e0e0;border-bottom:1px solid rgba(0,0,0,0);background-color:#f4f4f4}.bx--unstable-pagination__text{margin:0 1rem;color:#525252}@media(min-width: 42rem){.bx--unstable-pagination__text{display:inline-block}}.bx--unstable-pagination__left,.bx--unstable-pagination__right{display:flex;height:100%;align-items:center}.bx--unstable-pagination__left{padding:0 1rem 0 0}.bx--unstable-pagination__left>.bx--form-item,.bx--unstable-pagination__right>.bx--form-item{height:100%}.bx--unstable-pagination__left .bx--unstable-pagination__text{margin-right:.0625rem}.bx--unstable-pagination__right .bx--unstable-pagination__text{margin-right:1rem;margin-left:.0625rem}.bx--unstable-pagination__button{display:flex;height:100%;align-items:center;justify-content:center;padding:0 .875rem;border:none;border-left:1px solid #e0e0e0;margin:0;background:none;color:#161616;cursor:pointer;fill:#161616;transition:outline 110ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--unstable-pagination__button .bx--btn__icon{width:initial;height:initial}.bx--unstable-pagination__button.bx--btn--icon-only.bx--tooltip__trigger:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--unstable-pagination__button.bx--btn--icon-only.bx--tooltip__trigger:focus{outline-style:dotted}}.bx--unstable-pagination__button:hover{background:#e5e5e5;color:#161616}.bx--unstable-pagination__button--no-index{cursor:not-allowed;fill:#c6c6c6}.bx--unstable-pagination__button.bx--btn:disabled{border-color:#e0e0e0;background:rgba(0,0,0,0)}.bx--unstable-pagination__button:disabled:hover,.bx--unstable-pagination__button--no-index:hover{background:rgba(0,0,0,0);cursor:not-allowed;fill:#c6c6c6}.bx--unstable-pagination__page-selector,.bx--unstable-pagination__page-sizer{height:100%;align-items:center}.bx--unstable-pagination__page-selector .bx--select-input--inline__wrapper,.bx--unstable-pagination__page-sizer .bx--select-input--inline__wrapper{display:flex;height:100%}.bx--unstable-pagination__page-selector .bx--select-input,.bx--unstable-pagination__page-sizer .bx--select-input{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;width:auto;min-width:auto;height:100%;padding:0 2.5rem 0 1rem;margin-right:-0.65rem}@media(min-width: 42rem){.bx--unstable-pagination__page-selector .bx--select-input,.bx--unstable-pagination__page-sizer .bx--select-input{padding-right:2.25rem;margin-right:0}}.bx--unstable-pagination__page-selector .bx--select-input:hover,.bx--unstable-pagination__page-sizer .bx--select-input:hover{background:#e5e5e5}.bx--unstable-pagination__page-selector .bx--select__arrow,.bx--unstable-pagination__page-sizer .bx--select__arrow{top:50%;transform:translateY(-50%)}@media(min-width: 42rem){.bx--unstable-pagination__page-selector .bx--select__arrow,.bx--unstable-pagination__page-sizer .bx--select__arrow{right:1rem}}.bx--unstable-pagination__page-selector{border-left:1px solid #e0e0e0}.bx--unstable-pagination__page-sizer{border-right:1px solid #e0e0e0}.bx--header{position:fixed;z-index:8000;top:0;right:0;left:0;display:flex;height:3rem;align-items:center;border-bottom:1px solid #393939;background-color:#161616}.bx--header__action{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;width:3rem;height:3rem;border:.0625rem solid rgba(0,0,0,0);transition:background-color 110ms,border-color 110ms}.bx--header__action::-moz-focus-inner{border:0}.bx--header__action>svg.bx--navigation-menu-panel-collapse-icon,.bx--header__action--active>svg.bx--navigation-menu-panel-expand-icon{display:none}.bx--header__action--active>svg.bx--navigation-menu-panel-collapse-icon{display:inline}.bx--header__action:hover{background-color:#353535}.bx--header__action--active{border-right:1px solid #393939;border-bottom:1px solid #161616;border-left:1px solid #393939}.bx--header__action:focus{border-color:#fff;outline:none}.bx--header__action:active{background-color:#393939}.bx--header__action.bx--btn--icon-only.bx--tooltip__trigger{justify-content:center}.bx--header__action>svg{fill:#fff}.bx--header__menu-trigger>svg{fill:#f4f4f4}.bx--header__menu-trigger:hover{fill:#2c2c2c}.bx--header__menu-toggle{display:flex;align-items:center;justify-content:center}@media(min-width: 66rem){.bx--header__menu-toggle__hidden{display:none}}a.bx--header__name{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;height:100%;align-items:center;padding:0 2rem 0 1rem;border:.125rem solid rgba(0,0,0,0);font-weight:600;letter-spacing:.1px;line-height:1.25rem;outline:none;text-decoration:none;transition:border-color 110ms;user-select:none}a.bx--header__name:focus{border-color:#fff}.bx--header__name--prefix{font-weight:400}a.bx--header__name,a.bx--header__name:hover{color:#f4f4f4}.bx--header__menu-toggle:not(.bx--header__menu-toggle__hidden)~.bx--header__name{padding-left:.5rem}.bx--header__nav{position:relative;display:none;height:100%;padding-left:1rem}@media(min-width: 66rem){.bx--header__nav{display:block}}.bx--header__nav::before{position:absolute;top:50%;left:0;display:block;width:.0625rem;height:1.5rem;background-color:#393939;content:\"\";transform:translateY(-50%)}.bx--header__menu-bar{display:flex;height:100%;padding:0;margin:0;list-style:none}a.bx--header__menu-item{position:relative;display:flex;height:100%;align-items:center;padding:0 1rem;border:2px solid rgba(0,0,0,0);color:#c6c6c6;font-size:.875rem;font-weight:400;letter-spacing:0;line-height:1.125rem;text-decoration:none;transition:background-color 110ms,border-color 110ms,color 110ms;user-select:none}a.bx--header__menu-item:hover{background-color:#2c2c2c;color:#f4f4f4}.bx--header__action:active,a.bx--header__menu-item:active{background-color:#393939;color:#f4f4f4}a.bx--header__menu-item:focus{border-color:#fff;color:#f4f4f4;outline:none}a.bx--header__menu-item:hover>svg,a.bx--header__menu-item:active>svg,a.bx--header__menu-item:focus>svg{fill:#f4f4f4}a.bx--header__menu-item[aria-current=page]::after,.bx--header__menu-item--current::after{position:absolute;top:0;right:0;bottom:-2px;left:0;width:100%;border-bottom:3px solid #4589ff;content:\"\"}a.bx--header__menu-item[aria-current=page]:focus::after,.bx--header__menu-item--current:focus::after{border:0}a.bx--header__menu-item[aria-current=page]:focus,a.bx--header__menu-item.bx--header__menu-item--current:focus{border:2px solid #fff}.bx--header__submenu{position:relative}.bx--header__submenu--current::after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;border-bottom:3px solid #0f62fe;content:\"\"}.bx--header__submenu--current:focus{border:2px solid #0f62fe}.bx--header__submenu--current:focus::after{border:0}.bx--header__menu-title[aria-haspopup=true]{position:relative}.bx--header__menu-title[aria-expanded=true]{z-index:8001;background-color:#262626;color:#fff}.bx--header__menu-title[aria-expanded=true]>.bx--header__menu-arrow{transform:rotate(180deg)}.bx--header__menu{display:none;padding:0;margin:0;list-style:none}.bx--header__menu-title[aria-expanded=true]+.bx--header__menu{position:absolute;z-index:8000;bottom:0;left:0;display:flex;width:12.5rem;flex-direction:column;background-color:#262626;box-shadow:0 4px 8px 0 rgba(0,0,0,.5);transform:translateY(100%)}.bx--header__menu-title[aria-expanded=true]+.bx--header__menu .bx--header__menu-item:hover{background-color:#353535}.bx--header__menu-title[aria-expanded=true]+.bx--header__menu .bx--header__menu-item:active{background-color:#393939}.bx--header__menu .bx--header__menu-item{height:3rem}.bx--header__menu .bx--header__menu-item:hover{background-color:#262626;color:#f4f4f4}.bx--header__menu-arrow{margin-left:.5rem;fill:#c6c6c6;transition:transform 110ms,fill 110ms}.bx--header__global{display:flex;height:100%;flex:1 1 0%;justify-content:flex-end}.bx--skip-to-content{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0, 0, 0, 0);visibility:inherit;white-space:nowrap}.bx--skip-to-content:focus{z-index:9999;top:0;left:0;display:flex;width:auto;height:3rem;align-items:center;padding:0 1rem;border:4px solid #0f62fe;background-color:#161616;clip:auto;color:#f4f4f4;outline:none}.bx--header-panel{transition-timing-function:cubic-bezier(0.2, 0, 1, 0.9);position:fixed;z-index:8000;top:3rem;right:0;bottom:0;overflow:hidden;width:0;border:none;background-color:#161616;color:#c6c6c6;transition:width .11s;will-change:width}.bx--header-panel--expanded{width:16rem;border-right:1px solid #393939;border-left:1px solid #393939}.bx--panel--overlay{position:fixed;z-index:1000;top:3rem;right:0;bottom:0;width:16rem;height:100%;padding:1rem 0;background-color:#161616;overflow-x:hidden;overflow-y:auto;transform:translate3d(100%, 0, 0);transition:transform .11s cubic-bezier(0.2, 0, 0.38, 0.9);will-change:transform}.bx--panel--expanded{box-shadow:0 8px 16px 0 rgba(0,0,0,.25);transform:translate3d(0, 0, 0)}.bx--product-switcher__search{padding:0 1rem;margin-bottom:1.5rem}.bx--search--shell input{background-color:#e0e0e0}.bx--product-switcher__subheader,.bx--product-switcher__all-btn{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;padding:.5rem;color:#c6c6c6}.bx--product-switcher__subheader{padding-left:3.5rem}.bx--product-switcher__all-btn{padding-left:3.5rem}.bx--product-switcher__all-btn,.bx--product-switcher__back-btn{display:inline-block;width:100%;border:none;background:rgba(0,0,0,0);color:#0f62fe;cursor:pointer;text-align:left}.bx--product-switcher__all-btn:hover,.bx--product-switcher__back-btn:hover{text-decoration:underline}.bx--product-switcher__all-btn:focus,.bx--product-switcher__back-btn:focus{box-shadow:inset 0 0 0 3px #0f62fe;outline:none}.bx--product-switcher__back-btn{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;display:flex;align-items:center;padding:.5rem 1rem}.bx--product-switcher__back-arrow{margin-right:1rem;fill:#0f62fe}.bx--product-list__item{display:flex;align-items:center;justify-content:space-between;cursor:pointer}.bx--product-list__item:hover{background:#e0e0e0}.bx--product-link{display:flex;width:100%;flex-direction:row;align-items:center;padding:.5rem 1rem;text-decoration:none}.bx--product-link:focus{box-shadow:inset 0 0 0 3px #0f62fe;outline:none}.bx--product-switcher__icon{margin-right:1rem}.bx--product-link__name{font-size:.875rem;font-weight:400;line-height:1.28572;letter-spacing:.16px;margin-left:.25rem;color:#c6c6c6;font-weight:400}.bx--product-switcher__product-list .bx--overflow-menu{display:none;width:2.5rem;align-items:center;justify-content:center}.bx--product-switcher__product-list .bx--overflow-menu.bx--overflow-menu--open{display:flex}.bx--product-switcher__product-list .bx--overflow-menu>svg{fill:#c6c6c6}.bx--product-switcher__product-list .bx--overflow-menu:hover{background:#c6c6c6}.bx--product-switcher__product-list .bx--overflow-menu:hover>svg{fill:#c6c6c6}.bx--product-switcher__product-list .bx--overflow-menu:focus{display:flex;box-shadow:inset 0 0 0 3px #0f62fe;outline:none}.bx--product-switcher__product-list .bx--overflow-menu-options__option:hover{background:#fff}.bx--product-list__item:hover .bx--overflow-menu{display:flex}.bx--switcher{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#c6c6c6}.bx--switcher__item{width:100%;height:2rem}.bx--switcher__item:nth-child(1){margin-top:1rem}.bx--switcher__item--divider{display:block;width:14rem;height:1px;border:none;margin:.5rem 1rem;background:#393939}.bx--switcher__item-link{font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;display:block;height:2rem;padding:.375rem 1rem;color:#c6c6c6;text-decoration:none}.bx--switcher__item-link:hover:not(.bx--switcher__item-link--selected){background:#2c2c2c;color:#f4f4f4;cursor:pointer}.bx--switcher__item-link:focus{outline:2px solid #fff;outline-offset:-2px}.bx--switcher__item-link:active{background:#393939;color:#f4f4f4}.bx--switcher__item-link--selected{background:#262626;color:#f4f4f4}.bx--side-nav{position:fixed;z-index:8000;top:0;bottom:0;left:0;overflow:hidden;width:3rem;max-width:16rem;background-color:#fff;color:#525252;transition:width .11s cubic-bezier(0.2, 0, 1, 0.9);will-change:width}.bx--side-nav--ux{top:3rem;width:16rem}@media(max-width: 65.98rem){.bx--side-nav--ux{width:0}}.bx--side-nav--rail{width:3rem}.bx--side-nav--hidden{width:0}.bx--side-nav.bx--side-nav--rail:not(.bx--side-nav--fixed):hover,.bx--side-nav--expanded{width:16rem}.bx--side-nav__overlay{position:fixed;top:3rem;left:0;width:0;height:0;background-color:rgba(0,0,0,0);opacity:0;transition:opacity 240ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 240ms cubic-bezier(0.2, 0, 0.38, 0.9)}@media(max-width: 65.98rem){.bx--side-nav__overlay-active{width:100vw;height:100vh;background-color:rgba(22,22,22,.5);opacity:1;transition:opacity 240ms cubic-bezier(0.2, 0, 0.38, 0.9),background-color 240ms cubic-bezier(0.2, 0, 0.38, 0.9)}}.bx--header~.bx--side-nav{top:3rem;height:calc(100% - 48px)}.bx--side-nav--fixed{width:16rem}.bx--side-nav--collapsed{width:16rem;transform:translateX(-16rem)}.bx--side-nav__navigation{display:flex;height:100%;flex-direction:column}.bx--side-nav__header{display:flex;width:100%;max-width:100%;height:3rem;border-bottom:1px solid #393939}.bx--side-nav:hover .bx--side-nav__header,.bx--side-nav--fixed .bx--side-nav__header,.bx--side-nav--expanded .bx--side-nav__header{height:auto}.bx--side-nav--ux .bx--side-nav__header{height:auto}.bx--side-nav__details{display:flex;min-width:0;flex:1;flex-direction:column;padding-right:1rem;opacity:0;visibility:hidden}.bx--side-nav:hover .bx--side-nav__details,.bx--side-nav--fixed .bx--side-nav__details,.bx--side-nav--expanded .bx--side-nav__details{visibility:inherit;opacity:1}.bx--side-nav--ux .bx--side-nav__details{opacity:1;visibility:inherit}.bx--side-nav__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1rem;font-size:.875rem;font-weight:600;letter-spacing:.1px;user-select:none}.bx--side-nav__title,.bx--side-nav__select{padding-left:.5rem}.bx--side-nav__switcher{position:relative;display:flex;align-items:center;justify-content:space-between}.bx--side-nav__switcher-chevron{position:absolute;top:0;right:.5rem;bottom:0;display:flex;align-items:center;fill:#525252}.bx--side-nav__select{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;min-width:0;height:2rem;flex:1 1 0%;padding-right:2rem;border:none;appearance:none;background-color:#161616;border-radius:0;color:#f4f4f4;cursor:pointer;font-size:.75rem;transition:outline 110ms}.bx--side-nav__select:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav__select:focus{outline-style:dotted}}.bx--side-nav__footer{width:100%;flex:0 0 3rem;background-color:#fff}.bx--side-nav__toggle{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;height:100%;padding-left:1rem;text-align:left;transition:outline 110ms}.bx--side-nav__toggle::-moz-focus-inner{border:0}.bx--side-nav__toggle:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav__toggle:focus{outline-style:dotted}}.bx--side-nav__items{overflow:hidden;flex:1 1 0%;padding:1rem 0 0}.bx--side-nav:hover .bx--side-nav__items,.bx--side-nav--fixed .bx--side-nav__items,.bx--side-nav--expanded .bx--side-nav__items{overflow-y:auto}.bx--side-nav--ux .bx--side-nav__items{overflow-y:auto}.bx--side-nav__item{overflow:hidden;width:auto;height:auto}.bx--side-nav--ux .bx--side-nav__item{width:auto;height:auto}.bx--side-nav__item:not(.bx--side-nav__item--active):hover .bx--side-nav__item:not(.bx--side-nav__item--active)>.bx--side-nav__submenu:hover,.bx--side-nav__item:not(.bx--side-nav__item--active)>.bx--side-nav__link:hover,.bx--side-nav__menu a.bx--side-nav__link:not(.bx--side-nav__link--current):not([aria-current=page]):hover,.bx--side-nav a.bx--header__menu-item:hover,.bx--side-nav .bx--header__menu-title[aria-expanded=true]:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav__item:not(.bx--side-nav__item--active)>.bx--side-nav__link:hover>span,.bx--side-nav__item:not(.bx--side-nav__item--active) .bx--side-nav__menu-item>.bx--side-nav__link:hover>span{color:#161616}.bx--side-nav__item--large{height:3rem}.bx--side-nav__divider{height:1px;margin:.5rem 1rem;background-color:#e0e0e0}.bx--side-nav__submenu{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;outline:2px solid rgba(0,0,0,0);outline-offset:-2px;display:flex;height:2rem;align-items:center;padding:0 1rem;color:#525252;transition:color 110ms,background-color 110ms,outline 110ms;user-select:none}.bx--side-nav__submenu::-moz-focus-inner{border:0}.bx--side-nav__submenu:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav__submenu:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--side-nav__submenu:focus{outline-style:dotted}}.bx--side-nav__submenu-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.bx--side-nav__icon.bx--side-nav__submenu-chevron{display:flex;flex:1;justify-content:flex-end}.bx--side-nav__submenu-chevron>svg{width:1rem;height:1rem;transition:transform 110ms}.bx--side-nav__submenu[aria-expanded=true] .bx--side-nav__submenu-chevron>svg{transform:rotate(180deg)}.bx--side-nav__item--large .bx--side-nav__submenu{height:3rem}.bx--side-nav__item--active .bx--side-nav__submenu:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav__item--active .bx--side-nav__submenu[aria-expanded=false]{position:relative;background-color:#e5e5e5;color:#161616}.bx--side-nav__item--active .bx--side-nav__submenu[aria-expanded=false]::before{position:absolute;top:0;bottom:0;left:0;width:4px;background-color:#0f62fe;content:\"\"}.bx--side-nav__item--active .bx--side-nav__submenu-title{color:#161616;font-weight:600}.bx--side-nav__menu{display:block;max-height:0;visibility:hidden}.bx--side-nav__submenu[aria-expanded=true]+.bx--side-nav__menu{max-height:93.75rem;visibility:inherit}.bx--side-nav__menu a.bx--side-nav__link{height:2rem;min-height:2rem;padding-left:2rem;font-weight:400}.bx--side-nav__item.bx--side-nav__item--icon a.bx--side-nav__link{padding-left:4.5rem}.bx--side-nav__menu a.bx--side-nav__link--current,.bx--side-nav__menu a.bx--side-nav__link[aria-current=page],a.bx--side-nav__link--current{background-color:#e0e0e0}.bx--side-nav__menu a.bx--side-nav__link--current>span,.bx--side-nav__menu a.bx--side-nav__link[aria-current=page]>span,a.bx--side-nav__link--current>span{color:#161616;font-weight:600}a.bx--side-nav__link,.bx--side-nav a.bx--header__menu-item,.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu{outline:2px solid rgba(0,0,0,0);outline-offset:-2px;font-size:.875rem;font-weight:600;line-height:1.28572;letter-spacing:.16px;position:relative;display:flex;min-height:2rem;align-items:center;padding:0 1rem;text-decoration:none;transition:color 110ms,background-color 110ms,outline 110ms}.bx--side-nav__item--large a.bx--side-nav__link{height:3rem}a.bx--side-nav__link>.bx--side-nav__link-text,.bx--side-nav a.bx--header__menu-item .bx--text-truncate-end{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#525252;font-size:.875rem;letter-spacing:.1px;line-height:1.25rem;user-select:none}a.bx--side-nav__link:focus,.bx--side-nav a.bx--header__menu-item:focus{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){a.bx--side-nav__link:focus,.bx--side-nav a.bx--header__menu-item:focus{outline-style:dotted}}a.bx--side-nav__link[aria-current=page],a.bx--side-nav__link--current{background-color:#e5e5e5;font-weight:600}a.bx--side-nav__link[aria-current=page] .bx--side-nav__link-text,a.bx--side-nav__link--current .bx--side-nav__link-text{color:#161616}a.bx--side-nav__link[aria-current=page]::before,a.bx--side-nav__link--current::before{position:absolute;top:0;bottom:0;left:0;width:4px;background-color:#0f62fe;content:\"\"}.bx--side-nav__icon{display:flex;flex:0 0 1rem;align-items:center;justify-content:center}.bx--side-nav__icon:not(.bx--side-nav__submenu-chevron){margin-right:1.5rem}.bx--side-nav__icon>svg{width:1rem;height:1rem;fill:#525252}.bx--side-nav__icon>svg.bx--side-nav-collapse-icon{display:none}.bx--side-nav--expanded .bx--side-nav__icon>svg.bx--side-nav-expand-icon{display:none}.bx--side-nav--expanded .bx--side-nav__icon>svg.bx--side-nav-collapse-icon{display:block}.bx--side-nav--fixed a.bx--side-nav__link,.bx--side-nav--fixed .bx--side-nav__submenu{padding-left:1rem}.bx--side-nav--fixed .bx--side-nav__item:not(.bx--side-nav__item--icon) .bx--side-nav__menu a.bx--side-nav__link{padding-left:2rem}@media(max-width: 65.98rem){.bx--side-nav .bx--header__nav{display:block}}.bx--side-nav__header-navigation{display:none}@media(max-width: 65.98rem){.bx--side-nav__header-navigation{position:relative;display:block;margin-bottom:2rem}}.bx--side-nav__header-divider::after{position:absolute;bottom:-1rem;left:1rem;width:calc(100% - 32px);height:.0625rem;background:#e0e0e0;content:\"\"}.bx--side-nav a.bx--header__menu-item{justify-content:space-between;color:#525252;white-space:nowrap}.bx--side-nav a.bx--header__menu-item[aria-expanded=true]{background-color:rgba(0,0,0,0)}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu{bottom:inherit;width:100%;padding:0;background-color:rgba(0,0,0,0);box-shadow:none;transform:none}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu li{width:100%}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu a.bx--header__menu-item{padding-left:4.25rem;font-weight:400}.bx--side-nav .bx--header__menu-title[aria-expanded=true]+.bx--header__menu a.bx--header__menu-item:hover{background-color:#e5e5e5;color:#161616}.bx--side-nav .bx--header__menu a.bx--header__menu-item{height:inherit}.bx--side-nav a.bx--header__menu-item:hover .bx--header__menu-arrow,.bx--side-nav a.bx--header__menu-item:focus .bx--header__menu-arrow,.bx--side-nav .bx--header__menu-arrow{fill:#525252}@media screen and (-ms-high-contrast: active),(forced-colors: active){.bx--side-nav__icon>svg,.bx--side-nav a.bx--header__menu-item:hover .bx--header__menu-arrow,.bx--side-nav a.bx--header__menu-item:focus .bx--header__menu-arrow,.bx--side-nav .bx--header__menu-arrow{fill:ButtonText}}.bx--navigation{position:fixed;z-index:9100;top:3rem;bottom:0;left:0;width:16rem;background-color:#262626;box-shadow:0 .5rem 1rem 0 rgba(0,0,0,.25);color:#f4f4f4}.bx--navigation--right{right:0;left:auto}.bx--navigation svg{fill:#f4f4f4}.bx--navigation-section:not(:last-child)::after{display:block;height:1px;margin:0 1rem;background-color:#393939;content:\"\"}.bx--navigation-item{position:relative;display:flex;align-items:center}.bx--navigation-item--active>a.bx--navigation-link{color:#fff;font-weight:600}.bx--navigation-item--active::after{position:absolute;top:0;bottom:0;left:0;display:block;width:4px;background-color:#0f62fe;content:\"\"}a.bx--navigation-link{display:flex;width:100%;min-height:2.5rem;align-items:center;padding-left:1rem;color:#f4f4f4;font-size:.875rem;font-weight:400;text-decoration:none}a.bx--navigation-link:hover{background-color:#333;color:#fff}a.bx--navigation-link:focus{outline:.1875rem solid #0f62fe;outline-offset:-0.1875rem}.bx--navigation-item--icon>a.bx--navigation-link{padding-left:0}.bx--navigation__category{width:100%}.bx--navigation__category-toggle{display:inline-block;padding:0;border:0;appearance:none;background:none;cursor:pointer;width:100%;display:flex;align-items:center}.bx--navigation__category-toggle::-moz-focus-inner{border:0}.bx--navigation__category-toggle:hover{background-color:#333}.bx--navigation__category-toggle:focus{outline:.1875rem solid #0f62fe;outline-offset:-0.1875rem}.bx--navigation__category-title{display:flex;width:100%;min-height:2.5rem;align-items:center;justify-content:space-between;padding-right:1rem;padding-left:1rem;color:#f4f4f4;font-size:.875rem;font-weight:400}.bx--navigation-item--icon .bx--navigation__category-title{padding-left:0}.bx--navigation__category-items{display:none;visibility:hidden}.bx--navigation__category-item>a.bx--navigation-link{display:flex;min-height:2rem;align-items:center;padding-left:2rem}.bx--navigation__category-item{position:relative}.bx--navigation-item--icon .bx--navigation__category-item>a.bx--navigation-link{padding-left:3.5rem}.bx--navigation__category-item--active::after{position:absolute;top:0;bottom:0;left:0;display:block;width:4px;background-color:#0f62fe;content:\"\"}.bx--navigation__category-item--active>a.bx--navigation-link{color:#fff;font-weight:600}.bx--navigation__category--expanded .bx--navigation__category-title{font-weight:600}.bx--navigation__category--expanded .bx--navigation__category-title>svg{transform:rotate(180deg)}.bx--navigation__category--expanded .bx--navigation__category-items{display:block;visibility:inherit}.bx--navigation-icon{display:flex;width:3rem;min-width:3rem;height:2.5rem;align-items:center;justify-content:center;margin-right:.5rem}.bx--content{padding:2rem;will-change:margin-left}.bx--header~.bx--content{margin-top:3rem}.bx--side-nav~.bx--content{margin-left:3rem}.bx--side-nav.bx--side-nav--expanded~.bx--content{margin-left:16rem}.bx--tree{overflow:hidden}.bx--tree .bx--tree-node{padding-left:1rem;background-color:#f4f4f4;color:#525252}.bx--tree .bx--tree-node:focus{outline:none}.bx--tree .bx--tree-node:focus>.bx--tree-node__label{outline:2px solid #0f62fe;outline-offset:-2px}@media screen and (prefers-contrast){.bx--tree .bx--tree-node:focus>.bx--tree-node__label{outline-style:dotted}}.bx--tree .bx--tree-node--disabled:focus>.bx--tree-node__label{outline:none}.bx--tree .bx--tree-node--disabled,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover .bx--tree-node__label__details{background-color:#f4f4f4;color:#c6c6c6}.bx--tree .bx--tree-node--disabled .bx--tree-parent-node__toggle-icon,.bx--tree .bx--tree-node--disabled .bx--tree-node__icon,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover .bx--tree-parent-node__toggle-icon,.bx--tree .bx--tree-node--disabled .bx--tree-node__label:hover .bx--tree-node__icon{fill:#c6c6c6}.bx--tree .bx--tree-node--disabled,.bx--tree .bx--tree-node--disabled .bx--tree-parent-node__toggle-icon:hover{cursor:not-allowed}.bx--tree .bx--tree-node__label{display:flex;min-height:2rem;flex:1;align-items:center}.bx--tree .bx--tree-node__label:hover{background-color:#e5e5e5;color:#161616}.bx--tree .bx--tree-node__label:hover .bx--tree-node__label__details{color:#161616}.bx--tree .bx--tree-node__label:hover .bx--tree-parent-node__toggle-icon,.bx--tree .bx--tree-node__label:hover .bx--tree-node__icon{fill:#161616}.bx--tree .bx--tree-leaf-node{display:flex;padding-left:2.5rem}.bx--tree .bx--tree-leaf-node.bx--tree-node--with-icon{padding-left:2rem}.bx--tree .bx--tree-node__label__details{display:flex;align-items:center}.bx--tree .bx--tree-node--with-icon .bx--tree-parent-node__toggle{margin-right:0}.bx--tree .bx--tree-parent-node__toggle{padding:0;border:0;margin-right:.5rem}.bx--tree .bx--tree-parent-node__toggle:hover{cursor:pointer}.bx--tree .bx--tree-parent-node__toggle:focus{outline:none}.bx--tree .bx--tree-parent-node__toggle-icon{fill:#525252;transform:rotate(-90deg);transition:all 110ms cubic-bezier(0.2, 0, 0.38, 0.9)}.bx--tree .bx--tree-parent-node__toggle-icon--expanded{transform:rotate(0)}.bx--tree .bx--tree-node__icon{flex-shrink:0;margin-right:.5rem;fill:#525252}.bx--tree .bx--tree-node--selected>.bx--tree-node__label{background-color:#e0e0e0;color:#161616}.bx--tree .bx--tree-node--selected>.bx--tree-node__label:hover{background-color:#cacaca}.bx--tree .bx--tree-node--selected>.bx--tree-node__label .bx--tree-parent-node__toggle-icon,.bx--tree .bx--tree-node--selected>.bx--tree-node__label .bx--tree-node__icon{fill:#161616}.bx--tree .bx--tree-node--active>.bx--tree-node__label{position:relative}.bx--tree .bx--tree-node--active>.bx--tree-node__label::before{position:absolute;top:0;left:0;width:.25rem;height:100%;background-color:#0f62fe;content:\"\"}.bx--tree--compact .bx--tree-node__label{min-height:1.5rem}.plot-tile-bck{display:flex;flex-direction:column}@media(max-width: 41.98rem){.plot-tile-bck:not(:nth-child(2)){border-top:1px solid #e0e0e0;padding-top:3rem}}@media(min-width: 42rem){.plot-tile-bck:nth-child(odd){border-left:1px solid #e0e0e0}}@media(min-width: 66rem){.plot-tile-bck{margin-top:0;border-left:1px solid #e0e0e0}.plot-tile-bck svg{margin-top:6rem}}.plot-tile{flex-grow:1;font-size:.875rem;font-weight:400;line-height:1.42857;letter-spacing:.16px;width:100%;height:100%}@media(min-width: 321px)and (max-width: 41.98rem){.plot-tile{max-width:75%}}.bx--tile{overflow:visible;white-space:normal}.assessments{white-space:nowrap;position:relative;padding-left:1rem;padding-right:1rem}.assessments .assessment{padding-left:1rem;padding-right:1rem;position:relative;display:inline-block;vertical-align:top}.assessments .assessment .orion-plots{width:100%;position:relative;display:flex}.assessments .assessment .orion-plot{width:100%}","/*!\n * Bootstrap v4.6.2 (https://getbootstrap.com/)\n * Copyright 2011-2022 The Bootstrap Authors\n * Copyright 2011-2022 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n\n@import \"functions\";\n@import \"variables\";\n@import \"mixins\";\n@import \"root\";\n@import \"reboot\";\n@import \"type\";\n@import \"images\";\n@import \"code\";\n@import \"grid\";\n@import \"tables\";\n@import \"forms\";\n@import \"buttons\";\n@import \"transitions\";\n@import \"dropdown\";\n@import \"button-group\";\n@import \"input-group\";\n@import \"custom-forms\";\n@import \"nav\";\n@import \"navbar\";\n@import \"card\";\n@import \"breadcrumb\";\n@import \"pagination\";\n@import \"badge\";\n@import \"jumbotron\";\n@import \"alert\";\n@import \"progress\";\n@import \"media\";\n@import \"list-group\";\n@import \"close\";\n@import \"toasts\";\n@import \"modal\";\n@import \"tooltip\";\n@import \"popover\";\n@import \"carousel\";\n@import \"spinners\";\n@import \"utilities\";\n@import \"print\";\n",":root {\n // Custom variable values only support SassScript inside `#{}`.\n @each $color, $value in $colors {\n --#{$color}: #{$value};\n }\n\n @each $color, $value in $theme-colors {\n --#{$color}: #{$value};\n }\n\n @each $bp, $value in $grid-breakpoints {\n --breakpoint-#{$bp}: #{$value};\n }\n\n // Use `inspect` for lists so that quoted items keep the quotes.\n // See https://github.com/sass/sass/issues/2383#issuecomment-336349172\n --font-family-sans-serif: #{inspect($font-family-sans-serif)};\n --font-family-monospace: #{inspect($font-family-monospace)};\n}\n","// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n// 2. Change the default font family in all browsers.\n// 3. Correct the line height in all browsers.\n// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.\n// 5. Change the default tap highlight to be completely transparent in iOS.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box; // 1\n}\n\nhtml {\n font-family: sans-serif; // 2\n line-height: 1.15; // 3\n -webkit-text-size-adjust: 100%; // 4\n -webkit-tap-highlight-color: rgba($black, 0); // 5\n}\n\n// Shim for \"new\" HTML5 structural elements to display correctly (IE10, older browsers)\n// TODO: remove in v5\n// stylelint-disable-next-line selector-list-comma-newline-after\narticle, aside, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Set an explicit initial text-align value so that we can later use\n// the `inherit` value on things like `` elements.\n\nbody {\n margin: 0; // 1\n font-family: $font-family-base;\n @include font-size($font-size-base);\n font-weight: $font-weight-base;\n line-height: $line-height-base;\n color: $body-color;\n text-align: left; // 3\n background-color: $body-bg; // 2\n}\n\n// Future-proof rule: in browsers that support :focus-visible, suppress the focus outline\n// on elements that programmatically receive focus but wouldn't normally show a visible\n// focus outline. In general, this would mean that the outline is only applied if the\n// interaction that led to the element receiving programmatic focus was a keyboard interaction,\n// or the browser has somehow determined that the user is primarily a keyboard user and/or\n// wants focus outlines to always be presented.\n//\n// See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible\n// and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/\n[tabindex=\"-1\"]:focus:not(:focus-visible) {\n outline: 0 !important;\n}\n\n\n// Content grouping\n//\n// 1. Add the correct box sizing in Firefox.\n// 2. Show the overflow in Edge and IE.\n\nhr {\n box-sizing: content-box; // 1\n height: 0; // 1\n overflow: visible; // 2\n}\n\n\n//\n// Typography\n//\n\n// Remove top margins from headings\n//\n// By default, `

`-`

` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n// stylelint-disable-next-line selector-list-comma-newline-after\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: $headings-margin-bottom;\n}\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Duplicate behavior to the data-* attribute for our tooltip plugin\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Remove the bottom border in Firefox 39-.\n// 5. Prevent the text-decoration to be skipped.\n\nabbr[title],\nabbr[data-original-title] { // 1\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 4\n text-decoration-skip-ink: none; // 5\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\nb,\nstrong {\n font-weight: $font-weight-bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n\nsmall {\n @include font-size(80%); // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n @include font-size(75%);\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n\n @include hover() {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([class]) {\n color: inherit;\n text-decoration: none;\n\n @include hover() {\n color: inherit;\n text-decoration: none;\n }\n}\n\n\n//\n// Code\n//\n\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family-monospace;\n @include font-size(1em); // Correct the odd `em` font sizing in all browsers.\n}\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // Disable auto-hiding scrollbar in IE & legacy Edge to avoid overlap,\n // making it impossible to interact with the content\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg {\n // Workaround for the SVG overflow bug in IE10/11 is still required.\n // See https://github.com/twbs/bootstrap/issues/26878\n overflow: hidden;\n vertical-align: middle;\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $table-caption-color;\n text-align: left;\n caption-side: bottom;\n}\n\n// 1. Removes font-weight bold by inheriting\n// 2. Matches default `` alignment by inheriting `text-align`.\n// 3. Fix alignment for Safari\n\nth {\n font-weight: $table-th-font-weight; // 1\n text-align: inherit; // 2\n text-align: -webkit-match-parent; // 3\n}\n\n\n//\n// Forms\n//\n\nlabel {\n // Allow labels to use `margin` for spacing.\n display: inline-block;\n margin-bottom: $label-margin-bottom;\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n//\n// Details at https://github.com/twbs/bootstrap/issues/24093\nbutton {\n // stylelint-disable-next-line property-disallowed-list\n border-radius: 0;\n}\n\n// Explicitly remove focus outline in Chromium when it shouldn't be\n// visible (e.g. as result of mouse click or touch tap). It already\n// should be doing this automatically, but seems to currently be\n// confused and applies its very visible two-tone outline anyway.\n\nbutton:focus:not(:focus-visible) {\n outline: 0;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // Remove the margin in Firefox and Safari\n font-family: inherit;\n @include font-size(inherit);\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible; // Show the overflow in Edge\n}\n\nbutton,\nselect {\n text-transform: none; // Remove the inheritance of text transform in Firefox\n}\n\n// Set the cursor for non-`

\n

\n {nbTrials} trial(s) for experiment \"{experimentWords}\"\n {trialStatus && nbTrials !== data.length\n ? `, ${data.length} displayed for status \"${trialStatus}\"`\n : ''}\n

\n \n \n \n \n \n \n items}\n />\n \n \n \n \n
\n \n \n {table.getHeaderGroups().map(headerGroup => (\n \n {headerGroup.headers.map(header => (\n \n ))}\n \n ))}\n \n \n {table.getRowModel().rows.map(row => (\n (\n setOpen(true)}>\n {row.getVisibleCells().map(cell => (\n \n ))}\n \n )}>\n {({ open, setOpen }) => (\n setOpen(false)}>\n \n {defaultColumnOrder.map((columnID, index) => (\n \n \n \n {columnID.startsWith('params.')\n ? 'Parameter '\n : null}\n {table.getColumn(columnID).columnDef.header}\n \n \n {row.getValue(columnID)}\n \n ))}\n \n \n )}\n \n ))}\n \n
\n {flexRender(\n cell.column.columnDef.cell,\n cell.getContext()\n )}\n
\n
\n \n \n );\n}\n","import { createRow } from '../core/row'\nimport { Table, Row, RowModel, RowData } from '../types'\nimport { memo } from '../utils'\n\nexport function getCoreRowModel(): (\n table: Table\n) => () => RowModel {\n return table =>\n memo(\n () => [table.options.data],\n (\n data\n ): {\n rows: Row[]\n flatRows: Row[]\n rowsById: Record>\n } => {\n const rowModel: RowModel = {\n rows: [],\n flatRows: [],\n rowsById: {},\n }\n\n const accessRows = (\n originalRows: TData[],\n depth = 0,\n parent?: Row\n ): Row[] => {\n const rows = [] as Row[]\n\n for (let i = 0; i < originalRows.length; i++) {\n // This could be an expensive check at scale, so we should move it somewhere else, but where?\n // if (!id) {\n // if (process.env.NODE_ENV !== 'production') {\n // throw new Error(`getRowId expected an ID, but got ${id}`)\n // }\n // }\n\n // Make the row\n const row = createRow(\n table,\n table._getRowId(originalRows[i]!, i, parent),\n originalRows[i]!,\n i,\n depth\n )\n\n // Keep track of every row in a flat array\n rowModel.flatRows.push(row)\n // Also keep track of every row by its ID\n rowModel.rowsById[row.id] = row\n // Push table row into parent\n rows.push(row)\n\n // Get the original subrows\n if (table.options.getSubRows) {\n row.originalSubRows = table.options.getSubRows(\n originalRows[i]!,\n i\n )\n\n // Then recursively access them\n if (row.originalSubRows?.length) {\n row.subRows = accessRows(row.originalSubRows, depth + 1, row)\n }\n }\n }\n\n return rows\n }\n\n rowModel.rows = accessRows(data)\n\n return rowModel\n },\n {\n key: process.env.NODE_ENV === 'development' && 'getRowModel',\n debug: () => table.options.debugAll ?? table.options.debugTable,\n onChange: () => {\n table._autoResetPageIndex()\n },\n }\n )\n}\n","import { Table, Row, RowModel, RowData } from '../types'\nimport { SortingFn } from '../features/Sorting'\nimport { memo } from '../utils'\n\nexport function getSortedRowModel(): (\n table: Table\n) => () => RowModel {\n return table =>\n memo(\n () => [table.getState().sorting, table.getPreSortedRowModel()],\n (sorting, rowModel) => {\n if (!rowModel.rows.length || !sorting?.length) {\n return rowModel\n }\n\n const sortingState = table.getState().sorting\n\n const sortedFlatRows: Row[] = []\n\n // Filter out sortings that correspond to non existing columns\n const availableSorting = sortingState.filter(sort =>\n table.getColumn(sort.id)?.getCanSort()\n )\n\n const columnInfoById: Record<\n string,\n {\n sortUndefined?: false | -1 | 1\n invertSorting?: boolean\n sortingFn: SortingFn\n }\n > = {}\n\n availableSorting.forEach(sortEntry => {\n const column = table.getColumn(sortEntry.id)\n if(!column) return\n\n columnInfoById[sortEntry.id] = {\n sortUndefined: column.columnDef.sortUndefined,\n invertSorting: column.columnDef.invertSorting,\n sortingFn: column.getSortingFn(),\n }\n })\n\n const sortData = (rows: Row[]) => {\n // This will also perform a stable sorting using the row index\n // if needed.\n const sortedData = [...rows]\n\n sortedData.sort((rowA, rowB) => {\n for (let i = 0; i < availableSorting.length; i += 1) {\n const sortEntry = availableSorting[i]!\n const columnInfo = columnInfoById[sortEntry.id]!\n const isDesc = sortEntry?.desc ?? false\n\n if (columnInfo.sortUndefined) {\n const aValue = rowA.getValue(sortEntry.id)\n const bValue = rowB.getValue(sortEntry.id)\n\n const aUndefined = typeof aValue === 'undefined'\n const bUndefined = typeof bValue === 'undefined'\n\n if (aUndefined || bUndefined) {\n return aUndefined && bUndefined\n ? 0\n : aUndefined\n ? columnInfo.sortUndefined\n : -columnInfo.sortUndefined\n }\n }\n\n // This function should always return in ascending order\n let sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id)\n\n if (sortInt !== 0) {\n if (isDesc) {\n sortInt *= -1\n }\n\n if (columnInfo.invertSorting) {\n sortInt *= -1\n }\n\n return sortInt\n }\n }\n\n return rowA.index - rowB.index\n })\n\n // If there are sub-rows, sort them\n sortedData.forEach(row => {\n sortedFlatRows.push(row)\n if (row.subRows?.length) {\n row.subRows = sortData(row.subRows)\n }\n })\n\n return sortedData\n }\n\n return {\n rows: sortData(rowModel.rows),\n flatRows: sortedFlatRows,\n rowsById: rowModel.rowsById,\n }\n },\n {\n key: process.env.NODE_ENV === 'development' && 'getSortedRowModel',\n debug: () => table.options.debugAll ?? table.options.debugTable,\n onChange: () => {\n table._autoResetPageIndex()\n },\n }\n )\n}\n","import { Table, RowModel, Row, RowData } from '../types'\nimport { memo } from '../utils'\nimport { expandRows } from './getExpandedRowModel'\n\nexport function getPaginationRowModel(opts?: {\n initialSync: boolean\n}): (table: Table) => () => RowModel {\n return table =>\n memo(\n () => [\n table.getState().pagination,\n table.getPrePaginationRowModel(),\n table.options.paginateExpandedRows\n ? undefined\n : table.getState().expanded,\n ],\n (pagination, rowModel) => {\n if (!rowModel.rows.length) {\n return rowModel\n }\n\n const { pageSize, pageIndex } = pagination\n let { rows, flatRows, rowsById } = rowModel\n const pageStart = pageSize * pageIndex\n const pageEnd = pageStart + pageSize\n\n rows = rows.slice(pageStart, pageEnd)\n\n let paginatedRowModel: RowModel\n\n if (!table.options.paginateExpandedRows) {\n paginatedRowModel = expandRows({\n rows,\n flatRows,\n rowsById,\n })\n } else {\n paginatedRowModel = {\n rows,\n flatRows,\n rowsById,\n }\n }\n\n paginatedRowModel.flatRows = []\n\n const handleRow = (row: Row) => {\n paginatedRowModel.flatRows.push(row)\n if (row.subRows.length) {\n row.subRows.forEach(handleRow)\n }\n }\n\n paginatedRowModel.rows.forEach(handleRow)\n\n return paginatedRowModel\n },\n {\n key: process.env.NODE_ENV === 'development' && 'getPaginationRowModel',\n debug: () => table.options.debugAll ?? table.options.debugTable,\n }\n )\n}\n","import _typeof from \"./typeof.js\";\nexport default function _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n _regeneratorRuntime = function _regeneratorRuntime() {\n return exports;\n };\n var exports = {},\n Op = Object.prototype,\n hasOwn = Op.hasOwnProperty,\n defineProperty = Object.defineProperty || function (obj, key, desc) {\n obj[key] = desc.value;\n },\n $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n return Object.defineProperty(obj, key, {\n value: value,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function define(obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n generator = Object.create(protoGenerator.prototype),\n context = new Context(tryLocsList || []);\n return defineProperty(generator, \"_invoke\", {\n value: makeInvokeMethod(innerFn, self, context)\n }), generator;\n }\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n exports.wrap = wrap;\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n var getProto = Object.getPrototypeOf,\n NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (\"throw\" !== record.type) {\n var result = record.arg,\n value = result.value;\n return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped, resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n reject(record.arg);\n }\n var previousPromise;\n defineProperty(this, \"_invoke\", {\n value: function value(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(innerFn, self, context) {\n var state = \"suspendedStart\";\n return function (method, arg) {\n if (\"executing\" === state) throw new Error(\"Generator is already running\");\n if (\"completed\" === state) {\n if (\"throw\" === method) throw arg;\n return doneResult();\n }\n for (context.method = method, context.arg = arg;;) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n context.dispatchException(context.arg);\n } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n state = \"executing\";\n var record = tryCatch(innerFn, self, context);\n if (\"normal\" === record.type) {\n if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n return {\n value: record.arg,\n done: context.done\n };\n }\n \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var methodName = context.method,\n method = delegate.iterator[methodName];\n if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel;\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n var info = record.arg;\n return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n }\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\", delete record.arg, entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) return iteratorMethod.call(iterable);\n if (\"function\" == typeof iterable.next) return iterable;\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n return next.value = undefined, next.done = !0, next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n function doneResult() {\n return {\n value: undefined,\n done: !0\n };\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n var ctor = \"function\" == typeof genFun && genFun.constructor;\n return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n }, exports.mark = function (genFun) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n }, exports.awrap = function (arg) {\n return {\n __await: arg\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n void 0 === PromiseImpl && (PromiseImpl = Promise);\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n return this;\n }), define(Gp, \"toString\", function () {\n return \"[object Generator]\";\n }), exports.keys = function (val) {\n var object = Object(val),\n keys = [];\n for (var key in object) keys.push(key);\n return keys.reverse(), function next() {\n for (; keys.length;) {\n var key = keys.pop();\n if (key in object) return next.value = key, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, exports.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(skipTempReset) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n },\n stop: function stop() {\n this.done = !0;\n var rootRecord = this.tryEntries[0].completion;\n if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(exception) {\n if (this.done) throw exception;\n var context = this;\n function handle(loc, caught) {\n return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i],\n record = entry.completion;\n if (\"root\" === entry.tryLoc) return handle(\"end\");\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n } else {\n if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n var record = finallyEntry ? finallyEntry.completion : {};\n return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n },\n complete: function complete(record, afterLoc) {\n if (\"throw\" === record.type) throw record.arg;\n return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n },\n finish: function finish(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n }\n },\n \"catch\": function _catch(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (\"throw\" === record.type) {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n return this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n }\n }, exports;\n}","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","function _flattenObject(inObj, outObj, prefix = '') {\n if (prefix.length) {\n prefix += '.';\n }\n for (let key of Object.keys(inObj)) {\n const value = inObj[key];\n if (value.constructor === Object) {\n _flattenObject(value, outObj, prefix + key);\n } else {\n outObj[prefix + key] = value;\n }\n }\n}\n\nexport function flattenObject(obj, prefix = '') {\n const output = {};\n _flattenObject(obj, output, prefix);\n return output;\n}\n","import React from 'react';\nimport { Column, Grid, Row } from 'carbon-components-react';\n\n/**\n * Component to pretty display an object (JSON dictionary) into data table.\n * Used to render trial parameters and statistics.\n */\nexport class ObjectToGrid extends React.Component {\n render() {\n const object = this.props.object;\n const keys = Object.keys(object);\n if (!keys.length) return '';\n keys.sort();\n return (\n \n {keys.map(key => (\n \n \n \n {key}\n \n \n \n {Array.isArray(object[key])\n ? object[key].map((value, i) => (\n
{value.toString()}
\n ))\n : object[key].toString()}\n
\n
\n ))}\n
\n );\n }\n}\n","import { Backend } from '../../../utils/queryServer';\nimport { flattenObject } from '../../../utils/flattenObject';\nimport { ObjectToGrid } from './ObjectToGrid';\n\n/**\n * Utility class to provide and cache experiment trials.\n */\nexport class TrialsProvider {\n constructor(address) {\n this.backend = new Backend(address);\n this.trials = {};\n }\n\n async get(experiment) {\n if (!this.trials.hasOwnProperty(experiment)) {\n const queryTrials = await this.backend.query(`trials/${experiment}`);\n const trialIndices = queryTrials.map(trial => trial.id);\n trialIndices.sort();\n const trials = [];\n /**\n * Map to check whether each param column is sortable.\n * Array params are not considered sortable,\n * except if they contains only 1 element.\n */\n const sortableParamCols = {};\n for (let trialID of trialIndices) {\n const rawTrial = await this.backend.query(\n `trials/${experiment}/${trialID}`\n );\n // Flatten parameters\n const flattenedParameters = flattenObject(\n rawTrial.parameters,\n // Add prefix `params`\n // to prevent collision with existing keys in trial object\n 'params'\n );\n // Prepare rendering for array parameters\n for (let key of Object.keys(flattenedParameters)) {\n let sortableCell = true;\n if (Array.isArray(flattenedParameters[key])) {\n if (flattenedParameters[key].length === 1) {\n // Array contains only 1 element.\n // Flatten it and assume element is displayable as-is.\n flattenedParameters[key] = flattenedParameters[key][0];\n } else {\n // Real array with many values.\n // Render it immediately and mark cell as not sortable.\n flattenedParameters[key] = flattenedParameters[\n key\n ].map((value, i) =>
{value.toString()}
);\n sortableCell = false;\n }\n }\n // Param column is sortable if all its cells are sortable.\n if (sortableParamCols.hasOwnProperty(key)) {\n sortableParamCols[key] = sortableParamCols[key] && sortableCell;\n } else {\n sortableParamCols[key] = sortableCell;\n }\n }\n // Save flattened keys in specific property `paramKeys` for later\n rawTrial.paramKeys = Object.keys(flattenedParameters);\n const trial = { ...rawTrial, ...flattenedParameters };\n // Save statistics as already rendered components.\n trial.statistics = ;\n trials.push(trial);\n }\n // Prepare headers for this experiment using `paramKeys` from first trial\n // We assume paramKeys is the same for all trials\n const paramKeys = trials[0].paramKeys.slice();\n paramKeys.sort();\n const headers = [\n {\n id: 'id',\n accessorKey: 'id',\n header: 'ID',\n sortingFn: 'text',\n cell: info =>\n info.getValue().length > 7 ? (\n \n {info.getValue().substr(0, 7)}...\n \n ) : (\n info.getValue()\n ),\n },\n {\n // Grouped parameters columns\n id: 'parameters',\n header: 'Parameters',\n columns: paramKeys.map(k => {\n const p = { id: k, accessorFn: r => r[k], header: k.substr(7) };\n if (!sortableParamCols[k]) {\n // column not sortable\n p.cell = props => props.getValue();\n p.enableSorting = false;\n }\n return p;\n }),\n },\n {\n id: 'submitTime',\n accessorKey: 'submitTime',\n header: 'Submit time',\n },\n {\n id: 'startTime',\n accessorKey: 'startTime',\n header: 'Start time',\n },\n {\n id: 'endTime',\n accessorKey: 'endTime',\n header: 'End time',\n },\n {\n id: 'status',\n accessorKey: 'status',\n header: 'Status',\n },\n {\n id: 'objective',\n accessorKey: 'objective',\n header: 'Objective',\n },\n {\n // not sortable\n id: 'statistics',\n accessorKey: 'statistics',\n header: 'Statistics',\n cell: props => props.getValue(),\n enableSorting: false,\n },\n ];\n this.trials[experiment] = {\n headers: headers,\n trials: trials,\n };\n }\n return this.trials[experiment];\n }\n}\n","import React from 'react';\nimport { DEFAULT_BACKEND } from '../../../utils/queryServer';\nimport { FeaturedTable } from './FeaturedTable';\nimport { BackendContext } from '../../BackendContext';\nimport { TrialsProvider } from './TrialsProvider';\nimport { ExperimentStatusBar } from '../../components/ExperimentStatusBar/ExperimentStatusBar';\n\n/**\n * Singleton to provide experiment trials.\n * @type {TrialsProvider}\n */\nconst TRIALS_PROVIDER = new TrialsProvider(DEFAULT_BACKEND);\n\nclass DatabasePage extends React.Component {\n // Control variable to avoid setting state if component was unmounted before an asynchronous API call finished.\n _isMounted = false;\n static contextType = BackendContext;\n constructor(props) {\n super(props);\n this.state = { experiment: null, trials: null, trialStatus: null };\n this.onSelectTrialStatus = this.onSelectTrialStatus.bind(this);\n }\n render() {\n if (this.state.experiment === null)\n return 'No trials to display, please select an experiment.';\n if (this.state.trials === null)\n return `Loading trials for experiment \"${this.state.experiment}\" ...`;\n if (this.state.trials === false)\n return `Unable to load trials for experiment \"${this.state.experiment}\".`;\n return (\n
\n \n trial.status === this.state.trialStatus\n )\n }\n experiment={this.state.experiment}\n trialStatus={this.state.trialStatus}\n nbTrials={this.state.trials.trials.length}\n />\n
\n );\n }\n componentDidMount() {\n this._isMounted = true;\n const experiment = this.context.experiment;\n if (experiment !== null) {\n this.loadTrials(experiment);\n }\n }\n componentWillUnmount() {\n this._isMounted = false;\n }\n componentDidUpdate(prevProps, prevState, snapshot) {\n // We must check if selected experiment changed\n const experiment = this.context.experiment;\n if (this.state.experiment !== experiment) {\n if (experiment === null) {\n this.setState({ experiment, trials: null });\n } else {\n this.loadTrials(experiment);\n }\n }\n }\n loadTrials(experiment) {\n this.setState({ experiment, trials: null }, () => {\n TRIALS_PROVIDER.get(experiment)\n .then(trials => {\n if (this._isMounted) {\n this.setState({ trials });\n }\n })\n .catch(error => {\n console.error(error);\n if (this._isMounted) {\n this.setState({ trials: false });\n }\n });\n });\n }\n onSelectTrialStatus(trialStatus) {\n console.log(`Db page on focus ${trialStatus}`);\n this.setState({\n trialStatus: this.state.trialStatus === trialStatus ? null : trialStatus,\n });\n }\n}\n\nexport default DatabasePage;\n","import DatabasePage from './DatabasePage';\nexport default DatabasePage;\n","import ConfigurationPage from './ConfigurationPage';\nexport default ConfigurationPage;\n","import React from 'react';\n\nconst ConfigurationPage = () => {\n return
Configuration page
;\n};\n\nexport default ConfigurationPage;\n","import React, { Component } from 'react';\nimport { Content } from 'carbon-components-react';\nimport TutorialHeader from './components/TutorialHeader';\nimport ExperimentNavBar from './components/ExperimentNavBar';\nimport LandingPage from './content/LandingPage';\nimport StatusPage from './content/StatusPage';\nimport VisualizationsPage from './content/VisualizationsPage';\nimport DatabasePage from './content/DatabasePage';\nimport ConfigurationPage from './content/ConfigurationPage';\nimport { BackendContext } from './BackendContext';\nimport { DEFAULT_BACKEND } from '../utils/queryServer';\nimport { withRouter } from 'react-router-dom';\n\nclass Experiments extends Component {\n constructor(props) {\n super(props);\n // Store selected experiment here\n this.state = { experiment: null };\n this.onSelectExperiment = this.onSelectExperiment.bind(this);\n }\n render() {\n return (\n <>\n \n \n \n {this.renderPage()}\n \n \n );\n }\n renderPage() {\n switch (this.props.match.params.page || 'landing') {\n case 'landing':\n return ;\n case 'status':\n return ;\n case 'visualizations':\n return ;\n case 'database':\n return ;\n case 'configuration':\n return ;\n default:\n break;\n }\n }\n onSelectExperiment(experiment) {\n this.setState({ experiment });\n }\n}\n\nexport const ExperimentsWithRouter = withRouter(Experiments);\n","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { createContext } from 'react';\nexport var TextDirectionContext = /*#__PURE__*/createContext(null);","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"as\", \"children\", \"dir\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React, { useContext } from 'react';\nimport { TextDirectionContext } from './TextDirectionContext';\n\nfunction Text(_ref) {\n var _ref$as = _ref.as,\n BaseComponent = _ref$as === void 0 ? 'span' : _ref$as,\n children = _ref.children,\n _ref$dir = _ref.dir,\n dir = _ref$dir === void 0 ? 'auto' : _ref$dir,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var context = useContext(TextDirectionContext);\n var textProps = {};\n\n var value = _objectSpread({}, context);\n\n if (!context) {\n textProps.dir = dir;\n value.direction = dir;\n } else {\n var parentDirection = context.direction,\n getTextDirection = context.getTextDirection;\n\n if (getTextDirection && getTextDirection.current) {\n var text = getTextFromChildren(children);\n var override = getTextDirection.current(text);\n\n if (parentDirection !== override) {\n textProps.dir = override;\n value.direction = override;\n } else if (parentDirection === 'auto') {\n textProps.dir = override;\n }\n } else if (parentDirection !== dir) {\n textProps.dir = dir;\n value.direction = dir;\n } else if (parentDirection === 'auto') {\n textProps.dir = dir;\n }\n }\n\n return /*#__PURE__*/React.createElement(TextDirectionContext.Provider, {\n value: value\n }, /*#__PURE__*/React.createElement(BaseComponent, _extends({}, rest, textProps), children));\n}\n\nText.propTypes = {\n /**\n * Provide a custom element type used to render the outermost node\n */\n as: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.elementType]),\n\n /**\n * Provide child elements or text to be rendered inside of this component\n */\n children: PropTypes.node.isRequired,\n\n /**\n * Specify the text direction to be used for this component and any of its\n * children\n */\n dir: PropTypes.oneOf(['ltr', 'rtl', 'auto'])\n};\n\nfunction getTextFromChildren(children) {\n if (typeof children === 'string') {\n return children;\n }\n\n var text = React.Children.map(children, function (child) {\n if (typeof child === 'string') {\n return child;\n }\n\n return null;\n }).filter(function (text) {\n return text !== null;\n });\n\n if (text.length === 1) {\n return text[0];\n }\n\n return text;\n}\n\nexport { Text };","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"ariaLabel\", \"className\", \"direction\", \"disabled\", \"downshiftProps\", \"helperText\", \"id\", \"initialSelectedItem\", \"invalid\", \"invalidText\", \"items\", \"itemToElement\", \"itemToString\", \"light\", \"onChange\", \"onInputChange\", \"onToggleClick\", \"placeholder\", \"selectedItem\", \"shouldFilterItem\", \"size\", \"titleText\", \"translateWithId\", \"type\", \"warn\", \"warnText\", \"onStateChange\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport Downshift from 'downshift';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState, useRef } from 'react';\nimport { Text } from '../Text';\nimport { Checkmark16, WarningAltFilled16, WarningFilled16 } from '@carbon/icons-react';\nimport ListBox, { PropTypes as ListBoxPropTypes } from '../ListBox';\nimport { ListBoxTrigger, ListBoxSelection } from '../ListBox/next';\nimport { match, keys } from '../../internal/keyboard';\nimport setupGetInstanceId from '../../tools/setupGetInstanceId';\nimport { mapDownshiftProps } from '../../tools/createPropAdapter';\nimport mergeRefs from '../../tools/mergeRefs';\nimport { useFeatureFlag } from '../FeatureFlags';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar defaultItemToString = function defaultItemToString(item) {\n if (typeof item === 'string') {\n return item;\n }\n\n return item && item.label;\n};\n\nvar defaultShouldFilterItem = function defaultShouldFilterItem() {\n return true;\n};\n\nvar getInputValue = function getInputValue(_ref) {\n var initialSelectedItem = _ref.initialSelectedItem,\n inputValue = _ref.inputValue,\n itemToString = _ref.itemToString,\n selectedItem = _ref.selectedItem;\n\n if (selectedItem) {\n return itemToString(selectedItem);\n } // TODO: consistent `initialSelectedItem` behavior with other listbox components in v11\n\n\n if (initialSelectedItem) {\n return itemToString(initialSelectedItem);\n }\n\n return inputValue || '';\n};\n\nvar findHighlightedIndex = function findHighlightedIndex(_ref2, inputValue) {\n var items = _ref2.items,\n itemToString = _ref2.itemToString;\n\n if (!inputValue) {\n return -1;\n }\n\n var searchValue = inputValue.toLowerCase();\n\n for (var i = 0; i < items.length; i++) {\n var item = itemToString(items[i]).toLowerCase();\n\n if (item.indexOf(searchValue) !== -1) {\n return i;\n }\n }\n\n return -1;\n};\n\nvar getInstanceId = setupGetInstanceId();\nvar ComboBox = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _cx;\n\n var ariaLabel = props.ariaLabel,\n containerClassName = props.className,\n direction = props.direction,\n disabled = props.disabled,\n downshiftProps = props.downshiftProps,\n helperText = props.helperText,\n id = props.id,\n initialSelectedItem = props.initialSelectedItem,\n invalid = props.invalid,\n invalidText = props.invalidText,\n items = props.items,\n itemToElement = props.itemToElement,\n itemToString = props.itemToString,\n light = props.light,\n onChange = props.onChange,\n onInputChange = props.onInputChange,\n onToggleClick = props.onToggleClick,\n placeholder = props.placeholder,\n selectedItem = props.selectedItem,\n shouldFilterItem = props.shouldFilterItem,\n size = props.size,\n titleText = props.titleText,\n translateWithId = props.translateWithId,\n type = props.type,\n warn = props.warn,\n warnText = props.warnText,\n onStateChange = props.onStateChange,\n rest = _objectWithoutProperties(props, _excluded);\n\n var prefix = usePrefix();\n var textInput = useRef();\n var comboBoxInstanceId = getInstanceId();\n\n var _useState = useState(getInputValue({\n initialSelectedItem: initialSelectedItem,\n inputValue: '',\n itemToString: itemToString,\n selectedItem: selectedItem\n })),\n _useState2 = _slicedToArray(_useState, 2),\n inputValue = _useState2[0],\n setInputValue = _useState2[1];\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n prevSelectedItem = _useState4[0],\n setPrevSelectedItem = _useState4[1];\n\n var _useState5 = useState(null),\n _useState6 = _slicedToArray(_useState5, 2),\n doneInitialSelectedItem = _useState6[0],\n setDoneInitialSelectedItem = _useState6[1];\n\n var savedOnInputChange = useRef(onInputChange);\n\n if (!doneInitialSelectedItem || prevSelectedItem !== selectedItem) {\n setDoneInitialSelectedItem(true);\n setPrevSelectedItem(selectedItem);\n setInputValue(getInputValue({\n initialSelectedItem: initialSelectedItem,\n inputValue: inputValue,\n itemToString: itemToString,\n selectedItem: selectedItem\n }));\n }\n\n var filterItems = function filterItems(items, itemToString, inputValue) {\n return items.filter(function (item) {\n return shouldFilterItem({\n item: item,\n itemToString: itemToString,\n inputValue: inputValue\n });\n });\n };\n\n var handleOnChange = function handleOnChange(selectedItem) {\n if (onChange) {\n onChange({\n selectedItem: selectedItem\n });\n }\n };\n\n var handleOnInputValueChange = function handleOnInputValueChange(inputValue) {\n setInputValue(inputValue || '');\n };\n\n useEffect(function () {\n savedOnInputChange.current = onInputChange;\n }, [onInputChange]);\n useEffect(function () {\n if (savedOnInputChange.current) {\n savedOnInputChange.current(inputValue);\n }\n }, [inputValue]);\n\n var handleSelectionClear = function handleSelectionClear() {\n if (textInput !== null && textInput !== void 0 && textInput.current) {\n textInput.current.focus();\n }\n };\n\n var handleOnStateChange = function handleOnStateChange(newState, _ref3) {\n var setHighlightedIndex = _ref3.setHighlightedIndex;\n\n if (Object.prototype.hasOwnProperty.call(newState, 'inputValue')) {\n var _inputValue = newState.inputValue;\n var filteredItems = filterItems(items, itemToString, _inputValue);\n setHighlightedIndex(findHighlightedIndex(_objectSpread(_objectSpread({}, props), {}, {\n items: filteredItems\n }), _inputValue));\n }\n };\n\n var handleToggleClick = function handleToggleClick(isOpen) {\n return function (event) {\n if (onToggleClick) {\n onToggleClick(event);\n }\n\n if (event.target === textInput.current && isOpen) {\n event.preventDownshiftDefault = true;\n event.persist();\n }\n };\n };\n\n var enabled = useFeatureFlag('enable-v11-release');\n var showWarning = !invalid && warn;\n var className = cx(\"\".concat(prefix, \"--combo-box\"), [enabled ? null : containerClassName], (_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--list-box--up\"), direction === 'top'), _defineProperty(_cx, \"\".concat(prefix, \"--combo-box--warning\"), showWarning), _cx));\n var titleClasses = cx(\"\".concat(prefix, \"--label\"), _defineProperty({}, \"\".concat(prefix, \"--label--disabled\"), disabled));\n var comboBoxHelperId = !helperText ? undefined : \"combobox-helper-text-\".concat(comboBoxInstanceId);\n var helperClasses = cx(\"\".concat(prefix, \"--form__helper-text\"), _defineProperty({}, \"\".concat(prefix, \"--form__helper-text--disabled\"), disabled));\n var wrapperClasses = cx(\"\".concat(prefix, \"--list-box__wrapper\"), [enabled ? containerClassName : null]);\n var inputClasses = cx(\"\".concat(prefix, \"--text-input\"), _defineProperty({}, \"\".concat(prefix, \"--text-input--empty\"), !inputValue)); // needs to be Capitalized for react to render it correctly\n\n var ItemToElement = itemToElement;\n return /*#__PURE__*/React.createElement(Downshift, _extends({}, mapDownshiftProps(downshiftProps), {\n onChange: handleOnChange,\n onInputValueChange: handleOnInputValueChange,\n onStateChange: function onStateChange() {\n var _downshiftProps$onSta;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n handleOnStateChange.apply(void 0, args);\n downshiftProps === null || downshiftProps === void 0 ? void 0 : (_downshiftProps$onSta = downshiftProps.onStateChange) === null || _downshiftProps$onSta === void 0 ? void 0 : _downshiftProps$onSta.call.apply(_downshiftProps$onSta, [downshiftProps].concat(args));\n },\n inputValue: inputValue || '',\n itemToString: itemToString,\n initialSelectedItem: initialSelectedItem,\n inputId: id,\n selectedItem: selectedItem\n }), function (_ref4) {\n var _textInput$current;\n\n var getInputProps = _ref4.getInputProps,\n getItemProps = _ref4.getItemProps,\n getLabelProps = _ref4.getLabelProps,\n getMenuProps = _ref4.getMenuProps,\n getRootProps = _ref4.getRootProps,\n getToggleButtonProps = _ref4.getToggleButtonProps,\n isOpen = _ref4.isOpen,\n inputValue = _ref4.inputValue,\n selectedItem = _ref4.selectedItem,\n highlightedIndex = _ref4.highlightedIndex,\n clearSelection = _ref4.clearSelection,\n toggleMenu = _ref4.toggleMenu;\n var rootProps = getRootProps({}, {\n suppressRefError: true\n });\n var labelProps = getLabelProps();\n var buttonProps = getToggleButtonProps({\n disabled: disabled,\n onClick: handleToggleClick(isOpen),\n // When we moved the \"root node\" of Downshift to the for\n // ARIA 1.2 compliance, we unfortunately hit this branch for the\n // \"mouseup\" event that downshift listens to:\n // https://github.com/downshift-js/downshift/blob/v5.2.1/src/downshift.js#L1051-L1065\n //\n // As a result, it will reset the state of the component and so we\n // stop the event from propagating to prevent this if the menu is already open.\n // This allows the toggleMenu behavior for the toggleButton to correctly open and\n // close the menu.\n onMouseUp: function onMouseUp(event) {\n if (isOpen) {\n event.stopPropagation();\n }\n }\n });\n var inputProps = getInputProps({\n // Remove excess aria `aria-labelledby`. HTML
` node\n */\n className: PropTypes.string,\n\n /**\n * Specify if the control should be disabled, or not\n */\n disabled: PropTypes.bool,\n\n /**\n * Provide the `href` attribute for the `` node\n */\n href: PropTypes.string,\n\n /**\n * Specify whether you want the inline version of this control\n */\n inline: PropTypes.bool,\n\n /**\n * Optional prop to render an icon next to the link.\n * Can be a React component class\n */\n renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n\n /**\n * Specify the size of the Link. Currently supports either `sm`, 'md' (default) or 'lg` as an option.\n */\n size: PropTypes.oneOf(['sm', 'md', 'lg']),\n\n /**\n * Specify whether you want the link to receive visited styles after the link has been clicked\n */\n visited: PropTypes.bool\n};\nexport default Link;","import { useEffect, useLayoutEffect } from 'react'; // useLayoutEffect on the client, useEffect on the server\n\nvar useIsomorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\nexport default useIsomorphicEffect;","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\", \"className\", \"light\"],\n _excluded2 = [\"children\", \"className\", \"clicked\", \"handleClick\", \"handleKeyDown\", \"href\", \"light\", \"onClick\", \"onKeyDown\"],\n _excluded3 = [\"children\", \"className\", \"disabled\", \"handleClick\", \"handleKeyDown\", \"iconDescription\", \"id\", \"light\", \"name\", \"onClick\", \"onChange\", \"onKeyDown\", \"selected\", \"tabIndex\", \"title\", \"value\"],\n _excluded4 = [\"tabIndex\", \"className\", \"children\", \"expanded\", \"tileMaxHeight\", \"tilePadding\", \"onClick\", \"onKeyUp\", \"tileCollapsedIconText\", \"tileExpandedIconText\", \"tileCollapsedLabel\", \"tileExpandedLabel\", \"onBeforeClick\", \"light\"];\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport { Checkbox16, CheckboxCheckedFilled16, ChevronDown16 } from '@carbon/icons-react';\nimport Link from '../../Link';\nimport { keys, matches } from '../../../internal/keyboard';\nimport deprecate from '../../../prop-types/deprecate';\nimport { composeEventHandlers } from '../../../tools/events';\nimport { usePrefix } from '../../../internal/usePrefix';\nimport useIsomorphicEffect from '../../../internal/useIsomorphicEffect';\nexport var Tile = /*#__PURE__*/React.forwardRef(function Tile(_ref, ref) {\n var children = _ref.children,\n className = _ref.className,\n _ref$light = _ref.light,\n light = _ref$light === void 0 ? false : _ref$light,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var tileClasses = cx(\"\".concat(prefix, \"--tile\"), _defineProperty({}, \"\".concat(prefix, \"--tile--light\"), light), className);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: tileClasses,\n ref: ref\n }, rest), children);\n});\nTile.displayName = 'Tile';\nTile.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: deprecate(PropTypes.bool, 'The `light` prop for `Tile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.')\n};\nexport var ClickableTile = /*#__PURE__*/React.forwardRef(function ClickableTile(_ref2, ref) {\n var _cx2;\n\n var children = _ref2.children,\n className = _ref2.className,\n _ref2$clicked = _ref2.clicked,\n clicked = _ref2$clicked === void 0 ? false : _ref2$clicked,\n handleClick = _ref2.handleClick,\n handleKeyDown = _ref2.handleKeyDown,\n href = _ref2.href,\n _ref2$light = _ref2.light,\n light = _ref2$light === void 0 ? false : _ref2$light,\n _ref2$onClick = _ref2.onClick,\n onClick = _ref2$onClick === void 0 ? function () {} : _ref2$onClick,\n _ref2$onKeyDown = _ref2.onKeyDown,\n onKeyDown = _ref2$onKeyDown === void 0 ? function () {} : _ref2$onKeyDown,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n var prefix = usePrefix();\n var classes = cx(\"\".concat(prefix, \"--tile\"), \"\".concat(prefix, \"--tile--clickable\"), (_cx2 = {}, _defineProperty(_cx2, \"\".concat(prefix, \"--tile--is-clicked\"), clicked), _defineProperty(_cx2, \"\".concat(prefix, \"--tile--light\"), light), _cx2), className);\n\n var _useState = useState(clicked),\n _useState2 = _slicedToArray(_useState, 2),\n isSelected = _useState2[0],\n setIsSelected = _useState2[1]; // TODO: replace with onClick when handleClick prop is deprecated\n\n\n var clickHandler = handleClick || onClick; // TODO: replace with onClick when handleClick prop is deprecated\n\n var keyDownHandler = handleKeyDown || onKeyDown;\n\n function handleOnClick(evt) {\n evt.persist();\n setIsSelected(!isSelected);\n clickHandler(evt);\n }\n\n function handleOnKeyDown(evt) {\n evt.persist();\n\n if (matches(evt, [keys.Enter, keys.Space])) {\n evt.preventDefault();\n setIsSelected(!isSelected);\n keyDownHandler(evt);\n }\n\n keyDownHandler(evt);\n }\n\n return /*#__PURE__*/React.createElement(Link, _extends({\n className: classes,\n href: href,\n onClick: handleOnClick,\n onKeyDown: handleOnKeyDown,\n ref: ref\n }, rest), children);\n});\nClickableTile.displayName = 'ClickableTile';\nClickableTile.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * Boolean for whether a tile has been clicked.\n */\n clicked: PropTypes.bool,\n\n /**\n * Deprecated in v11. Use 'onClick' instead.\n */\n handleClick: deprecate(PropTypes.func, 'The handleClick prop for ClickableTile has been deprecated in favor of onClick. It will be removed in the next major release.'),\n\n /**\n * Specify the function to run when the ClickableTile is interacted with via a keyboard\n */\n handleKeyDown: deprecate(PropTypes.func, 'The handleKeyDown prop for ClickableTile has been deprecated in favor of onKeyDown. It will be removed in the next major release.'),\n\n /**\n * The href for the link.\n */\n href: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: deprecate(PropTypes.bool, 'The `light` prop for `ClickableTile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.'),\n\n /**\n * Specify the function to run when the ClickableTile is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the function to run when the ClickableTile is interacted with via a keyboard\n */\n onKeyDown: PropTypes.func,\n\n /**\n * The rel property for the link.\n */\n rel: PropTypes.string\n};\nexport var SelectableTile = /*#__PURE__*/React.forwardRef(function SelectableTile(_ref3, ref) {\n var _cx3;\n\n var children = _ref3.children,\n className = _ref3.className,\n disabled = _ref3.disabled,\n handleClick = _ref3.handleClick,\n handleKeyDown = _ref3.handleKeyDown,\n iconDescription = _ref3.iconDescription,\n id = _ref3.id,\n _ref3$light = _ref3.light,\n light = _ref3$light === void 0 ? false : _ref3$light,\n name = _ref3.name,\n _ref3$onClick = _ref3.onClick,\n onClick = _ref3$onClick === void 0 ? function () {} : _ref3$onClick,\n _ref3$onChange = _ref3.onChange,\n onChange = _ref3$onChange === void 0 ? function () {} : _ref3$onChange,\n _ref3$onKeyDown = _ref3.onKeyDown,\n onKeyDown = _ref3$onKeyDown === void 0 ? function () {} : _ref3$onKeyDown,\n _ref3$selected = _ref3.selected,\n selected = _ref3$selected === void 0 ? false : _ref3$selected,\n _ref3$tabIndex = _ref3.tabIndex,\n tabIndex = _ref3$tabIndex === void 0 ? 0 : _ref3$tabIndex,\n _ref3$title = _ref3.title,\n title = _ref3$title === void 0 ? 'title' : _ref3$title,\n _ref3$value = _ref3.value,\n value = _ref3$value === void 0 ? 'value' : _ref3$value,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n var prefix = usePrefix(); // TODO: replace with onClick when handleClick prop is deprecated\n\n var clickHandler = handleClick || onClick; // TODO: replace with onKeyDown when handleKeyDown prop is deprecated\n\n var keyDownHandler = handleKeyDown || onKeyDown;\n\n var _useState3 = useState(selected),\n _useState4 = _slicedToArray(_useState3, 2),\n isSelected = _useState4[0],\n setIsSelected = _useState4[1];\n\n var _useState5 = useState(selected),\n _useState6 = _slicedToArray(_useState5, 2),\n prevSelected = _useState6[0],\n setPrevSelected = _useState6[1];\n\n var classes = cx(\"\".concat(prefix, \"--tile\"), \"\".concat(prefix, \"--tile--selectable\"), (_cx3 = {}, _defineProperty(_cx3, \"\".concat(prefix, \"--tile--is-selected\"), isSelected), _defineProperty(_cx3, \"\".concat(prefix, \"--tile--light\"), light), _defineProperty(_cx3, \"\".concat(prefix, \"--tile--disabled\"), disabled), _cx3), className);\n var inputClasses = cx(\"\".concat(prefix, \"--tile-input\"), _defineProperty({}, \"\".concat(prefix, \"--tile-input--checked\"), isSelected)); // TODO: rename to handleClick when handleClick prop is deprecated\n\n function handleOnClick(evt) {\n evt.preventDefault();\n evt.persist();\n setIsSelected(!isSelected);\n clickHandler(evt);\n onChange(evt);\n } // TODO: rename to handleKeyDown when handleKeyDown prop is deprecated\n\n\n function handleOnKeyDown(evt) {\n evt.persist();\n\n if (matches(evt, [keys.Enter, keys.Space])) {\n evt.preventDefault();\n setIsSelected(!isSelected);\n onChange(evt);\n }\n\n keyDownHandler(evt);\n }\n\n function handleChange(event) {\n setIsSelected(event.target.checked);\n onChange(event);\n }\n\n if (selected !== prevSelected) {\n setIsSelected(selected);\n setPrevSelected(selected);\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"input\", {\n checked: isSelected,\n className: inputClasses,\n disabled: disabled,\n id: id,\n name: name,\n onChange: !disabled ? handleChange : null,\n ref: ref,\n tabIndex: -1,\n title: title,\n type: \"checkbox\",\n value: value\n }), /*#__PURE__*/React.createElement(\"label\", _extends({\n className: classes,\n htmlFor: id,\n onClick: !disabled ? handleOnClick : null,\n onKeyDown: !disabled ? handleOnKeyDown : null // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n ,\n tabIndex: !disabled ? tabIndex : null\n }, rest), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--tile__checkmark \").concat(prefix, \"--tile__checkmark--persistent\")\n }, isSelected ? /*#__PURE__*/React.createElement(CheckboxCheckedFilled16, null) : /*#__PURE__*/React.createElement(Checkbox16, null)), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--tile-content\")\n }, children)));\n});\nSelectableTile.displayName = 'SelectableTile';\nSelectableTile.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * Specify whether the SelectableTile should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Specify the function to run when the SelectableTile is clicked\n */\n handleClick: deprecate(PropTypes.func, 'The `handleClick` prop for `SelectableTile` has been deprecated in favor of `onClick`. It will be removed in the next major release.'),\n\n /**\n * Specify the function to run when the SelectableTile is interacted with via a keyboard\n */\n handleKeyDown: deprecate(PropTypes.func, 'The `handleKeyDown` prop for `SelectableTile` has been deprecated in favor of `onKeyDown`. It will be removed in the next major release.'),\n\n /**\n * The description of the checkmark icon.\n */\n iconDescription: deprecate(PropTypes.string, 'The `iconDescription` prop for `SelectableTile` is no longer needed and has ' + 'been deprecated. It will be removed in the next major release.'),\n\n /**\n * The ID of the ``.\n */\n id: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: deprecate(PropTypes.bool, 'The `light` prop for `SelectableTile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.'),\n\n /**\n * The `name` of the ``.\n */\n name: PropTypes.string,\n\n /**\n * The empty handler of the ``.\n */\n onChange: PropTypes.func,\n\n /**\n * Specify the function to run when the SelectableTile is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the function to run when the SelectableTile is interacted with via a keyboard\n */\n onKeyDown: PropTypes.func,\n\n /**\n * `true` to select this tile.\n */\n selected: PropTypes.bool,\n\n /**\n * Specify the tab index of the wrapper element\n */\n tabIndex: PropTypes.number,\n\n /**\n * The `title` of the ``.\n */\n title: PropTypes.string,\n\n /**\n * The value of the ``.\n */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired\n};\nexport function ExpandableTile(_ref4) {\n var _cx5;\n\n var tabIndex = _ref4.tabIndex,\n className = _ref4.className,\n children = _ref4.children,\n expanded = _ref4.expanded,\n tileMaxHeight = _ref4.tileMaxHeight,\n tilePadding = _ref4.tilePadding,\n onClick = _ref4.onClick,\n onKeyUp = _ref4.onKeyUp,\n tileCollapsedIconText = _ref4.tileCollapsedIconText,\n tileExpandedIconText = _ref4.tileExpandedIconText,\n tileCollapsedLabel = _ref4.tileCollapsedLabel,\n tileExpandedLabel = _ref4.tileExpandedLabel,\n onBeforeClick = _ref4.onBeforeClick,\n light = _ref4.light,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n var _useState7 = useState(tileMaxHeight),\n _useState8 = _slicedToArray(_useState7, 2),\n isTileMaxHeight = _useState8[0],\n setIsTileMaxHeight = _useState8[1];\n\n var _useState9 = useState(tilePadding),\n _useState10 = _slicedToArray(_useState9, 2),\n isTilePadding = _useState10[0],\n setIsTilePadding = _useState10[1];\n\n var _useState11 = useState(expanded),\n _useState12 = _slicedToArray(_useState11, 2),\n prevExpanded = _useState12[0],\n setPrevExpanded = _useState12[1];\n\n var _useState13 = useState(tileMaxHeight),\n _useState14 = _slicedToArray(_useState13, 2),\n prevTileMaxHeight = _useState14[0],\n setPrevTileMaxHeight = _useState14[1];\n\n var _useState15 = useState(tilePadding),\n _useState16 = _slicedToArray(_useState15, 2),\n prevTilePadding = _useState16[0],\n setPrevTilePadding = _useState16[1];\n\n var _useState17 = useState(expanded),\n _useState18 = _slicedToArray(_useState17, 2),\n isExpanded = _useState18[0],\n setIsExpanded = _useState18[1];\n\n var aboveTheFold = useRef(null);\n var tileContent = useRef(null);\n var tile = useRef(null);\n var prefix = usePrefix();\n\n if (expanded !== prevExpanded) {\n setIsExpanded(expanded);\n setPrevExpanded(expanded);\n setMaxHeight();\n }\n\n if (tileMaxHeight !== prevTileMaxHeight) {\n setIsTileMaxHeight(tileMaxHeight);\n setPrevTileMaxHeight(tileMaxHeight);\n }\n\n if (tilePadding !== prevTilePadding) {\n setIsTilePadding(tilePadding);\n setPrevTilePadding(tilePadding);\n }\n\n function setMaxHeight() {\n if (isExpanded) {\n setIsTileMaxHeight(tileContent.current.getBoundingClientRect().height);\n }\n\n setIsTileMaxHeight(aboveTheFold.current.getBoundingClientRect().height);\n }\n\n function handleClick(evt) {\n if (!onBeforeClick(evt) || evt.target.tagName === 'INPUT') {\n return;\n }\n\n evt.persist();\n setIsExpanded(!isExpanded);\n setMaxHeight();\n\n if (onClick) {\n onClick(evt);\n }\n }\n\n function handleKeyUp(evt) {\n if (evt.target !== tile.current) {\n if (matches(evt, [keys.Enter, keys.Space])) {\n evt.preventDefault();\n }\n }\n }\n\n function getChildren() {\n return React.Children.toArray(children);\n }\n\n var classes = cx(\"\".concat(prefix, \"--tile\"), \"\".concat(prefix, \"--tile--expandable\"), (_cx5 = {}, _defineProperty(_cx5, \"\".concat(prefix, \"--tile--is-expanded\"), isExpanded), _defineProperty(_cx5, \"\".concat(prefix, \"--tile--light\"), light), _cx5), className);\n var tileStyle = {\n maxHeight: isExpanded ? null : isTileMaxHeight + isTilePadding\n };\n var childrenAsArray = getChildren();\n useIsomorphicEffect(function () {\n var getStyle = window.getComputedStyle(tile.current, null);\n var node = aboveTheFold.current;\n\n var _node$getBoundingClie = node.getBoundingClientRect(),\n height = _node$getBoundingClie.height;\n\n var paddingTop = parseInt(getStyle.getPropertyValue('padding-top'), 10);\n var paddingBottom = parseInt(getStyle.getPropertyValue('padding-bottom'), 10);\n setIsTileMaxHeight(height);\n setIsTilePadding(paddingTop + paddingBottom);\n }, []);\n useEffect(function () {\n var resizeObserver = new ResizeObserver(function (entries) {\n var _entries = _slicedToArray(entries, 1),\n aboveTheFold = _entries[0];\n\n setIsTileMaxHeight(aboveTheFold.contentRect.height);\n });\n resizeObserver.observe(aboveTheFold.current);\n return function () {\n return resizeObserver.disconnect();\n };\n }, []);\n return /*#__PURE__*/React.createElement(\"button\", _extends({\n type: \"button\",\n ref: tile,\n style: tileStyle,\n className: classes,\n \"aria-expanded\": isExpanded,\n title: isExpanded ? tileExpandedIconText : tileCollapsedIconText\n }, rest, {\n onKeyUp: composeEventHandlers([onKeyUp, handleKeyUp]),\n onClick: composeEventHandlers([onClick, handleClick]),\n tabIndex: tabIndex\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: tileContent\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: aboveTheFold,\n className: \"\".concat(prefix, \"--tile-content\")\n }, childrenAsArray[0]), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tile__chevron\")\n }, /*#__PURE__*/React.createElement(\"span\", null, isExpanded ? tileExpandedLabel : tileCollapsedLabel), /*#__PURE__*/React.createElement(ChevronDown16, null)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tile-content\")\n }, childrenAsArray[1])));\n}\nExpandableTile.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * `true` if the tile is expanded.\n */\n expanded: PropTypes.bool,\n\n /**\n * An ID that can be provided to aria-labelledby\n */\n id: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: deprecate(PropTypes.bool, 'The `light` prop for `ExpandableTile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.'),\n\n /**\n * optional handler to decide whether to ignore a click. returns false if click should be ignored\n */\n onBeforeClick: PropTypes.func,\n\n /**\n * Specify the function to run when the ExpandableTile is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * optional handler to trigger a function when a key is pressed\n */\n onKeyUp: PropTypes.func,\n\n /**\n * The `tabindex` attribute.\n */\n tabIndex: PropTypes.number,\n\n /**\n * The description of the \"collapsed\" icon that can be read by screen readers.\n */\n tileCollapsedIconText: PropTypes.string,\n\n /**\n * When \"collapsed\", a label to appear next to the chevron (e.g., \"View more\").\n */\n tileCollapsedLabel: PropTypes.string,\n\n /**\n * The description of the \"expanded\" icon that can be read by screen readers.\n */\n tileExpandedIconText: PropTypes.string,\n\n /**\n * When \"expanded\", a label to appear next to the chevron (e.g., \"View less\").\n */\n tileExpandedLabel: PropTypes.string\n};\nExpandableTile.defaultProps = {\n tabIndex: 0,\n expanded: false,\n tileMaxHeight: 0,\n tilePadding: 0,\n onBeforeClick: function onBeforeClick() {\n return true;\n },\n onClick: function onClick() {},\n tileCollapsedIconText: 'Interact to expand Tile',\n tileExpandedIconText: 'Interact to collapse Tile'\n};\nExpandableTile.displayName = 'ExpandableTile';\nexport var TileAboveTheFoldContent = /*#__PURE__*/React.forwardRef(function TilAboveTheFoldContent(_ref5, ref) {\n var children = _ref5.children;\n var prefix = usePrefix();\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: ref,\n className: \"\".concat(prefix, \"--tile-content__above-the-fold\")\n }, children);\n});\nTileAboveTheFoldContent.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node\n};\nTileAboveTheFoldContent.displayName = 'TileAboveTheFoldContent';\nexport var TileBelowTheFoldContent = /*#__PURE__*/React.forwardRef(function TileBelowTheFoldContent(_ref6, ref) {\n var children = _ref6.children;\n var prefix = usePrefix();\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: ref,\n className: \"\".concat(prefix, \"--tile-content__below-the-fold\")\n }, children);\n});\nTileBelowTheFoldContent.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node\n};\nTileBelowTheFoldContent.displayName = 'TileBelowTheFoldContent';","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"children\", \"className\", \"light\"],\n _excluded2 = [\"children\", \"href\", \"className\", \"handleClick\", \"handleKeyDown\", \"onClick\", \"onKeyDown\", \"clicked\", \"light\"],\n _excluded3 = [\"children\", \"id\", \"tabIndex\", \"value\", \"name\", \"title\", \"iconDescription\", \"className\", \"handleClick\", \"handleKeyDown\", \"onClick\", \"onChange\", \"onKeyDown\", \"light\", \"disabled\", \"selected\"],\n _excluded4 = [\"tabIndex\", \"className\", \"expanded\", \"tileMaxHeight\", \"tilePadding\", \"handleClick\", \"onKeyUp\", \"tileCollapsedIconText\", \"tileExpandedIconText\", \"tileCollapsedLabel\", \"tileExpandedLabel\", \"onBeforeClick\", \"light\"];\n\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); }; }\n\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; } }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React, { Component, useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport Link from '../Link';\nimport { Checkbox16, CheckboxCheckedFilled16, ChevronDown16 } from '@carbon/icons-react';\nimport { keys, matches } from '../../internal/keyboard';\nimport deprecate from '../../prop-types/deprecate';\nimport { composeEventHandlers } from '../../tools/events';\nimport { PrefixContext, usePrefix } from '../../internal/usePrefix';\nexport var Tile = /*#__PURE__*/function (_Component) {\n _inherits(Tile, _Component);\n\n var _super = _createSuper(Tile);\n\n function Tile() {\n _classCallCheck(this, Tile);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(Tile, [{\n key: \"render\",\n value: function render() {\n var prefix = this.context;\n\n var _this$props = this.props,\n children = _this$props.children,\n className = _this$props.className,\n light = _this$props.light,\n rest = _objectWithoutProperties(_this$props, _excluded);\n\n var tileClasses = cx(\"\".concat(prefix, \"--tile\"), _defineProperty({}, \"\".concat(prefix, \"--tile--light\"), light), className);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: tileClasses\n }, rest), children);\n }\n }]);\n\n return Tile;\n}(Component);\n\n_defineProperty(Tile, \"propTypes\", {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: PropTypes.bool\n});\n\n_defineProperty(Tile, \"contextType\", PrefixContext);\n\n_defineProperty(Tile, \"defaultProps\", {\n light: false\n});\n\nexport var ClickableTile = /*#__PURE__*/function (_Component2) {\n _inherits(ClickableTile, _Component2);\n\n var _super2 = _createSuper(ClickableTile);\n\n function ClickableTile() {\n var _this;\n\n _classCallCheck(this, ClickableTile);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super2.call.apply(_super2, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {});\n\n _defineProperty(_assertThisInitialized(_this), \"handleClick\", function (evt) {\n evt.persist();\n\n _this.setState({\n clicked: !_this.state.clicked\n }, function () {\n var _this$props$handleCli, _this$props2, _this$props$onClick, _this$props3;\n\n // TODO: Remove handleClick prop when handleClick is deprecated\n ((_this$props$handleCli = (_this$props2 = _this.props).handleClick) === null || _this$props$handleCli === void 0 ? void 0 : _this$props$handleCli.call(_this$props2, evt)) || ((_this$props$onClick = (_this$props3 = _this.props).onClick) === null || _this$props$onClick === void 0 ? void 0 : _this$props$onClick.call(_this$props3, evt));\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyDown\", function (evt) {\n evt.persist();\n\n if (matches(evt, [keys.Enter, keys.Space])) {\n _this.setState({\n clicked: !_this.state.clicked\n }, function () {\n var _this$props$handleKey, _this$props4;\n\n // TODO: Remove handleKeyDown prop when handleKeyDown is deprecated\n ((_this$props$handleKey = (_this$props4 = _this.props).handleKeyDown) === null || _this$props$handleKey === void 0 ? void 0 : _this$props$handleKey.call(_this$props4, evt)) || _this.props.onKeyDown(evt);\n });\n } else {\n var _this$props$handleKey2, _this$props5;\n\n // TODO: Remove handleKeyDown prop when handleKeyDown is deprecated\n ((_this$props$handleKey2 = (_this$props5 = _this.props).handleKeyDown) === null || _this$props$handleKey2 === void 0 ? void 0 : _this$props$handleKey2.call(_this$props5, evt)) || _this.props.onKeyDown(evt);\n }\n });\n\n return _this;\n }\n\n _createClass(ClickableTile, [{\n key: \"render\",\n value: function render() {\n var _cx2;\n\n var prefix = this.context;\n\n var _this$props6 = this.props,\n children = _this$props6.children,\n href = _this$props6.href,\n className = _this$props6.className,\n handleClick = _this$props6.handleClick,\n handleKeyDown = _this$props6.handleKeyDown,\n onClick = _this$props6.onClick,\n onKeyDown = _this$props6.onKeyDown,\n clicked = _this$props6.clicked,\n light = _this$props6.light,\n rest = _objectWithoutProperties(_this$props6, _excluded2);\n\n var classes = cx(\"\".concat(prefix, \"--tile\"), \"\".concat(prefix, \"--tile--clickable\"), (_cx2 = {}, _defineProperty(_cx2, \"\".concat(prefix, \"--tile--is-clicked\"), this.state.clicked), _defineProperty(_cx2, \"\".concat(prefix, \"--tile--light\"), light), _cx2), className);\n return /*#__PURE__*/React.createElement(Link, _extends({\n href: href,\n className: classes\n }, rest, {\n onClick: this.handleClick,\n onKeyDown: this.handleKeyDown\n }), children);\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: // eslint-disable-next-line react/prop-types\n function getDerivedStateFromProps(_ref, state) {\n var clicked = _ref.clicked;\n var prevClicked = state.prevClicked;\n return prevClicked === clicked ? null : {\n clicked: clicked,\n prevClicked: clicked\n };\n }\n }]);\n\n return ClickableTile;\n}(Component);\n\n_defineProperty(ClickableTile, \"propTypes\", {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * Deprecated in v11. Use 'onClick' instead.\n */\n handleClick: deprecate(PropTypes.func, 'The handleClick prop for ClickableTile has been deprecated in favor of onClick. It will be removed in the next major release.'),\n\n /**\n * Specify the function to run when the ClickableTile is interacted with via a keyboard\n */\n handleKeyDown: deprecate(PropTypes.func, 'The handleKeyDown prop for ClickableTile has been deprecated in favor of onKeyDown. It will be removed in the next major release.'),\n\n /**\n * The href for the link.\n */\n href: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: PropTypes.bool,\n\n /**\n * Specify the function to run when the ClickableTile is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the function to run when the ClickableTile is interacted with via a keyboard\n */\n onKeyDown: PropTypes.func,\n\n /**\n * The rel property for the link.\n */\n rel: PropTypes.string\n});\n\n_defineProperty(ClickableTile, \"contextType\", PrefixContext);\n\n_defineProperty(ClickableTile, \"defaultProps\", {\n clicked: false,\n onClick: function onClick() {},\n onKeyDown: function onKeyDown() {},\n light: false\n});\n\nexport function SelectableTile(props) {\n var _cx3;\n\n var children = props.children,\n id = props.id,\n tabIndex = props.tabIndex,\n value = props.value,\n name = props.name,\n title = props.title,\n iconDescription = props.iconDescription,\n className = props.className,\n handleClick = props.handleClick,\n handleKeyDown = props.handleKeyDown,\n onClick = props.onClick,\n onChange = props.onChange,\n onKeyDown = props.onKeyDown,\n light = props.light,\n disabled = props.disabled,\n selected = props.selected,\n rest = _objectWithoutProperties(props, _excluded3);\n\n var prefix = usePrefix(); // TODO: replace with onClick when handleClick prop is deprecated\n\n var clickHandler = handleClick || onClick; // TODO: replace with onKeyDown when handleKeyDown prop is deprecated\n\n var keyDownHandler = handleKeyDown || onKeyDown;\n\n var _useState = useState(selected),\n _useState2 = _slicedToArray(_useState, 2),\n isSelected = _useState2[0],\n setIsSelected = _useState2[1];\n\n var input = useRef(null);\n var classes = cx(\"\".concat(prefix, \"--tile\"), \"\".concat(prefix, \"--tile--selectable\"), (_cx3 = {}, _defineProperty(_cx3, \"\".concat(prefix, \"--tile--is-selected\"), isSelected), _defineProperty(_cx3, \"\".concat(prefix, \"--tile--light\"), light), _defineProperty(_cx3, \"\".concat(prefix, \"--tile--disabled\"), disabled), _cx3), className);\n var inputClasses = cx(\"\".concat(prefix, \"--tile-input\"), _defineProperty({}, \"\".concat(prefix, \"--tile-input--checked\"), isSelected)); // TODO: rename to handleClick when handleClick prop is deprecated\n\n function handleOnClick(evt) {\n evt.preventDefault();\n evt.persist();\n setIsSelected(!isSelected);\n clickHandler(evt);\n onChange(evt);\n } // TODO: rename to handleKeyDown when handleKeyDown prop is deprecated\n\n\n function handleOnKeyDown(evt) {\n evt.persist();\n\n if (matches(evt, [keys.Enter, keys.Space])) {\n evt.preventDefault();\n setIsSelected(!isSelected);\n onChange(evt);\n }\n\n keyDownHandler(evt);\n }\n\n function handleChange(event) {\n setIsSelected(event.target.checked);\n onChange(event);\n }\n\n useEffect(function () {\n setIsSelected(selected);\n }, [selected]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"input\", {\n ref: input,\n tabIndex: -1,\n id: id,\n className: inputClasses,\n value: value,\n onChange: !disabled ? handleChange : null,\n type: \"checkbox\",\n disabled: disabled,\n name: name,\n title: title,\n checked: isSelected\n }), /*#__PURE__*/React.createElement(\"label\", _extends({\n htmlFor: id,\n className: classes // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n ,\n tabIndex: !disabled ? tabIndex : null\n }, rest, {\n onClick: !disabled ? handleOnClick : null,\n onKeyDown: !disabled ? handleOnKeyDown : null\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--tile__checkmark \").concat(prefix, \"--tile__checkmark--persistent\")\n }, isSelected ? /*#__PURE__*/React.createElement(CheckboxCheckedFilled16, null) : /*#__PURE__*/React.createElement(Checkbox16, null)), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--tile-content\")\n }, children)));\n}\nSelectableTile.defaultProps = {\n value: 'value',\n title: 'title',\n selected: false,\n tabIndex: 0,\n light: false,\n onClick: function onClick() {},\n onChange: function onChange() {},\n onKeyDown: function onKeyDown() {}\n};\nSelectableTile.propTypes = {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * Specify whether the SelectableTile should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Specify the function to run when the SelectableTile is clicked\n */\n handleClick: deprecate(PropTypes.func, 'The `handleClick` prop for `SelectableTile` has been deprecated in favor of `onClick`. It will be removed in the next major release.'),\n\n /**\n * Specify the function to run when the SelectableTile is interacted with via a keyboard\n */\n handleKeyDown: deprecate(PropTypes.func, 'The `handleKeyDown` prop for `SelectableTile` has been deprecated in favor of `onKeyDown`. It will be removed in the next major release.'),\n\n /**\n * The description of the checkmark icon.\n */\n iconDescription: deprecate(PropTypes.string, 'The `iconDescription` prop for `SelectableTile` is no longer needed and has ' + 'been deprecated. It will be removed in the next major release.'),\n\n /**\n * The ID of the ``.\n */\n id: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: PropTypes.bool,\n\n /**\n * The `name` of the ``.\n */\n name: PropTypes.string,\n\n /**\n * The empty handler of the ``.\n */\n onChange: PropTypes.func,\n\n /**\n * Specify the function to run when the SelectableTile is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the function to run when the SelectableTile is interacted with via a keyboard\n */\n onKeyDown: PropTypes.func,\n\n /**\n * `true` to select this tile.\n */\n selected: PropTypes.bool,\n\n /**\n * Specify the tab index of the wrapper element\n */\n tabIndex: PropTypes.number,\n\n /**\n * The `title` of the ``.\n */\n title: PropTypes.string,\n\n /**\n * The value of the ``.\n */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired\n};\nexport var ExpandableTile = /*#__PURE__*/function (_Component3) {\n _inherits(ExpandableTile, _Component3);\n\n var _super3 = _createSuper(ExpandableTile);\n\n function ExpandableTile() {\n var _this2;\n\n _classCallCheck(this, ExpandableTile);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _super3.call.apply(_super3, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this2), \"state\", {});\n\n _defineProperty(_assertThisInitialized(_this2), \"resizeObserver\", null);\n\n _defineProperty(_assertThisInitialized(_this2), \"componentDidMount\", function () {\n _this2.resizeObserver = new ResizeObserver(function (entries) {\n var _entries = _slicedToArray(entries, 1),\n aboveTheFold = _entries[0];\n\n _this2.setState({\n tileMaxHeight: aboveTheFold.contentRect.height\n });\n });\n\n if (_this2.tile) {\n var getStyle = window.getComputedStyle(_this2.tile, null);\n\n if (_this2.aboveTheFold) {\n _this2.resizeObserver.observe(_this2.aboveTheFold);\n\n _this2.setState({\n tileMaxHeight: _this2.aboveTheFold.getBoundingClientRect().height,\n tilePadding: parseInt(getStyle.getPropertyValue('padding-top'), 10) + parseInt(getStyle.getPropertyValue('padding-bottom'), 10)\n });\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this2), \"componentDidUpdate\", function (prevProps) {\n if (prevProps.expanded !== _this2.props.expanded) {\n _this2.setMaxHeight();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this2), \"setMaxHeight\", function () {\n if (_this2.state.expanded ? _this2.tileContent : _this2.aboveTheFold) {\n _this2.setState({\n tileMaxHeight: _this2.state.expanded ? _this2.tileContent.getBoundingClientRect().height : _this2.aboveTheFold.getBoundingClientRect().height\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this2), \"handleClick\", function (evt) {\n if (!_this2.props.onBeforeClick(evt) || evt.target.tagName === 'INPUT') {\n return;\n }\n\n evt.persist();\n\n _this2.setState({\n expanded: !_this2.state.expanded\n }, function () {\n var _this2$props$handleCl, _this2$props, _this2$props$onClick, _this2$props2;\n\n _this2.setMaxHeight(); // TODO: Remove handleClick prop when handleClick is deprecated\n\n\n ((_this2$props$handleCl = (_this2$props = _this2.props).handleClick) === null || _this2$props$handleCl === void 0 ? void 0 : _this2$props$handleCl.call(_this2$props, evt)) || ((_this2$props$onClick = (_this2$props2 = _this2.props).onClick) === null || _this2$props$onClick === void 0 ? void 0 : _this2$props$onClick.call(_this2$props2, evt));\n });\n });\n\n _defineProperty(_assertThisInitialized(_this2), \"handleKeyUp\", function (evt) {\n if (evt.target !== _this2.tile) {\n if (matches(evt, [keys.Enter, keys.Space])) {\n evt.preventDefault();\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_this2), \"getChildren\", function () {\n return React.Children.toArray(_this2.props.children);\n });\n\n return _this2;\n }\n\n _createClass(ExpandableTile, [{\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _cx5,\n _this3 = this;\n\n var _this$props7 = this.props,\n tabIndex = _this$props7.tabIndex,\n className = _this$props7.className,\n expanded = _this$props7.expanded,\n tileMaxHeight = _this$props7.tileMaxHeight,\n tilePadding = _this$props7.tilePadding,\n handleClick = _this$props7.handleClick,\n onKeyUp = _this$props7.onKeyUp,\n tileCollapsedIconText = _this$props7.tileCollapsedIconText,\n tileExpandedIconText = _this$props7.tileExpandedIconText,\n tileCollapsedLabel = _this$props7.tileCollapsedLabel,\n tileExpandedLabel = _this$props7.tileExpandedLabel,\n onBeforeClick = _this$props7.onBeforeClick,\n light = _this$props7.light,\n rest = _objectWithoutProperties(_this$props7, _excluded4);\n\n var prefix = this.context;\n var isExpanded = this.state.expanded;\n var classes = cx(\"\".concat(prefix, \"--tile\"), \"\".concat(prefix, \"--tile--expandable\"), (_cx5 = {}, _defineProperty(_cx5, \"\".concat(prefix, \"--tile--is-expanded\"), isExpanded), _defineProperty(_cx5, \"\".concat(prefix, \"--tile--light\"), light), _cx5), className);\n var tileStyle = {\n maxHeight: isExpanded ? null : this.state.tileMaxHeight + this.state.tilePadding\n };\n var childrenAsArray = this.getChildren();\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions\n React.createElement(\"button\", _extends({\n type: \"button\",\n ref: function ref(tile) {\n _this3.tile = tile;\n },\n style: tileStyle,\n className: classes,\n \"aria-expanded\": isExpanded,\n title: isExpanded ? tileExpandedIconText : tileCollapsedIconText\n }, rest, {\n onKeyUp: composeEventHandlers([onKeyUp, this.handleKeyUp]),\n onClick: this.handleClick,\n tabIndex: tabIndex\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(tileContent) {\n _this3.tileContent = tileContent;\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(aboveTheFold) {\n _this3.aboveTheFold = aboveTheFold;\n },\n className: \"\".concat(prefix, \"--tile-content\")\n }, childrenAsArray[0]), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tile__chevron\")\n }, /*#__PURE__*/React.createElement(\"span\", null, isExpanded ? tileExpandedLabel : tileCollapsedLabel), /*#__PURE__*/React.createElement(ChevronDown16, null)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--tile-content\")\n }, childrenAsArray[1])))\n );\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps( // eslint-disable-next-line react/prop-types\n _ref2, state) {\n var expanded = _ref2.expanded,\n tileMaxHeight = _ref2.tileMaxHeight,\n tilePadding = _ref2.tilePadding;\n var prevExpanded = state.prevExpanded,\n prevTileMaxHeight = state.prevTileMaxHeight,\n prevTilePadding = state.prevTilePadding,\n currentExpanded = state.expanded,\n currentTileMaxHeight = state.tileMaxHeight,\n currentTilePadding = state.tilePadding;\n var expandedChanged = prevExpanded !== expanded;\n var tileMaxHeightChanged = prevTileMaxHeight !== tileMaxHeight;\n var tilePaddingChanged = prevTilePadding !== tilePadding;\n return !expandedChanged && !tileMaxHeightChanged && !tilePaddingChanged ? null : {\n expanded: !expandedChanged ? currentExpanded : expanded,\n tileMaxHeight: !tileMaxHeightChanged ? currentTileMaxHeight : tileMaxHeight,\n tilePadding: !tilePaddingChanged ? currentTilePadding : tilePadding,\n prevExpanded: expanded,\n prevTileMaxHeight: tileMaxHeight,\n prevTilePadding: tilePadding\n };\n }\n }]);\n\n return ExpandableTile;\n}(Component);\n\n_defineProperty(ExpandableTile, \"propTypes\", {\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * `true` if the tile is expanded.\n */\n expanded: PropTypes.bool,\n\n /**\n * Deprecated in v11. Use 'onClick' instead.\n */\n handleClick: deprecate(PropTypes.func, 'The handleClick prop for ExpandableTile has been deprecated in favor of onClick. It will be removed in the next major release.'),\n\n /**\n * An ID that can be provided to aria-labelledby\n */\n id: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make tile background color same as container background color.\n */\n light: PropTypes.bool,\n\n /**\n * optional handler to decide whether to ignore a click. returns false if click should be ignored\n */\n onBeforeClick: PropTypes.func,\n\n /**\n * Specify the function to run when the ExpandableTile is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * optional handler to trigger a function when a key is pressed\n */\n onKeyUp: PropTypes.func,\n\n /**\n * The `tabindex` attribute.\n */\n tabIndex: PropTypes.number,\n\n /**\n * The description of the \"collapsed\" icon that can be read by screen readers.\n */\n tileCollapsedIconText: PropTypes.string,\n\n /**\n * When \"collapsed\", a label to appear next to the chevron (e.g., \"View more\").\n */\n tileCollapsedLabel: PropTypes.string,\n\n /**\n * The description of the \"expanded\" icon that can be read by screen readers.\n */\n tileExpandedIconText: PropTypes.string,\n\n /**\n * When \"expanded\", a label to appear next to the chevron (e.g., \"View less\").\n */\n tileExpandedLabel: PropTypes.string\n});\n\n_defineProperty(ExpandableTile, \"contextType\", PrefixContext);\n\n_defineProperty(ExpandableTile, \"defaultProps\", {\n tabIndex: 0,\n expanded: false,\n tileMaxHeight: 0,\n tilePadding: 0,\n onBeforeClick: function onBeforeClick() {\n return true;\n },\n onClick: function onClick() {},\n tileCollapsedIconText: 'Interact to expand Tile',\n tileExpandedIconText: 'Interact to collapse Tile',\n light: false\n});\n\nexport var TileAboveTheFoldContent = /*#__PURE__*/function (_Component4) {\n _inherits(TileAboveTheFoldContent, _Component4);\n\n var _super4 = _createSuper(TileAboveTheFoldContent);\n\n function TileAboveTheFoldContent() {\n _classCallCheck(this, TileAboveTheFoldContent);\n\n return _super4.apply(this, arguments);\n }\n\n _createClass(TileAboveTheFoldContent, [{\n key: \"render\",\n value: function render() {\n var prefix = this.context;\n var children = this.props.children;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--tile-content__above-the-fold\")\n }, children);\n }\n }]);\n\n return TileAboveTheFoldContent;\n}(Component);\n\n_defineProperty(TileAboveTheFoldContent, \"propTypes\", {\n /**\n * The child nodes.\n */\n children: PropTypes.node\n});\n\n_defineProperty(TileAboveTheFoldContent, \"contextType\", PrefixContext);\n\nexport var TileBelowTheFoldContent = /*#__PURE__*/function (_Component5) {\n _inherits(TileBelowTheFoldContent, _Component5);\n\n var _super5 = _createSuper(TileBelowTheFoldContent);\n\n function TileBelowTheFoldContent() {\n _classCallCheck(this, TileBelowTheFoldContent);\n\n return _super5.apply(this, arguments);\n }\n\n _createClass(TileBelowTheFoldContent, [{\n key: \"render\",\n value: function render() {\n var children = this.props.children;\n var prefix = this.context;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--tile-content__below-the-fold\")\n }, children);\n }\n }]);\n\n return TileBelowTheFoldContent;\n}(Component);\n\n_defineProperty(TileBelowTheFoldContent, \"propTypes\", {\n /**\n * The child nodes.\n */\n children: PropTypes.node\n});\n\n_defineProperty(TileBelowTheFoldContent, \"contextType\", PrefixContext);","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport { Tile as TileNext, ClickableTile as ClickableTileNext, SelectableTile as SelectableTileNext, ExpandableTile as ExpandableTileNext, TileAboveTheFoldContent as TileAboveTheFoldContentNext, TileBelowTheFoldContent as TileBelowTheFoldContentNext } from './next/Tile';\nimport { Tile as TileClassic, ClickableTile as ClickableTileClassic, SelectableTile as SelectableTileClassic, ExpandableTile as ExpandableTileClassic, TileAboveTheFoldContent as TileAboveTheFoldContentClassic, TileBelowTheFoldContent as TileBelowTheFoldContentClassic } from './Tile';\nexport var Tile = FeatureFlags.enabled('enable-v11-release') ? TileNext : TileClassic;\nexport var ClickableTile = FeatureFlags.enabled('enable-v11-release') ? ClickableTileNext : ClickableTileClassic;\nexport var SelectableTile = FeatureFlags.enabled('enable-v11-release') ? SelectableTileNext : SelectableTileClassic;\nexport var ExpandableTile = FeatureFlags.enabled('enable-v11-release') ? ExpandableTileNext : ExpandableTileClassic;\nexport var TileAboveTheFoldContent = FeatureFlags.enabled('enable-v11-release') ? TileAboveTheFoldContentNext : TileAboveTheFoldContentClassic;\nexport var TileBelowTheFoldContent = FeatureFlags.enabled('enable-v11-release') ? TileBelowTheFoldContentNext : TileBelowTheFoldContentClassic;","import React from 'react';\nimport { PlotRender } from './PlotRender';\nimport { Tile, Grid, Row, Column } from 'carbon-components-react';\n\nexport default class BenchmarkVisualizationsPage extends React.Component {\n /**\n * Props:\n * benchmark: JSON object representing a benchmark\n * algorithms: set of strings\n * tasks: set of strings\n * assessments: set of strings\n */\n constructor(props) {\n super(props);\n this.onResize = this.onResize.bind(this);\n }\n render() {\n if (this.props.benchmark === null) {\n return (\n
\n

No benchmark selected

\n
\n );\n }\n if (!this.props.assessments.size) {\n return (\n
\n

No assessment selected

\n
\n );\n }\n if (!this.props.tasks.size) {\n return (\n
\n

No task selected

\n
\n );\n }\n if (!this.props.algorithms.size) {\n return (\n
\n

No algorithm selected

\n
\n );\n }\n const assessments = Array.from(this.props.assessments);\n const tasks = Array.from(this.props.tasks);\n const algorithms = Array.from(this.props.algorithms);\n assessments.sort();\n tasks.sort();\n algorithms.sort();\n /**\n * Key to hash current VisualizationPage properties.\n * Used to force re-rendering of all plots each time any option is (de)selected,\n * and then make sure each plot is entirely redrawn, preventing any graphical bug.\n * As plots are cached after first API call, forcing a redraw is not so-much time-consuming.\n * @type {string}\n */\n const prefix = `viz-${this.props.benchmark.name}-${assessments.join(\n '-'\n )}-${tasks.join('-')}-${algorithms.join('-')}`;\n return (\n
\n

Assessments

\n
\n {assessments.map((assessment, indexAssessment) => (\n \n \n \n \n \n {assessment}\n \n \n \n \n {tasks.map((task, indexTask) => (\n \n \n \n \n \n \n \n ))}\n \n ))}\n
\n
\n );\n }\n componentDidMount() {\n // Make sure to resize grids when page is mounted.\n this.onResize();\n // Make sure to resize grids when window is resized.\n window.addEventListener('resize', this.onResize);\n }\n componentDidUpdate(prevProps, prevState, snapshot) {\n // Make sure to resize grids every time page is updated.\n this.onResize();\n }\n componentWillUnmount() {\n // Remove ebent listener.\n window.removeEventListener('resize', this.onResize);\n }\n onResize() {\n // Get grids div.\n const divAssessments = document.getElementById('assessments');\n if (!divAssessments) return;\n const width = divAssessments.offsetWidth;\n // Set plot width to grids div / nb. grids\n const plotWidth = width / this.props.assessments.size;\n // Set grid width for each grid\n const grids = divAssessments.getElementsByClassName('assessment');\n for (let i = 0; i < grids.length; ++i) {\n const grid = grids[i];\n // Grid width must be plot width * max nb. of plots displayed in a column.\n // We must then get max number of plots in a column.\n let nbMaxPlots = 1;\n const columns = grid.getElementsByClassName('orion-column');\n for (let iCol = 0; iCol < columns.length; ++iCol) {\n const column = columns[iCol];\n const plots = column.getElementsByClassName('orion-plot');\n if (nbMaxPlots < plots.length) nbMaxPlots = plots.length;\n }\n const gridWidth = plotWidth * nbMaxPlots;\n grid.style.width = `${gridWidth}px`;\n }\n }\n}\n","import BenchmarkVisualizationsPage from './BenchmarkVisualizationsPage';\nexport default BenchmarkVisualizationsPage;\n","import React from 'react';\n\nexport const BenchmarkStatusPage = () => {\n return
Benchmarks status page
;\n};\n","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * We currently support the following sorting states for DataTable headers,\n * namely: `NONE` for no sorting being applied, and then `DESC` and `ASC` for\n * the corresponding direction of the sorting order.\n */\nexport var sortStates = {\n NONE: 'NONE',\n DESC: 'DESC',\n ASC: 'ASC'\n};","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Generic helper used to consolidate all call sites for getting a cell id into\n * one method. The strategy currently is that a \"cellId\" is just the combination\n * of the row id and the header key used to access this field in a row.\n *\n * @param {string} rowId\n * @param {string} header\n * @returns {string}\n */\nexport var getCellId = function getCellId(rowId, header) {\n return \"\".concat(rowId, \":\").concat(header);\n};","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { getCellId } from './cells';\nimport { sortStates } from '../state/sortStates';\n/**\n * Compare two primitives to determine which comes first. Initially, this method\n * will try and figure out if both entries are the same type. If so, it will\n * apply the default sort algorithm for those types. Otherwise, it defaults to a\n * string conversion.\n *\n * @param {number|string} a\n * @param {number|string} b\n * @param {string} locale\n * @returns {number}\n */\n\nexport var compare = function compare(a, b) {\n var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en';\n\n if (typeof a === 'number' && typeof b === 'number') {\n return a - b;\n }\n\n if (typeof a === 'string' && typeof b === 'string') {\n return compareStrings(a, b, locale);\n }\n\n return compareStrings('' + a, '' + b, locale);\n};\n/**\n * Use the built-in `localeCompare` function available on strings to compare two\n * strings.\n *\n * @param {string} a\n * @param {string} b\n * @param {string} locale\n * @returns {number}\n */\n\nexport var compareStrings = function compareStrings(a, b) {\n var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en';\n\n // Only set `numeric: true` if the string only contains numbers\n // https://stackoverflow.com/a/175787\n if (!isNaN(a) && !isNaN(parseFloat(a))) {\n return a.localeCompare(b, locale, {\n numeric: true\n });\n }\n\n return a.localeCompare(b, locale);\n};\n/**\n * Default implementation of how we sort rows internally. The idea behind this\n * implementation is to use the given list of row ids to look up the cells in\n * the row by the given key. We then use the value of these cells and pipe them\n * into our local `compareStrings` method, including the locale where\n * appropriate.\n *\n * @param {object} config\n * @param {Array[string]} config.rowIds array of all the row ids in the table\n * @param {object} config.cellsById object containing a mapping of cell id to\n * cell\n * @param {string} config.key the header key that we use to lookup the cell\n * @param {string} [config.locale] optional locale used in the comparison\n * function\n * @param {string} config.sortDirection the sort direction used to determine the\n * order the comparison is called in\n * @param {Function} config.sortRow\n * @returns {Array[string]} array of sorted rowIds\n */\n\nexport var sortRows = function sortRows(_ref) {\n var rowIds = _ref.rowIds,\n cellsById = _ref.cellsById,\n sortDirection = _ref.sortDirection,\n key = _ref.key,\n locale = _ref.locale,\n sortRow = _ref.sortRow;\n return rowIds.slice().sort(function (a, b) {\n var cellA = cellsById[getCellId(a, key)];\n var cellB = cellsById[getCellId(b, key)];\n return sortRow(cellA && cellA.value, cellB && cellB.value, {\n key: key,\n sortDirection: sortDirection,\n locale: locale,\n sortStates: sortStates,\n compare: compare\n });\n });\n};\nexport var defaultSortRow = function defaultSortRow(cellA, cellB, _ref2) {\n var sortDirection = _ref2.sortDirection,\n sortStates = _ref2.sortStates,\n locale = _ref2.locale;\n\n if (sortDirection === sortStates.ASC) {\n return compare(cellA, cellB, locale);\n }\n\n return compare(cellB, cellA, locale);\n};","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { sortStates } from './sortStates';\nexport { sortStates };\nimport { sortRows } from '../tools/sorting'; // Our initialSortState should be `NONE`, unless a consumer has specified a\n// different initialSortState\n\nexport var initialSortState = sortStates.NONE;\n/**\n * Utility used to get the next sort state given the following pieces of\n * information:\n *\n * @param {string} prevHeader the value of the previous header\n * @param {string} header the value of the currently selected header\n * @param {string} prevState the previous sort state of the table\n * @returns {string}\n */\n\nexport var getNextSortDirection = function getNextSortDirection(prevHeader, header, prevState) {\n // If the previous header is equivalent to the current header, we know that we\n // have to derive the next sort state from the previous sort state\n if (prevHeader === header) {\n // When transitioning, we know that the sequence of states is as follows:\n // NONE -> ASC -> DESC -> NONE\n if (prevState === 'NONE') {\n return sortStates.ASC;\n }\n\n if (prevState === 'ASC') {\n return sortStates.DESC;\n }\n\n return sortStates.NONE;\n } // Otherwise, we have selected a new header and need to start off by sorting\n // in descending order by default\n\n\n return sortStates.ASC;\n};\nexport var getNextSortState = function getNextSortState(props, state, _ref) {\n var key = _ref.key;\n var sortDirection = state.sortDirection,\n sortHeaderKey = state.sortHeaderKey;\n var nextSortDirection = getNextSortDirection(key, sortHeaderKey, sortDirection);\n return getSortedState(props, state, key, nextSortDirection);\n};\n/**\n * Derive the set of sorted state fields from props and state for the given\n * header key and sortDirection\n *\n * @param {object} props\n * @param {string} props.locale The current locale\n * @param {Function} props.sortRows Method to handle sorting a collection of\n * rows\n * @param {object} state\n * @param {Array} state.rowIds Array of row ids\n * @param {object} state.cellsById Lookup object for cells by id\n * @param {Array} state.initialRowOrder Initial row order for the\n * current set of rows\n * @param {string} key The key for the given header we are serving the\n * sorted state for\n * @param {string} sortDirection The sortState that we want to order by\n * @returns {object}\n */\n\nexport var getSortedState = function getSortedState(props, state, key, sortDirection) {\n var rowIds = state.rowIds,\n cellsById = state.cellsById,\n initialRowOrder = state.initialRowOrder;\n var locale = props.locale,\n sortRow = props.sortRow;\n var nextRowIds = sortDirection !== sortStates.NONE ? sortRows({\n rowIds: rowIds,\n cellsById: cellsById,\n sortDirection: sortDirection,\n key: key,\n locale: locale,\n sortRow: sortRow\n }) : initialRowOrder;\n return {\n sortHeaderKey: key,\n sortDirection: sortDirection,\n rowIds: nextRowIds\n };\n};","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { getCellId } from './cells';\n/**\n * Normalize a collection of rows with the given headers.\n *\n * @param {Array} rows\n * @param {Array} headers\n * @returns {object}\n */\n\nvar normalize = function normalize(rows, headers) {\n var prevState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var prevRowsByIds = prevState.rowsById;\n var rowIds = new Array(rows.length);\n var rowsById = {};\n var cellsById = {};\n rows.forEach(function (row, i) {\n rowIds[i] = row.id; // Initialize the row info and state values, namely for selection and\n // expansion\n\n var id = row.id,\n _row$isSelected = row.isSelected,\n isSelected = _row$isSelected === void 0 ? false : _row$isSelected,\n _row$isExpanded = row.isExpanded,\n isExpanded = _row$isExpanded === void 0 ? false : _row$isExpanded,\n _row$disabled = row.disabled,\n disabled = _row$disabled === void 0 ? false : _row$disabled;\n rowsById[id] = {\n id: id,\n isSelected: isSelected,\n isExpanded: isExpanded,\n disabled: disabled,\n cells: new Array(headers.length)\n }; // If we have a previous state, and the row existed in that previous state,\n // then we'll set the state values of the row to the previous state values.\n\n if (prevRowsByIds && prevRowsByIds[row.id] !== undefined) {\n rowsById[row.id].isSelected = prevRowsByIds[row.id].isSelected;\n rowsById[row.id].isExpanded = prevRowsByIds[row.id].isExpanded;\n }\n\n headers.forEach(function (_ref, i) {\n var key = _ref.key;\n var id = getCellId(row.id, key); // Initialize the cell info and state values, namely for editing\n\n cellsById[id] = {\n id: id,\n value: row[key],\n isEditable: false,\n isEditing: false,\n isValid: true,\n errors: null,\n info: {\n header: key\n }\n }; // TODO: When working on inline edits, we'll need to derive the state\n // values similarly to rows above.\n\n rowsById[row.id].cells[i] = id;\n });\n });\n return {\n rowIds: rowIds,\n rowsById: rowsById,\n cellsById: cellsById\n };\n};\n\nexport default normalize;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { initialSortState, getSortedState } from './sorting';\nimport normalize from '../tools/normalize';\n/**\n * Helper to derive the next state from the given props and the\n * prevState. Potential future-facing API hook for React v17.\n *\n * Currently, it's being used as a way to normalize the incoming data that we\n * are receiving for rows\n */\n\nvar getDerivedStateFromProps = function getDerivedStateFromProps(props, prevState) {\n var _normalize = normalize(props.rows, props.headers, prevState),\n rowIds = _normalize.rowIds,\n rowsById = _normalize.rowsById,\n cellsById = _normalize.cellsById;\n\n var state = {\n rowIds: rowIds,\n rowsById: rowsById,\n cellsById: cellsById,\n sortDirection: prevState.sortDirection || initialSortState,\n sortHeaderKey: prevState.sortHeaderKey || null,\n // Copy over rowIds so the reference doesn't mutate the stored\n // `initialRowOrder`\n initialRowOrder: rowIds.slice(),\n filterInputValue: prevState.filterInputValue || null,\n // Optional state field to indicate whether a consumer should show a\n // batch actions menu\n shouldShowBatchActions: prevState.shouldShowBatchActions || false\n };\n\n if (prevState.sortDirection && prevState.sortHeaderKey) {\n var _getSortedState = getSortedState(props, state, prevState.sortHeaderKey, prevState.sortDirection),\n _rowIds = _getSortedState.rowIds;\n\n state.rowIds = _rowIds;\n }\n\n return state;\n};\n\nexport default getDerivedStateFromProps;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Counterpart to `normalize` for a collection of rows. This method unravels the\n * normalization step that we use to build the given parameters in order to\n * return a natural interface to working with rows for a consumer.\n *\n * The default heuristic here is to map through all the row ids and return the\n * value of the row for the given id, in addition to adding a `cells` key that\n * contains the results of mapping over the rows cells and getting individual\n * cell info.\n *\n * @param {Array} rowIds array of row ids in the table\n * @param {object} rowsById object containing lookups for rows by id\n * @param {object} cellsById object containing lookups for cells by id\n */\nvar denormalize = function denormalize(rowIds, rowsById, cellsById) {\n return rowIds.map(function (id) {\n return _objectSpread(_objectSpread({}, rowsById[id]), {}, {\n cells: rowsById[id].cells.map(function (cellId) {\n return cellsById[cellId];\n })\n });\n });\n};\n\nexport default denormalize;","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"header\", \"onClick\", \"isSortable\"],\n _excluded2 = [\"onClick\"],\n _excluded3 = [\"row\", \"onClick\"],\n _excluded4 = [\"onClick\", \"row\"];\n\nvar _defaultTranslations;\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; }\n\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; }\n\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); }; }\n\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; } }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport isEqual from 'lodash.isequal';\nimport getDerivedStateFromProps from './state/getDerivedStateFromProps';\nimport { getNextSortState } from './state/sorting';\nimport { getCellId } from './tools/cells';\nimport denormalize from './tools/denormalize';\nimport { composeEventHandlers } from '../../tools/events';\nimport { defaultFilterRows } from './tools/filter';\nimport { defaultSortRow } from './tools/sorting';\nimport setupGetInstanceId from './tools/instanceId';\nimport * as FeatureFlags from '@carbon/feature-flags';\nvar getInstanceId = setupGetInstanceId();\nvar translationKeys = {\n expandRow: 'carbon.table.row.expand',\n collapseRow: 'carbon.table.row.collapse',\n expandAll: 'carbon.table.all.expand',\n collapseAll: 'carbon.table.all.collapse',\n selectAll: 'carbon.table.all.select',\n unselectAll: 'carbon.table.all.unselect',\n selectRow: 'carbon.table.row.select',\n unselectRow: 'carbon.table.row.unselect'\n};\nvar defaultTranslations = (_defaultTranslations = {}, _defineProperty(_defaultTranslations, translationKeys.expandAll, 'Expand all rows'), _defineProperty(_defaultTranslations, translationKeys.collapseAll, 'Collapse all rows'), _defineProperty(_defaultTranslations, translationKeys.expandRow, 'Expand current row'), _defineProperty(_defaultTranslations, translationKeys.collapseRow, 'Collapse current row'), _defineProperty(_defaultTranslations, translationKeys.selectAll, 'Select all rows'), _defineProperty(_defaultTranslations, translationKeys.unselectAll, 'Unselect all rows'), _defineProperty(_defaultTranslations, translationKeys.selectRow, 'Select row'), _defineProperty(_defaultTranslations, translationKeys.unselectRow, 'Unselect row'), _defaultTranslations);\n\nvar translateWithId = function translateWithId(id) {\n return defaultTranslations[id];\n};\n/**\n * Data Tables are used to represent a collection of resources, displaying a\n * subset of their fields in columns, or headers. We prioritize direct updates\n * to the state of what we're rendering, so internally we end up normalizing the\n * given data and then denormalizing it when rendering.\n *\n * As a result, each part of the DataTable is accessible through look-up by id,\n * and updating the state of the single entity will cascade updates to the\n * consumer.\n */\n\n\nvar DataTable = /*#__PURE__*/function (_React$Component) {\n _inherits(DataTable, _React$Component);\n\n var _super = _createSuper(DataTable);\n\n function DataTable(_props) {\n var _this;\n\n _classCallCheck(this, DataTable);\n\n _this = _super.call(this, _props);\n\n _defineProperty(_assertThisInitialized(_this), \"getHeaderProps\", function (_ref) {\n var header = _ref.header,\n _onClick = _ref.onClick,\n _ref$isSortable = _ref.isSortable,\n isSortable = _ref$isSortable === void 0 ? _this.props.isSortable : _ref$isSortable,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _this$state = _this.state,\n sortDirection = _this$state.sortDirection,\n sortHeaderKey = _this$state.sortHeaderKey;\n return _objectSpread(_objectSpread({}, rest), {}, {\n key: header.key,\n sortDirection: sortDirection,\n isSortable: isSortable,\n isSortHeader: sortHeaderKey === header.key,\n onClick: function onClick(event) {\n var nextSortState = getNextSortState(_this.props, _this.state, {\n key: header.key\n });\n\n _this.setState(nextSortState, function () {\n _onClick && _this.handleOnHeaderClick(_onClick, {\n sortHeaderKey: header.key,\n sortDirection: nextSortState.sortDirection\n })(event);\n });\n }\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getExpandHeaderProps\", function () {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n onClick = _ref2.onClick,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n var t = _this.props.translateWithId;\n var _this$state2 = _this.state,\n isExpandedAll = _this$state2.isExpandedAll,\n rowIds = _this$state2.rowIds,\n rowsById = _this$state2.rowsById;\n var isExpanded = isExpandedAll || rowIds.every(function (id) {\n return rowsById[id].isExpanded;\n });\n var translationKey = isExpanded ? translationKeys.collapseAll : translationKeys.expandAll;\n return _objectSpread(_objectSpread({}, rest), {}, {\n ariaLabel: t(translationKey),\n isExpanded: isExpanded,\n // Compose the event handlers so we don't overwrite a consumer's `onClick`\n // handler\n onExpand: composeEventHandlers([_this.handleOnExpandAll, onClick ? _this.handleOnExpandHeaderClick(onClick, {\n isExpanded: isExpanded\n }) : null])\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnHeaderClick\", function (onClick, sortParams) {\n return function (e) {\n return onClick(e, sortParams);\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnExpandHeaderClick\", function (onClick, expandParams) {\n return function (e) {\n return onClick(e, expandParams);\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getRowProps\", function (_ref3) {\n var row = _ref3.row,\n onClick = _ref3.onClick,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n var t = _this.props.translateWithId;\n var translationKey = row.isExpanded ? translationKeys.collapseRow : translationKeys.expandRow;\n return _objectSpread(_objectSpread({}, rest), {}, {\n key: row.id,\n // Compose the event handlers so we don't overwrite a consumer's `onClick`\n // handler\n onExpand: composeEventHandlers([_this.handleOnExpandRow(row.id), onClick]),\n isExpanded: row.isExpanded,\n ariaLabel: t(translationKey),\n isSelected: row.isSelected,\n disabled: row.disabled\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getSelectionProps\", function () {\n var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n onClick = _ref4.onClick,\n row = _ref4.row,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n var t = _this.props.translateWithId; // If we're given a row, return the selection state values for that row\n\n if (row) {\n var _translationKey = row.isSelected ? translationKeys.unselectRow : translationKeys.selectRow;\n\n return _objectSpread(_objectSpread({}, rest), {}, {\n checked: row.isSelected,\n onSelect: composeEventHandlers([_this.handleOnSelectRow(row.id), onClick]),\n id: \"\".concat(_this.getTablePrefix(), \"__select-row-\").concat(row.id),\n name: \"select-row-\".concat(row.id),\n ariaLabel: t(_translationKey),\n disabled: row.disabled,\n radio: _this.props.radio || null\n });\n } // Otherwise, we're working on `TableSelectAll` which handles toggling the\n // selection state of all rows.\n\n\n var rowCount = _this.state.rowIds.length;\n\n var selectedRowCount = _this.getSelectedRows().length;\n\n var checked = rowCount > 0 && selectedRowCount === rowCount;\n var indeterminate = rowCount > 0 && selectedRowCount > 0 && selectedRowCount !== rowCount;\n var translationKey = checked || indeterminate ? translationKeys.unselectAll : translationKeys.selectAll;\n return _objectSpread(_objectSpread({}, rest), {}, {\n ariaLabel: t(translationKey),\n checked: checked,\n id: \"\".concat(_this.getTablePrefix(), \"__select-all\"),\n indeterminate: indeterminate,\n name: 'select-all',\n onSelect: composeEventHandlers([_this.handleSelectAll, onClick])\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getToolbarProps\", function () {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var size = _this.props.size; // Remove compact, short in V11\n\n var isSmall = size === 'compact' || size === 'short' || size === 'xs' || size === 'sm';\n return _objectSpread(_objectSpread({}, props), {}, {\n size: isSmall ? 'small' : 'normal'\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getBatchActionProps\", function () {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var shouldShowBatchActions = _this.state.shouldShowBatchActions;\n\n var totalSelected = _this.getSelectedRows().length;\n\n return _objectSpread(_objectSpread({}, props), {}, {\n shouldShowBatchActions: shouldShowBatchActions && totalSelected > 0,\n totalSelected: totalSelected,\n onCancel: _this.handleOnCancel\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getTableProps\", function () {\n var _this$props = _this.props,\n useZebraStyles = _this$props.useZebraStyles,\n size = _this$props.size,\n isSortable = _this$props.isSortable,\n useStaticWidth = _this$props.useStaticWidth,\n shouldShowBorder = _this$props.shouldShowBorder,\n stickyHeader = _this$props.stickyHeader,\n overflowMenuOnHover = _this$props.overflowMenuOnHover;\n return {\n useZebraStyles: useZebraStyles,\n size: size,\n isSortable: isSortable,\n useStaticWidth: useStaticWidth,\n shouldShowBorder: shouldShowBorder,\n stickyHeader: stickyHeader,\n overflowMenuOnHover: overflowMenuOnHover\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getTableContainerProps\", function () {\n var _this$props2 = _this.props,\n stickyHeader = _this$props2.stickyHeader,\n useStaticWidth = _this$props2.useStaticWidth;\n return {\n stickyHeader: stickyHeader,\n useStaticWidth: useStaticWidth\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getSelectedRows\", function () {\n return _this.state.rowIds.filter(function (id) {\n var row = _this.state.rowsById[id];\n return row.isSelected && !row.disabled;\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getFilteredRowIds\", function () {\n var filteredRowIds = typeof _this.state.filterInputValue === 'string' ? _this.props.filterRows({\n rowIds: _this.state.rowIds,\n headers: _this.props.headers,\n cellsById: _this.state.cellsById,\n inputValue: _this.state.filterInputValue,\n getCellId: getCellId\n }) : _this.state.rowIds;\n\n if (filteredRowIds.length == 0) {\n return [];\n }\n\n return filteredRowIds;\n });\n\n _defineProperty(_assertThisInitialized(_this), \"getTablePrefix\", function () {\n return \"data-table-\".concat(_this.instanceId);\n });\n\n _defineProperty(_assertThisInitialized(_this), \"setAllSelectedState\", function (initialState, isSelected, filteredRowIds) {\n var rowIds = initialState.rowIds;\n return {\n rowsById: rowIds.reduce(function (acc, id) {\n return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, id, _objectSpread(_objectSpread({}, initialState.rowsById[id]), !initialState.rowsById[id].disabled && {\n isSelected: filteredRowIds.includes(id) && isSelected\n })));\n }, {})\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnCancel\", function () {\n _this.setState(function (state) {\n return _objectSpread({\n shouldShowBatchActions: false\n }, _this.setAllSelectedState(state, false, _this.getFilteredRowIds()));\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleSelectAll\", function () {\n _this.setState(function (state) {\n var filteredRowIds = _this.getFilteredRowIds();\n\n var rowsById = state.rowsById;\n var isSelected = !(Object.values(rowsById).filter(function (row) {\n return row.isSelected && !row.disabled;\n }).length > 0);\n return _objectSpread({\n shouldShowBatchActions: isSelected\n }, _this.setAllSelectedState(state, isSelected, filteredRowIds));\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnSelectRow\", function (rowId) {\n return function () {\n _this.setState(function (state) {\n var row = state.rowsById[rowId];\n\n if (_this.props.radio) {\n // deselect all radio buttons\n var rowsById = Object.entries(state.rowsById).reduce(function (p, c) {\n var _c = _slicedToArray(c, 2),\n key = _c[0],\n val = _c[1];\n\n val.isSelected = false;\n p[key] = val;\n return p;\n }, {});\n return {\n shouldShowBatchActions: false,\n rowsById: _objectSpread(_objectSpread({}, rowsById), {}, _defineProperty({}, rowId, _objectSpread(_objectSpread({}, row), {}, {\n isSelected: !row.isSelected\n })))\n };\n }\n\n var selectedRows = state.rowIds.filter(function (id) {\n return state.rowsById[id].isSelected;\n }).length; // Predict the length of the selected rows after this change occurs\n\n var selectedRowsCount = !row.isSelected ? selectedRows + 1 : selectedRows - 1;\n return {\n // Basic assumption here is that we want to show the batch action bar if\n // the row is being selected. If it's being unselected, then see if we\n // have a non-zero number of selected rows that batch actions could\n // still apply to\n shouldShowBatchActions: !row.isSelected || selectedRowsCount > 0,\n rowsById: _objectSpread(_objectSpread({}, state.rowsById), {}, _defineProperty({}, rowId, _objectSpread(_objectSpread({}, row), {}, {\n isSelected: !row.isSelected\n })))\n };\n });\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnExpandRow\", function (rowId) {\n return function () {\n _this.setState(function (state) {\n var row = state.rowsById[rowId];\n var isExpandedAll = state.isExpandedAll;\n return {\n isExpandedAll: row.isExpanded ? false : isExpandedAll,\n rowsById: _objectSpread(_objectSpread({}, state.rowsById), {}, _defineProperty({}, rowId, _objectSpread(_objectSpread({}, row), {}, {\n isExpanded: !row.isExpanded\n })))\n };\n });\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnExpandAll\", function () {\n _this.setState(function (state) {\n var rowIds = state.rowIds,\n isExpandedAll = state.isExpandedAll;\n return {\n isExpandedAll: !isExpandedAll,\n rowsById: rowIds.reduce(function (acc, id) {\n return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, id, _objectSpread(_objectSpread({}, state.rowsById[id]), {}, {\n isExpanded: !isExpandedAll\n })));\n }, {})\n };\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleSortBy\", function (headerKey) {\n return function () {\n _this.setState(function (state) {\n return getNextSortState(_this.props, state, {\n key: headerKey\n });\n });\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOnInputValueChange\", function (event, defaultValue) {\n if (event.target) {\n _this.setState({\n filterInputValue: event.target.value\n });\n }\n\n if (defaultValue) {\n _this.setState({\n filterInputValue: defaultValue\n });\n }\n });\n\n _this.state = _objectSpread(_objectSpread({}, getDerivedStateFromProps(_props, {})), {}, {\n isExpandedAll: false // Start with collapsed state, treat `undefined` as neutral state\n\n });\n _this.instanceId = getInstanceId();\n return _this;\n }\n\n _createClass(DataTable, [{\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this2 = this;\n\n if (prevProps === this.props) {\n return;\n }\n\n var prevRowIds = prevProps.rows.map(function (row) {\n return row.id;\n });\n var rowIds = this.props.rows.map(function (row) {\n return row.id;\n });\n\n if (!isEqual(prevRowIds, rowIds)) {\n this.setState(function (state) {\n return getDerivedStateFromProps(_this2.props, state);\n });\n return;\n }\n\n var prevHeaders = prevProps.headers.map(function (header) {\n return header.key;\n });\n var headers = this.props.headers.map(function (header) {\n return header.key;\n });\n\n if (!isEqual(prevHeaders, headers)) {\n this.setState(function (state) {\n return getDerivedStateFromProps(_this2.props, state);\n });\n return;\n }\n\n if (!isEqual(prevProps.rows, this.props.rows)) {\n this.setState(function (state) {\n return getDerivedStateFromProps(_this2.props, state);\n });\n return;\n }\n }\n /**\n * Get the props associated with the given header. Mostly used for adding in\n * sorting behavior.\n *\n * @param {object} config\n * @param {string} config.header the header we want the props for\n * @param {Function} config.onClick a custom click handler for the header\n * @param {boolean} config.isSortable\n * @returns {object}\n */\n\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n // eslint-disable-next-line react/prop-types\n var _this$props3 = this.props,\n children = _this$props3.children,\n filterRows = _this$props3.filterRows,\n headers = _this$props3.headers,\n render = _this$props3.render;\n var _this$state3 = this.state,\n filterInputValue = _this$state3.filterInputValue,\n rowIds = _this$state3.rowIds,\n rowsById = _this$state3.rowsById,\n cellsById = _this$state3.cellsById;\n var filteredRowIds = typeof filterInputValue === 'string' ? filterRows({\n rowIds: rowIds,\n headers: headers,\n cellsById: cellsById,\n inputValue: filterInputValue,\n getCellId: getCellId\n }) : rowIds;\n var renderProps = {\n // Data derived from state\n rows: denormalize(filteredRowIds, rowsById, cellsById),\n headers: this.props.headers,\n selectedRows: denormalize(this.getSelectedRows(), rowsById, cellsById),\n // Prop accessors/getters\n getHeaderProps: this.getHeaderProps,\n getExpandHeaderProps: this.getExpandHeaderProps,\n getRowProps: this.getRowProps,\n getSelectionProps: this.getSelectionProps,\n getToolbarProps: this.getToolbarProps,\n getBatchActionProps: this.getBatchActionProps,\n getTableProps: this.getTableProps,\n getTableContainerProps: this.getTableContainerProps,\n // Custom event handlers\n onInputChange: this.handleOnInputValueChange,\n // Expose internal state change actions\n sortBy: function sortBy(headerKey) {\n return _this3.handleSortBy(headerKey)();\n },\n selectAll: this.handleSelectAll,\n selectRow: function selectRow(rowId) {\n return _this3.handleOnSelectRow(rowId)();\n },\n expandRow: function expandRow(rowId) {\n return _this3.handleOnExpandRow(rowId)();\n },\n expandAll: this.handleOnExpandAll,\n radio: this.props.radio\n };\n\n if (render !== undefined) {\n return render(renderProps);\n }\n\n if (children !== undefined) {\n return children(renderProps);\n }\n\n return null;\n }\n }]);\n\n return DataTable;\n}(React.Component);\n\n_defineProperty(DataTable, \"propTypes\", {\n /**\n * Optional hook to manually control filtering of the rows from the\n * TableToolbarSearch component\n */\n filterRows: PropTypes.func,\n\n /**\n * The `headers` prop represents the order in which the headers should\n * appear in the table. We expect an array of objects to be passed in, where\n * `key` is the name of the key in a row object, and `header` is the name of\n * the header.\n */\n headers: PropTypes.arrayOf(PropTypes.shape({\n key: PropTypes.string.isRequired,\n header: PropTypes.node.isRequired\n })).isRequired,\n\n /**\n * Specify whether the table should be able to be sorted by its headers\n */\n isSortable: PropTypes.bool,\n\n /**\n * Provide a string for the current locale\n */\n locale: PropTypes.string,\n\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n overflowMenuOnHover: PropTypes.bool,\n\n /**\n * Specify whether the control should be a radio button or inline checkbox\n */\n radio: PropTypes.bool,\n\n /**\n * The `rows` prop is where you provide us with a list of all the rows that\n * you want to render in the table. The only hard requirement is that this\n * is an array of objects, and that each object has a unique `id` field\n * available on it.\n */\n rows: PropTypes.arrayOf(PropTypes.shape({\n id: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n isSelected: PropTypes.bool,\n isExpanded: PropTypes.bool\n })).isRequired,\n\n /**\n * `false` If true, will remove the table border\n */\n shouldShowBorder: PropTypes.bool,\n\n /**\n * Change the row height of table. Currently supports `xs`, `sm`, `md`, `lg`, and `xl`.\n */\n size: FeatureFlags.enabled('enable-v11-release') ? PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']) : PropTypes.oneOf(['compact', 'short', 'normal', 'tall', 'xs', 'sm', 'md', 'lg', 'xl']),\n\n /**\n * Optional hook to manually control sorting of the rows.\n */\n sortRow: PropTypes.func,\n\n /**\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n stickyHeader: PropTypes.bool,\n\n /**\n * Optional method that takes in a message id and returns an\n * internationalized string. See `DataTable.translationKeys` for all\n * available message ids.\n */\n translateWithId: PropTypes.func,\n\n /**\n * `false` If true, will use a width of 'auto' instead of 100%\n */\n useStaticWidth: PropTypes.bool,\n\n /**\n * `true` to add useZebraStyles striping.\n */\n useZebraStyles: PropTypes.bool\n});\n\n_defineProperty(DataTable, \"defaultProps\", {\n sortRow: defaultSortRow,\n filterRows: defaultFilterRows,\n locale: 'en',\n size: FeatureFlags.enabled('enable-v11-release') ? 'lg' : 'normal',\n overflowMenuOnHover: true,\n translateWithId: translateWithId\n});\n\n_defineProperty(DataTable, \"translationKeys\", Object.values(translationKeys));\n\nexport { DataTable as default };","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Generic utility to initialize a method that will return a unique instance id\n * for a component.\n */\nvar setupGetInstanceId = function setupGetInstanceId() {\n var instanceId = 0;\n return function getInstanceId() {\n return ++instanceId;\n };\n};\n\nexport default setupGetInstanceId;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Default implementation of how we filter rows internally. The idea behind this\n * implementation is to use the given list of row ids and headers to get the\n * individual cell values for a row. Then, we go through each cell value and see\n * if any of them includes the given inputValue.\n *\n * @param {object} config\n * @param {Array} config.rowIds array of all the row ids in the table\n * @param {Array} config.headers\n * @param {object} config.cellsById object containing a map of cell id to cell\n * @param {string} config.inputValue the current input value in the Table Search\n * @param {Function} config.getCellId\n * @returns {Array} rowIds\n */\nexport var defaultFilterRows = function defaultFilterRows(_ref) {\n var rowIds = _ref.rowIds,\n headers = _ref.headers,\n cellsById = _ref.cellsById,\n inputValue = _ref.inputValue,\n getCellId = _ref.getCellId;\n return rowIds.filter(function (rowId) {\n return headers.some(function (_ref2) {\n var key = _ref2.key;\n var id = getCellId(rowId, key);\n\n if (typeof cellsById[id].value === 'boolean') {\n return false;\n }\n\n return ('' + cellsById[id].value).toLowerCase().includes(inputValue.toLowerCase());\n });\n });\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"children\", \"useZebraStyles\", \"size\", \"isSortable\", \"useStaticWidth\", \"shouldShowBorder\", \"stickyHeader\", \"overflowMenuOnHover\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport deprecate from '../../prop-types/deprecate.js';\nimport { usePrefix } from '../../internal/usePrefix';\nexport var Table = function Table(_ref) {\n var _cx;\n\n var className = _ref.className,\n children = _ref.children,\n useZebraStyles = _ref.useZebraStyles,\n size = _ref.size,\n isSortable = _ref.isSortable,\n useStaticWidth = _ref.useStaticWidth,\n shouldShowBorder = _ref.shouldShowBorder,\n stickyHeader = _ref.stickyHeader,\n overflowMenuOnHover = _ref.overflowMenuOnHover,\n other = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var componentClass = cx(\"\".concat(prefix, \"--data-table\"), className, (_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--data-table--\").concat(size), size), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--sort\"), isSortable), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--zebra\"), useZebraStyles), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--static\"), useStaticWidth), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--no-border\"), !shouldShowBorder), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--sticky-header\"), stickyHeader), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--visible-overflow-menu\"), !overflowMenuOnHover), _cx));\n var table = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--data-table-content\")\n }, /*#__PURE__*/React.createElement(\"table\", _extends({}, other, {\n className: componentClass\n }), children));\n return stickyHeader ? /*#__PURE__*/React.createElement(\"section\", {\n className: \"\".concat(prefix, \"--data-table_inner-container\")\n }, table) : table;\n};\nTable.propTypes = {\n /**\n * Pass in the children that will be rendered within the Table\n */\n children: PropTypes.node,\n className: PropTypes.string,\n\n /**\n * `false` If true, will apply sorting styles\n */\n isSortable: PropTypes.bool,\n\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n overflowMenuOnHover: PropTypes.bool,\n\n /**\n * `false` If true, will remove the table border\n */\n shouldShowBorder: deprecate(PropTypes.bool, 'The `shouldShowBorder` prop has been deprecated and can be safely removed.' + 'This prop will be removed in the next major release of ' + '`carbon-components-react`'),\n\n /**\n * Change the row height of table. Currently supports `xs`, `sm`, `md`, `lg`, and `xl`.\n */\n size: FeatureFlags.enabled('enable-v11-release') ? PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']) : PropTypes.oneOf(['compact', 'short', 'normal', 'tall', 'xs', 'sm', 'md', 'lg', 'xl']),\n\n /**\n * `false` If true, will keep the header sticky (only data rows will scroll)\n */\n stickyHeader: PropTypes.bool,\n\n /**\n * `false` If true, will use a width of 'auto' instead of 100%\n */\n useStaticWidth: PropTypes.bool,\n\n /**\n * `true` to add useZebraStyles striping.\n */\n useZebraStyles: PropTypes.bool\n};\nTable.defaultProps = {\n isSortable: false,\n overflowMenuOnHover: true\n};\nexport default Table;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\n\nvar wrapComponent = function wrapComponent(_ref) {\n var name = _ref.name,\n className = _ref.className,\n type = _ref.type;\n\n var Component = function Component(_ref2) {\n var baseClassName = _ref2.className,\n other = _objectWithoutProperties(_ref2, _excluded);\n\n var componentClass = cx(className, baseClassName);\n return /*#__PURE__*/React.createElement(type, _objectSpread(_objectSpread({}, other), {}, {\n // Prevent Weird quirk where `cx` will evaluate to an empty string, '',\n // and so we have empty `class` attributes in the resulting markup\n // eslint-disable-next-line no-extra-boolean-cast\n className: !!componentClass ? componentClass : undefined\n }));\n };\n\n Component.displayName = name;\n Component.propTypes = {\n className: PropTypes.string\n };\n return Component;\n};\n\nexport default wrapComponent;","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-9ecdf98c.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _circle, _path62, _path63, _circle2, _path64, _path65, _circle3, _path66, _path67, _circle4, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _circle5, _path83, _path84, _path85, _path86, _circle6, _path87, _path88, _path89, _path90, _circle7, _path91, _path92, _path93, _path94, _circle8, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _circle9, _circle10, _circle11, _path210, _circle12, _circle13, _circle14, _path211, _circle15, _circle16, _circle17, _path212, _circle18, _circle19, _circle20, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384, _path385, _path386, _path387, _path388, _path389, _path390, _path391, _path392, _path393, _path394, _path395, _path396, _path397, _path398, _path399, _path400, _path401, _path402, _path403, _path404, _path405, _path406;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar WatsonHealth3DCursor32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor32(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursor24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor24(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursor20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor20(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursor16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursor16(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 4L4 4 4 13.01 6 13.01 6 6 13 6 13 4zM29.49 13.12l-9-5a1 1 0 00-1 0l-9 5A1 1 0 0010 14V24a1 1 0 00.52.87l9 5A1 1 0 0020 30a1.05 1.05 0 00.49-.13l9-5A1 1 0 0030 24V14A1 1 0 0029.49 13.12zM19 27.3l-7-3.89V15.69l7 3.89zm1-9.45L13.06 14 20 10.14 26.94 14zm8 5.56L21 27.3V19.58l7-3.89z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt32(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt24(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt20(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCursorAlt16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCursorAlt16(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 7H17V14H15zM7 15H14V17H7zM15 18H17V25H15zM18 15H25V17H18z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon32(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon24(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon20(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoColon16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoColon16(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.5,8H20.1a5,5,0,1,0,0-2H9.5a5.5,5.5,0,0,0,0,11h11a3.5,3.5,0,0,1,0,7H11.9a5,5,0,1,0,0,2h8.6a5.5,5.5,0,0,0,0-11H9.5a3.5,3.5,0,0,1,0-7ZM25,4a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels32(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels24(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels20(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveAutoVessels16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveAutoVessels16(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11a3,3,0,0,1,3-3h.1a5,5,0,1,0,0-2H20a5,5,0,0,0-5,5v1H13a3,3,0,0,1-3-3V7A5,5,0,0,0,5,2H4V4H5A3,3,0,0,1,8,7V9a5,5,0,0,0,5,5h2v7a3,3,0,0,1-3,3h-.1a5,5,0,1,0,0,2H12a5,5,0,0,0,5-5h2.5A2.5,2.5,0,0,1,22,23.5,4.51,4.51,0,0,0,26.5,28H28V26H26.5A2.5,2.5,0,0,1,24,23.5,4.51,4.51,0,0,0,19.5,19H17Zm8-7a3,3,0,1,1-3,3A3,3,0,0,1,25,4ZM7,28a3,3,0,1,1,3-3A3,3,0,0,1,7,28Z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual32(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual24(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual20(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DCurveManual16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DCurveManual16(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21a3 3 0 01-3 3h-.1a5 5 0 100 2H12a5 5 0 005-5zM7 28a3 3 0 113-3A3 3 0 017 28zM15 13H17V19H15zM25 2a5 5 0 00-4.9 4H20a5 5 0 00-5 5h2a3 3 0 013-3h.1A5 5 0 1025 2zm0 8a3 3 0 113-3A3 3 0 0125 10z\"\n })), children);\n});\nvar WatsonHealth3DICa32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa32(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DICa24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa24(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DICa20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa20(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DICa16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DICa16(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 14H10a2 2 0 01-2-2V4a2 2 0 01.59-1.42A3.57 3.57 0 0110 2h5V4H10v8h5zM4 6H6V14H4zM4 2H6V4H4zM27.45 19.11l-6-3a1 1 0 00-.9 0l-6 3A1 1 0 0014 20v7a1 1 0 00.55.89l6 3a1 1 0 00.9 0l6-3A1 1 0 0028 27V20A1 1 0 0027.45 19.11zm-6.45-1L24.76 20 21 21.88 17.24 20zm-5 3.5l4 2v4.76l-4-2zm6 6.76V23.62l4-2v4.76zM23 2H19a2 2 0 00-2 2V14h2V10h4v4h2V4A2 2 0 0023 2zM19 8V4h4V8z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle32(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle24(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle20(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DMprToggle16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DMprToggle16(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 2L2 2 2 11 4 11 4 4 11 4 11 2zM2 21L2 30 11 30 11 28 4 28 4 21 2 21zM30 11L30 2 21 2 21 4 28 4 28 11 30 11zM21 30L30 30 30 21 28 21 28 28 21 28 21 30zM25.49 10.13l-9-5a1 1 0 00-1 0l-9 5A1 1 0 006 11V21a1 1 0 00.51.87l9 5a1 1 0 001 0l9-5A1 1 0 0026 21V11A1 1 0 0025.49 10.13zM16 7.14L22.94 11 16 14.86 9.06 11zM8 12.7l7 3.89V24.3L8 20.41zm9 11.6V16.59l7-3.89v7.71z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh32(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh24(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh20(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DPrintMesh16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DPrintMesh16(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9761,15.7832l-2-9a.9992.9992,0,0,0-.4214-.6152l-6-4A1.0008,1.0008,0,0,0,21,2H11a1.0008,1.0008,0,0,0-.5547.168l-6,4a.9992.9992,0,0,0-.4214.6152l-2,9a1.0019,1.0019,0,0,0,.0181.5039l3,10a1,1,0,0,0,.6709.6709l10,3,.0051.0005a.9789.9789,0,0,0,.564,0l.0051-.0005,10-3a1,1,0,0,0,.6709-.6709l3-10A1.0019,1.0019,0,0,0,29.9761,15.7832Zm-19.05.833L7.0168,8.7974l7.2815,2.6479ZM16,12.4971,19.5889,18H12.4111ZM19.3818,20,16,26.7637,12.6182,20Zm-1.68-8.5547,7.2815-2.6479-3.91,7.8188ZM18.19,9.14l3.0961-4.747,3.5152,2.3432ZM16,8.8364,12.8459,4h6.3082Zm-2.19.3032L7.1992,6.7358l3.5152-2.3432Zm-4.8439,8.03-4.802-1.8007L5.3652,9.9668ZM14.07,27.377,7.5679,25.4263l3.1284-4.7969Zm7.2334-6.7476,3.1284,4.7969L17.93,27.377ZM26.6348,9.9668l1.2006,5.4019-4.802,1.8007ZM4.5374,17.6445l4.5944,1.7227L6.3391,23.65ZM25.6609,23.65l-2.7927-4.2827,4.5944-1.7227Z\"\n })), children);\n});\nvar WatsonHealth3DSoftware32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware32(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3DSoftware24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware24(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3DSoftware20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware20(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3DSoftware16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3DSoftware16(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.49 13.1151l-9-5a1 1 0 00-1 0l-9 5A1.0078 1.0078 0 002 14v9.9951a1 1 0 00.52.87l9 5A1.0045 1.0045 0 0012 30a1.0559 1.0559 0 00.49-.1349l9-5A.9923.9923 0 0022 24V14A1.0079 1.0079 0 0021.49 13.1151zM11 27.2951l-7-3.89v-7.72l7 3.89zm1-9.45L5.06 14 12 10.1351l6.94 3.86zm8 5.56l-7 3.89v-7.72l7-3.89zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected32 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected32(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected24 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected24(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected20 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected20(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar WatsonHealth3rdPartyConnected16 = /*#__PURE__*/React.forwardRef(function WatsonHealth3rdPartyConnected16(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,22a3.86,3.86,0,0,0-2,.57l-3.09-3.1a6,6,0,0,0,0-6.94L24,9.43A3.86,3.86,0,0,0,26,10a4,4,0,1,0-4-4,3.86,3.86,0,0,0,.57,2l-3.1,3.09a6,6,0,0,0-6.94,0L9.43,8A3.86,3.86,0,0,0,10,6a4,4,0,1,0-4,4,3.86,3.86,0,0,0,2-.57l3.09,3.1a6,6,0,0,0,0,6.94L8,22.57A3.86,3.86,0,0,0,6,22a4,4,0,1,0,4,4,3.86,3.86,0,0,0-.57-2l3.1-3.09a6,6,0,0,0,6.94,0L22.57,24A3.86,3.86,0,0,0,22,26a4,4,0,1,0,4-4ZM16,20a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z\"\n })), children);\n});\nvar _4K32 = /*#__PURE__*/React.forwardRef(function _4K32(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4K24 = /*#__PURE__*/React.forwardRef(function _4K24(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4K20 = /*#__PURE__*/React.forwardRef(function _4K20(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4K16 = /*#__PURE__*/React.forwardRef(function _4K16(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 11.03L12 15.03 10 15.03 10 11.03 8 11.03 8 17.03 12 17.03 12 21.03 14 21.03 14 11.03 12 11.03zM24.19 11.03L22 11.03 19 15.42 19 11.03 17 11.03 17 21.03 19 21.03 19 18.3 19.91 16.97 22 21.03 24.19 21.03 21.2 15.41 24.19 11.03z\"\n })), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar _4KFilled32 = /*#__PURE__*/React.forwardRef(function _4KFilled32(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar _4KFilled24 = /*#__PURE__*/React.forwardRef(function _4KFilled24(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar _4KFilled20 = /*#__PURE__*/React.forwardRef(function _4KFilled20(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar _4KFilled16 = /*#__PURE__*/React.forwardRef(function _4KFilled16(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM14,21H12V17H8V11h2v4h2V11h2Zm10.19,0H22l-2.09-4.06L19,18.27V21H17V11h2v4.39L22,11h2.19l-3,4.38Z\"\n })), children);\n});\nvar Accessibility32 = /*#__PURE__*/React.forwardRef(function Accessibility32(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar Accessibility24 = /*#__PURE__*/React.forwardRef(function Accessibility24(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar Accessibility20 = /*#__PURE__*/React.forwardRef(function Accessibility20(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar Accessibility16 = /*#__PURE__*/React.forwardRef(function Accessibility16(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.55 26.11L26.5 27.63 23.66 21H15a2 2 0 01-2-2V13a2 2 0 014 0v4h7V15H19V13a4 4 0 00-8 0v1a9 9 0 108.77 11H17.71A7 7 0 1111 16v3a4 4 0 004 4h7.34l3.16 7.37 4.95-2.48zM15.5 8A3.5 3.5 0 1119 4.5 3.5 3.5 0 0115.5 8zm0-5A1.5 1.5 0 1017 4.5 1.5 1.5 0 0015.5 3z\"\n })), children);\n});\nvar AccessibilityAlt32 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt32(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityAlt24 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt24(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityAlt20 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt20(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityAlt16 = /*#__PURE__*/React.forwardRef(function AccessibilityAlt16(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 14L23 12 9 12 9 14 14 14 14 16.734 10.132 23.504 11.868 24.496 15.58 18 16.42 18 20.132 24.496 21.868 23.504 18 16.734 18 14 23 14z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor32 = /*#__PURE__*/React.forwardRef(function AccessibilityColor32(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor24 = /*#__PURE__*/React.forwardRef(function AccessibilityColor24(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor20 = /*#__PURE__*/React.forwardRef(function AccessibilityColor20(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColor16 = /*#__PURE__*/React.forwardRef(function AccessibilityColor16(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AccessibilityColorFilled32 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled32(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar AccessibilityColorFilled24 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled24(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar AccessibilityColorFilled20 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled20(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar AccessibilityColorFilled16 = /*#__PURE__*/React.forwardRef(function AccessibilityColorFilled16(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,10a8.5975,8.5975,0,0,0-7.9648,6A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Z\"\n })), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,22a10.6543,10.6543,0,0,1-9.97-7.7578L5.9692,16l.0606-.2422A10.6543,10.6543,0,0,1,16,8a10.6543,10.6543,0,0,1,9.97,7.7578L26.0308,16l-.0606.2422A10.6543,10.6543,0,0,1,16,24Z\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,20a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,20Zm0-6a2,2,0,1,0,2,2A2.0021,2.0021,0,0,0,16,14Z\"\n })), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16,24a10.6547,10.6547,0,0,1-9.97-7.7576L5.9692,16l.0606-.2424A10.6547,10.6547,0,0,1,16,8a10.6547,10.6547,0,0,1,9.97,7.7576L26.0308,16l-.0606.2424A10.6547,10.6547,0,0,1,16,24ZM8.0352,16A8.5975,8.5975,0,0,0,16,22a8.5975,8.5975,0,0,0,7.9648-6A8.5975,8.5975,0,0,0,16,10,8.5975,8.5975,0,0,0,8.0352,16Z\"\n })), children);\n});\nvar Account32 = /*#__PURE__*/React.forwardRef(function Account32(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar Account24 = /*#__PURE__*/React.forwardRef(function Account24(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar Account20 = /*#__PURE__*/React.forwardRef(function Account20(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar Account16 = /*#__PURE__*/React.forwardRef(function Account16(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,14H19v2H8Zm0,5H21v2H8Z\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V8H4V6ZM4,26V10H28V26Z\"\n })), children);\n});\nvar AccumulationIce32 = /*#__PURE__*/React.forwardRef(function AccumulationIce32(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationIce24 = /*#__PURE__*/React.forwardRef(function AccumulationIce24(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationIce20 = /*#__PURE__*/React.forwardRef(function AccumulationIce20(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationIce16 = /*#__PURE__*/React.forwardRef(function AccumulationIce16(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 8L22 16 23 18 24 16 24 8 22 8zM18 8L18 18 19 20 20 18 20 8 18 8z\"\n })), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h8v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation32 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation32(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation24 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation24(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation20 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation20(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationPrecipitation16 = /*#__PURE__*/React.forwardRef(function AccumulationPrecipitation16(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 16H18V18H16zM18 18H20V20H18zM20 20H22V22H20zM20 16H22V18H20zM16 20H18V22H16zM20 12a3.8978 3.8978 0 01-4-3.777 3.9017 3.9017 0 01.6533-2.0639L19.17 2.4141a1.0381 1.0381 0 011.6592 0L23.3154 6.11A3.9693 3.9693 0 0124 8.223 3.8978 3.8978 0 0120 12zm0-7.2368L18.3438 7.2257A1.89 1.89 0 0018 8.223 1.9 1.9 0 0020 10a1.9 1.9 0 002-1.777 1.98 1.98 0 00-.375-1.0466z\"\n })), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V10H8v8l1,2,1-2V10h2v4l1,2,1-2V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationRain32 = /*#__PURE__*/React.forwardRef(function AccumulationRain32(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationRain24 = /*#__PURE__*/React.forwardRef(function AccumulationRain24(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationRain20 = /*#__PURE__*/React.forwardRef(function AccumulationRain20(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationRain16 = /*#__PURE__*/React.forwardRef(function AccumulationRain16(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V8H24a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,5a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,8a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,5a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4ZM6,26V22h4V20H6V16h4V14H6V10H8a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,10h2V26Z\"\n })), children);\n});\nvar AccumulationSnow32 = /*#__PURE__*/React.forwardRef(function AccumulationSnow32(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationSnow24 = /*#__PURE__*/React.forwardRef(function AccumulationSnow24(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationSnow20 = /*#__PURE__*/React.forwardRef(function AccumulationSnow20(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar AccumulationSnow16 = /*#__PURE__*/React.forwardRef(function AccumulationSnow16(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2H14V4H12zM14 4H16V6H14zM16 6H18V8H16zM16 2H18V4H16zM12 6H14V8H12zM14 18H16V20H14zM16 20H18V22H16zM18 22H20V24H18zM18 18H20V20H18zM14 22H16V24H14zM18 10H20V12H18zM20 12H22V14H20zM22 14H24V16H22zM22 10H24V12H22zM18 14H20V16H18z\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4a2.0023,2.0023,0,0,0-2,2V26H6V22h4V20H6V16h4V14H6V10h4V8H6V6A2.0023,2.0023,0,0,0,4,4H2V6H4V26a2.0023,2.0023,0,0,0,2,2H26a2.0023,2.0023,0,0,0,2-2V6h2V4Z\"\n })), children);\n});\nvar Activity32 = /*#__PURE__*/React.forwardRef(function Activity32(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Activity24 = /*#__PURE__*/React.forwardRef(function Activity24(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Activity20 = /*#__PURE__*/React.forwardRef(function Activity20(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Activity16 = /*#__PURE__*/React.forwardRef(function Activity16(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,29a1,1,0,0,1-.92-.62L6.33,17H2V15H7a1,1,0,0,1,.92.62L12,25.28,20.06,3.65A1,1,0,0,1,21,3a1,1,0,0,1,.93.68L25.72,15H30v2H25a1,1,0,0,1-.95-.68L21,7,12.94,28.35A1,1,0,0,1,12,29Z\"\n })), children);\n});\nvar Add32 = /*#__PURE__*/React.forwardRef(function Add32(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar Add24 = /*#__PURE__*/React.forwardRef(function Add24(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar Add20 = /*#__PURE__*/React.forwardRef(function Add20(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar Add16 = /*#__PURE__*/React.forwardRef(function Add16(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z\"\n })), children);\n});\nvar AddAlt32 = /*#__PURE__*/React.forwardRef(function AddAlt32(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddAlt24 = /*#__PURE__*/React.forwardRef(function AddAlt24(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddAlt20 = /*#__PURE__*/React.forwardRef(function AddAlt20(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddAlt16 = /*#__PURE__*/React.forwardRef(function AddAlt16(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14\\tS23.7,2,16,2z\"\n })), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z\"\n })), children);\n});\nvar AddFilled32 = /*#__PURE__*/React.forwardRef(function AddFilled32(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddFilled24 = /*#__PURE__*/React.forwardRef(function AddFilled24(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddFilled20 = /*#__PURE__*/React.forwardRef(function AddFilled20(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddFilled16 = /*#__PURE__*/React.forwardRef(function AddFilled16(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z\"\n })), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar AddComment32 = /*#__PURE__*/React.forwardRef(function AddComment32(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AddComment24 = /*#__PURE__*/React.forwardRef(function AddComment24(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AddComment20 = /*#__PURE__*/React.forwardRef(function AddComment20(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AddComment16 = /*#__PURE__*/React.forwardRef(function AddComment16(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z\"\n })), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 9L15 9 15 13 11 13 11 15 15 15 15 19 17 19 17 15 21 15 21 13 17 13 17 9z\"\n })), children);\n});\nvar AgricultureAnalytics32 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics32(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar AgricultureAnalytics24 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics24(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar AgricultureAnalytics20 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics20(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar AgricultureAnalytics16 = /*#__PURE__*/React.forwardRef(function AgricultureAnalytics16(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.251 21.3691l2.1943 1.4629A1 1 0 0027.8 22.6l3-4-1.6-1.2-2.4326 3.2437L24.5547 19.168a1 1 0 00-1.3687.2509L20 23.8789V16H18V26a2.0023 2.0023 0 002 2H30V26H20.9434zM2 21H16V23H2zM2 26H16V28H2zM11 16V11h1a4.0046 4.0046 0 004-4V4H13a3.9782 3.9782 0 00-2.7468 1.1066A6.0033 6.0033 0 005 2H2V5a6.0066 6.0066 0 006 6H9v5H2v2H16V16zM13 6h1V7a2.002 2.002 0 01-2 2H11V8A2.0019 2.0019 0 0113 6zM8 9A4.0046 4.0046 0 014 5V4H5A4.0045 4.0045 0 019 8V9z\"\n })), children);\n});\nvar WatsonHealthAiResults32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults32(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResults24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults24(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResults20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults20(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResults16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResults16(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 8a5.9908 5.9908 0 009.4712 4.8853L28.586 16 30 14.586l-3.115-3.1148A5.997 5.997 0 1016 8zm2 0a4 4 0 114 4A4.0045 4.0045 0 0118 8zM11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0055 8.0055 0 016-7.7373L13.6138 2.3A10.0088 10.0088 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.0493 16a9.5991 9.5991 0 01-1.8716 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857a10.9664 10.9664 0 002.3686-2.8331z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh32(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh24(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh20(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsHigh16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsHigh16(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.9279 7.9279 0 013.69.9106l.8958-1.791A9.99 9.99 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4zM29 14H19a1 1 0 01-.8945-1.4473l5-10a1 1 0 011.7888 0l5 10A1 1 0 0129 14zm-8.3818-2h6.7636L24 5.2361z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow32(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow24(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow20(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsLow16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsLow16(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM24 14a6 6 0 116-6A6.0067 6.0067 0 0124 14zM24 4a4 4 0 104 4A4.0045 4.0045 0 0024 4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium32(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium24(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium20(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsMedium16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsMedium16(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM28 14H20a2.0021 2.0021 0 01-2-2V4a2.0021 2.0021 0 012-2h8a2.0021 2.0021 0 012 2v8A2.0021 2.0021 0 0128 14zM20 4v8h8V4zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent32(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent24(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent20(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsUrgent16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsUrgent16(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM20 2H22V9H20zM21 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0021 11zM26 2H28V9H26zM27 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0027 11zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh32(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh24(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh20(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiResultsVeryHigh16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiResultsVeryHigh16(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 2H26V9H24zM25 11a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0025 11zM11 24H21V26H11zM13 28H19V30H13zM23.0488 16a9.6136 9.6136 0 01-1.8711 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9886 9.9886 0 0025.2815 16zM16 4a7.94 7.94 0 014 1.0825V2.8408A9.9887 9.9887 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2c0-1.84-1.1108-2.8662-2.1855-3.8594A7.1851 7.1851 0 018 12 8.0092 8.0092 0 0116 4z\"\n })), children);\n});\nvar WatsonHealthAiStatus32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus32(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatus24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus24(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatus20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus20(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatus16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatus16(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM20 14a1 1 0 01-.8945-.5527L17.3818 10H14V8h4a1 1 0 01.8945.5527L20 10.7639l3.1055-6.2112a1.0416 1.0416 0 011.789 0L26.6182 8H30v2H26a1 1 0 01-.8945-.5527L24 7.2361l-3.1055 6.2112A1 1 0 0120 14z\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.8145,18.1406A7.1851,7.1851,0,0,1,8,12a8.0092,8.0092,0,0,1,8-8V2A10.0111,10.0111,0,0,0,6,12a9.1793,9.1793,0,0,0,3.46,7.6162C10.4717,20.5508,11,21.0815,11,22h2C13,20.16,11.8892,19.1338,10.8145,18.1406Z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete32(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete24(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete20(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusComplete16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusComplete16(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21 9.59L17.41 6 16 7.41 21 12.41 30 3.41 28.59 2 21 9.59zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed32(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed24(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed20(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusFailed16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusFailed16(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.8 14a7.28 7.28 0 01-2.6219 4.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.1426 9.1426 0 0025.8389 14zM30 3.41L28.59 2 25 5.59 21.41 2 20 3.41 23.59 7 20 10.59 21.41 12 25 8.41 28.59 12 30 10.59 26.41 7 30 3.41z\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress32(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress24(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress20(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusInProgress16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusInProgress16(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426z\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"18.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"28.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23.5\",\n cy: \"7.5\",\n r: \"1.5\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued32(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued24(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued20(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusQueued16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusQueued16(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM21.1777 18.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12H24A7.2032 7.2032 0 0121.1777 18.1426zM18 6H28V8H18z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected32 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected32(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected24 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected24(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected20 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected20(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar WatsonHealthAiStatusRejected16 = /*#__PURE__*/React.forwardRef(function WatsonHealthAiStatusRejected16(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 24H21V26H11zM13 28H19V30H13zM10.8145 18.1406A7.1851 7.1851 0 018 12a8.0092 8.0092 0 018-8V2A10.0111 10.0111 0 006 12a9.1793 9.1793 0 003.46 7.6162C10.4717 20.5508 11 21.0815 11 22h2C13 20.16 11.8892 19.1338 10.8145 18.1406zM23.04 16a9.4858 9.4858 0 01-1.8623 2.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.9838 9.9838 0 0025.2756 16zM30 8a6 6 0 10-6 6A6.0066 6.0066 0 0030 8zM28 8a3.9521 3.9521 0 01-.5669 2.019L21.981 4.5669A3.9529 3.9529 0 0124 4 4.0045 4.0045 0 0128 8zM20 8a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 12 4.0045 4.0045 0 0120 8z\"\n })), children);\n});\nvar AirlineDigitalGate32 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate32(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineDigitalGate24 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate24(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineDigitalGate20 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate20(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineDigitalGate16 = /*#__PURE__*/React.forwardRef(function AirlineDigitalGate16(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0058 5.0058 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM31.9658 11.7413a1.0007 1.0007 0 00-1.2246-.707l-3.0861.826L24 7l-1 .2676 1.4584 5.4483-2.7663.7405L20 11.2066l-1 .2676.9337 3.4883a.9993.9993 0 001.2246.707l10.1005-2.7036A1 1 0 0031.9658 11.7413z\"\n })), children);\n});\nvar AirlineManageGates32 = /*#__PURE__*/React.forwardRef(function AirlineManageGates32(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlineManageGates24 = /*#__PURE__*/React.forwardRef(function AirlineManageGates24(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlineManageGates20 = /*#__PURE__*/React.forwardRef(function AirlineManageGates20(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlineManageGates16 = /*#__PURE__*/React.forwardRef(function AirlineManageGates16(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM22 4L22 6 26.586 6 20 12.586 21.414 14 28 7.414 28 12 30 12 30 4 22 4z\"\n })), children);\n});\nvar AirlinePassengerCare32 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare32(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlinePassengerCare24 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare24(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlinePassengerCare20 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare20(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlinePassengerCare16 = /*#__PURE__*/React.forwardRef(function AirlinePassengerCare16(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM27.303 8a2.6616 2.6616 0 00-1.9079.8058L25 9.2112l-.3951-.4054a2.6615 2.6615 0 00-3.8157 0 2.7992 2.7992 0 000 3.8964L25 17l4.2108-4.2978a2.7992 2.7992 0 000-3.8964A2.6616 2.6616 0 0027.303 8z\"\n })), children);\n});\nvar AirlineRapidBoard32 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard32(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar AirlineRapidBoard24 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard24(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar AirlineRapidBoard20 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard20(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar AirlineRapidBoard16 = /*#__PURE__*/React.forwardRef(function AirlineRapidBoard16(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 23H16V21a3.0033 3.0033 0 00-3-3H9a3.0033 3.0033 0 00-3 3v2H4V21a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM11 6A3 3 0 118 9a3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0011 4zM2 26H30V28H2zM30 8L28 8 28 6 26 6 26 4 30 4 30 8zM19 4L23 4 23 6 21 6 21 8 19 8 19 4zM28 13H30V15H28zM26 11H28V13H26zM19 11L21 11 21 13 23 13 23 15 19 15 19 11z\"\n })), children);\n});\nvar Airplay32 = /*#__PURE__*/React.forwardRef(function Airplay32(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30ZM10.92,28H21.08L16,20.7439Z\"\n })), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar Airplay24 = /*#__PURE__*/React.forwardRef(function Airplay24(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30ZM10.92,28H21.08L16,20.7439Z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar Airplay20 = /*#__PURE__*/React.forwardRef(function Airplay20(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30ZM10.92,28H21.08L16,20.7439Z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar Airplay16 = /*#__PURE__*/React.forwardRef(function Airplay16(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30ZM10.92,28H21.08L16,20.7439Z\"\n })), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar AirplayFilled32 = /*#__PURE__*/React.forwardRef(function AirplayFilled32(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30Z\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar AirplayFilled24 = /*#__PURE__*/React.forwardRef(function AirplayFilled24(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30Z\"\n })), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar AirplayFilled20 = /*#__PURE__*/React.forwardRef(function AirplayFilled20(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30Z\"\n })), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar AirplayFilled16 = /*#__PURE__*/React.forwardRef(function AirplayFilled16(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.9961,30H9.0039a1.0022,1.0022,0,0,1-.821-1.5769l6.9977-9.9965a1,1,0,0,1,1.6388,0l6.9977,9.9965A1.0022,1.0022,0,0,1,22.9961,30Z\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,24H24V22h4V6H4V22H8v2H4a2.0021,2.0021,0,0,1-2-2V6A2.0021,2.0021,0,0,1,4,4H28a2.0021,2.0021,0,0,1,2,2V22A2.0021,2.0021,0,0,1,28,24Z\"\n })), children);\n});\nvar Airport_0132 = /*#__PURE__*/React.forwardRef(function Airport_0132(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0124 = /*#__PURE__*/React.forwardRef(function Airport_0124(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0120 = /*#__PURE__*/React.forwardRef(function Airport_0120(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0116 = /*#__PURE__*/React.forwardRef(function Airport_0116(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,14.5,23,17V15l-6-3V9a1,1,0,0,0-2,0v3L9,15v2l6-2.5V20l-3,2v1l4-1,4,1V22l-3-2Z\"\n })), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0232 = /*#__PURE__*/React.forwardRef(function Airport_0232(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0224 = /*#__PURE__*/React.forwardRef(function Airport_0224(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0220 = /*#__PURE__*/React.forwardRef(function Airport_0220(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Airport_0216 = /*#__PURE__*/React.forwardRef(function Airport_0216(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,17H19.4141L16,13H14l2.5859,4H10.7207L9.5,15H8l1.0569,3.3046A1,1,0,0,0,10.0094,19H23a1,1,0,0,0,0-2Z\"\n })), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar AirportLocation32 = /*#__PURE__*/React.forwardRef(function AirportLocation32(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar AirportLocation24 = /*#__PURE__*/React.forwardRef(function AirportLocation24(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar AirportLocation20 = /*#__PURE__*/React.forwardRef(function AirportLocation20(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar AirportLocation16 = /*#__PURE__*/React.forwardRef(function AirportLocation16(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15h-6.07A8.0076,8.0076,0,0,0,17,8.0693V2H15V8.0693A8.0076,8.0076,0,0,0,8.07,15H2v2H8.07A8.0076,8.0076,0,0,0,15,23.9307V30h2V23.9307A8.0076,8.0076,0,0,0,23.9305,17H30ZM16,22a6,6,0,1,1,6-6A6.0066,6.0066,0,0,1,16,22Z\"\n })), children);\n});\nvar Alarm32 = /*#__PURE__*/React.forwardRef(function Alarm32(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar Alarm24 = /*#__PURE__*/React.forwardRef(function Alarm24(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar Alarm20 = /*#__PURE__*/React.forwardRef(function Alarm20(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar Alarm16 = /*#__PURE__*/React.forwardRef(function Alarm16(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.59 21L15 17.41 15 11 17 11 17 16.58 20 19.59 18.59 21z\"\n })), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), children);\n});\nvar AlarmAdd32 = /*#__PURE__*/React.forwardRef(function AlarmAdd32(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmAdd24 = /*#__PURE__*/React.forwardRef(function AlarmAdd24(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmAdd20 = /*#__PURE__*/React.forwardRef(function AlarmAdd20(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmAdd16 = /*#__PURE__*/React.forwardRef(function AlarmAdd16(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 16L17 16 17 12 15 12 15 16 11 16 11 18 15 18 15 22 17 22 17 18 21 18 21 16z\"\n })), children);\n});\nvar AlarmSubtract32 = /*#__PURE__*/React.forwardRef(function AlarmSubtract32(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlarmSubtract24 = /*#__PURE__*/React.forwardRef(function AlarmSubtract24(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlarmSubtract20 = /*#__PURE__*/React.forwardRef(function AlarmSubtract20(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlarmSubtract16 = /*#__PURE__*/React.forwardRef(function AlarmSubtract16(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28A11,11,0,1,1,27,17,11,11,0,0,1,16,28ZM16,8a9,9,0,1,0,9,9A9,9,0,0,0,16,8Z\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.96 5.5H9.030000000000001V7.5H3.96z\",\n transform: \"rotate(-45.06 6.502 6.497)\"\n })), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 3.96H26.5V9.030000000000001H24.5z\",\n transform: \"rotate(-44.94 25.5 6.498)\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 16H21V18H11z\"\n })), children);\n});\nvar AlignHorizontalCenter32 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter32(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalCenter24 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter24(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalCenter20 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter20(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalCenter16 = /*#__PURE__*/React.forwardRef(function AlignHorizontalCenter16(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,18H17V14h3a2.0025,2.0025,0,0,0,2-2V8a2.0025,2.0025,0,0,0-2-2H17V2H15V6H12a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h3v4H8a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2h7v4h2V26h7a2.0025,2.0025,0,0,0,2-2V20A2.0025,2.0025,0,0,0,24,18ZM12,8h8v4H12ZM24,24H8V20H24Z\"\n })), children);\n});\nvar AlignHorizontalLeft32 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft32(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalLeft24 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft24(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalLeft20 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft20(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalLeft16 = /*#__PURE__*/React.forwardRef(function AlignHorizontalLeft16(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 26H11a2.0023 2.0023 0 01-2-2V20a2.0023 2.0023 0 012-2H26a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0126 26zm0-6.0012L11 20v4H26zM18 14H11a2.0023 2.0023 0 01-2-2V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4A2.0023 2.0023 0 0118 14zm0-6.0012L11 8v4h7zM4 2H6V30H4z\"\n })), children);\n});\nvar AlignHorizontalRight32 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight32(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignHorizontalRight24 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight24(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignHorizontalRight20 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight20(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignHorizontalRight16 = /*#__PURE__*/React.forwardRef(function AlignHorizontalRight16(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 24V20a2.0023 2.0023 0 012-2H21a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H6A2.0023 2.0023 0 014 24zm2 0H21V20L6 19.9988zM12 12V8a2.0023 2.0023 0 012-2h7a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14A2.0023 2.0023 0 0112 12zm2 0h7V8l-7-.0012z\"\n })), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H28V30H26z\",\n transform: \"rotate(-180 27 16)\"\n })), children);\n});\nvar AlignVerticalBottom32 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom32(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalBottom24 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom24(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalBottom20 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom20(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalBottom16 = /*#__PURE__*/React.forwardRef(function AlignVerticalBottom16(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H30V28H2zM24 23H20a2.0023 2.0023 0 01-2-2V14a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 23zm-4-9v7h4.0012L24 14zM12 23H8a2.0023 2.0023 0 01-2-2V6A2.0023 2.0023 0 018 4h4a2.0023 2.0023 0 012 2V21A2.0023 2.0023 0 0112 23zM8 6V21h4.0012L12 6z\"\n })), children);\n});\nvar AlignVerticalCenter32 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter32(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalCenter24 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter24(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalCenter20 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter20(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalCenter16 = /*#__PURE__*/React.forwardRef(function AlignVerticalCenter16(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V12a2.0025,2.0025,0,0,0-2-2H20a2.0025,2.0025,0,0,0-2,2v3H14V8a2.0025,2.0025,0,0,0-2-2H8A2.0025,2.0025,0,0,0,6,8v7H2v2H6v7a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4v3a2.0025,2.0025,0,0,0,2,2h4a2.0025,2.0025,0,0,0,2-2V17h4ZM8,24V8h4l.0012,16Zm12-4V12h4l.0012,8Z\"\n })), children);\n});\nvar AlignVerticalTop32 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop32(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignVerticalTop24 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop24(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignVerticalTop20 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop20(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignVerticalTop16 = /*#__PURE__*/React.forwardRef(function AlignVerticalTop16(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 20H20a2.0023 2.0023 0 01-2-2V11a2.0023 2.0023 0 012-2h4a2.0023 2.0023 0 012 2v7A2.0023 2.0023 0 0124 20zm-4-9v7h4.0012L24 11zM12 28H8a2.0023 2.0023 0 01-2-2V11A2.0023 2.0023 0 018 9h4a2.0023 2.0023 0 012 2V26A2.0023 2.0023 0 0112 28zM8 11V26h4.0012L12 11zM2 4H30V6H2z\"\n })), children);\n});\nvar AlignBoxBottomCenter32 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter32(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomCenter24 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter24(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomCenter20 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter20(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomCenter16 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomCenter16(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 18H22V20H10z\",\n transform: \"rotate(-180 16 19)\"\n })), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 23H20V25H12z\",\n transform: \"rotate(-180 16 24)\"\n })), children);\n});\nvar AlignBoxBottomLeft32 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft32(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomLeft24 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft24(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomLeft20 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft20(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomLeft16 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomLeft16(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 18H20V20H9zM9 23H16V25H9z\"\n })), children);\n});\nvar AlignBoxBottomRight32 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight32(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxBottomRight24 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight24(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxBottomRight20 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight20(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxBottomRight16 = /*#__PURE__*/React.forwardRef(function AlignBoxBottomRight16(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H23V20H12z\",\n transform: \"rotate(-180 17.5 19)\"\n })), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 23H23V25H16z\",\n transform: \"rotate(-180 19.5 24)\"\n })), children);\n});\nvar AlignBoxMiddleCenter32 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter32(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleCenter24 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter24(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path385 || (_path385 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path386 || (_path386 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleCenter20 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter20(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path387 || (_path387 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path388 || (_path388 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path389 || (_path389 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleCenter16 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleCenter16(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path390 || (_path390 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path391 || (_path391 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13H22V15H10z\",\n transform: \"rotate(-180 16 14)\"\n })), _path392 || (_path392 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 18H20V20H12z\",\n transform: \"rotate(-180 16 19)\"\n })), children);\n});\nvar AlignBoxMiddleLeft32 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft32(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path393 || (_path393 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path394 || (_path394 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleLeft24 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft24(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path395 || (_path395 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path396 || (_path396 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleLeft20 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft20(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path397 || (_path397 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path398 || (_path398 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleLeft16 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleLeft16(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path399 || (_path399 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path400 || (_path400 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 13H20V15H9zM9 18H16V20H9z\"\n })), children);\n});\nvar AlignBoxMiddleRight32 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleRight32(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path401 || (_path401 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path402 || (_path402 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H23V15H12z\",\n transform: \"rotate(-180 17.5 14)\"\n })), _path403 || (_path403 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H23V20H16z\",\n transform: \"rotate(-180 19.5 19)\"\n })), children);\n});\nvar AlignBoxMiddleRight24 = /*#__PURE__*/React.forwardRef(function AlignBoxMiddleRight24(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path404 || (_path404 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,6,2H26a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,26,30ZM6,4V28H26V4Z\"\n })), _path405 || (_path405 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H23V15H12z\",\n transform: \"rotate(-180 17.5 14)\"\n })), _path406 || (_path406 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 18H23V20H16z\",\n transform: \"rotate(-180 19.5 19)\"\n })), children);\n});\n\nexport { Accessibility16, Accessibility20, Accessibility24, Accessibility32, AccessibilityAlt16, AccessibilityAlt20, AccessibilityAlt24, AccessibilityAlt32, AccessibilityColor16, AccessibilityColor20, AccessibilityColor24, AccessibilityColor32, AccessibilityColorFilled16, AccessibilityColorFilled20, AccessibilityColorFilled24, AccessibilityColorFilled32, Account16, Account20, Account24, Account32, AccumulationIce16, AccumulationIce20, AccumulationIce24, AccumulationIce32, AccumulationPrecipitation16, AccumulationPrecipitation20, AccumulationPrecipitation24, AccumulationPrecipitation32, AccumulationRain16, AccumulationRain20, AccumulationRain24, AccumulationRain32, AccumulationSnow16, AccumulationSnow20, AccumulationSnow24, AccumulationSnow32, Activity16, Activity20, Activity24, Activity32, Add16, Add20, Add24, Add32, AddAlt16, AddAlt20, AddAlt24, AddAlt32, AddComment16, AddComment20, AddComment24, AddComment32, AddFilled16, AddFilled20, AddFilled24, AddFilled32, AgricultureAnalytics16, AgricultureAnalytics20, AgricultureAnalytics24, AgricultureAnalytics32, AirlineDigitalGate16, AirlineDigitalGate20, AirlineDigitalGate24, AirlineDigitalGate32, AirlineManageGates16, AirlineManageGates20, AirlineManageGates24, AirlineManageGates32, AirlinePassengerCare16, AirlinePassengerCare20, AirlinePassengerCare24, AirlinePassengerCare32, AirlineRapidBoard16, AirlineRapidBoard20, AirlineRapidBoard24, AirlineRapidBoard32, Airplay16, Airplay20, Airplay24, Airplay32, AirplayFilled16, AirplayFilled20, AirplayFilled24, AirplayFilled32, AirportLocation16, AirportLocation20, AirportLocation24, AirportLocation32, Airport_0116, Airport_0120, Airport_0124, Airport_0132, Airport_0216, Airport_0220, Airport_0224, Airport_0232, Alarm16, Alarm20, Alarm24, Alarm32, AlarmAdd16, AlarmAdd20, AlarmAdd24, AlarmAdd32, AlarmSubtract16, AlarmSubtract20, AlarmSubtract24, AlarmSubtract32, AlignBoxBottomCenter16, AlignBoxBottomCenter20, AlignBoxBottomCenter24, AlignBoxBottomCenter32, AlignBoxBottomLeft16, AlignBoxBottomLeft20, AlignBoxBottomLeft24, AlignBoxBottomLeft32, AlignBoxBottomRight16, AlignBoxBottomRight20, AlignBoxBottomRight24, AlignBoxBottomRight32, AlignBoxMiddleCenter16, AlignBoxMiddleCenter20, AlignBoxMiddleCenter24, AlignBoxMiddleCenter32, AlignBoxMiddleLeft16, AlignBoxMiddleLeft20, AlignBoxMiddleLeft24, AlignBoxMiddleLeft32, AlignBoxMiddleRight24, AlignBoxMiddleRight32, AlignHorizontalCenter16, AlignHorizontalCenter20, AlignHorizontalCenter24, AlignHorizontalCenter32, AlignHorizontalLeft16, AlignHorizontalLeft20, AlignHorizontalLeft24, AlignHorizontalLeft32, AlignHorizontalRight16, AlignHorizontalRight20, AlignHorizontalRight24, AlignHorizontalRight32, AlignVerticalBottom16, AlignVerticalBottom20, AlignVerticalBottom24, AlignVerticalBottom32, AlignVerticalCenter16, AlignVerticalCenter20, AlignVerticalCenter24, AlignVerticalCenter32, AlignVerticalTop16, AlignVerticalTop20, AlignVerticalTop24, AlignVerticalTop32, WatsonHealth3DCursor16, WatsonHealth3DCursor20, WatsonHealth3DCursor24, WatsonHealth3DCursor32, WatsonHealth3DCursorAlt16, WatsonHealth3DCursorAlt20, WatsonHealth3DCursorAlt24, WatsonHealth3DCursorAlt32, WatsonHealth3DCurveAutoColon16, WatsonHealth3DCurveAutoColon20, WatsonHealth3DCurveAutoColon24, WatsonHealth3DCurveAutoColon32, WatsonHealth3DCurveAutoVessels16, WatsonHealth3DCurveAutoVessels20, WatsonHealth3DCurveAutoVessels24, WatsonHealth3DCurveAutoVessels32, WatsonHealth3DCurveManual16, WatsonHealth3DCurveManual20, WatsonHealth3DCurveManual24, WatsonHealth3DCurveManual32, WatsonHealth3DICa16, WatsonHealth3DICa20, WatsonHealth3DICa24, WatsonHealth3DICa32, WatsonHealth3DMprToggle16, WatsonHealth3DMprToggle20, WatsonHealth3DMprToggle24, WatsonHealth3DMprToggle32, WatsonHealth3DPrintMesh16, WatsonHealth3DPrintMesh20, WatsonHealth3DPrintMesh24, WatsonHealth3DPrintMesh32, WatsonHealth3DSoftware16, WatsonHealth3DSoftware20, WatsonHealth3DSoftware24, WatsonHealth3DSoftware32, WatsonHealth3rdPartyConnected16, WatsonHealth3rdPartyConnected20, WatsonHealth3rdPartyConnected24, WatsonHealth3rdPartyConnected32, WatsonHealthAiResults16, WatsonHealthAiResults20, WatsonHealthAiResults24, WatsonHealthAiResults32, WatsonHealthAiResultsHigh16, WatsonHealthAiResultsHigh20, WatsonHealthAiResultsHigh24, WatsonHealthAiResultsHigh32, WatsonHealthAiResultsLow16, WatsonHealthAiResultsLow20, WatsonHealthAiResultsLow24, WatsonHealthAiResultsLow32, WatsonHealthAiResultsMedium16, WatsonHealthAiResultsMedium20, WatsonHealthAiResultsMedium24, WatsonHealthAiResultsMedium32, WatsonHealthAiResultsUrgent16, WatsonHealthAiResultsUrgent20, WatsonHealthAiResultsUrgent24, WatsonHealthAiResultsUrgent32, WatsonHealthAiResultsVeryHigh16, WatsonHealthAiResultsVeryHigh20, WatsonHealthAiResultsVeryHigh24, WatsonHealthAiResultsVeryHigh32, WatsonHealthAiStatus16, WatsonHealthAiStatus20, WatsonHealthAiStatus24, WatsonHealthAiStatus32, WatsonHealthAiStatusComplete16, WatsonHealthAiStatusComplete20, WatsonHealthAiStatusComplete24, WatsonHealthAiStatusComplete32, WatsonHealthAiStatusFailed16, WatsonHealthAiStatusFailed20, WatsonHealthAiStatusFailed24, WatsonHealthAiStatusFailed32, WatsonHealthAiStatusInProgress16, WatsonHealthAiStatusInProgress20, WatsonHealthAiStatusInProgress24, WatsonHealthAiStatusInProgress32, WatsonHealthAiStatusQueued16, WatsonHealthAiStatusQueued20, WatsonHealthAiStatusQueued24, WatsonHealthAiStatusQueued32, WatsonHealthAiStatusRejected16, WatsonHealthAiStatusRejected20, WatsonHealthAiStatusRejected24, WatsonHealthAiStatusRejected32, _4K16, _4K20, _4K24, _4K32, _4KFilled16, _4KFilled20, _4KFilled24, _4KFilled32 };\n","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { settings } from 'carbon-components';\nimport wrapComponent from '../../tools/wrapComponent';\nvar prefix = settings.prefix;\nvar TableActionList = wrapComponent({\n name: 'TableActionList',\n type: 'div',\n className: \"\".concat(prefix, \"--action-list\")\n});\nexport default TableActionList;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { AddFilled16 as iconAddSolid } from '@carbon/icons-react';\nimport Button from '../Button';\n\nvar TableBatchAction = function TableBatchAction(props) {\n return /*#__PURE__*/React.createElement(Button, props);\n};\n\nTableBatchAction.propTypes = {\n /**\n * Specify if the button is an icon-only button\n */\n hasIconOnly: PropTypes.bool,\n\n /**\n * If specifying the `renderIcon` prop, provide a description for that icon that can\n * be read by screen readers\n */\n iconDescription: function iconDescription(props) {\n if (props.renderIcon && !props.children && !props.iconDescription) {\n return new Error('renderIcon property specified without also providing an iconDescription property.');\n }\n\n return undefined;\n },\n\n /**\n * Optional function to render your own icon in the underlying button\n */\n renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n};\nTableBatchAction.defaultProps = {\n renderIcon: iconAddSolid\n};\nexport default TableBatchAction;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"children\", \"shouldShowBatchActions\", \"totalSelected\", \"onCancel\", \"translateWithId\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport Button from '../Button';\nimport TableActionList from './TableActionList';\nimport { Text } from '../Text';\nimport { usePrefix } from '../../internal/usePrefix';\nvar translationKeys = {\n 'carbon.table.batch.cancel': 'Cancel',\n 'carbon.table.batch.items.selected': 'items selected',\n 'carbon.table.batch.item.selected': 'item selected'\n};\n\nvar translateWithId = function translateWithId(id, state) {\n if (id === 'carbon.table.batch.cancel') {\n return translationKeys[id];\n }\n\n return \"\".concat(state.totalSelected, \" \").concat(translationKeys[id]);\n};\n\nvar TableBatchActions = function TableBatchActions(_ref) {\n var _cx;\n\n var className = _ref.className,\n children = _ref.children,\n shouldShowBatchActions = _ref.shouldShowBatchActions,\n totalSelected = _ref.totalSelected,\n onCancel = _ref.onCancel,\n t = _ref.translateWithId,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _React$useState = React.useState(),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n isScrolling = _React$useState2[0],\n setIsScrolling = _React$useState2[1];\n\n var prefix = usePrefix();\n var batchActionsClasses = cx((_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--batch-actions\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--batch-actions--active\"), shouldShowBatchActions), _cx), className);\n var batchSummaryClasses = cx(\"\".concat(prefix, \"--batch-summary\"), _defineProperty({}, \"\".concat(prefix, \"--batch-summary__scroll\"), isScrolling));\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n onScroll: function onScroll() {\n setIsScrolling(!isScrolling);\n },\n \"aria-hidden\": !shouldShowBatchActions,\n className: batchActionsClasses\n }, rest), /*#__PURE__*/React.createElement(\"div\", {\n className: batchSummaryClasses\n }, /*#__PURE__*/React.createElement(\"p\", {\n className: \"\".concat(prefix, \"--batch-summary__para\")\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\"\n }, totalSelected > 1 || totalSelected === 0 ? t('carbon.table.batch.items.selected', {\n totalSelected: totalSelected\n }) : t('carbon.table.batch.item.selected', {\n totalSelected: totalSelected\n })))), /*#__PURE__*/React.createElement(TableActionList, null, children, /*#__PURE__*/React.createElement(Button, {\n className: \"\".concat(prefix, \"--batch-summary__cancel\"),\n tabIndex: shouldShowBatchActions ? 0 : -1,\n onClick: onCancel\n }, t('carbon.table.batch.cancel'))));\n};\n\nTableBatchActions.translationKeys = Object.keys(translationKeys);\nTableBatchActions.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n\n /**\n * Hook required to listen for when the user initiates a cancel request\n * through this component\n */\n onCancel: PropTypes.func.isRequired,\n\n /**\n * Boolean specifier for whether or not the batch action bar should be\n * displayed\n */\n shouldShowBatchActions: PropTypes.bool,\n\n /**\n * Numeric representation of the total number of items selected in a table.\n * This number is used to derive the selection message\n */\n totalSelected: PropTypes.number.isRequired,\n\n /**\n * Supply a method to translate internal strings with your i18n tool of\n * choice. Translation keys are available on the `translationKeys` field for\n * this component.\n */\n translateWithId: PropTypes.func\n};\nTableBatchActions.defaultProps = {\n translateWithId: translateWithId\n};\nexport default TableBatchActions;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\", \"className\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nvar TableBody = function TableBody(_ref) {\n var children = _ref.children,\n className = _ref.className,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"tbody\", _extends({\n className: className\n }, rest), children);\n};\n\nTableBody.propTypes = {\n /**\n * `polite` Adjust the notification behavior of screen readers\n */\n 'aria-live': PropTypes.oneOf(['polite', 'assertive', 'off']),\n children: PropTypes.node,\n className: PropTypes.string\n};\nTableBody.defaultProps = {\n 'aria-live': 'polite'\n};\nexport default TableBody;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport wrapComponent from '../../tools/wrapComponent';\nvar TableCell = wrapComponent({\n name: 'TableCell',\n type: 'td'\n});\nexport default TableCell;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"children\", \"title\", \"description\", \"stickyHeader\", \"useStaticWidth\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableContainer = function TableContainer(_ref) {\n var _cx;\n\n var className = _ref.className,\n children = _ref.children,\n title = _ref.title,\n description = _ref.description,\n stickyHeader = _ref.stickyHeader,\n useStaticWidth = _ref.useStaticWidth,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var tableContainerClasses = cx(className, \"\".concat(prefix, \"--data-table-container\"), (_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--data-table--max-width\"), stickyHeader), _defineProperty(_cx, \"\".concat(prefix, \"--data-table-container--static\"), useStaticWidth), _cx));\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, rest, {\n className: tableContainerClasses\n }), title && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--data-table-header\")\n }, /*#__PURE__*/React.createElement(\"h4\", {\n className: \"\".concat(prefix, \"--data-table-header__title\")\n }, title), /*#__PURE__*/React.createElement(\"p\", {\n className: \"\".concat(prefix, \"--data-table-header__description\")\n }, description)), children);\n};\n\nTableContainer.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n\n /**\n * Optional description text for the Table\n */\n description: PropTypes.node,\n\n /**\n * Specify whether the table should have a sticky header\n */\n stickyHeader: PropTypes.bool,\n\n /**\n * Provide a title for the Table\n */\n title: PropTypes.node,\n\n /**\n * If true, will use a width of 'fit-content' to match the inner table width\n */\n useStaticWidth: PropTypes.bool\n};\nexport default TableContainer;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"ariaLabel\", \"className\", \"enableExpando\", \"enableToggle\", \"isExpanded\", \"onExpand\", \"expandIconDescription\", \"children\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport requiredIfGivenPropIsTruthy from '../../prop-types/requiredIfGivenPropIsTruthy';\nimport deprecate from '../../prop-types/deprecate';\nimport React from 'react';\nimport { ChevronRight16 } from '@carbon/icons-react';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableExpandHeader = function TableExpandHeader(_ref) {\n var ariaLabel = _ref.ariaLabel,\n headerClassName = _ref.className,\n enableExpando = _ref.enableExpando,\n enableToggle = _ref.enableToggle,\n isExpanded = _ref.isExpanded,\n onExpand = _ref.onExpand,\n expandIconDescription = _ref.expandIconDescription,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx(\"\".concat(prefix, \"--table-expand\"), headerClassName);\n var previousValue = isExpanded ? 'collapsed' : undefined;\n return /*#__PURE__*/React.createElement(\"th\", _extends({\n scope: \"col\",\n className: className,\n \"data-previous-value\": previousValue\n }, rest), enableExpando || enableToggle ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"\".concat(prefix, \"--table-expand__button\"),\n onClick: onExpand,\n title: expandIconDescription,\n \"aria-label\": ariaLabel\n }, /*#__PURE__*/React.createElement(ChevronRight16, {\n className: \"\".concat(prefix, \"--table-expand__svg\"),\n \"aria-label\": expandIconDescription\n })) : null, children);\n};\n\nTableExpandHeader.propTypes = {\n /**\n * Specify the string read by a voice reader when the expand trigger is\n * focused\n */\n ariaLabel: PropTypes.oneOfType([requiredIfGivenPropIsTruthy('enableExpando', PropTypes.string), requiredIfGivenPropIsTruthy('enableToggle', PropTypes.string)]),\n children: PropTypes.node,\n className: PropTypes.string,\n\n /**\n * The enableExpando prop is being replaced by enableToggle\n */\n enableExpando: deprecate(PropTypes.bool, 'The `enableExpando` prop has been deprecated in favor of `enableToggle`. This prop will be removed in the next major release.'),\n\n /**\n * Specify whether an expand all button should be displayed\n */\n enableToggle: PropTypes.bool,\n\n /**\n * The description of the chevron right icon, to be put in its SVG `` element.\n */\n expandIconDescription: PropTypes.string,\n\n /**\n * Specify whether this row is expanded or not. This helps coordinate data\n * attributes so that `TableExpandRow` and `TableExpandedRow` work together\n */\n isExpanded: PropTypes.oneOfType([requiredIfGivenPropIsTruthy('enableExpando', PropTypes.bool), requiredIfGivenPropIsTruthy('enableToggle', PropTypes.bool)]),\n\n /**\n * Hook for when a listener initiates a request to expand the given row\n */\n onExpand: PropTypes.oneOfType([requiredIfGivenPropIsTruthy('enableExpando', PropTypes.func), requiredIfGivenPropIsTruthy('enableToggle', PropTypes.func)])\n};\nexport default TableExpandHeader;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"ariaLabel\", \"className\", \"children\", \"isExpanded\", \"onExpand\", \"expandIconDescription\", \"isSelected\", \"expandHeader\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ChevronRight16 } from '@carbon/icons-react';\nimport TableCell from './TableCell';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableExpandRow = function TableExpandRow(_ref) {\n var _cx;\n\n var ariaLabel = _ref.ariaLabel,\n rowClassName = _ref.className,\n children = _ref.children,\n isExpanded = _ref.isExpanded,\n onExpand = _ref.onExpand,\n expandIconDescription = _ref.expandIconDescription,\n isSelected = _ref.isSelected,\n expandHeader = _ref.expandHeader,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx((_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--parent-row\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--expandable-row\"), isExpanded), _defineProperty(_cx, \"\".concat(prefix, \"--data-table--selected\"), isSelected), _cx), rowClassName);\n var previousValue = isExpanded ? 'collapsed' : undefined;\n return /*#__PURE__*/React.createElement(\"tr\", _extends({}, rest, {\n className: className,\n \"data-parent-row\": true\n }), /*#__PURE__*/React.createElement(TableCell, {\n className: \"\".concat(prefix, \"--table-expand\"),\n \"data-previous-value\": previousValue,\n headers: expandHeader\n }, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"\".concat(prefix, \"--table-expand__button\"),\n onClick: onExpand,\n title: expandIconDescription,\n \"aria-label\": ariaLabel\n }, /*#__PURE__*/React.createElement(ChevronRight16, {\n className: \"\".concat(prefix, \"--table-expand__svg\"),\n \"aria-label\": expandIconDescription\n }))), children);\n};\n\nTableExpandRow.propTypes = {\n /**\n * Specify the string read by a voice reader when the expand trigger is\n * focused\n */\n ariaLabel: PropTypes.string.isRequired,\n children: PropTypes.node,\n className: PropTypes.string,\n\n /**\n * The id of the matching th node in the table head. Addresses a11y concerns outlined here: https://www.ibm.com/able/guidelines/ci162/info_and_relationships.html and https://www.w3.org/TR/WCAG20-TECHS/H43\n */\n expandHeader: PropTypes.string,\n\n /**\n * The description of the chevron right icon, to be put in its SVG `<title>` element.\n */\n expandIconDescription: PropTypes.string,\n\n /**\n * Specify whether this row is expanded or not. This helps coordinate data\n * attributes so that `TableExpandRow` and `TableExpandedRow` work together\n */\n isExpanded: PropTypes.bool.isRequired,\n\n /**\n * Specify if the row is selected\n */\n isSelected: PropTypes.bool,\n\n /**\n * Hook for when a listener initiates a request to expand the given row\n */\n onExpand: PropTypes.func.isRequired\n};\nTableExpandRow.defaultProps = {\n expandHeader: 'expand'\n};\nexport default TableExpandRow;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"children\", \"colSpan\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useRef } from 'react';\nimport TableCell from './TableCell';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableExpandedRow = function TableExpandedRow(_ref) {\n var customClassName = _ref.className,\n children = _ref.children,\n colSpan = _ref.colSpan,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var rowRef = useRef(null);\n var prefix = usePrefix();\n var className = cx(\"\".concat(prefix, \"--expandable-row\"), customClassName);\n\n var toggleParentHoverClass = function toggleParentHoverClass(eventType) {\n if (rowRef && rowRef.current && rowRef.current.previousElementSibling) {\n var parentNode = rowRef.current.previousElementSibling;\n\n if (eventType === 'enter') {\n parentNode.classList.add(\"\".concat(prefix, \"--expandable-row--hover\"));\n } else {\n parentNode.classList.remove(\"\".concat(prefix, \"--expandable-row--hover\"));\n }\n }\n };\n\n return /*#__PURE__*/React.createElement(\"tr\", _extends({\n ref: rowRef,\n onMouseEnter: function onMouseEnter() {\n return toggleParentHoverClass('enter');\n },\n onMouseLeave: function onMouseLeave() {\n return toggleParentHoverClass('leave');\n }\n }, rest, {\n className: className,\n \"data-child-row\": true\n }), /*#__PURE__*/React.createElement(TableCell, {\n colSpan: colSpan\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--child-row-inner-container\")\n }, children)));\n};\n\nTableExpandedRow.propTypes = {\n /**\n * Pass in the contents for your TableExpandedRow\n */\n children: PropTypes.node,\n\n /**\n * Specify an optional className to be applied to the container node\n */\n className: PropTypes.string,\n\n /**\n * The width of the expanded row's internal cell\n */\n colSpan: PropTypes.number.isRequired\n};\nexport default TableExpandedRow;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"className\", \"children\", \"colSpan\", \"isSortable\", \"isSortHeader\", \"onClick\", \"scope\", \"sortDirection\", \"translateWithId\", \"id\"];\n\nvar _sortDirections;\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ArrowUp20 as Arrow, ArrowsVertical20 as Arrows } from '@carbon/icons-react';\nimport { sortStates } from './state/sorting';\nimport { useId } from '../../internal/useId';\nimport { usePrefix } from '../../internal/usePrefix';\nvar translationKeys = {\n buttonDescription: 'carbon.table.header.icon.description'\n};\n\nvar translateWithId = function translateWithId(key, _ref) {\n var header = _ref.header,\n sortDirection = _ref.sortDirection,\n isSortHeader = _ref.isSortHeader,\n sortStates = _ref.sortStates;\n\n if (key === translationKeys.buttonDescription) {\n if (isSortHeader) {\n // When transitioning, we know that the sequence of states is as follows:\n // NONE -> ASC -> DESC -> NONE\n if (sortDirection === sortStates.NONE) {\n return \"Click to sort rows by \".concat(header, \" header in ascending order\");\n }\n\n if (sortDirection === sortStates.ASC) {\n return \"Click to sort rows by \".concat(header, \" header in descending order\");\n }\n\n return \"Click to unsort rows by \".concat(header, \" header\");\n }\n\n return \"Click to sort rows by \".concat(header, \" header in ascending order\");\n }\n\n return '';\n};\n\nvar sortDirections = (_sortDirections = {}, _defineProperty(_sortDirections, sortStates.NONE, 'none'), _defineProperty(_sortDirections, sortStates.ASC, 'ascending'), _defineProperty(_sortDirections, sortStates.DESC, 'descending'), _sortDirections);\nvar TableHeader = /*#__PURE__*/React.forwardRef(function TableHeader(_ref2, ref) {\n var _cx;\n\n var headerClassName = _ref2.className,\n children = _ref2.children,\n colSpan = _ref2.colSpan,\n isSortable = _ref2.isSortable,\n isSortHeader = _ref2.isSortHeader,\n onClick = _ref2.onClick,\n scope = _ref2.scope,\n sortDirection = _ref2.sortDirection,\n t = _ref2.translateWithId,\n id = _ref2.id,\n rest = _objectWithoutProperties(_ref2, _excluded);\n\n var prefix = usePrefix();\n var uniqueId = useId('table-sort');\n\n if (!isSortable) {\n return /*#__PURE__*/React.createElement(\"th\", _extends({}, rest, {\n id: id,\n className: headerClassName,\n scope: scope,\n colSpan: colSpan,\n ref: ref\n }), children ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--table-header-label\")\n }, children) : null);\n }\n\n var className = cx(headerClassName, (_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--table-sort\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--table-sort--active\"), isSortHeader && sortDirection !== sortStates.NONE), _defineProperty(_cx, \"\".concat(prefix, \"--table-sort--ascending\"), isSortHeader && sortDirection === sortStates.DESC), _cx));\n var ariaSort = !isSortHeader ? 'none' : sortDirections[sortDirection];\n var sortDescription = t('carbon.table.header.icon.description', {\n header: children,\n sortDirection: sortDirection,\n isSortHeader: isSortHeader,\n sortStates: sortStates\n });\n return /*#__PURE__*/React.createElement(\"th\", {\n id: id,\n \"aria-sort\": ariaSort,\n className: headerClassName,\n colSpan: colSpan,\n ref: ref,\n scope: scope\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: {\n display: 'none'\n },\n id: uniqueId\n }, sortDescription), /*#__PURE__*/React.createElement(\"button\", _extends({\n type: \"button\",\n \"aria-describedby\": uniqueId,\n className: className,\n onClick: onClick\n }, rest), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--table-sort__flex\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--table-header-label\")\n }, children), /*#__PURE__*/React.createElement(Arrow, {\n className: \"\".concat(prefix, \"--table-sort__icon\")\n }), /*#__PURE__*/React.createElement(Arrows, {\n className: \"\".concat(prefix, \"--table-sort__icon-unsorted\")\n }))));\n});\nTableHeader.propTypes = {\n /**\n * Pass in children that will be embedded in the table header label\n */\n children: PropTypes.node,\n\n /**\n * Specify an optional className to be applied to the container node\n */\n className: PropTypes.string,\n\n /**\n * Specify `colSpan` as a non-negative integer value to indicate how\n * many columns the TableHeader cell extends in a table\n */\n colSpan: PropTypes.number,\n\n /**\n * Supply an id to the th element.\n */\n id: PropTypes.string,\n\n /**\n * Specify whether this header is the header by which a table is being sorted\n * by\n */\n isSortHeader: PropTypes.bool,\n\n /**\n * Specify whether this header is one through which a user can sort the table\n */\n isSortable: PropTypes.bool,\n\n /**\n * Hook that is invoked when the header is clicked\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the scope of this table header. You can find more info about this\n * attribute at the following URL:\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope\n */\n scope: PropTypes.string.isRequired,\n\n /**\n * Specify which direction we are currently sorting by, should be one of DESC,\n * NONE, or ASC.\n */\n sortDirection: PropTypes.oneOf(Object.values(sortStates)),\n\n /**\n * Supply a method to translate internal strings with your i18n tool of\n * choice. Translation keys are available on the `translationKeys` field for\n * this component.\n */\n translateWithId: PropTypes.func\n};\nTableHeader.defaultProps = {\n isSortable: false,\n scope: 'col',\n translateWithId: translateWithId\n};\nTableHeader.translationKeys = Object.values(translationKeys);\nTableHeader.displayName = 'TableHeader';\nexport default TableHeader;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport wrapComponent from '../../tools/wrapComponent';\nvar TableHead = wrapComponent({\n name: 'TableHead',\n type: 'thead'\n});\nexport default TableHead;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport omit from 'lodash.omit';\nimport cx from 'classnames';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableRow = function TableRow(props) {\n var prefix = usePrefix(); // Remove unnecessary props if provided to this component, these are\n // only useful in `TableExpandRow`\n\n var className = cx(props.className, _defineProperty({}, \"\".concat(prefix, \"--data-table--selected\"), props.isSelected));\n\n var cleanProps = _objectSpread(_objectSpread({}, omit(props, ['ariaLabel', 'onExpand', 'isExpanded', 'isSelected'])), {}, {\n className: className || undefined\n });\n\n return /*#__PURE__*/React.createElement(\"tr\", cleanProps);\n};\n\nTableRow.propTypes = {\n /**\n * Specify an optional className to be applied to the container node\n */\n className: PropTypes.string,\n\n /**\n * Specify if the row is selected\n */\n isSelected: PropTypes.bool\n};\nexport default TableRow;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef } from 'react';\nimport { usePrefix } from '../../internal/usePrefix';\nimport { useMergedRefs } from '../../internal/useMergedRefs';\nvar InlineCheckbox = /*#__PURE__*/React.forwardRef(function InlineCheckbox(props, forwardRef) {\n var ariaLabel = props.ariaLabel,\n _props$checked = props.checked,\n checked = _props$checked === void 0 ? false : _props$checked,\n disabled = props.disabled,\n id = props.id,\n indeterminate = props.indeterminate,\n name = props.name,\n _props$onChange = props.onChange,\n _onChange = _props$onChange === void 0 ? function () {} : _props$onChange,\n onClick = props.onClick,\n onKeyDown = props.onKeyDown,\n title = props.title;\n\n var prefix = usePrefix();\n var inputRef = useRef(null);\n var ref = useMergedRefs([inputRef, forwardRef]);\n var inputProps = {\n checked: checked,\n className: \"\".concat(prefix, \"--checkbox\"),\n disabled: disabled,\n id: id,\n name: name,\n onClick: onClick,\n onChange: function onChange(evt) {\n _onChange(evt.target.checked, id, evt);\n },\n onKeyDown: onKeyDown,\n ref: ref,\n type: 'checkbox'\n };\n\n if (indeterminate) {\n inputProps.checked = false;\n }\n\n useEffect(function () {\n inputRef.current.indeterminate = indeterminate;\n }, [indeterminate]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--checkbox--inline\")\n }, /*#__PURE__*/React.createElement(\"input\", inputProps),\n /*#__PURE__*/\n\n /* eslint-disable jsx-a11y/label-has-for,jsx-a11y/label-has-associated-control,jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions */\n React.createElement(\"label\", {\n htmlFor: id,\n className: \"\".concat(prefix, \"--checkbox-label\"),\n \"aria-label\": ariaLabel,\n title: title,\n onClick: function onClick(evt) {\n evt.stopPropagation();\n }\n }));\n});\nInlineCheckbox.propTypes = {\n /**\n * Specify the label for the control\n */\n ariaLabel: PropTypes.string.isRequired,\n\n /**\n * Specify whether the underlying control is checked, or not\n */\n checked: PropTypes.bool,\n\n /**\n * Specify whether the underlying input control should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Provide an `id` for the underlying input control\n */\n id: PropTypes.string.isRequired,\n\n /**\n * Specify whether the control is in an indterminate state\n */\n indeterminate: PropTypes.bool,\n\n /**\n * Provide a `name` for the underlying input control\n */\n name: PropTypes.string.isRequired,\n\n /**\n * Provide an optional hook that is called each time the input is updated\n */\n onChange: PropTypes.func,\n\n /**\n * Provide a handler that is invoked when a user clicks on the control\n */\n onClick: PropTypes.func,\n\n /**\n * Provide a handler that is invoked on the key down event for the control\n */\n onKeyDown: PropTypes.func,\n\n /**\n * Provide an optional tooltip for the InlineCheckbox\n */\n title: PropTypes.string\n};\nexport default InlineCheckbox;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { useCallback } from 'react';\n/**\n * Combine multiple refs into a single ref. This use useful when you have two\n * refs from both `React.forwardRef` and `useRef` that you would like to add to\n * the same node.\n *\n * @param {Array} refs\n * @returns {Function}\n */\n\nexport function useMergedRefs(refs) {\n return useCallback(function (node) {\n refs.forEach(function (ref) {\n if (typeof ref === 'function') {\n ref(node);\n } else if (ref !== null && ref !== undefined) {\n ref.current = node;\n }\n }); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport InlineCheckbox from '../InlineCheckbox';\nimport cx from 'classnames';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableSelectAll = function TableSelectAll(_ref) {\n var ariaLabel = _ref.ariaLabel,\n checked = _ref.checked,\n id = _ref.id,\n indeterminate = _ref.indeterminate,\n name = _ref.name,\n onSelect = _ref.onSelect,\n disabled = _ref.disabled,\n className = _ref.className;\n var prefix = usePrefix();\n return /*#__PURE__*/React.createElement(\"th\", {\n scope: \"col\",\n className: cx(\"\".concat(prefix, \"--table-column-checkbox\"), className)\n }, /*#__PURE__*/React.createElement(InlineCheckbox, {\n ariaLabel: ariaLabel,\n checked: checked,\n id: id,\n indeterminate: indeterminate,\n name: name,\n onClick: onSelect,\n disabled: disabled\n }));\n};\n\nTableSelectAll.propTypes = {\n /**\n * Specify the aria label for the underlying input control\n */\n ariaLabel: PropTypes.string.isRequired,\n\n /**\n * Specify whether all items are selected, or not\n */\n checked: PropTypes.bool.isRequired,\n\n /**\n * The CSS class names of the cell that wraps the underlying input control\n */\n className: PropTypes.string,\n\n /**\n * Specify whether the checkbox input should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Provide an `id` for the underlying input control\n */\n id: PropTypes.string.isRequired,\n\n /**\n * Specify whether the selection only has a subset of all items\n */\n indeterminate: PropTypes.bool,\n\n /**\n * Provide a `name` for the underlying input control\n */\n name: PropTypes.string.isRequired,\n\n /**\n * Provide a handler to listen to when a user initiates a selection request\n */\n onSelect: PropTypes.func.isRequired\n};\nTableSelectAll.defaultProps = {\n ariaLabel: 'Select all rows in the table'\n};\nexport default TableSelectAll;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"disabled\", \"hideLabel\", \"id\", \"labelPosition\", \"labelText\", \"name\", \"onChange\", \"value\"];\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\nimport { usePrefix } from '../../../internal/usePrefix';\nimport { useId } from '../../../internal/useId';\nimport { Text } from '../../Text';\nvar RadioButton = /*#__PURE__*/React.forwardRef(function RadioButton(_ref, ref) {\n var className = _ref.className,\n disabled = _ref.disabled,\n hideLabel = _ref.hideLabel,\n id = _ref.id,\n _ref$labelPosition = _ref.labelPosition,\n labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,\n _ref$labelText = _ref.labelText,\n labelText = _ref$labelText === void 0 ? '' : _ref$labelText,\n name = _ref.name,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? '' : _ref$value,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var uid = useId('radio-button');\n var uniqueId = id || uid;\n\n function handleOnChange(event) {\n onChange(value, name, event);\n }\n\n var innerLabelClasses = classNames(_defineProperty({}, \"\".concat(prefix, \"--visually-hidden\"), hideLabel));\n var wrapperClasses = classNames(className, \"\".concat(prefix, \"--radio-button-wrapper\"), _defineProperty({}, \"\".concat(prefix, \"--radio-button-wrapper--label-\").concat(labelPosition), labelPosition !== 'right'));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: wrapperClasses\n }, /*#__PURE__*/React.createElement(\"input\", _extends({}, rest, {\n type: \"radio\",\n className: \"\".concat(prefix, \"--radio-button\"),\n onChange: handleOnChange,\n id: uniqueId,\n ref: ref,\n disabled: disabled\n })), /*#__PURE__*/React.createElement(\"label\", {\n htmlFor: uniqueId,\n className: \"\".concat(prefix, \"--radio-button__label\")\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--radio-button__appearance\")\n }), labelText && /*#__PURE__*/React.createElement(Text, {\n className: innerLabelClasses\n }, labelText)));\n});\nRadioButton.propTypes = {\n /**\n * Specify whether the <RadioButton> is currently checked\n */\n checked: PropTypes.bool,\n\n /**\n * Provide an optional className to be applied to the containing node\n */\n className: PropTypes.string,\n\n /**\n * Specify whether the <RadioButton> should be checked by default\n */\n defaultChecked: PropTypes.bool,\n\n /**\n * Specify whether the control is disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Specify whether the label should be hidden, or not\n */\n hideLabel: PropTypes.bool,\n\n /**\n * Provide a unique id for the underlying `<input>` node\n */\n id: PropTypes.string,\n\n /**\n * Provide where label text should be placed\n * NOTE: `top`/`bottom` are deprecated\n */\n labelPosition: PropTypes.oneOf(['right', 'left']),\n\n /**\n * Provide label text to be read by screen readers when interacting with the\n * control\n */\n labelText: PropTypes.node.isRequired,\n\n /**\n * Provide a name for the underlying `<input>` node\n */\n name: PropTypes.string,\n\n /**\n * Provide an optional `onChange` hook that is called each time the value of\n * the underlying `<input>` changes\n */\n onChange: PropTypes.func,\n\n /**\n * Provide a handler that is invoked when a user clicks on the control\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the value of the <RadioButton>\n */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired\n};\nexport default RadioButton;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar lastId = 0;\nexport default function uniqueId() {\n var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'id';\n lastId++;\n return \"\".concat(prefix).concat(lastId);\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"className\", \"labelText\", \"labelPosition\", \"innerRef\", \"hideLabel\"];\n\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); }; }\n\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; } }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { warning } from '../../internal/warning';\nimport uid from '../../tools/uniqueId';\nimport { Text } from '../Text';\nimport { PrefixContext } from '../../internal/usePrefix';\n\nvar RadioButton = /*#__PURE__*/function (_React$Component) {\n _inherits(RadioButton, _React$Component);\n\n var _super = _createSuper(RadioButton);\n\n function RadioButton() {\n var _this;\n\n _classCallCheck(this, RadioButton);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"prefix\", _this.context);\n\n _defineProperty(_assertThisInitialized(_this), \"uid\", _this.props.id || uid());\n\n _defineProperty(_assertThisInitialized(_this), \"handleChange\", function (evt) {\n _this.props.onChange(_this.props.value, _this.props.name, evt);\n });\n\n return _this;\n }\n\n _createClass(RadioButton, [{\n key: \"render\",\n value: function render() {\n var prefix = this.prefix;\n\n var _this$props = this.props,\n className = _this$props.className,\n labelText = _this$props.labelText,\n labelPosition = _this$props.labelPosition,\n ref = _this$props.innerRef,\n hideLabel = _this$props.hideLabel,\n other = _objectWithoutProperties(_this$props, _excluded);\n\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(labelPosition !== 'top' && labelPosition !== 'bottom', '`top`/`bottom` values for `labelPosition` property in the `RadioButton` component is deprecated ' + 'and being removed in the next release of `carbon-components-react`.') : void 0;\n }\n\n var innerLabelClasses = classNames(_defineProperty({}, \"\".concat(prefix, \"--visually-hidden\"), hideLabel));\n var wrapperClasses = classNames(className, \"\".concat(prefix, \"--radio-button-wrapper\"), _defineProperty({}, \"\".concat(prefix, \"--radio-button-wrapper--label-\").concat(labelPosition), labelPosition !== 'right'));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: wrapperClasses\n }, /*#__PURE__*/React.createElement(\"input\", _extends({}, other, {\n type: \"radio\",\n className: \"\".concat(prefix, \"--radio-button\"),\n onChange: this.handleChange,\n id: this.uid,\n ref: ref\n })), /*#__PURE__*/React.createElement(\"label\", {\n htmlFor: this.uid,\n className: \"\".concat(prefix, \"--radio-button__label\")\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefix, \"--radio-button__appearance\")\n }), labelText && /*#__PURE__*/React.createElement(Text, {\n className: innerLabelClasses\n }, labelText)));\n }\n }]);\n\n return RadioButton;\n}(React.Component);\n\n_defineProperty(RadioButton, \"propTypes\", {\n /**\n * Specify whether the <RadioButton> is currently checked\n */\n checked: PropTypes.bool,\n\n /**\n * Provide an optional className to be applied to the containing node\n */\n className: PropTypes.string,\n\n /**\n * Specify whether the <RadioButton> should be checked by default\n */\n defaultChecked: PropTypes.bool,\n\n /**\n * Specify whether the control is disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Specify whether the label should be hidden, or not\n */\n hideLabel: PropTypes.bool,\n\n /**\n * Provide a unique id for the underlying `<input>` node\n */\n id: PropTypes.string,\n\n /**\n * Provide where label text should be placed\n * NOTE: `top`/`bottom` are deprecated\n */\n labelPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']),\n\n /**\n * Provide label text to be read by screen readers when interacting with the\n * control\n */\n labelText: PropTypes.node.isRequired,\n\n /**\n * Provide a name for the underlying `<input>` node\n */\n name: PropTypes.string,\n\n /**\n * Provide an optional `onChange` hook that is called each time the value of\n * the underlying `<input>` changes\n */\n onChange: PropTypes.func,\n\n /**\n * Provide a handler that is invoked when a user clicks on the control\n */\n onClick: PropTypes.func,\n\n /**\n * Specify the value of the <RadioButton>\n */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired\n});\n\n_defineProperty(RadioButton, \"contextType\", PrefixContext);\n\n_defineProperty(RadioButton, \"defaultProps\", {\n labelText: '',\n labelPosition: 'right',\n onChange: function onChange() {},\n value: ''\n});\n\nexport { RadioButton };\nexport default (function () {\n var forwardRef = function forwardRef(props, ref) {\n return /*#__PURE__*/React.createElement(RadioButton, _extends({}, props, {\n innerRef: ref\n }));\n };\n\n forwardRef.displayName = 'RadioButton';\n return /*#__PURE__*/React.forwardRef(forwardRef);\n})();","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport { default as RadioButtonNext } from './next/RadioButton';\nimport { default as RadioButtonClassic } from './RadioButton';\nvar RadioButton = FeatureFlags.enabled('enable-v11-release') ? RadioButtonNext : RadioButtonClassic;\nexport default RadioButton;\nexport { default as RadioButtonSkeleton } from './RadioButton.Skeleton';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\nimport InlineCheckbox from '../InlineCheckbox';\nimport RadioButton from '../RadioButton';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableSelectRow = function TableSelectRow(_ref) {\n var _classNames;\n\n var ariaLabel = _ref.ariaLabel,\n checked = _ref.checked,\n id = _ref.id,\n name = _ref.name,\n onSelect = _ref.onSelect,\n onChange = _ref.onChange,\n disabled = _ref.disabled,\n radio = _ref.radio,\n className = _ref.className;\n var prefix = usePrefix();\n var selectionInputProps = {\n id: id,\n name: name,\n onClick: onSelect,\n onChange: onChange,\n checked: checked,\n disabled: disabled\n };\n var InlineInputComponent = radio ? RadioButton : InlineCheckbox;\n var tableSelectRowClasses = classNames(\"\".concat(prefix, \"--table-column-checkbox\"), (_classNames = {}, _defineProperty(_classNames, className, className), _defineProperty(_classNames, \"\".concat(prefix, \"--table-column-radio\"), radio), _classNames));\n return /*#__PURE__*/React.createElement(\"td\", {\n className: tableSelectRowClasses\n }, /*#__PURE__*/React.createElement(InlineInputComponent, _extends({}, selectionInputProps, radio && {\n labelText: ariaLabel,\n hideLabel: true\n }, !radio && {\n ariaLabel: ariaLabel\n })));\n};\n\nTableSelectRow.propTypes = {\n /**\n * Specify the aria label for the underlying input control\n */\n ariaLabel: PropTypes.string.isRequired,\n\n /**\n * Specify whether all items are selected, or not\n */\n checked: PropTypes.bool.isRequired,\n\n /**\n * The CSS class names of the cell that wraps the underlying input control\n */\n className: PropTypes.string,\n\n /**\n * Specify whether the control is disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Provide an `id` for the underlying input control\n */\n id: PropTypes.string.isRequired,\n\n /**\n * Provide a `name` for the underlying input control\n */\n name: PropTypes.string.isRequired,\n\n /**\n * Provide an optional hook that is called each time the input is updated\n */\n onChange: PropTypes.func,\n\n /**\n * Provide a handler to listen to when a user initiates a selection request\n */\n onSelect: PropTypes.func.isRequired,\n\n /**\n * Specify whether the control should be a radio button or inline checkbox\n */\n radio: PropTypes.bool\n};\nexport default TableSelectRow;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\", \"size\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { AriaLabelPropType } from '../../prop-types/AriaPropTypes';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableToolbar = function TableToolbar(_ref) {\n var _cx;\n\n var children = _ref.children,\n size = _ref.size,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx((_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--table-toolbar\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--table-toolbar--\").concat(size), size), _cx));\n return /*#__PURE__*/React.createElement(\"section\", _extends({}, rest, {\n className: className\n }), children);\n};\n\nTableToolbar.propTypes = _objectSpread(_objectSpread({}, AriaLabelPropType), {}, {\n /**\n * Pass in the children that will be rendered inside the TableToolbar\n */\n children: PropTypes.node,\n\n /**\n * `lg` Change the row height of table\n */\n size: FeatureFlags.enabled('enable-v11-release') ? PropTypes.oneOf(['sm', 'lg']) : PropTypes.oneOf(['small', 'sm', 'normal', 'lg'])\n});\nTableToolbar.defaultProps = {\n 'aria-label': 'data table toolbar'\n};\nexport default TableToolbar;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"href\", \"className\", \"itemText\", \"hasDivider\", \"isDelete\", \"disabled\", \"closeMenu\", \"onClick\", \"handleOverflowMenuItemFocus\", \"onKeyDown\", \"primaryFocus\", \"wrapperClassName\", \"requireTitle\", \"index\", \"title\"];\n\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); }; }\n\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; } }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { match, keys } from '../../internal/keyboard';\nimport { warning } from '../../internal/warning';\nimport deprecate from '../../prop-types/deprecate.js';\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport { PrefixContext } from '../../internal/usePrefix';\n\nvar OverflowMenuItem = /*#__PURE__*/function (_React$Component) {\n _inherits(OverflowMenuItem, _React$Component);\n\n var _super = _createSuper(OverflowMenuItem);\n\n function OverflowMenuItem() {\n var _this;\n\n _classCallCheck(this, OverflowMenuItem);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"overflowMenuItem\", /*#__PURE__*/React.createRef());\n\n _defineProperty(_assertThisInitialized(_this), \"setTabFocus\", function (evt) {\n if (match(evt, keys.ArrowDown)) {\n _this.props.handleOverflowMenuItemFocus({\n currentIndex: _this.props.index,\n direction: 1\n });\n }\n\n if (match(evt, keys.ArrowUp)) {\n _this.props.handleOverflowMenuItemFocus({\n currentIndex: _this.props.index,\n direction: -1\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleClick\", function (evt) {\n var _this$props = _this.props,\n onClick = _this$props.onClick,\n closeMenu = _this$props.closeMenu;\n onClick(evt);\n\n if (closeMenu) {\n closeMenu();\n }\n });\n\n return _this;\n }\n\n _createClass(OverflowMenuItem, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n href = _this$props2.href,\n className = _this$props2.className,\n itemText = _this$props2.itemText,\n hasDivider = _this$props2.hasDivider,\n isDelete = _this$props2.isDelete,\n disabled = _this$props2.disabled,\n closeMenu = _this$props2.closeMenu,\n onClick = _this$props2.onClick,\n handleOverflowMenuItemFocus = _this$props2.handleOverflowMenuItemFocus,\n _onKeyDown = _this$props2.onKeyDown,\n primaryFocus = _this$props2.primaryFocus,\n wrapperClassName = _this$props2.wrapperClassName,\n requireTitle = _this$props2.requireTitle,\n index = _this$props2.index,\n title = _this$props2.title,\n other = _objectWithoutProperties(_this$props2, _excluded);\n\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(closeMenu, '`<OverflowMenuItem>` detected missing `closeMenu` prop. ' + '`closeMenu` is required to let `<OverflowMenu>` close the menu upon actions on `<OverflowMenuItem>`. ' + 'Please make sure `<OverflowMenuItem>` is a direct child of `<OverflowMenu>.') : void 0;\n }\n\n return /*#__PURE__*/React.createElement(PrefixContext.Consumer, null, function (prefix) {\n var _classNames;\n\n var overflowMenuBtnClasses = classNames(\"\".concat(prefix, \"--overflow-menu-options__btn\"), className);\n var overflowMenuItemClasses = classNames(\"\".concat(prefix, \"--overflow-menu-options__option\"), (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefix, \"--overflow-menu--divider\"), hasDivider), _defineProperty(_classNames, \"\".concat(prefix, \"--overflow-menu-options__option--danger\"), isDelete), _defineProperty(_classNames, \"\".concat(prefix, \"--overflow-menu-options__option--disabled\"), disabled), _classNames), wrapperClassName);\n var TagToUse = href ? 'a' : 'button';\n\n var OverflowMenuItemContent = function () {\n if (typeof itemText !== 'string') {\n return itemText;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--overflow-menu-options__option-content\")\n }, itemText);\n }();\n\n return /*#__PURE__*/React.createElement(\"li\", {\n className: overflowMenuItemClasses,\n role: \"none\"\n }, /*#__PURE__*/React.createElement(TagToUse, _extends({}, other, {\n 'data-floating-menu-primary-focus': primaryFocus || null,\n role: \"menuitem\",\n href: href,\n className: overflowMenuBtnClasses,\n disabled: disabled,\n onClick: _this2.handleClick,\n onKeyDown: function onKeyDown(evt) {\n _this2.setTabFocus(evt);\n\n _onKeyDown(evt);\n },\n ref: _this2.overflowMenuItem,\n title: requireTitle ? title || itemText : null,\n tabIndex: \"-1\",\n index: index\n }), OverflowMenuItemContent));\n });\n }\n }]);\n\n return OverflowMenuItem;\n}(React.Component);\n\n_defineProperty(OverflowMenuItem, \"propTypes\", {\n /**\n * The CSS class name to be placed on the button element\n */\n className: PropTypes.string,\n\n /**\n * A callback to tell the parent menu component that the menu should be closed.\n */\n closeMenu: PropTypes.func,\n\n /**\n * `true` to make this menu item disabled.\n */\n disabled: PropTypes.bool,\n handleOverflowMenuItemFocus: PropTypes.func,\n\n /**\n * `true` to make this menu item a divider.\n */\n hasDivider: PropTypes.bool,\n\n /**\n * If given, overflow item will render as a link with the given href\n */\n href: PropTypes.string,\n index: PropTypes.number,\n\n /**\n * `true` to make this menu item a \"danger button\".\n */\n isDelete: PropTypes.bool,\n\n /**\n * The text in the menu item.\n */\n itemText: PropTypes.node.isRequired,\n\n /**\n * event handlers\n */\n onBlur: PropTypes.func,\n onClick: PropTypes.func,\n onFocus: PropTypes.func,\n onKeyDown: PropTypes.func,\n onKeyUp: PropTypes.func,\n onMouseDown: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onMouseUp: PropTypes.func,\n\n /**\n * `true` if this menu item should get focus when the menu gets open.\n */\n primaryFocus: deprecate(PropTypes.bool, 'The `primaryFocus` prop has been deprecated as it is no longer used. ' + 'Feel free to remove this prop from <OverflowMenuItem>. This prop will ' + 'be removed in the next major release of `carbon-components-react`. ' + 'Opt for `selectorPrimaryFocus` in `<OverflowMenu>` instead'),\n\n /**\n * `true` if this menu item has long text and requires a browser tooltip\n */\n requireTitle: PropTypes.bool,\n\n /**\n * Specify a title for the OverflowMenuItem\n */\n title: PropTypes.string,\n\n /**\n * The CSS class name to be placed on the wrapper list item element\n */\n wrapperClassName: PropTypes.string\n});\n\n_defineProperty(OverflowMenuItem, \"defaultProps\", {\n hasDivider: false,\n isDelete: false,\n disabled: false,\n itemText: FeatureFlags.enabled('enable-v11-release') ? null : 'Provide itemText',\n onClick: function onClick() {},\n onKeyDown: function onKeyDown() {}\n});\n\nexport { OverflowMenuItem as default };","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport OverflowMenuItem from './OverflowMenuItem';\nexport default OverflowMenuItem;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport OverflowMenuItem from '../OverflowMenuItem';\nvar TableToolbarAction = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(OverflowMenuItem, _extends({\n ref: ref,\n itemText: children\n }, rest));\n});\nTableToolbarAction.displayName = 'TableToolbarAction';\nTableToolbarAction.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n onClick: PropTypes.func.isRequired\n};\nexport default TableToolbarAction;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport wrapComponent from '../../tools/wrapComponent';\nimport { settings } from 'carbon-components';\nvar prefix = settings.prefix;\nvar TableToolbarContent = wrapComponent({\n name: 'TableToolbarContent',\n type: 'div',\n className: \"\".concat(prefix, \"--toolbar-content\")\n});\nexport default TableToolbarContent;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"searchContainerClass\", \"onChange\", \"onClear\", \"translateWithId\", \"placeHolderText\", \"placeholder\", \"labelText\", \"expanded\", \"defaultExpanded\", \"defaultValue\", \"disabled\", \"onExpand\", \"persistent\", \"persistant\", \"id\", \"onBlur\", \"onFocus\"];\n\n/**\n * Copyright IBM Corp. 2016, 2019\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useMemo, useRef, useState, useEffect } from 'react';\nimport Search from '../Search';\nimport setupGetInstanceId from './tools/instanceId';\nimport deprecate from '../../prop-types/deprecate';\nimport { usePrefix } from '../../internal/usePrefix';\nvar getInstanceId = setupGetInstanceId();\nvar translationKeys = {\n 'carbon.table.toolbar.search.label': 'Filter table',\n 'carbon.table.toolbar.search.placeholder': 'Filter table'\n};\n\nvar translateWithId = function translateWithId(id) {\n return translationKeys[id];\n};\n\nvar TableToolbarSearch = function TableToolbarSearch(_ref) {\n var _cx;\n\n var className = _ref.className,\n searchContainerClass = _ref.searchContainerClass,\n onChangeProp = _ref.onChange,\n onClear = _ref.onClear,\n t = _ref.translateWithId,\n placeHolderText = _ref.placeHolderText,\n placeholder = _ref.placeholder,\n labelText = _ref.labelText,\n expandedProp = _ref.expanded,\n defaultExpanded = _ref.defaultExpanded,\n defaultValue = _ref.defaultValue,\n disabled = _ref.disabled,\n onExpand = _ref.onExpand,\n persistent = _ref.persistent,\n persistant = _ref.persistant,\n id = _ref.id,\n onBlur = _ref.onBlur,\n onFocus = _ref.onFocus,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _useRef = useRef(expandedProp !== undefined),\n controlled = _useRef.current;\n\n var _useState = useState(defaultExpanded || defaultValue),\n _useState2 = _slicedToArray(_useState, 2),\n expandedState = _useState2[0],\n setExpandedState = _useState2[1];\n\n var expanded = controlled ? expandedProp : expandedState;\n\n var _useState3 = useState(defaultValue || ''),\n _useState4 = _slicedToArray(_useState3, 2),\n value = _useState4[0],\n setValue = _useState4[1];\n\n var uniqueId = useMemo(getInstanceId, []);\n\n var _useState5 = useState(null),\n _useState6 = _slicedToArray(_useState5, 2),\n focusTarget = _useState6[0],\n setFocusTarget = _useState6[1];\n\n var prefix = usePrefix();\n useEffect(function () {\n if (focusTarget) {\n focusTarget.current.querySelector('input').focus();\n setFocusTarget(null);\n }\n }, [focusTarget]);\n useEffect(function () {\n if (defaultValue) {\n onChangeProp('', defaultValue);\n }\n }, //eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n var searchClasses = cx(className, (_cx = {}, _defineProperty(_cx, searchContainerClass, searchContainerClass), _defineProperty(_cx, \"\".concat(prefix, \"--toolbar-search-container-active\"), expanded), _defineProperty(_cx, \"\".concat(prefix, \"--toolbar-search-container-disabled\"), disabled), _defineProperty(_cx, \"\".concat(prefix, \"--toolbar-search-container-expandable\"), !persistent || !persistent && !persistant), _defineProperty(_cx, \"\".concat(prefix, \"--toolbar-search-container-persistent\"), persistent || persistant), _cx));\n\n var handleExpand = function handleExpand(event) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !expanded;\n\n if (!disabled) {\n if (!controlled && (!persistent || !persistent && !persistant)) {\n setExpandedState(value);\n }\n\n if (onExpand) {\n onExpand(event, value);\n }\n }\n };\n\n var onChange = function onChange(e) {\n setValue(e.target.value);\n\n if (onChangeProp) {\n onChangeProp(e);\n }\n };\n\n var handleOnFocus = function handleOnFocus(event) {\n return handleExpand(event, true);\n };\n\n var handleOnBlur = function handleOnBlur(event) {\n return !value && handleExpand(event, false);\n };\n\n return /*#__PURE__*/React.createElement(Search, _extends({\n disabled: disabled,\n className: searchClasses,\n value: value,\n id: typeof id !== 'undefined' ? id : uniqueId.toString(),\n labelText: labelText || t('carbon.table.toolbar.search.label'),\n placeholder: placeHolderText || placeholder || t('carbon.table.toolbar.search.placeholder'),\n onChange: onChange,\n onClear: onClear,\n onFocus: onFocus ? function (event) {\n return onFocus(event, handleExpand);\n } : handleOnFocus,\n onBlur: onBlur ? function (event) {\n return onBlur(event, handleExpand);\n } : handleOnBlur\n }, rest));\n};\n\nTableToolbarSearch.propTypes = {\n children: PropTypes.node,\n\n /**\n * Provide an optional class name for the search container\n */\n className: PropTypes.string,\n\n /**\n * Specifies if the search should initially render in an expanded state\n */\n defaultExpanded: PropTypes.bool,\n\n /**\n * Provide an optional default value for the Search component\n */\n defaultValue: PropTypes.string,\n\n /**\n * Specifies if the search should be disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Specifies if the search should expand\n */\n expanded: PropTypes.bool,\n\n /**\n * Provide an optional id for the search container\n */\n id: PropTypes.string,\n\n /**\n * Provide an optional label text for the Search component icon\n */\n labelText: PropTypes.string,\n\n /**\n * Provide an optional function to be called when the search input loses focus, this will be\n * passed the event as the first parameter and a function to handle the expanding of the search\n * input as the second\n */\n onBlur: PropTypes.func,\n\n /**\n * Provide an optional hook that is called each time the input is updated\n */\n onChange: PropTypes.func,\n\n /**\n * Optional callback called when the search value is cleared.\n */\n onClear: PropTypes.func,\n\n /**\n * Provide an optional hook that is called each time the input is expanded\n */\n onExpand: PropTypes.func,\n\n /**\n * Provide an optional function to be called when the search input gains focus, this will be\n * passed the event as the first parameter and a function to handle the expanding of the search\n * input as the second.\n */\n onFocus: PropTypes.func,\n persistant: deprecate(PropTypes.bool, \"\\nThe prop `persistant` for TableToolbarSearch has been deprecated in favor of `persistent`. Please use `persistent` instead.\"),\n\n /**\n * Whether the search should be allowed to expand\n */\n persistent: PropTypes.bool,\n\n /**\n * Deprecated in favor of `placeholder`\n */\n placeHolderText: deprecate(PropTypes.string, \"\\nThe prop `placeHolderText` for TableToolbarSearch has been deprecated in favor of `placeholder`. Please use `placeholder` instead.\"),\n\n /**\n * Provide an optional placeholder text for the Search component\n */\n placeholder: PropTypes.string,\n\n /**\n * Provide an optional className for the overall container of the Search\n */\n searchContainerClass: PropTypes.string,\n\n /**\n * Optional prop to specify the tabIndex of the <Search> (in expanded state) or the container (in collapsed state)\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * Provide custom text for the component for each translation id\n */\n translateWithId: PropTypes.func.isRequired\n};\nTableToolbarSearch.defaultProps = {\n tabIndex: '0',\n translateWithId: translateWithId,\n persistent: false,\n onClear: function onClear() {}\n};\nexport default TableToolbarSearch;","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-9ecdf98c.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _circle, _path52, _path53, _circle2, _path54, _path55, _circle3, _path56, _path57, _circle4, _path58, _path59, _circle5, _path60, _path61, _circle6, _path62, _path63, _circle7, _path64, _path65, _circle8, _path66, _path67, _circle9, _circle10, _circle11, _path68, _path69, _path70, _circle12, _circle13, _circle14, _path71, _path72, _path73, _circle15, _circle16, _circle17, _path74, _path75, _path76, _circle18, _circle19, _circle20, _path77, _path78, _path79, _path80, _path81, _path82, _path83, _path84, _path85, _path86, _path87, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _circle21, _circle22, _circle23, _circle24, _circle25, _circle26, _circle27, _circle28, _circle29, _circle30, _circle31, _circle32, _circle33, _circle34, _circle35, _circle36, _circle37, _circle38, _circle39, _circle40, _circle41, _circle42, _circle43, _circle44, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _circle45, _path340, _circle46, _path341, _circle47, _path342, _circle48, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar Number_720 = /*#__PURE__*/React.forwardRef(function Number_720(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 9L12 9 12 13 14 13 14 11 17.85 11 13 23 15.16 23 20 11 20 9z\"\n })), children);\n});\nvar Number_716 = /*#__PURE__*/React.forwardRef(function Number_716(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 9L12 9 12 13 14 13 14 11 17.85 11 13 23 15.16 23 20 11 20 9z\"\n })), children);\n});\nvar Number_832 = /*#__PURE__*/React.forwardRef(function Number_832(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,2v4H14V11ZM14,21V17h4v4Z\"\n })), children);\n});\nvar Number_824 = /*#__PURE__*/React.forwardRef(function Number_824(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,2v4H14V11ZM14,21V17h4v4Z\"\n })), children);\n});\nvar Number_820 = /*#__PURE__*/React.forwardRef(function Number_820(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,2v4H14V11ZM14,21V17h4v4Z\"\n })), children);\n});\nvar Number_816 = /*#__PURE__*/React.forwardRef(function Number_816(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,2v4H14V11ZM14,21V17h4v4Z\"\n })), children);\n});\nvar Number_932 = /*#__PURE__*/React.forwardRef(function Number_932(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2v5a2,2,0,0,0,2,2h4v3H13v2h5a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,7H14V11h4Z\"\n })), children);\n});\nvar Number_924 = /*#__PURE__*/React.forwardRef(function Number_924(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2v5a2,2,0,0,0,2,2h4v3H13v2h5a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,7H14V11h4Z\"\n })), children);\n});\nvar Number_920 = /*#__PURE__*/React.forwardRef(function Number_920(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2v5a2,2,0,0,0,2,2h4v3H13v2h5a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,7H14V11h4Z\"\n })), children);\n});\nvar Number_916 = /*#__PURE__*/React.forwardRef(function Number_916(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,9H14a2,2,0,0,0-2,2v5a2,2,0,0,0,2,2h4v3H13v2h5a2,2,0,0,0,2-2V11A2,2,0,0,0,18,9Zm0,7H14V11h4Z\"\n })), children);\n});\nvar NumberSmall_032 = /*#__PURE__*/React.forwardRef(function NumberSmall_032(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v6h2V13Z\"\n })), children);\n});\nvar NumberSmall_024 = /*#__PURE__*/React.forwardRef(function NumberSmall_024(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v6h2V13Z\"\n })), children);\n});\nvar NumberSmall_020 = /*#__PURE__*/React.forwardRef(function NumberSmall_020(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v6h2V13Z\"\n })), children);\n});\nvar NumberSmall_016 = /*#__PURE__*/React.forwardRef(function NumberSmall_016(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v6h2V13Z\"\n })), children);\n});\nvar NumberSmall_132 = /*#__PURE__*/React.forwardRef(function NumberSmall_132(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19L17 11 15 11 15 12 13 12 13 14 15 14 15 19 13 19 13 21 19 21 19 19 17 19z\"\n })), children);\n});\nvar NumberSmall_124 = /*#__PURE__*/React.forwardRef(function NumberSmall_124(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19L17 11 15 11 15 12 13 12 13 14 15 14 15 19 13 19 13 21 19 21 19 19 17 19z\"\n })), children);\n});\nvar NumberSmall_120 = /*#__PURE__*/React.forwardRef(function NumberSmall_120(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19L17 11 15 11 15 12 13 12 13 14 15 14 15 19 13 19 13 21 19 21 19 19 17 19z\"\n })), children);\n});\nvar NumberSmall_116 = /*#__PURE__*/React.forwardRef(function NumberSmall_116(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 19L17 11 15 11 15 12 13 12 13 14 15 14 15 19 13 19 13 21 19 21 19 19 17 19z\"\n })), children);\n});\nvar NumberSmall_232 = /*#__PURE__*/React.forwardRef(function NumberSmall_232(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,21H13V17a2,2,0,0,1,2-2h2V13H13V11h4a2,2,0,0,1,2,2v2a2,2,0,0,1-2,2H15v2h4Z\"\n })), children);\n});\nvar NumberSmall_224 = /*#__PURE__*/React.forwardRef(function NumberSmall_224(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,21H13V17a2,2,0,0,1,2-2h2V13H13V11h4a2,2,0,0,1,2,2v2a2,2,0,0,1-2,2H15v2h4Z\"\n })), children);\n});\nvar NumberSmall_220 = /*#__PURE__*/React.forwardRef(function NumberSmall_220(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,21H13V17a2,2,0,0,1,2-2h2V13H13V11h4a2,2,0,0,1,2,2v2a2,2,0,0,1-2,2H15v2h4Z\"\n })), children);\n});\nvar NumberSmall_216 = /*#__PURE__*/React.forwardRef(function NumberSmall_216(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19,21H13V17a2,2,0,0,1,2-2h2V13H13V11h4a2,2,0,0,1,2,2v2a2,2,0,0,1-2,2H15v2h4Z\"\n })), children);\n});\nvar NumberSmall_332 = /*#__PURE__*/React.forwardRef(function NumberSmall_332(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H13v2h4v2H14v2h3v2H13v2h4a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Z\"\n })), children);\n});\nvar NumberSmall_324 = /*#__PURE__*/React.forwardRef(function NumberSmall_324(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H13v2h4v2H14v2h3v2H13v2h4a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Z\"\n })), children);\n});\nvar NumberSmall_320 = /*#__PURE__*/React.forwardRef(function NumberSmall_320(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H13v2h4v2H14v2h3v2H13v2h4a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Z\"\n })), children);\n});\nvar NumberSmall_316 = /*#__PURE__*/React.forwardRef(function NumberSmall_316(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H13v2h4v2H14v2h3v2H13v2h4a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Z\"\n })), children);\n});\nvar NumberSmall_432 = /*#__PURE__*/React.forwardRef(function NumberSmall_432(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 11L17 15 15 15 15 11 13 11 13 17 17 17 17 21 19 21 19 11 17 11z\"\n })), children);\n});\nvar NumberSmall_424 = /*#__PURE__*/React.forwardRef(function NumberSmall_424(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 11L17 15 15 15 15 11 13 11 13 17 17 17 17 21 19 21 19 11 17 11z\"\n })), children);\n});\nvar NumberSmall_420 = /*#__PURE__*/React.forwardRef(function NumberSmall_420(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 11L17 15 15 15 15 11 13 11 13 17 17 17 17 21 19 21 19 11 17 11z\"\n })), children);\n});\nvar NumberSmall_416 = /*#__PURE__*/React.forwardRef(function NumberSmall_416(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 11L17 15 15 15 15 11 13 11 13 17 17 17 17 21 19 21 19 11 17 11z\"\n })), children);\n});\nvar NumberSmall_532 = /*#__PURE__*/React.forwardRef(function NumberSmall_532(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H13V19h4V17H13V11h6v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Z\"\n })), children);\n});\nvar NumberSmall_524 = /*#__PURE__*/React.forwardRef(function NumberSmall_524(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H13V19h4V17H13V11h6v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Z\"\n })), children);\n});\nvar NumberSmall_520 = /*#__PURE__*/React.forwardRef(function NumberSmall_520(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H13V19h4V17H13V11h6v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Z\"\n })), children);\n});\nvar NumberSmall_516 = /*#__PURE__*/React.forwardRef(function NumberSmall_516(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H13V19h4V17H13V11h6v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Z\"\n })), children);\n});\nvar NumberSmall_632 = /*#__PURE__*/React.forwardRef(function NumberSmall_632(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h3v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Zm-2-4v2h2V17Z\"\n })), children);\n});\nvar NumberSmall_624 = /*#__PURE__*/React.forwardRef(function NumberSmall_624(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h3v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Zm-2-4v2h2V17Z\"\n })), children);\n});\nvar NumberSmall_620 = /*#__PURE__*/React.forwardRef(function NumberSmall_620(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h3v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Zm-2-4v2h2V17Z\"\n })), children);\n});\nvar NumberSmall_616 = /*#__PURE__*/React.forwardRef(function NumberSmall_616(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h3v2H15v2h2a2,2,0,0,1,2,2v2A2,2,0,0,1,17,21Zm-2-4v2h2V17Z\"\n })), children);\n});\nvar NumberSmall_732 = /*#__PURE__*/React.forwardRef(function NumberSmall_732(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.44 21L14.44 21 17 13 15 13 15 14 13 14 13 11 19 11 19 13 16.44 21z\"\n })), children);\n});\nvar NumberSmall_724 = /*#__PURE__*/React.forwardRef(function NumberSmall_724(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.44 21L14.44 21 17 13 15 13 15 14 13 14 13 11 19 11 19 13 16.44 21z\"\n })), children);\n});\nvar NumberSmall_720 = /*#__PURE__*/React.forwardRef(function NumberSmall_720(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.44 21L14.44 21 17 13 15 13 15 14 13 14 13 11 19 11 19 13 16.44 21z\"\n })), children);\n});\nvar NumberSmall_716 = /*#__PURE__*/React.forwardRef(function NumberSmall_716(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.44 21L14.44 21 17 13 15 13 15 14 13 14 13 11 19 11 19 13 16.44 21z\"\n })), children);\n});\nvar NumberSmall_832 = /*#__PURE__*/React.forwardRef(function NumberSmall_832(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H15a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h2a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Zm0,2v2H15V13Zm-2,6V17h2v2Z\"\n })), children);\n});\nvar NumberSmall_824 = /*#__PURE__*/React.forwardRef(function NumberSmall_824(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H15a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h2a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Zm0,2v2H15V13Zm-2,6V17h2v2Z\"\n })), children);\n});\nvar NumberSmall_820 = /*#__PURE__*/React.forwardRef(function NumberSmall_820(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H15a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h2a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Zm0,2v2H15V13Zm-2,6V17h2v2Z\"\n })), children);\n});\nvar NumberSmall_816 = /*#__PURE__*/React.forwardRef(function NumberSmall_816(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,11H15a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h2a2,2,0,0,0,2-2V13A2,2,0,0,0,17,11Zm0,2v2H15V13Zm-2,6V17h2v2Z\"\n })), children);\n});\nvar NumberSmall_932 = /*#__PURE__*/React.forwardRef(function NumberSmall_932(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H14V19h3V17H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v2h2V13Z\"\n })), children);\n});\nvar NumberSmall_924 = /*#__PURE__*/React.forwardRef(function NumberSmall_924(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H14V19h3V17H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v2h2V13Z\"\n })), children);\n});\nvar NumberSmall_920 = /*#__PURE__*/React.forwardRef(function NumberSmall_920(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H14V19h3V17H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v2h2V13Z\"\n })), children);\n});\nvar NumberSmall_916 = /*#__PURE__*/React.forwardRef(function NumberSmall_916(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17,21H14V19h3V17H15a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h2a2,2,0,0,1,2,2v6A2,2,0,0,1,17,21Zm-2-8v2h2V13Z\"\n })), children);\n});\nvar ObjectStorage32 = /*#__PURE__*/React.forwardRef(function ObjectStorage32(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V22A2.0023,2.0023,0,0,0,28,20Z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 8H22v6H16v8h8V16h6zM22 20H18V16h4zm6-6H24V10h4zM18 10H10V2h8zM12 8h4V4H12z\"\n })), children);\n});\nvar ObjectStorage24 = /*#__PURE__*/React.forwardRef(function ObjectStorage24(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V22A2.0023,2.0023,0,0,0,28,20Z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 8H22v6H16v8h8V16h6zM22 20H18V16h4zm6-6H24V10h4zM18 10H10V2h8zM12 8h4V4H12z\"\n })), children);\n});\nvar ObjectStorage20 = /*#__PURE__*/React.forwardRef(function ObjectStorage20(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V22A2.0023,2.0023,0,0,0,28,20Z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 8H22v6H16v8h8V16h6zM22 20H18V16h4zm6-6H24V10h4zM18 10H10V2h8zM12 8h4V4H12z\"\n })), children);\n});\nvar ObjectStorage16 = /*#__PURE__*/React.forwardRef(function ObjectStorage16(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V22A2.0023,2.0023,0,0,0,28,20Z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 8H22v6H16v8h8V16h6zM22 20H18V16h4zm6-6H24V10h4zM18 10H10V2h8zM12 8h4V4H12z\"\n })), children);\n});\nvar ObjectStorageAlt32 = /*#__PURE__*/React.forwardRef(function ObjectStorageAlt32(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,14a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023A2.9578,2.9578,0,0,0,15,12a2.9578,2.9578,0,0,0-.0413-.4087L18.9626,9.189A2.9909,2.9909,0,1,0,18,7a2.9345,2.9345,0,0,0,.0415.4092L14.0376,9.8115a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,18,17a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,21,6Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,12,13Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,21,18Z\"\n })), children);\n});\nvar ObjectStorageAlt24 = /*#__PURE__*/React.forwardRef(function ObjectStorageAlt24(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,14a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023A2.9578,2.9578,0,0,0,15,12a2.9578,2.9578,0,0,0-.0413-.4087L18.9626,9.189A2.9909,2.9909,0,1,0,18,7a2.9345,2.9345,0,0,0,.0415.4092L14.0376,9.8115a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,18,17a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,21,6Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,12,13Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,21,18Z\"\n })), children);\n});\nvar ObjectStorageAlt20 = /*#__PURE__*/React.forwardRef(function ObjectStorageAlt20(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,14a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023A2.9578,2.9578,0,0,0,15,12a2.9578,2.9578,0,0,0-.0413-.4087L18.9626,9.189A2.9909,2.9909,0,1,0,18,7a2.9345,2.9345,0,0,0,.0415.4092L14.0376,9.8115a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,18,17a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,21,6Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,12,13Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,21,18Z\"\n })), children);\n});\nvar ObjectStorageAlt16 = /*#__PURE__*/React.forwardRef(function ObjectStorageAlt16(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H26v2h2v6H4V22H14V20H4a2.0024,2.0024,0,0,0-2,2v6a2.0024,2.0024,0,0,0,2,2H28a2.0024,2.0024,0,0,0,2-2V22A2.0024,2.0024,0,0,0,28,20Z\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"7\",\n cy: \"25\",\n r: \"1\"\n })), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,14a2.981,2.981,0,0,0-2.0374.811l-4.0039-2.4023A2.9578,2.9578,0,0,0,15,12a2.9578,2.9578,0,0,0-.0413-.4087L18.9626,9.189A2.9909,2.9909,0,1,0,18,7a2.9345,2.9345,0,0,0,.0415.4092L14.0376,9.8115a3,3,0,1,0,0,4.377l4.0039,2.4023A2.9345,2.9345,0,0,0,18,17a3,3,0,1,0,3-3Zm0-8a1,1,0,1,1-1,1A1.0009,1.0009,0,0,1,21,6Zm-9,7a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,12,13Zm9,5a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,21,18Z\"\n })), children);\n});\nvar ObservedHail32 = /*#__PURE__*/React.forwardRef(function ObservedHail32(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"23.5\",\n r: \"1.5\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"10.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.964 14.5H17.036V16.499H11.964z\",\n transform: \"rotate(-45 14.5 15.5)\"\n })), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.964 14.5H23.035999999999998V16.499H17.964z\",\n transform: \"rotate(-45 20.5 15.5)\"\n })), children);\n});\nvar ObservedHail24 = /*#__PURE__*/React.forwardRef(function ObservedHail24(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"23.5\",\n r: \"1.5\"\n })), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"10.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.964 14.5H17.036V16.499H11.964z\",\n transform: \"rotate(-45 14.5 15.5)\"\n })), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.964 14.5H23.035999999999998V16.499H17.964z\",\n transform: \"rotate(-45 20.5 15.5)\"\n })), children);\n});\nvar ObservedHail20 = /*#__PURE__*/React.forwardRef(function ObservedHail20(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"23.5\",\n r: \"1.5\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"10.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.964 14.5H17.036V16.499H11.964z\",\n transform: \"rotate(-45 14.5 15.5)\"\n })), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.964 14.5H23.035999999999998V16.499H17.964z\",\n transform: \"rotate(-45 20.5 15.5)\"\n })), children);\n});\nvar ObservedHail16 = /*#__PURE__*/React.forwardRef(function ObservedHail16(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"23.5\",\n r: \"1.5\"\n })), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"10.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16.5\",\n cy: \"19.5\",\n r: \"1.5\"\n })), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.964 14.5H17.036V16.499H11.964z\",\n transform: \"rotate(-45 14.5 15.5)\"\n })), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.964 14.5H23.035999999999998V16.499H17.964z\",\n transform: \"rotate(-45 20.5 15.5)\"\n })), children);\n});\nvar ObservedLightning32 = /*#__PURE__*/React.forwardRef(function ObservedLightning32(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.67 24L13.934 23 16.221 19 12.332 19 16.325 12 18.062 13 15.778 17 19.668 17 15.67 24z\"\n })), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), children);\n});\nvar ObservedLightning24 = /*#__PURE__*/React.forwardRef(function ObservedLightning24(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.67 24L13.934 23 16.221 19 12.332 19 16.325 12 18.062 13 15.778 17 19.668 17 15.67 24z\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), children);\n});\nvar ObservedLightning20 = /*#__PURE__*/React.forwardRef(function ObservedLightning20(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.67 24L13.934 23 16.221 19 12.332 19 16.325 12 18.062 13 15.778 17 19.668 17 15.67 24z\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), children);\n});\nvar ObservedLightning16 = /*#__PURE__*/React.forwardRef(function ObservedLightning16(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.67 24L13.934 23 16.221 19 12.332 19 16.325 12 18.062 13 15.778 17 19.668 17 15.67 24z\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,18A12,12,0,1,0,16,6H12V1L6,7l6,6V8h4A10,10,0,1,1,6,18Z\"\n })), children);\n});\nvar Omega32 = /*#__PURE__*/React.forwardRef(function Omega32(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7373,25A14.3093,14.3093,0,0,0,27,15C27,8.42,22.58,4,16,4S5,8.42,5,15A14.3093,14.3093,0,0,0,9.2627,25H4v2h8V24.7617A12.5683,12.5683,0,0,1,7,15c0-5.4673,3.5327-9,9-9s9,3.5327,9,9a12.5683,12.5683,0,0,1-5,9.7617V27h8V25Z\"\n })), children);\n});\nvar Omega24 = /*#__PURE__*/React.forwardRef(function Omega24(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7373,25A14.3093,14.3093,0,0,0,27,15C27,8.42,22.58,4,16,4S5,8.42,5,15A14.3093,14.3093,0,0,0,9.2627,25H4v2h8V24.7617A12.5683,12.5683,0,0,1,7,15c0-5.4673,3.5327-9,9-9s9,3.5327,9,9a12.5683,12.5683,0,0,1-5,9.7617V27h8V25Z\"\n })), children);\n});\nvar Omega20 = /*#__PURE__*/React.forwardRef(function Omega20(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7373,25A14.3093,14.3093,0,0,0,27,15C27,8.42,22.58,4,16,4S5,8.42,5,15A14.3093,14.3093,0,0,0,9.2627,25H4v2h8V24.7617A12.5683,12.5683,0,0,1,7,15c0-5.4673,3.5327-9,9-9s9,3.5327,9,9a12.5683,12.5683,0,0,1-5,9.7617V27h8V25Z\"\n })), children);\n});\nvar Omega16 = /*#__PURE__*/React.forwardRef(function Omega16(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22.7373,25A14.3093,14.3093,0,0,0,27,15C27,8.42,22.58,4,16,4S5,8.42,5,15A14.3093,14.3093,0,0,0,9.2627,25H4v2h8V24.7617A12.5683,12.5683,0,0,1,7,15c0-5.4673,3.5327-9,9-9s9,3.5327,9,9a12.5683,12.5683,0,0,1-5,9.7617V27h8V25Z\"\n })), children);\n});\nvar Opacity32 = /*#__PURE__*/React.forwardRef(function Opacity32(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 6H10V10H6zM10 10H14V14H10zM14 6H18V10H14zM22 6H26V10H22zM6 14H10V18H6zM14 14H18V18H14zM22 14H26V18H22zM6 22H10V26H6zM14 22H18V26H14zM22 22H26V26H22zM18 10H22V14H18zM10 18H14V22H10zM18 18H22V22H18z\"\n })), children);\n});\nvar Opacity24 = /*#__PURE__*/React.forwardRef(function Opacity24(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 6H10V10H6zM10 10H14V14H10zM14 6H18V10H14zM22 6H26V10H22zM6 14H10V18H6zM14 14H18V18H14zM22 14H26V18H22zM6 22H10V26H6zM14 22H18V26H14zM22 22H26V26H22zM18 10H22V14H18zM10 18H14V22H10zM18 18H22V22H18z\"\n })), children);\n});\nvar Opacity20 = /*#__PURE__*/React.forwardRef(function Opacity20(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 6H10V10H6zM10 10H14V14H10zM14 6H18V10H14zM22 6H26V10H22zM6 14H10V18H6zM14 14H18V18H14zM22 14H26V18H22zM6 22H10V26H6zM14 22H18V26H14zM22 22H26V26H22zM18 10H22V14H18zM10 18H14V22H10zM18 18H22V22H18z\"\n })), children);\n});\nvar Opacity16 = /*#__PURE__*/React.forwardRef(function Opacity16(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 6H10V10H6zM10 10H14V14H10zM14 6H18V10H14zM22 6H26V10H22zM6 14H10V18H6zM14 14H18V18H14zM22 14H26V18H22zM6 22H10V26H6zM14 22H18V26H14zM22 22H26V26H22zM18 10H22V14H18zM10 18H14V22H10zM18 18H22V22H18z\"\n })), children);\n});\nvar OpenPanelBottom32 = /*#__PURE__*/React.forwardRef(function OpenPanelBottom32(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6ZM4,26V20H28v6Z\"\n })), children);\n});\nvar OpenPanelBottom24 = /*#__PURE__*/React.forwardRef(function OpenPanelBottom24(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6ZM4,26V20H28v6Z\"\n })), children);\n});\nvar OpenPanelBottom20 = /*#__PURE__*/React.forwardRef(function OpenPanelBottom20(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6ZM4,26V20H28v6Z\"\n })), children);\n});\nvar OpenPanelBottom16 = /*#__PURE__*/React.forwardRef(function OpenPanelBottom16(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6ZM4,26V20H28v6Z\"\n })), children);\n});\nvar OpenPanelFilledBottom32 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledBottom32(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6Z\"\n })), children);\n});\nvar OpenPanelFilledBottom24 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledBottom24(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6Z\"\n })), children);\n});\nvar OpenPanelFilledBottom20 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledBottom20(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6Z\"\n })), children);\n});\nvar OpenPanelFilledBottom16 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledBottom16(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2V18H4V6Z\"\n })), children);\n});\nvar OpenPanelFilledLeft32 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledLeft32(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V6H28Z\"\n })), children);\n});\nvar OpenPanelFilledLeft24 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledLeft24(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V6H28Z\"\n })), children);\n});\nvar OpenPanelFilledLeft20 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledLeft20(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V6H28Z\"\n })), children);\n});\nvar OpenPanelFilledLeft16 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledLeft16(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V6H28Z\"\n })), children);\n});\nvar OpenPanelFilledRight32 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledRight32(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4Z\"\n })), children);\n});\nvar OpenPanelFilledRight24 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledRight24(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4Z\"\n })), children);\n});\nvar OpenPanelFilledRight20 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledRight20(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4Z\"\n })), children);\n});\nvar OpenPanelFilledRight16 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledRight16(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4Z\"\n })), children);\n});\nvar OpenPanelFilledTop32 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledTop32(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelFilledTop24 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledTop24(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelFilledTop20 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledTop20(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelFilledTop16 = /*#__PURE__*/React.forwardRef(function OpenPanelFilledTop16(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelLeft32 = /*#__PURE__*/React.forwardRef(function OpenPanelLeft32(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6h6V26H4ZM28,26H12V6H28Z\"\n })), children);\n});\nvar OpenPanelLeft24 = /*#__PURE__*/React.forwardRef(function OpenPanelLeft24(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6h6V26H4ZM28,26H12V6H28Z\"\n })), children);\n});\nvar OpenPanelLeft20 = /*#__PURE__*/React.forwardRef(function OpenPanelLeft20(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6h6V26H4ZM28,26H12V6H28Z\"\n })), children);\n});\nvar OpenPanelLeft16 = /*#__PURE__*/React.forwardRef(function OpenPanelLeft16(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6h6V26H4ZM28,26H12V6H28Z\"\n })), children);\n});\nvar OpenPanelRight32 = /*#__PURE__*/React.forwardRef(function OpenPanelRight32(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4ZM28,26H22V6h6Z\"\n })), children);\n});\nvar OpenPanelRight24 = /*#__PURE__*/React.forwardRef(function OpenPanelRight24(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4ZM28,26H22V6h6Z\"\n })), children);\n});\nvar OpenPanelRight20 = /*#__PURE__*/React.forwardRef(function OpenPanelRight20(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4ZM28,26H22V6h6Z\"\n })), children);\n});\nvar OpenPanelRight16 = /*#__PURE__*/React.forwardRef(function OpenPanelRight16(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM4,6H20V26H4ZM28,26H22V6h6Z\"\n })), children);\n});\nvar OpenPanelTop32 = /*#__PURE__*/React.forwardRef(function OpenPanelTop32(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2v6H4V6ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelTop24 = /*#__PURE__*/React.forwardRef(function OpenPanelTop24(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2v6H4V6ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelTop20 = /*#__PURE__*/React.forwardRef(function OpenPanelTop20(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2v6H4V6ZM4,26V14H28V26Z\"\n })), children);\n});\nvar OpenPanelTop16 = /*#__PURE__*/React.forwardRef(function OpenPanelTop16(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,2v6H4V6ZM4,26V14H28V26Z\"\n })), children);\n});\nvar QOperation32 = /*#__PURE__*/React.forwardRef(function QOperation32(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26L21 26 26 16 21 6 23 6 28 16 23 26zM4 6H6V26H4zM16 9H12a2 2 0 00-2 2V21a2 2 0 002 2h4a2 2 0 002-2V11A2 2 0 0016 9zm0 12H12V11h4z\"\n })), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15H15V17H13z\"\n })), children);\n});\nvar QOperation24 = /*#__PURE__*/React.forwardRef(function QOperation24(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26L21 26 26 16 21 6 23 6 28 16 23 26zM4 6H6V26H4zM16 9H12a2 2 0 00-2 2V21a2 2 0 002 2h4a2 2 0 002-2V11A2 2 0 0016 9zm0 12H12V11h4z\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15H15V17H13z\"\n })), children);\n});\nvar QOperation20 = /*#__PURE__*/React.forwardRef(function QOperation20(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26L21 26 26 16 21 6 23 6 28 16 23 26zM4 6H6V26H4zM16 9H12a2 2 0 00-2 2V21a2 2 0 002 2h4a2 2 0 002-2V11A2 2 0 0016 9zm0 12H12V11h4z\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15H15V17H13z\"\n })), children);\n});\nvar QOperation16 = /*#__PURE__*/React.forwardRef(function QOperation16(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26L21 26 26 16 21 6 23 6 28 16 23 26zM4 6H6V26H4zM16 9H12a2 2 0 00-2 2V21a2 2 0 002 2h4a2 2 0 002-2V11A2 2 0 0016 9zm0 12H12V11h4z\"\n })), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15H15V17H13z\"\n })), children);\n});\nvar QOperationGauge32 = /*#__PURE__*/React.forwardRef(function QOperationGauge32(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L24 4 24 6 27.75 6 24 10 24 12 30 12 30 10 26.38 10 30 6 30 4zM20 17.62L22.08 14l-1.73-1-2.18 3.76A12 12 0 002 28H4a10 10 0 0113.16-9.48L14 24a2 2 0 102 2 2 2 0 00-.27-1L19 19.35A10 10 0 0124 28h2A12 12 0 0020 17.62z\"\n })), children);\n});\nvar QOperationGauge24 = /*#__PURE__*/React.forwardRef(function QOperationGauge24(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L24 4 24 6 27.75 6 24 10 24 12 30 12 30 10 26.38 10 30 6 30 4zM20 17.62L22.08 14l-1.73-1-2.18 3.76A12 12 0 002 28H4a10 10 0 0113.16-9.48L14 24a2 2 0 102 2 2 2 0 00-.27-1L19 19.35A10 10 0 0124 28h2A12 12 0 0020 17.62z\"\n })), children);\n});\nvar QOperationGauge20 = /*#__PURE__*/React.forwardRef(function QOperationGauge20(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L24 4 24 6 27.75 6 24 10 24 12 30 12 30 10 26.38 10 30 6 30 4zM20 17.62L22.08 14l-1.73-1-2.18 3.76A12 12 0 002 28H4a10 10 0 0113.16-9.48L14 24a2 2 0 102 2 2 2 0 00-.27-1L19 19.35A10 10 0 0124 28h2A12 12 0 0020 17.62z\"\n })), children);\n});\nvar QOperationGauge16 = /*#__PURE__*/React.forwardRef(function QOperationGauge16(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4L24 4 24 6 27.75 6 24 10 24 12 30 12 30 10 26.38 10 30 6 30 4zM20 17.62L22.08 14l-1.73-1-2.18 3.76A12 12 0 002 28H4a10 10 0 0113.16-9.48L14 24a2 2 0 102 2 2 2 0 00-.27-1L19 19.35A10 10 0 0124 28h2A12 12 0 0020 17.62z\"\n })), children);\n});\nvar QOperationIf32 = /*#__PURE__*/React.forwardRef(function QOperationIf32(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H14V23H12zM12 9H14V11H12zM23 11V9H20a2 2 0 00-2 2v2H16v2h2v8h2V15h3V13H20V11z\"\n })), children);\n});\nvar QOperationIf24 = /*#__PURE__*/React.forwardRef(function QOperationIf24(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H14V23H12zM12 9H14V11H12zM23 11V9H20a2 2 0 00-2 2v2H16v2h2v8h2V15h3V13H20V11z\"\n })), children);\n});\nvar QOperationIf20 = /*#__PURE__*/React.forwardRef(function QOperationIf20(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H14V23H12zM12 9H14V11H12zM23 11V9H20a2 2 0 00-2 2v2H16v2h2v8h2V15h3V13H20V11z\"\n })), children);\n});\nvar QOperationIf16 = /*#__PURE__*/React.forwardRef(function QOperationIf16(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 13H14V23H12zM12 9H14V11H12zM23 11V9H20a2 2 0 00-2 2v2H16v2h2v8h2V15h3V13H20V11z\"\n })), children);\n});\nvar OperationsField32 = /*#__PURE__*/React.forwardRef(function OperationsField32(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 6H26V8H16z\",\n transform: \"rotate(-90 21 7)\"\n })), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 6H30V8H20z\",\n transform: \"rotate(-90 25 7)\"\n })), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 6H34V8H24z\",\n transform: \"rotate(-90 29 7)\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a3.9123,3.9123,0,0,1-4-4,3.9123,3.9123,0,0,1,4-4V10a6,6,0,1,0,6,6H20A3.9123,3.9123,0,0,1,16,20Z\"\n })), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8928,18.4536,26.0979,16,24.78,17.5044l2.7922,2.4517-2.36,4.0878-3.4273-1.1591a9.0315,9.0315,0,0,1-2.7143,1.5644L18.36,28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H16V2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H18.36a2,2,0,0,0,1.9611-1.6079l.5037-2.5186a10.9666,10.9666,0,0,0,1.3267-.7534l2.4194.8184a1.9977,1.9977,0,0,0,2.3728-.8946l2.3606-4.0878A2.0006,2.0006,0,0,0,28.8928,18.4536Z\"\n })), children);\n});\nvar OperationsField24 = /*#__PURE__*/React.forwardRef(function OperationsField24(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 6H26V8H16z\",\n transform: \"rotate(-90 21 7)\"\n })), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 6H30V8H20z\",\n transform: \"rotate(-90 25 7)\"\n })), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 6H34V8H24z\",\n transform: \"rotate(-90 29 7)\"\n })), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a3.9123,3.9123,0,0,1-4-4,3.9123,3.9123,0,0,1,4-4V10a6,6,0,1,0,6,6H20A3.9123,3.9123,0,0,1,16,20Z\"\n })), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8928,18.4536,26.0979,16,24.78,17.5044l2.7922,2.4517-2.36,4.0878-3.4273-1.1591a9.0315,9.0315,0,0,1-2.7143,1.5644L18.36,28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H16V2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H18.36a2,2,0,0,0,1.9611-1.6079l.5037-2.5186a10.9666,10.9666,0,0,0,1.3267-.7534l2.4194.8184a1.9977,1.9977,0,0,0,2.3728-.8946l2.3606-4.0878A2.0006,2.0006,0,0,0,28.8928,18.4536Z\"\n })), children);\n});\nvar OperationsField20 = /*#__PURE__*/React.forwardRef(function OperationsField20(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 6H26V8H16z\",\n transform: \"rotate(-90 21 7)\"\n })), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 6H30V8H20z\",\n transform: \"rotate(-90 25 7)\"\n })), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 6H34V8H24z\",\n transform: \"rotate(-90 29 7)\"\n })), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a3.9123,3.9123,0,0,1-4-4,3.9123,3.9123,0,0,1,4-4V10a6,6,0,1,0,6,6H20A3.9123,3.9123,0,0,1,16,20Z\"\n })), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8928,18.4536,26.0979,16,24.78,17.5044l2.7922,2.4517-2.36,4.0878-3.4273-1.1591a9.0315,9.0315,0,0,1-2.7143,1.5644L18.36,28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H16V2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H18.36a2,2,0,0,0,1.9611-1.6079l.5037-2.5186a10.9666,10.9666,0,0,0,1.3267-.7534l2.4194.8184a1.9977,1.9977,0,0,0,2.3728-.8946l2.3606-4.0878A2.0006,2.0006,0,0,0,28.8928,18.4536Z\"\n })), children);\n});\nvar OperationsField16 = /*#__PURE__*/React.forwardRef(function OperationsField16(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 6H26V8H16z\",\n transform: \"rotate(-90 21 7)\"\n })), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 6H30V8H20z\",\n transform: \"rotate(-90 25 7)\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 6H34V8H24z\",\n transform: \"rotate(-90 29 7)\"\n })), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,20a3.9123,3.9123,0,0,1-4-4,3.9123,3.9123,0,0,1,4-4V10a6,6,0,1,0,6,6H20A3.9123,3.9123,0,0,1,16,20Z\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8928,18.4536,26.0979,16,24.78,17.5044l2.7922,2.4517-2.36,4.0878-3.4273-1.1591a9.0315,9.0315,0,0,1-2.7143,1.5644L18.36,28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H16V2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H18.36a2,2,0,0,0,1.9611-1.6079l.5037-2.5186a10.9666,10.9666,0,0,0,1.3267-.7534l2.4194.8184a1.9977,1.9977,0,0,0,2.3728-.8946l2.3606-4.0878A2.0006,2.0006,0,0,0,28.8928,18.4536Z\"\n })), children);\n});\nvar OperationsRecord32 = /*#__PURE__*/React.forwardRef(function OperationsRecord32(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 20H30V22H20zM20 24H30V26H20zM20 28H30V30H20zM16 20a3.9123 3.9123 0 01-4-4 3.9123 3.9123 0 014-4 3.9123 3.9123 0 014 4h2a6 6 0 10-6 6z\"\n })), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3047,11.0439,26.9441,6.9561a1.9977,1.9977,0,0,0-2.3728-.8946l-2.4341.8233a11.0419,11.0419,0,0,0-1.312-.7583l-.5037-2.5186A2,2,0,0,0,18.36,2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H16V28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H18.36l.71,3.5508a9.0978,9.0978,0,0,1,2.6948,1.5713l3.4468-1.166,2.36,4.0878-2.7978,2.4522L26.0923,16l2.8-2.4536A2.0006,2.0006,0,0,0,29.3047,11.0439Z\"\n })), children);\n});\nvar OperationsRecord24 = /*#__PURE__*/React.forwardRef(function OperationsRecord24(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 20H30V22H20zM20 24H30V26H20zM20 28H30V30H20zM16 20a3.9123 3.9123 0 01-4-4 3.9123 3.9123 0 014-4 3.9123 3.9123 0 014 4h2a6 6 0 10-6 6z\"\n })), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3047,11.0439,26.9441,6.9561a1.9977,1.9977,0,0,0-2.3728-.8946l-2.4341.8233a11.0419,11.0419,0,0,0-1.312-.7583l-.5037-2.5186A2,2,0,0,0,18.36,2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H16V28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H18.36l.71,3.5508a9.0978,9.0978,0,0,1,2.6948,1.5713l3.4468-1.166,2.36,4.0878-2.7978,2.4522L26.0923,16l2.8-2.4536A2.0006,2.0006,0,0,0,29.3047,11.0439Z\"\n })), children);\n});\nvar OperationsRecord20 = /*#__PURE__*/React.forwardRef(function OperationsRecord20(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 20H30V22H20zM20 24H30V26H20zM20 28H30V30H20zM16 20a3.9123 3.9123 0 01-4-4 3.9123 3.9123 0 014-4 3.9123 3.9123 0 014 4h2a6 6 0 10-6 6z\"\n })), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3047,11.0439,26.9441,6.9561a1.9977,1.9977,0,0,0-2.3728-.8946l-2.4341.8233a11.0419,11.0419,0,0,0-1.312-.7583l-.5037-2.5186A2,2,0,0,0,18.36,2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H16V28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H18.36l.71,3.5508a9.0978,9.0978,0,0,1,2.6948,1.5713l3.4468-1.166,2.36,4.0878-2.7978,2.4522L26.0923,16l2.8-2.4536A2.0006,2.0006,0,0,0,29.3047,11.0439Z\"\n })), children);\n});\nvar OperationsRecord16 = /*#__PURE__*/React.forwardRef(function OperationsRecord16(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 20H30V22H20zM20 24H30V26H20zM20 28H30V30H20zM16 20a3.9123 3.9123 0 01-4-4 3.9123 3.9123 0 014-4 3.9123 3.9123 0 014 4h2a6 6 0 10-6 6z\"\n })), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3047,11.0439,26.9441,6.9561a1.9977,1.9977,0,0,0-2.3728-.8946l-2.4341.8233a11.0419,11.0419,0,0,0-1.312-.7583l-.5037-2.5186A2,2,0,0,0,18.36,2H13.64a2,2,0,0,0-1.9611,1.6079l-.5037,2.5186A10.9666,10.9666,0,0,0,9.8481,6.88L7.4287,6.0615a1.9977,1.9977,0,0,0-2.3728.8946L2.6953,11.0439a2.0006,2.0006,0,0,0,.4119,2.5025l1.9309,1.6968C5.021,15.4946,5,15.7446,5,16c0,.2578.01.5127.0278.7656l-1.9206,1.688a2.0006,2.0006,0,0,0-.4119,2.5025l2.3606,4.0878a1.9977,1.9977,0,0,0,2.3728.8946l2.4341-.8233a10.9736,10.9736,0,0,0,1.312.7583l.5037,2.5186A2,2,0,0,0,13.64,30H16V28H13.64l-.71-3.5508a9.0953,9.0953,0,0,1-2.6948-1.5713l-3.4468,1.166-2.36-4.0878L7.1528,17.561a8.9263,8.9263,0,0,1-.007-3.1279L4.4275,12.0439,6.7886,7.9561l3.4267,1.1591a9.0305,9.0305,0,0,1,2.7141-1.5644L13.64,4H18.36l.71,3.5508a9.0978,9.0978,0,0,1,2.6948,1.5713l3.4468-1.166,2.36,4.0878-2.7978,2.4522L26.0923,16l2.8-2.4536A2.0006,2.0006,0,0,0,29.3047,11.0439Z\"\n })), children);\n});\nvar OrderDetails32 = /*#__PURE__*/React.forwardRef(function OrderDetails32(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 21H13a3 3 0 00-3 3v2h2V24a1 1 0 011-1h6a1 1 0 011 1v2h2V24A3 3 0 0019 21zM16 20a4 4 0 10-4-4A4 4 0 0016 20zm0-6a2 2 0 11-2 2A2 2 0 0116 14z\"\n })), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z\"\n })), children);\n});\nvar OrderDetails24 = /*#__PURE__*/React.forwardRef(function OrderDetails24(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 21H13a3 3 0 00-3 3v2h2V24a1 1 0 011-1h6a1 1 0 011 1v2h2V24A3 3 0 0019 21zM16 20a4 4 0 10-4-4A4 4 0 0016 20zm0-6a2 2 0 11-2 2A2 2 0 0116 14z\"\n })), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z\"\n })), children);\n});\nvar OrderDetails20 = /*#__PURE__*/React.forwardRef(function OrderDetails20(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 21H13a3 3 0 00-3 3v2h2V24a1 1 0 011-1h6a1 1 0 011 1v2h2V24A3 3 0 0019 21zM16 20a4 4 0 10-4-4A4 4 0 0016 20zm0-6a2 2 0 11-2 2A2 2 0 0116 14z\"\n })), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z\"\n })), children);\n});\nvar OrderDetails16 = /*#__PURE__*/React.forwardRef(function OrderDetails16(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 21H13a3 3 0 00-3 3v2h2V24a1 1 0 011-1h6a1 1 0 011 1v2h2V24A3 3 0 0019 21zM16 20a4 4 0 10-4-4A4 4 0 0016 20zm0-6a2 2 0 11-2 2A2 2 0 0116 14z\"\n })), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z\"\n })), children);\n});\nvar Ordinal32 = /*#__PURE__*/React.forwardRef(function Ordinal32(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26V4H18v6H12v6H6V26H2v2H30V26ZM8,26V18h4v8Zm6,0V12h4V26Zm6,0V6h4V26Z\"\n })), children);\n});\nvar Ordinal24 = /*#__PURE__*/React.forwardRef(function Ordinal24(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26V4H18v6H12v6H6V26H2v2H30V26ZM8,26V18h4v8Zm6,0V12h4V26Zm6,0V6h4V26Z\"\n })), children);\n});\nvar Ordinal20 = /*#__PURE__*/React.forwardRef(function Ordinal20(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26V4H18v6H12v6H6V26H2v2H30V26ZM8,26V18h4v8Zm6,0V12h4V26Zm6,0V6h4V26Z\"\n })), children);\n});\nvar Ordinal16 = /*#__PURE__*/React.forwardRef(function Ordinal16(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1,13 L1,12 L3,12 L3,9 L5.999,9 L6,6 L9,6 L9,3 L13,3 L13,12 L15,12 L15,13 L1,13 Z M5.999,10 L4,10 L4,12 L5.999,12 L5.999,10 Z M8.999,7 L6.999,7 L6.999,9 L7,9 L7,12 L8.999,12 L8.999,7 Z M12,4 L10,4 L10,12 L12,12 L12,4 Z\"\n })), children);\n});\nvar Outage32 = /*#__PURE__*/React.forwardRef(function Outage32(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 24H21V26H12zM13 28H19V30H13z\"\n })), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.7832 18.9746l1.4177-1.418A6.9206 6.9206 0 018 12 7.99 7.99 0 0121.5273 6.2305l1.4136-1.4136A9.9884 9.9884 0 006 12 8.9411 8.9411 0 008.7832 18.9746zM30 3.4141L28.5859 2 2 28.5859 3.4141 30 23.6606 9.7534A7.7069 7.7069 0 0124 12a7.2032 7.2032 0 01-2.8223 6.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12a9.8739 9.8739 0 00-.7764-3.81z\"\n })), children);\n});\nvar Outage24 = /*#__PURE__*/React.forwardRef(function Outage24(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 24H21V26H12zM13 28H19V30H13z\"\n })), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.7832 18.9746l1.4177-1.418A6.9206 6.9206 0 018 12 7.99 7.99 0 0121.5273 6.2305l1.4136-1.4136A9.9884 9.9884 0 006 12 8.9411 8.9411 0 008.7832 18.9746zM30 3.4141L28.5859 2 2 28.5859 3.4141 30 23.6606 9.7534A7.7069 7.7069 0 0124 12a7.2032 7.2032 0 01-2.8223 6.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12a9.8739 9.8739 0 00-.7764-3.81z\"\n })), children);\n});\nvar Outage20 = /*#__PURE__*/React.forwardRef(function Outage20(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 24H21V26H12zM13 28H19V30H13z\"\n })), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.7832 18.9746l1.4177-1.418A6.9206 6.9206 0 018 12 7.99 7.99 0 0121.5273 6.2305l1.4136-1.4136A9.9884 9.9884 0 006 12 8.9411 8.9411 0 008.7832 18.9746zM30 3.4141L28.5859 2 2 28.5859 3.4141 30 23.6606 9.7534A7.7069 7.7069 0 0124 12a7.2032 7.2032 0 01-2.8223 6.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12a9.8739 9.8739 0 00-.7764-3.81z\"\n })), children);\n});\nvar Outage16 = /*#__PURE__*/React.forwardRef(function Outage16(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 24H21V26H12zM13 28H19V30H13z\"\n })), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.7832 18.9746l1.4177-1.418A6.9206 6.9206 0 018 12 7.99 7.99 0 0121.5273 6.2305l1.4136-1.4136A9.9884 9.9884 0 006 12 8.9411 8.9411 0 008.7832 18.9746zM30 3.4141L28.5859 2 2 28.5859 3.4141 30 23.6606 9.7534A7.7069 7.7069 0 0124 12a7.2032 7.2032 0 01-2.8223 6.1426C20.1069 19.1348 19 20.1611 19 22h2c0-.9194.5264-1.45 1.5352-2.3857A9.193 9.193 0 0026 12a9.8739 9.8739 0 00-.7764-3.81z\"\n })), children);\n});\nvar OutlookSevere32 = /*#__PURE__*/React.forwardRef(function OutlookSevere32(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M15.1249,19h1.75v5.5h-1.75ZM17,27a1,1,0,1,0-1,1A1,1,0,0,0,17,27Z\"\n })), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.9084,28.94,16.8318,14.4878a.9531.9531,0,0,0-1.6636,0L7.0916,28.94A.7122.7122,0,0,0,7.7134,30H24.2867A.7121.7121,0,0,0,24.9084,28.94ZM15.125,19h1.75v5.5h-1.75ZM16,28a1,1,0,1,1,1-1A1,1,0,0,1,16,28Z\"\n })), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008,9.1362a8.9943,8.9943,0,0,0-17.6006,0,6.4926,6.4926,0,0,0,.9153,12.8443L9.2217,20H8.5a4.48,4.48,0,0,1-3.3693-7.4556l5.297,5.2964,1.013-1.8135-4.66-4.6606A4.402,4.402,0,0,1,8.144,11.019l.8155-.0639.0991-.812c.0237-.1944.0581-.3848.0972-.5733l3.78,3.7808,1.0138-1.815L9.936,7.522a7.0212,7.0212,0,0,1,1.9754-2.1968L25.8861,19.3A4.4594,4.4594,0,0,1,23.5,20h-.7239l1.107,1.98a6.4927,6.4927,0,0,0,.9177-12.8443Zm2.4994,8.75L13.7823,4.3682a6.9736,6.9736,0,0,1,9.16,5.7749l.0986.812.8154.0639A4.5171,4.5171,0,0,1,28,15.5,4.46,4.46,0,0,1,27.3,17.8862Z\"\n })), children);\n});\nvar OutlookSevere24 = /*#__PURE__*/React.forwardRef(function OutlookSevere24(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M15.1249,19h1.75v5.5h-1.75ZM17,27a1,1,0,1,0-1,1A1,1,0,0,0,17,27Z\"\n })), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.9084,28.94,16.8318,14.4878a.9531.9531,0,0,0-1.6636,0L7.0916,28.94A.7122.7122,0,0,0,7.7134,30H24.2867A.7121.7121,0,0,0,24.9084,28.94ZM15.125,19h1.75v5.5h-1.75ZM16,28a1,1,0,1,1,1-1A1,1,0,0,1,16,28Z\"\n })), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008,9.1362a8.9943,8.9943,0,0,0-17.6006,0,6.4926,6.4926,0,0,0,.9153,12.8443L9.2217,20H8.5a4.48,4.48,0,0,1-3.3693-7.4556l5.297,5.2964,1.013-1.8135-4.66-4.6606A4.402,4.402,0,0,1,8.144,11.019l.8155-.0639.0991-.812c.0237-.1944.0581-.3848.0972-.5733l3.78,3.7808,1.0138-1.815L9.936,7.522a7.0212,7.0212,0,0,1,1.9754-2.1968L25.8861,19.3A4.4594,4.4594,0,0,1,23.5,20h-.7239l1.107,1.98a6.4927,6.4927,0,0,0,.9177-12.8443Zm2.4994,8.75L13.7823,4.3682a6.9736,6.9736,0,0,1,9.16,5.7749l.0986.812.8154.0639A4.5171,4.5171,0,0,1,28,15.5,4.46,4.46,0,0,1,27.3,17.8862Z\"\n })), children);\n});\nvar OutlookSevere20 = /*#__PURE__*/React.forwardRef(function OutlookSevere20(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M15.1249,19h1.75v5.5h-1.75ZM17,27a1,1,0,1,0-1,1A1,1,0,0,0,17,27Z\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.9084,28.94,16.8318,14.4878a.9531.9531,0,0,0-1.6636,0L7.0916,28.94A.7122.7122,0,0,0,7.7134,30H24.2867A.7121.7121,0,0,0,24.9084,28.94ZM15.125,19h1.75v5.5h-1.75ZM16,28a1,1,0,1,1,1-1A1,1,0,0,1,16,28Z\"\n })), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008,9.1362a8.9943,8.9943,0,0,0-17.6006,0,6.4926,6.4926,0,0,0,.9153,12.8443L9.2217,20H8.5a4.48,4.48,0,0,1-3.3693-7.4556l5.297,5.2964,1.013-1.8135-4.66-4.6606A4.402,4.402,0,0,1,8.144,11.019l.8155-.0639.0991-.812c.0237-.1944.0581-.3848.0972-.5733l3.78,3.7808,1.0138-1.815L9.936,7.522a7.0212,7.0212,0,0,1,1.9754-2.1968L25.8861,19.3A4.4594,4.4594,0,0,1,23.5,20h-.7239l1.107,1.98a6.4927,6.4927,0,0,0,.9177-12.8443Zm2.4994,8.75L13.7823,4.3682a6.9736,6.9736,0,0,1,9.16,5.7749l.0986.812.8154.0639A4.5171,4.5171,0,0,1,28,15.5,4.46,4.46,0,0,1,27.3,17.8862Z\"\n })), children);\n});\nvar OutlookSevere16 = /*#__PURE__*/React.forwardRef(function OutlookSevere16(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M15.1249,19h1.75v5.5h-1.75ZM17,27a1,1,0,1,0-1,1A1,1,0,0,0,17,27Z\"\n })), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.9084,28.94,16.8318,14.4878a.9531.9531,0,0,0-1.6636,0L7.0916,28.94A.7122.7122,0,0,0,7.7134,30H24.2867A.7121.7121,0,0,0,24.9084,28.94ZM15.125,19h1.75v5.5h-1.75ZM16,28a1,1,0,1,1,1-1A1,1,0,0,1,16,28Z\"\n })), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008,9.1362a8.9943,8.9943,0,0,0-17.6006,0,6.4926,6.4926,0,0,0,.9153,12.8443L9.2217,20H8.5a4.48,4.48,0,0,1-3.3693-7.4556l5.297,5.2964,1.013-1.8135-4.66-4.6606A4.402,4.402,0,0,1,8.144,11.019l.8155-.0639.0991-.812c.0237-.1944.0581-.3848.0972-.5733l3.78,3.7808,1.0138-1.815L9.936,7.522a7.0212,7.0212,0,0,1,1.9754-2.1968L25.8861,19.3A4.4594,4.4594,0,0,1,23.5,20h-.7239l1.107,1.98a6.4927,6.4927,0,0,0,.9177-12.8443Zm2.4994,8.75L13.7823,4.3682a6.9736,6.9736,0,0,1,9.16,5.7749l.0986.812.8154.0639A4.5171,4.5171,0,0,1,28,15.5,4.46,4.46,0,0,1,27.3,17.8862Z\"\n })), children);\n});\nvar OverflowMenuHorizontal32 = /*#__PURE__*/React.forwardRef(function OverflowMenuHorizontal32(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle21 || (_circle21 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"16\",\n r: \"2\"\n })), _circle22 || (_circle22 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle23 || (_circle23 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuHorizontal24 = /*#__PURE__*/React.forwardRef(function OverflowMenuHorizontal24(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle24 || (_circle24 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"16\",\n r: \"2\"\n })), _circle25 || (_circle25 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle26 || (_circle26 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuHorizontal20 = /*#__PURE__*/React.forwardRef(function OverflowMenuHorizontal20(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle27 || (_circle27 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"16\",\n r: \"2\"\n })), _circle28 || (_circle28 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle29 || (_circle29 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuHorizontal16 = /*#__PURE__*/React.forwardRef(function OverflowMenuHorizontal16(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle30 || (_circle30 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"16\",\n r: \"2\"\n })), _circle31 || (_circle31 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle32 || (_circle32 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24\",\n cy: \"16\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuVertical32 = /*#__PURE__*/React.forwardRef(function OverflowMenuVertical32(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle33 || (_circle33 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"8\",\n r: \"2\"\n })), _circle34 || (_circle34 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle35 || (_circle35 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"24\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuVertical24 = /*#__PURE__*/React.forwardRef(function OverflowMenuVertical24(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle36 || (_circle36 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"8\",\n r: \"2\"\n })), _circle37 || (_circle37 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle38 || (_circle38 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"24\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuVertical20 = /*#__PURE__*/React.forwardRef(function OverflowMenuVertical20(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle39 || (_circle39 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"8\",\n r: \"2\"\n })), _circle40 || (_circle40 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle41 || (_circle41 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"24\",\n r: \"2\"\n })), children);\n});\nvar OverflowMenuVertical16 = /*#__PURE__*/React.forwardRef(function OverflowMenuVertical16(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle42 || (_circle42 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"8\",\n r: \"2\"\n })), _circle43 || (_circle43 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"2\"\n })), _circle44 || (_circle44 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"24\",\n r: \"2\"\n })), children);\n});\nvar Overlay32 = /*#__PURE__*/React.forwardRef(function Overlay32(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H24V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V22a2.0023,2.0023,0,0,0,2,2H8v4a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V10A2.0023,2.0023,0,0,0,28,8ZM4,22V4H22V8H10a2.0023,2.0023,0,0,0-2,2V22Zm18,0H19.4141L10,12.586V10h2.5859l9.4153,9.4156ZM10,15.4141,16.5859,22H10ZM22.001,16.587,15.4141,10H22ZM10,28V24H22a2.0023,2.0023,0,0,0,2-2V10h4V28Z\"\n })), children);\n});\nvar Overlay24 = /*#__PURE__*/React.forwardRef(function Overlay24(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H24V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V22a2.0023,2.0023,0,0,0,2,2H8v4a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V10A2.0023,2.0023,0,0,0,28,8ZM4,22V4H22V8H10a2.0023,2.0023,0,0,0-2,2V22Zm18,0H19.4141L10,12.586V10h2.5859l9.4153,9.4156ZM10,15.4141,16.5859,22H10ZM22.001,16.587,15.4141,10H22ZM10,28V24H22a2.0023,2.0023,0,0,0,2-2V10h4V28Z\"\n })), children);\n});\nvar Overlay20 = /*#__PURE__*/React.forwardRef(function Overlay20(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H24V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V22a2.0023,2.0023,0,0,0,2,2H8v4a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V10A2.0023,2.0023,0,0,0,28,8ZM4,22V4H22V8H10a2.0023,2.0023,0,0,0-2,2V22Zm18,0H19.4141L10,12.586V10h2.5859l9.4153,9.4156ZM10,15.4141,16.5859,22H10ZM22.001,16.587,15.4141,10H22ZM10,28V24H22a2.0023,2.0023,0,0,0,2-2V10h4V28Z\"\n })), children);\n});\nvar Overlay16 = /*#__PURE__*/React.forwardRef(function Overlay16(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,8H24V4a2.0023,2.0023,0,0,0-2-2H4A2.0023,2.0023,0,0,0,2,4V22a2.0023,2.0023,0,0,0,2,2H8v4a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V10A2.0023,2.0023,0,0,0,28,8ZM4,22V4H22V8H10a2.0023,2.0023,0,0,0-2,2V22Zm18,0H19.4141L10,12.586V10h2.5859l9.4153,9.4156ZM10,15.4141,16.5859,22H10ZM22.001,16.587,15.4141,10H22ZM10,28V24H22a2.0023,2.0023,0,0,0,2-2V10h4V28Z\"\n })), children);\n});\nvar Package32 = /*#__PURE__*/React.forwardRef(function Package32(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2,2,0,0,1-2-2V16a2,2,0,0,1,2-2H9v2H6V28H26V16H23V14h3a2,2,0,0,1,2,2V28A2,2,0,0,1,26,30Z\"\n })), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 20H19V22H13zM20.59 8.59L17 12.17 17 2 15 2 15 12.17 11.41 8.59 10 10 16 16 22 10 20.59 8.59z\"\n })), children);\n});\nvar Package24 = /*#__PURE__*/React.forwardRef(function Package24(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2,2,0,0,1-2-2V16a2,2,0,0,1,2-2H9v2H6V28H26V16H23V14h3a2,2,0,0,1,2,2V28A2,2,0,0,1,26,30Z\"\n })), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 20H19V22H13zM20.59 8.59L17 12.17 17 2 15 2 15 12.17 11.41 8.59 10 10 16 16 22 10 20.59 8.59z\"\n })), children);\n});\nvar Package20 = /*#__PURE__*/React.forwardRef(function Package20(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2,2,0,0,1-2-2V16a2,2,0,0,1,2-2H9v2H6V28H26V16H23V14h3a2,2,0,0,1,2,2V28A2,2,0,0,1,26,30Z\"\n })), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 20H19V22H13zM20.59 8.59L17 12.17 17 2 15 2 15 12.17 11.41 8.59 10 10 16 16 22 10 20.59 8.59z\"\n })), children);\n});\nvar Package16 = /*#__PURE__*/React.forwardRef(function Package16(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,30H6a2,2,0,0,1-2-2V16a2,2,0,0,1,2-2H9v2H6V28H26V16H23V14h3a2,2,0,0,1,2,2V28A2,2,0,0,1,26,30Z\"\n })), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 20H19V22H13zM20.59 8.59L17 12.17 17 2 15 2 15 12.17 11.41 8.59 10 10 16 16 22 10 20.59 8.59z\"\n })), children);\n});\nvar PageFirst32 = /*#__PURE__*/React.forwardRef(function PageFirst32(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z\"\n })), children);\n});\nvar PageFirst24 = /*#__PURE__*/React.forwardRef(function PageFirst24(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z\"\n })), children);\n});\nvar PageFirst20 = /*#__PURE__*/React.forwardRef(function PageFirst20(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z\"\n })), children);\n});\nvar PageFirst16 = /*#__PURE__*/React.forwardRef(function PageFirst16(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z\"\n })), children);\n});\nvar PageLast32 = /*#__PURE__*/React.forwardRef(function PageLast32(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z\"\n })), children);\n});\nvar PageLast24 = /*#__PURE__*/React.forwardRef(function PageLast24(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z\"\n })), children);\n});\nvar PageLast20 = /*#__PURE__*/React.forwardRef(function PageLast20(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z\"\n })), children);\n});\nvar PageLast16 = /*#__PURE__*/React.forwardRef(function PageLast16(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z\"\n })), children);\n});\nvar PageBreak32 = /*#__PURE__*/React.forwardRef(function PageBreak32(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 18H6V20H2zM26 18H30V20H26zM24 22v6H8V22H6v6a2.0058 2.0058 0 002 2H24a2.0058 2.0058 0 002-2V22zM8 16V4h8v6a2.0058 2.0058 0 002 2h6v4h2V10a.9092.9092 0 00-.3-.7l-7-7A.9087.9087 0 0018 2H8A2.0058 2.0058 0 006 4V16zM18 4.4L23.6 10H18zM10 18H14V20H10zM18 18H22V20H18z\"\n })), children);\n});\nvar PageBreak24 = /*#__PURE__*/React.forwardRef(function PageBreak24(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 18H6V20H2zM26 18H30V20H26zM24 22v6H8V22H6v6a2.0058 2.0058 0 002 2H24a2.0058 2.0058 0 002-2V22zM8 16V4h8v6a2.0058 2.0058 0 002 2h6v4h2V10a.9092.9092 0 00-.3-.7l-7-7A.9087.9087 0 0018 2H8A2.0058 2.0058 0 006 4V16zM18 4.4L23.6 10H18zM10 18H14V20H10zM18 18H22V20H18z\"\n })), children);\n});\nvar PageBreak20 = /*#__PURE__*/React.forwardRef(function PageBreak20(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 18H6V20H2zM26 18H30V20H26zM24 22v6H8V22H6v6a2.0058 2.0058 0 002 2H24a2.0058 2.0058 0 002-2V22zM8 16V4h8v6a2.0058 2.0058 0 002 2h6v4h2V10a.9092.9092 0 00-.3-.7l-7-7A.9087.9087 0 0018 2H8A2.0058 2.0058 0 006 4V16zM18 4.4L23.6 10H18zM10 18H14V20H10zM18 18H22V20H18z\"\n })), children);\n});\nvar PageBreak16 = /*#__PURE__*/React.forwardRef(function PageBreak16(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 18H6V20H2zM26 18H30V20H26zM24 22v6H8V22H6v6a2.0058 2.0058 0 002 2H24a2.0058 2.0058 0 002-2V22zM8 16V4h8v6a2.0058 2.0058 0 002 2h6v4h2V10a.9092.9092 0 00-.3-.7l-7-7A.9087.9087 0 0018 2H8A2.0058 2.0058 0 006 4V16zM18 4.4L23.6 10H18zM10 18H14V20H10zM18 18H22V20H18z\"\n })), children);\n});\nvar PageNumber32 = /*#__PURE__*/React.forwardRef(function PageNumber32(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L16 26 16 20 20 20 20 18 16 18 16 16 22 16 22 22 18 22 18 24 22 24 22 26z\"\n })), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z\"\n })), children);\n});\nvar PageNumber24 = /*#__PURE__*/React.forwardRef(function PageNumber24(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L16 26 16 20 20 20 20 18 16 18 16 16 22 16 22 22 18 22 18 24 22 24 22 26z\"\n })), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z\"\n })), children);\n});\nvar PageNumber20 = /*#__PURE__*/React.forwardRef(function PageNumber20(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L16 26 16 20 20 20 20 18 16 18 16 16 22 16 22 22 18 22 18 24 22 24 22 26z\"\n })), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z\"\n })), children);\n});\nvar PageNumber16 = /*#__PURE__*/React.forwardRef(function PageNumber16(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 26L16 26 16 20 20 20 20 18 16 18 16 16 22 16 22 22 18 22 18 24 22 24 22 26z\"\n })), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z\"\n })), children);\n});\nvar WatsonHealthPageScroll32 = /*#__PURE__*/React.forwardRef(function WatsonHealthPageScroll32(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28H4a1.89,1.89,0,0,1-2-2V14a1.89,1.89,0,0,1,2-2H16a1.89,1.89,0,0,1,2,2V26A1.89,1.89,0,0,1,16,28ZM4,14V26H16V14Z\"\n })), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,19H20V10H10V8H20a1.89,1.89,0,0,1,2,2Z\"\n })), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24V6H16V4h8a1.89 1.89 0 012 2zM24 17L24 19 26.8 19 22 24.4 22 22 20 22 20 28 26 28 26 26 23.2 26 28 20.6 28 23 30 23 30 17 24 17z\"\n })), children);\n});\nvar WatsonHealthPageScroll24 = /*#__PURE__*/React.forwardRef(function WatsonHealthPageScroll24(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28H4a1.89,1.89,0,0,1-2-2V14a1.89,1.89,0,0,1,2-2H16a1.89,1.89,0,0,1,2,2V26A1.89,1.89,0,0,1,16,28ZM4,14V26H16V14Z\"\n })), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,19H20V10H10V8H20a1.89,1.89,0,0,1,2,2Z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24V6H16V4h8a1.89 1.89 0 012 2zM24 17L24 19 26.8 19 22 24.4 22 22 20 22 20 28 26 28 26 26 23.2 26 28 20.6 28 23 30 23 30 17 24 17z\"\n })), children);\n});\nvar WatsonHealthPageScroll20 = /*#__PURE__*/React.forwardRef(function WatsonHealthPageScroll20(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28H4a1.89,1.89,0,0,1-2-2V14a1.89,1.89,0,0,1,2-2H16a1.89,1.89,0,0,1,2,2V26A1.89,1.89,0,0,1,16,28ZM4,14V26H16V14Z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,19H20V10H10V8H20a1.89,1.89,0,0,1,2,2Z\"\n })), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24V6H16V4h8a1.89 1.89 0 012 2zM24 17L24 19 26.8 19 22 24.4 22 22 20 22 20 28 26 28 26 26 23.2 26 28 20.6 28 23 30 23 30 17 24 17z\"\n })), children);\n});\nvar WatsonHealthPageScroll16 = /*#__PURE__*/React.forwardRef(function WatsonHealthPageScroll16(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,28H4a1.89,1.89,0,0,1-2-2V14a1.89,1.89,0,0,1,2-2H16a1.89,1.89,0,0,1,2,2V26A1.89,1.89,0,0,1,16,28ZM4,14V26H16V14Z\"\n })), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,19H20V10H10V8H20a1.89,1.89,0,0,1,2,2Z\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 14H24V6H16V4h8a1.89 1.89 0 012 2zM24 17L24 19 26.8 19 22 24.4 22 22 20 22 20 28 26 28 26 26 23.2 26 28 20.6 28 23 30 23 30 17 24 17z\"\n })), children);\n});\nvar PaintBrush32 = /*#__PURE__*/React.forwardRef(function PaintBrush32(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,23.17,23,17.33V13a1,1,0,0,0-.29-.71l-10-10a1,1,0,0,0-1.42,0l-9,9a1,1,0,0,0,0,1.42l10,10A1,1,0,0,0,13,23h4.34l5.83,5.84a4,4,0,0,0,5.66-5.66ZM6,10.41l2.29,2.3,1.42-1.42L7.41,9,9,7.41l4.29,4.3,1.42-1.42L10.41,6,12,4.41,18.59,11,11,18.59,4.41,12Zm21.41,17a2,2,0,0,1-2.82,0l-6.13-6.12a1.8,1.8,0,0,0-.71-.29H13.41l-1-1L20,12.41l1,1v4.34a1,1,0,0,0,.29.7l6.12,6.14a2,2,0,0,1,0,2.82Z\"\n })), children);\n});\nvar PaintBrush24 = /*#__PURE__*/React.forwardRef(function PaintBrush24(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,23.17,23,17.33V13a1,1,0,0,0-.29-.71l-10-10a1,1,0,0,0-1.42,0l-9,9a1,1,0,0,0,0,1.42l10,10A1,1,0,0,0,13,23h4.34l5.83,5.84a4,4,0,0,0,5.66-5.66ZM6,10.41l2.29,2.3,1.42-1.42L7.41,9,9,7.41l4.29,4.3,1.42-1.42L10.41,6,12,4.41,18.59,11,11,18.59,4.41,12Zm21.41,17a2,2,0,0,1-2.82,0l-6.13-6.12a1.8,1.8,0,0,0-.71-.29H13.41l-1-1L20,12.41l1,1v4.34a1,1,0,0,0,.29.7l6.12,6.14a2,2,0,0,1,0,2.82Z\"\n })), children);\n});\nvar PaintBrush20 = /*#__PURE__*/React.forwardRef(function PaintBrush20(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,23.17,23,17.33V13a1,1,0,0,0-.29-.71l-10-10a1,1,0,0,0-1.42,0l-9,9a1,1,0,0,0,0,1.42l10,10A1,1,0,0,0,13,23h4.34l5.83,5.84a4,4,0,0,0,5.66-5.66ZM6,10.41l2.29,2.3,1.42-1.42L7.41,9,9,7.41l4.29,4.3,1.42-1.42L10.41,6,12,4.41,18.59,11,11,18.59,4.41,12Zm21.41,17a2,2,0,0,1-2.82,0l-6.13-6.12a1.8,1.8,0,0,0-.71-.29H13.41l-1-1L20,12.41l1,1v4.34a1,1,0,0,0,.29.7l6.12,6.14a2,2,0,0,1,0,2.82Z\"\n })), children);\n});\nvar PaintBrush16 = /*#__PURE__*/React.forwardRef(function PaintBrush16(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.83,23.17,23,17.33V13a1,1,0,0,0-.29-.71l-10-10a1,1,0,0,0-1.42,0l-9,9a1,1,0,0,0,0,1.42l10,10A1,1,0,0,0,13,23h4.34l5.83,5.84a4,4,0,0,0,5.66-5.66ZM6,10.41l2.29,2.3,1.42-1.42L7.41,9,9,7.41l4.29,4.3,1.42-1.42L10.41,6,12,4.41,18.59,11,11,18.59,4.41,12Zm21.41,17a2,2,0,0,1-2.82,0l-6.13-6.12a1.8,1.8,0,0,0-.71-.29H13.41l-1-1L20,12.41l1,1v4.34a1,1,0,0,0,.29.7l6.12,6.14a2,2,0,0,1,0,2.82Z\"\n })), children);\n});\nvar PaintBrushAlt32 = /*#__PURE__*/React.forwardRef(function PaintBrushAlt32(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281,3.1719a4.0941,4.0941,0,0,0-5.6562,0L4.05,22.292A6.9537,6.9537,0,0,0,2,27.2412V30H4.7559a6.9523,6.9523,0,0,0,4.95-2.05L28.8281,8.8286a3.999,3.999,0,0,0,0-5.6567ZM10.91,18.26l2.8286,2.8286L11.6172,23.21,8.7886,20.3818ZM8.2915,26.5356A4.9665,4.9665,0,0,1,4.7559,28H4v-.7588a4.9671,4.9671,0,0,1,1.4644-3.5351l1.91-1.91,2.8286,2.8281ZM27.4141,7.4141,15.1528,19.6748l-2.8286-2.8286,12.2617-12.26a2.0473,2.0473,0,0,1,2.8282,0,1.9995,1.9995,0,0,1,0,2.8282Z\"\n })), children);\n});\nvar PaintBrushAlt24 = /*#__PURE__*/React.forwardRef(function PaintBrushAlt24(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281,3.1719a4.0941,4.0941,0,0,0-5.6562,0L4.05,22.292A6.9537,6.9537,0,0,0,2,27.2412V30H4.7559a6.9523,6.9523,0,0,0,4.95-2.05L28.8281,8.8286a3.999,3.999,0,0,0,0-5.6567ZM10.91,18.26l2.8286,2.8286L11.6172,23.21,8.7886,20.3818ZM8.2915,26.5356A4.9665,4.9665,0,0,1,4.7559,28H4v-.7588a4.9671,4.9671,0,0,1,1.4644-3.5351l1.91-1.91,2.8286,2.8281ZM27.4141,7.4141,15.1528,19.6748l-2.8286-2.8286,12.2617-12.26a2.0473,2.0473,0,0,1,2.8282,0,1.9995,1.9995,0,0,1,0,2.8282Z\"\n })), children);\n});\nvar PaintBrushAlt20 = /*#__PURE__*/React.forwardRef(function PaintBrushAlt20(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281,3.1719a4.0941,4.0941,0,0,0-5.6562,0L4.05,22.292A6.9537,6.9537,0,0,0,2,27.2412V30H4.7559a6.9523,6.9523,0,0,0,4.95-2.05L28.8281,8.8286a3.999,3.999,0,0,0,0-5.6567ZM10.91,18.26l2.8286,2.8286L11.6172,23.21,8.7886,20.3818ZM8.2915,26.5356A4.9665,4.9665,0,0,1,4.7559,28H4v-.7588a4.9671,4.9671,0,0,1,1.4644-3.5351l1.91-1.91,2.8286,2.8281ZM27.4141,7.4141,15.1528,19.6748l-2.8286-2.8286,12.2617-12.26a2.0473,2.0473,0,0,1,2.8282,0,1.9995,1.9995,0,0,1,0,2.8282Z\"\n })), children);\n});\nvar PaintBrushAlt16 = /*#__PURE__*/React.forwardRef(function PaintBrushAlt16(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8281,3.1719a4.0941,4.0941,0,0,0-5.6562,0L4.05,22.292A6.9537,6.9537,0,0,0,2,27.2412V30H4.7559a6.9523,6.9523,0,0,0,4.95-2.05L28.8281,8.8286a3.999,3.999,0,0,0,0-5.6567ZM10.91,18.26l2.8286,2.8286L11.6172,23.21,8.7886,20.3818ZM8.2915,26.5356A4.9665,4.9665,0,0,1,4.7559,28H4v-.7588a4.9671,4.9671,0,0,1,1.4644-3.5351l1.91-1.91,2.8286,2.8281ZM27.4141,7.4141,15.1528,19.6748l-2.8286-2.8286,12.2617-12.26a2.0473,2.0473,0,0,1,2.8282,0,1.9995,1.9995,0,0,1,0,2.8282Z\"\n })), children);\n});\nvar PalmTree32 = /*#__PURE__*/React.forwardRef(function PalmTree32(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.57,28C17.897,26.7251,16,22.2261,16,12v-.1313l1.1172.7446A6.4613,6.4613,0,0,1,20,18h2a8.457,8.457,0,0,0-3.7734-7.0508L16.8027,10h1.5308a7.04,7.04,0,0,1,4.2,1.4L24.4,12.8l1.2-1.6L23.7334,9.8a9.06,9.06,0,0,0-5.4-1.8H17.1172A7.0306,7.0306,0,0,1,22,6h2V4H22a9.035,9.035,0,0,0-7,3.3643A9.035,9.035,0,0,0,8,4H6V6H8a7.0306,7.0306,0,0,1,4.8828,2H11.6665a9.06,9.06,0,0,0-5.4,1.8L4.4,11.2l1.2,1.6L7.4668,11.4a7.04,7.04,0,0,1,4.2-1.4h1.5308l-1.4239.9492A8.457,8.457,0,0,0,8,18h2a6.4613,6.4613,0,0,1,2.8828-5.3867L14,11.8687V12c0,8.9438,1.4116,13.7646,2.3611,16H2v2H30V28Z\"\n })), children);\n});\nvar PalmTree24 = /*#__PURE__*/React.forwardRef(function PalmTree24(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.57,28C17.897,26.7251,16,22.2261,16,12v-.1313l1.1172.7446A6.4613,6.4613,0,0,1,20,18h2a8.457,8.457,0,0,0-3.7734-7.0508L16.8027,10h1.5308a7.04,7.04,0,0,1,4.2,1.4L24.4,12.8l1.2-1.6L23.7334,9.8a9.06,9.06,0,0,0-5.4-1.8H17.1172A7.0306,7.0306,0,0,1,22,6h2V4H22a9.035,9.035,0,0,0-7,3.3643A9.035,9.035,0,0,0,8,4H6V6H8a7.0306,7.0306,0,0,1,4.8828,2H11.6665a9.06,9.06,0,0,0-5.4,1.8L4.4,11.2l1.2,1.6L7.4668,11.4a7.04,7.04,0,0,1,4.2-1.4h1.5308l-1.4239.9492A8.457,8.457,0,0,0,8,18h2a6.4613,6.4613,0,0,1,2.8828-5.3867L14,11.8687V12c0,8.9438,1.4116,13.7646,2.3611,16H2v2H30V28Z\"\n })), children);\n});\nvar PalmTree20 = /*#__PURE__*/React.forwardRef(function PalmTree20(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.57,28C17.897,26.7251,16,22.2261,16,12v-.1313l1.1172.7446A6.4613,6.4613,0,0,1,20,18h2a8.457,8.457,0,0,0-3.7734-7.0508L16.8027,10h1.5308a7.04,7.04,0,0,1,4.2,1.4L24.4,12.8l1.2-1.6L23.7334,9.8a9.06,9.06,0,0,0-5.4-1.8H17.1172A7.0306,7.0306,0,0,1,22,6h2V4H22a9.035,9.035,0,0,0-7,3.3643A9.035,9.035,0,0,0,8,4H6V6H8a7.0306,7.0306,0,0,1,4.8828,2H11.6665a9.06,9.06,0,0,0-5.4,1.8L4.4,11.2l1.2,1.6L7.4668,11.4a7.04,7.04,0,0,1,4.2-1.4h1.5308l-1.4239.9492A8.457,8.457,0,0,0,8,18h2a6.4613,6.4613,0,0,1,2.8828-5.3867L14,11.8687V12c0,8.9438,1.4116,13.7646,2.3611,16H2v2H30V28Z\"\n })), children);\n});\nvar PalmTree16 = /*#__PURE__*/React.forwardRef(function PalmTree16(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.57,28C17.897,26.7251,16,22.2261,16,12v-.1313l1.1172.7446A6.4613,6.4613,0,0,1,20,18h2a8.457,8.457,0,0,0-3.7734-7.0508L16.8027,10h1.5308a7.04,7.04,0,0,1,4.2,1.4L24.4,12.8l1.2-1.6L23.7334,9.8a9.06,9.06,0,0,0-5.4-1.8H17.1172A7.0306,7.0306,0,0,1,22,6h2V4H22a9.035,9.035,0,0,0-7,3.3643A9.035,9.035,0,0,0,8,4H6V6H8a7.0306,7.0306,0,0,1,4.8828,2H11.6665a9.06,9.06,0,0,0-5.4,1.8L4.4,11.2l1.2,1.6L7.4668,11.4a7.04,7.04,0,0,1,4.2-1.4h1.5308l-1.4239.9492A8.457,8.457,0,0,0,8,18h2a6.4613,6.4613,0,0,1,2.8828-5.3867L14,11.8687V12c0,8.9438,1.4116,13.7646,2.3611,16H2v2H30V28Z\"\n })), children);\n});\nvar PanHorizontal32 = /*#__PURE__*/React.forwardRef(function PanHorizontal32(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 10L22.586 11.414 26.172 15 5.828 15 9.414 11.414 8 10 2 16 8 22 9.414 20.586 5.828 17 26.172 17 22.586 20.586 24 22 30 16 24 10z\"\n })), children);\n});\nvar PanHorizontal24 = /*#__PURE__*/React.forwardRef(function PanHorizontal24(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 10L22.586 11.414 26.172 15 5.828 15 9.414 11.414 8 10 2 16 8 22 9.414 20.586 5.828 17 26.172 17 22.586 20.586 24 22 30 16 24 10z\"\n })), children);\n});\nvar PanHorizontal20 = /*#__PURE__*/React.forwardRef(function PanHorizontal20(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 10L22.586 11.414 26.172 15 5.828 15 9.414 11.414 8 10 2 16 8 22 9.414 20.586 5.828 17 26.172 17 22.586 20.586 24 22 30 16 24 10z\"\n })), children);\n});\nvar PanHorizontal16 = /*#__PURE__*/React.forwardRef(function PanHorizontal16(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 10L22.586 11.414 26.172 15 5.828 15 9.414 11.414 8 10 2 16 8 22 9.414 20.586 5.828 17 26.172 17 22.586 20.586 24 22 30 16 24 10z\"\n })), children);\n});\nvar PanVertical32 = /*#__PURE__*/React.forwardRef(function PanVertical32(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 8L11.414 9.414 15 5.828 15 26.172 11.414 22.586 10 24 16 30 22 24 20.586 22.586 17 26.172 17 5.828 20.586 9.414 22 8 16 2 10 8z\"\n })), children);\n});\nvar PanVertical24 = /*#__PURE__*/React.forwardRef(function PanVertical24(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 8L11.414 9.414 15 5.828 15 26.172 11.414 22.586 10 24 16 30 22 24 20.586 22.586 17 26.172 17 5.828 20.586 9.414 22 8 16 2 10 8z\"\n })), children);\n});\nvar PanVertical20 = /*#__PURE__*/React.forwardRef(function PanVertical20(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 8L11.414 9.414 15 5.828 15 26.172 11.414 22.586 10 24 16 30 22 24 20.586 22.586 17 26.172 17 5.828 20.586 9.414 22 8 16 2 10 8z\"\n })), children);\n});\nvar PanVertical16 = /*#__PURE__*/React.forwardRef(function PanVertical16(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 8L11.414 9.414 15 5.828 15 26.172 11.414 22.586 10 24 16 30 22 24 20.586 22.586 17 26.172 17 5.828 20.586 9.414 22 8 16 2 10 8z\"\n })), children);\n});\nvar PanelExpansion32 = /*#__PURE__*/React.forwardRef(function PanelExpansion32(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H6A2 2 0 004 8v6a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0012 6zM6 14V8h6v6zM26 6H20a2 2 0 00-2 2V24a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0026 6zM20 24V8h6V24z\"\n })), children);\n});\nvar PanelExpansion24 = /*#__PURE__*/React.forwardRef(function PanelExpansion24(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H6A2 2 0 004 8v6a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0012 6zM6 14V8h6v6zM26 6H20a2 2 0 00-2 2V24a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0026 6zM20 24V8h6V24z\"\n })), children);\n});\nvar PanelExpansion20 = /*#__PURE__*/React.forwardRef(function PanelExpansion20(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H6A2 2 0 004 8v6a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0012 6zM6 14V8h6v6zM26 6H20a2 2 0 00-2 2V24a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0026 6zM20 24V8h6V24z\"\n })), children);\n});\nvar PanelExpansion16 = /*#__PURE__*/React.forwardRef(function PanelExpansion16(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H6A2 2 0 004 8v6a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0012 6zM6 14V8h6v6zM26 6H20a2 2 0 00-2 2V24a2 2 0 002 2h6a2 2 0 002-2V8A2 2 0 0026 6zM20 24V8h6V24z\"\n })), children);\n});\nvar Paragraph32 = /*#__PURE__*/React.forwardRef(function Paragraph32(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,4H13a7,7,0,0,0,0,14V28h2V6h5V28h2V6h5ZM13,16A5,5,0,0,1,13,6Z\"\n })), children);\n});\nvar Paragraph24 = /*#__PURE__*/React.forwardRef(function Paragraph24(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,4H13a7,7,0,0,0,0,14V28h2V6h5V28h2V6h5ZM13,16A5,5,0,0,1,13,6Z\"\n })), children);\n});\nvar Paragraph20 = /*#__PURE__*/React.forwardRef(function Paragraph20(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,4H13a7,7,0,0,0,0,14V28h2V6h5V28h2V6h5ZM13,16A5,5,0,0,1,13,6Z\"\n })), children);\n});\nvar Paragraph16 = /*#__PURE__*/React.forwardRef(function Paragraph16(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,4H13a7,7,0,0,0,0,14V28h2V6h5V28h2V6h5ZM13,16A5,5,0,0,1,13,6Z\"\n })), children);\n});\nvar Parameter32 = /*#__PURE__*/React.forwardRef(function Parameter32(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,13V8a2.0023,2.0023,0,0,0-2-2H23V8h3v5a3.9756,3.9756,0,0,0,1.3823,3A3.9756,3.9756,0,0,0,26,19v5H23v2h3a2.0023,2.0023,0,0,0,2-2V19a2.0023,2.0023,0,0,1,2-2V15A2.0023,2.0023,0,0,1,28,13Z\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,9l-.857,3h2L19,9h2l-.857,3H22v2H19.572l-1.143,4H21v2H17.857L17,23H15l.857-3h-2L13,23H11l.857-3H10V18h2.429l1.143-4H11V12h3.143L15,9Zm.572,5h-2l-1.143,4h2Z\"\n })), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,13V8H9V6H6A2.0023,2.0023,0,0,0,4,8v5a2.0023,2.0023,0,0,1-2,2v2a2.0023,2.0023,0,0,1,2,2v5a2.0023,2.0023,0,0,0,2,2H9V24H6V19a3.9756,3.9756,0,0,0-1.3823-3A3.9756,3.9756,0,0,0,6,13Z\"\n })), children);\n});\nvar Parameter24 = /*#__PURE__*/React.forwardRef(function Parameter24(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,13V8a2.0023,2.0023,0,0,0-2-2H23V8h3v5a3.9756,3.9756,0,0,0,1.3823,3A3.9756,3.9756,0,0,0,26,19v5H23v2h3a2.0023,2.0023,0,0,0,2-2V19a2.0023,2.0023,0,0,1,2-2V15A2.0023,2.0023,0,0,1,28,13Z\"\n })), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,9l-.857,3h2L19,9h2l-.857,3H22v2H19.572l-1.143,4H21v2H17.857L17,23H15l.857-3h-2L13,23H11l.857-3H10V18h2.429l1.143-4H11V12h3.143L15,9Zm.572,5h-2l-1.143,4h2Z\"\n })), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,13V8H9V6H6A2.0023,2.0023,0,0,0,4,8v5a2.0023,2.0023,0,0,1-2,2v2a2.0023,2.0023,0,0,1,2,2v5a2.0023,2.0023,0,0,0,2,2H9V24H6V19a3.9756,3.9756,0,0,0-1.3823-3A3.9756,3.9756,0,0,0,6,13Z\"\n })), children);\n});\nvar Parameter20 = /*#__PURE__*/React.forwardRef(function Parameter20(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,13V8a2.0023,2.0023,0,0,0-2-2H23V8h3v5a3.9756,3.9756,0,0,0,1.3823,3A3.9756,3.9756,0,0,0,26,19v5H23v2h3a2.0023,2.0023,0,0,0,2-2V19a2.0023,2.0023,0,0,1,2-2V15A2.0023,2.0023,0,0,1,28,13Z\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,9l-.857,3h2L19,9h2l-.857,3H22v2H19.572l-1.143,4H21v2H17.857L17,23H15l.857-3h-2L13,23H11l.857-3H10V18h2.429l1.143-4H11V12h3.143L15,9Zm.572,5h-2l-1.143,4h2Z\"\n })), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,13V8H9V6H6A2.0023,2.0023,0,0,0,4,8v5a2.0023,2.0023,0,0,1-2,2v2a2.0023,2.0023,0,0,1,2,2v5a2.0023,2.0023,0,0,0,2,2H9V24H6V19a3.9756,3.9756,0,0,0-1.3823-3A3.9756,3.9756,0,0,0,6,13Z\"\n })), children);\n});\nvar Parameter16 = /*#__PURE__*/React.forwardRef(function Parameter16(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,13V8a2.0023,2.0023,0,0,0-2-2H23V8h3v5a3.9756,3.9756,0,0,0,1.3823,3A3.9756,3.9756,0,0,0,26,19v5H23v2h3a2.0023,2.0023,0,0,0,2-2V19a2.0023,2.0023,0,0,1,2-2V15A2.0023,2.0023,0,0,1,28,13Z\"\n })), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M17,9l-.857,3h2L19,9h2l-.857,3H22v2H19.572l-1.143,4H21v2H17.857L17,23H15l.857-3h-2L13,23H11l.857-3H10V18h2.429l1.143-4H11V12h3.143L15,9Zm.572,5h-2l-1.143,4h2Z\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,13V8H9V6H6A2.0023,2.0023,0,0,0,4,8v5a2.0023,2.0023,0,0,1-2,2v2a2.0023,2.0023,0,0,1,2,2v5a2.0023,2.0023,0,0,0,2,2H9V24H6V19a3.9756,3.9756,0,0,0-1.3823-3A3.9756,3.9756,0,0,0,6,13Z\"\n })), children);\n});\nvar ParentChild32 = /*#__PURE__*/React.forwardRef(function ParentChild32(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a2,2,0,0,0,2-2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4v6a2,2,0,0,0,2,2H15v4H9a2,2,0,0,0-2,2v4H4a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H9V18H23v4H20a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H25V18a2,2,0,0,0-2-2H17V12ZM12,28H4V24h8Zm16,0H20V24h8ZM4,4H28v6H4Z\"\n })), children);\n});\nvar ParentChild24 = /*#__PURE__*/React.forwardRef(function ParentChild24(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a2,2,0,0,0,2-2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4v6a2,2,0,0,0,2,2H15v4H9a2,2,0,0,0-2,2v4H4a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H9V18H23v4H20a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H25V18a2,2,0,0,0-2-2H17V12ZM12,28H4V24h8Zm16,0H20V24h8ZM4,4H28v6H4Z\"\n })), children);\n});\nvar ParentChild20 = /*#__PURE__*/React.forwardRef(function ParentChild20(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a2,2,0,0,0,2-2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4v6a2,2,0,0,0,2,2H15v4H9a2,2,0,0,0-2,2v4H4a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H9V18H23v4H20a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H25V18a2,2,0,0,0-2-2H17V12ZM12,28H4V24h8Zm16,0H20V24h8ZM4,4H28v6H4Z\"\n })), children);\n});\nvar ParentChild16 = /*#__PURE__*/React.forwardRef(function ParentChild16(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12a2,2,0,0,0,2-2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4v6a2,2,0,0,0,2,2H15v4H9a2,2,0,0,0-2,2v4H4a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H9V18H23v4H20a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V24a2,2,0,0,0-2-2H25V18a2,2,0,0,0-2-2H17V12ZM12,28H4V24h8Zm16,0H20V24h8ZM4,4H28v6H4Z\"\n })), children);\n});\nvar PartlyCloudy32 = /*#__PURE__*/React.forwardRef(function PartlyCloudy32(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H31V17H27z\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.086 5.794H27.329V7.794H23.086z\",\n transform: \"rotate(-45 25.207 6.794)\"\n })), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 1H17V5H15z\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4.672 24.208H8.915V26.208H4.672z\",\n transform: \"rotate(-45 6.793 25.208)\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.793 4.672H7.793V8.915H5.793z\",\n transform: \"rotate(-45 6.793 6.794)\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 15H5V17H1zM26.7939 20.3418a6.9617 6.9617 0 00-1.8681-3.2671A8.485 8.485 0 0025 16a9 9 0 10-14.585 7.0332A4.9771 4.9771 0 0015 30H25a4.9947 4.9947 0 001.7939-9.6582zM9 16a6.9955 6.9955 0 0113.9849-.2969A6.8883 6.8883 0 0020 15a7.04 7.04 0 00-6.7944 5.3418A4.986 4.986 0 0011.5618 21.39 6.9675 6.9675 0 019 16zM25 28H15a2.9945 2.9945 0 01-.6963-5.9082l.6587-.1572.0986-.67a4.9923 4.9923 0 019.878 0l.0986.6695.6587.1572A2.9945 2.9945 0 0125 28z\"\n })), children);\n});\nvar PartlyCloudy24 = /*#__PURE__*/React.forwardRef(function PartlyCloudy24(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H31V17H27z\"\n })), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.086 5.794H27.329V7.794H23.086z\",\n transform: \"rotate(-45 25.207 6.794)\"\n })), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 1H17V5H15z\"\n })), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4.672 24.208H8.915V26.208H4.672z\",\n transform: \"rotate(-45 6.793 25.208)\"\n })), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.793 4.672H7.793V8.915H5.793z\",\n transform: \"rotate(-45 6.793 6.794)\"\n })), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 15H5V17H1zM26.7939 20.3418a6.9617 6.9617 0 00-1.8681-3.2671A8.485 8.485 0 0025 16a9 9 0 10-14.585 7.0332A4.9771 4.9771 0 0015 30H25a4.9947 4.9947 0 001.7939-9.6582zM9 16a6.9955 6.9955 0 0113.9849-.2969A6.8883 6.8883 0 0020 15a7.04 7.04 0 00-6.7944 5.3418A4.986 4.986 0 0011.5618 21.39 6.9675 6.9675 0 019 16zM25 28H15a2.9945 2.9945 0 01-.6963-5.9082l.6587-.1572.0986-.67a4.9923 4.9923 0 019.878 0l.0986.6695.6587.1572A2.9945 2.9945 0 0125 28z\"\n })), children);\n});\nvar PartlyCloudy20 = /*#__PURE__*/React.forwardRef(function PartlyCloudy20(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H31V17H27z\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.086 5.794H27.329V7.794H23.086z\",\n transform: \"rotate(-45 25.207 6.794)\"\n })), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 1H17V5H15z\"\n })), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4.672 24.208H8.915V26.208H4.672z\",\n transform: \"rotate(-45 6.793 25.208)\"\n })), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.793 4.672H7.793V8.915H5.793z\",\n transform: \"rotate(-45 6.793 6.794)\"\n })), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 15H5V17H1zM26.7939 20.3418a6.9617 6.9617 0 00-1.8681-3.2671A8.485 8.485 0 0025 16a9 9 0 10-14.585 7.0332A4.9771 4.9771 0 0015 30H25a4.9947 4.9947 0 001.7939-9.6582zM9 16a6.9955 6.9955 0 0113.9849-.2969A6.8883 6.8883 0 0020 15a7.04 7.04 0 00-6.7944 5.3418A4.986 4.986 0 0011.5618 21.39 6.9675 6.9675 0 019 16zM25 28H15a2.9945 2.9945 0 01-.6963-5.9082l.6587-.1572.0986-.67a4.9923 4.9923 0 019.878 0l.0986.6695.6587.1572A2.9945 2.9945 0 0125 28z\"\n })), children);\n});\nvar PartlyCloudy16 = /*#__PURE__*/React.forwardRef(function PartlyCloudy16(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27 15H31V17H27z\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.086 5.794H27.329V7.794H23.086z\",\n transform: \"rotate(-45 25.207 6.794)\"\n })), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 1H17V5H15z\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4.672 24.208H8.915V26.208H4.672z\",\n transform: \"rotate(-45 6.793 25.208)\"\n })), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.793 4.672H7.793V8.915H5.793z\",\n transform: \"rotate(-45 6.793 6.794)\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 15H5V17H1zM26.7939 20.3418a6.9617 6.9617 0 00-1.8681-3.2671A8.485 8.485 0 0025 16a9 9 0 10-14.585 7.0332A4.9771 4.9771 0 0015 30H25a4.9947 4.9947 0 001.7939-9.6582zM9 16a6.9955 6.9955 0 0113.9849-.2969A6.8883 6.8883 0 0020 15a7.04 7.04 0 00-6.7944 5.3418A4.986 4.986 0 0011.5618 21.39 6.9675 6.9675 0 019 16zM25 28H15a2.9945 2.9945 0 01-.6963-5.9082l.6587-.1572.0986-.67a4.9923 4.9923 0 019.878 0l.0986.6695.6587.1572A2.9945 2.9945 0 0125 28z\"\n })), children);\n});\nvar PartlyCloudyNight32 = /*#__PURE__*/React.forwardRef(function PartlyCloudyNight32(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,19a4.974,4.974,0,0,0-3.2061-4.6582A6.9711,6.9711,0,0,0,13.7578,12.9a13.1418,13.1418,0,0,1,.1314-8.52A1.015,1.015,0,0,0,12.98,3a.9825.9825,0,0,0-.1746.0156A13.0958,13.0958,0,0,0,14.63,28.9971c.164.0063.3281,0,.4907,0a13.0412,13.0412,0,0,0,10.29-5.0386A4.99,4.99,0,0,0,30,19ZM14.7034,26.9976a11.0945,11.0945,0,0,1-3.201-21.584,15.1817,15.1817,0,0,0,.8443,9.3676A4.9877,4.9877,0,0,0,15,24h7.6772a11.0991,11.0991,0,0,1-7.5561,2.9976C14.9827,26.9976,14.8428,27.0024,14.7034,26.9976ZM25,22H15a2.9945,2.9945,0,0,1-.6963-5.9082l.6587-.1572.0986-.67a4.9923,4.9923,0,0,1,9.878.0005l.0986.6695.6587.1572A2.9945,2.9945,0,0,1,25,22Z\"\n })), children);\n});\nvar PartlyCloudyNight24 = /*#__PURE__*/React.forwardRef(function PartlyCloudyNight24(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,19a4.974,4.974,0,0,0-3.2061-4.6582A6.9711,6.9711,0,0,0,13.7578,12.9a13.1418,13.1418,0,0,1,.1314-8.52A1.015,1.015,0,0,0,12.98,3a.9825.9825,0,0,0-.1746.0156A13.0958,13.0958,0,0,0,14.63,28.9971c.164.0063.3281,0,.4907,0a13.0412,13.0412,0,0,0,10.29-5.0386A4.99,4.99,0,0,0,30,19ZM14.7034,26.9976a11.0945,11.0945,0,0,1-3.201-21.584,15.1817,15.1817,0,0,0,.8443,9.3676A4.9877,4.9877,0,0,0,15,24h7.6772a11.0991,11.0991,0,0,1-7.5561,2.9976C14.9827,26.9976,14.8428,27.0024,14.7034,26.9976ZM25,22H15a2.9945,2.9945,0,0,1-.6963-5.9082l.6587-.1572.0986-.67a4.9923,4.9923,0,0,1,9.878.0005l.0986.6695.6587.1572A2.9945,2.9945,0,0,1,25,22Z\"\n })), children);\n});\nvar PartlyCloudyNight20 = /*#__PURE__*/React.forwardRef(function PartlyCloudyNight20(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,19a4.974,4.974,0,0,0-3.2061-4.6582A6.9711,6.9711,0,0,0,13.7578,12.9a13.1418,13.1418,0,0,1,.1314-8.52A1.015,1.015,0,0,0,12.98,3a.9825.9825,0,0,0-.1746.0156A13.0958,13.0958,0,0,0,14.63,28.9971c.164.0063.3281,0,.4907,0a13.0412,13.0412,0,0,0,10.29-5.0386A4.99,4.99,0,0,0,30,19ZM14.7034,26.9976a11.0945,11.0945,0,0,1-3.201-21.584,15.1817,15.1817,0,0,0,.8443,9.3676A4.9877,4.9877,0,0,0,15,24h7.6772a11.0991,11.0991,0,0,1-7.5561,2.9976C14.9827,26.9976,14.8428,27.0024,14.7034,26.9976ZM25,22H15a2.9945,2.9945,0,0,1-.6963-5.9082l.6587-.1572.0986-.67a4.9923,4.9923,0,0,1,9.878.0005l.0986.6695.6587.1572A2.9945,2.9945,0,0,1,25,22Z\"\n })), children);\n});\nvar PartlyCloudyNight16 = /*#__PURE__*/React.forwardRef(function PartlyCloudyNight16(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,19a4.974,4.974,0,0,0-3.2061-4.6582A6.9711,6.9711,0,0,0,13.7578,12.9a13.1418,13.1418,0,0,1,.1314-8.52A1.015,1.015,0,0,0,12.98,3a.9825.9825,0,0,0-.1746.0156A13.0958,13.0958,0,0,0,14.63,28.9971c.164.0063.3281,0,.4907,0a13.0412,13.0412,0,0,0,10.29-5.0386A4.99,4.99,0,0,0,30,19ZM14.7034,26.9976a11.0945,11.0945,0,0,1-3.201-21.584,15.1817,15.1817,0,0,0,.8443,9.3676A4.9877,4.9877,0,0,0,15,24h7.6772a11.0991,11.0991,0,0,1-7.5561,2.9976C14.9827,26.9976,14.8428,27.0024,14.7034,26.9976ZM25,22H15a2.9945,2.9945,0,0,1-.6963-5.9082l.6587-.1572.0986-.67a4.9923,4.9923,0,0,1,9.878.0005l.0986.6695.6587.1572A2.9945,2.9945,0,0,1,25,22Z\"\n })), children);\n});\nvar Partnership32 = /*#__PURE__*/React.forwardRef(function Partnership32(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9a4 4 0 114-4A4 4 0 018 9zM8 3a2 2 0 102 2A2 2 0 008 3zM24 9a4 4 0 114-4A4 4 0 0124 9zm0-6a2 2 0 102 2A2 2 0 0024 3zM26 30H22a2 2 0 01-2-2V21h2v7h4V19h2V13a1 1 0 00-1-1H20.58L16 20l-4.58-8H5a1 1 0 00-1 1v6H6v9h4V21h2v7a2 2 0 01-2 2H6a2 2 0 01-2-2V21a2 2 0 01-2-2V13a3 3 0 013-3h7.58L16 16l3.42-6H27a3 3 0 013 3v6a2 2 0 01-2 2v7A2 2 0 0126 30z\"\n })), children);\n});\nvar Partnership24 = /*#__PURE__*/React.forwardRef(function Partnership24(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9a4 4 0 114-4A4 4 0 018 9zM8 3a2 2 0 102 2A2 2 0 008 3zM24 9a4 4 0 114-4A4 4 0 0124 9zm0-6a2 2 0 102 2A2 2 0 0024 3zM26 30H22a2 2 0 01-2-2V21h2v7h4V19h2V13a1 1 0 00-1-1H20.58L16 20l-4.58-8H5a1 1 0 00-1 1v6H6v9h4V21h2v7a2 2 0 01-2 2H6a2 2 0 01-2-2V21a2 2 0 01-2-2V13a3 3 0 013-3h7.58L16 16l3.42-6H27a3 3 0 013 3v6a2 2 0 01-2 2v7A2 2 0 0126 30z\"\n })), children);\n});\nvar Partnership20 = /*#__PURE__*/React.forwardRef(function Partnership20(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9a4 4 0 114-4A4 4 0 018 9zM8 3a2 2 0 102 2A2 2 0 008 3zM24 9a4 4 0 114-4A4 4 0 0124 9zm0-6a2 2 0 102 2A2 2 0 0024 3zM26 30H22a2 2 0 01-2-2V21h2v7h4V19h2V13a1 1 0 00-1-1H20.58L16 20l-4.58-8H5a1 1 0 00-1 1v6H6v9h4V21h2v7a2 2 0 01-2 2H6a2 2 0 01-2-2V21a2 2 0 01-2-2V13a3 3 0 013-3h7.58L16 16l3.42-6H27a3 3 0 013 3v6a2 2 0 01-2 2v7A2 2 0 0126 30z\"\n })), children);\n});\nvar Partnership16 = /*#__PURE__*/React.forwardRef(function Partnership16(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 9a4 4 0 114-4A4 4 0 018 9zM8 3a2 2 0 102 2A2 2 0 008 3zM24 9a4 4 0 114-4A4 4 0 0124 9zm0-6a2 2 0 102 2A2 2 0 0024 3zM26 30H22a2 2 0 01-2-2V21h2v7h4V19h2V13a1 1 0 00-1-1H20.58L16 20l-4.58-8H5a1 1 0 00-1 1v6H6v9h4V21h2v7a2 2 0 01-2 2H6a2 2 0 01-2-2V21a2 2 0 01-2-2V13a3 3 0 013-3h7.58L16 16l3.42-6H27a3 3 0 013 3v6a2 2 0 01-2 2v7A2 2 0 0126 30z\"\n })), children);\n});\nvar PassengerDrinks32 = /*#__PURE__*/React.forwardRef(function PassengerDrinks32(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4V2H22V4a3.9906 3.9906 0 003 3.8586V11H23v2h6V11H27V7.8586A3.9906 3.9906 0 0030 4zM10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4746 31.313L19.3408 24H12.2393A4.0073 4.0073 0 018.373 21.0293l-1.6337-6.126a3.8987 3.8987 0 017.5341-2.0092L15.1016 16H21v2H13.5645l-1.2227-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0052 2.0052 0 0012.2393 22h8.42l3.6543 8.5254z\"\n })), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7683a2.0025,2.0025,0,0,1-1.9326-1.4849L2.0337,12.2576l1.9326-.5152L7.7683,26H18Z\"\n })), children);\n});\nvar PassengerDrinks24 = /*#__PURE__*/React.forwardRef(function PassengerDrinks24(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4V2H22V4a3.9906 3.9906 0 003 3.8586V11H23v2h6V11H27V7.8586A3.9906 3.9906 0 0030 4zM10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4746 31.313L19.3408 24H12.2393A4.0073 4.0073 0 018.373 21.0293l-1.6337-6.126a3.8987 3.8987 0 017.5341-2.0092L15.1016 16H21v2H13.5645l-1.2227-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0052 2.0052 0 0012.2393 22h8.42l3.6543 8.5254z\"\n })), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7683a2.0025,2.0025,0,0,1-1.9326-1.4849L2.0337,12.2576l1.9326-.5152L7.7683,26H18Z\"\n })), children);\n});\nvar PassengerDrinks20 = /*#__PURE__*/React.forwardRef(function PassengerDrinks20(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4V2H22V4a3.9906 3.9906 0 003 3.8586V11H23v2h6V11H27V7.8586A3.9906 3.9906 0 0030 4zM10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4746 31.313L19.3408 24H12.2393A4.0073 4.0073 0 018.373 21.0293l-1.6337-6.126a3.8987 3.8987 0 017.5341-2.0092L15.1016 16H21v2H13.5645l-1.2227-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0052 2.0052 0 0012.2393 22h8.42l3.6543 8.5254z\"\n })), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7683a2.0025,2.0025,0,0,1-1.9326-1.4849L2.0337,12.2576l1.9326-.5152L7.7683,26H18Z\"\n })), children);\n});\nvar PassengerDrinks16 = /*#__PURE__*/React.forwardRef(function PassengerDrinks16(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 4V2H22V4a3.9906 3.9906 0 003 3.8586V11H23v2h6V11H27V7.8586A3.9906 3.9906 0 0030 4zM10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4746 31.313L19.3408 24H12.2393A4.0073 4.0073 0 018.373 21.0293l-1.6337-6.126a3.8987 3.8987 0 017.5341-2.0092L15.1016 16H21v2H13.5645l-1.2227-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0052 2.0052 0 0012.2393 22h8.42l3.6543 8.5254z\"\n })), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7683a2.0025,2.0025,0,0,1-1.9326-1.4849L2.0337,12.2576l1.9326-.5152L7.7683,26H18Z\"\n })), children);\n});\nvar PassengerPlus32 = /*#__PURE__*/React.forwardRef(function PassengerPlus32(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4739 31.313L19.34 24H12.2385a4.0072 4.0072 0 01-3.8662-2.9707l-1.6338-6.126a3.8988 3.8988 0 017.5342-2.0092L15.1008 16H21v2H13.5637l-1.2226-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0051 2.0051 0 0012.2385 22h8.42l3.6543 8.5254zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7676A2.0025,2.0025,0,0,1,5.835,26.5151L2.033,12.2576l1.9326-.5152L7.7676,26H18Z\"\n })), children);\n});\nvar PassengerPlus24 = /*#__PURE__*/React.forwardRef(function PassengerPlus24(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4739 31.313L19.34 24H12.2385a4.0072 4.0072 0 01-3.8662-2.9707l-1.6338-6.126a3.8988 3.8988 0 017.5342-2.0092L15.1008 16H21v2H13.5637l-1.2226-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0051 2.0051 0 0012.2385 22h8.42l3.6543 8.5254zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7676A2.0025,2.0025,0,0,1,5.835,26.5151L2.033,12.2576l1.9326-.5152L7.7676,26H18Z\"\n })), children);\n});\nvar PassengerPlus20 = /*#__PURE__*/React.forwardRef(function PassengerPlus20(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4739 31.313L19.34 24H12.2385a4.0072 4.0072 0 01-3.8662-2.9707l-1.6338-6.126a3.8988 3.8988 0 017.5342-2.0092L15.1008 16H21v2H13.5637l-1.2226-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0051 2.0051 0 0012.2385 22h8.42l3.6543 8.5254zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7676A2.0025,2.0025,0,0,1,5.835,26.5151L2.033,12.2576l1.9326-.5152L7.7676,26H18Z\"\n })), children);\n});\nvar PassengerPlus16 = /*#__PURE__*/React.forwardRef(function PassengerPlus16(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5 9A3.5 3.5 0 1114 5.5 3.5042 3.5042 0 0110.5 9zm0-5A1.5 1.5 0 1012 5.5 1.5017 1.5017 0 0010.5 4zM22.4739 31.313L19.34 24H12.2385a4.0072 4.0072 0 01-3.8662-2.9707l-1.6338-6.126a3.8988 3.8988 0 017.5342-2.0092L15.1008 16H21v2H13.5637l-1.2226-4.5908a1.9 1.9 0 00-3.6709.979l1.6338 6.1255A2.0051 2.0051 0 0012.2385 22h8.42l3.6543 8.5254zM30 6L26 6 26 2 24 2 24 6 20 6 20 8 24 8 24 12 26 12 26 8 30 8 30 6z\"\n })), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,28H7.7676A2.0025,2.0025,0,0,1,5.835,26.5151L2.033,12.2576l1.9326-.5152L7.7676,26H18Z\"\n })), children);\n});\nvar Password32 = /*#__PURE__*/React.forwardRef(function Password32(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z\"\n })), _circle45 || (_circle45 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22\",\n cy: \"10\",\n r: \"2\"\n })), children);\n});\nvar Password24 = /*#__PURE__*/React.forwardRef(function Password24(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z\"\n })), _circle46 || (_circle46 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22\",\n cy: \"10\",\n r: \"2\"\n })), children);\n});\nvar Password20 = /*#__PURE__*/React.forwardRef(function Password20(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z\"\n })), _circle47 || (_circle47 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22\",\n cy: \"10\",\n r: \"2\"\n })), children);\n});\nvar Password16 = /*#__PURE__*/React.forwardRef(function Password16(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z\"\n })), _circle48 || (_circle48 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"22\",\n cy: \"10\",\n r: \"2\"\n })), children);\n});\nvar Paste32 = /*#__PURE__*/React.forwardRef(function Paste32(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H17.83l2.58-2.59L19,16l-5,5,5,5,1.41-1.41L17.83,22H26v8h2V22A2,2,0,0,0,26,20Z\"\n })), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.71,9.29l-7-7A1,1,0,0,0,16,2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2h8V28H6V4h8v6a2,2,0,0,0,2,2h6v2h2V10A1,1,0,0,0,23.71,9.29ZM16,4.41,21.59,10H16Z\"\n })), children);\n});\nvar Paste24 = /*#__PURE__*/React.forwardRef(function Paste24(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H17.83l2.58-2.59L19,16l-5,5,5,5,1.41-1.41L17.83,22H26v8h2V22A2,2,0,0,0,26,20Z\"\n })), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.71,9.29l-7-7A1,1,0,0,0,16,2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2h8V28H6V4h8v6a2,2,0,0,0,2,2h6v2h2V10A1,1,0,0,0,23.71,9.29ZM16,4.41,21.59,10H16Z\"\n })), children);\n});\nvar Paste20 = /*#__PURE__*/React.forwardRef(function Paste20(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H17.83l2.58-2.59L19,16l-5,5,5,5,1.41-1.41L17.83,22H26v8h2V22A2,2,0,0,0,26,20Z\"\n })), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.71,9.29l-7-7A1,1,0,0,0,16,2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2h8V28H6V4h8v6a2,2,0,0,0,2,2h6v2h2V10A1,1,0,0,0,23.71,9.29ZM16,4.41,21.59,10H16Z\"\n })), children);\n});\nvar Paste16 = /*#__PURE__*/React.forwardRef(function Paste16(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,20H17.83l2.58-2.59L19,16l-5,5,5,5,1.41-1.41L17.83,22H26v8h2V22A2,2,0,0,0,26,20Z\"\n })), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.71,9.29l-7-7A1,1,0,0,0,16,2H6A2,2,0,0,0,4,4V28a2,2,0,0,0,2,2h8V28H6V4h8v6a2,2,0,0,0,2,2h6v2h2V10A1,1,0,0,0,23.71,9.29ZM16,4.41,21.59,10H16Z\"\n })), children);\n});\nvar Pause32 = /*#__PURE__*/React.forwardRef(function Pause32(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8V24H8V8h4m0-2H8A2 2 0 006 8V24a2 2 0 002 2h4a2 2 0 002-2V8a2 2 0 00-2-2zM24 8V24H20V8h4m0-2H20a2 2 0 00-2 2V24a2 2 0 002 2h4a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\nvar Pause24 = /*#__PURE__*/React.forwardRef(function Pause24(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8V24H8V8h4m0-2H8A2 2 0 006 8V24a2 2 0 002 2h4a2 2 0 002-2V8a2 2 0 00-2-2zM24 8V24H20V8h4m0-2H20a2 2 0 00-2 2V24a2 2 0 002 2h4a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\nvar Pause20 = /*#__PURE__*/React.forwardRef(function Pause20(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 8V24H8V8h4m0-2H8A2 2 0 006 8V24a2 2 0 002 2h4a2 2 0 002-2V8a2 2 0 00-2-2zM24 8V24H20V8h4m0-2H20a2 2 0 00-2 2V24a2 2 0 002 2h4a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\nvar Pause16 = /*#__PURE__*/React.forwardRef(function Pause16(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 4v8H4V4H6M6 3H4C3.4 3 3 3.4 3 4v8c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V4C7 3.4 6.6 3 6 3zM12 4v8h-2V4H12M12 3h-2C9.4 3 9 3.4 9 4v8c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V4C13 3.4 12.6 3 12 3z\"\n })), children);\n});\nvar PauseFilled32 = /*#__PURE__*/React.forwardRef(function PauseFilled32(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H10A2 2 0 008 8V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2zM22 6H20a2 2 0 00-2 2V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\nvar PauseFilled24 = /*#__PURE__*/React.forwardRef(function PauseFilled24(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H10A2 2 0 008 8V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2zM22 6H20a2 2 0 00-2 2V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\nvar PauseFilled20 = /*#__PURE__*/React.forwardRef(function PauseFilled20(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H10A2 2 0 008 8V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2zM22 6H20a2 2 0 00-2 2V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\nvar PauseFilled16 = /*#__PURE__*/React.forwardRef(function PauseFilled16(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 6H10A2 2 0 008 8V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2zM22 6H20a2 2 0 00-2 2V24a2 2 0 002 2h2a2 2 0 002-2V8a2 2 0 00-2-2z\"\n })), children);\n});\n\nexport { NumberSmall_016, NumberSmall_020, NumberSmall_024, NumberSmall_032, NumberSmall_116, NumberSmall_120, NumberSmall_124, NumberSmall_132, NumberSmall_216, NumberSmall_220, NumberSmall_224, NumberSmall_232, NumberSmall_316, NumberSmall_320, NumberSmall_324, NumberSmall_332, NumberSmall_416, NumberSmall_420, NumberSmall_424, NumberSmall_432, NumberSmall_516, NumberSmall_520, NumberSmall_524, NumberSmall_532, NumberSmall_616, NumberSmall_620, NumberSmall_624, NumberSmall_632, NumberSmall_716, NumberSmall_720, NumberSmall_724, NumberSmall_732, NumberSmall_816, NumberSmall_820, NumberSmall_824, NumberSmall_832, NumberSmall_916, NumberSmall_920, NumberSmall_924, NumberSmall_932, Number_716, Number_720, Number_816, Number_820, Number_824, Number_832, Number_916, Number_920, Number_924, Number_932, ObjectStorage16, ObjectStorage20, ObjectStorage24, ObjectStorage32, ObjectStorageAlt16, ObjectStorageAlt20, ObjectStorageAlt24, ObjectStorageAlt32, ObservedHail16, ObservedHail20, ObservedHail24, ObservedHail32, ObservedLightning16, ObservedLightning20, ObservedLightning24, ObservedLightning32, Omega16, Omega20, Omega24, Omega32, Opacity16, Opacity20, Opacity24, Opacity32, OpenPanelBottom16, OpenPanelBottom20, OpenPanelBottom24, OpenPanelBottom32, OpenPanelFilledBottom16, OpenPanelFilledBottom20, OpenPanelFilledBottom24, OpenPanelFilledBottom32, OpenPanelFilledLeft16, OpenPanelFilledLeft20, OpenPanelFilledLeft24, OpenPanelFilledLeft32, OpenPanelFilledRight16, OpenPanelFilledRight20, OpenPanelFilledRight24, OpenPanelFilledRight32, OpenPanelFilledTop16, OpenPanelFilledTop20, OpenPanelFilledTop24, OpenPanelFilledTop32, OpenPanelLeft16, OpenPanelLeft20, OpenPanelLeft24, OpenPanelLeft32, OpenPanelRight16, OpenPanelRight20, OpenPanelRight24, OpenPanelRight32, OpenPanelTop16, OpenPanelTop20, OpenPanelTop24, OpenPanelTop32, OperationsField16, OperationsField20, OperationsField24, OperationsField32, OperationsRecord16, OperationsRecord20, OperationsRecord24, OperationsRecord32, OrderDetails16, OrderDetails20, OrderDetails24, OrderDetails32, Ordinal16, Ordinal20, Ordinal24, Ordinal32, Outage16, Outage20, Outage24, Outage32, OutlookSevere16, OutlookSevere20, OutlookSevere24, OutlookSevere32, OverflowMenuHorizontal16, OverflowMenuHorizontal20, OverflowMenuHorizontal24, OverflowMenuHorizontal32, OverflowMenuVertical16, OverflowMenuVertical20, OverflowMenuVertical24, OverflowMenuVertical32, Overlay16, Overlay20, Overlay24, Overlay32, Package16, Package20, Package24, Package32, PageBreak16, PageBreak20, PageBreak24, PageBreak32, PageFirst16, PageFirst20, PageFirst24, PageFirst32, PageLast16, PageLast20, PageLast24, PageLast32, PageNumber16, PageNumber20, PageNumber24, PageNumber32, PaintBrush16, PaintBrush20, PaintBrush24, PaintBrush32, PaintBrushAlt16, PaintBrushAlt20, PaintBrushAlt24, PaintBrushAlt32, PalmTree16, PalmTree20, PalmTree24, PalmTree32, PanHorizontal16, PanHorizontal20, PanHorizontal24, PanHorizontal32, PanVertical16, PanVertical20, PanVertical24, PanVertical32, PanelExpansion16, PanelExpansion20, PanelExpansion24, PanelExpansion32, Paragraph16, Paragraph20, Paragraph24, Paragraph32, Parameter16, Parameter20, Parameter24, Parameter32, ParentChild16, ParentChild20, ParentChild24, ParentChild32, PartlyCloudy16, PartlyCloudy20, PartlyCloudy24, PartlyCloudy32, PartlyCloudyNight16, PartlyCloudyNight20, PartlyCloudyNight24, PartlyCloudyNight32, Partnership16, Partnership20, Partnership24, Partnership32, PassengerDrinks16, PassengerDrinks20, PassengerDrinks24, PassengerDrinks32, PassengerPlus16, PassengerPlus20, PassengerPlus24, PassengerPlus32, Password16, Password20, Password24, Password32, Paste16, Paste20, Paste24, Paste32, Pause16, Pause20, Pause24, Pause32, PauseFilled16, PauseFilled20, PauseFilled24, PauseFilled32, QOperation16, QOperation20, QOperation24, QOperation32, QOperationGauge16, QOperationGauge20, QOperationGauge24, QOperationGauge32, QOperationIf16, QOperationIf20, QOperationIf24, QOperationIf32, WatsonHealthPageScroll16, WatsonHealthPageScroll20, WatsonHealthPageScroll24, WatsonHealthPageScroll32 };\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"id\", \"ariaLabel\", \"children\", \"iconDescription\", \"direction\", \"flipped\", \"focusTrap\", \"menuOffset\", \"menuOffsetFlip\", \"iconClass\", \"onClick\", \"onOpen\", \"selectorPrimaryFocus\", \"renderIcon\", \"innerRef\", \"menuOptionsClass\", \"light\", \"size\"];\n\nvar _triggerButtonPositio, _triggerButtonPositio2;\n\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); }; }\n\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; } }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport invariant from 'invariant';\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport classNames from 'classnames';\nimport ClickListener from '../../internal/ClickListener';\nimport FloatingMenu, { DIRECTION_TOP, DIRECTION_BOTTOM } from '../../internal/FloatingMenu';\nimport { OverflowMenuVertical16 } from '@carbon/icons-react';\nimport { keys, matches as keyCodeMatches } from '../../internal/keyboard';\nimport mergeRefs from '../../tools/mergeRefs';\nimport { PrefixContext } from '../../internal/usePrefix';\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport deprecate from '../../prop-types/deprecate';\n\nvar on = function on(element) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n element.addEventListener.apply(element, args);\n return {\n release: function release() {\n element.removeEventListener.apply(element, args);\n return null;\n }\n };\n};\n/**\n * The CSS property names of the arrow keyed by the floating menu direction.\n * @type {object<string, string>}\n */\n\n\nvar triggerButtonPositionProps = (_triggerButtonPositio = {}, _defineProperty(_triggerButtonPositio, DIRECTION_TOP, 'bottom'), _defineProperty(_triggerButtonPositio, DIRECTION_BOTTOM, 'top'), _triggerButtonPositio);\n/**\n * Determines how the position of arrow should affect the floating menu position.\n * @type {object<string, number>}\n */\n\nvar triggerButtonPositionFactors = (_triggerButtonPositio2 = {}, _defineProperty(_triggerButtonPositio2, DIRECTION_TOP, -2), _defineProperty(_triggerButtonPositio2, DIRECTION_BOTTOM, -1), _triggerButtonPositio2);\n/**\n * @param {Element} menuBody The menu body with the menu arrow.\n * @param {string} direction The floating menu direction.\n * @returns {FloatingMenu~offset} The adjustment of the floating menu position, upon the position of the menu arrow.\n * @private\n */\n\nexport var getMenuOffset = function getMenuOffset(menuBody, direction, trigger, flip) {\n var triggerButtonPositionProp = triggerButtonPositionProps[direction];\n var triggerButtonPositionFactor = triggerButtonPositionFactors[direction];\n\n if (process.env.NODE_ENV !== \"production\") {\n !(triggerButtonPositionProp && triggerButtonPositionFactor) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[OverflowMenu] wrong floating menu direction: `%s`', direction) : invariant(false) : void 0;\n }\n\n var menuWidth = menuBody.offsetWidth,\n menuHeight = menuBody.offsetHeight;\n\n switch (triggerButtonPositionProp) {\n case 'top':\n case 'bottom':\n {\n // TODO: Ensure `trigger` is there for `<OverflowMenu open>`\n var triggerWidth = !trigger ? 0 : trigger.offsetWidth;\n return {\n left: (!flip ? 1 : -1) * (menuWidth / 2 - triggerWidth / 2),\n top: 0\n };\n }\n\n case 'left':\n case 'right':\n {\n // TODO: Ensure `trigger` is there for `<OverflowMenu open>`\n var triggerHeight = !trigger ? 0 : trigger.offsetHeight;\n return {\n left: 0,\n top: (!flip ? 1 : -1) * (menuHeight / 2 - triggerHeight / 2)\n };\n }\n\n default:\n break;\n }\n};\n\nvar OverflowMenu = /*#__PURE__*/function (_Component) {\n _inherits(OverflowMenu, _Component);\n\n var _super = _createSuper(OverflowMenu);\n\n function OverflowMenu() {\n var _this;\n\n _classCallCheck(this, OverflowMenu);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {});\n\n _defineProperty(_assertThisInitialized(_this), \"_hFocusIn\", null);\n\n _defineProperty(_assertThisInitialized(_this), \"_hBlurTimeout\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"_triggerRef\", /*#__PURE__*/React.createRef());\n\n _defineProperty(_assertThisInitialized(_this), \"handleClick\", function (evt) {\n evt.stopPropagation();\n\n if (!_this._menuBody || !_this._menuBody.contains(evt.target)) {\n _this.setState({\n open: !_this.state.open\n });\n\n _this.props.onClick(evt);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyDown\", function (evt) {\n if (keyCodeMatches(evt, [keys.ArrowDown])) {\n _this.setState({\n open: !_this.state.open\n });\n\n _this.props.onClick(evt);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleKeyPress\", function (evt) {\n if (_this.state.open && keyCodeMatches(evt, [keys.ArrowUp, keys.ArrowRight, keys.ArrowDown, keys.ArrowLeft])) {\n evt.preventDefault();\n } // Close the overflow menu on escape\n\n\n if (keyCodeMatches(evt, [keys.Escape])) {\n var wasOpen = _this.state.open;\n\n _this.closeMenu(function () {\n if (wasOpen) {\n _this.focusMenuEl();\n }\n }); // Stop the esc keypress from bubbling out and closing something it shouldn't\n\n\n evt.stopPropagation();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleClickOutside\", function (evt) {\n if (_this.state.open && (!_this._menuBody || !_this._menuBody.contains(evt.target))) {\n _this.closeMenu();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"closeMenu\", function (onCloseMenu) {\n _this.setState({\n open: false\n }, function () {\n // Optional callback to be executed after the state as been set to close\n if (onCloseMenu) {\n onCloseMenu();\n }\n\n _this.props.onClose();\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"focusMenuEl\", function () {\n var triggerEl = _this._triggerRef.current;\n\n if (triggerEl) {\n triggerEl.focus();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"handleOverflowMenuItemFocus\", function (_ref) {\n var _overflowMenuItem$cur;\n\n var currentIndex = _ref.currentIndex,\n direction = _ref.direction;\n var enabledIndices = React.Children.toArray(_this.props.children).reduce(function (acc, curr, i) {\n if (!curr.props.disabled) {\n acc.push(i);\n }\n\n return acc;\n }, []);\n\n var nextValidIndex = function () {\n var nextIndex = enabledIndices.indexOf(currentIndex) + direction;\n\n switch (enabledIndices.indexOf(currentIndex) + direction) {\n case -1:\n return enabledIndices.length - 1;\n\n case enabledIndices.length:\n return 0;\n\n default:\n return nextIndex;\n }\n }();\n\n var overflowMenuItem = _this[\"overflowMenuItem\".concat(enabledIndices[nextValidIndex])].overflowMenuItem;\n\n overflowMenuItem === null || overflowMenuItem === void 0 ? void 0 : (_overflowMenuItem$cur = overflowMenuItem.current) === null || _overflowMenuItem$cur === void 0 ? void 0 : _overflowMenuItem$cur.focus();\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_bindMenuBody\", function (menuBody) {\n if (!menuBody) {\n _this._menuBody = menuBody;\n }\n\n if (!menuBody && _this._hFocusIn) {\n _this._hFocusIn = _this._hFocusIn.release();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_handlePlace\", function (menuBody) {\n if (menuBody) {\n _this._menuBody = menuBody;\n var hasFocusin = ('onfocusin' in window);\n var focusinEventName = hasFocusin ? 'focusin' : 'focus';\n _this._hFocusIn = on(menuBody.ownerDocument, focusinEventName, function (event) {\n var target = ClickListener.getEventTarget(event);\n var triggerEl = _this._triggerRef.current;\n\n if (typeof target.matches === 'function') {\n if (!menuBody.contains(target) && triggerEl && !target.matches(\".\".concat(_this.context, \"--overflow-menu,.\").concat(_this.context, \"--overflow-menu-options\"))) {\n _this.closeMenu();\n }\n }\n }, !hasFocusin);\n\n _this.props.onOpen();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_getTarget\", function () {\n var triggerEl = _this._triggerRef.current;\n return triggerEl && triggerEl.closest('[data-floating-menu-container]') || document.body;\n });\n\n return _this;\n }\n\n _createClass(OverflowMenu, [{\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(_, prevState) {\n var onClose = this.props.onClose;\n\n if (!this.state.open && prevState.open) {\n onClose();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (typeof this._hBlurTimeout === 'number') {\n clearTimeout(this._hBlurTimeout);\n this._hBlurTimeout = undefined;\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _classNames,\n _classNames2,\n _this2 = this;\n\n var prefix = this.context;\n\n var _this$props = this.props,\n id = _this$props.id,\n ariaLabel = _this$props.ariaLabel,\n children = _this$props.children,\n iconDescription = _this$props.iconDescription,\n direction = _this$props.direction,\n flipped = _this$props.flipped,\n focusTrap = _this$props.focusTrap,\n menuOffset = _this$props.menuOffset,\n menuOffsetFlip = _this$props.menuOffsetFlip,\n iconClass = _this$props.iconClass,\n onClick = _this$props.onClick,\n onOpen = _this$props.onOpen,\n _this$props$selectorP = _this$props.selectorPrimaryFocus,\n selectorPrimaryFocus = _this$props$selectorP === void 0 ? '[data-floating-menu-primary-focus]' : _this$props$selectorP,\n IconElement = _this$props.renderIcon,\n ref = _this$props.innerRef,\n menuOptionsClass = _this$props.menuOptionsClass,\n light = _this$props.light,\n _this$props$size = _this$props.size,\n size = _this$props$size === void 0 ? 'md' : _this$props$size,\n other = _objectWithoutProperties(_this$props, _excluded);\n\n var open = this.state.open;\n var overflowMenuClasses = classNames(this.props.className, \"\".concat(prefix, \"--overflow-menu\"), (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefix, \"--overflow-menu--open\"), open), _defineProperty(_classNames, \"\".concat(prefix, \"--overflow-menu--light\"), light), _defineProperty(_classNames, \"\".concat(prefix, \"--overflow-menu--\").concat(size), size), _classNames));\n var overflowMenuOptionsClasses = classNames(menuOptionsClass, \"\".concat(prefix, \"--overflow-menu-options\"), (_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefix, \"--overflow-menu--flip\"), this.props.flipped), _defineProperty(_classNames2, \"\".concat(prefix, \"--overflow-menu-options--open\"), open), _defineProperty(_classNames2, \"\".concat(prefix, \"--overflow-menu-options--light\"), light), _defineProperty(_classNames2, \"\".concat(prefix, \"--overflow-menu-options--\").concat(size), size), _classNames2));\n var overflowMenuIconClasses = classNames(\"\".concat(prefix, \"--overflow-menu__icon\"), iconClass);\n var childrenWithProps = React.Children.toArray(children).map(function (child, index) {\n var _child$props;\n\n return /*#__PURE__*/React.cloneElement(child, {\n closeMenu: (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.closeMenu) || _this2.closeMenu,\n handleOverflowMenuItemFocus: _this2.handleOverflowMenuItemFocus,\n ref: function ref(e) {\n _this2[\"overflowMenuItem\".concat(index)] = e;\n },\n index: index\n });\n });\n var menuBody = /*#__PURE__*/React.createElement(\"ul\", {\n className: overflowMenuOptionsClasses,\n tabIndex: \"-1\",\n role: \"menu\",\n \"aria-label\": ariaLabel\n }, childrenWithProps);\n var wrappedMenuBody = /*#__PURE__*/React.createElement(FloatingMenu, {\n focusTrap: focusTrap,\n triggerRef: this._triggerRef,\n menuDirection: direction,\n menuOffset: flipped ? menuOffsetFlip : menuOffset,\n menuRef: this._bindMenuBody,\n flipped: this.props.flipped,\n target: this._getTarget,\n onPlace: this._handlePlace,\n selectorPrimaryFocus: this.props.selectorPrimaryFocus\n }, /*#__PURE__*/React.cloneElement(menuBody, {\n 'data-floating-menu-direction': direction\n }));\n var iconProps = {\n className: overflowMenuIconClasses,\n 'aria-label': iconDescription\n };\n return /*#__PURE__*/React.createElement(ClickListener, {\n onClickOutside: this.handleClickOutside\n }, /*#__PURE__*/React.createElement(\"button\", _extends({}, other, {\n type: \"button\",\n \"aria-haspopup\": true,\n \"aria-expanded\": this.state.open,\n className: overflowMenuClasses,\n onKeyDown: this.handleKeyPress,\n onClick: this.handleClick,\n \"aria-label\": ariaLabel,\n id: id,\n ref: mergeRefs(this._triggerRef, ref)\n }), /*#__PURE__*/React.createElement(IconElement, iconProps, iconDescription && /*#__PURE__*/React.createElement(\"title\", null, iconDescription)), open && wrappedMenuBody));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(_ref2, state) {\n var open = _ref2.open;\n var prevOpen = state.prevOpen;\n return prevOpen === open ? null : {\n open: open,\n prevOpen: open\n };\n }\n }]);\n\n return OverflowMenu;\n}(Component);\n\n_defineProperty(OverflowMenu, \"propTypes\", {\n /**\n * The ARIA label.\n */\n ariaLabel: FeatureFlags.enabled('enable-v11-release') ? PropTypes.string.isRequired : PropTypes.string,\n\n /**\n * The child nodes.\n */\n children: PropTypes.node,\n\n /**\n * The CSS class names.\n */\n className: PropTypes.string,\n\n /**\n * The menu direction.\n */\n direction: PropTypes.oneOf([DIRECTION_TOP, DIRECTION_BOTTOM]),\n\n /**\n * `true` if the menu alignment should be flipped.\n */\n flipped: PropTypes.bool,\n\n /**\n * Enable or disable focus trap behavior\n */\n focusTrap: PropTypes.bool,\n\n /**\n * The CSS class for the icon.\n */\n iconClass: PropTypes.string,\n\n /**\n * The icon description.\n */\n iconDescription: PropTypes.string.isRequired,\n\n /**\n * The element ID.\n */\n id: PropTypes.string,\n\n /**\n * `true` to use the light version. For use on $ui-01 backgrounds only.\n * Don't use this to make OverflowMenu background color same as container background color.\n */\n light: FeatureFlags.enabled('enable-v11-release') ? deprecate(PropTypes.bool, 'The `light` prop for `OverflowMenu` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.') : PropTypes.bool,\n\n /**\n * The adjustment in position applied to the floating menu.\n */\n menuOffset: PropTypes.oneOfType([PropTypes.shape({\n top: PropTypes.number,\n left: PropTypes.number\n }), PropTypes.func]),\n\n /**\n * The adjustment in position applied to the floating menu.\n */\n menuOffsetFlip: PropTypes.oneOfType([PropTypes.shape({\n top: PropTypes.number,\n left: PropTypes.number\n }), PropTypes.func]),\n\n /**\n * The class to apply to the menu options\n */\n menuOptionsClass: PropTypes.string,\n\n /**\n * The event handler for the `click` event.\n */\n onClick: PropTypes.func,\n\n /**\n * Function called when menu is closed\n */\n onClose: PropTypes.func,\n\n /**\n * The event handler for the `focus` event.\n */\n onFocus: PropTypes.func,\n\n /**\n * The event handler for the `keydown` event.\n */\n onKeyDown: PropTypes.func,\n\n /**\n * Function called when menu is opened\n */\n onOpen: PropTypes.func,\n\n /**\n * `true` if the menu should be open.\n */\n open: PropTypes.bool,\n\n /**\n * Function called to override icon rendering.\n */\n renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n\n /**\n * Specify a CSS selector that matches the DOM element that should\n * be focused when the OverflowMenu opens\n */\n selectorPrimaryFocus: PropTypes.string,\n\n /**\n * Specify the size of the OverflowMenu. Currently supports either `sm`, 'md' (default) or 'lg` as an option.\n */\n size: FeatureFlags.enabled('enable-v11-release') ? PropTypes.oneOf(['sm', 'md', 'lg']) : PropTypes.oneOf(['sm', 'md', 'lg', 'xl'])\n});\n\n_defineProperty(OverflowMenu, \"contextType\", PrefixContext);\n\n_defineProperty(OverflowMenu, \"defaultProps\", {\n ariaLabel: FeatureFlags.enabled('enable-v11-release') ? null : 'Open and close list of options',\n iconDescription: 'Open and close list of options',\n open: false,\n direction: DIRECTION_BOTTOM,\n flipped: false,\n focusTrap: true,\n renderIcon: OverflowMenuVertical16,\n onClick: function onClick() {},\n onKeyDown: function onKeyDown() {},\n onClose: function onClose() {},\n onOpen: function onOpen() {},\n menuOffset: getMenuOffset,\n menuOffsetFlip: getMenuOffset,\n light: false,\n selectorPrimaryFocus: '[data-overflow-menu-primary-focus]'\n});\n\nexport { OverflowMenu };\nexport default (function () {\n var forwardRef = function forwardRef(props, ref) {\n return /*#__PURE__*/React.createElement(OverflowMenu, _extends({}, props, {\n innerRef: ref\n }));\n };\n\n forwardRef.displayName = 'OverflowMenu';\n return /*#__PURE__*/React.forwardRef(forwardRef);\n})();","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport * as FeatureFlags from '@carbon/feature-flags';\nimport { OverflowMenu } from './OverflowMenu';\nimport { createClassWrapper } from '../../internal/createClassWrapper';\nexport default FeatureFlags.enabled('enable-v11-release') ? createClassWrapper(OverflowMenu) : OverflowMenu;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from 'react';\n/**\n * Wrap a class component with a functional component. This prevents an end-user\n * from being able to pass `ref` and access the underlying class instance.\n *\n * @param {ReactNode} Component\n * @returns {ReactNode}\n */\n\nexport function createClassWrapper(Component) {\n function ClassWrapper(props) {\n return /*#__PURE__*/React.createElement(Component, props);\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n var name = Component.displayName || Component.name;\n ClassWrapper.displayName = \"ClassWrapper(\".concat(name, \")\");\n }\n\n return ClassWrapper;\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"renderIcon\", \"iconDescription\", \"children\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport OverflowMenu from '../OverflowMenu';\nimport { Settings16 } from '@carbon/icons-react';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar TableToolbarMenu = function TableToolbarMenu(_ref) {\n var className = _ref.className,\n renderIcon = _ref.renderIcon,\n iconDescription = _ref.iconDescription,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var toolbarActionClasses = cx(className, \"\".concat(prefix, \"--toolbar-action \").concat(prefix, \"--overflow-menu\"));\n return /*#__PURE__*/React.createElement(OverflowMenu, _extends({\n ariaLabel: iconDescription,\n renderIcon: renderIcon,\n className: toolbarActionClasses,\n title: iconDescription,\n iconDescription: iconDescription,\n flipped: true\n }, rest), children);\n};\n\nTableToolbarMenu.defaultProps = {\n renderIcon: Settings16,\n iconDescription: 'Settings'\n};\nTableToolbarMenu.propTypes = {\n children: PropTypes.node.isRequired,\n\n /**\n * Provide an optional class name for the toolbar menu\n */\n className: PropTypes.string,\n\n /**\n * The description of the menu icon.\n */\n iconDescription: PropTypes.string.isRequired,\n\n /**\n * Optional prop to allow overriding the default menu icon\n */\n renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n};\nexport default TableToolbarMenu;","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport DataTable from './DataTable';\nimport Table from './Table';\nimport TableActionList from './TableActionList';\nimport TableBatchAction from './TableBatchAction';\nimport TableBatchActions from './TableBatchActions';\nimport TableBody from './TableBody';\nimport TableCell from './TableCell';\nimport TableContainer from './TableContainer';\nimport TableExpandHeader from './TableExpandHeader';\nimport TableExpandRow from './TableExpandRow';\nimport TableExpandedRow from './TableExpandedRow';\nimport TableHead from './TableHead';\nimport TableHeader from './TableHeader';\nimport TableRow from './TableRow';\nimport TableSelectAll from './TableSelectAll';\nimport TableSelectRow from './TableSelectRow';\nimport TableToolbar from './TableToolbar';\nimport TableToolbarAction from './TableToolbarAction';\nimport TableToolbarContent from './TableToolbarContent';\nimport TableToolbarSearch from './TableToolbarSearch';\nimport TableToolbarMenu from './TableToolbarMenu';\nDataTable.Table = Table;\nDataTable.TableActionList = TableActionList;\nDataTable.TableBatchAction = TableBatchAction;\nDataTable.TableBatchActions = TableBatchActions;\nDataTable.TableBody = TableBody;\nDataTable.TableCell = TableCell;\nDataTable.TableContainer = TableContainer;\nDataTable.TableExpandHeader = TableExpandHeader;\nDataTable.TableExpandRow = TableExpandRow;\nDataTable.TableExpandedRow = TableExpandedRow;\nDataTable.TableHead = TableHead;\nDataTable.TableHeader = TableHeader;\nDataTable.TableRow = TableRow;\nDataTable.TableSelectAll = TableSelectAll;\nDataTable.TableSelectRow = TableSelectRow;\nDataTable.TableToolbar = TableToolbar;\nDataTable.TableToolbarAction = TableToolbarAction;\nDataTable.TableToolbarContent = TableToolbarContent;\nDataTable.TableToolbarSearch = TableToolbarSearch;\nDataTable.TableToolbarMenu = TableToolbarMenu;\nexport { Table, TableActionList, TableBatchAction, TableBatchActions, TableBody, TableCell, TableContainer, TableExpandHeader, TableExpandRow, TableExpandedRow, TableHead, TableHeader, TableRow, TableSelectAll, TableSelectRow, TableToolbar, TableToolbarAction, TableToolbarContent, TableToolbarSearch, TableToolbarMenu };\nexport default DataTable;","import React from 'react';\nimport {\n DataTable,\n TableContainer,\n Table,\n TableHead,\n TableRow,\n TableExpandHeader,\n TableHeader,\n TableBody,\n TableExpandRow,\n TableCell,\n TableExpandedRow,\n} from 'carbon-components-react';\n\nconst TrialTable = ({ rows, headers }) => {\n return (\n <DataTable\n rows={rows}\n headers={headers}\n render={({\n rows,\n headers,\n getHeaderProps,\n getRowProps,\n getTableProps,\n }) => (\n <TableContainer\n title=\"Experiment Trials\"\n description=\"Trials of selected experiments.\">\n <Table {...getTableProps()}>\n <TableHead>\n <TableRow>\n <TableExpandHeader />\n {headers.map(header => (\n <TableHeader {...getHeaderProps({ header })}>\n {header.header}\n </TableHeader>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {rows.map(row => (\n <React.Fragment key={row.id}>\n <TableExpandRow {...getRowProps({ row })}>\n {row.cells.map(cell => (\n <TableCell key={cell.id}>{cell.value}</TableCell>\n ))}\n </TableExpandRow>\n <TableExpandedRow colSpan={headers.length + 1}>\n <p>TODO: Trial detailed configuration</p>\n </TableExpandedRow>\n </React.Fragment>\n ))}\n </TableBody>\n </Table>\n </TableContainer>\n )}\n />\n );\n};\n\nexport default TrialTable;\n","import React from 'react';\n\nimport TrialTable from './TrialTable';\n\nconst headers = [\n {\n key: 'id',\n header: 'ID',\n },\n {\n key: 'experiment',\n header: 'Experiment',\n },\n {\n key: 'status',\n header: 'Status',\n },\n {\n key: 'created_on',\n header: 'Created',\n },\n {\n key: 'params',\n header: 'Parameters',\n },\n {\n key: 'objective',\n header: 'Objective',\n },\n];\n\nconst rows = [\n {\n id: '1',\n experiment: '1',\n status: 'Completed',\n created_on: '2020-12-01 05:05:05',\n updatedAt: 'Date',\n params: [],\n results: [{ type: 'objective', name: 'loss', value: 1 }],\n },\n {\n id: '2',\n name: 'Repo 2',\n createdAt: 'Date',\n updatedAt: 'Date',\n issueCount: '123',\n stars: '456',\n links: 'Links',\n },\n {\n id: '3',\n name: 'Repo 3',\n createdAt: 'Date',\n updatedAt: 'Date',\n issueCount: '123',\n stars: '456',\n links: 'Links',\n },\n];\n\nconst getRowItems = rows =>\n rows.map(row => ({\n ...row,\n id: row.id,\n experiment: row.experiment,\n status: row.status,\n created_on: new Date(row.created_on).toLocaleDateString(),\n params: 'dunno',\n objective: 'bad',\n }));\n\nexport const BenchmarkDatabasePage = () => {\n return (\n <div className=\"bx--grid bx--grid--full-width bx--grid--no-gutter database-page\">\n <div className=\"bx--row database-page__r1\">\n <div className=\"bx--col-lg-16\">\n <TrialTable headers={headers} rows={getRowItems(rows)} />\n </div>\n </div>\n </div>\n );\n};\n","import React from 'react';\n\nexport const BenchmarkConfigurationPage = () => {\n return <div>Benchmarks configuration page</div>;\n};\n","import React, { Component } from 'react';\nimport './app.scss';\nimport { Content } from 'carbon-components-react';\nimport BenchmarkNavBar from './components/BenchmarkNavBar';\nimport BenchmarkVisualizationsPage from './content/BenchmarkVisualizationsPage';\nimport { BenchmarkStatusPage } from './content/BenchmarkStatusPage/BenchmarkStatusPage';\nimport { BenchmarkDatabasePage } from './content/BenchmarkDatabasePage/BenchmarkDatabasePage';\nimport { BenchmarkConfigurationPage } from './content/BenchmarkConfigurationPage/BenchmarkConfigurationPage';\nimport TutorialHeader from '../experiments/components/TutorialHeader';\n\nimport { DEFAULT_BACKEND } from '../utils/queryServer';\nimport { Backend } from '../utils/queryServer';\nimport { withRouter } from 'react-router-dom';\n\nclass Benchmarks extends Component {\n _isMounted = false;\n constructor(props) {\n super(props);\n // Store selected experiment here\n this.state = {\n benchmarks: null,\n benchmark: null,\n algorithms: null,\n tasks: null,\n assessments: null,\n };\n this.onSelectBenchmark = this.onSelectBenchmark.bind(this);\n }\n render() {\n return (\n <>\n <TutorialHeader dashboard=\"benchmarks\" />\n {this.state.benchmarks === null ? (\n <Content>\n <h4>Loading benchmarks ...</h4>\n </Content>\n ) : this.state.benchmarks.length === 0 ? (\n <Content>\n <h4>No benchmarks available</h4>\n </Content>\n ) : (\n <>\n <BenchmarkNavBar\n benchmarks={this.state.benchmarks}\n benchmark={this.state.benchmark}\n algorithms={this.state.algorithms}\n tasks={this.state.tasks}\n assessments={this.state.assessments}\n onSelectBenchmark={this.onSelectBenchmark}\n />\n <Content>{this.renderPage()}</Content>\n </>\n )}\n </>\n );\n }\n renderPage() {\n switch (this.props.match.params.page || 'visualizations') {\n case 'status':\n return <BenchmarkStatusPage />;\n case 'database':\n return <BenchmarkDatabasePage />;\n case 'configuration':\n return <BenchmarkConfigurationPage />;\n case 'visualizations':\n return (\n <BenchmarkVisualizationsPage\n benchmark={this.state.benchmark}\n algorithms={this.state.algorithms}\n tasks={this.state.tasks}\n assessments={this.state.assessments}\n />\n );\n default:\n break;\n }\n }\n componentDidMount() {\n this._isMounted = true;\n const backend = new Backend(DEFAULT_BACKEND);\n backend\n .query('benchmarks')\n .then(benchmarks => {\n if (this._isMounted) {\n this.setState({ benchmarks });\n }\n })\n .catch(error => {\n console.error(error);\n if (this._isMounted) {\n this.setState({ benchmarks: [] });\n }\n });\n }\n componentWillUnmount() {\n this._isMounted = false;\n }\n onSelectBenchmark(benchmark, algorithms, tasks, assessments) {\n this.setState({ benchmark, algorithms, tasks, assessments });\n }\n}\n\nexport const BenchmarksWithRouter = withRouter(Benchmarks);\n","import React, { Component } from 'react';\nimport { ExperimentsWithRouter } from './experiments/Experiments';\nimport { BenchmarksWithRouter } from './benchmarks/Benchmarks';\nimport { Route, Switch } from 'react-router-dom';\n\nclass App extends Component {\n constructor(props) {\n super(props);\n // Store selected experiment here\n this.state = { page: null };\n this.selectExperiments = this.selectExperiments.bind(this);\n this.selectBenchmarks = this.selectBenchmarks.bind(this);\n }\n render() {\n return (\n <Switch>\n <Route exact path=\"/\" component={ExperimentsWithRouter} />\n <Route exact path=\"/benchmarks\" component={BenchmarksWithRouter} />\n <Route\n exact\n path=\"/benchmarks/:page\"\n component={BenchmarksWithRouter}\n />\n <Route path=\"/:page\" component={ExperimentsWithRouter} />\n </Switch>\n );\n }\n selectExperiments() {\n this.setState({ page: 'experiments' });\n }\n selectBenchmarks() {\n this.setState({ page: 'benchmarks' });\n }\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport './index.scss';\nimport './style.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\nimport { HashRouter as Router } from 'react-router-dom';\n\ncreateRoot(document.getElementById('root')).render(\n <Router>\n <App />\n </Router>\n);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"names":["module","exports","utils","require","settle","cookies","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","transitionalDefaults","AxiosError","CanceledError","parseProtocol","config","Promise","resolve","reject","onCanceled","requestData","data","requestHeaders","headers","responseType","done","cancelToken","unsubscribe","signal","removeEventListener","isFormData","isStandardBrowserEnv","request","XMLHttpRequest","auth","username","password","unescape","encodeURIComponent","Authorization","btoa","fullPath","baseURL","url","onloadend","responseHeaders","getAllResponseHeaders","response","responseText","status","statusText","value","err","open","method","toUpperCase","params","paramsSerializer","timeout","onreadystatechange","readyState","responseURL","indexOf","setTimeout","onabort","ECONNABORTED","onerror","ERR_NETWORK","ontimeout","timeoutErrorMessage","transitional","clarifyTimeoutError","ETIMEDOUT","xsrfValue","withCredentials","xsrfCookieName","read","undefined","xsrfHeaderName","forEach","val","key","toLowerCase","setRequestHeader","isUndefined","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","type","abort","subscribe","aborted","protocol","ERR_BAD_REQUEST","send","bind","Axios","mergeConfig","axios","createInstance","defaultConfig","context","instance","prototype","extend","create","instanceConfig","CancelToken","isCancel","VERSION","toFormData","Cancel","all","promises","spread","isAxiosError","executor","TypeError","resolvePromise","this","promise","token","then","_listeners","i","l","length","onfulfilled","_resolve","message","reason","throwIfRequested","listener","push","index","splice","source","c","call","ERR_CANCELED","name","inherits","__CANCEL__","InterceptorManager","dispatchRequest","validator","validators","defaults","interceptors","configOrUrl","assertOptions","silentJSONParsing","boolean","forcedJSONParsing","requestInterceptorChain","synchronousRequestInterceptors","interceptor","runWhen","synchronous","unshift","fulfilled","rejected","responseInterceptorChain","chain","Array","apply","concat","shift","newConfig","onFulfilled","onRejected","error","getUri","generateHTTPMethod","isForm","code","Error","toJSON","description","number","fileName","lineNumber","columnNumber","stack","descriptors","Object","defineProperties","defineProperty","from","customProps","axiosError","toFlatObject","obj","assign","handlers","use","options","eject","id","fn","h","isAbsoluteURL","combineURLs","requestedURL","transformData","throwIfCancellationRequested","transformRequest","merge","common","adapter","transformResponse","config1","config2","getMergedValue","target","isPlainObject","isArray","slice","mergeDeepProperties","prop","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","keys","configValue","validateStatus","ERR_BAD_RESPONSE","Math","floor","fns","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","process","toString","getDefaultAdapter","isArrayBuffer","isBuffer","isStream","isFile","isBlob","isArrayBufferView","buffer","isURLSearchParams","isFileList","isObjectPayload","isObject","contentType","_FormData","env","FormData","rawValue","parser","encoder","isString","JSON","parse","trim","e","stringify","stringifySafely","strictJSONParsing","maxContentLength","maxBodyLength","thisArg","args","arguments","encode","replace","serializedParams","parts","v","isDate","toISOString","join","hashmarkIndex","relativeURL","write","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","document","match","RegExp","decodeURIComponent","remove","now","test","payload","originURL","msie","navigator","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","host","search","hash","hostname","port","pathname","charAt","window","location","requestURL","parsed","normalizedName","ignoreDuplicateOf","split","line","substr","exec","callback","arr","formData","convertValue","isTypedArray","Blob","Buffer","build","parentKey","fullKey","endsWith","toArray","el","append","pop","thing","deprecatedWarnings","version","formatMessage","opt","desc","opts","ERR_DEPRECATED","console","warn","schema","allowUnknown","ERR_BAD_OPTION_VALUE","result","ERR_BAD_OPTION","cache","kindOf","str","kindOfTest","getPrototypeOf","isFunction","hasOwnProperty","TypedArray","Uint8Array","constructor","pattern","ArrayBuffer","isView","pipe","product","assignValue","a","b","stripBOM","content","charCodeAt","superConstructor","props","sourceObj","destObj","filter","merged","getOwnPropertyNames","searchString","position","String","lastIndex","d","f","g","k","m","n","p","q","r","u","w","Symbol","for","x","y","t","$$typeof","isForwardRef","hasOwn","classNames","classes","arg","argType","inner","default","equal","flags","valueOf","reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","KNOWN_STATICS","caller","callee","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","component","isMemo","ForwardRef","render","Memo","getOwnPropertySymbols","getOwnPropertyDescriptor","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","targetStatics","sourceStatics","descriptor","condition","format","argIndex","framesToPop","FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","global","freeSelf","self","root","Function","objectToString","nativeMax","max","nativeMin","min","toNumber","isObjectLike","isSymbol","other","isBinary","func","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","remainingWait","debounced","isInvoking","leadingEdge","clearTimeout","flush","LARGE_ARRAY_SIZE","HASH_UNDEFINED","UNORDERED_COMPARE_FLAG","PARTIAL_COMPARE_FLAG","INFINITY","MAX_SAFE_INTEGER","MAX_INTEGER","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","genTag","mapTag","numberTag","objectTag","promiseTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","reIsDeepProp","reIsPlainProp","reLeadingDot","rePropName","reEscapeChar","reIsHostCtor","reIsUint","typedArrayTags","freeExports","nodeType","freeModule","freeProcess","nodeUtil","binding","nodeIsTypedArray","arraySome","array","predicate","isHostObject","mapToArray","map","size","setToArray","set","transform","arrayProto","funcProto","objectProto","coreJsData","maskSrcKey","uid","IE_PROTO","funcToString","reIsNative","propertyIsEnumerable","nativeKeys","DataView","getNative","Map","Set","WeakMap","nativeCreate","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","symbolToString","Hash","entries","clear","entry","ListCache","MapCache","SetCache","values","__data__","add","Stack","arrayLikeKeys","inherited","isArguments","iteratee","baseTimes","skipIndexes","isIndex","assocIndexOf","eq","baseGet","object","isKey","castPath","toKey","baseHasIn","baseIsEqual","customizer","bitmask","equalFunc","objIsArr","othIsArr","objTag","othTag","getTag","objIsObj","othIsObj","isSameTag","equalArrays","tag","byteLength","byteOffset","convert","isPartial","stacked","get","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","objProps","objLength","othProps","othLength","skipCtor","objValue","othValue","compared","objCtor","othCtor","equalObjects","baseIsEqualDeep","baseIsNative","isMasked","baseIteratee","identity","srcValue","isStrictComparable","matchesStrictComparable","defaultValue","hasFunc","isLength","hasPath","hasIn","baseMatchesProperty","matchData","getMatchData","noCustomizer","baseIsMatch","baseMatches","basePropertyDeep","property","baseKeys","Ctor","proto","isPrototype","stringToPath","arrLength","seen","arrValue","othIndex","has","getMapData","isKeyable","getValue","pairs","ctorString","memoize","string","baseToString","quote","findIndexFunc","findLast","fromIndex","toFinite","remainder","toInteger","fromRight","baseFindIndex","collection","iterable","isArrayLike","resolver","memoized","Cache","isArrayLikeObject","baseUnary","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","asyncTag","nullTag","proxyTag","undefinedTag","moduleExports","nativeObjectToString","symToStringTag","toStringTag","nativeGetSymbols","nativeIsBuffer","isArr","isArg","isBuff","isType","baseGetTag","isOwn","unmasked","getRawTag","baseIsArguments","getAllKeys","keysFunc","symbolsFunc","offset","arrayPush","baseGetAllKeys","getSymbols","resIndex","arrayFilter","symbol","arrayIncludes","baseIsNaN","baseIndexOf","arrayIncludesWith","comparator","arrayMap","cacheHas","overArg","getPrototype","spreadableSymbol","isConcatSpreadable","baseFlatten","depth","isStrict","isFlattenable","baseKeysIn","nativeKeysIn","isProto","getAllKeysIn","keysIn","getSymbolsIn","stubArray","start","omit","basePickBy","basePick","includes","isCommon","valuesLength","outer","computed","valuesIndex","baseDifference","otherArgs","const","__webpack_modules__","__unused_webpack_module","Lib","__webpack_require__","let","__unused_webpack_exports","passes","Plotly","factory","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","getShim","isRequired","ReactPropTypes","bigint","bool","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","aa","ca","da","ea","fa","ha","ia","ja","ka","la","ma","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","sanitizeURL","removeEmptyString","z","ra","sa","ta","pa","isNaN","qa","oa","removeAttribute","setAttributeNS","xlinkHref","ua","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","va","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","iterator","Ka","La","A","Ma","Na","Oa","prepareStackTrace","Reflect","construct","Pa","Qa","_context","_payload","_init","Ra","Sa","Ta","nodeName","Va","_valueTracker","configurable","enumerable","setValue","stopTracking","Ua","Wa","checked","Xa","activeElement","body","Ya","defaultChecked","_wrapperState","initialChecked","Za","initialValue","controlled","ab","bb","cb","db","ownerDocument","eb","fb","selected","defaultSelected","disabled","gb","dangerouslySetInnerHTML","children","hb","ib","jb","textContent","kb","lb","mb","nb","namespaceURI","innerHTML","firstChild","removeChild","appendChild","MSApp","execUnsafeLocalFunction","ob","lastChild","nodeValue","pb","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","qb","rb","sb","style","setProperty","substring","tb","menuitem","area","base","br","col","embed","hr","img","input","keygen","link","meta","param","track","wbr","ub","vb","is","wb","xb","srcElement","correspondingUseElement","parentNode","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","Nb","onError","Ob","Pb","Qb","Rb","Sb","Tb","Vb","alternate","return","Wb","memoizedState","dehydrated","Xb","Zb","child","sibling","current","Yb","$b","ac","unstable_scheduleCallback","bc","unstable_cancelCallback","cc","unstable_shouldYield","dc","unstable_requestPaint","B","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","ic","unstable_LowPriority","jc","unstable_IdlePriority","kc","lc","oc","clz32","pc","qc","log","LN2","rc","sc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","C","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Pc","Qc","Rc","Sc","delete","pointerId","Tc","nativeEvent","blockedOn","domEventName","eventSystemFlags","targetContainers","Vc","Wc","priority","isDehydrated","containerInfo","Xc","Yc","dispatchEvent","Zc","$c","ad","bd","cd","ReactCurrentBatchConfig","dd","ed","transition","fd","gd","hd","Uc","stopPropagation","jd","kd","ld","md","nd","od","keyCode","charCode","pd","qd","rd","_reactName","_targetInst","currentTarget","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","preventDefault","cancelBubble","persist","isPersistent","wd","xd","yd","sd","eventPhase","bubbles","cancelable","timeStamp","isTrusted","td","ud","view","detail","vd","Ad","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","zd","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","dataTransfer","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","fromCharCode","repeat","locale","which","Rd","Td","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","touches","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","date","datetime","email","month","range","tel","text","week","me","ne","oe","event","listeners","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","nextSibling","Le","contains","compareDocumentPosition","Me","HTMLIFrameElement","contentWindow","Ne","contentEditable","Oe","focusedElem","selectionRange","documentElement","end","selectionStart","selectionEnd","defaultView","getSelection","rangeCount","anchorNode","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","left","scrollLeft","top","scrollTop","focus","Pe","Qe","Re","Se","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","animation","$e","af","bf","cf","df","ef","ff","gf","hf","lf","mf","nf","Ub","D","of","pf","qf","rf","random","sf","capture","passive","J","F","tf","uf","parentWindow","vf","wf","na","xa","$a","ba","je","char","ke","xf","yf","zf","Af","Bf","Cf","Df","Ef","__html","Ff","Gf","Hf","Jf","queueMicrotask","catch","If","Kf","Lf","Mf","previousSibling","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","E","G","Vf","H","Wf","Xf","Yf","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","$f","ag","bg","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","eg","fg","gg","hg","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","I","zg","Ag","Bg","deletions","Cg","pendingProps","overflow","treeContext","retryLane","Dg","mode","Eg","Fg","Gg","memoizedProps","Hg","Ig","Jg","Kg","Lg","Mg","Ng","Og","Pg","Qg","Rg","_currentValue","Sg","childLanes","Tg","dependencies","firstContext","lanes","Ug","Vg","memoizedValue","next","Wg","Xg","Yg","interleaved","Zg","$g","ah","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","pending","effects","bh","ch","eventTime","lane","dh","K","eh","fh","gh","hh","ih","jh","Component","refs","kh","nh","isMounted","_reactInternals","enqueueSetState","L","lh","mh","enqueueReplaceState","enqueueForceUpdate","oh","shouldComponentUpdate","isPureReactComponent","ph","state","updater","qh","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","rh","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","sh","ref","_owner","_stringRef","th","uh","vh","wh","xh","yh","implementation","zh","Ah","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","tagName","Jh","Kh","Lh","M","Mh","revealOrder","Nh","Oh","_workInProgressVersionPrimary","Ph","ReactCurrentDispatcher","Qh","Rh","N","O","P","Sh","Th","Uh","Vh","Q","Wh","Xh","Yh","Zh","$h","ai","bi","ci","baseQueue","queue","di","ei","fi","lastRenderedReducer","action","hasEagerState","eagerState","lastRenderedState","dispatch","gi","hi","ii","ji","ki","getSnapshot","li","mi","R","ni","lastEffect","stores","oi","pi","qi","ri","destroy","deps","si","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Di","Ei","Fi","Gi","Hi","Ii","Ji","readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","identifierPrefix","Ki","digest","Li","Mi","Ni","Oi","Pi","Qi","Ri","componentDidCatch","Si","componentStack","Ti","pingCache","Ui","Vi","Wi","Xi","ReactCurrentOwner","Yi","Zi","$i","aj","bj","cj","dj","ej","baseLanes","cachePool","transitions","fj","gj","hj","ij","jj","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","kj","lj","pendingContext","mj","Aj","Bj","Cj","Dj","nj","oj","pj","fallback","qj","rj","tj","dataset","dgst","uj","vj","_reactRetry","sj","subtreeFlags","wj","xj","isBackwards","rendering","renderingStartTime","last","tail","tailMode","yj","Ej","S","Fj","Gj","wasMultiple","multiple","suppressHydrationWarning","onClick","onclick","createElementNS","autoFocus","createTextNode","T","Hj","Ij","Jj","Kj","U","Lj","WeakSet","V","Mj","W","Nj","Oj","Qj","Rj","Sj","Tj","Uj","Vj","Wj","insertBefore","_reactRootContainer","Xj","X","Yj","Zj","ak","onCommitFiberUnmount","componentWillUnmount","bk","ck","dk","ek","fk","isHidden","gk","hk","display","ik","jk","kk","lk","__reactInternalSnapshotBeforeUpdate","src","Wk","mk","ceil","nk","ok","pk","Y","Z","qk","rk","sk","tk","uk","Infinity","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","Ek","callbackNode","expirationTimes","expiredLanes","wc","callbackPriority","ig","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","Pk","finishedWork","finishedLanes","Qk","timeoutHandle","Rk","Sk","Tk","Uk","Vk","mutableReadLanes","Bc","Pj","onCommitFiberRoot","mc","onRecoverableError","Xk","onPostCommitFiberRoot","Yk","Zk","al","isReactComponent","pendingChildren","bl","mutableSourceEagerHydrationData","cl","pendingSuspenseBoundaries","fl","gl","hl","il","jl","zj","$k","ll","reportError","ml","_internalRoot","nl","ol","pl","ql","sl","rl","unmount","unstable_scheduleHydration","querySelectorAll","form","tl","usingClientEntryPoint","Events","ul","findFiberByHostInstance","bundleType","rendererPackageName","vl","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","wl","isDisabled","supportsFiber","inject","createPortal","dl","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_batchedUpdates","unstable_renderSubtreeIntoContainer","checkDCE","_createClass","writable","Constructor","protoProps","staticProps","_react","_react2","_interopRequireDefault","_propTypes2","__esModule","InfiniteScroll","_Component","_classCallCheck","_this","ReferenceError","_possibleConstructorReturn","__proto__","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","setPrototypeOf","_inherits","pageLoaded","pageStart","attachScrollListener","isReverse","loadMore","parentElement","getParentElement","scrollComponent","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","testOptions","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","useWindow","scrollParent","getScrollParent","hasMore","initialLoad","doc","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","_this2","renderProps","filterProps","_objectWithoutProperties","childrenArray","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","PlotlyComponent","resizeHandler","syncWindowResize","syncEventHandlers","attachUpdateEvents","getRef","handleUpdate","figureCallback","updatePlotly","shouldInvokeResizeHandler","figureCallbackFunction","shouldAttachUpdateEvents","unmounting","react","layout","frames","onInitialized","prevProps","numPrevFrames","numNextFrames","figureChanged","revisionDefined","revision","revisionChanged","onUpdate","onPurge","isBrowser","removeUpdateEvents","purge","removeListener","updateEvents","updateEvent","_this3","on","_this4","_transitionData","_frames","invoke","useResizeHandler","Plots","resize","_this5","debug","eventNames","eventName","_this6","handler","hasHandler","Boolean","addEventHandler","removeEventHandler","getPlotlyEventName","divId","className","isarray","pathToRegexp","compile","tokensToFunction","tokensToRegExp","PATH_REGEXP","res","tokens","defaultDelimiter","delimiter","escaped","prefix","group","modifier","asterisk","partial","optional","escapeGroup","escapeString","encodeURIComponentPretty","encodeURI","matches","pretty","segment","j","attachKeys","sensitive","strict","route","endsWithDelimiter","groups","regexpToRegexp","arrayToRegexp","stringToRegexp","__self","__source","jsx","jsxs","setState","forceUpdate","escape","_status","_result","Children","count","only","PureComponent","cloneElement","createContext","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","createFactory","createRef","forwardRef","isValidElement","lazy","memo","startTransition","unstable_act","sortIndex","performance","setImmediate","startTime","expirationTime","priorityLevel","scheduling","isInputPending","MessageChannel","port2","port1","onmessage","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","delay","unstable_wrapCallback","__webpack_module_cache__","moduleId","cachedModule","loaded","getter","definition","o","globalThis","nmd","paths","_typeof","_toPropertyKey","hint","prim","toPrimitive","_defineProperties","_assertThisInitialized","_setPrototypeOf","_getPrototypeOf","_createSuper","Derived","hasNativeReflectConstruct","sham","Proxy","Super","NewTarget","_defineProperty","_objectWithoutPropertiesLoose","excluded","sourceKeys","sourceSymbolKeys","settings_1","selectorTabbable","selectorFocusable","PrefixContext","React","settings","usePrefix","_excluded","ownKeys","enumerableOnly","symbols","sym","_objectSpread","getOwnPropertyDescriptors","Content","_ref","customClassName","rest","cx","_arrayLikeToArray","len","arr2","_unsupportedIterableToArray","minLen","_i","_s","_e","_x","_r","_arr","_n","_d","HeaderContainer","isSideNavExpanded","_useState2","_slicedToArray","isSideNavExpandedState","setIsSideNavExpandedState","handleHeaderMenuButtonClick","prevIsSideNavExpanded","onClickSideNavExpand","isRequiredOneOf","names","reduce","propType","_len","_key","AriaLabelPropType","Header","_extends","SkipToContent","tabIndex","_objectSpread2","_excluded2","defaultAttributes","focusable","preserveAspectRatio","getAttributes","_ref$viewBox","viewBox","attributes","tabindex","iconAttributes","title","role","_path195","Icon","_getAttributes","xmlns","_path25","_path96","_path97","_path111","_path269","_path270","_excluded97","Menu20","_ref97","fill","_excluded16","_excluded51","_excluded52","_excluded66","_excluded173","_excluded174","Checkmark16","_ref16","ChevronDown20","_ref51","ChevronDown16","_ref52","ChevronRight16","_ref66","Close20","_ref173","Close16","_ref174","HeaderMenuButton","_cx","ariaLabel","ariaLabelledBy","renderMenuIcon","renderCloseIcon","isActive","isCollapsible","accessibilityLabel","menuIcon","closeIcon","Link","LinkPropTypes","HeaderName","selectorPrefix","enabled$1","enableCssCustomProperties","CARBON_ENABLE_CSS_CUSTOM_PROPERTIES","enableUseControlledStateWithValue","CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE","enableCssGrid","CARBON_ENABLE_CSS_GRID","enableV11Release","CARBON_ENABLE_V11_RELEASE","featureFlagInfo","enabled","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","FeatureFlagScope","checkForFlag","scope","_step","_iterator","allowArrayLike","it","s","normalCompletion","didErr","step","_createForOfIteratorHelper","_step$value","FeatureFlags","createScope","featureFlag","_isNativeReflectConstruct","HeaderNavigation","_React$Component","_super","items","handleItemRef","selectedIndex","_this$props","_renderNavItem","SideNavIcon","small","keysToMatch","eventOrCode","Tab","Enter","Escape","Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Delete","SideNavMenu","isExpanded","defaultExpanded","wasPreviouslyExpanded","hasActiveChild","buttonRef","IconElement","renderIcon","large","some","onKeyDown","handleKeyDown","handleToggleExpand","derivedState","SideNavMenuForwardRef","_props$defaultExpande","_props$isActive","_props$large","setIsExpanded","_useState4","prevExpanded","setPrevExpanded","HeaderNavigationNext","HeaderNavigationClassic","HeaderMenu","subMenusNode","_subMenus","prevState","expanded","itemTriggeredBlur","find","getAttribute","focusRef","menuButtonRef","item","isCurrentPage","MenuContent","renderMenuContent","menuLinkName","handleMenuClose","handleOnClick","onBlur","handleOnBlur","handleOnKeyDown","handleMenuButtonRef","_renderMenuItem","HeaderMenuForwardRef","HeaderMenuItem","ariaCurrent","_ref$tabIndex","linkClassName","_inheritsLoose","isAbsolute","spliceOne","list","to","hasTrailingSlash","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","up","part","isProduction","invariant","provided","addLeadingSlash","stripLeadingSlash","stripBasename","hasBasename","stripTrailingSlash","createPath","createLocation","currentLocation","hashIndex","searchIndex","parsePath","decodeURI","URIError","resolvePathname","createTransitionManager","prompt","setPrompt","nextPrompt","confirmTransitionTo","getUserConfirmation","appendListener","notifyListeners","canUseDOM","getConfirmation","confirm","PopStateEvent","HashChangeEvent","getHistoryState","history","createBrowserHistory","globalHistory","canUseHistory","supportsHistory","needsHashChangeListener","_props","_props$forceRefresh","forceRefresh","_props$getUserConfirm","_props$keyLength","keyLength","basename","getDOMLocation","historyState","_window$location","createKey","transitionManager","nextState","handlePopState","isExtraneousPopstateEvent","handlePop","handleHashChange","forceNextPop","fromLocation","toLocation","toIndex","allKeys","delta","go","revertPop","initialLocation","createHref","listenerCount","checkDOMListeners","isBlocked","pushState","prevIndex","nextKeys","replaceState","goBack","goForward","block","unblock","listen","unlisten","HashChangeEvent$1","HashPathCoders","hashbang","encodePath","decodePath","noslash","slash","stripHash","getHashPath","replaceHashPath","createHashHistory","_props$hashType","hashType","_HashPathCoders$hashT","ignorePath","encodedPath","prevLocation","allPaths","lastIndexOf","baseTag","querySelector","pushHashPath","nextPaths","clamp","lowerBound","upperBound","MAX_SIGNED_31_BIT_INT","commonjsGlobal","calculateChangedBits","_Provider$childContex","_Consumer$contextType","contextProp","getUniqueId","emitter","off","newValue","changedBits","createEventEmitter","_proto","nextProps","oldValue","_Component2","observedBits","_proto2","createNamedContext","historyContext","Router","_isMounted","_pendingLocation","staticContext","computeRootMatch","isExact","RouterContext","HistoryContext","cacheLimit","cacheCount","matchPath","matched","cacheKey","pathCache","regexp","compilePath","Route","computedMatch","isEmptyChildren","createURL","staticHandler","methodName","noop","Switch","withRouter","wrappedComponentRef","remainingProps","WrappedComponent","hoistStatics","HashRouter","createHistory","resolveToLocation","normalizeToLocation","forwardRefShim","LinkAnchor","forwardedRef","innerRef","navigate","ex","isModifiedEvent","isDuplicateNavigation","activeClassName","activeStyle","classNameProp","isActiveProp","locationProp","styleProp","escapedPath","classnames","joinClassnames","dashboard","Backend","address","parameters","responseEncoding","makeRESTCall","DEFAULT_BACKEND","BackendContext","experiment","ThemeContext","useBootstrapPrefix","defaultPrefix","prefixes","_excluded3","ROUND_PRECISION","getPercentage","percentage","round","renderProgressBar","_classNames","label","srOnly","striped","animated","variant","bsPrefix","ProgressBar","_ref2","isChild","wrapperProps","FeatureFlagContext","GlobalFeatureFlags","useFeatureFlag","flag","GridSettingsContext","subgrid","GridSettings","_ref$subgrid","useGridSettings","CSSGrid","_ref$as","as","BaseComponent","_ref$condensed","condensed","_ref$fullWidth","fullWidth","_ref$narrow","narrow","Subgrid","_cx2","_ref2$as","FlexGrid","containerClassName","Grid","Row","Column","sm","xlg","CSSGridColumn","columnClassName","breakpoints","breakpoint","breakpointNames","span","getClassNameForFlexGridBreakpoints","percentSpanType","spanPropType","breakpointClassName","getClassNameForBreakpoints","spanClassName","getClassNameForSpan","_path142","_path143","_excluded87","Information16","_ref87","OptimizedResize","callbacks","running","runCallbacks","addCallback","release","DOCUMENT_POSITION_BROAD_PRECEDING","Node","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_BROAD_FOLLOWING","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINED_BY","iter","elementOrParentIsFloatingMenu","selectorsFloatingMenus","closest","_toConsumableArray","selector","bodyNode","startTrapNode","endTrapNode","currentActiveNode","oldActiveNode","comparisonResult","tabbable","elem","_tabbable","DIRECTION_LEFT","DIRECTION_TOP","DIRECTION_RIGHT","DIRECTION_BOTTOM","hasChangeInOffset","oldMenuOffset","menuOffset","getFloatingPosition","_DIRECTION_LEFT$DIREC","menuSize","_ref$refPosition","refPosition","_ref$offset","_ref$direction","direction","_ref$scrollX","scrollX","pageXOffset","_ref$scrollY","scrollY","container","_refPosition$left","refLeft","_refPosition$top","refTop","_refPosition$right","right","refRight","_refPosition$bottom","bottom","refBottom","relativeDiff","rect","_offset$top","_offset$left","refCenterHorizontal","refCenterVertical","FloatingMenu","floatingPosition","isAdjustment","menuBody","_menuBody","_prevProps$menuOffset","oldMenuDirection","menuDirection","_this$props$menuOffse","_this$props2","flipped","triggerRef","updateOrientation","triggerEl","getBoundingClientRect","getComputedStyle","_updateMenuSize","primaryFocusNode","selectorPrimaryFocus","tabbableNode","focusableNode","focusTarget","focusTrap","menuRef","_placeInProgress","_this$props3","styles","pos","positioningStyle","visibility","_menuRef","startSentinelNode","startSentinel","endSentinelNode","endSentinel","wrapFocus","hResize","onPlace","_focusMenuContent","_this$props4","ReactDOM","handleBlur","_getChildrenWithProps","ClickListener","handleRef","handleDocumentClick","evt","getEventTarget","onClickOutside","composed","composedPath","useControlledStateWithValue","Tooltip","tooltipId","autoOrientation","newOrientation","getBestDirection","align","storedDirection","storedAlign","_ref2$refPosition","_ref2$offset","_ref2$direction","_ref2$scrollX","_ref2$scrollY","newDirection","newAlignment","_ref3","isControlled","onChange","tooltipBody","_tooltipEl","_this$_triggerRef","_tooltipId","_tooltipDismissed","_triggerRef","_handleUserInputOpenClose","blur","click","hadContextMenu","_hasContextMenu","shouldOpen","_assertThisInitialize","_debouncedHandleFocus","keyDownMatch","_open","defaultOpen","debounce","_handleFocus","_this$props$triggerId","triggerId","tooltipBodyId","triggerClassName","triggerText","showIcon","iconName","iconDescription","IconCustomElement","_this$props$tabIndex","_this$state","tooltipClasses","triggerClasses","refProp","mergeRefs","iconProperties","properties","handleMouse","onContextMenu","handleKeyPress","onMouseOver","onMouseOut","onFocus","handleClickOutside","_getTarget","handleEscKeyPress","_ref6","prevOpen","readOnly","RefForwardingComponent","Information","_DIRECTION_LEFT$DIREC2","arrowStyle","arrowPositionProp","menuPositionAdjustmentProp","getPropertyValue","every","arrowPosition","borderBottomWidth","sqrt","pow","EXPERIMENT_STATUS_PROVIDER","backend","resolving","resolved","resolution","query","floatToPercent","StatusToProgress","new","reserved","suspended","completed","interrupted","broken","formatDate","year","getFullYear","getMonth","day","getDate","hour","getHours","mins","getMinutes","secs","getSeconds","padStart","ExperimentStatusBar","withInfo","renderExperimentInfo","elapsed_time","sum_of_trials_time","eta","getTime","eta_milliseconds","max_trials","trialStatus","renderProgressPart","renderLegendPart","progress","stats","rows","best_trials_id","best_evaluation","start_time","finish_time","nb_trials","row","indexRow","progressBase","trial_status_count","CARBON_SIDENAV_ITEMS","SideNav","expandedProp","isChildOfHeader","onToggle","isFixedNav","isRail","addFocusListeners","addMouseListeners","onOverlayClick","expandedState","setExpandedState","expandedViaHoverState","setExpandedViaHoverState","handleToggle","overlayClassName","childrenToRender","_child$type$displayNa","_child$type","_child$type2","currentExpansionState","eventHandlers","onMouseEnter","onMouseLeave","translateById","setupGetInstanceId","instanceId","getId","useIsomorphicLayoutEffect","serverHandoffCompleted","setId","didWarnAboutDeprecation","deprecate","_excluded4","_excluded5","_excluded6","GridSelectedRowStateContext","GridSelectedRowDispatchContext","StructuredListWrapper","selection","border","_React$useState2","selectedRow","setSelectedRow","StructuredListHead","StructuredListBody","head","GridRowContext","StructuredListRow","_classNames2","hasFocusWithin","setHasFocusWithin","StructuredListInput","defaultId","_props$name","StructuredListCell","_classNames3","noWrap","getInstanceId","isCondensed","isFlush","createComponentToggle","spec","_spec$flag","classic","ComponentToggle","wrappedComponent","_path118","_path217","_path218","StructuredListWrapperNext","StructuredListWrapperClassic","StructuredListHeadNext","StructuredListHeadClassic","StructuredListInputNext","StructuredListInputClassic","StructuredListBodyNext","StructuredListBodyClassic","StructuredListRowNext","StructuredListRowClassic","StructuredListCellNext","StructuredListCellClassic","_excluded90","_excluded166","Search16","_ref90","Settings16","_ref166","composeEventHandlers","Search","_ref$autoComplete","autoComplete","_ref$closeButtonLabel","closeButtonLabelText","labelText","light","_ref$onChange","_ref$onClear","onClear","placeHolderText","_ref$placeholder","placeholder","_ref$role","_ref$size","_ref$type","magnifier","inputId","uniqueId","searchId","hasContent","setHasContent","prevValue","setPrevValue","searchClasses","clearClasses","clearInput","clearedEvt","elementOrRef","SearchIcon","icon","htmlFor","_this$props$id","_inputId","_this$props$size","customIcon","searchIcon","handleChange","SearchNext","SearchClassic","ExperimentNavBar","experiments","filteredExperiments","renderedExperiments","onSearch","onSwitchSelect","loadMoreExperiments","hasMoreExperimentToLoad","page","renderMessageRow","renderExperimentsList","onSelectExperiment","results","sort","_updateInitialExperiments","inputID","toBeSelected","getElementById","responsive","RegretConst","LocalParameterImportancePlot","ParallelCoordinatesPlotConst","PlotGrid","regret","parallel_coordinates","lpi","keyCount","renderRegret","renderParallelCoordinates","renderLPI","loadBackendData","snapshot","promiseRegret","promisePC","promiseLPI","allSettled","resRegret","resPC","resLPI","_path169","_path189","_path209","_path213","VisualizationsPage","_excluded105","_excluded125","_excluded145","_excluded149","ArrowDown20","_ref105","ArrowUp20","_ref125","ArrowsHorizontal20","_ref145","ArrowsVertical20","_ref149","_e2","functionalUpdate","makeStateUpdater","old","flattenBy","getChildren","flat","subArr","recurse","getDeps","depTime","resultTime","newDeps","depsChanged","dep","depEndTime","resultEndTime","resultFpsPercentage","pad","num","info","createHeader","table","column","header","isPlaceholder","placeholderId","subHeaders","colSpan","rowSpan","headerGroup","getLeafHeaders","leafHeaders","recurseHeader","getContext","_features","feature","Headers","createTable","getHeaderGroups","getAllColumns","getVisibleLeafColumns","getState","columnPinning","allColumns","leafColumns","leftColumns","columnId","rightColumns","centerColumns","buildHeaderGroups","debugAll","debugHeaders","getCenterHeaderGroups","getLeftHeaderGroups","getRightHeaderGroups","getFooterGroups","headerGroups","reverse","getLeftFooterGroups","getCenterFooterGroups","getRightFooterGroups","getFlatHeaders","getLeftFlatHeaders","getCenterFlatHeaders","getRightFlatHeaders","getCenterLeafHeaders","flatHeaders","_header$subHeaders","getLeftLeafHeaders","_header$subHeaders2","getRightLeafHeaders","_header$subHeaders3","center","_left$","_right$","columnsToGroup","headerFamily","maxDepth","findMaxDepth","getIsVisible","bottomHeaders","createHeaderGroup","headersToGroup","pendingParentHeaders","headerToGroup","latestPendingParentHeader","parent","recurseHeadersForSpans","childRowSpans","childColSpan","childRowSpan","_headerGroups$","defaultColumnSizing","minSize","maxSize","ColumnSizing","getDefaultColumnDef","getInitialState","columnSizing","columnSizingInfo","startOffset","startSize","deltaOffset","deltaPercentage","isResizingColumn","columnSizingStart","getDefaultOptions","columnResizeMode","onColumnSizingChange","onColumnSizingInfoChange","createColumn","getSize","columnSize","columnDef","getStart","getLeftVisibleLeafColumns","getRightVisibleLeafColumns","findIndex","prevSiblingColumn","resetSize","setColumnSizing","getCanResize","enableResizing","enableColumnResizing","getIsResizing","sum","prevSiblingHeader","getResizeHandler","getColumn","canResize","isTouchStartEvent","newColumnSizing","updateOffset","eventType","clientXPos","setColumnSizingInfo","headerSize","onMove","onEnd","mouseEvents","moveHandler","upHandler","touchEvents","_e$touches$","passiveIfSupported","passiveSupported","supported","passiveEventSupported","resetColumnSizing","defaultState","initialState","resetHeaderSizeInfo","getDefaultColumnSizingInfoState","getTotalSize","_table$getHeaderGroup2","getLeftTotalSize","_table$getLeftHeaderG2","getCenterTotalSize","_table$getCenterHeade2","getRightTotalSize","_table$getRightHeader2","Expanding","onExpandedChange","paginateExpandedRows","registered","queued","_autoResetExpanded","autoResetAll","autoResetExpanded","manualExpanding","_queue","resetExpanded","setExpanded","toggleAllRowsExpanded","getIsAllRowsExpanded","getCanSomeRowsExpand","getRowModel","flatRows","getCanExpand","getToggleAllRowsExpandedHandler","getIsSomeRowsExpanded","getIsExpanded","getExpandedDepth","rowsById","splitId","getPreExpandedRowModel","getSortedRowModel","getExpandedRowModel","_getExpandedRowModel","createRow","toggleExpanded","exists","oldExpanded","rowId","getIsRowExpanded","getRowCanExpand","enableExpanding","subRows","_row$subRows","getToggleExpandedHandler","canExpand","includesString","filterValue","autoRemove","testFalsey","includesStringSensitive","_row$getValue2","equalsString","arrIncludes","_row$getValue4","arrIncludesAll","_row$getValue5","arrIncludesSome","_row$getValue6","equals","weakEquals","inNumberRange","rowValue","resolveFilterValue","unsafeMin","unsafeMax","parsedMin","parseFloat","parsedMax","temp","filterFns","shouldAutoRemoveFilter","filterFn","aggregationFns","_leafRows","childRows","nextValue","extent","mean","leafRows","median","unique","uniqueCount","_columnId","Pagination","pagination","pageIndex","pageSize","onPaginationChange","_autoResetPageIndex","autoResetPageIndex","manualPagination","resetPageIndex","setPagination","resetPagination","getDefaultPaginationState","setPageIndex","maxPageIndex","pageCount","_table$initialState","_table$initialState$p3","resetPageSize","setPageSize","_table$initialState2","_table$initialState2$","topRowIndex","setPageCount","newPageCount","getPageOptions","getPageCount","pageOptions","_","debugTable","getCanPreviousPage","getCanNextPage","previousPage","nextPage","getPrePaginationRowModel","getPaginationRowModel","_getPaginationRowModel","RowSelection","rowSelection","onRowSelectionChange","enableRowSelection","enableMultiRowSelection","enableSubRowSelection","setRowSelection","resetRowSelection","toggleAllRowsSelected","getIsAllRowsSelected","preGroupedFlatRows","getPreGroupedRowModel","getCanSelect","toggleAllPageRowsSelected","resolvedValue","getIsAllPageRowsSelected","mutateRowIsSelected","getPreSelectedRowModel","getCoreRowModel","getSelectedRowModel","rowModel","selectRowsFn","getFilteredSelectedRowModel","getFilteredRowModel","getGroupedSelectedRowModel","isAllRowsSelected","paginationFlatRows","isAllPageRowsSelected","getIsSomeRowsSelected","totalSelected","getIsSomePageRowsSelected","getIsSelected","getIsSomeSelected","getToggleAllRowsSelectedHandler","getToggleAllPageRowsSelectedHandler","toggleSelected","isSelected","selectedRowIds","isRowSelected","isSubRowSelected","getIsAllSubRowsSelected","getCanSelectSubRows","getCanMultiSelect","getToggleSelectedHandler","canSelect","_target","getRow","newSelectedFlatRows","newSelectedRowsById","recurseRows","allChildrenSelected","someSelected","subRow","reSplitAlphaNumeric","compareBasic","compareAlphanumeric","aStr","bStr","an","bn","combo","sortingFns","alphanumeric","rowA","rowB","alphanumericCaseSensitive","textCaseSensitive","basic","Sorting","sorting","sortingFn","onSortingChange","isMultiSortEvent","getAutoSortingFn","getAutoSortDir","firstRow","getSortingFn","toggleSorting","multi","nextSortingOrder","getNextSortingOrder","hasManualValue","setSorting","sortAction","existingSorting","existingIndex","newSorting","nextDesc","getCanMultiSort","maxMultiSortColCount","getFirstSortDir","sortDescFirst","firstSortDirection","isSorted","getIsSorted","enableSortingRemoval","enableMultiRemove","getCanSort","enableSorting","accessorFn","enableMultiSort","columnSort","getSortIndex","_table$getState$sorti3","clearSorting","getToggleSortingHandler","canSort","resetSorting","getPreSortedRowModel","getGroupedRowModel","_getSortedRowModel","manualSorting","Visibility","columnVisibility","onColumnVisibilityChange","toggleVisibility","getCanHide","setColumnVisibility","enableHiding","getToggleVisibilityHandler","_getAllVisibleCells","getAllCells","cells","cell","debugRows","getVisibleCells","getLeftVisibleCells","getCenterVisibleCells","getRightVisibleCells","makeVisibleColumnsMethod","getColumns","debugColumns","getVisibleFlatColumns","getAllFlatColumns","getAllLeafColumns","getLeftLeafColumns","getRightLeafColumns","getCenterVisibleLeafColumns","getCenterLeafColumns","resetColumnVisibility","toggleAllColumnsVisible","getIsAllColumnsVisible","getIsSomeColumnsVisible","getToggleAllColumnsVisibilityHandler","features","columnOrder","onColumnOrderChange","setColumnOrder","resetColumnOrder","_getOrderColumnsFn","grouping","groupedColumnMode","orderedColumns","columnOrderCopy","columnsCopy","targetColumnId","foundIndex","nonGroupingColumns","groupingColumns","orderColumns","onColumnPinningChange","pin","columnIds","getLeafColumns","setColumnPinning","getCanPin","enablePinning","getIsPinned","leafColumnIds","isLeft","isRight","getPinnedIndex","_table$getState$colum3","allCells","leftAndRight","resetColumnPinning","getDefaultPinningState","getIsSomeColumnsPinned","pinningState","_pinningState$positio","columnFilters","globalFilter","onColumnFiltersChange","onGlobalFilterChange","filterFromLeafRows","maxLeafRowFilterDepth","globalFilterFn","getColumnCanGlobalFilter","_table$getCoreRowMode","_getAllCellsByColumnId","_table$getCoreRowMode2","getAutoFilterFn","getFilterFn","getCanFilter","enableColumnFilter","enableColumnFilters","enableFilters","getCanGlobalFilter","enableGlobalFilter","getIsFiltered","getFilterIndex","getFilterValue","_table$getState$colum","_table$getState$colum4","setFilterValue","setColumnFilters","previousfilter","newFilter","newFilterObj","_getFacetedRowModel","getFacetedRowModel","getPreFilteredRowModel","_getFacetedUniqueValues","getFacetedUniqueValues","_getFacetedMinMaxValues","getFacetedMinMaxValues","columnFiltersMeta","getGlobalAutoFilterFn","getGlobalFilterFn","_table$options$filter4","_functionalUpdate","setGlobalFilter","resetGlobalFilter","resetColumnFilters","_getFilteredRowModel","manualFiltering","_getGlobalFacetedRowModel","getGlobalFacetedRowModel","_getGlobalFacetedUniqueValues","getGlobalFacetedUniqueValues","_getGlobalFacetedMinMaxValues","getGlobalFacetedMinMaxValues","aggregatedCell","_props$getValue","aggregationFn","onGroupingChange","toggleGrouping","setGrouping","getCanGroup","enableGrouping","getIsGrouped","getGroupedIndex","getToggleGroupingHandler","canGroup","getAutoAggregationFn","getAggregationFn","resetGrouping","_getGroupedRowModel","manualGrouping","groupingColumnId","_groupingValuesCache","createCell","getIsPlaceholder","getIsAggregated","defaultOptions","queuedTimeout","coreInstance","reset","setOptions","newOptions","mergeOptions","onStateChange","_getRowId","getRowId","_getCoreRowModel","_getDefaultColumnDef","defaultColumn","resolvedColumnDef","accessorKey","renderValue","_props$renderValue","_getColumnDefs","columnDefs","recurseColumns","originalRow","getFlatColumns","flatMap","groupingColumnDef","_getAllFlatColumnsById","flatColumns","acc","_path131","_path136","original","rowIndex","_valuesCache","_uniqueValuesCache","getUniqueValues","renderFallbackValue","getLeafRows","expandRows","expandedRows","handleRow","flexRender","Comp","isClassComponent","isExoticComponent","_path370","_path371","_path372","_path399","_path400","_excluded83","_excluded88","CaretLeft16","_ref83","CaretRight16","_ref88","_excluded232","_excluded244","WarningAltFilled16","_ref232","WarningFilled16","_ref244","Select","inline","noLabel","hideLabel","invalid","invalidText","helperText","warnText","selectClasses","labelClasses","inputClasses","errorId","errorText","helperTextClasses","helper","ariaProps","SelectItem","hidden","selectItemClasses","arr1","toggleClass","classList","Button","_ref$dangerDescriptio","dangerDescription","_ref$disabled","_ref$hasIconOnly","hasIconOnly","_ref$isExpressive","isExpressive","_ref$kind","kind","ButtonImageElement","_ref$tooltipAlignment","tooltipAlignment","_ref$tooltipPosition","tooltipPosition","allowTooltipVisibility","setAllowTooltipVisibility","isHovered","setIsHovered","_useState6","isFocused","setIsFocused","tooltipRef","tooltipTimeout","closeTooltips","_document","handleMouseEnter","handleEscKeyDown","assistiveText","commonProps","buttonImage","dangerButtonVariants","assistiveId","otherProps","anchorProps","mapPageSizesToObject","sizes","totalItems","total","counter","itemArr","_pageSizes","pageSizes","_page","_pageSize","sizeObj","prevPageSizes","prevPage","prevPageSize","backwardText","forwardText","itemsPerPageText","itemRangeText","pageRangeText","itemText","pageText","pagesUnknown","pageNumberText","isLastPage","pageInputDisabled","pageSizeInputDisabled","_this2$state","statePage","statePageSize","totalPages","backButtonDisabled","backButtonClasses","forwardButtonDisabled","forwardButtonClasses","selectItems","renderSelectItems","handleSizeChange","handlePageInputChange","decrementPage","incrementPage","currentPage","currentPageSize","pageSizesChanged","pageChanged","pageSizeChanged","getPageSize","_cx3","_ref$backwardText","_ref$forwardText","_ref$isLastPage","_ref$itemText","_ref$itemRangeText","_ref$itemsPerPageText","_ref$pageRangeText","_current","_ref$page","controlledPage","controlledPageSize","controlledPageSizes","_ref$pageText","_ref$pagesUnknown","useFallbackId","setPageSizes","setPrevPageSizes","setPage","_useState8","prevControlledPage","setPrevControlledPage","_useState10","_useState12","prevControlledPageSize","setPrevControlledPageSize","hasPageSize","changes","FeatureFlag","PaginationNext","PaginationClassic","canOverflow","skipOverflowHiddenElements","isScrollable","clientWidth","scrollWidth","overflowY","overflowX","frame","frameElement","scrollingEdgeStart","scrollingEdgeEnd","scrollingSize","scrollingBorderStart","scrollingBorderEnd","elementEdgeStart","elementEdgeEnd","elementSize","windowWithViewport","scrollMode","boundary","checkBoundary","scrollingElement","cursor","getRootNode","viewportWidth","visualViewport","innerWidth","viewportHeight","viewportY","_target$getBoundingCl","targetHeight","targetWidth","targetTop","targetRight","targetBottom","targetLeft","targetBlock","targetInline","computations","_frame$getBoundingCli","frameStyle","borderLeft","borderLeftWidth","borderTop","borderTopWidth","borderRightWidth","borderBottom","blockScroll","inlineScroll","scrollbarWidth","offsetWidth","borderRight","scrollbarHeight","scaleX","scaleY","alignNearest","viewportX","idCounter","cbToCb","scrollIntoView","menuNode","computeScrollIntoView","isOrContainsNode","timeoutId","wrapper","callAllEventHandlers","_len2","_key2","_len3","_key3","preventDownshiftDefault","handleRefs","_len4","_key4","generateId","getA11yStatusMessage","isOpen","resultCount","previousResultCount","unwrapArray","isDOMElement","getElementProps","stateKeys","pickState","isControlledProp","normalizeArrowKey","getNextWrappingIndex","moveAmount","baseIndex","itemCount","getItemNodeFromIndex","circular","itemsLastIndex","newIndex","nonDisabledNewIndex","getNextNonDisabledIndex","currentElementNode","hasAttribute","_index","targetWithinDownshift","downshiftElements","checkActiveElement","contextNode","cleanupStatus","getStatusDiv","setStatus","documentProp","div","statusDiv","clip","margin","padding","unknown","itemMouseEnter","keyDownArrowUp","keyDownArrowDown","keyDownEscape","keyDownEnter","keyDownHome","keyDownEnd","clickItem","blurInput","changeInput","keyDownSpaceButton","clickButton","blurButton","stateChangeTypes","freeze","mouseUp","controlledPropUpdatedSelectedItem","touchEnd","Downshift","menuId","labelId","getItemId","timeoutIds","internalSetTimeout","setItemCount","unsetItemCount","setHighlightedIndex","highlightedIndex","otherStateToSet","defaultHighlightedIndex","internalSetState","clearSelection","selectedItem","inputValue","defaultIsOpen","selectItem","itemToString","selectItemAtIndex","itemIndex","selectHighlightedItem","stateToSet","isItemSelected","onChangeArg","onStateChangeArg","isStateToSetFunction","onInputValueChange","getStateAndHelpers","newStateToSet","stateReducer","nextFullState","onSelect","onUserAction","rootRef","_rootNode","getRootProps","_temp","_temp2","_extends2","_ref$refKey","refKey","_ref2$suppressRefErro","suppressRefError","called","keyDownHandlers","amount","moveHighlightedIndex","getItemCount","nextHighlightedIndex","_this$getState2","itemNode","buttonKeyDownHandlers","toggleMenu","inputKeyDownHandlers","Home","newHighlightedIndex","End","getToggleButtonProps","_temp3","onPress","onKeyUp","enabledEventHandlers","buttonHandleClick","buttonHandleKeyDown","buttonHandleKeyUp","buttonHandleBlur","environment","blurTarget","isMouseDown","getLabelProps","getInputProps","_temp4","_ref4","onInput","onChangeText","_eventHandlers","_this$getState6","inputHandleChange","inputHandleKeyDown","inputHandleBlur","downshiftButtonIsActive","toggle","_menuNode","getMenuProps","_temp5","_temp6","_extends3","_ref5","_ref5$refKey","_ref6$suppressRefErro","getItemProps","_temp7","_enabledEventHandlers","_ref7","onMouseMove","onMouseDown","_ref7$item","customClickHandler","avoidScrolling","clearItems","_ref8","_ref9","_this$getState7","openMenu","closeMenu","updateStatus","highlightedItem","_this$props$initialHi","initialHighlightedIndex","_highlightedIndex","_this$props$initialIs","initialIsOpen","_isOpen","_this$props$initialIn","initialInputValue","_inputValue","_this$props$initialSe","initialSelectedItem","_selectedItem","_state","internalClearTimeouts","stateToMerge","scrollHighlightedItemIntoView","_this$getState9","_this7","onMouseUp","onOuterClick","onTouchStart","isTouchMove","onTouchMove","onTouchEnd","contextWithinDownshift","cleanup","shouldScroll","currentHighlightedIndex","prevHighlightedIndex","selectedItemChanged","prevItem","dropdownDefaultStateValues","callOnChangeProps","newState","capitalizeString","invokeOnChangeHandler","updateA11yStatus","getA11yMessage","getElementIds","toggleButtonId","getItemIndex","isAcceptedCharacterKey","useControlledState","reducer","_useState","uncontrolledState","stateReducerFromProps","getA11ySelectionMessage","selectionParameters","itemToStringLocal","circularNavigation","getDefaultValue","propKey","defaultStateValues","defaultPropKey","getInitialValue","initialPropKey","getHighlightedIndexOnOpen","getItemIndexByCharacterKey","keysSoFar","itemToStringParam","lowerCasedItemStrings","lowerCasedKeysSoFar","isValid","itemString","startsWith","defaultProps$1","MenuKeyDownArrowDown","MenuKeyDownArrowUp","MenuKeyDownEscape","MenuKeyDownHome","MenuKeyDownEnd","MenuKeyDownEnter","MenuKeyDownSpaceButton","MenuKeyDownCharacter","MenuBlur","MenuMouseLeave","ItemMouseMove","ItemClick","ToggleButtonClick","ToggleButtonKeyDownArrowDown","ToggleButtonKeyDownArrowUp","ToggleButtonKeyDownCharacter","FunctionToggleMenu","FunctionOpenMenu","FunctionCloseMenu","FunctionSetHighlightedIndex","FunctionSelectItem","FunctionSetInputValue","FunctionReset","stateChangeTypes$1","downshiftSelectReducer","lowercasedKey","_lowercasedKey","useSelect","userProps","_useControlledState","_useControlledState$","toggleButtonRef","isInitialMount","mouseAndTouchTrackers","elementIds","previousResultCountRef","outerDispatch","toggleButtonKeyDownHandlers","menuKeyDownHandlers","menuHandleKeyDown","menuHandleBlur","menuHandleMouseLeave","toggleButtonHandleClick","toggleButtonHandleKeyDown","_ref2$refKey","toggleProps","toggleButtonNode","labelProps","itemProps","itemHandleMouseMove","itemHandleClick","newSelectedItem","setInputValue","newInputValue","ListBoxType","ListBoxSize","handleClick","ListBox","showWarning","ListBoxField","ListBoxMenuItem","isHighlighted","isTruncated","setIsTruncated","_ref$current","useIsTruncated","menuItemOptionRef","ListBoxMenu","_defaultTranslations","translationIds","defaultTranslations","ListBoxMenuIcon","translateWithId","ListBoxSelection","selectionCount","onClearSelection","tagClasses","sortingPropTypes","compareItems","sortItems","defaultItemToString","defaultCompareItems","itemA","itemB","localeCompare","numeric","defaultSortItems","_ref2$selectedItems","selectedItems","_ref2$locale","hasItemA","hasItemB","callOnChangeHandler","onChangeHandlerControlled","onChangeHandlerUncontrolled","Selection","removeAtIndex","isEqual","handleRemoveItem","handleSelectItem","initialSelectedItems","onItemChange","handleOnItemChange","handleClearSelection","mapDownshiftProps","output","regex","_match","replacer","_useSelect$stateChang","MultiSelect","_cx4","itemToElement","_itemToString","titleText","clearSelectionText","clearSelectionDescription","useTitleInItem","downshiftProps","selectionFeedback","onMenuChange","multiSelectInstanceId","setIsOpen","prevOpenProp","setPrevOpenProp","topItems","setTopItems","_useSelection","_ref2$initialSelected","controlledItems","savedOnChange","uncontrolledItems","setUncontrolledItems","newSelectedItems","useSelection","controlledSelectedItems","_useSelect","setIsOpenWrapper","wrapperClasses","titleClasses","helperId","fieldLabelId","helperClasses","ItemToElement","sortOptions","toggleButtonProps","_getItemProps","isChecked","ListBoxPropTypes","defaultFilterItems","ListBoxTrigger","FilterableMultiSelect","handleOnMenuChange","downshift","textInput","filterableMultiSelectInstanceId","inputFocused","filterItems","handleOnChange","_clearSelection","handleOnInputValueChange","handleOnStateChange","handleOnOuterClick","_cx5","rootProps","buttonProps","inputProps","menuProps","clearInputValue","fixed","setPrevOpen","setInputFocused","forceIsOpen","nextIsOpen","FilterableMultiSelectNext","FilterableMultiSelectClassic","ButtonSet","buttonSetClasses","_Modal$propTypes","requiredIfGivenPropIsTruthy","Modal","modalHeading","modalLabel","passiveModal","modalAriaLabel","hasForm","secondaryButtonText","primaryButtonText","onRequestClose","onRequestSubmit","onSecondarySubmit","primaryButtonDisabled","danger","alert","secondaryButtons","shouldSubmitOnEnter","hasScrollingContent","closeButtonLabel","preventCloseOnClickOutside","secondaryButton","innerModal","startTrap","endTrap","modalInstanceId","modalLabelId","modalHeadingId","modalBodyId","modalCloseButtonClass","onSecondaryButtonClick","modalClasses","containerClasses","contentClasses","footerClasses","modalButton","getAriaLabelledBy","hasScrollingContentProps","alertDialogProps","focusContainerElement","containerElement","initialFocus","focusButton","modalBody","buttonText","onButtonClick","_defineProperty2","isCloseButton","primaryFocusElement","outerModal","beingOpen","handleMousedown","onTransitionEnd","handleTransitionEnd","ModalNext","ModalClassic","useMonitorOutput","monitor","collect","onCollect","collected","setCollected","updateCollected","useCollector","handlerId","getHandlerId","subscribeToStateChange","handlerIds","useCollectedProps","collector","connector","reconnect","useOptionalFactory","memoDeps","useConnectDropTarget","hooks","dropTarget","shallowEqual","objA","objB","compareContext","compareResult","keysA","keysB","bHasOwnProperty","idx","valueA","valueB","isRef","wrapHookToRecognizeElement","hook","elementOrNode","throwIfCompositeComponentElement","newRef","previousRef","setRef","cloneWithRef","wrapConnectorHooks","wrappedHooks","wrappedHook","TargetConnector","clearDropTarget","dropTargetOptions","dropTargetRef","dropTargetNode","dropTargetOptionsInternal","lastConnectedHandlerId","lastConnectedDropTarget","lastConnectedDropTargetOptions","didChange","didHandlerIdChange","didDropTargetChange","didOptionsChange","disconnectDropTarget","unsubscribeDropTarget","connectDropTarget","newHandlerId","DndContext","dragDropManager","useDragDropManager","isCallingCanDrop","DropTargetMonitorImpl","manager","targetId","internalMonitor","getMonitor","canDropOnTarget","isOverTarget","getItemType","getItem","getDropResult","didDrop","getInitialClientOffset","getInitialSourceClientOffset","getSourceClientOffset","getClientOffset","getDifferenceFromInitialOffset","DropTargetImpl","canDrop","hover","drop","useRegisteredDropTarget","useDropTarget","accept","useAccept","registry","getRegistry","addTarget","removeTarget","registerTarget","unregister","receiveHandlerId","useDrop","specArg","useDropTargetMonitor","getBackend","useDropTargetConnector","useConnectDragSource","dragSource","useConnectDragPreview","dragPreview","SourceConnector","clearDragSource","dragSourceOptions","dragSourceRef","dragSourceNode","reconnectDragSource","clearDragPreview","dragPreviewOptions","dragPreviewRef","dragPreviewNode","reconnectDragPreview","dragSourceOptionsInternal","dragPreviewOptionsInternal","lastConnectedDragSource","lastConnectedDragSourceOptions","lastConnectedDragPreview","lastConnectedDragPreviewOptions","didConnectedDragSourceChange","didDragSourceOptionsChange","disconnectDragSource","dragSourceUnsubscribe","connectDragSource","forceDidChange","didConnectedDragPreviewChange","didDragPreviewOptionsChange","disconnectDragPreview","dragPreviewUnsubscribe","connectDragPreview","isCallingCanDrag","isCallingIsDragging","DragSourceMonitorImpl","sourceId","canDragSource","isDraggingSource","getTargetIds","isSourcePublic","getSourceId","subscribeToOffsetChange","DragSourceImpl","canDrag","globalMonitor","isDragging","useRegisteredDragSource","useDragSource","itemType","useDragType","addSource","removeSource","registerSource","useDrag","begin","useDragSourceMonitor","useDragSourceConnector","previewOptions","formatProdErrorMessage","$$observable","observable","randomString","ActionTypes","INIT","REPLACE","PROBE_UNKNOWN_ACTION","createStore","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","isSubscribed","replaceReducer","nextReducer","outerSubscribe","observer","observeState","INIT_COORDS","BEGIN_DRAG","PUBLISH_DRAG_SOURCE","HOVER","DROP","END_DRAG","setClientOffset","clientOffset","sourceClientOffset","ResetCoordinatesAction","createBeginDrag","sourceIds","publishSource","getSource","verifyInvariants","getDraggableSource","verifyGetSourceClientOffsetIsFunction","beginDrag","verifyItemIsObject","pinSource","getSourceType","createDrop","targetIds","getDroppableTargets","dropResult","getTarget","verifyDropResultType","determineDropResult","createEndDrag","verifyIsDragging","endDrag","unpinSource","matchesType","targetType","draggedItemType","createHover","targetIdsArg","verifyTargetIdsIsArray","getTargetType","removeNonMatchingTargetIds","checkInvariants","hoverAllTargets","createPublishDragSource","DragDropManagerImpl","store","isSetUp","handleRefCountChange","shouldSetUp","refCount","setup","teardown","actions","publishDragSource","createDragDropActions","boundActions","actionCreator","subtract","NONE","ALL","__IS_NONE__","__IS_ALL__","DragDropMonitorImpl","prevStateId","stateId","currentStateId","canSkipListener","dirtyIds","itemsB","commonIds","areDirty","dirtyHandlerIds","previousState","dragOffset","shallow","dragOperation","initialClientOffset","initialSourceClientOffset","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","makeRequestCallFromTimer","handleTimer","intervalHandle","setInterval","clearInterval","makeRequestCall","observe","characterData","AsapQueue","pendingErrors","flushing","capacity","currentIndex","scan","newLength","registerPendingError","requestErrorThrow","requestFlush","task","RawTask","TaskFactory","freeTasks","tasks","asapQueue","taskFactory","HandlerRole","ADD_SOURCE","ADD_TARGET","REMOVE_SOURCE","REMOVE_TARGET","validateType","allowArray","SOURCE","TARGET","nextUniqueId","getNextHandlerId","parseRoleFromHandlerId","mapContainsValue","searchValue","isDone","HandlerRegistryImpl","types","dragSources","dropTargets","pinnedSourceId","pinnedSource","validateSourceContract","addHandler","validateTargetContract","includePinned","isSourceId","isTargetId","enqueueTask","strictEquality","prevTargetIds","itemsA","insertItem","xor","areArraysEqual","prevInnermostTargetId","innermostTargetId","offsetA","offsetB","createDragDropManager","backendFactory","globalContext","backendOptions","debugMode","reduxDevTools","__REDUX_DEVTOOLS_EXTENSION__","makeStoreInstance","receiveBackend","INSTANCE_SYM","DndProvider","_param","getGlobalContext","ctx","createSingletonDndContext","isGlobalInstance","getDndContextValue","_jsx","EnterLeaveCounter","isNodeInDocument","entered","enteringNode","previousLength","union","leavingNode","NativeDragSource","initializeExposedProperties","exposeProperties","newProperties","propertyFn","matchesTypes","handle","FILE","URL","TEXT","HTML","getDataFromDataTransfer","typesToTry","resultSoFar","typeToTry","getData","nativeTypesConfig","NativeTypes","files","html","urls","matchNativeItemType","dataTransferTypes","nativeItemType","typeConfig","isFirefox","isSafari","safari","MonotonicInterpolant","xs","ys","indexes","dx","dy","dys","dxs","ms","c1s","m2","mNext","dxNext","c2s","c3s","c1","invDx","mid","low","high","xHere","diff","diffSq","ELEMENT_NODE","getNodeClientOffset","getEventClientOffset","getDragPreviewOffset","sourceNode","anchorPoint","offsetPoint","isImage","isImageNode","dragPreviewNodeOffsetFromClient","offsetFromDragPreview","sourceWidth","sourceHeight","anchorX","anchorY","dragPreviewWidth","dragPreviewHeight","devicePixelRatio","getDragPreviewSize","offsetX","offsetY","isManualOffsetY","interpolate","calculateYOffset","OptionsReader","optionsArgs","rootElement","HTML5BackendImpl","sourcePreviewNodes","sourcePreviewNodeOptions","sourceNodes","sourceNodeOptions","dragStartSourceIds","dropTargetIds","dragEnterTargetIds","currentNativeSource","currentNativeHandle","currentDragSourceNode","altKeyPressed","mouseMoveTimeoutTimer","asyncEndDragFrameId","dragOverTargetIds","lastClientOffset","hoverRafId","endDragNativeItem","isDraggingNativeItem","endDragIfSourceWasRemovedFromDOM","clearCurrentDragSourceNode","cancelHover","scheduleHover","requestAnimationFrame","cancelAnimationFrame","handleTopDragStartCapture","handleTopDragStart","nativeType","setDragImage","getCurrentSourcePreviewNodeOptions","dragPreviewOffset","setData","setCurrentDragSourceNode","captureDraggingState","beginDragNativeItem","handleTopDragEndCapture","handleTopDragEnterCapture","loadDataTransfer","enterLeaveCounter","enter","handleTopDragEnter","dropEffect","getCurrentDropEffect","handleTopDragOverCapture","handleTopDragOver","handleTopDragLeaveCapture","leave","handleTopDropCapture","handleTopDrop","handleSelectStart","dragDrop","isContentEditable","getActions","ref1","__isReactDndBackendSetUp","addEventListeners","removeEventListeners","handleDragStart","handleDragEnter","handleDragOver","handleDrop","getCurrentSourceNodeOptions","createNativeDragSource","HTML5Backend","collectLeafColumnIndices","columDefinitions","columnDefinition","DraggableColumnHeader","draggedColumn","newColumnOrder","draggedColumnId","reorderColumn","isOver","dropRef","dragRef","previewRef","thClassNames","sortingIcons","asc","ModalStateManager","LauncherContent","renderLauncher","ModalContent","setOpen","FeaturedTable","nbTrials","defaultColumnOrder","resolvedOptions","tableRef","prev","useReactTable","accessRows","originalRows","getSubRows","originalSubRows","sortingState","sortedFlatRows","availableSorting","_table$getColumn","columnInfoById","sortEntry","sortUndefined","invertSorting","sortData","sortedData","columnInfo","isDesc","aUndefined","bUndefined","sortInt","paginatedRowModel","pageEnd","itemSelectAll","selectableColumns","selectedColumns","setSelectedColumns","experimentWords","multiSelect","previousColSet","colSet","def","columnID","_regeneratorRuntime","Op","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","define","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","Context","makeInvokeMethod","tryCatch","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","record","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","iteratorMethod","isGeneratorFunction","genFun","ctor","mark","awrap","async","skipTempReset","stop","rootRecord","rval","exception","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","_flattenObject","inObj","outObj","flattenObject","ObjectToGrid","TrialsProvider","trials","queryTrials","trialIndices","trial","sortableParamCols","trialID","rawTrial","flattenedParameters","sortableCell","paramKeys","statistics","TRIALS_PROVIDER","DatabasePage","onSelectTrialStatus","loadTrials","ExperimentsWithRouter","renderPage","TextDirectionContext","Text","_ref$dir","dir","textProps","parentDirection","getTextDirection","getTextFromChildren","override","getInputValue","ComboBox","onInputChange","onToggleClick","shouldFilterItem","comboBoxInstanceId","prevSelectedItem","setPrevSelectedItem","doneInitialSelectedItem","setDoneInitialSelectedItem","savedOnInputChange","handleSelectionClear","filteredItems","findHighlightedIndex","handleToggleClick","comboBoxHelperId","_downshiftProps$onSta","_textInput$current","Checkbox","_onChange","indeterminate","wrapperClassName","_ref$title","innerLabelClasses","getAlgorithmName","algoDef","_path386","_path401","_path402","BenchmarkNavBar","onChangeComboBox","onSelectAlgo","onSelectTask","onSelectAssessment","benchmarks","benchmark","renderAssessments","renderTasks","renderAlgorithms","assessments","assessment","indexAssessment","indexTask","algorithms","algo","algorithm","indexAlgorithm","onSelectBenchmark","PlotData","PlotsProvider","plots","rawPlots","analysis","plotNames","plotData","PLOTS_PROVIDER","PlotRender","plot","plotIndex","Event","createEvent","initUIEvent","_excluded238","_excluded246","Checkbox16","_ref238","CheckboxCheckedFilled16","_ref246","visited","linkProps","rel","Tile","_ref$light","tileClasses","ClickableTile","_ref2$clicked","clicked","_ref2$light","_ref2$onClick","_ref2$onKeyDown","setIsSelected","clickHandler","keyDownHandler","SelectableTile","_ref3$light","_ref3$onClick","_ref3$onChange","_ref3$onKeyDown","_ref3$selected","_ref3$tabIndex","_ref3$title","_ref3$value","prevSelected","setPrevSelected","ExpandableTile","tileMaxHeight","tilePadding","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","onBeforeClick","isTileMaxHeight","setIsTileMaxHeight","isTilePadding","setIsTilePadding","_useState14","prevTileMaxHeight","setPrevTileMaxHeight","_useState16","prevTilePadding","setPrevTilePadding","_useState18","aboveTheFold","tileContent","tile","setMaxHeight","tileStyle","maxHeight","childrenAsArray","useIsomorphicEffect","getStyle","paddingTop","paddingBottom","resizeObserver","ResizeObserver","contentRect","disconnect","TileAboveTheFoldContent","TileBelowTheFoldContent","_super2","_this$props$handleCli","_this$props$onClick","_this$props$handleKey2","_this$props5","_this$props$handleKey","_this$props6","prevClicked","_Component3","_super3","_this2$props$handleCl","_this2$props","_this2$props$onClick","_this2$props2","_this$props7","handleKeyUp","currentExpanded","currentTileMaxHeight","currentTilePadding","expandedChanged","tileMaxHeightChanged","tilePaddingChanged","_Component4","_super4","_Component5","_super5","TileNext","TileClassic","BenchmarkVisualizationsPage","onResize","divAssessments","plotWidth","grids","getElementsByClassName","grid","nbMaxPlots","iCol","gridWidth","BenchmarkStatusPage","sortStates","DESC","ASC","getCellId","compareStrings","initialSortState","getNextSortState","sortDirection","sortHeaderKey","nextSortDirection","getSortedState","rowIds","cellsById","initialRowOrder","sortRow","nextRowIds","cellA","cellB","sortRows","prevRowsByIds","_row$isSelected","_row$isExpanded","_row$disabled","isEditable","isEditing","errors","_normalize","normalize","filterInputValue","shouldShowBatchActions","_rowIds","cellId","translationKeys","expandRow","collapseRow","expandAll","collapseAll","selectAll","unselectAll","selectRow","unselectRow","DataTable","_onClick","_ref$isSortable","isSortable","isSortHeader","nextSortState","handleOnHeaderClick","_this$state2","isExpandedAll","translationKey","onExpand","handleOnExpandAll","handleOnExpandHeaderClick","sortParams","expandParams","handleOnExpandRow","_translationKey","handleOnSelectRow","getTablePrefix","radio","rowCount","selectedRowCount","getSelectedRows","handleSelectAll","isSmall","onCancel","handleOnCancel","useZebraStyles","useStaticWidth","shouldShowBorder","stickyHeader","overflowMenuOnHover","filteredRowIds","filterRows","setAllSelectedState","getFilteredRowIds","_c","selectedRows","selectedRowsCount","headerKey","prevRowIds","prevHeaders","_this$state3","denormalize","getHeaderProps","getExpandHeaderProps","getRowProps","getSelectionProps","getToolbarProps","getBatchActionProps","getTableProps","getTableContainerProps","sortBy","handleSortBy","Table","componentClass","_path155","_path156","baseClassName","TableActionList","wrapComponent","_excluded100","AddFilled16","_ref100","TableBatchAction","iconAddSolid","TableBatchActions","isScrolling","setIsScrolling","batchActionsClasses","batchSummaryClasses","onScroll","TableBody","TableContainer","tableContainerClasses","TableExpandHeader","headerClassName","enableExpando","enableToggle","expandIconDescription","previousValue","TableExpandRow","rowClassName","expandHeader","TableCell","TableExpandedRow","rowRef","toggleParentHoverClass","previousElementSibling","_sortDirections","buttonDescription","sortDirections","TableHeader","ariaSort","sortDescription","Arrow","Arrows","TableRow","cleanProps","InlineCheckbox","_props$checked","_props$onChange","inputRef","TableSelectAll","RadioButton","_ref$labelPosition","labelPosition","_ref$labelText","_ref$value","lastId","RadioButtonNext","RadioButtonClassic","TableSelectRow","selectionInputProps","InlineInputComponent","tableSelectRowClasses","TableToolbar","OverflowMenuItem","handleOverflowMenuItemFocus","hasDivider","isDelete","_onKeyDown","primaryFocus","requireTitle","overflowMenuBtnClasses","overflowMenuItemClasses","TagToUse","OverflowMenuItemContent","setTabFocus","overflowMenuItem","TableToolbarAction","TableToolbarSearch","searchContainerClass","onChangeProp","persistent","persistant","setFocusTarget","handleExpand","_circle42","_circle43","_circle44","_triggerButtonPositio","_triggerButtonPositio2","_excluded150","OverflowMenuVertical16","_ref150","cy","triggerButtonPositionProps","getMenuOffset","trigger","flip","triggerButtonPositionProp","menuWidth","menuHeight","OverflowMenu","keyCodeMatches","wasOpen","focusMenuEl","onCloseMenu","onClose","_overflowMenuItem$cur","enabledIndices","curr","nextValidIndex","nextIndex","_hFocusIn","hasFocusin","focusinEventName","onOpen","_hBlurTimeout","menuOffsetFlip","iconClass","menuOptionsClass","overflowMenuClasses","overflowMenuOptionsClasses","overflowMenuIconClasses","childrenWithProps","_child$props","wrappedMenuBody","_bindMenuBody","_handlePlace","iconProps","TableToolbarMenu","toolbarActionClasses","TableHead","TableToolbarContent","created_on","updatedAt","createdAt","issueCount","stars","links","getRowItems","toLocaleDateString","objective","BenchmarkDatabasePage","BenchmarkConfigurationPage","BenchmarksWithRouter","selectExperiments","selectBenchmarks","serviceWorker","ready","registration"],"sourceRoot":""} \ No newline at end of file diff --git a/dashboard/build/static/js/main.f53d74b0.js b/dashboard/build/static/js/main.f53d74b0.js deleted file mode 100644 index 405fe0e65..000000000 --- a/dashboard/build/static/js/main.f53d74b0.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.f53d74b0.js.LICENSE.txt */ -!function(){var t={4569:function(t,e,r){t.exports=r(8036)},3381:function(t,e,r){"use strict";var n=r(3589),i=r(7297),a=r(9301),o=r(9774),s=r(1804),l=r(9145),c=r(5411),u=r(6789),f=r(4531),p=r(6569),d=r(6261);t.exports=function(t){return new Promise((function(e,r){var h,g=t.data,m=t.headers,v=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(g)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var x=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(x+":"+_)}var w=s(t.baseURL,t.url);function k(){if(b){var n="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,a={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:t,request:b};i((function(t){e(t),y()}),(function(t){r(t),y()}),a),b=null}}if(b.open(t.method.toUpperCase(),o(w,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,t,b,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||u;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new f(e,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,t,b)),b=null},n.isStandardBrowserEnv()){var T=(t.withCredentials||c(w))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;T&&(m[t.xsrfHeaderName]=T)}"setRequestHeader"in b&&n.forEach(m,(function(t,e){"undefined"===typeof g&&"content-type"===e.toLowerCase()?delete m[e]:b.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),v&&"json"!==v&&(b.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){b&&(r(!t||t&&t.type?new p:t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),g||(g=null);var M=d(w);M&&-1===["http","https","file"].indexOf(M)?r(new f("Unsupported protocol "+M+":",f.ERR_BAD_REQUEST,t)):b.send(g)}))}},8036:function(t,e,r){"use strict";var n=r(3589),i=r(4049),a=r(3773),o=r(777);var s=function t(e){var r=new a(e),s=i(a.prototype.request,r);return n.extend(s,a.prototype,r),n.extend(s,r),s.create=function(r){return t(o(e,r))},s}(r(1709));s.Axios=a,s.CanceledError=r(6569),s.CancelToken=r(6857),s.isCancel=r(5517),s.VERSION=r(7600).version,s.toFormData=r(1397),s.AxiosError=r(4531),s.Cancel=s.CanceledError,s.all=function(t){return Promise.all(t)},s.spread=r(8089),s.isAxiosError=r(9580),t.exports=s,t.exports.default=s},6857:function(t,e,r){"use strict";var n=r(6569);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 r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},i.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6569:function(t,e,r){"use strict";var n=r(4531);function i(t){n.call(this,null==t?"canceled":t,n.ERR_CANCELED),this.name="CanceledError"}r(3589).inherits(i,n,{__CANCEL__:!0}),t.exports=i},5517:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},3773:function(t,e,r){"use strict";var n=r(3589),i=r(9774),a=r(7470),o=r(2733),s=r(777),l=r(1804),c=r(7835),u=c.validators;function f(t){this.defaults=t,this.interceptors={request:new a,response:new a}}f.prototype.request=function(t,e){"string"===typeof t?(e=e||{}).url=t:e=t||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var a,l=[];if(this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)})),!i){var f=[o,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(l),a=Promise.resolve(e);f.length;)a=a.then(f.shift(),f.shift());return a}for(var p=e;n.length;){var d=n.shift(),h=n.shift();try{p=d(p)}catch(g){h(g);break}}try{a=o(p)}catch(g){return Promise.reject(g)}for(;l.length;)a=a.then(l.shift(),l.shift());return a},f.prototype.getUri=function(t){t=s(this.defaults,t);var e=l(t.baseURL,t.url);return i(e,t.params,t.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(t){f.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,i){return this.request(s(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[t]=e(),f.prototype[t+"Form"]=e(!0)})),t.exports=f},4531:function(t,e,r){"use strict";var n=r(3589);function i(t,e,r,n,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}n.inherits(i,Error,{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,status:this.response&&this.response.status?this.response.status:null}}});var a=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){o[t]={value:t}})),Object.defineProperties(i,o),Object.defineProperty(a,"isAxiosError",{value:!0}),i.from=function(t,e,r,o,s,l){var c=Object.create(a);return n.toFlatObject(t,c,(function(t){return t!==Error.prototype})),i.call(c,t.message,e,r,o,s),c.name=t.name,l&&Object.assign(c,l),c},t.exports=i},7470:function(t,e,r){"use strict";var n=r(3589);function i(){this.handlers=[]}i.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},1804:function(t,e,r){"use strict";var n=r(4044),i=r(9549);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},2733:function(t,e,r){"use strict";var n=r(3589),i=r(2693),a=r(5517),o=r(1709),s=r(6569);function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s}t.exports=function(t){return l(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return l(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(l(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},777:function(t,e,r){"use strict";var n=r(3589);t.exports=function(t,e){e=e||{};var r={};function i(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function a(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:i(void 0,t[r]):i(t[r],e[r])}function o(t){if(!n.isUndefined(e[t]))return i(void 0,e[t])}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:i(void 0,t[r]):i(void 0,e[r])}function l(r){return r in e?i(t[r],e[r]):r in t?i(void 0,t[r]):void 0}var c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||a,i=e(t);n.isUndefined(i)&&e!==l||(r[t]=i)})),r}},7297:function(t,e,r){"use strict";var n=r(4531);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}},2693:function(t,e,r){"use strict";var n=r(3589),i=r(1709);t.exports=function(t,e,r){var a=this||i;return n.forEach(r,(function(r){t=r.call(a,t,e)})),t}},1709:function(t,e,r){"use strict";var n=r(3589),i=r(4341),a=r(4531),o=r(6789),s=r(1397),l={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u={transitional:o,adapter:function(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(t=r(3381)),t}(),transformRequest:[function(t,e){if(i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t))return t;if(n.isArrayBufferView(t))return t.buffer;if(n.isURLSearchParams(t))return c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,a=n.isObject(t),o=e&&e["Content-Type"];if((r=n.isFileList(t))||a&&"multipart/form-data"===o){var l=this.env&&this.env.FormData;return s(r?{"files[]":t}:t,l&&new l)}return a||"application/json"===o?(c(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||u.transitional,r=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||i&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o){if("SyntaxError"===s.name)throw a.from(s,a.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(3035)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(l)})),t.exports=u},6789:function(t){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(t){t.exports={version:"0.27.2"}},4049:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},9774:function(t,e,r){"use strict";var n=r(3589);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,r){if(!e)return t;var a;if(r)a=r(e);else if(n.isURLSearchParams(e))a=e.toString();else{var o=[];n.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),o.push(i(e)+"="+i(t))})))})),a=o.join("&")}if(a){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},9549:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},9301:function(t,e,r){"use strict";var n=r(3589);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(a)&&s.push("domain="+a),!0===o&&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)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},9580:function(t,e,r){"use strict";var n=r(3589);t.exports=function(t){return n.isObject(t)&&!0===t.isAxiosError}},5411:function(t,e,r){"use strict";var n=r(3589);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},4341:function(t,e,r){"use strict";var n=r(3589);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},3035:function(t){t.exports=null},9145:function(t,e,r){"use strict";var n=r(3589),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,r,a,o={};return t?(n.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=n.trim(t.substr(0,a)).toLowerCase(),r=n.trim(t.substr(a+1)),e){if(o[e]&&i.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},6261:function(t){"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},8089:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1397:function(t,e,r){"use strict";var n=r(3589);t.exports=function(t,e){e=e||new FormData;var r=[];function i(t){return null===t?"":n.isDate(t)?t.toISOString():n.isArrayBuffer(t)||n.isTypedArray(t)?"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(a,o){if(n.isPlainObject(a)||n.isArray(a)){if(-1!==r.indexOf(a))throw Error("Circular reference detected in "+o);r.push(a),n.forEach(a,(function(r,a){if(!n.isUndefined(r)){var s,l=o?o+"."+a:a;if(r&&!o&&"object"===typeof r)if(n.endsWith(a,"{}"))r=JSON.stringify(r);else if(n.endsWith(a,"[]")&&(s=n.toArray(r)))return void s.forEach((function(t){!n.isUndefined(t)&&e.append(l,i(t))}));t(r,l)}})),r.pop()}else e.append(o,i(a))}(t),e}},7835:function(t,e,r){"use strict";var n=r(7600).version,i=r(4531),a={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){a[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var o={};a.transitional=function(t,e,r){function a(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,s){if(!1===t)throw new i(a(n," has been removed"+(e?" in "+e:"")),i.ERR_DEPRECATED);return e&&!o[n]&&(o[n]=!0,console.warn(a(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,s)}},t.exports={assertOptions:function(t,e,r){if("object"!==typeof t)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),a=n.length;a-- >0;){var o=n[a],s=e[o];if(s){var l=t[o],c=void 0===l||s(l,o,t);if(!0!==c)throw new i("option "+o+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},3589:function(t,e,r){"use strict";var n,i=r(4049),a=Object.prototype.toString,o=(n=Object.create(null),function(t){var e=a.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())});function s(t){return t=t.toLowerCase(),function(e){return o(e)===t}}function l(t){return Array.isArray(t)}function c(t){return"undefined"===typeof t}var u=s("ArrayBuffer");function f(t){return null!==t&&"object"===typeof t}function p(t){if("object"!==o(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var d=s("Date"),h=s("File"),g=s("Blob"),m=s("FileList");function v(t){return"[object Function]"===a.call(t)}var y=s("URLSearchParams");function b(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),l(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var x,_=(x="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return x&&t instanceof x});t.exports={isArray:l,isArrayBuffer:u,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"===typeof FormData&&t instanceof FormData||a.call(t)===e||v(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer)},isString:function(t){return"string"===typeof t},isNumber:function(t){return"number"===typeof t},isObject:f,isPlainObject:p,isUndefined:c,isDate:d,isFile:h,isBlob:g,isFunction:v,isStream:function(t){return f(t)&&v(t.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:b,merge:function t(){var e={};function r(r,n){p(e[n])&&p(r)?e[n]=t(e[n],r):p(r)?e[n]=t({},r):l(r)?e[n]=r.slice():e[n]=r}for(var n=0,i=arguments.length;n<i;n++)b(arguments[n],r);return e},extend:function(t,e,r){return b(e,(function(e,n){t[n]=r&&"function"===typeof e?i(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,i,a,o={};e=e||{};do{for(i=(n=Object.getOwnPropertyNames(t)).length;i-- >0;)o[a=n[i]]||(e[a]=t[a],o[a]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:o,kindOfTest:s,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(c(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:_,isFileList:m}},1694:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&t.push(o)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&t.push(s);else t.push(r.toString())}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},8262:function(t){"use strict";t.exports=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(i=n;0!==i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!==i--;){var o=a[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}},2110:function(t,e,r){"use strict";var n=r(7441),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(t){return n.isMemo(t)?o:s[t.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,r,n){if("string"!==typeof r){if(h){var i=d(r);i&&i!==h&&t(e,i,n)}var o=u(r);f&&(o=o.concat(f(r)));for(var s=l(e),g=l(r),m=0;m<o.length;++m){var v=o[m];if(!a[v]&&(!n||!n[v])&&(!g||!g[v])&&(!s||!s[v])){var y=p(r,v);try{c(e,v,y)}catch(b){}}}}return e}},2176:function(t){"use strict";t.exports=function(t,e,r,n,i,a,o,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,a,o,s],u=0;(l=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},3252:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",i=1/0,a=9007199254740991,o=17976931348623157e292,s=NaN,l="[object Arguments]",c="[object Array]",u="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Function]",h="[object Map]",g="[object Number]",m="[object Object]",v="[object Promise]",y="[object RegExp]",b="[object Set]",x="[object String]",_="[object Symbol]",w="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",M=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,S=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/^\s+|\s+$/g,O=/\\(\\)?/g,L=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,R=/^(?:0|[1-9]\d*)$/,z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z[l]=z[c]=z[k]=z[u]=z[T]=z[f]=z[p]=z[d]=z[h]=z[g]=z[m]=z[y]=z[b]=z[x]=z[w]=!1;var N=parseInt,F="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,B="object"==typeof self&&self&&self.Object===Object&&self,j=F||B||Function("return this")(),U=e&&!e.nodeType&&e,V=U&&t&&!t.nodeType&&t,H=V&&V.exports===U&&F.process,q=function(){try{return H&&H.binding("util")}catch(t){}}(),G=q&&q.isTypedArray;function W(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function Y(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}function X(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Z(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var K,J,$=Array.prototype,Q=Function.prototype,tt=Object.prototype,et=j["__core-js_shared__"],rt=function(){var t=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),nt=Q.toString,it=tt.hasOwnProperty,at=tt.toString,ot=RegExp("^"+nt.call(it).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=j.Symbol,lt=j.Uint8Array,ct=tt.propertyIsEnumerable,ut=$.splice,ft=(K=Object.keys,J=Object,function(t){return K(J(t))}),pt=Math.max,dt=Math.min,ht=qt(j,"DataView"),gt=qt(j,"Map"),mt=qt(j,"Promise"),vt=qt(j,"Set"),yt=qt(j,"WeakMap"),bt=qt(Object,"create"),xt=$t(ht),_t=$t(gt),wt=$t(mt),kt=$t(vt),Tt=$t(yt),Mt=st?st.prototype:void 0,At=Mt?Mt.valueOf:void 0,St=Mt?Mt.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ct(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Lt(t){var e=-1,r=t?t.length:0;for(this.__data__=new Ot;++e<r;)this.add(t[e])}function It(t){this.__data__=new Ct(t)}function Pt(t,e){var r=ie(t)||ne(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,i=!!n;for(var a in t)!e&&!it.call(t,a)||i&&("length"==a||Wt(a,n))||r.push(a);return r}function Dt(t,e){for(var r=t.length;r--;)if(re(t[r][0],e))return r;return-1}function Rt(t,e){for(var r=0,n=(e=Yt(e,t)?[e]:Ut(e)).length;null!=t&&r<n;)t=t[Jt(e[r++])];return r&&r==n?t:void 0}function zt(t,e){return null!=t&&e in Object(t)}function Nt(t,e,r,n,i){return t===e||(null==t||null==e||!le(t)&&!ce(e)?t!==t&&e!==e:function(t,e,r,n,i,a){var o=ie(t),s=ie(e),d=c,v=c;o||(d=(d=Gt(t))==l?m:d);s||(v=(v=Gt(e))==l?m:v);var w=d==m&&!Y(t),M=v==m&&!Y(e),A=d==v;if(A&&!w)return a||(a=new It),o||fe(t)?Vt(t,e,r,n,i,a):function(t,e,r,n,i,a,o){switch(r){case T:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!n(new lt(t),new lt(e)));case u:case f:case g:return re(+t,+e);case p:return t.name==e.name&&t.message==e.message;case y:case x:return t==e+"";case h:var s=X;case b:var l=2&a;if(s||(s=Z),t.size!=e.size&&!l)return!1;var c=o.get(t);if(c)return c==e;a|=1,o.set(t,e);var d=Vt(s(t),s(e),n,i,a,o);return o.delete(t),d;case _:if(At)return At.call(t)==At.call(e)}return!1}(t,e,d,r,n,i,a);if(!(2&i)){var S=w&&it.call(t,"__wrapped__"),E=M&&it.call(e,"__wrapped__");if(S||E){var C=S?t.value():t,O=E?e.value():e;return a||(a=new It),r(C,O,n,i,a)}}if(!A)return!1;return a||(a=new It),function(t,e,r,n,i,a){var o=2&i,s=pe(t),l=s.length,c=pe(e).length;if(l!=c&&!o)return!1;var u=l;for(;u--;){var f=s[u];if(!(o?f in e:it.call(e,f)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var d=!0;a.set(t,e),a.set(e,t);var h=o;for(;++u<l;){var g=t[f=s[u]],m=e[f];if(n)var v=o?n(m,g,f,e,t,a):n(g,m,f,t,e,a);if(!(void 0===v?g===m||r(g,m,n,i,a):v)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,n,i,a)}(t,e,Nt,r,n,i))}function Ft(t){return!(!le(t)||function(t){return!!rt&&rt in t}(t))&&(oe(t)||Y(t)?ot:P).test($t(t))}function Bt(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ie(t)?function(t,e){if(Yt(t)&&Xt(e))return Zt(Jt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Rt(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=Yt(e,t)?[e]:Ut(e);var n,i=-1,a=e.length;for(;++i<a;){var o=Jt(e[i]);if(!(n=null!=t&&r(t,o)))break;t=t[o]}if(n)return n;return!!(a=t?t.length:0)&&se(a)&&Wt(o,a)&&(ie(t)||ne(t))}(t,e,zt)}(r,t):Nt(e,n,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=pe(t),r=e.length;for(;r--;){var n=e[r],i=t[n];e[r]=[n,i,Xt(i)]}return e}(t);if(1==e.length&&e[0][2])return Zt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var i=r.length,a=i,o=!n;if(null==t)return!a;for(t=Object(t);i--;){var s=r[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var l=(s=r[i])[0],c=t[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in t))return!1}else{var f=new It;if(n)var p=n(c,u,l,t,e,f);if(!(void 0===p?Nt(u,c,n,3,f):p))return!1}}return!0}(r,t,e)}}(t):function(t){return Yt(t)?(e=Jt(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Rt(e,t)}}(t);var e}(t)}function jt(t){if(!function(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||tt;return t===r}(t))return ft(t);var e=[];for(var r in Object(t))it.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Ut(t){return ie(t)?t:Kt(t)}function Vt(t,e,r,n,i,a){var o=2&i,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var u=-1,f=!0,p=1&i?new Lt:void 0;for(a.set(t,e),a.set(e,t);++u<s;){var d=t[u],h=e[u];if(n)var g=o?n(h,d,u,e,t,a):n(d,h,u,t,e,a);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!W(e,(function(t,e){if(!p.has(e)&&(d===t||r(d,t,n,i,a)))return p.add(e)}))){f=!1;break}}else if(d!==h&&!r(d,h,n,i,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function Ht(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function qt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Ft(r)?r:void 0}Et.prototype.clear=function(){this.__data__=bt?bt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return r===n?void 0:r}return it.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:it.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?n:e,this},Ct.prototype.clear=function(){this.__data__=[]},Ct.prototype.delete=function(t){var e=this.__data__,r=Dt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ut.call(e,r,1),!0)},Ct.prototype.get=function(t){var e=this.__data__,r=Dt(e,t);return r<0?void 0:e[r][1]},Ct.prototype.has=function(t){return Dt(this.__data__,t)>-1},Ct.prototype.set=function(t,e){var r=this.__data__,n=Dt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Ot.prototype.clear=function(){this.__data__={hash:new Et,map:new(gt||Ct),string:new Et}},Ot.prototype.delete=function(t){return Ht(this,t).delete(t)},Ot.prototype.get=function(t){return Ht(this,t).get(t)},Ot.prototype.has=function(t){return Ht(this,t).has(t)},Ot.prototype.set=function(t,e){return Ht(this,t).set(t,e),this},Lt.prototype.add=Lt.prototype.push=function(t){return this.__data__.set(t,n),this},Lt.prototype.has=function(t){return this.__data__.has(t)},It.prototype.clear=function(){this.__data__=new Ct},It.prototype.delete=function(t){return this.__data__.delete(t)},It.prototype.get=function(t){return this.__data__.get(t)},It.prototype.has=function(t){return this.__data__.has(t)},It.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ct){var n=r.__data__;if(!gt||n.length<199)return n.push([t,e]),this;r=this.__data__=new Ot(n)}return r.set(t,e),this};var Gt=function(t){return at.call(t)};function Wt(t,e){return!!(e=null==e?a:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function Yt(t,e){if(ie(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ue(t))||(A.test(t)||!M.test(t)||null!=e&&t in Object(e))}function Xt(t){return t===t&&!le(t)}function Zt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(ht&&Gt(new ht(new ArrayBuffer(1)))!=T||gt&&Gt(new gt)!=h||mt&&Gt(mt.resolve())!=v||vt&&Gt(new vt)!=b||yt&&Gt(new yt)!=w)&&(Gt=function(t){var e=at.call(t),r=e==m?t.constructor:void 0,n=r?$t(r):void 0;if(n)switch(n){case xt:return T;case _t:return h;case wt:return v;case kt:return b;case Tt:return w}return e});var Kt=ee((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(ue(t))return St?St.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return S.test(t)&&r.push(""),t.replace(E,(function(t,e,n,i){r.push(n?i.replace(O,"$1"):e||t)})),r}));function Jt(t){if("string"==typeof t||ue(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $t(t){if(null!=t){try{return nt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Qt,te=(Qt=function(t,e,r){var n=t?t.length:0;if(!n)return-1;var a=n-1;return void 0!==r&&(a=function(t){var e=function(t){return t?(t=function(t){if("number"==typeof t)return t;if(ue(t))return s;if(le(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=le(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(C,"");var r=I.test(t);return r||D.test(t)?N(t.slice(2),r?2:8):L.test(t)?s:+t}(t))===i||t===-1/0?(t<0?-1:1)*o:t===t?t:0:0===t?t:0}(t),r=e%1;return e===e?r?e-r:e:0}(r),a=r<0?pt(n+a,0):dt(a,n-1)),function(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a<i;)if(e(t[a],a,t))return a;return-1}(t,Bt(e),a,!0)},function(t,e,r){var n=Object(t);if(!ae(t)){var i=Bt(e);t=pe(t),e=function(t){return i(n[t],t,n)}}var a=Qt(t,e,r);return a>-1?n[i?t[a]:a]:void 0});function ee(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(ee.Cache||Ot),r}function re(t,e){return t===e||t!==t&&e!==e}function ne(t){return function(t){return ce(t)&&ae(t)}(t)&&it.call(t,"callee")&&(!ct.call(t,"callee")||at.call(t)==l)}ee.Cache=Ot;var ie=Array.isArray;function ae(t){return null!=t&&se(t.length)&&!oe(t)}function oe(t){var e=le(t)?at.call(t):"";return e==d||"[object GeneratorFunction]"==e}function se(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function le(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ce(t){return!!t&&"object"==typeof t}function ue(t){return"symbol"==typeof t||ce(t)&&at.call(t)==_}var fe=G?function(t){return function(e){return t(e)}}(G):function(t){return ce(t)&&se(t.length)&&!!z[at.call(t)]};function pe(t){return ae(t)?Pt(t):jt(t)}function de(t){return t}t.exports=te},2467:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",f="[object Map]",p="[object Number]",d="[object Object]",h="[object Promise]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",_="[object DataView]",w=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[a]=T[o]=T[x]=T[s]=T[_]=T[l]=T[c]=T[u]=T[f]=T[p]=T[d]=T[g]=T[m]=T[v]=T[b]=!1;var M="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,A="object"==typeof self&&self&&self.Object===Object&&self,S=M||A||Function("return this")(),E=e&&!e.nodeType&&e,C=E&&t&&!t.nodeType&&t,O=C&&C.exports===E,L=O&&M.process,I=function(){try{return L&&L.binding&&L.binding("util")}catch(t){}}(),P=I&&I.isTypedArray;function D(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function R(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function z(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var N,F,B=Array.prototype,j=Function.prototype,U=Object.prototype,V=S["__core-js_shared__"],H=j.toString,q=U.hasOwnProperty,G=function(){var t=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),W=U.toString,Y=RegExp("^"+H.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=O?S.Buffer:void 0,Z=S.Symbol,K=S.Uint8Array,J=U.propertyIsEnumerable,$=B.splice,Q=Z?Z.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=X?X.isBuffer:void 0,rt=(N=Object.keys,F=Object,function(t){return N(F(t))}),nt=Lt(S,"DataView"),it=Lt(S,"Map"),at=Lt(S,"Promise"),ot=Lt(S,"Set"),st=Lt(S,"WeakMap"),lt=Lt(Object,"create"),ct=Rt(nt),ut=Rt(it),ft=Rt(at),pt=Rt(ot),dt=Rt(st),ht=Z?Z.prototype:void 0,gt=ht?ht.valueOf:void 0;function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function bt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new yt;++e<r;)this.add(t[e])}function xt(t){var e=this.__data__=new vt(t);this.size=e.size}function _t(t,e){var r=Ft(t),n=!r&&Nt(t),i=!r&&!n&&Bt(t),a=!r&&!n&&!i&&qt(t),o=r||n||i||a,s=o?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=s.length;for(var c in t)!e&&!q.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Dt(c,l))||s.push(c);return s}function wt(t,e){for(var r=t.length;r--;)if(zt(t[r][0],e))return r;return-1}function kt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Q&&Q in Object(t)?function(t){var e=q.call(t,Q),r=t[Q];try{t[Q]=void 0;var n=!0}catch(a){}var i=W.call(t);n&&(e?t[Q]=r:delete t[Q]);return i}(t):function(t){return W.call(t)}(t)}function Tt(t){return Ht(t)&&kt(t)==a}function Mt(t,e,r,n,i){return t===e||(null==t||null==e||!Ht(t)&&!Ht(e)?t!==t&&e!==e:function(t,e,r,n,i,u){var h=Ft(t),b=Ft(e),w=h?o:Pt(t),k=b?o:Pt(e),T=(w=w==a?d:w)==d,M=(k=k==a?d:k)==d,A=w==k;if(A&&Bt(t)){if(!Bt(e))return!1;h=!0,T=!1}if(A&&!T)return u||(u=new xt),h||qt(t)?Et(t,e,r,n,i,u):function(t,e,r,n,i,a,o){switch(r){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!a(new K(t),new K(e)));case s:case l:case p:return zt(+t,+e);case c:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case f:var u=R;case m:var d=1&n;if(u||(u=z),t.size!=e.size&&!d)return!1;var h=o.get(t);if(h)return h==e;n|=2,o.set(t,e);var b=Et(u(t),u(e),n,i,a,o);return o.delete(t),b;case y:if(gt)return gt.call(t)==gt.call(e)}return!1}(t,e,w,r,n,i,u);if(!(1&r)){var S=T&&q.call(t,"__wrapped__"),E=M&&q.call(e,"__wrapped__");if(S||E){var C=S?t.value():t,O=E?e.value():e;return u||(u=new xt),i(C,O,r,n,u)}}if(!A)return!1;return u||(u=new xt),function(t,e,r,n,i,a){var o=1&r,s=Ct(t),l=s.length,c=Ct(e).length;if(l!=c&&!o)return!1;var u=l;for(;u--;){var f=s[u];if(!(o?f in e:q.call(e,f)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var d=!0;a.set(t,e),a.set(e,t);var h=o;for(;++u<l;){var g=t[f=s[u]],m=e[f];if(n)var v=o?n(m,g,f,e,t,a):n(g,m,f,t,e,a);if(!(void 0===v?g===m||i(g,m,r,n,a):v)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,n,i,u)}(t,e,r,n,Mt,i))}function At(t){return!(!Vt(t)||function(t){return!!G&&G in t}(t))&&(jt(t)?Y:w).test(Rt(t))}function St(t){if(!function(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||U;return t===r}(t))return rt(t);var e=[];for(var r in Object(t))q.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Et(t,e,r,n,i,a){var o=1&r,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var u=-1,f=!0,p=2&r?new bt:void 0;for(a.set(t,e),a.set(e,t);++u<s;){var d=t[u],h=e[u];if(n)var g=o?n(h,d,u,e,t,a):n(d,h,u,t,e,a);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!D(e,(function(t,e){if(o=e,!p.has(o)&&(d===t||i(d,t,r,n,a)))return p.push(e);var o}))){f=!1;break}}else if(d!==h&&!i(d,h,r,n,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function Ct(t){return function(t,e,r){var n=e(t);return Ft(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,Gt,It)}function Ot(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function Lt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return At(r)?r:void 0}mt.prototype.clear=function(){this.__data__=lt?lt(null):{},this.size=0},mt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt.prototype.get=function(t){var e=this.__data__;if(lt){var r=e[t];return r===n?void 0:r}return q.call(e,t)?e[t]:void 0},mt.prototype.has=function(t){var e=this.__data__;return lt?void 0!==e[t]:q.call(e,t)},mt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=lt&&void 0===e?n:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=wt(e,t);return!(r<0)&&(r==e.length-1?e.pop():$.call(e,r,1),--this.size,!0)},vt.prototype.get=function(t){var e=this.__data__,r=wt(e,t);return r<0?void 0:e[r][1]},vt.prototype.has=function(t){return wt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var r=this.__data__,n=wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},yt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(it||vt),string:new mt}},yt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},yt.prototype.get=function(t){return Ot(this,t).get(t)},yt.prototype.has=function(t){return Ot(this,t).has(t)},yt.prototype.set=function(t,e){var r=Ot(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,n),this},bt.prototype.has=function(t){return this.__data__.has(t)},xt.prototype.clear=function(){this.__data__=new vt,this.size=0},xt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},xt.prototype.get=function(t){return this.__data__.get(t)},xt.prototype.has=function(t){return this.__data__.has(t)},xt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!it||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new yt(n)}return r.set(t,e),this.size=r.size,this};var It=tt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,a=[];++r<n;){var o=t[r];e(o,r,t)&&(a[i++]=o)}return a}(tt(t),(function(e){return J.call(t,e)})))}:function(){return[]},Pt=kt;function Dt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||k.test(t))&&t>-1&&t%1==0&&t<e}function Rt(t){if(null!=t){try{return H.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function zt(t,e){return t===e||t!==t&&e!==e}(nt&&Pt(new nt(new ArrayBuffer(1)))!=_||it&&Pt(new it)!=f||at&&Pt(at.resolve())!=h||ot&&Pt(new ot)!=m||st&&Pt(new st)!=b)&&(Pt=function(t){var e=kt(t),r=e==d?t.constructor:void 0,n=r?Rt(r):"";if(n)switch(n){case ct:return _;case ut:return f;case ft:return h;case pt:return m;case dt:return b}return e});var Nt=Tt(function(){return arguments}())?Tt:function(t){return Ht(t)&&q.call(t,"callee")&&!J.call(t,"callee")},Ft=Array.isArray;var Bt=et||function(){return!1};function jt(t){if(!Vt(t))return!1;var e=kt(t);return e==u||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ut(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Vt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ht(t){return null!=t&&"object"==typeof t}var qt=P?function(t){return function(e){return t(e)}}(P):function(t){return Ht(t)&&Ut(t.length)&&!!T[kt(t)]};function Gt(t){return null!=(e=t)&&Ut(e.length)&&!jt(e)?_t(t):St(t);var e}t.exports=function(t,e){return Mt(t,e)}},7357:function(t,e,r){var n="__lodash_hash_undefined__",i=9007199254740991,a="[object Symbol]",o=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();function f(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function p(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!==e)return function(t,e,r,n){var i=t.length,a=r+(n?1:-1);for(;n?a--:++a<i;)if(e(t[a],a,t))return a;return-1}(t,m,r);var n=r-1,i=t.length;for(;++n<i;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function d(t,e,r){for(var n=-1,i=t?t.length:0;++n<i;)if(r(e,t[n]))return!0;return!1}function h(t,e){for(var r=-1,n=t?t.length:0,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function g(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function m(t){return t!==t}function v(t,e){return t.has(e)}function y(t,e){return function(r){return t(e(r))}}var b=Array.prototype,x=Function.prototype,_=Object.prototype,w=u["__core-js_shared__"],k=function(){var t=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),T=x.toString,M=_.hasOwnProperty,A=_.toString,S=RegExp("^"+T.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=u.Symbol,C=y(Object.getPrototypeOf,Object),O=_.propertyIsEnumerable,L=b.splice,I=E?E.isConcatSpreadable:void 0,P=Object.getOwnPropertySymbols,D=Math.max,R=X(u,"Map"),z=X(Object,"create");function N(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function B(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function j(t){var e=-1,r=t?t.length:0;for(this.__data__=new B;++e<r;)this.add(t[e])}function U(t,e){var r=et(t)||tt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,i=!!n;for(var a in t)!e&&!M.call(t,a)||i&&("length"==a||$(a,n))||r.push(a);return r}function V(t,e){for(var r,n,i=t.length;i--;)if((r=t[i][0])===(n=e)||r!==r&&n!==n)return i;return-1}function H(t,e,r,n,i){var a=-1,o=t.length;for(r||(r=J),i||(i=[]);++a<o;){var s=t[a];e>0&&r(s)?e>1?H(s,e-1,r,n,i):g(i,s):n||(i[i.length]=s)}return i}function q(t){if(!it(t)||(e=t,k&&k in e))return!1;var e,r=nt(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}(t)?S:o;return r.test(function(t){if(null!=t){try{return T.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t))}function G(t){if(!it(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=function(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||_;return t===r}(t),r=[];for(var n in t)("constructor"!=n||!e&&M.call(t,n))&&r.push(n);return r}function W(t){return function(t,e,r){var n=e(t);return et(t)?n:g(n,r(t))}(t,ot,K)}function Y(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function X(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return q(r)?r:void 0}N.prototype.clear=function(){this.__data__=z?z(null):{}},N.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},N.prototype.get=function(t){var e=this.__data__;if(z){var r=e[t];return r===n?void 0:r}return M.call(e,t)?e[t]:void 0},N.prototype.has=function(t){var e=this.__data__;return z?void 0!==e[t]:M.call(e,t)},N.prototype.set=function(t,e){return this.__data__[t]=z&&void 0===e?n:e,this},F.prototype.clear=function(){this.__data__=[]},F.prototype.delete=function(t){var e=this.__data__,r=V(e,t);return!(r<0)&&(r==e.length-1?e.pop():L.call(e,r,1),!0)},F.prototype.get=function(t){var e=this.__data__,r=V(e,t);return r<0?void 0:e[r][1]},F.prototype.has=function(t){return V(this.__data__,t)>-1},F.prototype.set=function(t,e){var r=this.__data__,n=V(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(R||F),string:new N}},B.prototype.delete=function(t){return Y(this,t).delete(t)},B.prototype.get=function(t){return Y(this,t).get(t)},B.prototype.has=function(t){return Y(this,t).has(t)},B.prototype.set=function(t,e){return Y(this,t).set(t,e),this},j.prototype.add=j.prototype.push=function(t){return this.__data__.set(t,n),this},j.prototype.has=function(t){return this.__data__.has(t)};var Z=P?y(P,Object):ut,K=P?function(t){for(var e=[];t;)g(e,Z(t)),t=C(t);return e}:ut;function J(t){return et(t)||tt(t)||!!(I&&t&&t[I])}function $(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||s.test(t))&&t>-1&&t%1==0&&t<e}function Q(t){if("string"==typeof t||function(t){return"symbol"==typeof t||at(t)&&A.call(t)==a}(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function tt(t){return function(t){return at(t)&&rt(t)}(t)&&M.call(t,"callee")&&(!O.call(t,"callee")||"[object Arguments]"==A.call(t))}var et=Array.isArray;function rt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!nt(t)}function nt(t){var e=it(t)?A.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function it(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function at(t){return!!t&&"object"==typeof t}function ot(t){return rt(t)?U(t,!0):G(t)}var st,lt,ct=(st=function(t,e){return null==t?{}:(e=h(H(e,1),Q),function(t,e){return function(t,e,r){for(var n=-1,i=e.length,a={};++n<i;){var o=e[n],s=t[o];r(s,o)&&(a[o]=s)}return a}(t=Object(t),e,(function(e,r){return r in t}))}(t,function(t,e,r,n){var i,a=-1,o=p,s=!0,l=t.length,c=[],u=e.length;if(!l)return c;r&&(e=h(e,(i=r,function(t){return i(t)}))),n?(o=d,s=!1):e.length>=200&&(o=v,s=!1,e=new j(e));t:for(;++a<l;){var f=t[a],g=r?r(f):f;if(f=n||0!==f?f:0,s&&g===g){for(var m=u;m--;)if(e[m]===g)continue t;c.push(f)}else o(e,g,n)||c.push(f)}return c}(W(t),e)))},lt=D(void 0===lt?st.length-1:lt,0),function(){for(var t=arguments,e=-1,r=D(t.length-lt,0),n=Array(r);++e<r;)n[e]=t[lt+e];e=-1;for(var i=Array(lt+1);++e<lt;)i[e]=t[e];return i[lt]=n,f(st,this,i)});function ut(){return[]}t.exports=ct},6151:function(t,e,r){var n=r(2878);t.exports=d,t.exports.parse=a,t.exports.compile=function(t,e){return s(a(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(t,e){for(var r,n=[],a=0,o=0,s="",u=e&&e.delimiter||"/";null!=(r=i.exec(t));){var f=r[0],p=r[1],d=r.index;if(s+=t.slice(o,d),o=d+f.length,p)s+=p[1];else{var h=t[o],g=r[2],m=r[3],v=r[4],y=r[5],b=r[6],x=r[7];s&&(n.push(s),s="");var _=null!=g&&null!=h&&h!==g,w="+"===b||"*"===b,k="?"===b||"*"===b,T=r[2]||u,M=v||y;n.push({name:m||a++,prefix:g||"",delimiter:T,optional:k,repeat:w,partial:_,asterisk:!!x,pattern:M?c(M):x?".*":"[^"+l(T)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&n.push(s),n}function o(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function s(t,e){for(var r=new Array(t.length),i=0;i<t.length;i++)"object"===typeof t[i]&&(r[i]=new RegExp("^(?:"+t[i].pattern+")$",f(e)));return function(e,i){for(var a="",s=e||{},l=(i||{}).pretty?o:encodeURIComponent,c=0;c<t.length;c++){var u=t[c];if("string"!==typeof u){var f,p=s[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(n(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=l(p[d]),!r[c].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===d?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):l(p),!r[c].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');a+=u.prefix+f}}else a+=u}return a}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function u(t,e){return t.keys=e,t}function f(t){return t&&t.sensitive?"":"i"}function p(t,e,r){n(e)||(r=e||r,e=[]);for(var i=(r=r||{}).strict,a=!1!==r.end,o="",s=0;s<t.length;s++){var c=t[s];if("string"===typeof c)o+=l(c);else{var p=l(c.prefix),d="(?:"+c.pattern+")";e.push(c),c.repeat&&(d+="(?:"+p+d+")*"),o+=d=c.optional?c.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}var h=l(r.delimiter||"/"),g=o.slice(-h.length)===h;return i||(o=(g?o.slice(0,-h.length):o)+"(?:"+h+"(?=$))?"),o+=a?"$":i&&g?"":"(?="+h+"|$)",u(new RegExp("^"+o,f(r)),e)}function d(t,e,r){return n(e)||(r=e||r,e=[]),r=r||{},t instanceof RegExp?function(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(t,e)}(t,e):n(t)?function(t,e,r){for(var n=[],i=0;i<t.length;i++)n.push(d(t[i],e,r).source);return u(new RegExp("(?:"+n.join("|")+")",f(r)),e)}(t,e,r):function(t,e,r){return p(a(t,r),e,r)}(t,e,r)}},2878:function(t){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},5771:function(t,e,r){t.exports=function(){var t;return function(){function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[o]={exports:{}};e[o][0].call(c.exports,(function(t){return i(e[o][1][t]||t)}),c,c.exports,t,e,r,n)}return r[o].exports}for(var a=void 0,o=0;o<n.length;o++)i(n[o]);return i}return t}()({1:[function(t,e,r){"use strict";var n=t("../src/lib"),i={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var a in i){var o=a.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,i[a])}},{"../src/lib":515}],2:[function(t,e,r){"use strict";e.exports=t("../src/transforms/aggregate")},{"../src/transforms/aggregate":1127}],3:[function(t,e,r){"use strict";e.exports=t("../src/traces/bar")},{"../src/traces/bar":665}],4:[function(t,e,r){"use strict";e.exports=t("../src/traces/barpolar")},{"../src/traces/barpolar":678}],5:[function(t,e,r){"use strict";e.exports=t("../src/traces/box")},{"../src/traces/box":688}],6:[function(t,e,r){"use strict";e.exports=t("../src/components/calendars")},{"../src/components/calendars":365}],7:[function(t,e,r){"use strict";e.exports=t("../src/traces/candlestick")},{"../src/traces/candlestick":697}],8:[function(t,e,r){"use strict";e.exports=t("../src/traces/carpet")},{"../src/traces/carpet":716}],9:[function(t,e,r){"use strict";e.exports=t("../src/traces/choropleth")},{"../src/traces/choropleth":730}],10:[function(t,e,r){"use strict";e.exports=t("../src/traces/choroplethmapbox")},{"../src/traces/choroplethmapbox":737}],11:[function(t,e,r){"use strict";e.exports=t("../src/traces/cone")},{"../src/traces/cone":743}],12:[function(t,e,r){"use strict";e.exports=t("../src/traces/contour")},{"../src/traces/contour":758}],13:[function(t,e,r){"use strict";e.exports=t("../src/traces/contourcarpet")},{"../src/traces/contourcarpet":769}],14:[function(t,e,r){"use strict";e.exports=t("../src/core")},{"../src/core":493}],15:[function(t,e,r){"use strict";e.exports=t("../src/traces/densitymapbox")},{"../src/traces/densitymapbox":777}],16:[function(t,e,r){"use strict";e.exports=t("../src/transforms/filter")},{"../src/transforms/filter":1128}],17:[function(t,e,r){"use strict";e.exports=t("../src/traces/funnel")},{"../src/traces/funnel":787}],18:[function(t,e,r){"use strict";e.exports=t("../src/traces/funnelarea")},{"../src/traces/funnelarea":796}],19:[function(t,e,r){"use strict";e.exports=t("../src/transforms/groupby")},{"../src/transforms/groupby":1129}],20:[function(t,e,r){"use strict";e.exports=t("../src/traces/heatmap")},{"../src/traces/heatmap":809}],21:[function(t,e,r){"use strict";e.exports=t("../src/traces/heatmapgl")},{"../src/traces/heatmapgl":820}],22:[function(t,e,r){"use strict";e.exports=t("../src/traces/histogram")},{"../src/traces/histogram":832}],23:[function(t,e,r){"use strict";e.exports=t("../src/traces/histogram2d")},{"../src/traces/histogram2d":838}],24:[function(t,e,r){"use strict";e.exports=t("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":842}],25:[function(t,e,r){"use strict";e.exports=t("../src/traces/icicle")},{"../src/traces/icicle":848}],26:[function(t,e,r){"use strict";e.exports=t("../src/traces/image")},{"../src/traces/image":861}],27:[function(t,e,r){"use strict";var n=t("./core");n.register([t("./bar"),t("./box"),t("./heatmap"),t("./histogram"),t("./histogram2d"),t("./histogram2dcontour"),t("./contour"),t("./scatterternary"),t("./violin"),t("./funnel"),t("./waterfall"),t("./image"),t("./pie"),t("./sunburst"),t("./treemap"),t("./icicle"),t("./funnelarea"),t("./scatter3d"),t("./surface"),t("./isosurface"),t("./volume"),t("./mesh3d"),t("./cone"),t("./streamtube"),t("./scattergeo"),t("./choropleth"),t("./scattergl"),t("./splom"),t("./pointcloud"),t("./heatmapgl"),t("./parcoords"),t("./parcats"),t("./scattermapbox"),t("./choroplethmapbox"),t("./densitymapbox"),t("./sankey"),t("./indicator"),t("./table"),t("./carpet"),t("./scattercarpet"),t("./contourcarpet"),t("./ohlc"),t("./candlestick"),t("./scatterpolar"),t("./scatterpolargl"),t("./barpolar"),t("./scattersmith"),t("./aggregate"),t("./filter"),t("./groupby"),t("./sort"),t("./calendars")]),e.exports=n},{"./aggregate":2,"./bar":3,"./barpolar":4,"./box":5,"./calendars":6,"./candlestick":7,"./carpet":8,"./choropleth":9,"./choroplethmapbox":10,"./cone":11,"./contour":12,"./contourcarpet":13,"./core":14,"./densitymapbox":15,"./filter":16,"./funnel":17,"./funnelarea":18,"./groupby":19,"./heatmap":20,"./heatmapgl":21,"./histogram":22,"./histogram2d":23,"./histogram2dcontour":24,"./icicle":25,"./image":26,"./indicator":28,"./isosurface":29,"./mesh3d":30,"./ohlc":31,"./parcats":32,"./parcoords":33,"./pie":34,"./pointcloud":35,"./sankey":36,"./scatter3d":37,"./scattercarpet":38,"./scattergeo":39,"./scattergl":40,"./scattermapbox":41,"./scatterpolar":42,"./scatterpolargl":43,"./scattersmith":44,"./scatterternary":45,"./sort":46,"./splom":47,"./streamtube":48,"./sunburst":49,"./surface":50,"./table":51,"./treemap":52,"./violin":53,"./volume":54,"./waterfall":55}],28:[function(t,e,r){"use strict";e.exports=t("../src/traces/indicator")},{"../src/traces/indicator":869}],29:[function(t,e,r){"use strict";e.exports=t("../src/traces/isosurface")},{"../src/traces/isosurface":875}],30:[function(t,e,r){"use strict";e.exports=t("../src/traces/mesh3d")},{"../src/traces/mesh3d":880}],31:[function(t,e,r){"use strict";e.exports=t("../src/traces/ohlc")},{"../src/traces/ohlc":885}],32:[function(t,e,r){"use strict";e.exports=t("../src/traces/parcats")},{"../src/traces/parcats":894}],33:[function(t,e,r){"use strict";e.exports=t("../src/traces/parcoords")},{"../src/traces/parcoords":905}],34:[function(t,e,r){"use strict";e.exports=t("../src/traces/pie")},{"../src/traces/pie":916}],35:[function(t,e,r){"use strict";e.exports=t("../src/traces/pointcloud")},{"../src/traces/pointcloud":925}],36:[function(t,e,r){"use strict";e.exports=t("../src/traces/sankey")},{"../src/traces/sankey":931}],37:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatter3d")},{"../src/traces/scatter3d":969}],38:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattercarpet")},{"../src/traces/scattercarpet":976}],39:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattergeo")},{"../src/traces/scattergeo":984}],40:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattergl")},{"../src/traces/scattergl":998}],41:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattermapbox")},{"../src/traces/scattermapbox":1008}],42:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatterpolar")},{"../src/traces/scatterpolar":1016}],43:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatterpolargl")},{"../src/traces/scatterpolargl":1024}],44:[function(t,e,r){"use strict";e.exports=t("../src/traces/scattersmith")},{"../src/traces/scattersmith":1031}],45:[function(t,e,r){"use strict";e.exports=t("../src/traces/scatterternary")},{"../src/traces/scatterternary":1039}],46:[function(t,e,r){"use strict";e.exports=t("../src/transforms/sort")},{"../src/transforms/sort":1131}],47:[function(t,e,r){"use strict";e.exports=t("../src/traces/splom")},{"../src/traces/splom":1049}],48:[function(t,e,r){"use strict";e.exports=t("../src/traces/streamtube")},{"../src/traces/streamtube":1057}],49:[function(t,e,r){"use strict";e.exports=t("../src/traces/sunburst")},{"../src/traces/sunburst":1065}],50:[function(t,e,r){"use strict";e.exports=t("../src/traces/surface")},{"../src/traces/surface":1074}],51:[function(t,e,r){"use strict";e.exports=t("../src/traces/table")},{"../src/traces/table":1082}],52:[function(t,e,r){"use strict";e.exports=t("../src/traces/treemap")},{"../src/traces/treemap":1093}],53:[function(t,e,r){"use strict";e.exports=t("../src/traces/violin")},{"../src/traces/violin":1106}],54:[function(t,e,r){"use strict";e.exports=t("../src/traces/volume")},{"../src/traces/volume":1114}],55:[function(t,e,r){"use strict";e.exports=t("../src/traces/waterfall")},{"../src/traces/waterfall":1122}],56:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-array"),e("d3-collection"),e("d3-shape"),e("elementary-circuits-directed-graph")):"function"===typeof t&&t.amd?t(["exports","d3-array","d3-collection","d3-shape","elementary-circuits-directed-graph"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3,null)}(this,(function(t,e,r,n,i){"use strict";function a(t){return t.target.depth}function o(t){return t.depth}function s(t,e){return e-1-t.height}function l(t,e){return t.sourceLinks.length?t.depth:e-1}function c(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0}function u(t){return function(){return t}}i=i&&i.hasOwnProperty("default")?i.default:i;var f="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 p(t,e){return h(t.source,e.source)||t.index-e.index}function d(t,e){return h(t.target,e.target)||t.index-e.index}function h(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:"top"===t.circularLinkType||"bottom"===e.circularLinkType?-1:1}function g(t){return t.value}function m(t){return(t.y0+t.y1)/2}function v(t){return m(t.source)}function y(t){return m(t.target)}function b(t){return t.index}function x(t){return t.nodes}function _(t){return t.links}function w(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function k(t,e){return e(t)}var T=25,M=10,A=.3;function S(){var t,n,i=0,a=0,o=1,s=1,c=24,k=b,S=l,O=x,L=_,P=32,D=2,z=null;function N(){var t={nodes:O.apply(null,arguments),links:L.apply(null,arguments)};F(t),E(t,k,z),B(t),V(t),C(t,k),H(t,P,k),q(t);for(var e=4,r=0;r<e;r++)Z(t,s,k),K(t,s,k),W(t,a,s,k),Z(t,s,k),K(t,s,k);return tt(t,a,s),R(t,D,s,k),t}function F(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,k);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;"object"!==("undefined"===typeof n?"undefined":f(n))&&(n=t.source=w(e,n)),"object"!==("undefined"===typeof i?"undefined":f(i))&&(i=t.target=w(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function B(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,g),e.sum(t.targetLinks,g)),t.sourceLinks.forEach((function(e){e.circular&&(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&&(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function j(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&&("top"==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&&(a+=t.width),t.source.column==o&&(i+=t.width))})),{top:r=r>0?r+T+M:r,bottom:n=n>0?n+T+M:n,left:a=a>0?a+T+M:a,right:i=i>0?i+T+M:i}}function U(t,r){var n=e.max(t.nodes,(function(t){return t.column})),l=o-i,u=s-a,f=l/(l+r.right+r.left),p=u/(u+r.top+r.bottom);return i=i*f+r.left,o=0==r.right?o:o*f,a=a*p+r.top,s*=p,t.nodes.forEach((function(t){t.x0=i+t.column*((o-i-c)/n),t.x1=t.x0+c})),p}function V(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)<0&&!t.circular&&r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)<0&&!t.circular&&r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(S.call(null,t,n))}))}function H(i,o,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(i.nodes).map((function(t){return t.values}));p(l),b();for(var u=1,f=o;f>0;--f)d(u*=.99,l),b();function p(r){if(n){var o=1/0;c.forEach((function(t){var e=s*n/(t.length+1);o=e<o?e:o})),t=o}var l=e.min(c,(function(r){return(s-a-(r.length-1)*t)/e.sum(r,g)}));l*=A,i.links.forEach((function(t){t.width=t.value*l}));var u=j(i),f=U(i,u);l*=f,i.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&&1==e||0==t.depth&&1==e?(t.y0=s/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==I(t,r)?(t.y0=s/2+n,t.y1=t.y0+t.value*l):"top"==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=s-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(s-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(s-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}function d(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var l;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&&I(i,r)>0);else if(0==o&&1==a)l=i.y1-i.y0,i.y0=s/2-l/2,i.y1=s/2+l/2;else if(o==n-1&&1==a)l=i.y1-i.y0,i.y0=s/2-l/2,i.y1=s/2+l/2;else{var c=e.mean(i.sourceLinks,y),u=e.mean(i.targetLinks,v),f=((c&&u?(c+u)/2:c||u)-m(i))*t;i.y0+=f,i.y1+=f}}))}))}function b(){c.forEach((function(e){var r,n,i,o=a,l=e.length;for(e.sort(h),i=0;i<l;++i)(n=o-(r=e[i]).y0)>0&&(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-s)>0)for(o=r.y0-=n,r.y1-=n,i=l-2;i>=0;--i)(n=(r=e[i]).y1+t-o)>0&&(r.y0-=n,r.y1-=n),o=r.y0}))}}function q(t){t.nodes.forEach((function(t){t.sourceLinks.sort(d),t.targetLinks.sort(p)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return N.nodeId=function(t){return arguments.length?(k="function"===typeof t?t:u(t),N):k},N.nodeAlign=function(t){return arguments.length?(S="function"===typeof t?t:u(t),N):S},N.nodeWidth=function(t){return arguments.length?(c=+t,N):c},N.nodePadding=function(e){return arguments.length?(t=+e,N):t},N.nodes=function(t){return arguments.length?(O="function"===typeof t?t:u(t),N):O},N.links=function(t){return arguments.length?(L="function"===typeof t?t:u(t),N):L},N.size=function(t){return arguments.length?(i=a=0,o=+t[0],s=+t[1],N):[o-i,s-a]},N.extent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],a=+t[0][1],s=+t[1][1],N):[[i,a],[o,s]]},N.iterations=function(t){return arguments.length?(P=+t,N):P},N.circularLinkGap=function(t){return arguments.length?(D=+t,N):D},N.nodePaddingRatio=function(t){return arguments.length?(n=+t,N):n},N.sortNodes=function(t){return arguments.length?(z=t,N):z},N.update=function(t){return C(t,k),q(t),t.links.forEach((function(t){t.circular&&(t.circularLinkType=t.y0+t.y1<s?"top":"bottom",t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),Z(t,s,k,!1),K(t,s,k),R(t,D,s,k),t},N}function E(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o<t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&&a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o<u.length;o++){var p=u[o].slice(-2);f[p[0]]||(f[p[0]]={}),f[p[0]][p[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&&f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]<t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function C(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&&(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r<n?"top":"bottom","top"==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){k(t,e)!=k(i.source,e)&&k(t,e)!=k(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&&(t.source.circularLinkType==t.target.circularLinkType&&(t.circularLinkType=t.source.circularLinkType),Q(t,e)&&(t.circularLinkType=t.source.circularLinkType))}))}function O(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function L(t,e){return!(t.source.column<e.target.column)&&!(t.target.column>e.source.column)}function I(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&&!Q(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&&!Q(t,e)?n+1:n})),r+n}function P(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r>1||i>1)}function D(t,e,r){return t.sort(N),t.forEach((function(n,i){var a=0;if(Q(n,r)&&P(n))n.circularPathData.verticalBuffer=a+n.width/2;else{for(var o=0;o<i;o++)if(L(t[i],t[o])){var s=t[o].circularPathData.verticalBuffer+t[o].width/2+e;a=s>a?s:a}n.circularPathData.verticalBuffer=a+n.width/2}})),t}function R(t,r,i,a){var o=5,s=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&&(t.circularPathData={})})),D(t.links.filter((function(t){return"top"==t.circularLinkType})),r,a),D(t.links.filter((function(t){return"bottom"==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+M,e.circularPathData.leftNodeBuffer=o,e.circularPathData.rightNodeBuffer=o,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,Q(e,a)&&P(e))e.circularPathData.leftSmallArcRadius=M+e.width/2,e.circularPathData.leftLargeArcRadius=M+e.width/2,e.circularPathData.rightSmallArcRadius=M+e.width/2,e.circularPathData.rightLargeArcRadius=M+e.width/2,"bottom"==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+T+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-T-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var l=e.source.column,c=e.circularLinkType,u=t.links.filter((function(t){return t.source.column==l&&t.circularLinkType==c}));"bottom"==e.circularLinkType?u.sort(B):u.sort(F);var f=0;u.forEach((function(t,n){t.circularLinkID==e.circularLinkID&&(e.circularPathData.leftSmallArcRadius=M+e.width/2+f,e.circularPathData.leftLargeArcRadius=M+e.width/2+n*r+f),f+=t.width})),l=e.target.column,u=t.links.filter((function(t){return t.target.column==l&&t.circularLinkType==c})),"bottom"==e.circularLinkType?u.sort(U):u.sort(j),f=0,u.forEach((function(t,n){t.circularLinkID==e.circularLinkID&&(e.circularPathData.rightSmallArcRadius=M+e.width/2+f,e.circularPathData.rightLargeArcRadius=M+e.width/2+n*r+f),f+=t.width})),"bottom"==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+T+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=s-T-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=z(e);else{var p=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=p(e)}}))}function z(t){return"top"==t.circularLinkType?"M"+t.circularPathData.sourceX+" "+t.circularPathData.sourceY+" L"+t.circularPathData.leftInnerExtent+" "+t.circularPathData.sourceY+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftSmallArcRadius+" 0 0 0 "+t.circularPathData.leftFullExtent+" "+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+" L"+t.circularPathData.leftFullExtent+" "+t.circularPathData.verticalLeftInnerExtent+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftLargeArcRadius+" 0 0 0 "+t.circularPathData.leftInnerExtent+" "+t.circularPathData.verticalFullExtent+" L"+t.circularPathData.rightInnerExtent+" "+t.circularPathData.verticalFullExtent+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightLargeArcRadius+" 0 0 0 "+t.circularPathData.rightFullExtent+" "+t.circularPathData.verticalRightInnerExtent+" L"+t.circularPathData.rightFullExtent+" "+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightSmallArcRadius+" 0 0 0 "+t.circularPathData.rightInnerExtent+" "+t.circularPathData.targetY+" L"+t.circularPathData.targetX+" "+t.circularPathData.targetY:"M"+t.circularPathData.sourceX+" "+t.circularPathData.sourceY+" L"+t.circularPathData.leftInnerExtent+" "+t.circularPathData.sourceY+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftSmallArcRadius+" 0 0 1 "+t.circularPathData.leftFullExtent+" "+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+" L"+t.circularPathData.leftFullExtent+" "+t.circularPathData.verticalLeftInnerExtent+" A"+t.circularPathData.leftLargeArcRadius+" "+t.circularPathData.leftLargeArcRadius+" 0 0 1 "+t.circularPathData.leftInnerExtent+" "+t.circularPathData.verticalFullExtent+" L"+t.circularPathData.rightInnerExtent+" "+t.circularPathData.verticalFullExtent+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightLargeArcRadius+" 0 0 1 "+t.circularPathData.rightFullExtent+" "+t.circularPathData.verticalRightInnerExtent+" L"+t.circularPathData.rightFullExtent+" "+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+" A"+t.circularPathData.rightLargeArcRadius+" "+t.circularPathData.rightSmallArcRadius+" 0 0 1 "+t.circularPathData.rightInnerExtent+" "+t.circularPathData.targetY+" L"+t.circularPathData.targetX+" "+t.circularPathData.targetY}function N(t,e){return V(t)==V(e)?"bottom"==t.circularLinkType?B(t,e):F(t,e):V(e)-V(t)}function F(t,e){return t.y0-e.y0}function B(t,e){return e.y0-t.y0}function j(t,e){return t.y1-e.y1}function U(t,e){return e.y1-t.y1}function V(t){return t.target.column-t.source.column}function H(t){return t.target.x0-t.source.x1}function q(t,e){var r=O(t),n=H(e)/Math.tan(r);return"up"==$(t)?t.y1+n:t.y1-n}function G(t,e){var r=O(t),n=H(e)/Math.tan(r);return"up"==$(t)?t.y1-n:t.y1+n}function W(t,e,r,n){t.links.forEach((function(i){if(!i.circular&&i.target.column-i.source.column>1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a<=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),p=3*u*Math.pow(1-u,2),d=3*Math.pow(u,2)*(1-u),h=Math.pow(u,3),g=f*i.y0+p*i.y0+d*i.y1+h*i.y1,m=g-i.width/2,v=g+i.width/2;m>o.y0&&m<o.y1?(c=o.y1-m+10,c="bottom"==o.circularLinkType?c:-c,o=X(o,c,e,r),t.nodes.forEach((function(t){k(t,n)!=k(o,n)&&t.column==o.column&&Y(o,t)&&X(t,c,e,r)}))):(v>o.y0&&v<o.y1||m<o.y0&&v>o.y1)&&(c=v-o.y0+10,o=X(o,c,e,r),t.nodes.forEach((function(t){k(t,n)!=k(o,n)&&t.column==o.column&&t.y0<o.y1&&t.y1>o.y1&&X(t,c,e,r)})))}}))}}))}function Y(t,e){return t.y0>e.y0&&t.y0<e.y1||t.y1>e.y0&&t.y1<e.y1||t.y0<e.y0&&t.y1>e.y1}function X(t,e,r,n){return t.y0+e>=r&&t.y1+e<=n&&(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function Z(t,e,r,n){t.nodes.forEach((function(i){n&&i.y+(i.y1-i.y0)>e&&(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return k(t.source,r)==k(i,r)})),o=a.length;o>1&&a.sort((function(t,e){if(!t.circular&&!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!J(t,e))return t.y1-e.y1;if(t.target.column>e.target.column){var r=G(e,t);return t.y1-r}if(e.target.column>t.target.column)return G(t,e)-e.y1}return t.circular&&!e.circular?"top"==t.circularLinkType?-1:1:e.circular&&!t.circular?"top"==e.circularLinkType?1:-1:t.circular&&e.circular?t.circularLinkType===e.circularLinkType&&"top"==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&&"bottom"==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:"top"==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if("bottom"==t.circularLinkType){for(var r=e+1,n=0;r<o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function K(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return k(t.target,r)==k(e,r)})),i=n.length;i>1&&n.sort((function(t,e){if(!t.circular&&!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!J(t,e))return t.y0-e.y0;if(e.source.column<t.source.column){var r=q(e,t);return t.y0-r}if(t.source.column<e.source.column)return q(t,e)-e.y0}return t.circular&&!e.circular?"top"==t.circularLinkType?-1:1:e.circular&&!t.circular?"top"==e.circularLinkType?1:-1:t.circular&&e.circular?t.circularLinkType===e.circularLinkType&&"top"==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&&"bottom"==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:"top"==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if("bottom"==t.circularLinkType){for(var a=r+1,o=0;a<i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function J(t,e){return $(t)==$(e)}function $(t){return t.y0-t.y1>0?"up":"down"}function Q(t,e){return k(t.source,e)==k(t.target,e)}function tt(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){"top"==t.circularLinkType?o=!0:"bottom"==t.circularLinkType&&(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=S,t.sankeyCenter=c,t.sankeyLeft=o,t.sankeyRight=s,t.sankeyJustify=l,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":107,"d3-collection":108,"d3-shape":119,"elementary-circuits-directed-graph":130}],57:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-array"),e("d3-collection"),e("d3-shape")):"function"===typeof t&&t.amd?t(["exports","d3-array","d3-collection","d3-shape"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3)}(this,(function(t,e,r,n){"use strict";function i(t){return t.target.depth}function a(t){return t.depth}function o(t,e){return e-1-t.height}function s(t,e){return t.sourceLinks.length?t.depth:e-1}function l(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0}function c(t){return function(){return t}}function u(t,e){return p(t.source,e.source)||t.index-e.index}function f(t,e){return p(t.target,e.target)||t.index-e.index}function p(t,e){return t.y0-e.y0}function d(t){return t.value}function h(t){return(t.y0+t.y1)/2}function g(t){return h(t.source)*t.value}function m(t){return h(t.target)*t.value}function v(t){return t.index}function y(t){return t.nodes}function b(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}var _=function(){var t=0,n=0,i=1,a=1,o=24,l=8,_=v,w=s,k=y,T=b,M=32,A=2/3;function S(){var t={nodes:k.apply(null,arguments),links:T.apply(null,arguments)};return E(t),C(t),O(t),L(t,M),I(t),t}function E(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;"object"!==typeof n&&(n=t.source=x(e,n)),"object"!==typeof i&&(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function C(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,d),e.sum(t.targetLinks,d))}))}function O(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)<0&&n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)<0&&n.push(t.source)}))}));var s=(i-t-o)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*s)+o}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));c(),v();for(var o=1,s=M;s>0;--s)f(o*=.99),v(),u(o),v();function c(){var r=e.max(i,(function(t){return t.length})),o=A*(a-n)/(r-1);l>o&&(l=o);var s=e.min(i,(function(t){return(a-n-(t.length-1)*l)/e.sum(t,d)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*s}))})),t.links.forEach((function(t){t.width=t.value*s}))}function u(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,g)/e.sum(r.targetLinks,d)-h(r))*t;r.y0+=n,r.y1+=n}}))}))}function f(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,m)/e.sum(r.sourceLinks,d)-h(r))*t;r.y0+=n,r.y1+=n}}))}))}function v(){i.forEach((function(t){var e,r,i,o=n,s=t.length;for(t.sort(p),i=0;i<s;++i)(r=o-(e=t[i]).y0)>0&&(e.y0+=r,e.y1+=r),o=e.y1+l;if((r=o-l-a)>0)for(o=e.y0-=r,e.y1-=r,i=s-2;i>=0;--i)(r=(e=t[i]).y1+l-o)>0&&(e.y0-=r,e.y1-=r),o=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(f),t.targetLinks.sort(u)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return S.update=function(t){return I(t),t},S.nodeId=function(t){return arguments.length?(_="function"===typeof t?t:c(t),S):_},S.nodeAlign=function(t){return arguments.length?(w="function"===typeof t?t:c(t),S):w},S.nodeWidth=function(t){return arguments.length?(o=+t,S):o},S.nodePadding=function(t){return arguments.length?(l=+t,S):l},S.nodes=function(t){return arguments.length?(k="function"===typeof t?t:c(t),S):k},S.links=function(t){return arguments.length?(T="function"===typeof t?t:c(t),S):T},S.size=function(e){return arguments.length?(t=n=0,i=+e[0],a=+e[1],S):[i-t,a-n]},S.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],a=+e[1][1],S):[[t,n],[i,a]]},S.iterations=function(t){return arguments.length?(M=+t,S):M},S};function w(t){return[t.source.x1,t.y0]}function k(t){return[t.target.x0,t.y1]}var T=function(){return n.linkHorizontal().source(w).target(k)};t.sankey=_,t.sankeyCenter=l,t.sankeyLeft=a,t.sankeyRight=o,t.sankeyJustify=s,t.sankeyLinkHorizontal=T,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":107,"d3-collection":108,"d3-shape":119}],58:[function(e,r,n){(function(){var e={version:"3.8.0"},n=[].slice,i=function(t){return n.call(t)},a=self.document;function o(t){return t&&(t.ownerDocument||t.document||t).documentElement}function s(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(a)try{i(a.documentElement.childNodes)[0].nodeType}catch(ro){i=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(no){var l=this.Element.prototype,c=l.setAttribute,u=l.setAttributeNS,f=this.CSSStyleDeclaration.prototype,p=f.setProperty;l.setAttribute=function(t,e){c.call(this,t,e+"")},l.setAttributeNS=function(t,e,r){u.call(this,t,e,r+"")},f.setProperty=function(t,e,r){p.call(this,t,e+"",r)}}function d(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function h(t){return null===t?NaN:+t}function g(t){return!isNaN(t)}function m(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}e.ascending=d,e.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},e.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&r>n&&(r=n)}return r},e.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&n>r&&(r=n)}return r},e.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=t[a])&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else{for(;++a<o;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=e.call(t,t[a],a))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},e.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)g(r=+t[a])&&(n+=r);else for(;++a<i;)g(r=+e.call(t,t[a],a))&&(n+=r);return n},e.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a<i;)g(r=h(t[a]))?n+=r:--o;else for(;++a<i;)g(r=h(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},e.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},e.median=function(t,r){var n,i=[],a=t.length,o=-1;if(1===arguments.length)for(;++o<a;)g(n=h(t[o]))&&i.push(n);else for(;++o<a;)g(n=h(r.call(t,t[o],o)))&&i.push(n);if(i.length)return e.quantile(i.sort(d),.5)},e.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s<i;)g(r=h(t[s]))&&(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s<i;)g(r=h(e.call(t,t[s],s)))&&(o+=(n=r-a)*(r-(a+=n/++l)));if(l>1)return o/(l-1)},e.deviation=function(){var t=e.variance.apply(this,arguments);return t?Math.sqrt(t):t};var v=m(d);function y(t){return t.length}e.bisectLeft=v.left,e.bisect=e.bisectRight=v.right,e.bisector=function(t){return m(1===t.length?function(e,r){return d(t(e),r)}:t)},e.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},e.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},e.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e<r;)i[e]=[n,n=t[++e]];return i},e.transpose=function(t){if(!(a=t.length))return[];for(var r=-1,n=e.min(t,y),i=new Array(n);++r<n;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=t[o][r];return i},e.zip=function(){return e.transpose(arguments)},e.keys=function(t){var e=[];for(var r in t)e.push(r);return e},e.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},e.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},e.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r};var b=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function _(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function w(){this._=Object.create(null)}e.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r===1/0)throw new Error("infinite range");var n,i=[],a=x(b(r)),o=-1;if(t*=a,e*=a,(r*=a)<0)for(;(n=t+r*++o)>e;)i.push(n/a);else for(;(n=t+r*++o)<e;)i.push(n/a);return i},e.map=function(t,e){var r=new w;if(t instanceof w)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)r.set(i,t[i]);else for(;++i<a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};var k="__proto__",T="\0";function M(t){return(t+="")===k||t[0]===T?T+t:t}function A(t){return(t+="")[0]===T?t.slice(1):t}function S(t){return M(t)in this._}function E(t){return(t=M(t))in this._&&delete this._[t]}function C(){var t=[];for(var e in this._)t.push(A(e));return t}function O(){var t=0;for(var e in this._)++t;return t}function L(){for(var t in this._)return!1;return!0}function I(){this._=Object.create(null)}function P(t){return t}function D(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function R(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r<n;++r){var i=z[r]+e;if(i in t)return i}}_(w,{has:S,get:function(t){return this._[M(t)]},set:function(t,e){return this._[M(t)]=e},remove:E,keys:C,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:A(e),value:this._[e]});return t},size:O,empty:L,forEach:function(t){for(var e in this._)t.call(this,A(e),this._[e])}}),e.nest=function(){var t,r,n={},i=[],a=[];function o(e,a,s){if(s>=i.length)return r?r.call(n,a):t?a.sort(t):a;for(var l,c,u,f,p=-1,d=a.length,h=i[s++],g=new w;++p<d;)(f=g.get(l=h(c=a[p])))?f.push(c):g.set(l,[c]);return e?(c=e(),u=function(t,r){c.set(t,o(e,r,s))}):(c={},u=function(t,r){c[t]=o(e,r,s)}),g.forEach(u),c}function s(t,e){if(e>=i.length)return t;var r=[],n=a[e++];return t.forEach((function(t,n){r.push({key:t,values:s(n,e)})})),n?r.sort((function(t,e){return n(t.key,e.key)})):r}return n.map=function(t,e){return o(e,t,0)},n.entries=function(t){return s(o(e.map,t,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return r=t,n},n},e.set=function(t){var e=new I;if(t)for(var r=0,n=t.length;r<n;++r)e.add(t[r]);return e},_(I,{has:S,add:function(t){return this._[M(t+="")]=!0,t},remove:E,values:C,size:O,empty:L,forEach:function(t){for(var e in this._)t.call(this,A(e))}}),e.behavior={},e.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n<i;)t[r=arguments[n]]=D(t,e,e[r]);return t};var z=["webkit","ms","moz","Moz","o","O"];function N(){}function F(){}function B(t){var e=[],r=new w;function n(){for(var r,n=e,i=-1,a=n.length;++i<a;)(r=n[i].on)&&r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function j(){e.event.preventDefault()}function U(){for(var t,r=e.event;t=r.sourceEvent;)r=t;return r}function V(t){for(var r=new F,n=0,i=arguments.length;++n<i;)r[arguments[n]]=B(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=e.event;a.target=t,e.event=a,r[a.type].apply(n,i)}finally{e.event=o}}},r}e.dispatch=function(){for(var t=new F,e=-1,r=arguments.length;++e<r;)t[arguments[e]]=B(t);return t},F.prototype.on=function(t,e){var r=t.indexOf("."),n="";if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},e.event=null,e.requote=function(t){return t.replace(H,"\\$&")};var H=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function G(t){return q(t,Z),t}var W=function(t,e){return e.querySelector(t)},Y=function(t,e){return e.querySelectorAll(t)},X=function(t,e){var r=t.matches||t[R(t,"matchesSelector")];return X=function(t,e){return r.call(t,e)},X(t,e)};"function"===typeof Sizzle&&(W=function(t,e){return Sizzle(t,e)[0]||null},Y=Sizzle,X=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Z=e.selection.prototype=[];function K(t){return"function"===typeof t?t:function(){return W(t,this)}}function J(t){return"function"===typeof t?t:function(){return Y(t,this)}}Z.select=function(t){var e,r,n,i,a=[];t=K(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l<c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&&"__data__"in i&&(r.__data__=i.__data__)):e.push(null)}return G(a)},Z.selectAll=function(t){var e,r,n=[];t=J(t);for(var a=-1,o=this.length;++a<o;)for(var s=this[a],l=-1,c=s.length;++l<c;)(r=s[l])&&(n.push(e=i(t.call(r,r.__data__,l,a))),e.parentNode=r);return G(n)};var $="http://www.w3.org/1999/xhtml",Q={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function tt(t,r){function n(){this.removeAttribute(t)}function i(){this.removeAttributeNS(t.space,t.local)}function a(){this.setAttribute(t,r)}function o(){this.setAttributeNS(t.space,t.local,r)}function s(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function l(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=e.ns.qualify(t),null==r?t.local?i:n:"function"===typeof r?t.local?l:s:t.local?o:a}function et(t){return t.trim().replace(/\s+/g," ")}function rt(t){return new RegExp("(?:^|\\s+)"+e.requote(t)+"(?:\\s+|$)","g")}function nt(t){return(t+"").trim().split(/^|\s+/)}function it(t,e){var r=(t=nt(t).map(at)).length;function n(){for(var n=-1;++n<r;)t[n](this,e)}function i(){for(var n=-1,i=e.apply(this,arguments);++n<r;)t[n](this,i)}return"function"===typeof e?i:n}function at(t){var e=rt(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute("class")||"";n?(e.lastIndex=0,e.test(i)||r.setAttribute("class",et(i+" "+t))):r.setAttribute("class",et(i.replace(e," ")))}}function ot(t,e,r){function n(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,r)}function a(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}return null==e?n:"function"===typeof e?a:i}function st(t,e){function r(){delete this[t]}function n(){this[t]=e}function i(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}return null==e?r:"function"===typeof e?i:n}function lt(t){function r(){var e=this.ownerDocument,r=this.namespaceURI;return r===$&&e.documentElement.namespaceURI===$?e.createElement(t):e.createElementNS(r,t)}function n(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"===typeof t?t:(t=e.ns.qualify(t)).local?n:r}function ct(){var t=this.parentNode;t&&t.removeChild(this)}function ut(t){return{__data__:t}}function ft(t){return function(){return X(this,t)}}function pt(t){return arguments.length||(t=d),function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}function dt(t,e){for(var r=0,n=t.length;r<n;r++)for(var i,a=t[r],o=0,s=a.length;o<s;o++)(i=a[o])&&e(i,o,r);return t}function ht(t){return q(t,gt),t}e.ns={prefix:Q,qualify:function(t){var e=t.indexOf(":"),r=t;return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),Q.hasOwnProperty(r)?{space:Q[r],local:t}:t}},Z.attr=function(t,r){if(arguments.length<2){if("string"===typeof t){var n=this.node();return(t=e.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(r in t)this.each(tt(r,t[r]));return this}return this.each(tt(t,r))},Z.classed=function(t,e){if(arguments.length<2){if("string"===typeof t){var r=this.node(),n=(t=nt(t)).length,i=-1;if(e=r.classList){for(;++i<n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute("class");++i<n;)if(!rt(t[i]).test(e))return!1;return!0}for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Z.style=function(t,e,r){var n=arguments.length;if(n<3){if("string"!==typeof t){for(r in n<2&&(e=""),t)this.each(ot(r,t[r],e));return this}if(n<2){var i=this.node();return s(i).getComputedStyle(i,null).getPropertyValue(t)}r=""}return this.each(ot(t,e,r))},Z.property=function(t,e){if(arguments.length<2){if("string"===typeof t)return this.node()[t];for(e in t)this.each(st(e,t[e]));return this}return this.each(st(t,e))},Z.text=function(t){return arguments.length?this.each("function"===typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},Z.html=function(t){return arguments.length?this.each("function"===typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},Z.append=function(t){return t=lt(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Z.insert=function(t,e){return t=lt(t),e=K(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Z.remove=function(){return this.each(ct)},Z.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i<a;)(n=r[i])&&(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),p=new Array(u),d=new Array(u),h=new Array(o);if(e){var g,m=new w,v=new Array(o);for(n=-1;++n<o;)(i=t[n])&&(m.has(g=e.call(i,i.__data__,n))?h[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n<u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&&(p[n]=i,i.__data__=a):d[n]=ut(a),m.set(g,!0);for(n=-1;++n<o;)n in v&&!0!==m.get(v[n])&&(h[n]=t[n])}else{for(n=-1;++n<f;)i=t[n],a=r[n],i?(i.__data__=a,p[n]=i):d[n]=ut(a);for(;n<u;++n)d[n]=ut(r[n]);for(;n<o;++n)h[n]=t[n]}d.update=p,d.parentNode=p.parentNode=h.parentNode=t.parentNode,s.push(d),l.push(p),c.push(h)}var s=ht([]),l=G([]),c=G([]);if("function"===typeof t)for(;++i<a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i<a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Z.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},Z.filter=function(t){var e,r,n,i=[];"function"!==typeof t&&(t=ft(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return G(i)},Z.order=function(){for(var t=-1,e=this.length;++t<e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i>=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Z.sort=function(t){t=pt.apply(this,arguments);for(var e=-1,r=this.length;++e<r;)this[e].sort(t);return this.order()},Z.each=function(t){return dt(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Z.call=function(t){var e=i(arguments);return t.apply(e[0]=this,e),this},Z.empty=function(){return!this.node()},Z.node=function(){for(var t=0,e=this.length;t<e;t++)for(var r=this[t],n=0,i=r.length;n<i;n++){var a=r[n];if(a)return a}return null},Z.size=function(){var t=0;return dt(this,(function(){++t})),t};var gt=[];function mt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&&(r=a,e=0),i>=e&&(e=i+1);!(o=s[e])&&++e<l;);return o}}function vt(t,r,n){var a="__on"+t,o=t.indexOf("."),s=bt;o>0&&(t=t.slice(0,o));var l=yt.get(t);function c(){var e=this[a];e&&(this.removeEventListener(t,e,e.$),delete this[a])}function u(){var e=s(r,i(arguments));c.call(this),this.addEventListener(t,this[a]=e,e.$=n),e._=r}function f(){var r,n=new RegExp("^__on([^.]+)"+e.requote(t)+"$");for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}return l&&(t=l,s=xt),o?r?u:c:r?N:f}e.selection.enter=ht,e.selection.enter.prototype=gt,gt.append=Z.append,gt.empty=Z.empty,gt.node=Z.node,gt.call=Z.call,gt.size=Z.size,gt.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s<l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c<u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return G(o)},gt.insert=function(t,e){return arguments.length<2&&(e=mt(this)),Z.insert.call(this,t,e)},e.select=function(t){var e;return"string"===typeof t?(e=[W(t,a)]).parentNode=a.documentElement:(e=[t]).parentNode=o(t),G([e])},e.selectAll=function(t){var e;return"string"===typeof t?(e=i(Y(t,a))).parentNode=a.documentElement:(e=i(t)).parentNode=null,G([e])},Z.on=function(t,e,r){var n=arguments.length;if(n<3){if("string"!==typeof t){for(r in n<2&&(e=!1),t)this.each(vt(r,t[r],e));return this}if(n<2)return(n=this.node()["__on"+t])&&n._;r=!1}return this.each(vt(t,e,r))};var yt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});function bt(t,r){return function(n){var i=e.event;e.event=n,r[0]=this.__data__;try{t.apply(this,r)}finally{e.event=i}}}function xt(t,e){var r=bt(t,e);return function(t){var e=this,n=t.relatedTarget;n&&(n===e||8&n.compareDocumentPosition(e))||r.call(e,t)}}a&&yt.forEach((function(t){"on"+t in a&&yt.remove(t)}));var _t,wt=0;function kt(t){var r=".dragsuppress-"+ ++wt,n="click"+r,i=e.select(s(t)).on("touchmove"+r,j).on("dragstart"+r,j).on("selectstart"+r,j);if(null==_t&&(_t=!("onselectstart"in t)&&R(t.style,"userSelect")),_t){var a=o(t).style,l=a[_t];a[_t]="none"}return function(t){if(i.on(r,null),_t&&(a[_t]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){j(),e()}),!0),setTimeout(e,0)}}}e.mouse=function(t){return Mt(t,U())};var Tt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Mt(t,r){r.changedTouches&&(r=r.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();if(Tt<0){var a=s(t);if(a.scrollX||a.scrollY){var o=(n=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Tt=!(o.f||o.e),n.remove()}}return Tt?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var l=t.getBoundingClientRect();return[r.clientX-l.left-t.clientLeft,r.clientY-l.top-t.clientTop]}function At(){return e.event.changedTouches[0].identifier}e.touch=function(t,e,r){if(arguments.length<3&&(r=e,e=U().changedTouches),e)for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).identifier===r)return Mt(t,n)},e.behavior.drag=function(){var t=V(a,"drag","dragstart","dragend"),r=null,n=o(N,e.mouse,s,"mousemove","mouseup"),i=o(At,e.touch,P,"touchmove","touchend");function a(){this.on("mousedown.drag",n).on("touchstart.drag",i)}function o(n,i,a,o,s){return function(){var l,c=this,u=e.event.target.correspondingElement||e.event.target,f=c.parentNode,p=t.of(c,arguments),d=0,h=n(),g=".drag"+(null==h?"":"-"+h),m=e.select(a(u)).on(o+g,b).on(s+g,x),v=kt(u),y=i(f,h);function b(){var t,e,r=i(f,h);r&&(t=r[0]-y[0],e=r[1]-y[1],d|=t|e,y=r,p({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function x(){i(f,h)&&(m.on(o+g,null).on(s+g,null),v(d),p({type:"dragend"}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],p({type:"dragstart"})}}return a.origin=function(t){return arguments.length?(r=t,a):r},e.rebind(a,t,"on")},e.touches=function(t,e){return arguments.length<2&&(e=U().touches),e?i(e).map((function(e){var r=Mt(t,e);return r.identifier=e.identifier,r})):[]};var St=1e-6,Et=St*St,Ct=Math.PI,Ot=2*Ct,Lt=Ot-St,It=Ct/2,Pt=Ct/180,Dt=180/Ct;function Rt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function zt(t){return t>1?It:t<-1?-It:Math.asin(t)}function Nt(t){return((t=Math.exp(t))-1/t)/2}function Ft(t){return((t=Math.exp(t))+1/t)/2}function Bt(t){return((t=Math.exp(2*t))-1)/(t+1)}var jt=Math.SQRT2,Ut=2,Vt=4;e.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,p=u*u+f*f;if(p<Et)n=Math.log(c/o)/jt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(jt*t*n)]};else{var d=Math.sqrt(p),h=(c*c-o*o+Vt*p)/(2*o*Ut*d),g=(c*c-o*o-Vt*p)/(2*c*Ut*d),m=Math.log(Math.sqrt(h*h+1)-h),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/jt,r=function(t){var e=t*n,r=Ft(m),s=o/(Ut*d)*(r*Bt(jt*e+m)-Nt(m));return[i+s*u,a+s*f,o*r/Ft(jt*e+m)]}}return r.duration=1e3*n,r},e.behavior.zoom=function(){var t,r,n,i,o,l,c,u,f,p={x:0,y:0,k:1},d=[960,500],h=Gt,g=250,m=0,v="mousedown.zoom",y="mousemove.zoom",b="mouseup.zoom",x="touchstart.zoom",_=V(w,"zoomstart","zoom","zoomend");function w(t){t.on(v,I).on(qt+".zoom",D).on("dblclick.zoom",R).on(x,P)}function k(t){return[(t[0]-p.x)/p.k,(t[1]-p.y)/p.k]}function T(t){return[t[0]*p.k+p.x,t[1]*p.k+p.y]}function M(t){p.k=Math.max(h[0],Math.min(h[1],t))}function A(t,e){e=T(e),p.x+=t[0]-e[0],p.y+=t[1]-e[1]}function S(t,n,i,a){t.__chart__={x:p.x,y:p.y,k:p.k},M(Math.pow(2,a)),A(r=n,i),t=e.select(t),g>0&&(t=t.transition().duration(g)),t.call(w.event)}function E(){c&&c.domain(l.range().map((function(t){return(t-p.x)/p.k})).map(l.invert)),f&&f.domain(u.range().map((function(t){return(t-p.y)/p.k})).map(u.invert))}function C(t){m++||t({type:"zoomstart"})}function O(t){E(),t({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function L(t){--m||(t({type:"zoomend"}),r=null)}function I(){var t=this,r=_.of(t,arguments),n=0,i=e.select(s(t)).on(y,l).on(b,c),a=k(e.mouse(t)),o=kt(t);function l(){n=1,A(e.mouse(t),a),O(r)}function c(){i.on(y,null).on(b,null),o(n),L(r)}Na.call(t),C(r)}function P(){var t,r=this,n=_.of(r,arguments),i={},a=0,s=".zoom-"+e.event.changedTouches[0].identifier,l="touchmove"+s,c="touchend"+s,u=[],f=e.select(r),d=kt(r);function h(){var n=e.touches(r);return t=p.k,n.forEach((function(t){t.identifier in i&&(i[t.identifier]=k(t))})),n}function g(){var t=e.event.target;e.select(t).on(l,m).on(c,y),u.push(t);for(var n=e.event.changedTouches,s=0,f=n.length;s<f;++s)i[n[s].identifier]=null;var d=h(),g=Date.now();if(1===d.length){if(g-o<500){var v=d[0];S(r,v,i[v.identifier],Math.floor(Math.log(p.k)/Math.LN2)+1),j()}o=g}else if(d.length>1){v=d[0];var b=d[1],x=v[0]-b[0],_=v[1]-b[1];a=x*x+_*_}}function m(){var s,l,c,u,f=e.touches(r);Na.call(r);for(var p=0,d=f.length;p<d;++p,u=null)if(c=f[p],u=i[c.identifier]){if(l)break;s=c,l=u}if(u){var h=(h=c[0]-s[0])*h+(h=c[1]-s[1])*h,g=a&&Math.sqrt(h/a);s=[(s[0]+c[0])/2,(s[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],M(g*t)}o=null,A(s,l),O(n)}function y(){if(e.event.touches.length){for(var t=e.event.changedTouches,r=0,a=t.length;r<a;++r)delete i[t[r].identifier];for(var o in i)return void h()}e.selectAll(u).on(s,null),f.on(v,I).on(x,P),d(),L(n)}g(),C(n),f.on(v,null).on(x,g)}function D(){var a=_.of(this,arguments);i?clearTimeout(i):(Na.call(this),t=k(r=n||e.mouse(this)),C(a)),i=setTimeout((function(){i=null,L(a)}),50),j(),M(Math.pow(2,.002*Ht())*p.k),A(r,t),O(a)}function R(){var t=e.mouse(this),r=Math.log(p.k)/Math.LN2;S(this,t,k(t),e.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return qt||(qt="onwheel"in a?(Ht=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Ht=function(){return e.event.wheelDelta},"mousewheel"):(Ht=function(){return-e.event.detail},"MozMousePixelScroll")),w.event=function(t){t.each((function(){var t=_.of(this,arguments),n=p;ja?e.select(this).transition().each("start.zoom",(function(){p=this.__chart__||{x:0,y:0,k:1},C(t)})).tween("zoom:zoom",(function(){var i=d[0],a=d[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=e.interpolateZoom([(o-p.x)/p.k,(s-p.y)/p.k,i/p.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(e){var r=l(e),n=i/r[2];this.__chart__=p={x:o-r[0]*n,y:s-r[1]*n,k:n},O(t)}})).each("interrupt.zoom",(function(){L(t)})).each("end.zoom",(function(){L(t)})):(this.__chart__=p,C(t),O(t),L(t))}))},w.translate=function(t){return arguments.length?(p={x:+t[0],y:+t[1],k:p.k},E(),w):[p.x,p.y]},w.scale=function(t){return arguments.length?(p={x:p.x,y:p.y,k:null},M(+t),E(),w):p.k},w.scaleExtent=function(t){return arguments.length?(h=null==t?Gt:[+t[0],+t[1]],w):h},w.center=function(t){return arguments.length?(n=t&&[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(d=t&&[+t[0],+t[1]],w):d},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),p={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),p={x:0,y:0,k:1},w):f},e.rebind(w,_,"on")};var Ht,qt,Gt=[0,1/0];function Wt(){}function Yt(t,e,r){return this instanceof Yt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length<2?t instanceof Yt?new Yt(t.h,t.s,t.l):ge(""+t,me,Yt):new Yt(t,e,r)}e.color=Wt,Wt.prototype.toString=function(){return this.rgb()+""},e.hsl=Yt;var Xt=Yt.prototype=new Wt;function Zt(t,e,r){var n,i;function a(t){return t>360?t-=360:t<0&&(t+=360),t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n}function o(t){return Math.round(255*a(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+e):r+e-r*e),new ue(o(t+120),o(t),o(t-120))}function Kt(t,r,n){return this instanceof Kt?(this.h=+t,this.c=+r,void(this.l=+n)):arguments.length<2?t instanceof Kt?new Kt(t.h,t.c,t.l):oe(t instanceof Qt?t.l:(t=ve((t=e.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Kt(t,r,n)}Xt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Yt(this.h,this.s,this.l/t)},Xt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Yt(this.h,this.s,t*this.l)},Xt.rgb=function(){return Zt(this.h,this.s,this.l)},e.hcl=Kt;var Jt=Kt.prototype=new Wt;function $t(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Qt(r,Math.cos(t*=Pt)*e,Math.sin(t)*e)}function Qt(t,e,r){return this instanceof Qt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof Qt?new Qt(t.l,t.a,t.b):t instanceof Kt?$t(t.h,t.c,t.l):ve((t=ue(t)).r,t.g,t.b):new Qt(t,e,r)}Jt.brighter=function(t){return new Kt(this.h,this.c,Math.min(100,this.l+te*(arguments.length?t:1)))},Jt.darker=function(t){return new Kt(this.h,this.c,Math.max(0,this.l-te*(arguments.length?t:1)))},Jt.rgb=function(){return $t(this.h,this.c,this.l).rgb()},e.lab=Qt;var te=18,ee=.95047,re=1,ne=1.08883,ie=Qt.prototype=new Wt;function ae(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ue(ce(3.2404542*(i=se(i)*ee)-1.5371385*(n=se(n)*re)-.4985314*(a=se(a)*ne)),ce(-.969266*i+1.8760108*n+.041556*a),ce(.0556434*i-.2040259*n+1.0572252*a))}function oe(t,e,r){return t>0?new Kt(Math.atan2(r,e)*Dt,Math.sqrt(e*e+r*r),t):new Kt(NaN,NaN,t)}function se(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function le(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ce(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ue(t,e,r){return this instanceof ue?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof ue?new ue(t.r,t.g,t.b):ge(""+t,ue,Zt):new ue(t,e,r)}function fe(t){return new ue(t>>16,t>>8&255,255&t)}function pe(t){return fe(t)+""}ie.brighter=function(t){return new Qt(Math.min(100,this.l+te*(arguments.length?t:1)),this.a,this.b)},ie.darker=function(t){return new Qt(Math.max(0,this.l-te*(arguments.length?t:1)),this.a,this.b)},ie.rgb=function(){return ae(this.l,this.a,this.b)},e.rgb=ue;var de=ue.prototype=new Wt;function he(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ge(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(","),n[1]){case"hsl":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(be(i[0]),be(i[1]),be(i[2]))}return(a=xe.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function me(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e<r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l>0&&l<1?0:n),new Yt(n,i,l)}function ve(t,e,r){var n=le((.4124564*(t=ye(t))+.3575761*(e=ye(e))+.1804375*(r=ye(r)))/ee),i=le((.2126729*t+.7151522*e+.072175*r)/re);return Qt(116*i-16,500*(n-i),200*(i-le((.0193339*t+.119192*e+.9503041*r)/ne)))}function ye(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function be(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}de.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e<i&&(e=i),r&&r<i&&(r=i),n&&n<i&&(n=i),new ue(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ue(i,i,i)},de.darker=function(t){return new ue((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},de.hsl=function(){return me(this.r,this.g,this.b)},de.toString=function(){return"#"+he(this.r)+he(this.g)+he(this.b)};var xe=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function _e(t){return"function"===typeof t?t:function(){return t}}function we(t){return function(e,r,n){return 2===arguments.length&&"function"===typeof r&&(n=r,r=null),ke(e,r,t,n)}}function ke(t,r,n,a){var o={},s=e.dispatch("beforesend","progress","load","error"),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&&Me(c)||e>=200&&e<300||304===e){try{t=n.call(o,c)}catch(ro){return void s.error.call(o,ro)}s.load.call(o,t)}else s.error.call(o,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(t){var r=e.event;e.event=t;try{s.progress.call(o,c)}finally{e.event=r}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+"",o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return n=t,o},["get","post"].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(i(arguments)))}})),o.send=function(e,n,i){if(2===arguments.length&&"function"===typeof n&&(i=n,n=null),c.open(e,t,!0),null==r||"accept"in l||(l.accept=r+",*/*"),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=i&&o.on("error",i).on("load",(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},e.rebind(o,s,"on"),null==a?o:o.get(Te(a))}function Te(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}function Me(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}xe.forEach((function(t,e){xe.set(t,fe(e))})),e.functor=_e,e.xhr=we(P),e.dsv=function(t,e){var r=new RegExp('["'+t+"\n]"),n=t.charCodeAt(0);function i(t,r,n){arguments.length<3&&(n=r,r=null);var i=ke(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=function(e){for(var r={},n=t.length,i=0;i<n;++i)r[t[i]]=e[i];return r};r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c>=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++<l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&&++c):10===s&&(i=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;c<l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&&(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var p=[];r!==a&&r!==o;)p.push(r),r=f();e&&null==(p=e(p,u++))||s.push(p)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new I,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join("\n")},i.formatRows=function(t){return t.map(s).join("\n")},i},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("\t","text/tab-separated-values");var Ae,Se,Ee,Ce,Oe=this[R(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};function Le(t,e,r){var n=arguments.length;n<2&&(e=0),n<3&&(r=Date.now());var i={c:t,t:r+e,n:null};return Se?Se.n=i:Ae=i,Se=i,Ee||(Ce=clearTimeout(Ce),Ee=1,Oe(Ie)),i}function Ie(){var t=Pe(),e=De()-t;e>24?(isFinite(e)&&(clearTimeout(Ce),Ce=setTimeout(Ie,e)),Ee=0):(Ee=1,Oe(Ie))}function Pe(){for(var t=Date.now(),e=Ae;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function De(){for(var t,e=Ae,r=1/0;e;)e.c?(e.t<r&&(r=e.t),e=(t=e).n):e=t?t.n=e.n:Ae=e.n;return Se=t,r}function Re(t){return t[0]}function ze(t){return t[1]}function Ne(t){for(var e=t.length,r=[0,1],n=2,i=2;i<e;i++){for(;n>1&&Rt(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function Fe(t,e){return t[0]-e[0]||t[1]-e[1]}e.timer=function(){Le.apply(this,arguments)},e.timer.flush=function(){Pe(),De()},e.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},e.geom={},e.geom.hull=function(t){var e=Re,r=ze;if(arguments.length)return n(t);function n(t){if(t.length<3)return[];var n,i=_e(e),a=_e(r),o=t.length,s=[],l=[];for(n=0;n<o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(Fe),n=0;n<o;n++)l.push([s[n][0],-s[n][1]]);var c=Ne(s),u=Ne(l),f=u[0]===c[0],p=u[u.length-1]===c[c.length-1],d=[];for(n=c.length-1;n>=0;--n)d.push(t[s[c[n]][2]]);for(n=+f;n<u.length-p;++n)d.push(t[s[u[n]][2]]);return d}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},e.geom.polygon=function(t){return q(t,Be),t};var Be=e.geom.polygon.prototype=[];function je(t,e,r){return(r[0]-e[0])*(t[1]-e[1])<(r[1]-e[1])*(t[0]-e[0])}function Ue(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,p=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+p*o,l+p*u]}function Ve(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}Be.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e<r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},Be.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n<i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},Be.clip=function(t){for(var e,r,n,i,a,o,s=Ve(t),l=-1,c=this.length-Ve(this),u=this[c-1];++l<c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r<n;)je(o=e[r],u,i)?(je(a,u,i)||t.push(Ue(a,o,u,i)),t.push(o)):je(a,u,i)&&t.push(Ue(a,o,u,i)),a=o;s&&t.push(t[0]),u=i}return t};var He,qe,Ge,We,Ye,Xe=[],Ze=[];function Ke(){yr(this),this.edge=this.site=this.circle=null}function Je(t){var e=Xe.pop()||new Ke;return e.site=t,e}function $e(t){lr(t),Ge.remove(t),Xe.push(t),yr(t)}function Qe(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];$e(t);for(var l=a;l.circle&&b(r-l.circle.x)<St&&b(n-l.circle.cy)<St;)a=l.P,s.unshift(l),$e(l),l=a;s.unshift(l),lr(l);for(var c=o;c.circle&&b(r-c.circle.x)<St&&b(n-c.circle.cy)<St;)o=c.N,s.push(c),$e(c),c=o;s.push(c),lr(c);var u,f=s.length;for(u=1;u<f;++u)c=s[u],l=s[u-1],gr(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=dr(l.site,c.site,null,i),sr(l),sr(c)}function tr(t){for(var e,r,n,i,a=t.x,o=t.y,s=Ge._;s;)if((n=er(s,o)-a)>St)s=s.L;else{if(!((i=a-rr(s,o))>St)){n>-St?(e=s.P,r=s):i>-St?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=Je(t);if(Ge.insert(e,l),e||r){if(e===r)return lr(e),r=Je(e.site),Ge.insert(l,r),l.edge=r.edge=dr(e.site,l.site),sr(e),void sr(r);if(r){lr(e),lr(r);var c=e.site,u=c.x,f=c.y,p=t.x-u,d=t.y-f,h=r.site,g=h.x-u,m=h.y-f,v=2*(p*m-d*g),y=p*p+d*d,b=g*g+m*m,x={x:(m*y-d*b)/v+u,y:(p*b-g*y)/v+f};gr(r.edge,c,h,x),l.edge=dr(c,t,null,x),r.edge=dr(t,h,null,x),sr(e),sr(r)}else l.edge=dr(e.site,l.site)}}function er(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,p=u/c;return f?(-p+Math.sqrt(p*p-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function rr(t,e){var r=t.N;if(r)return er(r,e);var n=t.site;return n.y===e?n.x:1/0}function nr(t){this.site=t,this.edges=[]}function ir(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],p=t[1][0],d=t[0][1],h=t[1][1],g=qe,m=g.length;m--;)if((a=g[m])&&a.prepare())for(l=(s=a.edges).length,o=0;o<l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(b(n-e)>St||b(i-r)>St)&&(s.splice(o,0,new mr(hr(a.site,u,b(n-f)<St&&h-i>St?{x:f,y:b(e-f)<St?r:h}:b(i-h)<St&&p-n>St?{x:b(r-h)<St?e:p,y:h}:b(n-p)<St&&i-d>St?{x:p,y:b(e-p)<St?r:d}:b(i-d)<St&&n-f>St?{x:b(r-d)<St?e:f,y:d}:null),a.site,null)),++l)}function ar(t,e){return e.angle-t.angle}function or(){yr(this),this.x=this.y=this.arc=this.site=this.cy=null}function sr(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f>=-Et)){var p=l*l+c*c,d=u*u+m*m,h=(m*p-c*d)/f,g=(l*d-u*p)/f,m=g+s,v=Ze.pop()||new or;v.arc=t,v.site=i,v.x=h+o,v.y=m+Math.sqrt(h*h+g*g),v.cy=m,t.circle=v;for(var y=null,b=Ye._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}Ye.insert(y,v),y||(We=v)}}}}function lr(t){var e=t.circle;e&&(e.P||(We=e.N),Ye.remove(e),Ze.push(e),yr(e),t.circle=null)}function cr(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,p=s.x-l,d=s.y-c;if(a=t-l,p||!(a>0)){if(a/=p,p<0){if(a<u)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>u&&(u=a)}if(a=r-l,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>u&&(u=a)}else if(p>0){if(a<u)return;a<f&&(f=a)}if(a=e-c,d||!(a>0)){if(a/=d,d<0){if(a<u)return;a<f&&(f=a)}else if(d>0){if(a>f)return;a>u&&(u=a)}if(a=n-c,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>u&&(u=a)}else if(d>0){if(a<u)return;a<f&&(f=a)}return u>0&&(i.a={x:l+u*p,y:c+u*d}),f<1&&(i.b={x:l+f*p,y:c+f*d}),i}}}}}}function ur(t){for(var e,r=He,n=cr(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!fr(e=r[i],t)||!n(e)||b(e.a.x-e.b.x)<St&&b(e.a.y-e.b.y)<St)&&(e.a=e.b=null,r.splice(i,1))}function fr(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,p=u.x,d=u.y,h=f.x,g=f.y,m=(p+h)/2,v=(d+g)/2;if(g===d){if(m<o||m>=s)return;if(p>h){if(a){if(a.y>=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y<l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(p-h)/(g-d))*m,n<-1||n>1)if(p>h){if(a){if(a.y>=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y<l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(d<g){if(a){if(a.x>=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function pr(t,e){this.l=t,this.r=e,this.a=this.b=null}function dr(t,e,r,n){var i=new pr(t,e);return He.push(i),r&&gr(i,t,e,r),n&&gr(i,e,t,n),qe[t.i].edges.push(new mr(i,t,e)),qe[e.i].edges.push(new mr(i,e,t)),i}function hr(t,e,r){var n=new pr(t,null);return n.a=e,n.b=r,He.push(n),n}function gr(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function mr(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function vr(){this._=null}function yr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function br(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function xr(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function _r(t){for(;t.L;)t=t.L;return t}function wr(t,e){var r,n,i,a=t.sort(kr).pop();for(He=[],qe=new Array(t.length),Ge=new vr,Ye=new vr;;)if(i=We,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===r&&a.y===n||(qe[a.i]=new nr(a),tr(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;Qe(i.arc)}e&&(ur(e),ir(e));var o={cells:qe,edges:He};return Ge=Ye=He=qe=null,o}function kr(t,e){return e.y-t.y||e.x-t.x}nr.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&&t.a||e.splice(r,1);return e.sort(ar),e.length},mr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},vr.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=_r(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(br(this,r),r=(t=r).U),r.C=!1,n.C=!0,xr(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(xr(this,r),r=(t=r).U),r.C=!1,n.C=!0,br(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?_r(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&&o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,br(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,xr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,br(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,xr(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,br(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,xr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},e.geom.voronoi=function(t){var e=Re,r=ze,n=e,i=r,a=Tr;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return wr(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x>=r&&c.x<=i&&c.y>=n&&c.y<=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/St)*St,y:Math.round(i(t,e)/St)*St,i:e}}))}return o.links=function(t){return wr(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return wr(s(t)).cells.forEach((function(r,n){for(var i,a=r.site,o=r.edges.sort(ar),s=-1,l=o.length,c=o[l-1].edge,u=c.l===a?c.r:c.l;++s<l;)i=u,u=(c=o[s].edge).l===a?c.r:c.l,n<i.i&&n<u.i&&Mr(a,i,u)<0&&e.push([t[n],t[i.i],t[u.i]])})),e},o.x=function(t){return arguments.length?(n=_e(e=t),o):e},o.y=function(t){return arguments.length?(i=_e(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Tr:t,o):a===Tr?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&&[[0,0],t]):a===Tr?null:a&&a[1]},o};var Tr=[[-1e6,-1e6],[1e6,1e6]];function Mr(t,e,r){return(t.x-r.x)*(e.y-t.y)-(t.x-e.x)*(r.y-t.y)}function Ar(t){return t.x}function Sr(t){return t.y}function Er(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Cr(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&&Cr(t,l[0],r,n,o,s),l[1]&&Cr(t,l[1],o,n,i,s),l[2]&&Cr(t,l[2],r,s,o,a),l[3]&&Cr(t,l[3],o,s,i,a)}}function Or(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,p,d){if(!(u>a||f>o||p<n||d<i)){if(h=c.point){var h,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v<l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=h}}for(var b=c.nodes,x=.5*(u+p),_=.5*(f+d),w=(r>=_)<<1|e>=x,k=w+4;w<k;++w)if(c=b[3&w])switch(3&w){case 0:t(c,u,f,x,_);break;case 1:t(c,x,f,p,_);break;case 2:t(c,u,_,x,d);break;case 3:t(c,x,_,p,d)}}}(t,n,i,a,o),s}function Lr(t,r){t=e.rgb(t),r=e.rgb(r);var n=t.r,i=t.g,a=t.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return"#"+he(Math.round(n+o*t))+he(Math.round(i+s*t))+he(Math.round(a+l*t))}}function Ir(t,e){var r,n={},i={};for(r in t)r in e?n[r]=Nr(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Pr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Dr(t,e){var r,n,i,a=Rr.lastIndex=zr.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(r=Rr.exec(t))&&(n=zr.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Pr(r,n)})),a=zr.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?(e=l[0].x,function(t){return e(t)+""}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join("")})}e.geom.delaunay=function(t){return e.geom.voronoi().triangles(t)},e.geom.quadtree=function(t,e,r,n,i){var a,o=Re,s=ze;if(a=arguments.length)return o=Ar,s=Sr,3===a&&(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,p,d,h,g,m,v=_e(o),y=_e(s);if(null!=e)d=e,h=r,g=n,m=i;else if(g=m=-(d=h=1/0),c=[],u=[],p=t.length,a)for(f=0;f<p;++f)(l=t[f]).x<d&&(d=l.x),l.y<h&&(h=l.y),l.x>g&&(g=l.x),l.y>m&&(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f<p;++f){var x=+v(l=t[f],f),_=+y(l,f);x<d&&(d=x),_<h&&(h=_),x>g&&(g=x),_>m&&(m=_),c.push(x),u.push(_)}var w=g-d,k=m-h;function T(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(b(l-r)+b(c-n)<.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r>=l,f=n>=c,p=f<<1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,T(t=t.nodes[p]||(t.nodes[p]=Er()),e,r,n,i,a,o,s)}w>k?m=h+w:g=d+k;var A=Er();if(A.add=function(t){T(A,t,+v(t,++f),+y(t,f),d,h,g,m)},A.visit=function(t){Cr(t,A,d,h,g,m)},A.find=function(t){return Or(A,t[0],t[1],d,h,g,m)},f=-1,null==e){for(;++f<p;)T(A,t[f],c[f],u[f],d,h,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},e.interpolateRgb=Lr,e.interpolateObject=Ir,e.interpolateNumber=Pr,e.interpolateString=Dr;var Rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zr=new RegExp(Rr.source,"g");function Nr(t,r){for(var n,i=e.interpolators.length;--i>=0&&!(n=e.interpolators[i](t,r)););return n}function Fr(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r<s;++r)n.push(Nr(t[r],e[r]));for(;r<a;++r)i[r]=t[r];for(;r<o;++r)i[r]=e[r];return function(t){for(r=0;r<s;++r)i[r]=n[r](t);return i}}e.interpolate=Nr,e.interpolators=[function(t,e){var r=typeof e;return("string"===r?xe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Lr:Dr:e instanceof Wt?Lr:Array.isArray(e)?Fr:"object"===r&&isNaN(e)?Ir:Pr)(t,e)}],e.interpolateArray=Fr;var Br=function(){return P},jr=e.map({linear:Br,poly:Xr,quad:function(){return Gr},cubic:function(){return Wr},sin:function(){return Zr},exp:function(){return Kr},circle:function(){return Jr},elastic:$r,back:Qr,bounce:function(){return tn}}),Ur=e.map({in:P,out:Hr,"in-out":qr,"out-in":function(t){return qr(Hr(t))}});function Vr(t){return function(e){return e<=0?0:e>=1?1:t(e)}}function Hr(t){return function(e){return 1-t(1-e)}}function qr(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Gr(t){return t*t}function Wr(t){return t*t*t}function Yr(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function Xr(t){return function(e){return Math.pow(e,t)}}function Zr(t){return 1-Math.cos(t*It)}function Kr(t){return Math.pow(2,10*(t-1))}function Jr(t){return 1-Math.sqrt(1-t*t)}function $r(t,e){var r;return arguments.length<2&&(e=.45),arguments.length?r=e/Ot*Math.asin(1/t):(t=1,r=e/4),function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Ot/e)}}function Qr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function tn(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function en(t,r){t=e.hcl(t),r=e.hcl(r);var n=t.h,i=t.c,a=t.l,o=r.h-n,s=r.c-i,l=r.l-a;return isNaN(s)&&(s=0,i=isNaN(i)?r.c:i),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(t){return $t(n+o*t,i+s*t,a+l*t)+""}}function rn(t,r){t=e.hsl(t),r=e.hsl(r);var n=t.h,i=t.s,a=t.l,o=r.h-n,s=r.s-i,l=r.l-a;return isNaN(s)&&(s=0,i=isNaN(i)?r.s:i),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(t){return Zt(n+o*t,i+s*t,a+l*t)+""}}function nn(t,r){t=e.lab(t),r=e.lab(r);var n=t.l,i=t.a,a=t.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return ae(n+o*t,i+s*t,a+l*t)+""}}function an(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function on(t){var e=[t.a,t.b],r=[t.c,t.d],n=ln(e),i=sn(e,r),a=ln(cn(r,e,-i))||0;e[0]*r[1]<r[0]*e[1]&&(e[0]*=-1,e[1]*=-1,n*=-1,i*=-1),this.rotate=(n?Math.atan2(e[1],e[0]):Math.atan2(-r[0],r[1]))*Dt,this.translate=[t.e,t.f],this.scale=[n,a],this.skew=a?Math.atan2(i,a)*Dt:0}function sn(t,e){return t[0]*e[0]+t[1]*e[1]}function ln(t){var e=Math.sqrt(sn(t,t));return e&&(t[0]/=e,t[1]/=e),e}function cn(t,e,r){return t[0]+=r*e[0],t[1]+=r*e[1],t}e.ease=function(t){var e=t.indexOf("-"),r=e>=0?t.slice(0,e):t,i=e>=0?t.slice(e+1):"in";return r=jr.get(r)||Br,Vr((i=Ur.get(i)||P)(r.apply(null,n.call(arguments,1))))},e.interpolateHcl=en,e.interpolateHsl=rn,e.interpolateLab=nn,e.interpolateRound=an,e.transform=function(t){var r=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(t){if(null!=t){r.setAttribute("transform",t);var e=r.transform.baseVal.consolidate()}return new on(e?e.matrix:un)})(t)},on.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var un={a:1,b:0,c:0,d:1,e:0,f:0};function fn(t){return t.length?t.pop()+",":""}function pn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push("translate(",null,",",null,")");n.push({i:i-4,x:Pr(t[0],e[0])},{i:i-2,x:Pr(t[1],e[1])})}else(e[0]||e[1])&&r.push("translate("+e+")")}function dn(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(fn(r)+"rotate(",null,")")-2,x:Pr(t,e)})):e&&r.push(fn(r)+"rotate("+e+")")}function hn(t,e,r,n){t!==e?n.push({i:r.push(fn(r)+"skewX(",null,")")-2,x:Pr(t,e)}):e&&r.push(fn(r)+"skewX("+e+")")}function gn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(fn(r)+"scale(",null,",",null,")");n.push({i:i-4,x:Pr(t[0],e[0])},{i:i-2,x:Pr(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(fn(r)+"scale("+e+")")}function mn(t,r){var n=[],i=[];return t=e.transform(t),r=e.transform(r),pn(t.translate,r.translate,n,i),dn(t.rotate,r.rotate,n,i),hn(t.skew,r.skew,n,i),gn(t.scale,r.scale,n,i),t=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join("")}}function vn(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function yn(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function bn(t){for(var e=t.source,r=t.target,n=_n(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function xn(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function _n(t,e){if(t===e)return t;for(var r=xn(t),n=xn(e),i=r.pop(),a=n.pop(),o=null;i===a;)o=i,i=r.pop(),a=n.pop();return o}function wn(t){t.fixed|=2}function kn(t){t.fixed&=-7}function Tn(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Mn(t){t.fixed&=-5}function An(t,e,r){var n=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,s=o.length,l=-1;++l<s;)null!=(a=o[l])&&(An(a,e,r),t.charge+=a.charge,n+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=e*r[t.point.index];t.charge+=t.pointCharge=c,n+=c*t.point.x,i+=c*t.point.y}t.cx=n/t.charge,t.cy=i/t.charge}e.interpolateTransform=mn,e.layout={},e.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r<n;)e.push(bn(t[r]));return e}},e.layout.chord=function(){var t,r,n,i,a,o,s,l={},c=0;function u(){var l,u,p,d,h,g={},m=[],v=e.range(i),y=[];for(t=[],r=[],l=0,d=-1;++d<i;){for(u=0,h=-1;++h<i;)u+=n[d][h];m.push(u),y.push(e.range(i)),l+=u}for(a&&v.sort((function(t,e){return a(m[t],m[e])})),o&&y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(Ot-c*i)/l,u=0,d=-1;++d<i;){for(p=u,h=-1;++h<i;){var b=v[d],x=y[b][h],_=n[b][x],w=u,k=u+=_*l;g[b+"-"+x]={index:b,subindex:x,startAngle:w,endAngle:k,value:_}}r[b]={index:b,startAngle:p,endAngle:u,value:m[b]},u+=c}for(d=-1;++d<i;)for(h=d-1;++h<i;){var T=g[d+"-"+h],M=g[h+"-"+d];(T.value||M.value)&&t.push(T.value<M.value?{source:M,target:T}:{source:T,target:M})}s&&f()}function f(){t.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(e){return arguments.length?(i=(n=e)&&n.length,t=r=null,l):n},l.padding=function(e){return arguments.length?(c=e,t=r=null,l):c},l.sortGroups=function(e){return arguments.length?(a=e,t=r=null,l):a},l.sortSubgroups=function(e){return arguments.length?(o=e,t=null,l):o},l.sortChords=function(e){return arguments.length?(s=e,t&&f(),l):s},l.chords=function(){return t||u(),t},l.groups=function(){return r||u(),r},l},e.layout.force=function(){var t,r,n,i,a,o,s={},l=e.dispatch("start","tick","end"),c=[1,1],u=.9,f=Sn,p=En,d=-30,h=Cn,g=.1,m=.64,v=[],y=[];function b(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m<l){if(l<h){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}e.point&&l&&l<h&&(c=e.pointCharge/l,t.px-=a*c,t.py-=o*c)}return!e.charge}}function x(t){t.px=e.event.x,t.py=e.event.y,s.resume()}return s.tick=function(){if((n*=.99)<.005)return t=null,l.end({type:"end",alpha:n=0}),!0;var r,s,f,p,h,m,x,_,w,k=v.length,T=y.length;for(s=0;s<T;++s)p=(f=y[s]).source,(m=(_=(h=f.target).x-p.x)*_+(w=h.y-p.y)*w)&&(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,h.x-=_*(x=p.weight+h.weight?p.weight/(p.weight+h.weight):.5),h.y-=w*x,p.x+=_*(x=1-x),p.y+=w*x);if((x=n*g)&&(_=c[0]/2,w=c[1]/2,s=-1,x))for(;++s<k;)(f=v[s]).x+=(_-f.x)*x,f.y+=(w-f.y)*x;if(d)for(An(r=e.geom.quadtree(v),n,o),s=-1;++s<k;)(f=v[s]).fixed||r.visit(b(f));for(s=-1;++s<k;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:"tick",alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f="function"===typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(p="function"===typeof t?t:+t,s):p},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(d="function"===typeof t?t:+t,s):d},s.chargeDistance=function(t){return arguments.length?(h=t*t,s):Math.sqrt(h)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(e){return arguments.length?(e=+e,n?e>0?n=e:(t.c=null,t.t=NaN,t=null,l.end({type:"end",alpha:n=0})):e>0&&(l.start({type:"start",alpha:n=e}),t=Le(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],h=c[1];for(t=0;t<n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t<l;++t)"number"==typeof(r=y[t]).source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<n;++t)r=v[t],isNaN(r.x)&&(r.x=g("x",u)),isNaN(r.y)&&(r.y=g("y",h)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"===typeof f)for(t=0;t<l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t<l;++t)i[t]=f;if(a=[],"function"===typeof p)for(t=0;t<l;++t)a[t]=+p.call(this,y[t],t);else for(t=0;t<l;++t)a[t]=p;if(o=[],"function"===typeof d)for(t=0;t<n;++t)o[t]=+d.call(this,v[t],t);else for(t=0;t<n;++t)o[t]=d;function g(r,i){if(!e){for(e=new Array(n),c=0;c<n;++c)e[c]=[];for(c=0;c<l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c<u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=e.behavior.drag().origin(P).on("dragstart.force",wn).on("drag.force",x).on("dragend.force",kn)),!arguments.length)return r;this.on("mouseover.force",Tn).on("mouseout.force",Mn).call(r)},e.rebind(s,l,"on")};var Sn=20,En=1,Cn=1/0;function On(t,r){return e.rebind(t,r,"sort","children","value"),t.nodes=t,t.links=zn,t}function Ln(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&&(n=i.length))for(var n,i;--n>=0;)r.push(i[n])}function In(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Pn(t){return t.children}function Dn(t){return t.value}function Rn(t,e){return e.value-t.value}function zn(t){return e.merge(t.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}e.layout.hierarchy=function(){var t=Rn,e=Pn,r=Dn;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&&(l=c.length)){for(var l,c,u;--l>=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return In(i,(function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Ln(t,(function(t){t.children&&(t.value=0)})),In(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},n},e.layout.partition=function(){var t=e.layout.hierarchy(),r=[1,1];function n(t,e,r,i){var a=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,a&&(o=a.length)){var o,s,l,c=-1;for(r=t.value?r/t.value:0;++c<o;)n(s=a[c],e,l=s.value*r,i),e+=l}}function i(t){var e=t.children,r=0;if(e&&(n=e.length))for(var n,a=-1;++a<n;)r=Math.max(r,i(e[a]));return 1+r}function a(e,a){var o=t.call(this,e,a);return n(o[0],0,r[0],r[1]/i(o[0])),o}return a.size=function(t){return arguments.length?(r=t,a):r},On(a,t)},e.layout.pie=function(){var t=Number,r=Nn,n=0,i=Ot,a=0;function o(s){var l,c=s.length,u=s.map((function(e,r){return+t.call(o,e,r)})),f=+("function"===typeof n?n.apply(this,arguments):n),p=("function"===typeof i?i.apply(this,arguments):i)-f,d=Math.min(Math.abs(p)/c,+("function"===typeof a?a.apply(this,arguments):a)),h=d*(p<0?-1:1),g=e.sum(u),m=g?(p-c*h)/g:0,v=e.range(c),y=[];return null!=r&&v.sort(r===Nn?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+h,padAngle:d}})),y}return o.value=function(e){return arguments.length?(t=e,o):t},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Nn={};function Fn(t){return t.x}function Bn(t){return t.y}function jn(t,e,r){t.y0=e,t.y=r}e.layout.stack=function(){var t=P,r=Hn,n=qn,i=jn,a=Fn,o=Bn;function s(l,c){if(!(d=l.length))return l;var u=l.map((function(e,r){return t.call(s,e,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),p=r.call(s,f,c);u=e.permute(u,p),f=e.permute(f,p);var d,h,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g<y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),h=1;h<d;++h)i.call(s,u[h][g],m+=f[h-1][g][1],f[h][g][1]);return l}return s.values=function(e){return arguments.length?(t=e,s):t},s.order=function(t){return arguments.length?(r="function"===typeof t?t:Un.get(t)||Hn,s):r},s.offset=function(t){return arguments.length?(n="function"===typeof t?t:Vn.get(t)||qn,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var Un=e.map({"inside-out":function(t){var r,n,i=t.length,a=t.map(Gn),o=t.map(Wn),s=e.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r<i;++r)n=s[r],l<c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(t){return e.range(t.length).reverse()},default:Hn}),Vn=e.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];n>s&&(s=n),o.push(n)}for(r=0;r<a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],p=f.length,d=[];for(d[0]=l=c=0,r=1;r<p;++r){for(e=0,i=0;e<u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e<u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n<e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}d[r]=l-=i?a/i*s:0,l<c&&(c=l)}for(r=0;r<p;++r)d[r]-=c;return d},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];if(n)for(e=0;e<i;e++)t[e][r][1]/=n;else for(e=0;e<i;e++)t[e][r][1]=o}for(r=0;r<a;++r)s[r]=0;return s},zero:qn});function Hn(t){return e.range(t.length)}function qn(t){for(var e=-1,r=t[0].length,n=[];++e<r;)n[e]=0;return n}function Gn(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r<a;++r)(e=t[r][1])>i&&(n=r,i=e);return n}function Wn(t){return t.reduce(Yn,0)}function Yn(t,e){return t+e[1]}function Xn(t,e){return Zn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Zn(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function Kn(t){return[e.min(t),e.max(t)]}function Jn(t,e){return t.value-e.value}function $n(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function Qn(t,e){t._pack_next=e,e._pack_prev=t}function ti(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function ei(t){if((e=t.children)&&(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,p=-1/0;if(e.forEach(ri),(r=e[0]).x=-r.r,r.y=0,b(r),l>1&&((n=e[1]).x=n.r,n.y=0,b(n),l>2))for(ai(r,n,i=e[2]),b(i),$n(r,i),r._pack_prev=i,$n(i,n),n=r._pack_next,a=3;a<l;a++){ai(r,n,i=e[a]);var d=0,h=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,h++)if(ti(o,i)){d=1;break}if(1==d)for(s=r._pack_prev;s!==o._pack_prev&&!ti(s,i);s=s._pack_prev,g++);d?(h<g||h==g&&n.r<r.r?Qn(r,n=o):Qn(r=s,n),a--):($n(r,i),n=i,b(i))}var m=(c+u)/2,v=(f+p)/2,y=0;for(a=0;a<l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ni)}function b(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),p=Math.max(t.y+t.r,p)}}function ri(t){t._pack_next=t._pack_prev=t}function ni(t){delete t._pack_next,delete t._pack_prev}function ii(t,e,r,n){var i=t.children;if(t.x=e+=n*t.x,t.y=r+=n*t.y,t.r*=n,i)for(var a=-1,o=i.length;++a<o;)ii(i[a],e,r,n)}function ai(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&&(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function oi(t,e){return t.parent==e.parent?1:2}function si(t){var e=t.children;return e.length?e[0]:t.t}function li(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function ci(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function ui(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}function fi(t,e,r){return t.a.parent===e.parent?t.a:r}function pi(t){return 1+e.max(t,(function(t){return t.y}))}function di(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}function hi(t){var e=t.children;return e&&e.length?hi(e[0]):t}function gi(t){var e,r=t.children;return r&&(e=r.length)?gi(r[e-1]):t}function mi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function vi(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(r+=i/2,i=0),a<0&&(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function yi(t){var e=t[0],r=t[t.length-1];return e<r?[e,r]:[r,e]}function bi(t){return t.rangeExtent?t.rangeExtent():yi(t.range())}function xi(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function _i(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function wi(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:ki}e.layout.histogram=function(){var t=!0,r=Number,n=Kn,i=Xn;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),p=i.call(this,f,u,o),d=(o=-1,u.length),h=p.length-1,g=t?1:1/d;++o<h;)(s=c[o]=[]).dx=p[o+1]-(s.x=p[o]),s.y=0;if(h>0)for(o=-1;++o<d;)(l=u[o])>=f[0]&&l<=f[1]&&((s=c[e.bisect(p,l,1,h)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=_e(t),a):n},a.bins=function(t){return arguments.length?(i="number"===typeof t?function(e){return Zn(e,t)}:_e(t),a):i},a.frequency=function(e){return arguments.length?(t=!!e,a):t},a},e.layout.pack=function(){var t,r=e.layout.hierarchy().sort(Jn),n=0,i=[1,1];function a(e,a){var o=r.call(this,e,a),s=o[0],l=i[0],c=i[1],u=null==t?Math.sqrt:"function"===typeof t?t:function(){return t};if(s.x=s.y=0,In(s,(function(t){t.r=+u(t.value)})),In(s,ei),n){var f=n*(t?1:Math.max(2*s.r/l,2*s.r/c))/2;In(s,(function(t){t.r+=f})),In(s,ei),In(s,(function(t){t.r-=f}))}return ii(s,l/2,c/2,t?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(e){return arguments.length?(t=null==e||"function"===typeof e?e:+e,a):t},a.padding=function(t){return arguments.length?(n=+t,a):n},On(a,r)},e.layout.tree=function(){var t=e.layout.hierarchy().sort(null).value(null),r=oi,n=[1,1],i=null;function a(e,a){var c=t.call(this,e,a),f=c[0],p=o(f);if(In(p,s),p.parent.m=-p.z,Ln(p,l),i)Ln(f,u);else{var d=f,h=f,g=f;Ln(f,(function(t){t.x<d.x&&(d=t),t.x>h.x&&(h=t),t.depth>g.depth&&(g=t)}));var m=r(d,h)/2-d.x,v=n[0]/(h.x+r(h,d)/2+m),y=n[1]/(g.depth||1);Ln(f,(function(t){t.x=(t.x+m)*v,t.y=t.depth*y}))}return c}function o(t){for(var e,r={A:null,children:[t]},n=[r];null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o<s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}function s(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){ui(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+r(t._,i._));t.parent.A=c(t,i,t.parent.A||n[0])}function l(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,p=l.m;s=li(s),a=si(a),s&&a;)l=si(l),(o=li(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))>0&&(ci(fi(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,p+=l.m,u+=o.m;s&&!li(o)&&(o.t=s,o.m+=f-u),a&&!si(l)&&(l.t=a,l.m+=c-p,n=t)}return n}function u(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?u:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:u,a):i?n:null},On(a,t)},e.layout.cluster=function(){var t=e.layout.hierarchy().sort(null).value(null),r=oi,n=[1,1],i=!1;function a(e,a){var o,s=t.call(this,e,a),l=s[0],c=0;In(l,(function(t){var e=t.children;e&&e.length?(t.x=di(e),t.y=pi(e)):(t.x=o?c+=r(t,o):0,t.y=0,o=t)}));var u=hi(l),f=gi(l),p=u.x-r(u,f)/2,d=f.x+r(f,u)/2;return In(l,i?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),s}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},On(a,t)},e.layout.treemap=function(){var t,r=e.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=mi,s=!1,l="squarify",c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i<a;)n=(r=t[i]).value*(e<0?0:e),r.area=isNaN(n)||n<=0?0:n}function f(t){var e=t.children;if(e&&e.length){var r,n,i,a=o(t),s=[],c=e.slice(),p=1/0,g="slice"===l?a.dx:"dice"===l?a.dy:"slice-dice"===l?1&t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)>0;)s.push(r=c[i-1]),s.area+=r.area,"squarify"!==l||(n=d(s,g))<=p?(c.pop(),p=n):(s.area-=s.pop().area,h(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,p=1/0);s.length&&(h(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function p(t){var e=t.children;if(e&&e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(h(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(p)}}function d(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(r=t[o].area)&&(r<a&&(a=r),r>i&&(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function h(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u>r.dy)&&(u=r.dy);++o<s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u>r.dx)&&(u=r.dx);++o<s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(e){var n=t||r(e),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,t&&r.revalue(a),u([a],a.dx*a.dy/a.value),(t?p:f)(a),s&&(t=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?mi(e):vi(e,"number"===typeof r?[r,r,r,r]:r)}function r(e){return vi(e,t)}var n;return o=null==(a=t)?mi:"function"===(n=typeof t)?e:"number"===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(e){return arguments.length?(s=e,t=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+"",g):l},On(g,r)},e.random={normal:function(t,e){var r=arguments.length;return r<2&&(e=1),r<1&&(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i>1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=e.random.normal.apply(e,arguments);return function(){return Math.exp(t())}},bates:function(t){var r=e.random.irwinHall(t);return function(){return r()/t}},irwinHall:function(t){return function(){for(var e=0,r=0;r<t;r++)e+=Math.random();return e}}},e.scale={};var ki={floor:P,ceil:P};function Ti(t,r,n,i){var a=[],o=[],s=0,l=Math.min(t.length,r.length)-1;for(t[l]<t[0]&&(t=t.slice().reverse(),r=r.slice().reverse());++s<=l;)a.push(n(t[s-1],t[s])),o.push(i(r[s-1],r[s]));return function(r){var n=e.bisect(t,r,1,l)-1;return o[n](a[n](r))}}function Mi(t,e,r,n){var i,a;function o(){var o=Math.min(t.length,e.length)>2?Ti:xi,l=n?yn:vn;return i=o(t,e,l,r),a=o(e,t,l,Nr),s}function s(t){return i(t)}return s.invert=function(t){return a(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),o()):t},s.range=function(t){return arguments.length?(e=t,o()):e},s.rangeRound=function(t){return s.range(t).interpolate(an)},s.clamp=function(t){return arguments.length?(n=t,o()):n},s.interpolate=function(t){return arguments.length?(r=t,o()):r},s.ticks=function(e){return Ci(t,e)},s.tickFormat=function(e,r){return d3_scale_linearTickFormat(t,e,r)},s.nice=function(e){return Si(t,e),o()},s.copy=function(){return Mi(t,e,r,n)},o()}function Ai(t,r){return e.rebind(t,r,"range","rangeRound","interpolate","clamp")}function Si(t,e){return _i(t,wi(Ei(t,e)[2])),_i(t,wi(Ei(t,e)[2])),t}function Ei(t,e){null==e&&(e=10);var r=yi(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Ci(t,r){return e.range.apply(e,Ei(t,r))}function Oi(t,e,r,n){function i(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return r?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((n=e.map(Number)).map(i)),o):n},o.base=function(r){return arguments.length?(e=+r,t.domain(n.map(i)),o):e},o.nice=function(){var e=_i(n.map(i),r?Math:Li);return t.domain(e),n=e.map(a),o},o.ticks=function(){var t=yi(n),o=[],s=t[0],l=t[1],c=Math.floor(i(s)),u=Math.ceil(i(l)),f=e%1?2:e;if(isFinite(u-c)){if(r){for(;c<u;c++)for(var p=1;p<f;p++)o.push(a(c)*p);o.push(a(c))}else for(o.push(a(c));c++<u;)for(p=f-1;p>0;p--)o.push(a(c)*p);for(c=0;o[c]<s;c++);for(u=o.length;o[u-1]>l;u--);o=o.slice(c,u)}return o},o.copy=function(){return Oi(t.copy(),e,r,n)},Ai(o,t)}e.scale.linear=function(){return Mi([0,1],[0,1],Nr,!1)},e.scale.log=function(){return Oi(e.scale.linear().domain([0,1]),10,!0,[1,10])};var Li={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Ii(t,e,r){var n=Pi(e),i=Pi(1/e);function a(e){return t(n(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(n)),a):r},a.ticks=function(t){return Ci(r,t)},a.tickFormat=function(t,e){return d3_scale_linearTickFormat(r,t,e)},a.nice=function(t){return a.domain(Si(r,t))},a.exponent=function(o){return arguments.length?(n=Pi(e=o),i=Pi(1/e),t.domain(r.map(n)),a):e},a.copy=function(){return Ii(t.copy(),e,r)},Ai(a,t)}function Pi(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Di(t,r){var n,i,a;function o(e){return i[((n.get(e)||("range"===r.t?n.set(e,t.push(e)):NaN))-1)%i.length]}function s(r,n){return e.range(t.length).map((function(t){return r+n*t}))}return o.domain=function(e){if(!arguments.length)return t;t=[],n=new w;for(var i,a=-1,s=e.length;++a<s;)n.has(i=e[a])||n.set(i,t.push(i));return o[r.t].apply(o,r.a)},o.range=function(t){return arguments.length?(i=t,a=0,r={t:"range",a:arguments},o):i},o.rangePoints=function(e,n){arguments.length<2&&(n=0);var l=e[0],c=e[1],u=t.length<2?(l=(l+c)/2,0):(c-l)/(t.length-1+n);return i=s(l+u*n/2,u),a=0,r={t:"rangePoints",a:arguments},o},o.rangeRoundPoints=function(e,n){arguments.length<2&&(n=0);var l=e[0],c=e[1],u=t.length<2?(l=c=Math.round((l+c)/2),0):(c-l)/(t.length-1+n)|0;return i=s(l+Math.round(u*n/2+(c-l-(t.length-1+n)*u)/2),u),a=0,r={t:"rangeRoundPoints",a:arguments},o},o.rangeBands=function(e,n,l){arguments.length<2&&(n=0),arguments.length<3&&(l=n);var c=e[1]<e[0],u=e[c-0],f=(e[1-c]-u)/(t.length-n+2*l);return i=s(u+f*l,f),c&&i.reverse(),a=f*(1-n),r={t:"rangeBands",a:arguments},o},o.rangeRoundBands=function(e,n,l){arguments.length<2&&(n=0),arguments.length<3&&(l=n);var c=e[1]<e[0],u=e[c-0],f=e[1-c],p=Math.floor((f-u)/(t.length-n+2*l));return i=s(u+Math.round((f-u-(t.length-n)*p)/2),p),c&&i.reverse(),a=Math.round(p*(1-n)),r={t:"rangeRoundBands",a:arguments},o},o.rangeBand=function(){return a},o.rangeExtent=function(){return yi(r.a[0])},o.copy=function(){return Di(t,r)},o.domain(t)}e.scale.pow=function(){return Ii(e.scale.linear(),1,[0,1])},e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Di([],{t:"range",a:[[]]})},e.scale.category10=function(){return e.scale.ordinal().range(Ri)},e.scale.category20=function(){return e.scale.ordinal().range(zi)},e.scale.category20b=function(){return e.scale.ordinal().range(Ni)},e.scale.category20c=function(){return e.scale.ordinal().range(Fi)};var Ri=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(pe),zi=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(pe),Ni=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(pe),Fi=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(pe);function Bi(t,r){var n;function i(){var i=0,o=r.length;for(n=[];++i<o;)n[i-1]=e.quantile(t,i/o);return a}function a(t){if(!isNaN(t=+t))return r[e.bisect(n,t)]}return a.domain=function(e){return arguments.length?(t=e.map(h).filter(g).sort(d),i()):t},a.range=function(t){return arguments.length?(r=t,i()):r},a.quantiles=function(){return n},a.invertExtent=function(e){return(e=r.indexOf(e))<0?[NaN,NaN]:[e>0?n[e-1]:t[0],e<n.length?n[e]:t[t.length-1]]},a.copy=function(){return Bi(t,r)},i()}function ji(t,e,r){var n,i;function a(e){return r[Math.max(0,Math.min(i,Math.floor(n*(e-t))))]}function o(){return n=r.length/(e-t),i=r.length-1,a}return a.domain=function(r){return arguments.length?(t=+r[0],e=+r[r.length-1],o()):[t,e]},a.range=function(t){return arguments.length?(r=t,o()):r},a.invertExtent=function(e){return[e=(e=r.indexOf(e))<0?NaN:e/n+t,e+1/n]},a.copy=function(){return ji(t,e,r)},o()}function Ui(t,r){function n(n){if(n<=n)return r[e.bisect(t,n)]}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(r=t,n):r},n.invertExtent=function(e){return e=r.indexOf(e),[t[e-1],t[e]]},n.copy=function(){return Ui(t,r)},n}function Vi(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(r){return arguments.length?(t=r.map(e),e):t},e.ticks=function(e){return Ci(t,e)},e.tickFormat=function(e,r){return d3_scale_linearTickFormat(t,e,r)},e.copy=function(){return Vi(t)},e}function Hi(){return 0}e.scale.quantile=function(){return Bi([],[])},e.scale.quantize=function(){return ji(0,1,[0,1])},e.scale.threshold=function(){return Ui([.5],[0,1])},e.scale.identity=function(){return Vi([0,1])},e.svg={},e.svg.arc=function(){var t=Gi,e=Wi,r=Hi,n=qi,i=Yi,a=Xi,o=Zi;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-It,f=a.apply(this,arguments)-It,p=Math.abs(f-u),d=u>f?0:1;if(c<s&&(h=c,c=s,s=h),p>=Lt)return l(c,d)+(s?l(s,1-d):"")+"Z";var h,g,m,v,y,b,x,_,w,k,T,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&&(m=n===qi?Math.sqrt(s*s+c*c):+n.apply(this,arguments),d||(S*=-1),c&&(S=zt(m/c*Math.sin(v))),s&&(A=zt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),b=c*Math.sin(u+S),x=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)<=Ct?0:1;if(S&&Ki(y,b,x,_)===d^C){var O=(u+f)/2;y=c*Math.cos(O),b=c*Math.sin(O),x=_=null}}else y=b=0;if(s){w=s*Math.cos(f-A),k=s*Math.sin(f-A),T=s*Math.cos(u+A),M=s*Math.sin(u+A);var L=Math.abs(u-f+2*A)<=Ct?0:1;if(A&&Ki(w,k,T,M)===1-d^L){var I=(u+f)/2;w=s*Math.cos(I),k=s*Math.sin(I),T=M=null}}else w=k=0;if(p>St&&(h=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))>.001){g=s<c^d?0:1;var P=h,D=h;if(p<Ct){var R=null==T?[w,k]:null==x?[y,b]:Ue([y,b],[T,M],[x,_],[w,k]),z=y-R[0],N=b-R[1],F=x-R[0],B=_-R[1],j=1/Math.sin(Math.acos((z*F+N*B)/(Math.sqrt(z*z+N*N)*Math.sqrt(F*F+B*B)))/2),U=Math.sqrt(R[0]*R[0]+R[1]*R[1]);D=Math.min(h,(s-U)/(j-1)),P=Math.min(h,(c-U)/(j+1))}if(null!=x){var V=Ji(null==T?[w,k]:[T,M],[y,b],c,P,d),H=Ji([x,_],[w,k],c,P,d);h===P?E.push("M",V[0],"A",P,",",P," 0 0,",g," ",V[1],"A",c,",",c," 0 ",1-d^Ki(V[1][0],V[1][1],H[1][0],H[1][1]),",",d," ",H[1],"A",P,",",P," 0 0,",g," ",H[0]):E.push("M",V[0],"A",P,",",P," 0 1,",g," ",H[0])}else E.push("M",y,",",b);if(null!=T){var q=Ji([y,b],[T,M],s,-D,d),G=Ji([w,k],null==x?[y,b]:[x,_],s,-D,d);h===D?E.push("L",G[0],"A",D,",",D," 0 0,",g," ",G[1],"A",s,",",s," 0 ",d^Ki(G[1][0],G[1][1],q[1][0],q[1][1]),",",1-d," ",q[1],"A",D,",",D," 0 0,",g," ",q[0]):E.push("L",G[0],"A",D,",",D," 0 0,",g," ",q[0])}else E.push("L",w,",",k)}else E.push("M",y,",",b),null!=x&&E.push("A",c,",",c," 0 ",C,",",d," ",x,",",_),E.push("L",w,",",k),null!=T&&E.push("A",s,",",s," 0 ",L,",",1-d," ",T,",",M);return E.push("Z"),E.join("")}function l(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}return s.innerRadius=function(e){return arguments.length?(t=_e(e),s):t},s.outerRadius=function(t){return arguments.length?(e=_e(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=_e(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==qi?qi:_e(t),s):n},s.startAngle=function(t){return arguments.length?(i=_e(t),s):i},s.endAngle=function(t){return arguments.length?(a=_e(t),s):a},s.padAngle=function(t){return arguments.length?(o=_e(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-It;return[Math.cos(n)*r,Math.sin(n)*r]},s};var qi="auto";function Gi(t){return t.innerRadius}function Wi(t){return t.outerRadius}function Yi(t){return t.startAngle}function Xi(t){return t.endAngle}function Zi(t){return t&&t.padAngle}function Ki(t,e,r,n){return(t-r)*e-(e-n)*t>0?0:1}function Ji(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,p=e[0]+l,d=e[1]+c,h=(u+p)/2,g=(f+d)/2,m=p-u,v=d-f,y=m*m+v*v,b=r-n,x=u*d-p*f,_=(v<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*v-m*_)/y,k=(-x*m-v*_)/y,T=(x*v+m*_)/y,M=(-x*m+v*_)/y,A=w-h,S=k-g,E=T-h,C=M-g;return A*A+S*S>E*E+C*C&&(w=T,k=M),[[w-l,k-c],[w*r/b,k*r/b]]}function $i(){return!0}function Qi(t){var e=Re,r=ze,n=$i,i=ea,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,p=_e(e),d=_e(r);function h(){l.push("M",i(t(c),o))}for(;++u<f;)n.call(this,s=a[u],u)?c.push([+p.call(this,s,u),+d.call(this,s,u)]):c.length&&(h(),c=[]);return c.length&&h(),l.length?l.join(""):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a="function"===typeof t?i=t:(i=ta.get(t)||ea).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}e.svg.line=function(){return Qi(P)};var ta=e.map({linear:ea,"linear-closed":ra,step:na,"step-before":ia,"step-after":aa,basis:fa,"basis-open":pa,"basis-closed":da,bundle:ha,cardinal:la,"cardinal-open":oa,"cardinal-closed":sa,monotone:ka});function ea(t){return t.length>1?t.join("L"):t+"Z"}function ra(t){return t.join("L")+"Z"}function na(t){for(var e=0,r=t.length,n=t[0],i=[n[0],",",n[1]];++e<r;)i.push("H",(n[0]+(n=t[e])[0])/2,"V",n[1]);return r>1&&i.push("H",n[0]),i.join("")}function ia(t){for(var e=0,r=t.length,n=t[0],i=[n[0],",",n[1]];++e<r;)i.push("V",(n=t[e])[1],"H",n[0]);return i.join("")}function aa(t){for(var e=0,r=t.length,n=t[0],i=[n[0],",",n[1]];++e<r;)i.push("H",(n=t[e])[0],"V",n[1]);return i.join("")}function oa(t,e){return t.length<4?ea(t):t[1]+ca(t.slice(1,-1),ua(t,e))}function sa(t,e){return t.length<3?ra(t):t[0]+ca((t.push(t[0]),t),ua([t[t.length-2]].concat(t,[t[1]]),e))}function la(t,e){return t.length<3?ea(t):t[0]+ca(t,ua(t,e))}function ca(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return ea(t);var r=t.length!=e.length,n="",i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&&(n+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],l=2),e.length>1){s=e[1],a=t[l],l++,n+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var c=2;c<e.length;c++,l++)a=t[l],s=e[c],n+="S"+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1]}if(r){var u=t[l];n+="Q"+(a[0]+2*s[0]/3)+","+(a[1]+2*s[1]/3)+","+u[0]+","+u[1]}return n}function ua(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s<l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function fa(t){if(t.length<3)return ea(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,",",a,"L",ga(ya,o),",",ga(ya,s)];for(t.push(t[r-1]);++e<=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),ba(l,o,s);return t.pop(),l.push("L",n),l.join("")}function pa(t){if(t.length<4)return ea(t);for(var e,r=[],n=-1,i=t.length,a=[0],o=[0];++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);for(r.push(ga(ya,a)+","+ga(ya,o)),--n;++n<i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),ba(r,a,o);return r.join("")}function da(t){for(var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];++n<4;)r=t[n%i],o.push(r[0]),s.push(r[1]);for(e=[ga(ya,o),",",ga(ya,s)],--n;++n<a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),ba(e,o,s);return e.join("")}function ha(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c<=r;)i=c/r,(n=t[c])[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return fa(t)}function ga(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}ta.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var ma=[0,2/3,1/3,0],va=[0,1/3,2/3,0],ya=[0,1/6,2/3,1/6];function ba(t,e,r){t.push("C",ga(ma,e),",",ga(ma,r),",",ga(va,e),",",ga(va,r),",",ga(ya,e),",",ga(ya,r))}function xa(t,e){return(e[1]-t[1])/(e[0]-t[0])}function _a(t){for(var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=xa(i,a);++e<r;)n[e]=(o+(o=xa(i=a,a=t[e+1])))/2;return n[e]=o,n}function wa(t){for(var e,r,n,i,a=[],o=_a(t),s=-1,l=t.length-1;++s<l;)e=xa(t[s],t[s+1]),b(e)<St?o[s]=o[s+1]=0:(i=(r=o[s]/e)*r+(n=o[s+1]/e)*n)>9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n);for(s=-1;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function ka(t){return t.length<3?ea(t):t[0]+ca(t,wa(t))}function Ta(t){for(var e,r,n,i=-1,a=t.length;++i<a;)r=(e=t[i])[0],n=e[1]-It,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Ma(t){var e=Re,r=Re,n=0,i=ze,a=$i,o=ea,s=o.key,l=o,c="L",u=.7;function f(s){var f,p,d,h=[],g=[],m=[],v=-1,y=s.length,b=_e(e),x=_e(n),_=e===r?function(){return p}:_e(r),w=n===i?function(){return d}:_e(i);function k(){h.push("M",o(t(m),u),c,l(t(g.reverse()),u),"Z")}for(;++v<y;)a.call(this,f=s[v],v)?(g.push([p=+b.call(this,f,v),d=+x.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&&(k(),g=[],m=[]);return g.length&&k(),h.length?h.join(""):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s="function"===typeof t?o=t:(o=ta.get(t)||ea).key,l=o.reverse||o,c=o.closed?"M":"L",f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function Aa(t){return t.source}function Sa(t){return t.target}function Ea(t){return t.radius}function Ca(t){return[t.x,t.y]}function Oa(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-It;return[r*Math.cos(n),r*Math.sin(n)]}}function La(){return 64}function Ia(){return"circle"}function Pa(t){var e=Math.sqrt(t/Ct);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}e.svg.line.radial=function(){var t=Qi(Ta);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},ia.reverse=aa,aa.reverse=ia,e.svg.area=function(){return Ma(P)},e.svg.area.radial=function(){var t=Ma(Ta);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},e.svg.chord=function(){var t=Aa,e=Sa,r=Ea,n=Yi,i=Xi;function a(r,n){var i=o(this,t,r,n),a=o(this,e,r,n);return"M"+i.p0+l(i.r,i.p1,i.a1-i.a0)+(s(i,a)?c(i.r,i.p1,i.r,i.p0):c(i.r,i.p1,a.r,a.p0)+l(a.r,a.p1,a.a1-a.a0)+c(a.r,a.p1,i.r,i.p0))+"Z"}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-It,u=i.call(t,s,o)-It;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e){return t.a0==e.a0&&t.a1==e.a1}function l(t,e,r){return"A"+t+","+t+" 0 "+ +(r>Ct)+",1 "+e}function c(t,e,r,n){return"Q 0,0 "+n}return a.radius=function(t){return arguments.length?(r=_e(t),a):r},a.source=function(e){return arguments.length?(t=_e(e),a):t},a.target=function(t){return arguments.length?(e=_e(t),a):e},a.startAngle=function(t){return arguments.length?(n=_e(t),a):n},a.endAngle=function(t){return arguments.length?(i=_e(t),a):i},a},e.svg.diagonal=function(){var t=Aa,e=Sa,r=Ca;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(r))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return n.source=function(e){return arguments.length?(t=_e(e),n):t},n.target=function(t){return arguments.length?(e=_e(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},e.svg.diagonal.radial=function(){var t=e.svg.diagonal(),r=Ca,n=t.projection;return t.projection=function(t){return arguments.length?n(Oa(r=t)):r},t},e.svg.symbol=function(){var t=Ia,e=La;function r(r,n){return(Da.get(t.call(this,r,n))||Pa)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=_e(e),r):t},r.size=function(t){return arguments.length?(e=_e(t),r):e},r};var Da=e.map({circle:Pa,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*za)),r=e*za;return"M0,"+-e+"L"+r+",0 0,"+e+" "+-r+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Ra),r=e*Ra/2;return"M0,"+r+"L"+e+","+-r+" "+-e+","+-r+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Ra),r=e*Ra/2;return"M0,"+-r+"L"+e+","+r+" "+-e+","+r+"Z"}});e.svg.symbolTypes=Da.keys();var Ra=Math.sqrt(3),za=Math.tan(30*Pt);Z.transition=function(t){for(var e,r,n=ja||++Ha,i=Wa(t),a=[],o=Ua||{time:Date.now(),ease:Yr,delay:0,duration:250},s=-1,l=this.length;++s<l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u<f;)(r=c[u])&&Ya(r,u,i,n,o),e.push(r)}return Ba(a,i,n)},Z.interrupt=function(t){return this.each(null==t?Na:Fa(Wa(t)))};var Na=Fa(Wa());function Fa(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Ba(t,e,r){return q(t,Va),t.namespace=e,t.id=r,t}var ja,Ua,Va=[],Ha=0;function qa(t,e,r,n){var i=t.id,a=t.namespace;return dt(t,"function"===typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ga(t){return null==t&&(t=""),function(){this.textContent=t}}function Wa(t){return null==t?"__transition__":"__transition_"+t+"__"}function Ya(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function p(t){var e=f.delay;if(o.t=e+a,e<=t)return d(t-e);o.c=d}function d(r){var i=u.active,p=u[i];for(var d in p&&(p.timer.c=null,p.timer.t=NaN,--u.count,delete u[i],p.event&&p.event.interrupt.call(t,t.__data__,p.index)),u)if(+d<n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=h,Le((function(){return o.c&&h(r||1)&&(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&&f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&&c.push(n)})),l=f.ease,s=f.duration}function h(i){for(var a=i/s,o=l(a),p=c.length;p>0;)c[--p].call(t,o);if(a>=1)return f.event&&f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=Le(p,0,a),f=u[n]={tween:new w,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}Va.call=Z.call,Va.empty=Z.empty,Va.node=Z.node,Va.size=Z.size,e.transition=function(t,r){return t&&t.transition?ja?t.transition(r):t:e.selection().transition(t)},e.transition.prototype=Va,Va.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=K(t);for(var s=-1,l=this.length;++s<l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u<f;)(n=c[u])&&(r=t.call(n,n.__data__,u,s))?("__data__"in n&&(r.__data__=n.__data__),Ya(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return Ba(o,a,i)},Va.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=J(t);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],p=-1,d=f.length;++p<d;)if(n=f[p]){a=n[s][o],r=t.call(n,n.__data__,p,c),l.push(e=[]);for(var h=-1,g=r.length;++h<g;)(i=r[h])&&Ya(i,h,s,o,a),e.push(i)}return Ba(l,s,o)},Va.filter=function(t){var e,r,n=[];"function"!==typeof t&&(t=ft(t));for(var i=0,a=this.length;i<a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s<l;s++)(r=o[s])&&t.call(r,r.__data__,s,i)&&e.push(r)}return Ba(n,this.namespace,this.id)},Va.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(t):dt(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},Va.attr=function(t,r){if(arguments.length<2){for(r in t)this.attr(r,t[r]);return this}var n="transform"==t?mn:Nr,i=e.ns.qualify(t);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+="",function(){var e,r=this.getAttribute(i);return r!==t&&(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+="",function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&&(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return qa(this,"attr."+t,r,i.local?l:s)},Va.attrTween=function(t,r){var n=e.ns.qualify(t);function i(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&&function(t){this.setAttribute(n,i(t))}}function a(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&&function(t){this.setAttributeNS(n.space,n.local,i(t))}}return this.tween("attr."+t,n.local?a:i)},Va.style=function(t,e,r){var n=arguments.length;if(n<3){if("string"!==typeof t){for(r in n<2&&(e=""),t)this.style(r,t[r],e);return this}r=""}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+="",function(){var n,i=s(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(n=Nr(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return qa(this,"style."+t,e,a)},Va.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,s(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,n)},Va.text=function(t){return qa(this,"text",t,Ga)},Va.remove=function(){var t=this.namespace;return this.each("end.transition",(function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)}))},Va.ease=function(t){var r=this.id,n=this.namespace;return arguments.length<1?this.node()[n][r].ease:("function"!==typeof t&&(t=e.ease.apply(e,arguments)),dt(this,(function(e){e[n][r].ease=t})))},Va.delay=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].delay:dt(this,"function"===typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},Va.duration=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].duration:dt(this,"function"===typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},Va.each=function(t,r){var n=this.id,i=this.namespace;if(arguments.length<2){var a=Ua,o=ja;try{ja=n,dt(this,(function(e,r,a){Ua=e[i][n],t.call(e,e.__data__,r,a)}))}finally{Ua=a,ja=o}}else dt(this,(function(a){var o=a[i][n];(o.event||(o.event=e.dispatch("start","end","interrupt"))).on(t,r)}));return this},Va.transition=function(){for(var t,e,r,n=this.id,i=++Ha,a=this.namespace,o=[],s=0,l=this.length;s<l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u<f;u++)(e=c[u])&&Ya(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return Ba(o,a,i)},e.svg.axis=function(){var t,r=e.scale.linear(),n=Xa,a=6,o=6,s=3,l=[10],c=null;function u(i){i.each((function(){var i,u=e.select(this),f=this.__chart__||r,p=this.__chart__=r.copy(),d=null==c?p.ticks?p.ticks.apply(p,l):p.domain():c,h=null==t?p.tickFormat?p.tickFormat.apply(p,l):P:t,g=u.selectAll(".tick").data(d,p),m=g.enter().insert("g",".domain").attr("class","tick").style("opacity",St),v=e.transition(g.exit()).style("opacity",St).remove(),y=e.transition(g.order()).style("opacity",1),b=Math.max(a,0)+s,x=bi(p),_=u.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),e.transition(_));m.append("line"),m.append("text");var k,T,M,A,S=m.select("line"),E=y.select("line"),C=g.select("text").text(h),O=m.select("text"),L=y.select("text"),I="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(i=Ka,k="x",M="y",T="x2",A="y2",C.attr("dy",I<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+x[0]+","+I*o+"V0H"+x[1]+"V"+I*o)):(i=Ja,k="y",M="x",T="y2",A="x2",C.attr("dy",".32em").style("text-anchor",I<0?"end":"start"),w.attr("d","M"+I*o+","+x[0]+"H0V"+x[1]+"H"+I*o)),S.attr(A,I*a),O.attr(M,I*b),E.attr(T,0).attr(A,I*a),L.attr(k,0).attr(M,I*b),p.rangeBand){var D=p,R=D.rangeBand()/2;f=p=function(t){return D(t)+R}}else f.rangeBand?f=p:v.call(i,p,f);m.call(i,f,p),y.call(i,p,p)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(n=t in Za?t+"":Xa,u):n},u.ticks=function(){return arguments.length?(l=i(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(e){return arguments.length?(t=e,u):t},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&&u},u};var Xa="bottom",Za={top:1,right:1,bottom:1,left:1};function Ka(t,e,r){t.attr("transform",(function(t){var n=e(t);return"translate("+(isFinite(n)?n:r(t))+",0)"}))}function Ja(t,e,r){t.attr("transform",(function(t){var n=e(t);return"translate(0,"+(isFinite(n)?n:r(t))+")"}))}e.svg.brush=function(){var t,r,n=V(p,"brushstart","brush","brushend"),i=null,a=null,o=[0,0],l=[0,0],c=!0,u=!0,f=Qa[0];function p(t){t.each((function(){var t=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",m).on("touchstart.brush",m),r=t.selectAll(".background").data([0]);r.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=t.selectAll(".resize").data(f,P);n.exit().remove(),n.enter().append("g").attr("class",(function(t){return"resize "+t})).style("cursor",(function(t){return $a[t]})).append("rect").attr("x",(function(t){return/[ew]$/.test(t)?-3:null})).attr("y",(function(t){return/^[ns]/.test(t)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",p.empty()?"none":null);var o,s=e.transition(t),l=e.transition(r);i&&(o=bi(i),l.attr("x",o[0]).attr("width",o[1]-o[0]),h(s)),a&&(o=bi(a),l.attr("y",o[0]).attr("height",o[1]-o[0]),g(s)),d(s)}))}function d(t){t.selectAll(".resize").attr("transform",(function(t){return"translate("+o[+/e$/.test(t)]+","+l[+/^s/.test(t)]+")"}))}function h(t){t.select(".extent").attr("x",o[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",o[1]-o[0])}function g(t){t.select(".extent").attr("y",l[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function m(){var f,m,v=this,y=e.select(e.event.target),b=n.of(v,arguments),x=e.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&&i,k=!/^(e|w)$/.test(_)&&a,T=y.classed("extent"),M=kt(v),A=e.mouse(v),S=e.select(s(v)).on("keydown.brush",O).on("keyup.brush",L);if(e.event.changedTouches?S.on("touchmove.brush",I).on("touchend.brush",D):S.on("mousemove.brush",I).on("mouseup.brush",D),x.interrupt().selectAll("*").interrupt(),T)A[0]=o[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[o[1-E]-A[0],l[1-C]-A[1]],A[0]=o[E],A[1]=l[C]}else e.event.altKey&&(f=A.slice());function O(){32==e.event.keyCode&&(T||(f=null,A[0]-=o[1],A[1]-=l[1],T=2),j())}function L(){32==e.event.keyCode&&2==T&&(A[0]+=o[1],A[1]+=l[1],T=0,j())}function I(){var t=e.mouse(v),r=!1;m&&(t[0]+=m[0],t[1]+=m[1]),T||(e.event.altKey?(f||(f=[(o[0]+o[1])/2,(l[0]+l[1])/2]),A[0]=o[+(t[0]<f[0])],A[1]=l[+(t[1]<f[1])]):f=null),w&&P(t,i,0)&&(h(x),r=!0),k&&P(t,a,1)&&(g(x),r=!0),r&&(d(x),b({type:"brush",mode:T?"move":"resize"}))}function P(e,n,i){var a,s,p=bi(n),d=p[0],h=p[1],g=A[i],m=i?l:o,v=m[1]-m[0];if(T&&(d-=g,h-=v+g),a=(i?u:c)?Math.max(d,Math.min(h,e[i])):e[i],T?s=(a+=g)+v:(f&&(g=Math.max(d,Math.min(h,2*f[i]-a))),g<a?(s=a,a=g):s=g),m[0]!=a||m[1]!=s)return i?r=null:t=null,m[0]=a,m[1]=s,!0}function D(){I(),x.style("pointer-events","all").selectAll(".resize").style("display",p.empty()?"none":null),e.select("body").style("cursor",null),S.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),M(),b({type:"brushend"})}x.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",y.style("cursor")),b({type:"brushstart"}),I()}return p.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:o,y:l,i:t,j:r},s=this.__chart__||a;this.__chart__=a,ja?e.select(this).transition().each("start.brush",(function(){t=s.i,r=s.j,o=s.x,l=s.y,i({type:"brushstart"})})).tween("brush:brush",(function(){var e=Fr(o,a.x),n=Fr(l,a.y);return t=r=null,function(t){o=a.x=e(t),l=a.y=n(t),i({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=a.i,r=a.j,i({type:"brush",mode:"resize"}),i({type:"brushend"})})):(i({type:"brushstart"}),i({type:"brush",mode:"resize"}),i({type:"brushend"}))}))},p.x=function(t){return arguments.length?(f=Qa[!(i=t)<<1|!a],p):i},p.y=function(t){return arguments.length?(f=Qa[!i<<1|!(a=t)],p):a},p.clamp=function(t){return arguments.length?(i&&a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&&(u=!!t),p):i&&a?[c,u]:i?c:a?u:null},p.extent=function(e){var n,s,c,u,f;return arguments.length?(i&&(n=e[0],s=e[1],a&&(n=n[0],s=s[0]),t=[n,s],i.invert&&(n=i(n),s=i(s)),s<n&&(f=n,n=s,s=f),n==o[0]&&s==o[1]||(o=[n,s])),a&&(c=e[0],u=e[1],i&&(c=c[1],u=u[1]),r=[c,u],a.invert&&(c=a(c),u=a(u)),u<c&&(f=c,c=u,u=f),c==l[0]&&u==l[1]||(l=[c,u])),p):(i&&(t?(n=t[0],s=t[1]):(n=o[0],s=o[1],i.invert&&(n=i.invert(n),s=i.invert(s)),s<n&&(f=n,n=s,s=f))),a&&(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&&(c=a.invert(c),u=a.invert(u)),u<c&&(f=c,c=u,u=f))),i&&a?[[n,c],[s,u]]:i?[n,s]:a&&[c,u])},p.clear=function(){return p.empty()||(o=[0,0],l=[0,0],t=r=null),p},p.empty=function(){return!!i&&o[0]==o[1]||!!a&&l[0]==l[1]},e.rebind(p,n,"on")};var $a={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qa=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function to(t){return JSON.parse(t.responseText)}function eo(t){var e=a.createRange();return e.selectNode(a.body),e.createContextualFragment(t.responseText)}e.text=we((function(t){return t.responseText})),e.json=function(t,e){return ke(t,"application/json",to,e)},e.html=function(t,e){return ke(t,"text/html",eo,e)},e.xml=we((function(t){return t.responseXML})),"function"===typeof t&&t.amd?(this.d3=e,t(e)):"object"===typeof r&&r.exports?r.exports=e:this.d3=e}).apply(self)},{}],59:[function(t,e,r){"use strict";e.exports=t("./quad")},{"./quad":60}],60:[function(t,e,r){"use strict";var n=t("binary-search-bounds"),i=t("clamp"),a=t("parse-rect"),o=t("array-bounds"),s=t("pick-by-alias"),l=t("defined"),c=t("flatten-vertex-data"),u=t("is-obj"),f=t("dtype"),p=t("math-log2"),d=1073741824;function h(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l<c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,"float64"),e=s(e,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;var g,m=h(t,i),v=t.length>>>1;e.dtype||(e.dtype="array"),"string"===typeof e.dtype?g=new(f(e.dtype))(v):e.dtype&&(g=e.dtype,Array.isArray(g)&&(g.length=v));for(var y=0;y<v;++y)g[y]=y;var b=[],x=[],_=[],w=[];C(0,0,1,g,0,1);for(var k=0,T=0;T<b.length;T++){var M=b[T];if(g.set)g.set(M,k);else for(var A=0,S=M.length;A<S;A++)g[A+k]=M[A];var E=k+b[T].length;w[T]=[k,E],k=E}return g.range=O,g;function C(t,e,n,i,a,o){if(!i.length)return null;var s=b[a]||(b[a]=[]),l=_[a]||(_[a]=[]),c=x[a]||(x[a]=[]),u=s.length;if(++a>r||o>d){for(var f=0;f<i.length;f++)s.push(i[f]),l.push(o),c.push(null,null,null,null);return u}if(s.push(i[0]),l.push(o),i.length<=1)return c.push(null,null,null,null),u;for(var p=.5*n,h=t+p,g=e+p,v=[],y=[],w=[],k=[],T=1,M=i.length;T<M;T++){var A=i[T],S=m[2*A],E=m[2*A+1];S<h?E<g?v.push(A):y.push(A):E<g?w.push(A):k.push(A)}return o<<=2,c.push(C(t,e,p,v,a,o),C(t,g,p,y,a,o+1),C(h,e,p,w,a,o+2),C(h,g,p,k,a,o+3)),u}function O(){for(var e,r=[],n=arguments.length;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&&null==o.l&&null==o.left||(r=[o],e={}),e=s(o,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else e={};r.length||(r=i);var c,f=a.apply(void 0,r),d=[Math.min(f.x,f.x+f.width),Math.min(f.y,f.y+f.height),Math.max(f.x,f.x+f.width),Math.max(f.y,f.y+f.height)],g=d[0],m=d[1],v=d[2],y=d[3],_=h([g,m,v,y],i),w=_[0],k=_[1],T=_[2],M=_[3],A=l(e.level,b.length);if(null!=e.d&&("number"===typeof e.d?c=[e.d,e.d]:e.d.length&&(c=e.d),A=Math.min(Math.max(Math.ceil(-p(Math.abs(c[0])/(i[2]-i[0]))),Math.ceil(-p(Math.abs(c[1])/(i[3]-i[1])))),A)),A=Math.min(A,b.length),e.lod)return L(w,k,T,M,A);var S=[];function E(e,r,n,i,a,o){if(null!==a&&null!==o&&!(w>e+n||k>r+n||T<e||M<r)&&!(i>=A)&&a!==o){var s=b[i];void 0===o&&(o=s.length);for(var l=a;l<o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u>=g&&u<=v&&f>=m&&f<=y&&S.push(c)}var p=x[i],d=p[4*a+0],h=p[4*a+1],_=p[4*a+2],O=p[4*a+3],L=C(p,a+1),I=.5*n,P=i+1;E(e,r,I,P,d,h||_||O||L),E(e,r+I,I,P,h,_||O||L),E(e+I,r,I,P,_,O||L),E(e+I,r+I,I,P,O,L)}}function C(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n>t.length)return null;return r}return E(0,0,1,0,0,1),S}function L(t,e,r,i,a){for(var o=[],s=0;s<a;s++){var l=_[s],c=w[s][0],u=I(t,e,s),f=I(r,i,s),p=n.ge(l,u),d=n.gt(l,f,p,l.length-1);o[s]=[p+c,d+c]}return o}function I(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s<r;s++)n<<=2,n+=t<i?e<a?0:1:e<a?2:3,o*=.5,i+=t<i?-o:o,a+=e<a?-o:o;return n}}},{"array-bounds":71,"binary-search-bounds":80,clamp:86,defined:124,dtype:127,"flatten-vertex-data":191,"is-obj":235,"math-log2":240,"parse-rect":249,"pick-by-alias":253}],61:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@turf/meta"),i=6378137;function a(t){return n.geomReduce(t,(function(t,e){return t+o(e)}),0)}function o(t){var e,r=0;switch(t.type){case"Polygon":return s(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)r+=s(t.coordinates[e]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function s(t){var e=0;if(t&&t.length>0){e+=Math.abs(l(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(l(t[r]))}return e}function l(t){var e,r,n,a,o,s,l=0,u=t.length;if(u>2){for(s=0;s<u;s++)s===u-2?(n=u-2,a=u-1,o=0):s===u-1?(n=u-1,a=0,o=1):(n=s,a=s+1,o=s+2),e=t[n],r=t[a],l+=(c(t[o][0])-c(e[0]))*Math.sin(c(r[1]));l=l*i*i/2}return l}function c(t){return t*Math.PI/180}r.default=a},{"@turf/meta":63}],62:[function(t,e,r){"use strict";function n(t,e,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){switch(void 0===r&&(r={}),t){case"Point":return a(e).geometry;case"LineString":return c(e).geometry;case"Polygon":return s(e).geometry;case"MultiPoint":return d(e).geometry;case"MultiLineString":return p(e).geometry;case"MultiPolygon":return h(e).geometry;default:throw new Error(t+" is invalid")}}function a(t,e,r){if(void 0===r&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!M(t[0])||!M(t[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:t},e,r)}function o(t,e,r){return void 0===r&&(r={}),f(t.map((function(t){return a(t,e)})),r)}function s(t,e,r){void 0===r&&(r={});for(var i=0,a=t;i<a.length;i++){var o=a[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:t},e,r)}function l(t,e,r){return void 0===r&&(r={}),f(t.map((function(t){return s(t,e)})),r)}function c(t,e,r){if(void 0===r&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:t},e,r)}function u(t,e,r){return void 0===r&&(r={}),f(t.map((function(t){return c(t,e)})),r)}function f(t,e){void 0===e&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function p(t,e,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:t},e,r)}function d(t,e,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:t},e,r)}function h(t,e,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:t},e,r)}function g(t,e,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:t},e,r)}function m(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function v(t,e){void 0===e&&(e="kilometers");var n=r.factors[e];if(!n)throw new Error(e+" units is invalid");return t*n}function y(t,e){void 0===e&&(e="kilometers");var n=r.factors[e];if(!n)throw new Error(e+" units is invalid");return t/n}function b(t,e){return _(y(t,e))}function x(t){var e=t%360;return e<0&&(e+=360),e}function _(t){return t%(2*Math.PI)*180/Math.PI}function w(t){return t%360*Math.PI/180}function k(t,e,r){if(void 0===e&&(e="kilometers"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return v(y(t,e),r)}function T(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=r.areaFactors[e];if(!i)throw new Error("invalid original units");var a=r.areaFactors[n];if(!a)throw new Error("invalid final units");return t/i*a}function M(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function A(t){return!!t&&t.constructor===Object}function S(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!M(t))throw new Error("bbox must only contain numbers")}))}function E(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}Object.defineProperty(r,"__esModule",{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:1.0936*r.earthRadius},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1.0936133},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=i,r.point=a,r.points=o,r.polygon=s,r.polygons=l,r.lineString=c,r.lineStrings=u,r.featureCollection=f,r.multiLineString=p,r.multiPoint=d,r.multiPolygon=h,r.geometryCollection=g,r.round=m,r.radiansToLength=v,r.lengthToRadians=y,r.lengthToDegrees=b,r.bearingToAzimuth=x,r.radiansToDegrees=_,r.degreesToRadians=w,r.convertLength=k,r.convertArea=T,r.isNumber=M,r.isObject=A,r.validateBBox=S,r.validateId=E},{}],63:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@turf/helpers");function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,p=0,d=0,h=t.type,g="FeatureCollection"===h,m="Feature"===h,v=g?t.features.length:1,y=0;y<v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var b=0;b<l;b++){var x=0,_=0;if(null!==(s=f?u.geometries[b]:u)){c=s.coordinates;var w=s.type;switch(p=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,y,x,_))return!1;d++,x++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(!1===e(c[n],d,y,x,_))return!1;d++,"MultiPoint"===w&&x++}"LineString"===w&&x++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(a=0;a<c[n].length-p;a++){if(!1===e(c[n][a],d,y,x,_))return!1;d++}"MultiLineString"===w&&x++,"Polygon"===w&&_++}"Polygon"===w&&x++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(_=0,a=0;a<c[n].length;a++){for(o=0;o<c[n][a].length-p;o++){if(!1===e(c[n][a][o],d,y,x,_))return!1;d++}_++}x++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function a(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&&void 0===r?t:e(a,t,n,i,o,s)}),n),a}function o(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&!1!==e(t.features[r].properties,r);r++);break;case"Feature":e(t.properties,0)}}function s(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function l(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length&&!1!==e(t.features[r],r);r++);}function c(t,e,r){var n=r;return l(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function u(t){var e=[];return i(t,(function(t){e.push(t)})),e}function f(t,e){var r,n,i,a,o,s,l,c,u,f,p=0,d="FeatureCollection"===t.type,h="Feature"===t.type,g=d?t.features.length:1;for(r=0;r<g;r++){for(s=d?t.features[r].geometry:h?t.geometry:t,c=d?t.features[r].properties:h?t.properties:{},u=d?t.features[r].bbox:h?t.bbox:void 0,f=d?t.features[r].id:h?t.id:void 0,o=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(a,p,c,u,f))return!1;break;case"GeometryCollection":for(n=0;n<a.geometries.length;n++)if(!1===e(a.geometries[n],p,c,u,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,p,c,u,f))return!1;p++}}function p(t,e,r){var n=r;return f(t,(function(t,i,a,o,s){n=0===i&&void 0===r?t:e(n,t,i,a,o,s)})),n}function d(t,e){f(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function h(t,e,r){var n=r;return d(t,(function(t,i,a){n=0===i&&0===a&&void 0===r?t:e(n,t,i,a)})),n}function g(t,e){d(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,p,d,h){if(void 0===l||r>c||d>u||h>f)return l=i,c=r,u=d,f=h,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,h,o))return!1;o++,l=i}))&&void 0}}}))}function m(t,e,r){var n=r,i=!1;return g(t,(function(t,a,o,s,l){n=!1===i&&void 0===r?t:e(n,t,a,o,s,l),i=!0})),n}function v(t,e){if(!t)throw new Error("geojson is required");d(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case"LineString":if(!1===e(t,r,i,0,0))return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}function y(t,e,r){var n=r;return v(t,(function(t,i,a,o){n=0===i&&void 0===r?t:e(n,t,i,a,o)})),n}function b(t,e){if(e=e||{},!n.isObject(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case"MultiLineString":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case"MultiPolygon":return a<0&&(a=c.length+a),o<0&&(o=c[a].length+o),s<0&&(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error("geojson is invalid")}function x(t,e){if(e=e||{},!n.isObject(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return n.point(c,l,e);case"MultiPoint":return a<0&&(a=c.length+a),n.point(c[a],l,e);case"LineString":return s<0&&(s=c.length+s),n.point(c[s],l,e);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),n.point(c[o][s],l,e);case"MultiLineString":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),n.point(c[a][s],l,e);case"MultiPolygon":return a<0&&(a=c.length+a),o<0&&(o=c[a].length+o),s<0&&(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error("geojson is invalid")}r.coordEach=i,r.coordReduce=a,r.propEach=o,r.propReduce=s,r.featureEach=l,r.featureReduce=c,r.coordAll=u,r.geomEach=f,r.geomReduce=p,r.flattenEach=d,r.flattenReduce=h,r.segmentEach=g,r.segmentReduce=m,r.lineEach=v,r.lineReduce=y,r.findSegment=b,r.findPoint=x},{"@turf/helpers":62}],64:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@turf/meta");function i(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}i.default=i,r.default=i},{"@turf/meta":66}],65:[function(t,e,r){arguments[4][62][0].apply(r,arguments)},{dup:62}],66:[function(t,e,r){arguments[4][63][0].apply(r,arguments)},{"@turf/helpers":65,dup:63}],67:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@turf/meta"),i=t("@turf/helpers");function a(t,e){void 0===e&&(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}r.default=a},{"@turf/helpers":68,"@turf/meta":69}],68:[function(t,e,r){"use strict";function n(t,e,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){switch(void 0===r&&(r={}),t){case"Point":return a(e).geometry;case"LineString":return c(e).geometry;case"Polygon":return s(e).geometry;case"MultiPoint":return d(e).geometry;case"MultiLineString":return p(e).geometry;case"MultiPolygon":return h(e).geometry;default:throw new Error(t+" is invalid")}}function a(t,e,r){return void 0===r&&(r={}),n({type:"Point",coordinates:t},e,r)}function o(t,e,r){return void 0===r&&(r={}),f(t.map((function(t){return a(t,e)})),r)}function s(t,e,r){void 0===r&&(r={});for(var i=0,a=t;i<a.length;i++){var o=a[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:t},e,r)}function l(t,e,r){return void 0===r&&(r={}),f(t.map((function(t){return s(t,e)})),r)}function c(t,e,r){if(void 0===r&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:t},e,r)}function u(t,e,r){return void 0===r&&(r={}),f(t.map((function(t){return c(t,e)})),r)}function f(t,e){void 0===e&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function p(t,e,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:t},e,r)}function d(t,e,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:t},e,r)}function h(t,e,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:t},e,r)}function g(t,e,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:t},e,r)}function m(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function v(t,e){void 0===e&&(e="kilometers");var n=r.factors[e];if(!n)throw new Error(e+" units is invalid");return t*n}function y(t,e){void 0===e&&(e="kilometers");var n=r.factors[e];if(!n)throw new Error(e+" units is invalid");return t/n}function b(t,e){return _(y(t,e))}function x(t){var e=t%360;return e<0&&(e+=360),e}function _(t){return t%(2*Math.PI)*180/Math.PI}function w(t){return t%360*Math.PI/180}function k(t,e,r){if(void 0===e&&(e="kilometers"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return v(y(t,e),r)}function T(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=r.areaFactors[e];if(!i)throw new Error("invalid original units");var a=r.areaFactors[n];if(!a)throw new Error("invalid final units");return t/i*a}function M(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)&&!/^\s*$/.test(t)}function A(t){return!!t&&t.constructor===Object}function S(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!M(t))throw new Error("bbox must only contain numbers")}))}function E(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function C(){throw new Error("method has been renamed to `radiansToDegrees`")}function O(){throw new Error("method has been renamed to `degreesToRadians`")}function L(){throw new Error("method has been renamed to `lengthToDegrees`")}function I(){throw new Error("method has been renamed to `lengthToRadians`")}function P(){throw new Error("method has been renamed to `radiansToLength`")}function D(){throw new Error("method has been renamed to `bearingToAzimuth`")}function R(){throw new Error("method has been renamed to `convertLength`")}Object.defineProperty(r,"__esModule",{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=i,r.point=a,r.points=o,r.polygon=s,r.polygons=l,r.lineString=c,r.lineStrings=u,r.featureCollection=f,r.multiLineString=p,r.multiPoint=d,r.multiPolygon=h,r.geometryCollection=g,r.round=m,r.radiansToLength=v,r.lengthToRadians=y,r.lengthToDegrees=b,r.bearingToAzimuth=x,r.radiansToDegrees=_,r.degreesToRadians=w,r.convertLength=k,r.convertArea=T,r.isNumber=M,r.isObject=A,r.validateBBox=S,r.validateId=E,r.radians2degrees=C,r.degrees2radians=O,r.distanceToDegrees=L,r.distanceToRadians=I,r.radiansToDistance=P,r.bearingToAngle=D,r.convertDistance=R},{}],69:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@turf/helpers");function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,p=0,d=0,h=t.type,g="FeatureCollection"===h,m="Feature"===h,v=g?t.features.length:1,y=0;y<v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var b=0;b<l;b++){var x=0,_=0;if(null!==(s=f?u.geometries[b]:u)){c=s.coordinates;var w=s.type;switch(p=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,d,y,x,_))return!1;d++,x++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(!1===e(c[n],d,y,x,_))return!1;d++,"MultiPoint"===w&&x++}"LineString"===w&&x++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(a=0;a<c[n].length-p;a++){if(!1===e(c[n][a],d,y,x,_))return!1;d++}"MultiLineString"===w&&x++,"Polygon"===w&&_++}"Polygon"===w&&x++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(_=0,a=0;a<c[n].length;a++){for(o=0;o<c[n][a].length-p;o++){if(!1===e(c[n][a][o],d,y,x,_))return!1;d++}_++}x++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function a(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&&void 0===r?t:e(a,t,n,i,o,s)}),n),a}function o(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&!1!==e(t.features[r].properties,r);r++);break;case"Feature":e(t.properties,0)}}function s(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function l(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length&&!1!==e(t.features[r],r);r++);}function c(t,e,r){var n=r;return l(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function u(t){var e=[];return i(t,(function(t){e.push(t)})),e}function f(t,e){var r,n,i,a,o,s,l,c,u,f,p=0,d="FeatureCollection"===t.type,h="Feature"===t.type,g=d?t.features.length:1;for(r=0;r<g;r++){for(s=d?t.features[r].geometry:h?t.geometry:t,c=d?t.features[r].properties:h?t.properties:{},u=d?t.features[r].bbox:h?t.bbox:void 0,f=d?t.features[r].id:h?t.id:void 0,o=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(a,p,c,u,f))return!1;break;case"GeometryCollection":for(n=0;n<a.geometries.length;n++)if(!1===e(a.geometries[n],p,c,u,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,p,c,u,f))return!1;p++}}function p(t,e,r){var n=r;return f(t,(function(t,i,a,o,s){n=0===i&&void 0===r?t:e(n,t,i,a,o,s)})),n}function d(t,e){f(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function h(t,e,r){var n=r;return d(t,(function(t,i,a){n=0===i&&0===a&&void 0===r?t:e(n,t,i,a)})),n}function g(t,e){d(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,p,d,h){if(void 0===l||r>c||d>u||h>f)return l=i,c=r,u=d,f=h,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,h,o))return!1;o++,l=i}))&&void 0}}}))}function m(t,e,r){var n=r,i=!1;return g(t,(function(t,a,o,s,l){n=!1===i&&void 0===r?t:e(n,t,a,o,s,l),i=!0})),n}function v(t,e){if(!t)throw new Error("geojson is required");d(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case"LineString":if(!1===e(t,r,i,0,0))return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}function y(t,e,r){var n=r;return v(t,(function(t,i,a,o){n=0===i&&void 0===r?t:e(n,t,i,a,o)})),n}function b(t,e){if(e=e||{},!n.isObject(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case"MultiLineString":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case"MultiPolygon":return a<0&&(a=c.length+a),o<0&&(o=c[a].length+o),s<0&&(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error("geojson is invalid")}function x(t,e){if(e=e||{},!n.isObject(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return n.point(c,l,e);case"MultiPoint":return a<0&&(a=c.length+a),n.point(c[a],l,e);case"LineString":return s<0&&(s=c.length+s),n.point(c[s],l,e);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),n.point(c[o][s],l,e);case"MultiLineString":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),n.point(c[a][s],l,e);case"MultiPolygon":return a<0&&(a=c.length+a),o<0&&(o=c[a].length+o),s<0&&(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error("geojson is invalid")}r.coordEach=i,r.coordReduce=a,r.propEach=o,r.propReduce=s,r.featureEach=l,r.featureReduce=c,r.coordAll=u,r.geomEach=f,r.geomReduce=p,r.flattenEach=d,r.flattenReduce=h,r.segmentEach=g,r.segmentReduce=m,r.lineEach=v,r.lineReduce=y,r.findSegment=b,r.findPoint=x},{"@turf/helpers":68}],70:[function(t,e,r){function n(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case"a":t[6]+=n,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=n;break;default:for(var s=1;s<t.length;)t[s++]+=n,t[s++]+=i}switch(o){case"Z":n=e,i=r;break;case"H":n=t[1];break;case"V":i=t[1];break;case"M":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}e.exports=n},{}],71:[function(t,e,r){"use strict";function n(t,e){if(!t||null==t.length)throw Error("Argument should be an array");e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n<e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o<s;o+=e)t[o]>i&&(i=t[o]),t[o]<a&&(a=t[o]);r[n]=a,r[e+n]=i}return r}e.exports=n},{}],72:[function(t,e,r){"use strict";e.exports=function(t,e,r){if("function"===typeof Array.prototype.findIndex)return t.findIndex(e,r);if("function"!==typeof e)throw new TypeError("predicate must be a function");var n=Object(t),i=n.length;if(0===i)return-1;for(var a=0;a<i;a++)if(e.call(r,n[a],a,n))return a;return-1}},{}],73:[function(t,e,r){"use strict";var n=t("array-bounds");function i(t,e,r){if(!t||null==t.length)throw Error("Argument should be an array");null==e&&(e=1),null==r&&(r=n(t,e));for(var i=0;i<e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&&o===-1/0)for(s=i;s<l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s<l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s<l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s<l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}e.exports=i},{"array-bounds":71}],74:[function(t,e,r){e.exports=function(t,e){var r="number"===typeof t,n="number"===typeof e;r&&!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error("array length must be positive");for(var a=new Array(i),o=0,s=t;o<i;o++,s++)a[o]=s;return a}},{}],75:[function(t,e,n){(function(r){(function(){"use strict";var n=t("object-assign");function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function a(t){return r.Buffer&&"function"===typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t("util/"),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c="foo"===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&&"function"===typeof r.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var p=e.exports=b,d=/\s*function\s+([^\(\s]*)\s*/;function h(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function g(t,e){return"string"===typeof t?t.length<e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=h(t);return"[Function"+(e?": "+e:"")+"]"}function v(t){return g(m(t.actual),128)+" "+t.operator+" "+g(m(t.expected),128)}function y(t,e,r,n,i){throw new p.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||y(t,!0,e,"==",p.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&&a(e))return 0===i(t,e);if(o.isDate(t)&&o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&&o.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"===typeof t||null!==e&&"object"===typeof e){if(f(t)&&f(e)&&u(t)===u(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),w(t,e,r,n))}return r?t===e:t==e}function _(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=_(t),a=_(e);if(i&&!a||!i&&a)return!1;if(i)return x(t=l.call(t),e=l.call(e),r);var s,c,u=E(t),f=E(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c>=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(!x(t[s=u[c]],e[s],r,n))return!1;return!0}function k(t,e,r){x(t,e,!0)&&y(t,e,r,"notDeepStrictEqual",k)}function T(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(r){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function M(t){var e;try{t()}catch(r){e=r}return e}function A(t,e,r,n){var i;if("function"!==typeof e)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=M(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&y(i,r,"Missing expected exception"+n);var a="string"===typeof n,s=!t&&i&&!r;if((!t&&o.isError(i)&&a&&T(i,r)||s)&&y(i,r,"Got unwanted exception"+n),t&&i&&r&&!T(i,r)||!t&&i)throw i}function S(t,e){t||y(t,!0,e,"==",S)}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=v(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=h(e),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(p.AssertionError,Error),p.fail=y,p.ok=b,p.equal=function(t,e,r){t!=e&&y(t,e,r,"==",p.equal)},p.notEqual=function(t,e,r){t==e&&y(t,e,r,"!=",p.notEqual)},p.deepEqual=function(t,e,r){x(t,e,!1)||y(t,e,r,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,r){x(t,e,!0)||y(t,e,r,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){x(t,e,!1)&&y(t,e,r,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=k,p.strictEqual=function(t,e,r){t!==e&&y(t,e,r,"===",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&y(t,e,r,"!==",p.notStrictEqual)},p.throws=function(t,e,r){A(!0,t,e,r)},p.doesNotThrow=function(t,e,r){A(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=n(S,p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var E=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&&e.push(r);return e}}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"object-assign":247,"util/":78}],76:[function(t,e,r){"function"===typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],77:[function(t,e,r){e.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},{}],78:[function(t,e,n){(function(e,r){(function(){var i=/%[sdj%]/g;n.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=a)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}})),l=n[r];r<a;l=n[++r])b(l)||!A(l)?o+=" "+l:o+=" "+s(l);return o},n.deprecate=function(t,i){if(T(r.process))return function(){return n.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;function o(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}return o};var a,o={};function s(t,e){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(e)?r.showHidden=e:e&&n._extend(r,e),T(r.showHidden)&&(r.showHidden=!1),T(r.depth)&&(r.depth=2),T(r.colors)&&(r.colors=!1),T(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,t,r.depth)}function l(t,e){var r=s.styles[e];return r?"\x1b["+s.colors[r][0]+"m"+t+"\x1b["+s.colors[r][1]+"m":t}function c(t,e){return t}function u(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}function f(t,e,r){if(t.customInspect&&e&&C(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return w(i)||(i=f(t,i,r)),i}var a=p(t,e);if(a)return a;var o=Object.keys(e),s=u(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),E(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(e);if(0===o.length){if(C(e)){var l=e.name?": "+e.name:"";return t.stylize("[Function"+l+"]","special")}if(M(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(S(e))return t.stylize(Date.prototype.toString.call(e),"date");if(E(e))return d(e)}var c,y="",b=!1,x=["{","}"];return v(e)&&(b=!0,x=["[","]"]),C(e)&&(y=" [Function"+(e.name?": "+e.name:"")+"]"),M(e)&&(y=" "+RegExp.prototype.toString.call(e)),S(e)&&(y=" "+Date.prototype.toUTCString.call(e)),E(e)&&(y=" "+d(e)),0!==o.length||b&&0!=e.length?r<0?M(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),c=b?h(t,e,r,s,o):o.map((function(n){return g(t,e,r,s,n,b)})),t.seen.pop(),m(c,y,x)):x[0]+y+x[1]}function p(t,e){if(T(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return _(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):b(e)?t.stylize("null","null"):void 0}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)R(e,String(o))?a.push(g(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(g(t,e,r,n,i,!0))})),a}function g(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),R(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=b(r)?f(t,l.value,null):f(t,l.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),T(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function m(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function v(t){return Array.isArray(t)}function y(t){return"boolean"===typeof t}function b(t){return null===t}function x(t){return null==t}function _(t){return"number"===typeof t}function w(t){return"string"===typeof t}function k(t){return"symbol"===typeof t}function T(t){return void 0===t}function M(t){return A(t)&&"[object RegExp]"===L(t)}function A(t){return"object"===typeof t&&null!==t}function S(t){return A(t)&&"[object Date]"===L(t)}function E(t){return A(t)&&("[object Error]"===L(t)||t instanceof Error)}function C(t){return"function"===typeof t}function O(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function L(t){return Object.prototype.toString.call(t)}function I(t){return t<10?"0"+t.toString(10):t.toString(10)}n.debuglog=function(t){if(T(a)&&(a=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var r=e.pid;o[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else o[t]=function(){};return o[t]},n.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=v,n.isBoolean=y,n.isNull=b,n.isNullOrUndefined=x,n.isNumber=_,n.isString=w,n.isSymbol=k,n.isUndefined=T,n.isRegExp=M,n.isObject=A,n.isDate=S,n.isError=E,n.isFunction=C,n.isPrimitive=O,n.isBuffer=t("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,e=[I(t.getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":");return[t.getDate(),P[t.getMonth()],e].join(" ")}function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}n.log=function(){console.log("%s - %s",D(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!A(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t("_process"),"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":77,_process:278,inherits:76}],79:[function(t,e,r){"use strict";r.byteLength=u,r.toByteArray=p,r.fromByteArray=g;for(var n=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function p(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(f(t,o,s)),u=0,p=s>0?o-4:o;for(r=0;r<p;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function h(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(d(n));return i.join("")}function g(t){for(var e,r=t.length,i=r%3,a=[],o=16383,s=0,l=r-i;s<l;s+=o)a.push(h(t,s,s+o>l?l:s+o));return 1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],80:[function(t,e,r){"use strict";function n(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n<=i;){var a=n+i>>>1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return"function"===typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],81:[function(t,e,r){"use strict";var n=32;function i(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=n,r.INT_MAX=2147483647,r.INT_MIN=-1<<n-1,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>n-1;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t<e)},r.max=function(t,e){return t^(t^e)&-(t<e)},r.isPow2=function(t){return!(t&t-1)&&!!t},r.log2=function(t){var e,r;return e=(t>65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=i,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,1+(t|=t>>>16)},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var a=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<<i&255}}(a),r.reverse=function(t){return a[255&t]<<24|a[t>>>8&255]<<16|a[t>>>16&255]<<8|a[t>>>24&255]},r.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},r.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>i(t)+1}},{}],82:[function(t,e,r){"use strict";var n=t("clamp");e.exports=a;var i=1e20;function a(t,e){e||(e={});var r,a,s,l,c,u,f,p,d,h,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error("For raw data width and height should be provided by options");r=e.width,a=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/a)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(f=(p=t).getContext("2d"),r=p.width,a=p.height,l=(d=f.getImageData(0,0,r,a)).data,u=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(f=t,r=(p=t.canvas).width,a=p.height,l=(d=f.getImageData(0,0,r,a)).data,u=4):window.ImageData&&t instanceof window.ImageData&&(d=t,r=t.width,a=t.height,l=d.data,u=4);if(s=Math.max(r,a),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(c=l,l=Array(r*a),h=0,g=c.length;h<g;h++)l[h]=c[h*u+y]/255;else if(1!==u)throw Error("Raw data can have only 1 value per pixel");var b=Array(r*a),x=Array(r*a),_=Array(s),w=Array(s),k=Array(s+1),T=Array(s);for(h=0,g=r*a;h<g;h++){var M=l[h];b[h]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),x[h]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}o(b,r,a,_,w,T,k),o(x,r,a,_,w,T,k);var A=window.Float32Array?new Float32Array(r*a):new Array(r*a);for(h=0,g=r*a;h<g;h++)A[h]=n(1-((b[h]-x[h])/v+m),0,1);return A}function o(t,e,r,n,i,a,o){for(var l=0;l<e;l++){for(var c=0;c<r;c++)n[c]=t[c*e+l];for(s(n,i,a,o,r),c=0;c<r;c++)t[c*e+l]=i[c]}for(c=0;c<r;c++){for(l=0;l<e;l++)n[l]=t[c*e+l];for(s(n,i,a,o,e),l=0;l<e;l++)t[c*e+l]=Math.sqrt(i[l])}}function s(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o<a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l<=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o<a;o++){for(;n[s+1]<o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:86}],83:[function(t,e,r){},{}],84:[function(t,e,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,a=i&&"function"===typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};function o(t){console&&console.warn&&console.warn(t)}n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!==t};function l(){l.init.call(this)}e.exports=l,e.exports.once=x,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function p(t,e,r,n){var i,a,s;if(u(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),s=a[e]),void 0===s)s=a[e]=r,++t._eventsCount;else if("function"===typeof s?s=a[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=f(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,o(l)}return t}function d(){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 h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function g(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?b(i):v(i,i.length)}function m(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function b(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function x(t,e){return new Promise((function(r,n){function i(){void 0!==a&&t.removeListener("error",a),r([].slice.call(arguments))}var a;"error"!==e&&(a=function(r){t.removeListener(e,i),n(r)},t.once("error",a)),t.once(e,i)}))}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return f(this)},l.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if("function"===typeof l)a(l,this,e);else{var c=l.length,u=v(l,c);for(r=0;r<c;++r)a(u[r],this,e)}return!0},l.prototype.addListener=function(t,e){return p(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return p(this,t,e,!0)},l.prototype.once=function(t,e){return u(e),this.on(t,h(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,h(this,t,e)),this},l.prototype.removeListener=function(t,e){var r,n,i,a,o;if(u(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!==typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():y(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,o||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},l.prototype.listeners=function(t){return g(this,t,!0)},l.prototype.rawListeners=function(t){return g(this,t,!1)},l.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],85:[function(t,e,r){(function(e){(function(){"use strict";var e=t("base64-js"),n=t("ieee754");r.Buffer=s,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var i=2147483647;function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}function o(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return l(t,e,r)}function l(t,e,r){if("string"===typeof t)return p(t,e);if(ArrayBuffer.isView(t))return d(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return h(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=g(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(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 u(t,e,r){return c(t),t<=0?o(t):void 0!==e?"string"===typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}function f(t){return c(t),o(t<0?0:0|m(t))}function p(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function d(t){for(var e=t.length<0?0:0|m(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r)).__proto__=s.prototype,n}function g(t){if(s.isBuffer(t)){var e=0|m(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!==typeof t.length||J(t.length)?o(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}function m(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),s.alloc(+t)}function y(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(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 r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return D(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function x(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function _(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a<s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var f=!0,p=0;p<l;p++)if(c(t,a+p)!==c(e,p)){f=!1;break}if(f)return a}return-1}function k(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(J(s))return o;t[r+o]=s}return o}function T(t,e,r,n){return Z(G(e,t.length-r),t,r,n)}function M(t,e,r,n){return Z(W(e),t,r,n)}function A(t,e,r,n){return M(t,e,r,n)}function S(t,e,r,n){return Z(X(e),t,r,n)}function E(t,e,r,n){return Z(Y(e,t.length-r),t,r,n)}function C(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function O(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,l,c=t[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128===(192&(a=t[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return I(n)}r.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),s.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return l(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return u(t,e,r)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(K(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?O(this,0,t):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},s.prototype.compare=function(t,e,r,n,i){if(K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.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===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),l=Math.min(a,o),c=this.slice(n,i),u=t.slice(e,r),f=0;f<l;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return k(this,t,e,r);case"utf8":case"utf-8":return T(this,t,e,r);case"ascii":return M(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=L));return r}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function D(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function R(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=q(t[a]);return i}function z(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function N(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function B(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(t,e,r,i,a){return e=+e,r>>>=0,a||B(t,e,r,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,r,i,23,4),r+4}function U(t,e,r,i,a){return e=+e,r>>>=0,a||B(t,e,r,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,r,i,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var a=i-1;a>=0;--a)t[a+e]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=s.isBuffer(t)?t:s.from(t,n),l=o.length;if(0===l)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<r-e;++a)this[a+e]=o[a%l]}return this};var V=/[^+/0-9A-Za-z-_]/g;function H(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function W(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function Y(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}function X(t){return e.toByteArray(H(t))}function Z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!==t}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":79,buffer:85,ieee754:230}],86:[function(t,e,r){function n(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}e.exports=n},{}],87:[function(t,e,r){"use strict";var n=t("clamp");function i(t,e){null==e&&(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&n(r,0,255))+((i=255&n(i,0,255))<<16)+((a=255&n(a,0,255))<<8)+(o=255&n(o,0,255))}function a(t,e){var r=(t=+t)>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}e.exports=i,e.exports.to=i,e.exports.from=a},{clamp:86}],88:[function(t,e,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],89:[function(t,e,r){"use strict";var n=t("color-rgba"),i=t("clamp"),a=t("dtype");function o(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&&(t[0]>1||0===t[0])&&(t[1]>1||0===t[1])&&(t[2]>1||0===t[2])&&(!t[3]||t[3]>1))}e.exports=function(t,e){"float"!==e&&e||(e="array"),"uint"===e&&(e="uint8"),"uint_clamped"===e&&(e="uint8_clamped");var r=new(a(e))(4),s="uint8"!==e&&"uint8_clamped"!==e;return t.length&&"string"!==typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),o(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,s&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(s?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:86,"color-rgba":91,dtype:127}],90:[function(t,e,n){(function(r){(function(){"use strict";var n=t("color-name"),i=t("is-plain-obj"),a=t("defined");e.exports=s;var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function s(t){var e,s,l=[],c=1;if("string"===typeof t)if(n[t])l=n[t].slice(),s="rgb";else if("transparent"===t)c=0,s="rgb",l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=t.slice(1);c=1,(d=u.length)<=4?(l=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===d&&(c=parseInt(u[3]+u[3],16)/255)):(l=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===d&&(c=parseInt(u[6]+u[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],p="rgb"===f;s=u=f.replace(/a$/,"");var d="cmyk"===u?4:"gray"===u?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===d?parseFloat(t)/100:"rgb"===u?255*parseFloat(t)/100:parseFloat(t);if("h"===u[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===u&&l.push(1),c=p||void 0===l[d]?1:l[d],l=l.slice(0,d)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(t))if(i(t)){var h=a(t.r,t.red,t.R,null);null!==h?(s="rgb",l=[h,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s="hsl",l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&&(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(l=[t[0],t[1],t[2]],s="rgb",c=4===t.length?t[3]:1);else s="rgb",l=[t>>>16,(65280&t)>>>8,255&t];return{space:s,values:l,alpha:c}}}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"color-name":88,defined:124,"is-plain-obj":236}],91:[function(t,e,r){"use strict";var n=t("color-parse"),i=t("color-space/hsl"),a=t("clamp");e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),"h"===r.space[0]&&(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:86,"color-parse":90,"color-space/hsl":92}],92:[function(t,e,r){"use strict";var n=t("./rgb");e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(n=o+1/3*-(c-1))<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&&(e=4+(n-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+s)/2,[e,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]}},{"./rgb":93}],93:[function(t,e,r){"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},{}],94:[function(t,e,r){e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xe7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xe9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xe9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xe3)o.?tom(e|\xe9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},{}],95:[function(t,e,r){e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]},{}],96:[function(t,e,r){e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]},{}],97:[function(t,e,r){e.exports=["normal","italic","oblique"]},{}],98:[function(t,e,r){e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]},{}],99:[function(t,e,r){"use strict";e.exports={parse:t("./parse"),stringify:t("./stringify")}},{"./parse":101,"./stringify":102}],100:[function(t,e,r){"use strict";var n=t("css-font-size-keywords");e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf("/")||-1!==n.indexOf(t)}}},{"css-font-size-keywords":95}],101:[function(t,e,r){"use strict";var n=t("unquote"),i=t("css-global-keywords"),a=t("css-system-font-keywords"),o=t("css-font-weight-keywords"),s=t("css-font-style-keywords"),l=t("css-font-stretch-keywords"),c=t("string-split-by"),u=t("./lib/util").isSize;e.exports=p;var f=p.cache={};function p(t){if("string"!==typeof t)throw new Error("Font argument must be a string.");if(f[t])return f[t];if(""===t)throw new Error("Cannot parse an empty string.");if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},p=c(t,/\s+/);e=p.shift();){if(-1!==i.indexOf(e))return["style","variant","weight","stretch"].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if("normal"!==e&&"small-caps"!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var h=c(e,"/");if(r.size=h[0],null!=h[1]?r.lineHeight=d(h[1]):"/"===p[0]&&(p.shift(),r.lineHeight=d(p.shift())),!p.length)throw new Error("Missing required font-family.");return r.family=c(p.join(" "),/\s*,\s*/).map(n),f[t]=r}throw new Error("Unknown or unsupported font token: "+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error("Missing required font-size.")}function d(t){var e=parseFloat(t);return e.toString()===t?e:t}},{"./lib/util":100,"css-font-stretch-keywords":96,"css-font-style-keywords":97,"css-font-weight-keywords":98,"css-global-keywords":103,"css-system-font-keywords":104,"string-split-by":306,unquote:329}],102:[function(t,e,r){"use strict";var n=t("pick-by-alias"),i=t("./lib/util").isSize,a=h(t("css-global-keywords")),o=h(t("css-system-font-keywords")),s=h(t("css-font-weight-keywords")),l=h(t("css-font-style-keywords")),c=h(t("css-font-stretch-keywords")),u={normal:1,"small-caps":1},f={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},p={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};function d(t,e){if(t&&!e[t]&&!a[t])throw Error("Unknown keyword `"+t+"`");return t}function h(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return t.system&&d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&&(t.size=p.size),"number"===typeof t.size&&(t.size+="px"),!i)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=p.family),Array.isArray(t.family)&&(t.family.length||(t.family=[p.family]),t.family=t.family.map((function(t){return f[t]?t:'"'+t+'"'})).join(", "));var e=[];return e.push(t.style),t.variant!==t.style&&e.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&e.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&e.push(t.stretch),e.push(t.size+(null==t.lineHeight||"normal"===t.lineHeight||t.lineHeight+""==="1"?"":"/"+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(" ")}},{"./lib/util":100,"css-font-stretch-keywords":96,"css-font-style-keywords":97,"css-font-weight-keywords":98,"css-global-keywords":103,"css-system-font-keywords":104,"pick-by-alias":253}],103:[function(t,e,r){e.exports=["inherit","initial","unset"]},{}],104:[function(t,e,r){e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]},{}],105:[function(t,e,r){"use strict";var n,i=t("type/value/is"),a=t("type/value/ensure"),o=t("type/plain-function/ensure"),s=t("es5-ext/object/copy"),l=t("es5-ext/object/normalize-options"),c=t("es5-ext/object/map"),u=Function.prototype.bind,f=Object.defineProperty,p=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&&o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&p.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&&o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{"es5-ext/object/copy":147,"es5-ext/object/map":155,"es5-ext/object/normalize-options":156,"type/plain-function/ensure":322,"type/value/ensure":326,"type/value/is":327}],106:[function(t,e,r){"use strict";var n=t("type/value/is"),i=t("type/plain-function/is"),a=t("es5-ext/object/assign"),o=t("es5-ext/object/normalize-options"),s=t("es5-ext/string/#/contains"),l=e.exports=function(t,e){var r,i,l,c,u;return arguments.length<2||"string"!==typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,"c"),i=s.call(t,"e"),l=s.call(t,"w")):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u};l.gs=function(t,e,r){var l,c,u,f;return"string"!==typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,"c"),c=s.call(t,"e")):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{"es5-ext/object/assign":144,"es5-ext/object/normalize-options":156,"es5-ext/string/#/contains":163,"type/plain-function/is":323,"type/value/is":327}],107:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i(e.d3=e.d3||{})}(this,(function(t){"use strict";function e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function r(t){return 1===t.length&&(t=n(t)),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}function n(t){return function(r,n){return e(t(r),n)}}var i=r(e),a=i.right,o=i.left;function s(t,e){null==e&&(e=l);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return a}function l(t,e){return[t,e]}function c(t,e,r){var n,i,a,o,s=t.length,c=e.length,u=new Array(s*c);for(null==r&&(r=l),n=a=0;n<s;++n)for(o=t[n],i=0;i<c;++i,++a)u[a]=r(o,e[i]);return u}function u(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function f(t){return null===t?NaN:+t}function p(t,e){var r,n,i=t.length,a=0,o=-1,s=0,l=0;if(null==e)for(;++o<i;)isNaN(r=f(t[o]))||(l+=(n=r-s)*(r-(s+=n/++a)));else for(;++o<i;)isNaN(r=f(e(t[o],o,t)))||(l+=(n=r-s)*(r-(s+=n/++a)));if(a>1)return l/(a-1)}function d(t,e){var r=p(t,e);return r?Math.sqrt(r):r}function h(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(r=t[o])&&r>=r)for(n=i=r;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),i<r&&(i=r))}else for(;++o<a;)if(null!=(r=e(t[o],o,t))&&r>=r)for(n=i=r;++o<a;)null!=(r=e(t[o],o,t))&&(n>r&&(n=r),i<r&&(i=r));return[n,i]}var g=Array.prototype,m=g.slice,v=g.map;function y(t){return function(){return t}}function b(t){return t}function x(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n<i;)a[n]=t+n*r;return a}var _=Math.sqrt(50),w=Math.sqrt(10),k=Math.sqrt(2);function T(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&&r>0)return[t];if((n=e<t)&&(i=t,t=e,e=i),0===(o=M(t,e,r))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return n&&a.reverse(),a}function M(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=_?10:a>=w?5:a>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=_?10:a>=w?5:a>=k?2:1)}function A(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=_?i*=10:a>=w?i*=5:a>=k&&(i*=2),e<t?-i:i}function S(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function E(){var t=b,e=h,r=S;function n(n){var i,o,s=n.length,l=new Array(s);for(i=0;i<s;++i)l[i]=t(n[i],i,n);var c=e(l),u=c[0],f=c[1],p=r(l,u,f);Array.isArray(p)||(p=A(u,f,p),p=x(Math.ceil(u/p)*p,f,p));for(var d=p.length;p[0]<=u;)p.shift(),--d;for(;p[d-1]>f;)p.pop(),--d;var h,g=new Array(d+1);for(i=0;i<=d;++i)(h=g[i]=[]).x0=i>0?p[i-1]:u,h.x1=i<d?p[i]:f;for(i=0;i<s;++i)u<=(o=l[i])&&o<=f&&g[a(p,o,0,d)].push(n[i]);return g}return n.value=function(e){return arguments.length?(t="function"===typeof e?e:y(e),n):t},n.domain=function(t){return arguments.length?(e="function"===typeof t?t:y([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r="function"===typeof t?t:Array.isArray(t)?y(m.call(t)):y(t),n):r},n}function C(t,e,r){if(null==r&&(r=f),n=t.length){if((e=+e)<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function O(t,r,n){return t=v.call(t,f).sort(e),Math.ceil((n-r)/(2*(C(t,.75)-C(t,.25))*Math.pow(t.length,-1/3)))}function L(t,e,r){return Math.ceil((r-e)/(3.5*d(t)*Math.pow(t.length,-1/3)))}function I(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&r>n&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&r>n&&(n=r);return n}function P(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a<n;)isNaN(r=f(t[a]))?--i:o+=r;else for(;++a<n;)isNaN(r=f(e(t[a],a,t)))?--i:o+=r;if(i)return o/i}function D(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a<i;)isNaN(n=f(t[a]))||o.push(n);else for(;++a<i;)isNaN(n=f(r(t[a],a,t)))||o.push(n);return C(o.sort(e),.5)}function R(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r}function z(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&n>r&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&n>r&&(n=r);return n}function N(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n}function F(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&&(r=e);++a<n;)(r(i=t[a],s)<0||0!==r(s,s))&&(s=i,o=a);return 0===r(s,s)?o:void 0}}function B(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t}function j(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i<n;)(r=+t[i])&&(a+=r);else for(;++i<n;)(r=+e(t[i],i,t))&&(a+=r);return a}function U(t){if(!(i=t.length))return[];for(var e=-1,r=z(t,V),n=new Array(r);++e<r;)for(var i,a=-1,o=n[e]=new Array(i);++a<i;)o[a]=t[a][e];return n}function V(t){return t.length}function H(){return U(arguments)}t.bisect=a,t.bisectRight=a,t.bisectLeft=o,t.ascending=e,t.bisector=r,t.cross=c,t.descending=u,t.deviation=d,t.extent=h,t.histogram=E,t.thresholdFreedmanDiaconis=O,t.thresholdScott=L,t.thresholdSturges=S,t.max=I,t.mean=P,t.median=D,t.merge=R,t.min=z,t.pairs=s,t.permute=N,t.quantile=C,t.range=x,t.scan=F,t.shuffle=B,t.sum=j,t.ticks=T,t.tickIncrement=M,t.tickStep=A,t.transpose=U,t.variance=p,t.zip=H,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],108:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i(e.d3=e.d3||{})}(this,(function(t){"use strict";var e="$";function r(){}function n(t,e){var n=new r;if(t instanceof r)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==e)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(e(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function i(){var t,e,r,i=[],c=[];function u(r,a,o,s){if(a>=i.length)return null!=t&&r.sort(t),null!=e?e(r):r;for(var l,c,f,p=-1,d=r.length,h=i[a++],g=n(),m=o();++p<d;)(f=g.get(l=h(c=r[p])+""))?f.push(c):g.set(l,[c]);return g.each((function(t,e){s(m,e,u(t,a,o,s))})),m}function f(t,r){if(++r>i.length)return t;var n,a=c[r-1];return null!=e&&r>=i.length?n=t.entries():(n=[],t.each((function(t,e){n.push({key:e,values:f(t,r)})}))),null!=a?n.sort((function(t,e){return a(t.key,e.key)})):n}return r={object:function(t){return u(t,0,a,o)},map:function(t){return u(t,0,s,l)},entries:function(t){return f(u(t,0,s,l),0)},key:function(t){return i.push(t),r},sortKeys:function(t){return c[i.length-1]=t,r},sortValues:function(e){return t=e,r},rollup:function(t){return e=t,r}}}function a(){return{}}function o(t,e,r){t[e]=r}function s(){return n()}function l(t,e,r){t.set(e,r)}function c(){}r.prototype=n.prototype={constructor:r,has:function(t){return e+t in this},get:function(t){return this[e+t]},set:function(t,r){return this[e+t]=r,this},remove:function(t){var r=e+t;return r in this&&delete this[r]},clear:function(){for(var t in this)t[0]===e&&delete this[t]},keys:function(){var t=[];for(var r in this)r[0]===e&&t.push(r.slice(1));return t},values:function(){var t=[];for(var r in this)r[0]===e&&t.push(this[r]);return t},entries:function(){var t=[];for(var r in this)r[0]===e&&t.push({key:r.slice(1),value:this[r]});return t},size:function(){var t=0;for(var r in this)r[0]===e&&++t;return t},empty:function(){for(var t in this)if(t[0]===e)return!1;return!0},each:function(t){for(var r in this)r[0]===e&&t(this[r],r.slice(1),this)}};var u=n.prototype;function f(t,e){var r=new c;if(t instanceof c)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n<i;)r.add(t[n]);else for(;++n<i;)r.add(e(t[n],n,t))}return r}function p(t){var e=[];for(var r in t)e.push(r);return e}function d(t){var e=[];for(var r in t)e.push(t[r]);return e}function h(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e}c.prototype=f.prototype={constructor:c,has:u.has,add:function(t){return this[e+(t+="")]=t,this},remove:u.remove,clear:u.clear,values:u.keys,size:u.size,empty:u.empty,each:u.each},t.nest=i,t.set=f,t.map=n,t.keys=p,t.values=d,t.entries=h,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],109:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=.7,a=1/i,o="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,u=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgba\\("+[o,o,o,s]+"\\)$"),d=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),h=new RegExp("^hsl\\("+[s,l,l]+"\\)$"),g=new RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function y(){return O(this).formatHsl()}function b(){return this.rgb().formatRgb()}function x(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?_(e):3===r?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?w(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?w(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=u.exec(t))?new M(e[1],e[2],e[3],1):(e=f.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?w(e[1],e[2],e[3],e[4]):(e=d.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?C(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?C(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?_(m[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function _(t){return new M(t>>16&255,t>>8&255,255&t,1)}function w(t,e,r,n){return n<=0&&(t=e=r=NaN),new M(t,e,r,n)}function k(t){return t instanceof n||(t=x(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function T(t,e,r,n){return 1===arguments.length?k(t):new M(t,e,r,null==n?1:n)}function M(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function A(){return"#"+E(this.r)+E(this.g)+E(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function E(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function C(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new I(t,e,r,n)}function O(t){if(t instanceof I)return new I(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=x(t)),!t)return new I;if(t instanceof I)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r<i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c<.5?o+a:2-o-a,s*=60):l=c>0&&c<1?0:s,new I(s,l,c,t.opacity)}function L(t,e,r,n){return 1===arguments.length?O(t):new I(t,e,r,null==n?1:n)}function I(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function P(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}e(n,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:y,formatRgb:b,toString:b}),e(M,T,r(n,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatRgb:S,toString:S})),e(I,L,r(n,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new I(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new I(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new M(P(t>=240?t-240:t+120,i,n),P(t,i,n),P(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var D=Math.PI/180,R=180/Math.PI,z=18,N=.96422,F=1,B=.82521,j=4/29,U=6/29,V=3*U*U,H=U*U*U;function q(t){if(t instanceof Y)return new Y(t.l,t.a,t.b,t.opacity);if(t instanceof et)return rt(t);t instanceof M||(t=k(t));var e,r,n=J(t.r),i=J(t.g),a=J(t.b),o=X((.2225045*n+.7168786*i+.0606169*a)/F);return n===i&&i===a?e=r=o:(e=X((.4360747*n+.3850649*i+.1430804*a)/N),r=X((.0139322*n+.0971045*i+.7141733*a)/B)),new Y(116*o-16,500*(e-o),200*(o-r),t.opacity)}function G(t,e){return new Y(t,0,0,null==e?1:e)}function W(t,e,r,n){return 1===arguments.length?q(t):new Y(t,e,r,null==n?1:n)}function Y(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function X(t){return t>H?Math.pow(t,1/3):t/V+j}function Z(t){return t>U?t*t*t:V*(t-j)}function K(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function J(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof Y||(t=q(t)),0===t.a&&0===t.b)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*R;return new et(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Q(t,e,r,n){return 1===arguments.length?$(t):new et(r,e,t,null==n?1:n)}function tt(t,e,r,n){return 1===arguments.length?$(t):new et(t,e,r,null==n?1:n)}function et(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function rt(t){if(isNaN(t.h))return new Y(t.l,0,0,t.opacity);var e=t.h*D;return new Y(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(Y,W,r(n,{brighter:function(t){return new Y(this.l+z*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Y(this.l-z*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new M(K(3.1338561*(e=N*Z(e))-1.6168667*(t=F*Z(t))-.4906146*(r=B*Z(r))),K(-.9787684*e+1.9161415*t+.033454*r),K(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(et,tt,r(n,{brighter:function(t){return new et(this.h,this.c,this.l+z*(null==t?1:t),this.opacity)},darker:function(t){return new et(this.h,this.c,this.l-z*(null==t?1:t),this.opacity)},rgb:function(){return rt(this).rgb()}}));var nt=-.14861,it=1.78277,at=-.29227,ot=-.90649,st=1.97294,lt=st*ot,ct=st*it,ut=it*at-ot*nt;function ft(t){if(t instanceof dt)return new dt(t.h,t.s,t.l,t.opacity);t instanceof M||(t=k(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(ut*n+lt*e-ct*r)/(ut+lt-ct),a=n-i,o=(st*(r-i)-at*a)/ot,s=Math.sqrt(o*o+a*a)/(st*i*(1-i)),l=s?Math.atan2(o,a)*R-120:NaN;return new dt(l<0?l+360:l,s,i,t.opacity)}function pt(t,e,r,n){return 1===arguments.length?ft(t):new dt(t,e,r,null==n?1:n)}function dt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(dt,pt,r(n,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new dt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new dt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*D,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new M(255*(e+r*(nt*n+it*i)),255*(e+r*(at*n+ot*i)),255*(e+r*(st*n)),this.opacity)}})),t.color=x,t.cubehelix=pt,t.gray=G,t.hcl=tt,t.hsl=L,t.lab=W,t.lch=Q,t.rgb=T,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],110:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r="",n=t.indexOf(".");if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i<a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+"",n),l=-1,c=s.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++l<c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l<c;)if((r=(t=s[l]).type)&&(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,r=(n=this._[t]).length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],111:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-quadtree"),e("d3-collection"),e("d3-dispatch"),e("d3-timer")):"function"===typeof t&&t.amd?t(["exports","d3-quadtree","d3-collection","d3-dispatch","d3-timer"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3,i.d3)}(this,(function(t,e,r,n,i){"use strict";function a(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n<a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n<a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n}function o(t){return function(){return t}}function s(){return 1e-6*(Math.random()-.5)}function l(t){return t.x+t.vx}function c(t){return t.y+t.vy}function u(t){var r,n,i=1,a=1;function u(){for(var t,o,u,p,d,h,g,m=r.length,v=0;v<a;++v)for(o=e.quadtree(r,l,c).visitAfter(f),t=0;t<m;++t)u=r[t],h=n[u.index],g=h*h,p=u.x+u.vx,d=u.y+u.vy,o.visit(y);function y(t,e,r,n,a){var o=t.data,l=t.r,c=h+l;if(!o)return e>p+c||n<p-c||r>d+c||a<d-c;if(o.index>u.index){var f=p-o.x-o.vx,m=d-o.y-o.vy,v=f*f+m*m;v<c*c&&(0===f&&(v+=(f=s())*f),0===m&&(v+=(m=s())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,o.vx-=f*(c=1-c),o.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function p(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e<a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return"function"!==typeof t&&(t=o(null==t?1:+t)),u.initialize=function(t){r=t,p()},u.iterations=function(t){return arguments.length?(a=+t,u):a},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t="function"===typeof e?e:o(+e),p(),u):t},u}function f(t){return t.index}function p(t,e){var r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function d(t){var e,n,i,a,l,c=f,u=g,d=o(30),h=1;function g(t){return 1/Math.min(a[t.source.index],a[t.target.index])}function m(r){for(var i=0,a=t.length;i<h;++i)for(var o,c,u,f,p,d,g,m=0;m<a;++m)c=(o=t[m]).source,f=(u=o.target).x+u.vx-c.x-c.vx||s(),p=u.y+u.vy-c.y-c.vy||s(),f*=d=((d=Math.sqrt(f*f+p*p))-n[m])/d*r*e[m],p*=d,u.vx-=f*(g=l[m]),u.vy-=p*g,c.vx+=f*(g=1-g),c.vy+=p*g}function v(){if(i){var o,s,u=i.length,f=t.length,d=r.map(i,c);for(o=0,a=new Array(u);o<f;++o)(s=t[o]).index=o,"object"!==typeof s.source&&(s.source=p(d,s.source)),"object"!==typeof s.target&&(s.target=p(d,s.target)),a[s.source.index]=(a[s.source.index]||0)+1,a[s.target.index]=(a[s.target.index]||0)+1;for(o=0,l=new Array(f);o<f;++o)s=t[o],l[o]=a[s.source.index]/(a[s.source.index]+a[s.target.index]);e=new Array(f),y(),n=new Array(f),b()}}function y(){if(i)for(var r=0,n=t.length;r<n;++r)e[r]=+u(t[r],r,t)}function b(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+d(t[e],e,t)}return null==t&&(t=[]),m.initialize=function(t){i=t,v()},m.links=function(e){return arguments.length?(t=e,v(),m):t},m.id=function(t){return arguments.length?(c=t,m):c},m.iterations=function(t){return arguments.length?(h=+t,m):h},m.strength=function(t){return arguments.length?(u="function"===typeof t?t:o(+t),y(),m):u},m.distance=function(t){return arguments.length?(d="function"===typeof t?t:o(+t),b(),m):d},m}function h(t){return t.x}function g(t){return t.y}var m=10,v=Math.PI*(3-Math.sqrt(5));function y(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),p=n.dispatch("tick","end");function d(){h(),p.call("tick",e),a<o&&(f.stop(),p.call("end",e))}function h(r){var n,i,o=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n<o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function g(){for(var e,r=0,n=t.length;r<n;++r){if((e=t[r]).index=r,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=m*Math.sqrt(r),a=r*v;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function y(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),g(),e={tick:h,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,g(),u.each(y),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length>1?(null==r?u.remove(t):u.set(t,y(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c<u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)<n&&(l=s,n=o);return l},on:function(t,r){return arguments.length>1?(p.on(t,r),e):p.on(t)}}}function b(){var t,r,n,i,a=o(-30),l=1,c=1/0,u=.81;function f(i){var a,o=t.length,s=e.quadtree(t,h,g).visitAfter(d);for(n=i,a=0;a<o;++a)r=t[a],s.visit(m)}function p(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e<n;++e)r=t[e],i[r.index]=+a(r,e,t)}}function d(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o<4;++o)(e=t[o])&&(r=Math.abs(e.value))&&(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,o){if(!t.value)return!0;var f=t.x-r.x,p=t.y-r.y,d=o-e,h=f*f+p*p;if(d*d/u<h)return h<c&&(0===f&&(h+=(f=s())*f),0===p&&(h+=(p=s())*p),h<l&&(h=Math.sqrt(l*h)),r.vx+=f*t.value*n/h,r.vy+=p*t.value*n/h),!0;if(!(t.length||h>=c)){(t.data!==r||t.next)&&(0===f&&(h+=(f=s())*f),0===p&&(h+=(p=s())*p),h<l&&(h=Math.sqrt(l*h)));do{t.data!==r&&(d=i[t.data.index]*n/h,r.vx+=f*d,r.vy+=p*d)}while(t=t.next)}}return f.initialize=function(e){t=e,p()},f.strength=function(t){return arguments.length?(a="function"===typeof t?t:o(+t),p(),f):a},f.distanceMin=function(t){return arguments.length?(l=t*t,f):Math.sqrt(l)},f.distanceMax=function(t){return arguments.length?(c=t*t,f):Math.sqrt(c)},f.theta=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)},f}function x(t,e,r){var n,i,a,s=o(.1);function l(t){for(var o=0,s=n.length;o<s;++o){var l=n[o],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),p=(a[o]-f)*i[o]*t/f;l.vx+=c*p,l.vy+=u*p}}function c(){if(n){var e,r=n.length;for(i=new Array(r),a=new Array(r),e=0;e<r;++e)a[e]=+t(n[e],e,n),i[e]=isNaN(a[e])?0:+s(n[e],e,n)}}return"function"!==typeof t&&(t=o(+t)),null==e&&(e=0),null==r&&(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s="function"===typeof t?t:o(+t),c(),l):s},l.radius=function(e){return arguments.length?(t="function"===typeof e?e:o(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l}function _(t){var e,r,n,i=o(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a<o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!==typeof t&&(t=o(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(i="function"===typeof t?t:o(+t),s(),a):i},a.x=function(e){return arguments.length?(t="function"===typeof e?e:o(+e),s(),a):t},a}function w(t){var e,r,n,i=o(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a<o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!==typeof t&&(t=o(null==t?0:+t)),a.initialize=function(t){e=t,s()},a.strength=function(t){return arguments.length?(i="function"===typeof t?t:o(+t),s(),a):i},a.y=function(e){return arguments.length?(t="function"===typeof e?e:o(+e),s(),a):t},a}t.forceCenter=a,t.forceCollide=u,t.forceLink=d,t.forceManyBody=b,t.forceRadial=x,t.forceSimulation=y,t.forceX=_,t.forceY=w,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-collection":108,"d3-dispatch":110,"d3-quadtree":118,"d3-timer":123}],112:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e="undefined"!==typeof globalThis?globalThis:e||self).d3=e.d3||{})}(this,(function(t){"use strict";function e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function r(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function n(t){return(t=r(Math.abs(t)))?t[1]:NaN}function i(t,e){return function(r,n){for(var i=r.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function a(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}var o,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(t){if(!(e=s.exec(t)))throw new Error("invalid format: "+t);var e;return new c({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function c(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function u(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}function f(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1],s=a-(o=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+r(t,Math.max(0,e+s-1))[0]}function p(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}l.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var d={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:e,e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return p(100*t,e)},r:p,s:f,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function h(t){return t}var g,m=Array.prototype.map,v=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function y(t){var e=void 0===t.grouping||void 0===t.thousands?h:i(m.call(t.grouping,Number),t.thousands+""),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",f=void 0===t.numerals?h:a(m.call(t.numerals,String)),p=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function b(t){var n=(t=l(t)).fill,i=t.align,a=t.sign,h=t.symbol,m=t.zero,b=t.width,x=t.comma,_=t.precision,w=t.trim,k=t.type;"n"===k?(x=!0,k="g"):d[k]||(void 0===_&&(_=12),w=!0,k="g"),(m||"0"===n&&"="===i)&&(m=!0,n="0",i="=");var T="$"===h?r:"#"===h&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",M="$"===h?s:/[%p]/.test(k)?p:"",A=d[k],S=/[defgprs%]/.test(k);function E(t){var r,s,l,p=T,d=M;if("c"===k)d=A(t)+d,t="";else{var h=(t=+t)<0||1/t<0;if(t=isNaN(t)?y:A(Math.abs(t),_),w&&(t=u(t)),h&&0===+t&&"+"!==a&&(h=!1),p=(h?"("===a?a:g:"-"===a||"("===a?"":a)+p,d=("s"===k?v[8+o/3]:"")+d+(h&&"("===a?")":""),S)for(r=-1,s=t.length;++r<s;)if(48>(l=t.charCodeAt(r))||l>57){d=(46===l?c+t.slice(r+1):t.slice(r))+d,t=t.slice(0,r);break}}x&&!m&&(t=e(t,1/0));var E=p.length+t.length+d.length,C=E<b?new Array(b-E+1).join(n):"";switch(x&&m&&(t=e(C+t,C.length?b-d.length:1/0),C=""),i){case"<":t=p+t+d+C;break;case"=":t=p+C+t+d;break;case"^":t=C.slice(0,E=C.length>>1)+p+t+d+C.slice(E);break;default:t=C+p+t+d}return f(t)}return _=void 0===_?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),E.toString=function(){return t+""},E}function x(t,e){var r=b(((t=l(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(n(e)/3))),a=Math.pow(10,-i),o=v[8+i/3];return function(t){return r(a*t)+o}}return{format:b,formatPrefix:x}}function b(e){return g=y(e),t.format=g.format,t.formatPrefix=g.formatPrefix,g}function x(t){return Math.max(0,-n(Math.abs(t)))}function _(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(e)/3)))-n(Math.abs(t)))}function w(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,n(e)-n(t))+1}b({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),t.FormatSpecifier=c,t.formatDefaultLocale=b,t.formatLocale=y,t.formatSpecifier=l,t.precisionFixed=x,t.precisionPrefix=_,t.precisionRound=w,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],113:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-geo"),e("d3-array")):"function"===typeof t&&t.amd?t(["exports","d3-geo","d3-array"],a):a(i.d3=i.d3||{},i.d3,i.d3)}(this,(function(t,e,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,f=Math.min,p=Math.pow,d=Math.round,h=Math.sign||function(t){return t>0?1:t<0?-1:0},g=Math.sin,m=Math.tan,v=1e-6,y=1e-12,b=Math.PI,x=b/2,_=b/4,w=Math.SQRT1_2,k=L(2),T=L(b),M=2*b,A=180/b,S=b/180;function E(t){return t?t/Math.sin(t):1}function C(t){return t>1?x:t<-1?-x:Math.asin(t)}function O(t){return t>1?0:t<-1?b:Math.acos(t)}function L(t){return t>0?Math.sqrt(t):0}function I(t){return((t=s(2*t))-1)/(t+1)}function P(t){return(s(t)-s(-t))/2}function D(t){return(s(t)+s(-t))/2}function R(t){return c(t+L(t*t+1))}function z(t){return c(t+L(t*t-1))}function N(t){var e=m(t/2),r=2*c(o(t/2))/(e*e);function i(t,e){var n=o(t),i=o(e),a=g(e),s=i*n,l=-((1-s?c((1+s)/2)/(1-s):-.5)+r/(1+s));return[l*i*g(t),l*a]}return i.invert=function(e,i){var s,l=L(e*e+i*i),u=-t/2,f=50;if(!l)return[0,0];do{var p=u/2,d=o(p),h=g(p),m=h/d,y=-c(n(d));u-=s=(2/m*y-r*m-l)/(-y/(h*h)+1-r/(2*d*d))*(d<0?.7:1)}while(n(s)>v&&--f>0);var b=g(u);return[a(e*b,l*o(u)),C(i*b/l)]},i}function F(){var t=x,r=e.geoProjectionMutator(N),n=r(t);return n.radius=function(e){return arguments.length?r(t=e*S):t*A},n.scale(179.976).clipAngle(147)}function B(t,e){var r=o(e),n=E(O(r*o(t/=2)));return[2*r*g(t)*n,g(e)*n]}function j(){return e.geoProjection(B).scale(152.63)}function U(t){var e=g(t),r=o(t),i=t>=0?1:-1,s=m(i*t),l=(1+e-r)/2;function c(t,n){var c=o(n),u=o(t/=2);return[(1+c)*g(t),(i*n>-a(u,s)-.001?0:10*-i)+l+g(n)*r-(1+c)*e*u]}return c.invert=function(t,c){var u=0,f=0,p=50;do{var d=o(u),h=g(u),m=o(f),y=g(f),b=1+m,x=b*h-t,_=l+y*r-b*e*d-c,w=b*d/2,k=-h*y,T=e*b*h/2,M=r*m+e*d*y,A=k*T-M*w,S=(_*k-x*M)/A/2,E=(x*T-_*w)/A;n(E)>2&&(E/=2),u-=S,f-=E}while((n(S)>v||n(E)>v)&&--p>0);return i*f>-a(o(u),s)-.001?[2*u,f]:null},c}function V(){var t=20*S,r=t>=0?1:-1,n=m(r*t),i=e.geoProjectionMutator(U),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(n=m((r=(t=e*S)>=0?1:-1)*t),i(t)):t*A},s.stream=function(e){var i=s.rotate(),c=l(e),u=(s.rotate([0,0]),l(e)),f=s.precision();return s.rotate(i),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=-180*r;r*e<180;e+=90*r)u.point(e,90*r);if(t)for(;r*(e-=3*r*f)>=-180;)u.point(e,r*-a(o(e*S/2),n)*A);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])}function H(t,e){var r=m(e/2),n=L(1-r*r),i=1+n*o(t/=2),a=g(t)*n/i,s=r/i,l=a*a,c=s*s;return[4/3*a*(3+l-3*c),4/3*s*(3+3*l-c)]}function q(){return e.geoProjection(H).scale(66.1603)}B.invert=function(t,e){if(!(t*t+4*e*e>b*b+v)){var r=t,i=e,a=25;do{var s,l=g(r),c=g(r/2),u=o(r/2),f=g(i),p=o(i),d=g(2*i),h=f*f,m=p*p,y=c*c,x=1-m*u*u,_=x?O(p*u)*L(s=1/x):s=0,w=2*_*p*c-t,k=_*f-e,T=s*(m*y+_*p*u*h),M=s*(.5*l*d-2*_*f*c),A=.25*s*(d*c-_*f*m*l),S=s*(h*u+_*y*p),E=M*A-S*T;if(!E)break;var C=(k*M-w*S)/E,I=(w*A-k*T)/E;r-=C,i-=I}while((n(C)>v||n(I)>v)&&--a>0);return[r,i]}},H.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&n(e)>1)return null;var r=1+t*t+e*e,i=L((r-L(r*r-4*e*e))/2),s=C(i)/3,l=i?z(n(e/i))/3:R(n(t))/3,c=o(s),u=D(l),f=u*u-c*c;return[2*h(t)*a(P(l)*c,.25-f),2*h(e)*a(u*g(s),.25+f)]};var G=L(8),W=c(1+k);function Y(t,e){var r=n(e);return r<_?[t,c(m(_+e/2))]:[t*o(r)*(2*k-1/g(r)),h(e)*(2*k*(r-_)-c(m(r/2)))]}function X(){return e.geoProjection(Y).scale(112.314)}function Z(t){var r=2*b/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(n(t)>x){var l=a(s[1],s[0]),c=L(s[0]*s[0]+s[1]*s[1]),u=r*d((l-x)/r)+x,f=a(g(l-=u),2-o(l));l=u+C(b/c*g(f))-f,s[0]=c*o(l),s[1]=c*g(l)}return s}return s.invert=function(t,n){var s=L(t*t+n*n);if(s>x){var l=a(n,t),c=r*d((l-x)/r)+x,u=l>c?-1:1,f=s*o(c-l),p=1/m(u*O((f-b)/L(b*(b-2*f)+s*s)));l=c+2*i((p+u*L(p*p-3))/3),t=s*o(l),n=s*g(l)}return e.geoAzimuthalEquidistantRaw.invert(t,n)},s}function K(){var t=5,r=e.geoProjectionMutator(Z),n=r(t),i=n.stream,s=.01,l=-o(s*S),c=g(s*S);return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(e){var r=n.rotate(),u=i(e),f=(n.rotate([0,0]),i(e));return n.rotate(r),u.sphere=function(){f.polygonStart(),f.lineStart();for(var e=0,r=360/t,n=2*b/t,i=90-180/t,u=x;e<t;++e,i-=r,u-=n)f.point(a(c*o(u),l)*A,C(c*g(u))*A),i<-90?(f.point(-90,-180-i-s),f.point(-90,-180-i+s)):(f.point(90,i+s),f.point(90,i-s));f.lineEnd(),f.polygonEnd()},u},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)}function J(t,r){if(arguments.length<2&&(r=t),1===r)return e.geoAzimuthalEqualAreaRaw;if(r===1/0)return $;function n(n,i){var a=e.geoAzimuthalEqualAreaRaw(n/r,i);return a[0]*=t,a}return n.invert=function(n,i){var a=e.geoAzimuthalEqualAreaRaw.invert(n/t,i);return a[0]*=r,a},n}function $(t,e){return[t*o(e)/o(e/=2),2*g(e)]}function Q(){var t=2,r=e.geoProjectionMutator(J),n=r(t);return n.coefficient=function(e){return arguments.length?r(t=+e):t},n.scale(169.529)}function tt(t,e,r){var i,a,o,s=100;r=void 0===r?0:+r,e=+e;do{(a=t(r))===(o=t(r+v))&&(o=a+v),r-=i=-1*v*(a-e)/(a-o)}while(s-- >0&&n(i)>v);return s<0?NaN:r}function et(t,e,r){return void 0===e&&(e=40),void 0===r&&(r=y),function(i,a,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var f=0;f<e;f++){var p=t(o,s),d=p[0]-i,h=p[1]-a;if(n(d)<r&&n(h)<r)break;var g=d*d+h*h;if(g>l)o-=c/=2,s-=u/=2;else{l=g;var m=(o>0?-1:1)*r,v=(s>0?-1:1)*r,y=t(o+m,s),b=t(o,s+v),x=(y[0]-p[0])/m,_=(y[1]-p[1])/m,w=(b[0]-p[0])/v,k=(b[1]-p[1])/v,T=k*x-_*w,M=(n(T)<.5?.5:1)/T;if(o+=c=(h*w-d*k)*M,s+=u=(d*_-h*x)*M,n(c)<r&&n(u)<r)break}}return[o,s]}}function rt(){var t=J(1.68,2),e=1.4,r=12;function n(n,i){if(n+i<-e){var a=(n-i+1.6)*(n+i+e)/8;n+=a,i-=.8*a*g(i+b/2)}var s=t(n,i),l=(1-o(n*i))/r;return s[1]<0&&(s[0]*=1+l),s[1]>0&&(s[1]*=1+l/1.5*s[0]*s[0]),s}return n.invert=et(n),n}function nt(){return e.geoProjection(rt()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function it(t,e){var r,i=t*g(e),a=30;do{e-=r=(e+g(e)-i)/(1+o(e))}while(n(r)>v&&--a>0);return e/2}function at(t,e,r){function n(n,i){return[t*n*o(i=it(r,i)),e*g(i)]}return n.invert=function(n,i){return i=C(i/e),[n/(t*o(i)),C((2*i+g(2*i))/r)]},n}Y.invert=function(t,e){if((a=n(e))<W)return[t,2*i(s(e))-x];var r,a,l=_,u=25;do{var f=o(l/2),p=m(l/2);l-=r=(G*(l-_)-c(p)-a)/(G-f*f/(2*p))}while(n(r)>y&&--u>0);return[t/(o(l)*(G-1/g(l))),h(e)*l]},$.invert=function(t,e){var r=2*C(e/2);return[t*o(r/2)/o(r),r]};var ot=at(k/x,k,b);function st(){return e.geoProjection(ot).scale(169.529)}var lt=2.00276,ct=1.11072;function ut(t,e){var r=it(b,e);return[lt*t/(1/o(e)+ct/o(r)),(e+k*g(r))/lt]}function ft(){return e.geoProjection(ut).scale(160.857)}function pt(t){var r=0,n=e.geoProjectionMutator(t),i=n(r);return i.parallel=function(t){return arguments.length?n(r=t*S):r*A},i}function dt(t,e){return[t*o(e),e]}function ht(){return e.geoProjection(dt).scale(152.63)}function gt(t){if(!t)return dt;var e=1/m(t);function r(r,n){var i=e+t-n,a=i?r*o(n)/i:i;return[i*g(a),e-i*o(a)]}return r.invert=function(r,n){var i=L(r*r+(n=e-n)*n),s=e+t-i;return[i/o(s)*a(r,n),s]},r}function mt(){return pt(gt).scale(123.082).center([0,26.1441]).parallel(45)}function vt(t){function e(e,r){var n=x-r,i=n?e*t*g(n)/n:n;return[n*g(i)/t,x-n*o(i)]}return e.invert=function(e,r){var n=e*t,i=x-r,o=L(n*n+i*i),s=a(n,i);return[(o?o/g(o):1)*s/t,x-o]},e}function yt(){var t=.5,r=e.geoProjectionMutator(vt),n=r(t);return n.fraction=function(e){return arguments.length?r(t=+e):t},n.scale(158.837)}ut.invert=function(t,e){var r,i,a=lt*e,s=e<0?-_:_,l=25;do{i=a-k*g(s),s-=r=(g(2*s)+2*s-b*g(i))/(2*o(2*s)+2+b*o(i)*k*o(s))}while(n(r)>v&&--l>0);return i=a-k*g(s),[t*(1/o(i)+ct/o(s))/lt,i]},dt.invert=function(t,e){return[t/o(e),e]};var bt=at(1,4/b,b);function xt(){return e.geoProjection(bt).scale(152.63)}function _t(t,e,r,i,s,l){var c,u=o(l);if(n(t)>1||n(l)>1)c=O(r*s+e*i*u);else{var f=g(t/2),p=g(l/2);c=2*C(L(f*f+e*i*p*p))}return n(c)>v?[c,a(i*g(l),e*s-r*i*u)]:[0,0]}function wt(t,e,r){return O((t*t+e*e-r*r)/(2*t*e))}function kt(t){return t-2*b*l((t+b)/(2*b))}function Tt(t,e,r){for(var n,i=[[t[0],t[1],g(t[1]),o(t[1])],[e[0],e[1],g(e[1]),o(e[1])],[r[0],r[1],g(r[1]),o(r[1])]],a=i[2],s=0;s<3;++s,a=n)n=i[s],a.v=_t(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=wt(i[0].v[0],i[2].v[0],i[1].v[0]),c=wt(i[0].v[0],i[1].v[0],i[2].v[0]),u=b-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*g(l))];function p(t,e){var r,n=g(e),a=o(e),s=new Array(3);for(r=0;r<3;++r){var l=i[r];if(s[r]=_t(e-l[1],l[3],l[2],a,n,t-l[0]),!s[r][0])return l.point;s[r][1]=kt(s[r][1]-l.v[1])}var p=f.slice();for(r=0;r<3;++r){var d=2==r?0:r+1,h=wt(i[r].v[0],s[r][0],s[d][0]);s[r][1]<0&&(h=-h),r?1==r?(h=c-h,p[0]-=s[r][0]*o(h),p[1]-=s[r][0]*g(h)):(h=u-h,p[0]+=s[r][0]*o(h),p[1]+=s[r][0]*g(h)):(p[0]+=s[r][0]*o(h),p[1]-=s[r][0]*g(h))}return p[0]/=3,p[1]/=3,p}return p}function Mt(t){return t[0]*=S,t[1]*=S,t}function At(){return St([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function St(t,r,n){var i=e.geoCentroid({type:"MultiPoint",coordinates:[t,r,n]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=Tt(Mt(o(t)),Mt(o(r)),Mt(o(n)));s.invert=et(s);var l=e.geoProjection(s).rotate(a),c=l.center;return delete l.rotate,l.center=function(t){return arguments.length?c(o(t)):o.invert(c())},l.clipAngle(90)}function Et(t,e){var r=L(1-g(e));return[2/T*t*r,T*(1-r)]}function Ct(){return e.geoProjection(Et).scale(95.6464).center([0,30])}function Ot(t){var e=m(t);function r(t,r){return[t,(t?t/g(t):1)*(g(r)*o(t)-e*o(r))]}return r.invert=e?function(t,r){t&&(r*=g(t)/t);var n=o(t);return[t,2*a(L(n*n+e*e-r*r)-n,e-r)]}:function(t,e){return[t,C(t?e*m(t)/t:e)]},r}function Lt(){return pt(Ot).scale(249.828).clipAngle(90)}Et.invert=function(t,e){var r=(r=e/T-1)*r;return[r>0?t*L(b/r)/2:0,C(1-r)]};var It=L(3);function Pt(t,e){return[It*t*(2*o(2*e/3)-1)/T,It*T*g(e/3)]}function Dt(){return e.geoProjection(Pt).scale(156.19)}function Rt(t){var e=o(t);function r(t,r){return[t*e,g(r)/e]}return r.invert=function(t,r){return[t/e,C(r*e)]},r}function zt(){return pt(Rt).parallel(38.58).scale(195.044)}function Nt(t){var e=o(t);function r(t,r){return[t*e,(1+e)*m(r/2)]}return r.invert=function(t,r){return[t/e,2*i(r/(1+e))]},r}function Ft(){return pt(Nt).scale(124.75)}function Bt(t,e){var r=L(8/(3*b));return[r*t*(1-n(e)/b),r*e]}function jt(){return e.geoProjection(Bt).scale(165.664)}function Ut(t,e){var r=L(4-3*g(n(e)));return[2/L(6*b)*t*r,h(e)*L(2*b/3)*(2-r)]}function Vt(){return e.geoProjection(Ut).scale(165.664)}function Ht(t,e){var r=L(b*(4+b));return[2/r*t*(1+L(1-4*e*e/(b*b))),4/r*e]}function qt(){return e.geoProjection(Ht).scale(180.739)}function Gt(t,e){var r=(2+x)*g(e);e/=2;for(var i=0,a=1/0;i<10&&n(a)>v;i++){var s=o(e);e-=a=(e+g(e)*(s+2)-r)/(2*s*(1+s))}return[2/L(b*(4+b))*t*(1+o(e)),2*L(b/(4+b))*g(e)]}function Wt(){return e.geoProjection(Gt).scale(180.739)}function Yt(t,e){return[t*(1+o(e))/L(2+b),2*e/L(2+b)]}function Xt(){return e.geoProjection(Yt).scale(173.044)}function Zt(t,e){for(var r=(1+x)*g(e),i=0,a=1/0;i<10&&n(a)>v;i++)e-=a=(e+g(e)-r)/(1+o(e));return r=L(2+b),[t*(1+o(e))/r,2*e/r]}function Kt(){return e.geoProjection(Zt).scale(173.044)}Pt.invert=function(t,e){var r=3*C(e/(It*T));return[T*t/(It*(2*o(2*r/3)-1)),r]},Bt.invert=function(t,e){var r=L(8/(3*b)),i=e/r;return[t/(r*(1-n(i)/b)),i]},Ut.invert=function(t,e){var r=2-n(e)/L(2*b/3);return[t*L(6*b)/(2*r),h(e)*C((4-r*r)/3)]},Ht.invert=function(t,e){var r=L(b*(4+b))/2;return[t*r/(1+L(1-e*e*(4+b)/(4*b))),e*r/2]},Gt.invert=function(t,e){var r=e*L((4+b)/b)/2,n=C(r),i=o(n);return[t/(2/L(b*(4+b))*(1+i)),C((n+r*(i+2))/(2+x))]},Yt.invert=function(t,e){var r=L(2+b),n=e*r/2;return[r*t/(1+o(n)),n]},Zt.invert=function(t,e){var r=1+x,n=L(r/2);return[2*t*n/(1+o(e*=n)),C((e+g(e))/r)]};var Jt=3+2*k;function $t(t,e){var r=g(t/=2),n=o(t),a=L(o(e)),s=o(e/=2),l=g(e)/(s+k*n*a),u=L(2/(1+l*l)),f=L((k*s+(n+r)*a)/(k*s+(n-r)*a));return[Jt*(u*(f-1/f)-2*c(f)),Jt*(u*l*(f+1/f)-2*i(l))]}function Qt(){return e.geoProjection($t).scale(62.5271)}$t.invert=function(t,e){if(!(r=H.invert(t/1.2,1.065*e)))return null;var r,a=r[0],s=r[1],l=20;t/=Jt,e/=Jt;do{var p=a/2,d=s/2,h=g(p),m=o(p),y=g(d),b=o(d),_=o(s),T=L(_),M=y/(b+k*m*T),A=M*M,S=L(2/(1+A)),E=(k*b+(m+h)*T)/(k*b+(m-h)*T),C=L(E),O=C-1/C,I=C+1/C,P=S*O-2*c(C)-t,D=S*M*I-2*i(M)-e,R=y&&w*T*h*A/y,z=(k*m*b+T)/(2*(b+k*m*T)*(b+k*m*T)*T),N=-.5*M*S*S*S,F=N*R,B=N*z,j=(j=2*b+k*T*(m-h))*j*C,U=(k*m*b*T+_)/j,V=-k*h*y/(T*j),q=O*F-2*U/C+S*(U+U/E),G=O*B-2*V/C+S*(V+V/E),W=M*I*F-2*R/(1+A)+S*I*R+S*M*(U-U/E),Y=M*I*B-2*z/(1+A)+S*I*z+S*M*(V-V/E),X=G*W-Y*q;if(!X)break;var Z=(D*G-P*Y)/X,K=(P*W-D*q)/X;a-=Z,s=u(-x,f(x,s-K))}while((n(Z)>v||n(K)>v)&&--l>0);return n(n(s)-x)<v?[0,s]:l&&[a,s]};var te=o(35*S);function ee(t,e){var r=m(e/2);return[t*te*L(1-r*r),(1+te)*r]}function re(){return e.geoProjection(ee).scale(137.152)}function ne(t,e){var r=e/2,n=o(r);return[2*t/T*o(e)*n*n,T*m(r)]}function ie(){return e.geoProjection(ne).scale(135.264)}function ae(t){var e=1-t,r=i(b,0)[0]-i(-b,0)[0],n=L(2*(i(0,x)[1]-i(0,-x)[1])/r);function i(r,n){var i=o(n),a=g(n);return[i/(e+t*i)*r,e*n+t*a]}function a(t,e){var r=i(t,e);return[r[0]*n,r[1]/n]}function s(t){return a(0,t)[1]}return a.invert=function(r,i){var a=tt(s,i);return[r/n*(t+e/o(a)),a]},a}function oe(){var t=.5,r=e.geoProjectionMutator(ae),n=r(t);return n.alpha=function(e){return arguments.length?r(t=+e):t},n.scale(168.725)}function se(t){return[t[0]/2,C(m(t[1]/2*S))*A]}function le(t){return[2*t[0],2*i(g(t[1]*S))*A]}function ce(t){null==t&&(t=e.geoOrthographic);var r=t(),n=e.geoEquirectangular().scale(A).precision(0).clipAngle(null).translate([0,0]);function i(t){return r(se(t))}function a(t){i[t]=function(){return arguments.length?(r[t].apply(r,arguments),i):r[t]()}}return r.invert&&(i.invert=function(t){return le(r.invert(t))}),i.stream=function(t){var e=r.stream(t),i=n.stream({point:function(t,r){e.point(t/2,C(m(-r/2*S))*A)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return i.sphere=e.sphere,i},i.rotate=function(t){return arguments.length?(n.rotate(t),i):n.rotate()},i.center=function(t){return arguments.length?(r.center(se(t)),i):le(r.center())},a("angle"),a("clipAngle"),a("clipExtent"),a("fitExtent"),a("fitHeight"),a("fitSize"),a("fitWidth"),a("scale"),a("translate"),a("precision"),i.scale(249.5)}function ue(t,r){var i=2*b/r,s=t*t;function l(r,l){var c=e.geoAzimuthalEquidistantRaw(r,l),u=c[0],f=c[1],p=u*u+f*f;if(p>s){var h=L(p),m=a(f,u),y=i*d(m/i),_=m-y,w=t*o(_),k=(t*g(_)-_*g(w))/(x-w),T=fe(_,k),M=(b-t)/pe(T,w,b);u=h;var A,S=50;do{u-=A=(t+pe(T,w,u)*M-h)/(T(u)*M)}while(n(A)>v&&--S>0);f=_*g(u),u<x&&(f-=k*(u-x));var E=g(y),C=o(y);c[0]=u*C-f*E,c[1]=u*E+f*C}return c}return l.invert=function(r,l){var c=r*r+l*l;if(c>s){var u=L(c),f=a(l,r),p=i*d(f/i),h=f-p;r=u*o(h),l=u*g(h);for(var m=r-x,v=g(r),_=l/v,w=r<x?1/0:0,k=10;;){var T=t*g(_),M=t*o(_),A=g(M),S=x-M,E=(T-_*A)/S,C=fe(_,E);if(n(w)<y||!--k)break;_-=w=(_*v-E*m-l)/(v-2*m*(S*(M+_*T*o(M)-A)-T*(T-_*A))/(S*S))}r=(u=t+pe(C,M,r)*(b-t)/pe(C,M,b))*o(f=p+_),l=u*g(f)}return e.geoAzimuthalEquidistantRaw.invert(r,l)},l}function fe(t,e){return function(r){var n=t*o(r);return r<x&&(n-=e),L(1+n*n)}}function pe(t,e,r){for(var n=50,i=(r-e)/n,a=t(e)+t(r),o=1,s=e;o<n;++o)a+=2*t(s+=i);return.5*a*i}function de(){var t=6,r=30*S,n=o(r),i=g(r),s=e.geoProjectionMutator(ue),l=s(r,t),c=l.stream,u=.01,f=-o(u*S),p=g(u*S);return l.radius=function(e){return arguments.length?(n=o(r=e*S),i=g(r),s(r,t)):r*A},l.lobes=function(e){return arguments.length?s(r,t=+e):t},l.stream=function(e){var r=l.rotate(),s=c(e),u=(l.rotate([0,0]),c(e));return l.rotate(r),s.sphere=function(){u.polygonStart(),u.lineStart();for(var e=0,r=2*b/t,s=0;e<t;++e,s-=r)u.point(a(p*o(s),f)*A,C(p*g(s))*A),u.point(a(i*o(s-r/2),n)*A,C(i*g(s-r/2))*A);u.lineEnd(),u.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)}function he(t,e,r,i,a,s,l,c){function u(n,u){if(!u)return[t*n/b,0];var f=u*u,p=t+f*(e+f*(r+f*i)),d=u*(a-1+f*(s-c+f*l)),h=(p*p+d*d)/(2*d),m=n*C(p/h)/b;return[h*g(m),u*(1+f*c)+h*(1-o(m))]}return arguments.length<8&&(c=0),u.invert=function(u,f){var p,d,h=b*u/t,m=f,y=50;do{var x=m*m,_=t+x*(e+x*(r+x*i)),w=m*(a-1+x*(s-c+x*l)),k=_*_+w*w,T=2*w,M=k/T,A=M*M,S=C(_/M)/b,E=h*S,O=_*_,I=(2*e+x*(4*r+6*x*i))*m,P=a+x*(3*s+5*x*l),D=(2*(_*I+w*(P-1))*T-k*(2*(P-1)))/(T*T),R=o(E),z=g(E),N=M*R,F=M*z,B=h/b*(1/L(1-O/A))*(I*M-_*D)/A,j=F-u,U=m*(1+x*c)+M-N-f,V=D*z+N*B,H=N*S,q=1+D-(D*R-F*B),G=F*S,W=V*G-q*H;if(!W)break;h-=p=(U*V-j*q)/W,m-=d=(j*G-U*H)/W}while((n(p)>v||n(d)>v)&&--y>0);return[h,m]},u}ee.invert=function(t,e){var r=e/(1+te);return[t&&t/(te*L(1-r*r)),2*i(r)]},ne.invert=function(t,e){var r=i(e/T),n=o(r),a=2*r;return[t*T/2/(o(a)*n*n),a]};var ge=he(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function me(){return e.geoProjection(ge).scale(149.995)}var ve=he(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function ye(){return e.geoProjection(ve).scale(153.93)}var be=he(5/6*b,-.62636,-.0344,0,1.3493,-.05524,0,.045);function xe(){return e.geoProjection(be).scale(130.945)}function _e(t,e){var r=t*t,n=e*e;return[t*(1-.162388*n)*(.87-952426e-9*r*r),e*(1+n/12)]}function we(){return e.geoProjection(_e).scale(131.747)}_e.invert=function(t,e){var r,i=t,a=e,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-e)/(1+s/4)}while(n(r)>v&&--o>0);o=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=r=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(n(r)>v&&--o>0);return[i,a]};var ke=he(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Te(){return e.geoProjection(ke).scale(131.087)}function Me(t){var e=t(x,0)[0]-t(-x,0)[0];function r(r,n){var i=r>0?-.5:.5,a=t(r+i*b,n);return a[0]-=i*e,a}return t.invert&&(r.invert=function(r,n){var i=r>0?-.5:.5,a=t.invert(r+i*e,n),o=a[0]-i*b;return o<-b?o+=2*b:o>b&&(o-=2*b),a[0]=o,a}),r}function Ae(t,e){var r=h(t),i=h(e),s=o(e),l=o(t)*s,c=g(t)*s,u=g(i*e);t=n(a(c,u)),e=C(l),n(t-x)>v&&(t%=x);var f=Se(t>b/4?x-t:t,e);return t>b/4&&(u=f[0],f[0]=-f[1],f[1]=-u),f[0]*=r,f[1]*=-i,f}function Se(t,e){if(e===x)return[0,0];var r,i,a=g(e),s=a*a,l=s*s,c=1+l,u=1+3*l,f=1-l,p=C(1/L(c)),d=f+s*c*p,h=(1-a)/d,m=L(h),y=h*c,_=L(y),w=m*f;if(0===t)return[0,-(w+s*_)];var k,T=o(e),M=1/T,A=2*a*T,S=(-d*T-(-3*s+p*u)*A*(1-a))/(d*d),E=-M*A,O=-M*(s*c*S+h*u*A),I=-2*M*(f*(.5*S/m)-2*s*m*A),P=4*t/b;if(t>.222*b||e<b/4&&t>.175*b){if(r=(w+s*L(y*(1+l)-w*w))/(1+l),t>b/4)return[r,r];var D=r,R=.5*r;r=.5*(R+D),i=50;do{var z=r*(I+E*L(y-r*r))+O*C(r/_)-P;if(!z)break;z<0?R=r:D=r,r=.5*(R+D)}while(n(D-R)>v&&--i>0)}else{r=v,i=25;do{var N=r*r,F=L(y-N),B=I+E*F,j=r*B+O*C(r/_)-P;r-=k=F?j/(B+(O-E*N)/F):0}while(n(k)>v&&--i>0)}return[r,-w-s*L(y-r*r)]}function Ee(t,e){for(var r=0,i=1,a=.5,s=50;;){var l=a*a,c=L(a),u=C(1/L(1+l)),f=1-l+a*(1+l)*u,p=(1-c)/f,d=L(p),h=p*(1+l),g=d*(1-l),m=L(h-t*t),v=e+g+a*m;if(n(i-r)<y||0===--s||0===v)break;v>0?r=a:i=a,a=.5*(r+i)}if(!s)return null;var x=C(c),_=o(x),w=1/_,k=2*c*_,T=(-f*_-(-3*a+u*(1+3*l))*k*(1-c))/(f*f);return[b/4*(t*(-2*w*(.5*T/d*(1-l)-2*a*d*k)+-w*k*m)+-w*(a*(1+l)*T+p*(1+3*l)*k)*C(t/L(h))),x]}function Ce(){return e.geoProjection(Me(Ae)).scale(239.75)}function Oe(t,e,r){var n,i,a;return t?(n=Le(t,r),e?(a=(i=Le(e,1-r))[1]*i[1]+r*n[0]*n[0]*i[0]*i[0],[[n[0]*i[2]/a,n[1]*n[2]*i[0]*i[1]/a],[n[1]*i[1]/a,-n[0]*n[2]*i[0]*i[2]/a],[n[2]*i[1]*i[2]/a,-r*n[0]*n[1]*i[0]/a]]):[[n[0],0],[n[1],0],[n[2],0]]):[[0,(i=Le(e,1-r))[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]]}function Le(t,e){var r,a,l,c,u;if(e<v)return[(c=g(t))-(r=e*(t-c*(a=o(t)))/4)*a,a+r*c,1-e*c*c/2,t-r];if(e>=1-v)return r=(1-e)/4,l=1/(a=D(t)),[(c=I(t))+r*((u=a*P(t))-t)/(a*a),l-r*c*l*(u-t),l+r*c*l*(u+t),2*i(s(t))-x+r*(u-t)/a];var f=[1,0,0,0,0,0,0,0,0],p=[L(e),0,0,0,0,0,0,0,0],d=0;for(a=L(1-e),u=1;n(p[d]/f[d])>v&&d<8;)r=f[d++],p[d]=(r-a)/2,f[d]=(r+a)/2,a=L(r*a),u*=2;l=u*f[d]*t;do{l=(C(c=p[d]*g(a=l)/f[d])+l)/2}while(--d);return[g(l),c=o(l),c/o(l-a),l]}function Ie(t,e,r){var a=n(t),o=P(n(e));if(a){var s=1/g(a),l=1/(m(a)*m(a)),c=-(l+r*(o*o*s*s)-1+r),u=(-c+L(c*c-(r-1)*l*4))/2;return[Pe(i(1/L(u)),r)*h(t),Pe(i(L((u/l-1)/r)),1-r)*h(e)]}return[0,Pe(i(o),1-r)*h(e)]}function Pe(t,e){if(!e)return t;if(1===e)return c(m(t/2+_));for(var r=1,a=L(1-e),o=L(e),s=0;n(o)>v;s++){if(t%b){var l=i(a*m(t)/r);l<0&&(l+=b),t+=l+~~(t/b)*b}else t+=t;o=(r+a)/2,a=L(r*a),o=((r=o)-a)/2}return t/(p(2,s)*r)}function De(t,e){var r=(k-1)/(k+1),i=L(1-r*r),a=Pe(x,i*i),l=-1,u=c(m(b/4+n(e)/2)),f=s(l*u)/L(r),p=Re(f*o(l*t),f*g(l*t)),d=Ie(p[0],p[1],i*i);return[-d[1],(e>=0?1:-1)*(.5*a-d[0])]}function Re(t,e){var r=t*t,n=e+1,i=1-r-e*e;return[.5*((t>=0?x:-x)-a(i,2*t)),-.25*c(i*i+4*r)+.5*c(n*n+r)]}function ze(t,e){var r=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/r,(t[1]*e[0]-t[0]*e[1])/r]}function Ne(){return e.geoProjection(Me(De)).scale(151.496)}function Fe(t){var e=g(t),r=o(t),i=Be(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var l=g(a),c=o(a),u=o(t),f=O(e*l+r*c*u),p=g(f),d=n(p)>v?f/p:1;return[d*r*g(t),(n(t)>x?d:-d)*(e*c-r*l*u)]}return i.invert=Be(-t),s.invert=function(t,r){var n=L(t*t+r*r),s=-g(n),l=o(n),c=n*l,u=-r*s,f=n*e,p=L(c*c+u*u-f*f),d=a(c*f+u*p,u*f-c*p),h=(n>x?-1:1)*a(t*s,n*o(d)*l+r*g(d)*s);return i.invert(h,d)},s}function Be(t){var e=g(t),r=o(t);return function(t,n){var i=o(n),s=o(t)*i,l=g(t)*i,c=g(n);return[a(l,s*r-c*e),C(c*r+s*e)]}}function je(){var t=0,r=e.geoProjectionMutator(Fe),n=r(t),i=n.rotate,a=n.stream,o=e.geoCircle();return n.parallel=function(e){if(!arguments.length)return t*A;var i=n.rotate();return r(t=e*S).rotate(i)},n.rotate=function(e){return arguments.length?(i.call(n,[e[0],e[1]-t*A]),o.center([-e[0],-e[1]]),n):((e=i.call(n))[1]+=t*A,e)},n.stream=function(t){return(t=a(t)).sphere=function(){t.polygonStart();var e,r=.01,n=o.radius(90-r)().coordinates[0],i=n.length-1,a=-1;for(t.lineStart();++a<i;)t.point((e=n[a])[0],e[1]);for(t.lineEnd(),i=(n=o.radius(90+r)().coordinates[0]).length-1,t.lineStart();--a>=0;)t.point((e=n[a])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)}Ae.invert=function(t,e){n(t)>1&&(t=2*h(t)-t),n(e)>1&&(e=2*h(e)-e);var r=h(t),i=h(e),s=-r*t,l=-i*e,c=l/s<1,u=Ee(c?l:s,c?s:l),f=u[0],p=u[1],d=o(p);return c&&(f=-x-f),[r*(a(g(f)*d,-g(p))+b),i*C(o(f)*d)]},De.invert=function(t,e){var r=(k-1)/(k+1),n=L(1-r*r),o=-1,l=Oe(.5*Pe(x,n*n)-e,-t,n*n),u=ze(l[0],l[1]);return[a(u[1],u[0])/o,2*i(s(.5/o*c(r*u[0]*u[0]+r*u[1]*u[1])))-x]};var Ue=C(1-1/3)*A,Ve=Rt(0);function He(t){var e=Ue*S,r=Et(b,e)[0]-Et(-b,e)[0],i=Ve(0,e)[1],a=Et(0,e)[1],o=T-a,s=M/t,c=4/M,p=i+o*o*4/M;function d(d,h){var g,m=n(h);if(m>e){var v=f(t-1,u(0,l((d+b)/s)));(g=Et(d+=b*(t-1)/t-v*s,m))[0]=g[0]*M/r-M*(t-1)/(2*t)+v*M/t,g[1]=i+4*(g[1]-a)*o/M,h<0&&(g[1]=-g[1])}else g=Ve(d,h);return g[0]*=c,g[1]/=p,g}return d.invert=function(e,d){e/=c;var h=n(d*=p);if(h>i){var g=f(t-1,u(0,l((e+b)/s)));e=(e+b*(t-1)/t-g*s)*r/M;var m=Et.invert(e,.25*(h-i)*M/o+a);return m[0]-=b*(t-1)/t-g*s,d<0&&(m[1]=-m[1]),m}return Ve.invert(e,d)},d}function qe(t,e){return[t,1&e?90-v:Ue]}function Ge(t,e){return[t,1&e?-90+v:-Ue]}function We(t){return[t[0]*(1-v),t[1]]}function Ye(t){var e=[].concat(r.range(-180,180+t/2,t).map(qe),r.range(180,-180-t/2,-t).map(Ge));return{type:"Polygon",coordinates:[180===t?e.map(We):e]}}function Xe(){var t=4,r=e.geoProjectionMutator(He),n=r(t),i=n.stream;return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(r){var a=n.rotate(),o=i(r),s=(n.rotate([0,0]),i(r));return n.rotate(a),o.sphere=function(){e.geoStream(Ye(180/t),s)},o},n.scale(239.75)}function Ze(t){var e,r=1+t,i=C(g(1/r)),s=2*L(b/(e=b+4*i*r)),l=.5*s*(r+L(t*(2+t))),c=t*t,u=r*r;function f(f,p){var d,h,m=1-g(p);if(m&&m<2){var v,_=x-p,w=25;do{var k=g(_),T=o(_),M=i+a(k,r-T),A=1+u-2*r*T;_-=v=(_-c*i-r*k+A*M-.5*m*e)/(2*r*k*M)}while(n(v)>y&&--w>0);d=s*L(A),h=f*M/b}else d=s*(t+m),h=f*i/b;return[d*g(h),l-d*o(h)]}return f.invert=function(t,n){var o=t*t+(n-=l)*n,f=(1+u-o/(s*s))/(2*r),p=O(f),d=g(p),h=i+a(d,r-f);return[C(t/L(o))*b/h,C(1-2*(p-c*i-r*d+(1+u-2*r*f)*h)/e)]},f}function Ke(){var t=1,r=e.geoProjectionMutator(Ze),n=r(t);return n.ratio=function(e){return arguments.length?r(t=+e):t},n.scale(167.774).center([0,18.67])}var Je=.7109889596207567,$e=.0528035274542;function Qe(t,e){return e>-Je?((t=ot(t,e))[1]+=$e,t):dt(t,e)}function tr(){return e.geoProjection(Qe).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function er(t,e){return n(e)>Je?((t=ot(t,e))[1]-=e>0?$e:-$e,t):dt(t,e)}function rr(){return e.geoProjection(er).scale(152.63)}function nr(t,e,r,n){var i=L(4*b/(2*r+(1+t-e/2)*g(2*r)+(t+e)/2*g(4*r)+e/2*g(6*r))),a=L(n*g(r)*L((1+t*o(2*r)+e*o(4*r))/(1+t+e))),s=r*c(1);function l(r){return L(1+t*o(2*r)+e*o(4*r))}function c(n){var i=n*r;return(2*i+(1+t-e/2)*g(2*i)+(t+e)/2*g(4*i)+e/2*g(6*i))/r}function u(t){return l(t)*g(t)}var f=function(t,e){var n=r*tt(c,s*g(e)/r,e/b);isNaN(n)&&(n=r*h(e));var u=i*l(n);return[u*a*t/b*o(n),u/a*g(n)]};return f.invert=function(t,e){var n=tt(u,e*a/i);return[t*b/(o(n)*i*a*l(n)),C(r*c(n/r)/s)]},0===r&&(i=L(n/b),(f=function(t,e){return[t*i,g(e)/i]}).invert=function(t,e){return[t/i,C(e*i)]}),f}function ir(){var t=1,r=0,n=45*S,i=2,a=e.geoProjectionMutator(nr),o=a(t,r,n,i);return o.a=function(e){return arguments.length?a(t=+e,r,n,i):t},o.b=function(e){return arguments.length?a(t,r=+e,n,i):r},o.psiMax=function(e){return arguments.length?a(t,r,n=+e*S,i):n*A},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(180.739)}function ar(t,e,r,n,i,a,o,s,l,c,u){if(u.nanEncountered)return NaN;var f,p,d,h,g,m,v,y,b,x;if(p=t(e+.25*(f=r-e)),d=t(r-.25*f),isNaN(p))u.nanEncountered=!0;else{if(!isNaN(d))return x=((m=(h=f*(n+4*p+i)/12)+(g=f*(i+4*d+a)/12))-o)/15,c>l?(u.maxDepthCount++,m+x):Math.abs(x)<s?m+x:(y=ar(t,e,v=e+.5*f,n,p,i,h,.5*s,l,c+1,u),isNaN(y)?(u.nanEncountered=!0,NaN):(b=ar(t,v,r,i,d,a,g,.5*s,l,c+1,u),isNaN(b)?(u.nanEncountered=!0,NaN):y+b));u.nanEncountered=!0}}function or(t,e,r,n,i){var a={maxDepthCount:0,nanEncountered:!1};void 0===n&&(n=1e-8),void 0===i&&(i=20);var o=t(e),s=t(.5*(e+r)),l=t(r);return ar(t,e,r,o,s,l,(o+4*s+l)*(r-e)/6,n,i,1,a)}function sr(t,e,r){function i(r){return t+(1-t)*p(1-p(r,e),1/e)}function a(t){return or(i,0,t,1e-4)}for(var o=1/a(1),s=1e3,l=(1+1e-8)*o,c=[],u=0;u<=s;u++)c.push(a(u/s)*l);function f(t){var e=0,r=s,n=s>>1;do{c[n]>t?r=n:e=n,n=e+r>>1}while(n>e);var i=c[n+1]-c[n];return i&&(i=(t-c[n+1])/i),(n+1+i)/s}var d=2*f(1)/b*o/r,m=function(t,e){var r=f(n(g(e))),a=i(r)*t;return r/=d,[a,e>=0?r:-r]};return m.invert=function(t,e){var r;return n(e*=d)<1&&(r=h(e)*C(a(n(e))*o)),[t/i(n(e)),r]},m}function lr(){var t=0,r=2.5,n=1.183136,i=e.geoProjectionMutator(sr),a=i(t,r,n);return a.alpha=function(e){return arguments.length?i(t=+e,r,n):t},a.k=function(e){return arguments.length?i(t,r=+e,n):r},a.gamma=function(e){return arguments.length?i(t,r,n=+e):n},a.scale(152.63)}function cr(t,e){return n(t[0]-e[0])<v&&n(t[1]-e[1])<v}function ur(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a<o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c<e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function fr(t){var e,n,i,a,o,s,l,c=[],u=t[0].length;for(l=0;l<u;++l)n=(e=t[0][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ur([[n+v,i+v],[n+v,a-v],[o-v,a-v],[o-v,s+v]],30));for(l=t[1].length-1;l>=0;--l)n=(e=t[1][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ur([[o-v,s-v],[o-v,a+v],[n+v,a+v],[n+v,i-v]],30));return{type:"Polygon",coordinates:[r.merge(c)]}}function pr(t,r,n){var i,a;function o(e,n){for(var i=n<0?-1:1,a=r[+(n<0)],o=0,s=a.length-1;o<s&&e>a[o][2][0];++o);var l=t(e-a[o][1][0],n);return l[0]+=t(a[o][1][0],i*n>i*a[o][0][1]?a[o][0][1]:n)[0],l}n?o.invert=n(o):t.invert&&(o.invert=function(e,n){for(var i=a[+(n<0)],s=r[+(n<0)],l=0,c=i.length;l<c;++l){var u=i[l];if(u[0][0]<=e&&e<u[1][0]&&u[0][1]<=n&&n<u[1][1]){var f=t.invert(e-t(s[l][1][0],0)[0],n);return f[0]+=s[l][1][0],cr(o(f[0],f[1]),[e,n])?f:null}}});var s=e.geoProjection(o),l=s.stream;return s.stream=function(t){var r=s.rotate(),n=l(t),a=(s.rotate([0,0]),l(t));return s.rotate(r),n.sphere=function(){e.geoStream(i,a)},n},s.lobes=function(e){return arguments.length?(i=fr(e),r=e.map((function(t){return t.map((function(t){return[[t[0][0]*S,t[0][1]*S],[t[1][0]*S,t[1][1]*S],[t[2][0]*S,t[2][1]*S]]}))})),a=r.map((function(e){return e.map((function(e){var r,n=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]}))})),s):r.map((function(t){return t.map((function(t){return[[t[0][0]*A,t[0][1]*A],[t[1][0]*A,t[1][1]*A],[t[2][0]*A,t[2][1]*A]]}))}))},null!=r&&s.lobes(r),s}Qe.invert=function(t,e){return e>-Je?ot.invert(t,e-$e):dt.invert(t,e)},er.invert=function(t,e){return n(e)>Je?ot.invert(t,e+(e>0?$e:-$e)):dt.invert(t,e)};var dr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function hr(){return pr(ut,dr).scale(160.857)}var gr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function mr(){return pr(er,gr).scale(152.63)}var vr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yr(){return pr(ot,vr).scale(169.529)}var br=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function xr(){return pr(ot,br).scale(169.529).rotate([20,0])}var _r=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function wr(){return pr(Qe,_r,et).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var kr=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Tr(){return pr(dt,kr).scale(152.63).rotate([-20,0])}function Mr(t,e){return[3/M*t*L(b*b/3-e*e),e]}function Ar(){return e.geoProjection(Mr).scale(158.837)}function Sr(t){function e(e,r){if(n(n(r)-x)<v)return[0,r<0?-2:2];var i=g(r),a=p((1+i)/(1-i),t/2),s=.5*(a+1/a)+o(e*=t);return[2*g(e)/s,(a-1/a)/s]}return e.invert=function(e,r){var i=n(r);if(n(i-2)<v)return e?null:[0,h(r)*x];if(i>2)return null;var o=(e/=2)*e,s=(r/=2)*r,l=2*r/(1+o+s);return l=p((1+l)/(1-l),1/t),[a(2*e,1-o-s)/t,C((l-1)/(l+1))]},e}function Er(){var t=.5,r=e.geoProjectionMutator(Sr),n=r(t);return n.spacing=function(e){return arguments.length?r(t=+e):t},n.scale(124.75)}Mr.invert=function(t,e){return[M/3*t/L(b*b/3-e*e),e]};var Cr=b/k;function Or(t,e){return[t*(1+L(o(e)))/2,e/(o(e/2)*o(t/6))]}function Lr(){return e.geoProjection(Or).scale(97.2672)}function Ir(t,e){var r=t*t,n=e*e;return[t*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),e*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function Pr(){return e.geoProjection(Ir).scale(139.98)}function Dr(t,e){return[g(t)/o(e),m(e)*o(t)]}function Rr(){return e.geoProjection(Dr).scale(144.049).clipAngle(89.999)}function zr(t){var e=o(t),r=m(_+t/2);function i(i,a){var o=a-t,s=n(o)<v?i*e:n(s=_+a/2)<v||n(n(s)-x)<v?0:i*o/c(m(s)/r);return[s,o]}return i.invert=function(i,a){var o,s=a+t;return[n(a)<v?i/e:n(o=_+s/2)<v||n(n(o)-x)<v?0:i*c(m(o)/r)/a,s]},i}function Nr(){return pt(zr).parallel(40).scale(158.837)}function Fr(t,e){return[t,1.25*c(m(_+.4*e))]}function Br(){return e.geoProjection(Fr).scale(108.318)}function jr(t){var e=t.length-1;function r(r,n){for(var i,a=o(n),s=2/(1+a*o(r)),l=s*a*g(r),c=s*g(n),u=e,f=t[u],p=f[0],d=f[1];--u>=0;)p=(f=t[u])[0]+l*(i=p)-c*d,d=f[1]+l*d+c*i;return[p=l*(i=p)-c*d,d=l*d+c*i]}return r.invert=function(r,s){var l=20,c=r,u=s;do{for(var f,p=e,d=t[p],h=d[0],m=d[1],y=0,b=0;--p>=0;)y=h+c*(f=y)-u*b,b=m+c*b+u*f,h=(d=t[p])[0]+c*(f=h)-u*m,m=d[1]+c*m+u*f;var x,_,w=(y=h+c*(f=y)-u*b)*y+(b=m+c*b+u*f)*b;c-=x=((h=c*(f=h)-u*m-r)*y+(m=c*m+u*f-s)*b)/w,u-=_=(m*y-h*b)/w}while(n(x)+n(_)>v*v&&--l>0);if(l){var k=L(c*c+u*u),T=2*i(.5*k),M=g(T);return[a(c*M,k*o(T)),k?C(u*M/k):0]}},r}Or.invert=function(t,e){var r=n(t),i=n(e),a=v,s=x;i<Cr?s*=i/Cr:a+=6*O(Cr/i);for(var l=0;l<25;l++){var c=g(s),u=L(o(s)),f=g(s/2),p=o(s/2),d=g(a/6),h=o(a/6),m=.5*a*(1+u)-r,y=s/(p*h)-i,b=u?-.25*a*c/u:0,_=.5*(1+u),w=(1+.5*s*f/p)/(p*h),k=s/p*(d/6)/(h*h),T=b*k-w*_,M=(m*k-y*_)/T,A=(y*b-m*w)/T;if(s-=M,a-=A,n(M)<v&&n(A)<v)break}return[t<0?-a:a,e<0?-s:s]},Ir.invert=function(t,e){var r=h(t)*b,i=e/2,a=50;do{var o=r*r,s=i*i,l=r*i,c=r*(.975534+s*(-.0143059*o-.119161+-.0547009*s))-t,u=i*(1.00384+o*(.0802894+-.02855*s+199025e-9*o)+s*(.0998909+-.0491032*s))-e,f=.975534-s*(.119161+3*o*.0143059+.0547009*s),p=-l*(.238322+.2188036*s+.0286118*o),d=l*(.1605788+7961e-7*o+-.0571*s),g=1.00384+o*(.0802894+199025e-9*o)+s*(3*(.0998909-.02855*o)-.245516*s),m=p*d-g*f,y=(u*p-c*g)/m,x=(c*d-u*f)/m;r-=y,i-=x}while((n(y)>v||n(x)>v)&&--a>0);return a&&[r,i]},Dr.invert=function(t,e){var r=t*t,n=e*e+1,i=r+n,a=t?w*L((i-L(i*i-4*r))/r):1/L(n);return[C(t*a),h(e)*O(a)]},Fr.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*b]};var Ur=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Vr=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Hr=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],qr=[[.9245,0],[0,0],[.01943,0]],Gr=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Wr(){return Jr(Ur,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Yr(){return Jr(Vr,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Xr(){return Jr(Hr,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Zr(){return Jr(qr,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Kr(){return Jr(Gr,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Jr(t,r){var n=e.geoProjection(jr(t)).rotate(r).clipAngle(90),i=e.geoRotation(r),a=n.center;return delete n.rotate,n.center=function(t){return arguments.length?a(i(t)):i.invert(a())},n}var $r=L(6),Qr=L(7);function tn(t,e){var r=C(7*g(e)/(3*$r));return[$r*t*(2*o(2*r/3)-1)/Qr,9*g(r/3)/Qr]}function en(){return e.geoProjection(tn).scale(164.859)}function rn(t,e){for(var r,i=(1+w)*g(e),a=e,s=0;s<25&&(a-=r=(g(a/2)+g(a)-i)/(.5*o(a/2)+o(a)),!(n(r)<v));s++);return[t*(1+2*o(a)/o(a/2))/(3*k),2*L(3)*g(a/2)/L(2+k)]}function nn(){return e.geoProjection(rn).scale(188.209)}function an(t,e){for(var r,i=L(6/(4+b)),a=(1+b/4)*g(e),s=e/2,l=0;l<25&&(s-=r=(s/2+g(s)-a)/(.5+o(s)),!(n(r)<v));l++);return[i*(.5+o(s))*t/1.5,i*s]}function on(){return e.geoProjection(an).scale(166.518)}function sn(t,e){var r=e*e,n=r*r,i=r*n;return[t*(.84719-.13063*r+i*i*(.05494*r-.04515-.02326*n+.00331*i)),e*(1.01183+n*n*(.01926*r-.02625-.00396*n))]}function ln(){return e.geoProjection(sn).scale(175.295)}function cn(t,e){return[t*(1+o(e))/2,2*(e-m(e/2))]}function un(){return e.geoProjection(cn).scale(152.63)}tn.invert=function(t,e){var r=3*C(e*Qr/9);return[t*Qr/($r*(2*o(2*r/3)-1)),C(3*g(r)*$r/7)]},rn.invert=function(t,e){var r=e*L(2+k)/(2*L(3)),n=2*C(r);return[3*k*t/(1+2*o(n)/o(n/2)),C((r+g(n))/(1+w))]},an.invert=function(t,e){var r=L(6/(4+b)),i=e/r;return n(n(i)-x)<v&&(i=i<0?-x:x),[1.5*t/(r*(.5+o(i))),C((i/2+g(i))/(1+b/4))]},sn.invert=function(t,e){var r,i,a,o,s=e,l=25;do{s-=r=(s*(1.01183+(a=(i=s*s)*i)*a*(.01926*i-.02625-.00396*a))-e)/(1.01183+a*a*(.21186*i-.23625+-.05148*a))}while(n(r)>y&&--l>0);return[t/(.84719-.13063*(i=s*s)+(o=i*(a=i*i))*o*(.05494*i-.04515-.02326*a+.00331*o)),s]},cn.invert=function(t,e){for(var r=e/2,i=0,a=1/0;i<10&&n(a)>v;++i){var s=o(e/2);e-=a=(e-m(e/2)-r)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var fn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function pn(){return pr(J(1/0),fn).rotate([20,0]).scale(152.63)}function dn(t,e){var r=g(e),i=o(e),a=h(t);if(0===t||n(e)===x)return[0,e];if(0===e)return[t,0];if(n(t)===x)return[t*i,x*r];var s=b/(2*t)-2*t/b,l=2*e/b,c=(1-l*l)/(r-l),u=s*s,f=c*c,p=1+u/f,d=1+f/u,m=(s*r/c-s/2)/p,v=(f*r/u+c/2)/d,y=v*v-(f*r*r/u+c*r-1)/d;return[x*(m+L(m*m+i*i/p)*a),x*(v+L(y<0?0:y)*h(-e*s)*a)]}function hn(){return e.geoProjection(dn).scale(127.267)}dn.invert=function(t,e){var r=(t/=x)*t,n=r+(e/=x)*e,i=b*b;return[t?(n-1+L((1-n)*(1-n)+4*r))/(2*t)*x:0,tt((function(t){return n*(b*g(t)-2*t)*b+4*t*t*(e-g(t))+2*b*t-i*e}),0)]};var gn=1.0148,mn=.23185,vn=-.14499,yn=.02406,bn=gn,xn=5*mn,_n=7*vn,wn=9*yn,kn=1.790857183;function Tn(t,e){var r=e*e;return[t,e*(gn+r*r*(mn+r*(vn+yn*r)))]}function Mn(){return e.geoProjection(Tn).scale(139.319)}function An(t,e){if(n(e)<v)return[t,0];var r=m(e),i=t*g(e);return[g(i)/r,e+(1-o(i))/r]}function Sn(){return e.geoProjection(An).scale(103.74)}function En(t,e){var r=Ln(t[1],t[0]),n=Ln(e[1],e[0]),i=Pn(r,n),a=In(r)/In(n);return On([1,0,t[0][0],0,1,t[0][1]],On([a,0,0,0,a,0],On([o(i),g(i),0,-g(i),o(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function Cn(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function On(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function Ln(t,e){return[t[0]-e[0],t[1]-e[1]]}function In(t){return L(t[0]*t[0]+t[1]*t[1])}function Pn(t,e){return a(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}function Dn(t,r,n){function i(t,e){if(t.edges=Fn(t.face),e.face){var r=t.shared=Nn(t.face,e.face),n=En(r.map(e.project),r.map(t.project));t.transform=e.transform?On(e.transform,n):n;for(var a=e.edges,o=0,s=a.length;o<s;++o)zn(r[0],a[o][1])&&zn(r[1],a[o][0])&&(a[o]=t),zn(r[0],a[o][0])&&zn(r[1],a[o][1])&&(a[o]=t);for(o=0,s=(a=t.edges).length;o<s;++o)zn(r[0],a[o][0])&&zn(r[1],a[o][1])&&(a[o]=e),zn(r[0],a[o][1])&&zn(r[1],a[o][0])&&(a[o]=e)}else t.transform=e.transform;return t.children&&t.children.forEach((function(e){i(e,t)})),t}function a(t,e){var n,i=r(t,e),a=i.project([t*A,e*A]);return(n=i.transform)?[n[0]*a[0]+n[1]*a[1]+n[2],-(n[3]*a[0]+n[4]*a[1]+n[5])]:(a[1]=-a[1],a)}function o(t,e){var r=t.project.invert,n=t.transform,i=e;if(n&&(i=[(n=Cn(n))[0]*i[0]+n[1]*i[1]+n[2],n[3]*i[0]+n[4]*i[1]+n[5]]),r&&t===s(a=r(i)))return a;for(var a,l=t.children,c=0,u=l&&l.length;c<u;++c)if(a=o(l[c],e))return a}function s(t){return r(t[0]*S,t[1]*S)}i(t,{transform:null}),Bn(t)&&(a.invert=function(e,r){var n=o(t,[e,-r]);return n&&(n[0]*=S,n[1]*=S,n)});var l=e.geoProjection(a),c=l.stream;return l.stream=function(e){var r=l.rotate(),n=c(e),i=(l.rotate([0,0]),c(e));return l.rotate(r),n.sphere=function(){i.polygonStart(),i.lineStart(),Rn(i,t),i.lineEnd(),i.polygonEnd()},n},l.angle(null==n?-30:n*A)}function Rn(t,r,i){var a,o,s=r.edges,l=s.length,c={type:"MultiPoint",coordinates:r.face},u=r.face.filter((function(t){return 90!==n(t[1])})),f=e.geoBounds({type:"MultiPoint",coordinates:u}),p=!1,d=-1,h=f[1][0]-f[0][0],g=180===h||360===h?[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]:e.geoCentroid(c);if(i)for(;++d<l&&s[d]!==i;);++d;for(var m=0;m<l;++m)o=s[(m+d)%l],Array.isArray(o)?(p||(t.point((a=e.geoInterpolate(o[0],g)(v))[0],a[1]),p=!0),t.point((a=e.geoInterpolate(o[1],g)(v))[0],a[1])):(p=!1,o!==i&&Rn(t,o,r))}function zn(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function Nn(t,e){for(var r,n,i=t.length,a=null,o=0;o<i;++o){r=t[o];for(var s=e.length;--s>=0;)if(n=e[s],r[0]===n[0]&&r[1]===n[1]){if(a)return[a,r];a=r}}}function Fn(t){for(var e=t.length,r=[],n=t[e-1],i=0;i<e;++i)r.push([n,n=t[i]]);return r}function Bn(t){return t.project.invert||t.children&&t.children.some(Bn)}Tn.invert=function(t,e){e>kn?e=kn:e<-kn&&(e=-kn);var r,i=e;do{var a=i*i;i-=r=(i*(gn+a*a*(mn+a*(vn+yn*a)))-e)/(bn+a*a*(xn+a*(_n+wn*a)))}while(n(r)>v);return[t,i]},An.invert=function(t,e){if(n(e)<v)return[t,0];var r,i=t*t+e*e,a=.5*e,s=10;do{var l=m(a),c=1/o(a),u=i-2*e*a+a*a;a-=r=(l*u+2*(a-e))/(2+u*c*c+2*(a-e)*l)}while(n(r)>v&&--s>0);return l=m(a),[(n(e)<n(a+1/l)?C(t*l):h(e)*h(t)*(O(n(t*l))+x))/g(a),a]};var jn=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Un=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return jn[t]}))}));function Vn(t){t=t||function(t){var r=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Un.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),Dn(r[0],(function(t,e){return r[t<-b/2?e<0?6:4:t<0?e<0?2:0:t<b/2?e<0?3:1:e<0?7:5]})).angle(-30).scale(101.858).center([0,45])}var Hn=2/L(3);function qn(t,e){var r=Et(t,e);return[r[0]*Hn,r[1]]}function Gn(t){t=t||function(t){var r=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoProjection(qn).translate([0,0]).scale(1).rotate(r[1]>0?[-r[0],0]:[180-r[0],180])};var r=Un.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),Dn(r[0],(function(t,e){return r[t<-b/2?e<0?6:4:t<0?e<0?2:0:t<b/2?e<0?3:1:e<0?7:5]})).angle(-30).scale(121.906).center([0,48.5904])}function Wn(t){t=t||function(t){var r=6===t.length?e.geoCentroid({type:"MultiPoint",coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Un.map((function(t){for(var e,r=t.map(Kn),n=r.length,i=r[n-1],a=[],o=0;o<n;++o)e=r[o],a.push(Zn([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),Zn([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return a})),n=[],i=[-1,0,0,1,0,1,4,5];r.forEach((function(t,e){for(var a=Un[e],o=a.length,s=n[e]=[],l=0;l<o;++l)r.push([a[l],t[(2*l+2)%(2*o)],t[(2*l+1)%(2*o)]]),i.push(e),s.push(Xn(Kn(t[(2*l+2)%(2*o)]),Kn(t[(2*l+1)%(2*o)])))}));var a=r.map((function(e){return{project:t(e),face:e}}));function s(t,e){var r=o(e),i=[r*o(t),r*g(t),g(e)],s=t<-b/2?e<0?6:4:t<0?e<0?2:0:t<b/2?e<0?3:1:e<0?7:5,l=n[s];return a[Yn(l[0],i)<0?8+3*s:Yn(l[1],i)<0?8+3*s+1:Yn(l[2],i)<0?8+3*s+2:s]}return i.forEach((function(t,e){var r=a[t];r&&(r.children||(r.children=[])).push(a[e])})),Dn(a[0],s).angle(-30).scale(110.625).center([0,45])}function Yn(t,e){for(var r=0,n=t.length,i=0;r<n;++r)i+=t[r]*e[r];return i}function Xn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Zn(t){return[a(t[1],t[0])*A,C(u(-1,f(1,t[2])))*A]}function Kn(t){var e=t[0]*S,r=t[1]*S,n=o(r);return[n*o(e),n*g(e),g(r)]}function Jn(){}function $n(t){if((e=t.length)<4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n<=0}function Qn(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a<o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],p=f[0],d=f[1];u>n^d>n&&r<(p-c)*(n-u)/(d-u)+c&&(i=!i)}return i}function ti(t,e){var r,n=e.stream;if(!n)throw new Error("invalid projection");switch(t&&t.type){case"Feature":r=ri;break;case"FeatureCollection":r=ei;break;default:r=ii}return r(t,n)}function ei(t,e){return{type:"FeatureCollection",features:t.features.map((function(t){return ri(t,e)}))}}function ri(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:ii(t.geometry,e)}}function ni(t,e){return{type:"GeometryCollection",geometries:t.geometries.map((function(t){return ii(t,e)}))}}function ii(t,r){if(!t)return null;if("GeometryCollection"===t.type)return ni(t,r);var n;switch(t.type){case"Point":case"MultiPoint":n=si;break;case"LineString":case"MultiLineString":n=li;break;case"Polygon":case"MultiPolygon":case"Sphere":n=ci;break;default:return null}return e.geoStream(t,r(n)),n.result()}qn.invert=function(t,e){return Et.invert(t/Hn,e)};var ai=[],oi=[],si={point:function(t,e){ai.push([t,e])},result:function(){var t=ai.length?ai.length<2?{type:"Point",coordinates:ai[0]}:{type:"MultiPoint",coordinates:ai}:null;return ai=[],t}},li={lineStart:Jn,point:function(t,e){ai.push([t,e])},lineEnd:function(){ai.length&&(oi.push(ai),ai=[])},result:function(){var t=oi.length?oi.length<2?{type:"LineString",coordinates:oi[0]}:{type:"MultiLineString",coordinates:oi}:null;return oi=[],t}},ci={polygonStart:Jn,lineStart:Jn,point:function(t,e){ai.push([t,e])},lineEnd:function(){var t=ai.length;if(t){do{ai.push(ai[0].slice())}while(++t<4);oi.push(ai),ai=[]}},polygonEnd:Jn,result:function(){if(!oi.length)return null;var t=[],e=[];return oi.forEach((function(r){$n(r)?t.push([r]):e.push(r)})),e.forEach((function(e){var r=e[0];t.some((function(t){if(Qn(t[0],r))return t.push(e),!0}))||t.push([e])})),oi=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}};function ui(t){var r=t(x,0)[0]-t(-x,0)[0];function i(e,i){var a=n(e)<x,o=t(a?e:e>0?e-b:e+b,i),s=(o[0]-o[1])*w,l=(o[0]+o[1])*w;if(a)return[s,l];var c=r*w,u=s>0^l>0?-1:1;return[u*s-h(l)*c,u*l-h(s)*c]}return t.invert&&(i.invert=function(e,i){var a=(e+i)*w,o=(i-e)*w,s=n(a)<.5*r&&n(o)<.5*r;if(!s){var l=r*w,c=a>0^o>0?-1:1,u=-c*e+(o>0?1:-1)*l,f=-c*i+(a>0?1:-1)*l;a=(-u-f)*w,o=(u-f)*w}var p=t.invert(a,o);return s||(p[0]+=a>0?b:-b),p}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)}function fi(){return ui(Ae).scale(176.423)}function pi(){return ui(De).scale(111.48)}function di(t,e){if(!(0<=(e=+e)&&e<=20))throw new Error("invalid digits");function r(t){var r=t.length,n=2,i=new Array(r);for(i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);n<r;)i[n]=t[n],++n;return i}function n(t){return t.map(r)}function i(t){for(var e=r(t[0]),n=[e],i=1;i<t.length;i++){var a=r(t[i]);(a.length>2||a[0]!=e[0]||a[1]!=e[1])&&(n.push(a),e=a)}return 1===n.length&&t.length>1&&n.push(r(t[t.length-1])),n}function a(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(o)};break;case"Point":e={type:"Point",coordinates:r(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:n(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:a(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(a)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function s(t){var e={type:"Feature",properties:t.properties,geometry:o(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return s(t);case"FeatureCollection":var l={type:"FeatureCollection",features:t.features.map(s)};return null!=t.bbox&&(l.bbox=t.bbox),l;default:return o(t)}return t}function hi(t){var e=g(t);function r(r,n){var a=e?m(r*e/2)/e:r/2;if(!n)return[2*a,-t];var s=2*i(a*g(n)),l=1/m(n);return[g(s)*l,n+(1-o(s))*l-t]}return r.invert=function(r,a){if(n(a+=t)<v)return[e?2*i(e*r/2)/e:r,0];var s,l=r*r+a*a,c=0,u=10;do{var f=m(c),p=1/o(c),d=l-2*a*c+c*c;c-=s=(f*d+2*(c-a))/(2+d*p*p+2*(c-a)*f)}while(n(s)>v&&--u>0);var h=r*(f=m(c)),y=m(n(a)<n(c+1/f)?.5*C(h):.5*O(h)+b/4)/g(c);return[e?2*i(e*y)/e:2*y,c]},r}function gi(){return pt(hi).scale(131.215)}var mi=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function vi(t,e){var r,i=f(18,36*n(e)/b),a=l(i),o=i-a,s=(r=mi[a])[0],c=r[1],u=(r=mi[++a])[0],p=r[1],d=(r=mi[f(19,++a)])[0],h=r[1];return[t*(u+o*(d-s)/2+o*o*(d-2*u+s)/2),(e>0?x:-x)*(p+o*(h-c)/2+o*o*(h-2*p+c)/2)]}function yi(){return e.geoProjection(vi).scale(152.63)}function bi(t){function e(e,r){var n=o(r),i=(t-1)/(t-n*o(e));return[i*n*g(e),i*g(r)]}return e.invert=function(e,r){var n=e*e+r*r,i=L(n),o=(t-L(1-n*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*L(1-o*o)),i?C(r*o/i):0]},e}function xi(t,e){var r=bi(t);if(!e)return r;var n=o(e),i=g(e);function a(e,a){var o=r(e,a),s=o[1],l=s*i/(t-1)+n;return[o[0]*n/l,s/l]}return a.invert=function(e,a){var o=(t-1)/(t-1-a*i);return r.invert(o*e,o*a*n)},a}function _i(){var t=2,r=0,n=e.geoProjectionMutator(xi),i=n(t,r);return i.distance=function(e){return arguments.length?n(t=+e,r):t},i.tilt=function(e){return arguments.length?n(t,r=e*S):r*A},i.scale(432.147).clipAngle(O(1/t)*A-1e-6)}mi.forEach((function(t){t[1]*=1.0144})),vi.invert=function(t,e){var r=e/x,i=90*r,a=f(18,n(i/5)),o=u(0,l(a));do{var s=mi[o][1],c=mi[o+1][1],p=mi[f(19,o+2)][1],d=p-s,h=p-2*c+s,g=2*(n(r)-c)/d,m=h/d,v=g*(1-m*g*(1-2*m*g));if(v>=0||1===o){i=(e>=0?5:-5)*(v+a);var b,_=50;do{v=(a=f(18,n(i)/5))-(o=l(a)),s=mi[o][1],c=mi[o+1][1],p=mi[f(19,o+2)][1],i-=(b=(e>=0?x:-x)*(c+v*(p-s)/2+v*v*(p-2*c+s)/2)-e)*A}while(n(b)>y&&--_>0);break}}while(--o>=0);var w=mi[o][0],k=mi[o+1][0],T=mi[f(19,o+2)][0];return[t/(k+v*(T-w)/2+v*v*(T-2*k+w)/2),i*S]};var wi=1e-4,ki=1e4,Ti=-180,Mi=Ti+wi,Ai=180,Si=Ai-wi,Ei=-90,Ci=Ei+wi,Oi=90,Li=Oi-wi;function Ii(t){return t.length>0}function Pi(t){return Math.floor(t*ki)/ki}function Di(t){return t===Ei||t===Oi?[0,t]:[Ti,Pi(t)]}function Ri(t){var e=t[0],r=t[1],n=!1;return e<=Mi?(e=Ti,n=!0):e>=Si&&(e=Ai,n=!0),r<=Ci?(r=Ei,n=!0):r>=Li&&(r=Oi,n=!0),n?[e,r]:t}function zi(t){return t.map(Ri)}function Ni(t,e,r){for(var n=0,i=t.length;n<i;++n){var a=t[n].slice();r.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o<s;++o){var l=a[o],c=l[0],u=l[1];if(c<=Mi||c>=Si||u<=Ci||u>=Li){a[o]=Ri(l);for(var f=o+1;f<s;++f){var p=a[f],d=p[0],h=p[1];if(d>Mi&&d<Si&&h>Ci&&h<Li)break}if(f===o+1)continue;if(o){var g={index:-1,polygon:e,ring:a.slice(0,o+1)};g.ring[g.ring.length-1]=Di(u),r[r.length-1]=g}else r.pop();if(f>=s)break;r.push({index:-1,polygon:e,ring:a=a.slice(f-1)}),a[0]=Di(a[0][1]),o=-1,s=a.length}}}}function Fi(t){var e,r,n,i,a,o,s=t.length,l={},c={};for(e=0;e<s;++e)n=(r=t[e]).ring[0],a=r.ring[r.ring.length-1],n[0]!==a[0]||n[1]!==a[1]?(r.index=e,l[n]=c[a]=r):(r.polygon.push(r.ring),t[e]=null);for(e=0;e<s;++e)if(r=t[e]){if(n=r.ring[0],a=r.ring[r.ring.length-1],i=c[n],o=l[a],delete l[n],delete c[a],n[0]===a[0]&&n[1]===a[1]){r.polygon.push(r.ring);continue}i?(delete c[n],delete l[i.ring[0]],i.ring.pop(),t[i.index]=null,r={index:-1,polygon:i.polygon,ring:i.ring.concat(r.ring)},i===o?r.polygon.push(r.ring):(r.index=s++,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r))):o?(delete l[a],delete c[o.ring[o.ring.length-1]],r.ring.pop(),r={index:s++,polygon:o.polygon,ring:r.ring.concat(o.ring)},t[o.index]=null,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r)):(r.ring.push(r.ring[0]),r.polygon.push(r.ring))}}function Bi(t){var e={type:"Feature",geometry:ji(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function ji(t){if(null==t)return t;var e,r,n,i;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(ji)};break;case"Point":e={type:"Point",coordinates:Ri(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:zi(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(zi)};break;case"Polygon":var a=[];Ni(t.coordinates,a,r=[]),Fi(r),e={type:"Polygon",coordinates:a};break;case"MultiPolygon":r=[],n=-1,i=t.coordinates.length;for(var o=new Array(i);++n<i;)Ni(t.coordinates[n],o[n]=[],r);Fi(r),e={type:"MultiPolygon",coordinates:o.filter(Ii)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function Ui(t){if(null==t)return t;switch(t.type){case"Feature":return Bi(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(Bi)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return ji(t)}}function Vi(t,e){var r=m(e/2),n=g(_*r);return[t*(.74482-.34588*n*n),1.70711*r]}function Hi(){return e.geoProjection(Vi).scale(146.153)}function qi(t,r,n){var i=e.geoInterpolate(r,n),a=i(.5),o=e.geoRotation([-a[0],-a[1]])(r),s=i.distance/2,l=-C(g(o[1]*S)/g(s)),c=[-a[0],-a[1],-(o[0]>0?b-l:l)*A],u=e.geoProjection(t(s)).rotate(c),f=e.geoRotation(c),p=u.center;return delete u.rotate,u.center=function(t){return arguments.length?p(f(t)):f.invert(p())},u.clipAngle(90)}function Gi(t){var r=o(t);function n(t,n){var i=e.geoGnomonicRaw(t,n);return i[0]*=r,i}return n.invert=function(t,n){return e.geoGnomonicRaw.invert(t/r,n)},n}function Wi(){return Yi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Yi(t,e){return qi(Gi,t,e)}function Xi(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var r=-t/2,n=-r,i=t*t,s=m(n),l=.5/g(n);function c(e,a){var s=O(o(a)*o(e-r)),l=O(o(a)*o(e-n));return[((s*=s)-(l*=l))/(2*t),(a<0?-1:1)*L(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return c.invert=function(t,e){var i,c,u=e*e,f=o(L(u+(i=t+r)*i)),p=o(L(u+(i=t+n)*i));return[a(c=f-p,i=(f+p)*s),(e<0?-1:1)*O(L(i*i+c*c)*l)]},c}function Zi(){return Ki([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ki(t,e){return qi(Xi,t,e)}function Ji(t,e){if(n(e)<v)return[t,0];var r=n(e/x),i=C(r);if(n(t)<v||n(n(e)-x)<v)return[0,h(e)*b*m(i/2)];var a=o(i),s=n(b/t-t/b)/2,l=s*s,c=a/(r+a-1),u=c*(2/r-1),f=u*u,p=f+l,d=c-f,g=l+c;return[h(t)*b*(s*d+L(l*d*d-p*(c*c-f)))/p,h(e)*b*(u*g-s*L((l+1)*p-g*g))/p]}function $i(){return e.geoProjection(Ji).scale(79.4183)}function Qi(t,e){if(n(e)<v)return[t,0];var r=n(e/x),i=C(r);if(n(t)<v||n(n(e)-x)<v)return[0,h(e)*b*m(i/2)];var a=o(i),s=n(b/t-t/b)/2,l=s*s,c=a*(L(1+l)-s*a)/(1+l*r*r);return[h(t)*b*c,h(e)*b*L(1-c*(2*s+c))]}function ta(){return e.geoProjection(Qi).scale(79.4183)}function ea(t,e){if(n(e)<v)return[t,0];var r=e/x,i=C(r);if(n(t)<v||n(n(e)-x)<v)return[0,b*m(i/2)];var a=(b/t-t/b)/2,s=r/(1+o(i));return[b*(h(t)*L(a*a+1-s*s)-a),b*s]}function ra(){return e.geoProjection(ea).scale(79.4183)}function na(t,e){if(!e)return[t,0];var r=n(e);if(!t||r===x)return[0,e];var i=r/x,a=i*i,o=(8*i-a*(a+2)-5)/(2*a*(i-1)),s=o*o,l=i*o,c=a+s+2*l,u=i+3*o,f=t/x,p=f+1/f,d=h(n(t)-x)*L(p*p-4),g=d*d,m=(d*(c+s-1)+2*L(c*(a+s*g-1)+(1-a)*(a*(u*u+4*s)+12*l*s+4*s*s)))/(4*c+g);return[h(t)*x*m,h(e)*x*L(1+d*n(m)-m*m)]}function ia(){return e.geoProjection(na).scale(127.16)}function aa(t,e,r,n,i){function s(a,s){var l=r*g(n*s),c=L(1-l*l),u=L(2/(1+c*o(a*=i)));return[t*c*u*g(a),e*l*u]}return s.invert=function(o,s){var l=o/t,c=s/e,u=L(l*l+c*c),f=2*C(u/2);return[a(o*m(f),t*u)/i,u&&C(s*g(f)/(e*r*u))/n]},s}function oa(t,e,r,n){var i=b/3;t=u(t,v),e=u(e,v),t=f(t,x),e=f(e,b-v),r=u(r,0),r=f(r,100-v);var a=(n=u(n,v))/100,s=O((r/100+1)*o(i))/i,l=g(t)/g(s*x),c=e/b,p=L(a*g(t/2)/g(e/2));return aa(p/L(c*l*s),1/(p*L(c*l*s)),l,s,c)}function sa(){var t=65*S,r=60*S,n=20,i=200,a=e.geoProjectionMutator(oa),o=a(t,r,n,i);return o.poleline=function(e){return arguments.length?a(t=+e*S,r,n,i):t*A},o.parallels=function(e){return arguments.length?a(t,r=+e*S,n,i):r*A},o.inflation=function(e){return arguments.length?a(t,r,n=+e,i):n},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(163.775)}function la(){return sa().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}Vi.invert=function(t,e){var r=e/1.70711,n=g(_*r);return[t/(.74482-.34588*n*n),2*i(r)]},Ji.invert=function(t,e){if(n(e)<v)return[t,0];if(n(t)<v)return[0,x*g(2*i(e/b))];var r=(t/=b)*t,a=(e/=b)*e,s=r+a,l=s*s,c=-n(e)*(1+s),u=c-2*a+r,f=-2*c+1+2*a+l,p=a/f+(2*u*u*u/(f*f*f)-9*c*u/(f*f))/27,d=(c-u*u/(3*f))/f,m=2*L(-d/3),y=O(3*p/(d*m))/3;return[b*(s-1+L(1+2*(r-a)+l))/(2*t),h(e)*b*(-m*o(y+b/3)-u/(3*f))]},Qi.invert=function(t,e){if(!t)return[0,x*g(2*i(e/b))];var r=n(t/b),o=(1-r*r-(e/=b)*e)/(2*r),s=L(o*o+1);return[h(t)*b*(s-o),h(e)*x*g(2*a(L((1-2*o*r)*(o+s)-r),L(s+o+r)))]},ea.invert=function(t,e){if(!e)return[t,0];var r=e/b,n=(b*b*(1-r*r)-t*t)/(2*b*t);return[t?b*(h(t)*L(n*n+1)-n):0,x*g(2*i(r))]},na.invert=function(t,e){var r;if(!t||!e)return[t,e];e/=b;var i=h(t)*t/x,a=(i*i-1+4*e*e)/n(i),o=a*a,s=2*e,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),f=(3*s-c*s-10)/(2*c*s),p=u*u,d=s*u,g=s+u,m=g*g,y=s+3*u,_=-2*g*(4*d*p+(1-4*c+3*c*c)*(1+f)+p*(14*c-6-o+(8*c-8-2*o)*f)+d*(12*c-8+(10*c-10-o)*f)),w=L(m*(c+p*o-1)+(1-c)*(c*(y*y+4*p)+p*(12*d+4*p)));s-=r=(a*(m+p-1)+2*w-i*(4*m+o))/(a*(2*u*f+2*g*(1+f))+_/w-8*g*(a*(-1+p+m)+2*w)*(1+f)/(o+4*m))}while(r>v&&--l>0);return[h(t)*(L(a*a+4)+a)*b/4,x*s]};var ca=4*b+3*L(3),ua=2*L(2*b*L(3)/ca),fa=at(ua*L(3)/b,ua,ca/6);function pa(){return e.geoProjection(fa).scale(176.84)}function da(t,e){return[t*L(1-3*e*e/(b*b)),e]}function ha(){return e.geoProjection(da).scale(152.63)}function ga(t,e){var r=o(e),n=o(t)*r,i=1-n,s=o(t=a(g(t)*r,-g(e))),l=g(t);return[l*(r=L(1-n*n))-s*i,-s*r-l*i]}function ma(){return e.geoProjection(ga).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function va(t,e){var r=B(t,e);return[(r[0]+t/x)/2,(r[1]+e)/2]}function ya(){return e.geoProjection(va).scale(158.837)}da.invert=function(t,e){return[t/L(1-3*e*e/(b*b)),e]},ga.invert=function(t,e){var r=(t*t+e*e)/-2,n=L(-r*(2+r)),i=e*r+t*n,o=t*r-e*n,s=L(o*o+i*i);return[a(n*i,s*(1+r)),s?-C(n*o/s):0]},va.invert=function(t,e){var r=t,i=e,a=25;do{var s,l=o(i),c=g(i),u=g(2*i),f=c*c,p=l*l,d=g(r),h=o(r/2),m=g(r/2),y=m*m,b=1-p*h*h,_=b?O(l*h)*L(s=1/b):s=0,w=.5*(2*_*l*m+r/x)-t,k=.5*(_*c+i)-e,T=.5*s*(p*y+_*l*h*f)+.5/x,M=s*(d*u/4-_*c*m),A=.125*s*(u*m-_*c*p*d),S=.5*s*(f*h+_*y*l)+.5,E=M*A-S*T,C=(k*M-w*S)/E,I=(w*A-k*T)/E;r-=C,i-=I}while((n(C)>v||n(I)>v)&&--a>0);return[r,i]},t.geoNaturalEarth=e.geoNaturalEarth1,t.geoNaturalEarthRaw=e.geoNaturalEarth1Raw,t.geoAiry=F,t.geoAiryRaw=N,t.geoAitoff=j,t.geoAitoffRaw=B,t.geoArmadillo=V,t.geoArmadilloRaw=U,t.geoAugust=q,t.geoAugustRaw=H,t.geoBaker=X,t.geoBakerRaw=Y,t.geoBerghaus=K,t.geoBerghausRaw=Z,t.geoBertin1953=nt,t.geoBertin1953Raw=rt,t.geoBoggs=ft,t.geoBoggsRaw=ut,t.geoBonne=mt,t.geoBonneRaw=gt,t.geoBottomley=yt,t.geoBottomleyRaw=vt,t.geoBromley=xt,t.geoBromleyRaw=bt,t.geoChamberlin=St,t.geoChamberlinRaw=Tt,t.geoChamberlinAfrica=At,t.geoCollignon=Ct,t.geoCollignonRaw=Et,t.geoCraig=Lt,t.geoCraigRaw=Ot,t.geoCraster=Dt,t.geoCrasterRaw=Pt,t.geoCylindricalEqualArea=zt,t.geoCylindricalEqualAreaRaw=Rt,t.geoCylindricalStereographic=Ft,t.geoCylindricalStereographicRaw=Nt,t.geoEckert1=jt,t.geoEckert1Raw=Bt,t.geoEckert2=Vt,t.geoEckert2Raw=Ut,t.geoEckert3=qt,t.geoEckert3Raw=Ht,t.geoEckert4=Wt,t.geoEckert4Raw=Gt,t.geoEckert5=Xt,t.geoEckert5Raw=Yt,t.geoEckert6=Kt,t.geoEckert6Raw=Zt,t.geoEisenlohr=Qt,t.geoEisenlohrRaw=$t,t.geoFahey=re,t.geoFaheyRaw=ee,t.geoFoucaut=ie,t.geoFoucautRaw=ne,t.geoFoucautSinusoidal=oe,t.geoFoucautSinusoidalRaw=ae,t.geoGilbert=ce,t.geoGingery=de,t.geoGingeryRaw=ue,t.geoGinzburg4=me,t.geoGinzburg4Raw=ge,t.geoGinzburg5=ye,t.geoGinzburg5Raw=ve,t.geoGinzburg6=xe,t.geoGinzburg6Raw=be,t.geoGinzburg8=we,t.geoGinzburg8Raw=_e,t.geoGinzburg9=Te,t.geoGinzburg9Raw=ke,t.geoGringorten=Ce,t.geoGringortenRaw=Ae,t.geoGuyou=Ne,t.geoGuyouRaw=De,t.geoHammer=Q,t.geoHammerRaw=J,t.geoHammerRetroazimuthal=je,t.geoHammerRetroazimuthalRaw=Fe,t.geoHealpix=Xe,t.geoHealpixRaw=He,t.geoHill=Ke,t.geoHillRaw=Ze,t.geoHomolosine=rr,t.geoHomolosineRaw=er,t.geoHufnagel=ir,t.geoHufnagelRaw=nr,t.geoHyperelliptical=lr,t.geoHyperellipticalRaw=sr,t.geoInterrupt=pr,t.geoInterruptedBoggs=hr,t.geoInterruptedHomolosine=mr,t.geoInterruptedMollweide=yr,t.geoInterruptedMollweideHemispheres=xr,t.geoInterruptedSinuMollweide=wr,t.geoInterruptedSinusoidal=Tr,t.geoKavrayskiy7=Ar,t.geoKavrayskiy7Raw=Mr,t.geoLagrange=Er,t.geoLagrangeRaw=Sr,t.geoLarrivee=Lr,t.geoLarriveeRaw=Or,t.geoLaskowski=Pr,t.geoLaskowskiRaw=Ir,t.geoLittrow=Rr,t.geoLittrowRaw=Dr,t.geoLoximuthal=Nr,t.geoLoximuthalRaw=zr,t.geoMiller=Br,t.geoMillerRaw=Fr,t.geoModifiedStereographic=Jr,t.geoModifiedStereographicRaw=jr,t.geoModifiedStereographicAlaska=Wr,t.geoModifiedStereographicGs48=Yr,t.geoModifiedStereographicGs50=Xr,t.geoModifiedStereographicMiller=Zr,t.geoModifiedStereographicLee=Kr,t.geoMollweide=st,t.geoMollweideRaw=ot,t.geoMtFlatPolarParabolic=en,t.geoMtFlatPolarParabolicRaw=tn,t.geoMtFlatPolarQuartic=nn,t.geoMtFlatPolarQuarticRaw=rn,t.geoMtFlatPolarSinusoidal=on,t.geoMtFlatPolarSinusoidalRaw=an,t.geoNaturalEarth2=ln,t.geoNaturalEarth2Raw=sn,t.geoNellHammer=un,t.geoNellHammerRaw=cn,t.geoInterruptedQuarticAuthalic=pn,t.geoNicolosi=hn,t.geoNicolosiRaw=dn,t.geoPatterson=Mn,t.geoPattersonRaw=Tn,t.geoPolyconic=Sn,t.geoPolyconicRaw=An,t.geoPolyhedral=Dn,t.geoPolyhedralButterfly=Vn,t.geoPolyhedralCollignon=Gn,t.geoPolyhedralWaterman=Wn,t.geoProject=ti,t.geoGringortenQuincuncial=fi,t.geoPeirceQuincuncial=pi,t.geoPierceQuincuncial=pi,t.geoQuantize=di,t.geoQuincuncial=ui,t.geoRectangularPolyconic=gi,t.geoRectangularPolyconicRaw=hi,t.geoRobinson=yi,t.geoRobinsonRaw=vi,t.geoSatellite=_i,t.geoSatelliteRaw=xi,t.geoSinuMollweide=tr,t.geoSinuMollweideRaw=Qe,t.geoSinusoidal=ht,t.geoSinusoidalRaw=dt,t.geoStitch=Ui,t.geoTimes=Hi,t.geoTimesRaw=Vi,t.geoTwoPointAzimuthal=Yi,t.geoTwoPointAzimuthalRaw=Gi,t.geoTwoPointAzimuthalUsa=Wi,t.geoTwoPointEquidistant=Ki,t.geoTwoPointEquidistantRaw=Xi,t.geoTwoPointEquidistantUsa=Zi,t.geoVanDerGrinten=$i,t.geoVanDerGrintenRaw=Ji,t.geoVanDerGrinten2=ta,t.geoVanDerGrinten2Raw=Qi,t.geoVanDerGrinten3=ra,t.geoVanDerGrinten3Raw=ea,t.geoVanDerGrinten4=ia,t.geoVanDerGrinten4Raw=na,t.geoWagner=sa,t.geoWagner7=la,t.geoWagnerRaw=oa,t.geoWagner4=pa,t.geoWagner4Raw=fa,t.geoWagner6=ha,t.geoWagner6Raw=da,t.geoWiechel=ma,t.geoWiechelRaw=ga,t.geoWinkel3=ya,t.geoWinkel3Raw=va,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":107,"d3-geo":114}],114:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-array")):"function"===typeof t&&t.amd?t(["exports","d3-array"],a):a((i=i||self).d3=i.d3||{},i.d3)}(this,(function(t,e){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(t,e,r){var n=t.s=e+r,i=n-e,a=n-i;t.t=e-a+(r-i)}var o=1e-6,s=1e-12,l=Math.PI,c=l/2,u=l/4,f=2*l,p=180/l,d=l/180,h=Math.abs,g=Math.atan,m=Math.atan2,v=Math.cos,y=Math.ceil,b=Math.exp,x=Math.log,_=Math.pow,w=Math.sin,k=Math.sign||function(t){return t>0?1:t<0?-1:0},T=Math.sqrt,M=Math.tan;function A(t){return t>1?0:t<-1?l:Math.acos(t)}function S(t){return t>1?c:t<-1?-c:Math.asin(t)}function E(t){return(t=w(t/2))*t}function C(){}function O(t,e){t&&I.hasOwnProperty(t.type)&&I[t.type](t,e)}var L={Feature:function(t,e){O(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n<i;)O(r[n].geometry,e)}},I={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){P(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)P(r[n],e,0)},Polygon:function(t,e){D(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)D(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n<i;)O(r[n],e)}};function P(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i<a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function D(t,e){var r=-1,n=t.length;for(e.polygonStart();++r<n;)P(t[r],e,1);e.polygonEnd()}function R(t,e){t&&L.hasOwnProperty(t.type)?L[t.type](t,e):O(t,e)}var z,N,F,B,j,U=r(),V=r(),H={point:C,lineStart:C,lineEnd:C,polygonStart:function(){U.reset(),H.lineStart=q,H.lineEnd=G},polygonEnd:function(){var t=+U;V.add(t<0?f+t:t),this.lineStart=this.lineEnd=this.point=C},sphere:function(){V.add(f)}};function q(){H.point=W}function G(){Y(z,N)}function W(t,e){H.point=Y,z=t,N=e,F=t*=d,B=v(e=(e*=d)/2+u),j=w(e)}function Y(t,e){var r=(t*=d)-F,n=r>=0?1:-1,i=n*r,a=v(e=(e*=d)/2+u),o=w(e),s=j*o,l=B*a+s*v(i),c=s*n*w(i);U.add(m(c,l)),F=t,B=a,j=o}function X(t){return V.reset(),R(t,H),2*V}function Z(t){return[m(t[1],t[0]),S(t[2])]}function K(t){var e=t[0],r=t[1],n=v(r);return[n*v(e),n*w(e),w(r)]}function J(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function $(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Q(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function tt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function et(t){var e=T(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var rt,nt,it,at,ot,st,lt,ct,ut,ft,pt,dt,ht,gt,mt,vt,yt,bt,xt,_t,wt,kt,Tt,Mt,At,St,Et=r(),Ct={point:Ot,lineStart:It,lineEnd:Pt,polygonStart:function(){Ct.point=Dt,Ct.lineStart=Rt,Ct.lineEnd=zt,Et.reset(),H.polygonStart()},polygonEnd:function(){H.polygonEnd(),Ct.point=Ot,Ct.lineStart=It,Ct.lineEnd=Pt,U<0?(rt=-(it=180),nt=-(at=90)):Et>o?at=90:Et<-o&&(nt=-90),ft[0]=rt,ft[1]=it},sphere:function(){rt=-(it=180),nt=-(at=90)}};function Ot(t,e){ut.push(ft=[rt=t,it=t]),e<nt&&(nt=e),e>at&&(at=e)}function Lt(t,e){var r=K([t*d,e*d]);if(ct){var n=$(ct,r),i=$([n[1],-n[0],0],n);et(i),i=Z(i);var a,o=t-ot,s=o>0?1:-1,l=i[0]*p*s,c=h(o)>180;c^(s*ot<l&&l<s*t)?(a=i[1]*p)>at&&(at=a):c^(s*ot<(l=(l+360)%360-180)&&l<s*t)?(a=-i[1]*p)<nt&&(nt=a):(e<nt&&(nt=e),e>at&&(at=e)),c?t<ot?Nt(rt,t)>Nt(rt,it)&&(it=t):Nt(t,it)>Nt(rt,it)&&(rt=t):it>=rt?(t<rt&&(rt=t),t>it&&(it=t)):t>ot?Nt(rt,t)>Nt(rt,it)&&(it=t):Nt(t,it)>Nt(rt,it)&&(rt=t)}else ut.push(ft=[rt=t,it=t]);e<nt&&(nt=e),e>at&&(at=e),ct=r,ot=t}function It(){Ct.point=Lt}function Pt(){ft[0]=rt,ft[1]=it,Ct.point=Ot,ct=null}function Dt(t,e){if(ct){var r=t-ot;Et.add(h(r)>180?r+(r>0?360:-360):r)}else st=t,lt=e;H.point(t,e),Lt(t,e)}function Rt(){H.lineStart()}function zt(){Dt(st,lt),H.lineEnd(),h(Et)>o&&(rt=-(it=180)),ft[0]=rt,ft[1]=it,ct=null}function Nt(t,e){return(e-=t)<0?e+360:e}function Ft(t,e){return t[0]-e[0]}function Bt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function jt(t){var e,r,n,i,a,o,s;if(at=it=-(rt=nt=1/0),ut=[],R(t,Ct),r=ut.length){for(ut.sort(Ft),e=1,a=[n=ut[0]];e<r;++e)Bt(n,(i=ut[e])[0])||Bt(n,i[1])?(Nt(n[0],i[1])>Nt(n[0],n[1])&&(n[1]=i[1]),Nt(i[0],n[1])>Nt(n[0],n[1])&&(n[0]=i[0])):a.push(n=i);for(o=-1/0,e=0,n=a[r=a.length-1];e<=r;n=i,++e)i=a[e],(s=Nt(n[1],i[0]))>o&&(o=s,rt=i[0],it=n[1])}return ut=ft=null,rt===1/0||nt===1/0?[[NaN,NaN],[NaN,NaN]]:[[rt,nt],[it,at]]}var Ut={sphere:C,point:Vt,lineStart:qt,lineEnd:Yt,polygonStart:function(){Ut.lineStart=Xt,Ut.lineEnd=Zt},polygonEnd:function(){Ut.lineStart=qt,Ut.lineEnd=Yt}};function Vt(t,e){t*=d;var r=v(e*=d);Ht(r*v(t),r*w(t),w(e))}function Ht(t,e,r){++pt,ht+=(t-ht)/pt,gt+=(e-gt)/pt,mt+=(r-mt)/pt}function qt(){Ut.point=Gt}function Gt(t,e){t*=d;var r=v(e*=d);Mt=r*v(t),At=r*w(t),St=w(e),Ut.point=Wt,Ht(Mt,At,St)}function Wt(t,e){t*=d;var r=v(e*=d),n=r*v(t),i=r*w(t),a=w(e),o=m(T((o=At*a-St*i)*o+(o=St*n-Mt*a)*o+(o=Mt*i-At*n)*o),Mt*n+At*i+St*a);dt+=o,vt+=o*(Mt+(Mt=n)),yt+=o*(At+(At=i)),bt+=o*(St+(St=a)),Ht(Mt,At,St)}function Yt(){Ut.point=Vt}function Xt(){Ut.point=Kt}function Zt(){Jt(kt,Tt),Ut.point=Vt}function Kt(t,e){kt=t,Tt=e,t*=d,e*=d,Ut.point=Jt;var r=v(e);Mt=r*v(t),At=r*w(t),St=w(e),Ht(Mt,At,St)}function Jt(t,e){t*=d;var r=v(e*=d),n=r*v(t),i=r*w(t),a=w(e),o=At*a-St*i,s=St*n-Mt*a,l=Mt*i-At*n,c=T(o*o+s*s+l*l),u=S(c),f=c&&-u/c;xt+=f*o,_t+=f*s,wt+=f*l,dt+=u,vt+=u*(Mt+(Mt=n)),yt+=u*(At+(At=i)),bt+=u*(St+(St=a)),Ht(Mt,At,St)}function $t(t){pt=dt=ht=gt=mt=vt=yt=bt=xt=_t=wt=0,R(t,Ut);var e=xt,r=_t,n=wt,i=e*e+r*r+n*n;return i<s&&(e=vt,r=yt,n=bt,dt<o&&(e=ht,r=gt,n=mt),(i=e*e+r*r+n*n)<s)?[NaN,NaN]:[m(r,e)*p,S(n/T(i))*p]}function Qt(t){return function(){return t}}function te(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&&e.invert&&(r.invert=function(r,n){return(r=e.invert(r,n))&&t.invert(r[0],r[1])}),r}function ee(t,e){return[h(t)>l?t+Math.round(-t/f)*f:t,e]}function re(t,e,r){return(t%=f)?e||r?te(ie(t),ae(e,r)):ie(t):e||r?ae(e,r):ee}function ne(t){return function(e,r){return[(e+=t)>l?e-f:e<-l?e+f:e,r]}}function ie(t){var e=ne(t);return e.invert=ne(-t),e}function ae(t,e){var r=v(t),n=w(t),i=v(e),a=w(e);function o(t,e){var o=v(e),s=v(t)*o,l=w(t)*o,c=w(e),u=c*r+s*n;return[m(l*i-u*a,s*r-c*n),S(u*i+l*a)]}return o.invert=function(t,e){var o=v(e),s=v(t)*o,l=w(t)*o,c=w(e),u=c*i-l*a;return[m(l*i+c*a,s*r+u*n),S(u*r-s*n)]},o}function oe(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=p,e[1]*=p,e}return t=re(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=p,e[1]*=p,e},e}function se(t,e,r,n,i,a){if(r){var o=v(e),s=w(e),l=n*r;null==i?(i=e+n*f,a=e-l/2):(i=le(o,i),a=le(o,a),(n>0?i<a:i>a)&&(i+=n*f));for(var c,u=i;n>0?u>a:u<a;u-=l)c=Z([o,-s*v(u),-s*w(u)]),t.point(c[0],c[1])}}function le(t,e){(e=K(e))[0]-=t,et(e);var r=A(-e[1]);return((-e[2]<0?-r:r)+f-o)%f}function ce(){var t,e,r=Qt([0,0]),n=Qt(90),i=Qt(6),a={point:o};function o(r,n){t.push(r=e(r,n)),r[0]*=p,r[1]*=p}function s(){var o=r.apply(this,arguments),s=n.apply(this,arguments)*d,l=i.apply(this,arguments)*d;return t=[],e=re(-o[0]*d,-o[1]*d,0).invert,se(a,s,l,1),o={type:"Polygon",coordinates:[t]},t=e=null,o}return s.center=function(t){return arguments.length?(r="function"===typeof t?t:Qt([+t[0],+t[1]]),s):r},s.radius=function(t){return arguments.length?(n="function"===typeof t?t:Qt(+t),s):n},s.precision=function(t){return arguments.length?(i="function"===typeof t?t:Qt(+t),s):i},s}function ue(){var t,e=[];return{point:function(e,r,n){t.push([e,r,n])},lineStart:function(){e.push(t=[])},lineEnd:C,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function fe(t,e){return h(t[0]-e[0])<o&&h(t[1]-e[1])<o}function pe(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function de(t,e,r,n,i){var a,s,l=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,r,n=t[0],s=t[e];if(fe(n,s)){if(!n[2]&&!s[2]){for(i.lineStart(),a=0;a<e;++a)i.point((n=t[a])[0],n[1]);return void i.lineEnd()}s[0]+=2*o}l.push(r=new pe(n,t,null,!0)),c.push(r.o=new pe(n,null,r,!1)),l.push(r=new pe(s,t,null,!1)),c.push(r.o=new pe(s,null,r,!0))}})),l.length){for(c.sort(e),he(l),he(c),a=0,s=c.length;a<s;++a)c[a].e=r=!r;for(var u,f,p=l[0];;){for(var d=p,h=!0;d.v;)if((d=d.n)===p)return;u=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(a=0,s=u.length;a<s;++a)i.point((f=u[a])[0],f[1]);else n(d.x,d.n.x,1,i);d=d.n}else{if(h)for(u=d.p.z,a=u.length-1;a>=0;--a)i.point((f=u[a])[0],f[1]);else n(d.x,d.p.x,-1,i);d=d.p}u=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}}function he(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n<e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}ee.invert=ee;var ge=r();function me(t){return h(t[0])<=l?t[0]:k(t[0])*((h(t[0])+l)%f-l)}function ve(t,e){var r=me(e),n=e[1],i=w(n),a=[w(r),-v(r),0],s=0,p=0;ge.reset(),1===i?n=c+o:-1===i&&(n=-c-o);for(var d=0,h=t.length;d<h;++d)if(y=(g=t[d]).length)for(var g,y,b=g[y-1],x=me(b),_=b[1]/2+u,k=w(_),T=v(_),M=0;M<y;++M,x=E,k=O,T=L,b=A){var A=g[M],E=me(A),C=A[1]/2+u,O=w(C),L=v(C),I=E-x,P=I>=0?1:-1,D=P*I,R=D>l,z=k*O;if(ge.add(m(z*P*w(D),T*L+z*v(D))),s+=R?I+P*f:I,R^x>=r^E>=r){var N=$(K(b),K(A));et(N);var F=$(a,N);et(F);var B=(R^I>=0?-1:1)*S(F[2]);(n>B||n===B&&(N[0]||N[1]))&&(p+=R^I>=0?1:-1)}}return(s<-o||s<o&&ge<-o)^1&p}function ye(t,r,n,i){return function(a){var o,s,l,c=r(a),u=ue(),f=r(u),p=!1,d={point:h,lineStart:m,lineEnd:v,polygonStart:function(){d.point=y,d.lineStart=b,d.lineEnd=x,s=[],o=[]},polygonEnd:function(){d.point=h,d.lineStart=m,d.lineEnd=v,s=e.merge(s);var t=ve(o,i);s.length?(p||(a.polygonStart(),p=!0),de(s,xe,t,n,a)):t&&(p||(a.polygonStart(),p=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),p&&(a.polygonEnd(),p=!1),s=o=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function h(e,r){t(e,r)&&a.point(e,r)}function g(t,e){c.point(t,e)}function m(){d.point=g,c.lineStart()}function v(){d.point=h,c.lineEnd()}function y(t,e){l.push([t,e]),f.point(t,e)}function b(){f.lineStart(),l=[]}function x(){y(l[0][0],l[0][1]),f.lineEnd();var t,e,r,n,i=f.clean(),c=u.result(),d=c.length;if(l.pop(),o.push(l),l=null,d)if(1&i){if((e=(r=c[0]).length-1)>0){for(p||(a.polygonStart(),p=!0),a.lineStart(),t=0;t<e;++t)a.point((n=r[t])[0],n[1]);a.lineEnd()}}else d>1&&2&i&&c.push(c.pop().concat(c.shift())),s.push(c.filter(be))}return d}}function be(t){return t.length>1}function xe(t,e){return((t=t.x)[0]<0?t[1]-c-o:c-t[1])-((e=e.x)[0]<0?e[1]-c-o:c-e[1])}var _e=ye((function(){return!0}),we,Te,[-l,-c]);function we(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,s){var u=a>0?l:-l,f=h(a-r);h(f-l)<o?(t.point(r,n=(n+s)/2>0?c:-c),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),t.point(a,n),e=0):i!==u&&f>=l&&(h(r-i)<o&&(r-=i*o),h(a-u)<o&&(a-=u*o),n=ke(r,n,a,s),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),e=0),t.point(r=a,n=s),i=u},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}function ke(t,e,r,n){var i,a,s=w(t-r);return h(s)>o?g((w(e)*(a=v(n))*w(r)-w(n)*(i=v(e))*w(t))/(i*a*s)):(e+n)/2}function Te(t,e,r,n){var i;if(null==t)i=r*c,n.point(-l,i),n.point(0,i),n.point(l,i),n.point(l,0),n.point(l,-i),n.point(0,-i),n.point(-l,-i),n.point(-l,0),n.point(-l,i);else if(h(t[0]-e[0])>o){var a=t[0]<e[0]?l:-l;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}function Me(t){var e=v(t),r=6*d,n=e>0,i=h(e)>o;function a(e,n,i,a){se(a,t,r,i,e,n)}function s(t,r){return v(t)*v(r)>e}function c(t){var e,r,a,o,c;return{lineStart:function(){o=a=!1,c=1},point:function(p,d){var h,g=[p,d],m=s(p,d),v=n?m?0:f(p,d):m?f(p+(p<0?l:-l),d):0;if(!e&&(o=a=m)&&t.lineStart(),m!==a&&(!(h=u(e,g))||fe(e,h)||fe(g,h))&&(g[2]=1),m!==a)c=0,m?(t.lineStart(),h=u(g,e),t.point(h[0],h[1])):(h=u(e,g),t.point(h[0],h[1],2),t.lineEnd()),e=h;else if(i&&e&&n^m){var y;v&r||!(y=u(g,e,!0))||(c=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&&fe(e,g)||t.point(g[0],g[1]),e=g,a=m,r=v},lineEnd:function(){a&&t.lineEnd(),e=null},clean:function(){return c|(o&&a)<<1}}}function u(t,r,n){var i=[1,0,0],a=$(K(t),K(r)),s=J(a,a),c=a[0],u=s-c*c;if(!u)return!n&&t;var f=e*s/u,p=-e*c/u,d=$(i,a),g=tt(i,f);Q(g,tt(a,p));var m=d,v=J(g,m),y=J(m,m),b=v*v-y*(J(g,g)-1);if(!(b<0)){var x=T(b),_=tt(m,(-v-x)/y);if(Q(_,g),_=Z(_),!n)return _;var w,k=t[0],M=r[0],A=t[1],S=r[1];M<k&&(w=k,k=M,M=w);var E=M-k,C=h(E-l)<o;if(!C&&S<A&&(w=A,A=S,S=w),C||E<o?C?A+S>0^_[1]<(h(_[0]-k)<o?A:S):A<=_[1]&&_[1]<=S:E>l^(k<=_[0]&&_[0]<=M)){var O=tt(m,(-v+x)/y);return Q(O,g),[_,Z(O)]}}}function f(e,r){var i=n?t:l-t,a=0;return e<-i?a|=1:e>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}return ye(s,c,a,n?[0,-t]:[-l,t-l])}function Ae(t,e,r,n,i,a){var o,s=t[0],l=t[1],c=0,u=1,f=e[0]-s,p=e[1]-l;if(o=r-s,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<u&&(u=o)}else if(f>0){if(o>u)return;o>c&&(c=o)}if(o=i-s,f||!(o<0)){if(o/=f,f<0){if(o>u)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<u&&(u=o)}if(o=n-l,p||!(o>0)){if(o/=p,p<0){if(o<c)return;o<u&&(u=o)}else if(p>0){if(o>u)return;o>c&&(c=o)}if(o=a-l,p||!(o<0)){if(o/=p,p<0){if(o>u)return;o>c&&(c=o)}else if(p>0){if(o<c)return;o<u&&(u=o)}return c>0&&(t[0]=s+c*f,t[1]=l+c*p),u<1&&(e[0]=s+u*f,e[1]=l+u*p),!0}}}}}var Se=1e9,Ee=-Se;function Ce(t,r,n,i){function a(e,a){return t<=e&&e<=n&&r<=a&&a<=i}function s(e,a,o,s){var c=0,f=0;if(null==e||(c=l(e,o))!==(f=l(a,o))||u(e,a)<0^o>0)do{s.point(0===c||3===c?t:n,c>1?i:r)}while((c=(c+o+4)%4)!==f);else s.point(a[0],a[1])}function l(e,i){return h(e[0]-t)<o?i>0?0:3:h(e[0]-n)<o?i>0?2:1:h(e[1]-r)<o?i>0?1:0:i>0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var r=l(t,1),n=l(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(o){var l,u,f,p,d,h,g,m,v,y,b,x=o,_=ue(),w={point:k,lineStart:S,lineEnd:E,polygonStart:M,polygonEnd:A};function k(t,e){a(t,e)&&x.point(t,e)}function T(){for(var e=0,r=0,n=u.length;r<n;++r)for(var a,o,s=u[r],l=1,c=s.length,f=s[0],p=f[0],d=f[1];l<c;++l)a=p,o=d,p=(f=s[l])[0],d=f[1],o<=i?d>i&&(p-a)*(i-o)>(d-o)*(t-a)&&++e:d<=i&&(p-a)*(i-o)<(d-o)*(t-a)&&--e;return e}function M(){x=_,l=[],u=[],b=!0}function A(){var t=T(),r=b&&t,n=(l=e.merge(l)).length;(r||n)&&(o.polygonStart(),r&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),n&&de(l,c,t,s,o),o.polygonEnd()),x=o,l=u=f=null}function S(){w.point=C,u&&u.push(f=[]),y=!0,v=!1,g=m=NaN}function E(){l&&(C(p,d),h&&v&&_.rejoin(),l.push(_.result())),w.point=k,v&&x.lineEnd()}function C(e,o){var s=a(e,o);if(u&&f.push([e,o]),y)p=e,d=o,h=s,y=!1,s&&(x.lineStart(),x.point(e,o));else if(s&&v)x.point(e,o);else{var l=[g=Math.max(Ee,Math.min(Se,g)),m=Math.max(Ee,Math.min(Se,m))],c=[e=Math.max(Ee,Math.min(Se,e)),o=Math.max(Ee,Math.min(Se,o))];Ae(l,c,t,r,n,i)?(v||(x.lineStart(),x.point(l[0],l[1])),x.point(c[0],c[1]),s||x.lineEnd(),b=!1):s&&(x.lineStart(),x.point(e,o),b=!1)}g=e,m=o,v=s}return w}}function Oe(){var t,e,r,n=0,i=0,a=960,o=500;return r={stream:function(r){return t&&e===r?t:t=Ce(n,i,a,o)(e=r)},extent:function(s){return arguments.length?(n=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,r):[[n,i],[a,o]]}}}var Le,Ie,Pe,De=r(),Re={sphere:C,point:C,lineStart:ze,lineEnd:C,polygonStart:C,polygonEnd:C};function ze(){Re.point=Fe,Re.lineEnd=Ne}function Ne(){Re.point=Re.lineEnd=C}function Fe(t,e){Le=t*=d,Ie=w(e*=d),Pe=v(e),Re.point=Be}function Be(t,e){t*=d;var r=w(e*=d),n=v(e),i=h(t-Le),a=v(i),o=n*w(i),s=Pe*r-Ie*n*a,l=Ie*r+Pe*n*a;De.add(m(T(o*o+s*s),l)),Le=t,Ie=r,Pe=n}function je(t){return De.reset(),R(t,Re),+De}var Ue=[null,null],Ve={type:"LineString",coordinates:Ue};function He(t,e){return Ue[0]=t,Ue[1]=e,je(Ve)}var qe={Feature:function(t,e){return We(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n<i;)if(We(r[n].geometry,e))return!0;return!1}},Ge={Sphere:function(){return!0},Point:function(t,e){return Ye(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)if(Ye(r[n],e))return!0;return!1},LineString:function(t,e){return Xe(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)if(Xe(r[n],e))return!0;return!1},Polygon:function(t,e){return Ze(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)if(Ze(r[n],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n<i;)if(We(r[n],e))return!0;return!1}};function We(t,e){return!(!t||!Ge.hasOwnProperty(t.type))&&Ge[t.type](t,e)}function Ye(t,e){return 0===He(t,e)}function Xe(t,e){for(var r,n,i,a=0,o=t.length;a<o;a++){if(0===(n=He(t[a],e)))return!0;if(a>0&&(i=He(t[a],t[a-1]))>0&&r<=i&&n<=i&&(r+n-i)*(1-Math.pow((r-n)/i,2))<s*i)return!0;r=n}return!1}function Ze(t,e){return!!ve(t.map(Ke),Je(e))}function Ke(t){return(t=t.map(Je)).pop(),t}function Je(t){return[t[0]*d,t[1]*d]}function $e(t,e){return(t&&qe.hasOwnProperty(t.type)?qe[t.type]:We)(t,e)}function Qe(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function tr(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function er(){var t,r,n,i,a,s,l,c,u,f,p,d,g=10,m=g,v=90,b=360,x=2.5;function _(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(y(i/v)*v,n,v).map(p).concat(e.range(y(c/b)*b,l,b).map(d)).concat(e.range(y(r/g)*g,t,g).filter((function(t){return h(t%v)>o})).map(u)).concat(e.range(y(s/m)*m,a,m).filter((function(t){return h(t%b)>o})).map(f))}return _.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},_.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(d(l).slice(1),p(n).reverse().slice(1),d(c).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.extentMajor(t).extentMinor(t):_.extentMinor()},_.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],c=+t[0][1],l=+t[1][1],i>n&&(t=i,i=n,n=t),c>l&&(t=c,c=l,l=t),_.precision(x)):[[i,c],[n,l]]},_.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r>t&&(e=r,r=t,t=e),s>a&&(e=s,s=a,a=e),_.precision(x)):[[r,s],[t,a]]},_.step=function(t){return arguments.length?_.stepMajor(t).stepMinor(t):_.stepMinor()},_.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],_):[v,b]},_.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],_):[g,m]},_.precision=function(e){return arguments.length?(x=+e,u=Qe(s,a,90),f=tr(r,t,x),p=Qe(c,l,90),d=tr(i,n,x),_):x},_.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function rr(){return er()()}function nr(t,e){var r=t[0]*d,n=t[1]*d,i=e[0]*d,a=e[1]*d,o=v(n),s=w(n),l=v(a),c=w(a),u=o*v(r),f=o*w(r),h=l*v(i),g=l*w(i),y=2*S(T(E(a-n)+o*l*E(i-r))),b=w(y),x=y?function(t){var e=w(t*=y)/b,r=w(y-t)/b,n=r*u+e*h,i=r*f+e*g,a=r*s+e*c;return[m(i,n)*p,m(a,T(n*n+i*i))*p]}:function(){return[r*p,n*p]};return x.distance=y,x}function ir(t){return t}var ar,or,sr,lr,cr=r(),ur=r(),fr={point:C,lineStart:C,lineEnd:C,polygonStart:function(){fr.lineStart=pr,fr.lineEnd=gr},polygonEnd:function(){fr.lineStart=fr.lineEnd=fr.point=C,cr.add(h(ur)),ur.reset()},result:function(){var t=cr/2;return cr.reset(),t}};function pr(){fr.point=dr}function dr(t,e){fr.point=hr,ar=sr=t,or=lr=e}function hr(t,e){ur.add(lr*t-sr*e),sr=t,lr=e}function gr(){hr(ar,or)}var mr=1/0,vr=mr,yr=-mr,br=yr,xr={point:_r,lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C,result:function(){var t=[[mr,vr],[yr,br]];return yr=br=-(vr=mr=1/0),t}};function _r(t,e){t<mr&&(mr=t),t>yr&&(yr=t),e<vr&&(vr=e),e>br&&(br=e)}var wr,kr,Tr,Mr,Ar=0,Sr=0,Er=0,Cr=0,Or=0,Lr=0,Ir=0,Pr=0,Dr=0,Rr={point:zr,lineStart:Nr,lineEnd:jr,polygonStart:function(){Rr.lineStart=Ur,Rr.lineEnd=Vr},polygonEnd:function(){Rr.point=zr,Rr.lineStart=Nr,Rr.lineEnd=jr},result:function(){var t=Dr?[Ir/Dr,Pr/Dr]:Lr?[Cr/Lr,Or/Lr]:Er?[Ar/Er,Sr/Er]:[NaN,NaN];return Ar=Sr=Er=Cr=Or=Lr=Ir=Pr=Dr=0,t}};function zr(t,e){Ar+=t,Sr+=e,++Er}function Nr(){Rr.point=Fr}function Fr(t,e){Rr.point=Br,zr(Tr=t,Mr=e)}function Br(t,e){var r=t-Tr,n=e-Mr,i=T(r*r+n*n);Cr+=i*(Tr+t)/2,Or+=i*(Mr+e)/2,Lr+=i,zr(Tr=t,Mr=e)}function jr(){Rr.point=zr}function Ur(){Rr.point=Hr}function Vr(){qr(wr,kr)}function Hr(t,e){Rr.point=qr,zr(wr=Tr=t,kr=Mr=e)}function qr(t,e){var r=t-Tr,n=e-Mr,i=T(r*r+n*n);Cr+=i*(Tr+t)/2,Or+=i*(Mr+e)/2,Lr+=i,Ir+=(i=Mr*t-Tr*e)*(Tr+t),Pr+=i*(Mr+e),Dr+=3*i,zr(Tr=t,Mr=e)}function Gr(t){this._context=t}Gr.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,f)}},result:C};var Wr,Yr,Xr,Zr,Kr,Jr=r(),$r={point:C,lineStart:function(){$r.point=Qr},lineEnd:function(){Wr&&tn(Yr,Xr),$r.point=C},polygonStart:function(){Wr=!0},polygonEnd:function(){Wr=null},result:function(){var t=+Jr;return Jr.reset(),t}};function Qr(t,e){$r.point=tn,Yr=Zr=t,Xr=Kr=e}function tn(t,e){Zr-=t,Kr-=e,Jr.add(T(Zr*Zr+Kr*Kr)),Zr=t,Kr=e}function en(){this._string=[]}function rn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function nn(t,e){var r,n,i=4.5;function a(t){return t&&("function"===typeof i&&n.pointRadius(+i.apply(this,arguments)),R(t,r(n))),n.result()}return a.area=function(t){return R(t,r(fr)),fr.result()},a.measure=function(t){return R(t,r($r)),$r.result()},a.bounds=function(t){return R(t,r(xr)),xr.result()},a.centroid=function(t){return R(t,r(Rr)),Rr.result()},a.projection=function(e){return arguments.length?(r=null==e?(t=null,ir):(t=e).stream,a):t},a.context=function(t){return arguments.length?(n=null==t?(e=null,new en):new Gr(e=t),"function"!==typeof i&&n.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"===typeof t?t:(n.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function an(t){return{stream:on(t)}}function on(t){return function(e){var r=new sn;for(var n in t)r[n]=t[n];return r.stream=e,r}}function sn(){}function ln(t,e,r){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),R(r,t.stream(xr)),e(xr.result()),null!=n&&t.clipExtent(n),t}function cn(t,e,r){return ln(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),o=+e[0][0]+(n-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])}),r)}function un(t,e,r){return cn(t,[[0,0],e],r)}function fn(t,e,r){return ln(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),a=(n-i*(r[1][0]+r[0][0]))/2,o=-i*r[0][1];t.scale(150*i).translate([a,o])}),r)}function pn(t,e,r){return ln(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),a=-i*r[0][0],o=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,o])}),r)}en.prototype={_radius:4.5,_circle:rn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=rn(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},sn.prototype={constructor:sn,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var dn=16,hn=v(30*d);function gn(t,e){return+e?vn(t,e):mn(t)}function mn(t){return on({point:function(e,r){e=t(e,r),this.stream.point(e[0],e[1])}})}function vn(t,e){function r(n,i,a,s,l,c,u,f,p,d,g,v,y,b){var x=u-n,_=f-i,w=x*x+_*_;if(w>4*e&&y--){var k=s+d,M=l+g,A=c+v,E=T(k*k+M*M+A*A),C=S(A/=E),O=h(h(A)-1)<o||h(a-p)<o?(a+p)/2:m(M,k),L=t(O,C),I=L[0],P=L[1],D=I-n,R=P-i,z=_*D-x*R;(z*z/w>e||h((x*D+_*R)/w-.5)>.3||s*d+l*g+c*v<hn)&&(r(n,i,a,s,l,c,I,P,O,k/=E,M/=E,A,y,b),b.point(I,P),r(I,P,O,k,M,A,u,f,p,d,g,v,y,b))}}return function(e){var n,i,a,o,s,l,c,u,f,p,d,h,g={point:m,lineStart:v,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function m(r,n){r=t(r,n),e.point(r[0],r[1])}function v(){u=NaN,g.point=y,e.lineStart()}function y(n,i){var a=K([n,i]),o=t(n,i);r(u,f,c,p,d,h,u=o[0],f=o[1],c=n,p=a[0],d=a[1],h=a[2],dn,e),e.point(u,f)}function b(){g.point=m,e.lineEnd()}function x(){v(),g.point=_,g.lineEnd=w}function _(t,e){y(n=t,e),i=u,a=f,o=p,s=d,l=h,g.point=y}function w(){r(u,f,c,p,d,h,i,a,n,o,s,l,dn,e),g.lineEnd=b,b()}return g}}var yn=on({point:function(t,e){this.stream.point(t*d,e*d)}});function bn(t){return on({point:function(e,r){var n=t(e,r);return this.stream.point(n[0],n[1])}})}function xn(t,e,r,n,i){function a(a,o){return[e+t*(a*=n),r-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*n,(r-o)/t*i]},a}function _n(t,e,r,n,i,a){var o=v(a),s=w(a),l=o*t,c=s*t,u=o/t,f=s/t,p=(s*r-o*e)/t,d=(s*e+o*r)/t;function h(t,a){return[l*(t*=n)-c*(a*=i)+e,r-c*t-l*a]}return h.invert=function(t,e){return[n*(u*t-f*e+p),i*(d-f*t-u*e)]},h}function wn(t){return kn((function(){return t}))()}function kn(t){var e,r,n,i,a,o,s,l,c,u,f=150,h=480,g=250,m=0,v=0,y=0,b=0,x=0,_=0,w=1,k=1,M=null,A=_e,S=null,E=ir,C=.5;function O(t){return l(t[0]*d,t[1]*d)}function L(t){return(t=l.invert(t[0],t[1]))&&[t[0]*p,t[1]*p]}function I(){var t=_n(f,0,0,w,k,_).apply(null,e(m,v)),n=(_?_n:xn)(f,h-t[0],g-t[1],w,k,_);return r=re(y,b,x),s=te(e,n),l=te(r,s),o=gn(s,C),P()}function P(){return c=u=null,O}return O.stream=function(t){return c&&u===t?c:c=yn(bn(r)(A(o(E(u=t)))))},O.preclip=function(t){return arguments.length?(A=t,M=void 0,P()):A},O.postclip=function(t){return arguments.length?(E=t,S=n=i=a=null,P()):E},O.clipAngle=function(t){return arguments.length?(A=+t?Me(M=t*d):(M=null,_e),P()):M*p},O.clipExtent=function(t){return arguments.length?(E=null==t?(S=n=i=a=null,ir):Ce(S=+t[0][0],n=+t[0][1],i=+t[1][0],a=+t[1][1]),P()):null==S?null:[[S,n],[i,a]]},O.scale=function(t){return arguments.length?(f=+t,I()):f},O.translate=function(t){return arguments.length?(h=+t[0],g=+t[1],I()):[h,g]},O.center=function(t){return arguments.length?(m=t[0]%360*d,v=t[1]%360*d,I()):[m*p,v*p]},O.rotate=function(t){return arguments.length?(y=t[0]%360*d,b=t[1]%360*d,x=t.length>2?t[2]%360*d:0,I()):[y*p,b*p,x*p]},O.angle=function(t){return arguments.length?(_=t%360*d,I()):_*p},O.reflectX=function(t){return arguments.length?(w=t?-1:1,I()):w<0},O.reflectY=function(t){return arguments.length?(k=t?-1:1,I()):k<0},O.precision=function(t){return arguments.length?(o=gn(s,C=t*t),P()):T(C)},O.fitExtent=function(t,e){return cn(O,t,e)},O.fitSize=function(t,e){return un(O,t,e)},O.fitWidth=function(t,e){return fn(O,t,e)},O.fitHeight=function(t,e){return pn(O,t,e)},function(){return e=t.apply(this,arguments),O.invert=e.invert&&L,I()}}function Tn(t){var e=0,r=l/3,n=kn(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*d,r=t[1]*d):[e*p,r*p]},i}function Mn(t){var e=v(t);function r(t,r){return[t*e,w(r)/e]}return r.invert=function(t,r){return[t/e,S(r*e)]},r}function An(t,e){var r=w(t),n=(r+w(e))/2;if(h(n)<o)return Mn(t);var i=1+r*(2*n-r),a=T(i)/n;function s(t,e){var r=T(i-2*n*w(e))/n;return[r*w(t*=n),a-r*v(t)]}return s.invert=function(t,e){var r=a-e,o=m(t,h(r))*k(r);return r*n<0&&(o-=l*k(t)*k(r)),[o/n,S((i-(t*t+r*r)*n*n)/(2*n))]},s}function Sn(){return Tn(An).scale(155.424).center([0,33.6442])}function En(){return Sn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Cn(t){var e=t.length;return{point:function(r,n){for(var i=-1;++i<e;)t[i].point(r,n)},sphere:function(){for(var r=-1;++r<e;)t[r].sphere()},lineStart:function(){for(var r=-1;++r<e;)t[r].lineStart()},lineEnd:function(){for(var r=-1;++r<e;)t[r].lineEnd()},polygonStart:function(){for(var r=-1;++r<e;)t[r].polygonStart()},polygonEnd:function(){for(var r=-1;++r<e;)t[r].polygonEnd()}}}function On(){var t,e,r,n,i,a,s=En(),l=Sn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Sn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],o=t[1];return a=null,r.point(e,o),a||(n.point(e,o),a)||(i.point(e,o),a)}function p(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),r=s.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?l:i>=.166&&i<.234&&n>=-.214&&n<-.115?c:s).invert(t)},f.stream=function(r){return t&&e===r?t:t=Cn([s.stream(e=r),l.stream(r),c.stream(r)])},f.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),p()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return r=s.translate(t).clipExtent([[a-.455*e,f-.238*e],[a+.455*e,f+.238*e]]).stream(u),n=l.translate([a-.307*e,f+.201*e]).clipExtent([[a-.425*e+o,f+.12*e+o],[a-.214*e-o,f+.234*e-o]]).stream(u),i=c.translate([a-.205*e,f+.212*e]).clipExtent([[a-.214*e+o,f+.166*e+o],[a-.115*e-o,f+.234*e-o]]).stream(u),p()},f.fitExtent=function(t,e){return cn(f,t,e)},f.fitSize=function(t,e){return un(f,t,e)},f.fitWidth=function(t,e){return fn(f,t,e)},f.fitHeight=function(t,e){return pn(f,t,e)},f.scale(1070)}function Ln(t){return function(e,r){var n=v(e),i=v(r),a=t(n*i);return[a*i*w(e),a*w(r)]}}function In(t){return function(e,r){var n=T(e*e+r*r),i=t(n),a=w(i),o=v(i);return[m(e*a,n*o),S(n&&r*a/n)]}}var Pn=Ln((function(t){return T(2/(1+t))}));function Dn(){return wn(Pn).scale(124.75).clipAngle(179.999)}Pn.invert=In((function(t){return 2*S(t/2)}));var Rn=Ln((function(t){return(t=A(t))&&t/w(t)}));function zn(){return wn(Rn).scale(79.4188).clipAngle(179.999)}function Nn(t,e){return[t,x(M((c+e)/2))]}function Fn(){return Bn(Nn).scale(961/f)}function Bn(t){var e,r,n,i=wn(t),a=i.center,o=i.scale,s=i.translate,c=i.clipExtent,u=null;function f(){var a=l*o(),s=i(oe(i.rotate()).invert([0,0]));return c(null==u?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:t===Nn?[[Math.max(s[0]-a,u),e],[Math.min(s[0]+a,r),n]]:[[u,Math.max(s[1]-a,e)],[r,Math.min(s[1]+a,n)]])}return i.scale=function(t){return arguments.length?(o(t),f()):o()},i.translate=function(t){return arguments.length?(s(t),f()):s()},i.center=function(t){return arguments.length?(a(t),f()):a()},i.clipExtent=function(t){return arguments.length?(null==t?u=e=r=n=null:(u=+t[0][0],e=+t[0][1],r=+t[1][0],n=+t[1][1]),f()):null==u?null:[[u,e],[r,n]]},f()}function jn(t){return M((c+t)/2)}function Un(t,e){var r=v(t),n=t===e?w(t):x(r/v(e))/x(jn(e)/jn(t)),i=r*_(jn(t),n)/n;if(!n)return Nn;function a(t,e){i>0?e<-c+o&&(e=-c+o):e>c-o&&(e=c-o);var r=i/_(jn(e),n);return[r*w(n*t),i-r*v(n*t)]}return a.invert=function(t,e){var r=i-e,a=k(n)*T(t*t+r*r),o=m(t,h(r))*k(r);return r*n<0&&(o-=l*k(t)*k(r)),[o/n,2*g(_(i/a,1/n))-c]},a}function Vn(){return Tn(Un).scale(109.5).parallels([30,30])}function Hn(t,e){return[t,e]}function qn(){return wn(Hn).scale(152.63)}function Gn(t,e){var r=v(t),n=t===e?w(t):(r-v(e))/(e-t),i=r/n+t;if(h(n)<o)return Hn;function a(t,e){var r=i-e,a=n*t;return[r*w(a),i-r*v(a)]}return a.invert=function(t,e){var r=i-e,a=m(t,h(r))*k(r);return r*n<0&&(a-=l*k(t)*k(r)),[a/n,i-k(n)*T(t*t+r*r)]},a}function Wn(){return Tn(Gn).scale(131.154).center([0,13.9389])}Rn.invert=In((function(t){return t})),Nn.invert=function(t,e){return[t,2*g(b(e))-c]},Hn.invert=Hn;var Yn=1.340264,Xn=-.081106,Zn=893e-6,Kn=.003796,Jn=T(3)/2,$n=12;function Qn(t,e){var r=S(Jn*w(e)),n=r*r,i=n*n*n;return[t*v(r)/(Jn*(Yn+3*Xn*n+i*(7*Zn+9*Kn*n))),r*(Yn+Xn*n+i*(Zn+Kn*n))]}function ti(){return wn(Qn).scale(177.158)}function ei(t,e){var r=v(e),n=v(t)*r;return[r*w(t)/n,w(e)/n]}function ri(){return wn(ei).scale(144.049).clipAngle(60)}function ni(){var t,e,r,n,i,a,o,s=1,l=0,c=0,u=1,f=1,h=0,g=null,m=1,y=1,b=on({point:function(t,e){var r=k([t,e]);this.stream.point(r[0],r[1])}}),x=ir;function _(){return m=s*u,y=s*f,a=o=null,k}function k(r){var n=r[0]*m,i=r[1]*y;if(h){var a=i*t-n*e;n=n*t+i*e,i=a}return[n+l,i+c]}return k.invert=function(r){var n=r[0]-l,i=r[1]-c;if(h){var a=i*t+n*e;n=n*t-i*e,i=a}return[n/m,i/y]},k.stream=function(t){return a&&o===t?a:a=b(x(o=t))},k.postclip=function(t){return arguments.length?(x=t,g=r=n=i=null,_()):x},k.clipExtent=function(t){return arguments.length?(x=null==t?(g=r=n=i=null,ir):Ce(g=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),_()):null==g?null:[[g,r],[n,i]]},k.scale=function(t){return arguments.length?(s=+t,_()):s},k.translate=function(t){return arguments.length?(l=+t[0],c=+t[1],_()):[l,c]},k.angle=function(r){return arguments.length?(e=w(h=r%360*d),t=v(h),_()):h*p},k.reflectX=function(t){return arguments.length?(u=t?-1:1,_()):u<0},k.reflectY=function(t){return arguments.length?(f=t?-1:1,_()):f<0},k.fitExtent=function(t,e){return cn(k,t,e)},k.fitSize=function(t,e){return un(k,t,e)},k.fitWidth=function(t,e){return fn(k,t,e)},k.fitHeight=function(t,e){return pn(k,t,e)},k}function ii(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function ai(){return wn(ii).scale(175.295)}function oi(t,e){return[v(e)*w(t),w(e)]}function si(){return wn(oi).scale(249.5).clipAngle(90+o)}function li(t,e){var r=v(e),n=1+v(t)*r;return[r*w(t)/n,w(e)/n]}function ci(){return wn(li).scale(250).clipAngle(142)}function ui(t,e){return[x(M((c+e)/2)),-t]}function fi(){var t=Bn(ui),e=t.center,r=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?r([t[0],t[1],t.length>2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)}Qn.invert=function(t,e){for(var r,n=e,i=n*n,a=i*i*i,o=0;o<$n&&(a=(i=(n-=r=(n*(Yn+Xn*i+a*(Zn+Kn*i))-e)/(Yn+3*Xn*i+a*(7*Zn+9*Kn*i)))*n)*i*i,!(h(r)<s));++o);return[Jn*t*(Yn+3*Xn*i+a*(7*Zn+9*Kn*i))/v(n),S(w(n)/Jn)]},ei.invert=In(g),ii.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,s=a*a;n-=r=(n*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(h(r)>o&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},oi.invert=In(S),li.invert=In((function(t){return 2*g(t)})),ui.invert=function(t,e){return[-e,2*g(b(t))-c]},t.geoAlbers=En,t.geoAlbersUsa=On,t.geoArea=X,t.geoAzimuthalEqualArea=Dn,t.geoAzimuthalEqualAreaRaw=Pn,t.geoAzimuthalEquidistant=zn,t.geoAzimuthalEquidistantRaw=Rn,t.geoBounds=jt,t.geoCentroid=$t,t.geoCircle=ce,t.geoClipAntimeridian=_e,t.geoClipCircle=Me,t.geoClipExtent=Oe,t.geoClipRectangle=Ce,t.geoConicConformal=Vn,t.geoConicConformalRaw=Un,t.geoConicEqualArea=Sn,t.geoConicEqualAreaRaw=An,t.geoConicEquidistant=Wn,t.geoConicEquidistantRaw=Gn,t.geoContains=$e,t.geoDistance=He,t.geoEqualEarth=ti,t.geoEqualEarthRaw=Qn,t.geoEquirectangular=qn,t.geoEquirectangularRaw=Hn,t.geoGnomonic=ri,t.geoGnomonicRaw=ei,t.geoGraticule=er,t.geoGraticule10=rr,t.geoIdentity=ni,t.geoInterpolate=nr,t.geoLength=je,t.geoMercator=Fn,t.geoMercatorRaw=Nn,t.geoNaturalEarth1=ai,t.geoNaturalEarth1Raw=ii,t.geoOrthographic=si,t.geoOrthographicRaw=oi,t.geoPath=nn,t.geoProjection=wn,t.geoProjectionMutator=kn,t.geoRotation=oe,t.geoStereographic=ci,t.geoStereographicRaw=li,t.geoStream=R,t.geoTransform=an,t.geoTransverseMercator=fi,t.geoTransverseMercatorRaw=ui,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-array":107}],115:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";function e(t,e){return t.parent===e.parent?1:2}function r(t){return t.reduce(n,0)/t.length}function n(t,e){return t+e.x}function i(t){return 1+t.reduce(a,0)}function a(t,e){return Math.max(t,e.y)}function o(t){for(var e;e=t.children;)t=e[0];return t}function s(t){for(var e;e=t.children;)t=e[e.length-1];return t}function l(){var t=e,n=1,a=1,l=!1;function c(e){var c,u=0;e.eachAfter((function(e){var n=e.children;n?(e.x=r(n),e.y=i(n)):(e.x=c?u+=t(e,c):0,e.y=0,c=e)}));var f=o(e),p=s(e),d=f.x-t(f,p)/2,h=p.x+t(p,f)/2;return e.eachAfter(l?function(t){t.x=(t.x-e.x)*n,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-d)/(h-d)*n,t.y=(1-(e.y?t.y/e.y:1))*a})}return c.separation=function(e){return arguments.length?(t=e,c):t},c.size=function(t){return arguments.length?(l=!1,n=+t[0],a=+t[1],c):l?null:[n,a]},c.nodeSize=function(t){return arguments.length?(l=!0,n=+t[0],a=+t[1],c):l?[n,a]:null},c}function c(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function u(){return this.eachAfter(c)}function f(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n<i;++n)o.push(r[n])}while(o.length);return this}function p(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r>=0;--r)i.push(e[r]);return this}function d(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r<n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this}function h(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r}))}function g(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function m(t){for(var e=this,r=v(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n}function v(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}function y(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function b(){var t=[];return this.each((function(e){t.push(e)})),t}function x(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function _(){var t=this,e=[];return t.each((function(r){r!==t&&e.push({source:r.parent,target:r})})),e}function w(t,e){var r,n,i,a,o,s=new S(t),l=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=T);r=c.pop();)if(l&&(r.value=+r.data.value),(i=e(r.data))&&(o=i.length))for(r.children=new Array(o),a=o-1;a>=0;--a)c.push(n=r.children[a]=new S(i[a])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(A)}function k(){return w(this).eachBefore(M)}function T(t){return t.children}function M(t){t.data=t.data.data}function A(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function S(t){this.data=t,this.depth=this.height=0,this.parent=null}S.prototype=w.prototype={constructor:S,count:u,each:f,eachAfter:d,eachBefore:p,sum:h,sort:g,path:m,ancestors:y,descendants:b,leaves:x,links:_,copy:k};var E=Array.prototype.slice;function C(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}function O(t){for(var e,r,n=0,i=(t=C(E.call(t))).length,a=[];n<i;)e=t[n],r&&P(r,e)?++n:(r=R(a=L(a,e)),n=0);return r}function L(t,e){var r,n;if(D(e,t))return[e];for(r=0;r<t.length;++r)if(I(e,t[r])&&D(N(t[r],e),t))return[t[r],e];for(r=0;r<t.length-1;++r)for(n=r+1;n<t.length;++n)if(I(N(t[r],t[n]),e)&&I(N(t[r],e),t[n])&&I(N(t[n],e),t[r])&&D(F(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function I(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r<0||r*r<n*n+i*i}function P(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r>0&&r*r>n*n+i*i}function D(t,e){for(var r=0;r<e.length;++r)if(!P(t,e[r]))return!1;return!0}function R(t){switch(t.length){case 1:return z(t[0]);case 2:return N(t[0],t[1]);case 3:return F(t[0],t[1],t[2])}}function z(t){return{x:t.x,y:t.y,r:t.r}}function N(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function F(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,p=n-o,d=n-c,h=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,b=y-o*o-s*s+l*l,x=y-c*c-u*u+f*f,_=d*h-p*g,w=(h*x-g*b)/(2*_)-n,k=(g*m-h*v)/_,T=(d*b-p*x)/(2*_)-i,M=(p*v-d*m)/_,A=k*k+M*M-1,S=2*(a+w*k+T*M),E=w*w+T*T-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+k*C,y:i+T+M*C,r:C}}function B(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i>(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function j(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r>0&&r*r>n*n+i*i}function U(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function V(t){this._=t,this.next=null,this.previous=null}function H(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i>2))return e.r+r.r;B(r,e,n=t[2]),e=new V(e),r=new V(r),n=new V(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s<i;++s){B(e._,r._,n=t[s]),n=new V(n),l=r.next,c=e.previous,u=r._.r,f=e._.r;do{if(u<=f){if(j(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(j(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}f+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=U(e);(n=n.next)!==r;)(o=U(n))<a&&(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=O(e),s=0;s<i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function q(t){return H(t),t}function G(t){return null==t?null:W(t)}function W(t){if("function"!==typeof t)throw new Error;return t}function Y(){return 0}function X(t){return function(){return t}}function Z(t){return Math.sqrt(t.value)}function K(){var t=null,e=1,r=1,n=Y;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(J(t)).eachAfter($(n,.5)).eachBefore(Q(1)):i.eachBefore(J(Z)).eachAfter($(Y,1)).eachAfter($(n,i.r/Math.min(e,r))).eachBefore(Q(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=G(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n="function"===typeof t?t:X(+t),i):n},i}function J(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function $(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i<o;++i)n[i].r+=s;if(a=H(n),s)for(i=0;i<o;++i)n[i].r-=s;r.r=a+s}}}function Q(t){return function(e){var r=e.parent;e.r*=t,r&&(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function tt(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function et(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(n-e)/t.value;++s<l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}function rt(){var t=1,e=1,r=0,n=!1;function i(i){var o=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/o,i.eachBefore(a(e,o)),n&&i.eachBefore(tt),i}function a(t,e){return function(n){n.children&&et(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o<i&&(i=o=(i+o)/2),s<a&&(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i}var nt="$",it={depth:-1},at={};function ot(t){return t.id}function st(t){return t.parentId}function lt(){var t=ot,e=st;function r(r){var n,i,a,o,s,l,c,u=r.length,f=new Array(u),p={};for(i=0;i<u;++i)n=r[i],s=f[i]=new S(n),null!=(l=t(n,i,r))&&(l+="")&&(p[c=nt+(s.id=l)]=c in p?at:s);for(i=0;i<u;++i)if(s=f[i],null!=(l=e(r[i],i,r))&&(l+="")){if(!(o=p[nt+l]))throw new Error("missing: "+l);if(o===at)throw new Error("ambiguous: "+l);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error("multiple roots");a=s}if(!a)throw new Error("no root");if(a.parent=it,a.eachBefore((function(t){t.depth=t.parent.depth+1,--u})).eachBefore(A),a.parent=null,u>0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=W(e),r):t},r.parentId=function(t){return arguments.length?(e=W(t),r):e},r}function ct(t,e){return t.parent===e.parent?1:2}function ut(t){var e=t.children;return e?e[0]:t.t}function ft(t){var e=t.children;return e?e[e.length-1]:t.t}function pt(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function dt(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}function ht(t,e,r){return t.a.parent===e.parent?t.a:r}function gt(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function mt(t){for(var e,r,n,i,a,o=new gt(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i>=0;--i)s.push(r=e.children[i]=new gt(n[i],i)),r.parent=e;return(o.parent=new gt(null,0)).children=[o],o}function vt(){var t=ct,e=1,r=1,n=null;function i(i){var s=mt(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),n)i.eachBefore(l);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>f.depth&&(f=t)}));var p=c===u?1:t(c,u)/2,d=p-c.x,h=e/(u.x+p+d),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*h,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){dt(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,p=l.m;s=ft(s),a=ut(a),s&&a;)l=ut(l),(o=ft(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))>0&&(pt(ht(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,p+=l.m,u+=o.m;s&&!ft(o)&&(o.t=s,o.m+=f-u),a&&!ut(l)&&(l.t=a,l.m+=c-p,n=e)}return n}function l(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i}function yt(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(i-r)/t.value;++s<l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}gt.prototype=Object.create(S.prototype);var bt=(1+Math.sqrt(5))/2;function xt(t,e,r,n,i,a){for(var o,s,l,c,u,f,p,d,h,g,m,v=[],y=e.children,b=0,x=0,_=y.length,w=e.value;b<_;){l=i-r,c=a-n;do{u=y[x++].value}while(!u&&x<_);for(f=p=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),h=Math.max(p/m,m/f);x<_;++x){if(u+=s=y[x].value,s<f&&(f=s),s>p&&(p=s),m=u*u*g,(d=Math.max(p/m,m/f))>h){u-=s;break}h=d}v.push(o={value:u,dice:l<c,children:y.slice(b,x)}),o.dice?et(o,r,n,i,w?n+=c*u/w:a):yt(o,r,n,w?r+=l*u/w:i,a),w-=u,b=x}return v}var _t=function t(e){function r(t,r,n,i,a){xt(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)>1?e:1)},r}(bt);function wt(){var t=_t,e=!1,r=1,n=1,i=[0],a=Y,o=Y,s=Y,l=Y,c=Y;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&&t.eachBefore(tt),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,p=e.y1-r;f<n&&(n=f=(n+f)/2),p<u&&(u=p=(u+p)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=p,e.children&&(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)<n&&(n=f=(n+f)/2),(p-=l(e)-r)<u&&(u=p=(u+p)/2),t(e,n,u,f,p))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=W(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a="function"===typeof t?t:X(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o="function"===typeof t?t:X(+t),u):o},u.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:X(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"===typeof t?t:X(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:X(+t),u):c},u}function kt(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a<l;++a)c[a+1]=o+=s[a].value;function u(t,e,r,n,i,a,o){if(t>=e-1){var l=s[t];return l.x0=n,l.y0=i,l.x1=a,void(l.y1=o)}for(var f=c[t],p=r/2+f,d=t+1,h=e-1;d<h;){var g=d+h>>>1;c[g]<p?d=g+1:h=g}p-c[d-1]<c[d]-p&&t+1<d&&--d;var m=c[d]-f,v=r-m;if(a-n>o-i){var y=(n*v+a*m)/r;u(t,d,m,n,i,y,o),u(d,e,v,y,i,a,o)}else{var b=(i*v+o*m)/r;u(t,d,m,n,i,a,b),u(d,e,v,n,b,a,o)}}u(0,l,t.value,e,r,n,i)}function Tt(t,e,r,n,i){(1&t.depth?yt:et)(t,e,r,n,i)}var Mt=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,l,c,u,f=-1,p=o.length,d=t.value;++f<p;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?et(s,r,n,i,n+=(a-n)*s.value/d):yt(s,r,n,r+=(i-r)*s.value/d,a),d-=s.value}else t._squarify=o=xt(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)>1?e:1)},r}(bt);t.cluster=l,t.hierarchy=w,t.pack=K,t.packEnclose=O,t.packSiblings=q,t.partition=rt,t.stratify=lt,t.tree=vt,t.treemap=wt,t.treemapBinary=kt,t.treemapDice=et,t.treemapResquarify=Mt,t.treemapSlice=yt,t.treemapSliceDice=Tt,t.treemapSquarify=_t,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],116:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-color")):"function"===typeof t&&t.amd?t(["exports","d3-color"],a):a((i=i||self).d3=i.d3||{},i.d3)}(this,(function(t,e){"use strict";function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function l(t,e){var r=e-t;return r?o(t,r>180||r<-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function c(t){return 1===(t=+t)?u:function(e,r){return r-e?s(e,r,t):a(isNaN(e)?r:e)}}function u(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var f=function t(r){var n=c(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=u(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function p(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+""}}}var d=p(n),h=p(i);function g(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function m(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function v(t,e){return(m(e)?g:y)(t,e)}function y(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=S(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}function b(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function x(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function _(t,e){var r,n={},i={};for(r in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)r in t?n[r]=S(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var w=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,k=new RegExp(w.source,"g");function T(t){return function(){return t}}function M(t){return function(e){return t(e)+""}}function A(t,e){var r,n,i,a=w.lastIndex=k.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(r=w.exec(t))&&(n=k.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:x(r,n)})),a=k.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?M(l[0].x):T(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join("")})}function S(t,r){var n,i=typeof r;return null==r||"boolean"===i?a(r):("number"===i?x:"string"===i?(n=e.color(r))?(r=n,f):A:r instanceof e.color?f:r instanceof Date?b:m(r)?g:Array.isArray(r)?y:"function"!==typeof r.valueOf&&"function"!==typeof r.toString||isNaN(r)?_:x)(t,r)}function E(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}function C(t,e){var r=l(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}}function O(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var L,I,P,D,R=180/Math.PI,z={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function N(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*R,skewX:Math.atan(l)*R,scaleX:o,scaleY:s}}function F(t){return"none"===t?z:(L||(L=document.createElement("DIV"),I=document.documentElement,P=document.defaultView),L.style.transform=t,t=P.getComputedStyle(I.appendChild(L),null).getPropertyValue("transform"),I.removeChild(L),N(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function B(t){return null==t?z:(D||(D=document.createElementNS("http://www.w3.org/2000/svg","g")),D.setAttribute("transform",t),(t=D.transform.baseVal.consolidate())?N((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):z)}function j(t,e,r,n){function i(t){return t.length?t.pop()+" ":""}function a(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:x(t,i)},{i:l-2,x:x(n,a)})}else(i||a)&&o.push("translate("+i+e+a+r)}function o(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+"rotate(",null,n)-2,x:x(t,e)})):e&&r.push(i(r)+"rotate("+e+n)}function s(t,e,r,a){t!==e?a.push({i:r.push(i(r)+"skewX(",null,n)-2,x:x(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}function l(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:x(t,r)},{i:s-2,x:x(e,n)})}else 1===r&&1===n||a.push(i(a)+"scale("+r+","+n+")")}return function(e,r){var n=[],i=[];return e=t(e),r=t(r),a(e.translateX,e.translateY,r.translateX,r.translateY,n,i),o(e.rotate,r.rotate,n,i),s(e.skewX,r.skewX,n,i),l(e.scaleX,e.scaleY,r.scaleX,r.scaleY,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join("")}}}var U=j(F,"px, ","px)","deg)"),V=j(B,", ",")",")"),H=Math.SQRT2,q=2,G=4,W=1e-12;function Y(t){return((t=Math.exp(t))+1/t)/2}function X(t){return((t=Math.exp(t))-1/t)/2}function Z(t){return((t=Math.exp(2*t))-1)/(t+1)}function K(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,p=u*u+f*f;if(p<W)n=Math.log(c/o)/H,r=function(t){return[i+t*u,a+t*f,o*Math.exp(H*t*n)]};else{var d=Math.sqrt(p),h=(c*c-o*o+G*p)/(2*o*q*d),g=(c*c-o*o-G*p)/(2*c*q*d),m=Math.log(Math.sqrt(h*h+1)-h),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/H,r=function(t){var e=t*n,r=Y(m),s=o/(q*d)*(r*Z(H*e+m)-X(m));return[i+s*u,a+s*f,o*r/Y(H*e+m)]}}return r.duration=1e3*n,r}function J(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=u(r.s,n.s),o=u(r.l,n.l),s=u(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+""}}}var $=J(l),Q=J(u);function tt(t,r){var n=u((t=e.lab(t)).l,(r=e.lab(r)).l),i=u(t.a,r.a),a=u(t.b,r.b),o=u(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+""}}function et(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=u(r.c,n.c),o=u(r.l,n.l),s=u(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+""}}}var rt=et(l),nt=et(u);function it(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=u(r.s,i.s),s=u(r.l,i.l),l=u(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+""}}return n=+n,i.gamma=r,i}(1)}var at=it(l),ot=it(u);function st(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}}function lt(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t(n/(e-1));return r}t.interpolate=S,t.interpolateArray=v,t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=at,t.interpolateCubehelixLong=ot,t.interpolateDate=b,t.interpolateDiscrete=E,t.interpolateHcl=rt,t.interpolateHclLong=nt,t.interpolateHsl=$,t.interpolateHslLong=Q,t.interpolateHue=C,t.interpolateLab=tt,t.interpolateNumber=x,t.interpolateNumberArray=g,t.interpolateObject=_,t.interpolateRgb=f,t.interpolateRgbBasis=d,t.interpolateRgbBasisClosed=h,t.interpolateRound=O,t.interpolateString=A,t.interpolateTransformCss=U,t.interpolateTransformSvg=V,t.interpolateZoom=K,t.piecewise=st,t.quantize=lt,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-color":109}],117:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";var e=Math.PI,r=2*e,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,r,i,a,o){t=+t,r=+r,i=+i,a=+a,o=+o;var s=this._x1,l=this._y1,c=i-t,u=a-r,f=s-t,p=l-r,d=f*f+p*p;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=r);else if(d>n)if(Math.abs(p*c-u*f)>n&&o){var h=i-s,g=a-l,m=c*c+u*u,v=h*h+g*g,y=Math.sqrt(m),b=Math.sqrt(d),x=o*Math.tan((e-Math.acos((m+d-v)/(2*y*b)))/2),_=x/b,w=x/y;Math.abs(_-1)>n&&(this._+="L"+(t+_*f)+","+(r+_*p)),this._+="A"+o+","+o+",0,0,"+ +(p*h>f*g)+","+(this._x1=t+w*c)+","+(this._y1=r+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=r)},arc:function(t,a,o,s,l,c){t=+t,a=+a,c=!!c;var u=(o=+o)*Math.cos(s),f=o*Math.sin(s),p=t+u,d=a+f,h=1^c,g=c?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+p+","+d:(Math.abs(this._x1-p)>n||Math.abs(this._y1-d)>n)&&(this._+="L"+p+","+d),o&&(g<0&&(g=g%r+r),g>i?this._+="A"+o+","+o+",0,1,"+h+","+(t-u)+","+(a-f)+"A"+o+","+o+",0,1,"+h+","+(this._x1=p)+","+(this._y1=d):g>n&&(this._+="A"+o+","+o+",0,"+ +(g>=e)+","+h+","+(this._x1=t+o*Math.cos(l))+","+(this._y1=a+o*Math.sin(l))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.path=o,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],118:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";function e(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)}function r(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,p,d=t._root,h={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!d)return t._root=h,t;for(;d.length;)if((c=e>=(a=(g+v)/2))?g=a:v=a,(u=r>=(o=(m+y)/2))?m=o:y=o,i=d,!(d=d[f=u<<1|c]))return i[f]=h,t;if(s=+t._x.call(null,d.data),l=+t._y.call(null,d.data),e===s&&r===l)return h.next=d,i?i[f]=h:t._root=h,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+v)/2))?g=a:v=a,(u=r>=(o=(m+y)/2))?m=o:y=o}while((f=u<<1|c)===(p=(l>=o)<<1|s>=a));return i[p]=d,i[f]=h,t}function n(t){var e,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,p=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(a=+this._y.call(null,e))||(s[n]=i,l[n]=a,i<c&&(c=i),i>f&&(f=i),a<u&&(u=a),a>p&&(p=a));if(c>f||u>p)return this;for(this.cover(c,u).cover(f,p),n=0;n<o;++n)r(this,s[n],l[n],t[n]);return this}function i(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r>t||t>=i||n>e||e>=a;)switch(s=(e<n)<<1|t<r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&&this._root.length&&(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this}function a(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t}function o(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function s(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function l(t,e,r){var n,i,a,o,l,c,u,f=this._x0,p=this._y0,d=this._x1,h=this._y1,g=[],m=this._root;for(m&&g.push(new s(m,f,p,d,h)),null==r?r=1/0:(f=t-r,p=e-r,d=t+r,h=e+r,r*=r);c=g.pop();)if(!(!(m=c.node)||(i=c.x0)>d||(a=c.y0)>h||(o=c.x1)<f||(l=c.y1)<p))if(m.length){var v=(i+o)/2,y=(a+l)/2;g.push(new s(m[3],v,y,o,l),new s(m[2],i,y,v,l),new s(m[1],v,a,o,y),new s(m[0],i,a,v,y)),(u=(e>=y)<<1|t>=v)&&(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var b=t-+this._x.call(null,m.data),x=e-+this._y.call(null,m.data),_=b*b+x*x;if(_<r){var w=Math.sqrt(r=_);f=t-w,p=e-w,d=t+w,h=e+w,n=m.data}}return n}function c(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,p,d=this._root,h=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((c=a>=(s=(h+m)/2))?h=s:m=s,(u=o>=(l=(g+v)/2))?g=l:v=l,e=d,!(d=d[f=u<<1|c]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(r=e,p=f)}for(;d.data!==t;)if(n=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(r?r[p]=d:this._root=d),this):(this._root=i,this)}function u(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function f(){return this._root}function p(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t}function d(t){var e,r,n,i,a,o,l=[],c=this._root;for(c&&l.push(new s(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,n=e.x0,i=e.y0,a=e.x1,o=e.y1)&&c.length){var u=(n+a)/2,f=(i+o)/2;(r=c[3])&&l.push(new s(r,u,f,a,o)),(r=c[2])&&l.push(new s(r,n,f,u,o)),(r=c[1])&&l.push(new s(r,u,i,a,f)),(r=c[0])&&l.push(new s(r,n,i,u,f))}return this}function h(t){var e,r=[],n=[];for(this._root&&r.push(new s(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();){var i=e.node;if(i.length){var a,o=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(o+c)/2,p=(l+u)/2;(a=i[0])&&r.push(new s(a,o,l,f,p)),(a=i[1])&&r.push(new s(a,f,l,c,p)),(a=i[2])&&r.push(new s(a,o,p,f,u)),(a=i[3])&&r.push(new s(a,f,p,c,u))}n.push(e)}for(;e=n.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this}function g(t){return t[0]}function m(t){return arguments.length?(this._x=t,this):this._x}function v(t){return t[1]}function y(t){return arguments.length?(this._y=t,this):this._y}function b(t,e,r){var n=new x(null==e?g:e,null==r?v:r,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function x(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function _(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var w=b.prototype=x.prototype;w.copy=function(){var t,e,r=new x(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=_(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=_(e));return r},w.add=e,w.addAll=n,w.cover=i,w.data=a,w.extent=o,w.find=l,w.remove=c,w.removeAll=u,w.root=f,w.size=p,w.visit=d,w.visitAfter=h,w.x=m,w.y=y,t.quadtree=b,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],119:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-path")):"function"===typeof t&&t.amd?t(["exports","d3-path"],a):a((i=i||self).d3=i.d3||{},i.d3)}(this,(function(t,e){"use strict";function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,f=Math.PI,p=f/2,d=2*f;function h(t){return t>1?0:t<-1?f:Math.acos(t)}function g(t){return t>=1?p:t<=-1?-p:Math.asin(t)}function m(t){return t.innerRadius}function v(t){return t.outerRadius}function y(t){return t.startAngle}function b(t){return t.endAngle}function x(t){return t&&t.padAngle}function _(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,f=o-i,p=s-a,d=p*l-f*c;if(!(d*d<u))return[t+(d=(f*(e-a)-p*(t-i))/d)*l,e+d*c]}function w(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),p=f*u,d=-f*l,h=t+p,g=e+d,m=r+p,v=n+d,y=(h+m)/2,b=(g+v)/2,x=m-h,_=v-g,w=x*x+_*_,k=i-a,T=h*v-m*g,M=(_<0?-1:1)*c(o(0,k*k*w-T*T)),A=(T*_-x*M)/w,S=(-T*x-_*M)/w,E=(T*_+x*M)/w,C=(-T*x+_*M)/w,O=A-y,L=S-b,I=E-y,P=C-b;return O*O+L*L>I*I+P*P&&(A=E,S=C),{cx:A,cy:S,x01:-p,y01:-d,x11:A*(i/k-1),y11:S*(i/k-1)}}function k(){var t=m,o=v,k=r(0),T=null,M=y,A=b,S=x,E=null;function C(){var r,m,v=+t.apply(this,arguments),y=+o.apply(this,arguments),b=M.apply(this,arguments)-p,x=A.apply(this,arguments)-p,C=n(x-b),O=x>b;if(E||(E=r=e.path()),y<v&&(m=y,y=v,v=m),y>u)if(C>d-u)E.moveTo(y*a(b),y*l(b)),E.arc(0,0,y,b,x,!O),v>u&&(E.moveTo(v*a(x),v*l(x)),E.arc(0,0,v,x,b,O));else{var L,I,P=b,D=x,R=b,z=x,N=C,F=C,B=S.apply(this,arguments)/2,j=B>u&&(T?+T.apply(this,arguments):c(v*v+y*y)),U=s(n(y-v)/2,+k.apply(this,arguments)),V=U,H=U;if(j>u){var q=g(j/v*l(B)),G=g(j/y*l(B));(N-=2*q)>u?(R+=q*=O?1:-1,z-=q):(N=0,R=z=(b+x)/2),(F-=2*G)>u?(P+=G*=O?1:-1,D-=G):(F=0,P=D=(b+x)/2)}var W=y*a(P),Y=y*l(P),X=v*a(z),Z=v*l(z);if(U>u){var K,J=y*a(D),$=y*l(D),Q=v*a(R),tt=v*l(R);if(C<f&&(K=_(W,Y,Q,tt,J,$,X,Z))){var et=W-K[0],rt=Y-K[1],nt=J-K[0],it=$-K[1],at=1/l(h((et*nt+rt*it)/(c(et*et+rt*rt)*c(nt*nt+it*it)))/2),ot=c(K[0]*K[0]+K[1]*K[1]);V=s(U,(v-ot)/(at-1)),H=s(U,(y-ot)/(at+1))}}F>u?H>u?(L=w(Q,tt,W,Y,y,H,O),I=w(J,$,X,Z,y,H,O),E.moveTo(L.cx+L.x01,L.cy+L.y01),H<U?E.arc(L.cx,L.cy,H,i(L.y01,L.x01),i(I.y01,I.x01),!O):(E.arc(L.cx,L.cy,H,i(L.y01,L.x01),i(L.y11,L.x11),!O),E.arc(0,0,y,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!O),E.arc(I.cx,I.cy,H,i(I.y11,I.x11),i(I.y01,I.x01),!O))):(E.moveTo(W,Y),E.arc(0,0,y,P,D,!O)):E.moveTo(W,Y),v>u&&N>u?V>u?(L=w(X,Z,J,$,v,-V,O),I=w(W,Y,Q,tt,v,-V,O),E.lineTo(L.cx+L.x01,L.cy+L.y01),V<U?E.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!O):(E.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!O),E.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),O),E.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!O))):E.arc(0,0,v,z,R,O):E.lineTo(X,Z)}else E.moveTo(0,0);if(E.closePath(),r)return E=null,r+""||null}return C.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+M.apply(this,arguments)+ +A.apply(this,arguments))/2-f/2;return[a(r)*e,l(r)*e]},C.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:r(+e),C):t},C.outerRadius=function(t){return arguments.length?(o="function"===typeof t?t:r(+t),C):o},C.cornerRadius=function(t){return arguments.length?(k="function"===typeof t?t:r(+t),C):k},C.padRadius=function(t){return arguments.length?(T=null==t?null:"function"===typeof t?t:r(+t),C):T},C.startAngle=function(t){return arguments.length?(M="function"===typeof t?t:r(+t),C):M},C.endAngle=function(t){return arguments.length?(A="function"===typeof t?t:r(+t),C):A},C.padAngle=function(t){return arguments.length?(S="function"===typeof t?t:r(+t),C):S},C.context=function(t){return arguments.length?(E=null==t?null:t,C):E},C}function T(t){this._context=t}function M(t){return new T(t)}function A(t){return t[0]}function S(t){return t[1]}function E(){var t=A,n=S,i=r(!0),a=null,o=M,s=null;function l(r){var l,c,u,f=r.length,p=!1;for(null==a&&(s=o(u=e.path())),l=0;l<=f;++l)!(l<f&&i(c=r[l],l,r))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+""||null}return l.x=function(e){return arguments.length?(t="function"===typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n="function"===typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i="function"===typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function C(){var t=A,n=null,i=r(0),a=S,o=r(!0),s=null,l=M,c=null;function u(r){var u,f,p,d,h,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&&(c=l(h=e.path())),u=0;u<=g;++u){if(!(u<g&&o(d=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=u-1;p>=f;--p)c.point(v[p],y[p]);c.lineEnd(),c.areaEnd()}m&&(v[u]=+t(d,u,r),y[u]=+i(d,u,r),c.point(n?+n(d,u,r):v[u],a?+a(d,u,r):y[u]))}if(h)return c=null,h+""||null}function f(){return E().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t="function"===typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i="function"===typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i="function"===typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:"function"===typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o="function"===typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&&(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function O(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function L(t){return t}function I(){var t=L,e=O,n=null,i=r(0),a=r(d),o=r(0);function s(r){var s,l,c,u,f,p=r.length,h=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(d,Math.max(-d,a.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/p,o.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s<p;++s)(f=m[g[s]=s]=+t(r[s],s,r))>0&&(h+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&&g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=h?(y-p*x)/h:0;s<p;++s,v=u)l=g[s],u=v+((f=m[l])>0?f*c:0)+x,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:b};return m}return s.value=function(e){return arguments.length?(t="function"===typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a="function"===typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:r(+t),s):o},s}T.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var P=R(M);function D(t){this._curve=t}function R(t){function e(e){return new D(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(R(t)):e()._curve},t}function N(){return z(E().curve(P))}function F(){var t=C().curve(P),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(R(t)):e()._curve},t}function B(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}D.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var j=Array.prototype.slice;function U(t){return t.source}function V(t){return t.target}function H(t){var n=U,i=V,a=A,o=S,s=null;function l(){var r,l=j.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+""||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a="function"===typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o="function"===typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function q(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function G(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function W(t,e,r,n,i){var a=B(e,r),o=B(e,r=(r+i)/2),s=B(n,r),l=B(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function Y(){return H(q)}function X(){return H(G)}function Z(){var t=H(W);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var K={draw:function(t,e){var r=Math.sqrt(e/f);t.moveTo(r,0),t.arc(0,0,r,0,d)}},J={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},$=Math.sqrt(1/3),Q=2*$,tt={draw:function(t,e){var r=Math.sqrt(e/Q),n=r*$;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},et=.8908130915292852,rt=Math.sin(f/10)/Math.sin(7*f/10),nt=Math.sin(d/10)*rt,it=-Math.cos(d/10)*rt,at={draw:function(t,e){var r=Math.sqrt(e*et),n=nt*r,i=it*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a<5;++a){var o=d*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},ot={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},st=Math.sqrt(3),lt={draw:function(t,e){var r=-Math.sqrt(e/(3*st));t.moveTo(0,2*r),t.lineTo(-st*r,-r),t.lineTo(st*r,-r),t.closePath()}},ct=-.5,ut=Math.sqrt(3)/2,ft=1/Math.sqrt(12),pt=3*(ft/2+1),dt={draw:function(t,e){var r=Math.sqrt(e/pt),n=r/2,i=r*ft,a=n,o=r*ft+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(ct*n-ut*i,ut*n+ct*i),t.lineTo(ct*a-ut*o,ut*a+ct*o),t.lineTo(ct*s-ut*l,ut*s+ct*l),t.lineTo(ct*n+ut*i,ct*i-ut*n),t.lineTo(ct*a+ut*o,ct*o-ut*a),t.lineTo(ct*s+ut*l,ct*l-ut*s),t.closePath()}},ht=[K,J,tt,ot,at,lt,dt];function gt(){var t=r(K),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+""||null}return a.type=function(e){return arguments.length?(t="function"===typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n="function"===typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a}function mt(){}function vt(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function yt(t){this._context=t}function bt(t){return new yt(t)}function xt(t){this._context=t}function _t(t){return new xt(t)}function wt(t){this._context=t}function kt(t){return new wt(t)}function Tt(t,e){this._basis=new yt(t),this._beta=e}yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xt.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:vt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:vt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Tt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Mt=function t(e){function r(t){return 1===e?new yt(t):new Tt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function At(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function St(t,e){this._context=t,this._k=(1-e)/6}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:At(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:At(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return new St(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Ct(t,e){this._context=t,this._k=(1-e)/6}Ct.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:At(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ot=function t(e){function r(t){return new Ct(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Lt(t,e){this._context=t,this._k=(1-e)/6}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:At(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var It=function t(e){function r(t){return new Lt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Pt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>u){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>u){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/f,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/f}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Dt(t,e){this._context=t,this._alpha=e}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rt=function t(e){function r(t){return e?new Dt(t,e):new St(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function zt(t,e){this._context=t,this._alpha=e}zt.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function r(t){return e?new zt(t,e):new Ct(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ft(t,e){this._context=t,this._alpha=e}Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bt=function t(e){function r(t){return e?new Ft(t,e):new Lt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function jt(t){this._context=t}function Ut(t){return new jt(t)}function Vt(t){return t<0?-1:1}function Ht(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Vt(a)+Vt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function qt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Gt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Wt(t){this._context=t}function Yt(t){this._context=new Xt(t)}function Xt(t){this._context=t}function Zt(t){return new Wt(t)}function Kt(t){return new Yt(t)}function Jt(t){this._context=t}function $t(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Qt(t){return new Jt(t)}function te(t,e){this._context=t,this._t=e}function ee(t){return new te(t,.5)}function re(t){return new te(t,0)}function ne(t){return new te(t,1)}function ie(t,e){if((i=t.length)>1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(n=o,o=t[e[a]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function ae(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function oe(t,e){return t[e]}function se(){var t=r([]),e=ae,n=ie,i=oe;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a<c;++a){for(var f,p=s[a],d=u[a]=new Array(l),h=0;h<l;++h)d[h]=f=[0,+i(r[h],p,h,r)],f.data=r[h];d.key=p}for(a=0,o=e(u);a<c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t="function"===typeof e?e:r(j.call(e)),a):t},a.value=function(t){return arguments.length?(i="function"===typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?ae:"function"===typeof t?t:r(j.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?ie:t,a):n},a}function le(t,e){if((n=t.length)>0){for(var r,n,i,a=0,o=t[0].length;a<o;++a){for(i=r=0;r<n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r<n;++r)t[r][a][1]/=i}ie(t,e)}}function ce(t,e){if((s=t.length)>0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l<c;++l)for(a=o=0,r=0;r<s;++r)(i=(n=t[e[r]][l])[1]-n[0])>0?(n[0]=a,n[1]=a+=i):i<0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)}function ue(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],a=i.length;n<a;++n){for(var o=0,s=0;o<r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}ie(t,e)}}function fe(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,a=0,o=1;o<n;++o){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[e[s]],f=u[o][1]||0,p=(f-(u[o-1][1]||0))/2,d=0;d<s;++d){var h=t[e[d]];p+=(h[o][1]||0)-(h[o-1][1]||0)}l+=f,c+=p*f}r[o-1][1]+=r[o-1][0]=a,l&&(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,ie(t,e)}}function pe(t){var e=t.map(de);return ae(t).sort((function(t,r){return e[t]-e[r]}))}function de(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r<i;)(e=+t[r][1])>a&&(a=e,n=r);return n}function he(t){var e=t.map(ge);return ae(t).sort((function(t,r){return e[t]-e[r]}))}function ge(t){for(var e,r=0,n=-1,i=t.length;++n<i;)(e=+t[n][1])&&(r+=e);return r}function me(t){return he(t).reverse()}function ve(t){var e,r,n=t.length,i=t.map(ge),a=pe(t),o=0,s=0,l=[],c=[];for(e=0;e<n;++e)r=a[e],o<s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function ye(t){return ae(t).reverse()}jt.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gt(this,this._t0,qt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Gt(this,qt(this,r=Ht(this,t,e)),r);break;default:Gt(this,this._t0,r=Ht(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Yt.prototype=Object.create(Wt.prototype)).point=function(t,e){Wt.prototype.point.call(this,e,t)},Xt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=$t(t),i=$t(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=k,t.area=C,t.areaRadial=F,t.curveBasis=bt,t.curveBasisClosed=_t,t.curveBasisOpen=kt,t.curveBundle=Mt,t.curveCardinal=Et,t.curveCardinalClosed=Ot,t.curveCardinalOpen=It,t.curveCatmullRom=Rt,t.curveCatmullRomClosed=Nt,t.curveCatmullRomOpen=Bt,t.curveLinear=M,t.curveLinearClosed=Ut,t.curveMonotoneX=Zt,t.curveMonotoneY=Kt,t.curveNatural=Qt,t.curveStep=ee,t.curveStepAfter=ne,t.curveStepBefore=re,t.line=E,t.lineRadial=N,t.linkHorizontal=Y,t.linkRadial=Z,t.linkVertical=X,t.pie=I,t.pointRadial=B,t.radialArea=F,t.radialLine=N,t.stack=se,t.stackOffsetDiverging=ce,t.stackOffsetExpand=le,t.stackOffsetNone=ie,t.stackOffsetSilhouette=ue,t.stackOffsetWiggle=fe,t.stackOrderAppearance=pe,t.stackOrderAscending=he,t.stackOrderDescending=me,t.stackOrderInsideOut=ve,t.stackOrderNone=ae,t.stackOrderReverse=ye,t.symbol=gt,t.symbolCircle=K,t.symbolCross=J,t.symbolDiamond=tt,t.symbolSquare=ot,t.symbolStar=at,t.symbolTriangle=lt,t.symbolWye=dt,t.symbols=ht,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-path":117}],120:[function(e,r,n){!function(i,a){"object"===typeof n&&"undefined"!==typeof r?a(n,e("d3-time")):"function"===typeof t&&t.amd?t(["exports","d3-time"],a):a((i=i||self).d3=i.d3||{},i.d3)}(this,(function(t,e){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,p=t.months,yt=t.shortMonths,bt=d(c),xt=h(c),_t=d(u),wt=h(u),kt=d(f),Tt=h(f),Mt=d(p),At=h(p),St=d(yt),Et=h(yt),Ct={a:Ht,A:qt,b:Gt,B:Wt,c:null,d:R,e:R,f:j,H:z,I:N,j:F,L:B,m:U,M:V,p:Yt,q:Xt,Q:mt,s:vt,S:H,u:q,U:G,V:W,w:Y,W:X,x:null,X:null,y:Z,Y:K,Z:J,"%":gt},Ot={a:Zt,A:Kt,b:Jt,B:$t,c:null,d:$,e:$,f:nt,H:Q,I:tt,j:et,L:rt,m:it,M:at,p:Qt,q:te,Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:pt,Y:dt,Z:ht,"%":gt},Lt={a:zt,A:Nt,b:Ft,B:Bt,c:jt,d:M,e:M,f:L,H:S,I:S,j:A,L:O,m:T,M:E,p:Rt,q:k,Q:P,s:D,S:C,u:m,U:v,V:y,w:g,W:b,x:Ut,X:Vt,y:_,Y:x,Z:w,"%":I};function It(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l<u;)37===t.charCodeAt(l)&&(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i="e"===n?" ":"0",(a=e[n])&&(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join("")}}function Pt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Dt(c,t,o+="",0)!=o.length)return null;if("Q"in c)return new Date(c.Q);if("s"in c)return new Date(1e3*c.s+("L"in c?c.L:0));if(a&&!("Z"in c)&&(c.Z=0),"p"in c&&(c.H=c.H%12+12*c.p),void 0===c.m&&(c.m="q"in c?c.q:0),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l>4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l>4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),l="Z"in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Dt(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o<l;){if(n>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Lt[i in s?e.charAt(o++):i])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}function Rt(t,e,r){var n=bt.exec(e.slice(r));return n?(t.p=xt[n[0].toLowerCase()],r+n[0].length):-1}function zt(t,e,r){var n=kt.exec(e.slice(r));return n?(t.w=Tt[n[0].toLowerCase()],r+n[0].length):-1}function Nt(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1}function Ft(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1}function Bt(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1}function jt(t,e,r){return Dt(t,a,e,r)}function Ut(t,e,r){return Dt(t,o,e,r)}function Vt(t,e,r){return Dt(t,l,e,r)}function Ht(t){return f[t.getDay()]}function qt(t){return u[t.getDay()]}function Gt(t){return yt[t.getMonth()]}function Wt(t){return p[t.getMonth()]}function Yt(t){return c[+(t.getHours()>=12)]}function Xt(t){return 1+~~(t.getMonth()/3)}function Zt(t){return f[t.getUTCDay()]}function Kt(t){return u[t.getUTCDay()]}function Jt(t){return yt[t.getUTCMonth()]}function $t(t){return p[t.getUTCMonth()]}function Qt(t){return c[+(t.getUTCHours()>=12)]}function te(t){return 1+~~(t.getUTCMonth()/3)}return Ct.x=It(o,Ct),Ct.X=It(l,Ct),Ct.c=It(a,Ct),Ot.x=It(o,Ot),Ot.X=It(l,Ot),Ot.c=It(a,Ot),{format:function(t){var e=It(t+="",Ct);return e.toString=function(){return t},e},parse:function(t){var e=Pt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=It(t+="",Ot);return e.toString=function(){return t},e},utcParse:function(t){var e=Pt(t+="",!0);return e.toString=function(){return t},e}}}var o,s={"-":"",_:" ",0:"0"},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function p(t){return t.replace(u,"\\$&")}function d(t){return new RegExp("^(?:"+t.map(p).join("|")+")","i")}function h(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function I(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function P(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function D(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function R(t,e){return f(t.getDate(),e,2)}function z(t,e){return f(t.getHours(),e,2)}function N(t,e){return f(t.getHours()%12||12,e,2)}function F(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function B(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return B(t,e)+"000"}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function H(t,e){return f(t.getSeconds(),e,2)}function q(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function W(t,r){var n=t.getDay();return t=n>=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function Y(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function K(t,e){return f(t.getFullYear()%1e4,e,4)}function J(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+f(e/60|0,"0",2)+f(e%60,"0",2)}function $(t,e){return f(t.getUTCDate(),e,2)}function Q(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+"000"}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n>=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function pt(t,e){return f(t.getUTCFullYear()%100,e,2)}function dt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function ht(){return"+0000"}function gt(){return"%"}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var bt="%Y-%m-%dT%H:%M:%S.%LZ";function xt(t){return t.toISOString()}var _t=Date.prototype.toISOString?xt:t.utcFormat(bt);function wt(t){var e=new Date(t);return isNaN(e)?null:e}var kt=+new Date("2000-01-01T00:00:00.000Z")?wt:t.utcParse(bt);t.isoFormat=_t,t.isoParse=kt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-time":121}],121:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e<r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e<r)||!(n>0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a<e&&e<r);return o},s.filter=function(e){return n((function(r){if(r>=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;i(t,-1),!e(t););else for(;--r>=0;)for(;i(t,1),!e(t););}))},a&&(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(o?function(e){return o(e)%t===0}:function(e){return s.count(0,e)%t===0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=1e3,s=6e4,l=36e5,c=864e5,u=6048e5,f=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*o)}),(function(t,e){return(e-t)/o}),(function(t){return t.getUTCSeconds()})),p=f.range,d=n((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*o)}),(function(t,e){t.setTime(+t+e*s)}),(function(t,e){return(e-t)/s}),(function(t){return t.getMinutes()})),h=d.range,g=n((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*o-t.getMinutes()*s)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()})),m=g.range,v=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*s)/c}),(function(t){return t.getDate()-1})),y=v.range;function b(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*s)/u}))}var x=b(0),_=b(1),w=b(2),k=b(3),T=b(4),M=b(5),A=b(6),S=x.range,E=_.range,C=w.range,O=k.range,L=T.range,I=M.range,P=A.range,D=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),R=D.range,z=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));z.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var N=z.range,F=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*s)}),(function(t,e){return(e-t)/s}),(function(t){return t.getUTCMinutes()})),B=F.range,j=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()})),U=j.range,V=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCDate()-1})),H=V.range;function q(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/u}))}var G=q(0),W=q(1),Y=q(2),X=q(3),Z=q(4),K=q(5),J=q(6),$=G.range,Q=W.range,tt=Y.range,et=X.range,rt=Z.range,nt=K.range,it=J.range,at=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),ot=at.range,st=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));st.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var lt=st.range;t.timeDay=v,t.timeDays=y,t.timeFriday=M,t.timeFridays=I,t.timeHour=g,t.timeHours=m,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=d,t.timeMinutes=h,t.timeMonday=_,t.timeMondays=E,t.timeMonth=D,t.timeMonths=R,t.timeSaturday=A,t.timeSaturdays=P,t.timeSecond=f,t.timeSeconds=p,t.timeSunday=x,t.timeSundays=S,t.timeThursday=T,t.timeThursdays=L,t.timeTuesday=w,t.timeTuesdays=C,t.timeWednesday=k,t.timeWednesdays=O,t.timeWeek=x,t.timeWeeks=S,t.timeYear=z,t.timeYears=N,t.utcDay=V,t.utcDays=H,t.utcFriday=K,t.utcFridays=nt,t.utcHour=j,t.utcHours=U,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=F,t.utcMinutes=B,t.utcMonday=W,t.utcMondays=Q,t.utcMonth=at,t.utcMonths=ot,t.utcSaturday=J,t.utcSaturdays=it,t.utcSecond=f,t.utcSeconds=p,t.utcSunday=G,t.utcSundays=$,t.utcThursday=Z,t.utcThursdays=rt,t.utcTuesday=Y,t.utcTuesdays=tt,t.utcWednesday=X,t.utcWednesdays=et,t.utcWeek=G,t.utcWeeks=$,t.utcYear=st,t.utcYears=lt,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],122:[function(t,e,r){arguments[4][121][0].apply(r,arguments)},{dup:121}],123:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).d3=e.d3||{})}(this,(function(t){"use strict";var e,r,n=0,i=0,a=0,o=1e3,s=0,l=0,c=0,u="object"===typeof performance&&performance.now?performance:Date,f="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return l||(f(d),l=u.now()+c)}function d(){l=0}function h(){this._call=this._time=this._next=null}function g(t,e,r){var n=new h;return n.restart(t,e,r),n}function m(){p(),++n;for(var t,r=e;r;)(t=l-r._time)>=0&&r._call.call(null,t),r=r._next;--n}function v(){l=(s=u.now())+c,n=i=0;try{m()}finally{n=0,b(),l=0}}function y(){var t=u.now(),e=t-s;e>o&&(c-=e,s=t)}function b(){for(var t,n,i=e,a=1/0;i;)i._call?(a>i._time&&(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,x(a)}function x(t){n||(i&&(i=clearTimeout(i)),t-l>24?(t<1/0&&(i=setTimeout(v,t-u.now()-c)),a&&(a=clearInterval(a))):(a||(s=u.now(),a=setInterval(y,o)),n=1,f(v)))}function _(t,e,r){var n=new h;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n}function w(t,e,r){var n=new h,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?p():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)}h.prototype=g.prototype={constructor:h,restart:function(t,n,i){if("function"!==typeof t)throw new TypeError("callback is not a function");i=(null==i?p():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}},t.interval=w,t.now=p,t.timeout=_,t.timer=g,t.timerFlush=m,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],124:[function(t,e,r){e.exports=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],125:[function(t,e,r){"use strict";e.exports=a;var n=(a.canvas=document.createElement("canvas")).getContext("2d"),i=o([32,126]);function a(t,e){Array.isArray(t)&&(t=t.join(", "));var r,a={},s=16,l=.05;e&&(2===e.length&&"number"===typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&&(r=e.pairs),e.fontSize&&(s=e.fontSize),null!=e.threshold&&(l=e.threshold))),r||(r=i),n.font=s+"px "+t;for(var c=0;c<r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,p=n.measureText(u).width;if(Math.abs(f-p)>s*l){var d=(p-f)/s;a[u]=1e3*d}}return a}function o(t){for(var e=[],r=t[0];r<=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i<t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],126:[function(t,e,r){var n=t("abs-svg-path"),i=t("normalize-svg-path"),a={M:"moveTo",C:"bezierCurveTo"};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{"abs-svg-path":70,"normalize-svg-path":246}],127:[function(t,e,r){e.exports=function(t){switch(t){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}},{}],128:[function(t,e,r){"use strict";function n(t,e,r){var i=0|t[r];if(i<=0)return[];var a,o=new Array(i);if(r===t.length-1)for(a=0;a<i;++a)o[a]=e;else for(a=0;a<i;++a)o[a]=n(t,e,r+1);return o}function i(t,e){var r,n;for(r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function a(t,e){switch("undefined"===typeof e&&(e=0),typeof t){case"number":if(t>0)return i(0|t,e);break;case"object":if("number"===typeof t.length)return n(t,e,0)}return[]}e.exports=a},{}],129:[function(t,e,r){"use strict";function n(t,e,r){r=r||2;var n,a,s,l,c,u,p,d=e&&e.length,h=d?e[0]*r:t.length,g=i(t,0,h,r,!0),m=[];if(!g||g.next===g.prev)return m;if(d&&(g=f(t,e,g,r)),t.length>80*r){n=s=t[0],a=l=t[1];for(var v=r;v<h;v+=r)(c=t[v])<n&&(n=c),(u=t[v+1])<a&&(a=u),c>s&&(s=c),u>l&&(l=u);p=0!==(p=Math.max(s-n,l-a))?1/p:0}return o(g,m,r,n,a,p),m}function i(t,e,r,n,i){var a,o;if(i===D(t,e,r,n)>0)for(a=e;a<r;a+=n)o=L(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=L(a,t[a],t[a+1],o);return o&&k(o,o.next)&&(I(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!k(n,n.next)&&0!==w(n.prev,n,n.next))n=n.next;else{if(I(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,p){if(t){!p&&f&&m(t,n,i,f);for(var d,h,g=t;t.prev!==t.next;)if(d=t.prev,h=t.next,f?l(t,n,i,f):s(t))e.push(d.i/r),e.push(t.i/r),e.push(h.i/r),I(t),t=h.next,g=h.next;else if((t=h)===g){p?1===p?o(t=c(a(t),e,r),e,r,n,i,f,2):2===p&&u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(w(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(x(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&w(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(w(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=y(s,l,e,r,n),p=y(c,u,e,r,n),d=t.prevZ,h=t.nextZ;d&&d.z>=f&&h&&h.z<=p;){if(d!==t.prev&&d!==t.next&&x(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&w(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,h!==t.prev&&h!==t.next&&x(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.nextZ}for(;d&&d.z>=f;){if(d!==t.prev&&d!==t.next&&x(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&w(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;h&&h.z<=p;){if(h!==t.prev&&h!==t.next&&x(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!k(i,o)&&T(i,n,n.next,o)&&E(i,o)&&E(o,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),I(n),I(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&_(l,c)){var u=O(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e,r,n){var o,s,l,c=[];for(o=0,s=e.length;o<s;o++)(l=i(t,e[o]*n,o<s-1?e[o+1]*n:t.length,n,!1))===l.next&&(l.steiner=!0),c.push(b(l));for(c.sort(p),o=0;o<c.length;o++)d(c[o],r),r=a(r,r.next);return r}function p(t,e){return t.x-e.x}function d(t,e){if(e=h(t,e)){var r=O(e,t);a(e,e.next),a(r,r.next)}}function h(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,p=1/0;n=r;do{i>=n.x&&n.x>=u&&i!==n.x&&x(a<f?i:o,a,u,f,a<f?o:i,a,n.x,n.y)&&(l=Math.abs(a-n.y)/(i-n.x),E(n,t)&&(l<p||l===p&&(n.x>r.x||n.x===r.x&&g(r,n)))&&(r=n,p=l)),n=n.next}while(n!==c);return r}function g(t,e){return w(t.prev,t,e.prev)<0&&w(e.next,t,t.next)<0}function m(t,e,r,n){var i=t;do{null===i.z&&(i.z=y(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,v(i)}function v(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1);return t}function y(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function b(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function x(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function _(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!S(t,e)&&(E(t,e)&&E(e,t)&&C(t,e)&&(w(t.prev,t,e.prev)||w(t,e.prev,e))||k(t,e)&&w(t.prev,t,t.next)>0&&w(e.prev,e,e.next)>0)}function w(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function k(t,e){return t.x===e.x&&t.y===e.y}function T(t,e,r,n){var i=A(w(t,e,r)),a=A(w(t,e,n)),o=A(w(r,n,t)),s=A(w(r,n,e));return i!==a&&o!==s||!(0!==i||!M(t,r,e))||!(0!==a||!M(t,n,e))||!(0!==o||!M(r,t,n))||!(0!==s||!M(r,e,n))}function M(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function A(t){return t>0?1:t<0?-1:0}function S(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&T(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function E(t,e){return w(t.prev,t,t.next)<0?w(t,e,t.next)>=0&&w(t,t.prev,e)>=0:w(t,e,t.prev)<0||w(t,t.next,e)<0}function C(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!==r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}function O(t,e){var r=new P(t.i,t.x,t.y),n=new P(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function L(t,e,r,n){var i=new P(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function P(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function D(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(D(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var c=e[s]*r,u=s<l-1?e[s+1]*r:t.length;o-=Math.abs(D(t,c,u,r))}var f=0;for(s=0;s<n.length;s+=3){var p=n[s]*r,d=n[s+1]*r,h=n[s+2]*r;f+=Math.abs((t[p]-t[h])*(t[d+1]-t[p+1])-(t[p]-t[d])*(t[h+1]-t[p+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},{}],130:[function(t,e,r){var n=t("strongly-connected-components");e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){o[t]=!1,s.hasOwnProperty(t)&&Object.keys(s[t]).forEach((function(e){delete s[t][e],o[e]&&c(e)}))}function u(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e<l[t].length;e++)(n=l[t][e])===r?(f(r,a),i=!0):o[n]||(i=u(n));if(i)c(t);else for(e=0;e<l[t].length;e++){n=l[t][e];var p=s[n];p||(p={},s[n]=p),p[n]=!0}return a.pop(),i}function f(t,r){var n=[].concat(r).concat(t);e?e(u):i.push(n)}function p(e){for(var r=0;r<t.length;r++)r<e&&(t[r]=[]),t[r]=t[r].filter((function(t){return t>=e}))}function d(e){p(e);for(var r,i=n(t).components.filter((function(t){return t.length>1})),a=1/0,o=0;o<i.length;o++)for(var s=0;s<i[o].length;s++)i[o][s]<a&&(a=i[o][s],r=o);var l=i[r];if(!l)return!1;var c=t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}));return{leastVertex:a,adjList:c}}r=0;for(var h=t.length;r<h;){var g=d(r);if(r=g.leastVertex,l=g.adjList){for(var m=0;m<l.length;m++)for(var v=0;v<l[m].length;v++){var y=l[m][v];o[+y]=!1,s[y]={}}u(r),r+=1}else r=h}return e?void 0:i}},{"strongly-connected-components":307}],131:[function(t,e,r){"use strict";var n=t("../../object/valid-value");e.exports=function(){return n(this).length=0,this}},{"../../object/valid-value":162}],132:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Array.from:t("./shim")},{"./is-implemented":133,"./shim":134}],133:[function(t,e,r){"use strict";e.exports=function(){var t,e,r=Array.from;return"function"===typeof r&&(e=r(t=["raz","dwa"]),Boolean(e&&e!==t&&"dwa"===e[1]))}},{}],134:[function(t,e,r){"use strict";var n=t("es6-symbol").iterator,i=t("../../function/is-arguments"),a=t("../../function/is-function"),o=t("../../number/to-pos-integer"),s=t("../../object/valid-callable"),l=t("../../object/valid-value"),c=t("../../object/is-value"),u=t("../../string/is-string"),f=Array.isArray,p=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},h=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,b,x,_,w,k=arguments[1],T=arguments[2];if(t=Object(l(t)),c(k)&&s(k),this&&this!==Array&&a(this))e=this;else{if(!k){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r<v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(b=s(_).call(t),e&&(m=new e),x=b.next(),r=0;!x.done;)w=k?p.call(k,T,x.value,r):x.value,e?(d.value=w,h(m,r,d)):m[r]=w,x=b.next(),++r;v=r}else if(u(t)){for(v=t.length,e&&(m=new e),r=0,g=0;r<v;++r)w=t[r],r+1<v&&(y=w.charCodeAt(0))>=55296&&y<=56319&&(w+=t[++r]),w=k?p.call(k,T,w,g):w,e?(d.value=w,h(m,g,d)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&&(m=new e(v)),r=0;r<v;++r)w=k?p.call(k,T,t[r],r):t[r],e?(d.value=w,h(m,r,d)):m[r]=w;return e&&(d.value=null,m.length=v),m}},{"../../function/is-arguments":135,"../../function/is-function":136,"../../number/to-pos-integer":142,"../../object/is-value":151,"../../object/valid-callable":160,"../../object/valid-value":162,"../../string/is-string":166,"es6-symbol":175}],135:[function(t,e,r){"use strict";var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],136:[function(t,e,r){"use strict";var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return"function"===typeof t&&i(n.call(t))}},{}],137:[function(t,e,r){"use strict";e.exports=function(){}},{}],138:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Math.sign:t("./shim")},{"./is-implemented":139,"./shim":140}],139:[function(t,e,r){"use strict";e.exports=function(){var t=Math.sign;return"function"===typeof t&&1===t(10)&&-1===t(-20)}},{}],140:[function(t,e,r){"use strict";e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1}},{}],141:[function(t,e,r){"use strict";var n=t("../math/sign"),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?n(t)*a(i(t)):t}},{"../math/sign":138}],142:[function(t,e,r){"use strict";var n=t("./to-integer"),i=Math.max;e.exports=function(t){return i(0,n(t))}},{"./to-integer":141}],143:[function(t,e,r){"use strict";var n=t("./valid-callable"),i=t("./valid-value"),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],p=arguments[3];return r=Object(i(r)),n(c),u=s(r),p&&u.sort("function"===typeof p?a.call(p,r):void 0),"function"!==typeof t&&(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{"./valid-callable":160,"./valid-value":162}],144:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Object.assign:t("./shim")},{"./is-implemented":145,"./shim":146}],145:[function(t,e,r){"use strict";e.exports=function(){var t,e=Object.assign;return"function"===typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},{}],146:[function(t,e,r){"use strict";var n=t("../keys"),i=t("../valid-value"),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(i){r||(r=i)}},o=1;o<l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{"../keys":152,"../valid-value":162}],147:[function(t,e,r){"use strict";var n=t("../array/from"),i=t("./assign"),a=t("./valid-value");e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&&!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&&(s[e]=t[e])})):i(s,t),s}},{"../array/from":132,"./assign":144,"./valid-value":162}],148:[function(t,e,r){"use strict";var n,i=Object.create;t("./set-prototype-of/is-implemented")()||(n=t("./set-prototype-of/shim")),e.exports=function(){var t,e,r;return n?1!==n.level?i:(t={},e={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){e[t]="__proto__"!==t?r:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(t,e),Object.defineProperty(n,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:t}),function(e,r){return i(null===e?t:e,r)}):i}()},{"./set-prototype-of/is-implemented":158,"./set-prototype-of/shim":159}],149:[function(t,e,r){"use strict";e.exports=t("./_iterate")("forEach")},{"./_iterate":143}],150:[function(t,e,r){"use strict";var n=t("./is-value"),i={function:!0,object:!0};e.exports=function(t){return n(t)&&i[typeof t]||!1}},{"./is-value":151}],151:[function(t,e,r){"use strict";var n=t("../function/noop")();e.exports=function(t){return t!==n&&null!==t}},{"../function/noop":137}],152:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Object.keys:t("./shim")},{"./is-implemented":153,"./shim":154}],153:[function(t,e,r){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},{}],154:[function(t,e,r){"use strict";var n=t("../is-value"),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{"../is-value":151}],155:[function(t,e,r){"use strict";var n=t("./valid-callable"),i=t("./for-each"),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{"./for-each":149,"./valid-callable":160}],156:[function(t,e,r){"use strict";var n=t("./is-value"),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&&o(Object(t),e)})),e}},{"./is-value":151}],157:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Object.setPrototypeOf:t("./shim")},{"./is-implemented":158,"./shim":159}],158:[function(t,e,r){"use strict";var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf;return"function"===typeof t&&i(t((arguments[0]||n)(null),a))===a}},{}],159:[function(t,e,r){"use strict";var n,i=t("../is-object"),a=t("../valid-value"),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError("Prototype must be null or an object")},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===r&&(r=t.nullPolyfill),e.__proto__=r,i&&s(t.nullPolyfill,"__proto__",l),e},Object.defineProperty(e,"level",{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{(t=n.set).call(e,r)}catch(i){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&&{level:1})}()),t("../create")},{"../create":148,"../is-object":150,"../valid-value":162}],160:[function(t,e,r){"use strict";e.exports=function(t){if("function"!==typeof t)throw new TypeError(t+" is not a function");return t}},{}],161:[function(t,e,r){"use strict";var n=t("./is-object");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not an Object");return t}},{"./is-object":150}],162:[function(t,e,r){"use strict";var n=t("./is-value");e.exports=function(t){if(!n(t))throw new TypeError("Cannot use null or undefined");return t}},{"./is-value":151}],163:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?String.prototype.contains:t("./shim")},{"./is-implemented":164,"./shim":165}],164:[function(t,e,r){"use strict";var n="razdwatrzy";e.exports=function(){return"function"===typeof n.contains&&!0===n.contains("dwa")&&!1===n.contains("foo")}},{}],165:[function(t,e,r){"use strict";var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])>-1}},{}],166:[function(t,e,r){"use strict";var n=Object.prototype.toString,i=n.call("");e.exports=function(t){return"string"===typeof t||t&&"object"===typeof t&&(t instanceof String||n.call(t)===i)||!1}},{}],167:[function(t,e,r){"use strict";var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],168:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),a=t("es5-ext/string/#/contains"),o=t("d"),s=t("es6-symbol"),l=t("./"),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");l.call(this,t),e=e?a.call(e,"key+value")?"key+value":a.call(e,"key")?"key":"value":"value",c(this,"__kind__",o("",e))},i&&i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o("c","Array Iterator"))},{"./":171,d:106,"es5-ext/object/set-prototype-of":157,"es5-ext/string/#/contains":163,"es6-symbol":175}],169:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/object/valid-callable"),a=t("es5-ext/string/is-string"),o=t("./get"),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,p,d,h,g,m,v=arguments[2];if(s(t)||n(t)?r="array":a(t)?r="string":t=o(t),i(e),f=function(){p=!0},"array"!==r)if("string"!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),p)return;u=t.next()}else for(h=t.length,d=0;d<h&&(g=t[d],d+1<h&&(m=g.charCodeAt(0))>=55296&&m<=56319&&(g+=t[++d]),l.call(e,v,g,f),!p);++d);else c.call(t,(function(t){return l.call(e,v,t,f),p}))}},{"./get":170,"es5-ext/function/is-arguments":135,"es5-ext/object/valid-callable":160,"es5-ext/string/is-string":166}],170:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/string/is-string"),a=t("./array"),o=t("./string"),s=t("./valid-iterable"),l=t("es6-symbol").iterator;e.exports=function(t){return"function"===typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{"./array":168,"./string":173,"./valid-iterable":174,"es5-ext/function/is-arguments":135,"es5-ext/string/is-string":166,"es6-symbol":175}],171:[function(t,e,r){"use strict";var n,i=t("es5-ext/array/#/clear"),a=t("es5-ext/object/assign"),o=t("es5-ext/object/valid-callable"),s=t("es5-ext/object/valid-value"),l=t("d"),c=t("d/auto-bind"),u=t("es6-symbol"),f=Object.defineProperty,p=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");p(this,{__list__:l("w",s(t)),__context__:l("w",e),__nextIndex__:l("w",0)}),e&&(o(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},delete n.prototype.constructor,p(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)})),toString:l((function(){return"[object "+(this[u.toStringTag]||"Object")+"]"}))},c({_onAdd:l((function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e>=t&&(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,"__redo__",l("c",[t])))})),_onDelete:l((function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e>t&&(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:106,"d/auto-bind":105,"es5-ext/array/#/clear":131,"es5-ext/object/assign":144,"es5-ext/object/valid-callable":160,"es5-ext/object/valid-value":162,"es6-symbol":175}],172:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/object/is-value"),a=t("es5-ext/string/is-string"),o=t("es6-symbol").iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&&(!!s(t)||!!a(t)||!!n(t)||"function"===typeof t[o])}},{"es5-ext/function/is-arguments":135,"es5-ext/object/is-value":151,"es5-ext/string/is-string":166,"es6-symbol":175}],173:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),a=t("d"),o=t("es6-symbol"),s=t("./"),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");t=String(t),s.call(this,t),l(this,"__length__",a("",t.length))},i&&i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))>=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a("c","String Iterator"))},{"./":171,d:106,"es5-ext/object/set-prototype-of":157,"es6-symbol":175}],174:[function(t,e,r){"use strict";var n=t("./is-iterable");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not iterable");return t}},{"./is-iterable":172}],175:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?t("ext/global-this").Symbol:t("./polyfill")},{"./is-implemented":176,"./polyfill":181,"ext/global-this":188}],176:[function(t,e,r){"use strict";var n=t("ext/global-this"),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if("function"!==typeof e)return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!!i[typeof e.iterator]&&!!i[typeof e.toPrimitive]&&!!i[typeof e.toStringTag]}},{"ext/global-this":188}],177:[function(t,e,r){"use strict";e.exports=function(t){return!!t&&("symbol"===typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}},{}],178:[function(t,e,r){"use strict";var n=t("d"),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||"")];)++i;return s[t+=i||""]=!0,a(o,e="@@"+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:106}],179:[function(t,e,r){"use strict";var n=t("d"),i=t("ext/global-this").Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n("",i&&i.hasInstance||t("hasInstance")),isConcatSpreadable:n("",i&&i.isConcatSpreadable||t("isConcatSpreadable")),iterator:n("",i&&i.iterator||t("iterator")),match:n("",i&&i.match||t("match")),replace:n("",i&&i.replace||t("replace")),search:n("",i&&i.search||t("search")),species:n("",i&&i.species||t("species")),split:n("",i&&i.split||t("split")),toPrimitive:n("",i&&i.toPrimitive||t("toPrimitive")),toStringTag:n("",i&&i.toStringTag||t("toStringTag")),unscopables:n("",i&&i.unscopables||t("unscopables"))})}},{d:106,"ext/global-this":188}],180:[function(t,e,r){"use strict";var n=t("d"),i=t("../../../validate-symbol"),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{"../../../validate-symbol":182,d:106}],181:[function(t,e,r){"use strict";var n,i,a,o=t("d"),s=t("./validate-symbol"),l=t("ext/global-this").Symbol,c=t("./lib/private/generate-name"),u=t("./lib/private/setup/standard-symbols"),f=t("./lib/private/setup/symbol-registry"),p=Object.create,d=Object.defineProperties,h=Object.defineProperty;if("function"===typeof l)try{String(l()),a=!0}catch(g){}else l=null;i=function(t){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return a?l(e):(r=p(i.prototype),e=void 0===e?"":String(e),d(r,{__description__:o("",e),__name__:o("",c(e))}))},u(n),f(n),d(i.prototype,{constructor:o(n),toString:o("",(function(){return this.__name__}))}),d(n.prototype,{toString:o((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:o((function(){return s(this)}))}),h(n.prototype,n.toPrimitive,o("",(function(){var t=s(this);return"symbol"===typeof t?t:t.toString()}))),h(n.prototype,n.toStringTag,o("c","Symbol")),h(i.prototype,n.toStringTag,o("c",n.prototype[n.toStringTag])),h(i.prototype,n.toPrimitive,o("c",n.prototype[n.toPrimitive]))},{"./lib/private/generate-name":178,"./lib/private/setup/standard-symbols":179,"./lib/private/setup/symbol-registry":180,"./validate-symbol":182,d:106,"ext/global-this":188}],182:[function(t,e,r){"use strict";var n=t("./is-symbol");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not a symbol");return t}},{"./is-symbol":177}],183:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?WeakMap:t("./polyfill")},{"./is-implemented":184,"./polyfill":186}],184:[function(t,e,r){"use strict";e.exports=function(){var t,e;if("function"!==typeof WeakMap)return!1;try{t=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return"[object WeakMap]"===String(t)&&"function"===typeof t.set&&t.set({},1)===t&&"function"===typeof t.delete&&"function"===typeof t.has&&"one"===t.get(e)}},{}],185:[function(t,e,r){"use strict";e.exports="function"===typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)},{}],186:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/is-value"),a=t("es5-ext/object/set-prototype-of"),o=t("es5-ext/object/valid-object"),s=t("es5-ext/object/valid-value"),l=t("es5-ext/string/random-uniq"),c=t("d"),u=t("es6-iterator/get"),f=t("es6-iterator/for-of"),p=t("es6-symbol").toStringTag,d=t("./is-native-implemented"),h=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return t=d&&a&&WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&&(h(e)||(e=u(e))),g(t,"__weakMapData__",c("c","$weakMap$"+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},d&&(a&&a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c("c",e)),this})),toString:c((function(){return"[object WeakMap]"}))}),g(n.prototype,p,c("c","WeakMap"))},{"./is-native-implemented":185,d:106,"es5-ext/object/is-value":151,"es5-ext/object/set-prototype-of":157,"es5-ext/object/valid-object":161,"es5-ext/object/valid-value":162,"es5-ext/string/random-uniq":167,"es6-iterator/for-of":169,"es6-iterator/get":170,"es6-symbol":175}],187:[function(t,e,r){var n=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],188:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?globalThis:t("./implementation")},{"./implementation":187,"./is-implemented":189}],189:[function(t,e,r){"use strict";e.exports=function(){return"object"===typeof globalThis&&!!globalThis&&globalThis.Array===Array}},{}],190:[function(t,e,r){"use strict";var n=t("is-string-blank");e.exports=function(t){var e=typeof t;if("string"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if("number"!==e)return!1;return t-t<1}},{"is-string-blank":237}],191:[function(t,e,r){var n=t("dtype");function i(t,e,r){if(!t)throw new TypeError("must specify data as first parameter");if(r=0|+(r||0),Array.isArray(t)&&t[0]&&"number"===typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&&"string"!==typeof e||(e=new(n(e||"float32"))(c+r));var u=e.length-r;if(c!==u)throw new Error("source length "+c+" ("+l+"x"+t.length+") does not match destination length "+u);for(i=0,o=r;i<t.length;i++)for(a=0;a<l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&&"string"!==typeof e)e.set(t,r);else{var f=n(e||"float32");if(Array.isArray(t)||"array"===e)for(i=0,o=r,s=(e=new f(t.length+r)).length;o<s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}e.exports=i},{dtype:127}],192:[function(t,e,r){"use strict";var n=t("css-font/stringify"),i=[32,126];function a(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement("canvas"),a=t.font,o="number"===typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;if(a&&"string"!==typeof a&&(a=n(a)),Array.isArray(s)){if(2===s.length&&"number"===typeof s[0]&&"number"===typeof s[1]){for(var l=[],c=s[0],u=0;c<=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split("");e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";var p=o[0]/2,d=o[1]/2;for(c=0;c<s.length;c++)f.fillText(s[c],p,d),(p+=o[0])>e[0]-o[0]/2&&(p=o[0]/2,d+=o[1]);return r}e.exports=a},{"css-font/stringify":102}],193:[function(t,e,r){"use strict";function n(t,e){e||(e={}),("string"===typeof t||Array.isArray(t))&&(e.family=t);var r=Array.isArray(e.family)?e.family.join(", "):e.family;if(!r)throw Error("`family` must be defined");var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||"",c=(t=[e.style||e.fontStyle||"",l,s].join(" ")+"px "+r,e.origin||"top");if(n.cache[r]&&s<=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext("2d"),p={upper:void 0!==e.upper?e.upper:"H",lower:void 0!==e.lower?e.lower:"x",descent:void 0!==e.descent?e.descent:"p",ascent:void 0!==e.ascent?e.ascent:"h",tittle:void 0!==e.tittle?e.tittle:"i",overshoot:void 0!==e.overshoot?e.overshoot:"O"},d=Math.ceil(1.5*s);u.height=d,u.width=.5*d,f.font=t;var h="H",g={top:0};f.clearRect(0,0,d,d),f.textBaseline="top",f.fillStyle="black",f.fillText(h,0,0);var m=a(f.getImageData(0,0,d,d));f.clearRect(0,0,d,d),f.textBaseline="bottom",f.fillText(h,0,d);var v=a(f.getImageData(0,0,d,d));g.lineHeight=g.bottom=d-v+m,f.clearRect(0,0,d,d),f.textBaseline="alphabetic",f.fillText(h,0,d);var y=d-a(f.getImageData(0,0,d,d))-1+m;g.baseline=g.alphabetic=y,f.clearRect(0,0,d,d),f.textBaseline="middle",f.fillText(h,0,.5*d);var b=a(f.getImageData(0,0,d,d));g.median=g.middle=d-b-1+m-.5*d,f.clearRect(0,0,d,d),f.textBaseline="hanging",f.fillText(h,0,.5*d);var x=a(f.getImageData(0,0,d,d));g.hanging=d-x-1+m-.5*d,f.clearRect(0,0,d,d),f.textBaseline="ideographic",f.fillText(h,0,d);var _=a(f.getImageData(0,0,d,d));if(g.ideographic=d-_-1+m,p.upper&&(f.clearRect(0,0,d,d),f.textBaseline="top",f.fillText(p.upper,0,0),g.upper=a(f.getImageData(0,0,d,d)),g.capHeight=g.baseline-g.upper),p.lower&&(f.clearRect(0,0,d,d),f.textBaseline="top",f.fillText(p.lower,0,0),g.lower=a(f.getImageData(0,0,d,d)),g.xHeight=g.baseline-g.lower),p.tittle&&(f.clearRect(0,0,d,d),f.textBaseline="top",f.fillText(p.tittle,0,0),g.tittle=a(f.getImageData(0,0,d,d))),p.ascent&&(f.clearRect(0,0,d,d),f.textBaseline="top",f.fillText(p.ascent,0,0),g.ascent=a(f.getImageData(0,0,d,d))),p.descent&&(f.clearRect(0,0,d,d),f.textBaseline="top",f.fillText(p.descent,0,0),g.descent=o(f.getImageData(0,0,d,d))),p.overshoot){f.clearRect(0,0,d,d),f.textBaseline="top",f.fillText(p.overshoot,0,0);var w=o(f.getImageData(0,0,d,d));g.overshoot=w-y}for(var k in g)g[k]/=s;return g.em=s,n.cache[r]=g,i(g,c)}function i(t,e){var r={};for(var n in"string"===typeof e&&(e=t[e]),t)"em"!==n&&(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n<r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n>0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement("canvas"),n.cache={}},{}],194:[function(t,e,r){function n(t,e){if("string"!==typeof t)throw new TypeError("must specify type string");if(e=e||{},"undefined"===typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement("canvas");"number"===typeof e.width&&(r.width=e.width),"number"===typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf("webgl")&&a.push("experimental-"+t);for(var o=0;o<a.length;o++)if(n=r.getContext(a[o],i))return n}catch(s){n=null}return n||null}e.exports=n},{}],195:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],p=e[10],d=e[11],h=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(p*v-d*m)-f*(l*v-c*m)+g*(l*d-c*p),t[1]=-(n*(p*v-d*m)-f*(i*v-a*m)+g*(i*d-a*p)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*d-c*p)-s*(i*d-a*p)+f*(i*c-a*l)),t[4]=-(o*(p*v-d*m)-u*(l*v-c*m)+h*(l*d-c*p)),t[5]=r*(p*v-d*m)-u*(i*v-a*m)+h*(i*d-a*p),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+h*(i*c-a*l)),t[7]=r*(l*d-c*p)-o*(i*d-a*p)+u*(i*c-a*l),t[8]=o*(f*v-d*g)-u*(s*v-c*g)+h*(s*d-c*f),t[9]=-(r*(f*v-d*g)-u*(n*v-a*g)+h*(n*d-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+h*(n*c-a*s),t[11]=-(r*(s*d-c*f)-o*(n*d-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-p*g)-u*(s*m-l*g)+h*(s*p-l*f)),t[13]=r*(f*m-p*g)-u*(n*m-i*g)+h*(n*p-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+h*(n*l-i*s)),t[15]=r*(s*p-l*f)-o*(n*p-i*f)+u*(n*l-i*s),t}e.exports=n},{}],196:[function(t,e,r){function n(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}e.exports=n},{}],197:[function(t,e,r){function n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}e.exports=n},{}],198:[function(t,e,r){function n(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],199:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],p=t[11],d=t[12],h=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-p*g)-(e*s-n*a)*(u*m-p*h)+(e*l-i*a)*(u*g-f*h)+(r*s-n*o)*(c*m-p*d)-(r*l-i*o)*(c*g-f*d)+(n*l-i*s)*(c*h-u*d)}e.exports=n},{}],200:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,p=i*o,d=i*s,h=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-h,t[1]=u+v,t[2]=p-m,t[3]=0,t[4]=u-v,t[5]=1-c-h,t[6]=d+g,t[7]=0,t[8]=p+m,t[9]=d-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],201:[function(t,e,r){function n(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);return Math.abs(c)<1e-6?null:(o*=c=1/c,s*=c,l*=c,n=Math.sin(e),a=1-(i=Math.cos(e)),t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}e.exports=n},{}],202:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,p=n*c,d=i*l,h=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(d+g),t[1]=f+y,t[2]=p-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=h+m,t[7]=0,t[8]=p+v,t[9]=h-m,t[10]=1-(u+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}e.exports=n},{}],203:[function(t,e,r){function n(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],204:[function(t,e,r){function n(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}e.exports=n},{}],205:[function(t,e,r){function n(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],206:[function(t,e,r){function n(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],207:[function(t,e,r){function n(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],208:[function(t,e,r){function n(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}e.exports=n},{}],209:[function(t,e,r){function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],210:[function(t,e,r){e.exports={create:t("./create"),clone:t("./clone"),copy:t("./copy"),identity:t("./identity"),transpose:t("./transpose"),invert:t("./invert"),adjoint:t("./adjoint"),determinant:t("./determinant"),multiply:t("./multiply"),translate:t("./translate"),scale:t("./scale"),rotate:t("./rotate"),rotateX:t("./rotateX"),rotateY:t("./rotateY"),rotateZ:t("./rotateZ"),fromRotation:t("./fromRotation"),fromRotationTranslation:t("./fromRotationTranslation"),fromScaling:t("./fromScaling"),fromTranslation:t("./fromTranslation"),fromXRotation:t("./fromXRotation"),fromYRotation:t("./fromYRotation"),fromZRotation:t("./fromZRotation"),fromQuat:t("./fromQuat"),frustum:t("./frustum"),perspective:t("./perspective"),perspectiveFromFieldOfView:t("./perspectiveFromFieldOfView"),ortho:t("./ortho"),lookAt:t("./lookAt"),str:t("./str")}},{"./adjoint":195,"./clone":196,"./copy":197,"./create":198,"./determinant":199,"./fromQuat":200,"./fromRotation":201,"./fromRotationTranslation":202,"./fromScaling":203,"./fromTranslation":204,"./fromXRotation":205,"./fromYRotation":206,"./fromZRotation":207,"./frustum":208,"./identity":209,"./invert":211,"./lookAt":212,"./multiply":213,"./ortho":214,"./perspective":215,"./perspectiveFromFieldOfView":216,"./rotate":217,"./rotateX":218,"./rotateY":219,"./rotateZ":220,"./scale":221,"./str":222,"./translate":223,"./transpose":224}],211:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],p=e[10],d=e[11],h=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,b=r*l-i*o,x=r*c-a*o,_=n*l-i*s,w=n*c-a*s,k=i*c-a*l,T=u*g-f*h,M=u*m-p*h,A=u*v-d*h,S=f*m-p*g,E=f*v-d*g,C=p*v-d*m,O=y*C-b*E+x*S+_*A-w*M+k*T;return O?(O=1/O,t[0]=(s*C-l*E+c*S)*O,t[1]=(i*E-n*C-a*S)*O,t[2]=(g*k-m*w+v*_)*O,t[3]=(p*w-f*k-d*_)*O,t[4]=(l*A-o*C-c*M)*O,t[5]=(r*C-i*A+a*M)*O,t[6]=(m*x-h*k-v*b)*O,t[7]=(u*k-p*x+d*b)*O,t[8]=(o*E-s*A+c*T)*O,t[9]=(n*A-r*E-a*T)*O,t[10]=(h*w-g*x+v*y)*O,t[11]=(f*x-u*w-d*y)*O,t[12]=(s*M-o*S-l*T)*O,t[13]=(r*S-n*M+i*T)*O,t[14]=(g*b-h*_-m*y)*O,t[15]=(u*_-f*b+p*y)*O,t):null}e.exports=n},{}],212:[function(t,e,r){var n=t("./identity");function i(t,e,r,i){var a,o,s,l,c,u,f,p,d,h,g=e[0],m=e[1],v=e[2],y=i[0],b=i[1],x=i[2],_=r[0],w=r[1],k=r[2];return Math.abs(g-_)<1e-6&&Math.abs(m-w)<1e-6&&Math.abs(v-k)<1e-6?n(t):(f=g-_,p=m-w,d=v-k,a=b*(d*=h=1/Math.sqrt(f*f+p*p+d*d))-x*(p*=h),o=x*(f*=h)-y*d,s=y*p-b*f,(h=Math.sqrt(a*a+o*o+s*s))?(a*=h=1/h,o*=h,s*=h):(a=0,o=0,s=0),l=p*s-d*o,c=d*a-f*s,u=f*o-p*a,(h=Math.sqrt(l*l+c*c+u*u))?(l*=h=1/h,c*=h,u*=h):(l=0,c=0,u=0),t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=p,t[7]=0,t[8]=s,t[9]=u,t[10]=d,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+p*m+d*v),t[15]=1,t)}e.exports=i},{"./identity":209}],213:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],p=e[9],d=e[10],h=e[11],g=e[12],m=e[13],v=e[14],y=e[15],b=r[0],x=r[1],_=r[2],w=r[3];return t[0]=b*n+x*s+_*f+w*g,t[1]=b*i+x*l+_*p+w*m,t[2]=b*a+x*c+_*d+w*v,t[3]=b*o+x*u+_*h+w*y,b=r[4],x=r[5],_=r[6],w=r[7],t[4]=b*n+x*s+_*f+w*g,t[5]=b*i+x*l+_*p+w*m,t[6]=b*a+x*c+_*d+w*v,t[7]=b*o+x*u+_*h+w*y,b=r[8],x=r[9],_=r[10],w=r[11],t[8]=b*n+x*s+_*f+w*g,t[9]=b*i+x*l+_*p+w*m,t[10]=b*a+x*c+_*d+w*v,t[11]=b*o+x*u+_*h+w*y,b=r[12],x=r[13],_=r[14],w=r[15],t[12]=b*n+x*s+_*f+w*g,t[13]=b*i+x*l+_*p+w*m,t[14]=b*a+x*c+_*d+w*v,t[15]=b*o+x*u+_*h+w*y,t}e.exports=n},{}],214:[function(t,e,r){function n(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}e.exports=n},{}],215:[function(t,e,r){function n(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}e.exports=n},{}],216:[function(t,e,r){function n(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}e.exports=n},{}],217:[function(t,e,r){function n(t,e,r,n){var i,a,o,s,l,c,u,f,p,d,h,g,m,v,y,b,x,_,w,k,T,M,A,S,E=n[0],C=n[1],O=n[2],L=Math.sqrt(E*E+C*C+O*O);return Math.abs(L)<1e-6?null:(E*=L=1/L,C*=L,O*=L,i=Math.sin(r),o=1-(a=Math.cos(r)),s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],p=e[5],d=e[6],h=e[7],g=e[8],m=e[9],v=e[10],y=e[11],b=E*E*o+a,x=C*E*o+O*i,_=O*E*o-C*i,w=E*C*o-O*i,k=C*C*o+a,T=O*C*o+E*i,M=E*O*o+C*i,A=C*O*o-E*i,S=O*O*o+a,t[0]=s*b+f*x+g*_,t[1]=l*b+p*x+m*_,t[2]=c*b+d*x+v*_,t[3]=u*b+h*x+y*_,t[4]=s*w+f*k+g*T,t[5]=l*w+p*k+m*T,t[6]=c*w+d*k+v*T,t[7]=u*w+h*k+y*T,t[8]=s*M+f*A+g*S,t[9]=l*M+p*A+m*S,t[10]=c*M+d*A+v*S,t[11]=u*M+h*A+y*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}e.exports=n},{}],218:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+p*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=p*i-l*n,t}e.exports=n},{}],219:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],p=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-p*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+p*i,t}e.exports=n},{}],220:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+p*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=p*i-l*n,t}e.exports=n},{}],221:[function(t,e,r){function n(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}e.exports=n},{}],222:[function(t,e,r){function n(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}e.exports=n},{}],223:[function(t,e,r){function n(t,e,r){var n,i,a,o,s,l,c,u,f,p,d,h,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],p=e[9],d=e[10],h=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=p,t[10]=d,t[11]=h,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+p*v+e[13],t[14]=a*g+c*m+d*v+e[14],t[15]=o*g+u*m+h*v+e[15]),t}e.exports=n},{}],224:[function(t,e,r){function n(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}e.exports=n},{}],225:[function(t,e,r){"use strict";var n=t("css-font"),i=t("pick-by-alias"),a=t("regl"),o=t("gl-util/context"),s=t("es6-weak-map"),l=t("color-normalize"),c=t("font-atlas"),u=t("typedarray-pool"),f=t("parse-rect"),p=t("is-plain-obj"),d=t("parse-unit"),h=t("to-px"),g=t("detect-kerning"),m=t("object-assign"),v=t("font-measure"),y=t("flatten-vertex-data"),b=t("bit-twiddle").nextPow2,x=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement("div"));w.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(w).fontStretch&&(_=!0),document.body.removeChild(w)}var k=function(t){T(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=o(t),this.shader=x.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),x.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(p(t)?t:{})};function T(t){return"function"===typeof t&&t._gl&&t.prop&&t.texture&&t.buffer}k.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:"\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ vec2(positionOffset.x, -positionOffset.y)))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}",frag:"\n\t\t\tprecision highp float;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform sampler2D atlas;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"});return{regl:t,draw:e,atlas:{}}},k.prototype.update=function(t){var e=this;if("string"===typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0)).opacity&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&&(this.viewport=f(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&&(this.kerning=t.kerning),null!=t.offset&&("number"===typeof t.offset&&(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=k.baseFontSize+"px sans-serif");var r,a=!1,o=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if("string"===typeof t)try{t=n.parse(t)}catch(f){t=n.parse(k.baseFontSize+"px "+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:k.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=d(t.size),l=Math.round(s[0]*h(s[1]));if(l!==e.fontSize[r]&&(o=!0,e.fontSize[r]=l),(!e.font[r]||i!=e.font[r].baseString)&&(a=!0,e.font[r]=k.fonts[i],!e.font[r])){var c=t.family.join(", "),u=[t.style];t.style!=t.variant&&u.push(t.variant),t.variant!=t.weight&&u.push(t.weight),_&&t.weight!=t.stretch&&u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:"top",fontSize:k.baseFontSize,fontStyle:u.join(" ")})},k.fonts[i]=e.font[r]}})),(a||o)&&this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&&(t.text=e.text)})),"string"===typeof t.text&&t.position&&t.position.length>2){for(var s=Array(.5*t.position.length),p=0;p<s.length;p++)s[p]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var x=1;x<t.text.length;x++)this.textOffsets[x]=this.textOffsets[x-1]+t.text[x-1].length,this.count+=t.text[x].length,this.counts.push(t.text[x].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){k.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a<e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&&(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&&(t.width[o]=k.atlasContext.measureText(o).width/k.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length>2){for(var w=!t.position[0].length,T=u.mallocFloat(2*this.count),M=0,A=0;M<this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E<S;E++)T[A++]=t.position[2*M],T[A++]=t.position[2*M+1];else for(var C=0;C<S;C++)T[A++]=t.position[M][0],T[A++]=t.position[M][1]}this.position.call?this.position({type:"float",data:T}):this.position=this.regl.buffer({type:"float",data:T}),u.freeFloat(T)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||a){var O=u.mallocUint8(this.count),L=u.mallocFloat(2*this.count);this.textWidth=[];for(var I=0,P=0;I<this.counts.length;I++){for(var D=this.counts[I],R=this.font[I]||this.font[0],z=this.fontAtlas[I]||this.fontAtlas[0],N=0;N<D;N++){var F=this.text.charAt(P),B=this.text.charAt(P-1);if(O[P]=z.ids[F],L[2*P]=R.width[F],N){var j=L[2*P-2],U=L[2*P],V=L[2*P-1]+.5*j+.5*U;if(this.kerning){var H=R.kerning[B+F];H&&(V+=.001*H)}L[2*P+1]=V}else L[2*P+1]=.5*L[2*P];P++}this.textWidth.push(L.length?.5*L[2*P-2]+L[2*P-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:O,type:"uint8",usage:"stream"}),this.sizeBuffer({data:L,type:"float",usage:"stream"}),u.freeUint8(O),u.freeFloat(L),r.length&&this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(k.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=b(o*i),u=b(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&&n.texture({data:c({canvas:k.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length>1?e.align[r]:e.align[0]:e.align;if("number"===typeof n)return n;switch(n){case"right":case"end":return-t;case"center":case"centre":case"middle":return.5*-t}return 0}))),null==this.baseline&&null==t.baseline&&(t.baseline=0),null!=t.baseline&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+="number"===typeof t?t-n.baseline:-n[t],i*=-1}))),null!=t.color)if(t.color||(t.color="transparent"),"string"!==typeof t.color&&isNaN(t.color)){var q;if("number"===typeof t.color[0]&&t.color.length>this.counts.length){var G=t.color.length;q=u.mallocUint8(G);for(var W=(t.color.subarray||t.color.slice).bind(t.color),Y=0;Y<G;Y+=4)q.set(l(W(Y,Y+4),"uint8"),Y)}else{var X=t.color.length;q=u.mallocUint8(4*X);for(var Z=0;Z<X;Z++)q.set(l(t.color[Z]||0,"uint8"),4*Z)}this.color=q}else this.color=l(t.color,"uint8");if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var K=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(K);for(var J=0;J<this.batch.length;J++)this.batch[J]={count:this.counts.length>1?this.counts[J]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[J]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*J,4*J+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[J]:this.opacity,baseline:null!=this.baselineOffset[J]?this.baselineOffset[J]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[J]?this.alignOffset[J]:this.alignOffset[0]:0,atlas:this.fontAtlas[J]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*J,2*J+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},k.prototype.destroy=function(){},k.prototype.kerning=!0,k.prototype.position={constant:new Float32Array(2)},k.prototype.translate=null,k.prototype.scale=null,k.prototype.font=null,k.prototype.text="",k.prototype.positionOffset=[0,0],k.prototype.opacity=1,k.prototype.color=new Uint8Array([0,0,0,255]),k.prototype.alignOffset=[0,0],k.maxAtlasSize=1024,k.atlasCanvas=document.createElement("canvas"),k.atlasContext=k.atlasCanvas.getContext("2d",{alpha:!1}),k.baseFontSize=64,k.fonts={},e.exports=k},{"bit-twiddle":81,"color-normalize":89,"css-font":99,"detect-kerning":125,"es6-weak-map":183,"flatten-vertex-data":191,"font-atlas":192,"font-measure":193,"gl-util/context":226,"is-plain-obj":236,"object-assign":247,"parse-rect":249,"parse-unit":251,"pick-by-alias":253,regl:284,"to-px":315,"typedarray-pool":328}],226:[function(t,e,n){(function(r){(function(){"use strict";var n=t("pick-by-alias");function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return"function"===typeof t.getContext&&"width"in t&&"height"in t}function o(t){return"string"===typeof t.nodeName&&"function"===typeof t.appendChild&&"function"===typeof t.getBoundingClientRect}function s(t){return"function"===typeof t.drawArrays||"function"===typeof t.drawElements}function l(){var t=document.createElement("canvas");return t.style.position="absolute",t.style.top=0,t.style.left=0,t}e.exports=function(t){if(t?"string"===typeof t&&(t={container:t}):t={},(t=a(t)||o(t)?{container:t}:s(t)?{gl:t}:n(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0)).pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if("string"===typeof t.container){var e=document.querySelector(t.container);if(!e)throw Error("Element "+t.container+" is not found");t.container=e}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=l(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if("undefined"===typeof document)throw Error("Not DOM environment. Use headless-gl.");t.container=document.body||document.documentElement,t.canvas=l(),t.container.appendChild(t.canvas),i(t)}return t.gl||["webgl","experimental-webgl","webgl-experimental"].some((function(e){try{t.gl=t.canvas.getContext(e,t.attrs)}catch(r){}return t.gl})),t.gl}}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"pick-by-alias":253}],227:[function(t,e,r){e.exports=function(t){"string"===typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n<t.length-1;n++)r.push(t[n],e[n]||"");return r.push(t[n]),r.join("")}},{}],228:[function(t,e,n){(function(r){(function(){"use strict";var n,i=t("is-browser");n="function"===typeof r.matchMedia?!r.matchMedia("(hover: none)").matches:i,e.exports=n}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"is-browser":232}],229:[function(t,e,r){"use strict";var n=t("is-browser");function i(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(r){t=!1}return t}e.exports=n&&i()},{"is-browser":232}],230:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,p=r?-1:1,d=t[e+f];for(f+=p,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=c}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,h=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=h,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+d]=255&o,d+=h,o/=256,c-=8);t[r+d-h]|=128*g}},{}],231:[function(t,e,r){"function"===typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],232:[function(t,e,r){e.exports=!0},{}],233:[function(t,e,r){"use strict";e.exports="undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],234:[function(t,e,r){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||"undefined"===typeof navigator||(e=navigator.userAgent),e&&e.headers&&"string"===typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"!==typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==e.indexOf("Macintosh")&&-1!==e.indexOf("Safari")&&(r=!0),r}},{}],235:[function(t,e,r){"use strict";e.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},{}],236:[function(t,e,r){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e;return"[object Object]"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],237:[function(t,e,r){"use strict";e.exports=function(t){for(var e,r=t.length,n=0;n<r;n++)if(((e=t.charCodeAt(n))<9||e>13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],238:[function(t,e,r){"use strict";e.exports=function(t){return"string"===typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},{}],239:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof t&&t.amd?t(i):(e=e||self).mapboxgl=i()}(this,(function(){"use strict";var t,e,r;function n(n,i){if(t)if(e){var a="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:"text/javascript"}))}else e=i;else t=i}return n(["exports"],(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r="1.10.1",n=i;function i(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}i.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},i.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},i.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},i.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for("undefined"===typeof e&&(e=1e-6),i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=a/s}if((i=t)<(r=0))return r;if(i>(n=1))return n;for(;r<n;){if(a=this.sampleCurveX(i),Math.abs(a-t)<e)return i;t>a?r=i:n=i,i=.5*(n-r)+r}return i},i.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var a=o;function o(t,e){this.x=t,this.y=e}function s(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!s(t[r],e[r]))return!1;return!0}if("object"===typeof t&&null!==t&&null!==e){if("object"!==typeof e)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!s(t[n],e[n]))return!1;return!0}return t===e}function l(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function c(t,e,r,i){var a=new n(t,e,r,i);return function(t){return a.solve(t)}}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var u=c(.25,.1,.25,1);function f(t,e,r){return Math.min(r,Math.max(e,t))}function p(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function d(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&&(a=t),i[o]=e,0===--n&&r(a,i)}))}))}function h(t){var e=[];for(var r in t)e.push(t[r]);return e}function g(t,e){var r=[];for(var n in t)n in e||r.push(n);return r}function m(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function v(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n];i in t&&(r[i]=t[i])}return r}var y=1;function b(){return y++}function x(){function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}return t()}function _(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function w(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function k(t,e){return-1!==t.indexOf(e,t.length-e.length)}function T(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function M(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n}function A(t){return Array.isArray(t)?t.map(A):"object"===typeof t&&t?T(t,A):t}function S(t,e){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return!0;return!1}var E={};function C(t){E[t]||("undefined"!==typeof console&&console.warn(t),E[t]=!0)}function O(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function L(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r<n;i=r++)a=t[r],e+=((o=t[i]).x-a.x)*(a.y+o.y);return e}function I(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}}function P(){return"undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof self&&self instanceof WorkerGlobalScope}function D(t){var e=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(t.replace(e,(function(t,e,n,i){var a=n||i;return r[e]=!a||a.toLowerCase(),""})),r["max-age"]){var n=parseInt(r["max-age"],10);isNaN(n)?delete r["max-age"]:r["max-age"]=n}return r}var R=null;function z(t){if(null==R){var e=t.navigator?t.navigator.userAgent:null;R=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return R}function N(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(r){return!1}}function F(t){return self.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))})))}function B(t){return decodeURIComponent(self.atob(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}var j,U,V,H,q=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),G=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,W=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,Y={now:q,frame:function(t){var e=G(t);return{cancel:function(){return W(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var r=self.document.createElement("canvas"),n=r.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return j||(j=self.document.createElement("a")),j.href=t,j.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==U&&(U=self.matchMedia("(prefers-reduced-motion: reduce)")),U.matches)}},X={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Z={supported:!1,testSupport:$},K=!1,J=!1;function $(t){!K&&H&&(J?Q(t):V=t)}function Q(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,H),t.isContextLost())return;Z.supported=!0}catch(r){}t.deleteTexture(e),K=!0}self.document&&((H=self.document.createElement("img")).onload=function(){V&&Q(V),V=null,J=!0},H.onerror=function(){K=!0,V=null},H.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var tt="01";function et(){for(var t="1",e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="",n=0;n<10;n++)r+=e[Math.floor(62*Math.random())];var i=432e5;return{token:[t,tt,r].join(""),tokenExpiresAt:Date.now()+i}}var rt=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function nt(t){return 0===t.indexOf("mapbox:")}rt.prototype._createSkuToken=function(){var t=et();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},rt.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},rt.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},rt.prototype.normalizeStyleURL=function(t,e){if(!nt(t))return t;var r=ct(t);return r.path="/styles/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},rt.prototype.normalizeGlyphsURL=function(t,e){if(!nt(t))return t;var r=ct(t);return r.path="/fonts/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},rt.prototype.normalizeSourceURL=function(t,e){if(!nt(t))return t;var r=ct(t);return r.path="/v4/"+r.authority+".json",r.params.push("secure"),this._makeAPIURL(r,this._customAccessToken||e)},rt.prototype.normalizeSpriteURL=function(t,e,r,n){var i=ct(t);return nt(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=""+e+r,ut(i))},rt.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!nt(t))return t;var r=ct(t),n=/(\.(png|jpg)\d*)(?=$)/,i=/^.+\/v4\//,a=Y.devicePixelRatio>=2||512===e?"@2x":"",o=Z.supported?".webp":"$1";r.path=r.path.replace(n,""+a+o),r.path=r.path.replace(i,"/"),r.path="/v4"+r.path;var s=this._customAccessToken||st(r.params)||X.ACCESS_TOKEN;return X.REQUIRE_ACCESS_TOKEN&&s&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,s)},rt.prototype.canonicalizeTileURL=function(t,e){var r="/v4/",n=/\.[\w]+$/,i=ct(t);if(!i.path.match(/(^\/v4\/)/)||!i.path.match(n))return t;var a="mapbox://tiles/";a+=i.path.replace(r,"");var o=i.params;return e&&(o=o.filter((function(t){return!t.match(/^access_token=/)}))),o.length&&(a+="?"+o.join("&")),a},rt.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&&nt(e),n=[],i=0,a=t.tiles||[];i<a.length;i+=1){var o=a[i];at(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},rt.prototype._makeAPIURL=function(t,e){var r="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",n=ct(X.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,"/"!==n.path&&(t.path=""+n.path+t.path),!X.REQUIRE_ACCESS_TOKEN)return ut(t);if(!(e=e||X.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+r);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+r);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),ut(t)};var it=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function at(t){return it.test(t)}function ot(t){return t.indexOf("sku=")>0&&at(t)}function st(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}var lt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ct(t){var e=t.match(lt);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function ut(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}var ft="mapbox.eventData";function pt(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(B(e[1]))}catch(r){return null}}var dt=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};dt.prototype.getStorageKey=function(t){var e=pt(X.ACCESS_TOKEN),r="";return r=e&&e.u?F(e.u):X.ACCESS_TOKEN||"",t?ft+"."+t+":"+r:ft+":"+r},dt.prototype.fetchEventData=function(){var t=N("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{var n=self.localStorage.getItem(e);n&&(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&&(this.anonId=i)}catch(a){C("Unable to read from LocalStorage")}},dt.prototype.saveEventData=function(){var t=N("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length>=1&&self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(n){C("Unable to write to LocalStorage")}},dt.prototype.processRequests=function(t){},dt.prototype.postEvent=function(t,e,n,i){var a=this;if(X.EVENTS_URL){var o=ct(X.EVENTS_URL);o.params.push("access_token="+(i||X.ACCESS_TOKEN||""));var s={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:tt,userId:this.anonId},l=e?m(s,e):s,c={url:ut(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([l])};this.pendingRequest=Xt(c,(function(t){a.pendingRequest=null,n(t),a.saveEventData(),a.processRequests(i)}))}},dt.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var ht,gt,mt=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(X.EVENTS_URL&&n||X.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return nt(t)||at(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&&this.success[n]||(this.anonId||this.fetchEventData(),_(this.anonId)||(this.anonId=x()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&&(e.success[n]=!0)}),t))}},e}(dt),vt=function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){X.EVENTS_URL&&X.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return nt(t)||at(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var r=pt(X.ACCESS_TOKEN),n=r?r.u:X.ACCESS_TOKEN,i=n!==this.eventData.tokenU;_(this.anonId)||(this.anonId=x(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(dt),yt=new vt,bt=yt.postTurnstileEvent.bind(yt),xt=new mt,_t=xt.postMapLoadEvent.bind(xt),wt="mapbox-tiles",kt=500,Tt=50,Mt=42e4;function At(){self.caches&&!ht&&(ht=self.caches.open(wt))}function St(t,e){if(void 0===gt)try{new Response(new ReadableStream),gt=!0}catch(r){gt=!1}gt?e(t.body):t.blob().then(e)}function Et(t,e,r){if(At(),ht){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=D(e.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&n.headers.set("Expires",new Date(r+1e3*i["max-age"]).toUTCString()),new Date(n.headers.get("Expires")).getTime()-r<Mt||St(e,(function(e){var r=new self.Response(e,n);At(),ht&&ht.then((function(e){return e.put(Ct(t.url),r)})).catch((function(t){return C(t.message)}))})))}}function Ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Ot(t,e){if(At(),!ht)return e(null);var r=Ct(t.url);ht.then((function(t){t.match(r).then((function(n){var i=Lt(n);t.delete(r),i&&t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}function Lt(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),r=D(t.headers.get("Cache-Control")||"");return e>Date.now()&&!r["no-cache"]}var It,Pt=1/0;function Dt(t){++Pt>Tt&&(t.getActor().send("enforceCacheSizeLimit",kt),Pt=0)}function Rt(t){At(),ht&&ht.then((function(e){e.keys().then((function(r){for(var n=0;n<r.length-t;n++)e.delete(r[n])}))}))}function zt(t){var e=self.caches.delete(wt);t&&e.catch(t).then((function(){return t()}))}function Nt(t,e){kt=t,Tt=e}function Ft(){return null==It&&(It=self.OffscreenCanvas&&new self.OffscreenCanvas(1,1).getContext("2d")&&"function"===typeof self.createImageBitmap),It}var Bt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Bt);var jt=function(t){function e(e,r,n){401===r&&at(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),Ut=P()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href},Vt=function(t){return/^file:/.test(t)||/^file:/.test(Ut())&&!/^\w+:/.test(t)};function Ht(t,e){var r=new self.AbortController,n=new self.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:Ut(),signal:r.signal}),i=!1,a=!1,o=ot(n.url);"json"===t.type&&n.headers.set("Accept","application/json");var s=function(r,i,s){if(!a){if(r&&"SecurityError"!==r.message&&C(r),i&&s)return l(i);var c=Date.now();self.fetch(n).then((function(r){if(r.ok){var n=o?r.clone():null;return l(r,n,c)}return e(new jt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},l=function(r,o,s){("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then((function(t){a||(o&&s&&Et(n,o,s),i=!0,e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((function(t){a||e(new Error(t.message))}))};return o?Ot(n,s):s(null,null),{cancel:function(){a=!0,i||r.abort()}}}function qt(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer"),t.headers)r.setRequestHeader(n,t.headers[n]);return"json"===t.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){var n=r.response;if("json"===t.type)try{n=JSON.parse(r.response)}catch(i){return e(i)}e(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else e(new jt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}var Gt=function(t,e){if(!Vt(t.url)){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return Ht(t,e);if(P()&&self.worker&&self.worker.actor){var r=!0;return self.worker.actor.send("getResource",t,e,void 0,r)}}return qt(t,e)},Wt=function(t,e){return Gt(m(t,{type:"json"}),e)},Yt=function(t,e){return Gt(m(t,{type:"arrayBuffer"}),e)},Xt=function(t,e){return Gt(m(t,{method:"POST"}),e)};function Zt(t){var e=self.document.createElement("a");return e.href=t,e.protocol===self.document.location.protocol&&e.host===self.document.location.host}var Kt,Jt,$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Qt(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var o=new self.Blob([new Uint8Array(t)],{type:"image/png"});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):$t}function te(t,e){var r=new self.Blob([new Uint8Array(t)],{type:"image/png"});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error("Could not load image because of "+t.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))}))}Kt=[],Jt=0;var ee=function t(e,r){if(Z.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Jt>=X.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:e,callback:r,cancelled:!1,cancel:function(){this.cancelled=!0}};return Kt.push(n),n}Jt++;var i=!1,a=function(){if(!i)for(i=!0,Jt--;Kt.length&&Jt<X.MAX_PARALLEL_IMAGE_REQUESTS;){var e=Kt.shift(),r=e.requestParameters,n=e.callback;e.cancelled||(e.cancel=t(r,n).cancel)}},o=Yt(e,(function(t,e,n,i){a(),t?r(t):e&&(Ft()?te(e,r):Qt(e,r,n,i))}));return{cancel:function(){o.cancel(),a()}}},re=function(t,e){var r=self.document.createElement("video");r.muted=!0,r.onloadstart=function(){e(null,r)};for(var n=0;n<t.length;n++){var i=self.document.createElement("source");Zt(t[n])||(r.crossOrigin="Anonymous"),i.src=t[n],r.appendChild(i)}return{cancel:function(){}}};function ne(t,e,r){r[t]&&-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function ie(t,e,r){if(r&&r[t]){var n=r[t].indexOf(e);-1!==n&&r[t].splice(n,1)}}var ae=function(t,e){void 0===e&&(e={}),m(this,e),this.type=t},oe=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,"error",m({error:e},r))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ae),se=function(){};se.prototype.on=function(t,e){return this._listeners=this._listeners||{},ne(t,e,this._listeners),this},se.prototype.off=function(t,e){return ie(t,e,this._listeners),ie(t,e,this._oneTimeListeners),this},se.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},ne(t,e,this._oneTimeListeners),this},se.prototype.fire=function(t,e){"string"===typeof t&&(t=new ae(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];n<i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a<o.length;a+=1){var s=o[a];ie(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&&(m(t,"function"===typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof oe&&console.error(t.error);return this},se.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},se.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var le={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},ce=function(t,e,r,n){this.message=(t?t+": ":"")+r,n&&(this.identifier=n),null!==e&&void 0!==e&&e.__line__&&(this.line=e.__line__)};function ue(t){var e=t.key,r=t.value;return r?[new ce(e,r,"constants have been deprecated as of v8")]:[]}function fe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function pe(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function de(t){if(Array.isArray(t))return t.map(de);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=de(t[r]);return e}return pe(t)}var he=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),ge=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],a=i[0],o=i[1];this.bindings[a]=o}};ge.prototype.concat=function(t){return new ge(this,t)},ge.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},ge.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var me={kind:"null"},ve={kind:"number"},ye={kind:"string"},be={kind:"boolean"},xe={kind:"color"},_e={kind:"object"},we={kind:"value"},ke={kind:"error"},Te={kind:"collator"},Me={kind:"formatted"},Ae={kind:"resolvedImage"};function Se(t,e){return{kind:"array",itemType:t,N:e}}function Ee(t){if("array"===t.kind){var e=Ee(t.itemType);return"number"===typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Ce=[me,ve,ye,be,xe,Me,_e,Se(we),Ae];function Oe(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Oe(t.itemType,e.itemType))&&("number"!==typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,n=Ce;r<n.length;r+=1)if(!Oe(n[r],e))return null}return"Expected "+Ee(t)+" but found "+Ee(e)+" instead."}function Le(t,e){return e.some((function(e){return e.kind===t.kind}))}function Ie(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"===typeof t:e===typeof t}))}var Pe=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return"%"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf("("),c=i.indexOf(")");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(","),p=1;switch(u){case"rgba":if(4!==f.length)return null;p=o(f.pop());case"rgb":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),p];case"hsla":if(4!==f.length)return null;p=o(f.pop());case"hsl":if(3!==f.length)return null;var d=(parseFloat(f[0])%360+360)%360/360,h=o(f[1]),g=o(f[2]),m=g<=.5?g*(h+1):g+h-g*h,v=2*g-m;return[n(255*s(v,m,d+1/3)),n(255*s(v,m,d)),n(255*s(v,m,d-1/3)),p];default:return null}}return null}try{e.parseCSSColor=l}catch(c){}})),De=Pe.parseCSSColor,Re=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Re.parse=function(t){if(t){if(t instanceof Re)return t;if("string"===typeof t){var e=De(t);if(e)return new Re(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Re.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(n)+","+i+")"},Re.prototype.toArray=function(){var t=this,e=t.r,r=t.g,n=t.b,i=t.a;return 0===i?[0,0,0,0]:[255*e/i,255*r/i,255*n/i,i]},Re.black=new Re(0,0,0,1),Re.white=new Re(1,1,1,1),Re.transparent=new Re(0,0,0,0),Re.red=new Re(1,0,0,1);var ze=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ze.prototype.compare=function(t,e){return this.collator.compare(t,e)},ze.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ne=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},Fe=function(t){this.sections=t};Fe.fromString=function(t){return new Fe([new Ne(t,null,null,null,null)])},Fe.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},Fe.factory=function(t){return t instanceof Fe?t:Fe.fromString(t)},Fe.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},Fe.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}return t};var Be=function(t){this.name=t.name,this.available=t.available};function je(t,e,r,n){return"number"===typeof t&&t>=0&&t<=255&&"number"===typeof e&&e>=0&&e<=255&&"number"===typeof r&&r>=0&&r<=255?"undefined"===typeof n||"number"===typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"===typeof n?[t,e,r,n]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Ue(t){if(null===t)return!0;if("string"===typeof t)return!0;if("boolean"===typeof t)return!0;if("number"===typeof t)return!0;if(t instanceof Re)return!0;if(t instanceof ze)return!0;if(t instanceof Fe)return!0;if(t instanceof Be)return!0;if(Array.isArray(t)){for(var e=0,r=t;e<r.length;e+=1)if(!Ue(r[e]))return!1;return!0}if("object"===typeof t){for(var n in t)if(!Ue(t[n]))return!1;return!0}return!1}function Ve(t){if(null===t)return me;if("string"===typeof t)return ye;if("boolean"===typeof t)return be;if("number"===typeof t)return ve;if(t instanceof Re)return xe;if(t instanceof ze)return Te;if(t instanceof Fe)return Me;if(t instanceof Be)return Ae;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var a=Ve(i[n]);if(e){if(e===a)continue;e=we;break}e=a}return Se(e||we,r)}return _e}function He(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Re||t instanceof Fe||t instanceof Be?t.toString():JSON.stringify(t)}Be.prototype.toString=function(){return this.name},Be.fromString=function(t){return t?new Be({name:t,available:!1}):null},Be.prototype.serialize=function(){return["image",this.name]};var qe=function(t,e){this.type=t,this.value=e};qe.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!Ue(t[1]))return e.error("invalid value");var r=t[1],n=Ve(r),i=e.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"===typeof i.N&&0!==i.N||(n=i),new qe(n,r)},qe.prototype.evaluate=function(){return this.value},qe.prototype.eachChild=function(){},qe.prototype.outputDefined=function(){return!0},qe.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Re?["rgba"].concat(this.value.toArray()):this.value instanceof Fe?this.value.serialize():this.value};var Ge=function(t){this.name="ExpressionEvaluationError",this.message=t};Ge.prototype.toJSON=function(){return this.message};var We={string:ye,number:ve,boolean:be,object:_e},Ye=function(t,e){this.type=t,this.args=e};Ye.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,n=1,i=t[0];if("array"===i){var a,o;if(t.length>2){var s=t[1];if("string"!==typeof s||!(s in We)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);a=We[s],n++}else a=we;if(t.length>3){if(null!==t[2]&&("number"!==typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);o=t[2],n++}r=Se(a,o)}else r=We[i];for(var l=[];n<t.length;n++){var c=e.parse(t[n],n,we);if(!c)return null;l.push(c)}return new Ye(r,l)},Ye.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t);if(!Oe(this.type,Ve(r)))return r;if(e===this.args.length-1)throw new Ge("Expected value to be of type "+Ee(this.type)+", but found "+Ee(Ve(r))+" instead.")}return null},Ye.prototype.eachChild=function(t){this.args.forEach(t)},Ye.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Ye.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var n=t.N;("number"===typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var Xe=function(t){this.type=Me,this.sections=t};Xe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"===typeof r)return e.error("First argument must be an image or text section.");for(var n=[],i=!1,a=1;a<=t.length-1;++a){var o=t[a];if(i&&"object"===typeof o&&!Array.isArray(o)){i=!1;var s=null;if(o["font-scale"]&&!(s=e.parse(o["font-scale"],1,ve)))return null;var l=null;if(o["text-font"]&&!(l=e.parse(o["text-font"],1,Se(ye))))return null;var c=null;if(o["text-color"]&&!(c=e.parse(o["text-color"],1,xe)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,we);if(!f)return null;var p=f.type.kind;if("string"!==p&&"value"!==p&&"null"!==p&&"resolvedImage"!==p)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new Xe(n)},Xe.prototype.evaluate=function(t){var e=function(e){var r=e.content.evaluate(t);return Ve(r)===Ae?new Ne("",r,null,null,null):new Ne(He(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)};return new Fe(this.sections.map(e))},Xe.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor)}},Xe.prototype.outputDefined=function(){return!1},Xe.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),t.push(i)}return t};var Ze=function(t){this.type=Ae,this.input=t};Ze.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,ye);return r?new Ze(r):e.error("No image name provided.")},Ze.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=Be.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r},Ze.prototype.eachChild=function(t){t(this.input)},Ze.prototype.outputDefined=function(){return!1},Ze.prototype.serialize=function(){return["image",this.input.serialize()]};var Ke={"to-boolean":be,"to-color":xe,"to-number":ve,"to-string":ye},Je=function(t,e){this.type=t,this.args=e};Je.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=Ke[r],i=[],a=1;a<t.length;a++){var o=e.parse(t[a],a,we);if(!o)return null;i.push(o)}return new Je(n,i)},Je.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Re)return e;if("string"===typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&!(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":je(e[0],e[1],e[2],e[3])))return new Re(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new Ge(r||"Could not parse color from value '"+("string"===typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var o=null,s=0,l=this.args;s<l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new Ge("Could not convert "+JSON.stringify(o)+" to number.")}return"formatted"===this.type.kind?Fe.fromString(He(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?Be.fromString(He(this.args[0].evaluate(t))):He(this.args[0].evaluate(t))},Je.prototype.eachChild=function(t){this.args.forEach(t)},Je.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},Je.prototype.serialize=function(){if("formatted"===this.type.kind)return new Xe([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ze(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var $e=["Unknown","Point","LineString","Polygon"],Qe=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};Qe.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},Qe.prototype.geometryType=function(){return this.feature?"number"===typeof this.feature.type?$e[this.feature.type]:this.feature.type:null},Qe.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},Qe.prototype.canonicalID=function(){return this.canonical},Qe.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Qe.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Re.parse(t)),e};var tr=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function er(t){return Array.isArray(t)?"("+t.map(Ee).join(", ")+")":"("+Ee(t.type)+"...)"}tr.prototype.evaluate=function(t){return this._evaluate(t,this.args)},tr.prototype.eachChild=function(t){this.args.forEach(t)},tr.prototype.outputDefined=function(){return!1},tr.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},tr.parse=function(t,e){var r,n=t[0],i=tr.definitions[n];if(!i)return e.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c<u.length;c+=1){var f=u[c],p=f[0],d=f[1];l=new Ir(e.registry,e.path,null,e.scope);for(var h=[],g=!1,m=1;m<t.length;m++){var v=t[m],y=Array.isArray(p)?p[m-1]:p.type,b=l.parse(v,1+h.length,y);if(!b){g=!0;break}h.push(b)}if(!g)if(Array.isArray(p)&&p.length!==h.length)l.error("Expected "+p.length+" arguments, but found "+h.length+" instead.");else{for(var x=0;x<h.length;x++){var _=Array.isArray(p)?p[x]:p.type,w=h[x];l.concat(x+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new tr(n,a,d,h)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var k=(s.length?s:o).map((function(t){return er(t[0])})).join(" | "),T=[],M=1;M<t.length;M++){var A=e.parse(t[M],1+T.length);if(!A)return null;T.push(Ee(A.type))}e.error("Expected arguments of type "+k+", but found ("+T.join(", ")+") instead.")}return null},tr.register=function(t,e){for(var r in tr.definitions=e,e)t[r]=tr};var rr=function(t,e,r){this.type=Te,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};rr.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!==typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,be);if(!n)return null;var i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,be);if(!i)return null;var a=null;return r.locale&&!(a=e.parse(r.locale,1,ye))?null:new rr(n,i,a)},rr.prototype.evaluate=function(t){return new ze(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},rr.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},rr.prototype.outputDefined=function(){return!1},rr.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var nr=8192;function ir(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function ar(t){return(180+t)/360}function or(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function sr(t,e){return!(t[0]<=e[0])&&!(t[2]>=e[2])&&!(t[1]<=e[1])&&!(t[3]>=e[3])}function lr(t,e){var r=ar(t[0]),n=or(t[1]),i=Math.pow(2,e.z);return[Math.round(r*i*nr),Math.round(n*i*nr)]}function cr(t,e,r){var n=t[0]-e[0],i=t[1]-e[1],a=t[0]-r[0],o=t[1]-r[1];return n*o-a*i===0&&n*a<=0&&i*o<=0}function ur(t,e,r){return e[1]>t[1]!==r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function fr(t,e){for(var r=!1,n=0,i=e.length;n<i;n++)for(var a=e[n],o=0,s=a.length;o<s-1;o++){if(cr(t,a[o],a[o+1]))return!1;ur(t,a[o],a[o+1])&&(r=!r)}return r}function pr(t,e){for(var r=0;r<e.length;r++)if(fr(t,e[r]))return!0;return!1}function dr(t,e){return t[0]*e[1]-t[1]*e[0]}function hr(t,e,r,n){var i=t[0]-r[0],a=t[1]-r[1],o=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],c=n[1]-r[1],u=i*c-l*a,f=o*c-l*s;return u>0&&f<0||u<0&&f>0}function gr(t,e,r,n){var i=[e[0]-t[0],e[1]-t[1]];return 0!==dr([n[0]-r[0],n[1]-r[1]],i)&&!(!hr(t,e,r,n)||!hr(r,n,t,e))}function mr(t,e,r){for(var n=0,i=r;n<i.length;n+=1)for(var a=i[n],o=0;o<a.length-1;++o)if(gr(t,e,a[o],a[o+1]))return!0;return!1}function vr(t,e){for(var r=0;r<t.length;++r)if(!fr(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(mr(t[n],t[n+1],e))return!1;return!0}function yr(t,e){for(var r=0;r<e.length;r++)if(vr(t,e[r]))return!0;return!1}function br(t,e,r){for(var n=[],i=0;i<t.length;i++){for(var a=[],o=0;o<t[i].length;o++){var s=lr(t[i][o],r);ir(e,s),a.push(s)}n.push(a)}return n}function xr(t,e,r){for(var n=[],i=0;i<t.length;i++){var a=br(t[i],e,r);n.push(a)}return n}function _r(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){var i=.5*n,a=t[0]-r[0]>i?-n:r[0]-t[0]>i?n:0;0===a&&(a=t[0]-r[2]>i?-n:r[2]-t[0]>i?n:0),t[0]+=a}ir(e,t)}function wr(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function kr(t,e,r,n){for(var i=Math.pow(2,n.z)*nr,a=[n.x*nr,n.y*nr],o=[],s=0,l=t;s<l.length;s+=1)for(var c=0,u=l[s];c<u.length;c+=1){var f=u[c],p=[f.x+a[0],f.y+a[1]];_r(p,e,r,i),o.push(p)}return o}function Tr(t,e,r,n){for(var i=Math.pow(2,n.z)*nr,a=[n.x*nr,n.y*nr],o=[],s=0,l=t;s<l.length;s+=1){for(var c=[],u=0,f=l[s];u<f.length;u+=1){var p=f[u],d=[p.x+a[0],p.y+a[1]];ir(e,d),c.push(d)}o.push(c)}if(e[2]-e[0]<=i/2){wr(e);for(var h=0,g=o;h<g.length;h+=1)for(var m=0,v=g[h];m<v.length;m+=1)_r(v[m],e,r,i)}return o}function Mr(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){var a=br(e.coordinates,n,i),o=kr(t.geometry(),r,n,i);if(!sr(r,n))return!1;for(var s=0,l=o;s<l.length;s+=1)if(!fr(l[s],a))return!1}if("MultiPolygon"===e.type){var c=xr(e.coordinates,n,i),u=kr(t.geometry(),r,n,i);if(!sr(r,n))return!1;for(var f=0,p=u;f<p.length;f+=1)if(!pr(p[f],c))return!1}return!0}function Ar(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){var a=br(e.coordinates,n,i),o=Tr(t.geometry(),r,n,i);if(!sr(r,n))return!1;for(var s=0,l=o;s<l.length;s+=1)if(!vr(l[s],a))return!1}if("MultiPolygon"===e.type){var c=xr(e.coordinates,n,i),u=Tr(t.geometry(),r,n,i);if(!sr(r,n))return!1;for(var f=0,p=u;f<p.length;f+=1)if(!yr(p[f],c))return!1}return!0}var Sr=function(t,e){this.type=be,this.geojson=t,this.geometries=e};function Er(t){if(t instanceof tr){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Sr)return!1;var e=!0;return t.eachChild((function(t){e&&!Er(t)&&(e=!1)})),e}function Cr(t){if(t instanceof tr&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Cr(t)&&(e=!1)})),e}function Or(t,e){if(t instanceof tr&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Or(t,e)&&(r=!1)})),r}Sr.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(Ue(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;n<r.features.length;++n){var i=r.features[n].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Sr(r,r.features[n].geometry)}else if("Feature"===r.type){var a=r.geometry.type;if("Polygon"===a||"MultiPolygon"===a)return new Sr(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new Sr(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Sr.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return Mr(t,this.geometries);if("LineString"===t.geometryType())return Ar(t,this.geometries)}return!1},Sr.prototype.eachChild=function(){},Sr.prototype.outputDefined=function(){return!0},Sr.prototype.serialize=function(){return["within",this.geojson]};var Lr=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Lr.parse=function(t,e){if(2!==t.length||"string"!==typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new Lr(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},Lr.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Lr.prototype.eachChild=function(){},Lr.prototype.outputDefined=function(){return!1},Lr.prototype.serialize=function(){return["var",this.name]};var Ir=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new ge),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=i,this.expectedType=r};function Pr(t){if(t instanceof Lr)return Pr(t.boundExpression);if(t instanceof tr&&"error"===t.name)return!1;if(t instanceof rr)return!1;if(t instanceof Sr)return!1;var e=t instanceof Je||t instanceof Ye,r=!0;return t.eachChild((function(t){r=e?r&&Pr(t):r&&t instanceof qe})),!!r&&Er(t)&&Or(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Dr(t,e){for(var r,n,i=t.length-1,a=0,o=i,s=0;a<=o;)if(r=t[s=Math.floor((a+o)/2)],n=t[s+1],r<=e){if(s===i||e<n)return s;a=s+1}else{if(!(r>e))throw new Ge("Input is not a number.");o=s-1}return 0}Ir.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Ir.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Ye(e,[t]):"coerce"===r?new Je(e,[t]):t}if(null!==t&&"string"!==typeof t&&"boolean"!==typeof t&&"number"!==typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!==typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if("string"!==o.kind&&"number"!==o.kind&&"boolean"!==o.kind&&"object"!==o.kind&&"array"!==o.kind||"value"!==s.kind)if("color"!==o.kind&&"formatted"!==o.kind&&"resolvedImage"!==o.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||"coerce");else a=r(a,o,e.typeAnnotation||"assert")}if(!(a instanceof qe)&&"resolvedImage"!==a.type.kind&&Pr(a)){var l=new Qe;try{a=new qe(a.type,a.evaluate(l))}catch(c){return this.error(c.message),null}}return a}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return"undefined"===typeof t?this.error("'undefined' value invalid. Use null instead."):"object"===typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},Ir.prototype.concat=function(t,e,r){var n="number"===typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Ir(this.registry,n,e||null,i,this.errors)},Ir.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new he(n,t))},Ir.prototype.checkSubtype=function(t,e){var r=Oe(t,e);return r&&this.error(r),r};var Rr=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var a=i[n],o=a[0],s=a[1];this.labels.push(o),this.outputs.push(s)}};function zr(t,e,r){return t*(1-r)+e*r}function Nr(t,e,r){return new Re(zr(t.r,e.r,r),zr(t.g,e.g,r),zr(t.b,e.b,r),zr(t.a,e.a,r))}function Fr(t,e,r){return t.map((function(t,n){return zr(t,e[n],r)}))}Rr.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,ve);if(!r)return null;var n=[],i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var a=1;a<t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if("number"!==typeof o)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=o)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new Rr(i,r,n)},Rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[Dr(e,n)].evaluate(t)},Rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},Rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},Rr.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Br=Object.freeze({__proto__:null,number:zr,color:Nr,array:Fr}),jr=.95047,Ur=1,Vr=1.08883,Hr=4/29,qr=6/29,Gr=3*qr*qr,Wr=qr*qr*qr,Yr=Math.PI/180,Xr=180/Math.PI;function Zr(t){return t>Wr?Math.pow(t,1/3):t/Gr+Hr}function Kr(t){return t>qr?t*t*t:Gr*(t-Hr)}function Jr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $r(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qr(t){var e=$r(t.r),r=$r(t.g),n=$r(t.b),i=Zr((.4124564*e+.3575761*r+.1804375*n)/jr),a=Zr((.2126729*e+.7151522*r+.072175*n)/Ur);return{l:116*a-16,a:500*(i-a),b:200*(a-Zr((.0193339*e+.119192*r+.9503041*n)/Vr)),alpha:t.a}}function tn(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=Ur*Kr(e),r=jr*Kr(r),n=Vr*Kr(n),new Re(Jr(3.2404542*r-1.5371385*e-.4985314*n),Jr(-.969266*r+1.8760108*e+.041556*n),Jr(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function en(t,e,r){return{l:zr(t.l,e.l,r),a:zr(t.a,e.a,r),b:zr(t.b,e.b,r),alpha:zr(t.alpha,e.alpha,r)}}function rn(t){var e=Qr(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Xr;return{h:a<0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}}function nn(t){var e=t.h*Yr,r=t.c;return tn({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})}function an(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function on(t,e,r){return{h:an(t.h,e.h,r),c:zr(t.c,e.c,r),l:zr(t.l,e.l,r),alpha:zr(t.alpha,e.alpha,r)}}var sn={forward:Qr,reverse:tn,interpolate:en},ln={forward:rn,reverse:nn,interpolate:on},cn=Object.freeze({__proto__:null,lab:sn,hcl:ln}),un=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a<o.length;a+=1){var s=o[a],l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}};function fn(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}un.interpolationFactor=function(t,e,r,i){var a=0;if("exponential"===t.name)a=fn(e,t.base,r,i);else if("linear"===t.name)a=fn(e,1,r,i);else if("cubic-bezier"===t.name){var o=t.controlPoints;a=new n(o[0],o[1],o[2],o[3]).solve(fn(e,1,r,i))}return a},un.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var o=n[1];if("number"!==typeof o)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:o}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return"number"!==typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!==0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,ve)))return null;var l=[],c=null;"interpolate-hcl"===r||"interpolate-lab"===r?c=xe:e.expectedType&&"value"!==e.expectedType.kind&&(c=e.expectedType);for(var u=0;u<a.length;u+=2){var f=a[u],p=a[u+1],d=u+3,h=u+4;if("number"!==typeof f)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(l.length&&l[l.length-1][0]>=f)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var g=e.parse(p,h,c);if(!g)return null;c=c||g.type,l.push([f,g])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"===typeof c.N?new un(c,r,n,i,l):e.error("Type "+Ee(c)+" is not interpolatable.")},un.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var a=Dr(e,n),o=e[a],s=e[a+1],l=un.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return"interpolate"===this.operator?Br[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?ln.reverse(ln.interpolate(ln.forward(c),ln.forward(u),l)):sn.reverse(sn.interpolate(sn.forward(c),sn.forward(u),l))},un.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},un.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},un.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var pn=function(t,e){this.type=t,this.args=e};pn.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);for(var i=[],a=0,o=t.slice(1);a<o.length;a+=1){var s=o[a],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,i.push(l)}var c=n&&i.some((function(t){return Oe(n,t.type)}));return new pn(c?we:r,i)},pn.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i<a.length&&(n++,(r=a[i].evaluate(t))&&r instanceof Be&&!r.available&&(e||(e=r.name),r=null,n===this.args.length&&(r=e)),null===r);i+=1);return r},pn.prototype.eachChild=function(t){this.args.forEach(t)},pn.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pn.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var dn=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};dn.prototype.evaluate=function(t){return this.result.evaluate(t)},dn.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1)t(r[e][1]);t(this.result)},dn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if("string"!==typeof i)return e.error("Expected string, but found "+typeof i+" instead.",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new dn(r,o):null},dn.prototype.outputDefined=function(){return this.result.outputDefined()},dn.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];t.push(i,a.serialize())}return t.push(this.result.serialize()),t};var hn=function(t,e,r){this.type=t,this.index=e,this.input=r};hn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,ve),n=e.parse(t[2],2,Se(e.expectedType||we));if(!r||!n)return null;var i=n.type;return new hn(i.itemType,r,n)},hn.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new Ge("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new Ge("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new Ge("Array index must be an integer, but found "+e+" instead.");return r[e]},hn.prototype.eachChild=function(t){t(this.index),t(this.input)},hn.prototype.outputDefined=function(){return!1},hn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var gn=function(t,e){this.type=be,this.needle=t,this.haystack=e};gn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,we),n=e.parse(t[2],2,we);return r&&n?Le(r.type,[be,ye,ve,me,we])?new gn(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Ee(r.type)+" instead"):null},gn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Ie(e,["boolean","string","number","null"]))throw new Ge("Expected first argument to be of type boolean, string, number or null, but found "+Ee(Ve(e))+" instead.");if(!Ie(r,["string","array"]))throw new Ge("Expected second argument to be of type array or string, but found "+Ee(Ve(r))+" instead.");return r.indexOf(e)>=0},gn.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},gn.prototype.outputDefined=function(){return!0},gn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var mn=function(t,e,r){this.type=ve,this.needle=t,this.haystack=e,this.fromIndex=r};mn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,we),n=e.parse(t[2],2,we);if(!r||!n)return null;if(!Le(r.type,[be,ye,ve,me,we]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Ee(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,ve);return i?new mn(r,n,i):null}return new mn(r,n)},mn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Ie(e,["boolean","string","number","null"]))throw new Ge("Expected first argument to be of type boolean, string, number or null, but found "+Ee(Ve(e))+" instead.");if(!Ie(r,["string","array"]))throw new Ge("Expected second argument to be of type array or string, but found "+Ee(Ve(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},mn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},mn.prototype.outputDefined=function(){return!1},mn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var vn=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};vn.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!==1)return e.error("Expected an even number of arguments.");var r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},a=[],o=2;o<t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error("Expected at least one branch label.");for(var u=0,f=s;u<f.length;u+=1){var p=f[u];if("number"!==typeof p&&"string"!==typeof p)return c.error("Branch labels must be numbers or strings.");if("number"===typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"===typeof p&&Math.floor(p)!==p)return c.error("Numeric branch labels must be integer values.");if(r){if(c.checkSubtype(r,Ve(p)))return null}else r=Ve(p);if("undefined"!==typeof i[String(p)])return c.error("Branch labels must be unique.");i[String(p)]=a.length}var d=e.parse(l,o,n);if(!d)return null;n=n||d.type,a.push(d)}var h=e.parse(t[1],1,we);if(!h)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?"value"!==h.type.kind&&e.concat(1).checkSubtype(r,h.type)?null:new vn(r,n,h,i,a,g):null},vn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(Ve(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},vn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},vn.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},vn.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i<a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,c=r;l<c.length;l+=1){var u=c[l],f=u[0],p=u[1];1===p.length?e.push(s(p[0])):e.push(p.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var yn=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};yn.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!==0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var a=e.parse(t[i],i,be);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new yn(r,n,s):null},yn.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];if(i.evaluate(t))return a.evaluate(t)}return this.otherwise.evaluate(t)},yn.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];t(i),t(a)}t(this.otherwise)},yn.prototype.outputDefined=function(){return this.branches.every((function(t){return t[0],t[1].outputDefined()}))&&this.otherwise.outputDefined()},yn.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var bn=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function xn(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function _n(t,e,r){return e===r}function wn(t,e,r){return e!==r}function kn(t,e,r){return e<r}function Tn(t,e,r){return e>r}function Mn(t,e,r){return e<=r}function An(t,e,r){return e>=r}function Sn(t,e,r,n){return 0===n.compare(e,r)}function En(t,e,r,n){return!Sn(t,e,r,n)}function Cn(t,e,r,n){return n.compare(e,r)<0}function On(t,e,r,n){return n.compare(e,r)>0}function Ln(t,e,r,n){return n.compare(e,r)<=0}function In(t,e,r,n){return n.compare(e,r)>=0}function Pn(t,e,r){var n="=="!==t&&"!="!==t;return function(){function i(t,e,r){this.type=be,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return i.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],a=e.parse(t[1],1,we);if(!a)return null;if(!xn(r,a.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Ee(a.type)+"'.");var o=e.parse(t[2],2,we);if(!o)return null;if(!xn(r,o.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Ee(o.type)+"'.");if(a.type.kind!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return e.error("Cannot compare types '"+Ee(a.type)+"' and '"+Ee(o.type)+"'.");n&&("value"===a.type.kind&&"value"!==o.type.kind?a=new Ye(o.type,[a]):"value"!==a.type.kind&&"value"===o.type.kind&&(o=new Ye(a.type,[o])));var s=null;if(4===t.length){if("string"!==a.type.kind&&"string"!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,Te)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=Ve(a),l=Ve(o);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Ge('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var c=Ve(a),u=Ve(o);if("string"!==c.kind||"string"!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}bn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,we),n=e.parse(t[2],2,ve);if(!r||!n)return null;if(!Le(r.type,[Se(we),ye,we]))return e.error("Expected first argument to be of type array or string, but found "+Ee(r.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,ve);return i?new bn(r.type,r,n,i):null}return new bn(r.type,r,n)},bn.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Ie(e,["string","array"]))throw new Ge("Expected first argument to be of type array or string, but found "+Ee(Ve(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},bn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},bn.prototype.outputDefined=function(){return!1},bn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Dn=Pn("==",_n,Sn),Rn=Pn("!=",wn,En),zn=Pn("<",kn,Cn),Nn=Pn(">",Tn,On),Fn=Pn("<=",Mn,Ln),Bn=Pn(">=",An,In),jn=function(t,e,r,n,i){this.type=ye,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};jn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,ve);if(!r)return null;var n=t[2];if("object"!==typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var i=null;if(n.locale&&!(i=e.parse(n.locale,1,ye)))return null;var a=null;if(n.currency&&!(a=e.parse(n.currency,1,ye)))return null;var o=null;if(n["min-fraction-digits"]&&!(o=e.parse(n["min-fraction-digits"],1,ve)))return null;var s=null;return n["max-fraction-digits"]&&!(s=e.parse(n["max-fraction-digits"],1,ve))?null:new jn(r,i,a,o,s)},jn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},jn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},jn.prototype.outputDefined=function(){return!1},jn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Un=function(t){this.type=ve,this.input=t};Un.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Ee(r.type)+" instead."):new Un(r):null},Un.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"===typeof e)return e.length;if(Array.isArray(e))return e.length;throw new Ge("Expected value to be of type string or array, but found "+Ee(Ve(e))+" instead.")},Un.prototype.eachChild=function(t){t(this.input)},Un.prototype.outputDefined=function(){return!1},Un.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Vn={"==":Dn,"!=":Rn,">":Nn,"<":zn,">=":Bn,"<=":Fn,array:Ye,at:hn,boolean:Ye,case:yn,coalesce:pn,collator:rr,format:Xe,image:Ze,in:gn,"index-of":mn,interpolate:un,"interpolate-hcl":un,"interpolate-lab":un,length:Un,let:dn,literal:qe,match:vn,number:Ye,"number-format":jn,object:Ye,slice:bn,step:Rr,string:Ye,"to-boolean":Je,"to-color":Je,"to-number":Je,"to-string":Je,var:Lr,within:Sr};function Hn(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=je(r,n,i,o);if(s)throw new Ge(s);return new Re(r/255*o,n/255*o,i/255*o,o)}function qn(t,e){return t in e}function Gn(t,e){var r=e[t];return"undefined"===typeof r?null:r}function Wn(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}function Yn(t){return{type:t}}function Xn(t){return{result:"success",value:t}}function Zn(t){return{result:"error",value:t}}function Kn(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Jn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function $n(t){return!!t.expression&&t.expression.interpolated}function Qn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function ti(t){return"object"===typeof t&&null!==t&&!Array.isArray(t)}function ei(t){return t}function ri(t,e){var r,n,i,a="color"===e.type,o=t.stops&&"object"===typeof t.stops[0][0],s=o||void 0!==t.property,l=o||!s,c=t.type||($n(e)?"exponential":"interval");if(a&&((t=fe({},t)).stops&&(t.stops=t.stops.map((function(t){return[t[0],Re.parse(t[1])]}))),t.default?t.default=Re.parse(t.default):t.default=Re.parse(e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!cn[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===c)r=oi;else if("interval"===c)r=ai;else if("categorical"===c){r=ii,n=Object.create(null);for(var u=0,f=t.stops;u<f.length;u+=1){var p=f[u];n[p[0]]=p[1]}i=typeof t.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');r=si}if(o){for(var d={},h=[],g=0;g<t.stops.length;g++){var m=t.stops[g],v=m[0].zoom;void 0===d[v]&&(d[v]={zoom:v,type:t.type,property:t.property,default:t.default,stops:[]},h.push(v)),d[v].stops.push([m[0].value,m[1]])}for(var y=[],b=0,x=h;b<x.length;b+=1){var _=x[b];y.push([d[_].zoom,ri(d[_],e)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:un.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(r,n){var i=r.zoom;return oi({stops:y,base:t.base},e,i).evaluate(i,n)}}}if(l){var k="exponential"===c?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:k,interpolationFactor:un.interpolationFactor.bind(void 0,k),zoomStops:t.stops.map((function(t){return t[0]})),evaluate:function(a){var o=a.zoom;return r(t,e,o,n,i)}}}return{kind:"source",evaluate:function(a,o){var s=o&&o.properties?o.properties[t.property]:void 0;return void 0===s?ni(t.default,e.default):r(t,e,s,n,i)}}}function ni(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function ii(t,e,r,n,i){return ni(typeof r===i?n[r]:void 0,t.default,e.default)}function ai(t,e,r){if("number"!==Qn(r))return ni(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var i=Dr(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function oi(t,e,r){var n=void 0!==t.base?t.base:1;if("number"!==Qn(r))return ni(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];var a=Dr(t.stops.map((function(t){return t[0]})),r),o=li(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Br[e.type]||ei;if(t.colorSpace&&"rgb"!==t.colorSpace){var u=cn[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return"function"===typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return c(r,n,o)}}:c(s,l,o)}function si(t,e,r){return"color"===e.type?r=Re.parse(r):"formatted"===e.type?r=Fe.fromString(r.toString()):"resolvedImage"===e.type?r=Be.fromString(r.toString()):Qn(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),ni(r,t.default,e.default)}function li(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}tr.register(Vn,{error:[ke,[ye],function(t,e){var r=e[0];throw new Ge(r.evaluate(t))}],typeof:[ye,[we],function(t,e){return Ee(Ve(e[0].evaluate(t)))}],"to-rgba":[Se(ve,4),[xe],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[xe,[ve,ve,ve],Hn],rgba:[xe,[ve,ve,ve,ve],Hn],has:{type:be,overloads:[[[ye],function(t,e){return qn(e[0].evaluate(t),t.properties())}],[[ye,_e],function(t,e){var r=e[0],n=e[1];return qn(r.evaluate(t),n.evaluate(t))}]]},get:{type:we,overloads:[[[ye],function(t,e){return Gn(e[0].evaluate(t),t.properties())}],[[ye,_e],function(t,e){var r=e[0],n=e[1];return Gn(r.evaluate(t),n.evaluate(t))}]]},"feature-state":[we,[ye],function(t,e){return Gn(e[0].evaluate(t),t.featureState||{})}],properties:[_e,[],function(t){return t.properties()}],"geometry-type":[ye,[],function(t){return t.geometryType()}],id:[we,[],function(t){return t.id()}],zoom:[ve,[],function(t){return t.globals.zoom}],"heatmap-density":[ve,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[ve,[],function(t){return t.globals.lineProgress||0}],accumulated:[we,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[ve,Yn(ve),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1)r+=i[n].evaluate(t);return r}],"*":[ve,Yn(ve),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1)r*=i[n].evaluate(t);return r}],"-":{type:ve,overloads:[[[ve,ve],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[ve],function(t,e){return-e[0].evaluate(t)}]]},"/":[ve,[ve,ve],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],"%":[ve,[ve,ve],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[ve,[],function(){return Math.LN2}],pi:[ve,[],function(){return Math.PI}],e:[ve,[],function(){return Math.E}],"^":[ve,[ve,ve],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[ve,[ve],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[ve,[ve],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[ve,[ve],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[ve,[ve],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[ve,[ve],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[ve,[ve],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[ve,[ve],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[ve,[ve],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[ve,[ve],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[ve,[ve],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[ve,Yn(ve),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[ve,Yn(ve),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[ve,[ve],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[ve,[ve],function(t,e){var r=e[0].evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[ve,[ve],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[ve,[ve],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[be,[ye,we],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[be,[we],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[be,[ye],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[be,[ye,we],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i===typeof a&&i<a}],"filter-id-<":[be,[we],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<i}],"filter->":[be,[ye,we],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i===typeof a&&i>a}],"filter-id->":[be,[we],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[be,[ye,we],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i===typeof a&&i<=a}],"filter-id-<=":[be,[we],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[be,[ye,we],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i===typeof a&&i>=a}],"filter-id->=":[be,[we],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[be,[we],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[be,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[be,[Se(ye)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[be,[Se(we)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[be,[ye,Se(we)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[be,[ye,Se(we)],function(t,e){var r=e[0],n=e[1];return Wn(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:be,overloads:[[[be,be],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Yn(be),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:be,overloads:[[[be,be],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Yn(be),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},"!":[be,[be],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[be,[ye],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[ye,[ye],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[ye,[ye],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[ye,Yn(we),function(t,e){return e.map((function(e){return He(e.evaluate(t))})).join("")}],"resolved-locale":[ye,[Te],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var ci=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Qe,this._defaultValue=e?bi(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function ui(t){return Array.isArray(t)&&t.length>0&&"string"===typeof t[0]&&t[0]in Vn}function fi(t,e){var r=new Ir(Vn,[],e?yi(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Xn(new ci(n,e)):Zn(r.errors)}ci.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},ci.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null===o||void 0===o||"number"===typeof o&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new Ge("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(s){return this._warningHistory[s.message]||(this._warningHistory[s.message]=!0,"undefined"!==typeof console&&console.warn(s.message)),this._defaultValue}};var pi=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Cr(e.expression)};pi.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},pi.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var di=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Cr(e.expression),this.interpolationType=n};function hi(t,e){if("error"===(t=fi(t,e)).result)return t;var r=t.value.expression,n=Er(r);if(!n&&!Kn(e))return Zn([new he("","data expressions not supported")]);var i=Or(r,["zoom"]);if(!i&&!Jn(e))return Zn([new he("","zoom expressions not supported")]);var a=vi(r);if(!a&&!i)return Zn([new he("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof he)return Zn([a]);if(a instanceof un&&!$n(e))return Zn([new he("",'"interpolate" expressions cannot be used with this property')]);if(!a)return Xn(new pi(n?"constant":"source",t.value));var o=a instanceof un?a.interpolation:void 0;return Xn(new di(n?"camera":"composite",t.value,a.labels,o))}di.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},di.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},di.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?un.interpolationFactor(this.interpolationType,t,e,r):0};var gi=function(t,e){this._parameters=t,this._specification=e,fe(this,ri(this._parameters,this._specification))};function mi(t,e){if(ti(t))return new gi(t,e);if(ui(t)){var r=hi(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value}var n=t;return"string"===typeof t&&"color"===e.type&&(n=Re.parse(t)),{kind:"constant",evaluate:function(){return n}}}function vi(t){var e=null;if(t instanceof dn)e=vi(t.result);else if(t instanceof pn)for(var r=0,n=t.args;r<n.length;r+=1){var i=n[r];if(e=vi(i))break}else(t instanceof Rr||t instanceof un)&&t.input instanceof tr&&"zoom"===t.input.name&&(e=t);return e instanceof he||t.eachChild((function(t){var r=vi(t);r instanceof he?e=r:!e&&r?e=new he("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new he("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function yi(t){var e={color:xe,string:ye,number:ve,enum:ye,boolean:be,formatted:Me,resolvedImage:Ae};return"array"===t.type?Se(e[t.value]||we,t.length):e[t.type]}function bi(t){return"color"===t.type&&ti(t.default)?new Re(0,0,0,0):"color"===t.type?Re.parse(t.default)||null:void 0===t.default?null:t.default}function xi(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=Qn(r);if("object"!==l)return[new ce(e,r,"object expected, "+l+" found")];for(var c in r){var u=c.split(".")[0],f=n[u]||n["*"],p=void 0;if(i[u])p=i[u];else if(n[u])p=Qi;else if(i["*"])p=i["*"];else{if(!n["*"]){s.push(new ce(e,r[c],'unknown property "'+c+'"'));continue}p=Qi}s=s.concat(p({key:(e?e+".":e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var d in n)i[d]||n[d].required&&void 0===n[d].default&&void 0===r[d]&&s.push(new ce(e,r,'missing required property "'+d+'"'));return s}function _i(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||Qi;if("array"!==Qn(e))return[new ce(a,e,"array expected, "+Qn(e)+" found")];if(r.length&&e.length!==r.length)return[new ce(a,e,"array length "+r.length+" expected, length "+e.length+" found")];if(r["min-length"]&&e.length<r["min-length"])return[new ce(a,e,"array length at least "+r["min-length"]+" expected, length "+e.length+" found")];var s={type:r.value,values:r.values};i.$version<7&&(s.function=r.function),"object"===Qn(r.value)&&(s=r.value);for(var l=[],c=0;c<e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+"["+c+"]"}));return l}function wi(t){var e=t.key,r=t.value,n=t.valueSpec,i=Qn(r);return"number"===i&&r!==r&&(i="NaN"),"number"!==i?[new ce(e,r,"number expected, "+i+" found")]:"minimum"in n&&r<n.minimum?[new ce(e,r,r+" is less than the minimum value "+n.minimum)]:"maximum"in n&&r>n.maximum?[new ce(e,r,r+" is greater than the maximum value "+n.maximum)]:[]}function ki(t){var e,r,n,i=t.valueSpec,a=pe(t.value.type),o={},s="categorical"!==a&&void 0===t.value.property,l=!s,c="array"===Qn(t.value.stops)&&"array"===Qn(t.value.stops[0])&&"object"===Qn(t.value.stops[0][0]),u=xi({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:f,default:h}});return"identity"===a&&s&&u.push(new ce(t.key,t.value,'missing required property "property"')),"identity"===a||t.value.stops||u.push(new ce(t.key,t.value,'missing required property "stops"')),"exponential"===a&&t.valueSpec.expression&&!$n(t.valueSpec)&&u.push(new ce(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!Kn(t.valueSpec)?u.push(new ce(t.key,t.value,"property functions not supported")):s&&!Jn(t.valueSpec)&&u.push(new ce(t.key,t.value,"zoom functions not supported"))),"categorical"!==a&&!c||void 0!==t.value.property||u.push(new ce(t.key,t.value,'"property" property is required')),u;function f(t){if("identity"===a)return[new ce(t.key,t.value,'identity function may not have a "stops" property')];var e=[],r=t.value;return e=e.concat(_i({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:p})),"array"===Qn(r)&&0===r.length&&e.push(new ce(t.key,r,"array must have at least one stop")),e}function p(t){var e=[],a=t.value,s=t.key;if("array"!==Qn(a))return[new ce(s,a,"array expected, "+Qn(a)+" found")];if(2!==a.length)return[new ce(s,a,"array length 2 expected, length "+a.length+" found")];if(c){if("object"!==Qn(a[0]))return[new ce(s,a,"object expected, "+Qn(a[0])+" found")];if(void 0===a[0].zoom)return[new ce(s,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new ce(s,a,"object stop key must have value")];if(n&&n>pe(a[0].zoom))return[new ce(s,a[0].zoom,"stop zoom values must appear in ascending order")];pe(a[0].zoom)!==n&&(n=pe(a[0].zoom),r=void 0,o={}),e=e.concat(xi({key:s+"[0]",value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:wi,value:d}}))}else e=e.concat(d({key:s+"[0]",value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return ui(de(a[1]))?e.concat([new ce(s+"[1]",a[1],"expressions are not allowed in function stops.")]):e.concat(Qi({key:s+"[1]",value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function d(t,n){var s=Qn(t.value),l=pe(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new ce(t.key,c,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new ce(t.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==a){var u="number expected, "+s+" found";return Kn(i)&&void 0===a&&(u+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ce(t.key,c,u)]}return"categorical"!==a||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==a&&"number"===s&&void 0!==r&&l<r?[new ce(t.key,c,"stop domain values must appear in ascending order")]:(r=l,"categorical"===a&&l in o?[new ce(t.key,c,"stop domain values must be unique")]:(o[l]=!0,[])):[new ce(t.key,c,"integer expected, found "+l)]}function h(t){return Qi({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}function Ti(t){var e=("property"===t.expressionContext?hi:fi)(de(t.value),t.valueSpec);if("error"===e.result)return e.value.map((function(e){return new ce(""+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return[new ce(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===t.expressionContext&&"layout"===t.propertyType&&!Cr(r))return[new ce(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!Cr(r))return[new ce(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!Or(r,["zoom","feature-state"]))return[new ce(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!Er(r))return[new ce(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Mi(t){var e=t.value,r=t.key,n=Qn(e);return"boolean"!==n?[new ce(r,e,"boolean expected, "+n+" found")]:[]}function Ai(t){var e=t.key,r=t.value,n=Qn(r);return"string"!==n?[new ce(e,r,"color expected, "+n+" found")]:null===De(r)?[new ce(e,r,'color expected, "'+r+'" found')]:[]}function Si(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(pe(r))&&i.push(new ce(e,r,"expected one of ["+n.values.join(", ")+"], "+JSON.stringify(r)+" found")):-1===Object.keys(n.values).indexOf(pe(r))&&i.push(new ce(e,r,"expected one of ["+Object.keys(n.values).join(", ")+"], "+JSON.stringify(r)+" found")),i}function Ei(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!==typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!Ei(n)&&"boolean"!==typeof n)return!1}return!0;default:return!0}}gi.deserialize=function(t){return new gi(t._parameters,t._specification)},gi.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var Ci={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Oi(t){if(null===t||void 0===t)return{filter:function(){return!0},needGeometry:!1};Ei(t)||(t=Pi(t));var e=fi(t,Ci);if("error"===e.result)throw new Error(e.value.map((function(t){return t.key+": "+t.message})).join(", "));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:Ii(t)}}function Li(t,e){return t<e?-1:t>e?1:0}function Ii(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var e=1;e<t.length;e++)if(Ii(t[e]))return!0;return!1}function Pi(t){if(!t)return!0;var e=t[0];return t.length<=1?"any"!==e:"=="===e?Di(t[1],t[2],"=="):"!="===e?Fi(Di(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?Di(t[1],t[2],e):"any"===e?Ri(t.slice(1)):"all"===e?["all"].concat(t.slice(1).map(Pi)):"none"===e?["all"].concat(t.slice(1).map(Pi).map(Fi)):"in"===e?zi(t[1],t.slice(2)):"!in"===e?Fi(zi(t[1],t.slice(2))):"has"===e?Ni(t[1]):"!has"===e?Fi(Ni(t[1])):"within"!==e||t}function Di(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function Ri(t){return["any"].concat(t.map(Pi))}function zi(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!==typeof e[0]}))?["filter-in-large",t,["literal",e.sort(Li)]]:["filter-in-small",t,["literal",e]]}}function Ni(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Fi(t){return["!",t]}function Bi(t){return Ei(de(t.value))?Ti(fe({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ji(t)}function ji(t){var e=t.value,r=t.key;if("array"!==Qn(e))return[new ce(r,e,"array expected, "+Qn(e)+" found")];var n,i=t.styleSpec,a=[];if(e.length<1)return[new ce(r,e,"filter array must have at least 1 element")];switch(a=a.concat(Si({key:r+"[0]",value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),pe(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===pe(e[1])&&a.push(new ce(r,e,'"$type" cannot be use with operator "'+e[0]+'"'));case"==":case"!=":3!==e.length&&a.push(new ce(r,e,'filter array for operator "'+e[0]+'" must have 3 elements'));case"in":case"!in":e.length>=2&&"string"!==(n=Qn(e[1]))&&a.push(new ce(r+"[1]",e[1],"string expected, "+n+" found"));for(var o=2;o<e.length;o++)n=Qn(e[o]),"$type"===pe(e[1])?a=a.concat(Si({key:r+"["+o+"]",value:e[o],valueSpec:i.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&a.push(new ce(r+"["+o+"]",e[o],"string, number, or boolean expected, "+n+" found"));break;case"any":case"all":case"none":for(var s=1;s<e.length;s++)a=a.concat(ji({key:r+"["+s+"]",value:e[s],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":n=Qn(e[1]),2!==e.length?a.push(new ce(r,e,'filter array for "'+e[0]+'" operator must have 2 elements')):"string"!==n&&a.push(new ce(r+"[1]",e[1],"string expected, "+n+" found"));break;case"within":n=Qn(e[1]),2!==e.length?a.push(new ce(r,e,'filter array for "'+e[0]+'" operator must have 2 elements')):"object"!==n&&a.push(new ce(r+"[1]",e[1],"object expected, "+n+" found"))}return a}function Ui(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+"_"+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if("paint"===e&&l&&s[l[1]]&&s[l[1]].transition)return Qi({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new ce(r,a,'unknown property "'+o+'"')];if("string"===Qn(a)&&Kn(u)&&!u.tokens&&(c=/^{([^}]+)}$/.exec(a)))return[new ce(r,a,'"'+o+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(c[1])+" }`.")];var f=[];return"symbol"===t.layerType&&("text-field"===o&&n&&!n.glyphs&&f.push(new ce(r,a,'use of "text-field" requires a style "glyphs" property')),"text-font"===o&&ti(de(a))&&"identity"===pe(a.type)&&f.push(new ce(r,a,'"text-font" does not support identity functions'))),f.concat(Qi({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:"property",propertyType:e,propertyKey:o}))}function Vi(t){return Ui(t,"paint")}function Hi(t){return Ui(t,"layout")}function qi(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new ce(n,r,'either "type" or "ref" is required'));var o,s=pe(r.type),l=pe(r.ref);if(r.id)for(var c=pe(r.id),u=0;u<t.arrayIndex;u++){var f=i.layers[u];pe(f.id)===c&&e.push(new ce(n,r.id,'duplicate layer id "'+r.id+'", previously used at line '+f.id.__line__))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach((function(t){t in r&&e.push(new ce(n,r[t],'"'+t+'" is prohibited for ref layers'))})),i.layers.forEach((function(t){pe(t.id)===l&&(o=t)})),o?o.ref?e.push(new ce(n,r.ref,"ref cannot reference another ref layer")):s=pe(o.type):e.push(new ce(n,r.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(r.source){var p=i.sources&&i.sources[r.source],d=p&&pe(p.type);p?"vector"===d&&"raster"===s?e.push(new ce(n,r.source,'layer "'+r.id+'" requires a raster source')):"raster"===d&&"raster"!==s?e.push(new ce(n,r.source,'layer "'+r.id+'" requires a vector source')):"vector"!==d||r["source-layer"]?"raster-dem"===d&&"hillshade"!==s?e.push(new ce(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===d&&p.lineMetrics||e.push(new ce(n,r,'layer "'+r.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new ce(n,r,'layer "'+r.id+'" must specify a "source-layer"')):e.push(new ce(n,r.source,'source "'+r.source+'" not found'))}else e.push(new ce(n,r,'missing required property "source"'));return e=e.concat(xi({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Qi({key:n+".type",value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"})},filter:Bi,layout:function(t){return xi({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Hi(fe({layerType:s},t))}}})},paint:function(t){return xi({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Vi(fe({layerType:s},t))}}})}}})),e}function Gi(t){var e=t.value,r=t.key,n=Qn(e);return"string"!==n?[new ce(r,e,"string expected, "+n+" found")]:[]}var Wi={promoteId:Xi};function Yi(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new ce(r,e,'"type" is required')];var a,o=pe(e.type);switch(o){case"vector":case"raster":case"raster-dem":return a=xi({key:r,value:e,valueSpec:n["source_"+o.replace("-","_")],style:t.style,styleSpec:n,objectElementValidators:Wi});case"geojson":if(a=xi({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:Wi}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=l[1],f="string"===typeof c?[c,["accumulated"],["get",s]]:c;a.push.apply(a,Ti({key:r+"."+s+".map",value:u,expressionContext:"cluster-map"})),a.push.apply(a,Ti({key:r+"."+s+".reduce",value:f,expressionContext:"cluster-reduce"}))}return a;case"video":return xi({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case"image":return xi({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case"canvas":return[new ce(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Si({key:r+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:n})}}function Xi(t){var e=t.key,r=t.value;if("string"===Qn(r))return Gi({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,Gi({key:e+"."+i,value:r[i]}));return n}function Zi(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=Qn(e);if(void 0===e)return a;if("object"!==o)return a=a.concat([new ce("light",e,"object expected, "+o+" found")]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=l&&n[l[1]]&&n[l[1]].transition?a.concat(Qi({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?a.concat(Qi({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r})):a.concat([new ce(s,e[s],'unknown property "'+s+'"')])}return a}function Ki(t){return 0===Gi(t).length?[]:Ti(t)}function Ji(t){return 0===Gi(t).length?[]:Ti(t)}var $i={"*":function(){return[]},array:_i,boolean:Mi,number:wi,color:Ai,constants:ue,enum:Si,filter:Bi,function:ki,layer:qi,object:xi,source:Yi,light:Zi,string:Gi,formatted:Ki,resolvedImage:Ji};function Qi(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&&ti(pe(e))?ki(t):r.expression&&ui(de(e))?Ti(t):r.type&&$i[r.type]?$i[r.type](t):xi(fe({},t,{valueSpec:r.type?n[r.type]:r}))}function ta(t){var e=t.value,r=t.key,n=Gi(t);return n.length||(-1===e.indexOf("{fontstack}")&&n.push(new ce(r,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&n.push(new ce(r,e,'"glyphs" url must include a "{range}" token'))),n}function ea(t,e){void 0===e&&(e=le);var r=[];return r=r.concat(Qi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:ta,"*":function(){return[]}}})),t.constants&&(r=r.concat(ue({key:"constants",value:t.constants,style:t,styleSpec:e}))),ra(r)}function ra(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function na(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return ra(t.apply(this,e))}}ea.source=na(Yi),ea.light=na(Zi),ea.layer=na(qi),ea.filter=na(Bi),ea.paintProperty=na(Vi),ea.layoutProperty=na(Hi);var ia=ea,aa=ia.light,oa=ia.paintProperty,sa=ia.layoutProperty;function la(t,e){var r=!1;if(e&&e.length)for(var n=0,i=e;n<i.length;n+=1){var a=i[n];t.fire(new oe(new Error(a.message))),r=!0}return r}var ca=fa,ua=3;function fa(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],r=i[2],this.d=e+2*r;for(var a=0;a<this.d*this.d;a++){var o=i[ua+a],s=i[ua+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[ua+n.length],c=i[ua+n.length+1];this.keys=i.subarray(l,c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var u=0;u<this.d*this.d;u++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}fa.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},fa.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},fa.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},fa.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t<=a&&e<=a&&o<=r&&o<=n&&!i)return Array.prototype.slice.call(this.keys);var s=[],l={};return this._forEachCell(t,e,r,n,this._queryCell,s,l,i),s},fa.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f<l.length;f++){var p=l[f];if(void 0===o[p]){var d=4*p;(s?s(u[d+0],u[d+1],u[d+2],u[d+3]):t<=u[d+2]&&e<=u[d+3]&&r>=u[d+0]&&n>=u[d+1])?(o[p]=!0,a.push(c[p])):o[p]=!1}}},fa.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),p=l;p<=u;p++)for(var d=c;d<=f;d++){var h=this.d*d+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&i.call(this,t,e,r,n,h,a,o,s))return}},fa.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},fa.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},fa.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=ua+this.cells.length+1+1,r=0,n=0;n<this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o<t.length;o++){var s=t[o];i[ua+o]=a,i.set(s,a),a+=s.length}return i[ua+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[ua+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var pa=self.ImageData,da=self.ImageBitmap,ha={};function ga(t,e,r){void 0===r&&(r={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),ha[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var ma in ga("Object",Object),ca.serialize=function(t,e){var r=t.toArrayBuffer();return e&&e.push(r),{buffer:r}},ca.deserialize=function(t){return new ca(t.buffer)},ga("Grid",ca),ga("Color",Re),ga("Error",Error),ga("ResolvedImage",Be),ga("StylePropertyFunction",gi),ga("StyleExpression",ci,{omit:["_evaluator"]}),ga("ZoomDependentExpression",di),ga("ZoomConstantExpression",pi),ga("CompoundExpression",tr,{omit:["_evaluate"]}),Vn)Vn[ma]._classRegistryKey||ga("Expression_"+ma,Vn[ma]);function va(t){return t&&"undefined"!==typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function ya(t){return da&&t instanceof da}function ba(t,e){if(null===t||void 0===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(va(t)||ya(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&&e.push(r.buffer),r}if(t instanceof pa)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i<a.length;i+=1){var o=a[i];n.push(ba(o,e))}return n}if("object"===typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var c=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var u in t)if(t.hasOwnProperty(u)&&!(ha[l].omit.indexOf(u)>=0)){var f=t[u];c[u]=ha[l].shallow.indexOf(u)>=0?f:ba(f,e)}t instanceof Error&&(c.message=t.message)}if(c.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(c.$name=l),c}throw new Error("can't serialize object of type "+typeof t)}function xa(t){if(null===t||void 0===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||va(t)||ya(t)||ArrayBuffer.isView(t)||t instanceof pa)return t;if(Array.isArray(t))return t.map(xa);if("object"===typeof t){var e=t.$name||"Object",r=ha[e].klass;if(!r)throw new Error("can't deserialize unregistered class "+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i<a.length;i+=1){var o=a[i];if("$name"!==o){var s=t[o];n[o]=ha[e].shallow.indexOf(o)>=0?s:xa(s)}}return n}throw new Error("can't deserialize object of type "+typeof t)}var _a=function(){this.first=!0};_a.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))};var wa={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function ka(t){for(var e=0,r=t;e<r.length;e+=1)if(Sa(r[e].charCodeAt(0)))return!0;return!1}function Ta(t){for(var e=0,r=t;e<r.length;e+=1)if(!Ma(r[e].charCodeAt(0)))return!1;return!0}function Ma(t){return!wa.Arabic(t)&&!wa["Arabic Supplement"](t)&&!wa["Arabic Extended-A"](t)&&!wa["Arabic Presentation Forms-A"](t)&&!wa["Arabic Presentation Forms-B"](t)}function Aa(t){return!(t<11904)&&(!!wa["Bopomofo Extended"](t)||!!wa.Bopomofo(t)||!!wa["CJK Compatibility Forms"](t)||!!wa["CJK Compatibility Ideographs"](t)||!!wa["CJK Compatibility"](t)||!!wa["CJK Radicals Supplement"](t)||!!wa["CJK Strokes"](t)||!!wa["CJK Symbols and Punctuation"](t)||!!wa["CJK Unified Ideographs Extension A"](t)||!!wa["CJK Unified Ideographs"](t)||!!wa["Enclosed CJK Letters and Months"](t)||!!wa["Halfwidth and Fullwidth Forms"](t)||!!wa.Hiragana(t)||!!wa["Ideographic Description Characters"](t)||!!wa["Kangxi Radicals"](t)||!!wa["Katakana Phonetic Extensions"](t)||!!wa.Katakana(t)||!!wa["Vertical Forms"](t)||!!wa["Yi Radicals"](t)||!!wa["Yi Syllables"](t))}function Sa(t){return 746===t||747===t||!(t<4352)&&(!!wa["Bopomofo Extended"](t)||!!wa.Bopomofo(t)||!(!wa["CJK Compatibility Forms"](t)||t>=65097&&t<=65103)||!!wa["CJK Compatibility Ideographs"](t)||!!wa["CJK Compatibility"](t)||!!wa["CJK Radicals Supplement"](t)||!!wa["CJK Strokes"](t)||!(!wa["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||!!wa["CJK Unified Ideographs Extension A"](t)||!!wa["CJK Unified Ideographs"](t)||!!wa["Enclosed CJK Letters and Months"](t)||!!wa["Hangul Compatibility Jamo"](t)||!!wa["Hangul Jamo Extended-A"](t)||!!wa["Hangul Jamo Extended-B"](t)||!!wa["Hangul Jamo"](t)||!!wa["Hangul Syllables"](t)||!!wa.Hiragana(t)||!!wa["Ideographic Description Characters"](t)||!!wa.Kanbun(t)||!!wa["Kangxi Radicals"](t)||!!wa["Katakana Phonetic Extensions"](t)||!(!wa.Katakana(t)||12540===t)||!(!wa["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!wa["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||!!wa["Unified Canadian Aboriginal Syllabics"](t)||!!wa["Unified Canadian Aboriginal Syllabics Extended"](t)||!!wa["Vertical Forms"](t)||!!wa["Yijing Hexagram Symbols"](t)||!!wa["Yi Syllables"](t)||!!wa["Yi Radicals"](t))}function Ea(t){return!(!wa["Latin-1 Supplement"](t)||167!==t&&169!==t&&174!==t&&177!==t&&188!==t&&189!==t&&190!==t&&215!==t&&247!==t)||!(!wa["General Punctuation"](t)||8214!==t&&8224!==t&&8225!==t&&8240!==t&&8241!==t&&8251!==t&&8252!==t&&8258!==t&&8263!==t&&8264!==t&&8265!==t&&8273!==t)||!!wa["Letterlike Symbols"](t)||!!wa["Number Forms"](t)||!(!wa["Miscellaneous Technical"](t)||!(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215))||!(!wa["Control Pictures"](t)||9251===t)||!!wa["Optical Character Recognition"](t)||!!wa["Enclosed Alphanumerics"](t)||!!wa["Geometric Shapes"](t)||!(!wa["Miscellaneous Symbols"](t)||t>=9754&&t<=9759)||!(!wa["Miscellaneous Symbols and Arrows"](t)||!(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243))||!!wa["CJK Symbols and Punctuation"](t)||!!wa.Katakana(t)||!!wa["Private Use Area"](t)||!!wa["CJK Compatibility Forms"](t)||!!wa["Small Form Variants"](t)||!!wa["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t}function Ca(t){return!(Sa(t)||Ea(t))}function Oa(t){return wa.Arabic(t)||wa["Arabic Supplement"](t)||wa["Arabic Extended-A"](t)||wa["Arabic Presentation Forms-A"](t)||wa["Arabic Presentation Forms-B"](t)}function La(t){return t>=1424&&t<=2303||wa["Arabic Presentation Forms-A"](t)||wa["Arabic Presentation Forms-B"](t)}function Ia(t,e){return!(!e&&La(t))&&!(t>=2304&&t<=3583||t>=3840&&t<=4255||wa.Khmer(t))}function Pa(t){for(var e=0,r=t;e<r.length;e+=1)if(La(r[e].charCodeAt(0)))return!0;return!1}function Da(t,e){for(var r=0,n=t;r<n.length;r+=1)if(!Ia(n[r].charCodeAt(0),e))return!1;return!0}var Ra={unavailable:"unavailable",deferred:"deferred",loading:"loading",loaded:"loaded",error:"error"},za=null,Na=Ra.unavailable,Fa=null,Ba=function(t){t&&"string"===typeof t&&t.indexOf("NetworkError")>-1&&(Na=Ra.error),za&&za(t)};function ja(){Ua.fire(new ae("pluginStateChange",{pluginStatus:Na,pluginURL:Fa}))}var Ua=new se,Va=function(){return Na},Ha=function(t){return t({pluginStatus:Na,pluginURL:Fa}),Ua.on("pluginStateChange",t),t},qa=function(t,e,r){if(void 0===r&&(r=!1),Na===Ra.deferred||Na===Ra.loading||Na===Ra.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Fa=Y.resolveURL(t),Na=Ra.deferred,za=e,ja(),r||Ga()},Ga=function(){if(Na!==Ra.deferred||!Fa)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Na=Ra.loading,ja(),Fa&&Yt({url:Fa},(function(t){t?Ba(t):(Na=Ra.loaded,ja())}))},Wa={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Na===Ra.loaded||null!=Wa.applyArabicShaping},isLoading:function(){return Na===Ra.loading},setState:function(t){Na=t.pluginStatus,Fa=t.pluginURL},isParsed:function(){return null!=Wa.applyArabicShaping&&null!=Wa.processBidirectionalText&&null!=Wa.processStyledBidirectionalText},getPluginURL:function(){return Fa}},Ya=function(){Wa.isLoading()||Wa.isLoaded()||"deferred"!==Va()||Ga()},Xa=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new _a,this.transition={})};Xa.prototype.isSupportedScript=function(t){return Da(t,Wa.isLoaded())},Xa.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Xa.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var Za=function(t,e){this.property=t,this.value=e,this.expression=mi(void 0===e?t.specification.default:e,t.specification)};Za.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Za.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var Ka=function(t){this.property=t,this.value=new Za(t,void 0)};Ka.prototype.transitioned=function(t,e){return new $a(this.property,this.value,e,m({},t.transition,this.transition),t.now)},Ka.prototype.untransitioned=function(){return new $a(this.property,this.value,null,{},0)};var Ja=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Ja.prototype.getValue=function(t){return A(this._values[t].value.value)},Ja.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Ka(this._values[t].property)),this._values[t].value=new Za(this._values[t].property,null===e?void 0:A(e))},Ja.prototype.getTransition=function(t){return A(this._values[t].transition)},Ja.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Ka(this._values[t].property)),this._values[t].transition=A(e)||void 0},Ja.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&&(t[n]=i);var a=this.getTransition(n);void 0!==a&&(t[n+"-transition"]=a)}return t},Ja.prototype.transitioned=function(t,e){for(var r=new Qa(this._properties),n=0,i=Object.keys(this._values);n<i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},Ja.prototype.untransitioned=function(){for(var t=new Qa(this._properties),e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var $a=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=r)};$a.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n<this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,l(o))}return i};var Qa=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Qa.prototype.possiblyEvaluate=function(t,e,r){for(var n=new ro(this._properties),i=0,a=Object.keys(this._values);i<a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},Qa.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var to=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};to.prototype.getValue=function(t){return A(this._values[t].value)},to.prototype.setValue=function(t,e){this._values[t]=new Za(this._values[t].property,null===e?void 0:A(e))},to.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&&(t[n]=i)}return t},to.prototype.possiblyEvaluate=function(t,e,r){for(var n=new ro(this._properties),i=0,a=Object.keys(this._values);i<a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var eo=function(t,e,r){this.property=t,this.value=e,this.parameters=r};eo.prototype.isConstant=function(){return"constant"===this.value.kind},eo.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},eo.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var ro=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};ro.prototype.get=function(t){return this._values[t]};var no=function(t){this.specification=t};no.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},no.prototype.interpolate=function(t,e,r){var n=Br[this.specification.type];return n?n(t,e,r):t};var io=function(t,e){this.specification=t,this.overrides=e};io.prototype.possiblyEvaluate=function(t,e,r,n){return"constant"===t.expression.kind||"camera"===t.expression.kind?new eo(this,{kind:"constant",value:t.expression.evaluate(e,null,{},r,n)},e):new eo(this,t.expression,e)},io.prototype.interpolate=function(t,e,r){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new eo(this,{kind:"constant",value:void 0},t.parameters);var n=Br[this.specification.type];return n?new eo(this,{kind:"constant",value:n(t.value.value,e.value.value,r)},t.parameters):t},io.prototype.evaluate=function(t,e,r,n,i,a){return"constant"===t.kind?t.value:t.evaluate(e,r,n,i,a)};var ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new eo(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a="resolvedImage"===t.property.specification.type&&"string"!==typeof i?i.name:i,o=this._calculate(a,a,a,e);return new eo(this,{kind:"constant",value:o},e)}if("camera"===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new eo(this,{kind:"constant",value:s},e)}return new eo(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if("source"===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(io),oo=function(t){this.specification=t};oo.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new Xa(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Xa(Math.floor(e.zoom),e)),t.expression.evaluate(new Xa(Math.floor(e.zoom+1),e)),e)}},oo.prototype._calculate=function(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},oo.prototype.interpolate=function(t){return t};var so=function(t){this.specification=t};so.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},so.prototype.interpolate=function(){return!1};var lo=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&&this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new Za(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new Ka(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};ga("DataDrivenProperty",io),ga("DataConstantProperty",no),ga("CrossFadedDataDrivenProperty",ao),ga("CrossFadedProperty",oo),ga("ColorRampProperty",so);var co="-transition",uo=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new to(r.layout)),r.paint)){for(var n in this._transitionablePaint=new Ja(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ro(r.paint)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&&(r={}),null!==e&&void 0!==e){var n="layers."+this.id+".layout."+t;if(this._validate(sa,n,t,e,r))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return k(t,co)?this._transitionablePaint.getTransition(t.slice(0,-co.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&&(r={}),null!==e&&void 0!==e){var n="layers."+this.id+".paint."+t;if(this._validate(oa,n,t,e,r))return!1}if(k(t,co))return this._transitionablePaint.setTransition(t.slice(0,-co.length),e||void 0),!1;var i=this._transitionablePaint._values[t],a="cross-faded-data-driven"===i.property.specification["property-type"],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),M(t,(function(t,e){return void 0!==t&&!("layout"===e&&!Object.keys(t).length)&&!("paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&la(this,t.call(ia,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:le,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof eo&&Kn(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(se),fo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},po=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ho=128,go=5,mo=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function vo(t,e){void 0===e&&(e=1);var r=0,n=0;return{members:t.map((function(t){var i=yo(t.type),a=r=bo(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:bo(r,Math.max(n,e)),alignment:e}}function yo(t){return fo[t].BYTES_PER_ELEMENT}function bo(t,e){return Math.ceil(t/e)*e}mo.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},mo.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},mo.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},mo.prototype.clear=function(){this.length=0},mo.prototype.resize=function(t){this.reserve(t),this.length=t},mo.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*go),ho),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},mo.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var xo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(mo);xo.prototype.bytesPerElement=4,ga("StructArrayLayout2i4",xo);var _o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(mo);_o.prototype.bytesPerElement=8,ga("StructArrayLayout4i8",_o);var wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(mo);wo.prototype.bytesPerElement=12,ga("StructArrayLayout2i4i12",wo);var ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(mo);ko.prototype.bytesPerElement=8,ga("StructArrayLayout2i4ub8",ko);var To=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,p=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[p+16]=c,this.uint8[p+17]=u,t},e}(mo);To.prototype.bytesPerElement=18,ga("StructArrayLayout8ui2ub18",To);var Mo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var p=this.length;return this.resize(p+1),this.emplace(p,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,p){var d=12*t;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=n,this.int16[d+3]=i,this.uint16[d+4]=a,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=l,this.int16[d+8]=c,this.int16[d+9]=u,this.int16[d+10]=f,this.int16[d+11]=p,t},e}(mo);Mo.prototype.bytesPerElement=24,ga("StructArrayLayout4i4ui4i24",Mo);var Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(mo);Ao.prototype.bytesPerElement=12,ga("StructArrayLayout3f12",Ao);var So=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(mo);So.prototype.bytesPerElement=4,ga("StructArrayLayout1ul4",So);var Eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(mo);Eo.prototype.bytesPerElement=20,ga("StructArrayLayout6i1ul2ui20",Eo);var Co=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(mo);Co.prototype.bytesPerElement=12,ga("StructArrayLayout2i2i2i12",Co);var Oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(mo);Oo.prototype.bytesPerElement=16,ga("StructArrayLayout2f1f2i16",Oo);var Lo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(mo);Lo.prototype.bytesPerElement=12,ga("StructArrayLayout2ub2f12",Lo);var Io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(mo);Io.prototype.bytesPerElement=6,ga("StructArrayLayout3ui6",Io);var Po=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v){var y=24*t,b=12*t,x=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[b+2]=a,this.uint32[b+3]=o,this.uint32[b+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[b+7]=f,this.float32[b+8]=p,this.uint8[x+36]=d,this.uint8[x+37]=h,this.uint8[x+38]=g,this.uint32[b+10]=m,this.int16[y+22]=v,t},e}(mo);Po.prototype.bytesPerElement=48,ga("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Po);var Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v,y,b,x,_,w,k,T,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v,y,b,x,_,w,k,T,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v,y,b,x,_,w,k,T,M,A,S,E){var C=34*t,O=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=p,this.uint16[C+12]=d,this.uint16[C+13]=h,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=b,this.uint16[C+19]=x,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=k,this.uint32[O+12]=T,this.float32[O+13]=M,this.float32[O+14]=A,this.float32[O+15]=S,this.float32[O+16]=E,t},e}(mo);Do.prototype.bytesPerElement=68,ga("StructArrayLayout8i15ui1ul4f68",Do);var Ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(mo);Ro.prototype.bytesPerElement=4,ga("StructArrayLayout1f4",Ro);var zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(mo);zo.prototype.bytesPerElement=6,ga("StructArrayLayout3i6",zo);var No=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=2*t,a=4*t;return this.uint32[i+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=n,t},e}(mo);No.prototype.bytesPerElement=8,ga("StructArrayLayout1ul2ui8",No);var Fo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(mo);Fo.prototype.bytesPerElement=4,ga("StructArrayLayout2ui4",Fo);var Bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(mo);Bo.prototype.bytesPerElement=2,ga("StructArrayLayout1ui2",Bo);var jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(mo);jo.prototype.bytesPerElement=8,ga("StructArrayLayout2f8",jo);var Uo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(mo);Uo.prototype.bytesPerElement=16,ga("StructArrayLayout4f16",Uo);var Vo=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(po);Vo.prototype.size=20;var Ho=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Vo(this,t)},e}(Eo);ga("CollisionBoxArray",Ho);var qo=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(po);qo.prototype.size=48;var Go=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new qo(this,t)},e}(Po);ga("PlacedSymbolArray",Go);var Wo=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(po);Wo.prototype.size=68;var Yo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Wo(this,t)},e}(Do);ga("SymbolInstanceArray",Yo);var Xo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Ro);ga("GlyphOffsetArray",Xo);var Zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(zo);ga("SymbolLineVertexArray",Zo);var Ko=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(po);Ko.prototype.size=8;var Jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Ko(this,t)},e}(No);ga("FeatureIndexArray",Jo);var $o=vo([{name:"a_pos",components:2,type:"Int16"}],4).members,Qo=function(t){void 0===t&&(t=[]),this.segments=t};function ts(t,e){return 256*(t=f(Math.floor(t),0,255))+(e=f(Math.floor(e),0,255))}Qo.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t>Qo.MAX_VERTEX_ARRAY_LENGTH&&C("Max vertices per segment is "+Qo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>Qo.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i},Qo.prototype.get=function(){return this.segments},Qo.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},Qo.simpleSegment=function(t,e,r,n){return new Qo([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},Qo.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ga("SegmentVector",Qo);var es=vo([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint8"},{name:"a_pixel_ratio_to",components:1,type:"Uint8"}]),rs=e((function(t){function e(t,e){var r,n,i,a,o,s,l,c;for(r=3&t.length,n=t.length-r,i=e,o=3432918353,s=461845907,c=0;c<n;)l=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24,++c,i=27492+(65535&(a=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&t.charCodeAt(c+2))<<16;case 2:l^=(255&t.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}t.exports=e})),ns=e((function(t){function e(t,e){for(var r,n=t.length,i=e^n,a=0;n>=4;)r=1540483477*(65535&(r=255&t.charCodeAt(a)|(255&t.charCodeAt(++a))<<8|(255&t.charCodeAt(++a))<<16|(255&t.charCodeAt(++a))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:i^=(255&t.charCodeAt(a+2))<<16;case 2:i^=(255&t.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(a)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}t.exports=e})),is=rs,as=rs,os=ns;is.murmur3=as,is.murmur2=os;var ss=function(){this.ids=[],this.positions=[],this.indexed=!1};ss.prototype.add=function(t,e,r,n){this.ids.push(cs(t)),this.positions.push(e,r,n)},ss.prototype.getPositions=function(t){for(var e=cs(t),r=0,n=this.ids.length-1;r<n;){var i=r+n>>1;this.ids[i]>=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},ss.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return us(r,n,0,r.length-1),e&&e.push(r.buffer,n.buffer),{ids:r,positions:n}},ss.deserialize=function(t){var e=new ss;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ls=Math.pow(2,53)-1;function cs(t){var e=+t;return!isNaN(e)&&e<=ls?e:is(String(t))}function us(t,e,r,n){for(;r<n;){for(var i=t[r+n>>1],a=r-1,o=n+1;;){do{a++}while(t[a]<i);do{o--}while(t[o]>i);if(a>=o)break;fs(t,a,o),fs(e,3*a,3*o),fs(e,3*a+1,3*o+1),fs(e,3*a+2,3*o+2)}o-r<n-o?(us(t,e,r,o),r=o+1):(us(t,e,o+1,n),n=o)}}function fs(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}ga("FeaturePositionMap",ss);var ps=function(t,e){this.gl=t.gl,this.location=e},ds=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},e}(ps),hs=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},e}(ps),gs=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ps),ms=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ps),vs=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ps),ys=function(t){function e(e,r){t.call(this,e,r),this.current=Re.transparent}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ps),bs=new Float32Array(16),xs=function(t){function e(e,r){t.call(this,e,r),this.current=bs}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ps);function _s(t){return[ts(255*t.r,255*t.g),ts(255*t.b,255*t.a)]}var ws=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return"u_"+t})),this.type=r};ws.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},ws.prototype.getBinding=function(t,e,r){return"color"===this.type?new ys(t,e):new hs(t,e)};var ks=function(t,e){this.uniformNames=e.map((function(t){return"u_"+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};ks.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},ks.prototype.setUniform=function(t,e,r,n){var i="u_pattern_to"===n?this.patternTo:"u_pattern_from"===n?this.patternFrom:"u_pixel_ratio_to"===n?this.pixelRatioTo:"u_pixel_ratio_from"===n?this.pixelRatioFrom:null;i&&t.set(i)},ks.prototype.getBinding=function(t,e,r){return"u_pattern"===r.substr(0,9)?new vs(t,e):new hs(t,e)};var Ts=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?2:1,offset:0}})),this.paintVertexArray=new n};Ts.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new Xa(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Ts.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Ts.prototype._setPaintValue=function(t,e,r){if("color"===this.type)for(var n=_s(r),i=t;i<e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a<e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Ts.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ts.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var Ms=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return"u_"+t+"_t"})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?4:2,offset:0}})),this.paintVertexArray=new a};Ms.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new Xa(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new Xa(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ms.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ms.prototype._setPaintValue=function(t,e,r,n){if("color"===this.type)for(var i=_s(r),a=_s(n),o=t;o<e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s<e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ms.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ms.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Ms.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=f(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ms.prototype.getBinding=function(t,e,r){return new hs(t,e)};var As=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};As.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&&e.patterns[this.layerId],r)},As.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&&r.patterns[this.layerId],i)},As.prototype._setPaintValues=function(t,e,r,n){if(n&&r){var i=r.min,a=r.mid,o=r.max,s=n[i],l=n[a],c=n[o];if(s&&l&&c)for(var u=t;u<e;u++)this.zoomInPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1],l.pixelRatio,c.pixelRatio)}},As.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,es.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,es.members,this.expression.isStateDependent))},As.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var Ss=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof eo&&Kn(o.property.specification)){var s=Cs(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification["property-type"],p="cross-faded"===f||"cross-faded-data-driven"===f;if("constant"===l.kind)this.binders[a]=p?new ks(l.value,s):new ws(l.value,s,c),i.push("/u_"+a);else if("source"===l.kind||p){var d=Ls(a,c,"source");this.binders[a]=p?new As(l,c,u,e,d,t.id):new Ts(l,s,c,d),i.push("/a_"+a)}else{var h=Ls(a,c,"composite");this.binders[a]=new Ms(l,s,c,u,e,h),i.push("/z_"+a)}}}this.cacheKey=i.sort().join("")};Ss.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Ts||e instanceof Ms?e.maxValue:0},Ss.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Ts||o instanceof Ms||o instanceof As)&&o.populatePaintArray(t,e,r,n,i)}},Ss.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof ks&&n.setConstantPatternPositions(t,e)}},Ss.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s<l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var p=this.binders[f];if((p instanceof Ts||p instanceof Ms||p instanceof As)&&!0===p.expression.isStateDependent){var d=n.paint.get(f);p.expression=d.value,p.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},Ss.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof ws||r instanceof ks)&&t.push.apply(t,r.uniformNames.map((function(t){return"#define HAS_UNIFORM_"+t})))}return t},Ss.prototype.getPaintVertexBuffers=function(){return this._buffers},Ss.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof ws||i instanceof ks||i instanceof Ms)for(var a=0,o=i.uniformNames;a<o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},Ss.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i<a.length;i+=1){var o=a[i],s=o.name,l=o.property,c=o.binding;this.binders[l].setUniform(c,n,r.get(l),s)}},Ss.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&&r instanceof As){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&&this._buffers.push(n)}else(r instanceof Ts||r instanceof Ms)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}},Ss.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Ts||r instanceof Ms||r instanceof As)&&r.upload(t)}this.updatePaintBuffers()},Ss.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Ts||e instanceof Ms||e instanceof As)&&e.destroy()}};var Es=function(t,e,r,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i<a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new Ss(o,r,n,t)}this.needsUpload=!1,this._featureMap=new ss,this._bufferOffset=0};function Cs(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function Os(t){return{"line-pattern":{source:To,composite:To},"fill-pattern":{source:To,composite:To},"fill-extrusion-pattern":{source:To,composite:To}}[t]}function Ls(t,e,r){var n={color:{source:jo,composite:Uo},number:{source:Ro,composite:jo}},i=Os(t);return i&&i[r]||n[e][r]}Es.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Es.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i<a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Es.prototype.get=function(t){return this.programConfigurations[t]},Es.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Es.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},ga("ConstantBinder",ws),ga("CrossFadedConstantBinder",ks),ga("SourceExpressionBinder",Ts),ga("CrossFadedCompositeBinder",As),ga("CompositeExpressionBinder",Ms),ga("ProgramConfiguration",Ss,{omit:["_buffers"]}),ga("ProgramConfigurationSet",Es);var Is=8192;function Ps(t){return{min:-1*Math.pow(2,t-1),max:Math.pow(2,t-1)-1}}var Ds=Ps(15);function Rs(t){for(var e=Is/t.extent,r=t.loadGeometry(),n=0;n<r.length;n++)for(var i=r[n],a=0;a<i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x<Ds.min||o.x>Ds.max||o.y<Ds.min||o.y>Ds.max)&&(C("Geometry exceeds allowed extent, reduce your vector tile buffer size"),o.x=f(o.x,Ds.min,Ds.max),o.y=f(o.y,Ds.min,Ds.max))}return r}function zs(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Ns=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new xo,this.indexArray=new Io,this.segments=new Qo,this.programConfigurations=new Es($o,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Fs(t,e){for(var r=0;r<t.length;r++)if(Xs(e,t[r]))return!0;for(var n=0;n<e.length;n++)if(Xs(t,e[n]))return!0;return!!Hs(t,e)}function Bs(t,e,r){return!!Xs(t,e)||!!Gs(e,t,r)}function js(t,e){if(1===t.length)return Ys(e,t[0]);for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;i++)if(Xs(t,n[i]))return!0;for(var a=0;a<t.length;a++)if(Ys(e,t[a]))return!0;for(var o=0;o<e.length;o++)if(Hs(t,e[o]))return!0;return!1}function Us(t,e,r){for(var n=0;n<e.length;n++){var i=e[n];if(t.length>=3)for(var a=0;a<i.length;a++)if(Xs(t,i[a]))return!0;if(Vs(t,i,r))return!0}return!1}function Vs(t,e,r){if(t.length>1){if(Hs(t,e))return!0;for(var n=0;n<e.length;n++)if(Gs(e[n],t,r))return!0}for(var i=0;i<t.length;i++)if(Gs(t[i],e,r))return!0;return!1}function Hs(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r<t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a<e.length-1;a++)if(qs(n,i,e[a],e[a+1]))return!0;return!1}function qs(t,e,r,n){return O(t,r,n)!==O(e,r,n)&&O(t,e,r)!==O(t,e,n)}function Gs(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(var i=1;i<e.length;i++)if(Ws(t,e[i-1],e[i])<n)return!0;return!1}function Ws(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i<0?t.distSqr(e):i>1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function Ys(t,e){for(var r,n,i,a=!1,o=0;o<t.length;o++)for(var s=0,l=(r=t[o]).length-1;s<r.length;l=s++)n=r[s],i=r[l],n.y>e.y!==i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a);return a}function Xs(t,e){for(var r=!1,n=0,i=t.length-1;n<t.length;i=n++){var a=t[n],o=t[i];a.y>e.y!==o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function Zs(t,e,r,n,i){for(var o=0,s=t;o<s.length;o+=1){var l=s[o];if(e<=l.x&&r<=l.y&&n>=l.x&&i>=l.y)return!0}var c=[new a(e,r),new a(e,i),new a(n,i),new a(n,r)];if(t.length>2)for(var u=0,f=c;u<f.length;u+=1)if(Xs(t,f[u]))return!0;for(var p=0;p<t.length-1;p++)if(Ks(t[p],t[p+1],c))return!0;return!1}function Ks(t,e,r){var n=r[0],i=r[2];if(t.x<n.x&&e.x<n.x||t.x>i.x&&e.x>i.x||t.y<n.y&&e.y<n.y||t.y>i.y&&e.y>i.y)return!1;var a=O(t,e,r[0]);return a!==O(t,e,r[1])||a!==O(t,e,r[2])||a!==O(t,e,r[3])}function Js(t,e,r){var n=e.paint.get(t).value;return"constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function $s(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Qs(t,e,r,n,i){if(!e[0]&&!e[1])return t;var o=a.convert(e)._mult(i);"viewport"===r&&o._rotate(-n);for(var s=[],l=0;l<t.length;l++){var c=t[l];s.push(c.sub(o))}return s}Ns.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;"circle"===n.type&&(a=n.layout.get("circle-sort-key"));for(var o=0,s=t;o<s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,p=l.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,h={type:c.type,id:u,properties:c.properties,geometry:d?Rs(c):[]};if(this.layers[0]._featureFilter.filter(new Xa(this.zoom),h,r)){d||(h.geometry=Rs(c));var g=a?a.evaluate(h,{},r):void 0,m={id:u,properties:c.properties,type:c.type,sourceLayerIndex:p,index:f,geometry:h.geometry,patterns:{},sortKey:g};i.push(m)}}a&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,y=i;v<y.length;v+=1){var b=y[v],x=b,_=x.geometry,w=x.index,k=x.sourceLayerIndex,T=t[w].feature;this.addFeature(b,_,w,r),e.featureIndex.insert(T,_,w,k,this.index)}},Ns.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Ns.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ns.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ns.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,$o),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ns.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ns.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i<a.length;i+=1)for(var o=0,s=a[i];o<s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c<0||c>=Is||u<0||u>=Is)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),p=f.vertexLength;zs(this.layoutVertexArray,c,u,-1,-1),zs(this.layoutVertexArray,c,u,1,-1),zs(this.layoutVertexArray,c,u,1,1),zs(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},ga("CircleBucket",Ns,{omit:["layers"]});var tl=new lo({"circle-sort-key":new io(le.layout_circle["circle-sort-key"])}),el={paint:new lo({"circle-radius":new io(le.paint_circle["circle-radius"]),"circle-color":new io(le.paint_circle["circle-color"]),"circle-blur":new io(le.paint_circle["circle-blur"]),"circle-opacity":new io(le.paint_circle["circle-opacity"]),"circle-translate":new no(le.paint_circle["circle-translate"]),"circle-translate-anchor":new no(le.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new no(le.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new no(le.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new io(le.paint_circle["circle-stroke-width"]),"circle-stroke-color":new io(le.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new io(le.paint_circle["circle-stroke-opacity"])}),layout:tl},rl="undefined"!==typeof Float32Array?Float32Array:Array;function nl(){var t=new rl(4);return rl!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function il(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t}function al(){var t=new rl(9);return rl!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function ol(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function sl(){var t=new rl(16);return rl!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function ll(t){var e=new rl(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function cl(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ul(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],p=e[10],d=e[11],h=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,b=r*l-i*o,x=r*c-a*o,_=n*l-i*s,w=n*c-a*s,k=i*c-a*l,T=u*g-f*h,M=u*m-p*h,A=u*v-d*h,S=f*m-p*g,E=f*v-d*g,C=p*v-d*m,O=y*C-b*E+x*S+_*A-w*M+k*T;return O?(O=1/O,t[0]=(s*C-l*E+c*S)*O,t[1]=(i*E-n*C-a*S)*O,t[2]=(g*k-m*w+v*_)*O,t[3]=(p*w-f*k-d*_)*O,t[4]=(l*A-o*C-c*M)*O,t[5]=(r*C-i*A+a*M)*O,t[6]=(m*x-h*k-v*b)*O,t[7]=(u*k-p*x+d*b)*O,t[8]=(o*E-s*A+c*T)*O,t[9]=(n*A-r*E-a*T)*O,t[10]=(h*w-g*x+v*y)*O,t[11]=(f*x-u*w-d*y)*O,t[12]=(s*M-o*S-l*T)*O,t[13]=(r*S-n*M+i*T)*O,t[14]=(g*b-h*_-m*y)*O,t[15]=(u*_-f*b+p*y)*O,t):null}function fl(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],p=e[9],d=e[10],h=e[11],g=e[12],m=e[13],v=e[14],y=e[15],b=r[0],x=r[1],_=r[2],w=r[3];return t[0]=b*n+x*s+_*f+w*g,t[1]=b*i+x*l+_*p+w*m,t[2]=b*a+x*c+_*d+w*v,t[3]=b*o+x*u+_*h+w*y,b=r[4],x=r[5],_=r[6],w=r[7],t[4]=b*n+x*s+_*f+w*g,t[5]=b*i+x*l+_*p+w*m,t[6]=b*a+x*c+_*d+w*v,t[7]=b*o+x*u+_*h+w*y,b=r[8],x=r[9],_=r[10],w=r[11],t[8]=b*n+x*s+_*f+w*g,t[9]=b*i+x*l+_*p+w*m,t[10]=b*a+x*c+_*d+w*v,t[11]=b*o+x*u+_*h+w*y,b=r[12],x=r[13],_=r[14],w=r[15],t[12]=b*n+x*s+_*f+w*g,t[13]=b*i+x*l+_*p+w*m,t[14]=b*a+x*c+_*d+w*v,t[15]=b*o+x*u+_*h+w*y,t}function pl(t,e,r){var n,i,a,o,s,l,c,u,f,p,d,h,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],p=e[9],d=e[10],h=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=p,t[10]=d,t[11]=h,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+p*v+e[13],t[14]=a*g+c*m+d*v+e[14],t[15]=o*g+u*m+h*v+e[15]),t}function dl(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function hl(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+p*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=p*i-l*n,t}function gl(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+p*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=p*i-l*n,t}function ml(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(n-i),t[10]=(i+n)*a,t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t}function vl(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var yl=fl;function bl(){var t=new rl(3);return rl!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function xl(t){var e=new rl(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function _l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function wl(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function kl(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function Tl(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function Ml(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Al(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}function Sl(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}var El=wl;function Cl(){var t=new rl(4);return rl!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Ol(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function Ll(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Il(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}function Pl(){var t=new rl(2);return rl!=Float32Array&&(t[0]=0,t[1]=0),t}function Dl(t){var e=t[0],r=t[1];return e*e+r*r}bl(),Cl();var Rl=Dl,zl=(Pl(),function(t){function e(e){t.call(this,e,el)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Ns(t)},e.prototype.queryRadius=function(t){var e=t;return Js("circle-radius",this,e)+Js("circle-stroke-width",this,e)+$s(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Qs(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),a.angle,o),c=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),u="map"===this.paint.get("circle-pitch-alignment"),f=u?l:Fl(l,s),p=u?c*o:c,d=0,h=n;d<h.length;d+=1)for(var g=0,m=h[d];g<m.length;g+=1){var v=m[g],y=u?v:Nl(v,s),b=p,x=Il([],[v.x,v.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?b*=x[3]/a.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(b*=a.cameraToCenterDistance/x[3]),Bs(f,y,b))return!0}return!1},e}(uo));function Nl(t,e){var r=Il([],[t.x,t.y,0,1],e);return new a(r[0]/r[3],r[1]/r[3])}function Fl(t,e){return t.map((function(t){return Nl(t,e)}))}var Bl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ns);function jl(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError("mismatched image size")}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function Ul(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=jl({},{width:n,height:i},r);Vl(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function Vl(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var o=t.data,s=e.data,l=0;l<i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f<i.width*a;f++)s[u+f]=o[c+f];return e}ga("HeatmapBucket",Bl,{omit:["layers"]});var Hl=function(t,e){jl(this,t,1,e)};Hl.prototype.resize=function(t){Ul(this,t,1)},Hl.prototype.clone=function(){return new Hl({width:this.width,height:this.height},new Uint8Array(this.data))},Hl.copy=function(t,e,r,n,i){Vl(t,e,r,n,i,1)};var ql=function(t,e){jl(this,t,4,e)};ql.prototype.resize=function(t){Ul(this,t,4)},ql.prototype.replace=function(t,e){e?this.data.set(t):t instanceof Uint8ClampedArray?this.data=new Uint8Array(t.buffer):this.data=t},ql.prototype.clone=function(){return new ql({width:this.width,height:this.height},new Uint8Array(this.data))},ql.copy=function(t,e,r,n,i){Vl(t,e,r,n,i,4)},ga("AlphaImage",Hl),ga("RGBAImage",ql);var Gl={paint:new lo({"heatmap-radius":new io(le.paint_heatmap["heatmap-radius"]),"heatmap-weight":new io(le.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new no(le.paint_heatmap["heatmap-intensity"]),"heatmap-color":new so(le.paint_heatmap["heatmap-color"]),"heatmap-opacity":new no(le.paint_heatmap["heatmap-opacity"])})};function Wl(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i<256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new ql({width:256,height:1},r)}var Yl=function(t){function e(e){t.call(this,e,Gl),this._updateColorRamp()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Bl(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=Wl(t,"heatmapDensity"),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},e}(uo),Xl={paint:new lo({"hillshade-illumination-direction":new no(le.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new no(le.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new no(le.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new no(le.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new no(le.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new no(le.paint_hillshade["hillshade-accent-color"])})},Zl=function(t){function e(e){t.call(this,e,Xl)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},e}(uo),Kl=vo([{name:"a_pos",components:2,type:"Int16"}],4).members,Jl=Ql,$l=Ql;function Ql(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&&e.length,f=u?e[0]*r:t.length,p=tc(t,0,f,r,!0),d=[];if(!p||p.next===p.prev)return d;if(u&&(p=sc(t,e,p,r)),t.length>80*r){n=a=t[0],i=o=t[1];for(var h=r;h<f;h+=r)(s=t[h])<n&&(n=s),(l=t[h+1])<i&&(i=l),s>a&&(a=s),l>o&&(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return rc(p,d,r,n,i,c),d}function tc(t,e,r,n,i){var a,o;if(i===Oc(t,e,r,n)>0)for(a=e;a<r;a+=n)o=Sc(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=Sc(a,t[a],t[a+1],o);return o&&bc(o,o.next)&&(Ec(o),o=o.next),o}function ec(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!bc(n,n.next)&&0!==yc(n.prev,n,n.next))n=n.next;else{if(Ec(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function rc(t,e,r,n,i,a,o){if(t){!o&&a&&pc(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?ic(t,n,i,a):nc(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Ec(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?rc(t=ac(ec(t),e,r),e,r,n,i,a,2):2===o&&oc(t,e,r,n,i,a):rc(ec(t),e,r,n,i,a,1);break}}}function nc(t){var e=t.prev,r=t,n=t.next;if(yc(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(mc(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&yc(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function ic(t,e,r,n){var i=t.prev,a=t,o=t.next;if(yc(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=hc(s,l,e,r,n),p=hc(c,u,e,r,n),d=t.prevZ,h=t.nextZ;d&&d.z>=f&&h&&h.z<=p;){if(d!==t.prev&&d!==t.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&yc(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,h!==t.prev&&h!==t.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&yc(h.prev,h,h.next)>=0)return!1;h=h.nextZ}for(;d&&d.z>=f;){if(d!==t.prev&&d!==t.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&yc(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;h&&h.z<=p;){if(h!==t.prev&&h!==t.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&yc(h.prev,h,h.next)>=0)return!1;h=h.nextZ}return!0}function ac(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!bc(i,a)&&xc(i,n,n.next,a)&&Tc(i,a)&&Tc(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Ec(n),Ec(n.next),n=t=a),n=n.next}while(n!==t);return ec(n)}function oc(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&vc(o,s)){var l=Ac(o,s);return o=ec(o,o.next),l=ec(l,l.next),rc(o,e,r,n,i,a),void rc(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function sc(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i<a;i++)(o=tc(t,e[i]*n,i<a-1?e[i+1]*n:t.length,n,!1))===o.next&&(o.steiner=!0),s.push(gc(o));for(s.sort(lc),i=0;i<s.length;i++)cc(s[i],r),r=ec(r,r.next);return r}function lc(t,e){return t.x-e.x}function cc(t,e){if(e=uc(t,e)){var r=Ac(e,t);ec(e,e.next),ec(r,r.next)}}function uc(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,p=1/0;n=r;do{i>=n.x&&n.x>=u&&i!==n.x&&mc(a<f?i:o,a,u,f,a<f?o:i,a,n.x,n.y)&&(l=Math.abs(a-n.y)/(i-n.x),Tc(n,t)&&(l<p||l===p&&(n.x>r.x||n.x===r.x&&fc(r,n)))&&(r=n,p=l)),n=n.next}while(n!==c);return r}function fc(t,e){return yc(t.prev,t,e.prev)<0&&yc(e.next,t,t.next)<0}function pc(t,e,r,n){var i=t;do{null===i.z&&(i.z=hc(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,dc(i)}function dc(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1);return t}function hc(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function gc(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function mc(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function vc(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!kc(t,e)&&(Tc(t,e)&&Tc(e,t)&&Mc(t,e)&&(yc(t.prev,t,e.prev)||yc(t,e.prev,e))||bc(t,e)&&yc(t.prev,t,t.next)>0&&yc(e.prev,e,e.next)>0)}function yc(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function bc(t,e){return t.x===e.x&&t.y===e.y}function xc(t,e,r,n){var i=wc(yc(t,e,r)),a=wc(yc(t,e,n)),o=wc(yc(r,n,t)),s=wc(yc(r,n,e));return i!==a&&o!==s||!(0!==i||!_c(t,r,e))||!(0!==a||!_c(t,n,e))||!(0!==o||!_c(r,t,n))||!(0!==s||!_c(r,e,n))}function _c(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function wc(t){return t>0?1:t<0?-1:0}function kc(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&xc(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function Tc(t,e){return yc(t.prev,t,t.next)<0?yc(t,e,t.next)>=0&&yc(t,t.prev,e)>=0:yc(t,e,t.prev)<0||yc(t,t.next,e)<0}function Mc(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!==r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}function Ac(t,e){var r=new Cc(t.i,t.x,t.y),n=new Cc(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Sc(t,e,r,n){var i=new Cc(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ec(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Cc(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Oc(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Lc(t,e,r,n,i){Ic(t,e,r||0,n||t.length-1,i||Dc)}function Ic(t,e,r,n,i){for(;n>r;){if(n-r>600){var a=n-r+1,o=e-r+1,s=Math.log(a),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(a-l)/a)*(o-a/2<0?-1:1);Ic(t,e,Math.max(r,Math.floor(e-o*l/a+c)),Math.min(n,Math.floor(e+(a-o)*l/a+c)),i)}var u=t[e],f=r,p=n;for(Pc(t,r,e),i(t[n],u)>0&&Pc(t,r,n);f<p;){for(Pc(t,f,p),f++,p--;i(t[f],u)<0;)f++;for(;i(t[p],u)>0;)p--}0===i(t[r],u)?Pc(t,r,p):Pc(t,++p,n),p<=e&&(r=p+1),e<=p&&(n=p-1)}}function Pc(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Dc(t,e){return t<e?-1:t>e?1:0}function Rc(t,e){var r=t.length;if(r<=1)return[t];for(var n,i,a=[],o=0;o<r;o++){var s=L(t[o]);0!==s&&(t[o].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(n&&a.push(n),n=[t[o]]):n.push(t[o]))}if(n&&a.push(n),e>1)for(var l=0;l<a.length;l++)a[l].length<=e||(Lc(a[l],e,1,a[l].length-1,zc),a[l]=a[l].slice(0,e));return a}function zc(t,e){return e.area-t.area}function Nc(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a<o.length;a+=1){var s=o[a].paint.get(t+"-pattern");s.isConstant()||(i=!0);var l=s.constantOr(null);l&&(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function Fc(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o<s.length;o+=1){var l=s[o],c=l.paint.get(t+"-pattern").value;if("constant"!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),p=c.evaluate({zoom:n+1},r,{},i.availableImages);u=u&&u.name?u.name:u,f=f&&f.name?f.name:f,p=p&&p.name?p.name:p,a[u]=!0,a[f]=!0,a[p]=!0,r.patterns[l.id]={min:u,mid:f,max:p}}}return r}Ql.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(Oc(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var c=e[s]*r,u=s<l-1?e[s+1]*r:t.length;o-=Math.abs(Oc(t,c,u,r))}var f=0;for(s=0;s<n.length;s+=3){var p=n[s]*r,d=n[s+1]*r,h=n[s+2]*r;f+=Math.abs((t[p]-t[h])*(t[d+1]-t[p+1])-(t[p]-t[d])*(t[h+1]-t[p+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},Ql.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r},Jl.default=$l;var Bc=500,jc=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new xo,this.indexArray=new Io,this.indexArray2=new Fo,this.programConfigurations=new Es(Kl,t.layers,t.zoom),this.segments=new Qo,this.segments2=new Qo,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};jc.prototype.populate=function(t,e,r){this.hasPattern=Nc("fill",this.layers,e);for(var n=this.layers[0].layout.get("fill-sort-key"),i=[],a=0,o=t;a<o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:l.type,id:c,properties:l.properties,geometry:p?Rs(l):[]};if(this.layers[0]._featureFilter.filter(new Xa(this.zoom),d,r)){p||(d.geometry=Rs(l));var h=n?n.evaluate(d,{},r,e.availableImages):void 0,g={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:d.geometry,patterns:{},sortKey:h};i.push(g)}}n&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m<v.length;m+=1){var y=v[m],b=y,x=b.geometry,_=b.index,w=b.sourceLayerIndex;if(this.hasPattern){var k=Fc("fill",this.layers,y,this.zoom,e);this.patternFeatures.push(k)}else this.addFeature(y,x,_,r,{});var T=t[_].feature;e.featureIndex.insert(T,x,_,w,this.index)}},jc.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},jc.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n<i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},jc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},jc.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},jc.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Kl),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},jc.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},jc.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Rc(e,Bc);a<o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c<u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),p=f.vertexLength,d=[],h=[],g=0,m=s;g<m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&&h.push(d.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),b=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(b+v.length-1,b),d.push(v[0].x),d.push(v[0].y);for(var x=1;x<v.length;x++)this.layoutVertexArray.emplaceBack(v[x].x,v[x].y),this.indexArray2.emplaceBack(b+x-1,b+x),d.push(v[x].x),d.push(v[x].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=Jl(d,h),w=0;w<_.length;w+=3)this.indexArray.emplaceBack(p+_[w],p+_[w+1],p+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},ga("FillBucket",jc,{omit:["layers","patternFeatures"]});var Uc=new lo({"fill-sort-key":new io(le.layout_fill["fill-sort-key"])}),Vc={paint:new lo({"fill-antialias":new no(le.paint_fill["fill-antialias"]),"fill-opacity":new io(le.paint_fill["fill-opacity"]),"fill-color":new io(le.paint_fill["fill-color"]),"fill-outline-color":new io(le.paint_fill["fill-outline-color"]),"fill-translate":new no(le.paint_fill["fill-translate"]),"fill-translate-anchor":new no(le.paint_fill["fill-translate-anchor"]),"fill-pattern":new ao(le.paint_fill["fill-pattern"])}),layout:Uc},Hc=function(t){function e(e){t.call(this,e,Vc)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new jc(t)},e.prototype.queryRadius=function(){return $s(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return js(Qs(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(uo),qc=vo([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,Gc=Wc;function Wc(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(Yc,this,e)}function Yc(t,e,r){1==t?e.id=r.readVarint():2==t?Xc(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function Xc(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}function Zc(t){var e=t.length;if(e<=1)return[t];for(var r,n,i=[],a=0;a<e;a++){var o=Kc(t[a]);0!==o&&(void 0===n&&(n=o<0),n===o<0?(r&&i.push(r),r=[t[a]]):r.push(t[a]))}return r&&i.push(r),i}function Kc(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],n+=((r=t[o]).x-e.x)*(e.y+r.y);return n}Wc.types=["Unknown","Point","LineString","Polygon"],Wc.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,o=0,s=0,l=[];t.pos<r;){if(i<=0){var c=t.readVarint();n=7&c,i=c>>3}if(i--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&&(e&&l.push(e),e=[]),e.push(new a(o,s));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&l.push(e),l},Wc.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos<e;){if(n<=0){var u=t.readVarint();r=7&u,n=u>>3}if(n--,1===r||2===r)(i+=t.readSVarint())<o&&(o=i),i>s&&(s=i),(a+=t.readSVarint())<l&&(l=a),a>c&&(c=a);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,s,c]},Wc.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=Wc.types[this.type];function u(t){for(var e=0;e<t.length;e++){var r=t[e],n=180-360*(r.y+s)/a;t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n<l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n<l.length;n++)u(l[n]);break;case 3:for(l=Zc(l),n=0;n<l.length;n++)for(i=0;i<l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c="Multi"+c;var p={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var Jc=$c;function $c(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Qc,this,e),this.length=this._features.length}function Qc(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(tu(r))}function tu(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}function eu(t,e){this.layers=t.readFields(ru,{},e)}function ru(t,e,r){if(3===t){var n=new Jc(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}$c.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new Gc(this._pbf,e,this.extent,this._keys,this._values)};var nu={VectorTile:eu,VectorTileFeature:Gc,VectorTileLayer:Jc},iu=nu.VectorTileFeature.types,au=500,ou=Math.pow(2,13);function su(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*ou)+o,i*ou*2,a*ou*2,Math.round(s))}var lu=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new wo,this.indexArray=new Io,this.programConfigurations=new Es(qc,t.layers,t.zoom),this.segments=new Qo,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function cu(t,e){return t.x===e.x&&(t.x<0||t.x>Is)||t.y===e.y&&(t.y<0||t.y>Is)}function uu(t){return t.every((function(t){return t.x<0}))||t.every((function(t){return t.x>Is}))||t.every((function(t){return t.y<0}))||t.every((function(t){return t.y>Is}))}lu.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=Nc("fill-extrusion",this.layers,e);for(var n=0,i=t;n<i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Rs(o):[]};if(this.layers[0]._featureFilter.filter(new Xa(this.zoom),f,r)){var p={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Rs(o),properties:o.properties,type:o.type,patterns:{}};"undefined"!==typeof o.id&&(p.id=o.id),this.hasPattern?this.features.push(Fc("fill-extrusion",this.layers,p,this.zoom,e)):this.addFeature(p,p.geometry,l,r,{}),e.featureIndex.insert(o,p.geometry,l,c,this.index,!0)}}},lu.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n<i.length;n+=1){var a=i[n],o=a.geometry;this.addFeature(a,o,a.index,e,r)}},lu.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},lu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},lu.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},lu.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,qc),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},lu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},lu.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Rc(e,au);a<o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c<u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,d=s;p<d.length;p+=1){var h=d[p];if(0!==h.length&&!uu(h))for(var g=0,m=0;m<h.length;m++){var v=h[m];if(m>=1){var y=h[m-1];if(!cu(v,y)){f.vertexLength+4>Qo.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=v.sub(y)._perp()._unit(),x=y.dist(v);g+x>32768&&(g=0),su(this.layoutVertexArray,v.x,v.y,b.x,b.y,0,0,g),su(this.layoutVertexArray,v.x,v.y,b.x,b.y,0,1,g),g+=x,su(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,g),su(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l>Qo.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===iu[t.type]){for(var w=[],k=[],T=f.vertexLength,M=0,A=s;M<A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&&k.push(w.length/2);for(var E=0;E<S.length;E++){var C=S[E];su(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var O=Jl(w,k),L=0;L<O.length;L+=3)this.indexArray.emplaceBack(T+O[L],T+O[L+2],T+O[L+1]);f.primitiveLength+=O.length/3,f.vertexLength+=l}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},ga("FillExtrusionBucket",lu,{omit:["layers","features"]});var fu={paint:new lo({"fill-extrusion-opacity":new no(le["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new io(le["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new no(le["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new no(le["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ao(le["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new io(le["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new io(le["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new no(le["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},pu=function(t){function e(e){t.call(this,e,fu)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new lu(t)},e.prototype.queryRadius=function(){return $s(this.paint.get("fill-extrusion-translate"))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){var l=Qs(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,o),c=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),f=vu(l,s,a,0),p=mu(n,u,c,s);return gu(p[0],p[1],f)},e}(uo);function du(t,e){return t.x*e.x+t.y*e.y}function hu(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n<e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=du(s,s),f=du(s,l),p=du(l,l),d=du(c,s),h=du(c,l),g=u*p-f*f,m=(p*d-f*h)/g,v=(u*h-f*d)/g,y=1-m-v,b=i.z*y+r.z*m+a.z*v;if(isFinite(b))return b}return 1/0}for(var x=1/0,_=0,w=e;_<w.length;_+=1){var k=w[_];x=Math.min(x,k.z)}return x}function gu(t,e,r){var n=1/0;js(r,e)&&(n=hu(r,e[0]));for(var i=0;i<e.length;i++)for(var a=e[i],o=t[i],s=0;s<a.length-1;s++){var l=a[s],c=a[s+1],u=o[s],f=[l,c,o[s+1],u,l];Fs(r,f)&&(n=Math.min(n,hu(r,f)))}return n!==1/0&&n}function mu(t,e,r,n){for(var i=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,p=n[9]*r,d=n[10]*r,h=n[11]*r,g=0,m=t;g<m.length;g+=1){for(var v=[],y=[],b=0,x=m[g];b<x.length;b+=1){var _=x[b],w=_.x,k=_.y,T=n[0]*w+n[4]*k+n[12],M=n[1]*w+n[5]*k+n[13],A=n[2]*w+n[6]*k+n[14],S=n[3]*w+n[7]*k+n[15],E=A+c,C=S+u,O=T+f,L=M+p,I=A+d,P=S+h,D=new a((T+s)/C,(M+l)/C);D.z=E/C,v.push(D);var R=new a(O/P,L/P);R.z=I/P,y.push(R)}i.push(v),o.push(y)}return[i,o]}function vu(t,e,r,n){for(var i=[],o=0,s=t;o<s.length;o+=1){var l=s[o],c=[l.x,l.y,n,1];Il(c,c,e),i.push(new a(c[0]/c[3],c[1]/c[3]))}return i}var yu=vo([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,bu=nu.VectorTileFeature.types,xu=63,_u=Math.cos(Math.PI/180*37.5),wu=15,ku=20,Tu=15,Mu=.5,Au=Math.pow(2,Tu-1)/Mu,Su=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ko,this.indexArray=new Io,this.programConfigurations=new Es(yu,t.layers,t.zoom),this.segments=new Qo,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Su.prototype.populate=function(t,e,r){this.hasPattern=Nc("line",this.layers,e);for(var n=this.layers[0].layout.get("line-sort-key"),i=[],a=0,o=t;a<o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:l.type,id:c,properties:l.properties,geometry:p?Rs(l):[]};if(this.layers[0]._featureFilter.filter(new Xa(this.zoom),d,r)){p||(d.geometry=Rs(l));var h=n?n.evaluate(d,{},r):void 0,g={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:d.geometry,patterns:{},sortKey:h};i.push(g)}}n&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m<v.length;m+=1){var y=v[m],b=y,x=b.geometry,_=b.index,w=b.sourceLayerIndex;if(this.hasPattern){var k=Fc("line",this.layers,y,this.zoom,e);this.patternFeatures.push(k)}else this.addFeature(y,x,_,r,{});var T=t[_].feature;e.featureIndex.insert(T,x,_,w,this.index)}},Su.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Su.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n<i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Su.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Su.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Su.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,yu),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Su.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Su.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get("line-join").evaluate(t,{}),s=a.get("line-cap"),l=a.get("line-miter-limit"),c=a.get("line-round-limit"),u=0,f=e;u<f.length;u+=1){var p=f[u];this.addLine(p,t,o,s,l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Su.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o<t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s="Polygon"===bu[e.type],l=t.length;l>=2&&t[l-1].equals(t[l-2]);)l--;for(var c=0;c<l-1&&t[c].equals(t[c+1]);)c++;if(!(l<(s?3:2))){"bevel"===r&&(i=1.05);var u,f=this.overscaling<=16?wu*Is/(512*this.overscaling):0,p=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),d=void 0,h=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&&(u=t[l-2],m=t[c].sub(u)._unit()._perp());for(var v=c;v<l;v++)if(!(h=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(h)){m&&(g=m),u&&(d=u),u=t[v],m=h?h.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&&0===y.y||y._unit();var b=g.x*m.x+g.y*m.y,x=y.x*m.x+y.y*m.y,_=0!==x?1/x:1/0,w=2*Math.sqrt(2-2*x),k=x<_u&&d&&h,T=g.x*m.y-g.y*m.x>0;if(k&&v>c){var M=u.dist(d);if(M>2*f){var A=u.sub(u.sub(d)._mult(f/M)._round());this.updateDistance(d,A),this.addCurrentVertex(A,g,0,0,p),d=A}}var S=d&&h,E=S?r:s?"butt":n;if(S&&"round"===E&&(_<a?E="miter":_<=2&&(E="fakeround")),"miter"===E&&_>i&&(E="bevel"),"bevel"===E&&(_>2&&(E="flipbevel"),_<i&&(E="miter")),d&&this.updateDistance(d,u),"miter"===E)y._mult(_),this.addCurrentVertex(u,y,0,0,p);else if("flipbevel"===E){if(_>100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(T?-1:1))}this.addCurrentVertex(u,y,0,0,p),this.addCurrentVertex(u,y.mult(-1),0,0,p)}else if("bevel"===E||"fakeround"===E){var O=-Math.sqrt(_*_-1),L=T?O:0,I=T?0:O;if(d&&this.addCurrentVertex(u,g,L,I,p),"fakeround"===E)for(var P=Math.round(180*w/Math.PI/ku),D=1;D<P;D++){var R=D/P;if(.5!==R){var z=R-.5;R+=R*z*(R-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*z*z+(.848013+b*(.215638*b-1.06021)))}var N=m.sub(g)._mult(R)._add(g)._unit()._mult(T?-1:1);this.addHalfVertex(u,N.x,N.y,!1,T,0,p)}h&&this.addCurrentVertex(u,m,-L,-I,p)}else if("butt"===E)this.addCurrentVertex(u,y,0,0,p);else if("square"===E){var F=d?1:-1;this.addCurrentVertex(u,y,F,F,p)}else"round"===E&&(d&&(this.addCurrentVertex(u,g,0,0,p),this.addCurrentVertex(u,g,1,1,p,!0)),h&&(this.addCurrentVertex(u,m,-1,-1,p,!0),this.addCurrentVertex(u,m,0,0,p)));if(k&&v<l-1){var B=u.dist(h);if(B>2*f){var j=u.add(h.sub(u)._mult(f/B)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,p),u=j}}}}},Su.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&&(a=!1);var o=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*n,c=-e.y-e.x*n;this.addHalfVertex(t,o,s,a,!1,r,i),this.addHalfVertex(t,l,c,a,!0,-n,i),this.distance>Au/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Su.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=t.x,l=t.y,c=this.scaledDistance*Mu;this.layoutVertexArray.emplaceBack((s<<1)+(n?1:0),(l<<1)+(i?1:0),Math.round(xu*e)+128,Math.round(xu*r)+128,1+(0===a?0:a<0?-1:1)|(63&c)<<2,c>>6);var u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),i?this.e2=u:this.e1=u},Su.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Au-1):this.distance},Su.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},ga("LineBucket",Su,{omit:["layers","patternFeatures"]});var Eu=new lo({"line-cap":new no(le.layout_line["line-cap"]),"line-join":new io(le.layout_line["line-join"]),"line-miter-limit":new no(le.layout_line["line-miter-limit"]),"line-round-limit":new no(le.layout_line["line-round-limit"]),"line-sort-key":new io(le.layout_line["line-sort-key"])}),Cu={paint:new lo({"line-opacity":new io(le.paint_line["line-opacity"]),"line-color":new io(le.paint_line["line-color"]),"line-translate":new no(le.paint_line["line-translate"]),"line-translate-anchor":new no(le.paint_line["line-translate-anchor"]),"line-width":new io(le.paint_line["line-width"]),"line-gap-width":new io(le.paint_line["line-gap-width"]),"line-offset":new io(le.paint_line["line-offset"]),"line-blur":new io(le.paint_line["line-blur"]),"line-dasharray":new oo(le.paint_line["line-dasharray"]),"line-pattern":new ao(le.paint_line["line-pattern"]),"line-gradient":new so(le.paint_line["line-gradient"])}),layout:Eu},Ou=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new Xa(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=m({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(io),Lu=new Ou(Cu.paint.properties["line-width"].specification);Lu.useIntegerZoom=!0;var Iu=function(t){function e(e){t.call(this,e,Cu)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Wl(t,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values["line-floorwidth"]=Lu.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Su(t)},e.prototype.queryRadius=function(t){var e=t,r=Pu(Js("line-width",this,e),Js("line-gap-width",this,e)),n=Js("line-offset",this,e);return r/2+Math.abs(n)+$s(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){var s=Qs(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,o),l=o/2*Pu(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),c=this.paint.get("line-offset").evaluate(e,r);return c&&(n=Du(n,c*o)),Us(s,n,l)},e.prototype.isTileClipped=function(){return!0},e}(uo);function Pu(t,e){return e>0?e+2*t:t}function Du(t,e){for(var r=[],n=new a(0,0),i=0;i<t.length;i++){for(var o=t[i],s=[],l=0;l<o.length;l++){var c=o[l-1],u=o[l],f=o[l+1],p=0===l?n:u.sub(c)._unit()._perp(),d=l===o.length-1?n:f.sub(u)._unit()._perp(),h=p._add(d)._unit(),g=h.x*d.x+h.y*d.y;h._mult(1/g),s.push(h._mult(e)._add(u))}r.push(s)}return r}var Ru=vo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),zu=vo([{name:"a_projected_pos",components:3,type:"Float32"}],4),Nu=(vo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),vo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Fu=(vo([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),vo([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Bu=vo([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ju(t,e,r){var n=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),Wa.applyArabicShaping&&(t=Wa.applyArabicShaping(t)),t}function Uu(t,e,r){return t.sections.forEach((function(t){t.text=ju(t.text,e,r)})),t}function Vu(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+":"+n.x+":"+n.y}for(var c=0;c<t.length;c++){var u=t[c],f=u.geometry,p=u.text?u.text.toString():null;if(p){var d=l(p,f),h=l(p,f,!0);if(d in r&&h in e&&r[d]!==e[h]){var g=s(d,h,f),m=o(d,h,n[g].geometry);delete e[d],delete r[h],r[l(p,n[m].geometry,!0)]=m,n[g].geometry=null}else d in r?o(d,h,f):h in e?s(d,h,f):(a(c),e[d]=i-1,r[h]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}vo([{name:"triangle",components:3,type:"Uint16"}]),vo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),vo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),vo([{type:"Float32",name:"offsetX"}]),vo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Hu={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};function qu(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;n&&Ca(n)&&!Hu[t[r+1]]||i&&Ca(i)&&!Hu[t[r-1]]||!Hu[t[r]]?e+=t[r]:e+=Hu[t[r]]}return e}var Gu=24,Wu={read:function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,p=r?-1:1,d=t[e+f];for(f+=p,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=c}return(d?-1:1)*o*Math.pow(2,a-n)},write:function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,h=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=h,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+d]=255&o,d+=h,o/=256,c-=8);t[r+d-h]|=128*g}},Yu=Xu;function Xu(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Xu.Varint=0,Xu.Fixed64=1,Xu.Bytes=2,Xu.Fixed32=5;var Zu=4294967296,Ku=1/Zu,Ju=12,$u="undefined"===typeof TextDecoder?null:new TextDecoder("utf8");function Qu(t,e,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128)return ef(t,n,e);if(n|=(127&(i=a[r.pos++]))<<3,i<128)return ef(t,n,e);if(n|=(127&(i=a[r.pos++]))<<10,i<128)return ef(t,n,e);if(n|=(127&(i=a[r.pos++]))<<17,i<128)return ef(t,n,e);if(n|=(127&(i=a[r.pos++]))<<24,i<128)return ef(t,n,e);if(n|=(1&(i=a[r.pos++]))<<31,i<128)return ef(t,n,e);throw new Error("Expected varint not more than 10 bytes")}function tf(t){return t.type===Xu.Bytes?t.readVarint()+t.pos:t.pos+1}function ef(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function rf(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),nf(r,n,e),af(n,e)}function nf(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}function af(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function of(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function sf(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function lf(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function cf(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function uf(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function ff(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function pf(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function df(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function hf(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function gf(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function mf(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function vf(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function yf(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function bf(t,e,r){for(var n="",i=e;i<r;){var a,o,s,l=t[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u>r)break;1===u?l<128&&(c=l):2===u?128===(192&(a=t[i+1]))&&(c=(31&l)<<6|63&a)<=127&&(c=null):3===u?(a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&((c=(15&l)<<12|(63&a)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&((c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),i+=u}return n}function xf(t,e,r){return $u.decode(t.subarray(e,r))}function _f(t,e,r){for(var n,i,a=0;a<e.length;a++){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){n>56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}Xu.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=mf(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=yf(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=mf(this.buf,this.pos)+mf(this.buf,this.pos+4)*Zu;return this.pos+=8,t},readSFixed64:function(){var t=mf(this.buf,this.pos)+yf(this.buf,this.pos+4)*Zu;return this.pos+=8,t},readFloat:function(){var t=Wu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Wu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:Qu(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=Ju&&$u?xf(this.buf,e,t):bf(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Xu.Bytes)return t.push(this.readVarint(e));var r=tf(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Xu.Bytes)return t.push(this.readSVarint());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Xu.Bytes)return t.push(this.readBoolean());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Xu.Bytes)return t.push(this.readFloat());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Xu.Bytes)return t.push(this.readDouble());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Xu.Bytes)return t.push(this.readFixed32());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Xu.Bytes)return t.push(this.readSFixed32());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Xu.Bytes)return t.push(this.readFixed64());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Xu.Bytes)return t.push(this.readSFixed64());var e=tf(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Xu.Varint)for(;this.buf[this.pos++]>127;);else if(e===Xu.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Xu.Fixed32)this.pos+=4;else{if(e!==Xu.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),vf(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),vf(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),vf(this.buf,-1&t,this.pos),vf(this.buf,Math.floor(t*Ku),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),vf(this.buf,-1&t,this.pos),vf(this.buf,Math.floor(t*Ku),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?rf(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=_f(this.buf,t,this.pos);var r=this.pos-e;r>=128&&of(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Wu.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Wu.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&of(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Xu.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,sf,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,lf,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,ff,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,cf,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,uf,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,pf,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,df,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,hf,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,gf,e)},writeBytesField:function(t,e){this.writeTag(t,Xu.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Xu.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Xu.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Xu.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Xu.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Xu.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Xu.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Xu.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Xu.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Xu.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var wf=3;function kf(t,e,r){1===t&&r.readMessage(Tf,e)}function Tf(t,e,r){if(3===t){var n=r.readMessage(Mf,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new Hl({width:o+2*wf,height:s+2*wf},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Mf(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}function Af(t){return new Yu(t).readFields(kf,[])}var Sf=wf;function Ef(t){for(var e=0,r=0,n=0,i=t;n<i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c<u.length;c+=1)for(var f=u[c],p=o.length-1;p>=0;p--){var d=o[p];if(!(f.w>d.w||f.h>d.h)){if(f.x=d.x,f.y=d.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===d.w&&f.h===d.h){var h=o.pop();p<o.length&&(o[p]=h)}else f.h===d.h?(d.x+=f.w,d.w-=f.w):f.w===d.w?(d.y+=f.h,d.h-=f.h):(o.push({x:d.x+f.w,y:d.y,w:d.w-f.w,h:f.h}),d.y+=f.h,d.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Cf=1,Of=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},Lf={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Lf.tl.get=function(){return[this.paddedRect.x+Cf,this.paddedRect.y+Cf]},Lf.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-Cf,this.paddedRect.y+this.paddedRect.h-Cf]},Lf.tlbr.get=function(){return this.tl.concat(this.br)},Lf.displaySize.get=function(){return[(this.paddedRect.w-2*Cf)/this.pixelRatio,(this.paddedRect.h-2*Cf)/this.pixelRatio]},Object.defineProperties(Of.prototype,Lf);var If=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=Ef(i),o=a.w,s=a.h,l=new ql({width:o||1,height:s||1});for(var c in t){var u=t[c],f=r[c].paddedRect;ql.copy(u.data,l,{x:0,y:0},{x:f.x+Cf,y:f.y+Cf},u.data)}for(var p in e){var d=e[p],h=n[p].paddedRect,g=h.x+Cf,m=h.y+Cf,v=d.data.width,y=d.data.height;ql.copy(d.data,l,{x:0,y:0},{x:g,y:m},d.data),ql.copy(d.data,l,{x:0,y:y-1},{x:g,y:m-1},{width:v,height:1}),ql.copy(d.data,l,{x:0,y:0},{x:g,y:m+y},{width:v,height:1}),ql.copy(d.data,l,{x:v-1,y:0},{x:g-1,y:m},{width:1,height:y}),ql.copy(d.data,l,{x:0,y:0},{x:g+v,y:m},{width:1,height:y})}this.image=l,this.iconPositions=r,this.patternPositions=n};If.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2*Cf,h:i.data.height+2*Cf};r.push(a),e[n]=new Of(a,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(n)}},If.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},If.prototype.patchUpdatedImage=function(t,e,r){if(t&&e&&t.version!==e.version){t.version=e.version;var n=t.tl,i=n[0],a=n[1];r.update(e.data,void 0,{x:i,y:a})}},ga("ImagePosition",Of),ga("ImageAtlas",If);var Pf={horizontal:1,vertical:2,horizontalOnly:3},Df=-17;function Rf(t){for(var e=0,r=t;e<r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}var zf=57344,Nf=63743,Ff=function(){this.scale=1,this.fontStack="",this.imageName=null};Ff.forText=function(t,e){var r=new Ff;return r.scale=t||1,r.fontStack=e,r},Ff.forImage=function(t){var e=new Ff;return e.imageName=t,e};var Bf=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function jf(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a<o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i<n.length&&r.push(t.substring(i,n.length)),r}function Uf(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g){var m,v=Bf.fromFeature(t,i);f===Pf.vertical&&v.verticalizePunctuation();var y=Wa.processBidirectionalText,b=Wa.processStyledBidirectionalText;if(y&&1===v.sections.length){m=[];for(var x=0,_=y(v.toString(),Kf(v,c,a,e,n,d,h));x<_.length;x+=1){var w=_[x],k=new Bf;k.text=w,k.sections=v.sections;for(var T=0;T<w.length;T++)k.sectionIndex.push(0);m.push(k)}}else if(b){m=[];for(var M=0,A=b(v.text,v.sectionIndex,Kf(v,c,a,e,n,d,h));M<A.length;M+=1){var S=A[M],E=new Bf;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=jf(v,Kf(v,c,a,e,n,d,h));var C=[],O={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return $f(O,e,r,n,m,o,s,l,f,c,p,g),!Rf(C)&&O}Bf.fromFeature=function(t,e){for(var r=new Bf,n=0;n<t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},Bf.prototype.length=function(){return this.text.length},Bf.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Bf.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Bf.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Bf.prototype.verticalizePunctuation=function(){this.text=qu(this.text)},Bf.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&Vf[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n>=0&&n>=t&&Vf[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},Bf.prototype.substring=function(t,e){var r=new Bf;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},Bf.prototype.toString=function(){return this.text},Bf.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},Bf.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Ff.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n<t.text.length;++n)this.sectionIndex.push(r)},Bf.prototype.addImageSection=function(t){var e=t.image?t.image.name:"";if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(Ff.forImage(e)),this.sectionIndex.push(this.sections.length-1)):C("Reached maximum number of images "+(Nf-zf+2))}else C("Can't add FormattedSection with an empty image.")},Bf.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=Nf?null:++this.imageSectionID:(this.imageSectionID=zf,this.imageSectionID)};var Vf={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Hf={};function qf(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*Gu/a+i:0}var s=r[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+i:0}function Gf(t,e,r,n,i,a){for(var o=0,s=0;s<t.length();s++){var l=t.getSection(s);o+=qf(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}function Wf(t,e,r,n){var i=Math.pow(t-e,2);return n?t<e?i/2:2*i:i+Math.abs(r)*r}function Yf(t,e,r){var n=0;return 10===t&&(n-=1e4),r&&(n+=150),40!==t&&65288!==t||(n+=50),41!==e&&65289!==e||(n+=50),n}function Xf(t,e,r,n,i,a){for(var o=null,s=Wf(e,r,i,a),l=0,c=n;l<c.length;l+=1){var u=c[l],f=Wf(e-u.x,r,i,a)+u.badness;f<=s&&(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Zf(t){return t?Zf(t.priorBreak).concat(t.index):[]}function Kf(t,e,r,n,i,a,o){if("point"!==a)return[];if(!t)return[];for(var s=[],l=Gf(t,e,r,n,i,o),c=t.text.indexOf("\u200b")>=0,u=0,f=0;f<t.length();f++){var p=t.getSection(f),d=t.getCharCode(f);if(Vf[d]||(u+=qf(d,p,n,i,e,o)),f<t.length()-1){var h=Aa(d);(Hf[d]||h||p.imageName)&&s.push(Xf(f+1,u,l,s,Yf(d,t.getCharCode(f+1),h&&c),!1))}}return Zf(Xf(t.length(),u,l,s,0,!0))}function Jf(t){var e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function $f(t,e,r,n,i,a,o,s,l,c,u,f){for(var p=0,d=Df,h=0,g=0,m="right"===s?1:"left"===s?0:.5,v=0,y=0,b=i;y<b.length;y+=1){var x=b[y];x.trim();var _=x.getMaxScale(),w=(_-1)*Gu,k={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=k;var T=k.positionedGlyphs,M=0;if(x.length()){for(var A=0;A<x.length();A++){var S=x.getSection(A),E=x.getSectionIndex(A),C=x.getCharCode(A),O=0,L=null,I=null,P=null,D=Gu,R=!(l===Pf.horizontal||!u&&!Sa(C)||u&&(Vf[C]||Oa(C)));if(S.imageName){var z=n[S.imageName];if(!z)continue;P=S.imageName,t.iconsInText=t.iconsInText||!0,I=z.paddedRect;var N=z.displaySize;S.scale=S.scale*Gu/f,L={width:N[0],height:N[1],left:Cf,top:-Sf,advance:R?N[1]:N[0]},O=w+(Gu-N[1]*S.scale),D=L.advance;var F=R?N[0]*S.scale-Gu*_:N[1]*S.scale-Gu*_;F>0&&F>M&&(M=F)}else{var B=r[S.fontStack],j=B&&B[C];if(j&&j.rect)I=j.rect,L=j.metrics;else{var U=e[S.fontStack],V=U&&U[C];if(!V)continue;L=V.metrics}O=(_-S.scale)*Gu}R?(t.verticalizable=!0,T.push({glyph:C,imageName:P,x:p,y:d+O,vertical:R,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:L,rect:I}),p+=D*S.scale+c):(T.push({glyph:C,imageName:P,x:p,y:d+O,vertical:R,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:L,rect:I}),p+=L.advance*S.scale+c)}if(0!==T.length){var H=p-c;h=Math.max(H,h),Qf(T,0,T.length-1,m,M)}p=0;var q=a*_+M;k.lineOffset=Math.max(M,w),d+=q,g=Math.max(q,g),++v}else d+=a,++v}var G=d-Df,W=Jf(o),Y=W.horizontalAlign,X=W.verticalAlign;tp(t.positionedLines,m,Y,X,h,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-Y*h,t.right=t.left+h}function Qf(t,e,r,n,i){if(n||i)for(var a=t[r],o=a.metrics.advance*a.scale,s=(t[r].x+o)*n,l=e;l<=r;l++)t[l].x-=s,t[l].y+=i}function tp(t,e,r,n,i,a,o,s,l){var c=(e-r)*i,u=0;u=a!==o?-s*n-Df:(-n*l+.5)*o;for(var f=0,p=t;f<p.length;f+=1)for(var d=0,h=p[f].positionedGlyphs;d<h.length;d+=1){var g=h[d];g.x+=c,g.y+=u}}function ep(t,e,r){var n=Jf(r),i=n.horizontalAlign,a=n.verticalAlign,o=e[0],s=e[1],l=o-t.displaySize[0]*i,c=l+t.displaySize[0],u=s-t.displaySize[1]*a;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}}function rp(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,p,d,h=e.left*a,g=e.right*a;"width"===r||"both"===r?(d=i[0]+h-n[3],f=i[0]+g+n[1]):f=(d=i[0]+(h+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return"height"===r||"both"===r?(u=i[1]+m-n[0],p=i[1]+v+n[2]):p=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:p,left:d,collisionPadding:o}}Hf[10]=!0,Hf[32]=!0,Hf[38]=!0,Hf[40]=!0,Hf[41]=!0,Hf[43]=!0,Hf[45]=!0,Hf[47]=!0,Hf[173]=!0,Hf[183]=!0,Hf[8203]=!0,Hf[8208]=!0,Hf[8211]=!0,Hf[8231]=!0;var np=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&&(this.segment=i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(a);ga("Anchor",np);var ip=128;function ap(t,e){var r=e.expression;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new Xa(t+1))};if("source"===r.kind)return{kind:"source"};for(var n=r.zoomStops,i=r.interpolationType,a=0;a<n.length&&n[a]<=t;)a++;for(var o=a=Math.max(0,a-1);o<n.length&&n[o]<t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return"composite"===r.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:l,minSize:r.evaluate(new Xa(s)),maxSize:r.evaluate(new Xa(l)),interpolationType:i}}function op(t,e,r){var n=e.uSize,i=e.uSizeT,a=r.lowerSize,o=r.upperSize;return"source"===t.kind?a/ip:"composite"===t.kind?zr(a/ip,o/ip,i):n}function sp(t,e){var r=0,n=0;if("constant"===t.kind)n=t.layoutSize;else if("source"!==t.kind){var i=t.interpolationType,a=t.minZoom,o=t.maxZoom,s=i?f(un.interpolationFactor(i,e,a,o),0,1):0;"camera"===t.kind?n=zr(t.minSize,t.maxSize,s):r=s}return{uSizeT:r,uSize:n}}var lp=Object.freeze({__proto__:null,getSizeData:ap,evaluateSizeForFeature:op,evaluateSizeForZoom:sp,SIZE_PACK_FACTOR:ip});function cp(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s>-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s<r/2;){var u=t[o-1],f=t[o],p=t[o+1];if(!p)return!1;var d=u.angleTo(f)-f.angleTo(p);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),c+=d;s-l[0].distance>n;)c-=l.shift().angleDelta;if(c>i)return!1;o++,s+=f.dist(p)}return!0}function up(t){for(var e=0,r=0;r<t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function fp(t,e,r){return t?.6*e*r:0}function pp(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function dp(t,e,r,n,i,a){for(var o=fp(r,i,a),s=pp(r,n)*a,l=0,c=up(t)/2,u=0;u<t.length-1;u++){var f=t[u],p=t[u+1],d=f.dist(p);if(l+d>c){var h=(c-l)/d,g=zr(f.x,p.x,h),m=zr(f.y,p.y,h),v=new np(g,m,p.angleTo(f),u);return v._round(),!o||cp(t,v,s,o,e)?v:void 0}l+=d}}function hp(t,e,r,n,i,a,o,s,l){var c=fp(n,a,o),u=pp(n,i),f=u*o,p=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f<e/4&&(e=f+e/4),gp(t,p?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,p,!1,l)}function gp(t,e,r,n,i,a,o,s,l){for(var c=a/2,u=up(t),f=0,p=e-r,d=[],h=0;h<t.length-1;h++){for(var g=t[h],m=t[h+1],v=g.dist(m),y=m.angleTo(g);p+r<f+v;){var b=((p+=r)-f)/v,x=zr(g.x,m.x,b),_=zr(g.y,m.y,b);if(x>=0&&x<l&&_>=0&&_<l&&p-c>=0&&p+c<=u){var w=new np(x,_,y,h);w._round(),n&&!cp(t,w,a,n,i)||d.push(w)}}f+=v}return s||d.length||o||(d=gp(t,f/2,r,n,i,a,o,!0,l)),d}function mp(t,e,r,n,i){for(var o=[],s=0;s<t.length;s++)for(var l=t[s],c=void 0,u=0;u<l.length-1;u++){var f=l[u],p=l[u+1];f.x<e&&p.x<e||(f.x<e?f=new a(e,f.y+(p.y-f.y)*((e-f.x)/(p.x-f.x)))._round():p.x<e&&(p=new a(e,f.y+(p.y-f.y)*((e-f.x)/(p.x-f.x)))._round()),f.y<r&&p.y<r||(f.y<r?f=new a(f.x+(p.x-f.x)*((r-f.y)/(p.y-f.y)),r)._round():p.y<r&&(p=new a(f.x+(p.x-f.x)*((r-f.y)/(p.y-f.y)),r)._round()),f.x>=n&&p.x>=n||(f.x>=n?f=new a(n,f.y+(p.y-f.y)*((n-f.x)/(p.x-f.x)))._round():p.x>=n&&(p=new a(n,f.y+(p.y-f.y)*((n-f.x)/(p.x-f.x)))._round()),f.y>=i&&p.y>=i||(f.y>=i?f=new a(f.x+(p.x-f.x)*((i-f.y)/(p.y-f.y)),i)._round():p.y>=i&&(p=new a(f.x+(p.x-f.x)*((i-f.y)/(p.y-f.y)),i)._round()),c&&f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(p)))))}return o}var vp=Cf;function yp(t,e,r,n){var i=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2*vp,c=o.paddedRect.h-2*vp,u=t.right-t.left,f=t.bottom-t.top,p=o.stretchX||[[0,l]],d=o.stretchY||[[0,c]],h=function(t,e){return t+e[1]-e[0]},g=p.reduce(h,0),m=d.reduce(h,0),v=l-g,y=c-m,b=0,x=g,_=0,w=m,k=0,T=v,M=0,A=y;if(o.content&&n){var S=o.content;b=bp(p,0,S[0]),_=bp(d,0,S[1]),x=bp(p,S[0],S[2]),w=bp(d,S[1],S[3]),k=S[0]-b,M=S[1]-_,T=S[2]-S[0]-x,A=S[3]-S[1]-w}var E=function(n,i,l,c){var p=_p(n.stretch-b,x,u,t.left),d=wp(n.fixed-k,T,n.stretch,g),h=_p(i.stretch-_,w,f,t.top),v=wp(i.fixed-M,A,i.stretch,m),y=_p(l.stretch-b,x,u,t.left),S=wp(l.fixed-k,T,l.stretch,g),E=_p(c.stretch-_,w,f,t.top),C=wp(c.fixed-M,A,c.stretch,m),O=new a(p,h),L=new a(y,h),I=new a(y,E),P=new a(p,E),D=new a(d/s,v/s),R=new a(S/s,C/s),z=e*Math.PI/180;if(z){var N=Math.sin(z),F=Math.cos(z),B=[F,-N,N,F];O._matMult(B),L._matMult(B),P._matMult(B),I._matMult(B)}var j=n.stretch+n.fixed,U=l.stretch+l.fixed,V=i.stretch+i.fixed,H=c.stretch+c.fixed;return{tl:O,tr:L,bl:P,br:I,tex:{x:o.paddedRect.x+vp+j,y:o.paddedRect.y+vp+V,w:U-j,h:H-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:R,minFontScaleX:T/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&&(o.stretchX||o.stretchY))for(var C=xp(p,v,g),O=xp(d,y,m),L=0;L<C.length-1;L++)for(var I=C[L],P=C[L+1],D=0;D<O.length-1;D++){var R=O[D],z=O[D+1];i.push(E(I,R,P,z))}else i.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return i}function bp(t,e,r){for(var n=0,i=0,a=t;i<a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function xp(t,e,r){for(var n=[{fixed:-vp,stretch:0}],i=0,a=t;i<a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+vp,stretch:r}),n}function _p(t,e,r,n){return t/e*r+n}function wp(t,e,r,n){return t-e*r/n}function kp(t,e,r,n,i,o,s,l){for(var c=n.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[],f=0,p=e.positionedLines;f<p.length;f+=1)for(var d=p[f],h=0,g=d.positionedGlyphs;h<g.length;h+=1){var m=g[h];if(m.rect){var v=m.rect||{},y=Sf+1,b=!0,x=1,_=0,w=(i||l)&&m.vertical,k=m.metrics.advance*m.scale/2;if(l&&e.verticalizable){var T=(m.scale-1)*Gu,M=(Gu-m.metrics.width*m.scale)/2;_=d.lineOffset/2-(m.imageName?-M:T)}if(m.imageName){var A=s[m.imageName];b=A.sdf,x=A.pixelRatio,y=Cf/x}var S=i?[m.x+k,m.y]:[0,0],E=i?[0,0]:[m.x+k+r[0],m.y+r[1]-_],C=[0,0];w&&(C=E,E=[0,0]);var O=(m.metrics.left-y)*m.scale-k+E[0],L=(-m.metrics.top-y)*m.scale+E[1],I=O+v.w*m.scale/x,P=L+v.h*m.scale/x,D=new a(O,L),R=new a(I,L),z=new a(O,P),N=new a(I,P);if(w){var F=new a(-k,k-Df),B=-Math.PI/2,j=Gu/2-k,U=m.imageName?j:0,V=new a(5-Df-j,-U),H=new(Function.prototype.bind.apply(a,[null].concat(C)));D._rotateAround(B,F)._add(V)._add(H),R._rotateAround(B,F)._add(V)._add(H),z._rotateAround(B,F)._add(V)._add(H),N._rotateAround(B,F)._add(V)._add(H)}if(c){var q=Math.sin(c),G=Math.cos(c),W=[G,-q,q,G];D._matMult(W),R._matMult(W),z._matMult(W),N._matMult(W)}var Y=new a(0,0),X=new a(0,0),Z=0,K=0;u.push({tl:D,tr:R,bl:z,br:N,tex:v,writingMode:e.writingMode,glyphOffset:S,sectionIndex:m.sectionIndex,isSDF:b,pixelOffsetTL:Y,pixelOffsetBR:X,minFontScaleX:Z,minFontScaleY:K})}}return u}var Tp=function(t,e,r,n,i,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,p=o.bottom,d=o.collisionPadding;d&&(f-=d[1],p+=d[3]);var h=p-f;h>0&&(h=Math.max(10,h),this.circleDiameter=h)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,b=o.collisionPadding;if(b&&(v-=b[0]*s,g-=b[1]*s,y+=b[2]*s,m+=b[3]*s),u){var x=new a(v,g),_=new a(y,g),w=new a(v,m),k=new a(y,m),T=u*Math.PI/180;x._rotate(T),_._rotate(T),w._rotate(T),k._rotate(T),v=Math.min(x.x,_.x,w.x,k.x),y=Math.max(x.x,_.x,w.x,k.x),g=Math.min(x.y,_.y,w.y,k.y),m=Math.max(x.y,_.y,w.y,k.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,i)}this.boxEndIndex=t.length},Mp=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=Ap),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)};function Ap(t,e){return t<e?-1:t>e?1:0}function Sp(t,e,r){void 0===e&&(e=1),void 0===r&&(r=!1);for(var n=1/0,i=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c<l.length;c++){var u=l[c];(!c||u.x<n)&&(n=u.x),(!c||u.y<i)&&(i=u.y),(!c||u.x>o)&&(o=u.x),(!c||u.y>s)&&(s=u.y)}var f=o-n,p=s-i,d=Math.min(f,p),h=d/2,g=new Mp([],Ep);if(0===d)return new a(n,i);for(var m=n;m<o;m+=d)for(var v=i;v<s;v+=d)g.push(new Cp(m+h,v+h,h,t));for(var y=Lp(t),b=g.length;g.length;){var x=g.pop();(x.d>y.d||!y.d)&&(y=x,r&&console.log("found best %d after %d probes",Math.round(1e4*x.d)/1e4,b)),x.max-y.d<=e||(h=x.h/2,g.push(new Cp(x.p.x-h,x.p.y-h,h,t)),g.push(new Cp(x.p.x+h,x.p.y-h,h,t)),g.push(new Cp(x.p.x-h,x.p.y+h,h,t)),g.push(new Cp(x.p.x+h,x.p.y+h,h,t)),b+=4)}return r&&(console.log("num probes: "+b),console.log("best distance: "+y.d)),y.p}function Ep(t,e){return e.max-t.max}function Cp(t,e,r,n){this.p=new a(t,e),this.h=r,this.d=Op(this.p,n),this.max=this.d+this.h*Math.SQRT2}function Op(t,e){for(var r=!1,n=1/0,i=0;i<e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o<s;l=o++){var c=a[o],u=a[l];c.y>t.y!==u.y>t.y&&t.x<(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&&(r=!r),n=Math.min(n,Ws(t,c,u))}return(r?1:-1)*Math.sqrt(n)}function Lp(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a<o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Cp(r/e,n/e,0,t)}Mp.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Mp.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Mp.prototype.peek=function(){return this.data[0]},Mp.prototype._up=function(t){for(var e=this,r=e.data,n=e.compare,i=r[t];t>0;){var a=t-1>>1,o=r[a];if(n(i,o)>=0)break;r[t]=o,t=a}r[t]=i},Mp.prototype._down=function(t){for(var e=this,r=e.data,n=e.compare,i=this.length>>1,a=r[t];t<i;){var o=1+(t<<1),s=r[o],l=o+1;if(l<this.length&&n(r[l],s)<0&&(o=l,s=r[l]),n(s,a)>=0)break;r[t]=s,t=o}r[t]=a};var Ip=7,Pp=Number.POSITIVE_INFINITY;function Dp(t,e){function r(t,e){var r=0,n=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":n=i-Ip;break;case"bottom-right":case"bottom-left":n=-i+Ip;break;case"bottom":n=-e+Ip;break;case"top":n=e-Ip}switch(t){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=e;break;case"right":r=-e}return[r,n]}function n(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case"top-right":case"top-left":case"top":i=r-Ip;break;case"bottom-right":case"bottom-left":case"bottom":i=-r+Ip}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e}return[n,i]}return e[1]!==Pp?n(t,e[0],e[1]):r(t,e[0])}function Rp(t,e,r,n,i,a,o){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=Is/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){var f=t.textSizeData,p=f.minZoom,d=f.maxZoom;u.compositeTextSizes=[c["text-size"].possiblyEvaluate(new Xa(p),o),c["text-size"].possiblyEvaluate(new Xa(d),o)]}if("composite"===t.iconSizeData.kind){var h=t.iconSizeData,g=h.minZoom,m=h.maxZoom;u.compositeIconSizes=[c["icon-size"].possiblyEvaluate(new Xa(g),o),c["icon-size"].possiblyEvaluate(new Xa(m),o)]}u.layoutTextSize=c["text-size"].possiblyEvaluate(new Xa(t.zoom+1),o),u.layoutIconSize=c["icon-size"].possiblyEvaluate(new Xa(t.zoom+1),o),u.textMaxSize=c["text-size"].possiblyEvaluate(new Xa(18));for(var v=l.get("text-line-height")*Gu,y="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),b=l.get("text-keep-upright"),x=l.get("text-size"),_=function(){var a=k[w],s=l.get("text-font").evaluate(a,{},o).join(","),c=x.evaluate(a,{},o),f=u.layoutTextSize.evaluate(a,{},o),p=u.layoutIconSize.evaluate(a,{},o),d={horizontal:{},vertical:void 0},h=a.text,g=[0,0];if(h){var m=h.toString(),_=l.get("text-letter-spacing").evaluate(a,{},o)*Gu,T=Ta(m)?_:0,M=l.get("text-anchor").evaluate(a,{},o),A=l.get("text-variable-anchor");if(!A){var S=l.get("text-radial-offset").evaluate(a,{},o);g=S?Dp(M,[S*Gu,Pp]):l.get("text-offset").evaluate(a,{},o).map((function(t){return t*Gu}))}var E=y?"center":l.get("text-justify").evaluate(a,{},o),O=l.get("symbol-placement"),L="point"===O?l.get("text-max-width").evaluate(a,{},o)*Gu:0,I=function(){t.allowVerticalPlacement&&ka(m)&&(d.vertical=Uf(h,e,r,i,s,L,v,M,"left",T,g,Pf.vertical,!0,O,f,c))};if(!y&&A){for(var P="auto"===E?A.map((function(t){return zp(t)})):[E],D=!1,R=0;R<P.length;R++){var z=P[R];if(!d.horizontal[z])if(D)d.horizontal[z]=d.horizontal[0];else{var N=Uf(h,e,r,i,s,L,v,"center",z,T,g,Pf.horizontal,!1,O,f,c);N&&(d.horizontal[z]=N,D=1===N.positionedLines.length)}}I()}else{"auto"===E&&(E=zp(M));var F=Uf(h,e,r,i,s,L,v,M,E,T,g,Pf.horizontal,!1,O,f,c);F&&(d.horizontal[E]=F),I(),ka(m)&&y&&b&&(d.vertical=Uf(h,e,r,i,s,L,v,M,E,T,g,Pf.vertical,!1,O,f,c))}}var B=void 0,j=!1;if(a.icon&&a.icon.name){var U=n[a.icon.name];U&&(B=ep(i[a.icon.name],l.get("icon-offset").evaluate(a,{},o),l.get("icon-anchor").evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&&C("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(U.pixelRatio!==t.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}var V=Up(d.horizontal)||d.vertical;t.iconsInText=!!V&&V.iconsInText,(V||B)&&Np(t,a,d,B,n,u,f,p,g,j,o)},w=0,k=t.features;w<k.length;w+=1)_();a&&t.generateCollisionDebugBuffers()}function zp(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Np(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&&(f=o);var p,d=t.layers[0].layout,h=d.get("icon-offset").evaluate(e,{},u),g=Up(r.horizontal),m=24,v=o/m,y=t.tilePixelRatio*v,b=t.tilePixelRatio*f/m,x=t.tilePixelRatio*s,_=t.tilePixelRatio*d.get("symbol-spacing"),w=d.get("text-padding")*t.tilePixelRatio,k=d.get("icon-padding")*t.tilePixelRatio,T=d.get("text-max-angle")/180*Math.PI,M="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),A="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),S=d.get("symbol-placement"),E=_/2,C=d.get("icon-text-fit");n&&"none"!==C&&(t.allowVerticalPlacement&&r.vertical&&(p=rp(n,r.vertical,C,d.get("icon-text-fit-padding"),h,v)),g&&(n=rp(n,g,C,d.get("icon-text-fit-padding"),h,v)));var O=function(s,f){f.x<0||f.x>=Is||f.y<0||f.y>=Is||Vp(t,f,s,r,n,i,p,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,y,w,M,l,x,k,A,h,e,a,c,u,o)};if("line"===S)for(var L=0,I=mp(e.geometry,0,0,Is,Is);L<I.length;L+=1)for(var P=I[L],D=0,R=hp(P,_,T,r.vertical||g,n,m,b,t.overscaling,Is);D<R.length;D+=1){var z=R[D];g&&Hp(t,g.text,E,z)||O(P,z)}else if("line-center"===S)for(var N=0,F=e.geometry;N<F.length;N+=1){var B=F[N];if(B.length>1){var j=dp(B,T,r.vertical||g,n,m,b);j&&O(B,j)}}else if("Polygon"===e.type)for(var U=0,V=Rc(e.geometry,0);U<V.length;U+=1){var H=V[U],q=Sp(H,16);O(H[0],new np(q.x,q.y,0))}else if("LineString"===e.type)for(var G=0,W=e.geometry;G<W.length;G+=1){var Y=W[G];O(Y,new np(Y[0].x,Y[0].y,0))}else if("Point"===e.type)for(var X=0,Z=e.geometry;X<Z.length;X+=1)for(var K=0,J=Z[X];K<J.length;K+=1){var $=J[K];O([$],new np($.x,$.y,0))}}var Fp=255,Bp=Fp*ip;function jp(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h){var g=kp(e,r,s,i,a,o,n,t.allowVerticalPlacement),m=t.textSizeData,v=null;"source"===m.kind?(v=[ip*i.layout.get("text-size").evaluate(o,{})])[0]>Bp&&C(t.layerIds[0]+': Value for "text-size" is >= '+Fp+'. Reduce your "text-size".'):"composite"===m.kind&&((v=[ip*d.compositeTextSizes[0].evaluate(o,{},h),ip*d.compositeTextSizes[1].evaluate(o,{},h)])[0]>Bp||v[1]>Bp)&&C(t.layerIds[0]+': Value for "text-size" is >= '+Fp+'. Reduce your "text-size".'),t.addSymbols(t.text,g,v,s,a,o,c,e,l.lineStartIndex,l.lineLength,p,h);for(var y=0,b=u;y<b.length;y+=1)f[b[y]]=t.text.placedSymbolArray.length-1;return 4*g.length}function Up(t){for(var e in t)return t[e];return null}function Vp(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v,y,b,x,_,w,k,T){var M,A,S,E,O,L=t.addToLineVertexArray(e,r),I=0,P=0,D=0,R=0,z=-1,N=-1,F={},B=is(""),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(j=(M=s.layout.get("text-offset").evaluate(x,{},k).map((function(t){return t*Gu})))[0],U=M[1]):(j=s.layout.get("text-radial-offset").evaluate(x,{},k)*Gu,U=Pp),t.allowVerticalPlacement&&n.vertical){var V=s.layout.get("text-rotate").evaluate(x,{},k)+90,H=n.vertical;E=new Tp(l,e,c,u,f,H,p,d,h,V),o&&(O=new Tp(l,e,c,u,f,o,m,v,h,V))}if(i){var q=s.layout.get("icon-rotate").evaluate(x,{}),G="none"!==s.layout.get("icon-text-fit"),W=yp(i,q,w,G),Y=o?yp(o,q,w,G):void 0;S=new Tp(l,e,c,u,f,i,m,v,!1,q),I=4*W.length;var X=t.iconSizeData,Z=null;"source"===X.kind?(Z=[ip*s.layout.get("icon-size").evaluate(x,{})])[0]>Bp&&C(t.layerIds[0]+': Value for "icon-size" is >= '+Fp+'. Reduce your "icon-size".'):"composite"===X.kind&&((Z=[ip*_.compositeIconSizes[0].evaluate(x,{},k),ip*_.compositeIconSizes[1].evaluate(x,{},k)])[0]>Bp||Z[1]>Bp)&&C(t.layerIds[0]+': Value for "icon-size" is >= '+Fp+'. Reduce your "icon-size".'),t.addSymbols(t.icon,W,Z,b,y,x,!1,e,L.lineStartIndex,L.lineLength,-1,k),z=t.icon.placedSymbolArray.length-1,Y&&(P=4*Y.length,t.addSymbols(t.icon,Y,Z,b,y,x,Pf.vertical,e,L.lineStartIndex,L.lineLength,-1,k),N=t.icon.placedSymbolArray.length-1)}for(var K in n.horizontal){var J=n.horizontal[K];if(!A){B=is(J.text);var $=s.layout.get("text-rotate").evaluate(x,{},k);A=new Tp(l,e,c,u,f,J,p,d,h,$)}var Q=1===J.positionedLines.length;if(D+=jp(t,e,J,a,s,h,x,g,L,n.vertical?Pf.horizontal:Pf.horizontalOnly,Q?Object.keys(n.horizontal):[K],F,z,_,k),Q)break}n.vertical&&(R+=jp(t,e,n.vertical,a,s,h,x,g,L,Pf.vertical,["vertical"],F,N,_,k));var tt=A?A.boxStartIndex:t.collisionBoxArray.length,et=A?A.boxEndIndex:t.collisionBoxArray.length,rt=E?E.boxStartIndex:t.collisionBoxArray.length,nt=E?E.boxEndIndex:t.collisionBoxArray.length,it=S?S.boxStartIndex:t.collisionBoxArray.length,at=S?S.boxEndIndex:t.collisionBoxArray.length,ot=O?O.boxStartIndex:t.collisionBoxArray.length,st=O?O.boxEndIndex:t.collisionBoxArray.length,lt=-1,ct=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};lt=ct(A,lt),lt=ct(E,lt),lt=ct(S,lt);var ut=(lt=ct(O,lt))>-1?1:0;ut&&(lt*=T/Gu),t.glyphOffsetArray.length>=Jp.MAX_GLYPHS&&C("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,F.right>=0?F.right:-1,F.center>=0?F.center:-1,F.left>=0?F.left:-1,F.vertical||-1,z,N,B,tt,et,rt,nt,it,at,ot,st,c,D,R,I,P,ut,0,p,j,U,lt)}function Hp(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o>=0;o--)if(n.dist(a[o])<r)return!0}else i[e]=[];return i[e].push(n),!1}var qp=nu.VectorTileFeature.types,Gp=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Wp(t,e,r,n,i,a,o,s,l,c,u,f,p){var d=s?Math.min(Bp,Math.round(s[0])):0,h=s?Math.min(Bp,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(d<<1)+(l?1:0),h,16*c,16*u,256*f,256*p)}function Yp(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function Xp(t){for(var e=0,r=t.sections;e<r.length;e+=1)if(Pa(r[e].text))return!0;return!1}var Zp=function(t){this.layoutVertexArray=new Mo,this.indexArray=new Io,this.programConfigurations=t,this.segments=new Qo,this.dynamicLayoutVertexArray=new Ao,this.opacityVertexArray=new So,this.placedSymbolArray=new Go};Zp.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},Zp.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ru.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,zu.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,Gp,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&&this.programConfigurations.upload(t))},Zp.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},ga("SymbolBuffers",Zp);var Kp=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new Qo,this.collisionVertexArray=new Lo};Kp.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Nu.members,!0)},Kp.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},ga("CollisionBuffers",Kp);var Jp=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=cl([]),this.placementViewportMatrix=cl([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ap(this.zoom,e["text-size"]),this.iconSizeData=ap(this.zoom,e["icon-size"]);var r=this.layers[0].layout,n=r.get("symbol-sort-key"),i=r.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==i&&void 0!==n.constantOr(1);var a="viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&(r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement")),"point"===r.get("symbol-placement")&&(this.writingModes=r.get("text-writing-mode").map((function(t){return Pf[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};function $p(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):""}))}Jp.prototype.createArrays=function(){this.text=new Zp(new Es(Ru.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new Zp(new Es(Ru.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new Xo,this.lineVertexArray=new Zo,this.symbolInstances=new Yo},Jp.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a<t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&&i){var o=Hu[t.charAt(a)];o&&(e[o.charCodeAt(0)]=!0)}},Jp.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get("text-font"),o=i.get("text-field"),s=i.get("icon-image"),l=("constant"!==o.value.kind||o.value.value instanceof Fe&&!o.value.value.isEmpty()||o.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),c="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,u=i.get("symbol-sort-key");if(this.features=[],l||c){for(var f=e.iconDependencies,p=e.glyphDependencies,d=e.availableImages,h=new Xa(this.zoom),g=0,m=t;g<m.length;g+=1){var v=m[g],y=v.feature,b=v.id,x=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,k={type:y.type,id:b,properties:y.properties,geometry:w?Rs(y):[]};if(n._featureFilter.filter(h,k,r)){w||(k.geometry=Rs(y));var T=void 0;if(l){var M=n.getValueAndResolveTokens("text-field",k,r,d),A=Fe.factory(M);Xp(A)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Va()||this.hasRTLText&&Wa.isParsed())&&(T=Uu(A,n,k))}var S=void 0;if(c){var E=n.getValueAndResolveTokens("icon-image",k,r,d);S=E instanceof Be?E:Be.fromString(E)}if(T||S){var C=this.sortFeaturesByKey?u.evaluate(k,{},r):void 0,O={id:b,text:T,icon:S,index:x,sourceLayerIndex:_,geometry:Rs(y),properties:y.properties,type:qp[y.type],sortKey:C};if(this.features.push(O),S&&(f[S.name]=!0),T){var L=a.evaluate(k,{},r).join(","),I="map"===i.get("text-rotation-alignment")&&"point"!==i.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Pf.vertical)>=0;for(var P=0,D=T.sections;P<D.length;P+=1){var R=D[P];if(R.image)f[R.image.name]=!0;else{var z=ka(T.toString()),N=R.fontStack||L,F=p[N]=p[N]||{};this.calculateGlyphDependencies(R.text,F,I,this.allowVerticalPlacement,z)}}}}}}"line"===i.get("symbol-placement")&&(this.features=Vu(this.features)),this.sortFeaturesByKey&&this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},Jp.prototype.update=function(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},Jp.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},Jp.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},Jp.prototype.upload=function(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},Jp.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},Jp.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},Jp.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o<e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o<e.length-1&&(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s>=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},Jp.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var p=t.indexArray,d=t.layoutVertexArray,h=t.segments.prepareSegment(4*e.length,d,p,a.sortKey),g=this.glyphOffsetArray.length,m=h.vertexLength,v=this.allowVerticalPlacement&&o===Pf.vertical?Math.PI/2:0,y=a.text&&a.text.sections,b=0;b<e.length;b++){var x=e[b],_=x.tl,w=x.tr,k=x.bl,T=x.br,M=x.tex,A=x.pixelOffsetTL,S=x.pixelOffsetBR,E=x.minFontScaleX,C=x.minFontScaleY,O=x.glyphOffset,L=x.isSDF,I=x.sectionIndex,P=h.vertexLength,D=O[1];Wp(d,s.x,s.y,_.x,D+_.y,M.x,M.y,r,L,A.x,A.y,E,C),Wp(d,s.x,s.y,w.x,D+w.y,M.x+M.w,M.y,r,L,S.x,A.y,E,C),Wp(d,s.x,s.y,k.x,D+k.y,M.x,M.y+M.h,r,L,A.x,S.y,E,C),Wp(d,s.x,s.y,T.x,D+T.y,M.x+M.w,M.y+M.h,r,L,S.x,S.y,E,C),Yp(t.dynamicLayoutVertexArray,s,v),p.emplaceBack(P,P+1,P+2),p.emplaceBack(P+1,P+2,P+3),h.vertexLength+=4,h.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(O[0]),b!==e.length-1&&I===e[b+1].sectionIndex||t.programConfigurations.populatePaintArrays(d.length,a,a.index,{},f,y&&y[I])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},Jp.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},Jp.prototype.addCollisionDebugVertices=function(t,e,r,n,i,o,s){var l=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),c=l.vertexLength,u=i.layoutVertexArray,f=i.collisionVertexArray,p=s.anchorX,d=s.anchorY;this._addCollisionDebugVertex(u,f,o,p,d,new a(t,e)),this._addCollisionDebugVertex(u,f,o,p,d,new a(r,e)),this._addCollisionDebugVertex(u,f,o,p,d,new a(r,n)),this._addCollisionDebugVertex(u,f,o,p,d,new a(t,n)),l.vertexLength+=4;var h=i.indexArray;h.emplaceBack(c,c+1),h.emplaceBack(c+1,c+2),h.emplaceBack(c+2,c+3),h.emplaceBack(c+3,c),l.primitiveLength+=4},Jp.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i<e;i++){var a=this.collisionBoxArray.get(i),o=a.x1,s=a.y1,l=a.x2,c=a.y2;this.addCollisionDebugVertices(o,s,l,c,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},Jp.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Kp(Co,Fu.members,Fo),this.iconCollisionBox=new Kp(Co,Fu.members,Fo);for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},Jp.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u<r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var p=n;p<i;p++){var d=t.get(p);c.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},c.verticalTextFeatureIndex=d.featureIndex;break}for(var h=a;h<o;h++){var g=t.get(h);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m<l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},Jp.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},Jp.prototype.hasTextData=function(){return this.text.segments.get().length>0},Jp.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Jp.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Jp.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Jp.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Jp.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i<n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},Jp.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o<this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},Jp.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&&r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},Jp.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r<n.length;r+=1){var i=n[r],a=this.symbolInstances.get(i);this.featureSortOrder.push(a.featureIndex),[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t>=0&&n.indexOf(t)===r&&e.addIndicesForPlacedSymbol(e.text,t)})),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},ga("SymbolBucket",Jp,{omit:["layers","collisionBoxArray","features","compareText"]}),Jp.MAX_GLYPHS=65535,Jp.addDynamicAttributes=Yp;var Qp=new lo({"symbol-placement":new no(le.layout_symbol["symbol-placement"]),"symbol-spacing":new no(le.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new no(le.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new io(le.layout_symbol["symbol-sort-key"]),"symbol-z-order":new no(le.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new no(le.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new no(le.layout_symbol["icon-ignore-placement"]),"icon-optional":new no(le.layout_symbol["icon-optional"]),"icon-rotation-alignment":new no(le.layout_symbol["icon-rotation-alignment"]),"icon-size":new io(le.layout_symbol["icon-size"]),"icon-text-fit":new no(le.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new no(le.layout_symbol["icon-text-fit-padding"]),"icon-image":new io(le.layout_symbol["icon-image"]),"icon-rotate":new io(le.layout_symbol["icon-rotate"]),"icon-padding":new no(le.layout_symbol["icon-padding"]),"icon-keep-upright":new no(le.layout_symbol["icon-keep-upright"]),"icon-offset":new io(le.layout_symbol["icon-offset"]),"icon-anchor":new io(le.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new no(le.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new no(le.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new no(le.layout_symbol["text-rotation-alignment"]),"text-field":new io(le.layout_symbol["text-field"]),"text-font":new io(le.layout_symbol["text-font"]),"text-size":new io(le.layout_symbol["text-size"]),"text-max-width":new io(le.layout_symbol["text-max-width"]),"text-line-height":new no(le.layout_symbol["text-line-height"]),"text-letter-spacing":new io(le.layout_symbol["text-letter-spacing"]),"text-justify":new io(le.layout_symbol["text-justify"]),"text-radial-offset":new io(le.layout_symbol["text-radial-offset"]),"text-variable-anchor":new no(le.layout_symbol["text-variable-anchor"]),"text-anchor":new io(le.layout_symbol["text-anchor"]),"text-max-angle":new no(le.layout_symbol["text-max-angle"]),"text-writing-mode":new no(le.layout_symbol["text-writing-mode"]),"text-rotate":new io(le.layout_symbol["text-rotate"]),"text-padding":new no(le.layout_symbol["text-padding"]),"text-keep-upright":new no(le.layout_symbol["text-keep-upright"]),"text-transform":new io(le.layout_symbol["text-transform"]),"text-offset":new io(le.layout_symbol["text-offset"]),"text-allow-overlap":new no(le.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new no(le.layout_symbol["text-ignore-placement"]),"text-optional":new no(le.layout_symbol["text-optional"])}),td={paint:new lo({"icon-opacity":new io(le.paint_symbol["icon-opacity"]),"icon-color":new io(le.paint_symbol["icon-color"]),"icon-halo-color":new io(le.paint_symbol["icon-halo-color"]),"icon-halo-width":new io(le.paint_symbol["icon-halo-width"]),"icon-halo-blur":new io(le.paint_symbol["icon-halo-blur"]),"icon-translate":new no(le.paint_symbol["icon-translate"]),"icon-translate-anchor":new no(le.paint_symbol["icon-translate-anchor"]),"text-opacity":new io(le.paint_symbol["text-opacity"]),"text-color":new io(le.paint_symbol["text-color"],{runtimeType:xe,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new io(le.paint_symbol["text-halo-color"]),"text-halo-width":new io(le.paint_symbol["text-halo-width"]),"text-halo-blur":new io(le.paint_symbol["text-halo-blur"]),"text-translate":new no(le.paint_symbol["text-translate"]),"text-translate-anchor":new no(le.paint_symbol["text-translate-anchor"])}),layout:Qp},ed=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:me,this.defaultValue=t};ed.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},ed.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},ed.prototype.outputDefined=function(){return!1},ed.prototype.serialize=function(){return null},ga("FormatSectionOverride",ed,{omit:["defaultValue"]});var rd=function(t){function e(e){t.call(this,e,td)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var n=this.layout.get("text-writing-mode");if(n){for(var i=[],a=0,o=n;a<o.length;a+=1){var s=o[a];i.indexOf(s)<0&&i.push(s)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||ui(a.value)||!i?i:$p(e.properties,i)},e.prototype.createBucket=function(t){return new Jp(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=td.paint.overridableProperties;t<r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i=this.paint.get(n),a=new ed(i),o=new ci(a,i.property.specification),s=null;s="constant"===i.value.kind||"source"===i.value.kind?new pi("source",o):new di("composite",o,i.value.zoomStops,i.value._interpolationType),this.paint._values[n]=new eo(i.property,s,i.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&&e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get("text-field"),n=td.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e<r.length;e+=1){var a=r[e];if(n.overrides&&n.overrides.hasOverride(a))return void(i=!0)}};if("constant"===r.value.kind&&r.value.value instanceof Fe)a(r.value.value.sections);else if("source"===r.value.kind){var o=function t(e){if(!i)if(e instanceof qe&&Ve(e.value)===Me){var r=e.value;a(r.sections)}else e instanceof Xe?a(e.sections):e.eachChild(t)},s=r.value;s._styleExpression&&o(s._styleExpression.expression)}return i},e}(uo),nd={paint:new lo({"background-color":new no(le.paint_background["background-color"]),"background-pattern":new oo(le.paint_background["background-pattern"]),"background-opacity":new no(le.paint_background["background-opacity"])})},id=function(t){function e(e){t.call(this,e,nd)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(uo),ad={paint:new lo({"raster-opacity":new no(le.paint_raster["raster-opacity"]),"raster-hue-rotate":new no(le.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new no(le.paint_raster["raster-brightness-min"]),"raster-brightness-max":new no(le.paint_raster["raster-brightness-max"]),"raster-saturation":new no(le.paint_raster["raster-saturation"]),"raster-contrast":new no(le.paint_raster["raster-contrast"]),"raster-resampling":new no(le.paint_raster["raster-resampling"]),"raster-fade-duration":new no(le.paint_raster["raster-fade-duration"])})},od=function(t){function e(e){t.call(this,e,ad)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(uo);function sd(t){var e=[],r=t.id;return void 0===r&&e.push({message:"layers."+r+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+r+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+r+': property "renderingMode" must be either "2d" or "3d"'}),e}var ld=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},e}(uo),cd={circle:zl,heatmap:Yl,hillshade:Zl,fill:Hc,"fill-extrusion":pu,line:Iu,symbol:rd,background:id,raster:od};function ud(t){return"custom"===t.type?new ld(t):new cd[t.type](t)}var fd=self.HTMLImageElement,pd=self.HTMLCanvasElement,dd=self.HTMLVideoElement,hd=self.ImageData,gd=self.ImageBitmap,md=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};md.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=(!this.size||this.size[0]!==n||this.size[1]!==i)&&!r,o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&&e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof fd||t instanceof pd||t instanceof dd||t instanceof hd||gd&&t instanceof gd?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof fd||t instanceof pd||t instanceof dd||t instanceof hd||gd&&t instanceof gd?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},md.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},md.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1===0},md.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var vd=function(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!==typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};vd.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},vd.prototype.remove=function(){delete this._channel,this._callback=function(){}};var yd=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},w(["receive","process"],this),this.invoker=new vd(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=P()?t:self};function bd(t,e,r){var n=xd(256*t,256*(e=Math.pow(2,r)-e-1),r),i=xd(256*(t+1),256*(e+1),r);return n[0]+","+n[1]+","+i[0]+","+i[1]}function xd(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}yd.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&&(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(this.callbacks[o]=r);var s=z(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:ba(e,s)},s),{cancel:function(){r&&delete a.callbacks[o],a.target.postMessage({id:o,type:"<cancel>",targetMapId:n,sourceMapId:a.mapId})}}},yd.prototype.receive=function(t){var e=t.data,r=e.id;if(r&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&&n()}else P()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},yd.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},yd.prototype.processTask=function(t,e){var r=this;if("<response>"===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&&(e.error?n(xa(e.error)):n(null,xa(e.data)))}else{var i=!1,a=z(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:"<response>",sourceMapId:r.mapId,error:e?ba(e):null,data:ba(n,a)},a)}:function(t){i=!0},s=null,l=xa(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},yd.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var _d=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};_d.prototype.setNorthEast=function(t){return this._ne=t instanceof kd?new kd(t.lng,t.lat):kd.convert(t),this},_d.prototype.setSouthWest=function(t){return this._sw=t instanceof kd?new kd(t.lng,t.lat):kd.convert(t),this},_d.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof kd)e=t,r=t;else{if(!(t instanceof _d)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(_d.convert(a))}var o=t;return this.extend(kd.convert(o))}return this}if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new kd(e.lng,e.lat),this._ne=new kd(r.lng,r.lat)),this},_d.prototype.getCenter=function(){return new kd((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},_d.prototype.getSouthWest=function(){return this._sw},_d.prototype.getNorthEast=function(){return this._ne},_d.prototype.getNorthWest=function(){return new kd(this.getWest(),this.getNorth())},_d.prototype.getSouthEast=function(){return new kd(this.getEast(),this.getSouth())},_d.prototype.getWest=function(){return this._sw.lng},_d.prototype.getSouth=function(){return this._sw.lat},_d.prototype.getEast=function(){return this._ne.lng},_d.prototype.getNorth=function(){return this._ne.lat},_d.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},_d.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},_d.prototype.isEmpty=function(){return!(this._sw&&this._ne)},_d.prototype.contains=function(t){var e=kd.convert(t),r=e.lng,n=e.lat,i=this._sw.lat<=n&&n<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),i&&a},_d.convert=function(t){return!t||t instanceof _d?t:new _d(t)};var wd=6371008.8,kd=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};kd.prototype.wrap=function(){return new kd(p(this.lng,-180,180),this.lat)},kd.prototype.toArray=function(){return[this.lng,this.lat]},kd.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},kd.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return wd*Math.acos(Math.min(i,1))},kd.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new _d(new kd(this.lng-r,this.lat-e),new kd(this.lng+r,this.lat+e))},kd.convert=function(t){if(t instanceof kd)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new kd(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"===typeof t&&null!==t)return new kd(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Td=2*Math.PI*wd;function Md(t){return Td*Math.cos(t*Math.PI/180)}function Ad(t){return(180+t)/360}function Sd(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Ed(t,e){return t/Md(e)}function Cd(t){return 360*t-180}function Od(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Ld(t,e){return t*Md(Od(e))}function Id(t){return 1/Math.cos(t*Math.PI/180)}var Pd=function(t,e,r){void 0===r&&(r=0),this.x=+t,this.y=+e,this.z=+r};Pd.fromLngLat=function(t,e){void 0===e&&(e=0);var r=kd.convert(t);return new Pd(Ad(r.lng),Sd(r.lat),Ed(e,r.lat))},Pd.prototype.toLngLat=function(){return new kd(Cd(this.x),Od(this.y))},Pd.prototype.toAltitude=function(){return Ld(this.z,this.y)},Pd.prototype.meterInMercatorCoordinateUnits=function(){return 1/Td*Id(Od(this.y))};var Dd=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=Nd(0,t,t,e,r)};Dd.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Dd.prototype.url=function(t,e){var r=bd(this.x,this.y,this.z),n=Fd(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",n).replace("{bbox-epsg-3857}",r)},Dd.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new a((t.x*e-this.x)*Is,(t.y*e-this.y)*Is)},Dd.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var Rd=function(t,e){this.wrap=t,this.canonical=e,this.key=Nd(t,e.z,e.z,e.x,e.y)},zd=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new Dd(r,+n,+i),this.key=Nd(e,t,r,n,i)};function Nd(t,e,r,n,i){(t*=2)<0&&(t=-1*t-1);var a=1<<r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}function Fd(t,e,r){for(var n,i="",a=t;a>0;a--)i+=(e&(n=1<<a-1)?1:0)+(r&n?2:0);return i}zd.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},zd.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new zd(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new zd(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},zd.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t>this.canonical.z?Nd(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):Nd(this.wrap*+e,t,t,this.canonical.x>>r,this.canonical.y>>r)},zd.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},zd.prototype.children=function(t){if(this.overscaledZ>=t)return[new zd(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new zd(e,this.wrap,e,r,n),new zd(e,this.wrap,e,r+1,n),new zd(e,this.wrap,e,r,n+1),new zd(e,this.wrap,e,r+1,n+1)]},zd.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},zd.prototype.wrapped=function(){return new zd(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},zd.prototype.unwrapTo=function(t){return new zd(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},zd.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},zd.prototype.toUnwrapped=function(){return new Rd(this.wrap,this.canonical)},zd.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},zd.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Pd(t.x-this.wrap,t.y))},ga("CanonicalTileID",Dd),ga("OverscaledTileID",zd,{omit:["posMatrix"]});var Bd=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(r&&"mapbox"!==r&&"terrarium"!==r)return C('"'+r+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||"mapbox";for(var i=0;i<n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};function jd(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&&(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o<s.length;o+=1){var l=s[o];r[l.id]=t}}},i=0,a=t;i<a.length;i+=1)n();return r}Bd.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Bd.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Bd.prototype._idx=function(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Bd.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Bd.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Bd.prototype.getPixels=function(){return new ql({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Bd.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c<o;c++)for(var u=n;u<i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},ga("DEMData",Bd);var Ud=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Ud.prototype.encode=function(t){return this._stringToNumber[t]},Ud.prototype.decode=function(t){return this._numberToString[t]};var Vd=function(t,e,r,n,i){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Hd={geometry:{configurable:!0}};Hd.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Hd.geometry.set=function(t){this._geometry=t},Vd.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Vd.prototype,Hd);var qd=function(){this.state={},this.stateChanges={},this.deletedStates={}};qd.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},m(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&&(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&&this.deletedStates[t][n]&&null===this.deletedStates[t][n][o]&&delete this.deletedStates[t][n][o]},qd.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&&void 0!==e)null!==this.deletedStates[t][n]&&(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},qd.prototype.getState=function(t,e){var r=String(e),n=this.state[t]||{},i=this.stateChanges[t]||{},a=m({},n[r],i[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var o=this.deletedStates[t][e];if(null===o)return{};for(var s in o)delete a[s]}return a},qd.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},qd.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),m(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var u=0,f=Object.keys(this.deletedStates[o][c]);u<f.length;u+=1){var p=f[u];delete this.state[o][c][p]}s[c]=this.state[o][c]}r[o]=r[o]||{},m(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var d in t)t[d].setFeatureState(r,e)};var Gd=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new ca(Is,16,0),this.grid3D=new ca(Is,16,0),this.featureIndexArray=new Jo,this.promoteId=e};function Wd(t,e,r,n,i){return T(t,(function(t,a){var o=e instanceof ro?e.get(a):null;return o&&o.evaluate?o.evaluate(r,n,i):o}))}function Yd(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a<o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Xd(t,e){return e-t}Gd.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l<e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f<c.length;f++){var p=c[f];u[0]=Math.min(u[0],p.x),u[1]=Math.min(u[1],p.y),u[2]=Math.max(u[2],p.x),u[3]=Math.max(u[3],p.y)}u[0]<Is&&u[1]<Is&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}},Gd.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new nu.VectorTile(new Yu(this.rawTileData)).layers,this.sourceLayerCoder=new Ud(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Gd.prototype.query=function(t,e,r,n){var i=this;this.loadVTLayers();for(var a=t.params||{},o=Is/t.tileSize/t.scale,s=Oi(a.filter),l=t.queryGeometry,c=t.queryPadding*o,u=Yd(l),f=this.grid.query(u.minX-c,u.minY-c,u.maxX+c,u.maxY+c),p=Yd(t.cameraQueryGeometry),d=0,h=this.grid3D.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c,(function(e,r,n,i){return Zs(t.cameraQueryGeometry,e-c,r-c,n+c,i+c)}));d<h.length;d+=1){var g=h[d];f.push(g)}f.sort(Xd);for(var m,v={},y=function(c){var u=f[c];if(u!==m){m=u;var p=i.featureIndexArray.get(u),d=null;i.loadMatchingFeature(v,p.bucketIndex,p.sourceLayerIndex,p.featureIndex,s,a.layers,a.availableImages,e,r,n,(function(e,r,n){return d||(d=Rs(e)),r.queryIntersectsFeature(l,e,n,d,i.z,t.transform,o,t.pixelPosMatrix)}))}},b=0;b<f.length;b++)y(b);return v},Gd.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||S(a,f)){var p=this.sourceLayerCoder.decode(r),d=this.vtLayers[p].feature(n);if(i.filter(new Xa(this.tileID.overscaledZ),d))for(var h=this.getId(d,p),g=0;g<f.length;g++){var m=f[g];if(!(a&&a.indexOf(m)<0)){var v=s[m];if(v){var y={};void 0!==h&&c&&(y=c.getState(v.sourceLayer||"_geojsonTileLayer",h));var b=l[m];b.paint=Wd(b.paint,v.paint,d,y,o),b.layout=Wd(b.layout,v.layout,d,y,o);var x=!u||u(d,v,y);if(x){var _=new Vd(d,this.z,this.x,this.y,h);_.layer=b;var w=t[m];void 0===w&&(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:x})}}}}}},Gd.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=Oi(i),u=0,f=t;u<f.length;u+=1){var p=f[u];this.loadMatchingFeature(l,r,n,p,c,a,o,s,e)}return l},Gd.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e<r.length;e+=1)for(var n=0,i=r[e];n<i.length;n+=1)if(t===i[n])return!0;return!1},Gd.prototype.getId=function(t,e){var r=t.id;if(this.promoteId){var n="string"===typeof this.promoteId?this.promoteId:this.promoteId[e];"boolean"===typeof(r=t.properties[n])&&(r=Number(r))}return r},ga("FeatureIndex",Gd,{omit:["rawTileData","sourceLayerCoder"]});var Zd=3e4,Kd=function(t,e){this.tileID=t,this.uid=b(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};Kd.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<Y.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},Kd.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},Kd.prototype.loadVectorData=function(t,e,r){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var n in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=jd(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof Jp){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof Jp&&o.hasRTLText){this.hasRTLText=!0,Ya();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Ho},Kd.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},Kd.prototype.getBucket=function(t){return this.buckets[t.id]},Kd.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&&r.upload(t)}var n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new md(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new md(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},Kd.prototype.prepare=function(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},Kd.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},Kd.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&&r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:"",a=n._geojsonTileLayer||n[i];if(a)for(var o=Oi(e&&e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},p=0;p<a.length;p++){var d=a.feature(p);if(o.filter(new Xa(this.tileID.overscaledZ),d)){var h=r.getId(d,i),g=new Vd(d,l,c,u,h);g.tile=f,t.push(g)}}}},Kd.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},Kd.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},Kd.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=D(t.cacheControl);r["max-age"]&&(this.expirationTime=Date.now()+1e3*r["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime>n)i=!1;else if(e)if(this.expirationTime<e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,Zd):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},Kd.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},Kd.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||"_geojsonTileLayer",o=r[a],s=t[a];if(o&&s&&0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&&this.imageAtlas.patternPositions||{});var l=e&&e.style&&e.style.getLayer(n);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},Kd.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},Kd.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Y.now()},Kd.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},Kd.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=Y.now()+t},Kd.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n<i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},Kd.prototype.hasDependency=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=this.dependencies[i];if(a)for(var o=0,s=e;o<s.length;o+=1)if(a[s[o]])return!0}return!1};var Jd=["type","source","source-layer","minzoom","maxzoom","filter","layout"],$d=self.performance,Qd=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},$d.mark(this._marks.start)};Qd.prototype.finish=function(){$d.mark(this._marks.end);var t=$d.getEntriesByName(this._marks.measure);return 0===t.length&&($d.measure(this._marks.measure,this._marks.start,this._marks.end),t=$d.getEntriesByName(this._marks.measure),$d.clearMarks(this._marks.start),$d.clearMarks(this._marks.end),$d.clearMeasures(this._marks.measure)),t},t.Actor=yd,t.AlphaImage=Hl,t.CanonicalTileID=Dd,t.CollisionBoxArray=Ho,t.Color=Re,t.DEMData=Bd,t.DataConstantProperty=no,t.DictionaryCoder=Ud,t.EXTENT=Is,t.ErrorEvent=oe,t.EvaluationParameters=Xa,t.Event=ae,t.Evented=se,t.FeatureIndex=Gd,t.FillBucket=jc,t.FillExtrusionBucket=lu,t.ImageAtlas=If,t.ImagePosition=Of,t.LineBucket=Su,t.LngLat=kd,t.LngLatBounds=_d,t.MercatorCoordinate=Pd,t.ONE_EM=Gu,t.OverscaledTileID=zd,t.Point=a,t.Point$1=a,t.Properties=lo,t.Protobuf=Yu,t.RGBAImage=ql,t.RequestManager=rt,t.RequestPerformance=Qd,t.ResourceType=Bt,t.SegmentVector=Qo,t.SourceFeatureState=qd,t.StructArrayLayout1ui2=Bo,t.StructArrayLayout2f1f2i16=Oo,t.StructArrayLayout2i4=xo,t.StructArrayLayout3ui6=Io,t.StructArrayLayout4i8=_o,t.SymbolBucket=Jp,t.Texture=md,t.Tile=Kd,t.Transitionable=Ja,t.Uniform1f=hs,t.Uniform1i=ds,t.Uniform2f=gs,t.Uniform3f=ms,t.Uniform4f=vs,t.UniformColor=ys,t.UniformMatrix4f=xs,t.UnwrappedTileID=Rd,t.ValidationError=ce,t.WritingMode=Pf,t.ZoomHistory=_a,t.add=_l,t.addDynamicAttributes=Yp,t.asyncAll=d,t.bezier=c,t.bindAll=w,t.browser=Y,t.cacheEntryPossiblyAdded=Dt,t.clamp=f,t.clearTileCache=zt,t.clipLine=mp,t.clone=ll,t.clone$1=A,t.clone$2=xl,t.collisionCircleLayout=Bu,t.config=X,t.create=sl,t.create$1=al,t.create$2=nl,t.createCommonjsModule=e,t.createExpression=fi,t.createLayout=vo,t.createStyleLayer=ud,t.cross=Al,t.deepEqual=s,t.dot=Ml,t.dot$1=Ll,t.ease=u,t.emitValidationErrors=la,t.endsWith=k,t.enforceCacheSizeLimit=Rt,t.evaluateSizeForFeature=op,t.evaluateSizeForZoom=sp,t.evaluateVariableOffset=Dp,t.evented=Ua,t.extend=m,t.featureFilter=Oi,t.filterObject=M,t.fromRotation=ol,t.getAnchorAlignment=Jf,t.getAnchorJustification=zp,t.getArrayBuffer=Yt,t.getImage=ee,t.getJSON=Wt,t.getRTLTextPluginStatus=Va,t.getReferrer=Ut,t.getVideo=re,t.identity=cl,t.invert=ul,t.isChar=wa,t.isMapboxURL=nt,t.keysDifference=g,t.makeRequest=Gt,t.mapObject=T,t.mercatorXfromLng=Ad,t.mercatorYfromLat=Sd,t.mercatorZfromAltitude=Ed,t.mul=yl,t.multiply=fl,t.mvt=nu,t.normalize=Tl,t.number=zr,t.offscreenCanvasSupported=Ft,t.ortho=vl,t.parseGlyphPBF=Af,t.pbf=Yu,t.performSymbolLayout=Rp,t.perspective=ml,t.pick=v,t.plugin=Wa,t.polygonIntersectsPolygon=Fs,t.postMapLoadEvent=_t,t.postTurnstileEvent=bt,t.potpack=Ef,t.refProperties=Jd,t.register=ga,t.registerForPluginStateChange=Ha,t.rotate=il,t.rotateX=hl,t.rotateZ=gl,t.scale=dl,t.scale$1=Ol,t.scale$2=kl,t.setCacheLimits=Nt,t.setRTLTextPlugin=qa,t.sphericalToCartesian=I,t.sqrLen=Rl,t.styleSpec=le,t.sub=El,t.symbolSize=lp,t.transformMat3=Sl,t.transformMat4=Il,t.translate=pl,t.triggerPluginCompletionEvent=Ba,t.uniqueId=b,t.validateCustomStyleLayer=sd,t.validateLight=aa,t.validateStyle=ia,t.values=h,t.vectorTile=nu,t.version=r,t.warnOnce=C,t.webpSupported=Z,t.window=self,t.wrap=p})),n(["./shared"],(function(t){function e(t){var r=typeof t;if("number"===r||"boolean"===r||"string"===r||void 0===t||null===t)return JSON.stringify(t);if(Array.isArray(t)){for(var n="[",i=0,a=t;i<a.length;i+=1)n+=e(a[i])+",";return n+"]"}for(var o=Object.keys(t).sort(),s="{",l=0;l<o.length;l++)s+=JSON.stringify(o[l])+":"+e(t[o[l]])+",";return s+"}"}function r(r){for(var n="",i=0,a=t.refProperties;i<a.length;i+=1)n+="/"+e(r[a[i]]);return n}function n(t,e){for(var n={},i=0;i<t.length;i++){var a=e&&e[t[i].id]||r(t[i]);e&&(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}var i=function(t){this.keyCache={},t&&this.replace(t)};i.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},i.prototype.update=function(e,r){for(var i=this,a=0,o=e;a<o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var c=0,u=r;c<u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var p=0,d=n(t.values(this._layerConfigs),this.keyCache);p<d.length;p+=1){var h=d[p].map((function(t){return i._layers[t.id]})),g=h[0];if("none"!==g.visibility){var m=g.source||"",v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||"_geojsonTileLayer",b=v[y];b||(b=v[y]=[]),b.push(h)}}};var a=1,o=function(e){var r={},n=[];for(var i in e){var o=e[i],s=r[i]={};for(var l in o){var c=o[+l];if(c&&0!==c.bitmap.width&&0!==c.bitmap.height){var u={x:0,y:0,w:c.bitmap.width+2*a,h:c.bitmap.height+2*a};n.push(u),s[l]={rect:u,metrics:c.metrics}}}}var f=t.potpack(n),p=f.w,d=f.h,h=new t.AlphaImage({width:p||1,height:d||1});for(var g in e){var m=e[g];for(var v in m){var y=m[+v];if(y&&0!==y.bitmap.width&&0!==y.bitmap.height){var b=r[g][v].rect;t.AlphaImage.copy(y.bitmap,h,{x:0,y:0},{x:b.x+a,y:b.y+a},y.bitmap)}}}this.image=h,this.positions=r};t.register("GlyphAtlas",o);var s=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function l(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a<o.length;a+=1)o[a].recalculate(i,n)}function c(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&&r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}s.prototype.parse=function(e,r,n,i,a){var s=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,p,d,h,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var b=e.layers[y];if(b){1===b.version&&t.warnOnce('Vector tile source "'+this.source+'" layer "'+y+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var x=c.encode(y),_=[],w=0;w<b.length;w++){var k=b.feature(w),T=u.getId(k,y);_.push({feature:k,id:T,index:w,sourceLayerIndex:x})}for(var M=0,A=v[y];M<A.length;M+=1){var S=A[M],E=S[0];E.minzoom&&this.zoom<Math.floor(E.minzoom)||E.maxzoom&&this.zoom>=E.maxzoom||"none"!==E.visibility&&(l(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:x,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?i.send("getGlyphs",{uid:this.uid,stacks:C},(function(t,e){f||(f=t,p=e,I.call(s))})):p={};var O=Object.keys(m.iconDependencies);O.length?i.send("getImages",{icons:O,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){f||(f=t,d=e,I.call(s))})):d={};var L=Object.keys(m.patternDependencies);function I(){if(f)return a(f);if(p&&d&&h){var e=new o(p),r=new t.ImageAtlas(d,h);for(var i in g){var s=g[i];s instanceof t.SymbolBucket?(l(s.layers,this.zoom,n),t.performSymbolLayout(s,p,e.positions,d,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):s.hasPattern&&(s instanceof t.LineBucket||s instanceof t.FillBucket||s instanceof t.FillExtrusionBucket)&&(l(s.layers,this.zoom,n),s.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status="done",a(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?e.positions:null})}}L.length?i.send("getImages",{icons:L,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){f||(f=t,h=e,I.call(s))})):h={},I.call(this)};var u=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||c,this.loading={},this.loaded={}};u.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),o=this.loading[i]=new s(e);o.abort=this.loadVectorData(e,(function(e,s){if(delete n.loading[i],e||!s)return o.status="done",n.loaded[i]=o,r(e);var l=s.rawData,c={};s.expires&&(c.expires=s.expires),s.cacheControl&&(c.cacheControl=s.cacheControl);var u={};if(a){var f=a.finish();f&&(u.resourceTiming=JSON.parse(JSON.stringify(f)))}o.vectorTile=s.vectorTile,o.parse(s.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=o}))},u.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&&n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&&(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),e()},u.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&&r[n]&&delete r[n],e()};var f=t.window.ImageBitmap,p=function(){this.loaded={}};p.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=f&&a instanceof f?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},p.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},p.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]};var d=h;function h(t,e){var r,n=t&&t.type;if("FeatureCollection"===n)for(r=0;r<t.features.length;r++)h(t.features[r],e);else if("GeometryCollection"===n)for(r=0;r<t.geometries.length;r++)h(t.geometries[r],e);else if("Feature"===n)h(t.geometry,e);else if("Polygon"===n)g(t.coordinates,e);else if("MultiPolygon"===n)for(r=0;r<t.coordinates.length;r++)g(t.coordinates[r],e);return t}function g(t,e){if(0!==t.length){m(t[0],e);for(var r=1;r<t.length;r++)m(t[r],!e)}}function m(t,e){for(var r=0,n=0,i=t.length,a=i-1;n<i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r>=0!==!!e&&t.reverse()}var v=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,y=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};y.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r<n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o<s.length;o+=1){for(var l=[],c=0,u=s[o];c<u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},y.prototype.toGeoJSON=function(t,e,r){return v.call(this,t,e,r)};var b=function(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e};b.prototype.feature=function(t){return new y(this._features[t])};var x=t.vectorTile.VectorTileFeature,_=w;function w(t,e){this.options=e||{},this.features=t,this.length=t.length}function k(t,e){this.id="number"===typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}w.prototype.feature=function(t){return new k(this.features[t],this.options.extent)},k.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r<e.length;r++){for(var n=e[r],i=[],a=0;a<n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},k.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},k.prototype.toGeoJSON=x.prototype.toGeoJSON;var T=E,M=E,A=C,S=_;function E(e){var r=new t.pbf;return O(e,r),r.finish()}function C(t,e){e=e||{};var r={};for(var n in t)r[n]=new _(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return E({layers:r})}function O(t,e){for(var r in t.layers)e.writeMessage(3,L,t.layers[r])}function L(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r<t.length;r++)n.feature=t.feature(r),e.writeMessage(2,I,n);var i=n.keys;for(r=0;r<i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r<a.length;r++)e.writeMessage(4,N,a[r])}function I(t,e){var r=t.feature;void 0!==r.id&&e.writeVarintField(1,r.id),e.writeMessage(2,P,t),e.writeVarintField(3,r.type),e.writeMessage(4,z,r)}function P(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];"undefined"===typeof l&&(n.push(s),l=n.length-1,a[s]=l),e.writeVarint(l);var c=r.properties[s],u=typeof c;"string"!==u&&"boolean"!==u&&"number"!==u&&(c=JSON.stringify(c));var f=u+":"+c,p=o[f];"undefined"===typeof p&&(i.push(c),p=i.length-1,o[f]=p),e.writeVarint(p)}}function D(t,e){return(e<<3)+(7&t)}function R(t){return t<<1^t>>31}function z(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s<o;s++){var l=r[s],c=1;1===n&&(c=l.length),e.writeVarint(D(1,c));for(var u=3===n?l.length-1:l.length,f=0;f<u;f++){1===f&&1!==n&&e.writeVarint(D(2,u-1));var p=l[f].x-i,d=l[f].y-a;e.writeVarint(R(p)),e.writeVarint(R(d)),i+=p,a+=d}3===n&&e.writeVarint(D(7,1))}}function N(t,e){var r=typeof t;"string"===r?e.writeStringField(1,t):"boolean"===r?e.writeBooleanField(7,t):"number"===r&&(t%1!==0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function F(t,e,r,n,i,a){if(!(i-n<=r)){var o=n+i>>1;B(t,e,o,n,i,a%2),F(t,e,r,n,o-1,a+1),F(t,e,r,o+1,i,a+1)}}function B(t,e,r,n,i,a){for(;i>n;){if(i-n>600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);B(t,e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[2*r+a],p=n,d=i;for(j(t,e,n,r),e[2*i+a]>f&&j(t,e,n,i);p<d;){for(j(t,e,p,d),p++,d--;e[2*p+a]<f;)p++;for(;e[2*d+a]>f;)d--}e[2*n+a]===f?j(t,e,n,d):j(t,e,++d,i),d<=r&&(n=d+1),r<=d&&(i=d-1)}}function j(t,e,r,n){U(t,r,n),U(e,2*r,2*n),U(e,2*r+1,2*n+1)}function U(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function V(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),p=c.pop(),d=c.pop();if(p-d<=o)for(var h=d;h<=p;h++)s=e[2*h],l=e[2*h+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[h]);else{var g=Math.floor((d+p)/2);s=e[2*g],l=e[2*g+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[g]);var m=(f+1)%2;(0===f?r<=s:n<=l)&&(c.push(d),c.push(g-1),c.push(m)),(0===f?i>=s:a>=l)&&(c.push(g+1),c.push(p),c.push(m))}}return u}function H(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f<=a)for(var p=f;p<=u;p++)q(e[2*p],e[2*p+1],r,n)<=l&&s.push(t[p]);else{var d=Math.floor((f+u)/2),h=e[2*d],g=e[2*d+1];q(h,g,r,n)<=l&&s.push(t[d]);var m=(c+1)%2;(0===c?r-i<=h:n-i<=g)&&(o.push(f),o.push(d-1),o.push(m)),(0===c?r+i>=h:n+i>=g)&&(o.push(d+1),o.push(u),o.push(m))}}return s}function q(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}T.fromVectorTileJs=M,T.fromGeojsonVt=A,T.GeoJSONWrapper=S;var G=function(t){return t[0]},W=function(t){return t[1]},Y=function(t,e,r,n,i){void 0===e&&(e=G),void 0===r&&(r=W),void 0===n&&(n=64),void 0===i&&(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length<65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l<t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);F(o,s,n,0,o.length-1,0)};Y.prototype.range=function(t,e,r,n){return V(this.ids,this.coords,t,e,r,n,this.nodeSize)},Y.prototype.within=function(t,e,r){return H(this.ids,this.coords,t,e,r,this.nodeSize)};var X={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},Z=function(t){this.options=it(Object.create(X),t),this.trees=new Array(this.options.maxZoom+1)};function K(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function J(t,e){var r=t.geometry.coordinates,n=r[0],i=r[1];return{x:tt(n),y:et(i),zoom:1/0,index:e,parentId:-1}}function $(t){return{type:"Feature",id:t.id,properties:Q(t),geometry:{type:"Point",coordinates:[rt(t.x),nt(t.y)]}}}function Q(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return it(it({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function rt(t){return 360*(t-.5)}function nt(t){var e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function it(t,e){for(var r in e)t[r]=e[r];return t}function at(t){return t.x}function ot(t){return t.y}function st(t,e,r,n){for(var i,a=n,o=r-e>>1,s=r-e,l=t[e],c=t[e+1],u=t[r],f=t[r+1],p=e+3;p<r;p+=3){var d=lt(t[p],t[p+1],l,c,u,f);if(d>a)i=p,a=d;else if(d===a){var h=Math.abs(p-o);h<s&&(i=p,s=h)}}a>n&&(i-e>3&&st(t,e,i,n),t[i+2]=a,r-i>3&&st(t,i,r,n))}function lt(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function ct(t,e,r,n){var i={id:"undefined"===typeof t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ut(i),i}function ut(t){var e=t.geometry,r=t.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)ft(t,e);else if("Polygon"===r||"MultiLineString"===r)for(var n=0;n<e.length;n++)ft(t,e[n]);else if("MultiPolygon"===r)for(n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)ft(t,e[n][i])}function ft(t,e){for(var r=0;r<e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function pt(t,e){var r=[];if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)dt(r,t.features[n],e,n);else"Feature"===t.type?dt(r,t,e):dt(r,{geometry:t},e);return r}function dt(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1<<r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&&(l=n||0),"Point"===a)ht(i,s);else if("MultiPoint"===a)for(var c=0;c<i.length;c++)ht(i[c],s);else if("LineString"===a)gt(i,s,o,!1);else if("MultiLineString"===a){if(r.lineMetrics){for(c=0;c<i.length;c++)s=[],gt(i[c],s,o,!1),t.push(ct(l,"LineString",s,e.properties));return}mt(i,s,o,!1)}else if("Polygon"===a)mt(i,s,o,!0);else{if("MultiPolygon"!==a){if("GeometryCollection"===a){for(c=0;c<e.geometry.geometries.length;c++)dt(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<i.length;c++){var u=[];mt(i[c],u,o,!0),s.push(u)}}t.push(ct(l,a,s,e.properties))}}function ht(t,e){e.push(vt(t[0])),e.push(yt(t[1])),e.push(0)}function gt(t,e,r,n){for(var i,a,o=0,s=0;s<t.length;s++){var l=vt(t[s][0]),c=yt(t[s][1]);e.push(l),e.push(c),e.push(0),s>0&&(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,st(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function mt(t,e,r,n){for(var i=0;i<t.length;i++){var a=[];gt(t[i],a,r,n),e.push(a)}}function vt(t){return t/360+.5}function yt(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function bt(t,e,r,n,i,a,o,s){if(n/=e,a>=(r/=e)&&o<n)return t;if(o<r||a>=n)return null;for(var l=[],c=0;c<t.length;c++){var u=t[c],f=u.geometry,p=u.type,d=0===i?u.minX:u.minY,h=0===i?u.maxX:u.maxY;if(d>=r&&h<n)l.push(u);else if(!(h<r||d>=n)){var g=[];if("Point"===p||"MultiPoint"===p)xt(f,g,r,n,i);else if("LineString"===p)_t(f,g,r,n,i,!1,s.lineMetrics);else if("MultiLineString"===p)kt(f,g,r,n,i,!1);else if("Polygon"===p)kt(f,g,r,n,i,!0);else if("MultiPolygon"===p)for(var m=0;m<f.length;m++){var v=[];kt(f[m],v,r,n,i,!0),v.length&&g.push(v)}if(g.length){if(s.lineMetrics&&"LineString"===p){for(m=0;m<g.length;m++)l.push(ct(u.id,p,g[m],u.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===g.length?(p="LineString",g=g[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===g.length?"Point":"MultiPoint"),l.push(ct(u.id,p,g,u.tags))}}}return l.length?l:null}function xt(t,e,r,n,i){for(var a=0;a<t.length;a+=3){var o=t[a+i];o>=r&&o<=n&&(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function _t(t,e,r,n,i,a,o){for(var s,l,c=wt(t),u=0===i?Mt:At,f=t.start,p=0;p<t.length-3;p+=3){var d=t[p],h=t[p+1],g=t[p+2],m=t[p+3],v=t[p+4],y=0===i?d:h,b=0===i?m:v,x=!1;o&&(s=Math.sqrt(Math.pow(d-m,2)+Math.pow(h-v,2))),y<r?b>r&&(l=u(c,d,h,m,v,r),o&&(c.start=f+s*l)):y>n?b<n&&(l=u(c,d,h,m,v,n),o&&(c.start=f+s*l)):Tt(c,d,h,g),b<r&&y>=r&&(l=u(c,d,h,m,v,r),x=!0),b>n&&y<=n&&(l=u(c,d,h,m,v,n),x=!0),!a&&x&&(o&&(c.end=f+s*l),e.push(c),c=wt(t)),o&&(f+=s)}var _=t.length-3;d=t[_],h=t[_+1],g=t[_+2],(y=0===i?d:h)>=r&&y<=n&&Tt(c,d,h,g),_=c.length-3,a&&_>=3&&(c[_]!==c[0]||c[_+1]!==c[1])&&Tt(c,c[0],c[1],c[2]),c.length&&e.push(c)}function wt(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function kt(t,e,r,n,i,a){for(var o=0;o<t.length;o++)_t(t[o],e,r,n,i,a,!1)}function Tt(t,e,r,n){t.push(e),t.push(r),t.push(n)}function Mt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function At(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function St(t,e){var r=e.buffer/e.extent,n=t,i=bt(t,1,-1-r,r,0,-1,2,e),a=bt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&&(n=bt(t,1,-r,1+r,0,-1,2,e)||[],i&&(n=Et(i,1).concat(n)),a&&(n=n.concat(Et(a,-1)))),n}function Et(t,e){for(var r=[],n=0;n<t.length;n++){var i,a=t[n],o=a.type;if("Point"===o||"MultiPoint"===o||"LineString"===o)i=Ct(a.geometry,e);else if("MultiLineString"===o||"Polygon"===o){i=[];for(var s=0;s<a.geometry.length;s++)i.push(Ct(a.geometry[s],e))}else if("MultiPolygon"===o)for(i=[],s=0;s<a.geometry.length;s++){for(var l=[],c=0;c<a.geometry[s].length;c++)l.push(Ct(a.geometry[s][c],e));i.push(l)}r.push(ct(a.id,o,i,a.tags))}return r}function Ct(t,e){var r=[];r.size=t.size,void 0!==t.start&&(r.start=t.start,r.end=t.end);for(var n=0;n<t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function Ot(t,e){if(t.transformed)return t;var r,n,i,a=1<<t.z,o=t.x,s=t.y;for(r=0;r<t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n<c.length;n+=2)l.geometry.push(Lt(c[n],c[n+1],e,a,o,s));else for(n=0;n<c.length;n++){var f=[];for(i=0;i<c[n].length;i+=2)f.push(Lt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function Lt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function It(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){o.numFeatures++,Pt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l<o.minX&&(o.minX=l),c<o.minY&&(o.minY=c),u>o.maxX&&(o.maxX=u),f>o.maxY&&(o.maxY=f)}return o}function Pt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if("Point"===a||"MultiPoint"===a)for(var s=0;s<i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===a)Dt(o,i,t,r,!1,!1);else if("MultiLineString"===a||"Polygon"===a)for(s=0;s<i.length;s++)Dt(o,i[s],t,r,"Polygon"===a,0===s);else if("MultiPolygon"===a)for(var l=0;l<i.length;l++){var c=i[l];for(s=0;s<c.length;s++)Dt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if("LineString"===a&&n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var p={geometry:o,type:"Polygon"===a||"MultiPolygon"===a?3:"LineString"===a||"MultiLineString"===a?2:1,tags:u};null!==e.id&&(p.id=e.id),t.features.push(p)}}function Dt(t,e,r,n,i,a){var o=n*n;if(n>0&&e.size<(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===n||e[l+2]>o)&&(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&&Rt(s,a),t.push(s)}}function Rt(t,e){for(var r=0,n=0,i=t.length,a=i-2;n<i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r>0===e)for(n=0,i=t.length;n<i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}function zt(t,e){return new Nt(t,e)}function Nt(t,e){var r=(e=this.options=Bt(Object.create(this.options),e)).debug;if(r&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=pt(t,e);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(n=St(n,e)).length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Ft(t,e,r){return 32*((1<<t)*r+e)+t}function Bt(t,e){for(var r in e)t[r]=e[r];return t}function jt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new b(n.features),a=T(i);0===a.byteOffset&&a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}Z.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&&console.time("total time");var o="prepare "+t.length+" points";r&&console.time(o),this.points=t;for(var s=[],l=0;l<t.length;l++)t[l].geometry&&s.push(J(t[l],l));this.trees[i+1]=new Y(s,at,ot,a,Float32Array),r&&console.timeEnd(o);for(var c=i;c>=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new Y(s,at,ot,a,Float32Array),r&&console.log("z%d: %d clusters in %dms",c,s.length,+Date.now()-u)}return r&&console.timeEnd("total time"),this},Z.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(tt(r),et(a),tt(i),et(n));u<f.length;u+=1){var p=f[u],d=l.points[p];c.push(d.numPoints?$(d):this.points[d.index])}return c},Z.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l<c.length;l+=1){var u=c[l],f=i.points[u];f.parentId===t&&s.push(f.numPoints?$(f):this.points[f.index])}if(0===s.length)throw new Error(n);return s},Z.prototype.getLeaves=function(t,e,r){e=e||10,r=r||0;var n=[];return this._appendLeaves(n,t,e,r,0),n},Z.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.extent,s=a.radius/o,l=(r-s)/i,c=(r+1+s)/i,u={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,c),n.points,e,r,i,u),0===e&&this._addTileFeatures(n.range(1-s/i,l,1,c),n.points,i,r,i,u),e===i-1&&this._addTileFeatures(n.range(0,l,s/i,c),n.points,-1,r,i,u),u.features.length?u:null},Z.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},Z.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a<o.length;a+=1){var s=o[a],l=s.properties;if(l&&l.cluster?i+l.point_count<=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i<n?i++:t.push(s),t.length===r)break}return i},Z.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o<s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?Q(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&&(f=this.points[l.index].id),void 0!==f&&(u.id=f),a.features.push(u)}},Z.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},Z.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.radius,a=n.extent,o=n.reduce,s=i/(a*Math.pow(2,e)),l=0;l<t.length;l++){var c=t[l];if(!(c.zoom<=e)){c.zoom=e;for(var u=this.trees[e+1],f=u.within(c.x,c.y,s),p=c.numPoints||1,d=c.x*p,h=c.y*p,g=o&&p>1?this._map(c,!0):null,m=(l<<5)+(e+1)+this.points.length,v=0,y=f;v<y.length;v+=1){var b=y[v],x=u.points[b];if(!(x.zoom<=e)){x.zoom=e;var _=x.numPoints||1;d+=x.x*_,h+=x.y*_,p+=_,x.parentId=m,o&&(g||(g=this._map(c,!0)),o(g,this._map(x)))}}1===p?r.push(c):(c.parentId=m,r.push(K(d/p,h/p,m,p,g)))}}return r},Z.prototype._getOriginId=function(t){return t-this.points.length>>5},Z.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},Z.prototype._map=function(t,e){if(t.numPoints)return e?it({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?it({},n):n},Nt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Nt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1<<e,f=Ft(e,r,n),p=this.tiles[f];if(!p&&(c>1&&console.time("creation"),p=this.tiles[f]=It(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var d="z"+e;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(p.source=t,i){if(e===l.maxZoom||e===i)continue;var h=1<<i-e;if(r!==Math.floor(a/h)||n!==Math.floor(o/h))continue}else if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==t.length){c>1&&console.time("clipping");var g,m,v,y,b,x,_=.5*l.buffer/l.extent,w=.5-_,k=.5+_,T=1+_;g=m=v=y=null,b=bt(t,u,r-_,r+k,0,p.minX,p.maxX,l),x=bt(t,u,r+w,r+T,0,p.minX,p.maxX,l),t=null,b&&(g=bt(b,u,n-_,n+k,1,p.minY,p.maxY,l),m=bt(b,u,n+w,n+T,1,p.minY,p.maxY,l),b=null),x&&(v=bt(x,u,n-_,n+k,1,p.minY,p.maxY,l),y=bt(x,u,n+w,n+T,1,p.minY,p.maxY,l),x=null),c>1&&console.timeEnd("clipping"),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},Nt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t<0||t>24)return null;var o=1<<t,s=Ft(t,e=(e%o+o)%o,r);if(this.tiles[s])return Ot(this.tiles[s],i);a>1&&console.log("drilling down to z%d-%d-%d",t,e,r);for(var l,c=t,u=e,f=r;!l&&c>0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[Ft(c,u,f)];return l&&l.source?(a>1&&console.log("found parent tile z%d-%d-%d",c,u,f),a>1&&console.time("drilling down"),this.splitTile(l.source,c,u,f,t,e,r),a>1&&console.timeEnd("drilling down"),this.tiles[s]?Ot(this.tiles[s],i):null):null};var Ut=function(e){function r(t,r,n,i){e.call(this,t,r,n,jt),i&&(this.loadGeoJSON=i)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&&n.request&&n.request.collectResourceTiming)&&new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(t,a){if(t||!a)return r(t);if("object"!==typeof a)return r(new Error("Input data given to '"+n.source+"' is not a valid GeoJSON object."));d(a,!0);try{e._geoJSONIndex=n.cluster?new Z(Vt(n)).load(a.features):zt(a,n.geojsonVtOptions)}catch(t){return r(t)}e.loaded={};var o={};if(i){var s=i.finish();s&&(o.resourceTiming={},o.resourceTiming[n.source]=JSON.parse(JSON.stringify(s)))}r(null,o)}))}},r.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded,i=t.uid;return n&&n[i]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if("string"!==typeof e.data)return r(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return r(null,JSON.parse(e.data))}catch(n){return r(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(r){e(r)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(r){e(r)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(r){e(r)}},r}(u);function Vt(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c<u.length;c+=1){var f=u[c],p=n[f],d=p[0],h=p[1],g=t.createExpression(h),m=t.createExpression("string"===typeof d?[d,["accumulated"],["get",f]]:d);i[f]=g.value,a[f]=m.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r<n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r<n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}var Ht=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:u,geojson:Ut},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return Ht.prototype.setReferrer=function(t,e){this.referrer=e},Ht.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},Ht.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},Ht.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},Ht.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},Ht.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},Ht.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},Ht.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},Ht.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},Ht.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},Ht.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},Ht.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(n){r(n.toString())}},Ht.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error("RTL Text Plugin failed to import scripts from "+i),a)}}catch(o){n(o.toString())}},Ht.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},Ht.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new i),e},Ht.prototype.getWorkerSource=function(t,e,r){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var i={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](i,this.getLayerIndex(t),this.getAvailableImages(t))}return this.workerSources[t][e][r]},Ht.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new p),this.demWorkerSources[t][e]},Ht.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},"undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof t.window&&t.window instanceof WorkerGlobalScope&&(t.window.worker=new Ht(t.window)),Ht})),n(["./shared"],(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return n()?i()?a()?o()?s()?l()?c()?u()?f()?d(t&&t.failIfMajorPerformanceCaveat)?void 0:"insufficient WebGL support":"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support":"not a browser"}function n(){return"undefined"!==typeof window&&"undefined"!==typeof document}function i(){return Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray}function a(){return Function.prototype&&Function.prototype.bind}function o(){return Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions}function s(){return"JSON"in window&&"parse"in JSON&&"stringify"in JSON}function l(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,r=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(i){t=!1}return e&&e.terminate(),URL.revokeObjectURL(n),t}function c(){return"Uint8ClampedArray"in window}function u(){return ArrayBuffer.isView}function f(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&&r.width===t.width}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var p={};function d(t){return void 0===p[t]&&(p[t]=g(t)),p[t]}function h(t){var r=document.createElement("canvas"),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext("webgl",n)||r.probablySupportsContext("experimental-webgl",n):r.supportsContext?r.supportsContext("webgl",n)||r.supportsContext("experimental-webgl",n):r.getContext("webgl",n)||r.getContext("experimental-webgl",n)}function g(t){var e=h(t);if(!e)return!1;var r=e.createShader(e.VERTEX_SHADER);return!(!r||e.isContextLost())&&(e.shaderSource(r,"void main() {}"),e.compileShader(r),!0===e.getShaderParameter(r,e.COMPILE_STATUS))}e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&&(i.className=r),n&&n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e<t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);r.disableDrag=function(){n&&o&&(a=n[o],n[o]="none")},r.enableDrag=function(){n&&o&&(n[o]=a)};var s=i(["transform","WebkitTransform"]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},"passive",{get:function(){l=!0}});t.window.addEventListener("test",c,c),t.window.removeEventListener("test",c,c)}catch(fs){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&&(n={}),"passive"in n&&l?t.addEventListener(e,r,n):t.addEventListener(e,r,n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&&(n={}),"passive"in n&&l?t.removeEventListener(e,r,n):t.removeEventListener(e,r,n.capture)};var u=function e(r){r.preventDefault(),r.stopPropagation(),t.window.removeEventListener("click",e,!0)};function f(e,r,n){var i,a,o,s=t.browser.devicePixelRatio>1?"@2x":"",l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&&a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,p=l.y,d=l.sdf,h=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:p},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:h,sdf:d,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}function p(t){var e=t.userImage;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener("click",u,!0),t.window.setTimeout((function(){t.window.removeEventListener("click",u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a<r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return"undefined"!==typeof t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},r.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var d=1,h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,r=this.requestors;e<r.length;e+=1){var n=r[e],i=n.ids,a=n.callback;this._notify(i,a)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&&(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&&r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchX" value'))),n=!1),this._validateStretch(r.stretchY,r.data&&r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchY" value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "content" value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n<i.length;n+=1){var a=i[n];if(a[0]<r||a[1]<a[0]||e<a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!t||4===t.length&&!(t[0]<0||e.data.width<t[0])&&!(t[1]<0||e.data.height<t[1])&&!(t[2]<0||e.data.width<t[2])&&!(t[3]<0||e.data.height<t[3])&&!(t[2]<t[0])&&!(t[3]<t[1])},r.prototype.updateImage=function(t,e){var r=this.images[t];e.version=r.version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n<i.length;n+=1){var a=i[n];this.images[a]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i<a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event("styleimagemissing",{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:t.warnOnce('Image "'+o+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&&r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2*d,h:n.data.height+2*d,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+d,u=l.y+d,f=this.images[s].data,p=f.width,h=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:p,height:h}),t.RGBAImage.copy(f,o,{x:0,y:h-1},{x:c,y:u-1},{width:p,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+h},{width:p,height:1}),t.RGBAImage.copy(f,o,{x:p-1,y:0},{x:c-1,y:u},{width:1,height:h}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+p,y:u},{width:1,height:h})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];p(i)&&this.updateImage(n,i)}}},r}(t.Evented);function g(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",o+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i<o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))}var m=b,v=b,y=1e20;function b(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||"sans-serif",this.fontWeight=a||"normal",this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function x(t,e,r,n,i,a,o){for(var s=0;s<e;s++){for(var l=0;l<r;l++)n[l]=t[l*e+s];for(_(n,i,a,o,r),l=0;l<r;l++)t[l*e+s]=i[l]}for(l=0;l<r;l++){for(s=0;s<e;s++)n[s]=t[l*e+s];for(_(n,i,a,o,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(i[s])}}function _(t,e,r,n,i){r[0]=0,n[0]=-y,n[1]=+y;for(var a=1,o=0;a<i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s<=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+y}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}b.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n<this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?y:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?y:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(x(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),x(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++){var a=this.gridOuter[n]-this.gridInner[n];r[n]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return r},m.default=v;var w=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};w.prototype.setURL=function(t){this.url=t},w.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o<s.length;o+=1){var l=s[o];i.push({stack:a,id:l})}t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s>65535)e(new Error("glyphs > 65535 not supported"));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],w.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i<o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&&e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i<a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&&{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},w.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&&(t.isChar["CJK Unified Ideographs"](e)||t.isChar["Hangul Syllables"](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},w.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&&this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o="400";/bold/i.test(r)?o="900":/medium/i.test(r)?o="500":/light/i.test(r)&&(o="200"),a=e.tinySDF=new w.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},w.loadGlyphRange=g,w.TinySDF=m;var k=function(){this.specification=t.styleSpec.light.position};k.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},k.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var T=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new k,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),M="-transition",A=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(T),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&&(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,M)?this._transitionable.setTransition(n.slice(0,-M.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),S=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};S.prototype.getDash=function(t,e){var r=t.join(",")+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},S.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2===1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l<t.length;l++){o=!o;var c=t[l];i=s*r,a=(s+=c)*r,n.push({left:i,right:a,isDash:o,zeroLength:0===c})}return n},S.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i<=r;i++)for(var a=this.nextRow+r+i,o=this.width*a,s=0,l=t[s],c=0;c<this.width;c++){c/l.right>1&&(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),p=Math.min(u,f),d=void 0,h=i/r*(n+1);if(l.isDash){var g=n-Math.abs(h);d=Math.sqrt(p*p+g*g)}else d=n-Math.sqrt(p*p+h*h);this.data[o+c]=Math.max(0,Math.min(255,d+128))}},S.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&&n.isDash===r.isDash&&(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&&(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c<this.width;c++){c/l.right>1&&(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),p=Math.min(u,f),d=l.isDash?p:-p;this.data[o+c]=Math.max(0,Math.min(255,d+128))}},S.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var a=0,o=0;o<e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},S.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var E=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a<i.length;a++){var o=i[a],s=new e.Actor(o,n,this.id);s.name="Worker "+a,this.actors.push(s)}};function C(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);a.vector_layers&&(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}E.prototype.broadcast=function(e,r,n){n=n||function(){},t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n)},E.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},E.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},E.Actor=t.Actor;var O=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};O.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},O.prototype.contains=function(e){var r=Math.pow(2,e.z),n={minX:Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),minY:Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),maxX:Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),maxY:Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r)};return e.x>=n.minX&&e.x<n.maxX&&e.y>=n.minY&&e.y<n.maxY};var L=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=C(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new O(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&&404!==n.status?r(n):(i&&i.resourceTiming&&(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=r:e.request=e.actor.send("reloadTile",i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},n),t.extend(this,t.pick(n,["url","scheme","tileSize"]))}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=C(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new O(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(i)e.state="errored",r(i);else if(a){n.map._refreshExpiredTiles&&e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),P=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(n,i){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(n)e.state="errored",r(n);else if(i){this.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var o=t.window.ImageBitmap&&i instanceof t.window.ImageBitmap&&t.offscreenCanvasSupported()?i:t.browser.getImageData(i,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",s,a.bind(this)))}}function a(t,n){t&&(e.state="errored",r(t)),n&&(e.dem=n,e.needsHillshadePrepare=!0,e.state="loaded",r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),i.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1<n&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},r}(I),D=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:"source",sourceDataType:"metadata"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:"source",sourceDataType:"content"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event("data",n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;"string"===typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+".loadData",n,(function(t,i){r._removed||i&&i.abandoned||(r._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[r.id]&&(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?"reloadTile":"loadTile";e.actor=this.actor;var a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,"reloadTile"===i),r(null))}))},r.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),R=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),z=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&&(n.image=a,e&&(n.coordinates=e),r&&r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=N(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,R.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))},r.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented);function N(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o<s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=i-r,u=a-n,f=Math.max(c,u),p=Math.max(0,Math.floor(-Math.log(f)/Math.LN2)),d=Math.pow(2,p);return new t.CanonicalTileID(p,Math.floor((r+i)/2*d),Math.floor((n+a)/2*d))}var F=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type="video",this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n<i.length;n+=1){var a=i[n];this.urls.push(this.map._requestManager.transformRequest(a,t.ResourceType.Source).url)}t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&&(e.video=n,e.video.loop=!0,e.video.addEventListener("playing",(function(){e.map.triggerRepaint()})),e.map&&e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&&this.video.pause()},r.prototype.play=function(){this.video&&this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e<r.start(0)||e>r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+r.start(0)+" and "+r.end(0)+"-second mark."))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,R.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(z),B=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!==typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "coordinates"'))),n.animate&&"boolean"!==typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"===typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,R.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var r=e[t];if(isNaN(r)||r<=0)return!0}return!1},r}(z),j={vector:L,raster:I,"raster-dem":P,geojson:D,video:F,image:z,canvas:B},U=function(e,r,n,i){var a=new j[r.type](e,r,n,i);if(a.id!==e)throw new Error("Expected Source id to be "+e+" instead of "+a.id);return t.bindAll(["load","abort","unload","serialize","prepare"],a),a},V=function(t){return j[t]},H=function(t,e){j[t]=e};function q(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function G(t,e,r){if(t)for(var n=0,i=t;n<i.length;n+=1){var a=e[i[n]];if(a&&a.source===r&&"fill-extrusion"===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&&"fill-extrusion"===s.type)return!0}return!1}function W(t,e,r,n,i,a){var o=G(i&&i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(Z);for(var c=[],u=0,f=l;u<f.length;u+=1){var p=f[u];c.push({wrappedTileID:p.tileID.wrapped().key,queryResults:p.tile.queryRenderedFeatures(e,r,t._state,p.queryGeometry,p.cameraQueryGeometry,p.scale,i,a,s,q(t.transform,p.tileID))})}var d=K(c);for(var h in d)d[h].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=n}));return d}function Y(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u<f.length;u+=1){var p=f[u];c.push(o[p])}c.sort(Z);for(var d=function(){var r=g[h],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u<f.length;u+=1){var p=f[u];o.push(p)}}},h=0,g=c;h<g.length;h+=1)d();var m=function(e){s[e].forEach((function(n){var i=n.feature,a=t[e],o=r[a.source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o}))};for(var v in s)m(v);return s}function X(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a<r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}function Z(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}function K(t){for(var e={},r={},n=0,i=t;n<i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},p=e[c]=e[c]||[],d=0,h=u;d<h.length;d+=1){var g=h[d];f[g.featureIndex]||(f[g.featureIndex]=!0,p.push(g))}}return e}var J=function(t,e){this.max=t,this.onRemove=e,this.reset()};J.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e<r.length;e+=1){var n=r[e];n.timeout&&clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},J.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&&(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length>this.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},J.prototype.has=function(t){return t.wrapped().key in this.data},J.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},J.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},J.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},J.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},J.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},J.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},J.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n<i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o<s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var $=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};$.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},$.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},$.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var Q={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},tt=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};tt.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},tt.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},tt.prototype.enableAttributes=function(t,e){for(var r=0;r<this.attributes.length;r++){var n=this.attributes[r],i=e.attributes[n.name];void 0!==i&&t.enableVertexAttribArray(i)}},tt.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n<this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&&t.vertexAttribPointer(a,i.components,t[Q[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},tt.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var et=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};et.prototype.get=function(){return this.current},et.prototype.set=function(t){},et.prototype.getDefault=function(){return this.default},et.prototype.setDefault=function(){this.set(this.default)};var rt=function(e){function r(){e.apply(this,arguments)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(et),nt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(et),it=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(et),at=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(et),ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(et),st=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(et),lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(et),ct=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(et),ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(et),ft=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(et),pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(et),dt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(et),ht=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(et),gt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(et),mt=function(e){function r(){e.apply(this,arguments)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(et),vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(et),yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(et),bt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(et),xt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(et),_t=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(et),wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(et),kt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(et),Tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(et),Mt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(et),At=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(et),St=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(et),Et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(et),Ct=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(et),Ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(et),Lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(et),It=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(et),Pt=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e}(et),Dt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(Pt),Rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(Pt),zt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=t.gl,a=this.framebuffer=i.createFramebuffer();this.colorAttachment=new Dt(t,a),n&&(this.depthAttachment=new Rt(t,a))};zt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&&t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Nt=519,Ft=function(t,e,r){this.func=t,this.mask=e,this.range=r};Ft.ReadOnly=!1,Ft.ReadWrite=!0,Ft.disabled=new Ft(Nt,Ft.ReadOnly,[0,1]);var Bt=519,jt=7680,Ut=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};Ut.disabled=new Ut({func:Bt,mask:0},0,0,jt,jt,jt);var Vt=0,Ht=1,qt=771,Gt=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};Gt.Replace=[Ht,Vt],Gt.disabled=new Gt(Gt.Replace,t.Color.transparent,[!1,!1,!1,!1]),Gt.unblended=new Gt(Gt.Replace,t.Color.transparent,[!0,!0,!0,!0]),Gt.alphaBlended=new Gt([Ht,qt],t.Color.transparent,[!0,!0,!0,!0]);var Wt=1029,Yt=2305,Xt=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Xt.disabled=new Xt(!1,Wt,Yt),Xt.backCCW=new Xt(!0,Wt,Yt);var Zt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new rt(this),this.clearDepth=new nt(this),this.clearStencil=new it(this),this.colorMask=new at(this),this.depthMask=new ot(this),this.stencilMask=new st(this),this.stencilFunc=new lt(this),this.stencilOp=new ct(this),this.stencilTest=new ut(this),this.depthRange=new ft(this),this.depthTest=new pt(this),this.depthFunc=new dt(this),this.blend=new ht(this),this.blendFunc=new gt(this),this.blendColor=new mt(this),this.blendEquation=new vt(this),this.cullFace=new yt(this),this.cullFaceSide=new bt(this),this.frontFace=new xt(this),this.program=new _t(this),this.activeTexture=new wt(this),this.viewport=new kt(this),this.bindFramebuffer=new Tt(this),this.bindRenderbuffer=new Mt(this),this.bindTexture=new At(this),this.bindVertexBuffer=new St(this),this.bindElementBuffer=new Et(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new Ct(this),this.pixelStoreUnpack=new Ot(this),this.pixelStoreUnpackPremultiplyAlpha=new Lt(this),this.pixelStoreUnpackFlipY=new It(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query")};Zt.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Zt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Zt.prototype.createIndexBuffer=function(t,e){return new $(this,t,e)},Zt.prototype.createVertexBuffer=function(t,e,r){return new tt(this,t,e,r)},Zt.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Zt.prototype.createFramebuffer=function(t,e,r){return new zt(this,t,e,r)},Zt.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&&(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),"undefined"!==typeof r&&(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Zt.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Zt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Zt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Zt.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,Gt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Zt.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Kt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on("data",(function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(a._sourceLoaded=!0),a._sourceLoaded&&!a._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(a.reload(),a.transform&&a.update(a.transform))})),this.on("error",(function(){a._sourceErrored=!0})),this._source=U(r,n,i,this),this._tiles={},this._cache=new J(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(Jt).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&&n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(Jt).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&&("loading"!==r.state&&(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state="errored",void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r<e.length;r++){var n=e[r];if(t.neighboringTiles&&t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&&0===n||Math.abs(n)>1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[a]&&(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ<=e||a.tileID.overscaledZ>r)){for(var o=a.tileID;a&&a.tileID.overscaledZ>e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&&a.hasData()&&(o=s)}for(var l=o;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&&r.tileID.overscaledZ>=e?r:null}for(var n=t.overscaledZ-1;n>=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=5,n=Math.floor(e*r),i="number"===typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if($t(this._source.type)){for(var c={},u={},f=0,p=Object.keys(l);f<p.length;f+=1){var d=p[f],h=l[d],g=this._tiles[d];if(g&&!(g.fadeEndTime&&g.fadeEndTime<=t.browser.now())){var m=this.findLoadedParent(h,o);m&&(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[d]=h}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var b=0,x=t.keysDifference(this._tiles,l);b<x.length;b+=1){var _=x[b],w=this._tiles[_];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l<c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e<this._source.maxzoom&&(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var p=0,d=t;p<d.length;p+=1){var h=d[p],g=this._tiles[h.key];if(!g.hasData()){if(e+1>this._source.maxzoom){var m=h.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&&v.hasData()){n[m.key]=m;continue}}else{var y=h.children(this._source.maxzoom);if(n[y[0].key]&&n[y[1].key]&&n[y[2].key]&&n[y[3].key])continue}for(var b=g.wasRequested(),x=h.overscaledZ-1;x>=a;--x){var _=h.scaledTo(x);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&&b&&(g=this._addTile(_)),g&&(n[_.key]=_,b=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a<o.length;a+=1){var s=o[a];this._loadedParentTiles[s]=r}}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event("dataloading",{tile:r,coord:r.tileID,dataType:"source"})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout((function(){r._reloadTile(t,"expired"),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,p=1/0,d=-1/0,h=-1/0,g=0,m=c;g<m.length;g+=1){var v=m[g];f=Math.min(f,v.x),p=Math.min(p,v.y),d=Math.max(d,v.x),h=Math.max(h,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,p)),s.getTilePoint(new t.MercatorCoordinate(d,h))];if(v[0].x-m<t.EXTENT&&v[0].y-m<t.EXTENT&&v[1].x+m>=0&&v[1].y+m>=0){var y=l.map((function(t){return s.getTilePoint(t)})),b=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:b,scale:g})}}},b=0;b<u.length;b++)y(b);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n<i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if($t(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&&r.fadeEndTime>=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||"_geojsonTileLayer",this._state.getState(t,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&&n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&&this._reloadTile(r,"reloading");this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function Jt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap<0),n=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function $t(t){return"raster"===t||"image"===t||"video"===t}function Qt(){return new t.window.Worker(us.workerUrl)}Kt.maxOverzooming=10,Kt.maxUnderzooming=3;var te="mapboxgl_preloaded_worker_pool",ee=function(){this.active={}};ee.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<ee.workerCount;)this.workers.push(new Qt);return this.active[t]=!0,this.workers.slice()},ee.prototype.release=function(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},ee.prototype.isPreloaded=function(){return!!this.active[te]},ee.prototype.numActive=function(){return Object.keys(this.active).length};var re,ne=Math.floor(t.browser.hardwareConcurrency/2);function ie(){return re||(re=new ee),re}function ae(){ie().acquire(te)}function oe(){var t=re;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(te),re=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}function se(e,r){var n={};for(var i in e)"ref"!==i&&(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&&(n[t]=r[t])})),n}function le(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=se(t[n],e[t[n].ref]));return t}function ce(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i=t.styleSpec.$root[n];if(i.required){var a=null;null!=(a="version"===n?r:"array"===i.type?[]:{})&&(e[n]=a)}}return e}ee.workerCount=Math.max(Math.min(ne,6),1);var ue={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function fe(t,e,r){r.push({command:ue.addSource,args:[t,e[t]]})}function pe(t,e,r){e.push({command:ue.removeSource,args:[t]}),r[t]=!0}function de(t,e,r,n){pe(t,r,n),fe(t,e,r)}function he(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&&"data"!==i&&!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&&"data"!==i&&!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function ge(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&&(r.hasOwnProperty(a)||pe(a,n,i));for(a in r)r.hasOwnProperty(a)&&(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||("geojson"===e[a].type&&"geojson"===r[a].type&&he(e,r,a)?n.push({command:ue.setGeoJSONSourceData,args:[a,r[a].data]}):de(a,r,n,i)):fe(a,r,n))}function me(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&&(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function ve(t){return t.id}function ye(t,e){return t[e.id]=e,t}function be(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(ve),p=r.map(ve),d=e.reduce(ye,{}),h=r.reduce(ye,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i<f.length;i++)o=f[i],h.hasOwnProperty(o)?a++:(n.push({command:ue.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i<p.length;i++)o=p[p.length-1-i],g[g.length-1-i]!==o&&(d.hasOwnProperty(o)?(n.push({command:ue.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,c=g[g.length-i],n.push({command:ue.addLayer,args:[h[o],c]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i<p.length;i++)if(s=d[o=p[i]],l=h[o],!m[o]&&!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&&t.deepEqual(s["source-layer"],l["source-layer"])&&t.deepEqual(s.type,l.type)){for(u in me(s.layout,l.layout,n,o,null,ue.setLayoutProperty),me(s.paint,l.paint,n,o,null,ue.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:ue.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&&t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:ue.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?me(s[u],l[u],n,o,u.slice(6),ue.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:ue.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&&!s.hasOwnProperty(u)&&"layout"!==u&&"paint"!==u&&"filter"!==u&&"metadata"!==u&&"minzoom"!==u&&"maxzoom"!==u&&(0===u.indexOf("paint.")?me(s[u],l[u],n,o,u.slice(6),ue.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:ue.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:ue.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:ue.addLayer,args:[l,c]})}function xe(e,r){if(!e)return[{command:ue.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:ue.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:ue.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:ue.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:ue.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:ue.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:ue.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:ue.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:ue.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:ue.setLight,args:[r.light]});var i={},a=[];ge(e.sources,r.sources,a,i);var o=[];e.layers&&e.layers.forEach((function(t){i[t.source]?n.push({command:ue.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),be(o,r.layers,n)}catch(s){console.warn("Unable to compute style diff:",s),n=[{command:ue.setStyle,args:[r]}]}return n}var _e=function(t,e){this.reset(t,e)};_e.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r<this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},_e.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n<i&&r<this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s>0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var we=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a<this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function ke(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Te(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function Me(e,r){var n=[e.x,e.y,0,1];ze(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function Ae(t,e){return.5+t/e*.5}function Se(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r>=-e[0]&&r<=e[0]&&n>=-e[1]&&n<=e[1]}function Ee(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],p=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;p.clear();for(var d=e.lineVertexArray,h=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v<h.length;v++){var y=h.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&&!m)Re(y.numGlyphs,p);else{m=!1;var b=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(b,b,r),Se(b,f)){var x=b[3],_=Ae(n.transform.cameraToCenterDistance,x),w=t.evaluateSizeForFeature(c,u,y),k=s?w/_:w*_,T=new t.Point(y.anchorX,y.anchorY),M=Me(T,a).point,A={},S=Le(y,k,!1,l,r,a,o,e.glyphOffsetArray,d,p,M,T,A,g);m=S.useVertical,(S.notEnoughRoom||m||S.needsFlipping&&Le(y,k,!0,l,r,a,o,e.glyphOffsetArray,d,p,M,T,A,g).notEnoughRoom)&&Re(y.numGlyphs,p)}else Re(y.numGlyphs,p)}}i?e.text.dynamicLayoutVertexBuffer.updateData(p):e.icon.dynamicLayoutVertexBuffer.updateData(p)}function Ce(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,h=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=Pe(t*h,r,n,i,a,o,s.segment,p,d,l,c,u);if(!m)return null;var v=Pe(t*g,r,n,i,a,o,s.segment,p,d,l,c,u);return v?{first:m,last:v}:null}function Oe(e,r,n,i){return e===t.WritingMode.horizontal&&Math.abs(n.y-r.y)>Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y<n.y:r.x>n.x)?{needsFlipping:!0}:null}function Le(e,r,n,i,a,o,s,l,c,u,f,p,d,h){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs>1){var b=e.glyphStartIndex+e.numGlyphs,x=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=Ce(m,l,v,y,n,f,p,e,c,o,d);if(!w)return{notEnoughRoom:!0};var k=Me(w.first.point,s).point,T=Me(w.last.point,s).point;if(i&&!n){var M=Oe(e.writingMode,k,T,h);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A<b-1;A++)g.push(Pe(m*l.getoffsetX(A),v,y,n,f,p,e.segment,x,_,c,o,d));g.push(w.last)}else{if(i&&!n){var S=Me(p,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),O=Me(C,a),L=O.signedDistanceFromCamera>0?O.point:Ie(p,C,S,1,a),I=Oe(e.writingMode,S,L,h);if(I)return I}var P=Pe(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,p,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,d);if(!P)return{notEnoughRoom:!0};g=[P]}for(var D=0,R=g;D<R.length;D+=1){var z=R[D];t.addDynamicAttributes(u,z.point,z.angle)}return{}}function Ie(t,e,r,n,i){var a=Me(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function Pe(e,r,n,i,a,o,s,l,c,u,f,p){var d=i?e-r:e+r,h=d>0?1:-1,g=0;i&&(h*=-1,g=Math.PI),h<0&&(g+=Math.PI);for(var m=h>0?l+s:l+s+1,v=a,y=a,b=0,x=0,_=Math.abs(d),w=[];b+x<=_;){if((m+=h)<l||m>=c)return null;if(y=v,w.push(v),void 0===(v=p[m])){var k=new t.Point(u.getx(m),u.gety(m)),T=Me(k,f);if(T.signedDistanceFromCamera>0)v=p[m]=T.point;else{var M=m-h;v=Ie(0===b?o:new t.Point(u.getx(M),u.gety(M)),k,y,_-b+1,f)}}b+=x,x=y.dist(v)}var A=(_-b)/x,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*h));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}we.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},we.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},we.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},we.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},we.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},we.prototype._query=function(t,e,r,n,i,a){if(r<0||t>this.width||n<0||e>this.height)return!i&&[];var o=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(var s=0;s<this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}var p={hitTest:i,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,r,n,this._queryCell,o,p,a),i?o.length>0:o},we.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o<0||a>this.width||l<0||s>this.height)return!n&&[];var c=[],u={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,c,u,i),n?c.length>0:c},we.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},we.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},we.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},we.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,p=c;f<p.length;f+=1){var d=p[f];if(!l.box[d]){l.box[d]=!0;var h=4*d;if(t<=u[h+2]&&e<=u[h+3]&&r>=u[h+0]&&n>=u[h+1]&&(!s||s(this.boxKeys[d]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[d],x1:u[h],y1:u[h+1],x2:u[h+2],y2:u[h+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v<y.length;v+=1){var b=y[v];if(!l.circle[b]){l.circle[b]=!0;var x=3*b;if(this._circleAndRectCollide(m[x],m[x+1],m[x+2],t,e,r,n)&&(!s||s(this.circleKeys[b]))){if(o.hitTest)return a.push(!0),!0;var _=m[x],w=m[x+1],k=m[x+2];a.push({key:this.circleKeys[b],x1:_-k,y1:w-k,x2:_+k,y2:w+k})}}}},we.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,p=0,d=u;p<d.length;p+=1){var h=d[p];if(!c.box[h]){c.box[h]=!0;var g=4*h;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&&(!s||s(this.boxKeys[h])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,b=m;y<b.length;y+=1){var x=b[y];if(!c.circle[x]){c.circle[x]=!0;var _=3*x;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[x])))return a.push(!0),!0}}},we.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),p=l;p<=u;p++)for(var d=c;d<=f;d++){var h=this.xCellCount*d+p;if(i.call(this,t,e,r,n,h,a,o,s))return}},we.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},we.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},we.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l>o*o+s*s},we.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l>s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u>c+r)return!1;if(l<=s||u<=c)return!0;var f=l-s,p=u-c;return f*f+p*p<=r*r};var De=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Re(t,e){for(var r=0;r<t;r++){var n=e.length;e.resize(n+4),e.float32.set(De,3*n)}}function ze(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var Ne=100,Fe=function(t,e,r){void 0===e&&(e=new we(t.width+2*Ne,t.height+2*Ne,25)),void 0===r&&(r=new we(t.width+2*Ne,t.height+2*Ne,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+Ne,this.screenBottomBoundary=t.height+Ne,this.gridRightBoundary=t.width+2*Ne,this.gridBottomBoundary=t.height+2*Ne};function Be(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}Fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&&this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},Fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,p,d){var h=[],g=new t.Point(r.anchorX,r.anchorY),m=Me(g,o),v=Ae(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,b=Me(g,s).point,x={},_=Ce(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,b,g,r,n,s,x),w=!1,k=!1,T=!0;if(_){for(var M=.5*p*v+d,A=new t.Point(-Ne,-Ne),S=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),E=new _e,C=_.first,O=_.last,L=[],I=C.path.length-1;I>=1;I--)L.push(C.path[I]);for(var P=1;P<O.path.length;P++)L.push(O.path[P]);var D=2.5*M;if(l){var R=L.map((function(t){return Me(t,l)}));L=R.some((function(t){return t.signedDistanceFromCamera<=0}))?[]:R.map((function(t){return t.point}))}var z=[];if(L.length>0){for(var N=L[0].clone(),F=L[0].clone(),B=1;B<L.length;B++)N.x=Math.min(N.x,L[B].x),N.y=Math.min(N.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);z=N.x>=A.x&&F.x<=S.x&&N.y>=A.y&&F.y<=S.y?[L]:F.x<A.x||N.x>S.x||F.y<A.y||N.y>S.y?[]:t.clipLine([L],A.x,A.y,S.x,S.y)}for(var j=0,U=z;j<U.length;j+=1){var V=U[j];E.reset(V,.25*M);var H=0;H=E.length<=.5*M?1:Math.ceil(E.paddedLength/D)+1;for(var q=0;q<H;q++){var G=q/Math.max(H-1,1),W=E.lerp(G),Y=W.x+Ne,X=W.y+Ne;h.push(Y,X,M,0);var Z=Y-M,K=X-M,J=Y+M,$=X+M;if(T=T&&this.isOffscreen(Z,K,J,$),k=k||this.isInsideGrid(Z,K,J,$),!e&&this.grid.hitTestCircle(Y,X,M,f)&&(w=!0,!c))return{circles:[],offscreen:!1,collisionDetected:w}}}}return{circles:!c&&w||!k?[]:h,offscreen:T,collisionDetected:w}},Fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s<l.length;s+=1){var c=l[s],u=new t.Point(c.x+Ne,c.y+Ne);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},p={},d=0,h=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));d<h.length;d+=1){var g=h[d],m=g.key;if(void 0===f[m.bucketInstanceId]&&(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&&(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===p[m.bucketInstanceId]&&(p[m.bucketInstanceId]=[]),p[m.bucketInstanceId].push(m.featureIndex))}}return p},Fe.prototype.insertCollisionBox=function(t,e,r,n,i){var a={bucketInstanceId:r,featureIndex:n,collisionGroupID:i};(e?this.ignoredGrid:this.grid).insert(a,t[0],t[1],t[2],t[3])},Fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s<t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},Fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ze(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+Ne,(-i[1]/i[3]+1)/2*this.transform.height+Ne),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},Fe.prototype.isOffscreen=function(t,e,r,n){return r<Ne||t>=this.screenRightBoundary||n<Ne||e>this.screenBottomBoundary},Fe.prototype.isInsideGrid=function(t,e,r,n){return r>=0&&t<this.gridRightBoundary&&n>=0&&e<this.gridBottomBoundary},Fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-Ne,-Ne,0]),e};var je=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&r?1:0,this.placed=r};je.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var Ue=function(t,e,r,n,i){this.text=new je(t?t.text:null,e,r,i),this.icon=new je(t?t.icon:null,e,n,i)};Ue.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var Ve=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},He=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},qe=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},Ge=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function We(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function Ye(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,p=e.anchorPointY,d=new t.Point(r,n);return i&&d._rotate(a?o:-o),{x1:s+d.x,y1:c+d.y,x2:l+d.x,y2:u+d.y,anchorPointX:f,anchorPointY:p}}Ge.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var Xe=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new Fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new Ge(r),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}};function Ze(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}Xe.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&&o&&r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),p="map"===l.get("text-pitch-alignment"),d="map"===l.get("text-rotation-alignment"),h=Be(n,1,this.transform.zoom),g=ke(f,p,d,this.transform,h),m=null;if(p){var v=Te(f,p,d,this.transform,h);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new qe(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var b=0,x=a.sortKeyRanges;b<x.length;b+=1){var _=x[b],w=_.sortKey,k=_.symbolInstanceStart,T=_.symbolInstanceEnd;e.push({sortKey:w,symbolInstanceStart:k,symbolInstanceEnd:T,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},Xe.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h){var g,m=[f.textOffset0,f.textOffset1],v=We(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(Ye(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!h||0!==this.collisionIndex.placeCollisionBox(Ye(h,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID].text&&(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(p,t,f,d),p.allowVerticalPlacement&&(this.markUsedOrientation(p,d,f),this.placedOrientations[f.crossTileID]=d),{shift:v,placedGlyphBoxes:y}):void 0},Xe.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,p=a.holdingForFade,d=a.collisionBoxArray,h=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get("text-optional"),v=s.get("icon-optional"),y=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),_="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),k="viewport-y"===s.get("symbol-z-order"),T=y&&(b||!o.hasIconData()||v),M=b&&(y||!o.hasTextData()||m);!o.collisionArrays&&d&&o.deserializeCollisionBoxes(d);var A=function(e,a){if(!r[e.crossTileID])if(p)i.placements[e.crossTileID]=new Ve(!1,!1,!1);else{var d=!1,k=!1,A=!0,S=null,E={box:null,offscreen:null},C={box:null,offscreen:null},O=null,L=null,I=null,P=0,D=0,R=0;a.textFeatureIndex?P=a.textFeatureIndex:e.useRuntimeCollisionCircles&&(P=e.featureIndex),a.verticalTextFeatureIndex&&(D=a.verticalTextFeatureIndex);var z=a.textBox;if(z){var N=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&&!r&&i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&&(i.placedOrientations[e.crossTileID]=a,n=a,i.markUsedOrientation(o,n,e))}return n},F=function(r,n){if(o.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&a.verticalTextBox)for(var i=0,s=o.writingModes;i<s.length&&(s[i]===t.WritingMode.vertical?(E=n(),C=E):E=r(),!(E&&E.box&&E.box.length));i+=1);else E=r()};if(s.get("text-variable-anchor")){var B=s.get("text-variable-anchor");if(i.prevPlacement&&i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];B.indexOf(j.anchor)>0&&(B=B.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&&!b?r:null,p={box:[],offscreen:!1},h=y?2*B.length:B.length,m=0;m<h;++m){var v=B[m%B.length],k=m>=B.length,T=i.attemptAnchorPlacement(v,t,a,s,c,x,_,f,l,g,k,e,o,n,u);if(T&&(p=T.placedGlyphBoxes)&&p.box&&p.box.length){d=!0,S=T.shift;break}}return p};F((function(){return U(z,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=E&&E.box&&E.box.length;return o.allowVerticalPlacement&&!n&&e.numVerticalGlyphVertices>0&&r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),E&&(d=E.box,A=E.offscreen);var V=N(E&&E.box);if(!d&&i.prevPlacement){var H=i.prevPlacement.variableOffsets[e.crossTileID];H&&(i.variableOffsets[e.crossTileID]=H,i.markUsedJustification(o,H.anchor,e,V))}}else{var q=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&&n.box&&n.box.length&&(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};F((function(){return q(z,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&r?q(r,t.WritingMode.vertical):{box:null,offscreen:null}})),N(E&&E.box&&E.box.length)}}if(d=(O=E)&&O.box&&O.box.length>0,A=O&&O.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),W=t.evaluateSizeForFeature(o.textSizeData,h,G),Y=s.get("text-padding"),X=e.collisionCircleDiameter;L=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,W,l,c,u,n,_,g.predicate,X,Y),d=y||L.circles.length>0&&!L.collisionDetected,A=A&&L.offscreen}if(a.iconFeatureIndex&&(R=a.iconFeatureIndex),a.iconBox){var Z=function(t){var e=w&&S?Ye(t,S.x,S.y,x,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,b,f,l,g.predicate)};k=C&&C.box&&C.box.length&&a.verticalIconBox?(I=Z(a.verticalIconBox)).box.length>0:(I=Z(a.iconBox)).box.length>0,A=A&&I.offscreen}var K=m||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(K||J?J?K||(k=k&&d):d=k&&d:k=d=k&&d,d&&O&&O.box&&(C&&C.box&&D?i.collisionIndex.insertCollisionBox(O.box,s.get("text-ignore-placement"),o.bucketInstanceId,D,g.ID):i.collisionIndex.insertCollisionBox(O.box,s.get("text-ignore-placement"),o.bucketInstanceId,P,g.ID)),k&&I&&i.collisionIndex.insertCollisionBox(I.box,s.get("icon-ignore-placement"),o.bucketInstanceId,R,g.ID),L&&(d&&i.collisionIndex.insertCollisionCircles(L.circles,s.get("text-ignore-placement"),o.bucketInstanceId,P,g.ID),n)){var $=o.bucketInstanceId,Q=i.collisionCircleArrays[$];void 0===Q&&(Q=i.collisionCircleArrays[$]=new He);for(var tt=0;tt<L.circles.length;tt+=4)Q.circles.push(L.circles[tt+0]),Q.circles.push(L.circles[tt+1]),Q.circles.push(L.circles[tt+2]),Q.circles.push(L.collisionDetected?1:0)}i.placements[e.crossTileID]=new Ve(d||T,k||M,A||o.justReloaded),r[e.crossTileID]=!0}};if(k)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E>=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var O=e.symbolInstanceStart;O<e.symbolInstanceEnd;O++)A(o.symbolInstances.get(O),o.collisionArrays[O]);if(n&&o.bucketInstanceId in this.collisionCircleArrays){var L=this.collisionCircleArrays[o.bucketInstanceId];t.invert(L.invProjMatrix,l),L.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},Xe.prototype.markUsedJustification=function(e,r,n,i){var a,o={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex};a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:o[t.getAnchorJustification(r)];for(var s=0,l=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];s<l.length;s+=1){var c=l[s];c>=0&&(e.text.placedSymbolArray.get(c).crossTileID=a>=0&&c!==a?0:n.crossTileID)}},Xe.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o<s.length;o+=1){var l=s[o];e.text.placedSymbolArray.get(l).placedOrientation=i}n.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},Xe.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new Ue(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new Ue(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var p=new Ue(f,n,!1,!1);p.isHidden()||(this.opacities[u]=p,r=r||f.text.placed||f.icon.placed)}}for(var d in a)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=a[d]);for(var h in o)this.placedOrientations[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.placedOrientations[h]=o[h]);r?this.lastPlacementChangeTime=t:"number"!==typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},Xe.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n<i.length;n+=1){var a=i[n],o=a.getBucket(t);o&&a.latestFeatureIndex&&t.id===o.layerIds[0]&&this.updateBucketOpacities(o,r,a.collisionBoxArray)}},Xe.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new Ue(null,0,!1,!1,!0),s=a.get("text-allow-overlap"),l=a.get("icon-allow-overlap"),c=a.get("text-variable-anchor"),u="map"===a.get("text-rotation-alignment"),f="map"===a.get("text-pitch-alignment"),p="none"!==a.get("icon-text-fit"),d=new Ue(null,0,s&&(l||!e.hasIconData()||a.get("icon-optional")),l&&(s||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&n&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(n);for(var h=function(t,e,r){for(var n=0;n<e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=r[g],v=i.opacities[g];m?v=o:v||(v=d,i.opacities[g]=v),r[g]=!0;var y=s>0||l>0,b=a.numIconVertices>0,x=i.placedOrientations[a.crossTileID],_=x===t.WritingMode.vertical,w=x===t.WritingMode.horizontal||x===t.WritingMode.horizontalOnly;if(y){var k=nr(v.text),T=_?ir:k;h(e.text,s,T);var M=w?ir:k;h(e.text,l,M);var A=v.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=A||_?1:0)})),a.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=A||w?1:0);var S=i.variableOffsets[a.crossTileID];S&&i.markUsedJustification(e,S.anchor,a,x);var E=i.placedOrientations[a.crossTileID];E&&(i.markUsedJustification(e,"left",a,E),i.markUsedOrientation(e,E,a))}if(b){var C=nr(v.icon),O=!(p&&a.verticalPlacedIconSymbolIndex&&_);if(a.placedIconSymbolIndex>=0){var L=O?C:ir;h(e.icon,a.numIconVertices,L),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=v.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex>=0){var I=O?ir:C;h(e.icon,a.numVerticalIconVertices,I),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden()}}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var P=e.collisionArrays[n];if(P){var D=new t.Point(0,0);if(P.textBox||P.verticalTextBox){var R=!0;if(c){var z=i.variableOffsets[g];z?(D=We(z.anchor,z.width,z.height,z.textOffset,z.textBoxScale),u&&D._rotate(f?i.transform.angle:-i.transform.angle)):R=!1}P.textBox&&Ze(e.textCollisionBox.collisionVertexArray,v.text.placed,!R||_,D.x,D.y),P.verticalTextBox&&Ze(e.textCollisionBox.collisionVertexArray,v.text.placed,!R||w,D.x,D.y)}var N=Boolean(!w&&P.verticalIconBox);P.iconBox&&Ze(e.iconCollisionBox.collisionVertexArray,v.icon.placed,N,p?D.x:0,p?D.y:0),P.verticalIconBox&&Ze(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!N,p?D.x:0,p?D.y:0)}}},m=0;m<e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},Xe.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},Xe.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},Xe.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},Xe.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r>t},Xe.prototype.setStale=function(){this.stale=!0};var Ke=Math.pow(2,25),Je=Math.pow(2,24),$e=Math.pow(2,17),Qe=Math.pow(2,16),tr=Math.pow(2,9),er=Math.pow(2,8),rr=Math.pow(2,1);function nr(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Ke+e*Je+r*$e+e*Qe+r*tr+e*er+r*rr+e}var ir=0,ar=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ar.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex<t.length;){var o=t[this._currentTileIndex];if(e.getBucketParts(a,n,o,this._sortAcrossTiles),this._currentTileIndex++,i())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex<a.length;){var s=a[this._currentPartIndex];if(e.placeLayerBucketPart(s,this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0}return!1};var or=function(t,e,r,n,i,a,o){this.placement=new Xe(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};or.prototype.isDone=function(){return this._done},or.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&&e>2};this._currentPlacementIndex>=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new ar(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},or.prototype.commit=function(t){return this.placement.commit(t),this.placement};var sr=512/t.EXTENT/2,lr=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n<e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};lr.prototype.getScaledCoordinates=function(e,r){var n=r.canonical.z-this.tileID.canonical.z,i=sr/Math.pow(2,n);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*i),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*i)}},lr.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i<t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l<c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)<=n&&Math.abs(u.coord.y-s.y)<=n&&!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var cr=function(){this.maxCrossTileID=0};cr.prototype.generate=function(){return++this.maxCrossTileID};var ur=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};ur.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},ur.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n<e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)>t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&&c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u<e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new lr(t,e.symbolInstances,e.bucketInstanceId),!0},ur.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n<i.length;n+=1){var a=i[n];delete this.usedCrossTileIDs[t][a.crossTileID]}},ur.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var fr=function(){this.layerIndexes={},this.crossTileIDs=new cr,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};fr.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&&(n=this.layerIndexes[t.id]=new ur);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o<s.length;o+=1){var l=s[o],c=l.getBucket(t);c&&t.id===c.layerIds[0]&&(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&&(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&&(i=!0),i},fr.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var pr=function(e,r){return t.emitValidationErrors(e,r&&r.filter((function(t){return"source.canvas"!==t.identifier})))},dr=t.pick(ue,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),hr=t.pick(ue,["setCenter","setZoom","setBearing","setPitch"]),gr=ce(),mr=function(e){function r(n,i){var a=this;void 0===i&&(i={}),e.call(this),this.map=n,this.dispatcher=new E(ie(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new w(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new S(256,512),this.crossTileSymbolIndex=new fr,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){var r={pluginStatus:e.pluginStatus,pluginURL:e.pluginURL};o.dispatcher.broadcast("syncRTLPluginState",r,(function(e,r){if(t.triggerPluginCompletionEvent(e),r&&r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on("data",(function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&&r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&&a._validateLayer(i)}}}}))}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event("dataloading",{dataType:"style"}));var i="boolean"===typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&&n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(gr,!1)},r.prototype._load=function(e,r){if(!r||!pr(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=le(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a<o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new A(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=f(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast("setImages",r._availableImages),r.fire(new t.Event("data",{dataType:"style"}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+n+'" does not exist on source "'+i.id+'" as specified by style layer "'+e.id+'"')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r<n.length;r+=1){var i=n[r],a=this._layers[i];"custom"!==a.type&&e.push(a.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&&this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];"reload"===o?this._reloadSource(a):"clear"===o&&this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c<u.length;c+=1){var f=u[c],p=this._layers[f];p.recalculate(e,this._availableImages),!p.isHidden(e.zoom)&&p.source&&(this.sourceCaches[p.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&&this.fire(new t.Event("data",{dataType:"style"}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),pr(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=le(e.layers);var n=xe(this.serialize(),e).filter((function(t){return!(t.command in hr)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in dr)}));if(i.length>0)throw new Error("Unimplemented: "+i.map((function(t){return t.command})).join(", ")+".");return n.forEach((function(t){"setTransition"!==t.command&&r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&&(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!r.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(r).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(r.type)>=0)||!this._validate(t.validateStyle.source,"sources."+e,r,null,n)){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Kt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+r+'" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var a;if("custom"===e.type){if(pr(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if("object"===typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,"layers."+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&"custom"!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&&r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},r.prototype.setFilter=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null===r||void 0===r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,"layers."+i.id+".filter",r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;"geojson"===o&&i?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||i?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o="vector"===a?e.sourceLayer:void 0;"vector"!==a||o?r&&"string"!==typeof e.id&&"number"!==typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if("vector"!==i.getSource().type||n)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return"fill-extrusion"===e._layers[t].type},n={},i=[],a=this._order.length-1;a>=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s<l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u<f.length;u+=1){var p=f[u];i.push(p)}}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var d=[],h=this._order.length-1;h>=0;h--){var g=this._order[h];if(r(g))for(var m=i.length-1;m>=0;m--){var v=i[m].feature;if(n[v.layer.id]<h)break;d.push(v),i.pop()}else for(var y=0,b=t;y<b.length;y+=1){var x=b[y][g];if(x)for(var _=0,w=x;_<w.length;_+=1){var k=w[_];d.push(k.feature)}}}return d},r.prototype.queryRenderedFeatures=function(e,r,n){r&&r.filter&&this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",r.filter,null,r);var i={};if(r&&r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var a=0,o=r.layers;a<o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&&!i[u]||c.push(W(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&&c.push(Y(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&&r.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",r.filter,null,r);var n=this.sourceCaches[e];return n?X(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called "'+t+'" already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&&(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&&(a={}),(!a||!1!==a.validate)&&pr(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&&(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c<u.length;c+=1){var f=u[c],p=this._layers[f];if("symbol"===p.type){if(!l[p.source]){var d=this.sourceCaches[p.source];l[p.source]=d.getRenderableIds(!0).map((function(t){return d.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var h=this.crossTileSymbolIndex.addLayer(p,l[p.source],e.center.lng);o=o||h}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.browser.now(),e.zoom))&&(this.pauseablePlacement=new or(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(var g=0,m=this._order;g<m.length;g+=1){var v=m[g],y=this._layers[v];"symbol"===y.type&&this.placement.updateLayerOpacities(y,l[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&&n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);mr.getSourceType=V,mr.setSourceType=H,mr.registerForPluginStateChange=t.registerForPluginStateChange;var vr=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),yr="uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",br="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",xr="uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",_r="uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}",wr="varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",kr="uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}",Tr="void main() {gl_FragColor=vec4(1.0);}",Mr="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",Ar="uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Sr="uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}",Er="uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}",Cr="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Or="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Lr="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Ir="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Pr="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",Dr="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Rr="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",zr="#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Nr="attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}",Fr="varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Br="attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}",jr="uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Ur="uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}",Vr="uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Hr="uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}",qr="varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Gr="uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}",Wr="uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Yr="uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}",Xr="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Zr="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Kr="uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Jr="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",$r="uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Qr="\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}",tn="uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",en="\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}",rn="uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",nn="\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}",an="uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",on="\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}",sn="uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",ln="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",cn="uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",un="const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}",fn="#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",pn="const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}",dn="#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",hn="const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}",gn=Un("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),mn=Un(yr,br),vn=Un(xr,_r),yn=Un(wr,kr),bn=Un(Tr,Mr),xn=Un(Ar,Sr),_n=Un(Er,Cr),wn=Un(Or,Lr),kn=Un(Ir,Pr),Tn=Un(Dr,Rr),Mn=Un(zr,Nr),An=Un(Fr,Br),Sn=Un(jr,Ur),En=Un(Vr,Hr),Cn=Un(qr,Gr),On=Un(Wr,Yr),Ln=Un(Xr,Zr),In=Un(Kr,Jr),Pn=Un($r,Qr),Dn=Un(tn,en),Rn=Un(rn,nn),zn=Un(an,on),Nn=Un(sn,ln),Fn=Un(cn,un),Bn=Un(fn,pn),jn=Un(dn,hn);function Un(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+a+"\nvarying "+r+" "+i+" "+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n"})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o="float"===i?"vec2":"vec4",s=a.match(/color/)?"color":o;return n[a]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+r+" "+o+" a_"+a+";\nvarying "+r+" "+i+" "+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = a_"+a+";\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = unpack_mix_"+s+"(a_"+a+", u_"+a+"_t);\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+r+" "+o+" a_"+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = a_"+a+";\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = unpack_mix_"+s+"(a_"+a+", u_"+a+"_t);\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n"}))}}var Vn=Object.freeze({__proto__:null,prelude:gn,background:mn,backgroundPattern:vn,circle:yn,clippingMask:bn,heatmap:xn,heatmapTexture:_n,collisionBox:wn,collisionCircle:kn,debug:Tn,fill:Mn,fillOutline:An,fillOutlinePattern:Sn,fillPattern:En,fillExtrusion:Cn,fillExtrusionPattern:On,hillshadePrepare:Ln,hillshade:In,line:Pn,lineGradient:Dn,linePattern:Rn,lineSDF:zn,raster:Nn,symbolIcon:Fn,symbolSDF:Bn,symbolTextAndIcon:jn}),Hn=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Hn.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&&c<n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&&(l=!0);var u=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||u?this.freshBind(e,r,n,i,a,o,s):(t.bindVertexArrayOES.set(this.vao),o&&o.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind())},Hn.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f<s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var p=0,d=r;p<d.length;p+=1)d[p].enableAttributes(u,t);a&&a.enableAttributes(u,t),o&&o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var h=0,g=r;h<g.length;h+=1){var m=g[h];m.bind(),m.setVertexAttribPointers(u,t,i)}a&&(a.bind(),a.setVertexAttribPointers(u,t,i)),n&&n.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},Hn.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var qn=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&&o.push("#define OVERDRAW_INSPECTOR;");var s=o.concat(gn.fragmentSource,e.fragmentSource).join("\n"),l=o.concat(gn.vertexSource,e.vertexSource).join("\n"),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],p=0;p<f.length;p++)a.bindAttribLocation(this.program,p,f[p].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var d={},h=0;h<this.numAttributes;h++){var g=a.getActiveAttrib(this.program,h);g&&(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v<m;v++){var y=a.getActiveUniform(this.program,v);y&&(d[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,d),this.binderUniforms=r?r.getUniforms(t,d):[]}}};function Gn(t,e,r){var n=1/Be(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}function Wn(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),p=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/Be(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f>>16,p>>16],u_pixel_coord_lower:[65535&f,65535&p]}}qn.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);d&&d.setUniforms(t,this.binderUniforms,f,{zoom:p});for(var b=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],x=0,_=u.get();x<_.length;x+=1){var w=_[x],k=w.vaos||(w.vaos={});(k[s]||(k[s]=new Hn)).bind(t,this,l,d?d.getPaintVertexBuffers():[],c,w.vertexOffset,h,g),v.drawElements(e,w.primitiveLength*b,v.UNSIGNED_SHORT,w.primitiveOffset*b*2)}}};var Yn=function(e,r,n,i){var a=r.style.light,o=a.properties.get("position"),s=[o.x,o.y,o.z],l=t.create$1();"viewport"===a.properties.get("anchor")&&t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Xn=function(e,r,n,i,a,o,s){return t.extend(Yn(e,r,n,i),Gn(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},Zn=function(t){return{u_matrix:t}},Kn=function(e,r,n,i){return t.extend(Zn(e),Gn(n,r,i))},Jn=function(t,e){return{u_matrix:t,u_world:e}},$n=function(e,r,n,i,a){return t.extend(Kn(e,r,n,i),{u_world:a})},Qn=function(e,r,n,i){var a,o,s=e.transform;if("map"===i.paint.get("circle-pitch-alignment")){var l=Be(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},ti=function(t,e,r){var n=Be(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},ei=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},ri=function(t,e,r){return void 0===r&&(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},ni=function(t){return{u_matrix:t}},ii=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:Be(e,1,r),u_intensity:n}},ai=function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_color_ramp:i,u_opacity:r.paint.get("heatmap-opacity")}},oi=function(t,e,r){var n=r.paint.get("hillshade-shadow-color"),i=r.paint.get("hillshade-highlight-color"),a=r.paint.get("hillshade-accent-color"),o=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(o-=t.transform.angle);var s=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),s),u_image:0,u_latrange:li(t,e.tileID),u_light:[r.paint.get("hillshade-exaggeration"),o],u_shadow:n,u_highlight:i,u_accent:a}},si=function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}};function li(e,r){var n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new t.MercatorCoordinate(0,i/n).toLngLat().lat,new t.MercatorCoordinate(0,(i+1)/n).toLngLat().lat]}var ci=function(e,r,n){var i=e.transform;return{u_matrix:hi(e,r,n),u_ratio:1/Be(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},ui=function(e,r,n){return t.extend(ci(e,r,n),{u_image:0})},fi=function(e,r,n,i){var a=e.transform,o=di(r,a);return{u_matrix:hi(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/Be(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},pi=function(e,r,n,i,a){var o=e.transform,s=e.lineAtlas,l=di(r,o),c="round"===n.layout.get("line-cap"),u=s.getDash(i.from,c),f=s.getDash(i.to,c),p=u.width*a.fromScale,d=f.width*a.toScale;return t.extend(ci(e,r,n),{u_patternscale_a:[l/p,-u.height/2],u_patternscale_b:[l/d,-f.height/2],u_sdfgamma:s.width/(256*Math.min(p,d)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:f.y,u_mix:a.t})};function di(t,e){return 1/Be(t,1,e.tileZoom)}function hi(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}var gi=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:yi(i.paint.get("raster-saturation")),u_contrast_factor:vi(i.paint.get("raster-contrast")),u_spin_weights:mi(i.paint.get("raster-hue-rotate"))}};function mi(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}function vi(t){return t>0?1/(1-t):1+t}function yi(t){return t>0?1-1/(1.001-t):-t}var bi,xi=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},_i=function(e,r,n,i,a,o,s,l,c,u,f){var p=a.transform;return t.extend(xi(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},wi=function(e,r,n,i,a,o,s,l,c,u){return t.extend(_i(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},ki=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Ti=function(e,r,n,i,a,o){return t.extend(Wn(i,o,n,a),{u_matrix:e,u_opacity:r})},Mi={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Ai(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram("collisionBox"),f=[],p=0,d=0,h=0;h<i.length;h++){var g=i[h],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&&0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var b=s?v.textCollisionBox:v.iconCollisionBox,x=v.collisionCircleArray;if(x.length>0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:x,circleOffset:d,transform:w,invTransform:_}),d=p+=x.length/4}b&&u.draw(l,c.LINES,Ft.disabled,Ut.disabled,e.colorModeForRenderPass(),Xt.disabled,ti(y,e.transform,m),n.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,e.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&f.length){var k=e.useProgram("collisionCircle"),T=new t.StructArrayLayout2f1f2i16;T.resize(4*p),T._trim();for(var M=0,A=0,S=f;A<S.length;A+=1)for(var E=S[A],C=0;C<E.circleArray.length/4;C++){var O=4*C,L=E.circleArray[O+0],I=E.circleArray[O+1],P=E.circleArray[O+2],D=E.circleArray[O+3];T.emplace(M++,L,I,P,D,0),T.emplace(M++,L,I,P,D,1),T.emplace(M++,L,I,P,D,2),T.emplace(M++,L,I,P,D,3)}(!bi||bi.length<2*p)&&(bi=Si(p));for(var R=l.createIndexBuffer(bi,!0),z=l.createVertexBuffer(T,t.collisionCircleLayout.members,!0),N=0,F=f;N<F.length;N+=1){var B=F[N],j=ei(B.transform,B.invTransform,e.transform);k.draw(l,c.TRIANGLES,Ft.disabled,Ut.disabled,e.colorModeForRenderPass(),Xt.disabled,j,n.id,z,R,t.SegmentVector.simpleSegment(0,2*B.circleOffset,B.circleArray.length,B.circleArray.length/2),null,e.transform.zoom,null,null,null)}z.destroy(),R.destroy()}}function Si(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i<r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}var Ei=t.identity(new Float32Array(16));function Ci(t,e,r,n,i){if("translucent"===t.renderPass){var a=Ut.disabled,o=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&Li(n,t,r,e,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),i),0!==r.paint.get("icon-opacity").constantOr(1)&&Di(t,e,r,n,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),a,o),0!==r.paint.get("text-opacity").constantOr(1)&&Di(t,e,r,n,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),a,o),e.map.showCollisionBoxes&&(Ai(t,e,r,n,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Ai(t,e,r,n,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}}function Oi(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Li(e,r,n,i,a,o,s){for(var l=r.transform,c="map"===a,u="map"===o,f=0,p=e;f<p.length;f+=1){var d=p[f],h=i.getTile(d),g=h.getBucket(n);if(g&&g.text&&g.text.segments.get().length){var m=g.textSizeData,v=t.evaluateSizeForZoom(m,l.zoom),y=Be(h,1,r.transform.zoom),b=ke(d.posMatrix,u,c,r.transform,y),x="none"!==n.layout.get("icon-text-fit")&&g.hasIconData();if(v){var _=Math.pow(2,l.zoom-h.tileID.overscaledZ);Ii(g,c,u,s,t.symbolSize,l,b,d.posMatrix,_,v,x)}}}}function Ii(e,r,n,i,a,o,s,l,c,u,f){var p=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,h=e.icon.dynamicLayoutVertexArray,g={};d.clear();for(var m=0;m<p.length;m++){var v=p.get(m),y=e.allowVerticalPlacement&&!v.placedOrientation,b=v.hidden||!v.crossTileID||y?null:i[v.crossTileID];if(b){var x=new t.Point(v.anchorX,v.anchorY),_=Me(x,n?l:s),w=Ae(o.cameraToCenterDistance,_.signedDistanceFromCamera),k=a.evaluateSizeForFeature(e.textSizeData,u,v)*w/t.ONE_EM;n&&(k*=e.tilePixelRatio/c);for(var T=b.width,M=b.height,A=Oi(b.anchor,T,M,b.textOffset,b.textBoxScale,k),S=n?Me(x.add(A),s).point:_.point.add(r?A.rotate(-o.angle):A),E=e.allowVerticalPlacement&&v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,C=0;C<v.numGlyphs;C++)t.addDynamicAttributes(d,S,E);f&&v.associatedIconIndex>=0&&(g[v.associatedIconIndex]={shiftedAnchor:S,angle:E})}else Re(v.numGlyphs,d)}if(f){h.clear();for(var O=e.icon.placedSymbolArray,L=0;L<O.length;L++){var I=O.get(L);if(I.hidden)Re(I.numGlyphs,h);else{var P=g[L];if(P)for(var D=0;D<I.numGlyphs;D++)t.addDynamicAttributes(h,P.shiftedAnchor,P.angle);else Re(I.numGlyphs,h)}}e.icon.dynamicLayoutVertexBuffer.updateData(h)}e.text.dynamicLayoutVertexBuffer.updateData(d)}function Pi(t,e,r){return r.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function Di(e,r,n,i,a,o,s,l,c,u,f,p){for(var d=e.context,h=d.gl,g=e.transform,m="map"===l,v="map"===c,y=m&&"point"!==n.layout.get("symbol-placement"),b=m&&!v&&!y,x=void 0!==n.layout.get("symbol-sort-key").constantOr(1),_=e.depthModeForSublayer(0,Ft.ReadOnly),w=n.layout.get("text-variable-anchor"),k=[],T=0,M=i;T<M.length;T+=1){var A=M[T],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&&C.segments.get().length){var O=C.programConfigurations.get(n.id),L=a||E.sdfIcons,I=a?E.textSizeData:E.iconSizeData,P=v||0!==g.pitch,D=e.useProgram(Pi(L,a,E),O),R=t.evaluateSizeForZoom(I,g.zoom),z=void 0,N=[0,0],F=void 0,B=void 0,j=null,U=void 0;if(a){if(F=S.glyphAtlasTexture,B=h.LINEAR,z=S.glyphAtlasTexture.size,E.iconsInText){N=S.imageAtlasTexture.size,j=S.imageAtlasTexture;var V="composite"===I.kind||"camera"===I.kind;U=P||e.options.rotating||e.options.zooming||V?h.LINEAR:h.NEAREST}}else{var H=1!==n.layout.get("icon-size").constantOr(0)||E.iconsNeedLinear;F=S.imageAtlasTexture,B=L||e.options.rotating||e.options.zooming||H||P?h.LINEAR:h.NEAREST,z=S.imageAtlasTexture.size}var q=Be(S,1,e.transform.zoom),G=ke(A.posMatrix,v,m,e.transform,q),W=Te(A.posMatrix,v,m,e.transform,q),Y=w&&E.hasTextData(),X="none"!==n.layout.get("icon-text-fit")&&Y&&E.hasIconData();y&&Ee(E,A.posMatrix,e,a,G,W,v,u);var Z=e.translatePosMatrix(A.posMatrix,S,o,s),K=y||a&&w||X?Ei:G,J=e.translatePosMatrix(W,S,o,s,!0),$=L&&0!==n.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(1),Q={program:D,buffers:C,uniformValues:L?E.iconsInText?wi(I.kind,R,b,v,e,Z,K,J,z,N):_i(I.kind,R,b,v,e,Z,K,J,a,z,!0):xi(I.kind,R,b,v,e,Z,K,J,a,z),atlasTexture:F,atlasTextureIcon:j,atlasInterpolation:B,atlasInterpolationIcon:U,isSDF:L,hasHalo:$};if(x)for(var tt=0,et=C.segments.get();tt<et.length;tt+=1){var rt=et[tt];k.push({segments:new t.SegmentVector([rt]),sortKey:rt.sortKey,state:Q})}else k.push({segments:C.segments,sortKey:0,state:Q})}}}x&&k.sort((function(t,e){return t.sortKey-e.sortKey}));for(var nt=0,it=k;nt<it.length;nt+=1){var at=it[nt],ot=at.state;if(d.activeTexture.set(h.TEXTURE0),ot.atlasTexture.bind(ot.atlasInterpolation,h.CLAMP_TO_EDGE),ot.atlasTextureIcon&&(d.activeTexture.set(h.TEXTURE1),ot.atlasTextureIcon&&ot.atlasTextureIcon.bind(ot.atlasInterpolationIcon,h.CLAMP_TO_EDGE)),ot.isSDF){var st=ot.uniformValues;ot.hasHalo&&(st.u_is_halo=1,Ri(ot.buffers,at.segments,n,e,ot.program,_,f,p,st)),st.u_is_halo=0}Ri(ot.buffers,at.segments,n,e,ot.program,_,f,p,ot.uniformValues)}}function Ri(t,e,r,n,i,a,o,s,l){var c=n.context,u=c.gl;i.draw(c,u.TRIANGLES,a,o,s,Xt.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function zi(e,r,n,i){if("translucent"===e.renderPass){var a=n.paint.get("circle-opacity"),o=n.paint.get("circle-stroke-width"),s=n.paint.get("circle-stroke-opacity"),l=void 0!==n.layout.get("circle-sort-key").constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&&0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Ft.ReadOnly),p=Ut.disabled,d=e.colorModeForRenderPass(),h=[],g=0;g<i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var b=y.programConfigurations.get(n.id),x={programConfiguration:b,program:e.useProgram("circle",b),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Qn(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_<w.length;_+=1){var k=w[_];h.push({segments:new t.SegmentVector([k]),sortKey:k.sortKey,state:x})}else h.push({segments:y.segments,sortKey:0,state:x})}}l&&h.sort((function(t,e){return t.sortKey-e.sortKey}));for(var T=0,M=h;T<M.length;T+=1){var A=M[T],S=A.state,E=S.programConfiguration,C=S.program,O=S.layoutVertexBuffer,L=S.indexBuffer,I=S.uniformValues,P=A.segments;C.draw(c,u.TRIANGLES,f,p,d,Xt.disabled,I,n.id,O,L,P,n.paint,e.transform.zoom,E)}}}}function Ni(e,r,n,i){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){var a=e.context,o=a.gl,s=Ut.disabled,l=new Gt([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);Fi(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c<i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),p=f.getBucket(n);if(p){var d=p.programConfigurations.get(n.id),h=e.useProgram("heatmap",d),g=e.transform.zoom;h.draw(a,o.TRIANGLES,Ft.disabled,s,l,Xt.disabled,ii(u.posMatrix,f,g,n.paint.get("heatmap-intensity")),n.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,n.paint,e.transform.zoom,d)}}}a.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),ji(e,n))}function Fi(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),Bi(t,e,a,i)}}function Bi(t,e,r,n){var i=t.gl,a=t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,a,null),n.colorAttachment.set(r)}function ji(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(n,i.TRIANGLES,Ft.disabled,Ut.disabled,e.colorModeForRenderPass(),Xt.disabled,ai(e,r,0,1),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}function Ui(e,r,n,i){if("translucent"===e.renderPass){var a=n.paint.get("line-opacity"),o=n.paint.get("line-width");if(0!==a.constantOr(1)&&0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Ft.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get("line-dasharray"),u=n.paint.get("line-pattern"),f=u.constantOr(1),p=n.paint.get("line-gradient"),d=n.getCrossfadeParameters(),h=f?"linePattern":c?"lineSDF":p?"lineGradient":"line",g=e.context,m=g.gl,v=!0;if(p){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var b=0,x=i;b<x.length;b+=1){var _=x[b],w=r.getTile(_);if(!f||w.patternsLoaded()){var k=w.getBucket(n);if(k){var T=k.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(h,T),S=v||A.program!==M,E=u.constantOr(null);if(E&&w.imageAtlas){var C=w.imageAtlas,O=C.patternPositions[E.to.toString()],L=C.patternPositions[E.from.toString()];O&&L&&T.setConstantPatternPositions(O,L)}var I=f?fi(e,w,n,d):c?pi(e,w,n,c,d):p?ui(e,w,n):ci(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),T.updatePaintBuffers(d)):c&&(S||e.lineAtlas.dirty)&&(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Xt.disabled,I,n.id,k.layoutVertexBuffer,k.indexBuffer,k.segments,n.paint,e.transform.zoom,T),v=!1}}}}}}function Vi(e,r,n,i){var a=n.paint.get("fill-color"),o=n.paint.get("fill-opacity");if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===a.constantOr(t.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){var u=e.depthModeForSublayer(1,"opaque"===e.renderPass?Ft.ReadWrite:Ft.ReadOnly);Hi(e,r,n,i,u,s,!1)}if("translucent"===e.renderPass&&n.paint.get("fill-antialias")){var f=e.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,Ft.ReadOnly);Hi(e,r,n,i,f,s,!0)}}}function Hi(t,e,r,n,i,a,o){var s,l,c,u,f,p=t.context.gl,d=r.paint.get("fill-pattern"),h=d&&d.constantOr(1),g=r.getCrossfadeParameters();o?(l=h&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=p.LINES):(l=h?"fillPattern":"fill",s=p.TRIANGLES);for(var m=0,v=n;m<v.length;m+=1){var y=v[m],b=e.getTile(y);if(!h||b.patternsLoaded()){var x=b.getBucket(r);if(x){var _=x.programConfigurations.get(r.id),w=t.useProgram(l,_);h&&(t.context.activeTexture.set(p.TEXTURE0),b.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var k=d.constantOr(null);if(k&&b.imageAtlas){var T=b.imageAtlas,M=T.patternPositions[k.to.toString()],A=T.patternPositions[k.from.toString()];M&&A&&_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,b,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(o){u=x.indexBuffer2,f=x.segments2;var E=[p.drawingBufferWidth,p.drawingBufferHeight];c="fillOutlinePattern"===l&&h?$n(S,t,g,b,E):Jn(S,E)}else u=x.indexBuffer,f=x.segments,c=h?Kn(S,t,g,b):Zn(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Xt.disabled,c,r.id,x.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function qi(t,e,r,n){var i=r.paint.get("fill-extrusion-opacity");if(0!==i&&"translucent"===t.renderPass){var a=new Ft(t.context.gl.LEQUAL,Ft.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get("fill-extrusion-pattern").constantOr(1))Gi(t,e,r,n,a,Ut.disabled,Gt.disabled),Gi(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();Gi(t,e,r,n,a,Ut.disabled,o)}}}function Gi(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get("fill-extrusion-pattern"),u=c.constantOr(1),f=r.getCrossfadeParameters(),p=r.paint.get("fill-extrusion-opacity"),d=0,h=n;d<h.length;d+=1){var g=h[d],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),b=t.useProgram(u?"fillExtrusionPattern":"fillExtrusion",y);u&&(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var x=c.constantOr(null);if(x&&m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[x.to.toString()],k=_.patternPositions[x.from.toString()];w&&k&&y.setConstantPatternPositions(w,k)}var T=t.translatePosMatrix(g.posMatrix,m,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),M=r.paint.get("fill-extrusion-vertical-gradient"),A=u?Xn(T,t,M,p,g,f,m):Yn(T,t,M,p);b.draw(s,s.gl.TRIANGLES,i,a,o,Xt.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function Wi(t,e,r,n){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Ft.ReadOnly),s=t.colorModeForRenderPass(),l="translucent"===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u<f.length;u+=1){var p=f[u],d=e.getTile(p);d.needsHillshadePrepare&&"offscreen"===t.renderPass?Xi(t,d,r,a,o,Ut.disabled,s):"translucent"===t.renderPass&&Yi(t,d,r,o,c[p.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}}function Yi(t,e,r,n,i,a){var o=t.context,s=o.gl,l=e.fbo;if(l){var c=t.useProgram("hillshade");o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var u=oi(t,e,r);c.draw(o,s.TRIANGLES,n,i,a,Xt.disabled,u,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function Xi(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&&u.data){var f=u.dim,p=u.stride,d=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(p),r.demTexture){var h=r.demTexture;h.update(d,{premultiply:!1}),h.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,d,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram("hillshadePrepare").draw(l,c.TRIANGLES,a,o,s,Xt.disabled,si(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function Zi(t,e,r,n){if("translucent"===t.renderPass&&0!==r.paint.get("raster-opacity")&&n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram("raster"),l=t.colorModeForRenderPass(),c=o instanceof z?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],p=f[f.length-1].overscaledZ,d=!t.options.moving,h=0,g=f;h<g.length;h+=1){var m=g[h],v=t.depthModeForSublayer(m.overscaledZ-p,1===r.paint.get("raster-opacity")?Ft.ReadWrite:Ft.ReadOnly,a.LESS),y=e.getTile(m),b=t.transform.calculatePosMatrix(m.toUnwrapped(),d);y.registerFadeDuration(r.paint.get("raster-fade-duration"));var x=e.findLoadedParent(m,0),_=Ki(y,x,e,r,t.transform),w=void 0,k=void 0,T="nearest"===r.paint.get("raster-resampling")?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(T,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),x?(x.texture.bind(T,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,x.tileID.overscaledZ-y.tileID.overscaledZ),k=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(T,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=gi(b,k||[0,0],w||1,_,r);o instanceof z?s.draw(i,a.TRIANGLES,v,Ut.disabled,l,Xt.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Xt.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function Ki(e,r,n,i,a){var o=i.paint.get("raster-fade-duration");if(o>0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),p=!r||Math.abs(r.tileID.overscaledZ-f)>Math.abs(e.tileID.overscaledZ-f),d=p&&e.refreshedUponExpiration?1:t.clamp(p?l:1-c,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}function Ji(t,e,r){var n=r.paint.get("background-color"),i=r.paint.get("background-opacity");if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get("background-pattern");if(!t.isPatternMissing(c)){var u=!c&&1===n.a&&1===i&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===u){var f=Ut.disabled,p=t.depthModeForSublayer(0,"opaque"===u?Ft.ReadWrite:Ft.ReadOnly),d=t.colorModeForRenderPass(),h=t.useProgram(c?"backgroundPattern":"background"),g=s.coveringTiles({tileSize:l});c&&(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v<y.length;v+=1){var b=y[v],x=t.transform.calculatePosMatrix(b.toUnwrapped()),_=c?Ti(x,i,t,c,{tileID:b,tileSize:l},m):ki(x,i,n);h.draw(a,o.TRIANGLES,p,f,d,Xt.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}}var $i=new t.Color(1,0,0,1),Qi=new t.Color(0,1,0,1),ta=new t.Color(0,0,1,1),ea=new t.Color(1,0,1,1),ra=new t.Color(0,1,1,1);function na(t){var e=t.transform.padding,r=3;aa(t,t.transform.height-(e.top||0),r,$i),aa(t,e.bottom||0,r,Qi),oa(t,e.left||0,r,ta),oa(t,t.transform.width-(e.right||0),r,ea);var n=t.transform.centerPoint;ia(t,n.x,t.transform.height-n.y,ra)}function ia(t,e,r,n){var i=20,a=2;sa(t,e-a/2,r-i/2,a,i,n),sa(t,e-i/2,r-a/2,i,a,n)}function aa(t,e,r,n){sa(t,0,e+r/2,t.transform.width,r,n)}function oa(t,e,r,n){sa(t,e-r/2,0,r,t.transform.height,n)}function sa(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function la(t,e,r){for(var n=0;n<r.length;n++)ca(t,e,r[n])}function ca(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram("debug"),l=Ft.disabled,c=Ut.disabled,u=e.colorModeForRenderPass(),f="$debug";i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Xt.disabled,ri(o,t.Color.red),f,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var p=r.getTileByID(n.key).latestRawTileData,d=p&&p.byteLength||0,h=Math.floor(d/1024),g=r.getTile(n).tileSize,m=512/Math.min(g,512)*(n.overscaledZ/e.transform.zoom)*.5,v=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(v+=" => "+n.overscaledZ),ua(e,v+" "+h+"kb"),s.draw(i,a.TRIANGLES,l,c,Gt.alphaBlended,Xt.disabled,ri(o,t.Color.transparent,m),f,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}function ua(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,r.width,r.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}function fa(t,e,r){var n=t.context,i=r.implementation;if("offscreen"===t.renderPass){var a=i.prerender;a&&(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(Ut.disabled);var o="3d"===i.renderingMode?new Ft(t.context.gl.LEQUAL,Ft.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Ft.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}var pa={symbol:Ci,circle:zi,heatmap:Ni,line:Ui,fill:Vi,"fill-extrusion":qi,hillshade:Wi,raster:Zi,background:Ji,debug:la,custom:fa},da=function(t,e){this.context=new Zt(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Kt.maxUnderzooming+Kt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new fr,this.gpuTimers={}};da.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n<i.length;n+=1){var a=i[n];this.style._layers[a].resize()}},da.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,vr.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,vr.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,R.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,vr.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new Ut({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},da.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,r.TRIANGLES,Ft.disabled,this.stencilClearMode,Gt.disabled,Xt.disabled,ni(n),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},da.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&&t.isTileClipped()&&e&&e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length>256&&this.clearStencil(),r.setColorMode(Gt.disabled),r.setDepthMode(Ft.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var a=0,o=e;a<o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Ft.disabled,new Ut({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),Gt.disabled,Xt.disabled,ni(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},da.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Ut({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},da.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Ut({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},da.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();for(var o={},s=0;s<a;s++)o[s+i]=new Ut({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=Ut.disabled,e),n]},da.prototype.colorModeForRenderPass=function(){var e=this.context.gl;if(this._showOverdrawInspector){var r=1/8;return new Gt([e.CONSTANT_COLOR,e.ONE],new t.Color(r,r,r,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?Gt.unblended:Gt.alphaBlended},da.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Ft.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Ft(r||this.context.gl.LEQUAL,e,[n,n])},da.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},da.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&&s.prepare(this.context)}var l,c,u={},f={},p={};for(var d in a){var h=a[d];u[d]=h.getVisibleCoordinates(),f[d]=u[d].slice().reverse(),p[d]=h.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g<i.length;g++){var m=i[g];if(this.style._layers[m].is3D()){this.opaquePassCutoff=g;break}}this.renderPass="offscreen";for(var v=0,y=i;v<y.length;v+=1){var b=y[v],x=this.style._layers[b];if(x.hasOffscreenPass()&&!x.isHidden(this.transform.zoom)){var _=f[x.source];("custom"===x.type||_.length)&&this.renderLayer(this,a[x.source],x,_)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=i.length-1;this.currentLayer>=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],k=a[w.source],T=u[w.source];this._renderTileClippingMasks(w,T),this.renderLayer(this,k,w,T)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){var M=this.style._layers[i[this.currentLayer]],A=a[M.source],S=("symbol"===M.type?p:f)[M.source];this._renderTileClippingMasks(M,u[M.source]),this.renderLayer(this,A,M,S)}this.options.showTileBoundaries&&(t.values(this.style._layers).forEach((function(t){t.source&&!t.isHidden(n.transform.zoom)&&(t.source!==(c&&c.id)&&(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom<c.getSource().maxzoom)&&(l=c))})),l&&pa.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&&na(this),this.context.setDefault()},da.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||("background"===r.type||"custom"===r.type||n.length)&&(this.id=r.id,this.gpuTimingStart(r),pa[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},da.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},da.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},da.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},da.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},da.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&&!n[1])return e;var o=a?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:Be(r,n[0],this.transform.zoom),a?n[1]:Be(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},da.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},da.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},da.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},da.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[r]||(this.cache[r]=new qn(this.context,Vn[t],e,Mi[t],this._showOverdrawInspector)),this.cache[r]},da.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},da.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},da.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var e=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,e.RGBA)}},da.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ha=function(t,e){this.points=t,this.planes=e};ha.fromInvProjectionMatrix=function(e,r,n){var i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],a=Math.pow(2,n),o=i.map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*a)})),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],o[e[0]],o[e[1]]),n=t.sub([],o[e[2]],o[e[1]]),i=t.normalize([],t.cross([],r,n)),a=-t.dot(i,o[e[1]]);return i.concat(a)}));return new ha(o,s)};var ga=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};ga.prototype.quadrant=function(e){for(var r=[e%2===0,e<2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a<r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new ga(n,i)},ga.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},ga.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},ga.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i<e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s<r.length;s++)o+=t.dot$1(a,r[s])>=0;if(0===o)return 0;o!==r.length&&(n=!1)}if(n)return 2;for(var l=0;l<3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f<e.points.length;f++){var p=e.points[f][l]-this.min[l];c=Math.min(c,p),u=Math.max(u,p)}if(u<0||c>this.max[l]-this.min[l])return 0}return 1};var ma=function(t,e,r,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=r,this.right=n};ma.prototype.interpolate=function(e,r,n){return null!=r.top&&null!=e.top&&(this.top=t.number(e.top,r.top,n)),null!=r.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&&null!=e.left&&(this.left=t.number(e.left,r.left,n)),null!=r.right&&null!=e.right&&(this.right=t.number(e.right,r.right,n)),this},ma.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},ma.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},ma.prototype.clone=function(){return new ma(this.top,this.bottom,this.left,this.right)},ma.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var va=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=void 0===n||null===n?0:n,this._maxPitch=void 0===i||null===i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new ma,this._posMatrixCache={},this._alignedPosMatrixCache={}},ya={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};function ba(t,e){var r=!1,n=null,i=function i(){n=null,r&&(t(),n=setTimeout(i,e),r=!1)};return function(){return r=!0,n||i(),n}}va.prototype.clone=function(){var t=new va(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},ya.minZoom.get=function(){return this._minZoom},ya.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},ya.maxZoom.get=function(){return this._maxZoom},ya.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},ya.minPitch.get=function(){return this._minPitch},ya.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},ya.maxPitch.get=function(){return this._maxPitch},ya.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},ya.renderWorldCopies.get=function(){return this._renderWorldCopies},ya.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},ya.worldSize.get=function(){return this.tileSize*this.scale},ya.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ya.size.get=function(){return new t.Point(this.width,this.height)},ya.bearing.get=function(){return-this.angle/Math.PI*180},ya.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ya.pitch.get=function(){return this._pitch/Math.PI*180},ya.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},ya.fov.get=function(){return this._fov/Math.PI*180},ya.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},ya.zoom.get=function(){return this._zoom},ya.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},ya.center.get=function(){return this._center},ya.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},ya.padding.get=function(){return this._edgeInsets.toJSON()},ya.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},ya.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},va.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},va.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},va.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},va.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=1,u=s-c;u<=l+c;u++)0!==u&&r.push(new t.UnwrappedTileID(u,e));return r},va.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&&r<e.minzoom)return[];void 0!==e.maxzoom&&r>e.maxzoom&&(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=ha.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=r);var c=3,u=function(t){return{aabb:new ga([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},f=[],p=[],d=r,h=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var g=1;g<=3;g++)f.push(u(-g)),f.push(u(g));for(f.push(u(0));f.length>0;){var m=f.pop(),v=m.x,y=m.y,b=m.fullyVisible;if(!b){var x=m.aabb.intersects(s);if(0===x)continue;b=2===x}var _=m.aabb.distanceX(o),w=m.aabb.distanceY(o),k=Math.max(Math.abs(_),Math.abs(w)),T=c+(1<<d-m.zoom)-2;if(m.zoom===d||k>T&&m.zoom>=l)p.push({tileID:new t.OverscaledTileID(m.zoom===d?h:m.zoom,m.wrap,m.zoom,v,y),distanceSq:t.sqrLen([o[0]-.5-v,o[1]-.5-y])});else for(var M=0;M<4;M++){var A=(v<<1)+M%2,S=(y<<1)+(M>>1);f.push({aabb:m.aabb.quadrant(M),zoom:m.zoom+1,x:A,y:S,wrap:m.wrap,fullyVisible:b})}}return p.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},va.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},ya.unmodified.get=function(){return this._unmodified},va.prototype.zoomScale=function(t){return Math.pow(2,t)},va.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},va.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},va.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},ya.point.get=function(){return this.project(this.center)},va.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},va.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},va.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},va.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},va.prototype.coordinateLocation=function(t){return t.toLngLat()},va.prototype.pointCoordinate=function(e){var r=0,n=[e.x,e.y,0,1],i=[e.x,e.y,1,1];t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(i,i,this.pixelMatrixInverse);var a=n[3],o=i[3],s=n[0]/a,l=i[0]/o,c=n[1]/a,u=i[1]/o,f=n[2]/a,p=i[2]/o,d=f===p?0:(r-f)/(p-f);return new t.MercatorCoordinate(t.number(s,l,d)/this.worldSize,t.number(c,u,d)/this.worldSize)},va.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},va.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},va.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},va.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},va.prototype.calculatePosMatrix=function(e,r){void 0===r&&(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},va.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},va.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a<c.y?c.y/(o-a):0}if(this.lngRange){var p=this.lngRange;s=t.mercatorXfromLng(p[0])*this.worldSize,r=(l=t.mercatorXfromLng(p[1])*this.worldSize)-s<c.x?c.x/(l-s):0}var d=this.point,h=Math.max(r||0,e||0);if(h)return this.center=this.unproject(new t.Point(r?(l+s)/2:d.x,e?(o+a)/2:d.y)),this.zoom+=this.scaleZoom(h),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=d.y,m=c.y/2;g-m<a&&(i=a+m),g+m>o&&(i=o-m)}if(this.lngRange){var v=d.x,y=c.x/2;v-y<s&&(n=s+y),v+y>l&&(n=l-y)}void 0===n&&void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:d.x,void 0!==i?i:d.y))),this._unmodified=u,this._constraining=!1}},va.prototype._calcMatrices=function(){if(this.height){var e=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,f=new Float64Array(16);t.perspective(f,this._fov,this.width/this.height,u,c),f[8]=2*-r.x/this.width,f[9]=2*r.y/this.height,t.scale(f,f,[1,-1,1]),t.translate(f,f,[0,0,-this.cameraToCenterDistance]),t.rotateX(f,f,this._pitch),t.rotateZ(f,f,this.angle),t.translate(f,f,[-s,-l,0]),this.mercatorMatrix=t.scale([],f,[this.worldSize,this.worldSize,this.worldSize]),t.scale(f,f,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=f,this.invProjMatrix=t.invert([],this.projMatrix);var p=this.width%2/2,d=this.height%2/2,h=Math.cos(this.angle),g=Math.sin(this.angle),m=s-Math.round(s)+h*p+g*d,v=l-Math.round(l)+h*d+g*p,y=new Float64Array(f);if(t.translate(y,y,[m>.5?m-1:m,v>.5?v-1:v,0]),this.alignedProjMatrix=y,f=t.create(),t.scale(f,f,[this.width/2,-this.height/2,1]),t.translate(f,f,[1,-1,0]),this.labelPlaneMatrix=f,f=t.create(),t.scale(f,f,[1,-1,1]),t.translate(f,f,[-1,-1,0]),t.scale(f,f,[2/this.width,2/this.height,1]),this.glCoordMatrix=f,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(f=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=f,this._posMatrixCache={},this._alignedPosMatrixCache={}}},va.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},va.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},va.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s<l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(va.prototype,ya);var xa=function(e){this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=ba(this._updateHashUnthrottled.bind(this),300)};xa.prototype.addTo=function(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},xa.prototype.remove=function(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},xa.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u="";if(u+=e?"/"+o+"/"+s+"/"+n:n+"/"+s+"/"+o,(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+="/"+Math.round(c)),this._hashName){var f=this._hashName,p=!1,d=t.window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===f?(p=!0,e+"="+u):t})).filter((function(t){return t}));return p||d.push(f+"="+u),"#"+d.join("&")}return"#"+u},xa.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace("#","");return this._hashName?(n.split("&").map((function(t){return t.split("=")})).forEach((function(t){t[0]===r._hashName&&(e=t)})),(e&&e[1]||"").split("/")):n.split("/")},xa.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length>=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},xa.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,"",e)}catch(r){}};var _a={linearity:.3,easing:t.bezier(0,0,.3,1)},wa=t.extend({deceleration:2500,maxSpeed:1400},_a),ka=t.extend({deceleration:20,maxSpeed:1400},_a),Ta=t.extend({deceleration:1e3,maxSpeed:360},_a),Ma=t.extend({deceleration:1e3,maxSpeed:90},_a),Aa=function(t){this._map=t,this.clear()};function Sa(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function Ea(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Aa.prototype.clear=function(){this._inertiaBuffer=[]},Aa.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Aa.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now(),n=160;e.length>0&&r-e[0].time>n;)e.shift()},Aa.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n<i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&&r.pan._add(a.panDelta),a.around&&(r.around=a.around),a.pinchAround&&(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Ea(r.pan.mag(),o,t.extend({},wa,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,Sa(s,l)}if(r.zoom){var c=Ea(r.zoom,o,ka);s.zoom=this._map.transform.zoom+c.amount,Sa(s,c)}if(r.bearing){var u=Ea(r.bearing,o,Ta);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),Sa(s,u)}if(r.pitch){var f=Ea(r.pitch,o,Ma);s.pitch=this._map.transform.pitch+f.amount,Sa(s,f)}if(s.zoom||s.bearing){var p=void 0===r.pinchAround?r.around:r.pinchAround;s.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Ca=function(e){function n(n,i,a,o){void 0===o&&(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Oa=function(e){function n(n,i,a){var o="touchend"===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),La=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Ia=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Ia.prototype.reset=function(){delete this._mousedownPos},Ia.prototype.wheel=function(t){return this._firePreventable(new La(t.type,this._map,t))},Ia.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Ca(t.type,this._map,t))},Ia.prototype.mouseup=function(t){this._map.fire(new Ca(t.type,this._map,t))},Ia.prototype.click=function(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new Ca(t.type,this._map,t))},Ia.prototype.dblclick=function(t){return this._firePreventable(new Ca(t.type,this._map,t))},Ia.prototype.mouseover=function(t){this._map.fire(new Ca(t.type,this._map,t))},Ia.prototype.mouseout=function(t){this._map.fire(new Ca(t.type,this._map,t))},Ia.prototype.touchstart=function(t){return this._firePreventable(new Oa(t.type,this._map,t))},Ia.prototype.touchmove=function(t){this._map.fire(new Oa(t.type,this._map,t))},Ia.prototype.touchend=function(t){this._map.fire(new Oa(t.type,this._map,t))},Ia.prototype.touchcancel=function(t){this._map.fire(new Oa(t.type,this._map,t))},Ia.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Ia.prototype.isEnabled=function(){return!0},Ia.prototype.isActive=function(){return!1},Ia.prototype.enable=function(){},Ia.prototype.disable=function(){};var Pa=function(t){this._map=t};Pa.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Pa.prototype.mousemove=function(t){this._map.fire(new Ca(t.type,this._map,t))},Pa.prototype.mousedown=function(){this._delayContextMenu=!0},Pa.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ca("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Pa.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Ca(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Pa.prototype.isEnabled=function(){return!0},Pa.prototype.isActive=function(){return!1},Pa.prototype.enable=function(){},Pa.prototype.disable=function(){};var Da=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Ra(t,e){for(var r={},n=0;n<t.length;n++)r[t[n].identifier]=e[n];return r}function za(e){for(var r=new t.Point(0,0),n=0,i=e;n<i.length;n+=1){var a=i[n];r._add(a)}return r.div(e.length)}Da.prototype.isEnabled=function(){return!!this._enabled},Da.prototype.isActive=function(){return!!this._active},Da.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Da.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Da.prototype.mousedown=function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Da.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,"translate("+a+"px,"+s+"px)"),this._box.style.width=o-a+"px",this._box.style.height=l-s+"px"}}},Da.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&&0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",e)}},Da.prototype.keydown=function(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))},Da.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Da.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var Na=500,Fa=500,Ba=30,ja=function(t){this.reset(),this.numTouches=t.numTouches};ja.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},ja.prototype.touchstart=function(t,e,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=za(e),this.touches=Ra(r,e)))},ja.prototype.touchmove=function(t,e,r){if(!this.aborted&&this.centroid){var n=Ra(r,e);for(var i in this.touches){var a=this.touches[i],o=n[i];(!o||o.dist(a)>Ba)&&(this.aborted=!0)}}},ja.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime>Fa)&&(this.aborted=!0),0===r.length){var n=!this.aborted&&this.centroid;if(this.reset(),n)return n}};var Ua=function(t){this.singleTap=new ja(t),this.numTaps=t.numTaps,this.reset()};Ua.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ua.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Ua.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Ua.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime<Na,a=!this.lastTap||this.lastTap.dist(n)<Ba;if(i&&a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Va=function(){this._zoomIn=new Ua({numTouches:1,numTaps:2}),this._zoomOut=new Ua({numTouches:2,numTaps:1}),this.reset()};Va.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Va.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Va.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Va.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Va.prototype.touchcancel=function(){this.reset()},Va.prototype.enable=function(){this._enabled=!0},Va.prototype.disable=function(){this._enabled=!1,this.reset()},Va.prototype.isEnabled=function(){return this._enabled},Va.prototype.isActive=function(){return this._active};var Ha=0,qa=2,Ga=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Ga.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Ga.prototype._correctButton=function(t,e){return!1},Ga.prototype._move=function(t,e){return{}},Ga.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}},Ga.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&&(t.preventDefault(),this._moved||!(e.dist(r)<this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},Ga.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&&(this._moved&&r.suppressClick(),this.reset())},Ga.prototype.enable=function(){this._enabled=!0},Ga.prototype.disable=function(){this._enabled=!1,this.reset()},Ga.prototype.isEnabled=function(){return this._enabled},Ga.prototype.isActive=function(){return this._active};var Wa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&&(this._active=!0)},e.prototype._correctButton=function(t,e){return e===Ha&&!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Ga),Ya=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return e===Ha&&t.ctrlKey||e===qa},e.prototype._move=function(t,e){var r=.8,n=(e.x-t.x)*r;if(n)return this._active=!0,{bearingDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Ga),Xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return e===Ha&&t.ctrlKey||e===qa},e.prototype._move=function(t,e){var r=-.5,n=(e.y-t.y)*r;if(n)return this._active=!0,{pitchDelta:n}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Ga),Za=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Za.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Za.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Za.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Za.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&&r.length<this._minTouches&&this.reset()},Za.prototype.touchcancel=function(){this.reset()},Za.prototype._calculateTransform=function(e,r,n){n.length>0&&(this._active=!0);var i=Ra(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&&(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s<this._minTouches)&&o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()<this._clickTolerance))return{around:a.div(s),panDelta:f}}},Za.prototype.enable=function(){this._enabled=!0},Za.prototype.disable=function(){this._enabled=!1,this.reset()},Za.prototype.isEnabled=function(){return this._enabled},Za.prototype.isActive=function(){return this._active};var Ka=function(){this.reset()};function Ja(t,e,r){for(var n=0;n<t.length;n++)if(t[n].identifier===r)return e[n]}Ka.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Ka.prototype._start=function(t){},Ka.prototype._move=function(t,e,r){return{}},Ka.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length<2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Ka.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[0],a=n[1],o=Ja(r,e,i),s=Ja(r,e,a);if(o&&s){var l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,t)}}},Ka.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[0],o=i[1],s=Ja(n,e,a),l=Ja(n,e,o);s&&l||(this._active&&r.suppressClick(),this.reset())}},Ka.prototype.touchcancel=function(){this.reset()},Ka.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around},Ka.prototype.disable=function(){this._enabled=!1,this.reset()},Ka.prototype.isEnabled=function(){return this._enabled},Ka.prototype.isActive=function(){return this._active};var $a=.1;function Qa(t,e){return Math.log(t/e)/Math.LN2}var to=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Qa(this._distance,this._startDistance))<$a))return this._active=!0,{zoomDelta:Qa(this._distance,r),pinchAround:e}},e}(Ka),eo=25;function ro(t,e){return 180*t.angleWith(e)/Math.PI}var no=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ro(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=Math.PI*this._minDiameter,r=eo/e*360,n=ro(t,this._startVector);return Math.abs(n)<r},e}(Ka);function io(t){return Math.abs(t.y)>Math.abs(t.x)}var ao=100,oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,io(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=2,i=t.mag()>=n,a=e.mag()>=n;if(i||a){if(!i||!a)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove<ao&&void 0;var o=t.y>0===e.y>0;return io(t)&&io(e)&&o}},e}(Ka),so={panStep:100,bearingStep:15,pitchStep:10},lo=function(){var t=so;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function co(t){return t*(2-t)}lo.prototype.reset=function(){this._active=!1},lo.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:co,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},lo.prototype.enable=function(){this._enabled=!0},lo.prototype.disable=function(){this._enabled=!1,this.reset()},lo.prototype.isEnabled=function(){return this._enabled},lo.prototype.isActive=function(){return this._active};var uo=4.000244140625,fo=.01,po=1/450,ho=2,go=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=fo,this._wheelZoomRate=po,t.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};go.prototype.setZoomRate=function(t){this._defaultZoomRate=t},go.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},go.prototype.isEnabled=function(){return!!this._enabled},go.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},go.prototype.isZooming=function(){return!!this._zooming},go.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},go.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},go.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%uo===0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},go.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},go.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},go.prototype.renderFrame=function(){return this._onScrollFrame()},go.prototype._onScrollFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&Math.abs(this._delta)>uo?this._wheelZoomRate:this._defaultZoomRate,i=ho/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var a="number"===typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),"wheel"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s="number"===typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if("wheel"===this._type&&l&&c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),p=c(f);o=t.number(l,s,p),f<1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},go.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},go.prototype.reset=function(){this._active=!1};var mo=function(t,e){this._clickZoom=t,this._tapZoom=e};mo.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},mo.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},mo.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},mo.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var vo=function(){this.reset()};vo.prototype.reset=function(){this._active=!1},vo.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},vo.prototype.enable=function(){this._enabled=!0},vo.prototype.disable=function(){this._enabled=!1,this.reset()},vo.prototype.isEnabled=function(){return this._enabled},vo.prototype.isActive=function(){return this._active};var yo=function(){this._tap=new Ua({numTouches:1,numTaps:1}),this.reset()};yo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},yo.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>Na&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},yo.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},yo.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(t,e,r)&&(this._tapTime=t.timeStamp)},yo.prototype.touchcancel=function(){this.reset()},yo.prototype.enable=function(){this._enabled=!0},yo.prototype.disable=function(){this._enabled=!1,this.reset()},yo.prototype.isEnabled=function(){return this._enabled},yo.prototype.isActive=function(){return this._active};var bo=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};bo.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},bo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},bo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},bo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var xo=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};xo.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},xo.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},xo.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},xo.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var _o=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};_o.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},_o.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},_o.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},_o.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},_o.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},_o.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var wo=function(t){return t.zoom||t.drag||t.pitch||t.rotate},ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t.Event);function To(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var Mo=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Aa(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!1}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(var a=0,o=this._listeners;a<o.length;a+=1){var s=o[a],l=s[0],c=s[1],u=s[2];r.addEventListener(l,c,l===t.window.document?this.handleWindowEvent:this.handleEvent,u)}};Mo.prototype.destroy=function(){for(var e=0,n=this._listeners;e<n.length;e+=1){var i=n[e],a=i[0],o=i[1],s=i[2];r.removeEventListener(a,o,a===t.window.document?this.handleWindowEvent:this.handleEvent,s)}},Mo.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add("mapEvent",new Ia(e,t));var n=e.boxZoom=new Da(e,t);this._add("boxZoom",n);var i=new Va,a=new vo;e.doubleClickZoom=new mo(a,i),this._add("tapZoom",i),this._add("clickZoom",a);var o=new yo;this._add("tapDragZoom",o);var s=e.touchPitch=new oo;this._add("touchPitch",s);var l=new Ya(t),c=new Xa(t);e.dragRotate=new xo(t,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);var u=new Wa(t),f=new Za(t);e.dragPan=new bo(r,u,f),this._add("mousePan",u),this._add("touchPan",f,["touchZoom","touchRotate"]);var p=new no,d=new to;e.touchZoomRotate=new _o(r,d,p,o),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]);var h=e.scrollZoom=new go(e,this);this._add("scrollZoom",h,["mousePan"]);var g=e.keyboard=new lo;this._add("keyboard",g),this._add("blockableMapEvent",new Pa(e));for(var m=0,v=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];m<v.length;m+=1){var y=v[m];t.interactive&&t[y]&&e[y].enable(t[y])}},Mo.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},Mo.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t<e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},Mo.prototype.isActive=function(){for(var t=0,e=this._handlers;t<e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},Mo.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},Mo.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},Mo.prototype.isMoving=function(){return Boolean(wo(this._eventsInProgress))||this.isZooming()},Mo.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&&(!e||e.indexOf(n)<0))return!0;return!1},Mo.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+"Window")},Mo.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.target;this._el.contains(a)&&e.push(i)}return e},Mo.prototype.handleEvent=function(t,e){if("blur"!==t.type){this._updatingCamera=!0;for(var n="renderFrame"===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c<u.length;c+=1){var f=u[c],p=f.handlerName,d=f.handler,h=f.allowed;if(d.isEnabled()){var g=void 0;this._blockedByActive(o,h,p)?d.reset():d[e||t.type]&&(g=d[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,p,n),g&&g.needsRenderFrame&&this._triggerRenderFrame()),(g||d.isActive())&&(o[p]=d)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||To(i))&&(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||To(i))&&this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&&(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},Mo.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&&(r.zoom=o),void 0!==n.panDelta&&(r.drag=o),void 0!==n.pitchDelta&&(r.pitch=o),void 0!==n.bearingDelta&&(r.rotate=o)}},Mo.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i<a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&&(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(e.around=s.around),void 0!==s.pinchAround&&(e.pinchAround=s.pinchAround),s.noInertia&&(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},Mo.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!To(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&&(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&&(i.bearing+=s),l&&(i.pitch+=l),o&&(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},Mo.prototype._fireEvents=function(e,r){var n=this,i=wo(this._eventsInProgress),a=wo(e),o={};for(var s in e){var l=e[s].originalEvent;this._eventsInProgress[s]||(o[s+"start"]=l),this._eventsInProgress[s]=e[s]}for(var c in!i&&a&&this._fireEvent("movestart",a.originalEvent),o)this._fireEvent(c,o[c]);for(var u in e.rotate&&(this._bearingChanged=!0),a&&this._fireEvent("move",a.originalEvent),e){var f=e[u].originalEvent;this._fireEvent(u,f)}var p,d={};for(var h in this._eventsInProgress){var g=this._eventsInProgress[h],m=g.handlerName,v=g.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[h],p=r[m]||v,d[h+"end"]=p)}for(var y in d)this._fireEvent(y,d[y]);var b=wo(this._eventsInProgress);if((i||a)&&!b){this._updatingCamera=!0;var x=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(t){return 0!==t&&-n._bearingSnap<t&&t<n._bearingSnap};x?(_(x.bearing||this._map.getBearing())&&(x.bearing=0),this._map.easeTo(x,{originalEvent:p})):(this._map.fire(new t.Event("moveend",{originalEvent:p})),_(this._map.getBearing())&&this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},Mo.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},Mo.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&&(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new ko("renderFrame",{timeStamp:e})),t._applyChanges()})))};var Ao=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if("number"===typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),p=u.rotate(-n*Math.PI/180),d=new t.Point(Math.max(f.x,p.x),Math.max(f.y,p.y)),h=new t.Point(Math.min(f.x,p.x),Math.min(f.y,p.y)),g=d.sub(h),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v<0||m<0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),b=t.Point.convert(i.offset),x=(i.padding.left-i.padding.right)/2,_=(i.padding.top-i.padding.bottom)/2,w=new t.Point(b.x+x,b.y+_).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(w)),zoom:y,bearing:n}}t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return"zoom"in e&&n.zoom!==+e.zoom&&(i=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=t.LngLat.convert(e.center)),"bearing"in e&&n.bearing!==+e.bearing&&(a=!0,n.bearing=+e.bearing),"pitch"in e&&n.pitch!==+e.pitch&&(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event("movestart",r)).fire(new t.Event("move",r)),i&&this.fire(new t.Event("zoomstart",r)).fire(new t.Event("zoom",r)).fire(new t.Event("zoomend",r)),a&&this.fire(new t.Event("rotatestart",r)).fire(new t.Event("rotate",r)).fire(new t.Event("rotateend",r)),o&&this.fire(new t.Event("pitchstart",r)).fire(new t.Event("pitch",r)).fire(new t.Event("pitchend",r)),this.fire(new t.Event("moveend",r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&&t.browser.prefersReducedMotion)&&(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c="zoom"in e?+e.zoom:a,u="bearing"in e?this._normalizeBearing(e.bearing,o):o,f="pitch"in e?+e.pitch:s,p="padding"in e?e.padding:i.padding,d=t.Point.convert(e.offset),h=i.centerPoint.add(d),g=i.pointLocation(h),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,b=i.project(g),x=i.project(m).sub(b),_=i.zoomScale(c-a);e.around&&(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(p),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&&(i.zoom=t.number(a,c,e)),n._rotating&&(i.bearing=t.number(o,u,e)),n._pitching&&(i.pitch=t.number(s,f,e)),n._padding&&(i.interpolatePadding(l,p,e),h=i.centerPoint.add(d)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c>a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),k=i.unproject(b.add(x.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?k.wrap():k,h)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&&(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!n.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new t.Event("pitchstart",e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),a&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&&t.browser.prefersReducedMotion){var i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u="zoom"in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f="bearing"in e?this._normalizeBearing(e.bearing,s):s,p="pitch"in e?+e.pitch:l,d="padding"in e?e.padding:a.padding,h=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var b=a.project(v),x=a.project(y).sub(b),_=e.curve,w=Math.max(a.width,a.height),k=w/h,T=x.mag();if("minZoom"in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/T*2)}var S=_*_;function E(t){var e=(k*k-w*w+(t?-1:1)*S*S*T*T)/(2*(t?k:w)*S*T);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function O(t){return(Math.exp(t)+Math.exp(-t))/2}function L(t){return C(t)/O(t)}var I=E(0),P=function(t){return O(I)/O(I+_*t)},D=function(t){return w*((O(I)*L(I+_*t)-C(I))/S)/T},R=(E(1)-I)/_;if(Math.abs(T)<1e-6||!isFinite(R)){if(Math.abs(w-k)<1e-6)return this.easeTo(e,r);var z=k<w?-1:1;R=Math.abs(Math.log(k/w))/_,D=function(){return 0},P=function(t){return Math.exp(z*_*t)}}if("duration"in e)e.duration=+e.duration;else{var N="screenSpeed"in e?+e.screenSpeed/_:+e.speed;e.duration=1e3*R/N}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=p!==l,this._padding=!a.isPaddingEqual(d),this._prepareEase(r,!1),this._ease((function(e){var i=e*R,h=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(h),n._rotating&&(a.bearing=t.number(s,f,e)),n._pitching&&(a.pitch=t.number(l,p,e)),n._padding&&(a.interpolatePadding(c,d,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(b.add(x.mult(D(i))).mult(h));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&&n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)<n&&(e-=360),Math.abs(e+360-r)<n&&(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}},r}(t.Evented),So=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};So.prototype.getDefaultPosition=function(){return"bottom-right"},So.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},So.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},So.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&&(t+=e.key+"="+e.value+(n<r.length-1?"&":"")),t}),"?");e.href=t.config.FEEDBACK_URL+"/"+n+(this._map._hash?this._map._hash.getHashString(!0):""),e.rel="noopener nofollow"}},So.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},So.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return"string"!==typeof t?"":t}))):"string"===typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&&t.indexOf(a.attribution)<0&&t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n<t.length;n++)if(t[n].indexOf(e)>=0)return!1;return!0}))).join(" | ");o!==this._attribHTML&&(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},So.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var Eo=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};Eo.prototype.onAdd=function(t){this._map=t,this._container=r.create("div","mapboxgl-ctrl");var e=r.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Eo.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Eo.prototype.getDefaultPosition=function(){return"bottom-left"},Eo.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Eo.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},Eo.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var Co=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Co.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},Co.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r<n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},Co.prototype.run=function(t){void 0===t&&(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r<n.length;r+=1){var i=n[r];if(!i.cancelled&&(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},Co.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var Oo={"FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},Lo=t.window.HTMLImageElement,Io=t.window.HTMLElement,Po=t.window.ImageBitmap,Do=-2,Ro=22,zo=0,No=60,Fo={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:Do,maxZoom:Ro,minPitch:zo,maxPitch:No,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Bo=function(n){function i(e){var r=this;if(null!=(e=t.extend({},Fo,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<zo)throw new Error("minPitch must be greater than or equal to "+zo);if(null!=e.maxPitch&&e.maxPitch>No)throw new Error("maxPitch must be less than or equal to "+No);var i=new va(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new Co,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Oo,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"===typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Io))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return r._update(!1)})),this.on("moveend",(function(){return r._update(!1)})),this.on("zoom",(function(){return r._update(!0)})),"undefined"!==typeof t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1)),this.handlers=new Mo(this,e);var a="string"===typeof e.hash&&e.hash||void 0;this._hash=e.hash&&new xa(a).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new So({customAttribution:e.customAttribution})),this.addControl(new Eo,e.logoPosition),this.on("style.load",(function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)})),this.on("data",(function(e){r._update("style"===e.dataType),r.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){r.fire(new t.Event(e.dataType+"dataloading",e))}))}n&&(i.__proto__=n),i.prototype=Object.create(n&&n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&&e.getDefaultPosition&&(r=e.getDefaultPosition()),void 0===r&&(r="top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var r=this._controls.indexOf(e);return r>-1&&this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),a&&this.fire(new t.Event("moveend",e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null===t||void 0===t?Do:t)>=Do&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between "+Do+" and the current maxZoom, inclusive")},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null===t||void 0===t?Ro:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null===t||void 0===t?zo:t)<zo)throw new Error("minPitch must be greater than or equal to "+zo);if(t>=zo&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between "+zo+" and the current maxPitch, inclusive")},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null===t||void 0===t?No:t)>No)throw new Error("maxPitch must be less than or equal to "+No);if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if("mouseenter"===t||"mouseover"===t){var a=!1,o=function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new Ca(t,i,n.originalEvent,{features:o}))):a=!1};return{layer:e,listener:r,delegates:{mousemove:o,mouseout:function(){a=!1}}}}if("mouseleave"===t||"mouseout"===t){var s=!1,l=function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?s=!0:s&&(s=!1,r.call(i,new Ca(t,i,n.originalEvent)))},c=function(e){s&&(s=!1,r.call(i,new Ca(t,i,e.originalEvent)))};return{layer:e,listener:r,delegates:{mousemove:l,mouseout:c}}}var u=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&&(t.features=n,r.call(i,t),delete t.features)};return{layer:e,listener:r,delegates:(n={},n[t]=u,n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;if(void 0===r)return n.prototype.off.call(this,t,e);var a=function(n){for(var a=n[t],o=0;o<a.length;o++){var s=a[o];if(s.layer===e&&s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}};return this._delegatedListeners&&this._delegatedListeners[t]&&a(this._delegatedListeners),this},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||"number"===typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&&r.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error("Missing UI string '"+t+"'");return e},i.prototype._updateStyle=function(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new mr(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"===typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new mr(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if("string"===typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&&n._updateDiff(i,r)}))}else"object"===typeof e&&this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&&this._update(!0)}catch(n){t.warnOnce("Unable to perform style diff: "+(n.message||n.error||n)+". Rebuilding the style from scratch."),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&&this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error("There is no source with ID '"+e+"'")))},i.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if("loaded"!==i.state&&"errored"!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&&(n={});var i=n.pixelRatio;void 0===i&&(i=1);var a=n.sdf;void 0===a&&(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;this._lazyInitEmptyStyle();var c=0;if(r instanceof Lo||Po&&r instanceof Po){var u=t.browser.getImageData(r),f=u.width,p=u.height,d=u.data;this.style.addImage(e,{data:new t.RGBAImage({width:f,height:p},d),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:c})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var h=r.width,g=r.height,m=r.data,v=r;this.style.addImage(e,{data:new t.RGBAImage({width:h,height:g},new Uint8Array(m)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:c,userImage:v}),v.onAdd&&v.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var i=r instanceof Lo||Po&&r instanceof Po?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;if(void 0===a||void 0===o)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(a!==n.data.width||o!==n.data.height)return this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));var l=!(r instanceof Lo||Po&&r instanceof Po);n.data.replace(s,l),this.style.updateImage(e,n)},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&&(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&&(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&&(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&&(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},i.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=r.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=r.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=r.create("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create("div","mapboxgl-control-container",t),a=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(t){a[t]=r.create("div","mapboxgl-ctrl-"+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+"px",this._canvas.style.height=r+"px"},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext("webgl",r)||this._canvas.getContext("experimental-webgl",r);n?(this.painter=new da(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&&u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event("gpu-timing-frame",{cpuTime:f,gpuTime:e}))}),50)}if(this.listens("gpu-timing-layer")){var p=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(p);n.fire(new t.Event("gpu-timing-layer",{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event("idle"))),this}},i.prototype.remove=function(){this._hash&&this._hash.remove();for(var e=0,r=this._controls;e<r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),"undefined"!==typeof t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension("WEBGL_lose_context");n&&n.loseContext(),jo(this._canvasContainer),jo(this._controlContainer),jo(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new t.Event("remove"))},i.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&&this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&&(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(Ao);function jo(t){t.parentNode&&t.parentNode.removeChild(t)}var Uo={showCompass:!0,showZoom:!0,visualizePitch:!1},Vo=function(e){var n=this;this.options=t.extend({},Uo,e),this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Vo.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Vo.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=t},Vo.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ho(this._map,this._compass,this.options.visualizePitch)),this._container},Vo.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Vo.prototype._createButton=function(t,e){var n=r.create("button",t,this._container);return n.type="button",n.addEventListener("click",e),n},Vo.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString("NavigationControl."+e);t.title=r,t.setAttribute("aria-label",r)};var Ho=function(e,n,i){void 0===i&&(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Ya({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&&(this.mousePitch=new Xa({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),r.addEventListener(n,"mousedown",this.mousedown),r.addEventListener(n,"touchstart",this.touchstart,{passive:!1}),r.addEventListener(n,"touchmove",this.touchmove),r.addEventListener(n,"touchend",this.touchend),r.addEventListener(n,"touchcancel",this.reset)};function qo(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)<o?e=i:n.locationPoint(a).distSqr(r)<o&&(e=a)}for(;Math.abs(e.lng-n.center.lng)>180;){var s=n.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=n.width&&s.y<=n.height)break;e.lng>n.center.lng?e.lng-=360:e.lng+=360}return e}Ho.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),r.disableDrag()},Ho.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&&n.bearingDelta&&r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&r.setPitch(r.getPitch()+i.pitchDelta)}},Ho.prototype.off=function(){var t=this.element;r.removeEventListener(t,"mousedown",this.mousedown),r.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),r.removeEventListener(t,"touchmove",this.touchmove),r.removeEventListener(t,"touchend",this.touchend),r.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},Ho.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,"mousemove",this.mousemove),r.removeEventListener(t.window,"mouseup",this.mouseup)},Ho.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,"mousemove",this.mousemove),r.addEventListener(t.window,"mouseup",this.mouseup)},Ho.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ho.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},Ho.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ho.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ho.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},Ho.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Go={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Wo(t,e,r){var n=t.classList;for(var i in Go)n.remove("mapboxgl-"+r+"-anchor-"+i);n.add("mapboxgl-"+r+"-anchor-"+e)}var Yo,Xo=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&&(n=t.extend({element:n},i)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._draggable=n&&n.draggable||!1,this._state="inactive",this._rotation=n&&n.rotation||0,this._rotationAlignment=n&&n.rotationAlignment||"auto",this._pitchAlignment=n&&n.pitchAlignment&&"auto"!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&&n.element)this._element=n.element,this._offset=t.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create("div"),this._element.setAttribute("aria-label","Map marker");var o=r.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var s=r.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"stroke","none"),s.setAttributeNS(null,"stroke-width","1"),s.setAttributeNS(null,"fill","none"),s.setAttributeNS(null,"fill-rule","evenodd");var l=r.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"fill-rule","nonzero");var c=r.createNS("http://www.w3.org/2000/svg","g");c.setAttributeNS(null,"transform","translate(3.0, 29.0)"),c.setAttributeNS(null,"fill","#000000");for(var u=0,f=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];u<f.length;u+=1){var p=f[u],d=r.createNS("http://www.w3.org/2000/svg","ellipse");d.setAttributeNS(null,"opacity","0.04"),d.setAttributeNS(null,"cx","10.5"),d.setAttributeNS(null,"cy","5.80029008"),d.setAttributeNS(null,"rx",p.rx),d.setAttributeNS(null,"ry",p.ry),c.appendChild(d)}var h=r.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);var g=r.createNS("http://www.w3.org/2000/svg","path");g.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(g);var m=r.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var v=r.createNS("http://www.w3.org/2000/svg","path");v.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(v);var y=r.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var b=r.createNS("http://www.w3.org/2000/svg","g");b.setAttributeNS(null,"transform","translate(8.0, 8.0)");var x=r.createNS("http://www.w3.org/2000/svg","circle");x.setAttributeNS(null,"fill","#000000"),x.setAttributeNS(null,"opacity","0.25"),x.setAttributeNS(null,"cx","5.5"),x.setAttributeNS(null,"cy","5.5"),x.setAttributeNS(null,"r","5.4999962");var _=r.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),b.appendChild(x),b.appendChild(_),l.appendChild(c),l.appendChild(h),l.appendChild(m),l.appendChild(y),l.appendChild(b),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&&n.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(t){t.preventDefault()})),this._element.addEventListener("mousedown",(function(t){t.preventDefault()})),this._element.addEventListener("focus",(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Wo(this._element,this._anchor,"marker"),this._popup=null}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},n.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),r.remove(this._element),this._popup&&this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){var e=38.1,r=13.5,n=Math.sqrt(Math.pow(r,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-e],"bottom-left":[n,-1*(e-r+n)],"bottom-right":[-n,-1*(e-r+n)],left:[r,-1*(e-r)],right:[-r,-1*(e-r)]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==r&&13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&&(e===r||r.contains(e))&&this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=qo(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(e="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var n="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?n="rotateX(0deg)":"map"===this._pitchAlignment&&(n="rotateX("+this._map.getPitch()+"deg)"),t&&"moveend"!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Go[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+n+" "+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag"))},n.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Zo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};function Ko(e){void 0!==Yo?e(Yo):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){Yo="denied"!==t.state,e(Yo)})):(Yo=!!t.window.navigator.geolocation,e(Yo))}var Jo=0,$o=!1,Qo=function(e){function n(r){e.call(this),this.options=t.extend({},Zo,r),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(t){return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Ko(this._setupUI),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Jo=0,$o=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&&(r.longitude<e.getWest()||r.longitude>e.getEast()||r.latitude<e.getSouth()||r.latitude>e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},n.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&$o)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=r.create("button","mapboxgl-ctrl-geolocate",this._container),r.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var a=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Xo(this._dotElement),this._circleElement=r.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Xo({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){var r=e.originalEvent&&"resize"===e.originalEvent.type;e.geolocateSource||"ACTIVE_LOCK"!==n._watchState||r||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new t.Event("trackuserlocationend")))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jo--,$o=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jo>1?(e={maximumAge:6e5,timeout:0},$o=!0):(e=this.options.positionOptions,$o=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},n}(t.Evented),ts={maxWidth:100,unit:"metric"},es=function(e){this.options=t.extend({},ts,e),t.bindAll(["_onMove","setUnit"],this)};function rs(t,e,r){var n=r&&r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&&"imperial"===r.unit){var l=3.2808*s;l>5280?ns(e,n,l/5280,t._getUIString("ScaleControl.Miles")):ns(e,n,l,t._getUIString("ScaleControl.Feet"))}else r&&"nautical"===r.unit?ns(e,n,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?ns(e,n,s/1e3,t._getUIString("ScaleControl.Kilometers")):ns(e,n,s,t._getUIString("ScaleControl.Meters"))}function ns(t,e,r,n){var i=as(r),a=i/r;t.style.width=e*a+"px",t.innerHTML=i+" "+n}function is(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}function as(t){var e=Math.pow(10,(""+Math.floor(t)).length-1),r=t/e;return e*(r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:is(r))}es.prototype.getDefaultPosition=function(){return"bottom-left"},es.prototype._onMove=function(){rs(this._map,this._container,this.options)},es.prototype.onAdd=function(t){return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},es.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},es.prototype.setUnit=function(t){this.options.unit=t,rs(this._map,this._container,this.options)};var os=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};os.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},os.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},os.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},os.prototype._setupUI=function(){var e=this._fullscreenButton=r.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},os.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},os.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},os.prototype._isFullscreen=function(){return this._fullscreen},os.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},os.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var ss={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},ls=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(ss),r),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&&r.remove(this._content),this._content=r.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(t){var e=this,n=this._lngLat||this._trackPointer;if(this._map&&n&&this._content&&(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return e._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=qo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var i=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),a=this.options.anchor,o=cs(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y<c?["top"]:i.y>this._map.transform.height-c?["bottom"]:[],i.x<l/2?s.push("left"):i.x>this._map.transform.width-l/2&&s.push("right"),a=0===s.length?"bottom":s.join("-")}var u=i.add(o[a]).round();r.setTransform(this._container,Go[a]+" translate("+u.x+"px,"+u.y+"px)"),Wo(this._container,a,"popup")}},n.prototype._onClose=function(){this.remove()},n}(t.Evented);function cs(e){if(e){if("number"===typeof e){var r=Math.round(Math.sqrt(.5*Math.pow(e,2)));return{center:new t.Point(0,0),top:new t.Point(0,e),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-e),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(e,0),right:new t.Point(-e,0)}}if(e instanceof t.Point||Array.isArray(e)){var n=t.Point.convert(e);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:t.Point.convert(e.center||[0,0]),top:t.Point.convert(e.top||[0,0]),"top-left":t.Point.convert(e["top-left"]||[0,0]),"top-right":t.Point.convert(e["top-right"]||[0,0]),bottom:t.Point.convert(e.bottom||[0,0]),"bottom-left":t.Point.convert(e["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(e["bottom-right"]||[0,0]),left:t.Point.convert(e.left||[0,0]),right:t.Point.convert(e.right||[0,0])}}return cs(new t.Point(0,0))}var us={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Bo,NavigationControl:Vo,GeolocateControl:Qo,AttributionControl:So,ScaleControl:es,FullscreenControl:os,Popup:ls,Marker:Xo,Style:mr,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:ae,clearPrewarmedResources:oe,get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return ee.workerCount},set workerCount(t){ee.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return us})),r}))},{}],240:[function(t,e,r){"use strict";e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],241:[function(t,e,r){"use strict";e.exports=i;var n=t("mouse-event");function i(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return"altKey"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),"shiftKey"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),"ctrlKey"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),"metaKey"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);"buttons"in s&&(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&&(r=0|t,i=c||0,a=u||0,e&&e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function p(t){l(t)&&e&&e(r,i,a,o)}function d(t){0===n.buttons(t)?c(0,t):c(r,t)}function h(t){c(r|n.buttons(t),t)}function g(t){c(r&~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener("mousemove",d),t.addEventListener("mousedown",h),t.addEventListener("mouseup",g),t.addEventListener("mouseleave",u),t.addEventListener("mouseenter",u),t.addEventListener("mouseout",u),t.addEventListener("mouseover",u),t.addEventListener("blur",f),t.addEventListener("keyup",p),t.addEventListener("keydown",p),t.addEventListener("keypress",p),t!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",p),window.addEventListener("keydown",p),window.addEventListener("keypress",p)))}function v(){s&&(s=!1,t.removeEventListener("mousemove",d),t.removeEventListener("mousedown",h),t.removeEventListener("mouseup",g),t.removeEventListener("mouseleave",u),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseout",u),t.removeEventListener("mouseover",u),t.removeEventListener("blur",f),t.removeEventListener("keyup",p),t.removeEventListener("keydown",p),t.removeEventListener("keypress",p),t!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",p),window.removeEventListener("keydown",p),window.removeEventListener("keypress",p)))}m();var y={element:t};return Object.defineProperties(y,{enabled:{get:function(){return s},set:function(t){t?m():v()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),y}},{"mouse-event":243}],242:[function(t,e,r){var n={left:0,top:0};function i(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var n=t.clientX||0,i=t.clientY||0,o=a(e);return r[0]=n-o.left,r[1]=i-o.top,r}function a(t){return t===window||t===document||t===document.body?n:t.getBoundingClientRect()}e.exports=i},{}],243:[function(t,e,r){"use strict";function n(t){if("object"===typeof t){if("buttons"in t)return t.buttons;if("which"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<<e-1}else if("button"in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e>=0)return 1<<e}}return 0}function i(t){return t.target||t.srcElement||window}function a(t){if("object"===typeof t){if("offsetX"in t)return t.offsetX;var e=i(t).getBoundingClientRect();return t.clientX-e.left}return 0}function o(t){if("object"===typeof t){if("offsetY"in t)return t.offsetY;var e=i(t).getBoundingClientRect();return t.clientY-e.top}return 0}r.buttons=n,r.element=i,r.x=a,r.y=o},{}],244:[function(t,e,r){"use strict";var n=t("to-px");function i(t,e,r){"function"===typeof t&&(r=!!e,e=t,t=window);var i=n("ex",t),a=function(t){r&&t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener("wheel",a),a}e.exports=i},{"to-px":315}],245:[function(e,n,i){(function(e,r){(function(){!function(e,r,i){r[e]=r[e]||i(),"undefined"!=typeof n&&n.exports?n.exports=r[e]:"function"==typeof t&&t.amd&&t((function(){return r[e]}))}("Promise","undefined"!=typeof e?e:this,(function(){"use strict";var t,e,n,i=Object.prototype.toString,a="undefined"!=typeof r?function(t){return r(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,r,n){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!1!==n})}}catch(v){t=function(t,e,r){return t[e]=r,t}}function o(t,r){n.add(t,r),e||(e=a(n.drain))}function s(t){var e,r=typeof t;return null==t||"object"!=r&&"function"!=r||(e=t.then),"function"==typeof e&&e}function l(){for(var t=0;t<this.chain.length;t++)c(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function c(t,e,r){var n,i;try{!1===e?r.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=s(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(v){r.reject(v)}}function u(t){var e,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(e=s(t))?o((function(){var n=new d(r);try{e.call(t,(function(){u.apply(n,arguments)}),(function(){f.apply(n,arguments)}))}catch(v){f.call(n,v)}})):(r.msg=t,r.state=1,r.chain.length>0&&o(l,r))}catch(v){f.call(new d(r),v)}}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&o(l,e))}function p(t,e,r,n){for(var i=0;i<e.length;i++)!function(i){t.resolve(e[i]).then((function(t){r(i,t)}),n)}(i)}function d(t){this.def=t,this.triggered=!1}function h(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new h(this);this.then=function(t,r){var n={success:"function"!=typeof t||t,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");n.resolve=t,n.reject=e})),e.chain.push(n),0!==e.state&&o(l,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){u.call(e,t)}),(function(t){f.call(e,t)}))}catch(v){f.call(e,v)}}n=function(){var t,r,n;function i(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,a){n=new i(e,a),r?r.next=n:t=n,r=n,n=void 0},drain:function(){var n=t;for(t=r=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var m=t({},"constructor",g,!1);return g.prototype=m,t(m,"__NPO__",0,!1),t(g,"resolve",(function(t){var e=this;return t&&"object"==typeof t&&1===t.__NPO__?t:new e((function(e,r){if("function"!=typeof e||"function"!=typeof r)throw TypeError("Not a function");e(t)}))})),t(g,"reject",(function(t){return new this((function(e,r){if("function"!=typeof e||"function"!=typeof r)throw TypeError("Not a function");r(t)}))})),t(g,"all",(function(t){var e=this;return"[object Array]"!=i.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=t.length,a=Array(i),o=0;p(e,t,(function(t,e){a[t]=e,++o===i&&r(a)}),n)}))})),t(g,"race",(function(t){var e=this;return"[object Array]"!=i.call(t)?e.reject(TypeError("Not an array")):new e((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");p(e,t,(function(t,e){r(e)}),n)}))})),g}))}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{timers:312}],246:[function(t,e,r){var n=Math.PI,i=u(120);function a(t){for(var e,r=[],n=0,i=0,a=0,c=0,f=null,p=null,d=0,h=0,g=0,m=t.length;g<m;g++){var v=t[g],y=v[0];switch(y){case"M":a=v[1],c=v[2];break;case"A":(v=l(d,h,v[1],v[2],u(v[3]),v[4],v[5],v[6],v[7])).unshift("C"),v.length>7&&(r.push(v.splice(0,7)),v.unshift("C"));break;case"S":var b=d,x=h;"C"!=e&&"S"!=e||(b+=b-n,x+=x-i),v=["C",b,x,v[1],v[2],v[3],v[4]];break;case"T":"Q"==e||"T"==e?(f=2*d-f,p=2*h-p):(f=d,p=h),v=s(d,h,f,p,v[1],v[2]);break;case"Q":f=v[1],p=v[2],v=s(d,h,v[1],v[2],v[3],v[4]);break;case"L":v=o(d,h,v[1],v[2]);break;case"H":v=o(d,h,v[1],h);break;case"V":v=o(d,h,d,v[1]);break;case"Z":v=o(d,h,a,c)}e=y,d=v[v.length-2],h=v[v.length-1],v.length>4?(n=v[v.length-4],i=v[v.length-3]):(n=d,i=h),r.push(v)}return r}function o(t,e,r,n){return["C",t,e,r,n,r,n]}function s(t,e,r,n,i,a){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function l(t,e,r,a,o,s,u,f,p,d){if(d)k=d[0],T=d[1],_=d[2],w=d[3];else{var h=c(t,e,-o);t=h.x,e=h.y;var g=(t-(f=(h=c(f,p,-o)).x))/2,m=(e-(p=h.y))/2,v=g*g/(r*r)+m*m/(a*a);v>1&&(r*=v=Math.sqrt(v),a*=v);var y=r*r,b=a*a,x=(s==u?-1:1)*Math.sqrt(Math.abs((y*b-y*m*m-b*g*g)/(y*m*m+b*g*g)));x==1/0&&(x=1);var _=x*r*m/a+(t+f)/2,w=x*-a*g/r+(e+p)/2,k=Math.asin(((e-w)/a).toFixed(9)),T=Math.asin(((p-w)/a).toFixed(9));(k=t<_?n-k:k)<0&&(k=2*n+k),(T=f<_?n-T:T)<0&&(T=2*n+T),u&&k>T&&(k-=2*n),!u&&T>k&&(T-=2*n)}if(Math.abs(T-k)>i){var M=T,A=f,S=p;T=k+i*(u&&T>k?1:-1);var E=l(f=_+r*Math.cos(T),p=w+a*Math.sin(T),r,a,o,0,u,A,S,[T,M,_,w])}var C=Math.tan((T-k)/4),O=4/3*r*C,L=4/3*a*C,I=[2*t-(t+O*Math.sin(k)),2*e-(e-L*Math.cos(k)),f+O*Math.sin(T),p-L*Math.cos(T),f,p];if(d)return I;E&&(I=I.concat(E));for(var P=0;P<I.length;){var D=c(I[P],I[P+1],o);I[P++]=D.x,I[P++]=D.y}return I}function c(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function u(t){return t*(n/180)}e.exports=a},{}],247:[function(t,e,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function s(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(i){return!1}}e.exports=s()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c<arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&&(l[u]=r[u]);if(n){s=n(r);for(var f=0;f<s.length;f++)a.call(r,s[f])&&(l[s[f]]=r[s[f]])}}return l}},{}],248:[function(t,e,r){"use strict";function n(t,e){if("string"!==typeof t)return[t];var r=[t];"string"===typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:["{}","[]","()"],i=e.escape||"___",a=!!e.flat;n.forEach((function(t){var e=new RegExp(["\\",t[0],"[^\\",t[0],"\\",t[1],"]*\\",t[1]].join("")),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++>1e4)throw Error("References have circular dependency. Please, check them.");r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp("(\\"+i+r+"\\"+i+")","g"),t[0]+"$1"+t[1])})),e}))}));var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(t,e,r){for(var n,i=[],a=0;n=o.exec(t);){if(a++>1e4)throw Error("Circular references in parenthesis");i.push(t.slice(0,n.index)),i.push(s(e[n[1]],e)),t=t.slice(n.index+n[0].length)}return i.push(t),i}return a?r:s(r[0],r)}function i(t,e){if(e&&e.flat){var r,n=e&&e.escape||"___",i=t[0];if(!i)return"";for(var a=new RegExp("\\"+n+"([0-9]+)\\"+n),o=0;i!=r;){if(o++>1e4)throw Error("Circular references in "+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&&(r=r.reduce(t,"")),e+r}),"");function s(e,r){if(null==t[r])throw Error("Reference "+r+"is undefined");return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],249:[function(t,e,r){"use strict";var n=t("pick-by-alias");function i(t){var e;return arguments.length>1&&(t=arguments),"string"===typeof t?t=t.split(/\s/).map(parseFloat):"number"===typeof t&&(t=[t]),t.length&&"number"===typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&&(e={x:(t=n(t,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"})).left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height),e}e.exports=i},{"pick-by-alias":253}],250:[function(t,e,r){e.exports=a;var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function a(t){var e=[];return t.replace(i,(function(t,r,i){var a=r.toLowerCase();for(i=s(i),"m"==a&&i.length>2&&(e.push([r].concat(i.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(i.length==n[a])return i.unshift(r),e.push(i);if(i.length<n[a])throw new Error("malformed path data");e.push([r].concat(i.splice(0,n[a])))}})),e}var o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function s(t){var e=t.match(o);return e?e.map(Number):[]}},{}],251:[function(t,e,r){e.exports=function(t,e){e||(e=[0,""]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",e}},{}],252:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t("_process"))},{_process:278}],253:[function(t,e,r){"use strict";e.exports=function(t,e,r){var n,a,o={};if("string"===typeof e&&(e=i(e)),Array.isArray(e)){var s={};for(a=0;a<e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a<c.length;a++){var u=c[a];if(r&&(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f<c.length;f++)l[c[f]]=!0;break}}else n in t&&(e[n]&&(o[n]=t[n]),r&&(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:("string"===typeof t&&(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],254:[function(t,e,r){e.exports=function(t,e,r,n){var i=t[0],a=t[1],o=!1;void 0===r&&(r=0),void 0===n&&(n=e.length);for(var s=n-r,l=0,c=s-1;l<s;c=l++){var u=e[l+r][0],f=e[l+r][1],p=e[c+r][0],d=e[c+r][1];f>a!==d>a&&i<(p-u)*(a-f)/(d-f)+u&&(o=!o)}return o}},{}],255:[function(t,e,r){var n,i=t("./lib/build-log"),a=t("./lib/epsilon"),o=t("./lib/intersecter"),s=t("./lib/segment-chainer"),l=t("./lib/segment-selector"),c=t("./lib/geojson"),u=!1,f=a();function p(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&&(u=!1),!1!==u&&u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return p(t,e,n.selectUnion)},intersect:function(t,e){return p(t,e,n.selectIntersect)},difference:function(t,e){return p(t,e,n.selectDifference)},differenceRev:function(t,e){return p(t,e,n.selectDifferenceRev)},xor:function(t,e){return p(t,e,n.selectXor)}},"object"===typeof window&&(window.PolyBool=n),e.exports=n},{"./lib/build-log":256,"./lib/epsilon":257,"./lib/geojson":258,"./lib/intersecter":259,"./lib/segment-chainer":261,"./lib/segment-selector":262}],256:[function(t,e,r){function n(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n("check",{seg1:t,seg2:e})},segmentChop:function(t,e){return n("div_seg",{seg:t,pt:e}),n("chop",{seg:t,pt:e})},statusRemove:function(t){return n("pop_seg",{seg:t})},segmentUpdate:function(t){return n("seg_update",{seg:t})},segmentNew:function(t,e){return n("new_seg",{seg:t,primary:e})},segmentRemove:function(t){return n("rem_seg",{seg:t})},tempStatus:function(t,e,r){return n("temp_status",{seg:t,above:e,below:r})},rewind:function(t){return n("rewind",{seg:t})},status:function(t,e,r){return n("status",{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n("vert",{x:e}))},log:function(t){return"string"!==typeof t&&(t=JSON.stringify(t,!1," ")),n("log",{txt:t})},reset:function(){return n("reset")},selected:function(t){return n("selected",{segs:t})},chainStart:function(t){return n("chain_start",{seg:t})},chainRemoveHead:function(t,e){return n("chain_rem_head",{index:t,pt:e})},chainRemoveTail:function(t,e){return n("chain_rem_tail",{index:t,pt:e})},chainNew:function(t,e){return n("chain_new",{pt1:t,pt2:e})},chainMatch:function(t){return n("chain_match",{index:t})},chainClose:function(t){return n("chain_close",{index:t})},chainAddHead:function(t,e){return n("chain_add_head",{index:t,pt:e})},chainAddTail:function(t,e){return n("chain_add_tail",{index:t,pt:e})},chainConnect:function(t,e){return n("chain_con",{index1:t,index2:e})},chainReverse:function(t){return n("chain_rev",{index:t})},chainJoin:function(t,e){return n("chain_join",{index1:t,index2:e})},done:function(){return n("done")}}}e.exports=n},{}],257:[function(t,e,r){function n(t){"number"!==typeof t&&(t=1e-10);var e={epsilon:function(e){return"number"===typeof e&&(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)>=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l<t)&&!(l-(a*a+s*s)>-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])<t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])<t},pointsSame:function(t,r){return e.pointsSameX(t,r)&&e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]<r[1]?-1:1:t[0]<r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)<t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)<t)return!1;var u=e[0]-n[0],f=e[1]-n[1],p=(s*f-l*u)/c,d=(a*f-o*u)/c,h={alongA:0,alongB:0,pt:[e[0]+p*a,e[1]+p*o]};return h.alongA=p<=-t?-2:p<t?-1:p-1<=-t?0:p-1<t?1:2,h.alongB=d<=-t?-2:d<t?-1:d-1<=-t?0:d-1<t?1:2,h},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l<r.length;l++){var c=r[l][0],u=r[l][1];u-i>t!=o-i>t&&(a-c)*(i-u)/(o-u)+c-n>t&&(s=!s),a=c,o=u}return s}};return e}e.exports=n},{}],258:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i<e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if("Polygon"===e.type)return t.polygon(r(e.coordinates));if("MultiPolygon"===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i<e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r<t.children.length;r++)if(n(e,(s=t.children[r]).region))return void o(s,e);var a=i(e);for(r=0;r<t.children.length;r++){var s;n((s=t.children[r]).region,e)&&(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s<r.regions.length;s++){var l=r.regions[s];l.length<3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o<t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r<0!==e&&a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r<t.children.length;r++)e.push(p(t.children[r]))}function p(t){for(var e=0;e<t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s<a.children.length;s++)f(a.children[s]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};e.exports=n},{}],259:[function(t,e,r){var n=t("./linked-list");function i(t,e,r){function i(t,e){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:null,below:null},otherFill:null}}function a(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var o=n.create();function s(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}function l(t,e){o.insertBefore(t,(function(r){return s(t.isStart,t.pt,e,r.isStart,r.pt,r.other.pt)<0}))}function c(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return l(r,t.end),r}function u(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,l(i,t.pt)}function f(t,e){var r=c(t,e);return u(r,t,e),r}function p(t,e){r&&r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,l(t.other,t.pt)}function d(t,e){var r=a(e,t.seg.end,t.seg);return p(t,e),f(r,t.primary)}function h(i,a){var s=n.create();function l(t,r){var n=t.seg.start,i=t.seg.end,a=r.seg.start,o=r.seg.end;return e.pointsCollinear(n,a,o)?e.pointsCollinear(i,a,o)||e.pointAboveOrOnLine(i,a,o)?1:-1:e.pointAboveOrOnLine(n,a,o)?1:-1}function c(t){return s.findTransition((function(e){return l(t,e.ev)>0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,l=a.start,c=a.end;r&&r.checkIntersection(i,a);var u=e.linesIntersect(o,s,l,c);if(!1===u){if(!e.pointsCollinear(o,s,l))return!1;if(e.pointsSame(o,c)||e.pointsSame(s,l))return!1;var f=e.pointsSame(o,l),p=e.pointsSame(s,c);if(f&&p)return n;var h=!f&&e.pointBetween(o,l,c),g=!p&&e.pointBetween(s,l,c);if(f)return g?d(n,s):d(t,c),n;h&&(p||(g?d(n,s):d(t,c)),d(n,o))}else 0===u.alongA&&(-1===u.alongB?d(t,l):0===u.alongB?d(t,u.pt):1===u.alongB&&d(t,c)),0===u.alongB&&(-1===u.alongA?d(n,o):0===u.alongA?d(n,u.pt):1===u.alongA&&d(n,s));return!1}for(var f=[];!o.isEmpty();){var p=o.getHead();if(r&&r.vert(p.pt[0]),p.isStart){var h=function(){if(m){var t=u(p,m);if(t)return t}return!!v&&u(p,v)};r&&r.segmentNew(p.seg,p.primary);var g=c(p),m=g.before?g.before.ev:null,v=g.after?g.after.ev:null;r&&r.tempStatus(p.seg,!!m&&m.seg,!!v&&v.seg);var y,b,x=h();if(x)t?(b=null===p.seg.myFill.below||p.seg.myFill.above!==p.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=p.seg.myFill,r&&r.segmentUpdate(x.seg),p.other.remove(),p.remove();if(o.getHead()!==p){r&&r.rewind(p.seg);continue}t?(b=null===p.seg.myFill.below||p.seg.myFill.above!==p.seg.myFill.below,p.seg.myFill.below=v?v.seg.myFill.above:i,p.seg.myFill.above=b?!p.seg.myFill.below:p.seg.myFill.below):null===p.seg.otherFill&&(y=v?p.primary===v.primary?v.seg.otherFill.above:v.seg.myFill.above:p.primary?a:i,p.seg.otherFill={above:y,below:y}),r&&r.status(p.seg,!!m&&m.seg,!!v&&v.seg),p.other.status=g.insert(n.node({ev:p}))}else{var _=p.status;if(null===_)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(_.prev)&&s.exists(_.next)&&u(_.prev.ev,_.next.ev),r&&r.statusRemove(_.ev.seg),_.remove(),!p.primary){var w=p.seg.myFill;p.seg.myFill=p.seg.otherFill,p.seg.otherFill=w}f.push(p.seg)}o.getHead().remove()}return r&&r.done(),f}return t?{addRegion:function(t){for(var r,n=t[t.length-1],a=0;a<t.length;a++){r=n,n=t[a];var o=e.pointsCompare(r,n);0!==o&&f(i(o<0?r:n,o<0?n:r),!0)}},calculate:function(t){return h(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){f(a(t.start,t.end,t),!0)})),r.forEach((function(t){f(a(t.start,t.end,t),!1)})),h(e,n)}}}e.exports=i},{"./linked-list":260}],260:[function(t,e,r){var n={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&&e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&&!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&&(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}};e.exports=n},{}],261:[function(t,e,r){function n(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u<n.length;u++){var f=(m=n[u])[0],p=(m[1],m[m.length-1]);if(m[m.length-2],e.pointsSame(f,a)){if(T(u,!0,!0))break}else if(e.pointsSame(f,o)){if(T(u,!0,!1))break}else if(e.pointsSame(p,a)){if(T(u,!1,!0))break}else if(e.pointsSame(p,o)&&T(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&&r.chainNew(a,o));if(c===l){r&&r.chainMatch(s.index);var d=s.index,h=s.matches_pt1?o:a,g=s.matches_head,m=n[d],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],b=g?m[m.length-1]:m[0],x=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,h)&&(g?(r&&r.chainRemoveHead(s.index,h),m.shift()):(r&&r.chainRemoveTail(s.index,h),m.pop()),v=y),e.pointsSame(b,h)?(n.splice(d,1),e.pointsCollinear(x,b,v)&&(g?(r&&r.chainRemoveTail(s.index,v),m.pop()):(r&&r.chainRemoveHead(s.index,v),m.shift())),r&&r.chainClose(s.index),void i.push(m)):void(g?(r&&r.chainAddHead(s.index,h),m.unshift(h)):(r&&r.chainAddTail(s.index,h),m.push(h)))}var _=s.index,w=l.index;r&&r.chainConnect(_,w);var k=n[_].length<n[w].length;s.matches_head?l.matches_head?k?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):k?(M(_),A(w,_)):(M(w),A(_,w))}function T(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&&r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&&(r&&r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&&(r&&r.chainRemoveHead(i,c),o.shift()),r&&r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}e.exports=n},{}],262:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[i]&&n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&&r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],263:[function(t,e,r){"use strict";var n=t("stream").Transform,i=t("stream-parser");function a(){n.call(this,{readableObjectMode:!0})}function o(t,e,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name=this.constructor.name,this.message=t,e&&(this.code=e),r&&(this.statusCode=r)}a.prototype=Object.create(n.prototype),a.prototype.constructor=a,i(a.prototype),r.ParserStream=a,r.sliceEq=function(t,e,r){for(var n=e,i=0;i<r.length;)if(t[n++]!==r[i++])return!1;return!0},r.str2arr=function(t,e){var r=[],n=0;if(e&&"hex"===e)for(;n<t.length;)r.push(parseInt(t.slice(n,n+2),16)),n+=2;else for(;n<t.length;n++)r.push(255&t.charCodeAt(n));return r},r.readUInt16LE=function(t,e){return t[e]|t[e+1]<<8},r.readUInt16BE=function(t,e){return t[e+1]|t[e]<<8},r.readUInt32LE=function(t,e){return t[e]|t[e+1]<<8|t[e+2]<<16|16777216*t[e+3]},r.readUInt32BE=function(t,e){return t[e+3]|t[e+2]<<8|t[e+1]<<16|16777216*t[e]},o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,r.ProbeError=o},{stream:286,"stream-parser":302}],264:[function(t,e,r){"use strict";function n(t,e){var r=new Error(t);return r.code=e,r}function i(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}function a(t,e,r){this.input=t.subarray(e,r),this.start=e;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==i&&"MM\0*"!==i)throw n("invalid TIFF signature","EBADDATA");this.big_endian="M"===i[0]}a.prototype.each=function(t){this.aborted=!1;var e=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:e}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,t)}},a.prototype.read_uint16=function(t){var e=this.input;if(t+2>e.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?256*e[t]+e[t+1]:e[t]+256*e[t+1]},a.prototype.read_uint32=function(t){var e=this.input;if(t+4>e.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]:e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]},a.prototype.is_subifd_link=function(t,e){return 0===t&&34665===e||0===t&&34853===e||34665===t&&40965===e},a.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return r=this.input[e];case 6:return(r=this.input[e])|33554430*(128&r);case 3:return r=this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&r);case 4:return r=this.read_uint32(e);case 9:return 0|(r=this.read_uint32(e));default:return null}},a.prototype.scan_ifd=function(t,e,r){var a=this.read_uint16(e);e+=2;for(var o=0;o<a;o++){var s=this.read_uint16(e),l=this.read_uint16(e+2),c=this.read_uint32(e+4),u=this.exif_format_length(l),f=c*u,p=f<=4?e+8:this.read_uint32(e+8),d=!1;if(p+f>this.input.length)throw n("unexpected EOF","EBADDATA");for(var h=[],g=p,m=0;m<c;m++,g+=u){var v=this.exif_format_read(l,g);if(null===v){h=null;break}h.push(v)}if(Array.isArray(h)&&2===l&&(h=i(String.fromCharCode.apply(null,h)))&&"\0"===h[h.length-1]&&(h=h.slice(0,-1)),this.is_subifd_link(t,s)&&Array.isArray(h)&&Number.isInteger(h[0])&&h[0]>0&&(this.ifds_to_read.push({id:s,offset:h[0]}),d=!0),!1===r({is_big_endian:this.big_endian,ifd:t,tag:s,format:l,count:c,entry_offset:e+this.start,data_length:f,data_offset:p+this.start,value:h,is_subifd_link:d}))return void(this.aborted=!0);e+=12}0===t&&this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},e.exports.ExifParser=a,e.exports.get_orientation=function(t){var e=0;try{return new a(t,0,t.length).each((function(t){if(0===t.ifd&&274===t.tag&&Array.isArray(t.value))return e=t.value[0],!1})),e}catch(r){return-1}}},{}],265:[function(t,e,r){"use strict";var n=t("./common").readUInt16BE,i=t("./common").readUInt32BE;function a(t,e){if(t.length<4+e)return null;var r=i(t,e);return t.length<r+e||r<8?null:{boxtype:String.fromCharCode.apply(null,t.slice(e+4,e+8)),data:t.slice(e+8,e+r),end:e+r}}function o(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;switch(n.boxtype){case"ispe":e.sizes.push({width:i(n.data,4),height:i(n.data,8)});break;case"irot":e.transforms.push({type:"irot",value:3&n.data[0]});break;case"imir":e.transforms.push({type:"imir",value:1&n.data[0]})}r=n.end}}function s(t,e,r){for(var n=0,i=0;i<r;i++)n=256*n+(t[e+i]||0);return n}function l(t,e){for(var r=t[4]>>4&15,i=15&t[4],a=t[5]>>4&15,o=n(t,6),l=8,c=0;c<o;c++){var u=n(t,l),f=n(t,l+=2),p=s(t,l+=2,a),d=n(t,l+=a);if(l+=2,0===f&&1===d){var h=s(t,l,r),g=s(t,l+r,i);e.item_loc[u]={length:g,offset:h+p}}l+=d*(r+i)}}function c(t,e){for(var r=n(t,4),i=6,o=0;o<r;o++){var s=a(t,i);if(!s)break;if("infe"===s.boxtype){for(var l=n(s.data,4),c="",u=8;u<s.data.length&&s.data[u];u++)c+=String.fromCharCode(s.data[u]);e.item_inf[c]=l}i=s.end}}function u(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;"ipco"===n.boxtype&&o(n.data,e),r=n.end}}function f(t,e){for(var r=4;;){var n=a(t,r);if(!n)break;"iprp"===n.boxtype&&u(n.data,e),"iloc"===n.boxtype&&l(n.data,e),"iinf"===n.boxtype&&c(n.data,e),r=n.end}}function p(t){var e=t.reduce((function(t,e){return t.width>e.width||t.width===e.width&&t.height>e.height?t:e})),r=t.reduce((function(t,e){return t.height>e.height||t.height===e.height&&t.width>e.width?t:e}));return e.width>r.height||e.width===r.height&&e.height>r.width?e:r}e.exports.unbox=a,e.exports.readSizeFromMeta=function(t){var e={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(f(t,e),e.sizes.length){var r=p(e.sizes),n=1;e.transforms.forEach((function(t){var e={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===t.type&&(n=0===t.value?r[n]:e[n=e[n=r[n]]]),"irot"===t.type)for(var i=0;i<t.value;i++)n=e[n]}));var i=null;return e.item_inf.Exif&&(i=e.item_loc[e.item_inf.Exif]),{width:r.width,height:r.height,orientation:e.transforms.length?n:null,variants:e.sizes,exif_location:i}}},e.exports.getMimeType=function(t){var e=String.fromCharCode.apply(null,t.slice(0,4)),r={};r[e]=!0;for(var n=8;n<t.length;n+=4)r[String.fromCharCode.apply(null,t.slice(n,n+4))]=!0;if(r.mif1||r.msf1||r.miaf)return"avif"===e||"avis"===e||"avio"===e?{type:"avif",mime:"image/avif"}:"heic"===e||"heix"===e?{type:"heic",mime:"image/heic"}:"hevc"===e||"hevx"===e?{type:"heic",mime:"image/heic-sequence"}:r.avif||r.avis?{type:"avif",mime:"image/avif"}:r.heic||r.heix||r.hevc||r.hevx||r.heis?r.msf1?{type:"heif",mime:"image/heif-sequence"}:{type:"heif",mime:"image/heif"}:{type:"avif",mime:"image/avif"}}},{"./common":263}],266:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt32BE,o=t("../miaf_utils"),s=t("../exif_utils"),l=n("ftyp");e.exports=function(t){if(i(t,4,l)){var e=o.unbox(t,0);if(e){var r=o.getMimeType(e.data);if(r){for(var n,c=e.end;;){var u=o.unbox(t,c);if(!u)break;if(c=u.end,"mdat"===u.boxtype)return;if("meta"===u.boxtype){n=u.data;break}}if(n){var f=o.readSizeFromMeta(n);if(f){var p={width:f.width,height:f.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(f.variants.length>1&&(p.variants=f.variants),f.orientation&&(p.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=t.length){var d=a(t,f.exif_location.offset),h=t.slice(f.exif_location.offset+d+4,f.exif_location.offset+f.exif_location.length),g=s.get_orientation(h);g>0&&(p.orientation=g)}return p}}}}}}},{"../common":263,"../exif_utils":264,"../miaf_utils":265}],267:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt16LE,o=n("BM");e.exports=function(t){if(!(t.length<26)&&i(t,0,o))return{width:a(t,18),height:a(t,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},{"../common":263}],268:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt16LE,o=n("GIF87a"),s=n("GIF89a");e.exports=function(t){if(!(t.length<10)&&(i(t,0,o)||i(t,0,s)))return{width:a(t,6),height:a(t,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},{"../common":263}],269:[function(t,e,r){"use strict";var n=t("../common").readUInt16LE,i=0,a=1,o=16;e.exports=function(t){var e=n(t,0),r=n(t,2),s=n(t,4);if(e===i&&r===a&&s){for(var l=[],c={width:0,height:0},u=0;u<s;u++){var f=t[6+o*u]||256,p=t[6+o*u+1]||256,d={width:f,height:p};l.push(d),(f>c.width||p>c.height)&&(c=d)}return{width:c.width,height:c.height,variants:l,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},{"../common":263}],270:[function(t,e,r){"use strict";var n=t("../common").readUInt16BE,i=t("../common").str2arr,a=t("../common").sliceEq,o=t("../exif_utils"),s=i("Exif\0\0");e.exports=function(t){if(!(t.length<2)&&255===t[0]&&216===t[1]&&255===t[2])for(var e=2;;){for(;;){if(t.length-e<2)return;if(255===t[e++])break}for(var r,i,l=t[e++];255===l;)l=t[e++];if(208<=l&&l<=217||1===l)r=0;else{if(!(192<=l&&l<=254))return;if(t.length-e<2)return;r=n(t,e)-2,e+=2}if(217===l||218===l)return;if(225===l&&r>=10&&a(t,e,s)&&(i=o.get_orientation(t.slice(e+6,e+r))),r>=5&&192<=l&&l<=207&&196!==l&&200!==l&&204!==l){if(t.length-e<r)return;var c={width:n(t,e+3),height:n(t,e+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return i>0&&(c.orientation=i),c}e+=r}}},{"../common":263,"../exif_utils":264}],271:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt32BE,o=n("\x89PNG\r\n\x1a\n"),s=n("IHDR");e.exports=function(t){if(!(t.length<24)&&i(t,0,o)&&i(t,12,s))return{width:a(t,16),height:a(t,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},{"../common":263}],272:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt32BE,o=n("8BPS\0\x01");e.exports=function(t){if(!(t.length<22)&&i(t,0,o))return{width:a(t,18),height:a(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},{"../common":263}],273:[function(t,e,r){"use strict";function n(t){return 32===t||9===t||13===t||10===t}function i(t){return"number"===typeof t&&isFinite(t)&&t>0}function a(t){var e=0,r=t.length;for(239===t[0]&&187===t[1]&&191===t[2]&&(e=3);e<r&&n(t[e]);)e++;return e!==r&&60===t[e]}var o=/<[-_.:a-zA-Z0-9][^>]*>/,s=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,l=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,c=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,u=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,f=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function p(t){var e=t.match(l),r=t.match(c),n=t.match(u);return{width:e&&(e[1]||e[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function d(t){return f.test(t)?t.match(f)[0]:"px"}e.exports=function(t){if(a(t)){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);var n=(e.match(o)||[""])[0];if(s.test(n)){var l=p(n),c=parseFloat(l.width),u=parseFloat(l.height);if(l.width&&l.height){if(!i(c)||!i(u))return;return{width:c,height:u,type:"svg",mime:"image/svg+xml",wUnits:d(l.width),hUnits:d(l.height)}}var f=(l.viewbox||"").split(" "),h={width:f[2],height:f[3]},g=parseFloat(h.width),m=parseFloat(h.height);if(i(g)&&i(m)&&d(h.width)===d(h.height)){var v=g/m;if(l.width){if(!i(c))return;return{width:c,height:c/v,type:"svg",mime:"image/svg+xml",wUnits:d(l.width),hUnits:d(l.width)}}if(l.height){if(!i(u))return;return{width:u*v,height:u,type:"svg",mime:"image/svg+xml",wUnits:d(l.height),hUnits:d(l.height)}}return{width:g,height:m,type:"svg",mime:"image/svg+xml",wUnits:d(h.width),hUnits:d(h.height)}}}}}},{}],274:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt16LE,o=t("../common").readUInt16BE,s=t("../common").readUInt32LE,l=t("../common").readUInt32BE,c=n("II*\0"),u=n("MM\0*");function f(t,e,r){return r?o(t,e):a(t,e)}function p(t,e,r){return r?l(t,e):s(t,e)}function d(t,e,r){var n=f(t,e+2,r);return 1!==p(t,e+4,r)||3!==n&&4!==n?null:3===n?f(t,e+8,r):p(t,e+8,r)}e.exports=function(t){if(!(t.length<8)&&(i(t,0,c)||i(t,0,u))){var e=77===t[0],r=p(t,4,e)-8;if(!(r<0)){var n=r+8;if(!(t.length-n<2)){var a=12*f(t,n+0,e);if(!(a<=0)&&(n+=2,!(t.length-n<a))){var o,s,l,h;for(o=0;o<a;o+=12)256===(h=f(t,n+o,e))?s=d(t,n+o,e):257===h&&(l=d(t,n+o,e));return s&&l?{width:s,height:l,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}:void 0}}}}}},{"../common":263}],275:[function(t,e,r){"use strict";var n=t("../common").str2arr,i=t("../common").sliceEq,a=t("../common").readUInt16LE,o=t("../common").readUInt32LE,s=t("../exif_utils"),l=n("RIFF"),c=n("WEBP");function u(t,e){if(157===t[e+3]&&1===t[e+4]&&42===t[e+5])return{width:16383&a(t,e+6),height:16383&a(t,e+8),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function f(t,e){if(47===t[e]){var r=o(t,e+1);return{width:1+(16383&r),height:1+(r>>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function p(t,e){return{width:1+(t[e+6]<<16|t[e+5]<<8|t[e+4]),height:1+(t[e+9]<<e|t[e+8]<<8|t[e+7]),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}e.exports=function(t){if(!(t.length<16)&&(i(t,0,l)||i(t,8,c))){var e=12,r=null,n=0,a=o(t,4)+8;if(!(a>t.length)){for(;e+8<a;)if(0!==t[e]){var d=String.fromCharCode.apply(null,t.slice(e,e+4)),h=o(t,e+4);"VP8 "===d&&h>=10?r=r||u(t,e+8):"VP8L"===d&&h>=9?r=r||f(t,e+8):"VP8X"===d&&h>=10?r=r||p(t,e+8):"EXIF"===d&&(n=s.get_orientation(t.slice(e+8,e+8+h)),e=1/0),e+=8+h}else e++;if(r)return n>0&&(r.orientation=n),r}}}},{"../common":263,"../exif_utils":264}],276:[function(t,e,r){"use strict";e.exports={avif:t("./parse_sync/avif"),bmp:t("./parse_sync/bmp"),gif:t("./parse_sync/gif"),ico:t("./parse_sync/ico"),jpeg:t("./parse_sync/jpeg"),png:t("./parse_sync/png"),psd:t("./parse_sync/psd"),svg:t("./parse_sync/svg"),tiff:t("./parse_sync/tiff"),webp:t("./parse_sync/webp")}},{"./parse_sync/avif":266,"./parse_sync/bmp":267,"./parse_sync/gif":268,"./parse_sync/ico":269,"./parse_sync/jpeg":270,"./parse_sync/png":271,"./parse_sync/psd":272,"./parse_sync/svg":273,"./parse_sync/tiff":274,"./parse_sync/webp":275}],277:[function(t,e,r){"use strict";var n=t("./lib/parsers_sync");function i(t){for(var e=Object.keys(n),r=0;r<e.length;r++){var i=n[e[r]](t);if(i)return i}return null}e.exports=function(t){return i(t)},e.exports.parsers=n},{"./lib/parsers_sync":276}],278:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,f=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?f=u.concat(f):d=-1,f.length&&g())}function g(){if(!p){var t=l(h);p=!0;for(var e=f.length;e;){for(u=f,f=[];++d<e;)u&&u[d].run();d=-1,e=f.length}u=null,p=!1,c(t)}}function m(t,e){this.fun=t,this.array=e}function v(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new m(t,e)),1!==f.length||p||l(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],279:[function(t,e,n){(function(r){(function(){for(var n=t("performance-now"),i="undefined"===typeof window?r:window,a=["moz","webkit"],o="AnimationFrame",s=i["request"+o],l=i["cancel"+o]||i["cancelRequest"+o],c=0;!s&&c<a.length;c++)s=i[a[c]+"Request"+o],l=i[a[c]+"Cancel"+o]||i[a[c]+"CancelRequest"+o];if(!s||!l){var u=0,f=0,p=[],d=1e3/60;s=function(t){if(0===p.length){var e=n(),r=Math.max(0,d-(e-u));u=r+e,setTimeout((function(){var t=p.slice(0);p.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return p.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e<p.length;e++)p[e].handle===t&&(p[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"performance-now":252}],280:[function(t,e,r){"use strict";var n=t("array-bounds"),i=t("color-normalize"),a=t("update-diff"),o=t("pick-by-alias"),s=t("object-assign"),l=t("flatten-vertex-data"),c=t("to-float32"),u=c.float32,f=c.fract32;e.exports=d;var p=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function d(t,e){if("function"===typeof t?(e||(e={}),e.regl=t):e=t,e.length&&(e.positions=e),!(t=e.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");var r,c,d,h,g,m,v=t._gl,y={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},b=[];return h=t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),c=t.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),d=t.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),g=t.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=t.buffer({usage:"static",type:"float",data:p}),k(e),r=t({vert:"\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t",frag:"\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t",uniforms:{range:t.prop("range"),lineWidth:t.prop("lineWidth"),capSize:t.prop("capSize"),opacity:t.prop("opacity"),scale:t.prop("scale"),translate:t.prop("translate"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:h,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:d,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:t.prop("viewport")},viewport:t.prop("viewport"),stencil:!1,instances:t.prop("count"),count:p.length}),s(x,{update:k,draw:_,destroy:T,regl:t,gl:v,canvas:v.canvas,groups:b}),x;function x(t){t?k(t):null===t&&T(),_()}function _(e){if("number"===typeof e)return w(e);e&&!Array.isArray(e)&&(e=[e]),t._refresh(),b.forEach((function(t,r){t&&(e&&(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){"number"===typeof t&&(t=b[t]),null!=t&&t&&t.count&&t.color&&t.opacity&&t.positions&&t.positions.length>1&&(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&&t.after(t))}function k(t){if(t){null!=t.length?"number"===typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(x.groups=b=t.map((function(t,c){var u=b[c];return t?("function"===typeof t?t={after:t}:"number"===typeof t[0]&&(t={positions:t}),t=o(t,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),u||(b[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,"float64"),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t="transparent"),!Array.isArray(t)||"number"===typeof t[0]){var n=t;t=Array(r);for(var a=0;a<r;a++)t[a]=n}if(t.length<r)throw Error("Not enough colors");for(var o=new Uint8Array(4*r),s=0;s<r;s++){var l=i(t[s],"uint8");o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var p=b.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*p),_=new Uint8Array(4*p),w=new Float32Array(4*p);b.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&&(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}}));var k=u(m);c(k);var T=f(m,k);d(T),h(_),g(w)}}}function T(){c.destroy(),d.destroy(),h.destroy(),g.destroy(),m.destroy()}}},{"array-bounds":71,"color-normalize":89,"flatten-vertex-data":191,"object-assign":247,"pick-by-alias":253,"to-float32":314,"update-diff":330}],281:[function(t,e,r){"use strict";var n=t("color-normalize"),i=t("array-bounds"),a=t("object-assign"),o=t("glslify"),s=t("pick-by-alias"),l=t("flatten-vertex-data"),c=t("earcut"),u=t("array-normalize"),f=t("to-float32"),p=f.float32,d=f.fract32,h=t("es6-weak-map"),g=t("parse-rect"),m=t("array-find-index");function v(t,e){if(!(this instanceof v))return new v(t,e);if("function"===typeof t?(e||(e={}),e.regl=t):e=t,e.length&&(e.positions=e),!(t=e.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=v.shaders.has(t)?v.shaders.get(t):v.shaders.set(t,v.createShaders(t)).get(t),this.update(e)}e.exports=v,v.dashMult=2,v.maxPatternLength=256,v.precisionThreshold=3e6,v.maxPoints=1e4,v.maxLines=2048,v.shaders=new h,v.createShaders=function(t){var e,r=t.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),n={primitive:"triangle strip",instances:t.prop("count"),count:4,offset:0,uniforms:{miterMode:function(t,e){return"round"===e.join?2:1},miterLimit:t.prop("miterLimit"),scale:t.prop("scale"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),translate:t.prop("translate"),thickness:t.prop("thickness"),dashTexture:t.prop("dashTexture"),opacity:t.prop("opacity"),pixelRatio:t.context("pixelRatio"),id:t.prop("id"),dashLength:t.prop("dashLength"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop("viewport")},viewport:t.prop("viewport")},i=t(a({vert:o(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n"]),frag:o(["precision highp float;\n#define GLSLIFY 1\n\nuniform float dashLength, pixelRatio, thickness, opacity, id;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:t.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:"back"},vert:o(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n vec2 adjustedScale;\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\n\n vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n"]),frag:o(["precision highp float;\n#define GLSLIFY 1\n\nuniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},n))}catch(s){e=i}return{fill:t({primitive:"triangle",elements:function(t,e){return e.triangles},offset:0,vert:o(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n"]),frag:o(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n"]),uniforms:{scale:t.prop("scale"),color:t.prop("fill"),scaleFract:t.prop("scaleFract"),translateFract:t.prop("translateFract"),translate:t.prop("translate"),opacity:t.prop("opacity"),pixelRatio:t.context("pixelRatio"),id:t.prop("id"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:t.prop("positionFractBuffer"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&&(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&&Array.isArray(e))return(n=t).draw.apply(n,e);"number"===typeof e&&(e=t.passes[e]),e&&e.count>1&&e.opacity&&(t.regl._refresh(),e.fill&&e.triangles&&e.triangles.length>2&&t.shaders.fill(e),e.thickness&&(e.scale[0]*e.viewport.width>v.precisionThreshold||e.scale[1]*e.viewport.height>v.precisionThreshold||"rect"===e.join||!e.join&&(e.thickness<=2||e.count>=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?"number"===typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this,o=r.regl,f=r.gl;if(t.forEach((function(t,r){var h=e.passes[r];if(void 0!==t)if(null!==t){if("number"===typeof t[0]&&(t={positions:t}),t=s(t,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),h||(e.passes[r]=h={id:r,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:o.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:o.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:o.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:o.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&&(h.thickness=parseFloat(t.thickness)),null!=t.opacity&&(h.opacity=parseFloat(t.opacity)),null!=t.miterLimit&&(h.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&&(h.overlay=!!t.overlay,r<v.maxLines&&(h.depth=2*(v.maxLines-1-r%v.maxLines)/v.maxLines-1)),null!=t.join&&(h.join=t.join),null!=t.hole&&(h.hole=t.hole),null!=t.fill&&(h.fill=t.fill?n(t.fill,"uint8"):null),null!=t.viewport&&(h.viewport=g(t.viewport)),h.viewport||(h.viewport=g([f.drawingBufferWidth,f.drawingBufferHeight])),null!=t.close&&(h.close=t.close),null===t.positions&&(t.positions=[]),t.positions){var y,b;if(t.positions.x&&t.positions.y){var x=t.positions.x,_=t.positions.y;b=h.count=Math.max(x.length,_.length),y=new Float64Array(2*b);for(var w=0;w<b;w++)y[2*w]=x[w],y[2*w+1]=_[w]}else y=l(t.positions,"float64"),b=h.count=Math.floor(y.length/2);var k=h.bounds=i(y,2);if(h.fill){for(var T=[],M={},A=0,S=0,E=0,C=h.count;S<C;S++){var O=y[2*S],L=y[2*S+1];isNaN(O)||isNaN(L)||null==O||null==L?(O=y[2*A],L=y[2*A+1],M[S]=A):A=S,T[E++]=O,T[E++]=L}if(t.splitNull){h.count-1 in M||(M[h.count]=h.count-1);var I=Object.keys(M).map(Number).sort((function(t,e){return t-e})),P=[],D=0,R=null!=h.hole?h.hole[0]:null;if(null!=R){var z=m(I,(function(t){return t>=R}));(I=I.slice(0,z)).push(R)}for(var N=function(t){var e=T.slice(2*D,2*I[t]).concat(R?T.slice(2*R):[]),r=(h.hole||[]).map((function(e){return e-R+(I[t]-D)})),n=c(e,r);n=n.map((function(e){return e+D+(e+D<I[t]?0:R-I[t])})),P.push.apply(P,n),D=I[t]+1},F=0;F<I.length;F++)N(F);for(var B=0,j=P.length;B<j;B++)null!=M[P[B]]&&(P[B]=M[P[B]]);h.triangles=P}else{for(var U=c(T,h.hole||[]),V=0,H=U.length;V<H;V++)null!=M[U[V]]&&(U[V]=M[U[V]]);h.triangles=U}}var q=new Float64Array(y);u(q,2,k);var G=new Float64Array(2*b+6);h.close?y[0]===y[2*b-2]&&y[1]===y[2*b-1]?(G[0]=q[2*b-4],G[1]=q[2*b-3]):(G[0]=q[2*b-2],G[1]=q[2*b-1]):(G[0]=q[0],G[1]=q[1]),G.set(q,2),h.close?y[0]===y[2*b-2]&&y[1]===y[2*b-1]?(G[2*b+2]=q[2],G[2*b+3]=q[3],h.count-=1):(G[2*b+2]=q[0],G[2*b+3]=q[1],G[2*b+4]=q[2],G[2*b+5]=q[3]):(G[2*b+2]=q[2*b-2],G[2*b+3]=q[2*b-1],G[2*b+4]=q[2*b-2],G[2*b+5]=q[2*b-1]);var W=p(G);h.positionBuffer(W);var Y=d(G,W);h.positionFractBuffer(Y)}if(t.range?h.range=t.range:h.range||(h.range=h.bounds),(t.range||t.positions)&&h.count){var X=h.bounds,Z=X[2]-X[0],K=X[3]-X[1],J=h.range[2]-h.range[0],$=h.range[3]-h.range[1];h.scale=[Z/J,K/$],h.translate=[-h.range[0]/J+X[0]/J||0,-h.range[1]/$+X[1]/$||0],h.scaleFract=d(h.scale),h.translateFract=d(h.translate)}if(t.dashes){var Q,tt=0;if(!t.dashes||t.dashes.length<2)tt=1,Q=new Uint8Array([255,255,255,255,255,255,255,255]);else{tt=0;for(var et=0;et<t.dashes.length;++et)tt+=t.dashes[et];Q=new Uint8Array(tt*v.dashMult);for(var rt=0,nt=255,it=0;it<2;it++)for(var at=0;at<t.dashes.length;++at){for(var ot=0,st=t.dashes[at]*v.dashMult*.5;ot<st;++ot)Q[rt++]=nt;nt^=255}}h.dashLength=tt,h.dashTexture({channels:1,data:Q,width:Q.length,height:1,mag:"linear",min:"linear"},0,0)}if(t.color){var lt=h.count,ct=t.color;ct||(ct="transparent");var ut=new Uint8Array(4*lt+4);if(Array.isArray(ct)&&"number"!==typeof ct[0]){for(var ft=0;ft<lt;ft++){var pt=n(ct[ft],"uint8");ut.set(pt,4*ft)}ut.set(n(ct[0],"uint8"),4*lt)}else for(var dt=n(ct,"uint8"),ht=0;ht<lt+1;ht++)ut.set(dt,4*ht);h.colorBuffer({usage:"dynamic",type:"uint8",data:ut})}}else e.passes[r]=null})),t.length<this.passes.length){for(var h=t.length;h<this.passes.length;h++){var y=this.passes[h];y&&(y.colorBuffer.destroy(),y.positionBuffer.destroy(),y.dashTexture.destroy())}this.passes.length=t.length}for(var b=[],x=0;x<this.passes.length;x++)null!==this.passes[x]&&b.push(this.passes[x]);return this.passes=b,this}},v.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{"array-bounds":71,"array-find-index":72,"array-normalize":73,"color-normalize":89,earcut:129,"es6-weak-map":183,"flatten-vertex-data":191,glslify:227,"object-assign":247,"parse-rect":249,"pick-by-alias":253,"to-float32":314}],282:[function(t,e,r){"use strict";function n(t,e){return o(t)||l(t,e)||c(t,e)||p()}function i(t){return a(t)||s(t)||c(t)||f()}function a(t){if(Array.isArray(t))return u(t)}function o(t){if(Array.isArray(t))return t}function s(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function l(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}function c(t,e){if(t){if("string"===typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=t("color-normalize"),h=t("array-bounds"),g=t("color-id"),m=t("@plotly/point-cluster"),v=t("object-assign"),y=t("glslify"),b=t("pick-by-alias"),x=t("update-diff"),_=t("flatten-vertex-data"),w=t("is-iexplorer"),k=t("to-float32"),T=t("parse-rect"),M=A;function A(t,e){var r=this;if(!(this instanceof A))return new A(t,e);"function"===typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&&e.length&&(e.positions=e);var n,i=(t=e.regl)._gl,a=[],o={},s=[],l=[null],c=[null],u=255,f=100;this.tooManyColors=w,n=t.texture({data:new Uint8Array(4*u),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),v(this,{regl:t,gl:i,groups:s,markerCache:c,markerTextures:l,palette:a,paletteIds:o,paletteTexture:n,maxColors:u,maxSize:f,canvas:i.canvas}),this.update(e);var p={uniforms:{constPointSize:!!e.constPointSize,opacity:t.prop("opacity"),paletteSize:function(t,e){return[r.tooManyColors?0:u,n.height]},pixelRatio:t.context("pixelRatio"),scale:t.prop("scale"),scaleFract:t.prop("scaleFract"),translate:t.prop("translate"),translateFract:t.prop("translateFract"),markerTexture:t.prop("markerTexture"),paletteTexture:n},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:t.prop("viewport")},viewport:t.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:t.prop("elements"),count:t.prop("count"),offset:t.prop("offset"),primitive:"points"},d=v({},p);d.frag=y(["precision highp float;\n#define GLSLIFY 1\n\nuniform float opacity;\nuniform sampler2D markerTexture;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat smoothStep(float x, float y) {\n return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;\n\n // max-distance alpha\n if (dist < 0.003) discard;\n\n // null-border case\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n }\n else {\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n vec4 color = fragBorderColor;\n color.a *= borderColorAmt;\n color = mix(color, fragColor, colorAmt);\n color.a *= opacity;\n\n gl_FragColor = color;\n }\n\n}\n"]),d.vert=y(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = 2. * size * pointSizeScale;\n fragPointSize = size * pixelRatio;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragColor = color;\n fragBorderColor = borderColor;\n fragWidth = 1. / gl_PointSize;\n\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}"]),this.drawMarker=t(d);var h=v({},p);h.frag=y(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nuniform float opacity;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius > 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),h.vert=y(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),w&&(h.frag=h.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=t(h)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&&Array.isArray(r[0])&&(null===r[0][0]||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},A.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if("number"===typeof e&&(t=e,n=r[e],e=null),n&&n.count&&n.opacity){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o<n.activation.length;o++)n.activation[o]&&(!0===n.activation[o]||n.activation[o].data.length)&&a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&&this.drawMarker(a)}},A.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;if(this.regl,!a)return r?[v({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[v({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],f=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),h=0;h<r.length;h++){var g=r[h];d[g]=p?p[g]:1}l.subdata(d)}for(var m=f.length;m--;){var y=n(f[m],2),b=y[0],x=y[1];u.push(v({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:b,count:x-b}))}return u},A.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r.length){1===r.length&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,l=this.maxColors,c=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:"function"===typeof e?e={ondraw:e}:"number"===typeof e[0]&&(e={positions:e}),null===(e=b(e,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"})).positions&&(e.positions=[]),null!=e.tooManyColors&&(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},e=v({},A.defaults,e)),e.positions&&!("marker"in e)&&(e.marker=n.marker,delete n.marker),e.marker&&!("positions"in e)&&(e.positions=n.positions,delete n.positions);var u=0,f=0;if(x(n,e,[{snap:!0,size:function(t,e){return null==t&&(t=A.defaults.size),u+=t&&t.length?1:0,t},borderSize:function(t,e){return null==t&&(t=A.defaults.borderSize),u+=t&&t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&&(e=A.defaults.color),e=t.updateColor(e),f++,e},borderColor:function(e,r){return null==e&&(e=A.defaults.borderColor),e=t.updateColor(e),f++,e},bounds:function(t,e,r){return"range"in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=_(t,"float64");var l=e.count=Math.floor(t.length/2),c=e.bounds=l?h(t,2):null;if(r.range||e.range||(delete e.range,r.range=c),r.marker||e.marker||(delete e.marker,r.marker=null),n&&(!0===n||l>n)?e.tree=m(t,{bounds:c}):n&&n.length&&(e.tree=n),e.tree){var u={primitive:"points",usage:"static",data:e.tree,type:"uint32"};e.elements?e.elements(u):e.elements=o.elements(u)}var f=k.float32(t);return i({data:f,usage:"dynamic"}),a({data:k.fract32(t,f),usage:"dynamic"}),s({data:new Uint8Array(l),type:"uint8",usage:"stream"}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&&t.destroy&&t.destroy()})),i.length=0,e&&"number"!==typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s<l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u<a.length;u++)if(a[u]){var f={data:a[u],type:"uint8",usage:"static"};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else i[t.addMarker(e)]=!0;return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=k.fract(e.scale),e.translateFract=k.fract(e.translate),t},viewport:function(t){return T(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),u){var p=n,d=p.count,g=p.size,y=p.borderSize,w=p.sizeBuffer,M=new Uint8Array(2*d);if(g.length||y.length)for(var S=0;S<d;S++)M[2*S]=Math.round(255*(null==g[S]?g:g[S])/s),M[2*S+1]=Math.round(255*(null==y[S]?y:y[S])/s);w({data:M,usage:"dynamic"})}if(f){var E,C=n,O=C.count,L=C.color,I=C.borderColor,P=C.colorBuffer;if(t.tooManyColors){if(L.length||I.length){E=new Uint8Array(8*O);for(var D=0;D<O;D++){var R=L[D];E[8*D]=c[4*R],E[8*D+1]=c[4*R+1],E[8*D+2]=c[4*R+2],E[8*D+3]=c[4*R+3];var z=I[D];E[8*D+4]=c[4*z],E[8*D+5]=c[4*z+1],E[8*D+6]=c[4*z+2],E[8*D+7]=c[4*z+3]}}}else if(L.length||I.length){E=new Uint8Array(4*O+2);for(var N=0;N<O;N++)null!=L[N]&&(E[4*N]=L[N]%l,E[4*N+1]=Math.floor(L[N]/l)),null!=I[N]&&(E[4*N+2]=I[N]%l,E[4*N+3]=Math.floor(I[N]/l))}P({data:E||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return n}))}},A.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a>=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o<s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:"linear",min:"linear"})),a},A.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if("number"===typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o<t.length;o+=4)a.push(t.slice(o,o+4));else for(var s=0;s<t.length;s+=4)a.push(t.subarray(s,s+4));t=a}for(var l=0;l<t.length;l++){var c=t[l];c=d(c,"uint8");var u=g(c,!1);if(null==e[u]){var f=r.length;e[u]=Math.floor(f/4),r[f]=c[0],r[f+1]=c[1],r[f+2]=c[2],r[f+3]=c[3]}i[l]=e[u]}return!this.tooManyColors&&r.length>4*n&&(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},A.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n>1)for(var i=.25*(t=t.slice()).length%e;i<n*e;i++)t.push(0,0,0,0);r.height<n&&r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},A.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&&t.destroy&&t.destroy()})),t.selectionBuffer.destroy(),t.elements&&t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&&t.destroy&&t.destroy()})),this};var S=t("object-assign"),E=function(t,e){var r=new M(t,e),n=r.render.bind(r);return S(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n};e.exports=E},{"@plotly/point-cluster":59,"array-bounds":71,"color-id":87,"color-normalize":89,"flatten-vertex-data":191,glslify:227,"is-iexplorer":233,"object-assign":247,"parse-rect":249,"pick-by-alias":253,"to-float32":314,"update-diff":330}],283:[function(t,e,r){"use strict";var n=t("regl-scatter2d"),i=t("pick-by-alias"),a=t("array-bounds"),o=t("raf"),s=t("array-range"),l=t("parse-rect"),c=t("flatten-vertex-data");function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)<<16|(255&e)<<8|255&r}function p(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length>2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x,s.width,i=s.y+s.height),l.length>2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y,l.height),[a,n,o,i]}function d(t){if("number"===typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&&(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n<e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o<this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c<l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:"data items columns rows values dimensions samples x",snap:"snap cluster",size:"sizes size radius",color:"colors color fill fill-color fillColor",opacity:"opacity alpha transparency opaque",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",borderColor:"borderColors borderColor bordercolor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range ranges databox dataBox",viewport:"viewport viewBox viewbox",domain:"domain domains area areas",padding:"pad padding paddings pads margin margins",transpose:"transpose transposed",diagonal:"diagonal diag showDiagonal",upper:"upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf",lower:"lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower"}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),color:"black",marker:null,size:12,borderColor:"transparent",borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&&(s.color=o.color),null!=o.size&&(s.size=o.size),null!=o.marker&&(s.marker=o.marker),null!=o.borderColor&&(s.borderColor=o.borderColor),null!=o.borderSize&&(s.borderSize=o.borderSize),null!=o.opacity&&(s.opacity=o.opacity),o.viewport&&(s.viewport=l(o.viewport)),null!=o.diagonal&&(s.diagonal=o.diagonal),null!=o.upper&&(s.upper=o.upper),null!=o.lower&&(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u<s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&&(s.range=o.range,n=s.range&&"number"!==typeof s.range[0]),o.domain&&(s.domain=o.domain);var h=!1;null!=o.padding&&(Array.isArray(o.padding)&&o.padding.length===s.columns&&"number"===typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(d),h=!0):s.padding=d(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,b=s.viewport.x,x=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var k=0;k<g;k++)for(var T=0;T<g;T++)if((s.diagonal||T!==k)&&(s.upper||!(k>T))&&(s.lower||!(k<T))){var M=f(s.id,k,T),A=this.passes[M]||(this.passes[M]={});if(o.data&&(o.transpose?A.positions={x:{buffer:s.buffer,offset:T,count:m,stride:g},y:{buffer:s.buffer,offset:k,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:T*m,count:m},y:{buffer:s.buffer,offset:k*m,count:m}},A.bounds=p(s.bounds,k,T)),o.domain||o.viewport||o.data){var S=h?p(s.padding,k,T):s.padding;if(s.domain){var E=p(s.domain,k,T),C=E[0],O=E[1],L=E[2],I=E[3];A.viewport=[b+C*v+S[0],x+O*y+S[1],b+L*v-S[2],x+I*y-S[3]]}else A.viewport=[b+T*_+_*S[0],x+k*w+w*S[1],b+(T+1)*_-_*S[2],x+(k+1)*w-w*S[3]]}o.color&&(A.color=s.color),o.size&&(A.size=s.size),o.marker&&(A.marker=s.marker),o.borderSize&&(A.borderSize=s.borderSize),o.borderColor&&(A.borderColor=s.borderColor),o.opacity&&(A.opacity=s.opacity),o.range&&(A.range=n?p(s.range,k,T):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i<e.length;i++)if("number"===typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,p=u.passOffset;f=f.map((function(t,e){n[p+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&&t.buffer.destroy&&t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{"array-bounds":71,"array-range":74,"flatten-vertex-data":191,"parse-rect":249,"pick-by-alias":253,raf:279,"regl-scatter2d":282}],284:[function(e,r,n){var i,a;i=this,a=function(){function t(t,e){this.id=tt++,this.type=t,this.data=e}function e(t){if(0===t.length)return[];var r=t.charAt(0),n=t.charAt(t.length-1);if(1<t.length&&r===n&&('"'===r||"'"===r))return['"'+t.substr(1,t.length-2).replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'];if(r=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(t))return e(t.substr(0,r.index)).concat(e(r[1])).concat(e(t.substr(r.index+r[0].length)));if(1===(r=t.split(".")).length)return['"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'];for(t=[],n=0;n<r.length;++n)t=t.concat(e(r[n]));return t}function r(t){return"["+e(t).join("][")+"]"}function n(e,r){return"function"===typeof e?new t(0,e):"number"===typeof e||"boolean"===typeof e?new t(5,e):Array.isArray(e)?new t(6,e.map((function(t,e){return n(t,r+"["+e+"]")}))):e instanceof t?e:void 0}function i(){var t={"":0},e=[""];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}function a(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&&(e=(n=a.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n}var i,a=document.createElement("canvas");return Q(a.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),t.appendChild(a),t===document.body&&(a.style.position="absolute",Q(t.style,{margin:0,padding:0})),t!==document.body&&"function"===typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener("resize",n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener("resize",n),t.removeChild(a)}}}function o(t,e){function r(r){try{return t.getContext(r,e)}catch(n){return null}}return r("webgl")||r("experimental-webgl")||r("webgl-experimental")}function s(t){return"string"===typeof t?t.split():t}function l(t){return"string"===typeof t?document.querySelector(t):t}function c(t){var e,r,n,i,c=t||{};t={};var u=[],f=[],p="undefined"===typeof window?1:window.devicePixelRatio,d=!1,h={},g=function(t){},m=function(){};if("string"===typeof c?e=document.querySelector(c):"object"===typeof c&&("string"===typeof c.nodeName&&"function"===typeof c.appendChild&&"function"===typeof c.getBoundingClientRect?e=c:"function"===typeof c.drawArrays||"function"===typeof c.drawElements?n=(i=c).canvas:("gl"in c?i=c.gl:"canvas"in c?n=l(c.canvas):"container"in c&&(r=l(c.container)),"attributes"in c&&(t=c.attributes),"extensions"in c&&(u=s(c.extensions)),"optionalExtensions"in c&&(f=s(c.optionalExtensions)),"onDone"in c&&(g=c.onDone),"profile"in c&&(d=!!c.profile),"pixelRatio"in c&&(p=+c.pixelRatio),"cachedCode"in c&&(h=c.cachedCode))),e&&("canvas"===e.nodeName.toLowerCase()?n=e:r=e),!i){if(!n){if(!(e=a(r||document.body,g,p)))return null;n=e.canvas,m=e.onDestroy}void 0===t.premultipliedAlpha&&(t.premultipliedAlpha=!0),i=o(n,t)}return i?{gl:i,canvas:n,container:r,extensions:u,optionalExtensions:f,pixelRatio:p,profile:d,cachedCode:h,onDone:g,onDestroy:m}:(m(),g("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function u(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(i){}return!!r}for(var n={},i=0;i<e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('"'+a+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&&!r(t))throw Error("(regl): error restoring extension "+t)}))}}}function f(t,e){for(var r=Array(t),n=0;n<t;++n)r[n]=e(n);return r}function p(t){var e,r;return e=(65535<t)<<4,e|=r=(255<(t>>>=e))<<3,(e|=r=(15<(t>>>=r))<<2)|(r=(3<(t>>>=r))<<1)|t>>>r>>1}function d(){function t(t){t:{for(var e=16;268435456>=e;e*=16)if(t<=e){t=e;break t}t=0}return 0<(e=r[p(t)>>2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[p(t.byteLength)>>2].push(t)}var r=f(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function h(t){return!!t&&"object"===typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&"number"===typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||ot(t.data))}function g(t,e,r,n,i,a){for(var o=0;o<e;++o)for(var s=t[o],l=0;l<r;++l)for(var c=s[l],u=0;u<n;++u)i[a++]=c[u]}function m(t,e,r,n,i){for(var a=1,o=r+1;o<e.length;++o)a*=e[o];var s=e[r];if(4===e.length-r){var l=e[r+1],c=e[r+2];for(e=e[r+3],o=0;o<s;++o)g(t[o],l,c,e,n,i),i+=a}else for(o=0;o<s;++o)m(t[o],e,r+1,n,i),i+=a}function v(t){return 0|ct[Object.prototype.toString.call(t)]}function y(t,e){for(var r=0;r<e.length;++r)t[r]=e[r]}function b(t,e,r,n,i,a,o){for(var s=0,l=0;l<r;++l)for(var c=0;c<n;++c)t[s++]=e[i*l+a*c+o]}function x(t,e,r,n){function i(e){this.id=l++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&&(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0<e.length)if(Array.isArray(e[0])){i=dt(e);for(var s=n=1;s<i.length;++s)n*=i[s];t.dimension=n,a(t,e=pt(e,i,t.dtype),r),o?t.persistentData=e:it.freeType(e)}else"number"===typeof e[0]?(t.dimension=i,y(i=it.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:it.freeType(i)):ot(e[0])&&(t.dimension=e[0].length,t.dtype=n||v(e[0])||5126,a(t,e=pt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:it.freeType(e))}else if(ot(e))t.dtype=n||v(e),t.dimension=i,a(t,e,r),o&&(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(h(e)){i=e.shape;var l=e.stride,c=(s=e.offset,0),u=0,f=0,p=0;1===i.length?(c=i[0],u=1,f=l[0],p=0):2===i.length&&(c=i[0],u=i[1],f=l[0],p=l[1]),t.dtype=n||v(e.data)||5126,t.dimension=u,b(i=it.allocType(t.dtype,c*u),e.data,c,u,f,p,s),a(t,i,r),o?t.persistentData=i:it.freeType(i)}else e instanceof ArrayBuffer&&(t.dtype=5121,t.dimension=i,a(t,e,r),o&&(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete c[r.id]}var l=0,c={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var u=[];return r.profile&&(e.getTotalBufferSize=function(){var t=0;return Object.keys(c).forEach((function(e){t+=c[e].stats.size})),t}),{create:function(n,a,l,u){function f(e){var n=35044,i=null,a=0,s=0,l=1;return Array.isArray(e)||ot(e)||h(e)||e instanceof ArrayBuffer?i=e:"number"===typeof e?a=0|e:e&&("data"in e&&(i=e.data),"usage"in e&&(n=ft[e.usage]),"type"in e&&(s=ut[e.type]),"dimension"in e&&(l=0|e.dimension),"length"in e&&(a=0|e.length)),p.bind(),i?o(p,i,n,s,l,u):(a&&t.bufferData(p.type,a,n),p.dtype=s||5121,p.usage=n,p.dimension=l,p.byteLength=a),r.profile&&(p.stats.size=p.byteLength*ht[p.dtype]),f}e.bufferCount++;var p=new i(a);return c[p.id]=p,l||f(n),f._reglType="buffer",f._buffer=p,f.subdata=function(e,r){var n,i=0|(r||0);if(p.bind(),ot(e)||e instanceof ArrayBuffer)t.bufferSubData(p.type,i,e);else if(Array.isArray(e)){if(0<e.length)if("number"===typeof e[0]){var a=it.allocType(p.dtype,e.length);y(a,e),t.bufferSubData(p.type,i,a),it.freeType(a)}else(Array.isArray(e[0])||ot(e[0]))&&(n=dt(e),a=pt(e,n,p.dtype),t.bufferSubData(p.type,i,a),it.freeType(a))}else if(h(e)){n=e.shape;var o=e.stride,s=a=0,l=0,c=0;1===n.length?(a=n[0],s=1,l=o[0],c=0):2===n.length&&(a=n[0],s=n[1],l=o[0],c=o[1]),n=Array.isArray(e.data)?p.dtype:v(e.data),b(n=it.allocType(n,a*s),e.data,a,s,l,c,e.offset),t.bufferSubData(p.type,i,n),it.freeType(n)}return f},r.profile&&(f.stats=p.stats),f.destroy=function(){s(p)},f},createStream:function(t,e){var r=u.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){u.push(t)},clear:function(){st(c).forEach(s),u.forEach(s)},getBuffer:function(t){return t&&t._buffer instanceof i?t._buffer:null},restore:function(){st(c).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function _(t,e,r,n){function i(t){this.id=l++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,l,c){var u;if(n.buffer.bind(),i?((u=c)||ot(i)&&(!h(i)||ot(i.data))||(u=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,u,3)):(t.bufferData(34963,l,a),n.buffer.dtype=u||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=l),u=c,!c){switch(n.buffer.dtype){case 5121:case 5120:u=5121;break;case 5123:case 5122:u=5123;break;case 5125:case 5124:u=5125}n.buffer.dtype=u}n.type=u,0>(i=s)&&(i=n.buffer.byteLength,5123===u?i>>=1:5125===u&&(i>>=2)),n.vertCount=i,i=o,0>o&&(i=4,1===(o=n.buffer.dimension)&&(i=0),2===o&&(i=1),3===o&&(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},l=0,c={uint8:5121,uint16:5123};e.oes_element_index_uint&&(c.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var u=[];return{create:function(t,e){function s(t){if(t)if("number"===typeof t)l(t),u.primType=4,u.vertCount=0|t,u.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,f=0;Array.isArray(t)||ot(t)||h(t)?e=t:("data"in t&&(e=t.data),"usage"in t&&(r=ft[t.usage]),"primitive"in t&&(n=gt[t.primitive]),"count"in t&&(i=0|t.count),"type"in t&&(f=c[t.type]),"length"in t?o=0|t.length:(o=i,5123===f||5122===f?o*=2:5125!==f&&5124!==f||(o*=4))),a(u,e,r,n,i,o,f)}else l(),u.primType=4,u.vertCount=0,u.type=5121;return s}var l=r.create(null,34963,!0),u=new i(l._buffer);return n.elementsCount++,s(t),s._reglType="elements",s._elements=u,s.subdata=function(t,e){return l.subdata(t,e),s},s.destroy=function(){o(u)},s},createStream:function(t){var e=u.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){u.push(t)},getElements:function(t){return"function"===typeof t&&t._elements instanceof i?t._elements:null},clear:function(){st(s).forEach(o)}}}function w(t){for(var e=it.allocType(5123,t.length),r=0;r<t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{mt[0]=t[r];var n=(a=vt[0])>>>31<<15,i=(a<<1>>>24)-127,a=a>>13&1023;e[r]=-24>i?n:-14>i?n+(a+1024>>-14-i):15<i?n+31744:n+(i+15<<10)+a}return e}function k(t){return Array.isArray(t)||ot(t)}function T(t){return"[object "+t+"]"}function M(t){return Array.isArray(t)&&(0===t.length||"number"===typeof t[0])}function A(t){return!(!Array.isArray(t)||0===t.length||!k(t[0]))}function S(t){return Object.prototype.toString.call(t)}function E(t){if(!t)return!1;var e=S(t);return 0<=St.indexOf(e)||M(t)||A(t)||h(t)}function C(t,e){36193===t.type?(t.data=w(e),it.freeType(e)):t.data=e}function O(t,e,r,n,i,a){if(t="undefined"!==typeof Ct[t]?Ct[t]:xt[t]*Et[e],a&&(t*=6),i){for(n=0;1<=r;)n+=t*r*r,r/=2;return n}return t*r*n}function L(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function l(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function c(t,e){if("object"===typeof e&&e){"premultiplyAlpha"in e&&(t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(t.flipY=e.flipY),"alignment"in e&&(t.unpackAlignment=e.alignment),"colorSpace"in e&&(t.colorSpace=V[e.colorSpace]),"type"in e&&(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;"shape"in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&&(i=e.shape[2],a=!0)):("radius"in e&&(r=n=e.radius),"width"in e&&(r=e.width),"height"in e&&(n=e.height),"channels"in e&&(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,"format"in e&&(r=e.format,n=t.internalformat=q[r],t.format=tt[n],r in H&&!("type"in e)&&(t.type=H[r]),r in G&&(t.compressed=!0),r=!0),!a&&r?t.channels=xt[t.format]:a&&!r&&t.channels!==bt[t.format]&&(t.format=t.internalformat=bt[t.channels])}}function u(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function f(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(E(e)?r=e:e&&(c(t,e),"x"in e&&(t.xOffset=0|e.x),"y"in e&&(t.yOffset=0|e.y),E(e.data)&&(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(ot(r))t.channels=t.channels||4,t.data=r,"type"in e||5121!==t.type||(t.type=0|ct[Object.prototype.toString.call(r)]);else if(M(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=it.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=w(n)}t.alignment=1,t.needsFree=!0}else if(h(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|ct[Object.prototype.toString.call(n)]),a=r.shape;var o,s,l,u,f=r.stride;3===a.length?(l=a[2],u=f[2]):u=l=1,o=a[0],s=a[1],a=f[0],f=f[1],t.alignment=1,t.width=o,t.height=s,t.channels=l,t.format=t.internalformat=bt[l],t.needsFree=!0,o=u,r=r.offset,l=t.width,u=t.height,s=t.channels;for(var p=it.allocType(36193===t.type?5126:t.type,l*u*s),d=0,g=0;g<u;++g)for(var m=0;m<l;++m)for(var v=0;v<s;++v)p[d++]=n[a*m+f*g+o*v+r];C(t,p)}else if(S(r)===_t||S(r)===wt||S(r)===kt)S(r)===_t||S(r)===wt?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(S(r)===Tt)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(S(r)===Mt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(S(r)===At)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(A(r)){for(n=t.width||r[0].length,a=t.height||r.length,f=t.channels,f=k(r[0][0])?f||r[0][0].length:f||1,o=lt.shape(r),l=1,u=0;u<o.length;++u)l*=o[u];l=it.allocType(36193===t.type?5126:t.type,l),lt.flatten(r,o,"",l),C(t,l),t.alignment=1,t.width=n,t.height=a,t.channels=f,t.format=t.internalformat=bt[f],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,f=e.format,p=e.type,d=e.width,h=e.height;u(e),s?t.texSubImage2D(r,o,i,a,f,p,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,d,h,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,d,h)):t.texSubImage2D(r,o,i,a,d,h,f,p,l)}function g(){return et.pop()||new f}function m(t){t.needsFree&&it.freeType(t.data),f.call(t),et.push(t)}function v(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function y(t,e,r){var n=t.images[0]=g();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function b(t,e){var r=null;if(E(e))l(r=t.images[0]=g(),t),p(r,e),t.mipmask=1;else if(c(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i<n.length;++i)l(r=t.images[i]=g(),t),r.width>>=i,r.height>>=i,p(r,n[i]),t.mipmask|=1<<i;else l(r=t.images[0]=g(),t),p(r,e),t.mipmask=1;l(t,t.images[0])}function x(e,r){for(var i=e.images,a=0;a<i.length&&i[a];++a){var o=i[a],s=r,l=a,c=o.element,f=o.data,p=o.internalformat,d=o.format,h=o.type,g=o.width,m=o.height;u(o),c?t.texImage2D(s,l,d,d,h,c):o.compressed?t.compressedTexImage2D(s,l,p,g,m,0,f):o.needsCopy?(n(),t.copyTexImage2D(s,l,d,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,d,g,m,0,d,h,f||null)}}function _(){var t=rt.pop()||new v;s.call(t);for(var e=t.mipmask=0;16>e;++e)t.images[e]=null;return t}function T(t){for(var e=t.images,r=0;r<e.length;++r)e[r]&&m(e[r]),e[r]=null;rt.push(t)}function L(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function I(t,e){"min"in e&&(t.minFilter=U[e.min],0<=yt.indexOf(t.minFilter)&&!("faces"in e)&&(t.genMipmaps=!0)),"mag"in e&&(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if("wrap"in e){var i=e.wrap;"string"===typeof i?r=n=B[i]:Array.isArray(i)&&(r=B[i[0]],n=B[i[1]])}else"wrapS"in e&&(r=B[e.wrapS]),"wrapT"in e&&(n=B[e.wrapT]);if(t.wrapS=r,t.wrapT=n,"anisotropic"in e&&(t.anisotropic=e.anisotropic),"mipmap"in e){switch(r=!1,typeof e.mipmap){case"string":t.mipmapHint=F[e.mipmap],r=t.genMipmaps=!0;break;case"boolean":r=t.genMipmaps=e.mipmap;break;case"object":t.genMipmaps=!1,r=!0}!r||"min"in e||(t.minFilter=9984)}}function P(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&&t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&&(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function D(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=nt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new L,o.profile&&(this.stats={size:0})}function R(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function z(){var e=ft[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function N(e){var r=e.texture,n=e.unit,i=e.target;0<=n&&(t.activeTexture(33984+n),t.bindTexture(i,null),ft[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete at[e.id],a.textureCount--}var F={"don't care":4352,"dont care":4352,nice:4354,fast:4353},B={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},U=Q({mipmap:9987,"nearest mipmap nearest":9984,"linear mipmap nearest":9985,"nearest mipmap linear":9986,"linear mipmap linear":9987},j),V={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,"rgb5 a1":32820},q={alpha:6406,luminance:6409,"luminance alpha":6410,rgb:6407,rgba:6408,rgba4:32854,"rgb5 a1":32855,rgb565:36194},G={};e.ext_srgb&&(q.srgb=35904,q.srgba=35906),e.oes_texture_float&&(H.float32=H.float=5126),e.oes_texture_half_float&&(H.float16=H["half float"]=36193),e.webgl_depth_texture&&(Q(q,{depth:6402,"depth stencil":34041}),Q(H,{uint16:5123,uint32:5125,"depth stencil":34042})),e.webgl_compressed_texture_s3tc&&Q(G,{"rgb s3tc dxt1":33776,"rgba s3tc dxt1":33777,"rgba s3tc dxt3":33778,"rgba s3tc dxt5":33779}),e.webgl_compressed_texture_atc&&Q(G,{"rgb atc":35986,"rgba atc explicit alpha":35987,"rgba atc interpolated alpha":34798}),e.webgl_compressed_texture_pvrtc&&Q(G,{"rgb pvrtc 4bppv1":35840,"rgb pvrtc 2bppv1":35841,"rgba pvrtc 4bppv1":35842,"rgba pvrtc 2bppv1":35843}),e.webgl_compressed_texture_etc1&&(G["rgb etc1"]=36196);var W=Array.prototype.slice.call(t.getParameter(34467));Object.keys(G).forEach((function(t){var e=G[t];0<=W.indexOf(e)&&(q[t]=e)}));var Y=Object.keys(q);r.textureFormats=Y;var X=[];Object.keys(q).forEach((function(t){X[q[t]]=t}));var Z=[];Object.keys(H).forEach((function(t){Z[H[t]]=t}));var K=[];Object.keys(j).forEach((function(t){K[j[t]]=t}));var J=[];Object.keys(U).forEach((function(t){J[U[t]]=t}));var $=[];Object.keys(B).forEach((function(t){$[B[t]]=t}));var tt=Y.reduce((function(t,r){var n=q[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&&(35904===n||35906===n)?t[n]=n:32855===n||0<=r.indexOf("rgba")?t[n]=6408:t[n]=6407,t}),{}),et=[],rt=[],nt=0,at={},ut=r.maxTextureUnits,ft=Array(ut).map((function(){return null}));return Q(D.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0>e){for(var r=0;r<ut;++r){var n=ft[r];if(n){if(0<n.bindCount)continue;n.unit=-1}ft[r]=this,e=r;break}o.profile&&a.maxTextureUnits<e+1&&(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0>=--this.refCount&&N(this)}}),o.profile&&(a.getTotalTextureSize=function(){var t=0;return Object.keys(at).forEach((function(e){t+=at[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;L.call(r);var a=_();return"number"===typeof t?y(a,0|t,"number"===typeof e?0|e:0|t):t?(I(r,t),b(a,t)):y(a,1,1),r.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,l(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,R(i),x(a,3553),P(r,3553),z(),T(a),o.profile&&(i.stats.size=O(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=X[i.internalformat],n.type=Z[i.type],n.mag=K[r.magFilter],n.min=J[r.minFilter],n.wrapS=$[r.wrapS],n.wrapT=$[r.wrapT],n}var i=new D(3553);return at[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=g();return l(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width>>a)-e,o.height=o.height||(i.height>>a)-r,R(i),d(o,3553,e,r,a),z(),m(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&&s===i.height)return n;n.width=i.width=a,n.height=i.height=s,R(i);for(var l=0;i.mipmask>>l;++l){var c=a>>l,u=s>>l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return z(),o.profile&&(i.stats.size=O(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType="texture2d",n._texture=i,o.profile&&(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,u){function f(t,e,r,n,i,a){var s,u=h.texInfo;for(L.call(u),s=0;6>s;++s)v[s]=_();if("number"!==typeof t&&t){if("object"===typeof t)if(e)b(v[0],t),b(v[1],e),b(v[2],r),b(v[3],n),b(v[4],i),b(v[5],a);else if(I(u,t),c(h,t),"faces"in t)for(t=t.faces,s=0;6>s;++s)l(v[s],h),b(v[s],t[s]);else for(s=0;6>s;++s)b(v[s],t)}else for(t=0|t||1,s=0;6>s;++s)y(v[s],t,t);for(l(h,v[0]),h.mipmask=u.genMipmaps?(v[0].width<<1)-1:v[0].mipmask,h.internalformat=v[0].internalformat,f.width=v[0].width,f.height=v[0].height,R(h),s=0;6>s;++s)x(v[s],34069+s);for(P(u,34067),z(),o.profile&&(h.stats.size=O(h.internalformat,h.type,f.width,f.height,u.genMipmaps,!0)),f.format=X[h.internalformat],f.type=Z[h.type],f.mag=K[u.magFilter],f.min=J[u.minFilter],f.wrapS=$[u.wrapS],f.wrapT=$[u.wrapT],s=0;6>s;++s)T(v[s]);return f}var h=new D(34067);at[h.id]=h,a.cubeCount++;var v=Array(6);return f(e,r,n,i,s,u),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=g();return l(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width>>i)-r,a.height=a.height||(h.height>>i)-n,R(h),d(a,34069+t,r,n,i),z(),m(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,R(h);for(var r=0;6>r;++r)for(var n=0;h.mipmask>>n;++n)t.texImage2D(34069+r,n,h.format,e>>n,e>>n,0,h.format,h.type,null);return z(),o.profile&&(h.stats.size=O(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType="textureCube",f._texture=h,o.profile&&(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e<ut;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),ft[e]=null;st(at).forEach(N),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e<ut;++e){var r=ft[e];r&&(r.bindCount=0,r.unit=-1,ft[e]=null)}st(at).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32>r;++r)if(0!==(e.mipmask&1<<r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;6>n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);P(e.texInfo,e.target)}))},refresh:function(){for(var e=0;e<ut;++e){var r=ft[e];r&&(r.bindCount=0,r.unit=-1,ft[e]=null),t.activeTexture(33984+e),t.bindTexture(3553,null),t.bindTexture(34067,null)}}}}function I(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&&(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&&(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&&(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return"object"===typeof t&&(i=t.data,"target"in t&&(e=0|t.target)),"texture2d"===(t=i._reglType)||"textureCube"===t?r=i:"renderbuffer"===t&&(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function p(t){return t&&(t.texture||t.renderbuffer)}function d(t,e,r){t&&(t.texture?t.texture.resize(e,r):t.renderbuffer&&t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function h(){this.id=k++,T[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete T[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)c(36064+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,b.next?b.next.framebuffer:null),b.cur=b.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var d=!0,h="rgba",m="uint8",y=1,b=null,w=null,k=null,T=!1;"number"===typeof t?(a=0|t,o=0|e||a):t?("shape"in t?(a=(o=t.shape)[0],o=o[1]):("radius"in t&&(a=o=t.radius),"width"in t&&(a=t.width),"height"in t&&(o=t.height)),("color"in t||"colors"in t)&&(i=t.color||t.colors,Array.isArray(i)),i||("colorCount"in t&&(y=0|t.colorCount),"colorTexture"in t&&(d=!!t.colorTexture,h="rgba4"),"colorType"in t&&(m=t.colorType,!d)&&("half float"===m||"float16"===m?h="rgba16f":"float"!==m&&"float32"!==m||(h="rgba32f")),"colorFormat"in t&&(h=t.colorFormat,0<=x.indexOf(h)?d=!0:0<=_.indexOf(h)&&(d=!1))),("depthTexture"in t||"depthStencilTexture"in t)&&(T=!(!t.depthTexture&&!t.depthStencilTexture)),"depth"in t&&("boolean"===typeof t.depth?s=t.depth:(b=t.depth,c=!1)),"stencil"in t&&("boolean"===typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),"depthStencil"in t&&("boolean"===typeof t.depthStencil?s=c=t.depthStencil:(k=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i<y;++i)M[i]=f(a,o,d,h,m);for(a=a||M[0].width,o=o||M[0].height,b?A=u(b):s&&!c&&(A=f(a,o,T,"depth","uint32")),w?S=u(w):c&&!s&&(S=f(a,o,!1,"stencil","uint8")),k?E=u(k):!b&&!w&&c&&s&&(E=f(a,o,T,"depth stencil","depth stencil")),s=null,i=0;i<M.length;++i)l(M[i],a,o),M[i]&&M[i].texture&&(c=It[M[i].texture._texture.format]*Pt[M[i].texture._texture.type],null===s&&(s=c));return l(A,a,o),l(S,a,o),l(E,a,o),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(p),r.depth=p(A),r.stencil=p(S),r.depthStencil=p(E),r.width=n.width,r.height=n.height,v(n),r}var n=new h;return a.framebufferCount++,r(t,e),Q(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&&a===n.height)return r;for(var o=n.colorAttachments,s=0;s<o.length;++s)d(o[s],i,a);return d(n.depthAttachment,i,a),d(n.stencilAttachment,i,a),d(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:"framebuffer",_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){b.setFBO({framebuffer:r},t)}})}var b={cur:null,next:null,dirty:!1,setFBO:null},x=["rgba"],_=["rgba4","rgb565","rgb5 a1"];e.ext_srgb&&_.push("srgba"),e.ext_color_buffer_half_float&&_.push("rgba16f","rgb16f"),e.webgl_color_buffer_float&&_.push("rgba32f");var w=["uint8"];e.oes_texture_half_float&&w.push("half float","float16"),e.oes_texture_float&&w.push("float","float32");var k=0,T={};return Q(b,{getFramebuffer:function(t){return"function"===typeof t&&"framebuffer"===t._reglType&&(t=t._framebuffer)instanceof h?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i="rgba";var l="uint8",c=1;if("number"===typeof t?o=0|t:t?("shape"in t?o=t.shape[0]:("radius"in t&&(o=0|t.radius),"width"in t?o=0|t.width:"height"in t&&(o=0|t.height)),("color"in t||"colors"in t)&&(s=t.color||t.colors,Array.isArray(s)),s||("colorCount"in t&&(c=0|t.colorCount),"colorType"in t&&(l=t.colorType),"colorFormat"in t&&(i=t.colorFormat)),"depth"in t&&(a.depth=t.depth),"stencil"in t&&(a.stencil=t.stencil),"depthStencil"in t&&(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i<s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i<c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i<t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6>i;++i){for(c=0;c<t.length;++c)a.color[c].target=34069+i;0<i&&(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return Q(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),Q(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t<i.length;++t)i[t].resize(n);for(t=0;6>t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:"framebufferCube",destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){st(T).forEach(m)},restore:function(){b.cur=null,b.next=null,b.dirty=!0,st(T).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function P(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function D(t,e,r,n,i,a,o){function s(t){if(t!==v.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),v.currentVAO=t}}function l(r){if(r!==v.currentVAO){if(r)r.bindAttrs();else{for(var n=e.angle_instanced_arrays,i=0;i<d.length;++i){var a=d[i];a.buffer?(t.enableVertexAttribArray(i),a.buffer.bind(),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&&a.divisor&&n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}o.elements?t.bindBuffer(34963,o.elements.buffer.buffer):t.bindBuffer(34963,null)}v.currentVAO=r}}function c(){st(m).forEach((function(t){t.destroy()}))}function u(){this.id=++g,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,m[this.id]=this,this.buffers=[]}function f(){e.oes_vertex_array_object&&st(m).forEach((function(t){t.refresh()}))}var p=r.maxAttributes,d=Array(p);for(r=0;r<p;++r)d[r]=new P;var g=0,m={},v={Record:P,scope:{},state:d,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?f:function(){},createVAO:function(t){function e(t){var n;Array.isArray(t)?(n=t,r.elements&&r.ownsElements&&r.elements.destroy(),r.elements=null,r.ownsElements=!1,r.offset=0,r.count=0,r.instances=-1,r.primitive=4):(t.elements?(n=t.elements,r.ownsElements?("function"===typeof n&&"elements"===n._reglType?r.elements.destroy():r.elements(n),r.ownsElements=!1):a.getElements(t.elements)?(r.elements=t.elements,r.ownsElements=!1):(r.elements=a.create(t.elements),r.ownsElements=!0)):(r.elements=null,r.ownsElements=!1),n=t.attributes,r.offset=0,r.count=-1,r.instances=-1,r.primitive=4,r.elements&&(r.count=r.elements._elements.vertCount,r.primitive=r.elements._elements.primType),"offset"in t&&(r.offset=0|t.offset),"count"in t&&(r.count=0|t.count),"instances"in t&&(r.instances=0|t.instances),"primitive"in t&&(r.primitive=gt[t.primitive])),t={};var o=r.attributes;o.length=n.length;for(var s=0;s<n.length;++s){var l,c=n[s],u=o[s]=new P,f=c.data||c;Array.isArray(f)||ot(f)||h(f)?(r.buffers[s]&&(l=r.buffers[s],ot(f)&&l._buffer.byteLength>=f.byteLength?l.subdata(f):(l.destroy(),r.buffers[s]=null)),r.buffers[s]||(l=r.buffers[s]=i.create(c,34962,!1,!0)),u.buffer=i.getBuffer(l),u.size=0|u.buffer.dimension,u.normalized=!1,u.type=u.buffer.dtype,u.offset=0,u.stride=0,u.divisor=0,u.state=1,t[s]=1):i.getBuffer(c)?(u.buffer=i.getBuffer(c),u.size=0|u.buffer.dimension,u.normalized=!1,u.type=u.buffer.dtype,u.offset=0,u.stride=0,u.divisor=0,u.state=1):i.getBuffer(c.buffer)?(u.buffer=i.getBuffer(c.buffer),u.size=0|(+c.size||u.buffer.dimension),u.normalized=!!c.normalized||!1,u.type="type"in c?ut[c.type]:u.buffer.dtype,u.offset=0|(c.offset||0),u.stride=0|(c.stride||0),u.divisor=0|(c.divisor||0),u.state=1):"x"in c&&(u.x=+c.x||0,u.y=+c.y||0,u.z=+c.z||0,u.w=+c.w||0,u.state=2)}for(l=0;l<r.buffers.length;++l)!t[l]&&r.buffers[l]&&(r.buffers[l].destroy(),r.buffers[l]=null);return r.refresh(),e}var r=new u;return n.vaoCount+=1,e.destroy=function(){for(var t=0;t<r.buffers.length;++t)r.buffers[t]&&r.buffers[t].destroy();r.buffers.length=0,r.ownsElements&&(r.elements.destroy(),r.elements=null,r.ownsElements=!1),r.destroy()},e._vao=r,e._reglType="vao",e(t)},getVAO:function(t){return"function"===typeof t&&t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r<d.length;++r){var n=d[r];n.buffer===e&&(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?s:l,clear:e.oes_vertex_array_object?c:function(){}};return u.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i<n.length;++i){var o=n[i];o.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,o.buffer.buffer),t.vertexAttribPointer(i,o.size,o.type,o.normalized,o.stride,o.offset),r&&o.divisor&&r.vertexAttribDivisorANGLE(i,o.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,o.x,o.y,o.z,o.w))}for(r=n.length;r<p;++r)t.disableVertexAttribArray(r);(r=a.getElements(this.elements))?t.bindBuffer(34963,r.buffer.buffer):t.bindBuffer(34963,null)},u.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&&(t.bindVertexArrayOES(this.vao),this.bindAttrs(),v.currentVAO=null,t.bindVertexArrayOES(null))},u.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===v.currentVAO&&(v.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),m[this.id]&&(delete m[this.id],--n.vaoCount)},v}function R(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r<t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=d++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,n.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c<l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&&(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c<u;++c)if(l=t.getActiveUniform(s,c))if(1<l.size)for(var p=0;p<l.size;++p){var d=l.name.replace("[0]","["+p+"]");a(f,new i(d,e.id(d),t.getUniformLocation(s,d),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&&(r.stats.attributesCount=u),r=r.attributes,c=0;c<u;++c)(l=t.getActiveAttrib(s,c))&&a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},p=[],d=0;return n.profile&&(r.getMaxUniformsCount=function(){var t=0;return p.forEach((function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return p.forEach((function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);st(c).forEach(e),c={},st(u).forEach(e),u={},p.forEach((function(e){t.deleteProgram(e.program)})),p.length=0,f={},r.shaderCount=0},program:function(e,n,i,a){var o=f[n];o||(o=f[n]={});var d=o[e];if(d&&(d.refCount++,!a))return d;var h=new s(n,e);return r.shaderCount++,l(h,i,a),d||(o[e]=h),p.push(h),Q(h,{destroy:function(){if(h.refCount--,0>=h.refCount){t.deleteProgram(h.program);var e=p.indexOf(h);p.splice(e,1),r.shaderCount--}0>=o[h.vertId].refCount&&(t.deleteShader(u[h.vertId]),delete u[h.vertId],delete f[h.fragId][h.vertId]),Object.keys(f[h.fragId]).length||(t.deleteShader(c[h.fragId]),delete c[h.fragId],delete f[h.fragId])}})},restore:function(){c={},u={};for(var t=0;t<p.length;++t)l(p[t],null,p[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function z(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return ot(i)?u=i:i&&(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&&(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}function l(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}return function(t){return t&&"framebuffer"in t?l(t):s(t)}}function N(t){for(var e=Array(t.length>>2),r=0;r<e.length;r++)e[r]=0;for(r=0;r<8*t.length;r+=8)e[r>>5]|=(255&t.charCodeAt(r/8))<<24-r%32;var n,i,a,o,s,l,c,u,f,p,d,h=8*t.length;for(t=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],r=Array(64),e[h>>5]|=128<<24-h%32,e[15+(h+64>>9<<4)]=h,u=0;u<e.length;u+=16){for(h=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],f=0;64>f;f++){var g;16>f?r[f]=e[f+u]:(p=f,d=U(d=j(d=r[f-2],17)^j(d,19)^d>>>10,r[f-7]),g=j(g=r[f-15],7)^j(g,18)^g>>>3,r[p]=U(U(d,g),r[f-16])),p=U(U(U(U(c,p=j(p=o,6)^j(p,11)^j(p,25)),o&s^~o&l),Dt[f]),r[f]),d=U(c=j(c=h,2)^j(c,13)^j(c,22),h&n^h&i^n&i),c=l,l=s,s=o,o=U(a,p),a=i,i=n,n=h,h=U(p,d)}t[0]=U(h,t[0]),t[1]=U(n,t[1]),t[2]=U(i,t[2]),t[3]=U(a,t[3]),t[4]=U(o,t[4]),t[5]=U(s,t[5]),t[6]=U(l,t[6]),t[7]=U(c,t[7])}for(e="",r=0;r<32*t.length;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}function F(t){for(var e,r="",n=0;n<t.length;n++)e=t.charCodeAt(n),r+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return r}function B(t){for(var e,r,n="",i=-1;++i<t.length;)e=t.charCodeAt(i),r=i+1<t.length?t.charCodeAt(i+1):0,55296<=e&&56319>=e&&56320<=r&&57343>=r&&(e=65536+((1023&e)<<10)+(1023&r),i++),127>=e?n+=String.fromCharCode(e):2047>=e?n+=String.fromCharCode(192|e>>>6&31,128|63&e):65535>=e?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):2097151>=e&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function j(t,e){return t>>>e|t<<32-e}function U(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function V(t){return Array.prototype.slice.call(t)}function H(t){return V(t).join("")}function q(t){function e(){var t=[],e=[];return Q((function(){t.push.apply(t,V(arguments))}),{def:function(){var r="v"+i++;return e.push(r),0<arguments.length&&(t.push(r,"="),t.push.apply(t,V(arguments)),t.push(";")),r},toString:function(){return H([0<e.length?"var "+e.join(",")+";":"",H(t)])}})}function r(){function t(t,e){n(t,e,"=",r.def(t,e),";")}var r=e(),n=e(),i=r.toString,a=n.toString;return Q((function(){r.apply(r,V(arguments))}),{def:r.def,entry:r,exit:n,save:t,set:function(e,n,i){t(e,n),r(e,n,"=",i,";")},toString:function(){return i()+a()}})}var n=t&&t.cache,i=0,a=[],o=[],s=[],l=e(),c={};return{global:l,link:function(t,e){var r=e&&e.stable;if(!r)for(var n=0;n<o.length;++n)if(o[n]===t&&!s[n])return a[n];return n="g"+i++,a.push(n),o.push(t),s.push(r),n},block:e,proc:function(t,e){function n(){var t="a"+i.length;return i.push(t),t}var i=[];e=e||0;for(var a=0;a<e;++a)n();var o=(a=r()).toString;return c[t]=Q(a,{arg:n,toString:function(){return H(["function(",i.join(),"){",o(),"}"])}})},scope:r,cond:function(){var t=H(arguments),e=r(),n=r(),i=e.toString,a=n.toString;return Q(e,{then:function(){return e.apply(e,V(arguments)),this},else:function(){return n.apply(n,V(arguments)),this},toString:function(){var e=a();return e&&(e="else{"+e+"}"),H(["if(",t,"){",i(),"}",e])}})},compile:function(){var t=['"use strict";',l,"return {"];Object.keys(c).forEach((function(e){t.push('"',e,'":',c[e].toString(),",")})),t.push("}");var e,r=H(t).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");return n&&(e=F(N(B(r))),n[e])?n[e].apply(null,o):(r=Function.apply(null,a.concat(r)),n&&(n[e]=r),r.apply(null,o))}}}function G(t){return Array.isArray(t)||ot(t)||h(t)}function W(t){return t.sort((function(t,e){return"viewport"===t?-1:"viewport"===e?1:t<e?-1:1}))}function Y(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function X(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function Z(t){return new Y(!1,!1,!1,t)}function K(t,e){var r=t.type;if(0===r)return new Y(!0,1<=(r=t.data.length),2<=r,e);if(4===r)return new Y((r=t.data).thisDep,r.contextDep,r.propDep,e);if(5===r)return new Y(!1,!1,!1,e);if(6===r){for(var n=r=!1,i=!1,a=0;a<t.data.length;++a){var o=t.data[a];1===o.type?i=!0:2===o.type?n=!0:3===o.type?r=!0:0===o.type?(r=!0,1<=(o=o.data)&&(n=!0),2<=o&&(i=!0)):4===o.type&&(r=r||o.data.thisDep,n=n||o.data.contextDep,i=i||o.data.propDep)}return new Y(r,n,i,e)}return new Y(3===r,2===r,1===r,e)}function J(t,e,r,n,i,a,o,s,l,c,u,p,d,h,g,m){function v(t){return t.replace(".","_")}function y(t,e,r){var n=v(t);ht.push(t),dt[n]=pt[n]=!!r,mt[n]=e}function b(t,e,r){var n=v(t);ht.push(t),Array.isArray(r)?(pt[n]=r.slice(),dt[n]=r.slice()):pt[n]=dt[n]=r,vt[n]=e}function x(){var t=q({cache:g}),r=t.link,n=t.global;t.id=xt++,t.batchId="0";var i=r(yt),a=t.shared={props:"a0"};Object.keys(yt).forEach((function(t){a[t]=n.def(i,".",t)}));var o=t.next={},s=t.current={};Object.keys(vt).forEach((function(t){Array.isArray(pt[t])&&(o[t]=n.def(a.next,".",t),s[t]=n.def(a.current,".",t))}));var l=t.constants={};Object.keys(bt).forEach((function(t){l[t]=n.def(JSON.stringify(bt[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=["this",a.context,a.props,t.batchId];return e.def(r(n.data),".call(",i.slice(0,Math.max(n.data.length+1,4)),")");case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def("this",n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map((function(r){return t.invoke(e,r)}))}},t.attribCache={};var u={};return t.scopeAttrib=function(t){if((t=e.id(t))in u)return u[t];var n=c.scope[t];return n||(n=c.scope[t]=new ot),u[t]=r(n)},t}function _(t){var e,r=t.static;if(t=t.dynamic,"profile"in r){var n=!!r.profile;(e=Z((function(t,e){return n}))).enable=n}else if("profile"in t){var i=t.profile;e=K(i,(function(t,e){return t.invoke(e,i)}))}return e}function w(t,e){var r=t.static,n=t.dynamic;if("framebuffer"in r){var i=r.framebuffer;return i?(i=s.getFramebuffer(i),Z((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,".next",r),n=n.context,e.set(n,".framebufferWidth",r+".width"),e.set(n,".framebufferHeight",r+".height"),r}))):Z((function(t,e){var r=t.shared;return e.set(r.framebuffer,".next","null"),r=r.context,e.set(r,".framebufferWidth",r+".drawingBufferWidth"),e.set(r,".framebufferHeight",r+".drawingBufferHeight"),"null"}))}if("framebuffer"in n){var a=n.framebuffer;return K(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;return r=e.def(i,".getFramebuffer(",r,")"),e.set(i,".next",r),n=n.context,e.set(n,".framebufferWidth",r+"?"+r+".width:"+n+".drawingBufferWidth"),e.set(n,".framebufferHeight",r+"?"+r+".height:"+n+".drawingBufferHeight"),r}))}return null}function T(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return"width"in r?n=0|r.width:t=!1,"height"in r?o=0|r.height:t=!1,new Y(!t&&e&&e.thisDep,!t&&e&&e.contextDep,!t&&e&&e.propDep,(function(t,e){var i=t.shared.context,a=n;"width"in r||(a=e.def(i,".","framebufferWidth","-",s));var c=o;return"height"in r||(c=e.def(i,".","framebufferHeight","-",l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=K(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,".x|0"),a=e.def(r,".y|0");return[i,a,e.def('"width" in ',r,"?",r,".width|0:","(",n,".","framebufferWidth","-",i,")"),r=e.def('"height" in ',r,"?",r,".height|0:","(",n,".","framebufferHeight","-",a,")")]})),e&&(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new Y(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,".","framebufferWidth"),e.def(r,".","framebufferHeight")]})):null}var i=t.static,a=t.dynamic;if(t=n("viewport")){var o=t;t=new Y(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,".viewportWidth",r[2]),e.set(n,".viewportHeight",r[3]),r}))}return{viewport:t,scissor_box:n("scissor.box")}}function M(t,e){if("string"===typeof(r=t.static).frag&&"string"===typeof r.vert){if(0<Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0<n.length&&"number"===typeof r[n[0]]){for(var i=[],a=0;a<n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}function A(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=Z((function(){return r}))).id=r,t}if(t in o){var n=o[t];return K(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,".id(",r,")")}))}return null}var a=t.static,o=t.dynamic,s=i("frag"),l=i("vert"),c=null;return X(s)&&X(l)?(c=u.program(l.id,s.id,null,n),t=Z((function(t,e){return t.link(c)}))):t=new Y(s&&s.thisDep||l&&l.thisDep,s&&s.contextDep||l&&l.contextDep,s&&s.propDep||l&&l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,".","frag"),n=l?l.append(t,e):e.def(i,".","vert"),e.def(i+".program("+n+","+r+")")})),{frag:s,vert:l,progVar:t,program:c}}function S(t,e){function r(t,e){if(t in n){var r=0|n[t];return e?o.offset=r:o.instances=r,Z((function(t,n){return e&&(t.OFFSET=r),r}))}if(t in i){var a=i[t];return K(a,(function(t,r){var n=t.invoke(r,a);return e&&(t.OFFSET=n),n}))}if(e){if(u)return Z((function(t,e){return t.OFFSET=0}));if(s)return new Y(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+".currentVAO?"+t.shared.vao+".currentVAO.offset:0")}))}else if(s)return new Y(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+".currentVAO?"+t.shared.vao+".currentVAO.instances:-1")}));return null}var n=t.static,i=t.dynamic,o={},s=!1,l=function(){if("vao"in n){var t=n.vao;return null!==t&&null===c.getVAO(t)&&(t=c.createVAO(t)),s=!0,o.vao=t,Z((function(e){var r=c.getVAO(t);return r?e.link(r):"null"}))}if("vao"in i){s=!0;var e=i.vao;return K(e,(function(t,r){var n=t.invoke(r,e);return r.def(t.shared.vao+".getVAO("+n+")")}))}return null}(),u=!1,f=function(){if("elements"in n){var t=n.elements;if(o.elements=t,G(t)){var e=o.elements=a.create(t,!0);t=a.getElements(e),u=!0}else t&&(t=a.getElements(t),u=!0);return e=Z((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null})),e.value=t,e}if("elements"in i){u=!0;var r=i.elements;return K(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def("null");return n=e.def(n,"(",a,")"),a=t.cond(n).then(o,"=",i,".createStream(",a,");").else(o,"=",i,".getElements(",a,");"),e.entry(a),e.exit(t.cond(n).then(i,".destroyStream(",o,");")),t.ELEMENTS=o}))}return s?new Y(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+".currentVAO?"+t.shared.elements+".getElements("+t.shared.vao+".currentVAO.elements):null")})):null}(),p=r("offset",!0),d=function(){if("primitive"in n){var t=n.primitive;return o.primitive=t,Z((function(e,r){return gt[t]}))}if("primitive"in i){var e=i.primitive;return K(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,"[",i,"]")}))}return u?X(f)?f.value?Z((function(t,e){return e.def(t.ELEMENTS,".primType")})):Z((function(){return 4})):new Y(f.thisDep,f.contextDep,f.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,"?",r,".primType:",4)})):s?new Y(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+".currentVAO?"+t.shared.vao+".currentVAO.primitive:4")})):null}(),h=function(){if("count"in n){var t=0|n.count;return o.count=t,Z((function(){return t}))}if("count"in i){var e=i.count;return K(e,(function(t,r){return t.invoke(r,e)}))}return u?X(f)?f?p?new Y(p.thisDep,p.contextDep,p.propDep,(function(t,e){return e.def(t.ELEMENTS,".vertCount-",t.OFFSET)})):Z((function(t,e){return e.def(t.ELEMENTS,".vertCount")})):Z((function(){return-1})):new Y(f.thisDep||p.thisDep,f.contextDep||p.contextDep,f.propDep||p.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,"?",r,".vertCount-",t.OFFSET,":-1"):e.def(r,"?",r,".vertCount:-1")})):s?new Y(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao,".currentVAO?",t.shared.vao,".currentVAO.count:-1")})):null}(),g=r("instances",!1);return{elements:f,primitive:d,count:h,instances:g,offset:p,vao:l,vaoActive:s,elementsActive:u,static:o}}function E(t,e){var r=t.static,n=t.dynamic,i={};return ht.forEach((function(t){function e(e,o){if(t in r){var s=e(r[t]);i[a]=Z((function(){return s}))}else if(t in n){var l=n[t];i[a]=K(l,(function(t,e){return o(t,e,t.invoke(e,l))}))}}var a=v(t);switch(t){case"cull.enable":case"blend.enable":case"dither":case"stencil.enable":case"depth.enable":case"scissor.enable":case"polygonOffset.enable":case"sample.alpha":case"sample.enable":case"depth.mask":case"lineWidth":return e((function(t){return t}),(function(t,e,r){return r}));case"depth.func":return e((function(t){return Ft[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,"[",r,"]")}));case"depth.range":return e((function(t){return t}),(function(t,e,r){return[e.def("+",r,"[0]"),e=e.def("+",r,"[1]")]}));case"blend.func":return e((function(t){return[Nt["srcRGB"in t?t.srcRGB:t.src],Nt["dstRGB"in t?t.dstRGB:t.dst],Nt["srcAlpha"in t?t.srcAlpha:t.src],Nt["dstAlpha"in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('"',t,n,'" in ',r,"?",r,".",t,n,":",r,".",t)}t=t.constants.blendFuncs;var i=n("src","RGB"),a=n("dst","RGB"),o=(i=e.def(t,"[",i,"]"),e.def(t,"[",n("src","Alpha"),"]"));return[i,a=e.def(t,"[",a,"]"),o,t=e.def(t,"[",n("dst","Alpha"),"]")]}));case"blend.equation":return e((function(t){return"string"===typeof t?[st[t],st[t]]:"object"===typeof t?[st[t.rgb],st[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond("typeof ",r,'==="string"')).then(i,"=",a,"=",n,"[",r,"];"),t.else(i,"=",n,"[",r,".rgb];",a,"=",n,"[",r,".alpha];"),e(t),[i,a]}));case"blend.color":return e((function(t){return f(4,(function(e){return+t[e]}))}),(function(t,e,r){return f(4,(function(t){return e.def("+",r,"[",t,"]")}))}));case"stencil.mask":return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,"|0")}));case"stencil.func":return e((function(t){return[Ft[t.cmp||"keep"],t.ref||0,"mask"in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('"cmp" in ',r,"?",t.constants.compareFuncs,"[",r,".cmp]",":",7680),e.def(r,".ref|0"),e=e.def('"mask" in ',r,"?",r,".mask|0:-1")]}));case"stencil.opFront":case"stencil.opBack":return e((function(e){return["stencil.opBack"===t?1029:1028,Bt[e.fail||"keep"],Bt[e.zfail||"keep"],Bt[e.zpass||"keep"]]}),(function(e,r,n){function i(t){return r.def('"',t,'" in ',n,"?",a,"[",n,".",t,"]:",7680)}var a=e.constants.stencilOps;return["stencil.opBack"===t?1029:1028,i("fail"),i("zfail"),i("zpass")]}));case"polygonOffset.offset":return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,".factor|0"),e=e.def(r,".units|0")]}));case"cull.face":return e((function(t){var e=0;return"front"===t?e=1028:"back"===t&&(e=1029),e}),(function(t,e,r){return e.def(r,'==="front"?',1028,":",1029)}));case"frontFace":return e((function(t){return jt[t]}),(function(t,e,r){return e.def(r+'==="cw"?2304:2305')}));case"colorMask":return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return f(4,(function(t){return"!!"+r+"["+t+"]"}))}));case"sample.coverage":return e((function(t){return["value"in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('"value" in ',r,"?+",r,".value:1"),e=e.def("!!",r,".invert")]}))}})),i}function C(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if("number"===typeof n||"boolean"===typeof n)e=Z((function(){return n}));else if("function"===typeof n){var a=n._reglType;"texture2d"===a||"textureCube"===a?e=Z((function(t){return t.link(n)})):"framebuffer"!==a&&"framebufferCube"!==a||(e=Z((function(t){return t.link(n.color[0])})))}else k(n)&&(e=Z((function(t){return t.global.def("[",f(n.length,(function(t){return n[t]})),"]")})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=K(e,(function(t,r){return t.invoke(r,e)}))})),i}function O(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new ot;if(G(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if("constant"in r){var l=r.constant;s.buffer="null",s.state=2,"number"===typeof l?s.x=l:Rt.forEach((function(t,e){e<l.length&&(s[t]=l[e])}))}else{var c=G(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,p=0|r.size,d=!!r.normalized,h=0;"type"in r&&(h=ut[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=p,s.normalized=d,s.type=h||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=Z((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&&(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+".dtype"),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=K(e,(function(t,r){function n(t){r(l[t],"=",i,".",t,"|0;")}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new ot;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(""+c[t])}));var u=l.buffer,f=l.type;return r("if(",s,"(",i,")){",l.isStream,"=true;",u,"=",a,".createStream(",34962,",",i,");",f,"=",u,".dtype;","}else{",u,"=",a,".getBuffer(",i,");","if(",u,"){",f,"=",u,".dtype;",'}else if("constant" in ',i,"){",l.state,"=",2,";","if(typeof "+i+'.constant === "number"){',l[Rt[0]],"=",i,".constant;",Rt.slice(1).map((function(t){return l[t]})).join("="),"=0;","}else{",Rt.map((function(t,e){return l[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;"})).join(""),"}}else{","if(",s,"(",i,".buffer)){",u,"=",a,".createStream(",34962,",",i,".buffer);","}else{",u,"=",a,".getBuffer(",i,".buffer);","}",f,'="type" in ',i,"?",o.glTypes,"[",i,".type]:",u,".dtype;",l.normalized,"=!!",i,".normalized;"),n("size"),n("offset"),n("stride"),n("divisor"),r("}}"),r.exit("if(",l.isStream,"){",a,".destroyStream(",u,");","}"),l}))})),o}function L(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=Z((function(t,e){return"number"===typeof r||"boolean"===typeof r?""+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=K(e,(function(t,r){return t.invoke(r,e)}))})),n}function I(t,e,n,i,a){function o(t){var e=l[t];e&&(f[t]=e)}var s=M(t,e),l=T(t,d=w(t,a),a),u=S(t,a),f=E(t,a),p=A(t,a,s);o("viewport"),o(v("scissor.box"));var d,h=0<Object.keys(f).length;if((d={framebuffer:d,draw:u,shader:p,state:f,dirty:h,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=_(t,a),d.uniforms=C(n,a),d.drawVAO=d.scopeVAO=u.vao,!d.drawVAO&&p.program&&!s&&r.angle_instanced_arrays&&u.static.elements){var g=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],g=g&&!!t,t})),g&&0<t.length){var m=c.getVAO(c.createVAO({attributes:t,elements:u.static.elements}));d.drawVAO=new Y(null,null,null,(function(t,e){return t.link(m)})),d.useVAO=!0}}return s?d.useVAO=!0:d.attributes=O(e,a),d.context=L(i,a),d}function P(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,"."+a);var o=r[a].append(t,e);Array.isArray(o)?i(n,".",a,"=[",o.join(),"];"):i(n,".",a,"=",o,";")})),e(i)}function D(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;ct&&(i=e.def(s.extensions,".webgl_draw_buffers"));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,".next"),n||e("if(",t,"!==",o,".cur){"),e("if(",t,"){",a,".bindFramebuffer(",36160,",",t,".framebuffer);"),ct&&e(i,".drawBuffersWEBGL(",s,"[",t,".colorAttachments.length]);"),e("}else{",a,".bindFramebuffer(",36160,",null);"),ct&&e(i,".drawBuffersWEBGL(",l,");"),e("}",o,".cur=",t,";"),n||e("}")}function R(t,e,r){var n=t.shared,i=n.gl,a=t.current,o=t.next,s=n.current,l=n.next,c=t.cond(s,".dirty");ht.forEach((function(e){var n,u;if(!((e=v(e))in r.state))if(e in o){n=o[e],u=a[e];var p=f(pt[e].length,(function(t){return c.def(n,"[",t,"]")}));c(t.cond(p.map((function(t,e){return t+"!=="+u+"["+e+"]"})).join("||")).then(i,".",vt[e],"(",p,");",p.map((function(t,e){return u+"["+e+"]="+t})).join(";"),";"))}else n=c.def(l,".",e),p=t.cond(n,"!==",s,".",e),c(p),e in mt?p(t.cond(n).then(i,".enable(",mt[e],");").else(i,".disable(",mt[e],");"),s,".",e,"=",n,";"):p(i,".",vt[e],"(",n,");",s,".",e,"=",n,";")})),0===Object.keys(r.state).length&&c(s,".dirty=false;"),e(c)}function z(t,e,r,n){var i,a=t.shared,o=t.current,s=a.current,l=a.gl;W(Object.keys(r)).forEach((function(a){var c=r[a];if(!n||n(c)){var u=c.append(t,e);if(mt[a]){var f=mt[a];X(c)?(i=t.link(u,{stable:!0}),e(t.cond(i).then(l,".enable(",f,");").else(l,".disable(",f,");")),e(s,".",a,"=",i,";")):(e(t.cond(u).then(l,".enable(",f,");").else(l,".disable(",f,");")),e(s,".",a,"=",u,";"))}else if(k(u)){var p=o[a];e(l,".",vt[a],"(",u,");",u.map((function(t,e){return p+"["+e+"]="+t})).join(";"),";")}else X(c)?(i=t.link(u,{stable:!0}),e(l,".",vt[a],"(",i,");",s,".",a,"=",i,";")):e(l,".",vt[a],"(",u,");",s,".",a,"=",u,";")}}))}function N(t,e){lt&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"))}function F(t,e,r,n,i){function a(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function o(t){t(c=e.def(),"=",a(),";"),"string"===typeof i?t(p,".count+=",i,";"):t(p,".count++;"),h&&(n?t(u=e.def(),"=",g,".getNumPendingQueries();"):t(g,".beginQuery(",p,");"))}function s(t){t(p,".cpuTime+=",a(),"-",c,";"),h&&(n?t(g,".pushScopeStats(",u,",",g,".getNumPendingQueries(),",p,");"):t(g,".endQuery();"))}function l(t){var r=e.def(d,".profile");e(d,".profile=",t,";"),e.exit(d,".profile=",r,";")}var c,u,f=t.shared,p=t.stats,d=f.current,g=f.timer;if(r=r.profile){if(X(r))return void(r.enable?(o(e),s(e.exit),l("true")):l("false"));l(r=r.append(t,e))}else r=e.def(d,".profile");o(f=t.block()),e("if(",r,"){",f,"}"),s(t=t.block()),e.exit("if(",r,"){",t,"}")}function B(t,e,r,n,i){function a(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function o(r,n,i){function a(){e("if(!",u,".buffer){",l,".enableVertexAttribArray(",c,");}");var r,a=i.type;r=i.size?e.def(i.size,"||",n):n,e("if(",u,".type!==",a,"||",u,".size!==",r,"||",d.map((function(t){return u+"."+t+"!=="+i[t]})).join("||"),"){",l,".bindBuffer(",34962,",",f,".buffer);",l,".vertexAttribPointer(",[c,r,a,i.normalized,i.stride,i.offset],");",u,".type=",a,";",u,".size=",r,";",d.map((function(t){return u+"."+t+"="+i[t]+";"})).join(""),"}"),lt&&(a=i.divisor,e("if(",u,".divisor!==",a,"){",t.instancing,".vertexAttribDivisorANGLE(",[c,a],");",u,".divisor=",a,";}"))}function o(){e("if(",u,".buffer){",l,".disableVertexAttribArray(",c,");",u,".buffer=null;","}if(",Rt.map((function(t,e){return u+"."+t+"!=="+p[e]})).join("||"),"){",l,".vertexAttrib4f(",c,",",p,");",Rt.map((function(t,e){return u+"."+t+"="+p[e]+";"})).join(""),"}")}var l=s.gl,c=e.def(r,".location"),u=e.def(s.attributes,"[",c,"]");r=i.state;var f=i.buffer,p=[i.x,i.y,i.z,i.w],d=["buffer","normalized","offset","stride"];1===r?a():2===r?o():(e("if(",r,"===",1,"){"),a(),e("}else{"),o(),e("}"))}var s=t.shared;n.forEach((function(n){var s,l=n.name,c=r.attributes[l];if(c){if(!i(c))return;s=c.append(t,e)}else{if(!i(Ut))return;var u=t.scopeAttrib(l);s={},Object.keys(new ot).forEach((function(t){s[t]=e.def(u,".",t)}))}o(t.link(n),a(n.info.type),s)}))}function j(t,r,n,i,a,o){for(var s,l=t.shared,c=l.gl,u=0;u<i.length;++u){var p,d=(m=i[u]).name,h=m.info.type,g=n.uniforms[d],m=t.link(m)+".location";if(g){if(!a(g))continue;if(X(g)){if(d=g.value,35678===h||35680===h)r(c,".uniform1i(",m,",",(h=t.link(d._texture||d.color[0]._texture))+".bind());"),r.exit(h,".unbind();");else if(35674===h||35675===h||35676===h)g=2,35675===h?g=3:35676===h&&(g=4),r(c,".uniformMatrix",g,"fv(",m,",false,",d=t.global.def("new Float32Array(["+Array.prototype.slice.call(d)+"])"),");");else{switch(h){case 5126:s="1f";break;case 35664:s="2f";break;case 35665:s="3f";break;case 35666:s="4f";break;case 35670:case 5124:s="1i";break;case 35671:case 35667:s="2i";break;case 35672:case 35668:s="3i";break;case 35673:case 35669:s="4i"}r(c,".uniform",s,"(",m,",",k(d)?Array.prototype.slice.call(d):d,");")}continue}p=g.append(t,r)}else{if(!a(Ut))continue;p=r.def(l.uniforms,"[",e.id(d),"]")}switch(35678===h?r("if(",p,"&&",p,'._reglType==="framebuffer"){',p,"=",p,".color[0];","}"):35680===h&&r("if(",p,"&&",p,'._reglType==="framebufferCube"){',p,"=",p,".color[0];","}"),d=1,h){case 35678:case 35680:h=r.def(p,"._texture"),r(c,".uniform1i(",m,",",h,".bind());"),r.exit(h,".unbind();");continue;case 5124:case 35670:s="1i";break;case 35667:case 35671:s="2i",d=2;break;case 35668:case 35672:s="3i",d=3;break;case 35669:case 35673:s="4i",d=4;break;case 5126:s="1f";break;case 35664:s="2f",d=2;break;case 35665:s="3f",d=3;break;case 35666:s="4f",d=4;break;case 35674:s="Matrix2fv";break;case 35675:s="Matrix3fv";break;case 35676:s="Matrix4fv"}if("M"===s.charAt(0)){r(c,".uniform",s,"(",m,","),m=Math.pow(h-35674+2,2);var v=t.global.def("new Float32Array(",m,")");Array.isArray(p)?r("false,(",f(m,(function(t){return v+"["+t+"]="+p[t]})),",",v,")"):r("false,(Array.isArray(",p,")||",p," instanceof Float32Array)?",p,":(",f(m,(function(t){return v+"["+t+"]="+p+"["+t+"]"})),",",v,")"),r(");")}else{if(1<d){h=[];var y=[];for(g=0;g<d;++g)Array.isArray(p)?y.push(p[g]):y.push(r.def(p+"["+g+"]")),o&&h.push(r.def());o&&r("if(!",t.batchId,"||",h.map((function(t,e){return t+"!=="+y[e]})).join("||"),"){",h.map((function(t,e){return t+"="+y[e]+";"})).join("")),r(c,".uniform",s,"(",m,",",y.join(","),");")}else o&&(h=r.def(),r("if(!",t.batchId,"||",h,"!==",p,"){",h,"=",p,";")),r(c,".uniform",s,"(",m,",",p,");");o&&r("}")}}}function U(t,e,r,n){function i(i){var a=p[i];return a?a.contextDep&&n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,".",i)}function a(){function t(){r(l,".drawElementsInstancedANGLE(",[h,m,v,g+"<<(("+v+"-5121)>>1)",s],");")}function e(){r(l,".drawArraysInstancedANGLE(",[h,g,m,s],");")}d&&"null"!==d?y?t():(r("if(",d,"){"),t(),r("}else{"),e(),r("}")):e()}function o(){function t(){r(u+".drawElements("+[h,m,v,g+"<<(("+v+"-5121)>>1)"]+");")}function e(){r(u+".drawArrays("+[h,g,m]+");")}d&&"null"!==d?y?t():(r("if(",d,"){"),t(),r("}else{"),e(),r("}")):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,p=n.draw,d=function(){var i=p.elements,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a),p.elementsActive&&a("if("+i+")"+u+".bindBuffer(34963,"+i+".buffer.buffer);")):(i=a.def(),a(i,"=",f,".","elements",";","if(",i,"){",u,".bindBuffer(",34963,",",i,".buffer.buffer);}","else if(",c.vao,".currentVAO){",i,"=",t.shared.elements+".getElements("+c.vao,".currentVAO.elements);",ft?"":"if("+i+")"+u+".bindBuffer(34963,"+i+".buffer.buffer);","}")),i}(),h=i("primitive"),g=i("offset"),m=function(){var i=p.count,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a)):i=a.def(f,".","count"),i}();if("number"===typeof m){if(0===m)return}else r("if(",m,"){"),r.exit("}");lt&&(s=i("instances"),l=t.instancing);var v=d+".type",y=p.elements&&X(p.elements)&&!p.vaoActive;lt&&("number"!==typeof s||0<=s)?"string"===typeof s?(r("if(",s,">0){"),a(),r("}else if(",s,"<0){"),o(),r("}")):a():o()}function V(t,e,r,n,i){return i=(e=x()).proc("body",i),lt&&(e.instancing=i.def(e.shared.extensions,".angle_instanced_arrays")),t(e,i,r,n),e.compile().body}function H(t,e,r,n){N(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,".setVAO(",r.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),B(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0}),!1),U(t,e,e,r)}function J(t,e){var r=t.proc("draw",1);N(t,r),P(t,r,e.context),D(t,r,e.framebuffer),R(t,r,e),z(t,r,e.state),F(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,".useProgram(",n,".program);"),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,".setVAO(null);");var i=t.global.def("{}"),a=r.def(n,".id"),o=r.def(i,"[",a,"]");r(t.cond(o).then(o,".call(this,a0);").else(o,"=",i,"[",a,"]=",t.link((function(r){return V(H,t,e,r,1)})),"(",n,");",o,".call(this,a0);"))}0<Object.keys(e.state).length&&r(t.shared.current,".dirty=true;"),t.shared.vao&&r(t.shared.vao,".setVAO(null);")}function $(t,e,r,n){function i(){return!0}t.batchId="a1",N(t,e),B(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i,!1),U(t,e,e,r)}function tt(t,e,r,n){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}N(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,"for(",s,"=0;",s,"<","a1",";++",s,"){",l,"=","a0","[",s,"];",u,"}",c.exit),r.needsContext&&P(t,u,r.context),r.needsFramebuffer&&D(t,u,r.framebuffer),z(t,u,r.state,i),r.profile&&i(r.profile)&&F(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,".setVAO(",r.drawVAO.append(t,u),");"):c(t.shared.vao,".setVAO(",r.drawVAO.append(t,c),");"):c(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(c(t.shared.vao,".setVAO(null);"),B(t,c,r,n.attributes,a),B(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a,!1),j(t,u,r,n.uniforms,i,!0),U(t,c,u,r)):(e=t.global.def("{}"),n=r.shader.progVar.append(t,u),l=u.def(n,".id"),c=u.def(e,"[",l,"]"),u(t.shared.gl,".useProgram(",n,".program);","if(!",c,"){",c,"=",e,"[",l,"]=",t.link((function(e){return V($,t,r,e,2)})),"(",n,");}",c,".call(this,a0[",s,"],",s,");"))}function rt(t,e){function r(t){return t.contextDep&&i||t.propDep}var n=t.proc("batch",2);t.batchId="0",N(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(P(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&&i&&(o=!0),o||D(t,n,s)):D(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(i=!0),R(t,n,e),z(t,n,e.state,(function(t){return!r(t)})),e.profile&&r(e.profile)||F(t,n,e,!1,"a1"),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&&i||a.propDep)tt(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,".useProgram(",a,".program);"),e.shader.program)tt(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var s=t.global.def("{}"),l=(o=n.def(a,".id"),n.def(s,"[",o,"]"));n(t.cond(l).then(l,".call(this,a0,a1);").else(l,"=",s,"[",o,"]=",t.link((function(r){return V(tt,t,e,r,2)})),"(",a,");",l,".call(this,a0,a1);"))}0<Object.keys(e.state).length&&n(t.shared.current,".dirty=true;"),t.shared.vao&&n(t.shared.vao,".setVAO(null);")}function nt(t,r){function n(e){var n=r.shader[e];n&&(n=n.append(t,i),isNaN(n)?i.set(a.shader,"."+e,n):i.set(a.shader,"."+e,t.link(n,{stable:!0})))}var i=t.proc("scope",3);t.batchId="a2";var a=t.shared,o=a.current;if(P(t,i,r.context),r.framebuffer&&r.framebuffer.append(t,i),W(Object.keys(r.state)).forEach((function(e){var n=r.state[e],o=n.append(t,i);k(o)?o.forEach((function(r,n){isNaN(r)?i.set(t.next[e],"["+n+"]",r):i.set(t.next[e],"["+n+"]",t.link(r,{stable:!0}))})):X(n)?i.set(a.next,"."+e,t.link(o,{stable:!0})):i.set(a.next,"."+e,o)})),F(t,i,r,!0,!0),["elements","offset","count","instances","primitive"].forEach((function(e){var n=r.draw[e];n&&(n=n.append(t,i),isNaN(n)?i.set(a.draw,"."+e,n):i.set(a.draw,"."+e,t.link(n),{stable:!0}))})),Object.keys(r.uniforms).forEach((function(n){var o=r.uniforms[n].append(t,i);Array.isArray(o)&&(o="["+o.map((function(e){return isNaN(e)?e:t.link(e,{stable:!0})}))+"]"),i.set(a.uniforms,"["+t.link(e.id(n),{stable:!0})+"]",o)})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new ot).forEach((function(t){i.set(a,"."+t,n[t])}))})),r.scopeVAO){var s=r.scopeVAO.append(t,i);isNaN(s)?i.set(a.vao,".targetVAO",s):i.set(a.vao,".targetVAO",t.link(s,{stable:!0}))}n("vert"),n("frag"),0<Object.keys(r.state).length&&(i(o,".dirty=true;"),i.exit(o,".dirty=true;")),i("a1(",t.shared.context,",a0,",t.batchId,");")}function it(t){if("object"===typeof t&&!k(t)){for(var e=Object.keys(t),r=0;r<e.length;++r)if(et.isDynamic(t[e[r]]))return!0;return!1}}function at(t,e,r){function n(t,e){o.forEach((function(r){var n=i[r];et.isDynamic(n)&&(n=t.invoke(e,n),e(u,".",r,"=",n,";"))}))}var i=e.static[r];if(i&&it(i)){var a=t.global,o=Object.keys(i),s=!1,l=!1,c=!1,u=t.global.def("{}");o.forEach((function(e){var r=i[e];if(et.isDynamic(r))"function"===typeof r&&(r=i[e]=et.unbox(r)),e=K(r,null),s=s||e.thisDep,c=c||e.propDep,l=l||e.contextDep;else{switch(a(u,".",e,"="),typeof r){case"number":a(r);break;case"string":a('"',r,'"');break;case"object":Array.isArray(r)&&a("[",r.join(),"]");break;default:a(t.link(r))}a(";")}})),e.dynamic[r]=new et.DynamicVariable(4,{thisDep:s,contextDep:l,propDep:c,ref:u,append:n}),delete e.static[r]}}var ot=c.Record,st={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(st.min=32775,st.max=32776);var lt=r.angle_instanced_arrays,ct=r.webgl_draw_buffers,ft=r.oes_vertex_array_object,pt={dirty:!0,profile:m.profile},dt={},ht=[],mt={},vt={};y("dither",3024),y("blend.enable",3042),b("blend.color","blendColor",[0,0,0,0]),b("blend.equation","blendEquationSeparate",[32774,32774]),b("blend.func","blendFuncSeparate",[1,0,1,0]),y("depth.enable",2929,!0),b("depth.func","depthFunc",513),b("depth.range","depthRange",[0,1]),b("depth.mask","depthMask",!0),b("colorMask","colorMask",[!0,!0,!0,!0]),y("cull.enable",2884),b("cull.face","cullFace",1029),b("frontFace","frontFace",2305),b("lineWidth","lineWidth",1),y("polygonOffset.enable",32823),b("polygonOffset.offset","polygonOffset",[0,0]),y("sample.alpha",32926),y("sample.enable",32928),b("sample.coverage","sampleCoverage",[1,!1]),y("stencil.enable",2960),b("stencil.mask","stencilMask",-1),b("stencil.func","stencilFunc",[519,0,-1]),b("stencil.opFront","stencilOpSeparate",[1028,7680,7680,7680]),b("stencil.opBack","stencilOpSeparate",[1029,7680,7680,7680]),y("scissor.enable",3089),b("scissor.box","scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),b("viewport","viewport",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var yt={gl:t,context:d,strings:e,next:dt,current:pt,draw:p,elements:a,buffer:i,shader:u,attributes:c.state,vao:c,uniforms:l,framebuffer:s,extensions:r,timer:h,isBufferArgs:G},bt={primTypes:gt,compareFuncs:Ft,blendFuncs:Nt,blendEquations:st,stencilOps:Bt,glTypes:ut,orientationType:jt};ct&&(bt.backBuffer=[1029],bt.drawBuffer=f(n.maxDrawbuffers,(function(t){return 0===t?[0]:f(t,(function(t){return 36064+t}))})));var xt=0;return{next:dt,current:pt,procs:function(){var t=x(),e=t.proc("poll"),i=t.proc("refresh"),a=t.block();e(a),i(a);var o,s=(u=t.shared).gl,l=u.next,c=u.current;a(c,".dirty=false;"),D(t,e),D(t,i,null,!0),lt&&(o=t.link(lt)),r.oes_vertex_array_object&&i(t.link(r.oes_vertex_array_object),".bindVertexArrayOES(null);");var u=i.def(u.attributes),p=i.def(0),d=t.cond(p,".buffer");d.then(s,".enableVertexAttribArray(i);",s,".bindBuffer(",34962,",",p,".buffer.buffer);",s,".vertexAttribPointer(i,",p,".size,",p,".type,",p,".normalized,",p,".stride,",p,".offset);").else(s,".disableVertexAttribArray(i);",s,".vertexAttrib4f(i,",p,".x,",p,".y,",p,".z,",p,".w);",p,".buffer=null;");var h=t.link(n.maxAttributes,{stable:!0});return i("for(var i=0;i<",h,";++i){",p,"=",u,"[i];",d,"}"),lt&&i("for(var i=0;i<",h,";++i){",o,".vertexAttribDivisorANGLE(i,",u,"[i].divisor);","}"),i(t.shared.vao,".currentVAO=null;",t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"),Object.keys(mt).forEach((function(r){var n=mt[r],o=a.def(l,".",r),u=t.block();u("if(",o,"){",s,".enable(",n,")}else{",s,".disable(",n,")}",c,".",r,"=",o,";"),i(u),e("if(",o,"!==",c,".",r,"){",u,"}")})),Object.keys(vt).forEach((function(r){var n,o,u=vt[r],p=pt[r],d=t.block();d(s,".",u,"("),k(p)?(u=p.length,n=t.global.def(l,".",r),o=t.global.def(c,".",r),d(f(u,(function(t){return n+"["+t+"]"})),");",f(u,(function(t){return o+"["+t+"]="+n+"["+t+"];"})).join("")),e("if(",f(u,(function(t){return n+"["+t+"]!=="+o+"["+t+"]"})).join("||"),"){",d,"}")):(n=a.def(l,".",r),o=a.def(c,".",r),d(n,");",c,".",r,"=",n,";"),e("if(",n,"!==",o,"){",d,"}")),i(d)})),t.compile()}(),compile:function(t,e,r,n,i){var a=x();a.stats=a.link(i),Object.keys(e.static).forEach((function(t){at(a,e,t)})),zt.forEach((function(e){at(a,t,e)}));var o=I(t,e,r,n,a);return o.shader.program&&(o.shader.program.attributes.sort((function(t,e){return t.name<e.name?-1:1})),o.shader.program.uniforms.sort((function(t,e){return t.name<e.name?-1:1}))),J(a,o),nt(a,o),rt(a,o),Q(a.compile(),{destroy:function(){o.shader.program.destroy()}})}}}function $(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}var Q=function(t,e){for(var r=Object.keys(e),n=0;n<r.length;++n)t[r[n]]=e[r[n]];return t},tt=0,et={DynamicVariable:t,define:function(e,n){return new t(e,r(n+""))},isDynamic:function(e){return"function"===typeof e&&!e._reglType||e instanceof t},unbox:n,accessor:r},rt={next:"function"===typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:"function"===typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},nt="undefined"!==typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date},it=d();it.zero=d();var at=function(t,e){var r=1;e.ext_texture_filter_anisotropic&&(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&&(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=it.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),it.freeType(s)}}return s=!0,"undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=it.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),it.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},ot=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},st=function(t){return Object.keys(t).map((function(e){return t[e]}))},lt={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a<e.length;++a)i*=e[a];else i=0;switch(r=n||it.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e<n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a<n;++a)for(var o=t[a],s=0;s<e;++s)r[i++]=o[s];break;case 3:g(t,e[0],e[1],e[2],r,0);break;default:m(t,e,0,r,0)}return r}},ct={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},ut={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ft={dynamic:35048,stream:35040,static:35044},pt=lt.flatten,dt=lt.shape,ht=[];ht[5120]=1,ht[5122]=2,ht[5124]=4,ht[5121]=1,ht[5123]=2,ht[5125]=4,ht[5126]=4;var gt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},mt=new Float32Array(1),vt=new Uint32Array(mt.buffer),yt=[9984,9986,9985,9987],bt=[0,6409,6410,6407,6408],xt={};xt[6409]=xt[6406]=xt[6402]=1,xt[34041]=xt[6410]=2,xt[6407]=xt[35904]=3,xt[6408]=xt[35906]=4;var _t=T("HTMLCanvasElement"),wt=T("OffscreenCanvas"),kt=T("CanvasRenderingContext2D"),Tt=T("ImageBitmap"),Mt=T("HTMLImageElement"),At=T("HTMLVideoElement"),St=Object.keys(ct).concat([_t,wt,kt,Tt,Mt,At]),Et=[];Et[5121]=1,Et[5126]=4,Et[36193]=2,Et[5123]=2,Et[5125]=4;var Ct=[];Ct[32854]=2,Ct[32855]=2,Ct[36194]=2,Ct[34041]=4,Ct[33776]=.5,Ct[33777]=.5,Ct[33778]=1,Ct[33779]=1,Ct[35986]=.5,Ct[35987]=1,Ct[34798]=1,Ct[35840]=.5,Ct[35841]=.25,Ct[35842]=.5,Ct[35843]=.25,Ct[36196]=.5;var Ot=[];Ot[32854]=2,Ot[32855]=2,Ot[36194]=2,Ot[33189]=2,Ot[36168]=1,Ot[34041]=4,Ot[35907]=4,Ot[34836]=16,Ot[34842]=8,Ot[34843]=6;var Lt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&&(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};e.ext_srgb&&(s.srgba=35907),e.ext_color_buffer_half_float&&(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&&(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0>=--this.refCount&&o(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if("object"===typeof e&&e?("shape"in e?(n=0|(a=e.shape)[0],a=0|a[1]):("radius"in e&&(n=a=0|e.radius),"width"in e&&(n=0|e.width),"height"in e&&(a=0|e.height)),"format"in e&&(u=s[e.format])):"number"===typeof e?(n=0|e,a="number"===typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&&(c.stats.size=Ot[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&&a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&&(c.stats.size=Ot[c.format]*c.width*c.height)),o},o._reglType="renderbuffer",o._renderbuffer=c,i.profile&&(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){st(u).forEach(o)},restore:function(){st(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},It=[];It[6408]=4,It[6407]=3;var Pt=[];Pt[5121]=1,Pt[5126]=4,Pt[36193]=2;var Dt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Rt=["x","y","z","w"],zt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Nt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ft={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},jt={cw:2304,ccw:2305},Ut=new Y(!1,!1,!1,(function(){})),Vt=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r<a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r<s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex,n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t<i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}};return function(t){function e(){if(0===W.length)M&&M.update(),K=null;else{K=rt.next(e),d();for(var t=W.length-1;0<=t;--t){var r=W[t];r&&r(C,null,0)}m.flush(),M&&M.update()}}function r(){!K&&0<W.length&&(K=rt.next(e))}function n(){K&&(rt.cancel(e),K=null)}function a(t){t.preventDefault(),n(),Y.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),B.restore(),P.restore(),j.restore(),U.restore(),V.restore(),F.restore(),M&&M.restore(),H.procs.refresh(),r(),X.forEach((function(t){t()}))}function s(t){function e(t,e){var r={},n={};return Object.keys(t).forEach((function(i){var a=t[i];if(et.isDynamic(a))n[i]=et.unbox(a,i);else{if(e&&Array.isArray(a))for(var o=0;o<a.length;++o)if(et.isDynamic(a[o]))return void(n[i]=et.unbox(a,i));r[i]=a}})),{dynamic:n,static:r}}function r(t){for(;f.length<t;)f.push(null);return f}var n=e(t.context||{},!0),i=e(t.uniforms||{},!0),a=e(t.attributes||{},!1);t=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+"."+n]=e[n]}))}}var r=Q({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,"stencil"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e("blend"),e("depth"),e("cull"),e("stencil"),e("polygonOffset"),e("scissor"),e("sample"),"vao"in t&&(r.vao=t.vao),r}(t),!1);var o={gpuTime:0,cpuTime:0,count:0},s=H.compile(t,a,i,n,o),l=s.draw,c=s.batch,u=s.scope,f=[];return Q((function(t,e){var n;if("function"===typeof t)return u.call(this,null,t,0);if("function"===typeof e)if("number"===typeof t)for(n=0;n<t;++n)u.call(this,null,e,n);else{if(!Array.isArray(t))return u.call(this,t,e,0);for(n=0;n<t.length;++n)u.call(this,t[n],e,n)}else if("number"===typeof t){if(0<t)return c.call(this,r(0|t),0|t)}else{if(!Array.isArray(t))return l.call(this,t);if(t.length)return c.call(this,t,t.length)}}),{stats:o,destroy:function(){s.destroy()}})}function l(t,e){var r=0;H.procs.poll();var n=e.color;n&&(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),"depth"in e&&(m.clearDepth(+e.depth),r|=256),"stencil"in e&&(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function f(t){return W.push(t),r(),{cancel:function(){function e(){var t=$(W,e);W[t]=W[W.length-1],--W.length,0>=W.length&&n()}var r=$(W,t);W[r]=e}}}function p(){var t=q.viewport,e=q.scissor_box;t[0]=t[1]=e[0]=e[1]=0,C.viewportWidth=C.framebufferWidth=C.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,C.viewportHeight=C.framebufferHeight=C.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function d(){C.tick+=1,C.time=g(),p(),H.procs.poll()}function h(){j.refresh(),p(),H.procs.refresh(),M&&M.update()}function g(){return(nt()-A)/1e3}if(!(t=c(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=u(m,t);if(!y)return null;var b=i(),w={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},k=t.cachedCode||{},T=y.extensions,M=Vt(m,T),A=nt(),S=m.drawingBufferWidth,E=m.drawingBufferHeight,C={tick:0,time:0,viewportWidth:S,viewportHeight:E,framebufferWidth:S,framebufferHeight:E,drawingBufferWidth:S,drawingBufferHeight:E,pixelRatio:t.pixelRatio},O=(S={elements:null,primitive:4,count:-1,offset:0,instances:-1},at(m,T)),P=x(m,w,t,(function(t){return F.destroyBuffer(t)})),N=_(m,T,P,w),F=D(m,T,O,w,P,N,S),B=R(m,b,w,t),j=L(m,T,O,(function(){H.procs.poll()}),C,w,t),U=Lt(m,T,O,w,t),V=I(m,T,O,j,U,w),H=J(m,b,T,O,P,N,j,V,{},F,B,S,C,M,k,t),q=(b=z(m,V,H.procs.poll,C,v,T,O),H.next),G=m.canvas,W=[],Y=[],X=[],Z=[t.onDestroy],K=null;G&&(G.addEventListener("webglcontextlost",a,!1),G.addEventListener("webglcontextrestored",o,!1));var tt=V.setFBO=s({framebuffer:et.define.call(null,1,"framebuffer")});return h(),v=Q(s,{clear:function(t){if("framebuffer"in t)if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var e=0;6>e;++e)tt(Q({framebuffer:t.framebuffer.faces[e]},t),l);else tt(t,l);else l(null,t)},prop:et.define.bind(null,1),context:et.define.bind(null,2),this:et.define.bind(null,3),draw:s({}),buffer:function(t){return P.create(t,34962,!1,!1)},elements:function(t){return N.create(t,!1)},texture:j.create2D,cube:j.createCube,renderbuffer:U.create,framebuffer:V.create,framebufferCube:V.createCube,vao:F.createVAO,attributes:v,frame:f,on:function(t,e){var r;switch(t){case"frame":return f(e);case"lost":r=Y;break;case"restore":r=X;break;case"destroy":r=Z}return r.push(e),{cancel:function(){for(var t=0;t<r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:O,hasExtension:function(t){return 0<=O.extensions.indexOf(t.toLowerCase())},read:b,destroy:function(){W.length=0,n(),G&&(G.removeEventListener("webglcontextlost",a),G.removeEventListener("webglcontextrestored",o)),B.clear(),V.clear(),U.clear(),F.clear(),j.clear(),N.clear(),P.clear(),M&&M.clear(),Z.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){d(),M&&M.update()},now:g,stats:w,getCachedCode:function(){return k},preloadCachedCode:function(t){Object.entries(t).forEach((function(t){k[t[0]]=t[1]}))}}),t.onDone(null,v),v}},"object"===typeof n&&"undefined"!==typeof r?r.exports=a():"function"===typeof t&&t.amd?t(a):i.createREGL=a()},{}],285:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:85}],286:[function(t,e,r){e.exports=i;var n=t("events").EventEmitter;function i(){n.call(this)}t("inherits")(i,n),i.Readable=t("readable-stream/lib/_stream_readable.js"),i.Writable=t("readable-stream/lib/_stream_writable.js"),i.Duplex=t("readable-stream/lib/_stream_duplex.js"),i.Transform=t("readable-stream/lib/_stream_transform.js"),i.PassThrough=t("readable-stream/lib/_stream_passthrough.js"),i.finished=t("readable-stream/lib/internal/streams/end-of-stream.js"),i.pipeline=t("readable-stream/lib/internal/streams/pipeline.js"),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",l));var o=!1;function s(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"===typeof t.destroy&&t.destroy())}function c(t){if(u(),0===n.listenerCount(this,"error"))throw t}function u(){r.removeListener("data",i),t.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",c),t.on("error",c),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},{events:84,inherits:231,"readable-stream/lib/_stream_duplex.js":288,"readable-stream/lib/_stream_passthrough.js":289,"readable-stream/lib/_stream_readable.js":290,"readable-stream/lib/_stream_transform.js":291,"readable-stream/lib/_stream_writable.js":292,"readable-stream/lib/internal/streams/end-of-stream.js":296,"readable-stream/lib/internal/streams/pipeline.js":298}],287:[function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function a(t,e,r){function a(t,r,n){return"string"===typeof e?e:e(t,r,n)}r||(r=Error);var o=function(t){function e(e,r,n){return t.call(this,a(e,r,n))||this}return n(e,t),e}(r);o.prototype.name=r.name,o.prototype.code=t,i[t]=o}function o(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"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 s(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function l(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function c(t,e,r){return"number"!==typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}a("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,i;if("string"===typeof e&&s(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",l(t," argument"))i="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var a=c(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(a," ").concat(n," ").concat(o(e,"type"))}return i+=". Received type ".concat(typeof r)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},{}],288:[function(t,e,r){(function(r){(function(){"use strict";var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var i=t("./_stream_readable"),a=t("./_stream_writable");t("inherits")(c,i);for(var o=n(a.prototype),s=0;s<o.length;s++){var l=o[s];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":290,"./_stream_writable":292,_process:278,inherits:231}],289:[function(t,e,r){"use strict";e.exports=i;var n=t("./_stream_transform");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t("inherits")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":291,inherits:231}],290:[function(t,e,n){(function(r,n){(function(){"use strict";var i;e.exports=E,E.ReadableState=S,t("events").EventEmitter;var a=function(t,e){return t.listeners(e).length},o=t("./internal/streams/stream"),s=t("buffer").Buffer,l=n.Uint8Array||function(){};function c(t){return s.from(t)}function u(t){return s.isBuffer(t)||t instanceof l}var f,p=t("util");f=p&&p.debuglog?p.debuglog("stream"):function(){};var d,h,g,m=t("./internal/streams/buffer_list"),v=t("./internal/streams/destroy"),y=t("./internal/streams/state").getHighWaterMark,b=t("../errors").codes,x=b.ERR_INVALID_ARG_TYPE,_=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,k=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(E,o);var T=v.errorOrDestroy,M=["error","close","destroy","pause","resume"];function A(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function S(e,r,n){i=i||t("./_stream_duplex"),e=e||{},"boolean"!==typeof n&&(n=r instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=t("string_decoder/").StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function E(e){if(i=i||t("./_stream_duplex"),!(this instanceof E))return new E(e);var r=this instanceof i;this._readableState=new S(e,this,r),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function C(t,e,r,n,i){f("readableAddChunk",e);var a,o=t._readableState;if(null===e)o.reading=!1,R(t,o);else if(i||(a=L(o,e)),a)T(t,a);else if(o.objectMode||e&&e.length>0)if("string"===typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=c(e)),n)o.endEmitted?T(t,new k):O(t,o,e,!0);else if(o.ended)T(t,new _);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?O(t,o,e,!1):F(t,o)):O(t,o,e,!1)}else n||(o.reading=!1,F(t,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function O(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&z(t)),F(t,e)}function L(t,e){var r;return u(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],e)),r}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=v.destroy,E.prototype._undestroy=v.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),C(this,t,e,!1,r)},E.prototype.unshift=function(t){return C(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(e){d||(d=t("string_decoder/").StringDecoder);var r=new d(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function P(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(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=P(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(f("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?z(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,N(t)))}}function z(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(N,t))}function N(t){var e=t._readableState;f("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 F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(B,t,e))}function B(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(f("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function j(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,G(t))}}function U(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function V(t){f("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(q,t,e))}function q(t,e){f("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;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function W(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function Y(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function Z(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):z(this),null;if(0===(t=D(t,e))&&e.ended)return 0===e.length&&Y(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=D(r,e))),null===(n=t>0?W(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Y(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){T(this,new w("_read()"))},E.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var o=e&&!1===e.end||t===r.stdout||t===r.stderr?v:l;function s(t,e){f("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,p())}function l(){f("onend"),t.end()}i.endEmitted?r.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=j(n);t.on("drain",c);var u=!1;function p(){f("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",d),u=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function d(e){f("ondata");var r=t.write(e);f("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==Z(i.pipes,t))&&!u&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(e){f("onerror",e),v(),t.removeListener("error",h),0===a(t,"error")&&T(t,e)}function g(){t.removeListener("finish",m),v()}function m(){f("onfinish"),t.removeListener("close",g),v()}function v(){f("unpipe"),n.unpipe(t)}return n.on("data",d),A(t,"error",h),t.once("close",g),t.once("finish",m),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Z(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var n=o.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,f("on readable",i.length,i.reading),i.length?z(this):i.reading||r.nextTick(V,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(U,this),n},E.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(U,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},E.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)&&(e.push(i)||(n=!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 a=0;a<M.length;a++)t.on(M[a],this.emit.bind(this,M[a]));return this._read=function(e){f("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"===typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=t("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=W,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(E.from=function(e,r){return void 0===g&&(g=t("./internal/streams/from")),g(E,e,r)})}).call(this)}).call(this,t("_process"),"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../errors":287,"./_stream_duplex":288,"./internal/streams/async_iterator":293,"./internal/streams/buffer_list":294,"./internal/streams/destroy":295,"./internal/streams/from":297,"./internal/streams/state":299,"./internal/streams/stream":300,_process:278,buffer:85,events:84,inherits:231,"string_decoder/":301,util:83}],291:[function(t,e,r){"use strict";e.exports=u;var n=t("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=t("./_stream_duplex");function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(t){if(!(this instanceof u))return new u(t);l.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush((function(e,r){p(t,e,r)}))}function p(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;return t.push(null)}t("inherits")(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,r){r(new i("_transform()"))},u.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},{"../errors":287,"./_stream_duplex":288,inherits:231}],292:[function(t,e,n){(function(r,n){(function(){"use strict";function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){q(e,t)}}var a;e.exports=S,S.WritableState=A;var o={deprecate:t("util-deprecate")},s=t("./internal/streams/stream"),l=t("buffer").Buffer,c=n.Uint8Array||function(){};function u(t){return l.from(t)}function f(t){return l.isBuffer(t)||t instanceof c}var p,d=t("./internal/streams/destroy"),h=t("./internal/streams/state").getHighWaterMark,g=t("../errors").codes,m=g.ERR_INVALID_ARG_TYPE,v=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,b=g.ERR_STREAM_CANNOT_PIPE,x=g.ERR_STREAM_DESTROYED,_=g.ERR_STREAM_NULL_VALUES,w=g.ERR_STREAM_WRITE_AFTER_END,k=g.ERR_UNKNOWN_ENCODING,T=d.errorOrDestroy;function M(){}function A(e,r,n){a=a||t("./_stream_duplex"),e=e||{},"boolean"!==typeof n&&(n=r instanceof a),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(r,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(e){var r=this instanceof(a=a||t("./_stream_duplex"));if(!r&&!p.call(S,this))return new S(e);this._writableState=new A(e,this,r),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function E(t,e){var n=new w;T(t,n),r.nextTick(e,n)}function C(t,e,n,i){var a;return null===n?a=new _:"string"===typeof n||e.objectMode||(a=new m("chunk",["string","Buffer"],n)),!a||(T(t,a),r.nextTick(i,a),!1)}function O(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,r)),e}function L(t,e,r,n,i,a){if(!r){var o=O(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else I(t,e,!1,s,n,i,a);return l}function I(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function P(t,e,n,i,a){--e.pendingcb,n?(r.nextTick(a,i),r.nextTick(V,t,e),t._writableState.errorEmitted=!0,T(t,i)):(a(i),t._writableState.errorEmitted=!0,T(t,i),V(t,e))}function D(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function R(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if("function"!==typeof a)throw new y;if(D(n),e)P(t,n,i,e,a);else{var o=B(n)||t.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||F(t,n),i?r.nextTick(z,t,n,o,a):z(t,n,o,a)}}function z(t,e,r,n){r||N(t,e),e.pendingcb--,n(),V(t,e)}function N(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function F(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,a=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,I(t,e,!0,e.length,a,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(I(t,e,!1,e.objectMode?1:c.length,c,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function B(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function j(t,e){t._final((function(r){e.pendingcb--,r&&T(t,r),e.prefinished=!0,t.emit("prefinish"),V(t,e)}))}function U(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(j,t,e)))}function V(t,e){var r=B(e);if(r&&(U(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function H(t,e,n){e.ending=!0,V(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function q(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}t("inherits")(S,s),A.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===S&&t&&t._writableState instanceof A}})):p=function(t){return t instanceof this},S.prototype.pipe=function(){T(this,new b)},S.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&f(t);return a&&!l.isBuffer(t)&&(t=u(t)),"function"===typeof e&&(r=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof r&&(r=M),n.ending?E(this,r):(a||C(this,n,t,r))&&(n.pendingcb++,i=L(this,n,a,t,e,r)),i},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||F(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new k(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new v("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var n=this._writableState;return"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t("_process"),"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../errors":287,"./_stream_duplex":288,"./internal/streams/destroy":295,"./internal/streams/state":299,"./internal/streams/stream":300,_process:278,buffer:85,inherits:231,"util-deprecate":331}],293:[function(t,e,r){(function(r){(function(){"use strict";var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=t("./end-of-stream"),o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function d(t,e){return{value:t,done:e}}function h(t){var e=t[o];if(null!==e){var r=t[p].read();null!==r&&(t[u]=null,t[o]=null,t[s]=null,e(d(r,!1)))}}function g(t){r.nextTick(h,t)}function m(t,e){return function(r,n){t.then((function(){e[c]?r(d(void 0,!0)):e[f](r,n)}),n)}}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[p]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[l]?n(t[l]):e(d(void 0,!0))}))}));var n,i=this[u];if(i)n=new Promise(m(i,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(d(a,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[p].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),v),b=function(t){var e,r=Object.create(y,(i(e={},p,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[p].read();n?(r[u]=null,r[o]=null,r[s]=null,t(d(n,!1))):(r[o]=t,r[s]=e)},writable:!0}),e));return r[u]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[u]=null,r[o]=null,r[s]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&&(r[u]=null,r[o]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),t.on("readable",g.bind(null,r)),r};e.exports=b}).call(this)}).call(this,t("_process"))},{"./end-of-stream":296,_process:278}],294:[function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),t}var c=t("buffer").Buffer,u=t("util").inspect,f=u&&u.custom||"inspect";function p(t,e,r){c.prototype.copy.call(t,e,r)}e.exports=function(){function t(){o(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?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"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e=c.allocUnsafe(t>>>0),r=this.head,n=0;r;)p(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,a=t>i.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0===(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0===(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:f,value:function(t,e){return u(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},{buffer:85,util:83}],295:[function(t,e,r){(function(t){(function(){"use strict";function r(e,r){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!r&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(i,a):(a._writableState.errorEmitted=!0,t.nextTick(n,a,e)):t.nextTick(n,a,e):r?(t.nextTick(i,a),r(e)):t.nextTick(i,a)})),this)}function n(t,e){o(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(){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 o(t,e){t.emit("error",e)}function s(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}e.exports={destroy:r,undestroy:a,errorOrDestroy:s}}).call(this)}).call(this,t("_process"))},{_process:278}],296:[function(t,e,r){"use strict";var n=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function a(){}function o(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,r){if("function"===typeof e)return s(t,null,e);e||(e={}),r=i(r||a);var l=e.readable||!1!==e.readable&&t.readable,c=e.writable||!1!==e.writable&&t.writable,u=function(){t.writable||p()},f=t._writableState&&t._writableState.finished,p=function(){c=!1,f=!0,l||r.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){l=!1,d=!0,c||r.call(t)},g=function(e){r.call(t,e)},m=function(){var e;return l&&!d?(t._readableState&&t._readableState.ended||(e=new n),r.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new n),r.call(t,e)):void 0},v=function(){t.req.on("finish",p)};return o(t)?(t.on("complete",p),t.on("abort",m),t.req?v():t.on("request",v)):c&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",h),t.on("finish",p),!1!==e.error&&t.on("error",g),t.on("close",m),function(){t.removeListener("complete",p),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",p),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",p),t.removeListener("end",h),t.removeListener("error",g),t.removeListener("close",m)}}e.exports=s},{"../../../errors":287}],297:[function(t,e,r){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],298:[function(t,e,r){"use strict";var n;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var a=t("../../../errors").codes,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function c(t){return t.setHeader&&"function"===typeof t.abort}function u(e,r,a,o){o=i(o);var l=!1;e.on("close",(function(){l=!0})),void 0===n&&(n=t("./end-of-stream")),n(e,{readable:r,writable:a},(function(t){if(t)return o(t);l=!0,o()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function f(t){t()}function p(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function h(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,r){var o=r<e.length-1;return u(t,o,r>0,(function(t){n||(n=t),t&&a.forEach(f),o||(a.forEach(f),i(n))}))}));return e.reduce(p)}e.exports=h},{"../../../errors":287,"./end-of-stream":296}],299:[function(t,e,r){"use strict";var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;function i(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}function a(t,e,r,a){var o=i(e,a,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}e.exports={getHighWaterMark:a}},{"../../../errors":287}],300:[function(t,e,r){e.exports=t("events").EventEmitter},{events:84}],301:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch((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 a(t){if(!t)return"utf8";for(var e;;)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 o(t){var e=a(t);if("string"!==typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=o(t),this.encoding){case"utf16le":this.text=h,this.end=g,e=4;break;case"utf8":this.fillLast=f,e=4;break;case"base64":this.text=m,this.end=v,e=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function l(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function c(t,e,r){var n=e.length-1;if(n<r)return 0;var i=l(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function u(t,e,r){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}function f(t){var e=this.lastTotal-this.lastNeed,r=u(this,t,e);return void 0!==r?r: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 p(t,e){var r=c(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e}function h(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function g(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function m(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function v(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):""}r.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=d,s.prototype.text=p,s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":285}],302:[function(t,e,r){(function(r,n){(function(){var r=t("assert"),i=t("debug")("stream-parser");e.exports=c;var a=-1,o=0,s=1,l=2;function c(t){var e=t&&"function"==typeof t._transform,r=t&&"function"==typeof t._write;if(!e&&!r)throw new Error("must pass a Writable or Transform stream in");i("extending Parser into stream"),t._bytes=f,t._skipBytes=p,e&&(t._passthrough=d),e?t._transform=g:t._write=h}function u(t){i("initializing parser stream"),t._parserBytesLeft=0,t._parserBuffers=[],t._parserBuffered=0,t._parserState=a,t._parserCallback=null,"function"==typeof t.push&&(t._parserOutput=t.push.bind(t)),t._parserInit=!0}function f(t,e){r(!this._parserCallback,'there is already a "callback" set!'),r(isFinite(t)&&t>0,'can only buffer a finite number of bytes > 0, got "'+t+'"'),this._parserInit||u(this),i("buffering %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=o}function p(t,e){r(!this._parserCallback,'there is already a "callback" set!'),r(t>0,'can only skip > 0 bytes, got "'+t+'"'),this._parserInit||u(this),i("skipping %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=s}function d(t,e){r(!this._parserCallback,'There is already a "callback" set!'),r(t>0,'can only pass through > 0 bytes, got "'+t+'"'),this._parserInit||u(this),i("passing through %o bytes",t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=l}function h(t,e,r){this._parserInit||u(this),i("write(%o bytes)",t.length),"function"==typeof e&&(r=e),y(this,t,null,r)}function g(t,e,r){this._parserInit||u(this),i("transform(%o bytes)",t.length),"function"!=typeof e&&(e=this._parserOutput),y(this,t,e,r)}function m(t,e,r,n){return t._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):e.length<=t._parserBytesLeft?function(){return v(t,e,r,n)}:function(){var i=e.slice(0,t._parserBytesLeft);return v(t,i,r,(function(a){return a?n(a):e.length>i.length?function(){return m(t,e.slice(i.length),r,n)}:void 0}))}}function v(t,e,r,s){if(t._parserBytesLeft-=e.length,i("%o bytes left for stream piece",t._parserBytesLeft),t._parserState===o?(t._parserBuffers.push(e),t._parserBuffered+=e.length):t._parserState===l&&r(e),0!==t._parserBytesLeft)return s;var c=t._parserCallback;if(c&&t._parserState===o&&t._parserBuffers.length>1&&(e=n.concat(t._parserBuffers,t._parserBuffered)),t._parserState!==o&&(e=null),t._parserCallback=null,t._parserBuffered=0,t._parserState=a,t._parserBuffers.splice(0),c){var u=[];e&&u.push(e),r&&u.push(r);var f=c.length>u.length;f&&u.push(b(s));var p=c.apply(t,u);if(!f||s===p)return s}}var y=b(m);function b(t){return function(){for(var e=t.apply(this,arguments);"function"==typeof e;)e=e();return e}}}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:278,assert:75,buffer:85,debug:303}],303:[function(t,e,r){(function(n){(function(){function i(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+r.humanize(this.diff),e){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(a=i))})),t.splice(a,0,n)}}function o(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?r.storage.removeItem("debug"):r.storage.debug=t}catch(e){}}function l(){var t;try{t=r.storage.debug}catch(e){}return!t&&"undefined"!==typeof n&&"env"in n&&(t=n.env.DEBUG),t}function c(){try{return window.localStorage}catch(t){}}(r=e.exports=t("./debug")).log=o,r.formatArgs=a,r.save=s,r.load=l,r.useColors=i,r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(l())}).call(this)}).call(this,t("_process"))},{"./debug":304,_process:278}],304:[function(t,e,r){var n;function i(t){var e,n=0;for(e in t)n=(n<<5)-n+t.charCodeAt(e),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function a(t){function e(){if(e.enabled){var t=e,i=+new Date,a=i-(n||i);t.diff=a,t.prev=n,t.curr=i,n=i;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),"string"!==typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var i=r.formatters[n];if("function"===typeof i){var a=o[l];e=i.call(t,a),o.splice(l,1),l--}return e})),r.formatArgs.call(t,o),(e.log||r.log||console.log.bind(console)).apply(t,o)}}return e.namespace=t,e.enabled=r.enabled(t),e.useColors=r.useColors(),e.color=i(t),"function"===typeof r.init&&r.init(e),e}function o(t){r.save(t),r.names=[],r.skips=[];for(var e=("string"===typeof t?t:"").split(/[\s,]+/),n=e.length,i=0;i<n;i++)e[i]&&("-"===(t=e[i].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$")))}function s(){r.enable("")}function l(t){var e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}(r=e.exports=a.debug=a.default=a).coerce=c,r.disable=s,r.enable=o,r.enabled=l,r.humanize=t("ms"),r.names=[],r.skips=[],r.formatters={}},{ms:305}],305:[function(t,e,r){var n=1e3,i=60*n,a=60*i,o=24*a,s=365.25*o;function l(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*s;case"days":case"day":case"d":return r*o;case"hours":case"hour":case"hrs":case"hr":case"h":return r*a;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function c(t){return t>=o?Math.round(t/o)+"d":t>=a?Math.round(t/a)+"h":t>=i?Math.round(t/i)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}function u(t){return f(t,o,"day")||f(t,a,"hour")||f(t,i,"minute")||f(t,n,"second")||t+" ms"}function f(t,e,r){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+r:Math.ceil(t/e)+" "+r+"s"}e.exports=function(t,e){e=e||{};var r=typeof t;if("string"===r&&t.length>0)return l(t);if("number"===r&&!1===isNaN(t))return e.long?u(t):c(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},{}],306:[function(t,e,r){"use strict";var n=t("parenthesis");e.exports=function(t,e,r){if(null==t)throw Error("First argument should be a string");if(null==e)throw Error("Separator should be a string or a RegExp");r?("string"===typeof r||Array.isArray(r))&&(r={ignore:r}):r={},null==r.escape&&(r.escape=!0),null==r.ignore?r.ignore=["[]","()","{}","<>",'""',"''","``","\u201c\u201d","\xab\xbb"]:("string"===typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&&(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s<a.length;s++){var l=a[s],c=a[s+1];"\\"===l[l.length-1]&&"\\"!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s<a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:248}],307:[function(t,e,r){"use strict";function n(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l<e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],p=[];function d(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length>0;){e=c[c.length-1];var d=t[e];if(a[e]<d.length){for(var h=a[e];h<d.length;++h){var g=d[h];if(r[g]<0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&&(n[e]=0|Math.min(n[e],n[g])),o[g]>=0&&s[e].push(o[g])}a[e]=h}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(h=l.length-1;h>=0;--h){var b=l[h];if(i[b]=!1,m.push(b),v.push(s[b]),y+=s[b].length,o[b]=f.length,b===e){l.length=h;break}}f.push(m);var x=new Array(y);for(h=0;h<v.length;h++)for(var _=0;_<v[h].length;_++)x[--y]=v[h][_];p.push(x)}c.pop()}}}for(l=0;l<e;++l)r[l]<0&&d(l);for(l=0;l<p.length;l++){var h=p[l];if(0!==h.length){h.sort((function(t,e){return t-e})),c=[h[0]];for(var g=1;g<h.length;g++)h[g]!==h[g-1]&&c.push(h[g]);p[l]=c}}return{components:f,adjacencyList:p}}e.exports=n},{}],308:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(l){i=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i>1&&(i=1),i<-1&&(i=-1),(t*n-e*r<0?-1:1)*Math.acos(i)},l=function(t,e,r,n,a,o,l,c,u,f,p,d){var h=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(p,2),v=Math.pow(d,2),y=h*g-h*v-g*m;y<0&&(y=0),y/=h*v+g*m;var b=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*d,x=y*-o/a*p,_=f*b-u*x+(t+r)/2,w=u*b+f*x+(e+n)/2,k=(p-b)/a,T=(d-x)/o,M=(-p-b)/a,A=(-d-x)/o,S=s(1,0,k,T),E=s(k,T,M,A);return 0===c&&E>0&&(E-=i),1===c&&E<0&&(E+=i),[_,w,S,E]},c=function(t){var e=t.px,r=t.py,s=t.cx,c=t.cy,u=t.rx,f=t.ry,p=t.xAxisRotation,d=void 0===p?0:p,h=t.largeArcFlag,g=void 0===h?0:h,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var b=Math.sin(d*i/360),x=Math.cos(d*i/360),_=x*(e-s)/2+b*(r-c)/2,w=-b*(e-s)/2+x*(r-c)/2;if(0===_&&0===w)return[];u=Math.abs(u),f=Math.abs(f);var k=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);k>1&&(u*=Math.sqrt(k),f*=Math.sqrt(k));var T=l(e,r,s,c,u,f,g,v,b,x,_,w),M=n(T,4),A=M[0],S=M[1],E=M[2],C=M[3],O=Math.abs(C)/(i/4);Math.abs(1-O)<1e-7&&(O=1);var L=Math.max(Math.ceil(O),1);C/=L;for(var I=0;I<L;I++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,x,b,A,S),r=e.x,n=e.y,i=a(t[1],u,f,x,b,A,S),o=i.x,s=i.y,l=a(t[2],u,f,x,b,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))};r.default=c,e.exports=r.default},{}],309:[function(t,e,r){"use strict";var n=t("parse-svg-path"),i=t("abs-svg-path"),a=t("normalize-svg-path"),o=t("is-svg-path"),s=t("assert");function l(t){if(Array.isArray(t)&&1===t.length&&"string"===typeof t[0]&&(t=t[0]),"string"===typeof t&&(s(o(t),"String is not an SVG path."),t=n(t)),s(Array.isArray(t),"Argument should be a string or an array of path segments."),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r<l;r++)for(var c=t[r].slice(1),u=0;u<c.length;u+=2)c[u+0]<e[0]&&(e[0]=c[u+0]),c[u+1]<e[1]&&(e[1]=c[u+1]),c[u+0]>e[2]&&(e[2]=c[u+0]),c[u+1]>e[3]&&(e[3]=c[u+1]);return e}e.exports=l},{"abs-svg-path":70,assert:75,"is-svg-path":238,"normalize-svg-path":310,"parse-svg-path":250}],310:[function(t,e,r){"use strict";e.exports=i;var n=t("svg-arc-to-cubic-bezier");function i(t){for(var e,r=[],i=0,s=0,l=0,c=0,u=null,f=null,p=0,d=0,h=0,g=t.length;h<g;h++){var m=t[h],v=m[0];switch(v){case"M":l=m[1],c=m[2];break;case"A":var y=n({px:p,py:d,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var b,x=0;x<y.length;x++)m=["C",(b=y[x]).x1,b.y1,b.x2,b.y2,b.x,b.y],x<y.length-1&&r.push(m);break;case"S":var _=p,w=d;"C"!=e&&"S"!=e||(_+=_-i,w+=w-s),m=["C",_,w,m[1],m[2],m[3],m[4]];break;case"T":"Q"==e||"T"==e?(u=2*p-u,f=2*d-f):(u=p,f=d),m=o(p,d,u,f,m[1],m[2]);break;case"Q":u=m[1],f=m[2],m=o(p,d,m[1],m[2],m[3],m[4]);break;case"L":m=a(p,d,m[1],m[2]);break;case"H":m=a(p,d,m[1],d);break;case"V":m=a(p,d,p,m[1]);break;case"Z":m=a(p,d,l,c)}e=v,p=m[m.length-2],d=m[m.length-1],m.length>4?(i=m[m.length-4],s=m[m.length-3]):(i=p,s=d),r.push(m)}return r}function a(t,e,r,n){return["C",t,e,r,n,r,n]}function o(t,e,r,n,i,a){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{"svg-arc-to-cubic-bezier":308}],311:[function(t,e,r){"use strict";var n,i=t("svg-path-bounds"),a=t("parse-svg-path"),o=t("draw-svg-path"),s=t("is-svg-path"),l=t("bitmap-sdf"),c=document.createElement("canvas"),u=c.getContext("2d");function f(t,e){if(!s(t))throw Error("Argument should be valid svg path string");var r,n;e||(e={}),e.shape?(r=e.shape[0],n=e.shape[1]):(r=c.width=e.w||e.width||200,n=c.height=e.h||e.height||200);var f=Math.min(r,n),d=e.stroke||0,h=e.viewbox||e.viewBox||i(t),g=[r/(h[2]-h[0]),n/(h[3]-h[1])],m=Math.min(g[0]||0,g[1]||0)/2;if(u.fillStyle="black",u.fillRect(0,0,r,n),u.fillStyle="white",d&&("number"!=typeof d&&(d=1),u.strokeStyle=d>0?"white":"black",u.lineWidth=Math.abs(d)),u.translate(.5*r,.5*n),u.scale(m,m),p()){var v=new Path2D(t);u.fill(v),d&&u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),d&&u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*f})}function p(){if(null!=n)return n;var t=document.createElement("canvas").getContext("2d");if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D("M0,0h1v1h-1v-1Z");t.fillStyle="black",t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&&r.data&&255===r.data[3]}e.exports=f},{"bitmap-sdf":82,"draw-svg-path":126,"is-svg-path":238,"parse-svg-path":250,"svg-path-bounds":309}],312:[function(t,e,r){(function(e,n){(function(){var i=t("process/browser.js").nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function c(t,e){this._id=t,this._clearFn=e}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r.setImmediate="function"===typeof e?e:function(t){var e=l++,n=!(arguments.length<2)&&o.call(arguments,1);return s[e]=!0,i((function(){s[e]&&(n?t.apply(null,n):t.call(null),r.clearImmediate(e))})),e},r.clearImmediate="function"===typeof n?n:function(t){delete s[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":278,timers:312}],313:[function(e,r,n){!function(e){var n=/^\s+/,i=/\s+$/,a=0,o=e.round,s=e.min,l=e.max,c=e.random;function u(t,e){if(e=e||{},(t=t||"")instanceof u)return t;if(!(this instanceof u))return new u(t,e);var r=f(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=o(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=r.ok,this._tc_id=a++}function f(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,c=!1;return"string"==typeof t&&(t=X(t)),"object"==typeof t&&(Y(t.r)&&Y(t.g)&&Y(t.b)?(e=p(t.r,t.g,t.b),o=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):Y(t.h)&&Y(t.s)&&Y(t.v)?(n=H(t.s),i=H(t.v),e=m(t.h,n,i),o=!0,c="hsv"):Y(t.h)&&Y(t.s)&&Y(t.l)&&(n=H(t.s),a=H(t.l),e=h(t.h,n,a),o=!0,c="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=z(r),{ok:o,format:t.format||c,r:s(255,l(e.r,0)),g:s(255,l(e.g,0)),b:s(255,l(e.b,0)),a:r}}function p(t,e,r){return{r:255*N(t,255),g:255*N(e,255),b:255*N(r,255)}}function d(t,e,r){t=N(t,255),e=N(e,255),r=N(r,255);var n,i,a=l(t,e,r),o=s(t,e,r),c=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=c>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function h(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=N(t,360),e=N(e,100),r=N(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}function g(t,e,r){t=N(t,255),e=N(e,255),r=N(r,255);var n,i,a=l(t,e,r),o=s(t,e,r),c=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function m(t,r,n){t=6*N(t,360),r=N(r,100),n=N(n,100);var i=e.floor(t),a=t-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}function v(t,e,r,n){var i=[V(o(t).toString(16)),V(o(e).toString(16)),V(o(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function y(t,e,r,n,i){var a=[V(o(t).toString(16)),V(o(e).toString(16)),V(o(r).toString(16)),V(q(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function b(t,e,r,n){return[V(q(n)),V(o(t).toString(16)),V(o(e).toString(16)),V(o(r).toString(16))].join("")}function x(t,e){e=0===e?0:e||10;var r=u(t).toHsl();return r.s-=e/100,r.s=F(r.s),u(r)}function _(t,e){e=0===e?0:e||10;var r=u(t).toHsl();return r.s+=e/100,r.s=F(r.s),u(r)}function w(t){return u(t).desaturate(100)}function k(t,e){e=0===e?0:e||10;var r=u(t).toHsl();return r.l+=e/100,r.l=F(r.l),u(r)}function T(t,e){e=0===e?0:e||10;var r=u(t).toRgb();return r.r=l(0,s(255,r.r-o(-e/100*255))),r.g=l(0,s(255,r.g-o(-e/100*255))),r.b=l(0,s(255,r.b-o(-e/100*255))),u(r)}function M(t,e){e=0===e?0:e||10;var r=u(t).toHsl();return r.l-=e/100,r.l=F(r.l),u(r)}function A(t,e){var r=u(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,u(r)}function S(t){var e=u(t).toHsl();return e.h=(e.h+180)%360,u(e)}function E(t){var e=u(t).toHsl(),r=e.h;return[u(t),u({h:(r+120)%360,s:e.s,l:e.l}),u({h:(r+240)%360,s:e.s,l:e.l})]}function C(t){var e=u(t).toHsl(),r=e.h;return[u(t),u({h:(r+90)%360,s:e.s,l:e.l}),u({h:(r+180)%360,s:e.s,l:e.l}),u({h:(r+270)%360,s:e.s,l:e.l})]}function O(t){var e=u(t).toHsl(),r=e.h;return[u(t),u({h:(r+72)%360,s:e.s,l:e.l}),u({h:(r+216)%360,s:e.s,l:e.l})]}function L(t,e,r){e=e||6,r=r||30;var n=u(t).toHsl(),i=360/r,a=[u(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(u(n));return a}function I(t,e){e=e||6;for(var r=u(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(u({h:n,s:i,v:a})),a=(a+s)%1;return o}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,n,i=this.toRgb();return t=i.r/255,r=i.g/255,n=i.b/255,.2126*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=z(t),this._roundA=o(100*this._a)/100,this},toHsv:function(){var t=g(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=g(this._r,this._g,this._b),e=o(360*t.h),r=o(100*t.s),n=o(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=d(this._r,this._g,this._b),e=o(360*t.h),r=o(100*t.s),n=o(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return v(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return y(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*N(this._r,255))+"%",g:o(100*N(this._g,255))+"%",b:o(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*N(this._r,255))+"%, "+o(100*N(this._g,255))+"%, "+o(100*N(this._b,255))+"%)":"rgba("+o(100*N(this._r,255))+"%, "+o(100*N(this._g,255))+"%, "+o(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(D[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+b(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=u(t);r="#"+b(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(x,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},u.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:H(t[n]));t=r}return u(t,e)},u.equals=function(t,e){return!(!t||!e)&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:c(),g:c(),b:c()})},u.mix=function(t,e,r){r=0===r?0:r||50;var n=u(t).toRgb(),i=u(e).toRgb(),a=r/100;return u({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},u.readability=function(t,r){var n=u(t),i=u(r);return(e.max(n.getLuminance(),i.getLuminance())+.05)/(e.min(n.getLuminance(),i.getLuminance())+.05)},u.isReadable=function(t,e,r){var n,i,a=u.readability(t,e);switch(i=!1,(n=Z(r)).level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},u.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var c=0;c<e.length;c++)(n=u.readability(t,e[c]))>l&&(l=n,s=u(e[c]));return u.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,u.mostReadable(t,["#fff","#000"],r))};var P=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=u.hexNames=R(P);function R(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function z(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function N(t,r){j(t)&&(t="100%");var n=U(t);return t=s(r,l(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),e.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function F(t){return s(1,l(0,t))}function B(t){return parseInt(t,16)}function j(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function U(t){return"string"===typeof t&&-1!=t.indexOf("%")}function V(t){return 1==t.length?"0"+t:""+t}function H(t){return t<=1&&(t=100*t+"%"),t}function q(t){return e.round(255*parseFloat(t)).toString(16)}function G(t){return B(t)/255}var W=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(t){return!!W.CSS_UNIT.exec(t)}function X(t){t=t.replace(n,"").replace(i,"").toLowerCase();var e,r=!1;if(P[t])t=P[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=W.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=W.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=W.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=W.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=W.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=W.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=W.hex8.exec(t))?{r:B(e[1]),g:B(e[2]),b:B(e[3]),a:G(e[4]),format:r?"name":"hex8"}:(e=W.hex6.exec(t))?{r:B(e[1]),g:B(e[2]),b:B(e[3]),format:r?"name":"hex"}:(e=W.hex4.exec(t))?{r:B(e[1]+""+e[1]),g:B(e[2]+""+e[2]),b:B(e[3]+""+e[3]),a:G(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=W.hex3.exec(t))&&{r:B(e[1]+""+e[1]),g:B(e[2]+""+e[2]),b:B(e[3]+""+e[3]),format:r?"name":"hex"}}function Z(t){var e,r;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(r=(t.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:e,size:r}}"undefined"!==typeof r&&r.exports?r.exports=u:"function"===typeof t&&t.amd?t((function(){return u})):window.tinycolor=u}(Math)},{}],314:[function(t,e,r){"use strict";e.exports=a,e.exports.float32=e.exports.float=a,e.exports.fract32=e.exports.fract=i;var n=new Float32Array(1);function i(t,e){if(t.length){if(t instanceof Float32Array)return new Float32Array(t.length);e instanceof Float32Array||(e=a(t));for(var r=0,n=e.length;r<n;r++)e[r]=t[r]-e[r];return e}return a(t-a(t))}function a(t){return t.length?t instanceof Float32Array?t:new Float32Array(t):(n[0]=t,n[0])}},{}],315:[function(t,e,r){"use strict";var n=t("parse-unit");e.exports=s;var i=96;function a(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*s(r[1],t)}function o(t,e){var r=document.createElement("div");r.style["font-size"]="128"+t,e.appendChild(r);var n=a(r,"font-size")/128;return e.removeChild(r),n}function s(t,e){switch(e=e||document.body,t=(t||"px").trim().toLowerCase(),e!==window&&e!==document||(e=document.body),t){case"%":return e.clientHeight/100;case"ch":case"ex":return o(t,e);case"em":return a(e,"font-size");case"rem":return a(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return i;case"cm":return i/2.54;case"mm":return i/25.4;case"pt":return i/72;case"pc":return i/6}return 1}},{"parse-unit":251}],316:[function(e,r,n){!function(e,i){"object"===typeof n&&"undefined"!==typeof r?i(n):"function"===typeof t&&t.amd?t(["exports"],i):i((e=e||self).topojson=e.topojson||{})}(this,(function(t){"use strict";function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l<c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]<i&&(i=t[0]),t[0]>o&&(o=t[0]),t[1]<a&&(a=t[1]),t[1]>s&&(s=t[1])}function c(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"Point":l(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r<l;)(e=n(t[r],r))[0]<i&&(i=e[0]),e[0]>o&&(o=e[0]),e[1]<a&&(a=e[1]),e[1]>s&&(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){for(var r,n=t.length,i=n-e;i<--n;)r=t[i],t[i++]=t[n],t[n]=r}function a(t,e){return"string"===typeof e&&(e=t.objects[e]),"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map((function(e){return o(t,e)}))}:o(t,e)}function o(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,a=s(t,e);return null==r&&null==n?{type:"Feature",properties:i,geometry:a}:null==n?{type:"Feature",id:r,properties:i,geometry:a}:{type:"Feature",id:r,bbox:n,properties:i,geometry:a}}function s(t,e){var n=r(t.transform),a=t.arcs;function o(t,e){e.length&&e.pop();for(var r=a[t<0?~t:t],o=0,s=r.length;o<s;++o)e.push(n(r[o],o));t<0&&i(e,s)}function s(t){return n(t)}function l(t){for(var e=[],r=0,n=t.length;r<n;++r)o(t[r],e);return e.length<2&&e.push(e[0]),e}function c(t){for(var e=l(t);e.length<4;)e.push(e[0]);return e}function u(t){return t.map(c)}function f(t){var e,r=t.type;switch(r){case"GeometryCollection":return{type:r,geometries:t.geometries.map(f)};case"Point":e=s(t.coordinates);break;case"MultiPoint":e=t.coordinates.map(s);break;case"LineString":e=l(t.arcs);break;case"MultiLineString":e=t.arcs.map(l);break;case"Polygon":e=u(t.arcs);break;case"MultiPolygon":e=t.arcs.map(u);break;default:return null}return{type:r,coordinates:e}}return f(e)}function l(t,e){var r={},n={},i={},a=[],o=-1;function s(e){var r,n=t.arcs[e<0?~e:e],i=n[0];return t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1],e<0?[r,i]:[i,r]}function l(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t<0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r<0?~r:r];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(t){var e,r,a=s(t),o=a[0],l=a[1];if(e=i[o])if(delete i[e.end],e.push(t),e.end=l,r=n[l]){delete n[r.start];var c=r===e?e:e.concat(r);n[c.start=e.start]=i[c.end=r.end]=c}else n[e.start]=i[e.end]=e;else if(e=n[l])if(delete n[e.start],e.unshift(t),e.start=o,r=i[o]){delete i[r.end];var u=r===e?e:r.concat(e);n[u.start=r.start]=i[u.end=e.end]=u}else n[e.start]=i[e.end]=e;else n[(e=[t]).start=o]=i[e.end=l]=e})),l(i,n),l(n,i),e.forEach((function(t){r[t<0?~t:t]||a.push([t])})),a}function c(t){return s(t,u.apply(this,arguments))}function u(t,e,r){var n,i,a;if(arguments.length>1)n=f(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i<a;++i)n[i]=i;return{type:"MultiLineString",arcs:l(t,n)}}function f(t,e,r){var n,i=[],a=[];function o(t){var e=t<0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}function c(t){t.forEach(l)}function u(t){switch(n=t,t.type){case"GeometryCollection":t.geometries.forEach(u);break;case"LineString":s(t.arcs);break;case"MultiLineString":case"Polygon":l(t.arcs);break;case"MultiPolygon":c(t.arcs)}}return u(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}function p(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r<n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}function d(t){return s(t,h.apply(this,arguments))}function h(t,e){var r={},n=[],i=[];function a(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(a);break;case"Polygon":o(t.arcs);break;case"MultiPolygon":t.arcs.forEach(o)}}function o(t){t.forEach((function(e){e.forEach((function(e){(r[e=e<0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function c(e){return p(s(t,{type:"Polygon",arcs:[e]}).coordinates[0])}return e.forEach(a),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t<0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t<0?~t:t].length<2&&i.push(t)}))}))})),(n=(i=l(t,i)).length)>1)for(var a,o,s=1,u=c(i[0]);s<n;++s)(a=c(i[s]))>u&&(o=i[0],i[0]=i[s],i[s]=o,u=a);return i})).filter((function(t){return t.length>0}))}}function g(t,e){for(var r=0,n=t.length;r<n;){var i=r+n>>>1;t[i]<e?r=i+1:n=i}return r}function m(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t<0&&(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}function a(t,e){"GeometryCollection"===t.type?t.geometries.forEach((function(t){a(t,e)})):t.type in o&&o[t.type](t.arcs,e)}var o={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var s in t.forEach(a),e)for(var l=e[s],c=l.length,u=0;u<c;++u)for(var f=u+1;f<c;++f){var p,d=l[u],h=l[f];(p=r[d])[s=g(p,h)]!==h&&p.splice(s,0,h),(p=r[h])[s=g(p,d)]!==d&&p.splice(s,0,d)}return r}function v(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),p=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=p-n,n=p;l<c;)u[l]=t[l],++l;return u}}function y(t,e){if(t.transform)throw new Error("already quantized");if(e&&e.scale)l=t.bbox;else{if(!((r=Math.floor(e))>=2))throw new Error("n must be \u22652");var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=v(e),f=t.objects,p={};function d(t){return u(t)}function h(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(h)};break;case"Point":e={type:"Point",coordinates:d(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function g(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r<i;)((e=u(t[r],r))[0]||e[1])&&(a[n++]=e);return 1===n&&(a[n++]=[0,0]),a.length=n,a}for(c in f)p[c]=h(f[c]);return{type:"Topology",bbox:l,transform:e,objects:p,arcs:t.arcs.map(g)}}t.bbox=n,t.feature=a,t.merge=d,t.mergeArcs=h,t.mesh=c,t.meshArcs=u,t.neighbors=m,t.quantize=y,t.transform=r,t.untransform=v,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],317:[function(t,e,r){"use strict";var n=t("../prototype/is");e.exports=function(t){if("function"!==typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!==typeof t.length)return!1;if("function"!==typeof t.call)return!1;if("function"!==typeof t.apply)return!1}catch(e){return!1}return!n(t)}},{"../prototype/is":324}],318:[function(t,e,r){"use strict";var n=t("../value/is"),i=t("../object/is"),a=t("../string/coerce"),o=t("./to-short-string"),s=function(t,e){return t.replace("%v",o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if("default"in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{"../object/is":321,"../string/coerce":325,"../value/is":327,"./to-short-string":320}],319:[function(t,e,r){"use strict";e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(r){return null}}}},{}],320:[function(t,e,r){"use strict";var n=t("./safe-to-string"),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?"<Non-coercible to string value>":(e.length>100&&(e=e.slice(0,99)+"\u2026"),e=e.replace(i,(function(t){switch(t){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}},{"./safe-to-string":319}],321:[function(t,e,r){"use strict";var n=t("../value/is"),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&&hasOwnProperty.call(i,typeof t)}},{"../value/is":327}],322:[function(t,e,r){"use strict";var n=t("../lib/resolve-exception"),i=t("./is");e.exports=function(t){return i(t)?t:n(t,"%v is not a plain function",arguments[1])}},{"../lib/resolve-exception":318,"./is":323}],323:[function(t,e,r){"use strict";var n=t("../function/is"),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&&!i.test(a.call(t))}},{"../function/is":317}],324:[function(t,e,r){"use strict";var n=t("../object/is");e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}}},{"../object/is":321}],325:[function(t,e,r){"use strict";var n=t("../value/is"),i=t("../object/is"),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if("function"!==typeof e)return null;if(e===a)return null}try{return""+t}catch(r){return null}}},{"../object/is":321,"../value/is":327}],326:[function(t,e,r){"use strict";var n=t("../lib/resolve-exception"),i=t("./is");e.exports=function(t){return i(t)?t:n(t,"Cannot use %v",arguments[1])}},{"../lib/resolve-exception":318,"./is":327}],327:[function(t,e,r){"use strict";var n=void 0;e.exports=function(t){return t!==n&&null!==t}},{}],328:[function(t,e,n){(function(e){(function(){"use strict";var r=t("bit-twiddle"),i=t("dup"),a=t("buffer").Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o="undefined"!==typeof Uint8ClampedArray,s="undefined"!==typeof BigUint64Array,l="undefined"!==typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function p(t){if(t){var e=t.length||t.byteLength,n=r.log2(e);u[n].push(t)}}function d(t){p(t.buffer)}function h(t){t=r.nextPow2(t);var e=r.log2(t),n=u[e];return n.length>0?n.pop():new ArrayBuffer(t)}function g(t){return new Uint8Array(h(t),0,t)}function m(t){return new Uint16Array(h(2*t),0,t)}function v(t){return new Uint32Array(h(4*t),0,t)}function y(t){return new Int8Array(h(t),0,t)}function b(t){return new Int16Array(h(2*t),0,t)}function x(t){return new Int32Array(h(4*t),0,t)}function _(t){return new Float32Array(h(4*t),0,t)}function w(t){return new Float64Array(h(8*t),0,t)}function k(t){return o?new Uint8ClampedArray(h(t),0,t):g(t)}function T(t){return s?new BigUint64Array(h(8*t),0,t):null}function M(t){return l?new BigInt64Array(h(8*t),0,t):null}function A(t){return new DataView(h(t),0,t)}function S(t){t=r.nextPow2(t);var e=r.log2(t),n=f[e];return n.length>0?n.pop():new a(t)}n.free=function(t){if(a.isBuffer(t))f[r.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,n=0|r.log2(e);u[n].push(t)}},n.freeUint8=n.freeUint16=n.freeUint32=n.freeBigUint64=n.freeInt8=n.freeInt16=n.freeInt32=n.freeBigInt64=n.freeFloat32=n.freeFloat=n.freeFloat64=n.freeDouble=n.freeUint8Clamped=n.freeDataView=d,n.freeArrayBuffer=p,n.freeBuffer=function(t){f[r.log2(t.length)].push(t)},n.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return h(t);switch(e){case"uint8":return g(t);case"uint16":return m(t);case"uint32":return v(t);case"int8":return y(t);case"int16":return b(t);case"int32":return x(t);case"float":case"float32":return _(t);case"double":case"float64":return w(t);case"uint8_clamped":return k(t);case"bigint64":return M(t);case"biguint64":return T(t);case"buffer":return S(t);case"data":case"dataview":return A(t);default:return null}return null},n.mallocArrayBuffer=h,n.mallocUint8=g,n.mallocUint16=m,n.mallocUint32=v,n.mallocInt8=y,n.mallocInt16=b,n.mallocInt32=x,n.mallocFloat32=n.mallocFloat=_,n.mallocFloat64=n.mallocDouble=w,n.mallocUint8Clamped=k,n.mallocBigUint64=T,n.mallocBigInt64=M,n.mallocDataView=A,n.mallocBuffer=S,n.clearCache=function(){for(var t=0;t<32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"bit-twiddle":81,buffer:85,dup:128}],329:[function(t,e,r){var n=/[\'\"]/;e.exports=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}},{}],330:[function(t,e,r){"use strict";e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n<i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&&o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if("function"===typeof a[o]&&void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],331:[function(t,e,n){(function(t){(function(){function r(t,e){if(n("noDeprecation"))return t;var r=!1;function i(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function n(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=r}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],332:[function(t,e,r){var n=t("get-canvas-context");e.exports=function(t){return n("webgl",t)}},{"get-canvas-context":194}],333:[function(t,e,r){var n=t("../main"),i=t("object-assign"),a=n.instance();function o(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,i(o.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(t,e){if("string"===typeof t){var r=t.match(l);return r?r[0]:""}var n=this._validateYear(t),i=t.month(),a=""+this.toChineseMonth(n,i);return e&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(t){if("string"===typeof t){var e=t.match(c);return e?e[0]:""}var r=this._validateYear(t),n=t.month(),i=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i="\u95f0"+i),i},monthNamesShort:function(t){if("string"===typeof t){var e=t.match(u);return e?e[0]:""}var r=this._validateYear(t),n=t.month(),i=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i="\u95f0"+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))"\u95f0"===e[0]&&(r=!0,e=e.substring(1)),"\u6708"===e[e.length-1]&&(e=e.substring(0,e.length-1)),n=1+["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"].indexOf(e);else{var i=e[e.length-1];r="i"===i||"I"===i}return this.toMonthIndex(t,n,r)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&&(t=t.year()),"number"!==typeof t||t<1888||t>2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&&e!==i||e<1||e>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&&e<=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e<0||e>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e<r?e+1:e:e+1},intercalaryMonth:function(t){t=this._validateYear(t);var e=f[t-f[0]]>>13;return e},isIntercalaryMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=p[o-p[0]],l=s>>9&4095,c=s>>5&15,u=31&s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),"d");var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&&(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=r&1<<12-e?30:29;return i},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=h(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=d(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if("y"===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),p=a&&f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);p!==u&&l.month(p)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],p=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function d(t,e,r,n){var i,a;if("object"===typeof t)i=t,a=e||{};else{if(!("number"===typeof t&&t>=1888&&t<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"===typeof e&&e>=1&&e<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"===typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");i={year:t,month:e,day:r},a=n||{}}var o=p[i.year-p[0]],s=i.year<<9|i.month<<5|i.day;a.year=s>=o?i.year:i.year-1,o=p[a.year-p[0]];var l,c=new Date(o>>9&4095,(o>>5&15)-1,31&o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var d,h=f[a.year-f[0]];for(d=0;d<13;d++){var g=h&1<<12-d?30:29;if(l<g)break;l-=g}var m=h>>13;return!m||d<m?(a.isIntercalary=!1,a.month=1+d):d===m?(a.isIntercalary=!0,a.month=d):(a.isIntercalary=!1,a.month=d),a.day=1+l,a}function h(t,e,r,n,i){var a,o,s;if("object"===typeof t)o=t,a=e||{};else{var l;if(!("number"===typeof t&&t>=1888&&t<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"===typeof e&&e>=1&&e<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"===typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"===typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],d=u>>13;c=d&&(o.month>d||o.isIntercalary)?o.month:o.month-1;for(var h=0;h<c;h++)s+=u&1<<12-h?30:29;var g=p[o.year-p[0]],m=new Date(g>>9&4095,(g>>5&15)-1,(31&g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}},{"../main":347,"object-assign":247}],334:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4===3||t%4===-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{"../main":347,"object-assign":247}],335:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n>=2&&n<=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()<0?1:0),e=i.month(),(r=i.day())+(e>1?16:0)+(e>2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=a},{"../main":347,"object-assign":247}],336:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4===3||t%4===-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{"../main":347,"object-assign":247}],337:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t<0?t+1:t)+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&&this.leapYear(t)||8===e&&5===o(this.daysInYear(t),10)?30:9===e&&3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t<=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s<e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s<e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)<3&&n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r===356?2:r-e===382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t>=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t<this.toJD(e,1,1)?7:1;t>this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{"../main":347,"object-assign":247}],338:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t<=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{"../main":347,"object-assign":247}],339:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()<0?e.year()+1:e.year())%4===0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t<0&&t++,e<=2&&(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i<14?1:13),o=r-Math.floor(a>2?4716:4715),s=e-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{"../main":347,"object-assign":247}],340:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t<0?400:0,e+"."+Math.floor(t/20)+"."+t%20},forYear:function(t){if((t=t.split(".")).length<3)throw"Invalid Mayan year";for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)>19||r>0&&n<0)throw"Invalid Mayan year";e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o(8+(t-=this.jdEpoch)+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s(20+(t-=this.jdEpoch),20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{"../main":347,"object-assign":247}],341:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar;var o=n.instance("gregorian");i(a.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(e.year()+(e.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())<0&&t++;for(var a=i.day(),s=1;s<i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t>=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{"../main":347,"object-assign":247}],342:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),"undefined"===typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r<=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),"undefined"===typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&&(o=r,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)++o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r<t+2;r++)"undefined"===typeof this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{"../main":347,"object-assign":247}],343:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Ch\xe6harshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Ch\xe6","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t>=0?474:473),s=474+o(a,2820);return r+(e<=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l<=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{"../main":347,"object-assign":247}],344:[function(t,e,r){var n=t("../main"),i=t("object-assign"),a=n.instance();function o(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,i(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return t=this._t2gYear(e.year()),a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return t=this._t2gYear(i.year()),a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=this._t2gYear(i.year()),a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{"../main":347,"object-assign":247}],345:[function(t,e,r){var n=t("../main"),i=t("object-assign"),a=n.instance();function o(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,i(o.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return t=this._t2gYear(e.year()),a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return t=this._t2gYear(i.year()),a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=this._t2gYear(i.year()),a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),n.calendars.thai=o},{"../main":347,"object-assign":247}],346:[function(t,e,r){var n=t("../main"),i=t("object-assign");function a(t){this.local=this.regionalOptions[t||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a<o.length;a++){if(o[a]>r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(t=null!=t.year?t.year:t)>=1276&&t<=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{"../main":347,"object-assign":247}],347:[function(t,e,r){var n=t("object-assign");function i(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return"000000".substring(0,e-(t=""+t).length)+t}function s(){this.shortYearCutoff="+10"}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[""]}n(i.prototype,{instance:function(t,e){t=(t||"gregorian").toLowerCase(),e=e||"";var r=this._localCals[t+"-"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+"-"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&&t.year?t.calendar():"string"===typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+"").replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(0===a?"":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,"y")},month:function(t){return 0===arguments.length?this._month:this.set(t,"m")},day:function(t){return 0===arguments.length?this._day:this.set(t,"d")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(e.year()<0?"-":"")+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,"d"===r||"w"===r){var n=t.toJD()+e*("w"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+("y"===r?e:0),o=t.monthOfYear()+("m"===r?e:0),s=(i=t.day(),function(t){for(;o<t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o>e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)});"y"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):"m"===r&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(c){throw this._validateLevel--,c}},_correctAdd:function(t,e,r,n){if(!this.hasYearZero&&("y"===n||"m"===n)&&(0===e[0]||t.year()>0!==e[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var n="y"===r?e:t.year(),i="m"===r?e:t.month(),a="d"===r?e:t.day();return"y"!==r&&"m"!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth<this.monthsInYear(i)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&&this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(a){throw this._validateLevel--,a}}}),l.prototype=new s,n(l.prototype,{name:"Gregorian",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(t=e.year()+(e.year()<0?1:0))%4===0&&(t%100!==0||t%400===0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<3&&(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=1524+(r=e+1+r-Math.floor(r/4)),i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o>13.5?13:1),c=i-(l>2.5?4716:4715);return c<=0&&c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{"object-assign":247}],348:[function(t,e,r){var n=t("object-assign"),i=t("./main");n(i.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),i.local=i.regionalOptions[""],n(i.cdate.prototype,{formatDate:function(t,e){return"string"!==typeof t&&(e=t,t=""),this._calendar.formatDate(t||"",this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(t,e,r){if("string"!==typeof t&&(r=e,e=t,t=""),!e)return"";if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[""].invalidFormat;t=t||this.local.dateFormat;for(var n=(r=r||{}).dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,o=r.monthNumbers||this.local.monthNumbers,s=r.monthNamesShort||this.local.monthNamesShort,l=r.monthNames||this.local.monthNames,c=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;b+n<t.length&&t.charAt(b+n)===e;)n++;return b+=n-1,Math.floor(n/(r||1))>1}),u=function(t,e,r,n){var i=""+e;if(c(t,n))for(;i.length<r;)i="0"+i;return i},f=function(t,e,r,n){return c(t)?n[e]:r[e]},p=this,d=function(t){return"function"===typeof o?o.call(p,t,c("m")):m(u("m",t.month(),2))},h=function(t,e){return e?"function"===typeof l?l.call(p,t):l[t.month()-p.minMonth]:"function"===typeof s?s.call(p,t):s[t.month()-p.minMonth]},g=this.local.digits,m=function(t){return r.localNumbers&&g?g(t):t},v="",y=!1,b=0;b<t.length;b++)if(y)"'"!==t.charAt(b)||c("'")?v+=t.charAt(b):y=!1;else switch(t.charAt(b)){case"d":v+=m(u("d",e.day(),2));break;case"D":v+=f("D",e.dayOfWeek(),n,a);break;case"o":v+=u("o",e.dayOfYear(),3);break;case"w":v+=u("w",e.weekOfYear(),2);break;case"m":v+=d(e);break;case"M":v+=h(e,c("M"));break;case"y":v+=c("y",2)?e.year():(e.year()%100<10?"0":"")+e.year()%100;break;case"Y":c("Y",2),v+=e.formatYear();break;case"J":v+=e.toJD();break;case"@":v+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":v+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":c("'")?v+="'":y=!0;break;default:v+=t.charAt(b)}return v},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[""].invalidArguments;if(""===(e="object"===typeof e?e.toString():e+""))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n="string"!==typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,p=-1,d=-1,h=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n<t.length&&t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))>1},b=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(t)+1],o=new RegExp("^-?\\d{1,"+a+"}"),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},x=this,_=function(){if("function"===typeof l){y("m");var t=l.call(x,e.substring(M));return M+=t.length,t}return b("m")},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s<o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+x.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[""].unknownNameAt).replace(/\{0\}/,M)},k=function(){if("function"===typeof u){var t=y("M")?u.call(x,e.substring(M)):c.call(x,e.substring(M));return M+=t.length,t}return w("M",c,u)},T=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A<t.length;A++)if(v)"'"!==t.charAt(A)||y("'")?T():v=!1;else switch(t.charAt(A)){case"d":h=b("d");break;case"D":w("D",a,o);break;case"o":g=b("o");break;case"w":b("w");break;case"m":d=_();break;case"M":d=k();break;case"y":var S=A;m=!y("y",2),A=S,p=b("y",2);break;case"Y":p=b("Y",2);break;case"J":f=b("J")+.5,"."===e.charAt(M)&&(M++,b("J"));break;case"@":f=b("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=b("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":M=e.length;break;case"'":y("'")?T():v=!0;break;default:T()}if(M<e.length)throw i.local.unexpectedText||i.regionalOptions[""].unexpectedText;if(-1===p?p=this.today().year():p<100&&m&&(p+=-1===n?1900:this.today().year()-this.today().year()%100-(p<=n?0:100)),"string"===typeof d&&(d=s.call(this,p,d)),g>-1){d=1,h=g;for(var E=this.daysInMonth(p,d);h>E;E=this.daysInMonth(p,d))d++,h-=E}return f>-1?this.fromJD(f):this.newDate(p,d,h)},determineDate:function(t,e,r,n,i){r&&"object"!==typeof r&&(i=n,n=r,r=null),"string"!==typeof n&&(i=n,n="");var a=this,o=function(t){try{return a.parseDate(n,t,i)}catch(l){}for(var e=((t=t.toLowerCase()).match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||"d"),s=o.exec(t);return e};return e=e?e.newDate():null,t=null==t?e:"string"===typeof t?o(t):"number"===typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,"d"):a.newDate(t)}})},{"./main":347,"object-assign":247}],349:[function(t,e,r){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],350:[function(t,e,r){"use strict";var n=t("./arrow_paths"),i=t("../../plots/font_attributes"),a=t("../../plots/cartesian/constants"),o=t("../../plot_api/plot_template").templatedArray;t("../../constants/axis_placeable_objects"),e.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:i({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:i({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../constants/axis_placeable_objects":484,"../../plot_api/plot_template":555,"../../plots/cartesian/constants":573,"../../plots/font_attributes":594,"./arrow_paths":349}],351:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("./draw").draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},"range"===a&&s(e,r),"range"===o&&s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t["a"+a],l=t[a+"ref"],c=t["a"+a+"ref"],u=t["_"+a+"padplus"],f=t["_"+a+"padminus"],p={x:1,y:-1}[a]*t[a+"shift"],d=3*t.arrowsize*t.arrowwidth||0,h=d+p,g=d-p,m=3*t.startarrowsize*t.arrowwidth||0,v=m+p,y=m-p;if(c===l){var b=i.findExtremes(e,[e.r2c(o)],{ppadplus:h,ppadminus:g}),x=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[b.min[0],x.min[0]],max:[b.max[0],x.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,h,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&&t._fullData.length)return n.syncOrAsync([a,o],t)}},{"../../lib":515,"../../plots/cartesian/axes":566,"./draw":356}],352:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("../../plot_api/plot_template").arrayEditor;function o(t,e){var r=l(t,e);return r.on.length>0||r.explicitOff.length>0}function s(t,e){var r,o,s=l(t,e),c=s.on,u=s.off.concat(s.explicitOff),f={},p=t._fullLayout.annotations;if(c.length||u.length){for(r=0;r<c.length;r++)(o=a(t.layout,"annotations",p[c[r]])).modifyItem("visible",!0),n.extendFlat(f,o.getUpdateObj());for(r=0;r<u.length;r++)(o=a(t.layout,"annotations",p[u[r]])).modifyItem("visible",!1),n.extendFlat(f,o.getUpdateObj());return i.call("update",t,{},f)}}function l(t,e){var r,n,i,a,o,s,l,u=t._fullLayout.annotations,f=[],p=[],d=[],h=(e||[]).length;for(r=0;r<u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n<h;n++)if(s=(o=e[n]).xaxis,l=o.yaxis,s._id===i.xref&&l._id===i.yref&&s.d2r(o.x)===c(i._xclick,s)&&l.d2r(o.y)===c(i._yclick,l)){(i.visible?"onout"===a?p:d:f).push(r);break}n===h&&i.visible&&"onout"===a&&p.push(r)}return{on:f,off:p,explicitOff:d}}function c(t,e){return"log"===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:o,onClick:s}},{"../../lib":515,"../../plot_api/plot_template":555,"../../registry":647}],353:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../color");e.exports=function(t,e,r,a){a("opacity");var o=a("bgcolor"),s=a("bordercolor"),l=i.opacity(s);a("borderpad");var c=a("borderwidth"),u=a("showarrow");if(a("text",u?" ":r._dfltTitle.annotation),a("textangle"),n.coerceFont(a,"font",r.font),a("width"),a("align"),a("height")&&a("valign"),u){var f,p,d=a("arrowside");-1!==d.indexOf("end")&&(f=a("arrowhead"),p=a("arrowsize")),-1!==d.indexOf("start")&&(a("startarrowhead",f),a("startarrowsize",p)),a("arrowcolor",l?e.bordercolor:i.defaultLine),a("arrowwidth",2*(l&&c||1)),a("standoff"),a("startstandoff")}var h=a("hovertext"),g=r.hoverlabel||{};if(h){var m=a("hoverlabel.bgcolor",g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a("hoverlabel.bordercolor",g.bordercolor||i.contrast(m));n.coerceFont(a,"hoverlabel.font",{family:g.font.family,size:g.font.size,color:g.font.color||v})}a("captureevents",!!h)}},{"../../lib":515,"../color":367}],354:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib/to_log_range");e.exports=function(t,e,r,a){e=e||{};var o="log"===r&&"linear"===e.type,s="linear"===r&&"log"===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),p=0;p<u.length;p++)l=u[p],c="annotations["+p+"].",l[f+"ref"]===e._id&&d(f),l["a"+f+"ref"]===e._id&&d("a"+f);function d(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{"../../lib/to_log_range":543,"fast-isnumeric":190}],355:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("../../plots/array_container_defaults"),o=t("./common_defaults"),s=t("./attributes");function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a("visible"),c=a("clicktoshow");if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=["x","y"],p=[-10,-30],d={_fullLayout:r},h=0;h<2;h++){var g=f[h],m=i.coerceRef(t,e,d,g,"","paper");if("paper"!==m&&i.getFromId(d,m)._annIndices.push(e._index),i.coercePosition(e,d,a,m,g,.5),u){var v="a"+g,y=i.coerceRef(t,e,d,v,"pixel",["pixel","paper"]);"pixel"!==y&&y!==m&&(y=e[v]="pixel");var b="pixel"===y?p[h]:.4;i.coercePosition(e,d,a,y,v,b)}a(g+"anchor"),a(g+"shift")}if(n.noneOrAll(t,e,["x","y"]),u&&n.noneOrAll(t,e,["ax","ay"]),c){var x=a("xclick"),_=a("yclick");e._xclick=void 0===x?e.x:i.cleanPosition(x,d,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,d,e.yref)}}}e.exports=function(t,e){a(t,e,{name:"annotations",handleItemDefaults:l})}},{"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/cartesian/axes":566,"./attributes":350,"./common_defaults":353}],356:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../registry"),a=t("../../plots/plots"),o=t("../../lib"),s=o.strTranslate,l=t("../../plots/cartesian/axes"),c=t("../color"),u=t("../drawing"),f=t("../fx"),p=t("../../lib/svg_text_utils"),d=t("../../lib/setcursor"),h=t("../dragelement"),g=t("../../plot_api/plot_template").arrayEditor,m=t("./draw_arrow_head");function v(t){var e=t._fullLayout;e._infolayer.selectAll(".annotation").remove();for(var r=0;r<e.annotations.length;r++)e.annotations[r].visible&&y(t,r);return a.previousPromises(t)}function y(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&&n.setScale(),i&&i.setScale(),x(t,r,e,!1,n,i)}function b(t,e,r,n,i){var a=i[r],o=i[r+"ref"],s=-1!==r.indexOf("y"),c="domain"===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,y){var x,_,w=t._fullLayout,k=t._fullLayout._size,T=t._context.edits;a?(x="annotation-"+a,_=a+".annotations"):(x="annotation",_="annotations");var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll("."+x+'[data-index="'+r+'"]').remove();var C="clip"+w._uid+"_ann"+r;if(e._input&&!1!==e.visible){var O={x:{},y:{}},L=+e.textangle||0,I=w._infolayer.append("g").classed(x,!0).attr("data-index",String(r)).style("opacity",e.opacity),P=I.append("g").classed("annotation-text-g",!0),D=T[e.showarrow?"annotationTail":"annotationPosition"],R=e.captureevents||T.annotationText||D,z=P.append("g").style("pointer-events",R?"all":null).call(d,"pointer").on("click",(function(){t._dragging=!1,t.emit("plotly_clickannotation",W(n.event))}));e.hovertext&&z.on("mouseover",(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on("mouseout",(function(){f.loneUnhover(w._hoverlayer.node())}));var N=e.borderwidth,F=e.borderpad,B=N+F,j=z.append("rect").attr("class","bg").style("stroke-width",N+"px").call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll("#"+C).data(U?[0]:[]);V.enter().append("clipPath").classed("annclip",!0).attr("id",C).append("rect"),V.exit().remove();var H=e.font,q=w._meta?o.templateString(e.text,w._meta):e.text,G=z.append("text").classed("annotation-text",!0).text(q);T.annotationText?G.call(p.makeEditable,{delegate:z,gd:t}).call(Y).on("edit",(function(r){e.text=r,this.call(Y),S("text",r),v&&v.autorange&&A(v._name+".autorange",!0),y&&y.autorange&&A(y._name+".autorange",!0),i.call("_guiRelayout",t,E())})):G.call(Y)}else n.selectAll("#"+C).remove();function W(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&&(n.subplotId=a),n}function Y(r){return r.call(u.font,H).attr({"text-anchor":{left:"start",right:"end"}[e.align]||"middle"}),p.convertToTspans(r,t,X),r}function X(){var r=G.selectAll("a");1===r.size()&&r.text()===G.text()&&z.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(j.node());var n=z.select(".annotation-text-math-group"),f=!n.empty(),g=u.bBox((f?n:G).node()),x=g.width,_=g.height,M=e.width||x,R=e.height||_,F=Math.round(M+2*B),H=Math.round(R+2*B);function q(t,e){return"auto"===e&&(e=t<1/3?"left":t>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var Y=!1,X=["x","y"],Z=0;Z<X.length;Z++){var K,J,$,Q,tt,et=X[Z],rt=e[et+"ref"]||et,nt=e["a"+et+"ref"],it={x:v,y:y}[et],at=(L+("x"===et?0:-90))*Math.PI/180,ot=F*Math.cos(at),st=H*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+"anchor"],ut=e[et+"shift"]*("x"===et?1:-1),ft=O[et],pt=l.getRefType(rt);if(it&&"domain"!==pt){var dt=it.r2fraction(e[et]);(dt<0||dt>1)&&(nt===rt?((dt=it.r2fraction(e["a"+et]))<0||dt>1)&&(Y=!0):Y=!0),K=it._offset+it.r2p(e[et]),Q=.5}else{var ht="domain"===pt;"x"===et?($=e[et],K=ht?it._offset+it._length*$:K=k.l+k.w*$):($=1-e[et],K=ht?it._offset+it._length*$:K=k.t+k.h*$),Q=e.showarrow?.5:$}if(e.showarrow){ft.head=K;var gt=e["a"+et];if(tt=ot*q(.5,e.xanchor)-st*q(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);"domain"===mt?("y"===et&&(gt=1-gt),ft.tail=it._offset+it._length*gt):"paper"===mt?"y"===et?(gt=1-gt,ft.tail=k.t+k.h*gt):ft.tail=k.l+k.w*gt:ft.tail=it._offset+it.r2p(gt),J=tt}else ft.tail=K+gt,J=tt+gt;ft.text=ft.tail+tt;var vt=w["x"===et?"width":"height"];if("paper"===rt&&(ft.head=o.constrain(ft.head,1,vt-1)),"pixel"===nt){var yt=-Math.max(ft.tail-3,ft.text),bt=Math.min(ft.tail+3,ft.text)-vt;yt>0?(ft.tail+=yt,ft.text+=yt):bt>0&&(ft.tail-=bt,ft.text-=bt)}ft.tail+=ut,ft.head+=ut}else J=tt=lt*q(Q,ct),ft.text=K+tt;ft.text+=ut,tt+=ut,J+=ut,e["_"+et+"padplus"]=lt/2+J,e["_"+et+"padminus"]=lt/2-J,e["_"+et+"size"]=lt,e["_"+et+"shift"]=tt}if(Y)z.remove();else{var xt=0,_t=0;if("left"!==e.align&&(xt=(M-x)*("center"===e.align?.5:1)),"top"!==e.valign&&(_t=(R-_)*("middle"===e.valign?.5:1)),f)n.select("svg").attr({x:B+xt-1,y:B+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=B+_t-g.top,kt=B+xt-g.left;G.call(p.positionText,kt,wt).call(u.setClipUrl,U?C:null,t)}V.select("rect").call(u.setRect,B,B,M,R),j.call(u.setRect,N/2,N/2,F-N,H-N),z.call(u.setTranslate,Math.round(O.x.text-F/2),Math.round(O.y.text-H/2)),P.attr({transform:"rotate("+L+","+O.x.text+","+O.y.text+")"});var Tt,Mt=function(r,n){I.selectAll(".annotation-arrow-g").remove();var l=O.x.head,f=O.y.head,p=O.x.tail+r,d=O.y.tail+n,g=O.x.text+r,x=O.y.text+n,_=o.rotationXYMatrix(L,g,x),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr("width"),D=+j.attr("height"),R=g-.5*C,N=R+C,F=x-.5*D,B=F+D,U=[[R,F,R,B],[R,B,N,B],[N,B,N,F],[N,F,R,F]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(p,d,l,f,t[0],t[1],t[2],t[3]);e&&(p=e.x,d=e.y)}));var V=e.arrowwidth,H=e.arrowcolor,q=e.arrowside,G=I.append("g").style({opacity:c.opacity(H)}).classed("annotation-arrow-g",!0),W=G.append("path").attr("d","M"+p+","+d+"L"+l+","+f).style("stroke-width",V+"px").call(c.stroke,c.rgb(H));if(m(W,q,e),T.annotationPosition&&W.node().parentNode&&!a){var Y=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-p,2)+Math.pow(f-d,2));Y+=e.standoff*(p-l)/Z,X+=e.standoff*(d-f)/Z}var K,J,$=G.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(p-Y)+","+(d-X),transform:s(Y,X)}).style("stroke-width",V+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");h.init({element:$.node(),gd:t,prepFn:function(){var t=u.getTranslate(z);K=t.x,J=t.y,v&&v.autorange&&A(v._name+".autorange",!0),y&&y.autorange&&A(y._name+".autorange",!0)},moveFn:function(t,r){var n=w(K,J),i=n[0]+t,a=n[1]+r;z.call(u.setTranslate,i,a),S("x",b(v,t,"x",k,e)),S("y",b(y,r,"y",k,e)),e.axref===e.xref&&S("ax",b(v,t,"ax",k,e)),e.ayref===e.yref&&S("ay",b(y,r,"ay",k,e)),G.attr("transform",s(t,r)),P.attr({transform:"rotate("+L+","+i+","+a+")"})},doneFn:function(){i.call("_guiRelayout",t,E());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}};e.showarrow&&Mt(0,0),D&&h.init({element:z.node(),gd:t,prepFn:function(){Tt=P.attr("transform")},moveFn:function(t,r){var n="pointer";if(e.showarrow)e.axref===e.xref?S("ax",b(v,t,"ax",k,e)):S("ax",e.ax+t),e.ayref===e.yref?S("ay",b(y,r,"ay",k.w,e)):S("ay",e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=b(v,t,"x",k,e);else{var l=e._xsize/k.w,c=e.x+(e._xshift-e.xshift)/k.w-l/2;i=h.align(c+t/k.w,l,0,1,e.xanchor)}if(y)o=b(y,r,"y",k,e);else{var u=e._ysize/k.h,f=e.y-(e._yshift+e.yshift)/k.h-u/2;o=h.align(f-r/k.h,u,0,1,e.yanchor)}S("x",i),S("y",o),v&&y||(n=h.getCursor(v?.5:i,y?.5:o,e.xanchor,e.yanchor))}P.attr({transform:s(t,r)+Tt}),d(z,n)},clickFn:function(r,n){e.captureevents&&t.emit("plotly_clickannotation",W(n))},doneFn:function(){d(z),i.call("_guiRelayout",t,E());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}}e.exports={draw:v,drawOne:y,drawRaw:x}},{"../../lib":515,"../../lib/setcursor":536,"../../lib/svg_text_utils":541,"../../plot_api/plot_template":555,"../../plots/cartesian/axes":566,"../../plots/plots":628,"../../registry":647,"../color":367,"../dragelement":386,"../drawing":389,"../fx":407,"./draw_arrow_head":357,"@plotly/d3":58}],357:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../color"),a=t("./arrow_paths"),o=t("../../lib"),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,p,d=t.node(),h=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf("start")>=0,b=e.indexOf("end")>=0,x=h.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if("line"===d.nodeName){o={x:+t.attr("x1"),y:+t.attr("y1")},u={x:+t.attr("x2"),y:+t.attr("y2")};var w=o.x-u.x,k=o.y-u.y;if(p=(f=Math.atan2(k,w))+Math.PI,x&&_&&x+_>Math.sqrt(w*w+k*k))return void D();if(x){if(x*x>w*w+k*k)return void D();var T=x*Math.cos(f),M=x*Math.sin(f);u.x+=T,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+k*k)return void D();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if("path"===d.nodeName){var E=d.getTotalLength(),C="";if(E<x+_)return void D();var O=d.getPointAtLength(0),L=d.getPointAtLength(.1);f=Math.atan2(O.y-L.y,O.x-L.x),o=d.getPointAtLength(Math.min(_,E)),C="0px,"+_+"px,";var I=d.getPointAtLength(E),P=d.getPointAtLength(E-.1);p=Math.atan2(I.y-P.y,I.x-P.x),u=d.getPointAtLength(Math.max(0,E-x)),C+=E-(C?_+x:x)+"px,"+E+"px",t.style("stroke-dasharray",C)}function D(){t.style("stroke-dasharray","0px,100px")}function R(e,a,o,u){e.path&&(e.noRotate&&(o=0),n.select(d.parentNode).append("path").attr({class:t.attr("class"),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),"stroke-width":0}))}y&&R(g,o,f,v),b&&R(h,u,p,m)}},{"../../lib":515,"../color":367,"./arrow_paths":349,"@plotly/d3":58}],358:[function(t,e,r){"use strict";var n=t("./draw"),i=t("./click");e.exports={moduleType:"component",name:"annotations",layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),includeBasePlot:t("../../plots/cartesian/include_components")("annotations"),calcAutorange:t("./calc_autorange"),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t("./convert_coords")}},{"../../plots/cartesian/include_components":577,"./attributes":350,"./calc_autorange":351,"./click":352,"./convert_coords":354,"./defaults":355,"./draw":356}],359:[function(t,e,r){"use strict";var n=t("../annotations/attributes"),i=t("../../plot_api/edit_types").overrideAll,a=t("../../plot_api/plot_template").templatedArray;e.exports=i(a("annotation",{visible:n.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")},{"../../plot_api/edit_types":548,"../../plot_api/plot_template":555,"../annotations/attributes":350}],360:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes");function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r<e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(".annotation-"+t.id).remove()}},{"../../lib":515,"../../plots/cartesian/axes":566}],361:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("../../plots/array_container_defaults"),o=t("../annotations/common_defaults"),s=t("./attributes");function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+"axis",a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l("visible")&&(o(t,e,a.fullLayout,l),c("x"),c("y"),c("z"),n.noneOrAll(t,e,["x","y","z"]),e.xref="x",e.yref="y",e.zref="z",l("xanchor"),l("yanchor"),l("xshift"),l("yshift"),e.showarrow&&(e.axref="pixel",e.ayref="pixel",l("ax",-10),l("ay",-30),n.noneOrAll(t,e,["ax","ay"])))}e.exports=function(t,e,r){a(t,e,{name:"annotations",handleItemDefaults:l,fullLayout:r.fullLayout})}},{"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/cartesian/axes":566,"../annotations/common_defaults":353,"./attributes":359}],362:[function(t,e,r){"use strict";var n=t("../annotations/draw").drawRaw,i=t("../../plots/gl3d/project"),a=["x","y","z"];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s<o.length;s++){for(var l=o[s],c=!1,u=0;u<3;u++){var f=a[u],p=l[f],d=e[f+"axis"].r2fraction(p);if(d<0||d>1){c=!0;break}}c?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{"../../plots/gl3d/project":616,"../annotations/draw":356}],363:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib");function a(t,e){var r=n.subplotsRegistry.gl3d;if(r)for(var a=r.attrRegex,o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];a.test(l)&&(t[l].annotations||[]).length&&(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}}e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:t("./attributes")}}},layoutAttributes:t("./attributes"),handleDefaults:t("./defaults"),includeBasePlot:a,convert:t("./convert"),draw:t("./draw")}},{"../../lib":515,"../../registry":647,"./attributes":359,"./convert":360,"./defaults":361,"./draw":362}],364:[function(t,e,r){"use strict";e.exports=t("world-calendars/dist/main"),t("world-calendars/dist/plus"),t("world-calendars/dist/calendars/chinese"),t("world-calendars/dist/calendars/coptic"),t("world-calendars/dist/calendars/discworld"),t("world-calendars/dist/calendars/ethiopian"),t("world-calendars/dist/calendars/hebrew"),t("world-calendars/dist/calendars/islamic"),t("world-calendars/dist/calendars/julian"),t("world-calendars/dist/calendars/mayan"),t("world-calendars/dist/calendars/nanakshahi"),t("world-calendars/dist/calendars/nepali"),t("world-calendars/dist/calendars/persian"),t("world-calendars/dist/calendars/taiwan"),t("world-calendars/dist/calendars/thai"),t("world-calendars/dist/calendars/ummalqura")},{"world-calendars/dist/calendars/chinese":333,"world-calendars/dist/calendars/coptic":334,"world-calendars/dist/calendars/discworld":335,"world-calendars/dist/calendars/ethiopian":336,"world-calendars/dist/calendars/hebrew":337,"world-calendars/dist/calendars/islamic":338,"world-calendars/dist/calendars/julian":339,"world-calendars/dist/calendars/mayan":340,"world-calendars/dist/calendars/nanakshahi":341,"world-calendars/dist/calendars/nepali":342,"world-calendars/dist/calendars/persian":343,"world-calendars/dist/calendars/taiwan":344,"world-calendars/dist/calendars/thai":345,"world-calendars/dist/calendars/ummalqura":346,"world-calendars/dist/main":347,"world-calendars/dist/plus":348}],365:[function(t,e,r){"use strict";var n=t("./calendars"),i=t("../../lib"),a=t("../../constants/numerical"),o=a.EPOCHJD,s=a.ONEDAY,l={valType:"enumerated",values:i.sortObjectKeys(n.calendars),editType:"calc",dflt:"gregorian"},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u=function(t,e,r,n){for(var i=0;i<r.length;i++)c(t,e,r[i]+"calendar",n.calendar)},f={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},p={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},d={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},h="##",g={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:h,w:h,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function m(t,e,r){for(var n,i,a,l,c,u=Math.floor((e+.05)/s)+o,f=y(r).fromJD(u),p=0;-1!==(p=t.indexOf("%",p));)"0"===(n=t.charAt(p+1))||"-"===n||"_"===n?(a=3,i=t.charAt(p+2),"_"===n&&(n="-")):(i=n,n="0",a=2),(l=g[i])?(c=l===h?h:f.formatDate(l[n]),t=t.substr(0,p)+c+t.substr(p+a),p+=c.length):p+=a;return t}var v={};function y(t){var e=v[t];return e||(e=v[t]=n.instance(t))}function b(t){return i.extendFlat({},l,{description:t})}function x(t){return"Sets the calendar system to use with `"+t+"` date data."}var _={xcalendar:b(x("x"))},w=i.extendFlat({},_,{ycalendar:b(x("y"))}),k=i.extendFlat({},w,{zcalendar:b(x("z"))}),T=b(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));e.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:k,surface:k,mesh3d:k,scattergl:w,ohlc:_,candlestick:_},layout:{calendar:b(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:T},yaxis:{calendar:T},scene:{xaxis:{calendar:T},yaxis:{calendar:T},zaxis:{calendar:T}},polar:{radialaxis:{calendar:T}}},transforms:{filter:{valuecalendar:b(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:b(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:u,CANONICAL_SUNDAY:p,CANONICAL_TICK:f,DFLTRANGE:d,getCal:y,worldCalFmt:m}},{"../../constants/numerical":491,"../../lib":515,"./calendars":364}],366:[function(t,e,r){"use strict";r.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],r.defaultLine="#444",r.lightLine="#eee",r.background="#fff",r.borderLine="#BEC8D9",r.lightFraction=1e3/11},{}],367:[function(t,e,r){"use strict";var n=t("tinycolor2"),i=t("fast-isnumeric"),a=t("../../lib/array").isTypedArray,o=e.exports={},s=t("./attributes");o.defaults=s.defaults;var l=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var c=o.background=s.background;function u(t){if(i(t)||"string"!==typeof t)return t;var e=t.trim();if("rgb"!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a="a"===e.charAt(3)&&4===n.length;if(!a&&3!==n.length)return t;for(var o=0;o<n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]>=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var s=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return a?"rgba("+s+", "+n[3]+")":"rgb("+s+")"}o.tinyRGB=function(t){var e=t.toRgb();return"rgb("+Math.round(e.r)+", "+Math.round(e.g)+", "+Math.round(e.b)+")"},o.rgb=function(t){return o.tinyRGB(n(t))},o.opacity=function(t){return t?n(t).getAlpha():0},o.addOpacity=function(t,e){var r=n(t).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+e+")"},o.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||c).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&&(i=n(o.combine(t,c))),(i.isDark()?e?i.lighten(e):c:r?i.darken(r):l).toString()},o.stroke=function(t,e){var r=n(e);t.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(t,e){var r=n(e);t.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(t){if(t&&"object"===typeof t){var e,r,n,i,s=Object.keys(t);for(e=0;e<s.length;e++)if(i=t[n=s[e]],"color"===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r<i.length;r++)i[r]=u(i[r]);else t[n]=u(i);else if("colorscale"===n.substr(n.length-10)&&Array.isArray(i))for(r=0;r<i.length;r++)Array.isArray(i[r])&&(i[r][1]=u(i[r][1]));else if(Array.isArray(i)){var l=i[0];if(!Array.isArray(l)&&l&&"object"===typeof l)for(r=0;r<i.length;r++)o.clean(i[r])}else i&&"object"===typeof i&&!a(i)&&o.clean(i)}}},{"../../lib/array":497,"./attributes":366,"fast-isnumeric":190,tinycolor2:313}],368:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/layout_attributes"),i=t("../../plots/font_attributes"),a=t("../../lib/extend").extendFlat,o=t("../../plot_api/edit_types").overrideAll;e.exports=o({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number",min:-2,max:3},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:""}),ticklabeloverflow:a({},n.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,ticklabelstep:n.ticklabelstep,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string"},font:i({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:i({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},{"../../lib/extend":505,"../../plot_api/edit_types":548,"../../plots/cartesian/layout_attributes":579,"../../plots/font_attributes":594}],369:[function(t,e,r){"use strict";e.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},{}],370:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plot_api/plot_template"),a=t("../../plots/cartesian/tick_value_defaults"),o=t("../../plots/cartesian/tick_mark_defaults"),s=t("../../plots/cartesian/tick_label_defaults"),l=t("../../plots/cartesian/prefix_suffix_defaults"),c=t("./attributes");e.exports=function(t,e,r){var u=i.newContainer(e,"colorbar"),f=t.colorbar||{};function p(t,e){return n.coerce(f,u,c,t,e)}var d=r.margin||{t:0,b:0,l:0,r:0},h=r.width-d.l-d.r,g=r.height-d.t-d.b,m="v"===p("orientation"),v=p("thicknessmode");p("thickness","fraction"===v?30/(m?h:g):30);var y=p("lenmode");p("len","fraction"===y?1:m?g:h),p("x",m?1.02:.5),p("xanchor",m?"left":"center"),p("xpad"),p("y",m?.5:1.02),p("yanchor",m?"middle":"bottom"),p("ypad"),n.noneOrAll(f,u,["x","y"]),p("outlinecolor"),p("outlinewidth"),p("bordercolor"),p("borderwidth"),p("bgcolor");var b=n.coerce(f,u,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:m?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");p("ticklabeloverflow",-1!==b.indexOf("inside")?"hide past domain":"hide past div"),a(f,u,p,"linear");var x=r.font,_={outerTicks:!1,font:x};-1!==b.indexOf("inside")&&(_.bgColor="black"),l(f,u,p,"linear",_),s(f,u,p,"linear",_),o(f,u,p,"linear",_),p("title.text",r._dfltTitle.colorbar);var w=u.tickfont,k=n.extendFlat({},w,{color:x.color,size:n.bigFont(w.size)});n.coerceFont(p,"title.font",k),p("title.side",m?"top":"right")}},{"../../lib":515,"../../plot_api/plot_template":555,"../../plots/cartesian/prefix_suffix_defaults":583,"../../plots/cartesian/tick_label_defaults":587,"../../plots/cartesian/tick_mark_defaults":588,"../../plots/cartesian/tick_value_defaults":589,"./attributes":368}],371:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("tinycolor2"),a=t("../../plots/plots"),o=t("../../registry"),s=t("../../plots/cartesian/axes"),l=t("../dragelement"),c=t("../../lib"),u=c.strTranslate,f=t("../../lib/extend").extendFlat,p=t("../../lib/setcursor"),d=t("../drawing"),h=t("../color"),g=t("../titles"),m=t("../../lib/svg_text_utils"),v=t("../colorscale/helpers").flipScale,y=t("../../plots/cartesian/axis_defaults"),b=t("../../plots/cartesian/position_defaults"),x=t("../../plots/cartesian/layout_attributes"),_=t("../../constants/alignment"),w=_.LINE_SPACING,k=_.FROM_TL,T=_.FROM_BR,M=t("./constants").cn;function A(t){var e=t._fullLayout._infolayer.selectAll("g."+M.colorbar).data(S(t),(function(t){return t._id}));e.enter().append("g").attr("class",(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,"rect",M.cbbg),c.ensureSingle(r,"g",M.cbfills),c.ensureSingle(r,"g",M.cblines),c.ensureSingle(r,"g",M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,"g",M.cbtitleunshift,(function(t){t.append("g").classed(M.cbtitle,!0)})),c.ensureSingle(r,"rect",M.cboutline);var i=E(r,e,t);i&&i.then&&(t._promises||[]).push(i),t._context.edits.colorbarPosition&&C(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}function S(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"===typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u<o.length;u++){var p=o[u],d=(n=p[0].trace)._module.colorbar;if(!0===n.visible&&d)for(var h=Array.isArray(d),g=h?d:[d],m=0;m<g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&&r.showscale&&((e=l(r.colorbar))._id="cb"+n.uid+(h&&y?"-"+y:""),e._traceIndex=n.index,e._propPrefix=(y?y+".":"")+"colorbar.",e._meta=n._meta,c(),s.push(e))}}for(var b in a._colorAxes)if((r=a[b]).showscale){var x=a._colorAxes[b];(e=l(r.colorbar))._id="cb"+b,e._propPrefix=b+".colorbar.",e._meta=a._meta,i={min:"cmin",max:"cmax"},"heatmap"!==x[0]&&(n=x[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}function E(t,e,r){var o="v"===e.orientation,l=e.len,p=e.lenmode,v=e.thickness,y=e.thicknessmode,b=e.outlinewidth,x=e.borderwidth,_=e.bgcolor,A=e.xanchor,S=e.yanchor,E=e.xpad,C=e.ypad,I=e.x,P=o?e.y:1-e.y,D=r._fullLayout,R=D._size,z=e._fillcolor,N=e._line,F=e.title,B=F.side,j=e._zrange||n.extent(("function"===typeof z?z:N.color).domain()),U="function"===typeof N.color?N.color:function(){return N.color},V="function"===typeof z?z:function(){return z},H=e._levels,q=O(r,e,j),G=q.fill,W=q.line,Y=Math.round(v*("fraction"===y?o?R.w:R.h:1)),X=Y/(o?R.w:R.h),Z=Math.round(l*("fraction"===p?o?R.h:R.w:1)),K=Z/(o?R.h:R.w),J=Math.round(o?I*R.w+E:P*R.h+C),$={center:.5,right:1}[A]||0,Q={top:1,middle:.5}[S]||0,tt=o?I-$*X:P-Q*X,et=o?P-Q*K:I-$*K,rt=Math.round(o?R.h*(1-et):R.w*et);e._lenFrac=K,e._thickFrac=X,e._uFrac=tt,e._vFrac=et;var nt=e._axis=L(r,e,j);nt.position=X+(o?I+E/R.w:P+C/R.h);var it=-1!==["top","bottom"].indexOf(B);if(o&&it&&(nt.title.side=B,nt.titlex=I+E/R.w,nt.titley=et+("top"===F.side?K-C/R.h:C/R.h)),o||it||(nt.title.side=B,nt.titley=P+C/R.h,nt.titlex=et+E/R.w),N.color&&"auto"===e.tickmode){nt.tickmode="linear",nt.tick0=H.start;var at=H.size,ot=c.constrain(Z/50,4,15)+1,st=(j[1]-j[0])/((e.nticks||ot)*at);if(st>1){var lt=Math.pow(10,Math.floor(Math.log(st)/Math.LN10));at*=lt*c.roundUp(st/lt,[2,5,10]),(Math.abs(H.start)/H.size+1e-6)%1<2e-6&&(nt.tick0=0)}nt.dtick=at}nt.domain=o?[et+C/R.h,et+K-C/R.h]:[et+E/R.w,et+K-E/R.w],nt.setScale(),t.attr("transform",u(Math.round(R.l),Math.round(R.t)));var ct,ut=t.select("."+M.cbtitleunshift).attr("transform",u(-Math.round(R.l),-Math.round(R.t))),ft=nt.ticklabelposition,pt=nt.title.font.size,dt=t.select("."+M.cbaxis),ht=0,gt=0;function mt(n,i){var a={propContainer:nt,propName:e._propPrefix+"title",traceIndex:e._traceIndex,_meta:e._meta,placeholder:D._dfltTitle.colorbar,containerGroup:t.select("."+M.cbtitle)},o="h"===n.charAt(0)?n.substr(1):"h"+n;t.selectAll("."+o+",."+o+"-math-group").remove(),g.draw(r,n,f(a,i||{}))}function vt(){var t,e;(o&&it||!o&&!it)&&("top"===B&&(t=E+R.l+R.w*I,e=C+R.t+R.h*(1-et-K)+3+.75*pt),"bottom"===B&&(t=E+R.l+R.w*I,e=C+R.t+R.h*(1-et)-3-.25*pt),"right"===B&&(e=C+R.t+R.h*P+3+.75*pt,t=E+R.l+R.w*et),mt(nt._id+"title",{attributes:{x:t,y:e,"text-anchor":o?"start":"middle"}}))}function yt(){if(o&&!it||!o&&it){var t,i,a=nt.position||0,s=nt._offset+nt._length/2;if("right"===B)i=s,t=R.l+R.w*a+10+pt*(nt.showticklabels?1:.5);else if(t=s,"bottom"===B&&(i=R.t+R.h*a+10+(-1===ft.indexOf("inside")?nt.tickfont.size:0)+("intside"!==nt.ticks&&e.ticklen||0)),"top"===B){var l=F.text.split("<br>").length;i=R.t+R.h*a+10-Y-w*pt*l}mt((o?"h":"v")+nt._id+"title",{avoid:{selection:n.select(r).selectAll("g."+nt._id+"tick"),side:B,offsetTop:o?0:R.t,offsetLeft:o?R.l:0,maxShift:o?D.width:D.height},attributes:{x:t,y:i,"text-anchor":"middle"},transform:{rotate:o?-90:0,offset:0}})}}function bt(){if(!o&&!it||o&&it){var a,l=t.select("."+M.cbtitle),f=l.select("text"),p=[-b/2,b/2],h=l.select(".h"+nt._id+"title-math-group").node(),g=15.6;if(f.node()&&(g=parseInt(f.node().style.fontSize,10)*w),h?(a=d.bBox(h),gt=a.width,(ht=a.height)>g&&(p[1]-=(ht-g)/2)):f.node()&&!f.classed(M.jsPlaceholder)&&(a=d.bBox(f.node()),gt=a.width,ht=a.height),o){if(ht){if(ht+=5,"top"===B)nt.domain[1]-=ht/R.h,p[1]*=-1;else{nt.domain[0]+=ht/R.h;var v=m.lineCount(f);p[1]+=(1-v)*g}l.attr("transform",u(p[0],p[1])),nt.setScale()}}else gt&&("right"===B&&(nt.domain[0]+=(gt+pt/2)/R.w),l.attr("transform",u(p[0],p[1])),nt.setScale())}t.selectAll("."+M.cbfills+",."+M.cblines).attr("transform",o?u(0,Math.round(R.h*(1-nt.domain[1]))):u(Math.round(R.w*nt.domain[0]),0)),dt.attr("transform",o?u(0,Math.round(-R.t)):u(Math.round(-R.l),0));var y=t.select("."+M.cbfills).selectAll("rect."+M.cbfill).attr("style","").data(G);y.enter().append("rect").classed(M.cbfill,!0).style("stroke","none"),y.exit().remove();var x=j.map(nt.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var s=[0===a?j[0]:(G[a]+G[a-1])/2,a===G.length-1?j[1]:(G[a]+G[a+1])/2].map(nt.c2p).map(Math.round);o&&(s[1]=c.constrain(s[1]+(s[1]>s[0])?1:-1,x[0],x[1]));var l=n.select(this).attr(o?"x":"y",J).attr(o?"y":"x",n.min(s)).attr(o?"width":"height",Math.max(Y,2)).attr(o?"height":"width",Math.max(n.max(s)-n.min(s),2));if(e._fillgradient)d.gradient(l,r,e._id,o?"vertical":"horizontalreversed",e._fillgradient,"fill");else{var u=V(t).replace("e-","");l.attr("fill",i(u).toHexString())}}));var _=t.select("."+M.cblines).selectAll("path."+M.cbline).data(N.color&&N.width?W:[]);_.enter().append("path").classed(M.cbline,!0),_.exit().remove(),_.each((function(t){var e=J,r=Math.round(nt.c2p(t))+N.width/2%1;n.select(this).attr("d","M"+(o?e+","+r:r+","+e)+(o?"h":"v")+Y).call(d.lineGroupStyle,N.width,U(t),N.dash)})),dt.selectAll("g."+nt._id+"tick,path").remove();var k=J+Y+(b||0)/2-("outside"===e.ticks?1:0),T=s.calcTicks(nt),A=s.getTickSigns(nt)[2];return s.drawTicks(r,nt,{vals:"inside"===nt.ticks?s.clipEnds(nt,T):T,layer:dt,path:s.makeTickPath(nt,k,A),transFn:s.makeTransTickFn(nt)}),s.drawLabels(r,nt,{vals:T,layer:dt,transFn:s.makeTransTickLabelFn(nt),labelFns:s.makeLabelFns(nt,k)})}function xt(){var n,s=Y+b/2;-1===ft.indexOf("inside")&&(n=d.bBox(dt.node()),s+=o?n.width:n.height),ct=ut.select("text");var c=0,f=o&&"top"===B,g=!o&&"right"===B,m=0;if(ct.node()&&!ct.classed(M.jsPlaceholder)){var w,O=ut.select(".h"+nt._id+"title-math-group").node();O&&(o&&it||!o&&!it)?(c=(n=d.bBox(O)).width,w=n.height):(c=(n=d.bBox(ut.node())).right-R.l-(o?J:rt),w=n.bottom-R.t-(o?rt:J),o||"top"!==B||(s+=n.height,m=n.height)),g&&(ct.attr("transform",u(c/2+pt/2,0)),c*=2),s=Math.max(s,o?c:w)}var L=2*(o?E:C)+s+x+b/2,z=0;!o&&F.text&&"bottom"===S&&P<=0&&(L+=z=L/2,m+=z),D._hColorbarMoveTitle=z,D._hColorbarMoveCBTitle=m;var N=x+b;t.select("."+M.cbbg).attr("x",(o?J:rt)-N/2-(o?E:0)).attr("y",(o?rt:J)-(o?Z:C+m-z)).attr(o?"width":"height",Math.max(L-z,2)).attr(o?"height":"width",Math.max(Z+N,2)).call(h.fill,_).call(h.stroke,e.bordercolor).style("stroke-width",x);var j=g?Math.max(c-10,0):0;if(t.selectAll("."+M.cboutline).attr("x",(o?J:rt+E)+j).attr("y",(o?rt+C-Z:J)+(f?ht:0)).attr(o?"width":"height",Math.max(Y,2)).attr(o?"height":"width",Math.max(Z-(o?2*C+ht:2*E+j),2)).call(h.stroke,e.outlinecolor).style({fill:"none","stroke-width":b}),t.attr("transform",u(R.l-(o?$*L:0),R.t-(o?0:(1-Q)*L-m))),!o&&(x||i(_).getAlpha()&&!i.equals(D.paper_bgcolor,_))){var U=dt.selectAll("text"),V=U[0].length,H=t.select("."+M.cbbg).node(),q=d.bBox(H),G=d.getTranslate(t),W=2;U.each((function(t,e){var r=0,n=V-1;if(e===r||e===n){var i,a=d.bBox(this),o=d.getTranslate(this);if(e===n){var s=a.right+o.x;(i=q.right+G.x+rt-x-W+I-s)>0&&(i=0)}else if(e===r){var l=a.left+o.x;(i=q.left+G.x+rt+x+W-l)<0&&(i=0)}i&&(V<3?this.setAttribute("transform","translate("+i+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var X={},K=k[A],tt=T[A],et=k[S],at=T[S],ot=L-Y;o?("pixels"===p?(X.y=P,X.t=Z*et,X.b=Z*at):(X.t=X.b=0,X.yt=P+l*et,X.yb=P-l*at),"pixels"===y?(X.x=I,X.l=L*K,X.r=L*tt):(X.l=ot*K,X.r=ot*tt,X.xl=I-v*K,X.xr=I+v*tt)):("pixels"===p?(X.x=I,X.l=Z*K,X.r=Z*tt):(X.l=X.r=0,X.xl=I+l*K,X.xr=I-l*tt),"pixels"===y?(X.y=1-P,X.t=L*et,X.b=L*at):(X.t=ot*et,X.b=ot*at,X.yt=P-v*et,X.yb=P+v*at)),a.autoMargin(r,e._id,X)}return c.syncOrAsync([a.previousPromises,vt,bt,yt,a.previousPromises,xt],r)}function C(t,e,r){var n,i,a,s="v"===e.orientation,c=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr("transform"),p(t)},moveFn:function(r,o){t.attr("transform",n+u(r,o)),i=l.align((s?e._uFrac:e._vFrac)+r/c.w,s?e._thickFrac:e._lenFrac,0,1,e.xanchor),a=l.align((s?e._vFrac:1-e._uFrac)-o/c.h,s?e._lenFrac:e._thickFrac,0,1,e.yanchor);var f=l.getCursor(i,a,e.xanchor,e.yanchor);p(t,f)},doneFn:function(){if(p(t),void 0!==i&&void 0!==a){var n={};n[e._propPrefix+"x"]=i,n[e._propPrefix+"y"]=a,void 0!==e._traceIndex?o.call("_guiRestyle",r,n,e._traceIndex):o.call("_guiRelayout",r,n)}}})}function O(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i<1e5&&(n=a.start+i*c,!(c>0?n>=l:n<=l));i++)n>u&&n<f&&o.push(n);if(e._fillgradient)s=[0];else if("function"===typeof e._fillcolor){var p=e._filllevels;if(p)for(l=p.end+p.size/100,c=p.size,i=0;i<1e5&&(n=p.start+i*c,!(c>0?n>=l:n<=l));i++)n>r[0]&&n<r[1]&&s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&&"string"===typeof e._fillcolor&&(s=[0]);return a.size<0&&(o.reverse(),s.reverse()),{line:o,fill:s}}function L(t,e,r){var n=t._fullLayout,i="v"===e.orientation,a={type:"linear",range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,ticklabeloverflow:e.ticklabeloverflow,ticklabelstep:e.ticklabelstep,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:"free",side:i?"right":"bottom",position:1},o=i?"y":"x",s={type:"linear",_id:o+e._id},l={letter:o,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function u(t,e){return c.coerce(a,s,x,t,e)}return y(a,s,u,l,n),b(a,s,u,l),s}e.exports={draw:A}},{"../../constants/alignment":483,"../../lib":515,"../../lib/extend":505,"../../lib/setcursor":536,"../../lib/svg_text_utils":541,"../../plots/cartesian/axes":566,"../../plots/cartesian/axis_defaults":568,"../../plots/cartesian/layout_attributes":579,"../../plots/cartesian/position_defaults":582,"../../plots/plots":628,"../../registry":647,"../color":367,"../colorscale/helpers":378,"../dragelement":386,"../drawing":389,"../titles":476,"./constants":369,"@plotly/d3":58,tinycolor2:313}],372:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{"../../lib":515}],373:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:t("./attributes"),supplyDefaults:t("./defaults"),draw:t("./draw").draw,hasColorbar:t("./has_colorbar")}},{"./attributes":368,"./defaults":370,"./draw":371,"./has_colorbar":372}],374:[function(t,e,r){"use strict";var n=t("../colorbar/attributes"),i=t("../../lib/regex").counter,a=t("../../lib/sort_object_keys"),o=t("./scales.js").scales;function s(t){return"`"+t+"`"}a(o),e.exports=function(t,e){t=t||"";var r,a=(e=e||{}).cLetter||"c",l=("onlyIfNumerical"in e?e.onlyIfNumerical:Boolean(t),"noScale"in e?e.noScale:"marker.line"===t),c="showScaleDflt"in e?e.showScaleDflt:"z"===a,u="string"===typeof e.colorscaleDflt?o[e.colorscaleDflt]:null,f=e.editTypeOverride||"",p=t?t+".":"";"colorAttr"in e?(r=e.colorAttr,e.colorAttr):s(p+(r={z:"z",c:"color"}[a]));var d=a+"auto",h=a+"min",g=a+"max",m=a+"mid",v=(s(p+d),s(p+h),s(p+g),{});v[h]=v[g]=void 0;var y={};y[d]=!1;var b={};return"color"===r&&(b.color={valType:"color",arrayOk:!0,editType:f||"style"},e.anim&&(b.color.anim=!0)),b[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:v},b[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},b[g]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},b[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:v},b.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},b.autocolorscale={valType:"boolean",dflt:!1!==e.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},b.reversescale={valType:"boolean",dflt:!1,editType:"plot"},l||(b.showscale={valType:"boolean",dflt:c,editType:"calc"},b.colorbar=n),e.noColorAxis||(b.coloraxis={valType:"subplotid",regex:i("coloraxis"),dflt:null,editType:"calc"}),b}},{"../../lib/regex":532,"../../lib/sort_object_keys":538,"../colorbar/attributes":368,"./scales.js":382}],375:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib"),a=t("./helpers").extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),p=!1!==f.auto,d=f.min,h=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};void 0===d?d=m():p&&(d=u._colorAx&&n(d)?Math.min(d,m()):m()),void 0===h?h=v():p&&(h=u._colorAx&&n(h)?Math.max(h,v()):v()),p&&void 0!==g&&(h-g>g-d?d=g-(h-g):h-g<g-d&&(h=g+(g-d))),d===h&&(d-=.5,h+=.5),f._sync("min",d),f._sync("max",h),f.autocolorscale&&(o=d*h<0?s.colorscale.diverging:d>=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync("colorscale",o))}},{"../../lib":515,"./helpers":378,"fast-isnumeric":190}],376:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./helpers").hasColorscale,a=t("./helpers").extractOpts;e.exports=function(t,e){function r(t,e){var r=t["_"+e];void 0!==r&&(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&&r(o,i.min),(l||void 0===s.max)&&r(o,i.max),s.autocolorscale&&r(o,"colorscale")}}for(var s=0;s<t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(l,c[u]);else o(l,c);i(l,"marker.line")&&o(l,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in e._colorAxes)o(e[f],{min:"cmin",max:"cmax"})}},{"../../lib":515,"./helpers":378}],377:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib"),a=t("../colorbar/has_colorbar"),o=t("../colorbar/defaults"),s=t("./scales").isValid,l=t("../../registry").traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,p){var d=p.prefix,h=p.cLetter,g="_module"in r,m=c(e,d),v=c(r,d),y=c(r._template||{},d)||{},b=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,p)};if(g){var x=u._colorAxes||{},_=f(d+"coloraxis");if(_){var w=l(r,"contour")&&i.nestedProperty(r,"contours.coloring").get()||"heatmap",k=x[_];return void(k?(k[2].push(b),k[0]!==w&&(k[0]=!1,i.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[_]=[w,r,[b]])}}var T=m[h+"min"],M=m[h+"max"],A=n(T)&&n(M)&&T<M;f(d+h+"auto",!A)?f(d+h+"mid"):(f(d+h+"min"),f(d+h+"max"));var S,E,C=m.colorscale,O=y.colorscale;void 0!==C&&(S=!s(C)),void 0!==O&&(S=!s(O)),f(d+"autocolorscale",S),f(d+"colorscale"),f(d+"reversescale"),"marker.line."!==d&&(d&&g&&(E=a(m)),f(d+"showscale",E)&&(d&&y&&(v._template=y),o(m,v,u)))}},{"../../lib":515,"../../registry":647,"../colorbar/defaults":370,"../colorbar/has_colorbar":372,"./scales":382,"fast-isnumeric":190}],378:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("tinycolor2"),a=t("fast-isnumeric"),o=t("../../lib"),s=t("../color"),l=t("./scales").isValid;function c(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||"color"],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c<i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&&(s||!0===n.showscale||a(n.cmin)&&a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))}var u=["showscale","autocolorscale","colorscale","reversescale","colorbar"],f=["min","max","mid","auto"];function p(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r<u.length;r++)o[n=u[r]]=a[n];if(i)for(e="c",r=0;r<f.length;r++)o[n=f[r]]=a["c"+n];else{var s;for(r=0;r<f.length;r++)((s="c"+(n=f[r]))in a||(s="z"+n)in a)&&(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==f.indexOf(t)?e+t:t;a[n]=a["_"+n]=r},o}function d(t){for(var e=p(t),r=e.min,n=e.max,i=e.reversescale?h(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l<a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function h(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n>=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function g(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u<l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var p,d=n.scale.linear().domain(r).range(c).clamp(!0),h=e.noNumericCheck,g=e.returnArray;return(p=h&&g?d:h?function(t){return v(d(t))}:g?function(t){return a(t)?d(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?v(d(t)):i(t).isValid()?t:s.defaultLine}).domain=d.domain,p.range=function(){return o},p}function m(t,e){return g(d(t),e)}function v(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:c,extractOpts:p,extractScale:d,flipScale:h,makeColorScaleFunc:g,makeColorScaleFuncFromTrace:m}},{"../../lib":515,"../color":367,"./scales":382,"@plotly/d3":58,"fast-isnumeric":190,tinycolor2:313}],379:[function(t,e,r){"use strict";var n=t("./scales"),i=t("./helpers");e.exports={moduleType:"component",name:"colorscale",attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyLayoutDefaults:t("./layout_defaults"),handleDefaults:t("./defaults"),crossTraceDefaults:t("./cross_trace_defaults"),calc:t("./calc"),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{"./attributes":374,"./calc":375,"./cross_trace_defaults":376,"./defaults":377,"./helpers":378,"./layout_attributes":380,"./layout_defaults":381,"./scales":382}],380:[function(t,e,r){"use strict";var n=t("../../lib/extend").extendFlat,i=t("./attributes"),a=t("./scales").scales;e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:a.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:a.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:a.RdBu,editType:"calc"}},coloraxis:n({_isSubplotObj:!0,editType:"calc"},i("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},{"../../lib/extend":505,"./attributes":374,"./scales":382}],381:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plot_api/plot_template"),a=t("./layout_attributes"),o=t("./defaults");e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r("colorscale.sequential"),r("colorscale.sequentialminus"),r("colorscale.diverging");var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var p=c[f];if(p[0])s=t[f]||{},(l=i.newContainer(e,f,"coloraxis"))._name=f,o(s,l,e,u,{prefix:"",cLetter:"c"});else{for(var d=0;d<p[2].length;d++)p[2][d]();delete e._colorAxes[f]}}}},{"../../lib":515,"../../plot_api/plot_template":555,"./defaults":377,"./layout_attributes":380}],382:[function(t,e,r){"use strict";var n=t("tinycolor2"),i={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},a=i.RdBu;function o(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return"string"===typeof t&&(r(),"string"===typeof t&&r()),s(t)?t:e}function s(t){var e=0;if(!Array.isArray(t)||t.length<2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!==+t[0][0]||1!==+t[t.length-1][0])return!1;for(var r=0;r<t.length;r++){var i=t[r];if(2!==i.length||+i[0]<e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}function l(t){return void 0!==i[t]||s(t)}e.exports={scales:i,defaultScale:a,get:o,isValid:l}},{tinycolor2:313}],383:[function(t,e,r){"use strict";e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return"left"===i||"bottom"===i?a:"center"===i||"middle"===i?s:"right"===i||"top"===i?o:a<2/3-s?a:o>4/3-s?o:s}},{}],384:[function(t,e,r){"use strict";var n=t("../../lib"),i=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(t,e,r,a){return t="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*t),0,2),e="bottom"===a?0:"middle"===a?1:"top"===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{"../../lib":515}],385:[function(t,e,r){"use strict";r.selectMode=function(t){return"lasso"===t||"select"===t},r.drawMode=function(t){return"drawclosedpath"===t||"drawopenpath"===t||"drawline"===t||"drawrect"===t||"drawcircle"===t},r.openMode=function(t){return"drawline"===t||"drawopenpath"===t},r.rectMode=function(t){return"select"===t||"drawline"===t||"drawrect"===t||"drawcircle"===t},r.freeMode=function(t){return"lasso"===t||"drawclosedpath"===t||"drawopenpath"===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],386:[function(t,e,r){"use strict";var n=t("mouse-event-offset"),i=t("has-hover"),a=t("has-passive-events"),o=t("../../lib").removeElement,s=t("../../plots/cartesian/constants"),l=e.exports={};l.align=t("./align"),l.getCursor=t("./cursor");var c=t("./unhover");function u(){var t=document.createElement("div");t.className="dragcover";var e=t.style;return e.position="fixed",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background="none",document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,p,d,h,g,m=t.gd,v=1,y=m._context.doubleClickDelay,b=t.element;function x(t,e,r){return Math.abs(t)<r&&(t=0),Math.abs(e)<r&&(e=0),[t,e]}m._mouseDownTime||(m._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=w,a?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=w,b.addEventListener("touchstart",w,{passive:!1})):b.ontouchstart=w;var _=t.clampFn||x;function w(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],h=a.target,d=a,g=2===a.buttons||a.ctrlKey,"undefined"===typeof a.clientX&&"undefined"===typeof a.clientY&&(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime<y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&&t.prepFn(a,e,r),i&&!g?(p=u()).style.cursor=window.getComputedStyle(b).cursor:i||(p=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(b).cursor),document.addEventListener("mouseup",T),document.addEventListener("touchend",T),!1!==t.dragmode&&(a.preventDefault(),document.addEventListener("mousemove",k),document.addEventListener("touchmove",k,{passive:!1}))}function k(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=_(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&&(m._dragged=!0,l.unhover(m,n)),m._dragged&&t.moveFn&&!g&&(m._dragdata={element:b,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&&(e.preventDefault(),document.removeEventListener("mousemove",k),document.removeEventListener("touchmove",k)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),i?o(p):c&&(p.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime>y&&(v=Math.max(v-1,1)),m._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(v,d),!g){var r;try{r=new MouseEvent("click",e)}catch(a){var n=f(e);(r=document.createEvent("MouseEvents")).initMouseEvent("click",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}h.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{"../../lib":515,"../../plots/cartesian/constants":573,"./align":383,"./cursor":384,"./unhover":387,"has-hover":228,"has-passive-events":229,"mouse-event-offset":242}],387:[function(t,e,r){"use strict";var n=t("../../lib/events"),i=t("../../lib/throttle"),a=t("../../lib/dom").getGraphDiv,o=t("../fx/constants"),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&&i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&&!t._dragged&&!1===n.triggerHandler(t,"plotly_beforehover",e)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,e.target&&i&&t.emit("plotly_unhover",{event:e,points:i}))}},{"../../lib/dom":503,"../../lib/events":504,"../../lib/throttle":542,"../fx/constants":401}],388:[function(t,e,r){"use strict";r.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},r.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},{}],389:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=i.numberFormat,o=t("fast-isnumeric"),s=t("tinycolor2"),l=t("../../registry"),c=t("../color"),u=t("../colorscale"),f=i.strTranslate,p=t("../../lib/svg_text_utils"),d=t("../../constants/xmlns_namespaces"),h=t("../../constants/alignment").LINE_SPACING,g=t("../../constants/interactions").DESELECTDIM,m=t("../../traces/scatter/subtypes"),v=t("../../traces/scatter/make_bubble_size_func"),y=t("../../components/fx/helpers").appendArrayPointValue,b=e.exports={};function x(t,e,r){var n=e.fillpattern,i=n&&b.getPatternAttr(n.shape,0,"");if(i){var a=b.getPatternAttr(n.bgcolor,0,null),o=b.getPatternAttr(n.fgcolor,0,null),s=n.fgopacity,l=b.getPatternAttr(n.size,0,8),u=b.getPatternAttr(n.solidity,0,.3),f=e.uid;b.pattern(t,"point",r,f,i,l,u,void 0,n.fillmode,a,o,s)}else e.fillcolor&&t.call(c.fill,e.fillcolor)}b.font=function(t,e,r,n){i.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style("font-family",e),r+1&&t.style("font-size",r+"px"),n&&t.call(c.fill,n)},b.setPosition=function(t,e,r){t.attr("x",e).attr("y",r)},b.setSize=function(t,e,r){t.attr("width",e).attr("height",r)},b.setRect=function(t,e,r,n,i){t.call(b.setPosition,e,r).call(b.setSize,n,i)},b.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(o(i)&&o(a)&&e.node())&&("text"===e.node().nodeName?e.attr("x",i).attr("y",a):e.attr("transform",f(i,a)),!0)},b.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);b.translatePoint(t,i,e,r)}))},b.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr("display",r.isPtWithinRange(t,i)&&n.isPtWithinRange(t,a)?null:"none")},b.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,c=l.traceIs(a,"bar-like")?".bartext":".point,.textpoint";t.selectAll(c).each((function(t){b.hideOutsideRangePoint(t,n.select(this),r,i,o,s)}))}))}},b.crispRound=function(t,e,r){return e&&o(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},b.singleLineStyle=function(t,e,r,n,i){e.style("fill","none");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";c.stroke(e,n||a.color),b.dashLine(e,s,o)},b.lineGroupStyle=function(t,e,r,i){t.style("fill","none").each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,s=i||a.dash||"";n.select(this).call(c.stroke,r||a.color).call(b.dashLine,s,o)}))},b.dashLine=function(t,e,r){r=+r||0,e=b.dashStyle(e,r),t.style({"stroke-dasharray":e,"stroke-width":r+"px"})},b.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return"solid"===t?t="":"dot"===t?t=r+"px,"+r+"px":"dash"===t?t=3*r+"px,"+3*r+"px":"longdash"===t?t=5*r+"px,"+5*r+"px":"dashdot"===t?t=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===t&&(t=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),t},b.singleFillStyle=function(t,e){var r=n.select(t.node());x(t,((r.data()[0]||[])[0]||{}).trace||{},e)},b.fillGroupStyle=function(t,e){t.style("stroke-width",0).each((function(t){var r=n.select(this);t[0].trace&&x(r,t[0].trace,e)}))};var _=t("./symbol_defs");b.symbolNames=[],b.symbolFuncs=[],b.symbolBackOffs=[],b.symbolNeedLines={},b.symbolNoDot={},b.symbolNoFill={},b.symbolList=[],Object.keys(_).forEach((function(t){var e=_[t],r=e.n;b.symbolList.push(r,String(r),t,r+100,String(r+100),t+"-open"),b.symbolNames[r]=t,b.symbolFuncs[r]=e.f,b.symbolBackOffs[r]=e.backoff||0,e.needLine&&(b.symbolNeedLines[r]=!0),e.noDot?b.symbolNoDot[r]=!0:b.symbolList.push(r+200,String(r+200),t+"-dot",r+300,String(r+300),t+"-open-dot"),e.noFill&&(b.symbolNoFill[r]=!0)}));var w=b.symbolNames.length,k="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";function T(t,e,r,n){var i=t%100;return b.symbolFuncs[i](e,r,n)+(t>=200?k:"")}b.symbolNumber=function(t){if(o(t))t=+t;else if("string"===typeof t){var e=0;t.indexOf("-open")>0&&(e=100,t=t.replace("-open","")),t.indexOf("-dot")>0&&(e+=200,t=t.replace("-dot","")),(t=b.symbolNames.indexOf(t))>=0&&(t+=e)}return t%100>=w||t>=400?0:Math.floor(Math.max(t,0))};var M={x1:1,x2:0,y1:0,y2:0},A={x1:0,x2:0,y1:1,y2:0},S=a("~f"),E={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:M},horizontalreversed:{node:"linearGradient",attrs:M,reversed:!0},vertical:{node:"linearGradient",attrs:A},verticalreversed:{node:"linearGradient",attrs:A,reversed:!0}};b.gradient=function(t,e,r,a,o,l){for(var u=o.length,f=E[a],p=new Array(u),d=0;d<u;d++)f.reversed?p[u-1-d]=[S(100*(1-o[d][0])),o[d][1]]:p[d]=[S(100*o[d][0]),o[d][1]];var h=e._fullLayout,g="g"+h._uid+"-"+r,m=h._defs.select(".gradients").selectAll("#"+g).data([a+p.join(";")],i.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&&t.attr(f.attrs),t.attr("id",g);var e=t.selectAll("stop").data(p);e.exit().remove(),e.enter().append("stop"),e.each((function(t){var e=s(t[1]);n.select(this).attr({offset:t[0]+"%","stop-color":c.tinyRGB(e),"stop-opacity":e.getAlpha()})}))})),t.style(l,G(g,e)).style(l+"-opacity",null),t.classed("gradient_filled",!0)},b.pattern=function(t,e,r,a,o,l,u,f,p,d,h,g){var m="legend"===e;f&&("overlay"===p?(d=f,h=c.contrast(d)):(d=void 0,h=f));var v,y,b,x,_,w,k=r._fullLayout,T="p"+k._uid+"-"+a,M=function(t,e,r,n,i){return n+(i-n)*(t-e)/(r-e)},A={},S=s(h),E=c.tinyRGB(S),C=g*S.getAlpha();switch(o){case"/":v=l*Math.sqrt(2),y=l*Math.sqrt(2),w="path",A={d:b="M-"+v/4+","+y/4+"l"+v/2+",-"+y/2+"M0,"+y+"L"+v+",0M"+v/4*3+","+y/4*5+"l"+v/2+",-"+y/2,opacity:C,stroke:E,"stroke-width":(x=u*l)+"px"};break;case"\\":v=l*Math.sqrt(2),y=l*Math.sqrt(2),w="path",A={d:b="M"+v/4*3+",-"+y/4+"l"+v/2+","+y/2+"M0,0L"+v+","+y+"M-"+v/4+","+y/4*3+"l"+v/2+","+y/2,opacity:C,stroke:E,"stroke-width":(x=u*l)+"px"};break;case"x":v=l*Math.sqrt(2),y=l*Math.sqrt(2),b="M-"+v/4+","+y/4+"l"+v/2+",-"+y/2+"M0,"+y+"L"+v+",0M"+v/4*3+","+y/4*5+"l"+v/2+",-"+y/2+"M"+v/4*3+",-"+y/4+"l"+v/2+","+y/2+"M0,0L"+v+","+y+"M-"+v/4+","+y/4*3+"l"+v/2+","+y/2,x=l-l*Math.sqrt(1-u),w="path",A={d:b,opacity:C,stroke:E,"stroke-width":x+"px"};break;case"|":w="path",w="path",A={d:b="M"+(v=l)/2+",0L"+v/2+","+(y=l),opacity:C,stroke:E,"stroke-width":(x=u*l)+"px"};break;case"-":w="path",w="path",A={d:b="M0,"+(y=l)/2+"L"+(v=l)+","+y/2,opacity:C,stroke:E,"stroke-width":(x=u*l)+"px"};break;case"+":w="path",b="M"+(v=l)/2+",0L"+v/2+","+(y=l)+"M0,"+y/2+"L"+v+","+y/2,x=l-l*Math.sqrt(1-u),w="path",A={d:b,opacity:C,stroke:E,"stroke-width":x+"px"};break;case".":v=l,y=l,_=u<Math.PI/4?Math.sqrt(u*l*l/Math.PI):M(u,Math.PI/4,1,l/2,l/Math.sqrt(2)),w="circle",A={cx:v/2,cy:y/2,r:_,opacity:C,fill:E}}var O=[o||"noSh",d||"noBg",h||"noFg",l,u].join(";"),L=k._defs.select(".patterns").selectAll("#"+T).data([O],i.identity);L.exit().remove(),L.enter().append("pattern").each((function(){var t=n.select(this);if(t.attr({id:T,width:v+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:m?"scale(0.8)":""}),d){var e=s(d),r=c.tinyRGB(e),i=e.getAlpha(),a=t.selectAll("rect").data([0]);a.exit().remove(),a.enter().append("rect").attr({width:v+"px",height:y+"px",fill:r,"fill-opacity":i})}var o=t.selectAll(w).data([0]);o.exit().remove(),o.enter().append(w).attr(A)})),t.style("fill",G(T,r)).style("fill-opacity",null),t.classed("pattern_filled",!0)},b.initGradients=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),n.select(t).selectAll(".gradient_filled").classed("gradient_filled",!1)},b.initPatterns=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,"g","patterns").selectAll("pattern").remove(),n.select(t).selectAll(".pattern_filled").classed("pattern_filled",!1)},b.getPatternAttr=function(t,e,r){return t&&i.isArrayOrTypedArray(t)?e<t.length?t[e]:r:t},b.pointStyle=function(t,e,r){if(t.size()){var i=b.makePointStyleFns(e);t.each((function(t){b.singlePointStyle(t,n.select(this),e,i,r)}))}},b.singlePointStyle=function(t,e,r,n,a){var o=r.marker,s=o.line;if(e.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?o.opacity:t.mo),n.ms2mrc){var l;l="various"===t.ms||"various"===o.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&&(l=t.mrc=n.selectedSizeFn(t));var u=b.symbolNumber(t.mx||o.symbol)||0;t.om=u%200>=100;var f=at(t,r),p=X(t,r);e.attr("d",T(u,l,f,p))}var d,h,g,m=!1;if(t.so)g=s.outlierwidth,h=s.outliercolor,d=o.outliercolor;else{var v=(s||{}).width;g=(t.mlw+1||v+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h="mlc"in t?t.mlcc=n.lineScale(t.mlc):i.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,i.isArrayOrTypedArray(o.color)&&(d=c.defaultLine,m=!0),d="mc"in t?t.mcc=n.markerScale(t.mc):o.color||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(t))}if(t.om)e.call(c.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{e.style("stroke-width",(t.isBlank?0:g)+"px");var y=o.gradient,x=t.mgt;x?m=!0:x=y&&y.type,i.isArrayOrTypedArray(x)&&(x=x[0],E[x]||(x=0));var _=o.pattern,w=_&&b.getPatternAttr(_.shape,t.i,"");if(x&&"none"!==x){var k=t.mgc;k?m=!0:k=y.color;var M=r.uid;m&&(M+="-"+t.i),b.gradient(e,a,M,x,[[0,k],[1,d]],"fill")}else if(w){var A=b.getPatternAttr(_.bgcolor,t.i,null),S=b.getPatternAttr(_.fgcolor,t.i,null),C=_.fgopacity,O=b.getPatternAttr(_.size,t.i,8),L=b.getPatternAttr(_.solidity,t.i,.3),I=t.mcc||i.isArrayOrTypedArray(_.shape)||i.isArrayOrTypedArray(_.bgcolor)||i.isArrayOrTypedArray(_.size)||i.isArrayOrTypedArray(_.solidity),P=r.uid;I&&(P+="-"+t.i),b.pattern(e,"point",a,P,w,O,L,t.mcc,_.fillmode,A,S,C)}else c.fill(e,d);g&&c.stroke(e,h)}},b.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=b.tryColorscale(r,""),e.lineScale=b.tryColorscale(r,"line"),l.traceIs(t,"symbols")&&(e.ms2mrc=m.isBubble(t)?v(t):function(){return(r.size||6)/2}),t.selectedpoints&&i.extendFlat(e,b.makeSelectedPointStyleFns(t)),e},b.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.marker||{},o=r.marker||{},s=n.marker||{},c=a.opacity,u=o.opacity,f=s.opacity,p=void 0!==u,d=void 0!==f;(i.isArrayOrTypedArray(c)||p||d)&&(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?p?u:e:d?f:g*e});var h=a.color,m=o.color,v=s.color;(m||v)&&(e.selectedColorFn=function(t){var e=t.mcc||h;return t.selected?m||e:v||e});var y=a.size,b=o.size,x=s.size,_=void 0!==b,w=void 0!==x;return l.traceIs(t,"symbols")&&(_||w)&&(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?b/2:e:w?x/2:e}),e},b.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?l||e:u||(l?e:c.addOpacity(e,g))},e},b.selectedPointStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=b.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&&a.push((function(t,e){t.style("opacity",r.selectedOpacityFn(e))})),r.selectedColorFn&&a.push((function(t,e){c.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&&a.push((function(t,n){var a=n.mx||i.symbol||0,o=r.selectedSizeFn(n);t.attr("d",T(b.symbolNumber(a),o,at(n,e),X(n,e))),n.mrc2=o})),a.length&&t.each((function(t){for(var e=n.select(this),r=0;r<a.length;r++)a[r](e,t)}))}},b.tryColorscale=function(t,e){var r=e?i.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&&i.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return i.identity};var C={start:1,end:-1,middle:0,bottom:1,top:-1};function O(t,e,r,i,a){var o=n.select(t.node().parentNode),s=-1!==e.indexOf("top")?"top":-1!==e.indexOf("bottom")?"bottom":"middle",l=-1!==e.indexOf("left")?"end":-1!==e.indexOf("right")?"start":"middle",c=i?i/.8+1:0,u=(p.lineCount(t)-1)*h+1,d=C[l]*c,g=.75*r+C[s]*c+(C[s]-1)*u*r/2;t.attr("text-anchor",l),a||o.attr("transform",f(d,g))}function L(t,e){var r=t.ts||e.textfont.size;return o(r)&&r>0?r:0}b.textPointStyle=function(t,e,r){if(t.size()){var a;if(e.selectedpoints){var o=b.makeSelectedTextStyleFns(e);a=o.selectedTextColorFn}var s=e.texttemplate,l=r._fullLayout;t.each((function(t){var o=n.select(this),c=s?i.extractOption(t,e,"txt","texttemplate"):i.extractOption(t,e,"tx","text");if(c||0===c){if(s){var u=e._module.formatLabels,f=u?u(t,e,l):{},d={};y(d,e,t.i);var h=e._meta||{};c=i.texttemplateString(c,f,l._d3locale,d,t,h)}var g=t.tp||e.textposition,m=L(t,e),v=a?a(t):t.tc||e.textfont.color;o.call(b.font,t.tf||e.textfont.family,m,v).text(c).call(p.convertToTspans,r).call(O,g,m,t.mrc)}else o.remove()}))}},b.selectedTextStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=b.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,s=L(t,e);c.fill(i,a);var u=l.traceIs(e,"bar-like");O(i,o,s,t.mrc2||t.mrc,u)}))}};var I,P,D=.5;function R(t,e,r){return r&&(t=U(t)),e?N(t[1]):z(t[0])}function z(t){var e=n.round(t,2);return I=e,e}function N(t){var e=n.round(t,2);return P=e,e}function F(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,D/2),c=Math.pow(o*o+s*s,D/2),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,p=3*c*(l+c),d=3*l*(l+c);return[[z(e[0]+(p&&u/p)),N(e[1]+(p&&f/p))],[z(e[0]-(d&&u/d)),N(e[1]-(d&&f/d))]]}b.smoothopen=function(t,e){if(t.length<3)return"M"+t.join("L");var r,n="M"+t[0],i=[];for(r=1;r<t.length-1;r++)i.push(F(t[r-1],t[r],t[r+1],e));for(n+="Q"+i[0][0]+" "+t[1],r=2;r<t.length-1;r++)n+="C"+i[r-2][1]+" "+i[r-1][0]+" "+t[r];return n+="Q"+i[t.length-3][1]+" "+t[t.length-1]},b.smoothclosed=function(t,e){if(t.length<3)return"M"+t.join("L")+"Z";var r,n="M"+t[0],i=t.length-1,a=[F(t[i],t[0],t[1],e)];for(r=1;r<i;r++)a.push(F(t[r-1],t[r],t[r+1],e));for(a.push(F(t[i-1],t[i],t[0],e)),r=1;r<=i;r++)n+="C"+a[r-1][1]+" "+a[r][0]+" "+t[r];return n+="C"+a[i][1]+" "+a[0][0]+" "+t[0]+"Z"};var B={hv:function(t,e,r){return"H"+z(e[0])+"V"+R(e,1,r)},vh:function(t,e,r){return"V"+N(e[1])+"H"+R(e,0,r)},hvh:function(t,e,r){return"H"+z((t[0]+e[0])/2)+"V"+N(e[1])+"H"+R(e,0,r)},vhv:function(t,e,r){return"V"+N((t[1]+e[1])/2)+"H"+z(e[0])+"V"+R(e,1,r)}},j=function(t,e,r){return"L"+R(e,0,r)+","+R(e,1,r)};function U(t,e){var r=t.backoff,n=t.trace,a=t.d,o=t.i;if(r&&n&&n.marker&&n.marker.angle%360===0&&n.line&&"spline"!==n.line.shape){var s=i.isArrayOrTypedArray(r),l=t,c=e?e[0]:I||0,u=e?e[1]:P||0,f=l[0],p=l[1],d=f-c,h=p-u,g=Math.atan2(h,d),m=s?r[o]:r;if("auto"===m){var v=l.i;"scatter"===n.type&&v--;var y=l.marker;m=y?b.symbolBackOffs[b.symbolNumber(y.symbol)]*y.size:0,m+=b.getMarkerStandoff(a[v],n)||0}var x=f-m*Math.cos(g),_=p-m*Math.sin(g);(x<=f&&x>=c||x>=f&&x<=c)&&(_<=p&&_>=u||_>=p&&_<=u)&&(t=[x,_])}return t}b.steps=function(t){var e=B[t]||j;return function(t){for(var r="M"+z(t[0][0])+","+N(t[0][1]),n=t.length,i=1;i<n;i++)r+=e(t[i-1],t[i],i===n-1);return r}},b.applyBackoff=U,b.makeTester=function(){var t=i.ensureSingleById(n.select("body"),"svg","js-plotly-tester",(function(t){t.attr(d.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),e=i.ensureSingle(t,"path","js-reference-point",(function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));b.tester=t,b.testref=e},b.savedBBoxes={};var V=0,H=1e4;function q(t){var e=t.getAttribute("data-unformatted");if(null!==e)return e+t.getAttribute("data-math")+t.getAttribute("text-anchor")+t.getAttribute("style")}function G(t,e){if(!t)return null;var r=e._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+t+"')":"url(#"+t+")"}b.bBox=function(t,e,r){var a,o,s;if(r||(r=q(t)),r){if(a=b.savedBBoxes[r])return i.extendFlat({},a)}else if(1===t.childNodes.length){var l=t.childNodes[0];if(r=q(l)){var c=+l.getAttribute("x")||0,u=+l.getAttribute("y")||0,f=l.getAttribute("transform");if(!f){var d=b.bBox(l,!1,r);return c&&(d.left+=c,d.right+=c),u&&(d.top+=u,d.bottom+=u),d}if(r+="~"+c+"~"+u+"~"+f,a=b.savedBBoxes[r])return i.extendFlat({},a)}}e?o=t:(s=b.tester.node(),o=t.cloneNode(!0),s.appendChild(o)),n.select(o).attr("transform",null).call(p.positionText,0,0);var h=o.getBoundingClientRect(),g=b.testref.node().getBoundingClientRect();e||s.removeChild(o);var m={height:h.height,width:h.width,left:h.left-g.left,top:h.top-g.top,right:h.right-g.left,bottom:h.bottom-g.top};return V>=H&&(b.savedBBoxes={},V=0),r&&(b.savedBBoxes[r]=m),V++,i.extendFlat({},m)},b.setClipUrl=function(t,e,r){t.attr("clip-path",G(e,r))},b.getTranslate=function(t){var e=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(e,(function(t,e,r){return[e,r].join(" ")})).split(" ");return{x:+r[0]||0,y:+r[1]||0}},b.setTranslate=function(t,e,r){var n=/(\btranslate\(.*?\);?)/,i=t.attr?"attr":"getAttribute",a=t.attr?"attr":"setAttribute",o=t[i]("transform")||"";return e=e||0,r=r||0,o=o.replace(n,"").trim(),o=(o+=f(e,r)).trim(),t[a]("transform",o),o},b.getScale=function(t){var e=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(e,(function(t,e,r){return[e,r].join(" ")})).split(" ");return{x:+r[0]||1,y:+r[1]||1}},b.setScale=function(t,e,r){var n=/(\bscale\(.*?\);?)/,i=t.attr?"attr":"getAttribute",a=t.attr?"attr":"setAttribute",o=t[i]("transform")||"";return e=e||1,r=r||1,o=o.replace(n,"").trim(),o=(o+="scale("+e+","+r+")").trim(),t[a]("transform",o),o};var W=/\s*sc.*/;b.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&&1===r?"":"scale("+e+","+r+")";t.each((function(){var t=(this.getAttribute("transform")||"").replace(W,"");t=(t+=n).trim(),this.setAttribute("transform",t)}))}};var Y=/translate\([^)]*\)\s*$/;function X(t,e){var r;return t&&(r=t.mf),void 0===r&&(r=e.marker&&e.marker.standoff||0),e._geo||e._xA?r:-r}b.setTextPointsScale=function(t,e,r){t&&t.each((function(){var t,i=n.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Y);t=1===e&&1===r?[]:[f(o,s),"scale("+e+","+r+")",f(-o,-s)],l&&t.push(l),i.attr("transform",t.join(""))}}))},b.getMarkerStandoff=X;var Z,K,J,$,Q,tt,et=Math.atan2,rt=Math.cos,nt=Math.sin;function it(t,e){var r=e[0],n=e[1];return[r*rt(t)-n*nt(t),r*nt(t)+n*rt(t)]}function at(t,e){var r,n,i=t.ma;void 0===i&&(i=e.marker.angle||0);var a=e.marker.angleref;if("previous"===a||"north"===a){if(e._geo){var s=e._geo.project(t.lonlat);r=s[0],n=s[1]}else{var l=e._xA,c=e._yA;if(!l||!c)return 90;r=l.c2p(t.x),n=c.c2p(t.y)}if(e._geo){var u,f=t.lonlat[0],p=t.lonlat[1],d=e._geo.project([f,p+1e-5]),h=e._geo.project([f+1e-5,p]),g=et(h[1]-n,h[0]-r),m=et(d[1]-n,d[0]-r);if("north"===a)u=i/180*Math.PI;else if("previous"===a){var v=f/180*Math.PI,y=p/180*Math.PI,b=Z/180*Math.PI,x=K/180*Math.PI,_=b-v,w=rt(x)*nt(_),k=nt(x)*rt(y)-rt(x)*nt(y)*rt(_);u=-et(w,k)-Math.PI,Z=f,K=p}var T=it(g,[rt(u),0]),M=it(m,[nt(u),0]);i=et(T[1]+M[1],T[0]+M[0])/Math.PI*180,"previous"!==a||tt===e.uid&&t.i===Q+1||(i=null)}if("previous"===a&&!e._geo)if(tt===e.uid&&t.i===Q+1&&o(r)&&o(n)){var A=r-J,S=n-$,E=e.line&&e.line.shape||"",C=E.slice(E.length-1);"h"===C&&(S=0),"v"===C&&(A=0),i+=et(S,A)/Math.PI*180+90}else i=null}return J=r,$=n,Q=t.i,tt=e.uid,i}b.getMarkerAngle=at},{"../../components/fx/helpers":403,"../../constants/alignment":483,"../../constants/interactions":490,"../../constants/xmlns_namespaces":492,"../../lib":515,"../../lib/svg_text_utils":541,"../../registry":647,"../../traces/scatter/make_bubble_size_func":953,"../../traces/scatter/subtypes":961,"../color":367,"../colorscale":379,"./symbol_defs":390,"@plotly/d3":58,"fast-isnumeric":190,tinycolor2:313}],390:[function(t,e,r){"use strict";var n,i,a,o,s=t("parse-svg-path"),l=t("@plotly/d3").round,c="M0,0Z",u=Math.sqrt(2),f=Math.sqrt(3),p=Math.PI,d=Math.cos,h=Math.sin;function g(t){return null===t}function m(t,e,r){if((!t||t%360===0)&&!e)return r;if(a===t&&o===e&&n===r)return i;function l(t,r){var n=d(t),i=h(t),a=r[0],o=r[1]+(e||0);return[a*n-o*i,a*i+o*n]}a=t,o=e,n=r;for(var c=t/180*p,u=0,f=0,g=s(r),m="",v=0;v<g.length;v++){var y=g[v],b=y[0],x=u,_=f;if("M"===b||"L"===b)u=+y[1],f=+y[2];else if("m"===b||"l"===b)u+=+y[1],f+=+y[2];else if("H"===b)u=+y[1];else if("h"===b)u+=+y[1];else if("V"===b)f=+y[1];else if("v"===b)f+=+y[1];else if("A"===b){u=+y[1],f=+y[2];var w=l(c,[+y[6],+y[7]]);y[6]=w[0],y[7]=w[1],y[3]=+y[3]+t}"H"!==b&&"V"!==b||(b="L"),"h"!==b&&"v"!==b||(b="l"),"m"!==b&&"l"!==b||(u-=x,f-=_);var k=l(c,[u,f]);"H"!==b&&"V"!==b||(b="L"),"M"!==b&&"L"!==b&&"m"!==b&&"l"!==b||(y[1]=k[0],y[2]=k[1]),y[0]=b,m+=y[0]+y.slice(1).join(",")}return i=m,m}e.exports={circle:{n:0,f:function(t,e,r){if(g(e))return c;var n=l(t,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?m(e,r,i):i}},square:{n:1,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(t,e,r){if(g(e))return c;var n=l(1.3*t,2);return m(e,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(t,e,r){if(g(e))return c;var n=l(.4*t,2),i=l(1.2*t,2);return m(e,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(t,e,r){if(g(e))return c;var n=l(.8*t/u,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return m(e,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(t,e,r){if(g(e))return c;var n=l(2*t/f,2);return m(e,r,"M-"+n+","+l(t/2,2)+"H"+n+"L0,-"+l(t,2)+"Z")}},"triangle-down":{n:6,f:function(t,e,r){if(g(e))return c;var n=l(2*t/f,2);return m(e,r,"M-"+n+",-"+l(t/2,2)+"H"+n+"L0,"+l(t,2)+"Z")}},"triangle-left":{n:7,f:function(t,e,r){if(g(e))return c;var n=l(2*t/f,2);return m(e,r,"M"+l(t/2,2)+",-"+n+"V"+n+"L-"+l(t,2)+",0Z")}},"triangle-right":{n:8,f:function(t,e,r){if(g(e))return c;var n=l(2*t/f,2);return m(e,r,"M-"+l(t/2,2)+",-"+n+"V"+n+"L"+l(t,2)+",0Z")}},"triangle-ne":{n:9,f:function(t,e,r){if(g(e))return c;var n=l(.6*t,2),i=l(1.2*t,2);return m(e,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(t,e,r){if(g(e))return c;var n=l(.6*t,2),i=l(1.2*t,2);return m(e,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(t,e,r){if(g(e))return c;var n=l(.6*t,2),i=l(1.2*t,2);return m(e,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(t,e,r){if(g(e))return c;var n=l(.6*t,2),i=l(1.2*t,2);return m(e,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(t,e,r){if(g(e))return c;var n=l(.951*t,2),i=l(.588*t,2),a=l(-t,2),o=l(-.309*t,2);return m(e,r,"M"+n+","+o+"L"+i+","+l(.809*t,2)+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(t,e,r){if(g(e))return c;var n=l(t,2),i=l(t/2,2),a=l(t*f/2,2);return m(e,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(t,e,r){if(g(e))return c;var n=l(t,2),i=l(t/2,2),a=l(t*f/2,2);return m(e,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(t,e,r){if(g(e))return c;var n=l(.924*t,2),i=l(.383*t,2);return m(e,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(t,e,r){if(g(e))return c;var n=1.4*t,i=l(.225*n,2),a=l(.951*n,2),o=l(.363*n,2),s=l(.588*n,2),u=l(-n,2),f=l(-.309*n,2),p=l(.118*n,2),d=l(.809*n,2);return m(e,r,"M"+i+","+f+"H"+a+"L"+o+","+p+"L"+s+","+d+"L0,"+l(.382*n,2)+"L-"+s+","+d+"L-"+o+","+p+"L-"+a+","+f+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(t,e,r){if(g(e))return c;var n=l(.66*t,2),i=l(.38*t,2),a=l(.76*t,2);return m(e,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(t,e,r){if(g(e))return c;var n=l(t*f*.8,2),i=l(.8*t,2),a=l(1.6*t,2),o=l(4*t,2),s="A "+o+","+o+" 0 0 1 ";return m(e,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(t,e,r){if(g(e))return c;var n=l(t*f*.8,2),i=l(.8*t,2),a=l(1.6*t,2),o=l(4*t,2),s="A "+o+","+o+" 0 0 1 ";return m(e,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(t,e,r){if(g(e))return c;var n=l(1.1*t,2),i=l(2*t,2),a="A "+i+","+i+" 0 0 1 ";return m(e,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(t,e,r){if(g(e))return c;var n=l(1.4*t,2),i=l(1.9*t,2),a="A "+i+","+i+" 0 0 1 ";return m(e,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(t,e,r){if(g(e))return c;var n=l(.7*t,2),i=l(1.4*t,2);return m(e,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(t,e,r){if(g(e))return c;var n=l(1.4*t,2),i=l(.7*t,2);return m(e,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(t,e,r){if(g(e))return c;var n=l(t,2),i=l(t/u,2);return m(e,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(t,e,r){if(g(e))return c;var n=l(1.3*t,2);return m(e,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(t,e,r){if(g(e))return c;var n=l(1.3*t,2),i=l(.65*t,2);return m(e,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(t,e,r){if(g(e))return c;var n=l(1.4*t,2);return m(e,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t,e,r){if(g(e))return c;var n=l(1.2*t,2),i=l(.85*t,2);return m(e,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t,e,r){if(g(e))return c;var n=l(t/2,2),i=l(t,2);return m(e,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(t,e,r){if(g(e))return c;var n=l(1.2*t,2),i=l(1.6*t,2),a=l(.8*t,2);return m(e,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(t,e,r){if(g(e))return c;var n=l(1.2*t,2),i=l(1.6*t,2),a=l(.8*t,2);return m(e,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(t,e,r){if(g(e))return c;var n=l(1.2*t,2),i=l(1.6*t,2),a=l(.8*t,2);return m(e,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(t,e,r){if(g(e))return c;var n=l(1.2*t,2),i=l(1.6*t,2),a=l(.8*t,2);return m(e,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(t,e,r){if(g(e))return c;var n=l(1.4*t,2);return m(e,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(t,e,r){if(g(e))return c;var n=l(1.4*t,2);return m(e,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M0,0L-"+n+","+l(2*t,2)+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M0,0L-"+n+",-"+l(2*t,2)+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(t,e,r){if(g(e))return c;var n=l(2*t,2),i=l(t,2);return m(e,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(t,e,r){if(g(e))return c;var n=l(2*t,2),i=l(t,2);return m(e,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+l(2*t,2)+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(t,e,r){if(g(e))return c;var n=l(t,2);return m(e,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+l(2*t,2)+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(t,e,r){if(g(e))return c;var n=l(2*t,2),i=l(t,2);return m(e,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(t,e,r){if(g(e))return c;var n=l(2*t,2),i=l(t,2);return m(e,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(t,e,r){if(g(e))return c;var n=p/2.5,i=2*t*d(n),a=2*t*h(n);return m(e,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(t,e,r){if(g(e))return c;var n=p/4,i=2*t*d(n),a=2*t*h(n);return m(e,r,"M0,0L"+-i+","+a+"A "+2*t+","+2*t+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}}},{"@plotly/d3":58,"parse-svg-path":250}],391:[function(t,e,r){"use strict";e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],392:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../registry"),a=t("../../plots/cartesian/axes"),o=t("../../lib"),s=t("./compute_error");function l(t,e,r,i){var l=e["error_"+i]||{},c=[];if(l.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=s(l),f=0;f<t.length;f++){var p=t[f],d=p.i;if(void 0===d)d=f;else if(null===d)continue;var h=p[i];if(n(r.c2l(h))){var g=u(h,d);if(n(g[0])&&n(g[1])){var m=p[i+"s"]=h-g[0],v=p[i+"h"]=h+g[1];c.push(m,v)}}}var y=r._id,b=e._extremes[y],x=a.findExtremes(r,c,o.extendFlat({tozero:b.opts.tozero},{padded:!0}));b.min=b.min.concat(x.min),b.max=b.max.concat(x.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r<e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&&i.traceIs(o,"errorBarsOK")){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,"x"),l(n,o,c,"y")}}}},{"../../lib":515,"../../plots/cartesian/axes":566,"../../registry":647,"./compute_error":393,"fast-isnumeric":190}],393:[function(t,e,r){"use strict";function n(t,e){return"percent"===t?function(t){return Math.abs(t*e/100)}:"constant"===t?function(){return Math.abs(e)}:"sqrt"===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if("data"===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],394:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../registry"),a=t("../../lib"),o=t("../../plot_api/plot_template"),s=t("./attributes");e.exports=function(t,e,r,l){var c="error_"+l.axis,u=o.newContainer(e,c),f=t[c]||{};function p(t,e){return a.coerce(f,u,s,t,e)}if(!1!==p("visible",void 0!==f.array||void 0!==f.value||"sqrt"===f.type)){var d=p("type","array"in f?"data":"percent"),h=!0;"sqrt"!==d&&(h=p("symmetric",!(("data"===d?"arrayminus":"valueminus")in f))),"data"===d?(p("array"),p("traceref"),h||(p("arrayminus"),p("tracerefminus"))):"percent"!==d&&"constant"!==d||(p("value"),h||p("valueminus"));var g="copy_"+l.inherit+"style";l.inherit&&(e["error_"+l.inherit]||{}).visible&&p(g,!(f.color||n(f.thickness)||n(f.width))),l.inherit&&u[g]||(p("color",r),p("thickness"),p("width",i.traceIs(e,"gl3d")?0:4))}}},{"../../lib":515,"../../plot_api/plot_template":555,"../../registry":647,"./attributes":391,"fast-isnumeric":190}],395:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plot_api/edit_types").overrideAll,a=t("./attributes"),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};function l(t,e,r){(e.error_y||{}).visible&&(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys)),(e.error_x||{}).visible&&(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,"calc","nested"),scattergl:i(o,"calc","nested")}},supplyDefaults:t("./defaults"),calc:t("./calc"),makeComputeError:t("./compute_error"),plot:t("./plot"),style:t("./style"),hoverInfo:l}},{"../../lib":515,"../../plot_api/edit_types":548,"./attributes":391,"./calc":392,"./compute_error":393,"./defaults":394,"./plot":396,"./style":397}],396:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../drawing"),o=t("../../traces/scatter/subtypes");function s(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};return void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0))),void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0))),n}e.exports=function(t,e,r,l){var c=r.xaxis,u=r.yaxis,f=l&&l.duration>0;e.each((function(e){var p,d=e[0].trace,h=d.error_x||{},g=d.error_y||{};d.ids&&(p=function(t){return t.id});var m=o.hasMarkers(d)&&d.marker.maxdisplayed>0;g.visible||h.visible||(e=[]);var v=n.select(this).selectAll("g.errorbar").data(e,p);if(v.exit().remove(),e.length){h.visible||v.selectAll("path.xerror").remove(),g.visible||v.selectAll("path.yerror").remove(),v.style("opacity",1);var y=v.enter().append("g").classed("errorbar",!0);f&&y.style("opacity",0).transition().duration(l.duration).style("opacity",1),a.setClipUrl(v,r.layerClipId,t),v.each((function(t){var e=n.select(this),r=s(t,c,u);if(!m||t.vis){var a,o=e.select("path.yerror");if(g.visible&&i(r.x)&&i(r.yh)&&i(r.ys)){var p=g.width;a="M"+(r.x-p)+","+r.yh+"h"+2*p+"m-"+p+",0V"+r.ys,r.noYS||(a+="m-"+p+",0h"+2*p),o.size()?f&&(o=o.transition().duration(l.duration).ease(l.easing)):o=e.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0),o.attr("d",a)}else o.remove();var d=e.select("path.xerror");if(h.visible&&i(r.y)&&i(r.xh)&&i(r.xs)){var v=(h.copy_ystyle?g:h).width;a="M"+r.xh+","+(r.y-v)+"v"+2*v+"m0,-"+v+"H"+r.xs,r.noXS||(a+="m0,-"+v+"v"+2*v),d.size()?f&&(d=d.transition().duration(l.duration).ease(l.easing)):d=e.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0),d.attr("d",a)}else d.remove()}}))}}))}},{"../../traces/scatter/subtypes":961,"../drawing":389,"@plotly/d3":58,"fast-isnumeric":190}],397:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../color");e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(i.stroke,r.color),a.copy_ystyle&&(a=r),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(i.stroke,a.color)}))}},{"../color":367,"@plotly/d3":58}],398:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("./layout_attributes").hoverlabel,a=t("../../lib/extend").extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":505,"../../plots/font_attributes":594,"./layout_attributes":408}],399:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry");function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&&(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s<e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,"pie-like")){var u=i.traceIs(c,"2dMap")?a:n.fillArray;u(c.hoverinfo,l,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,l,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,l,"hbg"),u(c.hoverlabel.bordercolor,l,"hbc"),u(c.hoverlabel.font.size,l,"hts"),u(c.hoverlabel.font.color,l,"htc"),u(c.hoverlabel.font.family,l,"htf"),u(c.hoverlabel.namelength,l,"hnl"),u(c.hoverlabel.align,l,"hta"))}}}},{"../../lib":515,"../../registry":647}],400:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("./hover").hover;e.exports=function(t,e,r){var a=n.getComponentMethod("annotations","onClick")(t,t._hoverdata);function o(){t.emit("plotly_click",{points:t._hoverdata,event:e})}void 0!==r&&i(t,e,r,!0),t._hoverdata&&e&&e.target&&(a&&a.then?a.then(o):o(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}},{"../../registry":647,"./hover":404}],401:[function(t,e,r){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},{}],402:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("./hoverlabel_defaults");e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}var l=n.extendFlat({},o.hoverlabel);e.hovertemplate&&(l.namelength=-1),a(t,e,s,l)}},{"../../lib":515,"./attributes":398,"./hoverlabel_defaults":405}],403:[function(t,e,r){"use strict";var n=t("../../lib");r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if("splom"===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a<n.length;a++)for(var o=0;o<i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return"closest"===t?i||r.quadrature(e,n):"x"===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index>=0&&r.index<t.length?r.distance=0:r.index=!1;else for(var n=0;n<t.length;n++){var i=e(t[n]);i<=r.distance&&(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e<0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i="index"in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):("xVal"in t?a.x=t.xVal:"x"in t&&(a.x=t.x),"yVal"in t?a.y=t.yVal:"y"in t&&(a.y=t.y),t.xa&&(a.xaxis=t.xa),t.ya&&(a.yaxis=t.ya),void 0!==t.zLabelVal&&(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&&(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),p=0;p<r.length;p++)f[p]=o(u,r[p]);t[c]=f}}};var i={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&&Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={"x unified":!0,"y unified":!0};r.isUnifiedHover=function(t){return"string"===typeof t&&!!l[t]},r.isXYhover=function(t){return"string"===typeof t&&!!s[t]}},{"../../lib":515}],404:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("tinycolor2"),o=t("../../lib"),s=o.strTranslate,l=o.strRotate,c=t("../../lib/events"),u=t("../../lib/svg_text_utils"),f=t("../../lib/override_cursor"),p=t("../drawing"),d=t("../color"),h=t("../dragelement"),g=t("../../plots/cartesian/axes"),m=t("../../registry"),v=t("./helpers"),y=t("./constants"),b=t("../legend/defaults"),x=t("../legend/draw"),_=y.YANGLE,w=Math.PI*_/180,k=1/Math.sin(w),T=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD,E={box:!0,ohlc:!0,violin:!0,candlestick:!0},C={scatter:!0,scattergl:!0,splom:!0};function O(t,e,r,a,s){r||(r="xy");var l=Array.isArray(r)?r:[r],u=t._fullLayout,p=u._plots||[],g=p[r],y=u._has("cartesian");if(g){var b=g.overlays.map((function(t){return t.id}));l=l.concat(b)}for(var x=l.length,_=new Array(x),w=new Array(x),k=!1,T=0;T<x;T++){var M=l[T];if(p[M])k=!0,_[T]=p[M].xaxis,w[T]=p[M].yaxis;else{if(!u[M]||!u[M]._subplot)return void o.warn("Unrecognized subplot: "+M);var A=u[M]._subplot;_[T]=A.xaxis,w[T]=A.yaxis}}var S=e.hovermode||u.hovermode;if(S&&!k&&(S="closest"),-1===["x","y","closest","x unified","y unified"].indexOf(S)||!t.calcdata||t.querySelector(".zoombox")||t._dragging)return h.unhoverRaw(t,e);var O=u.hoverdistance;-1===O&&(O=1/0);var I=u.spikedistance;-1===I&&(I=1/0);var D,U,W,Y,X,Z,K,J,$,Q,tt,et,rt,nt=[],it=[],at={hLinePoint:null,vLinePoint:null},ot=!1;if(Array.isArray(e))for(S="array",W=0;W<e.length;W++)(X=t.calcdata[e[W].curveNumber||0])&&(Z=X[0].trace,"skip"!==X[0].trace.hoverinfo&&(it.push(X),"h"===Z.orientation&&(ot=!0)));else{for(Y=0;Y<t.calcdata.length;Y++)X=t.calcdata[Y],"skip"!==(Z=X[0].trace).hoverinfo&&v.isTraceInSubplots(Z,l)&&(it.push(X),"h"===Z.orientation&&(ot=!0));var st,lt;if(s){if(!1===c.triggerHandler(t,"plotly_beforehover",e))return;var ct=s.getBoundingClientRect();st=e.clientX-ct.left,lt=e.clientY-ct.top,u._calcInverseTransform(t);var ut=o.apply3DTransform(u._invTransform)(st,lt);if(st=ut[0],lt=ut[1],st<0||st>_[0]._length||lt<0||lt>w[0]._length)return h.unhoverRaw(t,e)}else st="xpx"in e?e.xpx:_[0]._length/2,lt="ypx"in e?e.ypx:w[0]._length/2;if(e.pointerX=st+_[0]._offset,e.pointerY=lt+w[0]._offset,D="xval"in e?v.flat(l,e.xval):v.p2c(_,st),U="yval"in e?v.flat(l,e.yval):v.p2c(w,lt),!i(D[0])||!i(U[0]))return o.warn("Fx.hover failed",e,t),h.unhoverRaw(t,e)}var ft=1/0;function pt(t,r){for(Y=0;Y<it.length;Y++)if((X=it[Y])&&X[0]&&X[0].trace&&!0===(Z=X[0].trace).visible&&0!==Z._length&&-1===["carpet","contourcarpet"].indexOf(Z._module.name)){if("splom"===Z.type?K=l[J=0]:(K=v.getSubplot(Z),J=l.indexOf(K)),$=S,v.isUnifiedHover($)&&($=$.charAt(0)),et={cd:X,trace:Z,xa:_[J],ya:w[J],maxHoverDistance:O,maxSpikeDistance:I,index:!1,distance:Math.min(ft,O),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:d.defaultLine,name:Z.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[K]&&(et.subplot=u[K]._subplot),u._splomScenes&&u._splomScenes[Z.uid]&&(et.scene=u._splomScenes[Z.uid]),rt=nt.length,"array"===$){var n=e[Y];"pointNumber"in n?(et.index=n.pointNumber,$="closest"):($="","xval"in n&&(Q=n.xval,$="x"),"yval"in n&&(tt=n.yval,$=$?"closest":"y"))}else void 0!==t&&void 0!==r?(Q=t,tt=r):(Q=D[J],tt=U[J]);if(0!==O)if(Z._module&&Z._module.hoverPoints){var a=Z._module.hoverPoints(et,Q,tt,$,{finiteRange:!0,hoverLayer:u._hoverlayer});if(a)for(var s,c=0;c<a.length;c++)s=a[c],i(s.x0)&&i(s.y0)&&nt.push(N(s,S))}else o.log("Unrecognized trace type in hover:",Z);if("closest"===S&&nt.length>rt&&(nt.splice(0,rt),ft=nt[0].distance),y&&0!==I&&0===nt.length){et.distance=I,et.index=!1;var f=Z._module.hoverPoints(et,Q,tt,"closest",{hoverLayer:u._hoverlayer});if(f&&(f=f.filter((function(t){return t.spikeDistance<=I}))),f&&f.length){var p,h=f.filter((function(t){return t.xa.showspikes&&"hovered data"!==t.xa.spikesnap}));if(h.length){var g=h[0];i(g.x0)&&i(g.y0)&&(p=ht(g),(!at.vLinePoint||at.vLinePoint.spikeDistance>p.spikeDistance)&&(at.vLinePoint=p))}var m=f.filter((function(t){return t.ya.showspikes&&"hovered data"!==t.ya.spikesnap}));if(m.length){var b=m[0];i(b.x0)&&i(b.y0)&&(p=ht(b),(!at.hLinePoint||at.hLinePoint.spikeDistance>p.spikeDistance)&&(at.hLinePoint=p))}}}}}function dt(t,e,r){for(var n,i=null,a=1/0,o=0;o<t.length;o++)n=t[o].spikeDistance,r&&0===o&&(n=-1/0),n<=a&&n<=e&&(i=t[o],a=n);return i}function ht(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}pt();var gt={fullLayout:u,container:u._hoverlayer,event:e},mt=t._spikepoints,vt={vLinePoint:at.vLinePoint,hLinePoint:at.hLinePoint};t._spikepoints=vt;var yt=function(){nt.sort((function(t,e){return t.distance-e.distance})),nt=V(nt,S)};yt();var bt=S.charAt(0),xt=("x"===bt||"y"===bt)&&nt[0]&&C[nt[0].trace.type];if(y&&0!==I&&0!==nt.length){var _t=dt(nt.filter((function(t){return t.ya.showspikes})),I,xt);at.hLinePoint=ht(_t);var wt=dt(nt.filter((function(t){return t.xa.showspikes})),I,xt);at.vLinePoint=ht(wt)}if(0===nt.length){var kt=h.unhoverRaw(t,e);return!y||null===at.hLinePoint&&null===at.vLinePoint||j(mt)&&F(t,at,gt),kt}if(y&&j(mt)&&F(t,at,gt),v.isXYhover($)&&0!==nt[0].length&&"splom"!==nt[0].trace.type){var Tt=nt[0],Mt=(nt=E[Tt.trace.type]?nt.filter((function(t){return t.trace.index===Tt.trace.index})):[Tt]).length;pt(H("x",Tt,u),H("y",Tt,u));var At,St=[],Et={},Ct=0,Ot=function(t){var e=E[t.trace.type]?L(t):t.trace.index;if(Et[e]){var r=Et[e]-1,n=St[r];r>0&&Math.abs(t.distance)<Math.abs(n.distance)&&(St[r]=t)}else Ct++,Et[e]=Ct,St.push(t)};for(At=0;At<Mt;At++)Ot(nt[At]);for(At=nt.length-1;At>Mt-1;At--)Ot(nt[At]);nt=St,yt()}var Lt=t._hoverdata,It=[],Pt=q(t),Dt=G(t);for(W=0;W<nt.length;W++){var Rt=nt[W],zt=v.makeEventData(Rt,Rt.trace,Rt.cd);if(!1!==Rt.hovertemplate){var Nt=!1;Rt.cd[Rt.index]&&Rt.cd[Rt.index].ht&&(Nt=Rt.cd[Rt.index].ht),Rt.hovertemplate=Nt||Rt.trace.hovertemplate||!1}if(Rt.xa&&Rt.ya){var Ft=Rt.x0+Rt.xa._offset,Bt=Rt.x1+Rt.xa._offset,jt=Rt.y0+Rt.ya._offset,Ut=Rt.y1+Rt.ya._offset,Vt=Math.min(Ft,Bt),Ht=Math.max(Ft,Bt),qt=Math.min(jt,Ut),Gt=Math.max(jt,Ut);zt.bbox={x0:Vt+Dt,x1:Ht+Dt,y0:qt+Pt,y1:Gt+Pt}}Rt.eventData=[zt],It.push(zt)}t._hoverdata=It;var Wt="y"===S&&(it.length>1||nt.length>1)||"closest"===S&&ot&&nt.length>1,Yt=d.combine(u.plot_bgcolor||d.background,u.paper_bgcolor),Xt=P(nt,{gd:t,hovermode:S,rotateLabels:Wt,bgColor:Yt,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance});if(v.isUnifiedHover(S)||(R(Xt,Wt?"xa":"ya",u),z(Xt,Wt,u._invScaleX,u._invScaleY)),s&&s.tagName){var Zt=m.getComponentMethod("annotations","hasClickToShow")(t,It);f(n.select(s),Zt?"pointer":"")}s&&!a&&B(t,e,Lt)&&(Lt&&t.emit("plotly_unhover",{event:e,points:Lt}),t.emit("plotly_hover",{event:e,points:t._hoverdata,xaxes:_,yaxes:w,xvals:D,yvals:U}))}function L(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa?t.xa._id:"",t.ya?t.ya._id:""].join(",")}r.hover=function(t,e,r,n){t=o.getGraphDiv(t);var i=e.target;o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){O(t,e,r,n,i)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=e.gd,a=q(i),o=G(i),s=!1,l=P(t.map((function(t){var r=t._x0||t.x0||t.x||0,n=t._x1||t.x1||t.x||0,s=t._y0||t.y0||t.y||0,l=t._y1||t.y1||t.y||0,c=t.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),p=Math.min(s,l),h=Math.max(s,l),g=t.trace;if(m.traceIs(g,"gl3d")){var v=i._fullLayout[g.scene]._scene.container,y=v.offsetLeft,b=v.offsetTop;u+=y,f+=y,p+=b,h+=b}c.bbox={x0:u+o,x1:f+o,y0:p+a,y1:h+a},e.inOut_bbox&&e.inOut_bbox.push(c.bbox)}else c=!1;return{color:t.color||d.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,hovertemplateLabels:t.hovertemplateLabels||!1,eventData:c}})),{gd:i,hovermode:"closest",rotateLabels:s,bgColor:e.bgColor||d.background,container:n.select(e.container),outerContainer:e.outerContainer||e.container}),c=5,u=0,f=0;return l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-c<u?u-n+c:0,u=n+t.by+t.offset,r===e.anchorIndex&&(f=t.offset)})).each((function(t){t.offset-=f})),z(l,s,i._fullLayout._invScaleX,i._fullLayout._invScaleY),r?l:l.node()};var I=/<extra>([\s\S]*)<\/extra>/;function P(t,e){var r=e.gd,i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,h=e.container,g=e.outerContainer,w=e.commonLabelOpts||{};if(0===t.length)return[[]];var k=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,M=t[0],E=M.xa,C=M.ya,O=a.charAt(0),I=O+"Label",P=M[I];if(void 0===P&&"multicategory"===E.type)for(var R=0;R<t.length&&void 0===(P=t[R][I]);R++);var z=W(r,g),N=z.top,F=z.width,B=z.height,j=void 0!==P&&M.distance<=e.hoverdistance&&("x"===a||"y"===a);if(j){var U,V,H=!0;for(U=0;U<t.length;U++)if(H&&void 0===t[U].zLabel&&(H=!1),V=t[U].hoverinfo||t[U].trace.hoverinfo){var q=Array.isArray(V)?V:V.split("+");if(-1===q.indexOf("all")&&-1===q.indexOf(a)){j=!1;break}}H&&(j=!1)}var G=h.selectAll("g.axistext").data(j?[0]:[]);if(G.enter().append("g").classed("axistext",!0),G.exit().remove(),G.each((function(){var t=n.select(this),e=o.ensureSingle(t,"path","",(function(t){t.style({"stroke-width":"1px"})})),l=o.ensureSingle(t,"text","",(function(t){t.attr("data-notex",1)})),c=w.bgcolor||d.defaultLine,f=w.bordercolor||d.contrast(c),h=d.contrast(c),g={family:w.font.family||k,size:w.font.size||T,color:w.font.color||h};e.style({fill:c,stroke:f}),l.text(P).call(p.font,g).call(u.positionText,0,0).call(u.convertToTspans,r),t.attr("transform","");var m,v,y=W(r,l.node());if("x"===a){var b="top"===E.side?"-":"";l.attr("text-anchor","middle").call(u.positionText,0,"top"===E.side?N-y.bottom-A-S:N-y.top+A+S),m=E._offset+(M.x0+M.x1)/2,v=C._offset+("top"===E.side?0:C._length);var x=y.width/2+S;m<x?(m=x,e.attr("d","M-"+(x-A)+",0L-"+(x-2*A)+","+b+A+"H"+(S+y.width/2)+"v"+b+(2*S+y.height)+"H-"+x+"V"+b+A+"Z")):m>i.width-x?(m=i.width-x,e.attr("d","M"+(x-A)+",0L"+x+","+b+A+"v"+b+(2*S+y.height)+"H-"+x+"V"+b+A+"H"+(x-2*A)+"Z")):e.attr("d","M0,0L"+A+","+b+A+"H"+(S+y.width/2)+"v"+b+(2*S+y.height)+"H-"+(S+y.width/2)+"V"+b+A+"H-"+A+"Z")}else{var _,O,L;"right"===C.side?(_="start",O=1,L="",m=E._offset+E._length):(_="end",O=-1,L="-",m=E._offset),v=C._offset+(M.y0+M.y1)/2,l.attr("text-anchor",_),e.attr("d","M0,0L"+L+A+","+A+"V"+(S+y.height/2)+"h"+L+(2*S+y.width)+"V-"+(S+y.height/2)+"H"+L+A+"V-"+A+"Z");var I,D=y.height/2,R=N-y.top-D,z="clip"+i._uid+"commonlabel"+C._id;if(m<y.width+2*S+A){I="M-"+(A+S)+"-"+D+"h-"+(y.width-S)+"V"+D+"h"+(y.width-S)+"Z";var F=y.width-m+S;u.positionText(l,F,R),"end"===_&&l.selectAll("tspan").each((function(){var t=n.select(this),e=p.tester.append("text").text(t.text()).call(p.font,g),i=W(r,e.node());Math.round(i.width)<Math.round(y.width)&&t.attr("x",F-i.width),e.remove()}))}else u.positionText(l,O*(S+A),R),I=null;var B=i._topclips.selectAll("#"+z).data(I?[0]:[]);B.enter().append("clipPath").attr("id",z).append("path"),B.exit().remove(),B.select("path").attr("d",I),p.setClipUrl(l,I?z:null,r)}t.attr("transform",s(m,v))})),v.isUnifiedHover(a)){h.selectAll("g.hovertext").remove();var Y=t.filter((function(t){return"none"!==t.hoverinfo}));if(0===Y.length)return;var X=i.hoverlabel,Z=X.font,K={showlegend:!0,legend:{title:{text:P,font:Z},font:Z,bgcolor:X.bgcolor,bordercolor:X.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},J={font:Z};b(K,J,r._fullData);var $=J.legend;$.entries=[];for(var Q=0;Q<Y.length;Q++){var tt=Y[Q];if("none"!==tt.hoverinfo){var et=D(tt,!0,a,i,P),rt=et[0],nt=et[1];tt.name=nt,tt.text=""!==nt?nt+" : "+rt:rt;var it=tt.cd[tt.index];it&&(it.mc&&(tt.mc=it.mc),it.mcc&&(tt.mc=it.mcc),it.mlc&&(tt.mlc=it.mlc),it.mlcc&&(tt.mlc=it.mlcc),it.mlw&&(tt.mlw=it.mlw),it.mrc&&(tt.mrc=it.mrc),it.dir&&(tt.dir=it.dir)),tt._distinct=!0,$.entries.push([tt])}}$.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),$.layer=h,$._inHover=!0,$._groupTitleFont=X.grouptitlefont,x(r,$);var at,ot,st,lt,ct=h.select("g.legend"),ut=W(r,ct.node()),ft=ut.width+2*S,pt=ut.height+2*S,dt=Y[0],ht=(dt.x0+dt.x1)/2,gt=(dt.y0+dt.y1)/2,mt=!(m.traceIs(dt.trace,"bar-like")||m.traceIs(dt.trace,"box-violin"));"y"===O?mt?(ot=gt-S,at=gt+S):(ot=Math.min.apply(null,Y.map((function(t){return Math.min(t.y0,t.y1)}))),at=Math.max.apply(null,Y.map((function(t){return Math.max(t.y0,t.y1)})))):ot=at=o.mean(Y.map((function(t){return(t.y0+t.y1)/2})))-pt/2,"x"===O?mt?(st=ht+S,lt=ht-S):(st=Math.max.apply(null,Y.map((function(t){return Math.max(t.x0,t.x1)}))),lt=Math.min.apply(null,Y.map((function(t){return Math.min(t.x0,t.x1)})))):st=lt=o.mean(Y.map((function(t){return(t.x0+t.x1)/2})))-ft/2;var vt,yt,bt=E._offset,xt=C._offset;return lt+=bt-ft,ot+=xt-pt,vt=(st+=bt)+ft<F&&st>=0?st:lt+ft<F&<>=0?lt:bt+ft<F?bt:st-ht<ht-lt+ft?F-ft:0,vt+=S,yt=(at+=xt)+pt<B&&at>=0?at:ot+pt<B&&ot>=0?ot:xt+pt<B?xt:at-gt<gt-ot+pt?B-pt:0,yt+=S,ct.attr("transform",s(vt-1,yt-1)),ct}var _t=h.selectAll("g.hovertext").data(t,(function(t){return L(t)}));return _t.enter().append("g").classed("hovertext",!0).each((function(){var t=n.select(this);t.append("rect").call(d.fill,d.addOpacity(f,.8)),t.append("text").classed("name",!0),t.append("path").style("stroke-width","1px"),t.append("text").classed("nums",!0).call(p.font,k,T)})),_t.exit().remove(),_t.each((function(t){var e=n.select(this).attr("transform",""),o=t.color;Array.isArray(o)&&(o=o[t.eventData[0].pointNumber]);var h=t.bgcolor||o,g=d.combine(d.opacity(h)?h:d.defaultLine,f),m=d.combine(d.opacity(o)?o:d.defaultLine,f),v=t.borderColor||d.contrast(g),y=D(t,j,a,i,P,e),b=y[0],x=y[1],w=e.select("text.nums").call(p.font,t.fontFamily||k,t.fontSize||T,t.fontColor||v).text(b).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select("text.name"),E=0,C=0;if(x&&x!==b){M.call(p.font,t.fontFamily||k,t.fontSize||T,m).text(x).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r);var O=W(r,M.node());E=O.width+2*S,C=O.height+2*S}else M.remove(),e.select("rect").remove();e.select("path").style({fill:g,stroke:v});var L=t.xa._offset+(t.x0+t.x1)/2,I=t.ya._offset+(t.y0+t.y1)/2,R=Math.abs(t.x1-t.x0),z=Math.abs(t.y1-t.y0),U=W(r,w.node()),V=U.width/i._invScaleX,H=U.height/i._invScaleY;t.ty0=(N-U.top)/i._invScaleY,t.bx=V+2*S,t.by=Math.max(H+2*S,C),t.anchor="start",t.txwidth=V,t.tx2width=E,t.offset=0;var q,G,Y=(V+A+S+E)*i._invScaleX;if(c)t.pos=L,q=I+z/2+Y<=B,G=I-z/2-Y>=0,"top"!==t.idealAlign&&q||!G?q?(I+=z/2,t.anchor="start"):t.anchor="middle":(I-=z/2,t.anchor="end");else if(t.pos=I,q=L+R/2+Y<=F,G=L-R/2-Y>=0,"left"!==t.idealAlign&&q||!G)if(q)L+=R/2,t.anchor="start";else{t.anchor="middle";var X=Y/2,Z=L+X-F,K=L-X;Z>0&&(L-=Z),K<0&&(L+=-K)}else L-=R/2,t.anchor="end";w.attr("text-anchor",t.anchor),E&&M.attr("text-anchor",t.anchor),e.attr("transform",s(L,I)+(c?l(_):""))})),_t}function D(t,e,r,n,i,a){var s="",l="";void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name&&(t.trace._meta&&(t.name=o.templateString(t.name,t.trace._meta)),s=U(t.name,t.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==t.zLabel?(void 0!==t.xLabel&&(l+="x: "+t.xLabel+"<br>"),void 0!==t.yLabel&&(l+="y: "+t.yLabel+"<br>"),"choropleth"!==t.trace.type&&"choroplethmapbox"!==t.trace.type&&(l+=(l?"z: ":"")+t.zLabel)):e&&t[c+"Label"]===i?l=t[u+"Label"]||"":void 0===t.xLabel?void 0!==t.yLabel&&"scattercarpet"!==t.trace.type&&(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:"("+t.xLabel+", "+t.yLabel+")",!t.text&&0!==t.text||Array.isArray(t.text)||(l+=(l?"<br>":"")+t.text),void 0!==t.extraText&&(l+=(l?"<br>":"")+t.extraText),a&&""===l&&!t.hovertemplate&&(""===s&&a.remove(),l=s);var f=t.hovertemplate||!1;if(f){var p=t.hovertemplateLabels||t;t[c+"Label"]!==i&&(p[c+"other"]=p[c+"Val"],p[c+"otherLabel"]=p[c+"Label"]),l=(l=o.hovertemplateString(f,p,n._d3locale,t.eventData[0]||{},t.trace._meta)).replace(I,(function(e,r){return s=U(r,t.nameLength),""}))}return[l,s]}function R(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,p=t.size(),d=new Array(p),h=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i>.01){for(s=t.length-1;s>=0;s--)t[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=t.length-1;s>=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o<t.length;o++)(l=t[o]).pos+l.dp+l.size>e.pmax&&c++;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos>e.pmax-1&&(l.del=!0,c--);for(o=0;o<t.length&&!(c<=0);o++)if((l=t[o]).pos<e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s>=0;s--)t[s].dp-=a;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos+l.dp+l.size>e.pmax&&(l.del=!0,c--)}}}for(t.each((function(t){var n=t[e],i="x"===n._id.charAt(0),a=n.range;0===h&&a&&a[0]>a[1]!==i&&(f=-1),d[h++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?k:1)/2,pmin:0,pmax:i?r.width:r.height}]})),d.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));!n&&u<=p;){for(u++,n=!0,o=0;o<d.length-1;){var m=d[o],v=d[o+1],y=m[m.length-1],b=v[0];if((i=y.pos+y.dp+y.size-b.pos-b.dp+b.size)>.01&&y.pmin===b.pmin&&y.pmax===b.pmax){for(s=v.length-1;s>=0;s--)v[s].dp+=i;for(m.push.apply(m,v),d.splice(o+1,1),c=0,s=m.length-1;s>=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s>=0;s--)m[s].dp-=a;n=!1}else o++}d.forEach(g)}for(o=d.length-1;o>=0;o--){var x=d[o];for(s=x.length-1;s>=0;s--){var _=x[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}function z(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select("text.nums"),s=t.anchor,l="end"===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),d=f+c*(t.txwidth+S),h=0,g=t.offset,m="middle"===s;m&&(f-=t.tx2width/2,d+=t.txwidth/2+S),e&&(g*=-M,h=t.offset*T),r.select("path").attr("d",m?"M-"+a(t.bx/2+t.tx2width/2)+","+o(g-t.by/2)+"h"+a(t.bx)+"v"+o(t.by)+"h-"+a(t.bx)+"Z":"M0,0L"+a(l*A+h)+","+o(A+g)+"v"+o(t.by/2-A)+"h"+a(l*t.bx)+"v-"+o(t.by)+"H"+a(l*A+h)+"V"+o(g-A)+"Z");var v=h+f,y=g+t.ty0-t.by/2+S,b=t.textAlign||"auto";"auto"!==b&&("left"===b&&"start"!==s?(i.attr("text-anchor","start"),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):"right"===b&&"end"!==s&&(i.attr("text-anchor","end"),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&&(r.select("text.name").call(u.positionText,a(d+c*S+h),o(g+t.ty0-t.by/2+S)),r.select("rect").call(p.setRect,a(d+(c-1)*t.tx2width/2+h),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function N(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&&0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,"",e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&&(t[e]=i)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),t.posref="y"===e||"closest"===e&&"h"===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&&(t.xLabel="xLabel"in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal,n.xhoverformat),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&&(t.yLabel="yLabel"in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal,n.yhoverformat),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&&void 0===t.zLabel&&(t.zLabel=String(t.zLabelVal)),!isNaN(t.xerr)&&!("log"===t.xa.type&&t.xerr<=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),"hover").text;void 0!==t.xerrneg?t.xLabel+=" +"+f+" / -"+g.tickText(t.xa,t.xa.c2l(t.xerrneg),"hover").text:t.xLabel+=" \xb1 "+f,"x"===e&&(t.distance+=1)}if(!isNaN(t.yerr)&&!("log"===t.ya.type&&t.yerr<=0)){var p=g.tickText(t.ya,t.ya.c2l(t.yerr),"hover").text;void 0!==t.yerrneg?t.yLabel+=" +"+p+" / -"+g.tickText(t.ya,t.ya.c2l(t.yerrneg),"hover").text:t.yLabel+=" \xb1 "+p,"y"===e&&(t.distance+=1)}var d=t.hoverinfo||t.trace.hoverinfo;return d&&"all"!==d&&(-1===(d=Array.isArray(d)?d:d.split("+")).indexOf("x")&&(t.xLabel=void 0),-1===d.indexOf("y")&&(t.yLabel=void 0),-1===d.indexOf("z")&&(t.zLabel=void 0),-1===d.indexOf("text")&&(t.text=void 0),-1===d.indexOf("name")&&(t.name=void 0)),t}function F(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(".spikeline").remove(),f||u){var h=d.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&&y.xa,"cursor"===(i=y&&y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var b,x,_=a.readability(y.color,h)<1.5?d.contrast(h):y.color,w=i.spikemode,k=i.spikethickness,T=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(b=M,x=m),-1!==w.indexOf("across")){var A=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(A=Math.min(A,i.position),S=Math.max(S,i.position)),b=l.l+A*l.w,x=l.l+S*l.w}o.insert("line",":first-child").attr({x1:b,x2:x,y1:v,y2:v,"stroke-width":k,stroke:T,"stroke-dasharray":p.dashStyle(i.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:b,x2:x,y1:v,y2:v,"stroke-width":k+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:M+("right"!==i.side?k:-k),cy:v,r:k,fill:T}).classed("spikeline",!0)}if(f){var E,C,O=e.vLinePoint;n=O&&O.xa,i=O&&O.ya,"cursor"===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+O.x,C=i._offset+O.y);var L,I,P=a.readability(O.color,h)<1.5?d.contrast(h):O.color,D=n.spikemode,R=n.spikethickness,z=n.spikecolor||P,N=g.getPxPosition(t,n);if(-1!==D.indexOf("toaxis")||-1!==D.indexOf("across")){if(-1!==D.indexOf("toaxis")&&(L=N,I=C),-1!==D.indexOf("across")){var F=n._counterDomainMin,B=n._counterDomainMax;"free"===n.anchor&&(F=Math.min(F,n.position),B=Math.max(B,n.position)),L=l.t+(1-B)*l.h,I=l.t+(1-F)*l.h}o.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:I,"stroke-width":R,stroke:z,"stroke-dasharray":p.dashStyle(n.spikedash,R)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:I,"stroke-width":R+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==D.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:E,cy:N-("top"!==n.side?R:-R),r:R,fill:z}).classed("spikeline",!0)}}}function B(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}function j(t,e){return!e||e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint}function U(t,e){return u.plainText(t||"",{len:e,allowedTags:["br","sub","sup","b","i","em"]})}function V(t,e){for(var r=e.charAt(0),n=[],i=[],a=[],o=0;o<t.length;o++){var s=t[o];m.traceIs(s.trace,"bar-like")||m.traceIs(s.trace,"box-violin")?a.push(s):s.trace[r+"period"]?i.push(s):n.push(s)}return n.concat(i).concat(a)}function H(t,e,r){var n=e[t+"a"],i=e[t+"Val"],a=e.cd[0];if("category"===n.type||"multicategory"===n.type)i=n._categoriesMap[i];else if("date"===n.type){var o=e.trace[t+"periodalignment"];if(o){var s=e.cd[e.index],l=s[t+"Start"];void 0===l&&(l=s[t]);var c=s[t+"End"];void 0===c&&(c=s[t]);var u=c-l;"end"===o?i+=u:"middle"===o&&(i+=u/2)}i=n.d2c(i)}return a&&a.t&&a.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(i+=a.t.dPos)),i}function q(t){return t.offsetTop+t.clientTop}function G(t){return t.offsetLeft+t.clientLeft}function W(t,e){var r=t._fullLayout,n=e.getBoundingClientRect(),i=n.x,a=n.y,s=i+n.width,l=a+n.height,c=o.apply3DTransform(r._invTransform)(i,a),u=o.apply3DTransform(r._invTransform)(s,l),f=c[0],p=c[1],d=u[0],h=u[1];return{x:f,y:p,width:d-f,height:h-p,top:Math.min(p,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(p,h)}}},{"../../lib":515,"../../lib/events":504,"../../lib/override_cursor":526,"../../lib/svg_text_utils":541,"../../plots/cartesian/axes":566,"../../registry":647,"../color":367,"../dragelement":386,"../drawing":389,"../legend/defaults":419,"../legend/draw":420,"./constants":401,"./helpers":403,"@plotly/d3":58,"fast-isnumeric":190,tinycolor2:313}],405:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../color"),a=t("./helpers").isUnifiedHover;e.exports=function(t,e,r,o){o=o||{};var s=e.legend;function l(t){o.font[t]||(o.font[t]=s?e.legend.font[t]:e.font[t])}e&&a(e.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),s?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},{"../../lib":515,"../color":367,"./helpers":403}],406:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}return r("clickmode"),r("hovermode")}},{"../../lib":515,"./layout_attributes":408}],407:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../dragelement"),o=t("./helpers"),s=t("./layout_attributes"),l=t("./hover");function c(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll("g.hovertext").remove(),e.selectAll(".spikeline").remove()}function u(t,e,r){return i.castOption(t,e,"hoverlabel."+r)}function f(t,e,r){function n(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}return i.castOption(t,r,"hoverinfo",n)}e.exports={moduleType:"component",name:"fx",constants:t("./constants"),schema:{layout:s},attributes:t("./attributes"),layoutAttributes:s,supplyLayoutGlobalDefaults:t("./layout_global_defaults"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:u,castHoverinfo:f,hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:c,click:t("./click")}},{"../../lib":515,"../dragelement":386,"./attributes":398,"./calc":399,"./click":400,"./constants":401,"./defaults":402,"./helpers":403,"./hover":404,"./layout_attributes":408,"./layout_defaults":409,"./layout_global_defaults":410,"@plotly/d3":58}],408:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../plots/font_attributes"),a=i({editType:"none"});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,grouptitlefont:i({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":594,"./constants":401}],409:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes"),a=t("./hovermode_defaults"),o=t("./hoverlabel_defaults");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}a(t,e)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var s=e._has("mapbox"),l=e._has("geo"),c=e._basePlotModules.length;"zoom"===e.dragmode&&((s||l)&&1===c||s&&l&&2===c)&&(e.dragmode="pan"),o(t,e,r),n.coerceFont(r,"hoverlabel.grouptitlefont",e.hoverlabel.font)}},{"../../lib":515,"./hoverlabel_defaults":405,"./hovermode_defaults":406,"./layout_attributes":408}],410:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./hoverlabel_defaults"),a=t("./layout_attributes");e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}i(t,e,r)}},{"../../lib":515,"./hoverlabel_defaults":405,"./layout_attributes":408}],411:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../lib/regex").counter,a=t("../../plots/domain").attributes,o=t("../../plots/cartesian/constants").idRegex,s=t("../../plot_api/plot_template"),l={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[i("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:a({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function c(t,e,r){var n=e[r+"axes"],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e){var r=t.grid||{},i=c(e,r,"x"),a=c(e,r,"y");if(t.grid||i||a){var o,u,p=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),d=Array.isArray(i),h=Array.isArray(a),g=d&&i!==r.xaxes&&h&&a!==r.yaxes;p?(o=r.subplots.length,u=r.subplots[0].length):(h&&(o=a.length),d&&(u=i.length));var m=s.newContainer(e,"grid"),v=T("rows",o),y=T("columns",u);if(v*y>1){p||d||h||"independent"===T("pattern")&&(p=!0),m._hasSubplotGrid=p;var b,x,_="top to bottom"===T("roworder"),w=p?.2:.1,k=p?.3:.1;g&&e._splomGridDflt&&(b=e._splomGridDflt.xside,x=e._splomGridDflt.yside),m._domains={x:f("x",T,w,b,y),y:f("y",T,k,x,v,_)}}else delete e.grid}function T(t,e){return n.coerce(r,m,l,t,e)}}function f(t,e,r,n,i,a){var o=e(t+"gap",r),s=e("domain."+t);e(t+"side",n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),p=0;p<i;p++){var d=c+u*p;l[a?i-1-p:p]=[d,d+f]}return l}function p(t,e){var r=e.grid;if(r&&r._domains){var n,i,a,o,s,l,u,f=t.grid||{},p=e._subplots,h=r._hasSubplotGrid,g=r.rows,m=r.columns,v="independent"===r.pattern,y=r._axisMap={};if(h){var b=f.subplots||[];l=r.subplots=new Array(g);var x=1;for(n=0;n<g;n++){var _=l[n]=new Array(m),w=b[n]||[];for(i=0;i<m;i++)if(v?(s=1===x?"xy":"x"+x+"y"+x,x++):s=w[i],_[i]="",-1!==p.cartesian.indexOf(s)){if(u=s.indexOf("y"),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&&y[a]!==i||void 0!==y[o]&&y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var k=c(e,f,"x"),T=c(e,f,"y");r.xaxes=d(k,p.xaxis,m,y,"x"),r.yaxes=d(T,p.yaxis,g,y,"y")}var M=r._anchors={},A="top to bottom"===r.roworder;for(var S in y){var E,C,O,L=S.charAt(0),I=r[L+"side"];if(I.length<8)M[S]="free";else if("x"===L){if("t"===I.charAt(0)===A?(E=0,C=1,O=g):(E=g-1,C=-1,O=-1),h){var P=y[S];for(n=E;n!==O;n+=C)if((s=l[n][P])&&(u=s.indexOf("y"),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==O;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if("l"===I.charAt(0)?(E=0,C=1,O=m):(E=m-1,C=-1,O=-1),h){var D=y[S];for(n=E;n!==O;n+=C)if((s=l[D][n])&&(u=s.indexOf("y"),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==O;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}function d(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&&void 0===n[r]?(o[t]=r,n[r]=t):o[t]=""}if(Array.isArray(t))for(a=0;a<r;a++)s(a,t[a]);else for(s(0,i),a=1;a<r;a++)s(a,i+(a+1));return o}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:u,contentDefaults:p}},{"../../lib":515,"../../lib/regex":532,"../../plot_api/plot_template":555,"../../plots/cartesian/constants":573,"../../plots/domain":593}],412:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/constants"),i=t("../../plot_api/plot_template").templatedArray;t("../../constants/axis_placeable_objects"),e.exports=i("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},{"../../constants/axis_placeable_objects":484,"../../plot_api/plot_template":555,"../../plots/cartesian/constants":573}],413:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib/to_log_range");e.exports=function(t,e,r,a){e=e||{};var o="log"===r&&"linear"===e.type,s="linear"===r&&"log"===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),p=0;p<u.length;p++)if(c="images["+p+"].",(l=u[p])[f+"ref"]===e._id){var d=l[f],h=l["size"+f],g=null,m=null;if(o){g=i(d,e.range);var v=h/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,d))*(Math.pow(10,h/2)-Math.pow(10,-h/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+"size"+f,m)}}},{"../../lib/to_log_range":543,"fast-isnumeric":190}],414:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("../../plots/array_container_defaults"),o=t("./attributes"),s="images";function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a("source");if(!a("visible",!!s))return e;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:r},c=["x","y"],u=0;u<2;u++){var f=c[u],p=i.coerceRef(t,e,l,f,"paper",void 0);"paper"!==p&&i.getFromId(l,p)._imgIndices.push(e._index),i.coercePosition(e,l,a,p,f,0)}return e}e.exports=function(t,e){a(t,e,{name:s,handleItemDefaults:l})}},{"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/cartesian/axes":566,"./attributes":412}],415:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../drawing"),a=t("../../plots/cartesian/axes"),o=t("../../plots/cartesian/axis_ids"),s=t("../../constants/xmlns_namespaces");e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r<l.images.length;r++){var p=l.images[r];if(p.visible)if("below"===p.layer&&"paper"!==p.xref&&"paper"!==p.yref){e=o.ref2id(p.xref)+o.ref2id(p.yref);var d=l._plots[e];if(!d){f.push(p);continue}d.mainplot&&(e=d.mainplot.id),u[e]||(u[e]=[]),u[e].push(p)}else"above"===p.layer?c.push(p):f.push(p)}var h={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}}};function g(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr("xmlns",s.svg),e.source&&"data:"===e.source.slice(0,5))r.attr("xlink:href",e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute("crossOrigin","anonymous"),n.onerror=i,n.onload=function(){var e=document.createElement("canvas");e.width=this.width,e.height=this.height,e.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var n=e.toDataURL("image/png");r.attr("xlink:href",n),t()},r.on("error",i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function m(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f="domain"===a.getRefType(e.xref),p="domain"===a.getRefType(e.yref),d=l._size;r=void 0!==c?"string"===typeof e.xref&&f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*d.w,o=void 0!==u?"string"===typeof e.yref&&p?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*d.h;var g,m,v=r*h.x[e.xanchor].offset,y=o*h.y[e.yanchor].offset,b=h.x[e.xanchor].sizing+h.y[e.yanchor].sizing;switch(g=void 0!==c?"string"===typeof e.xref&&f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*d.w+d.l,g+=v,m=void 0!==u?"string"===typeof e.yref&&p?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:d.h-e.y*d.h+d.t,m+=y,e.sizing){case"fill":b+=" slice";break;case"stretch":b="none"}s.attr({x:g,y:m,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var x=(c&&"domain"!==a.getRefType(e.xref)?c._id:"")+(u&&"domain"!==a.getRefType(e.yref)?u._id:"");i.setClipUrl(s,x?"clip"+l._uid+x:null,t)}var v=l._imageLowerLayer.selectAll("image").data(f),y=l._imageUpperLayer.selectAll("image").data(c);v.enter().append("image"),y.enter().append("image"),v.exit().remove(),y.exit().remove(),v.each((function(t){g.bind(this)(t),m.bind(this)(t)})),y.each((function(t){g.bind(this)(t),m.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r<b.length;r++){e=b[r];var x=l._plots[e];if(x.imagelayer){var _=x.imagelayer.selectAll("image").data(u[e]||[]);_.enter().append("image"),_.exit().remove(),_.each((function(t){g.bind(this)(t),m.bind(this)(t)}))}}}},{"../../constants/xmlns_namespaces":492,"../../plots/cartesian/axes":566,"../../plots/cartesian/axis_ids":570,"../drawing":389,"@plotly/d3":58}],416:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),includeBasePlot:t("../../plots/cartesian/include_components")("images"),draw:t("./draw"),convertCoords:t("./convert_coords")}},{"../../plots/cartesian/include_components":577,"./attributes":412,"./convert_coords":413,"./defaults":414,"./draw":415}],417:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("../color/attributes");e.exports={bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:i.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:n({editType:"legend"}),grouptitlefont:n({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",min:-2,max:3,editType:"legend"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",min:-2,max:3,editType:"legend"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:n({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend"},editType:"legend"},editType:"legend"}},{"../../plots/font_attributes":594,"../color/attributes":366}],418:[function(t,e,r){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],419:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../../plot_api/plot_template"),o=t("../../plots/attributes"),s=t("./attributes"),l=t("../../plots/layout_attributes"),c=t("./helpers");e.exports=function(t,e,r){var u,f=t.legend||{},p=a.newContainer(e,"legend");function d(t,e){return i.coerce(f,p,s,t,e)}for(var h=function(t,e){var r=u._input,n=u;return i.coerce(r,n,o,t,e)},g=e.font||{},m=i.coerceFont(d,"grouptitlefont",i.extendFlat({},g,{size:Math.round(1.1*g.size)})),v=0,y=!1,b="normal",x=0;x<r.length;x++)(u=r[x]).visible&&((u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&!1===u._module.attributes.showlegend.dflt))&&(v++,u.showlegend&&(y=!0,(n.traceIs(u,"pie-like")||!0===u._input.showlegend)&&v++),i.coerceFont(h,"legendgrouptitle.font",m)),(n.traceIs(u,"bar")&&"stack"===e.barmode||-1!==["tonextx","tonexty"].indexOf(u.fill))&&(b=c.isGrouped({traceorder:b})?"grouped+reversed":"reversed"),void 0!==u.legendgroup&&""!==u.legendgroup&&(b=c.isReversed({traceorder:b})?"reversed+grouped":"grouped"));var _=i.coerce(t,e,l,"showlegend",y&&v>1);if(!1===_&&(e.legend=void 0),(!1!==_||f.uirevision)&&(d("uirevision",e.uirevision),!1!==_)){d("bgcolor",e.paper_bgcolor),d("bordercolor"),d("borderwidth");var w,k,T,M=i.coerceFont(d,"font",e.font),A="h"===d("orientation");if(A?(w=0,n.getComponentMethod("rangeslider","isVisible")(t.xaxis)?(k=1.1,T="bottom"):(k=-.1,T="top")):(w=1.02,k=1,T="auto"),d("traceorder",b),c.isGrouped(e.legend)&&d("tracegroupgap"),d("entrywidth"),d("entrywidthmode"),d("itemsizing"),d("itemwidth"),d("itemclick"),d("itemdoubleclick"),d("groupclick"),d("x",w),d("xanchor"),d("y",k),d("yanchor",T),d("valign"),i.noneOrAll(f,p,["x","y"]),d("title.text")){d("title.side",A?"left":"top");var S=i.extendFlat({},M,{size:i.bigFont(M.size)});i.coerceFont(d,"title.font",S)}}}},{"../../lib":515,"../../plot_api/plot_template":555,"../../plots/attributes":562,"../../plots/layout_attributes":619,"../../registry":647,"./attributes":417,"./helpers":423}],420:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../plots/plots"),o=t("../../registry"),s=t("../../lib/events"),l=t("../dragelement"),c=t("../drawing"),u=t("../color"),f=t("../../lib/svg_text_utils"),p=t("./handle_click"),d=t("./constants"),h=t("../../constants/alignment"),g=h.LINE_SPACING,m=h.FROM_TL,v=h.FROM_BR,y=t("./get_legend_data"),b=t("./style"),x=t("./helpers"),_=1;function w(t,e){var r,s=t._fullLayout,f="legend"+s._uid,p=e._inHover;if(p?(r=e.layer,f+="-hover"):r=s._infolayer,r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),p){if(!e.entries)return;h=y(e.entries,e)}else{if(!t.calcdata)return;h=s.showlegend&&y(t.calcdata,e)}var g=s.hiddenlabels||[];if(!p&&(!s.showlegend||!h.length))return r.selectAll(".legend").remove(),s._topdefs.select("#"+f).remove(),a.autoMargin(t,"legend");var v=i.ensureSingle(r,"g","legend",(function(t){p||t.attr("pointer-events","all")})),x=i.ensureSingleById(s._topdefs,"clipPath",f,(function(t){t.append("rect")})),w=i.ensureSingle(v,"rect","bg",(function(t){t.attr("shape-rendering","crispEdges")}));w.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px");var k=i.ensureSingle(v,"g","scrollbox"),A=e.title;if(e._titleWidth=0,e._titleHeight=0,A.text){var C=i.ensureSingle(k,"text","legendtitletext");C.attr("text-anchor","start").call(c.font,A.font).text(A.text),E(C,k,t,e,_)}else k.selectAll(".legendtitletext").remove();var O=i.ensureSingle(v,"rect","scrollbar",(function(t){t.attr(d.scrollBarEnterAttrs).call(u.fill,d.scrollBarColor)})),R=k.selectAll("g.groups").data(h);R.enter().append("g").attr("class","groups"),R.exit().remove();var z=R.selectAll("g.traces").data(i.identity);z.enter().append("g").attr("class","traces"),z.exit().remove(),z.style("opacity",(function(t){var e=t[0].trace;return o.traceIs(e,"pie-like")?-1!==g.indexOf(t[0].label)?.5:1:"legendonly"===e.visible?.5:1})).each((function(){n.select(this).call(M,t,e)})).call(b,t,e).each((function(){p||n.select(this).call(S,t)})),i.syncOrAsync([a.previousPromises,function(){return L(t,R,z,e)},function(){var a,u,h,g,y=s._size,b=e.borderwidth;if(!p){if(I(t))return;var _=y.l+y.w*e.x-m[P(e)]*e._width,M=y.t+y.h*(1-e.y)-m[D(e)]*e._effHeight;if(s.margin.autoexpand){var A=_,S=M;_=i.constrain(_,0,s.width-e._width),M=i.constrain(M,0,s.height-e._effHeight),_!==A&&i.log("Constrain legend.x to make legend fit inside graph"),M!==S&&i.log("Constrain legend.y to make legend fit inside graph")}c.setTranslate(v,_,M)}if(O.on(".drag",null),v.on("wheel",null),p||e._height<=e._maxHeight||t._context.staticPlot){var E=e._effHeight;p&&(E=e._height),w.attr({width:e._width-b,height:E-b,x:b/2,y:b/2}),c.setTranslate(k,0,0),x.select("rect").attr({width:e._width-2*b,height:E-2*b,x:b,y:b}),c.setClipUrl(k,f,t),c.setRect(O,0,0,0,0),delete e._scrollY}else{var C,L,R,z=Math.max(d.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),N=e._effHeight-z-2*d.scrollBarMargin,F=e._height-e._effHeight,B=N/F,j=Math.min(e._scrollY||0,F);w.attr({width:e._width-2*b+d.scrollBarWidth+d.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),x.select("rect").attr({width:e._width-2*b+d.scrollBarWidth+d.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(k,f,t),G(j,z,B),v.on("wheel",(function(){G(j=i.constrain(e._scrollY+n.event.deltaY/N*F,0,F),z,B),0!==j&&j!==F&&n.event.preventDefault()}));var U=function(t,e,r){var n=(r-e)/B+t;return i.constrain(n,0,F)},V=function(t,e,r){var n=(e-r)/B+t;return i.constrain(n,0,F)},H=n.behavior.drag().on("dragstart",(function(){var t=n.event.sourceEvent;C="touchstart"===t.type?t.changedTouches[0].clientY:t.clientY,R=j})).on("drag",(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(L="touchmove"===t.type?t.changedTouches[0].clientY:t.clientY,G(j=U(R,C,L),z,B))}));O.call(H);var q=n.behavior.drag().on("dragstart",(function(){var t=n.event.sourceEvent;"touchstart"===t.type&&(C=t.changedTouches[0].clientY,R=j)})).on("drag",(function(){var t=n.event.sourceEvent;"touchmove"===t.type&&(L=t.changedTouches[0].clientY,G(j=V(R,C,L),z,B))}));k.call(q)}function G(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(k,0,-r),c.setRect(O,e._width,d.scrollBarMargin+r*i,d.scrollBarWidth,n),x.select("rect").attr("y",b+r)}t._context.edits.legendPosition&&(v.classed("cursor-move",!0),l.init({element:v.node(),gd:t,prepFn:function(){var t=c.getTranslate(v);h=t.x,g=t.y},moveFn:function(t,r){var n=h+t,i=g+r;c.setTranslate(v,n,i),a=l.align(n,0,y.l,y.l+y.w,e.xanchor),u=l.align(i,0,y.t+y.h,y.t,e.yanchor)},doneFn:function(){void 0!==a&&void 0!==u&&o.call("_guiRelayout",t,{"legend.x":a,"legend.y":u})},clickFn:function(e,n){var i=r.selectAll("g.traces").filter((function(){var t=this.getBoundingClientRect();return n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom}));i.size()>0&&T(t,v,i,e,n)}}))}],t)}}function k(t,e,r){var n=t[0],i=n.width,a=e.entrywidthmode,o=n.trace.legendwidth||e.entrywidth;return"fraction"===a?e._maxWidth*o:r+(o||i)}function T(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};a._group&&(l.group=a._group),o.traceIs(a,"pie-like")&&(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,"plotly_legendclick",l)&&(1===n?e._clickTimeout=setTimeout((function(){t._fullLayout&&p(r,t,n)}),t._context.doubleClickDelay):2===n&&(e._clickTimeout&&clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,"plotly_legenddoubleclick",l)&&p(r,t,n)))}function M(t,e,r){var n,a,s=t.data()[0][0],l=s.trace,u=o.traceIs(l,"pie-like"),p=!r._inHover&&e._context.edits.legendText&&!u,h=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,a=s.groupTitle.font):(a=r.font,r.entries?n=s.text:(n=u?s.label:l.name,l._meta&&(n=i.templateString(n,l._meta))));var g=i.ensureSingle(t,"text","legendtext");g.attr("text-anchor","start").call(c.font,a).text(p?A(n,h):n);var m=r.itemwidth+2*d.itemGap;f.positionText(g,m,0),p?g.call(f.makeEditable,{gd:e,text:n}).call(E,t,e,r).on("edit",(function(n){this.text(A(n,h)).call(E,t,e,r);var a=s.trace._fullInput||{},c={};if(o.hasTransform(a,"groupby")){var u=o.getTransformIndices(a,"groupby"),f=u[u.length-1],p=i.keyedContainer(a,"transforms["+f+"].styles","target","value.name");p.set(s.trace._group,n),c=p.constructUpdate()}else c.name=n;return o.call("_guiRestyle",e,c,l.index)})):E(g,t,e,r)}function A(t,e){var r=Math.max(4,e);if(t&&t.trim().length>=r/2)return t;for(var n=r-(t=t||"").length;n>0;n--)t+=" ";return t}function S(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,"rect","legendtoggle",(function(t){e._context.staticPlot||t.style("cursor","pointer").attr("pointer-events","all"),t.call(u.fill,"rgba(0,0,0,0)")}));e._context.staticPlot||(s.on("mousedown",(function(){(r=(new Date).getTime())-e._legendMouseDownTime<a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on("mouseup",(function(){if(!e._dragged&&!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime>a&&(o=Math.max(o-1,1)),T(e,r,t,o,n.event)}})))}function E(t,e,r,n,i){n._inHover&&t.attr("data-notex",!0),f.convertToTspans(t,r,(function(){C(e,r,n,i)}))}function C(t,e,r,n){var i=t.data()[0][0];if(r._inHover||!i||i.trace.showlegend){var a=t.select("g[class*=math-group]"),o=a.node();r||(r=e._fullLayout.legend);var s,l,u=r.borderwidth,p=(n===_?r.title.font:i.groupTitle?i.groupTitle.font:r.font).size*g;if(o){var h=c.bBox(o);s=h.height,l=h.width,n===_?c.setTranslate(a,u,u+.75*s):c.setTranslate(a,0,.25*s)}else{var m=t.select(n===_?".legendtitletext":".legendtext"),v=f.lineCount(m),y=m.node();if(s=p*v,l=y?c.bBox(y).width:0,n===_)"left"===r.title.side&&(l+=2*d.itemGap),f.positionText(m,u+d.titlePad,u+p);else{var b=2*d.itemGap+r.itemwidth;i.groupTitle&&(b=d.itemGap,l-=r.itemwidth),f.positionText(m,b,-p*((v-1)/2-.3))}}n===_?(r._titleWidth=l,r._titleHeight=s):(i.lineHeight=p,i.height=Math.max(s,16)+3,i.width=l)}else t.remove()}function O(t){var e=0,r=0,n=t.title.side;return n&&(-1!==n.indexOf("left")&&(e=t._titleWidth),-1!==n.indexOf("top")&&(r=t._titleHeight)),[e,r]}function L(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=x.isVertical(i),l=x.isGrouped(i),u="fraction"===i.entrywidthmode,f=i.borderwidth,p=2*f,h=d.itemGap,g=i.itemwidth+2*h,m=2*(f+h),v=D(i),y=i.y<0||0===i.y&&"top"===v,b=i.y>1||1===i.y&&"bottom"===v,_=i.tracegroupgap,w={};i._maxHeight=Math.max(y||b?a.height/2:o.h,30);var T=0;i._width=0,i._height=0;var M=O(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,f+M[0],f+M[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),T=g+i._width,i._width+=h+g+p,i._height+=m,l&&(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var A=P(i),S=i.x<0||0===i.x&&"right"===A,E=i.x>1||1===i.x&&"left"===A,C=b||y,L=a.width/2;i._maxWidth=Math.max(S?C&&"left"===A?o.l+o.w:L:E?C&&"right"===A?o.r+o.w:L:o.w,2*g);var I=0,R=0;r.each((function(t){var e=k(t,i,g);I=Math.max(I,e),R+=e})),T=null;var z=0;if(l){var N=0,F=0,B=0;e.each((function(){var t=0,e=0;n.select(this).selectAll("g.traces").each((function(r){var n=k(r,i,g),a=r[0].height;c.setTranslate(this,M[0],M[1]+f+h+a/2+e),e+=a,t=Math.max(t,n),w[r[0].trace.legendgroup]=t}));var r=t+h;F>0&&r+f+F>i._maxWidth?(z=Math.max(z,F),F=0,B+=N+_,N=e):N=Math.max(N,e),c.setTranslate(this,F,B),F+=r})),i._width=Math.max(z,F)+f,i._height=B+N+m}else{var j=r.size(),U=R+p+(j-1)*h<i._maxWidth,V=0,H=0,q=0,G=0;r.each((function(t){var e=t[0].height,r=k(t,i,g,l),n=U?r:I;u||(n+=h),n+f+H-h>=i._maxWidth&&(z=Math.max(z,G),H=0,q+=V,i._height+=V,V=0),c.setTranslate(this,M[0]+f+H,M[1]+f+q+e/2+h),G=H+r+h,H+=n,V=Math.max(V,e)})),U?(i._width=H+p,i._height=V+m):(i._width=Math.max(z,G)+p,i._height+=V+m)}}i._width=Math.ceil(Math.max(i._width+M[0],i._titleWidth+2*(f+d.titlePad))),i._height=Math.ceil(Math.max(i._height+M[1],i._titleHeight+2*(f+d.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var W=t._context.edits,Y=W.legendText||W.legendPosition;r.each((function(t){var e=n.select(this).select(".legendtoggle"),r=t[0].height,a=t[0].trace.legendgroup,o=k(t,i,g);l&&""!==a&&(o=w[a]);var f=Y?g:T||o;s||u||(f+=h/2),c.setRect(e,0,-r/2,f,r)}))}function I(t){var e=t._fullLayout.legend,r=P(e),n=D(e);return a.autoMargin(t,"legend",{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}function P(t){return i.isRightAnchor(t)?"right":i.isCenterAnchor(t)?"center":"left"}function D(t){return i.isBottomAnchor(t)?"bottom":i.isMiddleAnchor(t)?"middle":"top"}e.exports=function(t,e){return e||(e=t._fullLayout.legend||{}),w(t,e)}},{"../../constants/alignment":483,"../../lib":515,"../../lib/events":504,"../../lib/svg_text_utils":541,"../../plots/plots":628,"../../registry":647,"../color":367,"../dragelement":386,"../drawing":389,"./constants":418,"./get_legend_data":421,"./handle_click":422,"./helpers":423,"./style":425,"@plotly/d3":58}],421:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("./helpers");e.exports=function(t,e){var r,a,o=e._inHover,s=i.isGrouped(e),l=i.isReversed(e),c={},u=[],f=!1,p={},d=0,h=0;function g(t,r){if(""!==t&&i.isGrouped(e))-1===u.indexOf(t)?(u.push(t),f=!0,c[t]=[r]):c[t].push(r);else{var n="~~i"+d;u.push(n),c[n]=[r],d++}}for(r=0;r<t.length;r++){var m=t[r],v=m[0],y=v.trace,b=y.legendgroup;if(o||y.visible&&y.showlegend)if(n.traceIs(y,"pie-like"))for(p[b]||(p[b]={}),a=0;a<m.length;a++){var x=m[a].label;p[b][x]||(g(b,{label:x,color:m[a].color,i:m[a].i,trace:y,pts:m[a].pts}),p[b][x]=!0,h=Math.max(h,(x||"").length))}else g(b,v),h=Math.max(h,(y.name||"").length)}if(!u.length)return[];var _=!f||!s,w=[];for(r=0;r<u.length;r++){var k=c[u[r]];_?w.push(k[0]):w.push(k)}for(_&&(w=[w]),r=0;r<w.length;r++){var T=1/0;for(a=0;a<w[r].length;a++){var M=w[r][a].trace.legendrank;T>M&&(T=M)}w[r][0]._groupMinRank=T,w[r][0]._preGroupSort=r}var A=function(t,e){return t[0]._groupMinRank-e[0]._groupMinRank||t[0]._preGroupSort-e[0]._preGroupSort},S=function(t,e){return t.trace.legendrank-e.trace.legendrank||t._preSort-e._preSort};for(w.forEach((function(t,e){t[0]._preGroupSort=e})),w.sort(A),r=0;r<w.length;r++){w[r].forEach((function(t,e){t._preSort=e})),w[r].sort(S);var E=w[r][0].trace,C=null;for(a=0;a<w[r].length;a++){var O=w[r][a].trace.legendgrouptitle;if(O&&O.text){C=O,o&&(O.font=e._groupTitleFont);break}}if(l&&w[r].reverse(),C){var L=!1;for(a=0;a<w[r].length;a++)if(n.traceIs(w[r][a].trace,"pie-like")){L=!0;break}w[r].unshift({i:-1,groupTitle:C,noClick:L,trace:{showlegend:E.showlegend,legendgroup:E.legendgroup,visible:"toggleitem"===e.groupclick||E.visible}})}for(a=0;a<w[r].length;a++)w[r][a]=[w[r][a]]}return e._lgroupsLength=w.length,e._maxNameLength=h,w}},{"../../registry":647,"./helpers":423}],422:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&&!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&&"toggle"===l&&"toggleothers"===c&&a&&e.data&&e._context.showTips?(n.notifier(n._(e,"Double-click on legend to isolate one trace"),"long"),a=!1):a=!1,1===r?s=l:2===r&&(s=c),s){var f="togglegroup"===u,p=o.hiddenlabels?o.hiddenlabels.slice():[],d=t.data()[0][0];if(!d.groupTitle||!d.noClick){var h,g,m,v,y,b=e._fullData,x=d.trace,_=x.legendgroup,w={},k=[],T=[],M=[];if(i.traceIs(x,"pie-like")){var A=d.label,S=p.indexOf(A);"toggle"===s?-1===S?p.push(A):p.splice(S,1):"toggleothers"===s&&(p=[],e.calcdata[0].forEach((function(t){A!==t.label&&p.push(t.label)})),e._fullLayout.hiddenlabels&&e._fullLayout.hiddenlabels.length===p.length&&-1===S&&(p=[])),i.call("_guiRelayout",e,"hiddenlabels",p)}else{var E,C=_&&_.length,O=[];if(C)for(h=0;h<b.length;h++)(E=b[h]).visible&&E.legendgroup===_&&O.push(h);if("toggle"===s){var L;switch(x.visible){case!0:L="legendonly";break;case!1:L=!1;break;case"legendonly":L=!0}if(C)if(f)for(h=0;h<b.length;h++)!1!==b[h].visible&&b[h].legendgroup===_&&j(b[h],L);else j(x,L);else j(x,L)}else if("toggleothers"===s){var I,P,D,R,z=!0;for(h=0;h<b.length;h++)if(I=b[h]===x,D=!0!==b[h].showlegend,!I&&!D&&!(P=C&&b[h].legendgroup===_)&&!0===b[h].visible&&!i.traceIs(b[h],"notLegendIsolatable")){z=!1;break}for(h=0;h<b.length;h++)if(!1!==b[h].visible&&!i.traceIs(b[h],"notLegendIsolatable"))switch(x.visible){case"legendonly":j(b[h],!0);break;case!0:R=!!z||"legendonly",I=b[h]===x,D=!0!==b[h].showlegend&&!b[h].legendgroup,P=I||C&&b[h].legendgroup===_,j(b[h],!(!P&&!D)||R)}}for(h=0;h<T.length;h++)if(m=T[h]){var N=m.constructUpdate(),F=Object.keys(N);for(g=0;g<F.length;g++)v=F[g],(w[v]=w[v]||[])[M[h]]=N[v]}for(y=Object.keys(w),h=0;h<y.length;h++)for(v=y[h],g=0;g<k.length;g++)w[v].hasOwnProperty(g)||(w[v][g]=void 0);i.call("_guiRestyle",e,w,k)}}}}function B(t,e,r){var n=k.indexOf(t),i=w[e];return i||(i=w[e]=[]),-1===k.indexOf(t)&&(k.push(t),n=k.length-1),i[n]=r,n}function j(t,e){if(!d.groupTitle||f){var r=t._fullInput;if(i.hasTransform(r,"groupby")){var a=T[r.index];if(!a){var o=i.getTransformIndices(r,"groupby"),s=o[o.length-1];a=n.keyedContainer(r,"transforms["+s+"].styles","target","value.visible"),T[r.index]=a}var l=a.get(t._group);void 0===l&&(l=!0),!1!==l&&a.set(t._group,e),M[r.index]=B(r.index,"visible",!1!==r.visible)}else{var c=!1!==r.visible&&e;B(r.index,"visible",c)}}}}},{"../../lib":515,"../../registry":647}],423:[function(t,e,r){"use strict";r.isGrouped=function(t){return-1!==(t.traceorder||"").indexOf("grouped")},r.isVertical=function(t){return"h"!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||"").indexOf("reversed")}},{}],424:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),draw:t("./draw"),style:t("./style")}},{"./attributes":417,"./defaults":419,"./draw":420,"./style":425}],425:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../registry"),a=t("../../lib"),o=a.strTranslate,s=t("../drawing"),l=t("../color"),c=t("../colorscale/helpers").extractOpts,u=t("../../traces/scatter/subtypes"),f=t("../../traces/pie/style_one"),p=t("../../traces/pie/helpers").castOption,d=t("./constants"),h=12,g=5,m=2,v=10,y=5;function b(t,e){return(e?"radial":"horizontal")+(t?"":"reversed")}function x(t){var e=t[0].trace,r=e.contours,n=u.hasLines(e),i=u.hasMarkers(e),a=e.visible&&e.fill&&"none"!==e.fill,o=!1,s=!1;if(r){var l=r.coloring;"lines"===l?o=!0:n="none"===l||"heatmap"===l||r.showlines,"constraint"===r.type?a="="!==r._operation:"fill"!==l&&"heatmap"!==l||(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function _(t,e,r){return t&&a.isArrayOrTypedArray(t)?e:t>r?r:t}e.exports=function(t,e,r){var w=e._fullLayout;r||(r=w.legend);var k="constant"===r.itemsizing,T=r.itemwidth,M=(T+2*d.itemGap)/2,A=o(M,0),S=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&&e.width>0))return 0;i=e.width}return k?n:Math.min(i,r)};function E(t){var r,i,o=x(t),l=o.showFill,f=o.showLine,p=o.showGradientLine,d=o.showGradientFill,h=o.anyFill,m=o.anyLine,y=t[0],_=y.trace,w=c(_),k=w.colorscale,M=w.reversescale,A=function(t){if(t.size())if(l)s.fillGroupStyle(t,e);else{var r="legendfill-"+_.uid;s.gradient(t,e,r,b(M),k,"fill")}},E=function(t){if(t.size()){var r="legendline-"+_.uid;s.lineGroupStyle(t),s.gradient(t,e,r,b(M),k,"stroke")}},C=u.hasMarkers(_)||!h?"M5,0":m?"M5,-2":"M5,-3",O=n.select(this),L=O.select(".legendfill").selectAll("path").data(l||d?[t]:[]);if(L.enter().append("path").classed("js-fill",!0),L.exit().remove(),L.attr("d",C+"h"+T+"v6h-"+T+"z").call(A),f||p){var I=S(void 0,_.line,v,g);i=a.minExtend(_,{line:{width:I}}),r=[a.minExtend(y,{trace:i})]}var P=O.select(".legendlines").selectAll("path").data(f||p?[r]:[]);P.enter().append("path").classed("js-line",!0),P.exit().remove(),P.attr("d",C+(p?"l"+T+",0.0001":"h"+T)).call(f?s.lineGroupStyle:E)}function C(t){var r,i,o=x(t),l=o.anyFill,c=o.anyLine,f=o.showLine,p=o.showMarker,d=t[0],v=d.trace,y=!p&&!c&&!l&&u.hasText(v);function b(t,e,r,n){var i=a.nestedProperty(v,t).get(),o=a.isArrayOrTypedArray(i)&&e?e(i):i;if(k&&o&&void 0!==n&&(o=n),r){if(o<r[0])return r[0];if(o>r[1])return r[1]}return o}function _(t){return d._distinct&&d.index&&t[d.index]?t[d.index]:t[0]}if(p||y||f){var w={},T={};if(p){w.mc=b("marker.color",_),w.mx=b("marker.symbol",_),w.mo=b("marker.opacity",a.mean,[.2,1]),w.mlc=b("marker.line.color",_),w.mlw=b("marker.line.width",a.mean,[0,5],m),T.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var M=b("marker.size",a.mean,[2,16],h);w.ms=M,T.marker.size=M}f&&(T.line={width:b("line.width",_,[0,10],g)}),y&&(w.tx="Aa",w.tp=b("textposition",_),w.ts=10,w.tc=b("textfont.color",_),w.tf=b("textfont.family",_)),r=[a.minExtend(d,w)],(i=a.minExtend(v,T)).selectedpoints=null,i.texttemplate=null}var S=n.select(this).select("g.legendpoints"),E=S.selectAll("path.scatterpts").data(p?r:[]);E.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",A),E.exit().remove(),E.call(s.pointStyle,i,e),p&&(r[0].mrc=3);var C=S.selectAll("g.pointtext").data(y?r:[]);C.enter().append("g").classed("pointtext",!0).append("text").attr("transform",A),C.exit().remove(),C.selectAll("text").call(s.textPointStyle,i,e)}function O(t){var e=t[0].trace,r="waterfall"===e.type;if(t[0]._distinct&&r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,P(t,this,"waterfall")}var a=[];e.visible&&r&&(a=t[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(a);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",A).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=S(void 0,i.line,y,m);r.attr("d",t[1]).style("stroke-width",a+"px").call(l.fill,i.color),a&&r.call(l.stroke,i.line.color)}))}function L(t){P(t,this)}function I(t){P(t,this,"funnel")}function P(t,a,o){var u=t[0].trace,f=u.marker||{},p=f.line||{},d=o?u.visible&&u.type===o:i.traceIs(u,"bar"),h=n.select(a).select("g.legendpoints").selectAll("path.legend"+o).data(d?[t]:[]);h.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",A),h.exit().remove(),h.each((function(t){var i=n.select(this),a=t[0],o=S(a.mlw,f.line,y,m);i.style("stroke-width",o+"px");var d=a.mcc;if(!r._inHover&&"mc"in a){var h=c(f),g=h.mid;void 0===g&&(g=(h.max+h.min)/2),d=s.tryColorscale(f,"")(g)}var v=d||a.mc||f.color,b=f.pattern,x=b&&s.getPatternAttr(b.shape,0,"");if(x){var w=s.getPatternAttr(b.bgcolor,0,null),k=s.getPatternAttr(b.fgcolor,0,null),T=b.fgopacity,M=_(b.size,8,10),A=_(b.solidity,.5,1),E="legend-"+u.uid;i.call(s.pattern,"legend",e,E,x,M,A,d,b.fillmode,w,k,T)}else i.call(l.fill,v);o&&l.stroke(i,a.mlc||p.color)}))}function D(t){var r=t[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&i.traceIs(r,"box-violin")?[t]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",A),o.exit().remove(),o.each((function(){var t=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=S(void 0,r.line,y,m);t.style("stroke-width",i+"px").call(l.fill,r.fillcolor),i&&l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:k?h:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(s.pointStyle,c,e)}}))}function R(t){var e=t[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(e.visible&&"candlestick"===e.type?[t,t]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(t,e){return e?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",A).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?"increasing":"decreasing"],o=S(void 0,a.line,y,m);i.style("stroke-width",o+"px").call(l.fill,a.fillcolor),o&&l.stroke(i,a.line.color)}))}function z(t){var e=t[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(e.visible&&"ohlc"===e.type?[t,t]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(t,e){return e?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",A).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?"increasing":"decreasing"],o=S(void 0,a.line,y,m);i.style("fill","none").call(s.dashLine,a.line.dash,o),o&&l.stroke(i,a.line.color)}))}function N(t){B(t,this,"pie")}function F(t){B(t,this,"funnelarea")}function B(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&&s.type===r:i.traceIs(s,r),c=n.select(e).select("g.legendpoints").selectAll("path.legend"+r).data(l?[t]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",A),c.exit().remove(),c.size()){var u=(s.marker||{}).line,d=S(p(u.width,o.pts),u,y,m),h=a.minExtend(s,{marker:{line:{width:d}}});h.marker.line.color=u.color;var g=a.minExtend(o,{trace:h});f(c,g,h)}}function j(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":o=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":o=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",A).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),p=c(i),d=p.colorscale,h=p.reversescale,g=function(t){if(t.size()){var n="legendfill-"+i.uid;s.gradient(t,e,n,b(h,"radial"===r),d,"fill")}};if(d){if(!r){var m=d.length;u=0===o?d[h?m-1:0][1]:1===o?d[h?0:m-1][1]:d[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr("d",t[0]),u?f.call(l.fill,u):f.call(g)}))}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,"g","layers");i.style("opacity",t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if("middle"!==s&&l&&c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr("transform",o(0,u))}else i.attr("transform",null);i.selectAll("g.legendfill").data([t]).enter().append("g").classed("legendfill",!0),i.selectAll("g.legendlines").data([t]).enter().append("g").classed("legendlines",!0);var f=i.selectAll("g.legendsymbols").data([t]);f.enter().append("g").classed("legendsymbols",!0),f.selectAll("g.legendpoints").data([t]).enter().append("g").classed("legendpoints",!0)})).each(j).each(O).each(I).each(L).each(D).each(F).each(N).each(E).each(C).each(R).each(z)}},{"../../lib":515,"../../registry":647,"../../traces/pie/helpers":915,"../../traces/pie/style_one":921,"../../traces/scatter/subtypes":961,"../color":367,"../colorscale/helpers":378,"../drawing":389,"./constants":418,"@plotly/d3":58}],426:[function(t,e,r){"use strict";t("./constants"),e.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},{"./constants":428}],427:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../plots/plots"),a=t("../../plots/cartesian/axis_ids"),o=t("../../fonts/ploticon"),s=t("../shapes/draw").eraseActiveShape,l=t("../../lib"),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute("data-attr"),l=o.getAttribute("data-val")||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),p=c._cartesianSpikesEnabled;if("zoom"===s){var d,h="in"===l?.5:2,g=(1+h)/2,m=(1-h)/2;for(i=0;i<f.length;i++)if(!(r=f[i]).fixedrange)if(d=r._name,"auto"===l)u[d+".autorange"]=!0;else if("reset"===l){if(void 0===r._rangeInitial)u[d+".autorange"]=!0;else{var v=r._rangeInitial.slice();u[d+".range[0]"]=v[0],u[d+".range[1]"]=v[1]}void 0!==r._showSpikeInitial&&(u[d+".showspikes"]=r._showSpikeInitial,"on"!==p||r._showSpikeInitial||(p="off"))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],b=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[d+".range[0]"]=r.l2r(b[0]),u[d+".range[1]"]=r.l2r(b[1])}}else"hovermode"!==s||"x"!==l&&"y"!==l||(l=c._isHoriz?"y":"x",o.setAttribute("data-val",l)),u[s]=l;c._cartesianSpikesEnabled=p,n.call("_guiRelayout",t,u)}function p(t,e){for(var r=e.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split("."),c=0;c<o.length;c++)s[o[c]+"."+l[1]]=a;var u="pan"===a?a:"zoom";s.dragmode=u,n.call("_guiRelayout",t,s)}function d(t,e){for(var r=e.currentTarget.getAttribute("data-attr"),i="resetLastSave"===r,a="resetDefault"===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c<s.length;c++){var u,f=s[c],p=f+".camera",d=f+".aspectratio",h=f+".aspectmode",g=o[f]._scene;i?(l[p+".up"]=g.viewInitial.up,l[p+".eye"]=g.viewInitial.eye,l[p+".center"]=g.viewInitial.center,u=!0):a&&(l[p+".up"]=null,l[p+".eye"]=null,l[p+".center"]=null,u=!0),u&&(l[d+".x"]=g.viewInitial.aspectratio.x,l[d+".y"]=g.viewInitial.aspectratio.y,l[d+".z"]=g.viewInitial.aspectratio.z,l[h]=g.viewInitial.aspectmode)}n.call("_guiRelayout",t,l)}function h(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c<a.length;c++){var u=a[c],f=i[u],p=u+".hovermode";s[p]=f.hovermode,l[p]=!1;for(var d=0;d<3;d++){var h=o[d],g=u+"."+h+".showspikes";l[g]=!1,s[g]=f[h].showspikes}}r._previousVal=s}return l}function g(t,e){var r=h(t,e);n.call("_guiRelayout",t,r)}function m(t,e){for(var r=e.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l<s.length;l++){var c=s[l],u=o[c];if("zoom"===i){var f=u.projection.scale,p="in"===a?2*f:.5*f;n.call("_guiRelayout",t,c+".projection.scale",p)}}"reset"===i&&_(t,"geo")}function v(t){var e=t._fullLayout;return!e.hovermode&&(e._has("cartesian")?e._isHoriz?"y":"x":"closest")}function y(t){var e=v(t);n.call("_guiRelayout",t,"hovermode",e)}function b(t){for(var e="on"===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i<r.length;i++){var o=r[i];n[o._name+".showspikes"]=!!e||o._showSpikeInitial}return n}function x(t,e){for(var r=e.currentTarget.getAttribute("data-val"),i=t._fullLayout,a=i._subplots.mapbox||[],o=1.05,s={},l=0;l<a.length;l++){var c=a[l],u=i[c].zoom,f="in"===r?o*u:u/o;s[c+".zoom"]=f}n.call("_guiRelayout",t,s)}function _(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o<i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u<c.length;u++){var f=c[u];a[s+"."+f]=l[f]}n.call("_guiRelayout",t,a)}u.toImage={name:"toImage",title:function(t){var e=(t._context.toImageButtonOptions||{}).format||"png";return c(t,"png"===e?"Download plot as a png":"Download plot")},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||"png"};l.notifier(c(t,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==r.format&&l.isIE()&&(l.notifier(c(t,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach((function(t){t in e&&(r[t]=e[t])})),n.call("downloadImage",t,r).then((function(e){l.notifier(c(t,"Snapshot succeeded")+" - "+e,"long")})).catch((function(){l.notifier(c(t,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},u.sendDataToCloud={name:"sendDataToCloud",title:function(t){return c(t,"Edit in Chart Studio")},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:"editInChartStudio",title:function(t){return c(t,"Edit in Chart Studio")},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:"zoom2d",_cat:"zoom",title:function(t){return c(t,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:f},u.pan2d={name:"pan2d",_cat:"pan",title:function(t){return c(t,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:f},u.select2d={name:"select2d",_cat:"select",title:function(t){return c(t,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:f},u.lasso2d={name:"lasso2d",_cat:"lasso",title:function(t){return c(t,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:f},u.drawclosedpath={name:"drawclosedpath",title:function(t){return c(t,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:f},u.drawopenpath={name:"drawopenpath",title:function(t){return c(t,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:f},u.drawline={name:"drawline",title:function(t){return c(t,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:f},u.drawrect={name:"drawrect",title:function(t){return c(t,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:f},u.drawcircle={name:"drawcircle",title:function(t){return c(t,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:f},u.eraseshape={name:"eraseshape",title:function(t){return c(t,"Erase active shape")},icon:o.eraseshape,click:s},u.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(t){return c(t,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:f},u.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(t){return c(t,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:f},u.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(t){return c(t,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:f},u.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(t){return c(t,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:f},u.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(t){return c(t,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:f},u.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(t){return c(t,"Compare data on hover")},attr:"hovermode",val:function(t){return t._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:f},u.zoom3d={name:"zoom3d",_cat:"zoom",title:function(t){return c(t,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:p},u.pan3d={name:"pan3d",_cat:"pan",title:function(t){return c(t,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:p},u.orbitRotation={name:"orbitRotation",title:function(t){return c(t,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:p},u.tableRotation={name:"tableRotation",title:function(t){return c(t,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:p},u.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(t){return c(t,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:d},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(t){return c(t,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:d},u.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(t){return c(t,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:g},u.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(t){return c(t,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:m},u.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(t){return c(t,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:m},u.resetGeo={name:"resetGeo",_cat:"reset",title:function(t){return c(t,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:m},u.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(t){return c(t,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},u.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(t){return c(t,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},u.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(t){return c(t,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:y},u.resetViewSankey={name:"resetSankeyGroup",title:function(t){return c(t,"Reset view")},icon:o.home,click:function(t){for(var e={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e["node.groups"].push(i.node.groups.slice()),e["node.x"].push(i.node.x.slice()),e["node.y"].push(i.node.y.slice())}n.call("restyle",t,e)}},u.toggleHover={name:"toggleHover",title:function(t){return c(t,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(t,e){var r=h(t,e);r.hovermode=v(t),n.call("_guiRelayout",t,r)}},u.resetViews={name:"resetViews",title:function(t){return c(t,"Reset views")},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),f(t,e),r.setAttribute("data-attr","resetLastSave"),d(t,e),_(t,"geo"),_(t,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(t){return c(t,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled="on"===r?"off":"on",n.call("_guiRelayout",t,b(t))}},u.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(t){return c(t,"Reset view")},attr:"reset",icon:o.home,click:function(t){_(t,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(t){return c(t,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:x},u.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(t){return c(t,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:x}},{"../../fonts/ploticon":494,"../../lib":515,"../../plots/cartesian/axis_ids":570,"../../plots/plots":628,"../../registry":647,"../shapes/draw":462}],428:[function(t,e,r){"use strict";var n=t("./buttons"),i=Object.keys(n),a=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(a),s=[],l=function(t){if(-1===o.indexOf(t._cat||t.name)){var e=t.name,r=(t._cat||t.name).toLowerCase();-1===s.indexOf(e)&&s.push(e),-1===s.indexOf(r)&&s.push(r)}};i.forEach((function(t){l(n[t])})),s.sort(),e.exports={DRAW_MODES:a,backButtons:o,foreButtons:s}},{"./buttons":427}],429:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../color"),a=t("../../plot_api/plot_template"),o=t("./attributes");e.exports=function(t,e){var r=t.modebar||{},s=a.newContainer(e,"modebar");function l(t,e){return n.coerce(r,s,o,t,e)}l("orientation"),l("bgcolor",i.addOpacity(e.paper_bgcolor,.5));var c=i.contrast(i.rgb(e.modebar.bgcolor));l("color",i.addOpacity(c,.3)),l("activecolor",i.addOpacity(c,.7)),l("uirevision",e.uirevision),l("add"),l("remove")}},{"../../lib":515,"../../plot_api/plot_template":555,"../color":367,"./attributes":426}],430:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"modebar",layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),manage:t("./manage")}},{"./attributes":426,"./defaults":429,"./manage":431}],431:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axis_ids"),i=t("../../traces/scatter/subtypes"),a=t("../../registry"),o=t("../fx/helpers").isUnifiedHover,s=t("./modebar"),l=t("./buttons"),c=t("./constants").DRAW_MODES,u=t("../../lib").extendDeep;function f(t){var e=t._fullLayout,r=t._fullData,n=t._context;function i(t,e){if("string"===typeof e){if(e.toLowerCase()===t.toLowerCase())return!0}else{var r=e.name,n=e._cat||e.name;if(r===t||n===t.toLowerCase())return!0}return!1}var a=e.modebar.add;"string"===typeof a&&(a=[a]);var s=e.modebar.remove;"string"===typeof s&&(s=[s]);var u=n.modeBarButtonsToAdd.concat(a.filter((function(t){for(var e=0;e<n.modeBarButtonsToRemove.length;e++)if(i(t,n.modeBarButtonsToRemove[e]))return!1;return!0}))),f=n.modeBarButtonsToRemove.concat(s.filter((function(t){for(var e=0;e<n.modeBarButtonsToAdd.length;e++)if(i(t,n.modeBarButtonsToAdd[e]))return!1;return!0}))),m=e._has("cartesian"),v=e._has("gl3d"),y=e._has("geo"),b=e._has("pie"),x=e._has("funnelarea"),_=e._has("gl2d"),w=e._has("ternary"),k=e._has("mapbox"),T=e._has("polar"),M=e._has("smith"),A=e._has("sankey"),S=p(e),E=o(e.hovermode),C=[];function O(t){if(t.length){for(var e=[],r=0;r<t.length;r++){for(var n=t[r],i=l[n],a=i.name.toLowerCase(),o=(i._cat||i.name).toLowerCase(),s=!1,c=0;c<f.length;c++){var u=f[c].toLowerCase();if(u===a||u===o){s=!0;break}}s||e.push(l[n])}C.push(e)}}var L=["toImage"];n.showEditInChartStudio?L.push("editInChartStudio"):n.showSendToCloud&&L.push("sendDataToCloud"),O(L);var I=[],P=[],D=[],R=[];(m||_||b||x||w)+y+v+k+T+M>1?(P=["toggleHover"],D=["resetViews"]):y?(I=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],D=["resetGeo"]):v?(P=["hoverClosest3d"],D=["resetCameraDefault3d","resetCameraLastSave3d"]):k?(I=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],D=["resetViewMapbox"]):_?P=["hoverClosestGl2d"]:b?P=["hoverClosestPie"]:A?(P=["hoverClosestCartesian","hoverCompareCartesian"],D=["resetViewSankey"]):P=["toggleHover"],m&&(P=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(h(r)||E)&&(P=[]),!m&&!_||S||(I=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==D[0]&&(D=["resetScale2d"])),v?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:(m||_)&&!S||w?R=["zoom2d","pan2d"]:k||y?R=["pan2d"]:T&&(R=["zoom2d"]),d(r)&&R.push("select2d","lasso2d");var z=[],N=function(t){-1===z.indexOf(t)&&-1!==P.indexOf(t)&&z.push(t)};if(Array.isArray(u)){for(var F=[],B=0;B<u.length;B++){var j=u[B];"string"===typeof j?(j=j.toLowerCase(),-1!==c.indexOf(j)?(e._has("mapbox")||e._has("cartesian"))&&R.push(j):"togglespikelines"===j?N("toggleSpikelines"):"togglehover"===j?N("toggleHover"):"hovercompare"===j?N("hoverCompareCartesian"):"hoverclosest"===j?(N("hoverClosestCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestGl2d"),N("hoverClosestPie")):"v1hovermode"===j&&(N("toggleHover"),N("hoverClosestCartesian"),N("hoverCompareCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestGl2d"),N("hoverClosestPie"))):F.push(j)}u=F}return O(R),O(I.concat(D)),O(z),g(C,u)}function p(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r<e.length;r++)if(!e[r].fixedrange)return!1;return!0}function d(t){for(var e=!1,r=0;r<t.length&&!e;r++){var n=t[r];n._module&&n._module.selectPoints&&(a.traceIs(n,"scatter-like")?(i.hasMarkers(n)||i.hasText(n))&&(e=!0):a.traceIs(n,"box-violin")&&"all"!==n.boxpoints&&"all"!==n.points||(e=!0))}return e}function h(t){for(var e=0;e<t.length;e++)if(!a.traceIs(t[e],"noHover"))return!1;return!0}function g(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r<e.length;r++)t.push(e[r]);else t.push(e);return t}function m(t){for(var e=u([],t),r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;i++){var a=n[i];if("string"===typeof a){if(void 0===l[a])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[r][i]=l[a]}}return e}e.exports=function(t){var e=t._fullLayout,r=t._context,n=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i,a=r.modeBarButtons;i=Array.isArray(a)&&a.length?m(a):!r.displayModeBar&&r.watermark?[]:f(t),n?n.update(t,i):e._modeBar=s(t,i)}else n&&(n.destroy(),delete e._modeBar)}},{"../../lib":515,"../../plots/cartesian/axis_ids":570,"../../registry":647,"../../traces/scatter/subtypes":961,"../fx/helpers":403,"./buttons":427,"./constants":428,"./modebar":432}],432:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../../lib"),o=t("../../fonts/ploticon"),s=t("../../version").version,l=new DOMParser;function c(t){this.container=t.container,this.element=document.createElement("div"),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var u=c.prototype;function f(t){return t+" (v"+s+")"}function p(t,e){var r=t._fullLayout,i=new c({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&&n.select(i.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),i}u.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this._uid=i,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===n.modebar.orientation&&(this.element.className+=" vertical",e=e.reverse());var o=n.modebar,s="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+"#"+i+" .modebar-group","background-color: "+o.bgcolor),a.addRelatedStyleRule(i,"#"+i+" .modebar-btn .icon path","fill: "+o.color),a.addRelatedStyleRule(i,"#"+i+" .modebar-btn:hover .icon path","fill: "+o.activecolor),a.addRelatedStyleRule(i,"#"+i+" .modebar-btn.active .icon path","fill: "+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&&(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},u.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error("must provide button 'name' in button config");if(-1!==e.buttonsNames.indexOf(n))throw new Error("button name '"+n+"' is taken");e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},u.createGroup=function(){var t=document.createElement("div");return t.className="modebar-group",t},u.createButton=function(t){var e=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=t.title;void 0===i?i=t.name:"function"===typeof i&&(i=i(this.graphInfo)),(i||0===i)&&r.setAttribute("data-title",i),void 0!==t.attr&&r.setAttribute("data-attr",t.attr);var a=t.val;if(void 0!==a&&("function"===typeof a&&(a=a(this.graphInfo)),r.setAttribute("data-val",a)),"function"!==typeof t.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute("data-toggle",t.toggle||!1),t.toggle&&n.select(r).classed("active",!0);var s=t.icon;return"function"===typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute("data-gravity",t.gravity||"n"),r},u.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n="http://www.w3.org/2000/svg";if(t.path){(e=document.createElementNS(n,"svg")).setAttribute("viewBox",[0,0,t.width,r].join(" ")),e.setAttribute("class","icon");var a=document.createElementNS(n,"path");a.setAttribute("d",t.path),t.transform?a.setAttribute("transform",t.transform):void 0!==t.ascent&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+t.ascent+")"),e.appendChild(a)}return t.svg&&(e=l.parseFromString(t.svg,"application/xml").childNodes[0]),e.setAttribute("height","1em"),e.setAttribute("width","1em"),e},u.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute("data-attr"):null;this.buttonElements.forEach((function(t){var i=t.getAttribute("data-val")||!0,o=t.getAttribute("data-attr"),s="true"===t.getAttribute("data-toggle"),l=n.select(t);if(s)o===r&&l.classed("active",!l.classed("active"));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed("active",c===i)}}))},u.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},u.getLogo=function(){var t=this.createGroup(),e=document.createElement("a");return e.href="https://plotly.com/",e.target="_blank",e.setAttribute("data-title",f(a._(this.graphInfo,"Produced with Plotly.js"))),e.className="modebar-btn plotlyjsicon modebar-btn--logo",e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},u.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},u.destroy=function(){a.removeElement(this.container.querySelector(".modebar")),a.deleteRelatedStyleRule(this._uid)},e.exports=p},{"../../fonts/ploticon":494,"../../lib":515,"../../version":1132,"@plotly/d3":58,"fast-isnumeric":190}],433:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("../color/attributes"),a=(0,t("../../plot_api/plot_template").templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});e.exports={visible:{valType:"boolean",editType:"plot"},buttons:a,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:n({editType:"plot"}),bgcolor:{valType:"color",dflt:i.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:i.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},{"../../plot_api/plot_template":555,"../../plots/font_attributes":594,"../color/attributes":366}],434:[function(t,e,r){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],435:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../color"),a=t("../../plot_api/plot_template"),o=t("../../plots/array_container_defaults"),s=t("./attributes"),l=t("./constants");function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o("visible")){var l=o("step");"all"!==l&&(!a||"gregorian"===a||"month"!==l&&"year"!==l?o("stepmode"):e.stepmode="backward",o("count")),o("label")}}function u(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a<n.length;a++){var o=e[n[a]].domain;o&&(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}e.exports=function(t,e,r,f,p){var d=t.rangeselector||{},h=a.newContainer(e,"rangeselector");function g(t,e){return n.coerce(d,h,s,t,e)}if(g("visible",o(d,h,{name:"buttons",handleItemDefaults:c,calendar:p}).length>0)){var m=u(e,r,f);g("x",m[0]),g("y",m[1]),n.noneOrAll(t,e,["x","y"]),g("xanchor"),g("yanchor"),n.coerceFont(g,"font",r.font);var v=g("bgcolor");g("activecolor",i.contrast(v,l.lightAmount,l.darkAmount)),g("bordercolor"),g("borderwidth")}}},{"../../lib":515,"../../plot_api/plot_template":555,"../../plots/array_container_defaults":561,"../color":367,"./attributes":433,"./constants":434}],436:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../registry"),a=t("../../plots/plots"),o=t("../color"),s=t("../drawing"),l=t("../../lib"),c=l.strTranslate,u=t("../../lib/svg_text_utils"),f=t("../../plots/cartesian/axis_ids"),p=t("../../constants/alignment"),d=p.LINE_SPACING,h=p.FROM_TL,g=p.FROM_BR,m=t("./constants"),v=t("./get_update_object");function y(t){for(var e=f.list(t,"x",!0),r=[],n=0;n<e.length;n++){var i=e[n];i.rangeselector&&i.rangeselector.visible&&r.push(i)}return r}function b(t){return t._id}function x(t,e,r){if("all"===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&&t.range[1]===r[n[1]]}function _(t,e,r){var n=l.ensureSingle(t,"rect","selector-rect",(function(t){t.attr("shape-rendering","crispEdges")}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,w(e,r)).style("stroke-width",e.borderwidth+"px")}function w(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}function k(t,e,r,n){function i(t){u.convertToTspans(t,n)}l.ensureSingle(t,"text","selector-text",(function(t){t.attr("text-anchor","middle")})).call(s.font,e.font).text(T(r,n._fullLayout._meta)).call(i)}function T(t,e){return t.label?e?l.templateString(t.label,e):t.label:"all"===t.step?"all":t.count+t.step.charAt(0)}function M(t,e,r,i,o){var f=0,p=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(".selector-text"),e=r.font.size*d,i=Math.max(e*u.lineCount(t),16)+3;p=Math.max(p,i)})),e.each((function(){var t=n.select(this),e=t.select(".selector-rect"),i=t.select(".selector-text"),a=i.node()&&s.bBox(i.node()).width,o=r.font.size*d,l=u.lineCount(i),h=Math.max(a+10,m.minButtonWidth);t.attr("transform",c(v+f,v)),e.attr({x:0,y:0,width:h,height:p}),u.positionText(i,h/2,p/2-(l-1)*o/2+3),f+=h+5}));var y=t._fullLayout._size,b=y.l+y.w*r.x,x=y.t+y.h*(1-r.y),_="left";l.isRightAnchor(r)&&(b-=f,_="right"),l.isCenterAnchor(r)&&(b-=f/2,_="center");var w="top";l.isBottomAnchor(r)&&(x-=p,w="bottom"),l.isMiddleAnchor(r)&&(x-=p/2,w="middle"),f=Math.ceil(f),p=Math.ceil(p),b=Math.round(b),x=Math.round(x),a.autoMargin(t,i+"-range-selector",{x:r.x,y:r.y,l:f*h[_],r:f*g[_],b:p*g[w],t:p*h[w]}),o.attr("transform",c(b,x))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(".rangeselector").data(y(t),b);e.enter().append("g").classed("rangeselector",!0),e.exit().remove(),e.style({cursor:"pointer","pointer-events":"all"}),e.each((function(e){var r=n.select(this),a=e,o=a.rangeselector,s=r.selectAll("g.button").data(l.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each((function(e){var r=n.select(this),s=v(a,e);e._isActive=x(a,e,s),r.call(_,o,e),r.call(k,o,e,t),r.on("click",(function(){t._dragged||i.call("_guiRelayout",t,s)})),r.on("mouseover",(function(){e._isHovered=!0,r.call(_,o,e)})),r.on("mouseout",(function(){e._isHovered=!1,r.call(_,o,e)}))})),M(t,s,o,a._name,r)}))}},{"../../constants/alignment":483,"../../lib":515,"../../lib/svg_text_utils":541,"../../plots/cartesian/axis_ids":570,"../../plots/plots":628,"../../registry":647,"../color":367,"../drawing":389,"./constants":434,"./get_update_object":437,"@plotly/d3":58}],437:[function(t,e,r){"use strict";var n=t("d3-time"),i=t("../../lib").titleCase;function a(t,e){var r,a=t.range,o=new Date(t.r2l(a[1])),s=e.step,l=n["utc"+i(s)],c=e.count;switch(e.stepmode){case"backward":r=t.l2r(+l.offset(o,-c));break;case"todate":var u=l.offset(o,-c);r=t.l2r(+l.ceil(u))}return[r,a[1]]}e.exports=function(t,e){var r=t._name,n={};if("all"===e.step)n[r+".autorange"]=!0;else{var i=a(t,e);n[r+".range[0]"]=i[0],n[r+".range[1]"]=i[1]}return n}},{"../../lib":515,"d3-time":122}],438:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:t("./attributes")}}},layoutAttributes:t("./attributes"),handleDefaults:t("./defaults"),draw:t("./draw")}},{"./attributes":433,"./defaults":435,"./draw":436}],439:[function(t,e,r){"use strict";var n=t("../color/attributes");e.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot"},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},{"../color/attributes":366}],440:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axis_ids").list,i=t("../../plots/cartesian/autorange").getAutoRange,a=t("./constants");e.exports=function(t){for(var e=n(t,"x",!0),r=0;r<e.length;r++){var o=e[r],s=o[a.name];s&&s.visible&&s.autorange&&(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{"../../plots/cartesian/autorange":565,"../../plots/cartesian/axis_ids":570,"./constants":441}],441:[function(t,e,r){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],442:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plot_api/plot_template"),a=t("../../plots/cartesian/axis_ids"),o=t("./attributes"),s=t("./oppaxis_attributes");e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,p=l.rangeslider,d=i.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",e.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(p.range)),_("range");var h=e._subplots;if(h)for(var g=h.cartesian.filter((function(t){return t.substr(0,t.indexOf("y"))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf("y"),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v<m.length;v++){var y=m[v];u=p[y]||{},f=i.newContainer(d,y,"yaxis");var b,x=e[y];u.range&&x.isValidRange(u.range)&&(b="fixed"),"match"!==w("rangemode",b)&&w("range",x.range.slice())}d._input=p}}function _(t,e){return n.coerce(p,d,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{"../../lib":515,"../../plot_api/plot_template":555,"../../plots/cartesian/axis_ids":570,"./attributes":439,"./oppaxis_attributes":446}],443:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../registry"),a=t("../../plots/plots"),o=t("../../lib"),s=o.strTranslate,l=t("../drawing"),c=t("../color"),u=t("../titles"),f=t("../../plots/cartesian"),p=t("../../plots/cartesian/axis_ids"),d=t("../dragelement"),h=t("../../lib/setcursor"),g=t("./constants");function m(t,e,r,i){if(!e._context.staticPlot){var a=t.select("rect."+g.slideBoxClassName).node(),s=t.select("rect."+g.grabAreaMinClassName).node(),l=t.select("rect."+g.grabAreaMaxClassName).node();t.on("mousedown",c),t.on("touchstart",c)}function c(){var c=n.event,u=c.target,f=c.clientX||c.touches[0].clientX,p=f-t.node().getBoundingClientRect().left,g=i.d2p(r._rl[0]),m=i.d2p(r._rl[1]),y=d.coverSlip();function b(o){var c,d,b,x=+(o.clientX||o.touches[0].clientX)-f;switch(u){case a:b="ew-resize",c=g+x,d=m+x;break;case s:b="col-resize",c=g+x,d=m;break;case l:b="col-resize",c=g,d=m+x;break;default:b="ew-resize",c=p,d=p+x}if(d<c){var _=d;d=c,c=_}i._pixelMin=c,i._pixelMax=d,h(n.select(y),b),v(t,e,r,i)}function x(){y.removeEventListener("mousemove",b),y.removeEventListener("mouseup",x),this.removeEventListener("touchmove",b),this.removeEventListener("touchend",x),o.removeElement(y)}this.addEventListener("touchmove",b),this.addEventListener("touchend",x),y.addEventListener("mousemove",b),y.addEventListener("mouseup",x)}}function v(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call("_guiRelayout",e,r._name+".range",[s,l])}))}function y(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var p=c(n.d2p(r._rl[0])),d=c(n.d2p(r._rl[1]));if(t.select("rect."+g.slideBoxClassName).attr("x",p).attr("width",d-p),t.select("rect."+g.maskMinClassName).attr("width",p),t.select("rect."+g.maskMaxClassName).attr("x",d).attr("width",n._width-d),"match"!==a.rangemode){var h=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select("rect."+g.maskMinOppAxisClassName).attr("x",p).attr("height",h).attr("width",d-p),t.select("rect."+g.maskMaxOppAxisClassName).attr("x",p).attr("y",m).attr("height",n._height-m).attr("width",d-p),t.select("rect."+g.slideBoxClassName).attr("y",h).attr("height",m-h)}var v=.5,y=Math.round(f(p-l))-v,b=Math.round(f(d-l))+v;t.select("g."+g.grabberMinClassName).attr("transform",s(y,v)),t.select("g."+g.grabberMaxClassName).attr("transform",s(b,v))}function b(t,e,r,n){var i=o.ensureSingle(t,"rect",g.bgClassName,(function(t){t.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),a=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,u=-n._offsetShift,f=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(u,u),"stroke-width":f}).call(c.stroke,n.bordercolor).call(c.fill,n.bgcolor)}function x(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,"clipPath",n._clipId,(function(t){t.append("rect").attr({x:0,y:0})})).select("rect").attr({width:n._width,height:n._height})}function _(t,e,r,i){var s,c=e.calcdata,u=t.selectAll("g."+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append("g").attr("class",(function(t){return g.rangePlotClassName+" "+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,d=p.getFromId(e,t,"y"),h=d._name,g=i[h],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&&(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[h]={type:d.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():d.range.slice(),calendar:d.calendar},d.rangebreaks&&(m.layout[h].rangebreaks=d.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[h];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var b={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=b:(b.mainplot="xy",b.mainplotinfo=s),f.rangePlot(e,b,w(c,t))}))}function w(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&&r.push(i)}return r}function k(t,e,r,n,i){o.ensureSingle(t,"rect",g.maskMinClassName,(function(t){t.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(c.fill,g.maskColor),o.ensureSingle(t,"rect",g.maskMaxClassName,(function(t){t.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(c.fill,g.maskColor),"match"!==i.rangemode&&(o.ensureSingle(t,"rect",g.maskMinOppAxisClassName,(function(t){t.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,"rect",g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).style("border-top",g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function T(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,"rect",g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:n._height,fill:g.slideBoxFill})}function M(t,e,r,n){var i=o.ensureSingle(t,"g",g.grabberMinClassName),a=o.ensureSingle(t,"g",g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":g.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,"rect",g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,"rect",g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,"rect",g.grabAreaMinClassName,(function(t){t.attr(u)})).attr("height",n._height),o.ensureSingle(a,"rect",g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr("height",n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,i=0;i<r.length;i++){var a=r[i][g.name];a._clipId=a._id+"-"+e._uid}function l(t){return t._name}var c=e._infolayer.selectAll("g."+g.containerClassName).data(r,l);c.exit().each((function(t){var r=t[g.name];e._topdefs.select("#"+r._clipId).remove()})).remove(),0!==r.length&&(c.enter().append("g").classed(g.containerClassName,!0).attr("pointer-events","all"),c.each((function(r){var i=n.select(this),a=r[g.name],l=e[p.id2name(r.anchor)],c=a[p.id2name(r.anchor)];if(a.range){var f,d=o.simpleMap(a.range,r.r2l),h=o.simpleMap(r.range,r.r2l);f=h[0]<h[1]?[Math.min(d[0],h[0]),Math.max(d[1],h[1])]:[Math.max(d[0],h[0]),Math.min(d[1],h[1])],a.range=a._input.range=o.simpleMap(f,r.l2r)}r.cleanRange("rangeslider.range");var v=e._size,w=r.domain;a._width=v.w*(w[1]-w[0]);var A=Math.round(v.l+v.w*w[0]),S=Math.round(v.t+v.h*(1-r._counterDomainMin)+("bottom"===r.side?r._depth:0)+a._offsetShift+g.extraPad);i.attr("transform",s(A,S)),a._rl=o.simpleMap(a.range,r.r2l);var E=a._rl[0],C=a._rl[1],O=C-E;if(a.p2d=function(t){return t/a._width*O+E},a.d2p=function(t){return(t-E)/O*a._width},r.rangebreaks){var L=r.locateBreaks(E,C);if(L.length){var I,P,D=0;for(I=0;I<L.length;I++)D+=(P=L[I]).max-P.min;var R=a._width/(C-E-D),z=[-R*E];for(I=0;I<L.length;I++)P=L[I],z.push(z[z.length-1]-R*(P.max-P.min));for(a.d2p=function(t){for(var e=z[0],r=0;r<L.length;r++){var n=L[r];if(t>=n.max)e=z[r+1];else if(t<n.min)break}return e+R*t},I=0;I<L.length;I++)(P=L[I]).pmin=a.d2p(P.min),P.pmax=a.d2p(P.max);a.p2d=function(t){for(var e=z[0],r=0;r<L.length;r++){var n=L[r];if(t>=n.pmax)e=z[r+1];else if(t<n.pmin)break}return(t-e)/R}}}if("match"!==c.rangemode){var N=l.r2l(c.range[0]),F=l.r2l(c.range[1])-N;a.d2pOppAxis=function(t){return(t-N)/F*a._height}}i.call(b,t,r,a).call(x,t,r,a).call(_,t,r,a).call(k,t,r,a,c).call(T,t,r,a).call(M,t,r,a),m(i,t,r,a),y(i,t,r,a,l,c),"bottom"===r.side&&u.draw(t,r._id+"title",{propContainer:r,propName:r._name+".title",placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:S+a._height+a._offsetShift+10+1.5*r.title.font.size,"text-anchor":"middle"}})})))}},{"../../lib":515,"../../lib/setcursor":536,"../../plots/cartesian":578,"../../plots/cartesian/axis_ids":570,"../../plots/plots":628,"../../registry":647,"../color":367,"../dragelement":386,"../drawing":389,"../titles":476,"./constants":441,"@plotly/d3":58}],444:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axis_ids"),i=t("../../lib/svg_text_utils"),a=t("./constants"),o=t("../../constants/alignment").LINE_SPACING,s=a.name;function l(t){var e=t&&t[s];return e&&e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},"x",!0),r=t.margin,i=[];if(!t._has("gl2d"))for(var a=0;a<e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;return"bottom"===e.side&&(c=e._depth,e.title.text!==r._dfltTitle[l]&&(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o)),{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{"../../constants/alignment":483,"../../lib/svg_text_utils":541,"../../plots/cartesian/axis_ids":570,"./constants":441}],445:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("./oppaxis_attributes"),o=t("./helpers");e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t("./attributes"),handleDefaults:t("./defaults"),calcAutorange:t("./calc_autorange"),draw:t("./draw"),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{"../../lib":515,"./attributes":439,"./calc_autorange":440,"./defaults":442,"./draw":443,"./helpers":444,"./oppaxis_attributes":446}],446:[function(t,e,r){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},{}],447:[function(t,e,r){"use strict";var n=t("../annotations/attributes"),i=t("../../traces/scatter/attributes").line,a=t("../drawing/attributes").dash,o=t("../../lib/extend").extendFlat,s=t("../../plot_api/edit_types").overrideAll,l=t("../../plot_api/plot_template").templatedArray;t("../../constants/axis_placeable_objects"),e.exports=s(l("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:o({},n.xref,{}),yref:o({},n.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:i.color,width:o({},i.width,{min:1,dflt:1}),dash:o({},a,{dflt:"dot"})}}),"arraydraw","from-root")},{"../../constants/axis_placeable_objects":484,"../../lib/extend":505,"../../plot_api/edit_types":548,"../../plot_api/plot_template":555,"../../traces/scatter/attributes":936,"../annotations/attributes":350,"../drawing/attributes":388}],448:[function(t,e,r){"use strict";e.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},{}],449:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("../../plots/array_container_defaults"),o=t("./attributes"),s=t("../shapes/helpers");function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var l=a("path"),c="path"!==a("type",l?"path":"rect");c&&delete e.path,a("opacity"),a("line.color"),a("line.width"),a("line.dash");for(var u=["x","y"],f=0;f<2;f++){var p,d,h,g=u[f],m={_fullLayout:r},v=i.coerceRef(t,e,m,g);if((p=i.getFromId(m,v))._selectionIndices.push(e._index),h=s.rangeToShapePosition(p),d=s.shapePositionToRange(p),c){var y=g+"0",b=g+"1",x=t[y],_=t[b];t[y]=d(t[y],!0),t[b]=d(t[b],!0),i.coercePosition(e,m,a,v,y),i.coercePosition(e,m,a,v,b);var w=e[y],k=e[b];void 0!==w&&void 0!==k&&(e[y]=h(w),e[b]=h(k),t[y]=x,t[b]=_)}}c&&n.noneOrAll(t,e,["x0","x1","y0","y1"])}e.exports=function(t,e){a(t,e,{name:"selections",handleItemDefaults:l});for(var r=e.selections,n=0;n<r.length;n++){var i=r[n];i&&void 0===i.path&&(void 0!==i.x0&&void 0!==i.x1&&void 0!==i.y0&&void 0!==i.y1||(e.selections[n]=null))}}},{"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/cartesian/axes":566,"../shapes/helpers":469,"./attributes":447}],450:[function(t,e,r){"use strict";var n=t("../shapes/draw_newshape/helpers").readPaths,i=t("../shapes/display_outlines"),a=t("../shapes/handle_outline").clearOutlineControllers,o=t("../color"),s=t("../drawing"),l=t("../../plot_api/plot_template").arrayEditor,c=t("../shapes/helpers"),u=c.getPathString;function f(t){var e=t._fullLayout;for(var r in a(t),e._selectionLayer.selectAll("path").remove(),e._plots){var n=e._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i<e.selections.length;i++)d(t,i)}function p(t){return t._context.editSelection}function d(t,e){t._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+e+'"]').remove();var r=c.makeSelectionsOptionsAndPlotinfo(t,e),a=r.options,f=r.plotinfo;function d(r){var c=u(t,a),d={"data-index":e,"fill-rule":"evenodd",d:c},m=a.opacity,v="rgba(0,0,0,0)",y=a.line.color||o.contrast(t._fullLayout.plot_bgcolor),b=a.line.width,x=a.line.dash;b||(b=5,x="solid");var _=p(t)&&t._fullLayout._activeSelectionIndex===e;_&&(v=t._fullLayout.activeselection.fillcolor,m=t._fullLayout.activeselection.opacity);for(var w=[],k=1;k>=0;k--){var T=r.append("path").attr(d).style("opacity",k?.1:m).call(o.stroke,y).call(o.fill,v).call(s.dashLine,k?"solid":x,k?4+b:b);if(h(T,t,a),_){var M=l(t.layout,"selections",a);T.style({cursor:"move"});var A={element:T.node(),plotinfo:f,gd:t,editHelpers:M,isActiveSelection:!0},S=n(c,t);i(S,T,A)}else T.style("pointer-events",k?"all":"none");w[k]=T}var E=w[0];w[1].node().addEventListener("click",(function(){return g(t,E)}))}a._input&&d(t._fullLayout._selectionLayer)}function h(t,e,r){var n=r.xref+r.yref;s.setClipUrl(t,"clip"+e._fullLayout._uid+n,e)}function g(t,e){if(p(t)){var r=+e.node().getAttribute("data-index");if(r>=0){if(r===t._fullLayout._activeSelectionIndex)return void v(t);t._fullLayout._activeSelectionIndex=r,t._fullLayout._deactivateSelection=v,f(t)}}}function m(t){if(p(t)){var e=t._fullLayout.selections.length-1;t._fullLayout._activeSelectionIndex=e,t._fullLayout._deactivateSelection=v,f(t)}}function v(t){p(t)&&t._fullLayout._activeSelectionIndex>=0&&(a(t),delete t._fullLayout._activeSelectionIndex,f(t))}e.exports={draw:f,drawOne:d,activateLastSelection:m}},{"../../plot_api/plot_template":555,"../color":367,"../drawing":389,"../shapes/display_outlines":461,"../shapes/draw_newshape/helpers":466,"../shapes/handle_outline":468,"../shapes/helpers":469}],451:[function(t,e,r){"use strict";var n=t("../../drawing/attributes").dash,i=t("../../../lib/extend").extendFlat;e.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:i({},n,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},{"../../../lib/extend":505,"../../drawing/attributes":388}],452:[function(t,e,r){"use strict";e.exports=function(t,e,r){r("newselection.mode"),r("newselection.line.width")&&(r("newselection.line.color"),r("newselection.line.dash")),r("activeselection.fillcolor"),r("activeselection.opacity")}},{}],453:[function(t,e,r){"use strict";var n=t("../../dragelement/helpers").selectMode,i=t("../../shapes/handle_outline").clearOutline,a=t("../../shapes/draw_newshape/helpers"),o=a.readPaths,s=a.writePaths,l=a.fixDatesForPaths;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var a=r.getAttribute("d"),c=e.gd,u=c._fullLayout.newselection,f=e.plotinfo,p=f.xaxis,d=f.yaxis,h=e.isActiveSelection,g=e.dragmode,m=(c.layout||{}).selections||[];if(!n(g)&&void 0!==h){var v=c._fullLayout._activeSelectionIndex;if(v<m.length)switch(c._fullLayout.selections[v].type){case"rect":g="select";break;case"path":g="lasso"}}var y,b=o(a,c,f,h),x={xref:p._id,yref:d._id,opacity:u.opacity,line:{color:u.line.color,width:u.line.width,dash:u.line.dash}};1===b.length&&(y=b[0]),y&&5===y.length&&"select"===g?(x.type="rect",x.x0=y[0][1],x.y0=y[0][2],x.x1=y[2][1],x.y1=y[2][2]):(x.type="path",p&&d&&l(b,p,d),x.path=s(b),y=null),i(c);for(var _=e.editHelpers,w=(_||{}).modifyItem,k=[],T=0;T<m.length;T++){var M=c._fullLayout.selections[T];if(M){if(k[T]=M._input,void 0!==h&&T===c._fullLayout._activeSelectionIndex){var A=x;switch(M.type){case"rect":w("x0",A.x0),w("x1",A.x1),w("y0",A.y0),w("y1",A.y1);break;case"path":w("path",A.path)}}}else k[T]=M}return void 0===h?(k.push(x),k):_?_.getUpdateObj():{}}}}},{"../../dragelement/helpers":385,"../../shapes/draw_newshape/helpers":466,"../../shapes/handle_outline":468}],454:[function(t,e,r){"use strict";var n=t("../../lib").strTranslate;function i(t,e){switch(t.type){case"log":return t.p2d(e);case"date":return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}function a(t,e){switch(t.type){case"log":return t.d2p(e);case"date":return t.r2p(e,0,t.calendar);default:return t.r2p(e)}}function o(t){var e="y"===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}}function s(t){return n(t.xaxis._offset,t.yaxis._offset)}e.exports={p2r:i,r2p:a,axValue:o,getTransform:s}},{"../../lib":515}],455:[function(t,e,r){"use strict";var n=t("./draw"),i=t("./select");e.exports={moduleType:"component",name:"selections",layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),supplyDrawNewSelectionDefaults:t("./draw_newselection/defaults"),includeBasePlot:t("../../plots/cartesian/include_components")("selections"),draw:n.draw,drawOne:n.drawOne,reselect:i.reselect,prepSelect:i.prepSelect,clearOutline:i.clearOutline,clearSelectionsCache:i.clearSelectionsCache,selectOnClick:i.selectOnClick}},{"../../plots/cartesian/include_components":577,"./attributes":447,"./defaults":449,"./draw":450,"./draw_newselection/defaults":452,"./select":456}],456:[function(t,e,r){"use strict";var n=t("polybooljs"),i=t("point-in-polygon/nested"),a=t("../../registry"),o=t("../drawing").dashStyle,s=t("../color"),l=t("../fx"),c=t("../fx/helpers").makeEventData,u=t("../dragelement/helpers"),f=u.freeMode,p=u.rectMode,d=u.drawMode,h=u.openMode,g=u.selectMode,m=t("../shapes/helpers"),v=t("../shapes/constants"),y=t("../shapes/display_outlines"),b=t("../shapes/handle_outline").clearOutline,x=t("../shapes/draw_newshape/helpers"),_=x.handleEllipse,w=x.readPaths,k=t("../shapes/draw_newshape/newshapes"),T=t("./draw_newselection/newselections"),M=t("./draw").activateLastSelection,A=t("../../lib"),S=A.sorterAsc,E=t("../../lib/polygon"),C=t("../../lib/throttle"),O=t("../../plots/cartesian/axis_ids").getFromId,L=t("../../lib/clear_gl_canvases"),I=t("../../plot_api/subroutines").redrawReglTraces,P=t("./constants"),D=P.MINSELECT,R=E.filter,z=E.tester,N=t("./helpers"),F=N.p2r,B=N.axValue,j=N.getTransform;function U(t){return void 0!==t.subplot}function V(t,e,r,n,i){var c=!U(n),u=f(i),m=p(i),v=h(i),b=d(i),x=g(i),w="drawcircle"===i,k="drawline"===i||w,T=n.gd,M=T._fullLayout,S=x&&"immediate"===M.newselection.mode&&c,E=M._zoomlayer,O=n.element.getBoundingClientRect(),L=n.plotinfo,I=j(L),N=e-O.left,F=r-O.top;M._calcInverseTransform(T);var B=A.apply3DTransform(M._invTransform)(N,F);N=B[0],F=B[1];var V,q,G,W,Z,K,$,tt=M._invScaleX,et=M._invScaleY,rt=N,nt=F,it="M"+N+","+F,at=n.xaxes[0],st=n.yaxes[0],ct=at._length,dt=st._length,ht=t.altKey&&!(d(i)&&v);X(t,T,n),u&&(V=R([[N,F]],P.BENDPX));var mt=E.selectAll("path.select-outline-"+L.id).data([1]),vt=b?M.newshape:M.newselection,yt=b&&!v?vt.fillcolor:"rgba(0,0,0,0)",bt=vt.line.color||(c?s.contrast(T._fullLayout.plot_bgcolor):"#7f7f7f");mt.enter().append("path").attr("class","select-outline select-outline-"+L.id).style({opacity:b?vt.opacity/2:1,"stroke-dasharray":o(vt.line.dash,vt.line.width),"stroke-width":vt.line.width+"px","shape-rendering":"crispEdges"}).call(s.stroke,bt).call(s.fill,yt).attr("fill-rule","evenodd").classed("cursor-move",!!b).attr("transform",I).attr("d",it+"Z");var _t=E.append("path").attr("class","zoombox-corners").style({fill:s.background,stroke:s.defaultLine,"stroke-width":1}).attr("transform",I).attr("d","M0,0Z"),wt=M._uid+P.SELECTID,St=[],Et=Q(T,n.xaxes,n.yaxes,n.subplot);S&&!t.shiftKey&&(n._clearSubplotSelections=function(){if(c){var t=at._id,e=st._id;gt(T,t,e,Et);for(var r=(T.layout||{}).selections||[],n=[],i=!1,o=0;o<r.length;o++){var s=M.selections[o];s.xref!==t||s.yref!==e?n.push(r[o]):i=!0}i&&(T._fullLayout._noEmitSelectedAtStart=!0,a.call("_guiRelayout",T,{selections:n}))}});var Ct=kt(n);n.moveFn=function(t,e){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),rt=Math.max(0,Math.min(ct,tt*t+N)),nt=Math.max(0,Math.min(dt,et*e+F));var r=Math.abs(rt-N),i=Math.abs(nt-F);if(m){var a,o,s;if(x){var l=M.selectdirection;switch(a="any"===l?i<Math.min(.6*r,D)?"h":r<Math.min(.6*i,D)?"v":"d":l){case"h":o=w?dt/2:0,s=dt;break;case"v":o=w?ct/2:0,s=ct}}if(b)switch(M.newshape.drawdirection){case"vertical":a="h",o=w?dt/2:0,s=dt;break;case"horizontal":a="v",o=w?ct/2:0,s=ct;break;case"ortho":r<i?(a="h",o=F,s=nt):(a="v",o=N,s=rt);break;default:a="d"}"h"===a?((W=k?_(w,[rt,o],[rt,s]):[[N,o],[N,s],[rt,s],[rt,o]]).xmin=k?rt:Math.min(N,rt),W.xmax=k?rt:Math.max(N,rt),W.ymin=Math.min(o,s),W.ymax=Math.max(o,s),_t.attr("d","M"+W.xmin+","+(F-D)+"h-4v"+2*D+"h4ZM"+(W.xmax-1)+","+(F-D)+"h4v"+2*D+"h-4Z")):"v"===a?((W=k?_(w,[o,nt],[s,nt]):[[o,F],[o,nt],[s,nt],[s,F]]).xmin=Math.min(o,s),W.xmax=Math.max(o,s),W.ymin=k?nt:Math.min(F,nt),W.ymax=k?nt:Math.max(F,nt),_t.attr("d","M"+(N-D)+","+W.ymin+"v-4h"+2*D+"v4ZM"+(N-D)+","+(W.ymax-1)+"v4h"+2*D+"v-4Z")):"d"===a&&((W=k?_(w,[N,F],[rt,nt]):[[N,F],[N,nt],[rt,nt],[rt,F]]).xmin=Math.min(N,rt),W.xmax=Math.max(N,rt),W.ymin=Math.min(F,nt),W.ymax=Math.max(F,nt),_t.attr("d","M0,0Z"))}else u&&(V.addPt([rt,nt]),W=V.filtered);if(n.selectionDefs&&n.selectionDefs.length?(G=lt(n.mergedPolygons,W,ht),W.subtract=ht,q=Y(n.selectionDefs.concat([W]))):(G=[W],q=z(W)),y(ut(G,v),mt,n),x){var c,f=pt(T,!1),p=f.eventData?f.eventData.points.slice():[];f=pt(T,!1,q,Et,n),q=f.selectionTesters,$=f.eventData,c=V?V.filtered:xt(G),C.throttle(wt,P.SELECTDELAY,(function(){for(var t=(St=ft(q,Et)).slice(),e=0;e<p.length;e++){for(var r=p[e],n=!1,i=0;i<t.length;i++)if(t[i].curveNumber===r.curveNumber&&t[i].pointNumber===r.pointNumber){n=!0;break}n||t.push(r)}t.length&&($||($={}),$.points=t),Ct($,c),Tt(T,$)}))}},n.clickFn=function(t,e){if(_t.remove(),T._fullLayout._activeShapeIndex>=0)T._fullLayout._deactivateShape(T);else if(!b){var r=M.clickmode;C.done(wt).then((function(){if(C.clear(wt),2===t){for(mt.remove(),Z=0;Z<Et.length;Z++)(K=Et[Z])._module.selectPoints(K,!1);if(ot(T,Et),J(n),At(T),Et.length){var i=Et[0].xaxis,o=Et[0].yaxis;if(i&&o){for(var s=[],c=T._fullLayout.selections,u=0;u<c.length;u++){var f=c[u];f&&(f.xref===i._id&&f.yref===o._id||s.push(f))}s.length<c.length&&(T._fullLayout._noEmitSelectedAtStart=!0,a.call("_guiRelayout",T,{selections:s}))}}}else r.indexOf("select")>-1&&H(e,T,n.xaxes,n.yaxes,n.subplot,n,mt),"event"===r&&Mt(T,void 0);l.click(T,e)})).catch(A.error)}},n.doneFn=function(){_t.remove(),C.done(wt).then((function(){C.clear(wt),!S&&W&&n.selectionDefs&&(W.subtract=ht,n.selectionDefs.push(W),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,G)),(S||b)&&J(n,S),n.doneFnCompleted&&n.doneFnCompleted(St),x&&Mt(T,$)})).catch(A.error)}}function H(t,e,r,n,i,a,o){var s,l,c,u,f,p,d,g,m,v=e._hoverdata,b=e._fullLayout.clickmode.indexOf("event")>-1,x=[];if(et(v)){X(t,e,a);var _=rt(v,s=Q(e,r,n,i));if(_.pointNumbers.length>0?it(s,_):at(s)&&(p=nt(_))){for(o&&o.remove(),m=0;m<s.length;m++)(l=s[m])._module.selectPoints(l,!1);ot(e,s),J(a),b&&At(e)}else{for(d=t.shiftKey&&(void 0!==p?p:nt(_)),c=q(_.pointNumber,_.searchInfo,d),u=Y(a.selectionDefs.concat([c]),u),m=0;m<s.length;m++)if(f=ct(s[m]._module.selectPoints(s[m],u),s[m]),x.length)for(var w=0;w<f.length;w++)x.push(f[w]);else x=f;if(ot(e,s,g={points:x}),c&&a&&a.selectionDefs.push(c),o){var k=a.mergedPolygons,T=h(a.dragmode);y(ut(k,T),o,a)}b&&Mt(e,g)}}}function q(t,e,r){return{pointNumber:t,searchInfo:e,subtract:!!r}}function G(t){return"pointNumber"in t&&"searchInfo"in t}function W(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&&n===t.pointNumber},isRect:!1,degenerate:!1,subtract:!!t.subtract}}function Y(t){if(t.length){for(var e=[],r=G(t[0])?0:t[0][0][0],n=r,i=G(t[0])?0:t[0][0][1],a=i,o=0;o<t.length;o++)if(G(t[o]))e.push(W(t[o]));else{var s=z(t[o]);s.subtract=!!t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:l,isRect:!1,degenerate:!1}}function l(t,r,n,i){for(var a=!1,o=0;o<e.length;o++)e[o].contains(t,r,n,i)&&(a=!e[o].subtract);return a}}function X(t,e,r){var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&&!(d(a)&&h(a));o&&s&&i.selection&&i.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&&i.selection||J(r),o||(b(e),n._lastSelectedSubplot=i.id)}function Z(t){return t._fullLayout._activeShapeIndex>=0}function K(t){return t._fullLayout._activeSelectionIndex>=0}function J(t,e){var r=t.dragmode,n=t.plotinfo,i=t.gd;Z(i)&&i._fullLayout._deactivateShape(i),K(i)&&i._fullLayout._deactivateSelection(i);var o=i._fullLayout._zoomlayer,s=d(r),l=g(r);if(s||l){var c,u,f=o.selectAll(".select-outline-"+n.id);f&&i._fullLayout._outlining&&(s&&(c=k(f,t)),c&&a.call("_guiRelayout",i,{shapes:c}),l&&!U(t)&&(u=T(f,t)),u&&(i._fullLayout._noEmitSelectedAtStart=!0,a.call("_guiRelayout",i,{selections:u}).then((function(){e&&M(i)}))),i._fullLayout._outlining=!1)}n.selection={},n.selection.selectionDefs=t.selectionDefs=[],n.selection.mergedPolygons=t.mergedPolygons=[]}function $(t){return t._id}function Q(t,e,r,n){if(!t.calcdata)return[];var i,a,o,s=[],l=e.map($),c=r.map($);for(o=0;o<t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&&a._module&&a._module.selectPoints)if(!U({subplot:n})||a.subplot!==n&&a.geo!==n)if("splom"===a.type){if(a._xaxes[l[0]]&&a._yaxes[c[0]]){var u=tt(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}}else if("sankey"===a.type){var f=tt(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(tt(a._module,i,O(t,a.xaxis),O(t,a.yaxis)))}else s.push(tt(a._module,i,e[0],r[0]));return s}function tt(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}function et(t){return t&&Array.isArray(t)&&!0!==t[0].hoverOnBox}function rt(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n<e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&&(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}function nt(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length>0?n[0]:r;return!!e.selectedpoints&&e.selectedpoints.indexOf(i)>-1}function it(t,e){var r,n,i,a=[];for(i=0;i<t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&a.push(r);if(1===a.length&&a[0]===e.searchInfo&&(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i<e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])<0)return!1;return!0}return!1}function at(t){var e,r,n=0;for(r=0;r<t.length;r++)if((e=t[r].cd[0].trace).selectedpoints){if(e.selectedpoints.length>1)return!1;if((n+=e.selectedpoints.length)>1)return!1}return 1===n}function ot(t,e,r){var n,i;for(n=0;n<e.length;n++){var a=e[n].cd[0].trace._fullInput,o=t._fullLayout._tracePreGUI[a.uid]||{};void 0===o.selectedpoints&&(o.selectedpoints=a._input.selectedpoints||null)}if(r){var s=r.points||[];for(n=0;n<e.length;n++)(i=e[n].cd[0].trace)._input.selectedpoints=i._fullInput.selectedpoints=[],i._fullInput!==i&&(i.selectedpoints=[]);for(var l=0;l<s.length;l++){var c=s[l],u=c.data,f=c.fullData,p=c.pointIndex,d=c.pointIndices;d?([].push.apply(u.selectedpoints,d),i._fullInput!==i&&[].push.apply(f.selectedpoints,d)):(u.selectedpoints.push(p),i._fullInput!==i&&f.selectedpoints.push(p))}}else for(n=0;n<e.length;n++)delete(i=e[n].cd[0].trace).selectedpoints,delete i._input.selectedpoints,i._fullInput!==i&&delete i._fullInput.selectedpoints;st(t,e)}function st(t,e){for(var r=!1,n=0;n<e.length;n++){var i=e[n],o=i.cd;a.traceIs(o[0].trace,"regl")&&(r=!0);var s=i._module,l=s.styleOnSelect||s.style;l&&(l(t,o,o[0].node3),o[0].nodeRangePlot3&&l(t,o,o[0].nodeRangePlot3))}r&&(L(t),I(t))}function lt(t,e,r){for(var i=(r?n.difference:n.union)({regions:t},{regions:[e]}).regions.reverse(),a=0;a<i.length;a++){var o=i[a];o.subtract=yt(o,i.slice(0,a))}return i}function ct(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i<t.length;i++)t[i]=c(t[i],n,r);return t}function ut(t,e){for(var r=[],n=0;n<t.length;n++){r[n]=[];for(var i=0;i<t[n].length;i++){r[n][i]=[],r[n][i][0]=i?"L":"M";for(var a=0;a<t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push(["Z",r[n][0][1],r[n][0][2]])}return r}function ft(t,e){for(var r,n,i=[],a=[],o=0;o<e.length;o++){var s=e[o];n=s._module.selectPoints(s,t),a.push(n),r=ct(n,s),i=i.concat(r)}return i}function pt(t,e,r,n,i){var a,o,s,l=!!n;i&&(a=i.plotinfo,o=i.xaxes[0]._id,s=i.yaxes[0]._id);var c=[],u=[],f=vt(t),p=t._fullLayout;if(a){var h=p._zoomlayer,m=p.dragmode,v=d(m),y=g(m);if(v||y){var b=O(t,o,"x"),x=O(t,s,"y");if(b&&x){var _=h.selectAll(".select-outline-"+a.id);if(_&&t._fullLayout._outlining&&_.length){for(var k=_[0][0].getAttribute("d"),T=w(k,t,a),M=[],A=0;A<T.length;A++){for(var S=T[A],E=[],C=0;C<S.length;C++)E.push([bt(b,S[C][1]),bt(x,S[C][2])]);E.xref=o,E.yref=s,E.subtract=yt(E,M),M.push(E)}f=f.concat(M)}}}}var L=o&&s?[o+s]:p._subplots.cartesian;dt(t);for(var I={},P=0;P<L.length;P++){var D=L[P],R=D.indexOf("y"),z=D.slice(0,R),N=D.slice(R),F=o&&s?r:void 0;if(F=mt(f,z,N,F)){var B=n;if(!l){var j=O(t,z,"x"),U=O(t,N,"y");B=Q(t,[j],[U],D);for(var V=0;V<B.length;V++){var H=B[V],q=H.cd[0],G=q.trace;if("scattergl"===H._module.name&&!q.t.xpx){var W=G.x,Y=G.y,X=G._length;q.t.xpx=[],q.t.ypx=[];for(var Z=0;Z<X;Z++)q.t.xpx[Z]=j.c2p(W[Z]),q.t.ypx[Z]=U.c2p(Y[Z])}"splom"===H._module.name&&(I[G.uid]||(I[G.uid]=!0))}}var K=ft(F,B);c=c.concat(K),u=u.concat(B)}}var J={points:c};ot(t,u,J);var $=p.clickmode.indexOf("event")>-1&&e;if(!a&&e){var tt=vt(t,!0);if(tt.length){var et=tt[0].xref,rt=tt[0].yref;if(et&&rt){var nt=xt(tt);wt([O(t,et,"x"),O(t,rt,"y")])(J,nt)}}t._fullLayout._noEmitSelectedAtStart?t._fullLayout._noEmitSelectedAtStart=!1:$&&Mt(t,J),p._reselect=!1}if(!a&&p._deselect){var it=p._deselect;ht(o=it.xref,s=it.yref,u)||gt(t,o,s,n),$&&(J.points.length?Mt(t,J):At(t)),p._deselect=!1}return{eventData:J,selectionTesters:r}}function dt(t){var e=t.calcdata;if(e)for(var r=0;r<e.length;r++){var n=e[r][0].trace,i=t._fullLayout._splomScenes;if(i){var a=i[n.uid];a&&(a.selectBatch=[])}}}function ht(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];if(i.xaxis&&i.xaxis._id===t&&i.yaxis&&i.yaxis._id===e)return!0}return!1}function gt(t,e,r,n){n=Q(t,[O(t,e,"x")],[O(t,r,"y")],e+r);for(var i=0;i<n.length;i++){var a=n[i];a._module.selectPoints(a,!1)}ot(t,n)}function mt(t,e,r,n){for(var i,a=0;a<t.length;a++){var o=t[a];e===o.xref&&r===o.yref&&(i?n=Y(i=lt(i,o,!!o.subtract)):(i=[o],n=z(o)))}return n}function vt(t,e){for(var r=[],n=t._fullLayout,i=n.selections,a=i.length,o=0;o<a;o++)if(!e||o===n._activeSelectionIndex){var s=i[o];if(s){var l,c,u,f,p,d=s.xref,h=s.yref,g=O(t,d,"x"),y=O(t,h,"y");if("rect"===s.type){p=[];var b=bt(g,s.x0),x=bt(g,s.x1),_=bt(y,s.y0),w=bt(y,s.y1);p=[[b,_],[b,w],[x,w],[x,_]],l=Math.min(b,x),c=Math.max(b,x),u=Math.min(_,w),f=Math.max(_,w),p.xmin=l,p.xmax=c,p.ymin=u,p.ymax=f,p.xref=d,p.yref=h,p.subtract=!1,p.isRect=!0,r.push(p)}else if("path"===s.type)for(var k=s.path.split("Z"),T=[],M=0;M<k.length;M++){var A=k[M];if(A){A+="Z";var S=m.extractPathCoords(A,v.paramIsX,"raw"),E=m.extractPathCoords(A,v.paramIsY,"raw");l=1/0,c=-1/0,u=1/0,f=-1/0,p=[];for(var C=0;C<S.length;C++){var L=bt(g,S[C]),I=bt(y,E[C]);p.push([L,I]),l=Math.min(L,l),c=Math.max(L,c),u=Math.min(I,u),f=Math.max(I,f)}p.xmin=l,p.xmax=c,p.ymin=u,p.ymax=f,p.xref=d,p.yref=h,p.subtract=yt(p,T),T.push(p),r.push(p)}}}}return r}function yt(t,e){for(var r=!1,n=0;n<e.length;n++)for(var a=e[n],o=0;o<t.length;o++)if(i(t[o],a)){r=!r;break}return r}function bt(t,e){return"date"===t.type&&(e=e.replace("_"," ")),"log"===t.type?t.c2p(e):t.r2p(e,null,t.calendar)}function xt(t){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];r=(r=r.concat(i)).concat([i[0]])}return _t(r)}function _t(t){return t.isRect=5===t.length&&t[0][0]===t[4][0]&&t[0][1]===t[4][1]&&t[0][0]===t[1][0]&&t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]||t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0],t.isRect&&(t.xmin=Math.min(t[0][0],t[2][0]),t.xmax=Math.max(t[0][0],t[2][0]),t.ymin=Math.min(t[0][1],t[2][1]),t.ymax=Math.max(t[0][1],t[2][1])),t}function wt(t){return function(e,r){for(var n,i,a=0;a<t.length;a++){var o=t[a],s=o._id,l=s.charAt(0);if(r.isRect){n||(n={});var c=r[l+"min"],u=r[l+"max"];void 0!==c&&void 0!==u&&(n[s]=[F(o,c),F(o,u)].sort(S))}else i||(i={}),i[s]=r.map(B(o))}n&&(e.range=n),i&&(e.lassoPoints=i)}}function kt(t){return t.plotinfo.fillRangeItems||wt(t.xaxes.concat(t.yaxes))}function Tt(t,e){t.emit("plotly_selecting",e)}function Mt(t,e){e&&(e.selections=(t.layout||{}).selections||[]),t.emit("plotly_selected",e)}function At(t){t.emit("plotly_deselect",null)}e.exports={reselect:pt,prepSelect:V,clearOutline:b,clearSelectionsCache:J,selectOnClick:H}},{"../../lib":515,"../../lib/clear_gl_canvases":499,"../../lib/polygon":527,"../../lib/throttle":542,"../../plot_api/subroutines":556,"../../plots/cartesian/axis_ids":570,"../../registry":647,"../color":367,"../dragelement/helpers":385,"../drawing":389,"../fx":407,"../fx/helpers":403,"../shapes/constants":459,"../shapes/display_outlines":461,"../shapes/draw_newshape/helpers":466,"../shapes/draw_newshape/newshapes":467,"../shapes/handle_outline":468,"../shapes/helpers":469,"./constants":448,"./draw":450,"./draw_newselection/newselections":453,"./helpers":454,"point-in-polygon/nested":254,polybooljs:255}],457:[function(t,e,r){"use strict";var n=t("../annotations/attributes"),i=t("../../traces/scatter/attributes").line,a=t("../drawing/attributes").dash,o=t("../../lib/extend").extendFlat,s=t("../../plot_api/plot_template").templatedArray;t("../../constants/axis_placeable_objects"),e.exports=s("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:o({},n.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:o({},n.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:o({},i.color,{editType:"arraydraw"}),width:o({},i.width,{editType:"calc+arraydraw"}),dash:o({},a,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},editType:"arraydraw"})},{"../../constants/axis_placeable_objects":484,"../../lib/extend":505,"../../plot_api/plot_template":555,"../../traces/scatter/attributes":936,"../annotations/attributes":350,"../drawing/attributes":388}],458:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("./constants"),o=t("./helpers");function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if("pixel"===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],p=n.aggNums(Math.max,null,f),d=n.aggNums(Math.min,null,f),h=d<0?Math.abs(d)+c:c,g=p>0?p+c:c;return{ppad:c,ppadplus:u?h:g,ppadminus:u?g:h}}return{ppad:c}}function u(t,e,r,n,i){var s="category"===t.type||"multicategory"===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,p=1/0,d=-1/0,h=n.match(a.segmentRE);for("date"===t.type&&(s=o.decodeDate(s)),l=0;l<h.length;l++)void 0!==(c=i[h[l].charAt(0)].drawn)&&(!(u=h[l].substr(1).match(a.paramRE))||u.length<c||((f=s(u[c]))<p&&(p=f),f>d&&(d=f)));return d>=p?[p,d]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var o=0;o<r.length;o++){var c,f,p=r[o];p._extremes={};var d=i.getRefType(p.xref),h=i.getRefType(p.yref);if("paper"!==p.xref&&"domain"!==d){var g="pixel"===p.xsizemode?p.xanchor:p.x0,m="pixel"===p.xsizemode?p.xanchor:p.x1;(f=u(c=i.getFromId(t,p.xref),g,m,p.path,a.paramIsX))&&(p._extremes[c._id]=i.findExtremes(c,f,s(p)))}if("paper"!==p.yref&&"domain"!==h){var v="pixel"===p.ysizemode?p.yanchor:p.y0,y="pixel"===p.ysizemode?p.yanchor:p.y1;(f=u(c=i.getFromId(t,p.yref),v,y,p.path,a.paramIsY))&&(p._extremes[c._id]=i.findExtremes(c,f,l(p)))}}}},{"../../lib":515,"../../plots/cartesian/axes":566,"./constants":459,"./helpers":469}],459:[function(t,e,r){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],460:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axes"),a=t("../../plots/array_container_defaults"),o=t("./attributes"),s=t("./helpers");function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a("visible")){var l=a("path"),c="path"!==a("type",l?"path":"rect");c&&delete e.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule"),a("line.width")&&(a("line.color"),a("line.dash"));for(var u=a("xsizemode"),f=a("ysizemode"),p=["x","y"],d=0;d<2;d++){var h,g,m,v=p[d],y=v+"anchor",b="x"===v?u:f,x={_fullLayout:r},_=i.coerceRef(t,e,x,v,void 0,"paper");if("range"===i.getRefType(_)?((h=i.getFromId(x,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(h),g=s.shapePositionToRange(h)):g=m=n.identity,c){var w=.25,k=.75,T=v+"0",M=v+"1",A=t[T],S=t[M];t[T]=g(t[T],!0),t[M]=g(t[M],!0),"pixel"===b?(a(T,0),a(M,10)):(i.coercePosition(e,x,a,_,T,w),i.coercePosition(e,x,a,_,M,k)),e[T]=m(e[T]),e[M]=m(e[M]),t[T]=A,t[M]=S}if("pixel"===b){var E=t[y];t[y]=g(t[y],!0),i.coercePosition(e,x,a,_,y,.25),e[y]=m(e[y]),t[y]=E}}c&&n.noneOrAll(t,e,["x0","x1","y0","y1"])}}e.exports=function(t,e){a(t,e,{name:"shapes",handleItemDefaults:l})}},{"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/cartesian/axes":566,"./attributes":457,"./helpers":469}],461:[function(t,e,r){"use strict";var n=t("../../lib").strTranslate,i=t("../dragelement"),a=t("../dragelement/helpers"),o=a.drawMode,s=a.selectMode,l=t("../../registry"),c=t("../color"),u=t("./draw_newshape/constants"),f=u.i000,p=u.i090,d=u.i180,h=u.i270,g=t("./handle_outline").clearOutlineControllers,m=t("./draw_newshape/helpers"),v=m.pointsOnRectangle,y=m.pointsOnEllipse,b=m.writePaths,x=t("./draw_newshape/newshapes"),_=t("../selections/draw_newselection/newselections");function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];t[r]=[];for(var i=0;i<n.length;i++){t[r][i]=[];for(var a=0;a<n[i].length;a++)t[r][i][a]=n[i][a]}}return t}function k(t,e){var r,n,i,a=t[e][1],o=t[e][2],s=t.length;return n=t[r=(e+1)%s][1],i=t[r][2],n===a&&i===o&&(n=t[r=(e+2)%s][1],i=t[r][2]),[r,n,i]}function T(t){if(s(t._fullLayout.dragmode)){g(t);var e=t._fullLayout._activeSelectionIndex,r=(t.layout||{}).selections||[];if(e<r.length){for(var n=[],i=0;i<r.length;i++)i!==e&&n.push(r[i]);delete t._fullLayout._activeSelectionIndex;var a=t._fullLayout.selections[e];t._fullLayout._deselect={xref:a.xref,yref:a.yref},l.call("_guiRelayout",t,{selections:n})}}}e.exports=function t(e,r,a,u){u||(u=0);var m=a.gd;function M(){t(e,r,a,u++),y(e[0])&&A({redrawing:!0})}function A(t){var e={};void 0!==a.isActiveShape&&(a.isActiveShape=!1,e=x(r,a)),void 0!==a.isActiveSelection&&(a.isActiveSelection=!1,e=_(r,a),m._fullLayout._reselect=!0),Object.keys(e).length&&l.call((t||{}).redrawing?"relayout":"_guiRelayout",m,e)}var S,E,C,O,L,I=m._fullLayout._zoomlayer,P=a.dragmode,D=o(P),R=s(P);function z(t){C=+t.srcElement.getAttribute("data-i"),O=+t.srcElement.getAttribute("data-j"),S[C][O].moveFn=N}function N(t,r){if(e.length){var n=L[C][O][1],i=L[C][O][2],o=e[C],s=o.length;if(v(o)){var l=t,c=r;a.isActiveSelection&&(k(o,O)[1]===o[O][1]?c=0:l=0);for(var u=0;u<s;u++)if(u!==O){var f=o[u];f[1]===o[O][1]&&(f[1]=n+l),f[2]===o[O][2]&&(f[2]=i+c)}if(o[O][1]=n+l,o[O][2]=i+c,!v(o))for(var p=0;p<s;p++)for(var d=0;d<o[p].length;d++)o[p][d]=L[C][p][d]}else o[O][1]=n+t,o[O][2]=i+r;M()}}function F(){A()}function B(){if(e.length&&e[C]&&e[C].length){for(var t=[],r=0;r<e[C].length;r++)r!==O&&t.push(e[C][r]);t.length>1&&(2!==t.length||"Z"!==t[1][0])&&(0===O&&(t[0][0]="M"),e[C]=t,M(),A())}}function j(t,r){if(2===t){C=+r.srcElement.getAttribute("data-i"),O=+r.srcElement.getAttribute("data-j");var n=e[C];v(n)||y(n)||B()}}function U(t){S=[];for(var r=0;r<e.length;r++){var o=e[r],s=v(o),l=!s&&y(o);S[r]=[];for(var u=o.length,g=0;g<u;g++)if("Z"!==o[g][0]&&(!l||g===f||g===p||g===d||g===h)){var b,x=s&&a.isActiveSelection;x&&(b=k(o,g));var _=o[g][1],w=o[g][2],T=t.append(x?"rect":"circle").attr("data-i",r).attr("data-j",g).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(x){var M=b[1]-_,A=b[2]-w,E=A?5:Math.max(Math.min(25,Math.abs(M)-5),5),C=M?5:Math.max(Math.min(25,Math.abs(A)-5),5);T.classed(A?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",E).attr("height",C).attr("x",_-E/2).attr("y",w-C/2).attr("transform",n(M/2,A/2))}else T.classed("cursor-grab",!0).attr("r",5).attr("cx",_).attr("cy",w);S[r][g]={element:T.node(),gd:m,prepFn:z,doneFn:F,clickFn:j},i.init(S[r][g])}}}function V(t,r){if(e.length)for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)for(var a=0;a+2<e[n][i].length;a+=2)e[n][i][a+1]=L[n][i][a+1]+t,e[n][i][a+2]=L[n][i][a+2]+r}function H(t,e){V(t,e),M()}function q(t){(C=+t.srcElement.getAttribute("data-i"))||(C=0),E[C].moveFn=H}function G(){A()}function W(t){2===t&&T(m)}function Y(){if(E=[],e.length){var t=0;E[t]={element:r[0][0],gd:m,prepFn:q,doneFn:G,clickFn:W},i.init(E[t])}}(D||R)&&(m._fullLayout._outlining=!0),g(m),r.attr("d",b(e)),u||!a.isActiveShape&&!a.isActiveSelection||(L=w([],e),U(I.append("g").attr("class","outline-controllers")),Y())}},{"../../lib":515,"../../registry":647,"../color":367,"../dragelement":386,"../dragelement/helpers":385,"../selections/draw_newselection/newselections":453,"./draw_newshape/constants":464,"./draw_newshape/helpers":466,"./draw_newshape/newshapes":467,"./handle_outline":468}],462:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../../plots/cartesian/axes"),o=t("./draw_newshape/helpers").readPaths,s=t("./display_outlines"),l=t("./handle_outline").clearOutlineControllers,c=t("../color"),u=t("../drawing"),f=t("../../plot_api/plot_template").arrayEditor,p=t("../dragelement"),d=t("../../lib/setcursor"),h=t("./constants"),g=t("./helpers"),m=g.getPathString;function v(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll("path").remove(),e._shapeLowerLayer.selectAll("path").remove(),e._plots){var n=e._plots[r].shapelayer;n&&n.selectAll("path").remove()}for(var i=0;i<e.shapes.length;i++)e.shapes[i].visible&&x(t,i)}function y(t){return!!t._fullLayout._outlining}function b(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+e+'"]').remove();var r=g.makeShapesOptionsAndPlotinfo(t,e),n=r.options,i=r.plotinfo;function a(r){var a=m(t,n),l={"data-index":e,"fill-rule":n.fillrule,d:a},p=n.opacity,d=n.fillcolor,h=n.line.width?n.line.color:"rgba(0,0,0,0)",g=n.line.width,v=n.line.dash;g||!0!==n.editable||(g=5,v="solid");var y="Z"!==a[a.length-1],x=b(t)&&n.editable&&t._fullLayout._activeShapeIndex===e;x&&(d=y?"rgba(0,0,0,0)":t._fullLayout.activeshape.fillcolor,p=t._fullLayout.activeshape.opacity);var k,M=r.append("path").attr(l).style("opacity",p).call(c.stroke,h).call(c.fill,d).call(u.dashLine,v,g);if(_(M,t,n),(x||t._context.edits.shapePosition)&&(k=f(t.layout,"shapes",n)),x){M.style({cursor:"move"});var A={element:M.node(),plotinfo:i,gd:t,editHelpers:k,isActiveShape:!0},S=o(a,t);s(S,M,A)}else t._context.edits.shapePosition?w(t,M,n,e,r,k):!0===n.editable&&M.style("pointer-events",y||c.opacity(d)*p<=.5?"stroke":"all");M.node().addEventListener("click",(function(){return T(t,M)}))}n._input&&!1!==n.visible&&("below"!==n.layer?a(t._fullLayout._shapeUpperLayer):"paper"===n.xref||"paper"===n.yref?a(t._fullLayout._shapeLowerLayer):i._hadPlotinfo?a((i.mainplotinfo||i).shapelayer):a(t._fullLayout._shapeLowerLayer))}function _(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(t,n?"clip"+e._fullLayout._uid+n:null,e)}function w(t,e,r,o,s,l){var c,f,v,b,x,w,T,M,A,S,E,C,O,L,I,P,D=10,R=10,z="pixel"===r.xsizemode,N="pixel"===r.ysizemode,F="line"===r.type,B="path"===r.type,j=l.modifyItem,U=a.getFromId(t,r.xref),V=a.getRefType(r.xref),H=a.getFromId(t,r.yref),q=a.getRefType(r.yref),G=g.getDataToPixel(t,U,!1,V),W=g.getDataToPixel(t,H,!0,q),Y=g.getPixelToData(t,U,!1,V),X=g.getPixelToData(t,H,!0,q),Z=J(),K={element:Z.node(),gd:t,prepFn:tt,doneFn:et,clickFn:rt};function J(){return F?$():e}function $(){var t=10,n=Math.max(r.line.width,t),i=s.append("g").attr("data-index",o);i.append("path").attr("d",e.attr("d")).style({cursor:"move","stroke-width":n,"stroke-opacity":"0"});var a={"fill-opacity":"0"},l=Math.max(n/2,t);return i.append("circle").attr({"data-line-point":"start-point",cx:z?G(r.xanchor)+r.x0:G(r.x0),cy:N?W(r.yanchor)-r.y0:W(r.y0),r:l}).style(a).classed("cursor-grab",!0),i.append("circle").attr({"data-line-point":"end-point",cx:z?G(r.xanchor)+r.x1:G(r.x1),cy:N?W(r.yanchor)-r.y1:W(r.y1),r:l}).style(a).classed("cursor-grab",!0),i}function Q(r){if(y(t))P=null;else if(F)P="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=K.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!B&&i>D&&a>R&&!r.shiftKey?p.getCursor(o/i,1-s/a):"move";d(e,l),P=l.split("-")[0]}}function tt(n){y(t)||(z&&(x=G(r.xanchor)),N&&(w=W(r.yanchor)),"path"===r.type?I=r.path:(c=z?r.x0:G(r.x0),f=N?r.y0:W(r.y0),v=z?r.x1:G(r.x1),b=N?r.y1:W(r.y1)),c<v?(A=c,O="x0",S=v,L="x1"):(A=v,O="x1",S=c,L="x0"),!N&&f<b||N&&f>b?(T=f,E="y0",M=b,C="y1"):(T=b,E="y1",M=f,C="y0"),Q(n),at(s,r),st(e,r,t),K.moveFn="move"===P?nt:it,K.altKey=n.altKey)}function et(){y(t)||(d(e),ot(s),_(e,t,r),n.call("_guiRelayout",t,l.getUpdateObj()))}function rt(){y(t)||ot(s)}function nt(n,i){if("path"===r.type){var a=function(t){return t},o=a,l=a;z?j("xanchor",r.xanchor=Y(x+n)):(o=function(t){return Y(G(t)+n)},U&&"date"===U.type&&(o=g.encodeDate(o))),N?j("yanchor",r.yanchor=X(w+i)):(l=function(t){return X(W(t)+i)},H&&"date"===H.type&&(l=g.encodeDate(l))),j("path",r.path=k(I,o,l))}else z?j("xanchor",r.xanchor=Y(x+n)):(j("x0",r.x0=Y(c+n)),j("x1",r.x1=Y(v+n))),N?j("yanchor",r.yanchor=X(w+i)):(j("y0",r.y0=X(f+i)),j("y1",r.y1=X(b+i)));e.attr("d",m(t,r)),at(s,r)}function it(n,i){if(B){var a=function(t){return t},o=a,l=a;z?j("xanchor",r.xanchor=Y(x+n)):(o=function(t){return Y(G(t)+n)},U&&"date"===U.type&&(o=g.encodeDate(o))),N?j("yanchor",r.yanchor=X(w+i)):(l=function(t){return X(W(t)+i)},H&&"date"===H.type&&(l=g.encodeDate(l))),j("path",r.path=k(I,o,l))}else if(F){if("resize-over-start-point"===P){var u=c+n,p=N?f-i:f+i;j("x0",r.x0=z?u:Y(u)),j("y0",r.y0=N?p:X(p))}else if("resize-over-end-point"===P){var d=v+n,h=N?b-i:b+i;j("x1",r.x1=z?d:Y(d)),j("y1",r.y1=N?h:X(h))}}else{var y=function(t){return-1!==P.indexOf(t)},_=y("n"),V=y("s"),q=y("w"),Z=y("e"),K=_?T+i:T,J=V?M+i:M,$=q?A+n:A,Q=Z?S+n:S;N&&(_&&(K=T-i),V&&(J=M-i)),(!N&&J-K>R||N&&K-J>R)&&(j(E,r[E]=N?K:X(K)),j(C,r[C]=N?J:X(J))),Q-$>D&&(j(O,r[O]=z?$:Y($)),j(L,r[L]=z?Q:Y(Q)))}e.attr("d",m(t,r)),at(s,r)}function at(t,e){function r(){var r="path"!==e.type,n=t.selectAll(".visual-cue").data([0]),a=1;n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":a}).classed("visual-cue",!0);var o=G(z?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,h.paramIsX))),s=W(N?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,h.paramIsY)));if(o=g.roundPositionForSharpStrokeRendering(o,a),s=g.roundPositionForSharpStrokeRendering(s,a),z&&N){var l="M"+(o-1-a)+","+(s-1-a)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",l)}else if(z){var c="M"+(o-1-a)+","+(s-9-a)+"v18 h2 v-18 Z";n.attr("d",c)}else{var u="M"+(o-9-a)+","+(s-1-a)+"h18 v2 h-18 Z";n.attr("d",u)}}(z||N)&&r()}function ot(t){t.selectAll(".visual-cue").remove()}function st(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l="";"paper"===n||o.autorange||(l+=n),"paper"===i||s.autorange||(l+=i),u.setClipUrl(t,l?"clip"+r._fullLayout._uid+l:null,r)}p.init(K),Z.node().onmousemove=Q}function k(t,e,r){return t.replace(h.segmentRE,(function(t){var n=0,i=t.charAt(0),a=h.paramIsX[i],o=h.paramIsY[i],s=h.numParams[i];return i+t.substr(1).replace(h.paramRE,(function(t){return n>=s||(a[n]?t=e(t):o[n]&&(t=r(t)),n++),t}))}))}function T(t,e){if(b(t)){var r=+e.node().getAttribute("data-index");if(r>=0){if(r===t._fullLayout._activeShapeIndex)return void M(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=M,v(t)}}}function M(t){b(t)&&t._fullLayout._activeShapeIndex>=0&&(l(t),delete t._fullLayout._activeShapeIndex,v(t))}function A(t){if(b(t)){l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e<r.length){for(var i=[],a=0;a<r.length;a++)a!==e&&i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call("_guiRelayout",t,{shapes:i})}}}e.exports={draw:v,drawOne:x,eraseActiveShape:A}},{"../../lib":515,"../../lib/setcursor":536,"../../plot_api/plot_template":555,"../../plots/cartesian/axes":566,"../../registry":647,"../color":367,"../dragelement":386,"../drawing":389,"./constants":459,"./display_outlines":461,"./draw_newshape/helpers":466,"./handle_outline":468,"./helpers":469}],463:[function(t,e,r){"use strict";var n=t("../../drawing/attributes").dash,i=t("../../../lib/extend").extendFlat;e.exports={newshape:{line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:0,dflt:4,editType:"none"},dash:i({},n,{dflt:"solid",editType:"none"}),editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"none"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"none"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none"},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},{"../../../lib/extend":505,"../../drawing/attributes":388}],464:[function(t,e,r){"use strict";var n=32;e.exports={CIRCLE_SIDES:n,i000:0,i090:n/4,i180:n/2,i270:n/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],465:[function(t,e,r){"use strict";var n=t("../../color");e.exports=function(t,e,r){if(r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var i=(t||{}).plot_bgcolor||"#FFF";r("newshape.line.color",n.contrast(i)),r("newshape.line.dash")}r("activeshape.fillcolor"),r("activeshape.opacity")}},{"../../color":367}],466:[function(t,e,r){"use strict";var n=t("parse-svg-path"),i=t("./constants"),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t("../../selections/helpers"),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function p(t,e){return Math.abs(t-e)<=1e-6}function d(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return"M0,0Z";for(var r="",n=0;n<e;n++)for(var i=t[n].length,a=0;a<i;a++){var o=t[n][a][0];if("Z"===o)r+="Z";else for(var s=t[n][a].length,l=0;l<s;l++){var c=l;"Q"===o||"S"===o?c=f[l]:"C"===o&&(c=u[l]),r+=t[n][a][c],l>0&&l<s-1&&(r+=",")}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),p=[],d=-1,h=function(){d++,p[d]=[]},g=0,m=0,v=function(){s=g,u=m};v();for(var y=0;y<f.length;y++){var b,x,_,w,k=[],T=f[y][0],M=T;switch(T){case"M":h(),g=+f[y][1],m=+f[y][2],k.push([M,g,m]),v();break;case"Q":case"S":b=+f[y][1],_=+f[y][2],g=+f[y][3],m=+f[y][4],k.push([M,g,m,b,_]);break;case"C":b=+f[y][1],_=+f[y][2],x=+f[y][3],w=+f[y][4],g=+f[y][5],m=+f[y][6],k.push([M,g,m,b,_,x,w]);break;case"T":case"L":g=+f[y][1],m=+f[y][2],k.push([M,g,m]);break;case"H":M="L",g=+f[y][1],k.push([M,g,m]);break;case"V":M="L",m=+f[y][1],k.push([M,g,m]);break;case"A":M="L";var A=+f[y][1],S=+f[y][2];+f[y][4]||(A=-A,S=-S);var E=g-A,C=m;for(o=1;o<=a/2;o++){var O=2*Math.PI*o/a;k.push([M,E+A*Math.cos(O),C+S*Math.sin(O)])}break;case"Z":g===s&&m===u||(g=s,m=u,k.push([M,g,m]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&&"pixel"===r.xsizemode,D=r&&"pixel"===r.ysizemode,R=!1===i,z=0;z<k.length;z++){for(o=0;o+2<7;o+=2){var N=k[z][o+1],F=k[z][o+2];void 0!==N&&void 0!==F&&(g=N,m=F,r&&(r.xaxis&&r.xaxis.p2r?(R&&(N-=r.xaxis._offset),N=P?c(r.xaxis,r.xanchor)+N:l(r.xaxis,N)):(R&&(N-=I.l),L?N=L.x[0]+N/I.w:N/=I.w),r.yaxis&&r.yaxis.p2r?(R&&(F-=r.yaxis._offset),F=D?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(R&&(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),k[z][o+1]=N,k[z][o+2]=F)}p[d].push(k[z].slice())}}return p},r.pointsOnRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e<3;e++){if(!p(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!p(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!p(t[0][1],t[1][1])&&!p(t[0][1],t[3][1]))&&!!(d(t[0],t[1])*d(t[0],t[3]))},r.pointsOnEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r<e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!p(d(t[r],t[o]),d(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],p=0;p<a;p++){var d=2*p*Math.PI/a;f.push([s+c*Math.cos(d),l+u*Math.sin(d)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}},r.fixDatesForPaths=function(t,e,r){var n="date"===e.type,i="date"===r.type;if(!n&&!i)return t;for(var a=0;a<t.length;a++)for(var o=0;o<t[a].length;o++)for(var s=0;s+2<t[a][o].length;s+=2)n&&(t[a][o][s+1]=t[a][o][s+1].replace(" ","_")),i&&(t[a][o][s+2]=t[a][o][s+2].replace(" ","_"));return t}},{"../../selections/helpers":454,"./constants":464,"parse-svg-path":250}],467:[function(t,e,r){"use strict";var n=t("../../dragelement/helpers"),i=n.drawMode,a=n.openMode,o=t("./constants"),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,p=o.sin45,d=t("../../selections/helpers"),h=d.p2r,g=d.r2p,m=t(".././handle_outline").clearOutline,v=t("./helpers"),y=v.readPaths,b=v.writePaths,x=v.ellipseOver,_=v.fixDatesForPaths;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute("d"),o=e.gd,d=o._fullLayout.newshape,v=e.plotinfo,w=v.xaxis,k=v.yaxis,T=!!v.domain||!v.xaxis,M=!!v.domain||!v.yaxis,A=e.isActiveShape,S=e.dragmode,E=(o.layout||{}).shapes||[];if(!i(S)&&void 0!==A){var C=o._fullLayout._activeShapeIndex;if(C<E.length)switch(o._fullLayout.shapes[C].type){case"rect":S="drawrect";break;case"circle":S="drawcircle";break;case"line":S="drawline";break;case"path":var O=E[C].path||"";S="Z"===O[O.length-1]?"drawclosedpath":"drawopenpath"}}var L,I=a(S),P=y(n,o,v,A),D={editable:!0,xref:T?"paper":w._id,yref:M?"paper":k._id,layer:d.layer,opacity:d.opacity,line:{color:d.line.color,width:d.line.width,dash:d.line.dash}};if(I||(D.fillcolor=d.fillcolor,D.fillrule=d.fillrule),1===P.length&&(L=P[0]),L&&5===L.length&&"drawrect"===S)D.type="rect",D.x0=L[0][1],D.y0=L[0][2],D.x1=L[2][1],D.y1=L[2][2];else if(L&&"drawline"===S)D.type="line",D.x0=L[0][1],D.y0=L[0][2],D.x1=L[1][1],D.y1=L[1][2];else if(L&&"drawcircle"===S){D.type="circle";var R=L[s][1],z=L[l][1],N=L[c][1],F=L[u][1],B=L[s][2],j=L[l][2],U=L[c][2],V=L[u][2],H=v.xaxis&&("date"===v.xaxis.type||"log"===v.xaxis.type),q=v.yaxis&&("date"===v.yaxis.type||"log"===v.yaxis.type);H&&(R=g(v.xaxis,R),z=g(v.xaxis,z),N=g(v.xaxis,N),F=g(v.xaxis,F)),q&&(B=g(v.yaxis,B),j=g(v.yaxis,j),U=g(v.yaxis,U),V=g(v.yaxis,V));var G=(z+F)/2,W=(B+U)/2,Y=x({x0:G,y0:W,x1:G+(F-z+N-R)/2*f,y1:W+(V-j+U-B)/2*p});H&&(Y.x0=h(v.xaxis,Y.x0),Y.x1=h(v.xaxis,Y.x1)),q&&(Y.y0=h(v.yaxis,Y.y0),Y.y1=h(v.yaxis,Y.y1)),D.x0=Y.x0,D.y0=Y.y0,D.x1=Y.x1,D.y1=Y.y1}else D.type="path",w&&k&&_(P,w,k),D.path=b(P),L=null;m(o);for(var X=e.editHelpers,Z=(X||{}).modifyItem,K=[],J=0;J<E.length;J++){var $=o._fullLayout.shapes[J];if(K[J]=$._input,void 0!==A&&J===o._fullLayout._activeShapeIndex){var Q=D;switch($.type){case"line":case"rect":case"circle":Z("x0",Q.x0),Z("x1",Q.x1),Z("y0",Q.y0),Z("y1",Q.y1);break;case"path":Z("path",Q.path)}}}return void 0===A?(K.push(D),K):X?X.getUpdateObj():{}}}}},{"../../dragelement/helpers":385,"../../selections/helpers":454,".././handle_outline":468,"./constants":464,"./helpers":466}],468:[function(t,e,r){"use strict";function n(t){var e=t._fullLayout._zoomlayer;e&&e.selectAll(".outline-controllers").remove()}function i(t){var e=t._fullLayout._zoomlayer;e&&e.selectAll(".select-outline").remove(),t._fullLayout._outlining=!1}e.exports={clearOutlineControllers:n,clearOutline:i}},{}],469:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../lib"),a=t("../../plots/cartesian/axes");function o(t,e,r){var a=t.path,o=t.xsizemode,s=t.ysizemode,l=t.xanchor,c=t.yanchor;return a.replace(n.segmentRE,(function(t){var a=0,u=t.charAt(0),f=n.paramIsX[u],p=n.paramIsY[u],d=n.numParams[u],h=t.substr(1).replace(n.paramRE,(function(t){return f[a]?t="pixel"===o?e(l)+Number(t):e(t):p[a]&&(t="pixel"===s?r(c)-Number(t):r(t)),++a>d&&(t="X"),t}));return a>d&&(h=h.replace(/[\s,]*X.*/,""),i.log("Ignoring extra params in segment "+t)),u+h}))}r.rangeToShapePosition=function(t){return"log"===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return"log"===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&&(e=e.replace("_"," ")),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(" ","_")}},r.extractPathCoords=function(t,e,r){var a=[];return t.match(n.segmentRE).forEach((function(t){var o=e[t.charAt(0)].drawn;if(void 0!==o){var s=t.substr(1).match(n.paramRE);if(s&&!(s.length<o)){var l=s[o],c=r?l:i.cleanNumber(l);a.push(c)}}})),a},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if("domain"===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},"date"===e.type&&(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if("domain"===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeShapesOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return n?n._hadPlotinfo=!0:(n={},r.xref&&"paper"!==r.xref&&(n.xaxis=t._fullLayout[r.xref+"axis"]),r.yref&&"paper"!==r.yref&&(n.yaxis=t._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}},r.makeSelectionsOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.selections[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return n?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=t._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=t._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}},r.getPathString=function(t,e){var n,i,s,l,c,u,f,p,d=e.type,h=a.getRefType(e.xref),g=a.getRefType(e.yref),m=a.getFromId(t,e.xref),v=a.getFromId(t,e.yref),y=t._fullLayout._size;if(m?"domain"===h?i=function(t){return m._offset+m._length*t}:(n=r.shapePositionToRange(m),i=function(t){return m._offset+m.r2p(n(t,!0))}):i=function(t){return y.l+y.w*t},v?"domain"===g?l=function(t){return v._offset+v._length*(1-t)}:(s=r.shapePositionToRange(v),l=function(t){return v._offset+v.r2p(s(t,!0))}):l=function(t){return y.t+y.h*(1-t)},"path"===d)return m&&"date"===m.type&&(i=r.decodeDate(i)),v&&"date"===v.type&&(l=r.decodeDate(l)),o(e,i,l);if("pixel"===e.xsizemode){var b=i(e.xanchor);c=b+e.x0,u=b+e.x1}else c=i(e.x0),u=i(e.x1);if("pixel"===e.ysizemode){var x=l(e.yanchor);f=x-e.y0,p=x-e.y1}else f=l(e.y0),p=l(e.y1);if("line"===d)return"M"+c+","+f+"L"+u+","+p;if("rect"===d)return"M"+c+","+f+"H"+u+"V"+p+"H"+c+"Z";var _=(c+u)/2,w=(f+p)/2,k=Math.abs(_-c),T=Math.abs(w-f),M="A"+k+","+T,A=_+k+","+w;return"M"+A+M+" 0 1,1 "+_+","+(w-T)+M+" 0 0,1 "+A+"Z"}},{"../../lib":515,"../../plots/cartesian/axes":566,"./constants":459}],470:[function(t,e,r){"use strict";var n=t("./draw");e.exports={moduleType:"component",name:"shapes",layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),supplyDrawNewShapeDefaults:t("./draw_newshape/defaults"),includeBasePlot:t("../../plots/cartesian/include_components")("shapes"),calcAutorange:t("./calc_autorange"),draw:n.draw,drawOne:n.drawOne}},{"../../plots/cartesian/include_components":577,"./attributes":457,"./calc_autorange":458,"./defaults":460,"./draw":462,"./draw_newshape/defaults":465}],471:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("../../plots/pad_attributes"),a=t("../../lib/extend").extendDeepAll,o=t("../../plot_api/edit_types").overrideAll,s=t("../../plots/animation_attributes"),l=t("../../plot_api/plot_template").templatedArray,c=t("./constants"),u=l("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});e.exports=o(l("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:a(i({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:s.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:n({})},font:n({}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor},bgcolor:{valType:"color",dflt:c.railBgColor},bordercolor:{valType:"color",dflt:c.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c.tickLength},tickcolor:{valType:"color",dflt:c.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength}}),"arraydraw","from-root")},{"../../lib/extend":505,"../../plot_api/edit_types":548,"../../plot_api/plot_template":555,"../../plots/animation_attributes":560,"../../plots/font_attributes":594,"../../plots/pad_attributes":627,"./constants":472}],472:[function(t,e,r){"use strict";e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],473:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/array_container_defaults"),a=t("./attributes"),o=t("./constants").name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:"steps",handleItemDefaults:c}),l=0,u=0;u<s.length;u++)s[u].visible&&l++;if(l<2?e.visible=!1:o("visible")){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o("active")]||{}).visible||(e.active=f[0]._index),o("x"),o("y"),n.noneOrAll(t,e,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),n.coerceFont(o,"currentvalue.font",e.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if("skip"===t.method||Array.isArray(t.args)?r("visible"):e.visible=!1){r("method"),r("args");var i=r("label","step-"+e._index);r("value",i),r("execute")}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{"../../lib":515,"../../plots/array_container_defaults":561,"./attributes":471,"./constants":472}],474:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../plots/plots"),a=t("../color"),o=t("../drawing"),s=t("../../lib"),l=s.strTranslate,c=t("../../lib/svg_text_utils"),u=t("../../plot_api/plot_template").arrayEditor,f=t("./constants"),p=t("../../constants/alignment"),d=p.LINE_SPACING,h=p.FROM_TL,g=p.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t,e){for(var r=t[f.name],n=[],i=0;i<r.length;i++){var a=r[i];a.visible&&(a._gd=e,n.push(a))}return n}function y(t){return t._index}function b(t,e){var r=o.tester.selectAll("g."+f.labelGroupClass).data(e._visibleSteps);r.enter().append("g").classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=k(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var p=t._fullLayout._size;u.lx=p.l+p.w*e.x,u.ly=p.t+p.h*(1-e.y),"fraction"===e.lenmode?u.outerLength=Math.round(p.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var d=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/d)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append("g");r.each((function(t){var r=_(y,e,t.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b="left";s.isRightAnchor(e)&&(u.lx-=u.outerLength,b="right"),s.isCenterAnchor(e)&&(u.lx-=u.outerLength/2,b="center");var x="top";s.isBottomAnchor(e)&&(u.ly-=u.height,x="bottom"),s.isMiddleAnchor(e)&&(u.ly-=u.height/2,x="middle"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var w={y:e.y,b:u.height*g[x],t:u.height*h[x]};"fraction"===e.lenmode?(w.l=0,w.xl=e.x-e.len*h[b],w.r=0,w.xr=e.x+e.len*g[b]):(w.x=e.x,w.l=u.outerLength*h[b],w.r=u.outerLength*g[b]),i.autoMargin(t,m(e),w)}function x(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index),e.call(_,r).call(D,r).call(T,r).call(E,r).call(P,t,r).call(w,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(O,r,!1),e.call(_,r)}function _(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case"right":n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=.5*a.inputAreaLength,i="middle";break;default:n=f.currentValueInset,i="left"}var l=s.ensureSingle(t,"text",f.labelClass,(function(t){t.attr({"text-anchor":i,"data-notex":1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:"";if("string"===typeof r)u+=r;else{var p=e.steps[e.active].label,h=e._gd._fullLayout._meta;h&&(p=s.templateString(p,h)),u+=p}e.currentvalue.suffix&&(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*d;return c.positionText(l,n,m),l}}function w(t,e,r){s.ensureSingle(t,"rect",f.gripRectClass,(function(n){n.call(S,e,t,r).style("pointer-events","all")})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function k(t,e,r){var n=s.ensureSingle(t,"text",f.labelClass,(function(t){t.attr({"text-anchor":"middle","data-notex":1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&&(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function T(t,e){var r=s.ensureSingle(t,"g",f.labelsClass),i=e._dims,a=r.selectAll("g."+f.labelGroupClass).data(i.labelSteps);a.enter().append("g").classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(k,t,e),o.setTranslate(r,L(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*d+f.labelOffset+i.currentValueTotalHeight)}))}function M(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&&A(t,e,r,o,!0,i)}function A(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate("active",n);var l=r.steps[r.active];e.call(O,r,o),e.call(_,r),t.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&&l.method&&a&&(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&&(r.execute&&i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function S(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}function l(){var t=s();e.emit("plotly_sliderstart",{slider:t});var l=r.select("."+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=I(t,n.mouse(i)[0]);function u(){var t=s(),a=I(t,n.mouse(i)[0]);M(e,r,t,a,!1)}function p(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),e.emit("plotly_sliderend",{slider:t,step:t.steps[t.active]})}M(e,r,t,c,!0),t._dragging=!0,o.on("mousemove",u),o.on("touchmove",u),o.on("mouseup",p),o.on("touchend",p)}t.on("mousedown",l),t.on("touchstart",l)}function E(t,e){var r=t.selectAll("rect."+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append("rect").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+"px","shape-rendering":"crispEdges"}),r.each((function(t,r){var s=r%i.labelStride===0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,L(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function C(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n<r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}function O(t,e,r){for(var n=t.select("rect."+f.gripRectClass),i=0,a=0;a<e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=L(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&&e.transition.duration>0&&(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr("transform",l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function L(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function I(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function P(t,e,r){var n=r._dims,i=s.ensureSingle(t,"rect",f.railTouchRectClass,(function(n){n.call(S,e,t,r).style("pointer-events","all")}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr("opacity",0),o.setTranslate(i,0,n.currentValueTotalHeight)}function D(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,"rect",f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px"),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=v(e,t),a=e._infolayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);function o(e){e._commandObserver&&(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append("g").classed(f.containerClassName,!0).style("cursor","ew-resize"),a.exit().each((function(){n.select(this).selectAll("g."+f.groupClassName).each(o)})).remove(),0!==r.length){var s=a.selectAll("g."+f.groupClassName).data(r,y);s.enter().append("g").classed(f.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l<r.length;l++){var c=r[l];b(t,c)}s.each((function(e){var r=n.select(this);C(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&&(n._dragging||A(t,r,n,e.index,!1,!0))})),x(t,n.select(this),e)}))}}},{"../../constants/alignment":483,"../../lib":515,"../../lib/svg_text_utils":541,"../../plot_api/plot_template":555,"../../plots/plots":628,"../color":367,"../drawing":389,"./constants":472,"@plotly/d3":58}],475:[function(t,e,r){"use strict";var n=t("./constants");e.exports={moduleType:"component",name:n.name,layoutAttributes:t("./attributes"),supplyLayoutDefaults:t("./defaults"),draw:t("./draw")}},{"./attributes":471,"./constants":472,"./defaults":473,"./draw":474}],476:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../../plots/plots"),o=t("../../registry"),s=t("../../lib"),l=s.strTranslate,c=t("../drawing"),u=t("../color"),f=t("../../lib/svg_text_utils"),p=t("../../constants/interactions"),d=t("../../constants/alignment").OPPOSITE_SIDE,h=/ [XY][0-9]* /;function g(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,b=r.traceIndex,x=r.avoid||{},_=r.attributes,w=r.transform,k=r.containerGroup,T=t._fullLayout,M=1,A=!1,S=m.title,E=(S&&S.text?S.text:"").trim(),C=S&&S.font?S.font:{},O=C.family,L=C.size,I=C.color;"title.text"===v?g="titleText":-1!==v.indexOf("axis")?g="axisTitleText":v.indexOf(!0)&&(g="colorbarTitleText");var P=t._context.edits[g];""===E?M=0:E.replace(h," % ")===y.replace(h," % ")&&(M=.2,A=!0,P||(E="")),r._meta?E=s.templateString(E,r._meta):T._meta&&(E=s.templateString(E,T._meta));var D,R=E||P;k||(k=s.ensureSingle(T._infolayer,"g","g-"+e),D=T._hColorbarMoveTitle);var z=k.selectAll("text").data(R?[0]:[]);if(z.enter().append("text"),z.text(E).attr("class",e),z.exit().remove(),!R)return k;function N(t){s.syncOrAsync([F,B],t)}function F(e){var r;return!w&&D&&(w={}),w?(r="",w.rotate&&(r+="rotate("+[w.rotate,_.x,_.y]+")"),(w.offset||D)&&(r+=l(0,(w.offset||0)-(D||0)))):r=null,e.attr("transform",r),e.style({"font-family":O,"font-size":n.round(L,2)+"px",fill:u.rgb(I),opacity:M*u.opacity(I),"font-weight":a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(x&&x.selection&&x.side&&E){e.attr("transform",null);var r=d[x.side],a="left"===x.side||"top"===x.side?-1:1,o=i(x.pad)?x.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:T.width,bottom:T.height},p=x.maxShift||a*(f[x.side]-u[x.side]),h=0;if(p<0)h=p;else{var g=x.offsetLeft||0,m=x.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,x.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&&(h=Math.max(h,a*(t[x.side]-u[r])+o))})),h=Math.min(p,h)}if(h>0||p<0){var v={left:[-h,0],right:[h,0],top:[0,-h],bottom:[0,h]}[x.side];e.attr("transform",l(v[0],v[1]))}}}function j(){M=0,A=!0,z.text(y).on("mouseover.opacity",(function(){n.select(this).transition().duration(p.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(p.HIDE_PLACEHOLDER).style("opacity",0)}))}return z.call(N),P&&(E?z.on(".opacity",null):j(),z.call(f.makeEditable,{gd:t}).on("edit",(function(e){void 0!==b?o.call("_guiRestyle",t,v,e,b):o.call("_guiRelayout",t,v,e)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(N)})).on("input",(function(t){this.text(t||" ").call(f.positionText,_.x,_.y)}))),z.classed("js-placeholder",A),k}e.exports={draw:g}},{"../../constants/alignment":483,"../../constants/interactions":490,"../../lib":515,"../../lib/svg_text_utils":541,"../../plots/plots":628,"../../registry":647,"../color":367,"../drawing":389,"@plotly/d3":58,"fast-isnumeric":190}],477:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),i=t("../color/attributes"),a=t("../../lib/extend").extendFlat,o=t("../../plot_api/edit_types").overrideAll,s=t("../../plots/pad_attributes"),l=t("../../plot_api/plot_template").templatedArray,c=l("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});e.exports=o(l("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:a(s({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:i.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":505,"../../plot_api/edit_types":548,"../../plot_api/plot_template":555,"../../plots/font_attributes":594,"../../plots/pad_attributes":627,"../color/attributes":366}],478:[function(t,e,r){"use strict";e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25c4",right:"\u25ba",up:"\u25b2",down:"\u25bc"}}},{}],479:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/array_container_defaults"),a=t("./attributes"),o=t("./constants").name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o("visible",i(t,e,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(t,e,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r("visible","skip"===t.method||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{"../../lib":515,"../../plots/array_container_defaults":561,"./attributes":477,"./constants":478}],480:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../plots/plots"),a=t("../color"),o=t("../drawing"),s=t("../../lib"),l=t("../../lib/svg_text_utils"),c=t("../../plot_api/plot_template").arrayEditor,u=t("../../constants/alignment").LINE_SPACING,f=t("./constants"),p=t("./scrollbox");function d(t){return t._index}function h(t){return-1===+t.attr(f.menuIndexAttrName)}function g(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function m(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate("active",o),"buttons"===e.type?y(t,n,null,null,e):"dropdown"===e.type&&(i.attr(f.menuIndexAttrName,"-1"),v(t,n,i,a,e),s||y(t,n,i,a,e))}function v(t,e,r,n,i){var a=s.ensureSingle(e,"g",f.headerClassName,(function(t){t.style("pointer-events","all")})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,p={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},d={width:l.headerWidth,height:l.headerHeight};a.call(_,i,u,t).call(C,i,p,d),s.ensureSingle(e,"text",f.headerArrowClassName,(function(t){t.attr("text-anchor","end").call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on("click",(function(){r.call(O,String(g(r,i)?-1:i._index)),y(t,e,r,n,i)})),a.on("mouseover",(function(){a.call(M)})),a.on("mouseout",(function(){a.call(A,i)})),o.setTranslate(e,l.lx,l.ly)}function y(t,e,r,a,o){r||(r=e).attr("pointer-events","all");var l=h(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(s.filterVisible(l)),p=u.enter().append("g").classed(c,!0),d=u.exit();"dropdown"===o.type?(p.attr("opacity","0").transition().attr("opacity","1"),d.transition().attr("opacity","0").remove()):d.remove();var g=0,v=0,y=o._dims,w=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(w?v=y.headerHeight+f.gapButtonHeader:g=y.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-f.gapButtonHeader+f.gapButton-y.openHeight),"dropdown"===o.type&&"left"===o.direction&&(g=-f.gapButtonHeader+f.gapButton-y.openWidth);var k={x:y.lx+g+o.pad.l,y:y.ly+v+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},S={l:k.x+o.borderwidth,t:k.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(_,o,s,t).call(C,o,k),c.on("click",(function(){n.event.defaultPrevented||(s.execute&&(s.args2&&o.active===l?(m(t,o,s,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(m(t,o,s,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit("plotly_buttonclicked",{menu:o,button:s,active:o.active}))})),c.on("mouseover",(function(){c.call(M)})),c.on("mouseout",(function(){c.call(A,o),u.call(T,o)}))})),u.call(T,o),w?(S.w=Math.max(y.openWidth,y.headerWidth),S.h=k.y-S.t):(S.w=k.x-S.l,S.h=Math.max(y.openHeight,y.headerHeight)),S.direction=o.direction,a&&(u.size()?b(t,e,r,a,o,S):x(a))}function b(t,e,r,n,i,a){var o,s,l,c=i.direction,u="up"===c||"down"===c,p=i._dims,d=i.active;if(u)for(s=0,l=0;l<d;l++)s+=p.heights[l]+f.gapButton;else for(o=0,l=0;l<d;l++)o+=p.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1"),n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}function x(t){var e=!!t.hbar,r=!!t.vbar;e&&t.hbar.transition().attr("opacity","0").each("end",(function(){e=!1,r||t.disable()})),r&&t.vbar.transition().attr("opacity","0").each("end",(function(){r=!1,e||t.disable()}))}function _(t,e,r,n){t.call(w,e).call(k,e,r,n)}function w(t,e){s.ensureSingle(t,"rect",f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,"shape-rendering":"crispEdges"})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px")}function k(t,e,r,n){var i=s.ensureSingle(t,"text",f.itemTextClassName,(function(t){t.attr({"text-anchor":"start","data-notex":1})})),a=r.label,c=n._fullLayout._meta;c&&(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function T(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&&e.showactive&&o.select("rect."+f.itemRectClassName).call(a.fill,f.activeColor)}))}function M(t){t.select("rect."+f.itemRectClassName).call(a.fill,f.hoverColor)}function A(t,e){t.select("rect."+f.itemRectClassName).call(a.fill,e.bgcolor)}function S(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll("g."+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append("g").classed(f.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(_,e,i,t);var p=s.select("."+f.itemTextClassName),d=p.node()&&o.bBox(p.node()).width,h=Math.max(d+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(p),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),h=Math.ceil(h),r.widths[a]=h,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,h),c?(r.totalWidth=Math.max(r.totalWidth,h),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=h+f.gapButton,r.openWidth+=h+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,"dropdown"===e.type&&(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var p=r.totalWidth+e.pad.l+e.pad.r,d=r.totalHeight+e.pad.t+e.pad.b,h=t._fullLayout._size;r.lx=h.l+h.w*e.x,r.ly=h.t+h.h*(1-e.y);var g="left";s.isRightAnchor(e)&&(r.lx-=p,g="right"),s.isCenterAnchor(e)&&(r.lx-=p/2,g="center");var m="top";s.isBottomAnchor(e)&&(r.ly-=d,m="bottom"),s.isMiddleAnchor(e)&&(r.ly-=d/2,m="middle"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,E(e),{x:e.x,y:e.y,l:p*({right:1,center:.5}[g]||0),r:p*({left:1,center:.5}[g]||0),b:d*({top:1,middle:.5}[m]||0),t:d*({bottom:1,middle:.5}[m]||0)})}function E(t){return f.autoMarginIdRoot+t._index}function C(t,e,r,n){n=n||{};var i=t.select("."+f.itemRectClassName),a=t.select("."+f.itemTextClassName),s=e.borderwidth,c=r.index,p=e._dims;o.setTranslate(t,s+r.x,s+r.y);var d=-1!==["up","down"].indexOf(e.direction),h=n.height||(d?p.heights[c]:p.height1);i.attr({x:0,y:0,width:n.width||(d?p.width1:p.widths[c]),height:h});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,h/2-m+f.textOffsetY),d?r.y+=p.heights[c]+r.yPad:r.x+=p.widths[c]+r.xPad,r.index++}function O(t,e){t.attr(f.menuIndexAttrName,e||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,E(e))}var o=e._menulayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll("g."+f.headerGroupClassName).data(r,d);l.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(t){t.style("pointer-events","all")})),u=0;u<r.length;u++){var h=r[u];S(t,h)}var b="updatemenus"+e._uid,x=new p(t,c,b);l.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(O)),l.exit().each((function(t){c.call(O),a(t)})).remove(),l.each((function(e){var r=n.select(this),a="dropdown"===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){m(t,e,e.buttons[n.index],r,a,x,n.index,!0)})),"dropdown"===e.type?(v(t,r,c,x,e),g(c,e)&&y(t,r,c,x,e)):y(t,r,null,null,e)}))}}},{"../../constants/alignment":483,"../../lib":515,"../../lib/svg_text_utils":541,"../../plot_api/plot_template":555,"../../plots/plots":628,"../color":367,"../drawing":389,"./constants":478,"./scrollbox":482,"@plotly/d3":58}],481:[function(t,e,r){arguments[4][475][0].apply(r,arguments)},{"./attributes":477,"./constants":478,"./defaults":479,"./draw":480,dup:475}],482:[function(t,e,r){"use strict";e.exports=s;var n=t("@plotly/d3"),i=t("../color"),a=t("../drawing"),o=t("../../lib");function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor="#808BA4",s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,p,d,h=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,b="down"===y,x="left"===y,_="up"===y,w=g,k=v;b||x||"right"===y||_||(this.position.direction="down",b=!0),b||_?(f=(u=h)+w,b?(p=m,k=(d=Math.min(p+k,c))-p):k=(d=m+k)-(p=Math.max(d-k,0))):(d=(p=m)+k,x?w=(f=h+w)-(u=Math.max(f-w,0)):(u=h,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:p,w:w,h:k};var T=g>w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=h,E=m+v;E+A>c&&(E=c-A);var C=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(i.fill,s.barColor),T?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=v>k,L=s.barWidth+2*s.barPad,I=s.barLength+2*s.barPad,P=h+g,D=m;P+L>l&&(P=l-L);var R=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-vertical",!0).call(i.fill,s.barColor),O?(this.vbar=R.attr({rx:s.barRadius,ry:s.barRadius,x:P,y:D,width:L,height:I}),this._vbarYMin=D+I/2,this._vbarTranslateMax=k-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var z=this.id,N=u-.5,F=O?f+L+.5:f+.5,B=p-.5,j=T?d+A+.5:d+.5,U=o._topdefs.selectAll("#"+z).data(T||O?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",z).append("rect"),T||O?(this._clipRect=U.select("rect").attr({x:Math.floor(N),y:Math.floor(B),width:Math.ceil(F)-Math.floor(N),height:Math.ceil(j)-Math.floor(B)}),this.container.call(a.setClipUrl,z,this.gd),this.bg.attr({x:h,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),T||O){var V=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var H=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(H),O&&this.vbar.on(".drag",null).call(H)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=n.event.dx),this.vbar&&(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=n.event.deltaY),this.vbar&&(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{"../../lib":515,"../color":367,"../drawing":389,"@plotly/d3":58}],483:[function(t,e,r){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],484:[function(t,e,r){"use strict";e.exports={axisRefDescription:function(t,e,r){return["If set to a",t,"axis id (e.g. *"+t+"* or","*"+t+"2*), the `"+t+"` position refers to a",t,"coordinate. If set to *paper*, the `"+t+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+r+"). If set to a",t,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+t+"2 domain* refers to the domain of the second",t," axis and a",t,"position of 0.5 refers to the","point between the",e,"and the",r,"of the domain of the","second",t,"axis."].join(" ")}}},{}],485:[function(t,e,r){"use strict";e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25b2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25bc"}}},{}],486:[function(t,e,r){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},{}],487:[function(t,e,r){"use strict";e.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],488:[function(t,e,r){"use strict";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],489:[function(t,e,r){"use strict";e.exports={circle:"\u25cf","circle-open":"\u25cb",square:"\u25a0","square-open":"\u25a1",diamond:"\u25c6","diamond-open":"\u25c7",cross:"+",x:"\u274c"}},{}],490:[function(t,e,r){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],491:[function(t,e,r){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},{}],492:[function(t,e,r){"use strict";r.xmlns="http://www.w3.org/2000/xmlns/",r.svg="http://www.w3.org/2000/svg",r.xlink="http://www.w3.org/1999/xlink",r.svgAttrs={xmlns:r.svg,"xmlns:xlink":r.xlink}},{}],493:[function(t,e,r){"use strict";r.version=t("./version").version,t("native-promise-only"),t("../build/plotcss");for(var n=t("./registry"),i=r.register=n.register,a=t("./plot_api"),o=Object.keys(a),s=0;s<o.length;s++){var l=o[s];"_"!==l.charAt(0)&&(r[l]=a[l]),i({moduleType:"apiMethod",name:l,fn:a[l]})}i(t("./traces/scatter")),i([t("./components/legend"),t("./components/fx"),t("./components/annotations"),t("./components/annotations3d"),t("./components/selections"),t("./components/shapes"),t("./components/images"),t("./components/updatemenus"),t("./components/sliders"),t("./components/rangeslider"),t("./components/rangeselector"),t("./components/grid"),t("./components/errorbars"),t("./components/colorscale"),t("./components/colorbar"),t("./components/modebar")]),i([t("./locale-en"),t("./locale-en-us")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t("./fonts/ploticon");var c=t("./components/fx"),u=t("./plots/plots");r.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},r.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},r.Snapshot=t("./snapshot"),r.PlotSchema=t("./plot_api/plot_schema")},{"../build/plotcss":1,"./components/annotations":358,"./components/annotations3d":363,"./components/colorbar":373,"./components/colorscale":379,"./components/errorbars":395,"./components/fx":407,"./components/grid":411,"./components/images":416,"./components/legend":424,"./components/modebar":430,"./components/rangeselector":438,"./components/rangeslider":445,"./components/selections":455,"./components/shapes":470,"./components/sliders":475,"./components/updatemenus":481,"./fonts/ploticon":494,"./locale-en":546,"./locale-en-us":545,"./plot_api":550,"./plot_api/plot_schema":554,"./plots/plots":628,"./registry":647,"./snapshot":652,"./traces/scatter":948,"./version":1132,"native-promise-only":245}],494:[function(t,e,r){"use strict";e.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},{}],495:[function(t,e,r){"use strict";r.isLeftAnchor=function(t){return"left"===t.xanchor||"auto"===t.xanchor&&t.x<=1/3},r.isCenterAnchor=function(t){return"center"===t.xanchor||"auto"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isRightAnchor=function(t){return"right"===t.xanchor||"auto"===t.xanchor&&t.x>=2/3},r.isTopAnchor=function(t){return"top"===t.yanchor||"auto"===t.yanchor&&t.y>=2/3},r.isMiddleAnchor=function(t){return"middle"===t.yanchor||"auto"===t.yanchor&&t.y>1/3&&t.y<2/3},r.isBottomAnchor=function(t){return"bottom"===t.yanchor||"auto"===t.yanchor&&t.y<=1/3}},{}],496:[function(t,e,r){"use strict";var n=t("./mod"),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return t/180*o}function c(t){return t/o*180}function u(t){return Math.abs(t[1]-t[0])>s-1e-14}function f(t,e){return a(e-t,s)}function p(t,e){return Math.abs(f(t,e))}function d(t,e){if(u(e))return!0;var r,n;e[0](n=i(n,s))&&(n+=s);var a=i(t,s),o=a+s;return a>=r&&a<=n||o>=r&&o<=n}function h(t,e,r,n){return!!d(e,n)&&(r[0]=i&&t<=a);var i,a}function g(t,e,r,n,i,a,l){i=i||0,a=a||0;var c,f,p,d,h,g=u([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(c=0,f=o,p=s):ri.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&&ti.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if("string"!==typeof t){var i="number"===typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){function n(t){return i(t).isValid()}Array.isArray(t)&&t.length&&t.every(n)?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){"auto"===t?e.set("auto"):n(t)?e.set(f(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||u(r);"string"===typeof t&&i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||"string"===typeof t&&!!u(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(-1===(n.extras||[]).indexOf(t))if("string"===typeof t){for(var i=t.split("+"),a=0;a=n&&t<=i?t:u}if("string"!==typeof t&&"number"!==typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||"G"!==v&&"g"!==v||(t=t.substr(1),e="");var w=c&&"chinese"===e.substr(0,7),k=t.match(w?b:y);if(!k)return u;var T=k[1],M=k[3]||"1",A=Number(k[5]||1),S=Number(k[7]||0),E=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===T.length)return u;var O;T=Number(T);try{var L=m.getComponentMethod("calendars","getCal")(e);if(w){var I="i"===M.charAt(M.length-1);M=parseInt(M,10),O=L.newDate(T,L.toMonthIndex(T,M,I),A)}else O=L.newDate(T,Number(M),A)}catch(D){return u}return O?(O.toJD()-g)*f+S*p+E*d+C*h:u}T=2===T.length?(Number(T)+2e3-x)%100+x:Number(T),M-=1;var P=new Date(Date.UTC(2e3,M,A,S,E));return P.setUTCFullYear(T),P.getUTCMonth()!==M||P.getUTCDate()!==A?u:P.getTime()+C*h},n=r.MIN_MS=r.dateTime2ms("-9999"),i=r.MAX_MS=r.dateTime2ms("9999-12-31 23:59:59.9999"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,M=3*p,A=5*d;function S(t,e,r,n,i){if((e||r||n||i)&&(t+=" "+k(e,2)+":"+k(r,2),(n||i)&&(t+=":"+k(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;t+="."+k(i,a)}return t}r.ms2DateTime=function(t,e,r){if("number"!==typeof t||!(t>=n&&t<=i))return u;e||(e=0);var a,o,s,c,y,b,x=Math.floor(10*l(t+.05,1)),w=Math.round(t-x/10);if(_(r)){var k=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod("calendars","getCal")(r).fromJD(k).formatDate("yyyy-mm-dd")}catch(C){a=v("G%Y-%m-%d")(new Date(w))}if("-"===a.charAt(0))for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=e=n+f&&t<=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return S(a("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||"number"===typeof t&&isFinite(t)){if(_(n))return s.error("JS Dates and milliseconds are incompatible with world calendars",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error("unrecognized date",t),e;return t};var E=/%\d?f/g,C=/%h/g,O={1:"1",2:"1",3:"2",4:"2"};function L(t,e,r,n){t=t.replace(E,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var i=new Date(Math.floor(e+.05));if(t=t.replace(C,(function(){return O[r("%q")(i)]})),_(n))try{t=m.getComponentMethod("calendars","worldCalFmt")(t,e,n)}catch(a){return"Invalid"}return r(t)(i)}var I=[59,59.9,59.99,59.999,59.9999];function P(t,e){var r=l(t+.05,f),n=k(Math.floor(r/p),2)+":"+k(l(Math.floor(r/d),60),2);if("M"!==e){o(e)||(e=0);var i=(100+Math.min(l(t/h,60),I[e])).toFixed(e).substr(1);e>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&&i,!e)if("y"===r)e=a.year;else if("m"===r)e=a.month;else{if("d"!==r)return P(t,r)+"\n"+L(a.dayMonthYear,t,n,i);e=a.dayMonth+"\n"+a.year}return L(e,t,n,i)};var D=3*f;r.incrementMonth=function(t,e,r){r=_(r)&&r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return e%12?a.add(o,e,"m"):a.add(o,e/12,"y"),(o.toJD()-g)*f+n}catch(u){s.error("invalid ms "+t+" in calendar "+r)}var c=new Date(t+D);return c.setUTCMonth(c.getUTCMonth()+e)+n-D},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&&m.getComponentMethod("calendars","getCal")(e),u=0;u0&&t[e+1][0]<0)return e;return null}switch(e="RUS"===s||"FJI"===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;ie?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=p.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(p.tester(t))},a.type){case"MultiPolygon":for(r=0;ri&&(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}function _(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL "'+t+'" does not exist.':"Unexpected error while fetching from "+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&&"pending"!==e[t]?(clearInterval(a),r(e[t])):i>100?(clearInterval(a),n("Unexpected error while fetching from "+t)):void i++}),50)}))}for(var o=0;o0&&(r.push(i),i=[])}return i.length>0&&r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:"Polygon",coordinates:t};for(var e=new Array(t.length),r=0;r1||g<0||g>1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,p=o-i,d=c-a,h=u*u+f*f,g=p*p+d*d,m=Math.min(l(u,f,h,i-t,a-e),l(u,f,h,o-t,c-e),l(p,d,g,t-i,e-a),l(p,d,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&&s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),p={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=p,p},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function p(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&&(i=r);var c=r.xo?r.x-o:0,f=r.yl?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var d=p(c);d;){if((c+=d+r)>f)return;d=p(c)}for(d=p(f);d;){if(c>(f-=d+r))return;d=p(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-i.x)<.1&&Math.abs(n.y-i.y)<.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]>t.getPointAtLength(s)[r]?-1:1,f=0,p=0,d=s;f0?d=i:p=i,f++}return a}},{"./mod":522}],511:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("tinycolor2"),a=t("color-normalize"),o=t("../components/colorscale"),s=t("../components/color/attributes").defaultLine,l=t("./array").isArrayOrTypedArray,c=a(s),u=1;function f(t,e){var r=t;return r[3]*=e,r}function p(t){if(n(t))return c;var e=a(t);return e.length?e:c}function d(t){return n(t)?t:u}function h(t,e,r){var n,i,s,h,g,m=t.color,v=l(m),y=l(e),b=o.extractOpts(t),x=[];if(n=void 0!==b.colorscale?o.makeColorScaleFuncFromTrace(t):p,i=v?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:p,s=y?function(t,e){return void 0===t[e]?u:d(t[e])}:d,v||y)for(var _=0;_1?(r*t+r*e)/r:t+e,i=String(n).length;if(i>16){var a=String(e).length;if(i>=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},{}],515:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-time-format").utcFormat,a=t("d3-format").format,o=t("fast-isnumeric"),s=t("../constants/numerical"),l=s.FP_SAFE,c=-l,u=s.BADNUM,f=e.exports={};f.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:"0.f"===t?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var p={};f.warnBadFormat=function(t){var e=String(t);p[e]||(p[e]=1,f.warn('encountered bad format: "'+e+'"'))},f.noFormat=function(t){return String(t)},f.numberFormat=function(t){var e;try{e=a(f.adjustFormat(t))}catch(r){return f.warnBadFormat(t),f.noFormat}return e},f.nestedProperty=t("./nested_property"),f.keyedContainer=t("./keyed_container"),f.relativeAttr=t("./relative_attr"),f.isPlainObject=t("./is_plain_object"),f.toLogRange=t("./to_log_range"),f.relinkPrivateKeys=t("./relink_private");var d=t("./array");f.isTypedArray=d.isTypedArray,f.isArrayOrTypedArray=d.isArrayOrTypedArray,f.isArray1D=d.isArray1D,f.ensureArray=d.ensureArray,f.concat=d.concat,f.maxRowLength=d.maxRowLength,f.minRowLength=d.minRowLength;var h=t("./mod");f.mod=h.mod,f.modHalf=h.modHalf;var g=t("./coerce");f.valObjectMeta=g.valObjectMeta,f.coerce=g.coerce,f.coerce2=g.coerce2,f.coerceFont=g.coerceFont,f.coercePattern=g.coercePattern,f.coerceHoverinfo=g.coerceHoverinfo,f.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,f.validate=g.validate;var m=t("./dates");f.dateTime2ms=m.dateTime2ms,f.isDateTime=m.isDateTime,f.ms2DateTime=m.ms2DateTime,f.ms2DateTimeLocal=m.ms2DateTimeLocal,f.cleanDate=m.cleanDate,f.isJSDate=m.isJSDate,f.formatDate=m.formatDate,f.incrementMonth=m.incrementMonth,f.dateTick0=m.dateTick0,f.dfltRange=m.dfltRange,f.findExactDates=m.findExactDates,f.MIN_MS=m.MIN_MS,f.MAX_MS=m.MAX_MS;var v=t("./search");f.findBin=v.findBin,f.sorterAsc=v.sorterAsc,f.sorterDes=v.sorterDes,f.distinctVals=v.distinctVals,f.roundUp=v.roundUp,f.sort=v.sort,f.findIndexOfMin=v.findIndexOfMin,f.sortObjectKeys=t("./sort_object_keys");var y=t("./stats");f.aggNums=y.aggNums,f.len=y.len,f.mean=y.mean,f.median=y.median,f.midRange=y.midRange,f.variance=y.variance,f.stdev=y.stdev,f.interp=y.interp;var b=t("./matrix");f.init2dArray=b.init2dArray,f.transposeRagged=b.transposeRagged,f.dot=b.dot,f.translationMatrix=b.translationMatrix,f.rotationMatrix=b.rotationMatrix,f.rotationXYMatrix=b.rotationXYMatrix,f.apply3DTransform=b.apply3DTransform,f.apply2DTransform=b.apply2DTransform,f.apply2DTransform2=b.apply2DTransform2,f.convertCssMatrix=b.convertCssMatrix,f.inverseTransformMatrix=b.inverseTransformMatrix;var x=t("./angles");f.deg2rad=x.deg2rad,f.rad2deg=x.rad2deg,f.angleDelta=x.angleDelta,f.angleDist=x.angleDist,f.isFullCircle=x.isFullCircle,f.isAngleInsideSector=x.isAngleInsideSector,f.isPtInsideSector=x.isPtInsideSector,f.pathArc=x.pathArc,f.pathSector=x.pathSector,f.pathAnnulus=x.pathAnnulus;var _=t("./anchor_utils");f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=t("./geometry2d");f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var k=t("./extend");f.extendFlat=k.extendFlat,f.extendDeep=k.extendDeep,f.extendDeepAll=k.extendDeepAll,f.extendDeepNoArrays=k.extendDeepNoArrays;var T=t("./loggers");f.log=T.log,f.warn=T.warn,f.error=T.error;var M=t("./regex");f.counterRegex=M.counter;var A=t("./throttle");f.throttle=A.throttle,f.throttleDone=A.done,f.clearThrottle=A.clear;var S=t("./dom");function E(t){var e={};for(var r in t)for(var n=t[r],i=0;il||t=e)&&o(t)&&t>=0&&t%1===0},f.noop=t("./noop"),f.identity=t("./identity"),f.repeat=function(t,e){for(var r=new Array(e),n=0;nr?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},f.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},f.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(f.warn("randstr failed uniqueness"),l):t(e,r,n,(i||0)+1):l},f.OptionControl=function(t,e){t||(t={}),e||(e="opt");var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r["_"+e]=t,r},f.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},f.syncOrAsync=function(t,e,r){var n;function i(){return f.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&&n.then)return n.then(i);return r&&r(e)},f.stripTrailingSlash=function(t){return"/"===t.substr(-1)?t.substr(0,t.length-1):t},f.noneOrAll=function(t,e,r){if(t){var n,i,a=!1,o=!0;for(n=0;n0?e:0}))},f.fillArray=function(t,e,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(t))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var D=/^\w*$/;f.templateString=function(t,e){var r={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,n){var i;return D.test(n)?i=e[n]:(r[n]=r[n]||f.nestedProperty(e,n).get,i=r[n]()),f.isValidTextValue(i)?i:""}))};var R={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return F.apply(R,arguments)};var z={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return F.apply(z,arguments)};var N=/^[:|\|]/;function F(t,e,r){var n=this,a=arguments;e||(e={});var o={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,s,l){var c,u,p,d="_xother"===s||"_yother"===s,h="_xother_"===s||"_yother_"===s,g="xother_"===s||"yother_"===s,m="xother"===s||"yother"===s||d||g||h,v=s;if((d||h)&&(v=v.substring(1)),(g||h)&&(v=v.substring(0,v.length-1)),m){if(void 0===(c=e[v]))return""}else for(p=3;p=B&&o<=j,c=s>=B&&s<=j;if(l&&(n=10*n+o-B),c&&(i=10*i+s-B),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var U=2e9;f.seedPseudoRandom=function(){U=2e9},f.pseudoRandom=function(){var t=U;return U=(69069*U+1)%4294967296,Math.abs(U-t)<429496729?f.pseudoRandom():U/4294967296},f.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=f.extractOption(t,e,"htx","hovertext");if(f.isValidTextValue(i))return n(i);var a=f.extractOption(t,e,"tx","text");return f.isValidTextValue(a)?n(a):void 0},f.isValidTextValue=function(t){return t||0===t},f.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+"%",n=0;n1&&(c=1):c=0,f.strTranslate(i-c*(r+o),a-c*(n+s))+f.strScale(c)+(l?"rotate("+l+(e?"":" "+r+" "+n)+")":"")},f.setTransormAndDisplay=function(t,e){t.attr("transform",f.getTextTransform(e)),t.style("display",e.scale?null:"none")},f.ensureUniformFontSize=function(t,e){var r=f.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},f.join2=function(t,e,r){var n=t.length;return n>1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)},f.bigFont=function(t){return Math.round(1.2*t)};var V=f.getFirefoxVersion(),H=null!==V&&V<86;f.getPositionFromD3Event=function(){return H?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{"../constants/numerical":491,"./anchor_utils":495,"./angles":496,"./array":497,"./clean_number":498,"./clear_responsive":500,"./coerce":501,"./dates":502,"./dom":503,"./extend":505,"./filter_unique":506,"./filter_visible":507,"./geometry2d":510,"./identity":513,"./increment":514,"./is_plain_object":516,"./keyed_container":517,"./localize":518,"./loggers":519,"./make_trace_groups":520,"./matrix":521,"./mod":522,"./nested_property":523,"./noop":524,"./notifier":525,"./preserve_drawing_buffer":529,"./push_unique":530,"./regex":532,"./relative_attr":533,"./relink_private":534,"./search":535,"./sort_object_keys":538,"./stats":539,"./throttle":542,"./to_log_range":543,"@plotly/d3":58,"d3-format":112,"d3-time-format":120,"fast-isnumeric":190}],516:[function(t,e,r){"use strict";e.exports=function(t){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(t):"[object Object]"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}},{}],517:[function(t,e,r){"use strict";var n=t("./nested_property"),i=/^\w*$/,a=0,o=1,s=2,l=3,c=4;e.exports=function(t,e,r,u){var f,p,d;r=r||"name",u=u||"value";var h={};e&&e.length?(d=n(t,e),p=d.get()):p=t,e=e||"";var g={};if(p)for(f=0;f2)return h[e]=h[e]|s,v.set(t,null);if(m){for(f=e;f1){var e=["LOG:"];for(t=0;t1){var r=[];for(t=0;t"),"long")}},a.warn=function(){var t;if(n.logging>0){var e=["WARN:"];for(t=0;t0){var r=[];for(t=0;t"),"stick")}},a.error=function(){var t;if(n.logging>0){var e=["ERROR:"];for(t=0;t0){var r=[];for(t=0;t"),"stick")}}},{"../plot_api/plot_config":553,"./notifier":525}],520:[function(t,e,r){"use strict";var n=t("@plotly/d3");e.exports=function(t,e,r){var i=t.selectAll("g."+r.replace(/\s/g,".")).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append("g").attr("class",r),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each((function(t){t[0][a]=n.select(this)})),i}},{"@plotly/d3":58}],521:[function(t,e,r){"use strict";var n=t("gl-mat4");r.init2dArray=function(t,e){for(var r=new Array(t),n=0;ne/2?t-Math.round(t/e)*e:t}e.exports={mod:n,modHalf:i}},{}],523:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("./array").isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s/g),l=0;la||c===i||cs)&&(!e||!l(t))}function f(t,e){var l=t[0],c=t[1];if(l===i||la||c===i||cs)return!1;var u,f,p,d,h,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;uMath.max(f,m)||c>Math.max(p,v)))if(cu||Math.abs(n(o,p))>i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c1&&o(t.pop()),{addPt:o,raw:t,filtered:r}}},{"../constants/numerical":491,"./matrix":521}],528:[function(t,e,n){(function(r){(function(){"use strict";var n=t("./show_no_webgl_msg"),i=t("regl");e.exports=function(t,e,a){var o=t._fullLayout,s=!0;return o._glcanvas.each((function(n){if(n.regl)n.regl.preloadCachedCode(a);else if(!n.pick||o._has("parcoords")){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[],cachedCode:a||{}})}catch(l){s=!1}n.regl||(s=!1),s&&this.addEventListener("webglcontextlost",(function(e){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:e,layer:n.key})}),!1)}})),s||n({container:o._glcontainer.node()}),s}}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./show_no_webgl_msg":537,regl:284}],529:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("is-mobile");function a(){var t;return"undefined"!==typeof navigator&&(t=navigator.userAgent),t&&t.headers&&"string"===typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),t}e.exports=function(t){var e;if("string"!==typeof(e=t&&t.hasOwnProperty("userAgent")?t.userAgent:a()))return!0;var r=i({ua:{headers:{"user-agent":e}},tablet:!0,featureDetect:!1});if(!r)for(var o=e.split(" "),s=1;s-1;l--){var c=o[l];if("Version/"===c.substr(0,8)){var u=c.substr(8).split(".")[0];if(n(u)&&(u=+u),u>=13)return!0}}return r}},{"fast-isnumeric":190,"is-mobile":234}],530:[function(t,e,r){"use strict";e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;ni.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;re}function f(t,e){return t>=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-s)-1:Math.floor((t-e.start)/e.size+s);var a,o,p=0,d=e.length,h=0,g=d>1?(e[d-1]-e[0])/(d-1):1;for(o=g>=0?r?l:c:r?f:u,t+=g*s*(r?-1:1)*(g>=0?1:-1);p90&&i.log("Long binary search..."),p-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e,n=t.slice();for(n.sort(r.sorterAsc),e=n.length-1;e>-1&&n[e]===o;e--);for(var i,a=n[e]-n[0]||1,s=a/(e||1)/1e4,l=[],c=0;c<=e;c++){var u=n[c],f=u-i;void 0===i?(l.push(u),i=u):f>s&&(a=Math.min(a,f),l.push(u),i=u)}return{vals:l,minDiff:a}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i0&&(n=1),r&&n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;ia.length)&&(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;st.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{"./array":497,"fast-isnumeric":190}],540:[function(t,e,r){"use strict";var n=t("color-normalize");function i(t){return t?n(t):[0,0,0,1]}e.exports=i},{"color-normalize":89}],541:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../lib"),a=i.strTranslate,o=t("../constants/xmlns_namespaces"),s=t("../constants/alignment").LINE_SPACING,l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,i){var o=t.text(),s=!t.attr("data-notex")&&e&&e._context.typesetMath&&"undefined"!==typeof MathJax&&o.match(l),c=n.select(t.node().parentNode);if(!c.empty()){var u=t.attr("class")?t.attr("class").split(" ")[0]:"text";return u+="-math",c.selectAll("svg."+u).remove(),c.selectAll("g."+u+"-group").remove(),t.style("display",null).attr({"data-unformatted":o,"data-math":"N"}),s?(e&&e._promises||[]).push(new Promise((function(e){t.style("display","none");var r=parseInt(t.node().style.fontSize,10),n={fontSize:r};d(s[2],n,(function(n,s,l){c.selectAll("svg."+u).remove(),c.selectAll("g."+u+"-group").remove();var p=n&&n.select("svg");if(!p||!p.node())return f(),void e();var d=c.append("g").classed(u+"-group",!0).attr({"pointer-events":"none","data-unformatted":o,"data-math":"Y"});d.node().appendChild(p.node()),s&&s.node()&&p.node().insertBefore(s.node().cloneNode(!0),p.node().firstChild);var h=l.width,g=l.height;p.attr({class:u,height:g,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var m=t.node().style.fill||"black",v=p.select("g");v.attr({fill:m,stroke:m});var y=v.node().getBoundingClientRect(),b=y.width,x=y.height;(b>h||x>g)&&(p.style("overflow","hidden"),b=(y=p.node().getBoundingClientRect()).width,x=y.height);var _=+t.attr("x"),w=+t.attr("y"),k=-(r||t.node().getBoundingClientRect().height)/4;if("y"===u[0])d.attr({transform:"rotate("+[-90,_,w]+")"+a(-b/2,k-x/2)});else if("l"===u[0])w=k-x/2;else if("a"===u[0]&&0!==u.indexOf("atitle"))_=0,w=k;else{var T=t.attr("text-anchor");_-=b*("middle"===T?.5:"end"===T?1:0),w=w+k-x/2}p.attr({x:_,y:w}),i&&i.call(t,d),e(d)}))}))):f(),t}function f(){c.empty()||(u=t.attr("class")+"-math",c.select("svg."+u).remove()),t.text("").style("white-space","pre"),P(t.node(),o)&&t.style("pointer-events","all"),r.positionText(t),i&&i.call(t)}};var c=/(<|<|<)/g,u=/(>|>|>)/g;function f(t){return t.replace(c,"\\lt ").replace(u,"\\gt ")}var p=[["$","$"],["\\(","\\)"]];function d(t,e,r){var a=parseInt((MathJax.version||"").split(".")[0]);if(2===a||3===a){var o,s,l,c,u=function(){return s=i.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:p},displayAlign:"left"})},d=function(){s=i.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=p},h=function(){if("SVG"!==(o=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")},g=function(){"svg"!==(o=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg")},m=function(){var r="math-output-"+i.randstr({},64),o=(c=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute","font-size":e.fontSize+"px"}).text(f(t))).node();return 2===a?MathJax.Hub.Typeset(o):MathJax.typeset([o])},v=function(){var e=c.select(2===a?".MathJax_SVG":".MathJax"),o=!e.empty()&&c.select("svg").node();if(o){var s,l=o.getBoundingClientRect();s=2===a?n.select("body").select("#MathJax_SVG_glyphs"):e.select("defs"),r(e,s,l)}else i.log("There was an error in the tex syntax.",t),r();c.remove()},y=function(){if("SVG"!==o)return MathJax.Hub.setRenderer(o)},b=function(){"svg"!==o&&(MathJax.config.startup.output=o)},x=function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},_=function(){MathJax.config=s};2===a?MathJax.Hub.Queue(u,h,m,v,y,x):3===a&&(d(),g(),MathJax.startup.defaultReady(),MathJax.startup.promise.then((function(){m(),v(),b(),_()})))}else i.warn("No MathJax version:",MathJax.version)}var h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},m={sub:"-0.21em",sup:"0.42em"},v="\u200b",y=["http:","https:","mailto:","",void 0,":"],b=r.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,_=/<(\/?)([^ >]*)(\s+(.*))?>/i,w=//i;r.BR_TAG_ALL=//gi;var k=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,T=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,M=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,A=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function S(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&L(n)}var E=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&&-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:["br"],i="...",a=i.length,o=t.split(x),s=[],l="",c=0,u=0;ua?s.push(f.substr(0,g-a)+i):s.push(f.substr(0,g));break}l=""}}return s.join("")};var C={mu:"\u03bc",amp:"&",lt:"<",gt:">",nbsp:"\xa0",times:"\xd7",plusmn:"\xb1",deg:"\xb0"},O=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L(t){return t.replace(O,(function(t,e){return("#"===e.charAt(0)?I("x"===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):C[e])||t}))}function I(t){if(!(t>1114111)){var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t<=65535?r(t):r(55232+(t>>10),t%1024+56320)}}function P(t,e){e=e.replace(b," ");var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,"tspan");n.select(e).attr({class:"line",dy:c*s+"em"}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length>1)for(var a=1;a doesnt match end tag <"+t+">. Pretending it did match.",e),r=l[l.length-1].node}else i.log("Ignoring unexpected end tag .",e)}w.test(e)?u():(r=t,l=[{node:t}]);for(var y=e.split(x),C=0;Ca.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&&e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],543:[function(t,e,r){"use strict";var n=t("fast-isnumeric");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{"fast-isnumeric":190}],544:[function(t,e,r){"use strict";var n=e.exports={},i=t("../plots/geo/constants").locationmodeToLayer,a=t("topojson-client").feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,"-"),"_",t.resolution.toString(),"m"].join("")},n.getTopojsonPath=function(t,e){return t+e+".json"},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{"../plots/geo/constants":596,"topojson-client":316}],545:[function(t,e,r){"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],546:[function(t,e,r){"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],547:[function(t,e,r){"use strict";var n=t("../registry");e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split("[")[0],s=0;s0&&o.log("Clearing previous rejected promises from queue."),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,p=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),h(t),"rotate"===t.dragmode&&(t.dragmode="orbit"),c.clean(t),t.template&&t.template.layout&&r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=x(e);r;){if(r in t)return!0;r=x(r)}return!1};var _=["x","y","z"];r.clearAxisTypes=function(t,e,r){for(var n=0;n1&&a.warn("Full array edits are incompatible with other edits",f);var y=r[""][""];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn("Unrecognized full array edit value",f,y),!0;e.set(y)}return!g&&(p(m,v),d(t),!0)}var b,x,_,w,k,T,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],O=u(v,f).get(),L=[],I=-1,P=C.length;for(b=0;bC.length-(M?0:1))a.warn("index out of range",f,_);else if(void 0!==T)k.length>1&&a.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(T)?L.push(_):M?("add"===T&&(T={}),C.splice(_,0,T),O&&O.splice(_,0,{})):a.warn("Unrecognized full object edit value",f,_,T),-1===I&&(I=_);else for(x=0;x=0;b--)C.splice(L[b],1),O&&O.splice(L[b],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(p(m,v),h!==i){var D;if(-1===I)D=S;else{for(P=Math.max(C.length,P),D=[],b=0;b=I);b++)D.push(_);for(b=I;b=t.data.length||i<-t.data.length)throw new Error(r+" must be valid indices for gd.data.");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function N(t,e,r){if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if("undefined"===typeof e)throw new Error("currentIndices is a required argument.");if(Array.isArray(e)||(e=[e]),z(t,e,"currentIndices"),"undefined"===typeof r||Array.isArray(r)||(r=[r]),"undefined"!==typeof r&&z(t,r,"newIndices"),"undefined"!==typeof r&&e.length!==r.length)throw new Error("current and new indices must be of equal length.")}function F(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if("undefined"===typeof e)throw new Error("traces must be defined.");for(Array.isArray(e)||(e=[e]),n=0;n=0&&r=0&&r-1&&-1===r.indexOf("grouptitlefont")?l(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?l(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?l(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&l(r,r.replace("titleoffset","title.offset")):l(r,r.replace("title","title.text"));function l(e,r){t[r]=t[e],delete t[e]}}function et(t,e,r){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var n={};if("string"===typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn("Relayout fail.",e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&&(t.changed=!0);var i=st(t,n),a=i.flags;a.calc&&(t.calcdata=void 0);var s=[p.previousPromises];a.layoutReplot?s.push(w.layoutReplot):Object.keys(n).length&&(rt(t,a,i)||p.supplyDefaults(t),a.legend&&s.push(w.doLegend),a.layoutstyle&&s.push(w.layoutStyles),a.axrange&&nt(s,i.rangesAltered),a.ticks&&s.push(w.doTicksRelayout),a.modebar&&s.push(w.doModeBar),a.camera&&s.push(w.doCamera),a.colorbars&&s.push(w.doColorBars),s.push(E)),s.push(p.rehover,p.redrag,p.reselect),c.add(t,et,[t,i.undoit],et,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&&l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit("plotly_relayout",i.eventData),t}))}function rt(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if("axrange"!==i&&e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&&(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function nt(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||"").indexOf("inside")&&a._anchorAxis&&r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,"redraw")};t.push(y,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var it=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,at=/^[xyz]axis[0-9]*\.autorange$/,ot=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function st(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,p=K(l._preGUI,c),h=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(tt(e),h=Object.keys(e),n=0;n0&&"string"!==typeof P.parts[R];)R--;var z=P.parts[R],N=P.parts[R-1]+"."+z,F=P.parts.slice(0,R).join("."),B=s(t.layout,F).get(),j=s(l,F).get(),U=P.get();if(void 0!==D){A[I]=D,S[I]="reverse"===z?D:Z(U);var V=f.getLayoutValObject(l,P.parts);if(V&&V.impliedEdits&&null!==D)for(var H in V.impliedEdits)E(o.relativeAttr(I,H),V.impliedEdits[H]);if(-1!==["width","height"].indexOf(I))if(D){E("autosize",null);var q="height"===I?"width":"height";E(q,l[q])}else l[I]=t._initialAutoSize[I];else if("autosize"===I)E("width",D?null:l.width),E("height",D?null:l.height);else if(N.match(it))L(N),s(l,F+"._inputRange").set(null);else if(N.match(at)){L(N),s(l,F+"._inputRange").set(null);var G=s(l,F).get();G._inputDomain&&(G._input.domain=G._inputDomain.slice())}else N.match(ot)&&s(l,F+"._inputDomain").set(null);if("type"===z){C=B;var W="linear"===j.type&&"log"===D,Y="log"===j.type&&"linear"===D;if(W||Y){if(C&&C.range)if(j.autorange)W&&(C.range=C.range[1]>C.range[0]?[1,2]:[2,1]);else{var X=C.range[0],J=C.range[1];W?(X<=0&&J<=0&&E(F+".autorange",!0),X<=0?X=J/1e6:J<=0&&(J=X/1e6),E(F+".range[0]",Math.log(X)/Math.LN10),E(F+".range[1]",Math.log(J)/Math.LN10)):(E(F+".range[0]",Math.pow(10,X)),E(F+".range[1]",Math.pow(10,J)))}else E(F+".autorange",!0);Array.isArray(l._subplots.polar)&&l._subplots.polar.length&&l[P.parts[0]]&&"radialaxis"===P.parts[1]&&delete l[P.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(t,j,D,E),u.getComponentMethod("images","convertCoords")(t,j,D,E)}else E(F+".autorange",!0),E(F+".range",null);s(l,F+"._inputRange").set(null)}else if(z.match(T)){var $=s(l,I).get(),Q=(D||{}).type;Q&&"-"!==Q||(Q="linear"),u.getComponentMethod("annotations","convertCoords")(t,$,Q,E),u.getComponentMethod("images","convertCoords")(t,$,Q,E)}var et=x.containerArrayMatch(I);if(et){r=et.array,n=et.index;var rt=et.property,nt=V||{editType:"calc"};""!==n&&""===rt&&(x.isAddVal(D)?S[I]=null:x.isRemoveVal(D)?S[I]=(s(a,r).get()||[])[n]:o.warn("unrecognized full object value",e)),k.update(M,nt),v[r]||(v[r]={});var st=v[r][n];st||(st=v[r][n]={}),st[rt]=D,delete e[I]}else"reverse"===z?(B.range?B.range.reverse():(E(F+".autorange",!0),B.range=[1,0]),j.autorange?M.calc=!0:M.plot=!0):("dragmode"===I&&(!1===D&&!1!==U||!1!==D&&!1===U)||l._has("scatter-like")&&l._has("regl")&&"dragmode"===I&&("lasso"===D||"select"===D)&&"lasso"!==U&&"select"!==U||l._has("gl2d")?M.plot=!0:V?k.update(M,V):M.calc=!0,P.set(D))}}for(r in v)x.applyContainerArrayChanges(t,p(a,r),v[r],M,p)||(M.plot=!0);for(var ct in O){var ut=(C=d.getFromId(t,ct))&&C._constraintGroup;if(ut)for(var ft in M.calc=!0,ut)O[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(lt(t)||e.height||e.width)&&(M.plot=!0),(M.plot||M.calc)&&(M.layoutReplot=!0),{flags:M,rangesAltered:O,undoit:S,redoit:A,eventData:m}}function lt(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&&p.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function ct(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t),o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&&(t.changed=!0),Object.keys(n).length&&(t.changed=!0);var a=_.coerceTraceIndices(t,i),s=Q(t,o.extendFlat({},e),a),l=s.flags,u=st(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&&(t.calcdata=void 0),l.clearAxisTypes&&_.clearAxisTypes(t,a,n);var d=[];f.layoutReplot?d.push(w.layoutReplot):l.fullReplot?d.push(r._doPlot):(d.push(p.previousPromises),rt(t,f,u)||p.supplyDefaults(t),l.style&&d.push(w.doTraceStyle),(l.colorbars||f.colorbars)&&d.push(w.doColorBars),f.legend&&d.push(w.doLegend),f.layoutstyle&&d.push(w.layoutStyles),f.axrange&&nt(d,u.rangesAltered),f.ticks&&d.push(w.doTicksRelayout),f.modebar&&d.push(w.doModeBar),f.camera&&d.push(w.doCamera),d.push(E)),d.push(p.rehover,p.redrag,p.reselect),c.add(t,ct,[t,s.undoit,u.undoit,s.traces],ct,[t,s.redoit,u.redoit,s.traces]);var h=o.syncOrAsync(d,t);return h&&h.then||(h=Promise.resolve(t)),h.then((function(){return t.emit("plotly_update",{data:s.eventData,layout:u.eventData}),t}))}function ut(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var ft=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],pt=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function dt(t,e){for(var r=0;r1;)if(n.pop(),void 0!==(r=s(e,n.join(".")+".uirevision").get()))return r;return e.uirevision}function gt(t,e){for(var r=0;r=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t>=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&&++r===e)return t()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&&e.onInterrupt()}t.emit("plotly_animationinterrupted",[])}}function d(e){if(0!==e.length){for(var i=0;in._timeToNext&&g()}()}var v,y,b=0;function x(t){return Array.isArray(i)?b>=i.length?t.transitionOpts=i[b]:t.transitionOpts=i[0]:t.transitionOpts=i,b++,t}var w=[],k=void 0===e||null===e,T=Array.isArray(e);if(k||T||!o.isPlainObject(e)){if(k||-1!==["string","number"].indexOf(typeof e))for(v=0;v0&&SS)&&E.push(y);w=E}}w.length>0?d(w):(t.emit("plotly_animated"),a())}))}function Mt(t,e,r){if(t=o.getGraphDiv(t),null===e||void 0===e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error("This element is not a Plotly plot: "+t+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+e);var f=l.length+2*e.length,d=[],h={};for(n=e.length-1;n>=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||h[g]||{}).name,v=e[n].name,y=u[m]||h[m];m&&v&&"number"===typeof v&&y&&Me.index?-1:t.index=0;n--){if("number"===typeof(i=d[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+t._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=e[r],a.push({type:"delete",index:n}),s.unshift({type:"insert",index:n,value:i[n]});var l=p.modifyFrames,u=p.modifyFrames,f=[t,s],d=[t,a];return c&&c.add(t,l,f,u,d),p.modifyFrames(t,a)}function St(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return p.cleanPlot([],{},r,e),p.purge(t),l.purge(t),e._container&&e._container.remove(),delete t._context,t}function Et(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function Ct(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=Et,r._calcInverseTransform(t),r._container=e.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};n.selectAll("defs").each((function(){this.id&&(i[this.id.split("-")[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(v.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),t.emit("plotly_framework")}r.animate=Tt,r.addFrames=Mt,r.deleteFrames=At,r.addTraces=G,r.deleteTraces=W,r.extendTraces=H,r.moveTraces=Y,r.prependTraces=q,r.newPlot=D,r._doPlot=S,r.purge=St,r.react=bt,r.redraw=P,r.relayout=et,r.restyle=X,r.setPlotConfig=C,r.update=ct,r._guiRelayout=ut(et),r._guiRestyle=ut(X),r._guiUpdate=ut(ct),r._storeDirectGUIEdit=$},{"../components/color":367,"../components/drawing":389,"../components/selections":455,"../constants/xmlns_namespaces":492,"../lib":515,"../lib/events":504,"../lib/queue":531,"../plots/cartesian/axes":566,"../plots/cartesian/constants":573,"../plots/cartesian/graph_interact":576,"../plots/plots":628,"../registry":647,"./edit_types":548,"./helpers":549,"./manage_arrays":551,"./plot_config":553,"./plot_schema":554,"./subroutines":556,"@plotly/d3":58,"fast-isnumeric":190,"has-hover":228}],553:[function(t,e,r){"use strict";var n={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},i={};function a(t,e){for(var r in t){var n=t[r];n.valType?e[r]=n.dflt:(e[r]||(e[r]={}),a(n,e[r]))}}a(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],554:[function(t,e,r){"use strict";var n=t("../registry"),i=t("../lib"),a=t("../plots/attributes"),o=t("../plots/layout_attributes"),s=t("../plots/frame_attributes"),l=t("../plots/animation_attributes"),c=t("./plot_config").configAttributes,u=t("./edit_types"),f=i.extendDeepAll,p=i.isPlainObject,d=i.isArrayOrTypedArray,h=i.nestedProperty,g=i.valObjectMeta,m="_isSubplotObj",v="_isLinkedToArray",y="_deprecated",b=[m,v,"_arrayAttrRegexps",y];function x(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!w(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function w(t){return t===Math.round(t)&&t>=0}function k(t){var e,i;i=(e=n.modules[t]._module).basePlotModule;var o={type:null},s=f({},a),l=f({},e.attributes);r.crawl(l,(function(t,e,r,n,i){h(s,i).set(void 0),void 0===t&&h(l,i).set(void 0)})),f(o,s),n.traceIs(t,"noOpacity")&&delete o.opacity,n.traceIs(t,"showLegend")||(delete o.showlegend,delete o.legendgroup),n.traceIs(t,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel),e.selectPoints||delete o.selectedpoints,f(o,l),i.attributes&&f(o,i.attributes),o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:S(o)};if(e.layoutAttributes){var u={};f(u,e.layoutAttributes),c.layoutAttributes=S(u)}return e.animatable||r.crawl(c,(function(t){r.isValObject(t)&&"anim"in t&&delete t.anim})),c}function T(){var t,e,r={};for(t in f(r,o),n.subplotsRegistry)if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&&r[e[2]],s=3}else{var u=t._module;if(u||(u=(n.modules[t.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(i=f.attributes[o])}i||(i=a[o])}return _(i,e,s)},r.getLayoutValObject=function(t,e){return _(x(t,e[0]),e,1)}},{"../lib":515,"../plots/animation_attributes":560,"../plots/attributes":562,"../plots/frame_attributes":595,"../plots/layout_attributes":619,"../registry":647,"./edit_types":548,"./plot_config":553}],555:[function(t,e,r){"use strict";var n=t("../lib"),i=t("../plots/attributes"),a="templateitemname",o={name:{valType:"string",editType:"none"}};function s(t){return t&&"string"===typeof t}function l(t){var e=t.length-1;return"s"!==t.charAt(e)&&n.warn("bad argument to arrayDefaultKey: "+t),t.substr(0,t.length-1)+"defaults"}o[a]={valType:"string",editType:"calc"},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=o.name,e[a]=o[a],e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&&r.length&&(a[e]=0);function o(o){var s={type:e=n.coerce(o,{},i,"type"),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}return{newTrace:o}},r.newContainer=function(t,e,r){var i=t._template,a=i&&(i[e]||r&&i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&&n[l(e)],o=n&&n[e];Array.isArray(o)&&o.length||(o=[]);var c={};function u(t){var e={name:t.name,_input:t},n=e[a]=t[a];if(!s(n))return e._template=i,e;for(var l=0;l=i&&(r._input||{})._templateitemname;s&&(o=i);var l,c=e+"["+o+"]";function u(){l={},s&&(l[c]={},l[c][a]=s)}function f(t,e){l[t]=e}function p(t,e){s?n.nestedProperty(l[c],t).set(e):l[c+"."+t]=e}function d(){var t=l;return u(),t}function h(e,r){e&&p(e,r);var i=d();for(var a in i)n.nestedProperty(t,a).set(i[a])}return u(),{modifyBase:f,modifyItem:p,getUpdateObj:d,applyUpdate:h}}},{"../lib":515,"../plots/attributes":562}],556:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../registry"),a=t("../plots/plots"),o=t("../lib"),s=t("../lib/clear_gl_canvases"),l=t("../components/color"),c=t("../components/drawing"),u=t("../components/titles"),f=t("../components/modebar"),p=t("../plots/cartesian/axes"),d=t("../constants/alignment"),h=t("../plots/cartesian/constraints"),g=h.enforce,m=h.clean,v=t("../plots/cartesian/autorange").doAutoRange,y="start",b="middle",x="end";function _(t,e,r){for(var n=0;n=t[1]||i[1]<=t[0])&&a[0]e[0])return!0}return!1}function w(t){var e,i,s,u,h,g,m=t._fullLayout,v=m._size,y=v.p,b=p.list(t,"",!0);if(m._paperdiv.style({width:t._context.responsive&&m.autosize&&!t._context._hasZeroWidth&&!t.layout.width?"100%":m.width+"px",height:t._context.responsive&&m.autosize&&!t._context._hasZeroHeight&&!t.layout.height?"100%":m.height+"px"}).selectAll(".main-svg").call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has("cartesian"))return a.previousPromises(t);function x(t,e,r){var n=t._lw/2;return"x"===t._id.charAt(0)?e?"top"===r?e._offset-y-n:e._offset+e._length+y+n:v.t+v.h*(1-(t.position||0))+n%1:e?"right"===r?e._offset+e._length+y+n:e._offset-y-n:v.l+v.w*(t.position||0)+n%1}for(e=0;eM?u.push({code:"unused",traceType:x,templateCount:T,dataCount:M}):M>T&&u.push({code:"reused",traceType:x,templateCount:T,dataCount:M})}}else u.push({code:"data"});function A(t,e){for(var r in t)if("_"!==r.charAt(0)){var n=t[r],a=g(t,r,e);i(n)?(Array.isArray(t)&&!1===n._template&&n.templateitemname&&u.push({code:"missing",path:a,templateitemname:n.templateitemname}),A(n,a)):Array.isArray(n)&&m(n)&&A(n,a)}}if(A({data:d,layout:p},""),u.length)return u.map(v)}},{"../lib":515,"../plots/attributes":562,"../plots/plots":628,"./plot_config":553,"./plot_schema":554,"./plot_template":555}],558:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("./plot_api"),a=t("../plots/plots"),o=t("../lib"),s=t("../snapshot/helpers"),l=t("../snapshot/tosvg"),c=t("../snapshot/svgtoimg"),u=t("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function p(t,e){var r,p,d,h;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],p=t.layout||{},d=t.config||{},h={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),p=o.extendDeep({},t.layout),d=t._context,h=t._fullLayout||{}),!g("width")&&null!==e.width||!g("height")&&null!==e.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Export format is not "+o.join2(f.format.values,", "," or ")+".");var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v("format"),b=v("width"),x=v("height"),_=v("scale"),w=v("setBackground"),k=v("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var M=o.extendFlat({},p);b?M.width=b:null===e.width&&n(h.width)&&(M.width=h.width),x?M.height=x:null===e.height&&n(h.height)&&(M.height=h.height);var A=o.extendFlat({},d,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(T);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(T._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(T,y,_),n=T._fullLayout.width,f=T._fullLayout.height;function p(){i.purge(T),document.body.removeChild(T)}if("full-json"===y){var d=a.graphJson(T,!1,"keepdata","object",!0,!0);return d.version=u,d=JSON.stringify(d),p(),t(k?d:s.encodeJSON(d))}if(p(),"svg"===y)return t(k?r:s.encodeSVG(r));var h=document.createElement("canvas");h.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:h,svg:r,promise:!0}).then(t).catch(e)}))}function O(t){return k?t.replace(s.IMAGE_URL_PREFIX,""):t}return new Promise((function(t,e){i.newPlot(T,r,M,A).then(S).then(E).then(C).then((function(e){t(O(e))})).catch((function(t){e(t)}))}))}e.exports=p},{"../lib":515,"../plots/plots":628,"../snapshot/helpers":651,"../snapshot/svgtoimg":653,"../snapshot/tosvg":655,"../version":1132,"./plot_api":552,"fast-isnumeric":190}],559:[function(t,e,r){"use strict";var n=t("../lib"),i=t("../plots/plots"),a=t("./plot_schema"),o=t("./plot_config").dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),p=0;pb.length&&i.push(h("unused",a,v.concat(b.length)));var M,A,S,E,C,O=b.length,L=Array.isArray(T);if(L&&(O=Math.min(O,T.length)),2===x.dimensions)for(A=0;Ab[A].length&&i.push(h("unused",a,v.concat(A,b[A].length)));var I=b[A].length;for(M=0;M<(L?Math.min(I,T[A].length):I);M++)S=L?T[A][M]:T,E=y[A][M],C=b[A][M],n.validate(E,S)?C!==E&&C!==+E&&i.push(h("dynamic",a,v.concat(A,M),E,C)):i.push(h("value",a,v.concat(A,M),E))}else i.push(h("array",a,v.concat(A),y[A]));else for(A=0;A1&&d.push(h("object","layout"))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y0&&Math.round(f)===f))return{vals:i};c=f}for(var p=e.calendar,d="start"===l,h="end"===l,g=t[r+"period0"],m=a(g,p)||0,v=[],y=[],b=[],x=i.length,_=0;_M;)T=o(T,-c,p);for(;T<=M;)T=o(T,c,p);k=o(T,-c,p)}else{for(T=m+(w=Math.round((M-m)/u))*u;T>M;)T-=u;for(;T<=M;)T+=u;k=T-u}v[_]=d?k:h?T:(k+T)/2,y[_]=k,b[_]=T}return{vals:v,starts:y,ends:b}}},{"../../constants/numerical":491,"../../lib":515,"fast-isnumeric":190}],564:[function(t,e,r){"use strict";e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],565:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../../lib"),o=t("../../constants/numerical").FP_SAFE,s=t("../../registry"),l=t("../../components/drawing"),c=t("./axis_ids"),u=c.getFromId,f=c.isLinked;function p(t,e){var r,n,i=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=v(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return a.simpleMap(e.range,e.r2l);var p=u[0].val,g=f[0].val;for(r=1;r0&&((k=E-s(b)-l(x))>C?T/k>O&&(_=b,w=x,O=T/k):T/E>O&&(_={val:b.val,nopad:1},w={val:x.val,nopad:1},O=T/E));function L(t,e){return Math.max(t,l(e))}if(p===g){var I=p-1,P=p+1;if(A)if(0===p)i=[0,1];else{var D=(p>0?f:u).reduce(L,0),R=p/(1-Math.min(.5,D/E));i=p>0?[0,R]:[R,0]}else i=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):S&&(_.val-O*s(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),O=(w.val-_.val-d(e,b.val,x.val))/(E-s(_)-l(w)),i=[_.val-O*s(_),w.val+O*l(w)];return m&&i.reverse(),a.simpleMap(i,e.l2r||Number)}function d(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!w){if(p=1/0,d=-1/0,b)for(n=0;n0&&(p=a),a>d&&a-o&&(p=a),a>d&&a=I;n--)L(n);return{min:h,max:g,opts:r}}function x(t,e,r,n){w(t,e,r,n,T)}function _(t,e,r,n){w(t,e,r,n,M)}function w(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(c.extrapad||!o)){s=!1;break}i(e,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(t.splice(l,1),l--)}if(s){var u=a&&0===e;t.push({val:e,pad:u?0:r,extrapad:!u&&o})}}function k(t){return i(t)&&Math.abs(t)=e}},{"../../components/drawing":389,"../../constants/numerical":491,"../../lib":515,"../../registry":647,"./axis_ids":570,"@plotly/d3":58,"fast-isnumeric":190}],566:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("fast-isnumeric"),a=t("../../plots/plots"),o=t("../../registry"),s=t("../../lib"),l=s.strTranslate,c=t("../../lib/svg_text_utils"),u=t("../../components/titles"),f=t("../../components/color"),p=t("../../components/drawing"),d=t("./layout_attributes"),h=t("./clean_ticks"),g=t("../../constants/numerical"),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,b=g.ONEMAXQUARTER,x=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,k=g.ONEAVGMONTH,T=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,O=g.ONESEC,L=g.MINUS_SIGN,I=g.BADNUM,P={K:"zeroline"},D={K:"gridline",L:"path"},R={K:"minor-gridline",L:"path"},z={K:"tick",L:"path"},N={K:"tick",L:"text"},F={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},B=t("../../constants/alignment"),j=B.MID_SHIFT,U=B.CAP_SHIFT,V=B.LINE_SPACING,H=B.OPPOSITE_SIDE,q=3,G=e.exports={};G.setConvert=t("./set_convert");var W=t("./axis_autotype"),Y=t("./axis_ids"),X=Y.idSort,Z=Y.isLinked;G.id2name=Y.id2name,G.name2id=Y.name2id,G.cleanId=Y.cleanId,G.list=Y.list,G.listIds=Y.listIds,G.getFromId=Y.getFromId,G.getFromTrace=Y.getFromTrace;var K=t("./autorange");G.getAutoRange=K.getAutoRange,G.findExtremes=K.findExtremes;var J=1e-4;function $(t){var e=(t[1]-t[0])*J;return[t[0]-e,t[1]+e]}G.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return i||(i=l[0]||("string"===typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+" domain"}))),u[c]={valType:"enumerated",values:l.concat(a?"string"===typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},G.getRefType=function(t){return void 0===t?t:"paper"===t?"paper":"pixel"===t?"pixel":/( domain)$/.test(t)?"domain":"range"},G.coercePosition=function(t,e,r,n,i,a){var o,l;if("range"!==G.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=G.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},G.cleanPosition=function(t,e,r){return("paper"===r||"pixel"===r?s.ensureNumber:G.getFromId(e,r).cleanPos)(t)},G.redrawComponents=function(t,e){e=e||G.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u.3*p||u(n)||u(a))){var d=r.dtick/2;t+=t+do){var l=Number(r.substr(1));a.exactYears>o&&l%12===0?t=G.tickIncrement(t,"M6","reverse")+1.5*A:a.exactMonths>o?t=G.tickIncrement(t,"M1","reverse")+15.5*A:t-=S;var c=G.tickIncrement(t,r);if(c<=n)return c}return t}function it(t,e){return Math.abs((t/e+.5)%1-.5)<.001}function at(t,e){return Math.abs(t/e-1)<.001}function ot(t){return+t.substring(1)}function st(t){var e;function r(){return!(i(t.dtick)||"M"!==t.dtick.charAt(0))}var n=r(),a=G.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&&!n&&t.dtick0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,p=0;f>=y?p=u>=y&&u<=m?u:v:r===x&&f>=_?p=u>=_&&u<=b?u:x:f>=T?p=u>=T&&u<=w?u:k:r===M&&f>=M?p=M:f>=A?p=A:r===S&&f>=S?p=S:r===E&&f>=E&&(p=E),p>=u&&(p=u,s=!0);var d=i+p;if(e.rangebreaks&&p>0){for(var h=84,g=0,C=0;CM&&(p=u)}(p>0||0===n)&&(t[n].periodX=i+p/2)}}function ct(t){var e=$(s.simpleMap(t.range,t.r2l)),r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i="category"===t.type?t.d2l_noadd:t.d2l;"log"===t.type&&"L"!==String(t.dtick).charAt(0)&&(t.dtick="L"+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var a=[],o=0;o<=1;o++)if(!o||t.minor){var l=o?t.minor.tickvals:t.tickvals,c=o?[]:t.ticktext;if(l){Array.isArray(c)||(c=[]);for(var u=0;ur&&f2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},G.saveRangeInitial=function(t,e){for(var r=G.list(t,"",!0),n=!1,i=0;i=12&&2===p&&(t.dtick="M3"):t.dtick=e.dtick:"L"===String(t.dtick).charAt(0)?"L"===String(e.dtick).charAt(0)?it(f,p)||(t.dtick=at(f/p,2.5)?e.dtick/2:e.dtick):t.dtick="D1":"D2"===t.dtick&&+e.dtick>1&&(t.dtick=1)}t.range=e.range}void 0===e.minor._tick0Init&&(t.tick0=e.tick0)},G.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if("auto"===t.tickmode||!t.dtick){var n,i=t.nticks;i||("category"===t.type||"multicategory"===t.type?(n=t.tickfont?s.bigFont(t.tickfont.size||12):15,i=t._length/n):(n="y"===t._id.charAt(0)?40:80,i=s.constrain(t._length/n,4,9)+1),"radialaxis"===t._name&&(i*=2)),t.minor&&"array"!==t.minor.tickmode||"array"===t.tickmode&&(i*=100),t._roughDTick=Math.abs(r[1]-r[0])/i,G.autoTicks(t,t._roughDTick),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}"period"===t.ticklabelmode&&st(t),t.tick0||(t.tick0="date"===t.type?"2000-01-01":0),"date"===t.type&&t.dtick<.1&&(t.dtick=.1),yt(t)},G.calcTicks=function(t,e){for(var r,n,a=t.type,o=t.calendar,l=t.ticklabelstep,c="period"===t.ticklabelmode,u=s.simpleMap(t.range,t.r2l,void 0,void 0,e),f=u[1]=(b?0:1);x--){var _=!x;x?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var w=x?t:s.extendFlat({},t,t.minor);if(_?G.prepMinorTicks(w,t,e):G.prepTicks(w,e),"array"!==w.tickmode){var T=$(u),M=T[0],A=T[1],S=i(w.dtick),E="log"===a&&!(S||"L"===w.dtick.charAt(0)),C=G.tickFirst(w,e);if(x){if(t._tmin=C,C=A:D<=A;D=G.tickIncrement(D,R,f,o)){if(x&&O++,w.rangebreaks&&!f){if(D=d)break}if(v.length>h||D===P)break;P=D;var z={value:D};x?(E&&D!==(0|D)&&(z.simpleLabel=!0),l>1&&O%l&&(z.skipLabel=!0),v.push(z)):(z.minor=!0,y.push(z))}}else x?(v=[],g=ct(t)):(y=[],m=ct(t))}if(b&&!("inside"===t.minor.ticks&&"outside"===t.ticks||"outside"===t.minor.ticks&&"inside"===t.ticks)){for(var N=v.map((function(t){return t.value})),F=[],B=0;B-1;r--)if(v[r].drop)v.splice(r,1);else{v[r].value=te(v[r].value,t);var X=t.c2p(v[r].value);(q?Y>X-W:Yd||Kd&&(Z.periodX=d),K10||"01-01"!==n.substr(5)?t._tickround="d":t._tickround=+e.substr(1)%12===0?"y":"m";else if(e>=A&&a<=10||e>=15*A)t._tickround="d";else if(e>=C&&a<=16||e>=E)t._tickround="M";else if(e>=O&&a<=19||e>=C)t._tickround="S";else{var o=t.l2r(r+e).replace(/^-/,"").length;t._tickround=Math.max(a,o)-20,t._tickround<0&&(t._tickround=4)}}else if(i(e)||"L"===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)>u&&(Et(t.exponentformat)&&!Ct(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function bt(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}function xt(t,e,r,n){var a=t._tickround,o=r&&t.hoverformat||G.getTickFormat(t);n&&(a=i(a)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf("\n");if(-1!==u&&(l=c.substr(u+1),c=c.substr(0,u)),n&&("00:00:00"===c||"00:00"===c?(c=l,l=""):8===c.length&&(c=c.replace(/:00$/,""))),l)if(r)"d"===a?c+=", "+l:c=l+(c?", "+c:"");else if(t._inCalcTicks&&t._prevDateHead===l){var f=ee(t),p=t._trueSide||t.side;(!f&&"top"===p||f&&"bottom"===p)&&(c+="
")}else t._prevDateHead=l,c+="
"+l;e.text=c}function _t(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u="string"===typeof o&&o.charAt(0);if("never"===a&&(a=""),n&&"L"!==u&&(o="L3",u="L"),c||"L"===u)e.text=Ot(Math.pow(10,l),t,a,n);else if(i(o)||"D"===u&&s.mod(l+.01,1)<.1){var f=Math.round(l),p=Math.abs(f),d=t.exponentformat;"power"===d||Et(d)&&Ct(f)?(e.text=0===f?1:1===f?"10":"10"+(f>1?"":L)+p+"",e.fontSize*=1.25):("e"===d||"E"===d)&&p>2?e.text="1"+d+(f>0?"+":L)+p:(e.text=Ot(Math.pow(10,l),t,"","fakehover"),"D1"===o&&"y"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if("D1"===t.dtick){var h=String(e.text).charAt(0);"0"!==h&&"1"!==h||("y"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(l<0?.5:.25)))}}function wt(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r=""),e.text=String(r)}function kt(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?"":String(i[1]),o=void 0===i[0]?"":String(i[0]);r?e.text=o+" - "+a:(e.text=a,e.text2=o)}function Tt(t,e,r,n,i){"never"===i?i="":"all"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i="hide"),e.text=Ot(e.x,t,i,n)}function Mt(t,e,r,n,i){if("radians"!==t.thetaunit||r)e.text=Ot(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text="0";else{var o=At(a);if(o[1]>=100)e.text=Ot(s.deg2rad(e.x),t,i,n);else{var l=e.x<0;1===o[1]?1===o[0]?e.text="\u03c0":e.text=o[0]+"\u03c0":e.text=["",o[0],"","\u2044","",o[1],"","\u03c0"].join(""),l&&(e.text=L+e.text)}}}}function At(t){function e(t,e){return Math.abs(t-e)<=1e-6}function r(t,n){return e(n,0)?t:r(n,t%n)}function n(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}var i=n(t),a=t*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}G.autoTicks=function(t,e,r){var n;function a(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if("date"===t.type){t.tick0=s.dateTick0(t.calendar,0);var o=2*e;if(o>v)e/=v,n=a(10),t.dtick="M"+12*vt(e,n,ut);else if(o>k)e/=k,t.dtick="M"+vt(e,1,ft);else if(o>A){if(t.dtick=vt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:dt),!r){var l=G.getTickFormat(t),c="period"===t.ticklabelmode;c&&(t._rawTick0=t.tick0),/%[uVW]/.test(l)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),c&&(t._dowTick0=t.tick0)}}else o>E?t.dtick=vt(e,E,ft):o>C?t.dtick=vt(e,C,pt):o>O?t.dtick=vt(e,O,pt):(n=a(10),t.dtick=vt(e,n,ut))}else if("log"===t.type){t.tick0=0;var u=s.simpleMap(t.range,t.r2l);if(t._isMinor&&(e*=1.5),e>.7)t.dtick=Math.ceil(e);else if(Math.abs(u[1]-u[0])<1){var f=1.5*Math.abs((u[1]-u[0])/e);e=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/f,n=a(10),t.dtick="L"+vt(e,n,ut)}else t.dtick=e>.3?"D2":"D1"}else"category"===t.type||"multicategory"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):Qt(t)?(t.tick0=0,n=1,t.dtick=vt(e,n,mt)):(t.tick0=0,n=a(10),t.dtick=vt(e,n,ut));if(0===t.dtick&&(t.dtick=1),!i(t.dtick)&&"string"!==typeof t.dtick){var p=t.dtick;throw t.dtick=1,"ax.dtick error: "+String(p)}},G.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if("M"===l)return s.incrementMonth(t,c,a);if("L"===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if("D"===l){var u="D2"===e?gt:ht,f=t+.01*o,p=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,p),1))/Math.LN10}throw"unrecognized dtick "+String(e)},G.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]=0&&r<=t._length?e:null};a.xbnd=[g(a.x-.5),g(a.x+t.dtick-.5)]}return a},G.hoverLabelText=function(t,e,r){r&&(t=s.extendFlat({},t,{hoverformat:r}));var n=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;if(void 0!==i&&i!==n)return G.hoverLabelText(t,n,r)+" - "+G.hoverLabelText(t,i,r);var a="log"===t.type&&n<=0,o=G.tickText(t,t.c2l(a?-n:n),"hover").text;return a?0===n?"0":L+o:o};var St=["f","p","n","\u03bc","m","","k","M","G","T"];function Et(t){return"SI"===t||"B"===t}function Ct(t){return t>14||t<-15}function Ot(t,e,r,n){var a=t<0,o=e._tickround,l=r||e.exponentformat||"B",c=e._tickexponent,u=G.getTickFormat(e),f=e.separatethousands;if(n){var p={exponentformat:l,minexponent:e.minexponent,dtick:"none"===e.showexponent?e.dtick:i(t)&&Math.abs(t)||1,range:"none"===e.showexponent?e.range.map(e.r2d):[0,t||1]};yt(p),o=(Number(p._tickround)||0)+4,c=p._tickexponent,e.hoverformat&&(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,L);var d,h=Math.pow(10,-o)/2;if("none"===l&&(c=0),(t=Math.abs(t))"+d+"":"B"===l&&9===c?t+="B":Et(l)&&(t+=St[c/3+5])),a?L+t:t}function Lt(t,e){if(t){var r=Object.keys(F).reduce((function(t,r){return-1!==e.indexOf(r)&&F[r].forEach((function(e){t[e]=1})),t}),{});Object.keys(t).forEach((function(e){r[e]||(1===e.length?t[e]=0:delete t[e])}))}}function It(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&&n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r1&&r1)for(n=1;n=i.min&&t=n(t))}function s(t,e){var r=null===e[0],n=null===e[1],i=a(t,e[0])>=0,o=a(t,e[1])<=0;return(r||i)&&(n||o)}if(t.tickformatstops&&t.tickformatstops.length>0)switch(t.type){case"date":case"linear":for(e=0;e0?r.bottom-d:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var g=[0,1];if("x"===f){if("b"===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width>0?d-r.top:0,h),g.reverse()),r.width>0){var m=r.right-(e._offset+e._length);m>0&&(n.xr=1,n.r=m);var v=e._offset-r.left;v>0&&(n.xl=0,n.l=v)}}else if("l"===l?n[l]=e._depth=Math.max(r.height>0?d-r.left:0,h):(n[l]=e._depth=Math.max(r.height>0?r.right-d:0,h),g.reverse()),r.height>0){var y=r.bottom-(e._offset+e._length);y>0&&(n.yb=0,n.b=y);var b=e._offset-r.top;b>0&&(n.yt=1,n.t=b)}n[p]="free"===e.anchor?e.position:e._anchorAxis.domain[g[0]],e.title.text!==c._dfltTitle[f]&&(n[l]+=jt(e)+(e.title.standoff||0)),e.mirror&&"free"!==e.anchor&&((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&&!0!==e.mirror&&(i[u]+=h),!0===e.mirror||"ticks"===e.mirror?i[p]=e._anchorAxis.domain[g[1]]:"all"!==e.mirror&&"allticks"!==e.mirror||(i[p]=[e._counterDomainMin,e._counterDomainMax][g[1]]))}et&&(s=o.getComponentMethod("rangeslider","autoMarginOpts")(t,e)),"string"===typeof e.automargin&&(Lt(n,e.automargin),Lt(i,e.automargin)),a.autoMargin(t,Wt(e),n),a.autoMargin(t,Yt(e),i),a.autoMargin(t,Xt(e),s)})),r.skipTitle||et&&"bottom"===e.side||Q.push((function(){return Ut(t,e)})),s.syncOrAsync(Q)}}function rt(t){var r=u+(t||"tick");return b[r]||(b[r]=Rt(e,r)),b[r]}},G.getTickSigns=function(t,e){var r=t._id.charAt(0),n={x:"top",y:"right"}[r],i=t.side===n?1:-1,a=[-1,1,i,-i];return"inside"!==(e?(t.minor||{}).ticks:t.ticks)===("x"===r)&&(a=a.map((function(t){return-t}))),t.side&&a.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),a},G.makeTransTickFn=function(t){return"x"===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},G.makeTransTickLabelFn=function(t){var e=Nt(t),r=e[0],n=e[1];return"x"===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(zt(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(zt(e)))}},G.makeTickPath=function(t,e,r,n){n||(n={});var i=n.minor;if(i&&!t.minor)return"";var a=void 0!==n.len?n.len:i?t.minor.ticklen:t.ticklen,o=t._id.charAt(0),s=(t.linewidth||1)/2;return"x"===o?"M0,"+(e+s*r)+"v"+a*r:"M"+(e+s*r)+",0h"+a*r},G.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||"",a=function(t){return-1!==n.indexOf(t)},o=a("top"),l=a("left"),c=a("right"),u=a("bottom")||l||o||c,f=a("inside"),p="inside"===n&&"inside"===t.ticks||!f&&"outside"===t.ticks&&"boundaries"!==t.tickson,d=0,h=0,g=p?t.ticklen:0;if(f?g*=-1:u&&(g=0),p&&(d+=g,r)){var m=s.deg2rad(r);d=g*Math.cos(m)+1,h=g*Math.sin(m)}t.showticklabels&&(p||t.showline)&&(d+=.2*t.tickfont.size);var v,y,b,x,_,w={labelStandoff:d+=(t.linewidth||1)/2*(f?-1:1),labelShift:h},k=0,T=t.side,M=t._id.charAt(0),A=t.tickangle;if("x"===M)x=(_=!f&&"bottom"===T||f&&"top"===T)?1:-1,f&&(x*=-1),v=h*x,y=e+d*x,b=_?1:-.2,90===Math.abs(A)&&(f?b+=j:b=-90===A&&"bottom"===T?U:90===A&&"top"===T?j:.5,k=j/2*(A/90)),w.xFn=function(t){return t.dx+v+k*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*b},w.anchorFn=function(t,e){if(u){if(l)return"end";if(c)return"start"}return i(e)&&0!==e&&180!==e?e*x<0!==f?"end":"start":"middle"},w.heightFn=function(e,r,n){return r<-60||r>60?-.5*n:"top"===t.side!==f?-n:0};else if("y"===M){if(x=(_=!f&&"left"===T||f&&"right"===T)?1:-1,f&&(x*=-1),v=d,y=h*x,b=0,f||90!==Math.abs(A)||(b=-90===A&&"left"===T||90===A&&"right"===T?U:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);k=Math.abs(Math.sin(E))*U*x,b=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*b)*x+k*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*j},w.anchorFn=function(t,e){return i(e)&&90===Math.abs(e)?"middle":_?"end":"start"},w.heightFn=function(e,r,n){return"right"===t.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},G.drawTicks=function(t,e,r){r=r||{};var i=e._id+"tick",a=[].concat(e.minor&&e.minor.ticks?r.vals.filter((function(t){return t.minor&&!t.noTick})):[]).concat(e.ticks?r.vals.filter((function(t){return!t.minor&&!t.noTick})):[]),o=r.layer.selectAll("path."+i).data(a,Ft);o.exit().remove(),o.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",!1!==r.crisp).each((function(t){return f.stroke(n.select(this),t.minor?e.minor.tickcolor:e.tickcolor)})).style("stroke-width",(function(r){return p.crispRound(t,r.minor?e.minor.tickwidth:e.tickwidth,1)+"px"})).attr("d",r.path).style("display",null),re(e,[z]),o.attr("transform",r.transFn)},G.drawGrid=function(t,e,r){r=r||{};var i=e._id+"grid",a=e.minor&&e.minor.showgrid,o=a?r.vals.filter((function(t){return t.minor})):[],s=e.showgrid?r.vals.filter((function(t){return!t.minor})):[],l=r.counterAxis;if(l&&G.shouldShowZeroLine(t,e,l))for(var c="array"===e.tickmode,u=0;u=0;v--){var y=v?g:m;if(y){var b=y.selectAll("path."+i).data(v?s:o,Ft);b.exit().remove(),b.enter().append("path").classed(i,1).classed("crisp",!1!==r.crisp),b.attr("transform",r.transFn).attr("d",r.path).each((function(t){return f.stroke(n.select(this),t.minor?e.minor.gridcolor:e.gridcolor||"#ddd")})).style("stroke-dasharray",(function(t){return p.dashStyle(t.minor?e.minor.griddash:e.griddash,t.minor?e.minor.gridwidth:e.gridwidth)})).style("stroke-width",(function(t){return(t.minor?h:e._gw)+"px"})).style("display",null),"function"===typeof r.path&&b.attr("d",r.path)}}re(e,[D,R])},G.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+"zl",i=G.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",!1!==r.crisp).each((function(){r.layer.selectAll("path").sort((function(t,e){return X(t.id,e.id)}))})),a.attr("transform",r.transFn).attr("d",r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style("stroke-width",p.crispRound(t,e.zerolinewidth,e._gw||1)+"px").style("display",null),re(e,[P])},G.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+"tick",d=r.vals.filter((function(t){return t.text})),h=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll("g."+f).data(e.showticklabels?d:[],Ft),y=[];function b(t,a){t.each((function(t){var o=n.select(this),s=o.select(".text-math-group"),u=h.anchorFn(t,a),f=r.transFn.call(o.node(),t)+(i(a)&&0!==+a?" rotate("+a+","+h.xFn(t)+","+(h.yFn(t)-t.fontSize/2)+")":""),d=c.lineCount(o),g=V*t.fontSize,m=h.heightFn(t,i(a)?+a:0,(d-1)*g);if(m&&(f+=l(0,m)),s.empty()){var v=o.select("text");v.attr({transform:f,"text-anchor":u}),v.style("opacity",1),e._adjustTickLabelsOverflow&&e._adjustTickLabelsOverflow()}else{var y=p.bBox(s.node()).width*{end:-.5,start:.5}[u];s.attr("transform",f+l(y,0))}}))}function x(){return y.length&&Promise.all(y)}v.enter().append("g").classed(f,1).append("text").attr("text-anchor","middle").each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,h.xFn(e),h.yFn(e)).call(p.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){b(r,g)}))):b(r,g)})),re(e,[N]),v.exit().remove(),r.repositionOnUpdate&&v.each((function(t){n.select(this).select("text").call(c.positionText,h.xFn(t),h.yFn(t))})),e._adjustTickLabelsOverflow=function(){var r=e.ticklabeloverflow;if(r&&"allow"!==r){var i=-1!==r.indexOf("hide"),o="x"===e._id.charAt(0),l=0,c=o?t._fullLayout.width:t._fullLayout.height;if(-1!==r.indexOf("domain")){var u=s.simpleMap(e.range,e.r2l);l=e.l2p(u[0])+e._offset,c=e.l2p(u[1])+e._offset}var f=Math.min(l,c),d=Math.max(l,c),h=e.side,g=1/0,m=-1/0;for(var y in v.each((function(t){var r=n.select(this);if(r.select(".text-math-group").empty()){var a=p.bBox(r.node()),s=0;o?(a.right>d||a.leftd||a.top+(e.tickangle?0:t.fontSize/4)e["_visibleLabelMin_"+r._id]?l.style("display","none"):"tick"!==t.K||i||l.style("display",null)}))}))}))}))},b(v,m+1?m:g);var _=null;function w(){if(b(v,g),d.length&&"x"===u&&!i(g)&&("log"!==e.type||"D"!==String(e.dtick).charAt(0))){_=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=Gt(this),o=p.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==e.tickson&&!e.showdividers||r.secondary){var o=d.length,l=Math.abs((d[o-1].x-d[0].x)*e._m)/(o-1),c=e.ticklabelposition||"",f=function(t){return-1!==c.indexOf(t)},h=f("top"),m=f("left"),y=f("right"),x=f("bottom")||m||h||y?(e.tickwidth||0)+2*q:0,w=l<2.5*n||"multicategory"===e.type||"realaxis"===e._name;for(t=0;t2*o}function d(t){return Math.max(1,(t-1)/1e3)}function h(t,e){for(var r=t.length,n=d(r),i=0,o=0,s={},u=0;u2*i}function g(t){return o(t[0])&&o(t[1])}e.exports=function(t,e,r){var n=t,i=r.noMultiCategory;if(o(n)&&!n.length)return"-";if(!i&&g(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var a=[],s=0;s=2){var s,c,u="";if(2===o.length)for(s=0;s<2;s++)if(c=x(o[s])){u=m;break}var f=i("pattern",u);if(f===m)for(s=0;s<2;s++)(c=x(o[s]))&&(e.bounds[s]=o[s]=c-1);if(f)for(s=0;s<2;s++)switch(c=o[s],f){case m:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(e.enabled=!1);e.bounds[s]=o[s]=c;break;case v:if(!n(c))return void(e.enabled=!1);if((c=+c)<0||c>24)return void(e.enabled=!1);e.bounds[s]=o[s]=c}if(!1===r.autorange){var p=r.range;if(p[0]p[1])return void(e.enabled=!1)}else if(o[0]>p[0]&&o[1]n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&&t.split(" ")[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{"../../registry":647,"./constants":573}],571:[function(t,e,r){"use strict";function n(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n0;s&&(a="array");var l,c=r("categoryorder",a);"array"===c&&(l=r("categoryarray")),s||"array"!==c||(c=e.categoryorder="trace"),"trace"===c?e._initialCategories=[]:"array"===c?e._initialCategories=l.slice():(l=n(e,i).sort(),"category ascending"===c?e._initialCategories=l:"category descending"===c&&(e._initialCategories=l.reverse()))}}},{}],572:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib"),a=t("../../constants/numerical"),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r="log"===e,i="date"===e,a="category"===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))<=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if("string"!==typeof t||!i&&!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)<=0||!(i&&"M"===l&&c===Math.round(c)||r&&"L"===l||r&&"D"===l&&(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return"date"===e?i.cleanDate(t,i.dateTick0(r,a%s===0?1:0)):"D1"!==a&&"D2"!==a?n(t)?Number(t):0:void 0}},{"../../constants/numerical":491,"../../lib":515,"fast-isnumeric":190}],573:[function(t,e,r){"use strict";var n=t("../../lib/regex").counter;e.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},{"../../lib/regex":532}],574:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./autorange"),a=t("./axis_ids").id2name,o=t("./layout_attributes"),s=t("./scale_zoom"),l=t("./set_convert"),c=t("../../constants/numerical").ALMOST_EQUAL,u=t("../../constants/alignment").FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y="x"===v.charAt(0);function b(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,b("constrain",l?"domain":"range"),n.coerce(t,e,{constraintoward:{valType:"enumerated",values:y?["left","center","right"]:["bottom","middle","top"],dflt:y?"center":"middle"}},"constraintoward");var x,_,w=e.type,k=[];for(x=0;xn?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;oc*b)||k)for(r=0;rP&&NL&&(L=N);p/=(L-O)/(2*I),O=l.l2r(O),L=l.l2r(L),l.range=l._input.range=S=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(W(i),2!==t||xt||Zt(),bt)a.indexOf("select")>-1&&S(r,i,G,tt,e.id,Dt),a.indexOf("event")>-1&&d.click(i,r,e.id);else if(1===t&&xt){var o=f?I:v,s="s"===f||"w"===g?0:1,c=o._name+".range["+s+"]",p=N(o,s),h="left",m="middle";if(o.fixedrange)return;f?(m="n"===f?"top":"bottom","right"===o.side&&(h="right")):"e"===g&&(h="right"),i._context.showAxisRangeEntryBoxes&&n.select(kt).call(u.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(p),fill:o.tickfont?o.tickfont.color:"#444",horizontalAlign:h,verticalAlign:m}).on("edit",(function(t){var e=o.d2r(t);void 0!==e&&l.call("_guiRelayout",i,c,e)}))}}}function Nt(e,r,n){var a=kt.getBoundingClientRect();Tt=r-a.left,Mt=n-a.top,t._fullLayout._calcInverseTransform(t);var s=i.apply3DTransform(t._fullLayout._invTransform)(Tt,Mt);Tt=s[0],Mt=s[1],At={l:Tt,r:Tt,w:0,t:Mt,b:Mt,h:0},St=t._hmpixcount?t._hmlumcount/t._hmpixcount:o(t._fullLayout.plot_bgcolor).getLuminance(),Ct=!1,Ot="xy",Pt=!1,Lt=V(yt,St,et,rt,Et="M0,0H"+nt+"V"+it+"H0V0"),It=H(yt,et,rt)}function Ft(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(nt,mt*e+Tt)),i=Math.max(0,Math.min(it,vt*r+Mt)),a=Math.abs(n-Tt),o=Math.abs(i-Mt);function s(){Ot="",At.r=At.l,At.t=At.b,It.attr("d","M0,0Z")}if(At.l=Math.min(Tt,n),At.r=Math.max(Tt,n),At.t=Math.min(Mt,i),At.b=Math.max(Mt,i),at.isSubplotConstrained)a>L||o>L?(Ot="xy",a/nt>o/it?(o=a*it/nt,Mt>i?At.t=Mt-o:At.b=Mt+o):(a=o*nt/it,Tt>n?At.l=Tt-a:At.r=Tt+a),It.attr("d",K(At))):s();else if(ot.isSubplotConstrained)if(a>L||o>L){Ot="xy";var l=Math.min(At.l/nt,(it-At.b)/it),c=Math.max(At.r/nt,(it-At.t)/it);At.l=l*nt,At.r=c*nt,At.b=(1-l)*it,At.t=(1-c)*it,It.attr("d",K(At))}else s();else!lt||o0){var u;if(ot.isSubplotConstrained||!st&&1===lt.length){for(u=0;u=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function U(t,e,r){return t?"nsew"===t?r?"":"pan"===e?"move":"crosshair":t.toLowerCase()+"-resize":"pointer"}function V(t,e,r,n,i){return t.append("path").attr("class","zoombox").style({fill:e>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",i+"Z")}function H(t,e,r){return t.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(e,r)).attr("d","M0,0Z")}function q(t,e,r,n,i,a){t.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),G(t,e,i,a)}function G(t,e,r,n){r||(t.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),e.transition().style("opacity",1).duration(200))}function W(t){n.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Y(t){I&&t.data&&t._context.showTips&&(i.notifier(i._(t,"Double-click to zoom back out"),"long"),I=!1)}function X(t,e){return"M"+(t.l-.5)+","+(e-L-.5)+"h-3v"+(2*L+1)+"h3ZM"+(t.r+.5)+","+(e-L-.5)+"h3v"+(2*L+1)+"h-3Z"}function Z(t,e){return"M"+(e-L-.5)+","+(t.t-.5)+"v-3h"+(2*L+1)+"v3ZM"+(e-L-.5)+","+(t.b+.5)+"v3h"+(2*L+1)+"v-3Z"}function K(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return"M"+(t.l-3.5)+","+(t.t-.5+e)+"h3v"+-e+"h"+e+"v-3h-"+(e+3)+"ZM"+(t.r+3.5)+","+(t.t-.5+e)+"h-3v"+-e+"h"+-e+"v-3h"+(e+3)+"ZM"+(t.r+3.5)+","+(t.b+.5-e)+"h-3v"+e+"h"+-e+"v3h"+(e+3)+"ZM"+(t.l-3.5)+","+(t.b+.5-e)+"h3v"+e+"h"+e+"v3h-"+(e+3)+"Z"}function J(t,e,r,n,a){for(var o,s,l,c,u=!1,f={},p={},d=(a||{}).xaHash,h=(a||{}).yaHash,g=0;gg[1]-1/4096&&(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r("layer"),e}},{"../../lib":515,"fast-isnumeric":190}],583:[function(t,e,r){"use strict";var n=t("./show_dflt");e.exports=function(t,e,r,i,a){a||(a={});var o=a.tickSuffixDflt,s=n(t);r("tickprefix")&&r("showtickprefix",s),r("ticksuffix",o)&&r("showticksuffix",s)}},{"./show_dflt":586}],584:[function(t,e,r){"use strict";var n=t("../../constants/alignment").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{"../../constants/alignment":483}],585:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-time-format").utcFormat,a=t("../../lib"),o=a.numberFormat,s=t("fast-isnumeric"),l=a.cleanNumber,c=a.ms2DateTime,u=a.dateTime2ms,f=a.ensureNumber,p=a.isArrayOrTypedArray,d=t("../../constants/numerical"),h=d.FP_SAFE,g=d.BADNUM,m=d.LOG_CLIP,v=d.ONEWEEK,y=d.ONEDAY,b=d.ONEHOUR,x=d.ONEMIN,_=d.ONESEC,w=t("./axis_ids"),k=t("./constants"),T=k.HOUR_PATTERN,M=k.WEEKDAY_PATTERN;function A(t){return Math.pow(10,t)}function S(t){return null!==t&&void 0!==t}e.exports=function(t,e){e=e||{};var r=t._id||"x",d=r.charAt(0);function E(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*m*Math.abs(n-i))}return g}function C(e,r,n,i){if((i||{}).msUTC&&s(e))return+e;var o=u(e,n||t.calendar);if(o===g){if(!s(e))return g;e=+e;var l=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-l/10);o=u(new Date(c))+l/10}return o}function O(e,r,n){return c(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(S(e)){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push("number"===typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return g}function P(t,e){for(var r=new Array(e),n=0;nt.range[1]&&(n=!n);for(var i=n?-1:1,a=i*e,o=0,l=0;lu)){o=a<(c+u)/2?l:l+1;break}o=l+1}var f=t._B[o]||0;return isFinite(f)?N(e,t._m2,f):0},j=function(e){var r=t._rangebreaks.length;if(!r)return F(e,t._m,t._b);for(var n=0,i=0;it._rangebreaks[i].pmax&&(n=i+1);return F(e,t._m2,t._B[n])}}t.c2l="log"===t.type?E:f,t.l2c="log"===t.type?A:f,t.l2p=B,t.p2l=j,t.c2p="log"===t.type?function(t,e){return B(E(t,e))}:B,t.p2c="log"===t.type?function(t){return A(j(t))}:j,-1!==["linear","-"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(e){return t.l2p(l(e))},t.p2d=t.p2r=j,t.cleanPos=f):"log"===t.type?(t.d2r=t.d2l=function(t,e){return E(l(t),e)},t.r2d=t.r2c=function(t){return A(l(t))},t.d2c=t.r2l=l,t.c2d=t.l2r=f,t.c2r=E,t.l2d=A,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return A(j(t))},t.r2p=function(e){return t.l2p(l(e))},t.p2r=j,t.cleanPos=f):"date"===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=C,t.c2d=t.c2r=t.l2d=t.l2r=O,t.d2p=t.r2p=function(e,r,n){return t.l2p(C(e,0,n))},t.p2d=t.p2r=function(t,e,r){return O(j(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,g,t.calendar)}):"category"===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=R,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=f,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(j(t))},t.r2p=t.d2p,t.p2r=j,t.cleanPos=function(t){return"string"===typeof t&&""!==t?t:f(t)}):"multicategory"===t.type&&(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=R,t.r2c=function(e){var r=R(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=D,t.l2r=t.c2r=f,t.r2l=R,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(j(t))},t.r2p=t.d2p,t.p2r=j,t.cleanPos=function(t){return Array.isArray(t)||"string"===typeof t&&""!==t?t:f(t)},t.setupMultiCategory=function(n){var i,o,s=t._traceIndices,l=t._matchGroup;if(l&&0===t._categories.length)for(var c in l)if(c!==r){var u=e[w.id2name(c)];s=s.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],h=[];for(i=0;ih&&(o[n]=h),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else a.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=w.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&&t._r?"_r":"range",o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f="y"===d;if(f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks&&(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;su&&(p=!p),p&&t._rangebreaks.reverse();var h=p?-1:1;for(t._m2=h*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;si&&(i+=7,oi&&(i+=24,o=n&&o=n&&e=s.min&&(ts.max&&(s.max=n),i=!1)}i&&c.push({min:t,max:n})}};for(n=0;n rect").call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,p=!!e.yr1,d=[];if(f){var h=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=h[1]-h[0],v=g[1]-g[0];d[0]=(h[0]*(1-r)+r*g[0]-h[0])/(h[1]-h[0])*c,d[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(h[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(h[1]*(1-r)+r*g[1])}else d[0]=0,d[2]=c;if(p){var y=a.simpleMap(e.yr0,l.r2l),b=a.simpleMap(e.yr1,l.r2l),x=y[1]-y[0],_=b[1]-b[0];d[1]=(y[1]*(1-r)+r*b[1]-y[1])/(y[0]-y[1])*u,d[3]=u*(1-r+r*_/x),l.range[0]=i.l2r(y[0]*(1-r)+r*b[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*b[1])}else d[1]=0,d[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/d[2]:1,k=p?u/d[3]:1,T=f?d[0]:0,M=p?d[1]:0,A=f?d[0]/d[2]*c:0,S=p?d[1]/d[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,T,M).call(o.setScale,1/w,1/k),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,k),o.setPointGroupScale(n.zoomScalePts,1/w,1/k),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/k)}function v(){for(var r={},n=0;nr.duration?(v(),d=window.cancelAnimationFrame(b)):d=window.requestAnimationFrame(b)}s.redrawComponents(t)}},{"../../components/drawing":389,"../../lib":515,"../../registry":647,"./axes":566,"@plotly/d3":58}],591:[function(t,e,r){"use strict";var n=t("../../registry").traceIs,i=t("./axis_autotype");function a(t,e){if("-"===t.type){var r,a=t._id,c=a.charAt(0);-1!==a.indexOf("scene")&&(a=c);var u=o(e,a,c);if(u)if("histogram"!==u.type||c!=={v:"y",h:"x"}[u.orientation||"v"]){var f=c+"calendar",p=u[f],d={noMultiCategory:!n(u,"cartesian")||n(u,"noMultiCategory")};if("box"===u.type&&u._hasPreCompStats&&c==={h:"x",v:"y"}[u.orientation||"v"]&&(d.noMultiCategory=!0),d.autotypenumbers=t.autotypenumbers,l(u,c)){var h=s(u),g=[];for(r=0;r0&&(i["_"+r+"axes"]||{})[e])return i;if((i[r+"axis"]||r)===e){if(l(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function s(t){return{v:"x",h:"y"}[t.orientation||"v"]}function l(t,e){var r=s(t),i=n(t,"box-violin"),a=n(t._fullInput||{},"candlestick");return i&&!a&&e===r&&void 0===t[r]&&void 0===t[r+"0"]}e.exports=function(t,e,r,n){r("autotypenumbers",n.autotypenumbersDflt),"-"===r("type",(n.splomStash||{}).type)&&(a(e,n.data),"-"===e.type?e.type="linear":t.type=e.type)}},{"../../registry":647,"./axis_autotype":567}],592:[function(t,e,r){"use strict";var n=t("../registry"),i=t("../lib");function a(t,e,r){var n,a,o,s=!1;if("data"===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if("layout"!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&&o[e.prop]!==a&&(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){return Array.isArray(e[0])&&1===e[0].length&&-1!==["string","number"].indexOf(typeof e[0][0])?[{type:"layout",prop:"_currentFrame",value:e[0][0].toString()}]:[]}function s(t,e){var r=[],n=e[0],a={};if("string"===typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return c(a,(function(t,e,n){r.push({type:"layout",prop:t,value:n})}),"",0),r}function l(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},"string"===typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&&(r=a)}return void 0===r&&(r=null),c(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&&(l=Math.min(l,r.length)),a=[];for(var c=0;c0?".":"")+a;i.isPlainObject(o)?c(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&&e._commandObserver&&(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&&e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&&o&&void 0!==s.lookupTable[e.value]&&(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;fu*Math.PI/180}return!1},l.getPath=function(){return a().projection(l)},l.getBounds=function(t){return l.getPath().bounds(t)},l.precision(w.precision),t._isSatellite&&l.tilt(e.tilt).distance(e.distance),u&&l.clipAngle(u-w.clipPad),l}function C(t,e,r){var n,i,a,o=1e-6,s=2.5,l=e[t],c=w.scopeDefaults[e.scope];"lonaxis"===t?(n=c.lonaxisRange,i=c.lataxisRange,a=function(t,e){return[t,e]}):"lataxis"===t&&(n=c.lataxisRange,i=c.lonaxisRange,a=function(t,e){return[e,t]});var u={type:"linear",range:[n[0],n[1]-o],tick0:l.tick0,dtick:l.dtick};g.setConvert(u,r);var f=g.calcTicks(u);e.isScoped||"lonaxis"!==t||f.pop();for(var p=f.length,d=new Array(p),h=0;h0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new A(t)},S.plot=function(t,e,r,n){var i=this;if(n)return i.update(t,e,!0);i._geoCalcData=t,i._fullLayout=e;var a=e[this.id],o=[],s=!1;for(var l in w.layerNameToAdjective)if("frame"!==l&&a["show"+l]){s=!0;break}for(var c=!1,u=0;u0&&o._module.calcGeoJSON(a,e)}if(!r){if(this.updateProjection(t,e))return;this.viewInitial&&this.scope===n.scope||this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(e,n),this.updateDims(e,n),this.updateFx(e,n),h.generalUpdatePerTraceModule(this.graphDiv,this,t,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()},S.updateProjection=function(t,e){var r=this.graphDiv,n=e[this.id],i=e._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,f=l._ax,p=this.projection=E(n),d=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],h=n.center||{},g=o.rotation||{},v=s.range||[],y=l.range||[];if(n.fitbounds){u._length=d[1][0]-d[0][0],f._length=d[1][1]-d[0][1],u.range=m(r,u),f.range=m(r,f);var b=(u.range[0]+u.range[1])/2,x=(f.range[0]+f.range[1])/2;if(n._isScoped)h={lon:b,lat:x};else if(n._isClipped){h={lon:b,lat:x},g={lon:b,lat:x,roll:g.roll};var _=o.type,k=w.lonaxisSpan[_]/2||180,T=w.lataxisSpan[_]/2||90;v=[b-k,b+k],y=[x-T,x+T]}else h={lon:b,lat:x},g={lon:b,lat:g.lat,roll:g.roll}}p.center([h.lon-g.lon,h.lat-g.lat]).rotate([-g.lon,-g.lat,g.roll]).parallels(o.parallels);var M=O(v,y);p.fitExtent(d,M);var A=this.bounds=p.getBounds(M),S=this.fitScale=p.scale(),C=p.translate();if(n.fitbounds){var L=p.getBounds(O(u.range,f.range)),I=Math.min((A[1][0]-A[0][0])/(L[1][0]-L[0][0]),(A[1][1]-A[0][1])/(L[1][1]-L[0][1]));isFinite(I)?p.scale(I*S):c.warn("Something went wrong during"+this.id+"fitbounds computations.")}else p.scale(o.scale*S);var P=this.midPt=[(A[0][0]+A[1][0])/2,(A[0][1]+A[1][1])/2];if(p.translate([C[0]+(P[0]-C[0]),C[1]+(P[1]-C[1])]).clipExtent(A),n._isAlbersUsa){var D=p([h.lon,h.lat]),R=p.translate();p.translate([R[0]-(D[0]-R[0]),R[1]-(D[1]-R[1])])}},S.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function s(t){return"lonaxis"===t||"lataxis"===t}function l(t){return Boolean(w.lineLayers[t])}function c(t){return Boolean(w.fillLayers[t])}var u=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(t){return l(t)||c(t)?e["show"+t]:!s(t)||e[t].showgrid})),d=r.framework.selectAll(".layer").data(u,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append("g").attr("class",(function(t){return"layer "+t})).each((function(t){var e=a[t]=n.select(this);"bg"===t?r.bgRect=e.append("rect").style("pointer-events","all"):s(t)?o[t]=e.append("path").style("fill","none"):"backplot"===t?e.append("g").classed("choroplethlayer",!0):"frontplot"===t?e.append("g").classed("scatterlayer",!0):l(t)?o[t]=e.append("path").style("fill","none").style("stroke-miterlimit",2):c(t)&&(o[t]=e.append("path").style("stroke","none"))})),d.order(),d.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];"frame"===r?n.datum(w.sphereSVG):l(r)||c(r)?n.datum(M(i,i.objects[r])):s(r)&&n.datum(C(r,e,t)).call(f.stroke,e[r].gridcolor).call(p.dashLine,e[r].griddash,e[r].gridwidth),l(r)?n.call(f.stroke,e[a+"color"]).call(p.dashLine,"",e[a+"width"]):c(r)&&n.call(f.fill,e[a+"color"])}))},S.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;p.setRect(this.clipRect,i,a,o,s),this.bgRect.call(p.setRect,i,a,o,s).call(f.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s},S.updateFx=function(t,e){var r=this,i=r.graphDiv,a=r.bgRect,o=t.dragmode,s=t.clickmode;if(!r.isStatic){var u=function(t,e){e.isRect?(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]:(t.lassoPoints={})[r.id]=e.map(h)},f={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&&b(i)}};"pan"===o?(a.node().onmousedown=null,a.call(_(r,e)),a.on("dblclick.zoom",p),i._context._scrollZoom.geo||a.on("wheel.zoom",null)):"select"!==o&&"lasso"!==o||(a.on(".zoom",null),f.prepFn=function(t,e,r){y(t,e,r,f,o)},v.init(f)),a.on("mousemove",(function(){var t=r.projection.invert(c.getPositionFromD3Event());if(!t)return v.unhover(i,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},d.hover(i,n.event,r.id)})),a.on("mouseout",(function(){i._dragging||v.unhover(i,n.event)})),a.on("click",(function(){"select"!==o&&"lasso"!==o&&(s.indexOf("select")>-1&&x(n.event,i,[r.xaxis],[r.yaxis],r.id,f),s.indexOf("event")>-1&&d.click(i,n.event))}))}function p(){var t=r.viewInitial,e={};for(var n in t)e[r.id+"."+n]=t[n];l.call("_guiRelayout",i,e),i.emit("plotly_doubleclick",null)}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},S.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i="clip"+r._uid+t.id;t.clipDef=r._clips.append("clipPath").attr("id",i),t.clipRect=t.clipDef.append("rect"),t.framework=n.select(t.container).append("g").attr("class","geo "+t.id).call(p.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:"x",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:"y",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},g.setConvert(t.mockAxis,r)},S.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,"projection.scale":n.scale},e=t._isScoped?{"center.lon":r.lon,"center.lat":r.lat}:t._isClipped?{"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat}:{"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":i.lon},c.extendFlat(this.viewInitial,e)},S.render=function(t){this._hasMarkerAngles&&t?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},S._render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?u(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr("display",i).attr("transform",n)}},{"../../components/color":367,"../../components/dragelement":386,"../../components/drawing":389,"../../components/fx":407,"../../components/selections":455,"../../lib":515,"../../lib/geo_location_utils":508,"../../lib/topojson_utils":544,"../../registry":647,"../cartesian/autorange":565,"../cartesian/axes":566,"../plots":628,"./constants":596,"./zoom":601,"@plotly/d3":58,"d3-geo":114,"d3-geo-projection":113,"topojson-client":316}],598:[function(t,e,r){"use strict";var n=t("../../plots/get_data").getSubplotCalcData,i=t("../../lib").counterRegex,a=t("./geo"),o="geo",s=i(o),l={};function c(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[o],s=0;s0&&L<0&&(L+=360);var I,P,D,R=(O+L)/2;if(!d){var z=h?f.projRotate:[R,0,0];I=r("projection.rotation.lon",z[0]),r("projection.rotation.lat",z[1]),r("projection.rotation.roll",z[2]),r("showcoastlines",!h&&b)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!b&&void 0)&&r("oceancolor")}d?(P=-96.6,D=38.7):(P=h?R:I,D=(C[0]+C[1])/2),r("center.lon",P),r("center.lat",D),g&&(r("projection.tilt"),r("projection.distance")),m&&r("projection.parallels",f.projParallels||[0,60]),r("projection.scale"),r("showland",!!b&&void 0)&&r("landcolor"),r("showlakes",!!b&&void 0)&&r("lakecolor"),r("showrivers",!!b&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",h&&"usa"!==u&&b)&&(r("countrycolor"),r("countrywidth")),("usa"===u||"north america"===u&&50===c)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),h||r("showframe",b)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete e.projection.scale,h?(delete e.center.lon,delete e.center.lat):v?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:"geo",attributes:s,handleDefaults:c,fullData:r,partition:"y"})}},{"../../lib":515,"../get_data":602,"../subplot_defaults":641,"./constants":596,"./layout_attributes":599}],601:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../registry"),o=Math.PI/180,s=180/Math.PI,l={cursor:"pointer"},c={cursor:"auto"};function u(t,e){var r=t.projection;return(e._isScoped?d:e._isClipped?g:h)(t,r)}function f(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function p(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},p={};function d(t,e){f[n+"."+t]=i.nestedProperty(l,t).get(),a.call("_storeDirectGUIEdit",s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&&(r.set(e),i.nestedProperty(l,t).set(e),p[n+"."+t]=e)}r(d),d("projection.scale",e.scale()/t.fitScale),d("fitbounds",!1),o.emit("plotly_relayout",p)}function d(t,e){var r=f(t,e);function i(){n.select(this).style(l)}function a(){e.scale(n.event.scale).translate(n.event.translate),t.render(!0);var r=e.invert(t.midPt);t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.center.lon":r[0],"geo.center.lat":r[1]})}function o(r){var n=e.invert(t.midPt);r("center.lon",n[0]),r("center.lat",n[1])}function s(){n.select(this).style(c),p(t,e,o)}return r.on("zoomstart",i).on("zoom",a).on("zoomend",s),r}function h(t,e){var r,i,a,o,s,u,d,h,g,m=f(t,e),v=2;function y(t){return e.invert(t)}function b(t){var r=y(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])>v||Math.abs(n[1]-t[1])>v}function x(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=y(r)}function _(){if(u=n.mouse(this),b(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?y(u)&&(h=y(u),d=[o[0]+(h[0]-s[0]),i[1],i[2]],e.rotate(d),o=d):s=y(r=u),g=!0,t.render(!0);var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.center.lon":c[0],"geo.center.lat":c[1],"geo.projection.rotation.lon":-l[0]})}function w(){n.select(this).style(c),g&&p(t,e,k)}function k(r){var n=e.rotate(),i=e.invert(t.midPt);r("projection.rotation.lon",-n[0]),r("center.lon",i[0]),r("center.lat",i[1])}return m.on("zoomstart",x).on("zoom",_).on("zoomend",w),m}function g(t,e){var r,i={r:e.rotate(),k:e.scale()},a=f(t,e),o=E(a,"zoomstart","zoom","zoomend"),s=0,u=a.on;function d(t){s++||t({type:"zoomstart"})}function h(t){t({type:"zoom"})}function g(t){--s||t({type:"zoomend"})}function _(t){var r=e.rotate();t("projection.rotation.lon",-r[0]),t("projection.rotation.lat",-r[1])}return a.on("zoomstart",(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,f=e.translate(),p=v(s);r=m(e,t),u.call(a,"zoom",(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(m(e,a)){e.rotate(s).translate(f);var l=m(e,a),u=b(r,l),d=T(y(p,u)),g=i.r=x(d,r,c);isFinite(g[0])&&isFinite(g[1])&&isFinite(g[2])||(g=c),e.rotate(g),c=g}}else r=m(e,t=a);h(o.of(this,arguments))})),d(o.of(this,arguments))})).on("zoomend",(function(){n.select(this).style(c),u.call(a,"zoom",null),g(o.of(this,arguments)),p(t,e,_)})).on("zoom.redraw",(function(){t.render(!0);var r=e.rotate();t.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":e.scale()/t.fitScale,"geo.projection.rotation.lon":-r[0],"geo.projection.rotation.lat":-r[1]})})),n.rebind(a,o,"on")}function m(t,e){var r=t.invert(e);return r&&isFinite(r[0])&&isFinite(r[1])&&M(r)}function v(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function y(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function b(t,e){if(t&&e){var r=S(t,e),n=Math.sqrt(A(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,A(t,e)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=k(e,2,t[0]);n=k(n,1,t[1]),n=k(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],p=n[2],d=Math.atan2(l,o)*s,h=Math.sqrt(o*o+l*l);Math.abs(f)>h?(a=(f>0?90:-90)-d,i=0):(a=Math.asin(f/h)*s-d,i=Math.sqrt(h*h-f*f));var g=180-a-2*d,m=(Math.atan2(p,u)-Math.atan2(c,i))*s,v=(Math.atan2(p,u)-Math.atan2(c,-i))*s;return _(r[0],r[1],a,m)<=_(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function _(t,e,r,n){var i=w(r-t),a=w(n-e);return Math.sqrt(i*i+a*a)}function w(t){return(t%360+540)%360-180}function k(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function M(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function A(t,e){for(var r=0,n=0,i=t.length;nMath.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*w*(s>=0?1:-1),c.boxEnd[1]l[3]&&(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(w))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/w*(a>=0?1:-1),c.boxEnd[0]l[2]&&(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(w)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&&(v(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&&(v(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&&(c.boxInited=!1);break;case"pan":c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n).999&&(m="turntable"):m="turntable")}else m="turntable";r("dragmode",m),r("hovermode",n.getDfltFromLayout("hovermode"))}e.exports=function(t,e,r){var i=e._basePlotModules.length>1;function a(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0}o(t,e,r,{type:u,attributes:l,handleDefaults:f,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:a,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{"../../../components/color":367,"../../../lib":515,"../../../registry":647,"../../get_data":602,"../../subplot_defaults":641,"./axis_defaults":610,"./layout_attributes":613}],613:[function(t,e,r){"use strict";var n=t("./axis_attributes"),i=t("../../domain").attributes,a=t("../../../lib/extend").extendFlat,o=t("../../../lib").counterRegex;function s(t,e,r){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:e,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}e.exports={_arrayAttrRegexps:[o("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:i({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},{"../../../lib":515,"../../../lib/extend":505,"../../domain":593,"./axis_attributes":609}],614:[function(t,e,r){"use strict";var n=t("../../../lib/str2rgbarray"),i=["xaxis","yaxis","zaxis"];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}function o(t){var e=new a;return e.merge(t),e}a.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=o},{"../../../lib/str2rgbarray":540}],615:[function(t,e,r){"use strict";e.exports=l;var n=t("../../cartesian/axes"),i=t("../../../lib"),a=["xaxis","yaxis","zaxis"],o=[0,0,0];function s(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;a/g," "));c[u]=h,f.tickmode=p}}for(e.ticks=c,u=0;u<3;++u)for(o[u]=.5*(t.glplot.bounds[0][u]+t.glplot.bounds[1][u]),g=0;g<2;++g)e.bounds[g][u]=t.glplot.bounds[g][u];t.contourLevels=s(c)}},{"../../../lib":515,"../../cartesian/axes":566}],616:[function(t,e,r){"use strict";function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=t[4*r+n]*e[r];return i}function i(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}e.exports=i},{}],617:[function(t,e,r){"use strict";var n,i,a=t("../../../stackgl_modules").gl_plot3d,o=a.createCamera,s=a.createScene,l=t("webgl-context"),c=t("has-passive-events"),u=t("../../registry"),f=t("../../lib"),p=f.preserveDrawingBuffer(),d=t("../../plots/cartesian/axes"),h=t("../../components/fx"),g=t("../../lib/str2rgbarray"),m=t("../../lib/show_no_webgl_msg"),v=t("./project"),y=t("./layout/convert"),b=t("./layout/spikes"),x=t("./layout/tick_marks");function _(t,e){var r=document.createElement("div"),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=e,this.id=t.id||"scene",this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=b(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod("annotations3d","convert"),this.drawAnnotations=u.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t=this,e={canvas:t.canvas,gl:t.gl,glOptions:{preserveDrawingBuffer:p,premultipliedAlpha:!0,antialias:!0},container:t.container,axes:t.axesOptions,spikes:t.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:t.camera,pixelRatio:t.pixelRatio};if(t.staticMode){if(!i&&(n=document.createElement("canvas"),!(i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");e.gl=i,e.canvas=n}return e};var k=!0;w.tryCreatePlot=function(){var t=this,e=t.prepareOptions(),r=!0;try{t.glplot=s(e)}catch(n){if(t.staticMode||!k||p)r=!1;else{f.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{p=e.glOptions.preserveDrawingBuffer=!0,t.glplot=s(e)}catch(n){p=e.glOptions.preserveDrawingBuffer=!1,r=!1}}}return k=!1,r},w.initializeGLCamera=function(){var t=this,e=t.fullSceneLayout.camera,r="orthographic"===e.projection.type;t.camera=o(t.container,{center:[e.center.x,e.center.y,e.center.z],eye:[e.eye.x,e.eye.y,e.eye.z],up:[e.up.x,e.up.y,e.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&&(e[t.id+".camera"]=t.getCamera()),t.isAspectChanged(r)&&(e[t.id+".aspectratio"]=t.glplot.getAspectratio(),"manual"!==r[t.id].aspectmode&&(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+".aspectmode"]="manual")),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit("plotly_relayout",e)}};return t.glplot.canvas&&(t.glplot.canvas.addEventListener("mouseup",(function(){i(t)})),t.glplot.canvas.addEventListener("wheel",(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX>r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&&{passive:!1}),t.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==t.fullSceneLayout.dragmode&&0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit("plotly_relayouting",e)}})),t.staticMode||t.glplot.canvas.addEventListener("webglcontextlost",(function(r){e&&e.emit&&e.emit("plotly_webglcontextlost",{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),x(e),e.glplot.axes.update(e.axesOptions);for(var c=Object.keys(e.traces),u=null,p=e.glplot.selection,g=0;g")):"isosurface"===t.type||"volume"===t.type?(k.valueLabel=d.hoverLabelText(e._mockAxis,e._mockAxis.d2l(p.traceCoordinate[3]),t.valuehoverformat),S.push("value: "+k.valueLabel),p.textLabel&&S.push(p.textLabel),b=S.join("
")):b=p.textLabel;var E={x:p.traceCoordinate[0],y:p.traceCoordinate[1],z:p.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:w};h.appendArrayPointValue(E,_,w),t._module.eventData&&(E=_._module.eventData(E,p,_,{},w));var C={points:[E]};if(e.fullSceneLayout.hovermode){var O=[];h.loneHover({trace:_,x:(.5+.5*y[0]/y[3])*s,y:(.5-.5*y[1]/y[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:b,name:u.name,color:h.castHoverOption(_,w,"bgcolor")||u.color,borderColor:h.castHoverOption(_,w,"bordercolor"),fontFamily:h.castHoverOption(_,w,"font.family"),fontSize:h.castHoverOption(_,w,"font.size"),fontColor:h.castHoverOption(_,w,"font.color"),nameLength:h.castHoverOption(_,w,"namelength"),textAlign:h.castHoverOption(_,w,"align"),hovertemplate:f.castOption(_,w,"hovertemplate"),hovertemplateLabels:f.extendFlat({},E,k),eventData:[E]},{container:n,gd:r,inOut_bbox:O}),E.bbox=O[0]}p.buttons&&p.distance<5?r.emit("plotly_click",C):r.emit("plotly_hover",C),this.oldEventData=C}else h.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function e(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(e)};var T=["xaxis","yaxis","zaxis"];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i<3;i++){var a=T[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+"calendar"],u=e["_"+o+"length"];if(f.isArrayOrTypedArray(l))for(var p,d=0;d<(u||l.length);d++)if(f.isArrayOrTypedArray(l[d]))for(var h=0;h0)for(var s=255/o,l=0;l<3;++l)t[a+l]=Math.min(s*t[a+l],255)}}w.plot=function(t,e,r){var n=this;if(n.plotArgs=[t,e,r],!n.glplot.contextLost){var i,a,o,s,l,c,u=e[n.id],f=r[n.id];n.fullLayout=e,n.fullSceneLayout=u,n.axesOptions.merge(e,u),n.spikeOptions.merge(u),n.setViewport(u),n.updateFx(u.dragmode,u.hovermode),n.camera.enableWheel=n.graphDiv._context._scrollZoom.gl3d,n.glplot.setClearColor(g(u.bgcolor)),n.setConvert(l),t?Array.isArray(t)||(t=[t]):t=[];var p=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(o=0;ov[1][o])v[0][o]=-1,v[1][o]=1;else{var L=v[1][o]-v[0][o];v[0][o]-=L/32,v[1][o]+=L/32}if("reversed"===l.autorange){var I=v[0][o];v[0][o]=v[1][o],v[1][o]=I}}else{var P=l.range;v[0][o]=l.r2l(P[0]),v[1][o]=l.r2l(P[1])}v[0][o]===v[1][o]&&(v[0][o]-=1,v[1][o]+=1),y[o]=v[1][o]-v[0][o],n.glplot.setBounds(o,{min:v[0][o]*d[o],max:v[1][o]*d[o]})}var D=u.aspectmode;if("cube"===D)m=[1,1,1];else if("manual"===D){var R=u.aspectratio;m=[R.x,R.y,R.z]}else{if("auto"!==D&&"data"!==D)throw new Error("scene.js aspectRatio was not one of the enumerated types");var z=[1,1,1];for(o=0;o<3;++o){var N=b[c=(l=u[T[o]]).type];z[o]=Math.pow(N.acc,1/N.count)/d[o]}m="data"===D||Math.max.apply(null,z)/Math.min.apply(null,z)<=4?z:[1,1,1]}u.aspectratio.x=f.aspectratio.x=m[0],u.aspectratio.y=f.aspectratio.y=m[1],u.aspectratio.z=f.aspectratio.z=m[2],n.glplot.setAspectratio(u.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:u.aspectratio.x,y:u.aspectratio.y,z:u.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=u.aspectmode);var F=u.domain||null,B=e._size||null;if(F&&B){var j=n.container.style;j.position="absolute",j.left=B.l+F.x[0]*B.w+"px",j.top=B.t+(1-F.y[1])*B.h+"px",j.width=B.w*(F.x[1]-F.x[0])+"px",j.height=B.h*(F.y[1]-F.y[0])+"px"}n.glplot.redraw()}},w.destroy=function(){var t=this;t.glplot&&(t.camera.mouseListener.enabled=!1,t.container.removeEventListener("wheel",t.camera.wheelListener),t.camera=null,t.glplot.dispose(),t.container.parentNode.removeChild(t.container),t.glplot=null)},w.getCamera=function(){var t=this;return t.camera.view.recalcMatrix(t.camera.view.lastT()),E(t.camera)},w.setViewport=function(t){var e=this,r=t.camera;e.camera.lookAt.apply(this,S(r)),e.glplot.setAspectratio(t.aspectratio),"orthographic"===r.projection.type!==e.camera._ortho&&(e.glplot.redraw(),e.glplot.clearRGBA(),e.glplot.dispose(),e.initializeGLPlot())},w.isCameraChanged=function(t){var e=this,r=e.getCamera(),n=f.nestedProperty(t,e.id+".camera").get();function i(t,e,r,n){var i=["up","center","eye"],a=["x","y","z"];return e[i[r]]&&t[i[r]][a[n]]===e[i[r]][a[n]]}var a=!1;if(void 0===n)a=!0;else{for(var o=0;o<3;o++)for(var s=0;s<3;s++)if(!i(r,n,o,s)){a=!0;break}(!n.projection||r.projection&&r.projection.type!==n.projection.type)&&(a=!0)}return a},w.isAspectChanged=function(t){var e=this,r=e.glplot.getAspectratio(),n=f.nestedProperty(t,e.id+".aspectratio").get();return void 0===n||n.x!==r.x||n.y!==r.y||n.z!==r.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this,l=s.fullLayout,c=s.isCameraChanged(t),p=s.isAspectChanged(t),d=c||p;if(d){var h={};c&&(e=s.getCamera(),n=(r=f.nestedProperty(t,s.id+".camera")).get(),h[s.id+".camera"]=n),p&&(i=s.glplot.getAspectratio(),o=(a=f.nestedProperty(t,s.id+".aspectratio")).get(),h[s.id+".aspectratio"]=o),u.call("_storeDirectGUIEdit",t,l._preGUI,h),c&&(r.set(e),f.nestedProperty(l,s.id+".camera").set(e)),p&&(a.set(i),f.nestedProperty(l,s.id+".aspectratio").set(i),s.glplot.redraw())}return d},w.updateFx=function(t,e){var r=this,n=r.camera;if(n)if("orbit"===t)n.mode="orbit",n.keyBindingMode="rotate";else if("turntable"===t){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,c=o.up.z;if(c/Math.sqrt(s*s+l*l+c*c)<.999){var p=r.id+".camera.up",d={x:0,y:0,z:1},h={};h[p]=d;var g=i.layout;u.call("_storeDirectGUIEdit",g,a._preGUI,h),o.up=d,f.nestedProperty(g,p).set(d)}}else n.keyBindingMode=t;r.fullSceneLayout.hovermode=e},w.toImage=function(t){var e=this;t||(t="png"),e.staticMode&&e.container.appendChild(n),e.glplot.redraw();var r=e.glplot.gl,i=r.drawingBufferWidth,a=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var o=new Uint8Array(i*a*4);r.readPixels(0,0,i,a,r.RGBA,r.UNSIGNED_BYTE,o),C(o,i,a),O(o,i,a);var s=document.createElement("canvas");s.width=i,s.height=a;var l,c=s.getContext("2d",{willReadFrequently:!0}),u=c.createImageData(i,a);switch(u.data.set(o),c.putImageData(u,0,0),t){case"jpeg":l=s.toDataURL("image/jpeg");break;case"webp":l=s.toDataURL("image/webp");break;default:l=s.toDataURL("image/png")}return e.staticMode&&e.container.removeChild(n),l},w.setConvert=function(){for(var t=this,e=0;e<3;e++){var r=t.fullSceneLayout[T[e]];d.setConvert(r,t.fullLayout),r.setScale=f.noop}},w.make4thDimension=function(){var t=this,e=t.graphDiv._fullLayout;t._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},d.setConvert(t._mockAxis,e)},e.exports=_},{"../../../stackgl_modules":1133,"../../components/fx":407,"../../lib":515,"../../lib/show_no_webgl_msg":537,"../../lib/str2rgbarray":540,"../../plots/cartesian/axes":566,"../../registry":647,"./layout/convert":611,"./layout/spikes":614,"./layout/tick_marks":615,"./project":616,"has-passive-events":229,"webgl-context":332}],618:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;aOpenStreetMap contributors',o=['\xa9 Carto',a].join(" "),s=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),l={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:a,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}]},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}]},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:o,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}]},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:o,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}]},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:s,tiles:["https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}]},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:s,tiles:["https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}]},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}]}},c=n(l);e.exports={requiredVersion:i,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:l,styleValuesNonMapbox:c,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install mapbox-gl@"+i+"."].join("\n"),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join("\n"),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",c.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join("\n"),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join("\n"),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":'content: ""; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E\')'}}},{"../../lib/sort_object_keys":538}],621:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){var r=t.split(" "),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=["",""],u=[0,0];switch(i){case"top":c[0]="top",u[1]=-l;break;case"bottom":c[0]="bottom",u[1]=l}switch(a){case"left":c[1]="right",u[0]=-s;break;case"right":c[1]="left",u[0]=s}return{anchor:c[0]&&c[1]?c.join("-"):c[0]?c[0]:c[1]?c[1]:"center",offset:u}}},{"../../lib":515}],622:[function(t,e,r){"use strict";var n=t("mapbox-gl/dist/mapbox-gl-unminified"),i=t("../../lib"),a=i.strTranslate,o=i.strScale,s=t("../../plots/get_data").getSubplotCalcData,l=t("../../constants/xmlns_namespaces"),c=t("@plotly/d3"),u=t("../../components/drawing"),f=t("../../lib/svg_text_utils"),p=t("./mapbox"),d="mapbox",h=r.constants=t("./constants");function g(t,e){var r=t._fullLayout;if(""===t._context.mapboxAccessToken)return"";for(var n=[],a=[],o=!1,s=!1,l=0;l1&&i.warn(h.multipleTokensErrorMsg),n[0]):(a.length&&i.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function m(t){return"string"===typeof t&&(-1!==h.styleValuesMapbox.indexOf(t)||0===t.indexOf("mapbox://"))}r.name=d,r.attr="subplot",r.idRoot=d,r.idRegex=r.attrRegex=i.counterRegex(d),r.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},r.layoutAttributes=t("./layout_attributes"),r.supplyLayoutDefaults=t("./layout_defaults"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots[d];if(n.version!==h.requiredVersion)throw new Error(h.wrongVersionErrorMsg);var o=g(t,a);n.accessToken=o;for(var l=0;lw/2){var k=y.split("|").join("
");x.text(k).attr("data-unformatted",k).call(f.convertToTspans,t),_=u.bBox(x.node())}x.attr("transform",a(-3,8-_.height)),b.insert("rect",".static-attribution").attr({x:-_.width-6,y:-_.height-3,width:_.width+6,height:_.height+3,fill:"rgba(255, 255, 255, 0.75)"});var T=1;_.width+6>w&&(T=w/(_.width+6));var M=[n.l+n.w*p.x[1],n.t+n.h*(1-p.y[0])];b.attr("transform",a(M[0],M[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots[d],n=0;n0){for(var r=0;r0}function u(t){var e={},r={};switch(t.type){case"circle":n.extendFlat(r,{"circle-radius":t.circle.radius,"circle-color":t.color,"circle-opacity":t.opacity});break;case"line":n.extendFlat(r,{"line-width":t.line.width,"line-color":t.color,"line-opacity":t.opacity,"line-dasharray":t.line.dash});break;case"fill":n.extendFlat(r,{"fill-color":t.color,"fill-outline-color":t.fill.outlinecolor,"fill-opacity":t.opacity});break;case"symbol":var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":i.placement}),n.extendFlat(r,{"icon-color":t.color,"text-color":i.textfont.color,"text-opacity":t.opacity});break;case"raster":n.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":t.opacity})}return{layout:e,paint:r}}function f(t){var e,r=t.sourcetype,n=t.source,a={type:r};return"geojson"===r?e="data":"vector"===r?e="string"===typeof n?"url":"tiles":"raster"===r?(e="tiles",a.tileSize=256):"image"===r&&(e="url",a.coordinates=t.coordinates),a[e]=n,t.sourceattribution&&(a.attribution=i(t.sourceattribution)),a}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===t.sourcetype&&(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&&this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=f(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if("traces"===t)for(var e=this.subplot.getMapLayers(),r=0;r1)for(r=0;r-1&&m(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf("event")>-1&&c.click(n,e.originalEvent)}}},x.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=function(t,r){r.isRect?(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]:(t.lassoPoints={})[e.id]=r.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off("click",e.onClickInPanHandler),p(o)||f(o)?(r.dragPan.disable(),r.on("zoomstart",e.clearOutline),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",e.clearOutline),e.div.onmousedown=null,e.div.ontouchstart=null,e.div.removeEventListener("touchstart",e.div._ontouchstart),e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on("click",e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},x.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+"px",n.height=r.h*(e.y[1]-e.y[0])+"px",n.left=r.l+e.x[0]*r.w+"px",n.top=r.t+(1-e.y[1])*r.h+"px",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},x.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e=e.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=e._paper.attr("width")-7),r.attr(a);var o=r.select(".js-link-to-tool"),s=r.select(".js-link-spacer"),l=r.select(".js-sourcelinks");t._context.showSources&&t._context.showSources(t),t._context.showLink&&k(t,o),s.text(o.text()&&l.text()?" - ":"")}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit("plotly_beforeexport");var r=n.select(t).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:e+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=x.graphJson(t,!1,"keepdata"),i.node().submit(),r.remove(),t.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],M=["year","month","dayMonth","dayMonthYear"];function A(t,e){var r,n,i=e.length,a=[];for(r=0;r1&&z.length>1){for(s.getComponentMethod("grid","sizeDefaults")(o,a),i=0;i15&&z.length>15&&0===a.shapes.length&&0===a.images.length,x.linkSubplots(c,a,l,n),x.cleanPlot(c,a,l,n);var U=!(!n._has||!n._has("gl2d")),V=!(!a._has||!a._has("gl2d")),H=!(!n._has||!n._has("cartesian"))||U,q=!(!a._has||!a._has("cartesian"))||V;H&&!q?n._bgLayer.remove():q&&!H&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!t._dragging&&h({_fullLayout:n}),O(c,a),y(a,n),s.getComponentMethod("colorscale","crossTraceDefaults")(c,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var G,W=a._tracePreGUI,Y={};for(G in W)Y[G]="old";for(i=0;i0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var p=x.layoutAttributes.width.min,d=x.layoutAttributes.height.min;n1,g=!e.height&&Math.abs(r.height-i)>1;(g||h)&&(h&&(r.width=n),g&&(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,o,l=s.componentsRegistry,c=e._basePlotModules,f=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&&o.includeBasePlot(t,e);for(var p in c.length||c.push(f),e._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[p].sort(u.subplotSort);for(a=0;a1&&(r.l/=v,r.r/=v)}if(d){var y=(r.t+r.b)/d;y>1&&(r.t/=y,r.b/=y)}var b=void 0!==r.xl?r.xl:r.x,_=void 0!==r.xr?r.xr:r.x,w=void 0!==r.yt?r.yt:r.y,k=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:b,size:r.l+m},r:{val:_,size:r.r+m},b:{val:k,size:r.b+m},t:{val:w,size:r.t+m}},g[e]=1}else delete h[e],delete g[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),R(e);var i=e._size,a=e.margin,l=u.extendFlat({},i),c=a.l,f=a.r,p=a.t,d=a.b,h=e._pushmargin,g=e._pushmarginIds,m=e.minreducedwidth,v=e.minreducedheight;if(!1!==e.margin.autoexpand){for(var y in h)g[y]||delete h[y];for(var b in h.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},h){var _=h[b].l||{},w=h[b].b||{},k=_.val,T=_.size,M=w.val,A=w.size;for(var S in h){if(o(T)&&h[S].r){var E=h[S].r.val,C=h[S].r.size;if(E>k){var O=(T*E+(C-r)*k)/(E-k),L=(C*(1-k)+(T-r)*(1-E))/(E-k);O+L>c+f&&(c=O,f=L)}}if(o(A)&&h[S].t){var I=h[S].t.val,P=h[S].t.size;if(I>M){var D=(A*I+(P-n)*M)/(I-M),B=(P*(1-M)+(A-n)*(1-I))/(I-M);D+B>d+p&&(d=D,p=B)}}}}}var j=u.constrain(r-a.l-a.r,z,m),U=u.constrain(n-a.t-a.b,N,v),V=Math.max(0,r-j),H=Math.max(0,n-U);if(V){var q=(c+f)/V;q>1&&(c/=q,f/=q)}if(H){var G=(d+p)/H;G>1&&(d/=G,p/=G)}if(i.l=Math.round(c),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&&x.didMarginChange(l,i)){"_redrawFromAutoMarginCount"in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var W=3*(1+Object.keys(g).length);if(e._redrawFromAutoMarginCount0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&t._transitionData._interruptCallbacks.push((function(){return s.call("redraw",t)})),t._transitionData._interruptCallbacks.push((function(){t.emit("plotly_transitioninterrupted",[])}));var a=0,o=0;function c(){return a++,function(){o++,n||o!==a||l(i)}}r.runFn(c),setTimeout(c())}))}function l(e){if(t._transitionData)return a(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call("redraw",t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit("plotly_transitioned",[])})).then(e)}function c(){if(t._transitionData)return t._transitioning=!1,i(t._transitionData._interruptCallbacks)}var f=[x.previousPromises,c,r.prepareFn,x.rehover,x.reselect,o],p=u.syncOrAsync(f,t);return p&&p.then||(p=Promise.resolve()),p.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function c(t,e){if("function"===typeof t)return e?"_function_":null;if(u.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===["_","["].indexOf(a.charAt(0)))if("function"!==typeof t[a]){if("keepdata"===r){if("src"===a.substr(a.length-3))return}else if("keepstream"===r){if("string"===typeof(n=t[a+"src"])&&n.indexOf(":")>0&&!u.isPlainObject(t.stream))return}else if("keepall"!==r&&"string"===typeof(n=t[a+"src"])&&n.indexOf(":")>0)return;i[a]=c(t[a],e)}else e&&(i[a]="_function")})),i}return Array.isArray(t)?t.map((function(t){return c(t,e)})):u.isTypedArray(t)?u.simpleMap(t,u.identity):u.isJSDate(t)?u.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=c(t);return e&&delete r.fit,r}))};if(!e&&(f.layout=c(s),i)){var p=s._size;f.layout.computed={margin:{b:p.b,l:p.l,r:p.r,t:p.t}}}return l&&(f.frames=c(l)),a&&(f.config=c(t._context,!0)),"object"===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&&n.calc&&(o=n.calc(t,r))}Array.isArray(o)&&o[0]||(o=[{x:p,y:p}]),o[0].t||(o[0].t={}),o[0].trace=r,f[e]=o}}for(H(o,c,u),i=0;i0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]}function v(t){return Math.abs(t)>1e-10?t:0}function y(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a=90||i>90&&a>=450?1:s<=0&&c<=0?0:Math.max(s,c),[i<=180&&a>=180||i>180&&a>=540?-1:o>=0&&l>=0?0:Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?-1:s>=0&&c>=0?0:Math.min(s,c),a>=360?1:o<=0&&l<=0?0:Math.max(o,l),e]}function V(t,e){var r=function(e){return o.angleDist(t,e)};return e[o.findIndexOfMin(e,r)]}function H(t,e,r){return e?(t.attr("display",null),t.attr(r)):t&&t.attr("display","none"),t}e.exports=function(t,e,r){return new F(t,e,r)},B.plot=function(t,e){for(var r=this,n=e[r.id],i=!1,a=0;aT?(g=p,b=(d-(m=p*T))/i.h/2,v=[s[0],s[1]],y=[f[0]+b,f[1]-b]):(m=d,b=(p-(g=d/T))/i.w/2,v=[s[0]+b,s[1]-b],y=[f[0],f[1]]),r.xLength2=g,r.yLength2=m,r.xDomain2=v,r.yDomain2=y;var M,A=r.xOffset2=i.l+i.w*v[0],S=r.yOffset2=i.t+i.h*(1-y[1]),E=r.radius=g/_,C=r.innerRadius=r.getHole(e)*E,O=r.cx=A-E*x[0],L=r.cy=S+E*x[3],I=r.cxx=O-A,P=r.cyy=L-S,D=a.side;"counterclockwise"===D?(M=D,D="top"):"clockwise"===D&&(M=D,D="bottom"),r.radialAxis=r.mockAxis(t,e,a,{_id:"x",side:D,_trueSide:M,domain:[C/i.w,E/i.w]}),r.angularAxis=r.mockAxis(t,e,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(t,e),r.updateAngularAxis(t,e),r.updateRadialAxis(t,e),r.updateRadialAxisTitle(t,e),r.xaxis=r.mockCartesianAxis(t,e,{_id:"x",domain:v}),r.yaxis=r.mockCartesianAxis(t,e,{_id:"y",domain:y});var R=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",R).attr("transform",l(I,P)),n.frontplot.attr("transform",l(A,S)).call(u.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",R).attr("transform",l(O,L)).call(c.fill,e.bgcolor)},B.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return h(i,e,t),i},B.mockCartesianAxis=function(t,e,r){var n=this,i=n.isSmith,a=r._id,s=o.extendFlat({type:"linear"},r);d(s,t);var l={x:[0,2],y:[1,3]};return s.setRange=function(){var t=n.sectorBBox,r=l[a],i=n.radialAxis._rl,o=(i[1]-i[0])/(1-n.getHole(e));s.range=[t[r[0]]*o,t[r[1]]*o]},s.isPtWithinRange="x"!==a||i?function(){return!0}:function(t){return n.isPtInside(t)},s.setRange(),s.setScale(),s},B.doAutoRange=function(t,e){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(e);g(n,i);var o=i.range;a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")]},B.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,d=r.cy,h=r.getRadial(e),g=R(r.getSector(e)[0],360),m=r.radialAxis,v=u90&&g<=270&&(m.tickangle=180);var b=y?function(t){var e=P(r,O([t.x,0]));return l(e[0]-f,e[1]-d)}:function(t){return l(m.l2p(t.x)+u,0)},x=y?function(t){return I(r,t.x,-1/0,1/0)}:function(t){return r.pathArc(m.r2p(t.x)+u)},_=j(h);if(r.radialTickLayout!==_&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=_),v){m.setScale();var w=0,k=y?(m.tickvals||[]).filter((function(t){return t>=0})).map((function(t){return p.tickText(m,t,!0,!1)})):p.calcTicks(m),T=y?k:p.clipEnds(m,k),M=p.getTickSigns(m)[2];y&&(("top"===m.ticks&&"bottom"===m.side||"bottom"===m.ticks&&"top"===m.side)&&(M=-M),"top"===m.ticks&&"top"===m.side&&(w=-m.ticklen),"bottom"===m.ticks&&"bottom"===m.side&&(w=m.ticklen)),p.drawTicks(n,m,{vals:k,layer:i["radial-axis"],path:p.makeTickPath(m,0,M),transFn:b,crisp:!1}),p.drawGrid(n,m,{vals:T,layer:i["radial-grid"],path:x,transFn:o.noop,crisp:!1}),p.drawLabels(n,m,{vals:k,layer:i["radial-axis"],transFn:b,labelFns:p.makeLabelFns(m,w)})}var A=r.radialAxisAngle=r.vangles?N(V(z(h.angle),r.vangles)):h.angle,S=l(f,d),E=S+s(-A);H(i["radial-axis"],v&&(h.showticklabels||h.ticks),{transform:E}),H(i["radial-grid"],v&&h.showgrid,{transform:y?"":S}),H(i["radial-line"].select("line"),v&&h.showline,{x1:y?-a:u,y1:0,x2:a,y2:0,transform:E}).attr("stroke-width",h.linewidth).call(c.stroke,h.linecolor)},B.updateRadialAxisTitle=function(t,e,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(e),c=n.id+"title",f=0;if(l.title){var p=u.bBox(n.layers["radial-axis"].node()).height,d=l.title.font.size,h=l.side;f="top"===h?d:"counterclockwise"===h?-(p+.4*d):p+.8*d}var g=void 0!==r?r:n.radialAxisAngle,m=z(g),v=Math.cos(m),y=Math.sin(m),x=o+a/2*v+f*y,_=s-a/2*y+f*v;n.layers["radial-axis-title"]=b.draw(i,c,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:D(i,"Click to enter radial axis title"),attributes:{x:x,y:_,"text-anchor":"middle"},transform:{rotate:-g}})}},B.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,d=r.cy,h=r.getAngular(e),g=r.angularAxis,m=r.isSmith;m||(r.fillViewInitialKey("angularaxis.rotation",h.rotation),g.setGeometry(),g.setScale());var v=m?function(t){var e=P(r,O([0,t.x]));return Math.atan2(e[0]-f,e[1]-d)-Math.PI/2}:function(t){return g.t2g(t.x)};"linear"===g.type&&"radians"===g.thetaunit&&(g.tick0=N(g.tick0),g.dtick=N(g.dtick));var y=function(t){return l(f+a*Math.cos(t),d-a*Math.sin(t))},b=m?function(t){var e=P(r,O([0,t.x]));return l(e[0],e[1])}:function(t){return y(v(t))},x=m?function(t){var e=P(r,O([0,t.x])),n=Math.atan2(e[0]-f,e[1]-d)-Math.PI/2;return l(e[0],e[1])+s(-N(n))}:function(t){var e=v(t);return y(e)+s(-N(e))},_=m?function(t){return L(r,t.x,0,1/0)}:function(t){var e=v(t),r=Math.cos(e),n=Math.sin(e);return"M"+[f+u*r,d-u*n]+"L"+[f+a*r,d-a*n]},w=p.makeLabelFns(g,0).labelStandoff,k={xFn:function(t){var e=v(t);return Math.cos(e)*w},yFn:function(t){var e=v(t),r=Math.sin(e)>0?.2:1;return-Math.sin(e)*(w+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=v(t),r=Math.cos(e);return Math.abs(r)<.1?"middle":r>0?"start":"end"},heightFn:function(t,e,r){var n=v(t);return-.5*(1+Math.sin(n))*r}},T=j(h);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+g._id+"tick").remove(),r.angularTickLayout=T);var M,S=m?[1/0].concat(g.tickvals||[]).map((function(t){return p.tickText(g,t,!0,!1)})):p.calcTicks(g);if(m&&(S[0].text="\u221e",S[0].fontSize*=1.75),"linear"===e.gridshape?(M=S.map(v),o.angleDelta(M[0],M[1])<0&&(M=M.slice().reverse())):M=null,r.vangles=M,"category"===g.type&&(S=S.filter((function(t){return o.isAngleInsideSector(v(t),r.sectorInRad)}))),g.visible){var E="inside"===g.ticks?-1:1,C=(g.linewidth||1)/2;p.drawTicks(n,g,{vals:S,layer:i["angular-axis"],path:"M"+E*C+",0h"+E*g.ticklen,transFn:x,crisp:!1}),p.drawGrid(n,g,{vals:S,layer:i["angular-grid"],path:_,transFn:o.noop,crisp:!1}),p.drawLabels(n,g,{vals:S,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:b,labelFns:k})}H(i["angular-line"].select("path"),h.showline,{d:r.pathSubplot(),transform:l(f,d)}).attr("stroke-width",h.linewidth).call(c.stroke,h.linecolor)},B.updateFx=function(t,e){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1)),this.updateHoverAndMainDrag(t))},B.updateHoverAndMainDrag=function(t){var e,r,s=this,c=s.isSmith,u=s.gd,f=s.layers,p=t._zoomlayer,d=S.MINZOOM,h=S.OFFEDGE,g=s.radius,b=s.innerRadius,k=s.cx,T=s.cy,M=s.cxx,A=s.cyy,C=s.sectorInRad,O=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,D=E.findEnclosingVertexAngles,R=S.cornerHalfWidth,z=S.cornerLen/2,N=m.makeDragger(f,"path","maindrag",!1===t.dragmode?"none":"crosshair");n.select(N).attr("d",s.pathSubplot()).attr("transform",l(k,T)),N.onmousemove=function(t){y.hover(u,t,s.id),u._fullLayout._lasthover=N,u._fullLayout._hoversubplot=s.id},N.onmouseout=function(t){u._dragging||v.unhover(u,t)};var F,B,j,U,V,H,q,G,W,Y={element:N,gd:u,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function X(t,e){return Math.sqrt(t*t+e*e)}function Z(t,e){return X(t-M,e-A)}function K(t,e){return Math.atan2(A-e,t-M)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function $(t,e){if(0===t)return s.pathSector(2*R);var r=z/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,g)),o=a-R,l=a+R;return"M"+J(o,n)+"A"+[o,o]+" 0,0,0 "+J(o,i)+"L"+J(l,i)+"A"+[l,l]+" 0,0,1 "+J(l,n)+"Z"}function Q(t,e,r){if(0===t)return s.pathSector(2*R);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&&c){var u=c/l,f=-1/u,p=P(R,u,l,c);n=P(z,f,p[0][0],p[0][1]),i=P(z,f,p[1][0],p[1][1])}else{var d,h;c?(d=z,h=R):(d=R,h=z),n=[[l-d,c-h],[l+d,c-h]],i=[[l-d,c+h],[l+d,c+h]]}return"M"+n.join("L")+"L"+i.reverse().join("L")+"Z"}function tt(){j=null,U=null,V=s.pathSubplot(),H=!1;var t=u._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(G=m.makeZoombox(p,q,k,T,V)).attr("fill-rule","evenodd"),W=m.makeCorners(p,k,T),w(u)}function et(t,e){return e=Math.max(Math.min(e,g),b),td?(t-1&&1===t&&_(e,u,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf("event")>-1&&y.click(u,e,s.id)}Y.prepFn=function(t,n,i){var a=u._fullLayout.dragmode,s=N.getBoundingClientRect();u._fullLayout._calcInverseTransform(u);var l=u._fullLayout._invTransform;e=u._fullLayout._invScaleX,r=u._fullLayout._invScaleY;var f=o.apply3DTransform(l)(n-s.left,i-s.top);if(F=f[0],B=f[1],O){var p=E.findPolygonOffset(g,C[0],C[1],O);F+=M+p[0],B+=A+p[1]}switch(a){case"zoom":Y.clickFn=lt,c||(Y.moveFn=O?at:nt,Y.doneFn=ot,tt(t,n,i));break;case"select":case"lasso":x(t,n,i,Y,a)}},v.init(Y)},B.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,p=i.innerRadius,d=i.cx,h=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,b=y/2;if(g.visible){var x,_,k,A=z(i.radialAxisAngle),E=g._rl,C=E[0],O=E[1],L=E[r],I=.75*(E[1]-E[0])/(1-i.getHole(e))/f;r?(x=d+(f+b)*Math.cos(A),_=h-(f+b)*Math.sin(A),k="radialdrag"):(x=d+(p-b)*Math.cos(A),_=h-(p-b)*Math.sin(A),k="radialdrag-inner");var P,D,R,F=m.makeRectDragger(u,k,"crosshair",-b,-b,y,y),B={element:F,gd:c};!1===t.dragmode&&(B.dragmode=!1),H(n.select(F),g.visible&&p0===(r?R>C:Rn?function(t){return t<=0}:function(t){return t>=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}function l(t,e){return"degrees"===e?a(t):t}function c(t,e){return"degrees"===e?o(t):t}function u(t,e){var r=t.type;if("linear"===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return l(i(t),e)},t.c2d=function(t,e){return s(c(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&&"linear"===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o0?1:0}function i(t){var e=t[0],r=t[1];if(!isFinite(e)||!isFinite(r))return[1,0];var n=(e+1)*(e+1)+r*r;return[(e*e+r*r-1)/n,2*r/n]}function a(t,e){var r=e[0],n=e[1];return[r*t.radius+t.cx,-n*t.radius+t.cy]}function o(t,e){return e*t.radius}function s(t,e,r,n){var s=a(t,i([r,e])),l=s[0],c=s[1],u=a(t,i([n,e])),f=u[0],p=u[1];if(0===e)return["M"+l+","+c,"L"+f+","+p].join(" ");var d=o(t,1/Math.abs(e));return["M"+l+","+c,"A"+d+","+d+" 0 0,"+(e<0?1:0)+" "+f+","+p].join(" ")}function l(t,e,r,s){var l=o(t,1/(e+1)),c=a(t,i([e,r])),u=c[0],f=c[1],p=a(t,i([e,s])),d=p[0],h=p[1];if(n(r)!==n(s)){var g=a(t,i([e,0]));return["M"+u+","+f,"A"+l+","+l+" 0 0,"+(00){for(var n=[],i=0;i=u&&(p.min=0,h.min=0,m.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}function g(t,e,r,n){var i=p[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o("uirevision",n.uirevision),e.type="linear";var d=o("color"),h=d!==i.color.dflt?d:r.font.color,g=e._name.charAt(0).toUpperCase(),m="Component "+g,v=o("title.text",m);e._hovertitle=v===m?v:g,a.coerceFont(o,"title.font",{family:r.font.family,size:a.bigFont(r.font.size),color:h}),o("min"),u(t,e,o,"linear"),l(t,e,o,"linear"),s(t,e,o,"linear"),c(t,e,o,{outerTicks:!0}),o("showticklabels")&&(a.coerceFont(o,"tickfont",{family:r.font.family,size:r.font.size,color:h}),o("tickangle"),o("tickformat")),f(t,e,o,{dfltColor:d,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o("hoverformat"),o("layer")}e.exports=function(t,e,r){o(t,e,r,{type:"ternary",attributes:p,handleDefaults:h,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{"../../components/color":367,"../../lib":515,"../../plot_api/plot_template":555,"../cartesian/line_grid_defaults":581,"../cartesian/prefix_suffix_defaults":583,"../cartesian/tick_label_defaults":587,"../cartesian/tick_mark_defaults":588,"../cartesian/tick_value_defaults":589,"../subplot_defaults":641,"./layout_attributes":644}],646:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("tinycolor2"),a=t("../../registry"),o=t("../../lib"),s=o.strTranslate,l=o._,c=t("../../components/color"),u=t("../../components/drawing"),f=t("../cartesian/set_convert"),p=t("../../lib/extend").extendFlat,d=t("../plots"),h=t("../cartesian/axes"),g=t("../../components/dragelement"),m=t("../../components/fx"),v=t("../../components/dragelement/helpers"),y=v.freeMode,b=v.rectMode,x=t("../../components/titles"),_=t("../../components/selections").prepSelect,w=t("../../components/selections").selectOnClick,k=t("../../components/selections").clearOutline,T=t("../../components/selections").clearSelectionsCache,M=t("../cartesian/constants");function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=this,n=e[r.id],i=e._size;r._hasClipOnAxisFalse=!1;for(var a=0;aE*x?i=(a=x)*E:a=(i=b)/E,o=v*i/b,l=y*a/x,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,d.x0=r,d.y0=n,d.w=i,d.h=a,d.sum=_,d.xaxis={type:"linear",range:[w+2*T-_,_-w-2*k],domain:[g-o/2,g+o/2],_id:"x"},f(d.xaxis,d.graphDiv._fullLayout),d.xaxis.setScale(),d.xaxis.isPtWithinRange=function(t){return t.a>=d.aaxis.range[0]&&t.a<=d.aaxis.range[1]&&t.b>=d.baxis.range[1]&&t.b<=d.baxis.range[0]&&t.c>=d.caxis.range[1]&&t.c<=d.caxis.range[0]},d.yaxis={type:"linear",range:[w,_-k-T],domain:[m-l/2,m+l/2],_id:"y"},f(d.yaxis,d.graphDiv._fullLayout),d.yaxis.setScale(),d.yaxis.isPtWithinRange=function(){return!0};var M=d.yaxis.domain[0],A=d.aaxis=p({},t.aaxis,{range:[w,_-k-T],side:"left",tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:"free",position:0,_id:"y",_length:i});f(A,d.graphDiv._fullLayout),A.setScale();var S=d.baxis=p({},t.baxis,{range:[_-w-T,k],side:"bottom",domain:d.xaxis.domain,anchor:"free",position:0,_id:"x",_length:i});f(S,d.graphDiv._fullLayout),S.setScale();var C=d.caxis=p({},t.caxis,{range:[_-w-k,T],side:"right",tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:"free",position:0,_id:"y",_length:i});f(C,d.graphDiv._fullLayout),C.setScale();var O="M"+r+","+(n+a)+"h"+i+"l-"+i/2+",-"+a+"Z";d.clipDef.select("path").attr("d",O),d.layers.plotbg.select("path").attr("d",O);var L="M0,"+a+"h"+i+"l-"+i/2+",-"+a+"Z";d.clipDefRelative.select("path").attr("d",L);var I=s(r,n);d.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",I),d.clipDefRelative.select("path").attr("transform",null);var P=s(r-S._offset,n+a);d.layers.baxis.attr("transform",P),d.layers.bgrid.attr("transform",P);var D=s(r+i/2,n)+"rotate(30)"+s(0,-A._offset);d.layers.aaxis.attr("transform",D),d.layers.agrid.attr("transform",D);var R=s(r+i/2,n)+"rotate(-30)"+s(0,-C._offset);d.layers.caxis.attr("transform",R),d.layers.cgrid.attr("transform",R),d.drawAxes(!0),d.layers.aline.select("path").attr("d",A.showline?"M"+r+","+(n+a)+"l"+i/2+",-"+a:"M0,0").call(c.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),d.layers.bline.select("path").attr("d",S.showline?"M"+r+","+(n+a)+"h"+i:"M0,0").call(c.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),d.layers.cline.select("path").attr("d",C.showline?"M"+(r+i/2)+","+n+"l"+i/2+","+a:"M0,0").call(c.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),d.graphDiv._context.staticPlot||d.initInteractions(),u.setClipUrl(d.layers.frontplot,d._hasClipOnAxisFalse?null:d.clipId,d.graphDiv)},S.drawAxes=function(t){var e=this,r=e.graphDiv,n=e.id.substr(7)+"title",i=e.layers,a=e.aaxis,o=e.baxis,s=e.caxis;if(e.drawAx(a),e.drawAx(o),e.drawAx(s),t){var c=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?.75*s.tickfont.size:0)+("outside"===s.ticks?.87*s.ticklen:0)),u=(o.showticklabels?o.tickfont.size:0)+("outside"===o.ticks?o.ticklen:0)+3;i["a-title"]=x.draw(r,"a"+n,{propContainer:a,propName:e.id+".aaxis.title",placeholder:l(r,"Click to enter Component A title"),attributes:{x:e.x0+e.w/2,y:e.y0-a.title.font.size/3-c,"text-anchor":"middle"}}),i["b-title"]=x.draw(r,"b"+n,{propContainer:o,propName:e.id+".baxis.title",placeholder:l(r,"Click to enter Component B title"),attributes:{x:e.x0-u,y:e.y0+e.h+.83*o.title.font.size+u,"text-anchor":"middle"}}),i["c-title"]=x.draw(r,"c"+n,{propContainer:s,propName:e.id+".caxis.title",placeholder:l(r,"Click to enter Component C title"),attributes:{x:e.x0+e.w+u,y:e.y0+e.h+.83*s.title.font.size+u,"text-anchor":"middle"}})}},S.drawAx=function(t){var e=this,r=e.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=e.layers[n],l=30,c=i+"tickLayout",u=C(t);e[c]!==u&&(s.selectAll("."+a+"tick").remove(),e[c]=u),t.setScale();var f=h.calcTicks(t),p=h.clipEnds(t,f),d=h.makeTransTickFn(t),g=h.getTickSigns(t)[2],m=o.deg2rad(l),v=g*(t.linewidth||1)/2,y=g*t.ticklen,b=e.w,x=e.h,_="b"===i?"M0,"+v+"l"+Math.sin(m)*y+","+Math.cos(m)*y:"M"+v+",0l"+Math.cos(m)*y+","+-Math.sin(m)*y,w={a:"M0,0l"+x+",-"+b/2,b:"M0,0l-"+b/2+",-"+x,c:"M0,0l-"+x+","+b/2}[i];h.drawTicks(r,t,{vals:"inside"===t.ticks?p:f,layer:s,path:_,transFn:d,crisp:!1}),h.drawGrid(r,t,{vals:p,layer:e.layers[i+"grid"],path:w,transFn:d,crisp:!1}),h.drawLabels(r,t,{vals:f,layer:s,transFn:d,labelFns:h.makeLabelFns(t,0,l)})};var O=M.MINZOOM/2+.87,L="m-0.87,.5h"+O+"v3h-"+(O+5.2)+"l"+(O/2+2.6)+",-"+(.87*O+4.5)+"l2.6,1.5l-"+O/2+","+.87*O+"Z",I="m0.87,.5h-"+O+"v3h"+(O+5.2)+"l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-2.6,1.5l"+O/2+","+.87*O+"Z",P="m0,1l"+O/2+","+.87*O+"l2.6,-1.5l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-"+(O/2+2.6)+","+(.87*O+4.5)+"l2.6,1.5l"+O/2+",-"+.87*O+"Z",D="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",R=!0;function z(t){n.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}S.clearOutline=function(){T(this.dragOptions),k(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,p,d,h,v,x,k,T,A=this,S=A.layers.plotbg.select("path").node(),C=A.graphDiv,O=C._fullLayout._zoomlayer;function N(t){var e={};return e[A.id+".aaxis.min"]=t.a,e[A.id+".baxis.min"]=t.b,e[A.id+".caxis.min"]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;z(C),2===t&&(C.emit("plotly_doubleclick",null),a.call("_guiRelayout",C,N({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===t&&w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf("event")>-1&&m.click(C,e,A.id)}function B(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},d=f,p=A.aaxis.range[1]-f.a,h=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v="M0,"+A.h+"L"+A.w/2+", 0L"+A.w+","+A.h+"Z",x=!1,k=O.append("path").attr("class","zoombox").attr("transform",s(A.x0,A.y0)).style({fill:h>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),T=O.append("path").attr("class","zoombox-corners").attr("transform",s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),A.clearOutline(C)}function j(t,e){return 1-e/A.h}function U(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function V(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function H(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,j(r,n),j(o,s))),c=Math.max(0,Math.min(1,U(r,n),U(o,s))),u=Math.max(0,Math.min(1,V(r,n),V(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,b=m-g,_=(1-l)*A.h,w=_-b/E;b.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),T.transition().style("opacity",1).duration(200),x=!0),C.emit("plotly_relayouting",N(d))}function q(){z(C),d!==f&&(a.call("_guiRelayout",C,N(d)),R&&C.data&&C._context.showTips&&(o.notifier(l(C,"Double-click to zoom back out"),"long"),R=!1))}function G(){f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},d=f}function W(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(d={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,d.b,d.c].sort(o.sorterAsc),a={a:i.indexOf(d.a),b:i.indexOf(d.b),c:i.indexOf(d.c)};i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),d={a:i[a.a],b:i[a.b],c:i[a.c]},e=(f.a-d.a)*A.yaxis._m,t=(f.c-d.c-f.b+d.b)*A.xaxis._m);var l=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",l);var c=s(-t,-e);A.clipDefRelative.select("path").attr("transform",c),A.aaxis.range=[d.a,A.sum-d.b-d.c],A.baxis.range=[A.sum-d.a-d.c,d.b],A.caxis.range=[A.sum-d.a-d.b,d.c],A.drawAxes(!1),A._hasClipOnAxisFalse&&A.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,A),C.emit("plotly_relayouting",N(d))}function Y(){a.call("_guiRelayout",C,N(d))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(r,n,i){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var a=A.dragOptions.dragmode=C._fullLayout.dragmode;y(a)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,"zoom"===a?(A.dragOptions.moveFn=H,A.dragOptions.clickFn=F,A.dragOptions.doneFn=q,B(r,n,i)):"pan"===a?(A.dragOptions.moveFn=W,A.dragOptions.clickFn=F,A.dragOptions.doneFn=Y,G(),A.clearOutline(C)):(b(a)||y(a))&&_(r,n,i,A.dragOptions,a)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{"../../components/color":367,"../../components/dragelement":386,"../../components/dragelement/helpers":385,"../../components/drawing":389,"../../components/fx":407,"../../components/selections":455,"../../components/titles":476,"../../lib":515,"../../lib/extend":505,"../../registry":647,"../cartesian/axes":566,"../cartesian/constants":573,"../cartesian/set_convert":585,"../plots":628,"@plotly/d3":58,tinycolor2:313}],647:[function(t,e,r){"use strict";var n=t("./lib/loggers"),i=t("./lib/noop"),a=t("./lib/push_unique"),o=t("./lib/is_plain_object"),s=t("./lib/dom").addStyleRule,l=t("./lib/extend"),c=t("./plots/attributes"),u=t("./plots/layout_attributes"),f=l.extendFlat,p=l.extendDeepAll;function d(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log("Type "+e+" already registered");else{r.subplotsRegistry[t.basePlotModule.name]||h(t.basePlotModule);for(var o={},l=0;l-1}e.exports=function(t,e){var r,i=t.data,c=t.layout,u=o([],i),f=o({},c,s(e.tileClass)),p=t._context||{};if(e.width&&(f.width=e.width),e.height&&(f.height=e.height),"thumbnail"===e.tileClass||"themes__thumb"===e.tileClass){f.annotations=[];var d=Object.keys(f);for(r=0;r")?"":e.html(t).text()}));return e.remove(),r}function p(t){return t.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}e.exports=function(t,e,r){var d,h=t._fullLayout,g=h._paper,m=h._toppaper,v=h.width,y=h.height;g.insert("rect",":first-child").call(a.setRect,0,0,v,y).call(o.fill,h.paper_bgcolor);var b=h._basePlotModules||[];for(d=0;df+c||!n(u))}for(var d=0;da))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e0?e+=r:u<0&&(e-=r)}return e}function R(t){var e=u,r=t.b,i=D(t);return n.inbox(r-e,i-e,_+(i-e)/(i-r)-1)}function z(t){var e=u,r=t.b,i=D(t);return n.inbox(r-e,i-e,w+(i-e)/(i-r)-1)}var N=t[f+"a"],F=t[p+"a"];function B(t){return(d(t)+h(t))/2}g=Math.abs(N.r2c(N.range[1])-N.r2c(N.range[0]));var j=n.getDistanceFunction(i,d,h,B);if(n.getClosest(m,j,t),!1!==t.index&&m[t.index].p!==c){T||(C=function(t){return Math.min(M(t),t.p-y.bargroupwidth/2)},O=function(t){return Math.max(A(t),t.p+y.bargroupwidth/2)});var U=m[t.index],V=v.base?U.b+U.s:U.s;t[p+"0"]=t[p+"1"]=F.c2p(U[p],!0),t[p+"LabelVal"]=V;var H=y.extents[y.extents.round(U.p)];t[f+"0"]=N.c2p(b?C(U):H[0],!0),t[f+"1"]=N.c2p(b?O(U):H[1],!0);var q=void 0!==U.orig_p;return t[f+"LabelVal"]=q?U.orig_p:U.p,t.labelLabel=l(N,t[f+"LabelVal"],v[f+"hoverformat"]),t.valueLabel=l(F,t[p+"LabelVal"],v[p+"hoverformat"]),t.baseLabel=l(F,U.b,v[p+"hoverformat"]),t.spikeDistance=(z(U)+P(U))/2,t[f+"Spike"]=N.c2p(U.p,!0),o(U,v,t),t.hovertemplate=v.hovertemplate,t}}function p(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&&i?n:void 0}e.exports={hoverPoints:u,hoverOnBars:f,getTraceColor:p}},{"../../components/color":367,"../../components/fx":407,"../../constants/numerical":491,"../../lib":515,"../../plots/cartesian/axes":566,"../../registry":647,"./helpers":663}],665:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc").crossTraceCalc,colorbar:t("../scatter/marker_colorbar"),arraysToCalcdata:t("./arrays_to_calcdata"),plot:t("./plot").plot,style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,eventData:t("./event_data"),selectPoints:t("./select"),moduleType:"trace",name:"bar",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":578,"../scatter/marker_colorbar":954,"./arrays_to_calcdata":656,"./attributes":657,"./calc":658,"./cross_trace_calc":660,"./defaults":661,"./event_data":662,"./hover":664,"./layout_attributes":666,"./layout_defaults":667,"./plot":668,"./select":669,"./style":671}],666:[function(t,e,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],667:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../plots/cartesian/axes"),a=t("../../lib"),o=t("./layout_attributes");e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},p=s("barmode"),d=0;d0}function E(t,e,r,o,u,f){var p=e.xaxis,h=e.yaxis,m=t._fullLayout;u||(u={mode:m.barmode,norm:m.barmode,gap:m.bargap,groupgap:m.bargroupgap},d("bar",m));var v=a.makeTraceGroups(o,r,"trace bars").each((function(r){var o=n.select(this),c=r[0].trace,d="waterfall"===c.type,v="funnel"===c.type,y="bar"===c.type||v,b=0;d&&c.connector.visible&&"between"===c.connector.mode&&(b=c.connector.line.width/2);var x="h"===c.orientation,_=S(u),w=a.ensureSingle(o,"g","points"),E=k(c),O=w.selectAll("g.point").data(a.identity,E);O.enter().append("g").classed("point",!0),O.exit().remove(),O.each((function(o,d){var v,w,k=n.select(this),S=M(o,p,h,x),E=S[0][0],O=S[0][1],L=S[1][0],I=S[1][1],P=0===(x?O-E:I-L);if(P&&y&&g.getLineWidth(c,o)&&(P=!1),P||(P=!i(E)||!i(O)||!i(L)||!i(I)),o.isBlank=P,P&&(x?O=E:I=L),b&&!P&&(x?(E-=T(E,O)*b,O+=T(E,O)*b):(L-=T(L,I)*b,I+=T(L,I)*b)),"waterfall"===c.type){if(!P){var D=c[o.dir].marker;v=D.line.width,w=D.color}}else v=g.getLineWidth(c,o),w=o.mc||c.marker.color;function R(t){var e=n.round(v/2%1,2);return 0===u.gap&&0===u.groupgap?n.round(Math.round(t)-e,2):t}function z(t,e,r){return r&&t===e?t:Math.abs(t-e)>=2?R(t):t>e?Math.ceil(t):Math.floor(t)}if(!t._context.staticPlot){var N=s.opacity(w)<1||v>.01?R:z;E=N(E,O,x),O=N(O,E,x),L=N(L,I,!x),I=N(I,L,!x)}var F=A(a.ensureSingle(k,"path"),m,u,f);if(F.style("vector-effect","non-scaling-stroke").attr("d",isNaN((O-E)*(I-L))||P&&t._context.staticPlot?"M0,0Z":"M"+E+","+L+"V"+I+"H"+O+"V"+L+"Z").call(l.setClipUrl,e.layerClipId,t),!m.uniformtext.mode&&_){var B=l.makePointStyleFns(c);l.singlePointStyle(o,F,c,B,t)}C(t,e,k,r,d,E,O,L,I,u,f),e.layerClipId&&l.hideOutsideRangePoint(o,k.select("text"),p,h,c.xcalendar,c.ycalendar)}));var L=!1===c.cliponaxis;l.setClipUrl(o,L?null:e.layerClipId,t)}));c.getComponentMethod("errorbars","plot")(t,v,e,u)}function C(t,e,r,n,i,s,c,u,f,d,g){var m,v=e.xaxis,y=e.yaxis,b=t._fullLayout;function x(e,r,n){return a.ensureSingle(e,"text").text(r).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(l.font,n).call(o.convertToTspans,t)}var w=n[0].trace,k="h"===w.orientation,T=D(b,n,i,v,y);m=R(w,i);var M="stack"===d.mode||"relative"===d.mode,S=n[i],E=!M||S._outmost;if(T&&"none"!==m&&(!S.isBlank&&s!==c&&u!==f||"auto"!==m&&"inside"!==m)){var C=b.font,O=h.getBarColor(n[i],w),L=h.getInsideTextFont(w,i,C,O),z=h.getOutsideTextFont(w,i,C),N=r.datum();k?"log"===v.type&&N.s0<=0&&(s=v.range[0]0&&U>0&&(j<=H&&U<=q||j<=q&&U<=H||(k?H>=j*(q/U):q>=U*(H/j)))?m="inside":(m="outside",F.remove(),F=null)):m="inside"),!F){var G=(F=x(r,T,V=a.ensureUniformFontSize(t,"outside"===m?z:L))).attr("transform");if(F.attr("transform",""),j=(B=l.bBox(F.node())).width,U=B.height,F.attr("transform",G),j<=0||U<=0)return void F.remove()}var W,Y=w.textangle;(W="outside"===m?P(s,c,u,f,B,{isHorizontal:k,constrained:"both"===w.constraintext||"outside"===w.constraintext,angle:Y}):I(s,c,u,f,B,{isHorizontal:k,constrained:"both"===w.constraintext||"inside"===w.constraintext,angle:Y,anchor:w.insidetextanchor})).fontSize=V.size,p("histogram"===w.type?"bar":w.type,W,b),S.transform=W;var X=A(F,b,d,g);a.setTransormAndDisplay(X,W)}else r.select("text").remove()}function O(t){return"auto"===t?0:t}function L(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function I(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||"end",u="end"===c,f="start"===c,p=((a.leftToRight||0)+1)/2,d=1-p,h=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m>2*_&&v>2*_?_:0;m-=2*y,v-=2*y;var b=O(l);"auto"!==l||h<=m&&g<=v||!(h>m||g>v)||(h>v||g>m)&&h2*_?_:0:p>2*_?_:0;var h=1;l&&(h=s?Math.min(1,d/f):Math.min(1,p/u));var g=O(c),m=L(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,b=(i.top+i.bottom)/2,x=(t+e)/2,w=(r+n)/2,k=0,M=0,A=s?T(e,t):T(r,n);return s?(x=e-A*o,k=A*v):(w=n+A*o,M=-A*v),{textX:y,textY:b,targetX:x,targetY:w,anchorX:k,anchorY:M,scale:h,rotate:g}}function D(t,e,r,n,i){var a,o=e[0].trace;return a=o.texttemplate?z(t,e,r,n,i):o.textinfo?N(e,r,n,i):g.getValue(o.text,r),g.coerceString(y,a)}function R(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(b,r)}function z(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,"texttemplate");if(!s)return"";var l,c,f,p,d="histogram"===o.type,h="waterfall"===o.type,g="funnel"===o.type,m="h"===o.orientation;function v(t){return u(c,c.c2l(t),!0).text}function y(t){return u(p,p.c2l(t),!0).text}m?(l="y",c=i,f="x",p=n):(l="x",c=n,f="y",p=i);var b=e[r],_={};_.label=b.p,_.labelLabel=_[l+"Label"]=v(b.p);var w=a.castOption(o,b.i,"text");(0===w||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[f+"Label"]=y(b.s);var k={};x(k,o,b.i),(d||void 0===k.x)&&(k.x=m?_.value:_.label),(d||void 0===k.y)&&(k.y=m?_.label:_.value),(d||void 0===k.xLabel)&&(k.xLabel=m?_.valueLabel:_.labelLabel),(d||void 0===k.yLabel)&&(k.yLabel=m?_.labelLabel:_.valueLabel),h&&(_.delta=+b.rawS||b.s,_.deltaLabel=y(_.delta),_.final=b.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial)),g&&(_.value=b.s,_.valueLabel=y(_.value),_.percentInitial=b.begR,_.percentInitialLabel=a.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=a.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=a.formatPercent(b.sumR));var T=a.castOption(o,b.i,"customdata");return T&&(_.customdata=T),a.texttemplateString(s,_,t._d3locale,k,_,o._meta||{})}function N(t,e,r,n){var i=t[0].trace,o="h"===i.orientation,s="waterfall"===i.type,l="funnel"===i.type;function c(t){return u(o?n:r,t,!0).text}function f(t){return u(o?r:n,+t,!0).text}var p,d=i.textinfo,h=t[e],g=d.split("+"),m=[],v=function(t){return-1!==g.indexOf(t)};if(v("label")&&m.push(c(t[e].p)),v("text")&&(0===(p=a.castOption(i,h.i,"text"))||p)&&m.push(p),s){var y=+h.rawS||h.s,b=h.v,x=b-y;v("initial")&&m.push(f(x)),v("delta")&&m.push(f(y)),v("final")&&m.push(f(b))}if(l){v("value")&&m.push(f(h.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var w=_>1;v("percent initial")&&(p=a.formatPercent(h.begR),w&&(p+=" of initial"),m.push(p)),v("percent previous")&&(p=a.formatPercent(h.difR),w&&(p+=" of previous"),m.push(p)),v("percent total")&&(p=a.formatPercent(h.sumR),w&&(p+=" of total"),m.push(p))}return m.join("
")}e.exports={plot:E,toMoveInsideBar:I}},{"../../components/color":367,"../../components/drawing":389,"../../components/fx/helpers":403,"../../lib":515,"../../lib/svg_text_utils":541,"../../plots/cartesian/axes":566,"../../registry":647,"./attributes":657,"./constants":659,"./helpers":663,"./style":671,"./uniform_text":673,"@plotly/d3":58,"fast-isnumeric":190}],669:[function(t,e,r){"use strict";function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l="funnel"===s.type,c="h"===s.orientation,u=[];if(!1===e)for(r=0;r1||0===i.bargap&&0===i.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")})),e.selectAll("g.points").each((function(e){g(n.select(this),e[0].trace,t)})),s.getComponentMethod("errorbars","style")(e)}function g(t,e,r){a.pointStyle(t.selectAll("path"),e,r),m(t,e,r)}function m(t,e,r){t.selectAll("text").each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,x(i,t,e,r));a.font(i,s)}))}function v(t,e,r){var n=e[0].trace;n.selectedpoints?y(r,n,t):(g(r,n,t),s.getComponentMethod("errorbars","style")(r))}function y(t,e,r){a.selectedPointStyle(t.selectAll("path"),e),b(t.selectAll("text"),e,r)}function b(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,x(s,t,e,r));var l=e.selected.textfont&&e.selected.textfont.color;l&&(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}function x(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed("bartext-inside")){var o=M(e,r);a=w(r,e.i,i,o)}else t.classed("bartext-outside")&&(a=k(r,e.i,i));return a}function _(t,e,r){return T(u,t.textfont,e,r)}function w(t,e,r,n){var a=_(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&&void 0===t.textfont.color[e])&&(a={color:i.contrast(n),family:a.family,size:a.size}),T(f,t.insidetextfont,e,a)}function k(t,e,r){var n=_(t,e,r);return T(p,t.outsidetextfont,e,n)}function T(t,e,r,n){e=e||{};var i=d.getValue(e.family,r),a=d.getValue(e.size,r),o=d.getValue(e.color,r);return{family:d.coerceString(t.family,i,n.family),size:d.coerceNumber(t.size,a,n.size),color:d.coerceColor(t.color,o,n.color)}}function M(t,e){return"waterfall"===e.type?e[t.dir].marker.color:t.mcc||t.mc||e.marker.color}e.exports={style:h,styleTextPoints:m,styleOnSelect:v,getInsideTextFont:w,getOutsideTextFont:k,getBarColor:M,resizeText:l}},{"../../components/color":367,"../../components/drawing":389,"../../lib":515,"../../registry":647,"./attributes":657,"./helpers":663,"./uniform_text":673,"@plotly/d3":58}],672:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("../../components/colorscale/helpers").hasColorscale,a=t("../../components/colorscale/defaults"),o=t("../../lib").coercePattern;e.exports=function(t,e,r,s,l){var c=r("marker.color",s),u=i(t,"marker");u&&a(t,e,l,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),i(t,"marker.line")&&a(t,e,l,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},{"../../components/color":367,"../../components/colorscale/defaults":377,"../../components/colorscale/helpers":378,"../../lib":515}],673:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib");function a(t,e,r){var a=t._fullLayout,o=a["_"+r+"Text_minsize"];if(o){var s,l="hide"===a.uniformtext.mode;switch(r){case"funnelarea":case"pie":case"sunburst":s="g.slice";break;case"treemap":case"icicle":s="g.slice, g.pathbar";break;default:s="g.points > g.point"}e.selectAll(s).each((function(t){var e=t.transform;if(e){e.scale=l&&e.hide?0:o/e.fontSize;var r=n.select(this).select("text");i.setTransormAndDisplay(r,e)}}))}}function o(t,e,r){if(r.uniformtext.mode){var n=l(t),i=r.uniformtext.minsize,a=e.scale*e.fontSize;e.hide=ap.range[1]&&(b+=Math.PI);var x=function(t){return g(y,b,[t.rp0,t.rp1],[t.thetag0,t.thetag1],h)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0};if(n.getClosest(c,x,t),!1!==t.index){var _=c[t.index];t.x0=t.x1=_.ct[0],t.y0=t.y1=_.ct[1];var w=i.extendFlat({},_,{r:_.s,theta:_.p});return o(_,u,t),s(w,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,_),t.xLabelVal=t.yLabelVal=void 0,_.s<0&&(t.idealAlign="left"),[t]}}},{"../../components/fx":407,"../../lib":515,"../../plots/polar/helpers":630,"../bar/hover":664,"../scatterpolar/hover":1015}],678:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"barpolar",basePlotModule:t("../../plots/polar"),categories:["polar","bar","showLegend"],attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("../scatterpolar/format_labels"),style:t("../bar/style").style,styleOnSelect:t("../bar/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../bar/select"),meta:{}}},{"../../plots/polar":631,"../bar/select":669,"../bar/style":671,"../scatter/marker_colorbar":954,"../scatterpolar/format_labels":1014,"./attributes":674,"./calc":675,"./defaults":676,"./hover":677,"./layout_attributes":679,"./layout_defaults":680,"./plot":681}],679:[function(t,e,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},{}],680:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)}:function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}e.exports=function(t,e,r){var s=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,p=l(e),d=e.layers.frontplot.select("g.barlayer");a.makeTraceGroups(d,r,"trace bars").each((function(){var r=n.select(this),l=a.ensureSingle(r,"g","points").selectAll("g.point").data(a.identity);l.enter().append("g").style("vector-effect","non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),l.exit().remove(),l.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),l=t.rp1=u.c2p(t.s1),d=t.thetag0=f.c2g(t.p0),h=t.thetag1=f.c2g(t.p1);if(i(o)&&i(l)&&i(d)&&i(h)&&o!==l&&d!==h){var g=u.c2g(t.s1),m=(d+h)/2;t.ct=[s.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=p(o,l,d,h)}else e="M0,0Z";a.ensureSingle(r,"path").attr("d",e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{"../../components/drawing":389,"../../lib":515,"../../plots/polar/helpers":630,"@plotly/d3":58,"fast-isnumeric":190}],682:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../bar/attributes"),a=t("../../components/color/attributes"),o=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,s=t("../../plots/template_attributes").hovertemplateAttrs,l=t("../../lib/extend").extendFlat,c=n.marker,u=c.line;e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:l({},c.symbol,{arrayOk:!1,editType:"plot"}),opacity:l({},c.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:l({},c.angle,{arrayOk:!1,editType:"calc"}),size:l({},c.size,{arrayOk:!1,editType:"calc"}),color:l({},c.color,{arrayOk:!1,editType:"style"}),line:{color:l({},u.color,{arrayOk:!1,dflt:a.defaultLine,editType:"style"}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:n.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:"style"},unselected:{marker:n.unselected.marker,editType:"style"},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),hovertemplate:s({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},{"../../components/color/attributes":366,"../../lib/extend":505,"../../plots/cartesian/axis_format_attributes":569,"../../plots/template_attributes":642,"../bar/attributes":657,"../scatter/attributes":936}],683:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../plots/cartesian/axes"),a=t("../../plots/cartesian/align_period"),o=t("../../lib"),s=t("../../constants/numerical").BADNUM,l=o._;function c(t,e,r,i){var s,l=e+"0"in t;if(e in t||l&&"d"+e in t){var c=r.makeCalcdata(t,e);return[a(t,r,e,c).vals,c]}s=l?t[e+"0"]:"name"in t&&("category"===r.type||n(t.name)&&-1!==["linear","log"].indexOf(r.type)||o.isDateTime(t.name)&&"date"===r.type)?t.name:i;for(var u="multicategory"===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+"calendar"]),f=t._length,p=new Array(f),d=0;dL.uf};if(e._hasPreCompStats){var q=e[w],G=function(t){return p.d2c((e[t]||[])[r])},W=1/0,Y=-1/0;for(r=0;r=L.q1&&L.q3>=L.med){var Z=G("lowerfence");L.lf=Z!==s&&Z<=L.q1?Z:v(L,P,D);var K=G("upperfence");L.uf=K!==s&&K>=L.q3?K:y(L,P,D);var J=G("mean");L.mean=J!==s?J:D?o.mean(P,D):(L.q1+L.q3)/2;var $=G("sd");L.sd=J!==s&&$>=0?$:D?o.stdev(P,D,L.mean):L.q3-L.q1,L.lo=b(L),L.uo=x(L);var Q=G("notchspan");Q=Q!==s&&Q>0?Q:_(L,D),L.ln=L.med-Q,L.un=L.med+Q;var tt=L.lf,et=L.uf;e.boxpoints&&P.length&&(tt=Math.min(tt,P[0]),et=Math.max(et,P[D-1])),e.notched&&(tt=Math.min(tt,L.ln),et=Math.max(et,L.un)),L.min=tt,L.max=et}else{var rt;o.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join("\n")),rt=L.med!==s?L.med:L.q1!==s?L.q3!==s?(L.q1+L.q3)/2:L.q1:L.q3!==s?L.q3:0,L.med=rt,L.q1=L.q3=rt,L.lf=L.uf=rt,L.mean=L.sd=rt,L.ln=L.un=rt,L.min=L.max=rt}W=Math.min(W,L.min),Y=Math.max(Y,L.max),L.pts2=I.filter(H),C.push(L)}}e._extremes[p._id]=i.findExtremes(p,[W,Y],{padded:!0})}else{var nt=p.makeCalcdata(e,w),it=u(U,V),at=U.length,ot=f(at);for(r=0;r=0&&st0){var dt,ht;(L={}).pos=L[T]=U[r],I=L.pts=ot[r].sort(g),D=(P=L[w]=I.map(m)).length,L.min=P[0],L.max=P[D-1],L.mean=o.mean(P,D),L.sd=o.stdev(P,D,L.mean),L.med=o.interp(P,.5),D%2&&(ft||pt)?(ft?(dt=P.slice(0,D/2),ht=P.slice(D/2+1)):pt&&(dt=P.slice(0,D/2+1),ht=P.slice(D/2)),L.q1=o.interp(dt,.5),L.q3=o.interp(ht,.5)):(L.q1=o.interp(P,.25),L.q3=o.interp(P,.75)),L.lf=v(L,P,D),L.uf=y(L,P,D),L.lo=b(L),L.uo=x(L);var gt=_(L,D);L.ln=L.med-gt,L.un=L.med+gt,lt=Math.min(lt,L.ln),ct=Math.max(ct,L.un),L.pts2=I.filter(H),C.push(L)}e._extremes[p._id]=i.findExtremes(p,e.notched?nt.concat([lt,ct]):nt,{padded:!0})}return h(C,e),C.length>0?(C[0].t={num:A[O],dPos:V,posLetter:T,valLetter:w,labels:{med:l(t,"median:"),min:l(t,"min:"),q1:l(t,"q1:"),q3:l(t,"q3:"),max:l(t,"max:"),mean:"sd"===e.boxmean?l(t,"mean \xb1 \u03c3:"):l(t,"mean:"),lf:l(t,"lower fence:"),uf:l(t,"upper fence:")}},A[O]++,C):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function d(t,e,r){for(var n in p)o.isArrayOrTypedArray(e[n])&&(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&&(t[p[n]]=e[n][r[0]][r[1]]):t[p[n]]=e[n][r])}function h(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r1,x=1-f[t+"gap"],_=1-f[t+"groupgap"];for(s=0;s0){var q=E.pointpos,G=E.jitter,W=E.marker.size/2,Y=0;q+G>=0&&((Y=V*(q+G))>A?(H=!0,j=W,F=Y):Y>z&&(j=W,F=A)),Y<=A&&(F=A);var X=0;q-G<=0&&((X=-V*(q-G))>S?(H=!0,U=W,B=X):X>N&&(U=W,B=S)),X<=S&&(B=S)}else F=A,B=S;var Z=new Array(c.length);for(l=0;l0?(m="v",v=b>0?Math.min(_,x):Math.min(x)):b>0?(m="h",v=Math.min(_)):v=0;if(v){e._length=v;var S=r("orientation",m);e._hasPreCompStats?"v"===S&&0===b?(r("x0",0),r("dx",1)):"h"===S&&0===y&&(r("y0",0),r("dy",1)):"v"===S&&0===b?r("x0"):"h"===S&&0===y&&r("y0"),i.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y"],a)}else e.visible=!1}function p(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,"marker.outliercolor"),s=r("marker.line.outliercolor"),l="outliers";e._hasPreCompStats?l="all":(o||s)&&(l="suspectedoutliers");var u=r(a+"points",l);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",e.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",e.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete e.marker;var f=r("hoveron");"all"!==f&&-1===f.indexOf("points")||r("hovertemplate"),n.coerceSelectionMarkerOpacity(e,r)}function d(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;ot.lo&&(_.so=!0)}return a}));g.enter().append("path").classed("point",!0),g.exit().remove(),g.call(a.translatePoints,l,c)}function f(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,p=a.bPosPxOffset||0,d=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var h=t.selectAll("path.mean").data("box"===r.type&&r.boxmean||"violin"===r.type&&r.box.visible&&r.meanline.visible?i.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+p,a=c.l2p(e+s)+p,h=u?(i+a)/2:c.l2p(e)+p,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);"h"===r.orientation?n.select(this).attr("d","M"+g+","+i+"V"+a+("sd"===d?"m0,0L"+m+","+h+"L"+g+","+i+"L"+v+","+h+"Z":"")):n.select(this).attr("d","M"+i+","+g+"H"+a+("sd"===d?"m0,0L"+h+","+m+"L"+i+","+g+"L"+h+","+v+"Z":""))}))}e.exports={plot:l,plotBoxAndWhiskers:c,plotPoints:u,plotBoxMean:f}},{"../../components/drawing":389,"../../lib":515,"@plotly/d3":58}],692:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r=10)return null;for(var r=1/0,a=-1/0,o=t.length,s=0;s0?Math.floor:Math.ceil,I=C>0?Math.ceil:Math.floor,P=C>0?Math.min:Math.max,D=C>0?Math.max:Math.min,R=L(S+O),z=I(E-O),N=[[f=A(S)]];for(a=R;a*C=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i>=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],706:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axes"),i=t("../../lib/extend").extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,p,d,h,g,m,v,y,b=t["_"+e],x=t[e+"axis"],_=x._gridlines=[],w=x._minorgridlines=[],k=x._boundarylines=[],T=t["_"+r],M=t[r+"axis"];"array"===x.tickmode&&(x.tickvals=b.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,O=t._a.length,L=t._b.length;n.prepTicks(x),"array"===x.tickmode&&delete x.tickvals;var I=x.smoothing?3:1;function P(n){var i,a,o,s,l,c,u,f,d,h,g,m,v=[],y=[],b={};if("b"===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(L-2,a))),s=a-o,b.length=L,b.crossLength=O,b.xy=function(e){return t.evalxy([],e,a)},b.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i0&&(d=t.dxydi([],i-1,o,0,s),v.push(l[0]+d[0]/3),y.push(l[1]+d[1]/3),h=t.dxydi([],i-1,o,1,s),v.push(f[0]-h[0]/3),y.push(f[1]-h[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(O-2,i))),u=i-c,b.length=O,b.crossLength=L,b.xy=function(e){return t.evalxy([],i,e)},b.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a0&&(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return b.axisLetter=e,b.axis=x,b.crossAxis=M,b.value=n,b.constvar=r,b.index=p,b.x=v,b.y=y,b.smoothing=M.smoothing,b}function D(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=b.length,f.crossLength=T.length,"b"===e)for(o=Math.max(0,Math.min(L-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;ib.length-1||_.push(i(D(o),{color:x.gridcolor,width:x.gridwidth,dash:x.griddash}));for(p=u;pb.length-1)&&!(g<0||g>b.length-1))for(m=b[s],v=b[g],a=0;ab[b.length-1]||w.push(i(P(h),{color:x.minorgridcolor,width:x.minorgridwidth,dash:x.minorgriddash}));x.startline&&k.push(i(D(0),{color:x.startlinecolor,width:x.startlinewidth})),x.endline&&k.push(i(D(b.length-1),{color:x.endlinecolor,width:x.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((b[b.length-1]-x.tick0)/x.dtick*(1+l)),Math.ceil((b[0]-x.tick0)/x.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],p=u;p<=f;p++)d=x.tick0+x.dtick*p,_.push(i(P(d),{color:x.gridcolor,width:x.gridwidth,dash:x.griddash}));for(p=u-1;pb[b.length-1]||w.push(i(P(h),{color:x.minorgridcolor,width:x.minorgridwidth,dash:x.minorgriddash}));x.startline&&k.push(i(P(b[0]),{color:x.startlinecolor,width:x.startlinewidth})),x.endline&&k.push(i(P(b[b.length-1]),{color:x.endlinecolor,width:x.endlinewidth}))}}},{"../../lib/extend":505,"../../plots/cartesian/axes":566}],707:[function(t,e,r){"use strict";var n=t("../../plots/cartesian/axes"),i=t("../../lib/extend").extendFlat;e.exports=function(t,e){var r,a,o,s,l,c=e._labels=[],u=e._gridlines;for(r=0;re.length&&(t=t.slice(0,e.length)):t=[],i=0;i90&&(d-=180,l=-l),{angle:d,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],721:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/drawing"),a=t("./map_1d_array"),o=t("./makepath"),s=t("./orient_text"),l=t("../../lib/svg_text_utils"),c=t("../../lib"),u=c.strRotate,f=c.strTranslate,p=t("../../constants/alignment");function d(t,e,r,n,i){var s,l,u,f,p=r.select("#"+t._clipPathId);p.size()||(p=r.append("clipPath").classed("carpetclip",!0));var d=c.ensureSingle(p,"path","carpetboundary"),h=e.clipsegments,g=[];for(f=0;f0?"start":"end","data-notex":1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr("transform",f(p.p[0],p.p[1])+u(p.angle)+f(o.axis.labelpadding*h,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),h.exit().remove(),m.maxExtent=g,m}function m(t,e,r,n,i,a,o,l){var u,f,p,d,h=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),v=c.aggNums(Math.max,null,r.b);u=.5*(h+g),f=m,p=r.ab2xy(u,f,!0),d=r.dxyda_rough(u,f),void 0===o.angle&&c.extendFlat(o,s(r,i,a,p,r.dxydb_rough(u,f))),b(t,e,r,n,p,d,r.aaxis,i,a,o,"a-title"),u=h,f=.5*(m+v),p=r.ab2xy(u,f,!0),d=r.dxydb_rough(u,f),void 0===l.angle&&c.extendFlat(l,s(r,i,a,p,r.dxyda_rough(u,f))),b(t,e,r,n,p,d,r.baxis,i,a,l,"b-title")}e.exports=function(t,e,r,i){var a=e.xaxis,o=e.yaxis,s=t._fullLayout._clips;c.makeTraceGroups(i,r,"trace").each((function(e){var r=n.select(this),i=e[0],l=i.trace,u=l.aaxis,f=l.baxis,p=c.ensureSingle(r,"g","minorlayer"),v=c.ensureSingle(r,"g","majorlayer"),y=c.ensureSingle(r,"g","boundarylayer"),b=c.ensureSingle(r,"g","labellayer");r.style("opacity",l.opacity),h(a,o,v,u,"a",u._gridlines,!0),h(a,o,v,f,"b",f._gridlines,!0),h(a,o,p,u,"a",u._minorgridlines,!0),h(a,o,p,f,"b",f._minorgridlines,!0),h(a,o,y,u,"a-boundary",u._boundarylines),h(a,o,y,f,"b-boundary",f._boundarylines);var x=g(t,a,o,l,i,b,u._labels,"a-label"),_=g(t,a,o,l,i,b,f._labels,"b-label");m(t,b,l,i,a,o,x,_),d(l,i,s,a,o)}))};var v=p.LINE_SPACING,y=(1-p.MID_SHIFT)/v+1;function b(t,e,r,a,o,c,p,d,h,g,m){var b=[];p.title.text&&b.push(p.title.text);var x=e.selectAll("text."+m).data(b),_=g.maxExtent;x.enter().append("text").classed(m,!0),x.each((function(){var e=s(r,d,h,o,c);-1===["start","both"].indexOf(p.showticklabels)&&(_=0);var a=p.title.font.size;_+=a+p.title.offset;var m=(g.angle+(g.flip<0?180:0)-e.angle+450)%360,b=m>90&&m<270,x=n.select(this);x.text(p.title.text).call(l.convertToTspans,t),b&&(_=(-l.lineCount(x)+y)*v*a-_),x.attr("transform",f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr("text-anchor","middle").call(i.font,p.title.font)})),x.exit().remove()}},{"../../components/drawing":389,"../../constants/alignment":483,"../../lib":515,"../../lib/svg_text_utils":541,"./makepath":718,"./map_1d_array":719,"./orient_text":720,"@plotly/d3":58}],722:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../lib/search").findBin,a=t("./compute_control_points"),o=t("./create_spline_evaluator"),s=t("./create_i_derivative_evaluator"),l=t("./create_j_derivative_evaluator");e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,p=t.baxis,d=e[0],h=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],b=v*n.RELATIVE_CULL_TOLERANCE,x=y*n.RELATIVE_CULL_TOLERANCE;d-=b,h+=b,g-=x,m+=x,t.isVisible=function(t,e){return t>d&&tg&&eh||em},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,p.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,p.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,p.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,p.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&&(ne[c-1]|ir[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,p,d,h,g=0,m=0,v=[];ne[c-1]?(f=c-2,p=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):p=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),ir[u-1]?(d=u-2,h=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):h=s-(d=Math.max(0,Math.min(u-2,Math.floor(s)))),g&&(t.dxydi(v,f,d,p,h),l[0]+=v[0]*g,l[1]+=v[1]*g),m&&(t.dxydj(v,f,d,p,h),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{"../../lib/search":535,"./compute_control_points":710,"./constants":711,"./create_i_derivative_evaluator":712,"./create_j_derivative_evaluator":713,"./create_spline_evaluator":714}],723:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e>0&&void 0!==(n=t[r][e-1])&&(a++,i+=n),e0&&void 0!==(n=t[r-1][e])&&(a++,i+=n),r0&&a0&&iT);return n.log("Smoother converged to",M,"after",S,"iterations"),t}},{"../../lib":515}],724:[function(t,e,r){"use strict";var n=t("../../lib").isArray1D;e.exports=function(t,e,r){var i=r("x"),a=i&&i.length,o=r("y"),s=o&&o.length;if(!a&&!s)return!1;if(e._cheater=!i,a&&!n(i)||s&&!n(o))e._length=null;else{var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),e.a&&e.a.length&&(l=Math.min(l,e.a.length)),e.b&&e.b.length&&(l=Math.min(l,e.b.length)),e._length=l}return!0}},{"../../lib":515}],725:[function(t,e,r){"use strict";var n=t("../../plots/template_attributes").hovertemplateAttrs,i=t("../scattergeo/attributes"),a=t("../../components/colorscale/attributes"),o=t("../../plots/attributes"),s=t("../../components/color/attributes").defaultLine,l=t("../../lib/extend").extendFlat,c=i.marker.line;e.exports=l({locations:{valType:"data_array",editType:"calc"},locationmode:i.locationmode,z:{valType:"data_array",editType:"calc"},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:i.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:l({},o.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/color/attributes":366,"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/template_attributes":642,"../scattergeo/attributes":978}],726:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../constants/numerical").BADNUM,a=t("../../components/colorscale/calc"),o=t("../scatter/arrays_to_calcdata"),s=t("../scatter/calc_selection");function l(t){return t&&"string"===typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f")}}e.exports=function(t,e,r){var i,a,s,l,c=t.cd,u=c[0].trace,f=t.subplot,p=[e,r],d=[e+360,r];for(a=0;a=0;n--){var i=r[n].id;if("string"===typeof i&&0===i.indexOf("water"))for(var a=n+1;a=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup["trace-"+r.uid];return t.map.addSource(a,{type:"geojson",data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{"../../plots/mapbox/constants":620,"./convert":735}],739:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../mesh3d/attributes"),s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:a({editType:"calc"},{keys:["norm"]}),uhoverformat:i("u",1),vhoverformat:i("v",1),whoverformat:i("w",1),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),c.transforms=void 0,e.exports=c},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/cartesian/axis_format_attributes":569,"../../plots/template_attributes":642,"../mesh3d/attributes":876}],740:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc");e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;co.level||o.starts.length&&a===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r":d>c&&(n.prefixBoundary=!0);break;case"<":(dc||n.starts.length&&p===u)&&(n.prefixBoundary=!0);break;case"][":f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1]),fc&&(n.prefixBoundary=!0)}}}},{}],747:[function(t,e,r){"use strict";var n=t("../../components/colorscale"),i=t("./make_color_map"),a=t("./end_plus");function o(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if("heatmap"===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else"fill"===c&&(r._fillcolor=u);r._line={color:"lines"===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}e.exports={min:"zmin",max:"zmax",calc:o}},{"../../components/colorscale":379,"./end_plus":755,"./make_color_map":760}],748:[function(t,e,r){"use strict";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],749:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("./label_defaults"),a=t("../../components/color"),o=a.addOpacity,s=a.opacity,l=t("../../constants/filter_ops"),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;function f(t,e){var r;-1===u.indexOf(e.operation)?(t("contours.value",[0,1]),Array.isArray(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&&(r=parseFloat(e.value),e.value=[r,r+1])):(t("contours.value",0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}e.exports=function(t,e,r,n,a,l){var u,p,d,h=e.contours,g=r("contours.operation");h._operation=c[g],f(r,h),"="===g?u=h.showlines=!0:(u=r("contours.showlines"),d=r("fillcolor",o((t.line||{}).color||a,.5))),u&&(p=r("line.color",d&&s(d)?o(e.fillcolor,1):a),r("line.width",2),r("line.dash")),r("line.smoothing"),i(r,n,p,l)}},{"../../components/color":367,"../../constants/filter_ops":487,"./label_defaults":759,"fast-isnumeric":190}],750:[function(t,e,r){"use strict";var n=t("../../constants/filter_ops"),i=t("fast-isnumeric");function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&&(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={"[]":o("[]"),"][":o("]["),">":s(">"),"<":s("<"),"=":s("=")}},{"../../constants/filter_ops":487,"fast-isnumeric":190}],751:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){var i=n("contours.start"),a=n("contours.end"),o=!1===i||!1===a,s=r("contours.size");!(o?e.autocontour=!0:r("autocontour",!1))&&s||r("ncontours")}},{}],752:[function(t,e,r){"use strict";var n=t("../../lib");function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case"=":case"<":return t;case">":for(1!==t.length&&n.warn("Contour data invalid for the specified inequality operation."),a=t[0],r=0;r1e3){n.warn("Too many contours, clipping at 1000",t);break}return l}},{"../../lib":515,"./constraint_mapping":750,"./end_plus":755}],755:[function(t,e,r){"use strict";e.exports=function(t){return t.end+t.size/1e6}},{}],756:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./constants");function a(t,e,r,n){return Math.abs(t[0]-e[0])20?(d=i.CHOOSESADDLE[d][(h[0]||h[1])<0?0:1],t.crossings[p]=i.SADDLEREMAINDER[d]):delete t.crossings[p],!(h=i.NEWDELTA[d])){n.log("Found bad marching index:",d,e,t.level);break}g.push(c(t,e,h)),e[0]+=h[0],e[1]+=h[1],p=e.join(","),a(g[g.length-1],g[g.length-2],s,u)&&g.pop();var x=h[0]&&(e[0]<0||e[0]>v-2)||h[1]&&(e[1]<0||e[1]>m-2);if(e[0]===y[0]&&e[1]===y[1]&&h[0]===b[0]&&h[1]===b[1]||r&&x)break;d=t.crossings[p]}1e4===f&&n.log("Infinite loop in contour?");var _,w,k,T,M,A,S,E,C,O,L,I=a(g[0],g[g.length-1],s,u),P=0,D=.2*t.smoothing,R=[],z=0;for(f=1;f=z;f--)if((_=R[f])=z&&_+R[w]E&&C--,t.edgepaths[C]=L.concat(g,O));break}j||(t.edgepaths[E]=g.concat(O))}for(E=0;E20&&e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1,[n,a]}function c(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a),c=(1!==l?(1-l)*o.c2l(t.x[n]):0)+(0!==l?l*o.c2l(t.x[n+1]):0);return[o.c2p(o.l2c(c),!0),s.c2p(t.y[i],!0),n+l,i]}var u=(t.level-a)/(t.z[i+1][n]-a),f=(1!==u?(1-u)*s.c2l(t.y[i]):0)+(0!==u?u*s.c2l(t.y[i+1]):0);return[o.c2p(t.x[n],!0),s.c2p(s.l2c(f),!0),n,i+u]}e.exports=function(t,e,r){var i,a,o,l;for(e=e||.01,r=r||.01,a=0;at?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);return 5===r||10===r?t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,p=t[0].z,d=p.length,h=p[0].length,g=2===d||2===h;for(r=0;r=0&&(n=y,s=l):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-y[1])<.01&&(y[0]-r[0])*(n[0]-y[0])>=0&&(n=y,s=l):i.log("endpt to newendpt is not vert. or horz.",r,n,y)}if(r=n,s>=0)break;u+="L"+n}if(s===t.edgepaths.length){i.log("unclosed perimeter path");break}f=s,(d=-1===p.indexOf(f))&&(f=p[0],u+="Z")}for(f=0;fn.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),d=(l>n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(p<1||d<1)return 1/0;var h=v.EDGECOST*(1/(p-1)+1/(d-1));h+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,b=l+f,x=0;x2*v.MAXCOST)break;d&&(s/=2),l=(o=c-s/2)+1.5*s}if(p<=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),p=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},d=[p(-a/2,-o/2),p(-a/2,o/2),p(a/2,o/2),p(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(d)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll("text").data(e,(function(t){return t.text+","+t.x+","+t.y+","+t.theta}));if(l.exit().remove(),l.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:"rotate("+180*t.theta/Math.PI+" "+e+" "+i+")"}).call(s.convertToTspans,r)})),o){for(var c="",u=0;ur.end&&(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if("constraint"!==r.type){var c,u=r.start,f=r.end,p=t._input.contours;u>f&&(r.start=p.start=f,f=r.end=p.end=u,u=r.start),r.size>0||(c=u===f?1:a(u,f,t.ncontours).dtick,p.size=r.size=c)}}},{"../../lib":515,"../../plots/cartesian/axes":566}],764:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/drawing"),a=t("../heatmap/style"),o=t("./make_color_map");e.exports=function(t){var e=n.select(t).selectAll("g.contour");e.style("opacity",(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u="constraint"===a.type,f=!u&&"lines"===a.coloring,p=!u&&"fill"===a.coloring,d=f||p?o(r):null;e.selectAll("g.contourlevel").each((function(t){n.select(this).selectAll("path").call(i.lineGroupStyle,s.width,f?d(t.level):s.color,s.dash)}));var h=a.labelfont;if(e.selectAll("g.contourlabels text").each((function(t){i.font(n.select(this),{family:h.family,size:h.size,color:h.color||(f?d(t.level):s.color)})})),u)e.selectAll("g.contourfill path").style("fill",r.fillcolor);else if(p){var g;e.selectAll("g.contourfill path").style("fill",(function(t){return void 0===g&&(g=t.level),d(t.level+.5*l)})),void 0===g&&(g=c),e.selectAll("g.contourbg path").style("fill",d(g-.5*l))}})),a(t)}},{"../../components/drawing":389,"../heatmap/style":814,"./make_color_map":760,"@plotly/d3":58}],765:[function(t,e,r){"use strict";var n=t("../../components/colorscale/defaults"),i=t("./label_defaults");e.exports=function(t,e,r,a,o){var s,l=r("contours.coloring"),c="";"fill"===l&&(s=r("contours.showlines")),!1!==s&&("lines"!==l&&(c=r("line.color","#000")),r("line.width",.5),r("line.dash")),"none"!==l&&(!0!==t.showlegend&&(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:"",cLetter:"z"})),r("line.smoothing"),i(r,a,c,o)}},{"../../components/colorscale/defaults":377,"./label_defaults":759}],766:[function(t,e,r){"use strict";var n=t("../heatmap/attributes"),i=t("../contour/attributes"),a=t("../../components/colorscale/attributes"),o=t("../../lib/extend").extendFlat,s=i.contours;e.exports=o({carpet:{valType:"string",editType:"calc"},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:"plot"},transforms:void 0},a("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../contour/attributes":744,"../heatmap/attributes":801}],767:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc"),i=t("../../lib"),a=t("../heatmap/convert_column_xyz"),o=t("../heatmap/clean_2d_array"),s=t("../heatmap/interp2d"),l=t("../heatmap/find_empties"),c=t("../heatmap/make_bound_array"),u=t("./defaults"),f=t("../carpet/lookup_carpetid"),p=t("../contour/set_contours");function d(t,e){var r,u,f,p,d,h,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&&a(e,v,y,"a","b",["z"]),r=e._a=e._a||e.a,p=e._b=e._b||e.b,r=r?v.makeCalcdata(e,"_a"):[],p=p?y.makeCalcdata(e,"_b"):[],u=e.a0||0,f=e.da||1,d=e.b0||0,h=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var b=i.maxRowLength(g),x="scaled"===e.xtype?"":r,_=c(e,x,u,f,b,v),w="scaled"===e.ytype?"":p,k={a:_,b:c(e,w,d,h,g.length,y),z:g};return"levels"===e.contours.type&&"none"!==e.contours.coloring&&n(t,e,{vals:g,containerStr:"",cLetter:"z"}),[k]}e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&&r.visible&&"legendonly"!==r.visible){if(!e.a||!e.b){var n=t.data[r.index],i=t.data[e.index];i.a||(i.a=n.a),i.b||(i.b=n.b),u(i,e,e._defaultColor,t._fullLayout)}var a=d(t,e);return p(e,e._z),a}}},{"../../components/colorscale/calc":375,"../../lib":515,"../carpet/lookup_carpetid":717,"../contour/set_contours":763,"../heatmap/clean_2d_array":803,"../heatmap/convert_column_xyz":805,"../heatmap/find_empties":807,"../heatmap/interp2d":810,"../heatmap/make_bound_array":812,"./defaults":768}],768:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../heatmap/xyz_defaults"),a=t("./attributes"),o=t("../contour/constraint_defaults"),s=t("../contour/contours_defaults"),l=t("../contour/style_defaults");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}function f(r){return n.coerce2(t,e,a,r)}if(u("carpet"),t.a&&t.b){if(!i(t,e,u,c,"a","b"))return void(e.visible=!1);u("text"),"constraint"===u("contours.type")?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,f),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{"../../lib":515,"../contour/constraint_defaults":749,"../contour/contours_defaults":751,"../contour/style_defaults":765,"../heatmap/xyz_defaults":816,"./attributes":766}],769:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../contour/colorbar"),calc:t("./calc"),plot:t("./plot"),style:t("../contour/style"),moduleType:"trace",name:"contourcarpet",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},{"../../plots/cartesian":578,"../contour/colorbar":747,"../contour/style":764,"./attributes":766,"./calc":767,"./defaults":768,"./plot":770}],770:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../carpet/map_1d_array"),a=t("../carpet/makepath"),o=t("../../components/drawing"),s=t("../../lib"),l=t("../contour/make_crossings"),c=t("../contour/find_all_paths"),u=t("../contour/plot"),f=t("../contour/constants"),p=t("../contour/convert_to_constraints"),d=t("../contour/empty_pathinfo"),h=t("../contour/close_boundaries"),g=t("../carpet/lookup_carpetid"),m=t("../carpet/axis_aligned_line");function v(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;rg&&(n.max=g),n.len=n.max-n.min}function m(t,e){var r,n=0,o=.1;return(Math.abs(t[0]-l)=0&&(p=C,h=g):Math.abs(f[1]-p[1])=0&&(p=C,h=g):s.log("endpt to newendpt is not vert. or horz.",f,p,C)}if(h>=0)break;y+=S(f,p),f=p}if(h===e.edgepaths.length){s.log("unclosed perimeter path");break}u=h,(x=-1===b.indexOf(u))&&(u=b[0],y+=S(f,p)+"Z",f=null)}for(u=0;u=0;z--)P=x.clipsegments[z],D=i([],P.x,f.c2p),R=i([],P.y,h.c2p),D.reverse(),R.reverse(),F.push(a(D,R,P.bicubic));var B="M"+F.join("L")+"Z";k(s,x.clipsegments,f,h,S,C),T(m,s,f,h,N,O,j,b,x,C,B),y(s,A,t,u,M,e,b),o.setClipUrl(s,b._clipPathId,t)}function j(t){var e=b.ab2xy(t[0],t[1],!0);return[f.c2p(e[0]),h.c2p(e[1])]}}))}},{"../../components/drawing":389,"../../lib":515,"../carpet/axis_aligned_line":701,"../carpet/lookup_carpetid":717,"../carpet/makepath":718,"../carpet/map_1d_array":719,"../contour/close_boundaries":746,"../contour/constants":748,"../contour/convert_to_constraints":752,"../contour/empty_pathinfo":754,"../contour/find_all_paths":756,"../contour/make_crossings":761,"../contour/plot":762,"@plotly/d3":58}],771:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/template_attributes").hovertemplateAttrs,a=t("../../plots/attributes"),o=t("../scattermapbox/attributes"),s=t("../../lib/extend").extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/template_attributes":642,"../scattermapbox/attributes":1002}],772:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib").isArrayOrTypedArray,a=t("../../constants/numerical").BADNUM,o=t("../../components/colorscale/calc"),s=t("../../lib")._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&&c.length,f=0;f0?+h[f]:0),p.push({type:"Feature",geometry:{type:"Point",coordinates:y},properties:b})}}var _=o.extractOpts(e),w=_.reversescale?o.flipScale(_.colorscale):_.colorscale,k=w[0][1],T=["interpolate",["linear"],["heatmap-density"],0,a.opacity(k)<1?k:a.addOpacity(k,0)];for(f=1;f=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup["trace-"+r.uid];return t.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),i}},{"../../plots/mapbox/constants":620,"./convert":773}],779:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){for(var r=0;r"),l.color=o(u,p),[l]}}},{"../../components/color":367,"../../lib":515,"../bar/hover":664}],787:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc"),plot:t("./plot"),style:t("./style").style,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("../bar/select"),moduleType:"trace",name:"funnel",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},{"../../plots/cartesian":578,"../bar/select":669,"./attributes":780,"./calc":781,"./cross_trace_calc":783,"./defaults":784,"./event_data":785,"./hover":786,"./layout_attributes":788,"./layout_defaults":789,"./plot":790,"./style":791}],788:[function(t,e,r){"use strict";e.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],789:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s path").each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style("opacity",s.selectedpoints&&!t.selected?o:1)}})),c(r,s,t),r.selectAll(".regions").each((function(){n.select(this).selectAll("path").style("stroke-width",0).call(a.fill,s.connector.fillcolor)})),r.selectAll(".lines").each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll("path"),t.width,t.color,t.dash)}))}))}e.exports={style:u}},{"../../components/color":367,"../../components/drawing":389,"../../constants/interactions":490,"../bar/style":671,"../bar/uniform_text":673,"@plotly/d3":58}],792:[function(t,e,r){"use strict";var n=t("../pie/attributes"),i=t("../../plots/attributes"),a=t("../../plots/domain").attributes,o=t("../../plots/template_attributes").hovertemplateAttrs,s=t("../../plots/template_attributes").texttemplateAttrs,l=t("../../lib/extend").extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:["label","text","value","percent"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:l({},i.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","text","percent"]}),textposition:l({},n.textposition,{values:["inside","none"],dflt:"inside"}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:a({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},{"../../lib/extend":505,"../../plots/attributes":562,"../../plots/domain":593,"../../plots/template_attributes":642,"../pie/attributes":910}],793:[function(t,e,r){"use strict";var n=t("../../plots/plots");r.name="funnelarea",r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{"../../plots/plots":628}],794:[function(t,e,r){"use strict";var n=t("../pie/calc");function i(t,e){return n.calc(t,e)}function a(t){n.crossTraceCalc(t,{type:"funnelarea"})}e.exports={calc:i,crossTraceCalc:a}},{"../pie/calc":912}],795:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../plots/domain").defaults,o=t("../bar/defaults").handleText,s=t("../pie/defaults").handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c("labels"),f=c("values"),p=s(u,f),d=p.len;if(e._hasLabels=p.hasLabels,e._hasValues=p.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),d){e._length=d,c("marker.line.width")&&c("marker.line.color",l.paper_bgcolor),c("marker.colors"),c("scalegroup");var h,g=c("text"),m=c("texttemplate");if(m||(h=c("textinfo",Array.isArray(g)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),m||h&&"none"!==h){var v=c("textposition");o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c("title.text")&&(c("title.position"),n.coerceFont(c,"title.font",l.font)),c("aspectratio"),c("baseratio")}else e.visible=!1}},{"../../lib":515,"../../plots/domain":593,"../bar/defaults":661,"../pie/defaults":913,"./attributes":792}],796:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"funnelarea",basePlotModule:t("./base_plot"),categories:["pie-like","funnelarea","showLegend"],attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot"),style:t("./style"),styleOne:t("../pie/style_one"),meta:{}}},{"../pie/style_one":921,"./attributes":792,"./base_plot":793,"./calc":794,"./defaults":795,"./layout_attributes":797,"./layout_defaults":798,"./plot":799,"./style":800}],797:[function(t,e,r){"use strict";var n=t("../pie/layout_attributes").hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{"../pie/layout_attributes":917}],798:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r("hiddenlabels"),r("funnelareacolorway",e.colorway),r("extendfunnelareacolors")}},{"../../lib":515,"./layout_attributes":797}],799:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/drawing"),a=t("../../lib"),o=a.strScale,s=a.strTranslate,l=t("../../lib/svg_text_utils"),c=t("../bar/plot").toMoveInsideBar,u=t("../bar/uniform_text"),f=u.recordMinTextSize,p=u.clearMinTextSize,d=t("../pie/helpers"),h=t("../pie/plot"),g=h.attachFxHandlers,m=h.determineInsideTextFont,v=h.layoutAreas,y=h.prerenderTitles,b=h.positionTitleOutside,x=h.formatSliceLabel;function _(t,e){return"l"+(e[0]-t[0])+","+(e[1]-t[1])}function w(t,e){return[.5*(t[0]+e[0]),.5*(t[1]+e[1])]}function k(t){if(t.length){var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a,o,s,l=Math.pow(i,2),c=e.vTotal,u=c,f=c*l/(1-l)/c,p=[];for(p.push(E()),o=t.length-1;o>-1;o--)if(!(s=t[o]).hidden){var d=s.v/u;f+=d,p.push(E())}var h=1/0,g=-1/0;for(o=0;o-1;o--)if(!(s=t[o]).hidden){var M=p[T+=1][0],A=p[T][1];s.TL=[-M,A],s.TR=[M,A],s.BL=_,s.BR=k,s.pxmid=w(s.TR,s.BR),_=s.TL,k=s.TR}}function S(){var t=Math.sqrt(f);return{x:t,y:-t}}function E(){var t=S();return[t.x,t.y]}}e.exports=function(t,e){var r=t._context.staticPlot,u=t._fullLayout;p("funnelarea",u),y(e,t),v(e,u._size),a.makeTraceGroups(u._funnelarealayer,e,"trace").each((function(e){var p=n.select(this),h=e[0],v=h.trace;k(e),p.each((function(){var p=n.select(this).selectAll("g.slice").data(e);p.enter().append("g").classed("slice",!0),p.exit().remove(),p.each((function(o,s){if(o.hidden)n.select(this).selectAll("path,g").remove();else{o.pointNumber=o.i,o.curveNumber=v.index;var p=h.cx,y=h.cy,b=n.select(this),w=b.selectAll("path.surface").data([o]);w.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),b.call(g,t,e);var k="M"+(p+o.TR[0])+","+(y+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+"Z";w.attr("d",k),x(t,o,h);var T=d.castOption(v.textposition,o.pts),M=b.selectAll("g.slicetext").data(o.text&&"none"!==T?[0]:[]);M.enter().append("g").classed("slicetext",!0),M.exit().remove(),M.each((function(){var r=a.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),d=a.ensureUniformFontSize(t,m(v,o,u.font));r.text(o.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(i.font,d).call(l.convertToTspans,t);var h,g,b,x=i.bBox(r.node()),_=Math.min(o.BL[1],o.BR[1])+y,w=Math.max(o.TL[1],o.TR[1])+y;g=Math.max(o.TL[0],o.BL[0])+p,b=Math.min(o.TR[0],o.BR[0])+p,(h=c(g,b,_,w,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=d.size,f(v.type,h,u),e[s].transform=h,a.setTransormAndDisplay(r,h)}))}}));var y=n.select(this).selectAll("g.titletext").data(v.title.text?[0]:[]);y.enter().append("g").classed("titletext",!0),y.exit().remove(),y.each((function(){var e=a.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),r=v.title.text;v._meta&&(r=a.templateString(r,v._meta)),e.text(r).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(i.font,v.title.font).call(l.convertToTspans,t);var c=b(h,u._size);e.attr("transform",s(c.x,c.y)+o(Math.min(1,c.scale))+s(c.tx,c.ty))}))}))}))}},{"../../components/drawing":389,"../../lib":515,"../../lib/svg_text_utils":541,"../bar/plot":668,"../bar/uniform_text":673,"../pie/helpers":915,"../pie/plot":919,"@plotly/d3":58}],800:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../pie/style_one"),a=t("../bar/uniform_text").resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(".trace");a(t,e,"funnelarea"),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll("path.surface").each((function(t){n.select(this).call(i,t,e)}))}))}},{"../bar/uniform_text":673,"../pie/style_one":921,"@plotly/d3":58}],801:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../../plots/attributes"),a=t("../../plots/font_attributes"),o=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,s=t("../../plots/template_attributes").hovertemplateAttrs,l=t("../../plots/template_attributes").texttemplateAttrs,c=t("../../components/colorscale/attributes"),u=t("../../lib/extend").extendFlat;e.exports=u({z:{valType:"data_array",editType:"calc"},x:u({},n.x,{impliedEdits:{xtype:"array"}}),x0:u({},n.x0,{impliedEdits:{xtype:"scaled"}}),dx:u({},n.dx,{impliedEdits:{xtype:"scaled"}}),y:u({},n.y,{impliedEdits:{ytype:"array"}}),y0:u({},n.y0,{impliedEdits:{ytype:"scaled"}}),dy:u({},n.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:u({},n.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:u({},n.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:u({},n.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:u({},n.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:u({},n.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:u({},n.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:s(),texttemplate:l({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:a({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:u({},i.showlegend,{dflt:!1})},{transforms:void 0},c("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/cartesian/axis_format_attributes":569,"../../plots/font_attributes":594,"../../plots/template_attributes":642,"../scatter/attributes":936}],802:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../../plots/cartesian/axes"),o=t("../../plots/cartesian/align_period"),s=t("../histogram2d/calc"),l=t("../../components/colorscale/calc"),c=t("./convert_column_xyz"),u=t("./clean_2d_array"),f=t("./interp2d"),p=t("./find_empties"),d=t("./make_bound_array"),h=t("../../constants/numerical").BADNUM;function g(t){for(var e=[],r=t.length,n=0;nR){P("x scale is not linear");break}}if(b.length&&"fast"===L){var z=(b[b.length-1]-b[0])/(b.length-1),N=Math.abs(z/100);for(T=0;TN){P("y scale is not linear");break}}}var F=i.maxRowLength(k),B="scaled"===e.xtype?"":r,j=d(e,B,h,v,F,A),U="scaled"===e.ytype?"":b,V=d(e,U,x,_,k.length,S);O||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var H={x:j,y:V,z:k,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&&y&&(H.orig_x=y),e.yperiodalignment&&w&&(H.orig_y=w),B&&B.length===j.length-1&&(H.xCenter=B),U&&U.length===V.length-1&&(H.yCenter=U),C&&(H.xRanges=M.xRanges,H.yRanges=M.yRanges,H.pts=M.pts),E||l(t,e,{vals:k,cLetter:"z"}),E&&e.contours&&"heatmap"===e.contours.coloring){var q={type:"contour"===e.type?"heatmap":"histogram2d",xcalendar:e.xcalendar,ycalendar:e.ycalendar};H.xfill=d(q,B,h,v,F,A),H.yfill=d(q,U,x,_,k.length,S)}return[H]}},{"../../components/colorscale/calc":375,"../../constants/numerical":491,"../../lib":515,"../../plots/cartesian/align_period":563,"../../plots/cartesian/axes":566,"../../registry":647,"../histogram2d/calc":835,"./clean_2d_array":803,"./convert_column_xyz":805,"./find_empties":807,"./interp2d":810,"./make_bound_array":812}],803:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../lib"),a=t("../../constants/numerical").BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,p;function d(t){if(n(t))return+t}if(e&&e.transpose){for(s=0,f=0;f=0;o--)(s=((f[[(r=(a=p[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&&(l[a]=[r,i,s],p.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{"../../lib":515}],808:[function(t,e,r){"use strict";var n=t("../../components/fx"),i=t("../../lib"),a=t("../../plots/cartesian/axes"),o=t("../../components/colorscale").extractOpts;e.exports=function(t,e,r,s,l){l||(l={});var c,u,f,p,d=l.isContour,h=t.cd[0],g=h.trace,m=t.xa,v=t.ya,y=h.x,b=h.y,x=h.z,_=h.xCenter,w=h.yCenter,k=h.zmask,T=g.zhoverformat,M=y,A=b;if(!1!==t.index){try{f=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(B){return void i.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index)}if(f<0||f>=x[0].length||p<0||p>x.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)>0||n.inbox(r-b[0],r-b[b.length-1],0)>0)return;if(d){var S;for(M=[2*y[0]-y[1]],S=1;Sg&&(v=Math.max(v,Math.abs(t[i][o]-h)/(m-g))))}return v}e.exports=function(t,e){var r,a=1;for(s(t,e),r=0;ri;r++)a=s(t,e,o(a));return a>i&&n.log("interp2d didn't converge quickly",a),t}},{"../../lib":515}],811:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){t("texttemplate");var r=n.extendFlat({},e.font,{color:"auto",size:"auto"});n.coerceFont(t,"textfont",r)}},{"../../lib":515}],812:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib").isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],p=n.traceIs(t,"contour"),d=n.traceIs(t,"histogram"),h=n.traceIs(t,"gl2d");if(i(e)&&e.length>1&&!d&&"category"!==s.type){var g=e.length;if(!(g<=o))return p?e.slice(0,o):e.slice(0,o+1);if(p||h)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u0;)w=k.c2p(N[E]),E--;for(w0;)S=T.c2p(F[E]),E--;if(SWt||Wt>T._length))for(C=Vt;CXt||Xt>k._length)){var Zt=u({x:Yt,y:Gt},P,t._fullLayout);Zt.x=Yt,Zt.y=Gt;var Kt=I.z[E][C];void 0===Kt?(Zt.z="",Zt.zLabel=""):(Zt.z=Kt,Zt.zLabel=s.tickText(Ft,Kt,"hover").text);var Jt=I.text&&I.text[E]&&I.text[E][C];void 0!==Jt&&!1!==Jt||(Jt=""),Zt.text=Jt;var $t=l.texttemplateString(zt,Zt,t._fullLayout._d3locale,Zt,P._meta||{});if($t){var Qt=$t.split("
"),te=Qt.length,ee=0;for(O=0;O0&&(a=!0);for(var l=0;la){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]c?t>o?t>1.1*i?i:t>1.1*a?a:o:t>s?s:t>l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function d(t,e,r,n,a,s){if(n&&t>o){var l=h(e,a,s),c=h(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)>.1}function h(t,e,r){var n=e.c2d(t,i,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,p=-.1*e,d=t-p,h=r[0],g=r[1],m=Math.min(f(h+p,h+d,n,a),f(g+p,g+d,n,a)),v=Math.min(f(h+c,h+p,n,a),f(g+c,g+p,n,a));if(m>v&&vo){var y=s===i?1:6,b=s===i?"M12":"M1";return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf("-",y);s>0&&(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c=0&&h=tt;r--)if(v[r]){et=r;break}for(r=tt;r<=et;r++)if(n(g[r])&&n(v[r])){var rt={p:g[r],s:v[r],b:0};k.enabled||(rt.pts=I[r],Y?rt.ph0=rt.ph1=I[r].length?A[I[r][0]]:g[r]:(e._computePh=!0,rt.ph0=G(E[r]),rt.ph1=G(E[r+1],!0))),Q.push(rt)}return 1===Q.length&&(Q[0].width1=o.tickIncrement(Q[0].p,M.size,!1,w)-Q[0].p),s(Q,e),i.isArrayOrTypedArray(e.selectedpoints)&&i.tagSelected(Q,e,K),Q}function d(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+"bins",y=t._fullLayout,b=e["_"+s+"bingroup"],x=y._histogramBinOpts[b],_="overlay"===y.barmode,w=function(t){return r.r2c(t,0,p)},k=function(t){return r.c2r(t,0,p)},T="date"===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+"Found"]?(e[t]=T(e[t]),null===e[t]&&(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+"."+t).set(r[t]))}if(e["_"+s+"autoBinFinished"])delete e["_"+s+"autoBinFinished"];else{u=x.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;cr.r2l(F)&&(j=o.tickIncrement(j,x.size,!0,p)),D.start=r.l2r(j),N||i.nestedProperty(e,v+".start").set(D.start)}var U=x.end,V=r.r2l(P.end),H=void 0!==V;if((x.endFound||H)&&V!==r.r2l(U)){var q=H?V:i.aggNums(Math.max,null,d);D.end=r.l2r(q),H||i.nestedProperty(e,v+".start").set(D.end)}var G="autobin"+s;return!1===e._input[G]&&(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[D,d]}function h(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=g(t,e),f=!1,p=1/0,h=[e];for(o=0;o=0;n--)s(n);else if("increasing"===e){for(n=1;n=0;n--)t[n]+=t[n+1];"exclude"===r&&(t.push(0),t.shift())}}e.exports={calc:p,calcAllAutoBins:d}},{"../../lib":515,"../../plots/cartesian/axes":566,"../../registry":647,"../bar/arrays_to_calcdata":656,"./average":822,"./bin_functions":824,"./bin_label_vals":825,"./norm_functions":833,"fast-isnumeric":190}],827:[function(t,e,r){"use strict";e.exports={eventDataKeys:["binNumber"]}},{}],828:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../plots/cartesian/axis_ids"),a=t("../../registry").traceIs,o=t("../bar/defaults").handleGroupingDefaults,s=n.nestedProperty,l=t("../../plots/cartesian/constraints").getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];e.exports=function(t,e){var r,f,p,d,h,g,m,v=e._histogramBinOpts={},y=[],b={},x=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return"v"===t.orientation?"x":"y"}function k(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}function T(t,e,r){var i=t.uid+"__"+r;e||(e=i);var a=k(t,r),o=t[r+"calendar"]||"",s=v[e],l=!0;s&&(a===s.axType&&o===s.calendar?(l=!1,s.traces.push(t),s.dirs.push(r)):(e=i,a!==s.axType&&n.warn(["Attempted to group the bins of trace",t.index,"set on a","type:"+a,"axis","with bins on","type:"+s.axType,"axis."].join(" ")),o!==s.calendar&&n.warn(["Attempted to group the bins of trace",t.index,"set with a",o,"calendar","with bins",s.calendar?"on a "+s.calendar+" calendar":"w/o a set calendar"].join(" ")))),l&&(v[e]={traces:[t],dirs:[r],axType:a,calendar:t[r+"calendar"]||""}),t["_"+r+"bingroup"]=e}for(h=0;hC&&M.splice(C,M.length-C),E.length>C&&E.splice(C,E.length-C);var O=[],L=[],I=[],P="string"===typeof T.size,D="string"===typeof S.size,R=[],z=[],N=P?R:T,F=D?z:S,B=0,j=[],U=[],V=e.histnorm,H=e.histfunc,q=-1!==V.indexOf("density"),G="max"===H||"min"===H?null:0,W=a.count,Y=o[V],X=!1,Z=[],K=[],J="z"in e?e.z:"marker"in e&&Array.isArray(e.marker.color)?e.marker.color:"";J&&"count"!==H&&(X="avg"===H,W=a[H]);var $=T.size,Q=b(T.start),tt=b(T.end)+(Q-i.tickIncrement(Q,$,!1,v))/1e6;for(r=Q;r=0&&d=0&&h-1,flipY:L.tiling.flip.indexOf("y")>-1,orientation:L.tiling.orientation,pad:{inner:L.tiling.pad},maxDepth:L._maxDepth}).descendants(),z=1/0,N=-1/0;R.forEach((function(t){var e=t.depth;e>=L._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(z=Math.min(z,e),N=Math.max(N,e))})),h=h.data(R,u.getPtId),L._maxVisibleLayers=isFinite(N)?N-z+1:0,h.enter().append("g").classed("slice",!0),T(h,d,E,[m,v],x),h.order();var F=null;if(k&&S){var B=u.getPtId(S);h.each((function(t){null===F&&u.getPtId(t)===B&&(F={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var j=function(){return F||{x0:0,x1:m,y0:0,y1:v}},U=h;return k&&(U=U.transition().each("end",(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),U.each((function(s){s._x0=y(s.x0),s._x1=y(s.x1),s._y0=b(s.y0),s._y1=b(s.y1),s._hoverX=y(s.x1-L.tiling.pad),s._hoverY=b(D?s.y1-L.tiling.pad/2:s.y0+L.tiling.pad/2);var h=n.select(this),g=i.ensureSingle(h,"path","surface",(function(t){t.style("pointer-events",C?"none":"all")}));k?g.transition().attrTween("d",(function(t){var e=M(t,d,j(),[m,v],{orientation:L.tiling.orientation,flipX:L.tiling.flip.indexOf("x")>-1,flipY:L.tiling.flip.indexOf("y")>-1});return function(t){return x(e(t))}})):g.attr("d",x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),g.call(l,s,L,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text="":s._text=p(s,r,L,e,O)||"";var T=i.ensureSingle(h,"g","slicetext"),S=i.ensureSingle(T,"text","",(function(t){t.attr("data-notex",1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(L,s,O.font));S.text(s._text||" ").classed("slicetext",!0).attr("text-anchor",P?"end":I?"start":"middle").call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(S.node()),s.transform=_(s,{fontSize:E.size}),s.transform.fontSize=E.size,k?S.transition().attrTween("transform",(function(t){var e=A(t,d,j(),[m,v]);return function(t){return w(e(t))}})):S.attr("transform",w(s))})),F}},{"../../components/drawing":389,"../../lib":515,"../../lib/svg_text_utils":541,"../sunburst/fx":1063,"../sunburst/helpers":1064,"../sunburst/plot":1068,"../treemap/constants":1087,"./partition":851,"./style":853,"@plotly/d3":58}],848:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"icicle",basePlotModule:t("./base_plot"),categories:[],animatable:!0,attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot"),style:t("./style").style,colorbar:t("../scatter/marker_colorbar"),meta:{}}},{"../scatter/marker_colorbar":954,"./attributes":843,"./base_plot":844,"./calc":845,"./defaults":846,"./layout_attributes":849,"./layout_defaults":850,"./plot":852,"./style":853}],849:[function(t,e,r){"use strict";e.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],850:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r("iciclecolorway",e.colorway),r("extendiciclecolors")}},{"../../lib":515,"./layout_attributes":849}],851:[function(t,e,r){"use strict";var n=t("d3-hierarchy"),i=t("../treemap/flip_tree");e.exports=function(t,e,r){var a=r.flipX,o=r.flipY,s="h"===r.orientation,l=r.maxDepth,c=e[0],u=e[1];l&&(c=(t.height+1)*e[0]/Math.min(t.height+1,l),u=(t.height+1)*e[1]/Math.min(t.height+1,l));var f=n.partition().padding(r.pad.inner).size(s?[e[1],c]:[e[0],u])(t);return(s||a||o)&&i(f,e,{swapXY:s,flipX:a,flipY:o}),f}},{"../treemap/flip_tree":1092,"d3-hierarchy":115}],852:[function(t,e,r){"use strict";var n=t("../treemap/draw"),i=t("./draw_descendants");e.exports=function(t,e,r,a){return n(t,e,r,a,{type:"icicle",drawDescendants:i})}},{"../treemap/draw":1089,"./draw_descendants":847}],853:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/color"),a=t("../../lib"),o=t("../bar/uniform_text").resizeText;function s(t){var e=t._fullLayout._iciclelayer.selectAll(".trace");o(t,e,"icicle"),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style("opacity",r.opacity),e.selectAll("path.surface").each((function(t){n.select(this).call(l,t,r)}))}))}function l(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,"marker.line.color")||i.defaultLine,c=a.castOption(r,s,"marker.line.width")||0;t.style("stroke-width",c).call(i.fill,n.color).call(i.stroke,l).style("opacity",o?r.leaf.opacity:null)}e.exports={style:s,styleOne:l}},{"../../components/color":367,"../../lib":515,"../bar/uniform_text":673,"@plotly/d3":58}],854:[function(t,e,r){"use strict";for(var n=t("../../plots/attributes"),i=t("../../plots/template_attributes").hovertemplateAttrs,a=t("../../lib/extend").extendFlat,o=t("./constants").colormodel,s=["rgb","rgba","rgba256","hsl","hsla"],l=[],c=[],u=0;u0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)>0)){var u,f=Math.floor((e-o.x0)/s.dx),p=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[p][f]:s._hasSource&&(u=s._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(f,p,1,1).data),u){var d,h=o.hi||s.hoverinfo;if(h){var g=h.split("+");-1!==g.indexOf("all")&&(g=["color"]),-1!==g.indexOf("color")&&(d=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,b=y.length,x=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||d)&&(w.push("["+[x[0]+_[0],x[1]+_[1],x[2]+_[2]].join(", ")),4===b&&w.push(", "+x[3]+_[3]),w.push("]"),w=w.join(""),t.extraText=y.toUpperCase()+": "+w),Array.isArray(s.hovertext)&&Array.isArray(s.hovertext[p])?m=s.hovertext[p][f]:Array.isArray(s.text)&&Array.isArray(s.text[p])&&(m=s.text[p][f]);var k=c.c2p(o.y0+(p+.5)*s.dy),T=o.x0+(f+.5)*s.dx,M=o.y0+(p+.5)*s.dy,A="["+u.slice(0,s.colormodel.length).join(", ")+"]";return[i.extendFlat(t,{index:[p,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:k,y1:k,color:x,xVal:T,xLabelVal:T,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,"color[0]Label":x[0]+_[0],"color[1]Label":x[1]+_[1],"color[2]Label":x[2]+_[2],"color[3]Label":x[3]+_[3]}})]}}}},{"../../components/fx":407,"../../lib":515,"./constants":856}],861:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),plot:t("./plot"),style:t("./style"),hoverPoints:t("./hover"),eventData:t("./event_data"),moduleType:"trace",name:"image",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":578,"./attributes":854,"./calc":855,"./defaults":857,"./event_data":858,"./hover":860,"./plot":862,"./style":863}],862:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=i.strTranslate,o=t("../../constants/xmlns_namespaces"),s=t("./constants"),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,p=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,"im").each((function(e){var r=n.select(this),l=e[0],c=l.trace,d=("fast"===c.zsmooth||!1===c.zsmooth&&p)&&!c._hasZ&&c._hasSource&&"linear"===u.type&&"linear"===f.type;c._realImage=d;var h,g,m,v,y,b,x=l.z,_=l.x0,w=l.y0,k=l.w,T=l.h,M=c.dx,A=c.dy;for(b=0;void 0===h&&b0;)g=u.c2p(_+b*M),b--;for(b=0;void 0===v&&b0;)y=f.c2p(w+b*A),b--;if(gP[0];if(D||R){var z=h+E/2,N=v+C/2;L+="transform:"+a(z+"px",N+"px")+"scale("+(D?-1:1)+","+(R?-1:1)+")"+a(-z+"px",-N+"px")+";"}}O.attr("style",L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===k&&c._canvas.el.height===T&&c._canvas.source===c.source)t();else{var e=document.createElement("canvas");e.width=k,e.height=T;var r=e.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute("src",c.source)}})).then((function(){var t,e;if(c._hasZ)e=B((function(t,e){return x[e][t]})),t=e.toDataURL("image/png");else if(c._hasSource)if(d)t=c.source;else{var r=c._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,k,T).data;e=B((function(t,e){var n=4*(e*k+t);return[r[n],r[n+1],r[n+2],r[n+3]]})),t=e.toDataURL("image/png")}O.attr({"xlink:href":t,height:C,width:E,x:h,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement("canvas");e.width=E,e.height=C;var r,n=e.getContext("2d",{willReadFrequently:!0}),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-h),0,E)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,C)},p=s.colormodel[c.colormodel],d=p.colormodel||c.colormodel,g=p.fmt;for(b=0;b0}function k(t,e,r,n){var i,a,o,s,c,u=r[0].trace,f=n.gauge,d=n.layer,g=n.gaugeBg,m=n.gaugeOutline,v=n.size,b=u.domain,x=n.transitionOpts,_=n.onComplete;f.enter().append("g").classed("bullet",!0),f.attr("transform",l(v.l,v.t)),d.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),d.selectAll("g.xbulletaxistick,path,text").remove();var k=v.h,T=u.gauge.bar.thickness*k,M=b.x[0],S=b.x[0]+(b.x[1]-b.x[0])*(u._hasNumber||u._hasDelta?1-p.bulletNumberDomainSize:1);function C(t){t.attr("width",(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr("x",(function(t){return i.c2p(t.range[0])})).attr("y",(function(t){return.5*(1-t.thickness)*k})).attr("height",(function(t){return t.thickness*k}))}(i=E(t,u.gauge.axis))._id="xbulletaxis",i.domain=[M,S],i.setScale(),a=h.calcTicks(i),o=h.makeTransTickFn(i),s=h.getTickSigns(i)[2],c=v.t+v.h,i.visible&&(h.drawTicks(t,i,{vals:"inside"===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,s),transFn:o}),h.drawLabels(t,i,{vals:a,layer:d,transFn:o,labelFns:h.makeLabelFns(i,c)}));var O=[g].concat(u.gauge.steps),L=f.selectAll("g.bg-bullet").data(O);L.enter().append("g").classed("bg-bullet",!0).append("rect"),L.select("rect").call(C).call(A),L.exit().remove();var I=f.selectAll("g.value-bullet").data([u.gauge.bar]);I.enter().append("g").classed("value-bullet",!0).append("rect"),I.select("rect").attr("height",T).attr("y",(k-T)/2).call(A),w(x)?I.select("rect").transition().duration(x.duration).ease(x.easing).each("end",(function(){_&&_()})).each("interrupt",(function(){_&&_()})).attr("width",Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):I.select("rect").attr("width","number"===typeof r[0].y?Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0),I.exit().remove();var P=r.filter((function(){return u.gauge.threshold.value||0===u.gauge.threshold.value})),D=f.selectAll("g.threshold-bullet").data(P);D.enter().append("g").classed("threshold-bullet",!0).append("line"),D.select("line").attr("x1",i.c2p(u.gauge.threshold.value)).attr("x2",i.c2p(u.gauge.threshold.value)).attr("y1",(1-u.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-u.gauge.threshold.thickness)/2)*k).call(y.stroke,u.gauge.threshold.line.color).style("stroke-width",u.gauge.threshold.line.width),D.exit().remove();var R=f.selectAll("g.gauge-outline").data([m]);R.enter().append("g").classed("gauge-outline",!0).append("rect"),R.select("rect").call(C).call(A),R.exit().remove()}function T(t,e,r,i){var a,o,s,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,b=[d.l+d.w/2,d.t+d.h/2+g/2],x=i.gauge,_=i.layer,k=i.transitionOpts,T=i.onComplete,M=Math.PI/2;function C(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-M;return r<-M?-M:r>M?M:r}function O(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-M)}function L(t){t.attr("d",(function(t){return O(t.thickness).startAngle(C(t.range[0])).endAngle(C(t.range[1]))()}))}x.enter().append("g").classed("angular",!0),x.attr("transform",l(b[0],b[1])),_.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),_.selectAll("g.xangularaxistick,path,text").remove(),(a=E(t,p.gauge.axis)).type="linear",a.range=p.gauge.axis.range,a._id="xangularaxis",a.ticklabeloverflow="allow",a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},D=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*D},P.yFn=function(t){var e=I(t),r=Math.sin(e)>0?.2:1;return-Math.sin(e)*(D+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*u)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)<.1?"middle":r>0?"start":"end"},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var R=function(t){return l(b[0]+g*Math.cos(t),b[1]-g*Math.sin(t))};s=function(t){return R(I(t))};var z=function(t){var e=I(t);return R(e)+"rotate("+-c(e)+")"};if(o=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f="inside"===a.ticks?-1:1;var N=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:o,layer:_,path:"M"+f*N+",0h"+f*a.ticklen,transFn:z}),h.drawLabels(t,a,{vals:o,layer:_,transFn:s,labelFns:P})}var F=[v].concat(p.gauge.steps),B=x.selectAll("g.bg-arc").data(F);B.enter().append("g").classed("bg-arc",!0).append("path"),B.select("path").call(L).call(A),B.exit().remove();var j=O(p.gauge.bar.thickness),U=x.selectAll("g.value-arc").data([p.gauge.bar]);U.enter().append("g").classed("value-arc",!0).append("path");var V=U.select("path");w(k)?(V.transition().duration(k.duration).ease(k.easing).each("end",(function(){T&&T()})).each("interrupt",(function(){T&&T()})).attrTween("d",S(j,C(r[0].lastY),C(r[0].y))),p._lastValue=r[0].y):V.attr("d","number"===typeof r[0].y?j.endAngle(C(r[0].y)):"M0,0Z"),V.call(A),U.exit().remove(),F=[];var H=p.gauge.threshold.value;(H||0===H)&&F.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var q=x.selectAll("g.threshold-arc").data(F);q.enter().append("g").classed("threshold-arc",!0).append("path"),q.select("path").call(L).call(A),q.exit().remove();var G=x.selectAll("g.gauge-outline").data([y]);G.enter().append("g").classed("gauge-outline",!0).append("path"),G.select("path").call(L).call(A),G.exit().remove()}function M(t,e,r,i){var c,u,p,g=r[0].trace,m=i.numbersX,v=i.numbersY,k=g.align||"center",T=b[k],M=i.transitionOpts,A=i.onComplete,S=o.ensureSingle(e,"g","numbers"),C=[];g._hasNumber&&C.push("number"),g._hasDelta&&(C.push("delta"),"left"===g.delta.position&&C.reverse());var O=S.selectAll("text").data(C);function P(e,r,n,i){if(!e.match("s")||n>=0===i>=0||r(n).slice(-1).match(_)||r(i).slice(-1).match(_))return r;var a=e.slice().replace("s","f").replace(/\d+/,(function(t){return parseInt(t)-1})),o=E(t,{tickformat:a});return function(t){return Math.abs(t)<1?h.tickText(o,t).text:r(t)}}function D(){var e=E(t,{tickformat:g.number.valueformat},g._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},o=g.number.suffix,s=g.number.prefix,l=S.select("text.number");function u(){var e="number"===typeof r[0].y?s+i(r[0].y)+o:"-";l.text(e).call(f.font,g.number.font).call(d.convertToTspans,t)}return w(M)?l.transition().duration(M.duration).ease(M.easing).each("end",(function(){u(),A&&A()})).each("interrupt",(function(){u(),A&&A()})).attrTween("text",(function(){var t=n.select(this),e=a(r[0].lastY,r[0].y);g._lastValue=r[0].y;var l=P(g.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(s+l(e(r))+o)}})):u(),c=L(s+i(r[0].y)+o,g.number.font,T,t),l}function R(){var e=E(t,{tickformat:g.delta.valueformat},g._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},o=g.delta.suffix,s=g.delta.prefix,l=function(t){return g.delta.relative?t.relativeDelta:t.delta},c=function(t,e){return 0===t||"number"!==typeof t||isNaN(t)?"-":(t>0?g.delta.increasing.symbol:g.delta.decreasing.symbol)+s+e(t)+o},p=function(t){return t.delta>=0?g.delta.increasing.color:g.delta.decreasing.color};void 0===g._deltaLastValue&&(g._deltaLastValue=l(r[0]));var m=S.select("text.delta");function v(){m.text(c(l(r[0]),i)).call(y.fill,p(r[0])).call(d.convertToTspans,t)}return m.call(f.font,g.delta.font).call(y.fill,p({delta:g._deltaLastValue})),w(M)?m.transition().duration(M.duration).ease(M.easing).tween("text",(function(){var t=n.select(this),e=l(r[0]),o=g._deltaLastValue,s=P(g.delta.valueformat,i,o,e),u=a(o,e);return g._deltaLastValue=e,function(e){t.text(c(u(e),s)),t.call(y.fill,p({delta:u(e)}))}})).each("end",(function(){v(),A&&A()})).each("interrupt",(function(){v(),A&&A()})):v(),u=L(c(l(r[0]),i),g.delta.font,T,t),m}O.enter().append("text"),O.attr("text-anchor",(function(){return T})).attr("class",(function(t){return t})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),O.exit().remove();var z,N=g.mode+g.align;if(g._hasDelta&&(z=R(),N+=g.delta.position+g.delta.font.size+g.delta.font.family+g.delta.valueformat,N+=g.delta.increasing.symbol+g.delta.decreasing.symbol,p=u),g._hasNumber&&(D(),N+=g.number.font.size+g.number.font.family+g.number.valueformat+g.number.suffix+g.number.prefix,p=c),g._hasDelta&&g._hasNumber){var F,B,j=[(c.left+c.right)/2,(c.top+c.bottom)/2],U=[(u.left+u.right)/2,(u.top+u.bottom)/2],V=.75*g.delta.font.size;"left"===g.delta.position&&(F=I(g,"deltaPos",0,-1*(c.width*x[g.align]+u.width*(1-x[g.align])+V),N,Math.min),B=j[1]-U[1],p={width:c.width+u.width+V,height:Math.max(c.height,u.height),left:u.left+F,right:c.right,top:Math.min(c.top,u.top+B),bottom:Math.max(c.bottom,u.bottom+B)}),"right"===g.delta.position&&(F=I(g,"deltaPos",0,c.width*(1-x[g.align])+u.width*x[g.align]+V,N,Math.max),B=j[1]-U[1],p={width:c.width+u.width+V,height:Math.max(c.height,u.height),left:c.left,right:u.right+F,top:Math.min(c.top,u.top+B),bottom:Math.max(c.bottom,u.bottom+B)}),"bottom"===g.delta.position&&(F=null,B=u.height,p={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height,bottom:c.bottom+u.height}),"top"===g.delta.position&&(F=null,B=c.top,p={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height-u.height,bottom:c.bottom}),z.attr({dx:F,dy:B})}(g._hasNumber||g._hasDelta)&&S.attr("transform",(function(){var t=i.numbersScaler(p);N+=t[2];var e,r=I(g,"numbersScale",1,t[0],N,Math.min);g._scaleNumbers||(r=1),e=g._isAngular?v-r*p.bottom:v-r*(p.top+p.bottom)/2,g._numbersTop=r*p.top+e;var n=p[k];"center"===k&&(n=(p.left+p.right)/2);var a=m-r*n;return a=I(g,"numbersTranslate",0,a,N,Math.max),l(a,e)+s(r)}))}function A(t){t.each((function(t){y.stroke(n.select(this),t.line.color)})).each((function(t){y.fill(n.select(this),t.color)})).style("stroke-width",(function(t){return t.line.width}))}function S(t,e,r){return function(){var n=i(e,r);return function(e){return t.endAngle(n(e))()}}}function E(t,e,r){var n=t._fullLayout,i=o.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},e),a={type:"linear",_id:"x"+e._id},s={letter:"x",font:n.font,noHover:!0,noTickson:!0};function l(t,e){return o.coerce(i,a,v,t,e)}return g(i,a,l,s,n),m(i,a,l,s),a}function C(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+"x"+r]}function O(t,e){return[e/Math.sqrt(t.width/2*(t.width/2)+t.height*t.height),t,e]}function L(t,e,r,i){var a=document.createElementNS("http://www.w3.org/2000/svg","text"),o=n.select(a);return o.text(t).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",t).call(d.convertToTspans,i).call(f.font,e),f.bBox(o.node())}function I(t,e,r,n,i,a){var s="_cache"+e;t[s]&&t[s].key===i||(t[s]={key:i,value:r});var l=o.aggNums(a,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,i){var a,s=t._fullLayout;w(r)&&i&&(a=i()),o.makeTraceGroups(s._indicatorlayer,e,"trace").each((function(e){var i,o,c,u,h,g=e[0].trace,m=n.select(this),v=g._hasGauge,y=g._isAngular,_=g._isBullet,w=g.domain,A={w:s._size.w*(w.x[1]-w.x[0]),h:s._size.h*(w.y[1]-w.y[0]),l:s._size.l+s._size.w*w.x[0],r:s._size.r+s._size.w*(1-w.x[1]),t:s._size.t+s._size.h*(1-w.y[1]),b:s._size.b+s._size.h*w.y[0]},S=A.l+A.w/2,E=A.t+A.h/2,L=Math.min(A.w/2,A.h),I=p.innerRadius*L,P=g.align||"center";if(o=E,v){if(y&&(i=S,o=E+L/2,c=function(t){return O(t,.9*I)}),_){var D=p.bulletPadding,R=1-p.bulletNumberDomainSize+D;i=A.l+(R+(1-R)*x[P])*A.w,c=function(t){return C(t,(p.bulletNumberDomainSize-D)*A.w,A.h)}}}else i=A.l+x[P]*A.w,c=function(t){return C(t,A.w,A.h)};M(t,m,e,{numbersX:i,numbersY:o,numbersScaler:c,transitionOpts:r,onComplete:a}),v&&(u={range:g.gauge.axis.range,color:g.gauge.bgcolor,line:{color:g.gauge.bordercolor,width:0},thickness:1},h={range:g.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:g.gauge.bordercolor,width:g.gauge.borderwidth},thickness:1});var z=m.selectAll("g.angular").data(y?e:[]);z.exit().remove();var N=m.selectAll("g.angularaxis").data(y?e:[]);N.exit().remove(),y&&T(t,m,e,{radius:L,innerRadius:I,gauge:z,layer:N,size:A,gaugeBg:u,gaugeOutline:h,transitionOpts:r,onComplete:a});var F=m.selectAll("g.bullet").data(_?e:[]);F.exit().remove();var B=m.selectAll("g.bulletaxis").data(_?e:[]);B.exit().remove(),_&&k(t,m,e,{gauge:F,layer:B,size:A,gaugeBg:u,gaugeOutline:h,transitionOpts:r,onComplete:a});var j=m.selectAll("text.title").data(e);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",(function(){return _?b.right:b[g.title.align]})).text(g.title.text).call(f.font,g.title.font).call(d.convertToTspans,t),j.attr("transform",(function(){var t,e=A.l+A.w*x[g.title.align],r=p.titlePadding,n=f.bBox(j.node());return v?(y&&(t=g.gauge.axis.visible?f.bBox(N.node()).top-r-n.bottom:A.t+A.h/2-L/2-n.bottom-r),_&&(t=o-(n.top+n.bottom)/2,e=A.l-p.bulletPadding*A.w)):t=g._numbersTop-r-n.bottom,l(e,t)}))}))}},{"../../components/color":367,"../../components/drawing":389,"../../constants/alignment":483,"../../lib":515,"../../lib/svg_text_utils":541,"../../plots/cartesian/axes":566,"../../plots/cartesian/axis_defaults":568,"../../plots/cartesian/layout_attributes":579,"../../plots/cartesian/position_defaults":582,"./constants":867,"@plotly/d3":58,"d3-interpolate":116}],871:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../mesh3d/attributes"),s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat,c=t("../../plot_api/edit_types").overrideAll;function u(t){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function f(t){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var p=e.exports=c(l({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:u("x"),y:u("y"),z:u("z")},caps:{x:f("x"),y:f("y"),z:f("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:a(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),valuehoverformat:i("value",1),showlegend:l({},s.showlegend,{dflt:!1})},n("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},s.hoverinfo)}),"calc","nested");p.flatshading.dflt=!0,p.lighting.facenormalsepsilon.dflt=0,p.x.editType=p.y.editType=p.z.editType=p.value.editType="calc+clearAxisTypes",p.transforms=void 0},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plot_api/edit_types":548,"../../plots/attributes":562,"../../plots/cartesian/axis_format_attributes":569,"../../plots/template_attributes":642,"../mesh3d/attributes":876}],872:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc"),i=t("../streamtube/calc").processGrid,a=t("../streamtube/calc").filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i>n&&n-1}function B(t,e){return null===t?e:t}function j(t,e,r){O();var n=[e],i=[r];if(s>=1)n=[e],i=[r];else if(s>0){var a=N(e,r);n=a.xyzv,i=a.abc}for(var o=0;o-1?r[c]:C(u,f,p);l[c]=h>-1?h:I(u,f,p,B(t,d))}P(l[0],l[1],l[2])}}function U(t,e,r){var n=function(n,i,a){j(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}function V(t,e,r){var n=function(n,i,a){j(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}function H(t,e,r,n){var i=t[3];in&&(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s<4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function q(t,e,r){return t>=e&&t<=r}function G(t){var e=.001*(E-S);return t>=S-e&&t<=E+e}function W(e){for(var r=[],n=0;n<4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}var Y=3;function X(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[q(e[0][3],n,i),q(e[1][3],n,i),q(e[2][3],n,i)];if(!s[0]&&!s[1]&&!s[2])return!1;var l=function(t,e,r){return G(e[0][3])&&G(e[1][3])&&G(e[2][3])?(j(t,e,r),!0):aMath.abs(g-A)?[M,g]:[g,A];ot(r,k[0],k[1])}}var T=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];["x","y","z"].forEach((function(r){for(var n=[],i=0;i0&&(f.push(h.id),"x"===r?p.push([h.distRatio,0,0]):"y"===r?p.push([0,h.distRatio,0]):p.push([0,0,h.distRatio]))}else u=ut(1,"x"===r?x-1:"y"===r?_-1:w-1);f.length>0&&(n[a]="x"===r?st(e,f,o,s,p,n[a]):"y"===r?lt(e,f,o,s,p,n[a]):ct(e,f,o,s,p,n[a]),a++),u.length>0&&(n[a]="x"===r?et(e,u,o,s,n[a]):"y"===r?rt(e,u,o,s,n[a]):nt(e,u,o,s,n[a]),a++)}var g=t.caps[r];g.show&&g.fill&&(z(g.fill),n[a]="x"===r?et(e,[0,x-1],o,s,n[a]):"y"===r?rt(e,[0,_-1],o,s,n[a]):nt(e,[0,w-1],o,s,n[a]),a++)}})),0===m&&L(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=b}return pt(),t}function d(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}e.exports={findNearestOnAxis:l,generateIsoMeshes:p,createIsosurfaceTrace:d}},{"../../../stackgl_modules":1133,"../../components/colorscale":379,"../../lib/gl_format_color":511,"../../lib/str2rgbarray":540,"../../plots/gl3d/zip3":618}],874:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("./attributes"),o=t("../../components/colorscale/defaults");function s(t,e,r,i){function o(r,i){return n.coerce(t,e,a,r,i)}l(t,e,r,i,o)}function l(t,e,r,n,a){var s=a("isomin"),l=a("isomax");void 0!==l&&null!==l&&void 0!==s&&null!==s&&s>l&&(e.isomin=null,e.isomax=null);var c=a("x"),u=a("y"),f=a("z"),p=a("value");c&&c.length&&u&&u.length&&f&&f.length&&p&&p.length?(i.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach((function(t){a(t+"hoverformat");var e="caps."+t;a(e+".show")&&a(e+".fill");var r="slices."+t;a(r+".show")&&(a(r+".fill"),a(r+".locations"))})),a("spaceframe.show")&&a("spaceframe.fill"),a("surface.show")&&(a("surface.count"),a("surface.fill"),a("surface.pattern")),a("contour.show")&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:"",cLetter:"c"}),e._length=null):e.visible=!1}e.exports={supplyDefaults:s,supplyIsoDefaults:l}},{"../../components/colorscale/defaults":377,"../../lib":515,"../../registry":647,"./attributes":871}],875:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults").supplyDefaults,calc:t("./calc"),colorbar:{min:"cmin",max:"cmax"},plot:t("./convert").createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:t("../../plots/gl3d"),categories:["gl3d","showLegend"],meta:{}}},{"../../plots/gl3d":607,"./attributes":871,"./calc":872,"./convert":873,"./defaults":874}],876:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../surface/attributes"),s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat;e.exports=l({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:a({editType:"calc"}),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},n("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:l({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:"calc"},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:"calc"},lighting:l({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:"calc"}),showlegend:l({},s.showlegend,{dflt:!1})})},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/cartesian/axis_format_attributes":569,"../../plots/template_attributes":642,"../surface/attributes":1070}],877:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc");e.exports=function(t,e){e.intensity&&n(t,e,{vals:e.intensity,containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":375}],878:[function(t,e,r){"use strict";var n=t("../../../stackgl_modules").gl_mesh3d,i=t("../../../stackgl_modules").delaunay_triangulate,a=t("../../../stackgl_modules").alpha_shape,o=t("../../../stackgl_modules").convex_hull,s=t("../../lib/gl_format_color").parseColorScale,l=t("../../lib/str2rgbarray"),c=t("../../components/colorscale").extractOpts,u=t("../../plots/gl3d/zip3");function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var p=f.prototype;function d(t){for(var e=[],r=t.length,n=0;n=e-.5)return!1;return!0}function y(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}p.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&&void 0!==r[e]?t.textLabel=r[e]:r&&(t.textLabel=r),!0}},p.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,i=t.x.length,f=u(h(r.xaxis,t.x,e.dataScale[0],t.xcalendar),h(r.yaxis,t.y,e.dataScale[1],t.ycalendar),h(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!v(t.i,i)||!v(t.j,i)||!v(t.k,i))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(f):t.alphahull>0?a(t.alphahull,f):m(t.delaunayaxis,f);var p={positions:f,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color="#fff";var b=t.intensitymode;p[b+"Intensity"]=t.intensity,p[b+"IntensityBounds"]=[y.min,y.max],p.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],p.vertexColors=d(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],p.cellColors=d(t.facecolor)):(this.color=t.color,p.meshColor=l(t.color));this.mesh.update(p)},p.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=y},{"../../../stackgl_modules":1133,"../../components/colorscale":379,"../../lib/gl_format_color":511,"../../lib/str2rgbarray":540,"../../plots/gl3d/zip3":618}],879:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../../components/colorscale/defaults"),o=t("./attributes");e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&&i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&&t.length===e[0].length}))&&e}c(["x","y","z"])?(c(["i","j","k"]),(!e.i||e.j&&e.k)&&(!e.j||e.k&&e.i)&&(!e.k||e.i&&e.j)?(n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],s),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach((function(t){l(t)})),l("contour.show")&&(l("contour.color"),l("contour.width")),"intensity"in t?(l("intensity"),l("intensitymode"),a(t,e,s,l,{prefix:"",cLetter:"c"})):(e.showscale=!1,"facecolor"in t?l("facecolor"):"vertexcolor"in t?l("vertexcolor"):l("color",r)),l("text"),l("hovertext"),l("hovertemplate"),l("xhoverformat"),l("yhoverformat"),l("zhoverformat"),e._length=null):e.visible=!1):e.visible=!1}},{"../../components/colorscale/defaults":377,"../../lib":515,"../../registry":647,"./attributes":876}],880:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),colorbar:{min:"cmin",max:"cmax"},plot:t("./convert"),moduleType:"trace",name:"mesh3d",basePlotModule:t("../../plots/gl3d"),categories:["gl3d","showLegend"],meta:{}}},{"../../plots/gl3d":607,"./attributes":876,"./calc":877,"./convert":878,"./defaults":879}],881:[function(t,e,r){"use strict";var n=t("../../lib").extendFlat,i=t("../scatter/attributes"),a=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,o=t("../../components/drawing/attributes").dash,s=t("../../components/fx/attributes"),l=t("../../constants/delta.js"),c=l.INCREASING.COLOR,u=l.DECREASING.COLOR,f=i.line;function p(t){return{line:{color:n({},f.color,{dflt:t}),width:f.width,dash:o,editType:"style"},editType:"style"}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,xhoverformat:a("x"),yhoverformat:a("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:n({},f.width,{}),dash:n({},o,{}),editType:"style"},increasing:p(c),decreasing:p(u),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:n({},s.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}})}},{"../../components/drawing/attributes":388,"../../components/fx/attributes":398,"../../constants/delta.js":485,"../../lib":515,"../../plots/cartesian/axis_format_attributes":569,"../scatter/attributes":936}],882:[function(t,e,r){"use strict";var n=t("../../lib"),i=n._,a=t("../../plots/cartesian/axes"),o=t("../../plots/cartesian/align_period"),s=t("../../constants/numerical").BADNUM;function l(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),o=f(t,r,e),s=e._minDiff;e._minDiff=null;var l=e._origX;e._origX=null;var p=e._xcalc;e._xcalc=null;var d=u(t,e,l,p,i,c);return e._extremes[r._id]=a.findExtremes(r,p,{vpad:s/2}),d.length?(n.extendFlat(d[0].t,{wHover:s/2,tickLen:o}),d):[{t:{empty:!0}}]}function c(t,e,r,n){return{o:t,h:e,l:r,c:n}}function u(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,"open"),f=l.makeCalcdata(e,"high"),p=l.makeCalcdata(e,"low"),d=l.makeCalcdata(e,"close"),h=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,b=[],x=0;xv):m=M>w,v=M;var A=c(w,k,T,M);A.pos=_,A.yc=(w+M)/2,A.i=x,A.dir=m?"increasing":"decreasing",A.x=A.pos,A.y=[T,k],y&&(A.orig_p=r[x]),h&&(A.tx=e.text[x]),g&&(A.htx=e.hovertext[x]),b.push(A)}else b.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(p,f),{padded:!0}),b.length&&(b[0].t={labels:{open:i(t,"open:")+" ",high:i(t,"high:")+" ",low:i(t,"low:")+" ",close:i(t,"close:")+" "}}),b}function f(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a"+c.labels[b]+n.hoverLabelText(s,x,l.yhoverformat):((y=i.extendFlat({},p)).y0=y.y1=_,y.yLabelVal=x,y.yLabel=c.labels[b]+n.hoverLabelText(s,x,l.yhoverformat),y.name="",u.push(y),m[x]=y)}return u}function d(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,u=a[0].t,p=f(t,e,r,i);if(!p)return[];var d=a[p.index],h=p.index=d.i,g=d.dir;function m(t){return u.labels[t]+n.hoverLabelText(o,l[t][h],l.yhoverformat)}var v=d.hi||l.hoverinfo,y=v.split("+"),b="all"===v,x=b||-1!==y.indexOf("y"),_=b||-1!==y.indexOf("text"),w=x?[m("open"),m("high"),m("low"),m("close")+" "+c[g]]:[];return _&&s(d,l,w),p.extraText=w.join("
"),p.y0=p.y1=o.c2p(d.yc,!0),[p]}e.exports={hoverPoints:u,hoverSplit:p,hoverOnPoints:d}},{"../../components/color":367,"../../components/fx":407,"../../constants/delta.js":485,"../../lib":515,"../../plots/cartesian/axes":566}],885:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"ohlc",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","showLegend"],meta:{},attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc").calc,plot:t("./plot"),style:t("./style"),hoverPoints:t("./hover").hoverPoints,selectPoints:t("./select")}},{"../../plots/cartesian":578,"./attributes":881,"./calc":882,"./defaults":883,"./hover":884,"./plot":887,"./select":888,"./style":889}],886:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib");e.exports=function(t,e,r,a){var o=r("x"),s=r("open"),l=r("high"),c=r("low"),u=r("close");if(r("hoverlabel.split"),n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x"],a),s&&l&&c&&u){var f=Math.min(s.length,l.length,c.length,u.length);return o&&(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{"../../lib":515,"../../registry":647}],887:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib");e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,"trace ohlc").each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll("path").data(i.identity);u.enter().append("path"),u.exit().remove(),u.attr("d",(function(t){if(t.empty)return"M0,0Z";var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return"M"+e+","+o.c2p(t.o,!0)+"H"+n+"M"+n+","+o.c2p(t.h,!0)+"V"+o.c2p(t.l,!0)+"M"+r+","+o.c2p(t.c,!0)+"H"+n}))}}))}},{"../../lib":515,"@plotly/d3":58}],888:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var b,x,_,w=r.map((function(t){var e;if("trace"===t.categoryorder)e=null;else if("array"===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n0;c&&(o="array");var u=r("categoryorder",o);"array"===u?(r("categoryarray"),r("ticktext")):(delete t.categoryarray,delete t.ticktext),c||"array"!==u||(e.categoryorder="trace")}}e.exports=function(t,e,r,i){function a(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:"dimensions",handleItemDefaults:f}),d=u(t,e,r,i,a);o(e,i,a),Array.isArray(p)&&p.length||(e.visible=!1),c(e,p,"values",d),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var h={family:i.font.family,size:Math.round(i.font.size),color:i.font.color};n.coerceFont(a,"labelfont",h);var g={family:i.font.family,size:Math.round(i.font.size/1.2),color:i.font.color};n.coerceFont(a,"tickfont",g)}},{"../../components/colorscale/defaults":377,"../../components/colorscale/helpers":378,"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/domain":593,"../parcoords/merge_length":907,"./attributes":890}],894:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),plot:t("./plot"),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:t("./base_plot"),categories:["noOpacity"],meta:{}}},{"./attributes":890,"./base_plot":891,"./calc":892,"./defaults":893,"./plot":896}],895:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-interpolate").interpolateNumber,a=t("../../plot_api/plot_api"),o=t("../../components/fx"),s=t("../../lib"),l=s.strTranslate,c=t("../../components/drawing"),u=t("tinycolor2"),f=t("../../lib/svg_text_utils");function p(t,e,r,i){var a=e._context.staticPlot,o=t.map(H.bind(0,e,r)),u=i.selectAll("g.parcatslayer").data([null]);u.enter().append("g").attr("class","parcatslayer").style("pointer-events",a?"none":"all");var p=u.selectAll("g.trace.parcats").data(o,d),y=p.enter().append("g").attr("class","trace parcats");p.attr("transform",(function(t){return l(t.x,t.y)})),y.append("g").attr("class","paths");var b=p.select("g.paths").selectAll("path.path").data((function(t){return t.paths}),d);b.attr("fill",(function(t){return t.model.color}));var w=b.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",(function(t){return t.model.color})).attr("fill-opacity",0);_(w),b.attr("d",(function(t){return t.svgD})),w.empty()||b.sort(g),b.exit().remove(),b.on("mouseover",m).on("mouseout",v).on("click",x),y.append("g").attr("class","dimensions");var k=p.select("g.dimensions").selectAll("g.dimension").data((function(t){return t.dimensions}),d);k.enter().append("g").attr("class","dimension"),k.attr("transform",(function(t){return l(t.x,0)})),k.exit().remove();var M=k.selectAll("g.category").data((function(t){return t.categories}),d),S=M.enter().append("g").attr("class","category");M.attr("transform",(function(t){return l(0,t.y)})),S.append("rect").attr("class","catrect").attr("pointer-events","none"),M.select("rect.catrect").attr("fill","none").attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})),T(S);var E=M.selectAll("rect.bandrect").data((function(t){return t.bands}),d);E.each((function(){s.raiseToTop(this)})),E.attr("fill",(function(t){return t.color}));var C=E.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",(function(t){return t.color})).attr("fill-opacity",0);E.attr("fill",(function(t){return t.color})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return t.y})).attr("cursor",(function(t){return"fixed"===t.parcatsViewModel.arrangement?"default":"perpendicular"===t.parcatsViewModel.arrangement?"ns-resize":"move"})),A(C),E.exit().remove(),S.append("text").attr("class","catlabel").attr("pointer-events","none");var O=e._fullLayout.paper_bgcolor;M.select("text.catlabel").attr("text-anchor",(function(t){return h(t)?"start":"end"})).attr("alignment-baseline","middle").style("text-shadow",f.makeTextShadow(O)).style("fill","rgb(0, 0, 0)").attr("x",(function(t){return h(t)?t.width+5:-5})).attr("y",(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){c.font(n.select(this),t.parcatsViewModel.categorylabelfont),f.convertToTspans(n.select(this),e)})),S.append("text").attr("class","dimlabel"),M.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",(function(t){return"fixed"===t.parcatsViewModel.arrangement?"default":"ew-resize"})).attr("x",(function(t){return t.width/2})).attr("y",-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){c.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll("rect.bandrect").on("mouseover",R).on("mouseout",z),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on("dragstart",N).on("drag",F).on("dragend",B)),p.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll("g.paths").selectAll("path.path"),t.dimensionSelection=n.select(this).selectAll("g.dimensions").selectAll("g.dimension")})),p.exit().remove()}function d(t){return t.key}function h(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function g(t,e){return t.model.rawColor>e.model.rawColor?1:t.model.rawColor"),C=n.mouse(f)[0];o.loneHover({trace:p,x:x-h.left+g.left,y:_-h.top+g.top,text:E,color:t.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:k,idealAlign:C1&&p.displayInd===f.dimensions.length-1?(i=c.left,a="left"):(i=c.left+c.width,a="right");var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},b=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf("count")&&b.push(["Count:",y.countLabel].join(" ")),-1!==u.parcatsViewModel.hoverinfoItems.indexOf("probability")&&b.push(["P("+y.categoryLabel+"):",y.probabilityLabel].join(" "));var x=b.join("
");return{trace:d,x:o*(i-e.left),y:s*(h-e.top),text:x,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:y,eventData:[{data:d._input,fullData:d,count:g,category:m,probability:v}]}}function P(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){var r=this;i.push(I(t,e,r))})),i}function D(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),c=n.select(r).datum(),f=c.categoryViewModel,p=f.parcatsViewModel,d=p.model.dimensions[f.model.dimensionInd],h=p.trace,g=l.y+l.height/2;p.dimensions.length>1&&d.displayInd===p.dimensions.length-1?(i=l.left,a="left"):(i=l.left+l.width,a="right");var m=f.model.categoryLabel,v=c.parcatsViewModel.model.count,y=0;c.categoryViewModel.bands.forEach((function(t){t.color===c.color&&(y+=t.count)}));var b=f.model.count,x=0;p.pathSelection.each((function(t){t.model.color===c.color&&(x+=t.model.count)}));var _=y/v,w=y/x,k=y/b,T={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf("count")&&M.push(["Count:",T.countLabel].join(" ")),-1!==f.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(M.push("P(color \u2229 "+m+"): "+T.probabilityLabel),M.push("P("+m+" | color): "+w.toFixed(3)),M.push("P(color | "+m+"): "+k.toFixed(3)));var A=M.join("
"),S=u.mostReadable(c.color,["black","white"]);return{trace:h,x:o*(i-e.left),y:s*(g-e.top),text:A,color:c.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:h.hovertemplate,hovertemplateLabels:T,eventData:[{data:h._input,fullData:h,category:m,count:v,probability:_,categorycount:b,colorcount:x,bandcolorcount:y}]}}function R(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(n.mouse(this)[1]<-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,a=i._paperdiv.node().getBoundingClientRect(),s=t.parcatsViewModel.hoveron,l=this;"color"===s?(C(l),L(l,"plotly_hover",n.event)):(E(l),O(l,"plotly_hover",n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf("none")&&("category"===s?e=I(r,a,l):"color"===s?e=D(r,a,l):"dimension"===s&&(e=P(r,a,l)),e&&o.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r}))}}function z(t){var e=t.parcatsViewModel;if(!e.dragDimension&&(_(e.pathSelection),T(e.dimensionSelection.selectAll("g.category")),A(e.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),o.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(g),-1===e.hoverinfoItems.indexOf("skip"))){var r=this;"color"===t.parcatsViewModel.hoveron?L(r,"plotly_unhover",n.event):O(r,"plotly_unhover",n.event)}}function N(t){"fixed"!==t.parcatsViewModel.arrangement&&(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll("g.category").select("rect.catrect").each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2<=r&&r<=e.width+2&&-2<=i&&i<=e.height+2&&(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,s.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll("rect.bandrect").each((function(e){e.yf.y+f.height/2&&(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||"freeform"===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var p=t.parcatsViewModel.dimensions[r],d=t.parcatsViewModel.dimensions[i];void 0!==p&&a.model.dragXd.x&&(a.model.displayInd=d.model.displayInd,d.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}W(t.parcatsViewModel),G(t.parcatsViewModel),V(t.parcatsViewModel),U(t.parcatsViewModel)}}function B(t){if("fixed"!==t.parcatsViewModel.arrangement&&null!==t.dragDimensionDisplayInd){n.select(this).selectAll("text").attr("font-weight","normal");var e={},r=j(t.parcatsViewModel),i=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==i[e]}));o&&i.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e["dimensions["+i+"].displayindex"]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e["dimensions["+t.model.containerInd+"].categoryarray"]=[u],e["dimensions["+t.model.containerInd+"].ticktext"]=[f],e["dimensions["+t.model.containerInd+"].categoryorder"]="array"}}-1===t.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!t.dragHasMoved&&t.potentialClickBand&&("color"===t.parcatsViewModel.hoveron?L(t.potentialClickBand,"plotly_click",n.event.sourceEvent):O(t.potentialClickBand,"plotly_click",n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd&&(t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null),t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,W(t.parcatsViewModel),G(t.parcatsViewModel),n.transition().duration(300).ease("cubic-in-out").each((function(){V(t.parcatsViewModel,!0),U(t.parcatsViewModel,!0)})).each("end",(function(){(o||s)&&a.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function j(t){for(var e,r=t.graphDiv._fullData,n=0;n=0;s--)u+="C"+c[s]+","+(e[s+1]+n)+" "+l[s]+","+(e[s]+n)+" "+(t[s]+r[s])+","+(e[s]+n),u+="l-"+r[s]+",0 ";return u+="Z"}function G(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&&c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return"backward"===t.sortpaths&&(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&&(n.unshift(e.rawColor),i.unshift(r.rawColor)),ni?1:0}));for(var p=new Array(c.length),d=e[0].model.count,h=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g0?h*(v.count/d):0;for(var y,b=new Array(n.length),x=0;x1?(t.width-2*n-i)/(a-1):0)*o;var s,l,c,u,f,p=[],d=t.model.maxCats,h=e.categories.length,g=8,m=e.count,v=t.height-g*(d-1),y=(d-h)*g/2,b=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(b.sort((function(t,e){return t.displayInd-e.displayInd})),f=0;f0?l.count/m*v:0,c={key:l.valueInds[0],model:l,width:i,height:s,y:null!==l.dragY?l.dragY:y,bands:[],parcatsViewModel:t},y=y+s+g,p.push(c);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:i,model:e,categories:p,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){p(r,t,n,e)}},{"../../components/drawing":389,"../../components/fx":407,"../../lib":515,"../../lib/svg_text_utils":541,"../../plot_api/plot_api":552,"@plotly/d3":58,"d3-interpolate":116,tinycolor2:313}],896:[function(t,e,r){"use strict";var n=t("./parcats");e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{"./parcats":895}],897:[function(t,e,r){"use strict";var n=t("../../components/colorscale/attributes"),i=t("../../plots/cartesian/layout_attributes"),a=t("../../plots/font_attributes"),o=t("../../plots/domain").attributes,s=t("../../lib/extend").extendFlat,l=t("../../plot_api/plot_template").templatedArray;e.exports={domain:o({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:a({editType:"plot"}),tickfont:a({editType:"plot"}),rangefont:a({editType:"plot"}),dimensions:l("dimension",{label:{valType:"string",editType:"plot"},tickvals:s({},i.tickvals,{editType:"plot"}),ticktext:s({},i.ticktext,{editType:"plot"}),tickformat:s({},i.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:s({editType:"calc"},n("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plot_api/plot_template":555,"../../plots/cartesian/layout_attributes":579,"../../plots/domain":593,"../../plots/font_attributes":594}],898:[function(t,e,r){"use strict";var n=t("./constants"),i=t("@plotly/d3"),a=t("../../lib/gup").keyFun,o=t("../../lib/gup").repeat,s=t("../../lib").sorterAsc,l=t("../../lib").strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function p(t,e){return t*(1-f)+e*f}function d(t,e,r,n){if(h(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i<0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f=e[r][0]&&t<=e[r][1])return!0;return!1}function g(t){t.attr("x",-n.bar.captureWidth/2).attr("width",n.bar.captureWidth)}function m(t){t.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function v(t){if(!t.brush.filterSpecified)return"0,"+t.height;for(var e,r,n,i=y(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;st[1]+r||e=.9*t[1]+.1*t[0]?"n":e<=.9*t[0]+.1*t[1]?"s":"ns"}function x(){i.select(document.body).style("cursor",null)}function _(t){t.attr("stroke-dasharray",v)}function w(t,e){var r=i.select(t).selectAll(".highlight, .highlight-shadow");_(e?r.transition().duration(n.bar.snapDuration).each("end",e):r)}function k(t,e){var r,n=t.brush,i=NaN,a={};if(n.filterSpecified){var o=t.height,s=n.filter.getConsolidated(),l=y(s,o),c=NaN,u=NaN,f=NaN;for(r=0;r<=l.length;r++){var p=l[r];if(p&&p[0]<=e&&e<=p[1]){c=r;break}if(u=r?r-1:NaN,p&&p[0]>e){f=r;break}}if(i=c,isNaN(i)&&(i=isNaN(u)||isNaN(f)?isNaN(u)?f:u:e-l[u][1]=v[0]&&m<=v[1]){a.clickableOrdinalRange=v;break}}}return a}function T(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=k(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar="ns"===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&&o.filterSpecified?o.filter.getConsolidated():[],l&&(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&&t[1]!==l[1]}))),c.startExtent=s.region?l["s"===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}function M(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),w(t.parentNode)}function A(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(S(t,e),M(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,x(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&&e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&&P(r)):P(r),a.brushCallback(e),w(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||P(r),a.brushCallback(e),c?w(t.parentNode,s):(s(),w(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function S(t,e){var r=k(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a="crosshair";r.clickableOrdinalRange?a="pointer":r.region&&(a=r.region+"-resize"),i.select(document.body).style("cursor",a)}function E(t){t.on("mousemove",(function(t){i.event.preventDefault(),t.parent.inBrushDrag||S(this,t)})).on("mouseleave",(function(t){t.parent.inBrushDrag||x()})).call(i.behavior.drag().on("dragstart",(function(t){T(this,t)})).on("drag",(function(t){M(this,t)})).on("dragend",(function(t){A(this,t)})))}function C(t,e){return t[0]-e[0]}function O(t,e,r){var i=r._context.staticPlot,a=t.selectAll(".background").data(o);a.enter().append("rect").classed("background",!0).call(g).call(m).style("pointer-events",i?"none":"auto").attr("transform",l(0,n.verticalPadding)),a.call(E).attr("height",(function(t){return t.height-n.verticalPadding}));var s=t.selectAll(".highlight-shadow").data(o);s.enter().append("line").classed("highlight-shadow",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width+n.bar.strokeWidth).attr("stroke",e).attr("opacity",n.bar.strokeOpacity).attr("stroke-linecap","butt"),s.attr("y1",(function(t){return t.height})).call(_);var c=t.selectAll(".highlight").data(o);c.enter().append("line").classed("highlight",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width-n.bar.strokeWidth).attr("stroke",n.bar.fillColor).attr("opacity",n.bar.fillOpacity).attr("stroke-linecap","butt"),c.attr("y1",(function(t){return t.height})).call(_)}function L(t,e,r){var i=t.selectAll("."+n.cn.axisBrush).data(o,a);i.enter().append("g").classed(n.cn.axisBrush,!0),O(i,e,r)}function I(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}function P(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function D(t){return function(e){var r=e.brush,n=I(r).slice();r.filter.set(n),t()}}function R(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&&i[0]<=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&&n[0][0]>n[0][1]&&(n=[]),n}function z(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(C)).length&&r[0][0]===-1/0&&r[0][1]===1/0&&(r=[[0,-1]]),t=R(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}function N(t,e,r,n,i,a){var o=z();return o.set(r),{filter:o,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:D(i),brushEndCallback:a}}}function F(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?R(t.sort(C)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[d(0,r,t[0],[]),d(1,r,t[1],[])];if(e[1]>e[0])return e})).filter((function(t){return t}))).length)return}return t.length>1?t:t[0]}e.exports={makeBrush:N,ensureAxisBrush:L,cleanRanges:F}},{"../../lib":515,"../../lib/gup":512,"./constants":902,"@plotly/d3":58}],899:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:t("./base_plot"),categories:["gl","regl","noOpacity","noHover"],meta:{}}},{"./attributes":897,"./base_plot":900,"./calc":901,"./defaults":903}],900:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../plots/get_data").getModuleCalcData,a=t("./plot"),o=t("../../constants/xmlns_namespaces");r.name="parcoords",r.plot=function(t){var e=i(t.calcdata,"parcoords")[0];e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has("parcoords"),a=e._has&&e._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(".svg-container");function i(){var t=this,r=t.toDataURL("image/png");e.append("svg:image").attr({xmlns:o.svg,"xlink:href":r,preserveAspectRatio:"none",x:0,y:0,width:t.style.width,height:t.style.height})}r.filter((function(t,e){return e===r.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each(i),window.setTimeout((function(){n.selectAll("#filterBarPattern").attr("id","filterBarPattern")}),60)}},{"../../constants/xmlns_namespaces":492,"../../plots/get_data":602,"./plot":909,"@plotly/d3":58}],901:[function(t,e,r){"use strict";var n=t("../../lib").isArrayOrTypedArray,i=t("../../components/colorscale"),a=t("../../lib/gup").wrap;function o(t){for(var e=new Array(t),r=0;rf&&(n.log("parcoords traces support up to "+f+" dimensions at the moment"),l.splice(f));var u=s(t,e,{name:"dimensions",layout:i,handleItemDefaults:h}),g=d(t,e,r,i,a);o(e,i,a),Array.isArray(u)&&u.length||(e.visible=!1),p(e,u,"values",g);var m={family:i.font.family,size:Math.round(i.font.size/1.2),color:i.font.color};n.coerceFont(a,"labelfont",m),n.coerceFont(a,"tickfont",m),n.coerceFont(a,"rangefont",m),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}},{"../../components/colorscale/defaults":377,"../../components/colorscale/helpers":378,"../../lib":515,"../../plots/array_container_defaults":561,"../../plots/cartesian/axes":566,"../../plots/domain":593,"./attributes":897,"./axisbrush":898,"./constants":902,"./merge_length":907}],904:[function(t,e,r){"use strict";var n=t("../../lib").isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!("visible"in t)}},{"../../lib":515}],905:[function(t,e,r){"use strict";var n=t("./base_index");n.plot=t("./plot"),e.exports=n},{"./base_index":899,"./plot":909}],906:[function(t,e,r){"use strict";var n=t("glslify"),i=n(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n p17_20, p21_24, p25_28, p29_32,\n p33_36, p37_40, p41_44, p45_48,\n p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\nuniform sampler2D maskTexture, palette;\n\nbool isPick = (drwLayer > 1.5);\nbool isContext = (drwLayer < 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n return (lo < hi) && (lo > p || p > hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n return (\n fOutside(p[0], lo[0], hi[0]) ||\n fOutside(p[1], lo[1], hi[1]) ||\n fOutside(p[2], lo[2], hi[2]) ||\n fOutside(p[3], lo[3], hi[3])\n );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n return (\n vOutside(p[0], lo[0], hi[0]) ||\n vOutside(p[1], lo[1], hi[1]) ||\n vOutside(p[2], lo[2], hi[2]) ||\n vOutside(p[3], lo[3], hi[3])\n );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n return mOutside(A, loA, hiA) ||\n mOutside(B, loB, hiB) ||\n mOutside(C, loC, hiC) ||\n mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n mat4 pnts[4];\n pnts[0] = A;\n pnts[1] = B;\n pnts[2] = C;\n pnts[3] = D;\n\n for(int i = 0; i < 4; ++i) {\n for(int j = 0; j < 4; ++j) {\n for(int k = 0; k < 4; ++k) {\n if(0 == iMod(\n int(255.0 * texture2D(maskTexture,\n vec2(\n (float(i * 2 + j / 2) + 0.5) / 8.0,\n (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n ))[3]\n ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n 2\n )) return true;\n }\n }\n }\n return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n float x = 0.5 * sign(v) + 0.5;\n float y = axisY(x, A, B, C, D);\n float z = 1.0 - abs(v);\n\n z += isContext ? 0.0 : 2.0 * float(\n outsideBoundingBox(A, B, C, D) ||\n outsideRasterMask(A, B, C, D)\n );\n\n return vec4(\n 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n z,\n 1.0\n );\n}\n\nvoid main() {\n mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n float v = colors[3];\n\n gl_Position = position(isContext, v, A, B, C, D);\n\n fragColor =\n isContext ? vec4(contextColor) :\n isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n"]),a=n(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n gl_FragColor = fragColor;\n}\n"]),o=t("./constants").maxDimensionCount,s=t("../../lib"),l=1e-6,c=2048,u=new Uint8Array(4),f=new Uint8Array(4),p={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function d(t){t.read({x:0,y:0,width:1,height:1,data:u})}function h(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function g(t,e,r,n,i,a){var o=a.key;function s(l){var c=Math.min(n,i-l*n);0===l&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],h(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c>>8*e)%256/255}function b(t,e,r){for(var n=new Array(t*(o+4)),i=0,a=0;au&&(u=t[i].dim1.canvasX,o=i);0===s&&h(y,0,0,r.canvasWidth,r.canvasHeight);var f=P(d);for(i=0;in._length&&(T=T.slice(0,n._length));var M,S=n.tickvals;function O(t,e){return{val:t,text:M[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(S)&&S.length){M=n.ticktext,Array.isArray(M)&&M.length?M.length>S.length?M=M.slice(0,S.length):S.length>M.length&&(S=S.slice(0,M.length)):M=S.map(a(n.tickformat));for(var P=1;P=r||l>=i)return;var c=t.lineLayer.readPixel(s,i-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,p={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==A&&(u?a.hover(p):a.unhover&&a.unhover(p),A=f)}})),M.style("opacity",(function(t){return t.pick?0:1})),p.style("background","rgba(255, 255, 255, 0)");var S=p.selectAll("."+y.cn.parcoords).data(T,h);S.exit().remove(),S.enter().append("g").classed(y.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),S.attr("transform",(function(t){return c(t.model.translateX,t.model.translateY)}));var E=S.selectAll("."+y.cn.parcoordsControlView).data(g,h);E.enter().append("g").classed(y.cn.parcoordsControlView,!0),E.attr("transform",(function(t){return c(t.model.pad.l,t.model.pad.t)}));var C=E.selectAll("."+y.cn.yAxis).data((function(t){return t.dimensions}),h);C.enter().append("g").classed(y.cn.yAxis,!0),E.each((function(t){N(C,t,_)})),M.each((function(t){if(t.viewModel){!t.lineLayer||a?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&&(t.viewModel[t.key]=t.lineLayer);var e=!t.context||a;t.lineLayer.render(t.viewModel.panels,e)}})),C.attr("transform",(function(t){return c(t.xScale(t.xIndex),0)})),C.call(n.behavior.drag().origin((function(t){return t})).on("drag",(function(t){var e=t.parent;k.linePickActive(!1),t.x=Math.max(-y.overdrag,Math.min(t.model.width+y.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,C.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),N(C,e,_),C.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr("transform",(function(t){return c(t.xScale(t.xIndex),0)})),n.select(this).attr("transform",c(t.x,0)),C.each((function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)})),e.contextLayer&&e.contextLayer.render(e.panels,!1,!L(e)),e.focusLayer.render&&e.focusLayer.render(e.panels)})).on("dragend",(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,N(C,e,_),n.select(this).attr("transform",(function(t){return c(t.x,0)})),e.contextLayer&&e.contextLayer.render(e.panels,!1,!L(e)),e.focusLayer&&e.focusLayer.render(e.panels),e.pickLayer&&e.pickLayer.render(e.panels,!0),k.linePickActive(!0),a&&a.axesMoved&&a.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),C.exit().remove();var O=C.selectAll("."+y.cn.axisOverlays).data(g,h);O.enter().append("g").classed(y.cn.axisOverlays,!0),O.selectAll("."+y.cn.axis).remove();var U=O.selectAll("."+y.cn.axis).data(g,h);U.enter().append("g").classed(y.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return v.isOrdinal(t)?e:B(t.model.dimensions[t.visibleIndex],e)})).scale(r)),f.font(U.selectAll("text"),t.model.tickFont)})),U.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),U.selectAll("text").style("text-shadow",u.makeTextShadow(w)).style("cursor","default");var V=O.selectAll("."+y.cn.axisHeading).data(g,h);V.enter().append("g").classed(y.cn.axisHeading,!0);var H=V.selectAll("."+y.cn.axisTitle).data(g,h);H.enter().append("text").classed(y.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",o?"none":"auto"),H.text((function(t){return t.label})).each((function(e){var r=n.select(this);f.font(r,e.model.labelFont),u.convertToTspans(r,t)})).attr("transform",(function(t){var e=z(t.model.labelAngle,t.model.labelSide),r=y.axisTitleOffset;return(e.dir>0?"":c(0,2*r+t.model.height))+l(e.degrees)+c(-r*e.dx,-r*e.dy)})).attr("text-anchor",(function(t){var e=z(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)>Math.abs(e.dy)?e.dir*e.dx<0?"start":"end":"middle"}));var q=O.selectAll("."+y.cn.axisExtent).data(g,h);q.enter().append("g").classed(y.cn.axisExtent,!0);var G=q.selectAll("."+y.cn.axisExtentTop).data(g,h);G.enter().append("g").classed(y.cn.axisExtentTop,!0),G.attr("transform",c(0,-y.axisExtentOffset));var W=G.selectAll("."+y.cn.axisExtentTopText).data(g,h);W.enter().append("text").classed(y.cn.axisExtentTopText,!0).call(D),W.text((function(t){return j(t,!0)})).each((function(t){f.font(n.select(this),t.model.rangeFont)}));var Y=q.selectAll("."+y.cn.axisExtentBottom).data(g,h);Y.enter().append("g").classed(y.cn.axisExtentBottom,!0),Y.attr("transform",(function(t){return c(0,t.model.height+y.axisExtentOffset)}));var X=Y.selectAll("."+y.cn.axisExtentBottomText).data(g,h);X.enter().append("text").classed(y.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(D),X.text((function(t){return j(t,!1)})).each((function(t){f.font(n.select(this),t.model.rangeFont)})),b.ensureAxisBrush(O,w,t)}},{"../../components/colorscale":379,"../../components/drawing":389,"../../lib":515,"../../lib/gup":512,"../../lib/svg_text_utils":541,"../../plots/cartesian/axes":566,"./axisbrush":898,"./constants":902,"./helpers":904,"./lines":906,"@plotly/d3":58,"color-rgba":91}],909:[function(t,e,r){"use strict";var n=t("./parcoords"),i=t("../../lib/prepare_regl"),a=t("./helpers").isVisible,o={};function s(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}function l(t,e){return function(r,n){return s(t,e,r)-s(t,e,n)}}(e.exports=function(t,e){var r=t._fullLayout;if(i(t,[],o)){var s={},c={},u={},f={},p=r._size;e.forEach((function(e,r){var n=e[0].trace;u[r]=n.index;var i=f[r]=n._fullInput.index;s[r]=t.data[i].dimensions,c[r]=t.data[i].dimensions.slice()}));var d=function(e,n,i){var a=c[e][n],o=i.map((function(t){return t.slice()})),s="dimensions["+n+"].constraintrange",l=r._tracePreGUI[t._fullData[u[e]]._fullInput.uid];if(void 0===l[s]){var p=a.constraintrange;l[s]=p||null}var d=t._fullData[u[e]].dimensions[n];o.length?(1===o.length&&(o=o[0]),a.constraintrange=o,d.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete d.constraintrange,o=null);var h={};h[s]=o,t.emit("plotly_restyle",[h,[f[e]]])},h=function(e){t.emit("plotly_hover",e)},g=function(e){t.emit("plotly_unhover",e)},m=function(e,r){var n=l(r,c[e].filter(a));s[e].sort(n),c[e].filter((function(t){return!a(t)})).sort((function(t){return c[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(c[e].indexOf(t),0,t)})),t.emit("plotly_restyle",[{dimensions:[s[e]]},[f[e]]])};n(t,e,{width:p.w,height:p.h,margin:{t:p.t,r:p.r,b:p.b,l:p.l}},{filterChanged:d,hover:h,unhover:g,axesMoved:m})}}).reglPrecompiled=o},{"../../lib/prepare_regl":528,"./helpers":904,"./parcoords":908}],910:[function(t,e,r){"use strict";var n=t("../../plots/attributes"),i=t("../../plots/domain").attributes,a=t("../../plots/font_attributes"),o=t("../../components/color/attributes"),s=t("../../plots/template_attributes").hovertemplateAttrs,l=t("../../plots/template_attributes").texttemplateAttrs,c=t("../../lib/extend").extendFlat,u=a({editType:"plot",arrayOk:!0,colorEditType:"plot"});e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:c({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:s({},{keys:["label","color","value","percent","text"]}),texttemplate:l({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:c({},u,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:c({},u,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:i({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:c({},u,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},{"../../components/color/attributes":366,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/domain":593,"../../plots/font_attributes":594,"../../plots/template_attributes":642}],911:[function(t,e,r){"use strict";var n=t("../../plots/plots");r.name="pie",r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{"../../plots/plots":628}],912:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("tinycolor2"),a=t("../../components/color"),o={};function s(t,e){var r,i,a=[],o=t._fullLayout,s=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,p=e._length,d=e._hasValues&&p;if(e.dlabel)for(c=new Array(p),r=0;r=0})),("funnelarea"===e.type?v:e.sort)&&a.sort((function(t,e){return e.v-t.v})),a[0]&&(a[0].vTotal=m),a}function l(t){return function(e,r){return!!e&&!!(e=i(e)).isValid()&&(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e)}}function c(t,e){var r=(e||{}).type;r||(r="pie");var n=t._fullLayout,i=t.calcdata,a=n[r+"colorway"],s=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=u(a,o));for(var l=0,c=0;c0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}function c(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c("labels"),c("values")),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),f){e._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var p,d=c("text"),h=c("texttemplate");if(h||(p=c("textinfo",Array.isArray(d)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),h||p&&"none"!==p){var g=c("textposition");s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}o(e,n,c);var m=c("hole");if(c("title.text")){var v=c("title.position",m?"middle center":"top center");m||"middle center"!==v||(e.title.position="top center"),i.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else e.visible=!1}e.exports={handleLabelsAndValues:l,supplyDefaults:c}},{"../../lib":515,"../../plots/domain":593,"../bar/defaults":661,"./attributes":910,"fast-isnumeric":190}],914:[function(t,e,r){"use strict";var n=t("../../components/fx/helpers").appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return 1===t.pts.length&&(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),"funnelarea"===e.type&&(delete r.v,delete r.i),r}},{"../../components/fx/helpers":403}],915:[function(t,e,r){"use strict";var n=t("../../lib");function i(t){return-1!==t.indexOf("e")?t.replace(/[.]?0+e/,"e"):-1!==t.indexOf(".")?t.replace(/[.]?0+$/,""):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+"%"},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r0&&(c+=x*i.pxmid[0],u+=x*i.pxmid[1])}i.cxFinal=c,i.cyFinal=u;var T=g.hole;if(i.v===h.vTotal){var A="M"+(c+i.px0[0])+","+(u+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+"Z";T?v.attr("d","M"+(c+T*i.px0[0])+","+(u+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+"Z"+A):v.attr("d",A)}else{var S=L(i.px0,i.px1,!0,1);if(T){var E=1-T;v.attr("d","M"+(c+T*i.px1[0])+","+(u+T*i.px1[1])+L(i.px1,i.px0,!1,T)+"l"+E*i.px0[0]+","+E*i.px0[1]+S+"Z")}else v.attr("d","M"+c+","+u+"l"+i.px0[0]+","+i.px0[1]+S+"Z")}q(t,i,h);var C=m.castOption(g.textposition,i.pts),O=p.selectAll("g.slicetext").data(i.text&&"none"!==C?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each((function(){var r=l.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),p=l.ensureUniformFontSize(t,"outside"===C?w(g,i,a.font):k(g,i,a.font));r.text(i.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(s.font,p).call(f.convertToTspans,t);var m,v=s.bBox(r.node());if("outside"===C)m=P(v,i);else if(m=M(v,i,h),"auto"===C&&m.scale<1){var y=l.ensureUniformFontSize(t,g.outsidetextfont);r.call(s.font,y),m=P(v=s.bBox(r.node()),i)}var x=m.textPosAngle,_=void 0===x?i.pxmid:H(h.r,x);if(m.targetX=c+_[0]*m.rCenter+(m.x||0),m.targetY=u+_[1]*m.rCenter+(m.y||0),G(m,v),m.outside){var T=m.targetY;i.yLabelMin=T-v.height/2,i.yLabelMid=T,i.yLabelMax=T+v.height/2,i.labelExtraX=0,i.labelExtraY=0,b=!0}m.fontSize=p.size,d(g.type,m,a),e[o].transform=m,l.setTransormAndDisplay(r,m)}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return"a"+n*h.r+","+n*h.r+" 0 "+i.largeArc+(r?" 1 ":" 0 ")+a+","+o}}));var T=n.select(this).selectAll("g.titletext").data(g.title.text?[0]:[]);if(T.enter().append("g").classed("titletext",!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),"text","",(function(t){t.attr("data-notex",1)})),i=g.title.text;g._meta&&(i=l.templateString(i,g._meta)),r.text(i).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(s.font,g.title.font).call(f.convertToTspans,t),e="middle center"===g.title.position?D(h):R(h,o),r.attr("transform",u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),b&&B(y,g),x(v,g),b&&g.automargin){var A=s.bBox(p.node()),S=g.domain,E=o.w*(S.x[1]-S.x[0]),C=o.h*(S.y[1]-S.y[0]),O=(.5*E-h.r)/o.w,L=(.5*C-h.r)/o.h;i.autoMargin(t,"pie."+g.uid+".automargin",{xl:S.x[0]-O,xr:S.x[1]+O,yb:S.y[0]-L,yt:S.y[1]+L,l:Math.max(h.cx-h.r-A.left,0),r:Math.max(A.right-(h.cx+h.r),0),b:Math.max(A.bottom-(h.cy+h.r),0),t:Math.max(h.cy-h.r-A.top,0),pad:5})}}))}));setTimeout((function(){p.selectAll("tspan").each((function(){var t=n.select(this);t.attr("dy")&&t.attr("dy",t.attr("dy"))}))}),0)}function x(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,l.setTransormAndDisplay(i,t.transform);var a=t.cxFinal+t.pxmid[0],s="M"+a+","+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?s+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(a+t.labelExtraX+c):s+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+c}else s+="V"+(t.yLabelMid+t.labelExtraY)+"h"+c;l.ensureSingle(r,"path","textline").call(o.stroke,e.outsidetextfont.color).attr({"stroke-width":Math.min(2,e.outsidetextfont.size/8),d:s,fill:"none"})}else r.select("path.textline").remove()}))}function _(t,e,r){var i=r[0],o=i.cx,s=i.cy,c=i.trace,u="funnelarea"===c.type;"_hasHoverLabel"in c||(c._hasHoverLabel=!1),"_hasHoverEvent"in c||(c._hasHoverEvent=!1),t.on("mouseover",(function(t){var r=e._fullLayout,f=e._fullData[c.index];if(!e._dragging&&!1!==r.hovermode){var p=f.hoverinfo;if(Array.isArray(p)&&(p=a.castHoverinfo({hoverinfo:[m.castOption(p,t.pts)],_module:c._module},r,0)),"all"===p&&(p="label+text+value+percent+name"),f.hovertemplate||"none"!==p&&"skip"!==p&&p){var d=t.rInscribed||0,h=o+t.pxmid[0]*(1-d),g=s+t.pxmid[1]*(1-d),y=r.separators,b=[];if(p&&-1!==p.indexOf("label")&&b.push(t.label),t.text=m.castOption(f.hovertext||f.text,t.pts),p&&-1!==p.indexOf("text")){var x=t.text;l.isValidTextValue(x)&&b.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,y),p&&-1!==p.indexOf("value")&&b.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,y),p&&-1!==p.indexOf("percent")&&b.push(t.percentLabel);var _=f.hoverlabel,w=_.font,k=[];a.loneHover({trace:c,x0:h-d*i.r,x1:h+d*i.r,y:g,_x0:u?o+t.TL[0]:h-d*i.r,_x1:u?o+t.TR[0]:h+d*i.r,_y0:u?s+t.TL[1]:g-d*i.r,_y1:u?s+t.BL[1]:g+d*i.r,text:b.join("
"),name:f.hovertemplate||-1!==p.indexOf("name")?f.name:void 0,idealAlign:t.pxmid[0]<0?"left":"right",color:m.castOption(_.bgcolor,t.pts)||t.color,borderColor:m.castOption(_.bordercolor,t.pts),fontFamily:m.castOption(w.family,t.pts),fontSize:m.castOption(w.size,t.pts),fontColor:m.castOption(w.color,t.pts),nameLength:m.castOption(_.namelength,t.pts),textAlign:m.castOption(_.align,t.pts),hovertemplate:m.castOption(f.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e,inOut_bbox:k}),t.bbox=k[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,e.emit("plotly_hover",{points:[v(t,f)],event:n.event})}})),t.on("mouseout",(function(t){var r=e._fullLayout,i=e._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(t.originalEvent=n.event,e.emit("plotly_unhover",{points:[v(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),t.on("click",(function(t){var r=e._fullLayout,i=e._fullData[c.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function w(t,e,r){return{color:m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,family:m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,size:m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size}}function k(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&&t._input.textfont&&(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function T(t,e){for(var r,n,i=0;i=-4;m-=2)v(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)v(Math.PI*(m+1),"tan")}if(f||d){for(m=4;m>=-4;m-=2)v(Math.PI*(m+1.5),"rad");for(m=4;m>=-4;m-=2)v(Math.PI*(m+.5),"rad")}}if(s||h||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale>=1)return a;g.push(a)}(h||d)&&((a=S(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(h||p)&&((a=E(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var b=0,x=0,_=0;_=1)break}return g[b]}function A(t,e){var r=t.startangle,n=t.stopangle;return r>e&&e>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function D(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}function R(t,e){var r,n=1,i=1,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,r=F(a),-1!==a.title.position.indexOf("top")?(o.y-=(1+r)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf("bottom")&&(o.y+=(1+r)*t.r);var l=z(t.r,t.trace.aspectratio),c=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf("left")?(c+=l,o.x-=(1+r)*l,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf("center")?c*=2:-1!==a.title.position.indexOf("right")&&(c+=l,o.x+=(1+r)*l,s.tx-=t.titleBox.width/2),n=c/t.titleBox.width,i=N(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(n,i),tx:s.tx,ty:s.ty}}function z(t,e){return t/(void 0===e?1:e)}function N(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function F(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;er&&(r=t.pull[e]);return r}function B(t,e){var r,n,i,a,o,s,l,c,u,f,p,d,h;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,p,d=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),h=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=d-h;if(y*l>0&&(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l>0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-h-t.labelExtraY)*l>0&&(t.labelExtraY+=y):(g+t.labelExtraY-v)*l>0&&(i=3*s*Math.abs(c-f.indexOf(t)),(p=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s>0&&(t.labelExtraX+=p)))}for(n=0;n<2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),d=[],p=0;p1?u=(c=r.r)/i.aspectratio:c=(u=r.r)*i.aspectratio,l=(c*=(1+i.baseratio)/2)*u}o=Math.min(o,l/r.vTotal)}for(n=0;ni.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=I(r,i))}function H(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function q(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&"none"!==o){var s,c=o.split("+"),u=function(t){return-1!==c.indexOf(t)},f=u("label"),p=u("text"),d=u("value"),h=u("percent"),g=n.separators;if(s=f?[e.label]:[],p){var v=m.getFirstFilled(i.text,e.pts);y(v)&&s.push(v)}d&&s.push(m.formatPieValue(e.v,g)),h&&s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join("
")}function b(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,"customdata")}}if(a){var x=l.castOption(i,e.i,"texttemplate");if(x){var _=b(e),w=m.getFirstFilled(i.text,e.pts);(y(w)||""===w)&&(_.text=w),e.text=l.texttemplateString(x,_,t._fullLayout._d3locale,_,i._meta||{})}else e.text=""}}function G(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:b,formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:k,positionTitleOutside:R,prerenderTitles:T,layoutAreas:j,attachFxHandlers:_,computeTransform:G}},{"../../components/color":367,"../../components/drawing":389,"../../components/fx":407,"../../lib":515,"../../lib/svg_text_utils":541,"../../plots/plots":628,"../bar/constants":659,"../bar/uniform_text":673,"./event_data":914,"./helpers":915,"@plotly/d3":58}],920:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("./style_one"),a=t("../bar/uniform_text").resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(".trace");a(t,e,"pie"),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll("path.surface").each((function(t){n.select(this).call(i,t,e)}))}))}},{"../bar/uniform_text":673,"./style_one":921,"@plotly/d3":58}],921:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("./helpers").castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style("stroke-width",s).call(n.fill,e.color).call(n.stroke,o)}},{"../../components/color":367,"./helpers":915}],922:[function(t,e,r){"use strict";var n=t("../scatter/attributes");e.exports={x:n.x,y:n.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:n.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},{"../scatter/attributes":936}],923:[function(t,e,r){"use strict";var n=t("../../../stackgl_modules").gl_pointcloud2d,i=t("../../lib/str2rgbarray"),a=t("../../plots/cartesian/autorange").findExtremes,o=t("../scatter/get_trace_color");function s(t,e){this.scene=t,this.uid=e,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;function c(t,e){var r=new s(t,e.uid);return r.update(e),r}l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,p=t.xbounds&&t.ybounds,d=t.indices,h=this.bounds;if(f){if(n=f,e=f.length>>>1,p)h[0]=t.xbounds[0],h[2]=t.xbounds[1],h[1]=t.ybounds[0],h[3]=t.ybounds[1];else for(l=0;lh[2]&&(h[2]=o),sh[3]&&(h[3]=s);if(d)r=d;else for(r=new Int32Array(e),l=0;lh[2]&&(h[2]=o),sh[3]&&(h[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){var b=100;y=c.lengthy&&(y=n.source[e]),n.target[e]>y&&(y=n.target[e]);var b,x=y+1;t.node._count=x;var _=t.node.groups,w={};for(e=0;e<_.length;e++){var k=_[e];for(b=0;b0&&s(E,x)&&s(C,x)&&(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&&(C=w[C]),w.hasOwnProperty(E)&&(E=w[E]),C=+C,p[E=+E]=p[C]=!0;var O="";n.label&&n.label[e]&&(O=n.label[e]);var L=null;O&&d.hasOwnProperty(O)&&(L=d[O]),a.push({pointNumber:e,label:O,color:c?n.color[e]:n.color,customdata:f?n.customdata[e]:n.customdata,concentrationscale:L,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var I=x+_.length,P=o(r.color),D=o(r.customdata),R=[];for(e=0;ex-1,childrenNodes:[],pointNumber:e,label:z,color:P?r.color[e]:r.color,customdata:D?r.customdata[e]:r.customdata})}var N=!1;return u(I,A.source,A.target)&&(N=!0),{circular:N,links:a,nodes:R,groups:_,groupLookup:w}}function u(t,e,r){for(var a=i.init2dArray(t,0),o=0;o1}))}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{"../../components/colorscale":379,"../../lib":515,"../../lib/gup":512,"strongly-connected-components":307}],929:[function(t,e,r){"use strict";e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},{}],930:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../components/color"),o=t("tinycolor2"),s=t("../../plots/domain").defaults,l=t("../../components/fx/hoverlabel_defaults"),c=t("../../plot_api/plot_template"),u=t("../../plots/array_container_defaults");function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r("label"),r("cmin"),r("cmax"),r("colorscale")}e.exports=function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}var h=n.extendDeep(p.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,"node");function v(t,e){return n.coerce(g,m,i.node,t,e)}v("label"),v("groups"),v("x"),v("y"),v("pad"),v("thickness"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),l(g,m,v,h),v("hovertemplate");var y=p.colorway,b=function(t){return y[t%y.length]};v("color",m.label.map((function(t,e){return a.addOpacity(b(e),.8)}))),v("customdata");var x=t.link||{},_=c.newContainer(e,"link");function w(t,e){return n.coerce(x,_,i.link,t,e)}w("label"),w("arrowlen"),w("source"),w("target"),w("value"),w("line.color"),w("line.width"),w("hoverinfo",t.hoverinfo),l(x,_,w,h),w("hovertemplate");var k,T=o(p.paper_bgcolor).getLuminance()<.333?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)";w("color",n.repeat(T,_.value.length)),w("customdata"),u(x,_,{name:"colorscales",handleItemDefaults:f}),s(e,p,d),d("orientation"),d("valueformat"),d("valuesuffix"),m.x.length&&m.y.length&&(k="freeform"),d("arrangement",k),n.coerceFont(d,"textfont",n.extendFlat({},p.font)),e._length=null}},{"../../components/color":367,"../../components/fx/hoverlabel_defaults":405,"../../lib":515,"../../plot_api/plot_template":555,"../../plots/array_container_defaults":561,"../../plots/domain":593,"./attributes":926,tinycolor2:313}],931:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),calc:t("./calc"),plot:t("./plot"),moduleType:"trace",name:"sankey",basePlotModule:t("./base_plot"),selectPoints:t("./select.js"),categories:["noOpacity"],meta:{}}},{"./attributes":926,"./base_plot":927,"./calc":928,"./defaults":930,"./plot":932,"./select.js":934}],932:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=i.numberFormat,o=t("./render"),s=t("../../components/fx"),l=t("../../components/color"),c=t("./constants").cn,u=i._;function f(t){return""!==t}function p(t,e){return t.filter((function(t){return t.key===e.traceId}))}function d(t,e){n.select(t).select("path").style("fill-opacity",e),n.select(t).select("rect").style("fill-opacity",e)}function h(t){n.select(t).select("text.name").style("fill","black")}function g(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function m(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&&r&&p(r,e).selectAll("."+c.sankeyLink).filter(g(e)).call(b.bind(0,e,r,!1))}function y(t,e,r){e&&r&&p(r,e).selectAll("."+c.sankeyLink).filter(g(e)).call(x.bind(0,e,r,!1))}function b(t,e,r,n){var i=n.datum().link.label;n.style("fill-opacity",(function(t){if(!t.link.concentrationscale)return.4})),i&&p(e,t).selectAll("."+c.sankeyLink).filter((function(t){return t.link.label===i})).style("fill-opacity",(function(t){if(!t.link.concentrationscale)return.4})),r&&p(e,t).selectAll("."+c.sankeyNode).filter(m(t)).call(v)}function x(t,e,r,n){var i=n.datum().link.label;n.style("fill-opacity",(function(t){return t.tinyColorAlpha})),i&&p(e,t).selectAll("."+c.sankeyLink).filter((function(t){return t.link.label===i})).style("fill-opacity",(function(t){return t.tinyColorAlpha})),r&&p(e,t).selectAll(c.sankeyNode).filter(m(t)).call(y)}function _(t,e){var r=t.hoverlabel||{},n=i.nestedProperty(r,e).get();return!Array.isArray(n)&&n}e.exports=function(t,e){for(var r=t._fullLayout,i=r._paper,p=r._size,g=0;g"),color:_(o,"bgcolor")||l.addOpacity(g.color,1),borderColor:_(o,"bordercolor"),fontFamily:_(o,"font.family"),fontSize:_(o,"font.size"),fontColor:_(o,"font.color"),nameLength:_(o,"namelength"),textAlign:_(o,"align"),idealAlign:n.event.x"),color:_(o,"bgcolor")||i.tinyColorHue,borderColor:_(o,"bordercolor"),fontFamily:_(o,"font.family"),fontSize:_(o,"font.size"),fontColor:_(o,"font.color"),nameLength:_(o,"namelength"),textAlign:_(o,"align"),idealAlign:"left",hovertemplate:o.hovertemplate,hovertemplateLabels:y,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});d(w,.85),h(w)}}},D=function(e,i,a){!1!==t._fullLayout.hovermode&&(n.select(e).call(y,i,a),"skip"!==i.node.trace.node.hoverinfo&&(i.node.fullData=i.node.trace,t.emit("plotly_unhover",{event:n.event,points:[i.node]})),s.loneUnhover(r._hoverlayer.node()))};o(t,i,e,{width:p.w,height:p.h,margin:{t:p.t,r:p.r,b:p.b,l:p.l}},{linkEvents:{hover:k,follow:C,unhover:O,select:w},nodeEvents:{hover:I,follow:P,unhover:D,select:L}})}},{"../../components/color":367,"../../components/fx":407,"../../lib":515,"./constants":929,"./render":933,"@plotly/d3":58}],933:[function(t,e,r){"use strict";var n=t("d3-force"),i=t("d3-interpolate").interpolateNumber,a=t("@plotly/d3"),o=t("@plotly/d3-sankey"),s=t("@plotly/d3-sankey-circular"),l=t("./constants"),c=t("tinycolor2"),u=t("../../components/color"),f=t("../../components/drawing"),p=t("../../lib"),d=p.strTranslate,h=p.strRotate,g=t("../../lib/gup"),m=g.keyFun,v=g.repeat,y=g.unwrap,b=t("../../lib/svg_text_utils"),x=t("../../registry"),_=t("../../constants/alignment"),w=_.CAP_SHIFT,k=_.LINE_SPACING,T=3;function M(t,e,r){var n,i=y(e),a=i.trace,u=a.domain,f="h"===a.orientation,d=a.node.pad,h=a.node.thickness,g=t.width*(u.x[1]-u.x[0]),m=t.height*(u.y[1]-u.y[0]),v=i._nodes,b=i._links,x=i.circular;(n=x?s.sankeyCircular().circularLinkGap(0):o.sankey()).iterations(l.sankeyIterations).size(f?[g,m]:[m,g]).nodeWidth(h).nodePadding(d).nodeId((function(t){return t.pointNumber})).nodes(v).links(b);var _,w,k,T=n();for(var M in n.nodePadding()=i||(r=i-e.y0)>1e-6&&(e.y0+=r,e.y1+=r),i=e.y1+d}))}function L(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_o+h&&(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}if(C(),a.node.x.length&&a.node.y.length){for(_=0;_0?"L"+n.targetX+" "+n.targetY:"")+"Z":"M "+(n.targetX-e)+" "+(n.targetY-r)+" L"+(n.rightInnerExtent-e)+" "+(n.targetY-r)+"A"+(n.rightLargeArcRadius+r)+" "+(n.rightSmallArcRadius+r)+" 0 0 0 "+(n.rightFullExtent-r-e)+" "+(n.targetY+n.rightSmallArcRadius)+"L"+(n.rightFullExtent-r-e)+" "+n.verticalRightInnerExtent+"A"+(n.rightLargeArcRadius+r)+" "+(n.rightLargeArcRadius+r)+" 0 0 0 "+(n.rightInnerExtent-e)+" "+(n.verticalFullExtent+r)+"L"+n.leftInnerExtent+" "+(n.verticalFullExtent+r)+"A"+(n.leftLargeArcRadius+r)+" "+(n.leftLargeArcRadius+r)+" 0 0 0 "+(n.leftFullExtent+r)+" "+n.verticalLeftInnerExtent+"L"+(n.leftFullExtent+r)+" "+(n.sourceY+n.leftSmallArcRadius)+"A"+(n.leftLargeArcRadius+r)+" "+(n.leftSmallArcRadius+r)+" 0 0 0 "+n.leftInnerExtent+" "+(n.sourceY-r)+"L"+n.sourceX+" "+(n.sourceY-r)+"L"+n.sourceX+" "+(n.sourceY+r)+"L"+n.leftInnerExtent+" "+(n.sourceY+r)+"A"+(n.leftLargeArcRadius-r)+" "+(n.leftSmallArcRadius-r)+" 0 0 1 "+(n.leftFullExtent-r)+" "+(n.sourceY+n.leftSmallArcRadius)+"L"+(n.leftFullExtent-r)+" "+n.verticalLeftInnerExtent+"A"+(n.leftLargeArcRadius-r)+" "+(n.leftLargeArcRadius-r)+" 0 0 1 "+n.leftInnerExtent+" "+(n.verticalFullExtent-r)+"L"+(n.rightInnerExtent-e)+" "+(n.verticalFullExtent-r)+"A"+(n.rightLargeArcRadius-r)+" "+(n.rightLargeArcRadius-r)+" 0 0 1 "+(n.rightFullExtent+r-e)+" "+n.verticalRightInnerExtent+"L"+(n.rightFullExtent+r-e)+" "+(n.targetY+n.rightSmallArcRadius)+"A"+(n.rightLargeArcRadius-r)+" "+(n.rightSmallArcRadius-r)+" 0 0 1 "+(n.rightInnerExtent-e)+" "+(n.targetY+r)+"L"+(n.targetX-e)+" "+(n.targetY+r)+(e>0?"L"+n.targetX+" "+n.targetY:"")+"Z"}function E(){var t=.5;function e(e){var r=e.linkArrowLength;if(e.link.circular)return S(e.link,r);var n=Math.abs((e.link.target.x0-e.link.source.x1)/2);r>n&&(r=n);var a=e.link.source.x1,o=e.link.target.x0-r,s=i(a,o),l=s(t),c=s(1-t),u=e.link.y0-e.link.width/2,f=e.link.y0+e.link.width/2,p=e.link.y1-e.link.width/2,d=e.link.y1+e.link.width/2,h="M"+a+","+u,g="C"+l+","+u+" "+c+","+p+" "+o+","+p,m="C"+c+","+d+" "+l+","+f+" "+a+","+f,v=r>0?"L"+(o+r)+","+(p+e.link.width/2):"";return h+g+(v+="L"+o+","+d)+m+"Z"}return e}function C(t,e){var r=c(e.color),n=l.nodePadAcross,i=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var a=e.dx,o=Math.max(.5,e.dy),s="node_"+e.pointNumber;return e.group&&(s=p.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:s,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,s].join("_"),interactionState:t.interactionState,figure:t}}function O(t){t.attr("transform",(function(t){return d(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function L(t){t.call(O)}function I(t,e){t.call(L),e.attr("d",E())}function P(t){t.attr("width",(function(t){return t.node.x1-t.node.x0})).attr("height",(function(t){return t.visibleHeight}))}function D(t){return t.link.width>1||t.linkLineWidth>0}function R(t){return d(t.translateX,t.translateY)+(t.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function z(t,e,r){t.on(".basic",null).on("mouseover.basic",(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on("mousemove.basic",(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on("mouseout.basic",(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on("click.basic",(function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function N(t,e,r,n){var i=a.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on("dragstart",(function(i){if("fixed"!==i.arrangement&&(p.ensureSingle(n._fullLayout._infolayer,"g","dragcover",(function(t){n._fullLayout._dragCover=t})),p.raiseToTop(this),i.interactionState.dragInProgress=i.node,H(i.node),i.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),"snap"===i.arrangement)){var a=i.traceId+"|"+i.key;i.forceLayouts[a]?i.forceLayouts[a].alpha(1):F(t,a,i,n),B(t,e,i,a,n)}})).on("drag",(function(r){if("fixed"!==r.arrangement){var n=a.event.x,i=a.event.y;"snap"===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2):("freeform"===r.arrangement&&(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),i=Math.max(0,Math.min(r.size-r.visibleHeight/2,i)),r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2),H(r.node),"snap"!==r.arrangement&&(r.sankey.update(r.graph),I(t.filter(q(r)),e))}})).on("dragend",(function(t){if("fixed"!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e0)window.requestAnimationFrame(a);else{var s=r.node.originalX;r.node.x0=s-r.visibleWidth/2,r.node.x1=s+r.visibleWidth/2,U(r,i)}}))}function j(t,e,r,n){return function(){for(var t=0,i=0;i0&&n.forceLayouts[e].alpha(0)}}function U(t,e){for(var r=[],n=[],i=0;il&&O[m].gap;)m--;for(b=O[m].s,p=O.length-1;p>m;p--)O[p].s=b;for(;lA[u]&&u=0;i--){var a=t[i];if("scatter"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],943:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("./attributes"),o=t("./constants"),s=t("./subtypes"),l=t("./xy_defaults"),c=t("./period_defaults"),u=t("./stack_defaults"),f=t("./marker_defaults"),p=t("./line_defaults"),d=t("./line_shape_defaults"),h=t("./text_defaults"),g=t("./fillcolor_defaults"),m=t("../../lib").coercePattern;e.exports=function(t,e,r,v){function y(r,i){return n.coerce(t,e,a,r,i)}var b=l(t,e,v,y);if(b||(e.visible=!1),e.visible){c(t,e,v,y),y("xhoverformat"),y("yhoverformat");var x=u(t,e,v,y),_=!x&&b=Math.min(e,r)&&h<=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(p.c2p(t.x)-h);return a=Math.min(e,r)&&g<=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(d.c2p(t.y)-g);return aZ!==(U=z[D][1])>=Z&&(F=z[D-1][0],B=z[D][0],U-j&&(N=F+(B-F)*(Z-j)/(U-j),G=Math.min(G,N),W=Math.max(W,N)));G=Math.max(G,0),W=Math.min(W,p._length);var K=s.defaultLine;return s.opacity(f.fillcolor)?K=f.fillcolor:s.opacity((f.line||{}).color)&&(K=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:G,x1:W,y0:Z,y1:Z,color:K,hovertemplate:!1}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{"../../components/color":367,"../../components/fx":407,"../../lib":515,"../../registry":647,"./get_trace_color":946}],948:[function(t,e,r){"use strict";var n=t("./subtypes");e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t("./attributes"),supplyDefaults:t("./defaults"),crossTraceDefaults:t("./cross_trace_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./cross_trace_calc"),arraysToCalcdata:t("./arrays_to_calcdata"),plot:t("./plot"),colorbar:t("./marker_colorbar"),formatLabels:t("./format_labels"),style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":578,"./arrays_to_calcdata":935,"./attributes":936,"./calc":937,"./cross_trace_calc":941,"./cross_trace_defaults":942,"./defaults":943,"./format_labels":945,"./hover":947,"./marker_colorbar":954,"./plot":957,"./select":958,"./style":960,"./subtypes":961}],949:[function(t,e,r){"use strict";var n=t("../../lib").isArrayOrTypedArray,i=t("../../components/colorscale/helpers").hasColorscale,a=t("../../components/colorscale/defaults");e.exports=function(t,e,r,o,s,l){l||(l={});var c=(t.marker||{}).color;s("line.color",r),i(t,"line")?a(t,e,o,s,{prefix:"line.",cLetter:"c"}):s("line.color",!n(c)&&c||r),s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}},{"../../components/colorscale/defaults":377,"../../components/colorscale/helpers":378,"../../lib":515}],950:[function(t,e,r){"use strict";var n=t("../../components/drawing"),i=t("../../constants/numerical"),a=i.BADNUM,o=i.LOG_CLIP,s=o+.5,l=o-.5,c=t("../../lib"),u=c.segmentsIntersect,f=c.constrain,p=t("./constants");e.exports=function(t,e){var r,i,o,d,h,g,m,v,y,b,x,_,w,k,T,M,A,S,E=e.trace||{},C=e.xaxis,O=e.yaxis,L="log"===C.type,I="log"===O.type,P=C._length,D=O._length,R=e.backoff,z=E.marker,N=e.connectGaps,F=e.baseTolerance,B=e.shape,j="linear"===B,U=E.fill&&"none"!==E.fill,V=[],H=p.minTolerance,q=t.length,G=new Array(q),W=0;function Y(r){var n=t[r];if(!n)return!1;var i=e.linearized?C.l2p(n.x):C.c2p(n.x),o=e.linearized?O.l2p(n.y):O.c2p(n.y);if(i===a){if(L&&(i=C.c2p(n.x,!0)),i===a)return!1;I&&o===a&&(i*=Math.abs(C._m*D*(C._m>0?s:l)/(O._m*P*(O._m>0?s:l)))),i*=1e3}if(o===a){if(I&&(o=O.c2p(n.y,!0)),o===a)return!1;o*=1e3}return[i,o]}function X(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c>0&&c1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&K(o,t)ot||t[1]lt)return[f(t[0],at,ot),f(t[1],st,lt)]}function pt(t,e){return t[0]===e[0]&&(t[0]===at||t[0]===ot)||t[1]===e[1]&&(t[1]===st||t[1]===lt)||void 0}function dt(t,e){var r=[],n=ft(t),i=ft(e);return n&&i&&pt(n,i)||(n&&r.push(n),i&&r.push(i)),r}function ht(t,e,r){return function(n,i){var a=ft(n),o=ft(i),s=[];if(a&&o&&pt(a,o))return s;a&&s.push(a),o&&s.push(o);var l=2*c.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);return l&&((a&&o?l>0===a[t]>o[t]?a:o:a||o)[t]+=l),s}}function gt(t,e){var r=e[0]-t[0],n=(e[1]-t[1])/r;return(t[1]*e[0]-e[1]*t[0])/r>0?[n>0?at:ot,lt]:[n>0?ot:at,st]}function mt(t){var e=t[0],r=t[1],n=e===G[W-1][0],i=r===G[W-1][1];if(!n||!i)if(W>1){var a=e===G[W-2][0],o=r===G[W-2][1];n&&(e===at||e===ot)&&a?o?W--:G[W-1]=t:i&&(r===st||r===lt)&&o?a?W--:G[W-1]=t:G[W++]=t}else G[W++]=t}function vt(t){G[W-1][0]!==t[0]&&G[W-1][1]!==t[1]&&mt([Q,tt]),mt(t),et=null,Q=tt=0}"linear"===B||"spline"===B?nt=ut:"hv"===B||"vh"===B?nt=dt:"hvh"===B?nt=ht(0,at,ot):"vhv"===B&&(nt=ht(1,st,lt));var yt=c.isArrayOrTypedArray(z);function bt(e){if(e&&R&&(e.i=r,e.d=t,e.trace=E,e.marker=yt?z[e.i]:z,e.backoff=R),A=e[0]/P,S=e[1]/D,J=e[0]ot?ot:0,$=e[1]lt?lt:0,J||$){if(W)if(et){var n=nt(et,e);n.length>1&&(vt(n[0]),G[W++]=n[1])}else rt=nt(G[W-1],e)[0],G[W++]=rt;else G[W++]=[J||e[0],$||e[1]];var i=G[W-1];J&&$&&(i[0]!==J||i[1]!==$)?(et&&(Q!==J&&tt!==$?mt(Q&&tt?gt(et,e):[Q||J,tt||$]):Q&&tt&&mt([Q,tt])),mt([J,$])):Q-J&&tt-$&&mt([J||Q,$||tt]),et=e,Q=J,tt=$}else et&&vt(nt(et,e)[0]),G[W++]=e}for(r=0;rZ(g,xt))break;o=g,(w=y[0]*v[0]+y[1]*v[1])>x?(x=w,d=g,m=!1):w<_&&(_=w,h=g,m=!0)}if(m?(bt(d),o!==h&&bt(h)):(h!==i&&bt(h),o!==d&&bt(d)),bt(o),r>=t.length||!g)break;bt(g),i=g}}else bt(d)}et&&mt([Q||et[0],tt||et[1]]),V.push(G.slice(0,W))}var _t=B.slice(B.length-1);if(R&&"h"!==_t&&"v"!==_t){for(var wt=!1,kt=-1,Tt=[],Mt=0;Mt=0?l=d:(l=d=p,p++),l0?Math.max(r,a):0}}},{"fast-isnumeric":190}],954:[function(t,e,r){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},{}],955:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("../../components/colorscale/helpers").hasColorscale,a=t("../../components/colorscale/defaults"),o=t("./subtypes");e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;c=c||{},f&&(r=f),l("marker.symbol"),l("marker.opacity",u?.7:1),l("marker.size"),c.noAngle||(l("marker.angle"),c.noAngleRef||l("marker.angleref"),c.noStandOff||l("marker.standoff")),l("marker.color",r),i(t,"marker")&&a(t,e,s,l,{prefix:"marker.",cLetter:"c"}),c.noSelect||(l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size")),c.noLine||(l("marker.line.color",f&&!Array.isArray(f)&&e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,"marker.line")&&a(t,e,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",u?1:0)),u&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),c.gradient&&"none"!==l("marker.gradient.type")&&l("marker.gradient.color")}},{"../../components/color":367,"../../components/colorscale/defaults":377,"../../components/colorscale/helpers":378,"./subtypes":961}],956:[function(t,e,r){"use strict";var n=t("../../lib").dateTick0,i=t("../../constants/numerical").ONEWEEK;function a(t,e){return n(e,t%i===0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",a(o,e.xcalendar)),n("xperiodalignment"))}if(i.y){var s=n("yperiod");s&&(n("yperiod0",a(s,e.ycalendar)),n("yperiodalignment"))}}},{"../../constants/numerical":491,"../../lib":515}],957:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../registry"),a=t("../../lib"),o=a.ensureSingle,s=a.identity,l=t("../../components/drawing"),c=t("./subtypes"),u=t("./line_points"),f=t("./link_traces"),p=t("../../lib/polygon").tester;function d(t,e,r){e.each((function(e){var i=o(n.select(this),"g","fills");l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&&c.push("_ownFill"),a._nexttrace&&c.push("_nextFill");var u=i.selectAll("g").data(c,s);u.enter().append("g"),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),"path","js-fill")}))}))}function h(t,e,r,f,d,h,m){var v;g(t,e,r,f,d);var y=!!m&&m.duration>0;function b(t){return y?t.transition():t}var x=r.xaxis,_=r.yaxis,w=f[0].trace,k=w.line,T=n.select(h),M=o(T,"g","errorbars"),A=o(T,"g","lines"),S=o(T,"g","points"),E=o(T,"g","text");if(i.getComponentMethod("errorbars","plot")(t,M,r,m),!0===w.visible){var C,O;b(T).style("opacity",w.opacity);var L=w.fill.charAt(w.fill.length-1);"x"!==L&&"y"!==L&&(L=""),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var I,P,D="",R=[],z=w._prevtrace;z&&(D=z._prevRevpath||"",O=z._nextFill,R=z._polygons);var N,F,B,j,U,V,H,q="",G="",W=[],Y=a.noop;if(C=w._ownFill,c.hasLines(w)||"none"!==w.fill){for(O&&O.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(k.shape)?(N=l.steps(k.shape),F=l.steps(k.shape.split("").reverse().join(""))):N=F="spline"===k.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?l.smoothclosed(t.slice(1),k.smoothing):l.smoothopen(t,k.smoothing)}:function(t){return"M"+t.join("L")},B=function(t){return F(t.reverse())},W=u(f,{xaxis:x,yaxis:_,trace:w,connectGaps:w.connectgaps,baseTolerance:Math.max(k.width||1,3)/4,shape:k.shape,backoff:k.backoff,simplify:k.simplify,fill:w.fill}),H=w._polygons=new Array(W.length),v=0;v1){var r=n.select(this);if(r.datum(f),t)b(r.style("opacity",0).attr("d",I).call(l.lineGroupStyle)).style("opacity",1);else{var i=b(r);i.attr("d",I),l.singleLineStyle(f,i)}}}}}var X=A.selectAll(".js-line").data(W);b(X.exit()).style("opacity",0).remove(),X.each(Y(!1)),X.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(X,r.layerClipId,t),W.length?(C?(C.datum(f),j&&V&&(L?("y"===L?j[1]=V[1]=_.c2p(0,!0):"x"===L&&(j[0]=V[0]=x.c2p(0,!0)),b(C).attr("d","M"+V+"L"+j+"L"+q.substr(1)).call(l.singleFillStyle,t)):b(C).attr("d",q+"Z").call(l.singleFillStyle,t))):O&&("tonext"===w.fill.substr(0,6)&&q&&D?("tonext"===w.fill?b(O).attr("d",q+"Z"+D+"Z").call(l.singleFillStyle,t):b(O).attr("d",q+"L"+D.substr(1)+"Z").call(l.singleFillStyle,t),w._polygons=w._polygons.concat(R)):(K(O),w._polygons=null)),w._prevRevpath=G,w._prevPolygons=H):(C?K(C):O&&K(O),w._polygons=w._prevRevpath=w._prevPolygons=null),S.datum(f),E.datum(f),nt(S,E,f);var Z=!1===w.cliponaxis?null:r.layerClipId;l.setClipUrl(S,Z,t),l.setClipUrl(E,Z,t)}function K(t){b(t).attr("d","M0,0Z")}function J(t){return t.filter((function(t){return!t.gap&&t.vis}))}function $(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function tt(t){return t.id}function et(t){if(t.ids)return tt}function rt(){return!1}function nt(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),p=c.hasText(u),d=et(u),h=rt,g=rt;if(f||p){var m=s,v=u.stackgroup,w=v&&"infer zero"===t._fullLayout._scatterStackOpts[x._id+_._id][v].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?$:J:v&&!w&&(m=Q),f&&(h=m),p&&(g=m)}var k,T=(o=e.selectAll("path.point").data(h,d)).enter().append("path").classed("point",!0);y&&T.call(l.pointStyle,u,t).call(l.translatePoints,x,_).style("opacity",0).transition().style("opacity",1),o.order(),f&&(k=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=b(i);l.translatePoint(e,a,x,_)?(l.singlePointStyle(e,a,u,k,t),r.layerClipId&&l.hideOutsideRangePoint(e,a,x,_,u.xcalendar,u.ycalendar),u.customdata&&i.classed("plotly-customdata",null!==e.data&&void 0!==e.data)):a.remove()})),y?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=i.selectAll("g").data(g,d)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(t){var e=n.select(this),i=b(e.select("text"));l.translatePoint(t,i,x,_)?r.layerClipId&&l.hideOutsideRangePoint(t,e,x,_,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll("text").call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=_.c2p(t.y);n.select(this).selectAll("tspan.line").each((function(){b(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}}function g(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),p=i[0].trace;if(c.hasMarkers(p)){var d=p.marker.maxdisplayed;if(0!==d){var h=i.filter((function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=f[0]&&t.y<=f[1]})),g=Math.ceil(h.length/d),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0,p=f(t,e,r);(s=i.selectAll("g.trace").data(p,(function(t){return t[0].trace.uid}))).enter().append("g").attr("class",(function(t){return"trace scatter trace"+t[0].trace.uid})).style("stroke-miterlimit",2),s.order(),d(t,s,e),u?(o&&(l=o()),n.transition().duration(a.duration).ease(a.easing).each("end",(function(){l&&l()})).each("interrupt",(function(){l&&l()})).each((function(){i.selectAll("g.trace").each((function(r,n){h(t,n,e,r,p,this,a)}))}))):s.each((function(r,n){h(t,n,e,r,p,this,a)})),c&&s.exit().remove(),i.selectAll("path:not([d])").remove()}},{"../../components/drawing":389,"../../lib":515,"../../lib/polygon":527,"../../registry":647,"./line_points":950,"./link_traces":952,"./subtypes":961,"@plotly/d3":58}],958:[function(t,e,r){"use strict";var n=t("./subtypes");e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===e)for(r=0;r0){var p=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=p),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,p)}}else o[s]=[-l[0]*r,l[1]*r]}return o}function a(t){for(var e=0;e-1?-1:t.indexOf("right")>-1?1:0}function w(t){return null===t||void 0===t?0:t.indexOf("top")>-1?-1:t.indexOf("bottom")>-1?1:0}function k(t){var e=0,r=0,n=[e,r];if(Array.isArray(t))for(var i=0;i=0){var h=b(f.position,f.delaunayColor,f.delaunayAxis);h.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(h):(h.gl=c,this.delaunayMesh=o(h),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=O},{"../../../stackgl_modules":1133,"../../components/fx/helpers":403,"../../constants/gl3d_dashes":488,"../../constants/gl3d_markers":489,"../../lib":515,"../../lib/gl_format_color":511,"../../lib/str2rgbarray":540,"../../plots/cartesian/axes":566,"../scatter/make_bubble_size_func":953,"./calc_errors":966}],968:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../scatter/subtypes"),o=t("../scatter/marker_defaults"),s=t("../scatter/line_defaults"),l=t("../scatter/text_defaults"),c=t("./attributes");function u(t,e,r,i){var a=0,o=r("x"),s=r("y"),l=r("z");return n.getComponentMethod("calendars","handleTraceDefaults")(t,e,["x","y","z"],i),o&&s&&l&&(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a),a}e.exports=function(t,e,r,f){function p(r,n){return i.coerce(t,e,c,r,n)}if(u(t,e,p,f)){p("text"),p("hovertext"),p("hovertemplate"),p("xhoverformat"),p("yhoverformat"),p("zhoverformat"),p("mode"),a.hasLines(e)&&(p("connectgaps"),s(t,e,r,f,p)),a.hasMarkers(e)&&o(t,e,r,f,p,{noSelect:!0,noAngle:!0}),a.hasText(e)&&(p("texttemplate"),l(t,e,f,p,{noSelect:!0}));var d=(e.line||{}).color,h=(e.marker||{}).color;p("surfaceaxis")>=0&&p("surfacecolor",d||h);for(var g=["x","y","z"],m=0;m<3;++m){var v="projection."+g[m];p(v+".show")&&(p(v+".opacity"),p(v+".scale"))}var y=n.getComponentMethod("errorbars","supplyDefaults");y(t,e,d||h||r,{axis:"z"}),y(t,e,d||h||r,{axis:"y",inherit:"z"}),y(t,e,d||h||r,{axis:"x",inherit:"z"})}else e.visible=!1}},{"../../lib":515,"../../registry":647,"../scatter/line_defaults":949,"../scatter/marker_defaults":955,"../scatter/subtypes":961,"../scatter/text_defaults":962,"./attributes":964}],969:[function(t,e,r){"use strict";e.exports={plot:t("./convert"),attributes:t("./attributes"),markerSymbols:t("../../constants/gl3d_markers"),supplyDefaults:t("./defaults"),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:t("./calc"),moduleType:"trace",name:"scatter3d",basePlotModule:t("../../plots/gl3d"),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},{"../../constants/gl3d_markers":489,"../../plots/gl3d":607,"./attributes":964,"./calc":965,"./convert":967,"./defaults":968}],970:[function(t,e,r){"use strict";var n=t("../scatter/attributes"),i=t("../../plots/attributes"),a=t("../../plots/template_attributes").hovertemplateAttrs,o=t("../../plots/template_attributes").texttemplateAttrs,s=t("../../components/colorscale/attributes"),l=t("../../lib/extend").extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:l({},n.mode,{dflt:"markers"}),text:l({},n.text,{}),texttemplate:o({editType:"plot"},{keys:["a","b","text"]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,backoff:u.backoff,shape:l({},u.shape,{values:["linear","spline"]}),smoothing:u.smoothing,editType:"calc"},connectgaps:n.connectgaps,fill:l({},n.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,angle:c.angle,angleref:c.angleref,standoff:c.standoff,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:"calc"},s("marker.line")),gradient:c.gradient,editType:"calc"},s("marker")),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:["a","b","text","name"]}),hoveron:n.hoveron,hovertemplate:a()}},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/attributes":562,"../../plots/template_attributes":642,"../scatter/attributes":936}],971:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../scatter/colorscale_calc"),a=t("../scatter/arrays_to_calcdata"),o=t("../scatter/calc_selection"),s=t("../scatter/calc").calcMarkerSize,l=t("../carpet/lookup_carpetid");e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&&r.visible&&"legendonly"!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,p=e._length,d=new Array(p),h=!1;for(c=0;c")}return o}function y(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,""):t._hovertitle,m.push(r+": "+e.toFixed(3)+t.labelsuffix)}}},{"../../lib":515,"../scatter/hover":947}],976:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../scatter/select"),eventData:t("./event_data"),moduleType:"trace",name:"scattercarpet",basePlotModule:t("../../plots/cartesian"),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},{"../../plots/cartesian":578,"../scatter/marker_colorbar":954,"../scatter/select":958,"../scatter/style":960,"./attributes":970,"./calc":971,"./defaults":972,"./event_data":973,"./format_labels":974,"./hover":975,"./plot":977}],977:[function(t,e,r){"use strict";var n=t("../scatter/plot"),i=t("../../plots/cartesian/axes"),a=t("../../components/drawing");e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f=i.getFromId(t,u.xaxis||"x"),p=i.getFromId(t,u.yaxis||"y"),d={xaxis:f,yaxis:p,plot:e.plot};for(s=0;s")}function d(t){return t+"\xb0"}}e.exports=function(t,e,r){var o=t.cd,s=o[0].trace,c=t.xa,u=t.ya,f=t.subplot,p=f.projection.isLonLatOverEdges,d=f.project;function h(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}if(n.getClosest(o,h,t),!1!==t.index){var g=o[t.index],m=g.lonlat,v=[c.c2p(m),u.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var b={};b[s.geo]={_subplot:f};var x=s._module.formatLabels(g,s,b);return t.lonLabel=x.lonLabel,t.latLabel=x.latLabel,t.color=a(s,g),t.extraText=l(s,g,t,o[0].t.labels),t.hovertemplate=s.hovertemplate,[t]}}},{"../../components/fx":407,"../../constants/numerical":491,"../../lib":515,"../scatter/get_trace_color":946,"./attributes":978}],984:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),calcGeoJSON:t("./plot").calcGeoJSON,plot:t("./plot").plot,style:t("./style"),styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("./select"),moduleType:"trace",name:"scattergeo",basePlotModule:t("../../plots/geo"),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/geo":598,"../scatter/marker_colorbar":954,"../scatter/style":960,"./attributes":978,"./calc":979,"./defaults":980,"./event_data":981,"./format_labels":982,"./hover":983,"./plot":985,"./select":986,"./style":987}],985:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../lib/topojson_utils").getTopojsonFeatures,o=t("../../lib/geojson_utils"),s=t("../../lib/geo_location_utils"),l=t("../../plots/cartesian/autorange").findExtremes,c=t("../../constants/numerical").BADNUM,u=t("../scatter/calc").calcMarkerSize,f=t("../scatter/subtypes"),p=t("./style");function d(t,e,r){var a=e.layers.frontplot.select(".scatterlayer"),s=i.makeTraceGroups(a,r,"trace scattergeo");function l(t,e){t.lonlat[0]===c&&n.select(e).remove()}s.selectAll("*").remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||"none"!==a.fill){var s=o.calcTraceToLineCoords(e),c="none"!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll("path.js-line").data([{geojson:c,trace:a}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}f.hasMarkers(a)&&r.selectAll("path.point").data(i.identity).enter().append("path").classed("point",!0).each((function(t){l(t,this)})),f.hasText(a)&&r.selectAll("g").data(i.identity).enter().append("g").append("text").each((function(t){l(t,this)})),p(t,e)}))}function h(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,p=i._length;if(Array.isArray(i.locations)){var d=i.locationmode,h="geojson-id"===d?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r1&&i.extendFlat(s.line,d.linePositions(t,r,n)),s.errorX||s.errorY){var l=d.errorBarPositions(t,r,n,a,o);s.errorX&&i.extendFlat(s.errorX,l.x),s.errorY&&i.extendFlat(s.errorY,l.y)}return s.text&&(i.extendFlat(s.text,{positions:n},d.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},d.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},d.textPosition(t,r,s.text,s.markerUnsel))),s}e.exports=function(t,e){var r,i=t._fullLayout,o=e._xA=a.getFromId(t,e.xaxis,"x"),l=e._yA=a.getFromId(t,e.yaxis,"y"),d=i._plots[e.xaxis+e.yaxis],b=e._length,x=b>=m,_=2*b,w={},k=o.makeCalcdata(e,"x"),T=l.makeCalcdata(e,"y"),M=s(e,o,"x",k),A=s(e,l,"y",T),S=M.vals,E=A.vals;e._x=S,e._y=E,e.xperiodalignment&&(e._origX=k,e._xStarts=M.starts,e._xEnds=M.ends),e.yperiodalignment&&(e._origY=T,e._yStarts=A.starts,e._yEnds=A.ends);var C=new Array(_),O=new Array(b);for(r=0;rh.TOO_MANY_POINTS||f.hasMarkers(e)?"rect":"round";if(c&&e.connectgaps){var p=n[0],d=n[1];for(i=0;i1?l[i]:l[0]:l,h=Array.isArray(c)?c.length>1?c[i]:c[0]:c,g=m[d],v=m[h],y=u?u/.8+1:0,b=-v*y-.5*v;o.offset[i]=[g*y/p,b/p]}}return o}e.exports={style:y,markerStyle:x,markerSelection:_,linePositions:O,errorBarPositions:L,textPosition:I}},{"../../components/drawing":389,"../../components/fx/helpers":403,"../../constants/interactions":490,"../../lib":515,"../../lib/gl_format_color":511,"../../plots/cartesian/axis_ids":570,"../../registry":647,"../scatter/make_bubble_size_func":953,"../scatter/subtypes":961,"./constants":991,"./helpers":996,"color-normalize":89,"fast-isnumeric":190,"svg-path-sdf":311}],993:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../registry"),a=t("./helpers"),o=t("./attributes"),s=t("../scatter/constants"),l=t("../scatter/subtypes"),c=t("../scatter/xy_defaults"),u=t("../scatter/period_defaults"),f=t("../scatter/marker_defaults"),p=t("../scatter/line_defaults"),d=t("../scatter/fillcolor_defaults"),h=t("../scatter/text_defaults");e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&&a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),b=c(t,e,g,m);if(b){u(t,e,g,m),m("xhoverformat"),m("yhoverformat");var x=b100},r.isDotSymbol=function(t){return"string"===typeof t?n.DOT_RE.test(t):t>200}},{"./constants":991}],997:[function(t,e,r){"use strict";var n=t("../../registry"),i=t("../../lib"),a=t("../scatter/get_trace_color");function o(t,e,r,n){var i,a,o,l,c,u,f,p,d,h,g=t.cd,m=g[0].t,v=g[0].trace,y=t.xa,b=t.ya,x=m.x,_=m.y,w=y.c2p(e),k=b.c2p(r),T=t.distance;if(m.tree){var M=y.p2c(w-T),A=y.p2c(w+T),S=b.p2c(k-T),E=b.p2c(k+T);i="x"===n?m.tree.range(Math.min(M,A),Math.min(b._rl[0],b._rl[1]),Math.max(M,A),Math.max(b._rl[0],b._rl[1])):m.tree.range(Math.min(M,A),Math.min(S,E),Math.max(M,A),Math.max(S,E))}else i=m.ids;var C=T;if("x"===n){var O=!!v.xperiodalignment,L=!!v.yperiodalignment;for(u=0;u=Math.min(I,P)&&w<=Math.max(I,P)?0:1/0}if(f=Math.min(D,R)&&k<=Math.max(D,R)?0:1/0}h=Math.sqrt(f*f+p*p),o=i[u]}}}else for(u=i.length-1;u>-1;u--)l=x[a=i[u]],c=_[a],f=y.c2p(l)-w,p=b.c2p(c)-k,(d=Math.sqrt(f*f+p*p))y.glText.length){var k=_-y.glText.length;for(g=0;gr&&(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),y.line2d.update(y.lineOptions)),y.error2d){var M=(y.errorXOptions||[]).concat(y.errorYOptions||[]);y.error2d.update(M)}y.scatter2d&&y.scatter2d.update(y.markerOptions),y.fillOrder=s.repeat(null,_),y.fill2d&&(y.fillOptions=y.fillOptions.map((function(t,e){var n=r[e];if(t&&n&&n[0]&&n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=y.lineOptions[e],u=[];s._ownfill&&u.push(e),s._nexttrace&&u.push(e+1),u.length&&(y.fillOrder[e]=u);var f,p,d=[],h=c&&c.positions||l.positions;if("tozeroy"===s.fill){for(f=0;ff&&isNaN(h[p+1]);)p-=2;0!==h[f+1]&&(d=[h[f],0]),d=d.concat(h.slice(f,p+2)),0!==h[p+1]&&(d=d.concat([h[p],0]))}else if("tozerox"===s.fill){for(f=0;ff&&isNaN(h[p]);)p-=2;0!==h[f]&&(d=[0,h[f+1]]),d=d.concat(h.slice(f,p+2)),0!==h[p]&&(d=d.concat([0,h[p+1]]))}else if("toself"===s.fill||"tonext"===s.fill){for(d=[],i=0,t.splitNull=!0,a=0;a-1;for(g=0;g<_;g++){var C=r[g][0],O=C.trace,L=C.t,I=L.index,P=O._length,D=L.x,R=L.y;if(O.selectedpoints||S||E){if(S||(S=!0),O.selectedpoints){var z=y.selectBatch[I]=s.selIndices2selPoints(O),N={};for(m=0;m=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),b=e-y;function x(t){var e=t.lonlat;if(e[0]===s)return 1/0;if(m&&-1===h.indexOf(t.i+1))return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=d.project([n,a]),l=o.x-f.c2p([b,a]),c=o.y-p.c2p([n,r]),u=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-u,1-3/u)}if(n.getClosest(o,x,t),!1!==t.index){var _=o[t.index],w=_.lonlat,k=[i.modHalf(w[0],360)+y,w[1]],T=f.c2p(k),M=p.c2p(k),A=_.mrc||1;t.x0=T-A,t.x1=T+A,t.y0=M-A,t.y1=M+A;var S={};S[c.subplot]={_subplot:d};var E=c._module.formatLabels(_,c,S);return t.lonLabel=E.lonLabel,t.latLabel=E.latLabel,t.color=a(c,_),t.extraText=u(c,_,o[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}function u(t,e,r){if(!t.hovertemplate){var n=(e.hi||t.hoverinfo).split("+"),i=-1!==n.indexOf("all"),a=-1!==n.indexOf("lon"),s=-1!==n.indexOf("lat"),l=e.lonlat,c=[];return i||a&&s?c.push("("+u(l[1])+", "+u(l[0])+")"):a?c.push(r.lon+u(l[0])):s&&c.push(r.lat+u(l[1])),(i||-1!==n.indexOf("text"))&&o(e,t,c),c.join("
")}function u(t){return t+"\xb0"}}e.exports={hoverPoints:c,getExtraText:u}},{"../../components/fx":407,"../../constants/numerical":491,"../../lib":515,"../../plots/mapbox/constants":620,"../scatter/get_trace_color":946}],1008:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("../scattergeo/calc"),plot:t("./plot"),hoverPoints:t("./hover").hoverPoints,eventData:t("./event_data"),selectPoints:t("./select"),styleOnSelect:function(t,e){e&&e[0].trace._glTrace.update(e)},moduleType:"trace",name:"scattermapbox",basePlotModule:t("../../plots/mapbox"),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/mapbox":622,"../scatter/marker_colorbar":954,"../scattergeo/calc":979,"./attributes":1002,"./defaults":1004,"./event_data":1005,"./format_labels":1006,"./hover":1007,"./plot":1009,"./select":1010}],1009:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./convert"),a=t("../../plots/mapbox/constants").traceLayerPrefix,o={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function s(t,e,r){this.type="scattermapbox",this.subplot=t,this.uid=e,this.clusterEnabled=r,this.sourceIds={fill:"source-"+e+"-fill",line:"source-"+e+"-line",circle:"source-"+e+"-circle",symbol:"source-"+e+"-symbol",cluster:"source-"+e+"-circle",clusterCount:"source-"+e+"-circle"},this.layerIds={fill:a+e+"-fill",line:a+e+"-line",circle:a+e+"-circle",symbol:a+e+"-symbol",cluster:a+e+"-cluster",clusterCount:a+e+"-cluster-count"},this.below=null}var l=s.prototype;l.addSource=function(t,e,r){var i={type:"geojson",data:e.geojson};r&&r.enabled&&n.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom}),this.subplot.map.addSource(this.sourceIds[t],i)},l.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},l.addLayer=function(t,e,r){var n={type:e.type,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint};e.filter&&(n.filter=e.filter),this.subplot.addLayer(n,r)},l.update=function(t){var e,r,n,a=t[0].trace,s=this.subplot,l=s.map,c=i(s.gd,t),u=s.belowLookup["trace-"+this.uid],f=!(!a.cluster||!a.cluster.enabled),p=!!this.clusterEnabled;if(u!==this.below){var d=o.nonCluster;for(e=d.length-1;e>=0;e--)r=d[e],l.removeLayer(this.layerIds[r]);for(e=0;e=0;e--)r=o.nonCluster[e],l.removeLayer(this.layerIds[r]),l.removeSource(this.sourceIds[r]);for(this.addSource("circle",c.circle,a.cluster),e=0;e=0;r--){var n=e[r];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}},e.exports=function(t,e){var r,n,a,l=e[0].trace,c=l.cluster&&l.cluster.enabled,u=new s(t,l.uid,c),f=i(t.gd,e),p=u.below=t.belowLookup["trace-"+l.uid];if(c)for(u.addSource("circle",f.circle,l.cluster),r=0;r")}}e.exports={hoverPoints:i,makeHoverPointText:a}},{"../scatter/hover":947}],1016:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:t("../../plots/polar"),categories:["polar","symbols","showLegend","scatter-like"],attributes:t("./attributes"),supplyDefaults:t("./defaults").supplyDefaults,colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,selectPoints:t("../scatter/select"),meta:{}}},{"../../plots/polar":631,"../scatter/marker_colorbar":954,"../scatter/select":958,"../scatter/style":960,"./attributes":1011,"./calc":1012,"./defaults":1013,"./format_labels":1014,"./hover":1015,"./plot":1017}],1017:[function(t,e,r){"use strict";var n=t("../scatter/plot"),i=t("../../constants/numerical").BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select("g.scatterlayer"),o=e.xaxis,s=e.yaxis,l={xaxis:o,yaxis:s,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},c=e.radialAxis,u=e.angularAxis,f=0;f=c&&(y.marker.cluster=h.tree),y.marker&&(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&&_.length>1&&l.extendFlat(y.line,s.linePositions(t,d,_)),y.text&&(l.extendFlat(y.text,{positions:_},s.textPosition(t,d,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,d,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,d,y.text,y.markerUnsel))),y.fill&&!p.fill2d&&(p.fill2d=!0),y.marker&&!p.scatter2d&&(p.scatter2d=!0),y.line&&!p.line2d&&(p.line2d=!0),y.text&&!p.glText&&(p.glText=!0),p.lineOptions.push(y.line),p.fillOptions.push(y.fill),p.markerOptions.push(y.marker),p.markerSelectedOptions.push(y.markerSel),p.markerUnselectedOptions.push(y.markerUnsel),p.textOptions.push(y.text),p.textSelectedOptions.push(y.textSel),p.textUnselectedOptions.push(y.textUnsel),p.selectBatch.push([]),p.unselectBatch.push([]),h.x=w,h.y=k,h.rawx=w,h.rawy=k,h.r=m,h.theta=v,h.positions=_,h._scene=p,h.index=p.count,p.count++}})),a(t,e,r)}},e.exports.reglPrecompiled=u},{"../../lib":515,"../scattergl/constants":991,"../scattergl/convert":992,"../scattergl/plot":999,"../scattergl/scene_update":1e3,"@plotly/point-cluster":59,"fast-isnumeric":190}],1026:[function(t,e,r){"use strict";var n=t("../../plots/template_attributes").hovertemplateAttrs,i=t("../../plots/template_attributes").texttemplateAttrs,a=t("../../lib/extend").extendFlat,o=t("../scatter/attributes"),s=t("../../plots/attributes"),l=o.line;e.exports={mode:o.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:o.text,texttemplate:i({editType:"plot"},{keys:["real","imag","text"]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,backoff:l.backoff,shape:a({},l.shape,{values:["linear","spline"]}),smoothing:l.smoothing,editType:"calc"},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{"../../lib/extend":505,"../../plots/attributes":562,"../../plots/template_attributes":642,"../scatter/attributes":936}],1027:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),i=t("../../constants/numerical").BADNUM,a=t("../scatter/colorscale_calc"),o=t("../scatter/arrays_to_calcdata"),s=t("../scatter/calc_selection"),l=t("../scatter/calc").calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,c=e.subplot,u=r[c].realaxis,f=r[c].imaginaryaxis,p=u.makeCalcdata(e,"real"),d=f.makeCalcdata(e,"imag"),h=e._length,g=new Array(h),m=0;m")}}e.exports={hoverPoints:i,makeHoverPointText:a}},{"../scatter/hover":947}],1031:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"scattersmith",basePlotModule:t("../../plots/smith"),categories:["smith","symbols","showLegend","scatter-like"],attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,selectPoints:t("../scatter/select"),meta:{}}},{"../../plots/smith":638,"../scatter/marker_colorbar":954,"../scatter/select":958,"../scatter/style":960,"./attributes":1026,"./calc":1027,"./defaults":1028,"./format_labels":1029,"./hover":1030,"./plot":1032}],1032:[function(t,e,r){"use strict";var n=t("../scatter/plot"),i=t("../../constants/numerical").BADNUM,a=t("../../plots/smith/helpers").smith;e.exports=function(t,e,r){for(var o=e.layers.frontplot.select("g.scatterlayer"),s=e.xaxis,l=e.yaxis,c={xaxis:s,yaxis:l,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},u=0;u"),o.hovertemplate=p.hovertemplate,a}function b(t,e){v.push(t._hovertitle+": "+e)}}},{"../scatter/hover":947}],1039:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),supplyDefaults:t("./defaults"),colorbar:t("../scatter/marker_colorbar"),formatLabels:t("./format_labels"),calc:t("./calc"),plot:t("./plot"),style:t("../scatter/style").style,styleOnSelect:t("../scatter/style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("../scatter/select"),eventData:t("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:t("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":643,"../scatter/marker_colorbar":954,"../scatter/select":958,"../scatter/style":960,"./attributes":1033,"./calc":1034,"./defaults":1035,"./event_data":1036,"./format_labels":1037,"./hover":1038,"./plot":1040}],1040:[function(t,e,r){"use strict";var n=t("../scatter/plot");e.exports=function(t,e,r){var i=e.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=e.xaxis,o=e.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},l=e.layers.frontplot.select("g.scatterlayer"),c=0;cp?x.sizeAvg||Math.max(x.size,3):a(e,b),d=0;da&&l||i-1,L=!0;if(o(b)||d.selectedpoints||O){var I=d._length;if(d.selectedpoints){g.selectBatch=d.selectedpoints;var P=d.selectedpoints,D={};for(l=0;l1&&(u=g[y-1],p=m[y-1],h=v[y-1]),e=0;eu?"-":"+")+"x")).replace("y",(f>p?"-":"+")+"y")).replace("z",(d>h?"-":"+")+"z");var C=function(){y=0,A=[],S=[],E=[]};(!y||y2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function d(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function h(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function h(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(h(e._u,"xaxis"),h(e._v,"yaxis"),h(e._w,"zaxis"),u),!u)return{positions:[],cells:[]};var g=h(e._Xs,"xaxis"),m=h(e._Ys,"yaxis"),v=h(e._Zs,"zaxis");if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(h(e._startsX,"xaxis"),h(e._startsY,"yaxis"),h(e._startsZ,"zaxis"));else{for(var y=m[0],b=p(g),x=p(v),_=new Array(b.length*x.length),w=0,k=0;k=0};m?(r=Math.min(g.length,y.length),l=function(t){return M(g[t])&&A(t)},f=function(t){return String(g[t])}):(r=Math.min(v.length,y.length),l=function(t){return M(v[t])&&A(t)},f=function(t){return String(v[t])}),x&&(r=Math.min(r,b.length));for(var S=0;S1){for(var L=a.randstr(),I=0;I<_.length;I++)""===_[I].pid&&(_[I].pid=L);_.unshift({hasMultipleRoots:!0,id:L,pid:"",label:""})}}else{var P,D=[];for(P in w)k[P]||D.push(P);if(1!==D.length)return a.warn(["Multiple implied roots, cannot build",e.type,"hierarchy of",e.name+".","These roots include:",D.join(", ")].join(" "));P=D[0],_.unshift({hasImpliedRoot:!0,id:P,pid:"",label:P})}try{p=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(_)}catch(U){return a.warn(["Failed to build",e.type,"hierarchy of",e.name+".","Error:",U.message].join(" "))}var R=n.hierarchy(p),z=!1;if(x)switch(e.branchvalues){case"remainder":R.sum((function(t){return t.data.v}));break;case"total":R.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&&(n=i),n"),name:M||D("name")?y.name:void 0,color:T("hoverlabel.bgcolor")||b.color,borderColor:T("hoverlabel.bordercolor"),fontFamily:T("hoverlabel.font.family"),fontSize:T("hoverlabel.font.size"),fontColor:T("hoverlabel.font.color"),nameLength:T("hoverlabel.namelength"),textAlign:T("hoverlabel.align"),hovertemplate:M,hovertemplateLabels:L,eventData:l};m&&(N.x0=E-i.rInscribed*i.rpx1,N.x1=E+i.rInscribed*i.rpx1,N.idealAlign=i.pxmid[0]<0?"left":"right"),v&&(N.x=E,N.idealAlign=E<0?"left":"right");var F=[];o.loneHover(N,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r,inOut_bbox:F}),l[0].bbox=F[0],h._hasHoverLabel=!0}if(v){var B=t.select("path.surface");p.styleOne(B,i,y,{hovered:!0})}h._hasHoverEvent=!0,r.emit("plotly_hover",{points:l||[f(i,y,p.eventDataKeys)],event:n.event})}},b=function(e){var i=r._fullLayout,a=r._fullData[h.index],s=n.select(this).datum();if(h._hasHoverEvent&&(e.originalEvent=n.event,r.emit("plotly_unhover",{points:[f(s,a,p.eventDataKeys)],event:n.event}),h._hasHoverEvent=!1),h._hasHoverLabel&&(o.loneUnhover(i._hoverlayer.node()),h._hasHoverLabel=!1),v){var l=t.select("path.surface");p.styleOne(l,s,a,{hovered:!1})}},x=function(t){var e=r._fullLayout,a=r._fullData[h.index],s=m&&(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),d=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(d),y={points:[f(t,a,p.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var b=l.triggerHandler(r,"plotly_"+h.type+"click",y);if(!1!==b&&e.hovermode&&(r._hoverdata=[f(t,a,p.eventDataKeys)],o.click(r,n.event)),!s&&!1!==b&&!r._dragging&&!r._transitioning){i.call("_storeDirectGUIEdit",a,e._tracePreGUI[a.uid],{level:a.level});var x={data:[{level:v}],traces:[h.index]},_={frame:{redraw:!1,duration:p.transitionTime},transition:{duration:p.transitionTime,easing:p.transitionEasing},mode:"immediate",fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call("animate",r,x,_)}};t.on("mouseover",y),t.on("mouseout",b),t.on("click",x)}},{"../../components/fx":407,"../../components/fx/helpers":403,"../../lib":515,"../../lib/events":504,"../../registry":647,"../pie/helpers":915,"./helpers":1064,"@plotly/d3":58}],1064:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("../../components/color"),a=t("../../lib/setcursor"),o=t("../pie/helpers");function s(t,e,n){return{color:r.getOutsideTextFontKey("color",t,e,n),family:r.getOutsideTextFontKey("family",t,e,n),size:r.getOutsideTextFontKey("size",t,e,n)}}function l(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?"pathbar.textfont":"insidetextfont")+".color");return!u&&t._input.textfont&&(u=n.castOption(t._input,c,"textfont.color")),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey("family",t,e,a,o),size:r.getInsideTextFontKey("size",t,e,a,o)}}function c(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&&t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a0)},r.getMaxDepth=function(t){return t.maxdepth>=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,c(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,"label").join("/")+"/"},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return"0%"===r&&(r=o.formatPiePercent(t,e)),r}},{"../../components/color":367,"../../lib":515,"../../lib/setcursor":536,"../pie/helpers":915}],1065:[function(t,e,r){"use strict";e.exports={moduleType:"trace",name:"sunburst",basePlotModule:t("./base_plot"),categories:[],animatable:!0,attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./calc").crossTraceCalc,plot:t("./plot").plot,style:t("./style").style,colorbar:t("../scatter/marker_colorbar"),meta:{}}},{"../scatter/marker_colorbar":954,"./attributes":1058,"./base_plot":1059,"./calc":1060,"./defaults":1062,"./layout_attributes":1066,"./layout_defaults":1067,"./plot":1068,"./style":1069}],1066:[function(t,e,r){"use strict";e.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],1067:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r("sunburstcolorway",e.colorway),r("extendsunburstcolors")}},{"../../lib":515,"./layout_attributes":1066}],1068:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("d3-hierarchy"),a=t("d3-interpolate").interpolate,o=t("../../components/drawing"),s=t("../../lib"),l=t("../../lib/svg_text_utils"),c=t("../bar/uniform_text"),u=c.recordMinTextSize,f=c.clearMinTextSize,p=t("../pie/plot"),d=t("../pie/helpers").getRotationAngle,h=p.computeTransform,g=p.transformInsideText,m=t("./style").styleOne,v=t("../bar/style").resizeText,y=t("./fx"),b=t("./constants"),x=t("./helpers");function _(t,e,i,c){var f=t._context.staticPlot,p=t._fullLayout,v=!p.uniformtext.mode&&x.hasTransition(c),_=n.select(i).selectAll("g.slice"),M=e[0],A=M.trace,S=M.hierarchy,E=x.findEntryWithLevel(S,A.level),C=x.getMaxDepth(A),O=p._size,L=A.domain,I=O.w*(L.x[1]-L.x[0]),P=O.h*(L.y[1]-L.y[0]),D=.5*Math.min(I,P),R=M.cx=O.l+O.w*(L.x[1]+L.x[0])/2,z=M.cy=O.t+O.h*(1-L.y[0])-P/2;if(!E)return _.remove();var N=null,F={};v&&_.each((function(t){F[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!N&&x.isEntry(t)&&(N=t)}));var B=w(E).descendants(),j=E.height+1,U=0,V=C;M.hasMultipleRoots&&x.isHierarchyRoot(E)&&(B=B.slice(1),j-=1,U=1,V+=1),B=B.filter((function(t){return t.y1<=V}));var H=d(A.rotation);H&&B.forEach((function(t){t.x0+=H,t.x1+=H}));var q=Math.min(j,C),G=function(t){return(t-U)/q*D},W=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},Y=function(t){return s.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,R,z)},X=function(t){return R+T(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Z=function(t){return z+T(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(_=_.data(B,x.getPtId)).enter().append("g").classed("slice",!0),v?_.exit().transition().each((function(){var t=n.select(this);t.select("path.surface").transition().attrTween("d",(function(t){var e=Q(t);return function(t){return Y(e(t))}})),t.select("g.slicetext").attr("opacity",0)})).remove():_.exit().remove(),_.order();var K=null;if(v&&N){var J=x.getPtId(N);_.each((function(t){null===K&&x.getPtId(t)===J&&(K=t.x1)}))}var $=_;function Q(t){var e,r=x.getPtId(t),n=F[r],i=F[x.getPtId(E)];if(i){var o=(t.x1>i.x1?2*Math.PI:0)+H;e=t.rpx1K?2*Math.PI:0)+H;e={x0:i,x1:i}}else e={rpx0:D,rpx1:D},s.extendFlat(e,rt(t));else e={rpx0:0,rpx1:0};else e={x0:H,x1:H};return a(e,n)}function et(t){var e,r=F[x.getPtId(t)],n=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},N)if(t.parent)if(K){var i=t.x1>K?2*Math.PI:0;e.x0=e.x1=i}else s.extendFlat(e,rt(t));else e.x0=e.x1=H;else e.x0=e.x1=H;var o=a(e.transform.textPosAngle,t.transform.textPosAngle),l=a(e.rpx1,t.rpx1),c=a(e.x0,t.x0),f=a(e.x1,t.x1),d=a(e.transform.scale,n.scale),h=a(e.transform.rotate,n.rotate),g=0===n.rCenter?3:0===e.transform.rCenter?1/3:1,m=a(e.transform.rCenter,n.rCenter),v=function(t){return m(Math.pow(t,g))};return function(t){var e=l(t),r=c(t),i=f(t),a=v(t),s={pxmid:W(e,(r+i)/2),rpx1:e,transform:{textPosAngle:o(t),rCenter:a,x:n.x,y:n.y}};return u(A.type,n,p),{transform:{targetX:X(s),targetY:Z(s),scale:d(t),rotate:h(t),rCenter:a}}}}function rt(t){var e=t.parent,r=F[x.getPtId(e)],n={};if(r){var i=e.children,o=i.indexOf(t),s=i.length,l=a(r.x0,r.x1);n.x0=l(o/s),n.x1=l(o/s)}else n.x0=n.x1=0;return n}v&&($=$.transition().each("end",(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),$.each((function(i){var a=n.select(this),c=s.ensureSingle(a,"path","surface",(function(t){t.style("pointer-events",f?"none":"all")}));i.rpx0=G(i.y0),i.rpx1=G(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=W(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(s.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=k(i,A),v?c.transition().attrTween("d",(function(t){var e=tt(t);return function(t){return Y(e(t))}})):c.attr("d",Y),a.call(y,E,t,e,{eventDataKeys:b.eventDataKeys,transitionTime:b.CLICK_TRANSITION_TIME,transitionEasing:b.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),c.call(m,i,A);var d=s.ensureSingle(a,"g","slicetext"),_=s.ensureSingle(d,"text","",(function(t){t.attr("data-notex",1)})),w=s.ensureUniformFontSize(t,x.determineTextFont(A,i,p.font));_.text(r.formatSliceLabel(i,E,A,e,p)).classed("slicetext",!0).attr("text-anchor","middle").call(o.font,w).call(l.convertToTspans,t);var T=o.bBox(_.node());i.transform=g(T,i,M),i.transform.targetX=X(i),i.transform.targetY=Z(i);var S=function(t,e){var r=t.transform;return h(r,e),r.fontSize=w.size,u(A.type,r,p),s.getTextTransform(r)};v?_.transition().attrTween("transform",(function(t){var e=et(t);return function(t){return S(e(t),T)}})):_.attr("transform",S(i,T))}))}function w(t){return i.partition().size([2*Math.PI,t.height+1])(t)}function k(t){return 0===t.rpx0&&s.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}function T(t){return M(t.rpx1,t.transform.textPosAngle)}function M(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,u=!s.uniformtext.mode&&x.hasTransition(r);f("sunburst",s),(a=l.selectAll("g.trace.sunburst").data(e,(function(t){return t[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),a.order(),u?(i&&(o=i()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){l.selectAll("g.trace").each((function(e){_(t,e,this,r)}))}))):(a.each((function(e){_(t,e,this,r)})),s.uniformtext.mode&&v(t,s._sunburstlayer.selectAll(".trace"),"sunburst")),c&&a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||"none"===o))return"";var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,p=x.isHierarchyRoot(t),d=x.getParent(f,t),h=x.getValue(t);if(!a){var g,m=o.split("+"),v=function(t){return-1!==m.indexOf(t)},y=[];if(v("label")&&u.label&&y.push(u.label),u.hasOwnProperty("v")&&v("value")&&y.push(x.formatValue(u.v,l)),!p){v("current path")&&y.push(x.getPath(t.data));var b=0;v("percent parent")&&b++,v("percent entry")&&b++,v("percent root")&&b++;var _=b>1;if(b){var w,k=function(t){g=x.formatPercent(w,l),_&&(g+=" of "+t),y.push(g)};v("percent parent")&&!p&&(w=h/x.getValue(d),k("parent")),v("percent entry")&&(w=h/x.getValue(e),k("entry")),v("percent root")&&(w=h/x.getValue(f),k("root"))}}return v("text")&&(g=s.castOption(r,u.i,"text"),s.isValidTextValue(g)&&y.push(g)),y.join("
")}var T=s.castOption(r,u.i,"texttemplate");if(!T)return"";var M={};u.label&&(M.label=u.label),u.hasOwnProperty("v")&&(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),p||(M.percentParent=h/x.getValue(d),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(d)),M.percentEntry=h/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=h/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty("color")&&(M.color=u.color);var A=s.castOption(r,u.i,"text");return(s.isValidTextValue(A)||""===A)&&(M.text=A),M.customdata=s.castOption(r,u.i,"customdata"),s.texttemplateString(T,M,i._d3locale,M,r._meta||{})}},{"../../components/drawing":389,"../../lib":515,"../../lib/svg_text_utils":541,"../bar/style":671,"../bar/uniform_text":673,"../pie/helpers":915,"../pie/plot":919,"./constants":1061,"./fx":1063,"./helpers":1064,"./style":1069,"@plotly/d3":58,"d3-hierarchy":115,"d3-interpolate":116}],1069:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../components/color"),a=t("../../lib"),o=t("../bar/uniform_text").resizeText;function s(t){var e=t._fullLayout._sunburstlayer.selectAll(".trace");o(t,e,"sunburst"),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style("opacity",r.opacity),e.selectAll("path.surface").each((function(t){n.select(this).call(l,t,r)}))}))}function l(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,"marker.line.color")||i.defaultLine,c=a.castOption(r,s,"marker.line.width")||0;t.style("stroke-width",c).call(i.fill,n.color).call(i.stroke,l).style("opacity",o?r.leaf.opacity:null)}e.exports={style:s,styleOne:l}},{"../../components/color":367,"../../lib":515,"../bar/uniform_text":673,"@plotly/d3":58}],1070:[function(t,e,r){"use strict";var n=t("../../components/color"),i=t("../../components/colorscale/attributes"),a=t("../../plots/cartesian/axis_format_attributes").axisHoverFormat,o=t("../../plots/template_attributes").hovertemplateAttrs,s=t("../../plots/attributes"),l=t("../../lib/extend").extendFlat,c=t("../../plot_api/edit_types").overrideAll;function u(t){return{valType:"boolean",dflt:!1}}function f(t){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:u("x"),y:u("y"),z:u("z")},color:{valType:"color",dflt:n.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:n.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var p=e.exports=c(l({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:o(),xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},i("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:f("x"),y:f("y"),z:f("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:l({},i.zauto,{}),zmin:l({},i.zmin,{}),zmax:l({},i.zmax,{})},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),"calc","nested");p.x.editType=p.y.editType=p.z.editType="calc+clearAxisTypes",p.transforms=void 0},{"../../components/color":367,"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plot_api/edit_types":548,"../../plots/attributes":562,"../../plots/cartesian/axis_format_attributes":569,"../../plots/template_attributes":642}],1071:[function(t,e,r){"use strict";var n=t("../../components/colorscale/calc");e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:"",cLetter:"c"}):n(t,e,{vals:e.z,containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":375}],1072:[function(t,e,r){"use strict";var n=t("../../../stackgl_modules").gl_surface3d,i=t("../../../stackgl_modules").ndarray,a=t("../../../stackgl_modules").ndarray_linear_interpolate.d2,o=t("../heatmap/interp2d"),s=t("../heatmap/find_empties"),l=t("../../lib").isArrayOrTypedArray,c=t("../../lib/gl_format_color").parseColorScale,u=t("../../lib/str2rgbarray"),f=t("../../components/colorscale").extractOpts;function p(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var d=p.prototype;function h(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]}d.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},d.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},d.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},d.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=t.dataCoordinate[a];null!==o&&void 0!==o&&(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&&s[i]&&void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||"",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var g=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function m(t,e){if(t0){r=g[n];break}return r}function b(t,e){if(!(t<1||e<1)){for(var r=v(t),n=v(e),i=1,a=0;ak;)r--,r/=y(r),++r1?n:1},d.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],p=0;p0&&null!==this.contourStart[t]&&null!==this.contourEnd[t]&&this.contourEnd[t]>this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];ea&&(this.minValues[e]=a),this.maxValues[e]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},{}],1079:[function(t,e,r){"use strict";var n=t("./constants"),i=t("../../lib/extend").extendFlat,a=t("fast-isnumeric");function o(t){if(Array.isArray(t)){for(var e=0,r=0;r=e||c===t.length-1)&&(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o=d(),i+=a,s=c+1,a=0);return n}function d(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}e.exports=function(t,e){var r=l(e.cells.values),d=function(t){return t.slice(e.header.values.length,t.length)},h=l(e.header.values);h.length&&!h[0].length&&(h[0]=[""],h=l(h));var g=h.concat(d(r).map((function(){return c((h[0]||[""]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),b=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],x=r.length?r[0].map((function(){return e.cells.height})):[],_=b.reduce(s,0),w=p(x,y-_+n.uplift),k=f(p(b,_),[]),T=f(w,k),M={},A=e._fullInput.columnorder.concat(d(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),O={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:T,headerRowBlocks:k,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+"__"+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return O.columns.forEach((function(t){t.calcdata=O,t.x=u(t)})),O}},{"../../lib/extend":505,"./constants":1078,"fast-isnumeric":190}],1080:[function(t,e,r){"use strict";var n=t("../../lib/extend").extendFlat;function i(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0;return[r,e?r+e.rows.length:0]}r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:"header",type:"header",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:"cells1",type:"cells",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:"cells2",type:"cells",page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=i(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+("string"===typeof r&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{"../../lib/extend":505}],1081:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../plots/domain").defaults;function o(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s/i),l=!o||s;t.mayHaveMarkup=o&&i.match(/[<&>]/);var c=O(i);t.latex=c;var u,f,p=c?"":P(t.calcdata.cells.prefix,e,r)||"",d=c?"":P(t.calcdata.cells.suffix,e,r)||"",h=c?null:P(t.calcdata.cells.format,e,r)||null,g=p+(h?a(h)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&&!l&&!c&&(u=L(g)),t.cellHeightMayIncrease=s||c||t.mayHaveMarkup||(void 0===u?L(g):u),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var m=(" "===n.wrapSplitCharacter?g.replace(/i&&n.push(a),i+=l}return n}function B(t,e,r){var n=y(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=W(i,i.length),s=n.calcdata.groupHeight-N(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),c=F(i,l,s);1===c.length&&(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&&c.reverse(),e.each((function(t,e){t.page=c[e],t.scrollY=l})),e.attr("transform",(function(t){var e=W(t.rowBlocks,t.page)-t.scrollY;return u(0,e)})),t&&(U(t,r,e,c,n.prevPages,n,0),U(t,r,e,c,n.prevPages,n,1),b(r,t))}}function j(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll("."+n.cn.yColumn).selectAll("."+n.cn.columnBlock).filter(R);return B(t,f,l),s.scrollY===u}}function U(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&&n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function V(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll("tspan.line").each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value="";s.length;)c+(i=(r=s.shift()).width+a)>u&&(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&&(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll("tspan.line").remove(),C(o.select("."+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(G)}}function H(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=Z(o),c=o.key-l.firstRowIndex,f=l.rows[c].rowHeight,p=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,d=Math.max(p,f);d-l.rows[c].rowHeight&&(l.rows[c].rowHeight=d,t.selectAll("."+n.cn.columnCell).call(G),B(null,t.filter(R),0),b(r,a,!0)),s.attr("transform",(function(){var t=this,e=t.parentNode.getBoundingClientRect(),r=i.select(t.parentNode).select("."+n.cn.cellRect).node().getBoundingClientRect(),a=t.transform.baseVal.consolidate(),s=r.top-e.top+(a?a.matrix.f:n.cellPad);return u(q(o,i.select(t.parentNode).select("."+n.cn.cellTextHolder).node().getBoundingClientRect().width),s)})),o.settledY=!0}}}function q(t,e){switch(t.align){case"left":default:return n.cellPad;case"right":return t.column.columnWidth-(e||0)-n.cellPad;case"center":return(t.column.columnWidth-(e||0))/2}}function G(t){t.attr("transform",(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+Y(e,1/0)}),0),r=Y(Z(t),t.key);return u(0,r+e)})).selectAll("."+n.cn.cellRect).attr("height",(function(t){return K(Z(t),t.key).rowHeight}))}function W(t,e){for(var r=0,n=e-1;n>=0;n--)r+=X(t[n]);return r}function Y(t,e){for(var r=0,n=0;n","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:u({},s.textfont,{}),editType:"calc"},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:s.sort,root:l.root,domain:o({name:"treemap",trace:!0,editType:"calc"})}},{"../../components/colorscale/attributes":374,"../../lib/extend":505,"../../plots/domain":593,"../../plots/template_attributes":642,"../pie/attributes":910,"../sunburst/attributes":1058,"./constants":1087}],1085:[function(t,e,r){"use strict";var n=t("../../plots/plots");r.name="treemap",r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{"../../plots/plots":628}],1086:[function(t,e,r){"use strict";var n=t("../sunburst/calc");r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc("treemap",t)}},{"../sunburst/calc":1060}],1087:[function(t,e,r){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},{}],1088:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./attributes"),a=t("../../components/color"),o=t("../../plots/domain").defaults,s=t("../bar/defaults").handleText,l=t("../bar/constants").TEXTPAD,c=t("../../components/colorscale"),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function p(r,a){return n.coerce(t,e,i,r,a)}var d=p("labels"),h=p("parents");if(d&&d.length&&h&&h.length){var g=p("values");g&&g.length?p("branchvalues"):p("count"),p("level"),p("maxdepth"),"squarify"===p("tiling.packing")&&p("tiling.squarifyratio"),p("tiling.flip"),p("tiling.pad");var m=p("text");p("texttemplate"),e.texttemplate||p("textinfo",Array.isArray(m)?"text+label":"label"),p("hovertext"),p("hovertemplate");var v=p("pathbar.visible");s(t,e,c,p,"auto",{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),p("textposition");var y=-1!==e.textposition.indexOf("bottom");p("marker.line.width")&&p("marker.line.color",c.paper_bgcolor);var b=p("marker.colors");(e._hasColorscale=u(t,"marker","colors")||(t.marker||{}).coloraxis)?f(t,e,c,p,{prefix:"marker.",cLetter:"c"}):p("marker.depthfade",!(b||[]).length);var x=2*e.textfont.size;p("marker.pad.t",y?x/4:x),p("marker.pad.l",x/4),p("marker.pad.r",x/4),p("marker.pad.b",y?x:x/4),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&&(p("pathbar.thickness",e.pathbar.textfont.size+2*l),p("pathbar.side"),p("pathbar.edgeshape")),p("sort"),p("root.color"),o(e,c,p),e._length=null}else e.visible=!1}},{"../../components/color":367,"../../components/colorscale":379,"../../lib":515,"../../plots/domain":593,"../bar/constants":659,"../bar/defaults":661,"./attributes":1084}],1089:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../sunburst/helpers"),a=t("../bar/uniform_text").clearMinTextSize,o=t("../bar/style").resizeText,s=t("./plot_one");e.exports=function(t,e,r,l,c){var u,f,p=c.type,d=c.drawDescendants,h=t._fullLayout,g=h["_"+p+"layer"],m=!r;a(p,h),(u=g.selectAll("g.trace."+p).data(e,(function(t){return t[0].trace.uid}))).enter().append("g").classed("trace",!0).classed(p,!0),u.order(),!h.uniformtext.mode&&i.hasTransition(r)?(l&&(f=l()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){g.selectAll("g.trace").each((function(e){s(t,e,this,r,d)}))}))):(u.each((function(e){s(t,e,this,r,d)})),h.uniformtext.mode&&o(t,g.selectAll(".trace"),p)),m&&u.exit().remove()}},{"../bar/style":671,"../bar/uniform_text":673,"../sunburst/helpers":1064,"./plot_one":1098,"@plotly/d3":58}],1090:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../components/drawing"),o=t("../../lib/svg_text_utils"),s=t("./partition"),l=t("./style").styleOne,c=t("./constants"),u=t("../sunburst/helpers"),f=t("../sunburst/fx"),p=!0;e.exports=function(t,e,r,d,h){var g=h.barDifY,m=h.width,v=h.height,y=h.viewX,b=h.viewY,x=h.pathSlice,_=h.toMoveInsideSlice,w=h.strTransform,k=h.hasTransition,T=h.handleSlicesExit,M=h.makeUpdateSliceInterpolator,A=h.makeUpdateTextInterpolator,S={},E=t._context.staticPlot,C=t._fullLayout,O=e[0],L=O.trace,I=O.hierarchy,P=m/L._entryDepth,D=u.listPath(r.data,"id"),R=s(I.copy(),[m,v],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(R=R.filter((function(t){var e=D.indexOf(t.data.id);return-1!==e&&(t.x0=P*e,t.x1=P*(e+1),t.y0=g,t.y1=g+v,t.onPathbar=!0,!0)}))).reverse(),(d=d.data(R,u.getPtId)).enter().append("g").classed("pathbar",!0),T(d,p,S,[m,v],x),d.order();var z=d;k&&(z=z.transition().each("end",(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),z.each((function(s){s._x0=y(s.x0),s._x1=y(s.x1),s._y0=b(s.y0),s._y1=b(s.y1),s._hoverX=y(s.x1-Math.min(m,v)/2),s._hoverY=b(s.y1-v/2);var d=n.select(this),h=i.ensureSingle(d,"path","surface",(function(t){t.style("pointer-events",E?"none":"all")}));k?h.transition().attrTween("d",(function(t){var e=M(t,p,S,[m,v]);return function(t){return x(e(t))}})):h.attr("d",x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),h.call(l,s,L,{hovered:!1}),s._text=(u.getPtLabel(s)||"").split("
").join(" ")||"";var g=i.ensureSingle(d,"g","slicetext"),T=i.ensureSingle(g,"text","",(function(t){t.attr("data-notex",1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(L,s,C.font,{onPathbar:!0}));T.text(s._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=_(s,{fontSize:O.size,onPathbar:!0}),s.transform.fontSize=O.size,k?T.transition().attrTween("transform",(function(t){var e=A(t,p,S,[m,v]);return function(t){return w(e(t))}})):T.attr("transform",w(s))}))}},{"../../components/drawing":389,"../../lib":515,"../../lib/svg_text_utils":541,"../sunburst/fx":1063,"../sunburst/helpers":1064,"./constants":1087,"./partition":1096,"./style":1099,"@plotly/d3":58}],1091:[function(t,e,r){"use strict";var n=t("@plotly/d3"),i=t("../../lib"),a=t("../../components/drawing"),o=t("../../lib/svg_text_utils"),s=t("./partition"),l=t("./style").styleOne,c=t("./constants"),u=t("../sunburst/helpers"),f=t("../sunburst/fx"),p=t("../sunburst/plot").formatSliceLabel,d=!1;e.exports=function(t,e,r,h,g){var m=g.width,v=g.height,y=g.viewX,b=g.viewY,x=g.pathSlice,_=g.toMoveInsideSlice,w=g.strTransform,k=g.hasTransition,T=g.handleSlicesExit,M=g.makeUpdateSliceInterpolator,A=g.makeUpdateTextInterpolator,S=g.prevEntry,E={},C=t._context.staticPlot,O=t._fullLayout,L=e[0].trace,I=-1!==L.textposition.indexOf("left"),P=-1!==L.textposition.indexOf("right"),D=-1!==L.textposition.indexOf("bottom"),R=!D&&!L.marker.pad.t||D&&!L.marker.pad.b,z=s(r,[m,v],{packing:L.tiling.packing,squarifyratio:L.tiling.squarifyratio,flipX:L.tiling.flip.indexOf("x")>-1,flipY:L.tiling.flip.indexOf("y")>-1,pad:{inner:L.tiling.pad,top:L.marker.pad.t,left:L.marker.pad.l,right:L.marker.pad.r,bottom:L.marker.pad.b}}).descendants(),N=1/0,F=-1/0;z.forEach((function(t){var e=t.depth;e>=L._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(N=Math.min(N,e),F=Math.max(F,e))})),h=h.data(z,u.getPtId),L._maxVisibleLayers=isFinite(F)?F-N+1:0,h.enter().append("g").classed("slice",!0),T(h,d,E,[m,v],x),h.order();var B=null;if(k&&S){var j=u.getPtId(S);h.each((function(t){null===B&&u.getPtId(t)===j&&(B={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var U=function(){return B||{x0:0,x1:m,y0:0,y1:v}},V=h;return k&&(V=V.transition().each("end",(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),V.each((function(s){var h=u.isHeader(s,L);s._x0=y(s.x0),s._x1=y(s.x1),s._y0=b(s.y0),s._y1=b(s.y1),s._hoverX=y(s.x1-L.marker.pad.r),s._hoverY=b(D?s.y1-L.marker.pad.b/2:s.y0+L.marker.pad.t/2);var g=n.select(this),T=i.ensureSingle(g,"path","surface",(function(t){t.style("pointer-events",C?"none":"all")}));k?T.transition().attrTween("d",(function(t){var e=M(t,d,U(),[m,v]);return function(t){return x(e(t))}})):T.attr("d",x),g.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,L,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text="":s._text=h?R?"":u.getPtLabel(s)||"":p(s,r,L,e,O)||"";var S=i.ensureSingle(g,"g","slicetext"),E=i.ensureSingle(S,"text","",(function(t){t.attr("data-notex",1)})),z=i.ensureUniformFontSize(t,u.determineTextFont(L,s,O.font));E.text(s._text||" ").classed("slicetext",!0).attr("text-anchor",P?"end":I||h?"start":"middle").call(a.font,z).call(o.convertToTspans,t),s.textBB=a.bBox(E.node()),s.transform=_(s,{fontSize:z.size,isHeader:h}),s.transform.fontSize=z.size,k?E.transition().attrTween("transform",(function(t){var e=A(t,d,U(),[m,v]);return function(t){return w(e(t))}})):E.attr("transform",w(s))})),B}},{"../../components/drawing":389,"../../lib":515,"../../lib/svg_text_utils":541,"../sunburst/fx":1063,"../sunburst/helpers":1064,"../sunburst/plot":1068,"./constants":1087,"./partition":1096,"./style":1099,"@plotly/d3":58}],1092:[function(t,e,r){"use strict";e.exports=function t(e,r,n){var i;n.swapXY&&(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),n.flipX&&(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i),n.flipY&&(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o-1?L+D:-(P+D):0,z={x0:I,x1:I,y0:R,y1:R+P},N=function(t,e,r){var n=v.tiling.pad,i=function(t){return t-n<=e.x0},a=function(t){return t+n>=e.x1},o=function(t){return t-n<=e.y0},s=function(t){return t+n>=e.y1};return t.x0===e.x0&&t.x1===e.x1&&t.y0===e.y0&&t.y1===e.y1?{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}:{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},F=null,B={},j={},U=null,V=function(t,e){return e?B[p(t)]:j[p(t)]},H=function(t,e,r,n){if(e)return B[p(b)]||z;var i=j[v.level]||r;return S(t)?N(t,i,n):{}};m.hasMultipleRoots&&T&&A++,v._maxDepth=A,v._backgroundColor=g.paper_bgcolor,v._entryDepth=x.data.depth,v._atRootLevel=T;var q=-O/2+E.l+E.w*(C.x[1]+C.x[0])/2,G=-L/2+E.t+E.h*(1-(C.y[1]+C.y[0])/2),W=function(t){return q+t},Y=function(t){return G+t},X=Y(0),Z=W(0),K=function(t){return Z+t},J=function(t){return X+t};function $(t,e){return t+","+e}var Q=K(0),tt=function(t){t.x=Math.max(Q,t.x)},et=v.pathbar.edgeshape,rt=function(t){var e=K(Math.max(Math.min(t.x0,t.x0),0)),r=K(Math.min(Math.max(t.x1,t.x1),I)),n=J(t.y0),i=J(t.y1),a=P/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return">"===et?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):"/"===et?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):"\\"===et?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):"<"===et&&(o.x-=a,s.x-=a),tt(l),tt(f),tt(o),tt(c),tt(u),tt(s),"M"+$(l.x,l.y)+"L"+$(c.x,c.y)+"L"+$(s.x,s.y)+"L"+$(u.x,u.y)+"L"+$(f.x,f.y)+"L"+$(o.x,o.y)+"Z"},nt=function(t){var e=W(t.x0),r=W(t.x1),n=Y(t.y0),i=Y(t.y1),a=r-e,o=i-n;if(!a||!o)return"";var s=0,l=a>2*s&&o>2*s?s:0,c=function(t,e){return l?"a"+$(l,l)+" 0 0 1 "+$(t,e):""};return"M"+$(e,n+l)+c(l,-l)+"L"+$(r-l,n)+c(l,l)+"L"+$(r,i-l)+c(-l,l)+"L"+$(e+l,i)+c(-l,-l)+"Z"},it=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,o=t.textBB,u=function(t){return-1!==v.textposition.indexOf(t)},f=u("bottom"),p=u("top")||e.isHeader&&!f?"start":f?"end":"middle",d=u("right"),h=u("left")||e.onPathbar?-1:d?1:0,m=v[y?"tiling":"marker"].pad;if(e.isHeader){if((r+=(y?m:m.l)-s)>=(n-=(y?m:m.r)-s)){var b=(r+n)/2;r=b,n=b}var x;f?i<(x=a-(y?m:m.b))&&x0)for(var b=0;b0){var x,_,w,k,T,M=t.xa,A=t.ya;"h"===h.orientation?(T=e,x="y",w=A,_="x",k=M):(T=r,x="x",w=M,_="y",k=A);var S=d[t.index];if(T>=S.span[0]&&T<=S.span[1]){var E=i.extendFlat({},t),C=k.c2p(T,!0),O=s.getKdeValue(S,h,T),L=s.getPositionOnKdePath(S,h,C),I=w._offset,P=w._length;E[x+"0"]=L[0],E[x+"1"]=L[1],E[_+"0"]=E[_+"1"]=C,E[_+"Label"]=_+": "+a.hoverLabelText(k,T,h[_+"hoverformat"])+", "+d[0].t.labels.kde+" "+O.toFixed(3);for(var D=0,R=0;R")),c.color=l(f,g),[c]}function k(t){return n(h,t,f[d+"hoverformat"])}}},{"../../components/color":367,"../../constants/delta.js":485,"../../plots/cartesian/axes":566,"../bar/hover":664}],1122:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc"),plot:t("./plot"),style:t("./style").style,hoverPoints:t("./hover"),eventData:t("./event_data"),selectPoints:t("../bar/select"),moduleType:"trace",name:"waterfall",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},{"../../plots/cartesian":578,"../bar/select":669,"./attributes":1115,"./calc":1116,"./cross_trace_calc":1118,"./defaults":1119,"./event_data":1120,"./hover":1121,"./layout_attributes":1123,"./layout_defaults":1124,"./plot":1125,"./style":1126}],1123:[function(t,e,r){"use strict";e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],1124:[function(t,e,r){"use strict";var n=t("../../lib"),i=t("./layout_attributes");e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s0&&(v+=d?"M"+p[0]+","+g[1]+"V"+g[0]:"M"+p[1]+","+g[0]+"H"+p[0]),"between"!==h&&(r.isSum||s path").each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style("opacity",s.selectedpoints&&!t.selected?o:1)}})),c(r,s,t),r.selectAll(".lines").each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll("path"),t.width,t.color,t.dash)}))}))}e.exports={style:u}},{"../../components/color":367,"../../components/drawing":389,"../../constants/interactions":490,"../bar/style":671,"../bar/uniform_text":673,"@plotly/d3":58}],1127:[function(t,e,r){"use strict";var n=t("../plots/cartesian/axes"),i=t("../lib"),a=t("../plot_api/plot_schema"),o=t("./helpers").pointsAccessorFunction,s=t("../constants/numerical").BADNUM;r.moduleType="transform",r.name="aggregate";var l=r.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,s=i.nestedProperty(e,o),l=s.get(),c=f(a,n.getDataConversions(t,e,o,l)),u=new Array(r.length),p=0;pi&&(i=u,o=c)}}return i?a(o):s};case"rms":return function(t,e){for(var r=0,i=0,o=0;o":return function(t){return p(t)>s};case">=":return function(t){return p(t)>=s};case"[]":return function(t){var e=p(t);return e>=s[0]&&e<=s[1]};case"()":return function(t){var e=p(t);return e>s[0]&&e=s[0]&&es[0]&&e<=s[1]};case"][":return function(t){var e=p(t);return e<=s[0]||e>=s[1]};case")(":return function(t){var e=p(t);return es[1]};case"](":return function(t){var e=p(t);return e<=s[0]||e>s[1]};case")[":return function(t){var e=p(t);return e=s[1]};case"{}":return function(t){return-1!==s.indexOf(p(t))};case"}{":return function(t){return-1===s.indexOf(p(t))}}}r.moduleType="transform",r.name="filter",r.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},operation:{valType:"enumerated",values:[].concat(l).concat(c).concat(u),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},preservegaps:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc"},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a("enabled")){var o=a("target");if(n.isArrayOrTypedArray(o)&&0===o.length)return e.enabled=!1,e;a("preservegaps"),a("operation"),a("value");var s=i.getComponentMethod("calendars","handleDefaults");s(t,e,"valuecalendar",null),s(t,e,"targetcalendar",null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,l=i.length;e._length&&(l=Math.min(l,e._length));var c=r.targetcalendar,u=e._arrayAttrs,p=r.preservegaps;if("string"===typeof s){var d=n.nestedProperty(e,s+"calendar").get();d&&(c=d)}var h,g,m=f(r,a.getDataToCoordFunc(t,e,s,i),c),v={},y={},b=0;p?(h=function(t){v[t.astr]=n.extendDeep([],t.get()),t.set(new Array(l))},g=function(t,e){var r=v[t.astr][e];t.get()[e]=r}):(h=function(t){v[t.astr]=n.extendDeep([],t.get()),t.set([])},g=function(t,e){var r=v[t.astr][e];t.get().push(r)}),w(h);for(var x=o(e.transforms,r),_=0;_1?"%{group} (%{trace})":"%{group}");var l=t.styles,c=o.styles=[];if(l)for(a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function p(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(f(t,o,s)),u=0,p=s>0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function h(t,e,r){for(var n,i=[],a=e;al?l:s+o));return 1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(t,e,r){},{}],3:[function(t,e,r){(function(e){(function(){"use strict";var e=t("base64-js"),n=t("ieee754");r.Buffer=s,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var i=2147483647;function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}function o(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return l(t,e,r)}function l(t,e,r){if("string"===typeof t)return p(t,e);if(ArrayBuffer.isView(t))return d(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return h(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=g(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(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 u(t,e,r){return c(t),t<=0?o(t):void 0!==e?"string"===typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}function f(t){return c(t),o(t<0?0:0|m(t))}function p(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function d(t){for(var e=t.length<0?0:0|m(t.length),r=o(e),n=0;n=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),s.alloc(+t)}function y(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(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 r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return D(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function x(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function _(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var f=!0,p=0;pi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128===(192&(a=t[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return I(n)}r.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),s.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return l(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return u(t,e,r)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);ie&&(t+=" ... "),""},s.prototype.compare=function(t,e,r,n,i){if(K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.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===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),l=Math.min(a,o),c=this.slice(n,i),u=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return k(this,t,e,r);case"utf8":case"utf-8":return T(this,t,e,r);case"ascii":return M(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,a){if(!s.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 B(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(t,e,r,i,a){return e=+e,r>>>=0,a||B(t,e,r,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,r,i,23,4),r+4}function U(t,e,r,i,a){return e=+e,r>>>=0,a||B(t,e,r,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,r,i,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(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},s.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--a)t[a+e]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"===typeof t&&(t&=255);if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function W(t){for(var e=[],r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function X(t){return e.toByteArray(H(t))}function Z(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!==t}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:4}],4:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,u=-7,f=r?i-1:0,p=r?-1:1,d=t[e+f];for(f+=p,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=c}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,h=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=h,s/=256,i-=8);for(o=o<0;t[r+d]=255&o,d+=h,o/=256,c-=8);t[r+d-h]|=128*g}},{}],5:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,f=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?f=u.concat(f):d=-1,f.length&&g())}function g(){if(!p){var t=l(h);p=!0;for(var e=f.length;e;){for(u=f,f=[];++d1)for(var r=1;r0?r=r.ushln(f):f<0&&(u=u.ushln(-f)),s(r,u)}e.exports=c},{"./div":17,"./is-rat":19,"./lib/is-bn":23,"./lib/num-to-bn":24,"./lib/rationalize":25,"./lib/str-to-bn":26}],19:[function(t,e,r){"use strict";var n=t("./lib/is-bn");function i(t){return Array.isArray(t)&&2===t.length&&n(t[0])&&n(t[1])}e.exports=i},{"./lib/is-bn":23}],20:[function(t,e,r){"use strict";var n=t("bn.js");function i(t){return t.cmp(new n(0))}e.exports=i},{"bn.js":33}],21:[function(t,e,r){"use strict";var n=t("./bn-sign");function i(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a20?52:r+32}e.exports=a},{"bit-twiddle":32,"double-bits":64}],23:[function(t,e,r){"use strict";function n(t){return t&&"object"===typeof t&&Boolean(t.words)}t("bn.js"),e.exports=n},{"bn.js":33}],24:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("double-bits");function a(t){var e=i.exponent(t);return e<52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}e.exports=a},{"bn.js":33,"double-bits":64}],25:[function(t,e,r){"use strict";var n=t("./num-to-bn"),i=t("./bn-sign");function a(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);return o.cmpn(1)?[t.div(o),e.div(o)]:[t,e]}e.exports=a},{"./bn-sign":20,"./num-to-bn":24}],26:[function(t,e,r){"use strict";var n=t("bn.js");function i(t){return new n(t)}e.exports=i},{"bn.js":33}],27:[function(t,e,r){"use strict";var n=t("./lib/rationalize");function i(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}e.exports=i},{"./lib/rationalize":25}],28:[function(t,e,r){"use strict";var n=t("./lib/bn-sign");function i(t){return n(t[0])*n(t[1])}e.exports=i},{"./lib/bn-sign":20}],29:[function(t,e,r){"use strict";var n=t("./lib/rationalize");function i(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}e.exports=i},{"./lib/rationalize":25}],30:[function(t,e,r){"use strict";var n=t("./lib/bn-to-num"),i=t("./lib/ctz");function a(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4;return c*(s+(p=n(l.ushln(u).divRound(r)))*Math.pow(2,-u))}var f=r.bitLength()-l.bitLength()+53,p=n(l.ushln(f).divRound(r));return f<1023?c*p*Math.pow(2,-f):c*(p*=Math.pow(2,-1023))*Math.pow(2,1023-f)}e.exports=a},{"./lib/bn-to-num":21,"./lib/ctz":22}],31:[function(t,e,r){"use strict";function n(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)>0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=t[o];(void 0!==r?r(s,e):s-e)<=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n<=i;){var a=n+i>>>1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return"function"===typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],32:[function(t,e,r){"use strict";var n=32;function i(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=n,r.INT_MAX=2147483647,r.INT_MIN=-1<0)-(t<0)},r.abs=function(t){var e=t>>n-1;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=i,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,1+(t|=t>>>16)},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var a=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<>>8&255]<<16|a[t>>>16&255]<<8|a[t>>>24&255]},r.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},r.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>i(t)+1}},{}],33:[function(t,e,r){!function(e,r){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"===typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:t("buffer").Buffer}catch(S){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&"object"===typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=l(t,e,n)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(n=(t.length-e)%2===0?e+1:e;n=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","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"],f=[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],p=[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()),r=0;r>>i}return e}function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var c=1;c>>26,f=67108863&l,p=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=p;d++){var h=c-d|0;u+=(o=(i=0|t.words[h])*(a=0|e.words[d])+f)/67108864|0,f=67108863&o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],d=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(d).toString(t);r=(h=h.idivn(d)).isZero()?g+r:u[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n("undefined"!==typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;at.length?this.clone().iadd(t):t.clone().iadd(this)},a.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==a&&o>26,this.words[o]=67108863&e;if(0===a&&o>>13,d=0|o[1],h=8191&d,g=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,b=0|o[3],x=8191&b,_=b>>>13,w=0|o[4],k=8191&w,T=w>>>13,M=0|o[5],A=8191&M,S=M>>>13,E=0|o[6],C=8191&E,O=E>>>13,L=0|o[7],I=8191&L,P=L>>>13,D=0|o[8],R=8191&D,z=D>>>13,N=0|o[9],F=8191&N,B=N>>>13,j=0|s[0],U=8191&j,V=j>>>13,H=0|s[1],q=8191&H,G=H>>>13,W=0|s[2],Y=8191&W,X=W>>>13,Z=0|s[3],K=8191&Z,J=Z>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ct=st>>>13,ut=0|s[8],ft=8191&ut,pt=ut>>>13,dt=0|s[9],ht=8191&dt,gt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(p,U)|0))<<13)|0;c=((a=Math.imul(p,V))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(h,U),i=(i=Math.imul(h,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(p,q)|0))<<13)|0;c=((a=a+Math.imul(p,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(h,q)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(p,Y)|0))<<13)|0;c=((a=a+Math.imul(p,X)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,U),i=(i=Math.imul(x,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(h,Y)|0,i=(i=i+Math.imul(h,X)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,X)|0;var bt=(c+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(p,K)|0))<<13)|0;c=((a=a+Math.imul(p,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(k,U),i=(i=Math.imul(k,V))+Math.imul(T,U)|0,a=Math.imul(T,V),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(h,K)|0,i=(i=i+Math.imul(h,J)|0)+Math.imul(g,K)|0,a=a+Math.imul(g,J)|0;var xt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(p,Q)|0))<<13)|0;c=((a=a+Math.imul(p,tt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(k,q)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(T,q)|0,a=a+Math.imul(T,G)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(_,Y)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,K)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,tt)|0)+Math.imul(g,Q)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(p,rt)|0))<<13)|0;c=((a=a+Math.imul(p,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(O,U)|0,a=Math.imul(O,V),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,q)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(T,Y)|0,a=a+Math.imul(T,X)|0,n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,K)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(h,rt)|0,i=(i=i+Math.imul(h,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&(i=(i=i+Math.imul(f,ot)|0)+Math.imul(p,at)|0))<<13)|0;c=((a=a+Math.imul(p,ot)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,V))+Math.imul(P,U)|0,a=Math.imul(P,V),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(T,K)|0,a=a+Math.imul(T,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(h,at)|0,i=(i=i+Math.imul(h,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var kt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(p,lt)|0))<<13)|0;c=((a=a+Math.imul(p,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(P,q)|0,a=a+Math.imul(P,G)|0,n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(O,Y)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(h,lt)|0,i=(i=i+Math.imul(h,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var Tt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,pt)|0)+Math.imul(p,ft)|0))<<13)|0;c=((a=a+Math.imul(p,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,U),i=(i=Math.imul(F,V))+Math.imul(B,U)|0,a=Math.imul(B,V),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(z,q)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(P,Y)|0,a=a+Math.imul(P,X)|0,n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(T,rt)|0,a=a+Math.imul(T,nt)|0,n=n+Math.imul(x,at)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(h,ft)|0,i=(i=i+Math.imul(h,pt)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,pt)|0;var Mt=(c+(n=n+Math.imul(f,ht)|0)|0)+((8191&(i=(i=i+Math.imul(f,gt)|0)+Math.imul(p,ht)|0))<<13)|0;c=((a=a+Math.imul(p,gt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(F,q),i=(i=Math.imul(F,G))+Math.imul(B,q)|0,a=Math.imul(B,G),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(z,Y)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ot)|0)+Math.imul(T,at)|0,a=a+Math.imul(T,ot)|0,n=n+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,pt)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,pt)|0;var At=(c+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,gt)|0)+Math.imul(g,ht)|0))<<13)|0;c=((a=a+Math.imul(g,gt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,Y),i=(i=Math.imul(F,X))+Math.imul(B,Y)|0,a=Math.imul(B,X),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(z,K)|0,a=a+Math.imul(z,J)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,Q)|0,a=a+Math.imul(P,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(O,rt)|0,a=a+Math.imul(O,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(T,lt)|0,a=a+Math.imul(T,ct)|0,n=n+Math.imul(x,ft)|0,i=(i=i+Math.imul(x,pt)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,pt)|0;var St=(c+(n=n+Math.imul(v,ht)|0)|0)+((8191&(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,ht)|0))<<13)|0;c=((a=a+Math.imul(y,gt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,K),i=(i=Math.imul(F,J))+Math.imul(B,K)|0,a=Math.imul(B,J),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(z,Q)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,a=a+Math.imul(P,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(O,at)|0,a=a+Math.imul(O,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,pt)|0)+Math.imul(T,ft)|0,a=a+Math.imul(T,pt)|0;var Et=(c+(n=n+Math.imul(x,ht)|0)|0)+((8191&(i=(i=i+Math.imul(x,gt)|0)+Math.imul(_,ht)|0))<<13)|0;c=((a=a+Math.imul(_,gt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,Q),i=(i=Math.imul(F,tt))+Math.imul(B,Q)|0,a=Math.imul(B,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,at)|0,a=a+Math.imul(P,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(O,lt)|0,a=a+Math.imul(O,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,pt)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,pt)|0;var Ct=(c+(n=n+Math.imul(k,ht)|0)|0)+((8191&(i=(i=i+Math.imul(k,gt)|0)+Math.imul(T,ht)|0))<<13)|0;c=((a=a+Math.imul(T,gt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,rt),i=(i=Math.imul(F,nt))+Math.imul(B,rt)|0,a=Math.imul(B,nt),n=n+Math.imul(R,at)|0,i=(i=i+Math.imul(R,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(P,lt)|0,a=a+Math.imul(P,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,pt)|0)+Math.imul(O,ft)|0,a=a+Math.imul(O,pt)|0;var Ot=(c+(n=n+Math.imul(A,ht)|0)|0)+((8191&(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,ht)|0))<<13)|0;c=((a=a+Math.imul(S,gt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,at),i=(i=Math.imul(F,ot))+Math.imul(B,at)|0,a=Math.imul(B,ot),n=n+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,pt)|0)+Math.imul(P,ft)|0,a=a+Math.imul(P,pt)|0;var Lt=(c+(n=n+Math.imul(C,ht)|0)|0)+((8191&(i=(i=i+Math.imul(C,gt)|0)+Math.imul(O,ht)|0))<<13)|0;c=((a=a+Math.imul(O,gt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(F,lt),i=(i=Math.imul(F,ct))+Math.imul(B,lt)|0,a=Math.imul(B,ct),n=n+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,pt)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,pt)|0;var It=(c+(n=n+Math.imul(I,ht)|0)|0)+((8191&(i=(i=i+Math.imul(I,gt)|0)+Math.imul(P,ht)|0))<<13)|0;c=((a=a+Math.imul(P,gt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ft),i=(i=Math.imul(F,pt))+Math.imul(B,ft)|0,a=Math.imul(B,pt);var Pt=(c+(n=n+Math.imul(R,ht)|0)|0)+((8191&(i=(i=i+Math.imul(R,gt)|0)+Math.imul(z,ht)|0))<<13)|0;c=((a=a+Math.imul(z,gt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var Dt=(c+(n=Math.imul(F,ht))|0)+((8191&(i=(i=Math.imul(F,gt))+Math.imul(B,ht)|0))<<13)|0;return c=((a=Math.imul(B,gt))+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=bt,l[4]=xt,l[5]=_t,l[6]=wt,l[7]=kt,l[8]=Tt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Ot,l[15]=Lt,l[16]=It,l[17]=Pt,l[18]=Dt,0!==c&&(l[19]=c,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}function v(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(g=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):v(this,t,e)},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},y.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=d(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,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 a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,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},a.prototype.isubn=function(t){if(n("number"===typeof t),n(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)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var p=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(p=Math.min(p/o|0,67108863),n._ishlnsubmul(i,p,f);0!==n.negative;)p--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=p)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):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&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var p=0,d=1;0===(e.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var h=0,g=1;0===(r.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0===(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var f=0,p=1;0===(r.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new M(t)},a.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(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 x(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"===typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}x.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},x.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(t,e){t.iushrn(this.n,0,e)},x.prototype.imulK=function(t){return t.imul(this.k)},i(_,x),_.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,a=o}a>>>=22,t.words[i-10]=a,0===a&&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,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new T}return b[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),p=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),h=o;0!==d.cmp(s);){for(var g=d,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;i--){for(var u=e.words[i],f=c-1;f>=0;f--){var p=u>>f&1;o!==n[0]&&(o=this.sqr(o)),0!==p||0!==s?(s<<=1,s|=p,(++l===r||0===i&&0===f)&&(o=this.mul(o,n[s]),l=0,s=0)):l=0}c=26}return o},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},a.mont=function(t){return new A(t)},i(A,M),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof e||e,this)},{buffer:2}],34:[function(t,e,r){"use strict";function n(t){var e,r,n,i=t.length,a=0;for(e=0;e>>1;if(!(u<=0)){var f,p=i.mallocDouble(2*u*s),d=i.mallocInt32(s);if((s=l(t,u,p,d))>0){if(1===u&&n)a.init(s),f=a.sweepComplete(u,r,0,s,p,d,0,s,p,d);else{var h=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,h,g))>0&&(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,p,d,0,c,h,g):o(u,r,n,s,p,d,c,h,g),i.free(h),i.free(g))}i.free(p),i.free(d)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function p(t,e){return n=[],c(t,e,u,!1),n}function d(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return"function"===typeof e?c(t,t,e,!0):p(t,e);case 3:return c(t,e,r,!1);default:throw new Error("box-intersect: Invalid arguments")}}},{"./lib/intersect":37,"./lib/sweep":41,"typedarray-pool":308}],36:[function(t,e,r){"use strict";function n(){function t(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,p=n,d=f*n;pu-c?t(r,n,i,a,o,s,l,c,u,f,p):e(r,n,i,a,o,s,l,c,u,f,p)}return r}function i(){function t(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,p=n,d=f*n;pd-p?s?t(i,a,o,l,c,u,f,p,d,h,g):e(i,a,o,l,c,u,f,p,d,h,g):s?r(i,a,o,l,c,u,f,p,d,h,g):n(i,a,o,l,c,u,f,p,d,h,g)}return i}function a(t){return t?n():i()}r.partial=a(!1),r.full=a(!0)},{}],37:[function(t,e,r){"use strict";e.exports=C;var n=t("typedarray-pool"),i=t("bit-twiddle"),a=t("./brute"),o=a.partial,s=a.full,l=t("./sweep"),c=t("./median"),u=t("./partition"),f=128,p=1<<22,d=1<<22,h=u("!(lo>=p0)&&!(p1>=hi)"),g=u("lo===p0"),m=u("lo0;){var P=(L-=1)*x,D=k[P],R=k[P+1],z=k[P+2],N=k[P+3],F=k[P+4],B=k[P+5],j=L*_,U=T[j],V=T[j+1],H=1&B,q=!!(16&B),G=i,W=a,Y=w,X=C;if(H&&(G=w,W=C,Y=i,X=a),!(2&B&&R>=(z=m(t,D,R,z,G,W,V)))&&!(4&B&&(R=v(t,D,R,z,G,W,U))>=z)){var Z=z-R,K=F-N;if(q){if(t*Z*(Z+K)r&&i[f+e]>c;--u,f-=o){for(var p=f,d=f+o,h=0;h>>1,p=2*t,d=f,h=s[p*f+e];c=b?(d=y,h=b):v>=_?(d=m,h=v):(d=x,h=_):b>=_?(d=y,h=b):_>=v?(d=m,h=v):(d=x,h=_);for(var w=p*(u-1),k=p*d,T=0;T=p0)&&!(p1>=hi)":f};function i(t){return n[t]}function a(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,p=r;n>p;++p,l+=s)if(i[l+f]===o)if(u===p)u+=1,c+=s;else{for(var d=0;s>d;++d){var h=i[l+d];i[l+d]=i[c],i[c++]=h}var g=a[p];a[p]=a[u],a[u++]=g}return u}function o(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,p=r;n>p;++p,l+=s)if(i[l+f]d;++d){var h=i[l+d];i[l+d]=i[c],i[c++]=h}var g=a[p];a[p]=a[u],a[u++]=g}return u}function s(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=t+e,p=r;n>p;++p,l+=s)if(i[l+f]<=o)if(u===p)u+=1,c+=s;else{for(var d=0;s>d;++d){var h=i[l+d];i[l+d]=i[c],i[c++]=h}var g=a[p];a[p]=a[u],a[u++]=g}return u}function l(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=t+e,p=r;n>p;++p,l+=s)if(i[l+f]<=o)if(u===p)u+=1,c+=s;else{for(var d=0;s>d;++d){var h=i[l+d];i[l+d]=i[c],i[c++]=h}var g=a[p];a[p]=a[u],a[u++]=g}return u}function c(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,p=t+e,d=r;n>d;++d,l+=s){var h=i[l+f],g=i[l+p];if(h<=o&&o<=g)if(u===d)u+=1,c+=s;else{for(var m=0;s>m;++m){var v=i[l+m];i[l+m]=i[c],i[c++]=v}var y=a[d];a[d]=a[u],a[u++]=y}}return u}function u(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,p=t+e,d=r;n>d;++d,l+=s){var h=i[l+f],g=i[l+p];if(hm;++m){var v=i[l+m];i[l+m]=i[c],i[c++]=v}var y=a[d];a[d]=a[u],a[u++]=y}}return u}function f(t,e,r,n,i,a,o,s){for(var l=2*t,c=l*r,u=c,f=r,p=e,d=t+e,h=r;n>h;++h,c+=l){var g=i[c+p],m=i[c+d];if(!(g>=o)&&!(s>=m))if(f===h)f+=1,u+=l;else{for(var v=0;l>v;++v){var y=i[c+v];i[c+v]=i[u],i[u++]=y}var b=a[h];a[h]=a[f],a[f++]=b}}return f}},{}],40:[function(t,e,r){"use strict";e.exports=i;var n=32;function i(t,e){e<=4*n?a(0,e-1,t):p(0,e-1,t)}function a(t,e,r){for(var n=2*(t+1),i=t+1;i<=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- >t;){var c=r[l-2],u=r[l-1];if(cr[e+1])}function f(t,e,r,n){var i=n[t*=2];return i>1,m=g-i,v=g+i,y=d,b=m,x=g,_=v,w=h,k=t+1,T=e-1,M=0;u(y,b,r)&&(M=y,y=b,b=M),u(_,w,r)&&(M=_,_=w,w=M),u(y,x,r)&&(M=y,y=x,x=M),u(b,x,r)&&(M=b,b=x,x=M),u(y,_,r)&&(M=y,y=_,_=M),u(x,_,r)&&(M=x,x=_,_=M),u(b,w,r)&&(M=b,b=w,w=M),u(b,x,r)&&(M=b,b=x,x=M),u(_,w,r)&&(M=_,_=w,w=M);for(var A=r[2*b],S=r[2*b+1],E=r[2*_],C=r[2*_+1],O=2*y,L=2*x,I=2*w,P=2*d,D=2*g,R=2*h,z=0;z<2;++z){var N=r[O+z],F=r[L+z],B=r[I+z];r[P+z]=N,r[D+z]=F,r[R+z]=B}s(m,t,r),s(v,e,r);for(var j=k;j<=T;++j)if(f(j,A,S,r))j!==k&&o(j,k,r),++k;else if(!f(j,E,C,r))for(;;){if(f(T,E,C,r)){f(T,A,S,r)?(l(j,k,T,r),++k,--T):(o(j,T,r),--T);break}if(--T>>1;a(h,S);var E=0,C=0;for(k=0;k=o)m(u,f,C--,O=O-o|0);else if(O>=0)m(l,c,E--,O);else if(O<=-o){O=-O-o|0;for(var L=0;L>>1;a(h,E);var C=0,O=0,L=0;for(T=0;T>1===h[2*T+3]>>1&&(P=2,T+=1),I<0){for(var D=-(I>>1)-1,R=0;R>1)-1,0===P?m(l,c,C--,D):1===P?m(u,f,O--,D):2===P&&m(p,d,L--,D)}}function x(t,e,r,n,i,s,u,f,p,d,g,y){var b=0,x=2*t,_=e,w=e+t,k=1,T=1;n?T=o:k=o;for(var M=i;M>>1;a(h,C);var O=0;for(M=0;M=o?(I=!n,A-=o):(I=!!n,A-=1),I)v(l,c,O++,A);else{var P=y[A],D=x*A,R=g[D+e+1],z=g[D+e+1+t];t:for(var N=0;N>>1;a(h,k);var T=0;for(b=0;b=o)l[T++]=x-o;else{var A=d[x-=1],S=m*x,E=p[S+e+1],C=p[S+e+1+t];t:for(var O=0;O=0;--O)if(l[O]===x){for(D=O+1;D0;){for(var d=r.pop(),h=(u=-1,f=-1,l=o[s=r.pop()],1);h=0||(e.flip(s,d),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,d,u),i(t,e,r,d,u,f))}}t("binary-search-bounds"),e.exports=a},{"binary-search-bounds":31,"robust-in-sphere":282}],44:[function(t,e,r){"use strict";var n=t("binary-search-bounds");function i(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function a(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}function o(t,e){for(var r=t.cells(),n=r.length,o=0;o0||l.length>0;){for(;a.length>0;){var d=a.pop();if(c[d]!==-i){c[d]=i,u[d];for(var h=0;h<3;++h){var g=p[3*d+h];g>=0&&0===c[g]&&(f[3*d+h]?l.push(g):(a.push(g),c[g]=i))}}}var m=l;l=a,a=m,l.length=0,i=-i}var v=s(u,c,e);return r?v.concat(n.boundary):v}e.exports=l,i.prototype.locate=function(){var t=[0,0,0];return function(e,r,i){var o=e,s=r,l=i;return r1&&i(r[p[d-2]],r[p[d-1]],a)>0;)t.push([p[d-1],p[d-2],o]),d-=1;p.length=d,p.push(o);var h=u.upperIds;for(d=h.length;d>1&&i(r[h[d-2]],r[h[d-1]],a)<0;)t.push([h[d-2],h[d-1],o]),d-=1;h.length=d,h.push(o)}}function d(t,e){var r;return(r=t.a[0]v[0]&&i.push(new c(v,m,s,f),new c(m,v,o,f))}i.sort(u);for(var y=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),b=[new l([y,1],[y,0],-1,[],[],[],[])],x=[],_=(f=0,i.length);f<_;++f){var w=i[f],k=w.type;k===a?p(x,b,t,w.a,w.idx):k===s?h(b,t,w):g(b,t,w)}return x}e.exports=m},{"binary-search-bounds":31,"robust-orientation":284}],46:[function(t,e,r){"use strict";var n=t("binary-search-bounds");function i(t,e){this.stars=t,this.edges=e}e.exports=s;var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n=0;--a){var b=e[u=(S=n[a])[0]],x=b[0],_=b[1],w=t[x],k=t[_];if((w[0]-k[0]||w[1]-k[1])<0){var T=x;x=_,_=T}b[0]=x;var M,A=b[1]=S[1];for(i&&(M=b[2]);a>0&&n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return p}function y(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;le[2]?1:0)}function _(t,e,r){if(0!==t.length){if(e)for(var n=0;n0||o.length>0}function T(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;ad+1)throw new Error(f+" map requires nshades to be at least size "+u.length);h=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():"number"===typeof t.alpha?[t.alpha,t.alpha]:[1,1],e=u.map((function(t){return Math.round(t.index*d)})),h[0]=Math.min(Math.max(h[0],0),1),h[1]=Math.min(Math.max(h[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&&n[3]>=0&&n[3]<=1||(n[3]=h[0]+(h[1]-h[0])*r),n})),v=[];for(g=0;g=0}function c(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r);return u===l(t,e,a)?0:u?1:-1}return 0}return 0===c?s>0||l(t,e,a)?-1:1:0===s?c>0||l(t,e,r)?1:-1:i(c-s)}var f=n(t,e,r);return f>0?o>0&&n(t,e,a)>0?1:-1:f<0?o>0||n(t,e,a)>0?1:-1:n(t,e,a)>0||l(t,e,r)?1:-1}},{"robust-orientation":284,"robust-product":285,"robust-sum":289,signum:55,"two-sum":307}],55:[function(t,e,r){"use strict";e.exports=function(t){return t<0?-1:t>0?1:0}},{}],56:[function(t,e,r){e.exports=a;var n=Math.min;function i(t,e){return t-e}function a(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],p=t[2],d=t[3],h=e[0],g=e[1],m=e[2],v=e[3];return u+f+p+d-(h+g+m+v)||n(u,f,p,d)-n(h,g,m,v,h)||n(u+f,u+p,u+d,f+p,f+d,p+d)-n(h+g,h+m,h+v,g+m,g+v,m+v)||n(u+f+p,u+f+d,u+p+d,f+p+d)-n(h+g+m,h+g+v,h+m+v,g+m+v);default:for(var y=t.slice().sort(i),b=e.slice().sort(i),x=0;xt[r][0]&&(r=n);return er?[[r],[e]]:[[e]]}e.exports=n},{}],60:[function(t,e,r){"use strict";e.exports=i;var n=t("monotone-convex-hull-2d");function i(t){var e=n(t),r=e.length;if(r<=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o=e[l]&&(s+=1);a[o]=s}}return t}function s(t,e){try{return n(t,!0)}catch(l){var r=i(t);if(r.length<=e)return[];var s=a(t,r);return o(n(s,!0),r)}}},{"affine-hull":10,"incremental-convex-hull":233}],62:[function(t,e,r){"use strict";function n(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u>=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}function i(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),p=s*o;if(t.length){a||(a=new Array(t.length));for(var d=t.length-1;d>=0;--d)a[d]=c*t[d]+u*e[d]+f*r[d]+p*n[d];return a}return c*t+u*e+f*r+p*n}e.exports=i,e.exports.derivative=n},{}],63:[function(t,e,r){"use strict";var n=t("incremental-convex-hull"),i=t("uniq");function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a=2)return!1;t[r]=n}return!0})):w.filter((function(t){for(var e=0;e<=l;++e){var r=y[t[e]];if(r<0)return!1;t[e]=r}return!0})),1&l)for(f=0;f>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:3}],65:[function(t,e,r){"use strict";function n(t,e,r){var i=0|t[r];if(i<=0)return[];var a,o=new Array(i);if(r===t.length-1)for(a=0;a0)return i(0|t,e);break;case"object":if("number"===typeof t.length)return n(t,e,0)}return[]}e.exports=a},{}],66:[function(t,e,r){"use strict";e.exports=i;var n=t("uniq");function i(t,e){var r=t.length;if("number"!==typeof e){e=0;for(var i=0;i=r-1){p=l.length-1;var h=t-e[r-1];for(d=0;d=r-1)for(var u=s.length-1,f=(e[r-1],0);f=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t1e-6?1/s:0;this._time.push(t);for(var p=r;p>0;--p){var d=a(c[p-1],u[p-1],arguments[p]);n.push(d),i.push((d-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u>1e-6?1/u:0;this._time.push(t);for(var p=r;p>0;--p){var d=arguments[p];n.push(a(l[p-1],c[p-1],n[o++]+d)),i.push(d*f)}}},s.idle=function(t){var e=this.lastT();if(!(t=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{"binary-search-bounds":31,"cubic-hermite":62}],69:[function(t,e,r){"use strict";e.exports=b;var n=0,i=1;function a(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function o(t){return new a(t._color,t.key,t.value,t.left,t.right,t._count)}function s(t,e){return new a(t,e.key,e.value,e.left,e.right,e._count)}function l(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function c(t,e){this._compare=t,this.root=e}var u=c.prototype;function f(t,e){var r;return e.left&&(r=f(t,e.left))?r:(r=t(e.key,e.value))||(e.right?f(t,e.right):void 0)}function p(t,e,r,n){if(e(t,n.key)<=0){var i;if(n.left&&(i=p(t,e,r,n.left)))return i;if(i=r(n.key,n.value))return i}if(n.right)return p(t,e,r,n.right)}function d(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o<=0){if(i.left&&(a=d(t,e,r,n,i.left)))return a;if(s>0&&(a=n(i.key,i.value)))return a}if(s>0&&i.right)return d(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(u,"keys",{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(u,"values",{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(u,"length",{get:function(){return this.root?this.root._count:0}}),u.insert=function(t,e){for(var r=this._compare,o=this.root,u=[],f=[];o;){var p=r(t,o.key);u.push(o),f.push(p),o=p<=0?o.left:o.right}u.push(new a(n,t,e,null,null,1));for(var d=u.length-2;d>=0;--d)o=u[d],f[d]<=0?u[d]=new a(o._color,o.key,o.value,u[d+1],o.right,o._count+1):u[d]=new a(o._color,o.key,o.value,o.left,u[d+1],o._count+1);for(d=u.length-1;d>1;--d){var h=u[d-1];if(o=u[d],h._color===i||o._color===i)break;var g=u[d-2];if(g.left===h)if(h.left===o){if(!(m=g.right)||m._color!==n){g._color=n,g.left=h.right,h._color=i,h.right=g,u[d-2]=h,u[d-1]=o,l(g),l(h),d>=3&&((v=u[d-3]).left===g?v.left=h:v.right=h);break}h._color=i,g.right=s(i,m),g._color=n,d-=1}else{if(!(m=g.right)||m._color!==n){h.right=o.left,g._color=n,g.left=o.right,o._color=i,o.left=h,o.right=g,u[d-2]=o,u[d-1]=h,l(g),l(h),l(o),d>=3&&((v=u[d-3]).left===g?v.left=o:v.right=o);break}h._color=i,g.right=s(i,m),g._color=n,d-=1}else if(h.right===o){if(!(m=g.left)||m._color!==n){g._color=n,g.right=h.left,h._color=i,h.left=g,u[d-2]=h,u[d-1]=o,l(g),l(h),d>=3&&((v=u[d-3]).right===g?v.right=h:v.left=h);break}h._color=i,g.left=s(i,m),g._color=n,d-=1}else{var m;if(!(m=g.left)||m._color!==n){var v;h.left=o.right,g._color=n,g.right=o.left,o._color=i,o.right=h,o.left=g,u[d-2]=o,u[d-1]=h,l(g),l(h),l(o),d>=3&&((v=u[d-3]).right===g?v.right=o:v.left=o);break}h._color=i,g.left=s(i,m),g._color=n,d-=1}}return u[0]._color=i,new c(r,u[0])},u.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return f(t,this.root);case 2:return p(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return d(e,r,this._compare,t,this.root)}},Object.defineProperty(u,"begin",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(u,"end",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),u.at=function(t){if(t<0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t=e.right._count)break;e=e.right}return new h(this,[])},u.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},u.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},u.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},u.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},u.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i<=0?r.left:r.right}return new h(this,[])},u.remove=function(t){var e=this.find(t);return e?e.remove():this},u.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var g=h.prototype;function m(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function v(t){for(var e,r,a,c,u=t.length-1;u>=0;--u){if(e=t[u],0===u)return void(e._color=i);if((r=t[u-1]).left===e){if((a=r.right).right&&a.right._color===n)return c=(a=r.right=o(a)).right=o(a.right),r.right=a.left,a.left=r,a.right=c,a._color=r._color,e._color=i,r._color=i,c._color=i,l(r),l(a),u>1&&((f=t[u-2]).left===r?f.left=a:f.right=a),void(t[u-1]=a);if(a.left&&a.left._color===n)return c=(a=r.right=o(a)).left=o(a.left),r.right=c.left,a.left=c.right,c.left=r,c.right=a,c._color=r._color,r._color=i,a._color=i,e._color=i,l(r),l(a),l(c),u>1&&((f=t[u-2]).left===r?f.left=c:f.right=c),void(t[u-1]=c);if(a._color===i){if(r._color===n)return r._color=i,void(r.right=s(n,a));r.right=s(n,a);continue}a=o(a),r.right=a.left,a.left=r,a._color=r._color,r._color=n,l(r),l(a),u>1&&((f=t[u-2]).left===r?f.left=a:f.right=a),t[u-1]=a,t[u]=r,u+11&&((f=t[u-2]).right===r?f.right=a:f.left=a),void(t[u-1]=a);if(a.right&&a.right._color===n)return c=(a=r.left=o(a)).right=o(a.right),r.left=c.right,a.right=c.left,c.right=r,c.left=a,c._color=r._color,r._color=i,a._color=i,e._color=i,l(r),l(a),l(c),u>1&&((f=t[u-2]).right===r?f.right=c:f.left=c),void(t[u-1]=c);if(a._color===i){if(r._color===n)return r._color=i,void(r.left=s(n,a));r.left=s(n,a);continue}var f;a=o(a),r.left=a.right,a.right=r,a._color=r._color,r._color=n,l(r),l(a),u>1&&((f=t[u-2]).right===r?f.right=a:f.left=a),t[u-1]=a,t[u]=r,u+1e?1:0}function b(t){return new c(t||y,null)}Object.defineProperty(g,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(g,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),g.clone=function(){return new h(this.tree,this._stack.slice())},g.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new a(r._color,r.key,r.value,r.left,r.right,r._count);for(var o=t.length-2;o>=0;--o)(r=t[o]).left===t[o+1]?e[o]=new a(r._color,r.key,r.value,e[o+1],r.right,r._count):e[o]=new a(r._color,r.key,r.value,r.left,e[o+1],r._count);if((r=e[e.length-1]).left&&r.right){var s=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var l=e[s-1];for(e.push(new a(r._color,l.key,l.value,r.left,r.right,r._count)),e[s-1].key=r.key,e[s-1].value=r.value,o=e.length-2;o>=s;--o)r=e[o],e[o]=new a(r._color,r.key,r.value,r.left,e[o+1],r._count);e[s-1].left=e[s]}if((r=e[e.length-1])._color===n){var u=e[e.length-2];for(u.left===r?u.left=null:u.right===r&&(u.right=null),e.pop(),o=0;o0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(g,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(g,"index",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),g.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(g,"hasNext",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),g.update=function(t){var e=this._stack;if(0===e.length)throw new Error("Can't update empty node!");var r=new Array(e.length),n=e[e.length-1];r[r.length-1]=new a(n._color,n.key,t,n.left,n.right,n._count);for(var i=e.length-2;i>=0;--i)(n=e[i]).left===e[i+1]?r[i]=new a(n._color,n.key,n.value,r[i+1],n.right,n._count):r[i]=new a(n._color,n.key,n.value,n.left,r[i+1],n._count);return new c(this.tree._compare,r[0])},g.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(g,"hasPrev",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],70:[function(t,e,r){"use strict";e.exports=_;var n=t("./lib/text.js"),i=t("./lib/lines.js"),a=t("./lib/background.js"),o=t("./lib/cube.js"),s=t("./lib/ticks.js"),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function p(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if("bounds"in t)for(var p=t.bounds,d=0;d<2;++d)for(var h=0;h<3;++h)p[d][h]!==this.bounds[d][h]&&(f=!0),this.bounds[d][h]=p[d][h];if("ticks"in t)for(r=t.ticks,u=!0,this.autoTicks=!1,d=0;d<3;++d)this.tickSpacing[d]=0;else a("tickSpacing")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&("ticks"in t||"tickSpacing"in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&&this.autoTicks&&(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(d=0;d<3;++d)r[d].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o("tickEnable"),l("tickFont")&&(u=!0),a("tickSize"),a("tickAngle"),a("tickPad"),c("tickColor");var g=l("labels");l("labelFont")&&(g=!0),o("labelEnable"),a("labelSize"),a("labelPad"),c("labelColor"),o("lineEnable"),o("lineMirror"),a("lineWidth"),c("lineColor"),o("lineTickEnable"),o("lineTickMirror"),a("lineTickLength"),a("lineTickWidth"),c("lineTickColor"),o("gridEnable"),a("gridWidth"),c("gridColor"),o("zeroEnable"),c("zeroLineColor"),a("zeroLineWidth"),o("backgroundEnable"),c("backgroundColor"),this._text?this._text&&(g||u)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var d=[new p,new p,new p];function h(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u<3;++u)if(e!==u){var f=a,p=s,d=o,h=l;c&1<0?(d[u]=-1,h[u]=0):(d[u]=0,h[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=0,y=[0,0,0],b=[0,0,0],x=[0,0,0];function _(t,e){var r=new u(t);return r.update(e),r}f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,p=u.axis,_=n[12],w=n[13],k=n[14],T=n[15],M=(s?2:1)*this.pixelRatio*(i[3]*_+i[7]*w+i[11]*k+i[15]*T)/e.drawingBufferHeight,A=0;A<3;++A)this.lastCubeProps.cubeEdges[A]=f[A],this.lastCubeProps.axis[A]=p[A];var S=d;for(A=0;A<3;++A)h(d[A],A,this.bounds,f,p);e=this.gl;var E,C=g;for(A=0;A<3;++A)this.backgroundEnable[A]?C[A]=p[A]:C[A]=0;for(this._background.draw(r,n,i,a,C,this.backgroundColor),this._lines.bind(r,n,i,this),A=0;A<3;++A){var O=[0,0,0];p[A]>0?O[A]=a[1][A]:O[A]=a[0][A];for(var L=0;L<2;++L){var I=(A+1+L)%3,P=(A+1+(1^L))%3;this.gridEnable[I]&&this._lines.drawGrid(I,P,this.bounds,O,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L<2;++L)I=(A+1+L)%3,P=(A+1+(1^L))%3,this.zeroEnable[P]&&Math.min(a[0][P],a[1][P])<=0&&Math.max(a[0][P],a[1][P])>=0&&this._lines.drawZero(I,P,this.bounds,O,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}for(A=0;A<3;++A){this.lineEnable[A]&&this._lines.drawAxisLine(A,this.bounds,S[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&&this._lines.drawAxisLine(A,this.bounds,S[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var D=c(y,S[A].primalMinor),R=c(b,S[A].mirrorMinor),z=this.lineTickLength;for(L=0;L<3;++L){var N=M/r[5*L];D[L]*=z[L]*N,R[L]*=z[L]*N}this.lineTickEnable[A]&&this._lines.drawAxisTicks(A,S[A].primalOffset,D,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&&this._lines.drawAxisTicks(A,S[A].mirrorOffset,R,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B,j=.5;function U(t){(B=[0,0,0])[t]=1}function V(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a>0&&l>0||a>0&&l<0||a<0&&l>0||a<0&&l<0?U(n):(o>0&&s>0||o>0&&s<0||o<0&&s>0||o<0&&s<0)&&U(i)}for(A=0;A<3;++A){var H=S[A].primalMinor,q=S[A].mirrorMinor,G=c(x,S[A].primalOffset);for(L=0;L<3;++L)this.lineTickEnable[A]&&(G[L]+=M*H[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var W=[0,0,0];if(W[A]=1,this.tickEnable[A]){for(-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]="auto"):this.tickAlign[A]=-1,F=1,"auto"===(E=[this.tickAlign[A],j,F])[0]?E[0]=v:E[0]=parseInt(""+E[0]),B=[0,0,0],V(A,H,q),L=0;L<3;++L)G[L]+=M*H[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],G,this.tickColor[A],W,B,E)}if(this.labelEnable[A]){for(F=0,B=[0,0,0],this.labels[A].length>4&&(U(A),F=1),"auto"===(E=[this.labelAlign[A],j,F])[0]?E[0]=v:E[0]=parseInt(""+E[0]),L=0;L<3;++L)G[L]+=M*H[L]*this.labelPad[L]/r[5*L];G[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],G,this.labelColor[A],[0,0,0],B,E)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{"./lib/background.js":71,"./lib/cube.js":72,"./lib/lines.js":73,"./lib/text.js":75,"./lib/ticks.js":76}],71:[function(t,e,r){"use strict";e.exports=l;var n=t("gl-buffer"),i=t("gl-vao"),a=t("./shaders").bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;function l(t){for(var e=[],r=[],s=0,l=0;l<3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],p=[0,0,0],d=-1;d<=1;d+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=d,p[l]=d;for(var h=-1;h<=1;h+=2){f[c]=h;for(var g=-1;g<=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],p[0],p[1],p[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),b=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),x=a(t);return x.attributes.position.location=0,x.attributes.normal.location=1,new o(t,v,b,x)}s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{"./shaders":74,"gl-buffer":78,"gl-vao":150}],72:[function(t,e,r){"use strict";e.exports=y;var n=t("bit-twiddle"),i=t("gl-mat4/multiply"),a=t("split-polygon"),o=t("robust-orientation"),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function p(t,e,r){for(var n=0;n<4;++n){t[n]=r[12+n];for(var i=0;i<3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t<8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var d=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function h(t){for(var e=0;eE&&(w|=1<E&&(w|=1<c[b][1])&&(z=b);var N=-1;for(b=0;b<3;++b)(B=z^1<c[F][0]&&(F=B))}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(N^z)]=z&N,j[n.log2(z^F)]=z&F;var U=7^F;U===w||U===R?(U=7^N,j[n.log2(F^U)]=U&F):j[n.log2(N^U)]=U&N;var V=m,H=w;for(M=0;M<3;++M)V[M]=H&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}"]),l=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);r.text=function(t){return i(t,s,l,null,[{name:"position",type:"vec3"}])};var c=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}"]),u=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);r.bg=function(t){return i(t,c,u,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},{"gl-shader":132,glslify:231}],75:[function(t,e,r){(function(r){(function(){"use strict";e.exports=h;var n=t("gl-buffer"),i=t("gl-vao"),a=t("vectorize-text"),o=t("./shaders").text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};var c=3;function u(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var f=u.prototype,p=[0,0];function d(t,e){try{return a(t,e)}catch(r){return console.warn('error vectorizing text:"'+t+'" error:',r),{cells:[],positions:[]}}}function h(t,e,r,a,s,l){var c=n(t),f=i(t,[{buffer:c,size:3}]),p=o(t);p.attributes.position.location=0;var d=new u(t,p,c,f);return d.update(e,r,a,s,l),d}f.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,p[0]=this.gl.drawingBufferWidth,p[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=p},f.unbind=function(){this.vao.unbind()},f.update=function(t,e,r,n,i){var a=[];function o(t,e,r,n,i,o){var s=l[r];s||(s=l[r]={});var c=s[e];c||(c=s[e]=d(e,{triangles:!0,font:r,textAlign:"center",textBaseline:"middle",lineSpacing:i,styletags:o}));for(var u=(n||12)/12,f=c.positions,p=c.cells,h=0,g=p.length;h=0;--v){var y=f[m[v]];a.push(u*y[0],-u*y[1],t)}}for(var s=[0,0,0],u=[0,0,0],f=[0,0,0],p=[0,0,0],h=1.25,g={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},m=0;m<3;++m){f[m]=a.length/c|0,o(.5*(t[0][m]+t[1][m]),e[m],r[m],12,h,g),p[m]=(a.length/c|0)-f[m],s[m]=a.length/c|0;for(var v=0;v=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+"";if(s.indexOf("e")>=0)return s;var l=o/a,c=o%a;o<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=""+l;if(o<0&&(u="-"+u),i){for(var f=""+c;f.length=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r}function a(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;nr)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}function p(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(n!==t.DYNAMIC_DRAW&&n!==t.STATIC_DRAW&&n!==t.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if("number"!==typeof e&&(e=-1),this.bind(),"object"===typeof t&&"undefined"!==typeof t.shape){var r=t.dtype;if(o.indexOf(r)<0&&(r="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER&&(r=gl.getExtension("OES_element_index_uint")&&"uint16"!==r?"uint32":"uint16"),r===t.dtype&&f(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e<0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var p;p=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,"uint16"):u(t,"float32"),this.length=c(this.gl,this.type,this.length,this.usage,e<0?p:p.subarray(0,t.length),e),n.free(p)}else if("object"===typeof t&&"number"===typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if("number"!==typeof t&&void 0!==t)throw new Error("gl-buffer: Invalid data type");if(e>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(t|=0)<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=p},{ndarray:259,"ndarray-ops":254,"typedarray-pool":308}],79:[function(t,e,r){"use strict";var n=t("gl-vec3");e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&&(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,p=-1/0,d=null,h=null,g=[],m=1/0,v=!1,y=0;yo&&(o=n.length(x)),y){var _=2*n.distance(d,b)/(n.length(h)+n.length(x));_?(m=Math.min(m,_),v=!1):v=!0}v||(d=b,h=x),g.push(x)}var w=[s,c,f],k=[l,u,p];e&&(e[0]=w,e[1]=k),0===o&&(o=1);var T=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&&(M=t.absoluteConeSize*T),a.coneScale=M,y=0;for(var A=0;y=1},d.isTransparent=function(){return this.opacity<1},d.pickSlots=1,d.setPickBase=function(t){this.pickId=t},d.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,"lightPosition"in t&&(this.lightPosition=t.lightPosition),"opacity"in t&&(this.opacity=t.opacity),"ambient"in t&&(this.ambientLight=t.ambient),"diffuse"in t&&(this.diffuseLight=t.diffuse),"specular"in t&&(this.specularLight=t.specular),"roughness"in t&&(this.roughness=t.roughness),"fresnel"in t&&(this.fresnel=t.fresnel),void 0!==t.tubeScale&&(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&&(this.vectorScale=t.vectorScale),void 0!==t.coneScale&&(this.coneScale=t.coneScale),void 0!==t.coneOffset&&(this.coneOffset=t.coneOffset),t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(h(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){var a=[],o=[],s=[],l=[],c=[];this.cells=r,this.positions=n,this.vectors=i;var u=t.meshColor||[1,1,1,1],f=t.vertexIntensity,p=1/0,d=-1/0;if(f)if(t.vertexIntensityBounds)p=+t.vertexIntensityBounds[0],d=+t.vertexIntensityBounds[1];else for(var m=0;m0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},d.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},d.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return"cone"===this.traceType?i.index=Math.floor(r[1]/48):"streamtube"===this.traceType&&(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},d.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=y},{colormap:53,"gl-buffer":78,"gl-mat4/invert":98,"gl-mat4/multiply":100,"gl-shader":132,"gl-texture2d":146,"gl-vao":150,ndarray:259}],81:[function(t,e,r){var n=t("glslify"),i=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * view * conePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},{glslify:231}],82:[function(t,e,r){e.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},{}],83:[function(t,e,r){var n=t("./1.0/numbers");e.exports=function(t){return n[t]}},{"./1.0/numbers":82}],84:[function(t,e,r){"use strict";e.exports=p;var n=t("gl-buffer"),i=t("gl-vao"),a=t("./shaders/index"),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f<3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&&e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a0&&((d=u.slice())[s]+=h[1][s],i.push(u[0],u[1],u[2],g[0],g[1],g[2],g[3],0,0,0,d[0],d[1],d[2],g[0],g[1],g[2],g[3],0,0,0),c(this.bounds,d),o+=2+f(i,d,g,s))}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{"./shaders/index":85,"gl-buffer":78,"gl-vao":150}],85:[function(t,e,r){"use strict";var n=t("glslify"),i=t("gl-shader"),a=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * view * worldPosition;\n fragColor = color;\n fragPosition = position;\n}"]),o=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n gl_FragColor = opacity * fragColor;\n}"]);e.exports=function(t){return i(t,a,o,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},{"gl-shader":132,glslify:231}],86:[function(t,e,r){"use strict";var n=t("gl-texture2d");e.exports=b;var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;a1&&s.drawBuffersWEBGL(l[o]);var y=r.getExtension("WEBGL_depth_texture");y?f?t.depth=d(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&&(t.depth=d(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&&f?t._depth_rb=h(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=h(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):f&&(t._depth_rb=h(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var b=r.checkFramebufferStatus(r.FRAMEBUFFER);if(b!==r.FRAMEBUFFER_COMPLETE){for(t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null),v=0;vi||r<0||r>i)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;ou||r<0||r>u)throw new Error("gl-fbo: Parameters are too large for FBO");var p=1;if("color"in(n=n||{})){if((p=Math.max(0|n.color,0))<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(p>1){if(!c)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(p>t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+p+" draw buffers")}}var d=t.UNSIGNED_BYTE,h=t.getExtension("OES_texture_float");if(n.float&&p>0){if(!h)throw new Error("gl-fbo: Context does not support floating point textures");d=t.FLOAT}else n.preferFloat&&p>0&&h&&(d=t.FLOAT);var g=!0;"depth"in n&&(g=!!n.depth);var v=!1;return"stencil"in n&&(v=!!n.stencil),new m(t,e,r,d,p,g,v,c)}Object.defineProperties(v,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error("gl-fbo: Shape vector must be length 2");var e=0|t[0],r=0|t[1];return y(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return y(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,y(this,this._shape[0],t),t},enumerable:!1}}),v.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},v.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e>8*d&255;this.pickOffset=r,i.bind();var h=i.uniforms;h.viewTransform=t,h.pickOffset=e,h.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),u.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},u.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,p,d,h=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=h.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],p=v[2]=r[r.length-1],d=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,p=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,d=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(p-c),b=1/(d-u),x=e[0],_=e[1];this.shape=[x,_];var w=(l?(x-1)*(_-1):x*_)*(f.length>>>1);this.numVertices=w;for(var k=a.mallocUint8(4*w),T=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?x-1:x,C=l?_-1:_,O=0;O max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n float e = floor(log2(av));\n float m = av * pow(2.0, -e) - 1.0;\n\n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n\n //Unpack exponent\n float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0;\n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}"]),l=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{"gl-shader":132,glslify:231}],91:[function(t,e,r){"use strict";e.exports=x;var n=t("gl-buffer"),i=t("gl-vao"),a=t("gl-texture2d"),o=new Uint8Array(4),s=new Float32Array(o.buffer);function l(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}var c=t("binary-search-bounds"),u=t("ndarray"),f=t("./lib/shaders"),p=f.createShader,d=f.createPickShader,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function g(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function m(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function v(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function y(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var b=y.prototype;function x(t){var e=t.gl||t.scene&&t.scene.gl,r=p(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=d(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),c=u(new Array(1024),[256,1,4]),f=0;f<1024;++f)c.data[f]=255;var h=a(e,c);h.wrap=e.REPEAT;var g=new y(e,r,o,s,l,h);return g.update(t),g}b.isTransparent=function(){return this.hasAlpha},b.isOpaque=function(){return!this.hasAlpha},b.pickSlots=1,b.setPickBase=function(t){this.pickId=t},b.drawTransparent=b.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||h,view:t.view||h,projection:t.projection||h,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},b.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||h,view:t.view||h,projection:t.projection||h,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},b.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;"dashScale"in t&&(this.dashScale=t.dashScale),this.hasAlpha=!1,"opacity"in t&&(this.opacity=+t.opacity,this.opacity<1&&(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,l=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],p=t.position||t.positions;if(p){var d=t.color||t.colors||[0,0,0,1],h=t.lineWidth||1,m=!1;t:for(e=1;e0){for(var w=0;w<24;++w)i.push(i[i.length-12]);l+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],x[r],_[r]),f[1][r]=Math.max(f[1][r],x[r],_[r])}Array.isArray(d[0])?(v=d.length>e-1?d[e-1]:d.length>0?d[d.length-1]:[0,0,0,1],y=d.length>e?d[e]:d.length>0?d[d.length-1]:[0,0,0,1]):v=y=d,3===v.length&&(v=[v[0],v[1],v[2],1]),3===y.length&&(y=[y[0],y[1],y[2],1]),!this.hasAlpha&&v[3]<1&&(this.hasAlpha=!0),b=Array.isArray(h)?h.length>e-1?h[e-1]:h.length>0?h[h.length-1]:[0,0,0,1]:h;var k=s;if(s+=g(x,_),m){for(r=0;r<2;++r)i.push(x[0],x[1],x[2],_[0],_[1],_[2],k,b,v[0],v[1],v[2],v[3]);l+=2,m=!1}i.push(x[0],x[1],x[2],_[0],_[1],_[2],k,b,v[0],v[1],v[2],v[3],x[0],x[1],x[2],_[0],_[1],_[2],k,-b,v[0],v[1],v[2],v[3],_[0],_[1],_[2],x[0],x[1],x[2],s,-b,y[0],y[1],y[2],y[3],_[0],_[1],_[2],x[0],x[1],x[2],s,b,y[0],y[1],y[2],y[3]),l+=4}}if(this.buffer.update(i),a.push(s),o.push(p[p.length-1].slice()),this.bounds=f,this.vertexCount=l,this.points=o,this.arcLength=a,"dashes"in t){var T=t.dashes.slice();for(T.unshift(0),e=1;e1.0001)return null;m+=g[u]}return Math.abs(m-1)>.001?null:[f,l(t,g),g]}e.exports=c},{barycentric:14,"polytope-closest-point/lib/closest_point_2d.js":270}],111:[function(t,e,r){var n=t("glslify"),i=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]),o=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_color = color;\n f_data = position;\n f_uv = uv;\n}"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),l=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}"]),c=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),u=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_id = id;\n f_position = position;\n}"]),f=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]),p=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}"]),d=n(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n}"]),h=n(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor, 1.0);\n}\n"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},r.pointPickShader={vertex:p,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},r.contourShader={vertex:d,fragment:h,attributes:[{name:"position",type:"vec3"}]}},{glslify:231}],112:[function(t,e,r){"use strict";var n=1e-6,i=1e-6,a=t("gl-shader"),o=t("gl-buffer"),s=t("gl-vao"),l=t("gl-texture2d"),c=t("normals"),u=t("gl-mat4/multiply"),f=t("gl-mat4/invert"),p=t("ndarray"),d=t("colormap"),h=t("simplicial-complex-contour"),g=t("typedarray-pool"),m=t("./lib/shaders"),v=t("./lib/closest-point"),y=m.meshShader,b=m.wireShader,x=m.pointShader,_=m.pickShader,w=m.pointPickShader,k=m.contourShader,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function M(t,e,r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v,y,b,x,_,w,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=p,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=h,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=b,this.pointColors=_,this.pointUVs=w,this.pointSizes=k,this.pointIds=x,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=T,this._view=T,this._projection=T,this._resolution=[1,1]}var A=M.prototype;function S(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;rt&&r>0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function E(t,e){for(var r=d({colormap:t,nshades:256,format:"rgba"}),n=new Uint8Array(1024),i=0;i<256;++i){for(var a=r[i],o=0;o<3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*S(i/255,e):255*a[3]}return p(n,[256,256,4],[4,0,1])}function C(t){for(var e=t.length,r=new Array(e),n=0;n0&&((c=this.triShader).bind(),c.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&this.lineWidth>0&&((c=this.lineShader).bind(),c.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0&&((c=this.pointShader).bind(),c.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind()),this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((c=this.contourShader).bind(),c.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},A.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||T,n=t.view||T,i=t.projection||T,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};(s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},A.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;al[T]&&(a.uniforms.dataAxis=t,a.uniforms.screenOffset=e,a.uniforms.color=m[n],a.uniforms.angle=v[n],c.drawArrays(c.TRIANGLES,l[T],l[M]-l[T]))),y[n]&&k&&(e[1^n]-=A*d*b[n],a.uniforms.dataAxis=r,a.uniforms.screenOffset=e,a.uniforms.color=x[n],a.uniforms.angle=_[n],c.drawArrays(c.TRIANGLES,w,k)),e[1^n]=A*u[2+(1^n)]-1,h[n+2]&&(e[1^n]+=A*d*g[n+2],Tl[T]&&(a.uniforms.dataAxis=t,a.uniforms.screenOffset=e,a.uniforms.color=m[n+2],a.uniforms.angle=v[n+2],c.drawArrays(c.TRIANGLES,l[T],l[M]-l[T]))),y[n+2]&&k&&(e[1^n]+=A*d*b[n+2],a.uniforms.dataAxis=r,a.uniforms.screenOffset=e,a.uniforms.color=x[n+2],a.uniforms.angle=_[n+2],c.drawArrays(c.TRIANGLES,w,k))}}(),c.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u<2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),c.bind=function(){var t=[0,0],e=[0,0],r=[0,0];return function(){var n=this.plot,i=this.shader,a=n._tickBounds,o=n.dataBox,s=n.screenBox,l=n.viewBox;i.bind();for(var c=0;c<2;++c){var u=a[c],f=a[c+2]-u,p=.5*(o[c+2]+o[c]),d=o[c+2]-o[c],h=l[c],g=l[c+2]-h,m=s[c],v=s[c+2]-m;e[c]=2*f/d*g/v,t[c]=2*(u-p)/d*g/v}r[1]=2*n.pixelRatio/(s[3]-s[1]),r[0]=r[1]*(s[3]-s[1])/(s[2]-s[0]),i.uniforms.dataScale=e,i.uniforms.dataShift=t,i.uniforms.textScale=r,this.vbo.bind(),i.attributes.textCoordinate.pointer()}}(),c.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o<2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],p=l[o];for(e=0;e=0){var g=e[h]-n[h]*(e[h+2]-e[h])/(n[h+2]-n[h]);0===h?o.drawLine(g,e[1],g,e[3],d[h],p[h]):o.drawLine(e[0],g,e[2],g,d[h],p[h])}}for(h=0;h=0;--t)this.objects[t].dispose();for(this.objects.length=0,t=this.overlays.length-1;t>=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)<0&&(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;rMath.abs(e))c.rotate(a,0,0,-t*r*Math.PI*h.rotateSpeed/window.innerWidth);else if(!h._ortho){var o=-h.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},h.enableMouseListeners(),h}},{"3d-view":7,"has-passive-events":232,"mouse-change":247,"mouse-event-offset":248,"mouse-wheel":250,"right-now":278}],120:[function(t,e,r){var n=t("glslify"),i=t("gl-shader"),a=n(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]),o=n(["precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n gl_FragColor = min(vec4(1,1,1,1), accum);\n}"]);e.exports=function(t){return i(t,a,o,null,[{name:"position",type:"vec2"}])}},{"gl-shader":132,glslify:231}],121:[function(t,e,r){"use strict";var n=t("./camera.js"),i=t("gl-axes3d"),a=t("gl-axes3d/properties"),o=t("gl-spikes3d"),s=t("gl-select-static"),l=t("gl-fbo"),c=t("a-big-triangle"),u=t("mouse-change"),f=t("gl-mat4/perspective"),p=t("gl-mat4/ortho"),d=t("./lib/shader"),h=t("is-mobile")({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t,e){var r=null;try{(r=t.getContext("webgl",e))||(r=t.getContext("experimental-webgl",e))}catch(n){return null}return r}function v(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}return e>0?(r=Math.round(Math.pow(10,e)),Math.ceil(t/r)*r):Math.ceil(t)}function y(t){return"boolean"!==typeof t||t}function b(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;e||(e=document.createElement("canvas"),t.container?t.container.appendChild(e):document.body.appendChild(e));var r=t.gl;if(r||(t.glOptions&&(h=!!t.glOptions.preserveDrawingBuffer),r=m(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:h})),!r)throw new Error("webgl not supported");var f=t.bounds||[[-10,-10,-10],[10,10,10]],p=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!h}),_=d(r),w=t.cameraObject&&!0===t.cameraObject._ortho||t.camera.projection&&"orthographic"===t.camera.projection.type||!1,k={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||"turntable",_ortho:w},T=t.axes||{},M=i(r,T);M.enable=!T.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],O=[],L=[],I=!0,P=!0,D={view:null,projection:new Array(16),model:new Array(16),_ortho:!1},R=(P=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),z=t.cameraObject||n(e,k),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:p,camera:z,axes:M,axesPixels:null,spikes:S,bounds:f,objects:E,shape:R,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:y(t.autoResize),autoBounds:y(t.autoBounds),autoScale:!!t.autoScale,autoCenter:y(t.autoCenter),clipToBounds:y(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:D,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,P=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},F=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function B(){if(!N._stopped&&N.autoResize){var t=e.parentNode,r=1,n=1;t&&t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||"absolute",o.left="0px",o.top="0px",o.width=r+"px",o.height=n+"px",I=!0}}}function j(){for(var t=E.length,e=L.length,n=0;n0&&0===O[e-1];)O.pop(),L.pop().dispose()}function U(){if(N.contextLost)return!0;r.isContextLost()&&(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&&N.oncontextloss())}function V(){if(!U()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=L.length,n=0;np.distance)continue;for(var c=0;c 1.0) {\n discard;\n }\n baseColor = mix(borderColor, color, step(radius, centerFraction));\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n }\n}\n"]),r.pickVertex=n(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n gl_PointSize = pointSize;\n\n vec4 id = pickId + pickOffset;\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n fragId = id;\n}\n"]),r.pickFragment=n(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n gl_FragColor = fragId / 255.0;\n}\n"])},{glslify:231}],123:[function(t,e,r){"use strict";var n=t("gl-shader"),i=t("gl-buffer"),a=t("typedarray-pool"),o=t("./lib/shader");function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=u;var l=s.prototype;function c(t,e){var r,n=0,i=t.length>>>1;for(r=0;r=e[0]&&a<=e[2]&&o>=e[1]&&o<=e[3]&&n++}return n}function u(t,e){var r=t.gl,a=new s(t,i(r),i(r),n(r,o.pointVertex,o.pointFragment),n(r,o.pickVertex,o.pickFragment));return a.update(e),t.addObject(a),a}l.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},l.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r("sizeMin",.5),this.sizeMax=r("sizeMax",20),this.color=r("color",[1,0,0,1]).slice(),this.areaRatio=r("areaRatio",1),this.borderColor=r("borderColor",[0,0,0,1]).slice(),this.blend=r("blend",!1);var n=t.positions.length>>>1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&&t.idToIndex.length>=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e>8&255,e[2]=r>>16&255,e[3]=r>>24&255,this.pickBuffer.bind(),i.attributes.pickId.pointer(a.UNSIGNED_BYTE),i.uniforms.pickOffset=e,this.pickOffset=r);var p=a.getParameter(a.BLEND),d=a.getParameter(a.DITHER);return p&&!this.blend&&a.disable(a.BLEND),d&&a.disable(a.DITHER),a.drawArrays(a.POINTS,0,this.pointCount),p&&!this.blend&&a.enable(a.BLEND),d&&a.enable(a.DITHER),r+this.pointCount}}(),l.draw=l.unifiedDraw,l.drawPick=l.unifiedDraw,l.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{"./lib/shader":122,"gl-buffer":78,"gl-shader":132,"typedarray-pool":308}],124:[function(t,e,r){function n(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],p=e[3],d=r[0],h=r[1],g=r[2],m=r[3];return(a=c*d+u*h+f*g+p*m)<0&&(a=-a,d=-d,h=-h,g=-g,m=-m),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),t[0]=s*c+l*d,t[1]=s*u+l*h,t[2]=s*f+l*g,t[3]=s*p+l*m,t}e.exports=n},{}],125:[function(t,e,r){"use strict";e.exports=function(t){return t||0===t?t.toString():""}},{}],126:[function(t,e,r){"use strict";var n=t("vectorize-text");e.exports=a;var i={};function a(t,e,r){var a=i[e];if(a||(a=i[e]={}),t in a)return a[t];var o={textAlign:"center",textBaseline:"middle",lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&&1!==r){for(l=0;l max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),o=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = pixelRatio;\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\n scale *= highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1.0);\n vec4 viewPosition = view * worldPosition;\n vec4 clipPosition = projection * viewPosition;\n clipPosition /= clipPosition.w;\n\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),s=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float lscale = pixelRatio * scale;\n if(distance(highlightId, id) < 0.0001) {\n lscale *= highlightScale;\n }\n\n vec4 clipCenter = projection * view * model * vec4(position, 1);\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = dataPosition;\n }\n}\n"]),l=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n interpColor.a * opacity == 0.\n ) discard;\n gl_FragColor = interpColor * opacity;\n}\n"]),c=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n gl_FragColor = vec4(pickGroup, pickId.bgr);\n}"]),u=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],f={vertex:a,fragment:l,attributes:u},p={vertex:o,fragment:l,attributes:u},d={vertex:s,fragment:l,attributes:u},h={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,p)},r.createProject=function(t){return v(t,d)},r.createPickPerspective=function(t){return v(t,h)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{"gl-shader":132,glslify:231}],128:[function(t,e,r){"use strict";var n=t("is-string-blank"),i=t("gl-buffer"),a=t("gl-vao"),o=t("typedarray-pool"),s=t("gl-mat4/multiply"),l=t("./lib/shaders"),c=t("./lib/glyphs"),u=t("./lib/get-simple-string"),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function d(t,e,r,n){return p(n,n,r),p(n,n,e),p(n,n,t)}function h(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t>1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new h(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=D;var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&!this.projectHasAlpha)return!0;return!1};var y=[0,0],b=[0,0,0],x=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],k=f.slice(),T=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t){for(var e=M,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}function O(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,p=r.projection||f,h=e.axesBounds,g=C(e.clipBounds);i=e.axes&&e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=p,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m<3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=k,M=0;M<16;++M)v[M]=0;for(M=0;M<4;++M)v[5*M]=1;v[5*m]=0,i[m]<0?v[12+m]=h[0][m]:v[12+m]=h[1][m],s(v,c,v),l.model=v;var O=(m+1)%3,L=(m+2)%3,I=A(b),P=A(x);I[O]=1,P[L]=1;var D=d(p,u,c,S(_,I)),R=d(p,u,c,S(w,P));if(Math.abs(D[1])>Math.abs(R[1])){var z=D;D=R,R=z,z=I,I=P,P=z;var N=O;O=L,L=N}D[0]<0&&(I[O]=-1),R[1]>0&&(P[L]=-1);var F=0,B=0;for(M=0;M<4;++M)F+=Math.pow(c[4*O+M],2),B+=Math.pow(c[4*L+M],2);I[O]/=Math.sqrt(F),P[L]/=Math.sqrt(B),l.axes[0]=I,l.axes[1]=P,l.fragClipBounds[0]=E(T,g[0],m,-1e8),l.fragClipBounds[1]=E(T,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth>0&&(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&&O(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth>0&&(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if("perspective"in(t=t||{})&&(this.useOrtho=!t.perspective),"orthographic"in t&&(this.useOrtho=!!t.orthographic),"lineWidth"in t&&(this.lineWidth=t.lineWidth),"project"in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if("projectScale"in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,"projectOpacity"in t){Array.isArray(t.projectOpacity)?this.projectOpacity=t.projectOpacity.slice():(r=+t.projectOpacity,this.projectOpacity=[r,r,r]);for(var n=0;n<3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in t&&(this.opacity=g(t.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||"normal",c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else for(i=[],a=[],n=0;n0){var I=0,D=b,R=[0,0,0,1],z=[0,0,0,1],N=Array.isArray(d)&&Array.isArray(d[0]),F=Array.isArray(v)&&Array.isArray(v[0]);t:for(n=0;n<_;++n){for(y+=1,w=s[n],k=0;k<3;++k){if(isNaN(w[k])||!isFinite(w[k]))continue t;f[k]=Math.max(f[k],w[k]),u[k]=Math.min(u[k],w[k])}T=(B=P(p,n,l,this.pixelRatio)).mesh,M=B.lines,A=B.bounds;var B,j=B.visible;if(j)if(Array.isArray(d)){if(3===(U=N?n0?1-A[0][0]:W<0?1+A[1][0]:1,Y*=Y>0?1-A[0][1]:Y<0?1+A[1][1]:1],Z=T.cells||[],K=T.positions||[];for(k=0;k0){var v=r*u;o.drawBox(f-v,p-v,d+v,p+v,a),o.drawBox(f-v,h-v,d+v,h+v,a),o.drawBox(f-v,p-v,f+v,h+v,a),o.drawBox(d-v,p-v,d+v,h+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{"./lib/shaders":129,"gl-buffer":78,"gl-shader":132}],131:[function(t,e,r){"use strict";e.exports=f;var n=t("gl-fbo"),i=t("typedarray-pool"),a=t("ndarray"),o=t("bit-twiddle").nextPow2,s=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;lthis.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;ar)for(t=r;te)for(t=e;t=0){for(var k=0|w.type.charAt(w.type.length-1),T=new Array(k),M=0;M=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){p.program=o.program(d,p._vref,p._fref,x,_);for(var t=0;t=0){if((h=p.charCodeAt(p.length-1)-48)<2||h>4)throw new n("","Invalid data type for attribute "+f+": "+p);s(t,e,d[0],i,h,a,f)}else{if(!(p.indexOf("mat")>=0))throw new n("","Unknown data type for attribute "+f+": "+p);var h;if((h=p.charCodeAt(p.length-1)-48)<2||h>4)throw new n("","Invalid data type for attribute "+f+": "+p);l(t,e,d,i,h,a,f)}}}return a}},{"./GLError":133}],135:[function(t,e,r){"use strict";var n=t("./reflect"),i=t("./GLError");function a(t){return function(){return t}}function o(t,e){for(var r=new Array(t),n=0;n4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+y);t["uniformMatrix"+v+"fv"](s[f],!1,p);break}throw new i("","Unknown uniform data type for "+name+": "+y)}if((v=y.charCodeAt(y.length-1)-48)<2||v>4)throw new i("","Invalid data type");switch(y.charAt(0)){case"b":case"i":t["uniform"+v+"iv"](s[f],p);break;case"v":t["uniform"+v+"fv"](s[f],p);break;default:throw new i("","Unrecognized data type for vector "+name+": "+y)}}}}}}function u(t,e){if("object"!==typeof e)return[[t,e]];var r=[];for(var n in e){var i=e[n],a=t;parseInt(n)+""===n?a+="["+n+"]":a+="."+n,"object"===typeof i?r.push.apply(r,u(a,i)):r.push([a,i])}return r}function f(t){switch(t){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":case"float":return 0;default:var e=t.indexOf("vec");if(0<=e&&e<=1&&t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)<2||r>4)throw new i("","Invalid data type");return"b"===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf("mat")&&4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)<2||r>4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+t);return o(r*r,0)}throw new i("","Unknown uniform data type for "+name+": "+t)}}function p(t,e,n){if("object"===typeof n){var i=d(n);Object.defineProperty(t,e,{get:a(i),set:c(n),enumerable:!0,configurable:!1})}else s[n]?Object.defineProperty(t,e,{get:l(n),set:c(n),enumerable:!0,configurable:!1}):t[e]=f(r[n].type)}function d(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l1)for(var l=0;l 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),a=n(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=n(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n gl_Position = projection * view * tubePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=n(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},{glslify:231}],143:[function(t,e,r){"use strict";var n=t("gl-vec3"),i=t("gl-vec4"),a=["xyz","xzy","yxz","yzx","zxy","zyx"],o=function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],p=[],d=[],h=[],g=0,m=0,v=i.create(),y=i.create(),b=8,x=0;x0)for(T=0;Te)return r-1}return r},c=function(t,e,r){return tr?r:t},u=function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],s=t[1],u=t[2],f=a[0].length,p=a[1].length,d=a[2].length,h=l(a[0],o),g=l(a[1],s),m=l(a[2],u),v=h+1,y=g+1,b=m+1;if(h=c(h,0,f-1),v=c(v,0,f-1),g=c(g,0,p-1),y=c(y,0,p-1),m=c(m,0,d-1),b=c(b,0,d-1),h<0||g<0||m<0||v>f-1||y>p-1||b>d-1)return n.create();var x,_,w,k,T,M,A=a[0][h],S=a[0][v],E=a[1][g],C=a[1][y],O=a[2][m],L=(o-A)/(S-A),I=(s-E)/(C-E),P=(u-O)/(a[2][b]-O);switch(isFinite(L)||(L=.5),isFinite(I)||(I=.5),isFinite(P)||(P=.5),r.reversedX&&(h=f-1-h,v=f-1-v),r.reversedY&&(g=p-1-g,y=p-1-y),r.reversedZ&&(m=d-1-m,b=d-1-b),r.filled){case 5:T=m,M=b,w=g*d,k=y*d,x=h*d*p,_=v*d*p;break;case 4:T=m,M=b,x=h*d,_=v*d,w=g*d*f,k=y*d*f;break;case 3:w=g,k=y,T=m*p,M=b*p,x=h*p*d,_=v*p*d;break;case 2:w=g,k=y,x=h*p,_=v*p,T=m*p*f,M=b*p*f;break;case 1:x=h,_=v,T=m*f,M=b*f,w=g*f*d,k=y*f*d;break;default:x=h,_=v,w=g*f,k=y*f,T=m*f*p,M=b*f*p}var D=i[x+w+T],R=i[x+w+M],z=i[x+k+T],N=i[x+k+M],F=i[_+w+T],B=i[_+w+M],j=i[_+k+T],U=i[_+k+M],V=n.create(),H=n.create(),q=n.create(),G=n.create();n.lerp(V,D,F,L),n.lerp(H,R,B,L),n.lerp(q,z,j,L),n.lerp(G,N,U,L);var W=n.create(),Y=n.create();n.lerp(W,V,q,I),n.lerp(Y,H,G,I);var X=n.create();return n.lerp(X,W,Y,P),X},f=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;nb||rx||n_)},k=10*n.distance(e[0],e[1])/i,T=k*k,M=1,A=0,S=r.length;S>1&&(M=p(r));for(var E=0;EA&&(A=z),D.push(z),g.push({points:O,velocities:L,divergences:D});for(var N=0;N<100*i&&O.lengthT&&n.scale(F,F,k/Math.sqrt(B)),n.add(F,F,C),I=d(F),n.squaredDistance(P,F)-T>-1e-4*T&&(O.push(F),P=F,L.push(I),R=h(F,I),z=n.length(R),isFinite(z)&&z>A&&(A=z),D.push(z)),C=F}}var j=s(g,t.colormap,A,M);return l?j.tubeScale=l:(0===A&&(A=1),j.tubeScale=.5*o*M/A),j};var d=t("./lib/shaders"),h=t("gl-cone3d").createMesh;e.exports.createTubeMesh=function(t,e){return h(t,e,{shaders:d,traceType:"streamtube"})}},{"./lib/shaders":142,"gl-cone3d":79,"gl-vec3":169,"gl-vec4":205}],144:[function(t,e,r){var n=t("gl-shader"),i=t("glslify"),a=i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n vec4 clipPosition = projection * view * worldPosition;\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]),o=i(["precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness) {\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n if (\n kill > 0.0 ||\n vColor.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n ) discard;\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n //decide how to interpolate color \u2014 in vertex or in fragment\n vec4 surfaceColor =\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n step(.5, vertexColor) * vColor;\n\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n"]),s=i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n worldCoordinate = objectOffset + dataCoordinate;\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n vec4 clipPosition = projection * view * worldPosition;\n clipPosition.z += zOffset;\n\n gl_Position = clipPosition;\n value = f + objectOffset.z;\n kill = -1.0;\n planeCoordinate = uv.zw;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n"]),l=i(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if ((kill > 0.0) ||\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n"]);r.createShader=function(t){var e=n(t,a,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{"gl-shader":132,glslify:231}],145:[function(t,e,r){"use strict";e.exports=V;var n=t("bit-twiddle"),i=t("gl-buffer"),a=t("gl-vao"),o=t("gl-texture2d"),s=t("typedarray-pool"),l=t("colormap"),c=t("ndarray-ops"),u=t("ndarray-pack"),f=t("ndarray"),p=t("surface-nets"),d=t("gl-mat4/multiply"),h=t("gl-mat4/invert"),g=t("binary-search-bounds"),m=t("ndarray-gradient"),v=t("./lib/shaders"),y=v.createShader,b=v.createContourShader,x=v.createPickShader,_=v.createPickContourShader,w=40,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],M=[[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 A(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t<3;++t){var e=M[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();var S=256;function E(t,e,r,n,i,a,o,l,c,u,p,d,h,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=p,this._contourVAO=d,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new A([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=h,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var C=E.prototype;function O(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;rt&&r>0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}C.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:S,format:"rgba"}).map((function(t,n){var i=e?O(n/255,e):t[3];return i<1&&(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},C.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},C.isOpaque=function(){return!this.isTransparent()},C.pickSlots=1,C.setPickBase=function(t){this.pickId=t};var L=[0,0,0],I={showSurface:!1,showContour:!1,projections:[k.slice(),k.slice(),k.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function P(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||L,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=I.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],d(l,t.model,l);var c=I.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return I.showSurface=o,I.showContour=s,I}var D={model:k,view:k,projection:k,inverseModel:k.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},R=k.slice(),z=[1,0,0,0,1,0,0,0,1];function N(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=D;n.model=t.model||k,n.view=t.view||k,n.projection=t.projection||k,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=h(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=R;for(d(s,n.view,n.model),d(s,n.projection,s),h(s,s),i=0;i<3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i<3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){var c=s[12+i];for(o=0;o<3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=P(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var p=this._contourVAO;for(p.bind(),i=0;i<3;++i)for(f.uniforms.permutation=M[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var f=u?a:1-a,p=0;p<2;++p)for(var d=i+u,h=s+p,m=f*(p?l:1-l),v=0;v<3;++v)c[v]+=this._field[v].get(d,h)*m;for(var y=this._pickResult.level,b=0;b<3;++b)if(y[b]=g.le(this.contourLevels[b],c[b]),y[b]<0)this.contourLevels[b].length>0&&(y[b]=0);else if(y[b]Math.abs(_-c[b])&&(y[b]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v<3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},C.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},C.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in t&&(this.contourWidth=B(t.contourWidth,Number)),"showContour"in t&&(this.showContour=B(t.showContour,Boolean)),"showSurface"in t&&(this.showSurface=!!t.showSurface),"contourTint"in t&&(this.contourTint=B(t.contourTint,Boolean)),"contourColor"in t&&(this.contourColor=U(t.contourColor)),"contourProject"in t&&(this.contourProject=B(t.contourProject,(function(t){return B(t,Boolean)}))),"surfaceProject"in t&&(this.surfaceProject=t.surfaceProject),"dynamicColor"in t&&(this.dynamicColor=U(t.dynamicColor)),"dynamicTint"in t&&(this.dynamicTint=B(t.dynamicTint,Number)),"dynamicWidth"in t&&(this.dynamicWidth=B(t.dynamicWidth,Number)),"opacity"in t&&(this.opacity=t.opacity),"opacityscale"in t&&(this.opacityscale=t.opacityscale),"colorBounds"in t&&(this.colorBounds=t.colorBounds),"vertexColor"in t&&(this.vertexColor=t.vertexColor?1:0),"colormap"in t&&this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in t||"coords"in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error("gl-surface: invalid coordinates for x/y");for(o=0;o<2;++o){var c=l[o];for(v=0;v<2;++v)if(c.shape[v]!==a[v])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error("gl-surface: invalid ticks");for(o=0;o<2;++o){var d=u[o];if((Array.isArray(d)||d.length)&&(d=f(d)),d.shape[0]!==a[o])throw new Error("gl-surface: invalid tick length");var h=f(d.data,a);h.stride[o]=d.stride[0],h.stride[1^o]=0,this.padField(this._field[o],h)}}else{for(o=0;o<2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v0){for(var bt=0;bt<5;++bt)$.pop();j-=1}continue t}$.push(nt[0],nt[1],ot[0],ot[1],nt[2]),j+=1}}rt.push(j)}this._contourOffsets[Q]=et,this._contourCounts[Q]=rt}var xt=s.mallocFloat($.length);for(o=0;o<$.length;++o)xt[o]=$[o];this._contourBuffer.update(xt),s.freeFloat(xt)}},C.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t<3;++t)s.freeFloat(this._field[t].data)},C.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e<3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e<3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&&r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o<3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],d=this._field[c],h=p(u,r[o]),g=h.cells,m=h.positions;for(this._dynamicOffsets[o]=n,e=0;ei||r<0||r>i)throw new Error("gl-texture2d: Invalid texture size");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function d(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var h=d.prototype;function g(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function m(t,e,r,o,s,l,c,u){var p=u.dtype,d=u.shape.slice();if(d.length<2||d.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var h=0,m=0,v=g(d,u.stride.slice());if("float32"===p?h=t.FLOAT:"float64"===p?(h=t.FLOAT,v=!1,p="float32"):"uint8"===p?h=t.UNSIGNED_BYTE:(h=t.UNSIGNED_BYTE,v=!1,p="uint8"),2===d.length)m=t.LUMINANCE,d=[d[0],d[1],1],u=n(u.data,d,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==d.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===d[2])m=t.ALPHA;else if(2===d[2])m=t.LUMINANCE_ALPHA;else if(3===d[2])m=t.RGB;else{if(4!==d[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");m=t.RGBA}d[2]}if(m!==t.LUMINANCE&&m!==t.ALPHA||s!==t.LUMINANCE&&s!==t.ALPHA||(m=s),m!==s)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=u.size,b=c.indexOf(o)<0;if(b&&c.push(o),h===l&&v)0===u.offset&&u.data.length===y?b?t.texImage2D(t.TEXTURE_2D,o,s,d[0],d[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,d[0],d[1],s,l,u.data):b?t.texImage2D(t.TEXTURE_2D,o,s,d[0],d[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,d[0],d[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var x;x=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(x,d,[d[2],d[2]*d[0],1]);h===t.FLOAT&&l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),b?t.texImage2D(t.TEXTURE_2D,o,s,d[0],d[1],0,s,l,x.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,d[0],d[1],s,l,x.subarray(0,y)),l===t.FLOAT?a.freeFloat32(x):a.freeUint8(x)}}function v(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function y(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error("gl-texture2d: Invalid texture shape");if(i===t.FLOAT&&!t.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var o=v(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new d(t,o,e,r,n,i)}function b(t,e,r,n,i,a){var o=v(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new d(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]<0||o[0]>s||o[1]<0||o[1]>s)throw new Error("gl-texture2d: Invalid texture size");var l=g(o,e.stride.slice()),c=0;"float32"===r?c=t.FLOAT:"float64"===r?(c=t.FLOAT,l=!1,r="float32"):"uint8"===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r="uint8");var u,p,h=0;if(2===o.length)h=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===o[2])h=t.ALPHA;else if(2===o[2])h=t.LUMINANCE_ALPHA;else if(3===o[2])h=t.RGB;else{if(4!==o[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");h=t.RGBA}}c!==t.FLOAT||t.getExtension("OES_texture_float")||(c=t.UNSIGNED_BYTE,l=!1);var m=e.size;if(l)u=0===e.offset&&e.data.length===m?e.data:e.data.subarray(e.offset,e.offset+m);else{var y=[o[2],o[2]*o[0],1];p=a.malloc(m,r);var b=n(p,o,y,0);"float32"!==r&&"float64"!==r||c!==t.UNSIGNED_BYTE?i.assign(b,e):f(b,e),u=p.subarray(0,m)}var x=v(t);return t.texImage2D(t.TEXTURE_2D,0,h,o[0],o[1],0,h,c,u),l||a.free(p),new d(t,x,o[0],o[1],h,c)}function _(t){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(o||c(t),"number"===typeof arguments[1])return y(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return y(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if("object"===typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return b(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&&e.data&&e.stride)return x(t,e)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}Object.defineProperties(h,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension("OES_texture_float_linear")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error("gl-texture2d: Unknown filter mode "+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension("OES_texture_float_linear")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error("gl-texture2d: Unknown filter mode "+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension("EXT_texture_filter_anisotropic");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var e=0;e<2;++e)if(l.indexOf(t[e])<0)throw new Error("gl-texture2d: Unknown wrap mode "+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error("gl-texture2d: Invalid texture shape")}else t=[0|t,0|t];return p(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return p(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,p(this,this._shape[0],t),t}}}),h.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},h.dispose=function(){this.gl.deleteTexture(this.handle)},h.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},h.setPixels=function(t,e,r,n){var i=this.gl;this.bind(),Array.isArray(e)?(n=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),n=n||0;var a=u(t)?t:t.raw;if(a)this._mipLevels.indexOf(n)<0?(i.texImage2D(i.TEXTURE_2D,0,this.format,this.format,this.type,a),this._mipLevels.push(n)):i.texSubImage2D(i.TEXTURE_2D,n,e,r,this.format,this.type,a);else{if(!(t.shape&&t.stride&&t.data))throw new Error("gl-texture2d: Unsupported data type");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>n||r+t.shape[0]>this._shape[0]>>>n||e<0||r<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");m(i,e,r,n,this.format,this.type,this._mipLevels,t)}}},{ndarray:259,"ndarray-ops":254,"typedarray-pool":308}],147:[function(t,e,r){"use strict";function n(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error("gl-vao: Too many vertex attributes");for(var i=0;i1?0:Math.acos(s)}},{"./dot":162,"./fromValues":168,"./normalize":179}],153:[function(t,e,r){function n(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}e.exports=n},{}],154:[function(t,e,r){function n(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}e.exports=n},{}],155:[function(t,e,r){function n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}e.exports=n},{}],156:[function(t,e,r){function n(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}e.exports=n},{}],157:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}e.exports=n},{}],158:[function(t,e,r){e.exports=t("./distance")},{"./distance":159}],159:[function(t,e,r){function n(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}e.exports=n},{}],160:[function(t,e,r){e.exports=t("./divide")},{"./divide":161}],161:[function(t,e,r){function n(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}e.exports=n},{}],162:[function(t,e,r){function n(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.exports=n},{}],163:[function(t,e,r){e.exports=1e-6},{}],164:[function(t,e,r){e.exports=i;var n=t("./epsilon");function i(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n*Math.max(1,Math.abs(a),Math.abs(l))}},{"./epsilon":163}],165:[function(t,e,r){function n(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}e.exports=n},{}],166:[function(t,e,r){function n(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}e.exports=n},{}],167:[function(t,e,r){e.exports=i;var n=t("./create")();function i(t,e,r,i,a,o){var s,l;for(e||(e=3),r||(r=0),l=i?Math.min(i*e+r,t.length):t.length,s=r;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}e.exports=n},{}],180:[function(t,e,r){function n(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}e.exports=n},{}],181:[function(t,e,r){function n(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}e.exports=n},{}],182:[function(t,e,r){function n(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}e.exports=n},{}],183:[function(t,e,r){function n(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}e.exports=n},{}],184:[function(t,e,r){function n(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}e.exports=n},{}],185:[function(t,e,r){function n(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}e.exports=n},{}],186:[function(t,e,r){function n(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}e.exports=n},{}],187:[function(t,e,r){function n(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}e.exports=n},{}],188:[function(t,e,r){e.exports=t("./squaredDistance")},{"./squaredDistance":190}],189:[function(t,e,r){e.exports=t("./squaredLength")},{"./squaredLength":191}],190:[function(t,e,r){function n(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}e.exports=n},{}],191:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}e.exports=n},{}],192:[function(t,e,r){e.exports=t("./subtract")},{"./subtract":193}],193:[function(t,e,r){function n(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}e.exports=n},{}],194:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}e.exports=n},{}],195:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}e.exports=n},{}],196:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,p=c*a+o*i-s*n,d=-o*n-s*i-l*a;return t[0]=u*c+d*-o+f*-l-p*-s,t[1]=f*c+d*-s+p*-o-u*-l,t[2]=p*c+d*-l+u*-s-f*-o,t}e.exports=n},{}],197:[function(t,e,r){function n(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}e.exports=n},{}],198:[function(t,e,r){function n(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}e.exports=n},{}],199:[function(t,e,r){function n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}e.exports=n},{}],200:[function(t,e,r){function n(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}e.exports=n},{}],201:[function(t,e,r){function n(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}e.exports=n},{}],202:[function(t,e,r){function n(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}e.exports=n},{}],203:[function(t,e,r){function n(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}e.exports=n},{}],204:[function(t,e,r){function n(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}e.exports=n},{}],205:[function(t,e,r){e.exports={create:t("./create"),clone:t("./clone"),fromValues:t("./fromValues"),copy:t("./copy"),set:t("./set"),add:t("./add"),subtract:t("./subtract"),multiply:t("./multiply"),divide:t("./divide"),min:t("./min"),max:t("./max"),scale:t("./scale"),scaleAndAdd:t("./scaleAndAdd"),distance:t("./distance"),squaredDistance:t("./squaredDistance"),length:t("./length"),squaredLength:t("./squaredLength"),negate:t("./negate"),inverse:t("./inverse"),normalize:t("./normalize"),dot:t("./dot"),lerp:t("./lerp"),random:t("./random"),transformMat4:t("./transformMat4"),transformQuat:t("./transformQuat")}},{"./add":197,"./clone":198,"./copy":199,"./create":200,"./distance":201,"./divide":202,"./dot":203,"./fromValues":204,"./inverse":206,"./length":207,"./lerp":208,"./max":209,"./min":210,"./multiply":211,"./negate":212,"./normalize":213,"./random":214,"./scale":215,"./scaleAndAdd":216,"./set":217,"./squaredDistance":218,"./squaredLength":219,"./subtract":220,"./transformMat4":221,"./transformQuat":222}],206:[function(t,e,r){function n(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}e.exports=n},{}],207:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}e.exports=n},{}],208:[function(t,e,r){function n(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}e.exports=n},{}],209:[function(t,e,r){function n(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}e.exports=n},{}],210:[function(t,e,r){function n(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}e.exports=n},{}],211:[function(t,e,r){function n(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}e.exports=n},{}],212:[function(t,e,r){function n(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}e.exports=n},{}],213:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o),t}e.exports=n},{}],214:[function(t,e,r){var n=t("./normalize"),i=t("./scale");function a(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}e.exports=a},{"./normalize":213,"./scale":215}],215:[function(t,e,r){function n(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}e.exports=n},{}],216:[function(t,e,r){function n(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}e.exports=n},{}],217:[function(t,e,r){function n(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}e.exports=n},{}],218:[function(t,e,r){function n(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}e.exports=n},{}],219:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}e.exports=n},{}],220:[function(t,e,r){function n(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}e.exports=n},{}],221:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}e.exports=n},{}],222:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,p=c*a+o*i-s*n,d=-o*n-s*i-l*a;return t[0]=u*c+d*-o+f*-l-p*-s,t[1]=f*c+d*-s+p*-o-u*-l,t[2]=p*c+d*-l+u*-s-f*-o,t[3]=e[3],t}e.exports=n},{}],223:[function(t,e,r){var n=t("glsl-tokenizer"),i=t("atob-lite");function a(t){for(var e=Array.isArray(t)?t:n(t),r=0;r0)continue;r=t.slice(0,1).join("")}return B(r),L+=r.length,(S=S.slice(r.length)).length}}function Z(){return/[^a-fA-F0-9]/.test(e)?(B(S.join("")),A=l,T):(S.push(e),r=e,T+1)}function K(){return"."===e||/[eE]/.test(e)?(S.push(e),A=g,r=e,T+1):"x"===e&&1===S.length&&"0"===S[0]?(A=_,S.push(e),r=e,T+1):/[^\d]/.test(e)?(B(S.join("")),A=l,T):(S.push(e),r=e,T+1)}function J(){return"f"===e&&(S.push(e),r=e,T+=1),/[eE]/.test(e)?(S.push(e),r=e,T+1):("-"!==e&&"+"!==e||!/[eE]/.test(r))&&/[^\d]/.test(e)?(B(S.join("")),A=l,T):(S.push(e),r=e,T+1)}function $(){if(/[^\d\w_]/.test(e)){var t=S.join("");return A=F[t]?y:N[t]?v:m,B(S.join("")),A=l,T}return S.push(e),r=e,T+1}}},{"./lib/builtins":226,"./lib/builtins-300es":225,"./lib/literals":228,"./lib/literals-300es":227,"./lib/operators":229}],225:[function(t,e,r){var n=t("./builtins");n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},{"./builtins":226}],226:[function(t,e,r){e.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},{}],227:[function(t,e,r){var n=t("./literals");e.exports=n.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},{"./literals":228}],228:[function(t,e,r){e.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},{}],229:[function(t,e,r){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},{}],230:[function(t,e,r){var n=t("./index");function i(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}e.exports=i},{"./index":224}],231:[function(t,e,r){e.exports=function(t){"string"===typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n0;)for(var s=(t=o.pop()).adjacent,l=0;l<=r;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-n)){for(var u=c.vertices,f=0;f<=r;++f){var p=u[f];i[f]=p<0?e:a[p]}var d=this.orient();if(d>0)return c;c.lastVisited=-n,0===d&&o.push(c)}}return null},p.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=n;++u)a[u]=i[l[u]];for(s.lastVisited=r,u=0;u<=n;++u){var f=c[u];if(!(f.lastVisited>=r)){var p=a[u];a[u]=t;var d=this.orient();if(a[u]=p,d<0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},p.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var p=[];f.length>0;){var d=(e=f.pop()).vertices,h=e.adjacent,g=d.indexOf(r);if(!(g<0))for(var m=0;m<=n;++m)if(m!==g){var v=h[m];if(v.boundary&&!(v.lastVisited>=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var b=0,x=0;x<=n;++x)y[x]<0?(b=x,l[x]=t):l[x]=i[y[x]];if(this.orient()>0){y[b]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=d.slice(),k=h.slice(),T=new a(w,k,!0);u.push(T);var M=_.indexOf(e);if(!(M<0))for(_[M]=T,k[g]=v,w[m]=-1,k[m]=e,h[m]=T,T.flip(),x=0;x<=n;++x){var A=w[x];if(!(A<0||A===r)){for(var S=new Array(n-1),E=0,C=0;C<=n;++C){var O=w[C];O<0||C===x||(S[E++]=O)}p.push(new o(S,T,x))}}}}}for(p.sort(s),m=0;m+1=0?o[l++]=s[u]:c=1&u;if(c===(1&t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{"robust-orientation":284,"simplicial-complex":293}],234:[function(t,e,r){"use strict";var n=t("binary-search-bounds"),i=0,a=1,o=2;function s(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=w;var l=s.prototype;function c(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function u(t,e){var r=b(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function f(t,e){var r=t.intervals([]);r.push(e),u(t,r)}function p(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?i:(r.splice(n,1),u(t,r),a)}function d(t,e,r){for(var n=0;n=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function g(t,e){for(var r=0;r>1],i=[],a=[],o=[];for(r=0;r3*(e+1)?f(this,t):this.left.insert(t):this.left=b([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?f(this,t):this.right.insert(t):this.right=b([t]);else{var r=n.ge(this.leftPoints,t,v),i=n.ge(this.rightPoints,t,y);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},l.remove=function(t){var e=this.count-this.leftPoints;if(t[1]3*(e-1)?p(this,t):(u=this.left.remove(t))===o?(this.left=null,this.count-=1,a):(u===a&&(this.count-=1),u):i;if(t[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?p(this,t):(u=this.right.remove(t))===o?(this.right=null,this.count-=1,a):(u===a&&(this.count-=1),u):i;if(1===this.count)return this.leftPoints[0]===t?o:i;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var r=this,s=this.left;s.right;)r=s,s=s.right;if(r===this)s.right=this.right;else{var l=this.left,u=this.right;r.count-=s.count,r.right=s.left,s.left=l,s.right=u}c(this,s),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?c(this,this.left):c(this,this.right);return a}for(l=n.ge(this.leftPoints,t,v);lthis.mid?this.right&&(r=this.right.queryPoint(t,e))?r:h(this.rightPoints,t,e):g(this.leftPoints,e);var r},l.queryInterval=function(t,e,r){var n;return tthis.mid&&this.right&&(n=this.right.queryInterval(t,e,r))?n:ethis.mid?h(this.rightPoints,t,r):g(this.leftPoints,r)};var _=x.prototype;function w(t){return t&&0!==t.length?new x(b(t)):new x(null)}_.insert=function(t){this.root?this.root.insert(t):this.root=new s(t[0],null,null,[t],[t])},_.remove=function(t){if(this.root){var e=this.root.remove(t);return e===o&&(this.root=null),e!==i}return!1},_.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},_.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(_,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(_,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},{"binary-search-bounds":31}],235:[function(t,e,r){"use strict";function n(t){for(var e=new Array(t),r=0;r1&&-1!==e.indexOf("Macintosh")&&-1!==e.indexOf("Safari")&&(r=!0),r}},{}],239:[function(t,e,r){"use strict";e.exports=function(t){for(var e,r=t.length,n=0;n13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],240:[function(t,e,r){function n(t,e,r){return t*(1-r)+e*r}e.exports=n},{}],241:[function(t,e,r){var n=t("./normalize"),i=t("gl-mat4/create"),a=t("gl-mat4/clone"),o=t("gl-mat4/determinant"),s=t("gl-mat4/invert"),l=t("gl-mat4/transpose"),c={length:t("gl-vec3/length"),normalize:t("gl-vec3/normalize"),dot:t("gl-vec3/dot"),cross:t("gl-vec3/cross")},u=i(),f=i(),p=[0,0,0,0],d=[[0,0,0],[0,0,0],[0,0,0]],h=[0,0,0];function g(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}function m(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function v(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,y,b){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),y||(y=[0,0,0,1]),b||(b=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)<1e-8))return!1;var x=u[3],_=u[7],w=u[11],k=u[12],T=u[13],M=u[14],A=u[15];if(0!==x||0!==_||0!==w){if(p[0]=x,p[1]=_,p[2]=w,p[3]=A,!s(f,f))return!1;l(f,f),g(y,p,f)}else y[0]=y[1]=y[2]=0,y[3]=1;if(e[0]=k,e[1]=T,e[2]=M,m(d,u),r[0]=c.length(d[0]),c.normalize(d[0],d[0]),i[0]=c.dot(d[0],d[1]),v(d[1],d[1],d[0],1,-i[0]),r[1]=c.length(d[1]),c.normalize(d[1],d[1]),i[0]/=r[1],i[1]=c.dot(d[0],d[2]),v(d[2],d[2],d[0],1,-i[1]),i[2]=c.dot(d[1],d[2]),v(d[2],d[2],d[1],1,-i[2]),r[2]=c.length(d[2]),c.normalize(d[2],d[2]),i[1]/=r[2],i[2]/=r[2],c.cross(h,d[1],d[2]),c.dot(d[0],h)<0)for(var S=0;S<3;S++)r[S]*=-1,d[S][0]*=-1,d[S][1]*=-1,d[S][2]*=-1;return b[0]=.5*Math.sqrt(Math.max(1+d[0][0]-d[1][1]-d[2][2],0)),b[1]=.5*Math.sqrt(Math.max(1-d[0][0]+d[1][1]-d[2][2],0)),b[2]=.5*Math.sqrt(Math.max(1-d[0][0]-d[1][1]+d[2][2],0)),b[3]=.5*Math.sqrt(Math.max(1+d[0][0]+d[1][1]+d[2][2],0)),d[2][1]>d[1][2]&&(b[0]=-b[0]),d[0][2]>d[2][0]&&(b[1]=-b[1]),d[1][0]>d[0][1]&&(b[2]=-b[2]),!0}},{"./normalize":242,"gl-mat4/clone":92,"gl-mat4/create":93,"gl-mat4/determinant":94,"gl-mat4/invert":98,"gl-mat4/transpose":109,"gl-vec3/cross":157,"gl-vec3/dot":162,"gl-vec3/length":172,"gl-vec3/normalize":179}],242:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},{}],243:[function(t,e,r){var n=t("gl-vec3/lerp"),i=t("mat4-recompose"),a=t("mat4-decompose"),o=t("gl-mat4/determinant"),s=t("quat-slerp"),l=p(),c=p(),u=p();function f(t,e,r,f){if(0===o(e)||0===o(r))return!1;var p=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),d=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!p||!d)&&(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}function p(){return{translate:d(),scale:d(1),skew:d(),perspective:h(),quaternion:h()}}function d(t){return[t||0,t||0,t||0]}function h(){return[0,0,0,1]}e.exports=f},{"gl-mat4/determinant":94,"gl-vec3/lerp":173,"mat4-decompose":241,"mat4-recompose":244,"quat-slerp":271}],244:[function(t,e,r){var n={identity:t("gl-mat4/identity"),translate:t("gl-mat4/translate"),multiply:t("gl-mat4/multiply"),create:t("gl-mat4/create"),scale:t("gl-mat4/scale"),fromRotationTranslation:t("gl-mat4/fromRotationTranslation")},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{"gl-mat4/create":93,"gl-mat4/fromRotationTranslation":96,"gl-mat4/identity":97,"gl-mat4/multiply":100,"gl-mat4/scale":107,"gl-mat4/translate":108}],245:[function(t,e,r){"use strict";var n=t("binary-search-bounds"),i=t("mat4-interpolate"),a=t("gl-mat4/invert"),o=t("gl-mat4/rotateX"),s=t("gl-mat4/rotateY"),l=t("gl-mat4/rotateZ"),c=t("gl-mat4/lookAt"),u=t("gl-mat4/translate"),f=(t("gl-mat4/scale"),t("gl-vec3/normalize")),p=[0,0,0];function d(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=m;var h=d.prototype;h.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r<0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c<16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],p=(l=16*r,this.prevMatrix),d=!0;for(c=0;c<16;++c)p[c]=s[l++];var h=this.nextMatrix;for(c=0;c<16;++c)h[c]=s[l++],d=d&&p[c]===h[c];if(u<1e-6||d)for(c=0;c<16;++c)o[c]=p[c];else i(o,p,h,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var b=this.computedCenter,x=Math.exp(this.computedRadius[0]);for(c=0;c<3;++c)b[c]=v[c]-o[2+4*c]*x}},h.idle=function(t){if(!(t1&&n(t[o[u-2]],t[o[u-1]],c)<=0;)u-=1,o.pop();for(o.push(l),u=s.length;u>1&&n(t[s[u-2]],t[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,p=(i=0,o.length);i0;--d)r[f++]=s[d];return r}},{"robust-orientation":284}],247:[function(t,e,r){"use strict";e.exports=i;var n=t("mouse-event");function i(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return"altKey"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),"shiftKey"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),"ctrlKey"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),"metaKey"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);"buttons"in s&&(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&&(r=0|t,i=c||0,a=u||0,e&&e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function p(t){l(t)&&e&&e(r,i,a,o)}function d(t){0===n.buttons(t)?c(0,t):c(r,t)}function h(t){c(r|n.buttons(t),t)}function g(t){c(r&~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener("mousemove",d),t.addEventListener("mousedown",h),t.addEventListener("mouseup",g),t.addEventListener("mouseleave",u),t.addEventListener("mouseenter",u),t.addEventListener("mouseout",u),t.addEventListener("mouseover",u),t.addEventListener("blur",f),t.addEventListener("keyup",p),t.addEventListener("keydown",p),t.addEventListener("keypress",p),t!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",p),window.addEventListener("keydown",p),window.addEventListener("keypress",p)))}function v(){s&&(s=!1,t.removeEventListener("mousemove",d),t.removeEventListener("mousedown",h),t.removeEventListener("mouseup",g),t.removeEventListener("mouseleave",u),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseout",u),t.removeEventListener("mouseover",u),t.removeEventListener("blur",f),t.removeEventListener("keyup",p),t.removeEventListener("keydown",p),t.removeEventListener("keypress",p),t!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",p),window.removeEventListener("keydown",p),window.removeEventListener("keypress",p)))}m();var y={element:t};return Object.defineProperties(y,{enabled:{get:function(){return s},set:function(t){t?m():v()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),y}},{"mouse-event":249}],248:[function(t,e,r){var n={left:0,top:0};function i(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var n=t.clientX||0,i=t.clientY||0,o=a(e);return r[0]=n-o.left,r[1]=i-o.top,r}function a(t){return t===window||t===document||t===document.body?n:t.getBoundingClientRect()}e.exports=i},{}],249:[function(t,e,r){"use strict";function n(t){if("object"===typeof t){if("buttons"in t)return t.buttons;if("which"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<=0)return 1<0){if(A=1,C[L++]=r(p[m],o,s,l),m+=k,u>0)for(M=1,c=p[m],I=C[L]=r(c,o,s,l),R=C[L+P],F=C[L+z],U=C[L+B],I===R&&I===F&&I===U||(y=p[m+v],x=p[m+b],w=p[m+_],t(M,A,c,y,x,w,I,R,F,U,o,s,l),V=O[L]=S++),L+=1,m+=k,M=2;M0)for(M=1,c=p[m],I=C[L]=r(c,o,s,l),R=C[L+P],F=C[L+z],U=C[L+B],I===R&&I===F&&I===U||(y=p[m+v],x=p[m+b],w=p[m+_],t(M,A,c,y,x,w,I,R,F,U,o,s,l),V=O[L]=S++,U!==F&&e(O[L+z],V,x,w,F,U,o,s,l)),L+=1,m+=k,M=2;M0){if(M=1,C[L++]=r(p[m],o,s,l),m+=k,f>0)for(A=1,c=p[m],I=C[L]=r(c,o,s,l),F=C[L+z],R=C[L+P],U=C[L+B],I===F&&I===R&&I===U||(y=p[m+v],x=p[m+b],w=p[m+_],t(M,A,c,y,x,w,I,F,R,U,o,s,l),V=O[L]=S++),L+=1,m+=k,A=2;A0)for(A=1,c=p[m],I=C[L]=r(c,o,s,l),F=C[L+z],R=C[L+P],U=C[L+B],I===F&&I===R&&I===U||(y=p[m+v],x=p[m+b],w=p[m+_],t(M,A,c,y,x,w,I,F,R,U,o,s,l),V=O[L]=S++,U!==F&&e(O[L+z],V,w,y,U,F,o,s,l)),L+=1,m+=k,A=2;A 0"),"function"!==typeof t.vertex&&e("Must specify vertex creation function"),"function"!==typeof t.cell&&e("Must specify cell creation function"),"function"!==typeof t.phase&&e("Must specify phase function");for(var o=t.getters||[],s=new Array(n),l=0;l=0?s[l]=!0:s[l]=!1;return a(t.vertex,t.cell,t.phase,i,r,s)}},{"typedarray-pool":308}],252:[function(t,e,r){"use strict";var n=t("dup"),i={zero:function(t,e,r,n){var i=t[0];n|=0;var a=0,o=r[0];for(a=0;a2&&a[1]>2&&n(i.pick(-1,-1).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,0).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,1).lo(1,1).hi(a[0]-2,a[1]-2)),a[1]>2&&(r(i.pick(0,-1).lo(1).hi(a[1]-2),t.pick(0,-1,1).lo(1).hi(a[1]-2)),e(t.pick(0,-1,0).lo(1).hi(a[1]-2))),a[1]>2&&(r(i.pick(a[0]-1,-1).lo(1).hi(a[1]-2),t.pick(a[0]-1,-1,1).lo(1).hi(a[1]-2)),e(t.pick(a[0]-1,-1,0).lo(1).hi(a[1]-2))),a[0]>2&&(r(i.pick(-1,0).lo(1).hi(a[0]-2),t.pick(-1,0,0).lo(1).hi(a[0]-2)),e(t.pick(-1,0,1).lo(1).hi(a[0]-2))),a[0]>2&&(r(i.pick(-1,a[1]-1).lo(1).hi(a[0]-2),t.pick(-1,a[1]-1,0).lo(1).hi(a[0]-2)),e(t.pick(-1,a[1]-1,1).lo(1).hi(a[0]-2))),t.set(0,0,0,0),t.set(0,0,1,0),t.set(a[0]-1,0,0,0),t.set(a[0]-1,0,1,0),t.set(0,a[1]-1,0,0),t.set(0,a[1]-1,1,0),t.set(a[0]-1,a[1]-1,0,0),t.set(a[0]-1,a[1]-1,1,0),t}}function g(t){var e=t.join();if(a=u[e])return a;for(var r=t.length,n=[f,p],i=1;i<=r;++i)n.push(d(i));var a=h.apply(void 0,n);return u[e]=a,a}e.exports=function(t,e,r){return Array.isArray(r)||(r=n(e.dimension,"string"===typeof r?r:"clamp")),0===e.size?t:0===e.dimension?(t.set(0),t):g(r)(t,e)}},{dup:65}],253:[function(t,e,r){"use strict";function n(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r0;){b<64?(l=b,b=0):(l=64,b-=64);for(var x=0|t[1];x>0;){x<64?(c=x,x=0):(c=64,x-=64),n=v+b*f+x*p,o=y+b*h+x*g;var _=0,w=0,k=0,T=d,M=f-u*d,A=p-l*f,S=m,E=h-u*m,C=g-l*h;for(k=0;k0;){g<64?(l=g,g=0):(l=64,g-=64);for(var m=0|t[0];m>0;){m<64?(s=m,m=0):(s=64,m-=64),n=d+g*u+m*c,o=h+g*p+m*f;var v=0,y=0,b=u,x=c-l*u,_=p,w=f-l*p;for(y=0;y0;){y<64?(c=y,y=0):(c=64,y-=64);for(var b=0|t[0];b>0;){b<64?(s=b,b=0):(s=64,b-=64);for(var x=0|t[1];x>0;){x<64?(l=x,x=0):(l=64,x-=64),n=m+y*p+b*u+x*f,o=v+y*g+b*d+x*h;var _=0,w=0,k=0,T=p,M=u-c*p,A=f-s*u,S=g,E=d-c*g,C=h-s*d;for(k=0;kr;){v=0,y=g-o;e:for(m=0;mx)break e;y+=f,v+=p}for(v=g,y=g-o,m=0;m>1,q=H-j,G=H+j,W=U,Y=q,X=H,Z=G,K=V,J=i+1,$=a-1,Q=!0,tt=0,et=0,rt=0,nt=f,it=e(nt),at=e(nt);M=l*W,A=l*Y,B=s;t:for(T=0;T0){m=W,W=Y,Y=m;break t}if(rt<0)break t;B+=d}M=l*Z,A=l*K,B=s;t:for(T=0;T0){m=Z,Z=K,K=m;break t}if(rt<0)break t;B+=d}M=l*W,A=l*X,B=s;t:for(T=0;T0){m=W,W=X,X=m;break t}if(rt<0)break t;B+=d}M=l*Y,A=l*X,B=s;t:for(T=0;T0){m=Y,Y=X,X=m;break t}if(rt<0)break t;B+=d}M=l*W,A=l*Z,B=s;t:for(T=0;T0){m=W,W=Z,Z=m;break t}if(rt<0)break t;B+=d}M=l*X,A=l*Z,B=s;t:for(T=0;T0){m=X,X=Z,Z=m;break t}if(rt<0)break t;B+=d}M=l*Y,A=l*K,B=s;t:for(T=0;T0){m=Y,Y=K,K=m;break t}if(rt<0)break t;B+=d}M=l*Y,A=l*X,B=s;t:for(T=0;T0){m=Y,Y=X,X=m;break t}if(rt<0)break t;B+=d}M=l*Z,A=l*K,B=s;t:for(T=0;T0){m=Z,Z=K,K=m;break t}if(rt<0)break t;B+=d}for(M=l*W,A=l*Y,S=l*X,E=l*Z,C=l*K,O=l*U,L=l*H,I=l*V,F=0,B=s,T=0;T0)){if(rt<0){for(M=l*x,A=l*J,S=l*$,B=s,T=0;T0)for(;;){for(_=s+$*l,F=0,T=0;T0)){for(_=s+$*l,F=0,T=0;TV){t:for(;;){for(_=s+J*l,F=0,B=s,T=0;T1&&n?o(r,n[0],n[1]):o(r)}var c={"uint32,1,0":function(t,e){return function(r){var n=r.data,i=0|r.offset,a=r.shape,o=r.stride,s=0|o[0],l=0|a[0],c=0|o[1],u=0|a[1],f=c,p=c,d=1;l<=32?t(0,l-1,n,i,s,c,l,u,f,p,d):e(0,l-1,n,i,s,c,l,u,f,p,d)}}};function u(t,e){var r=[e,t].join(","),n=c[r],i=o(t,e);return n(i,l(t,e,i))}e.exports=u},{"typedarray-pool":308}],258:[function(t,e,r){"use strict";var n=t("./lib/compile_sort.js"),i={};function a(t){var e=t.order,r=t.dtype,a=[e,r].join(":"),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}e.exports=a},{"./lib/compile_sort.js":257}],259:[function(t,e,r){var n=t("is-buffer"),i="undefined"!==typeof Float64Array;function a(t,e){return t[0]-e[0]}function o(){var t,e=this.stride,r=new Array(e.length);for(t=0;t=0&&(e+=a*(r=0|t),i-=r),new n(this.data,i,a,e)},i.step=function(t){var e=this.shape[0],r=this.stride[0],i=this.offset,a=0,o=Math.ceil;return"number"===typeof t&&((a=0|t)<0?(i+=r*(e-1),e=o(-e/a)):e=o(e/a),r*=a),new n(this.data,e,r,i)},i.transpose=function(t){t=void 0===t?0:0|t;var e=this.shape,r=this.stride;return new n(this.data,e[t],r[t],this.offset)},i.pick=function(t){var r=[],n=[],i=this.offset;return"number"===typeof t&&t>=0?i=i+this.stride[0]*t|0:(r.push(this.shape[0]),n.push(this.stride[0])),(0,e[r.length+1])(this.data,r,n,i)},function(t,e,r,i){return new n(t,e[0],r[0],i)}},2:function(t,e,r){function n(t,e,r,n,i,a){this.data=t,this.shape=[e,r],this.stride=[n,i],this.offset=0|a}var i=n.prototype;return i.dtype=t,i.dimension=2,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(i,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),i.set=function(e,r,n){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r,n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]=n},i.get=function(e,r){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]},i.index=function(t,e){return this.offset+this.stride[0]*t+this.stride[1]*e},i.hi=function(t,e){return new n(this.data,"number"!==typeof t||t<0?this.shape[0]:0|t,"number"!==typeof e||e<0?this.shape[1]:0|e,this.stride[0],this.stride[1],this.offset)},i.lo=function(t,e){var r=this.offset,i=0,a=this.shape[0],o=this.shape[1],s=this.stride[0],l=this.stride[1];return"number"===typeof t&&t>=0&&(r+=s*(i=0|t),a-=i),"number"===typeof e&&e>=0&&(r+=l*(i=0|e),o-=i),new n(this.data,a,o,s,l,r)},i.step=function(t,e){var r=this.shape[0],i=this.shape[1],a=this.stride[0],o=this.stride[1],s=this.offset,l=0,c=Math.ceil;return"number"===typeof t&&((l=0|t)<0?(s+=a*(r-1),r=c(-r/l)):r=c(r/l),a*=l),"number"===typeof e&&((l=0|e)<0?(s+=o*(i-1),i=c(-i/l)):i=c(i/l),o*=l),new n(this.data,r,i,a,o,s)},i.transpose=function(t,e){t=void 0===t?0:0|t,e=void 0===e?1:0|e;var r=this.shape,i=this.stride;return new n(this.data,r[t],r[e],i[t],i[e],this.offset)},i.pick=function(t,r){var n=[],i=[],a=this.offset;return"number"===typeof t&&t>=0?a=a+this.stride[0]*t|0:(n.push(this.shape[0]),i.push(this.stride[0])),"number"===typeof r&&r>=0?a=a+this.stride[1]*r|0:(n.push(this.shape[1]),i.push(this.stride[1])),(0,e[n.length+1])(this.data,n,i,a)},function(t,e,r,i){return new n(t,e[0],e[1],r[0],r[1],i)}},3:function(t,e,r){function n(t,e,r,n,i,a,o,s){this.data=t,this.shape=[e,r,n],this.stride=[i,a,o],this.offset=0|s}var i=n.prototype;return i.dtype=t,i.dimension=3,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(i,"order",{get:function(){var t=Math.abs(this.stride[0]),e=Math.abs(this.stride[1]),r=Math.abs(this.stride[2]);return t>e?e>r?[2,1,0]:t>r?[1,2,0]:[1,0,2]:t>r?[2,0,1]:r>e?[0,1,2]:[0,2,1]}}),i.set=function(e,r,n,i){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n,i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]=i},i.get=function(e,r,n){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]},i.index=function(t,e,r){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r},i.hi=function(t,e,r){return new n(this.data,"number"!==typeof t||t<0?this.shape[0]:0|t,"number"!==typeof e||e<0?this.shape[1]:0|e,"number"!==typeof r||r<0?this.shape[2]:0|r,this.stride[0],this.stride[1],this.stride[2],this.offset)},i.lo=function(t,e,r){var i=this.offset,a=0,o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.stride[0],u=this.stride[1],f=this.stride[2];return"number"===typeof t&&t>=0&&(i+=c*(a=0|t),o-=a),"number"===typeof e&&e>=0&&(i+=u*(a=0|e),s-=a),"number"===typeof r&&r>=0&&(i+=f*(a=0|r),l-=a),new n(this.data,o,s,l,c,u,f,i)},i.step=function(t,e,r){var i=this.shape[0],a=this.shape[1],o=this.shape[2],s=this.stride[0],l=this.stride[1],c=this.stride[2],u=this.offset,f=0,p=Math.ceil;return"number"===typeof t&&((f=0|t)<0?(u+=s*(i-1),i=p(-i/f)):i=p(i/f),s*=f),"number"===typeof e&&((f=0|e)<0?(u+=l*(a-1),a=p(-a/f)):a=p(a/f),l*=f),"number"===typeof r&&((f=0|r)<0?(u+=c*(o-1),o=p(-o/f)):o=p(o/f),c*=f),new n(this.data,i,a,o,s,l,c,u)},i.transpose=function(t,e,r){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r;var i=this.shape,a=this.stride;return new n(this.data,i[t],i[e],i[r],a[t],a[e],a[r],this.offset)},i.pick=function(t,r,n){var i=[],a=[],o=this.offset;return"number"===typeof t&&t>=0?o=o+this.stride[0]*t|0:(i.push(this.shape[0]),a.push(this.stride[0])),"number"===typeof r&&r>=0?o=o+this.stride[1]*r|0:(i.push(this.shape[1]),a.push(this.stride[1])),"number"===typeof n&&n>=0?o=o+this.stride[2]*n|0:(i.push(this.shape[2]),a.push(this.stride[2])),(0,e[i.length+1])(this.data,i,a,o)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],r[0],r[1],r[2],i)}},4:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,c){this.data=t,this.shape=[e,r,n,i],this.stride=[a,o,s,l],this.offset=0|c}var i=n.prototype;return i.dtype=t,i.dimension=4,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(e,r,n,i,a){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i,a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]=a},i.get=function(e,r,n,i){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]},i.index=function(t,e,r,n){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n},i.hi=function(t,e,r,i){return new n(this.data,"number"!==typeof t||t<0?this.shape[0]:0|t,"number"!==typeof e||e<0?this.shape[1]:0|e,"number"!==typeof r||r<0?this.shape[2]:0|r,"number"!==typeof i||i<0?this.shape[3]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},i.lo=function(t,e,r,i){var a=this.offset,o=0,s=this.shape[0],l=this.shape[1],c=this.shape[2],u=this.shape[3],f=this.stride[0],p=this.stride[1],d=this.stride[2],h=this.stride[3];return"number"===typeof t&&t>=0&&(a+=f*(o=0|t),s-=o),"number"===typeof e&&e>=0&&(a+=p*(o=0|e),l-=o),"number"===typeof r&&r>=0&&(a+=d*(o=0|r),c-=o),"number"===typeof i&&i>=0&&(a+=h*(o=0|i),u-=o),new n(this.data,s,l,c,u,f,p,d,h,a)},i.step=function(t,e,r,i){var a=this.shape[0],o=this.shape[1],s=this.shape[2],l=this.shape[3],c=this.stride[0],u=this.stride[1],f=this.stride[2],p=this.stride[3],d=this.offset,h=0,g=Math.ceil;return"number"===typeof t&&((h=0|t)<0?(d+=c*(a-1),a=g(-a/h)):a=g(a/h),c*=h),"number"===typeof e&&((h=0|e)<0?(d+=u*(o-1),o=g(-o/h)):o=g(o/h),u*=h),"number"===typeof r&&((h=0|r)<0?(d+=f*(s-1),s=g(-s/h)):s=g(s/h),f*=h),"number"===typeof i&&((h=0|i)<0?(d+=p*(l-1),l=g(-l/h)):l=g(l/h),p*=h),new n(this.data,a,o,s,l,c,u,f,p,d)},i.transpose=function(t,e,r,i){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i;var a=this.shape,o=this.stride;return new n(this.data,a[t],a[e],a[r],a[i],o[t],o[e],o[r],o[i],this.offset)},i.pick=function(t,r,n,i){var a=[],o=[],s=this.offset;return"number"===typeof t&&t>=0?s=s+this.stride[0]*t|0:(a.push(this.shape[0]),o.push(this.stride[0])),"number"===typeof r&&r>=0?s=s+this.stride[1]*r|0:(a.push(this.shape[1]),o.push(this.stride[1])),"number"===typeof n&&n>=0?s=s+this.stride[2]*n|0:(a.push(this.shape[2]),o.push(this.stride[2])),"number"===typeof i&&i>=0?s=s+this.stride[3]*i|0:(a.push(this.shape[3]),o.push(this.stride[3])),(0,e[a.length+1])(this.data,a,o,s)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],r[0],r[1],r[2],r[3],i)}},5:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,c,u,f){this.data=t,this.shape=[e,r,n,i,a],this.stride=[o,s,l,c,u],this.offset=0|f}var i=n.prototype;return i.dtype=t,i.dimension=5,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(e,r,n,i,a,o){return"generic"===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a,o):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]=o},i.get=function(e,r,n,i,a){return"generic"===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]},i.index=function(t,e,r,n,i){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n+this.stride[4]*i},i.hi=function(t,e,r,i,a){return new n(this.data,"number"!==typeof t||t<0?this.shape[0]:0|t,"number"!==typeof e||e<0?this.shape[1]:0|e,"number"!==typeof r||r<0?this.shape[2]:0|r,"number"!==typeof i||i<0?this.shape[3]:0|i,"number"!==typeof a||a<0?this.shape[4]:0|a,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},i.lo=function(t,e,r,i,a){var o=this.offset,s=0,l=this.shape[0],c=this.shape[1],u=this.shape[2],f=this.shape[3],p=this.shape[4],d=this.stride[0],h=this.stride[1],g=this.stride[2],m=this.stride[3],v=this.stride[4];return"number"===typeof t&&t>=0&&(o+=d*(s=0|t),l-=s),"number"===typeof e&&e>=0&&(o+=h*(s=0|e),c-=s),"number"===typeof r&&r>=0&&(o+=g*(s=0|r),u-=s),"number"===typeof i&&i>=0&&(o+=m*(s=0|i),f-=s),"number"===typeof a&&a>=0&&(o+=v*(s=0|a),p-=s),new n(this.data,l,c,u,f,p,d,h,g,m,v,o)},i.step=function(t,e,r,i,a){var o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.shape[3],u=this.shape[4],f=this.stride[0],p=this.stride[1],d=this.stride[2],h=this.stride[3],g=this.stride[4],m=this.offset,v=0,y=Math.ceil;return"number"===typeof t&&((v=0|t)<0?(m+=f*(o-1),o=y(-o/v)):o=y(o/v),f*=v),"number"===typeof e&&((v=0|e)<0?(m+=p*(s-1),s=y(-s/v)):s=y(s/v),p*=v),"number"===typeof r&&((v=0|r)<0?(m+=d*(l-1),l=y(-l/v)):l=y(l/v),d*=v),"number"===typeof i&&((v=0|i)<0?(m+=h*(c-1),c=y(-c/v)):c=y(c/v),h*=v),"number"===typeof a&&((v=0|a)<0?(m+=g*(u-1),u=y(-u/v)):u=y(u/v),g*=v),new n(this.data,o,s,l,c,u,f,p,d,h,g,m)},i.transpose=function(t,e,r,i,a){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i,a=void 0===a?4:0|a;var o=this.shape,s=this.stride;return new n(this.data,o[t],o[e],o[r],o[i],o[a],s[t],s[e],s[r],s[i],s[a],this.offset)},i.pick=function(t,r,n,i,a){var o=[],s=[],l=this.offset;return"number"===typeof t&&t>=0?l=l+this.stride[0]*t|0:(o.push(this.shape[0]),s.push(this.stride[0])),"number"===typeof r&&r>=0?l=l+this.stride[1]*r|0:(o.push(this.shape[1]),s.push(this.stride[1])),"number"===typeof n&&n>=0?l=l+this.stride[2]*n|0:(o.push(this.shape[2]),s.push(this.stride[2])),"number"===typeof i&&i>=0?l=l+this.stride[3]*i|0:(o.push(this.shape[3]),s.push(this.stride[3])),"number"===typeof a&&a>=0?l=l+this.stride[4]*a|0:(o.push(this.shape[4]),s.push(this.stride[4])),(0,e[o.length+1])(this.data,o,s,l)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],e[4],r[0],r[1],r[2],r[3],r[4],i)}}};function l(t,e){var r=-1===e?"T":String(e),n=s[r];return-1===e?n(t):0===e?n(t,u[t][0]):n(t,u[t],o)}function c(t){if(n(t))return"buffer";if(i)switch(Object.prototype.toString.call(t)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(t)?"array":"generic"}var u={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function f(t,e,r,n){if(void 0===t)return(0,u.array[0])([]);"number"===typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var i=e.length;if(void 0===r){r=new Array(i);for(var a=i-1,o=1;a>=0;--a)r[a]=o,o*=e[a]}if(void 0===n)for(n=0,a=0;a>>0;function o(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e<0?-i:i;var r=n.hi(t),o=n.lo(t);return e>t===t>0?o===a?(r+=1,o=0):o+=1:0===o?(o=a,r-=1):o-=1,n.pack(o,r)}e.exports=o},{"double-bits":64}],261:[function(t,e,r){var n=1e-6,i=1e-6;r.vertexNormals=function(t,e,r){for(var i=e.length,a=new Array(i),o=void 0===r?n:r,s=0;so){var _=a[u],w=1/Math.sqrt(v*b);for(x=0;x<3;++x){var k=(x+1)%3,T=(x+2)%3;_[x]+=w*(y[k]*m[T]-y[T]*m[k])}}}for(s=0;so)for(w=1/Math.sqrt(M),x=0;x<3;++x)_[x]*=w;else for(x=0;x<3;++x)_[x]=0}return a},r.faceNormals=function(t,e,r){for(var n=t.length,a=new Array(n),o=void 0===r?i:r,s=0;so?1/Math.sqrt(h):0,u=0;u<3;++u)d[u]*=h;a[s]=d}return a}},{}],262:[function(t,e,r){"use strict";function n(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f>0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var p=Math.max(e,a,c);f=Math.sqrt(2*p-u+1),e>=p?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a>=p?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}e.exports=n},{}],263:[function(t,e,r){"use strict";e.exports=d;var n=t("filtered-vector"),i=t("gl-mat4/lookAt"),a=t("gl-mat4/fromQuat"),o=t("gl-mat4/invert"),s=t("./lib/quatFromFrame");function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o>1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var p=f.prototype;function d(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));return i.setDistanceLimits(t.zoomMin,t.zoomMax),("eye"in t||"up"in t)&&i.lookAt(0,t.eye,t.center,t.up),i}p.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},p.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var c=0,f=0;f<3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},p.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},p.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],p=i[8],d=u*a+f*o+p*s,h=l(u-=a*d,f-=o*d,p-=s*d);u/=h,f/=h,p/=h;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,b=g*u+m*f+v*p,x=l(g-=y*a+b*u,m-=y*o+b*f,v-=y*s+b*p);g/=x,m/=x,v/=x;var _=u*e+a*r,w=f*e+o*r,k=p*e+s*r;this.center.move(t,_,w,k);var T=Math.exp(this.computedRadius[0]);T=Math.max(1e-4,T+n),this.radius.set(t,Math.log(T))},p.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],p=i[9],d=i[2],h=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*p,b=-(h*y-g*v),x=-(g*m-d*y),_=-(d*v-h*m),w=Math.sqrt(Math.max(0,1-Math.pow(b,2)-Math.pow(x,2)-Math.pow(_,2))),k=c(b,x,_,w);k>1e-6?(b/=k,x/=k,_/=k,w/=k):(b=x=_=0,w=1);var T=this.computedRotation,M=T[0],A=T[1],S=T[2],E=T[3],C=M*w+E*b+A*_-S*x,O=A*w+E*x+S*b-M*_,L=S*w+E*_+M*x-A*b,I=E*w-M*b-A*x-S*_;if(n){b=d,x=h,_=g;var P=Math.sin(n)/l(b,x,_);b*=P,x*=P,_*=P,I=I*(w=Math.cos(e))-(C=C*w+I*b+O*_-L*x)*b-(O=O*w+I*x+L*b-C*_)*x-(L=L*w+I*_+C*x-O*b)*_}var D=c(C,O,L,I);D>1e-6?(C/=D,O/=D,L/=D,I/=D):(C=O=L=0,I=1),this.rotation.set(t,C,O,L,I)},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)>1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},p.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{"./lib/quatFromFrame":262,"filtered-vector":68,"gl-mat4/fromQuat":95,"gl-mat4/invert":98,"gl-mat4/lookAt":99}],264:[function(t,e,r){"use strict";var n=t("repeat-string");e.exports=function(t,e,r){return n(r="undefined"!==typeof r?r+"":" ",e)+t}},{"repeat-string":277}],265:[function(t,e,r){e.exports=function(t,e){e||(e=[0,""]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",e}},{}],266:[function(t,e,r){"use strict";e.exports=i;var n=t("compare-angle");function i(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f<2;++f)for(var p=a[f][r],d=0;d0&&(o=h,s=g,l=f)}return i||o&&c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,p=o[1],d=u(l,f,!0);if(n(e[l],e[f],e[p],e[d])<0)break;o.push(t),s=u(l,f)}return o}function p(t,e){return e[1]===e[e.length-1]}for(o=0;o0;){a[0][o].length;var g=f(o,d);p(h,g)?h.push.apply(h,g):(h.length>0&&l.push(h),h=g)}h.length>0&&l.push(h)}return l}},{"compare-angle":54}],267:[function(t,e,r){"use strict";e.exports=i;var n=t("edges-to-adjacency-list");function i(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s0;){i[d=o.pop()]=!1;var c=r[d];for(s=0;s0}var m=(h=h.filter(g)).length,v=new Array(m),y=new Array(m);for(d=0;d0;){var j=N.pop(),U=C[j];l(U,(function(t,e){return t-e}));var V,H=U.length,q=F[j];for(0===q&&(V=[G=h[j]]),d=0;d=0||(F[W]=1^q,N.push(W),0===q&&(z(G=h[W])||(G.reverse(),V.push(G))))}0===q&&B.push(V)}return B}},{"./lib/trim-leaves":267,"edges-to-adjacency-list":66,"planar-dual":266,"point-in-big-polygon":269,"robust-sum":289,"two-product":306,uniq:310}],269:[function(t,e,r){e.exports=h;var n=t("robust-orientation")[3],i=t("slab-decomposition"),a=t("interval-tree-1d"),o=t("binary-search-bounds");function s(){return!0}function l(t){return function(e,r){var n=t[e];return!!n&&!!n.queryPoint(r,s)}}function c(t){for(var e={},r=0;r0&&e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]0))return 0;s=-1,a=a.right}else if(c>0)a=a.left;else{if(!(c<0))return 0;s=1,a=a.right}}return s}}function f(t){return 1}function p(t){return function(e){return t(e[0],e[1])?0:1}}function d(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}function h(t){for(var e=t.length,r=[],n=[],a=0;a=c?(T=1,y=c+2*p+h):y=p*(T=-p/c)+h):(T=0,d>=0?(M=0,y=h):-d>=f?(M=1,y=f+2*d+h):y=d*(M=-d/f)+h);else if(M<0)M=0,p>=0?(T=0,y=h):-p>=c?(T=1,y=c+2*p+h):y=p*(T=-p/c)+h;else{var A=1/k;y=(T*=A)*(c*T+u*(M*=A)+2*p)+M*(u*T+f*M+2*d)+h}else T<0?(x=f+d)>(b=u+p)?(_=x-b)>=(w=c-2*u+f)?(T=1,M=0,y=c+2*p+h):y=(T=_/w)*(c*T+u*(M=1-T)+2*p)+M*(u*T+f*M+2*d)+h:(T=0,x<=0?(M=1,y=f+2*d+h):d>=0?(M=0,y=h):y=d*(M=-d/f)+h):M<0?(x=c+p)>(b=u+d)?(_=x-b)>=(w=c-2*u+f)?(M=1,T=0,y=f+2*d+h):y=(T=1-(M=_/w))*(c*T+u*M+2*p)+M*(u*T+f*M+2*d)+h:(M=0,x<=0?(T=1,y=c+2*p+h):p>=0?(T=0,y=h):y=p*(T=-p/c)+h):(_=f+d-u-p)<=0?(T=0,M=1,y=f+2*d+h):_>=(w=c-2*u+f)?(T=1,M=0,y=c+2*p+h):y=(T=_/w)*(c*T+u*(M=1-T)+2*p)+M*(u*T+f*M+2*d)+h;var S=1-T-M;for(l=0;l0){var c=t[r-1];if(0===n(s,c)&&a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}e.exports=o},{"cell-orientation":47,"compare-cell":56,"compare-oriented-cell":57}],277:[function(t,e,r){"use strict";var n,i="";function a(t,e){if("string"!==typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||"undefined"===typeof n)n=t,i="";else if(i.length>=r)return i.substr(0,r);for(;r>i.length&&e>1;)1&e&&(i+=t),e>>=1,t+=t;return i=(i+=t).substr(0,r)}e.exports=a},{}],278:[function(t,e,n){(function(t){(function(){e.exports=t.performance&&t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,"undefined"!==typeof r?r:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],279:[function(t,e,r){"use strict";function n(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r;(l=(s=t[i])-((r=a+s)-a))&&(t[--n]=r,r=l)}var o=0;for(i=n;i0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=c*n;return o>=s||o<=-s?o:g(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],f=t[2]-n[2],p=e[2]-n[2],d=r[2]-n[2],h=a*c,g=o*l,v=o*s,y=i*c,b=i*l,x=a*s,_=f*(h-g)+p*(v-y)+d*(b-x),w=(Math.abs(h)+Math.abs(g))*Math.abs(f)+(Math.abs(v)+Math.abs(y))*Math.abs(p)+(Math.abs(b)+Math.abs(x))*Math.abs(d),k=u*w;return _>k||-_>k?_:m(t,e,r,n)}];function y(t){var e=v[t.length];return e||(e=v[t.length]=h(t.length)),e.apply(void 0,t)}function b(t,e,r,n,i,a,o){return function(e,r,s,l,c){switch(arguments.length){case 0:case 1:return 0;case 2:return n(e,r);case 3:return i(e,r,s);case 4:return a(e,r,s,l);case 5:return o(e,r,s,l,c)}for(var u=new Array(arguments.length),f=0;f0&&s>0||o<0&&s<0)return!1;var l=n(r,t,e),c=n(a,t,e);return!(l>0&&c>0||l<0&&c<0)&&(0!==o||0!==s||0!==l||0!==c||i(t,e,r,a))}},{"robust-orientation":284}],288:[function(t,e,r){"use strict";function n(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);return i?[i,r]:[r]}function i(t,e){var r=0|t.length,i=0|e.length;if(1===r&&1===i)return n(t[0],-e[0]);var a,o,s=new Array(r+i),l=0,c=0,u=0,f=Math.abs,p=t[c],d=f(p),h=-e[u],g=f(h);d=i?(a=p,(c+=1)=i?(a=p,(c+=1)>1,c=e[2*l+1];if(c===a)return l;a>1,c=e[2*l+1];if(c===a)return l;a>1,c=e[2*l+1];if(c===a)return l;a>1,o=l(t[a],e);o<=0?(0===o&&(i=a),r=a+1):o>0&&(n=a-1)}return i}function d(t,e){for(var r=new Array(t.length),i=0,a=r.length;i=t.length||0!==l(t[m],o)););}return r}function h(t,e){if(!e)return d(f(m(t,0)),t,0);for(var r=new Array(e),n=0;n>>c&1&&l.push(i[c]);e.push(l)}return u(e)}function m(t,e){if(e<0)return[];for(var r=[],i=(1<>1:(t>>1)-1}function b(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n0;){var r=y(t);if(!(r>=0&&e0){var t=T[0];return m(0,A-1),A-=1,b(0),t}return-1}function w(t,e){var r=T[t];return c[r]===e?t:(c[r]=-1/0,x(t),_(),c[r]=e,x((A+=1)-1))}function k(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]>=0&&(s[r]=e),l[e]>=0&&(l[e]=r),M[e]>=0&&w(M[e],g(e)),M[r]>=0&&w(M[r],g(r))}}var T=[],M=new Array(n);for(f=0;f>1;f>=0;--f)b(f);for(;;){var S=_();if(S<0||c[S]>r)break;k(S)}var E=[];for(f=0;f=0&&r>=0&&e!==r){var n=M[e],i=M[r];n!==i&&O.push([n,i])}})),i.unique(i.normalize(O)),{positions:E,edges:O}}},{"robust-orientation":284,"simplicial-complex":295}],298:[function(t,e,r){"use strict";e.exports=a;var n=t("robust-orientation");function i(t,e){var r,i,a,o;if(e[0][0]e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return lu?s-u:l-u}r=e[1],i=e[0]}t[0][1]e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return a[0]-s[0]}},{"robust-orientation":284}],299:[function(t,e,r){"use strict";e.exports=p;var n=t("binary-search-bounds"),i=t("functional-red-black-tree"),a=t("robust-orientation"),o=t("./lib/order-segments");function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}function p(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a0){var u=c(this.slabs[e-1],t);u&&(s?o(u.key,s)>0&&(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length>0){var p=n.ge(f,t[1],l);if(p=f.length)return i;d=f[p]}}if(d.start)if(s){var h=a(s[0],s[1],[t[0],d.y]);s[0][0]>s[1][0]&&(h=-h),h>0&&(i=d.index)}else i=d.index;else d.y!==t[1]&&(i=d.index)}}}return i}},{"./lib/order-segments":298,"binary-search-bounds":31,"functional-red-black-tree":69,"robust-orientation":284}],300:[function(t,e,r){"use strict";var n=t("robust-dot-product"),i=t("robust-sum");function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i<0?i=0:i>1&&(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l0||i>0&&u<0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u<0?n.push(l.slice()):u>0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}}function l(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l0||n>0&&c<0)&&r.push(o(i,c,s,n)),c>=0&&r.push(s.slice()),n=c}return r}function c(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l0||n>0&&c<0)&&r.push(o(i,c,s,n)),c<=0&&r.push(s.slice()),n=c}return r}e.exports=s,e.exports.positive=l,e.exports.negative=c},{"robust-dot-product":281,"robust-sum":289}],301:[function(e,r,n){!function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function r(t){return a(s(t),arguments)}function i(t,e){return r.apply(null,[t].concat(e||[]))}function a(t,n){var i,a,o,s,l,c,u,f,p,d=1,h=t.length,g="";for(a=0;a=0),s.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case"e":i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case"f":i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case"g":i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case"t":i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(s.type)?g+=i:(!e.number.test(s.type)||f&&!s.sign?p="":(p=f?"+":"-",i=i.toString().replace(e.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(p+i).length,l=s.width&&u>0?c.repeat(u):"",g+=s.align?p+i+l:"0"===c?p+l+i:l+p+i)}return g}var o=Object.create(null);function s(t){if(o[t])return o[t];for(var r,n=t,i=[],a=0;n;){if(null!==(r=e.text.exec(n)))i.push(r[0]);else if(null!==(r=e.modulo.exec(n)))i.push("%");else{if(null===(r=e.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(r[2]){a|=1;var s=[],l=r[2],c=[];if(null===(c=e.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=e.key_access.exec(l)))s.push(c[1]);else{if(null===(c=e.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}r[2]=s}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return o[t]=i}"undefined"!==typeof n&&(n.sprintf=r,n.vsprintf=i),"undefined"!==typeof window&&(window.sprintf=r,window.vsprintf=i,"function"===typeof t&&t.amd&&t((function(){return{sprintf:r,vsprintf:i}})))}()},{}],302:[function(t,e,r){"use strict";e.exports=c;var n=t("ndarray-extract-contour"),i=t("zero-crossings"),a={"2d":function(t,e,r){var n=t({order:e,scalarArguments:3,getters:"generic"===r?[0]:void 0,phase:function(t,e,r,n){return t>n|0},vertex:function(t,e,r,n,i,a,o,s,l,c,u,f,p){var d=(o<<0)+(s<<1)+(l<<2)+(c<<3)|0;if(0!==d&&15!==d)switch(d){case 0:case 15:u.push([t-.5,e-.5]);break;case 1:u.push([t-.25-.25*(n+r-2*p)/(r-n),e-.25-.25*(i+r-2*p)/(r-i)]);break;case 2:u.push([t-.75-.25*(-n-r+2*p)/(n-r),e-.25-.25*(a+n-2*p)/(n-a)]);break;case 3:u.push([t-.5,e-.5-.5*(i+r+a+n-4*p)/(r-i+n-a)]);break;case 4:u.push([t-.25-.25*(a+i-2*p)/(i-a),e-.75-.25*(-i-r+2*p)/(i-r)]);break;case 5:u.push([t-.5-.5*(n+r+a+i-4*p)/(r-n+i-a),e-.5]);break;case 6:u.push([t-.5-.25*(-n-r+a+i)/(n-r+i-a),e-.5-.25*(-i-r+a+n)/(i-r+n-a)]);break;case 7:u.push([t-.75-.25*(a+i-2*p)/(i-a),e-.75-.25*(a+n-2*p)/(n-a)]);break;case 8:u.push([t-.75-.25*(-a-i+2*p)/(a-i),e-.75-.25*(-a-n+2*p)/(a-n)]);break;case 9:u.push([t-.5-.25*(n+r+-a-i)/(r-n+a-i),e-.5-.25*(i+r+-a-n)/(r-i+a-n)]);break;case 10:u.push([t-.5-.5*(-n-r-a-i+4*p)/(n-r+a-i),e-.5]);break;case 11:u.push([t-.25-.25*(-a-i+2*p)/(a-i),e-.75-.25*(i+r-2*p)/(r-i)]);break;case 12:u.push([t-.5,e-.5-.5*(-i-r-a-n+4*p)/(i-r+a-n)]);break;case 13:u.push([t-.75-.25*(n+r-2*p)/(r-n),e-.25-.25*(-a-n+2*p)/(a-n)]);break;case 14:u.push([t-.25-.25*(-n-r+2*p)/(n-r),e-.25-.25*(-i-r+2*p)/(i-r)])}},cell:function(t,e,r,n,i,a,o,s,l){i?s.push([t,e]):s.push([e,t])}});return function(t,e){var r=[],i=[];return n(t,r,i,e),{positions:r,cells:i}}}};function o(t,e){var r=t.length+"d",i=a[r];if(i)return i(n,t,e)}function s(t,e){for(var r=i(t,e),n=r.length,a=new Array(n),o=new Array(n),s=0;s0&&(p+=.02);var h=new Float32Array(f),g=0,m=-.5*p;for(d=0;dMath.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l<3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l<3;++l)i[l]-=o/a*t[l];return s(i,i),i}function p(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var d=p.prototype;d.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},d.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},d.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a<3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a<3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a<3;++a)r[a]/=f;var p=this.computedToward;o(p,e,r),s(p,p);var d=Math.exp(this.computedRadius[0]),h=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(h),v=Math.sin(h),y=Math.cos(g),b=Math.sin(g),x=this.computedCenter,_=m*y,w=v*y,k=b,T=-m*b,M=-v*b,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a<3;++a){var C=_*r[a]+w*p[a]+k*e[a];E[4*a+1]=T*r[a]+M*p[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var O=E[1],L=E[5],I=E[9],P=E[2],D=E[6],R=E[10],z=L*R-I*D,N=I*P-O*R,F=O*D-L*P,B=c(z,N,F);for(z/=B,N/=B,F/=B,E[0]=z,E[4]=N,E[8]=F,a=0;a<3;++a)S[a]=x[a]+E[2+4*a]*d;for(a=0;a<3;++a){u=0;for(var j=0;j<3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},d.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var h=[0,0,0];function g(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),"eye"in t){var d=t.eye,h=[d[0]-e[0],d[1]-e[1],d[2]-e[2]];o(n,h,r),c(n[0],n[1],n[2])<1e-6?n=f(r):s(n,n),i=c(h[0],h[1],h[2]);var g=l(r,h)/i,m=l(n,h)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new p(t.zoomMin,t.zoomMax,e,r,n,i,a,u)}d.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;h[0]=i[2],h[1]=i[6],h[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];for(a(i,i,n,h),c=0;c<3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},d.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],p=i[8],d=u*a+f*o+p*s,h=c(u-=a*d,f-=o*d,p-=s*d),g=(u/=h)*e+a*r,m=(f/=h)*e+o*r,v=(p/=h)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},d.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},d.setMatrix=function(t,e,r,n){var a=1;"number"===typeof r&&(a=0|r),(a<0||a>3)&&(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var p=Math.abs(s),d=Math.abs(l),h=Math.abs(f),g=Math.max(p,d,h);p===g?(s=s<0?-1:1,l=f=0):h===g?(f=f<0?-1:1,s=l=0):(l=l<0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,b=e[o],x=e[o+4],_=e[o+8],w=b*s+x*l+_*f,k=c(b-=s*w,x-=l*w,_-=f*w),T=l*(_/=k)-f*(x/=k),M=f*(b/=k)-s*_,A=s*x-l*b,S=c(T,M,A);if(T/=S,M/=S,A/=S,this.center.jump(t,q,G,W),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,b,x,_),2===a){var E=e[1],C=e[5],O=e[9],L=E*b+C*x+O*_,I=E*T+C*M+O*A;v=z<0?-Math.PI/2:Math.PI/2,y=Math.atan2(I,L)}else{var P=e[2],D=e[6],R=e[10],z=P*s+D*l+R*f,N=P*b+D*x+R*_,F=P*T+D*M+R*A;v=Math.asin(u(z)),y=Math.atan2(F,N)}this.angle.jump(t,y,v),this.recalcMatrix(t);var B=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var H=V[15],q=V[12]/H,G=V[13]/H,W=V[14]/H,Y=Math.exp(this.computedRadius[0]);this.center.jump(t,q-B*Y,G-j*Y,W-U*Y)},d.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},d.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},d.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},d.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s<1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],p=e[2]-r[2],d=c(l,f,p);if(!(d<1e-6)){l/=d,f/=d,p/=d;var h=this.computedRight,g=h[0],m=h[1],v=h[2],y=i*g+a*m+o*v,b=c(g-=y*i,m-=y*a,v-=y*o);if(!(b<.01&&(b=c(g=a*p-o*f,m=o*l-i*p,v=i*f-a*l))<1e-6)){g/=b,m/=b,v/=b,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(d));var x=a*v-o*m,_=o*g-i*v,w=i*m-a*g,k=c(x,_,w),T=i*l+a*f+o*p,M=g*l+m*f+v*p,A=(x/=k)*l+(_/=k)*f+(w/=k)*p,S=Math.asin(u(T)),E=Math.atan2(A,M),C=this.angle._state,O=C[C.length-1],L=C[C.length-2];O%=2*Math.PI;var I=Math.abs(O+2*Math.PI-E),P=Math.abs(O-E),D=Math.abs(O-2*Math.PI-E);I0?n.pop():new ArrayBuffer(t)}function g(t){return new Uint8Array(h(t),0,t)}function m(t){return new Uint16Array(h(2*t),0,t)}function v(t){return new Uint32Array(h(4*t),0,t)}function y(t){return new Int8Array(h(t),0,t)}function b(t){return new Int16Array(h(2*t),0,t)}function x(t){return new Int32Array(h(4*t),0,t)}function _(t){return new Float32Array(h(4*t),0,t)}function w(t){return new Float64Array(h(8*t),0,t)}function k(t){return o?new Uint8ClampedArray(h(t),0,t):g(t)}function T(t){return s?new BigUint64Array(h(8*t),0,t):null}function M(t){return l?new BigInt64Array(h(8*t),0,t):null}function A(t){return new DataView(h(t),0,t)}function S(t){t=r.nextPow2(t);var e=r.log2(t),n=f[e];return n.length>0?n.pop():new a(t)}n.free=function(t){if(a.isBuffer(t))f[r.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,n=0|r.log2(e);u[n].push(t)}},n.freeUint8=n.freeUint16=n.freeUint32=n.freeBigUint64=n.freeInt8=n.freeInt16=n.freeInt32=n.freeBigInt64=n.freeFloat32=n.freeFloat=n.freeFloat64=n.freeDouble=n.freeUint8Clamped=n.freeDataView=d,n.freeArrayBuffer=p,n.freeBuffer=function(t){f[r.log2(t.length)].push(t)},n.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return h(t);switch(e){case"uint8":return g(t);case"uint16":return m(t);case"uint32":return v(t);case"int8":return y(t);case"int16":return b(t);case"int32":return x(t);case"float":case"float32":return _(t);case"double":case"float64":return w(t);case"uint8_clamped":return k(t);case"bigint64":return M(t);case"biguint64":return T(t);case"buffer":return S(t);case"data":case"dataview":return A(t);default:return null}return null},n.mallocArrayBuffer=h,n.mallocUint8=g,n.mallocUint16=m,n.mallocUint32=v,n.mallocInt8=y,n.mallocInt16=b,n.mallocInt32=x,n.mallocFloat32=n.mallocFloat=_,n.mallocFloat64=n.mallocDouble=w,n.mallocUint8Clamped=k,n.mallocBigUint64=T,n.mallocBigInt64=M,n.mallocDataView=A,n.mallocBuffer=S,n.clearCache=function(){for(var t=0;t<32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,"undefined"!==typeof r?r:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"bit-twiddle":32,buffer:3,dup:65}],309:[function(t,e,r){"use strict";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e",a="",o=i.length,s=a.length,l=e[0]===h||e[0]===v,c=0,u=-s;c>-1&&-1!==(c=r.indexOf(i,c))&&-1!==(u=r.indexOf(a,c+o))&&!(u<=c);){for(var f=c;f=u)n[f]=null,r=r.substr(0,f)+" "+r.substr(f+1);else if(null!==n[f]){var p=n[f].indexOf(e[0]);-1===p?n[f]+=e:l&&(n[f]=n[f].substr(0,p+1)+(1+parseInt(n[f][p+1]))+n[f].substr(p+2))}var d=c+o,g=r.substr(d,u-d).indexOf(i);c=-1!==g?g:u+s}return n}function x(t,e,r){for(var n=e.textAlign||"start",i=e.textBaseline||"alphabetic",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l/g,"\n"):r.replace(/\/g," ");var s="",l=[];for(k=0;k-1?parseInt(t[1+i]):0,l=a>-1?parseInt(r[1+a]):0;s!==l&&(n=n.replace(N(),"?px "),A*=Math.pow(.75,l-s),n=n.replace("?px ",N())),M+=.25*C*(l-s)}if(!0===o.superscripts){var c=t.indexOf(h),f=r.indexOf(h),d=c>-1?parseInt(t[1+c]):0,g=f>-1?parseInt(r[1+f]):0;d!==g&&(n=n.replace(N(),"?px "),A*=Math.pow(.75,g-d),n=n.replace("?px ",N())),M-=.25*C*(g-d)}if(!0===o.bolds){var m=t.indexOf(u)>-1,y=r.indexOf(u)>-1;!m&&y&&(n=b?n.replace("italic ","italic bold "):"bold "+n),m&&!y&&(n=n.replace("bold ",""))}if(!0===o.italics){var b=t.indexOf(p)>-1,x=r.indexOf(p)>-1;!b&&x&&(n="italic "+n),b&&!x&&(n=n.replace("italic ",""))}e.font=n}for(w=0;w0&&(i=n.size),n.lineSpacing&&n.lineSpacing>0&&(a=n.lineSpacing),n.styletags&&n.styletags.breaklines&&(o.breaklines=!!n.styletags.breaklines),n.styletags&&n.styletags.bolds&&(o.bolds=!!n.styletags.bolds),n.styletags&&n.styletags.italics&&(o.italics=!!n.styletags.italics),n.styletags&&n.styletags.subscripts&&(o.subscripts=!!n.styletags.subscripts),n.styletags&&n.styletags.superscripts&&(o.superscripts=!!n.styletags.superscripts)),r.font=[n.fontStyle,n.fontVariant,n.fontWeight,i+"px",n.font].filter((function(t){return t})).join(" "),r.textAlign="start",r.textBaseline="alphabetic",r.direction="ltr",T(_(e,r,t,i,a,o),n,i)}},{cdt2d:42,"clean-pslg":50,ndarray:259,"planar-graph-to-polyline":268,"simplify-planar-graph":297,"surface-nets":302}],313:[function(t,e,r){!function(){"use strict";if("undefined"===typeof ses||!ses.ok||ses.ok()){"undefined"!==typeof ses&&(ses.weakMapPermitHostObjects=m);var t=!1;if("function"===typeof WeakMap){var r=WeakMap;if("undefined"!==typeof navigator&&/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l="weakmap:",c=l+"ident:"+Math.random()+"___";if("undefined"!==typeof crypto&&"function"===typeof crypto.getRandomValues&&"function"===typeof ArrayBuffer&&"function"===typeof Uint8Array){var u=new ArrayBuffer(25),f=new Uint8Array(u);crypto.getRandomValues(f),c=l+"rand:"+Array.prototype.map.call(f,(function(t){return(t%36).toString(36)})).join("")+"___"}if(o(Object,"getOwnPropertyNames",{value:function(t){return a(t).filter(v)}}),"getPropertyNames"in Object){var p=Object.getPropertyNames;o(Object,"getPropertyNames",{value:function(t){return p(t).filter(v)}})}!function(){var t=Object.freeze;o(Object,"freeze",{value:function(e){return y(e),t(e)}});var e=Object.seal;o(Object,"seal",{value:function(t){return y(t),e(t)}});var r=Object.preventExtensions;o(Object,"preventExtensions",{value:function(t){return y(t),r(t)}})}();var d=!1,h=0,g=function t(){this instanceof t||x();var e=[],r=[],n=h++;function i(t,i){var a,o=y(t);return o?n in o?o[n]:i:(a=e.indexOf(t))>=0?r[a]:i}function a(t){var r=y(t);return r?n in r:e.indexOf(t)>=0}function o(t,i){var a,o=y(t);return o?o[n]=i:(a=e.indexOf(t))>=0?r[a]=i:(a=e.length,r[a]=i,e[a]=t),this}function s(t){var i,a,o=y(t);return o?n in o&&delete o[n]:!((i=e.indexOf(t))<0)&&(a=e.length-1,e[i]=void 0,r[i]=r[a],e[i]=e[a],e.length=a,r.length=a,!0)}return Object.create(t.prototype,{get___:{value:b(i)},has___:{value:b(a)},set___:{value:b(o)},delete___:{value:b(s)}})};g.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),"function"===typeof r?function(){function n(){this instanceof g||x();var e,n=new r,i=void 0,a=!1;function o(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}function s(t){return n.has(t)||!!i&&i.has___(t)}function l(t){var e=!!n.delete(t);return i&&i.delete___(t)||e}return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new g),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new g),i.set___(t,e)}else n.set(t,e);return this},Object.create(g.prototype,{get___:{value:b(o)},has___:{value:b(s)},set___:{value:b(e)},delete___:{value:b(l)},permitHostObjects___:{value:b((function(t){if(t!==m)throw new Error("bogus call to permitHostObjects___");a=!0}))}})}t&&"undefined"!==typeof Proxy&&(Proxy=void 0),n.prototype=g.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!==typeof Proxy&&(Proxy=void 0),e.exports=g)}function m(t){t.permitHostObjects___&&t.permitHostObjects___(m)}function v(t){return!(t.substr(0,l.length)==l&&"___"===t.substr(t.length-3))}function y(t){if(t!==Object(t))throw new TypeError("Not an object: "+t);var e=t[c];if(e&&e.key===t)return e;if(s(t)){e={key:t};try{return o(t,c,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(r){return}}}function b(t){return t.prototype=null,Object.freeze(t)}function x(){d||"undefined"===typeof console||(d=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}}()},{}],314:[function(t,e,r){var n=t("./hidden-store.js");function i(){var t={};return function(e){if(("object"!==typeof e||null===e)&&"function"!==typeof e)throw new Error("Weakmap-shim: Key must be object");var r=e.valueOf(t);return r&&r.identity===t?r:n(e,t)}}e.exports=i},{"./hidden-store.js":315}],315:[function(t,e,r){function n(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,"valueOf",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}e.exports=n},{}],316:[function(t,e,r){var n=t("./create-store.js");function i(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty("value")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return"value"in t(e)},delete:function(e){return delete t(e).value}}}e.exports=i},{"./create-store.js":314}],317:[function(t,e,r){"use strict";function n(){return function(t,e,r,n,i,a){var o=t[0],s=r[0],l=[0],c=s;n|=0;var u=0,f=s;for(u=0;u=0!==d>=0&&i.push(l[0]+.5+.5*(p+d)/(p-d)),n+=f,++l[0]}}}function i(){return n()}var a=i;function o(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=[a,o.join()].join(),l=e[s];return l||(e[s]=l=t([a,o])),l(r.shape.slice(0),r.data,r.stride,0|r.offset,n,i)}}function s(t){return o(a.bind(void 0,t))}function l(t){return s({funcName:t.funcName})}e.exports=l({funcName:"zeroCrossings"})},{}],318:[function(t,e,r){"use strict";e.exports=i;var n=t("./lib/zc-core");function i(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r}},{"./lib/zc-core":317}]},{},[6])(6)}))}).call(this)}).call(this,"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}]},{},[27])(27)}()},888:function(t,e,r){"use strict";var n=r(9047);function i(){}function a(){}a.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,a,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:i};return r.PropTypes=r,r}},2007:function(t,e,r){t.exports=r(888)()},9047:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},654:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,e.cloneElement)(t,{ref:function(t){pu(n,t),pu(r,t)}}):(0,e.cloneElement)(t,{ref:r})}var hu=function(){function t(e){var r=this;i(this,t),this.hooks=fu({dropTarget:function(t,e){r.clearDropTarget(),r.dropTargetOptions=e,su(t)?r.dropTargetRef=t:r.dropTargetNode=t,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}return o(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!ou(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}(),gu=(0,e.createContext)({dragDropManager:void 0});function mu(){var t=(0,e.useContext)(gu).dragDropManager;return lu(null!=t,"Expected drag drop context"),t}var vu=!1,yu=function(){function t(e){i(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}return o(t,[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;lu(!vu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return vu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{vu=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();var bu=function(){function t(e,r){i(this,t),this.spec=e,this.monitor=r}return o(t,[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}]),t}();function xu(t,r,n){var i=mu(),a=function(t,r){var n=(0,e.useMemo)((function(){return new bu(t,r)}),[r]);return(0,e.useEffect)((function(){n.spec=t}),[t]),n}(t,r),o=function(t){var r=t.accept;return(0,e.useMemo)((function(){return lu(null!=t.accept,"accept must be defined"),Array.isArray(r)?r:[r]}),[r])}(t);eu((function(){var t=function(t,e,r){var n=r.getRegistry(),i=n.addTarget(t,e);return[i,function(){return n.removeTarget(i)}]}(o,a,i),e=L(t,2),s=e[0],l=e[1];return r.receiveHandlerId(s),n.receiveHandlerId(s),l}),[i,r,a,n,o.map((function(t){return t.toString()})).join("|")])}function _u(t,r){var n=iu(t,r),i=function(){var t=mu();return(0,e.useMemo)((function(){return new yu(t)}),[t])}(),a=function(t){var r=mu(),n=(0,e.useMemo)((function(){return new hu(r.getBackend())}),[r]);return eu((function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}}),[t]),n}(n.options);return xu(n,i,a),[nu(n.collect,i,a),au(a)]}function wu(t){return(0,e.useMemo)((function(){return t.hooks.dragSource()}),[t])}function ku(t){return(0,e.useMemo)((function(){return t.hooks.dragPreview()}),[t])}var Tu=function(){function t(e){var r=this;i(this,t),this.hooks=fu({dragSource:function(t,e){r.clearDragSource(),r.dragSourceOptions=e||null,su(t)?r.dragSourceRef=t:r.dragSourceNode=t,r.reconnectDragSource()},dragPreview:function(t,e){r.clearDragPreview(),r.dragPreviewOptions=e||null,su(t)?r.dragPreviewRef=t:r.dragPreviewNode=t,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}return o(t,[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){var t=this.reconnectDragSource();this.reconnectDragPreview(t)}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return e&&this.disconnectDragSource(),this.handlerId?t?(e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),e):(this.lastConnectedDragSource=t,e):e}},{key:"reconnectDragPreview",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(e?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!ou(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ou(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();var Mu=!1,Au=!1,Su=function(){function t(e){i(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}return o(t,[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){lu(!Mu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Mu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Mu=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;lu(!Au,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Au=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Au=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();var Eu=function(){function t(e,r,n){i(this,t),this.spec=e,this.monitor=r,this.connector=n}return o(t,[{key:"beginDrag",value:function(){var t=this.spec,e=this.monitor,r=null;return null!==(r="object"===typeof t.item?t.item:"function"===typeof t.item?t.item(e):{})&&void 0!==r?r:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"===typeof t.canDrag?t.canDrag:"function"!==typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var r=this.spec,n=this.monitor,i=r.isDragging;return i?i(n):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,r=this.connector,n=t.end;n&&n(e.getItem(),e),r.reconnect()}}]),t}();function Cu(t,r,n){var i=mu(),a=function(t,r,n){var i=(0,e.useMemo)((function(){return new Eu(t,r,n)}),[r,n]);return(0,e.useEffect)((function(){i.spec=t}),[t]),i}(t,r,n),o=function(t){return(0,e.useMemo)((function(){var e=t.type;return lu(null!=e,"spec.type must be defined"),e}),[t])}(t);eu((function(){if(null!=o){var t=function(t,e,r){var n=r.getRegistry(),i=n.addSource(t,e);return[i,function(){return n.removeSource(i)}]}(o,a,i),e=L(t,2),s=e[0],l=e[1];return r.receiveHandlerId(s),n.receiveHandlerId(s),l}}),[i,r,n,a,o])}function Ou(t,r){var n=iu(t,r);lu(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var i=function(){var t=mu();return(0,e.useMemo)((function(){return new Su(t)}),[t])}(),a=function(t,r){var n=mu(),i=(0,e.useMemo)((function(){return new Tu(n.getBackend())}),[n]);return eu((function(){return i.dragSourceOptions=t||null,i.reconnect(),function(){return i.disconnectDragSource()}}),[i,t]),eu((function(){return i.dragPreviewOptions=r||null,i.reconnect(),function(){return i.disconnectDragPreview()}}),[i,r]),i}(n.options,n.previewOptions);return Cu(n,i,a),[nu(n.collect,i,a),wu(a),ku(a)]}var Lu=r(4164);function Iu(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Pu="function"===typeof Symbol&&Symbol.observable||"@@observable",Du=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ru={INIT:"@@redux/INIT"+Du(),REPLACE:"@@redux/REPLACE"+Du(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Du()}};function zu(t){if("object"!==typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Nu(t,e,r){var n;if("function"===typeof e&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error(Iu(0));if("function"===typeof e&&"undefined"===typeof r&&(r=e,e=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error(Iu(1));return r(Nu)(t,e)}if("function"!==typeof t)throw new Error(Iu(2));var i=t,a=e,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error(Iu(3));return a}function f(t){if("function"!==typeof t)throw new Error(Iu(4));if(l)throw new Error(Iu(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(Iu(6));e=!1,c();var r=s.indexOf(t);s.splice(r,1),o=null}}}function p(t){if(!zu(t))throw new Error(Iu(7));if("undefined"===typeof t.type)throw new Error(Iu(8));if(l)throw new Error(Iu(9));try{l=!0,a=i(a,t)}finally{l=!1}for(var e=o=s,r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,i=void 0===n||n,a=r.clientOffset,o=r.getSourceClientOffset,s=t.getMonitor(),l=t.getRegistry();t.dispatch(Xu(a)),Ju(e,s,l);var c=tf(e,s);if(null!=c){var u=null;if(a){if(!o)throw new Error("getSourceClientOffset must be defined");$u(o),u=o(c)}t.dispatch(Xu(a,u));var f=l.getSource(c),p=f.beginDrag(s,c);if(null!=p){Qu(p),l.pinSource(c);var d=l.getSourceType(c);return{type:Hu,payload:{itemType:d,item:p,sourceId:c,clientOffset:a||null,sourceClientOffset:u||null,isSourcePublic:!!i}}}}else t.dispatch(Zu)}}function Ju(t,e,r){lu(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){lu(r.getSource(t),"Expected sourceIds to be registered.")}))}function $u(t){lu("function"===typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function Qu(t){lu(ju(t),"Item must be an object.")}function tf(t,e){for(var r=null,n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function ef(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rf(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=t.getMonitor(),n=t.getRegistry();af(r);var i=sf(r);i.forEach((function(i,a){var o=of(i,a,n,r),s={type:Wu,payload:{dropResult:rf({},e,o)}};t.dispatch(s)}))}}function af(t){lu(t.isDragging(),"Cannot call drop while not dragging."),lu(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function of(t,e,r,n){var i=r.getTarget(t),a=i?i.drop(n,t):void 0;return function(t){lu("undefined"===typeof t||ju(t),"Drop result must either be an object or undefined.")}(a),"undefined"===typeof a&&(a=0===e?{}:n.getDropResult()),a}function sf(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function lf(t){return function(){var e=t.getMonitor(),r=t.getRegistry();!function(t){lu(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var n=e.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(e,n),r.unpinSource());return{type:Yu}}}function cf(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function uf(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clientOffset;ff(e);var i=e.slice(0),a=t.getMonitor(),o=t.getRegistry(),s=a.getItemType();return df(i,o,s),pf(i,a,o),hf(i,a,o),{type:Gu,payload:{targetIds:i,clientOffset:n||null}}}}function ff(t){lu(Array.isArray(t),"Expected targetIds to be an array.")}function pf(t,e,r){lu(e.isDragging(),"Cannot call hover while not dragging."),lu(!e.didDrop(),"Cannot call hover after drop.");for(var n=0;n=0;n--){var i=t[n];cf(e.getTargetType(i),r)||t.splice(n,1)}}function hf(t,e,r){t.forEach((function(t){r.getTarget(t).hover(e,t)}))}function gf(t){return function(){if(t.getMonitor().isDragging())return{type:qu}}}var mf=function(){function t(e,r){var n=this;i(this,t),this.isSetUp=!1,this.handleRefCountChange=function(){var t=n.store.getState().refCount>0;n.backend&&(t&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!t&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}return o(t,[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch;var r=function(t){return{beginDrag:Ku(t),publishDragSource:gf(t),hover:uf(t),drop:nf(t),endDrag:lf(t)}}(this);return Object.keys(r).reduce((function(n,i){var a,o=r[i];return n[i]=(a=o,function(){for(var r=arguments.length,n=new Array(r),i=0;i-1})));return n.length>0}yf.__IS_NONE__=!0,bf.__IS_ALL__=!0;var _f=function(){function t(e,r){i(this,t),this.store=e,this.registry=r}return o(t,[{key:"subscribeToStateChange",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.handlerIds;lu("function"===typeof t,"listener must be a function."),lu("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,a=function(){var r=e.store.getState(),a=r.stateId;try{a===i||a===i+1&&!xf(r.dirtyHandlerIds,n)||t()}finally{i=a}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;lu("function"===typeof t,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=e.store.getState().dragOffset;n!==r&&(r=n,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return lu(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return lu(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&(cf(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t))}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return lu(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t))}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var r=e.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(t),i=this.getItemType();if(i&&!cf(n,i))return!1;var a=this.getTargetIds();if(!a.length)return!1;var o=a.indexOf(t);return r?o===a.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(t){var e,r,n=t.clientOffset,i=t.initialClientOffset,a=t.initialSourceClientOffset;return n&&i&&a?vf((r=a,{x:(e=n).x+r.x,y:e.y+r.y}),i):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return function(t){var e=t.clientOffset,r=t.initialClientOffset;return e&&r?vf(e,r):null}(this.store.getState().dragOffset)}}]),t}(),wf="undefined"!==typeof global?global:self,kf=wf.MutationObserver||wf.WebKitMutationObserver;function Tf(t){return function(){var e=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(e),clearInterval(r),t()}}}var Mf="function"===typeof kf?function(t){var e=1,r=new kf(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}:Tf,Af=function(){function t(){var e=this;i(this,t),this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=function(){for(var t=e.queue;e.indexe.capacity){for(var n=0,i=t.length-e.index;n1&&void 0!==arguments[1]&&arguments[1];lu(this.isSourceId(t),"Expected a valid source ID.");var r=e&&t===this.pinnedSourceId,n=r?this.pinnedSource:this.dragSources.get(t);return n}},{key:"getTarget",value:function(t){return lu(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return lu(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return lu(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return Bf(t)===Lf.SOURCE}},{key:"isTargetId",value:function(t){return Bf(t)===Lf.TARGET}},{key:"removeSource",value:function(t){var e,r=this;lu(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:Df,payload:{sourceId:t}}}(t)),e=function(){r.dragSources.delete(t),r.types.delete(t)},Cf.enqueueTask(Of.create(e))}},{key:"removeTarget",value:function(t){lu(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:Rf,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);lu(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){lu(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,r){var n=Ff(t);return this.types.set(n,e),t===Lf.SOURCE?this.dragSources.set(n,r):t===Lf.TARGET&&this.dropTargets.set(n,r),n}}]),t}(),Vf=function(t,e){return t===e};function Hf(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function qf(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vf;if(t.length!==e.length)return!1;for(var n=0;n1?arguments[1]:void 0;switch(t.type){case Gu:break;case If:case Pf:case Rf:case Df:return yf;default:return bf}var e=t.payload,r=e.targetIds,n=void 0===r?[]:r,i=e.prevTargetIds,a=void 0===i?[]:i,o=Uu(n,a),s=o.length>0||!qf(n,a);if(!s)return yf;var l=a[a.length-1],c=n[n.length-1];return l!==c&&(l&&o.push(l),c&&o.push(c)),o}function Wf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yf(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:Xf,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case Vu:case Hu:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Gu:return Hf(t.clientOffset,r.clientOffset)?t:Yf({},t,{clientOffset:r.clientOffset});case Yu:case Wu:return Xf;default:return t}}function Kf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jf(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:$f,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case Hu:return Jf({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case qu:return Jf({},t,{isSourcePublic:!0});case Gu:return Jf({},t,{targetIds:r.targetIds});case Rf:return-1===t.targetIds.indexOf(r.targetId)?t:Jf({},t,{targetIds:Bu(t.targetIds,r.targetId)});case Wu:return Jf({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Yu:return Jf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function tp(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case If:case Pf:return t+1;case Df:case Rf:return t-1;default:return t}}function ep(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function rp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function np(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Gf(t.dirtyHandlerIds,{type:e.type,payload:np({},e.payload,{prevTargetIds:Fu(t,"dragOperation.targetIds",[])})}),dragOffset:Zf(t.dragOffset,e),refCount:tp(t.refCount,e),dragOperation:Qf(t.dragOperation,e),stateId:ep(t.stateId)}}function ap(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=op(n),a=new _f(i,new Uf(i)),o=new mf(i,a),s=t(o,e,r);return o.receiveBackend(s),o}function op(t){var e="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Nu(ip,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function sp(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var lp=0,cp=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),up=(0,e.memo)((function(t){var r=t.children,n=function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fp(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=e;i[cp]||(i[cp]={dragDropManager:ap(t,e,r,n)});return i[cp]}(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[e,r]}(sp(t,["children"])),i=L(n,2),a=i[0],o=i[1];return(0,e.useEffect)((function(){if(o){var t=fp();return++lp,function(){0===--lp&&(t[cp]=null)}}}),[]),(0,Xr.jsx)(gu.Provider,{value:a,children:r})}));function fp(){return"undefined"!==typeof global?global:window}function pp(t){var e=null;return function(){return null==e&&(e=t()),e}}var dp,hp=function(){function t(e){i(this,t),this.entered=[],this.isNodeInDocument=e}return o(t,[{key:"enter",value:function(t){var e=this,r=this.entered.length;return this.entered=function(t,e){var r=new Set,n=function(t){return r.add(t)};t.forEach(n),e.forEach(n);var i=[];return r.forEach((function(t){return i.push(t)})),i}(this.entered.filter((function(r){return e.isNodeInDocument(r)&&(!r.contains||r.contains(t))})),[t]),0===r&&this.entered.length>0}},{key:"leave",value:function(t){var e,r,n=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),r=t,e.filter((function(t){return t!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),t}(),gp=function(){function t(e){i(this,t),this.config=e,this.item={},this.initializeExposedProperties()}return o(t,[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){var i=e.config.exposeProperties[n];null!=i&&(r[n]={value:i(t,e.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}]),t}(),mp="__NATIVE_FILE__",vp="__NATIVE_URL__",yp="__NATIVE_TEXT__",bp="__NATIVE_HTML__";function xp(t,e,r){var n=e.reduce((function(e,r){return e||t.getData(r)}),"");return null!=n?n:r}var _p=(h(dp={},mp,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),h(dp,bp,{exposeProperties:{html:function(t,e){return xp(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),h(dp,vp,{exposeProperties:{urls:function(t,e){return xp(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),h(dp,yp,{exposeProperties:{text:function(t,e){return xp(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),dp);function wp(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(_p).filter((function(t){var r=_p[t];return!!(null===r||void 0===r?void 0:r.matchesTypes)&&r.matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}var kp=pp((function(){return/firefox/i.test(navigator.userAgent)})),Tp=pp((function(){return Boolean(window.safari)})),Mp=function(){function t(e,r){i(this,t);for(var n=e.length,a=[],o=0;ot))return r[s];c=s-1}}var f=t-e[o=Math.max(0,c)],p=f*f;return r[o]+n[o]*f+i[o]*p+a[o]*f*p}}]),t}();function Ap(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function Sp(t){return{x:t.clientX,y:t.clientY}}function Ep(t,e,r,n,i){var a=function(t){var e;return"IMG"===t.nodeName&&(kp()||!(null===(e=document.documentElement)||void 0===e?void 0:e.contains(t)))}(e),o=Ap(a?t:e),s={x:r.x-o.x,y:r.y-o.y},l=t.offsetWidth,c=t.offsetHeight,u=n.anchorX,f=n.anchorY,p=function(t,e,r,n){var i=t?e.width:r,a=t?e.height:n;return Tp()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}(a,e,l,c),d=p.dragPreviewWidth,h=p.dragPreviewHeight,g=i.offsetX,m=i.offsetY,v=0===m||m;return{x:0===g||g?g:new Mp([0,.5,1],[s.x,s.x/l*d,s.x+d-l]).interpolate(u),y:v?m:function(){var t=new Mp([0,.5,1],[s.y,s.y/c*h,s.y+h-c]).interpolate(f);return Tp()&&a&&(t+=(window.devicePixelRatio-1)*h),t}()}}var Cp=function(){function t(e,r){i(this,t),this.ownerDocument=null,this.globalContext=e,this.optionsArgs=r}return o(t,[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}},{key:"document",get:function(){var t;return(null===(t=this.globalContext)||void 0===t?void 0:t.document)?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}]),t}();function Op(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lp(t){for(var e=1;e0&&a.actions.hover(e,{clientOffset:Sp(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(t){var e;(a.dragOverTargetIds=[],a.isDraggingNativeItem())&&(null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer))},this.handleTopDragOver=function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=Sp(t),a.scheduleHover(e),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&(a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0),a.cancelHover())},this.handleTopDropCapture=function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):wp(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()},this.handleTopDrop=function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:Sp(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag(),a.cancelHover()},this.handleSelectStart=function(t){var e=t.target;"function"===typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.options=new Cp(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new hp(this.isNodeInDocument)}return o(e,[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,r){var n=this;return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,e),function(){n.sourcePreviewNodes.delete(t),n.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,r){var n=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,r);var i=function(e){return n.handleDragStart(e,t)},a=function(t){return n.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",i),e.addEventListener("selectstart",a),function(){n.sourceNodes.delete(t),n.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",i),e.removeEventListener("selectstart",a),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var r=this,n=function(e){return r.handleDragEnter(e,t)},i=function(e){return r.handleDragOver(e,t)},a=function(e){return r.handleDrop(e,t)};return e.addEventListener("dragenter",n),e.addEventListener("dragover",i),e.addEventListener("drop",a),function(){e.removeEventListener("dragenter",n),e.removeEventListener("dragover",i),e.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return Lp({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return Lp({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(t).some((function(r){return t[r]===e}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var r=_p[t];if(!r)throw new Error("native type ".concat(t," has no configuration"));var n=new gp(r);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){var t;if(this.currentDragSourceNode=null,this.rootElement)null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}]),e}(),Pp=function(t,e,r){return new Ip(t,e,r)};function Dp(t,e){t.forEach((function(t){t.hasOwnProperty("columns")?Dp(t.columns,e):e.push(t.id)}))}function Rp(t){var e=t.header,r=t.table,n=r.getState,i=r.setColumnOrder,a=n().columnOrder,o=e.column,s=_u({accept:"column",drop:function(t){var e=function(t,e,r){return r.splice(r.indexOf(e),0,r.splice(r.indexOf(t),1)[0]),ta(r)}(t.id,o.id,a);i(e)},collect:function(t){return{isOver:t.isOver()}}}),l=L(s,2),c=l[0].isOver,u=l[1],f=L(Ou({collect:function(t){return{isDragging:t.isDragging()}},item:function(){return o},type:"column"}),3),p=f[0].isDragging,d=f[1],h=f[2],g=[];return e.column.getCanSort()||g.push("header-unsortable"),e.isPlaceholder?g.push("placeholder"):g.push("no-placeholder"),c&&g.push("is-over"),(0,Xr.jsx)("th",{"aria-sort":"none",ref:u,style:{opacity:p?.5:1},colSpan:e.colSpan,className:g.join(" "),children:(0,Xr.jsx)("div",{ref:h,children:e.isPlaceholder?null:e.column.getCanSort()?(0,Xr.jsx)("button",{className:"bx--table-sort"+(e.column.getIsSorted()?" bx--table-sort--active":""),onClick:e.column.getToggleSortingHandler(),children:(0,Xr.jsxs)("span",{className:"bx--table-sort__flex",children:[(0,Xr.jsx)("div",{className:"bx--table-header-label",children:to(e.column.columnDef.header,e.getContext())}),e.column.getIsSorted()?zp[e.column.getIsSorted()]:null,(0,Xr.jsx)(la,{className:"bx--table-sort__icon-unsorted"}),e.column.columns.length?null:(0,Xr.jsx)("span",{className:"header-dnd",ref:d,children:(0,Xr.jsx)(sa,{className:"bx--table-sort__icon-unsorted"})})]})}):(0,Xr.jsx)("button",{className:"bx--table-sort",children:(0,Xr.jsxs)("span",{className:"bx--table-sort__flex",children:[(0,Xr.jsx)("div",{className:"bx--table-header-label",children:to(e.column.columnDef.header,e.getContext())}),e.column.columns.length?null:(0,Xr.jsx)("span",{className:"header-dnd",ref:d,children:(0,Xr.jsx)(sa,{className:"bx--table-sort__icon-unsorted"})})]})})})})}var zp={asc:(0,Xr.jsx)(oa,{className:"bx--table-sort__icon"}),desc:(0,Xr.jsx)(aa,{className:"bx--table-sort__icon"})},Np=function(t){var r=t.renderLauncher,n=t.children,i=L(e.useState(!1),2),a=i[0],o=i[1];return(0,Xr.jsxs)(Xr.Fragment,{children:[n&&"undefined"!==typeof document?Lu.createPortal((0,Xr.jsx)(n,{open:a,setOpen:o}),document.body):null,r&&(0,Xr.jsx)(r,{open:a,setOpen:o})]})};function Fp(t){var r=t.columns,n=t.data,i=t.experiment,a=[];Dp(r,a);var o=L(e.useState(a),2),s=o[0],l=o[1],c=L(e.useState([]),2),u=c[0],f=c[1],p=L(e.useState({}),2),d=p[0],h=p[1],g=L(e.useState({pageIndex:0,pageSize:10}),2),m=g[0],v=m.pageIndex,y=m.pageSize,b=g[1],x=e.useMemo((function(){return{pageIndex:v,pageSize:y}}),[v,y]),_=function(t){var r=Jr({state:{},onStateChange:function(){},renderFallbackValue:null},t),n=L(e.useState((function(){return{current:Ja(r)}})),1)[0],i=L(e.useState((function(){return n.current.initialState})),2),a=i[0],o=i[1];return n.current.setOptions((function(e){return Jr(Jr(Jr({},e),t),{},{state:Jr(Jr({},a),t.state),onStateChange:function(e){o(e),null==t.onStateChange||t.onStateChange(e)}})})),n.current}({columns:r,data:n,pageCount:Math.round(n.length/y)+n.length%y,state:{sorting:u,columnVisibility:d,pagination:x,columnOrder:s},getCoreRowModel:function(t){return ga((function(){return[t.options.data]}),(function(e){var r={rows:[],flatRows:[],rowsById:{}};return r.rows=function e(n,i,a){void 0===i&&(i=0);for(var o=[],s=0;sr.size&&r.delete(w.id);var n={};_.getAllLeafColumns().forEach((function(t){return n[t.id]=r.has(t.id)})),_.setColumnVisibility(n),A([].concat(ta(r.has(w.id)?[w]:[]),ta(k.filter((function(t){return!!n[t.id]})))))},sortItems:function(t){return t}})})]})})}),(0,Xr.jsx)("div",{className:"bx--data-table-content",children:(0,Xr.jsxs)("table",{className:"bx--data-table bx--data-table--normal bx--data-table--no-border",children:[(0,Xr.jsx)("thead",{children:_.getHeaderGroups().map((function(t){return(0,Xr.jsx)("tr",{children:t.headers.map((function(t){return(0,Xr.jsx)(Rp,{header:t,table:_},t.id)}))},t.id)}))}),(0,Xr.jsx)("tbody",{children:_.getRowModel().rows.map((function(t){return(0,Xr.jsx)(Np,{renderLauncher:function(e){var r=e.setOpen;return(0,Xr.jsx)("tr",{className:"trial-row",onClick:function(){return r(!0)},children:t.getVisibleCells().map((function(t){return(0,Xr.jsx)("td",{children:to(t.column.columnDef.cell,t.getContext())},t.id)}))})},children:function(e){var r=e.open,n=e.setOpen;return(0,Xr.jsx)(Qc,{modalLabel:"Trial info",modalHeading:"".concat(i," / ").concat(t.original.id),passiveModal:!0,open:r,onRequestClose:function(){return n(!1)},children:(0,Xr.jsx)(uo,{children:a.map((function(e,r){return(0,Xr.jsxs)(ho,{children:[(0,Xr.jsx)(Co,{className:"modal-trial-key",children:(0,Xr.jsxs)("strong",{children:[e.startsWith("params.")?"Parameter ":null,_.getColumn(e).columnDef.header]})}),(0,Xr.jsx)(Co,{children:t.getValue(e)})]},e)}))})})}},t.id)}))})]})})]})})}function Bp(){Bp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(C){l=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var a=e&&e.prototype instanceof d?e:d,o=Object.create(a.prototype),s=new A(i||[]);return n(o,"_invoke",{value:w(t,r,s)}),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=c;var p={};function d(){}function h(){}function g(){}var m={};l(m,a,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(S([])));y&&y!==e&&r.call(y,a)&&(m=y);var b=g.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(n,a,o,s){var l=u(t[n],t,a);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==f(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(p).then((function(t){c.value=t,o(c)}),(function(t){return i("throw",t,o,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return E()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=k(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function jp(t,e,r,n,i,a,o){try{var s=t[a](o),l=s.value}catch(Gm){return void r(Gm)}s.done?e(l):Promise.resolve(l).then(n,i)}function Up(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){jp(a,n,i,o,s,"next",t)}function s(t){jp(a,n,i,o,s,"throw",t)}o(void 0)}))}}function Vp(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";r.length&&(r+=".");for(var n=0,i=Object.keys(t);n1&&void 0!==arguments[1]?arguments[1]:"",r={};return Vp(t,r,e),r}var qp=function(t){c(r,t);var e=d(r);function r(){return i(this,r),e.apply(this,arguments)}return o(r,[{key:"render",value:function(){var t=this.props.object,e=Object.keys(t);return e.length?(e.sort(),(0,Xr.jsx)(uo,{condensed:!0,fullWidth:!0,className:"object-to-grid",children:e.map((function(e){return(0,Xr.jsxs)(ho,{children:[(0,Xr.jsx)(Co,{className:"object-to-grid-key",children:(0,Xr.jsx)("strong",{children:(0,Xr.jsx)("em",{children:e})})}),(0,Xr.jsx)(Co,{children:Array.isArray(t[e])?t[e].map((function(t,e){return(0,Xr.jsx)("div",{children:t.toString()},e)})):t[e].toString()})]},e)}))})):""}}]),r}(e.Component),Gp=function(){function t(e){i(this,t),this.backend=new gn(e),this.trials={}}return o(t,[{key:"get",value:function(){var t=Up(Bp().mark((function t(e){var r,n,i,a,o,s,l,c,u,f,p,d,h,g,m,v;return Bp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.trials.hasOwnProperty(e)){t.next=36;break}return t.next=3,this.backend.query("trials/".concat(e));case 3:r=t.sent,n=r.map((function(t){return t.id})),n.sort(),i=[],a={},o=ua(n),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=24;break}return l=s.value,t.next=15,this.backend.query("trials/".concat(e,"/").concat(l));case 15:for(c=t.sent,u=Hp(c.parameters,"params"),f=0,p=Object.keys(u);f7?(0,Xr.jsxs)("span",{title:t.getValue(),children:[t.getValue().substr(0,7),"..."]}):t.getValue()}},{id:"parameters",header:"Parameters",columns:m.map((function(t){var e={id:t,accessorFn:function(e){return e[t]},header:t.substr(7)};return a[t]||(e.cell=function(t){return t.getValue()},e.enableSorting=!1),e}))},{id:"submitTime",accessorKey:"submitTime",header:"Submit time"},{id:"startTime",accessorKey:"startTime",header:"Start time"},{id:"endTime",accessorKey:"endTime",header:"End time"},{id:"objective",accessorKey:"objective",header:"Objective"},{id:"statistics",accessorKey:"statistics",header:"Statistics",cell:function(t){return t.getValue()},enableSorting:!1}],this.trials[e]={headers:v,trials:i};case 36:return t.abrupt("return",this.trials[e]);case 37:case"end":return t.stop()}}),t,this,[[9,26,29,32]])})));return function(e){return t.apply(this,arguments)}}()}]),t}(),Wp=new Gp(mn),Yp=function(t){c(r,t);var e=d(r);function r(t){var n;return i(this,r),(n=e.call(this,t))._isMounted=!1,n.state={experiment:null,trials:null},n}return o(r,[{key:"render",value:function(){return null===this.state.experiment?"No trials to display, please select an experiment.":null===this.state.trials?'Loading trials for experiment "'.concat(this.state.experiment,'" ...'):!1===this.state.trials?'Unable to load trials for experiment "'.concat(this.state.experiment,'".'):(0,Xr.jsx)("div",{className:"bx--grid bx--grid--full-width bx--grid--no-gutter database-page",children:(0,Xr.jsx)("div",{className:"bx--row database-page__r1",children:(0,Xr.jsx)("div",{className:"bx--col-lg-16",children:(0,Xr.jsx)(Fp,{columns:this.state.trials.headers,data:this.state.trials.trials,experiment:this.state.experiment})})})})}},{key:"componentDidMount",value:function(){this._isMounted=!0;var t=this.context.experiment;null!==t&&this.loadTrials(t)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"componentDidUpdate",value:function(t,e,r){var n=this.context.experiment;this.state.experiment!==n&&(null===n?this.setState({experiment:n,trials:null}):this.loadTrials(n))}},{key:"loadTrials",value:function(t){var e=this;this.setState({experiment:t,trials:null},(function(){Wp.get(t).then((function(t){e._isMounted&&e.setState({trials:t})})).catch((function(t){console.error(t),e._isMounted&&e.setState({trials:!1})}))}))}}]),r}(e.Component);Yp.contextType=vn;var Xp=Yp,Zp=function(){return(0,Xr.jsx)("div",{children:"Configuration page"})},Kp=Fr(function(t){c(r,t);var e=d(r);function r(t){var n;return i(this,r),(n=e.call(this,t)).state={experiment:null},n.onSelectExperiment=n.onSelectExperiment.bind(s(n)),n}return o(r,[{key:"render",value:function(){return(0,Xr.jsx)(Xr.Fragment,{children:(0,Xr.jsxs)(vn.Provider,{value:{address:mn,experiment:this.state.experiment},children:[(0,Xr.jsx)(Zr,{dashboard:"experiments"}),(0,Xr.jsx)(zi,{onSelectExperiment:this.onSelectExperiment}),(0,Xr.jsx)(E,{children:this.renderPage()})]})})}},{key:"renderPage",value:function(){switch(this.props.match.params.page||"landing"){case"landing":return(0,Xr.jsx)(Ni,{});case"status":return(0,Xr.jsx)(Fi,{});case"visualizations":return(0,Xr.jsx)(Qi,{});case"database":return(0,Xr.jsx)(Xp,{});case"configuration":return(0,Xr.jsx)(Zp,{})}}},{key:"onSelectExperiment",value:function(t){this.setState({experiment:t})}}]),r}(e.Component)),Jp=(0,e.createContext)(null),$p=["as","children","dir"];function Qp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function td(t){var r=t.as,n=void 0===r?"span":r,i=t.children,a=t.dir,o=void 0===a?"auto":a,s=m(t,$p),l=(0,e.useContext)(Jp),c={},u=function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:"en";return"number"===typeof t&&"number"===typeof e?t-e:"string"===typeof t&&"string"===typeof e?ih(t,e,r):ih(""+t,""+e,r)},ih=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return isNaN(t)||isNaN(parseFloat(t))?t.localeCompare(e,r):t.localeCompare(e,r,{numeric:!0})},ah=eh.NONE,oh=function(t,e,r){var n,i=r.key,a=e.sortDirection,o=e.sortHeaderKey,s=(n=a,i===o?"NONE"===n?eh.ASC:"ASC"===n?eh.DESC:eh.NONE:eh.ASC);return sh(t,e,i,s)},sh=function(t,e,r,n){var i=e.rowIds,a=e.cellsById,o=e.initialRowOrder,s=t.locale,l=t.sortRow,c=n!==eh.NONE?function(t){var e=t.rowIds,r=t.cellsById,n=t.sortDirection,i=t.key,a=t.locale,o=t.sortRow;return e.slice().sort((function(t,e){var s=r[rh(t,i)],l=r[rh(e,i)];return o(s&&s.value,l&&l.value,{key:i,sortDirection:n,locale:a,sortStates:eh,compare:nh})}))}({rowIds:i,cellsById:a,sortDirection:n,key:r,locale:s,sortRow:l}):o;return{sortHeaderKey:r,sortDirection:n,rowIds:c}},lh=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.rowsById,i=new Array(t.length),a={},o={};return t.forEach((function(t,r){i[r]=t.id;var s=t.id,l=t.isSelected,c=void 0!==l&&l,u=t.isExpanded,f=void 0!==u&&u,p=t.disabled,d=void 0!==p&&p;a[s]={id:s,isSelected:c,isExpanded:f,disabled:d,cells:new Array(e.length)},n&&void 0!==n[t.id]&&(a[t.id].isSelected=n[t.id].isSelected,a[t.id].isExpanded=n[t.id].isExpanded),e.forEach((function(e,r){var n=e.key,i=rh(t.id,n);o[i]={id:i,value:t[n],isEditable:!1,isEditing:!1,isValid:!0,errors:null,info:{header:n}},a[t.id].cells[r]=i}))})),{rowIds:i,rowsById:a,cellsById:o}},ch=function(t,e){var r=lh(t.rows,t.headers,e),n=r.rowIds,i={rowIds:n,rowsById:r.rowsById,cellsById:r.cellsById,sortDirection:e.sortDirection||ah,sortHeaderKey:e.sortHeaderKey||null,initialRowOrder:n.slice(),filterInputValue:e.filterInputValue||null,shouldShowBatchActions:e.shouldShowBatchActions||!1};if(e.sortDirection&&e.sortHeaderKey){var a=sh(t,i,e.sortHeaderKey,e.sortDirection).rowIds;i.rowIds=a}return i};function uh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fh(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.onClick,r=m(t,mh),i=n.props.translateWithId,a=n.state,o=a.isExpandedAll,s=a.rowIds,l=a.rowsById,c=o||s.every((function(t){return l[t].isExpanded})),u=c?kh.collapseAll:kh.expandAll;return xh(xh({},r),{},{ariaLabel:i(u),isExpanded:c,onExpand:Ai([n.handleOnExpandAll,e?n.handleOnExpandHeaderClick(e,{isExpanded:c}):null])})})),h(s(n),"handleOnHeaderClick",(function(t,e){return function(r){return t(r,e)}})),h(s(n),"handleOnExpandHeaderClick",(function(t,e){return function(r){return t(r,e)}})),h(s(n),"getRowProps",(function(t){var e=t.row,r=t.onClick,i=m(t,vh),a=n.props.translateWithId,o=e.isExpanded?kh.collapseRow:kh.expandRow;return xh(xh({},i),{},{key:e.id,onExpand:Ai([n.handleOnExpandRow(e.id),r]),isExpanded:e.isExpanded,ariaLabel:a(o),isSelected:e.isSelected,disabled:e.disabled})})),h(s(n),"getSelectionProps",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.onClick,r=t.row,i=m(t,yh),a=n.props.translateWithId;if(r){var o=r.isSelected?kh.unselectRow:kh.selectRow;return xh(xh({},i),{},{checked:r.isSelected,onSelect:Ai([n.handleOnSelectRow(r.id),e]),id:"".concat(n.getTablePrefix(),"__select-row-").concat(r.id),name:"select-row-".concat(r.id),ariaLabel:a(o),disabled:r.disabled,radio:n.props.radio||null})}var s=n.state.rowIds.length,l=n.getSelectedRows().length,c=s>0&&l===s,u=s>0&&l>0&&l!==s,f=c||u?kh.unselectAll:kh.selectAll;return xh(xh({},i),{},{ariaLabel:a(f),checked:c,id:"".concat(n.getTablePrefix(),"__select-all"),indeterminate:u,name:"select-all",onSelect:Ai([n.handleSelectAll,e])})})),h(s(n),"getToolbarProps",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.props.size,r="compact"===e||"short"===e||"xs"===e||"sm"===e;return xh(xh({},t),{},{size:r?"small":"normal"})})),h(s(n),"getBatchActionProps",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.state.shouldShowBatchActions,r=n.getSelectedRows().length;return xh(xh({},t),{},{shouldShowBatchActions:e&&r>0,totalSelected:r,onCancel:n.handleOnCancel})})),h(s(n),"getTableProps",(function(){var t=n.props;return{useZebraStyles:t.useZebraStyles,size:t.size,isSortable:t.isSortable,useStaticWidth:t.useStaticWidth,shouldShowBorder:t.shouldShowBorder,stickyHeader:t.stickyHeader,overflowMenuOnHover:t.overflowMenuOnHover}})),h(s(n),"getTableContainerProps",(function(){var t=n.props;return{stickyHeader:t.stickyHeader,useStaticWidth:t.useStaticWidth}})),h(s(n),"getSelectedRows",(function(){return n.state.rowIds.filter((function(t){var e=n.state.rowsById[t];return e.isSelected&&!e.disabled}))})),h(s(n),"getFilteredRowIds",(function(){var t="string"===typeof n.state.filterInputValue?n.props.filterRows({rowIds:n.state.rowIds,headers:n.props.headers,cellsById:n.state.cellsById,inputValue:n.state.filterInputValue,getCellId:rh}):n.state.rowIds;return 0==t.length?[]:t})),h(s(n),"getTablePrefix",(function(){return"data-table-".concat(n.instanceId)})),h(s(n),"setAllSelectedState",(function(t,e,r){return{rowsById:t.rowIds.reduce((function(n,i){return xh(xh({},n),{},h({},i,xh(xh({},t.rowsById[i]),!t.rowsById[i].disabled&&{isSelected:r.includes(i)&&e})))}),{})}})),h(s(n),"handleOnCancel",(function(){n.setState((function(t){return xh({shouldShowBatchActions:!1},n.setAllSelectedState(t,!1,n.getFilteredRowIds()))}))})),h(s(n),"handleSelectAll",(function(){n.setState((function(t){var e=n.getFilteredRowIds(),r=t.rowsById,i=!(Object.values(r).filter((function(t){return t.isSelected&&!t.disabled})).length>0);return xh({shouldShowBatchActions:i},n.setAllSelectedState(t,i,e))}))})),h(s(n),"handleOnSelectRow",(function(t){return function(){n.setState((function(e){var r=e.rowsById[t];if(n.props.radio){var i=Object.entries(e.rowsById).reduce((function(t,e){var r=L(e,2),n=r[0],i=r[1];return i.isSelected=!1,t[n]=i,t}),{});return{shouldShowBatchActions:!1,rowsById:xh(xh({},i),{},h({},t,xh(xh({},r),{},{isSelected:!r.isSelected})))}}var a=e.rowIds.filter((function(t){return e.rowsById[t].isSelected})).length,o=r.isSelected?a-1:a+1;return{shouldShowBatchActions:!r.isSelected||o>0,rowsById:xh(xh({},e.rowsById),{},h({},t,xh(xh({},r),{},{isSelected:!r.isSelected})))}}))}})),h(s(n),"handleOnExpandRow",(function(t){return function(){n.setState((function(e){var r=e.rowsById[t],n=e.isExpandedAll;return{isExpandedAll:!r.isExpanded&&n,rowsById:xh(xh({},e.rowsById),{},h({},t,xh(xh({},r),{},{isExpanded:!r.isExpanded})))}}))}})),h(s(n),"handleOnExpandAll",(function(){n.setState((function(t){var e=t.rowIds,r=t.isExpandedAll;return{isExpandedAll:!r,rowsById:e.reduce((function(e,n){return xh(xh({},e),{},h({},n,xh(xh({},t.rowsById[n]),{},{isExpanded:!r})))}),{})}}))})),h(s(n),"handleSortBy",(function(t){return function(){n.setState((function(e){return oh(n.props,e,{key:t})}))}})),h(s(n),"handleOnInputValueChange",(function(t,e){t.target&&n.setState({filterInputValue:t.target.value}),e&&n.setState({filterInputValue:e})})),n.state=xh(xh({},ch(t,{})),{},{isExpandedAll:!1}),n.instanceId=wh(),n}return o(r,[{key:"componentDidUpdate",value:function(t){var e=this;if(t!==this.props){var r=t.rows.map((function(t){return t.id})),n=this.props.rows.map((function(t){return t.id}));if(il()(r,n)){var i=t.headers.map((function(t){return t.key})),a=this.props.headers.map((function(t){return t.key}));il()(i,a)&&il()(t.rows,this.props.rows)||this.setState((function(t){return ch(e.props,t)}))}else this.setState((function(t){return ch(e.props,t)}))}}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=e.filterRows,i=e.headers,a=e.render,o=this.state,s=o.filterInputValue,l=o.rowIds,c=o.rowsById,u=o.cellsById,f="string"===typeof s?n({rowIds:l,headers:i,cellsById:u,inputValue:s,getCellId:rh}):l,p={rows:dh(f,c,u),headers:this.props.headers,selectedRows:dh(this.getSelectedRows(),c,u),getHeaderProps:this.getHeaderProps,getExpandHeaderProps:this.getExpandHeaderProps,getRowProps:this.getRowProps,getSelectionProps:this.getSelectionProps,getToolbarProps:this.getToolbarProps,getBatchActionProps:this.getBatchActionProps,getTableProps:this.getTableProps,getTableContainerProps:this.getTableContainerProps,onInputChange:this.handleOnInputValueChange,sortBy:function(e){return t.handleSortBy(e)()},selectAll:this.handleSelectAll,selectRow:function(e){return t.handleOnSelectRow(e)()},expandRow:function(e){return t.handleOnExpandRow(e)()},expandAll:this.handleOnExpandAll,radio:this.props.radio};return void 0!==a?a(p):void 0!==r?r(p):null}}]),r}(e.Component);h(Mh,"propTypes",{filterRows:x().func,headers:x().arrayOf(x().shape({key:x().string.isRequired,header:x().node.isRequired})).isRequired,isSortable:x().bool,locale:x().string,overflowMenuOnHover:x().bool,radio:x().bool,rows:x().arrayOf(x().shape({id:x().string.isRequired,disabled:x().bool,isSelected:x().bool,isExpanded:x().bool})).isRequired,shouldShowBorder:x().bool,size:re("enable-v11-release")?x().oneOf(["xs","sm","md","lg","xl"]):x().oneOf(["compact","short","normal","tall","xs","sm","md","lg","xl"]),sortRow:x().func,stickyHeader:x().bool,translateWithId:x().func,useStaticWidth:x().bool,useZebraStyles:x().bool}),h(Mh,"defaultProps",{sortRow:function(t,e,r){var n=r.sortDirection,i=r.sortStates,a=r.locale;return n===i.ASC?nh(t,e,a):nh(e,t,a)},filterRows:function(t){var e=t.rowIds,r=t.headers,n=t.cellsById,i=t.inputValue,a=t.getCellId;return e.filter((function(t){return r.some((function(e){var r=e.key,o=a(t,r);return"boolean"!==typeof n[o].value&&(""+n[o].value).toLowerCase().includes(i.toLowerCase())}))}))},locale:"en",size:re("enable-v11-release")?"lg":"normal",overflowMenuOnHover:!0,translateWithId:function(t){return Th[t]}}),h(Mh,"translationKeys",Object.values(kh));var Ah=["className","children","useZebraStyles","size","isSortable","useStaticWidth","shouldShowBorder","stickyHeader","overflowMenuOnHover"],Sh=function(t){var r,n=t.className,i=t.children,a=t.useZebraStyles,o=t.size,s=t.isSortable,l=t.useStaticWidth,c=t.shouldShowBorder,u=t.stickyHeader,f=t.overflowMenuOnHover,p=m(t,Ah),d=k(),g=y()("".concat(d,"--data-table"),n,(h(r={},"".concat(d,"--data-table--").concat(o),o),h(r,"".concat(d,"--data-table--sort"),s),h(r,"".concat(d,"--data-table--zebra"),a),h(r,"".concat(d,"--data-table--static"),l),h(r,"".concat(d,"--data-table--no-border"),!c),h(r,"".concat(d,"--data-table--sticky-header"),u),h(r,"".concat(d,"--data-table--visible-overflow-menu"),!f),r)),v=e.createElement("div",{className:"".concat(d,"--data-table-content")},e.createElement("table",D({},p,{className:g}),i));return u?e.createElement("section",{className:"".concat(d,"--data-table_inner-container")},v):v};Sh.propTypes={children:x().node,className:x().string,isSortable:x().bool,overflowMenuOnHover:x().bool,shouldShowBorder:Pn(x().bool),size:re("enable-v11-release")?x().oneOf(["xs","sm","md","lg","xl"]):x().oneOf(["compact","short","normal","tall","xs","sm","md","lg","xl"]),stickyHeader:x().bool,useStaticWidth:x().bool,useZebraStyles:x().bool},Sh.defaultProps={isSortable:!1,overflowMenuOnHover:!0};var Eh=Sh,Ch=["className"];function Oh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lh(t){for(var e=1;e1||0===o?"carbon.table.batch.items.selected":"carbon.table.batch.item.selected",{totalSelected:o})))),e.createElement(Nh,null,i,e.createElement(Ko,{className:"".concat(d,"--batch-summary__cancel"),tabIndex:a?0:-1,onClick:s},l("carbon.table.batch.cancel"))))};qh.translationKeys=Object.keys(Hh),qh.propTypes={children:x().node,className:x().string,onCancel:x().func.isRequired,shouldShowBatchActions:x().bool,totalSelected:x().number.isRequired,translateWithId:x().func},qh.defaultProps={translateWithId:function(t,e){return"carbon.table.batch.cancel"===t?Hh[t]:"".concat(e.totalSelected," ").concat(Hh[t])}};var Gh=qh,Wh=["children","className"],Yh=function(t){var r=t.children,n=t.className,i=m(t,Wh);return e.createElement("tbody",D({className:n},i),r)};Yh.propTypes={"aria-live":x().oneOf(["polite","assertive","off"]),children:x().node,className:x().string},Yh.defaultProps={"aria-live":"polite"};var Xh=Yh,Zh=Dh({name:"TableCell",type:"td"}),Kh=["className","children","title","description","stickyHeader","useStaticWidth"],Jh=function(t){var r,n=t.className,i=t.children,a=t.title,o=t.description,s=t.stickyHeader,l=t.useStaticWidth,c=m(t,Kh),u=k(),f=y()(n,"".concat(u,"--data-table-container"),(h(r={},"".concat(u,"--data-table--max-width"),s),h(r,"".concat(u,"--data-table-container--static"),l),r));return e.createElement("div",D({},c,{className:f}),a&&e.createElement("div",{className:"".concat(u,"--data-table-header")},e.createElement("h4",{className:"".concat(u,"--data-table-header__title")},a),e.createElement("p",{className:"".concat(u,"--data-table-header__description")},o)),i)};Jh.propTypes={children:x().node,className:x().string,description:x().node,stickyHeader:x().bool,title:x().node,useStaticWidth:x().bool};var $h=Jh,Qh=["ariaLabel","className","enableExpando","enableToggle","isExpanded","onExpand","expandIconDescription","children"],tg=function(t){var r=t.ariaLabel,n=t.className,i=t.enableExpando,a=t.enableToggle,o=t.isExpanded,s=t.onExpand,l=t.expandIconDescription,c=t.children,u=m(t,Qh),f=k(),p=y()("".concat(f,"--table-expand"),n),d=o?"collapsed":void 0;return e.createElement("th",D({scope:"col",className:p,"data-previous-value":d},u),i||a?e.createElement("button",{type:"button",className:"".concat(f,"--table-expand__button"),onClick:s,title:l,"aria-label":r},e.createElement(At,{className:"".concat(f,"--table-expand__svg"),"aria-label":l})):null,c)};tg.propTypes={ariaLabel:x().oneOfType([Pc(0,x().string),Pc(0,x().string)]),children:x().node,className:x().string,enableExpando:Pn(x().bool),enableToggle:x().bool,expandIconDescription:x().string,isExpanded:x().oneOfType([Pc(0,x().bool),Pc(0,x().bool)]),onExpand:x().oneOfType([Pc(0,x().func),Pc(0,x().func)])};var eg=tg,rg=["ariaLabel","className","children","isExpanded","onExpand","expandIconDescription","isSelected","expandHeader"],ng=function(t){var r,n=t.ariaLabel,i=t.className,a=t.children,o=t.isExpanded,s=t.onExpand,l=t.expandIconDescription,c=t.isSelected,u=t.expandHeader,f=m(t,rg),p=k(),d=y()((h(r={},"".concat(p,"--parent-row"),!0),h(r,"".concat(p,"--expandable-row"),o),h(r,"".concat(p,"--data-table--selected"),c),r),i),g=o?"collapsed":void 0;return e.createElement("tr",D({},f,{className:d,"data-parent-row":!0}),e.createElement(Zh,{className:"".concat(p,"--table-expand"),"data-previous-value":g,headers:u},e.createElement("button",{type:"button",className:"".concat(p,"--table-expand__button"),onClick:s,title:l,"aria-label":n},e.createElement(At,{className:"".concat(p,"--table-expand__svg"),"aria-label":l}))),a)};ng.propTypes={ariaLabel:x().string.isRequired,children:x().node,className:x().string,expandHeader:x().string,expandIconDescription:x().string,isExpanded:x().bool.isRequired,isSelected:x().bool,onExpand:x().func.isRequired},ng.defaultProps={expandHeader:"expand"};var ig=ng,ag=["className","children","colSpan"],og=function(t){var r=t.className,n=t.children,i=t.colSpan,a=m(t,ag),o=(0,e.useRef)(null),s=k(),l=y()("".concat(s,"--expandable-row"),r),c=function(t){if(o&&o.current&&o.current.previousElementSibling){var e=o.current.previousElementSibling;"enter"===t?e.classList.add("".concat(s,"--expandable-row--hover")):e.classList.remove("".concat(s,"--expandable-row--hover"))}};return e.createElement("tr",D({ref:o,onMouseEnter:function(){return c("enter")},onMouseLeave:function(){return c("leave")}},a,{className:l,"data-child-row":!0}),e.createElement(Zh,{colSpan:i},e.createElement("div",{className:"".concat(s,"--child-row-inner-container")},n)))};og.propTypes={children:x().node,className:x().string,colSpan:x().number.isRequired};var sg,lg=og,cg=Dh({name:"TableHead",type:"thead"}),ug=["className","children","colSpan","isSortable","isSortHeader","onClick","scope","sortDirection","translateWithId","id"],fg={buttonDescription:"carbon.table.header.icon.description"},pg=(h(sg={},eh.NONE,"none"),h(sg,eh.ASC,"ascending"),h(sg,eh.DESC,"descending"),sg),dg=e.forwardRef((function(t,r){var n,i=t.className,a=t.children,o=t.colSpan,s=t.isSortable,l=t.isSortHeader,c=t.onClick,u=t.scope,f=t.sortDirection,p=t.translateWithId,d=t.id,g=m(t,ug),v=k(),b=Cn("table-sort");if(!s)return e.createElement("th",D({},g,{id:d,className:i,scope:u,colSpan:o,ref:r}),a?e.createElement("div",{className:"".concat(v,"--table-header-label")},a):null);var x=y()(i,(h(n={},"".concat(v,"--table-sort"),!0),h(n,"".concat(v,"--table-sort--active"),l&&f!==eh.NONE),h(n,"".concat(v,"--table-sort--ascending"),l&&f===eh.DESC),n)),_=l?pg[f]:"none",w=p("carbon.table.header.icon.description",{header:a,sortDirection:f,isSortHeader:l,sortStates:eh});return e.createElement("th",{id:d,"aria-sort":_,className:i,colSpan:o,ref:r,scope:u},e.createElement("div",{style:{display:"none"},id:b},w),e.createElement("button",D({type:"button","aria-describedby":b,className:x,onClick:c},g),e.createElement("span",{className:"".concat(v,"--table-sort__flex")},e.createElement("div",{className:"".concat(v,"--table-header-label")},a),e.createElement(oa,{className:"".concat(v,"--table-sort__icon")}),e.createElement(la,{className:"".concat(v,"--table-sort__icon-unsorted")}))))}));dg.propTypes={children:x().node,className:x().string,colSpan:x().number,id:x().string,isSortHeader:x().bool,isSortable:x().bool,onClick:x().func,scope:x().string.isRequired,sortDirection:x().oneOf(Object.values(eh)),translateWithId:x().func},dg.defaultProps={isSortable:!1,scope:"col",translateWithId:function(t,e){var r=e.header,n=e.sortDirection,i=e.isSortHeader,a=e.sortStates;return t===fg.buttonDescription?i?n===a.NONE?"Click to sort rows by ".concat(r," header in ascending order"):n===a.ASC?"Click to sort rows by ".concat(r," header in descending order"):"Click to unsort rows by ".concat(r," header"):"Click to sort rows by ".concat(r," header in ascending order"):""}},dg.translationKeys=Object.values(fg),dg.displayName="TableHeader";var hg=dg,gg=r(7357),mg=r.n(gg);function vg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yg(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"id";return Eg++,"".concat(t).concat(Eg)}var Og=["className","labelText","labelPosition","innerRef","hideLabel"];function Lg(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(cs){return!1}}();return function(){var r,n=u(t);if(e){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}var Ig=function(t){c(n,t);var r=Lg(n);function n(){var t;i(this,n);for(var e=arguments.length,a=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:!O;g||(A||b&&(b||x)||C(e),v&&v(t,e))};return e.createElement(Di,D({disabled:g,className:U,value:P,id:"undefined"!==typeof _?_:z.toString(),labelText:u||s("carbon.table.toolbar.search.label"),placeholder:l||c||s("carbon.table.toolbar.search.placeholder"),onChange:function(t){R(t.target.value),a&&a(t)},onClear:o,onFocus:T?function(t){return T(t,V)}:function(t){return V(t,!0)},onBlur:w?function(t){return w(t,V)}:function(t){return!P&&V(t,!1)}},M))};Qg.propTypes={children:x().node,className:x().string,defaultExpanded:x().bool,defaultValue:x().string,disabled:x().bool,expanded:x().bool,id:x().string,labelText:x().string,onBlur:x().func,onChange:x().func,onClear:x().func,onExpand:x().func,onFocus:x().func,persistant:Pn(x().bool),persistent:x().bool,placeHolderText:Pn(x().string),placeholder:x().string,searchContainerClass:x().string,tabIndex:x().oneOfType([x().number,x().string]),translateWithId:x().func.isRequired},Qg.defaultProps={tabIndex:"0",translateWithId:function(t){return $g[t]},persistent:!1,onClear:function(){}};var tm=Qg;function em(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(cs){return!1}}();return function(){var r,n=u(t);if(e){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}var rm=function(t){c(n,t);var r=em(n);function n(t){var e;return i(this,n),(e=r.call(this,t)).handleRef=e.handleRef.bind(s(e)),e.handleDocumentClick=e.handleDocumentClick.bind(s(e)),e}return o(n,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocumentClick)}},{key:"handleDocumentClick",value:function(t){this.element&&this.element.contains&&!this.element.contains(n.getEventTarget(t))&&this.props.onClickOutside(t)}},{key:"handleRef",value:function(t){var e=this.props.children;this.element=t,e.ref&&"function"===typeof e.ref&&e.ref(t)}},{key:"render",value:function(){return e.cloneElement(this.props.children,{ref:this.handleRef})}}],[{key:"getEventTarget",value:function(t){return t.composed&&"function"===typeof t.composedPath?t.composedPath()[0]:t.target}}]),n}(e.Component);h(rm,"propTypes",{children:x().element.isRequired,onClickOutside:x().func.isRequired});var nm=r(5560),im=r.n(nm),am=function(){var t=[],e=!1;function r(){t.forEach((function(t){t()})),e=!1}function n(){e||(e=!0,im().requestAnimationFrame(r))}return{add:function(e){return t.length||im().addEventListener("resize",n),function(e){e&&t.indexOf(e)<0&&t.push(e)}(e),{release:function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}}}}}(),om=am;function sm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lm(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(t)!==f(e)||(Object(e)===e&&"function"!==typeof e?t.top!==e.top||t.left!==e.left:t!==e)},gm=function(t){var e,r=t.menuSize,n=t.refPosition,i=void 0===n?{}:n,a=t.offset,o=void 0===a?{}:a,s=t.direction,l=void 0===s?dm:s,c=t.scrollX,u=void 0===c?0:c,f=t.scrollY,p=void 0===f?0:f,d=t.container,g=i.left,m=void 0===g?0:g,v=i.top,y=void 0===v?0:v,b=i.right,x=void 0===b?0:b,_=i.bottom,w=void 0===_?0:_,k="static"!==d.position?0:u,T="static"!==d.position?0:p,M="static"!==d.position?d.rect.top:0,A="static"!==d.position?d.rect.left:0,S=r.width,E=r.height,C=o.top,O=void 0===C?0:C,L=o.left,I=void 0===L?0:L,P=(m+x)/2,D=(y+w)/2;return(e={},h(e,um,(function(){return{left:m-S+k-I-A,top:D-E/2+T+O-9-M}})),h(e,fm,(function(){return{left:P-S/2+k+I-A,top:y-E+T-O-M}})),h(e,pm,(function(){return{left:x+k+I-A,top:D-E/2+T+O+3-M}})),h(e,dm,(function(){return{left:P-S/2+k+I-A,top:w+T+O-M}})),e)[l]()},mm=function(t){c(n,t);var r=cm(n);function n(){var t;i(this,n);for(var a=arguments.length,o=new Array(a),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t._menuBody;if(n){var i=e.menuOffset,a=void 0===i?{}:i,o=e.menuDirection,s=t.props,l=s.menuOffset,c=void 0===l?{}:l,u=s.menuDirection;if(hm(a,c)||o!==u||r){var f=t.props,p=f.flipped,d=f.triggerRef,h=f.updateOrientation,g=d.current,m=n.getBoundingClientRect(),v=g&&g.getBoundingClientRect(),y="function"!==typeof c?c:c(n,u,g,p);h&&h({menuSize:m,refPosition:v,direction:u,offset:y,scrollX:im().pageXOffset,scrollY:im().pageYOffset,container:{rect:t.props.target().getBoundingClientRect(),position:getComputedStyle(t.props.target()).position}}),(m.width>0&&m.height>0||!y)&&t.setState({floatingPosition:gm({menuSize:m,refPosition:v,direction:u,offset:y,scrollX:im().pageXOffset,scrollY:im().pageYOffset,container:{rect:t.props.target().getBoundingClientRect(),position:getComputedStyle(t.props.target()).position}})},(function(){r||n.getBoundingClientRect()!==m&&t._updateMenuSize(t.props,!0)}))}}})),h(s(t),"_focusMenuContent",(function(e){var r=e.querySelector(t.props.selectorPrimaryFocus||null),n=e.querySelector(Fc),i=e.querySelector(Bc),a=r||n||i||e;t.props.focusTrap&&a.focus()})),h(s(t),"_menuRef",(function(e){var r=t.props.menuRef;t._placeInProgress=!!e,r&&r(t._menuBody=e),e&&t._updateMenuSize()})),h(s(t),"_getChildrenWithProps",(function(){var r=t.props,n=r.styles,i=r.children,a=t.state.floatingPosition,o=a?{left:"".concat(a.left,"px"),top:"".concat(a.top,"px"),right:"auto"}:{visibility:"hidden",top:"0px"};return e.cloneElement(i,{ref:t._menuRef,style:lm(lm(lm({},n),o),{},{position:"absolute",opacity:1})})})),h(s(t),"handleBlur",(function(e){var r=e.target,n=e.relatedTarget;if(n&&r){var i=t.startSentinel.current,a=t.endSentinel.current;Hc({bodyNode:t._menuBody,startSentinelNode:i,endSentinelNode:a,currentActiveNode:n,oldActiveNode:r})}})),t}return o(n,[{key:"componentWillUnmount",value:function(){this.hResize.release()}},{key:"componentDidMount",value:function(){var t=this;this.hResize=om.add((function(){t._updateMenuSize()}))}},{key:"componentDidUpdate",value:function(t){this._updateMenuSize(t);var e=this.props.onPlace;this._placeInProgress&&this.state.floatingPosition&&(this._menuBody&&!this._menuBody.contains(document.activeElement)&&this._focusMenuContent(this._menuBody),"function"===typeof e&&(e(this._menuBody),this._placeInProgress=!1))}},{key:"render",value:function(){var t=this.context;if("undefined"!==typeof document){var r=this.props,n=r.focusTrap,i=r.target;return Lu.createPortal(e.createElement("div",{onBlur:n?this.handleBlur:null},e.createElement("span",{ref:this.startSentinel,tabIndex:"0",role:"link",className:"".concat(t,"--visually-hidden")},"Focus sentinel"),this._getChildrenWithProps(),e.createElement("span",{ref:this.endSentinel,tabIndex:"0",role:"link",className:"".concat(t,"--visually-hidden")},"Focus sentinel")),i?i():document.body)}return null}}]),n}(e.Component);h(mm,"contextType",w),h(mm,"propTypes",{children:x().object,flipped:x().bool,focusTrap:x().bool,menuDirection:x().oneOf([um,fm,pm,dm]),menuOffset:x().oneOfType([x().shape({top:x().number,left:x().number}),x().func]),menuRef:x().func,onPlace:x().func,selectorPrimaryFocus:x().string,styles:x().object,target:x().func,triggerRef:x().oneOfType([x().func,x().shape({current:x().any})]),updateOrientation:x().func}),h(mm,"defaultProps",{menuOffset:{},menuDirection:dm,updateOrientation:null});var vm,ym,bm,xm,_m,wm=mm,km=["children"],Tm=e.forwardRef((function(t,r){var n=t.children,i=it(t,km);return e.createElement(lt,nt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:r},i),vm||(vm=e.createElement("circle",{cx:"16",cy:"8",r:"2"})),ym||(ym=e.createElement("circle",{cx:"16",cy:"16",r:"2"})),bm||(bm=e.createElement("circle",{cx:"16",cy:"24",r:"2"})),n)})),Mm=["id","ariaLabel","children","iconDescription","direction","flipped","focusTrap","menuOffset","menuOffsetFlip","iconClass","onClick","onOpen","selectorPrimaryFocus","renderIcon","innerRef","menuOptionsClass","light","size"];function Am(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(cs){return!1}}();return function(){var r,n=u(t);if(e){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}var Sm=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;nformatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Chinese',\n epochs: ['BEC', 'EC'],\n monthNumbers: function(date, padded) {\n if (typeof date === 'string') {\n var match = date.match(MONTH_NUMBER_REGEXP);\n return (match) ? match[0] : '';\n }\n\n var year = this._validateYear(date);\n var monthIndex = date.month();\n\n var month = '' + this.toChineseMonth(year, monthIndex);\n\n if (padded && month.length < 2) {\n month = \"0\" + month;\n }\n\n if (this.isIntercalaryMonth(year, monthIndex)) {\n month += 'i';\n }\n\n return month;\n },\n monthNames: function(date) {\n if (typeof date === 'string') {\n var match = date.match(MONTH_NAME_REGEXP);\n return (match) ? match[0] : '';\n }\n\n var year = this._validateYear(date);\n var monthIndex = date.month();\n\n var month = this.toChineseMonth(year, monthIndex);\n\n var monthName = ['一月','二月','三月','四月','五月','六月',\n '七月','八月','九月','十月','十一月','十二月'][month - 1];\n\n if (this.isIntercalaryMonth(year, monthIndex)) {\n monthName = '闰' + monthName;\n }\n\n return monthName;\n },\n monthNamesShort: function(date) {\n if (typeof date === 'string') {\n var match = date.match(MONTH_SHORT_NAME_REGEXP);\n return (match) ? match[0] : '';\n }\n\n var year = this._validateYear(date);\n var monthIndex = date.month();\n\n var month = this.toChineseMonth(year, monthIndex);\n\n var monthName = ['一','二','三','四','五','六',\n '七','八','九','十','十一','十二'][month - 1];\n\n if (this.isIntercalaryMonth(year, monthIndex)) {\n monthName = '闰' + monthName;\n }\n\n return monthName;\n },\n parseMonth: function(year, monthString) {\n year = this._validateYear(year);\n var month = parseInt(monthString);\n var isIntercalary;\n\n if (!isNaN(month)) {\n var i = monthString[monthString.length - 1];\n isIntercalary = (i === 'i' || i === 'I');\n } else {\n if (monthString[0] === '闰') {\n isIntercalary = true;\n monthString = monthString.substring(1);\n }\n if (monthString[monthString.length - 1] === '月') {\n monthString = monthString.substring(0, monthString.length - 1);\n }\n month = 1 +\n ['一','二','三','四','五','六',\n '七','八','九','十','十一','十二'].indexOf(monthString);\n }\n\n var monthIndex = this.toMonthIndex(year, month, isIntercalary);\n return monthIndex;\n },\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 1,\n isRTL: false\n }\n },\n\n /** Check that a candidate date is from the same calendar and is valid.\n @memberof BaseCalendar\n @private\n @param year {CDate|number} The date or the year to validate.\n @param error {string} Error message if invalid.\n @return {number} The year.\n @throws Error if year out of range. */\n _validateYear: function(year, error) {\n if (year.year) {\n year = year.year();\n }\n\n if (typeof year !== 'number' || year < 1888 || year > 2111) {\n throw error.replace(/\\{0\\}/, this.local.name);\n }\n\n return year;\n },\n\n /** Retrieve the month index (i.e. accounting for intercalary months).\n @memberof ChineseCalendar\n @param year {number} The year.\n @param month {number} The month (1 for first month).\n @param [isIntercalary=false] {boolean} If month is intercalary.\n @return {number} The month index (0 for first month).\n @throws Error if an invalid month/year or a different calendar used. */\n toMonthIndex: function(year, month, isIntercalary) {\n // compute intercalary month in the year (0 if none)\n var intercalaryMonth = this.intercalaryMonth(year);\n\n // validate month\n var invalidIntercalaryMonth = \n (isIntercalary && month !== intercalaryMonth);\n if (invalidIntercalaryMonth || month < 1 || month > 12) {\n throw main.local.invalidMonth\n .replace(/\\{0\\}/, this.local.name);\n }\n\n // compute month index\n var monthIndex;\n\n if (!intercalaryMonth) {\n monthIndex = month - 1;\n } else if(!isIntercalary && month <= intercalaryMonth) {\n monthIndex = month - 1;\n } else {\n monthIndex = month;\n }\n\n return monthIndex;\n },\n\n /** Retrieve the month (i.e. accounting for intercalary months).\n @memberof ChineseCalendar\n @param year {CDate|number} The date or the year to examine.\n @param monthIndex {number} The month index (0 for first month).\n @return {number} The month (1 for first month).\n @throws Error if an invalid month/year or a different calendar used. */\n toChineseMonth: function(year, monthIndex) {\n if (year.year) {\n year = year.year();\n monthIndex = year.month();\n }\n\n // compute intercalary month in the year (0 if none)\n var intercalaryMonth = this.intercalaryMonth(year);\n\n // validate month\n var maxMonthIndex = (intercalaryMonth) ? 12 : 11;\n if (monthIndex < 0 || monthIndex > maxMonthIndex) {\n throw main.local.invalidMonth\n .replace(/\\{0\\}/, this.local.name);\n }\n\n // compute Chinese month\n var month;\n\n if (!intercalaryMonth) {\n month = monthIndex + 1;\n } else if(monthIndex < intercalaryMonth) {\n month = monthIndex + 1;\n } else {\n month = monthIndex;\n }\n\n return month;\n },\n\n /** Determine the intercalary month of a year (if any).\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The intercalary month number, or 0 if none.\n @throws Error if an invalid year or a different calendar used. */\n intercalaryMonth: function(year) {\n year = this._validateYear(year);\n\n var monthDaysTable = LUNAR_MONTH_DAYS[year - LUNAR_MONTH_DAYS[0]];\n var intercalaryMonth = monthDaysTable >> 13;\n\n return intercalaryMonth;\n },\n\n /** Determine whether this date is an intercalary month.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [monthIndex] {number} The month index to examine.\n @return {boolean} true if this is an intercalary month, false if not.\n @throws Error if an invalid year or a different calendar used. */\n isIntercalaryMonth: function(year, monthIndex) {\n if (year.year) {\n year = year.year();\n monthIndex = year.month();\n }\n\n var intercalaryMonth = this.intercalaryMonth(year);\n\n return !!intercalaryMonth && intercalaryMonth === monthIndex;\n },\n\n /** Determine whether this date is in a leap year.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n return (this.intercalaryMonth(year) !== 0);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [monthIndex] {number} The month index to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, monthIndex, day) {\n // compute Chinese new year\n var validatedYear =\n this._validateYear(year, main.local.invalidyear);\n var packedDate =\n CHINESE_NEW_YEAR[validatedYear - CHINESE_NEW_YEAR[0]];\n\n var y = (packedDate >> 9) & 0xFFF;\n var m = (packedDate >> 5) & 0x0F;\n var d = packedDate & 0x1F;\n \n // find first Thrusday of the year\n var firstThursday;\n firstThursday = gregorianCalendar.newDate(y, m, d);\n firstThursday.add(4 - (firstThursday.dayOfWeek() || 7), 'd');\n\n // compute days from first Thursday\n var offset =\n this.toJD(year, monthIndex, day) - firstThursday.toJD();\n return 1 + Math.floor(offset / 7);\n },\n\n /** Retrieve the number of months in a year.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n return (this.leapYear(year)) ? 13 : 12;\n },\n\n /** Retrieve the number of days in a month.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [monthIndex] {number} The month index.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, monthIndex) {\n if (year.year) {\n monthIndex = year.month();\n year = year.year();\n }\n\n year = this._validateYear(year);\n\n var monthDaysTable = LUNAR_MONTH_DAYS[year - LUNAR_MONTH_DAYS[0]];\n\n var intercalaryMonth = monthDaysTable >> 13;\n var maxMonthIndex = (intercalaryMonth) ? 12 : 11;\n if (monthIndex > maxMonthIndex) {\n throw main.local.invalidMonth\n .replace(/\\{0\\}/, this.local.name);\n }\n\n var daysInMonth = (monthDaysTable & (1 << (12 - monthIndex))) ?\n 30 : 29;\n\n return daysInMonth;\n },\n\n /** Determine whether this date is a week day.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [monthIndex] {number} The month index to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, monthIndex, day) {\n return (this.dayOfWeek(year, monthIndex, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof ChineseCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [monthIndex] {number} The month index to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, monthIndex, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = this._validateYear(date.year());\n monthIndex = date.month();\n day = date.day();\n\n var isIntercalary = this.isIntercalaryMonth(year, monthIndex);\n var month = this.toChineseMonth(year, monthIndex);\n\n var solar = toSolar(year, month, day, isIntercalary);\n\n return gregorianCalendar.toJD(solar.year, solar.month, solar.day);\n },\n\n /** Create a new date from a Julian date.\n @memberof ChineseCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var date = gregorianCalendar.fromJD(jd);\n var lunar = toLunar(date.year(), date.month(), date.day());\n var monthIndex = this.toMonthIndex(\n lunar.year, lunar.month, lunar.isIntercalary);\n return this.newDate(lunar.year, monthIndex, lunar.day);\n },\n\n /** Create a new date from a string.\n @memberof ChineseCalendar\n @param dateString {string} String representing a Chinese date\n @return {CDate} The new date.\n @throws Error if an invalid date. */\n fromString: function(dateString) {\n var match = dateString.match(DATE_REGEXP);\n\n var year = this._validateYear(+match[1]);\n\n var month = +match[2];\n var isIntercalary = !!match[3];\n var monthIndex = this.toMonthIndex(year, month, isIntercalary);\n\n var day = +match[4];\n\n return this.newDate(year, monthIndex, day);\n },\n\n /** Add period(s) to a date.\n Cater for no year zero.\n @memberof ChineseCalendar\n @param date {CDate} The starting date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if a different calendar used. */\n add: function(date, offset, period) {\n var year = date.year();\n var monthIndex = date.month();\n var isIntercalary = this.isIntercalaryMonth(year, monthIndex);\n var month = this.toChineseMonth(year, monthIndex);\n\n var cdate = Object.getPrototypeOf(ChineseCalendar.prototype)\n .add.call(this, date, offset, period);\n\n if (period === 'y') {\n // Resync month\n var resultYear = cdate.year();\n var resultMonthIndex = cdate.month();\n\n // Using the fact the month index of an intercalary month\n // equals its month number:\n var resultCanBeIntercalaryMonth =\n this.isIntercalaryMonth(resultYear, month);\n\n var correctedMonthIndex =\n (isIntercalary && resultCanBeIntercalaryMonth) ?\n this.toMonthIndex(resultYear, month, true) :\n this.toMonthIndex(resultYear, month, false);\n\n if (correctedMonthIndex !== resultMonthIndex) {\n cdate.month(correctedMonthIndex);\n }\n }\n\n return cdate;\n },\n});\n\n// Used by ChineseCalendar.prototype.fromString\nvar DATE_REGEXP = /^\\s*(-?\\d\\d\\d\\d|\\d\\d)[-/](\\d?\\d)([iI]?)[-/](\\d?\\d)/m;\nvar MONTH_NUMBER_REGEXP = /^\\d?\\d[iI]?/m;\nvar MONTH_NAME_REGEXP = /^闰?十?[一二三四五六七八九]?月/m;\nvar MONTH_SHORT_NAME_REGEXP = /^闰?十?[一二三四五六七八九]?/m;\n\n// Chinese calendar implementation\nmain.calendars.chinese = ChineseCalendar;\n\n// Chinese calendar tables from year 1888 to 2111\n//\n// Source:\n// https://github.com/isee15/Lunar-Solar-Calendar-Converter.git\n\n// Table of intercalary months and days per month from year 1888 to 2111\n//\n// bit (12 - i): days in the i^th month\n// (= 0 if i^th lunar month has 29 days)\n// (= 1 if i^th lunar month has 30 days)\n// (first month in lunar year is i = 0)\n// bits (13,14,15,16): intercalary month\n// (= 0 if lunar year has no intercalary month)\nvar LUNAR_MONTH_DAYS = [1887, 0x1694, 0x16aa, 0x4ad5,\n 0xab6, 0xc4b7, 0x4ae, 0xa56, 0xb52a, 0x1d2a, 0xd54, 0x75aa, 0x156a,\n 0x1096d, 0x95c, 0x14ae, 0xaa4d, 0x1a4c, 0x1b2a, 0x8d55, 0xad4,\n 0x135a, 0x495d, 0x95c, 0xd49b, 0x149a, 0x1a4a, 0xbaa5, 0x16a8,\n 0x1ad4, 0x52da, 0x12b6, 0xe937, 0x92e, 0x1496, 0xb64b, 0xd4a,\n 0xda8, 0x95b5, 0x56c, 0x12ae, 0x492f, 0x92e, 0xcc96, 0x1a94,\n 0x1d4a, 0xada9, 0xb5a, 0x56c, 0x726e, 0x125c, 0xf92d, 0x192a,\n 0x1a94, 0xdb4a, 0x16aa, 0xad4, 0x955b, 0x4ba, 0x125a, 0x592b,\n 0x152a, 0xf695, 0xd94, 0x16aa, 0xaab5, 0x9b4, 0x14b6, 0x6a57,\n 0xa56, 0x1152a, 0x1d2a, 0xd54, 0xd5aa, 0x156a, 0x96c, 0x94ae,\n 0x14ae, 0xa4c, 0x7d26, 0x1b2a, 0xeb55, 0xad4, 0x12da, 0xa95d,\n 0x95a, 0x149a, 0x9a4d, 0x1a4a, 0x11aa5, 0x16a8, 0x16d4, 0xd2da,\n 0x12b6, 0x936, 0x9497, 0x1496, 0x1564b, 0xd4a, 0xda8, 0xd5b4,\n 0x156c, 0x12ae, 0xa92f, 0x92e, 0xc96, 0x6d4a, 0x1d4a, 0x10d65,\n 0xb58, 0x156c, 0xb26d, 0x125c, 0x192c, 0x9a95, 0x1a94, 0x1b4a,\n 0x4b55, 0xad4, 0xf55b, 0x4ba, 0x125a, 0xb92b, 0x152a, 0x1694,\n 0x96aa, 0x15aa, 0x12ab5, 0x974, 0x14b6, 0xca57, 0xa56, 0x1526,\n 0x8e95, 0xd54, 0x15aa, 0x49b5, 0x96c, 0xd4ae, 0x149c, 0x1a4c,\n 0xbd26, 0x1aa6, 0xb54, 0x6d6a, 0x12da, 0x1695d, 0x95a, 0x149a,\n 0xda4b, 0x1a4a, 0x1aa4, 0xbb54, 0x16b4, 0xada, 0x495b, 0x936,\n 0xf497, 0x1496, 0x154a, 0xb6a5, 0xda4, 0x15b4, 0x6ab6, 0x126e,\n 0x1092f, 0x92e, 0xc96, 0xcd4a, 0x1d4a, 0xd64, 0x956c, 0x155c,\n 0x125c, 0x792e, 0x192c, 0xfa95, 0x1a94, 0x1b4a, 0xab55, 0xad4,\n 0x14da, 0x8a5d, 0xa5a, 0x1152b, 0x152a, 0x1694, 0xd6aa, 0x15aa,\n 0xab4, 0x94ba, 0x14b6, 0xa56, 0x7527, 0xd26, 0xee53, 0xd54, 0x15aa,\n 0xa9b5, 0x96c, 0x14ae, 0x8a4e, 0x1a4c, 0x11d26, 0x1aa4, 0x1b54,\n 0xcd6a, 0xada, 0x95c, 0x949d, 0x149a, 0x1a2a, 0x5b25, 0x1aa4,\n 0xfb52, 0x16b4, 0xaba, 0xa95b, 0x936, 0x1496, 0x9a4b, 0x154a,\n 0x136a5, 0xda4, 0x15ac];\n\n// Table of Chinese New Years from year 1888 to 2111\n// \n// bits (0 to 4): solar day\n// bits (5 to 8): solar month\n// bits (9 to 20): solar year\nvar CHINESE_NEW_YEAR = [1887, 0xec04c, 0xec23f, 0xec435, 0xec649,\n 0xec83e, 0xeca51, 0xecc46, 0xece3a, 0xed04d, 0xed242, 0xed436,\n 0xed64a, 0xed83f, 0xeda53, 0xedc48, 0xede3d, 0xee050, 0xee244,\n 0xee439, 0xee64d, 0xee842, 0xeea36, 0xeec4a, 0xeee3e, 0xef052,\n 0xef246, 0xef43a, 0xef64e, 0xef843, 0xefa37, 0xefc4b, 0xefe41,\n 0xf0054, 0xf0248, 0xf043c, 0xf0650, 0xf0845, 0xf0a38, 0xf0c4d,\n 0xf0e42, 0xf1037, 0xf124a, 0xf143e, 0xf1651, 0xf1846, 0xf1a3a,\n 0xf1c4e, 0xf1e44, 0xf2038, 0xf224b, 0xf243f, 0xf2653, 0xf2848,\n 0xf2a3b, 0xf2c4f, 0xf2e45, 0xf3039, 0xf324d, 0xf3442, 0xf3636,\n 0xf384a, 0xf3a3d, 0xf3c51, 0xf3e46, 0xf403b, 0xf424e, 0xf4443,\n 0xf4638, 0xf484c, 0xf4a3f, 0xf4c52, 0xf4e48, 0xf503c, 0xf524f,\n 0xf5445, 0xf5639, 0xf584d, 0xf5a42, 0xf5c35, 0xf5e49, 0xf603e,\n 0xf6251, 0xf6446, 0xf663b, 0xf684f, 0xf6a43, 0xf6c37, 0xf6e4b,\n 0xf703f, 0xf7252, 0xf7447, 0xf763c, 0xf7850, 0xf7a45, 0xf7c39,\n 0xf7e4d, 0xf8042, 0xf8254, 0xf8449, 0xf863d, 0xf8851, 0xf8a46,\n 0xf8c3b, 0xf8e4f, 0xf9044, 0xf9237, 0xf944a, 0xf963f, 0xf9853,\n 0xf9a47, 0xf9c3c, 0xf9e50, 0xfa045, 0xfa238, 0xfa44c, 0xfa641,\n 0xfa836, 0xfaa49, 0xfac3d, 0xfae52, 0xfb047, 0xfb23a, 0xfb44e,\n 0xfb643, 0xfb837, 0xfba4a, 0xfbc3f, 0xfbe53, 0xfc048, 0xfc23c,\n 0xfc450, 0xfc645, 0xfc839, 0xfca4c, 0xfcc41, 0xfce36, 0xfd04a,\n 0xfd23d, 0xfd451, 0xfd646, 0xfd83a, 0xfda4d, 0xfdc43, 0xfde37,\n 0xfe04b, 0xfe23f, 0xfe453, 0xfe648, 0xfe83c, 0xfea4f, 0xfec44,\n 0xfee38, 0xff04c, 0xff241, 0xff436, 0xff64a, 0xff83e, 0xffa51,\n 0xffc46, 0xffe3a, 0x10004e, 0x100242, 0x100437, 0x10064b, 0x100841,\n 0x100a53, 0x100c48, 0x100e3c, 0x10104f, 0x101244, 0x101438,\n 0x10164c, 0x101842, 0x101a35, 0x101c49, 0x101e3d, 0x102051,\n 0x102245, 0x10243a, 0x10264e, 0x102843, 0x102a37, 0x102c4b,\n 0x102e3f, 0x103053, 0x103247, 0x10343b, 0x10364f, 0x103845,\n 0x103a38, 0x103c4c, 0x103e42, 0x104036, 0x104249, 0x10443d,\n 0x104651, 0x104846, 0x104a3a, 0x104c4e, 0x104e43, 0x105038,\n 0x10524a, 0x10543e, 0x105652, 0x105847, 0x105a3b, 0x105c4f,\n 0x105e45, 0x106039, 0x10624c, 0x106441, 0x106635, 0x106849,\n 0x106a3d, 0x106c51, 0x106e47, 0x10703c, 0x10724f, 0x107444,\n 0x107638, 0x10784c, 0x107a3f, 0x107c53, 0x107e48];\n\nfunction toLunar(yearOrDate, monthOrResult, day, result) {\n var solarDate;\n var lunarDate;\n\n if(typeof yearOrDate === 'object') {\n solarDate = yearOrDate;\n lunarDate = monthOrResult || {};\n\n } else {\n var isValidYear = (typeof yearOrDate === 'number') &&\n (yearOrDate >= 1888) && (yearOrDate <= 2111);\n if(!isValidYear)\n throw new Error(\"Solar year outside range 1888-2111\");\n\n var isValidMonth = (typeof monthOrResult === 'number') &&\n (monthOrResult >= 1) && (monthOrResult <= 12);\n if(!isValidMonth)\n throw new Error(\"Solar month outside range 1 - 12\");\n\n var isValidDay = (typeof day === 'number') && (day >= 1) && (day <= 31);\n if(!isValidDay)\n throw new Error(\"Solar day outside range 1 - 31\");\n\n solarDate = {\n year: yearOrDate,\n month: monthOrResult,\n day: day,\n };\n lunarDate = result || {};\n }\n\n // Compute Chinese new year and lunar year\n var chineseNewYearPackedDate =\n CHINESE_NEW_YEAR[solarDate.year - CHINESE_NEW_YEAR[0]];\n\n var packedDate = (solarDate.year << 9) | (solarDate.month << 5)\n | solarDate.day;\n\n lunarDate.year = (packedDate >= chineseNewYearPackedDate) ?\n solarDate.year :\n solarDate.year - 1;\n\n chineseNewYearPackedDate =\n CHINESE_NEW_YEAR[lunarDate.year - CHINESE_NEW_YEAR[0]];\n\n var y = (chineseNewYearPackedDate >> 9) & 0xFFF;\n var m = (chineseNewYearPackedDate >> 5) & 0x0F;\n var d = chineseNewYearPackedDate & 0x1F;\n\n // Compute days from new year\n var daysFromNewYear;\n\n var chineseNewYearJSDate = new Date(y, m -1, d);\n var jsDate = new Date(solarDate.year, solarDate.month - 1, solarDate.day);\n\n daysFromNewYear = Math.round(\n (jsDate - chineseNewYearJSDate) / (24 * 3600 * 1000));\n\n // Compute lunar month and day\n var monthDaysTable = LUNAR_MONTH_DAYS[lunarDate.year - LUNAR_MONTH_DAYS[0]];\n\n var i;\n for(i = 0; i < 13; i++) {\n var daysInMonth = (monthDaysTable & (1 << (12 - i))) ? 30 : 29;\n\n if (daysFromNewYear < daysInMonth) {\n break;\n }\n\n daysFromNewYear -= daysInMonth;\n }\n\n var intercalaryMonth = monthDaysTable >> 13;\n if (!intercalaryMonth || i < intercalaryMonth) {\n lunarDate.isIntercalary = false;\n lunarDate.month = 1 + i;\n } else if (i === intercalaryMonth) {\n lunarDate.isIntercalary = true;\n lunarDate.month = i;\n } else {\n lunarDate.isIntercalary = false;\n lunarDate.month = i;\n }\n\n lunarDate.day = 1 + daysFromNewYear;\n\n return lunarDate;\n}\n\nfunction toSolar(yearOrDate, monthOrResult, day, isIntercalaryOrResult, result) {\n var solarDate;\n var lunarDate;\n\n if(typeof yearOrDate === 'object') {\n lunarDate = yearOrDate;\n solarDate = monthOrResult || {};\n\n } else {\n var isValidYear = (typeof yearOrDate === 'number') &&\n (yearOrDate >= 1888) && (yearOrDate <= 2111);\n if(!isValidYear)\n throw new Error(\"Lunar year outside range 1888-2111\");\n\n var isValidMonth = (typeof monthOrResult === 'number') &&\n (monthOrResult >= 1) && (monthOrResult <= 12);\n if(!isValidMonth)\n throw new Error(\"Lunar month outside range 1 - 12\");\n\n var isValidDay = (typeof day === 'number') && (day >= 1) && (day <= 30);\n if(!isValidDay)\n throw new Error(\"Lunar day outside range 1 - 30\");\n\n var isIntercalary;\n if(typeof isIntercalaryOrResult === 'object') {\n isIntercalary = false;\n solarDate = isIntercalaryOrResult;\n } else {\n isIntercalary = !!isIntercalaryOrResult;\n solarDate = result || {};\n }\n\n lunarDate = {\n year: yearOrDate,\n month: monthOrResult,\n day: day,\n isIntercalary: isIntercalary,\n };\n }\n\n // Compute days from new year\n var daysFromNewYear;\n\n daysFromNewYear = lunarDate.day - 1;\n\n var monthDaysTable = LUNAR_MONTH_DAYS[lunarDate.year - LUNAR_MONTH_DAYS[0]];\n var intercalaryMonth = monthDaysTable >> 13;\n\n var monthsFromNewYear;\n if (!intercalaryMonth) {\n monthsFromNewYear = lunarDate.month - 1;\n } else if (lunarDate.month > intercalaryMonth) {\n monthsFromNewYear = lunarDate.month;\n } else if (lunarDate.isIntercalary) {\n monthsFromNewYear = lunarDate.month;\n } else {\n monthsFromNewYear = lunarDate.month - 1;\n }\n\n for(var i = 0; i < monthsFromNewYear; i++) {\n var daysInMonth = (monthDaysTable & (1 << (12 - i))) ? 30 : 29;\n daysFromNewYear += daysInMonth;\n }\n\n // Compute Chinese new year\n var packedDate = CHINESE_NEW_YEAR[lunarDate.year - CHINESE_NEW_YEAR[0]];\n\n var y = (packedDate >> 9) & 0xFFF;\n var m = (packedDate >> 5) & 0x0F;\n var d = packedDate & 0x1F;\n\n // Compute solar date\n var jsDate = new Date(y, m - 1, d + daysFromNewYear);\n\n solarDate.year = jsDate.getFullYear();\n solarDate.month = 1 + jsDate.getMonth();\n solarDate.day = jsDate.getDate();\n\n return solarDate;\n}\n\n\n},{\"../main\":347,\"object-assign\":247}],334:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Coptic calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Coptic calendar.\n See http://en.wikipedia.org/wiki/Coptic_calendar.\n See also Calendrical Calculations: The Millennium Edition\n (http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml).\n @class CopticCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction CopticCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nCopticCalendar.prototype = new main.baseCalendar;\n\nassign(CopticCalendar.prototype, {\n /** The calendar name.\n @memberof CopticCalendar */\n name: 'Coptic',\n /** Julian date of start of Coptic epoch: 29 August 284 CE (Gregorian).\n @memberof CopticCalendar */\n jdEpoch: 1825029.5,\n /** Days per month in a common year.\n @memberof CopticCalendar */\n daysPerMonth: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5],\n /** true if has a year zero, false if not.\n @memberof CopticCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof CopticCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof CopticCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof CopticCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof CopticCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Coptic',\n epochs: ['BAM', 'AM'],\n monthNames: ['Thout', 'Paopi', 'Hathor', 'Koiak', 'Tobi', 'Meshir',\n 'Paremhat', 'Paremoude', 'Pashons', 'Paoni', 'Epip', 'Mesori', 'Pi Kogi Enavot'],\n monthNamesShort: ['Tho', 'Pao', 'Hath', 'Koi', 'Tob', 'Mesh',\n 'Pat', 'Pad', 'Pash', 'Pao', 'Epi', 'Meso', 'PiK'],\n dayNames: ['Tkyriaka', 'Pesnau', 'Pshoment', 'Peftoou', 'Ptiou', 'Psoou', 'Psabbaton'],\n dayNamesShort: ['Tky', 'Pes', 'Psh', 'Pef', 'Pti', 'Pso', 'Psa'],\n dayNamesMin: ['Tk', 'Pes', 'Psh', 'Pef', 'Pt', 'Pso', 'Psa'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero\n return year % 4 === 3 || year % 4 === -1;\n },\n\n /** Retrieve the number of months in a year.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay,\n main.local.invalidYear || main.regionalOptions[''].invalidYear);\n return 13;\n },\n\n /** Determine the week of the year for a date.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number) the month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 13 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof CopticCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param month {number} The month to examine.\n @param day {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof CopticCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number) the month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n if (year < 0) { year++; } // No year zero\n return date.day() + (date.month() - 1) * 30 +\n (year - 1) * 365 + Math.floor(year / 4) + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof CopticCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var c = Math.floor(jd) + 0.5 - this.jdEpoch;\n var year = Math.floor((c - Math.floor((c + 366) / 1461)) / 365) + 1;\n if (year <= 0) { year--; } // No year zero\n c = Math.floor(jd) + 0.5 - this.newDate(year, 1, 1).toJD();\n var month = Math.floor(c / 30) + 1;\n var day = c - (month - 1) * 30 + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Coptic calendar implementation\nmain.calendars.coptic = CopticCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],335:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Discworld calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) January 2016.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Discworld calendar - Unseen University version.\n See also http://wiki.lspace.org/mediawiki/Discworld_calendar\n and http://discworld.wikia.com/wiki/Discworld_calendar.\n @class DiscworldCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction DiscworldCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nDiscworldCalendar.prototype = new main.baseCalendar;\n\nassign(DiscworldCalendar.prototype, {\n /** The calendar name.\n @memberof DiscworldCalendar */\n name: 'Discworld',\n /** Julian date of start of Discworld epoch: 1 January 0001 CE.\n @memberof DiscworldCalendar */\n jdEpoch: 1721425.5,\n /** Days per month in a common year.\n @memberof DiscworldCalendar */\n daysPerMonth: [16, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32],\n /** true if has a year zero, false if not.\n @memberof DiscworldCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof DiscworldCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof DiscworldCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof DiscworldCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof DiscworldCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Discworld',\n epochs: ['BUC', 'UC'],\n monthNames: ['Ick', 'Offle', 'February', 'March', 'April', 'May', 'June',\n 'Grune', 'August', 'Spune', 'Sektober', 'Ember', 'December'],\n monthNamesShort: ['Ick', 'Off', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Gru', 'Aug', 'Spu', 'Sek', 'Emb', 'Dec'],\n dayNames: ['Sunday', 'Octeday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Oct', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Oc', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 2,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return false;\n },\n\n /** Retrieve the number of months in a year.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 13;\n },\n\n /** Retrieve the number of days in a year.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 400;\n },\n\n /** Determine the week of the year for a date.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 8) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1];\n },\n\n /** Retrieve the number of days in a week.\n @memberof DiscworldCalendar\n @return {number} The number of days. */\n daysInWeek: function() {\n return 8;\n },\n\n /** Retrieve the day of the week for a date.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The day of the week: 0 to number of days - 1.\n @throws Error if an invalid date or a different calendar used. */\n dayOfWeek: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return (date.day() + 1) % 8;\n },\n\n /** Determine whether this date is a week day.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n var dow = this.dayOfWeek(year, month, day);\n return (dow >= 2 && dow <= 6);\n },\n\n /** Retrieve additional information about a date.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return {century: centuries[Math.floor((date.year() - 1) / 100) + 1] || ''};\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof DiscworldCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year() + (date.year() < 0 ? 1 : 0);\n month = date.month();\n day = date.day();\n return day + (month > 1 ? 16 : 0) + (month > 2 ? (month - 2) * 32 : 0) +\n (year - 1) * 400 + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof DiscworldCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd + 0.5) - Math.floor(this.jdEpoch) - 1;\n var year = Math.floor(jd / 400) + 1;\n jd -= (year - 1) * 400;\n jd += (jd > 15 ? 16 : 0);\n var month = Math.floor(jd / 32) + 1;\n var day = jd - (month - 1) * 32 + 1;\n return this.newDate(year <= 0 ? year - 1 : year, month, day);\n }\n});\n\n// Names of the centuries\nvar centuries = {\n 20: 'Fruitbat',\n 21: 'Anchovy'\n};\n\n// Discworld calendar implementation\nmain.calendars.discworld = DiscworldCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],336:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Ethiopian calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Ethiopian calendar.\n See http://en.wikipedia.org/wiki/Ethiopian_calendar.\n See also Calendrical Calculations: The Millennium Edition\n (http://emr.cs.iit.edu/home/reingold/calendar-book/index.shtml).\n @class EthiopianCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction EthiopianCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nEthiopianCalendar.prototype = new main.baseCalendar;\n\nassign(EthiopianCalendar.prototype, {\n /** The calendar name.\n @memberof EthiopianCalendar */\n name: 'Ethiopian',\n /** Julian date of start of Ethiopian epoch: 27 August 8 CE (Gregorian).\n @memberof EthiopianCalendar */\n jdEpoch: 1724220.5,\n /** Days per month in a common year.\n @memberof EthiopianCalendar */\n daysPerMonth: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5],\n /** true if has a year zero, false if not.\n @memberof EthiopianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof EthiopianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof EthiopianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof EthiopianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof EthiopianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Ethiopian',\n epochs: ['BEE', 'EE'],\n monthNames: ['Meskerem', 'Tikemet', 'Hidar', 'Tahesas', 'Tir', 'Yekatit',\n 'Megabit', 'Miazia', 'Genbot', 'Sene', 'Hamle', 'Nehase', 'Pagume'],\n monthNamesShort: ['Mes', 'Tik', 'Hid', 'Tah', 'Tir', 'Yek',\n 'Meg', 'Mia', 'Gen', 'Sen', 'Ham', 'Neh', 'Pag'],\n dayNames: ['Ehud', 'Segno', 'Maksegno', 'Irob', 'Hamus', 'Arb', 'Kidame'],\n dayNamesShort: ['Ehu', 'Seg', 'Mak', 'Iro', 'Ham', 'Arb', 'Kid'],\n dayNamesMin: ['Eh', 'Se', 'Ma', 'Ir', 'Ha', 'Ar', 'Ki'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero\n return year % 4 === 3 || year % 4 === -1;\n },\n\n /** Retrieve the number of months in a year.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay,\n main.local.invalidYear || main.regionalOptions[''].invalidYear);\n return 13;\n },\n\n /** Determine the week of the year for a date.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 13 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof EthiopianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n if (year < 0) { year++; } // No year zero\n return date.day() + (date.month() - 1) * 30 +\n (year - 1) * 365 + Math.floor(year / 4) + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof EthiopianCalendar\n @param jd {number} the Julian date to convert.\n @return {CDate} the equivalent date. */\n fromJD: function(jd) {\n var c = Math.floor(jd) + 0.5 - this.jdEpoch;\n var year = Math.floor((c - Math.floor((c + 366) / 1461)) / 365) + 1;\n if (year <= 0) { year--; } // No year zero\n c = Math.floor(jd) + 0.5 - this.newDate(year, 1, 1).toJD();\n var month = Math.floor(c / 30) + 1;\n var day = c - (month - 1) * 30 + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Ethiopian calendar implementation\nmain.calendars.ethiopian = EthiopianCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],337:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Hebrew calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Hebrew civil calendar.\n Based on code from http://www.fourmilab.ch/documents/calendar/.\n See also http://en.wikipedia.org/wiki/Hebrew_calendar.\n @class HebrewCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction HebrewCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nHebrewCalendar.prototype = new main.baseCalendar;\n\nassign(HebrewCalendar.prototype, {\n /** The calendar name.\n @memberof HebrewCalendar */\n name: 'Hebrew',\n /** Julian date of start of Hebrew epoch: 7 October 3761 BCE.\n @memberof HebrewCalendar */\n jdEpoch: 347995.5,\n /** Days per month in a common year.\n @memberof HebrewCalendar */\n daysPerMonth: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 29],\n /** true if has a year zero, false if not.\n @memberof HebrewCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof HebrewCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof HebrewCalendar */\n firstMonth: 7,\n /** The minimum day number.\n @memberof HebrewCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof HebrewCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Hebrew',\n epochs: ['BAM', 'AM'],\n monthNames: ['Nisan', 'Iyar', 'Sivan', 'Tammuz', 'Av', 'Elul',\n 'Tishrei', 'Cheshvan', 'Kislev', 'Tevet', 'Shevat', 'Adar', 'Adar II'],\n monthNamesShort: ['Nis', 'Iya', 'Siv', 'Tam', 'Av', 'Elu', 'Tis', 'Che', 'Kis', 'Tev', 'She', 'Ada', 'Ad2'],\n dayNames: ['Yom Rishon', 'Yom Sheni', 'Yom Shlishi', 'Yom Revi\\'i', 'Yom Chamishi', 'Yom Shishi', 'Yom Shabbat'],\n dayNamesShort: ['Ris', 'She', 'Shl', 'Rev', 'Cha', 'Shi', 'Sha'],\n dayNamesMin: ['Ri','She','Shl','Re','Ch','Shi','Sha'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return this._leapYear(date.year());\n },\n\n /** Determine whether this date is in a leap year.\n @memberof HebrewCalendar\n @private\n @param year {number} The year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n _leapYear: function(year) {\n year = (year < 0 ? year + 1 : year);\n return mod(year * 7 + 1, 19) < 7;\n },\n\n /** Retrieve the number of months in a year.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return this._leapYear(year.year ? year.year() : year) ? 13 : 12;\n },\n\n /** Determine the week of the year for a date.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n year = date.year();\n return this.toJD((year === -1 ? +1 : year + 1), 7, 1) - this.toJD(year, 7, 1);\n },\n\n /** Retrieve the number of days in a month.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n if (year.year) {\n month = year.month();\n year = year.year();\n }\n this._validate(year, month, this.minDay, main.local.invalidMonth);\n return (month === 12 && this.leapYear(year) ? 30 : // Adar I\n (month === 8 && mod(this.daysInYear(year), 10) === 5 ? 30 : // Cheshvan in shlemah year\n (month === 9 && mod(this.daysInYear(year), 10) === 3 ? 29 : // Kislev in chaserah year\n this.daysPerMonth[month - 1])));\n },\n\n /** Determine whether this date is a week day.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 6;\n },\n\n /** Retrieve additional information about a date - year type.\n @memberof HebrewCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return {yearType: (this.leapYear(date) ? 'embolismic' : 'common') + ' ' +\n ['deficient', 'regular', 'complete'][this.daysInYear(date) % 10 - 3]};\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof HebrewCalendar\n @param year {CDate)|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n var adjYear = (year <= 0 ? year + 1 : year);\n var jd = this.jdEpoch + this._delay1(adjYear) +\n this._delay2(adjYear) + day + 1;\n if (month < 7) {\n for (var m = 7; m <= this.monthsInYear(year); m++) {\n jd += this.daysInMonth(year, m);\n }\n for (var m = 1; m < month; m++) {\n jd += this.daysInMonth(year, m);\n }\n }\n else {\n for (var m = 7; m < month; m++) {\n jd += this.daysInMonth(year, m);\n }\n }\n return jd;\n },\n\n /** Test for delay of start of new year and to avoid\n Sunday, Wednesday, or Friday as start of the new year.\n @memberof HebrewCalendar\n @private\n @param year {number} The year to examine.\n @return {number} The days to offset by. */\n _delay1: function(year) {\n var months = Math.floor((235 * year - 234) / 19);\n var parts = 12084 + 13753 * months;\n var day = months * 29 + Math.floor(parts / 25920);\n if (mod(3 * (day + 1), 7) < 3) {\n day++;\n }\n return day;\n },\n\n /** Check for delay in start of new year due to length of adjacent years.\n @memberof HebrewCalendar\n @private\n @param year {number} The year to examine.\n @return {number} The days to offset by. */\n _delay2: function(year) {\n var last = this._delay1(year - 1);\n var present = this._delay1(year);\n var next = this._delay1(year + 1);\n return ((next - present) === 356 ? 2 : ((present - last) === 382 ? 1 : 0));\n },\n\n /** Create a new date from a Julian date.\n @memberof HebrewCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5;\n var year = Math.floor(((jd - this.jdEpoch) * 98496.0) / 35975351.0) - 1;\n while (jd >= this.toJD((year === -1 ? +1 : year + 1), 7, 1)) {\n year++;\n }\n var month = (jd < this.toJD(year, 1, 1)) ? 7 : 1;\n while (jd > this.toJD(year, month, this.daysInMonth(year, month))) {\n month++;\n }\n var day = jd - this.toJD(year, month, 1) + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Modulus function which works for non-integers.\nfunction mod(a, b) {\n return a - (b * Math.floor(a / b));\n}\n\n// Hebrew calendar implementation\nmain.calendars.hebrew = HebrewCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],338:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Islamic calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Islamic or '16 civil' calendar.\n Based on code from http://www.iranchamber.com/calendar/converter/iranian_calendar_converter.php.\n See also http://en.wikipedia.org/wiki/Islamic_calendar.\n @class IslamicCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction IslamicCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nIslamicCalendar.prototype = new main.baseCalendar;\n\nassign(IslamicCalendar.prototype, {\n /** The calendar name.\n @memberof IslamicCalendar */\n name: 'Islamic',\n /** Julian date of start of Islamic epoch: 16 July 622 CE.\n @memberof IslamicCalendar */\n jdEpoch: 1948439.5,\n /** Days per month in a common year.\n @memberof IslamicCalendar */\n daysPerMonth: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29],\n /** true if has a year zero, false if not.\n @memberof IslamicCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof IslamicCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof IslamicCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof IslamicCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof IslamicCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Islamic',\n epochs: ['BH', 'AH'],\n monthNames: ['Muharram', 'Safar', 'Rabi\\' al-awwal', 'Rabi\\' al-thani', 'Jumada al-awwal', 'Jumada al-thani',\n 'Rajab', 'Sha\\'aban', 'Ramadan', 'Shawwal', 'Dhu al-Qi\\'dah', 'Dhu al-Hijjah'],\n monthNamesShort: ['Muh', 'Saf', 'Rab1', 'Rab2', 'Jum1', 'Jum2', 'Raj', 'Sha\\'', 'Ram', 'Shaw', 'DhuQ', 'DhuH'],\n dayNames: ['Yawm al-ahad', 'Yawm al-ithnayn', 'Yawm ath-thulaathaa\\'',\n 'Yawm al-arbi\\'aa\\'', 'Yawm al-khamīs', 'Yawm al-jum\\'a', 'Yawm as-sabt'],\n dayNamesShort: ['Aha', 'Ith', 'Thu', 'Arb', 'Kha', 'Jum', 'Sab'],\n dayNamesMin: ['Ah','It','Th','Ar','Kh','Ju','Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 6,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return (date.year() * 11 + 14) % 30 < 11;\n },\n\n /** Determine the week of the year for a date.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n return (this.leapYear(year) ? 355 : 354);\n },\n\n /** Retrieve the number of days in a month.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 5;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof IslamicCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n year = (year <= 0 ? year + 1 : year);\n return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 +\n Math.floor((3 + (11 * year)) / 30) + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof IslamicCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5;\n var year = Math.floor((30 * (jd - this.jdEpoch) + 10646) / 10631);\n year = (year <= 0 ? year - 1 : year);\n var month = Math.min(12, Math.ceil((jd - 29 - this.toJD(year, 1, 1)) / 29.5) + 1);\n var day = jd - this.toJD(year, month, 1) + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Islamic (16 civil) calendar implementation\nmain.calendars.islamic = IslamicCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],339:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Julian calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Julian calendar.\n Based on code from http://www.fourmilab.ch/documents/calendar/.\n See also http://en.wikipedia.org/wiki/Julian_calendar.\n @class JulianCalendar\n @augments BaseCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction JulianCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nJulianCalendar.prototype = new main.baseCalendar;\n\nassign(JulianCalendar.prototype, {\n /** The calendar name.\n @memberof JulianCalendar */\n name: 'Julian',\n /** Julian date of start of Julian epoch: 1 January 0001 AD = 30 December 0001 BCE.\n @memberof JulianCalendar */\n jdEpoch: 1721423.5,\n /** Days per month in a common year.\n @memberof JulianCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof JulianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof JulianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof JulianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof JulianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof JulianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Julian',\n epochs: ['BC', 'AD'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'mm/dd/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = (date.year() < 0 ? date.year() + 1 : date.year()); // No year zero\n return (year % 4) === 0;\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Thursday of this week starting on Monday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(4 - (checkDate.dayOfWeek() || 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof JulianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} True if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof JulianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n if (year < 0) { year++; } // No year zero\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n if (month <= 2) {\n year--;\n month += 12;\n }\n return Math.floor(365.25 * (year + 4716)) +\n Math.floor(30.6001 * (month + 1)) + day - 1524.5;\n },\n\n /** Create a new date from a Julian date.\n @memberof JulianCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n var a = Math.floor(jd + 0.5);\n var b = a + 1524;\n var c = Math.floor((b - 122.1) / 365.25);\n var d = Math.floor(365.25 * c);\n var e = Math.floor((b - d) / 30.6001);\n var month = e - Math.floor(e < 14 ? 1 : 13);\n var year = c - Math.floor(month > 2 ? 4716 : 4715);\n var day = b - d - Math.floor(30.6001 * e);\n if (year <= 0) { year--; } // No year zero\n return this.newDate(year, month, day);\n }\n});\n\n// Julian calendar implementation\nmain.calendars.julian = JulianCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],340:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Mayan calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Mayan Long Count calendar.\n See also http://en.wikipedia.org/wiki/Mayan_calendar.\n @class MayanCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction MayanCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nMayanCalendar.prototype = new main.baseCalendar;\n\nassign(MayanCalendar.prototype, {\n /** The calendar name.\n @memberof MayanCalendar */\n name: 'Mayan',\n /** Julian date of start of Mayan epoch: 11 August 3114 BCE.\n @memberof MayanCalendar */\n jdEpoch: 584282.5,\n /** true if has a year zero, false if not.\n @memberof MayanCalendar */\n hasYearZero: true,\n /** The minimum month number.\n @memberof MayanCalendar */\n minMonth: 0,\n /** The first month in the year.\n @memberof MayanCalendar */\n firstMonth: 0,\n /** The minimum day number.\n @memberof MayanCalendar */\n minDay: 0,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof MayanCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left.\n @property haabMonths {string[]} The names of the Haab months.\n @property tzolkinMonths {string[]} The names of the Tzolkin months. */\n regionalOptions: { // Localisations\n '': {\n name: 'Mayan',\n epochs: ['', ''],\n monthNames: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17'],\n monthNamesShort: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17'],\n dayNames: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],\n dayNamesShort: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],\n dayNamesMin: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],\n digits: null,\n dateFormat: 'YYYY.m.d',\n firstDay: 0,\n isRTL: false,\n haabMonths: ['Pop', 'Uo', 'Zip', 'Zotz', 'Tzec', 'Xul', 'Yaxkin', 'Mol', 'Chen', 'Yax',\n 'Zac', 'Ceh', 'Mac', 'Kankin', 'Muan', 'Pax', 'Kayab', 'Cumku', 'Uayeb'],\n tzolkinMonths: ['Imix', 'Ik', 'Akbal', 'Kan', 'Chicchan', 'Cimi', 'Manik', 'Lamat', 'Muluc', 'Oc',\n 'Chuen', 'Eb', 'Ben', 'Ix', 'Men', 'Cib', 'Caban', 'Etznab', 'Cauac', 'Ahau']\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return false;\n },\n\n /** Format the year, if not a simple sequential number.\n @memberof MayanCalendar\n @param year {CDate|number} The date to format or the year to format.\n @return {string} The formatted year.\n @throws Error if an invalid year or a different calendar used. */\n formatYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n year = date.year();\n var baktun = Math.floor(year / 400);\n year = year % 400;\n year += (year < 0 ? 400 : 0);\n var katun = Math.floor(year / 20);\n return baktun + '.' + katun + '.' + (year % 20);\n },\n\n /** Convert from the formatted year back to a single number.\n @memberof MayanCalendar\n @param years {string} The year as n.n.n.\n @return {number} The sequential year.\n @throws Error if an invalid value is supplied. */\n forYear: function(years) {\n years = years.split('.');\n if (years.length < 3) {\n throw 'Invalid Mayan year';\n }\n var year = 0;\n for (var i = 0; i < years.length; i++) {\n var y = parseInt(years[i], 10);\n if (Math.abs(y) > 19 || (i > 0 && y < 0)) {\n throw 'Invalid Mayan year';\n }\n year = year * 20 + y;\n }\n return year;\n },\n\n /** Retrieve the number of months in a year.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 18;\n },\n\n /** Determine the week of the year for a date.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n this._validate(year, month, day, main.local.invalidDate);\n return 0;\n },\n\n /** Retrieve the number of days in a year.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return 360;\n },\n\n /** Retrieve the number of days in a month.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n this._validate(year, month, this.minDay, main.local.invalidMonth);\n return 20;\n },\n\n /** Retrieve the number of days in a week.\n @memberof MayanCalendar\n @return {number} The number of days. */\n daysInWeek: function() {\n return 5; // Just for formatting\n },\n\n /** Retrieve the day of the week for a date.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The day of the week: 0 to number of days - 1.\n @throws Error if an invalid date or a different calendar used. */\n dayOfWeek: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return date.day();\n },\n\n /** Determine whether this date is a week day.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n this._validate(year, month, day, main.local.invalidDate);\n return true;\n },\n\n /** Retrieve additional information about a date - Haab and Tzolkin equivalents.\n @memberof MayanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var jd = date.toJD();\n var haab = this._toHaab(jd);\n var tzolkin = this._toTzolkin(jd);\n return {haabMonthName: this.local.haabMonths[haab[0] - 1],\n haabMonth: haab[0], haabDay: haab[1],\n tzolkinDayName: this.local.tzolkinMonths[tzolkin[0] - 1],\n tzolkinDay: tzolkin[0], tzolkinTrecena: tzolkin[1]};\n },\n\n /** Retrieve Haab date from a Julian date.\n @memberof MayanCalendar\n @private\n @param jd {number} The Julian date.\n @return {number[]} Corresponding Haab month and day. */\n _toHaab: function(jd) {\n jd -= this.jdEpoch;\n var day = mod(jd + 8 + ((18 - 1) * 20), 365);\n return [Math.floor(day / 20) + 1, mod(day, 20)];\n },\n\n /** Retrieve Tzolkin date from a Julian date.\n @memberof MayanCalendar\n @private\n @param jd {number} The Julian date.\n @return {number[]} Corresponding Tzolkin day and trecena. */\n _toTzolkin: function(jd) {\n jd -= this.jdEpoch;\n return [amod(jd + 20, 20), amod(jd + 4, 13)];\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof MayanCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n return date.day() + (date.month() * 20) + (date.year() * 360) + this.jdEpoch;\n },\n\n /** Create a new date from a Julian date.\n @memberof MayanCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5 - this.jdEpoch;\n var year = Math.floor(jd / 360);\n jd = jd % 360;\n jd += (jd < 0 ? 360 : 0);\n var month = Math.floor(jd / 20);\n var day = jd % 20;\n return this.newDate(year, month, day);\n }\n});\n\n// Modulus function which works for non-integers.\nfunction mod(a, b) {\n return a - (b * Math.floor(a / b));\n}\n\n// Modulus function which returns numerator if modulus is zero.\nfunction amod(a, b) {\n return mod(a - 1, b) + 1;\n}\n\n// Mayan calendar implementation\nmain.calendars.mayan = MayanCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],341:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Nanakshahi calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) January 2016.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Nanakshahi calendar.\n See also https://en.wikipedia.org/wiki/Nanakshahi_calendar.\n @class NanakshahiCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction NanakshahiCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nNanakshahiCalendar.prototype = new main.baseCalendar;\n\nvar gregorian = main.instance('gregorian');\n\nassign(NanakshahiCalendar.prototype, {\n /** The calendar name.\n @memberof NanakshahiCalendar */\n name: 'Nanakshahi',\n /** Julian date of start of Nanakshahi epoch: 14 March 1469 CE.\n @memberof NanakshahiCalendar */\n jdEpoch: 2257673.5,\n /** Days per month in a common year.\n @memberof NanakshahiCalendar */\n daysPerMonth: [31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30, 30],\n /** true if has a year zero, false if not.\n @memberof NanakshahiCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof NanakshahiCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof NanakshahiCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof NanakshahiCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof NanakshahiCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Nanakshahi',\n epochs: ['BN', 'AN'],\n monthNames: ['Chet', 'Vaisakh', 'Jeth', 'Harh', 'Sawan', 'Bhadon',\n 'Assu', 'Katak', 'Maghar', 'Poh', 'Magh', 'Phagun'],\n monthNamesShort: ['Che', 'Vai', 'Jet', 'Har', 'Saw', 'Bha', 'Ass', 'Kat', 'Mgr', 'Poh', 'Mgh', 'Pha'],\n dayNames: ['Somvaar', 'Mangalvar', 'Budhvaar', 'Veervaar', 'Shukarvaar', 'Sanicharvaar', 'Etvaar'],\n dayNamesShort: ['Som', 'Mangal', 'Budh', 'Veer', 'Shukar', 'Sanichar', 'Et'],\n dayNamesMin: ['So', 'Ma', 'Bu', 'Ve', 'Sh', 'Sa', 'Et'],\n digits: null,\n dateFormat: 'dd-mm-yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n main.local.invalidYear || main.regionalOptions[''].invalidYear);\n return gregorian.leapYear(date.year() + (date.year() < 1 ? 1 : 0) + 1469);\n },\n\n /** Determine the week of the year for a date.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Monday of this week starting on Monday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(1 - (checkDate.dayOfWeek() || 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof NanakshahiCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidMonth);\n var year = date.year();\n if (year < 0) { year++; } // No year zero\n var doy = date.day();\n for (var m = 1; m < date.month(); m++) {\n doy += this.daysPerMonth[m - 1];\n }\n return doy + gregorian.toJD(year + 1468, 3, 13);\n },\n\n /** Create a new date from a Julian date.\n @memberof NanakshahiCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd + 0.5);\n var year = Math.floor((jd - (this.jdEpoch - 1)) / 366);\n while (jd >= this.toJD(year + 1, 1, 1)) {\n year++;\n }\n var day = jd - Math.floor(this.toJD(year, 1, 1) + 0.5) + 1;\n var month = 1;\n while (day > this.daysInMonth(year, month)) {\n day -= this.daysInMonth(year, month);\n month++;\n }\n return this.newDate(year, month, day);\n }\n});\n\n// Nanakshahi calendar implementation\nmain.calendars.nanakshahi = NanakshahiCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],342:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Nepali calendar for jQuery v2.0.2.\n Written by Artur Neumann (ict.projects{at}nepal.inf.org) April 2013.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Nepali civil calendar.\n Based on the ideas from \n http://codeissue.com/articles/a04e050dea7468f/algorithm-to-convert-english-date-to-nepali-date-using-c-net\n and http://birenj2ee.blogspot.com/2011/04/nepali-calendar-in-java.html\n See also http://en.wikipedia.org/wiki/Nepali_calendar\n and https://en.wikipedia.org/wiki/Bikram_Samwat.\n @class NepaliCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction NepaliCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nNepaliCalendar.prototype = new main.baseCalendar;\n\nassign(NepaliCalendar.prototype, {\n /** The calendar name.\n @memberof NepaliCalendar */\n name: 'Nepali',\n /** Julian date of start of Nepali epoch: 14 April 57 BCE.\n @memberof NepaliCalendar */\n jdEpoch: 1700709.5,\n /** Days per month in a common year.\n @memberof NepaliCalendar */\n daysPerMonth: [31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n /** true if has a year zero, false if not.\n @memberof NepaliCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof NepaliCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof NepaliCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof NepaliCalendar */\n minDay: 1, \n /** The number of days in the year.\n @memberof NepaliCalendar */\n daysPerYear: 365,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof NepaliCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Nepali',\n epochs: ['BBS', 'ABS'],\n monthNames: ['Baisakh', 'Jestha', 'Ashadh', 'Shrawan', 'Bhadra', 'Ashwin',\n 'Kartik', 'Mangsir', 'Paush', 'Mangh', 'Falgun', 'Chaitra'],\n monthNamesShort: ['Bai', 'Je', 'As', 'Shra', 'Bha', 'Ash', 'Kar', 'Mang', 'Pau', 'Ma', 'Fal', 'Chai'],\n dayNames: ['Aaitabaar', 'Sombaar', 'Manglbaar', 'Budhabaar', 'Bihibaar', 'Shukrabaar', 'Shanibaar'],\n dayNamesShort: ['Aaita', 'Som', 'Mangl', 'Budha', 'Bihi', 'Shukra', 'Shani'],\n dayNamesMin: ['Aai', 'So', 'Man', 'Bu', 'Bi', 'Shu', 'Sha'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 1,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n return this.daysInYear(year) !== this.daysPerYear;\n },\n\n /** Determine the week of the year for a date.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n year = date.year();\n if (typeof this.NEPALI_CALENDAR_DATA[year] === 'undefined') {\n return this.daysPerYear;\n }\n var daysPerYear = 0;\n for (var month_number = this.minMonth; month_number <= 12; month_number++) {\n daysPerYear += this.NEPALI_CALENDAR_DATA[year][month_number];\n }\n return daysPerYear;\n },\n\n /** Retrieve the number of days in a month.\n @memberof NepaliCalendar\n @param year {CDate|number| The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n if (year.year) {\n month = year.month();\n year = year.year();\n }\n this._validate(year, month, this.minDay, main.local.invalidMonth);\n return (typeof this.NEPALI_CALENDAR_DATA[year] === 'undefined' ?\n this.daysPerMonth[month - 1] : this.NEPALI_CALENDAR_DATA[year][month]);\n },\n\n /** Determine whether this date is a week day.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof NepaliCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(nepaliYear, nepaliMonth, nepaliDay) {\n var date = this._validate(nepaliYear, nepaliMonth, nepaliDay, main.local.invalidDate);\n nepaliYear = date.year();\n nepaliMonth = date.month();\n nepaliDay = date.day();\n var gregorianCalendar = main.instance();\n var gregorianDayOfYear = 0; // We will add all the days that went by since\n // the 1st. January and then we can get the Gregorian Date\n var nepaliMonthToCheck = nepaliMonth;\n var nepaliYearToCheck = nepaliYear;\n this._createMissingCalendarData(nepaliYear);\n // Get the correct year\n var gregorianYear = nepaliYear - (nepaliMonthToCheck > 9 || (nepaliMonthToCheck === 9 &&\n nepaliDay >= this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][0]) ? 56 : 57);\n // First we add the amount of days in the actual Nepali month as the day of year in the\n // Gregorian one because at least this days are gone since the 1st. Jan. \n if (nepaliMonth !== 9) {\n gregorianDayOfYear = nepaliDay;\n nepaliMonthToCheck--;\n }\n // Now we loop throw all Nepali month and add the amount of days to gregorianDayOfYear \n // we do this till we reach Paush (9th month). 1st. January always falls in this month \n while (nepaliMonthToCheck !== 9) {\n if (nepaliMonthToCheck <= 0) {\n nepaliMonthToCheck = 12;\n nepaliYearToCheck--;\n } \n gregorianDayOfYear += this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][nepaliMonthToCheck];\n nepaliMonthToCheck--;\n } \n // If the date that has to be converted is in Paush (month no. 9) we have to do some other calculation\n if (nepaliMonth === 9) {\n // Add the days that are passed since the first day of Paush and substract the\n // amount of days that lie between 1st. Jan and 1st Paush\n gregorianDayOfYear += nepaliDay - this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][0];\n // For the first days of Paush we are now in negative values,\n // because in the end of the gregorian year we substract\n // 365 / 366 days (P.S. remember math in school + - gives -)\n if (gregorianDayOfYear < 0) {\n gregorianDayOfYear += gregorianCalendar.daysInYear(gregorianYear);\n }\n }\n else {\n gregorianDayOfYear += this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][9] -\n this.NEPALI_CALENDAR_DATA[nepaliYearToCheck][0];\n } \n return gregorianCalendar.newDate(gregorianYear, 1 ,1).add(gregorianDayOfYear, 'd').toJD();\n },\n \n /** Create a new date from a Julian date.\n @memberof NepaliCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var gregorianCalendar = main.instance();\n var gregorianDate = gregorianCalendar.fromJD(jd);\n var gregorianYear = gregorianDate.year();\n var gregorianDayOfYear = gregorianDate.dayOfYear();\n var nepaliYear = gregorianYear + 56; //this is not final, it could be also +57 but +56 is always true for 1st Jan.\n this._createMissingCalendarData(nepaliYear);\n var nepaliMonth = 9; // Jan 1 always fall in Nepali month Paush which is the 9th month of Nepali calendar.\n // Get the Nepali day in Paush (month 9) of 1st January \n var dayOfFirstJanInPaush = this.NEPALI_CALENDAR_DATA[nepaliYear][0];\n // Check how many days are left of Paush .\n // Days calculated from 1st Jan till the end of the actual Nepali month, \n // we use this value to check if the gregorian Date is in the actual Nepali month.\n var daysSinceJanFirstToEndOfNepaliMonth =\n this.NEPALI_CALENDAR_DATA[nepaliYear][nepaliMonth] - dayOfFirstJanInPaush + 1;\n // If the gregorian day-of-year is smaller o equal than the sum of days between the 1st January and \n // the end of the actual nepali month we found the correct nepali month.\n // Example: \n // The 4th February 2011 is the gregorianDayOfYear 35 (31 days of January + 4)\n // 1st January 2011 is in the nepali year 2067, where 1st. January is in the 17th day of Paush (9th month)\n // In 2067 Paush has 30days, This means (30-17+1=14) there are 14days between 1st January and end of Paush \n // (including 17th January)\n // The gregorianDayOfYear (35) is bigger than 14, so we check the next month\n // The next nepali month (Mangh) has 29 days \n // 29+14=43, this is bigger than gregorianDayOfYear(35) so, we found the correct nepali month\n while (gregorianDayOfYear > daysSinceJanFirstToEndOfNepaliMonth) {\n nepaliMonth++;\n if (nepaliMonth > 12) {\n nepaliMonth = 1;\n nepaliYear++;\n } \n daysSinceJanFirstToEndOfNepaliMonth += this.NEPALI_CALENDAR_DATA[nepaliYear][nepaliMonth];\n }\n // The last step is to calculate the nepali day-of-month\n // to continue our example from before:\n // we calculated there are 43 days from 1st. January (17 Paush) till end of Mangh (29 days)\n // when we subtract from this 43 days the day-of-year of the the Gregorian date (35),\n // we know how far the searched day is away from the end of the Nepali month.\n // So we simply subtract this number from the amount of days in this month (30) \n var nepaliDayOfMonth = this.NEPALI_CALENDAR_DATA[nepaliYear][nepaliMonth] -\n (daysSinceJanFirstToEndOfNepaliMonth - gregorianDayOfYear); \n return this.newDate(nepaliYear, nepaliMonth, nepaliDayOfMonth);\n },\n \n /** Creates missing data in the NEPALI_CALENDAR_DATA table.\n This data will not be correct but just give an estimated result. Mostly -/+ 1 day\n @private\n @param nepaliYear {number} The missing year number. */\n _createMissingCalendarData: function(nepaliYear) {\n var tmp_calendar_data = this.daysPerMonth.slice(0);\n tmp_calendar_data.unshift(17);\n for (var nepaliYearToCreate = (nepaliYear - 1); nepaliYearToCreate < (nepaliYear + 2); nepaliYearToCreate++) {\n if (typeof this.NEPALI_CALENDAR_DATA[nepaliYearToCreate] === 'undefined') {\n this.NEPALI_CALENDAR_DATA[nepaliYearToCreate] = tmp_calendar_data;\n }\n }\n },\n \n NEPALI_CALENDAR_DATA: {\n // These data are from http://www.ashesh.com.np\n 1970: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1971: [18, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30],\n 1972: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 1973: [19, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 1974: [19, 31, 31, 32, 30, 31, 31, 30, 29, 30, 29, 30, 30],\n 1975: [18, 31, 31, 32, 32, 30, 31, 30, 29, 30, 29, 30, 30],\n 1976: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1977: [18, 31, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31],\n 1978: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1979: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 1980: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1981: [18, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 1982: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1983: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 1984: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1985: [18, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 1986: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1987: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 1988: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 1989: [18, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 1990: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1991: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], \n // These data are from http://nepalicalendar.rat32.com/index.php\n 1992: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 1993: [18, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 1994: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1995: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 1996: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 1997: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1998: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 1999: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2000: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2001: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2002: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2003: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2004: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2005: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2006: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2007: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2008: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31],\n 2009: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2010: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2011: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2012: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2013: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2014: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2015: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2016: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2017: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2018: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2019: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2020: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2021: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2022: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2023: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2024: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2025: [18, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2026: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2027: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2028: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2029: [18, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30],\n 2030: [17, 31, 32, 31, 32, 31, 30, 30, 30, 30, 30, 30, 31],\n 2031: [17, 31, 32, 31, 32, 31, 31, 31, 31, 31, 31, 31, 31],\n 2032: [17, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32],\n 2033: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2034: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2035: [17, 30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31],\n 2036: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2037: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2038: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2039: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2040: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2041: [18, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2042: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2043: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2044: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2045: [18, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2046: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2047: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2048: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2049: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2050: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2051: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2052: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2053: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2054: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2055: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 30, 29, 30],\n 2056: [17, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30],\n 2057: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2058: [17, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2059: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2060: [17, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2061: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2062: [17, 30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31],\n 2063: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2064: [17, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2065: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2066: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31],\n 2067: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2068: [17, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2069: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2070: [17, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30],\n 2071: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2072: [17, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2073: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31],\n 2074: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2075: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2076: [16, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n 2077: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],\n 2078: [17, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30],\n 2079: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30],\n 2080: [16, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30],\n // These data are from http://www.ashesh.com.np/nepali-calendar/\n 2081: [17, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2082: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2083: [17, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30],\n 2084: [17, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30],\n 2085: [17, 31, 32, 31, 32, 31, 31, 30, 30, 29, 30, 30, 30],\n 2086: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2087: [16, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30],\n 2088: [16, 30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30],\n 2089: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2090: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2091: [16, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30],\n 2092: [16, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2093: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2094: [17, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30],\n 2095: [17, 31, 31, 32, 31, 31, 31, 30, 29, 30, 30, 30, 30],\n 2096: [17, 30, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30],\n 2097: [17, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30],\n 2098: [17, 31, 31, 32, 31, 31, 31, 29, 30, 29, 30, 30, 31],\n 2099: [17, 31, 31, 32, 31, 31, 31, 30, 29, 29, 30, 30, 30],\n 2100: [17, 31, 32, 31, 32, 30, 31, 30, 29, 30, 29, 30, 30] \n }\n}); \n\n// Nepali calendar implementation\nmain.calendars.nepali = NepaliCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],343:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Persian calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the Persian or Jalali calendar.\n Based on code from http://www.iranchamber.com/calendar/converter/iranian_calendar_converter.php.\n See also http://en.wikipedia.org/wiki/Iranian_calendar.\n @class PersianCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction PersianCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nPersianCalendar.prototype = new main.baseCalendar;\n\nassign(PersianCalendar.prototype, {\n /** The calendar name.\n @memberof PersianCalendar */\n name: 'Persian',\n /** Julian date of start of Persian epoch: 19 March 622 CE.\n @memberof PersianCalendar */\n jdEpoch: 1948320.5,\n /** Days per month in a common year.\n @memberof PersianCalendar */\n daysPerMonth: [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29],\n /** true if has a year zero, false if not.\n @memberof PersianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof PersianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof PersianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof PersianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof PersianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Persian',\n epochs: ['BP', 'AP'],\n monthNames: ['Farvardin', 'Ordibehesht', 'Khordad', 'Tir', 'Mordad', 'Shahrivar',\n 'Mehr', 'Aban', 'Azar', 'Day', 'Bahman', 'Esfand'],\n monthNamesShort: ['Far', 'Ord', 'Kho', 'Tir', 'Mor', 'Sha', 'Meh', 'Aba', 'Aza', 'Day', 'Bah', 'Esf'],\n dayNames: ['Yekshambe', 'Doshambe', 'Seshambe', 'Chæharshambe', 'Panjshambe', 'Jom\\'e', 'Shambe'],\n dayNamesShort: ['Yek', 'Do', 'Se', 'Chæ', 'Panj', 'Jom', 'Sha'],\n dayNamesMin: ['Ye','Do','Se','Ch','Pa','Jo','Sh'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 6,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return (((((date.year() - (date.year() > 0 ? 474 : 473)) % 2820) +\n 474 + 38) * 682) % 2816) < 682;\n },\n\n /** Determine the week of the year for a date.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Saturday of this week starting on Saturday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-((checkDate.dayOfWeek() + 1) % 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 12 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof PersianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return this.dayOfWeek(year, month, day) !== 5;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof PersianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n var epBase = year - (year >= 0 ? 474 : 473);\n var epYear = 474 + mod(epBase, 2820);\n return day + (month <= 7 ? (month - 1) * 31 : (month - 1) * 30 + 6) +\n Math.floor((epYear * 682 - 110) / 2816) + (epYear - 1) * 365 +\n Math.floor(epBase / 2820) * 1029983 + this.jdEpoch - 1;\n },\n\n /** Create a new date from a Julian date.\n @memberof PersianCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n jd = Math.floor(jd) + 0.5;\n var depoch = jd - this.toJD(475, 1, 1);\n var cycle = Math.floor(depoch / 1029983);\n var cyear = mod(depoch, 1029983);\n var ycycle = 2820;\n if (cyear !== 1029982) {\n var aux1 = Math.floor(cyear / 366);\n var aux2 = mod(cyear, 366);\n ycycle = Math.floor(((2134 * aux1) + (2816 * aux2) + 2815) / 1028522) + aux1 + 1;\n }\n var year = ycycle + (2820 * cycle) + 474;\n year = (year <= 0 ? year - 1 : year);\n var yday = jd - this.toJD(year, 1, 1) + 1;\n var month = (yday <= 186 ? Math.ceil(yday / 31) : Math.ceil((yday - 6) / 30));\n var day = jd - this.toJD(year, month, 1) + 1;\n return this.newDate(year, month, day);\n }\n});\n\n// Modulus function which works for non-integers.\nfunction mod(a, b) {\n return a - (b * Math.floor(a / b));\n}\n\n// Persian (Jalali) calendar implementation\nmain.calendars.persian = PersianCalendar;\nmain.calendars.jalali = PersianCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],344:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Taiwanese (Minguo) calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\nvar gregorianCalendar = main.instance();\n\n/** Implementation of the Taiwanese calendar.\n See http://en.wikipedia.org/wiki/Minguo_calendar.\n @class TaiwanCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction TaiwanCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nTaiwanCalendar.prototype = new main.baseCalendar;\n\nassign(TaiwanCalendar.prototype, {\n /** The calendar name.\n @memberof TaiwanCalendar */\n name: 'Taiwan',\n /** Julian date of start of Taiwan epoch: 1 January 1912 CE (Gregorian).\n @memberof TaiwanCalendar */\n jdEpoch: 2419402.5,\n /** Difference in years between Taiwan and Gregorian calendars.\n @memberof TaiwanCalendar */\n yearsOffset: 1911,\n /** Days per month in a common year.\n @memberof TaiwanCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof TaiwanCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof TaiwanCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof TaiwanCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof TaiwanCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof TaiwanCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Taiwan',\n epochs: ['BROC', 'ROC'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 1,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.leapYear(year);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.weekOfYear(year, date.month(), date.day());\n },\n\n /** Retrieve the number of days in a month.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof TaiwanCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.toJD(year, date.month(), date.day());\n },\n\n /** Create a new date from a Julian date.\n @memberof TaiwanCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var date = gregorianCalendar.fromJD(jd);\n var year = this._g2tYear(date.year());\n return this.newDate(year, date.month(), date.day());\n },\n\n /** Convert Taiwanese to Gregorian year.\n @memberof TaiwanCalendar\n @private\n @param year {number} The Taiwanese year.\n @return {number} The corresponding Gregorian year. */\n _t2gYear: function(year) {\n return year + this.yearsOffset + (year >= -this.yearsOffset && year <= -1 ? 1 : 0);\n },\n\n /** Convert Gregorian to Taiwanese year.\n @memberof TaiwanCalendar\n @private\n @param year {number} The Gregorian year.\n @return {number} The corresponding Taiwanese year. */\n _g2tYear: function(year) {\n return year - this.yearsOffset - (year >= 1 && year <= this.yearsOffset ? 1 : 0);\n }\n});\n\n// Taiwan calendar implementation\nmain.calendars.taiwan = TaiwanCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],345:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Thai calendar for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) February 2010.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\nvar gregorianCalendar = main.instance();\n\n/** Implementation of the Thai calendar.\n See http://en.wikipedia.org/wiki/Thai_calendar.\n @class ThaiCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction ThaiCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nThaiCalendar.prototype = new main.baseCalendar;\n\nassign(ThaiCalendar.prototype, {\n /** The calendar name.\n @memberof ThaiCalendar */\n name: 'Thai',\n /** Julian date of start of Thai epoch: 1 January 543 BCE (Gregorian).\n @memberof ThaiCalendar */\n jdEpoch: 1523098.5,\n /** Difference in years between Thai and Gregorian calendars.\n @memberof ThaiCalendar */\n yearsOffset: 543, \n /** Days per month in a common year.\n @memberof ThaiCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof ThaiCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof ThaiCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof ThaiCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof ThaiCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof ThaiCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Thai',\n epochs: ['BBE', 'BE'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'dd/mm/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.leapYear(year);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.weekOfYear(year, date.month(), date.day());\n },\n\n /** Retrieve the number of days in a month.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof ThaiCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var year = this._t2gYear(date.year());\n return gregorianCalendar.toJD(year, date.month(), date.day());\n },\n\n /** Create a new date from a Julian date.\n @memberof ThaiCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n var date = gregorianCalendar.fromJD(jd);\n var year = this._g2tYear(date.year());\n return this.newDate(year, date.month(), date.day());\n },\n\n /** Convert Thai to Gregorian year.\n @memberof ThaiCalendar\n @private\n @param year {number} The Thai year.\n @return {number} The corresponding Gregorian year. */\n _t2gYear: function(year) {\n return year - this.yearsOffset - (year >= 1 && year <= this.yearsOffset ? 1 : 0);\n },\n\n /** Convert Gregorian to Thai year.\n @memberof ThaiCalendar\n @private\n @param year {number} The Gregorian year.\n @return {number} The corresponding Thai year. */\n _g2tYear: function(year) {\n return year + this.yearsOffset + (year >= -this.yearsOffset && year <= -1 ? 1 : 0);\n }\n});\n\n// Thai calendar implementation\nmain.calendars.thai = ThaiCalendar;\n\n\n},{\"../main\":347,\"object-assign\":247}],346:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n UmmAlQura calendar for jQuery v2.0.2.\n Written by Amro Osama March 2013.\n Modified by Binnooh.com & www.elm.sa - 2014 - Added dates back to 1276 Hijri year.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar main = _dereq_('../main');\nvar assign = _dereq_('object-assign');\n\n\n/** Implementation of the UmmAlQura or 'saudi' calendar.\n See also http://en.wikipedia.org/wiki/Islamic_calendar#Saudi_Arabia.27s_Umm_al-Qura_calendar.\n http://www.ummulqura.org.sa/About.aspx\n http://www.staff.science.uu.nl/~gent0113/islam/ummalqura.htm\n @class UmmAlQuraCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction UmmAlQuraCalendar(language) {\n this.local = this.regionalOptions[language || ''] || this.regionalOptions[''];\n}\n\nUmmAlQuraCalendar.prototype = new main.baseCalendar;\n\nassign(UmmAlQuraCalendar.prototype, {\n /** The calendar name.\n @memberof UmmAlQuraCalendar */\n name: 'UmmAlQura',\n //jdEpoch: 1948440, // Julian date of start of UmmAlQura epoch: 14 March 1937 CE\n //daysPerMonth: // Days per month in a common year, replaced by a method.\n /** true if has a year zero, false if not.\n @memberof UmmAlQuraCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof UmmAlQuraCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof UmmAlQuraCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof UmmAlQuraCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof UmmAlQuraCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Umm al-Qura',\n epochs: ['BH', 'AH'],\n monthNames: ['Al-Muharram', 'Safar', 'Rabi\\' al-awwal', 'Rabi\\' Al-Thani', 'Jumada Al-Awwal', 'Jumada Al-Thani',\n 'Rajab', 'Sha\\'aban', 'Ramadan', 'Shawwal', 'Dhu al-Qi\\'dah', 'Dhu al-Hijjah'],\n monthNamesShort: ['Muh', 'Saf', 'Rab1', 'Rab2', 'Jum1', 'Jum2', 'Raj', 'Sha\\'', 'Ram', 'Shaw', 'DhuQ', 'DhuH'],\n dayNames: ['Yawm al-Ahad', 'Yawm al-Ithnain', 'Yawm al-Thalāthā’', 'Yawm al-Arba‘ā’', 'Yawm al-Khamīs', 'Yawm al-Jum‘a', 'Yawm al-Sabt'],\n dayNamesMin: ['Ah', 'Ith', 'Th', 'Ar', 'Kh', 'Ju', 'Sa'],\n digits: null,\n dateFormat: 'yyyy/mm/dd',\n firstDay: 6,\n isRTL: true\n }\n },\n\n /** Determine whether this date is in a leap year.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function (year) {\n var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);\n return (this.daysInYear(date.year()) === 355);\n },\n\n /** Determine the week of the year for a date.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function (year, month, day) {\n // Find Sunday of this week starting on Sunday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(-checkDate.dayOfWeek(), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a year.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function (year) {\n var daysCount = 0;\n for (var i = 1; i <= 12; i++) {\n daysCount += this.daysInMonth(year, i);\n }\n return daysCount;\n },\n\n /** Retrieve the number of days in a month.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function (year, month) {\n var date = this._validate(year, month, this.minDay, main.local.invalidMonth);\n var mcjdn = date.toJD() - 2400000 + 0.5; // Modified Chronological Julian Day Number (MCJDN)\n // the MCJDN's of the start of the lunations in the Umm al-Qura calendar are stored in the 'ummalqura_dat' array\n var index = 0;\n for (var i = 0; i < ummalqura_dat.length; i++) {\n if (ummalqura_dat[i] > mcjdn) {\n return (ummalqura_dat[index] - ummalqura_dat[index - 1]);\n }\n index++;\n }\n return 30; // Unknown outside\n },\n\n /** Determine whether this date is a week day.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function (year, month, day) {\n return this.dayOfWeek(year, month, day) !== 5;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof UmmAlQuraCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function (year, month, day) {\n var date = this._validate(year, month, day, main.local.invalidDate);\n var index = (12 * (date.year() - 1)) + date.month() - 15292;\n var mcjdn = date.day() + ummalqura_dat[index - 1] - 1;\n return mcjdn + 2400000 - 0.5; // Modified Chronological Julian Day Number (MCJDN)\n },\n\n /** Create a new date from a Julian date.\n @memberof UmmAlQuraCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function (jd) {\n var mcjdn = jd - 2400000 + 0.5; // Modified Chronological Julian Day Number (MCJDN)\n // the MCJDN's of the start of the lunations in the Umm al-Qura calendar \n // are stored in the 'ummalqura_dat' array\n var index = 0;\n for (var i = 0; i < ummalqura_dat.length; i++) {\n if (ummalqura_dat[i] > mcjdn) break;\n index++;\n }\n var lunation = index + 15292; //UmmAlQura Lunation Number\n var ii = Math.floor((lunation - 1) / 12);\n var year = ii + 1;\n var month = lunation - 12 * ii;\n var day = mcjdn - ummalqura_dat[index - 1] + 1;\n return this.newDate(year, month, day);\n },\n\n /** Determine whether a date is valid for this calendar.\n @memberof UmmAlQuraCalendar\n @param year {number} The year to examine.\n @param month {number} The month to examine.\n @param day {number} The day to examine.\n @return {boolean} true if a valid date, false if not. */\n isValid: function(year, month, day) {\n var valid = main.baseCalendar.prototype.isValid.apply(this, arguments);\n if (valid) {\n year = (year.year != null ? year.year : year);\n valid = (year >= 1276 && year <= 1500);\n }\n return valid;\n },\n\n /** Check that a candidate date is from the same calendar and is valid.\n @memberof UmmAlQuraCalendar\n @private\n @param year {CDate|number} The date to validate or the year to validate.\n @param month {number} The month to validate.\n @param day {number} The day to validate.\n @param error {string} Error message if invalid.\n @throws Error if different calendars used or invalid date. */\n _validate: function(year, month, day, error) {\n var date = main.baseCalendar.prototype._validate.apply(this, arguments);\n if (date.year < 1276 || date.year > 1500) {\n throw error.replace(/\\{0\\}/, this.local.name);\n }\n return date;\n }\n});\n\n// UmmAlQura calendar implementation\nmain.calendars.ummalqura = UmmAlQuraCalendar;\n\nvar ummalqura_dat = [\n 20, 50, 79, 109, 138, 168, 197, 227, 256, 286, 315, 345, 374, 404, 433, 463, 492, 522, 551, 581, \n 611, 641, 670, 700, 729, 759, 788, 818, 847, 877, 906, 936, 965, 995, 1024, 1054, 1083, 1113, 1142, 1172,\n 1201, 1231, 1260, 1290, 1320, 1350, 1379, 1409, 1438, 1468, 1497, 1527, 1556, 1586, 1615, 1645, 1674, 1704, 1733, 1763,\n 1792, 1822, 1851, 1881, 1910, 1940, 1969, 1999, 2028, 2058, 2087, 2117, 2146, 2176, 2205, 2235, 2264, 2294, 2323, 2353,\n 2383, 2413, 2442, 2472, 2501, 2531, 2560, 2590, 2619, 2649, 2678, 2708, 2737, 2767, 2796, 2826, 2855, 2885, 2914, 2944,\n 2973, 3003, 3032, 3062, 3091, 3121, 3150, 3180, 3209, 3239, 3268, 3298, 3327, 3357, 3386, 3416, 3446, 3476, 3505, 3535,\n 3564, 3594, 3623, 3653, 3682, 3712, 3741, 3771, 3800, 3830, 3859, 3889, 3918, 3948, 3977, 4007, 4036, 4066, 4095, 4125,\n 4155, 4185, 4214, 4244, 4273, 4303, 4332, 4362, 4391, 4421, 4450, 4480, 4509, 4539, 4568, 4598, 4627, 4657, 4686, 4716,\n 4745, 4775, 4804, 4834, 4863, 4893, 4922, 4952, 4981, 5011, 5040, 5070, 5099, 5129, 5158, 5188, 5218, 5248, 5277, 5307,\n 5336, 5366, 5395, 5425, 5454, 5484, 5513, 5543, 5572, 5602, 5631, 5661, 5690, 5720, 5749, 5779, 5808, 5838, 5867, 5897,\n 5926, 5956, 5985, 6015, 6044, 6074, 6103, 6133, 6162, 6192, 6221, 6251, 6281, 6311, 6340, 6370, 6399, 6429, 6458, 6488,\n 6517, 6547, 6576, 6606, 6635, 6665, 6694, 6724, 6753, 6783, 6812, 6842, 6871, 6901, 6930, 6960, 6989, 7019, 7048, 7078,\n 7107, 7137, 7166, 7196, 7225, 7255, 7284, 7314, 7344, 7374, 7403, 7433, 7462, 7492, 7521, 7551, 7580, 7610, 7639, 7669,\n 7698, 7728, 7757, 7787, 7816, 7846, 7875, 7905, 7934, 7964, 7993, 8023, 8053, 8083, 8112, 8142, 8171, 8201, 8230, 8260,\n 8289, 8319, 8348, 8378, 8407, 8437, 8466, 8496, 8525, 8555, 8584, 8614, 8643, 8673, 8702, 8732, 8761, 8791, 8821, 8850,\n 8880, 8909, 8938, 8968, 8997, 9027, 9056, 9086, 9115, 9145, 9175, 9205, 9234, 9264, 9293, 9322, 9352, 9381, 9410, 9440,\n 9470, 9499, 9529, 9559, 9589, 9618, 9648, 9677, 9706, 9736, 9765, 9794, 9824, 9853, 9883, 9913, 9943, 9972, 10002, 10032,\n 10061, 10090, 10120, 10149, 10178, 10208, 10237, 10267, 10297, 10326, 10356, 10386, 10415, 10445, 10474, 10504, 10533, 10562, 10592, 10621,\n 10651, 10680, 10710, 10740, 10770, 10799, 10829, 10858, 10888, 10917, 10947, 10976, 11005, 11035, 11064, 11094, 11124, 11153, 11183, 11213,\n 11242, 11272, 11301, 11331, 11360, 11389, 11419, 11448, 11478, 11507, 11537, 11567, 11596, 11626, 11655, 11685, 11715, 11744, 11774, 11803,\n 11832, 11862, 11891, 11921, 11950, 11980, 12010, 12039, 12069, 12099, 12128, 12158, 12187, 12216, 12246, 12275, 12304, 12334, 12364, 12393,\n 12423, 12453, 12483, 12512, 12542, 12571, 12600, 12630, 12659, 12688, 12718, 12747, 12777, 12807, 12837, 12866, 12896, 12926, 12955, 12984,\n 13014, 13043, 13072, 13102, 13131, 13161, 13191, 13220, 13250, 13280, 13310, 13339, 13368, 13398, 13427, 13456, 13486, 13515, 13545, 13574,\n 13604, 13634, 13664, 13693, 13723, 13752, 13782, 13811, 13840, 13870, 13899, 13929, 13958, 13988, 14018, 14047, 14077, 14107, 14136, 14166,\n 14195, 14224, 14254, 14283, 14313, 14342, 14372, 14401, 14431, 14461, 14490, 14520, 14550, 14579, 14609, 14638, 14667, 14697, 14726, 14756,\n 14785, 14815, 14844, 14874, 14904, 14933, 14963, 14993, 15021, 15051, 15081, 15110, 15140, 15169, 15199, 15228, 15258, 15287, 15317, 15347,\n 15377, 15406, 15436, 15465, 15494, 15524, 15553, 15582, 15612, 15641, 15671, 15701, 15731, 15760, 15790, 15820, 15849, 15878, 15908, 15937,\n 15966, 15996, 16025, 16055, 16085, 16114, 16144, 16174, 16204, 16233, 16262, 16292, 16321, 16350, 16380, 16409, 16439, 16468, 16498, 16528,\n 16558, 16587, 16617, 16646, 16676, 16705, 16734, 16764, 16793, 16823, 16852, 16882, 16912, 16941, 16971, 17001, 17030, 17060, 17089, 17118,\n 17148, 17177, 17207, 17236, 17266, 17295, 17325, 17355, 17384, 17414, 17444, 17473, 17502, 17532, 17561, 17591, 17620, 17650, 17679, 17709,\n 17738, 17768, 17798, 17827, 17857, 17886, 17916, 17945, 17975, 18004, 18034, 18063, 18093, 18122, 18152, 18181, 18211, 18241, 18270, 18300,\n 18330, 18359, 18388, 18418, 18447, 18476, 18506, 18535, 18565, 18595, 18625, 18654, 18684, 18714, 18743, 18772, 18802, 18831, 18860, 18890,\n 18919, 18949, 18979, 19008, 19038, 19068, 19098, 19127, 19156, 19186, 19215, 19244, 19274, 19303, 19333, 19362, 19392, 19422, 19452, 19481,\n 19511, 19540, 19570, 19599, 19628, 19658, 19687, 19717, 19746, 19776, 19806, 19836, 19865, 19895, 19924, 19954, 19983, 20012, 20042, 20071,\n 20101, 20130, 20160, 20190, 20219, 20249, 20279, 20308, 20338, 20367, 20396, 20426, 20455, 20485, 20514, 20544, 20573, 20603, 20633, 20662,\n 20692, 20721, 20751, 20780, 20810, 20839, 20869, 20898, 20928, 20957, 20987, 21016, 21046, 21076, 21105, 21135, 21164, 21194, 21223, 21253,\n 21282, 21312, 21341, 21371, 21400, 21430, 21459, 21489, 21519, 21548, 21578, 21607, 21637, 21666, 21696, 21725, 21754, 21784, 21813, 21843,\n 21873, 21902, 21932, 21962, 21991, 22021, 22050, 22080, 22109, 22138, 22168, 22197, 22227, 22256, 22286, 22316, 22346, 22375, 22405, 22434,\n 22464, 22493, 22522, 22552, 22581, 22611, 22640, 22670, 22700, 22730, 22759, 22789, 22818, 22848, 22877, 22906, 22936, 22965, 22994, 23024,\n 23054, 23083, 23113, 23143, 23173, 23202, 23232, 23261, 23290, 23320, 23349, 23379, 23408, 23438, 23467, 23497, 23527, 23556, 23586, 23616,\n 23645, 23674, 23704, 23733, 23763, 23792, 23822, 23851, 23881, 23910, 23940, 23970, 23999, 24029, 24058, 24088, 24117, 24147, 24176, 24206,\n 24235, 24265, 24294, 24324, 24353, 24383, 24413, 24442, 24472, 24501, 24531, 24560, 24590, 24619, 24648, 24678, 24707, 24737, 24767, 24796,\n 24826, 24856, 24885, 24915, 24944, 24974, 25003, 25032, 25062, 25091, 25121, 25150, 25180, 25210, 25240, 25269, 25299, 25328, 25358, 25387,\n 25416, 25446, 25475, 25505, 25534, 25564, 25594, 25624, 25653, 25683, 25712, 25742, 25771, 25800, 25830, 25859, 25888, 25918, 25948, 25977,\n 26007, 26037, 26067, 26096, 26126, 26155, 26184, 26214, 26243, 26272, 26302, 26332, 26361, 26391, 26421, 26451, 26480, 26510, 26539, 26568,\n 26598, 26627, 26656, 26686, 26715, 26745, 26775, 26805, 26834, 26864, 26893, 26923, 26952, 26982, 27011, 27041, 27070, 27099, 27129, 27159,\n 27188, 27218, 27248, 27277, 27307, 27336, 27366, 27395, 27425, 27454, 27484, 27513, 27542, 27572, 27602, 27631, 27661, 27691, 27720, 27750,\n 27779, 27809, 27838, 27868, 27897, 27926, 27956, 27985, 28015, 28045, 28074, 28104, 28134, 28163, 28193, 28222, 28252, 28281, 28310, 28340,\n 28369, 28399, 28428, 28458, 28488, 28517, 28547, 28577,\n // From 1356\n 28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990, 29019, 29049, 29078, 29108, 29137, 29167,\n 29196, 29226, 29255, 29285, 29315, 29345, 29375, 29404, 29434, 29463, 29492, 29522, 29551, 29580, 29610, 29640, 29669, 29699, 29729, 29759,\n 29788, 29818, 29847, 29876, 29906, 29935, 29964, 29994, 30023, 30053, 30082, 30112, 30141, 30171, 30200, 30230, 30259, 30289, 30318, 30348,\n 30378, 30408, 30437, 30467, 30496, 30526, 30555, 30585, 30614, 30644, 30673, 30703, 30732, 30762, 30791, 30821, 30850, 30880, 30909, 30939,\n 30968, 30998, 31027, 31057, 31086, 31116, 31145, 31175, 31204, 31234, 31263, 31293, 31322, 31352, 31381, 31411, 31441, 31471, 31500, 31530,\n 31559, 31589, 31618, 31648, 31676, 31706, 31736, 31766, 31795, 31825, 31854, 31884, 31913, 31943, 31972, 32002, 32031, 32061, 32090, 32120,\n 32150, 32180, 32209, 32239, 32268, 32298, 32327, 32357, 32386, 32416, 32445, 32475, 32504, 32534, 32563, 32593, 32622, 32652, 32681, 32711,\n 32740, 32770, 32799, 32829, 32858, 32888, 32917, 32947, 32976, 33006, 33035, 33065, 33094, 33124, 33153, 33183, 33213, 33243, 33272, 33302,\n 33331, 33361, 33390, 33420, 33450, 33479, 33509, 33539, 33568, 33598, 33627, 33657, 33686, 33716, 33745, 33775, 33804, 33834, 33863, 33893,\n 33922, 33952, 33981, 34011, 34040, 34069, 34099, 34128, 34158, 34187, 34217, 34247, 34277, 34306, 34336, 34365, 34395, 34424, 34454, 34483,\n 34512, 34542, 34571, 34601, 34631, 34660, 34690, 34719, 34749, 34778, 34808, 34837, 34867, 34896, 34926, 34955, 34985, 35015, 35044, 35074,\n 35103, 35133, 35162, 35192, 35222, 35251, 35280, 35310, 35340, 35370, 35399, 35429, 35458, 35488, 35517, 35547, 35576, 35605, 35635, 35665,\n 35694, 35723, 35753, 35782, 35811, 35841, 35871, 35901, 35930, 35960, 35989, 36019, 36048, 36078, 36107, 36136, 36166, 36195, 36225, 36254,\n 36284, 36314, 36343, 36373, 36403, 36433, 36462, 36492, 36521, 36551, 36580, 36610, 36639, 36669, 36698, 36728, 36757, 36786, 36816, 36845,\n 36875, 36904, 36934, 36963, 36993, 37022, 37052, 37081, 37111, 37141, 37170, 37200, 37229, 37259, 37288, 37318, 37347, 37377, 37406, 37436,\n 37465, 37495, 37524, 37554, 37584, 37613, 37643, 37672, 37701, 37731, 37760, 37790, 37819, 37849, 37878, 37908, 37938, 37967, 37997, 38027,\n 38056, 38085, 38115, 38144, 38174, 38203, 38233, 38262, 38292, 38322, 38351, 38381, 38410, 38440, 38469, 38499, 38528, 38558, 38587, 38617,\n 38646, 38676, 38705, 38735, 38764, 38794, 38823, 38853, 38882, 38912, 38941, 38971, 39001, 39030, 39059, 39089, 39118, 39148, 39178, 39208,\n 39237, 39267, 39297, 39326, 39355, 39385, 39414, 39444, 39473, 39503, 39532, 39562, 39592, 39621, 39650, 39680, 39709, 39739, 39768, 39798,\n 39827, 39857, 39886, 39916, 39946, 39975, 40005, 40035, 40064, 40094, 40123, 40153, 40182, 40212, 40241, 40271, 40300, 40330, 40359, 40389,\n 40418, 40448, 40477, 40507, 40536, 40566, 40595, 40625, 40655, 40685, 40714, 40744, 40773, 40803, 40832, 40862, 40892, 40921, 40951, 40980,\n 41009, 41039, 41068, 41098, 41127, 41157, 41186, 41216, 41245, 41275, 41304, 41334, 41364, 41393, 41422, 41452, 41481, 41511, 41540, 41570,\n 41599, 41629, 41658, 41688, 41718, 41748, 41777, 41807, 41836, 41865, 41894, 41924, 41953, 41983, 42012, 42042, 42072, 42102, 42131, 42161,\n 42190, 42220, 42249, 42279, 42308, 42337, 42367, 42397, 42426, 42456, 42485, 42515, 42545, 42574, 42604, 42633, 42662, 42692, 42721, 42751,\n 42780, 42810, 42839, 42869, 42899, 42929, 42958, 42988, 43017, 43046, 43076, 43105, 43135, 43164, 43194, 43223, 43253, 43283, 43312, 43342,\n 43371, 43401, 43430, 43460, 43489, 43519, 43548, 43578, 43607, 43637, 43666, 43696, 43726, 43755, 43785, 43814, 43844, 43873, 43903, 43932,\n 43962, 43991, 44021, 44050, 44080, 44109, 44139, 44169, 44198, 44228, 44258, 44287, 44317, 44346, 44375, 44405, 44434, 44464, 44493, 44523,\n 44553, 44582, 44612, 44641, 44671, 44700, 44730, 44759, 44788, 44818, 44847, 44877, 44906, 44936, 44966, 44996, 45025, 45055, 45084, 45114,\n 45143, 45172, 45202, 45231, 45261, 45290, 45320, 45350, 45380, 45409, 45439, 45468, 45498, 45527, 45556, 45586, 45615, 45644, 45674, 45704,\n 45733, 45763, 45793, 45823, 45852, 45882, 45911, 45940, 45970, 45999, 46028, 46058, 46088, 46117, 46147, 46177, 46206, 46236, 46265, 46295,\n 46324, 46354, 46383, 46413, 46442, 46472, 46501, 46531, 46560, 46590, 46620, 46649, 46679, 46708, 46738, 46767, 46797, 46826, 46856, 46885,\n 46915, 46944, 46974, 47003, 47033, 47063, 47092, 47122, 47151, 47181, 47210, 47240, 47269, 47298, 47328, 47357, 47387, 47417, 47446, 47476,\n 47506, 47535, 47565, 47594, 47624, 47653, 47682, 47712, 47741, 47771, 47800, 47830, 47860, 47890, 47919, 47949, 47978, 48008, 48037, 48066,\n 48096, 48125, 48155, 48184, 48214, 48244, 48273, 48303, 48333, 48362, 48392, 48421, 48450, 48480, 48509, 48538, 48568, 48598, 48627, 48657,\n 48687, 48717, 48746, 48776, 48805, 48834, 48864, 48893, 48922, 48952, 48982, 49011, 49041, 49071, 49100, 49130, 49160, 49189, 49218, 49248,\n 49277, 49306, 49336, 49365, 49395, 49425, 49455, 49484, 49514, 49543, 49573, 49602, 49632, 49661, 49690, 49720, 49749, 49779, 49809, 49838,\n 49868, 49898, 49927, 49957, 49986, 50016, 50045, 50075, 50104, 50133, 50163, 50192, 50222, 50252, 50281, 50311, 50340, 50370, 50400, 50429,\n 50459, 50488, 50518, 50547, 50576, 50606, 50635, 50665, 50694, 50724, 50754, 50784, 50813, 50843, 50872, 50902, 50931, 50960, 50990, 51019,\n 51049, 51078, 51108, 51138, 51167, 51197, 51227, 51256, 51286, 51315, 51345, 51374, 51403, 51433, 51462, 51492, 51522, 51552, 51582, 51611,\n 51641, 51670, 51699, 51729, 51758, 51787, 51816, 51846, 51876, 51906, 51936, 51965, 51995, 52025, 52054, 52083, 52113, 52142, 52171, 52200,\n 52230, 52260, 52290, 52319, 52349, 52379, 52408, 52438, 52467, 52497, 52526, 52555, 52585, 52614, 52644, 52673, 52703, 52733, 52762, 52792,\n 52822, 52851, 52881, 52910, 52939, 52969, 52998, 53028, 53057, 53087, 53116, 53146, 53176, 53205, 53235, 53264, 53294, 53324, 53353, 53383,\n 53412, 53441, 53471, 53500, 53530, 53559, 53589, 53619, 53648, 53678, 53708, 53737, 53767, 53796, 53825, 53855, 53884, 53913, 53943, 53973,\n 54003, 54032, 54062, 54092, 54121, 54151, 54180, 54209, 54239, 54268, 54297, 54327, 54357, 54387, 54416, 54446, 54476, 54505, 54535, 54564,\n 54593, 54623, 54652, 54681, 54711, 54741, 54770, 54800, 54830, 54859, 54889, 54919, 54948, 54977, 55007, 55036, 55066, 55095, 55125, 55154,\n 55184, 55213, 55243, 55273, 55302, 55332, 55361, 55391, 55420, 55450, 55479, 55508, 55538, 55567, 55597, 55627, 55657, 55686, 55716, 55745,\n 55775, 55804, 55834, 55863, 55892, 55922, 55951, 55981, 56011, 56040, 56070, 56100, 56129, 56159, 56188, 56218, 56247, 56276, 56306, 56335,\n 56365, 56394, 56424, 56454, 56483, 56513, 56543, 56572, 56601, 56631, 56660, 56690, 56719, 56749, 56778, 56808, 56837, 56867, 56897, 56926,\n 56956, 56985, 57015, 57044, 57074, 57103, 57133, 57162, 57192, 57221, 57251, 57280, 57310, 57340, 57369, 57399, 57429, 57458, 57487, 57517,\n 57546, 57576, 57605, 57634, 57664, 57694, 57723, 57753, 57783, 57813, 57842, 57871, 57901, 57930, 57959, 57989, 58018, 58048, 58077, 58107,\n 58137, 58167, 58196, 58226, 58255, 58285, 58314, 58343, 58373, 58402, 58432, 58461, 58491, 58521, 58551, 58580, 58610, 58639, 58669, 58698,\n 58727, 58757, 58786, 58816, 58845, 58875, 58905, 58934, 58964, 58994, 59023, 59053, 59082, 59111, 59141, 59170, 59200, 59229, 59259, 59288,\n 59318, 59348, 59377, 59407, 59436, 59466, 59495, 59525, 59554, 59584, 59613, 59643, 59672, 59702, 59731, 59761, 59791, 59820, 59850, 59879,\n 59909, 59939, 59968, 59997, 60027, 60056, 60086, 60115, 60145, 60174, 60204, 60234, 60264, 60293, 60323, 60352, 60381, 60411, 60440, 60469,\n 60499, 60528, 60558, 60588, 60618, 60648, 60677, 60707, 60736, 60765, 60795, 60824, 60853, 60883, 60912, 60942, 60972, 61002, 61031, 61061,\n 61090, 61120, 61149, 61179, 61208, 61237, 61267, 61296, 61326, 61356, 61385, 61415, 61445, 61474, 61504, 61533, 61563, 61592, 61621, 61651,\n 61680, 61710, 61739, 61769, 61799, 61828, 61858, 61888, 61917, 61947, 61976, 62006, 62035, 62064, 62094, 62123, 62153, 62182, 62212, 62242,\n 62271, 62301, 62331, 62360, 62390, 62419, 62448, 62478, 62507, 62537, 62566, 62596, 62625, 62655, 62685, 62715, 62744, 62774, 62803, 62832,\n 62862, 62891, 62921, 62950, 62980, 63009, 63039, 63069, 63099, 63128, 63157, 63187, 63216, 63246, 63275, 63305, 63334, 63363, 63393, 63423,\n 63453, 63482, 63512, 63541, 63571, 63600, 63630, 63659, 63689, 63718, 63747, 63777, 63807, 63836, 63866, 63895, 63925, 63955, 63984, 64014,\n 64043, 64073, 64102, 64131, 64161, 64190, 64220, 64249, 64279, 64309, 64339, 64368, 64398, 64427, 64457, 64486, 64515, 64545, 64574, 64603,\n 64633, 64663, 64692, 64722, 64752, 64782, 64811, 64841, 64870, 64899, 64929, 64958, 64987, 65017, 65047, 65076, 65106, 65136, 65166, 65195,\n 65225, 65254, 65283, 65313, 65342, 65371, 65401, 65431, 65460, 65490, 65520, 65549, 65579, 65608, 65638, 65667, 65697, 65726, 65755, 65785,\n 65815, 65844, 65874, 65903, 65933, 65963, 65992, 66022, 66051, 66081, 66110, 66140, 66169, 66199, 66228, 66258, 66287, 66317, 66346, 66376,\n 66405, 66435, 66465, 66494, 66524, 66553, 66583, 66612, 66641, 66671, 66700, 66730, 66760, 66789, 66819, 66849, 66878, 66908, 66937, 66967,\n 66996, 67025, 67055, 67084, 67114, 67143, 67173, 67203, 67233, 67262, 67292, 67321, 67351, 67380, 67409, 67439, 67468, 67497, 67527, 67557,\n 67587, 67617, 67646, 67676, 67705, 67735, 67764, 67793, 67823, 67852, 67882, 67911, 67941, 67971, 68000, 68030, 68060, 68089, 68119, 68148,\n 68177, 68207, 68236, 68266, 68295, 68325, 68354, 68384, 68414, 68443, 68473, 68502, 68532, 68561, 68591, 68620, 68650, 68679, 68708, 68738,\n 68768, 68797, 68827, 68857, 68886, 68916, 68946, 68975, 69004, 69034, 69063, 69092, 69122, 69152, 69181, 69211, 69240, 69270, 69300, 69330,\n 69359, 69388, 69418, 69447, 69476, 69506, 69535, 69565, 69595, 69624, 69654, 69684, 69713, 69743, 69772, 69802, 69831, 69861, 69890, 69919,\n 69949, 69978, 70008, 70038, 70067, 70097, 70126, 70156, 70186, 70215, 70245, 70274, 70303, 70333, 70362, 70392, 70421, 70451, 70481, 70510,\n 70540, 70570, 70599, 70629, 70658, 70687, 70717, 70746, 70776, 70805, 70835, 70864, 70894, 70924, 70954, 70983, 71013, 71042, 71071, 71101,\n 71130, 71159, 71189, 71218, 71248, 71278, 71308, 71337, 71367, 71397, 71426, 71455, 71485, 71514, 71543, 71573, 71602, 71632, 71662, 71691,\n 71721, 71751, 71781, 71810, 71839, 71869, 71898, 71927, 71957, 71986, 72016, 72046, 72075, 72105, 72135, 72164, 72194, 72223, 72253, 72282,\n 72311, 72341, 72370, 72400, 72429, 72459, 72489, 72518, 72548, 72577, 72607, 72637, 72666, 72695, 72725, 72754, 72784, 72813, 72843, 72872,\n 72902, 72931, 72961, 72991, 73020, 73050, 73080, 73109, 73139, 73168, 73197, 73227, 73256, 73286, 73315, 73345, 73375, 73404, 73434, 73464,\n 73493, 73523, 73552, 73581, 73611, 73640, 73669, 73699, 73729, 73758, 73788, 73818, 73848, 73877, 73907, 73936, 73965, 73995, 74024, 74053,\n 74083, 74113, 74142, 74172, 74202, 74231, 74261, 74291, 74320, 74349, 74379, 74408, 74437, 74467, 74497, 74526, 74556, 74586, 74615, 74645,\n 74675, 74704, 74733, 74763, 74792, 74822, 74851, 74881, 74910, 74940, 74969, 74999, 75029, 75058, 75088, 75117, 75147, 75176, 75206, 75235,\n 75264, 75294, 75323, 75353, 75383, 75412, 75442, 75472, 75501, 75531, 75560, 75590, 75619, 75648, 75678, 75707, 75737, 75766, 75796, 75826,\n 75856, 75885, 75915, 75944, 75974, 76003, 76032, 76062, 76091, 76121, 76150, 76180, 76210, 76239, 76269, 76299, 76328, 76358, 76387, 76416,\n 76446, 76475, 76505, 76534, 76564, 76593, 76623, 76653, 76682, 76712, 76741, 76771, 76801, 76830, 76859, 76889, 76918, 76948, 76977, 77007,\n 77036, 77066, 77096, 77125, 77155, 77185, 77214, 77243, 77273, 77302, 77332, 77361, 77390, 77420, 77450, 77479, 77509, 77539, 77569, 77598,\n 77627, 77657, 77686, 77715, 77745, 77774, 77804, 77833, 77863, 77893, 77923, 77952, 77982, 78011, 78041, 78070, 78099, 78129, 78158, 78188,\n 78217, 78247, 78277, 78307, 78336, 78366, 78395, 78425, 78454, 78483, 78513, 78542, 78572, 78601, 78631, 78661, 78690, 78720, 78750, 78779,\n 78808, 78838, 78867, 78897, 78926, 78956, 78985, 79015, 79044, 79074, 79104, 79133, 79163, 79192, 79222, 79251, 79281, 79310, 79340, 79369,\n 79399, 79428, 79458, 79487, 79517, 79546, 79576, 79606, 79635, 79665, 79695, 79724, 79753, 79783, 79812, 79841, 79871, 79900, 79930, 79960,\n 79990];\n\n\n},{\"../main\":347,\"object-assign\":247}],347:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Calendars for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar assign = _dereq_('object-assign');\n\n\nfunction Calendars() {\n this.regionalOptions = [];\n this.regionalOptions[''] = {\n invalidCalendar: 'Calendar {0} not found',\n invalidDate: 'Invalid {0} date',\n invalidMonth: 'Invalid {0} month',\n invalidYear: 'Invalid {0} year',\n differentCalendars: 'Cannot mix {0} and {1} dates'\n };\n this.local = this.regionalOptions[''];\n this.calendars = {};\n this._localCals = {};\n}\n\n/** Create the calendars plugin.\n

Provides support for various world calendars in a consistent manner.

\n @class Calendars\n @example _exports.instance('julian').newDate(2014, 12, 25) */\nassign(Calendars.prototype, {\n\n /** Obtain a calendar implementation and localisation.\n @memberof Calendars\n @param [name='gregorian'] {string} The name of the calendar, e.g. 'gregorian', 'persian', 'islamic'.\n @param [language=''] {string} The language code to use for localisation (default is English).\n @return {Calendar} The calendar and localisation.\n @throws Error if calendar not found. */\n instance: function(name, language) {\n name = (name || 'gregorian').toLowerCase();\n language = language || '';\n var cal = this._localCals[name + '-' + language];\n if (!cal && this.calendars[name]) {\n cal = new this.calendars[name](language);\n this._localCals[name + '-' + language] = cal;\n }\n if (!cal) {\n throw (this.local.invalidCalendar || this.regionalOptions[''].invalidCalendar).\n replace(/\\{0\\}/, name);\n }\n return cal;\n },\n\n /** Create a new date - for today if no other parameters given.\n @memberof Calendars\n @param year {CDate|number} The date to copy or the year for the date.\n @param [month] {number} The month for the date.\n @param [day] {number} The day for the date.\n @param [calendar='gregorian'] {BaseCalendar|string} The underlying calendar or the name of the calendar.\n @param [language=''] {string} The language to use for localisation (default English).\n @return {CDate} The new date.\n @throws Error if an invalid date. */\n newDate: function(year, month, day, calendar, language) {\n calendar = (year != null && year.year ? year.calendar() : (typeof calendar === 'string' ?\n this.instance(calendar, language) : calendar)) || this.instance();\n return calendar.newDate(year, month, day);\n },\n \n /** A simple digit substitution function for localising numbers via the Calendar digits option.\n @member Calendars\n @param digits {string[]} The substitute digits, for 0 through 9.\n @return {function} The substitution function. */\n substituteDigits: function(digits) {\n return function(value) {\n return (value + '').replace(/[0-9]/g, function(digit) {\n return digits[digit];\n });\n }\n },\n \n /** Digit substitution function for localising Chinese style numbers via the Calendar digits option.\n @member Calendars\n @param digits {string[]} The substitute digits, for 0 through 9.\n @param powers {string[]} The characters denoting powers of 10, i.e. 1, 10, 100, 1000.\n @return {function} The substitution function. */\n substituteChineseDigits: function(digits, powers) {\n return function(value) {\n var localNumber = '';\n var power = 0;\n while (value > 0) {\n var units = value % 10;\n localNumber = (units === 0 ? '' : digits[units] + powers[power]) + localNumber;\n power++;\n value = Math.floor(value / 10);\n }\n if (localNumber.indexOf(digits[1] + powers[1]) === 0) {\n localNumber = localNumber.substr(1);\n }\n return localNumber || digits[0];\n }\n }\n});\n\n/** Generic date, based on a particular calendar.\n @class CDate\n @param calendar {BaseCalendar} The underlying calendar implementation.\n @param year {number} The year for this date.\n @param month {number} The month for this date.\n @param day {number} The day for this date.\n @return {CDate} The date object.\n @throws Error if an invalid date. */\nfunction CDate(calendar, year, month, day) {\n this._calendar = calendar;\n this._year = year;\n this._month = month;\n this._day = day;\n if (this._calendar._validateLevel === 0 &&\n !this._calendar.isValid(this._year, this._month, this._day)) {\n throw (_exports.local.invalidDate || _exports.regionalOptions[''].invalidDate).\n replace(/\\{0\\}/, this._calendar.local.name);\n }\n}\n\n/** Pad a numeric value with leading zeroes.\n @private\n @param value {number} The number to format.\n @param length {number} The minimum length.\n @return {string} The formatted number. */\nfunction pad(value, length) {\n value = '' + value;\n return '000000'.substring(0, length - value.length) + value;\n}\n\nassign(CDate.prototype, {\n\n /** Create a new date.\n @memberof CDate\n @param [year] {CDate|number} The date to copy or the year for the date (default this date).\n @param [month] {number} The month for the date.\n @param [day] {number} The day for the date.\n @return {CDate} The new date.\n @throws Error if an invalid date. */\n newDate: function(year, month, day) {\n return this._calendar.newDate((year == null ? this : year), month, day);\n },\n\n /** Set or retrieve the year for this date.\n @memberof CDate\n @param [year] {number} The year for the date.\n @return {number|CDate} The date's year (if no parameter) or the updated date.\n @throws Error if an invalid date. */\n year: function(year) {\n return (arguments.length === 0 ? this._year : this.set(year, 'y'));\n },\n\n /** Set or retrieve the month for this date.\n @memberof CDate\n @param [month] {number} The month for the date.\n @return {number|CDate} The date's month (if no parameter) or the updated date.\n @throws Error if an invalid date. */\n month: function(month) {\n return (arguments.length === 0 ? this._month : this.set(month, 'm'));\n },\n\n /** Set or retrieve the day for this date.\n @memberof CDate\n @param [day] {number} The day for the date.\n @return {number|CData} The date's day (if no parameter) or the updated date.\n @throws Error if an invalid date. */\n day: function(day) {\n return (arguments.length === 0 ? this._day : this.set(day, 'd'));\n },\n\n /** Set new values for this date.\n @memberof CDate\n @param year {number} The year for the date.\n @param month {number} The month for the date.\n @param day {number} The day for the date.\n @return {CDate} The updated date.\n @throws Error if an invalid date. */\n date: function(year, month, day) {\n if (!this._calendar.isValid(year, month, day)) {\n throw (_exports.local.invalidDate || _exports.regionalOptions[''].invalidDate).\n replace(/\\{0\\}/, this._calendar.local.name);\n }\n this._year = year;\n this._month = month;\n this._day = day;\n return this;\n },\n\n /** Determine whether this date is in a leap year.\n @memberof CDate\n @return {boolean} true if this is a leap year, false if not. */\n leapYear: function() {\n return this._calendar.leapYear(this);\n },\n\n /** Retrieve the epoch designator for this date, e.g. BCE or CE.\n @memberof CDate\n @return {string} The current epoch. */\n epoch: function() {\n return this._calendar.epoch(this);\n },\n\n /** Format the year, if not a simple sequential number.\n @memberof CDate\n @return {string} The formatted year. */\n formatYear: function() {\n return this._calendar.formatYear(this);\n },\n\n /** Retrieve the month of the year for this date,\n i.e. the month's position within a numbered year.\n @memberof CDate\n @return {number} The month of the year: minMonth to months per year. */\n monthOfYear: function() {\n return this._calendar.monthOfYear(this);\n },\n\n /** Retrieve the week of the year for this date.\n @memberof CDate\n @return {number} The week of the year: 1 to weeks per year. */\n weekOfYear: function() {\n return this._calendar.weekOfYear(this);\n },\n\n /** Retrieve the number of days in the year for this date.\n @memberof CDate\n @return {number} The number of days in this year. */\n daysInYear: function() {\n return this._calendar.daysInYear(this);\n },\n\n /** Retrieve the day of the year for this date.\n @memberof CDate\n @return {number} The day of the year: 1 to days per year. */\n dayOfYear: function() {\n return this._calendar.dayOfYear(this);\n },\n\n /** Retrieve the number of days in the month for this date.\n @memberof CDate\n @return {number} The number of days. */\n daysInMonth: function() {\n return this._calendar.daysInMonth(this);\n },\n\n /** Retrieve the day of the week for this date.\n @memberof CDate\n @return {number} The day of the week: 0 to number of days - 1. */\n dayOfWeek: function() {\n return this._calendar.dayOfWeek(this);\n },\n\n /** Determine whether this date is a week day.\n @memberof CDate\n @return {boolean} true if a week day, false if not. */\n weekDay: function() {\n return this._calendar.weekDay(this);\n },\n\n /** Retrieve additional information about this date.\n @memberof CDate\n @return {object} Additional information - contents depends on calendar. */\n extraInfo: function() {\n return this._calendar.extraInfo(this);\n },\n\n /** Add period(s) to a date.\n @memberof CDate\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date. */\n add: function(offset, period) {\n return this._calendar.add(this, offset, period);\n },\n\n /** Set a portion of the date.\n @memberof CDate\n @param value {number} The new value for the period.\n @param period {string} One of 'y' for year, 'm' for month, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if not a valid date. */\n set: function(value, period) {\n return this._calendar.set(this, value, period);\n },\n\n /** Compare this date to another date.\n @memberof CDate\n @param date {CDate} The other date.\n @return {number} -1 if this date is before the other date,\n 0 if they are equal, or +1 if this date is after the other date. */\n compareTo: function(date) {\n if (this._calendar.name !== date._calendar.name) {\n throw (_exports.local.differentCalendars || _exports.regionalOptions[''].differentCalendars).\n replace(/\\{0\\}/, this._calendar.local.name).replace(/\\{1\\}/, date._calendar.local.name);\n }\n var c = (this._year !== date._year ? this._year - date._year :\n this._month !== date._month ? this.monthOfYear() - date.monthOfYear() :\n this._day - date._day);\n return (c === 0 ? 0 : (c < 0 ? -1 : +1));\n },\n\n /** Retrieve the calendar backing this date.\n @memberof CDate\n @return {BaseCalendar} The calendar implementation. */\n calendar: function() {\n return this._calendar;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof CDate\n @return {number} The equivalent Julian date. */\n toJD: function() {\n return this._calendar.toJD(this);\n },\n\n /** Create a new date from a Julian date.\n @memberof CDate\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n return this._calendar.fromJD(jd);\n },\n\n /** Convert this date to a standard (Gregorian) JavaScript Date.\n @memberof CDate\n @return {Date} The equivalent JavaScript date. */\n toJSDate: function() {\n return this._calendar.toJSDate(this);\n },\n\n /** Create a new date from a standard (Gregorian) JavaScript Date.\n @memberof CDate\n @param jsd {Date} The JavaScript date to convert.\n @return {CDate} The equivalent date. */\n fromJSDate: function(jsd) {\n return this._calendar.fromJSDate(jsd);\n },\n\n /** Convert to a string for display.\n @memberof CDate\n @return {string} This date as a string. */\n toString: function() {\n return (this.year() < 0 ? '-' : '') + pad(Math.abs(this.year()), 4) +\n '-' + pad(this.month(), 2) + '-' + pad(this.day(), 2);\n }\n});\n\n/** Basic functionality for all calendars.\n Other calendars should extend this:\n
OtherCalendar.prototype = new BaseCalendar;
\n @class BaseCalendar */\nfunction BaseCalendar() {\n this.shortYearCutoff = '+10';\n}\n\nassign(BaseCalendar.prototype, {\n _validateLevel: 0, // \"Stack\" to turn validation on/off\n\n /** Create a new date within this calendar - today if no parameters given.\n @memberof BaseCalendar\n @param year {CDate|number} The date to duplicate or the year for the date.\n @param [month] {number} The month for the date.\n @param [day] {number} The day for the date.\n @return {CDate} The new date.\n @throws Error if not a valid date or a different calendar used. */\n newDate: function(year, month, day) {\n if (year == null) {\n return this.today();\n }\n if (year.year) {\n this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n day = year.day();\n month = year.month();\n year = year.year();\n }\n return new CDate(this, year, month, day);\n },\n\n /** Create a new date for today.\n @memberof BaseCalendar\n @return {CDate} Today's date. */\n today: function() {\n return this.fromJSDate(new Date());\n },\n\n /** Retrieve the epoch designator for this date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {string} The current epoch.\n @throws Error if an invalid year or a different calendar used. */\n epoch: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return (date.year() < 0 ? this.local.epochs[0] : this.local.epochs[1]);\n },\n\n /** Format the year, if not a simple sequential number\n @memberof BaseCalendar\n @param year {CDate|number} The date to format or the year to format.\n @return {string} The formatted year.\n @throws Error if an invalid year or a different calendar used. */\n formatYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return (date.year() < 0 ? '-' : '') + pad(Math.abs(date.year()), 4)\n },\n\n /** Retrieve the number of months in a year.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of months.\n @throws Error if an invalid year or a different calendar used. */\n monthsInYear: function(year) {\n this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return 12;\n },\n\n /** Calculate the month's ordinal position within the year -\n for those calendars that don't start at month 1!\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param month {number} The month to examine.\n @return {number} The ordinal position, starting from minMonth.\n @throws Error if an invalid year/month or a different calendar used. */\n monthOfYear: function(year, month) {\n var date = this._validate(year, month, this.minDay,\n _exports.local.invalidMonth || _exports.regionalOptions[''].invalidMonth);\n return (date.month() + this.monthsInYear(date) - this.firstMonth) %\n this.monthsInYear(date) + this.minMonth;\n },\n\n /** Calculate actual month from ordinal position, starting from minMonth.\n @memberof BaseCalendar\n @param year {number} The year to examine.\n @param ord {number} The month's ordinal position.\n @return {number} The month's number.\n @throws Error if an invalid year/month. */\n fromMonthOfYear: function(year, ord) {\n var m = (ord + this.firstMonth - 2 * this.minMonth) %\n this.monthsInYear(year) + this.minMonth;\n this._validate(year, m, this.minDay,\n _exports.local.invalidMonth || _exports.regionalOptions[''].invalidMonth);\n return m;\n },\n\n /** Retrieve the number of days in a year.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {number} The number of days.\n @throws Error if an invalid year or a different calendar used. */\n daysInYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n return (this.leapYear(date) ? 366 : 365);\n },\n\n /** Retrieve the day of the year for a date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The day of the year.\n @throws Error if an invalid date or a different calendar used. */\n dayOfYear: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return date.toJD() - this.newDate(date.year(),\n this.fromMonthOfYear(date.year(), this.minMonth), this.minDay).toJD() + 1;\n },\n\n /** Retrieve the number of days in a week.\n @memberof BaseCalendar\n @return {number} The number of days. */\n daysInWeek: function() {\n return 7;\n },\n\n /** Retrieve the day of the week for a date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The day of the week: 0 to number of days - 1.\n @throws Error if an invalid date or a different calendar used. */\n dayOfWeek: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return (Math.floor(this.toJD(date)) + 2) % this.daysInWeek();\n },\n\n /** Retrieve additional information about a date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {object} Additional information - contents depends on calendar.\n @throws Error if an invalid date or a different calendar used. */\n extraInfo: function(year, month, day) {\n this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return {};\n },\n\n /** Add period(s) to a date.\n Cater for no year zero.\n @memberof BaseCalendar\n @param date {CDate} The starting date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if a different calendar used. */\n add: function(date, offset, period) {\n this._validate(date, this.minMonth, this.minDay,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return this._correctAdd(date, this._add(date, offset, period), offset, period);\n },\n\n /** Add period(s) to a date.\n @memberof BaseCalendar\n @private\n @param date {CDate} The starting date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date. */\n _add: function(date, offset, period) {\n this._validateLevel++;\n if (period === 'd' || period === 'w') {\n var jd = date.toJD() + offset * (period === 'w' ? this.daysInWeek() : 1);\n var d = date.calendar().fromJD(jd);\n this._validateLevel--;\n return [d.year(), d.month(), d.day()];\n }\n try {\n var y = date.year() + (period === 'y' ? offset : 0);\n var m = date.monthOfYear() + (period === 'm' ? offset : 0);\n var d = date.day();// + (period === 'd' ? offset : 0) +\n //(period === 'w' ? offset * this.daysInWeek() : 0);\n var resyncYearMonth = function(calendar) {\n while (m < calendar.minMonth) {\n y--;\n m += calendar.monthsInYear(y);\n }\n var yearMonths = calendar.monthsInYear(y);\n while (m > yearMonths - 1 + calendar.minMonth) {\n y++;\n m -= yearMonths;\n yearMonths = calendar.monthsInYear(y);\n }\n };\n if (period === 'y') {\n if (date.month() !== this.fromMonthOfYear(y, m)) { // Hebrew\n m = this.newDate(y, date.month(), this.minDay).monthOfYear();\n }\n m = Math.min(m, this.monthsInYear(y));\n d = Math.min(d, this.daysInMonth(y, this.fromMonthOfYear(y, m)));\n }\n else if (period === 'm') {\n resyncYearMonth(this);\n d = Math.min(d, this.daysInMonth(y, this.fromMonthOfYear(y, m)));\n }\n var ymd = [y, this.fromMonthOfYear(y, m), d];\n this._validateLevel--;\n return ymd;\n }\n catch (e) {\n this._validateLevel--;\n throw e;\n }\n },\n\n /** Correct a candidate date after adding period(s) to a date.\n Handle no year zero if necessary.\n @memberof BaseCalendar\n @private\n @param date {CDate} The starting date.\n @param ymd {number[]} The added date.\n @param offset {number} The number of periods to adjust by.\n @param period {string} One of 'y' for year, 'm' for month, 'w' for week, 'd' for day.\n @return {CDate} The updated date. */\n _correctAdd: function(date, ymd, offset, period) {\n if (!this.hasYearZero && (period === 'y' || period === 'm')) {\n if (ymd[0] === 0 || // In year zero\n (date.year() > 0) !== (ymd[0] > 0)) { // Crossed year zero\n var adj = {y: [1, 1, 'y'], m: [1, this.monthsInYear(-1), 'm'],\n w: [this.daysInWeek(), this.daysInYear(-1), 'd'],\n d: [1, this.daysInYear(-1), 'd']}[period];\n var dir = (offset < 0 ? -1 : +1);\n ymd = this._add(date, offset * adj[0] + dir * adj[1], adj[2]);\n }\n }\n return date.date(ymd[0], ymd[1], ymd[2]);\n },\n\n /** Set a portion of the date.\n @memberof BaseCalendar\n @param date {CDate} The starting date.\n @param value {number} The new value for the period.\n @param period {string} One of 'y' for year, 'm' for month, 'd' for day.\n @return {CDate} The updated date.\n @throws Error if an invalid date or a different calendar used. */\n set: function(date, value, period) {\n this._validate(date, this.minMonth, this.minDay,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n var y = (period === 'y' ? value : date.year());\n var m = (period === 'm' ? value : date.month());\n var d = (period === 'd' ? value : date.day());\n if (period === 'y' || period === 'm') {\n d = Math.min(d, this.daysInMonth(y, m));\n }\n return date.date(y, m, d);\n },\n\n /** Determine whether a date is valid for this calendar.\n @memberof BaseCalendar\n @param year {number} The year to examine.\n @param month {number} The month to examine.\n @param day {number} The day to examine.\n @return {boolean} true if a valid date, false if not. */\n isValid: function(year, month, day) {\n this._validateLevel++;\n var valid = (this.hasYearZero || year !== 0);\n if (valid) {\n var date = this.newDate(year, month, this.minDay);\n valid = (month >= this.minMonth && month - this.minMonth < this.monthsInYear(date)) &&\n (day >= this.minDay && day - this.minDay < this.daysInMonth(date));\n }\n this._validateLevel--;\n return valid;\n },\n\n /** Convert the date to a standard (Gregorian) JavaScript Date.\n @memberof BaseCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {Date} The equivalent JavaScript date.\n @throws Error if an invalid date or a different calendar used. */\n toJSDate: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n return _exports.instance().fromJD(this.toJD(date)).toJSDate();\n },\n\n /** Convert the date from a standard (Gregorian) JavaScript Date.\n @memberof BaseCalendar\n @param jsd {Date} The JavaScript date.\n @return {CDate} The equivalent calendar date. */\n fromJSDate: function(jsd) {\n return this.fromJD(_exports.instance().fromJSDate(jsd).toJD());\n },\n\n /** Check that a candidate date is from the same calendar and is valid.\n @memberof BaseCalendar\n @private\n @param year {CDate|number} The date to validate or the year to validate.\n @param [month] {number} The month to validate.\n @param [day] {number} The day to validate.\n @param error {string} Rrror message if invalid.\n @throws Error if different calendars used or invalid date. */\n _validate: function(year, month, day, error) {\n if (year.year) {\n if (this._validateLevel === 0 && this.name !== year.calendar().name) {\n throw (_exports.local.differentCalendars || _exports.regionalOptions[''].differentCalendars).\n replace(/\\{0\\}/, this.local.name).replace(/\\{1\\}/, year.calendar().local.name);\n }\n return year;\n }\n try {\n this._validateLevel++;\n if (this._validateLevel === 1 && !this.isValid(year, month, day)) {\n throw error.replace(/\\{0\\}/, this.local.name);\n }\n var date = this.newDate(year, month, day);\n this._validateLevel--;\n return date;\n }\n catch (e) {\n this._validateLevel--;\n throw e;\n }\n }\n});\n\n/** Implementation of the Proleptic Gregorian Calendar.\n See http://en.wikipedia.org/wiki/Gregorian_calendar\n and http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar.\n @class GregorianCalendar\n @augments BaseCalendar\n @param [language=''] {string} The language code (default English) for localisation. */\nfunction GregorianCalendar(language) {\n this.local = this.regionalOptions[language] || this.regionalOptions[''];\n}\n\nGregorianCalendar.prototype = new BaseCalendar;\n\nassign(GregorianCalendar.prototype, {\n /** The calendar name.\n @memberof GregorianCalendar */\n name: 'Gregorian',\n /** Julian date of start of Gregorian epoch: 1 January 0001 CE.\n @memberof GregorianCalendar */\n jdEpoch: 1721425.5,\n /** Days per month in a common year.\n @memberof GregorianCalendar */\n daysPerMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n /** true if has a year zero, false if not.\n @memberof GregorianCalendar */\n hasYearZero: false,\n /** The minimum month number.\n @memberof GregorianCalendar */\n minMonth: 1,\n /** The first month in the year.\n @memberof GregorianCalendar */\n firstMonth: 1,\n /** The minimum day number.\n @memberof GregorianCalendar */\n minDay: 1,\n\n /** Localisations for the plugin.\n Entries are objects indexed by the language code ('' being the default US/English).\n Each object has the following attributes.\n @memberof GregorianCalendar\n @property name {string} The calendar name.\n @property epochs {string[]} The epoch names.\n @property monthNames {string[]} The long names of the months of the year.\n @property monthNamesShort {string[]} The short names of the months of the year.\n @property dayNames {string[]} The long names of the days of the week.\n @property dayNamesShort {string[]} The short names of the days of the week.\n @property dayNamesMin {string[]} The minimal names of the days of the week.\n @property dateFormat {string} The date format for this calendar.\n See the options on formatDate for details.\n @property firstDay {number} The number of the first day of the week, starting at 0.\n @property isRTL {number} true if this localisation reads right-to-left. */\n regionalOptions: { // Localisations\n '': {\n name: 'Gregorian',\n epochs: ['BCE', 'CE'],\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n digits: null,\n dateFormat: 'mm/dd/yyyy',\n firstDay: 0,\n isRTL: false\n }\n },\n \n /** Determine whether this date is in a leap year.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @return {boolean} true if this is a leap year, false if not.\n @throws Error if an invalid year or a different calendar used. */\n leapYear: function(year) {\n var date = this._validate(year, this.minMonth, this.minDay,\n _exports.local.invalidYear || _exports.regionalOptions[''].invalidYear);\n var year = date.year() + (date.year() < 0 ? 1 : 0); // No year zero\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n },\n\n /** Determine the week of the year for a date - ISO 8601.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {number} The week of the year, starting from 1.\n @throws Error if an invalid date or a different calendar used. */\n weekOfYear: function(year, month, day) {\n // Find Thursday of this week starting on Monday\n var checkDate = this.newDate(year, month, day);\n checkDate.add(4 - (checkDate.dayOfWeek() || 7), 'd');\n return Math.floor((checkDate.dayOfYear() - 1) / 7) + 1;\n },\n\n /** Retrieve the number of days in a month.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year of the month.\n @param [month] {number} The month.\n @return {number} The number of days in this month.\n @throws Error if an invalid month/year or a different calendar used. */\n daysInMonth: function(year, month) {\n var date = this._validate(year, month, this.minDay,\n _exports.local.invalidMonth || _exports.regionalOptions[''].invalidMonth);\n return this.daysPerMonth[date.month() - 1] +\n (date.month() === 2 && this.leapYear(date.year()) ? 1 : 0);\n },\n\n /** Determine whether this date is a week day.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to examine or the year to examine.\n @param [month] {number} The month to examine.\n @param [day] {number} The day to examine.\n @return {boolean} true if a week day, false if not.\n @throws Error if an invalid date or a different calendar used. */\n weekDay: function(year, month, day) {\n return (this.dayOfWeek(year, month, day) || 7) < 6;\n },\n\n /** Retrieve the Julian date equivalent for this date,\n i.e. days since January 1, 4713 BCE Greenwich noon.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {number} The equivalent Julian date.\n @throws Error if an invalid date or a different calendar used. */\n toJD: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n year = date.year();\n month = date.month();\n day = date.day();\n if (year < 0) { year++; } // No year zero\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n if (month < 3) {\n month += 12;\n year--;\n }\n var a = Math.floor(year / 100);\n var b = 2 - a + Math.floor(a / 4);\n return Math.floor(365.25 * (year + 4716)) +\n Math.floor(30.6001 * (month + 1)) + day + b - 1524.5;\n },\n\n /** Create a new date from a Julian date.\n @memberof GregorianCalendar\n @param jd {number} The Julian date to convert.\n @return {CDate} The equivalent date. */\n fromJD: function(jd) {\n // Jean Meeus algorithm, \"Astronomical Algorithms\", 1991\n var z = Math.floor(jd + 0.5);\n var a = Math.floor((z - 1867216.25) / 36524.25);\n a = z + 1 + a - Math.floor(a / 4);\n var b = a + 1524;\n var c = Math.floor((b - 122.1) / 365.25);\n var d = Math.floor(365.25 * c);\n var e = Math.floor((b - d) / 30.6001);\n var day = b - d - Math.floor(e * 30.6001);\n var month = e - (e > 13.5 ? 13 : 1);\n var year = c - (month > 2.5 ? 4716 : 4715);\n if (year <= 0) { year--; } // No year zero\n return this.newDate(year, month, day);\n },\n\n /** Convert this date to a standard (Gregorian) JavaScript Date.\n @memberof GregorianCalendar\n @param year {CDate|number} The date to convert or the year to convert.\n @param [month] {number} The month to convert.\n @param [day] {number} The day to convert.\n @return {Date} The equivalent JavaScript date.\n @throws Error if an invalid date or a different calendar used. */\n toJSDate: function(year, month, day) {\n var date = this._validate(year, month, day,\n _exports.local.invalidDate || _exports.regionalOptions[''].invalidDate);\n var jsd = new Date(date.year(), date.month() - 1, date.day());\n jsd.setHours(0);\n jsd.setMinutes(0);\n jsd.setSeconds(0);\n jsd.setMilliseconds(0);\n // Hours may be non-zero on daylight saving cut-over:\n // > 12 when midnight changeover, but then cannot generate\n // midnight datetime, so jump to 1AM, otherwise reset.\n jsd.setHours(jsd.getHours() > 12 ? jsd.getHours() + 2 : 0);\n return jsd;\n },\n\n /** Create a new date from a standard (Gregorian) JavaScript Date.\n @memberof GregorianCalendar\n @param jsd {Date} The JavaScript date to convert.\n @return {CDate} The equivalent date. */\n fromJSDate: function(jsd) {\n return this.newDate(jsd.getFullYear(), jsd.getMonth() + 1, jsd.getDate());\n }\n});\n\n// Singleton manager\nvar _exports = module.exports = new Calendars();\n\n// Date template\n_exports.cdate = CDate;\n\n// Base calendar template\n_exports.baseCalendar = BaseCalendar;\n\n// Gregorian calendar implementation\n_exports.calendars.gregorian = GregorianCalendar;\n\n\n},{\"object-assign\":247}],348:[function(_dereq_,module,exports){\n/*\n * World Calendars\n * https://github.com/alexcjohnson/world-calendars\n *\n * Batch-converted from kbwood/calendars\n * Many thanks to Keith Wood and all of the contributors to the original project!\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/* http://keith-wood.name/calendars.html\n Calendars extras for jQuery v2.0.2.\n Written by Keith Wood (wood.keith{at}optusnet.com.au) August 2009.\n Available under the MIT (http://keith-wood.name/licence.html) license. \n Please attribute the author if you use it. */\n\nvar assign = _dereq_('object-assign');\nvar main = _dereq_('./main');\n\n\nassign(main.regionalOptions[''], {\n invalidArguments: 'Invalid arguments',\n invalidFormat: 'Cannot format a date from another calendar',\n missingNumberAt: 'Missing number at position {0}',\n unknownNameAt: 'Unknown name at position {0}',\n unexpectedLiteralAt: 'Unexpected literal at position {0}',\n unexpectedText: 'Additional text found at end'\n});\nmain.local = main.regionalOptions[''];\n\nassign(main.cdate.prototype, {\n\n /** Format this date.\n Found in the jquery.calendars.plus.js module.\n @memberof CDate\n @param [format] {string} The date format to use (see formatDate).\n @param [settings] {object} Options for the formatDate function.\n @return {string} The formatted date. */\n formatDate: function(format, settings) {\n if (typeof format !== 'string') {\n settings = format;\n format = '';\n }\n return this._calendar.formatDate(format || '', this, settings);\n }\n});\n\nassign(main.baseCalendar.prototype, {\n\n UNIX_EPOCH: main.instance().newDate(1970, 1, 1).toJD(),\n SECS_PER_DAY: 24 * 60 * 60,\n TICKS_EPOCH: main.instance().jdEpoch, // 1 January 0001 CE\n TICKS_PER_DAY: 24 * 60 * 60 * 10000000,\n\n /** Date form for ATOM (RFC 3339/ISO 8601).\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n ATOM: 'yyyy-mm-dd',\n /** Date form for cookies.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n COOKIE: 'D, dd M yyyy',\n /** Date form for full date.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n FULL: 'DD, MM d, yyyy',\n /** Date form for ISO 8601.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n ISO_8601: 'yyyy-mm-dd',\n /** Date form for Julian date.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n JULIAN: 'J',\n /** Date form for RFC 822.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_822: 'D, d M yy',\n /** Date form for RFC 850.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_850: 'DD, dd-M-yy',\n /** Date form for RFC 1036.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_1036: 'D, d M yy',\n /** Date form for RFC 1123.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_1123: 'D, d M yyyy',\n /** Date form for RFC 2822.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RFC_2822: 'D, d M yyyy',\n /** Date form for RSS (RFC 822).\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n RSS: 'D, d M yy',\n /** Date form for Windows ticks.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n TICKS: '!',\n /** Date form for Unix timestamp.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n TIMESTAMP: '@',\n /** Date form for W3c (ISO 8601).\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar */\n W3C: 'yyyy-mm-dd',\n\n /** Format a date object into a string value.\n The format can be combinations of the following:\n
    \n
  • d - day of month (no leading zero)
  • \n
  • dd - day of month (two digit)
  • \n
  • o - day of year (no leading zeros)
  • \n
  • oo - day of year (three digit)
  • \n
  • D - day name short
  • \n
  • DD - day name long
  • \n
  • w - week of year (no leading zero)
  • \n
  • ww - week of year (two digit)
  • \n
  • m - month of year (no leading zero)
  • \n
  • mm - month of year (two digit)
  • \n
  • M - month name short
  • \n
  • MM - month name long
  • \n
  • yy - year (two digit)
  • \n
  • yyyy - year (four digit)
  • \n
  • YYYY - formatted year
  • \n
  • J - Julian date (days since January 1, 4713 BCE Greenwich noon)
  • \n
  • @ - Unix timestamp (s since 01/01/1970)
  • \n
  • ! - Windows ticks (100ns since 01/01/0001)
  • \n
  • '...' - literal text
  • \n
  • '' - single quote
  • \n
\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar\n @param [format] {string} The desired format of the date (defaults to calendar format).\n @param date {CDate} The date value to format.\n @param [settings] {object} Addition options, whose attributes include:\n @property [dayNamesShort] {string[]} Abbreviated names of the days from Sunday.\n @property [dayNames] {string[]} Names of the days from Sunday.\n @property [monthNamesShort] {string[]} Abbreviated names of the months.\n @property [monthNames] {string[]} Names of the months.\n @property [calculateWeek] {CalendarsPickerCalculateWeek} Function that determines week of the year.\n @property [localNumbers=false] {boolean} true to localise numbers (if available),\n false to use normal Arabic numerals.\n @return {string} The date in the above format.\n @throws Errors if the date is from a different calendar. */\n formatDate: function(format, date, settings) {\n if (typeof format !== 'string') {\n settings = date;\n date = format;\n format = '';\n }\n if (!date) {\n return '';\n }\n if (date.calendar() !== this) {\n throw main.local.invalidFormat || main.regionalOptions[''].invalidFormat;\n }\n format = format || this.local.dateFormat;\n settings = settings || {};\n var dayNamesShort = settings.dayNamesShort || this.local.dayNamesShort;\n var dayNames = settings.dayNames || this.local.dayNames;\n var monthNumbers = settings.monthNumbers || this.local.monthNumbers;\n var monthNamesShort = settings.monthNamesShort || this.local.monthNamesShort;\n var monthNames = settings.monthNames || this.local.monthNames;\n var calculateWeek = settings.calculateWeek || this.local.calculateWeek;\n // Check whether a format character is doubled\n var doubled = function(match, step) {\n var matches = 1;\n while (iFormat + matches < format.length && format.charAt(iFormat + matches) === match) {\n matches++;\n }\n iFormat += matches - 1;\n return Math.floor(matches / (step || 1)) > 1;\n };\n // Format a number, with leading zeroes if necessary\n var formatNumber = function(match, value, len, step) {\n var num = '' + value;\n if (doubled(match, step)) {\n while (num.length < len) {\n num = '0' + num;\n }\n }\n return num;\n };\n // Format a name, short or long as requested\n var formatName = function(match, value, shortNames, longNames) {\n return (doubled(match) ? longNames[value] : shortNames[value]);\n };\n // Format month number\n // (e.g. Chinese calendar needs to account for intercalary months)\n var calendar = this;\n var formatMonth = function(date) {\n return (typeof monthNumbers === 'function') ?\n monthNumbers.call(calendar, date, doubled('m')) :\n localiseNumbers(formatNumber('m', date.month(), 2));\n };\n // Format a month name, short or long as requested\n var formatMonthName = function(date, useLongName) {\n if (useLongName) {\n return (typeof monthNames === 'function') ?\n monthNames.call(calendar, date) :\n monthNames[date.month() - calendar.minMonth];\n } else {\n return (typeof monthNamesShort === 'function') ?\n monthNamesShort.call(calendar, date) :\n monthNamesShort[date.month() - calendar.minMonth];\n }\n };\n // Localise numbers if requested and available\n var digits = this.local.digits;\n var localiseNumbers = function(value) {\n return (settings.localNumbers && digits ? digits(value) : value);\n };\n var output = '';\n var literal = false;\n for (var iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !doubled(\"'\")) {\n literal = false;\n }\n else {\n output += format.charAt(iFormat);\n }\n }\n else {\n switch (format.charAt(iFormat)) {\n case 'd': output += localiseNumbers(formatNumber('d', date.day(), 2)); break;\n case 'D': output += formatName('D', date.dayOfWeek(),\n dayNamesShort, dayNames); break;\n case 'o': output += formatNumber('o', date.dayOfYear(), 3); break;\n case 'w': output += formatNumber('w', date.weekOfYear(), 2); break;\n case 'm': output += formatMonth(date); break;\n case 'M': output += formatMonthName(date, doubled('M')); break;\n case 'y':\n output += (doubled('y', 2) ? date.year() :\n (date.year() % 100 < 10 ? '0' : '') + date.year() % 100);\n break;\n case 'Y':\n doubled('Y', 2);\n output += date.formatYear();\n break;\n case 'J': output += date.toJD(); break;\n case '@': output += (date.toJD() - this.UNIX_EPOCH) * this.SECS_PER_DAY; break;\n case '!': output += (date.toJD() - this.TICKS_EPOCH) * this.TICKS_PER_DAY; break;\n case \"'\":\n if (doubled(\"'\")) {\n output += \"'\";\n }\n else {\n literal = true;\n }\n break;\n default:\n output += format.charAt(iFormat);\n }\n }\n }\n return output;\n },\n\n /** Parse a string value into a date object.\n See formatDate for the possible formats, plus:\n
    \n
  • * - ignore rest of string
  • \n
\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar\n @param format {string} The expected format of the date ('' for default calendar format).\n @param value {string} The date in the above format.\n @param [settings] {object} Additional options whose attributes include:\n @property [shortYearCutoff] {number} The cutoff year for determining the century.\n @property [dayNamesShort] {string[]} Abbreviated names of the days from Sunday.\n @property [dayNames] {string[]} Names of the days from Sunday.\n @property [monthNamesShort] {string[]} Abbreviated names of the months.\n @property [monthNames] {string[]} Names of the months.\n @return {CDate} The extracted date value or null if value is blank.\n @throws Errors if the format and/or value are missing,\n if the value doesn't match the format, or if the date is invalid. */\n parseDate: function(format, value, settings) {\n if (value == null) {\n throw main.local.invalidArguments || main.regionalOptions[''].invalidArguments;\n }\n value = (typeof value === 'object' ? value.toString() : value + '');\n if (value === '') {\n return null;\n }\n format = format || this.local.dateFormat;\n settings = settings || {};\n var shortYearCutoff = settings.shortYearCutoff || this.shortYearCutoff;\n shortYearCutoff = (typeof shortYearCutoff !== 'string' ? shortYearCutoff :\n this.today().year() % 100 + parseInt(shortYearCutoff, 10));\n var dayNamesShort = settings.dayNamesShort || this.local.dayNamesShort;\n var dayNames = settings.dayNames || this.local.dayNames;\n var parseMonth = settings.parseMonth || this.local.parseMonth;\n var monthNumbers = settings.monthNumbers || this.local.monthNumbers;\n var monthNamesShort = settings.monthNamesShort || this.local.monthNamesShort;\n var monthNames = settings.monthNames || this.local.monthNames;\n var jd = -1;\n var year = -1;\n var month = -1;\n var day = -1;\n var doy = -1;\n var shortYear = false;\n var literal = false;\n // Check whether a format character is doubled\n var doubled = function(match, step) {\n var matches = 1;\n while (iFormat + matches < format.length && format.charAt(iFormat + matches) === match) {\n matches++;\n }\n iFormat += matches - 1;\n return Math.floor(matches / (step || 1)) > 1;\n };\n // Extract a number from the string value\n var getNumber = function(match, step) {\n var isDoubled = doubled(match, step);\n var size = [2, 3, isDoubled ? 4 : 2, isDoubled ? 4 : 2, 10, 11, 20]['oyYJ@!'.indexOf(match) + 1];\n var digits = new RegExp('^-?\\\\d{1,' + size + '}');\n var num = value.substring(iValue).match(digits);\n if (!num) {\n throw (main.local.missingNumberAt || main.regionalOptions[''].missingNumberAt).\n replace(/\\{0\\}/, iValue);\n }\n iValue += num[0].length;\n return parseInt(num[0], 10);\n };\n // Extract a month number from the string value\n var calendar = this;\n var getMonthNumber = function() {\n if (typeof monthNumbers === 'function') {\n doubled('m'); // update iFormat\n var month = monthNumbers.call(calendar, value.substring(iValue));\n iValue += month.length;\n return month;\n }\n\n return getNumber('m');\n };\n // Extract a name from the string value and convert to an index\n var getName = function(match, shortNames, longNames, step) {\n var names = (doubled(match, step) ? longNames : shortNames);\n for (var i = 0; i < names.length; i++) {\n if (value.substr(iValue, names[i].length).toLowerCase() === names[i].toLowerCase()) {\n iValue += names[i].length;\n return i + calendar.minMonth;\n }\n }\n throw (main.local.unknownNameAt || main.regionalOptions[''].unknownNameAt).\n replace(/\\{0\\}/, iValue);\n };\n // Extract a month number from the string value\n var getMonthName = function() {\n if (typeof monthNames === 'function') {\n var month = doubled('M') ?\n monthNames.call(calendar, value.substring(iValue)) :\n monthNamesShort.call(calendar, value.substring(iValue));\n iValue += month.length;\n return month;\n }\n\n return getName('M', monthNamesShort, monthNames);\n };\n // Confirm that a literal character matches the string value\n var checkLiteral = function() {\n if (value.charAt(iValue) !== format.charAt(iFormat)) {\n throw (main.local.unexpectedLiteralAt ||\n main.regionalOptions[''].unexpectedLiteralAt).replace(/\\{0\\}/, iValue);\n }\n iValue++;\n };\n var iValue = 0;\n for (var iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !doubled(\"'\")) {\n literal = false;\n }\n else {\n checkLiteral();\n }\n }\n else {\n switch (format.charAt(iFormat)) {\n case 'd': day = getNumber('d'); break;\n case 'D': getName('D', dayNamesShort, dayNames); break;\n case 'o': doy = getNumber('o'); break;\n case 'w': getNumber('w'); break;\n case 'm': month = getMonthNumber(); break;\n case 'M': month = getMonthName(); break;\n case 'y':\n var iSave = iFormat;\n shortYear = !doubled('y', 2);\n iFormat = iSave;\n year = getNumber('y', 2);\n break;\n case 'Y': year = getNumber('Y', 2); break;\n case 'J':\n jd = getNumber('J') + 0.5;\n if (value.charAt(iValue) === '.') {\n iValue++;\n getNumber('J');\n }\n break;\n case '@': jd = getNumber('@') / this.SECS_PER_DAY + this.UNIX_EPOCH; break;\n case '!': jd = getNumber('!') / this.TICKS_PER_DAY + this.TICKS_EPOCH; break;\n case '*': iValue = value.length; break;\n case \"'\":\n if (doubled(\"'\")) {\n checkLiteral();\n }\n else {\n literal = true;\n }\n break;\n default: checkLiteral();\n }\n }\n }\n if (iValue < value.length) {\n throw main.local.unexpectedText || main.regionalOptions[''].unexpectedText;\n }\n if (year === -1) {\n year = this.today().year();\n }\n else if (year < 100 && shortYear) {\n year += (shortYearCutoff === -1 ? 1900 : this.today().year() -\n this.today().year() % 100 - (year <= shortYearCutoff ? 0 : 100));\n }\n if (typeof month === 'string') {\n month = parseMonth.call(this, year, month);\n }\n if (doy > -1) {\n month = 1;\n day = doy;\n for (var dim = this.daysInMonth(year, month); day > dim; dim = this.daysInMonth(year, month)) {\n month++;\n day -= dim;\n }\n }\n return (jd > -1 ? this.fromJD(jd) : this.newDate(year, month, day));\n },\n\n /** A date may be specified as an exact value or a relative one.\n Found in the jquery.calendars.plus.js module.\n @memberof BaseCalendar\n @param dateSpec {CDate|number|string} The date as an object or string in the given format or\n an offset - numeric days from today, or string amounts and periods, e.g. '+1m +2w'.\n @param defaultDate {CDate} The date to use if no other supplied, may be null.\n @param currentDate {CDate} The current date as a possible basis for relative dates,\n if null today is used (optional)\n @param [dateFormat] {string} The expected date format - see formatDate.\n @param [settings] {object} Additional options whose attributes include:\n @property [shortYearCutoff] {number} The cutoff year for determining the century.\n @property [dayNamesShort] {string[]} Abbreviated names of the days from Sunday.\n @property [dayNames] {string[]} Names of the days from Sunday.\n @property [monthNamesShort] {string[]} Abbreviated names of the months.\n @property [monthNames] {string[]} Names of the months.\n @return {CDate} The decoded date. */\n determineDate: function(dateSpec, defaultDate, currentDate, dateFormat, settings) {\n if (currentDate && typeof currentDate !== 'object') {\n settings = dateFormat;\n dateFormat = currentDate;\n currentDate = null;\n }\n if (typeof dateFormat !== 'string') {\n settings = dateFormat;\n dateFormat = '';\n }\n var calendar = this;\n var offsetString = function(offset) {\n try {\n return calendar.parseDate(dateFormat, offset, settings);\n }\n catch (e) {\n // Ignore\n }\n offset = offset.toLowerCase();\n var date = (offset.match(/^c/) && currentDate ?\n currentDate.newDate() : null) || calendar.today();\n var pattern = /([+-]?[0-9]+)\\s*(d|w|m|y)?/g;\n var matches = pattern.exec(offset);\n while (matches) {\n date.add(parseInt(matches[1], 10), matches[2] || 'd');\n matches = pattern.exec(offset);\n }\n return date;\n };\n defaultDate = (defaultDate ? defaultDate.newDate() : null);\n dateSpec = (dateSpec == null ? defaultDate :\n (typeof dateSpec === 'string' ? offsetString(dateSpec) : (typeof dateSpec === 'number' ?\n (isNaN(dateSpec) || dateSpec === Infinity || dateSpec === -Infinity ? defaultDate :\n calendar.today().add(dateSpec, 'd')) : calendar.newDate(dateSpec))));\n return dateSpec;\n }\n});\n\n\n},{\"./main\":347,\"object-assign\":247}],349:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * All paths are tuned for maximum scalability of the arrowhead,\n * ie throughout arrowwidth=0.3..3 the head is joined smoothly\n * to the line, with the line coming from the left and ending at (0, 0).\n *\n * `backoff` is the distance to move the arrowhead and the end of the line,\n * in order that the arrowhead points to the desired place, either at\n * the tip of the arrow or (in the case of circle or square)\n * the center of the symbol.\n *\n * `noRotate`, if truthy, says that this arrowhead should not rotate with the\n * arrow. That's the case for squares, which should always be straight, and\n * circles, for which it's irrelevant.\n */\n\nmodule.exports = [\n // no arrow\n {\n path: '',\n backoff: 0\n },\n // wide with flat back\n {\n path: 'M-2.4,-3V3L0.6,0Z',\n backoff: 0.6\n },\n // narrower with flat back\n {\n path: 'M-3.7,-2.5V2.5L1.3,0Z',\n backoff: 1.3\n },\n // barbed\n {\n path: 'M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z',\n backoff: 1.55\n },\n // wide line-drawn\n {\n path: 'M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z',\n backoff: 1.6\n },\n // narrower line-drawn\n {\n path: 'M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z',\n backoff: 2\n },\n // circle\n {\n path: 'M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z',\n backoff: 0,\n noRotate: true\n },\n // square\n {\n path: 'M2,2V-2H-2V2Z',\n backoff: 0,\n noRotate: true\n }\n];\n\n},{}],350:[function(_dereq_,module,exports){\n'use strict';\n\nvar ARROWPATHS = _dereq_('./arrow_paths');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar cartesianConstants = _dereq_('../../plots/cartesian/constants');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\nfunction arrowAxisRefDescription(axis) {\n return [\n 'In order for absolute positioning of the arrow to work, *a' + axis +\n 'ref* must be exactly the same as *' + axis + 'ref*, otherwise *a' + axis +\n 'ref* will revert to *pixel* (explained next).',\n 'For relative positioning, *a' + axis + 'ref* can be set to *pixel*,',\n 'in which case the *a' + axis + '* value is specified in pixels',\n 'relative to *' + axis + '*.',\n 'Absolute positioning is useful',\n 'for trendline annotations which should continue to indicate',\n 'the correct trend when zoomed. Relative positioning is useful',\n 'for specifying the text offset for an annotated point.'\n ].join(' ');\n}\n\nfunction arrowCoordinateDescription(axis, lower, upper) {\n return [\n 'Sets the', axis, 'component of the arrow tail about the arrow head.',\n 'If `a' + axis + 'ref` is `pixel`, a positive (negative)',\n 'component corresponds to an arrow pointing',\n 'from', upper, 'to', lower, '(' + lower, 'to', upper + ').',\n 'If `a' + axis + 'ref` is not `pixel` and is exactly the same as `' + axis + 'ref`,',\n 'this is an absolute value on that axis,',\n 'like `' + axis + '`, specified in the same coordinates as `' + axis + 'ref`.'\n ].join(' ');\n}\n\nmodule.exports = templatedArray('annotation', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc+arraydraw',\n },\n\n text: {\n valType: 'string',\n editType: 'calc+arraydraw',\n },\n textangle: {\n valType: 'angle',\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n font: fontAttrs({\n editType: 'calc+arraydraw',\n colorEditType: 'arraydraw',\n }),\n width: {\n valType: 'number',\n min: 1,\n dflt: null,\n editType: 'calc+arraydraw',\n },\n height: {\n valType: 'number',\n min: 1,\n dflt: null,\n editType: 'calc+arraydraw',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'arraydraw',\n },\n align: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'center',\n editType: 'arraydraw',\n },\n valign: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'middle',\n editType: 'arraydraw',\n },\n bgcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'arraydraw',\n },\n bordercolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'arraydraw',\n },\n borderpad: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n // arrow\n showarrow: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc+arraydraw',\n },\n arrowcolor: {\n valType: 'color',\n editType: 'arraydraw',\n },\n arrowhead: {\n valType: 'integer',\n min: 0,\n max: ARROWPATHS.length,\n dflt: 1,\n editType: 'arraydraw',\n },\n startarrowhead: {\n valType: 'integer',\n min: 0,\n max: ARROWPATHS.length,\n dflt: 1,\n editType: 'arraydraw',\n },\n arrowside: {\n valType: 'flaglist',\n flags: ['end', 'start'],\n extras: ['none'],\n dflt: 'end',\n editType: 'arraydraw',\n },\n arrowsize: {\n valType: 'number',\n min: 0.3,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n startarrowsize: {\n valType: 'number',\n min: 0.3,\n dflt: 1,\n editType: 'calc+arraydraw',\n },\n arrowwidth: {\n valType: 'number',\n min: 0.1,\n editType: 'calc+arraydraw',\n },\n standoff: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n startstandoff: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n ax: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n ay: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n axref: {\n valType: 'enumerated',\n dflt: 'pixel',\n values: [\n 'pixel',\n cartesianConstants.idRegex.x.toString()\n ],\n editType: 'calc',\n },\n ayref: {\n valType: 'enumerated',\n dflt: 'pixel',\n values: [\n 'pixel',\n cartesianConstants.idRegex.y.toString()\n ],\n editType: 'calc',\n },\n // positioning\n xref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.x.toString()\n ],\n editType: 'calc',\n },\n x: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'auto',\n editType: 'calc+arraydraw',\n },\n xshift: {\n valType: 'number',\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n yref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.y.toString()\n ],\n editType: 'calc',\n },\n y: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'auto',\n editType: 'calc+arraydraw',\n },\n yshift: {\n valType: 'number',\n dflt: 0,\n editType: 'calc+arraydraw',\n },\n clicktoshow: {\n valType: 'enumerated',\n values: [false, 'onoff', 'onout'],\n dflt: false,\n editType: 'arraydraw',\n },\n xclick: {\n valType: 'any',\n editType: 'arraydraw',\n },\n yclick: {\n valType: 'any',\n editType: 'arraydraw',\n },\n hovertext: {\n valType: 'string',\n editType: 'arraydraw',\n },\n hoverlabel: {\n bgcolor: {\n valType: 'color',\n editType: 'arraydraw',\n },\n bordercolor: {\n valType: 'color',\n editType: 'arraydraw',\n },\n font: fontAttrs({\n editType: 'arraydraw',\n }),\n editType: 'arraydraw'\n },\n captureevents: {\n valType: 'boolean',\n editType: 'arraydraw',\n },\n editType: 'calc',\n\n _deprecated: {\n ref: {\n valType: 'string',\n editType: 'calc',\n }\n }\n});\n\n},{\"../../constants/axis_placeable_objects\":484,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/constants\":573,\"../../plots/font_attributes\":594,\"./arrow_paths\":349}],351:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar draw = _dereq_('./draw').draw;\n\n\nmodule.exports = function calcAutorange(gd) {\n var fullLayout = gd._fullLayout;\n var annotationList = Lib.filterVisible(fullLayout.annotations);\n\n if(annotationList.length && gd._fullData.length) {\n return Lib.syncOrAsync([draw, annAutorange], gd);\n }\n};\n\nfunction annAutorange(gd) {\n var fullLayout = gd._fullLayout;\n\n // find the bounding boxes for each of these annotations'\n // relative to their anchor points\n // use the arrow and the text bg rectangle,\n // as the whole anno may include hidden text in its bbox\n Lib.filterVisible(fullLayout.annotations).forEach(function(ann) {\n var xa = Axes.getFromId(gd, ann.xref);\n var ya = Axes.getFromId(gd, ann.yref);\n var xRefType = Axes.getRefType(ann.xref);\n var yRefType = Axes.getRefType(ann.yref);\n\n ann._extremes = {};\n if(xRefType === 'range') calcAxisExpansion(ann, xa);\n if(yRefType === 'range') calcAxisExpansion(ann, ya);\n });\n}\n\nfunction calcAxisExpansion(ann, ax) {\n var axId = ax._id;\n var letter = axId.charAt(0);\n var pos = ann[letter];\n var apos = ann['a' + letter];\n var ref = ann[letter + 'ref'];\n var aref = ann['a' + letter + 'ref'];\n var padplus = ann['_' + letter + 'padplus'];\n var padminus = ann['_' + letter + 'padminus'];\n var shift = {x: 1, y: -1}[letter] * ann[letter + 'shift'];\n var headSize = 3 * ann.arrowsize * ann.arrowwidth || 0;\n var headPlus = headSize + shift;\n var headMinus = headSize - shift;\n var startHeadSize = 3 * ann.startarrowsize * ann.arrowwidth || 0;\n var startHeadPlus = startHeadSize + shift;\n var startHeadMinus = startHeadSize - shift;\n var extremes;\n\n if(aref === ref) {\n // expand for the arrowhead (padded by arrowhead)\n var extremeArrowHead = Axes.findExtremes(ax, [ax.r2c(pos)], {\n ppadplus: headPlus,\n ppadminus: headMinus\n });\n // again for the textbox (padded by textbox)\n var extremeText = Axes.findExtremes(ax, [ax.r2c(apos)], {\n ppadplus: Math.max(padplus, startHeadPlus),\n ppadminus: Math.max(padminus, startHeadMinus)\n });\n extremes = {\n min: [extremeArrowHead.min[0], extremeText.min[0]],\n max: [extremeArrowHead.max[0], extremeText.max[0]]\n };\n } else {\n startHeadPlus = apos ? startHeadPlus + apos : startHeadPlus;\n startHeadMinus = apos ? startHeadMinus - apos : startHeadMinus;\n extremes = Axes.findExtremes(ax, [ax.r2c(pos)], {\n ppadplus: Math.max(padplus, headPlus, startHeadPlus),\n ppadminus: Math.max(padminus, headMinus, startHeadMinus)\n });\n }\n\n ann._extremes[axId] = extremes;\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"./draw\":356}],352:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nmodule.exports = {\n hasClickToShow: hasClickToShow,\n onClick: onClick\n};\n\n/*\n * hasClickToShow: does the given hoverData have ANY annotations which will\n * turn ON if we click here? (used by hover events to set cursor)\n *\n * gd: graphDiv\n * hoverData: a hoverData array, as included with the *plotly_hover* or\n * *plotly_click* events in the `points` attribute\n *\n * returns: boolean\n */\nfunction hasClickToShow(gd, hoverData) {\n var sets = getToggleSets(gd, hoverData);\n return sets.on.length > 0 || sets.explicitOff.length > 0;\n}\n\n/*\n * onClick: perform the toggling (via Plotly.update) implied by clicking\n * at this hoverData\n *\n * gd: graphDiv\n * hoverData: a hoverData array, as included with the *plotly_hover* or\n * *plotly_click* events in the `points` attribute\n *\n * returns: Promise that the update is complete\n */\nfunction onClick(gd, hoverData) {\n var toggleSets = getToggleSets(gd, hoverData);\n var onSet = toggleSets.on;\n var offSet = toggleSets.off.concat(toggleSets.explicitOff);\n var update = {};\n var annotationsOut = gd._fullLayout.annotations;\n var i, editHelpers;\n\n if(!(onSet.length || offSet.length)) return;\n\n for(i = 0; i < onSet.length; i++) {\n editHelpers = arrayEditor(gd.layout, 'annotations', annotationsOut[onSet[i]]);\n editHelpers.modifyItem('visible', true);\n Lib.extendFlat(update, editHelpers.getUpdateObj());\n }\n\n for(i = 0; i < offSet.length; i++) {\n editHelpers = arrayEditor(gd.layout, 'annotations', annotationsOut[offSet[i]]);\n editHelpers.modifyItem('visible', false);\n Lib.extendFlat(update, editHelpers.getUpdateObj());\n }\n\n return Registry.call('update', gd, {}, update);\n}\n\n/*\n * getToggleSets: find the annotations which will turn on or off at this\n * hoverData\n *\n * gd: graphDiv\n * hoverData: a hoverData array, as included with the *plotly_hover* or\n * *plotly_click* events in the `points` attribute\n *\n * returns: {\n * on: Array (indices of annotations to turn on),\n * off: Array (indices to turn off because you're not hovering on them),\n * explicitOff: Array (indices to turn off because you *are* hovering on them)\n * }\n */\nfunction getToggleSets(gd, hoverData) {\n var annotations = gd._fullLayout.annotations;\n var onSet = [];\n var offSet = [];\n var explicitOffSet = [];\n var hoverLen = (hoverData || []).length;\n\n var i, j, anni, showMode, pointj, xa, ya, toggleType;\n\n for(i = 0; i < annotations.length; i++) {\n anni = annotations[i];\n showMode = anni.clicktoshow;\n\n if(showMode) {\n for(j = 0; j < hoverLen; j++) {\n pointj = hoverData[j];\n xa = pointj.xaxis;\n ya = pointj.yaxis;\n\n if(xa._id === anni.xref &&\n ya._id === anni.yref &&\n xa.d2r(pointj.x) === clickData2r(anni._xclick, xa) &&\n ya.d2r(pointj.y) === clickData2r(anni._yclick, ya)\n ) {\n // match! toggle this annotation\n // regardless of its clicktoshow mode\n // but if it's onout mode, off is implicit\n if(anni.visible) {\n if(showMode === 'onout') toggleType = offSet;\n else toggleType = explicitOffSet;\n } else {\n toggleType = onSet;\n }\n toggleType.push(i);\n break;\n }\n }\n\n if(j === hoverLen) {\n // no match - only turn this annotation OFF, and only if\n // showmode is 'onout'\n if(anni.visible && showMode === 'onout') offSet.push(i);\n }\n }\n }\n\n return {on: onSet, off: offSet, explicitOff: explicitOffSet};\n}\n\n// to handle log axes until v3\nfunction clickData2r(d, ax) {\n return ax.type === 'log' ? ax.l2r(d) : ax.d2r(d);\n}\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../registry\":647}],353:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\n\n// defaults common to 'annotations' and 'annotations3d'\nmodule.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayout, coerce) {\n coerce('opacity');\n var bgColor = coerce('bgcolor');\n\n var borderColor = coerce('bordercolor');\n var borderOpacity = Color.opacity(borderColor);\n\n coerce('borderpad');\n\n var borderWidth = coerce('borderwidth');\n var showArrow = coerce('showarrow');\n\n coerce('text', showArrow ? ' ' : fullLayout._dfltTitle.annotation);\n coerce('textangle');\n Lib.coerceFont(coerce, 'font', fullLayout.font);\n\n coerce('width');\n coerce('align');\n\n var h = coerce('height');\n if(h) coerce('valign');\n\n if(showArrow) {\n var arrowside = coerce('arrowside');\n var arrowhead;\n var arrowsize;\n\n if(arrowside.indexOf('end') !== -1) {\n arrowhead = coerce('arrowhead');\n arrowsize = coerce('arrowsize');\n }\n\n if(arrowside.indexOf('start') !== -1) {\n coerce('startarrowhead', arrowhead);\n coerce('startarrowsize', arrowsize);\n }\n coerce('arrowcolor', borderOpacity ? annOut.bordercolor : Color.defaultLine);\n coerce('arrowwidth', ((borderOpacity && borderWidth) || 1) * 2);\n coerce('standoff');\n coerce('startstandoff');\n }\n\n var hoverText = coerce('hovertext');\n var globalHoverLabel = fullLayout.hoverlabel || {};\n\n if(hoverText) {\n var hoverBG = coerce('hoverlabel.bgcolor', globalHoverLabel.bgcolor ||\n (Color.opacity(bgColor) ? Color.rgb(bgColor) : Color.defaultLine)\n );\n\n var hoverBorder = coerce('hoverlabel.bordercolor', globalHoverLabel.bordercolor ||\n Color.contrast(hoverBG)\n );\n\n Lib.coerceFont(coerce, 'hoverlabel.font', {\n family: globalHoverLabel.font.family,\n size: globalHoverLabel.font.size,\n color: globalHoverLabel.font.color || hoverBorder\n });\n }\n\n coerce('captureevents', !!hoverText);\n};\n\n},{\"../../lib\":515,\"../color\":367}],354:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar toLogRange = _dereq_('../../lib/to_log_range');\n\n/*\n * convertCoords: when converting an axis between log and linear\n * you need to alter any annotations on that axis to keep them\n * pointing at the same data point.\n * In v3.0 this will become obsolete\n *\n * gd: the plot div\n * ax: the axis being changed\n * newType: the type it's getting\n * doExtra: function(attr, val) from inside relayout that sets the attribute.\n * Use this to make the changes as it's aware if any other changes in the\n * same relayout call should override this conversion.\n */\nmodule.exports = function convertCoords(gd, ax, newType, doExtra) {\n ax = ax || {};\n\n var toLog = (newType === 'log') && (ax.type === 'linear');\n var fromLog = (newType === 'linear') && (ax.type === 'log');\n\n if(!(toLog || fromLog)) return;\n\n var annotations = gd._fullLayout.annotations;\n var axLetter = ax._id.charAt(0);\n var ann;\n var attrPrefix;\n\n function convert(attr) {\n var currentVal = ann[attr];\n var newVal = null;\n\n if(toLog) newVal = toLogRange(currentVal, ax.range);\n else newVal = Math.pow(10, currentVal);\n\n // if conversion failed, delete the value so it gets a default value\n if(!isNumeric(newVal)) newVal = null;\n\n doExtra(attrPrefix + attr, newVal);\n }\n\n for(var i = 0; i < annotations.length; i++) {\n ann = annotations[i];\n attrPrefix = 'annotations[' + i + '].';\n\n if(ann[axLetter + 'ref'] === ax._id) convert(axLetter);\n if(ann['a' + axLetter + 'ref'] === ax._id) convert('a' + axLetter);\n }\n};\n\n},{\"../../lib/to_log_range\":543,\"fast-isnumeric\":190}],355:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar handleAnnotationCommonDefaults = _dereq_('./common_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: 'annotations',\n handleItemDefaults: handleAnnotationDefaults\n });\n};\n\nfunction handleAnnotationDefaults(annIn, annOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(annIn, annOut, attributes, attr, dflt);\n }\n\n var visible = coerce('visible');\n var clickToShow = coerce('clicktoshow');\n\n if(!(visible || clickToShow)) return;\n\n handleAnnotationCommonDefaults(annIn, annOut, fullLayout, coerce);\n\n var showArrow = annOut.showarrow;\n\n // positioning\n var axLetters = ['x', 'y'];\n var arrowPosDflt = [-10, -30];\n var gdMock = {_fullLayout: fullLayout};\n\n for(var i = 0; i < 2; i++) {\n var axLetter = axLetters[i];\n\n // xref, yref\n var axRef = Axes.coerceRef(annIn, annOut, gdMock, axLetter, '', 'paper');\n\n if(axRef !== 'paper') {\n var ax = Axes.getFromId(gdMock, axRef);\n ax._annIndices.push(annOut._index);\n }\n\n // x, y\n Axes.coercePosition(annOut, gdMock, coerce, axRef, axLetter, 0.5);\n\n if(showArrow) {\n var arrowPosAttr = 'a' + axLetter;\n // axref, ayref\n var aaxRef = Axes.coerceRef(annIn, annOut, gdMock, arrowPosAttr, 'pixel',\n ['pixel', 'paper']);\n\n // for now the arrow can only be on the same axis or specified as pixels\n // TODO: sometime it might be interesting to allow it to be on *any* axis\n // but that would require updates to drawing & autorange code and maybe more\n if(aaxRef !== 'pixel' && aaxRef !== axRef) {\n aaxRef = annOut[arrowPosAttr] = 'pixel';\n }\n\n // ax, ay\n var aDflt = (aaxRef === 'pixel') ? arrowPosDflt[i] : 0.4;\n Axes.coercePosition(annOut, gdMock, coerce, aaxRef, arrowPosAttr, aDflt);\n }\n\n // xanchor, yanchor\n coerce(axLetter + 'anchor');\n\n // xshift, yshift\n coerce(axLetter + 'shift');\n }\n\n // if you have one coordinate you should have both\n Lib.noneOrAll(annIn, annOut, ['x', 'y']);\n\n // if you have one part of arrow length you should have both\n if(showArrow) {\n Lib.noneOrAll(annIn, annOut, ['ax', 'ay']);\n }\n\n if(clickToShow) {\n var xClick = coerce('xclick');\n var yClick = coerce('yclick');\n\n // put the actual click data to bind to into private attributes\n // so we don't have to do this little bit of logic on every hover event\n annOut._xclick = (xClick === undefined) ?\n annOut.x :\n Axes.cleanPosition(xClick, gdMock, annOut.xref);\n annOut._yclick = (yClick === undefined) ?\n annOut.y :\n Axes.cleanPosition(yClick, gdMock, annOut.yref);\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/axes\":566,\"./attributes\":350,\"./common_defaults\":353}],356:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Fx = _dereq_('../fx');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar setCursor = _dereq_('../../lib/setcursor');\nvar dragElement = _dereq_('../dragelement');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar drawArrowHead = _dereq_('./draw_arrow_head');\n\n// Annotations are stored in gd.layout.annotations, an array of objects\n// index can point to one item in this array,\n// or non-numeric to simply add a new one\n// or -1 to modify all existing\n// opt can be the full options object, or one key (to be set to value)\n// or undefined to simply redraw\n// if opt is blank, val can be 'add' or a full options object to add a new\n// annotation at that point in the array, or 'remove' to delete this one\n\nmodule.exports = {\n draw: draw,\n drawOne: drawOne,\n drawRaw: drawRaw\n};\n\n/*\n * draw: draw all annotations without any new modifications\n */\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n fullLayout._infolayer.selectAll('.annotation').remove();\n\n for(var i = 0; i < fullLayout.annotations.length; i++) {\n if(fullLayout.annotations[i].visible) {\n drawOne(gd, i);\n }\n }\n\n return Plots.previousPromises(gd);\n}\n\n/*\n * drawOne: draw a single cartesian or paper-ref annotation, potentially with modifications\n *\n * index (int): the annotation to draw\n */\nfunction drawOne(gd, index) {\n var fullLayout = gd._fullLayout;\n var options = fullLayout.annotations[index] || {};\n var xa = Axes.getFromId(gd, options.xref);\n var ya = Axes.getFromId(gd, options.yref);\n\n if(xa) xa.setScale();\n if(ya) ya.setScale();\n\n drawRaw(gd, options, index, false, xa, ya);\n}\n\n// Convert pixels to the coordinates relevant for the axis referred to. For\n// example, for paper it would convert to a value normalized by the dimension of\n// the plot.\n// axDomainRef: if true and axa defined, draws relative to axis domain,\n// otherwise draws relative to data (if axa defined) or paper (if not).\nfunction shiftPosition(axa, dAx, axLetter, gs, options) {\n var optAx = options[axLetter];\n var axRef = options[axLetter + 'ref'];\n var vertical = axLetter.indexOf('y') !== -1;\n var axDomainRef = Axes.getRefType(axRef) === 'domain';\n var gsDim = vertical ? gs.h : gs.w;\n if(axa) {\n if(axDomainRef) {\n // here optAx normalized to length of axis (e.g., normally in range\n // 0 to 1). But dAx is in pixels. So we normalize dAx to length of\n // axis before doing the math.\n return optAx + (vertical ? -dAx : dAx) / axa._length;\n } else {\n return axa.p2r(axa.r2p(optAx) + dAx);\n }\n } else {\n return optAx + (vertical ? -dAx : dAx) / gsDim;\n }\n}\n\n/**\n * drawRaw: draw a single annotation, potentially with modifications\n *\n * @param {DOM element} gd\n * @param {object} options : this annotation's fullLayout options\n * @param {integer} index : index in 'annotations' container of the annotation to draw\n * @param {string} subplotId : id of the annotation's subplot\n * - use false for 2d (i.e. cartesian or paper-ref) annotations\n * @param {object | undefined} xa : full x-axis object to compute subplot pos-to-px\n * @param {object | undefined} ya : ... y-axis\n */\nfunction drawRaw(gd, options, index, subplotId, xa, ya) {\n var fullLayout = gd._fullLayout;\n var gs = gd._fullLayout._size;\n var edits = gd._context.edits;\n\n var className, containerStr;\n\n if(subplotId) {\n className = 'annotation-' + subplotId;\n containerStr = subplotId + '.annotations';\n } else {\n className = 'annotation';\n containerStr = 'annotations';\n }\n\n var editHelpers = arrayEditor(gd.layout, containerStr, options);\n var modifyBase = editHelpers.modifyBase;\n var modifyItem = editHelpers.modifyItem;\n var getUpdateObj = editHelpers.getUpdateObj;\n\n // remove the existing annotation if there is one\n fullLayout._infolayer\n .selectAll('.' + className + '[data-index=\"' + index + '\"]')\n .remove();\n\n var annClipID = 'clip' + fullLayout._uid + '_ann' + index;\n\n // this annotation is gone - quit now after deleting it\n // TODO: use d3 idioms instead of deleting and redrawing every time\n if(!options._input || options.visible === false) {\n d3.selectAll('#' + annClipID).remove();\n return;\n }\n\n // calculated pixel positions\n // x & y each will get text, head, and tail as appropriate\n var annPosPx = {x: {}, y: {}};\n var textangle = +options.textangle || 0;\n\n // create the components\n // made a single group to contain all, so opacity can work right\n // with border/arrow together this could handle a whole bunch of\n // cleanup at this point, but works for now\n var annGroup = fullLayout._infolayer.append('g')\n .classed(className, true)\n .attr('data-index', String(index))\n .style('opacity', options.opacity);\n\n // another group for text+background so that they can rotate together\n var annTextGroup = annGroup.append('g')\n .classed('annotation-text-g', true);\n\n var editTextPosition = edits[options.showarrow ? 'annotationTail' : 'annotationPosition'];\n var textEvents = options.captureevents || edits.annotationText || editTextPosition;\n\n function makeEventData(initialEvent) {\n var eventData = {\n index: index,\n annotation: options._input,\n fullAnnotation: options,\n event: initialEvent\n };\n if(subplotId) {\n eventData.subplotId = subplotId;\n }\n return eventData;\n }\n\n var annTextGroupInner = annTextGroup.append('g')\n .style('pointer-events', textEvents ? 'all' : null)\n .call(setCursor, 'pointer')\n .on('click', function() {\n gd._dragging = false;\n gd.emit('plotly_clickannotation', makeEventData(d3.event));\n });\n\n if(options.hovertext) {\n annTextGroupInner\n .on('mouseover', function() {\n var hoverOptions = options.hoverlabel;\n var hoverFont = hoverOptions.font;\n var bBox = this.getBoundingClientRect();\n var bBoxRef = gd.getBoundingClientRect();\n\n Fx.loneHover({\n x0: bBox.left - bBoxRef.left,\n x1: bBox.right - bBoxRef.left,\n y: (bBox.top + bBox.bottom) / 2 - bBoxRef.top,\n text: options.hovertext,\n color: hoverOptions.bgcolor,\n borderColor: hoverOptions.bordercolor,\n fontFamily: hoverFont.family,\n fontSize: hoverFont.size,\n fontColor: hoverFont.color\n }, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n })\n .on('mouseout', function() {\n Fx.loneUnhover(fullLayout._hoverlayer.node());\n });\n }\n\n var borderwidth = options.borderwidth;\n var borderpad = options.borderpad;\n var borderfull = borderwidth + borderpad;\n\n var annTextBG = annTextGroupInner.append('rect')\n .attr('class', 'bg')\n .style('stroke-width', borderwidth + 'px')\n .call(Color.stroke, options.bordercolor)\n .call(Color.fill, options.bgcolor);\n\n var isSizeConstrained = options.width || options.height;\n\n var annTextClip = fullLayout._topclips\n .selectAll('#' + annClipID)\n .data(isSizeConstrained ? [0] : []);\n\n annTextClip.enter().append('clipPath')\n .classed('annclip', true)\n .attr('id', annClipID)\n .append('rect');\n annTextClip.exit().remove();\n\n var font = options.font;\n\n var text = fullLayout._meta ?\n Lib.templateString(options.text, fullLayout._meta) :\n options.text;\n\n var annText = annTextGroupInner.append('text')\n .classed('annotation-text', true)\n .text(text);\n\n function textLayout(s) {\n s.call(Drawing.font, font)\n .attr({\n 'text-anchor': {\n left: 'start',\n right: 'end'\n }[options.align] || 'middle'\n });\n\n svgTextUtils.convertToTspans(s, gd, drawGraphicalElements);\n return s;\n }\n\n function drawGraphicalElements() {\n // if the text has *only* a link, make the whole box into a link\n var anchor3 = annText.selectAll('a');\n if(anchor3.size() === 1 && anchor3.text() === annText.text()) {\n var wholeLink = annTextGroupInner.insert('a', ':first-child').attr({\n 'xlink:xlink:href': anchor3.attr('xlink:href'),\n 'xlink:xlink:show': anchor3.attr('xlink:show')\n })\n .style({cursor: 'pointer'});\n\n wholeLink.node().appendChild(annTextBG.node());\n }\n\n var mathjaxGroup = annTextGroupInner.select('.annotation-text-math-group');\n var hasMathjax = !mathjaxGroup.empty();\n var anntextBB = Drawing.bBox(\n (hasMathjax ? mathjaxGroup : annText).node());\n var textWidth = anntextBB.width;\n var textHeight = anntextBB.height;\n var annWidth = options.width || textWidth;\n var annHeight = options.height || textHeight;\n var outerWidth = Math.round(annWidth + 2 * borderfull);\n var outerHeight = Math.round(annHeight + 2 * borderfull);\n\n function shiftFraction(v, anchor) {\n if(anchor === 'auto') {\n if(v < 1 / 3) anchor = 'left';\n else if(v > 2 / 3) anchor = 'right';\n else anchor = 'center';\n }\n return {\n center: 0,\n middle: 0,\n left: 0.5,\n bottom: -0.5,\n right: -0.5,\n top: 0.5\n }[anchor];\n }\n\n var annotationIsOffscreen = false;\n var letters = ['x', 'y'];\n\n for(var i = 0; i < letters.length; i++) {\n var axLetter = letters[i];\n var axRef = options[axLetter + 'ref'] || axLetter;\n var tailRef = options['a' + axLetter + 'ref'];\n var ax = {x: xa, y: ya}[axLetter];\n var dimAngle = (textangle + (axLetter === 'x' ? 0 : -90)) * Math.PI / 180;\n // note that these two can be either positive or negative\n var annSizeFromWidth = outerWidth * Math.cos(dimAngle);\n var annSizeFromHeight = outerHeight * Math.sin(dimAngle);\n // but this one is the positive total size\n var annSize = Math.abs(annSizeFromWidth) + Math.abs(annSizeFromHeight);\n var anchor = options[axLetter + 'anchor'];\n var overallShift = options[axLetter + 'shift'] * (axLetter === 'x' ? 1 : -1);\n var posPx = annPosPx[axLetter];\n var basePx;\n var textPadShift;\n var alignPosition;\n var autoAlignFraction;\n var textShift;\n var axRefType = Axes.getRefType(axRef);\n\n /*\n * calculate the *primary* pixel position\n * which is the arrowhead if there is one,\n * otherwise the text anchor point\n */\n if(ax && (axRefType !== 'domain')) {\n // check if annotation is off screen, to bypass DOM manipulations\n var posFraction = ax.r2fraction(options[axLetter]);\n if(posFraction < 0 || posFraction > 1) {\n if(tailRef === axRef) {\n posFraction = ax.r2fraction(options['a' + axLetter]);\n if(posFraction < 0 || posFraction > 1) {\n annotationIsOffscreen = true;\n }\n } else {\n annotationIsOffscreen = true;\n }\n }\n basePx = ax._offset + ax.r2p(options[axLetter]);\n autoAlignFraction = 0.5;\n } else {\n var axRefTypeEqDomain = axRefType === 'domain';\n if(axLetter === 'x') {\n alignPosition = options[axLetter];\n basePx = axRefTypeEqDomain ?\n ax._offset + ax._length * alignPosition :\n basePx = gs.l + gs.w * alignPosition;\n } else {\n alignPosition = 1 - options[axLetter];\n basePx = axRefTypeEqDomain ?\n ax._offset + ax._length * alignPosition :\n basePx = gs.t + gs.h * alignPosition;\n }\n autoAlignFraction = options.showarrow ? 0.5 : alignPosition;\n }\n\n // now translate this into pixel positions of head, tail, and text\n // as well as paddings for autorange\n if(options.showarrow) {\n posPx.head = basePx;\n\n var arrowLength = options['a' + axLetter];\n\n // with an arrow, the text rotates around the anchor point\n textShift = annSizeFromWidth * shiftFraction(0.5, options.xanchor) -\n annSizeFromHeight * shiftFraction(0.5, options.yanchor);\n\n if(tailRef === axRef) {\n // In the case tailRefType is 'domain' or 'paper', the arrow's\n // position is set absolutely, which is consistent with how\n // it behaves when its position is set in data ('range')\n // coordinates.\n var tailRefType = Axes.getRefType(tailRef);\n if(tailRefType === 'domain') {\n if(axLetter === 'y') {\n arrowLength = 1 - arrowLength;\n }\n posPx.tail = ax._offset + ax._length * arrowLength;\n } else if(tailRefType === 'paper') {\n if(axLetter === 'y') {\n arrowLength = 1 - arrowLength;\n posPx.tail = gs.t + gs.h * arrowLength;\n } else {\n posPx.tail = gs.l + gs.w * arrowLength;\n }\n } else {\n // assumed tailRef is range or paper referenced\n posPx.tail = ax._offset + ax.r2p(arrowLength);\n }\n // tail is range- or domain-referenced: autorange pads the\n // text in px from the tail\n textPadShift = textShift;\n } else {\n posPx.tail = basePx + arrowLength;\n // tail is specified in px from head, so autorange also pads vs head\n textPadShift = textShift + arrowLength;\n }\n\n posPx.text = posPx.tail + textShift;\n\n // constrain pixel/paper referenced so the draggers are at least\n // partially visible\n var maxPx = fullLayout[(axLetter === 'x') ? 'width' : 'height'];\n if(axRef === 'paper') {\n posPx.head = Lib.constrain(posPx.head, 1, maxPx - 1);\n }\n if(tailRef === 'pixel') {\n var shiftPlus = -Math.max(posPx.tail - 3, posPx.text);\n var shiftMinus = Math.min(posPx.tail + 3, posPx.text) - maxPx;\n if(shiftPlus > 0) {\n posPx.tail += shiftPlus;\n posPx.text += shiftPlus;\n } else if(shiftMinus > 0) {\n posPx.tail -= shiftMinus;\n posPx.text -= shiftMinus;\n }\n }\n\n posPx.tail += overallShift;\n posPx.head += overallShift;\n } else {\n // with no arrow, the text rotates and *then* we put the anchor\n // relative to the new bounding box\n textShift = annSize * shiftFraction(autoAlignFraction, anchor);\n textPadShift = textShift;\n posPx.text = basePx + textShift;\n }\n\n posPx.text += overallShift;\n textShift += overallShift;\n textPadShift += overallShift;\n\n // padplus/minus are used by autorange\n options['_' + axLetter + 'padplus'] = (annSize / 2) + textPadShift;\n options['_' + axLetter + 'padminus'] = (annSize / 2) - textPadShift;\n\n // size/shift are used during dragging\n options['_' + axLetter + 'size'] = annSize;\n options['_' + axLetter + 'shift'] = textShift;\n }\n\n if(annotationIsOffscreen) {\n annTextGroupInner.remove();\n return;\n }\n\n var xShift = 0;\n var yShift = 0;\n\n if(options.align !== 'left') {\n xShift = (annWidth - textWidth) * (options.align === 'center' ? 0.5 : 1);\n }\n if(options.valign !== 'top') {\n yShift = (annHeight - textHeight) * (options.valign === 'middle' ? 0.5 : 1);\n }\n\n if(hasMathjax) {\n mathjaxGroup.select('svg').attr({\n x: borderfull + xShift - 1,\n y: borderfull + yShift\n })\n .call(Drawing.setClipUrl, isSizeConstrained ? annClipID : null, gd);\n } else {\n var texty = borderfull + yShift - anntextBB.top;\n var textx = borderfull + xShift - anntextBB.left;\n\n annText.call(svgTextUtils.positionText, textx, texty)\n .call(Drawing.setClipUrl, isSizeConstrained ? annClipID : null, gd);\n }\n\n annTextClip.select('rect').call(Drawing.setRect, borderfull, borderfull,\n annWidth, annHeight);\n\n annTextBG.call(Drawing.setRect, borderwidth / 2, borderwidth / 2,\n outerWidth - borderwidth, outerHeight - borderwidth);\n\n annTextGroupInner.call(Drawing.setTranslate,\n Math.round(annPosPx.x.text - outerWidth / 2),\n Math.round(annPosPx.y.text - outerHeight / 2));\n\n /*\n * rotate text and background\n * we already calculated the text center position *as rotated*\n * because we needed that for autoranging anyway, so now whether\n * we have an arrow or not, we rotate about the text center.\n */\n annTextGroup.attr({transform: 'rotate(' + textangle + ',' +\n annPosPx.x.text + ',' + annPosPx.y.text + ')'});\n\n /*\n * add the arrow\n * uses options[arrowwidth,arrowcolor,arrowhead] for styling\n * dx and dy are normally zero, but when you are dragging the textbox\n * while the head stays put, dx and dy are the pixel offsets\n */\n var drawArrow = function(dx, dy) {\n annGroup\n .selectAll('.annotation-arrow-g')\n .remove();\n\n var headX = annPosPx.x.head;\n var headY = annPosPx.y.head;\n var tailX = annPosPx.x.tail + dx;\n var tailY = annPosPx.y.tail + dy;\n var textX = annPosPx.x.text + dx;\n var textY = annPosPx.y.text + dy;\n\n // find the edge of the text box, where we'll start the arrow:\n // create transform matrix to rotate the text box corners\n var transform = Lib.rotationXYMatrix(textangle, textX, textY);\n var applyTransform = Lib.apply2DTransform(transform);\n var applyTransform2 = Lib.apply2DTransform2(transform);\n\n // calculate and transform bounding box\n var width = +annTextBG.attr('width');\n var height = +annTextBG.attr('height');\n var xLeft = textX - 0.5 * width;\n var xRight = xLeft + width;\n var yTop = textY - 0.5 * height;\n var yBottom = yTop + height;\n var edges = [\n [xLeft, yTop, xLeft, yBottom],\n [xLeft, yBottom, xRight, yBottom],\n [xRight, yBottom, xRight, yTop],\n [xRight, yTop, xLeft, yTop]\n ].map(applyTransform2);\n\n // Remove the line if it ends inside the box. Use ray\n // casting for rotated boxes: see which edges intersect a\n // line from the arrowhead to far away and reduce with xor\n // to get the parity of the number of intersections.\n if(edges.reduce(function(a, x) {\n return a ^\n !!Lib.segmentsIntersect(headX, headY, headX + 1e6, headY + 1e6,\n x[0], x[1], x[2], x[3]);\n }, false)) {\n // no line or arrow - so quit drawArrow now\n return;\n }\n\n edges.forEach(function(x) {\n var p = Lib.segmentsIntersect(tailX, tailY, headX, headY,\n x[0], x[1], x[2], x[3]);\n if(p) {\n tailX = p.x;\n tailY = p.y;\n }\n });\n\n var strokewidth = options.arrowwidth;\n var arrowColor = options.arrowcolor;\n var arrowSide = options.arrowside;\n\n var arrowGroup = annGroup.append('g')\n .style({opacity: Color.opacity(arrowColor)})\n .classed('annotation-arrow-g', true);\n\n var arrow = arrowGroup.append('path')\n .attr('d', 'M' + tailX + ',' + tailY + 'L' + headX + ',' + headY)\n .style('stroke-width', strokewidth + 'px')\n .call(Color.stroke, Color.rgb(arrowColor));\n\n drawArrowHead(arrow, arrowSide, options);\n\n // the arrow dragger is a small square right at the head, then a line to the tail,\n // all expanded by a stroke width of 6px plus the arrow line width\n if(edits.annotationPosition && arrow.node().parentNode && !subplotId) {\n var arrowDragHeadX = headX;\n var arrowDragHeadY = headY;\n if(options.standoff) {\n var arrowLength = Math.sqrt(Math.pow(headX - tailX, 2) + Math.pow(headY - tailY, 2));\n arrowDragHeadX += options.standoff * (tailX - headX) / arrowLength;\n arrowDragHeadY += options.standoff * (tailY - headY) / arrowLength;\n }\n var arrowDrag = arrowGroup.append('path')\n .classed('annotation-arrow', true)\n .classed('anndrag', true)\n .classed('cursor-move', true)\n .attr({\n d: 'M3,3H-3V-3H3ZM0,0L' + (tailX - arrowDragHeadX) + ',' + (tailY - arrowDragHeadY),\n transform: strTranslate(arrowDragHeadX, arrowDragHeadY)\n })\n .style('stroke-width', (strokewidth + 6) + 'px')\n .call(Color.stroke, 'rgba(0,0,0,0)')\n .call(Color.fill, 'rgba(0,0,0,0)');\n\n var annx0, anny0;\n\n // dragger for the arrow & head: translates the whole thing\n // (head/tail/text) all together\n dragElement.init({\n element: arrowDrag.node(),\n gd: gd,\n prepFn: function() {\n var pos = Drawing.getTranslate(annTextGroupInner);\n\n annx0 = pos.x;\n anny0 = pos.y;\n if(xa && xa.autorange) {\n modifyBase(xa._name + '.autorange', true);\n }\n if(ya && ya.autorange) {\n modifyBase(ya._name + '.autorange', true);\n }\n },\n moveFn: function(dx, dy) {\n var annxy0 = applyTransform(annx0, anny0);\n var xcenter = annxy0[0] + dx;\n var ycenter = annxy0[1] + dy;\n annTextGroupInner.call(Drawing.setTranslate, xcenter, ycenter);\n\n modifyItem('x',\n shiftPosition(xa, dx, 'x', gs, options));\n modifyItem('y',\n shiftPosition(ya, dy, 'y', gs, options));\n\n // for these 2 calls to shiftPosition, it is assumed xa, ya are\n // defined, so gsDim will not be used, but we put it in\n // anyways for consistency\n if(options.axref === options.xref) {\n modifyItem('ax', shiftPosition(xa, dx, 'ax', gs, options));\n }\n\n if(options.ayref === options.yref) {\n modifyItem('ay', shiftPosition(ya, dy, 'ay', gs, options));\n }\n\n arrowGroup.attr('transform', strTranslate(dx, dy));\n annTextGroup.attr({\n transform: 'rotate(' + textangle + ',' +\n xcenter + ',' + ycenter + ')'\n });\n },\n doneFn: function() {\n Registry.call('_guiRelayout', gd, getUpdateObj());\n var notesBox = document.querySelector('.js-notes-box-panel');\n if(notesBox) notesBox.redraw(notesBox.selectedObj);\n }\n });\n }\n };\n\n if(options.showarrow) drawArrow(0, 0);\n\n // user dragging the annotation (text, not arrow)\n if(editTextPosition) {\n var baseTextTransform;\n\n // dragger for the textbox: if there's an arrow, just drag the\n // textbox and tail, leave the head untouched\n dragElement.init({\n element: annTextGroupInner.node(),\n gd: gd,\n prepFn: function() {\n baseTextTransform = annTextGroup.attr('transform');\n },\n moveFn: function(dx, dy) {\n var csr = 'pointer';\n if(options.showarrow) {\n // for these 2 calls to shiftPosition, it is assumed xa, ya are\n // defined, so gsDim will not be used, but we put it in\n // anyways for consistency\n if(options.axref === options.xref) {\n modifyItem('ax', shiftPosition(xa, dx, 'ax', gs, options));\n } else {\n modifyItem('ax', options.ax + dx);\n }\n\n if(options.ayref === options.yref) {\n modifyItem('ay', shiftPosition(ya, dy, 'ay', gs.w, options));\n } else {\n modifyItem('ay', options.ay + dy);\n }\n\n drawArrow(dx, dy);\n } else if(!subplotId) {\n var xUpdate, yUpdate;\n if(xa) {\n // shiftPosition will not execute code where xa was\n // undefined, so we use to calculate xUpdate too\n xUpdate = shiftPosition(xa, dx, 'x', gs, options);\n } else {\n var widthFraction = options._xsize / gs.w;\n var xLeft = options.x + (options._xshift - options.xshift) / gs.w - widthFraction / 2;\n\n xUpdate = dragElement.align(xLeft + dx / gs.w,\n widthFraction, 0, 1, options.xanchor);\n }\n\n if(ya) {\n // shiftPosition will not execute code where ya was\n // undefined, so we use to calculate yUpdate too\n yUpdate = shiftPosition(ya, dy, 'y', gs, options);\n } else {\n var heightFraction = options._ysize / gs.h;\n var yBottom = options.y - (options._yshift + options.yshift) / gs.h - heightFraction / 2;\n\n yUpdate = dragElement.align(yBottom - dy / gs.h,\n heightFraction, 0, 1, options.yanchor);\n }\n modifyItem('x', xUpdate);\n modifyItem('y', yUpdate);\n if(!xa || !ya) {\n csr = dragElement.getCursor(\n xa ? 0.5 : xUpdate,\n ya ? 0.5 : yUpdate,\n options.xanchor, options.yanchor\n );\n }\n } else return;\n\n annTextGroup.attr({\n transform: strTranslate(dx, dy) + baseTextTransform\n });\n\n setCursor(annTextGroupInner, csr);\n },\n clickFn: function(_, initialEvent) {\n if(options.captureevents) {\n gd.emit('plotly_clickannotation', makeEventData(initialEvent));\n }\n },\n doneFn: function() {\n setCursor(annTextGroupInner);\n Registry.call('_guiRelayout', gd, getUpdateObj());\n var notesBox = document.querySelector('.js-notes-box-panel');\n if(notesBox) notesBox.redraw(notesBox.selectedObj);\n }\n });\n }\n }\n\n if(edits.annotationText) {\n annText.call(svgTextUtils.makeEditable, {delegate: annTextGroupInner, gd: gd})\n .call(textLayout)\n .on('edit', function(_text) {\n options.text = _text;\n\n this.call(textLayout);\n\n modifyItem('text', _text);\n\n if(xa && xa.autorange) {\n modifyBase(xa._name + '.autorange', true);\n }\n if(ya && ya.autorange) {\n modifyBase(ya._name + '.autorange', true);\n }\n\n Registry.call('_guiRelayout', gd, getUpdateObj());\n });\n } else annText.call(textLayout);\n}\n\n},{\"../../lib\":515,\"../../lib/setcursor\":536,\"../../lib/svg_text_utils\":541,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/axes\":566,\"../../plots/plots\":628,\"../../registry\":647,\"../color\":367,\"../dragelement\":386,\"../drawing\":389,\"../fx\":407,\"./draw_arrow_head\":357,\"@plotly/d3\":58}],357:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Color = _dereq_('../color');\n\nvar ARROWPATHS = _dereq_('./arrow_paths');\n\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\n\n/**\n * Add arrowhead(s) to a path or line element\n *\n * @param {d3.selection} el3: a d3-selected line or path element\n *\n * @param {string} ends: 'none', 'start', 'end', or 'start+end' for which ends get arrowheads\n *\n * @param {object} options: style information. Must have all the following:\n * @param {number} options.arrowhead: end head style - see ./arrow_paths\n * @param {number} options.startarrowhead: start head style - see ./arrow_paths\n * @param {number} options.arrowsize: relative size of the end head vs line width\n * @param {number} options.startarrowsize: relative size of the start head vs line width\n * @param {number} options.standoff: distance in px to move the end arrow point from its target\n * @param {number} options.startstandoff: distance in px to move the start arrow point from its target\n * @param {number} options.arrowwidth: width of the arrow line\n * @param {string} options.arrowcolor: color of the arrow line, for the head to match\n * Note that the opacity of this color is ignored, as it's assumed the container\n * of both the line and head has opacity applied to it so there isn't greater opacity\n * where they overlap.\n */\nmodule.exports = function drawArrowHead(el3, ends, options) {\n var el = el3.node();\n var headStyle = ARROWPATHS[options.arrowhead || 0];\n var startHeadStyle = ARROWPATHS[options.startarrowhead || 0];\n var scale = (options.arrowwidth || 1) * (options.arrowsize || 1);\n var startScale = (options.arrowwidth || 1) * (options.startarrowsize || 1);\n var doStart = ends.indexOf('start') >= 0;\n var doEnd = ends.indexOf('end') >= 0;\n var backOff = headStyle.backoff * scale + options.standoff;\n var startBackOff = startHeadStyle.backoff * startScale + options.startstandoff;\n\n var start, end, startRot, endRot;\n\n if(el.nodeName === 'line') {\n start = {x: +el3.attr('x1'), y: +el3.attr('y1')};\n end = {x: +el3.attr('x2'), y: +el3.attr('y2')};\n\n var dx = start.x - end.x;\n var dy = start.y - end.y;\n\n startRot = Math.atan2(dy, dx);\n endRot = startRot + Math.PI;\n if(backOff && startBackOff) {\n if(backOff + startBackOff > Math.sqrt(dx * dx + dy * dy)) {\n hideLine();\n return;\n }\n }\n\n if(backOff) {\n if(backOff * backOff > dx * dx + dy * dy) {\n hideLine();\n return;\n }\n var backOffX = backOff * Math.cos(startRot);\n var backOffY = backOff * Math.sin(startRot);\n\n end.x += backOffX;\n end.y += backOffY;\n el3.attr({x2: end.x, y2: end.y});\n }\n\n if(startBackOff) {\n if(startBackOff * startBackOff > dx * dx + dy * dy) {\n hideLine();\n return;\n }\n var startBackOffX = startBackOff * Math.cos(startRot);\n var startbackOffY = startBackOff * Math.sin(startRot);\n\n start.x -= startBackOffX;\n start.y -= startbackOffY;\n el3.attr({x1: start.x, y1: start.y});\n }\n } else if(el.nodeName === 'path') {\n var pathlen = el.getTotalLength();\n // using dash to hide the backOff region of the path.\n // if we ever allow dash for the arrow we'll have to\n // do better than this hack... maybe just manually\n // combine the two\n var dashArray = '';\n\n if(pathlen < backOff + startBackOff) {\n hideLine();\n return;\n }\n\n\n var start0 = el.getPointAtLength(0);\n var dstart = el.getPointAtLength(0.1);\n\n startRot = Math.atan2(start0.y - dstart.y, start0.x - dstart.x);\n start = el.getPointAtLength(Math.min(startBackOff, pathlen));\n\n dashArray = '0px,' + startBackOff + 'px,';\n\n var end0 = el.getPointAtLength(pathlen);\n var dend = el.getPointAtLength(pathlen - 0.1);\n\n endRot = Math.atan2(end0.y - dend.y, end0.x - dend.x);\n end = el.getPointAtLength(Math.max(0, pathlen - backOff));\n\n var shortening = dashArray ? startBackOff + backOff : backOff;\n dashArray += (pathlen - shortening) + 'px,' + pathlen + 'px';\n\n el3.style('stroke-dasharray', dashArray);\n }\n\n function hideLine() { el3.style('stroke-dasharray', '0px,100px'); }\n\n function drawhead(arrowHeadStyle, p, rot, arrowScale) {\n if(!arrowHeadStyle.path) return;\n if(arrowHeadStyle.noRotate) rot = 0;\n\n d3.select(el.parentNode).append('path')\n .attr({\n 'class': el3.attr('class'),\n d: arrowHeadStyle.path,\n transform:\n strTranslate(p.x, p.y) +\n strRotate(rot * 180 / Math.PI) +\n strScale(arrowScale)\n })\n .style({\n fill: Color.rgb(options.arrowcolor),\n 'stroke-width': 0\n });\n }\n\n if(doStart) drawhead(startHeadStyle, start, startRot, startScale);\n if(doEnd) drawhead(headStyle, end, endRot, scale);\n};\n\n},{\"../../lib\":515,\"../color\":367,\"./arrow_paths\":349,\"@plotly/d3\":58}],358:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawModule = _dereq_('./draw');\nvar clickModule = _dereq_('./click');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'annotations',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('annotations'),\n\n calcAutorange: _dereq_('./calc_autorange'),\n draw: drawModule.draw,\n drawOne: drawModule.drawOne,\n drawRaw: drawModule.drawRaw,\n\n hasClickToShow: clickModule.hasClickToShow,\n onClick: clickModule.onClick,\n\n convertCoords: _dereq_('./convert_coords')\n};\n\n},{\"../../plots/cartesian/include_components\":577,\"./attributes\":350,\"./calc_autorange\":351,\"./click\":352,\"./convert_coords\":354,\"./defaults\":355,\"./draw\":356}],359:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../annotations/attributes');\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nmodule.exports = overrideAll(templatedArray('annotation', {\n visible: annAttrs.visible,\n x: {\n valType: 'any',\n },\n y: {\n valType: 'any',\n },\n z: {\n valType: 'any',\n },\n ax: {\n valType: 'number',\n },\n ay: {\n valType: 'number',\n },\n\n xanchor: annAttrs.xanchor,\n xshift: annAttrs.xshift,\n yanchor: annAttrs.yanchor,\n yshift: annAttrs.yshift,\n\n text: annAttrs.text,\n textangle: annAttrs.textangle,\n font: annAttrs.font,\n width: annAttrs.width,\n height: annAttrs.height,\n opacity: annAttrs.opacity,\n align: annAttrs.align,\n valign: annAttrs.valign,\n bgcolor: annAttrs.bgcolor,\n bordercolor: annAttrs.bordercolor,\n borderpad: annAttrs.borderpad,\n borderwidth: annAttrs.borderwidth,\n showarrow: annAttrs.showarrow,\n arrowcolor: annAttrs.arrowcolor,\n arrowhead: annAttrs.arrowhead,\n startarrowhead: annAttrs.startarrowhead,\n arrowside: annAttrs.arrowside,\n arrowsize: annAttrs.arrowsize,\n startarrowsize: annAttrs.startarrowsize,\n arrowwidth: annAttrs.arrowwidth,\n standoff: annAttrs.standoff,\n startstandoff: annAttrs.startstandoff,\n hovertext: annAttrs.hovertext,\n hoverlabel: annAttrs.hoverlabel,\n captureevents: annAttrs.captureevents,\n\n // maybes later?\n // clicktoshow: annAttrs.clicktoshow,\n // xclick: annAttrs.xclick,\n // yclick: annAttrs.yclick,\n\n // not needed!\n // axref: 'pixel'\n // ayref: 'pixel'\n // xref: 'x'\n // yref: 'y\n // zref: 'z'\n}), 'calc', 'from-root');\n\n},{\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../annotations/attributes\":350}],360:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function convert(scene) {\n var fullSceneLayout = scene.fullSceneLayout;\n var anns = fullSceneLayout.annotations;\n\n for(var i = 0; i < anns.length; i++) {\n mockAnnAxes(anns[i], scene);\n }\n\n scene.fullLayout._infolayer\n .selectAll('.annotation-' + scene.id)\n .remove();\n};\n\nfunction mockAnnAxes(ann, scene) {\n var fullSceneLayout = scene.fullSceneLayout;\n var domain = fullSceneLayout.domain;\n var size = scene.fullLayout._size;\n\n var base = {\n // this gets fill in on render\n pdata: null,\n\n // to get setConvert to not execute cleanly\n type: 'linear',\n\n // don't try to update them on `editable: true`\n autorange: false,\n\n // set infinite range so that annotation draw routine\n // does not try to remove 'outside-range' annotations,\n // this case is handled in the render loop\n range: [-Infinity, Infinity]\n };\n\n ann._xa = {};\n Lib.extendFlat(ann._xa, base);\n Axes.setConvert(ann._xa);\n ann._xa._offset = size.l + domain.x[0] * size.w;\n ann._xa.l2p = function() {\n return 0.5 * (1 + ann._pdata[0] / ann._pdata[3]) * size.w * (domain.x[1] - domain.x[0]);\n };\n\n ann._ya = {};\n Lib.extendFlat(ann._ya, base);\n Axes.setConvert(ann._ya);\n ann._ya._offset = size.t + (1 - domain.y[1]) * size.h;\n ann._ya.l2p = function() {\n return 0.5 * (1 - ann._pdata[1] / ann._pdata[3]) * size.h * (domain.y[1] - domain.y[0]);\n };\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566}],361:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\nvar handleAnnotationCommonDefaults = _dereq_('../annotations/common_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function handleDefaults(sceneLayoutIn, sceneLayoutOut, opts) {\n handleArrayContainerDefaults(sceneLayoutIn, sceneLayoutOut, {\n name: 'annotations',\n handleItemDefaults: handleAnnotationDefaults,\n fullLayout: opts.fullLayout\n });\n};\n\nfunction handleAnnotationDefaults(annIn, annOut, sceneLayout, opts) {\n function coerce(attr, dflt) {\n return Lib.coerce(annIn, annOut, attributes, attr, dflt);\n }\n\n function coercePosition(axLetter) {\n var axName = axLetter + 'axis';\n\n // mock in such way that getFromId grabs correct 3D axis\n var gdMock = { _fullLayout: {} };\n gdMock._fullLayout[axName] = sceneLayout[axName];\n\n return Axes.coercePosition(annOut, gdMock, coerce, axLetter, axLetter, 0.5);\n }\n\n\n var visible = coerce('visible');\n if(!visible) return;\n\n handleAnnotationCommonDefaults(annIn, annOut, opts.fullLayout, coerce);\n\n coercePosition('x');\n coercePosition('y');\n coercePosition('z');\n\n // if you have one coordinate you should all three\n Lib.noneOrAll(annIn, annOut, ['x', 'y', 'z']);\n\n // hard-set here for completeness\n annOut.xref = 'x';\n annOut.yref = 'y';\n annOut.zref = 'z';\n\n coerce('xanchor');\n coerce('yanchor');\n coerce('xshift');\n coerce('yshift');\n\n if(annOut.showarrow) {\n annOut.axref = 'pixel';\n annOut.ayref = 'pixel';\n\n // TODO maybe default values should be bigger than the 2D case?\n coerce('ax', -10);\n coerce('ay', -30);\n\n // if you have one part of arrow length you should have both\n Lib.noneOrAll(annIn, annOut, ['ax', 'ay']);\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/axes\":566,\"../annotations/common_defaults\":353,\"./attributes\":359}],362:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawRaw = _dereq_('../annotations/draw').drawRaw;\nvar project = _dereq_('../../plots/gl3d/project');\nvar axLetters = ['x', 'y', 'z'];\n\nmodule.exports = function draw(scene) {\n var fullSceneLayout = scene.fullSceneLayout;\n var dataScale = scene.dataScale;\n var anns = fullSceneLayout.annotations;\n\n for(var i = 0; i < anns.length; i++) {\n var ann = anns[i];\n var annotationIsOffscreen = false;\n\n for(var j = 0; j < 3; j++) {\n var axLetter = axLetters[j];\n var pos = ann[axLetter];\n var ax = fullSceneLayout[axLetter + 'axis'];\n var posFraction = ax.r2fraction(pos);\n\n if(posFraction < 0 || posFraction > 1) {\n annotationIsOffscreen = true;\n break;\n }\n }\n\n if(annotationIsOffscreen) {\n scene.fullLayout._infolayer\n .select('.annotation-' + scene.id + '[data-index=\"' + i + '\"]')\n .remove();\n } else {\n ann._pdata = project(scene.glplot.cameraParams, [\n fullSceneLayout.xaxis.r2l(ann.x) * dataScale[0],\n fullSceneLayout.yaxis.r2l(ann.y) * dataScale[1],\n fullSceneLayout.zaxis.r2l(ann.z) * dataScale[2]\n ]);\n\n drawRaw(scene.graphDiv, ann, i, scene.id, ann._xa, ann._ya);\n }\n }\n};\n\n},{\"../../plots/gl3d/project\":616,\"../annotations/draw\":356}],363:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'annotations3d',\n\n schema: {\n subplots: {\n scene: {annotations: _dereq_('./attributes')}\n }\n },\n\n layoutAttributes: _dereq_('./attributes'),\n handleDefaults: _dereq_('./defaults'),\n includeBasePlot: includeGL3D,\n\n convert: _dereq_('./convert'),\n draw: _dereq_('./draw')\n};\n\nfunction includeGL3D(layoutIn, layoutOut) {\n var GL3D = Registry.subplotsRegistry.gl3d;\n if(!GL3D) return;\n\n var attrRegex = GL3D.attrRegex;\n\n var keys = Object.keys(layoutIn);\n for(var i = 0; i < keys.length; i++) {\n var k = keys[i];\n if(attrRegex.test(k) && (layoutIn[k].annotations || []).length) {\n Lib.pushUnique(layoutOut._basePlotModules, GL3D);\n Lib.pushUnique(layoutOut._subplots.gl3d, k);\n }\n }\n}\n\n},{\"../../lib\":515,\"../../registry\":647,\"./attributes\":359,\"./convert\":360,\"./defaults\":361,\"./draw\":362}],364:[function(_dereq_,module,exports){\n'use strict';\n\n// a trimmed down version of:\n// https://github.com/alexcjohnson/world-calendars/blob/master/dist/index.js\n\nmodule.exports = _dereq_('world-calendars/dist/main');\n\n_dereq_('world-calendars/dist/plus');\n\n_dereq_('world-calendars/dist/calendars/chinese');\n_dereq_('world-calendars/dist/calendars/coptic');\n_dereq_('world-calendars/dist/calendars/discworld');\n_dereq_('world-calendars/dist/calendars/ethiopian');\n_dereq_('world-calendars/dist/calendars/hebrew');\n_dereq_('world-calendars/dist/calendars/islamic');\n_dereq_('world-calendars/dist/calendars/julian');\n_dereq_('world-calendars/dist/calendars/mayan');\n_dereq_('world-calendars/dist/calendars/nanakshahi');\n_dereq_('world-calendars/dist/calendars/nepali');\n_dereq_('world-calendars/dist/calendars/persian');\n_dereq_('world-calendars/dist/calendars/taiwan');\n_dereq_('world-calendars/dist/calendars/thai');\n_dereq_('world-calendars/dist/calendars/ummalqura');\n\n},{\"world-calendars/dist/calendars/chinese\":333,\"world-calendars/dist/calendars/coptic\":334,\"world-calendars/dist/calendars/discworld\":335,\"world-calendars/dist/calendars/ethiopian\":336,\"world-calendars/dist/calendars/hebrew\":337,\"world-calendars/dist/calendars/islamic\":338,\"world-calendars/dist/calendars/julian\":339,\"world-calendars/dist/calendars/mayan\":340,\"world-calendars/dist/calendars/nanakshahi\":341,\"world-calendars/dist/calendars/nepali\":342,\"world-calendars/dist/calendars/persian\":343,\"world-calendars/dist/calendars/taiwan\":344,\"world-calendars/dist/calendars/thai\":345,\"world-calendars/dist/calendars/ummalqura\":346,\"world-calendars/dist/main\":347,\"world-calendars/dist/plus\":348}],365:[function(_dereq_,module,exports){\n'use strict';\n\nvar calendars = _dereq_('./calendars');\n\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('../../constants/numerical');\n\nvar EPOCHJD = constants.EPOCHJD;\nvar ONEDAY = constants.ONEDAY;\n\nvar attributes = {\n valType: 'enumerated',\n values: Lib.sortObjectKeys(calendars.calendars),\n editType: 'calc',\n dflt: 'gregorian'\n};\n\nvar handleDefaults = function(contIn, contOut, attr, dflt) {\n var attrs = {};\n attrs[attr] = attributes;\n\n return Lib.coerce(contIn, contOut, attrs, attr, dflt);\n};\n\nvar handleTraceDefaults = function(traceIn, traceOut, coords, layout) {\n for(var i = 0; i < coords.length; i++) {\n handleDefaults(traceIn, traceOut, coords[i] + 'calendar', layout.calendar);\n }\n};\n\n// each calendar needs its own default canonical tick. I would love to use\n// 2000-01-01 (or even 0000-01-01) for them all but they don't necessarily\n// all support either of those dates. Instead I'll use the most significant\n// number they *do* support, biased toward the present day.\nvar CANONICAL_TICK = {\n chinese: '2000-01-01',\n coptic: '2000-01-01',\n discworld: '2000-01-01',\n ethiopian: '2000-01-01',\n hebrew: '5000-01-01',\n islamic: '1000-01-01',\n julian: '2000-01-01',\n mayan: '5000-01-01',\n nanakshahi: '1000-01-01',\n nepali: '2000-01-01',\n persian: '1000-01-01',\n jalali: '1000-01-01',\n taiwan: '1000-01-01',\n thai: '2000-01-01',\n ummalqura: '1400-01-01'\n};\n\n// Start on a Sunday - for week ticks\n// Discworld and Mayan calendars don't have 7-day weeks but we're going to give them\n// 7-day week ticks so start on our Sundays.\n// If anyone really cares we can customize the auto tick spacings for these calendars.\nvar CANONICAL_SUNDAY = {\n chinese: '2000-01-02',\n coptic: '2000-01-03',\n discworld: '2000-01-03',\n ethiopian: '2000-01-05',\n hebrew: '5000-01-01',\n islamic: '1000-01-02',\n julian: '2000-01-03',\n mayan: '5000-01-01',\n nanakshahi: '1000-01-05',\n nepali: '2000-01-05',\n persian: '1000-01-01',\n jalali: '1000-01-01',\n taiwan: '1000-01-04',\n thai: '2000-01-04',\n ummalqura: '1400-01-06'\n};\n\nvar DFLTRANGE = {\n chinese: ['2000-01-01', '2001-01-01'],\n coptic: ['1700-01-01', '1701-01-01'],\n discworld: ['1800-01-01', '1801-01-01'],\n ethiopian: ['2000-01-01', '2001-01-01'],\n hebrew: ['5700-01-01', '5701-01-01'],\n islamic: ['1400-01-01', '1401-01-01'],\n julian: ['2000-01-01', '2001-01-01'],\n mayan: ['5200-01-01', '5201-01-01'],\n nanakshahi: ['0500-01-01', '0501-01-01'],\n nepali: ['2000-01-01', '2001-01-01'],\n persian: ['1400-01-01', '1401-01-01'],\n jalali: ['1400-01-01', '1401-01-01'],\n taiwan: ['0100-01-01', '0101-01-01'],\n thai: ['2500-01-01', '2501-01-01'],\n ummalqura: ['1400-01-01', '1401-01-01']\n};\n\n/*\n * convert d3 templates to world-calendars templates, so our users only need\n * to know d3's specifiers. Map space padding to no padding, and unknown fields\n * to an ugly placeholder\n */\nvar UNKNOWN = '##';\nvar d3ToWorldCalendars = {\n 'd': {'0': 'dd', '-': 'd'}, // 2-digit or unpadded day of month\n 'e': {'0': 'd', '-': 'd'}, // alternate, always unpadded day of month\n 'a': {'0': 'D', '-': 'D'}, // short weekday name\n 'A': {'0': 'DD', '-': 'DD'}, // full weekday name\n 'j': {'0': 'oo', '-': 'o'}, // 3-digit or unpadded day of the year\n 'W': {'0': 'ww', '-': 'w'}, // 2-digit or unpadded week of the year (Monday first)\n 'm': {'0': 'mm', '-': 'm'}, // 2-digit or unpadded month number\n 'b': {'0': 'M', '-': 'M'}, // short month name\n 'B': {'0': 'MM', '-': 'MM'}, // full month name\n 'y': {'0': 'yy', '-': 'yy'}, // 2-digit year (map unpadded to zero-padded)\n 'Y': {'0': 'yyyy', '-': 'yyyy'}, // 4-digit year (map unpadded to zero-padded)\n 'U': UNKNOWN, // Sunday-first week of the year\n 'w': UNKNOWN, // day of the week [0(sunday),6]\n // combined format, we replace the date part with the world-calendar version\n // and the %X stays there for d3 to handle with time parts\n 'c': {'0': 'D M d %X yyyy', '-': 'D M d %X yyyy'},\n 'x': {'0': 'mm/dd/yyyy', '-': 'mm/dd/yyyy'}\n};\n\nfunction worldCalFmt(fmt, x, calendar) {\n var dateJD = Math.floor((x + 0.05) / ONEDAY) + EPOCHJD;\n var cDate = getCal(calendar).fromJD(dateJD);\n var i = 0;\n var modifier, directive, directiveLen, directiveObj, replacementPart;\n\n while((i = fmt.indexOf('%', i)) !== -1) {\n modifier = fmt.charAt(i + 1);\n if(modifier === '0' || modifier === '-' || modifier === '_') {\n directiveLen = 3;\n directive = fmt.charAt(i + 2);\n if(modifier === '_') modifier = '-';\n } else {\n directive = modifier;\n modifier = '0';\n directiveLen = 2;\n }\n directiveObj = d3ToWorldCalendars[directive];\n if(!directiveObj) {\n i += directiveLen;\n } else {\n // code is recognized as a date part but world-calendars doesn't support it\n if(directiveObj === UNKNOWN) replacementPart = UNKNOWN;\n\n // format the cDate according to the translated directive\n else replacementPart = cDate.formatDate(directiveObj[modifier]);\n\n fmt = fmt.substr(0, i) + replacementPart + fmt.substr(i + directiveLen);\n i += replacementPart.length;\n }\n }\n return fmt;\n}\n\n// cache world calendars, so we don't have to reinstantiate\n// during each date-time conversion\nvar allCals = {};\nfunction getCal(calendar) {\n var calendarObj = allCals[calendar];\n if(calendarObj) return calendarObj;\n\n calendarObj = allCals[calendar] = calendars.instance(calendar);\n return calendarObj;\n}\n\nfunction makeAttrs(description) {\n return Lib.extendFlat({}, attributes, { description: description });\n}\n\nfunction makeTraceAttrsDescription(coord) {\n return 'Sets the calendar system to use with `' + coord + '` date data.';\n}\n\nvar xAttrs = {\n xcalendar: makeAttrs(makeTraceAttrsDescription('x'))\n};\n\nvar xyAttrs = Lib.extendFlat({}, xAttrs, {\n ycalendar: makeAttrs(makeTraceAttrsDescription('y'))\n});\n\nvar xyzAttrs = Lib.extendFlat({}, xyAttrs, {\n zcalendar: makeAttrs(makeTraceAttrsDescription('z'))\n});\n\nvar axisAttrs = makeAttrs([\n 'Sets the calendar system to use for `range` and `tick0`',\n 'if this is a date axis. This does not set the calendar for',\n 'interpreting data on this axis, that\\'s specified in the trace',\n 'or via the global `layout.calendar`'\n].join(' '));\n\nmodule.exports = {\n moduleType: 'component',\n name: 'calendars',\n\n schema: {\n traces: {\n scatter: xyAttrs,\n bar: xyAttrs,\n box: xyAttrs,\n heatmap: xyAttrs,\n contour: xyAttrs,\n histogram: xyAttrs,\n histogram2d: xyAttrs,\n histogram2dcontour: xyAttrs,\n scatter3d: xyzAttrs,\n surface: xyzAttrs,\n mesh3d: xyzAttrs,\n scattergl: xyAttrs,\n ohlc: xAttrs,\n candlestick: xAttrs\n },\n layout: {\n calendar: makeAttrs([\n 'Sets the default calendar system to use for interpreting and',\n 'displaying dates throughout the plot.'\n ].join(' '))\n },\n subplots: {\n xaxis: {calendar: axisAttrs},\n yaxis: {calendar: axisAttrs},\n scene: {\n xaxis: {calendar: axisAttrs},\n // TODO: it's actually redundant to include yaxis and zaxis here\n // because in the scene attributes these are the same object so merging\n // into one merges into them all. However, I left them in for parity with\n // cartesian, where yaxis is unused until we Plotschema.get() when we\n // use its presence or absence to determine whether to delete attributes\n // from yaxis if they only apply to x (rangeselector/rangeslider)\n yaxis: {calendar: axisAttrs},\n zaxis: {calendar: axisAttrs}\n },\n polar: {\n radialaxis: {calendar: axisAttrs}\n }\n },\n transforms: {\n filter: {\n valuecalendar: makeAttrs([\n 'WARNING: All transforms are deprecated and may be removed from the API in next major version.',\n 'Sets the calendar system to use for `value`, if it is a date.'\n ].join(' ')),\n targetcalendar: makeAttrs([\n 'WARNING: All transforms are deprecated and may be removed from the API in next major version.',\n 'Sets the calendar system to use for `target`, if it is an',\n 'array of dates. If `target` is a string (eg *x*) we use the',\n 'corresponding trace attribute (eg `xcalendar`) if it exists,',\n 'even if `targetcalendar` is provided.'\n ].join(' '))\n }\n }\n },\n\n layoutAttributes: attributes,\n\n handleDefaults: handleDefaults,\n handleTraceDefaults: handleTraceDefaults,\n\n CANONICAL_SUNDAY: CANONICAL_SUNDAY,\n CANONICAL_TICK: CANONICAL_TICK,\n DFLTRANGE: DFLTRANGE,\n\n getCal: getCal,\n worldCalFmt: worldCalFmt\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"./calendars\":364}],366:[function(_dereq_,module,exports){\n'use strict';\n\n\n// IMPORTANT - default colors should be in hex for compatibility\nexports.defaults = [\n '#1f77b4', // muted blue\n '#ff7f0e', // safety orange\n '#2ca02c', // cooked asparagus green\n '#d62728', // brick red\n '#9467bd', // muted purple\n '#8c564b', // chestnut brown\n '#e377c2', // raspberry yogurt pink\n '#7f7f7f', // middle gray\n '#bcbd22', // curry yellow-green\n '#17becf' // blue-teal\n];\n\nexports.defaultLine = '#444';\n\nexports.lightLine = '#eee';\n\nexports.background = '#fff';\n\nexports.borderLine = '#BEC8D9';\n\n// with axis.color and Color.interp we aren't using lightLine\n// itself anymore, instead interpolating between axis.color\n// and the background color using tinycolor.mix. lightFraction\n// gives back exactly lightLine if the other colors are defaults.\nexports.lightFraction = 100 * (0xe - 0x4) / (0xf - 0x4);\n\n},{}],367:[function(_dereq_,module,exports){\n'use strict';\n\nvar tinycolor = _dereq_('tinycolor2');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isTypedArray = _dereq_('../../lib/array').isTypedArray;\n\nvar color = module.exports = {};\n\nvar colorAttrs = _dereq_('./attributes');\ncolor.defaults = colorAttrs.defaults;\nvar defaultLine = color.defaultLine = colorAttrs.defaultLine;\ncolor.lightLine = colorAttrs.lightLine;\nvar background = color.background = colorAttrs.background;\n\n/*\n * tinyRGB: turn a tinycolor into an rgb string, but\n * unlike the built-in tinycolor.toRgbString this never includes alpha\n */\ncolor.tinyRGB = function(tc) {\n var c = tc.toRgb();\n return 'rgb(' + Math.round(c.r) + ', ' +\n Math.round(c.g) + ', ' + Math.round(c.b) + ')';\n};\n\ncolor.rgb = function(cstr) { return color.tinyRGB(tinycolor(cstr)); };\n\ncolor.opacity = function(cstr) { return cstr ? tinycolor(cstr).getAlpha() : 0; };\n\ncolor.addOpacity = function(cstr, op) {\n var c = tinycolor(cstr).toRgb();\n return 'rgba(' + Math.round(c.r) + ', ' +\n Math.round(c.g) + ', ' + Math.round(c.b) + ', ' + op + ')';\n};\n\n// combine two colors into one apparent color\n// if back has transparency or is missing,\n// color.background is assumed behind it\ncolor.combine = function(front, back) {\n var fc = tinycolor(front).toRgb();\n if(fc.a === 1) return tinycolor(front).toRgbString();\n\n var bc = tinycolor(back || background).toRgb();\n var bcflat = bc.a === 1 ? bc : {\n r: 255 * (1 - bc.a) + bc.r * bc.a,\n g: 255 * (1 - bc.a) + bc.g * bc.a,\n b: 255 * (1 - bc.a) + bc.b * bc.a\n };\n var fcflat = {\n r: bcflat.r * (1 - fc.a) + fc.r * fc.a,\n g: bcflat.g * (1 - fc.a) + fc.g * fc.a,\n b: bcflat.b * (1 - fc.a) + fc.b * fc.a\n };\n return tinycolor(fcflat).toRgbString();\n};\n\n/*\n * Create a color that contrasts with cstr.\n *\n * If cstr is a dark color, we lighten it; if it's light, we darken.\n *\n * If lightAmount / darkAmount are used, we adjust by these percentages,\n * otherwise we go all the way to white or black.\n */\ncolor.contrast = function(cstr, lightAmount, darkAmount) {\n var tc = tinycolor(cstr);\n\n if(tc.getAlpha() !== 1) tc = tinycolor(color.combine(cstr, background));\n\n var newColor = tc.isDark() ?\n (lightAmount ? tc.lighten(lightAmount) : background) :\n (darkAmount ? tc.darken(darkAmount) : defaultLine);\n\n return newColor.toString();\n};\n\ncolor.stroke = function(s, c) {\n var tc = tinycolor(c);\n s.style({'stroke': color.tinyRGB(tc), 'stroke-opacity': tc.getAlpha()});\n};\n\ncolor.fill = function(s, c) {\n var tc = tinycolor(c);\n s.style({\n 'fill': color.tinyRGB(tc),\n 'fill-opacity': tc.getAlpha()\n });\n};\n\n// search container for colors with the deprecated rgb(fractions) format\n// and convert them to rgb(0-255 values)\ncolor.clean = function(container) {\n if(!container || typeof container !== 'object') return;\n\n var keys = Object.keys(container);\n var i, j, key, val;\n\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n val = container[key];\n\n if(key.substr(key.length - 5) === 'color') {\n // only sanitize keys that end in \"color\" or \"colorscale\"\n\n if(Array.isArray(val)) {\n for(j = 0; j < val.length; j++) val[j] = cleanOne(val[j]);\n } else container[key] = cleanOne(val);\n } else if(key.substr(key.length - 10) === 'colorscale' && Array.isArray(val)) {\n // colorscales have the format [[0, color1], [frac, color2], ... [1, colorN]]\n\n for(j = 0; j < val.length; j++) {\n if(Array.isArray(val[j])) val[j][1] = cleanOne(val[j][1]);\n }\n } else if(Array.isArray(val)) {\n // recurse into arrays of objects, and plain objects\n\n var el0 = val[0];\n if(!Array.isArray(el0) && el0 && typeof el0 === 'object') {\n for(j = 0; j < val.length; j++) color.clean(val[j]);\n }\n } else if(val && typeof val === 'object' && !isTypedArray(val)) color.clean(val);\n }\n};\n\nfunction cleanOne(val) {\n if(isNumeric(val) || typeof val !== 'string') return val;\n\n var valTrim = val.trim();\n if(valTrim.substr(0, 3) !== 'rgb') return val;\n\n var match = valTrim.match(/^rgba?\\s*\\(([^()]*)\\)$/);\n if(!match) return val;\n\n var parts = match[1].trim().split(/\\s*[\\s,]\\s*/);\n var rgba = valTrim.charAt(3) === 'a' && parts.length === 4;\n if(!rgba && parts.length !== 3) return val;\n\n for(var i = 0; i < parts.length; i++) {\n if(!parts[i].length) return val;\n parts[i] = Number(parts[i]);\n\n if(!(parts[i] >= 0)) {\n // all parts must be non-negative numbers\n\n return val;\n }\n\n if(i === 3) {\n // alpha>1 gets clipped to 1\n\n if(parts[i] > 1) parts[i] = 1;\n } else if(parts[i] >= 1) {\n // r, g, b must be < 1 (ie 1 itself is not allowed)\n\n return val;\n }\n }\n\n var rgbStr = Math.round(parts[0] * 255) + ', ' +\n Math.round(parts[1] * 255) + ', ' +\n Math.round(parts[2] * 255);\n\n if(rgba) return 'rgba(' + rgbStr + ', ' + parts[3] + ')';\n return 'rgb(' + rgbStr + ')';\n}\n\n},{\"../../lib/array\":497,\"./attributes\":366,\"fast-isnumeric\":190,\"tinycolor2\":313}],368:[function(_dereq_,module,exports){\n'use strict';\n\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\n\nmodule.exports = overrideAll({\n orientation: {\n valType: 'enumerated',\n values: ['h', 'v'],\n dflt: 'v',\n },\n thicknessmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'pixels',\n },\n thickness: {\n valType: 'number',\n min: 0,\n dflt: 30,\n },\n lenmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'fraction',\n },\n len: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n },\n xanchor: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n },\n xpad: {\n valType: 'number',\n min: 0,\n dflt: 10,\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n },\n yanchor: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n },\n ypad: {\n valType: 'number',\n min: 0,\n dflt: 10,\n },\n // a possible line around the bar itself\n outlinecolor: axesAttrs.linecolor,\n outlinewidth: axesAttrs.linewidth,\n // Should outlinewidth have {dflt: 0} ?\n // another possible line outside the padding and tick labels\n bordercolor: axesAttrs.linecolor,\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 0,\n },\n bgcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n },\n // tick and title properties named and function exactly as in axes\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: extendFlat({}, axesAttrs.ticks, {dflt: ''}),\n ticklabeloverflow: extendFlat({}, axesAttrs.ticklabeloverflow, {\n }),\n\n // ticklabelposition: not used directly, as values depend on orientation\n // left/right options are for x axes, and top/bottom options are for y axes\n ticklabelposition: {\n valType: 'enumerated',\n values: [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside left', 'inside left',\n 'outside right', 'inside right',\n 'outside bottom', 'inside bottom'\n ],\n dflt: 'outside',\n },\n\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n ticklabelstep: axesAttrs.ticklabelstep,\n showticklabels: axesAttrs.showticklabels,\n tickfont: fontAttrs({\n }),\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n tickprefix: axesAttrs.tickprefix,\n showtickprefix: axesAttrs.showtickprefix,\n ticksuffix: axesAttrs.ticksuffix,\n showticksuffix: axesAttrs.showticksuffix,\n separatethousands: axesAttrs.separatethousands,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n showexponent: axesAttrs.showexponent,\n title: {\n text: {\n valType: 'string',\n },\n font: fontAttrs({\n }),\n side: {\n valType: 'enumerated',\n values: ['right', 'top', 'bottom'],\n }\n },\n\n _deprecated: {\n title: {\n valType: 'string',\n },\n titlefont: fontAttrs({\n }),\n titleside: {\n valType: 'enumerated',\n values: ['right', 'top', 'bottom'],\n dflt: 'top',\n }\n }\n}, 'colorbars', 'from-root');\n\n},{\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/cartesian/layout_attributes\":579,\"../../plots/font_attributes\":594}],369:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n cn: {\n colorbar: 'colorbar',\n cbbg: 'cbbg',\n cbfill: 'cbfill',\n cbfills: 'cbfills',\n cbline: 'cbline',\n cblines: 'cblines',\n cbaxis: 'cbaxis',\n cbtitleunshift: 'cbtitleunshift',\n cbtitle: 'cbtitle',\n cboutline: 'cboutline',\n crisp: 'crisp',\n jsPlaceholder: 'js-placeholder'\n }\n};\n\n},{}],370:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleTickValueDefaults = _dereq_('../../plots/cartesian/tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('../../plots/cartesian/tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('../../plots/cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../../plots/cartesian/prefix_suffix_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function colorbarDefaults(containerIn, containerOut, layout) {\n var colorbarOut = Template.newContainer(containerOut, 'colorbar');\n var colorbarIn = containerIn.colorbar || {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(colorbarIn, colorbarOut, attributes, attr, dflt);\n }\n\n var margin = layout.margin || {t: 0, b: 0, l: 0, r: 0};\n var w = layout.width - margin.l - margin.r;\n var h = layout.height - margin.t - margin.b;\n\n var orientation = coerce('orientation');\n var isVertical = orientation === 'v';\n\n var thicknessmode = coerce('thicknessmode');\n coerce('thickness', (thicknessmode === 'fraction') ?\n 30 / (isVertical ? w : h) :\n 30\n );\n\n var lenmode = coerce('lenmode');\n coerce('len', (lenmode === 'fraction') ?\n 1 :\n isVertical ? h : w\n );\n\n coerce('x', isVertical ? 1.02 : 0.5);\n coerce('xanchor', isVertical ? 'left' : 'center');\n coerce('xpad');\n coerce('y', isVertical ? 0.5 : 1.02);\n coerce('yanchor', isVertical ? 'middle' : 'bottom');\n coerce('ypad');\n Lib.noneOrAll(colorbarIn, colorbarOut, ['x', 'y']);\n\n coerce('outlinecolor');\n coerce('outlinewidth');\n coerce('bordercolor');\n coerce('borderwidth');\n coerce('bgcolor');\n\n var ticklabelposition = Lib.coerce(colorbarIn, colorbarOut, {\n ticklabelposition: {\n valType: 'enumerated',\n dflt: 'outside',\n values: isVertical ? [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside bottom', 'inside bottom'\n ] : [\n 'outside', 'inside',\n 'outside left', 'inside left',\n 'outside right', 'inside right'\n ]\n }\n }, 'ticklabelposition');\n\n coerce('ticklabeloverflow', ticklabelposition.indexOf('inside') !== -1 ? 'hide past domain' : 'hide past div');\n\n handleTickValueDefaults(colorbarIn, colorbarOut, coerce, 'linear');\n\n var font = layout.font;\n var opts = {outerTicks: false, font: font};\n if(ticklabelposition.indexOf('inside') !== -1) {\n opts.bgColor = 'black'; // could we instead use the average of colors in the scale?\n }\n handlePrefixSuffixDefaults(colorbarIn, colorbarOut, coerce, 'linear', opts);\n handleTickLabelDefaults(colorbarIn, colorbarOut, coerce, 'linear', opts);\n handleTickMarkDefaults(colorbarIn, colorbarOut, coerce, 'linear', opts);\n\n coerce('title.text', layout._dfltTitle.colorbar);\n\n var tickFont = colorbarOut.tickfont;\n var dfltTitleFont = Lib.extendFlat({}, tickFont, {\n color: font.color,\n size: Lib.bigFont(tickFont.size)\n });\n Lib.coerceFont(coerce, 'title.font', dfltTitleFont);\n coerce('title.side', isVertical ? 'top' : 'right');\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/prefix_suffix_defaults\":583,\"../../plots/cartesian/tick_label_defaults\":587,\"../../plots/cartesian/tick_mark_defaults\":588,\"../../plots/cartesian/tick_value_defaults\":589,\"./attributes\":368}],371:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar dragElement = _dereq_('../dragelement');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar setCursor = _dereq_('../../lib/setcursor');\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar Titles = _dereq_('../titles');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar flipScale = _dereq_('../colorscale/helpers').flipScale;\n\nvar handleAxisDefaults = _dereq_('../../plots/cartesian/axis_defaults');\nvar handleAxisPositionDefaults = _dereq_('../../plots/cartesian/position_defaults');\nvar axisLayoutAttrs = _dereq_('../../plots/cartesian/layout_attributes');\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nvar cn = _dereq_('./constants').cn;\n\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n var colorBars = fullLayout._infolayer\n .selectAll('g.' + cn.colorbar)\n .data(makeColorBarData(gd), function(opts) { return opts._id; });\n\n colorBars.enter().append('g')\n .attr('class', function(opts) { return opts._id; })\n .classed(cn.colorbar, true);\n\n colorBars.each(function(opts) {\n var g = d3.select(this);\n\n Lib.ensureSingle(g, 'rect', cn.cbbg);\n Lib.ensureSingle(g, 'g', cn.cbfills);\n Lib.ensureSingle(g, 'g', cn.cblines);\n Lib.ensureSingle(g, 'g', cn.cbaxis, function(s) { s.classed(cn.crisp, true); });\n Lib.ensureSingle(g, 'g', cn.cbtitleunshift, function(s) { s.append('g').classed(cn.cbtitle, true); });\n Lib.ensureSingle(g, 'rect', cn.cboutline);\n\n var done = drawColorBar(g, opts, gd);\n if(done && done.then) (gd._promises || []).push(done);\n\n if(gd._context.edits.colorbarPosition) {\n makeEditable(g, opts, gd);\n }\n });\n\n colorBars.exit()\n .each(function(opts) { Plots.autoMargin(gd, opts._id); })\n .remove();\n\n colorBars.order();\n}\n\nfunction makeColorBarData(gd) {\n var fullLayout = gd._fullLayout;\n var calcdata = gd.calcdata;\n var out = [];\n\n // single out item\n var opts;\n // colorbar attr parent container\n var cont;\n // trace attr container\n var trace;\n // colorbar options\n var cbOpt;\n\n function initOpts(opts) {\n return extendFlat(opts, {\n // fillcolor can be a d3 scale, domain is z values, range is colors\n // or leave it out for no fill,\n // or set to a string constant for single-color fill\n _fillcolor: null,\n // line.color has the same options as fillcolor\n _line: {color: null, width: null, dash: null},\n // levels of lines to draw.\n // note that this DOES NOT determine the extent of the bar\n // that's given by the domain of fillcolor\n // (or line.color if no fillcolor domain)\n _levels: {start: null, end: null, size: null},\n // separate fill levels (for example, heatmap coloring of a\n // contour map) if this is omitted, fillcolors will be\n // evaluated halfway between levels\n _filllevels: null,\n // for continuous colorscales: fill with a gradient instead of explicit levels\n // value should be the colorscale [[0, c0], [v1, c1], ..., [1, cEnd]]\n _fillgradient: null,\n // when using a gradient, we need the data range specified separately\n _zrange: null\n });\n }\n\n function calcOpts() {\n if(typeof cbOpt.calc === 'function') {\n cbOpt.calc(gd, trace, opts);\n } else {\n opts._fillgradient = cont.reversescale ?\n flipScale(cont.colorscale) :\n cont.colorscale;\n opts._zrange = [cont[cbOpt.min], cont[cbOpt.max]];\n }\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n trace = cd[0].trace;\n var moduleOpts = trace._module.colorbar;\n\n if(trace.visible === true && moduleOpts) {\n var allowsMultiplotCbs = Array.isArray(moduleOpts);\n var cbOpts = allowsMultiplotCbs ? moduleOpts : [moduleOpts];\n\n for(var j = 0; j < cbOpts.length; j++) {\n cbOpt = cbOpts[j];\n var contName = cbOpt.container;\n cont = contName ? trace[contName] : trace;\n\n if(cont && cont.showscale) {\n opts = initOpts(cont.colorbar);\n opts._id = 'cb' + trace.uid + (allowsMultiplotCbs && contName ? '-' + contName : '');\n opts._traceIndex = trace.index;\n opts._propPrefix = (contName ? contName + '.' : '') + 'colorbar.';\n opts._meta = trace._meta;\n calcOpts();\n out.push(opts);\n }\n }\n }\n }\n\n for(var k in fullLayout._colorAxes) {\n cont = fullLayout[k];\n\n if(cont.showscale) {\n var colorAxOpts = fullLayout._colorAxes[k];\n\n opts = initOpts(cont.colorbar);\n opts._id = 'cb' + k;\n opts._propPrefix = k + '.colorbar.';\n opts._meta = fullLayout._meta;\n\n cbOpt = {min: 'cmin', max: 'cmax'};\n if(colorAxOpts[0] !== 'heatmap') {\n trace = colorAxOpts[1];\n cbOpt.calc = trace._module.colorbar.calc;\n }\n\n calcOpts();\n out.push(opts);\n }\n }\n\n return out;\n}\n\nfunction drawColorBar(g, opts, gd) {\n var isVertical = opts.orientation === 'v';\n var len = opts.len;\n var lenmode = opts.lenmode;\n var thickness = opts.thickness;\n var thicknessmode = opts.thicknessmode;\n var outlinewidth = opts.outlinewidth;\n var borderwidth = opts.borderwidth;\n var bgcolor = opts.bgcolor;\n var xanchor = opts.xanchor;\n var yanchor = opts.yanchor;\n var xpad = opts.xpad;\n var ypad = opts.ypad;\n var optsX = opts.x;\n var optsY = isVertical ? opts.y : 1 - opts.y;\n\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n\n var fillColor = opts._fillcolor;\n var line = opts._line;\n var title = opts.title;\n var titleSide = title.side;\n\n var zrange = opts._zrange ||\n d3.extent((typeof fillColor === 'function' ? fillColor : line.color).domain());\n\n var lineColormap = typeof line.color === 'function' ?\n line.color :\n function() { return line.color; };\n var fillColormap = typeof fillColor === 'function' ?\n fillColor :\n function() { return fillColor; };\n\n var levelsIn = opts._levels;\n var levelsOut = calcLevels(gd, opts, zrange);\n var fillLevels = levelsOut.fill;\n var lineLevels = levelsOut.line;\n\n // we calculate pixel sizes based on the specified graph size,\n // not the actual (in case something pushed the margins around)\n // which is a little odd but avoids an odd iterative effect\n // when the colorbar itself is pushing the margins.\n // but then the fractional size is calculated based on the\n // actual graph size, so that the axes will size correctly.\n var thickPx = Math.round(thickness * (thicknessmode === 'fraction' ? (isVertical ? gs.w : gs.h) : 1));\n var thickFrac = thickPx / (isVertical ? gs.w : gs.h);\n var lenPx = Math.round(len * (lenmode === 'fraction' ? (isVertical ? gs.h : gs.w) : 1));\n var lenFrac = lenPx / (isVertical ? gs.h : gs.w);\n\n // x positioning: do it initially just for left anchor,\n // then fix at the end (since we don't know the width yet)\n var uPx = Math.round(isVertical ?\n optsX * gs.w + xpad :\n optsY * gs.h + ypad\n );\n\n var xRatio = {center: 0.5, right: 1}[xanchor] || 0;\n var yRatio = {top: 1, middle: 0.5}[yanchor] || 0;\n\n // for dragging... this is getting a little muddled...\n var uFrac = isVertical ?\n optsX - xRatio * thickFrac :\n optsY - yRatio * thickFrac;\n\n // y/x positioning (for v/h) we can do correctly from the start\n var vFrac = isVertical ?\n optsY - yRatio * lenFrac :\n optsX - xRatio * lenFrac;\n\n var vPx = Math.round(isVertical ?\n gs.h * (1 - vFrac) :\n gs.w * vFrac\n );\n\n // stash a few things for makeEditable\n opts._lenFrac = lenFrac;\n opts._thickFrac = thickFrac;\n opts._uFrac = uFrac;\n opts._vFrac = vFrac;\n\n // stash mocked axis for contour label formatting\n var ax = opts._axis = mockColorBarAxis(gd, opts, zrange);\n\n // position can't go in through supplyDefaults\n // because that restricts it to [0,1]\n ax.position = thickFrac + (isVertical ?\n optsX + xpad / gs.w :\n optsY + ypad / gs.h\n );\n\n var topOrBottom = ['top', 'bottom'].indexOf(titleSide) !== -1;\n\n if(isVertical && topOrBottom) {\n ax.title.side = titleSide;\n ax.titlex = optsX + xpad / gs.w;\n ax.titley = vFrac + (title.side === 'top' ? lenFrac - ypad / gs.h : ypad / gs.h);\n }\n\n if(!isVertical && !topOrBottom) {\n ax.title.side = titleSide;\n ax.titley = optsY + ypad / gs.h;\n ax.titlex = vFrac + xpad / gs.w; // right side\n }\n\n if(line.color && opts.tickmode === 'auto') {\n ax.tickmode = 'linear';\n ax.tick0 = levelsIn.start;\n var dtick = levelsIn.size;\n // expand if too many contours, so we don't get too many ticks\n var autoNtick = Lib.constrain(lenPx / 50, 4, 15) + 1;\n var dtFactor = (zrange[1] - zrange[0]) / ((opts.nticks || autoNtick) * dtick);\n if(dtFactor > 1) {\n var dtexp = Math.pow(10, Math.floor(Math.log(dtFactor) / Math.LN10));\n dtick *= dtexp * Lib.roundUp(dtFactor / dtexp, [2, 5, 10]);\n // if the contours are at round multiples, reset tick0\n // so they're still at round multiples. Otherwise,\n // keep the first label on the first contour level\n if((Math.abs(levelsIn.start) / levelsIn.size + 1e-6) % 1 < 2e-6) {\n ax.tick0 = 0;\n }\n }\n ax.dtick = dtick;\n }\n\n // set domain after init, because we may want to\n // allow it outside [0,1]\n ax.domain = isVertical ? [\n vFrac + ypad / gs.h,\n vFrac + lenFrac - ypad / gs.h\n ] : [\n vFrac + xpad / gs.w,\n vFrac + lenFrac - xpad / gs.w\n ];\n\n ax.setScale();\n\n g.attr('transform', strTranslate(Math.round(gs.l), Math.round(gs.t)));\n\n var titleCont = g.select('.' + cn.cbtitleunshift)\n .attr('transform', strTranslate(-Math.round(gs.l), -Math.round(gs.t)));\n\n var ticklabelposition = ax.ticklabelposition;\n var titleFontSize = ax.title.font.size;\n\n var axLayer = g.select('.' + cn.cbaxis);\n var titleEl;\n var titleHeight = 0;\n var titleWidth = 0;\n\n function drawTitle(titleClass, titleOpts) {\n var dfltTitleOpts = {\n propContainer: ax,\n propName: opts._propPrefix + 'title',\n traceIndex: opts._traceIndex,\n _meta: opts._meta,\n placeholder: fullLayout._dfltTitle.colorbar,\n containerGroup: g.select('.' + cn.cbtitle)\n };\n\n // this class-to-rotate thing with convertToTspans is\n // getting hackier and hackier... delete groups with the\n // wrong class (in case earlier the colorbar was drawn on\n // a different side, I think?)\n var otherClass = titleClass.charAt(0) === 'h' ?\n titleClass.substr(1) :\n 'h' + titleClass;\n g.selectAll('.' + otherClass + ',.' + otherClass + '-math-group').remove();\n\n Titles.draw(gd, titleClass, extendFlat(dfltTitleOpts, titleOpts || {}));\n }\n\n function drawDummyTitle() {\n // draw the title so we know how much room it needs\n // when we squish the axis.\n // On vertical colorbars this only applies to top or bottom titles, not right side.\n // On horizontal colorbars this only applies to right, etc.\n\n if(\n (isVertical && topOrBottom) ||\n (!isVertical && !topOrBottom)\n ) {\n var x, y;\n\n if(titleSide === 'top') {\n x = xpad + gs.l + gs.w * optsX;\n y = ypad + gs.t + gs.h * (1 - vFrac - lenFrac) + 3 + titleFontSize * 0.75;\n }\n\n if(titleSide === 'bottom') {\n x = xpad + gs.l + gs.w * optsX;\n y = ypad + gs.t + gs.h * (1 - vFrac) - 3 - titleFontSize * 0.25;\n }\n\n if(titleSide === 'right') {\n y = ypad + gs.t + gs.h * optsY + 3 + titleFontSize * 0.75;\n x = xpad + gs.l + gs.w * vFrac;\n }\n\n drawTitle(ax._id + 'title', {\n attributes: {x: x, y: y, 'text-anchor': isVertical ? 'start' : 'middle'}\n });\n }\n }\n\n function drawCbTitle() {\n if(\n (isVertical && !topOrBottom) ||\n (!isVertical && topOrBottom)\n ) {\n var pos = ax.position || 0;\n var mid = ax._offset + ax._length / 2;\n var x, y;\n\n if(titleSide === 'right') {\n y = mid;\n x = gs.l + gs.w * pos + 10 + titleFontSize * (\n ax.showticklabels ? 1 : 0.5\n );\n } else {\n x = mid;\n\n if(titleSide === 'bottom') {\n y = gs.t + gs.h * pos + 10 + (\n ticklabelposition.indexOf('inside') === -1 ?\n ax.tickfont.size :\n 0\n ) + (\n ax.ticks !== 'intside' ?\n opts.ticklen || 0 :\n 0\n );\n }\n\n if(titleSide === 'top') {\n var nlines = title.text.split('
').length;\n y = gs.t + gs.h * pos + 10 - thickPx - LINE_SPACING * titleFontSize * nlines;\n }\n }\n\n drawTitle((isVertical ?\n // the 'h' + is a hack to get around the fact that\n // convertToTspans rotates any 'y...' class by 90 degrees.\n // TODO: find a better way to control this.\n 'h' :\n 'v'\n ) + ax._id + 'title', {\n avoid: {\n selection: d3.select(gd).selectAll('g.' + ax._id + 'tick'),\n side: titleSide,\n offsetTop: isVertical ? 0 : gs.t,\n offsetLeft: isVertical ? gs.l : 0,\n maxShift: isVertical ? fullLayout.width : fullLayout.height\n },\n attributes: {x: x, y: y, 'text-anchor': 'middle'},\n transform: {rotate: isVertical ? -90 : 0, offset: 0}\n });\n }\n }\n\n function drawAxis() {\n if(\n (!isVertical && !topOrBottom) ||\n (isVertical && topOrBottom)\n ) {\n // squish the axis top to make room for the title\n var titleGroup = g.select('.' + cn.cbtitle);\n var titleText = titleGroup.select('text');\n var titleTrans = [-outlinewidth / 2, outlinewidth / 2];\n var mathJaxNode = titleGroup\n .select('.h' + ax._id + 'title-math-group')\n .node();\n var lineSize = 15.6;\n if(titleText.node()) {\n lineSize = parseInt(titleText.node().style.fontSize, 10) * LINE_SPACING;\n }\n\n var bb;\n if(mathJaxNode) {\n bb = Drawing.bBox(mathJaxNode);\n titleWidth = bb.width;\n titleHeight = bb.height;\n if(titleHeight > lineSize) {\n // not entirely sure how mathjax is doing\n // vertical alignment, but this seems to work.\n titleTrans[1] -= (titleHeight - lineSize) / 2;\n }\n } else if(titleText.node() && !titleText.classed(cn.jsPlaceholder)) {\n bb = Drawing.bBox(titleText.node());\n titleWidth = bb.width;\n titleHeight = bb.height;\n }\n\n if(isVertical) {\n if(titleHeight) {\n // buffer btwn colorbar and title\n // TODO: configurable\n titleHeight += 5;\n\n if(titleSide === 'top') {\n ax.domain[1] -= titleHeight / gs.h;\n titleTrans[1] *= -1;\n } else {\n ax.domain[0] += titleHeight / gs.h;\n var nlines = svgTextUtils.lineCount(titleText);\n titleTrans[1] += (1 - nlines) * lineSize;\n }\n\n titleGroup.attr('transform', strTranslate(titleTrans[0], titleTrans[1]));\n ax.setScale();\n }\n } else { // horizontal colorbars\n if(titleWidth) {\n if(titleSide === 'right') {\n ax.domain[0] += (titleWidth + titleFontSize / 2) / gs.w;\n }\n\n titleGroup.attr('transform', strTranslate(titleTrans[0], titleTrans[1]));\n ax.setScale();\n }\n }\n }\n\n g.selectAll('.' + cn.cbfills + ',.' + cn.cblines)\n .attr('transform', isVertical ?\n strTranslate(0, Math.round(gs.h * (1 - ax.domain[1]))) :\n strTranslate(Math.round(gs.w * ax.domain[0]), 0)\n );\n\n axLayer.attr('transform', isVertical ?\n strTranslate(0, Math.round(-gs.t)) :\n strTranslate(Math.round(-gs.l), 0)\n );\n\n var fills = g.select('.' + cn.cbfills)\n .selectAll('rect.' + cn.cbfill)\n .attr('style', '')\n .data(fillLevels);\n fills.enter().append('rect')\n .classed(cn.cbfill, true)\n .style('stroke', 'none');\n fills.exit().remove();\n\n var zBounds = zrange\n .map(ax.c2p)\n .map(Math.round)\n .sort(function(a, b) { return a - b; });\n\n fills.each(function(d, i) {\n var z = [\n (i === 0) ? zrange[0] : (fillLevels[i] + fillLevels[i - 1]) / 2,\n (i === fillLevels.length - 1) ? zrange[1] : (fillLevels[i] + fillLevels[i + 1]) / 2\n ]\n .map(ax.c2p)\n .map(Math.round);\n\n // offset the side adjoining the next rectangle so they\n // overlap, to prevent antialiasing gaps\n if(isVertical) {\n z[1] = Lib.constrain(z[1] + (z[1] > z[0]) ? 1 : -1, zBounds[0], zBounds[1]);\n } /* else {\n // TODO: horizontal case\n } */\n\n // Colorbar cannot currently support opacities so we\n // use an opaque fill even when alpha channels present\n var fillEl = d3.select(this)\n .attr(isVertical ? 'x' : 'y', uPx)\n .attr(isVertical ? 'y' : 'x', d3.min(z))\n .attr(isVertical ? 'width' : 'height', Math.max(thickPx, 2))\n .attr(isVertical ? 'height' : 'width', Math.max(d3.max(z) - d3.min(z), 2));\n\n if(opts._fillgradient) {\n Drawing.gradient(fillEl, gd, opts._id, isVertical ? 'vertical' : 'horizontalreversed', opts._fillgradient, 'fill');\n } else {\n // tinycolor can't handle exponents and\n // at this scale, removing it makes no difference.\n var colorString = fillColormap(d).replace('e-', '');\n fillEl.attr('fill', tinycolor(colorString).toHexString());\n }\n });\n\n var lines = g.select('.' + cn.cblines)\n .selectAll('path.' + cn.cbline)\n .data(line.color && line.width ? lineLevels : []);\n lines.enter().append('path')\n .classed(cn.cbline, true);\n lines.exit().remove();\n lines.each(function(d) {\n var a = uPx;\n var b = (Math.round(ax.c2p(d)) + (line.width / 2) % 1);\n\n d3.select(this)\n .attr('d', 'M' +\n (isVertical ? a + ',' + b : b + ',' + a) +\n (isVertical ? 'h' : 'v') +\n thickPx\n )\n .call(Drawing.lineGroupStyle, line.width, lineColormap(d), line.dash);\n });\n\n // force full redraw of labels and ticks\n axLayer.selectAll('g.' + ax._id + 'tick,path').remove();\n\n var shift = uPx + thickPx +\n (outlinewidth || 0) / 2 - (opts.ticks === 'outside' ? 1 : 0);\n\n var vals = Axes.calcTicks(ax);\n var tickSign = Axes.getTickSigns(ax)[2];\n\n Axes.drawTicks(gd, ax, {\n vals: ax.ticks === 'inside' ? Axes.clipEnds(ax, vals) : vals,\n layer: axLayer,\n path: Axes.makeTickPath(ax, shift, tickSign),\n transFn: Axes.makeTransTickFn(ax)\n });\n\n return Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axLayer,\n transFn: Axes.makeTransTickLabelFn(ax),\n labelFns: Axes.makeLabelFns(ax, shift)\n });\n }\n\n // wait for the axis & title to finish rendering before\n // continuing positioning\n // TODO: why are we redrawing multiple times now with this?\n // I guess autoMargin doesn't like being post-promise?\n function positionCB() {\n var bb;\n var innerThickness = thickPx + outlinewidth / 2;\n if(ticklabelposition.indexOf('inside') === -1) {\n bb = Drawing.bBox(axLayer.node());\n innerThickness += isVertical ? bb.width : bb.height;\n }\n\n titleEl = titleCont.select('text');\n\n var titleWidth = 0;\n\n var topSideVertical = isVertical && titleSide === 'top';\n var rightSideHorizontal = !isVertical && titleSide === 'right';\n\n var moveY = 0;\n\n if(titleEl.node() && !titleEl.classed(cn.jsPlaceholder)) {\n var _titleHeight;\n\n var mathJaxNode = titleCont.select('.h' + ax._id + 'title-math-group').node();\n if(mathJaxNode && (\n (isVertical && topOrBottom) ||\n (!isVertical && !topOrBottom)\n )) {\n bb = Drawing.bBox(mathJaxNode);\n titleWidth = bb.width;\n _titleHeight = bb.height;\n } else {\n // note: the formula below works for all title sides,\n // (except for top/bottom mathjax, above)\n // but the weird gs.l is because the titleunshift\n // transform gets removed by Drawing.bBox\n bb = Drawing.bBox(titleCont.node());\n titleWidth = bb.right - gs.l - (isVertical ? uPx : vPx);\n _titleHeight = bb.bottom - gs.t - (isVertical ? vPx : uPx);\n\n if(\n !isVertical && titleSide === 'top'\n ) {\n innerThickness += bb.height;\n moveY = bb.height;\n }\n }\n\n if(rightSideHorizontal) {\n titleEl.attr('transform', strTranslate(titleWidth / 2 + titleFontSize / 2, 0));\n\n titleWidth *= 2;\n }\n\n innerThickness = Math.max(innerThickness,\n isVertical ? titleWidth : _titleHeight\n );\n }\n\n var outerThickness = (isVertical ?\n xpad :\n ypad\n ) * 2 + innerThickness + borderwidth + outlinewidth / 2;\n\n var hColorbarMoveTitle = 0;\n if(!isVertical && title.text && yanchor === 'bottom' && optsY <= 0) {\n hColorbarMoveTitle = outerThickness / 2;\n\n outerThickness += hColorbarMoveTitle;\n moveY += hColorbarMoveTitle;\n }\n fullLayout._hColorbarMoveTitle = hColorbarMoveTitle;\n fullLayout._hColorbarMoveCBTitle = moveY;\n\n var extraW = borderwidth + outlinewidth;\n\n g.select('.' + cn.cbbg)\n .attr('x', (isVertical ? uPx : vPx) - extraW / 2 - (isVertical ? xpad : 0))\n .attr('y', (isVertical ? vPx : uPx) - (isVertical ? lenPx : ypad + moveY - hColorbarMoveTitle))\n .attr(isVertical ? 'width' : 'height', Math.max(outerThickness - hColorbarMoveTitle, 2))\n .attr(isVertical ? 'height' : 'width', Math.max(lenPx + extraW, 2))\n .call(Color.fill, bgcolor)\n .call(Color.stroke, opts.bordercolor)\n .style('stroke-width', borderwidth);\n\n var moveX = rightSideHorizontal ? Math.max(titleWidth - 10, 0) : 0;\n\n g.selectAll('.' + cn.cboutline)\n .attr('x', (isVertical ? uPx : vPx + xpad) + moveX)\n .attr('y', (isVertical ? vPx + ypad - lenPx : uPx) + (topSideVertical ? titleHeight : 0))\n .attr(isVertical ? 'width' : 'height', Math.max(thickPx, 2))\n .attr(isVertical ? 'height' : 'width', Math.max(lenPx - (isVertical ?\n 2 * ypad + titleHeight :\n 2 * xpad + moveX\n ), 2))\n .call(Color.stroke, opts.outlinecolor)\n .style({\n fill: 'none',\n 'stroke-width': outlinewidth\n });\n\n g.attr('transform', strTranslate(\n gs.l - (isVertical ? xRatio * outerThickness : 0),\n gs.t - (isVertical ? 0 : (1 - yRatio) * outerThickness - moveY)\n ));\n\n if(!isVertical && (\n borderwidth || (\n tinycolor(bgcolor).getAlpha() &&\n !tinycolor.equals(fullLayout.paper_bgcolor, bgcolor)\n )\n )) {\n // for horizontal colorbars when there is a border line or having different background color\n // hide/adjust x positioning for the first/last tick labels if they go outside the border\n var tickLabels = axLayer.selectAll('text');\n var numTicks = tickLabels[0].length;\n\n var border = g.select('.' + cn.cbbg).node();\n var oBb = Drawing.bBox(border);\n var oTr = Drawing.getTranslate(g);\n\n var TEXTPAD = 2;\n\n tickLabels.each(function(d, i) {\n var first = 0;\n var last = numTicks - 1;\n if(i === first || i === last) {\n var iBb = Drawing.bBox(this);\n var iTr = Drawing.getTranslate(this);\n var deltaX;\n\n if(i === last) {\n var iRight = iBb.right + iTr.x;\n var oRight = oBb.right + oTr.x + vPx - borderwidth - TEXTPAD + optsX;\n\n deltaX = oRight - iRight;\n if(deltaX > 0) deltaX = 0;\n } else if(i === first) {\n var iLeft = iBb.left + iTr.x;\n var oLeft = oBb.left + oTr.x + vPx + borderwidth + TEXTPAD;\n\n deltaX = oLeft - iLeft;\n if(deltaX < 0) deltaX = 0;\n }\n\n if(deltaX) {\n if(numTicks < 3) { // adjust position\n this.setAttribute('transform',\n 'translate(' + deltaX + ',0) ' +\n this.getAttribute('transform')\n );\n } else { // hide\n this.setAttribute('visibility', 'hidden');\n }\n }\n }\n });\n }\n\n // auto margin adjustment\n var marginOpts = {};\n var lFrac = FROM_TL[xanchor];\n var rFrac = FROM_BR[xanchor];\n var tFrac = FROM_TL[yanchor];\n var bFrac = FROM_BR[yanchor];\n\n var extraThickness = outerThickness - thickPx;\n if(isVertical) {\n if(lenmode === 'pixels') {\n marginOpts.y = optsY;\n marginOpts.t = lenPx * tFrac;\n marginOpts.b = lenPx * bFrac;\n } else {\n marginOpts.t = marginOpts.b = 0;\n marginOpts.yt = optsY + len * tFrac;\n marginOpts.yb = optsY - len * bFrac;\n }\n\n if(thicknessmode === 'pixels') {\n marginOpts.x = optsX;\n marginOpts.l = outerThickness * lFrac;\n marginOpts.r = outerThickness * rFrac;\n } else {\n marginOpts.l = extraThickness * lFrac;\n marginOpts.r = extraThickness * rFrac;\n marginOpts.xl = optsX - thickness * lFrac;\n marginOpts.xr = optsX + thickness * rFrac;\n }\n } else { // horizontal colorbars\n if(lenmode === 'pixels') {\n marginOpts.x = optsX;\n marginOpts.l = lenPx * lFrac;\n marginOpts.r = lenPx * rFrac;\n } else {\n marginOpts.l = marginOpts.r = 0;\n marginOpts.xl = optsX + len * lFrac;\n marginOpts.xr = optsX - len * rFrac;\n }\n\n if(thicknessmode === 'pixels') {\n marginOpts.y = 1 - optsY;\n marginOpts.t = outerThickness * tFrac;\n marginOpts.b = outerThickness * bFrac;\n } else {\n marginOpts.t = extraThickness * tFrac;\n marginOpts.b = extraThickness * bFrac;\n marginOpts.yt = optsY - thickness * tFrac;\n marginOpts.yb = optsY + thickness * bFrac;\n }\n }\n\n Plots.autoMargin(gd, opts._id, marginOpts);\n }\n\n return Lib.syncOrAsync([\n Plots.previousPromises,\n drawDummyTitle,\n drawAxis,\n drawCbTitle,\n Plots.previousPromises,\n positionCB\n ], gd);\n}\n\nfunction makeEditable(g, opts, gd) {\n var isVertical = opts.orientation === 'v';\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var t0, xf, yf;\n\n dragElement.init({\n element: g.node(),\n gd: gd,\n prepFn: function() {\n t0 = g.attr('transform');\n setCursor(g);\n },\n moveFn: function(dx, dy) {\n g.attr('transform', t0 + strTranslate(dx, dy));\n\n xf = dragElement.align(\n (isVertical ? opts._uFrac : opts._vFrac) + (dx / gs.w),\n isVertical ? opts._thickFrac : opts._lenFrac,\n 0, 1, opts.xanchor);\n yf = dragElement.align(\n (isVertical ? opts._vFrac : (1 - opts._uFrac)) - (dy / gs.h),\n isVertical ? opts._lenFrac : opts._thickFrac,\n 0, 1, opts.yanchor);\n\n var csr = dragElement.getCursor(xf, yf, opts.xanchor, opts.yanchor);\n setCursor(g, csr);\n },\n doneFn: function() {\n setCursor(g);\n\n if(xf !== undefined && yf !== undefined) {\n var update = {};\n update[opts._propPrefix + 'x'] = xf;\n update[opts._propPrefix + 'y'] = yf;\n if(opts._traceIndex !== undefined) {\n Registry.call('_guiRestyle', gd, update, opts._traceIndex);\n } else {\n Registry.call('_guiRelayout', gd, update);\n }\n }\n }\n });\n}\n\nfunction calcLevels(gd, opts, zrange) {\n var levelsIn = opts._levels;\n var lineLevels = [];\n var fillLevels = [];\n var l;\n var i;\n\n var l0 = levelsIn.end + levelsIn.size / 100;\n var ls = levelsIn.size;\n var zr0 = (1.001 * zrange[0] - 0.001 * zrange[1]);\n var zr1 = (1.001 * zrange[1] - 0.001 * zrange[0]);\n\n for(i = 0; i < 1e5; i++) {\n l = levelsIn.start + i * ls;\n if(ls > 0 ? (l >= l0) : (l <= l0)) break;\n if(l > zr0 && l < zr1) lineLevels.push(l);\n }\n\n if(opts._fillgradient) {\n fillLevels = [0];\n } else if(typeof opts._fillcolor === 'function') {\n var fillLevelsIn = opts._filllevels;\n\n if(fillLevelsIn) {\n l0 = fillLevelsIn.end + fillLevelsIn.size / 100;\n ls = fillLevelsIn.size;\n for(i = 0; i < 1e5; i++) {\n l = fillLevelsIn.start + i * ls;\n if(ls > 0 ? (l >= l0) : (l <= l0)) break;\n if(l > zrange[0] && l < zrange[1]) fillLevels.push(l);\n }\n } else {\n fillLevels = lineLevels.map(function(v) {\n return v - levelsIn.size / 2;\n });\n fillLevels.push(fillLevels[fillLevels.length - 1] + levelsIn.size);\n }\n } else if(opts._fillcolor && typeof opts._fillcolor === 'string') {\n // doesn't matter what this value is, with a single value\n // we'll make a single fill rect covering the whole bar\n fillLevels = [0];\n }\n\n if(levelsIn.size < 0) {\n lineLevels.reverse();\n fillLevels.reverse();\n }\n\n return {line: lineLevels, fill: fillLevels};\n}\n\nfunction mockColorBarAxis(gd, opts, zrange) {\n var fullLayout = gd._fullLayout;\n\n var isVertical = opts.orientation === 'v';\n\n var cbAxisIn = {\n type: 'linear',\n range: zrange,\n tickmode: opts.tickmode,\n nticks: opts.nticks,\n tick0: opts.tick0,\n dtick: opts.dtick,\n tickvals: opts.tickvals,\n ticktext: opts.ticktext,\n ticks: opts.ticks,\n ticklen: opts.ticklen,\n tickwidth: opts.tickwidth,\n tickcolor: opts.tickcolor,\n showticklabels: opts.showticklabels,\n ticklabelposition: opts.ticklabelposition,\n ticklabeloverflow: opts.ticklabeloverflow,\n ticklabelstep: opts.ticklabelstep,\n tickfont: opts.tickfont,\n tickangle: opts.tickangle,\n tickformat: opts.tickformat,\n exponentformat: opts.exponentformat,\n minexponent: opts.minexponent,\n separatethousands: opts.separatethousands,\n showexponent: opts.showexponent,\n showtickprefix: opts.showtickprefix,\n tickprefix: opts.tickprefix,\n showticksuffix: opts.showticksuffix,\n ticksuffix: opts.ticksuffix,\n title: opts.title,\n showline: true,\n anchor: 'free',\n side: isVertical ? 'right' : 'bottom',\n position: 1\n };\n\n var letter = isVertical ? 'y' : 'x';\n\n var cbAxisOut = {\n type: 'linear',\n _id: letter + opts._id\n };\n\n var axisOptions = {\n letter: letter,\n font: fullLayout.font,\n noHover: true,\n noTickson: true,\n noTicklabelmode: true,\n calendar: fullLayout.calendar // not really necessary (yet?)\n };\n\n function coerce(attr, dflt) {\n return Lib.coerce(cbAxisIn, cbAxisOut, axisLayoutAttrs, attr, dflt);\n }\n\n handleAxisDefaults(cbAxisIn, cbAxisOut, coerce, axisOptions, fullLayout);\n handleAxisPositionDefaults(cbAxisIn, cbAxisOut, coerce, axisOptions);\n\n return cbAxisOut;\n}\n\nmodule.exports = {\n draw: draw\n};\n\n},{\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/extend\":505,\"../../lib/setcursor\":536,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/axis_defaults\":568,\"../../plots/cartesian/layout_attributes\":579,\"../../plots/cartesian/position_defaults\":582,\"../../plots/plots\":628,\"../../registry\":647,\"../color\":367,\"../colorscale/helpers\":378,\"../dragelement\":386,\"../drawing\":389,\"../titles\":476,\"./constants\":369,\"@plotly/d3\":58,\"tinycolor2\":313}],372:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n\nmodule.exports = function hasColorbar(container) {\n return Lib.isPlainObject(container.colorbar);\n};\n\n},{\"../../lib\":515}],373:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'colorbar',\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw').draw,\n hasColorbar: _dereq_('./has_colorbar')\n};\n\n},{\"./attributes\":368,\"./defaults\":370,\"./draw\":371,\"./has_colorbar\":372}],374:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorbarAttrs = _dereq_('../colorbar/attributes');\nvar counterRegex = _dereq_('../../lib/regex').counter;\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar palettes = _dereq_('./scales.js').scales;\nvar paletteStr = sortObjectKeys(palettes);\n\nfunction code(s) {\n return '`' + s + '`';\n}\n\n/**\n * Make colorscale attribute declarations for\n *\n * - colorscale,\n * - (c|z)auto, (c|z)min, (c|z)max,\n * - autocolorscale, reversescale,\n * - showscale (optionally)\n * - color (optionally)\n *\n * @param {string} context (dflt: '', i.e. from trace root):\n * the container this is in ('', *marker*, *marker.line* etc)\n *\n * @param {object} opts:\n * - cLetter {string} (dflt: 'c'):\n * leading letter for 'min', 'max and 'auto' attribute (either 'z' or 'c')\n *\n * - colorAttr {string} (dflt: 'z' if `cLetter: 'z'`, 'color' if `cLetter: 'c'`):\n * (for descriptions) sets the name of the color attribute that maps to the colorscale.\n *\n * N.B. if `colorAttr: 'color'`, we include the `color` declaration here.\n *\n * - onlyIfNumerical {string} (dflt: false' if `cLetter: 'z'`, true if `cLetter: 'c'`):\n * (for descriptions) set to true if colorscale attribute only\n *\n * - colorscaleDflt {string}:\n * overrides the colorscale dflt\n *\n * - autoColorDflt {boolean} (dflt true):\n * normally autocolorscale.dflt is `true`, but pass `false` to override\n *\n * - noScale {boolean} (dflt: true if `context: 'marker.line'`, false otherwise):\n * set to `false` to not include showscale attribute (e.g. for 'marker.line')\n *\n * - showScaleDflt {boolean} (dflt: true if `cLetter: 'z'`, false otherwise)\n *\n * - editTypeOverride {boolean} (dflt: ''):\n * most of these attributes already require a recalc, but the ones that do not\n * have editType *style* or *plot* unless you override (presumably with *calc*)\n *\n * - anim {boolean) (dflt: undefined): is 'color' animatable?\n *\n * @return {object}\n */\nmodule.exports = function colorScaleAttrs(context, opts) {\n context = context || '';\n opts = opts || {};\n\n var cLetter = opts.cLetter || 'c';\n var onlyIfNumerical = ('onlyIfNumerical' in opts) ? opts.onlyIfNumerical : Boolean(context);\n var noScale = ('noScale' in opts) ? opts.noScale : context === 'marker.line';\n var showScaleDflt = ('showScaleDflt' in opts) ? opts.showScaleDflt : cLetter === 'z';\n var colorscaleDflt = typeof opts.colorscaleDflt === 'string' ? palettes[opts.colorscaleDflt] : null;\n var editTypeOverride = opts.editTypeOverride || '';\n var contextHead = context ? (context + '.') : '';\n\n var colorAttr, colorAttrFull;\n\n if('colorAttr' in opts) {\n colorAttr = opts.colorAttr;\n colorAttrFull = opts.colorAttr;\n } else {\n colorAttr = {z: 'z', c: 'color'}[cLetter];\n colorAttrFull = 'in ' + code(contextHead + colorAttr);\n }\n\n var effectDesc = onlyIfNumerical ?\n ' Has an effect only if ' + colorAttrFull + ' is set to a numerical array.' :\n '';\n\n var auto = cLetter + 'auto';\n var min = cLetter + 'min';\n var max = cLetter + 'max';\n var mid = cLetter + 'mid';\n var autoFull = code(contextHead + auto);\n var minFull = code(contextHead + min);\n var maxFull = code(contextHead + max);\n var minmaxFull = minFull + ' and ' + maxFull;\n var autoImpliedEdits = {};\n autoImpliedEdits[min] = autoImpliedEdits[max] = undefined;\n var minmaxImpliedEdits = {};\n minmaxImpliedEdits[auto] = false;\n\n var attrs = {};\n\n if(colorAttr === 'color') {\n attrs.color = {\n valType: 'color',\n arrayOk: true,\n editType: editTypeOverride || 'style',\n };\n\n if(opts.anim) {\n attrs.color.anim = true;\n }\n }\n\n attrs[auto] = {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n impliedEdits: autoImpliedEdits,\n };\n\n attrs[min] = {\n valType: 'number',\n dflt: null,\n editType: editTypeOverride || 'plot',\n impliedEdits: minmaxImpliedEdits,\n };\n\n attrs[max] = {\n valType: 'number',\n dflt: null,\n editType: editTypeOverride || 'plot',\n impliedEdits: minmaxImpliedEdits,\n };\n\n attrs[mid] = {\n valType: 'number',\n dflt: null,\n editType: 'calc',\n impliedEdits: autoImpliedEdits,\n };\n\n attrs.colorscale = {\n valType: 'colorscale',\n editType: 'calc',\n dflt: colorscaleDflt,\n impliedEdits: {autocolorscale: false},\n };\n\n attrs.autocolorscale = {\n valType: 'boolean',\n // gets overrode in 'heatmap' & 'surface' for backwards comp.\n dflt: opts.autoColorDflt === false ? false : true,\n editType: 'calc',\n impliedEdits: {colorscale: undefined},\n };\n\n attrs.reversescale = {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n };\n\n if(!noScale) {\n attrs.showscale = {\n valType: 'boolean',\n dflt: showScaleDflt,\n editType: 'calc',\n };\n\n attrs.colorbar = colorbarAttrs;\n }\n\n if(!opts.noColorAxis) {\n attrs.coloraxis = {\n valType: 'subplotid',\n regex: counterRegex('coloraxis'),\n dflt: null,\n editType: 'calc',\n };\n }\n\n return attrs;\n};\n\n},{\"../../lib/regex\":532,\"../../lib/sort_object_keys\":538,\"../colorbar/attributes\":368,\"./scales.js\":382}],375:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar extractOpts = _dereq_('./helpers').extractOpts;\n\nmodule.exports = function calc(gd, trace, opts) {\n var fullLayout = gd._fullLayout;\n var vals = opts.vals;\n var containerStr = opts.containerStr;\n\n var container = containerStr ?\n Lib.nestedProperty(trace, containerStr).get() :\n trace;\n\n var cOpts = extractOpts(container);\n var auto = cOpts.auto !== false;\n var min = cOpts.min;\n var max = cOpts.max;\n var mid = cOpts.mid;\n\n var minVal = function() { return Lib.aggNums(Math.min, null, vals); };\n var maxVal = function() { return Lib.aggNums(Math.max, null, vals); };\n\n if(min === undefined) {\n min = minVal();\n } else if(auto) {\n if(container._colorAx && isNumeric(min)) {\n min = Math.min(min, minVal());\n } else {\n min = minVal();\n }\n }\n\n if(max === undefined) {\n max = maxVal();\n } else if(auto) {\n if(container._colorAx && isNumeric(max)) {\n max = Math.max(max, maxVal());\n } else {\n max = maxVal();\n }\n }\n\n if(auto && mid !== undefined) {\n if(max - mid > mid - min) {\n min = mid - (max - mid);\n } else if(max - mid < mid - min) {\n max = mid + (mid - min);\n }\n }\n\n if(min === max) {\n min -= 0.5;\n max += 0.5;\n }\n\n cOpts._sync('min', min);\n cOpts._sync('max', max);\n\n if(cOpts.autocolorscale) {\n var scl;\n if(min * max < 0) scl = fullLayout.colorscale.diverging;\n else if(min >= 0) scl = fullLayout.colorscale.sequential;\n else scl = fullLayout.colorscale.sequentialminus;\n cOpts._sync('colorscale', scl);\n }\n};\n\n},{\"../../lib\":515,\"./helpers\":378,\"fast-isnumeric\":190}],376:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar hasColorscale = _dereq_('./helpers').hasColorscale;\nvar extractOpts = _dereq_('./helpers').extractOpts;\n\nmodule.exports = function crossTraceDefaults(fullData, fullLayout) {\n function replace(cont, k) {\n var val = cont['_' + k];\n if(val !== undefined) {\n cont[k] = val;\n }\n }\n\n function relinkColorAttrs(outerCont, cbOpt) {\n var cont = cbOpt.container ?\n Lib.nestedProperty(outerCont, cbOpt.container).get() :\n outerCont;\n\n if(cont) {\n if(cont.coloraxis) {\n // stash ref to color axis\n cont._colorAx = fullLayout[cont.coloraxis];\n } else {\n var cOpts = extractOpts(cont);\n var isAuto = cOpts.auto;\n\n if(isAuto || cOpts.min === undefined) {\n replace(cont, cbOpt.min);\n }\n if(isAuto || cOpts.max === undefined) {\n replace(cont, cbOpt.max);\n }\n if(cOpts.autocolorscale) {\n replace(cont, 'colorscale');\n }\n }\n }\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n var cbOpts = trace._module.colorbar;\n\n if(cbOpts) {\n if(Array.isArray(cbOpts)) {\n for(var j = 0; j < cbOpts.length; j++) {\n relinkColorAttrs(trace, cbOpts[j]);\n }\n } else {\n relinkColorAttrs(trace, cbOpts);\n }\n }\n\n if(hasColorscale(trace, 'marker.line')) {\n relinkColorAttrs(trace, {\n container: 'marker.line',\n min: 'cmin',\n max: 'cmax'\n });\n }\n }\n\n for(var k in fullLayout._colorAxes) {\n relinkColorAttrs(fullLayout[k], {min: 'cmin', max: 'cmax'});\n }\n};\n\n},{\"../../lib\":515,\"./helpers\":378}],377:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar hasColorbar = _dereq_('../colorbar/has_colorbar');\nvar colorbarDefaults = _dereq_('../colorbar/defaults');\n\nvar isValidScale = _dereq_('./scales').isValid;\nvar traceIs = _dereq_('../../registry').traceIs;\n\nfunction npMaybe(parentCont, prefix) {\n var containerStr = prefix.slice(0, prefix.length - 1);\n return prefix ?\n Lib.nestedProperty(parentCont, containerStr).get() || {} :\n parentCont;\n}\n\n/**\n * Colorscale / colorbar default handler\n *\n * @param {object} parentContIn : user (input) parent container (e.g. trace or layout coloraxis object)\n * @param {object} parentContOut : full parent container\n * @param {object} layout : (full) layout object\n * @param {fn} coerce : Lib.coerce wrapper\n * @param {object} opts :\n * - prefix {string} : attr string prefix to colorscale container from parent root\n * - cLetter {string} : 'c or 'z' color letter\n */\nmodule.exports = function colorScaleDefaults(parentContIn, parentContOut, layout, coerce, opts) {\n var prefix = opts.prefix;\n var cLetter = opts.cLetter;\n var inTrace = '_module' in parentContOut;\n var containerIn = npMaybe(parentContIn, prefix);\n var containerOut = npMaybe(parentContOut, prefix);\n var template = npMaybe(parentContOut._template || {}, prefix) || {};\n\n // colorScaleDefaults wrapper called if-ever we need to reset the colorscale\n // attributes for containers that were linked to invalid color axes\n var thisFn = function() {\n delete parentContIn.coloraxis;\n delete parentContOut.coloraxis;\n return colorScaleDefaults(parentContIn, parentContOut, layout, coerce, opts);\n };\n\n if(inTrace) {\n var colorAxes = layout._colorAxes || {};\n var colorAx = coerce(prefix + 'coloraxis');\n\n if(colorAx) {\n var colorbarVisuals = (\n traceIs(parentContOut, 'contour') &&\n Lib.nestedProperty(parentContOut, 'contours.coloring').get()\n ) || 'heatmap';\n\n var stash = colorAxes[colorAx];\n\n if(stash) {\n stash[2].push(thisFn);\n\n if(stash[0] !== colorbarVisuals) {\n stash[0] = false;\n Lib.warn([\n 'Ignoring coloraxis:', colorAx, 'setting',\n 'as it is linked to incompatible colorscales.'\n ].join(' '));\n }\n } else {\n // stash:\n // - colorbar visual 'type'\n // - colorbar options to help in Colorbar.draw\n // - list of colorScaleDefaults wrapper functions\n colorAxes[colorAx] = [colorbarVisuals, parentContOut, [thisFn]];\n }\n return;\n }\n }\n\n var minIn = containerIn[cLetter + 'min'];\n var maxIn = containerIn[cLetter + 'max'];\n var validMinMax = isNumeric(minIn) && isNumeric(maxIn) && (minIn < maxIn);\n var auto = coerce(prefix + cLetter + 'auto', !validMinMax);\n\n if(auto) {\n coerce(prefix + cLetter + 'mid');\n } else {\n coerce(prefix + cLetter + 'min');\n coerce(prefix + cLetter + 'max');\n }\n\n // handles both the trace case (autocolorscale is false by default) and\n // the marker and marker.line case (autocolorscale is true by default)\n var sclIn = containerIn.colorscale;\n var sclTemplate = template.colorscale;\n var autoColorscaleDflt;\n if(sclIn !== undefined) autoColorscaleDflt = !isValidScale(sclIn);\n if(sclTemplate !== undefined) autoColorscaleDflt = !isValidScale(sclTemplate);\n coerce(prefix + 'autocolorscale', autoColorscaleDflt);\n\n coerce(prefix + 'colorscale');\n coerce(prefix + 'reversescale');\n\n if(prefix !== 'marker.line.') {\n // handles both the trace case where the dflt is listed in attributes and\n // the marker case where the dflt is determined by hasColorbar\n var showScaleDflt;\n if(prefix && inTrace) showScaleDflt = hasColorbar(containerIn);\n\n var showScale = coerce(prefix + 'showscale', showScaleDflt);\n if(showScale) {\n if(prefix && template) containerOut._template = template;\n colorbarDefaults(containerIn, containerOut, layout);\n }\n }\n};\n\n},{\"../../lib\":515,\"../../registry\":647,\"../colorbar/defaults\":370,\"../colorbar/has_colorbar\":372,\"./scales\":382,\"fast-isnumeric\":190}],378:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\n\nvar isValidScale = _dereq_('./scales').isValid;\n\nfunction hasColorscale(trace, containerStr, colorKey) {\n var container = containerStr ?\n Lib.nestedProperty(trace, containerStr).get() || {} :\n trace;\n var color = container[colorKey || 'color'];\n\n var isArrayWithOneNumber = false;\n if(Lib.isArrayOrTypedArray(color)) {\n for(var i = 0; i < color.length; i++) {\n if(isNumeric(color[i])) {\n isArrayWithOneNumber = true;\n break;\n }\n }\n }\n\n return (\n Lib.isPlainObject(container) && (\n isArrayWithOneNumber ||\n container.showscale === true ||\n (isNumeric(container.cmin) && isNumeric(container.cmax)) ||\n isValidScale(container.colorscale) ||\n Lib.isPlainObject(container.colorbar)\n )\n );\n}\n\nvar constantAttrs = ['showscale', 'autocolorscale', 'colorscale', 'reversescale', 'colorbar'];\nvar letterAttrs = ['min', 'max', 'mid', 'auto'];\n\n/**\n * Extract 'c' / 'z', trace / color axis colorscale options\n *\n * Note that it would be nice to replace all z* with c* equivalents in v3\n *\n * @param {object} cont : attribute container\n * @return {object}:\n * - min: cmin or zmin\n * - max: cmax or zmax\n * - mid: cmid or zmid\n * - auto: cauto or zauto\n * - *scale: *scale attrs\n * - colorbar: colorbar\n * - _sync: function syncing attr and underscore dual (useful when calc'ing min/max)\n */\nfunction extractOpts(cont) {\n var colorAx = cont._colorAx;\n var cont2 = colorAx ? colorAx : cont;\n var out = {};\n var cLetter;\n var i, k;\n\n for(i = 0; i < constantAttrs.length; i++) {\n k = constantAttrs[i];\n out[k] = cont2[k];\n }\n\n if(colorAx) {\n cLetter = 'c';\n for(i = 0; i < letterAttrs.length; i++) {\n k = letterAttrs[i];\n out[k] = cont2['c' + k];\n }\n } else {\n var k2;\n for(i = 0; i < letterAttrs.length; i++) {\n k = letterAttrs[i];\n k2 = 'c' + k;\n if(k2 in cont2) {\n out[k] = cont2[k2];\n continue;\n }\n k2 = 'z' + k;\n if(k2 in cont2) {\n out[k] = cont2[k2];\n }\n }\n cLetter = k2.charAt(0);\n }\n\n out._sync = function(k, v) {\n var k2 = letterAttrs.indexOf(k) !== -1 ? cLetter + k : k;\n cont2[k2] = cont2['_' + k2] = v;\n };\n\n return out;\n}\n\n/**\n * Extract colorscale into numeric domain and color range.\n *\n * @param {object} cont colorscale container (e.g. trace, marker)\n * - colorscale {array of arrays}\n * - cmin/zmin {number}\n * - cmax/zmax {number}\n * - reversescale {boolean}\n *\n * @return {object}\n * - domain {array}\n * - range {array}\n */\nfunction extractScale(cont) {\n var cOpts = extractOpts(cont);\n var cmin = cOpts.min;\n var cmax = cOpts.max;\n\n var scl = cOpts.reversescale ?\n flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n\n var N = scl.length;\n var domain = new Array(N);\n var range = new Array(N);\n\n for(var i = 0; i < N; i++) {\n var si = scl[i];\n domain[i] = cmin + si[0] * (cmax - cmin);\n range[i] = si[1];\n }\n\n return {domain: domain, range: range};\n}\n\nfunction flipScale(scl) {\n var N = scl.length;\n var sclNew = new Array(N);\n\n for(var i = N - 1, j = 0; i >= 0; i--, j++) {\n var si = scl[i];\n sclNew[j] = [1 - si[0], si[1]];\n }\n return sclNew;\n}\n\n/**\n * General colorscale function generator.\n *\n * @param {object} specs output of Colorscale.extractScale or precomputed domain, range.\n * - domain {array}\n * - range {array}\n *\n * @param {object} opts\n * - noNumericCheck {boolean} if true, scale func bypasses numeric checks\n * - returnArray {boolean} if true, scale func return 4-item array instead of color strings\n *\n * @return {function}\n */\nfunction makeColorScaleFunc(specs, opts) {\n opts = opts || {};\n\n var domain = specs.domain;\n var range = specs.range;\n var N = range.length;\n var _range = new Array(N);\n\n for(var i = 0; i < N; i++) {\n var rgba = tinycolor(range[i]).toRgb();\n _range[i] = [rgba.r, rgba.g, rgba.b, rgba.a];\n }\n\n var _sclFunc = d3.scale.linear()\n .domain(domain)\n .range(_range)\n .clamp(true);\n\n var noNumericCheck = opts.noNumericCheck;\n var returnArray = opts.returnArray;\n var sclFunc;\n\n if(noNumericCheck && returnArray) {\n sclFunc = _sclFunc;\n } else if(noNumericCheck) {\n sclFunc = function(v) {\n return colorArray2rbga(_sclFunc(v));\n };\n } else if(returnArray) {\n sclFunc = function(v) {\n if(isNumeric(v)) return _sclFunc(v);\n else if(tinycolor(v).isValid()) return v;\n else return Color.defaultLine;\n };\n } else {\n sclFunc = function(v) {\n if(isNumeric(v)) return colorArray2rbga(_sclFunc(v));\n else if(tinycolor(v).isValid()) return v;\n else return Color.defaultLine;\n };\n }\n\n // colorbar draw looks into the d3 scale closure for domain and range\n sclFunc.domain = _sclFunc.domain;\n sclFunc.range = function() { return range; };\n\n return sclFunc;\n}\n\nfunction makeColorScaleFuncFromTrace(trace, opts) {\n return makeColorScaleFunc(extractScale(trace), opts);\n}\n\nfunction colorArray2rbga(colorArray) {\n var colorObj = {\n r: colorArray[0],\n g: colorArray[1],\n b: colorArray[2],\n a: colorArray[3]\n };\n\n return tinycolor(colorObj).toRgbString();\n}\n\nmodule.exports = {\n hasColorscale: hasColorscale,\n extractOpts: extractOpts,\n extractScale: extractScale,\n flipScale: flipScale,\n makeColorScaleFunc: makeColorScaleFunc,\n makeColorScaleFuncFromTrace: makeColorScaleFuncFromTrace\n};\n\n},{\"../../lib\":515,\"../color\":367,\"./scales\":382,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"tinycolor2\":313}],379:[function(_dereq_,module,exports){\n'use strict';\n\nvar scales = _dereq_('./scales');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'colorscale',\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n handleDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('./cross_trace_defaults'),\n\n calc: _dereq_('./calc'),\n\n // ./scales.js is required in lib/coerce.js ;\n // it needs to be a separate module to avoid circular a dependency\n scales: scales.scales,\n defaultScale: scales.defaultScale,\n getScale: scales.get,\n isValidScale: scales.isValid,\n\n hasColorscale: helpers.hasColorscale,\n extractOpts: helpers.extractOpts,\n extractScale: helpers.extractScale,\n flipScale: helpers.flipScale,\n makeColorScaleFunc: helpers.makeColorScaleFunc,\n makeColorScaleFuncFromTrace: helpers.makeColorScaleFuncFromTrace\n};\n\n},{\"./attributes\":374,\"./calc\":375,\"./cross_trace_defaults\":376,\"./defaults\":377,\"./helpers\":378,\"./layout_attributes\":380,\"./layout_defaults\":381,\"./scales\":382}],380:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar colorScaleAttrs = _dereq_('./attributes');\nvar scales = _dereq_('./scales').scales;\n\nvar msg = 'Note that `autocolorscale` must be true for this attribute to work.';\n\nmodule.exports = {\n editType: 'calc',\n\n colorscale: {\n editType: 'calc',\n\n sequential: {\n valType: 'colorscale',\n dflt: scales.Reds,\n editType: 'calc',\n },\n sequentialminus: {\n valType: 'colorscale',\n dflt: scales.Blues,\n editType: 'calc',\n },\n diverging: {\n valType: 'colorscale',\n dflt: scales.RdBu,\n editType: 'calc',\n }\n },\n\n coloraxis: extendFlat({\n // not really a 'subplot' attribute container,\n // but this is the flag we use to denote attributes that\n // support yaxis, yaxis2, yaxis3, ... counters\n _isSubplotObj: true,\n editType: 'calc',\n }, colorScaleAttrs('', {\n colorAttr: 'corresponding trace color array(s)',\n noColorAxis: true,\n showScaleDflt: true\n }))\n};\n\n},{\"../../lib/extend\":505,\"./attributes\":374,\"./scales\":382}],381:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar colorScaleAttrs = _dereq_('./layout_attributes');\nvar colorScaleDefaults = _dereq_('./defaults');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, colorScaleAttrs, attr, dflt);\n }\n\n coerce('colorscale.sequential');\n coerce('colorscale.sequentialminus');\n coerce('colorscale.diverging');\n\n var colorAxes = layoutOut._colorAxes;\n var colorAxIn, colorAxOut;\n\n function coerceAx(attr, dflt) {\n return Lib.coerce(colorAxIn, colorAxOut, colorScaleAttrs.coloraxis, attr, dflt);\n }\n\n for(var k in colorAxes) {\n var stash = colorAxes[k];\n\n if(stash[0]) {\n colorAxIn = layoutIn[k] || {};\n colorAxOut = Template.newContainer(layoutOut, k, 'coloraxis');\n colorAxOut._name = k;\n colorScaleDefaults(colorAxIn, colorAxOut, layoutOut, coerceAx, {prefix: '', cLetter: 'c'});\n } else {\n // re-coerce colorscale attributes w/o coloraxis\n for(var i = 0; i < stash[2].length; i++) {\n stash[2][i]();\n }\n delete layoutOut._colorAxes[k];\n }\n }\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"./defaults\":377,\"./layout_attributes\":380}],382:[function(_dereq_,module,exports){\n'use strict';\n\nvar tinycolor = _dereq_('tinycolor2');\n\nvar scales = {\n 'Greys': [\n [0, 'rgb(0,0,0)'], [1, 'rgb(255,255,255)']\n ],\n\n 'YlGnBu': [\n [0, 'rgb(8,29,88)'], [0.125, 'rgb(37,52,148)'],\n [0.25, 'rgb(34,94,168)'], [0.375, 'rgb(29,145,192)'],\n [0.5, 'rgb(65,182,196)'], [0.625, 'rgb(127,205,187)'],\n [0.75, 'rgb(199,233,180)'], [0.875, 'rgb(237,248,217)'],\n [1, 'rgb(255,255,217)']\n ],\n\n 'Greens': [\n [0, 'rgb(0,68,27)'], [0.125, 'rgb(0,109,44)'],\n [0.25, 'rgb(35,139,69)'], [0.375, 'rgb(65,171,93)'],\n [0.5, 'rgb(116,196,118)'], [0.625, 'rgb(161,217,155)'],\n [0.75, 'rgb(199,233,192)'], [0.875, 'rgb(229,245,224)'],\n [1, 'rgb(247,252,245)']\n ],\n\n 'YlOrRd': [\n [0, 'rgb(128,0,38)'], [0.125, 'rgb(189,0,38)'],\n [0.25, 'rgb(227,26,28)'], [0.375, 'rgb(252,78,42)'],\n [0.5, 'rgb(253,141,60)'], [0.625, 'rgb(254,178,76)'],\n [0.75, 'rgb(254,217,118)'], [0.875, 'rgb(255,237,160)'],\n [1, 'rgb(255,255,204)']\n ],\n\n 'Bluered': [\n [0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']\n ],\n\n // modified RdBu based on\n // http://www.kennethmoreland.com/color-maps/\n 'RdBu': [\n [0, 'rgb(5,10,172)'], [0.35, 'rgb(106,137,247)'],\n [0.5, 'rgb(190,190,190)'], [0.6, 'rgb(220,170,132)'],\n [0.7, 'rgb(230,145,90)'], [1, 'rgb(178,10,28)']\n ],\n\n // Scale for non-negative numeric values\n 'Reds': [\n [0, 'rgb(220,220,220)'], [0.2, 'rgb(245,195,157)'],\n [0.4, 'rgb(245,160,105)'], [1, 'rgb(178,10,28)']\n ],\n\n // Scale for non-positive numeric values\n 'Blues': [\n [0, 'rgb(5,10,172)'], [0.35, 'rgb(40,60,190)'],\n [0.5, 'rgb(70,100,245)'], [0.6, 'rgb(90,120,245)'],\n [0.7, 'rgb(106,137,247)'], [1, 'rgb(220,220,220)']\n ],\n\n 'Picnic': [\n [0, 'rgb(0,0,255)'], [0.1, 'rgb(51,153,255)'],\n [0.2, 'rgb(102,204,255)'], [0.3, 'rgb(153,204,255)'],\n [0.4, 'rgb(204,204,255)'], [0.5, 'rgb(255,255,255)'],\n [0.6, 'rgb(255,204,255)'], [0.7, 'rgb(255,153,255)'],\n [0.8, 'rgb(255,102,204)'], [0.9, 'rgb(255,102,102)'],\n [1, 'rgb(255,0,0)']\n ],\n\n 'Rainbow': [\n [0, 'rgb(150,0,90)'], [0.125, 'rgb(0,0,200)'],\n [0.25, 'rgb(0,25,255)'], [0.375, 'rgb(0,152,255)'],\n [0.5, 'rgb(44,255,150)'], [0.625, 'rgb(151,255,0)'],\n [0.75, 'rgb(255,234,0)'], [0.875, 'rgb(255,111,0)'],\n [1, 'rgb(255,0,0)']\n ],\n\n 'Portland': [\n [0, 'rgb(12,51,131)'], [0.25, 'rgb(10,136,186)'],\n [0.5, 'rgb(242,211,56)'], [0.75, 'rgb(242,143,56)'],\n [1, 'rgb(217,30,30)']\n ],\n\n 'Jet': [\n [0, 'rgb(0,0,131)'], [0.125, 'rgb(0,60,170)'],\n [0.375, 'rgb(5,255,255)'], [0.625, 'rgb(255,255,0)'],\n [0.875, 'rgb(250,0,0)'], [1, 'rgb(128,0,0)']\n ],\n\n 'Hot': [\n [0, 'rgb(0,0,0)'], [0.3, 'rgb(230,0,0)'],\n [0.6, 'rgb(255,210,0)'], [1, 'rgb(255,255,255)']\n ],\n\n 'Blackbody': [\n [0, 'rgb(0,0,0)'], [0.2, 'rgb(230,0,0)'],\n [0.4, 'rgb(230,210,0)'], [0.7, 'rgb(255,255,255)'],\n [1, 'rgb(160,200,255)']\n ],\n\n 'Earth': [\n [0, 'rgb(0,0,130)'], [0.1, 'rgb(0,180,180)'],\n [0.2, 'rgb(40,210,40)'], [0.4, 'rgb(230,230,50)'],\n [0.6, 'rgb(120,70,20)'], [1, 'rgb(255,255,255)']\n ],\n\n 'Electric': [\n [0, 'rgb(0,0,0)'], [0.15, 'rgb(30,0,100)'],\n [0.4, 'rgb(120,0,100)'], [0.6, 'rgb(160,90,0)'],\n [0.8, 'rgb(230,200,0)'], [1, 'rgb(255,250,220)']\n ],\n\n 'Viridis': [\n [0, '#440154'], [0.06274509803921569, '#48186a'],\n [0.12549019607843137, '#472d7b'], [0.18823529411764706, '#424086'],\n [0.25098039215686274, '#3b528b'], [0.3137254901960784, '#33638d'],\n [0.3764705882352941, '#2c728e'], [0.4392156862745098, '#26828e'],\n [0.5019607843137255, '#21918c'], [0.5647058823529412, '#1fa088'],\n [0.6274509803921569, '#28ae80'], [0.6901960784313725, '#3fbc73'],\n [0.7529411764705882, '#5ec962'], [0.8156862745098039, '#84d44b'],\n [0.8784313725490196, '#addc30'], [0.9411764705882353, '#d8e219'],\n [1, '#fde725']\n ],\n\n 'Cividis': [\n [0.000000, 'rgb(0,32,76)'], [0.058824, 'rgb(0,42,102)'],\n [0.117647, 'rgb(0,52,110)'], [0.176471, 'rgb(39,63,108)'],\n [0.235294, 'rgb(60,74,107)'], [0.294118, 'rgb(76,85,107)'],\n [0.352941, 'rgb(91,95,109)'], [0.411765, 'rgb(104,106,112)'],\n [0.470588, 'rgb(117,117,117)'], [0.529412, 'rgb(131,129,120)'],\n [0.588235, 'rgb(146,140,120)'], [0.647059, 'rgb(161,152,118)'],\n [0.705882, 'rgb(176,165,114)'], [0.764706, 'rgb(192,177,109)'],\n [0.823529, 'rgb(209,191,102)'], [0.882353, 'rgb(225,204,92)'],\n [0.941176, 'rgb(243,219,79)'], [1.000000, 'rgb(255,233,69)']\n ]\n};\n\nvar defaultScale = scales.RdBu;\n\nfunction getScale(scl, dflt) {\n if(!dflt) dflt = defaultScale;\n if(!scl) return dflt;\n\n function parseScale() {\n try {\n scl = scales[scl] || JSON.parse(scl);\n } catch(e) {\n scl = dflt;\n }\n }\n\n if(typeof scl === 'string') {\n parseScale();\n // occasionally scl is double-JSON encoded...\n if(typeof scl === 'string') parseScale();\n }\n\n if(!isValidScaleArray(scl)) return dflt;\n return scl;\n}\n\n\nfunction isValidScaleArray(scl) {\n var highestVal = 0;\n\n if(!Array.isArray(scl) || scl.length < 2) return false;\n\n if(!scl[0] || !scl[scl.length - 1]) return false;\n\n if(+scl[0][0] !== 0 || +scl[scl.length - 1][0] !== 1) return false;\n\n for(var i = 0; i < scl.length; i++) {\n var si = scl[i];\n\n if(si.length !== 2 || +si[0] < highestVal || !tinycolor(si[1]).isValid()) {\n return false;\n }\n\n highestVal = +si[0];\n }\n\n return true;\n}\n\nfunction isValidScale(scl) {\n if(scales[scl] !== undefined) return true;\n else return isValidScaleArray(scl);\n}\n\nmodule.exports = {\n scales: scales,\n defaultScale: defaultScale,\n\n get: getScale,\n isValid: isValidScale\n};\n\n},{\"tinycolor2\":313}],383:[function(_dereq_,module,exports){\n'use strict';\n\n\n// for automatic alignment on dragging, <1/3 means left align,\n// >2/3 means right, and between is center. Pick the right fraction\n// based on where you are, and return the fraction corresponding to\n// that position on the object\nmodule.exports = function align(v, dv, v0, v1, anchor) {\n var vmin = (v - v0) / (v1 - v0);\n var vmax = vmin + dv / (v1 - v0);\n var vc = (vmin + vmax) / 2;\n\n // explicitly specified anchor\n if(anchor === 'left' || anchor === 'bottom') return vmin;\n if(anchor === 'center' || anchor === 'middle') return vc;\n if(anchor === 'right' || anchor === 'top') return vmax;\n\n // automatic based on position\n if(vmin < (2 / 3) - vc) return vmin;\n if(vmax > (4 / 3) - vc) return vmax;\n return vc;\n};\n\n},{}],384:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n\n// set cursors pointing toward the closest corner/side,\n// to indicate alignment\n// x and y are 0-1, fractions of the plot area\nvar cursorset = [\n ['sw-resize', 's-resize', 'se-resize'],\n ['w-resize', 'move', 'e-resize'],\n ['nw-resize', 'n-resize', 'ne-resize']\n];\n\nmodule.exports = function getCursor(x, y, xanchor, yanchor) {\n if(xanchor === 'left') x = 0;\n else if(xanchor === 'center') x = 1;\n else if(xanchor === 'right') x = 2;\n else x = Lib.constrain(Math.floor(x * 3), 0, 2);\n\n if(yanchor === 'bottom') y = 0;\n else if(yanchor === 'middle') y = 1;\n else if(yanchor === 'top') y = 2;\n else y = Lib.constrain(Math.floor(y * 3), 0, 2);\n\n return cursorset[y][x];\n};\n\n},{\"../../lib\":515}],385:[function(_dereq_,module,exports){\n'use strict';\n\nexports.selectMode = function(dragmode) {\n return (\n dragmode === 'lasso' ||\n dragmode === 'select'\n );\n};\n\nexports.drawMode = function(dragmode) {\n return (\n dragmode === 'drawclosedpath' ||\n dragmode === 'drawopenpath' ||\n dragmode === 'drawline' ||\n dragmode === 'drawrect' ||\n dragmode === 'drawcircle'\n );\n};\n\nexports.openMode = function(dragmode) {\n return (\n dragmode === 'drawline' ||\n dragmode === 'drawopenpath'\n );\n};\n\nexports.rectMode = function(dragmode) {\n return (\n dragmode === 'select' ||\n dragmode === 'drawline' ||\n dragmode === 'drawrect' ||\n dragmode === 'drawcircle'\n );\n};\n\nexports.freeMode = function(dragmode) {\n return (\n dragmode === 'lasso' ||\n dragmode === 'drawclosedpath' ||\n dragmode === 'drawopenpath'\n );\n};\n\nexports.selectingOrDrawing = function(dragmode) {\n return (\n exports.freeMode(dragmode) ||\n exports.rectMode(dragmode)\n );\n};\n\n},{}],386:[function(_dereq_,module,exports){\n'use strict';\n\nvar mouseOffset = _dereq_('mouse-event-offset');\nvar hasHover = _dereq_('has-hover');\nvar supportsPassive = _dereq_('has-passive-events');\n\nvar removeElement = _dereq_('../../lib').removeElement;\nvar constants = _dereq_('../../plots/cartesian/constants');\n\nvar dragElement = module.exports = {};\n\ndragElement.align = _dereq_('./align');\ndragElement.getCursor = _dereq_('./cursor');\n\nvar unhover = _dereq_('./unhover');\ndragElement.unhover = unhover.wrapped;\ndragElement.unhoverRaw = unhover.raw;\n\n/**\n * Abstracts click & drag interactions\n *\n * During the interaction, a \"coverSlip\" element - a transparent\n * div covering the whole page - is created, which has two key effects:\n * - Lets you drag beyond the boundaries of the plot itself without\n * dropping (but if you drag all the way out of the browser window the\n * interaction will end)\n * - Freezes the cursor: whatever mouse cursor the drag element had when the\n * interaction started gets copied to the coverSlip for use until mouseup\n *\n * If the user executes a drag bigger than MINDRAG, callbacks will fire as:\n * prepFn, moveFn (1 or more times), doneFn\n * If the user does not drag enough, prepFn and clickFn will fire.\n *\n * Note: If you cancel contextmenu, clickFn will fire even with a right click\n * (unlike native events) so you'll get a `plotly_click` event. Cancel context eg:\n * gd.addEventListener('contextmenu', function(e) { e.preventDefault(); });\n * TODO: we should probably turn this into a `config` parameter, so we can fix it\n * such that if you *don't* cancel contextmenu, we can prevent partial drags, which\n * put you in a weird state.\n *\n * If the user clicks multiple times quickly, clickFn will fire each time\n * but numClicks will increase to help you recognize doubleclicks.\n *\n * @param {object} options with keys:\n * element (required) the DOM element to drag\n * prepFn (optional) function(event, startX, startY)\n * executed on mousedown\n * startX and startY are the clientX and clientY pixel position\n * of the mousedown event\n * moveFn (optional) function(dx, dy)\n * executed on move, ONLY after we've exceeded MINDRAG\n * (we keep executing moveFn if you move back to where you started)\n * dx and dy are the net pixel offset of the drag,\n * dragged is true/false, has the mouse moved enough to\n * constitute a drag\n * doneFn (optional) function(e)\n * executed on mouseup, ONLY if we exceeded MINDRAG (so you can be\n * sure that moveFn has been called at least once)\n * numClicks is how many clicks we've registered within\n * a doubleclick time\n * e is the original mouseup event\n * clickFn (optional) function(numClicks, e)\n * executed on mouseup if we have NOT exceeded MINDRAG (ie moveFn\n * has not been called at all)\n * numClicks is how many clicks we've registered within\n * a doubleclick time\n * e is the original mousedown event\n * clampFn (optional, function(dx, dy) return [dx2, dy2])\n * Provide custom clamping function for small displacements.\n * By default, clamping is done using `minDrag` to x and y displacements\n * independently.\n */\ndragElement.init = function init(options) {\n var gd = options.gd;\n var numClicks = 1;\n var doubleClickDelay = gd._context.doubleClickDelay;\n var element = options.element;\n\n var startX,\n startY,\n newMouseDownTime,\n cursor,\n dragCover,\n initialEvent,\n initialTarget,\n rightClick;\n\n if(!gd._mouseDownTime) gd._mouseDownTime = 0;\n\n element.style.pointerEvents = 'all';\n\n element.onmousedown = onStart;\n\n if(!supportsPassive) {\n element.ontouchstart = onStart;\n } else {\n if(element._ontouchstart) {\n element.removeEventListener('touchstart', element._ontouchstart);\n }\n element._ontouchstart = onStart;\n element.addEventListener('touchstart', onStart, {passive: false});\n }\n\n function _clampFn(dx, dy, minDrag) {\n if(Math.abs(dx) < minDrag) dx = 0;\n if(Math.abs(dy) < minDrag) dy = 0;\n return [dx, dy];\n }\n\n var clampFn = options.clampFn || _clampFn;\n\n function onStart(e) {\n // make dragging and dragged into properties of gd\n // so that others can look at and modify them\n gd._dragged = false;\n gd._dragging = true;\n var offset = pointerOffset(e);\n startX = offset[0];\n startY = offset[1];\n initialTarget = e.target;\n initialEvent = e;\n rightClick = e.buttons === 2 || e.ctrlKey;\n\n // fix Fx.hover for touch events\n if(typeof e.clientX === 'undefined' && typeof e.clientY === 'undefined') {\n e.clientX = startX;\n e.clientY = startY;\n }\n\n newMouseDownTime = (new Date()).getTime();\n if(newMouseDownTime - gd._mouseDownTime < doubleClickDelay) {\n // in a click train\n numClicks += 1;\n } else {\n // new click train\n numClicks = 1;\n gd._mouseDownTime = newMouseDownTime;\n }\n\n if(options.prepFn) options.prepFn(e, startX, startY);\n\n if(hasHover && !rightClick) {\n dragCover = coverSlip();\n dragCover.style.cursor = window.getComputedStyle(element).cursor;\n } else if(!hasHover) {\n // document acts as a dragcover for mobile, bc we can't create dragcover dynamically\n dragCover = document;\n cursor = window.getComputedStyle(document.documentElement).cursor;\n document.documentElement.style.cursor = window.getComputedStyle(element).cursor;\n }\n\n document.addEventListener('mouseup', onDone);\n document.addEventListener('touchend', onDone);\n\n if(options.dragmode !== false) {\n e.preventDefault();\n document.addEventListener('mousemove', onMove);\n document.addEventListener('touchmove', onMove, {passive: false});\n }\n\n return;\n }\n\n function onMove(e) {\n e.preventDefault();\n\n var offset = pointerOffset(e);\n var minDrag = options.minDrag || constants.MINDRAG;\n var dxdy = clampFn(offset[0] - startX, offset[1] - startY, minDrag);\n var dx = dxdy[0];\n var dy = dxdy[1];\n\n if(dx || dy) {\n gd._dragged = true;\n dragElement.unhover(gd, e);\n }\n\n if(gd._dragged && options.moveFn && !rightClick) {\n gd._dragdata = {\n element: element,\n dx: dx,\n dy: dy\n };\n options.moveFn(dx, dy);\n }\n\n return;\n }\n\n function onDone(e) {\n delete gd._dragdata;\n\n if(options.dragmode !== false) {\n e.preventDefault();\n document.removeEventListener('mousemove', onMove);\n document.removeEventListener('touchmove', onMove);\n }\n\n document.removeEventListener('mouseup', onDone);\n document.removeEventListener('touchend', onDone);\n\n if(hasHover) {\n removeElement(dragCover);\n } else if(cursor) {\n dragCover.documentElement.style.cursor = cursor;\n cursor = null;\n }\n\n if(!gd._dragging) {\n gd._dragged = false;\n return;\n }\n gd._dragging = false;\n\n // don't count as a dblClick unless the mouseUp is also within\n // the dblclick delay\n if((new Date()).getTime() - gd._mouseDownTime > doubleClickDelay) {\n numClicks = Math.max(numClicks - 1, 1);\n }\n\n if(gd._dragged) {\n if(options.doneFn) options.doneFn();\n } else {\n if(options.clickFn) options.clickFn(numClicks, initialEvent);\n\n // If we haven't dragged, this should be a click. But because of the\n // coverSlip changing the element, the natural system might not generate one,\n // so we need to make our own. But right clicks don't normally generate\n // click events, only contextmenu events, which happen on mousedown.\n if(!rightClick) {\n var e2;\n\n try {\n e2 = new MouseEvent('click', e);\n } catch(err) {\n var offset = pointerOffset(e);\n e2 = document.createEvent('MouseEvents');\n e2.initMouseEvent('click',\n e.bubbles, e.cancelable,\n e.view, e.detail,\n e.screenX, e.screenY,\n offset[0], offset[1],\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, e.relatedTarget);\n }\n\n initialTarget.dispatchEvent(e2);\n }\n }\n\n gd._dragging = false;\n gd._dragged = false;\n return;\n }\n};\n\nfunction coverSlip() {\n var cover = document.createElement('div');\n\n cover.className = 'dragcover';\n var cStyle = cover.style;\n cStyle.position = 'fixed';\n cStyle.left = 0;\n cStyle.right = 0;\n cStyle.top = 0;\n cStyle.bottom = 0;\n cStyle.zIndex = 999999999;\n cStyle.background = 'none';\n\n document.body.appendChild(cover);\n\n return cover;\n}\n\ndragElement.coverSlip = coverSlip;\n\nfunction pointerOffset(e) {\n return mouseOffset(\n e.changedTouches ? e.changedTouches[0] : e,\n document.body\n );\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/constants\":573,\"./align\":383,\"./cursor\":384,\"./unhover\":387,\"has-hover\":228,\"has-passive-events\":229,\"mouse-event-offset\":242}],387:[function(_dereq_,module,exports){\n'use strict';\n\nvar Events = _dereq_('../../lib/events');\nvar throttle = _dereq_('../../lib/throttle');\nvar getGraphDiv = _dereq_('../../lib/dom').getGraphDiv;\n\nvar hoverConstants = _dereq_('../fx/constants');\n\nvar unhover = module.exports = {};\n\nunhover.wrapped = function(gd, evt, subplot) {\n gd = getGraphDiv(gd);\n\n // Important, clear any queued hovers\n if(gd._fullLayout) {\n throttle.clear(gd._fullLayout._uid + hoverConstants.HOVERID);\n }\n\n unhover.raw(gd, evt, subplot);\n};\n\n\n// remove hover effects on mouse out, and emit unhover event\nunhover.raw = function raw(gd, evt) {\n var fullLayout = gd._fullLayout;\n var oldhoverdata = gd._hoverdata;\n\n if(!evt) evt = {};\n if(evt.target && !gd._dragged &&\n Events.triggerHandler(gd, 'plotly_beforehover', evt) === false) {\n return;\n }\n\n fullLayout._hoverlayer.selectAll('g').remove();\n fullLayout._hoverlayer.selectAll('line').remove();\n fullLayout._hoverlayer.selectAll('circle').remove();\n gd._hoverdata = undefined;\n\n if(evt.target && oldhoverdata) {\n gd.emit('plotly_unhover', {\n event: evt,\n points: oldhoverdata\n });\n }\n};\n\n},{\"../../lib/dom\":503,\"../../lib/events\":504,\"../../lib/throttle\":542,\"../fx/constants\":401}],388:[function(_dereq_,module,exports){\n'use strict';\n\nexports.dash = {\n valType: 'string',\n // string type usually doesn't take values... this one should really be\n // a special type or at least a special coercion function, from the GUI\n // you only get these values but elsewhere the user can supply a list of\n // dash lengths in px, and it will be honored\n values: ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'],\n dflt: 'solid',\n editType: 'style',\n};\n\nexports.pattern = {\n shape: {\n valType: 'enumerated',\n values: ['', '/', '\\\\', 'x', '-', '|', '+', '.'],\n dflt: '',\n arrayOk: true,\n editType: 'style',\n },\n fillmode: {\n valType: 'enumerated',\n values: ['replace', 'overlay'],\n dflt: 'replace',\n editType: 'style',\n },\n bgcolor: {\n valType: 'color',\n arrayOk: true,\n editType: 'style',\n },\n fgcolor: {\n valType: 'color',\n arrayOk: true,\n editType: 'style',\n },\n fgopacity: {\n valType: 'number',\n editType: 'style',\n min: 0,\n max: 1,\n },\n size: {\n valType: 'number',\n min: 0,\n dflt: 8,\n arrayOk: true,\n editType: 'style',\n },\n solidity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.3,\n arrayOk: true,\n editType: 'style',\n },\n editType: 'style',\n};\n\n},{}],389:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../color');\nvar Colorscale = _dereq_('../colorscale');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar alignment = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignment.LINE_SPACING;\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\n\nvar subTypes = _dereq_('../../traces/scatter/subtypes');\nvar makeBubbleSizeFn = _dereq_('../../traces/scatter/make_bubble_size_func');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar drawing = module.exports = {};\n\n// -----------------------------------------------------\n// styling functions for plot elements\n// -----------------------------------------------------\n\ndrawing.font = function(s, family, size, color) {\n // also allow the form font(s, {family, size, color})\n if(Lib.isPlainObject(family)) {\n color = family.color;\n size = family.size;\n family = family.family;\n }\n if(family) s.style('font-family', family);\n if(size + 1) s.style('font-size', size + 'px');\n if(color) s.call(Color.fill, color);\n};\n\n/*\n * Positioning helpers\n * Note: do not use `setPosition` with nodes modified by\n * `svgTextUtils.convertToTspans`. Use `svgTextUtils.positionText`\n * instead, so that elements get updated to match.\n */\ndrawing.setPosition = function(s, x, y) { s.attr('x', x).attr('y', y); };\ndrawing.setSize = function(s, w, h) { s.attr('width', w).attr('height', h); };\ndrawing.setRect = function(s, x, y, w, h) {\n s.call(drawing.setPosition, x, y).call(drawing.setSize, w, h);\n};\n\n/** Translate node\n *\n * @param {object} d : calcdata point item\n * @param {sel} sel : d3 selction of node to translate\n * @param {object} xa : corresponding full xaxis object\n * @param {object} ya : corresponding full yaxis object\n *\n * @return {boolean} :\n * true if selection got translated\n * false if selection could not get translated\n */\ndrawing.translatePoint = function(d, sel, xa, ya) {\n var x = xa.c2p(d.x);\n var y = ya.c2p(d.y);\n\n if(isNumeric(x) && isNumeric(y) && sel.node()) {\n // for multiline text this works better\n if(sel.node().nodeName === 'text') {\n sel.attr('x', x).attr('y', y);\n } else {\n sel.attr('transform', strTranslate(x, y));\n }\n } else {\n return false;\n }\n\n return true;\n};\n\ndrawing.translatePoints = function(s, xa, ya) {\n s.each(function(d) {\n var sel = d3.select(this);\n drawing.translatePoint(d, sel, xa, ya);\n });\n};\n\ndrawing.hideOutsideRangePoint = function(d, sel, xa, ya, xcalendar, ycalendar) {\n sel.attr(\n 'display',\n (xa.isPtWithinRange(d, xcalendar) && ya.isPtWithinRange(d, ycalendar)) ? null : 'none'\n );\n};\n\ndrawing.hideOutsideRangePoints = function(traceGroups, subplot) {\n if(!subplot._hasClipOnAxisFalse) return;\n\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n\n traceGroups.each(function(d) {\n var trace = d[0].trace;\n var xcalendar = trace.xcalendar;\n var ycalendar = trace.ycalendar;\n var selector = Registry.traceIs(trace, 'bar-like') ? '.bartext' : '.point,.textpoint';\n\n traceGroups.selectAll(selector).each(function(d) {\n drawing.hideOutsideRangePoint(d, d3.select(this), xa, ya, xcalendar, ycalendar);\n });\n });\n};\n\ndrawing.crispRound = function(gd, lineWidth, dflt) {\n // for lines that disable antialiasing we want to\n // make sure the width is an integer, and at least 1 if it's nonzero\n\n if(!lineWidth || !isNumeric(lineWidth)) return dflt || 0;\n\n // but not for static plots - these don't get antialiased anyway.\n if(gd._context.staticPlot) return lineWidth;\n\n if(lineWidth < 1) return 1;\n return Math.round(lineWidth);\n};\n\ndrawing.singleLineStyle = function(d, s, lw, lc, ld) {\n s.style('fill', 'none');\n var line = (((d || [])[0] || {}).trace || {}).line || {};\n var lw1 = lw || line.width || 0;\n var dash = ld || line.dash || '';\n\n Color.stroke(s, lc || line.color);\n drawing.dashLine(s, dash, lw1);\n};\n\ndrawing.lineGroupStyle = function(s, lw, lc, ld) {\n s.style('fill', 'none')\n .each(function(d) {\n var line = (((d || [])[0] || {}).trace || {}).line || {};\n var lw1 = lw || line.width || 0;\n var dash = ld || line.dash || '';\n\n d3.select(this)\n .call(Color.stroke, lc || line.color)\n .call(drawing.dashLine, dash, lw1);\n });\n};\n\ndrawing.dashLine = function(s, dash, lineWidth) {\n lineWidth = +lineWidth || 0;\n\n dash = drawing.dashStyle(dash, lineWidth);\n\n s.style({\n 'stroke-dasharray': dash,\n 'stroke-width': lineWidth + 'px'\n });\n};\n\ndrawing.dashStyle = function(dash, lineWidth) {\n lineWidth = +lineWidth || 1;\n var dlw = Math.max(lineWidth, 3);\n\n if(dash === 'solid') dash = '';\n else if(dash === 'dot') dash = dlw + 'px,' + dlw + 'px';\n else if(dash === 'dash') dash = (3 * dlw) + 'px,' + (3 * dlw) + 'px';\n else if(dash === 'longdash') dash = (5 * dlw) + 'px,' + (5 * dlw) + 'px';\n else if(dash === 'dashdot') {\n dash = (3 * dlw) + 'px,' + dlw + 'px,' + dlw + 'px,' + dlw + 'px';\n } else if(dash === 'longdashdot') {\n dash = (5 * dlw) + 'px,' + (2 * dlw) + 'px,' + dlw + 'px,' + (2 * dlw) + 'px';\n }\n // otherwise user wrote the dasharray themselves - leave it be\n\n return dash;\n};\n\nfunction setFillStyle(sel, trace, gd) {\n var markerPattern = trace.fillpattern;\n var patternShape = markerPattern && drawing.getPatternAttr(markerPattern.shape, 0, '');\n if(patternShape) {\n var patternBGColor = drawing.getPatternAttr(markerPattern.bgcolor, 0, null);\n var patternFGColor = drawing.getPatternAttr(markerPattern.fgcolor, 0, null);\n var patternFGOpacity = markerPattern.fgopacity;\n var patternSize = drawing.getPatternAttr(markerPattern.size, 0, 8);\n var patternSolidity = drawing.getPatternAttr(markerPattern.solidity, 0, 0.3);\n var patternID = trace.uid;\n drawing.pattern(sel, 'point', gd, patternID,\n patternShape, patternSize, patternSolidity,\n undefined, markerPattern.fillmode,\n patternBGColor, patternFGColor, patternFGOpacity\n );\n } else if(trace.fillcolor) {\n sel.call(Color.fill, trace.fillcolor);\n }\n}\n\n// Same as fillGroupStyle, except in this case the selection may be a transition\ndrawing.singleFillStyle = function(sel, gd) {\n var node = d3.select(sel.node());\n var data = node.data();\n var trace = ((data[0] || [])[0] || {}).trace || {};\n setFillStyle(sel, trace, gd);\n};\n\ndrawing.fillGroupStyle = function(s, gd) {\n s.style('stroke-width', 0)\n .each(function(d) {\n var shape = d3.select(this);\n // N.B. 'd' won't be a calcdata item when\n // fill !== 'none' on a segment-less and marker-less trace\n if(d[0].trace) {\n setFillStyle(shape, d[0].trace, gd);\n }\n });\n};\n\nvar SYMBOLDEFS = _dereq_('./symbol_defs');\n\ndrawing.symbolNames = [];\ndrawing.symbolFuncs = [];\ndrawing.symbolBackOffs = [];\ndrawing.symbolNeedLines = {};\ndrawing.symbolNoDot = {};\ndrawing.symbolNoFill = {};\ndrawing.symbolList = [];\n\nObject.keys(SYMBOLDEFS).forEach(function(k) {\n var symDef = SYMBOLDEFS[k];\n var n = symDef.n;\n drawing.symbolList.push(\n n,\n String(n),\n k,\n\n n + 100,\n String(n + 100),\n k + '-open'\n );\n drawing.symbolNames[n] = k;\n drawing.symbolFuncs[n] = symDef.f;\n drawing.symbolBackOffs[n] = symDef.backoff || 0;\n\n if(symDef.needLine) {\n drawing.symbolNeedLines[n] = true;\n }\n if(symDef.noDot) {\n drawing.symbolNoDot[n] = true;\n } else {\n drawing.symbolList.push(\n n + 200,\n String(n + 200),\n k + '-dot',\n\n n + 300,\n String(n + 300),\n k + '-open-dot'\n );\n }\n if(symDef.noFill) {\n drawing.symbolNoFill[n] = true;\n }\n});\n\nvar MAXSYMBOL = drawing.symbolNames.length;\n// add a dot in the middle of the symbol\nvar DOTPATH = 'M0,0.5L0.5,0L0,-0.5L-0.5,0Z';\n\ndrawing.symbolNumber = function(v) {\n if(isNumeric(v)) {\n v = +v;\n } else if(typeof v === 'string') {\n var vbase = 0;\n if(v.indexOf('-open') > 0) {\n vbase = 100;\n v = v.replace('-open', '');\n }\n if(v.indexOf('-dot') > 0) {\n vbase += 200;\n v = v.replace('-dot', '');\n }\n v = drawing.symbolNames.indexOf(v);\n if(v >= 0) { v += vbase; }\n }\n\n return (v % 100 >= MAXSYMBOL || v >= 400) ?\n 0 : Math.floor(Math.max(v, 0));\n};\n\nfunction makePointPath(symbolNumber, r, t, s) {\n var base = symbolNumber % 100;\n return drawing.symbolFuncs[base](r, t, s) + (symbolNumber >= 200 ? DOTPATH : '');\n}\n\nvar HORZGRADIENT = {x1: 1, x2: 0, y1: 0, y2: 0};\nvar VERTGRADIENT = {x1: 0, x2: 0, y1: 1, y2: 0};\nvar stopFormatter = numberFormat('~f');\nvar gradientInfo = {\n radial: {node: 'radialGradient'},\n radialreversed: {node: 'radialGradient', reversed: true},\n horizontal: {node: 'linearGradient', attrs: HORZGRADIENT},\n horizontalreversed: {node: 'linearGradient', attrs: HORZGRADIENT, reversed: true},\n vertical: {node: 'linearGradient', attrs: VERTGRADIENT},\n verticalreversed: {node: 'linearGradient', attrs: VERTGRADIENT, reversed: true}\n};\n\n/**\n * gradient: create and apply a gradient fill\n *\n * @param {object} sel: d3 selection to apply this gradient to\n * You can use `selection.call(Drawing.gradient, ...)`\n * @param {DOM element} gd: the graph div `sel` is part of\n * @param {string} gradientID: a unique (within this plot) identifier\n * for this gradient, so that we don't create unnecessary definitions\n * @param {string} type: 'radial', 'horizontal', or 'vertical', optionally with\n * 'reversed' at the end. Normally radial goes center to edge,\n * horizontal goes right to left, and vertical goes bottom to top\n * @param {array} colorscale: as in attribute values, [[fraction, color], ...]\n * @param {string} prop: the property to apply to, 'fill' or 'stroke'\n */\ndrawing.gradient = function(sel, gd, gradientID, type, colorscale, prop) {\n var len = colorscale.length;\n var info = gradientInfo[type];\n var colorStops = new Array(len);\n for(var i = 0; i < len; i++) {\n if(info.reversed) {\n colorStops[len - 1 - i] = [stopFormatter((1 - colorscale[i][0]) * 100), colorscale[i][1]];\n } else {\n colorStops[i] = [stopFormatter(colorscale[i][0] * 100), colorscale[i][1]];\n }\n }\n\n var fullLayout = gd._fullLayout;\n var fullID = 'g' + fullLayout._uid + '-' + gradientID;\n\n var gradient = fullLayout._defs.select('.gradients')\n .selectAll('#' + fullID)\n .data([type + colorStops.join(';')], Lib.identity);\n\n gradient.exit().remove();\n\n gradient.enter()\n .append(info.node)\n .each(function() {\n var el = d3.select(this);\n if(info.attrs) el.attr(info.attrs);\n\n el.attr('id', fullID);\n\n var stops = el.selectAll('stop')\n .data(colorStops);\n stops.exit().remove();\n stops.enter().append('stop');\n\n stops.each(function(d) {\n var tc = tinycolor(d[1]);\n d3.select(this).attr({\n offset: d[0] + '%',\n 'stop-color': Color.tinyRGB(tc),\n 'stop-opacity': tc.getAlpha()\n });\n });\n });\n\n sel.style(prop, getFullUrl(fullID, gd))\n .style(prop + '-opacity', null);\n\n sel.classed('gradient_filled', true);\n};\n\n/**\n * pattern: create and apply a pattern fill\n *\n * @param {object} sel: d3 selection to apply this pattern to\n * You can use `selection.call(Drawing.pattern, ...)`\n * @param {string} calledBy: option to know the caller component\n * @param {DOM element} gd: the graph div `sel` is part of\n * @param {string} patternID: a unique (within this plot) identifier\n * for this pattern, so that we don't create unnecessary definitions\n * @param {number} size: size of unit squares for repetition of this pattern\n * @param {number} solidity: how solid lines of this pattern are\n * @param {string} mcc: color when painted with colorscale\n * @param {string} fillmode: fillmode for this pattern\n * @param {string} bgcolor: background color for this pattern\n * @param {string} fgcolor: foreground color for this pattern\n * @param {number} fgopacity: foreground opacity for this pattern\n */\ndrawing.pattern = function(sel, calledBy, gd, patternID, shape, size, solidity, mcc, fillmode, bgcolor, fgcolor, fgopacity) {\n var isLegend = calledBy === 'legend';\n\n if(mcc) {\n if(fillmode === 'overlay') {\n bgcolor = mcc;\n fgcolor = Color.contrast(bgcolor);\n } else {\n bgcolor = undefined;\n fgcolor = mcc;\n }\n }\n\n var fullLayout = gd._fullLayout;\n var fullID = 'p' + fullLayout._uid + '-' + patternID;\n var width, height;\n\n // linear interpolation\n var linearFn = function(x, x0, x1, y0, y1) {\n return y0 + (y1 - y0) * (x - x0) / (x1 - x0);\n };\n\n var path, linewidth, radius;\n var patternTag;\n var patternAttrs = {};\n\n var fgC = tinycolor(fgcolor);\n var fgRGB = Color.tinyRGB(fgC);\n var fgAlpha = fgC.getAlpha();\n var opacity = fgopacity * fgAlpha;\n\n switch(shape) {\n case '/':\n width = size * Math.sqrt(2);\n height = size * Math.sqrt(2);\n path = 'M-' + (width / 4) + ',' + (height / 4) + 'l' + (width / 2) + ',-' + (height / 2) +\n 'M0,' + height + 'L' + width + ',0' +\n 'M' + (width / 4 * 3) + ',' + (height / 4 * 5) + 'l' + (width / 2) + ',-' + (height / 2);\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': opacity,\n 'stroke': fgRGB,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '\\\\':\n width = size * Math.sqrt(2);\n height = size * Math.sqrt(2);\n path = 'M' + (width / 4 * 3) + ',-' + (height / 4) + 'l' + (width / 2) + ',' + (height / 2) +\n 'M0,0L' + width + ',' + height +\n 'M-' + (width / 4) + ',' + (height / 4 * 3) + 'l' + (width / 2) + ',' + (height / 2);\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': opacity,\n 'stroke': fgRGB,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case 'x':\n width = size * Math.sqrt(2);\n height = size * Math.sqrt(2);\n path = 'M-' + (width / 4) + ',' + (height / 4) + 'l' + (width / 2) + ',-' + (height / 2) +\n 'M0,' + height + 'L' + width + ',0' +\n 'M' + (width / 4 * 3) + ',' + (height / 4 * 5) + 'l' + (width / 2) + ',-' + (height / 2) +\n 'M' + (width / 4 * 3) + ',-' + (height / 4) + 'l' + (width / 2) + ',' + (height / 2) +\n 'M0,0L' + width + ',' + height +\n 'M-' + (width / 4) + ',' + (height / 4 * 3) + 'l' + (width / 2) + ',' + (height / 2);\n linewidth = size - size * Math.sqrt(1.0 - solidity);\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': opacity,\n 'stroke': fgRGB,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '|':\n width = size;\n height = size;\n patternTag = 'path';\n path = 'M' + (width / 2) + ',0L' + (width / 2) + ',' + height;\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': opacity,\n 'stroke': fgRGB,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '-':\n width = size;\n height = size;\n patternTag = 'path';\n path = 'M0,' + (height / 2) + 'L' + width + ',' + (height / 2);\n linewidth = solidity * size;\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': opacity,\n 'stroke': fgRGB,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '+':\n width = size;\n height = size;\n patternTag = 'path';\n path = 'M' + (width / 2) + ',0L' + (width / 2) + ',' + height +\n 'M0,' + (height / 2) + 'L' + width + ',' + (height / 2);\n linewidth = size - size * Math.sqrt(1.0 - solidity);\n patternTag = 'path';\n patternAttrs = {\n 'd': path,\n 'opacity': opacity,\n 'stroke': fgRGB,\n 'stroke-width': linewidth + 'px'\n };\n break;\n case '.':\n width = size;\n height = size;\n if(solidity < Math.PI / 4) {\n radius = Math.sqrt(solidity * size * size / Math.PI);\n } else {\n radius = linearFn(solidity, Math.PI / 4, 1.0, size / 2, size / Math.sqrt(2));\n }\n patternTag = 'circle';\n patternAttrs = {\n 'cx': width / 2,\n 'cy': height / 2,\n 'r': radius,\n 'opacity': opacity,\n 'fill': fgRGB\n };\n break;\n }\n\n var str = [\n shape || 'noSh',\n bgcolor || 'noBg',\n fgcolor || 'noFg',\n size,\n solidity\n ].join(';');\n\n var pattern = fullLayout._defs.select('.patterns')\n .selectAll('#' + fullID)\n .data([str], Lib.identity);\n\n pattern.exit().remove();\n\n pattern.enter()\n .append('pattern')\n .each(function() {\n var el = d3.select(this);\n\n el.attr({\n 'id': fullID,\n 'width': width + 'px',\n 'height': height + 'px',\n 'patternUnits': 'userSpaceOnUse',\n // for legends scale down patterns just a bit so that default size (i.e 8) nicely fit in small icons\n 'patternTransform': isLegend ? 'scale(0.8)' : ''\n });\n\n if(bgcolor) {\n var bgC = tinycolor(bgcolor);\n var bgRGB = Color.tinyRGB(bgC);\n var bgAlpha = bgC.getAlpha();\n\n var rects = el.selectAll('rect').data([0]);\n rects.exit().remove();\n rects.enter()\n .append('rect')\n .attr({\n 'width': width + 'px',\n 'height': height + 'px',\n 'fill': bgRGB,\n 'fill-opacity': bgAlpha,\n });\n }\n\n var patterns = el.selectAll(patternTag).data([0]);\n patterns.exit().remove();\n patterns.enter()\n .append(patternTag)\n .attr(patternAttrs);\n });\n\n sel.style('fill', getFullUrl(fullID, gd))\n .style('fill-opacity', null);\n\n sel.classed('pattern_filled', true);\n};\n\n/*\n * Make the gradients container and clear out any previous gradients.\n * We never collect all the gradients we need in one place,\n * so we can't ever remove gradients that have stopped being useful,\n * except all at once before a full redraw.\n * The upside of this is arbitrary points can share gradient defs\n */\ndrawing.initGradients = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var gradientsGroup = Lib.ensureSingle(fullLayout._defs, 'g', 'gradients');\n gradientsGroup.selectAll('linearGradient,radialGradient').remove();\n\n d3.select(gd).selectAll('.gradient_filled').classed('gradient_filled', false);\n};\n\ndrawing.initPatterns = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var patternsGroup = Lib.ensureSingle(fullLayout._defs, 'g', 'patterns');\n patternsGroup.selectAll('pattern').remove();\n\n d3.select(gd).selectAll('.pattern_filled').classed('pattern_filled', false);\n};\n\ndrawing.getPatternAttr = function(mp, i, dflt) {\n if(mp && Lib.isArrayOrTypedArray(mp)) {\n return i < mp.length ? mp[i] : dflt;\n }\n return mp;\n};\n\ndrawing.pointStyle = function(s, trace, gd) {\n if(!s.size()) return;\n\n var fns = drawing.makePointStyleFns(trace);\n\n s.each(function(d) {\n drawing.singlePointStyle(d, d3.select(this), trace, fns, gd);\n });\n};\n\ndrawing.singlePointStyle = function(d, sel, trace, fns, gd) {\n var marker = trace.marker;\n var markerLine = marker.line;\n\n sel.style('opacity',\n fns.selectedOpacityFn ? fns.selectedOpacityFn(d) :\n (d.mo === undefined ? marker.opacity : d.mo)\n );\n\n if(fns.ms2mrc) {\n var r;\n\n // handle multi-trace graph edit case\n if(d.ms === 'various' || marker.size === 'various') {\n r = 3;\n } else {\n r = fns.ms2mrc(d.ms);\n }\n\n // store the calculated size so hover can use it\n d.mrc = r;\n\n if(fns.selectedSizeFn) {\n r = d.mrc = fns.selectedSizeFn(d);\n }\n\n // turn the symbol into a sanitized number\n var x = drawing.symbolNumber(d.mx || marker.symbol) || 0;\n\n // save if this marker is open\n // because that impacts how to handle colors\n d.om = x % 200 >= 100;\n\n var angle = getMarkerAngle(d, trace);\n var standoff = getMarkerStandoff(d, trace);\n\n sel.attr('d', makePointPath(x, r, angle, standoff));\n }\n\n var perPointGradient = false;\n var fillColor, lineColor, lineWidth;\n\n // 'so' is suspected outliers, for box plots\n if(d.so) {\n lineWidth = markerLine.outlierwidth;\n lineColor = markerLine.outliercolor;\n fillColor = marker.outliercolor;\n } else {\n var markerLineWidth = (markerLine || {}).width;\n\n lineWidth = (\n d.mlw + 1 ||\n markerLineWidth + 1 ||\n // TODO: we need the latter for legends... can we get rid of it?\n (d.trace ? (d.trace.marker.line || {}).width : 0) + 1\n ) - 1 || 0;\n\n if('mlc' in d) lineColor = d.mlcc = fns.lineScale(d.mlc);\n // weird case: array wasn't long enough to apply to every point\n else if(Lib.isArrayOrTypedArray(markerLine.color)) lineColor = Color.defaultLine;\n else lineColor = markerLine.color;\n\n if(Lib.isArrayOrTypedArray(marker.color)) {\n fillColor = Color.defaultLine;\n perPointGradient = true;\n }\n\n if('mc' in d) {\n fillColor = d.mcc = fns.markerScale(d.mc);\n } else {\n fillColor = marker.color || 'rgba(0,0,0,0)';\n }\n\n if(fns.selectedColorFn) {\n fillColor = fns.selectedColorFn(d);\n }\n }\n\n if(d.om) {\n // open markers can't have zero linewidth, default to 1px,\n // and use fill color as stroke color\n sel.call(Color.stroke, fillColor)\n .style({\n 'stroke-width': (lineWidth || 1) + 'px',\n fill: 'none'\n });\n } else {\n sel.style('stroke-width', (d.isBlank ? 0 : lineWidth) + 'px');\n\n var markerGradient = marker.gradient;\n\n var gradientType = d.mgt;\n if(gradientType) perPointGradient = true;\n else gradientType = markerGradient && markerGradient.type;\n\n // for legend - arrays will propagate through here, but we don't need\n // to treat it as per-point.\n if(Lib.isArrayOrTypedArray(gradientType)) {\n gradientType = gradientType[0];\n if(!gradientInfo[gradientType]) gradientType = 0;\n }\n\n var markerPattern = marker.pattern;\n var patternShape = markerPattern && drawing.getPatternAttr(markerPattern.shape, d.i, '');\n\n if(gradientType && gradientType !== 'none') {\n var gradientColor = d.mgc;\n if(gradientColor) perPointGradient = true;\n else gradientColor = markerGradient.color;\n\n var gradientID = trace.uid;\n if(perPointGradient) gradientID += '-' + d.i;\n\n drawing.gradient(sel, gd, gradientID, gradientType,\n [[0, gradientColor], [1, fillColor]], 'fill');\n } else if(patternShape) {\n var patternBGColor = drawing.getPatternAttr(markerPattern.bgcolor, d.i, null);\n var patternFGColor = drawing.getPatternAttr(markerPattern.fgcolor, d.i, null);\n var patternFGOpacity = markerPattern.fgopacity;\n var patternSize = drawing.getPatternAttr(markerPattern.size, d.i, 8);\n var patternSolidity = drawing.getPatternAttr(markerPattern.solidity, d.i, 0.3);\n var perPointPattern = d.mcc ||\n Lib.isArrayOrTypedArray(markerPattern.shape) ||\n Lib.isArrayOrTypedArray(markerPattern.bgcolor) ||\n Lib.isArrayOrTypedArray(markerPattern.size) ||\n Lib.isArrayOrTypedArray(markerPattern.solidity);\n\n var patternID = trace.uid;\n if(perPointPattern) patternID += '-' + d.i;\n\n drawing.pattern(\n sel, 'point', gd, patternID,\n patternShape, patternSize, patternSolidity,\n d.mcc, markerPattern.fillmode,\n patternBGColor, patternFGColor, patternFGOpacity\n );\n } else {\n Color.fill(sel, fillColor);\n }\n\n if(lineWidth) {\n Color.stroke(sel, lineColor);\n }\n }\n};\n\ndrawing.makePointStyleFns = function(trace) {\n var out = {};\n var marker = trace.marker;\n\n // allow array marker and marker line colors to be\n // scaled by given max and min to colorscales\n out.markerScale = drawing.tryColorscale(marker, '');\n out.lineScale = drawing.tryColorscale(marker, 'line');\n\n if(Registry.traceIs(trace, 'symbols')) {\n out.ms2mrc = subTypes.isBubble(trace) ?\n makeBubbleSizeFn(trace) :\n function() { return (marker.size || 6) / 2; };\n }\n\n if(trace.selectedpoints) {\n Lib.extendFlat(out, drawing.makeSelectedPointStyleFns(trace));\n }\n\n return out;\n};\n\ndrawing.makeSelectedPointStyleFns = function(trace) {\n var out = {};\n\n var selectedAttrs = trace.selected || {};\n var unselectedAttrs = trace.unselected || {};\n\n var marker = trace.marker || {};\n var selectedMarker = selectedAttrs.marker || {};\n var unselectedMarker = unselectedAttrs.marker || {};\n\n var mo = marker.opacity;\n var smo = selectedMarker.opacity;\n var usmo = unselectedMarker.opacity;\n var smoIsDefined = smo !== undefined;\n var usmoIsDefined = usmo !== undefined;\n\n if(Lib.isArrayOrTypedArray(mo) || smoIsDefined || usmoIsDefined) {\n out.selectedOpacityFn = function(d) {\n var base = d.mo === undefined ? marker.opacity : d.mo;\n\n if(d.selected) {\n return smoIsDefined ? smo : base;\n } else {\n return usmoIsDefined ? usmo : DESELECTDIM * base;\n }\n };\n }\n\n var mc = marker.color;\n var smc = selectedMarker.color;\n var usmc = unselectedMarker.color;\n\n if(smc || usmc) {\n out.selectedColorFn = function(d) {\n var base = d.mcc || mc;\n\n if(d.selected) {\n return smc || base;\n } else {\n return usmc || base;\n }\n };\n }\n\n var ms = marker.size;\n var sms = selectedMarker.size;\n var usms = unselectedMarker.size;\n var smsIsDefined = sms !== undefined;\n var usmsIsDefined = usms !== undefined;\n\n if(Registry.traceIs(trace, 'symbols') && (smsIsDefined || usmsIsDefined)) {\n out.selectedSizeFn = function(d) {\n var base = d.mrc || ms / 2;\n\n if(d.selected) {\n return smsIsDefined ? sms / 2 : base;\n } else {\n return usmsIsDefined ? usms / 2 : base;\n }\n };\n }\n\n return out;\n};\n\ndrawing.makeSelectedTextStyleFns = function(trace) {\n var out = {};\n\n var selectedAttrs = trace.selected || {};\n var unselectedAttrs = trace.unselected || {};\n\n var textFont = trace.textfont || {};\n var selectedTextFont = selectedAttrs.textfont || {};\n var unselectedTextFont = unselectedAttrs.textfont || {};\n\n var tc = textFont.color;\n var stc = selectedTextFont.color;\n var utc = unselectedTextFont.color;\n\n out.selectedTextColorFn = function(d) {\n var base = d.tc || tc;\n\n if(d.selected) {\n return stc || base;\n } else {\n if(utc) return utc;\n else return stc ? base : Color.addOpacity(base, DESELECTDIM);\n }\n };\n\n return out;\n};\n\ndrawing.selectedPointStyle = function(s, trace) {\n if(!s.size() || !trace.selectedpoints) return;\n\n var fns = drawing.makeSelectedPointStyleFns(trace);\n var marker = trace.marker || {};\n var seq = [];\n\n if(fns.selectedOpacityFn) {\n seq.push(function(pt, d) {\n pt.style('opacity', fns.selectedOpacityFn(d));\n });\n }\n\n if(fns.selectedColorFn) {\n seq.push(function(pt, d) {\n Color.fill(pt, fns.selectedColorFn(d));\n });\n }\n\n if(fns.selectedSizeFn) {\n seq.push(function(pt, d) {\n var mx = d.mx || marker.symbol || 0;\n var mrc2 = fns.selectedSizeFn(d);\n\n pt.attr('d', makePointPath(drawing.symbolNumber(mx), mrc2, getMarkerAngle(d, trace), getMarkerStandoff(d, trace)));\n\n // save for Drawing.selectedTextStyle\n d.mrc2 = mrc2;\n });\n }\n\n if(seq.length) {\n s.each(function(d) {\n var pt = d3.select(this);\n for(var i = 0; i < seq.length; i++) {\n seq[i](pt, d);\n }\n });\n }\n};\n\ndrawing.tryColorscale = function(marker, prefix) {\n var cont = prefix ? Lib.nestedProperty(marker, prefix).get() : marker;\n\n if(cont) {\n var colorArray = cont.color;\n if((cont.colorscale || cont._colorAx) && Lib.isArrayOrTypedArray(colorArray)) {\n return Colorscale.makeColorScaleFuncFromTrace(cont);\n }\n }\n return Lib.identity;\n};\n\nvar TEXTOFFSETSIGN = {\n start: 1, end: -1, middle: 0, bottom: 1, top: -1\n};\n\nfunction textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {\n var group = d3.select(s.node().parentNode);\n\n var v = textPosition.indexOf('top') !== -1 ?\n 'top' :\n textPosition.indexOf('bottom') !== -1 ? 'bottom' : 'middle';\n var h = textPosition.indexOf('left') !== -1 ?\n 'end' :\n textPosition.indexOf('right') !== -1 ? 'start' : 'middle';\n\n // if markers are shown, offset a little more than\n // the nominal marker size\n // ie 2/1.6 * nominal, bcs some markers are a bit bigger\n var r = markerRadius ? markerRadius / 0.8 + 1 : 0;\n\n var numLines = (svgTextUtils.lineCount(s) - 1) * LINE_SPACING + 1;\n var dx = TEXTOFFSETSIGN[h] * r;\n var dy = fontSize * 0.75 + TEXTOFFSETSIGN[v] * r +\n (TEXTOFFSETSIGN[v] - 1) * numLines * fontSize / 2;\n\n // fix the overall text group position\n s.attr('text-anchor', h);\n if(!dontTouchParent) {\n group.attr('transform', strTranslate(dx, dy));\n }\n}\n\nfunction extracTextFontSize(d, trace) {\n var fontSize = d.ts || trace.textfont.size;\n return (isNumeric(fontSize) && fontSize > 0) ? fontSize : 0;\n}\n\n// draw text at points\ndrawing.textPointStyle = function(s, trace, gd) {\n if(!s.size()) return;\n\n var selectedTextColorFn;\n if(trace.selectedpoints) {\n var fns = drawing.makeSelectedTextStyleFns(trace);\n selectedTextColorFn = fns.selectedTextColorFn;\n }\n\n var texttemplate = trace.texttemplate;\n var fullLayout = gd._fullLayout;\n\n s.each(function(d) {\n var p = d3.select(this);\n\n var text = texttemplate ?\n Lib.extractOption(d, trace, 'txt', 'texttemplate') :\n Lib.extractOption(d, trace, 'tx', 'text');\n\n if(!text && text !== 0) {\n p.remove();\n return;\n }\n\n if(texttemplate) {\n var fn = trace._module.formatLabels;\n var labels = fn ? fn(d, trace, fullLayout) : {};\n var pointValues = {};\n appendArrayPointValue(pointValues, trace, d.i);\n var meta = trace._meta || {};\n text = Lib.texttemplateString(text, labels, fullLayout._d3locale, pointValues, d, meta);\n }\n\n var pos = d.tp || trace.textposition;\n var fontSize = extracTextFontSize(d, trace);\n var fontColor = selectedTextColorFn ?\n selectedTextColorFn(d) :\n (d.tc || trace.textfont.color);\n\n p.call(drawing.font,\n d.tf || trace.textfont.family,\n fontSize,\n fontColor)\n .text(text)\n .call(svgTextUtils.convertToTspans, gd)\n .call(textPointPosition, pos, fontSize, d.mrc);\n });\n};\n\ndrawing.selectedTextStyle = function(s, trace) {\n if(!s.size() || !trace.selectedpoints) return;\n\n var fns = drawing.makeSelectedTextStyleFns(trace);\n\n s.each(function(d) {\n var tx = d3.select(this);\n var tc = fns.selectedTextColorFn(d);\n var tp = d.tp || trace.textposition;\n var fontSize = extracTextFontSize(d, trace);\n\n Color.fill(tx, tc);\n var dontTouchParent = Registry.traceIs(trace, 'bar-like');\n textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);\n });\n};\n\n// generalized Catmull-Rom splines, per\n// http://www.cemyuksel.com/research/catmullrom_param/catmullrom.pdf\nvar CatmullRomExp = 0.5;\ndrawing.smoothopen = function(pts, smoothness) {\n if(pts.length < 3) { return 'M' + pts.join('L');}\n var path = 'M' + pts[0];\n var tangents = [];\n var i;\n for(i = 1; i < pts.length - 1; i++) {\n tangents.push(makeTangent(pts[i - 1], pts[i], pts[i + 1], smoothness));\n }\n path += 'Q' + tangents[0][0] + ' ' + pts[1];\n for(i = 2; i < pts.length - 1; i++) {\n path += 'C' + tangents[i - 2][1] + ' ' + tangents[i - 1][0] + ' ' + pts[i];\n }\n path += 'Q' + tangents[pts.length - 3][1] + ' ' + pts[pts.length - 1];\n return path;\n};\n\ndrawing.smoothclosed = function(pts, smoothness) {\n if(pts.length < 3) { return 'M' + pts.join('L') + 'Z'; }\n var path = 'M' + pts[0];\n var pLast = pts.length - 1;\n var tangents = [makeTangent(pts[pLast], pts[0], pts[1], smoothness)];\n var i;\n for(i = 1; i < pLast; i++) {\n tangents.push(makeTangent(pts[i - 1], pts[i], pts[i + 1], smoothness));\n }\n tangents.push(\n makeTangent(pts[pLast - 1], pts[pLast], pts[0], smoothness)\n );\n\n for(i = 1; i <= pLast; i++) {\n path += 'C' + tangents[i - 1][1] + ' ' + tangents[i][0] + ' ' + pts[i];\n }\n path += 'C' + tangents[pLast][1] + ' ' + tangents[0][0] + ' ' + pts[0] + 'Z';\n return path;\n};\n\nvar lastDrawnX, lastDrawnY;\n\nfunction roundEnd(pt, isY, isLastPoint) {\n if(isLastPoint) pt = applyBackoff(pt);\n\n return isY ? roundY(pt[1]) : roundX(pt[0]);\n}\n\nfunction roundX(p) {\n var v = d3.round(p, 2);\n lastDrawnX = v;\n return v;\n}\n\nfunction roundY(p) {\n var v = d3.round(p, 2);\n lastDrawnY = v;\n return v;\n}\n\nfunction makeTangent(prevpt, thispt, nextpt, smoothness) {\n var d1x = prevpt[0] - thispt[0];\n var d1y = prevpt[1] - thispt[1];\n var d2x = nextpt[0] - thispt[0];\n var d2y = nextpt[1] - thispt[1];\n var d1a = Math.pow(d1x * d1x + d1y * d1y, CatmullRomExp / 2);\n var d2a = Math.pow(d2x * d2x + d2y * d2y, CatmullRomExp / 2);\n var numx = (d2a * d2a * d1x - d1a * d1a * d2x) * smoothness;\n var numy = (d2a * d2a * d1y - d1a * d1a * d2y) * smoothness;\n var denom1 = 3 * d2a * (d1a + d2a);\n var denom2 = 3 * d1a * (d1a + d2a);\n return [\n [\n roundX(thispt[0] + (denom1 && numx / denom1)),\n roundY(thispt[1] + (denom1 && numy / denom1))\n ], [\n roundX(thispt[0] - (denom2 && numx / denom2)),\n roundY(thispt[1] - (denom2 && numy / denom2))\n ]\n ];\n}\n\n// step paths - returns a generator function for paths\n// with the given step shape\nvar STEPPATH = {\n hv: function(p0, p1, isLastPoint) {\n return 'H' +\n roundX(p1[0]) + 'V' +\n roundEnd(p1, 1, isLastPoint);\n },\n vh: function(p0, p1, isLastPoint) {\n return 'V' +\n roundY(p1[1]) + 'H' +\n roundEnd(p1, 0, isLastPoint);\n },\n hvh: function(p0, p1, isLastPoint) {\n return 'H' +\n roundX((p0[0] + p1[0]) / 2) + 'V' +\n roundY(p1[1]) + 'H' +\n roundEnd(p1, 0, isLastPoint);\n },\n vhv: function(p0, p1, isLastPoint) {\n return 'V' +\n roundY((p0[1] + p1[1]) / 2) + 'H' +\n roundX(p1[0]) + 'V' +\n roundEnd(p1, 1, isLastPoint);\n }\n};\nvar STEPLINEAR = function(p0, p1, isLastPoint) {\n return 'L' +\n roundEnd(p1, 0, isLastPoint) + ',' +\n roundEnd(p1, 1, isLastPoint);\n};\ndrawing.steps = function(shape) {\n var onestep = STEPPATH[shape] || STEPLINEAR;\n return function(pts) {\n var path = 'M' + roundX(pts[0][0]) + ',' + roundY(pts[0][1]);\n var len = pts.length;\n for(var i = 1; i < len; i++) {\n path += onestep(pts[i - 1], pts[i], i === len - 1);\n }\n return path;\n };\n};\n\nfunction applyBackoff(pt, start) {\n var backoff = pt.backoff;\n var trace = pt.trace;\n var d = pt.d;\n var i = pt.i;\n\n if(backoff && trace &&\n trace.marker &&\n trace.marker.angle % 360 === 0 &&\n trace.line &&\n trace.line.shape !== 'spline'\n ) {\n var arrayBackoff = Lib.isArrayOrTypedArray(backoff);\n var end = pt;\n\n var x1 = start ? start[0] : lastDrawnX || 0;\n var y1 = start ? start[1] : lastDrawnY || 0;\n\n var x2 = end[0];\n var y2 = end[1];\n\n var dx = x2 - x1;\n var dy = y2 - y1;\n\n var t = Math.atan2(dy, dx);\n\n var b = arrayBackoff ? backoff[i] : backoff;\n\n if(b === 'auto') {\n var endI = end.i;\n if(trace.type === 'scatter') endI--; // Why we need this hack?\n\n var endMarker = end.marker;\n b = endMarker ? drawing.symbolBackOffs[drawing.symbolNumber(endMarker.symbol)] * endMarker.size : 0;\n b += drawing.getMarkerStandoff(d[endI], trace) || 0;\n }\n\n var x = x2 - b * Math.cos(t);\n var y = y2 - b * Math.sin(t);\n\n if(\n ((x <= x2 && x >= x1) || (x >= x2 && x <= x1)) &&\n ((y <= y2 && y >= y1) || (y >= y2 && y <= y1))\n ) {\n pt = [x, y];\n }\n }\n\n return pt;\n}\n\ndrawing.applyBackoff = applyBackoff;\n\n// off-screen svg render testing element, shared by the whole page\n// uses the id 'js-plotly-tester' and stores it in drawing.tester\ndrawing.makeTester = function() {\n var tester = Lib.ensureSingleById(d3.select('body'), 'svg', 'js-plotly-tester', function(s) {\n s.attr(xmlnsNamespaces.svgAttrs)\n .style({\n position: 'absolute',\n left: '-10000px',\n top: '-10000px',\n width: '9000px',\n height: '9000px',\n 'z-index': '1'\n });\n });\n\n // browsers differ on how they describe the bounding rect of\n // the svg if its contents spill over... so make a 1x1px\n // reference point we can measure off of.\n var testref = Lib.ensureSingle(tester, 'path', 'js-reference-point', function(s) {\n s.attr('d', 'M0,0H1V1H0Z')\n .style({\n 'stroke-width': 0,\n fill: 'black'\n });\n });\n\n drawing.tester = tester;\n drawing.testref = testref;\n};\n\n/*\n * use our offscreen tester to get a clientRect for an element,\n * in a reference frame where it isn't translated (or transformed) and\n * its anchor point is at (0,0)\n * always returns a copy of the bbox, so the caller can modify it safely\n *\n * @param {SVGElement} node: the element to measure. If possible this should be\n * a or MathJax element that's already passed through\n * `convertToTspans` because in that case we can cache the results, but it's\n * possible to pass in any svg element.\n *\n * @param {boolean} inTester: is this element already in `drawing.tester`?\n * If you are measuring a dummy element, rather than one you really intend\n * to use on the plot, making it in `drawing.tester` in the first place\n * allows us to test faster because it cuts out cloning and appending it.\n *\n * @param {string} hash: for internal use only, if we already know the cache key\n * for this element beforehand.\n *\n * @return {object}: a plain object containing the width, height, left, right,\n * top, and bottom of `node`\n */\ndrawing.savedBBoxes = {};\nvar savedBBoxesCount = 0;\nvar maxSavedBBoxes = 10000;\n\ndrawing.bBox = function(node, inTester, hash) {\n /*\n * Cache elements we've already measured so we don't have to\n * remeasure the same thing many times\n * We have a few bBox callers though who pass a node larger than\n * a or a MathJax , such as an axis group containing many labels.\n * These will not generate a hash (unless we figure out an appropriate\n * hash key for them) and thus we will not hash them.\n */\n if(!hash) hash = nodeHash(node);\n var out;\n if(hash) {\n out = drawing.savedBBoxes[hash];\n if(out) return Lib.extendFlat({}, out);\n } else if(node.childNodes.length === 1) {\n /*\n * If we have only one child element, which is itself hashable, make\n * a new hash from this element plus its x,y,transform\n * These bounding boxes *include* x,y,transform - mostly for use by\n * callers trying to avoid overlaps (ie titles)\n */\n var innerNode = node.childNodes[0];\n\n hash = nodeHash(innerNode);\n if(hash) {\n var x = +innerNode.getAttribute('x') || 0;\n var y = +innerNode.getAttribute('y') || 0;\n var transform = innerNode.getAttribute('transform');\n\n if(!transform) {\n // in this case, just varying x and y, don't bother caching\n // the final bBox because the alteration is quick.\n var innerBB = drawing.bBox(innerNode, false, hash);\n if(x) {\n innerBB.left += x;\n innerBB.right += x;\n }\n if(y) {\n innerBB.top += y;\n innerBB.bottom += y;\n }\n return innerBB;\n }\n /*\n * else we have a transform - rather than make a complicated\n * (and error-prone and probably slow) transform parser/calculator,\n * just continue on calculating the boundingClientRect of the group\n * and use the new composite hash to cache it.\n * That said, `innerNode.transform.baseVal` is an array of\n * `SVGTransform` objects, that *do* seem to have a nice matrix\n * multiplication interface that we could use to avoid making\n * another getBoundingClientRect call...\n */\n hash += '~' + x + '~' + y + '~' + transform;\n\n out = drawing.savedBBoxes[hash];\n if(out) return Lib.extendFlat({}, out);\n }\n }\n var testNode, tester;\n if(inTester) {\n testNode = node;\n } else {\n tester = drawing.tester.node();\n\n // copy the node to test into the tester\n testNode = node.cloneNode(true);\n tester.appendChild(testNode);\n }\n\n // standardize its position (and newline tspans if any)\n d3.select(testNode)\n .attr('transform', null)\n .call(svgTextUtils.positionText, 0, 0);\n\n var testRect = testNode.getBoundingClientRect();\n var refRect = drawing.testref\n .node()\n .getBoundingClientRect();\n\n if(!inTester) tester.removeChild(testNode);\n\n var bb = {\n height: testRect.height,\n width: testRect.width,\n left: testRect.left - refRect.left,\n top: testRect.top - refRect.top,\n right: testRect.right - refRect.left,\n bottom: testRect.bottom - refRect.top\n };\n\n // make sure we don't have too many saved boxes,\n // or a long session could overload on memory\n // by saving boxes for long-gone elements\n if(savedBBoxesCount >= maxSavedBBoxes) {\n drawing.savedBBoxes = {};\n savedBBoxesCount = 0;\n }\n\n // cache this bbox\n if(hash) drawing.savedBBoxes[hash] = bb;\n savedBBoxesCount++;\n\n return Lib.extendFlat({}, bb);\n};\n\n// capture everything about a node (at least in our usage) that\n// impacts its bounding box, given that bBox clears x, y, and transform\nfunction nodeHash(node) {\n var inputText = node.getAttribute('data-unformatted');\n if(inputText === null) return;\n return inputText +\n node.getAttribute('data-math') +\n node.getAttribute('text-anchor') +\n node.getAttribute('style');\n}\n\n/**\n * Set clipPath URL in a way that work for all situations.\n *\n * In details, graphs on pages with HTML tags need to prepend\n * the clip path ids with the page's base url EXCEPT during toImage exports.\n *\n * @param {d3 selection} s : node to add clip-path attribute\n * @param {string} localId : local clip-path (w/o base url) id\n * @param {DOM element || object} gd\n * - context._baseUrl {string}\n * - context._exportedPlot {boolean}\n */\ndrawing.setClipUrl = function(s, localId, gd) {\n s.attr('clip-path', getFullUrl(localId, gd));\n};\n\nfunction getFullUrl(localId, gd) {\n if(!localId) return null;\n\n var context = gd._context;\n var baseUrl = context._exportedPlot ? '' : (context._baseUrl || '');\n return baseUrl ?\n 'url(\\'' + baseUrl + '#' + localId + '\\')' :\n 'url(#' + localId + ')';\n}\n\ndrawing.getTranslate = function(element) {\n // Note the separator [^\\d] between x and y in this regex\n // We generally use ',' but IE will convert it to ' '\n var re = /.*\\btranslate\\((-?\\d*\\.?\\d*)[^-\\d]*(-?\\d*\\.?\\d*)[^\\d].*/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var transform = element[getter]('transform') || '';\n\n var translate = transform.replace(re, function(match, p1, p2) {\n return [p1, p2].join(' ');\n })\n .split(' ');\n\n return {\n x: +translate[0] || 0,\n y: +translate[1] || 0\n };\n};\n\ndrawing.setTranslate = function(element, x, y) {\n var re = /(\\btranslate\\(.*?\\);?)/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var setter = element.attr ? 'attr' : 'setAttribute';\n var transform = element[getter]('transform') || '';\n\n x = x || 0;\n y = y || 0;\n\n transform = transform.replace(re, '').trim();\n transform += strTranslate(x, y);\n transform = transform.trim();\n\n element[setter]('transform', transform);\n\n return transform;\n};\n\ndrawing.getScale = function(element) {\n var re = /.*\\bscale\\((\\d*\\.?\\d*)[^\\d]*(\\d*\\.?\\d*)[^\\d].*/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var transform = element[getter]('transform') || '';\n\n var translate = transform.replace(re, function(match, p1, p2) {\n return [p1, p2].join(' ');\n })\n .split(' ');\n\n return {\n x: +translate[0] || 1,\n y: +translate[1] || 1\n };\n};\n\ndrawing.setScale = function(element, x, y) {\n var re = /(\\bscale\\(.*?\\);?)/;\n var getter = element.attr ? 'attr' : 'getAttribute';\n var setter = element.attr ? 'attr' : 'setAttribute';\n var transform = element[getter]('transform') || '';\n\n x = x || 1;\n y = y || 1;\n\n transform = transform.replace(re, '').trim();\n transform += 'scale(' + x + ',' + y + ')';\n transform = transform.trim();\n\n element[setter]('transform', transform);\n\n return transform;\n};\n\nvar SCALE_RE = /\\s*sc.*/;\n\ndrawing.setPointGroupScale = function(selection, xScale, yScale) {\n xScale = xScale || 1;\n yScale = yScale || 1;\n\n if(!selection) return;\n\n // The same scale transform for every point:\n var scale = (xScale === 1 && yScale === 1) ?\n '' :\n 'scale(' + xScale + ',' + yScale + ')';\n\n selection.each(function() {\n var t = (this.getAttribute('transform') || '').replace(SCALE_RE, '');\n t += scale;\n t = t.trim();\n this.setAttribute('transform', t);\n });\n};\n\nvar TEXT_POINT_LAST_TRANSLATION_RE = /translate\\([^)]*\\)\\s*$/;\n\ndrawing.setTextPointsScale = function(selection, xScale, yScale) {\n if(!selection) return;\n\n selection.each(function() {\n var transforms;\n var el = d3.select(this);\n var text = el.select('text');\n\n if(!text.node()) return;\n\n var x = parseFloat(text.attr('x') || 0);\n var y = parseFloat(text.attr('y') || 0);\n\n var existingTransform = (el.attr('transform') || '').match(TEXT_POINT_LAST_TRANSLATION_RE);\n\n if(xScale === 1 && yScale === 1) {\n transforms = [];\n } else {\n transforms = [\n strTranslate(x, y),\n 'scale(' + xScale + ',' + yScale + ')',\n strTranslate(-x, -y),\n ];\n }\n\n if(existingTransform) {\n transforms.push(existingTransform);\n }\n\n el.attr('transform', transforms.join(''));\n });\n};\n\nfunction getMarkerStandoff(d, trace) {\n var standoff;\n\n if(d) standoff = d.mf;\n\n if(standoff === undefined) {\n standoff = trace.marker ? trace.marker.standoff || 0 : 0;\n }\n\n if(!trace._geo && !trace._xA) {\n // case of legends\n return -standoff;\n }\n\n return standoff;\n}\n\ndrawing.getMarkerStandoff = getMarkerStandoff;\n\nvar atan2 = Math.atan2;\nvar cos = Math.cos;\nvar sin = Math.sin;\n\nfunction rotate(t, xy) {\n var x = xy[0];\n var y = xy[1];\n return [\n x * cos(t) - y * sin(t),\n x * sin(t) + y * cos(t)\n ];\n}\n\nvar previousLon;\nvar previousLat;\nvar previousX;\nvar previousY;\nvar previousI;\nvar previousTraceUid;\n\nfunction getMarkerAngle(d, trace) {\n var angle = d.ma;\n\n if(angle === undefined) {\n angle = trace.marker.angle || 0;\n }\n\n var x, y;\n var ref = trace.marker.angleref;\n if(ref === 'previous' || ref === 'north') {\n if(trace._geo) {\n var p = trace._geo.project(d.lonlat);\n x = p[0];\n y = p[1];\n } else {\n var xa = trace._xA;\n var ya = trace._yA;\n if(xa && ya) {\n x = xa.c2p(d.x);\n y = ya.c2p(d.y);\n } else {\n // case of legends\n return 90;\n }\n }\n\n if(trace._geo) {\n var lon = d.lonlat[0];\n var lat = d.lonlat[1];\n\n var north = trace._geo.project([\n lon,\n lat + 1e-5 // epsilon\n ]);\n\n var east = trace._geo.project([\n lon + 1e-5, // epsilon\n lat\n ]);\n\n var u = atan2(\n east[1] - y,\n east[0] - x\n );\n\n var v = atan2(\n north[1] - y,\n north[0] - x\n );\n\n var t;\n if(ref === 'north') {\n t = angle / 180 * Math.PI;\n // To use counter-clockwise angles i.e.\n // East: 90, West: -90\n // to facilitate wind visualisations\n // in future we should use t = -t here.\n } else if(ref === 'previous') {\n var lon1 = lon / 180 * Math.PI;\n var lat1 = lat / 180 * Math.PI;\n var lon2 = previousLon / 180 * Math.PI;\n var lat2 = previousLat / 180 * Math.PI;\n\n var dLon = lon2 - lon1;\n\n var deltaY = cos(lat2) * sin(dLon);\n var deltaX = sin(lat2) * cos(lat1) - cos(lat2) * sin(lat1) * cos(dLon);\n\n t = -atan2(\n deltaY,\n deltaX\n ) - Math.PI;\n\n previousLon = lon;\n previousLat = lat;\n }\n\n var A = rotate(u, [cos(t), 0]);\n var B = rotate(v, [sin(t), 0]);\n\n angle = atan2(\n A[1] + B[1],\n A[0] + B[0]\n ) / Math.PI * 180;\n\n if(ref === 'previous' && !(\n previousTraceUid === trace.uid &&\n d.i === previousI + 1\n )) {\n angle = null;\n }\n }\n\n if(ref === 'previous' && !trace._geo) {\n if(\n previousTraceUid === trace.uid &&\n d.i === previousI + 1 &&\n isNumeric(x) &&\n isNumeric(y)\n ) {\n var dX = x - previousX;\n var dY = y - previousY;\n\n var shape = trace.line ? trace.line.shape || '' : '';\n\n var lastShapeChar = shape.slice(shape.length - 1);\n if(lastShapeChar === 'h') dY = 0;\n if(lastShapeChar === 'v') dX = 0;\n\n angle += atan2(dY, dX) / Math.PI * 180 + 90;\n } else {\n angle = null;\n }\n }\n }\n\n previousX = x;\n previousY = y;\n previousI = d.i;\n previousTraceUid = trace.uid;\n\n return angle;\n}\n\ndrawing.getMarkerAngle = getMarkerAngle;\n\n},{\"../../components/fx/helpers\":403,\"../../constants/alignment\":483,\"../../constants/interactions\":490,\"../../constants/xmlns_namespaces\":492,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../registry\":647,\"../../traces/scatter/make_bubble_size_func\":953,\"../../traces/scatter/subtypes\":961,\"../color\":367,\"../colorscale\":379,\"./symbol_defs\":390,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"tinycolor2\":313}],390:[function(_dereq_,module,exports){\n'use strict';\n\nvar parseSvgPath = _dereq_('parse-svg-path');\nvar round = _dereq_('@plotly/d3').round;\n\n/** Marker symbol definitions\n * users can specify markers either by number or name\n * add 100 (or '-open') and you get an open marker\n * open markers have no fill and use line color as the stroke color\n * add 200 (or '-dot') and you get a dot in the middle\n * add both and you get both\n */\n\n\nvar emptyPath = 'M0,0Z';\nvar sqrt2 = Math.sqrt(2);\nvar sqrt3 = Math.sqrt(3);\nvar PI = Math.PI;\nvar cos = Math.cos;\nvar sin = Math.sin;\n\nmodule.exports = {\n circle: {\n n: 0,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n var circle = 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs + 'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';\n return standoff ? align(angle, standoff, circle) : circle;\n }\n },\n square: {\n n: 1,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n return align(angle, standoff, 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z');\n }\n },\n diamond: {\n n: 2,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rd = round(r * 1.3, 2);\n return align(angle, standoff, 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z');\n }\n },\n cross: {\n n: 3,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rc = round(r * 0.4, 2);\n var rc2 = round(r * 1.2, 2);\n return align(angle, standoff, 'M' + rc2 + ',' + rc + 'H' + rc + 'V' + rc2 + 'H-' + rc +\n 'V' + rc + 'H-' + rc2 + 'V-' + rc + 'H-' + rc + 'V-' + rc2 +\n 'H' + rc + 'V-' + rc + 'H' + rc2 + 'Z');\n }\n },\n x: {\n n: 4,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r * 0.8 / sqrt2, 2);\n var ne = 'l' + rx + ',' + rx;\n var se = 'l' + rx + ',-' + rx;\n var sw = 'l-' + rx + ',-' + rx;\n var nw = 'l-' + rx + ',' + rx;\n return align(angle, standoff, 'M0,' + rx + ne + se + sw + se + sw + nw + sw + nw + ne + nw + ne + 'Z');\n }\n },\n 'triangle-up': {\n n: 5,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rt = round(r * 2 / sqrt3, 2);\n var r2 = round(r / 2, 2);\n var rs = round(r, 2);\n return align(angle, standoff, 'M-' + rt + ',' + r2 + 'H' + rt + 'L0,-' + rs + 'Z');\n }\n },\n 'triangle-down': {\n n: 6,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rt = round(r * 2 / sqrt3, 2);\n var r2 = round(r / 2, 2);\n var rs = round(r, 2);\n return align(angle, standoff, 'M-' + rt + ',-' + r2 + 'H' + rt + 'L0,' + rs + 'Z');\n }\n },\n 'triangle-left': {\n n: 7,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rt = round(r * 2 / sqrt3, 2);\n var r2 = round(r / 2, 2);\n var rs = round(r, 2);\n return align(angle, standoff, 'M' + r2 + ',-' + rt + 'V' + rt + 'L-' + rs + ',0Z');\n }\n },\n 'triangle-right': {\n n: 8,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rt = round(r * 2 / sqrt3, 2);\n var r2 = round(r / 2, 2);\n var rs = round(r, 2);\n return align(angle, standoff, 'M-' + r2 + ',-' + rt + 'V' + rt + 'L' + rs + ',0Z');\n }\n },\n 'triangle-ne': {\n n: 9,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var r1 = round(r * 0.6, 2);\n var r2 = round(r * 1.2, 2);\n return align(angle, standoff, 'M-' + r2 + ',-' + r1 + 'H' + r1 + 'V' + r2 + 'Z');\n }\n },\n 'triangle-se': {\n n: 10,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var r1 = round(r * 0.6, 2);\n var r2 = round(r * 1.2, 2);\n return align(angle, standoff, 'M' + r1 + ',-' + r2 + 'V' + r1 + 'H-' + r2 + 'Z');\n }\n },\n 'triangle-sw': {\n n: 11,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var r1 = round(r * 0.6, 2);\n var r2 = round(r * 1.2, 2);\n return align(angle, standoff, 'M' + r2 + ',' + r1 + 'H-' + r1 + 'V-' + r2 + 'Z');\n }\n },\n 'triangle-nw': {\n n: 12,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var r1 = round(r * 0.6, 2);\n var r2 = round(r * 1.2, 2);\n return align(angle, standoff, 'M-' + r1 + ',' + r2 + 'V-' + r1 + 'H' + r2 + 'Z');\n }\n },\n pentagon: {\n n: 13,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x1 = round(r * 0.951, 2);\n var x2 = round(r * 0.588, 2);\n var y0 = round(-r, 2);\n var y1 = round(r * -0.309, 2);\n var y2 = round(r * 0.809, 2);\n return align(angle, standoff, 'M' + x1 + ',' + y1 + 'L' + x2 + ',' + y2 + 'H-' + x2 +\n 'L-' + x1 + ',' + y1 + 'L0,' + y0 + 'Z');\n }\n },\n hexagon: {\n n: 14,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var y0 = round(r, 2);\n var y1 = round(r / 2, 2);\n var x = round(r * sqrt3 / 2, 2);\n return align(angle, standoff, 'M' + x + ',-' + y1 + 'V' + y1 + 'L0,' + y0 +\n 'L-' + x + ',' + y1 + 'V-' + y1 + 'L0,-' + y0 + 'Z');\n }\n },\n hexagon2: {\n n: 15,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x0 = round(r, 2);\n var x1 = round(r / 2, 2);\n var y = round(r * sqrt3 / 2, 2);\n return align(angle, standoff, 'M-' + x1 + ',' + y + 'H' + x1 + 'L' + x0 +\n ',0L' + x1 + ',-' + y + 'H-' + x1 + 'L-' + x0 + ',0Z');\n }\n },\n octagon: {\n n: 16,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var a = round(r * 0.924, 2);\n var b = round(r * 0.383, 2);\n return align(angle, standoff, 'M-' + b + ',-' + a + 'H' + b + 'L' + a + ',-' + b + 'V' + b +\n 'L' + b + ',' + a + 'H-' + b + 'L-' + a + ',' + b + 'V-' + b + 'Z');\n }\n },\n star: {\n n: 17,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = r * 1.4;\n var x1 = round(rs * 0.225, 2);\n var x2 = round(rs * 0.951, 2);\n var x3 = round(rs * 0.363, 2);\n var x4 = round(rs * 0.588, 2);\n var y0 = round(-rs, 2);\n var y1 = round(rs * -0.309, 2);\n var y3 = round(rs * 0.118, 2);\n var y4 = round(rs * 0.809, 2);\n var y5 = round(rs * 0.382, 2);\n return align(angle, standoff, 'M' + x1 + ',' + y1 + 'H' + x2 + 'L' + x3 + ',' + y3 +\n 'L' + x4 + ',' + y4 + 'L0,' + y5 + 'L-' + x4 + ',' + y4 +\n 'L-' + x3 + ',' + y3 + 'L-' + x2 + ',' + y1 + 'H-' + x1 +\n 'L0,' + y0 + 'Z');\n }\n },\n hexagram: {\n n: 18,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var y = round(r * 0.66, 2);\n var x1 = round(r * 0.38, 2);\n var x2 = round(r * 0.76, 2);\n return align(angle, standoff, 'M-' + x2 + ',0l-' + x1 + ',-' + y + 'h' + x2 +\n 'l' + x1 + ',-' + y + 'l' + x1 + ',' + y + 'h' + x2 +\n 'l-' + x1 + ',' + y + 'l' + x1 + ',' + y + 'h-' + x2 +\n 'l-' + x1 + ',' + y + 'l-' + x1 + ',-' + y + 'h-' + x2 + 'Z');\n }\n },\n 'star-triangle-up': {\n n: 19,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x = round(r * sqrt3 * 0.8, 2);\n var y1 = round(r * 0.8, 2);\n var y2 = round(r * 1.6, 2);\n var rc = round(r * 4, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return align(angle, standoff, 'M-' + x + ',' + y1 + aPart + x + ',' + y1 +\n aPart + '0,-' + y2 + aPart + '-' + x + ',' + y1 + 'Z');\n }\n },\n 'star-triangle-down': {\n n: 20,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x = round(r * sqrt3 * 0.8, 2);\n var y1 = round(r * 0.8, 2);\n var y2 = round(r * 1.6, 2);\n var rc = round(r * 4, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return align(angle, standoff, 'M' + x + ',-' + y1 + aPart + '-' + x + ',-' + y1 +\n aPart + '0,' + y2 + aPart + x + ',-' + y1 + 'Z');\n }\n },\n 'star-square': {\n n: 21,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rp = round(r * 1.1, 2);\n var rc = round(r * 2, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return align(angle, standoff, 'M-' + rp + ',-' + rp + aPart + '-' + rp + ',' + rp +\n aPart + rp + ',' + rp + aPart + rp + ',-' + rp +\n aPart + '-' + rp + ',-' + rp + 'Z');\n }\n },\n 'star-diamond': {\n n: 22,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rp = round(r * 1.4, 2);\n var rc = round(r * 1.9, 2);\n var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';\n return align(angle, standoff, 'M-' + rp + ',0' + aPart + '0,' + rp +\n aPart + rp + ',0' + aPart + '0,-' + rp +\n aPart + '-' + rp + ',0' + 'Z');\n }\n },\n 'diamond-tall': {\n n: 23,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x = round(r * 0.7, 2);\n var y = round(r * 1.4, 2);\n return align(angle, standoff, 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z');\n }\n },\n 'diamond-wide': {\n n: 24,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x = round(r * 1.4, 2);\n var y = round(r * 0.7, 2);\n return align(angle, standoff, 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z');\n }\n },\n hourglass: {\n n: 25,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n return align(angle, standoff, 'M' + rs + ',' + rs + 'H-' + rs + 'L' + rs + ',-' + rs + 'H-' + rs + 'Z');\n },\n noDot: true\n },\n bowtie: {\n n: 26,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n return align(angle, standoff, 'M' + rs + ',' + rs + 'V-' + rs + 'L-' + rs + ',' + rs + 'V-' + rs + 'Z');\n },\n noDot: true\n },\n 'circle-cross': {\n n: 27,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n return align(angle, standoff, 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs +\n 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +\n 'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z');\n },\n needLine: true,\n noDot: true\n },\n 'circle-x': {\n n: 28,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n var rc = round(r / sqrt2, 2);\n return align(angle, standoff, 'M' + rc + ',' + rc + 'L-' + rc + ',-' + rc +\n 'M' + rc + ',-' + rc + 'L-' + rc + ',' + rc +\n 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +\n 'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z');\n },\n needLine: true,\n noDot: true\n },\n 'square-cross': {\n n: 29,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n return align(angle, standoff, 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs +\n 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z');\n },\n needLine: true,\n noDot: true\n },\n 'square-x': {\n n: 30,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rs = round(r, 2);\n return align(angle, standoff, 'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs +\n 'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs +\n 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z');\n },\n needLine: true,\n noDot: true\n },\n 'diamond-cross': {\n n: 31,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rd = round(r * 1.3, 2);\n return align(angle, standoff, 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' +\n 'M0,-' + rd + 'V' + rd + 'M-' + rd + ',0H' + rd);\n },\n needLine: true,\n noDot: true\n },\n 'diamond-x': {\n n: 32,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rd = round(r * 1.3, 2);\n var r2 = round(r * 0.65, 2);\n return align(angle, standoff, 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' +\n 'M-' + r2 + ',-' + r2 + 'L' + r2 + ',' + r2 +\n 'M-' + r2 + ',' + r2 + 'L' + r2 + ',-' + r2);\n },\n needLine: true,\n noDot: true\n },\n 'cross-thin': {\n n: 33,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rc = round(r * 1.4, 2);\n return align(angle, standoff, 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'x-thin': {\n n: 34,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n return align(angle, standoff, 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx +\n 'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n asterisk: {\n n: 35,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rc = round(r * 1.2, 2);\n var rs = round(r * 0.85, 2);\n return align(angle, standoff, 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc +\n 'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs +\n 'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n hash: {\n n: 36,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var r1 = round(r / 2, 2);\n var r2 = round(r, 2);\n\n return align(angle, standoff, 'M' + r1 + ',' + r2 + 'V-' + r2 +\n 'M' + (r1 - r2) + ',-' + r2 + 'V' + r2 +\n 'M' + r2 + ',' + r1 + 'H-' + r2 +\n 'M-' + r2 + ',' + (r1 - r2) + 'H' + r2);\n },\n needLine: true,\n noFill: true\n },\n 'y-up': {\n n: 37,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x = round(r * 1.2, 2);\n var y0 = round(r * 1.6, 2);\n var y1 = round(r * 0.8, 2);\n return align(angle, standoff, 'M-' + x + ',' + y1 + 'L0,0M' + x + ',' + y1 + 'L0,0M0,-' + y0 + 'L0,0');\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'y-down': {\n n: 38,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var x = round(r * 1.2, 2);\n var y0 = round(r * 1.6, 2);\n var y1 = round(r * 0.8, 2);\n return align(angle, standoff, 'M-' + x + ',-' + y1 + 'L0,0M' + x + ',-' + y1 + 'L0,0M0,' + y0 + 'L0,0');\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'y-left': {\n n: 39,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var y = round(r * 1.2, 2);\n var x0 = round(r * 1.6, 2);\n var x1 = round(r * 0.8, 2);\n return align(angle, standoff, 'M' + x1 + ',' + y + 'L0,0M' + x1 + ',-' + y + 'L0,0M-' + x0 + ',0L0,0');\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'y-right': {\n n: 40,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var y = round(r * 1.2, 2);\n var x0 = round(r * 1.6, 2);\n var x1 = round(r * 0.8, 2);\n return align(angle, standoff, 'M-' + x1 + ',' + y + 'L0,0M-' + x1 + ',-' + y + 'L0,0M' + x0 + ',0L0,0');\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-ew': {\n n: 41,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rc = round(r * 1.4, 2);\n return align(angle, standoff, 'M' + rc + ',0H-' + rc);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-ns': {\n n: 42,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rc = round(r * 1.4, 2);\n return align(angle, standoff, 'M0,' + rc + 'V-' + rc);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-ne': {\n n: 43,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n return align(angle, standoff, 'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'line-nw': {\n n: 44,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n return align(angle, standoff, 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx);\n },\n needLine: true,\n noDot: true,\n noFill: true\n },\n 'arrow-up': {\n n: 45,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n var ry = round(r * 2, 2);\n return align(angle, standoff, 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z');\n },\n backoff: 1,\n noDot: true\n },\n 'arrow-down': {\n n: 46,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n var ry = round(r * 2, 2);\n return align(angle, standoff, 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z');\n },\n noDot: true\n },\n 'arrow-left': {\n n: 47,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r * 2, 2);\n var ry = round(r, 2);\n return align(angle, standoff, 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z');\n },\n noDot: true\n },\n 'arrow-right': {\n n: 48,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r * 2, 2);\n var ry = round(r, 2);\n return align(angle, standoff, 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z');\n },\n noDot: true\n },\n 'arrow-bar-up': {\n n: 49,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n var ry = round(r * 2, 2);\n return align(angle, standoff, 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z');\n },\n backoff: 1,\n needLine: true,\n noDot: true\n },\n 'arrow-bar-down': {\n n: 50,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r, 2);\n var ry = round(r * 2, 2);\n return align(angle, standoff, 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z');\n },\n needLine: true,\n noDot: true\n },\n 'arrow-bar-left': {\n n: 51,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r * 2, 2);\n var ry = round(r, 2);\n return align(angle, standoff, 'M0,-' + ry + 'V' + ry + 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z');\n },\n needLine: true,\n noDot: true\n },\n 'arrow-bar-right': {\n n: 52,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var rx = round(r * 2, 2);\n var ry = round(r, 2);\n return align(angle, standoff, 'M0,-' + ry + 'V' + ry + 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z');\n },\n needLine: true,\n noDot: true\n },\n 'arrow': {\n n: 53,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var headAngle = PI / 2.5; // 36 degrees - golden ratio\n var x = 2 * r * cos(headAngle);\n var y = 2 * r * sin(headAngle);\n\n return align(angle, standoff,\n 'M0,0' +\n 'L' + -x + ',' + y +\n 'L' + x + ',' + y +\n 'Z'\n );\n },\n backoff: 0.9,\n noDot: true\n },\n 'arrow-wide': {\n n: 54,\n f: function(r, angle, standoff) {\n if(skipAngle(angle)) return emptyPath;\n\n var headAngle = PI / 4; // 90 degrees\n var x = 2 * r * cos(headAngle);\n var y = 2 * r * sin(headAngle);\n\n return align(angle, standoff,\n 'M0,0' +\n 'L' + -x + ',' + y +\n 'A ' + 2 * r + ',' + 2 * r + ' 0 0 1 ' + x + ',' + y +\n 'Z'\n );\n },\n backoff: 0.4,\n noDot: true\n }\n};\n\nfunction skipAngle(angle) {\n return angle === null;\n}\n\nvar lastPathIn, lastPathOut;\nvar lastAngle, lastStandoff;\n\nfunction align(angle, standoff, path) {\n if((!angle || angle % 360 === 0) && !standoff) return path;\n\n if(\n lastAngle === angle &&\n lastStandoff === standoff &&\n lastPathIn === path\n ) return lastPathOut;\n\n lastAngle = angle;\n lastStandoff = standoff;\n lastPathIn = path;\n\n function rotate(t, xy) {\n var cosT = cos(t);\n var sinT = sin(t);\n\n var x = xy[0];\n var y = xy[1] + (standoff || 0);\n return [\n x * cosT - y * sinT,\n x * sinT + y * cosT\n ];\n }\n\n var t = angle / 180 * PI;\n\n var x = 0;\n var y = 0;\n var cmd = parseSvgPath(path);\n var str = '';\n\n for(var i = 0; i < cmd.length; i++) {\n var cmdI = cmd[i];\n var op = cmdI[0];\n\n var x0 = x;\n var y0 = y;\n\n if(op === 'M' || op === 'L') {\n x = +cmdI[1];\n y = +cmdI[2];\n } else if(op === 'm' || op === 'l') {\n x += +cmdI[1];\n y += +cmdI[2];\n } else if(op === 'H') {\n x = +cmdI[1];\n } else if(op === 'h') {\n x += +cmdI[1];\n } else if(op === 'V') {\n y = +cmdI[1];\n } else if(op === 'v') {\n y += +cmdI[1];\n } else if(op === 'A') {\n x = +cmdI[1];\n y = +cmdI[2];\n\n var E = rotate(t, [+cmdI[6], +cmdI[7]]);\n cmdI[6] = E[0];\n cmdI[7] = E[1];\n cmdI[3] = +cmdI[3] + angle;\n }\n\n // change from H, V, h, v to L or l\n if(op === 'H' || op === 'V') op = 'L';\n if(op === 'h' || op === 'v') op = 'l';\n\n if(op === 'm' || op === 'l') {\n x -= x0;\n y -= y0;\n }\n\n var B = rotate(t, [x, y]);\n\n if(op === 'H' || op === 'V') op = 'L';\n\n\n if(\n op === 'M' || op === 'L' ||\n op === 'm' || op === 'l'\n ) {\n cmdI[1] = B[0];\n cmdI[2] = B[1];\n }\n cmdI[0] = op;\n\n str += cmdI[0] + cmdI.slice(1).join(',');\n }\n\n lastPathOut = str;\n\n return str;\n}\n\n},{\"@plotly/d3\":58,\"parse-svg-path\":250}],391:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n visible: {\n valType: 'boolean',\n editType: 'calc',\n },\n type: {\n valType: 'enumerated',\n values: ['percent', 'constant', 'sqrt', 'data'],\n editType: 'calc',\n },\n symmetric: {\n valType: 'boolean',\n editType: 'calc',\n },\n array: {\n valType: 'data_array',\n editType: 'calc',\n },\n arrayminus: {\n valType: 'data_array',\n editType: 'calc',\n },\n value: {\n valType: 'number',\n min: 0,\n dflt: 10,\n editType: 'calc',\n },\n valueminus: {\n valType: 'number',\n min: 0,\n dflt: 10,\n editType: 'calc',\n },\n traceref: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'style'\n },\n tracerefminus: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'style'\n },\n copy_ystyle: {\n valType: 'boolean',\n editType: 'plot'\n },\n copy_zstyle: {\n valType: 'boolean',\n editType: 'style'\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n thickness: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n editType: 'calc',\n\n _deprecated: {\n opacity: {\n valType: 'number',\n editType: 'style',\n }\n }\n};\n\n},{}],392:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\n\nvar makeComputeError = _dereq_('./compute_error');\n\nmodule.exports = function calc(gd) {\n var calcdata = gd.calcdata;\n\n for(var i = 0; i < calcdata.length; i++) {\n var calcTrace = calcdata[i];\n var trace = calcTrace[0].trace;\n\n if(trace.visible === true && Registry.traceIs(trace, 'errorBarsOK')) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n calcOneAxis(calcTrace, trace, xa, 'x');\n calcOneAxis(calcTrace, trace, ya, 'y');\n }\n }\n};\n\nfunction calcOneAxis(calcTrace, trace, axis, coord) {\n var opts = trace['error_' + coord] || {};\n var isVisible = (opts.visible && ['linear', 'log'].indexOf(axis.type) !== -1);\n var vals = [];\n\n if(!isVisible) return;\n\n var computeError = makeComputeError(opts);\n\n for(var i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n\n var iIn = calcPt.i;\n\n // for types that don't include `i` in each calcdata point\n if(iIn === undefined) iIn = i;\n\n // for stacked area inserted points\n // TODO: errorbars have been tested cursorily with stacked area,\n // but not thoroughly. It's not even really clear what you want to do:\n // Should it just be calculated based on that trace's size data?\n // Should you add errors from below in quadrature?\n // And what about normalization, where in principle the errors shrink\n // again when you get up to the top end?\n // One option would be to forbid errorbars with stacking until we\n // decide how to handle these questions.\n else if(iIn === null) continue;\n\n var calcCoord = calcPt[coord];\n\n if(!isNumeric(axis.c2l(calcCoord))) continue;\n\n var errors = computeError(calcCoord, iIn);\n if(isNumeric(errors[0]) && isNumeric(errors[1])) {\n var shoe = calcPt[coord + 's'] = calcCoord - errors[0];\n var hat = calcPt[coord + 'h'] = calcCoord + errors[1];\n vals.push(shoe, hat);\n }\n }\n\n var axId = axis._id;\n var baseExtremes = trace._extremes[axId];\n var extremes = Axes.findExtremes(\n axis,\n vals,\n Lib.extendFlat({tozero: baseExtremes.opts.tozero}, {padded: true})\n );\n baseExtremes.min = baseExtremes.min.concat(extremes.min);\n baseExtremes.max = baseExtremes.max.concat(extremes.max);\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"./compute_error\":393,\"fast-isnumeric\":190}],393:[function(_dereq_,module,exports){\n'use strict';\n\n\n/**\n * Error bar computing function generator\n *\n * N.B. The generated function does not clean the dataPt entries. Non-numeric\n * entries result in undefined error magnitudes.\n *\n * @param {object} opts error bar attributes\n *\n * @return {function} :\n * @param {numeric} dataPt data point from where to compute the error magnitude\n * @param {number} index index of dataPt in its corresponding data array\n * @return {array}\n * - error[0] : error magnitude in the negative direction\n * - error[1] : \" \" \" \" positive \"\n */\nmodule.exports = function makeComputeError(opts) {\n var type = opts.type;\n var symmetric = opts.symmetric;\n\n if(type === 'data') {\n var array = opts.array || [];\n\n if(symmetric) {\n return function computeError(dataPt, index) {\n var val = +(array[index]);\n return [val, val];\n };\n } else {\n var arrayminus = opts.arrayminus || [];\n return function computeError(dataPt, index) {\n var val = +array[index];\n var valMinus = +arrayminus[index];\n // in case one is present and the other is missing, fill in 0\n // so we still see the present one. Mostly useful during manual\n // data entry.\n if(!isNaN(val) || !isNaN(valMinus)) {\n return [valMinus || 0, val || 0];\n }\n return [NaN, NaN];\n };\n }\n } else {\n var computeErrorValue = makeComputeErrorValue(type, opts.value);\n var computeErrorValueMinus = makeComputeErrorValue(type, opts.valueminus);\n\n if(symmetric || opts.valueminus === undefined) {\n return function computeError(dataPt) {\n var val = computeErrorValue(dataPt);\n return [val, val];\n };\n } else {\n return function computeError(dataPt) {\n return [\n computeErrorValueMinus(dataPt),\n computeErrorValue(dataPt)\n ];\n };\n }\n }\n};\n\n/**\n * Compute error bar magnitude (for all types except data)\n *\n * @param {string} type error bar type\n * @param {numeric} value error bar value\n *\n * @return {function} :\n * @param {numeric} dataPt\n */\nfunction makeComputeErrorValue(type, value) {\n if(type === 'percent') {\n return function(dataPt) {\n return Math.abs(dataPt * value / 100);\n };\n }\n if(type === 'constant') {\n return function() {\n return Math.abs(value);\n };\n }\n if(type === 'sqrt') {\n return function(dataPt) {\n return Math.sqrt(Math.abs(dataPt));\n };\n }\n}\n\n},{}],394:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function(traceIn, traceOut, defaultColor, opts) {\n var objName = 'error_' + opts.axis;\n var containerOut = Template.newContainer(traceOut, objName);\n var containerIn = traceIn[objName] || {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n var hasErrorBars = (\n containerIn.array !== undefined ||\n containerIn.value !== undefined ||\n containerIn.type === 'sqrt'\n );\n\n var visible = coerce('visible', hasErrorBars);\n\n if(visible === false) return;\n\n var type = coerce('type', 'array' in containerIn ? 'data' : 'percent');\n var symmetric = true;\n\n if(type !== 'sqrt') {\n symmetric = coerce('symmetric',\n !((type === 'data' ? 'arrayminus' : 'valueminus') in containerIn));\n }\n\n if(type === 'data') {\n coerce('array');\n coerce('traceref');\n if(!symmetric) {\n coerce('arrayminus');\n coerce('tracerefminus');\n }\n } else if(type === 'percent' || type === 'constant') {\n coerce('value');\n if(!symmetric) coerce('valueminus');\n }\n\n var copyAttr = 'copy_' + opts.inherit + 'style';\n if(opts.inherit) {\n var inheritObj = traceOut['error_' + opts.inherit];\n if((inheritObj || {}).visible) {\n coerce(copyAttr, !(containerIn.color ||\n isNumeric(containerIn.thickness) ||\n isNumeric(containerIn.width)));\n }\n }\n if(!opts.inherit || !containerOut[copyAttr]) {\n coerce('color', defaultColor);\n coerce('thickness');\n coerce('width', Registry.traceIs(traceOut, 'gl3d') ? 0 : 4);\n }\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../registry\":647,\"./attributes\":391,\"fast-isnumeric\":190}],395:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar attributes = _dereq_('./attributes');\n\nvar xyAttrs = {\n error_x: Lib.extendFlat({}, attributes),\n error_y: Lib.extendFlat({}, attributes)\n};\ndelete xyAttrs.error_x.copy_zstyle;\ndelete xyAttrs.error_y.copy_zstyle;\ndelete xyAttrs.error_y.copy_ystyle;\n\nvar xyzAttrs = {\n error_x: Lib.extendFlat({}, attributes),\n error_y: Lib.extendFlat({}, attributes),\n error_z: Lib.extendFlat({}, attributes)\n};\ndelete xyzAttrs.error_x.copy_ystyle;\ndelete xyzAttrs.error_y.copy_ystyle;\ndelete xyzAttrs.error_z.copy_ystyle;\ndelete xyzAttrs.error_z.copy_zstyle;\n\nmodule.exports = {\n moduleType: 'component',\n name: 'errorbars',\n\n schema: {\n traces: {\n scatter: xyAttrs,\n bar: xyAttrs,\n histogram: xyAttrs,\n scatter3d: overrideAll(xyzAttrs, 'calc', 'nested'),\n scattergl: overrideAll(xyAttrs, 'calc', 'nested')\n }\n },\n\n supplyDefaults: _dereq_('./defaults'),\n\n calc: _dereq_('./calc'),\n makeComputeError: _dereq_('./compute_error'),\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n hoverInfo: hoverInfo\n};\n\nfunction hoverInfo(calcPoint, trace, hoverPoint) {\n if((trace.error_y || {}).visible) {\n hoverPoint.yerr = calcPoint.yh - calcPoint.y;\n if(!trace.error_y.symmetric) hoverPoint.yerrneg = calcPoint.y - calcPoint.ys;\n }\n if((trace.error_x || {}).visible) {\n hoverPoint.xerr = calcPoint.xh - calcPoint.x;\n if(!trace.error_x.symmetric) hoverPoint.xerrneg = calcPoint.x - calcPoint.xs;\n }\n}\n\n},{\"../../lib\":515,\"../../plot_api/edit_types\":548,\"./attributes\":391,\"./calc\":392,\"./compute_error\":393,\"./defaults\":394,\"./plot\":396,\"./style\":397}],396:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Drawing = _dereq_('../drawing');\nvar subTypes = _dereq_('../../traces/scatter/subtypes');\n\nmodule.exports = function plot(gd, traces, plotinfo, transitionOpts) {\n var isNew;\n\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var hasAnimation = transitionOpts && transitionOpts.duration > 0;\n\n traces.each(function(d) {\n var trace = d[0].trace;\n // || {} is in case the trace (specifically scatterternary)\n // doesn't support error bars at all, but does go through\n // the scatter.plot mechanics, which calls ErrorBars.plot\n // internally\n var xObj = trace.error_x || {};\n var yObj = trace.error_y || {};\n\n var keyFunc;\n\n if(trace.ids) {\n keyFunc = function(d) {return d.id;};\n }\n\n var sparse = (\n subTypes.hasMarkers(trace) &&\n trace.marker.maxdisplayed > 0\n );\n\n if(!yObj.visible && !xObj.visible) d = [];\n\n var errorbars = d3.select(this).selectAll('g.errorbar')\n .data(d, keyFunc);\n\n errorbars.exit().remove();\n\n if(!d.length) return;\n\n if(!xObj.visible) errorbars.selectAll('path.xerror').remove();\n if(!yObj.visible) errorbars.selectAll('path.yerror').remove();\n\n errorbars.style('opacity', 1);\n\n var enter = errorbars.enter().append('g')\n .classed('errorbar', true);\n\n if(hasAnimation) {\n enter.style('opacity', 0).transition()\n .duration(transitionOpts.duration)\n .style('opacity', 1);\n }\n\n Drawing.setClipUrl(errorbars, plotinfo.layerClipId, gd);\n\n errorbars.each(function(d) {\n var errorbar = d3.select(this);\n var coords = errorCoords(d, xa, ya);\n\n if(sparse && !d.vis) return;\n\n var path;\n\n var yerror = errorbar.select('path.yerror');\n if(yObj.visible && isNumeric(coords.x) &&\n isNumeric(coords.yh) &&\n isNumeric(coords.ys)) {\n var yw = yObj.width;\n\n path = 'M' + (coords.x - yw) + ',' +\n coords.yh + 'h' + (2 * yw) + // hat\n 'm-' + yw + ',0V' + coords.ys; // bar\n\n\n if(!coords.noYS) path += 'm-' + yw + ',0h' + (2 * yw); // shoe\n\n isNew = !yerror.size();\n\n if(isNew) {\n yerror = errorbar.append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .classed('yerror', true);\n } else if(hasAnimation) {\n yerror = yerror\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing);\n }\n\n yerror.attr('d', path);\n } else yerror.remove();\n\n var xerror = errorbar.select('path.xerror');\n if(xObj.visible && isNumeric(coords.y) &&\n isNumeric(coords.xh) &&\n isNumeric(coords.xs)) {\n var xw = (xObj.copy_ystyle ? yObj : xObj).width;\n\n path = 'M' + coords.xh + ',' +\n (coords.y - xw) + 'v' + (2 * xw) + // hat\n 'm0,-' + xw + 'H' + coords.xs; // bar\n\n if(!coords.noXS) path += 'm0,-' + xw + 'v' + (2 * xw); // shoe\n\n isNew = !xerror.size();\n\n if(isNew) {\n xerror = errorbar.append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .classed('xerror', true);\n } else if(hasAnimation) {\n xerror = xerror\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing);\n }\n\n xerror.attr('d', path);\n } else xerror.remove();\n });\n });\n};\n\n// compute the coordinates of the error-bar objects\nfunction errorCoords(d, xa, ya) {\n var out = {\n x: xa.c2p(d.x),\n y: ya.c2p(d.y)\n };\n\n // calculate the error bar size and hat and shoe locations\n if(d.yh !== undefined) {\n out.yh = ya.c2p(d.yh);\n out.ys = ya.c2p(d.ys);\n\n // if the shoes go off-scale (ie log scale, error bars past zero)\n // clip the bar and hide the shoes\n if(!isNumeric(out.ys)) {\n out.noYS = true;\n out.ys = ya.c2p(d.ys, true);\n }\n }\n\n if(d.xh !== undefined) {\n out.xh = xa.c2p(d.xh);\n out.xs = xa.c2p(d.xs);\n\n if(!isNumeric(out.xs)) {\n out.noXS = true;\n out.xs = xa.c2p(d.xs, true);\n }\n }\n\n return out;\n}\n\n},{\"../../traces/scatter/subtypes\":961,\"../drawing\":389,\"@plotly/d3\":58,\"fast-isnumeric\":190}],397:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Color = _dereq_('../color');\n\n\nmodule.exports = function style(traces) {\n traces.each(function(d) {\n var trace = d[0].trace;\n var yObj = trace.error_y || {};\n var xObj = trace.error_x || {};\n\n var s = d3.select(this);\n\n s.selectAll('path.yerror')\n .style('stroke-width', yObj.thickness + 'px')\n .call(Color.stroke, yObj.color);\n\n if(xObj.copy_ystyle) xObj = yObj;\n\n s.selectAll('path.xerror')\n .style('stroke-width', xObj.thickness + 'px')\n .call(Color.stroke, xObj.color);\n });\n};\n\n},{\"../color\":367,\"@plotly/d3\":58}],398:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar hoverLabelAttrs = _dereq_('./layout_attributes').hoverlabel;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n hoverlabel: {\n bgcolor: extendFlat({}, hoverLabelAttrs.bgcolor, {\n arrayOk: true,\n }),\n bordercolor: extendFlat({}, hoverLabelAttrs.bordercolor, {\n arrayOk: true,\n }),\n font: fontAttrs({\n arrayOk: true,\n editType: 'none',\n }),\n align: extendFlat({}, hoverLabelAttrs.align, {arrayOk: true}),\n namelength: extendFlat({}, hoverLabelAttrs.namelength, {arrayOk: true}),\n editType: 'none'\n }\n};\n\n},{\"../../lib/extend\":505,\"../../plots/font_attributes\":594,\"./layout_attributes\":408}],399:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nmodule.exports = function calc(gd) {\n var calcdata = gd.calcdata;\n var fullLayout = gd._fullLayout;\n\n function makeCoerceHoverInfo(trace) {\n return function(val) {\n return Lib.coerceHoverinfo({hoverinfo: val}, {_module: trace._module}, fullLayout);\n };\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var trace = cd[0].trace;\n\n // don't include hover calc fields for pie traces\n // as calcdata items might be sorted by value and\n // won't match the data array order.\n if(Registry.traceIs(trace, 'pie-like')) continue;\n\n var fillFn = Registry.traceIs(trace, '2dMap') ? paste : Lib.fillArray;\n\n fillFn(trace.hoverinfo, cd, 'hi', makeCoerceHoverInfo(trace));\n\n if(trace.hovertemplate) fillFn(trace.hovertemplate, cd, 'ht');\n\n if(!trace.hoverlabel) continue;\n\n fillFn(trace.hoverlabel.bgcolor, cd, 'hbg');\n fillFn(trace.hoverlabel.bordercolor, cd, 'hbc');\n fillFn(trace.hoverlabel.font.size, cd, 'hts');\n fillFn(trace.hoverlabel.font.color, cd, 'htc');\n fillFn(trace.hoverlabel.font.family, cd, 'htf');\n fillFn(trace.hoverlabel.namelength, cd, 'hnl');\n fillFn(trace.hoverlabel.align, cd, 'hta');\n }\n};\n\nfunction paste(traceAttr, cd, cdAttr, fn) {\n fn = fn || Lib.identity;\n\n if(Array.isArray(traceAttr)) {\n cd[0][cdAttr] = fn(traceAttr);\n }\n}\n\n},{\"../../lib\":515,\"../../registry\":647}],400:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar hover = _dereq_('./hover').hover;\n\nmodule.exports = function click(gd, evt, subplot) {\n var annotationsDone = Registry.getComponentMethod('annotations', 'onClick')(gd, gd._hoverdata);\n\n // fallback to fail-safe in case the plot type's hover method doesn't pass the subplot.\n // Ternary, for example, didn't, but it was caught because tested.\n if(subplot !== undefined) {\n // The true flag at the end causes it to re-run the hover computation to figure out *which*\n // point is being clicked. Without this, clicking is somewhat unreliable.\n hover(gd, evt, subplot, true);\n }\n\n function emitClick() { gd.emit('plotly_click', {points: gd._hoverdata, event: evt}); }\n\n if(gd._hoverdata && evt && evt.target) {\n if(annotationsDone && annotationsDone.then) {\n annotationsDone.then(emitClick);\n } else emitClick();\n\n // why do we get a double event without this???\n if(evt.stopImmediatePropagation) evt.stopImmediatePropagation();\n }\n};\n\n},{\"../../registry\":647,\"./hover\":404}],401:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // hover labels for multiple horizontal bars get tilted by this angle\n YANGLE: 60,\n\n // size and display constants for hover text\n\n // pixel size of hover arrows\n HOVERARROWSIZE: 6,\n // pixels padding around text\n HOVERTEXTPAD: 3,\n // hover font\n HOVERFONTSIZE: 13,\n HOVERFONT: 'Arial, sans-serif',\n\n // minimum time (msec) between hover calls\n HOVERMINTIME: 50,\n\n // ID suffix (with fullLayout._uid) for hover events in the throttle cache\n HOVERID: '-hover'\n};\n\n},{}],402:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleHoverLabelDefaults = _dereq_('./hoverlabel_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var opts = Lib.extendFlat({}, layout.hoverlabel);\n if(traceOut.hovertemplate) opts.namelength = -1;\n\n handleHoverLabelDefaults(traceIn, traceOut, coerce, opts);\n};\n\n},{\"../../lib\":515,\"./attributes\":398,\"./hoverlabel_defaults\":405}],403:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// look for either subplot or xaxis and yaxis attributes\n// does not handle splom case\nexports.getSubplot = function(trace) {\n return trace.subplot || (trace.xaxis + trace.yaxis) || trace.geo;\n};\n\n// is trace in given list of subplots?\n// does handle splom case\nexports.isTraceInSubplots = function(trace, subplots) {\n if(trace.type === 'splom') {\n var xaxes = trace.xaxes || [];\n var yaxes = trace.yaxes || [];\n for(var i = 0; i < xaxes.length; i++) {\n for(var j = 0; j < yaxes.length; j++) {\n if(subplots.indexOf(xaxes[i] + yaxes[j]) !== -1) {\n return true;\n }\n }\n }\n return false;\n }\n\n return subplots.indexOf(exports.getSubplot(trace)) !== -1;\n};\n\n// convenience functions for mapping all relevant axes\nexports.flat = function(subplots, v) {\n var out = new Array(subplots.length);\n for(var i = 0; i < subplots.length; i++) {\n out[i] = v;\n }\n return out;\n};\n\nexports.p2c = function(axArray, v) {\n var out = new Array(axArray.length);\n for(var i = 0; i < axArray.length; i++) {\n out[i] = axArray[i].p2c(v);\n }\n return out;\n};\n\nexports.getDistanceFunction = function(mode, dx, dy, dxy) {\n if(mode === 'closest') return dxy || exports.quadrature(dx, dy);\n return mode.charAt(0) === 'x' ? dx : dy;\n};\n\nexports.getClosest = function(cd, distfn, pointData) {\n // do we already have a point number? (array mode only)\n if(pointData.index !== false) {\n if(pointData.index >= 0 && pointData.index < cd.length) {\n pointData.distance = 0;\n } else pointData.index = false;\n } else {\n // apply the distance function to each data point\n // this is the longest loop... if this bogs down, we may need\n // to create pre-sorted data (by x or y), not sure how to\n // do this for 'closest'\n for(var i = 0; i < cd.length; i++) {\n var newDistance = distfn(cd[i]);\n if(newDistance <= pointData.distance) {\n pointData.index = i;\n pointData.distance = newDistance;\n }\n }\n }\n return pointData;\n};\n\n/*\n * pseudo-distance function for hover effects on areas: inside the region\n * distance is finite (`passVal`), outside it's Infinity.\n *\n * @param {number} v0: signed difference between the current position and the left edge\n * @param {number} v1: signed difference between the current position and the right edge\n * @param {number} passVal: the value to return on success\n */\nexports.inbox = function(v0, v1, passVal) {\n return (v0 * v1 < 0 || v0 === 0) ? passVal : Infinity;\n};\n\nexports.quadrature = function(dx, dy) {\n return function(di) {\n var x = dx(di);\n var y = dy(di);\n return Math.sqrt(x * x + y * y);\n };\n};\n\n/** Fill event data point object for hover and selection.\n * Invokes _module.eventData if present.\n *\n * N.B. note that point 'index' corresponds to input data array index\n * whereas 'number' is its post-transform version.\n *\n * If the hovered/selected pt corresponds to an multiple input points\n * (e.g. for histogram and transformed traces), 'pointNumbers` and 'pointIndices'\n * are include in the event data.\n *\n * @param {object} pt\n * @param {object} trace\n * @param {object} cd\n * @return {object}\n */\nexports.makeEventData = function(pt, trace, cd) {\n // hover uses 'index', select uses 'pointNumber'\n var pointNumber = 'index' in pt ? pt.index : pt.pointNumber;\n\n var out = {\n data: trace._input,\n fullData: trace,\n curveNumber: trace.index,\n pointNumber: pointNumber\n };\n\n if(trace._indexToPoints) {\n var pointIndices = trace._indexToPoints[pointNumber];\n\n if(pointIndices.length === 1) {\n out.pointIndex = pointIndices[0];\n } else {\n out.pointIndices = pointIndices;\n }\n } else {\n out.pointIndex = pointNumber;\n }\n\n if(trace._module.eventData) {\n out = trace._module.eventData(out, pt, trace, cd, pointNumber);\n } else {\n if('xVal' in pt) out.x = pt.xVal;\n else if('x' in pt) out.x = pt.x;\n\n if('yVal' in pt) out.y = pt.yVal;\n else if('y' in pt) out.y = pt.y;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n if(pt.zLabelVal !== undefined) out.z = pt.zLabelVal;\n }\n\n exports.appendArrayPointValue(out, trace, pointNumber);\n\n return out;\n};\n\n/** Appends values inside array attributes corresponding to given point number\n *\n * @param {object} pointData : point data object (gets mutated here)\n * @param {object} trace : full trace object\n * @param {number|Array(number)} pointNumber : point number. May be a length-2 array\n * [row, col] to dig into 2D arrays\n */\nexports.appendArrayPointValue = function(pointData, trace, pointNumber) {\n var arrayAttrs = trace._arrayAttrs;\n\n if(!arrayAttrs) {\n return;\n }\n\n for(var i = 0; i < arrayAttrs.length; i++) {\n var astr = arrayAttrs[i];\n var key = getPointKey(astr);\n\n if(pointData[key] === undefined) {\n var val = Lib.nestedProperty(trace, astr).get();\n var pointVal = getPointData(val, pointNumber);\n\n if(pointVal !== undefined) pointData[key] = pointVal;\n }\n }\n};\n\n/**\n * Appends values inside array attributes corresponding to given point number array\n * For use when pointData references a plot entity that arose (or potentially arose)\n * from multiple points in the input data\n *\n * @param {object} pointData : point data object (gets mutated here)\n * @param {object} trace : full trace object\n * @param {Array(number)|Array(Array(number))} pointNumbers : Array of point numbers.\n * Each entry in the array may itself be a length-2 array [row, col] to dig into 2D arrays\n */\nexports.appendArrayMultiPointValues = function(pointData, trace, pointNumbers) {\n var arrayAttrs = trace._arrayAttrs;\n\n if(!arrayAttrs) {\n return;\n }\n\n for(var i = 0; i < arrayAttrs.length; i++) {\n var astr = arrayAttrs[i];\n var key = getPointKey(astr);\n\n if(pointData[key] === undefined) {\n var val = Lib.nestedProperty(trace, astr).get();\n var keyVal = new Array(pointNumbers.length);\n\n for(var j = 0; j < pointNumbers.length; j++) {\n keyVal[j] = getPointData(val, pointNumbers[j]);\n }\n pointData[key] = keyVal;\n }\n }\n};\n\nvar pointKeyMap = {\n ids: 'id',\n locations: 'location',\n labels: 'label',\n values: 'value',\n 'marker.colors': 'color',\n parents: 'parent'\n};\n\nfunction getPointKey(astr) {\n return pointKeyMap[astr] || astr;\n}\n\nfunction getPointData(val, pointNumber) {\n if(Array.isArray(pointNumber)) {\n if(Array.isArray(val) && Array.isArray(val[pointNumber[0]])) {\n return val[pointNumber[0]][pointNumber[1]];\n }\n } else {\n return val[pointNumber];\n }\n}\n\nvar xyHoverMode = {\n x: true,\n y: true\n};\n\nvar unifiedHoverMode = {\n 'x unified': true,\n 'y unified': true\n};\n\nexports.isUnifiedHover = function(hovermode) {\n if(typeof hovermode !== 'string') return false;\n return !!unifiedHoverMode[hovermode];\n};\n\nexports.isXYhover = function(hovermode) {\n if(typeof hovermode !== 'string') return false;\n return !!xyHoverMode[hovermode];\n};\n\n},{\"../../lib\":515}],404:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar strRotate = Lib.strRotate;\nvar Events = _dereq_('../../lib/events');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar overrideCursor = _dereq_('../../lib/override_cursor');\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar dragElement = _dereq_('../dragelement');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Registry = _dereq_('../../registry');\n\nvar helpers = _dereq_('./helpers');\nvar constants = _dereq_('./constants');\n\nvar legendSupplyDefaults = _dereq_('../legend/defaults');\nvar legendDraw = _dereq_('../legend/draw');\n\n// hover labels for multiple horizontal bars get tilted by some angle,\n// then need to be offset differently if they overlap\nvar YANGLE = constants.YANGLE;\nvar YA_RADIANS = Math.PI * YANGLE / 180;\n\n// expansion of projected height\nvar YFACTOR = 1 / Math.sin(YA_RADIANS);\n\n// to make the appropriate post-rotation x offset,\n// you need both x and y offsets\nvar YSHIFTX = Math.cos(YA_RADIANS);\nvar YSHIFTY = Math.sin(YA_RADIANS);\n\n// size and display constants for hover text\nvar HOVERARROWSIZE = constants.HOVERARROWSIZE;\nvar HOVERTEXTPAD = constants.HOVERTEXTPAD;\n\nvar multipleHoverPoints = {\n box: true,\n ohlc: true,\n violin: true,\n candlestick: true\n};\n\nvar cartesianScatterPoints = {\n scatter: true,\n scattergl: true,\n splom: true\n};\n\n// fx.hover: highlight data on hover\n// evt can be a mousemove event, or an object with data about what points\n// to hover on\n// {xpx,ypx[,hovermode]} - pixel locations from top left\n// (with optional overriding hovermode)\n// {xval,yval[,hovermode]} - data values\n// [{curveNumber,(pointNumber|xval and/or yval)}] -\n// array of specific points to highlight\n// pointNumber is a single integer if gd.data[curveNumber] is 1D,\n// or a two-element array if it's 2D\n// xval and yval are data values,\n// 1D data may specify either or both,\n// 2D data must specify both\n// subplot is an id string (default \"xy\")\n// makes use of gl.hovermode, which can be:\n// x (find the points with the closest x values, ie a column),\n// closest (find the single closest point)\n// internally there are two more that occasionally get used:\n// y (pick out a row - only used for multiple horizontal bar charts)\n// array (used when the user specifies an explicit\n// array of points to hover on)\n//\n// We wrap the hovers in a timer, to limit their frequency.\n// The actual rendering is done by private function _hover.\nexports.hover = function hover(gd, evt, subplot, noHoverEvent) {\n gd = Lib.getGraphDiv(gd);\n // The 'target' property changes when bubbling out of Shadow DOM.\n // Throttling can delay reading the target, so we save the current value.\n var eventTarget = evt.target;\n Lib.throttle(\n gd._fullLayout._uid + constants.HOVERID,\n constants.HOVERMINTIME,\n function() { _hover(gd, evt, subplot, noHoverEvent, eventTarget); }\n );\n};\n\n/*\n * Draw a single hover item or an array of hover item in a pre-existing svg container somewhere\n * hoverItem should have keys:\n * - x and y (or x0, x1, y0, and y1):\n * the pixel position to mark, relative to opts.container\n * - xLabel, yLabel, zLabel, text, and name:\n * info to go in the label\n * - color:\n * the background color for the label.\n * - idealAlign (optional):\n * 'left' or 'right' for which side of the x/y box to try to put this on first\n * - borderColor (optional):\n * color for the border, defaults to strongest contrast with color\n * - fontFamily (optional):\n * string, the font for this label, defaults to constants.HOVERFONT\n * - fontSize (optional):\n * the label font size, defaults to constants.HOVERFONTSIZE\n * - fontColor (optional):\n * defaults to borderColor\n * opts should have keys:\n * - bgColor:\n * the background color this is against, used if the trace is\n * non-opaque, and for the name, which goes outside the box\n * - container:\n * a or element to add the hover label to\n * - outerContainer:\n * normally a parent of `container`, sets the bounding box to use to\n * constrain the hover label and determine whether to show it on the left or right\n * opts can have optional keys:\n * - anchorIndex:\n the index of the hover item used as an anchor for positioning.\n The other hover items will be pushed up or down to prevent overlap.\n */\nexports.loneHover = function loneHover(hoverItems, opts) {\n var multiHover = true;\n if(!Array.isArray(hoverItems)) {\n multiHover = false;\n hoverItems = [hoverItems];\n }\n\n var gd = opts.gd;\n var gTop = getTopOffset(gd);\n var gLeft = getLeftOffset(gd);\n\n var pointsData = hoverItems.map(function(hoverItem) {\n var _x0 = hoverItem._x0 || hoverItem.x0 || hoverItem.x || 0;\n var _x1 = hoverItem._x1 || hoverItem.x1 || hoverItem.x || 0;\n var _y0 = hoverItem._y0 || hoverItem.y0 || hoverItem.y || 0;\n var _y1 = hoverItem._y1 || hoverItem.y1 || hoverItem.y || 0;\n\n var eventData = hoverItem.eventData;\n if(eventData) {\n var x0 = Math.min(_x0, _x1);\n var x1 = Math.max(_x0, _x1);\n var y0 = Math.min(_y0, _y1);\n var y1 = Math.max(_y0, _y1);\n\n var trace = hoverItem.trace;\n if(Registry.traceIs(trace, 'gl3d')) {\n var container = gd._fullLayout[trace.scene]._scene.container;\n var dx = container.offsetLeft;\n var dy = container.offsetTop;\n x0 += dx;\n x1 += dx;\n y0 += dy;\n y1 += dy;\n } // TODO: handle heatmapgl\n\n eventData.bbox = {\n x0: x0 + gLeft,\n x1: x1 + gLeft,\n y0: y0 + gTop,\n y1: y1 + gTop\n };\n\n if(opts.inOut_bbox) {\n opts.inOut_bbox.push(eventData.bbox);\n }\n } else {\n eventData = false;\n }\n\n return {\n color: hoverItem.color || Color.defaultLine,\n x0: hoverItem.x0 || hoverItem.x || 0,\n x1: hoverItem.x1 || hoverItem.x || 0,\n y0: hoverItem.y0 || hoverItem.y || 0,\n y1: hoverItem.y1 || hoverItem.y || 0,\n xLabel: hoverItem.xLabel,\n yLabel: hoverItem.yLabel,\n zLabel: hoverItem.zLabel,\n text: hoverItem.text,\n name: hoverItem.name,\n idealAlign: hoverItem.idealAlign,\n\n // optional extra bits of styling\n borderColor: hoverItem.borderColor,\n fontFamily: hoverItem.fontFamily,\n fontSize: hoverItem.fontSize,\n fontColor: hoverItem.fontColor,\n nameLength: hoverItem.nameLength,\n textAlign: hoverItem.textAlign,\n\n // filler to make createHoverText happy\n trace: hoverItem.trace || {\n index: 0,\n hoverinfo: ''\n },\n xa: {_offset: 0},\n ya: {_offset: 0},\n index: 0,\n\n hovertemplate: hoverItem.hovertemplate || false,\n hovertemplateLabels: hoverItem.hovertemplateLabels || false,\n\n eventData: eventData\n };\n });\n\n var rotateLabels = false;\n\n var hoverLabel = createHoverText(pointsData, {\n gd: gd,\n hovermode: 'closest',\n rotateLabels: rotateLabels,\n bgColor: opts.bgColor || Color.background,\n container: d3.select(opts.container),\n outerContainer: opts.outerContainer || opts.container\n });\n\n // Fix vertical overlap\n var tooltipSpacing = 5;\n var lastBottomY = 0;\n var anchor = 0;\n hoverLabel\n .sort(function(a, b) {return a.y0 - b.y0;})\n .each(function(d, i) {\n var topY = d.y0 - d.by / 2;\n\n if((topY - tooltipSpacing) < lastBottomY) {\n d.offset = (lastBottomY - topY) + tooltipSpacing;\n } else {\n d.offset = 0;\n }\n\n lastBottomY = topY + d.by + d.offset;\n\n if(i === opts.anchorIndex || 0) anchor = d.offset;\n })\n .each(function(d) {\n d.offset -= anchor;\n });\n\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY);\n\n return multiHover ? hoverLabel : hoverLabel.node();\n};\n\n// The actual implementation is here:\nfunction _hover(gd, evt, subplot, noHoverEvent, eventTarget) {\n if(!subplot) subplot = 'xy';\n\n // if the user passed in an array of subplots,\n // use those instead of finding overlayed plots\n var subplots = Array.isArray(subplot) ? subplot : [subplot];\n\n var fullLayout = gd._fullLayout;\n var plots = fullLayout._plots || [];\n var plotinfo = plots[subplot];\n var hasCartesian = fullLayout._has('cartesian');\n\n // list of all overlaid subplots to look at\n if(plotinfo) {\n var overlayedSubplots = plotinfo.overlays.map(function(pi) {\n return pi.id;\n });\n\n subplots = subplots.concat(overlayedSubplots);\n }\n\n var len = subplots.length;\n var xaArray = new Array(len);\n var yaArray = new Array(len);\n var supportsCompare = false;\n\n for(var i = 0; i < len; i++) {\n var spId = subplots[i];\n\n if(plots[spId]) {\n // 'cartesian' case\n supportsCompare = true;\n xaArray[i] = plots[spId].xaxis;\n yaArray[i] = plots[spId].yaxis;\n } else if(fullLayout[spId] && fullLayout[spId]._subplot) {\n // other subplot types\n var _subplot = fullLayout[spId]._subplot;\n xaArray[i] = _subplot.xaxis;\n yaArray[i] = _subplot.yaxis;\n } else {\n Lib.warn('Unrecognized subplot: ' + spId);\n return;\n }\n }\n\n var hovermode = evt.hovermode || fullLayout.hovermode;\n\n if(hovermode && !supportsCompare) hovermode = 'closest';\n\n if(['x', 'y', 'closest', 'x unified', 'y unified'].indexOf(hovermode) === -1 || !gd.calcdata ||\n gd.querySelector('.zoombox') || gd._dragging) {\n return dragElement.unhoverRaw(gd, evt);\n }\n\n var hoverdistance = fullLayout.hoverdistance;\n if(hoverdistance === -1) hoverdistance = Infinity;\n\n var spikedistance = fullLayout.spikedistance;\n if(spikedistance === -1) spikedistance = Infinity;\n\n // hoverData: the set of candidate points we've found to highlight\n var hoverData = [];\n\n // searchData: the data to search in. Mostly this is just a copy of\n // gd.calcdata, filtered to the subplot and overlays we're on\n // but if a point array is supplied it will be a mapping\n // of indicated curves\n var searchData = [];\n\n // [x|y]valArray: the axis values of the hover event\n // mapped onto each of the currently selected overlaid subplots\n var xvalArray, yvalArray;\n\n var itemnum, curvenum, cd, trace, subplotId, subploti, _mode,\n xval, yval, pointData, closedataPreviousLength;\n\n // spikePoints: the set of candidate points we've found to draw spikes to\n var spikePoints = {\n hLinePoint: null,\n vLinePoint: null\n };\n\n // does subplot have one (or more) horizontal traces?\n // This is used to determine whether we rotate the labels or not\n var hasOneHorizontalTrace = false;\n\n // Figure out what we're hovering on:\n // mouse location or user-supplied data\n\n if(Array.isArray(evt)) {\n // user specified an array of points to highlight\n hovermode = 'array';\n for(itemnum = 0; itemnum < evt.length; itemnum++) {\n cd = gd.calcdata[evt[itemnum].curveNumber || 0];\n if(cd) {\n trace = cd[0].trace;\n if(cd[0].trace.hoverinfo !== 'skip') {\n searchData.push(cd);\n if(trace.orientation === 'h') {\n hasOneHorizontalTrace = true;\n }\n }\n }\n }\n } else {\n for(curvenum = 0; curvenum < gd.calcdata.length; curvenum++) {\n cd = gd.calcdata[curvenum];\n trace = cd[0].trace;\n if(trace.hoverinfo !== 'skip' && helpers.isTraceInSubplots(trace, subplots)) {\n searchData.push(cd);\n if(trace.orientation === 'h') {\n hasOneHorizontalTrace = true;\n }\n }\n }\n\n // [x|y]px: the pixels (from top left) of the mouse location\n // on the currently selected plot area\n // add pointerX|Y property for drawing the spikes in spikesnap 'cursor' situation\n var hasUserCalledHover = !eventTarget;\n var xpx, ypx;\n\n if(hasUserCalledHover) {\n if('xpx' in evt) xpx = evt.xpx;\n else xpx = xaArray[0]._length / 2;\n\n if('ypx' in evt) ypx = evt.ypx;\n else ypx = yaArray[0]._length / 2;\n } else {\n // fire the beforehover event and quit if it returns false\n // note that we're only calling this on real mouse events, so\n // manual calls to fx.hover will always run.\n if(Events.triggerHandler(gd, 'plotly_beforehover', evt) === false) {\n return;\n }\n\n var dbb = eventTarget.getBoundingClientRect();\n\n xpx = evt.clientX - dbb.left;\n ypx = evt.clientY - dbb.top;\n\n fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(fullLayout._invTransform)(xpx, ypx);\n\n xpx = transformedCoords[0];\n ypx = transformedCoords[1];\n\n // in case hover was called from mouseout into hovertext,\n // it's possible you're not actually over the plot anymore\n if(xpx < 0 || xpx > xaArray[0]._length || ypx < 0 || ypx > yaArray[0]._length) {\n return dragElement.unhoverRaw(gd, evt);\n }\n }\n\n evt.pointerX = xpx + xaArray[0]._offset;\n evt.pointerY = ypx + yaArray[0]._offset;\n\n if('xval' in evt) xvalArray = helpers.flat(subplots, evt.xval);\n else xvalArray = helpers.p2c(xaArray, xpx);\n\n if('yval' in evt) yvalArray = helpers.flat(subplots, evt.yval);\n else yvalArray = helpers.p2c(yaArray, ypx);\n\n if(!isNumeric(xvalArray[0]) || !isNumeric(yvalArray[0])) {\n Lib.warn('Fx.hover failed', evt, gd);\n return dragElement.unhoverRaw(gd, evt);\n }\n }\n\n // the pixel distance to beat as a matching point\n // in 'x' or 'y' mode this resets for each trace\n var distance = Infinity;\n\n // find the closest point in each trace\n // this is minimum dx and/or dy, depending on mode\n // and the pixel position for the label (labelXpx, labelYpx)\n function findHoverPoints(customXVal, customYVal) {\n for(curvenum = 0; curvenum < searchData.length; curvenum++) {\n cd = searchData[curvenum];\n\n // filter out invisible or broken data\n if(!cd || !cd[0] || !cd[0].trace) continue;\n\n trace = cd[0].trace;\n\n if(trace.visible !== true || trace._length === 0) continue;\n\n // Explicitly bail out for these two. I don't know how to otherwise prevent\n // the rest of this function from running and failing\n if(['carpet', 'contourcarpet'].indexOf(trace._module.name) !== -1) continue;\n\n if(trace.type === 'splom') {\n // splom traces do not generate overlay subplots,\n // it is safe to assume here splom traces correspond to the 0th subplot\n subploti = 0;\n subplotId = subplots[subploti];\n } else {\n subplotId = helpers.getSubplot(trace);\n subploti = subplots.indexOf(subplotId);\n }\n\n // within one trace mode can sometimes be overridden\n _mode = hovermode;\n if(helpers.isUnifiedHover(_mode)) {\n _mode = _mode.charAt(0);\n }\n\n // container for new point, also used to pass info into module.hoverPoints\n pointData = {\n // trace properties\n cd: cd,\n trace: trace,\n xa: xaArray[subploti],\n ya: yaArray[subploti],\n\n // max distances for hover and spikes - for points that want to show but do not\n // want to override other points, set distance/spikeDistance equal to max*Distance\n // and it will not get filtered out but it will be guaranteed to have a greater\n // distance than any point that calculated a real distance.\n maxHoverDistance: hoverdistance,\n maxSpikeDistance: spikedistance,\n\n // point properties - override all of these\n index: false, // point index in trace - only used by plotly.js hoverdata consumers\n distance: Math.min(distance, hoverdistance), // pixel distance or pseudo-distance\n\n // distance/pseudo-distance for spikes. This distance should always be calculated\n // as if in \"closest\" mode, and should only be set if this point should\n // generate a spike.\n spikeDistance: Infinity,\n\n // in some cases the spikes have different positioning from the hover label\n // they don't need x0/x1, just one position\n xSpike: undefined,\n ySpike: undefined,\n\n // where and how to display the hover label\n color: Color.defaultLine, // trace color\n name: trace.name,\n x0: undefined,\n x1: undefined,\n y0: undefined,\n y1: undefined,\n xLabelVal: undefined,\n yLabelVal: undefined,\n zLabelVal: undefined,\n text: undefined\n };\n\n // add ref to subplot object (non-cartesian case)\n if(fullLayout[subplotId]) {\n pointData.subplot = fullLayout[subplotId]._subplot;\n }\n // add ref to splom scene\n if(fullLayout._splomScenes && fullLayout._splomScenes[trace.uid]) {\n pointData.scene = fullLayout._splomScenes[trace.uid];\n }\n\n closedataPreviousLength = hoverData.length;\n\n // for a highlighting array, figure out what\n // we're searching for with this element\n if(_mode === 'array') {\n var selection = evt[curvenum];\n if('pointNumber' in selection) {\n pointData.index = selection.pointNumber;\n _mode = 'closest';\n } else {\n _mode = '';\n if('xval' in selection) {\n xval = selection.xval;\n _mode = 'x';\n }\n if('yval' in selection) {\n yval = selection.yval;\n _mode = _mode ? 'closest' : 'y';\n }\n }\n } else if(customXVal !== undefined && customYVal !== undefined) {\n xval = customXVal;\n yval = customYVal;\n } else {\n xval = xvalArray[subploti];\n yval = yvalArray[subploti];\n }\n\n // Now if there is range to look in, find the points to hover.\n if(hoverdistance !== 0) {\n if(trace._module && trace._module.hoverPoints) {\n var newPoints = trace._module.hoverPoints(pointData, xval, yval, _mode, {\n finiteRange: true,\n hoverLayer: fullLayout._hoverlayer\n });\n\n if(newPoints) {\n var newPoint;\n for(var newPointNum = 0; newPointNum < newPoints.length; newPointNum++) {\n newPoint = newPoints[newPointNum];\n if(isNumeric(newPoint.x0) && isNumeric(newPoint.y0)) {\n hoverData.push(cleanPoint(newPoint, hovermode));\n }\n }\n }\n } else {\n Lib.log('Unrecognized trace type in hover:', trace);\n }\n }\n\n // in closest mode, remove any existing (farther) points\n // and don't look any farther than this latest point (or points, some\n // traces like box & violin make multiple hover labels at once)\n if(hovermode === 'closest' && hoverData.length > closedataPreviousLength) {\n hoverData.splice(0, closedataPreviousLength);\n distance = hoverData[0].distance;\n }\n\n // Now if there is range to look in, find the points to draw the spikelines\n // Do it only if there is no hoverData\n if(hasCartesian && (spikedistance !== 0)) {\n if(hoverData.length === 0) {\n pointData.distance = spikedistance;\n pointData.index = false;\n var closestPoints = trace._module.hoverPoints(pointData, xval, yval, 'closest', {\n hoverLayer: fullLayout._hoverlayer\n });\n if(closestPoints) {\n closestPoints = closestPoints.filter(function(point) {\n // some hover points, like scatter fills, do not allow spikes,\n // so will generate a hover point but without a valid spikeDistance\n return point.spikeDistance <= spikedistance;\n });\n }\n if(closestPoints && closestPoints.length) {\n var tmpPoint;\n var closestVPoints = closestPoints.filter(function(point) {\n return point.xa.showspikes && point.xa.spikesnap !== 'hovered data';\n });\n if(closestVPoints.length) {\n var closestVPt = closestVPoints[0];\n if(isNumeric(closestVPt.x0) && isNumeric(closestVPt.y0)) {\n tmpPoint = fillSpikePoint(closestVPt);\n if(!spikePoints.vLinePoint || (spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance)) {\n spikePoints.vLinePoint = tmpPoint;\n }\n }\n }\n\n var closestHPoints = closestPoints.filter(function(point) {\n return point.ya.showspikes && point.ya.spikesnap !== 'hovered data';\n });\n if(closestHPoints.length) {\n var closestHPt = closestHPoints[0];\n if(isNumeric(closestHPt.x0) && isNumeric(closestHPt.y0)) {\n tmpPoint = fillSpikePoint(closestHPt);\n if(!spikePoints.hLinePoint || (spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance)) {\n spikePoints.hLinePoint = tmpPoint;\n }\n }\n }\n }\n }\n }\n }\n }\n\n findHoverPoints();\n\n function selectClosestPoint(pointsData, spikedistance, spikeOnWinning) {\n var resultPoint = null;\n var minDistance = Infinity;\n var thisSpikeDistance;\n\n for(var i = 0; i < pointsData.length; i++) {\n thisSpikeDistance = pointsData[i].spikeDistance;\n if(spikeOnWinning && i === 0) thisSpikeDistance = -Infinity;\n\n if(thisSpikeDistance <= minDistance && thisSpikeDistance <= spikedistance) {\n resultPoint = pointsData[i];\n minDistance = thisSpikeDistance;\n }\n }\n return resultPoint;\n }\n\n function fillSpikePoint(point) {\n if(!point) return null;\n return {\n xa: point.xa,\n ya: point.ya,\n x: point.xSpike !== undefined ? point.xSpike : (point.x0 + point.x1) / 2,\n y: point.ySpike !== undefined ? point.ySpike : (point.y0 + point.y1) / 2,\n distance: point.distance,\n spikeDistance: point.spikeDistance,\n curveNumber: point.trace.index,\n color: point.color,\n pointNumber: point.index\n };\n }\n\n var spikelineOpts = {\n fullLayout: fullLayout,\n container: fullLayout._hoverlayer,\n event: evt\n };\n var oldspikepoints = gd._spikepoints;\n var newspikepoints = {\n vLinePoint: spikePoints.vLinePoint,\n hLinePoint: spikePoints.hLinePoint\n };\n gd._spikepoints = newspikepoints;\n\n var sortHoverData = function() {\n hoverData.sort(function(d1, d2) { return d1.distance - d2.distance; });\n\n // move period positioned points and box/bar-like traces to the end of the list\n hoverData = orderRangePoints(hoverData, hovermode);\n };\n sortHoverData();\n\n var axLetter = hovermode.charAt(0);\n var spikeOnWinning = (axLetter === 'x' || axLetter === 'y') && hoverData[0] && cartesianScatterPoints[hoverData[0].trace.type];\n\n // Now if it is not restricted by spikedistance option, set the points to draw the spikelines\n if(hasCartesian && (spikedistance !== 0)) {\n if(hoverData.length !== 0) {\n var tmpHPointData = hoverData.filter(function(point) {\n return point.ya.showspikes;\n });\n var tmpHPoint = selectClosestPoint(tmpHPointData, spikedistance, spikeOnWinning);\n spikePoints.hLinePoint = fillSpikePoint(tmpHPoint);\n\n var tmpVPointData = hoverData.filter(function(point) {\n return point.xa.showspikes;\n });\n var tmpVPoint = selectClosestPoint(tmpVPointData, spikedistance, spikeOnWinning);\n spikePoints.vLinePoint = fillSpikePoint(tmpVPoint);\n }\n }\n\n // if hoverData is empty check for the spikes to draw and quit if there are none\n if(hoverData.length === 0) {\n var result = dragElement.unhoverRaw(gd, evt);\n if(hasCartesian && ((spikePoints.hLinePoint !== null) || (spikePoints.vLinePoint !== null))) {\n if(spikesChanged(oldspikepoints)) {\n createSpikelines(gd, spikePoints, spikelineOpts);\n }\n }\n return result;\n }\n\n if(hasCartesian) {\n if(spikesChanged(oldspikepoints)) {\n createSpikelines(gd, spikePoints, spikelineOpts);\n }\n }\n\n if(\n helpers.isXYhover(_mode) &&\n hoverData[0].length !== 0 &&\n hoverData[0].trace.type !== 'splom' // TODO: add support for splom\n ) {\n // pick winning point\n var winningPoint = hoverData[0];\n // discard other points\n if(multipleHoverPoints[winningPoint.trace.type]) {\n hoverData = hoverData.filter(function(d) {\n return d.trace.index === winningPoint.trace.index;\n });\n } else {\n hoverData = [winningPoint];\n }\n var initLen = hoverData.length;\n\n var winX = getCoord('x', winningPoint, fullLayout);\n var winY = getCoord('y', winningPoint, fullLayout);\n\n // in compare mode, select every point at position\n findHoverPoints(winX, winY);\n\n var finalPoints = [];\n var seen = {};\n var id = 0;\n var insert = function(newHd) {\n var key = multipleHoverPoints[newHd.trace.type] ? hoverDataKey(newHd) : newHd.trace.index;\n if(!seen[key]) {\n id++;\n seen[key] = id;\n finalPoints.push(newHd);\n } else {\n var oldId = seen[key] - 1;\n var oldHd = finalPoints[oldId];\n if(oldId > 0 &&\n Math.abs(newHd.distance) <\n Math.abs(oldHd.distance)\n ) {\n // replace with closest\n finalPoints[oldId] = newHd;\n }\n }\n };\n\n var k;\n // insert the winnig point(s) first\n for(k = 0; k < initLen; k++) {\n insert(hoverData[k]);\n }\n // override from the end\n for(k = hoverData.length - 1; k > initLen - 1; k--) {\n insert(hoverData[k]);\n }\n hoverData = finalPoints;\n sortHoverData();\n }\n\n // lastly, emit custom hover/unhover events\n var oldhoverdata = gd._hoverdata;\n var newhoverdata = [];\n\n var gTop = getTopOffset(gd);\n var gLeft = getLeftOffset(gd);\n\n // pull out just the data that's useful to\n // other people and send it to the event\n for(itemnum = 0; itemnum < hoverData.length; itemnum++) {\n var pt = hoverData[itemnum];\n var eventData = helpers.makeEventData(pt, pt.trace, pt.cd);\n\n if(pt.hovertemplate !== false) {\n var ht = false;\n if(pt.cd[pt.index] && pt.cd[pt.index].ht) {\n ht = pt.cd[pt.index].ht;\n }\n pt.hovertemplate = ht || pt.trace.hovertemplate || false;\n }\n\n if(pt.xa && pt.ya) {\n var _x0 = pt.x0 + pt.xa._offset;\n var _x1 = pt.x1 + pt.xa._offset;\n var _y0 = pt.y0 + pt.ya._offset;\n var _y1 = pt.y1 + pt.ya._offset;\n\n var x0 = Math.min(_x0, _x1);\n var x1 = Math.max(_x0, _x1);\n var y0 = Math.min(_y0, _y1);\n var y1 = Math.max(_y0, _y1);\n\n eventData.bbox = {\n x0: x0 + gLeft,\n x1: x1 + gLeft,\n y0: y0 + gTop,\n y1: y1 + gTop\n };\n }\n\n pt.eventData = [eventData];\n newhoverdata.push(eventData);\n }\n\n gd._hoverdata = newhoverdata;\n\n var rotateLabels = (\n (hovermode === 'y' && (searchData.length > 1 || hoverData.length > 1)) ||\n (hovermode === 'closest' && hasOneHorizontalTrace && hoverData.length > 1)\n );\n\n var bgColor = Color.combine(\n fullLayout.plot_bgcolor || Color.background,\n fullLayout.paper_bgcolor\n );\n\n var hoverLabels = createHoverText(hoverData, {\n gd: gd,\n hovermode: hovermode,\n rotateLabels: rotateLabels,\n bgColor: bgColor,\n container: fullLayout._hoverlayer,\n outerContainer: fullLayout._paper.node(),\n commonLabelOpts: fullLayout.hoverlabel,\n hoverdistance: fullLayout.hoverdistance\n });\n\n if(!helpers.isUnifiedHover(hovermode)) {\n hoverAvoidOverlaps(hoverLabels, rotateLabels ? 'xa' : 'ya', fullLayout);\n alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY);\n } // TODO: tagName hack is needed to appease geo.js's hack of using eventTarget=true\n // we should improve the \"fx\" API so other plots can use it without these hack.\n if(eventTarget && eventTarget.tagName) {\n var hasClickToShow = Registry.getComponentMethod('annotations', 'hasClickToShow')(gd, newhoverdata);\n overrideCursor(d3.select(eventTarget), hasClickToShow ? 'pointer' : '');\n }\n\n // don't emit events if called manually\n if(!eventTarget || noHoverEvent || !hoverChanged(gd, evt, oldhoverdata)) return;\n\n if(oldhoverdata) {\n gd.emit('plotly_unhover', {\n event: evt,\n points: oldhoverdata\n });\n }\n\n gd.emit('plotly_hover', {\n event: evt,\n points: gd._hoverdata,\n xaxes: xaArray,\n yaxes: yaArray,\n xvals: xvalArray,\n yvals: yvalArray\n });\n}\n\nfunction hoverDataKey(d) {\n return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : '', d.ya ? d.ya._id : ''].join(',');\n}\n\nvar EXTRA_STRING_REGEX = /([\\s\\S]*)<\\/extra>/;\n\nfunction createHoverText(hoverData, opts) {\n var gd = opts.gd;\n var fullLayout = gd._fullLayout;\n var hovermode = opts.hovermode;\n var rotateLabels = opts.rotateLabels;\n var bgColor = opts.bgColor;\n var container = opts.container;\n var outerContainer = opts.outerContainer;\n var commonLabelOpts = opts.commonLabelOpts || {};\n // Early exit if no labels are drawn\n if(hoverData.length === 0) return [[]];\n\n // opts.fontFamily/Size are used for the common label\n // and as defaults for each hover label, though the individual labels\n // can override this.\n var fontFamily = opts.fontFamily || constants.HOVERFONT;\n var fontSize = opts.fontSize || constants.HOVERFONTSIZE;\n\n var c0 = hoverData[0];\n var xa = c0.xa;\n var ya = c0.ya;\n var axLetter = hovermode.charAt(0);\n var axLabel = axLetter + 'Label';\n var t0 = c0[axLabel];\n\n // search in array for the label\n if(t0 === undefined && xa.type === 'multicategory') {\n for(var q = 0; q < hoverData.length; q++) {\n t0 = hoverData[q][axLabel];\n if(t0 !== undefined) break;\n }\n }\n\n var outerContainerBB = getBoundingClientRect(gd, outerContainer);\n var outerTop = outerContainerBB.top;\n var outerWidth = outerContainerBB.width;\n var outerHeight = outerContainerBB.height;\n\n // show the common label, if any, on the axis\n // never show a common label in array mode,\n // even if sometimes there could be one\n var showCommonLabel = (\n (t0 !== undefined) &&\n (c0.distance <= opts.hoverdistance) &&\n (hovermode === 'x' || hovermode === 'y')\n );\n\n // all hover traces hoverinfo must contain the hovermode\n // to have common labels\n if(showCommonLabel) {\n var allHaveZ = true;\n var i, traceHoverinfo;\n for(i = 0; i < hoverData.length; i++) {\n if(allHaveZ && hoverData[i].zLabel === undefined) allHaveZ = false;\n\n traceHoverinfo = hoverData[i].hoverinfo || hoverData[i].trace.hoverinfo;\n if(traceHoverinfo) {\n var parts = Array.isArray(traceHoverinfo) ? traceHoverinfo : traceHoverinfo.split('+');\n if(parts.indexOf('all') === -1 &&\n parts.indexOf(hovermode) === -1) {\n showCommonLabel = false;\n break;\n }\n }\n }\n\n // xyz labels put all info in their main label, so have no need of a common label\n if(allHaveZ) showCommonLabel = false;\n }\n\n var commonLabel = container.selectAll('g.axistext')\n .data(showCommonLabel ? [0] : []);\n commonLabel.enter().append('g')\n .classed('axistext', true);\n commonLabel.exit().remove();\n\n commonLabel.each(function() {\n var label = d3.select(this);\n var lpath = Lib.ensureSingle(label, 'path', '', function(s) {\n s.style({'stroke-width': '1px'});\n });\n var ltext = Lib.ensureSingle(label, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine;\n var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor);\n var contrastColor = Color.contrast(commonBgColor);\n var commonLabelFont = {\n family: commonLabelOpts.font.family || fontFamily,\n size: commonLabelOpts.font.size || fontSize,\n color: commonLabelOpts.font.color || contrastColor\n };\n\n lpath.style({\n fill: commonBgColor,\n stroke: commonStroke\n });\n\n ltext.text(t0)\n .call(Drawing.font, commonLabelFont)\n .call(svgTextUtils.positionText, 0, 0)\n .call(svgTextUtils.convertToTspans, gd);\n\n label.attr('transform', '');\n\n var tbb = getBoundingClientRect(gd, ltext.node());\n var lx, ly;\n\n if(hovermode === 'x') {\n var topsign = xa.side === 'top' ? '-' : '';\n\n ltext.attr('text-anchor', 'middle')\n .call(svgTextUtils.positionText, 0, (xa.side === 'top' ?\n (outerTop - tbb.bottom - HOVERARROWSIZE - HOVERTEXTPAD) :\n (outerTop - tbb.top + HOVERARROWSIZE + HOVERTEXTPAD)));\n\n lx = xa._offset + (c0.x0 + c0.x1) / 2;\n ly = ya._offset + (xa.side === 'top' ? 0 : ya._length);\n\n var halfWidth = tbb.width / 2 + HOVERTEXTPAD;\n\n if(lx < halfWidth) {\n lx = halfWidth;\n\n lpath.attr('d', 'M-' + (halfWidth - HOVERARROWSIZE) + ',0' +\n 'L-' + (halfWidth - HOVERARROWSIZE * 2) + ',' + topsign + HOVERARROWSIZE +\n 'H' + (HOVERTEXTPAD + tbb.width / 2) +\n 'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +\n 'H-' + halfWidth +\n 'V' + topsign + HOVERARROWSIZE +\n 'Z');\n } else if(lx > (fullLayout.width - halfWidth)) {\n lx = fullLayout.width - halfWidth;\n\n lpath.attr('d', 'M' + (halfWidth - HOVERARROWSIZE) + ',0' +\n 'L' + halfWidth + ',' + topsign + HOVERARROWSIZE +\n 'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +\n 'H-' + halfWidth +\n 'V' + topsign + HOVERARROWSIZE +\n 'H' + (halfWidth - HOVERARROWSIZE * 2) + 'Z');\n } else {\n lpath.attr('d', 'M0,0' +\n 'L' + HOVERARROWSIZE + ',' + topsign + HOVERARROWSIZE +\n 'H' + (HOVERTEXTPAD + tbb.width / 2) +\n 'v' + topsign + (HOVERTEXTPAD * 2 + tbb.height) +\n 'H-' + (HOVERTEXTPAD + tbb.width / 2) +\n 'V' + topsign + HOVERARROWSIZE +\n 'H-' + HOVERARROWSIZE + 'Z');\n }\n } else {\n var anchor;\n var sgn;\n var leftsign;\n if(ya.side === 'right') {\n anchor = 'start';\n sgn = 1;\n leftsign = '';\n lx = xa._offset + xa._length;\n } else {\n anchor = 'end';\n sgn = -1;\n leftsign = '-';\n lx = xa._offset;\n }\n\n ly = ya._offset + (c0.y0 + c0.y1) / 2;\n\n ltext.attr('text-anchor', anchor);\n\n lpath.attr('d', 'M0,0' +\n 'L' + leftsign + HOVERARROWSIZE + ',' + HOVERARROWSIZE +\n 'V' + (HOVERTEXTPAD + tbb.height / 2) +\n 'h' + leftsign + (HOVERTEXTPAD * 2 + tbb.width) +\n 'V-' + (HOVERTEXTPAD + tbb.height / 2) +\n 'H' + leftsign + HOVERARROWSIZE + 'V-' + HOVERARROWSIZE + 'Z');\n\n var halfHeight = tbb.height / 2;\n var lty = outerTop - tbb.top - halfHeight;\n var clipId = 'clip' + fullLayout._uid + 'commonlabel' + ya._id;\n var clipPath;\n\n if(lx < (tbb.width + 2 * HOVERTEXTPAD + HOVERARROWSIZE)) {\n clipPath = 'M-' + (HOVERARROWSIZE + HOVERTEXTPAD) + '-' + halfHeight +\n 'h-' + (tbb.width - HOVERTEXTPAD) +\n 'V' + halfHeight +\n 'h' + (tbb.width - HOVERTEXTPAD) + 'Z';\n\n var ltx = tbb.width - lx + HOVERTEXTPAD;\n svgTextUtils.positionText(ltext, ltx, lty);\n\n // shift each line (except the longest) so that start-of-line\n // is always visible\n if(anchor === 'end') {\n ltext.selectAll('tspan').each(function() {\n var s = d3.select(this);\n var dummy = Drawing.tester.append('text')\n .text(s.text())\n .call(Drawing.font, commonLabelFont);\n var dummyBB = getBoundingClientRect(gd, dummy.node());\n if(Math.round(dummyBB.width) < Math.round(tbb.width)) {\n s.attr('x', ltx - dummyBB.width);\n }\n dummy.remove();\n });\n }\n } else {\n svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD + HOVERARROWSIZE), lty);\n clipPath = null;\n }\n\n var textClip = fullLayout._topclips.selectAll('#' + clipId).data(clipPath ? [0] : []);\n textClip.enter().append('clipPath').attr('id', clipId).append('path');\n textClip.exit().remove();\n textClip.select('path').attr('d', clipPath);\n Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd);\n }\n\n label.attr('transform', strTranslate(lx, ly));\n });\n\n // Show a single hover label\n if(helpers.isUnifiedHover(hovermode)) {\n // Delete leftover hover labels from other hovermodes\n container.selectAll('g.hovertext').remove();\n var groupedHoverData = hoverData.filter(function(data) {return data.hoverinfo !== 'none';});\n // Return early if nothing is hovered on\n if(groupedHoverData.length === 0) return;\n\n // mock legend\n var hoverlabel = fullLayout.hoverlabel;\n var font = hoverlabel.font;\n var mockLayoutIn = {\n showlegend: true,\n legend: {\n title: {text: t0, font: font},\n font: font,\n bgcolor: hoverlabel.bgcolor,\n bordercolor: hoverlabel.bordercolor,\n borderwidth: 1,\n tracegroupgap: 7,\n traceorder: fullLayout.legend ? fullLayout.legend.traceorder : undefined,\n orientation: 'v'\n }\n };\n var mockLayoutOut = {\n font: font\n };\n legendSupplyDefaults(mockLayoutIn, mockLayoutOut, gd._fullData);\n var mockLegend = mockLayoutOut.legend;\n\n // prepare items for the legend\n mockLegend.entries = [];\n for(var j = 0; j < groupedHoverData.length; j++) {\n var pt = groupedHoverData[j];\n if(pt.hoverinfo === 'none') continue;\n\n var texts = getHoverLabelText(pt, true, hovermode, fullLayout, t0);\n var text = texts[0];\n var name = texts[1];\n\n pt.name = name;\n if(name !== '') {\n pt.text = name + ' : ' + text;\n } else {\n pt.text = text;\n }\n\n // pass through marker's calcdata to style legend items\n var cd = pt.cd[pt.index];\n if(cd) {\n if(cd.mc) pt.mc = cd.mc;\n if(cd.mcc) pt.mc = cd.mcc;\n if(cd.mlc) pt.mlc = cd.mlc;\n if(cd.mlcc) pt.mlc = cd.mlcc;\n if(cd.mlw) pt.mlw = cd.mlw;\n if(cd.mrc) pt.mrc = cd.mrc;\n if(cd.dir) pt.dir = cd.dir;\n }\n pt._distinct = true;\n\n mockLegend.entries.push([pt]);\n }\n mockLegend.entries.sort(function(a, b) { return a[0].trace.index - b[0].trace.index;});\n mockLegend.layer = container;\n\n // Draw unified hover label\n mockLegend._inHover = true;\n mockLegend._groupTitleFont = hoverlabel.grouptitlefont;\n\n legendDraw(gd, mockLegend);\n\n // Position the hover\n var legendContainer = container.select('g.legend');\n var tbb = getBoundingClientRect(gd, legendContainer.node());\n var tWidth = tbb.width + 2 * HOVERTEXTPAD;\n var tHeight = tbb.height + 2 * HOVERTEXTPAD;\n var winningPoint = groupedHoverData[0];\n var avgX = (winningPoint.x0 + winningPoint.x1) / 2;\n var avgY = (winningPoint.y0 + winningPoint.y1) / 2;\n // When a scatter (or e.g. heatmap) point wins, it's OK for the hovelabel to occlude the bar and other points.\n var pointWon = !(\n Registry.traceIs(winningPoint.trace, 'bar-like') ||\n Registry.traceIs(winningPoint.trace, 'box-violin')\n );\n\n var lyBottom, lyTop;\n if(axLetter === 'y') {\n if(pointWon) {\n lyTop = avgY - HOVERTEXTPAD;\n lyBottom = avgY + HOVERTEXTPAD;\n } else {\n lyTop = Math.min.apply(null, groupedHoverData.map(function(c) { return Math.min(c.y0, c.y1); }));\n lyBottom = Math.max.apply(null, groupedHoverData.map(function(c) { return Math.max(c.y0, c.y1); }));\n }\n } else {\n lyTop = lyBottom = Lib.mean(groupedHoverData.map(function(c) { return (c.y0 + c.y1) / 2; })) - tHeight / 2;\n }\n\n var lxRight, lxLeft;\n if(axLetter === 'x') {\n if(pointWon) {\n lxRight = avgX + HOVERTEXTPAD;\n lxLeft = avgX - HOVERTEXTPAD;\n } else {\n lxRight = Math.max.apply(null, groupedHoverData.map(function(c) { return Math.max(c.x0, c.x1); }));\n lxLeft = Math.min.apply(null, groupedHoverData.map(function(c) { return Math.min(c.x0, c.x1); }));\n }\n } else {\n lxRight = lxLeft = Lib.mean(groupedHoverData.map(function(c) { return (c.x0 + c.x1) / 2; })) - tWidth / 2;\n }\n\n var xOffset = xa._offset;\n var yOffset = ya._offset;\n lyBottom += yOffset;\n lxRight += xOffset;\n lxLeft += xOffset - tWidth;\n lyTop += yOffset - tHeight;\n\n var lx, ly; // top and left positions of the hover box\n\n // horizontal alignment to end up on screen\n if(lxRight + tWidth < outerWidth && lxRight >= 0) {\n lx = lxRight;\n } else if(lxLeft + tWidth < outerWidth && lxLeft >= 0) {\n lx = lxLeft;\n } else if(xOffset + tWidth < outerWidth) {\n lx = xOffset; // subplot left corner\n } else {\n // closest left or right side of the paper\n if(lxRight - avgX < avgX - lxLeft + tWidth) {\n lx = outerWidth - tWidth;\n } else {\n lx = 0;\n }\n }\n lx += HOVERTEXTPAD;\n\n // vertical alignement to end up on screen\n if(lyBottom + tHeight < outerHeight && lyBottom >= 0) {\n ly = lyBottom;\n } else if(lyTop + tHeight < outerHeight && lyTop >= 0) {\n ly = lyTop;\n } else if(yOffset + tHeight < outerHeight) {\n ly = yOffset; // subplot top corner\n } else {\n // closest top or bottom side of the paper\n if(lyBottom - avgY < avgY - lyTop + tHeight) {\n ly = outerHeight - tHeight;\n } else {\n ly = 0;\n }\n }\n ly += HOVERTEXTPAD;\n\n legendContainer.attr('transform', strTranslate(lx - 1, ly - 1));\n return legendContainer;\n }\n\n // show all the individual labels\n\n // first create the objects\n var hoverLabels = container.selectAll('g.hovertext')\n .data(hoverData, function(d) {\n // N.B. when multiple items have the same result key-function value,\n // only the first of those items in hoverData gets rendered\n return hoverDataKey(d);\n });\n hoverLabels.enter().append('g')\n .classed('hovertext', true)\n .each(function() {\n var g = d3.select(this);\n // trace name label (rect and text.name)\n g.append('rect')\n .call(Color.fill, Color.addOpacity(bgColor, 0.8));\n g.append('text').classed('name', true);\n // trace data label (path and text.nums)\n g.append('path')\n .style('stroke-width', '1px');\n g.append('text').classed('nums', true)\n .call(Drawing.font, fontFamily, fontSize);\n });\n hoverLabels.exit().remove();\n\n // then put the text in, position the pointer to the data,\n // and figure out sizes\n hoverLabels.each(function(d) {\n var g = d3.select(this).attr('transform', '');\n\n var dColor = d.color;\n if(Array.isArray(dColor)) {\n dColor = dColor[d.eventData[0].pointNumber];\n }\n\n // combine possible non-opaque trace color with bgColor\n var color0 = d.bgcolor || dColor;\n // color for 'nums' part of the label\n var numsColor = Color.combine(\n Color.opacity(color0) ? color0 : Color.defaultLine,\n bgColor\n );\n // color for 'name' part of the label\n var nameColor = Color.combine(\n Color.opacity(dColor) ? dColor : Color.defaultLine,\n bgColor\n );\n // find a contrasting color for border and text\n var contrastColor = d.borderColor || Color.contrast(numsColor);\n\n var texts = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g);\n var text = texts[0];\n var name = texts[1];\n\n // main label\n var tx = g.select('text.nums')\n .call(Drawing.font,\n d.fontFamily || fontFamily,\n d.fontSize || fontSize,\n d.fontColor || contrastColor)\n .text(text)\n .attr('data-notex', 1)\n .call(svgTextUtils.positionText, 0, 0)\n .call(svgTextUtils.convertToTspans, gd);\n\n var tx2 = g.select('text.name');\n var tx2width = 0;\n var tx2height = 0;\n\n // secondary label for non-empty 'name'\n if(name && name !== text) {\n tx2.call(Drawing.font,\n d.fontFamily || fontFamily,\n d.fontSize || fontSize,\n nameColor)\n .text(name)\n .attr('data-notex', 1)\n .call(svgTextUtils.positionText, 0, 0)\n .call(svgTextUtils.convertToTspans, gd);\n\n var t2bb = getBoundingClientRect(gd, tx2.node());\n tx2width = t2bb.width + 2 * HOVERTEXTPAD;\n tx2height = t2bb.height + 2 * HOVERTEXTPAD;\n } else {\n tx2.remove();\n g.select('rect').remove();\n }\n\n g.select('path').style({\n fill: numsColor,\n stroke: contrastColor\n });\n\n var htx = d.xa._offset + (d.x0 + d.x1) / 2;\n var hty = d.ya._offset + (d.y0 + d.y1) / 2;\n var dx = Math.abs(d.x1 - d.x0);\n var dy = Math.abs(d.y1 - d.y0);\n\n var tbb = getBoundingClientRect(gd, tx.node());\n var tbbWidth = tbb.width / fullLayout._invScaleX;\n var tbbHeight = tbb.height / fullLayout._invScaleY;\n\n d.ty0 = (outerTop - tbb.top) / fullLayout._invScaleY;\n d.bx = tbbWidth + 2 * HOVERTEXTPAD;\n d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD, tx2height);\n d.anchor = 'start';\n d.txwidth = tbbWidth;\n d.tx2width = tx2width;\n d.offset = 0;\n\n var txTotalWidth = (tbbWidth + HOVERARROWSIZE + HOVERTEXTPAD + tx2width) * fullLayout._invScaleX;\n var anchorStartOK, anchorEndOK;\n\n if(rotateLabels) {\n d.pos = htx;\n anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight;\n anchorEndOK = hty - dy / 2 - txTotalWidth >= 0;\n if((d.idealAlign === 'top' || !anchorStartOK) && anchorEndOK) {\n hty -= dy / 2;\n d.anchor = 'end';\n } else if(anchorStartOK) {\n hty += dy / 2;\n d.anchor = 'start';\n } else d.anchor = 'middle';\n } else {\n d.pos = hty;\n anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth;\n anchorEndOK = htx - dx / 2 - txTotalWidth >= 0;\n\n if((d.idealAlign === 'left' || !anchorStartOK) && anchorEndOK) {\n htx -= dx / 2;\n d.anchor = 'end';\n } else if(anchorStartOK) {\n htx += dx / 2;\n d.anchor = 'start';\n } else {\n d.anchor = 'middle';\n\n var txHalfWidth = txTotalWidth / 2;\n var overflowR = htx + txHalfWidth - outerWidth;\n var overflowL = htx - txHalfWidth;\n if(overflowR > 0) htx -= overflowR;\n if(overflowL < 0) htx += -overflowL;\n }\n }\n\n tx.attr('text-anchor', d.anchor);\n if(tx2width) tx2.attr('text-anchor', d.anchor);\n g.attr('transform', strTranslate(htx, hty) +\n (rotateLabels ? strRotate(YANGLE) : ''));\n });\n\n return hoverLabels;\n}\n\nfunction getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) {\n var name = '';\n var text = '';\n // to get custom 'name' labels pass cleanPoint\n if(d.nameOverride !== undefined) d.name = d.nameOverride;\n\n if(d.name) {\n if(d.trace._meta) {\n d.name = Lib.templateString(d.name, d.trace._meta);\n }\n name = plainText(d.name, d.nameLength);\n }\n\n var h0 = hovermode.charAt(0);\n var h1 = h0 === 'x' ? 'y' : 'x';\n\n if(d.zLabel !== undefined) {\n if(d.xLabel !== undefined) text += 'x: ' + d.xLabel + '
';\n if(d.yLabel !== undefined) text += 'y: ' + d.yLabel + '
';\n if(d.trace.type !== 'choropleth' && d.trace.type !== 'choroplethmapbox') {\n text += (text ? 'z: ' : '') + d.zLabel;\n }\n } else if(showCommonLabel && d[h0 + 'Label'] === t0) {\n text = d[h1 + 'Label'] || '';\n } else if(d.xLabel === undefined) {\n if(d.yLabel !== undefined && d.trace.type !== 'scattercarpet') {\n text = d.yLabel;\n }\n } else if(d.yLabel === undefined) text = d.xLabel;\n else text = '(' + d.xLabel + ', ' + d.yLabel + ')';\n\n if((d.text || d.text === 0) && !Array.isArray(d.text)) {\n text += (text ? '
' : '') + d.text;\n }\n\n // used by other modules (initially just ternary) that\n // manage their own hoverinfo independent of cleanPoint\n // the rest of this will still apply, so such modules\n // can still put things in (x|y|z)Label, text, and name\n // and hoverinfo will still determine their visibility\n if(d.extraText !== undefined) text += (text ? '
' : '') + d.extraText;\n\n // if 'text' is empty at this point,\n // and hovertemplate is not defined,\n // put 'name' in main label and don't show secondary label\n if(g && text === '' && !d.hovertemplate) {\n // if 'name' is also empty, remove entire label\n if(name === '') g.remove();\n text = name;\n }\n\n // hovertemplate\n var hovertemplate = d.hovertemplate || false;\n if(hovertemplate) {\n var labels = d.hovertemplateLabels || d;\n\n if(d[h0 + 'Label'] !== t0) {\n labels[h0 + 'other'] = labels[h0 + 'Val'];\n labels[h0 + 'otherLabel'] = labels[h0 + 'Label'];\n }\n\n text = Lib.hovertemplateString(\n hovertemplate,\n labels,\n fullLayout._d3locale,\n d.eventData[0] || {},\n d.trace._meta\n );\n\n text = text.replace(EXTRA_STRING_REGEX, function(match, extra) {\n // assign name for secondary text label\n name = plainText(extra, d.nameLength);\n // remove from main text label\n return '';\n });\n }\n return [text, name];\n}\n\n// Make groups of touching points, and within each group\n// move each point so that no labels overlap, but the average\n// label position is the same as it was before moving. Incidentally,\n// this is equivalent to saying all the labels are on equal linear\n// springs about their initial position. Initially, each point is\n// its own group, but as we find overlaps we will clump the points.\n//\n// Also, there are hard constraints at the edges of the graphs,\n// that push all groups to the middle so they are visible. I don't\n// know what happens if the group spans all the way from one edge to\n// the other, though it hardly matters - there's just too much\n// information then.\nfunction hoverAvoidOverlaps(hoverLabels, axKey, fullLayout) {\n var nummoves = 0;\n var axSign = 1;\n var nLabels = hoverLabels.size();\n\n // make groups of touching points\n var pointgroups = new Array(nLabels);\n var k = 0;\n\n hoverLabels.each(function(d) {\n var ax = d[axKey];\n var axIsX = ax._id.charAt(0) === 'x';\n var rng = ax.range;\n\n if(k === 0 && rng && ((rng[0] > rng[1]) !== axIsX)) {\n axSign = -1;\n }\n pointgroups[k++] = [{\n datum: d,\n traceIndex: d.trace.index,\n dp: 0,\n pos: d.pos,\n posref: d.posref,\n size: d.by * (axIsX ? YFACTOR : 1) / 2,\n pmin: 0,\n pmax: (axIsX ? fullLayout.width : fullLayout.height)\n }];\n });\n\n pointgroups.sort(function(a, b) {\n return (a[0].posref - b[0].posref) ||\n // for equal positions, sort trace indices increasing or decreasing\n // depending on whether the axis is reversed or not... so stacked\n // traces will generally keep their order even if one trace adds\n // nothing to the stack.\n (axSign * (b[0].traceIndex - a[0].traceIndex));\n });\n\n var donepositioning, topOverlap, bottomOverlap, i, j, pti, sumdp;\n\n function constrainGroup(grp) {\n var minPt = grp[0];\n var maxPt = grp[grp.length - 1];\n\n // overlap with the top - positive vals are overlaps\n topOverlap = minPt.pmin - minPt.pos - minPt.dp + minPt.size;\n\n // overlap with the bottom - positive vals are overlaps\n bottomOverlap = maxPt.pos + maxPt.dp + maxPt.size - minPt.pmax;\n\n // check for min overlap first, so that we always\n // see the largest labels\n // allow for .01px overlap, so we don't get an\n // infinite loop from rounding errors\n if(topOverlap > 0.01) {\n for(j = grp.length - 1; j >= 0; j--) grp[j].dp += topOverlap;\n donepositioning = false;\n }\n if(bottomOverlap < 0.01) return;\n if(topOverlap < -0.01) {\n // make sure we're not pushing back and forth\n for(j = grp.length - 1; j >= 0; j--) grp[j].dp -= bottomOverlap;\n donepositioning = false;\n }\n if(!donepositioning) return;\n\n // no room to fix positioning, delete off-screen points\n\n // first see how many points we need to delete\n var deleteCount = 0;\n for(i = 0; i < grp.length; i++) {\n pti = grp[i];\n if(pti.pos + pti.dp + pti.size > minPt.pmax) deleteCount++;\n }\n\n // start by deleting points whose data is off screen\n for(i = grp.length - 1; i >= 0; i--) {\n if(deleteCount <= 0) break;\n pti = grp[i];\n\n // pos has already been constrained to [pmin,pmax]\n // so look for points close to that to delete\n if(pti.pos > minPt.pmax - 1) {\n pti.del = true;\n deleteCount--;\n }\n }\n for(i = 0; i < grp.length; i++) {\n if(deleteCount <= 0) break;\n pti = grp[i];\n\n // pos has already been constrained to [pmin,pmax]\n // so look for points close to that to delete\n if(pti.pos < minPt.pmin + 1) {\n pti.del = true;\n deleteCount--;\n\n // shift the whole group minus into this new space\n bottomOverlap = pti.size * 2;\n for(j = grp.length - 1; j >= 0; j--) grp[j].dp -= bottomOverlap;\n }\n }\n // then delete points that go off the bottom\n for(i = grp.length - 1; i >= 0; i--) {\n if(deleteCount <= 0) break;\n pti = grp[i];\n if(pti.pos + pti.dp + pti.size > minPt.pmax) {\n pti.del = true;\n deleteCount--;\n }\n }\n }\n\n // loop through groups, combining them if they overlap,\n // until nothing moves\n while(!donepositioning && nummoves <= nLabels) {\n // to avoid infinite loops, don't move more times\n // than there are traces\n nummoves++;\n\n // assume nothing will move in this iteration,\n // reverse this if it does\n donepositioning = true;\n i = 0;\n while(i < pointgroups.length - 1) {\n // the higher (g0) and lower (g1) point group\n var g0 = pointgroups[i];\n var g1 = pointgroups[i + 1];\n\n // the lowest point in the higher group (p0)\n // the highest point in the lower group (p1)\n var p0 = g0[g0.length - 1];\n var p1 = g1[0];\n topOverlap = p0.pos + p0.dp + p0.size - p1.pos - p1.dp + p1.size;\n\n // Only group points that lie on the same axes\n if(topOverlap > 0.01 && (p0.pmin === p1.pmin) && (p0.pmax === p1.pmax)) {\n // push the new point(s) added to this group out of the way\n for(j = g1.length - 1; j >= 0; j--) g1[j].dp += topOverlap;\n\n // add them to the group\n g0.push.apply(g0, g1);\n pointgroups.splice(i + 1, 1);\n\n // adjust for minimum average movement\n sumdp = 0;\n for(j = g0.length - 1; j >= 0; j--) sumdp += g0[j].dp;\n bottomOverlap = sumdp / g0.length;\n for(j = g0.length - 1; j >= 0; j--) g0[j].dp -= bottomOverlap;\n donepositioning = false;\n } else i++;\n }\n\n // check if we're going off the plot on either side and fix\n pointgroups.forEach(constrainGroup);\n }\n\n // now put these offsets into hoverData\n for(i = pointgroups.length - 1; i >= 0; i--) {\n var grp = pointgroups[i];\n for(j = grp.length - 1; j >= 0; j--) {\n var pt = grp[j];\n var hoverPt = pt.datum;\n hoverPt.offset = pt.dp;\n hoverPt.del = pt.del;\n }\n }\n}\n\nfunction alignHoverText(hoverLabels, rotateLabels, scaleX, scaleY) {\n var pX = function(x) { return x * scaleX; };\n var pY = function(y) { return y * scaleY; };\n\n // finally set the text positioning relative to the data and draw the\n // box around it\n hoverLabels.each(function(d) {\n var g = d3.select(this);\n if(d.del) return g.remove();\n\n var tx = g.select('text.nums');\n var anchor = d.anchor;\n var horzSign = anchor === 'end' ? -1 : 1;\n var alignShift = {start: 1, end: -1, middle: 0}[anchor];\n var txx = alignShift * (HOVERARROWSIZE + HOVERTEXTPAD);\n var tx2x = txx + alignShift * (d.txwidth + HOVERTEXTPAD);\n var offsetX = 0;\n var offsetY = d.offset;\n\n var isMiddle = anchor === 'middle';\n if(isMiddle) {\n txx -= d.tx2width / 2;\n tx2x += d.txwidth / 2 + HOVERTEXTPAD;\n }\n if(rotateLabels) {\n offsetY *= -YSHIFTY;\n offsetX = d.offset * YSHIFTX;\n }\n\n g.select('path')\n .attr('d', isMiddle ?\n // middle aligned: rect centered on data\n ('M-' + pX(d.bx / 2 + d.tx2width / 2) + ',' + pY(offsetY - d.by / 2) +\n 'h' + pX(d.bx) + 'v' + pY(d.by) + 'h-' + pX(d.bx) + 'Z') :\n // left or right aligned: side rect with arrow to data\n ('M0,0L' + pX(horzSign * HOVERARROWSIZE + offsetX) + ',' + pY(HOVERARROWSIZE + offsetY) +\n 'v' + pY(d.by / 2 - HOVERARROWSIZE) +\n 'h' + pX(horzSign * d.bx) +\n 'v-' + pY(d.by) +\n 'H' + pX(horzSign * HOVERARROWSIZE + offsetX) +\n 'V' + pY(offsetY - HOVERARROWSIZE) +\n 'Z'));\n\n var posX = offsetX + txx;\n var posY = offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD;\n var textAlign = d.textAlign || 'auto';\n\n if(textAlign !== 'auto') {\n if(textAlign === 'left' && anchor !== 'start') {\n tx.attr('text-anchor', 'start');\n posX = isMiddle ?\n -d.bx / 2 - d.tx2width / 2 + HOVERTEXTPAD :\n -d.bx - HOVERTEXTPAD;\n } else if(textAlign === 'right' && anchor !== 'end') {\n tx.attr('text-anchor', 'end');\n posX = isMiddle ?\n d.bx / 2 - d.tx2width / 2 - HOVERTEXTPAD :\n d.bx + HOVERTEXTPAD;\n }\n }\n\n tx.call(svgTextUtils.positionText, pX(posX), pY(posY));\n\n if(d.tx2width) {\n g.select('text.name')\n .call(svgTextUtils.positionText,\n pX(tx2x + alignShift * HOVERTEXTPAD + offsetX),\n pY(offsetY + d.ty0 - d.by / 2 + HOVERTEXTPAD));\n g.select('rect')\n .call(Drawing.setRect,\n pX(tx2x + (alignShift - 1) * d.tx2width / 2 + offsetX),\n pY(offsetY - d.by / 2 - 1),\n pX(d.tx2width), pY(d.by + 2));\n }\n });\n}\n\nfunction cleanPoint(d, hovermode) {\n var index = d.index;\n var trace = d.trace || {};\n var cd0 = d.cd[0];\n var cd = d.cd[index] || {};\n\n function pass(v) {\n return v || (isNumeric(v) && v === 0);\n }\n\n var getVal = Array.isArray(index) ?\n function(calcKey, traceKey) {\n var v = Lib.castOption(cd0, index, calcKey);\n return pass(v) ? v : Lib.extractOption({}, trace, '', traceKey);\n } :\n function(calcKey, traceKey) {\n return Lib.extractOption(cd, trace, calcKey, traceKey);\n };\n\n function fill(key, calcKey, traceKey) {\n var val = getVal(calcKey, traceKey);\n if(pass(val)) d[key] = val;\n }\n\n fill('hoverinfo', 'hi', 'hoverinfo');\n fill('bgcolor', 'hbg', 'hoverlabel.bgcolor');\n fill('borderColor', 'hbc', 'hoverlabel.bordercolor');\n fill('fontFamily', 'htf', 'hoverlabel.font.family');\n fill('fontSize', 'hts', 'hoverlabel.font.size');\n fill('fontColor', 'htc', 'hoverlabel.font.color');\n fill('nameLength', 'hnl', 'hoverlabel.namelength');\n fill('textAlign', 'hta', 'hoverlabel.align');\n\n d.posref = (hovermode === 'y' || (hovermode === 'closest' && trace.orientation === 'h')) ?\n (d.xa._offset + (d.x0 + d.x1) / 2) :\n (d.ya._offset + (d.y0 + d.y1) / 2);\n\n // then constrain all the positions to be on the plot\n d.x0 = Lib.constrain(d.x0, 0, d.xa._length);\n d.x1 = Lib.constrain(d.x1, 0, d.xa._length);\n d.y0 = Lib.constrain(d.y0, 0, d.ya._length);\n d.y1 = Lib.constrain(d.y1, 0, d.ya._length);\n\n // and convert the x and y label values into formatted text\n if(d.xLabelVal !== undefined) {\n d.xLabel = ('xLabel' in d) ? d.xLabel : Axes.hoverLabelText(d.xa, d.xLabelVal, trace.xhoverformat);\n d.xVal = d.xa.c2d(d.xLabelVal);\n }\n if(d.yLabelVal !== undefined) {\n d.yLabel = ('yLabel' in d) ? d.yLabel : Axes.hoverLabelText(d.ya, d.yLabelVal, trace.yhoverformat);\n d.yVal = d.ya.c2d(d.yLabelVal);\n }\n\n // Traces like heatmaps generate the zLabel in their hoverPoints function\n if(d.zLabelVal !== undefined && d.zLabel === undefined) {\n d.zLabel = String(d.zLabelVal);\n }\n\n // for box means and error bars, add the range to the label\n if(!isNaN(d.xerr) && !(d.xa.type === 'log' && d.xerr <= 0)) {\n var xeText = Axes.tickText(d.xa, d.xa.c2l(d.xerr), 'hover').text;\n if(d.xerrneg !== undefined) {\n d.xLabel += ' +' + xeText + ' / -' +\n Axes.tickText(d.xa, d.xa.c2l(d.xerrneg), 'hover').text;\n } else d.xLabel += ' ± ' + xeText;\n\n // small distance penalty for error bars, so that if there are\n // traces with errors and some without, the error bar label will\n // hoist up to the point\n if(hovermode === 'x') d.distance += 1;\n }\n if(!isNaN(d.yerr) && !(d.ya.type === 'log' && d.yerr <= 0)) {\n var yeText = Axes.tickText(d.ya, d.ya.c2l(d.yerr), 'hover').text;\n if(d.yerrneg !== undefined) {\n d.yLabel += ' +' + yeText + ' / -' +\n Axes.tickText(d.ya, d.ya.c2l(d.yerrneg), 'hover').text;\n } else d.yLabel += ' ± ' + yeText;\n\n if(hovermode === 'y') d.distance += 1;\n }\n\n var infomode = d.hoverinfo || d.trace.hoverinfo;\n\n if(infomode && infomode !== 'all') {\n infomode = Array.isArray(infomode) ? infomode : infomode.split('+');\n if(infomode.indexOf('x') === -1) d.xLabel = undefined;\n if(infomode.indexOf('y') === -1) d.yLabel = undefined;\n if(infomode.indexOf('z') === -1) d.zLabel = undefined;\n if(infomode.indexOf('text') === -1) d.text = undefined;\n if(infomode.indexOf('name') === -1) d.name = undefined;\n }\n\n return d;\n}\n\nfunction createSpikelines(gd, closestPoints, opts) {\n var container = opts.container;\n var fullLayout = opts.fullLayout;\n var gs = fullLayout._size;\n var evt = opts.event;\n var showY = !!closestPoints.hLinePoint;\n var showX = !!closestPoints.vLinePoint;\n\n var xa, ya;\n\n // Remove old spikeline items\n container.selectAll('.spikeline').remove();\n\n if(!(showX || showY)) return;\n\n var contrastColor = Color.combine(fullLayout.plot_bgcolor, fullLayout.paper_bgcolor);\n\n // Horizontal line (to y-axis)\n if(showY) {\n var hLinePoint = closestPoints.hLinePoint;\n var hLinePointX, hLinePointY;\n\n xa = hLinePoint && hLinePoint.xa;\n ya = hLinePoint && hLinePoint.ya;\n var ySnap = ya.spikesnap;\n\n if(ySnap === 'cursor') {\n hLinePointX = evt.pointerX;\n hLinePointY = evt.pointerY;\n } else {\n hLinePointX = xa._offset + hLinePoint.x;\n hLinePointY = ya._offset + hLinePoint.y;\n }\n var dfltHLineColor = tinycolor.readability(hLinePoint.color, contrastColor) < 1.5 ?\n Color.contrast(contrastColor) : hLinePoint.color;\n var yMode = ya.spikemode;\n var yThickness = ya.spikethickness;\n var yColor = ya.spikecolor || dfltHLineColor;\n var xEdge = Axes.getPxPosition(gd, ya);\n var xBase, xEndSpike;\n\n if(yMode.indexOf('toaxis') !== -1 || yMode.indexOf('across') !== -1) {\n if(yMode.indexOf('toaxis') !== -1) {\n xBase = xEdge;\n xEndSpike = hLinePointX;\n }\n if(yMode.indexOf('across') !== -1) {\n var xAcross0 = ya._counterDomainMin;\n var xAcross1 = ya._counterDomainMax;\n if(ya.anchor === 'free') {\n xAcross0 = Math.min(xAcross0, ya.position);\n xAcross1 = Math.max(xAcross1, ya.position);\n }\n xBase = gs.l + xAcross0 * gs.w;\n xEndSpike = gs.l + xAcross1 * gs.w;\n }\n\n // Foreground horizontal line (to y-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: xBase,\n x2: xEndSpike,\n y1: hLinePointY,\n y2: hLinePointY,\n 'stroke-width': yThickness,\n stroke: yColor,\n 'stroke-dasharray': Drawing.dashStyle(ya.spikedash, yThickness)\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n\n // Background horizontal Line (to y-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: xBase,\n x2: xEndSpike,\n y1: hLinePointY,\n y2: hLinePointY,\n 'stroke-width': yThickness + 2,\n stroke: contrastColor\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n }\n // Y axis marker\n if(yMode.indexOf('marker') !== -1) {\n container.insert('circle', ':first-child')\n .attr({\n cx: xEdge + (ya.side !== 'right' ? yThickness : -yThickness),\n cy: hLinePointY,\n r: yThickness,\n fill: yColor\n })\n .classed('spikeline', true);\n }\n }\n\n if(showX) {\n var vLinePoint = closestPoints.vLinePoint;\n var vLinePointX, vLinePointY;\n\n xa = vLinePoint && vLinePoint.xa;\n ya = vLinePoint && vLinePoint.ya;\n var xSnap = xa.spikesnap;\n\n if(xSnap === 'cursor') {\n vLinePointX = evt.pointerX;\n vLinePointY = evt.pointerY;\n } else {\n vLinePointX = xa._offset + vLinePoint.x;\n vLinePointY = ya._offset + vLinePoint.y;\n }\n var dfltVLineColor = tinycolor.readability(vLinePoint.color, contrastColor) < 1.5 ?\n Color.contrast(contrastColor) : vLinePoint.color;\n var xMode = xa.spikemode;\n var xThickness = xa.spikethickness;\n var xColor = xa.spikecolor || dfltVLineColor;\n var yEdge = Axes.getPxPosition(gd, xa);\n var yBase, yEndSpike;\n\n if(xMode.indexOf('toaxis') !== -1 || xMode.indexOf('across') !== -1) {\n if(xMode.indexOf('toaxis') !== -1) {\n yBase = yEdge;\n yEndSpike = vLinePointY;\n }\n if(xMode.indexOf('across') !== -1) {\n var yAcross0 = xa._counterDomainMin;\n var yAcross1 = xa._counterDomainMax;\n if(xa.anchor === 'free') {\n yAcross0 = Math.min(yAcross0, xa.position);\n yAcross1 = Math.max(yAcross1, xa.position);\n }\n yBase = gs.t + (1 - yAcross1) * gs.h;\n yEndSpike = gs.t + (1 - yAcross0) * gs.h;\n }\n\n // Foreground vertical line (to x-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: vLinePointX,\n x2: vLinePointX,\n y1: yBase,\n y2: yEndSpike,\n 'stroke-width': xThickness,\n stroke: xColor,\n 'stroke-dasharray': Drawing.dashStyle(xa.spikedash, xThickness)\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n\n // Background vertical line (to x-axis)\n container.insert('line', ':first-child')\n .attr({\n x1: vLinePointX,\n x2: vLinePointX,\n y1: yBase,\n y2: yEndSpike,\n 'stroke-width': xThickness + 2,\n stroke: contrastColor\n })\n .classed('spikeline', true)\n .classed('crisp', true);\n }\n\n // X axis marker\n if(xMode.indexOf('marker') !== -1) {\n container.insert('circle', ':first-child')\n .attr({\n cx: vLinePointX,\n cy: yEdge - (xa.side !== 'top' ? xThickness : -xThickness),\n r: xThickness,\n fill: xColor\n })\n .classed('spikeline', true);\n }\n }\n}\n\nfunction hoverChanged(gd, evt, oldhoverdata) {\n // don't emit any events if nothing changed\n if(!oldhoverdata || oldhoverdata.length !== gd._hoverdata.length) return true;\n\n for(var i = oldhoverdata.length - 1; i >= 0; i--) {\n var oldPt = oldhoverdata[i];\n var newPt = gd._hoverdata[i];\n\n if(oldPt.curveNumber !== newPt.curveNumber ||\n String(oldPt.pointNumber) !== String(newPt.pointNumber) ||\n String(oldPt.pointNumbers) !== String(newPt.pointNumbers)\n ) {\n return true;\n }\n }\n return false;\n}\n\nfunction spikesChanged(gd, oldspikepoints) {\n // don't relayout the plot because of new spikelines if spikelines points didn't change\n if(!oldspikepoints) return true;\n if(oldspikepoints.vLinePoint !== gd._spikepoints.vLinePoint ||\n oldspikepoints.hLinePoint !== gd._spikepoints.hLinePoint\n ) return true;\n return false;\n}\n\nfunction plainText(s, len) {\n return svgTextUtils.plainText(s || '', {\n len: len,\n allowedTags: ['br', 'sub', 'sup', 'b', 'i', 'em']\n });\n}\n\nfunction orderRangePoints(hoverData, hovermode) {\n var axLetter = hovermode.charAt(0);\n\n var first = [];\n var second = [];\n var last = [];\n\n for(var i = 0; i < hoverData.length; i++) {\n var d = hoverData[i];\n\n if(\n Registry.traceIs(d.trace, 'bar-like') ||\n Registry.traceIs(d.trace, 'box-violin')\n ) {\n last.push(d);\n } else if(d.trace[axLetter + 'period']) {\n second.push(d);\n } else {\n first.push(d);\n }\n }\n\n return first.concat(second).concat(last);\n}\n\nfunction getCoord(axLetter, winningPoint, fullLayout) {\n var ax = winningPoint[axLetter + 'a'];\n var val = winningPoint[axLetter + 'Val'];\n\n var cd0 = winningPoint.cd[0];\n\n if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];\n else if(ax.type === 'date') {\n var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];\n if(periodalignment) {\n var d = winningPoint.cd[winningPoint.index];\n\n var start = d[axLetter + 'Start'];\n if(start === undefined) start = d[axLetter];\n\n var end = d[axLetter + 'End'];\n if(end === undefined) end = d[axLetter];\n\n var diff = end - start;\n\n if(periodalignment === 'end') {\n val += diff;\n } else if(periodalignment === 'middle') {\n val += diff / 2;\n }\n }\n\n val = ax.d2c(val);\n }\n\n if(cd0 && cd0.t && cd0.t.posLetter === ax._id) {\n if(\n fullLayout.boxmode === 'group' ||\n fullLayout.violinmode === 'group'\n ) {\n val += cd0.t.dPos;\n }\n }\n\n return val;\n}\n\n// Top/left hover offsets relative to graph div. As long as hover content is\n// a sibling of the graph div, it will be positioned correctly relative to\n// the offset parent, whatever that may be.\nfunction getTopOffset(gd) { return gd.offsetTop + gd.clientTop; }\nfunction getLeftOffset(gd) { return gd.offsetLeft + gd.clientLeft; }\n\nfunction getBoundingClientRect(gd, node) {\n var fullLayout = gd._fullLayout;\n\n var rect = node.getBoundingClientRect();\n\n var x0 = rect.x;\n var y0 = rect.y;\n var x1 = x0 + rect.width;\n var y1 = y0 + rect.height;\n\n var A = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);\n var B = Lib.apply3DTransform(fullLayout._invTransform)(x1, y1);\n\n var Ax = A[0];\n var Ay = A[1];\n var Bx = B[0];\n var By = B[1];\n\n return {\n x: Ax,\n y: Ay,\n width: Bx - Ax,\n height: By - Ay,\n top: Math.min(Ay, By),\n left: Math.min(Ax, Bx),\n right: Math.max(Ax, Bx),\n bottom: Math.max(Ay, By),\n };\n}\n\n},{\"../../lib\":515,\"../../lib/events\":504,\"../../lib/override_cursor\":526,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../color\":367,\"../dragelement\":386,\"../drawing\":389,\"../legend/defaults\":419,\"../legend/draw\":420,\"./constants\":401,\"./helpers\":403,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"tinycolor2\":313}],405:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\nvar isUnifiedHover = _dereq_('./helpers').isUnifiedHover;\n\nmodule.exports = function handleHoverLabelDefaults(contIn, contOut, coerce, opts) {\n opts = opts || {};\n\n var hasLegend = contOut.legend;\n\n function inheritFontAttr(attr) {\n if(!opts.font[attr]) {\n opts.font[attr] = hasLegend ? contOut.legend.font[attr] : contOut.font[attr];\n }\n }\n\n // In unified hover, inherit from layout.legend if available or layout\n if(contOut && isUnifiedHover(contOut.hovermode)) {\n if(!opts.font) opts.font = {};\n inheritFontAttr('size');\n inheritFontAttr('family');\n inheritFontAttr('color');\n\n if(hasLegend) {\n if(!opts.bgcolor) opts.bgcolor = Color.combine(contOut.legend.bgcolor, contOut.paper_bgcolor);\n if(!opts.bordercolor) opts.bordercolor = contOut.legend.bordercolor;\n } else {\n if(!opts.bgcolor) opts.bgcolor = contOut.paper_bgcolor;\n }\n }\n\n coerce('hoverlabel.bgcolor', opts.bgcolor);\n coerce('hoverlabel.bordercolor', opts.bordercolor);\n coerce('hoverlabel.namelength', opts.namelength);\n Lib.coerceFont(coerce, 'hoverlabel.font', opts.font);\n coerce('hoverlabel.align', opts.align);\n};\n\n},{\"../../lib\":515,\"../color\":367,\"./helpers\":403}],406:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function handleHoverModeDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n // don't coerce if it is already coerced in other place e.g. in cartesian defaults\n if(layoutOut[attr] !== undefined) return layoutOut[attr];\n\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n coerce('clickmode');\n return coerce('hovermode');\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":408}],407:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar dragElement = _dereq_('../dragelement');\nvar helpers = _dereq_('./helpers');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar hoverModule = _dereq_('./hover');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'fx',\n\n constants: _dereq_('./constants'),\n schema: {\n layout: layoutAttributes\n },\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: layoutAttributes,\n\n supplyLayoutGlobalDefaults: _dereq_('./layout_global_defaults'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc'),\n\n getDistanceFunction: helpers.getDistanceFunction,\n getClosest: helpers.getClosest,\n inbox: helpers.inbox,\n quadrature: helpers.quadrature,\n appendArrayPointValue: helpers.appendArrayPointValue,\n\n castHoverOption: castHoverOption,\n castHoverinfo: castHoverinfo,\n\n hover: hoverModule.hover,\n unhover: dragElement.unhover,\n\n loneHover: hoverModule.loneHover,\n loneUnhover: loneUnhover,\n\n click: _dereq_('./click')\n};\n\nfunction loneUnhover(containerOrSelection) {\n // duck type whether the arg is a d3 selection because ie9 doesn't\n // handle instanceof like modern browsers do.\n var selection = Lib.isD3Selection(containerOrSelection) ?\n containerOrSelection :\n d3.select(containerOrSelection);\n\n selection.selectAll('g.hovertext').remove();\n selection.selectAll('.spikeline').remove();\n}\n\n// helpers for traces that use Fx.loneHover\n\nfunction castHoverOption(trace, ptNumber, attr) {\n return Lib.castOption(trace, ptNumber, 'hoverlabel.' + attr);\n}\n\nfunction castHoverinfo(trace, fullLayout, ptNumber) {\n function _coerce(val) {\n return Lib.coerceHoverinfo({hoverinfo: val}, {_module: trace._module}, fullLayout);\n }\n\n return Lib.castOption(trace, ptNumber, 'hoverinfo', _coerce);\n}\n\n},{\"../../lib\":515,\"../dragelement\":386,\"./attributes\":398,\"./calc\":399,\"./click\":400,\"./constants\":401,\"./defaults\":402,\"./helpers\":403,\"./hover\":404,\"./layout_attributes\":408,\"./layout_defaults\":409,\"./layout_global_defaults\":410,\"@plotly/d3\":58}],408:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\n\nvar font = fontAttrs({\n editType: 'none',\n});\nfont.family.dflt = constants.HOVERFONT;\nfont.size.dflt = constants.HOVERFONTSIZE;\n\nmodule.exports = {\n clickmode: {\n valType: 'flaglist',\n flags: ['event', 'select'],\n dflt: 'event',\n editType: 'plot',\n extras: ['none'],\n },\n dragmode: {\n valType: 'enumerated',\n values: [\n 'zoom',\n 'pan',\n 'select',\n 'lasso',\n 'drawclosedpath',\n 'drawopenpath',\n 'drawline',\n 'drawrect',\n 'drawcircle',\n 'orbit',\n 'turntable',\n false\n ],\n dflt: 'zoom',\n editType: 'modebar',\n },\n hovermode: {\n valType: 'enumerated',\n values: ['x', 'y', 'closest', false, 'x unified', 'y unified'],\n dflt: 'closest',\n editType: 'modebar',\n },\n hoverdistance: {\n valType: 'integer',\n min: -1,\n dflt: 20,\n editType: 'none',\n },\n spikedistance: {\n valType: 'integer',\n min: -1,\n dflt: -1,\n editType: 'none',\n },\n hoverlabel: {\n bgcolor: {\n valType: 'color',\n editType: 'none',\n },\n bordercolor: {\n valType: 'color',\n editType: 'none',\n },\n font: font,\n grouptitlefont: fontAttrs({\n editType: 'none',\n }),\n align: {\n valType: 'enumerated',\n values: ['left', 'right', 'auto'],\n dflt: 'auto',\n editType: 'none',\n },\n namelength: {\n valType: 'integer',\n min: -1,\n dflt: 15,\n editType: 'none',\n },\n\n editType: 'none'\n },\n selectdirection: {\n valType: 'enumerated',\n values: ['h', 'v', 'd', 'any'],\n dflt: 'any',\n editType: 'none'\n }\n};\n\n},{\"../../plots/font_attributes\":594,\"./constants\":401}],409:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar handleHoverModeDefaults = _dereq_('./hovermode_defaults');\nvar handleHoverLabelDefaults = _dereq_('./hoverlabel_defaults');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n var hoverMode = handleHoverModeDefaults(layoutIn, layoutOut);\n if(hoverMode) {\n coerce('hoverdistance');\n coerce('spikedistance');\n }\n\n var dragMode = coerce('dragmode');\n if(dragMode === 'select') coerce('selectdirection');\n\n // if only mapbox or geo subplots is present on graph,\n // reset 'zoom' dragmode to 'pan' until 'zoom' is implemented,\n // so that the correct modebar button is active\n var hasMapbox = layoutOut._has('mapbox');\n var hasGeo = layoutOut._has('geo');\n var len = layoutOut._basePlotModules.length;\n\n if(layoutOut.dragmode === 'zoom' && (\n ((hasMapbox || hasGeo) && len === 1) ||\n (hasMapbox && hasGeo && len === 2)\n )) {\n layoutOut.dragmode = 'pan';\n }\n\n handleHoverLabelDefaults(layoutIn, layoutOut, coerce);\n\n Lib.coerceFont(coerce, 'hoverlabel.grouptitlefont', layoutOut.hoverlabel.font);\n};\n\n},{\"../../lib\":515,\"./hoverlabel_defaults\":405,\"./hovermode_defaults\":406,\"./layout_attributes\":408}],410:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleHoverLabelDefaults = _dereq_('./hoverlabel_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutGlobalDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n handleHoverLabelDefaults(layoutIn, layoutOut, coerce);\n};\n\n},{\"../../lib\":515,\"./hoverlabel_defaults\":405,\"./layout_attributes\":408}],411:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar counterRegex = _dereq_('../../lib/regex').counter;\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar cartesianIdRegex = _dereq_('../../plots/cartesian/constants').idRegex;\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar gridAttrs = {\n rows: {\n valType: 'integer',\n min: 1,\n editType: 'plot',\n },\n roworder: {\n valType: 'enumerated',\n values: ['top to bottom', 'bottom to top'],\n dflt: 'top to bottom',\n editType: 'plot',\n },\n columns: {\n valType: 'integer',\n min: 1,\n editType: 'plot',\n },\n subplots: {\n valType: 'info_array',\n freeLength: true,\n dimensions: 2,\n items: {valType: 'enumerated', values: [counterRegex('xy').toString(), ''], editType: 'plot'},\n editType: 'plot',\n },\n xaxes: {\n valType: 'info_array',\n freeLength: true,\n items: {valType: 'enumerated', values: [cartesianIdRegex.x.toString(), ''], editType: 'plot'},\n editType: 'plot',\n },\n yaxes: {\n valType: 'info_array',\n freeLength: true,\n items: {valType: 'enumerated', values: [cartesianIdRegex.y.toString(), ''], editType: 'plot'},\n editType: 'plot',\n },\n pattern: {\n valType: 'enumerated',\n values: ['independent', 'coupled'],\n dflt: 'coupled',\n editType: 'plot',\n },\n xgap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'plot',\n },\n ygap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'plot',\n },\n domain: domainAttrs({name: 'grid', editType: 'plot', noGridCell: true}, {\n }),\n xside: {\n valType: 'enumerated',\n values: ['bottom', 'bottom plot', 'top plot', 'top'],\n dflt: 'bottom plot',\n editType: 'plot',\n },\n yside: {\n valType: 'enumerated',\n values: ['left', 'left plot', 'right plot', 'right'],\n dflt: 'left plot',\n editType: 'plot',\n },\n editType: 'plot'\n};\n\nfunction getAxes(layout, grid, axLetter) {\n var gridVal = grid[axLetter + 'axes'];\n var splomVal = Object.keys((layout._splomAxes || {})[axLetter] || {});\n\n if(Array.isArray(gridVal)) return gridVal;\n if(splomVal.length) return splomVal;\n}\n\n// the shape of the grid - this needs to be done BEFORE supplyDataDefaults\n// so that non-subplot traces can place themselves in the grid\nfunction sizeDefaults(layoutIn, layoutOut) {\n var gridIn = layoutIn.grid || {};\n var xAxes = getAxes(layoutOut, gridIn, 'x');\n var yAxes = getAxes(layoutOut, gridIn, 'y');\n\n if(!layoutIn.grid && !xAxes && !yAxes) return;\n\n var hasSubplotGrid = Array.isArray(gridIn.subplots) && Array.isArray(gridIn.subplots[0]);\n var hasXaxes = Array.isArray(xAxes);\n var hasYaxes = Array.isArray(yAxes);\n var isSplomGenerated = (\n hasXaxes && xAxes !== gridIn.xaxes &&\n hasYaxes && yAxes !== gridIn.yaxes\n );\n\n var dfltRows, dfltColumns;\n\n if(hasSubplotGrid) {\n dfltRows = gridIn.subplots.length;\n dfltColumns = gridIn.subplots[0].length;\n } else {\n if(hasYaxes) dfltRows = yAxes.length;\n if(hasXaxes) dfltColumns = xAxes.length;\n }\n\n var gridOut = Template.newContainer(layoutOut, 'grid');\n\n function coerce(attr, dflt) {\n return Lib.coerce(gridIn, gridOut, gridAttrs, attr, dflt);\n }\n\n var rows = coerce('rows', dfltRows);\n var columns = coerce('columns', dfltColumns);\n\n if(!(rows * columns > 1)) {\n delete layoutOut.grid;\n return;\n }\n\n if(!hasSubplotGrid && !hasXaxes && !hasYaxes) {\n var useDefaultSubplots = coerce('pattern') === 'independent';\n if(useDefaultSubplots) hasSubplotGrid = true;\n }\n gridOut._hasSubplotGrid = hasSubplotGrid;\n\n var rowOrder = coerce('roworder');\n var reversed = rowOrder === 'top to bottom';\n\n var dfltGapX = hasSubplotGrid ? 0.2 : 0.1;\n var dfltGapY = hasSubplotGrid ? 0.3 : 0.1;\n\n var dfltSideX, dfltSideY;\n if(isSplomGenerated && layoutOut._splomGridDflt) {\n dfltSideX = layoutOut._splomGridDflt.xside;\n dfltSideY = layoutOut._splomGridDflt.yside;\n }\n\n gridOut._domains = {\n x: fillGridPositions('x', coerce, dfltGapX, dfltSideX, columns),\n y: fillGridPositions('y', coerce, dfltGapY, dfltSideY, rows, reversed)\n };\n}\n\n// coerce x or y sizing attributes and return an array of domains for this direction\nfunction fillGridPositions(axLetter, coerce, dfltGap, dfltSide, len, reversed) {\n var dirGap = coerce(axLetter + 'gap', dfltGap);\n var domain = coerce('domain.' + axLetter);\n coerce(axLetter + 'side', dfltSide);\n\n var out = new Array(len);\n var start = domain[0];\n var step = (domain[1] - start) / (len - dirGap);\n var cellDomain = step * (1 - dirGap);\n for(var i = 0; i < len; i++) {\n var cellStart = start + step * i;\n out[reversed ? (len - 1 - i) : i] = [cellStart, cellStart + cellDomain];\n }\n return out;\n}\n\n// the (cartesian) contents of the grid - this needs to happen AFTER supplyDataDefaults\n// so that we know what cartesian subplots are available\nfunction contentDefaults(layoutIn, layoutOut) {\n var gridOut = layoutOut.grid;\n // make sure we got to the end of handleGridSizing\n if(!gridOut || !gridOut._domains) return;\n\n var gridIn = layoutIn.grid || {};\n var subplots = layoutOut._subplots;\n var hasSubplotGrid = gridOut._hasSubplotGrid;\n var rows = gridOut.rows;\n var columns = gridOut.columns;\n var useDefaultSubplots = gridOut.pattern === 'independent';\n\n var i, j, xId, yId, subplotId, subplotsOut, yPos;\n\n var axisMap = gridOut._axisMap = {};\n\n if(hasSubplotGrid) {\n var subplotsIn = gridIn.subplots || [];\n subplotsOut = gridOut.subplots = new Array(rows);\n var index = 1;\n\n for(i = 0; i < rows; i++) {\n var rowOut = subplotsOut[i] = new Array(columns);\n var rowIn = subplotsIn[i] || [];\n for(j = 0; j < columns; j++) {\n if(useDefaultSubplots) {\n subplotId = (index === 1) ? 'xy' : ('x' + index + 'y' + index);\n index++;\n } else subplotId = rowIn[j];\n\n rowOut[j] = '';\n\n if(subplots.cartesian.indexOf(subplotId) !== -1) {\n yPos = subplotId.indexOf('y');\n xId = subplotId.slice(0, yPos);\n yId = subplotId.slice(yPos);\n if((axisMap[xId] !== undefined && axisMap[xId] !== j) ||\n (axisMap[yId] !== undefined && axisMap[yId] !== i)\n ) {\n continue;\n }\n\n rowOut[j] = subplotId;\n axisMap[xId] = j;\n axisMap[yId] = i;\n }\n }\n }\n } else {\n var xAxes = getAxes(layoutOut, gridIn, 'x');\n var yAxes = getAxes(layoutOut, gridIn, 'y');\n gridOut.xaxes = fillGridAxes(xAxes, subplots.xaxis, columns, axisMap, 'x');\n gridOut.yaxes = fillGridAxes(yAxes, subplots.yaxis, rows, axisMap, 'y');\n }\n\n var anchors = gridOut._anchors = {};\n var reversed = gridOut.roworder === 'top to bottom';\n\n for(var axisId in axisMap) {\n var axLetter = axisId.charAt(0);\n var side = gridOut[axLetter + 'side'];\n\n var i0, inc, iFinal;\n\n if(side.length < 8) {\n // grid edge - ie not \"* plot\" - make these as free axes\n // since we're not guaranteed to have a subplot there at all\n anchors[axisId] = 'free';\n } else if(axLetter === 'x') {\n if((side.charAt(0) === 't') === reversed) {\n i0 = 0;\n inc = 1;\n iFinal = rows;\n } else {\n i0 = rows - 1;\n inc = -1;\n iFinal = -1;\n }\n if(hasSubplotGrid) {\n var column = axisMap[axisId];\n for(i = i0; i !== iFinal; i += inc) {\n subplotId = subplotsOut[i][column];\n if(!subplotId) continue;\n yPos = subplotId.indexOf('y');\n if(subplotId.slice(0, yPos) === axisId) {\n anchors[axisId] = subplotId.slice(yPos);\n break;\n }\n }\n } else {\n for(i = i0; i !== iFinal; i += inc) {\n yId = gridOut.yaxes[i];\n if(subplots.cartesian.indexOf(axisId + yId) !== -1) {\n anchors[axisId] = yId;\n break;\n }\n }\n }\n } else {\n if((side.charAt(0) === 'l')) {\n i0 = 0;\n inc = 1;\n iFinal = columns;\n } else {\n i0 = columns - 1;\n inc = -1;\n iFinal = -1;\n }\n if(hasSubplotGrid) {\n var row = axisMap[axisId];\n for(i = i0; i !== iFinal; i += inc) {\n subplotId = subplotsOut[row][i];\n if(!subplotId) continue;\n yPos = subplotId.indexOf('y');\n if(subplotId.slice(yPos) === axisId) {\n anchors[axisId] = subplotId.slice(0, yPos);\n break;\n }\n }\n } else {\n for(i = i0; i !== iFinal; i += inc) {\n xId = gridOut.xaxes[i];\n if(subplots.cartesian.indexOf(xId + axisId) !== -1) {\n anchors[axisId] = xId;\n break;\n }\n }\n }\n }\n }\n}\n\nfunction fillGridAxes(axesIn, axesAllowed, len, axisMap, axLetter) {\n var out = new Array(len);\n var i;\n\n function fillOneAxis(i, axisId) {\n if(axesAllowed.indexOf(axisId) !== -1 && axisMap[axisId] === undefined) {\n out[i] = axisId;\n axisMap[axisId] = i;\n } else out[i] = '';\n }\n\n if(Array.isArray(axesIn)) {\n for(i = 0; i < len; i++) {\n fillOneAxis(i, axesIn[i]);\n }\n } else {\n // default axis list is the first `len` axis ids\n fillOneAxis(0, axLetter);\n for(i = 1; i < len; i++) {\n fillOneAxis(i, axLetter + (i + 1));\n }\n }\n\n return out;\n}\n\nmodule.exports = {\n moduleType: 'component',\n name: 'grid',\n\n schema: {\n layout: {grid: gridAttrs}\n },\n\n layoutAttributes: gridAttrs,\n sizeDefaults: sizeDefaults,\n contentDefaults: contentDefaults\n};\n\n},{\"../../lib\":515,\"../../lib/regex\":532,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/constants\":573,\"../../plots/domain\":593}],412:[function(_dereq_,module,exports){\n'use strict';\n\nvar cartesianConstants = _dereq_('../../plots/cartesian/constants');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\n\nmodule.exports = templatedArray('image', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'arraydraw',\n },\n\n source: {\n valType: 'string',\n editType: 'arraydraw',\n },\n\n layer: {\n valType: 'enumerated',\n values: ['below', 'above'],\n dflt: 'above',\n editType: 'arraydraw',\n },\n\n sizex: {\n valType: 'number',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n sizey: {\n valType: 'number',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n sizing: {\n valType: 'enumerated',\n values: ['fill', 'contain', 'stretch'],\n dflt: 'contain',\n editType: 'arraydraw',\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'arraydraw',\n },\n\n x: {\n valType: 'any',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n y: {\n valType: 'any',\n dflt: 0,\n editType: 'arraydraw',\n },\n\n xanchor: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'left',\n editType: 'arraydraw',\n },\n\n yanchor: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'top',\n editType: 'arraydraw',\n },\n\n xref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.x.toString()\n ],\n dflt: 'paper',\n editType: 'arraydraw',\n },\n\n yref: {\n valType: 'enumerated',\n values: [\n 'paper',\n cartesianConstants.idRegex.y.toString()\n ],\n dflt: 'paper',\n editType: 'arraydraw',\n },\n editType: 'arraydraw'\n});\n\n},{\"../../constants/axis_placeable_objects\":484,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/constants\":573}],413:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar toLogRange = _dereq_('../../lib/to_log_range');\n\n/*\n * convertCoords: when converting an axis between log and linear\n * you need to alter any images on that axis to keep them\n * pointing at the same data point.\n * In v3.0 this will become obsolete (or perhaps size will still need conversion?)\n * we convert size by declaring that the maximum extent *in data units* should be\n * the same, assuming the image is anchored by its center (could remove that restriction\n * if we think it's important) even though the actual left and right values will not be\n * quite the same since the scale becomes nonlinear (and central anchor means the pixel\n * center of the image, not the data units center)\n *\n * gd: the plot div\n * ax: the axis being changed\n * newType: the type it's getting\n * doExtra: function(attr, val) from inside relayout that sets the attribute.\n * Use this to make the changes as it's aware if any other changes in the\n * same relayout call should override this conversion.\n */\nmodule.exports = function convertCoords(gd, ax, newType, doExtra) {\n ax = ax || {};\n\n var toLog = (newType === 'log') && (ax.type === 'linear');\n var fromLog = (newType === 'linear') && (ax.type === 'log');\n\n if(!(toLog || fromLog)) return;\n\n var images = gd._fullLayout.images;\n var axLetter = ax._id.charAt(0);\n var image;\n var attrPrefix;\n\n for(var i = 0; i < images.length; i++) {\n image = images[i];\n attrPrefix = 'images[' + i + '].';\n\n if(image[axLetter + 'ref'] === ax._id) {\n var currentPos = image[axLetter];\n var currentSize = image['size' + axLetter];\n var newPos = null;\n var newSize = null;\n\n if(toLog) {\n newPos = toLogRange(currentPos, ax.range);\n\n // this is the inverse of the conversion we do in fromLog below\n // so that the conversion is reversible (notice the fromLog conversion\n // is like sinh, and this one looks like arcsinh)\n var dx = currentSize / Math.pow(10, newPos) / 2;\n newSize = 2 * Math.log(dx + Math.sqrt(1 + dx * dx)) / Math.LN10;\n } else {\n newPos = Math.pow(10, currentPos);\n newSize = newPos * (Math.pow(10, currentSize / 2) - Math.pow(10, -currentSize / 2));\n }\n\n // if conversion failed, delete the value so it can get a default later on\n if(!isNumeric(newPos)) {\n newPos = null;\n newSize = null;\n } else if(!isNumeric(newSize)) newSize = null;\n\n doExtra(attrPrefix + axLetter, newPos);\n doExtra(attrPrefix + 'size' + axLetter, newSize);\n }\n }\n};\n\n},{\"../../lib/to_log_range\":543,\"fast-isnumeric\":190}],414:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar name = 'images';\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n var opts = {\n name: name,\n handleItemDefaults: imageDefaults\n };\n\n handleArrayContainerDefaults(layoutIn, layoutOut, opts);\n};\n\n\nfunction imageDefaults(imageIn, imageOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(imageIn, imageOut, attributes, attr, dflt);\n }\n\n var source = coerce('source');\n var visible = coerce('visible', !!source);\n\n if(!visible) return imageOut;\n\n coerce('layer');\n coerce('xanchor');\n coerce('yanchor');\n coerce('sizex');\n coerce('sizey');\n coerce('sizing');\n coerce('opacity');\n\n var gdMock = { _fullLayout: fullLayout };\n var axLetters = ['x', 'y'];\n\n for(var i = 0; i < 2; i++) {\n // 'paper' is the fallback axref\n var axLetter = axLetters[i];\n var axRef = Axes.coerceRef(imageIn, imageOut, gdMock, axLetter, 'paper', undefined);\n\n if(axRef !== 'paper') {\n var ax = Axes.getFromId(gdMock, axRef);\n ax._imgIndices.push(imageOut._index);\n }\n\n Axes.coercePosition(imageOut, gdMock, coerce, axRef, axLetter, 0);\n }\n\n return imageOut;\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/axes\":566,\"./attributes\":412}],415:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../drawing');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n var imageDataAbove = [];\n var imageDataSubplot = {};\n var imageDataBelow = [];\n var subplot;\n var i;\n\n // Sort into top, subplot, and bottom layers\n for(i = 0; i < fullLayout.images.length; i++) {\n var img = fullLayout.images[i];\n\n if(img.visible) {\n if(img.layer === 'below' && img.xref !== 'paper' && img.yref !== 'paper') {\n subplot = axisIds.ref2id(img.xref) + axisIds.ref2id(img.yref);\n\n var plotinfo = fullLayout._plots[subplot];\n\n if(!plotinfo) {\n // Fall back to _imageLowerLayer in case the requested subplot doesn't exist.\n // This can happen if you reference the image to an x / y axis combination\n // that doesn't have any data on it (and layer is below)\n imageDataBelow.push(img);\n continue;\n }\n\n if(plotinfo.mainplot) {\n subplot = plotinfo.mainplot.id;\n }\n\n if(!imageDataSubplot[subplot]) {\n imageDataSubplot[subplot] = [];\n }\n imageDataSubplot[subplot].push(img);\n } else if(img.layer === 'above') {\n imageDataAbove.push(img);\n } else {\n imageDataBelow.push(img);\n }\n }\n }\n\n\n var anchors = {\n x: {\n left: { sizing: 'xMin', offset: 0 },\n center: { sizing: 'xMid', offset: -1 / 2 },\n right: { sizing: 'xMax', offset: -1 }\n },\n y: {\n top: { sizing: 'YMin', offset: 0 },\n middle: { sizing: 'YMid', offset: -1 / 2 },\n bottom: { sizing: 'YMax', offset: -1 }\n }\n };\n\n\n // Images must be converted to dataURL's for exporting.\n function setImage(d) {\n var thisImage = d3.select(this);\n\n if(this._imgSrc === d.source) {\n return;\n }\n\n thisImage.attr('xmlns', xmlnsNamespaces.svg);\n\n if(d.source && d.source.slice(0, 5) === 'data:') {\n thisImage.attr('xlink:href', d.source);\n this._imgSrc = d.source;\n } else {\n var imagePromise = new Promise(function(resolve) {\n var img = new Image();\n this.img = img;\n\n // If not set, a `tainted canvas` error is thrown\n img.setAttribute('crossOrigin', 'anonymous');\n img.onerror = errorHandler;\n img.onload = function() {\n var canvas = document.createElement('canvas');\n canvas.width = this.width;\n canvas.height = this.height;\n\n var ctx = canvas.getContext('2d', {willReadFrequently: true});\n ctx.drawImage(this, 0, 0);\n\n var dataURL = canvas.toDataURL('image/png');\n\n thisImage.attr('xlink:href', dataURL);\n\n // resolve promise in onload handler instead of on 'load' to support IE11\n // see https://github.com/plotly/plotly.js/issues/1685\n // for more details\n resolve();\n };\n\n thisImage.on('error', errorHandler);\n\n img.src = d.source;\n this._imgSrc = d.source;\n\n function errorHandler() {\n thisImage.remove();\n resolve();\n }\n }.bind(this));\n\n gd._promises.push(imagePromise);\n }\n }\n\n function applyAttributes(d) {\n var thisImage = d3.select(this);\n\n // Axes if specified\n var xa = Axes.getFromId(gd, d.xref);\n var ya = Axes.getFromId(gd, d.yref);\n var xIsDomain = Axes.getRefType(d.xref) === 'domain';\n var yIsDomain = Axes.getRefType(d.yref) === 'domain';\n\n var size = fullLayout._size;\n var width, height;\n if(xa !== undefined) {\n width = ((typeof(d.xref) === 'string') && xIsDomain) ?\n xa._length * d.sizex :\n Math.abs(xa.l2p(d.sizex) - xa.l2p(0));\n } else {\n width = d.sizex * size.w;\n }\n if(ya !== undefined) {\n height = ((typeof(d.yref) === 'string') && yIsDomain) ?\n ya._length * d.sizey :\n Math.abs(ya.l2p(d.sizey) - ya.l2p(0));\n } else {\n height = d.sizey * size.h;\n }\n\n // Offsets for anchor positioning\n var xOffset = width * anchors.x[d.xanchor].offset;\n var yOffset = height * anchors.y[d.yanchor].offset;\n\n var sizing = anchors.x[d.xanchor].sizing + anchors.y[d.yanchor].sizing;\n\n // Final positions\n var xPos, yPos;\n if(xa !== undefined) {\n xPos = ((typeof(d.xref) === 'string') && xIsDomain) ?\n xa._length * d.x + xa._offset :\n xa.r2p(d.x) + xa._offset;\n } else {\n xPos = d.x * size.w + size.l;\n }\n xPos += xOffset;\n if(ya !== undefined) {\n yPos = ((typeof(d.yref) === 'string') && yIsDomain) ?\n // consistent with \"paper\" yref value, where positive values\n // move up the page\n ya._length * (1 - d.y) + ya._offset :\n ya.r2p(d.y) + ya._offset;\n } else {\n yPos = size.h - d.y * size.h + size.t;\n }\n yPos += yOffset;\n\n // Construct the proper aspectRatio attribute\n switch(d.sizing) {\n case 'fill':\n sizing += ' slice';\n break;\n\n case 'stretch':\n sizing = 'none';\n break;\n }\n\n thisImage.attr({\n x: xPos,\n y: yPos,\n width: width,\n height: height,\n preserveAspectRatio: sizing,\n opacity: d.opacity\n });\n\n\n // Set proper clipping on images\n var xId = xa && (Axes.getRefType(d.xref) !== 'domain') ? xa._id : '';\n var yId = ya && (Axes.getRefType(d.yref) !== 'domain') ? ya._id : '';\n var clipAxes = xId + yId;\n\n Drawing.setClipUrl(\n thisImage,\n clipAxes ? ('clip' + fullLayout._uid + clipAxes) : null,\n gd\n );\n }\n\n var imagesBelow = fullLayout._imageLowerLayer.selectAll('image')\n .data(imageDataBelow);\n var imagesAbove = fullLayout._imageUpperLayer.selectAll('image')\n .data(imageDataAbove);\n\n imagesBelow.enter().append('image');\n imagesAbove.enter().append('image');\n\n imagesBelow.exit().remove();\n imagesAbove.exit().remove();\n\n imagesBelow.each(function(d) {\n setImage.bind(this)(d);\n applyAttributes.bind(this)(d);\n });\n imagesAbove.each(function(d) {\n setImage.bind(this)(d);\n applyAttributes.bind(this)(d);\n });\n\n var allSubplots = Object.keys(fullLayout._plots);\n for(i = 0; i < allSubplots.length; i++) {\n subplot = allSubplots[i];\n var subplotObj = fullLayout._plots[subplot];\n\n // filter out overlaid plots (which have their images on the main plot)\n // and gl2d plots (which don't support below images, at least not yet)\n if(!subplotObj.imagelayer) continue;\n\n var imagesOnSubplot = subplotObj.imagelayer.selectAll('image')\n // even if there are no images on this subplot, we need to run\n // enter and exit in case there were previously\n .data(imageDataSubplot[subplot] || []);\n\n imagesOnSubplot.enter().append('image');\n imagesOnSubplot.exit().remove();\n\n imagesOnSubplot.each(function(d) {\n setImage.bind(this)(d);\n applyAttributes.bind(this)(d);\n });\n }\n};\n\n},{\"../../constants/xmlns_namespaces\":492,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/axis_ids\":570,\"../drawing\":389,\"@plotly/d3\":58}],416:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'images',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('images'),\n\n draw: _dereq_('./draw'),\n\n convertCoords: _dereq_('./convert_coords')\n};\n\n},{\"../../plots/cartesian/include_components\":577,\"./attributes\":412,\"./convert_coords\":413,\"./defaults\":414,\"./draw\":415}],417:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../color/attributes');\n\n\nmodule.exports = {\n bgcolor: {\n valType: 'color',\n editType: 'legend',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'legend',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'legend',\n },\n font: fontAttrs({\n editType: 'legend',\n }),\n grouptitlefont: fontAttrs({\n editType: 'legend',\n }),\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'v',\n editType: 'legend',\n },\n traceorder: {\n valType: 'flaglist',\n flags: ['reversed', 'grouped'],\n extras: ['normal'],\n editType: 'legend',\n },\n tracegroupgap: {\n valType: 'number',\n min: 0,\n dflt: 10,\n editType: 'legend',\n },\n entrywidth: {\n valType: 'number',\n min: 0,\n editType: 'legend',\n },\n entrywidthmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'pixels',\n editType: 'legend',\n },\n itemsizing: {\n valType: 'enumerated',\n values: ['trace', 'constant'],\n dflt: 'trace',\n editType: 'legend',\n },\n itemwidth: {\n valType: 'number',\n min: 30,\n dflt: 30,\n editType: 'legend',\n },\n itemclick: {\n valType: 'enumerated',\n values: ['toggle', 'toggleothers', false],\n dflt: 'toggle',\n editType: 'legend',\n },\n itemdoubleclick: {\n valType: 'enumerated',\n values: ['toggle', 'toggleothers', false],\n dflt: 'toggleothers',\n editType: 'legend',\n },\n groupclick: {\n valType: 'enumerated',\n values: ['toggleitem', 'togglegroup'],\n dflt: 'togglegroup',\n editType: 'legend',\n },\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'legend',\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'left',\n editType: 'legend',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'legend',\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n editType: 'legend',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n valign: {\n valType: 'enumerated',\n values: ['top', 'middle', 'bottom'],\n dflt: 'middle',\n editType: 'legend',\n },\n title: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'legend',\n },\n font: fontAttrs({\n editType: 'legend',\n }),\n side: {\n valType: 'enumerated',\n values: ['top', 'left', 'top left'],\n editType: 'legend',\n },\n editType: 'legend',\n },\n editType: 'legend'\n};\n\n},{\"../../plots/font_attributes\":594,\"../color/attributes\":366}],418:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n scrollBarWidth: 6,\n scrollBarMinHeight: 20,\n scrollBarColor: '#808BA4',\n scrollBarMargin: 4,\n scrollBarEnterAttrs: {rx: 20, ry: 3, width: 0, height: 0},\n\n // number of px between legend title and (left) side of legend (always in x direction and from inner border)\n titlePad: 2,\n // number of px between each legend item (x and/or y direction)\n itemGap: 5\n};\n\n},{}],419:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar plotsAttrs = _dereq_('../../plots/attributes');\nvar attributes = _dereq_('./attributes');\nvar basePlotLayoutAttributes = _dereq_('../../plots/layout_attributes');\nvar helpers = _dereq_('./helpers');\n\n\nmodule.exports = function legendDefaults(layoutIn, layoutOut, fullData) {\n var containerIn = layoutIn.legend || {};\n var containerOut = Template.newContainer(layoutOut, 'legend');\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n var trace;\n var traceCoerce = function(attr, dflt) {\n var traceIn = trace._input;\n var traceOut = trace;\n return Lib.coerce(traceIn, traceOut, plotsAttrs, attr, dflt);\n };\n\n var globalFont = layoutOut.font || {};\n var grouptitlefont = Lib.coerceFont(coerce, 'grouptitlefont', Lib.extendFlat({}, globalFont, {\n size: Math.round(globalFont.size * 1.1)\n }));\n\n var legendTraceCount = 0;\n var legendReallyHasATrace = false;\n var defaultOrder = 'normal';\n\n for(var i = 0; i < fullData.length; i++) {\n trace = fullData[i];\n\n if(!trace.visible) continue;\n\n // Note that we explicitly count any trace that is either shown or\n // *would* be shown by default, toward the two traces you need to\n // ensure the legend is shown by default, because this can still help\n // disambiguate.\n if(trace.showlegend || (\n trace._dfltShowLegend && !(\n trace._module &&\n trace._module.attributes &&\n trace._module.attributes.showlegend &&\n trace._module.attributes.showlegend.dflt === false\n )\n )) {\n legendTraceCount++;\n if(trace.showlegend) {\n legendReallyHasATrace = true;\n // Always show the legend by default if there's a pie,\n // or if there's only one trace but it's explicitly shown\n if(Registry.traceIs(trace, 'pie-like') ||\n trace._input.showlegend === true\n ) {\n legendTraceCount++;\n }\n }\n\n Lib.coerceFont(traceCoerce, 'legendgrouptitle.font', grouptitlefont);\n }\n\n if((Registry.traceIs(trace, 'bar') && layoutOut.barmode === 'stack') ||\n ['tonextx', 'tonexty'].indexOf(trace.fill) !== -1) {\n defaultOrder = helpers.isGrouped({traceorder: defaultOrder}) ?\n 'grouped+reversed' : 'reversed';\n }\n\n if(trace.legendgroup !== undefined && trace.legendgroup !== '') {\n defaultOrder = helpers.isReversed({traceorder: defaultOrder}) ?\n 'reversed+grouped' : 'grouped';\n }\n }\n\n var showLegend = Lib.coerce(layoutIn, layoutOut,\n basePlotLayoutAttributes, 'showlegend',\n legendReallyHasATrace && legendTraceCount > 1);\n\n // delete legend\n if(showLegend === false) layoutOut.legend = undefined;\n\n if(showLegend === false && !containerIn.uirevision) return;\n\n coerce('uirevision', layoutOut.uirevision);\n\n if(showLegend === false) return;\n\n coerce('bgcolor', layoutOut.paper_bgcolor);\n coerce('bordercolor');\n coerce('borderwidth');\n var itemFont = Lib.coerceFont(coerce, 'font', layoutOut.font);\n\n var orientation = coerce('orientation');\n var isHorizontal = orientation === 'h';\n var defaultX, defaultY, defaultYAnchor;\n\n if(isHorizontal) {\n defaultX = 0;\n\n if(Registry.getComponentMethod('rangeslider', 'isVisible')(layoutIn.xaxis)) {\n defaultY = 1.1;\n defaultYAnchor = 'bottom';\n } else {\n // maybe use y=1.1 / yanchor=bottom as above\n // to avoid https://github.com/plotly/plotly.js/issues/1199\n // in v3\n defaultY = -0.1;\n defaultYAnchor = 'top';\n }\n } else {\n defaultX = 1.02;\n defaultY = 1;\n defaultYAnchor = 'auto';\n }\n\n coerce('traceorder', defaultOrder);\n if(helpers.isGrouped(layoutOut.legend)) coerce('tracegroupgap');\n\n coerce('entrywidth');\n coerce('entrywidthmode');\n coerce('itemsizing');\n coerce('itemwidth');\n\n coerce('itemclick');\n coerce('itemdoubleclick');\n coerce('groupclick');\n\n coerce('x', defaultX);\n coerce('xanchor');\n coerce('y', defaultY);\n coerce('yanchor', defaultYAnchor);\n coerce('valign');\n Lib.noneOrAll(containerIn, containerOut, ['x', 'y']);\n\n var titleText = coerce('title.text');\n if(titleText) {\n coerce('title.side', isHorizontal ? 'left' : 'top');\n var dfltTitleFont = Lib.extendFlat({}, itemFont, {\n size: Lib.bigFont(itemFont.size)\n });\n\n Lib.coerceFont(coerce, 'title.font', dfltTitleFont);\n }\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../plots/attributes\":562,\"../../plots/layout_attributes\":619,\"../../registry\":647,\"./attributes\":417,\"./helpers\":423}],420:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar Plots = _dereq_('../../plots/plots');\nvar Registry = _dereq_('../../registry');\nvar Events = _dereq_('../../lib/events');\nvar dragElement = _dereq_('../dragelement');\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar handleClick = _dereq_('./handle_click');\n\nvar constants = _dereq_('./constants');\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nvar getLegendData = _dereq_('./get_legend_data');\nvar style = _dereq_('./style');\nvar helpers = _dereq_('./helpers');\n\nvar MAIN_TITLE = 1;\n\nmodule.exports = function draw(gd, opts) {\n if(!opts) opts = gd._fullLayout.legend || {};\n return _draw(gd, opts);\n};\n\nfunction _draw(gd, legendObj) {\n var fullLayout = gd._fullLayout;\n var clipId = 'legend' + fullLayout._uid;\n var layer;\n\n var inHover = legendObj._inHover;\n if(inHover) {\n layer = legendObj.layer;\n clipId += '-hover';\n } else {\n layer = fullLayout._infolayer;\n }\n\n if(!layer) return;\n\n if(!gd._legendMouseDownTime) gd._legendMouseDownTime = 0;\n\n var legendData;\n if(!inHover) {\n if(!gd.calcdata) return;\n legendData = fullLayout.showlegend && getLegendData(gd.calcdata, legendObj);\n } else {\n if(!legendObj.entries) return;\n legendData = getLegendData(legendObj.entries, legendObj);\n }\n\n var hiddenSlices = fullLayout.hiddenlabels || [];\n\n if(!inHover && (!fullLayout.showlegend || !legendData.length)) {\n layer.selectAll('.legend').remove();\n fullLayout._topdefs.select('#' + clipId).remove();\n return Plots.autoMargin(gd, 'legend');\n }\n\n var legend = Lib.ensureSingle(layer, 'g', 'legend', function(s) {\n if(!inHover) s.attr('pointer-events', 'all');\n });\n\n var clipPath = Lib.ensureSingleById(fullLayout._topdefs, 'clipPath', clipId, function(s) {\n s.append('rect');\n });\n\n var bg = Lib.ensureSingle(legend, 'rect', 'bg', function(s) {\n s.attr('shape-rendering', 'crispEdges');\n });\n bg.call(Color.stroke, legendObj.bordercolor)\n .call(Color.fill, legendObj.bgcolor)\n .style('stroke-width', legendObj.borderwidth + 'px');\n\n var scrollBox = Lib.ensureSingle(legend, 'g', 'scrollbox');\n\n var title = legendObj.title;\n legendObj._titleWidth = 0;\n legendObj._titleHeight = 0;\n if(title.text) {\n var titleEl = Lib.ensureSingle(scrollBox, 'text', 'legendtitletext');\n titleEl.attr('text-anchor', 'start')\n .call(Drawing.font, title.font)\n .text(title.text);\n\n textLayout(titleEl, scrollBox, gd, legendObj, MAIN_TITLE); // handle mathjax or multi-line text and compute title height\n } else {\n scrollBox.selectAll('.legendtitletext').remove();\n }\n\n var scrollBar = Lib.ensureSingle(legend, 'rect', 'scrollbar', function(s) {\n s.attr(constants.scrollBarEnterAttrs)\n .call(Color.fill, constants.scrollBarColor);\n });\n\n var groups = scrollBox.selectAll('g.groups').data(legendData);\n groups.enter().append('g').attr('class', 'groups');\n groups.exit().remove();\n\n var traces = groups.selectAll('g.traces').data(Lib.identity);\n traces.enter().append('g').attr('class', 'traces');\n traces.exit().remove();\n\n traces.style('opacity', function(d) {\n var trace = d[0].trace;\n if(Registry.traceIs(trace, 'pie-like')) {\n return hiddenSlices.indexOf(d[0].label) !== -1 ? 0.5 : 1;\n } else {\n return trace.visible === 'legendonly' ? 0.5 : 1;\n }\n })\n .each(function() { d3.select(this).call(drawTexts, gd, legendObj); })\n .call(style, gd, legendObj)\n .each(function() { if(!inHover) d3.select(this).call(setupTraceToggle, gd); });\n\n Lib.syncOrAsync([\n Plots.previousPromises,\n function() { return computeLegendDimensions(gd, groups, traces, legendObj); },\n function() {\n var gs = fullLayout._size;\n var bw = legendObj.borderwidth;\n\n if(!inHover) {\n var expMargin = expandMargin(gd);\n\n // IF expandMargin return a Promise (which is truthy),\n // we're under a doAutoMargin redraw, so we don't have to\n // draw the remaining pieces below\n if(expMargin) return;\n\n var lx = gs.l + gs.w * legendObj.x - FROM_TL[getXanchor(legendObj)] * legendObj._width;\n var ly = gs.t + gs.h * (1 - legendObj.y) - FROM_TL[getYanchor(legendObj)] * legendObj._effHeight;\n\n if(fullLayout.margin.autoexpand) {\n var lx0 = lx;\n var ly0 = ly;\n\n lx = Lib.constrain(lx, 0, fullLayout.width - legendObj._width);\n ly = Lib.constrain(ly, 0, fullLayout.height - legendObj._effHeight);\n\n if(lx !== lx0) {\n Lib.log('Constrain legend.x to make legend fit inside graph');\n }\n if(ly !== ly0) {\n Lib.log('Constrain legend.y to make legend fit inside graph');\n }\n }\n\n // Set size and position of all the elements that make up a legend:\n // legend, background and border, scroll box and scroll bar as well as title\n Drawing.setTranslate(legend, lx, ly);\n }\n\n // to be safe, remove previous listeners\n scrollBar.on('.drag', null);\n legend.on('wheel', null);\n\n if(inHover || legendObj._height <= legendObj._maxHeight || gd._context.staticPlot) {\n // if scrollbar should not be shown.\n var height = legendObj._effHeight;\n\n // if unified hover, let it be its full size\n if(inHover) height = legendObj._height;\n\n bg.attr({\n width: legendObj._width - bw,\n height: height - bw,\n x: bw / 2,\n y: bw / 2\n });\n\n Drawing.setTranslate(scrollBox, 0, 0);\n\n clipPath.select('rect').attr({\n width: legendObj._width - 2 * bw,\n height: height - 2 * bw,\n x: bw,\n y: bw\n });\n\n Drawing.setClipUrl(scrollBox, clipId, gd);\n\n Drawing.setRect(scrollBar, 0, 0, 0, 0);\n delete legendObj._scrollY;\n } else {\n var scrollBarHeight = Math.max(constants.scrollBarMinHeight,\n legendObj._effHeight * legendObj._effHeight / legendObj._height);\n var scrollBarYMax = legendObj._effHeight -\n scrollBarHeight -\n 2 * constants.scrollBarMargin;\n var scrollBoxYMax = legendObj._height - legendObj._effHeight;\n var scrollRatio = scrollBarYMax / scrollBoxYMax;\n\n var scrollBoxY = Math.min(legendObj._scrollY || 0, scrollBoxYMax);\n\n // increase the background and clip-path width\n // by the scrollbar width and margin\n bg.attr({\n width: legendObj._width -\n 2 * bw +\n constants.scrollBarWidth +\n constants.scrollBarMargin,\n height: legendObj._effHeight - bw,\n x: bw / 2,\n y: bw / 2\n });\n\n clipPath.select('rect').attr({\n width: legendObj._width -\n 2 * bw +\n constants.scrollBarWidth +\n constants.scrollBarMargin,\n height: legendObj._effHeight - 2 * bw,\n x: bw,\n y: bw + scrollBoxY\n });\n\n Drawing.setClipUrl(scrollBox, clipId, gd);\n\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n\n // scroll legend by mousewheel or touchpad swipe up/down\n legend.on('wheel', function() {\n scrollBoxY = Lib.constrain(\n legendObj._scrollY +\n ((d3.event.deltaY / scrollBarYMax) * scrollBoxYMax),\n 0, scrollBoxYMax);\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n if(scrollBoxY !== 0 && scrollBoxY !== scrollBoxYMax) {\n d3.event.preventDefault();\n }\n });\n\n var eventY0, eventY1, scrollBoxY0;\n\n var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {\n var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;\n return Lib.constrain(y, 0, scrollBoxYMax);\n };\n\n var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {\n var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;\n return Lib.constrain(y, 0, scrollBoxYMax);\n };\n\n // scroll legend by dragging scrollBAR\n var scrollBarDrag = d3.behavior.drag()\n .on('dragstart', function() {\n var e = d3.event.sourceEvent;\n if(e.type === 'touchstart') {\n eventY0 = e.changedTouches[0].clientY;\n } else {\n eventY0 = e.clientY;\n }\n scrollBoxY0 = scrollBoxY;\n })\n .on('drag', function() {\n var e = d3.event.sourceEvent;\n if(e.buttons === 2 || e.ctrlKey) return;\n if(e.type === 'touchmove') {\n eventY1 = e.changedTouches[0].clientY;\n } else {\n eventY1 = e.clientY;\n }\n scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n });\n scrollBar.call(scrollBarDrag);\n\n // scroll legend by touch-dragging scrollBOX\n var scrollBoxTouchDrag = d3.behavior.drag()\n .on('dragstart', function() {\n var e = d3.event.sourceEvent;\n if(e.type === 'touchstart') {\n eventY0 = e.changedTouches[0].clientY;\n scrollBoxY0 = scrollBoxY;\n }\n })\n .on('drag', function() {\n var e = d3.event.sourceEvent;\n if(e.type === 'touchmove') {\n eventY1 = e.changedTouches[0].clientY;\n scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);\n scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);\n }\n });\n scrollBox.call(scrollBoxTouchDrag);\n }\n\n function scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio) {\n legendObj._scrollY = gd._fullLayout.legend._scrollY = scrollBoxY;\n Drawing.setTranslate(scrollBox, 0, -scrollBoxY);\n\n Drawing.setRect(\n scrollBar,\n legendObj._width,\n constants.scrollBarMargin + scrollBoxY * scrollRatio,\n constants.scrollBarWidth,\n scrollBarHeight\n );\n clipPath.select('rect').attr('y', bw + scrollBoxY);\n }\n\n if(gd._context.edits.legendPosition) {\n var xf, yf, x0, y0;\n\n legend.classed('cursor-move', true);\n\n dragElement.init({\n element: legend.node(),\n gd: gd,\n prepFn: function() {\n var transform = Drawing.getTranslate(legend);\n x0 = transform.x;\n y0 = transform.y;\n },\n moveFn: function(dx, dy) {\n var newX = x0 + dx;\n var newY = y0 + dy;\n\n Drawing.setTranslate(legend, newX, newY);\n\n xf = dragElement.align(newX, 0, gs.l, gs.l + gs.w, legendObj.xanchor);\n yf = dragElement.align(newY, 0, gs.t + gs.h, gs.t, legendObj.yanchor);\n },\n doneFn: function() {\n if(xf !== undefined && yf !== undefined) {\n Registry.call('_guiRelayout', gd, {'legend.x': xf, 'legend.y': yf});\n }\n },\n clickFn: function(numClicks, e) {\n var clickedTrace = layer.selectAll('g.traces').filter(function() {\n var bbox = this.getBoundingClientRect();\n return (\n e.clientX >= bbox.left && e.clientX <= bbox.right &&\n e.clientY >= bbox.top && e.clientY <= bbox.bottom\n );\n });\n if(clickedTrace.size() > 0) {\n clickOrDoubleClick(gd, legend, clickedTrace, numClicks, e);\n }\n }\n });\n }\n }], gd);\n}\n\nfunction getTraceWidth(d, legendObj, textGap) {\n var legendItem = d[0];\n var legendWidth = legendItem.width;\n var mode = legendObj.entrywidthmode;\n\n var traceLegendWidth = legendItem.trace.legendwidth || legendObj.entrywidth;\n\n if(mode === 'fraction') return legendObj._maxWidth * traceLegendWidth;\n\n return textGap + (traceLegendWidth || legendWidth);\n}\n\nfunction clickOrDoubleClick(gd, legend, legendItem, numClicks, evt) {\n var trace = legendItem.data()[0][0].trace;\n var evtData = {\n event: evt,\n node: legendItem.node(),\n curveNumber: trace.index,\n expandedIndex: trace._expandedIndex,\n data: gd.data,\n layout: gd.layout,\n frames: gd._transitionData._frames,\n config: gd._context,\n fullData: gd._fullData,\n fullLayout: gd._fullLayout\n };\n\n if(trace._group) {\n evtData.group = trace._group;\n }\n if(Registry.traceIs(trace, 'pie-like')) {\n evtData.label = legendItem.datum()[0].label;\n }\n\n var clickVal = Events.triggerHandler(gd, 'plotly_legendclick', evtData);\n if(clickVal === false) return;\n\n if(numClicks === 1) {\n legend._clickTimeout = setTimeout(function() {\n if(!gd._fullLayout) return;\n handleClick(legendItem, gd, numClicks);\n }, gd._context.doubleClickDelay);\n } else if(numClicks === 2) {\n if(legend._clickTimeout) clearTimeout(legend._clickTimeout);\n gd._legendMouseDownTime = 0;\n\n var dblClickVal = Events.triggerHandler(gd, 'plotly_legenddoubleclick', evtData);\n if(dblClickVal !== false) handleClick(legendItem, gd, numClicks);\n }\n}\n\nfunction drawTexts(g, gd, legendObj) {\n var legendItem = g.data()[0][0];\n var trace = legendItem.trace;\n var isPieLike = Registry.traceIs(trace, 'pie-like');\n var isEditable = !legendObj._inHover && gd._context.edits.legendText && !isPieLike;\n var maxNameLength = legendObj._maxNameLength;\n\n var name, font;\n if(legendItem.groupTitle) {\n name = legendItem.groupTitle.text;\n font = legendItem.groupTitle.font;\n } else {\n font = legendObj.font;\n if(!legendObj.entries) {\n name = isPieLike ? legendItem.label : trace.name;\n if(trace._meta) {\n name = Lib.templateString(name, trace._meta);\n }\n } else {\n name = legendItem.text;\n }\n }\n\n var textEl = Lib.ensureSingle(g, 'text', 'legendtext');\n\n textEl.attr('text-anchor', 'start')\n .call(Drawing.font, font)\n .text(isEditable ? ensureLength(name, maxNameLength) : name);\n\n var textGap = legendObj.itemwidth + constants.itemGap * 2;\n svgTextUtils.positionText(textEl, textGap, 0);\n\n if(isEditable) {\n textEl.call(svgTextUtils.makeEditable, {gd: gd, text: name})\n .call(textLayout, g, gd, legendObj)\n .on('edit', function(newName) {\n this.text(ensureLength(newName, maxNameLength))\n .call(textLayout, g, gd, legendObj);\n\n var fullInput = legendItem.trace._fullInput || {};\n var update = {};\n\n if(Registry.hasTransform(fullInput, 'groupby')) {\n var groupbyIndices = Registry.getTransformIndices(fullInput, 'groupby');\n var index = groupbyIndices[groupbyIndices.length - 1];\n\n var kcont = Lib.keyedContainer(fullInput, 'transforms[' + index + '].styles', 'target', 'value.name');\n\n kcont.set(legendItem.trace._group, newName);\n\n update = kcont.constructUpdate();\n } else {\n update.name = newName;\n }\n\n return Registry.call('_guiRestyle', gd, update, trace.index);\n });\n } else {\n textLayout(textEl, g, gd, legendObj);\n }\n}\n\n/*\n * Make sure we have a reasonably clickable region.\n * If this string is missing or very short, pad it with spaces out to at least\n * 4 characters, up to the max length of other labels, on the assumption that\n * most characters are wider than spaces so a string of spaces will usually be\n * no wider than the real labels.\n */\nfunction ensureLength(str, maxLength) {\n var targetLength = Math.max(4, maxLength);\n if(str && str.trim().length >= targetLength / 2) return str;\n str = str || '';\n for(var i = targetLength - str.length; i > 0; i--) str += ' ';\n return str;\n}\n\nfunction setupTraceToggle(g, gd) {\n var doubleClickDelay = gd._context.doubleClickDelay;\n var newMouseDownTime;\n var numClicks = 1;\n\n var traceToggle = Lib.ensureSingle(g, 'rect', 'legendtoggle', function(s) {\n if(!gd._context.staticPlot) {\n s.style('cursor', 'pointer').attr('pointer-events', 'all');\n }\n s.call(Color.fill, 'rgba(0,0,0,0)');\n });\n\n if(gd._context.staticPlot) return;\n\n traceToggle.on('mousedown', function() {\n newMouseDownTime = (new Date()).getTime();\n if(newMouseDownTime - gd._legendMouseDownTime < doubleClickDelay) {\n // in a click train\n numClicks += 1;\n } else {\n // new click train\n numClicks = 1;\n gd._legendMouseDownTime = newMouseDownTime;\n }\n });\n traceToggle.on('mouseup', function() {\n if(gd._dragged || gd._editing) return;\n var legend = gd._fullLayout.legend;\n\n if((new Date()).getTime() - gd._legendMouseDownTime > doubleClickDelay) {\n numClicks = Math.max(numClicks - 1, 1);\n }\n\n clickOrDoubleClick(gd, legend, g, numClicks, d3.event);\n });\n}\n\nfunction textLayout(s, g, gd, legendObj, aTitle) {\n if(legendObj._inHover) s.attr('data-notex', true); // do not process MathJax for unified hover\n svgTextUtils.convertToTspans(s, gd, function() {\n computeTextDimensions(g, gd, legendObj, aTitle);\n });\n}\n\nfunction computeTextDimensions(g, gd, legendObj, aTitle) {\n var legendItem = g.data()[0][0];\n if(!legendObj._inHover && legendItem && !legendItem.trace.showlegend) {\n g.remove();\n return;\n }\n\n var mathjaxGroup = g.select('g[class*=math-group]');\n var mathjaxNode = mathjaxGroup.node();\n if(!legendObj) legendObj = gd._fullLayout.legend;\n var bw = legendObj.borderwidth;\n var font;\n if(aTitle === MAIN_TITLE) {\n font = legendObj.title.font;\n } else if(legendItem.groupTitle) {\n font = legendItem.groupTitle.font;\n } else {\n font = legendObj.font;\n }\n var lineHeight = font.size * LINE_SPACING;\n var height, width;\n\n if(mathjaxNode) {\n var mathjaxBB = Drawing.bBox(mathjaxNode);\n\n height = mathjaxBB.height;\n width = mathjaxBB.width;\n\n if(aTitle === MAIN_TITLE) {\n Drawing.setTranslate(mathjaxGroup, bw, bw + height * 0.75);\n } else { // legend item\n Drawing.setTranslate(mathjaxGroup, 0, height * 0.25);\n }\n } else {\n var textEl = g.select(aTitle === MAIN_TITLE ?\n '.legendtitletext' : '.legendtext'\n );\n var textLines = svgTextUtils.lineCount(textEl);\n var textNode = textEl.node();\n\n height = lineHeight * textLines;\n width = textNode ? Drawing.bBox(textNode).width : 0;\n\n // approximation to height offset to center the font\n // to avoid getBoundingClientRect\n if(aTitle === MAIN_TITLE) {\n if(legendObj.title.side === 'left') {\n // add extra space between legend title and itmes\n width += constants.itemGap * 2;\n }\n\n svgTextUtils.positionText(textEl,\n bw + constants.titlePad,\n bw + lineHeight\n );\n } else { // legend item\n var x = constants.itemGap * 2 + legendObj.itemwidth;\n if(legendItem.groupTitle) {\n x = constants.itemGap;\n width -= legendObj.itemwidth;\n }\n\n svgTextUtils.positionText(textEl,\n x,\n -lineHeight * ((textLines - 1) / 2 - 0.3)\n );\n }\n }\n\n if(aTitle === MAIN_TITLE) {\n legendObj._titleWidth = width;\n legendObj._titleHeight = height;\n } else { // legend item\n legendItem.lineHeight = lineHeight;\n legendItem.height = Math.max(height, 16) + 3;\n legendItem.width = width;\n }\n}\n\nfunction getTitleSize(legendObj) {\n var w = 0;\n var h = 0;\n\n var side = legendObj.title.side;\n if(side) {\n if(side.indexOf('left') !== -1) {\n w = legendObj._titleWidth;\n }\n if(side.indexOf('top') !== -1) {\n h = legendObj._titleHeight;\n }\n }\n\n return [w, h];\n}\n\n/*\n * Computes in fullLayout.legend:\n *\n * - _height: legend height including items past scrollbox height\n * - _maxHeight: maximum legend height before scrollbox is required\n * - _effHeight: legend height w/ or w/o scrollbox\n *\n * - _width: legend width\n * - _maxWidth (for orientation:h only): maximum width before starting new row\n */\nfunction computeLegendDimensions(gd, groups, traces, legendObj) {\n var fullLayout = gd._fullLayout;\n if(!legendObj) legendObj = fullLayout.legend;\n var gs = fullLayout._size;\n\n var isVertical = helpers.isVertical(legendObj);\n var isGrouped = helpers.isGrouped(legendObj);\n var isFraction = legendObj.entrywidthmode === 'fraction';\n\n var bw = legendObj.borderwidth;\n var bw2 = 2 * bw;\n var itemGap = constants.itemGap;\n var textGap = legendObj.itemwidth + itemGap * 2;\n var endPad = 2 * (bw + itemGap);\n\n var yanchor = getYanchor(legendObj);\n var isBelowPlotArea = legendObj.y < 0 || (legendObj.y === 0 && yanchor === 'top');\n var isAbovePlotArea = legendObj.y > 1 || (legendObj.y === 1 && yanchor === 'bottom');\n\n var traceGroupGap = legendObj.tracegroupgap;\n var legendGroupWidths = {};\n\n // - if below/above plot area, give it the maximum potential margin-push value\n // - otherwise, extend the height of the plot area\n legendObj._maxHeight = Math.max(\n (isBelowPlotArea || isAbovePlotArea) ? fullLayout.height / 2 : gs.h,\n 30\n );\n\n var toggleRectWidth = 0;\n legendObj._width = 0;\n legendObj._height = 0;\n var titleSize = getTitleSize(legendObj);\n\n if(isVertical) {\n traces.each(function(d) {\n var h = d[0].height;\n Drawing.setTranslate(this,\n bw + titleSize[0],\n bw + titleSize[1] + legendObj._height + h / 2 + itemGap\n );\n legendObj._height += h;\n legendObj._width = Math.max(legendObj._width, d[0].width);\n });\n\n toggleRectWidth = textGap + legendObj._width;\n legendObj._width += itemGap + textGap + bw2;\n legendObj._height += endPad;\n\n if(isGrouped) {\n groups.each(function(d, i) {\n Drawing.setTranslate(this, 0, i * legendObj.tracegroupgap);\n });\n legendObj._height += (legendObj._lgroupsLength - 1) * legendObj.tracegroupgap;\n }\n } else {\n var xanchor = getXanchor(legendObj);\n var isLeftOfPlotArea = legendObj.x < 0 || (legendObj.x === 0 && xanchor === 'right');\n var isRightOfPlotArea = legendObj.x > 1 || (legendObj.x === 1 && xanchor === 'left');\n var isBeyondPlotAreaY = isAbovePlotArea || isBelowPlotArea;\n var hw = fullLayout.width / 2;\n\n // - if placed within x-margins, extend the width of the plot area\n // - else if below/above plot area and anchored in the margin, extend to opposite margin,\n // - otherwise give it the maximum potential margin-push value\n legendObj._maxWidth = Math.max(\n isLeftOfPlotArea ? ((isBeyondPlotAreaY && xanchor === 'left') ? gs.l + gs.w : hw) :\n isRightOfPlotArea ? ((isBeyondPlotAreaY && xanchor === 'right') ? gs.r + gs.w : hw) :\n gs.w,\n 2 * textGap);\n var maxItemWidth = 0;\n var combinedItemWidth = 0;\n traces.each(function(d) {\n var w = getTraceWidth(d, legendObj, textGap);\n maxItemWidth = Math.max(maxItemWidth, w);\n combinedItemWidth += w;\n });\n\n toggleRectWidth = null;\n var maxRowWidth = 0;\n\n if(isGrouped) {\n var maxGroupHeightInRow = 0;\n var groupOffsetX = 0;\n var groupOffsetY = 0;\n groups.each(function() {\n var maxWidthInGroup = 0;\n var offsetY = 0;\n d3.select(this).selectAll('g.traces').each(function(d) {\n var w = getTraceWidth(d, legendObj, textGap);\n var h = d[0].height;\n\n Drawing.setTranslate(this,\n titleSize[0],\n titleSize[1] + bw + itemGap + h / 2 + offsetY\n );\n offsetY += h;\n maxWidthInGroup = Math.max(maxWidthInGroup, w);\n legendGroupWidths[d[0].trace.legendgroup] = maxWidthInGroup;\n });\n\n var next = maxWidthInGroup + itemGap;\n\n // horizontal_wrapping\n if(\n // not on the first column already\n groupOffsetX > 0 &&\n\n // goes beyound limit\n next + bw + groupOffsetX > legendObj._maxWidth\n ) {\n maxRowWidth = Math.max(maxRowWidth, groupOffsetX);\n groupOffsetX = 0;\n groupOffsetY += maxGroupHeightInRow + traceGroupGap;\n maxGroupHeightInRow = offsetY;\n } else {\n maxGroupHeightInRow = Math.max(maxGroupHeightInRow, offsetY);\n }\n\n Drawing.setTranslate(this, groupOffsetX, groupOffsetY);\n\n groupOffsetX += next;\n });\n\n legendObj._width = Math.max(maxRowWidth, groupOffsetX) + bw;\n legendObj._height = groupOffsetY + maxGroupHeightInRow + endPad;\n } else {\n var nTraces = traces.size();\n var oneRowLegend = (combinedItemWidth + bw2 + (nTraces - 1) * itemGap) < legendObj._maxWidth;\n\n var maxItemHeightInRow = 0;\n var offsetX = 0;\n var offsetY = 0;\n var rowWidth = 0;\n traces.each(function(d) {\n var h = d[0].height;\n var w = getTraceWidth(d, legendObj, textGap, isGrouped);\n var next = (oneRowLegend ? w : maxItemWidth);\n\n if(!isFraction) {\n next += itemGap;\n }\n\n if((next + bw + offsetX - itemGap) >= legendObj._maxWidth) {\n maxRowWidth = Math.max(maxRowWidth, rowWidth);\n offsetX = 0;\n offsetY += maxItemHeightInRow;\n legendObj._height += maxItemHeightInRow;\n maxItemHeightInRow = 0;\n }\n\n Drawing.setTranslate(this,\n titleSize[0] + bw + offsetX,\n titleSize[1] + bw + offsetY + h / 2 + itemGap\n );\n\n rowWidth = offsetX + w + itemGap;\n offsetX += next;\n maxItemHeightInRow = Math.max(maxItemHeightInRow, h);\n });\n\n if(oneRowLegend) {\n legendObj._width = offsetX + bw2;\n legendObj._height = maxItemHeightInRow + endPad;\n } else {\n legendObj._width = Math.max(maxRowWidth, rowWidth) + bw2;\n legendObj._height += maxItemHeightInRow + endPad;\n }\n }\n }\n\n legendObj._width = Math.ceil(\n Math.max(\n legendObj._width + titleSize[0],\n legendObj._titleWidth + 2 * (bw + constants.titlePad)\n )\n );\n\n legendObj._height = Math.ceil(\n Math.max(\n legendObj._height + titleSize[1],\n legendObj._titleHeight + 2 * (bw + constants.itemGap)\n )\n );\n\n legendObj._effHeight = Math.min(legendObj._height, legendObj._maxHeight);\n\n var edits = gd._context.edits;\n var isEditable = edits.legendText || edits.legendPosition;\n traces.each(function(d) {\n var traceToggle = d3.select(this).select('.legendtoggle');\n var h = d[0].height;\n var legendgroup = d[0].trace.legendgroup;\n var traceWidth = getTraceWidth(d, legendObj, textGap);\n if(isGrouped && legendgroup !== '') {\n traceWidth = legendGroupWidths[legendgroup];\n }\n var w = isEditable ? textGap : (toggleRectWidth || traceWidth);\n if(!isVertical && !isFraction) {\n w += itemGap / 2;\n }\n Drawing.setRect(traceToggle, 0, -h / 2, w, h);\n });\n}\n\nfunction expandMargin(gd) {\n var fullLayout = gd._fullLayout;\n var legendObj = fullLayout.legend;\n var xanchor = getXanchor(legendObj);\n var yanchor = getYanchor(legendObj);\n\n return Plots.autoMargin(gd, 'legend', {\n x: legendObj.x,\n y: legendObj.y,\n l: legendObj._width * (FROM_TL[xanchor]),\n r: legendObj._width * (FROM_BR[xanchor]),\n b: legendObj._effHeight * (FROM_BR[yanchor]),\n t: legendObj._effHeight * (FROM_TL[yanchor])\n });\n}\n\nfunction getXanchor(legendObj) {\n return Lib.isRightAnchor(legendObj) ? 'right' :\n Lib.isCenterAnchor(legendObj) ? 'center' :\n 'left';\n}\n\nfunction getYanchor(legendObj) {\n return Lib.isBottomAnchor(legendObj) ? 'bottom' :\n Lib.isMiddleAnchor(legendObj) ? 'middle' :\n 'top';\n}\n\n},{\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/events\":504,\"../../lib/svg_text_utils\":541,\"../../plots/plots\":628,\"../../registry\":647,\"../color\":367,\"../dragelement\":386,\"../drawing\":389,\"./constants\":418,\"./get_legend_data\":421,\"./handle_click\":422,\"./helpers\":423,\"./style\":425,\"@plotly/d3\":58}],421:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function getLegendData(calcdata, opts) {\n var inHover = opts._inHover;\n var grouped = helpers.isGrouped(opts);\n var reversed = helpers.isReversed(opts);\n\n var lgroupToTraces = {};\n var lgroups = [];\n var hasOneNonBlankGroup = false;\n var slicesShown = {};\n var lgroupi = 0;\n var maxNameLength = 0;\n var i, j;\n\n function addOneItem(legendGroup, legendItem) {\n // each '' legend group is treated as a separate group\n if(legendGroup === '' || !helpers.isGrouped(opts)) {\n // TODO: check this against fullData legendgroups?\n var uniqueGroup = '~~i' + lgroupi;\n lgroups.push(uniqueGroup);\n lgroupToTraces[uniqueGroup] = [legendItem];\n lgroupi++;\n } else if(lgroups.indexOf(legendGroup) === -1) {\n lgroups.push(legendGroup);\n hasOneNonBlankGroup = true;\n lgroupToTraces[legendGroup] = [legendItem];\n } else {\n lgroupToTraces[legendGroup].push(legendItem);\n }\n }\n\n // build an { legendgroup: [cd0, cd0], ... } object\n for(i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var cd0 = cd[0];\n var trace = cd0.trace;\n var lgroup = trace.legendgroup;\n\n if(!inHover && (!trace.visible || !trace.showlegend)) continue;\n\n if(Registry.traceIs(trace, 'pie-like')) {\n if(!slicesShown[lgroup]) slicesShown[lgroup] = {};\n\n for(j = 0; j < cd.length; j++) {\n var labelj = cd[j].label;\n\n if(!slicesShown[lgroup][labelj]) {\n addOneItem(lgroup, {\n label: labelj,\n color: cd[j].color,\n i: cd[j].i,\n trace: trace,\n pts: cd[j].pts\n });\n\n slicesShown[lgroup][labelj] = true;\n maxNameLength = Math.max(maxNameLength, (labelj || '').length);\n }\n }\n } else {\n addOneItem(lgroup, cd0);\n maxNameLength = Math.max(maxNameLength, (trace.name || '').length);\n }\n }\n\n // won't draw a legend in this case\n if(!lgroups.length) return [];\n\n // collapse all groups into one if all groups are blank\n var shouldCollapse = !hasOneNonBlankGroup || !grouped;\n\n var legendData = [];\n for(i = 0; i < lgroups.length; i++) {\n var t = lgroupToTraces[lgroups[i]];\n if(shouldCollapse) {\n legendData.push(t[0]);\n } else {\n legendData.push(t);\n }\n }\n if(shouldCollapse) legendData = [legendData];\n\n for(i = 0; i < legendData.length; i++) {\n // find minimum rank within group\n var groupMinRank = Infinity;\n for(j = 0; j < legendData[i].length; j++) {\n var rank = legendData[i][j].trace.legendrank;\n if(groupMinRank > rank) groupMinRank = rank;\n }\n\n // record on first group element\n legendData[i][0]._groupMinRank = groupMinRank;\n legendData[i][0]._preGroupSort = i;\n }\n\n var orderFn1 = function(a, b) {\n return (\n (a[0]._groupMinRank - b[0]._groupMinRank) ||\n (a[0]._preGroupSort - b[0]._preGroupSort) // fallback for old Chrome < 70 https://bugs.chromium.org/p/v8/issues/detail?id=90\n );\n };\n\n var orderFn2 = function(a, b) {\n return (\n (a.trace.legendrank - b.trace.legendrank) ||\n (a._preSort - b._preSort) // fallback for old Chrome < 70 https://bugs.chromium.org/p/v8/issues/detail?id=90\n );\n };\n\n // sort considering minimum group legendrank\n legendData.forEach(function(a, k) { a[0]._preGroupSort = k; });\n legendData.sort(orderFn1);\n for(i = 0; i < legendData.length; i++) {\n // sort considering trace.legendrank and legend.traceorder\n legendData[i].forEach(function(a, k) { a._preSort = k; });\n legendData[i].sort(orderFn2);\n\n var firstItemTrace = legendData[i][0].trace;\n\n var groupTitle = null;\n // get group title text\n for(j = 0; j < legendData[i].length; j++) {\n var gt = legendData[i][j].trace.legendgrouptitle;\n if(gt && gt.text) {\n groupTitle = gt;\n if(inHover) gt.font = opts._groupTitleFont;\n break;\n }\n }\n\n // reverse order\n if(reversed) legendData[i].reverse();\n\n if(groupTitle) {\n var hasPieLike = false;\n for(j = 0; j < legendData[i].length; j++) {\n if(Registry.traceIs(legendData[i][j].trace, 'pie-like')) {\n hasPieLike = true;\n break;\n }\n }\n\n // set group title text\n legendData[i].unshift({\n i: -1,\n groupTitle: groupTitle,\n noClick: hasPieLike,\n trace: {\n showlegend: firstItemTrace.showlegend,\n legendgroup: firstItemTrace.legendgroup,\n visible: opts.groupclick === 'toggleitem' ? true : firstItemTrace.visible\n }\n });\n }\n\n // rearrange lgroupToTraces into a d3-friendly array of arrays\n for(j = 0; j < legendData[i].length; j++) {\n legendData[i][j] = [\n legendData[i][j]\n ];\n }\n }\n\n // number of legend groups - needed in legend/draw.js\n opts._lgroupsLength = legendData.length;\n // maximum name/label length - needed in legend/draw.js\n opts._maxNameLength = maxNameLength;\n\n return legendData;\n};\n\n},{\"../../registry\":647,\"./helpers\":423}],422:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar SHOWISOLATETIP = true;\n\nmodule.exports = function handleClick(g, gd, numClicks) {\n var fullLayout = gd._fullLayout;\n\n if(gd._dragged || gd._editing) return;\n\n var itemClick = fullLayout.legend.itemclick;\n var itemDoubleClick = fullLayout.legend.itemdoubleclick;\n var groupClick = fullLayout.legend.groupclick;\n\n if(numClicks === 1 && itemClick === 'toggle' && itemDoubleClick === 'toggleothers' &&\n SHOWISOLATETIP && gd.data && gd._context.showTips\n ) {\n Lib.notifier(Lib._(gd, 'Double-click on legend to isolate one trace'), 'long');\n SHOWISOLATETIP = false;\n } else {\n SHOWISOLATETIP = false;\n }\n\n var mode;\n if(numClicks === 1) mode = itemClick;\n else if(numClicks === 2) mode = itemDoubleClick;\n if(!mode) return;\n\n var toggleGroup = groupClick === 'togglegroup';\n\n var hiddenSlices = fullLayout.hiddenlabels ?\n fullLayout.hiddenlabels.slice() :\n [];\n\n var legendItem = g.data()[0][0];\n if(legendItem.groupTitle && legendItem.noClick) return;\n\n var fullData = gd._fullData;\n var fullTrace = legendItem.trace;\n var legendgroup = fullTrace.legendgroup;\n\n var i, j, kcont, key, keys, val;\n var attrUpdate = {};\n var attrIndices = [];\n var carrs = [];\n var carrIdx = [];\n\n function insertUpdate(traceIndex, key, value) {\n var attrIndex = attrIndices.indexOf(traceIndex);\n var valueArray = attrUpdate[key];\n if(!valueArray) {\n valueArray = attrUpdate[key] = [];\n }\n\n if(attrIndices.indexOf(traceIndex) === -1) {\n attrIndices.push(traceIndex);\n attrIndex = attrIndices.length - 1;\n }\n\n valueArray[attrIndex] = value;\n\n return attrIndex;\n }\n\n function setVisibility(fullTrace, visibility) {\n if(legendItem.groupTitle && !toggleGroup) return;\n\n var fullInput = fullTrace._fullInput;\n if(Registry.hasTransform(fullInput, 'groupby')) {\n var kcont = carrs[fullInput.index];\n if(!kcont) {\n var groupbyIndices = Registry.getTransformIndices(fullInput, 'groupby');\n var lastGroupbyIndex = groupbyIndices[groupbyIndices.length - 1];\n kcont = Lib.keyedContainer(fullInput, 'transforms[' + lastGroupbyIndex + '].styles', 'target', 'value.visible');\n carrs[fullInput.index] = kcont;\n }\n\n var curState = kcont.get(fullTrace._group);\n\n // If not specified, assume visible. This happens if there are other style\n // properties set for a group but not the visibility. There are many similar\n // ways to do this (e.g. why not just `curState = fullTrace.visible`??? The\n // answer is: because it breaks other things like groupby trace names in\n // subtle ways.)\n if(curState === undefined) {\n curState = true;\n }\n\n if(curState !== false) {\n // true -> legendonly. All others toggle to true:\n kcont.set(fullTrace._group, visibility);\n }\n carrIdx[fullInput.index] = insertUpdate(fullInput.index, 'visible', fullInput.visible === false ? false : true);\n } else {\n // false -> false (not possible since will not be visible in legend)\n // true -> legendonly\n // legendonly -> true\n var nextVisibility = fullInput.visible === false ? false : visibility;\n\n insertUpdate(fullInput.index, 'visible', nextVisibility);\n }\n }\n\n if(Registry.traceIs(fullTrace, 'pie-like')) {\n var thisLabel = legendItem.label;\n var thisLabelIndex = hiddenSlices.indexOf(thisLabel);\n\n if(mode === 'toggle') {\n if(thisLabelIndex === -1) hiddenSlices.push(thisLabel);\n else hiddenSlices.splice(thisLabelIndex, 1);\n } else if(mode === 'toggleothers') {\n hiddenSlices = [];\n gd.calcdata[0].forEach(function(d) {\n if(thisLabel !== d.label) {\n hiddenSlices.push(d.label);\n }\n });\n if(gd._fullLayout.hiddenlabels && gd._fullLayout.hiddenlabels.length === hiddenSlices.length && thisLabelIndex === -1) {\n hiddenSlices = [];\n }\n }\n\n Registry.call('_guiRelayout', gd, 'hiddenlabels', hiddenSlices);\n } else {\n var hasLegendgroup = legendgroup && legendgroup.length;\n var traceIndicesInGroup = [];\n var tracei;\n if(hasLegendgroup) {\n for(i = 0; i < fullData.length; i++) {\n tracei = fullData[i];\n if(!tracei.visible) continue;\n if(tracei.legendgroup === legendgroup) {\n traceIndicesInGroup.push(i);\n }\n }\n }\n\n if(mode === 'toggle') {\n var nextVisibility;\n\n switch(fullTrace.visible) {\n case true:\n nextVisibility = 'legendonly';\n break;\n case false:\n nextVisibility = false;\n break;\n case 'legendonly':\n nextVisibility = true;\n break;\n }\n\n if(hasLegendgroup) {\n if(toggleGroup) {\n for(i = 0; i < fullData.length; i++) {\n if(fullData[i].visible !== false && fullData[i].legendgroup === legendgroup) {\n setVisibility(fullData[i], nextVisibility);\n }\n }\n } else {\n setVisibility(fullTrace, nextVisibility);\n }\n } else {\n setVisibility(fullTrace, nextVisibility);\n }\n } else if(mode === 'toggleothers') {\n // Compute the clicked index. expandedIndex does what we want for expanded traces\n // but also culls hidden traces. That means we have some work to do.\n var isClicked, isInGroup, notInLegend, otherState;\n var isIsolated = true;\n for(i = 0; i < fullData.length; i++) {\n isClicked = fullData[i] === fullTrace;\n notInLegend = fullData[i].showlegend !== true;\n if(isClicked || notInLegend) continue;\n\n isInGroup = (hasLegendgroup && fullData[i].legendgroup === legendgroup);\n\n if(!isInGroup && fullData[i].visible === true && !Registry.traceIs(fullData[i], 'notLegendIsolatable')) {\n isIsolated = false;\n break;\n }\n }\n\n for(i = 0; i < fullData.length; i++) {\n // False is sticky; we don't change it.\n if(fullData[i].visible === false) continue;\n\n if(Registry.traceIs(fullData[i], 'notLegendIsolatable')) {\n continue;\n }\n\n switch(fullTrace.visible) {\n case 'legendonly':\n setVisibility(fullData[i], true);\n break;\n case true:\n otherState = isIsolated ? true : 'legendonly';\n isClicked = fullData[i] === fullTrace;\n // N.B. consider traces that have a set legendgroup as toggleable\n notInLegend = (fullData[i].showlegend !== true && !fullData[i].legendgroup);\n isInGroup = isClicked || (hasLegendgroup && fullData[i].legendgroup === legendgroup);\n setVisibility(fullData[i], (isInGroup || notInLegend) ? true : otherState);\n break;\n }\n }\n }\n\n for(i = 0; i < carrs.length; i++) {\n kcont = carrs[i];\n if(!kcont) continue;\n var update = kcont.constructUpdate();\n\n var updateKeys = Object.keys(update);\n for(j = 0; j < updateKeys.length; j++) {\n key = updateKeys[j];\n val = attrUpdate[key] = attrUpdate[key] || [];\n val[carrIdx[i]] = update[key];\n }\n }\n\n // The length of the value arrays should be equal and any unspecified\n // values should be explicitly undefined for them to get properly culled\n // as updates and not accidentally reset to the default value. This fills\n // out sparse arrays with the required number of undefined values:\n keys = Object.keys(attrUpdate);\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n for(j = 0; j < attrIndices.length; j++) {\n // Use hasOwnProperty to protect against falsy values:\n if(!attrUpdate[key].hasOwnProperty(j)) {\n attrUpdate[key][j] = undefined;\n }\n }\n }\n\n Registry.call('_guiRestyle', gd, attrUpdate, attrIndices);\n }\n};\n\n},{\"../../lib\":515,\"../../registry\":647}],423:[function(_dereq_,module,exports){\n'use strict';\n\nexports.isGrouped = function isGrouped(legendLayout) {\n return (legendLayout.traceorder || '').indexOf('grouped') !== -1;\n};\n\nexports.isVertical = function isVertical(legendLayout) {\n return legendLayout.orientation !== 'h';\n};\n\nexports.isReversed = function isReversed(legendLayout) {\n return (legendLayout.traceorder || '').indexOf('reversed') !== -1;\n};\n\n},{}],424:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n moduleType: 'component',\n name: 'legend',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw'),\n style: _dereq_('./style')\n};\n\n},{\"./attributes\":417,\"./defaults\":419,\"./draw\":420,\"./style\":425}],425:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar extractOpts = _dereq_('../colorscale/helpers').extractOpts;\n\nvar subTypes = _dereq_('../../traces/scatter/subtypes');\nvar stylePie = _dereq_('../../traces/pie/style_one');\nvar pieCastOption = _dereq_('../../traces/pie/helpers').castOption;\n\nvar constants = _dereq_('./constants');\n\nvar CST_MARKER_SIZE = 12;\nvar CST_LINE_WIDTH = 5;\nvar CST_MARKER_LINE_WIDTH = 2;\nvar MAX_LINE_WIDTH = 10;\nvar MAX_MARKER_LINE_WIDTH = 5;\n\nmodule.exports = function style(s, gd, legend) {\n var fullLayout = gd._fullLayout;\n if(!legend) legend = fullLayout.legend;\n var constantItemSizing = legend.itemsizing === 'constant';\n var itemWidth = legend.itemwidth;\n var centerPos = (itemWidth + constants.itemGap * 2) / 2;\n var centerTransform = strTranslate(centerPos, 0);\n\n var boundLineWidth = function(mlw, cont, max, cst) {\n var v;\n if(mlw + 1) {\n v = mlw;\n } else if(cont && cont.width > 0) {\n v = cont.width;\n } else {\n return 0;\n }\n return constantItemSizing ? cst : Math.min(v, max);\n };\n\n s.each(function(d) {\n var traceGroup = d3.select(this);\n\n var layers = Lib.ensureSingle(traceGroup, 'g', 'layers');\n layers.style('opacity', d[0].trace.opacity);\n\n var valign = legend.valign;\n var lineHeight = d[0].lineHeight;\n var height = d[0].height;\n\n if(valign === 'middle' || !lineHeight || !height) {\n layers.attr('transform', null);\n } else {\n var factor = {top: 1, bottom: -1}[valign];\n var markerOffsetY = factor * (0.5 * (lineHeight - height + 3));\n layers.attr('transform', strTranslate(0, markerOffsetY));\n }\n\n var fill = layers\n .selectAll('g.legendfill')\n .data([d]);\n fill.enter().append('g')\n .classed('legendfill', true);\n\n var line = layers\n .selectAll('g.legendlines')\n .data([d]);\n line.enter().append('g')\n .classed('legendlines', true);\n\n var symbol = layers\n .selectAll('g.legendsymbols')\n .data([d]);\n symbol.enter().append('g')\n .classed('legendsymbols', true);\n\n symbol.selectAll('g.legendpoints')\n .data([d])\n .enter().append('g')\n .classed('legendpoints', true);\n })\n .each(styleSpatial)\n .each(styleWaterfalls)\n .each(styleFunnels)\n .each(styleBars)\n .each(styleBoxes)\n .each(styleFunnelareas)\n .each(stylePies)\n .each(styleLines)\n .each(stylePoints)\n .each(styleCandles)\n .each(styleOHLC);\n\n function styleLines(d) {\n var styleGuide = getStyleGuide(d);\n var showFill = styleGuide.showFill;\n var showLine = styleGuide.showLine;\n var showGradientLine = styleGuide.showGradientLine;\n var showGradientFill = styleGuide.showGradientFill;\n var anyFill = styleGuide.anyFill;\n var anyLine = styleGuide.anyLine;\n\n var d0 = d[0];\n var trace = d0.trace;\n var dMod, tMod;\n\n var cOpts = extractOpts(trace);\n var colorscale = cOpts.colorscale;\n var reversescale = cOpts.reversescale;\n\n var fillStyle = function(s) {\n if(s.size()) {\n if(showFill) {\n Drawing.fillGroupStyle(s, gd);\n } else {\n var gradientID = 'legendfill-' + trace.uid;\n Drawing.gradient(s, gd, gradientID,\n getGradientDirection(reversescale),\n colorscale, 'fill');\n }\n }\n };\n\n var lineGradient = function(s) {\n if(s.size()) {\n var gradientID = 'legendline-' + trace.uid;\n Drawing.lineGroupStyle(s);\n Drawing.gradient(s, gd, gradientID,\n getGradientDirection(reversescale),\n colorscale, 'stroke');\n }\n };\n\n // with fill and no markers or text, move the line and fill up a bit\n // so it's more centered\n\n var pathStart = (subTypes.hasMarkers(trace) || !anyFill) ? 'M5,0' :\n // with a line leave it slightly below center, to leave room for the\n // line thickness and because the line is usually more prominent\n anyLine ? 'M5,-2' : 'M5,-3';\n\n var this3 = d3.select(this);\n\n var fill = this3.select('.legendfill').selectAll('path')\n .data(showFill || showGradientFill ? [d] : []);\n fill.enter().append('path').classed('js-fill', true);\n fill.exit().remove();\n fill.attr('d', pathStart + 'h' + itemWidth + 'v6h-' + itemWidth + 'z')\n .call(fillStyle);\n\n if(showLine || showGradientLine) {\n var lw = boundLineWidth(undefined, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH);\n tMod = Lib.minExtend(trace, {line: {width: lw}});\n dMod = [Lib.minExtend(d0, {trace: tMod})];\n }\n\n var line = this3.select('.legendlines').selectAll('path')\n .data(showLine || showGradientLine ? [dMod] : []);\n line.enter().append('path').classed('js-line', true);\n line.exit().remove();\n\n // this is ugly... but you can't apply a gradient to a perfectly\n // horizontal or vertical line. Presumably because then\n // the system doesn't know how to scale vertical variation, even\n // though there *is* no vertical variation in this case.\n // so add an invisibly small angle to the line\n // This issue (and workaround) exist across (Mac) Chrome, FF, and Safari\n line.attr('d', pathStart + (showGradientLine ? 'l' + itemWidth + ',0.0001' : 'h' + itemWidth))\n .call(showLine ? Drawing.lineGroupStyle : lineGradient);\n }\n\n function stylePoints(d) {\n var styleGuide = getStyleGuide(d);\n var anyFill = styleGuide.anyFill;\n var anyLine = styleGuide.anyLine;\n var showLine = styleGuide.showLine;\n var showMarker = styleGuide.showMarker;\n\n var d0 = d[0];\n var trace = d0.trace;\n var showText = !showMarker && !anyLine && !anyFill && subTypes.hasText(trace);\n var dMod, tMod;\n\n // 'scatter3d' don't use gd.calcdata,\n // use d0.trace to infer arrayOk attributes\n\n function boundVal(attrIn, arrayToValFn, bounds, cst) {\n var valIn = Lib.nestedProperty(trace, attrIn).get();\n var valToBound = (Lib.isArrayOrTypedArray(valIn) && arrayToValFn) ?\n arrayToValFn(valIn) :\n valIn;\n\n if(constantItemSizing && valToBound && cst !== undefined) {\n valToBound = cst;\n }\n\n if(bounds) {\n if(valToBound < bounds[0]) return bounds[0];\n else if(valToBound > bounds[1]) return bounds[1];\n }\n return valToBound;\n }\n\n function pickFirst(array) {\n if(d0._distinct && d0.index && array[d0.index]) return array[d0.index];\n return array[0];\n }\n\n // constrain text, markers, etc so they'll fit on the legend\n if(showMarker || showText || showLine) {\n var dEdit = {};\n var tEdit = {};\n\n if(showMarker) {\n dEdit.mc = boundVal('marker.color', pickFirst);\n dEdit.mx = boundVal('marker.symbol', pickFirst);\n dEdit.mo = boundVal('marker.opacity', Lib.mean, [0.2, 1]);\n dEdit.mlc = boundVal('marker.line.color', pickFirst);\n dEdit.mlw = boundVal('marker.line.width', Lib.mean, [0, 5], CST_MARKER_LINE_WIDTH);\n tEdit.marker = {\n sizeref: 1,\n sizemin: 1,\n sizemode: 'diameter'\n };\n\n var ms = boundVal('marker.size', Lib.mean, [2, 16], CST_MARKER_SIZE);\n dEdit.ms = ms;\n tEdit.marker.size = ms;\n }\n\n if(showLine) {\n tEdit.line = {\n width: boundVal('line.width', pickFirst, [0, 10], CST_LINE_WIDTH)\n };\n }\n\n if(showText) {\n dEdit.tx = 'Aa';\n dEdit.tp = boundVal('textposition', pickFirst);\n dEdit.ts = 10;\n dEdit.tc = boundVal('textfont.color', pickFirst);\n dEdit.tf = boundVal('textfont.family', pickFirst);\n }\n\n dMod = [Lib.minExtend(d0, dEdit)];\n tMod = Lib.minExtend(trace, tEdit);\n\n // always show legend items in base state\n tMod.selectedpoints = null;\n\n // never show texttemplate\n tMod.texttemplate = null;\n }\n\n var ptgroup = d3.select(this).select('g.legendpoints');\n\n var pts = ptgroup.selectAll('path.scatterpts')\n .data(showMarker ? dMod : []);\n // make sure marker is on the bottom, in case it enters after text\n pts.enter().insert('path', ':first-child')\n .classed('scatterpts', true)\n .attr('transform', centerTransform);\n pts.exit().remove();\n pts.call(Drawing.pointStyle, tMod, gd);\n\n // 'mrc' is set in pointStyle and used in textPointStyle:\n // constrain it here\n if(showMarker) dMod[0].mrc = 3;\n\n var txt = ptgroup.selectAll('g.pointtext')\n .data(showText ? dMod : []);\n txt.enter()\n .append('g').classed('pointtext', true)\n .append('text').attr('transform', centerTransform);\n txt.exit().remove();\n txt.selectAll('text').call(Drawing.textPointStyle, tMod, gd);\n }\n\n function styleWaterfalls(d) {\n var trace = d[0].trace;\n var isWaterfall = trace.type === 'waterfall';\n\n if(d[0]._distinct && isWaterfall) {\n var cont = d[0].trace[d[0].dir].marker;\n d[0].mc = cont.color;\n d[0].mlw = cont.line.width;\n d[0].mlc = cont.line.color;\n return styleBarLike(d, this, 'waterfall');\n }\n\n var ptsData = [];\n if(trace.visible && isWaterfall) {\n ptsData = d[0].hasTotals ?\n [['increasing', 'M-6,-6V6H0Z'], ['totals', 'M6,6H0L-6,-6H-0Z'], ['decreasing', 'M6,6V-6H0Z']] :\n [['increasing', 'M-6,-6V6H6Z'], ['decreasing', 'M6,6V-6H-6Z']];\n }\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendwaterfall')\n .data(ptsData);\n pts.enter().append('path').classed('legendwaterfall', true)\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(dd) {\n var pt = d3.select(this);\n var cont = trace[dd[0]].marker;\n var lw = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n pt.attr('d', dd[1])\n .style('stroke-width', lw + 'px')\n .call(Color.fill, cont.color);\n\n if(lw) {\n pt.call(Color.stroke, cont.line.color);\n }\n });\n }\n\n function styleBars(d) {\n styleBarLike(d, this);\n }\n\n function styleFunnels(d) {\n styleBarLike(d, this, 'funnel');\n }\n\n function styleBarLike(d, lThis, desiredType) {\n var trace = d[0].trace;\n var marker = trace.marker || {};\n var markerLine = marker.line || {};\n\n var isVisible = (!desiredType) ? Registry.traceIs(trace, 'bar') :\n (trace.visible && trace.type === desiredType);\n\n var barpath = d3.select(lThis).select('g.legendpoints')\n .selectAll('path.legend' + desiredType)\n .data(isVisible ? [d] : []);\n barpath.enter().append('path').classed('legend' + desiredType, true)\n .attr('d', 'M6,6H-6V-6H6Z')\n .attr('transform', centerTransform);\n barpath.exit().remove();\n\n barpath.each(function(d) {\n var p = d3.select(this);\n var d0 = d[0];\n var w = boundLineWidth(d0.mlw, marker.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('stroke-width', w + 'px');\n\n var mcc = d0.mcc;\n if(!legend._inHover && 'mc' in d0) {\n // not in unified hover but\n // for legend use the color in the middle of scale\n var cOpts = extractOpts(marker);\n var mid = cOpts.mid;\n if(mid === undefined) mid = (cOpts.max + cOpts.min) / 2;\n mcc = Drawing.tryColorscale(marker, '')(mid);\n }\n var fillColor = mcc || d0.mc || marker.color;\n\n var markerPattern = marker.pattern;\n var patternShape = markerPattern && Drawing.getPatternAttr(markerPattern.shape, 0, '');\n\n if(patternShape) {\n var patternBGColor = Drawing.getPatternAttr(markerPattern.bgcolor, 0, null);\n var patternFGColor = Drawing.getPatternAttr(markerPattern.fgcolor, 0, null);\n var patternFGOpacity = markerPattern.fgopacity;\n var patternSize = dimAttr(markerPattern.size, 8, 10);\n var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1);\n var patternID = 'legend-' + trace.uid;\n p.call(\n Drawing.pattern, 'legend', gd, patternID,\n patternShape, patternSize, patternSolidity,\n mcc, markerPattern.fillmode,\n patternBGColor, patternFGColor, patternFGOpacity\n );\n } else {\n p.call(Color.fill, fillColor);\n }\n\n if(w) Color.stroke(p, d0.mlc || markerLine.color);\n });\n }\n\n function styleBoxes(d) {\n var trace = d[0].trace;\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendbox')\n .data(trace.visible && Registry.traceIs(trace, 'box-violin') ? [d] : []);\n pts.enter().append('path').classed('legendbox', true)\n // if we want the median bar, prepend M6,0H-6\n .attr('d', 'M6,6H-6V-6H6Z')\n .attr('transform', centerTransform);\n pts.exit().remove();\n\n pts.each(function() {\n var p = d3.select(this);\n\n if((trace.boxpoints === 'all' || trace.points === 'all') &&\n Color.opacity(trace.fillcolor) === 0 && Color.opacity((trace.line || {}).color) === 0\n ) {\n var tMod = Lib.minExtend(trace, {\n marker: {\n size: constantItemSizing ? CST_MARKER_SIZE : Lib.constrain(trace.marker.size, 2, 16),\n sizeref: 1,\n sizemin: 1,\n sizemode: 'diameter'\n }\n });\n pts.call(Drawing.pointStyle, tMod, gd);\n } else {\n var w = boundLineWidth(undefined, trace.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('stroke-width', w + 'px')\n .call(Color.fill, trace.fillcolor);\n\n if(w) Color.stroke(p, trace.line.color);\n }\n });\n }\n\n function styleCandles(d) {\n var trace = d[0].trace;\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendcandle')\n .data(trace.visible && trace.type === 'candlestick' ? [d, d] : []);\n pts.enter().append('path').classed('legendcandle', true)\n .attr('d', function(_, i) {\n if(i) return 'M-15,0H-8M-8,6V-6H8Z'; // increasing\n return 'M15,0H8M8,-6V6H-8Z'; // decreasing\n })\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(_, i) {\n var p = d3.select(this);\n var cont = trace[i ? 'increasing' : 'decreasing'];\n var w = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('stroke-width', w + 'px')\n .call(Color.fill, cont.fillcolor);\n\n if(w) Color.stroke(p, cont.line.color);\n });\n }\n\n function styleOHLC(d) {\n var trace = d[0].trace;\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legendohlc')\n .data(trace.visible && trace.type === 'ohlc' ? [d, d] : []);\n pts.enter().append('path').classed('legendohlc', true)\n .attr('d', function(_, i) {\n if(i) return 'M-15,0H0M-8,-6V0'; // increasing\n return 'M15,0H0M8,6V0'; // decreasing\n })\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(_, i) {\n var p = d3.select(this);\n var cont = trace[i ? 'increasing' : 'decreasing'];\n var w = boundLineWidth(undefined, cont.line, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n p.style('fill', 'none')\n .call(Drawing.dashLine, cont.line.dash, w);\n\n if(w) Color.stroke(p, cont.line.color);\n });\n }\n\n function stylePies(d) {\n stylePieLike(d, this, 'pie');\n }\n\n function styleFunnelareas(d) {\n stylePieLike(d, this, 'funnelarea');\n }\n\n function stylePieLike(d, lThis, desiredType) {\n var d0 = d[0];\n var trace = d0.trace;\n\n var isVisible = (!desiredType) ? Registry.traceIs(trace, desiredType) :\n (trace.visible && trace.type === desiredType);\n\n var pts = d3.select(lThis).select('g.legendpoints')\n .selectAll('path.legend' + desiredType)\n .data(isVisible ? [d] : []);\n pts.enter().append('path').classed('legend' + desiredType, true)\n .attr('d', 'M6,6H-6V-6H6Z')\n .attr('transform', centerTransform);\n pts.exit().remove();\n\n if(pts.size()) {\n var cont = (trace.marker || {}).line;\n var lw = boundLineWidth(pieCastOption(cont.width, d0.pts), cont, MAX_MARKER_LINE_WIDTH, CST_MARKER_LINE_WIDTH);\n\n var tMod = Lib.minExtend(trace, {marker: {line: {width: lw}}});\n // since minExtend do not slice more than 3 items we need to patch line.color here\n tMod.marker.line.color = cont.color;\n\n var d0Mod = Lib.minExtend(d0, {trace: tMod});\n\n stylePie(pts, d0Mod, tMod);\n }\n }\n\n function styleSpatial(d) { // i.e. maninly traces having z and colorscale\n var trace = d[0].trace;\n\n var useGradient;\n var ptsData = [];\n if(trace.visible) {\n switch(trace.type) {\n case 'histogram2d' :\n case 'heatmap' :\n ptsData = [\n ['M-15,-2V4H15V-2Z'] // similar to contour\n ];\n useGradient = true;\n break;\n case 'choropleth' :\n case 'choroplethmapbox' :\n ptsData = [\n ['M-6,-6V6H6V-6Z']\n ];\n useGradient = true;\n break;\n case 'densitymapbox' :\n ptsData = [\n ['M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0']\n ];\n useGradient = 'radial';\n break;\n case 'cone' :\n ptsData = [\n ['M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z'],\n ['M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z'],\n ['M-6,-2 A2,2 0 0,0 -6,2 L6,0Z']\n ];\n useGradient = false;\n break;\n case 'streamtube' :\n ptsData = [\n ['M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z'],\n ['M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z'],\n ['M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z']\n ];\n useGradient = false;\n break;\n case 'surface' :\n ptsData = [\n ['M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z'],\n ['M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z']\n ];\n useGradient = true;\n break;\n case 'mesh3d' :\n ptsData = [\n ['M-6,6H0L-6,-6Z'],\n ['M6,6H0L6,-6Z'],\n ['M-6,-6H6L0,6Z']\n ];\n useGradient = false;\n break;\n case 'volume' :\n ptsData = [\n ['M-6,6H0L-6,-6Z'],\n ['M6,6H0L6,-6Z'],\n ['M-6,-6H6L0,6Z']\n ];\n useGradient = true;\n break;\n case 'isosurface':\n ptsData = [\n ['M-6,6H0L-6,-6Z'],\n ['M6,6H0L6,-6Z'],\n ['M-6,-6 A12,24 0 0,0 6,-6 L0,6Z']\n ];\n useGradient = false;\n break;\n }\n }\n\n var pts = d3.select(this).select('g.legendpoints')\n .selectAll('path.legend3dandfriends')\n .data(ptsData);\n pts.enter().append('path').classed('legend3dandfriends', true)\n .attr('transform', centerTransform)\n .style('stroke-miterlimit', 1);\n pts.exit().remove();\n\n pts.each(function(dd, i) {\n var pt = d3.select(this);\n\n var cOpts = extractOpts(trace);\n var colorscale = cOpts.colorscale;\n var reversescale = cOpts.reversescale;\n var fillGradient = function(s) {\n if(s.size()) {\n var gradientID = 'legendfill-' + trace.uid;\n Drawing.gradient(s, gd, gradientID,\n getGradientDirection(reversescale, useGradient === 'radial'),\n colorscale, 'fill');\n }\n };\n\n var fillColor;\n if(!colorscale) {\n var color = trace.vertexcolor || trace.facecolor || trace.color;\n fillColor = Lib.isArrayOrTypedArray(color) ? (color[i] || color[0]) : color;\n } else {\n if(!useGradient) {\n var len = colorscale.length;\n fillColor =\n i === 0 ? colorscale[reversescale ? len - 1 : 0][1] : // minimum\n i === 1 ? colorscale[reversescale ? 0 : len - 1][1] : // maximum\n colorscale[Math.floor((len - 1) / 2)][1]; // middle\n }\n }\n\n pt.attr('d', dd[0]);\n if(fillColor) {\n pt.call(Color.fill, fillColor);\n } else {\n pt.call(fillGradient);\n }\n });\n }\n};\n\nfunction getGradientDirection(reversescale, isRadial) {\n var str = isRadial ? 'radial' : 'horizontal';\n return str + (reversescale ? '' : 'reversed');\n}\n\nfunction getStyleGuide(d) {\n var trace = d[0].trace;\n var contours = trace.contours;\n var showLine = subTypes.hasLines(trace);\n var showMarker = subTypes.hasMarkers(trace);\n\n var showFill = trace.visible && trace.fill && trace.fill !== 'none';\n var showGradientLine = false;\n var showGradientFill = false;\n\n if(contours) {\n var coloring = contours.coloring;\n\n if(coloring === 'lines') {\n showGradientLine = true;\n } else {\n showLine = coloring === 'none' || coloring === 'heatmap' || contours.showlines;\n }\n\n if(contours.type === 'constraint') {\n showFill = contours._operation !== '=';\n } else if(coloring === 'fill' || coloring === 'heatmap') {\n showGradientFill = true;\n }\n }\n\n return {\n showMarker: showMarker,\n showLine: showLine,\n showFill: showFill,\n showGradientLine: showGradientLine,\n showGradientFill: showGradientFill,\n anyLine: showLine || showGradientLine,\n anyFill: showFill || showGradientFill,\n };\n}\n\nfunction dimAttr(v, dflt, max) {\n if(v && Lib.isArrayOrTypedArray(v)) return dflt;\n if(v > max) return max;\n return v;\n}\n\n},{\"../../lib\":515,\"../../registry\":647,\"../../traces/pie/helpers\":915,\"../../traces/pie/style_one\":921,\"../../traces/scatter/subtypes\":961,\"../color\":367,\"../colorscale/helpers\":378,\"../drawing\":389,\"./constants\":418,\"@plotly/d3\":58}],426:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nmodule.exports = {\n editType: 'modebar',\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'h',\n editType: 'modebar',\n },\n bgcolor: {\n valType: 'color',\n editType: 'modebar',\n },\n color: {\n valType: 'color',\n editType: 'modebar',\n },\n activecolor: {\n valType: 'color',\n editType: 'modebar',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n add: {\n valType: 'string',\n arrayOk: true,\n dflt: '',\n editType: 'modebar',\n },\n remove: {\n valType: 'string',\n arrayOk: true,\n dflt: '',\n editType: 'modebar',\n }\n};\n\n},{\"./constants\":428}],427:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\nvar Icons = _dereq_('../../fonts/ploticon');\nvar eraseActiveShape = _dereq_('../shapes/draw').eraseActiveShape;\nvar Lib = _dereq_('../../lib');\nvar _ = Lib._;\n\nvar modeBarButtons = module.exports = {};\n\n/**\n * ModeBar buttons configuration\n *\n * @param {string} name\n * name / id of the buttons (for tracking)\n * @param {string} title\n * text that appears while hovering over the button,\n * enter null, false or '' for no hover text\n * @param {string} icon\n * svg icon object associated with the button\n * can be linked to Plotly.Icons to use the default plotly icons\n * @param {string} [gravity]\n * icon positioning\n * @param {function} click\n * click handler associated with the button, a function of\n * 'gd' (the main graph object) and\n * 'ev' (the event object)\n * @param {string} [attr]\n * attribute associated with button,\n * use this with 'val' to keep track of the state\n * @param {*} [val]\n * initial 'attr' value, can be a function of gd\n * @param {boolean} [toggle]\n * is the button a toggle button?\n */\nmodeBarButtons.toImage = {\n name: 'toImage',\n title: function(gd) {\n var opts = gd._context.toImageButtonOptions || {};\n var format = opts.format || 'png';\n return format === 'png' ?\n _(gd, 'Download plot as a png') : // legacy text\n _(gd, 'Download plot'); // generic non-PNG text\n },\n icon: Icons.camera,\n click: function(gd) {\n var toImageButtonOptions = gd._context.toImageButtonOptions;\n var opts = {format: toImageButtonOptions.format || 'png'};\n\n Lib.notifier(_(gd, 'Taking snapshot - this may take a few seconds'), 'long');\n\n if(opts.format !== 'svg' && Lib.isIE()) {\n Lib.notifier(_(gd, 'IE only supports svg. Changing format to svg.'), 'long');\n opts.format = 'svg';\n }\n\n ['filename', 'width', 'height', 'scale'].forEach(function(key) {\n if(key in toImageButtonOptions) {\n opts[key] = toImageButtonOptions[key];\n }\n });\n\n Registry.call('downloadImage', gd, opts)\n .then(function(filename) {\n Lib.notifier(_(gd, 'Snapshot succeeded') + ' - ' + filename, 'long');\n })\n .catch(function() {\n Lib.notifier(_(gd, 'Sorry, there was a problem downloading your snapshot!'), 'long');\n });\n }\n};\n\nmodeBarButtons.sendDataToCloud = {\n name: 'sendDataToCloud',\n title: function(gd) { return _(gd, 'Edit in Chart Studio'); },\n icon: Icons.disk,\n click: function(gd) {\n Plots.sendDataToCloud(gd);\n }\n};\n\nmodeBarButtons.editInChartStudio = {\n name: 'editInChartStudio',\n title: function(gd) { return _(gd, 'Edit in Chart Studio'); },\n icon: Icons.pencil,\n click: function(gd) {\n Plots.sendDataToCloud(gd);\n }\n};\n\nmodeBarButtons.zoom2d = {\n name: 'zoom2d',\n _cat: 'zoom',\n title: function(gd) { return _(gd, 'Zoom'); },\n attr: 'dragmode',\n val: 'zoom',\n icon: Icons.zoombox,\n click: handleCartesian\n};\n\nmodeBarButtons.pan2d = {\n name: 'pan2d',\n _cat: 'pan',\n title: function(gd) { return _(gd, 'Pan'); },\n attr: 'dragmode',\n val: 'pan',\n icon: Icons.pan,\n click: handleCartesian\n};\n\nmodeBarButtons.select2d = {\n name: 'select2d',\n _cat: 'select',\n title: function(gd) { return _(gd, 'Box Select'); },\n attr: 'dragmode',\n val: 'select',\n icon: Icons.selectbox,\n click: handleCartesian\n};\n\nmodeBarButtons.lasso2d = {\n name: 'lasso2d',\n _cat: 'lasso',\n title: function(gd) { return _(gd, 'Lasso Select'); },\n attr: 'dragmode',\n val: 'lasso',\n icon: Icons.lasso,\n click: handleCartesian\n};\n\nmodeBarButtons.drawclosedpath = {\n name: 'drawclosedpath',\n title: function(gd) { return _(gd, 'Draw closed freeform'); },\n attr: 'dragmode',\n val: 'drawclosedpath',\n icon: Icons.drawclosedpath,\n click: handleCartesian\n};\n\nmodeBarButtons.drawopenpath = {\n name: 'drawopenpath',\n title: function(gd) { return _(gd, 'Draw open freeform'); },\n attr: 'dragmode',\n val: 'drawopenpath',\n icon: Icons.drawopenpath,\n click: handleCartesian\n};\n\nmodeBarButtons.drawline = {\n name: 'drawline',\n title: function(gd) { return _(gd, 'Draw line'); },\n attr: 'dragmode',\n val: 'drawline',\n icon: Icons.drawline,\n click: handleCartesian\n};\n\nmodeBarButtons.drawrect = {\n name: 'drawrect',\n title: function(gd) { return _(gd, 'Draw rectangle'); },\n attr: 'dragmode',\n val: 'drawrect',\n icon: Icons.drawrect,\n click: handleCartesian\n};\n\nmodeBarButtons.drawcircle = {\n name: 'drawcircle',\n title: function(gd) { return _(gd, 'Draw circle'); },\n attr: 'dragmode',\n val: 'drawcircle',\n icon: Icons.drawcircle,\n click: handleCartesian\n};\n\nmodeBarButtons.eraseshape = {\n name: 'eraseshape',\n title: function(gd) { return _(gd, 'Erase active shape'); },\n icon: Icons.eraseshape,\n click: eraseActiveShape\n};\n\nmodeBarButtons.zoomIn2d = {\n name: 'zoomIn2d',\n _cat: 'zoomin',\n title: function(gd) { return _(gd, 'Zoom in'); },\n attr: 'zoom',\n val: 'in',\n icon: Icons.zoom_plus,\n click: handleCartesian\n};\n\nmodeBarButtons.zoomOut2d = {\n name: 'zoomOut2d',\n _cat: 'zoomout',\n title: function(gd) { return _(gd, 'Zoom out'); },\n attr: 'zoom',\n val: 'out',\n icon: Icons.zoom_minus,\n click: handleCartesian\n};\n\nmodeBarButtons.autoScale2d = {\n name: 'autoScale2d',\n _cat: 'autoscale',\n title: function(gd) { return _(gd, 'Autoscale'); },\n attr: 'zoom',\n val: 'auto',\n icon: Icons.autoscale,\n click: handleCartesian\n};\n\nmodeBarButtons.resetScale2d = {\n name: 'resetScale2d',\n _cat: 'resetscale',\n title: function(gd) { return _(gd, 'Reset axes'); },\n attr: 'zoom',\n val: 'reset',\n icon: Icons.home,\n click: handleCartesian\n};\n\nmodeBarButtons.hoverClosestCartesian = {\n name: 'hoverClosestCartesian',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Show closest data on hover'); },\n attr: 'hovermode',\n val: 'closest',\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: handleCartesian\n};\n\nmodeBarButtons.hoverCompareCartesian = {\n name: 'hoverCompareCartesian',\n _cat: 'hoverCompare',\n title: function(gd) { return _(gd, 'Compare data on hover'); },\n attr: 'hovermode',\n val: function(gd) {\n return gd._fullLayout._isHoriz ? 'y' : 'x';\n },\n icon: Icons.tooltip_compare,\n gravity: 'ne',\n click: handleCartesian\n};\n\nfunction handleCartesian(gd, ev) {\n var button = ev.currentTarget;\n var astr = button.getAttribute('data-attr');\n var val = button.getAttribute('data-val') || true;\n var fullLayout = gd._fullLayout;\n var aobj = {};\n var axList = axisIds.list(gd, null, true);\n var allSpikesEnabled = fullLayout._cartesianSpikesEnabled;\n\n var ax, i;\n\n if(astr === 'zoom') {\n var mag = (val === 'in') ? 0.5 : 2;\n var r0 = (1 + mag) / 2;\n var r1 = (1 - mag) / 2;\n var axName;\n\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n if(!ax.fixedrange) {\n axName = ax._name;\n if(val === 'auto') {\n aobj[axName + '.autorange'] = true;\n } else if(val === 'reset') {\n if(ax._rangeInitial === undefined) {\n aobj[axName + '.autorange'] = true;\n } else {\n var rangeInitial = ax._rangeInitial.slice();\n aobj[axName + '.range[0]'] = rangeInitial[0];\n aobj[axName + '.range[1]'] = rangeInitial[1];\n }\n\n // N.B. \"reset\" also resets showspikes\n if(ax._showSpikeInitial !== undefined) {\n aobj[axName + '.showspikes'] = ax._showSpikeInitial;\n if(allSpikesEnabled === 'on' && !ax._showSpikeInitial) {\n allSpikesEnabled = 'off';\n }\n }\n } else {\n var rangeNow = [\n ax.r2l(ax.range[0]),\n ax.r2l(ax.range[1]),\n ];\n\n var rangeNew = [\n r0 * rangeNow[0] + r1 * rangeNow[1],\n r0 * rangeNow[1] + r1 * rangeNow[0]\n ];\n\n aobj[axName + '.range[0]'] = ax.l2r(rangeNew[0]);\n aobj[axName + '.range[1]'] = ax.l2r(rangeNew[1]);\n }\n }\n }\n } else {\n // if ALL traces have orientation 'h', 'hovermode': 'x' otherwise: 'y'\n if(astr === 'hovermode' && (val === 'x' || val === 'y')) {\n val = fullLayout._isHoriz ? 'y' : 'x';\n button.setAttribute('data-val', val);\n }\n\n aobj[astr] = val;\n }\n\n fullLayout._cartesianSpikesEnabled = allSpikesEnabled;\n\n Registry.call('_guiRelayout', gd, aobj);\n}\n\nmodeBarButtons.zoom3d = {\n name: 'zoom3d',\n _cat: 'zoom',\n title: function(gd) { return _(gd, 'Zoom'); },\n attr: 'scene.dragmode',\n val: 'zoom',\n icon: Icons.zoombox,\n click: handleDrag3d\n};\n\nmodeBarButtons.pan3d = {\n name: 'pan3d',\n _cat: 'pan',\n title: function(gd) { return _(gd, 'Pan'); },\n attr: 'scene.dragmode',\n val: 'pan',\n icon: Icons.pan,\n click: handleDrag3d\n};\n\nmodeBarButtons.orbitRotation = {\n name: 'orbitRotation',\n title: function(gd) { return _(gd, 'Orbital rotation'); },\n attr: 'scene.dragmode',\n val: 'orbit',\n icon: Icons['3d_rotate'],\n click: handleDrag3d\n};\n\nmodeBarButtons.tableRotation = {\n name: 'tableRotation',\n title: function(gd) { return _(gd, 'Turntable rotation'); },\n attr: 'scene.dragmode',\n val: 'turntable',\n icon: Icons['z-axis'],\n click: handleDrag3d\n};\n\nfunction handleDrag3d(gd, ev) {\n var button = ev.currentTarget;\n var attr = button.getAttribute('data-attr');\n var val = button.getAttribute('data-val') || true;\n var sceneIds = gd._fullLayout._subplots.gl3d || [];\n var layoutUpdate = {};\n\n var parts = attr.split('.');\n\n for(var i = 0; i < sceneIds.length; i++) {\n layoutUpdate[sceneIds[i] + '.' + parts[1]] = val;\n }\n\n // for multi-type subplots\n var val2d = (val === 'pan') ? val : 'zoom';\n layoutUpdate.dragmode = val2d;\n\n Registry.call('_guiRelayout', gd, layoutUpdate);\n}\n\nmodeBarButtons.resetCameraDefault3d = {\n name: 'resetCameraDefault3d',\n _cat: 'resetCameraDefault',\n title: function(gd) { return _(gd, 'Reset camera to default'); },\n attr: 'resetDefault',\n icon: Icons.home,\n click: handleCamera3d\n};\n\nmodeBarButtons.resetCameraLastSave3d = {\n name: 'resetCameraLastSave3d',\n _cat: 'resetCameraLastSave',\n title: function(gd) { return _(gd, 'Reset camera to last save'); },\n attr: 'resetLastSave',\n icon: Icons.movie,\n click: handleCamera3d\n};\n\nfunction handleCamera3d(gd, ev) {\n var button = ev.currentTarget;\n var attr = button.getAttribute('data-attr');\n var resetLastSave = attr === 'resetLastSave';\n var resetDefault = attr === 'resetDefault';\n\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots.gl3d || [];\n var aobj = {};\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneId = sceneIds[i];\n var camera = sceneId + '.camera';\n var aspectratio = sceneId + '.aspectratio';\n var aspectmode = sceneId + '.aspectmode';\n var scene = fullLayout[sceneId]._scene;\n var didUpdate;\n\n if(resetLastSave) {\n aobj[camera + '.up'] = scene.viewInitial.up;\n aobj[camera + '.eye'] = scene.viewInitial.eye;\n aobj[camera + '.center'] = scene.viewInitial.center;\n didUpdate = true;\n } else if(resetDefault) {\n aobj[camera + '.up'] = null;\n aobj[camera + '.eye'] = null;\n aobj[camera + '.center'] = null;\n didUpdate = true;\n }\n\n if(didUpdate) {\n aobj[aspectratio + '.x'] = scene.viewInitial.aspectratio.x;\n aobj[aspectratio + '.y'] = scene.viewInitial.aspectratio.y;\n aobj[aspectratio + '.z'] = scene.viewInitial.aspectratio.z;\n aobj[aspectmode] = scene.viewInitial.aspectmode;\n }\n }\n\n Registry.call('_guiRelayout', gd, aobj);\n}\n\nmodeBarButtons.hoverClosest3d = {\n name: 'hoverClosest3d',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: handleHover3d\n};\n\nfunction getNextHover3d(gd, ev) {\n var button = ev.currentTarget;\n var val = button._previousVal;\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots.gl3d || [];\n\n var axes = ['xaxis', 'yaxis', 'zaxis'];\n\n // initialize 'current spike' object to be stored in the DOM\n var currentSpikes = {};\n var layoutUpdate = {};\n\n if(val) {\n layoutUpdate = val;\n button._previousVal = null;\n } else {\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneId = sceneIds[i];\n var sceneLayout = fullLayout[sceneId];\n\n var hovermodeAStr = sceneId + '.hovermode';\n currentSpikes[hovermodeAStr] = sceneLayout.hovermode;\n layoutUpdate[hovermodeAStr] = false;\n\n // copy all the current spike attrs\n for(var j = 0; j < 3; j++) {\n var axis = axes[j];\n var spikeAStr = sceneId + '.' + axis + '.showspikes';\n layoutUpdate[spikeAStr] = false;\n currentSpikes[spikeAStr] = sceneLayout[axis].showspikes;\n }\n }\n\n button._previousVal = currentSpikes;\n }\n return layoutUpdate;\n}\n\nfunction handleHover3d(gd, ev) {\n var layoutUpdate = getNextHover3d(gd, ev);\n Registry.call('_guiRelayout', gd, layoutUpdate);\n}\n\nmodeBarButtons.zoomInGeo = {\n name: 'zoomInGeo',\n _cat: 'zoomin',\n title: function(gd) { return _(gd, 'Zoom in'); },\n attr: 'zoom',\n val: 'in',\n icon: Icons.zoom_plus,\n click: handleGeo\n};\n\nmodeBarButtons.zoomOutGeo = {\n name: 'zoomOutGeo',\n _cat: 'zoomout',\n title: function(gd) { return _(gd, 'Zoom out'); },\n attr: 'zoom',\n val: 'out',\n icon: Icons.zoom_minus,\n click: handleGeo\n};\n\nmodeBarButtons.resetGeo = {\n name: 'resetGeo',\n _cat: 'reset',\n title: function(gd) { return _(gd, 'Reset'); },\n attr: 'reset',\n val: null,\n icon: Icons.autoscale,\n click: handleGeo\n};\n\nmodeBarButtons.hoverClosestGeo = {\n name: 'hoverClosestGeo',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: toggleHover\n};\n\nfunction handleGeo(gd, ev) {\n var button = ev.currentTarget;\n var attr = button.getAttribute('data-attr');\n var val = button.getAttribute('data-val') || true;\n var fullLayout = gd._fullLayout;\n var geoIds = fullLayout._subplots.geo || [];\n\n for(var i = 0; i < geoIds.length; i++) {\n var id = geoIds[i];\n var geoLayout = fullLayout[id];\n\n if(attr === 'zoom') {\n var scale = geoLayout.projection.scale;\n var newScale = (val === 'in') ? 2 * scale : 0.5 * scale;\n\n Registry.call('_guiRelayout', gd, id + '.projection.scale', newScale);\n }\n }\n\n if(attr === 'reset') {\n resetView(gd, 'geo');\n }\n}\n\nmodeBarButtons.hoverClosestGl2d = {\n name: 'hoverClosestGl2d',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: toggleHover\n};\n\nmodeBarButtons.hoverClosestPie = {\n name: 'hoverClosestPie',\n _cat: 'hoverclosest',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: 'closest',\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: toggleHover\n};\n\nfunction getNextHover(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout.hovermode) return false;\n\n if(fullLayout._has('cartesian')) {\n return fullLayout._isHoriz ? 'y' : 'x';\n }\n return 'closest';\n}\n\nfunction toggleHover(gd) {\n var newHover = getNextHover(gd);\n Registry.call('_guiRelayout', gd, 'hovermode', newHover);\n}\n\nmodeBarButtons.resetViewSankey = {\n name: 'resetSankeyGroup',\n title: function(gd) { return _(gd, 'Reset view'); },\n icon: Icons.home,\n click: function(gd) {\n var aObj = {\n 'node.groups': [],\n 'node.x': [],\n 'node.y': []\n };\n for(var i = 0; i < gd._fullData.length; i++) {\n var viewInitial = gd._fullData[i]._viewInitial;\n aObj['node.groups'].push(viewInitial.node.groups.slice());\n aObj['node.x'].push(viewInitial.node.x.slice());\n aObj['node.y'].push(viewInitial.node.y.slice());\n }\n Registry.call('restyle', gd, aObj);\n }\n};\n\n// buttons when more then one plot types are present\n\nmodeBarButtons.toggleHover = {\n name: 'toggleHover',\n title: function(gd) { return _(gd, 'Toggle show closest data on hover'); },\n attr: 'hovermode',\n val: null,\n toggle: true,\n icon: Icons.tooltip_basic,\n gravity: 'ne',\n click: function(gd, ev) {\n var layoutUpdate = getNextHover3d(gd, ev);\n layoutUpdate.hovermode = getNextHover(gd);\n\n Registry.call('_guiRelayout', gd, layoutUpdate);\n }\n};\n\nmodeBarButtons.resetViews = {\n name: 'resetViews',\n title: function(gd) { return _(gd, 'Reset views'); },\n icon: Icons.home,\n click: function(gd, ev) {\n var button = ev.currentTarget;\n\n button.setAttribute('data-attr', 'zoom');\n button.setAttribute('data-val', 'reset');\n handleCartesian(gd, ev);\n\n button.setAttribute('data-attr', 'resetLastSave');\n handleCamera3d(gd, ev);\n\n resetView(gd, 'geo');\n resetView(gd, 'mapbox');\n }\n};\n\nmodeBarButtons.toggleSpikelines = {\n name: 'toggleSpikelines',\n title: function(gd) { return _(gd, 'Toggle Spike Lines'); },\n icon: Icons.spikeline,\n attr: '_cartesianSpikesEnabled',\n val: 'on',\n click: function(gd) {\n var fullLayout = gd._fullLayout;\n var allSpikesEnabled = fullLayout._cartesianSpikesEnabled;\n\n fullLayout._cartesianSpikesEnabled = allSpikesEnabled === 'on' ? 'off' : 'on';\n Registry.call('_guiRelayout', gd, setSpikelineVisibility(gd));\n }\n};\n\nfunction setSpikelineVisibility(gd) {\n var fullLayout = gd._fullLayout;\n var areSpikesOn = fullLayout._cartesianSpikesEnabled === 'on';\n var axList = axisIds.list(gd, null, true);\n var aobj = {};\n\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n aobj[ax._name + '.showspikes'] = areSpikesOn ? true : ax._showSpikeInitial;\n }\n\n return aobj;\n}\n\nmodeBarButtons.resetViewMapbox = {\n name: 'resetViewMapbox',\n _cat: 'resetView',\n title: function(gd) { return _(gd, 'Reset view'); },\n attr: 'reset',\n icon: Icons.home,\n click: function(gd) {\n resetView(gd, 'mapbox');\n }\n};\n\nmodeBarButtons.zoomInMapbox = {\n name: 'zoomInMapbox',\n _cat: 'zoomin',\n title: function(gd) { return _(gd, 'Zoom in'); },\n attr: 'zoom',\n val: 'in',\n icon: Icons.zoom_plus,\n click: handleMapboxZoom\n};\n\nmodeBarButtons.zoomOutMapbox = {\n name: 'zoomOutMapbox',\n _cat: 'zoomout',\n title: function(gd) { return _(gd, 'Zoom out'); },\n attr: 'zoom',\n val: 'out',\n icon: Icons.zoom_minus,\n click: handleMapboxZoom\n};\n\nfunction handleMapboxZoom(gd, ev) {\n var button = ev.currentTarget;\n var val = button.getAttribute('data-val');\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots.mapbox || [];\n var scalar = 1.05;\n var aObj = {};\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var current = fullLayout[id].zoom;\n var next = (val === 'in') ? scalar * current : current / scalar;\n aObj[id + '.zoom'] = next;\n }\n\n Registry.call('_guiRelayout', gd, aObj);\n}\n\nfunction resetView(gd, subplotType) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[subplotType] || [];\n var aObj = {};\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var subplotObj = fullLayout[id]._subplot;\n var viewInitial = subplotObj.viewInitial;\n var viewKeys = Object.keys(viewInitial);\n\n for(var j = 0; j < viewKeys.length; j++) {\n var key = viewKeys[j];\n aObj[id + '.' + key] = viewInitial[key];\n }\n }\n\n Registry.call('_guiRelayout', gd, aObj);\n}\n\n},{\"../../fonts/ploticon\":494,\"../../lib\":515,\"../../plots/cartesian/axis_ids\":570,\"../../plots/plots\":628,\"../../registry\":647,\"../shapes/draw\":462}],428:[function(_dereq_,module,exports){\n'use strict';\n\nvar modeBarButtons = _dereq_('./buttons');\nvar buttonList = Object.keys(modeBarButtons);\n\nvar DRAW_MODES = [\n 'drawline',\n 'drawopenpath',\n 'drawclosedpath',\n 'drawcircle',\n 'drawrect',\n 'eraseshape'\n];\n\nvar backButtons = [\n 'v1hovermode',\n 'hoverclosest',\n 'hovercompare',\n 'togglehover',\n 'togglespikelines'\n].concat(DRAW_MODES);\n\nvar foreButtons = [];\nvar addToForeButtons = function(b) {\n if(backButtons.indexOf(b._cat || b.name) !== -1) return;\n // for convenience add lowercase shotname e.g. zoomin as well fullname zoomInGeo\n var name = b.name;\n var _cat = (b._cat || b.name).toLowerCase();\n if(foreButtons.indexOf(name) === -1) foreButtons.push(name);\n if(foreButtons.indexOf(_cat) === -1) foreButtons.push(_cat);\n};\nbuttonList.forEach(function(k) {\n addToForeButtons(modeBarButtons[k]);\n});\nforeButtons.sort();\n\nmodule.exports = {\n DRAW_MODES: DRAW_MODES,\n backButtons: backButtons,\n foreButtons: foreButtons\n};\n\n},{\"./buttons\":427}],429:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n var containerIn = layoutIn.modebar || {};\n var containerOut = Template.newContainer(layoutOut, 'modebar');\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n coerce('orientation');\n coerce('bgcolor', Color.addOpacity(layoutOut.paper_bgcolor, 0.5));\n var defaultColor = Color.contrast(Color.rgb(layoutOut.modebar.bgcolor));\n coerce('color', Color.addOpacity(defaultColor, 0.3));\n coerce('activecolor', Color.addOpacity(defaultColor, 0.7));\n coerce('uirevision', layoutOut.uirevision);\n coerce('add');\n coerce('remove');\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../color\":367,\"./attributes\":426}],430:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'modebar',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n\n manage: _dereq_('./manage')\n};\n\n},{\"./attributes\":426,\"./defaults\":429,\"./manage\":431}],431:[function(_dereq_,module,exports){\n'use strict';\n\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\nvar scatterSubTypes = _dereq_('../../traces/scatter/subtypes');\nvar Registry = _dereq_('../../registry');\nvar isUnifiedHover = _dereq_('../fx/helpers').isUnifiedHover;\n\nvar createModeBar = _dereq_('./modebar');\nvar modeBarButtons = _dereq_('./buttons');\nvar DRAW_MODES = _dereq_('./constants').DRAW_MODES;\nvar extendDeep = _dereq_('../../lib').extendDeep;\n\n/**\n * ModeBar wrapper around 'create' and 'update',\n * chooses buttons to pass to ModeBar constructor based on\n * plot type and plot config.\n *\n * @param {object} gd main plot object\n *\n */\nmodule.exports = function manageModeBar(gd) {\n var fullLayout = gd._fullLayout;\n var context = gd._context;\n var modeBar = fullLayout._modeBar;\n\n if(!context.displayModeBar && !context.watermark) {\n if(modeBar) {\n modeBar.destroy();\n delete fullLayout._modeBar;\n }\n return;\n }\n\n if(!Array.isArray(context.modeBarButtonsToRemove)) {\n throw new Error([\n '*modeBarButtonsToRemove* configuration options',\n 'must be an array.'\n ].join(' '));\n }\n\n if(!Array.isArray(context.modeBarButtonsToAdd)) {\n throw new Error([\n '*modeBarButtonsToAdd* configuration options',\n 'must be an array.'\n ].join(' '));\n }\n\n var customButtons = context.modeBarButtons;\n var buttonGroups;\n\n if(Array.isArray(customButtons) && customButtons.length) {\n buttonGroups = fillCustomButton(customButtons);\n } else if(!context.displayModeBar && context.watermark) {\n buttonGroups = [];\n } else {\n buttonGroups = getButtonGroups(gd);\n }\n\n if(modeBar) modeBar.update(gd, buttonGroups);\n else fullLayout._modeBar = createModeBar(gd, buttonGroups);\n};\n\n// logic behind which buttons are displayed by default\nfunction getButtonGroups(gd) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var context = gd._context;\n\n function match(name, B) {\n if(typeof B === 'string') {\n if(B.toLowerCase() === name.toLowerCase()) return true;\n } else {\n var v0 = B.name;\n var v1 = (B._cat || B.name);\n\n if(v0 === name || v1 === name.toLowerCase()) return true;\n }\n return false;\n }\n\n var layoutAdd = fullLayout.modebar.add;\n if(typeof layoutAdd === 'string') layoutAdd = [layoutAdd];\n\n var layoutRemove = fullLayout.modebar.remove;\n if(typeof layoutRemove === 'string') layoutRemove = [layoutRemove];\n\n var buttonsToAdd = context.modeBarButtonsToAdd.concat(\n layoutAdd.filter(function(e) {\n for(var i = 0; i < context.modeBarButtonsToRemove.length; i++) {\n if(match(e, context.modeBarButtonsToRemove[i])) return false;\n }\n return true;\n })\n );\n\n var buttonsToRemove = context.modeBarButtonsToRemove.concat(\n layoutRemove.filter(function(e) {\n for(var i = 0; i < context.modeBarButtonsToAdd.length; i++) {\n if(match(e, context.modeBarButtonsToAdd[i])) return false;\n }\n return true;\n })\n );\n\n var hasCartesian = fullLayout._has('cartesian');\n var hasGL3D = fullLayout._has('gl3d');\n var hasGeo = fullLayout._has('geo');\n var hasPie = fullLayout._has('pie');\n var hasFunnelarea = fullLayout._has('funnelarea');\n var hasGL2D = fullLayout._has('gl2d');\n var hasTernary = fullLayout._has('ternary');\n var hasMapbox = fullLayout._has('mapbox');\n var hasPolar = fullLayout._has('polar');\n var hasSmith = fullLayout._has('smith');\n var hasSankey = fullLayout._has('sankey');\n var allAxesFixed = areAllAxesFixed(fullLayout);\n var hasUnifiedHoverLabel = isUnifiedHover(fullLayout.hovermode);\n\n var groups = [];\n\n function addGroup(newGroup) {\n if(!newGroup.length) return;\n\n var out = [];\n\n for(var i = 0; i < newGroup.length; i++) {\n var name = newGroup[i];\n var B = modeBarButtons[name];\n var v0 = B.name.toLowerCase();\n var v1 = (B._cat || B.name).toLowerCase();\n var found = false;\n for(var q = 0; q < buttonsToRemove.length; q++) {\n var t = buttonsToRemove[q].toLowerCase();\n if(t === v0 || t === v1) {\n found = true;\n break;\n }\n }\n if(found) continue;\n out.push(modeBarButtons[name]);\n }\n\n groups.push(out);\n }\n\n // buttons common to all plot types\n var commonGroup = ['toImage'];\n if(context.showEditInChartStudio) commonGroup.push('editInChartStudio');\n else if(context.showSendToCloud) commonGroup.push('sendDataToCloud');\n addGroup(commonGroup);\n\n var zoomGroup = [];\n var hoverGroup = [];\n var resetGroup = [];\n var dragModeGroup = [];\n\n if((hasCartesian || hasGL2D || hasPie || hasFunnelarea || hasTernary) + hasGeo + hasGL3D + hasMapbox + hasPolar + hasSmith > 1) {\n // graphs with more than one plot types get 'union buttons'\n // which reset the view or toggle hover labels across all subplots.\n hoverGroup = ['toggleHover'];\n resetGroup = ['resetViews'];\n } else if(hasGeo) {\n zoomGroup = ['zoomInGeo', 'zoomOutGeo'];\n hoverGroup = ['hoverClosestGeo'];\n resetGroup = ['resetGeo'];\n } else if(hasGL3D) {\n hoverGroup = ['hoverClosest3d'];\n resetGroup = ['resetCameraDefault3d', 'resetCameraLastSave3d'];\n } else if(hasMapbox) {\n zoomGroup = ['zoomInMapbox', 'zoomOutMapbox'];\n hoverGroup = ['toggleHover'];\n resetGroup = ['resetViewMapbox'];\n } else if(hasGL2D) {\n hoverGroup = ['hoverClosestGl2d'];\n } else if(hasPie) {\n hoverGroup = ['hoverClosestPie'];\n } else if(hasSankey) {\n hoverGroup = ['hoverClosestCartesian', 'hoverCompareCartesian'];\n resetGroup = ['resetViewSankey'];\n } else { // hasPolar, hasSmith, hasTernary\n // always show at least one hover icon.\n hoverGroup = ['toggleHover'];\n }\n // if we have cartesian, allow switching between closest and compare\n // regardless of what other types are on the plot, since they'll all\n // just treat any truthy hovermode as 'closest'\n if(hasCartesian) {\n hoverGroup = ['toggleSpikelines', 'hoverClosestCartesian', 'hoverCompareCartesian'];\n }\n if(hasNoHover(fullData) || hasUnifiedHoverLabel) {\n hoverGroup = [];\n }\n\n if((hasCartesian || hasGL2D) && !allAxesFixed) {\n zoomGroup = ['zoomIn2d', 'zoomOut2d', 'autoScale2d'];\n if(resetGroup[0] !== 'resetViews') resetGroup = ['resetScale2d'];\n }\n\n if(hasGL3D) {\n dragModeGroup = ['zoom3d', 'pan3d', 'orbitRotation', 'tableRotation'];\n } else if(((hasCartesian || hasGL2D) && !allAxesFixed) || hasTernary) {\n dragModeGroup = ['zoom2d', 'pan2d'];\n } else if(hasMapbox || hasGeo) {\n dragModeGroup = ['pan2d'];\n } else if(hasPolar) {\n dragModeGroup = ['zoom2d'];\n }\n if(isSelectable(fullData)) {\n dragModeGroup.push('select2d', 'lasso2d');\n }\n\n var enabledHoverGroup = [];\n var enableHover = function(a) {\n // return if already added\n if(enabledHoverGroup.indexOf(a) !== -1) return;\n // should be in hoverGroup\n if(hoverGroup.indexOf(a) !== -1) {\n enabledHoverGroup.push(a);\n }\n };\n if(Array.isArray(buttonsToAdd)) {\n var newList = [];\n for(var i = 0; i < buttonsToAdd.length; i++) {\n var b = buttonsToAdd[i];\n if(typeof b === 'string') {\n b = b.toLowerCase();\n\n if(DRAW_MODES.indexOf(b) !== -1) {\n // accept pre-defined drag modes i.e. shape drawing features as string\n if(\n fullLayout._has('mapbox') || // draw shapes in paper coordinate (could be improved in future to support data coordinate, when there is no pitch)\n fullLayout._has('cartesian') // draw shapes in data coordinate\n ) {\n dragModeGroup.push(b);\n }\n } else if(b === 'togglespikelines') {\n enableHover('toggleSpikelines');\n } else if(b === 'togglehover') {\n enableHover('toggleHover');\n } else if(b === 'hovercompare') {\n enableHover('hoverCompareCartesian');\n } else if(b === 'hoverclosest') {\n enableHover('hoverClosestCartesian');\n enableHover('hoverClosestGeo');\n enableHover('hoverClosest3d');\n enableHover('hoverClosestGl2d');\n enableHover('hoverClosestPie');\n } else if(b === 'v1hovermode') {\n enableHover('toggleHover');\n enableHover('hoverClosestCartesian');\n enableHover('hoverCompareCartesian');\n enableHover('hoverClosestGeo');\n enableHover('hoverClosest3d');\n enableHover('hoverClosestGl2d');\n enableHover('hoverClosestPie');\n }\n } else newList.push(b);\n }\n buttonsToAdd = newList;\n }\n\n addGroup(dragModeGroup);\n addGroup(zoomGroup.concat(resetGroup));\n addGroup(enabledHoverGroup);\n\n return appendButtonsToGroups(groups, buttonsToAdd);\n}\n\nfunction areAllAxesFixed(fullLayout) {\n var axList = axisIds.list({_fullLayout: fullLayout}, null, true);\n\n for(var i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) {\n return false;\n }\n }\n\n return true;\n}\n\n// look for traces that support selection\n// to be updated as we add more selectPoints handlers\nfunction isSelectable(fullData) {\n var selectable = false;\n\n for(var i = 0; i < fullData.length; i++) {\n if(selectable) break;\n\n var trace = fullData[i];\n\n if(!trace._module || !trace._module.selectPoints) continue;\n\n if(Registry.traceIs(trace, 'scatter-like')) {\n if(scatterSubTypes.hasMarkers(trace) || scatterSubTypes.hasText(trace)) {\n selectable = true;\n }\n } else if(Registry.traceIs(trace, 'box-violin')) {\n if(trace.boxpoints === 'all' || trace.points === 'all') {\n selectable = true;\n }\n } else {\n // assume that in general if the trace module has selectPoints,\n // then it's selectable. Scatter is an exception to this because it must\n // have markers or text, not just be a scatter type.\n\n selectable = true;\n }\n }\n\n return selectable;\n}\n\n// check whether all trace are 'noHover'\nfunction hasNoHover(fullData) {\n for(var i = 0; i < fullData.length; i++) {\n if(!Registry.traceIs(fullData[i], 'noHover')) return false;\n }\n return true;\n}\n\nfunction appendButtonsToGroups(groups, buttons) {\n if(buttons.length) {\n if(Array.isArray(buttons[0])) {\n for(var i = 0; i < buttons.length; i++) {\n groups.push(buttons[i]);\n }\n } else groups.push(buttons);\n }\n\n return groups;\n}\n\n// fill in custom buttons referring to default mode bar buttons\nfunction fillCustomButton(originalModeBarButtons) {\n var customButtons = extendDeep([], originalModeBarButtons);\n\n for(var i = 0; i < customButtons.length; i++) {\n var buttonGroup = customButtons[i];\n\n for(var j = 0; j < buttonGroup.length; j++) {\n var button = buttonGroup[j];\n\n if(typeof button === 'string') {\n if(modeBarButtons[button] !== undefined) {\n customButtons[i][j] = modeBarButtons[button];\n } else {\n throw new Error([\n '*modeBarButtons* configuration options',\n 'invalid button name'\n ].join(' '));\n }\n }\n }\n }\n\n return customButtons;\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axis_ids\":570,\"../../registry\":647,\"../../traces/scatter/subtypes\":961,\"../fx/helpers\":403,\"./buttons\":427,\"./constants\":428,\"./modebar\":432}],432:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Icons = _dereq_('../../fonts/ploticon');\nvar version = _dereq_('../../version').version;\n\nvar Parser = new DOMParser();\n\n/**\n * UI controller for interactive plots\n * @Class\n * @Param {object} opts\n * @Param {object} opts.buttons nested arrays of grouped buttons config objects\n * @Param {object} opts.container container div to append modeBar\n * @Param {object} opts.graphInfo primary plot object containing data and layout\n */\nfunction ModeBar(opts) {\n this.container = opts.container;\n this.element = document.createElement('div');\n\n this.update(opts.graphInfo, opts.buttons);\n\n this.container.appendChild(this.element);\n}\n\nvar proto = ModeBar.prototype;\n\n/**\n * Update modeBar (buttons and logo)\n *\n * @param {object} graphInfo primary plot object containing data and layout\n * @param {array of arrays} buttons nested arrays of grouped buttons to initialize\n *\n */\nproto.update = function(graphInfo, buttons) {\n this.graphInfo = graphInfo;\n\n var context = this.graphInfo._context;\n var fullLayout = this.graphInfo._fullLayout;\n var modeBarId = 'modebar-' + fullLayout._uid;\n\n this.element.setAttribute('id', modeBarId);\n this._uid = modeBarId;\n\n this.element.className = 'modebar';\n if(context.displayModeBar === 'hover') this.element.className += ' modebar--hover ease-bg';\n\n if(fullLayout.modebar.orientation === 'v') {\n this.element.className += ' vertical';\n buttons = buttons.reverse();\n }\n\n var style = fullLayout.modebar;\n var bgSelector = context.displayModeBar === 'hover' ? '.js-plotly-plot .plotly:hover ' : '';\n\n Lib.deleteRelatedStyleRule(modeBarId);\n Lib.addRelatedStyleRule(modeBarId, bgSelector + '#' + modeBarId + ' .modebar-group', 'background-color: ' + style.bgcolor);\n Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn .icon path', 'fill: ' + style.color);\n Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn:hover .icon path', 'fill: ' + style.activecolor);\n Lib.addRelatedStyleRule(modeBarId, '#' + modeBarId + ' .modebar-btn.active .icon path', 'fill: ' + style.activecolor);\n\n // if buttons or logo have changed, redraw modebar interior\n var needsNewButtons = !this.hasButtons(buttons);\n var needsNewLogo = (this.hasLogo !== context.displaylogo);\n var needsNewLocale = (this.locale !== context.locale);\n\n this.locale = context.locale;\n\n if(needsNewButtons || needsNewLogo || needsNewLocale) {\n this.removeAllButtons();\n\n this.updateButtons(buttons);\n\n if(context.watermark || context.displaylogo) {\n var logoGroup = this.getLogo();\n if(context.watermark) {\n logoGroup.className = logoGroup.className + ' watermark';\n }\n\n if(fullLayout.modebar.orientation === 'v') {\n this.element.insertBefore(logoGroup, this.element.childNodes[0]);\n } else {\n this.element.appendChild(logoGroup);\n }\n\n this.hasLogo = true;\n }\n }\n\n this.updateActiveButton();\n};\n\nproto.updateButtons = function(buttons) {\n var _this = this;\n\n this.buttons = buttons;\n this.buttonElements = [];\n this.buttonsNames = [];\n\n this.buttons.forEach(function(buttonGroup) {\n var group = _this.createGroup();\n\n buttonGroup.forEach(function(buttonConfig) {\n var buttonName = buttonConfig.name;\n if(!buttonName) {\n throw new Error('must provide button \\'name\\' in button config');\n }\n if(_this.buttonsNames.indexOf(buttonName) !== -1) {\n throw new Error('button name \\'' + buttonName + '\\' is taken');\n }\n _this.buttonsNames.push(buttonName);\n\n var button = _this.createButton(buttonConfig);\n _this.buttonElements.push(button);\n group.appendChild(button);\n });\n\n _this.element.appendChild(group);\n });\n};\n\n/**\n * Empty div for containing a group of buttons\n * @Return {HTMLelement}\n */\nproto.createGroup = function() {\n var group = document.createElement('div');\n group.className = 'modebar-group';\n return group;\n};\n\n/**\n * Create a new button div and set constant and configurable attributes\n * @Param {object} config (see ./buttons.js for more info)\n * @Return {HTMLelement}\n */\nproto.createButton = function(config) {\n var _this = this;\n var button = document.createElement('a');\n\n button.setAttribute('rel', 'tooltip');\n button.className = 'modebar-btn';\n\n var title = config.title;\n if(title === undefined) title = config.name;\n // for localization: allow title to be a callable that takes gd as arg\n else if(typeof title === 'function') title = title(this.graphInfo);\n\n if(title || title === 0) button.setAttribute('data-title', title);\n\n if(config.attr !== undefined) button.setAttribute('data-attr', config.attr);\n\n var val = config.val;\n if(val !== undefined) {\n if(typeof val === 'function') val = val(this.graphInfo);\n button.setAttribute('data-val', val);\n }\n\n var click = config.click;\n if(typeof click !== 'function') {\n throw new Error('must provide button \\'click\\' function in button config');\n } else {\n button.addEventListener('click', function(ev) {\n config.click(_this.graphInfo, ev);\n\n // only needed for 'hoverClosestGeo' which does not call relayout\n _this.updateActiveButton(ev.currentTarget);\n });\n }\n\n button.setAttribute('data-toggle', config.toggle || false);\n if(config.toggle) d3.select(button).classed('active', true);\n\n var icon = config.icon;\n if(typeof icon === 'function') {\n button.appendChild(icon());\n } else {\n button.appendChild(this.createIcon(icon || Icons.question));\n }\n button.setAttribute('data-gravity', config.gravity || 'n');\n\n return button;\n};\n\n/**\n * Add an icon to a button\n * @Param {object} thisIcon\n * @Param {number} thisIcon.width\n * @Param {string} thisIcon.path\n * @Param {string} thisIcon.color\n * @Return {HTMLelement}\n */\nproto.createIcon = function(thisIcon) {\n var iconHeight = isNumeric(thisIcon.height) ?\n Number(thisIcon.height) :\n thisIcon.ascent - thisIcon.descent;\n var svgNS = 'http://www.w3.org/2000/svg';\n var icon;\n\n if(thisIcon.path) {\n icon = document.createElementNS(svgNS, 'svg');\n icon.setAttribute('viewBox', [0, 0, thisIcon.width, iconHeight].join(' '));\n icon.setAttribute('class', 'icon');\n\n var path = document.createElementNS(svgNS, 'path');\n path.setAttribute('d', thisIcon.path);\n\n if(thisIcon.transform) {\n path.setAttribute('transform', thisIcon.transform);\n } else if(thisIcon.ascent !== undefined) {\n // Legacy icon transform calculation\n path.setAttribute('transform', 'matrix(1 0 0 -1 0 ' + thisIcon.ascent + ')');\n }\n\n icon.appendChild(path);\n }\n\n if(thisIcon.svg) {\n var svgDoc = Parser.parseFromString(thisIcon.svg, 'application/xml');\n icon = svgDoc.childNodes[0];\n }\n\n icon.setAttribute('height', '1em');\n icon.setAttribute('width', '1em');\n\n return icon;\n};\n\n/**\n * Updates active button with attribute specified in layout\n * @Param {object} graphInfo plot object containing data and layout\n * @Return {HTMLelement}\n */\nproto.updateActiveButton = function(buttonClicked) {\n var fullLayout = this.graphInfo._fullLayout;\n var dataAttrClicked = (buttonClicked !== undefined) ?\n buttonClicked.getAttribute('data-attr') :\n null;\n\n this.buttonElements.forEach(function(button) {\n var thisval = button.getAttribute('data-val') || true;\n var dataAttr = button.getAttribute('data-attr');\n var isToggleButton = (button.getAttribute('data-toggle') === 'true');\n var button3 = d3.select(button);\n\n // Use 'data-toggle' and 'buttonClicked' to toggle buttons\n // that have no one-to-one equivalent in fullLayout\n if(isToggleButton) {\n if(dataAttr === dataAttrClicked) {\n button3.classed('active', !button3.classed('active'));\n }\n } else {\n var val = (dataAttr === null) ?\n dataAttr :\n Lib.nestedProperty(fullLayout, dataAttr).get();\n\n button3.classed('active', val === thisval);\n }\n });\n};\n\n/**\n * Check if modeBar is configured as button configuration argument\n *\n * @Param {object} buttons 2d array of grouped button config objects\n * @Return {boolean}\n */\nproto.hasButtons = function(buttons) {\n var currentButtons = this.buttons;\n\n if(!currentButtons) return false;\n\n if(buttons.length !== currentButtons.length) return false;\n\n for(var i = 0; i < buttons.length; ++i) {\n if(buttons[i].length !== currentButtons[i].length) return false;\n for(var j = 0; j < buttons[i].length; j++) {\n if(buttons[i][j].name !== currentButtons[i][j].name) return false;\n }\n }\n\n return true;\n};\n\nfunction jsVersion(str) {\n return str + ' (v' + version + ')';\n}\n\n/**\n * @return {HTMLDivElement} The logo image wrapped in a group\n */\nproto.getLogo = function() {\n var group = this.createGroup();\n var a = document.createElement('a');\n\n a.href = 'https://plotly.com/';\n a.target = '_blank';\n a.setAttribute('data-title', jsVersion(Lib._(this.graphInfo, 'Produced with Plotly.js')));\n a.className = 'modebar-btn plotlyjsicon modebar-btn--logo';\n\n a.appendChild(this.createIcon(Icons.newplotlylogo));\n\n group.appendChild(a);\n return group;\n};\n\nproto.removeAllButtons = function() {\n while(this.element.firstChild) {\n this.element.removeChild(this.element.firstChild);\n }\n\n this.hasLogo = false;\n};\n\nproto.destroy = function() {\n Lib.removeElement(this.container.querySelector('.modebar'));\n Lib.deleteRelatedStyleRule(this._uid);\n};\n\nfunction createModeBar(gd, buttons) {\n var fullLayout = gd._fullLayout;\n\n var modeBar = new ModeBar({\n graphInfo: gd,\n container: fullLayout._modebardiv.node(),\n buttons: buttons\n });\n\n if(fullLayout._privateplot) {\n d3.select(modeBar.element).append('span')\n .classed('badge-private float--left', true)\n .text('PRIVATE');\n }\n\n return modeBar;\n}\n\nmodule.exports = createModeBar;\n\n},{\"../../fonts/ploticon\":494,\"../../lib\":515,\"../../version\":1132,\"@plotly/d3\":58,\"fast-isnumeric\":190}],433:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../color/attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nvar buttonAttrs = templatedArray('button', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n step: {\n valType: 'enumerated',\n values: ['month', 'year', 'day', 'hour', 'minute', 'second', 'all'],\n dflt: 'month',\n editType: 'plot',\n },\n stepmode: {\n valType: 'enumerated',\n values: ['backward', 'todate'],\n dflt: 'backward',\n editType: 'plot',\n },\n count: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n label: {\n valType: 'string',\n editType: 'plot',\n },\n editType: 'plot',\n});\n\nmodule.exports = {\n visible: {\n valType: 'boolean',\n editType: 'plot',\n },\n\n buttons: buttonAttrs,\n\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'plot',\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'left',\n editType: 'plot',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n editType: 'plot',\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'bottom',\n editType: 'plot',\n },\n\n font: fontAttrs({\n editType: 'plot',\n }),\n\n bgcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n editType: 'plot',\n },\n activecolor: {\n valType: 'color',\n editType: 'plot',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n editType: 'plot'\n};\n\n},{\"../../plot_api/plot_template\":555,\"../../plots/font_attributes\":594,\"../color/attributes\":366}],434:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n\n // 'y' position pad above counter axis domain\n yPad: 0.02,\n\n // minimum button width (regardless of text size)\n minButtonWidth: 30,\n\n // buttons rect radii\n rx: 3,\n ry: 3,\n\n // light fraction used to compute the 'activecolor' default\n lightAmount: 25,\n darkAmount: 10\n};\n\n},{}],435:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../color');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\n\n\nmodule.exports = function handleDefaults(containerIn, containerOut, layout, counterAxes, calendar) {\n var selectorIn = containerIn.rangeselector || {};\n var selectorOut = Template.newContainer(containerOut, 'rangeselector');\n\n function coerce(attr, dflt) {\n return Lib.coerce(selectorIn, selectorOut, attributes, attr, dflt);\n }\n\n var buttons = handleArrayContainerDefaults(selectorIn, selectorOut, {\n name: 'buttons',\n handleItemDefaults: buttonDefaults,\n calendar: calendar\n });\n\n var visible = coerce('visible', buttons.length > 0);\n if(visible) {\n var posDflt = getPosDflt(containerOut, layout, counterAxes);\n coerce('x', posDflt[0]);\n coerce('y', posDflt[1]);\n Lib.noneOrAll(containerIn, containerOut, ['x', 'y']);\n\n coerce('xanchor');\n coerce('yanchor');\n\n Lib.coerceFont(coerce, 'font', layout.font);\n\n var bgColor = coerce('bgcolor');\n coerce('activecolor', Color.contrast(bgColor, constants.lightAmount, constants.darkAmount));\n coerce('bordercolor');\n coerce('borderwidth');\n }\n};\n\nfunction buttonDefaults(buttonIn, buttonOut, selectorOut, opts) {\n var calendar = opts.calendar;\n\n function coerce(attr, dflt) {\n return Lib.coerce(buttonIn, buttonOut, attributes.buttons, attr, dflt);\n }\n\n var visible = coerce('visible');\n\n if(visible) {\n var step = coerce('step');\n if(step !== 'all') {\n if(calendar && calendar !== 'gregorian' && (step === 'month' || step === 'year')) {\n buttonOut.stepmode = 'backward';\n } else {\n coerce('stepmode');\n }\n\n coerce('count');\n }\n\n coerce('label');\n }\n}\n\nfunction getPosDflt(containerOut, layout, counterAxes) {\n var anchoredList = counterAxes.filter(function(ax) {\n return layout[ax].anchor === containerOut._id;\n });\n\n var posY = 0;\n for(var i = 0; i < anchoredList.length; i++) {\n var domain = layout[anchoredList[i]].domain;\n if(domain) posY = Math.max(domain[1], posY);\n }\n\n return [containerOut.domain[0], posY + constants.yPad];\n}\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../plots/array_container_defaults\":561,\"../color\":367,\"./attributes\":433,\"./constants\":434}],436:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nvar constants = _dereq_('./constants');\nvar getUpdateObject = _dereq_('./get_update_object');\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n\n var selectors = fullLayout._infolayer.selectAll('.rangeselector')\n .data(makeSelectorData(gd), selectorKeyFunc);\n\n selectors.enter().append('g')\n .classed('rangeselector', true);\n\n selectors.exit().remove();\n\n selectors.style({\n cursor: 'pointer',\n 'pointer-events': 'all'\n });\n\n selectors.each(function(d) {\n var selector = d3.select(this);\n var axisLayout = d;\n var selectorLayout = axisLayout.rangeselector;\n\n var buttons = selector.selectAll('g.button')\n .data(Lib.filterVisible(selectorLayout.buttons));\n\n buttons.enter().append('g')\n .classed('button', true);\n\n buttons.exit().remove();\n\n buttons.each(function(d) {\n var button = d3.select(this);\n var update = getUpdateObject(axisLayout, d);\n\n d._isActive = isActive(axisLayout, d, update);\n\n button.call(drawButtonRect, selectorLayout, d);\n button.call(drawButtonText, selectorLayout, d, gd);\n\n button.on('click', function() {\n if(gd._dragged) return;\n\n Registry.call('_guiRelayout', gd, update);\n });\n\n button.on('mouseover', function() {\n d._isHovered = true;\n button.call(drawButtonRect, selectorLayout, d);\n });\n\n button.on('mouseout', function() {\n d._isHovered = false;\n button.call(drawButtonRect, selectorLayout, d);\n });\n });\n\n reposition(gd, buttons, selectorLayout, axisLayout._name, selector);\n });\n};\n\nfunction makeSelectorData(gd) {\n var axes = axisIds.list(gd, 'x', true);\n var data = [];\n\n for(var i = 0; i < axes.length; i++) {\n var axis = axes[i];\n\n if(axis.rangeselector && axis.rangeselector.visible) {\n data.push(axis);\n }\n }\n\n return data;\n}\n\nfunction selectorKeyFunc(d) {\n return d._id;\n}\n\nfunction isActive(axisLayout, opts, update) {\n if(opts.step === 'all') {\n return axisLayout.autorange === true;\n } else {\n var keys = Object.keys(update);\n\n return (\n axisLayout.range[0] === update[keys[0]] &&\n axisLayout.range[1] === update[keys[1]]\n );\n }\n}\n\nfunction drawButtonRect(button, selectorLayout, d) {\n var rect = Lib.ensureSingle(button, 'rect', 'selector-rect', function(s) {\n s.attr('shape-rendering', 'crispEdges');\n });\n\n rect.attr({\n 'rx': constants.rx,\n 'ry': constants.ry\n });\n\n rect.call(Color.stroke, selectorLayout.bordercolor)\n .call(Color.fill, getFillColor(selectorLayout, d))\n .style('stroke-width', selectorLayout.borderwidth + 'px');\n}\n\nfunction getFillColor(selectorLayout, d) {\n return (d._isActive || d._isHovered) ?\n selectorLayout.activecolor :\n selectorLayout.bgcolor;\n}\n\nfunction drawButtonText(button, selectorLayout, d, gd) {\n function textLayout(s) {\n svgTextUtils.convertToTspans(s, gd);\n }\n\n var text = Lib.ensureSingle(button, 'text', 'selector-text', function(s) {\n s.attr('text-anchor', 'middle');\n });\n\n text.call(Drawing.font, selectorLayout.font)\n .text(getLabel(d, gd._fullLayout._meta))\n .call(textLayout);\n}\n\nfunction getLabel(opts, _meta) {\n if(opts.label) {\n return _meta ?\n Lib.templateString(opts.label, _meta) :\n opts.label;\n }\n\n if(opts.step === 'all') return 'all';\n\n return opts.count + opts.step.charAt(0);\n}\n\nfunction reposition(gd, buttons, opts, axName, selector) {\n var width = 0;\n var height = 0;\n\n var borderWidth = opts.borderwidth;\n\n buttons.each(function() {\n var button = d3.select(this);\n var text = button.select('.selector-text');\n\n var tHeight = opts.font.size * LINE_SPACING;\n var hEff = Math.max(tHeight * svgTextUtils.lineCount(text), 16) + 3;\n\n height = Math.max(height, hEff);\n });\n\n buttons.each(function() {\n var button = d3.select(this);\n var rect = button.select('.selector-rect');\n var text = button.select('.selector-text');\n\n var tWidth = text.node() && Drawing.bBox(text.node()).width;\n var tHeight = opts.font.size * LINE_SPACING;\n var tLines = svgTextUtils.lineCount(text);\n\n var wEff = Math.max(tWidth + 10, constants.minButtonWidth);\n\n // TODO add MathJax support\n\n // TODO add buttongap attribute\n\n button.attr('transform', strTranslate(borderWidth + width, borderWidth));\n\n rect.attr({\n x: 0,\n y: 0,\n width: wEff,\n height: height\n });\n\n svgTextUtils.positionText(text, wEff / 2,\n height / 2 - ((tLines - 1) * tHeight / 2) + 3);\n\n width += wEff + 5;\n });\n\n var graphSize = gd._fullLayout._size;\n var lx = graphSize.l + graphSize.w * opts.x;\n var ly = graphSize.t + graphSize.h * (1 - opts.y);\n\n var xanchor = 'left';\n if(Lib.isRightAnchor(opts)) {\n lx -= width;\n xanchor = 'right';\n }\n if(Lib.isCenterAnchor(opts)) {\n lx -= width / 2;\n xanchor = 'center';\n }\n\n var yanchor = 'top';\n if(Lib.isBottomAnchor(opts)) {\n ly -= height;\n yanchor = 'bottom';\n }\n if(Lib.isMiddleAnchor(opts)) {\n ly -= height / 2;\n yanchor = 'middle';\n }\n\n width = Math.ceil(width);\n height = Math.ceil(height);\n lx = Math.round(lx);\n ly = Math.round(ly);\n\n Plots.autoMargin(gd, axName + '-range-selector', {\n x: opts.x,\n y: opts.y,\n l: width * FROM_TL[xanchor],\n r: width * FROM_BR[xanchor],\n b: height * FROM_BR[yanchor],\n t: height * FROM_TL[yanchor]\n });\n\n selector.attr('transform', strTranslate(lx, ly));\n}\n\n},{\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axis_ids\":570,\"../../plots/plots\":628,\"../../registry\":647,\"../color\":367,\"../drawing\":389,\"./constants\":434,\"./get_update_object\":437,\"@plotly/d3\":58}],437:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Time = _dereq_('d3-time');\nvar titleCase = _dereq_('../../lib').titleCase;\n\nmodule.exports = function getUpdateObject(axisLayout, buttonLayout) {\n var axName = axisLayout._name;\n var update = {};\n\n if(buttonLayout.step === 'all') {\n update[axName + '.autorange'] = true;\n } else {\n var xrange = getXRange(axisLayout, buttonLayout);\n\n update[axName + '.range[0]'] = xrange[0];\n update[axName + '.range[1]'] = xrange[1];\n }\n\n return update;\n};\n\nfunction getXRange(axisLayout, buttonLayout) {\n var currentRange = axisLayout.range;\n var base = new Date(axisLayout.r2l(currentRange[1]));\n var step = buttonLayout.step;\n\n var utcStep = d3Time['utc' + titleCase(step)];\n\n var count = buttonLayout.count;\n var range0;\n\n switch(buttonLayout.stepmode) {\n case 'backward':\n range0 = axisLayout.l2r(+utcStep.offset(base, -count));\n break;\n\n case 'todate':\n var base2 = utcStep.offset(base, -count);\n\n range0 = axisLayout.l2r(+utcStep.ceil(base2));\n break;\n }\n\n var range1 = currentRange[1];\n\n return [range0, range1];\n}\n\n},{\"../../lib\":515,\"d3-time\":122}],438:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'component',\n name: 'rangeselector',\n\n schema: {\n subplots: {\n xaxis: {rangeselector: _dereq_('./attributes')}\n }\n },\n\n layoutAttributes: _dereq_('./attributes'),\n handleDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw')\n};\n\n},{\"./attributes\":433,\"./defaults\":435,\"./draw\":436}],439:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttributes = _dereq_('../color/attributes');\n\nmodule.exports = {\n bgcolor: {\n valType: 'color',\n dflt: colorAttributes.background,\n editType: 'plot',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttributes.defaultLine,\n editType: 'plot',\n },\n borderwidth: {\n valType: 'integer',\n dflt: 0,\n min: 0,\n editType: 'plot',\n },\n autorange: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n impliedEdits: {'range[0]': undefined, 'range[1]': undefined},\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'calc', impliedEdits: {'^autorange': false}},\n {valType: 'any', editType: 'calc', impliedEdits: {'^autorange': false}}\n ],\n editType: 'calc',\n impliedEdits: {'autorange': false},\n },\n thickness: {\n valType: 'number',\n dflt: 0.15,\n min: 0,\n max: 1,\n editType: 'plot',\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n editType: 'calc'\n};\n\n},{\"../color/attributes\":366}],440:[function(_dereq_,module,exports){\n'use strict';\n\nvar listAxes = _dereq_('../../plots/cartesian/axis_ids').list;\nvar getAutoRange = _dereq_('../../plots/cartesian/autorange').getAutoRange;\nvar constants = _dereq_('./constants');\n\nmodule.exports = function calcAutorange(gd) {\n var axes = listAxes(gd, 'x', true);\n\n // Compute new slider range using axis autorange if necessary.\n //\n // Copy back range to input range slider container to skip\n // this step in subsequent draw calls.\n\n for(var i = 0; i < axes.length; i++) {\n var ax = axes[i];\n var opts = ax[constants.name];\n\n if(opts && opts.visible && opts.autorange) {\n opts._input.autorange = true;\n opts._input.range = opts.range = getAutoRange(gd, ax);\n }\n }\n};\n\n},{\"../../plots/cartesian/autorange\":565,\"../../plots/cartesian/axis_ids\":570,\"./constants\":441}],441:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n\n // attribute container name\n name: 'rangeslider',\n\n // class names\n\n containerClassName: 'rangeslider-container',\n bgClassName: 'rangeslider-bg',\n rangePlotClassName: 'rangeslider-rangeplot',\n\n maskMinClassName: 'rangeslider-mask-min',\n maskMaxClassName: 'rangeslider-mask-max',\n slideBoxClassName: 'rangeslider-slidebox',\n\n grabberMinClassName: 'rangeslider-grabber-min',\n grabAreaMinClassName: 'rangeslider-grabarea-min',\n handleMinClassName: 'rangeslider-handle-min',\n\n grabberMaxClassName: 'rangeslider-grabber-max',\n grabAreaMaxClassName: 'rangeslider-grabarea-max',\n handleMaxClassName: 'rangeslider-handle-max',\n\n maskMinOppAxisClassName: 'rangeslider-mask-min-opp-axis',\n maskMaxOppAxisClassName: 'rangeslider-mask-max-opp-axis',\n\n // style constants\n\n maskColor: 'rgba(0,0,0,0.4)',\n maskOppAxisColor: 'rgba(0,0,0,0.2)',\n\n slideBoxFill: 'transparent',\n slideBoxCursor: 'ew-resize',\n\n grabAreaFill: 'transparent',\n grabAreaCursor: 'col-resize',\n grabAreaWidth: 10,\n\n handleWidth: 4,\n handleRadius: 1,\n handleStrokeWidth: 1,\n\n extraPad: 15\n};\n\n},{}],442:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\n\nvar attributes = _dereq_('./attributes');\nvar oppAxisAttrs = _dereq_('./oppaxis_attributes');\n\nmodule.exports = function handleDefaults(layoutIn, layoutOut, axName) {\n var axIn = layoutIn[axName];\n var axOut = layoutOut[axName];\n\n if(!(axIn.rangeslider || layoutOut._requestRangeslider[axOut._id])) return;\n\n // not super proud of this (maybe store _ in axis object instead\n if(!Lib.isPlainObject(axIn.rangeslider)) {\n axIn.rangeslider = {};\n }\n\n var containerIn = axIn.rangeslider;\n var containerOut = Template.newContainer(axOut, 'rangeslider');\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n var rangeContainerIn, rangeContainerOut;\n function coerceRange(attr, dflt) {\n return Lib.coerce(rangeContainerIn, rangeContainerOut, oppAxisAttrs, attr, dflt);\n }\n\n var visible = coerce('visible');\n if(!visible) return;\n\n coerce('bgcolor', layoutOut.plot_bgcolor);\n coerce('bordercolor');\n coerce('borderwidth');\n coerce('thickness');\n\n coerce('autorange', !axOut.isValidRange(containerIn.range));\n coerce('range');\n\n var subplots = layoutOut._subplots;\n if(subplots) {\n var yIds = subplots.cartesian\n .filter(function(subplotId) {\n return subplotId.substr(0, subplotId.indexOf('y')) === axisIds.name2id(axName);\n })\n .map(function(subplotId) {\n return subplotId.substr(subplotId.indexOf('y'), subplotId.length);\n });\n var yNames = Lib.simpleMap(yIds, axisIds.id2name);\n for(var i = 0; i < yNames.length; i++) {\n var yName = yNames[i];\n\n rangeContainerIn = containerIn[yName] || {};\n rangeContainerOut = Template.newContainer(containerOut, yName, 'yaxis');\n\n var yAxOut = layoutOut[yName];\n\n var rangemodeDflt;\n if(rangeContainerIn.range && yAxOut.isValidRange(rangeContainerIn.range)) {\n rangemodeDflt = 'fixed';\n }\n\n var rangeMode = coerceRange('rangemode', rangemodeDflt);\n if(rangeMode !== 'match') {\n coerceRange('range', yAxOut.range.slice());\n }\n }\n }\n\n // to map back range slider (auto) range\n containerOut._input = containerIn;\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/axis_ids\":570,\"./attributes\":439,\"./oppaxis_attributes\":446}],443:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Plots = _dereq_('../../plots/plots');\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar Titles = _dereq_('../titles');\n\nvar Cartesian = _dereq_('../../plots/cartesian');\nvar axisIDs = _dereq_('../../plots/cartesian/axis_ids');\n\nvar dragElement = _dereq_('../dragelement');\nvar setCursor = _dereq_('../../lib/setcursor');\n\nvar constants = _dereq_('./constants');\n\nmodule.exports = function(gd) {\n var fullLayout = gd._fullLayout;\n var rangeSliderData = fullLayout._rangeSliderData;\n for(var i = 0; i < rangeSliderData.length; i++) {\n var opts = rangeSliderData[i][constants.name];\n // fullLayout._uid may not exist when we call makeData\n opts._clipId = opts._id + '-' + fullLayout._uid;\n }\n\n /*\n * \n * \n * < .... range plot />\n * \n * \n * \n * \n * \n * \n * \n * \n * \n *\n * ...\n */\n\n function keyFunction(axisOpts) {\n return axisOpts._name;\n }\n\n var rangeSliders = fullLayout._infolayer\n .selectAll('g.' + constants.containerClassName)\n .data(rangeSliderData, keyFunction);\n\n // remove exiting sliders and their corresponding clip paths\n rangeSliders.exit().each(function(axisOpts) {\n var opts = axisOpts[constants.name];\n fullLayout._topdefs.select('#' + opts._clipId).remove();\n }).remove();\n\n // return early if no range slider is visible\n if(rangeSliderData.length === 0) return;\n\n rangeSliders.enter().append('g')\n .classed(constants.containerClassName, true)\n .attr('pointer-events', 'all');\n\n // for all present range sliders\n rangeSliders.each(function(axisOpts) {\n var rangeSlider = d3.select(this);\n var opts = axisOpts[constants.name];\n var oppAxisOpts = fullLayout[axisIDs.id2name(axisOpts.anchor)];\n var oppAxisRangeOpts = opts[axisIDs.id2name(axisOpts.anchor)];\n\n // update range\n // Expand slider range to the axis range\n if(opts.range) {\n var rng = Lib.simpleMap(opts.range, axisOpts.r2l);\n var axRng = Lib.simpleMap(axisOpts.range, axisOpts.r2l);\n var newRng;\n\n if(axRng[0] < axRng[1]) {\n newRng = [\n Math.min(rng[0], axRng[0]),\n Math.max(rng[1], axRng[1])\n ];\n } else {\n newRng = [\n Math.max(rng[0], axRng[0]),\n Math.min(rng[1], axRng[1])\n ];\n }\n\n opts.range = opts._input.range = Lib.simpleMap(newRng, axisOpts.l2r);\n }\n\n axisOpts.cleanRange('rangeslider.range');\n\n // update range slider dimensions\n\n var gs = fullLayout._size;\n var domain = axisOpts.domain;\n\n opts._width = gs.w * (domain[1] - domain[0]);\n\n var x = Math.round(gs.l + (gs.w * domain[0]));\n\n var y = Math.round(\n gs.t + gs.h * (1 - axisOpts._counterDomainMin) +\n (axisOpts.side === 'bottom' ? axisOpts._depth : 0) +\n opts._offsetShift + constants.extraPad\n );\n\n rangeSlider.attr('transform', strTranslate(x, y));\n\n // update data <--> pixel coordinate conversion methods\n\n opts._rl = Lib.simpleMap(opts.range, axisOpts.r2l);\n var rl0 = opts._rl[0];\n var rl1 = opts._rl[1];\n var drl = rl1 - rl0;\n\n opts.p2d = function(v) {\n return (v / opts._width) * drl + rl0;\n };\n\n opts.d2p = function(v) {\n return (v - rl0) / drl * opts._width;\n };\n\n if(axisOpts.rangebreaks) {\n var rsBreaks = axisOpts.locateBreaks(rl0, rl1);\n\n if(rsBreaks.length) {\n var j, brk;\n\n var lBreaks = 0;\n for(j = 0; j < rsBreaks.length; j++) {\n brk = rsBreaks[j];\n lBreaks += (brk.max - brk.min);\n }\n\n // TODO fix for reversed-range axes !!!\n\n // compute slope and piecewise offsets\n var m2 = opts._width / (rl1 - rl0 - lBreaks);\n var _B = [-m2 * rl0];\n for(j = 0; j < rsBreaks.length; j++) {\n brk = rsBreaks[j];\n _B.push(_B[_B.length - 1] - m2 * (brk.max - brk.min));\n }\n\n opts.d2p = function(v) {\n var b = _B[0];\n for(var j = 0; j < rsBreaks.length; j++) {\n var brk = rsBreaks[j];\n if(v >= brk.max) b = _B[j + 1];\n else if(v < brk.min) break;\n }\n return b + m2 * v;\n };\n\n // fill pixel (i.e. 'p') min/max here,\n // to not have to loop through the _rangebreaks twice during `p2d`\n for(j = 0; j < rsBreaks.length; j++) {\n brk = rsBreaks[j];\n brk.pmin = opts.d2p(brk.min);\n brk.pmax = opts.d2p(brk.max);\n }\n\n opts.p2d = function(v) {\n var b = _B[0];\n for(var j = 0; j < rsBreaks.length; j++) {\n var brk = rsBreaks[j];\n if(v >= brk.pmax) b = _B[j + 1];\n else if(v < brk.pmin) break;\n }\n return (v - b) / m2;\n };\n }\n }\n\n if(oppAxisRangeOpts.rangemode !== 'match') {\n var range0OppAxis = oppAxisOpts.r2l(oppAxisRangeOpts.range[0]);\n var range1OppAxis = oppAxisOpts.r2l(oppAxisRangeOpts.range[1]);\n var distOppAxis = range1OppAxis - range0OppAxis;\n\n opts.d2pOppAxis = function(v) {\n return (v - range0OppAxis) / distOppAxis * opts._height;\n };\n }\n\n // update inner nodes\n\n rangeSlider\n .call(drawBg, gd, axisOpts, opts)\n .call(addClipPath, gd, axisOpts, opts)\n .call(drawRangePlot, gd, axisOpts, opts)\n .call(drawMasks, gd, axisOpts, opts, oppAxisRangeOpts)\n .call(drawSlideBox, gd, axisOpts, opts)\n .call(drawGrabbers, gd, axisOpts, opts);\n\n // setup drag element\n setupDragElement(rangeSlider, gd, axisOpts, opts);\n\n // update current range\n setPixelRange(rangeSlider, gd, axisOpts, opts, oppAxisOpts, oppAxisRangeOpts);\n\n // title goes next to range slider instead of tick labels, so\n // just take it over and draw it from here\n if(axisOpts.side === 'bottom') {\n Titles.draw(gd, axisOpts._id + 'title', {\n propContainer: axisOpts,\n propName: axisOpts._name + '.title',\n placeholder: fullLayout._dfltTitle.x,\n attributes: {\n x: axisOpts._offset + axisOpts._length / 2,\n y: y + opts._height + opts._offsetShift + 10 + 1.5 * axisOpts.title.font.size,\n 'text-anchor': 'middle'\n }\n });\n }\n });\n};\n\nfunction setupDragElement(rangeSlider, gd, axisOpts, opts) {\n if(gd._context.staticPlot) return;\n\n var slideBox = rangeSlider.select('rect.' + constants.slideBoxClassName).node();\n var grabAreaMin = rangeSlider.select('rect.' + constants.grabAreaMinClassName).node();\n var grabAreaMax = rangeSlider.select('rect.' + constants.grabAreaMaxClassName).node();\n\n function mouseDownHandler() {\n var event = d3.event;\n var target = event.target;\n var startX = event.clientX || event.touches[0].clientX;\n var offsetX = startX - rangeSlider.node().getBoundingClientRect().left;\n var minVal = opts.d2p(axisOpts._rl[0]);\n var maxVal = opts.d2p(axisOpts._rl[1]);\n\n var dragCover = dragElement.coverSlip();\n\n this.addEventListener('touchmove', mouseMove);\n this.addEventListener('touchend', mouseUp);\n dragCover.addEventListener('mousemove', mouseMove);\n dragCover.addEventListener('mouseup', mouseUp);\n\n function mouseMove(e) {\n var clientX = e.clientX || e.touches[0].clientX;\n var delta = +clientX - startX;\n var pixelMin, pixelMax, cursor;\n\n switch(target) {\n case slideBox:\n cursor = 'ew-resize';\n pixelMin = minVal + delta;\n pixelMax = maxVal + delta;\n break;\n\n case grabAreaMin:\n cursor = 'col-resize';\n pixelMin = minVal + delta;\n pixelMax = maxVal;\n break;\n\n case grabAreaMax:\n cursor = 'col-resize';\n pixelMin = minVal;\n pixelMax = maxVal + delta;\n break;\n\n default:\n cursor = 'ew-resize';\n pixelMin = offsetX;\n pixelMax = offsetX + delta;\n break;\n }\n\n if(pixelMax < pixelMin) {\n var tmp = pixelMax;\n pixelMax = pixelMin;\n pixelMin = tmp;\n }\n\n opts._pixelMin = pixelMin;\n opts._pixelMax = pixelMax;\n\n setCursor(d3.select(dragCover), cursor);\n setDataRange(rangeSlider, gd, axisOpts, opts);\n }\n\n function mouseUp() {\n dragCover.removeEventListener('mousemove', mouseMove);\n dragCover.removeEventListener('mouseup', mouseUp);\n this.removeEventListener('touchmove', mouseMove);\n this.removeEventListener('touchend', mouseUp);\n Lib.removeElement(dragCover);\n }\n }\n\n rangeSlider.on('mousedown', mouseDownHandler);\n rangeSlider.on('touchstart', mouseDownHandler);\n}\n\nfunction setDataRange(rangeSlider, gd, axisOpts, opts) {\n function clamp(v) {\n return axisOpts.l2r(Lib.constrain(v, opts._rl[0], opts._rl[1]));\n }\n\n var dataMin = clamp(opts.p2d(opts._pixelMin));\n var dataMax = clamp(opts.p2d(opts._pixelMax));\n\n window.requestAnimationFrame(function() {\n Registry.call('_guiRelayout', gd, axisOpts._name + '.range', [dataMin, dataMax]);\n });\n}\n\nfunction setPixelRange(rangeSlider, gd, axisOpts, opts, oppAxisOpts, oppAxisRangeOpts) {\n var hw2 = constants.handleWidth / 2;\n\n function clamp(v) {\n return Lib.constrain(v, 0, opts._width);\n }\n\n function clampOppAxis(v) {\n return Lib.constrain(v, 0, opts._height);\n }\n\n function clampHandle(v) {\n return Lib.constrain(v, -hw2, opts._width + hw2);\n }\n\n var pixelMin = clamp(opts.d2p(axisOpts._rl[0]));\n var pixelMax = clamp(opts.d2p(axisOpts._rl[1]));\n\n rangeSlider.select('rect.' + constants.slideBoxClassName)\n .attr('x', pixelMin)\n .attr('width', pixelMax - pixelMin);\n\n rangeSlider.select('rect.' + constants.maskMinClassName)\n .attr('width', pixelMin);\n\n rangeSlider.select('rect.' + constants.maskMaxClassName)\n .attr('x', pixelMax)\n .attr('width', opts._width - pixelMax);\n\n if(oppAxisRangeOpts.rangemode !== 'match') {\n var pixelMinOppAxis = opts._height - clampOppAxis(opts.d2pOppAxis(oppAxisOpts._rl[1]));\n var pixelMaxOppAxis = opts._height - clampOppAxis(opts.d2pOppAxis(oppAxisOpts._rl[0]));\n\n rangeSlider.select('rect.' + constants.maskMinOppAxisClassName)\n .attr('x', pixelMin)\n .attr('height', pixelMinOppAxis)\n .attr('width', pixelMax - pixelMin);\n\n rangeSlider.select('rect.' + constants.maskMaxOppAxisClassName)\n .attr('x', pixelMin)\n .attr('y', pixelMaxOppAxis)\n .attr('height', opts._height - pixelMaxOppAxis)\n .attr('width', pixelMax - pixelMin);\n\n rangeSlider.select('rect.' + constants.slideBoxClassName)\n .attr('y', pixelMinOppAxis)\n .attr('height', pixelMaxOppAxis - pixelMinOppAxis);\n }\n\n // add offset for crispier corners\n // https://github.com/plotly/plotly.js/pull/1409\n var offset = 0.5;\n\n var xMin = Math.round(clampHandle(pixelMin - hw2)) - offset;\n var xMax = Math.round(clampHandle(pixelMax - hw2)) + offset;\n\n rangeSlider.select('g.' + constants.grabberMinClassName)\n .attr('transform', strTranslate(xMin, offset));\n\n rangeSlider.select('g.' + constants.grabberMaxClassName)\n .attr('transform', strTranslate(xMax, offset));\n}\n\nfunction drawBg(rangeSlider, gd, axisOpts, opts) {\n var bg = Lib.ensureSingle(rangeSlider, 'rect', constants.bgClassName, function(s) {\n s.attr({\n x: 0,\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n var borderCorrect = (opts.borderwidth % 2) === 0 ?\n opts.borderwidth :\n opts.borderwidth - 1;\n\n var offsetShift = -opts._offsetShift;\n var lw = Drawing.crispRound(gd, opts.borderwidth);\n\n bg.attr({\n width: opts._width + borderCorrect,\n height: opts._height + borderCorrect,\n transform: strTranslate(offsetShift, offsetShift),\n 'stroke-width': lw\n })\n .call(Color.stroke, opts.bordercolor)\n .call(Color.fill, opts.bgcolor);\n}\n\nfunction addClipPath(rangeSlider, gd, axisOpts, opts) {\n var fullLayout = gd._fullLayout;\n\n var clipPath = Lib.ensureSingleById(fullLayout._topdefs, 'clipPath', opts._clipId, function(s) {\n s.append('rect').attr({ x: 0, y: 0 });\n });\n\n clipPath.select('rect').attr({\n width: opts._width,\n height: opts._height\n });\n}\n\nfunction drawRangePlot(rangeSlider, gd, axisOpts, opts) {\n var calcData = gd.calcdata;\n\n var rangePlots = rangeSlider.selectAll('g.' + constants.rangePlotClassName)\n .data(axisOpts._subplotsWith, Lib.identity);\n\n rangePlots.enter().append('g')\n .attr('class', function(id) { return constants.rangePlotClassName + ' ' + id; })\n .call(Drawing.setClipUrl, opts._clipId, gd);\n\n rangePlots.order();\n\n rangePlots.exit().remove();\n\n var mainplotinfo;\n\n rangePlots.each(function(id, i) {\n var plotgroup = d3.select(this);\n var isMainPlot = (i === 0);\n\n var oppAxisOpts = axisIDs.getFromId(gd, id, 'y');\n var oppAxisName = oppAxisOpts._name;\n var oppAxisRangeOpts = opts[oppAxisName];\n\n var mockFigure = {\n data: [],\n layout: {\n xaxis: {\n type: axisOpts.type,\n domain: [0, 1],\n range: opts.range.slice(),\n calendar: axisOpts.calendar\n },\n width: opts._width,\n height: opts._height,\n margin: { t: 0, b: 0, l: 0, r: 0 }\n },\n _context: gd._context\n };\n\n if(axisOpts.rangebreaks) {\n mockFigure.layout.xaxis.rangebreaks = axisOpts.rangebreaks;\n }\n\n mockFigure.layout[oppAxisName] = {\n type: oppAxisOpts.type,\n domain: [0, 1],\n range: oppAxisRangeOpts.rangemode !== 'match' ? oppAxisRangeOpts.range.slice() : oppAxisOpts.range.slice(),\n calendar: oppAxisOpts.calendar\n };\n\n if(oppAxisOpts.rangebreaks) {\n mockFigure.layout[oppAxisName].rangebreaks = oppAxisOpts.rangebreaks;\n }\n\n Plots.supplyDefaults(mockFigure);\n\n var xa = mockFigure._fullLayout.xaxis;\n var ya = mockFigure._fullLayout[oppAxisName];\n\n xa.clearCalc();\n xa.setScale();\n ya.clearCalc();\n ya.setScale();\n\n var plotinfo = {\n id: id,\n plotgroup: plotgroup,\n xaxis: xa,\n yaxis: ya,\n isRangePlot: true\n };\n\n if(isMainPlot) mainplotinfo = plotinfo;\n else {\n plotinfo.mainplot = 'xy';\n plotinfo.mainplotinfo = mainplotinfo;\n }\n\n Cartesian.rangePlot(gd, plotinfo, filterRangePlotCalcData(calcData, id));\n });\n}\n\nfunction filterRangePlotCalcData(calcData, subplotId) {\n var out = [];\n\n for(var i = 0; i < calcData.length; i++) {\n var calcTrace = calcData[i];\n var trace = calcTrace[0].trace;\n\n if(trace.xaxis + trace.yaxis === subplotId) {\n out.push(calcTrace);\n }\n }\n\n return out;\n}\n\nfunction drawMasks(rangeSlider, gd, axisOpts, opts, oppAxisRangeOpts) {\n var maskMin = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMinClassName, function(s) {\n s.attr({\n x: 0,\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMin\n .attr('height', opts._height)\n .call(Color.fill, constants.maskColor);\n\n var maskMax = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMaxClassName, function(s) {\n s.attr({\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMax\n .attr('height', opts._height)\n .call(Color.fill, constants.maskColor);\n\n // masks used for oppAxis zoom\n if(oppAxisRangeOpts.rangemode !== 'match') {\n var maskMinOppAxis = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMinOppAxisClassName, function(s) {\n s.attr({\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMinOppAxis\n .attr('width', opts._width)\n .call(Color.fill, constants.maskOppAxisColor);\n\n var maskMaxOppAxis = Lib.ensureSingle(rangeSlider, 'rect', constants.maskMaxOppAxisClassName, function(s) {\n s.attr({\n y: 0,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n maskMaxOppAxis\n .attr('width', opts._width)\n .style('border-top', constants.maskOppBorder)\n .call(Color.fill, constants.maskOppAxisColor);\n }\n}\n\nfunction drawSlideBox(rangeSlider, gd, axisOpts, opts) {\n if(gd._context.staticPlot) return;\n\n var slideBox = Lib.ensureSingle(rangeSlider, 'rect', constants.slideBoxClassName, function(s) {\n s.attr({\n y: 0,\n cursor: constants.slideBoxCursor,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n slideBox.attr({\n height: opts._height,\n fill: constants.slideBoxFill\n });\n}\n\nfunction drawGrabbers(rangeSlider, gd, axisOpts, opts) {\n // \n var grabberMin = Lib.ensureSingle(rangeSlider, 'g', constants.grabberMinClassName);\n var grabberMax = Lib.ensureSingle(rangeSlider, 'g', constants.grabberMaxClassName);\n\n // \n var handleFixAttrs = {\n x: 0,\n width: constants.handleWidth,\n rx: constants.handleRadius,\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': constants.handleStrokeWidth,\n 'shape-rendering': 'crispEdges'\n };\n var handleDynamicAttrs = {\n y: Math.round(opts._height / 4),\n height: Math.round(opts._height / 2),\n };\n var handleMin = Lib.ensureSingle(grabberMin, 'rect', constants.handleMinClassName, function(s) {\n s.attr(handleFixAttrs);\n });\n handleMin.attr(handleDynamicAttrs);\n\n var handleMax = Lib.ensureSingle(grabberMax, 'rect', constants.handleMaxClassName, function(s) {\n s.attr(handleFixAttrs);\n });\n handleMax.attr(handleDynamicAttrs);\n\n // \n var grabAreaFixAttrs = {\n width: constants.grabAreaWidth,\n x: 0,\n y: 0,\n fill: constants.grabAreaFill,\n cursor: !gd._context.staticPlot ? constants.grabAreaCursor : undefined,\n };\n\n var grabAreaMin = Lib.ensureSingle(grabberMin, 'rect', constants.grabAreaMinClassName, function(s) {\n s.attr(grabAreaFixAttrs);\n });\n grabAreaMin.attr('height', opts._height);\n\n var grabAreaMax = Lib.ensureSingle(grabberMax, 'rect', constants.grabAreaMaxClassName, function(s) {\n s.attr(grabAreaFixAttrs);\n });\n grabAreaMax.attr('height', opts._height);\n}\n\n},{\"../../lib\":515,\"../../lib/setcursor\":536,\"../../plots/cartesian\":578,\"../../plots/cartesian/axis_ids\":570,\"../../plots/plots\":628,\"../../registry\":647,\"../color\":367,\"../dragelement\":386,\"../drawing\":389,\"../titles\":476,\"./constants\":441,\"@plotly/d3\":58}],444:[function(_dereq_,module,exports){\n'use strict';\n\nvar axisIDs = _dereq_('../../plots/cartesian/axis_ids');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar constants = _dereq_('./constants');\nvar LINE_SPACING = _dereq_('../../constants/alignment').LINE_SPACING;\nvar name = constants.name;\n\nfunction isVisible(ax) {\n var rangeSlider = ax && ax[name];\n return rangeSlider && rangeSlider.visible;\n}\nexports.isVisible = isVisible;\n\nexports.makeData = function(fullLayout) {\n var axes = axisIDs.list({ _fullLayout: fullLayout }, 'x', true);\n var margin = fullLayout.margin;\n var rangeSliderData = [];\n\n if(!fullLayout._has('gl2d')) {\n for(var i = 0; i < axes.length; i++) {\n var ax = axes[i];\n\n if(isVisible(ax)) {\n rangeSliderData.push(ax);\n\n var opts = ax[name];\n opts._id = name + ax._id;\n opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;\n opts._offsetShift = Math.floor(opts.borderwidth / 2);\n }\n }\n }\n\n fullLayout._rangeSliderData = rangeSliderData;\n};\n\nexports.autoMarginOpts = function(gd, ax) {\n var fullLayout = gd._fullLayout;\n var opts = ax[name];\n var axLetter = ax._id.charAt(0);\n\n var bottomDepth = 0;\n var titleHeight = 0;\n if(ax.side === 'bottom') {\n bottomDepth = ax._depth;\n if(ax.title.text !== fullLayout._dfltTitle[axLetter]) {\n // as in rangeslider/draw.js\n titleHeight = 1.5 * ax.title.font.size + 10 + opts._offsetShift;\n // multi-line extra bump\n var extraLines = (ax.title.text.match(svgTextUtils.BR_TAG_ALL) || []).length;\n titleHeight += extraLines * ax.title.font.size * LINE_SPACING;\n }\n }\n\n return {\n x: 0,\n y: ax._counterDomainMin,\n l: 0,\n r: 0,\n t: 0,\n b: opts._height + bottomDepth + Math.max(fullLayout.margin.b, titleHeight),\n pad: constants.extraPad + opts._offsetShift * 2\n };\n};\n\n},{\"../../constants/alignment\":483,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axis_ids\":570,\"./constants\":441}],445:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attrs = _dereq_('./attributes');\nvar oppAxisAttrs = _dereq_('./oppaxis_attributes');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'rangeslider',\n\n schema: {\n subplots: {\n xaxis: {\n rangeslider: Lib.extendFlat({}, attrs, {\n yaxis: oppAxisAttrs\n })\n }\n }\n },\n\n layoutAttributes: _dereq_('./attributes'),\n handleDefaults: _dereq_('./defaults'),\n calcAutorange: _dereq_('./calc_autorange'),\n draw: _dereq_('./draw'),\n isVisible: helpers.isVisible,\n makeData: helpers.makeData,\n autoMarginOpts: helpers.autoMarginOpts\n};\n\n},{\"../../lib\":515,\"./attributes\":439,\"./calc_autorange\":440,\"./defaults\":442,\"./draw\":443,\"./helpers\":444,\"./oppaxis_attributes\":446}],446:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // not really a 'subplot' attribute container,\n // but this is the flag we use to denote attributes that\n // support yaxis, yaxis2, yaxis3, ... counters\n _isSubplotObj: true,\n\n rangemode: {\n valType: 'enumerated',\n values: ['auto', 'fixed', 'match'],\n dflt: 'match',\n editType: 'calc',\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'plot'},\n {valType: 'any', editType: 'plot'}\n ],\n editType: 'plot',\n },\n editType: 'calc'\n};\n\n},{}],447:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../annotations/attributes');\nvar scatterLineAttrs = _dereq_('../../traces/scatter/attributes').line;\nvar dash = _dereq_('../drawing/attributes').dash;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\nmodule.exports = overrideAll(templatedArray('selection', {\n type: {\n valType: 'enumerated',\n values: ['rect', 'path'],\n },\n\n xref: extendFlat({}, annAttrs.xref, {\n }),\n\n yref: extendFlat({}, annAttrs.yref, {\n }),\n\n x0: {\n valType: 'any',\n },\n x1: {\n valType: 'any',\n },\n\n y0: {\n valType: 'any',\n },\n y1: {\n valType: 'any',\n },\n\n path: {\n valType: 'string',\n editType: 'arraydraw',\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.7,\n editType: 'arraydraw',\n },\n\n line: {\n color: scatterLineAttrs.color,\n width: extendFlat({}, scatterLineAttrs.width, {\n min: 1,\n dflt: 1\n }),\n dash: extendFlat({}, dash, {\n dflt: 'dot'\n })\n },\n}), 'arraydraw', 'from-root');\n\n},{\"../../constants/axis_placeable_objects\":484,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../../traces/scatter/attributes\":936,\"../annotations/attributes\":350,\"../drawing/attributes\":388}],448:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // max pixels off straight before a lasso select line counts as bent\n BENDPX: 1.5,\n\n // smallest dimension allowed for a select box\n MINSELECT: 12,\n\n // throttling limit (ms) for selectPoints calls\n SELECTDELAY: 100,\n\n // cache ID suffix for throttle\n SELECTID: '-select',\n};\n\n},{}],449:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar helpers = _dereq_('../shapes/helpers');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: 'selections',\n handleItemDefaults: handleSelectionDefaults\n });\n\n // Drop rect selections with undefined x0, y0, x1, x1 values.\n // In future we may accept partially defined rects e.g.\n // a case with only x0 and x1 may be used to define\n // [-Infinity, +Infinity] range on the y axis, etc.\n var selections = layoutOut.selections;\n for(var i = 0; i < selections.length; i++) {\n var selection = selections[i];\n if(!selection) continue;\n if(selection.path === undefined) {\n if(\n selection.x0 === undefined ||\n selection.x1 === undefined ||\n selection.y0 === undefined ||\n selection.y1 === undefined\n ) {\n layoutOut.selections[i] = null;\n }\n }\n }\n};\n\nfunction handleSelectionDefaults(selectionIn, selectionOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(selectionIn, selectionOut, attributes, attr, dflt);\n }\n\n var path = coerce('path');\n var dfltType = path ? 'path' : 'rect';\n var selectionType = coerce('type', dfltType);\n var noPath = selectionType !== 'path';\n if(noPath) delete selectionOut.path;\n\n coerce('opacity');\n coerce('line.color');\n coerce('line.width');\n coerce('line.dash');\n\n // positioning\n var axLetters = ['x', 'y'];\n for(var i = 0; i < 2; i++) {\n var axLetter = axLetters[i];\n var gdMock = {_fullLayout: fullLayout};\n var ax;\n var pos2r;\n var r2pos;\n\n // xref, yref\n var axRef = Axes.coerceRef(selectionIn, selectionOut, gdMock, axLetter);\n\n // axRefType is 'range' for selections\n ax = Axes.getFromId(gdMock, axRef);\n ax._selectionIndices.push(selectionOut._index);\n r2pos = helpers.rangeToShapePosition(ax);\n pos2r = helpers.shapePositionToRange(ax);\n\n // Coerce x0, x1, y0, y1\n if(noPath) {\n // hack until V3.0 when log has regular range behavior - make it look like other\n // ranges to send to coerce, then put it back after\n // this is all to give reasonable default position behavior on log axes, which is\n // a pretty unimportant edge case so we could just ignore this.\n var attr0 = axLetter + '0';\n var attr1 = axLetter + '1';\n var in0 = selectionIn[attr0];\n var in1 = selectionIn[attr1];\n selectionIn[attr0] = pos2r(selectionIn[attr0], true);\n selectionIn[attr1] = pos2r(selectionIn[attr1], true);\n\n Axes.coercePosition(selectionOut, gdMock, coerce, axRef, attr0);\n Axes.coercePosition(selectionOut, gdMock, coerce, axRef, attr1);\n\n var p0 = selectionOut[attr0];\n var p1 = selectionOut[attr1];\n\n if(p0 !== undefined && p1 !== undefined) {\n // hack part 2\n selectionOut[attr0] = r2pos(p0);\n selectionOut[attr1] = r2pos(p1);\n selectionIn[attr0] = in0;\n selectionIn[attr1] = in1;\n }\n }\n }\n\n if(noPath) {\n Lib.noneOrAll(selectionIn, selectionOut, ['x0', 'x1', 'y0', 'y1']);\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/axes\":566,\"../shapes/helpers\":469,\"./attributes\":447}],450:[function(_dereq_,module,exports){\n'use strict';\n\nvar readPaths = _dereq_('../shapes/draw_newshape/helpers').readPaths;\nvar displayOutlines = _dereq_('../shapes/display_outlines');\n\nvar clearOutlineControllers = _dereq_('../shapes/handle_outline').clearOutlineControllers;\n\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar helpers = _dereq_('../shapes/helpers');\nvar getPathString = helpers.getPathString;\n\n\n// Selections are stored in gd.layout.selections, an array of objects\n// index can point to one item in this array,\n// or non-numeric to simply add a new one\n// or -1 to modify all existing\n// opt can be the full options object, or one key (to be set to value)\n// or undefined to simply redraw\n// if opt is blank, val can be 'add' or a full options object to add a new\n// annotation at that point in the array, or 'remove' to delete this one\n\nmodule.exports = {\n draw: draw,\n drawOne: drawOne,\n activateLastSelection: activateLastSelection\n};\n\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n clearOutlineControllers(gd);\n\n // Remove previous selections before drawing new selections in fullLayout.selections\n fullLayout._selectionLayer.selectAll('path').remove();\n\n for(var k in fullLayout._plots) {\n var selectionLayer = fullLayout._plots[k].selectionLayer;\n if(selectionLayer) selectionLayer.selectAll('path').remove();\n }\n\n for(var i = 0; i < fullLayout.selections.length; i++) {\n drawOne(gd, i);\n }\n}\n\nfunction couldHaveActiveSelection(gd) {\n return gd._context.editSelection;\n}\n\nfunction drawOne(gd, index) {\n // remove the existing selection if there is one.\n // because indices can change, we need to look in all selection layers\n gd._fullLayout._paperdiv\n .selectAll('.selectionlayer [data-index=\"' + index + '\"]')\n .remove();\n\n var o = helpers.makeSelectionsOptionsAndPlotinfo(gd, index);\n var options = o.options;\n var plotinfo = o.plotinfo;\n\n // this selection is gone - quit now after deleting it\n // TODO: use d3 idioms instead of deleting and redrawing every time\n if(!options._input) return;\n\n drawSelection(gd._fullLayout._selectionLayer);\n\n function drawSelection(selectionLayer) {\n var d = getPathString(gd, options);\n var attrs = {\n 'data-index': index,\n 'fill-rule': 'evenodd',\n d: d\n };\n\n var opacity = options.opacity;\n var fillColor = 'rgba(0,0,0,0)';\n var lineColor = options.line.color || Color.contrast(gd._fullLayout.plot_bgcolor);\n var lineWidth = options.line.width;\n var lineDash = options.line.dash;\n if(!lineWidth) {\n // ensure invisible border to activate the selection\n lineWidth = 5;\n lineDash = 'solid';\n }\n\n var isActiveSelection = couldHaveActiveSelection(gd) &&\n gd._fullLayout._activeSelectionIndex === index;\n\n if(isActiveSelection) {\n fillColor = gd._fullLayout.activeselection.fillcolor;\n opacity = gd._fullLayout.activeselection.opacity;\n }\n\n var allPaths = [];\n for(var sensory = 1; sensory >= 0; sensory--) {\n var path = selectionLayer.append('path')\n .attr(attrs)\n .style('opacity', sensory ? 0.1 : opacity)\n .call(Color.stroke, lineColor)\n .call(Color.fill, fillColor)\n // make it easier to select senory background path\n .call(Drawing.dashLine,\n sensory ? 'solid' : lineDash,\n sensory ? 4 + lineWidth : lineWidth\n );\n\n setClipPath(path, gd, options);\n\n if(isActiveSelection) {\n var editHelpers = arrayEditor(gd.layout, 'selections', options);\n\n path.style({\n 'cursor': 'move',\n });\n\n var dragOptions = {\n element: path.node(),\n plotinfo: plotinfo,\n gd: gd,\n editHelpers: editHelpers,\n isActiveSelection: true // i.e. to enable controllers\n };\n\n var polygons = readPaths(d, gd);\n // display polygons on the screen\n displayOutlines(polygons, path, dragOptions);\n } else {\n path.style('pointer-events', sensory ? 'all' : 'none');\n }\n\n allPaths[sensory] = path;\n }\n\n var forePath = allPaths[0];\n var backPath = allPaths[1];\n\n backPath.node().addEventListener('click', function() { return activateSelection(gd, forePath); });\n }\n}\n\nfunction setClipPath(selectionPath, gd, selectionOptions) {\n var clipAxes = selectionOptions.xref + selectionOptions.yref;\n\n Drawing.setClipUrl(\n selectionPath,\n 'clip' + gd._fullLayout._uid + clipAxes,\n gd\n );\n}\n\n\nfunction activateSelection(gd, path) {\n if(!couldHaveActiveSelection(gd)) return;\n\n var element = path.node();\n var id = +element.getAttribute('data-index');\n if(id >= 0) {\n // deactivate if already active\n if(id === gd._fullLayout._activeSelectionIndex) {\n deactivateSelection(gd);\n return;\n }\n\n gd._fullLayout._activeSelectionIndex = id;\n gd._fullLayout._deactivateSelection = deactivateSelection;\n draw(gd);\n }\n}\n\nfunction activateLastSelection(gd) {\n if(!couldHaveActiveSelection(gd)) return;\n\n var id = gd._fullLayout.selections.length - 1;\n gd._fullLayout._activeSelectionIndex = id;\n gd._fullLayout._deactivateSelection = deactivateSelection;\n draw(gd);\n}\n\nfunction deactivateSelection(gd) {\n if(!couldHaveActiveSelection(gd)) return;\n\n var id = gd._fullLayout._activeSelectionIndex;\n if(id >= 0) {\n clearOutlineControllers(gd);\n delete gd._fullLayout._activeSelectionIndex;\n draw(gd);\n }\n}\n\n},{\"../../plot_api/plot_template\":555,\"../color\":367,\"../drawing\":389,\"../shapes/display_outlines\":461,\"../shapes/draw_newshape/helpers\":466,\"../shapes/handle_outline\":468,\"../shapes/helpers\":469}],451:[function(_dereq_,module,exports){\n'use strict';\n\nvar dash = _dereq_('../../drawing/attributes').dash;\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\n\nmodule.exports = {\n newselection: {\n mode: {\n valType: 'enumerated',\n values: ['immediate', 'gradual'],\n dflt: 'immediate',\n editType: 'none',\n },\n\n line: {\n color: {\n valType: 'color',\n editType: 'none',\n },\n width: {\n valType: 'number',\n min: 1,\n dflt: 1,\n editType: 'none',\n },\n dash: extendFlat({}, dash, {\n dflt: 'dot',\n editType: 'none'\n }),\n editType: 'none'\n },\n\n // no drawdirection here noting that layout.selectdirection is used instead.\n\n editType: 'none'\n },\n\n activeselection: {\n fillcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'none',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'none',\n },\n editType: 'none'\n }\n};\n\n},{\"../../../lib/extend\":505,\"../../drawing/attributes\":388}],452:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function supplyDrawNewSelectionDefaults(layoutIn, layoutOut, coerce) {\n coerce('newselection.mode');\n\n var newselectionLineWidth = coerce('newselection.line.width');\n if(newselectionLineWidth) {\n coerce('newselection.line.color');\n coerce('newselection.line.dash');\n }\n\n coerce('activeselection.fillcolor');\n coerce('activeselection.opacity');\n};\n\n},{}],453:[function(_dereq_,module,exports){\n'use strict';\n\nvar dragHelpers = _dereq_('../../dragelement/helpers');\nvar selectMode = dragHelpers.selectMode;\n\nvar handleOutline = _dereq_('../../shapes/handle_outline');\nvar clearOutline = handleOutline.clearOutline;\n\nvar helpers = _dereq_('../../shapes/draw_newshape/helpers');\nvar readPaths = helpers.readPaths;\nvar writePaths = helpers.writePaths;\nvar fixDatesForPaths = helpers.fixDatesForPaths;\n\nmodule.exports = function newSelections(outlines, dragOptions) {\n if(!outlines.length) return;\n var e = outlines[0][0]; // pick first\n if(!e) return;\n var d = e.getAttribute('d');\n\n var gd = dragOptions.gd;\n var newStyle = gd._fullLayout.newselection;\n\n var plotinfo = dragOptions.plotinfo;\n var xaxis = plotinfo.xaxis;\n var yaxis = plotinfo.yaxis;\n\n var isActiveSelection = dragOptions.isActiveSelection;\n var dragmode = dragOptions.dragmode;\n\n var selections = (gd.layout || {}).selections || [];\n\n if(!selectMode(dragmode) && isActiveSelection !== undefined) {\n var id = gd._fullLayout._activeSelectionIndex;\n if(id < selections.length) {\n switch(gd._fullLayout.selections[id].type) {\n case 'rect':\n dragmode = 'select';\n break;\n case 'path':\n dragmode = 'lasso';\n break;\n }\n }\n }\n\n var polygons = readPaths(d, gd, plotinfo, isActiveSelection);\n\n var newSelection = {\n xref: xaxis._id,\n yref: yaxis._id,\n\n opacity: newStyle.opacity,\n line: {\n color: newStyle.line.color,\n width: newStyle.line.width,\n dash: newStyle.line.dash\n }\n };\n\n var cell;\n // rect can be in one cell\n // only define cell if there is single cell\n if(polygons.length === 1) cell = polygons[0];\n\n if(\n cell &&\n cell.length === 5 && // ensure we only have 4 corners for a rect\n dragmode === 'select'\n ) {\n newSelection.type = 'rect';\n newSelection.x0 = cell[0][1];\n newSelection.y0 = cell[0][2];\n newSelection.x1 = cell[2][1];\n newSelection.y1 = cell[2][2];\n } else {\n newSelection.type = 'path';\n if(xaxis && yaxis) fixDatesForPaths(polygons, xaxis, yaxis);\n newSelection.path = writePaths(polygons);\n cell = null;\n }\n\n clearOutline(gd);\n\n var editHelpers = dragOptions.editHelpers;\n var modifyItem = (editHelpers || {}).modifyItem;\n\n var allSelections = [];\n for(var q = 0; q < selections.length; q++) {\n var beforeEdit = gd._fullLayout.selections[q];\n if(!beforeEdit) {\n allSelections[q] = beforeEdit;\n continue;\n }\n\n allSelections[q] = beforeEdit._input;\n\n if(\n isActiveSelection !== undefined &&\n q === gd._fullLayout._activeSelectionIndex\n ) {\n var afterEdit = newSelection;\n\n switch(beforeEdit.type) {\n case 'rect':\n modifyItem('x0', afterEdit.x0);\n modifyItem('x1', afterEdit.x1);\n modifyItem('y0', afterEdit.y0);\n modifyItem('y1', afterEdit.y1);\n break;\n\n case 'path':\n modifyItem('path', afterEdit.path);\n break;\n }\n }\n }\n\n if(isActiveSelection === undefined) {\n allSelections.push(newSelection); // add new selection\n return allSelections;\n }\n\n return editHelpers ? editHelpers.getUpdateObj() : {};\n};\n\n},{\"../../dragelement/helpers\":385,\"../../shapes/draw_newshape/helpers\":466,\"../../shapes/handle_outline\":468}],454:[function(_dereq_,module,exports){\n'use strict';\n\nvar strTranslate = _dereq_('../../lib').strTranslate;\n\n// in v3 (once log ranges are fixed),\n// we'll be able to p2r here for all axis types\nfunction p2r(ax, v) {\n switch(ax.type) {\n case 'log':\n return ax.p2d(v);\n case 'date':\n return ax.p2r(v, 0, ax.calendar);\n default:\n return ax.p2r(v);\n }\n}\n\nfunction r2p(ax, v) {\n switch(ax.type) {\n case 'log':\n return ax.d2p(v);\n case 'date':\n return ax.r2p(v, 0, ax.calendar);\n default:\n return ax.r2p(v);\n }\n}\n\nfunction axValue(ax) {\n var index = (ax._id.charAt(0) === 'y') ? 1 : 0;\n return function(v) { return p2r(ax, v[index]); };\n}\n\nfunction getTransform(plotinfo) {\n return strTranslate(\n plotinfo.xaxis._offset,\n plotinfo.yaxis._offset\n );\n}\n\nmodule.exports = {\n p2r: p2r,\n r2p: r2p,\n axValue: axValue,\n getTransform: getTransform\n};\n\n},{\"../../lib\":515}],455:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawModule = _dereq_('./draw');\nvar select = _dereq_('./select');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'selections',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n supplyDrawNewSelectionDefaults: _dereq_('./draw_newselection/defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('selections'),\n\n draw: drawModule.draw,\n drawOne: drawModule.drawOne,\n\n reselect: select.reselect,\n prepSelect: select.prepSelect,\n clearOutline: select.clearOutline,\n clearSelectionsCache: select.clearSelectionsCache,\n selectOnClick: select.selectOnClick\n};\n\n},{\"../../plots/cartesian/include_components\":577,\"./attributes\":447,\"./defaults\":449,\"./draw\":450,\"./draw_newselection/defaults\":452,\"./select\":456}],456:[function(_dereq_,module,exports){\n'use strict';\n\nvar polybool = _dereq_('polybooljs');\nvar pointInPolygon = _dereq_('point-in-polygon/nested'); // could we use contains lib/polygon instead?\n\nvar Registry = _dereq_('../../registry');\nvar dashStyle = _dereq_('../drawing').dashStyle;\nvar Color = _dereq_('../color');\nvar Fx = _dereq_('../fx');\nvar makeEventData = _dereq_('../fx/helpers').makeEventData;\nvar dragHelpers = _dereq_('../dragelement/helpers');\nvar freeMode = dragHelpers.freeMode;\nvar rectMode = dragHelpers.rectMode;\nvar drawMode = dragHelpers.drawMode;\nvar openMode = dragHelpers.openMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar shapeHelpers = _dereq_('../shapes/helpers');\nvar shapeConstants = _dereq_('../shapes/constants');\n\nvar displayOutlines = _dereq_('../shapes/display_outlines');\nvar clearOutline = _dereq_('../shapes/handle_outline').clearOutline;\n\nvar newShapeHelpers = _dereq_('../shapes/draw_newshape/helpers');\nvar handleEllipse = newShapeHelpers.handleEllipse;\nvar readPaths = newShapeHelpers.readPaths;\n\nvar newShapes = _dereq_('../shapes/draw_newshape/newshapes');\n\nvar newSelections = _dereq_('./draw_newselection/newselections');\nvar activateLastSelection = _dereq_('./draw').activateLastSelection;\n\nvar Lib = _dereq_('../../lib');\nvar ascending = Lib.sorterAsc;\nvar libPolygon = _dereq_('../../lib/polygon');\nvar throttle = _dereq_('../../lib/throttle');\nvar getFromId = _dereq_('../../plots/cartesian/axis_ids').getFromId;\nvar clearGlCanvases = _dereq_('../../lib/clear_gl_canvases');\n\nvar redrawReglTraces = _dereq_('../../plot_api/subroutines').redrawReglTraces;\n\nvar constants = _dereq_('./constants');\nvar MINSELECT = constants.MINSELECT;\n\nvar filteredPolygon = libPolygon.filter;\nvar polygonTester = libPolygon.tester;\n\nvar helpers = _dereq_('./helpers');\nvar p2r = helpers.p2r;\nvar axValue = helpers.axValue;\nvar getTransform = helpers.getTransform;\n\nfunction hasSubplot(dragOptions) {\n // N.B. subplot may be falsy e.g zero sankey index!\n return dragOptions.subplot !== undefined;\n}\n\nfunction prepSelect(evt, startX, startY, dragOptions, mode) {\n var isCartesian = !hasSubplot(dragOptions);\n\n var isFreeMode = freeMode(mode);\n var isRectMode = rectMode(mode);\n var isOpenMode = openMode(mode);\n var isDrawMode = drawMode(mode);\n var isSelectMode = selectMode(mode);\n\n var isLine = mode === 'drawline';\n var isEllipse = mode === 'drawcircle';\n var isLineOrEllipse = isLine || isEllipse; // cases with two start & end positions\n\n var gd = dragOptions.gd;\n var fullLayout = gd._fullLayout;\n var immediateSelect = isSelectMode && fullLayout.newselection.mode === 'immediate' &&\n isCartesian; // N.B. only cartesian subplots have persistent selection\n\n var zoomLayer = fullLayout._zoomlayer;\n var dragBBox = dragOptions.element.getBoundingClientRect();\n var plotinfo = dragOptions.plotinfo;\n var transform = getTransform(plotinfo);\n var x0 = startX - dragBBox.left;\n var y0 = startY - dragBBox.top;\n\n fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n var scaleX = fullLayout._invScaleX;\n var scaleY = fullLayout._invScaleY;\n\n var x1 = x0;\n var y1 = y0;\n var path0 = 'M' + x0 + ',' + y0;\n var xAxis = dragOptions.xaxes[0];\n var yAxis = dragOptions.yaxes[0];\n var pw = xAxis._length;\n var ph = yAxis._length;\n\n var subtract = evt.altKey &&\n !(drawMode(mode) && isOpenMode);\n\n var filterPoly, selectionTesters, mergedPolygons, currentPolygon;\n var i, searchInfo, eventData;\n\n coerceSelectionsCache(evt, gd, dragOptions);\n\n if(isFreeMode) {\n filterPoly = filteredPolygon([[x0, y0]], constants.BENDPX);\n }\n\n var outlines = zoomLayer.selectAll('path.select-outline-' + plotinfo.id).data([1]);\n var newStyle = isDrawMode ?\n fullLayout.newshape :\n fullLayout.newselection;\n\n var fillC = (isDrawMode && !isOpenMode) ? newStyle.fillcolor : 'rgba(0,0,0,0)';\n\n var strokeC = newStyle.line.color || (\n isCartesian ?\n Color.contrast(gd._fullLayout.plot_bgcolor) :\n '#7f7f7f' // non-cartesian subplot\n );\n\n outlines.enter()\n .append('path')\n .attr('class', 'select-outline select-outline-' + plotinfo.id)\n .style({\n opacity: isDrawMode ? newStyle.opacity / 2 : 1,\n 'stroke-dasharray': dashStyle(newStyle.line.dash, newStyle.line.width),\n 'stroke-width': newStyle.line.width + 'px',\n 'shape-rendering': 'crispEdges'\n })\n .call(Color.stroke, strokeC)\n .call(Color.fill, fillC)\n .attr('fill-rule', 'evenodd')\n .classed('cursor-move', isDrawMode ? true : false)\n .attr('transform', transform)\n .attr('d', path0 + 'Z');\n\n var corners = zoomLayer.append('path')\n .attr('class', 'zoombox-corners')\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1\n })\n .attr('transform', transform)\n .attr('d', 'M0,0Z');\n\n\n var throttleID = fullLayout._uid + constants.SELECTID;\n var selection = [];\n\n // find the traces to search for selection points\n var searchTraces = determineSearchTraces(gd, dragOptions.xaxes,\n dragOptions.yaxes, dragOptions.subplot);\n\n if(immediateSelect && !evt.shiftKey) {\n dragOptions._clearSubplotSelections = function() {\n if(!isCartesian) return;\n\n var xRef = xAxis._id;\n var yRef = yAxis._id;\n deselectSubplot(gd, xRef, yRef, searchTraces);\n\n var selections = (gd.layout || {}).selections || [];\n var list = [];\n var selectionErased = false;\n for(var q = 0; q < selections.length; q++) {\n var s = fullLayout.selections[q];\n if(\n s.xref !== xRef ||\n s.yref !== yRef\n ) {\n list.push(selections[q]);\n } else {\n selectionErased = true;\n }\n }\n\n if(selectionErased) {\n gd._fullLayout._noEmitSelectedAtStart = true;\n\n Registry.call('_guiRelayout', gd, {\n selections: list\n });\n }\n };\n }\n\n var fillRangeItems = getFillRangeItems(dragOptions);\n\n dragOptions.moveFn = function(dx0, dy0) {\n if(dragOptions._clearSubplotSelections) {\n dragOptions._clearSubplotSelections();\n dragOptions._clearSubplotSelections = undefined;\n }\n\n x1 = Math.max(0, Math.min(pw, scaleX * dx0 + x0));\n y1 = Math.max(0, Math.min(ph, scaleY * dy0 + y0));\n\n var dx = Math.abs(x1 - x0);\n var dy = Math.abs(y1 - y0);\n\n if(isRectMode) {\n var direction;\n var start, end;\n\n if(isSelectMode) {\n var q = fullLayout.selectdirection;\n\n if(q === 'any') {\n if(dy < Math.min(dx * 0.6, MINSELECT)) {\n direction = 'h';\n } else if(dx < Math.min(dy * 0.6, MINSELECT)) {\n direction = 'v';\n } else {\n direction = 'd';\n }\n } else {\n direction = q;\n }\n\n switch(direction) {\n case 'h':\n start = isEllipse ? ph / 2 : 0;\n end = ph;\n break;\n case 'v':\n start = isEllipse ? pw / 2 : 0;\n end = pw;\n break;\n }\n }\n\n if(isDrawMode) {\n switch(fullLayout.newshape.drawdirection) {\n case 'vertical':\n direction = 'h';\n start = isEllipse ? ph / 2 : 0;\n end = ph;\n break;\n case 'horizontal':\n direction = 'v';\n start = isEllipse ? pw / 2 : 0;\n end = pw;\n break;\n case 'ortho':\n if(dx < dy) {\n direction = 'h';\n start = y0;\n end = y1;\n } else {\n direction = 'v';\n start = x0;\n end = x1;\n }\n break;\n default: // i.e. case of 'diagonal'\n direction = 'd';\n }\n }\n\n if(direction === 'h') {\n // horizontal motion\n currentPolygon = isLineOrEllipse ?\n handleEllipse(isEllipse, [x1, start], [x1, end]) : // using x1 instead of x0 allows adjusting the line while drawing\n [[x0, start], [x0, end], [x1, end], [x1, start]]; // make a vertical box\n\n currentPolygon.xmin = isLineOrEllipse ? x1 : Math.min(x0, x1);\n currentPolygon.xmax = isLineOrEllipse ? x1 : Math.max(x0, x1);\n currentPolygon.ymin = Math.min(start, end);\n currentPolygon.ymax = Math.max(start, end);\n // extras to guide users in keeping a straight selection\n corners.attr('d', 'M' + currentPolygon.xmin + ',' + (y0 - MINSELECT) +\n 'h-4v' + (2 * MINSELECT) + 'h4Z' +\n 'M' + (currentPolygon.xmax - 1) + ',' + (y0 - MINSELECT) +\n 'h4v' + (2 * MINSELECT) + 'h-4Z');\n } else if(direction === 'v') {\n // vertical motion\n currentPolygon = isLineOrEllipse ?\n handleEllipse(isEllipse, [start, y1], [end, y1]) : // using y1 instead of y0 allows adjusting the line while drawing\n [[start, y0], [start, y1], [end, y1], [end, y0]]; // make a horizontal box\n\n currentPolygon.xmin = Math.min(start, end);\n currentPolygon.xmax = Math.max(start, end);\n currentPolygon.ymin = isLineOrEllipse ? y1 : Math.min(y0, y1);\n currentPolygon.ymax = isLineOrEllipse ? y1 : Math.max(y0, y1);\n corners.attr('d', 'M' + (x0 - MINSELECT) + ',' + currentPolygon.ymin +\n 'v-4h' + (2 * MINSELECT) + 'v4Z' +\n 'M' + (x0 - MINSELECT) + ',' + (currentPolygon.ymax - 1) +\n 'v4h' + (2 * MINSELECT) + 'v-4Z');\n } else if(direction === 'd') {\n // diagonal motion\n currentPolygon = isLineOrEllipse ?\n handleEllipse(isEllipse, [x0, y0], [x1, y1]) :\n [[x0, y0], [x0, y1], [x1, y1], [x1, y0]];\n\n currentPolygon.xmin = Math.min(x0, x1);\n currentPolygon.xmax = Math.max(x0, x1);\n currentPolygon.ymin = Math.min(y0, y1);\n currentPolygon.ymax = Math.max(y0, y1);\n corners.attr('d', 'M0,0Z');\n }\n } else if(isFreeMode) {\n filterPoly.addPt([x1, y1]);\n currentPolygon = filterPoly.filtered;\n }\n\n // create outline & tester\n if(dragOptions.selectionDefs && dragOptions.selectionDefs.length) {\n mergedPolygons = mergePolygons(dragOptions.mergedPolygons, currentPolygon, subtract);\n\n currentPolygon.subtract = subtract;\n selectionTesters = multiTester(dragOptions.selectionDefs.concat([currentPolygon]));\n } else {\n mergedPolygons = [currentPolygon];\n selectionTesters = polygonTester(currentPolygon);\n }\n\n // display polygons on the screen\n displayOutlines(convertPoly(mergedPolygons, isOpenMode), outlines, dragOptions);\n\n if(isSelectMode) {\n var _res = reselect(gd, false);\n var extraPoints = _res.eventData ? _res.eventData.points.slice() : [];\n\n _res = reselect(gd, false, selectionTesters, searchTraces, dragOptions);\n selectionTesters = _res.selectionTesters;\n eventData = _res.eventData;\n\n var poly;\n if(filterPoly) {\n poly = filterPoly.filtered;\n } else {\n poly = castMultiPolygon(mergedPolygons);\n }\n\n throttle.throttle(\n throttleID,\n constants.SELECTDELAY,\n function() {\n selection = _doSelect(selectionTesters, searchTraces);\n\n var newPoints = selection.slice();\n\n for(var w = 0; w < extraPoints.length; w++) {\n var p = extraPoints[w];\n var found = false;\n for(var u = 0; u < newPoints.length; u++) {\n if(\n newPoints[u].curveNumber === p.curveNumber &&\n newPoints[u].pointNumber === p.pointNumber\n ) {\n found = true;\n break;\n }\n }\n if(!found) newPoints.push(p);\n }\n\n if(newPoints.length) {\n if(!eventData) eventData = {};\n eventData.points = newPoints;\n }\n\n fillRangeItems(eventData, poly);\n\n emitSelecting(gd, eventData);\n }\n );\n }\n };\n\n dragOptions.clickFn = function(numClicks, evt) {\n corners.remove();\n\n if(gd._fullLayout._activeShapeIndex >= 0) {\n gd._fullLayout._deactivateShape(gd);\n return;\n }\n if(isDrawMode) return;\n\n var clickmode = fullLayout.clickmode;\n\n throttle.done(throttleID).then(function() {\n throttle.clear(throttleID);\n if(numClicks === 2) {\n // clear selection on doubleclick\n outlines.remove();\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n searchInfo._module.selectPoints(searchInfo, false);\n }\n\n updateSelectedState(gd, searchTraces);\n\n clearSelectionsCache(dragOptions);\n\n emitDeselect(gd);\n\n if(searchTraces.length) {\n var clickedXaxis = searchTraces[0].xaxis;\n var clickedYaxis = searchTraces[0].yaxis;\n\n if(clickedXaxis && clickedYaxis) {\n // drop selections in the clicked subplot\n var subSelections = [];\n var allSelections = gd._fullLayout.selections;\n for(var k = 0; k < allSelections.length; k++) {\n var s = allSelections[k];\n if(!s) continue; // also drop null selections if any\n\n if(\n s.xref !== clickedXaxis._id ||\n s.yref !== clickedYaxis._id\n ) {\n subSelections.push(s);\n }\n }\n\n if(subSelections.length < allSelections.length) {\n gd._fullLayout._noEmitSelectedAtStart = true;\n\n Registry.call('_guiRelayout', gd, {\n selections: subSelections\n });\n }\n }\n }\n } else {\n if(clickmode.indexOf('select') > -1) {\n selectOnClick(evt, gd, dragOptions.xaxes, dragOptions.yaxes,\n dragOptions.subplot, dragOptions, outlines);\n }\n\n if(clickmode === 'event') {\n // TODO: remove in v3 - this was probably never intended to work as it does,\n // but in case anyone depends on it we don't want to break it now.\n // Note that click-to-select introduced pre v3 also emitts proper\n // event data when clickmode is having 'select' in its flag list.\n emitSelected(gd, undefined);\n }\n }\n\n Fx.click(gd, evt);\n }).catch(Lib.error);\n };\n\n dragOptions.doneFn = function() {\n corners.remove();\n\n throttle.done(throttleID).then(function() {\n throttle.clear(throttleID);\n\n if(!immediateSelect && currentPolygon && dragOptions.selectionDefs) {\n // save last polygons\n currentPolygon.subtract = subtract;\n dragOptions.selectionDefs.push(currentPolygon);\n\n // we have to keep reference to arrays container\n dragOptions.mergedPolygons.length = 0;\n [].push.apply(dragOptions.mergedPolygons, mergedPolygons);\n }\n\n if(immediateSelect || isDrawMode) {\n clearSelectionsCache(dragOptions, immediateSelect);\n }\n\n if(dragOptions.doneFnCompleted) {\n dragOptions.doneFnCompleted(selection);\n }\n\n if(isSelectMode) {\n emitSelected(gd, eventData);\n }\n }).catch(Lib.error);\n };\n}\n\nfunction selectOnClick(evt, gd, xAxes, yAxes, subplot, dragOptions, polygonOutlines) {\n var hoverData = gd._hoverdata;\n var fullLayout = gd._fullLayout;\n var clickmode = fullLayout.clickmode;\n var sendEvents = clickmode.indexOf('event') > -1;\n var selection = [];\n var searchTraces, searchInfo, currentSelectionDef, selectionTesters, traceSelection;\n var thisTracesSelection, pointOrBinSelected, subtract, eventData, i;\n\n if(isHoverDataSet(hoverData)) {\n coerceSelectionsCache(evt, gd, dragOptions);\n searchTraces = determineSearchTraces(gd, xAxes, yAxes, subplot);\n var clickedPtInfo = extractClickedPtInfo(hoverData, searchTraces);\n var isBinnedTrace = clickedPtInfo.pointNumbers.length > 0;\n\n\n // Note: potentially costly operation isPointOrBinSelected is\n // called as late as possible through the use of an assignment\n // in an if condition.\n if(isBinnedTrace ?\n isOnlyThisBinSelected(searchTraces, clickedPtInfo) :\n isOnlyOnePointSelected(searchTraces) &&\n (pointOrBinSelected = isPointOrBinSelected(clickedPtInfo))) {\n if(polygonOutlines) polygonOutlines.remove();\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n searchInfo._module.selectPoints(searchInfo, false);\n }\n\n updateSelectedState(gd, searchTraces);\n\n clearSelectionsCache(dragOptions);\n\n if(sendEvents) {\n emitDeselect(gd);\n }\n } else {\n subtract = evt.shiftKey &&\n (pointOrBinSelected !== undefined ?\n pointOrBinSelected :\n isPointOrBinSelected(clickedPtInfo));\n currentSelectionDef = newPointSelectionDef(clickedPtInfo.pointNumber, clickedPtInfo.searchInfo, subtract);\n\n var allSelectionDefs = dragOptions.selectionDefs.concat([currentSelectionDef]);\n selectionTesters = multiTester(allSelectionDefs, selectionTesters);\n\n for(i = 0; i < searchTraces.length; i++) {\n traceSelection = searchTraces[i]._module.selectPoints(searchTraces[i], selectionTesters);\n thisTracesSelection = fillSelectionItem(traceSelection, searchTraces[i]);\n\n if(selection.length) {\n for(var j = 0; j < thisTracesSelection.length; j++) {\n selection.push(thisTracesSelection[j]);\n }\n } else selection = thisTracesSelection;\n }\n\n eventData = {points: selection};\n updateSelectedState(gd, searchTraces, eventData);\n\n if(currentSelectionDef && dragOptions) {\n dragOptions.selectionDefs.push(currentSelectionDef);\n }\n\n if(polygonOutlines) {\n var polygons = dragOptions.mergedPolygons;\n var isOpenMode = openMode(dragOptions.dragmode);\n\n // display polygons on the screen\n displayOutlines(convertPoly(polygons, isOpenMode), polygonOutlines, dragOptions);\n }\n\n if(sendEvents) {\n emitSelected(gd, eventData);\n }\n }\n }\n}\n\n/**\n * Constructs a new point selection definition object.\n */\nfunction newPointSelectionDef(pointNumber, searchInfo, subtract) {\n return {\n pointNumber: pointNumber,\n searchInfo: searchInfo,\n subtract: !!subtract\n };\n}\n\nfunction isPointSelectionDef(o) {\n return 'pointNumber' in o && 'searchInfo' in o;\n}\n\n/*\n * Constructs a new point number tester.\n */\nfunction newPointNumTester(pointSelectionDef) {\n return {\n xmin: 0,\n xmax: 0,\n ymin: 0,\n ymax: 0,\n pts: [],\n contains: function(pt, omitFirstEdge, pointNumber, searchInfo) {\n var idxWantedTrace = pointSelectionDef.searchInfo.cd[0].trace._expandedIndex;\n var idxActualTrace = searchInfo.cd[0].trace._expandedIndex;\n return idxActualTrace === idxWantedTrace &&\n pointNumber === pointSelectionDef.pointNumber;\n },\n isRect: false,\n degenerate: false,\n subtract: !!pointSelectionDef.subtract\n };\n}\n\n/**\n * Wraps multiple selection testers.\n *\n * @param {Array} list - An array of selection testers.\n *\n * @return a selection tester object with a contains function\n * that can be called to evaluate a point against all wrapped\n * selection testers that were passed in list.\n */\nfunction multiTester(list) {\n if(!list.length) return;\n\n var testers = [];\n var xmin = isPointSelectionDef(list[0]) ? 0 : list[0][0][0];\n var xmax = xmin;\n var ymin = isPointSelectionDef(list[0]) ? 0 : list[0][0][1];\n var ymax = ymin;\n\n for(var i = 0; i < list.length; i++) {\n if(isPointSelectionDef(list[i])) {\n testers.push(newPointNumTester(list[i]));\n } else {\n var tester = polygonTester(list[i]);\n tester.subtract = !!list[i].subtract;\n testers.push(tester);\n\n xmin = Math.min(xmin, tester.xmin);\n xmax = Math.max(xmax, tester.xmax);\n ymin = Math.min(ymin, tester.ymin);\n ymax = Math.max(ymax, tester.ymax);\n }\n }\n\n /**\n * Tests if the given point is within this tester.\n *\n * @param {Array} pt - [0] is the x coordinate, [1] is the y coordinate of the point.\n * @param {*} arg - An optional parameter to pass down to wrapped testers.\n * @param {number} pointNumber - The point number of the point within the underlying data array.\n * @param {number} searchInfo - An object identifying the trace the point is contained in.\n *\n * @return {boolean} true if point is considered to be selected, false otherwise.\n */\n function contains(pt, arg, pointNumber, searchInfo) {\n var contained = false;\n for(var i = 0; i < testers.length; i++) {\n if(testers[i].contains(pt, arg, pointNumber, searchInfo)) {\n // if contained by subtract tester - exclude the point\n contained = !testers[i].subtract;\n }\n }\n\n return contained;\n }\n\n return {\n xmin: xmin,\n xmax: xmax,\n ymin: ymin,\n ymax: ymax,\n pts: [],\n contains: contains,\n isRect: false,\n degenerate: false\n };\n}\n\nfunction coerceSelectionsCache(evt, gd, dragOptions) {\n var fullLayout = gd._fullLayout;\n var plotinfo = dragOptions.plotinfo;\n var dragmode = dragOptions.dragmode;\n\n var selectingOnSameSubplot = (\n fullLayout._lastSelectedSubplot &&\n fullLayout._lastSelectedSubplot === plotinfo.id\n );\n\n var hasModifierKey = (evt.shiftKey || evt.altKey) &&\n !(drawMode(dragmode) && openMode(dragmode));\n\n if(\n selectingOnSameSubplot &&\n hasModifierKey &&\n plotinfo.selection &&\n plotinfo.selection.selectionDefs &&\n !dragOptions.selectionDefs\n ) {\n // take over selection definitions from prev mode, if any\n dragOptions.selectionDefs = plotinfo.selection.selectionDefs;\n dragOptions.mergedPolygons = plotinfo.selection.mergedPolygons;\n } else if(!hasModifierKey || !plotinfo.selection) {\n clearSelectionsCache(dragOptions);\n }\n\n // clear selection outline when selecting a different subplot\n if(!selectingOnSameSubplot) {\n clearOutline(gd);\n fullLayout._lastSelectedSubplot = plotinfo.id;\n }\n}\n\nfunction hasActiveShape(gd) {\n return gd._fullLayout._activeShapeIndex >= 0;\n}\n\nfunction hasActiveSelection(gd) {\n return gd._fullLayout._activeSelectionIndex >= 0;\n}\n\nfunction clearSelectionsCache(dragOptions, immediateSelect) {\n var dragmode = dragOptions.dragmode;\n var plotinfo = dragOptions.plotinfo;\n\n var gd = dragOptions.gd;\n if(hasActiveShape(gd)) {\n gd._fullLayout._deactivateShape(gd);\n }\n if(hasActiveSelection(gd)) {\n gd._fullLayout._deactivateSelection(gd);\n }\n\n var fullLayout = gd._fullLayout;\n var zoomLayer = fullLayout._zoomlayer;\n\n var isDrawMode = drawMode(dragmode);\n var isSelectMode = selectMode(dragmode);\n\n if(isDrawMode || isSelectMode) {\n var outlines = zoomLayer.selectAll('.select-outline-' + plotinfo.id);\n if(outlines && gd._fullLayout._outlining) {\n // add shape\n var shapes;\n if(isDrawMode) {\n shapes = newShapes(outlines, dragOptions);\n }\n if(shapes) {\n Registry.call('_guiRelayout', gd, {\n shapes: shapes\n });\n }\n\n // add selection\n var selections;\n if(\n isSelectMode &&\n !hasSubplot(dragOptions) // only allow cartesian - no mapbox for now\n ) {\n selections = newSelections(outlines, dragOptions);\n }\n if(selections) {\n gd._fullLayout._noEmitSelectedAtStart = true;\n\n Registry.call('_guiRelayout', gd, {\n selections: selections\n }).then(function() {\n if(immediateSelect) { activateLastSelection(gd); }\n });\n }\n\n gd._fullLayout._outlining = false;\n }\n }\n\n plotinfo.selection = {};\n plotinfo.selection.selectionDefs = dragOptions.selectionDefs = [];\n plotinfo.selection.mergedPolygons = dragOptions.mergedPolygons = [];\n}\n\nfunction getAxId(ax) {\n return ax._id;\n}\n\nfunction determineSearchTraces(gd, xAxes, yAxes, subplot) {\n if(!gd.calcdata) return [];\n\n var searchTraces = [];\n var xAxisIds = xAxes.map(getAxId);\n var yAxisIds = yAxes.map(getAxId);\n var cd, trace, i;\n\n for(i = 0; i < gd.calcdata.length; i++) {\n cd = gd.calcdata[i];\n trace = cd[0].trace;\n\n if(trace.visible !== true || !trace._module || !trace._module.selectPoints) continue;\n\n if(\n hasSubplot({subplot: subplot}) &&\n (trace.subplot === subplot || trace.geo === subplot)\n ) {\n searchTraces.push(createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]));\n } else if(trace.type === 'splom') {\n // FIXME: make sure we don't have more than single axis for splom\n if(trace._xaxes[xAxisIds[0]] && trace._yaxes[yAxisIds[0]]) {\n var info = createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]);\n info.scene = gd._fullLayout._splomScenes[trace.uid];\n searchTraces.push(info);\n }\n } else if(trace.type === 'sankey') {\n var sankeyInfo = createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]);\n searchTraces.push(sankeyInfo);\n } else {\n if(xAxisIds.indexOf(trace.xaxis) === -1) continue;\n if(yAxisIds.indexOf(trace.yaxis) === -1) continue;\n\n searchTraces.push(createSearchInfo(trace._module, cd,\n getFromId(gd, trace.xaxis), getFromId(gd, trace.yaxis)));\n }\n }\n\n return searchTraces;\n}\n\nfunction createSearchInfo(module, calcData, xaxis, yaxis) {\n return {\n _module: module,\n cd: calcData,\n xaxis: xaxis,\n yaxis: yaxis\n };\n}\n\nfunction isHoverDataSet(hoverData) {\n return hoverData &&\n Array.isArray(hoverData) &&\n hoverData[0].hoverOnBox !== true;\n}\n\nfunction extractClickedPtInfo(hoverData, searchTraces) {\n var hoverDatum = hoverData[0];\n var pointNumber = -1;\n var pointNumbers = [];\n var searchInfo, i;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n if(hoverDatum.fullData._expandedIndex === searchInfo.cd[0].trace._expandedIndex) {\n // Special case for box (and violin)\n if(hoverDatum.hoverOnBox === true) {\n break;\n }\n\n // Hint: in some traces like histogram, one graphical element\n // doesn't correspond to one particular data point, but to\n // bins of data points. Thus, hoverDatum can have a binNumber\n // property instead of pointNumber.\n if(hoverDatum.pointNumber !== undefined) {\n pointNumber = hoverDatum.pointNumber;\n } else if(hoverDatum.binNumber !== undefined) {\n pointNumber = hoverDatum.binNumber;\n pointNumbers = hoverDatum.pointNumbers;\n }\n\n break;\n }\n }\n\n return {\n pointNumber: pointNumber,\n pointNumbers: pointNumbers,\n searchInfo: searchInfo\n };\n}\n\nfunction isPointOrBinSelected(clickedPtInfo) {\n var trace = clickedPtInfo.searchInfo.cd[0].trace;\n var ptNum = clickedPtInfo.pointNumber;\n var ptNums = clickedPtInfo.pointNumbers;\n var ptNumsSet = ptNums.length > 0;\n\n // When pointsNumbers is set (e.g. histogram's binning),\n // it is assumed that when the first point of\n // a bin is selected, all others are as well\n var ptNumToTest = ptNumsSet ? ptNums[0] : ptNum;\n\n // TODO potential performance improvement\n // Primarily we need this function to determine if a click adds\n // or subtracts from a selection.\n // In cases `trace.selectedpoints` is a huge array, indexOf\n // might be slow. One remedy would be to introduce a hash somewhere.\n return trace.selectedpoints ? trace.selectedpoints.indexOf(ptNumToTest) > -1 : false;\n}\n\nfunction isOnlyThisBinSelected(searchTraces, clickedPtInfo) {\n var tracesWithSelectedPts = [];\n var searchInfo, trace, isSameTrace, i;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n if(searchInfo.cd[0].trace.selectedpoints && searchInfo.cd[0].trace.selectedpoints.length > 0) {\n tracesWithSelectedPts.push(searchInfo);\n }\n }\n\n if(tracesWithSelectedPts.length === 1) {\n isSameTrace = tracesWithSelectedPts[0] === clickedPtInfo.searchInfo;\n if(isSameTrace) {\n trace = clickedPtInfo.searchInfo.cd[0].trace;\n if(trace.selectedpoints.length === clickedPtInfo.pointNumbers.length) {\n for(i = 0; i < clickedPtInfo.pointNumbers.length; i++) {\n if(trace.selectedpoints.indexOf(clickedPtInfo.pointNumbers[i]) < 0) {\n return false;\n }\n }\n return true;\n }\n }\n }\n\n return false;\n}\n\nfunction isOnlyOnePointSelected(searchTraces) {\n var len = 0;\n var searchInfo, trace, i;\n\n for(i = 0; i < searchTraces.length; i++) {\n searchInfo = searchTraces[i];\n trace = searchInfo.cd[0].trace;\n if(trace.selectedpoints) {\n if(trace.selectedpoints.length > 1) return false;\n\n len += trace.selectedpoints.length;\n if(len > 1) return false;\n }\n }\n\n return len === 1;\n}\n\nfunction updateSelectedState(gd, searchTraces, eventData) {\n var i;\n\n // before anything else, update preGUI if necessary\n for(i = 0; i < searchTraces.length; i++) {\n var fullInputTrace = searchTraces[i].cd[0].trace._fullInput;\n var tracePreGUI = gd._fullLayout._tracePreGUI[fullInputTrace.uid] || {};\n if(tracePreGUI.selectedpoints === undefined) {\n tracePreGUI.selectedpoints = fullInputTrace._input.selectedpoints || null;\n }\n }\n\n var trace;\n if(eventData) {\n var pts = eventData.points || [];\n for(i = 0; i < searchTraces.length; i++) {\n trace = searchTraces[i].cd[0].trace;\n trace._input.selectedpoints = trace._fullInput.selectedpoints = [];\n if(trace._fullInput !== trace) trace.selectedpoints = [];\n }\n\n for(var k = 0; k < pts.length; k++) {\n var pt = pts[k];\n var data = pt.data;\n var fullData = pt.fullData;\n var pointIndex = pt.pointIndex;\n var pointIndices = pt.pointIndices;\n if(pointIndices) {\n [].push.apply(data.selectedpoints, pointIndices);\n if(trace._fullInput !== trace) {\n [].push.apply(fullData.selectedpoints, pointIndices);\n }\n } else {\n data.selectedpoints.push(pointIndex);\n if(trace._fullInput !== trace) {\n fullData.selectedpoints.push(pointIndex);\n }\n }\n }\n } else {\n for(i = 0; i < searchTraces.length; i++) {\n trace = searchTraces[i].cd[0].trace;\n delete trace.selectedpoints;\n delete trace._input.selectedpoints;\n if(trace._fullInput !== trace) {\n delete trace._fullInput.selectedpoints;\n }\n }\n }\n\n updateReglSelectedState(gd, searchTraces);\n}\n\nfunction updateReglSelectedState(gd, searchTraces) {\n var hasRegl = false;\n\n for(var i = 0; i < searchTraces.length; i++) {\n var searchInfo = searchTraces[i];\n var cd = searchInfo.cd;\n\n if(Registry.traceIs(cd[0].trace, 'regl')) {\n hasRegl = true;\n }\n\n var _module = searchInfo._module;\n var fn = _module.styleOnSelect || _module.style;\n if(fn) {\n fn(gd, cd, cd[0].node3);\n if(cd[0].nodeRangePlot3) fn(gd, cd, cd[0].nodeRangePlot3);\n }\n }\n\n if(hasRegl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n}\n\nfunction mergePolygons(list, poly, subtract) {\n var fn = subtract ?\n polybool.difference :\n polybool.union;\n\n var res = fn({\n regions: list\n }, {\n regions: [poly]\n });\n\n var allPolygons = res.regions.reverse();\n\n for(var i = 0; i < allPolygons.length; i++) {\n var polygon = allPolygons[i];\n\n polygon.subtract = getSubtract(polygon, allPolygons.slice(0, i));\n }\n\n return allPolygons;\n}\n\nfunction fillSelectionItem(selection, searchInfo) {\n if(Array.isArray(selection)) {\n var cd = searchInfo.cd;\n var trace = searchInfo.cd[0].trace;\n\n for(var i = 0; i < selection.length; i++) {\n selection[i] = makeEventData(selection[i], trace, cd);\n }\n }\n\n return selection;\n}\n\nfunction convertPoly(polygonsIn, isOpenMode) { // add M and L command to draft positions\n var polygonsOut = [];\n for(var i = 0; i < polygonsIn.length; i++) {\n polygonsOut[i] = [];\n for(var j = 0; j < polygonsIn[i].length; j++) {\n polygonsOut[i][j] = [];\n polygonsOut[i][j][0] = j ? 'L' : 'M';\n for(var k = 0; k < polygonsIn[i][j].length; k++) {\n polygonsOut[i][j].push(\n polygonsIn[i][j][k]\n );\n }\n }\n\n if(!isOpenMode) {\n polygonsOut[i].push([\n 'Z',\n polygonsOut[i][0][1], // initial x\n polygonsOut[i][0][2] // initial y\n ]);\n }\n }\n\n return polygonsOut;\n}\n\nfunction _doSelect(selectionTesters, searchTraces) {\n var allSelections = [];\n\n var thisSelection;\n var traceSelections = [];\n var traceSelection;\n for(var i = 0; i < searchTraces.length; i++) {\n var searchInfo = searchTraces[i];\n\n traceSelection = searchInfo._module.selectPoints(searchInfo, selectionTesters);\n traceSelections.push(traceSelection);\n\n thisSelection = fillSelectionItem(traceSelection, searchInfo);\n\n allSelections = allSelections.concat(thisSelection);\n }\n\n return allSelections;\n}\n\nfunction reselect(gd, mayEmitSelected, selectionTesters, searchTraces, dragOptions) {\n var hadSearchTraces = !!searchTraces;\n var plotinfo, xRef, yRef;\n if(dragOptions) {\n plotinfo = dragOptions.plotinfo;\n xRef = dragOptions.xaxes[0]._id;\n yRef = dragOptions.yaxes[0]._id;\n }\n\n var allSelections = [];\n var allSearchTraces = [];\n\n // select layout.selection polygons\n var layoutPolygons = getLayoutPolygons(gd);\n\n // add draft outline polygons to layoutPolygons\n var fullLayout = gd._fullLayout;\n if(plotinfo) {\n var zoomLayer = fullLayout._zoomlayer;\n var mode = fullLayout.dragmode;\n var isDrawMode = drawMode(mode);\n var isSelectMode = selectMode(mode);\n if(isDrawMode || isSelectMode) {\n var xaxis = getFromId(gd, xRef, 'x');\n var yaxis = getFromId(gd, yRef, 'y');\n if(xaxis && yaxis) {\n var outlines = zoomLayer.selectAll('.select-outline-' + plotinfo.id);\n if(outlines && gd._fullLayout._outlining) {\n if(outlines.length) {\n var e = outlines[0][0]; // pick first\n var d = e.getAttribute('d');\n var outlinePolys = readPaths(d, gd, plotinfo);\n\n var draftPolygons = [];\n for(var u = 0; u < outlinePolys.length; u++) {\n var p = outlinePolys[u];\n var polygon = [];\n for(var t = 0; t < p.length; t++) {\n polygon.push([\n convert(xaxis, p[t][1]),\n convert(yaxis, p[t][2])\n ]);\n }\n\n polygon.xref = xRef;\n polygon.yref = yRef;\n polygon.subtract = getSubtract(polygon, draftPolygons);\n\n draftPolygons.push(polygon);\n }\n\n layoutPolygons = layoutPolygons.concat(draftPolygons);\n }\n }\n }\n }\n }\n\n var subplots = (xRef && yRef) ? [xRef + yRef] :\n fullLayout._subplots.cartesian;\n\n epmtySplomSelectionBatch(gd);\n\n var seenSplom = {};\n\n for(var i = 0; i < subplots.length; i++) {\n var subplot = subplots[i];\n var yAt = subplot.indexOf('y');\n var _xRef = subplot.slice(0, yAt);\n var _yRef = subplot.slice(yAt);\n\n var _selectionTesters = (xRef && yRef) ? selectionTesters : undefined;\n _selectionTesters = addTester(layoutPolygons, _xRef, _yRef, _selectionTesters);\n\n if(_selectionTesters) {\n var _searchTraces = searchTraces;\n if(!hadSearchTraces) {\n var _xA = getFromId(gd, _xRef, 'x');\n var _yA = getFromId(gd, _yRef, 'y');\n\n _searchTraces = determineSearchTraces(\n gd,\n [_xA],\n [_yA],\n subplot\n );\n\n for(var w = 0; w < _searchTraces.length; w++) {\n var s = _searchTraces[w];\n var cd0 = s.cd[0];\n var trace = cd0.trace;\n\n if(s._module.name === 'scattergl' && !cd0.t.xpx) {\n var x = trace.x;\n var y = trace.y;\n var len = trace._length;\n // generate stash for scattergl\n cd0.t.xpx = [];\n cd0.t.ypx = [];\n for(var j = 0; j < len; j++) {\n cd0.t.xpx[j] = _xA.c2p(x[j]);\n cd0.t.ypx[j] = _yA.c2p(y[j]);\n }\n }\n\n if(s._module.name === 'splom') {\n if(!seenSplom[trace.uid]) {\n seenSplom[trace.uid] = true;\n }\n }\n }\n }\n var selection = _doSelect(_selectionTesters, _searchTraces);\n\n allSelections = allSelections.concat(selection);\n allSearchTraces = allSearchTraces.concat(_searchTraces);\n }\n }\n\n var eventData = {points: allSelections};\n updateSelectedState(gd, allSearchTraces, eventData);\n\n var clickmode = fullLayout.clickmode;\n var sendEvents = clickmode.indexOf('event') > -1 && mayEmitSelected;\n\n if(\n !plotinfo && // get called from plot_api & plots\n mayEmitSelected\n ) {\n var activePolygons = getLayoutPolygons(gd, true);\n\n if(activePolygons.length) {\n var xref = activePolygons[0].xref;\n var yref = activePolygons[0].yref;\n if(xref && yref) {\n var poly = castMultiPolygon(activePolygons);\n\n var fillRangeItems = makeFillRangeItems([\n getFromId(gd, xref, 'x'),\n getFromId(gd, yref, 'y')\n ]);\n\n fillRangeItems(eventData, poly);\n }\n }\n\n if(gd._fullLayout._noEmitSelectedAtStart) {\n gd._fullLayout._noEmitSelectedAtStart = false;\n } else {\n if(sendEvents) emitSelected(gd, eventData);\n }\n\n fullLayout._reselect = false;\n }\n\n if(\n !plotinfo && // get called from plot_api & plots\n fullLayout._deselect\n ) {\n var deselect = fullLayout._deselect;\n xRef = deselect.xref;\n yRef = deselect.yref;\n\n if(!subplotSelected(xRef, yRef, allSearchTraces)) {\n deselectSubplot(gd, xRef, yRef, searchTraces);\n }\n\n if(sendEvents) {\n if(eventData.points.length) {\n emitSelected(gd, eventData);\n } else {\n emitDeselect(gd);\n }\n }\n\n fullLayout._deselect = false;\n }\n\n return {\n eventData: eventData,\n selectionTesters: selectionTesters\n };\n}\n\nfunction epmtySplomSelectionBatch(gd) {\n var cd = gd.calcdata;\n if(!cd) return;\n\n for(var i = 0; i < cd.length; i++) {\n var cd0 = cd[i][0];\n var trace = cd0.trace;\n var splomScenes = gd._fullLayout._splomScenes;\n if(splomScenes) {\n var scene = splomScenes[trace.uid];\n if(scene) {\n scene.selectBatch = [];\n }\n }\n }\n}\n\nfunction subplotSelected(xRef, yRef, searchTraces) {\n for(var i = 0; i < searchTraces.length; i++) {\n var s = searchTraces[i];\n if(\n (s.xaxis && s.xaxis._id === xRef) &&\n (s.yaxis && s.yaxis._id === yRef)\n ) {\n return true;\n }\n }\n return false;\n}\n\nfunction deselectSubplot(gd, xRef, yRef, searchTraces) {\n searchTraces = determineSearchTraces(\n gd,\n [getFromId(gd, xRef, 'x')],\n [getFromId(gd, yRef, 'y')],\n xRef + yRef\n );\n\n for(var k = 0; k < searchTraces.length; k++) {\n var searchInfo = searchTraces[k];\n searchInfo._module.selectPoints(searchInfo, false);\n }\n\n updateSelectedState(gd, searchTraces);\n}\n\nfunction addTester(layoutPolygons, xRef, yRef, selectionTesters) {\n var mergedPolygons;\n\n for(var i = 0; i < layoutPolygons.length; i++) {\n var currentPolygon = layoutPolygons[i];\n if(xRef !== currentPolygon.xref || yRef !== currentPolygon.yref) continue;\n\n if(mergedPolygons) {\n var subtract = !!currentPolygon.subtract;\n mergedPolygons = mergePolygons(mergedPolygons, currentPolygon, subtract);\n selectionTesters = multiTester(mergedPolygons);\n } else {\n mergedPolygons = [currentPolygon];\n selectionTesters = polygonTester(currentPolygon);\n }\n }\n\n return selectionTesters;\n}\n\nfunction getLayoutPolygons(gd, onlyActiveOnes) {\n var allPolygons = [];\n\n var fullLayout = gd._fullLayout;\n var allSelections = fullLayout.selections;\n var len = allSelections.length;\n\n for(var i = 0; i < len; i++) {\n if(onlyActiveOnes && i !== fullLayout._activeSelectionIndex) continue;\n\n var selection = allSelections[i];\n if(!selection) continue;\n\n var xref = selection.xref;\n var yref = selection.yref;\n\n var xaxis = getFromId(gd, xref, 'x');\n var yaxis = getFromId(gd, yref, 'y');\n\n var xmin, xmax, ymin, ymax;\n\n var polygon;\n if(selection.type === 'rect') {\n polygon = [];\n\n var x0 = convert(xaxis, selection.x0);\n var x1 = convert(xaxis, selection.x1);\n var y0 = convert(yaxis, selection.y0);\n var y1 = convert(yaxis, selection.y1);\n polygon = [[x0, y0], [x0, y1], [x1, y1], [x1, y0]];\n\n xmin = Math.min(x0, x1);\n xmax = Math.max(x0, x1);\n ymin = Math.min(y0, y1);\n ymax = Math.max(y0, y1);\n\n polygon.xmin = xmin;\n polygon.xmax = xmax;\n polygon.ymin = ymin;\n polygon.ymax = ymax;\n\n polygon.xref = xref;\n polygon.yref = yref;\n\n polygon.subtract = false;\n polygon.isRect = true;\n\n allPolygons.push(polygon);\n } else if(selection.type === 'path') {\n var segments = selection.path.split('Z');\n\n var multiPolygons = [];\n for(var j = 0; j < segments.length; j++) {\n var path = segments[j];\n if(!path) continue;\n path += 'Z';\n\n var allX = shapeHelpers.extractPathCoords(path, shapeConstants.paramIsX, 'raw');\n var allY = shapeHelpers.extractPathCoords(path, shapeConstants.paramIsY, 'raw');\n\n xmin = Infinity;\n xmax = -Infinity;\n ymin = Infinity;\n ymax = -Infinity;\n\n polygon = [];\n\n for(var k = 0; k < allX.length; k++) {\n var x = convert(xaxis, allX[k]);\n var y = convert(yaxis, allY[k]);\n\n polygon.push([x, y]);\n\n xmin = Math.min(x, xmin);\n xmax = Math.max(x, xmax);\n ymin = Math.min(y, ymin);\n ymax = Math.max(y, ymax);\n }\n\n polygon.xmin = xmin;\n polygon.xmax = xmax;\n polygon.ymin = ymin;\n polygon.ymax = ymax;\n\n polygon.xref = xref;\n polygon.yref = yref;\n polygon.subtract = getSubtract(polygon, multiPolygons);\n\n multiPolygons.push(polygon);\n allPolygons.push(polygon);\n }\n }\n }\n\n return allPolygons;\n}\n\nfunction getSubtract(polygon, previousPolygons) {\n var subtract = false;\n for(var i = 0; i < previousPolygons.length; i++) {\n var previousPolygon = previousPolygons[i];\n\n // find out if a point of polygon is inside previous polygons\n for(var k = 0; k < polygon.length; k++) {\n if(pointInPolygon(polygon[k], previousPolygon)) {\n subtract = !subtract;\n break;\n }\n }\n }\n return subtract;\n}\n\nfunction convert(ax, d) {\n if(ax.type === 'date') d = d.replace('_', ' ');\n return ax.type === 'log' ? ax.c2p(d) : ax.r2p(d, null, ax.calendar);\n}\n\nfunction castMultiPolygon(allPolygons) {\n var len = allPolygons.length;\n\n // descibe multi polygons in one polygon\n var p = [];\n for(var i = 0; i < len; i++) {\n var polygon = allPolygons[i];\n p = p.concat(polygon);\n\n // add starting vertex to close\n // which indicates next polygon\n p = p.concat([polygon[0]]);\n }\n\n return computeRectAndRanges(p);\n}\n\nfunction computeRectAndRanges(poly) {\n poly.isRect = poly.length === 5 &&\n poly[0][0] === poly[4][0] &&\n poly[0][1] === poly[4][1] &&\n (\n poly[0][0] === poly[1][0] &&\n poly[2][0] === poly[3][0] &&\n poly[0][1] === poly[3][1] &&\n poly[1][1] === poly[2][1]\n ) ||\n (\n poly[0][1] === poly[1][1] &&\n poly[2][1] === poly[3][1] &&\n poly[0][0] === poly[3][0] &&\n poly[1][0] === poly[2][0]\n );\n\n if(poly.isRect) {\n poly.xmin = Math.min(poly[0][0], poly[2][0]);\n poly.xmax = Math.max(poly[0][0], poly[2][0]);\n poly.ymin = Math.min(poly[0][1], poly[2][1]);\n poly.ymax = Math.max(poly[0][1], poly[2][1]);\n }\n\n return poly;\n}\n\nfunction makeFillRangeItems(allAxes) {\n return function(eventData, poly) {\n var range;\n var lassoPoints;\n\n for(var i = 0; i < allAxes.length; i++) {\n var ax = allAxes[i];\n var id = ax._id;\n var axLetter = id.charAt(0);\n\n if(poly.isRect) {\n if(!range) range = {};\n var min = poly[axLetter + 'min'];\n var max = poly[axLetter + 'max'];\n\n if(min !== undefined && max !== undefined) {\n range[id] = [\n p2r(ax, min),\n p2r(ax, max)\n ].sort(ascending);\n }\n } else {\n if(!lassoPoints) lassoPoints = {};\n lassoPoints[id] = poly.map(axValue(ax));\n }\n }\n\n if(range) {\n eventData.range = range;\n }\n\n if(lassoPoints) {\n eventData.lassoPoints = lassoPoints;\n }\n };\n}\n\nfunction getFillRangeItems(dragOptions) {\n var plotinfo = dragOptions.plotinfo;\n\n return (\n plotinfo.fillRangeItems || // allow subplots (i.e. geo, mapbox, sankey) to override fillRangeItems routine\n makeFillRangeItems(dragOptions.xaxes.concat(dragOptions.yaxes))\n );\n}\n\nfunction emitSelecting(gd, eventData) {\n gd.emit('plotly_selecting', eventData);\n}\n\nfunction emitSelected(gd, eventData) {\n if(eventData) {\n eventData.selections = (gd.layout || {}).selections || [];\n }\n\n gd.emit('plotly_selected', eventData);\n}\n\nfunction emitDeselect(gd) {\n gd.emit('plotly_deselect', null);\n}\n\nmodule.exports = {\n reselect: reselect,\n prepSelect: prepSelect,\n clearOutline: clearOutline,\n clearSelectionsCache: clearSelectionsCache,\n selectOnClick: selectOnClick\n};\n\n},{\"../../lib\":515,\"../../lib/clear_gl_canvases\":499,\"../../lib/polygon\":527,\"../../lib/throttle\":542,\"../../plot_api/subroutines\":556,\"../../plots/cartesian/axis_ids\":570,\"../../registry\":647,\"../color\":367,\"../dragelement/helpers\":385,\"../drawing\":389,\"../fx\":407,\"../fx/helpers\":403,\"../shapes/constants\":459,\"../shapes/display_outlines\":461,\"../shapes/draw_newshape/helpers\":466,\"../shapes/draw_newshape/newshapes\":467,\"../shapes/handle_outline\":468,\"../shapes/helpers\":469,\"./constants\":448,\"./draw\":450,\"./draw_newselection/newselections\":453,\"./helpers\":454,\"point-in-polygon/nested\":254,\"polybooljs\":255}],457:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../annotations/attributes');\nvar scatterLineAttrs = _dereq_('../../traces/scatter/attributes').line;\nvar dash = _dereq_('../drawing/attributes').dash;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar axisPlaceableObjs = _dereq_('../../constants/axis_placeable_objects');\n\nmodule.exports = templatedArray('shape', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc+arraydraw',\n },\n\n type: {\n valType: 'enumerated',\n values: ['circle', 'rect', 'path', 'line'],\n editType: 'calc+arraydraw',\n },\n\n layer: {\n valType: 'enumerated',\n values: ['below', 'above'],\n dflt: 'above',\n editType: 'arraydraw',\n },\n\n xref: extendFlat({}, annAttrs.xref, {\n }),\n xsizemode: {\n valType: 'enumerated',\n values: ['scaled', 'pixel'],\n dflt: 'scaled',\n editType: 'calc+arraydraw',\n },\n xanchor: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n x0: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n x1: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n\n yref: extendFlat({}, annAttrs.yref, {\n }),\n ysizemode: {\n valType: 'enumerated',\n values: ['scaled', 'pixel'],\n dflt: 'scaled',\n editType: 'calc+arraydraw',\n },\n yanchor: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n y0: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n y1: {\n valType: 'any',\n editType: 'calc+arraydraw',\n },\n\n path: {\n valType: 'string',\n editType: 'calc+arraydraw',\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'arraydraw',\n },\n line: {\n color: extendFlat({}, scatterLineAttrs.color, {editType: 'arraydraw'}),\n width: extendFlat({}, scatterLineAttrs.width, {editType: 'calc+arraydraw'}),\n dash: extendFlat({}, dash, {editType: 'arraydraw'}),\n editType: 'calc+arraydraw'\n },\n fillcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'arraydraw',\n },\n fillrule: {\n valType: 'enumerated',\n values: ['evenodd', 'nonzero'],\n dflt: 'evenodd',\n editType: 'arraydraw',\n },\n editable: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc+arraydraw',\n },\n\n editType: 'arraydraw'\n});\n\n},{\"../../constants/axis_placeable_objects\":484,\"../../lib/extend\":505,\"../../plot_api/plot_template\":555,\"../../traces/scatter/attributes\":936,\"../annotations/attributes\":350,\"../drawing/attributes\":388}],458:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\n\nmodule.exports = function calcAutorange(gd) {\n var fullLayout = gd._fullLayout;\n var shapeList = Lib.filterVisible(fullLayout.shapes);\n\n if(!shapeList.length || !gd._fullData.length) return;\n\n for(var i = 0; i < shapeList.length; i++) {\n var shape = shapeList[i];\n shape._extremes = {};\n\n var ax; var bounds;\n var xRefType = Axes.getRefType(shape.xref);\n var yRefType = Axes.getRefType(shape.yref);\n\n // paper and axis domain referenced shapes don't affect autorange\n if(shape.xref !== 'paper' && xRefType !== 'domain') {\n var vx0 = shape.xsizemode === 'pixel' ? shape.xanchor : shape.x0;\n var vx1 = shape.xsizemode === 'pixel' ? shape.xanchor : shape.x1;\n ax = Axes.getFromId(gd, shape.xref);\n\n bounds = shapeBounds(ax, vx0, vx1, shape.path, constants.paramIsX);\n if(bounds) {\n shape._extremes[ax._id] = Axes.findExtremes(ax, bounds, calcXPaddingOptions(shape));\n }\n }\n\n if(shape.yref !== 'paper' && yRefType !== 'domain') {\n var vy0 = shape.ysizemode === 'pixel' ? shape.yanchor : shape.y0;\n var vy1 = shape.ysizemode === 'pixel' ? shape.yanchor : shape.y1;\n ax = Axes.getFromId(gd, shape.yref);\n\n bounds = shapeBounds(ax, vy0, vy1, shape.path, constants.paramIsY);\n if(bounds) {\n shape._extremes[ax._id] = Axes.findExtremes(ax, bounds, calcYPaddingOptions(shape));\n }\n }\n }\n};\n\nfunction calcXPaddingOptions(shape) {\n return calcPaddingOptions(shape.line.width, shape.xsizemode, shape.x0, shape.x1, shape.path, false);\n}\n\nfunction calcYPaddingOptions(shape) {\n return calcPaddingOptions(shape.line.width, shape.ysizemode, shape.y0, shape.y1, shape.path, true);\n}\n\nfunction calcPaddingOptions(lineWidth, sizeMode, v0, v1, path, isYAxis) {\n var ppad = lineWidth / 2;\n var axisDirectionReverted = isYAxis;\n\n if(sizeMode === 'pixel') {\n var coords = path ?\n helpers.extractPathCoords(path, isYAxis ? constants.paramIsY : constants.paramIsX) :\n [v0, v1];\n var maxValue = Lib.aggNums(Math.max, null, coords);\n var minValue = Lib.aggNums(Math.min, null, coords);\n var beforePad = minValue < 0 ? Math.abs(minValue) + ppad : ppad;\n var afterPad = maxValue > 0 ? maxValue + ppad : ppad;\n\n return {\n ppad: ppad,\n ppadplus: axisDirectionReverted ? beforePad : afterPad,\n ppadminus: axisDirectionReverted ? afterPad : beforePad\n };\n } else {\n return {ppad: ppad};\n }\n}\n\nfunction shapeBounds(ax, v0, v1, path, paramsToUse) {\n var convertVal = (ax.type === 'category' || ax.type === 'multicategory') ? ax.r2c : ax.d2c;\n\n if(v0 !== undefined) return [convertVal(v0), convertVal(v1)];\n if(!path) return;\n\n var min = Infinity;\n var max = -Infinity;\n var segments = path.match(constants.segmentRE);\n var i;\n var segment;\n var drawnParam;\n var params;\n var val;\n\n if(ax.type === 'date') convertVal = helpers.decodeDate(convertVal);\n\n for(i = 0; i < segments.length; i++) {\n segment = segments[i];\n drawnParam = paramsToUse[segment.charAt(0)].drawn;\n if(drawnParam === undefined) continue;\n\n params = segments[i].substr(1).match(constants.paramRE);\n if(!params || params.length < drawnParam) continue;\n\n val = convertVal(params[drawnParam]);\n if(val < min) min = val;\n if(val > max) max = val;\n }\n if(max >= min) return [min, max];\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"./constants\":459,\"./helpers\":469}],459:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n segmentRE: /[MLHVQCTSZ][^MLHVQCTSZ]*/g,\n paramRE: /[^\\s,]+/g,\n\n // which numbers in each path segment are x (or y) values\n // drawn is which param is a drawn point, as opposed to a\n // control point (which doesn't count toward autorange.\n // TODO: this means curved paths could extend beyond the\n // autorange bounds. This is a bit tricky to get right\n // unless we revert to bounding boxes, but perhaps there's\n // a calculation we could do...)\n paramIsX: {\n M: {0: true, drawn: 0},\n L: {0: true, drawn: 0},\n H: {0: true, drawn: 0},\n V: {},\n Q: {0: true, 2: true, drawn: 2},\n C: {0: true, 2: true, 4: true, drawn: 4},\n T: {0: true, drawn: 0},\n S: {0: true, 2: true, drawn: 2},\n // A: {0: true, 5: true},\n Z: {}\n },\n\n paramIsY: {\n M: {1: true, drawn: 1},\n L: {1: true, drawn: 1},\n H: {},\n V: {0: true, drawn: 0},\n Q: {1: true, 3: true, drawn: 3},\n C: {1: true, 3: true, 5: true, drawn: 5},\n T: {1: true, drawn: 1},\n S: {1: true, 3: true, drawn: 5},\n // A: {1: true, 6: true},\n Z: {}\n },\n\n numParams: {\n M: 2,\n L: 2,\n H: 1,\n V: 1,\n Q: 4,\n C: 6,\n T: 2,\n S: 4,\n // A: 7,\n Z: 0\n }\n};\n\n},{}],460:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar helpers = _dereq_('./helpers');\n\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: 'shapes',\n handleItemDefaults: handleShapeDefaults\n });\n};\n\nfunction handleShapeDefaults(shapeIn, shapeOut, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(shapeIn, shapeOut, attributes, attr, dflt);\n }\n\n var visible = coerce('visible');\n if(!visible) return;\n\n var path = coerce('path');\n var dfltType = path ? 'path' : 'rect';\n var shapeType = coerce('type', dfltType);\n var noPath = shapeType !== 'path';\n if(noPath) delete shapeOut.path;\n\n coerce('editable');\n coerce('layer');\n coerce('opacity');\n coerce('fillcolor');\n coerce('fillrule');\n var lineWidth = coerce('line.width');\n if(lineWidth) {\n coerce('line.color');\n coerce('line.dash');\n }\n\n var xSizeMode = coerce('xsizemode');\n var ySizeMode = coerce('ysizemode');\n\n // positioning\n var axLetters = ['x', 'y'];\n for(var i = 0; i < 2; i++) {\n var axLetter = axLetters[i];\n var attrAnchor = axLetter + 'anchor';\n var sizeMode = axLetter === 'x' ? xSizeMode : ySizeMode;\n var gdMock = {_fullLayout: fullLayout};\n var ax;\n var pos2r;\n var r2pos;\n\n // xref, yref\n var axRef = Axes.coerceRef(shapeIn, shapeOut, gdMock, axLetter, undefined,\n 'paper');\n var axRefType = Axes.getRefType(axRef);\n\n if(axRefType === 'range') {\n ax = Axes.getFromId(gdMock, axRef);\n ax._shapeIndices.push(shapeOut._index);\n r2pos = helpers.rangeToShapePosition(ax);\n pos2r = helpers.shapePositionToRange(ax);\n } else {\n pos2r = r2pos = Lib.identity;\n }\n\n // Coerce x0, x1, y0, y1\n if(noPath) {\n var dflt0 = 0.25;\n var dflt1 = 0.75;\n\n // hack until V3.0 when log has regular range behavior - make it look like other\n // ranges to send to coerce, then put it back after\n // this is all to give reasonable default position behavior on log axes, which is\n // a pretty unimportant edge case so we could just ignore this.\n var attr0 = axLetter + '0';\n var attr1 = axLetter + '1';\n var in0 = shapeIn[attr0];\n var in1 = shapeIn[attr1];\n shapeIn[attr0] = pos2r(shapeIn[attr0], true);\n shapeIn[attr1] = pos2r(shapeIn[attr1], true);\n\n if(sizeMode === 'pixel') {\n coerce(attr0, 0);\n coerce(attr1, 10);\n } else {\n Axes.coercePosition(shapeOut, gdMock, coerce, axRef, attr0, dflt0);\n Axes.coercePosition(shapeOut, gdMock, coerce, axRef, attr1, dflt1);\n }\n\n // hack part 2\n shapeOut[attr0] = r2pos(shapeOut[attr0]);\n shapeOut[attr1] = r2pos(shapeOut[attr1]);\n shapeIn[attr0] = in0;\n shapeIn[attr1] = in1;\n }\n\n // Coerce xanchor and yanchor\n if(sizeMode === 'pixel') {\n // Hack for log axis described above\n var inAnchor = shapeIn[attrAnchor];\n shapeIn[attrAnchor] = pos2r(shapeIn[attrAnchor], true);\n\n Axes.coercePosition(shapeOut, gdMock, coerce, axRef, attrAnchor, 0.25);\n\n // Hack part 2\n shapeOut[attrAnchor] = r2pos(shapeOut[attrAnchor]);\n shapeIn[attrAnchor] = inAnchor;\n }\n }\n\n if(noPath) {\n Lib.noneOrAll(shapeIn, shapeOut, ['x0', 'x1', 'y0', 'y1']);\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/axes\":566,\"./attributes\":457,\"./helpers\":469}],461:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\n\nvar dragElement = _dereq_('../dragelement');\nvar dragHelpers = _dereq_('../dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../color');\n\nvar constants = _dereq_('./draw_newshape/constants');\nvar i000 = constants.i000;\nvar i090 = constants.i090;\nvar i180 = constants.i180;\nvar i270 = constants.i270;\n\nvar handleOutline = _dereq_('./handle_outline');\nvar clearOutlineControllers = handleOutline.clearOutlineControllers;\n\nvar helpers = _dereq_('./draw_newshape/helpers');\nvar pointsOnRectangle = helpers.pointsOnRectangle;\nvar pointsOnEllipse = helpers.pointsOnEllipse;\nvar writePaths = helpers.writePaths;\nvar newShapes = _dereq_('./draw_newshape/newshapes');\nvar newSelections = _dereq_('../selections/draw_newselection/newselections');\n\nmodule.exports = function displayOutlines(polygons, outlines, dragOptions, nCalls) {\n if(!nCalls) nCalls = 0;\n\n var gd = dragOptions.gd;\n\n function redraw() {\n // recursive call\n displayOutlines(polygons, outlines, dragOptions, nCalls++);\n\n if(pointsOnEllipse(polygons[0])) {\n update({redrawing: true});\n }\n }\n\n function update(opts) {\n var updateObject = {};\n\n if(dragOptions.isActiveShape !== undefined) {\n dragOptions.isActiveShape = false; // i.e. to disable shape controllers\n updateObject = newShapes(outlines, dragOptions);\n }\n\n if(dragOptions.isActiveSelection !== undefined) {\n dragOptions.isActiveSelection = false; // i.e. to disable selection controllers\n updateObject = newSelections(outlines, dragOptions);\n\n gd._fullLayout._reselect = true;\n }\n\n if(Object.keys(updateObject).length) {\n Registry.call((opts || {}).redrawing ? 'relayout' : '_guiRelayout', gd, updateObject);\n }\n }\n\n var fullLayout = gd._fullLayout;\n var zoomLayer = fullLayout._zoomlayer;\n\n var dragmode = dragOptions.dragmode;\n var isDrawMode = drawMode(dragmode);\n var isSelectMode = selectMode(dragmode);\n\n if(isDrawMode || isSelectMode) {\n gd._fullLayout._outlining = true;\n }\n\n clearOutlineControllers(gd);\n\n // make outline\n outlines.attr('d', writePaths(polygons));\n\n // add controllers\n var vertexDragOptions;\n var groupDragOptions;\n var indexI; // cell index\n var indexJ; // vertex or cell-controller index\n var copyPolygons;\n\n if(!nCalls && (\n dragOptions.isActiveShape ||\n dragOptions.isActiveSelection\n )) {\n copyPolygons = recordPositions([], polygons);\n\n var g = zoomLayer.append('g').attr('class', 'outline-controllers');\n addVertexControllers(g);\n addGroupControllers();\n }\n\n function startDragVertex(evt) {\n indexI = +evt.srcElement.getAttribute('data-i');\n indexJ = +evt.srcElement.getAttribute('data-j');\n\n vertexDragOptions[indexI][indexJ].moveFn = moveVertexController;\n }\n\n function moveVertexController(dx, dy) {\n if(!polygons.length) return;\n\n var x0 = copyPolygons[indexI][indexJ][1];\n var y0 = copyPolygons[indexI][indexJ][2];\n\n var cell = polygons[indexI];\n var len = cell.length;\n if(pointsOnRectangle(cell)) {\n var _dx = dx;\n var _dy = dy;\n if(dragOptions.isActiveSelection) {\n // handle an edge contoller for rect selections\n var nextPoint = getNextPoint(cell, indexJ);\n if(nextPoint[1] === cell[indexJ][1]) { // a vertical edge\n _dy = 0;\n } else { // a horizontal edge\n _dx = 0;\n }\n }\n\n for(var q = 0; q < len; q++) {\n if(q === indexJ) continue;\n\n // move other corners of rectangle\n var pos = cell[q];\n\n if(pos[1] === cell[indexJ][1]) {\n pos[1] = x0 + _dx;\n }\n\n if(pos[2] === cell[indexJ][2]) {\n pos[2] = y0 + _dy;\n }\n }\n // move the corner\n cell[indexJ][1] = x0 + _dx;\n cell[indexJ][2] = y0 + _dy;\n\n if(!pointsOnRectangle(cell)) {\n // reject result to rectangles with ensure areas\n for(var j = 0; j < len; j++) {\n for(var k = 0; k < cell[j].length; k++) {\n cell[j][k] = copyPolygons[indexI][j][k];\n }\n }\n }\n } else { // other polylines\n cell[indexJ][1] = x0 + dx;\n cell[indexJ][2] = y0 + dy;\n }\n\n redraw();\n }\n\n function endDragVertexController() {\n update();\n }\n\n function removeVertex() {\n if(!polygons.length) return;\n if(!polygons[indexI]) return;\n if(!polygons[indexI].length) return;\n\n var newPolygon = [];\n for(var j = 0; j < polygons[indexI].length; j++) {\n if(j !== indexJ) {\n newPolygon.push(\n polygons[indexI][j]\n );\n }\n }\n\n if(newPolygon.length > 1 && !(\n newPolygon.length === 2 && newPolygon[1][0] === 'Z')\n ) {\n if(indexJ === 0) {\n newPolygon[0][0] = 'M';\n }\n\n polygons[indexI] = newPolygon;\n\n redraw();\n update();\n }\n }\n\n function clickVertexController(numClicks, evt) {\n if(numClicks === 2) {\n indexI = +evt.srcElement.getAttribute('data-i');\n indexJ = +evt.srcElement.getAttribute('data-j');\n\n var cell = polygons[indexI];\n if(\n !pointsOnRectangle(cell) &&\n !pointsOnEllipse(cell)\n ) {\n removeVertex();\n }\n }\n }\n\n function addVertexControllers(g) {\n vertexDragOptions = [];\n\n for(var i = 0; i < polygons.length; i++) {\n var cell = polygons[i];\n\n var onRect = pointsOnRectangle(cell);\n var onEllipse = !onRect && pointsOnEllipse(cell);\n\n vertexDragOptions[i] = [];\n var len = cell.length;\n for(var j = 0; j < len; j++) {\n if(cell[j][0] === 'Z') continue;\n\n if(onEllipse &&\n j !== i000 &&\n j !== i090 &&\n j !== i180 &&\n j !== i270\n ) {\n continue;\n }\n\n var rectSelection = onRect && dragOptions.isActiveSelection;\n var nextPoint;\n if(rectSelection) nextPoint = getNextPoint(cell, j);\n\n var x = cell[j][1];\n var y = cell[j][2];\n\n var vertex = g.append(rectSelection ? 'rect' : 'circle')\n .attr('data-i', i)\n .attr('data-j', j)\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1,\n 'shape-rendering': 'crispEdges',\n });\n\n if(rectSelection) {\n // convert a vertex controller to an edge controller for rect selections\n var dx = nextPoint[1] - x;\n var dy = nextPoint[2] - y;\n\n var width = dy ? 5 : Math.max(Math.min(25, Math.abs(dx) - 5), 5);\n var height = dx ? 5 : Math.max(Math.min(25, Math.abs(dy) - 5), 5);\n\n vertex.classed(dy ? 'cursor-ew-resize' : 'cursor-ns-resize', true)\n .attr('width', width)\n .attr('height', height)\n .attr('x', x - width / 2)\n .attr('y', y - height / 2)\n .attr('transform', strTranslate(dx / 2, dy / 2));\n } else {\n vertex.classed('cursor-grab', true)\n .attr('r', 5)\n .attr('cx', x)\n .attr('cy', y);\n }\n\n vertexDragOptions[i][j] = {\n element: vertex.node(),\n gd: gd,\n prepFn: startDragVertex,\n doneFn: endDragVertexController,\n clickFn: clickVertexController\n };\n\n dragElement.init(vertexDragOptions[i][j]);\n }\n }\n }\n\n function moveGroup(dx, dy) {\n if(!polygons.length) return;\n\n for(var i = 0; i < polygons.length; i++) {\n for(var j = 0; j < polygons[i].length; j++) {\n for(var k = 0; k + 2 < polygons[i][j].length; k += 2) {\n polygons[i][j][k + 1] = copyPolygons[i][j][k + 1] + dx;\n polygons[i][j][k + 2] = copyPolygons[i][j][k + 2] + dy;\n }\n }\n }\n }\n\n function moveGroupController(dx, dy) {\n moveGroup(dx, dy);\n\n redraw();\n }\n\n function startDragGroupController(evt) {\n indexI = +evt.srcElement.getAttribute('data-i');\n if(!indexI) indexI = 0; // ensure non-existing move button get zero index\n\n groupDragOptions[indexI].moveFn = moveGroupController;\n }\n\n function endDragGroupController() {\n update();\n }\n\n function clickGroupController(numClicks) {\n if(numClicks === 2) {\n eraseActiveSelection(gd);\n }\n }\n\n function addGroupControllers() {\n groupDragOptions = [];\n\n if(!polygons.length) return;\n\n var i = 0;\n groupDragOptions[i] = {\n element: outlines[0][0],\n gd: gd,\n prepFn: startDragGroupController,\n doneFn: endDragGroupController,\n clickFn: clickGroupController\n };\n\n dragElement.init(groupDragOptions[i]);\n }\n};\n\nfunction recordPositions(polygonsOut, polygonsIn) {\n for(var i = 0; i < polygonsIn.length; i++) {\n var cell = polygonsIn[i];\n polygonsOut[i] = [];\n for(var j = 0; j < cell.length; j++) {\n polygonsOut[i][j] = [];\n for(var k = 0; k < cell[j].length; k++) {\n polygonsOut[i][j][k] = cell[j][k];\n }\n }\n }\n return polygonsOut;\n}\n\nfunction getNextPoint(cell, j) {\n var x = cell[j][1];\n var y = cell[j][2];\n var len = cell.length;\n var nextJ, nextX, nextY;\n nextJ = (j + 1) % len;\n nextX = cell[nextJ][1];\n nextY = cell[nextJ][2];\n\n // avoid potential double points (closing points)\n if(nextX === x && nextY === y) {\n nextJ = (j + 2) % len;\n nextX = cell[nextJ][1];\n nextY = cell[nextJ][2];\n }\n\n return [nextJ, nextX, nextY];\n}\n\nfunction eraseActiveSelection(gd) {\n // Do not allow removal of selections on other dragmodes.\n // This ensures the user could still double click to\n // deselect all trace.selectedpoints,\n // if that's what they wanted.\n // Also double click to zoom back won't result in\n // any surprising selection removal.\n if(!selectMode(gd._fullLayout.dragmode)) return;\n\n clearOutlineControllers(gd);\n\n var id = gd._fullLayout._activeSelectionIndex;\n var selections = (gd.layout || {}).selections || [];\n if(id < selections.length) {\n var list = [];\n for(var q = 0; q < selections.length; q++) {\n if(q !== id) {\n list.push(selections[q]);\n }\n }\n\n delete gd._fullLayout._activeSelectionIndex;\n\n var erasedSelection = gd._fullLayout.selections[id];\n gd._fullLayout._deselect = {\n xref: erasedSelection.xref,\n yref: erasedSelection.yref\n };\n\n Registry.call('_guiRelayout', gd, {\n selections: list\n });\n }\n}\n\n},{\"../../lib\":515,\"../../registry\":647,\"../color\":367,\"../dragelement\":386,\"../dragelement/helpers\":385,\"../selections/draw_newselection/newselections\":453,\"./draw_newshape/constants\":464,\"./draw_newshape/helpers\":466,\"./draw_newshape/newshapes\":467,\"./handle_outline\":468}],462:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar readPaths = _dereq_('./draw_newshape/helpers').readPaths;\nvar displayOutlines = _dereq_('./display_outlines');\n\nvar clearOutlineControllers = _dereq_('./handle_outline').clearOutlineControllers;\n\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar dragElement = _dereq_('../dragelement');\nvar setCursor = _dereq_('../../lib/setcursor');\n\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\nvar getPathString = helpers.getPathString;\n\n\n// Shapes are stored in gd.layout.shapes, an array of objects\n// index can point to one item in this array,\n// or non-numeric to simply add a new one\n// or -1 to modify all existing\n// opt can be the full options object, or one key (to be set to value)\n// or undefined to simply redraw\n// if opt is blank, val can be 'add' or a full options object to add a new\n// annotation at that point in the array, or 'remove' to delete this one\n\nmodule.exports = {\n draw: draw,\n drawOne: drawOne,\n eraseActiveShape: eraseActiveShape\n};\n\nfunction draw(gd) {\n var fullLayout = gd._fullLayout;\n\n // Remove previous shapes before drawing new in shapes in fullLayout.shapes\n fullLayout._shapeUpperLayer.selectAll('path').remove();\n fullLayout._shapeLowerLayer.selectAll('path').remove();\n\n for(var k in fullLayout._plots) {\n var shapelayer = fullLayout._plots[k].shapelayer;\n if(shapelayer) shapelayer.selectAll('path').remove();\n }\n\n for(var i = 0; i < fullLayout.shapes.length; i++) {\n if(fullLayout.shapes[i].visible) {\n drawOne(gd, i);\n }\n }\n\n // may need to resurrect this if we put text (LaTeX) in shapes\n // return Plots.previousPromises(gd);\n}\n\nfunction shouldSkipEdits(gd) {\n return !!gd._fullLayout._outlining;\n}\n\nfunction couldHaveActiveShape(gd) {\n // for now keep config.editable: true as it was before shape-drawing PR\n return !gd._context.edits.shapePosition;\n}\n\nfunction drawOne(gd, index) {\n // remove the existing shape if there is one.\n // because indices can change, we need to look in all shape layers\n gd._fullLayout._paperdiv\n .selectAll('.shapelayer [data-index=\"' + index + '\"]')\n .remove();\n\n var o = helpers.makeShapesOptionsAndPlotinfo(gd, index);\n var options = o.options;\n var plotinfo = o.plotinfo;\n\n // this shape is gone - quit now after deleting it\n // TODO: use d3 idioms instead of deleting and redrawing every time\n if(!options._input || options.visible === false) return;\n\n if(options.layer !== 'below') {\n drawShape(gd._fullLayout._shapeUpperLayer);\n } else if(options.xref === 'paper' || options.yref === 'paper') {\n drawShape(gd._fullLayout._shapeLowerLayer);\n } else {\n if(plotinfo._hadPlotinfo) {\n var mainPlot = plotinfo.mainplotinfo || plotinfo;\n drawShape(mainPlot.shapelayer);\n } else {\n // Fall back to _shapeLowerLayer in case the requested subplot doesn't exist.\n // This can happen if you reference the shape to an x / y axis combination\n // that doesn't have any data on it (and layer is below)\n drawShape(gd._fullLayout._shapeLowerLayer);\n }\n }\n\n function drawShape(shapeLayer) {\n var d = getPathString(gd, options);\n var attrs = {\n 'data-index': index,\n 'fill-rule': options.fillrule,\n d: d\n };\n\n var opacity = options.opacity;\n var fillColor = options.fillcolor;\n var lineColor = options.line.width ? options.line.color : 'rgba(0,0,0,0)';\n var lineWidth = options.line.width;\n var lineDash = options.line.dash;\n if(!lineWidth && options.editable === true) {\n // ensure invisible border to activate the shape\n lineWidth = 5;\n lineDash = 'solid';\n }\n\n var isOpen = d[d.length - 1] !== 'Z';\n\n var isActiveShape = couldHaveActiveShape(gd) &&\n options.editable && gd._fullLayout._activeShapeIndex === index;\n\n if(isActiveShape) {\n fillColor = isOpen ? 'rgba(0,0,0,0)' :\n gd._fullLayout.activeshape.fillcolor;\n\n opacity = gd._fullLayout.activeshape.opacity;\n }\n\n var path = shapeLayer.append('path')\n .attr(attrs)\n .style('opacity', opacity)\n .call(Color.stroke, lineColor)\n .call(Color.fill, fillColor)\n .call(Drawing.dashLine, lineDash, lineWidth);\n\n setClipPath(path, gd, options);\n\n var editHelpers;\n if(isActiveShape || gd._context.edits.shapePosition) editHelpers = arrayEditor(gd.layout, 'shapes', options);\n\n if(isActiveShape) {\n path.style({\n 'cursor': 'move',\n });\n\n var dragOptions = {\n element: path.node(),\n plotinfo: plotinfo,\n gd: gd,\n editHelpers: editHelpers,\n isActiveShape: true // i.e. to enable controllers\n };\n\n var polygons = readPaths(d, gd);\n // display polygons on the screen\n displayOutlines(polygons, path, dragOptions);\n } else {\n if(gd._context.edits.shapePosition) {\n setupDragElement(gd, path, options, index, shapeLayer, editHelpers);\n } else if(options.editable === true) {\n path.style('pointer-events',\n (isOpen || Color.opacity(fillColor) * opacity <= 0.5) ? 'stroke' : 'all'\n );\n }\n }\n\n path.node().addEventListener('click', function() { return activateShape(gd, path); });\n }\n}\n\nfunction setClipPath(shapePath, gd, shapeOptions) {\n // note that for layer=\"below\" the clipAxes can be different from the\n // subplot we're drawing this in. This could cause problems if the shape\n // spans two subplots. See https://github.com/plotly/plotly.js/issues/1452\n //\n // if axis is 'paper' or an axis with \" domain\" appended, then there is no\n // clip axis\n var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, '').replace(/[xyz][1-9]* *domain/g, '');\n\n Drawing.setClipUrl(\n shapePath,\n clipAxes ? 'clip' + gd._fullLayout._uid + clipAxes : null,\n gd\n );\n}\n\nfunction setupDragElement(gd, shapePath, shapeOptions, index, shapeLayer, editHelpers) {\n var MINWIDTH = 10;\n var MINHEIGHT = 10;\n\n var xPixelSized = shapeOptions.xsizemode === 'pixel';\n var yPixelSized = shapeOptions.ysizemode === 'pixel';\n var isLine = shapeOptions.type === 'line';\n var isPath = shapeOptions.type === 'path';\n\n var modifyItem = editHelpers.modifyItem;\n\n var x0, y0, x1, y1, xAnchor, yAnchor;\n var n0, s0, w0, e0, optN, optS, optW, optE;\n var pathIn;\n\n // setup conversion functions\n var xa = Axes.getFromId(gd, shapeOptions.xref);\n var xRefType = Axes.getRefType(shapeOptions.xref);\n var ya = Axes.getFromId(gd, shapeOptions.yref);\n var yRefType = Axes.getRefType(shapeOptions.yref);\n var x2p = helpers.getDataToPixel(gd, xa, false, xRefType);\n var y2p = helpers.getDataToPixel(gd, ya, true, yRefType);\n var p2x = helpers.getPixelToData(gd, xa, false, xRefType);\n var p2y = helpers.getPixelToData(gd, ya, true, yRefType);\n\n var sensoryElement = obtainSensoryElement();\n var dragOptions = {\n element: sensoryElement.node(),\n gd: gd,\n prepFn: startDrag,\n doneFn: endDrag,\n clickFn: abortDrag\n };\n var dragMode;\n\n dragElement.init(dragOptions);\n\n sensoryElement.node().onmousemove = updateDragMode;\n\n function obtainSensoryElement() {\n return isLine ? createLineDragHandles() : shapePath;\n }\n\n function createLineDragHandles() {\n var minSensoryWidth = 10;\n var sensoryWidth = Math.max(shapeOptions.line.width, minSensoryWidth);\n\n // Helper shapes group\n // Note that by setting the `data-index` attr, it is ensured that\n // the helper group is purged in this modules `draw` function\n var g = shapeLayer.append('g')\n .attr('data-index', index);\n\n // Helper path for moving\n g.append('path')\n .attr('d', shapePath.attr('d'))\n .style({\n 'cursor': 'move',\n 'stroke-width': sensoryWidth,\n 'stroke-opacity': '0' // ensure not visible\n });\n\n // Helper circles for resizing\n var circleStyle = {\n 'fill-opacity': '0' // ensure not visible\n };\n var circleRadius = Math.max(sensoryWidth / 2, minSensoryWidth);\n\n g.append('circle')\n .attr({\n 'data-line-point': 'start-point',\n 'cx': xPixelSized ? x2p(shapeOptions.xanchor) + shapeOptions.x0 : x2p(shapeOptions.x0),\n 'cy': yPixelSized ? y2p(shapeOptions.yanchor) - shapeOptions.y0 : y2p(shapeOptions.y0),\n 'r': circleRadius\n })\n .style(circleStyle)\n .classed('cursor-grab', true);\n\n g.append('circle')\n .attr({\n 'data-line-point': 'end-point',\n 'cx': xPixelSized ? x2p(shapeOptions.xanchor) + shapeOptions.x1 : x2p(shapeOptions.x1),\n 'cy': yPixelSized ? y2p(shapeOptions.yanchor) - shapeOptions.y1 : y2p(shapeOptions.y1),\n 'r': circleRadius\n })\n .style(circleStyle)\n .classed('cursor-grab', true);\n\n return g;\n }\n\n function updateDragMode(evt) {\n if(shouldSkipEdits(gd)) {\n dragMode = null;\n return;\n }\n\n if(isLine) {\n if(evt.target.tagName === 'path') {\n dragMode = 'move';\n } else {\n dragMode = evt.target.attributes['data-line-point'].value === 'start-point' ?\n 'resize-over-start-point' : 'resize-over-end-point';\n }\n } else {\n // element might not be on screen at time of setup,\n // so obtain bounding box here\n var dragBBox = dragOptions.element.getBoundingClientRect();\n\n // choose 'move' or 'resize'\n // based on initial position of cursor within the drag element\n var w = dragBBox.right - dragBBox.left;\n var h = dragBBox.bottom - dragBBox.top;\n var x = evt.clientX - dragBBox.left;\n var y = evt.clientY - dragBBox.top;\n var cursor = (!isPath && w > MINWIDTH && h > MINHEIGHT && !evt.shiftKey) ?\n dragElement.getCursor(x / w, 1 - y / h) :\n 'move';\n\n setCursor(shapePath, cursor);\n\n // possible values 'move', 'sw', 'w', 'se', 'e', 'ne', 'n', 'nw' and 'w'\n dragMode = cursor.split('-')[0];\n }\n }\n\n function startDrag(evt) {\n if(shouldSkipEdits(gd)) return;\n\n // setup update strings and initial values\n if(xPixelSized) {\n xAnchor = x2p(shapeOptions.xanchor);\n }\n if(yPixelSized) {\n yAnchor = y2p(shapeOptions.yanchor);\n }\n\n if(shapeOptions.type === 'path') {\n pathIn = shapeOptions.path;\n } else {\n x0 = xPixelSized ? shapeOptions.x0 : x2p(shapeOptions.x0);\n y0 = yPixelSized ? shapeOptions.y0 : y2p(shapeOptions.y0);\n x1 = xPixelSized ? shapeOptions.x1 : x2p(shapeOptions.x1);\n y1 = yPixelSized ? shapeOptions.y1 : y2p(shapeOptions.y1);\n }\n\n if(x0 < x1) {\n w0 = x0;\n optW = 'x0';\n e0 = x1;\n optE = 'x1';\n } else {\n w0 = x1;\n optW = 'x1';\n e0 = x0;\n optE = 'x0';\n }\n\n // For fixed size shapes take opposing direction of y-axis into account.\n // Hint: For data sized shapes this is done by the y2p function.\n if((!yPixelSized && y0 < y1) || (yPixelSized && y0 > y1)) {\n n0 = y0;\n optN = 'y0';\n s0 = y1;\n optS = 'y1';\n } else {\n n0 = y1;\n optN = 'y1';\n s0 = y0;\n optS = 'y0';\n }\n\n // setup dragMode and the corresponding handler\n updateDragMode(evt);\n renderVisualCues(shapeLayer, shapeOptions);\n deactivateClipPathTemporarily(shapePath, shapeOptions, gd);\n dragOptions.moveFn = (dragMode === 'move') ? moveShape : resizeShape;\n dragOptions.altKey = evt.altKey;\n }\n\n function endDrag() {\n if(shouldSkipEdits(gd)) return;\n\n setCursor(shapePath);\n removeVisualCues(shapeLayer);\n\n // Don't rely on clipPath being activated during re-layout\n setClipPath(shapePath, gd, shapeOptions);\n Registry.call('_guiRelayout', gd, editHelpers.getUpdateObj());\n }\n\n function abortDrag() {\n if(shouldSkipEdits(gd)) return;\n\n removeVisualCues(shapeLayer);\n }\n\n function moveShape(dx, dy) {\n if(shapeOptions.type === 'path') {\n var noOp = function(coord) { return coord; };\n var moveX = noOp;\n var moveY = noOp;\n\n if(xPixelSized) {\n modifyItem('xanchor', shapeOptions.xanchor = p2x(xAnchor + dx));\n } else {\n moveX = function moveX(x) { return p2x(x2p(x) + dx); };\n if(xa && xa.type === 'date') moveX = helpers.encodeDate(moveX);\n }\n\n if(yPixelSized) {\n modifyItem('yanchor', shapeOptions.yanchor = p2y(yAnchor + dy));\n } else {\n moveY = function moveY(y) { return p2y(y2p(y) + dy); };\n if(ya && ya.type === 'date') moveY = helpers.encodeDate(moveY);\n }\n\n modifyItem('path', shapeOptions.path = movePath(pathIn, moveX, moveY));\n } else {\n if(xPixelSized) {\n modifyItem('xanchor', shapeOptions.xanchor = p2x(xAnchor + dx));\n } else {\n modifyItem('x0', shapeOptions.x0 = p2x(x0 + dx));\n modifyItem('x1', shapeOptions.x1 = p2x(x1 + dx));\n }\n\n if(yPixelSized) {\n modifyItem('yanchor', shapeOptions.yanchor = p2y(yAnchor + dy));\n } else {\n modifyItem('y0', shapeOptions.y0 = p2y(y0 + dy));\n modifyItem('y1', shapeOptions.y1 = p2y(y1 + dy));\n }\n }\n\n shapePath.attr('d', getPathString(gd, shapeOptions));\n renderVisualCues(shapeLayer, shapeOptions);\n }\n\n function resizeShape(dx, dy) {\n if(isPath) {\n // TODO: implement path resize, don't forget to update dragMode code\n var noOp = function(coord) { return coord; };\n var moveX = noOp;\n var moveY = noOp;\n\n if(xPixelSized) {\n modifyItem('xanchor', shapeOptions.xanchor = p2x(xAnchor + dx));\n } else {\n moveX = function moveX(x) { return p2x(x2p(x) + dx); };\n if(xa && xa.type === 'date') moveX = helpers.encodeDate(moveX);\n }\n\n if(yPixelSized) {\n modifyItem('yanchor', shapeOptions.yanchor = p2y(yAnchor + dy));\n } else {\n moveY = function moveY(y) { return p2y(y2p(y) + dy); };\n if(ya && ya.type === 'date') moveY = helpers.encodeDate(moveY);\n }\n\n modifyItem('path', shapeOptions.path = movePath(pathIn, moveX, moveY));\n } else if(isLine) {\n if(dragMode === 'resize-over-start-point') {\n var newX0 = x0 + dx;\n var newY0 = yPixelSized ? y0 - dy : y0 + dy;\n modifyItem('x0', shapeOptions.x0 = xPixelSized ? newX0 : p2x(newX0));\n modifyItem('y0', shapeOptions.y0 = yPixelSized ? newY0 : p2y(newY0));\n } else if(dragMode === 'resize-over-end-point') {\n var newX1 = x1 + dx;\n var newY1 = yPixelSized ? y1 - dy : y1 + dy;\n modifyItem('x1', shapeOptions.x1 = xPixelSized ? newX1 : p2x(newX1));\n modifyItem('y1', shapeOptions.y1 = yPixelSized ? newY1 : p2y(newY1));\n }\n } else {\n var has = function(str) { return dragMode.indexOf(str) !== -1; };\n var hasN = has('n');\n var hasS = has('s');\n var hasW = has('w');\n var hasE = has('e');\n\n var newN = hasN ? n0 + dy : n0;\n var newS = hasS ? s0 + dy : s0;\n var newW = hasW ? w0 + dx : w0;\n var newE = hasE ? e0 + dx : e0;\n\n if(yPixelSized) {\n // Do things in opposing direction for y-axis.\n // Hint: for data-sized shapes the reversal of axis direction is done in p2y.\n if(hasN) newN = n0 - dy;\n if(hasS) newS = s0 - dy;\n }\n\n // Update shape eventually. Again, be aware of the\n // opposing direction of the y-axis of fixed size shapes.\n if(\n (!yPixelSized && newS - newN > MINHEIGHT) ||\n (yPixelSized && newN - newS > MINHEIGHT)\n ) {\n modifyItem(optN, shapeOptions[optN] = yPixelSized ? newN : p2y(newN));\n modifyItem(optS, shapeOptions[optS] = yPixelSized ? newS : p2y(newS));\n }\n if(newE - newW > MINWIDTH) {\n modifyItem(optW, shapeOptions[optW] = xPixelSized ? newW : p2x(newW));\n modifyItem(optE, shapeOptions[optE] = xPixelSized ? newE : p2x(newE));\n }\n }\n\n shapePath.attr('d', getPathString(gd, shapeOptions));\n renderVisualCues(shapeLayer, shapeOptions);\n }\n\n function renderVisualCues(shapeLayer, shapeOptions) {\n if(xPixelSized || yPixelSized) {\n renderAnchor();\n }\n\n function renderAnchor() {\n var isNotPath = shapeOptions.type !== 'path';\n\n // d3 join with dummy data to satisfy d3 data-binding\n var visualCues = shapeLayer.selectAll('.visual-cue').data([0]);\n\n // Enter\n var strokeWidth = 1;\n visualCues.enter()\n .append('path')\n .attr({\n 'fill': '#fff',\n 'fill-rule': 'evenodd',\n 'stroke': '#000',\n 'stroke-width': strokeWidth\n })\n .classed('visual-cue', true);\n\n // Update\n var posX = x2p(\n xPixelSized ?\n shapeOptions.xanchor :\n Lib.midRange(\n isNotPath ?\n [shapeOptions.x0, shapeOptions.x1] :\n helpers.extractPathCoords(shapeOptions.path, constants.paramIsX))\n );\n var posY = y2p(\n yPixelSized ?\n shapeOptions.yanchor :\n Lib.midRange(\n isNotPath ?\n [shapeOptions.y0, shapeOptions.y1] :\n helpers.extractPathCoords(shapeOptions.path, constants.paramIsY))\n );\n\n posX = helpers.roundPositionForSharpStrokeRendering(posX, strokeWidth);\n posY = helpers.roundPositionForSharpStrokeRendering(posY, strokeWidth);\n\n if(xPixelSized && yPixelSized) {\n var crossPath = 'M' + (posX - 1 - strokeWidth) + ',' + (posY - 1 - strokeWidth) +\n 'h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z';\n visualCues.attr('d', crossPath);\n } else if(xPixelSized) {\n var vBarPath = 'M' + (posX - 1 - strokeWidth) + ',' + (posY - 9 - strokeWidth) +\n 'v18 h2 v-18 Z';\n visualCues.attr('d', vBarPath);\n } else {\n var hBarPath = 'M' + (posX - 9 - strokeWidth) + ',' + (posY - 1 - strokeWidth) +\n 'h18 v2 h-18 Z';\n visualCues.attr('d', hBarPath);\n }\n }\n }\n\n function removeVisualCues(shapeLayer) {\n shapeLayer.selectAll('.visual-cue').remove();\n }\n\n function deactivateClipPathTemporarily(shapePath, shapeOptions, gd) {\n var xref = shapeOptions.xref;\n var yref = shapeOptions.yref;\n var xa = Axes.getFromId(gd, xref);\n var ya = Axes.getFromId(gd, yref);\n\n var clipAxes = '';\n if(xref !== 'paper' && !xa.autorange) clipAxes += xref;\n if(yref !== 'paper' && !ya.autorange) clipAxes += yref;\n\n Drawing.setClipUrl(\n shapePath,\n clipAxes ? 'clip' + gd._fullLayout._uid + clipAxes : null,\n gd\n );\n }\n}\n\nfunction movePath(pathIn, moveX, moveY) {\n return pathIn.replace(constants.segmentRE, function(segment) {\n var paramNumber = 0;\n var segmentType = segment.charAt(0);\n var xParams = constants.paramIsX[segmentType];\n var yParams = constants.paramIsY[segmentType];\n var nParams = constants.numParams[segmentType];\n\n var paramString = segment.substr(1).replace(constants.paramRE, function(param) {\n if(paramNumber >= nParams) return param;\n\n if(xParams[paramNumber]) param = moveX(param);\n else if(yParams[paramNumber]) param = moveY(param);\n\n paramNumber++;\n\n return param;\n });\n\n return segmentType + paramString;\n });\n}\n\nfunction activateShape(gd, path) {\n if(!couldHaveActiveShape(gd)) return;\n\n var element = path.node();\n var id = +element.getAttribute('data-index');\n if(id >= 0) {\n // deactivate if already active\n if(id === gd._fullLayout._activeShapeIndex) {\n deactivateShape(gd);\n return;\n }\n\n gd._fullLayout._activeShapeIndex = id;\n gd._fullLayout._deactivateShape = deactivateShape;\n draw(gd);\n }\n}\n\nfunction deactivateShape(gd) {\n if(!couldHaveActiveShape(gd)) return;\n\n var id = gd._fullLayout._activeShapeIndex;\n if(id >= 0) {\n clearOutlineControllers(gd);\n delete gd._fullLayout._activeShapeIndex;\n draw(gd);\n }\n}\n\nfunction eraseActiveShape(gd) {\n if(!couldHaveActiveShape(gd)) return;\n\n clearOutlineControllers(gd);\n\n var id = gd._fullLayout._activeShapeIndex;\n var shapes = (gd.layout || {}).shapes || [];\n if(id < shapes.length) {\n var list = [];\n for(var q = 0; q < shapes.length; q++) {\n if(q !== id) {\n list.push(shapes[q]);\n }\n }\n\n delete gd._fullLayout._activeShapeIndex;\n\n Registry.call('_guiRelayout', gd, {\n shapes: list\n });\n }\n}\n\n},{\"../../lib\":515,\"../../lib/setcursor\":536,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../color\":367,\"../dragelement\":386,\"../drawing\":389,\"./constants\":459,\"./display_outlines\":461,\"./draw_newshape/helpers\":466,\"./handle_outline\":468,\"./helpers\":469}],463:[function(_dereq_,module,exports){\n'use strict';\n\nvar dash = _dereq_('../../drawing/attributes').dash;\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\n\nmodule.exports = {\n newshape: {\n line: {\n color: {\n valType: 'color',\n editType: 'none',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 4,\n editType: 'none',\n },\n dash: extendFlat({}, dash, {\n dflt: 'solid',\n editType: 'none'\n }),\n editType: 'none'\n },\n fillcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'none',\n },\n fillrule: {\n valType: 'enumerated',\n values: ['evenodd', 'nonzero'],\n dflt: 'evenodd',\n editType: 'none',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'none',\n },\n layer: {\n valType: 'enumerated',\n values: ['below', 'above'],\n dflt: 'above',\n editType: 'none',\n },\n drawdirection: {\n valType: 'enumerated',\n values: ['ortho', 'horizontal', 'vertical', 'diagonal'],\n dflt: 'diagonal',\n editType: 'none',\n },\n\n editType: 'none'\n },\n\n activeshape: {\n fillcolor: {\n valType: 'color',\n dflt: 'rgb(255,0,255)',\n editType: 'none',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'none',\n },\n editType: 'none'\n }\n};\n\n},{\"../../../lib/extend\":505,\"../../drawing/attributes\":388}],464:[function(_dereq_,module,exports){\n'use strict';\n\nvar CIRCLE_SIDES = 32; // should be divisible by 4\n\nmodule.exports = {\n CIRCLE_SIDES: CIRCLE_SIDES,\n i000: 0,\n i090: CIRCLE_SIDES / 4,\n i180: CIRCLE_SIDES / 2,\n i270: CIRCLE_SIDES / 4 * 3,\n cos45: Math.cos(Math.PI / 4),\n sin45: Math.sin(Math.PI / 4),\n SQRT2: Math.sqrt(2)\n};\n\n},{}],465:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../color');\n\n\nmodule.exports = function supplyDrawNewShapeDefaults(layoutIn, layoutOut, coerce) {\n coerce('newshape.drawdirection');\n coerce('newshape.layer');\n coerce('newshape.fillcolor');\n coerce('newshape.fillrule');\n coerce('newshape.opacity');\n var newshapeLineWidth = coerce('newshape.line.width');\n if(newshapeLineWidth) {\n var bgcolor = (layoutIn || {}).plot_bgcolor || '#FFF';\n coerce('newshape.line.color', Color.contrast(bgcolor));\n coerce('newshape.line.dash');\n }\n\n coerce('activeshape.fillcolor');\n coerce('activeshape.opacity');\n};\n\n},{\"../../color\":367}],466:[function(_dereq_,module,exports){\n'use strict';\n\nvar parseSvgPath = _dereq_('parse-svg-path');\n\nvar constants = _dereq_('./constants');\nvar CIRCLE_SIDES = constants.CIRCLE_SIDES;\nvar SQRT2 = constants.SQRT2;\n\nvar cartesianHelpers = _dereq_('../../selections/helpers');\nvar p2r = cartesianHelpers.p2r;\nvar r2p = cartesianHelpers.r2p;\n\nvar iC = [0, 3, 4, 5, 6, 1, 2];\nvar iQS = [0, 3, 4, 1, 2];\n\nexports.writePaths = function(polygons) {\n var nI = polygons.length;\n if(!nI) return 'M0,0Z';\n\n var str = '';\n for(var i = 0; i < nI; i++) {\n var nJ = polygons[i].length;\n for(var j = 0; j < nJ; j++) {\n var w = polygons[i][j][0];\n if(w === 'Z') {\n str += 'Z';\n } else {\n var nK = polygons[i][j].length;\n for(var k = 0; k < nK; k++) {\n var realK = k;\n if(w === 'Q' || w === 'S') {\n realK = iQS[k];\n } else if(w === 'C') {\n realK = iC[k];\n }\n\n str += polygons[i][j][realK];\n if(k > 0 && k < nK - 1) {\n str += ',';\n }\n }\n }\n }\n }\n\n return str;\n};\n\nexports.readPaths = function(str, gd, plotinfo, isActiveShape) {\n var cmd = parseSvgPath(str);\n\n var polys = [];\n var n = -1;\n var newPoly = function() {\n n++;\n polys[n] = [];\n };\n\n var k;\n var x = 0;\n var y = 0;\n var initX;\n var initY;\n var recStart = function() {\n initX = x;\n initY = y;\n };\n\n recStart();\n for(var i = 0; i < cmd.length; i++) {\n var newPos = [];\n\n var x1, x2, y1, y2; // i.e. extra params for curves\n\n var c = cmd[i][0];\n var w = c;\n switch(c) {\n case 'M':\n newPoly();\n x = +cmd[i][1];\n y = +cmd[i][2];\n newPos.push([w, x, y]);\n\n recStart();\n break;\n\n case 'Q':\n case 'S':\n x1 = +cmd[i][1];\n y1 = +cmd[i][2];\n x = +cmd[i][3];\n y = +cmd[i][4];\n newPos.push([w, x, y, x1, y1]); // -> iQS order\n break;\n\n case 'C':\n x1 = +cmd[i][1];\n y1 = +cmd[i][2];\n x2 = +cmd[i][3];\n y2 = +cmd[i][4];\n x = +cmd[i][5];\n y = +cmd[i][6];\n newPos.push([w, x, y, x1, y1, x2, y2]); // -> iC order\n break;\n\n case 'T':\n case 'L':\n x = +cmd[i][1];\n y = +cmd[i][2];\n newPos.push([w, x, y]);\n break;\n\n case 'H':\n w = 'L'; // convert to line (for now)\n x = +cmd[i][1];\n newPos.push([w, x, y]);\n break;\n\n case 'V':\n w = 'L'; // convert to line (for now)\n y = +cmd[i][1];\n newPos.push([w, x, y]);\n break;\n\n case 'A':\n w = 'L'; // convert to line to handle circle\n var rx = +cmd[i][1];\n var ry = +cmd[i][2];\n if(!+cmd[i][4]) {\n rx = -rx;\n ry = -ry;\n }\n\n var cenX = x - rx;\n var cenY = y;\n for(k = 1; k <= CIRCLE_SIDES / 2; k++) {\n var t = 2 * Math.PI * k / CIRCLE_SIDES;\n newPos.push([\n w,\n cenX + rx * Math.cos(t),\n cenY + ry * Math.sin(t)\n ]);\n }\n break;\n\n case 'Z':\n if(x !== initX || y !== initY) {\n x = initX;\n y = initY;\n newPos.push([w, x, y]);\n }\n break;\n }\n\n var domain = (plotinfo || {}).domain;\n var size = gd._fullLayout._size;\n var xPixelSized = plotinfo && plotinfo.xsizemode === 'pixel';\n var yPixelSized = plotinfo && plotinfo.ysizemode === 'pixel';\n var noOffset = isActiveShape === false;\n\n for(var j = 0; j < newPos.length; j++) {\n for(k = 0; k + 2 < 7; k += 2) {\n var _x = newPos[j][k + 1];\n var _y = newPos[j][k + 2];\n\n if(_x === undefined || _y === undefined) continue;\n // keep track of end point for Z\n x = _x;\n y = _y;\n\n if(plotinfo) {\n if(plotinfo.xaxis && plotinfo.xaxis.p2r) {\n if(noOffset) _x -= plotinfo.xaxis._offset;\n if(xPixelSized) {\n _x = r2p(plotinfo.xaxis, plotinfo.xanchor) + _x;\n } else {\n _x = p2r(plotinfo.xaxis, _x);\n }\n } else {\n if(noOffset) _x -= size.l;\n if(domain) _x = domain.x[0] + _x / size.w;\n else _x = _x / size.w;\n }\n\n if(plotinfo.yaxis && plotinfo.yaxis.p2r) {\n if(noOffset) _y -= plotinfo.yaxis._offset;\n if(yPixelSized) {\n _y = r2p(plotinfo.yaxis, plotinfo.yanchor) - _y;\n } else {\n _y = p2r(plotinfo.yaxis, _y);\n }\n } else {\n if(noOffset) _y -= size.t;\n if(domain) _y = domain.y[1] - _y / size.h;\n else _y = 1 - _y / size.h;\n }\n }\n\n newPos[j][k + 1] = _x;\n newPos[j][k + 2] = _y;\n }\n polys[n].push(\n newPos[j].slice()\n );\n }\n }\n\n return polys;\n};\n\nfunction almostEq(a, b) {\n return Math.abs(a - b) <= 1e-6;\n}\n\nfunction dist(a, b) {\n var dx = b[1] - a[1];\n var dy = b[2] - a[2];\n return Math.sqrt(\n dx * dx +\n dy * dy\n );\n}\n\nexports.pointsOnRectangle = function(cell) {\n var len = cell.length;\n if(len !== 5) return false;\n\n for(var j = 1; j < 3; j++) {\n var e01 = cell[0][j] - cell[1][j];\n var e32 = cell[3][j] - cell[2][j];\n\n if(!almostEq(e01, e32)) return false;\n\n var e03 = cell[0][j] - cell[3][j];\n var e12 = cell[1][j] - cell[2][j];\n if(!almostEq(e03, e12)) return false;\n }\n\n // N.B. rotated rectangles are not valid rects since rotation is not supported in shapes for now.\n if(\n !almostEq(cell[0][1], cell[1][1]) &&\n !almostEq(cell[0][1], cell[3][1])\n ) return false;\n\n // reject cases with zero area\n return !!(\n dist(cell[0], cell[1]) *\n dist(cell[0], cell[3])\n );\n};\n\nexports.pointsOnEllipse = function(cell) {\n var len = cell.length;\n if(len !== CIRCLE_SIDES + 1) return false;\n\n // opposite diagonals should be the same\n len = CIRCLE_SIDES;\n for(var i = 0; i < len; i++) {\n var k = (len * 2 - i) % len;\n\n var k2 = (len / 2 + k) % len;\n var i2 = (len / 2 + i) % len;\n\n if(!almostEq(\n dist(cell[i], cell[i2]),\n dist(cell[k], cell[k2])\n )) return false;\n }\n return true;\n};\n\nexports.handleEllipse = function(isEllipse, start, end) {\n if(!isEllipse) return [start, end]; // i.e. case of line\n\n var pos = exports.ellipseOver({\n x0: start[0],\n y0: start[1],\n x1: end[0],\n y1: end[1]\n });\n\n var cx = (pos.x1 + pos.x0) / 2;\n var cy = (pos.y1 + pos.y0) / 2;\n var rx = (pos.x1 - pos.x0) / 2;\n var ry = (pos.y1 - pos.y0) / 2;\n\n // make a circle when one dimension is zero\n if(!rx) rx = ry = ry / SQRT2;\n if(!ry) ry = rx = rx / SQRT2;\n\n var cell = [];\n for(var i = 0; i < CIRCLE_SIDES; i++) {\n var t = i * 2 * Math.PI / CIRCLE_SIDES;\n cell.push([\n cx + rx * Math.cos(t),\n cy + ry * Math.sin(t),\n ]);\n }\n return cell;\n};\n\nexports.ellipseOver = function(pos) {\n var x0 = pos.x0;\n var y0 = pos.y0;\n var x1 = pos.x1;\n var y1 = pos.y1;\n\n var dx = x1 - x0;\n var dy = y1 - y0;\n\n x0 -= dx;\n y0 -= dy;\n\n var cx = (x0 + x1) / 2;\n var cy = (y0 + y1) / 2;\n\n var scale = SQRT2;\n dx *= scale;\n dy *= scale;\n\n return {\n x0: cx - dx,\n y0: cy - dy,\n x1: cx + dx,\n y1: cy + dy\n };\n};\n\nexports.fixDatesForPaths = function(polygons, xaxis, yaxis) {\n var xIsDate = xaxis.type === 'date';\n var yIsDate = yaxis.type === 'date';\n if(!xIsDate && !yIsDate) return polygons;\n\n for(var i = 0; i < polygons.length; i++) {\n for(var j = 0; j < polygons[i].length; j++) {\n for(var k = 0; k + 2 < polygons[i][j].length; k += 2) {\n if(xIsDate) polygons[i][j][k + 1] = polygons[i][j][k + 1].replace(' ', '_');\n if(yIsDate) polygons[i][j][k + 2] = polygons[i][j][k + 2].replace(' ', '_');\n }\n }\n }\n\n return polygons;\n};\n\n},{\"../../selections/helpers\":454,\"./constants\":464,\"parse-svg-path\":250}],467:[function(_dereq_,module,exports){\n'use strict';\n\nvar dragHelpers = _dereq_('../../dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\nvar openMode = dragHelpers.openMode;\n\nvar constants = _dereq_('./constants');\nvar i000 = constants.i000;\nvar i090 = constants.i090;\nvar i180 = constants.i180;\nvar i270 = constants.i270;\nvar cos45 = constants.cos45;\nvar sin45 = constants.sin45;\n\nvar cartesianHelpers = _dereq_('../../selections/helpers');\nvar p2r = cartesianHelpers.p2r;\nvar r2p = cartesianHelpers.r2p;\n\nvar handleOutline = _dereq_('.././handle_outline');\nvar clearOutline = handleOutline.clearOutline;\n\nvar helpers = _dereq_('./helpers');\nvar readPaths = helpers.readPaths;\nvar writePaths = helpers.writePaths;\nvar ellipseOver = helpers.ellipseOver;\nvar fixDatesForPaths = helpers.fixDatesForPaths;\n\nmodule.exports = function newShapes(outlines, dragOptions) {\n if(!outlines.length) return;\n var e = outlines[0][0]; // pick first\n if(!e) return;\n var d = e.getAttribute('d');\n\n var gd = dragOptions.gd;\n var newStyle = gd._fullLayout.newshape;\n\n var plotinfo = dragOptions.plotinfo;\n var xaxis = plotinfo.xaxis;\n var yaxis = plotinfo.yaxis;\n var xPaper = !!plotinfo.domain || !plotinfo.xaxis;\n var yPaper = !!plotinfo.domain || !plotinfo.yaxis;\n\n var isActiveShape = dragOptions.isActiveShape;\n var dragmode = dragOptions.dragmode;\n\n var shapes = (gd.layout || {}).shapes || [];\n\n if(!drawMode(dragmode) && isActiveShape !== undefined) {\n var id = gd._fullLayout._activeShapeIndex;\n if(id < shapes.length) {\n switch(gd._fullLayout.shapes[id].type) {\n case 'rect':\n dragmode = 'drawrect';\n break;\n case 'circle':\n dragmode = 'drawcircle';\n break;\n case 'line':\n dragmode = 'drawline';\n break;\n case 'path':\n var path = shapes[id].path || '';\n if(path[path.length - 1] === 'Z') {\n dragmode = 'drawclosedpath';\n } else {\n dragmode = 'drawopenpath';\n }\n break;\n }\n }\n }\n\n var isOpenMode = openMode(dragmode);\n\n var polygons = readPaths(d, gd, plotinfo, isActiveShape);\n\n var newShape = {\n editable: true,\n\n xref: xPaper ? 'paper' : xaxis._id,\n yref: yPaper ? 'paper' : yaxis._id,\n\n layer: newStyle.layer,\n opacity: newStyle.opacity,\n line: {\n color: newStyle.line.color,\n width: newStyle.line.width,\n dash: newStyle.line.dash\n }\n };\n\n if(!isOpenMode) {\n newShape.fillcolor = newStyle.fillcolor;\n newShape.fillrule = newStyle.fillrule;\n }\n\n var cell;\n // line, rect and circle can be in one cell\n // only define cell if there is single cell\n if(polygons.length === 1) cell = polygons[0];\n\n if(\n cell &&\n cell.length === 5 && // ensure we only have 4 corners for a rect\n dragmode === 'drawrect'\n ) {\n newShape.type = 'rect';\n newShape.x0 = cell[0][1];\n newShape.y0 = cell[0][2];\n newShape.x1 = cell[2][1];\n newShape.y1 = cell[2][2];\n } else if(\n cell &&\n dragmode === 'drawline'\n ) {\n newShape.type = 'line';\n newShape.x0 = cell[0][1];\n newShape.y0 = cell[0][2];\n newShape.x1 = cell[1][1];\n newShape.y1 = cell[1][2];\n } else if(\n cell &&\n dragmode === 'drawcircle'\n ) {\n newShape.type = 'circle'; // an ellipse!\n\n var xA = cell[i000][1];\n var xB = cell[i090][1];\n var xC = cell[i180][1];\n var xD = cell[i270][1];\n\n var yA = cell[i000][2];\n var yB = cell[i090][2];\n var yC = cell[i180][2];\n var yD = cell[i270][2];\n\n var xDateOrLog = plotinfo.xaxis && (\n plotinfo.xaxis.type === 'date' ||\n plotinfo.xaxis.type === 'log'\n );\n\n var yDateOrLog = plotinfo.yaxis && (\n plotinfo.yaxis.type === 'date' ||\n plotinfo.yaxis.type === 'log'\n );\n\n if(xDateOrLog) {\n xA = r2p(plotinfo.xaxis, xA);\n xB = r2p(plotinfo.xaxis, xB);\n xC = r2p(plotinfo.xaxis, xC);\n xD = r2p(plotinfo.xaxis, xD);\n }\n\n if(yDateOrLog) {\n yA = r2p(plotinfo.yaxis, yA);\n yB = r2p(plotinfo.yaxis, yB);\n yC = r2p(plotinfo.yaxis, yC);\n yD = r2p(plotinfo.yaxis, yD);\n }\n\n var x0 = (xB + xD) / 2;\n var y0 = (yA + yC) / 2;\n var rx = (xD - xB + xC - xA) / 2;\n var ry = (yD - yB + yC - yA) / 2;\n var pos = ellipseOver({\n x0: x0,\n y0: y0,\n x1: x0 + rx * cos45,\n y1: y0 + ry * sin45\n });\n\n if(xDateOrLog) {\n pos.x0 = p2r(plotinfo.xaxis, pos.x0);\n pos.x1 = p2r(plotinfo.xaxis, pos.x1);\n }\n\n if(yDateOrLog) {\n pos.y0 = p2r(plotinfo.yaxis, pos.y0);\n pos.y1 = p2r(plotinfo.yaxis, pos.y1);\n }\n\n newShape.x0 = pos.x0;\n newShape.y0 = pos.y0;\n newShape.x1 = pos.x1;\n newShape.y1 = pos.y1;\n } else {\n newShape.type = 'path';\n if(xaxis && yaxis) fixDatesForPaths(polygons, xaxis, yaxis);\n newShape.path = writePaths(polygons);\n cell = null;\n }\n\n clearOutline(gd);\n\n var editHelpers = dragOptions.editHelpers;\n var modifyItem = (editHelpers || {}).modifyItem;\n\n var allShapes = [];\n for(var q = 0; q < shapes.length; q++) {\n var beforeEdit = gd._fullLayout.shapes[q];\n allShapes[q] = beforeEdit._input;\n\n if(\n isActiveShape !== undefined &&\n q === gd._fullLayout._activeShapeIndex\n ) {\n var afterEdit = newShape;\n\n switch(beforeEdit.type) {\n case 'line':\n case 'rect':\n case 'circle':\n modifyItem('x0', afterEdit.x0);\n modifyItem('x1', afterEdit.x1);\n modifyItem('y0', afterEdit.y0);\n modifyItem('y1', afterEdit.y1);\n break;\n\n case 'path':\n modifyItem('path', afterEdit.path);\n break;\n }\n }\n }\n\n if(isActiveShape === undefined) {\n allShapes.push(newShape); // add new shape\n return allShapes;\n }\n\n return editHelpers ? editHelpers.getUpdateObj() : {};\n};\n\n},{\"../../dragelement/helpers\":385,\"../../selections/helpers\":454,\".././handle_outline\":468,\"./constants\":464,\"./helpers\":466}],468:[function(_dereq_,module,exports){\n'use strict';\n\nfunction clearOutlineControllers(gd) {\n var zoomLayer = gd._fullLayout._zoomlayer;\n if(zoomLayer) {\n zoomLayer.selectAll('.outline-controllers').remove();\n }\n}\n\nfunction clearOutline(gd) {\n var zoomLayer = gd._fullLayout._zoomlayer;\n if(zoomLayer) {\n // until we get around to persistent selections, remove the outline\n // here. The selection itself will be removed when the plot redraws\n // at the end.\n zoomLayer.selectAll('.select-outline').remove();\n }\n\n gd._fullLayout._outlining = false;\n}\n\nmodule.exports = {\n clearOutlineControllers: clearOutlineControllers,\n clearOutline: clearOutline\n};\n\n},{}],469:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\n// special position conversion functions... category axis positions can't be\n// specified by their data values, because they don't make a continuous mapping.\n// so these have to be specified in terms of the category serial numbers,\n// but can take fractional values. Other axis types we specify position based on\n// the actual data values.\n// TODO: in V3.0 (when log axis ranges are in data units) range and shape position\n// will be identical, so rangeToShapePosition and shapePositionToRange can be\n// removed entirely.\n\nexports.rangeToShapePosition = function(ax) {\n return (ax.type === 'log') ? ax.r2d : function(v) { return v; };\n};\n\nexports.shapePositionToRange = function(ax) {\n return (ax.type === 'log') ? ax.d2r : function(v) { return v; };\n};\n\nexports.decodeDate = function(convertToPx) {\n return function(v) {\n if(v.replace) v = v.replace('_', ' ');\n return convertToPx(v);\n };\n};\n\nexports.encodeDate = function(convertToDate) {\n return function(v) { return convertToDate(v).replace(' ', '_'); };\n};\n\nexports.extractPathCoords = function(path, paramsToUse, isRaw) {\n var extractedCoordinates = [];\n\n var segments = path.match(constants.segmentRE);\n segments.forEach(function(segment) {\n var relevantParamIdx = paramsToUse[segment.charAt(0)].drawn;\n if(relevantParamIdx === undefined) return;\n\n var params = segment.substr(1).match(constants.paramRE);\n if(!params || params.length < relevantParamIdx) return;\n\n var str = params[relevantParamIdx];\n var pos = isRaw ? str : Lib.cleanNumber(str);\n\n extractedCoordinates.push(pos);\n });\n\n return extractedCoordinates;\n};\n\nexports.getDataToPixel = function(gd, axis, isVertical, refType) {\n var gs = gd._fullLayout._size;\n var dataToPixel;\n\n if(axis) {\n if(refType === 'domain') {\n dataToPixel = function(v) {\n return axis._length * (isVertical ? (1 - v) : v) + axis._offset;\n };\n } else {\n var d2r = exports.shapePositionToRange(axis);\n\n dataToPixel = function(v) {\n return axis._offset + axis.r2p(d2r(v, true));\n };\n\n if(axis.type === 'date') dataToPixel = exports.decodeDate(dataToPixel);\n }\n } else if(isVertical) {\n dataToPixel = function(v) { return gs.t + gs.h * (1 - v); };\n } else {\n dataToPixel = function(v) { return gs.l + gs.w * v; };\n }\n\n return dataToPixel;\n};\n\nexports.getPixelToData = function(gd, axis, isVertical, opt) {\n var gs = gd._fullLayout._size;\n var pixelToData;\n\n if(axis) {\n if(opt === 'domain') {\n pixelToData = function(p) {\n var q = (p - axis._offset) / axis._length;\n return isVertical ? 1 - q : q;\n };\n } else {\n var r2d = exports.rangeToShapePosition(axis);\n pixelToData = function(p) { return r2d(axis.p2r(p - axis._offset)); };\n }\n } else if(isVertical) {\n pixelToData = function(p) { return 1 - (p - gs.t) / gs.h; };\n } else {\n pixelToData = function(p) { return (p - gs.l) / gs.w; };\n }\n\n return pixelToData;\n};\n\n/**\n * Based on the given stroke width, rounds the passed\n * position value to represent either a full or half pixel.\n *\n * In case of an odd stroke width (e.g. 1), this measure ensures\n * that a stroke positioned at the returned position isn't rendered\n * blurry due to anti-aliasing.\n *\n * In case of an even stroke width (e.g. 2), this measure ensures\n * that the position value is transformed to a full pixel value\n * so that anti-aliasing doesn't take effect either.\n *\n * @param {number} pos The raw position value to be transformed\n * @param {number} strokeWidth The stroke width\n * @returns {number} either an integer or a .5 decimal number\n */\nexports.roundPositionForSharpStrokeRendering = function(pos, strokeWidth) {\n var strokeWidthIsOdd = Math.round(strokeWidth % 2) === 1;\n var posValAsInt = Math.round(pos);\n\n return strokeWidthIsOdd ? posValAsInt + 0.5 : posValAsInt;\n};\n\nexports.makeShapesOptionsAndPlotinfo = function(gd, index) {\n var options = gd._fullLayout.shapes[index] || {};\n\n var plotinfo = gd._fullLayout._plots[options.xref + options.yref];\n var hasPlotinfo = !!plotinfo;\n if(hasPlotinfo) {\n plotinfo._hadPlotinfo = true;\n } else {\n plotinfo = {};\n if(options.xref && options.xref !== 'paper') plotinfo.xaxis = gd._fullLayout[options.xref + 'axis'];\n if(options.yref && options.yref !== 'paper') plotinfo.yaxis = gd._fullLayout[options.yref + 'axis'];\n }\n\n plotinfo.xsizemode = options.xsizemode;\n plotinfo.ysizemode = options.ysizemode;\n plotinfo.xanchor = options.xanchor;\n plotinfo.yanchor = options.yanchor;\n\n return {\n options: options,\n plotinfo: plotinfo\n };\n};\n\n// TODO: move to selections helpers?\nexports.makeSelectionsOptionsAndPlotinfo = function(gd, index) {\n var options = gd._fullLayout.selections[index] || {};\n\n var plotinfo = gd._fullLayout._plots[options.xref + options.yref];\n var hasPlotinfo = !!plotinfo;\n if(hasPlotinfo) {\n plotinfo._hadPlotinfo = true;\n } else {\n plotinfo = {};\n if(options.xref) plotinfo.xaxis = gd._fullLayout[options.xref + 'axis'];\n if(options.yref) plotinfo.yaxis = gd._fullLayout[options.yref + 'axis'];\n }\n\n return {\n options: options,\n plotinfo: plotinfo\n };\n};\n\n\nexports.getPathString = function(gd, options) {\n var type = options.type;\n var xRefType = Axes.getRefType(options.xref);\n var yRefType = Axes.getRefType(options.yref);\n var xa = Axes.getFromId(gd, options.xref);\n var ya = Axes.getFromId(gd, options.yref);\n var gs = gd._fullLayout._size;\n var x2r, x2p, y2r, y2p;\n var x0, x1, y0, y1;\n\n if(xa) {\n if(xRefType === 'domain') {\n x2p = function(v) { return xa._offset + xa._length * v; };\n } else {\n x2r = exports.shapePositionToRange(xa);\n x2p = function(v) { return xa._offset + xa.r2p(x2r(v, true)); };\n }\n } else {\n x2p = function(v) { return gs.l + gs.w * v; };\n }\n\n if(ya) {\n if(yRefType === 'domain') {\n y2p = function(v) { return ya._offset + ya._length * (1 - v); };\n } else {\n y2r = exports.shapePositionToRange(ya);\n y2p = function(v) { return ya._offset + ya.r2p(y2r(v, true)); };\n }\n } else {\n y2p = function(v) { return gs.t + gs.h * (1 - v); };\n }\n\n if(type === 'path') {\n if(xa && xa.type === 'date') x2p = exports.decodeDate(x2p);\n if(ya && ya.type === 'date') y2p = exports.decodeDate(y2p);\n return convertPath(options, x2p, y2p);\n }\n\n if(options.xsizemode === 'pixel') {\n var xAnchorPos = x2p(options.xanchor);\n x0 = xAnchorPos + options.x0;\n x1 = xAnchorPos + options.x1;\n } else {\n x0 = x2p(options.x0);\n x1 = x2p(options.x1);\n }\n\n if(options.ysizemode === 'pixel') {\n var yAnchorPos = y2p(options.yanchor);\n y0 = yAnchorPos - options.y0;\n y1 = yAnchorPos - options.y1;\n } else {\n y0 = y2p(options.y0);\n y1 = y2p(options.y1);\n }\n\n if(type === 'line') return 'M' + x0 + ',' + y0 + 'L' + x1 + ',' + y1;\n if(type === 'rect') return 'M' + x0 + ',' + y0 + 'H' + x1 + 'V' + y1 + 'H' + x0 + 'Z';\n\n // circle\n var cx = (x0 + x1) / 2;\n var cy = (y0 + y1) / 2;\n var rx = Math.abs(cx - x0);\n var ry = Math.abs(cy - y0);\n var rArc = 'A' + rx + ',' + ry;\n var rightPt = (cx + rx) + ',' + cy;\n var topPt = cx + ',' + (cy - ry);\n return 'M' + rightPt + rArc + ' 0 1,1 ' + topPt +\n rArc + ' 0 0,1 ' + rightPt + 'Z';\n};\n\n\nfunction convertPath(options, x2p, y2p) {\n var pathIn = options.path;\n var xSizemode = options.xsizemode;\n var ySizemode = options.ysizemode;\n var xAnchor = options.xanchor;\n var yAnchor = options.yanchor;\n\n return pathIn.replace(constants.segmentRE, function(segment) {\n var paramNumber = 0;\n var segmentType = segment.charAt(0);\n var xParams = constants.paramIsX[segmentType];\n var yParams = constants.paramIsY[segmentType];\n var nParams = constants.numParams[segmentType];\n\n var paramString = segment.substr(1).replace(constants.paramRE, function(param) {\n if(xParams[paramNumber]) {\n if(xSizemode === 'pixel') param = x2p(xAnchor) + Number(param);\n else param = x2p(param);\n } else if(yParams[paramNumber]) {\n if(ySizemode === 'pixel') param = y2p(yAnchor) - Number(param);\n else param = y2p(param);\n }\n paramNumber++;\n\n if(paramNumber > nParams) param = 'X';\n return param;\n });\n\n if(paramNumber > nParams) {\n paramString = paramString.replace(/[\\s,]*X.*/, '');\n Lib.log('Ignoring extra params in segment ' + segment);\n }\n\n return segmentType + paramString;\n });\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"./constants\":459}],470:[function(_dereq_,module,exports){\n'use strict';\n\nvar drawModule = _dereq_('./draw');\n\nmodule.exports = {\n moduleType: 'component',\n name: 'shapes',\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n supplyDrawNewShapeDefaults: _dereq_('./draw_newshape/defaults'),\n includeBasePlot: _dereq_('../../plots/cartesian/include_components')('shapes'),\n\n calcAutorange: _dereq_('./calc_autorange'),\n draw: drawModule.draw,\n drawOne: drawModule.drawOne\n};\n\n},{\"../../plots/cartesian/include_components\":577,\"./attributes\":457,\"./calc_autorange\":458,\"./defaults\":460,\"./draw\":462,\"./draw_newshape/defaults\":465}],471:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar padAttrs = _dereq_('../../plots/pad_attributes');\nvar extendDeepAll = _dereq_('../../lib/extend').extendDeepAll;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar animationAttrs = _dereq_('../../plots/animation_attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar constants = _dereq_('./constants');\n\nvar stepsAttrs = templatedArray('step', {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n method: {\n valType: 'enumerated',\n values: ['restyle', 'relayout', 'animate', 'update', 'skip'],\n dflt: 'restyle',\n },\n args: {\n valType: 'info_array',\n freeLength: true,\n items: [\n { valType: 'any' },\n { valType: 'any' },\n { valType: 'any' }\n ],\n },\n label: {\n valType: 'string',\n },\n value: {\n valType: 'string',\n },\n execute: {\n valType: 'boolean',\n dflt: true,\n }\n});\n\nmodule.exports = overrideAll(templatedArray('slider', {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n\n active: {\n valType: 'number',\n min: 0,\n dflt: 0,\n },\n\n steps: stepsAttrs,\n\n lenmode: {\n valType: 'enumerated',\n values: ['fraction', 'pixels'],\n dflt: 'fraction',\n },\n len: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: 0,\n },\n pad: extendDeepAll(padAttrs({editType: 'arraydraw'}), {\n }, {t: {dflt: 20}}),\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'left',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: 0,\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'top',\n },\n\n transition: {\n duration: {\n valType: 'number',\n min: 0,\n dflt: 150,\n },\n easing: {\n valType: 'enumerated',\n values: animationAttrs.transition.easing.values,\n dflt: 'cubic-in-out',\n }\n },\n\n currentvalue: {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n\n xanchor: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n dflt: 'left',\n },\n\n offset: {\n valType: 'number',\n dflt: 10,\n },\n\n prefix: {\n valType: 'string',\n },\n\n suffix: {\n valType: 'string',\n },\n\n font: fontAttrs({\n })\n },\n\n font: fontAttrs({\n }),\n\n activebgcolor: {\n valType: 'color',\n dflt: constants.gripBgActiveColor,\n },\n bgcolor: {\n valType: 'color',\n dflt: constants.railBgColor,\n },\n bordercolor: {\n valType: 'color',\n dflt: constants.railBorderColor,\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: constants.railBorderWidth,\n },\n ticklen: {\n valType: 'number',\n min: 0,\n dflt: constants.tickLength,\n },\n tickcolor: {\n valType: 'color',\n dflt: constants.tickColor,\n },\n tickwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n minorticklen: {\n valType: 'number',\n min: 0,\n dflt: constants.minorTickLength,\n }\n}), 'arraydraw', 'from-root');\n\n},{\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../../plots/animation_attributes\":560,\"../../plots/font_attributes\":594,\"../../plots/pad_attributes\":627,\"./constants\":472}],472:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n\n // layout attribute name\n name: 'sliders',\n\n // class names\n containerClassName: 'slider-container',\n groupClassName: 'slider-group',\n inputAreaClass: 'slider-input-area',\n railRectClass: 'slider-rail-rect',\n railTouchRectClass: 'slider-rail-touch-rect',\n gripRectClass: 'slider-grip-rect',\n tickRectClass: 'slider-tick-rect',\n inputProxyClass: 'slider-input-proxy',\n labelsClass: 'slider-labels',\n labelGroupClass: 'slider-label-group',\n labelClass: 'slider-label',\n currentValueClass: 'slider-current-value',\n\n railHeight: 5,\n\n // DOM attribute name in button group keeping track\n // of active update menu\n menuIndexAttrName: 'slider-active-index',\n\n // id root pass to Plots.autoMargin\n autoMarginIdRoot: 'slider-',\n\n // min item width / height\n minWidth: 30,\n minHeight: 30,\n\n // padding around item text\n textPadX: 40,\n\n // arrow offset off right edge\n arrowOffsetX: 4,\n\n railRadius: 2,\n railWidth: 5,\n railBorder: 4,\n railBorderWidth: 1,\n railBorderColor: '#bec8d9',\n railBgColor: '#f8fafc',\n\n // The distance of the rail from the edge of the touchable area\n // Slightly less than the step inset because of the curved edges\n // of the rail\n railInset: 8,\n\n // The distance from the extremal tick marks to the edge of the\n // touchable area. This is basically the same as the grip radius,\n // but for other styles it wouldn't really need to be.\n stepInset: 10,\n\n gripRadius: 10,\n gripWidth: 20,\n gripHeight: 20,\n gripBorder: 20,\n gripBorderWidth: 1,\n gripBorderColor: '#bec8d9',\n gripBgColor: '#f6f8fa',\n gripBgActiveColor: '#dbdde0',\n\n labelPadding: 8,\n labelOffset: 0,\n\n tickWidth: 1,\n tickColor: '#333',\n tickOffset: 25,\n tickLength: 7,\n\n minorTickOffset: 25,\n minorTickColor: '#333',\n minorTickLength: 4,\n\n // Extra space below the current value label:\n currentValuePadding: 8,\n currentValueInset: 0,\n};\n\n},{}],473:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\n\nvar name = constants.name;\nvar stepAttrs = attributes.steps;\n\n\nmodule.exports = function slidersDefaults(layoutIn, layoutOut) {\n handleArrayContainerDefaults(layoutIn, layoutOut, {\n name: name,\n handleItemDefaults: sliderDefaults\n });\n};\n\nfunction sliderDefaults(sliderIn, sliderOut, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(sliderIn, sliderOut, attributes, attr, dflt);\n }\n\n var steps = handleArrayContainerDefaults(sliderIn, sliderOut, {\n name: 'steps',\n handleItemDefaults: stepDefaults\n });\n\n var stepCount = 0;\n for(var i = 0; i < steps.length; i++) {\n if(steps[i].visible) stepCount++;\n }\n\n var visible;\n // If it has fewer than two options, it's not really a slider\n if(stepCount < 2) visible = sliderOut.visible = false;\n else visible = coerce('visible');\n if(!visible) return;\n\n sliderOut._stepCount = stepCount;\n var visSteps = sliderOut._visibleSteps = Lib.filterVisible(steps);\n\n var active = coerce('active');\n if(!(steps[active] || {}).visible) sliderOut.active = visSteps[0]._index;\n\n coerce('x');\n coerce('y');\n Lib.noneOrAll(sliderIn, sliderOut, ['x', 'y']);\n\n coerce('xanchor');\n coerce('yanchor');\n\n coerce('len');\n coerce('lenmode');\n\n coerce('pad.t');\n coerce('pad.r');\n coerce('pad.b');\n coerce('pad.l');\n\n Lib.coerceFont(coerce, 'font', layoutOut.font);\n\n var currentValueIsVisible = coerce('currentvalue.visible');\n\n if(currentValueIsVisible) {\n coerce('currentvalue.xanchor');\n coerce('currentvalue.prefix');\n coerce('currentvalue.suffix');\n coerce('currentvalue.offset');\n\n Lib.coerceFont(coerce, 'currentvalue.font', sliderOut.font);\n }\n\n coerce('transition.duration');\n coerce('transition.easing');\n\n coerce('bgcolor');\n coerce('activebgcolor');\n coerce('bordercolor');\n coerce('borderwidth');\n coerce('ticklen');\n coerce('tickwidth');\n coerce('tickcolor');\n coerce('minorticklen');\n}\n\nfunction stepDefaults(valueIn, valueOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(valueIn, valueOut, stepAttrs, attr, dflt);\n }\n\n var visible;\n if(valueIn.method !== 'skip' && !Array.isArray(valueIn.args)) {\n visible = valueOut.visible = false;\n } else visible = coerce('visible');\n\n if(visible) {\n coerce('method');\n coerce('args');\n var label = coerce('label', 'step-' + valueOut._index);\n coerce('value', label);\n coerce('execute');\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"./attributes\":471,\"./constants\":472}],474:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar constants = _dereq_('./constants');\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar FROM_TL = alignmentConstants.FROM_TL;\nvar FROM_BR = alignmentConstants.FROM_BR;\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n var sliderData = makeSliderData(fullLayout, gd);\n\n // draw a container for *all* sliders:\n var sliders = fullLayout._infolayer\n .selectAll('g.' + constants.containerClassName)\n .data(sliderData.length > 0 ? [0] : []);\n\n sliders.enter().append('g')\n .classed(constants.containerClassName, true)\n .style('cursor', 'ew-resize');\n\n function clearSlider(sliderOpts) {\n if(sliderOpts._commandObserver) {\n sliderOpts._commandObserver.remove();\n delete sliderOpts._commandObserver;\n }\n\n // Most components don't need to explicitly remove autoMargin, because\n // marginPushers does this - but slider updates don't go through\n // a full replot so we need to explicitly remove it.\n Plots.autoMargin(gd, autoMarginId(sliderOpts));\n }\n\n sliders.exit().each(function() {\n d3.select(this).selectAll('g.' + constants.groupClassName)\n .each(clearSlider);\n })\n .remove();\n\n // Return early if no menus visible:\n if(sliderData.length === 0) return;\n\n var sliderGroups = sliders.selectAll('g.' + constants.groupClassName)\n .data(sliderData, keyFunction);\n\n sliderGroups.enter().append('g')\n .classed(constants.groupClassName, true);\n\n sliderGroups.exit()\n .each(clearSlider)\n .remove();\n\n // Find the dimensions of the sliders:\n for(var i = 0; i < sliderData.length; i++) {\n var sliderOpts = sliderData[i];\n findDimensions(gd, sliderOpts);\n }\n\n sliderGroups.each(function(sliderOpts) {\n var gSlider = d3.select(this);\n\n computeLabelSteps(sliderOpts);\n\n Plots.manageCommandObserver(gd, sliderOpts, sliderOpts._visibleSteps, function(data) {\n // NB: Same as below. This is *not* always the same as sliderOpts since\n // if a new set of steps comes in, the reference in this callback would\n // be invalid. We need to refetch it from the slider group, which is\n // the join data that creates this slider. So if this slider still exists,\n // the group should be valid, *to the best of my knowledge.* If not,\n // we'd have to look it up by d3 data join index/key.\n var opts = gSlider.data()[0];\n\n if(opts.active === data.index) return;\n if(opts._dragging) return;\n\n setActive(gd, gSlider, opts, data.index, false, true);\n });\n\n drawSlider(gd, d3.select(this), sliderOpts);\n });\n};\n\nfunction autoMarginId(sliderOpts) {\n return constants.autoMarginIdRoot + sliderOpts._index;\n}\n\n// This really only just filters by visibility:\nfunction makeSliderData(fullLayout, gd) {\n var contOpts = fullLayout[constants.name];\n var sliderData = [];\n\n for(var i = 0; i < contOpts.length; i++) {\n var item = contOpts[i];\n if(!item.visible) continue;\n item._gd = gd;\n sliderData.push(item);\n }\n\n return sliderData;\n}\n\n// This is set in the defaults step:\nfunction keyFunction(opts) {\n return opts._index;\n}\n\n// Compute the dimensions (mutates sliderOpts):\nfunction findDimensions(gd, sliderOpts) {\n var sliderLabels = Drawing.tester.selectAll('g.' + constants.labelGroupClass)\n .data(sliderOpts._visibleSteps);\n\n sliderLabels.enter().append('g')\n .classed(constants.labelGroupClass, true);\n\n // loop over fake buttons to find width / height\n var maxLabelWidth = 0;\n var labelHeight = 0;\n sliderLabels.each(function(stepOpts) {\n var labelGroup = d3.select(this);\n\n var text = drawLabel(labelGroup, {step: stepOpts}, sliderOpts);\n\n var textNode = text.node();\n if(textNode) {\n var bBox = Drawing.bBox(textNode);\n labelHeight = Math.max(labelHeight, bBox.height);\n maxLabelWidth = Math.max(maxLabelWidth, bBox.width);\n }\n });\n\n sliderLabels.remove();\n\n var dims = sliderOpts._dims = {};\n\n dims.inputAreaWidth = Math.max(\n constants.railWidth,\n constants.gripHeight\n );\n\n // calculate some overall dimensions - some of these are needed for\n // calculating the currentValue dimensions\n var graphSize = gd._fullLayout._size;\n dims.lx = graphSize.l + graphSize.w * sliderOpts.x;\n dims.ly = graphSize.t + graphSize.h * (1 - sliderOpts.y);\n\n if(sliderOpts.lenmode === 'fraction') {\n // fraction:\n dims.outerLength = Math.round(graphSize.w * sliderOpts.len);\n } else {\n // pixels:\n dims.outerLength = sliderOpts.len;\n }\n\n // The length of the rail, *excluding* padding on either end:\n dims.inputAreaStart = 0;\n dims.inputAreaLength = Math.round(dims.outerLength - sliderOpts.pad.l - sliderOpts.pad.r);\n\n var textableInputLength = dims.inputAreaLength - 2 * constants.stepInset;\n var availableSpacePerLabel = textableInputLength / (sliderOpts._stepCount - 1);\n var computedSpacePerLabel = maxLabelWidth + constants.labelPadding;\n dims.labelStride = Math.max(1, Math.ceil(computedSpacePerLabel / availableSpacePerLabel));\n dims.labelHeight = labelHeight;\n\n // loop over all possible values for currentValue to find the\n // area we need for it\n dims.currentValueMaxWidth = 0;\n dims.currentValueHeight = 0;\n dims.currentValueTotalHeight = 0;\n dims.currentValueMaxLines = 1;\n\n if(sliderOpts.currentvalue.visible) {\n // Get the dimensions of the current value label:\n var dummyGroup = Drawing.tester.append('g');\n\n sliderLabels.each(function(stepOpts) {\n var curValPrefix = drawCurrentValue(dummyGroup, sliderOpts, stepOpts.label);\n var curValSize = (curValPrefix.node() && Drawing.bBox(curValPrefix.node())) || {width: 0, height: 0};\n var lines = svgTextUtils.lineCount(curValPrefix);\n dims.currentValueMaxWidth = Math.max(dims.currentValueMaxWidth, Math.ceil(curValSize.width));\n dims.currentValueHeight = Math.max(dims.currentValueHeight, Math.ceil(curValSize.height));\n dims.currentValueMaxLines = Math.max(dims.currentValueMaxLines, lines);\n });\n\n dims.currentValueTotalHeight = dims.currentValueHeight + sliderOpts.currentvalue.offset;\n\n dummyGroup.remove();\n }\n\n dims.height = dims.currentValueTotalHeight + constants.tickOffset + sliderOpts.ticklen + constants.labelOffset + dims.labelHeight + sliderOpts.pad.t + sliderOpts.pad.b;\n\n var xanchor = 'left';\n if(Lib.isRightAnchor(sliderOpts)) {\n dims.lx -= dims.outerLength;\n xanchor = 'right';\n }\n if(Lib.isCenterAnchor(sliderOpts)) {\n dims.lx -= dims.outerLength / 2;\n xanchor = 'center';\n }\n\n var yanchor = 'top';\n if(Lib.isBottomAnchor(sliderOpts)) {\n dims.ly -= dims.height;\n yanchor = 'bottom';\n }\n if(Lib.isMiddleAnchor(sliderOpts)) {\n dims.ly -= dims.height / 2;\n yanchor = 'middle';\n }\n\n dims.outerLength = Math.ceil(dims.outerLength);\n dims.height = Math.ceil(dims.height);\n dims.lx = Math.round(dims.lx);\n dims.ly = Math.round(dims.ly);\n\n var marginOpts = {\n y: sliderOpts.y,\n b: dims.height * FROM_BR[yanchor],\n t: dims.height * FROM_TL[yanchor]\n };\n\n if(sliderOpts.lenmode === 'fraction') {\n marginOpts.l = 0;\n marginOpts.xl = sliderOpts.x - sliderOpts.len * FROM_TL[xanchor];\n marginOpts.r = 0;\n marginOpts.xr = sliderOpts.x + sliderOpts.len * FROM_BR[xanchor];\n } else {\n marginOpts.x = sliderOpts.x;\n marginOpts.l = dims.outerLength * FROM_TL[xanchor];\n marginOpts.r = dims.outerLength * FROM_BR[xanchor];\n }\n\n Plots.autoMargin(gd, autoMarginId(sliderOpts), marginOpts);\n}\n\nfunction drawSlider(gd, sliderGroup, sliderOpts) {\n // This is related to the other long notes in this file regarding what happens\n // when slider steps disappear. This particular fix handles what happens when\n // the *current* slider step is removed. The drawing functions will error out\n // when they fail to find it, so the fix for now is that it will just draw the\n // slider in the first position but will not execute the command.\n if(!((sliderOpts.steps[sliderOpts.active] || {}).visible)) {\n sliderOpts.active = sliderOpts._visibleSteps[0]._index;\n }\n\n // These are carefully ordered for proper z-ordering:\n sliderGroup\n .call(drawCurrentValue, sliderOpts)\n .call(drawRail, sliderOpts)\n .call(drawLabelGroup, sliderOpts)\n .call(drawTicks, sliderOpts)\n .call(drawTouchRect, gd, sliderOpts)\n .call(drawGrip, gd, sliderOpts);\n\n var dims = sliderOpts._dims;\n\n // Position the rectangle:\n Drawing.setTranslate(sliderGroup, dims.lx + sliderOpts.pad.l, dims.ly + sliderOpts.pad.t);\n\n sliderGroup.call(setGripPosition, sliderOpts, false);\n sliderGroup.call(drawCurrentValue, sliderOpts);\n}\n\nfunction drawCurrentValue(sliderGroup, sliderOpts, valueOverride) {\n if(!sliderOpts.currentvalue.visible) return;\n\n var dims = sliderOpts._dims;\n var x0, textAnchor;\n\n switch(sliderOpts.currentvalue.xanchor) {\n case 'right':\n // This is anchored left and adjusted by the width of the longest label\n // so that the prefix doesn't move. The goal of this is to emphasize\n // what's actually changing and make the update less distracting.\n x0 = dims.inputAreaLength - constants.currentValueInset - dims.currentValueMaxWidth;\n textAnchor = 'left';\n break;\n case 'center':\n x0 = dims.inputAreaLength * 0.5;\n textAnchor = 'middle';\n break;\n default:\n x0 = constants.currentValueInset;\n textAnchor = 'left';\n }\n\n var text = Lib.ensureSingle(sliderGroup, 'text', constants.labelClass, function(s) {\n s.attr({\n 'text-anchor': textAnchor,\n 'data-notex': 1\n });\n });\n\n var str = sliderOpts.currentvalue.prefix ? sliderOpts.currentvalue.prefix : '';\n\n if(typeof valueOverride === 'string') {\n str += valueOverride;\n } else {\n var curVal = sliderOpts.steps[sliderOpts.active].label;\n var _meta = sliderOpts._gd._fullLayout._meta;\n if(_meta) curVal = Lib.templateString(curVal, _meta);\n str += curVal;\n }\n\n if(sliderOpts.currentvalue.suffix) {\n str += sliderOpts.currentvalue.suffix;\n }\n\n text.call(Drawing.font, sliderOpts.currentvalue.font)\n .text(str)\n .call(svgTextUtils.convertToTspans, sliderOpts._gd);\n\n var lines = svgTextUtils.lineCount(text);\n\n var y0 = (dims.currentValueMaxLines + 1 - lines) *\n sliderOpts.currentvalue.font.size * LINE_SPACING;\n\n svgTextUtils.positionText(text, x0, y0);\n\n return text;\n}\n\nfunction drawGrip(sliderGroup, gd, sliderOpts) {\n var grip = Lib.ensureSingle(sliderGroup, 'rect', constants.gripRectClass, function(s) {\n s.call(attachGripEvents, gd, sliderGroup, sliderOpts)\n .style('pointer-events', 'all');\n });\n\n grip.attr({\n width: constants.gripWidth,\n height: constants.gripHeight,\n rx: constants.gripRadius,\n ry: constants.gripRadius,\n })\n .call(Color.stroke, sliderOpts.bordercolor)\n .call(Color.fill, sliderOpts.bgcolor)\n .style('stroke-width', sliderOpts.borderwidth + 'px');\n}\n\nfunction drawLabel(item, data, sliderOpts) {\n var text = Lib.ensureSingle(item, 'text', constants.labelClass, function(s) {\n s.attr({\n 'text-anchor': 'middle',\n 'data-notex': 1\n });\n });\n\n var tx = data.step.label;\n var _meta = sliderOpts._gd._fullLayout._meta;\n if(_meta) tx = Lib.templateString(tx, _meta);\n\n text.call(Drawing.font, sliderOpts.font)\n .text(tx)\n .call(svgTextUtils.convertToTspans, sliderOpts._gd);\n\n return text;\n}\n\nfunction drawLabelGroup(sliderGroup, sliderOpts) {\n var labels = Lib.ensureSingle(sliderGroup, 'g', constants.labelsClass);\n var dims = sliderOpts._dims;\n\n var labelItems = labels.selectAll('g.' + constants.labelGroupClass)\n .data(dims.labelSteps);\n\n labelItems.enter().append('g')\n .classed(constants.labelGroupClass, true);\n\n labelItems.exit().remove();\n\n labelItems.each(function(d) {\n var item = d3.select(this);\n\n item.call(drawLabel, d, sliderOpts);\n\n Drawing.setTranslate(item,\n normalizedValueToPosition(sliderOpts, d.fraction),\n constants.tickOffset +\n sliderOpts.ticklen +\n // position is the baseline of the top line of text only, even\n // if the label spans multiple lines\n sliderOpts.font.size * LINE_SPACING +\n constants.labelOffset +\n dims.currentValueTotalHeight\n );\n });\n}\n\nfunction handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, doTransition) {\n var quantizedPosition = Math.round(normalizedPosition * (sliderOpts._stepCount - 1));\n var quantizedIndex = sliderOpts._visibleSteps[quantizedPosition]._index;\n\n if(quantizedIndex !== sliderOpts.active) {\n setActive(gd, sliderGroup, sliderOpts, quantizedIndex, true, doTransition);\n }\n}\n\nfunction setActive(gd, sliderGroup, sliderOpts, index, doCallback, doTransition) {\n var previousActive = sliderOpts.active;\n sliderOpts.active = index;\n\n // due to templating, it's possible this slider doesn't even exist yet\n arrayEditor(gd.layout, constants.name, sliderOpts)\n .applyUpdate('active', index);\n\n var step = sliderOpts.steps[sliderOpts.active];\n\n sliderGroup.call(setGripPosition, sliderOpts, doTransition);\n sliderGroup.call(drawCurrentValue, sliderOpts);\n\n gd.emit('plotly_sliderchange', {\n slider: sliderOpts,\n step: sliderOpts.steps[sliderOpts.active],\n interaction: doCallback,\n previousActive: previousActive\n });\n\n if(step && step.method && doCallback) {\n if(sliderGroup._nextMethod) {\n // If we've already queued up an update, just overwrite it with the most recent:\n sliderGroup._nextMethod.step = step;\n sliderGroup._nextMethod.doCallback = doCallback;\n sliderGroup._nextMethod.doTransition = doTransition;\n } else {\n sliderGroup._nextMethod = {step: step, doCallback: doCallback, doTransition: doTransition};\n sliderGroup._nextMethodRaf = window.requestAnimationFrame(function() {\n var _step = sliderGroup._nextMethod.step;\n if(!_step.method) return;\n\n if(_step.execute) {\n Plots.executeAPICommand(gd, _step.method, _step.args);\n }\n\n sliderGroup._nextMethod = null;\n sliderGroup._nextMethodRaf = null;\n });\n }\n }\n}\n\nfunction attachGripEvents(item, gd, sliderGroup) {\n var node = sliderGroup.node();\n var $gd = d3.select(gd);\n\n // NB: This is *not* the same as sliderOpts itself! These callbacks\n // are in a closure so this array won't actually be correct if the\n // steps have changed since this was initialized. The sliderGroup,\n // however, has not changed since that *is* the slider, so it must\n // be present to receive mouse events.\n function getSliderOpts() {\n return sliderGroup.data()[0];\n }\n\n function mouseDownHandler() {\n var sliderOpts = getSliderOpts();\n gd.emit('plotly_sliderstart', {slider: sliderOpts});\n\n var grip = sliderGroup.select('.' + constants.gripRectClass);\n\n d3.event.stopPropagation();\n d3.event.preventDefault();\n grip.call(Color.fill, sliderOpts.activebgcolor);\n\n var normalizedPosition = positionToNormalizedValue(sliderOpts, d3.mouse(node)[0]);\n handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, true);\n sliderOpts._dragging = true;\n\n function mouseMoveHandler() {\n var sliderOpts = getSliderOpts();\n var normalizedPosition = positionToNormalizedValue(sliderOpts, d3.mouse(node)[0]);\n handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, false);\n }\n\n $gd.on('mousemove', mouseMoveHandler);\n $gd.on('touchmove', mouseMoveHandler);\n\n function mouseUpHandler() {\n var sliderOpts = getSliderOpts();\n sliderOpts._dragging = false;\n grip.call(Color.fill, sliderOpts.bgcolor);\n $gd.on('mouseup', null);\n $gd.on('mousemove', null);\n $gd.on('touchend', null);\n $gd.on('touchmove', null);\n\n gd.emit('plotly_sliderend', {\n slider: sliderOpts,\n step: sliderOpts.steps[sliderOpts.active]\n });\n }\n\n $gd.on('mouseup', mouseUpHandler);\n $gd.on('touchend', mouseUpHandler);\n }\n\n item.on('mousedown', mouseDownHandler);\n item.on('touchstart', mouseDownHandler);\n}\n\nfunction drawTicks(sliderGroup, sliderOpts) {\n var tick = sliderGroup.selectAll('rect.' + constants.tickRectClass)\n .data(sliderOpts._visibleSteps);\n var dims = sliderOpts._dims;\n\n tick.enter().append('rect')\n .classed(constants.tickRectClass, true);\n\n tick.exit().remove();\n\n tick.attr({\n width: sliderOpts.tickwidth + 'px',\n 'shape-rendering': 'crispEdges'\n });\n\n tick.each(function(d, i) {\n var isMajor = i % dims.labelStride === 0;\n var item = d3.select(this);\n\n item\n .attr({height: isMajor ? sliderOpts.ticklen : sliderOpts.minorticklen})\n .call(Color.fill, isMajor ? sliderOpts.tickcolor : sliderOpts.tickcolor);\n\n Drawing.setTranslate(item,\n normalizedValueToPosition(sliderOpts, i / (sliderOpts._stepCount - 1)) - 0.5 * sliderOpts.tickwidth,\n (isMajor ? constants.tickOffset : constants.minorTickOffset) + dims.currentValueTotalHeight\n );\n });\n}\n\nfunction computeLabelSteps(sliderOpts) {\n var dims = sliderOpts._dims;\n dims.labelSteps = [];\n var nsteps = sliderOpts._stepCount;\n\n for(var i = 0; i < nsteps; i += dims.labelStride) {\n dims.labelSteps.push({\n fraction: i / (nsteps - 1),\n step: sliderOpts._visibleSteps[i]\n });\n }\n}\n\nfunction setGripPosition(sliderGroup, sliderOpts, doTransition) {\n var grip = sliderGroup.select('rect.' + constants.gripRectClass);\n\n var quantizedIndex = 0;\n for(var i = 0; i < sliderOpts._stepCount; i++) {\n if(sliderOpts._visibleSteps[i]._index === sliderOpts.active) {\n quantizedIndex = i;\n break;\n }\n }\n\n var x = normalizedValueToPosition(sliderOpts, quantizedIndex / (sliderOpts._stepCount - 1));\n\n // If this is true, then *this component* is already invoking its own command\n // and has triggered its own animation.\n if(sliderOpts._invokingCommand) return;\n\n var el = grip;\n if(doTransition && sliderOpts.transition.duration > 0) {\n el = el.transition()\n .duration(sliderOpts.transition.duration)\n .ease(sliderOpts.transition.easing);\n }\n\n // Drawing.setTranslate doesn't work here because of the transition duck-typing.\n // It's also not necessary because there are no other transitions to preserve.\n el.attr('transform', strTranslate(x - constants.gripWidth * 0.5, sliderOpts._dims.currentValueTotalHeight));\n}\n\n// Convert a number from [0-1] to a pixel position relative to the slider group container:\nfunction normalizedValueToPosition(sliderOpts, normalizedPosition) {\n var dims = sliderOpts._dims;\n return dims.inputAreaStart + constants.stepInset +\n (dims.inputAreaLength - 2 * constants.stepInset) * Math.min(1, Math.max(0, normalizedPosition));\n}\n\n// Convert a position relative to the slider group to a nubmer in [0, 1]\nfunction positionToNormalizedValue(sliderOpts, position) {\n var dims = sliderOpts._dims;\n return Math.min(1, Math.max(0, (position - constants.stepInset - dims.inputAreaStart) / (dims.inputAreaLength - 2 * constants.stepInset - 2 * dims.inputAreaStart)));\n}\n\nfunction drawTouchRect(sliderGroup, gd, sliderOpts) {\n var dims = sliderOpts._dims;\n var rect = Lib.ensureSingle(sliderGroup, 'rect', constants.railTouchRectClass, function(s) {\n s.call(attachGripEvents, gd, sliderGroup, sliderOpts)\n .style('pointer-events', 'all');\n });\n\n rect.attr({\n width: dims.inputAreaLength,\n height: Math.max(dims.inputAreaWidth, constants.tickOffset + sliderOpts.ticklen + dims.labelHeight)\n })\n .call(Color.fill, sliderOpts.bgcolor)\n .attr('opacity', 0);\n\n Drawing.setTranslate(rect, 0, dims.currentValueTotalHeight);\n}\n\nfunction drawRail(sliderGroup, sliderOpts) {\n var dims = sliderOpts._dims;\n var computedLength = dims.inputAreaLength - constants.railInset * 2;\n var rect = Lib.ensureSingle(sliderGroup, 'rect', constants.railRectClass);\n\n rect.attr({\n width: computedLength,\n height: constants.railWidth,\n rx: constants.railRadius,\n ry: constants.railRadius,\n 'shape-rendering': 'crispEdges'\n })\n .call(Color.stroke, sliderOpts.bordercolor)\n .call(Color.fill, sliderOpts.bgcolor)\n .style('stroke-width', sliderOpts.borderwidth + 'px');\n\n Drawing.setTranslate(rect,\n constants.railInset,\n (dims.inputAreaWidth - constants.railWidth) * 0.5 + dims.currentValueTotalHeight\n );\n}\n\n},{\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plot_api/plot_template\":555,\"../../plots/plots\":628,\"../color\":367,\"../drawing\":389,\"./constants\":472,\"@plotly/d3\":58}],475:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nmodule.exports = {\n moduleType: 'component',\n name: constants.name,\n\n layoutAttributes: _dereq_('./attributes'),\n supplyLayoutDefaults: _dereq_('./defaults'),\n\n draw: _dereq_('./draw')\n};\n\n},{\"./attributes\":471,\"./constants\":472,\"./defaults\":473,\"./draw\":474}],476:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../drawing');\nvar Color = _dereq_('../color');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar interactConstants = _dereq_('../../constants/interactions');\n\nvar OPPOSITE_SIDE = _dereq_('../../constants/alignment').OPPOSITE_SIDE;\nvar numStripRE = / [XY][0-9]* /;\n\n/**\n * Titles - (re)draw titles on the axes and plot:\n * @param {DOM element} gd - the graphDiv\n * @param {string} titleClass - the css class of this title\n * @param {object} options - how and what to draw\n * propContainer - the layout object containing `title` and `titlefont`\n * attributes that apply to this title\n * propName - the full name of the title property (for Plotly.relayout)\n * [traceIndex] - include only if this property applies to one trace\n * (such as a colorbar title) - then editing pipes to Plotly.restyle\n * instead of Plotly.relayout\n * placeholder - placeholder text for an empty editable title\n * [avoid] {object} - include if this title should move to avoid other elements\n * selection - d3 selection of elements to avoid\n * side - which direction to move if there is a conflict\n * [offsetLeft] - if these elements are subject to a translation\n * wrt the title element\n * [offsetTop]\n * attributes {object} - position and alignment attributes\n * x - pixels\n * y - pixels\n * text-anchor - start|middle|end\n * transform {object} - how to transform the title after positioning\n * rotate - degrees\n * offset - shift up/down in the rotated frame (unused?)\n * containerGroup - if an svg element already exists to hold this\n * title, include here. Otherwise it will go in fullLayout._infolayer\n * _meta {object (optional} - meta key-value to for title with\n * Lib.templateString, default to fullLayout._meta, if not provided\n *\n * @return {selection} d3 selection of title container group\n */\nfunction draw(gd, titleClass, options) {\n var cont = options.propContainer;\n var prop = options.propName;\n var placeholder = options.placeholder;\n var traceIndex = options.traceIndex;\n var avoid = options.avoid || {};\n var attributes = options.attributes;\n var transform = options.transform;\n var group = options.containerGroup;\n\n var fullLayout = gd._fullLayout;\n\n var opacity = 1;\n var isplaceholder = false;\n var title = cont.title;\n var txt = (title && title.text ? title.text : '').trim();\n\n var font = title && title.font ? title.font : {};\n var fontFamily = font.family;\n var fontSize = font.size;\n var fontColor = font.color;\n\n // only make this title editable if we positively identify its property\n // as one that has editing enabled.\n var editAttr;\n if(prop === 'title.text') editAttr = 'titleText';\n else if(prop.indexOf('axis') !== -1) editAttr = 'axisTitleText';\n else if(prop.indexOf('colorbar' !== -1)) editAttr = 'colorbarTitleText';\n var editable = gd._context.edits[editAttr];\n\n if(txt === '') opacity = 0;\n // look for placeholder text while stripping out numbers from eg X2, Y3\n // this is just for backward compatibility with the old version that had\n // \"Click to enter X2 title\" and may have gotten saved in some old plots,\n // we don't want this to show up when these are displayed.\n else if(txt.replace(numStripRE, ' % ') === placeholder.replace(numStripRE, ' % ')) {\n opacity = 0.2;\n isplaceholder = true;\n if(!editable) txt = '';\n }\n\n if(options._meta) {\n txt = Lib.templateString(txt, options._meta);\n } else if(fullLayout._meta) {\n txt = Lib.templateString(txt, fullLayout._meta);\n }\n\n var elShouldExist = txt || editable;\n\n var hColorbarMoveTitle;\n if(!group) {\n group = Lib.ensureSingle(fullLayout._infolayer, 'g', 'g-' + titleClass);\n hColorbarMoveTitle = fullLayout._hColorbarMoveTitle;\n }\n\n var el = group.selectAll('text')\n .data(elShouldExist ? [0] : []);\n el.enter().append('text');\n el.text(txt)\n // this is hacky, but convertToTspans uses the class\n // to determine whether to rotate mathJax...\n // so we need to clear out any old class and put the\n // correct one (only relevant for colorbars, at least\n // for now) - ie don't use .classed\n .attr('class', titleClass);\n el.exit().remove();\n\n if(!elShouldExist) return group;\n\n function titleLayout(titleEl) {\n Lib.syncOrAsync([drawTitle, scootTitle], titleEl);\n }\n\n function drawTitle(titleEl) {\n var transformVal;\n\n if(!transform && hColorbarMoveTitle) {\n transform = {};\n }\n\n if(transform) {\n transformVal = '';\n if(transform.rotate) {\n transformVal += 'rotate(' + [transform.rotate, attributes.x, attributes.y] + ')';\n }\n if(transform.offset || hColorbarMoveTitle) {\n transformVal += strTranslate(0, (transform.offset || 0) - (hColorbarMoveTitle || 0));\n }\n } else {\n transformVal = null;\n }\n\n titleEl.attr('transform', transformVal);\n\n titleEl.style({\n 'font-family': fontFamily,\n 'font-size': d3.round(fontSize, 2) + 'px',\n fill: Color.rgb(fontColor),\n opacity: opacity * Color.opacity(fontColor),\n 'font-weight': Plots.fontWeight\n })\n .attr(attributes)\n .call(svgTextUtils.convertToTspans, gd);\n\n return Plots.previousPromises(gd);\n }\n\n function scootTitle(titleElIn) {\n var titleGroup = d3.select(titleElIn.node().parentNode);\n\n if(avoid && avoid.selection && avoid.side && txt) {\n titleGroup.attr('transform', null);\n\n // move toward avoid.side (= left, right, top, bottom) if needed\n // can include pad (pixels, default 2)\n var backside = OPPOSITE_SIDE[avoid.side];\n var shiftSign = (avoid.side === 'left' || avoid.side === 'top') ? -1 : 1;\n var pad = isNumeric(avoid.pad) ? avoid.pad : 2;\n\n var titlebb = Drawing.bBox(titleGroup.node());\n var paperbb = {\n left: 0,\n top: 0,\n right: fullLayout.width,\n bottom: fullLayout.height\n };\n\n var maxshift = avoid.maxShift ||\n shiftSign * (paperbb[avoid.side] - titlebb[avoid.side]);\n var shift = 0;\n\n // Prevent the title going off the paper\n if(maxshift < 0) {\n shift = maxshift;\n } else {\n // so we don't have to offset each avoided element,\n // give the title the opposite offset\n var offsetLeft = avoid.offsetLeft || 0;\n var offsetTop = avoid.offsetTop || 0;\n titlebb.left -= offsetLeft;\n titlebb.right -= offsetLeft;\n titlebb.top -= offsetTop;\n titlebb.bottom -= offsetTop;\n\n // iterate over a set of elements (avoid.selection)\n // to avoid collisions with\n avoid.selection.each(function() {\n var avoidbb = Drawing.bBox(this);\n\n if(Lib.bBoxIntersect(titlebb, avoidbb, pad)) {\n shift = Math.max(shift, shiftSign * (\n avoidbb[avoid.side] - titlebb[backside]) + pad);\n }\n });\n shift = Math.min(maxshift, shift);\n }\n\n if(shift > 0 || maxshift < 0) {\n var shiftTemplate = {\n left: [-shift, 0],\n right: [shift, 0],\n top: [0, -shift],\n bottom: [0, shift]\n }[avoid.side];\n titleGroup.attr('transform', strTranslate(shiftTemplate[0], shiftTemplate[1]));\n }\n }\n }\n\n el.call(titleLayout);\n\n function setPlaceholder() {\n opacity = 0;\n isplaceholder = true;\n el.text(placeholder)\n .on('mouseover.opacity', function() {\n d3.select(this).transition()\n .duration(interactConstants.SHOW_PLACEHOLDER).style('opacity', 1);\n })\n .on('mouseout.opacity', function() {\n d3.select(this).transition()\n .duration(interactConstants.HIDE_PLACEHOLDER).style('opacity', 0);\n });\n }\n\n if(editable) {\n if(!txt) setPlaceholder();\n else el.on('.opacity', null);\n\n el.call(svgTextUtils.makeEditable, {gd: gd})\n .on('edit', function(text) {\n if(traceIndex !== undefined) {\n Registry.call('_guiRestyle', gd, prop, text, traceIndex);\n } else {\n Registry.call('_guiRelayout', gd, prop, text);\n }\n })\n .on('cancel', function() {\n this.text(this.attr('data-unformatted'))\n .call(titleLayout);\n })\n .on('input', function(d) {\n this.text(d || ' ')\n .call(svgTextUtils.positionText, attributes.x, attributes.y);\n });\n }\n el.classed('js-placeholder', isplaceholder);\n\n return group;\n}\n\nmodule.exports = {\n draw: draw\n};\n\n},{\"../../constants/alignment\":483,\"../../constants/interactions\":490,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/plots\":628,\"../../registry\":647,\"../color\":367,\"../drawing\":389,\"@plotly/d3\":58,\"fast-isnumeric\":190}],477:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../color/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar padAttrs = _dereq_('../../plots/pad_attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nvar buttonsAttrs = templatedArray('button', {\n visible: {\n valType: 'boolean',\n },\n method: {\n valType: 'enumerated',\n values: ['restyle', 'relayout', 'animate', 'update', 'skip'],\n dflt: 'restyle',\n },\n args: {\n valType: 'info_array',\n freeLength: true,\n items: [\n {valType: 'any'},\n {valType: 'any'},\n {valType: 'any'}\n ],\n },\n args2: {\n valType: 'info_array',\n freeLength: true,\n items: [\n {valType: 'any'},\n {valType: 'any'},\n {valType: 'any'}\n ],\n },\n label: {\n valType: 'string',\n dflt: '',\n },\n execute: {\n valType: 'boolean',\n dflt: true,\n }\n});\n\nmodule.exports = overrideAll(templatedArray('updatemenu', {\n _arrayAttrRegexps: [/^updatemenus\\[(0|[1-9][0-9]+)\\]\\.buttons/],\n\n visible: {\n valType: 'boolean',\n },\n\n type: {\n valType: 'enumerated',\n values: ['dropdown', 'buttons'],\n dflt: 'dropdown',\n },\n\n direction: {\n valType: 'enumerated',\n values: ['left', 'right', 'up', 'down'],\n dflt: 'down',\n },\n\n active: {\n valType: 'integer',\n min: -1,\n dflt: 0,\n },\n\n showactive: {\n valType: 'boolean',\n dflt: true,\n },\n\n buttons: buttonsAttrs,\n\n x: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: -0.05,\n },\n xanchor: {\n valType: 'enumerated',\n values: ['auto', 'left', 'center', 'right'],\n dflt: 'right',\n },\n y: {\n valType: 'number',\n min: -2,\n max: 3,\n dflt: 1,\n },\n yanchor: {\n valType: 'enumerated',\n values: ['auto', 'top', 'middle', 'bottom'],\n dflt: 'top',\n },\n\n pad: extendFlat(padAttrs({editType: 'arraydraw'}), {\n }),\n\n font: fontAttrs({\n }),\n\n bgcolor: {\n valType: 'color',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.borderLine,\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'arraydraw',\n }\n}), 'arraydraw', 'from-root');\n\n},{\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../../plots/font_attributes\":594,\"../../plots/pad_attributes\":627,\"../color/attributes\":366}],478:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n\n // layout attribute name\n name: 'updatemenus',\n\n // class names\n containerClassName: 'updatemenu-container',\n headerGroupClassName: 'updatemenu-header-group',\n headerClassName: 'updatemenu-header',\n headerArrowClassName: 'updatemenu-header-arrow',\n dropdownButtonGroupClassName: 'updatemenu-dropdown-button-group',\n dropdownButtonClassName: 'updatemenu-dropdown-button',\n buttonClassName: 'updatemenu-button',\n itemRectClassName: 'updatemenu-item-rect',\n itemTextClassName: 'updatemenu-item-text',\n\n // DOM attribute name in button group keeping track\n // of active update menu\n menuIndexAttrName: 'updatemenu-active-index',\n\n // id root pass to Plots.autoMargin\n autoMarginIdRoot: 'updatemenu-',\n\n // options when 'active: -1'\n blankHeaderOpts: { label: ' ' },\n\n // min item width / height\n minWidth: 30,\n minHeight: 30,\n\n // padding around item text\n textPadX: 24,\n arrowPadX: 16,\n\n // item rect radii\n rx: 2,\n ry: 2,\n\n // item text x offset off left edge\n textOffsetX: 12,\n\n // item text y offset (w.r.t. middle)\n textOffsetY: 3,\n\n // arrow offset off right edge\n arrowOffsetX: 4,\n\n // gap between header and buttons\n gapButtonHeader: 5,\n\n // gap between between buttons\n gapButton: 2,\n\n // color given to active buttons\n activeColor: '#F4FAFF',\n\n // color given to hovered buttons\n hoverColor: '#F4FAFF',\n\n // symbol for menu open arrow\n arrowSymbol: {\n left: '◄',\n right: '►',\n up: '▲',\n down: '▼'\n }\n};\n\n},{}],479:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\n\nvar name = constants.name;\nvar buttonAttrs = attributes.buttons;\n\n\nmodule.exports = function updateMenusDefaults(layoutIn, layoutOut) {\n var opts = {\n name: name,\n handleItemDefaults: menuDefaults\n };\n\n handleArrayContainerDefaults(layoutIn, layoutOut, opts);\n};\n\nfunction menuDefaults(menuIn, menuOut, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(menuIn, menuOut, attributes, attr, dflt);\n }\n\n var buttons = handleArrayContainerDefaults(menuIn, menuOut, {\n name: 'buttons',\n handleItemDefaults: buttonDefaults\n });\n\n var visible = coerce('visible', buttons.length > 0);\n if(!visible) return;\n\n coerce('active');\n coerce('direction');\n coerce('type');\n coerce('showactive');\n\n coerce('x');\n coerce('y');\n Lib.noneOrAll(menuIn, menuOut, ['x', 'y']);\n\n coerce('xanchor');\n coerce('yanchor');\n\n coerce('pad.t');\n coerce('pad.r');\n coerce('pad.b');\n coerce('pad.l');\n\n Lib.coerceFont(coerce, 'font', layoutOut.font);\n\n coerce('bgcolor', layoutOut.paper_bgcolor);\n coerce('bordercolor');\n coerce('borderwidth');\n}\n\nfunction buttonDefaults(buttonIn, buttonOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(buttonIn, buttonOut, buttonAttrs, attr, dflt);\n }\n\n var visible = coerce('visible',\n (buttonIn.method === 'skip' || Array.isArray(buttonIn.args)));\n if(visible) {\n coerce('method');\n coerce('args');\n coerce('args2');\n coerce('label');\n coerce('execute');\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"./attributes\":477,\"./constants\":478}],480:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar arrayEditor = _dereq_('../../plot_api/plot_template').arrayEditor;\n\nvar LINE_SPACING = _dereq_('../../constants/alignment').LINE_SPACING;\n\nvar constants = _dereq_('./constants');\nvar ScrollBox = _dereq_('./scrollbox');\n\nmodule.exports = function draw(gd) {\n var fullLayout = gd._fullLayout;\n var menuData = Lib.filterVisible(fullLayout[constants.name]);\n\n /* Update menu data is bound to the header-group.\n * The items in the header group are always present.\n *\n * Upon clicking on a header its corresponding button\n * data is bound to the button-group.\n *\n * We draw all headers in one group before all buttons\n * so that the buttons *always* appear above the headers.\n *\n * Note that only one set of buttons are visible at once.\n *\n * \n *\n * \n * \n * \n * \n * \n * \n * ...\n *\n * \n * \n * \n * ...\n */\n\n function clearAutoMargin(menuOpts) {\n Plots.autoMargin(gd, autoMarginId(menuOpts));\n }\n\n // draw update menu container\n var menus = fullLayout._menulayer\n .selectAll('g.' + constants.containerClassName)\n .data(menuData.length > 0 ? [0] : []);\n\n menus.enter().append('g')\n .classed(constants.containerClassName, true)\n .style('cursor', 'pointer');\n\n menus.exit().each(function() {\n // Most components don't need to explicitly remove autoMargin, because\n // marginPushers does this - but updatemenu updates don't go through\n // a full replot so we need to explicitly remove it.\n // This is for removing *all* updatemenus, removing individuals is\n // handled below, in headerGroups.exit\n d3.select(this).selectAll('g.' + constants.headerGroupClassName)\n .each(clearAutoMargin);\n }).remove();\n\n // return early if no update menus are visible\n if(menuData.length === 0) return;\n\n // join header group\n var headerGroups = menus.selectAll('g.' + constants.headerGroupClassName)\n .data(menuData, keyFunction);\n\n headerGroups.enter().append('g')\n .classed(constants.headerGroupClassName, true);\n\n // draw dropdown button container\n var gButton = Lib.ensureSingle(menus, 'g', constants.dropdownButtonGroupClassName, function(s) {\n s.style('pointer-events', 'all');\n });\n\n // find dimensions before plotting anything (this mutates menuOpts)\n for(var i = 0; i < menuData.length; i++) {\n var menuOpts = menuData[i];\n findDimensions(gd, menuOpts);\n }\n\n // setup scrollbox\n var scrollBoxId = 'updatemenus' + fullLayout._uid;\n var scrollBox = new ScrollBox(gd, gButton, scrollBoxId);\n\n // remove exiting header, remove dropped buttons and reset margins\n if(headerGroups.enter().size()) {\n // make sure gButton is on top of all headers\n gButton.node().parentNode.appendChild(gButton.node());\n gButton.call(removeAllButtons);\n }\n\n headerGroups.exit().each(function(menuOpts) {\n gButton.call(removeAllButtons);\n clearAutoMargin(menuOpts);\n }).remove();\n\n // draw headers!\n headerGroups.each(function(menuOpts) {\n var gHeader = d3.select(this);\n\n var _gButton = menuOpts.type === 'dropdown' ? gButton : null;\n\n Plots.manageCommandObserver(gd, menuOpts, menuOpts.buttons, function(data) {\n setActive(gd, menuOpts, menuOpts.buttons[data.index], gHeader, _gButton, scrollBox, data.index, true);\n });\n\n if(menuOpts.type === 'dropdown') {\n drawHeader(gd, gHeader, gButton, scrollBox, menuOpts);\n\n // if this menu is active, update the dropdown container\n if(isActive(gButton, menuOpts)) {\n drawButtons(gd, gHeader, gButton, scrollBox, menuOpts);\n }\n } else {\n drawButtons(gd, gHeader, null, null, menuOpts);\n }\n });\n};\n\n// Note that '_index' is set at the default step,\n// it corresponds to the menu index in the user layout update menu container.\n// Because a menu can be set invisible,\n// this is a more 'consistent' field than the index in the menuData.\nfunction keyFunction(menuOpts) {\n return menuOpts._index;\n}\n\nfunction isFolded(gButton) {\n return +gButton.attr(constants.menuIndexAttrName) === -1;\n}\n\nfunction isActive(gButton, menuOpts) {\n return +gButton.attr(constants.menuIndexAttrName) === menuOpts._index;\n}\n\nfunction setActive(gd, menuOpts, buttonOpts, gHeader, gButton, scrollBox, buttonIndex, isSilentUpdate) {\n // update 'active' attribute in menuOpts\n menuOpts.active = buttonIndex;\n\n // due to templating, it's possible this slider doesn't even exist yet\n arrayEditor(gd.layout, constants.name, menuOpts)\n .applyUpdate('active', buttonIndex);\n\n if(menuOpts.type === 'buttons') {\n drawButtons(gd, gHeader, null, null, menuOpts);\n } else if(menuOpts.type === 'dropdown') {\n // fold up buttons and redraw header\n gButton.attr(constants.menuIndexAttrName, '-1');\n\n drawHeader(gd, gHeader, gButton, scrollBox, menuOpts);\n\n if(!isSilentUpdate) {\n drawButtons(gd, gHeader, gButton, scrollBox, menuOpts);\n }\n }\n}\n\nfunction drawHeader(gd, gHeader, gButton, scrollBox, menuOpts) {\n var header = Lib.ensureSingle(gHeader, 'g', constants.headerClassName, function(s) {\n s.style('pointer-events', 'all');\n });\n\n var dims = menuOpts._dims;\n var active = menuOpts.active;\n var headerOpts = menuOpts.buttons[active] || constants.blankHeaderOpts;\n var posOpts = { y: menuOpts.pad.t, yPad: 0, x: menuOpts.pad.l, xPad: 0, index: 0 };\n var positionOverrides = {\n width: dims.headerWidth,\n height: dims.headerHeight\n };\n\n header\n .call(drawItem, menuOpts, headerOpts, gd)\n .call(setItemPosition, menuOpts, posOpts, positionOverrides);\n\n // draw drop arrow at the right edge\n var arrow = Lib.ensureSingle(gHeader, 'text', constants.headerArrowClassName, function(s) {\n s.attr('text-anchor', 'end')\n .call(Drawing.font, menuOpts.font)\n .text(constants.arrowSymbol[menuOpts.direction]);\n });\n\n arrow.attr({\n x: dims.headerWidth - constants.arrowOffsetX + menuOpts.pad.l,\n y: dims.headerHeight / 2 + constants.textOffsetY + menuOpts.pad.t\n });\n\n header.on('click', function() {\n gButton.call(removeAllButtons,\n String(isActive(gButton, menuOpts) ? -1 : menuOpts._index)\n );\n\n drawButtons(gd, gHeader, gButton, scrollBox, menuOpts);\n });\n\n header.on('mouseover', function() {\n header.call(styleOnMouseOver);\n });\n\n header.on('mouseout', function() {\n header.call(styleOnMouseOut, menuOpts);\n });\n\n // translate header group\n Drawing.setTranslate(gHeader, dims.lx, dims.ly);\n}\n\nfunction drawButtons(gd, gHeader, gButton, scrollBox, menuOpts) {\n // If this is a set of buttons, set pointer events = all since we play\n // some minor games with which container is which in order to simplify\n // the drawing of *either* buttons or menus\n if(!gButton) {\n gButton = gHeader;\n gButton.attr('pointer-events', 'all');\n }\n\n var buttonData = (!isFolded(gButton) || menuOpts.type === 'buttons') ?\n menuOpts.buttons :\n [];\n\n var klass = menuOpts.type === 'dropdown' ? constants.dropdownButtonClassName : constants.buttonClassName;\n\n var buttons = gButton.selectAll('g.' + klass)\n .data(Lib.filterVisible(buttonData));\n\n var enter = buttons.enter().append('g')\n .classed(klass, true);\n\n var exit = buttons.exit();\n\n if(menuOpts.type === 'dropdown') {\n enter.attr('opacity', '0')\n .transition()\n .attr('opacity', '1');\n\n exit.transition()\n .attr('opacity', '0')\n .remove();\n } else {\n exit.remove();\n }\n\n var x0 = 0;\n var y0 = 0;\n var dims = menuOpts._dims;\n\n var isVertical = ['up', 'down'].indexOf(menuOpts.direction) !== -1;\n\n if(menuOpts.type === 'dropdown') {\n if(isVertical) {\n y0 = dims.headerHeight + constants.gapButtonHeader;\n } else {\n x0 = dims.headerWidth + constants.gapButtonHeader;\n }\n }\n\n if(menuOpts.type === 'dropdown' && menuOpts.direction === 'up') {\n y0 = -constants.gapButtonHeader + constants.gapButton - dims.openHeight;\n }\n\n if(menuOpts.type === 'dropdown' && menuOpts.direction === 'left') {\n x0 = -constants.gapButtonHeader + constants.gapButton - dims.openWidth;\n }\n\n var posOpts = {\n x: dims.lx + x0 + menuOpts.pad.l,\n y: dims.ly + y0 + menuOpts.pad.t,\n yPad: constants.gapButton,\n xPad: constants.gapButton,\n index: 0,\n };\n\n var scrollBoxPosition = {\n l: posOpts.x + menuOpts.borderwidth,\n t: posOpts.y + menuOpts.borderwidth\n };\n\n buttons.each(function(buttonOpts, buttonIndex) {\n var button = d3.select(this);\n\n button\n .call(drawItem, menuOpts, buttonOpts, gd)\n .call(setItemPosition, menuOpts, posOpts);\n\n button.on('click', function() {\n // skip `dragend` events\n if(d3.event.defaultPrevented) return;\n\n if(buttonOpts.execute) {\n if(buttonOpts.args2 && menuOpts.active === buttonIndex) {\n setActive(gd, menuOpts, buttonOpts, gHeader, gButton, scrollBox, -1);\n Plots.executeAPICommand(gd, buttonOpts.method, buttonOpts.args2);\n } else {\n setActive(gd, menuOpts, buttonOpts, gHeader, gButton, scrollBox, buttonIndex);\n Plots.executeAPICommand(gd, buttonOpts.method, buttonOpts.args);\n }\n }\n\n gd.emit('plotly_buttonclicked', {menu: menuOpts, button: buttonOpts, active: menuOpts.active});\n });\n\n button.on('mouseover', function() {\n button.call(styleOnMouseOver);\n });\n\n button.on('mouseout', function() {\n button.call(styleOnMouseOut, menuOpts);\n buttons.call(styleButtons, menuOpts);\n });\n });\n\n buttons.call(styleButtons, menuOpts);\n\n if(isVertical) {\n scrollBoxPosition.w = Math.max(dims.openWidth, dims.headerWidth);\n scrollBoxPosition.h = posOpts.y - scrollBoxPosition.t;\n } else {\n scrollBoxPosition.w = posOpts.x - scrollBoxPosition.l;\n scrollBoxPosition.h = Math.max(dims.openHeight, dims.headerHeight);\n }\n\n scrollBoxPosition.direction = menuOpts.direction;\n\n if(scrollBox) {\n if(buttons.size()) {\n drawScrollBox(gd, gHeader, gButton, scrollBox, menuOpts, scrollBoxPosition);\n } else {\n hideScrollBox(scrollBox);\n }\n }\n}\n\nfunction drawScrollBox(gd, gHeader, gButton, scrollBox, menuOpts, position) {\n // enable the scrollbox\n var direction = menuOpts.direction;\n var isVertical = (direction === 'up' || direction === 'down');\n var dims = menuOpts._dims;\n\n var active = menuOpts.active;\n var translateX, translateY;\n var i;\n if(isVertical) {\n translateY = 0;\n for(i = 0; i < active; i++) {\n translateY += dims.heights[i] + constants.gapButton;\n }\n } else {\n translateX = 0;\n for(i = 0; i < active; i++) {\n translateX += dims.widths[i] + constants.gapButton;\n }\n }\n\n scrollBox.enable(position, translateX, translateY);\n\n if(scrollBox.hbar) {\n scrollBox.hbar\n .attr('opacity', '0')\n .transition()\n .attr('opacity', '1');\n }\n\n if(scrollBox.vbar) {\n scrollBox.vbar\n .attr('opacity', '0')\n .transition()\n .attr('opacity', '1');\n }\n}\n\nfunction hideScrollBox(scrollBox) {\n var hasHBar = !!scrollBox.hbar;\n var hasVBar = !!scrollBox.vbar;\n\n if(hasHBar) {\n scrollBox.hbar\n .transition()\n .attr('opacity', '0')\n .each('end', function() {\n hasHBar = false;\n if(!hasVBar) scrollBox.disable();\n });\n }\n\n if(hasVBar) {\n scrollBox.vbar\n .transition()\n .attr('opacity', '0')\n .each('end', function() {\n hasVBar = false;\n if(!hasHBar) scrollBox.disable();\n });\n }\n}\n\nfunction drawItem(item, menuOpts, itemOpts, gd) {\n item.call(drawItemRect, menuOpts)\n .call(drawItemText, menuOpts, itemOpts, gd);\n}\n\nfunction drawItemRect(item, menuOpts) {\n var rect = Lib.ensureSingle(item, 'rect', constants.itemRectClassName, function(s) {\n s.attr({\n rx: constants.rx,\n ry: constants.ry,\n 'shape-rendering': 'crispEdges'\n });\n });\n\n rect.call(Color.stroke, menuOpts.bordercolor)\n .call(Color.fill, menuOpts.bgcolor)\n .style('stroke-width', menuOpts.borderwidth + 'px');\n}\n\nfunction drawItemText(item, menuOpts, itemOpts, gd) {\n var text = Lib.ensureSingle(item, 'text', constants.itemTextClassName, function(s) {\n s.attr({\n 'text-anchor': 'start',\n 'data-notex': 1\n });\n });\n\n var tx = itemOpts.label;\n var _meta = gd._fullLayout._meta;\n if(_meta) tx = Lib.templateString(tx, _meta);\n\n text.call(Drawing.font, menuOpts.font)\n .text(tx)\n .call(svgTextUtils.convertToTspans, gd);\n}\n\nfunction styleButtons(buttons, menuOpts) {\n var active = menuOpts.active;\n\n buttons.each(function(buttonOpts, i) {\n var button = d3.select(this);\n\n if(i === active && menuOpts.showactive) {\n button.select('rect.' + constants.itemRectClassName)\n .call(Color.fill, constants.activeColor);\n }\n });\n}\n\nfunction styleOnMouseOver(item) {\n item.select('rect.' + constants.itemRectClassName)\n .call(Color.fill, constants.hoverColor);\n}\n\nfunction styleOnMouseOut(item, menuOpts) {\n item.select('rect.' + constants.itemRectClassName)\n .call(Color.fill, menuOpts.bgcolor);\n}\n\n// find item dimensions (this mutates menuOpts)\nfunction findDimensions(gd, menuOpts) {\n var dims = menuOpts._dims = {\n width1: 0,\n height1: 0,\n heights: [],\n widths: [],\n totalWidth: 0,\n totalHeight: 0,\n openWidth: 0,\n openHeight: 0,\n lx: 0,\n ly: 0\n };\n\n var fakeButtons = Drawing.tester.selectAll('g.' + constants.dropdownButtonClassName)\n .data(Lib.filterVisible(menuOpts.buttons));\n\n fakeButtons.enter().append('g')\n .classed(constants.dropdownButtonClassName, true);\n\n var isVertical = ['up', 'down'].indexOf(menuOpts.direction) !== -1;\n\n // loop over fake buttons to find width / height\n fakeButtons.each(function(buttonOpts, i) {\n var button = d3.select(this);\n\n button.call(drawItem, menuOpts, buttonOpts, gd);\n\n var text = button.select('.' + constants.itemTextClassName);\n\n // width is given by max width of all buttons\n var tWidth = text.node() && Drawing.bBox(text.node()).width;\n var wEff = Math.max(tWidth + constants.textPadX, constants.minWidth);\n\n // height is determined by item text\n var tHeight = menuOpts.font.size * LINE_SPACING;\n var tLines = svgTextUtils.lineCount(text);\n var hEff = Math.max(tHeight * tLines, constants.minHeight) + constants.textOffsetY;\n\n hEff = Math.ceil(hEff);\n wEff = Math.ceil(wEff);\n\n // Store per-item sizes since a row of horizontal buttons, for example,\n // don't all need to be the same width:\n dims.widths[i] = wEff;\n dims.heights[i] = hEff;\n\n // Height and width of individual element:\n dims.height1 = Math.max(dims.height1, hEff);\n dims.width1 = Math.max(dims.width1, wEff);\n\n if(isVertical) {\n dims.totalWidth = Math.max(dims.totalWidth, wEff);\n dims.openWidth = dims.totalWidth;\n dims.totalHeight += hEff + constants.gapButton;\n dims.openHeight += hEff + constants.gapButton;\n } else {\n dims.totalWidth += wEff + constants.gapButton;\n dims.openWidth += wEff + constants.gapButton;\n dims.totalHeight = Math.max(dims.totalHeight, hEff);\n dims.openHeight = dims.totalHeight;\n }\n });\n\n if(isVertical) {\n dims.totalHeight -= constants.gapButton;\n } else {\n dims.totalWidth -= constants.gapButton;\n }\n\n\n dims.headerWidth = dims.width1 + constants.arrowPadX;\n dims.headerHeight = dims.height1;\n\n if(menuOpts.type === 'dropdown') {\n if(isVertical) {\n dims.width1 += constants.arrowPadX;\n dims.totalHeight = dims.height1;\n } else {\n dims.totalWidth = dims.width1;\n }\n dims.totalWidth += constants.arrowPadX;\n }\n\n fakeButtons.remove();\n\n var paddedWidth = dims.totalWidth + menuOpts.pad.l + menuOpts.pad.r;\n var paddedHeight = dims.totalHeight + menuOpts.pad.t + menuOpts.pad.b;\n\n var graphSize = gd._fullLayout._size;\n dims.lx = graphSize.l + graphSize.w * menuOpts.x;\n dims.ly = graphSize.t + graphSize.h * (1 - menuOpts.y);\n\n var xanchor = 'left';\n if(Lib.isRightAnchor(menuOpts)) {\n dims.lx -= paddedWidth;\n xanchor = 'right';\n }\n if(Lib.isCenterAnchor(menuOpts)) {\n dims.lx -= paddedWidth / 2;\n xanchor = 'center';\n }\n\n var yanchor = 'top';\n if(Lib.isBottomAnchor(menuOpts)) {\n dims.ly -= paddedHeight;\n yanchor = 'bottom';\n }\n if(Lib.isMiddleAnchor(menuOpts)) {\n dims.ly -= paddedHeight / 2;\n yanchor = 'middle';\n }\n\n dims.totalWidth = Math.ceil(dims.totalWidth);\n dims.totalHeight = Math.ceil(dims.totalHeight);\n dims.lx = Math.round(dims.lx);\n dims.ly = Math.round(dims.ly);\n\n Plots.autoMargin(gd, autoMarginId(menuOpts), {\n x: menuOpts.x,\n y: menuOpts.y,\n l: paddedWidth * ({right: 1, center: 0.5}[xanchor] || 0),\n r: paddedWidth * ({left: 1, center: 0.5}[xanchor] || 0),\n b: paddedHeight * ({top: 1, middle: 0.5}[yanchor] || 0),\n t: paddedHeight * ({bottom: 1, middle: 0.5}[yanchor] || 0)\n });\n}\n\nfunction autoMarginId(menuOpts) {\n return constants.autoMarginIdRoot + menuOpts._index;\n}\n\n// set item positions (mutates posOpts)\nfunction setItemPosition(item, menuOpts, posOpts, overrideOpts) {\n overrideOpts = overrideOpts || {};\n var rect = item.select('.' + constants.itemRectClassName);\n var text = item.select('.' + constants.itemTextClassName);\n var borderWidth = menuOpts.borderwidth;\n var index = posOpts.index;\n var dims = menuOpts._dims;\n\n Drawing.setTranslate(item, borderWidth + posOpts.x, borderWidth + posOpts.y);\n\n var isVertical = ['up', 'down'].indexOf(menuOpts.direction) !== -1;\n var finalHeight = overrideOpts.height || (isVertical ? dims.heights[index] : dims.height1);\n\n rect.attr({\n x: 0,\n y: 0,\n width: overrideOpts.width || (isVertical ? dims.width1 : dims.widths[index]),\n height: finalHeight\n });\n\n var tHeight = menuOpts.font.size * LINE_SPACING;\n var tLines = svgTextUtils.lineCount(text);\n var spanOffset = ((tLines - 1) * tHeight / 2);\n\n svgTextUtils.positionText(text, constants.textOffsetX,\n finalHeight / 2 - spanOffset + constants.textOffsetY);\n\n if(isVertical) {\n posOpts.y += dims.heights[index] + posOpts.yPad;\n } else {\n posOpts.x += dims.widths[index] + posOpts.xPad;\n }\n\n posOpts.index++;\n}\n\nfunction removeAllButtons(gButton, newMenuIndexAttr) {\n gButton\n .attr(constants.menuIndexAttrName, newMenuIndexAttr || '-1')\n .selectAll('g.' + constants.dropdownButtonClassName).remove();\n}\n\n},{\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plot_api/plot_template\":555,\"../../plots/plots\":628,\"../color\":367,\"../drawing\":389,\"./constants\":478,\"./scrollbox\":482,\"@plotly/d3\":58}],481:[function(_dereq_,module,exports){\narguments[4][475][0].apply(exports,arguments)\n},{\"./attributes\":477,\"./constants\":478,\"./defaults\":479,\"./draw\":480,\"dup\":475}],482:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = ScrollBox;\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Color = _dereq_('../color');\nvar Drawing = _dereq_('../drawing');\n\nvar Lib = _dereq_('../../lib');\n\n/**\n * Helper class to setup a scroll box\n *\n * @class\n * @param gd Plotly's graph div\n * @param container Container to be scroll-boxed (as a D3 selection)\n * @param {string} id Id for the clip path to implement the scroll box\n */\nfunction ScrollBox(gd, container, id) {\n this.gd = gd;\n this.container = container;\n this.id = id;\n\n // See ScrollBox.prototype.enable for further definition\n this.position = null; // scrollbox position\n this.translateX = null; // scrollbox horizontal translation\n this.translateY = null; // scrollbox vertical translation\n this.hbar = null; // horizontal scrollbar D3 selection\n this.vbar = null; // vertical scrollbar D3 selection\n\n // element to capture pointer events\n this.bg = this.container.selectAll('rect.scrollbox-bg').data([0]);\n\n this.bg.exit()\n .on('.drag', null)\n .on('wheel', null)\n .remove();\n\n this.bg.enter().append('rect')\n .classed('scrollbox-bg', true)\n .style('pointer-events', 'all')\n .attr({\n opacity: 0,\n x: 0,\n y: 0,\n width: 0,\n height: 0\n });\n}\n\n// scroll bar dimensions\nScrollBox.barWidth = 2;\nScrollBox.barLength = 20;\nScrollBox.barRadius = 2;\nScrollBox.barPad = 1;\nScrollBox.barColor = '#808BA4';\n\n/**\n * If needed, setup a clip path and scrollbars\n *\n * @method\n * @param {Object} position\n * @param {number} position.l Left side position (in pixels)\n * @param {number} position.t Top side (in pixels)\n * @param {number} position.w Width (in pixels)\n * @param {number} position.h Height (in pixels)\n * @param {string} [position.direction='down']\n * Either 'down', 'left', 'right' or 'up'\n * @param {number} [translateX=0] Horizontal offset (in pixels)\n * @param {number} [translateY=0] Vertical offset (in pixels)\n */\nScrollBox.prototype.enable = function enable(position, translateX, translateY) {\n var fullLayout = this.gd._fullLayout;\n var fullWidth = fullLayout.width;\n var fullHeight = fullLayout.height;\n\n // compute position of scrollbox\n this.position = position;\n\n var l = this.position.l;\n var w = this.position.w;\n var t = this.position.t;\n var h = this.position.h;\n var direction = this.position.direction;\n var isDown = (direction === 'down');\n var isLeft = (direction === 'left');\n var isRight = (direction === 'right');\n var isUp = (direction === 'up');\n var boxW = w;\n var boxH = h;\n var boxL, boxR;\n var boxT, boxB;\n\n if(!isDown && !isLeft && !isRight && !isUp) {\n this.position.direction = 'down';\n isDown = true;\n }\n\n var isVertical = isDown || isUp;\n if(isVertical) {\n boxL = l;\n boxR = boxL + boxW;\n\n if(isDown) {\n // anchor to top side\n boxT = t;\n boxB = Math.min(boxT + boxH, fullHeight);\n boxH = boxB - boxT;\n } else {\n // anchor to bottom side\n boxB = t + boxH;\n boxT = Math.max(boxB - boxH, 0);\n boxH = boxB - boxT;\n }\n } else {\n boxT = t;\n boxB = boxT + boxH;\n\n if(isLeft) {\n // anchor to right side\n boxR = l + boxW;\n boxL = Math.max(boxR - boxW, 0);\n boxW = boxR - boxL;\n } else {\n // anchor to left side\n boxL = l;\n boxR = Math.min(boxL + boxW, fullWidth);\n boxW = boxR - boxL;\n }\n }\n\n this._box = {\n l: boxL,\n t: boxT,\n w: boxW,\n h: boxH\n };\n\n // compute position of horizontal scroll bar\n var needsHorizontalScrollBar = (w > boxW);\n var hbarW = ScrollBox.barLength + 2 * ScrollBox.barPad;\n var hbarH = ScrollBox.barWidth + 2 * ScrollBox.barPad;\n // draw horizontal scrollbar on the bottom side\n var hbarL = l;\n var hbarT = t + h;\n\n if(hbarT + hbarH > fullHeight) hbarT = fullHeight - hbarH;\n\n var hbar = this.container.selectAll('rect.scrollbar-horizontal').data(\n (needsHorizontalScrollBar) ? [0] : []);\n\n hbar.exit()\n .on('.drag', null)\n .remove();\n\n hbar.enter().append('rect')\n .classed('scrollbar-horizontal', true)\n .call(Color.fill, ScrollBox.barColor);\n\n if(needsHorizontalScrollBar) {\n this.hbar = hbar.attr({\n 'rx': ScrollBox.barRadius,\n 'ry': ScrollBox.barRadius,\n 'x': hbarL,\n 'y': hbarT,\n 'width': hbarW,\n 'height': hbarH\n });\n\n // hbar center moves between hbarXMin and hbarXMin + hbarTranslateMax\n this._hbarXMin = hbarL + hbarW / 2;\n this._hbarTranslateMax = boxW - hbarW;\n } else {\n delete this.hbar;\n delete this._hbarXMin;\n delete this._hbarTranslateMax;\n }\n\n // compute position of vertical scroll bar\n var needsVerticalScrollBar = (h > boxH);\n var vbarW = ScrollBox.barWidth + 2 * ScrollBox.barPad;\n var vbarH = ScrollBox.barLength + 2 * ScrollBox.barPad;\n // draw vertical scrollbar on the right side\n var vbarL = l + w;\n var vbarT = t;\n\n if(vbarL + vbarW > fullWidth) vbarL = fullWidth - vbarW;\n\n var vbar = this.container.selectAll('rect.scrollbar-vertical').data(\n (needsVerticalScrollBar) ? [0] : []);\n\n vbar.exit()\n .on('.drag', null)\n .remove();\n\n vbar.enter().append('rect')\n .classed('scrollbar-vertical', true)\n .call(Color.fill, ScrollBox.barColor);\n\n if(needsVerticalScrollBar) {\n this.vbar = vbar.attr({\n 'rx': ScrollBox.barRadius,\n 'ry': ScrollBox.barRadius,\n 'x': vbarL,\n 'y': vbarT,\n 'width': vbarW,\n 'height': vbarH\n });\n\n // vbar center moves between vbarYMin and vbarYMin + vbarTranslateMax\n this._vbarYMin = vbarT + vbarH / 2;\n this._vbarTranslateMax = boxH - vbarH;\n } else {\n delete this.vbar;\n delete this._vbarYMin;\n delete this._vbarTranslateMax;\n }\n\n // setup a clip path (if scroll bars are needed)\n var clipId = this.id;\n var clipL = boxL - 0.5;\n var clipR = (needsVerticalScrollBar) ? boxR + vbarW + 0.5 : boxR + 0.5;\n var clipT = boxT - 0.5;\n var clipB = (needsHorizontalScrollBar) ? boxB + hbarH + 0.5 : boxB + 0.5;\n\n var clipPath = fullLayout._topdefs.selectAll('#' + clipId)\n .data((needsHorizontalScrollBar || needsVerticalScrollBar) ? [0] : []);\n\n clipPath.exit().remove();\n\n clipPath.enter()\n .append('clipPath').attr('id', clipId)\n .append('rect');\n\n if(needsHorizontalScrollBar || needsVerticalScrollBar) {\n this._clipRect = clipPath.select('rect').attr({\n x: Math.floor(clipL),\n y: Math.floor(clipT),\n width: Math.ceil(clipR) - Math.floor(clipL),\n height: Math.ceil(clipB) - Math.floor(clipT)\n });\n\n this.container.call(Drawing.setClipUrl, clipId, this.gd);\n\n this.bg.attr({\n x: l,\n y: t,\n width: w,\n height: h\n });\n } else {\n this.bg.attr({\n width: 0,\n height: 0\n });\n this.container\n .on('wheel', null)\n .on('.drag', null)\n .call(Drawing.setClipUrl, null);\n delete this._clipRect;\n }\n\n // set up drag listeners (if scroll bars are needed)\n if(needsHorizontalScrollBar || needsVerticalScrollBar) {\n var onBoxDrag = d3.behavior.drag()\n .on('dragstart', function() {\n d3.event.sourceEvent.preventDefault();\n })\n .on('drag', this._onBoxDrag.bind(this));\n\n this.container\n .on('wheel', null)\n .on('wheel', this._onBoxWheel.bind(this))\n .on('.drag', null)\n .call(onBoxDrag);\n\n var onBarDrag = d3.behavior.drag()\n .on('dragstart', function() {\n d3.event.sourceEvent.preventDefault();\n d3.event.sourceEvent.stopPropagation();\n })\n .on('drag', this._onBarDrag.bind(this));\n\n if(needsHorizontalScrollBar) {\n this.hbar\n .on('.drag', null)\n .call(onBarDrag);\n }\n\n if(needsVerticalScrollBar) {\n this.vbar\n .on('.drag', null)\n .call(onBarDrag);\n }\n }\n\n // set scrollbox translation\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * If present, remove clip-path and scrollbars\n *\n * @method\n */\nScrollBox.prototype.disable = function disable() {\n if(this.hbar || this.vbar) {\n this.bg.attr({\n width: 0,\n height: 0\n });\n this.container\n .on('wheel', null)\n .on('.drag', null)\n .call(Drawing.setClipUrl, null);\n delete this._clipRect;\n }\n\n if(this.hbar) {\n this.hbar.on('.drag', null);\n this.hbar.remove();\n delete this.hbar;\n delete this._hbarXMin;\n delete this._hbarTranslateMax;\n }\n\n if(this.vbar) {\n this.vbar.on('.drag', null);\n this.vbar.remove();\n delete this.vbar;\n delete this._vbarYMin;\n delete this._vbarTranslateMax;\n }\n};\n\n/**\n * Handles scroll box drag events\n *\n * @method\n */\nScrollBox.prototype._onBoxDrag = function _onBoxDrag() {\n var translateX = this.translateX;\n var translateY = this.translateY;\n\n if(this.hbar) {\n translateX -= d3.event.dx;\n }\n\n if(this.vbar) {\n translateY -= d3.event.dy;\n }\n\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * Handles scroll box wheel events\n *\n * @method\n */\nScrollBox.prototype._onBoxWheel = function _onBoxWheel() {\n var translateX = this.translateX;\n var translateY = this.translateY;\n\n if(this.hbar) {\n translateX += d3.event.deltaY;\n }\n\n if(this.vbar) {\n translateY += d3.event.deltaY;\n }\n\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * Handles scroll bar drag events\n *\n * @method\n */\nScrollBox.prototype._onBarDrag = function _onBarDrag() {\n var translateX = this.translateX;\n var translateY = this.translateY;\n\n if(this.hbar) {\n var xMin = translateX + this._hbarXMin;\n var xMax = xMin + this._hbarTranslateMax;\n var x = Lib.constrain(d3.event.x, xMin, xMax);\n var xf = (x - xMin) / (xMax - xMin);\n\n var translateXMax = this.position.w - this._box.w;\n\n translateX = xf * translateXMax;\n }\n\n if(this.vbar) {\n var yMin = translateY + this._vbarYMin;\n var yMax = yMin + this._vbarTranslateMax;\n var y = Lib.constrain(d3.event.y, yMin, yMax);\n var yf = (y - yMin) / (yMax - yMin);\n\n var translateYMax = this.position.h - this._box.h;\n\n translateY = yf * translateYMax;\n }\n\n this.setTranslate(translateX, translateY);\n};\n\n/**\n * Set clip path and scroll bar translate transform\n *\n * @method\n * @param {number} [translateX=0] Horizontal offset (in pixels)\n * @param {number} [translateY=0] Vertical offset (in pixels)\n */\nScrollBox.prototype.setTranslate = function setTranslate(translateX, translateY) {\n // store translateX and translateY (needed by mouse event handlers)\n var translateXMax = this.position.w - this._box.w;\n var translateYMax = this.position.h - this._box.h;\n\n translateX = Lib.constrain(translateX || 0, 0, translateXMax);\n translateY = Lib.constrain(translateY || 0, 0, translateYMax);\n\n this.translateX = translateX;\n this.translateY = translateY;\n\n this.container.call(Drawing.setTranslate,\n this._box.l - this.position.l - translateX,\n this._box.t - this.position.t - translateY);\n\n if(this._clipRect) {\n this._clipRect.attr({\n x: Math.floor(this.position.l + translateX - 0.5),\n y: Math.floor(this.position.t + translateY - 0.5)\n });\n }\n\n if(this.hbar) {\n var xf = translateX / translateXMax;\n\n this.hbar.call(Drawing.setTranslate,\n translateX + xf * this._hbarTranslateMax,\n translateY);\n }\n\n if(this.vbar) {\n var yf = translateY / translateYMax;\n\n this.vbar.call(Drawing.setTranslate,\n translateX,\n translateY + yf * this._vbarTranslateMax);\n }\n};\n\n},{\"../../lib\":515,\"../color\":367,\"../drawing\":389,\"@plotly/d3\":58}],483:[function(_dereq_,module,exports){\n'use strict';\n\n// fraction of some size to get to a named position\nmodule.exports = {\n // from bottom left: this is the origin of our paper-reference\n // positioning system\n FROM_BL: {\n left: 0,\n center: 0.5,\n right: 1,\n bottom: 0,\n middle: 0.5,\n top: 1\n },\n // from top left: this is the screen pixel positioning origin\n FROM_TL: {\n left: 0,\n center: 0.5,\n right: 1,\n bottom: 1,\n middle: 0.5,\n top: 0\n },\n // from bottom right: sometimes you just need the opposite of ^^\n FROM_BR: {\n left: 1,\n center: 0.5,\n right: 0,\n bottom: 0,\n middle: 0.5,\n top: 1\n },\n // multiple of fontSize to get the vertical offset between lines\n LINE_SPACING: 1.3,\n\n // multiple of fontSize to shift from the baseline\n // to the cap (captical letter) line\n // (to use when we don't calculate this shift from Drawing.bBox)\n // This is an approximation since in reality cap height can differ\n // from font to font. However, according to Wikipedia\n // an \"average\" font might have a cap height of 70% of the em\n // https://en.wikipedia.org/wiki/Em_(typography)#History\n CAP_SHIFT: 0.70,\n\n // half the cap height (distance between baseline and cap line)\n // of an \"average\" font (for more info see above).\n MID_SHIFT: 0.35,\n\n OPPOSITE_SIDE: {\n left: 'right',\n right: 'left',\n top: 'bottom',\n bottom: 'top'\n }\n};\n\n},{}],484:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n axisRefDescription: function(axisname, lower, upper) {\n return [\n 'If set to a', axisname, 'axis id (e.g. *' + axisname + '* or',\n '*' + axisname + '2*), the `' + axisname + '` position refers to a',\n axisname, 'coordinate. If set to *paper*, the `' + axisname + '`',\n 'position refers to the distance from the', lower, 'of the plotting',\n 'area in normalized coordinates where *0* (*1*) corresponds to the',\n lower, '(' + upper + '). If set to a', axisname, 'axis ID followed by',\n '*domain* (separated by a space), the position behaves like for',\n '*paper*, but refers to the distance in fractions of the domain',\n 'length from the', lower, 'of the domain of that axis: e.g.,',\n '*' + axisname + '2 domain* refers to the domain of the second',\n axisname, ' axis and a', axisname, 'position of 0.5 refers to the',\n 'point between the', lower, 'and the', upper, 'of the domain of the',\n 'second', axisname, 'axis.',\n ].join(' ');\n }\n};\n\n},{}],485:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n INCREASING: {\n COLOR: '#3D9970',\n SYMBOL: '▲'\n },\n DECREASING: {\n COLOR: '#FF4136',\n SYMBOL: '▼'\n }\n};\n\n},{}],486:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n FORMAT_LINK: 'https://github.com/d3/d3-format/tree/v1.4.5#d3-format',\n DATE_FORMAT_LINK: 'https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format'\n};\n\n},{}],487:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n COMPARISON_OPS: ['=', '!=', '<', '>=', '>', '<='],\n COMPARISON_OPS2: ['=', '<', '>=', '>', '<='],\n INTERVAL_OPS: ['[]', '()', '[)', '(]', '][', ')(', '](', ')['],\n SET_OPS: ['{}', '}{'],\n CONSTRAINT_REDUCTION: {\n // for contour constraints, open/closed endpoints are equivalent\n '=': '=',\n\n '<': '<',\n '<=': '<',\n\n '>': '>',\n '>=': '>',\n\n '[]': '[]',\n '()': '[]',\n '[)': '[]',\n '(]': '[]',\n\n '][': '][',\n ')(': '][',\n '](': '][',\n ')[': ']['\n }\n};\n\n},{}],488:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n solid: [[], 0],\n dot: [[0.5, 1], 200],\n dash: [[0.5, 1], 50],\n longdash: [[0.5, 1], 10],\n dashdot: [[0.5, 0.625, 0.875, 1], 50],\n longdashdot: [[0.5, 0.7, 0.8, 1], 10]\n};\n\n},{}],489:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n circle: '●',\n 'circle-open': '○',\n square: '■',\n 'square-open': '□',\n diamond: '◆',\n 'diamond-open': '◇',\n cross: '+',\n x: '❌'\n};\n\n},{}],490:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n /**\n * Timing information for interactive elements\n */\n SHOW_PLACEHOLDER: 100,\n HIDE_PLACEHOLDER: 1000,\n\n // opacity dimming fraction for points that are not in selection\n DESELECTDIM: 0.2\n};\n\n},{}],491:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n /**\n * Standardize all missing data in calcdata to use undefined\n * never null or NaN.\n * That way we can use !==undefined, or !== BADNUM,\n * to test for real data\n */\n BADNUM: undefined,\n\n /*\n * Limit certain operations to well below floating point max value\n * to avoid glitches: Make sure that even when you multiply it by the\n * number of pixels on a giant screen it still works\n */\n FP_SAFE: Number.MAX_VALUE * 1e-4,\n\n /*\n * conversion of date units to milliseconds\n * year and month constants are marked \"AVG\"\n * to remind us that not all years and months\n * have the same length\n */\n ONEMAXYEAR: 31622400000, // 366 * ONEDAY\n ONEAVGYEAR: 31557600000, // 365.25 days\n ONEMINYEAR: 31536000000, // 365 * ONEDAY\n ONEMAXQUARTER: 7948800000, // 92 * ONEDAY\n ONEAVGQUARTER: 7889400000, // 1/4 of ONEAVGYEAR\n ONEMINQUARTER: 7689600000, // 89 * ONEDAY\n ONEMAXMONTH: 2678400000, // 31 * ONEDAY\n ONEAVGMONTH: 2629800000, // 1/12 of ONEAVGYEAR\n ONEMINMONTH: 2419200000, // 28 * ONEDAY\n ONEWEEK: 604800000, // 7 * ONEDAY\n ONEDAY: 86400000, // 24 * ONEHOUR\n ONEHOUR: 3600000,\n ONEMIN: 60000,\n ONESEC: 1000,\n\n /*\n * For fast conversion btwn world calendars and epoch ms, the Julian Day Number\n * of the unix epoch. From calendars.instance().newDate(1970, 1, 1).toJD()\n */\n EPOCHJD: 2440587.5,\n\n /*\n * Are two values nearly equal? Compare to 1PPM\n */\n ALMOST_EQUAL: 1 - 1e-6,\n\n /*\n * If we're asked to clip a non-positive log value, how far off-screen\n * do we put it?\n */\n LOG_CLIP: 10,\n\n /*\n * not a number, but for displaying numbers: the \"minus sign\" symbol is\n * wider than the regular ascii dash \"-\"\n */\n MINUS_SIGN: '\\u2212'\n};\n\n},{}],492:[function(_dereq_,module,exports){\n'use strict';\n\n\nexports.xmlns = 'http://www.w3.org/2000/xmlns/';\nexports.svg = 'http://www.w3.org/2000/svg';\nexports.xlink = 'http://www.w3.org/1999/xlink';\n\n// the 'old' d3 quirk got fix in v3.5.7\n// https://github.com/mbostock/d3/commit/a6f66e9dd37f764403fc7c1f26be09ab4af24fed\nexports.svgAttrs = {\n xmlns: exports.svg,\n 'xmlns:xlink': exports.xlink\n};\n\n},{}],493:[function(_dereq_,module,exports){\n'use strict';\n\nexports.version = _dereq_('./version').version;\n\n// inject promise polyfill\n_dereq_('native-promise-only');\n\n// inject plot css\n_dereq_('../build/plotcss');\n\n// include registry module and expose register method\nvar Registry = _dereq_('./registry');\nvar register = exports.register = Registry.register;\n\n// expose plot api methods\nvar plotApi = _dereq_('./plot_api');\nvar methodNames = Object.keys(plotApi);\nfor(var i = 0; i < methodNames.length; i++) {\n var name = methodNames[i];\n // _ -> private API methods, but still registered for internal use\n if(name.charAt(0) !== '_') exports[name] = plotApi[name];\n register({\n moduleType: 'apiMethod',\n name: name,\n fn: plotApi[name]\n });\n}\n\n// scatter is the only trace included by default\nregister(_dereq_('./traces/scatter'));\n\n// register all registrable components modules\nregister([\n _dereq_('./components/legend'),\n _dereq_('./components/fx'), // fx needs to come after legend\n _dereq_('./components/annotations'),\n _dereq_('./components/annotations3d'),\n _dereq_('./components/selections'),\n _dereq_('./components/shapes'),\n _dereq_('./components/images'),\n _dereq_('./components/updatemenus'),\n _dereq_('./components/sliders'),\n _dereq_('./components/rangeslider'),\n _dereq_('./components/rangeselector'),\n _dereq_('./components/grid'),\n _dereq_('./components/errorbars'),\n _dereq_('./components/colorscale'),\n _dereq_('./components/colorbar'),\n _dereq_('./components/modebar')\n]);\n\n// locales en and en-US are required for default behavior\nregister([\n _dereq_('./locale-en'),\n _dereq_('./locale-en-us')\n]);\n\n// locales that are present in the window should be loaded\nif(window.PlotlyLocales && Array.isArray(window.PlotlyLocales)) {\n register(window.PlotlyLocales);\n delete window.PlotlyLocales;\n}\n\n// plot icons\nexports.Icons = _dereq_('./fonts/ploticon');\n\n// unofficial 'beta' plot methods, use at your own risk\nvar Fx = _dereq_('./components/fx');\nvar Plots = _dereq_('./plots/plots');\n\nexports.Plots = {\n resize: Plots.resize,\n graphJson: Plots.graphJson,\n sendDataToCloud: Plots.sendDataToCloud\n};\nexports.Fx = {\n hover: Fx.hover,\n unhover: Fx.unhover,\n loneHover: Fx.loneHover,\n loneUnhover: Fx.loneUnhover\n};\nexports.Snapshot = _dereq_('./snapshot');\nexports.PlotSchema = _dereq_('./plot_api/plot_schema');\n\n},{\"../build/plotcss\":1,\"./components/annotations\":358,\"./components/annotations3d\":363,\"./components/colorbar\":373,\"./components/colorscale\":379,\"./components/errorbars\":395,\"./components/fx\":407,\"./components/grid\":411,\"./components/images\":416,\"./components/legend\":424,\"./components/modebar\":430,\"./components/rangeselector\":438,\"./components/rangeslider\":445,\"./components/selections\":455,\"./components/shapes\":470,\"./components/sliders\":475,\"./components/updatemenus\":481,\"./fonts/ploticon\":494,\"./locale-en\":546,\"./locale-en-us\":545,\"./plot_api\":550,\"./plot_api/plot_schema\":554,\"./plots/plots\":628,\"./registry\":647,\"./snapshot\":652,\"./traces/scatter\":948,\"./version\":1132,\"native-promise-only\":245}],494:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n 'undo': {\n 'width': 857.1,\n 'height': 1000,\n 'path': 'm857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'home': {\n 'width': 928.6,\n 'height': 1000,\n 'path': 'm786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'camera-retro': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'zoombox': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'pan': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'zoom_plus': {\n 'width': 875,\n 'height': 1000,\n 'path': 'm1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'zoom_minus': {\n 'width': 875,\n 'height': 1000,\n 'path': 'm0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'autoscale': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'tooltip_basic': {\n 'width': 1500,\n 'height': 1000,\n 'path': 'm375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'tooltip_compare': {\n 'width': 1125,\n 'height': 1000,\n 'path': 'm187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'plotlylogo': {\n 'width': 1542,\n 'height': 1000,\n 'path': 'm0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'z-axis': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n '3d_rotate': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'camera': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'movie': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'question': {\n 'width': 857.1,\n 'height': 1000,\n 'path': 'm500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'disk': {\n 'width': 857.1,\n 'height': 1000,\n 'path': 'm214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'drawopenpath': {\n 'width': 70,\n 'height': 70,\n 'path': 'M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z',\n 'transform': 'matrix(1 0 0 1 -15 -15)'\n },\n 'drawclosedpath': {\n 'width': 90,\n 'height': 90,\n 'path': 'M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z',\n 'transform': 'matrix(1 0 0 1 -5 -5)'\n },\n 'lasso': {\n 'width': 1031,\n 'height': 1000,\n 'path': 'm1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'selectbox': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'm0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z',\n 'transform': 'matrix(1 0 0 -1 0 850)'\n },\n 'drawline': {\n 'width': 70,\n 'height': 70,\n 'path': 'M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z',\n 'transform': 'matrix(1 0 0 1 -15 -15)'\n },\n 'drawrect': {\n 'width': 80,\n 'height': 80,\n 'path': 'M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z',\n 'transform': 'matrix(1 0 0 1 -10 -10)'\n },\n 'drawcircle': {\n 'width': 80,\n 'height': 80,\n 'path': 'M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z',\n 'transform': 'matrix(1 0 0 1 -10 -10)'\n },\n 'eraseshape': {\n 'width': 80,\n 'height': 80,\n 'path': 'M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z',\n 'transform': 'matrix(1 0 0 1 -10 -10)'\n },\n 'spikeline': {\n 'width': 1000,\n 'height': 1000,\n 'path': 'M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z',\n 'transform': 'matrix(1.5 0 0 -1.5 0 850)'\n },\n 'pencil': {\n 'width': 1792,\n 'height': 1792,\n 'path': 'M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z',\n 'transform': 'matrix(1 0 0 1 0 1)'\n },\n 'newplotlylogo': {\n 'name': 'newplotlylogo',\n 'svg': [\n '',\n '',\n ' ',\n '',\n ' plotly-logomark',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ' ',\n ''\n ].join('')\n }\n};\n\n},{}],495:[function(_dereq_,module,exports){\n'use strict';\n\n\n/**\n * Determine the position anchor property of x/y xanchor/yanchor components.\n *\n * - values < 1/3 align the low side at that fraction,\n * - values [1/3, 2/3] align the center at that fraction,\n * - values > 2/3 align the right at that fraction.\n */\n\n\nexports.isLeftAnchor = function isLeftAnchor(opts) {\n return (\n opts.xanchor === 'left' ||\n (opts.xanchor === 'auto' && opts.x <= 1 / 3)\n );\n};\n\nexports.isCenterAnchor = function isCenterAnchor(opts) {\n return (\n opts.xanchor === 'center' ||\n (opts.xanchor === 'auto' && opts.x > 1 / 3 && opts.x < 2 / 3)\n );\n};\n\nexports.isRightAnchor = function isRightAnchor(opts) {\n return (\n opts.xanchor === 'right' ||\n (opts.xanchor === 'auto' && opts.x >= 2 / 3)\n );\n};\n\nexports.isTopAnchor = function isTopAnchor(opts) {\n return (\n opts.yanchor === 'top' ||\n (opts.yanchor === 'auto' && opts.y >= 2 / 3)\n );\n};\n\nexports.isMiddleAnchor = function isMiddleAnchor(opts) {\n return (\n opts.yanchor === 'middle' ||\n (opts.yanchor === 'auto' && opts.y > 1 / 3 && opts.y < 2 / 3)\n );\n};\n\nexports.isBottomAnchor = function isBottomAnchor(opts) {\n return (\n opts.yanchor === 'bottom' ||\n (opts.yanchor === 'auto' && opts.y <= 1 / 3)\n );\n};\n\n},{}],496:[function(_dereq_,module,exports){\n'use strict';\n\nvar modModule = _dereq_('./mod');\nvar mod = modModule.mod;\nvar modHalf = modModule.modHalf;\n\nvar PI = Math.PI;\nvar twoPI = 2 * PI;\n\nfunction deg2rad(deg) { return deg / 180 * PI; }\n\nfunction rad2deg(rad) { return rad / PI * 180; }\n\n/**\n * is sector a full circle?\n * ... this comes up a lot in SVG path-drawing routines\n *\n * N.B. we consider all sectors that span more that 2pi 'full' circles\n *\n * @param {2-item array} aBnds : angular bounds in *radians*\n * @return {boolean}\n */\nfunction isFullCircle(aBnds) {\n return Math.abs(aBnds[1] - aBnds[0]) > twoPI - 1e-14;\n}\n\n/**\n * angular delta between angle 'a' and 'b'\n * solution taken from: https://stackoverflow.com/a/2007279\n *\n * @param {number} a : first angle in *radians*\n * @param {number} b : second angle in *radians*\n * @return {number} angular delta in *radians*\n */\nfunction angleDelta(a, b) {\n return modHalf(b - a, twoPI);\n}\n\n/**\n * angular distance between angle 'a' and 'b'\n *\n * @param {number} a : first angle in *radians*\n * @param {number} b : second angle in *radians*\n * @return {number} angular distance in *radians*\n */\nfunction angleDist(a, b) {\n return Math.abs(angleDelta(a, b));\n}\n\n/**\n * is angle inside sector?\n *\n * @param {number} a : angle to test in *radians*\n * @param {2-item array} aBnds : sector's angular bounds in *radians*\n * @param {boolean}\n */\nfunction isAngleInsideSector(a, aBnds) {\n if(isFullCircle(aBnds)) return true;\n\n var s0, s1;\n\n if(aBnds[0] < aBnds[1]) {\n s0 = aBnds[0];\n s1 = aBnds[1];\n } else {\n s0 = aBnds[1];\n s1 = aBnds[0];\n }\n\n s0 = mod(s0, twoPI);\n s1 = mod(s1, twoPI);\n if(s0 > s1) s1 += twoPI;\n\n var a0 = mod(a, twoPI);\n var a1 = a0 + twoPI;\n\n return (a0 >= s0 && a0 <= s1) || (a1 >= s0 && a1 <= s1);\n}\n\n/**\n * is pt (r,a) inside sector?\n *\n * @param {number} r : pt's radial coordinate\n * @param {number} a : pt's angular coordinate in *radians*\n * @param {2-item array} rBnds : sector's radial bounds\n * @param {2-item array} aBnds : sector's angular bounds in *radians*\n * @return {boolean}\n */\nfunction isPtInsideSector(r, a, rBnds, aBnds) {\n if(!isAngleInsideSector(a, aBnds)) return false;\n\n var r0, r1;\n\n if(rBnds[0] < rBnds[1]) {\n r0 = rBnds[0];\n r1 = rBnds[1];\n } else {\n r0 = rBnds[1];\n r1 = rBnds[0];\n }\n\n return r >= r0 && r <= r1;\n}\n\n// common to pathArc, pathSector and pathAnnulus\nfunction _path(r0, r1, a0, a1, cx, cy, isClosed) {\n cx = cx || 0;\n cy = cy || 0;\n\n var isCircle = isFullCircle([a0, a1]);\n var aStart, aMid, aEnd;\n var rStart, rEnd;\n\n if(isCircle) {\n aStart = 0;\n aMid = PI;\n aEnd = twoPI;\n } else {\n if(a0 < a1) {\n aStart = a0;\n aEnd = a1;\n } else {\n aStart = a1;\n aEnd = a0;\n }\n }\n\n if(r0 < r1) {\n rStart = r0;\n rEnd = r1;\n } else {\n rStart = r1;\n rEnd = r0;\n }\n\n // N.B. svg coordinates here, where y increases downward\n function pt(r, a) {\n return [r * Math.cos(a) + cx, cy - r * Math.sin(a)];\n }\n\n var largeArc = Math.abs(aEnd - aStart) <= PI ? 0 : 1;\n function arc(r, a, cw) {\n return 'A' + [r, r] + ' ' + [0, largeArc, cw] + ' ' + pt(r, a);\n }\n\n var p;\n\n if(isCircle) {\n if(rStart === null) {\n p = 'M' + pt(rEnd, aStart) +\n arc(rEnd, aMid, 0) +\n arc(rEnd, aEnd, 0) + 'Z';\n } else {\n p = 'M' + pt(rStart, aStart) +\n arc(rStart, aMid, 0) +\n arc(rStart, aEnd, 0) + 'Z' +\n 'M' + pt(rEnd, aStart) +\n arc(rEnd, aMid, 1) +\n arc(rEnd, aEnd, 1) + 'Z';\n }\n } else {\n if(rStart === null) {\n p = 'M' + pt(rEnd, aStart) + arc(rEnd, aEnd, 0);\n if(isClosed) p += 'L0,0Z';\n } else {\n p = 'M' + pt(rStart, aStart) +\n 'L' + pt(rEnd, aStart) +\n arc(rEnd, aEnd, 0) +\n 'L' + pt(rStart, aEnd) +\n arc(rStart, aStart, 1) + 'Z';\n }\n }\n\n return p;\n}\n\n/**\n * path an arc\n *\n * @param {number} r : radius\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n */\nfunction pathArc(r, a0, a1, cx, cy) {\n return _path(null, r, a0, a1, cx, cy, 0);\n}\n\n/**\n * path a sector\n *\n * @param {number} r : radius\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n */\nfunction pathSector(r, a0, a1, cx, cy) {\n return _path(null, r, a0, a1, cx, cy, 1);\n}\n\n/**\n * path an annulus\n *\n * @param {number} r0 : first radial coordinate\n * @param {number} r1 : second radial coordinate\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n */\nfunction pathAnnulus(r0, r1, a0, a1, cx, cy) {\n return _path(r0, r1, a0, a1, cx, cy, 1);\n}\n\nmodule.exports = {\n deg2rad: deg2rad,\n rad2deg: rad2deg,\n angleDelta: angleDelta,\n angleDist: angleDist,\n isFullCircle: isFullCircle,\n isAngleInsideSector: isAngleInsideSector,\n isPtInsideSector: isPtInsideSector,\n pathArc: pathArc,\n pathSector: pathSector,\n pathAnnulus: pathAnnulus\n};\n\n},{\"./mod\":522}],497:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArray = Array.isArray;\n\nvar ab = ArrayBuffer;\nvar dv = DataView;\n\nfunction isTypedArray(a) {\n return ab.isView(a) && !(a instanceof dv);\n}\nexports.isTypedArray = isTypedArray;\n\nfunction isArrayOrTypedArray(a) {\n return isArray(a) || isTypedArray(a);\n}\nexports.isArrayOrTypedArray = isArrayOrTypedArray;\n\n/*\n * Test whether an input object is 1D.\n *\n * Assumes we already know the object is an array.\n *\n * Looks only at the first element, if the dimensionality is\n * not consistent we won't figure that out here.\n */\nfunction isArray1D(a) {\n return !isArrayOrTypedArray(a[0]);\n}\nexports.isArray1D = isArray1D;\n\n/*\n * Ensures an array has the right amount of storage space. If it doesn't\n * exist, it creates an array. If it does exist, it returns it if too\n * short or truncates it in-place.\n *\n * The goal is to just reuse memory to avoid a bit of excessive garbage\n * collection.\n */\nexports.ensureArray = function(out, n) {\n // TODO: typed array support here? This is only used in\n // traces/carpet/compute_control_points\n if(!isArray(out)) out = [];\n\n // If too long, truncate. (If too short, it will grow\n // automatically so we don't care about that case)\n out.length = n;\n\n return out;\n};\n\n/*\n * TypedArray-compatible concatenation of n arrays\n * if all arrays are the same type it will preserve that type,\n * otherwise it falls back on Array.\n * Also tries to avoid copying, in case one array has zero length\n * But never mutates an existing array\n */\nexports.concat = function() {\n var args = [];\n var allArray = true;\n var totalLen = 0;\n\n var _constructor, arg0, i, argi, posi, leni, out, j;\n\n for(i = 0; i < arguments.length; i++) {\n argi = arguments[i];\n leni = argi.length;\n if(leni) {\n if(arg0) args.push(argi);\n else {\n arg0 = argi;\n posi = leni;\n }\n\n if(isArray(argi)) {\n _constructor = false;\n } else {\n allArray = false;\n if(!totalLen) {\n _constructor = argi.constructor;\n } else if(_constructor !== argi.constructor) {\n // TODO: in principle we could upgrade here,\n // ie keep typed array but convert all to Float64Array?\n _constructor = false;\n }\n }\n\n totalLen += leni;\n }\n }\n\n if(!totalLen) return [];\n if(!args.length) return arg0;\n\n if(allArray) return arg0.concat.apply(arg0, args);\n if(_constructor) {\n // matching typed arrays\n out = new _constructor(totalLen);\n out.set(arg0);\n for(i = 0; i < args.length; i++) {\n argi = args[i];\n out.set(argi, posi);\n posi += argi.length;\n }\n return out;\n }\n\n // mismatched types or Array + typed\n out = new Array(totalLen);\n for(j = 0; j < arg0.length; j++) out[j] = arg0[j];\n for(i = 0; i < args.length; i++) {\n argi = args[i];\n for(j = 0; j < argi.length; j++) out[posi + j] = argi[j];\n posi += j;\n }\n return out;\n};\n\nexports.maxRowLength = function(z) {\n return _rowLength(z, Math.max, 0);\n};\n\nexports.minRowLength = function(z) {\n return _rowLength(z, Math.min, Infinity);\n};\n\nfunction _rowLength(z, fn, len0) {\n if(isArrayOrTypedArray(z)) {\n if(isArrayOrTypedArray(z[0])) {\n var len = len0;\n for(var i = 0; i < z.length; i++) {\n len = fn(len, z[i].length);\n }\n return len;\n } else {\n return z.length;\n }\n }\n return 0;\n}\n\n},{}],498:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\n// precompile for speed\nvar JUNK = /^['\"%,$#\\s']+|[, ]|['\"%,$#\\s']+$/g;\n\n/**\n * cleanNumber: remove common leading and trailing cruft\n * Always returns either a number or BADNUM.\n */\nmodule.exports = function cleanNumber(v) {\n if(typeof v === 'string') {\n v = v.replace(JUNK, '');\n }\n\n if(isNumeric(v)) return Number(v);\n\n return BADNUM;\n};\n\n},{\"../constants/numerical\":491,\"fast-isnumeric\":190}],499:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Clear gl frame (if any). This is a common pattern as\n * we usually set `preserveDrawingBuffer: true` during\n * gl context creation (e.g. via `reglUtils.prepare`).\n *\n * @param {DOM node or object} gd : graph div object\n */\nmodule.exports = function clearGlCanvases(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._glcanvas && fullLayout._glcanvas.size()) {\n fullLayout._glcanvas.each(function(d) {\n if(d.regl) d.regl.clear({color: true, depth: true});\n });\n }\n};\n\n},{}],500:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Clear responsive handlers (if any).\n *\n * @param {DOM node or object} gd : graph div object\n */\nmodule.exports = function clearResponsive(gd) {\n if(gd._responsiveChartHandler) {\n window.removeEventListener('resize', gd._responsiveChartHandler);\n delete gd._responsiveChartHandler;\n }\n};\n\n},{}],501:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar baseTraceAttrs = _dereq_('../plots/attributes');\nvar colorscales = _dereq_('../components/colorscale/scales');\nvar Color = _dereq_('../components/color');\nvar DESELECTDIM = _dereq_('../constants/interactions').DESELECTDIM;\n\nvar nestedProperty = _dereq_('./nested_property');\nvar counterRegex = _dereq_('./regex').counter;\nvar modHalf = _dereq_('./mod').modHalf;\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\nexports.valObjectMeta = {\n data_array: {\n // You can use *dflt=[] to force said array to exist though.\n coerceFunction: function(v, propOut, dflt) {\n // TODO maybe `v: {type: 'float32', vals: [/* ... */]}` also\n if(isArrayOrTypedArray(v)) propOut.set(v);\n else if(dflt !== undefined) propOut.set(dflt);\n }\n },\n enumerated: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(opts.coerceNumber) v = +v;\n if(opts.values.indexOf(v) === -1) propOut.set(dflt);\n else propOut.set(v);\n },\n validateFunction: function(v, opts) {\n if(opts.coerceNumber) v = +v;\n\n var values = opts.values;\n for(var i = 0; i < values.length; i++) {\n var k = String(values[i]);\n\n if((k.charAt(0) === '/' && k.charAt(k.length - 1) === '/')) {\n var regex = new RegExp(k.substr(1, k.length - 2));\n if(regex.test(v)) return true;\n } else if(v === values[i]) return true;\n }\n return false;\n }\n },\n 'boolean': {\n coerceFunction: function(v, propOut, dflt) {\n if(v === true || v === false) propOut.set(v);\n else propOut.set(dflt);\n }\n },\n number: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(!isNumeric(v) ||\n (opts.min !== undefined && v < opts.min) ||\n (opts.max !== undefined && v > opts.max)) {\n propOut.set(dflt);\n } else propOut.set(+v);\n }\n },\n integer: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if(v % 1 || !isNumeric(v) ||\n (opts.min !== undefined && v < opts.min) ||\n (opts.max !== undefined && v > opts.max)) {\n propOut.set(dflt);\n } else propOut.set(+v);\n }\n },\n string: {\n // TODO 'values shouldn't be in there (edge case: 'dash' in Scatter)\n coerceFunction: function(v, propOut, dflt, opts) {\n if(typeof v !== 'string') {\n var okToCoerce = (typeof v === 'number');\n\n if(opts.strict === true || !okToCoerce) propOut.set(dflt);\n else propOut.set(String(v));\n } else if(opts.noBlank && !v) propOut.set(dflt);\n else propOut.set(v);\n }\n },\n color: {\n coerceFunction: function(v, propOut, dflt) {\n if(tinycolor(v).isValid()) propOut.set(v);\n else propOut.set(dflt);\n }\n },\n colorlist: {\n coerceFunction: function(v, propOut, dflt) {\n function isColor(color) {\n return tinycolor(color).isValid();\n }\n if(!Array.isArray(v) || !v.length) propOut.set(dflt);\n else if(v.every(isColor)) propOut.set(v);\n else propOut.set(dflt);\n }\n },\n colorscale: {\n coerceFunction: function(v, propOut, dflt) {\n propOut.set(colorscales.get(v, dflt));\n }\n },\n angle: {\n coerceFunction: function(v, propOut, dflt) {\n if(v === 'auto') propOut.set('auto');\n else if(!isNumeric(v)) propOut.set(dflt);\n else propOut.set(modHalf(+v, 360));\n }\n },\n subplotid: {\n coerceFunction: function(v, propOut, dflt, opts) {\n var regex = opts.regex || counterRegex(dflt);\n if(typeof v === 'string' && regex.test(v)) {\n propOut.set(v);\n return;\n }\n propOut.set(dflt);\n },\n validateFunction: function(v, opts) {\n var dflt = opts.dflt;\n\n if(v === dflt) return true;\n if(typeof v !== 'string') return false;\n if(counterRegex(dflt).test(v)) return true;\n\n return false;\n }\n },\n flaglist: {\n coerceFunction: function(v, propOut, dflt, opts) {\n if((opts.extras || []).indexOf(v) !== -1) {\n propOut.set(v);\n return;\n }\n if(typeof v !== 'string') {\n propOut.set(dflt);\n return;\n }\n var vParts = v.split('+');\n var i = 0;\n while(i < vParts.length) {\n var vi = vParts[i];\n if(opts.flags.indexOf(vi) === -1 || vParts.indexOf(vi) < i) {\n vParts.splice(i, 1);\n } else i++;\n }\n if(!vParts.length) propOut.set(dflt);\n else propOut.set(vParts.join('+'));\n }\n },\n any: {\n coerceFunction: function(v, propOut, dflt) {\n if(v === undefined) propOut.set(dflt);\n else propOut.set(v);\n }\n },\n info_array: {\n // set `dimensions=2` for a 2D array or '1-2' for either\n // `items` may be a single object instead of an array, in which case\n // `freeLength` must be true.\n // if `dimensions='1-2'` and items is a 1D array, then the value can\n // either be a matching 1D array or an array of such matching 1D arrays\n coerceFunction: function(v, propOut, dflt, opts) {\n // simplified coerce function just for array items\n function coercePart(v, opts, dflt) {\n var out;\n var propPart = {set: function(v) { out = v; }};\n\n if(dflt === undefined) dflt = opts.dflt;\n\n exports.valObjectMeta[opts.valType].coerceFunction(v, propPart, dflt, opts);\n\n return out;\n }\n\n var twoD = opts.dimensions === 2 || (opts.dimensions === '1-2' && Array.isArray(v) && Array.isArray(v[0]));\n\n if(!Array.isArray(v)) {\n propOut.set(dflt);\n return;\n }\n\n var items = opts.items;\n var vOut = [];\n var arrayItems = Array.isArray(items);\n var arrayItems2D = arrayItems && twoD && Array.isArray(items[0]);\n var innerItemsOnly = twoD && arrayItems && !arrayItems2D;\n var len = (arrayItems && !innerItemsOnly) ? items.length : v.length;\n\n var i, j, row, item, len2, vNew;\n\n dflt = Array.isArray(dflt) ? dflt : [];\n\n if(twoD) {\n for(i = 0; i < len; i++) {\n vOut[i] = [];\n row = Array.isArray(v[i]) ? v[i] : [];\n if(innerItemsOnly) len2 = items.length;\n else if(arrayItems) len2 = items[i].length;\n else len2 = row.length;\n\n for(j = 0; j < len2; j++) {\n if(innerItemsOnly) item = items[j];\n else if(arrayItems) item = items[i][j];\n else item = items;\n\n vNew = coercePart(row[j], item, (dflt[i] || [])[j]);\n if(vNew !== undefined) vOut[i][j] = vNew;\n }\n }\n } else {\n for(i = 0; i < len; i++) {\n vNew = coercePart(v[i], arrayItems ? items[i] : items, dflt[i]);\n if(vNew !== undefined) vOut[i] = vNew;\n }\n }\n\n propOut.set(vOut);\n },\n validateFunction: function(v, opts) {\n if(!Array.isArray(v)) return false;\n\n var items = opts.items;\n var arrayItems = Array.isArray(items);\n var twoD = opts.dimensions === 2;\n\n // when free length is off, input and declared lengths must match\n if(!opts.freeLength && v.length !== items.length) return false;\n\n // valid when all input items are valid\n for(var i = 0; i < v.length; i++) {\n if(twoD) {\n if(!Array.isArray(v[i]) || (!opts.freeLength && v[i].length !== items[i].length)) {\n return false;\n }\n for(var j = 0; j < v[i].length; j++) {\n if(!validate(v[i][j], arrayItems ? items[i][j] : items)) {\n return false;\n }\n }\n } else if(!validate(v[i], arrayItems ? items[i] : items)) return false;\n }\n\n return true;\n }\n }\n};\n\n/**\n * Ensures that container[attribute] has a valid value.\n *\n * attributes[attribute] is an object with possible keys:\n * - valType: data_array, enumerated, boolean, ... as in valObjectMeta\n * - values: (enumerated only) array of allowed vals\n * - min, max: (number, integer only) inclusive bounds on allowed vals\n * either or both may be omitted\n * - dflt: if attribute is invalid or missing, use this default\n * if dflt is provided as an argument to lib.coerce it takes precedence\n * as a convenience, returns the value it finally set\n */\nexports.coerce = function(containerIn, containerOut, attributes, attribute, dflt) {\n var opts = nestedProperty(attributes, attribute).get();\n var propIn = nestedProperty(containerIn, attribute);\n var propOut = nestedProperty(containerOut, attribute);\n var v = propIn.get();\n\n var template = containerOut._template;\n if(v === undefined && template) {\n v = nestedProperty(template, attribute).get();\n // already used the template value, so short-circuit the second check\n template = 0;\n }\n\n if(dflt === undefined) dflt = opts.dflt;\n\n /**\n * arrayOk: value MAY be an array, then we do no value checking\n * at this point, because it can be more complicated than the\n * individual form (eg. some array vals can be numbers, even if the\n * single values must be color strings)\n */\n if(opts.arrayOk && isArrayOrTypedArray(v)) {\n propOut.set(v);\n return v;\n }\n\n var coerceFunction = exports.valObjectMeta[opts.valType].coerceFunction;\n coerceFunction(v, propOut, dflt, opts);\n\n var out = propOut.get();\n // in case v was provided but invalid, try the template again so it still\n // overrides the regular default\n if(template && out === dflt && !validate(v, opts)) {\n v = nestedProperty(template, attribute).get();\n coerceFunction(v, propOut, dflt, opts);\n out = propOut.get();\n }\n return out;\n};\n\n/**\n * Variation on coerce\n *\n * Uses coerce to get attribute value if user input is valid,\n * returns attribute default if user input it not valid or\n * returns false if there is no user input.\n */\nexports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {\n var propIn = nestedProperty(containerIn, attribute);\n var propOut = exports.coerce(containerIn, containerOut, attributes, attribute, dflt);\n var valIn = propIn.get();\n\n return (valIn !== undefined && valIn !== null) ? propOut : false;\n};\n\n/*\n * Shortcut to coerce the three font attributes\n *\n * 'coerce' is a lib.coerce wrapper with implied first three arguments\n */\nexports.coerceFont = function(coerce, attr, dfltObj) {\n var out = {};\n\n dfltObj = dfltObj || {};\n\n out.family = coerce(attr + '.family', dfltObj.family);\n out.size = coerce(attr + '.size', dfltObj.size);\n out.color = coerce(attr + '.color', dfltObj.color);\n\n return out;\n};\n\n/*\n * Shortcut to coerce the pattern attributes\n */\nexports.coercePattern = function(coerce, attr, markerColor, hasMarkerColorscale) {\n var shape = coerce(attr + '.shape');\n if(shape) {\n coerce(attr + '.solidity');\n coerce(attr + '.size');\n var fillmode = coerce(attr + '.fillmode');\n var isOverlay = fillmode === 'overlay';\n\n if(!hasMarkerColorscale) {\n var bgcolor = coerce(attr + '.bgcolor', isOverlay ?\n markerColor :\n undefined\n );\n\n coerce(attr + '.fgcolor', isOverlay ?\n Color.contrast(bgcolor) :\n markerColor\n );\n }\n\n coerce(attr + '.fgopacity', isOverlay ?\n 0.5 :\n 1\n );\n }\n};\n\n/** Coerce shortcut for 'hoverinfo'\n * handling 1-vs-multi-trace dflt logic\n *\n * @param {object} traceIn : user trace object\n * @param {object} traceOut : full trace object (requires _module ref)\n * @param {object} layoutOut : full layout object (require _dataLength ref)\n * @return {any} : the coerced value\n */\nexports.coerceHoverinfo = function(traceIn, traceOut, layoutOut) {\n var moduleAttrs = traceOut._module.attributes;\n var attrs = moduleAttrs.hoverinfo ? moduleAttrs : baseTraceAttrs;\n\n var valObj = attrs.hoverinfo;\n var dflt;\n\n if(layoutOut._dataLength === 1) {\n var flags = valObj.dflt === 'all' ?\n valObj.flags.slice() :\n valObj.dflt.split('+');\n\n flags.splice(flags.indexOf('name'), 1);\n dflt = flags.join('+');\n }\n\n return exports.coerce(traceIn, traceOut, attrs, 'hoverinfo', dflt);\n};\n\n/** Coerce shortcut for [un]selected.marker.opacity,\n * which has special default logic, to ensure that it corresponds to the\n * default selection behavior while allowing to be overtaken by any other\n * [un]selected attribute.\n *\n * N.B. This must be called *after* coercing all the other [un]selected attrs,\n * to give the intended result.\n *\n * @param {object} traceOut : fullData item\n * @param {function} coerce : lib.coerce wrapper with implied first three arguments\n */\nexports.coerceSelectionMarkerOpacity = function(traceOut, coerce) {\n if(!traceOut.marker) return;\n\n var mo = traceOut.marker.opacity;\n // you can still have a `marker` container with no markers if there's text\n if(mo === undefined) return;\n\n var smoDflt;\n var usmoDflt;\n\n // Don't give [un]selected.marker.opacity a default value if\n // marker.opacity is an array: handle this during style step.\n //\n // Only give [un]selected.marker.opacity a default value if you don't\n // set any other [un]selected attributes.\n if(!isArrayOrTypedArray(mo) && !traceOut.selected && !traceOut.unselected) {\n smoDflt = mo;\n usmoDflt = DESELECTDIM * mo;\n }\n\n coerce('selected.marker.opacity', smoDflt);\n coerce('unselected.marker.opacity', usmoDflt);\n};\n\nfunction validate(value, opts) {\n var valObjectDef = exports.valObjectMeta[opts.valType];\n\n if(opts.arrayOk && isArrayOrTypedArray(value)) return true;\n\n if(valObjectDef.validateFunction) {\n return valObjectDef.validateFunction(value, opts);\n }\n\n var failed = {};\n var out = failed;\n var propMock = { set: function(v) { out = v; } };\n\n // 'failed' just something mutable that won't be === anything else\n\n valObjectDef.coerceFunction(value, propMock, failed, opts);\n return out !== failed;\n}\nexports.validate = validate;\n\n},{\"../components/color\":367,\"../components/colorscale/scales\":382,\"../constants/interactions\":490,\"../plots/attributes\":562,\"./array\":497,\"./mod\":522,\"./nested_property\":523,\"./regex\":532,\"fast-isnumeric\":190,\"tinycolor2\":313}],502:[function(_dereq_,module,exports){\n'use strict';\n\nvar timeFormat = _dereq_('d3-time-format').timeFormat;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Loggers = _dereq_('./loggers');\nvar mod = _dereq_('./mod').mod;\n\nvar constants = _dereq_('../constants/numerical');\nvar BADNUM = constants.BADNUM;\nvar ONEDAY = constants.ONEDAY;\nvar ONEHOUR = constants.ONEHOUR;\nvar ONEMIN = constants.ONEMIN;\nvar ONESEC = constants.ONESEC;\nvar EPOCHJD = constants.EPOCHJD;\n\nvar Registry = _dereq_('../registry');\n\nvar utcFormat = _dereq_('d3-time-format').utcFormat;\n\nvar DATETIME_REGEXP = /^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\d)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d(:?\\d\\d)?)?)?)?)?)?\\s*$/m;\n// special regex for chinese calendars to support yyyy-mmi-dd etc for intercalary months\nvar DATETIME_REGEXP_CN = /^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\di?)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d(:?\\d\\d)?)?)?)?)?)?\\s*$/m;\n\n// for 2-digit years, the first year we map them onto\nvar YFIRST = new Date().getFullYear() - 70;\n\nfunction isWorldCalendar(calendar) {\n return (\n calendar &&\n Registry.componentsRegistry.calendars &&\n typeof calendar === 'string' && calendar !== 'gregorian'\n );\n}\n\n/*\n * dateTick0: get the canonical tick for this calendar\n *\n * integer weekdays : Saturday: 0, Sunday: 1, Monday: 2, etc.\n */\nexports.dateTick0 = function(calendar, dayOfWeek) {\n var tick0 = _dateTick0(calendar, !!dayOfWeek);\n if(dayOfWeek < 2) return tick0;\n\n var v = exports.dateTime2ms(tick0, calendar);\n v += ONEDAY * (dayOfWeek - 1); // shift Sunday to Monday, etc.\n return exports.ms2DateTime(v, 0, calendar);\n};\n\n/*\n * _dateTick0: get the canonical tick for this calendar\n *\n * bool sunday is for week ticks, shift it to a Sunday.\n */\nfunction _dateTick0(calendar, sunday) {\n if(isWorldCalendar(calendar)) {\n return sunday ?\n Registry.getComponentMethod('calendars', 'CANONICAL_SUNDAY')[calendar] :\n Registry.getComponentMethod('calendars', 'CANONICAL_TICK')[calendar];\n } else {\n return sunday ? '2000-01-02' : '2000-01-01';\n }\n}\n\n/*\n * dfltRange: for each calendar, give a valid default range\n */\nexports.dfltRange = function(calendar) {\n if(isWorldCalendar(calendar)) {\n return Registry.getComponentMethod('calendars', 'DFLTRANGE')[calendar];\n } else {\n return ['2000-01-01', '2001-01-01'];\n }\n};\n\n// is an object a javascript date?\nexports.isJSDate = function(v) {\n return typeof v === 'object' && v !== null && typeof v.getTime === 'function';\n};\n\n// The absolute limits of our date-time system\n// This is a little weird: we use MIN_MS and MAX_MS in dateTime2ms\n// but we use dateTime2ms to calculate them (after defining it!)\nvar MIN_MS, MAX_MS;\n\n/**\n * dateTime2ms - turn a date object or string s into milliseconds\n * (relative to 1970-01-01, per javascript standard)\n * optional calendar (string) to use a non-gregorian calendar\n *\n * Returns BADNUM if it doesn't find a date\n *\n * strings should have the form:\n *\n * -?YYYY-mm-ddHH:MM:SS.sss?\n *\n * : space (our normal standard) or T or t (ISO-8601)\n * : Z, z, [+\\-]HH:?MM or [+\\-]HH and we THROW IT AWAY\n * this format comes from https://tools.ietf.org/html/rfc3339#section-5.6\n * and 4.2.5.1 Difference between local time and UTC of day (ISO-8601)\n * but we allow it even with a space as the separator\n *\n * May truncate after any full field, and sss can be any length\n * even >3 digits, though javascript dates truncate to milliseconds,\n * we keep as much as javascript numeric precision can hold, but we only\n * report back up to 100 microsecond precision, because most dates support\n * this precision (close to 1970 support more, very far away support less)\n *\n * Expanded to support negative years to -9999 but you must always\n * give 4 digits, except for 2-digit positive years which we assume are\n * near the present time.\n * Note that we follow ISO 8601:2004: there *is* a year 0, which\n * is 1BC/BCE, and -1===2BC etc.\n *\n * World calendars: not all of these *have* agreed extensions to this full range,\n * if you have another calendar system but want a date range outside its validity,\n * you can use a gregorian date string prefixed with 'G' or 'g'.\n *\n * Where to cut off 2-digit years between 1900s and 2000s?\n * from https://docs.microsoft.com/en-us/office/troubleshoot/excel/two-digit-year-numbers#the-2029-rule:\n * 1930-2029 (the most retro of all...)\n * but in my mac chrome from eg. d=new Date(Date.parse('8/19/50')):\n * 1950-2049\n * by Java, from http://stackoverflow.com/questions/2024273/:\n * now-80 - now+19\n * or FileMaker Pro, from\n * https://fmhelp.filemaker.com/help/18/fmp/en/index.html#page/FMP_Help/dates-with-two-digit-years.html:\n * now-70 - now+29\n * but python strptime etc, via\n * http://docs.python.org/py3k/library/time.html:\n * 1969-2068 (super forward-looking, but static, not sliding!)\n *\n * lets go with now-70 to now+29, and if anyone runs into this problem\n * they can learn the hard way not to use 2-digit years, as no choice we\n * make now will cover all possibilities. mostly this will all be taken\n * care of in initial parsing, should only be an issue for hand-entered data\n * currently (2016) this range is:\n * 1946-2045\n */\nexports.dateTime2ms = function(s, calendar) {\n // first check if s is a date object\n if(exports.isJSDate(s)) {\n // Convert to the UTC milliseconds that give the same\n // hours as this date has in the local timezone\n var tzOffset = s.getTimezoneOffset() * ONEMIN;\n var offsetTweak = (s.getUTCMinutes() - s.getMinutes()) * ONEMIN +\n (s.getUTCSeconds() - s.getSeconds()) * ONESEC +\n (s.getUTCMilliseconds() - s.getMilliseconds());\n\n if(offsetTweak) {\n var comb = 3 * ONEMIN;\n tzOffset = tzOffset - comb / 2 + mod(offsetTweak - tzOffset + comb / 2, comb);\n }\n s = Number(s) - tzOffset;\n if(s >= MIN_MS && s <= MAX_MS) return s;\n return BADNUM;\n }\n // otherwise only accept strings and numbers\n if(typeof s !== 'string' && typeof s !== 'number') return BADNUM;\n\n s = String(s);\n\n var isWorld = isWorldCalendar(calendar);\n\n // to handle out-of-range dates in international calendars, accept\n // 'G' as a prefix to force the built-in gregorian calendar.\n var s0 = s.charAt(0);\n if(isWorld && (s0 === 'G' || s0 === 'g')) {\n s = s.substr(1);\n calendar = '';\n }\n\n var isChinese = isWorld && calendar.substr(0, 7) === 'chinese';\n\n var match = s.match(isChinese ? DATETIME_REGEXP_CN : DATETIME_REGEXP);\n if(!match) return BADNUM;\n var y = match[1];\n var m = match[3] || '1';\n var d = Number(match[5] || 1);\n var H = Number(match[7] || 0);\n var M = Number(match[9] || 0);\n var S = Number(match[11] || 0);\n\n if(isWorld) {\n // disallow 2-digit years for world calendars\n if(y.length === 2) return BADNUM;\n y = Number(y);\n\n var cDate;\n try {\n var calInstance = Registry.getComponentMethod('calendars', 'getCal')(calendar);\n if(isChinese) {\n var isIntercalary = m.charAt(m.length - 1) === 'i';\n m = parseInt(m, 10);\n cDate = calInstance.newDate(y, calInstance.toMonthIndex(y, m, isIntercalary), d);\n } else {\n cDate = calInstance.newDate(y, Number(m), d);\n }\n } catch(e) { return BADNUM; } // Invalid ... date\n\n if(!cDate) return BADNUM;\n\n return ((cDate.toJD() - EPOCHJD) * ONEDAY) +\n (H * ONEHOUR) + (M * ONEMIN) + (S * ONESEC);\n }\n\n if(y.length === 2) {\n y = (Number(y) + 2000 - YFIRST) % 100 + YFIRST;\n } else y = Number(y);\n\n // new Date uses months from 0; subtract 1 here just so we\n // don't have to do it again during the validity test below\n m -= 1;\n\n // javascript takes new Date(0..99,m,d) to mean 1900-1999, so\n // to support years 0-99 we need to use setFullYear explicitly\n // Note that 2000 is a leap year.\n var date = new Date(Date.UTC(2000, m, d, H, M));\n date.setUTCFullYear(y);\n\n if(date.getUTCMonth() !== m) return BADNUM;\n if(date.getUTCDate() !== d) return BADNUM;\n\n return date.getTime() + S * ONESEC;\n};\n\nMIN_MS = exports.MIN_MS = exports.dateTime2ms('-9999');\nMAX_MS = exports.MAX_MS = exports.dateTime2ms('9999-12-31 23:59:59.9999');\n\n// is string s a date? (see above)\nexports.isDateTime = function(s, calendar) {\n return (exports.dateTime2ms(s, calendar) !== BADNUM);\n};\n\n// pad a number with zeroes, to given # of digits before the decimal point\nfunction lpad(val, digits) {\n return String(val + Math.pow(10, digits)).substr(1);\n}\n\n/**\n * Turn ms into string of the form YYYY-mm-dd HH:MM:SS.ssss\n * Crop any trailing zeros in time, except never stop right after hours\n * (we could choose to crop '-01' from date too but for now we always\n * show the whole date)\n * Optional range r is the data range that applies, also in ms.\n * If rng is big, the later parts of time will be omitted\n */\nvar NINETYDAYS = 90 * ONEDAY;\nvar THREEHOURS = 3 * ONEHOUR;\nvar FIVEMIN = 5 * ONEMIN;\nexports.ms2DateTime = function(ms, r, calendar) {\n if(typeof ms !== 'number' || !(ms >= MIN_MS && ms <= MAX_MS)) return BADNUM;\n\n if(!r) r = 0;\n\n var msecTenths = Math.floor(mod(ms + 0.05, 1) * 10);\n var msRounded = Math.round(ms - msecTenths / 10);\n var dateStr, h, m, s, msec10, d;\n\n if(isWorldCalendar(calendar)) {\n var dateJD = Math.floor(msRounded / ONEDAY) + EPOCHJD;\n var timeMs = Math.floor(mod(ms, ONEDAY));\n try {\n dateStr = Registry.getComponentMethod('calendars', 'getCal')(calendar)\n .fromJD(dateJD).formatDate('yyyy-mm-dd');\n } catch(e) {\n // invalid date in this calendar - fall back to Gyyyy-mm-dd\n dateStr = utcFormat('G%Y-%m-%d')(new Date(msRounded));\n }\n\n // yyyy does NOT guarantee 4-digit years. YYYY mostly does, but does\n // other things for a few calendars, so we can't trust it. Just pad\n // it manually (after the '-' if there is one)\n if(dateStr.charAt(0) === '-') {\n while(dateStr.length < 11) dateStr = '-0' + dateStr.substr(1);\n } else {\n while(dateStr.length < 10) dateStr = '0' + dateStr;\n }\n\n // TODO: if this is faster, we could use this block for extracting\n // the time components of regular gregorian too\n h = (r < NINETYDAYS) ? Math.floor(timeMs / ONEHOUR) : 0;\n m = (r < NINETYDAYS) ? Math.floor((timeMs % ONEHOUR) / ONEMIN) : 0;\n s = (r < THREEHOURS) ? Math.floor((timeMs % ONEMIN) / ONESEC) : 0;\n msec10 = (r < FIVEMIN) ? (timeMs % ONESEC) * 10 + msecTenths : 0;\n } else {\n d = new Date(msRounded);\n\n dateStr = utcFormat('%Y-%m-%d')(d);\n\n // <90 days: add hours and minutes - never *only* add hours\n h = (r < NINETYDAYS) ? d.getUTCHours() : 0;\n m = (r < NINETYDAYS) ? d.getUTCMinutes() : 0;\n // <3 hours: add seconds\n s = (r < THREEHOURS) ? d.getUTCSeconds() : 0;\n // <5 minutes: add ms (plus one extra digit, this is msec*10)\n msec10 = (r < FIVEMIN) ? d.getUTCMilliseconds() * 10 + msecTenths : 0;\n }\n\n return includeTime(dateStr, h, m, s, msec10);\n};\n\n// For converting old-style milliseconds to date strings,\n// we use the local timezone rather than UTC like we use\n// everywhere else, both for backward compatibility and\n// because that's how people mostly use javasript date objects.\n// Clip one extra day off our date range though so we can't get\n// thrown beyond the range by the timezone shift.\nexports.ms2DateTimeLocal = function(ms) {\n if(!(ms >= MIN_MS + ONEDAY && ms <= MAX_MS - ONEDAY)) return BADNUM;\n\n var msecTenths = Math.floor(mod(ms + 0.05, 1) * 10);\n var d = new Date(Math.round(ms - msecTenths / 10));\n var dateStr = timeFormat('%Y-%m-%d')(d);\n var h = d.getHours();\n var m = d.getMinutes();\n var s = d.getSeconds();\n var msec10 = d.getUTCMilliseconds() * 10 + msecTenths;\n\n return includeTime(dateStr, h, m, s, msec10);\n};\n\nfunction includeTime(dateStr, h, m, s, msec10) {\n // include each part that has nonzero data in or after it\n if(h || m || s || msec10) {\n dateStr += ' ' + lpad(h, 2) + ':' + lpad(m, 2);\n if(s || msec10) {\n dateStr += ':' + lpad(s, 2);\n if(msec10) {\n var digits = 4;\n while(msec10 % 10 === 0) {\n digits -= 1;\n msec10 /= 10;\n }\n dateStr += '.' + lpad(msec10, digits);\n }\n }\n }\n return dateStr;\n}\n\n// normalize date format to date string, in case it starts as\n// a Date object or milliseconds\n// optional dflt is the return value if cleaning fails\nexports.cleanDate = function(v, dflt, calendar) {\n // let us use cleanDate to provide a missing default without an error\n if(v === BADNUM) return dflt;\n if(exports.isJSDate(v) || (typeof v === 'number' && isFinite(v))) {\n // do not allow milliseconds (old) or jsdate objects (inherently\n // described as gregorian dates) with world calendars\n if(isWorldCalendar(calendar)) {\n Loggers.error('JS Dates and milliseconds are incompatible with world calendars', v);\n return dflt;\n }\n\n // NOTE: if someone puts in a year as a number rather than a string,\n // this will mistakenly convert it thinking it's milliseconds from 1970\n // that is: '2012' -> Jan. 1, 2012, but 2012 -> 2012 epoch milliseconds\n v = exports.ms2DateTimeLocal(+v);\n if(!v && dflt !== undefined) return dflt;\n } else if(!exports.isDateTime(v, calendar)) {\n Loggers.error('unrecognized date', v);\n return dflt;\n }\n return v;\n};\n\n/*\n * Date formatting for ticks and hovertext\n */\n\n/*\n * modDateFormat: Support world calendars, and add two items to\n * d3's vocabulary:\n * %{n}f where n is the max number of digits of fractional seconds\n * %h formats: half of the year as a decimal number [1,2]\n */\nvar fracMatch = /%\\d?f/g;\nvar halfYearMatch = /%h/g;\nvar quarterToHalfYear = {\n '1': '1',\n '2': '1',\n '3': '2',\n '4': '2',\n};\nfunction modDateFormat(fmt, x, formatter, calendar) {\n fmt = fmt.replace(fracMatch, function(match) {\n var digits = Math.min(+(match.charAt(1)) || 6, 6);\n var fracSecs = ((x / 1000 % 1) + 2)\n .toFixed(digits)\n .substr(2).replace(/0+$/, '') || '0';\n return fracSecs;\n });\n\n var d = new Date(Math.floor(x + 0.05));\n\n fmt = fmt.replace(halfYearMatch, function() {\n return quarterToHalfYear[formatter('%q')(d)];\n });\n\n if(isWorldCalendar(calendar)) {\n try {\n fmt = Registry.getComponentMethod('calendars', 'worldCalFmt')(fmt, x, calendar);\n } catch(e) {\n return 'Invalid';\n }\n }\n return formatter(fmt)(d);\n}\n\n/*\n * formatTime: create a time string from:\n * x: milliseconds\n * tr: tickround ('M', 'S', or # digits)\n * only supports UTC times (where every day is 24 hours and 0 is at midnight)\n */\nvar MAXSECONDS = [59, 59.9, 59.99, 59.999, 59.9999];\nfunction formatTime(x, tr) {\n var timePart = mod(x + 0.05, ONEDAY);\n\n var timeStr = lpad(Math.floor(timePart / ONEHOUR), 2) + ':' +\n lpad(mod(Math.floor(timePart / ONEMIN), 60), 2);\n\n if(tr !== 'M') {\n if(!isNumeric(tr)) tr = 0; // should only be 'S'\n\n /*\n * this is a weird one - and shouldn't come up unless people\n * monkey with tick0 in weird ways, but we need to do something!\n * IN PARTICULAR we had better not display garbage (see below)\n * for numbers we always round to the nearest increment of the\n * precision we're showing, and this seems like the right way to\n * handle seconds and milliseconds, as they have a decimal point\n * and people will interpret that to mean rounding like numbers.\n * but for larger increments we floor the value: it's always\n * 2013 until the ball drops on the new year. We could argue about\n * which field it is where we start rounding (should 12:08:59\n * round to 12:09 if we're stopping at minutes?) but for now I'll\n * say we round seconds but floor everything else. BUT that means\n * we need to never round up to 60 seconds, ie 23:59:60\n */\n var sec = Math.min(mod(x / ONESEC, 60), MAXSECONDS[tr]);\n\n var secStr = (100 + sec).toFixed(tr).substr(1);\n if(tr > 0) {\n secStr = secStr.replace(/0+$/, '').replace(/[\\.]$/, '');\n }\n\n timeStr += ':' + secStr;\n }\n return timeStr;\n}\n\n/*\n * formatDate: turn a date into tick or hover label text.\n *\n * x: milliseconds, the value to convert\n * fmt: optional, an explicit format string (d3 format, even for world calendars)\n * tr: tickround ('y', 'm', 'd', 'M', 'S', or # digits)\n * used if no explicit fmt is provided\n * formatter: locale-aware d3 date formatter for standard gregorian calendars\n * should be the result of exports.getD3DateFormat(gd)\n * calendar: optional string, the world calendar system to use\n *\n * returns the date/time as a string, potentially with the leading portion\n * on a separate line (after '\\n')\n * Note that this means if you provide an explicit format which includes '\\n'\n * the axis may choose to strip things after it when they don't change from\n * one tick to the next (as it does with automatic formatting)\n */\nexports.formatDate = function(x, fmt, tr, formatter, calendar, extraFormat) {\n calendar = isWorldCalendar(calendar) && calendar;\n\n if(!fmt) {\n if(tr === 'y') fmt = extraFormat.year;\n else if(tr === 'm') fmt = extraFormat.month;\n else if(tr === 'd') {\n fmt = extraFormat.dayMonth + '\\n' + extraFormat.year;\n } else {\n return formatTime(x, tr) + '\\n' + modDateFormat(extraFormat.dayMonthYear, x, formatter, calendar);\n }\n }\n\n return modDateFormat(fmt, x, formatter, calendar);\n};\n\n/*\n * incrementMonth: make a new milliseconds value from the given one,\n * having changed the month\n *\n * special case for world calendars: multiples of 12 are treated as years,\n * even for calendar systems that don't have (always or ever) 12 months/year\n * TODO: perhaps we need a different code for year increments to support this?\n *\n * ms (number): the initial millisecond value\n * dMonth (int): the (signed) number of months to shift\n * calendar (string): the calendar system to use\n *\n * changing month does not (and CANNOT) always preserve day, since\n * months have different lengths. The worst example of this is:\n * d = new Date(1970,0,31); d.setMonth(1) -> Feb 31 turns into Mar 3\n *\n * But we want to be able to iterate over the last day of each month,\n * regardless of what its number is.\n * So shift 3 days forward, THEN set the new month, then unshift:\n * 1/31 -> 2/28 (or 29) -> 3/31 -> 4/30 -> ...\n *\n * Note that odd behavior still exists if you start from the 26th-28th:\n * 1/28 -> 2/28 -> 3/31\n * but at least you can't shift any dates into the wrong month,\n * and ticks on these days incrementing by month would be very unusual\n */\nvar THREEDAYS = 3 * ONEDAY;\nexports.incrementMonth = function(ms, dMonth, calendar) {\n calendar = isWorldCalendar(calendar) && calendar;\n\n // pull time out and operate on pure dates, then add time back at the end\n // this gives maximum precision - not that we *normally* care if we're\n // incrementing by month, but better to be safe!\n var timeMs = mod(ms, ONEDAY);\n ms = Math.round(ms - timeMs);\n\n if(calendar) {\n try {\n var dateJD = Math.round(ms / ONEDAY) + EPOCHJD;\n var calInstance = Registry.getComponentMethod('calendars', 'getCal')(calendar);\n var cDate = calInstance.fromJD(dateJD);\n\n if(dMonth % 12) calInstance.add(cDate, dMonth, 'm');\n else calInstance.add(cDate, dMonth / 12, 'y');\n\n return (cDate.toJD() - EPOCHJD) * ONEDAY + timeMs;\n } catch(e) {\n Loggers.error('invalid ms ' + ms + ' in calendar ' + calendar);\n // then keep going in gregorian even though the result will be 'Invalid'\n }\n }\n\n var y = new Date(ms + THREEDAYS);\n return y.setUTCMonth(y.getUTCMonth() + dMonth) + timeMs - THREEDAYS;\n};\n\n/*\n * findExactDates: what fraction of data is exact days, months, or years?\n *\n * data: array of millisecond values\n * calendar (string) the calendar to test against\n */\nexports.findExactDates = function(data, calendar) {\n var exactYears = 0;\n var exactMonths = 0;\n var exactDays = 0;\n var blankCount = 0;\n var d;\n var di;\n\n var calInstance = (\n isWorldCalendar(calendar) &&\n Registry.getComponentMethod('calendars', 'getCal')(calendar)\n );\n\n for(var i = 0; i < data.length; i++) {\n di = data[i];\n\n // not date data at all\n if(!isNumeric(di)) {\n blankCount ++;\n continue;\n }\n\n // not an exact date\n if(di % ONEDAY) continue;\n\n if(calInstance) {\n try {\n d = calInstance.fromJD(di / ONEDAY + EPOCHJD);\n if(d.day() === 1) {\n if(d.month() === 1) exactYears++;\n else exactMonths++;\n } else exactDays++;\n } catch(e) {\n // invalid date in this calendar - ignore it here.\n }\n } else {\n d = new Date(di);\n if(d.getUTCDate() === 1) {\n if(d.getUTCMonth() === 0) exactYears++;\n else exactMonths++;\n } else exactDays++;\n }\n }\n exactMonths += exactYears;\n exactDays += exactMonths;\n\n var dataCount = data.length - blankCount;\n\n return {\n exactYears: exactYears / dataCount,\n exactMonths: exactMonths / dataCount,\n exactDays: exactDays / dataCount\n };\n};\n\n},{\"../constants/numerical\":491,\"../registry\":647,\"./loggers\":519,\"./mod\":522,\"d3-time-format\":120,\"fast-isnumeric\":190}],503:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar loggers = _dereq_('./loggers');\nvar matrix = _dereq_('./matrix');\nvar mat4X4 = _dereq_('gl-mat4');\n\n/**\n * Allow referencing a graph DOM element either directly\n * or by its id string\n *\n * @param {HTMLDivElement|string} gd: a graph element or its id\n *\n * @returns {HTMLDivElement} the DOM element of the graph\n */\nfunction getGraphDiv(gd) {\n var gdElement;\n\n if(typeof gd === 'string') {\n gdElement = document.getElementById(gd);\n\n if(gdElement === null) {\n throw new Error('No DOM element with id \\'' + gd + '\\' exists on the page.');\n }\n\n return gdElement;\n } else if(gd === null || gd === undefined) {\n throw new Error('DOM element provided is null or undefined');\n }\n\n // otherwise assume that gd is a DOM element\n return gd;\n}\n\nfunction isPlotDiv(el) {\n var el3 = d3.select(el);\n return el3.node() instanceof HTMLElement &&\n el3.size() &&\n el3.classed('js-plotly-plot');\n}\n\nfunction removeElement(el) {\n var elParent = el && el.parentNode;\n if(elParent) elParent.removeChild(el);\n}\n\n/**\n * for dynamically adding style rules\n * makes one stylesheet that contains all rules added\n * by all calls to this function\n */\nfunction addStyleRule(selector, styleString) {\n addRelatedStyleRule('global', selector, styleString);\n}\n\n/**\n * for dynamically adding style rules\n * to a stylesheet uniquely identified by a uid\n */\nfunction addRelatedStyleRule(uid, selector, styleString) {\n var id = 'plotly.js-style-' + uid;\n var style = document.getElementById(id);\n if(!style) {\n style = document.createElement('style');\n style.setAttribute('id', id);\n // WebKit hack :(\n style.appendChild(document.createTextNode(''));\n document.head.appendChild(style);\n }\n var styleSheet = style.sheet;\n\n if(styleSheet.insertRule) {\n styleSheet.insertRule(selector + '{' + styleString + '}', 0);\n } else if(styleSheet.addRule) {\n styleSheet.addRule(selector, styleString, 0);\n } else loggers.warn('addStyleRule failed');\n}\n\n/**\n * to remove from the page a stylesheet identified by a given uid\n */\nfunction deleteRelatedStyleRule(uid) {\n var id = 'plotly.js-style-' + uid;\n var style = document.getElementById(id);\n if(style) removeElement(style);\n}\n\nfunction getFullTransformMatrix(element) {\n var allElements = getElementAndAncestors(element);\n // the identity matrix\n var out = [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1\n ];\n allElements.forEach(function(e) {\n var t = getElementTransformMatrix(e);\n if(t) {\n var m = matrix.convertCssMatrix(t);\n out = mat4X4.multiply(out, out, m);\n }\n });\n return out;\n}\n\n/**\n * extracts and parses the 2d css style transform matrix from some element\n */\nfunction getElementTransformMatrix(element) {\n var style = window.getComputedStyle(element, null);\n var transform = (\n style.getPropertyValue('-webkit-transform') ||\n style.getPropertyValue('-moz-transform') ||\n style.getPropertyValue('-ms-transform') ||\n style.getPropertyValue('-o-transform') ||\n style.getPropertyValue('transform')\n );\n\n if(transform === 'none') return null;\n // the transform is a string in the form of matrix(a, b, ...) or matrix3d(...)\n return transform\n .replace('matrix', '')\n .replace('3d', '')\n .slice(1, -1)\n .split(',')\n .map(function(n) { return +n; });\n}\n/**\n * retrieve all DOM elements that are ancestors of the specified one (including itself)\n */\nfunction getElementAndAncestors(element) {\n var allElements = [];\n while(isTransformableElement(element)) {\n allElements.push(element);\n element = element.parentNode;\n }\n return allElements;\n}\n\nfunction isTransformableElement(element) {\n return element && (element instanceof Element || element instanceof HTMLElement);\n}\n\nfunction equalDomRects(a, b) {\n return (\n a && b &&\n a.x === b.x &&\n a.y === b.y &&\n a.top === b.top &&\n a.left === b.left &&\n a.right === b.right &&\n a.bottom === b.bottom\n );\n}\n\nmodule.exports = {\n getGraphDiv: getGraphDiv,\n isPlotDiv: isPlotDiv,\n removeElement: removeElement,\n addStyleRule: addStyleRule,\n addRelatedStyleRule: addRelatedStyleRule,\n deleteRelatedStyleRule: deleteRelatedStyleRule,\n getFullTransformMatrix: getFullTransformMatrix,\n getElementTransformMatrix: getElementTransformMatrix,\n getElementAndAncestors: getElementAndAncestors,\n equalDomRects: equalDomRects\n};\n\n},{\"./loggers\":519,\"./matrix\":521,\"@plotly/d3\":58,\"gl-mat4\":210}],504:[function(_dereq_,module,exports){\n'use strict';\n\n/* global jQuery:false */\n\nvar EventEmitter = _dereq_('events').EventEmitter;\n\nvar Events = {\n\n init: function(plotObj) {\n /*\n * If we have already instantiated an emitter for this plot\n * return early.\n */\n if(plotObj._ev instanceof EventEmitter) return plotObj;\n\n var ev = new EventEmitter();\n var internalEv = new EventEmitter();\n\n /*\n * Assign to plot._ev while we still live in a land\n * where plot is a DOM element with stuff attached to it.\n * In the future we can make plot the event emitter itself.\n */\n plotObj._ev = ev;\n\n /*\n * Create a second event handler that will manage events *internally*.\n * This allows parts of plotly to respond to thing like relayout without\n * having to use the user-facing event handler. They cannot peacefully\n * coexist on the same handler because a user invoking\n * plotObj.removeAllListeners() would detach internal events, breaking\n * plotly.\n */\n plotObj._internalEv = internalEv;\n\n /*\n * Assign bound methods from the ev to the plot object. These methods\n * will reference the 'this' of plot._ev even though they are methods\n * of plot. This will keep the event machinery away from the plot object\n * which currently is often a DOM element but presents an API that will\n * continue to function when plot becomes an emitter. Not all EventEmitter\n * methods have been bound to `plot` as some do not currently add value to\n * the Plotly event API.\n */\n plotObj.on = ev.on.bind(ev);\n plotObj.once = ev.once.bind(ev);\n plotObj.removeListener = ev.removeListener.bind(ev);\n plotObj.removeAllListeners = ev.removeAllListeners.bind(ev);\n\n /*\n * Create functions for managing internal events. These are *only* triggered\n * by the mirroring of external events via the emit function.\n */\n plotObj._internalOn = internalEv.on.bind(internalEv);\n plotObj._internalOnce = internalEv.once.bind(internalEv);\n plotObj._removeInternalListener = internalEv.removeListener.bind(internalEv);\n plotObj._removeAllInternalListeners = internalEv.removeAllListeners.bind(internalEv);\n\n /*\n * We must wrap emit to continue to support JQuery events. The idea\n * is to check to see if the user is using JQuery events, if they are\n * we emit JQuery events to trigger user handlers as well as the EventEmitter\n * events.\n */\n plotObj.emit = function(event, data) {\n if(typeof jQuery !== 'undefined') {\n jQuery(plotObj).trigger(event, data);\n }\n\n ev.emit(event, data);\n internalEv.emit(event, data);\n };\n\n return plotObj;\n },\n\n /*\n * This function behaves like jQuery's triggerHandler. It calls\n * all handlers for a particular event and returns the return value\n * of the LAST handler. This function also triggers jQuery's\n * triggerHandler for backwards compatibility.\n */\n triggerHandler: function(plotObj, event, data) {\n var jQueryHandlerValue;\n var nodeEventHandlerValue;\n\n /*\n * If jQuery exists run all its handlers for this event and\n * collect the return value of the LAST handler function\n */\n if(typeof jQuery !== 'undefined') {\n jQueryHandlerValue = jQuery(plotObj).triggerHandler(event, data);\n }\n\n /*\n * Now run all the node style event handlers\n */\n var ev = plotObj._ev;\n if(!ev) return jQueryHandlerValue;\n\n var handlers = ev._events[event];\n if(!handlers) return jQueryHandlerValue;\n\n // making sure 'this' is the EventEmitter instance\n function apply(handler) {\n // The 'once' case, we can't just call handler() as we need\n // the return value here. So,\n // - remove handler\n // - call listener and grab return value!\n // - stash 'fired' key to not call handler twice\n if(handler.listener) {\n ev.removeListener(event, handler.listener);\n if(!handler.fired) {\n handler.fired = true;\n return handler.listener.apply(ev, [data]);\n }\n } else {\n return handler.apply(ev, [data]);\n }\n }\n\n // handlers can be function or an array of functions\n handlers = Array.isArray(handlers) ? handlers : [handlers];\n\n var i;\n for(i = 0; i < handlers.length - 1; i++) {\n apply(handlers[i]);\n }\n // now call the final handler and collect its value\n nodeEventHandlerValue = apply(handlers[i]);\n\n /*\n * Return either the jQuery handler value if it exists or the\n * nodeEventHandler value. jQuery event value supersedes nodejs\n * events for backwards compatibility reasons.\n */\n return jQueryHandlerValue !== undefined ?\n jQueryHandlerValue :\n nodeEventHandlerValue;\n },\n\n purge: function(plotObj) {\n delete plotObj._ev;\n delete plotObj.on;\n delete plotObj.once;\n delete plotObj.removeListener;\n delete plotObj.removeAllListeners;\n delete plotObj.emit;\n\n delete plotObj._ev;\n delete plotObj._internalEv;\n delete plotObj._internalOn;\n delete plotObj._internalOnce;\n delete plotObj._removeInternalListener;\n delete plotObj._removeAllInternalListeners;\n\n return plotObj;\n }\n\n};\n\nmodule.exports = Events;\n\n},{\"events\":84}],505:[function(_dereq_,module,exports){\n'use strict';\n\nvar isPlainObject = _dereq_('./is_plain_object.js');\nvar isArray = Array.isArray;\n\nfunction primitivesLoopSplice(source, target) {\n var i, value;\n for(i = 0; i < source.length; i++) {\n value = source[i];\n if(value !== null && typeof(value) === 'object') {\n return false;\n }\n if(value !== void(0)) {\n target[i] = value;\n }\n }\n return true;\n}\n\nexports.extendFlat = function() {\n return _extend(arguments, false, false, false);\n};\n\nexports.extendDeep = function() {\n return _extend(arguments, true, false, false);\n};\n\nexports.extendDeepAll = function() {\n return _extend(arguments, true, true, false);\n};\n\nexports.extendDeepNoArrays = function() {\n return _extend(arguments, true, false, true);\n};\n\n/*\n * Inspired by https://github.com/justmoon/node-extend/blob/master/index.js\n * All credit to the jQuery authors for perfecting this amazing utility.\n *\n * API difference with jQuery version:\n * - No optional boolean (true -> deep extend) first argument,\n * use `extendFlat` for first-level only extend and\n * use `extendDeep` for a deep extend.\n *\n * Other differences with jQuery version:\n * - Uses a modern (and faster) isPlainObject routine.\n * - Expected to work with object {} and array [] arguments only.\n * - Does not check for circular structure.\n * FYI: jQuery only does a check across one level.\n * Warning: this might result in infinite loops.\n *\n */\nfunction _extend(inputs, isDeep, keepAllKeys, noArrayCopies) {\n var target = inputs[0];\n var length = inputs.length;\n\n var input, key, src, copy, copyIsArray, clone, allPrimitives;\n\n // TODO does this do the right thing for typed arrays?\n\n if(length === 2 && isArray(target) && isArray(inputs[1]) && target.length === 0) {\n allPrimitives = primitivesLoopSplice(inputs[1], target);\n\n if(allPrimitives) {\n return target;\n } else {\n target.splice(0, target.length); // reset target and continue to next block\n }\n }\n\n for(var i = 1; i < length; i++) {\n input = inputs[i];\n\n for(key in input) {\n src = target[key];\n copy = input[key];\n\n if(noArrayCopies && isArray(copy)) {\n // Stop early and just transfer the array if array copies are disallowed:\n\n target[key] = copy;\n } else if(isDeep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n // recurse if we're merging plain objects or arrays\n\n if(copyIsArray) {\n copyIsArray = false;\n clone = src && isArray(src) ? src : [];\n } else {\n clone = src && isPlainObject(src) ? src : {};\n }\n\n // never move original objects, clone them\n target[key] = _extend([clone, copy], isDeep, keepAllKeys, noArrayCopies);\n } else if(typeof copy !== 'undefined' || keepAllKeys) {\n // don't bring in undefined values, except for extendDeepAll\n\n target[key] = copy;\n }\n }\n }\n\n return target;\n}\n\n},{\"./is_plain_object.js\":516}],506:[function(_dereq_,module,exports){\n'use strict';\n\n\n/**\n * Return news array containing only the unique items\n * found in input array.\n *\n * IMPORTANT: Note that items are considered unique\n * if `String({})` is unique. For example;\n *\n * Lib.filterUnique([ { a: 1 }, { b: 2 } ])\n *\n * returns [{ a: 1 }]\n *\n * and\n *\n * Lib.filterUnique([ '1', 1 ])\n *\n * returns ['1']\n *\n *\n * @param {array} array base array\n * @return {array} new filtered array\n */\nmodule.exports = function filterUnique(array) {\n var seen = {};\n var out = [];\n var j = 0;\n\n for(var i = 0; i < array.length; i++) {\n var item = array[i];\n\n if(seen[item] !== 1) {\n seen[item] = 1;\n out[j++] = item;\n }\n }\n\n return out;\n};\n\n},{}],507:[function(_dereq_,module,exports){\n'use strict';\n\n/** Filter out object items with visible !== true\n * insider array container.\n *\n * @param {array of objects} container\n * @return {array of objects} of length <= container\n *\n */\nmodule.exports = function filterVisible(container) {\n var filterFn = isCalcData(container) ? calcDataFilter : baseFilter;\n var out = [];\n\n for(var i = 0; i < container.length; i++) {\n var item = container[i];\n if(filterFn(item)) out.push(item);\n }\n\n return out;\n};\n\nfunction baseFilter(item) {\n return item.visible === true;\n}\n\nfunction calcDataFilter(item) {\n var trace = item[0].trace;\n return trace.visible === true && trace._length !== 0;\n}\n\nfunction isCalcData(cont) {\n return (\n Array.isArray(cont) &&\n Array.isArray(cont[0]) &&\n cont[0][0] &&\n cont[0][0].trace\n );\n}\n\n},{}],508:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar countryRegex = _dereq_('country-regex');\nvar turfArea = _dereq_('@turf/area');\nvar turfCentroid = _dereq_('@turf/centroid');\nvar turfBbox = _dereq_('@turf/bbox');\n\nvar identity = _dereq_('./identity');\nvar loggers = _dereq_('./loggers');\nvar isPlainObject = _dereq_('./is_plain_object');\nvar nestedProperty = _dereq_('./nested_property');\nvar polygon = _dereq_('./polygon');\n\n// make list of all country iso3 ids from at runtime\nvar countryIds = Object.keys(countryRegex);\n\nvar locationmodeToIdFinder = {\n 'ISO-3': identity,\n 'USA-states': identity,\n 'country names': countryNameToISO3\n};\n\nfunction countryNameToISO3(countryName) {\n for(var i = 0; i < countryIds.length; i++) {\n var iso3 = countryIds[i];\n var regex = new RegExp(countryRegex[iso3]);\n\n if(regex.test(countryName.trim().toLowerCase())) return iso3;\n }\n\n loggers.log('Unrecognized country name: ' + countryName + '.');\n\n return false;\n}\n\nfunction locationToFeature(locationmode, location, features) {\n if(!location || typeof location !== 'string') return false;\n\n var locationId = locationmodeToIdFinder[locationmode](location);\n var filteredFeatures;\n var f, i;\n\n if(locationId) {\n if(locationmode === 'USA-states') {\n // Filter out features out in USA\n //\n // This is important as the Natural Earth files\n // include state/provinces from USA, Canada, Australia and Brazil\n // which have some overlay in their two-letter ids. For example,\n // 'WA' is used for both Washington state and Western Australia.\n filteredFeatures = [];\n for(i = 0; i < features.length; i++) {\n f = features[i];\n if(f.properties && f.properties.gu && f.properties.gu === 'USA') {\n filteredFeatures.push(f);\n }\n }\n } else {\n filteredFeatures = features;\n }\n\n for(i = 0; i < filteredFeatures.length; i++) {\n f = filteredFeatures[i];\n if(f.id === locationId) return f;\n }\n\n loggers.log([\n 'Location with id', locationId,\n 'does not have a matching topojson feature at this resolution.'\n ].join(' '));\n }\n\n return false;\n}\n\nfunction feature2polygons(feature) {\n var geometry = feature.geometry;\n var coords = geometry.coordinates;\n var loc = feature.id;\n\n var polygons = [];\n var appendPolygon, j, k, m;\n\n function doesCrossAntiMerdian(pts) {\n for(var l = 0; l < pts.length - 1; l++) {\n if(pts[l][0] > 0 && pts[l + 1][0] < 0) return l;\n }\n return null;\n }\n\n if(loc === 'RUS' || loc === 'FJI') {\n // Russia and Fiji have landmasses that cross the antimeridian,\n // we need to add +360 to their longitude coordinates, so that\n // polygon 'contains' doesn't get confused when crossing the antimeridian.\n //\n // Note that other countries have polygons on either side of the antimeridian\n // (e.g. some Aleutian island for the USA), but those don't confuse\n // the 'contains' method; these are skipped here.\n appendPolygon = function(_pts) {\n var pts;\n\n if(doesCrossAntiMerdian(_pts) === null) {\n pts = _pts;\n } else {\n pts = new Array(_pts.length);\n for(m = 0; m < _pts.length; m++) {\n // do not mutate calcdata[i][j].geojson !!\n pts[m] = [\n _pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0],\n _pts[m][1]\n ];\n }\n }\n\n polygons.push(polygon.tester(pts));\n };\n } else if(loc === 'ATA') {\n // Antarctica has a landmass that wraps around every longitudes which\n // confuses the 'contains' methods.\n appendPolygon = function(pts) {\n var crossAntiMeridianIndex = doesCrossAntiMerdian(pts);\n\n // polygon that do not cross anti-meridian need no special handling\n if(crossAntiMeridianIndex === null) {\n return polygons.push(polygon.tester(pts));\n }\n\n // stitch polygon by adding pt over South Pole,\n // so that it covers the projected region covers all latitudes\n //\n // Note that the algorithm below only works for polygons that\n // start and end on longitude -180 (like the ones built by\n // https://github.com/etpinard/sane-topojson).\n var stitch = new Array(pts.length + 1);\n var si = 0;\n\n for(m = 0; m < pts.length; m++) {\n if(m > crossAntiMeridianIndex) {\n stitch[si++] = [pts[m][0] + 360, pts[m][1]];\n } else if(m === crossAntiMeridianIndex) {\n stitch[si++] = pts[m];\n stitch[si++] = [pts[m][0], -90];\n } else {\n stitch[si++] = pts[m];\n }\n }\n\n // polygon.tester by default appends pt[0] to the points list,\n // we must remove it here, to avoid a jump in longitude from 180 to -180,\n // that would confuse the 'contains' method\n var tester = polygon.tester(stitch);\n tester.pts.pop();\n polygons.push(tester);\n };\n } else {\n // otherwise using same array ref is fine\n appendPolygon = function(pts) {\n polygons.push(polygon.tester(pts));\n };\n }\n\n switch(geometry.type) {\n case 'MultiPolygon':\n for(j = 0; j < coords.length; j++) {\n for(k = 0; k < coords[j].length; k++) {\n appendPolygon(coords[j][k]);\n }\n }\n break;\n case 'Polygon':\n for(j = 0; j < coords.length; j++) {\n appendPolygon(coords[j]);\n }\n break;\n }\n\n return polygons;\n}\n\nfunction getTraceGeojson(trace) {\n var g = trace.geojson;\n var PlotlyGeoAssets = window.PlotlyGeoAssets || {};\n var geojsonIn = typeof g === 'string' ? PlotlyGeoAssets[g] : g;\n\n // This should not happen, but just in case something goes\n // really wrong when fetching the GeoJSON\n if(!isPlainObject(geojsonIn)) {\n loggers.error('Oops ... something went wrong when fetching ' + g);\n return false;\n }\n\n return geojsonIn;\n}\n\nfunction extractTraceFeature(calcTrace) {\n var trace = calcTrace[0].trace;\n\n var geojsonIn = getTraceGeojson(trace);\n if(!geojsonIn) return false;\n\n var lookup = {};\n var featuresOut = [];\n var i;\n\n for(i = 0; i < trace._length; i++) {\n var cdi = calcTrace[i];\n if(cdi.loc || cdi.loc === 0) {\n lookup[cdi.loc] = cdi;\n }\n }\n\n function appendFeature(fIn) {\n var id = nestedProperty(fIn, trace.featureidkey || 'id').get();\n var cdi = lookup[id];\n\n if(cdi) {\n var geometry = fIn.geometry;\n\n if(geometry.type === 'Polygon' || geometry.type === 'MultiPolygon') {\n var fOut = {\n type: 'Feature',\n id: id,\n geometry: geometry,\n properties: {}\n };\n\n // Compute centroid, add it to the properties\n fOut.properties.ct = findCentroid(fOut);\n\n // Mutate in in/out features into calcdata\n cdi.fIn = fIn;\n cdi.fOut = fOut;\n\n featuresOut.push(fOut);\n } else {\n loggers.log([\n 'Location', cdi.loc, 'does not have a valid GeoJSON geometry.',\n 'Traces with locationmode *geojson-id* only support',\n '*Polygon* and *MultiPolygon* geometries.'\n ].join(' '));\n }\n }\n\n // remove key from lookup, so that we can track (if any)\n // the locations that did not have a corresponding GeoJSON feature\n delete lookup[id];\n }\n\n switch(geojsonIn.type) {\n case 'FeatureCollection':\n var featuresIn = geojsonIn.features;\n for(i = 0; i < featuresIn.length; i++) {\n appendFeature(featuresIn[i]);\n }\n break;\n case 'Feature':\n appendFeature(geojsonIn);\n break;\n default:\n loggers.warn([\n 'Invalid GeoJSON type', (geojsonIn.type || 'none') + '.',\n 'Traces with locationmode *geojson-id* only support',\n '*FeatureCollection* and *Feature* types.'\n ].join(' '));\n return false;\n }\n\n for(var loc in lookup) {\n loggers.log([\n 'Location *' + loc + '*',\n 'does not have a matching feature with id-key',\n '*' + trace.featureidkey + '*.'\n ].join(' '));\n }\n\n return featuresOut;\n}\n\n// TODO this find the centroid of the polygon of maxArea\n// (just like we currently do for geo choropleth polygons),\n// maybe instead it would make more sense to compute the centroid\n// of each polygon and consider those on hover/select\nfunction findCentroid(feature) {\n var geometry = feature.geometry;\n var poly;\n\n if(geometry.type === 'MultiPolygon') {\n var coords = geometry.coordinates;\n var maxArea = 0;\n\n for(var i = 0; i < coords.length; i++) {\n var polyi = {type: 'Polygon', coordinates: coords[i]};\n var area = turfArea.default(polyi);\n if(area > maxArea) {\n maxArea = area;\n poly = polyi;\n }\n }\n } else {\n poly = geometry;\n }\n\n return turfCentroid.default(poly).geometry.coordinates;\n}\n\nfunction fetchTraceGeoData(calcData) {\n var PlotlyGeoAssets = window.PlotlyGeoAssets || {};\n var promises = [];\n\n function fetch(url) {\n return new Promise(function(resolve, reject) {\n d3.json(url, function(err, d) {\n if(err) {\n delete PlotlyGeoAssets[url];\n var msg = err.status === 404 ?\n ('GeoJSON at URL \"' + url + '\" does not exist.') :\n ('Unexpected error while fetching from ' + url);\n return reject(new Error(msg));\n }\n\n PlotlyGeoAssets[url] = d;\n return resolve(d);\n });\n });\n }\n\n function wait(url) {\n return new Promise(function(resolve, reject) {\n var cnt = 0;\n var interval = setInterval(function() {\n if(PlotlyGeoAssets[url] && PlotlyGeoAssets[url] !== 'pending') {\n clearInterval(interval);\n return resolve(PlotlyGeoAssets[url]);\n }\n if(cnt > 100) {\n clearInterval(interval);\n return reject('Unexpected error while fetching from ' + url);\n }\n cnt++;\n }, 50);\n });\n }\n\n for(var i = 0; i < calcData.length; i++) {\n var trace = calcData[i][0].trace;\n var url = trace.geojson;\n\n if(typeof url === 'string') {\n if(!PlotlyGeoAssets[url]) {\n PlotlyGeoAssets[url] = 'pending';\n promises.push(fetch(url));\n } else if(PlotlyGeoAssets[url] === 'pending') {\n promises.push(wait(url));\n }\n }\n }\n\n return promises;\n}\n\n// TODO `turf/bbox` gives wrong result when the input feature/geometry\n// crosses the anti-meridian. We should try to implement our own bbox logic.\nfunction computeBbox(d) {\n return turfBbox.default(d);\n}\n\nmodule.exports = {\n locationToFeature: locationToFeature,\n feature2polygons: feature2polygons,\n getTraceGeojson: getTraceGeojson,\n extractTraceFeature: extractTraceFeature,\n fetchTraceGeoData: fetchTraceGeoData,\n computeBbox: computeBbox\n};\n\n},{\"./identity\":513,\"./is_plain_object\":516,\"./loggers\":519,\"./nested_property\":523,\"./polygon\":527,\"@plotly/d3\":58,\"@turf/area\":61,\"@turf/bbox\":64,\"@turf/centroid\":67,\"country-regex\":94}],509:[function(_dereq_,module,exports){\n'use strict';\n\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\n/**\n * Convert calcTrace to GeoJSON 'MultiLineString' coordinate arrays\n *\n * @param {object} calcTrace\n * gd.calcdata item.\n * Note that calcTrace[i].lonlat is assumed to be defined\n *\n * @return {array}\n * return line coords array (or array of arrays)\n *\n */\nexports.calcTraceToLineCoords = function(calcTrace) {\n var trace = calcTrace[0].trace;\n var connectgaps = trace.connectgaps;\n\n var coords = [];\n var lineString = [];\n\n for(var i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n var lonlat = calcPt.lonlat;\n\n if(lonlat[0] !== BADNUM) {\n lineString.push(lonlat);\n } else if(!connectgaps && lineString.length > 0) {\n coords.push(lineString);\n lineString = [];\n }\n }\n\n if(lineString.length > 0) {\n coords.push(lineString);\n }\n\n return coords;\n};\n\n\n/**\n * Make line ('LineString' or 'MultiLineString') GeoJSON\n *\n * @param {array} coords\n * results form calcTraceToLineCoords\n * @return {object} out\n * GeoJSON object\n *\n */\nexports.makeLine = function(coords) {\n if(coords.length === 1) {\n return {\n type: 'LineString',\n coordinates: coords[0]\n };\n } else {\n return {\n type: 'MultiLineString',\n coordinates: coords\n };\n }\n};\n\n/**\n * Make polygon ('Polygon' or 'MultiPolygon') GeoJSON\n *\n * @param {array} coords\n * results form calcTraceToLineCoords\n * @return {object} out\n * GeoJSON object\n */\nexports.makePolygon = function(coords) {\n if(coords.length === 1) {\n return {\n type: 'Polygon',\n coordinates: coords\n };\n } else {\n var _coords = new Array(coords.length);\n\n for(var i = 0; i < coords.length; i++) {\n _coords[i] = [coords[i]];\n }\n\n return {\n type: 'MultiPolygon',\n coordinates: _coords\n };\n }\n};\n\n/**\n * Make blank GeoJSON\n *\n * @return {object}\n * Blank GeoJSON object\n *\n */\nexports.makeBlank = function() {\n return {\n type: 'Point',\n coordinates: []\n };\n};\n\n},{\"../constants/numerical\":491}],510:[function(_dereq_,module,exports){\n'use strict';\n\nvar mod = _dereq_('./mod').mod;\n\n/*\n * look for intersection of two line segments\n * (1->2 and 3->4) - returns array [x,y] if they do, null if not\n */\nexports.segmentsIntersect = segmentsIntersect;\nfunction segmentsIntersect(x1, y1, x2, y2, x3, y3, x4, y4) {\n var a = x2 - x1;\n var b = x3 - x1;\n var c = x4 - x3;\n var d = y2 - y1;\n var e = y3 - y1;\n var f = y4 - y3;\n var det = a * f - c * d;\n // parallel lines? intersection is undefined\n // ignore the case where they are colinear\n if(det === 0) return null;\n var t = (b * f - c * e) / det;\n var u = (b * d - a * e) / det;\n // segments do not intersect?\n if(u < 0 || u > 1 || t < 0 || t > 1) return null;\n\n return {x: x1 + a * t, y: y1 + d * t};\n}\n\n/*\n * find the minimum distance between two line segments (1->2 and 3->4)\n */\nexports.segmentDistance = function segmentDistance(x1, y1, x2, y2, x3, y3, x4, y4) {\n if(segmentsIntersect(x1, y1, x2, y2, x3, y3, x4, y4)) return 0;\n\n // the two segments and their lengths squared\n var x12 = x2 - x1;\n var y12 = y2 - y1;\n var x34 = x4 - x3;\n var y34 = y4 - y3;\n var ll12 = x12 * x12 + y12 * y12;\n var ll34 = x34 * x34 + y34 * y34;\n\n // calculate distance squared, then take the sqrt at the very end\n var dist2 = Math.min(\n perpDistance2(x12, y12, ll12, x3 - x1, y3 - y1),\n perpDistance2(x12, y12, ll12, x4 - x1, y4 - y1),\n perpDistance2(x34, y34, ll34, x1 - x3, y1 - y3),\n perpDistance2(x34, y34, ll34, x2 - x3, y2 - y3)\n );\n\n return Math.sqrt(dist2);\n};\n\n/*\n * distance squared from segment ab to point c\n * [xab, yab] is the vector b-a\n * [xac, yac] is the vector c-a\n * llab is the length squared of (b-a), just to simplify calculation\n */\nfunction perpDistance2(xab, yab, llab, xac, yac) {\n var fcAB = (xac * xab + yac * yab);\n if(fcAB < 0) {\n // point c is closer to point a\n return xac * xac + yac * yac;\n } else if(fcAB > llab) {\n // point c is closer to point b\n var xbc = xac - xab;\n var ybc = yac - yab;\n return xbc * xbc + ybc * ybc;\n } else {\n // perpendicular distance is the shortest\n var crossProduct = xac * yab - yac * xab;\n return crossProduct * crossProduct / llab;\n }\n}\n\n// a very short-term cache for getTextLocation, just because\n// we're often looping over the same locations multiple times\n// invalidated as soon as we look at a different path\nvar locationCache, workingPath, workingTextWidth;\n\n// turn a path and position along it into x, y, and angle for the given text\nexports.getTextLocation = function getTextLocation(path, totalPathLen, positionOnPath, textWidth) {\n if(path !== workingPath || textWidth !== workingTextWidth) {\n locationCache = {};\n workingPath = path;\n workingTextWidth = textWidth;\n }\n if(locationCache[positionOnPath]) {\n return locationCache[positionOnPath];\n }\n\n // for the angle, use points on the path separated by the text width\n // even though due to curvature, the text will cover a bit more than that\n var p0 = path.getPointAtLength(mod(positionOnPath - textWidth / 2, totalPathLen));\n var p1 = path.getPointAtLength(mod(positionOnPath + textWidth / 2, totalPathLen));\n // note: atan handles 1/0 nicely\n var theta = Math.atan((p1.y - p0.y) / (p1.x - p0.x));\n // center the text at 2/3 of the center position plus 1/3 the p0/p1 midpoint\n // that's the average position of this segment, assuming it's roughly quadratic\n var pCenter = path.getPointAtLength(mod(positionOnPath, totalPathLen));\n var x = (pCenter.x * 4 + p0.x + p1.x) / 6;\n var y = (pCenter.y * 4 + p0.y + p1.y) / 6;\n\n var out = {x: x, y: y, theta: theta};\n locationCache[positionOnPath] = out;\n return out;\n};\n\nexports.clearLocationCache = function() {\n workingPath = null;\n};\n\n/*\n * Find the segment of `path` that's within the visible area\n * given by `bounds` {left, right, top, bottom}, to within a\n * precision of `buffer` px\n *\n * returns: undefined if nothing is visible, else object:\n * {\n * min: position where the path first enters bounds, or 0 if it\n * starts within bounds\n * max: position where the path last exits bounds, or the path length\n * if it finishes within bounds\n * len: max - min, ie the length of visible path\n * total: the total path length - just included so the caller doesn't\n * need to call path.getTotalLength() again\n * isClosed: true iff the start and end points of the path are both visible\n * and are at the same point\n * }\n *\n * Works by starting from either end and repeatedly finding the distance from\n * that point to the plot area, and if it's outside the plot, moving along the\n * path by that distance (because the plot must be at least that far away on\n * the path). Note that if a path enters, exits, and re-enters the plot, we\n * will not capture this behavior.\n */\nexports.getVisibleSegment = function getVisibleSegment(path, bounds, buffer) {\n var left = bounds.left;\n var right = bounds.right;\n var top = bounds.top;\n var bottom = bounds.bottom;\n\n var pMin = 0;\n var pTotal = path.getTotalLength();\n var pMax = pTotal;\n\n var pt0, ptTotal;\n\n function getDistToPlot(len) {\n var pt = path.getPointAtLength(len);\n\n // hold on to the start and end points for `closed`\n if(len === 0) pt0 = pt;\n else if(len === pTotal) ptTotal = pt;\n\n var dx = (pt.x < left) ? left - pt.x : (pt.x > right ? pt.x - right : 0);\n var dy = (pt.y < top) ? top - pt.y : (pt.y > bottom ? pt.y - bottom : 0);\n return Math.sqrt(dx * dx + dy * dy);\n }\n\n var distToPlot = getDistToPlot(pMin);\n while(distToPlot) {\n pMin += distToPlot + buffer;\n if(pMin > pMax) return;\n distToPlot = getDistToPlot(pMin);\n }\n\n distToPlot = getDistToPlot(pMax);\n while(distToPlot) {\n pMax -= distToPlot + buffer;\n if(pMin > pMax) return;\n distToPlot = getDistToPlot(pMax);\n }\n\n return {\n min: pMin,\n max: pMax,\n len: pMax - pMin,\n total: pTotal,\n isClosed: pMin === 0 && pMax === pTotal &&\n Math.abs(pt0.x - ptTotal.x) < 0.1 &&\n Math.abs(pt0.y - ptTotal.y) < 0.1\n };\n};\n\n/**\n * Find point on SVG path corresponding to a given constraint coordinate\n *\n * @param {SVGPathElement} path\n * @param {Number} val : constraint coordinate value\n * @param {String} coord : 'x' or 'y' the constraint coordinate\n * @param {Object} opts :\n * - {Number} pathLength : supply total path length before hand\n * - {Number} tolerance\n * - {Number} iterationLimit\n * @return {SVGPoint}\n */\nexports.findPointOnPath = function findPointOnPath(path, val, coord, opts) {\n opts = opts || {};\n\n var pathLength = opts.pathLength || path.getTotalLength();\n var tolerance = opts.tolerance || 1e-3;\n var iterationLimit = opts.iterationLimit || 30;\n\n // if path starts at a val greater than the path tail (like on vertical violins),\n // we must flip the sign of the computed diff.\n var mul = path.getPointAtLength(0)[coord] > path.getPointAtLength(pathLength)[coord] ? -1 : 1;\n\n var i = 0;\n var b0 = 0;\n var b1 = pathLength;\n var mid;\n var pt;\n var diff;\n\n while(i < iterationLimit) {\n mid = (b0 + b1) / 2;\n pt = path.getPointAtLength(mid);\n diff = pt[coord] - val;\n\n if(Math.abs(diff) < tolerance) {\n return pt;\n } else {\n if(mul * diff > 0) {\n b1 = mid;\n } else {\n b0 = mid;\n }\n i++;\n }\n }\n return pt;\n};\n\n},{\"./mod\":522}],511:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\nvar rgba = _dereq_('color-normalize');\n\nvar Colorscale = _dereq_('../components/colorscale');\nvar colorDflt = _dereq_('../components/color/attributes').defaultLine;\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\nvar colorDfltRgba = rgba(colorDflt);\nvar opacityDflt = 1;\n\nfunction calculateColor(colorIn, opacityIn) {\n var colorOut = colorIn;\n colorOut[3] *= opacityIn;\n return colorOut;\n}\n\nfunction validateColor(colorIn) {\n if(isNumeric(colorIn)) return colorDfltRgba;\n\n var colorOut = rgba(colorIn);\n\n return colorOut.length ? colorOut : colorDfltRgba;\n}\n\nfunction validateOpacity(opacityIn) {\n return isNumeric(opacityIn) ? opacityIn : opacityDflt;\n}\n\nfunction formatColor(containerIn, opacityIn, len) {\n var colorIn = containerIn.color;\n var isArrayColorIn = isArrayOrTypedArray(colorIn);\n var isArrayOpacityIn = isArrayOrTypedArray(opacityIn);\n var cOpts = Colorscale.extractOpts(containerIn);\n var colorOut = [];\n\n var sclFunc, getColor, getOpacity, colori, opacityi;\n\n if(cOpts.colorscale !== undefined) {\n sclFunc = Colorscale.makeColorScaleFuncFromTrace(containerIn);\n } else {\n sclFunc = validateColor;\n }\n\n if(isArrayColorIn) {\n getColor = function(c, i) {\n // FIXME: there is double work, considering that sclFunc does the opposite\n return c[i] === undefined ? colorDfltRgba : rgba(sclFunc(c[i]));\n };\n } else getColor = validateColor;\n\n if(isArrayOpacityIn) {\n getOpacity = function(o, i) {\n return o[i] === undefined ? opacityDflt : validateOpacity(o[i]);\n };\n } else getOpacity = validateOpacity;\n\n if(isArrayColorIn || isArrayOpacityIn) {\n for(var i = 0; i < len; i++) {\n colori = getColor(colorIn, i);\n opacityi = getOpacity(opacityIn, i);\n colorOut[i] = calculateColor(colori, opacityi);\n }\n } else colorOut = calculateColor(rgba(colorIn), opacityIn);\n\n return colorOut;\n}\n\nfunction parseColorScale(cont) {\n var cOpts = Colorscale.extractOpts(cont);\n\n var colorscale = cOpts.colorscale;\n if(cOpts.reversescale) colorscale = Colorscale.flipScale(cOpts.colorscale);\n\n return colorscale.map(function(elem) {\n var index = elem[0];\n var color = tinycolor(elem[1]);\n var rgb = color.toRgb();\n return {\n index: index,\n rgb: [rgb.r, rgb.g, rgb.b, rgb.a]\n };\n });\n}\n\nmodule.exports = {\n formatColor: formatColor,\n parseColorScale: parseColorScale\n};\n\n},{\"../components/color/attributes\":366,\"../components/colorscale\":379,\"./array\":497,\"color-normalize\":89,\"fast-isnumeric\":190,\"tinycolor2\":313}],512:[function(_dereq_,module,exports){\n'use strict';\n\nvar identity = _dereq_('./identity');\n\nfunction wrap(d) {return [d];}\n\nmodule.exports = {\n\n // The D3 data binding concept and the General Update Pattern promotes the idea of\n // traversing into the scenegraph by using the `.data(fun, keyFun)` call.\n // The `fun` is most often a `repeat`, ie. the elements beneath a `` element need\n // access to the same data, or a `descend`, which fans a scenegraph node into a bunch of\n // of elements, e.g. points, lines, rows, requiring an array as input.\n // The role of the `keyFun` is to identify what elements are being entered/exited/updated,\n // otherwise D3 reverts to using a plain index which would screw up `transition`s.\n keyFun: function(d) {return d.key;},\n repeat: wrap,\n descend: identity,\n\n // Plotly.js uses a convention of storing the actual contents of the `calcData` as the\n // element zero of a container array. These helpers are just used for clarity as a\n // newcomer to the codebase may not know what the `[0]` is, and whether there can be further\n // elements (not atm).\n wrap: wrap,\n unwrap: function(d) {return d[0];}\n};\n\n},{\"./identity\":513}],513:[function(_dereq_,module,exports){\n'use strict';\n\n// Simple helper functions\n// none of these need any external deps\n\nmodule.exports = function identity(d) { return d; };\n\n},{}],514:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function incrementNumeric(x, delta) {\n if(!delta) return x;\n\n // Note 1:\n // 0.3 != 0.1 + 0.2 == 0.30000000000000004\n // but 0.3 == (10 * 0.1 + 10 * 0.2) / 10\n // Attempt to use integer steps to increment\n var scale = 1 / Math.abs(delta);\n var newX = (scale > 1) ? (\n scale * x +\n scale * delta\n ) / scale : x + delta;\n\n // Note 2:\n // now we may also consider rounding to cover few more edge cases\n // e.g. 0.3 * 3 = 0.8999999999999999\n var lenX1 = String(newX).length;\n if(lenX1 > 16) {\n var lenDt = String(delta).length;\n var lenX0 = String(x).length;\n\n if(lenX1 >= lenX0 + lenDt) { // likely a rounding error!\n var s = parseFloat(newX).toPrecision(12);\n if(s.indexOf('e+') === -1) newX = +s;\n }\n }\n\n return newX;\n};\n\n},{}],515:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar utcFormat = _dereq_('d3-time-format').utcFormat;\nvar d3Format = _dereq_('d3-format').format;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar numConstants = _dereq_('../constants/numerical');\nvar MAX_SAFE = numConstants.FP_SAFE;\nvar MIN_SAFE = -MAX_SAFE;\nvar BADNUM = numConstants.BADNUM;\n\nvar lib = module.exports = {};\n\nlib.adjustFormat = function adjustFormat(formatStr) {\n if(\n !formatStr ||\n /^\\d[.]\\df/.test(formatStr) ||\n /[.]\\d%/.test(formatStr)\n ) return formatStr;\n\n if(formatStr === '0.f') return '~f';\n if(/^\\d%/.test(formatStr)) return '~%';\n if(/^\\ds/.test(formatStr)) return '~s';\n\n // try adding tilde to the start of format in order to trim\n if(!(/^[~,.0$]/.test(formatStr)) && /[&fps]/.test(formatStr)) return '~' + formatStr;\n\n return formatStr;\n};\n\nvar seenBadFormats = {};\nlib.warnBadFormat = function(f) {\n var key = String(f);\n if(!seenBadFormats[key]) {\n seenBadFormats[key] = 1;\n lib.warn('encountered bad format: \"' + key + '\"');\n }\n};\n\nlib.noFormat = function(value) {\n return String(value);\n};\n\nlib.numberFormat = function(formatStr) {\n var fn;\n try {\n fn = d3Format(lib.adjustFormat(formatStr));\n } catch(e) {\n lib.warnBadFormat(formatStr);\n return lib.noFormat;\n }\n\n return fn;\n};\n\nlib.nestedProperty = _dereq_('./nested_property');\nlib.keyedContainer = _dereq_('./keyed_container');\nlib.relativeAttr = _dereq_('./relative_attr');\nlib.isPlainObject = _dereq_('./is_plain_object');\nlib.toLogRange = _dereq_('./to_log_range');\nlib.relinkPrivateKeys = _dereq_('./relink_private');\n\nvar arrayModule = _dereq_('./array');\nlib.isTypedArray = arrayModule.isTypedArray;\nlib.isArrayOrTypedArray = arrayModule.isArrayOrTypedArray;\nlib.isArray1D = arrayModule.isArray1D;\nlib.ensureArray = arrayModule.ensureArray;\nlib.concat = arrayModule.concat;\nlib.maxRowLength = arrayModule.maxRowLength;\nlib.minRowLength = arrayModule.minRowLength;\n\nvar modModule = _dereq_('./mod');\nlib.mod = modModule.mod;\nlib.modHalf = modModule.modHalf;\n\nvar coerceModule = _dereq_('./coerce');\nlib.valObjectMeta = coerceModule.valObjectMeta;\nlib.coerce = coerceModule.coerce;\nlib.coerce2 = coerceModule.coerce2;\nlib.coerceFont = coerceModule.coerceFont;\nlib.coercePattern = coerceModule.coercePattern;\nlib.coerceHoverinfo = coerceModule.coerceHoverinfo;\nlib.coerceSelectionMarkerOpacity = coerceModule.coerceSelectionMarkerOpacity;\nlib.validate = coerceModule.validate;\n\nvar datesModule = _dereq_('./dates');\nlib.dateTime2ms = datesModule.dateTime2ms;\nlib.isDateTime = datesModule.isDateTime;\nlib.ms2DateTime = datesModule.ms2DateTime;\nlib.ms2DateTimeLocal = datesModule.ms2DateTimeLocal;\nlib.cleanDate = datesModule.cleanDate;\nlib.isJSDate = datesModule.isJSDate;\nlib.formatDate = datesModule.formatDate;\nlib.incrementMonth = datesModule.incrementMonth;\nlib.dateTick0 = datesModule.dateTick0;\nlib.dfltRange = datesModule.dfltRange;\nlib.findExactDates = datesModule.findExactDates;\nlib.MIN_MS = datesModule.MIN_MS;\nlib.MAX_MS = datesModule.MAX_MS;\n\nvar searchModule = _dereq_('./search');\nlib.findBin = searchModule.findBin;\nlib.sorterAsc = searchModule.sorterAsc;\nlib.sorterDes = searchModule.sorterDes;\nlib.distinctVals = searchModule.distinctVals;\nlib.roundUp = searchModule.roundUp;\nlib.sort = searchModule.sort;\nlib.findIndexOfMin = searchModule.findIndexOfMin;\n\nlib.sortObjectKeys = _dereq_('./sort_object_keys');\n\nvar statsModule = _dereq_('./stats');\nlib.aggNums = statsModule.aggNums;\nlib.len = statsModule.len;\nlib.mean = statsModule.mean;\nlib.median = statsModule.median;\nlib.midRange = statsModule.midRange;\nlib.variance = statsModule.variance;\nlib.stdev = statsModule.stdev;\nlib.interp = statsModule.interp;\n\nvar matrixModule = _dereq_('./matrix');\nlib.init2dArray = matrixModule.init2dArray;\nlib.transposeRagged = matrixModule.transposeRagged;\nlib.dot = matrixModule.dot;\nlib.translationMatrix = matrixModule.translationMatrix;\nlib.rotationMatrix = matrixModule.rotationMatrix;\nlib.rotationXYMatrix = matrixModule.rotationXYMatrix;\nlib.apply3DTransform = matrixModule.apply3DTransform;\nlib.apply2DTransform = matrixModule.apply2DTransform;\nlib.apply2DTransform2 = matrixModule.apply2DTransform2;\nlib.convertCssMatrix = matrixModule.convertCssMatrix;\nlib.inverseTransformMatrix = matrixModule.inverseTransformMatrix;\n\nvar anglesModule = _dereq_('./angles');\nlib.deg2rad = anglesModule.deg2rad;\nlib.rad2deg = anglesModule.rad2deg;\nlib.angleDelta = anglesModule.angleDelta;\nlib.angleDist = anglesModule.angleDist;\nlib.isFullCircle = anglesModule.isFullCircle;\nlib.isAngleInsideSector = anglesModule.isAngleInsideSector;\nlib.isPtInsideSector = anglesModule.isPtInsideSector;\nlib.pathArc = anglesModule.pathArc;\nlib.pathSector = anglesModule.pathSector;\nlib.pathAnnulus = anglesModule.pathAnnulus;\n\nvar anchorUtils = _dereq_('./anchor_utils');\nlib.isLeftAnchor = anchorUtils.isLeftAnchor;\nlib.isCenterAnchor = anchorUtils.isCenterAnchor;\nlib.isRightAnchor = anchorUtils.isRightAnchor;\nlib.isTopAnchor = anchorUtils.isTopAnchor;\nlib.isMiddleAnchor = anchorUtils.isMiddleAnchor;\nlib.isBottomAnchor = anchorUtils.isBottomAnchor;\n\nvar geom2dModule = _dereq_('./geometry2d');\nlib.segmentsIntersect = geom2dModule.segmentsIntersect;\nlib.segmentDistance = geom2dModule.segmentDistance;\nlib.getTextLocation = geom2dModule.getTextLocation;\nlib.clearLocationCache = geom2dModule.clearLocationCache;\nlib.getVisibleSegment = geom2dModule.getVisibleSegment;\nlib.findPointOnPath = geom2dModule.findPointOnPath;\n\nvar extendModule = _dereq_('./extend');\nlib.extendFlat = extendModule.extendFlat;\nlib.extendDeep = extendModule.extendDeep;\nlib.extendDeepAll = extendModule.extendDeepAll;\nlib.extendDeepNoArrays = extendModule.extendDeepNoArrays;\n\nvar loggersModule = _dereq_('./loggers');\nlib.log = loggersModule.log;\nlib.warn = loggersModule.warn;\nlib.error = loggersModule.error;\n\nvar regexModule = _dereq_('./regex');\nlib.counterRegex = regexModule.counter;\n\nvar throttleModule = _dereq_('./throttle');\nlib.throttle = throttleModule.throttle;\nlib.throttleDone = throttleModule.done;\nlib.clearThrottle = throttleModule.clear;\n\nvar domModule = _dereq_('./dom');\nlib.getGraphDiv = domModule.getGraphDiv;\nlib.isPlotDiv = domModule.isPlotDiv;\nlib.removeElement = domModule.removeElement;\nlib.addStyleRule = domModule.addStyleRule;\nlib.addRelatedStyleRule = domModule.addRelatedStyleRule;\nlib.deleteRelatedStyleRule = domModule.deleteRelatedStyleRule;\nlib.getFullTransformMatrix = domModule.getFullTransformMatrix;\nlib.getElementTransformMatrix = domModule.getElementTransformMatrix;\nlib.getElementAndAncestors = domModule.getElementAndAncestors;\nlib.equalDomRects = domModule.equalDomRects;\n\nlib.clearResponsive = _dereq_('./clear_responsive');\nlib.preserveDrawingBuffer = _dereq_('./preserve_drawing_buffer');\n\nlib.makeTraceGroups = _dereq_('./make_trace_groups');\n\nlib._ = _dereq_('./localize');\n\nlib.notifier = _dereq_('./notifier');\n\nlib.filterUnique = _dereq_('./filter_unique');\nlib.filterVisible = _dereq_('./filter_visible');\nlib.pushUnique = _dereq_('./push_unique');\n\nlib.increment = _dereq_('./increment');\n\nlib.cleanNumber = _dereq_('./clean_number');\n\nlib.ensureNumber = function ensureNumber(v) {\n if(!isNumeric(v)) return BADNUM;\n v = Number(v);\n return (v > MAX_SAFE || v < MIN_SAFE) ? BADNUM : v;\n};\n\n/**\n * Is v a valid array index? Accepts numeric strings as well as numbers.\n *\n * @param {any} v: the value to test\n * @param {Optional[integer]} len: the array length we are indexing\n *\n * @return {bool}: v is a valid array index\n */\nlib.isIndex = function(v, len) {\n if(len !== undefined && v >= len) return false;\n return isNumeric(v) && (v >= 0) && (v % 1 === 0);\n};\n\nlib.noop = _dereq_('./noop');\nlib.identity = _dereq_('./identity');\n\n/**\n * create an array of length 'cnt' filled with 'v' at all indices\n *\n * @param {any} v\n * @param {number} cnt\n * @return {array}\n */\nlib.repeat = function(v, cnt) {\n var out = new Array(cnt);\n for(var i = 0; i < cnt; i++) {\n out[i] = v;\n }\n return out;\n};\n\n/**\n * swap x and y of the same attribute in container cont\n * specify attr with a ? in place of x/y\n * you can also swap other things than x/y by providing part1 and part2\n */\nlib.swapAttrs = function(cont, attrList, part1, part2) {\n if(!part1) part1 = 'x';\n if(!part2) part2 = 'y';\n for(var i = 0; i < attrList.length; i++) {\n var attr = attrList[i];\n var xp = lib.nestedProperty(cont, attr.replace('?', part1));\n var yp = lib.nestedProperty(cont, attr.replace('?', part2));\n var temp = xp.get();\n xp.set(yp.get());\n yp.set(temp);\n }\n};\n\n/**\n * SVG painter's algo worked around with reinsertion\n */\nlib.raiseToTop = function raiseToTop(elem) {\n elem.parentNode.appendChild(elem);\n};\n\n/**\n * cancel a possibly pending transition; returned selection may be used by caller\n */\nlib.cancelTransition = function(selection) {\n return selection.transition().duration(0);\n};\n\n// constrain - restrict a number v to be between v0 and v1\nlib.constrain = function(v, v0, v1) {\n if(v0 > v1) return Math.max(v1, Math.min(v0, v));\n return Math.max(v0, Math.min(v1, v));\n};\n\n/**\n * do two bounding boxes from getBoundingClientRect,\n * ie {left,right,top,bottom,width,height}, overlap?\n * takes optional padding pixels\n */\nlib.bBoxIntersect = function(a, b, pad) {\n pad = pad || 0;\n return (a.left <= b.right + pad &&\n b.left <= a.right + pad &&\n a.top <= b.bottom + pad &&\n b.top <= a.bottom + pad);\n};\n\n/*\n * simpleMap: alternative to Array.map that only\n * passes on the element and up to 2 extra args you\n * provide (but not the array index or the whole array)\n *\n * array: the array to map it to\n * func: the function to apply\n * x1, x2: optional extra args\n */\nlib.simpleMap = function(array, func, x1, x2, opts) {\n var len = array.length;\n var out = new Array(len);\n for(var i = 0; i < len; i++) out[i] = func(array[i], x1, x2, opts);\n return out;\n};\n\n/**\n * Random string generator\n *\n * @param {object} existing\n * pass in strings to avoid as keys with truthy values\n * @param {int} bits\n * bits of information in the output string, default 24\n * @param {int} base\n * base of string representation, default 16. Should be a power of 2.\n */\nlib.randstr = function randstr(existing, bits, base, _recursion) {\n if(!base) base = 16;\n if(bits === undefined) bits = 24;\n if(bits <= 0) return '0';\n\n var digits = Math.log(Math.pow(2, bits)) / Math.log(base);\n var res = '';\n var i, b, x;\n\n for(i = 2; digits === Infinity; i *= 2) {\n digits = Math.log(Math.pow(2, bits / i)) / Math.log(base) * i;\n }\n\n var rem = digits - Math.floor(digits);\n\n for(i = 0; i < Math.floor(digits); i++) {\n x = Math.floor(Math.random() * base).toString(base);\n res = x + res;\n }\n\n if(rem) {\n b = Math.pow(base, rem);\n x = Math.floor(Math.random() * b).toString(base);\n res = x + res;\n }\n\n var parsed = parseInt(res, base);\n if((existing && existing[res]) ||\n (parsed !== Infinity && parsed >= Math.pow(2, bits))) {\n if(_recursion > 10) {\n lib.warn('randstr failed uniqueness');\n return res;\n }\n return randstr(existing, bits, base, (_recursion || 0) + 1);\n } else return res;\n};\n\nlib.OptionControl = function(opt, optname) {\n /*\n * An environment to contain all option setters and\n * getters that collectively modify opts.\n *\n * You can call up opts from any function in new object\n * as this.optname || this.opt\n *\n * See FitOpts for example of usage\n */\n if(!opt) opt = {};\n if(!optname) optname = 'opt';\n\n var self = {};\n self.optionList = [];\n\n self._newoption = function(optObj) {\n optObj[optname] = opt;\n self[optObj.name] = optObj;\n self.optionList.push(optObj);\n };\n\n self['_' + optname] = opt;\n return self;\n};\n\n/**\n * lib.smooth: smooth arrayIn by convolving with\n * a hann window with given full width at half max\n * bounce the ends in, so the output has the same length as the input\n */\nlib.smooth = function(arrayIn, FWHM) {\n FWHM = Math.round(FWHM) || 0; // only makes sense for integers\n if(FWHM < 2) return arrayIn;\n\n var alen = arrayIn.length;\n var alen2 = 2 * alen;\n var wlen = 2 * FWHM - 1;\n var w = new Array(wlen);\n var arrayOut = new Array(alen);\n var i;\n var j;\n var k;\n var v;\n\n // first make the window array\n for(i = 0; i < wlen; i++) {\n w[i] = (1 - Math.cos(Math.PI * (i + 1) / FWHM)) / (2 * FWHM);\n }\n\n // now do the convolution\n for(i = 0; i < alen; i++) {\n v = 0;\n for(j = 0; j < wlen; j++) {\n k = i + j + 1 - FWHM;\n\n // multibounce\n if(k < -alen) k -= alen2 * Math.round(k / alen2);\n else if(k >= alen2) k -= alen2 * Math.floor(k / alen2);\n\n // single bounce\n if(k < 0) k = - 1 - k;\n else if(k >= alen) k = alen2 - 1 - k;\n\n v += arrayIn[k] * w[j];\n }\n arrayOut[i] = v;\n }\n\n return arrayOut;\n};\n\n/**\n * syncOrAsync: run a sequence of functions synchronously\n * as long as its returns are not promises (ie have no .then)\n * includes one argument arg to send to all functions...\n * this is mainly just to prevent us having to make wrapper functions\n * when the only purpose of the wrapper is to reference gd\n * and a final step to be executed at the end\n * TODO: if there's an error and everything is sync,\n * this doesn't happen yet because we want to make sure\n * that it gets reported\n */\nlib.syncOrAsync = function(sequence, arg, finalStep) {\n var ret, fni;\n\n function continueAsync() {\n return lib.syncOrAsync(sequence, arg, finalStep);\n }\n\n while(sequence.length) {\n fni = sequence.splice(0, 1)[0];\n ret = fni(arg);\n\n if(ret && ret.then) {\n return ret.then(continueAsync);\n }\n }\n\n return finalStep && finalStep(arg);\n};\n\n\n/**\n * Helper to strip trailing slash, from\n * http://stackoverflow.com/questions/6680825/return-string-without-trailing-slash\n */\nlib.stripTrailingSlash = function(str) {\n if(str.substr(-1) === '/') return str.substr(0, str.length - 1);\n return str;\n};\n\nlib.noneOrAll = function(containerIn, containerOut, attrList) {\n /**\n * some attributes come together, so if you have one of them\n * in the input, you should copy the default values of the others\n * to the input as well.\n */\n if(!containerIn) return;\n\n var hasAny = false;\n var hasAll = true;\n var i;\n var val;\n\n for(i = 0; i < attrList.length; i++) {\n val = containerIn[attrList[i]];\n if(val !== undefined && val !== null) hasAny = true;\n else hasAll = false;\n }\n\n if(hasAny && !hasAll) {\n for(i = 0; i < attrList.length; i++) {\n containerIn[attrList[i]] = containerOut[attrList[i]];\n }\n }\n};\n\n/** merges calcdata field (given by cdAttr) with traceAttr values\n *\n * N.B. Loop over minimum of cd.length and traceAttr.length\n * i.e. it does not try to fill in beyond traceAttr.length-1\n *\n * @param {array} traceAttr : trace attribute\n * @param {object} cd : calcdata trace\n * @param {string} cdAttr : calcdata key\n */\nlib.mergeArray = function(traceAttr, cd, cdAttr, fn) {\n var hasFn = typeof fn === 'function';\n if(lib.isArrayOrTypedArray(traceAttr)) {\n var imax = Math.min(traceAttr.length, cd.length);\n for(var i = 0; i < imax; i++) {\n var v = traceAttr[i];\n cd[i][cdAttr] = hasFn ? fn(v) : v;\n }\n }\n};\n\n// cast numbers to positive numbers, returns 0 if not greater than 0\nlib.mergeArrayCastPositive = function(traceAttr, cd, cdAttr) {\n return lib.mergeArray(traceAttr, cd, cdAttr, function(v) {\n var w = +v;\n return !isFinite(w) ? 0 : w > 0 ? w : 0;\n });\n};\n\n/** fills calcdata field (given by cdAttr) with traceAttr values\n * or function of traceAttr values (e.g. some fallback)\n *\n * N.B. Loops over all cd items.\n *\n * @param {array} traceAttr : trace attribute\n * @param {object} cd : calcdata trace\n * @param {string} cdAttr : calcdata key\n * @param {function} [fn] : optional function to apply to each array item\n */\nlib.fillArray = function(traceAttr, cd, cdAttr, fn) {\n fn = fn || lib.identity;\n\n if(lib.isArrayOrTypedArray(traceAttr)) {\n for(var i = 0; i < cd.length; i++) {\n cd[i][cdAttr] = fn(traceAttr[i]);\n }\n }\n};\n\n/** Handler for trace-wide vs per-point options\n *\n * @param {object} trace : (full) trace object\n * @param {number} ptNumber : index of the point in question\n * @param {string} astr : attribute string\n * @param {function} [fn] : optional function to apply to each array item\n *\n * @return {any}\n */\nlib.castOption = function(trace, ptNumber, astr, fn) {\n fn = fn || lib.identity;\n\n var val = lib.nestedProperty(trace, astr).get();\n\n if(lib.isArrayOrTypedArray(val)) {\n if(Array.isArray(ptNumber) && lib.isArrayOrTypedArray(val[ptNumber[0]])) {\n return fn(val[ptNumber[0]][ptNumber[1]]);\n } else {\n return fn(val[ptNumber]);\n }\n } else {\n return val;\n }\n};\n\n/** Extract option from calcdata item, correctly falling back to\n * trace value if not found.\n *\n * @param {object} calcPt : calcdata[i][j] item\n * @param {object} trace : (full) trace object\n * @param {string} calcKey : calcdata key\n * @param {string} traceKey : aka trace attribute string\n * @return {any}\n */\nlib.extractOption = function(calcPt, trace, calcKey, traceKey) {\n if(calcKey in calcPt) return calcPt[calcKey];\n\n // fallback to trace value,\n // must check if value isn't itself an array\n // which means the trace attribute has a corresponding\n // calcdata key, but its value is falsy\n var traceVal = lib.nestedProperty(trace, traceKey).get();\n if(!Array.isArray(traceVal)) return traceVal;\n};\n\nfunction makePtIndex2PtNumber(indexToPoints) {\n var ptIndex2ptNumber = {};\n for(var k in indexToPoints) {\n var pts = indexToPoints[k];\n for(var j = 0; j < pts.length; j++) {\n ptIndex2ptNumber[pts[j]] = +k;\n }\n }\n return ptIndex2ptNumber;\n}\n\n/** Tag selected calcdata items\n *\n * N.B. note that point 'index' corresponds to input data array index\n * whereas 'number' is its post-transform version.\n *\n * @param {array} calcTrace\n * @param {object} trace\n * - selectedpoints {array}\n * - _indexToPoints {object}\n * @param {ptNumber2cdIndex} ptNumber2cdIndex (optional)\n * optional map object for trace types that do not have 1-to-1 point number to\n * calcdata item index correspondence (e.g. histogram)\n */\nlib.tagSelected = function(calcTrace, trace, ptNumber2cdIndex) {\n var selectedpoints = trace.selectedpoints;\n var indexToPoints = trace._indexToPoints;\n var ptIndex2ptNumber;\n\n // make pt index-to-number map object, which takes care of transformed traces\n if(indexToPoints) {\n ptIndex2ptNumber = makePtIndex2PtNumber(indexToPoints);\n }\n\n function isCdIndexValid(v) {\n return v !== undefined && v < calcTrace.length;\n }\n\n for(var i = 0; i < selectedpoints.length; i++) {\n var ptIndex = selectedpoints[i];\n\n if(lib.isIndex(ptIndex) ||\n (lib.isArrayOrTypedArray(ptIndex) && lib.isIndex(ptIndex[0]) && lib.isIndex(ptIndex[1]))\n ) {\n var ptNumber = ptIndex2ptNumber ? ptIndex2ptNumber[ptIndex] : ptIndex;\n var cdIndex = ptNumber2cdIndex ? ptNumber2cdIndex[ptNumber] : ptNumber;\n\n if(isCdIndexValid(cdIndex)) {\n calcTrace[cdIndex].selected = 1;\n }\n }\n }\n};\n\nlib.selIndices2selPoints = function(trace) {\n var selectedpoints = trace.selectedpoints;\n var indexToPoints = trace._indexToPoints;\n\n if(indexToPoints) {\n var ptIndex2ptNumber = makePtIndex2PtNumber(indexToPoints);\n var out = [];\n\n for(var i = 0; i < selectedpoints.length; i++) {\n var ptIndex = selectedpoints[i];\n if(lib.isIndex(ptIndex)) {\n var ptNumber = ptIndex2ptNumber[ptIndex];\n if(lib.isIndex(ptNumber)) {\n out.push(ptNumber);\n }\n }\n }\n\n return out;\n } else {\n return selectedpoints;\n }\n};\n\n/** Returns target as set by 'target' transform attribute\n *\n * @param {object} trace : full trace object\n * @param {object} transformOpts : transform option object\n * - target (string} :\n * either an attribute string referencing an array in the trace object, or\n * a set array.\n *\n * @return {array or false} : the target array (NOT a copy!!) or false if invalid\n */\nlib.getTargetArray = function(trace, transformOpts) {\n var target = transformOpts.target;\n\n if(typeof target === 'string' && target) {\n var array = lib.nestedProperty(trace, target).get();\n return Array.isArray(array) ? array : false;\n } else if(Array.isArray(target)) {\n return target;\n }\n\n return false;\n};\n\n/**\n * modified version of jQuery's extend to strip out private objs and functions,\n * and cut arrays down to first or 1 elements\n * because extend-like algorithms are hella slow\n * obj2 is assumed to already be clean of these things (including no arrays)\n */\nlib.minExtend = function(obj1, obj2) {\n var objOut = {};\n if(typeof obj2 !== 'object') obj2 = {};\n var arrayLen = 3;\n var keys = Object.keys(obj1);\n var i, k, v;\n\n for(i = 0; i < keys.length; i++) {\n k = keys[i];\n v = obj1[k];\n if(k.charAt(0) === '_' || typeof v === 'function') continue;\n else if(k === 'module') objOut[k] = v;\n else if(Array.isArray(v)) {\n if(k === 'colorscale') {\n objOut[k] = v.slice();\n } else {\n objOut[k] = v.slice(0, arrayLen);\n }\n } else if(lib.isTypedArray(v)) {\n objOut[k] = v.subarray(0, arrayLen);\n } else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);\n else objOut[k] = v;\n }\n\n keys = Object.keys(obj2);\n for(i = 0; i < keys.length; i++) {\n k = keys[i];\n v = obj2[k];\n if(typeof v !== 'object' || !(k in objOut) || typeof objOut[k] !== 'object') {\n objOut[k] = v;\n }\n }\n\n return objOut;\n};\n\nlib.titleCase = function(s) {\n return s.charAt(0).toUpperCase() + s.substr(1);\n};\n\nlib.containsAny = function(s, fragments) {\n for(var i = 0; i < fragments.length; i++) {\n if(s.indexOf(fragments[i]) !== -1) return true;\n }\n return false;\n};\n\nlib.isIE = function() {\n return typeof window.navigator.msSaveBlob !== 'undefined';\n};\n\nvar IS_SAFARI_REGEX = /Version\\/[\\d\\.]+.*Safari/;\nlib.isSafari = function() {\n return IS_SAFARI_REGEX.test(window.navigator.userAgent);\n};\n\nvar IS_IOS_REGEX = /iPad|iPhone|iPod/;\nlib.isIOS = function() {\n return IS_IOS_REGEX.test(window.navigator.userAgent);\n};\n\nvar FIREFOX_VERSION_REGEX = /Firefox\\/(\\d+)\\.\\d+/;\nlib.getFirefoxVersion = function() {\n var match = FIREFOX_VERSION_REGEX.exec(window.navigator.userAgent);\n if(match && match.length === 2) {\n var versionInt = parseInt(match[1]);\n if(!isNaN(versionInt)) {\n return versionInt;\n }\n }\n return null;\n};\n\nlib.isD3Selection = function(obj) {\n return obj instanceof d3.selection;\n};\n\n/**\n * Append element to DOM only if not present.\n *\n * @param {d3 selection} parent : parent selection of the element in question\n * @param {string} nodeType : node type of element to append\n * @param {string} className (optional) : class name of element in question\n * @param {fn} enterFn (optional) : optional fn applied to entering elements only\n * @return {d3 selection} selection of new layer\n *\n * Previously, we were using the following pattern:\n *\n * ```\n * var sel = parent.selectAll('.' + className)\n * .data([0]);\n *\n * sel.enter().append(nodeType)\n * .classed(className, true);\n *\n * return sel;\n * ```\n *\n * in numerous places in our codebase to achieve the same behavior.\n *\n * The logic below performs much better, mostly as we are using\n * `.select` instead `.selectAll` that is `querySelector` instead of\n * `querySelectorAll`.\n *\n */\nlib.ensureSingle = function(parent, nodeType, className, enterFn) {\n var sel = parent.select(nodeType + (className ? '.' + className : ''));\n if(sel.size()) return sel;\n\n var layer = parent.append(nodeType);\n if(className) layer.classed(className, true);\n if(enterFn) layer.call(enterFn);\n\n return layer;\n};\n\n/**\n * Same as Lib.ensureSingle, but using id as selector.\n * This version is mostly used for clipPath nodes.\n *\n * @param {d3 selection} parent : parent selection of the element in question\n * @param {string} nodeType : node type of element to append\n * @param {string} id : id of element in question\n * @param {fn} enterFn (optional) : optional fn applied to entering elements only\n * @return {d3 selection} selection of new layer\n */\nlib.ensureSingleById = function(parent, nodeType, id, enterFn) {\n var sel = parent.select(nodeType + '#' + id);\n if(sel.size()) return sel;\n\n var layer = parent.append(nodeType).attr('id', id);\n if(enterFn) layer.call(enterFn);\n\n return layer;\n};\n\n/**\n * Converts a string path to an object.\n *\n * When given a string containing an array element, it will create a `null`\n * filled array of the given size.\n *\n * @example\n * lib.objectFromPath('nested.test[2].path', 'value');\n * // returns { nested: { test: [null, null, { path: 'value' }]}\n *\n * @param {string} path to nested value\n * @param {*} any value to be set\n *\n * @return {Object} the constructed object with a full nested path\n */\nlib.objectFromPath = function(path, value) {\n var keys = path.split('.');\n var tmpObj;\n var obj = tmpObj = {};\n\n for(var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var el = null;\n\n var parts = keys[i].match(/(.*)\\[([0-9]+)\\]/);\n\n if(parts) {\n key = parts[1];\n el = parts[2];\n\n tmpObj = tmpObj[key] = [];\n\n if(i === keys.length - 1) {\n tmpObj[el] = value;\n } else {\n tmpObj[el] = {};\n }\n\n tmpObj = tmpObj[el];\n } else {\n if(i === keys.length - 1) {\n tmpObj[key] = value;\n } else {\n tmpObj[key] = {};\n }\n\n tmpObj = tmpObj[key];\n }\n }\n\n return obj;\n};\n\n/**\n * Iterate through an object in-place, converting dotted properties to objects.\n *\n * Examples:\n *\n * lib.expandObjectPaths({'nested.test.path': 'value'});\n * => { nested: { test: {path: 'value'}}}\n *\n * It also handles array notation, e.g.:\n *\n * lib.expandObjectPaths({'foo[1].bar': 'value'});\n * => { foo: [null, {bar: value}] }\n *\n * It handles merges the results when two properties are specified in parallel:\n *\n * lib.expandObjectPaths({'foo[1].bar': 10, 'foo[0].bar': 20});\n * => { foo: [{bar: 10}, {bar: 20}] }\n *\n * It does NOT, however, merge multiple multiply-nested arrays::\n *\n * lib.expandObjectPaths({'marker[1].range[1]': 5, 'marker[1].range[0]': 4})\n * => { marker: [null, {range: 4}] }\n */\n\n// Store this to avoid recompiling regex on *every* prop since this may happen many\n// many times for animations. Could maybe be inside the function. Not sure about\n// scoping vs. recompilation tradeoff, but at least it's not just inlining it into\n// the inner loop.\nvar dottedPropertyRegex = /^([^\\[\\.]+)\\.(.+)?/;\nvar indexedPropertyRegex = /^([^\\.]+)\\[([0-9]+)\\](\\.)?(.+)?/;\n\nlib.expandObjectPaths = function(data) {\n var match, key, prop, datum, idx, dest, trailingPath;\n if(typeof data === 'object' && !Array.isArray(data)) {\n for(key in data) {\n if(data.hasOwnProperty(key)) {\n if((match = key.match(dottedPropertyRegex))) {\n datum = data[key];\n prop = match[1];\n\n delete data[key];\n\n data[prop] = lib.extendDeepNoArrays(data[prop] || {}, lib.objectFromPath(key, lib.expandObjectPaths(datum))[prop]);\n } else if((match = key.match(indexedPropertyRegex))) {\n datum = data[key];\n\n prop = match[1];\n idx = parseInt(match[2]);\n\n delete data[key];\n\n data[prop] = data[prop] || [];\n\n if(match[3] === '.') {\n // This is the case where theere are subsequent properties into which\n // we must recurse, e.g. transforms[0].value\n trailingPath = match[4];\n dest = data[prop][idx] = data[prop][idx] || {};\n\n // NB: Extend deep no arrays prevents this from working on multiple\n // nested properties in the same object, e.g.\n //\n // {\n // foo[0].bar[1].range\n // foo[0].bar[0].range\n // }\n //\n // In this case, the extendDeepNoArrays will overwrite one array with\n // the other, so that both properties *will not* be present in the\n // result. Fixing this would require a more intelligent tracking\n // of changes and merging than extendDeepNoArrays currently accomplishes.\n lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum)));\n } else {\n // This is the case where this property is the end of the line,\n // e.g. xaxis.range[0]\n data[prop][idx] = lib.expandObjectPaths(datum);\n }\n } else {\n data[key] = lib.expandObjectPaths(data[key]);\n }\n }\n }\n }\n\n return data;\n};\n\n/**\n * Converts value to string separated by the provided separators.\n *\n * @example\n * lib.numSeparate(2016, '.,');\n * // returns '2016'\n *\n * @example\n * lib.numSeparate(3000, '.,', true);\n * // returns '3,000'\n *\n * @example\n * lib.numSeparate(1234.56, '|,')\n * // returns '1,234|56'\n *\n * @param {string|number} value the value to be converted\n * @param {string} separators string of decimal, then thousands separators\n * @param {boolean} separatethousands boolean, 4-digit integers are separated if true\n *\n * @return {string} the value that has been separated\n */\nlib.numSeparate = function(value, separators, separatethousands) {\n if(!separatethousands) separatethousands = false;\n\n if(typeof separators !== 'string' || separators.length === 0) {\n throw new Error('Separator string required for formatting!');\n }\n\n if(typeof value === 'number') {\n value = String(value);\n }\n\n var thousandsRe = /(\\d+)(\\d{3})/;\n var decimalSep = separators.charAt(0);\n var thouSep = separators.charAt(1);\n\n var x = value.split('.');\n var x1 = x[0];\n var x2 = x.length > 1 ? decimalSep + x[1] : '';\n\n // Years are ignored for thousands separators\n if(thouSep && (x.length > 1 || x1.length > 4 || separatethousands)) {\n while(thousandsRe.test(x1)) {\n x1 = x1.replace(thousandsRe, '$1' + thouSep + '$2');\n }\n }\n\n return x1 + x2;\n};\n\nlib.TEMPLATE_STRING_REGEX = /%{([^\\s%{}:]*)([:|\\|][^}]*)?}/g;\nvar SIMPLE_PROPERTY_REGEX = /^\\w*$/;\n\n/**\n * Substitute values from an object into a string\n *\n * Examples:\n * Lib.templateString('name: %{trace}', {trace: 'asdf'}) --> 'name: asdf'\n * Lib.templateString('name: %{trace[0].name}', {trace: [{name: 'asdf'}]}) --> 'name: asdf'\n *\n * @param {string} input string containing %{...} template strings\n * @param {obj} data object containing substitution values\n *\n * @return {string} templated string\n */\nlib.templateString = function(string, obj) {\n // Not all that useful, but cache nestedProperty instantiation\n // just in case it speeds things up *slightly*:\n var getterCache = {};\n\n return string.replace(lib.TEMPLATE_STRING_REGEX, function(dummy, key) {\n var v;\n if(SIMPLE_PROPERTY_REGEX.test(key)) {\n v = obj[key];\n } else {\n getterCache[key] = getterCache[key] || lib.nestedProperty(obj, key).get;\n v = getterCache[key]();\n }\n return lib.isValidTextValue(v) ? v : '';\n });\n};\n\nvar hovertemplateWarnings = {\n max: 10,\n count: 0,\n name: 'hovertemplate'\n};\nlib.hovertemplateString = function() {\n return templateFormatString.apply(hovertemplateWarnings, arguments);\n};\n\nvar texttemplateWarnings = {\n max: 10,\n count: 0,\n name: 'texttemplate'\n};\nlib.texttemplateString = function() {\n return templateFormatString.apply(texttemplateWarnings, arguments);\n};\n\nvar TEMPLATE_STRING_FORMAT_SEPARATOR = /^[:|\\|]/;\n/**\n * Substitute values from an object into a string and optionally formats them using d3-format,\n * or fallback to associated labels.\n *\n * Examples:\n * Lib.hovertemplateString('name: %{trace}', {trace: 'asdf'}) --> 'name: asdf'\n * Lib.hovertemplateString('name: %{trace[0].name}', {trace: [{name: 'asdf'}]}) --> 'name: asdf'\n * Lib.hovertemplateString('price: %{y:$.2f}', {y: 1}) --> 'price: $1.00'\n *\n * @param {string} input string containing %{...:...} template strings\n * @param {obj} data object containing fallback text when no formatting is specified, ex.: {yLabel: 'formattedYValue'}\n * @param {obj} d3 locale\n * @param {obj} data objects containing substitution values\n *\n * @return {string} templated string\n */\nfunction templateFormatString(string, labels, d3locale) {\n var opts = this;\n var args = arguments;\n if(!labels) labels = {};\n // Not all that useful, but cache nestedProperty instantiation\n // just in case it speeds things up *slightly*:\n var getterCache = {};\n\n return string.replace(lib.TEMPLATE_STRING_REGEX, function(match, rawKey, format) {\n var isOther =\n rawKey === 'xother' ||\n rawKey === 'yother';\n\n var isSpaceOther =\n rawKey === '_xother' ||\n rawKey === '_yother';\n\n var isSpaceOtherSpace =\n rawKey === '_xother_' ||\n rawKey === '_yother_';\n\n var isOtherSpace =\n rawKey === 'xother_' ||\n rawKey === 'yother_';\n\n var hasOther = isOther || isSpaceOther || isOtherSpace || isSpaceOtherSpace;\n\n var key = rawKey;\n if(isSpaceOther || isSpaceOtherSpace) key = key.substring(1);\n if(isOtherSpace || isSpaceOtherSpace) key = key.substring(0, key.length - 1);\n\n var value;\n if(hasOther) {\n value = labels[key];\n if(value === undefined) return '';\n } else {\n var obj, i;\n for(i = 3; i < args.length; i++) {\n obj = args[i];\n if(!obj) continue;\n if(obj.hasOwnProperty(key)) {\n value = obj[key];\n break;\n }\n\n if(!SIMPLE_PROPERTY_REGEX.test(key)) {\n value = lib.nestedProperty(obj, key).get();\n value = getterCache[key] || lib.nestedProperty(obj, key).get();\n if(value) getterCache[key] = value;\n }\n if(value !== undefined) break;\n }\n }\n\n if(value === undefined && opts) {\n if(opts.count < opts.max) {\n lib.warn('Variable \\'' + key + '\\' in ' + opts.name + ' could not be found!');\n value = match;\n }\n\n if(opts.count === opts.max) {\n lib.warn('Too many ' + opts.name + ' warnings - additional warnings will be suppressed');\n }\n opts.count++;\n\n return match;\n }\n\n if(format) {\n var fmt;\n if(format[0] === ':') {\n fmt = d3locale ? d3locale.numberFormat : lib.numberFormat;\n value = fmt(format.replace(TEMPLATE_STRING_FORMAT_SEPARATOR, ''))(value);\n }\n\n if(format[0] === '|') {\n fmt = d3locale ? d3locale.timeFormat : utcFormat;\n var ms = lib.dateTime2ms(value);\n value = lib.formatDate(ms, format.replace(TEMPLATE_STRING_FORMAT_SEPARATOR, ''), false, fmt);\n }\n } else {\n var keyLabel = key + 'Label';\n if(labels.hasOwnProperty(keyLabel)) value = labels[keyLabel];\n }\n\n if(hasOther) {\n value = '(' + value + ')';\n if(isSpaceOther || isSpaceOtherSpace) value = ' ' + value;\n if(isOtherSpace || isSpaceOtherSpace) value = value + ' ';\n }\n\n return value;\n });\n}\n\n/*\n * alphanumeric string sort, tailored for subplot IDs like scene2, scene10, x10y13 etc\n */\nvar char0 = 48;\nvar char9 = 57;\nlib.subplotSort = function(a, b) {\n var l = Math.min(a.length, b.length) + 1;\n var numA = 0;\n var numB = 0;\n for(var i = 0; i < l; i++) {\n var charA = a.charCodeAt(i) || 0;\n var charB = b.charCodeAt(i) || 0;\n var isNumA = charA >= char0 && charA <= char9;\n var isNumB = charB >= char0 && charB <= char9;\n\n if(isNumA) numA = 10 * numA + charA - char0;\n if(isNumB) numB = 10 * numB + charB - char0;\n\n if(!isNumA || !isNumB) {\n if(numA !== numB) return numA - numB;\n if(charA !== charB) return charA - charB;\n }\n }\n return numB - numA;\n};\n\n// repeatable pseudorandom generator\nvar randSeed = 2000000000;\n\nlib.seedPseudoRandom = function() {\n randSeed = 2000000000;\n};\n\nlib.pseudoRandom = function() {\n var lastVal = randSeed;\n randSeed = (69069 * randSeed + 1) % 4294967296;\n // don't let consecutive vals be too close together\n // gets away from really trying to be random, in favor of better local uniformity\n if(Math.abs(randSeed - lastVal) < 429496729) return lib.pseudoRandom();\n return randSeed / 4294967296;\n};\n\n\n/** Fill hover 'pointData' container with 'correct' hover text value\n *\n * - If trace hoverinfo contains a 'text' flag and hovertext is not set,\n * the text elements will be seen in the hover labels.\n *\n * - If trace hoverinfo contains a 'text' flag and hovertext is set,\n * hovertext takes precedence over text\n * i.e. the hoverinfo elements will be seen in the hover labels\n *\n * @param {object} calcPt\n * @param {object} trace\n * @param {object || array} contOut (mutated here)\n */\nlib.fillText = function(calcPt, trace, contOut) {\n var fill = Array.isArray(contOut) ?\n function(v) { contOut.push(v); } :\n function(v) { contOut.text = v; };\n\n var htx = lib.extractOption(calcPt, trace, 'htx', 'hovertext');\n if(lib.isValidTextValue(htx)) return fill(htx);\n\n var tx = lib.extractOption(calcPt, trace, 'tx', 'text');\n if(lib.isValidTextValue(tx)) return fill(tx);\n};\n\n// accept all truthy values and 0 (which gets cast to '0' in the hover labels)\nlib.isValidTextValue = function(v) {\n return v || v === 0;\n};\n\n/**\n * @param {number} ratio\n * @param {number} n (number of decimal places)\n */\nlib.formatPercent = function(ratio, n) {\n n = n || 0;\n var str = (Math.round(100 * ratio * Math.pow(10, n)) * Math.pow(0.1, n)).toFixed(n) + '%';\n for(var i = 0; i < n; i++) {\n if(str.indexOf('.') !== -1) {\n str = str.replace('0%', '%');\n str = str.replace('.%', '%');\n }\n }\n return str;\n};\n\nlib.isHidden = function(gd) {\n var display = window.getComputedStyle(gd).display;\n return !display || display === 'none';\n};\n\nlib.strTranslate = function(x, y) {\n return (x || y) ? 'translate(' + x + ',' + y + ')' : '';\n};\n\nlib.strRotate = function(a) {\n return a ? 'rotate(' + a + ')' : '';\n};\n\nlib.strScale = function(s) {\n return s !== 1 ? 'scale(' + s + ')' : '';\n};\n\n/** Return transform text for bar bar-like rectangles and pie-like slices\n * @param {object} transform\n * - targetX: desired position on the x-axis\n * - targetY: desired position on the y-axis\n * - textX: text middle position on the x-axis\n * - textY: text middle position on the y-axis\n * - anchorX: (optional) text anchor position on the x-axis (computed from textX), zero for middle anchor\n * - anchorY: (optional) text anchor position on the y-axis (computed from textY), zero for middle anchor\n * - scale: (optional) scale applied after translate\n * - rotate: (optional) rotation applied after scale\n * - noCenter: when defined no extra arguments needed in rotation\n */\nlib.getTextTransform = function(transform) {\n var noCenter = transform.noCenter;\n var textX = transform.textX;\n var textY = transform.textY;\n var targetX = transform.targetX;\n var targetY = transform.targetY;\n var anchorX = transform.anchorX || 0;\n var anchorY = transform.anchorY || 0;\n var rotate = transform.rotate;\n var scale = transform.scale;\n if(!scale) scale = 0;\n else if(scale > 1) scale = 1;\n\n return (\n lib.strTranslate(\n targetX - scale * (textX + anchorX),\n targetY - scale * (textY + anchorY)\n ) +\n lib.strScale(scale) +\n (rotate ?\n 'rotate(' + rotate +\n (noCenter ? '' : ' ' + textX + ' ' + textY) +\n ')' : ''\n )\n );\n};\n\nlib.setTransormAndDisplay = function(s, transform) {\n s.attr('transform', lib.getTextTransform(transform));\n s.style('display', transform.scale ? null : 'none');\n};\n\nlib.ensureUniformFontSize = function(gd, baseFont) {\n var out = lib.extendFlat({}, baseFont);\n out.size = Math.max(\n baseFont.size,\n gd._fullLayout.uniformtext.minsize || 0\n );\n return out;\n};\n\n/**\n * provide a human-readable list e.g. \"A, B, C and D\" with an ending separator\n *\n * @param {array} arr : the array to join\n * @param {string} mainSeparator : main separator\n * @param {string} lastSeparator : last separator\n *\n * @return {string} : joined list\n */\nlib.join2 = function(arr, mainSeparator, lastSeparator) {\n var len = arr.length;\n if(len > 1) {\n return arr.slice(0, -1).join(mainSeparator) + lastSeparator + arr[len - 1];\n }\n return arr.join(mainSeparator);\n};\n\nlib.bigFont = function(size) {\n return Math.round(1.2 * size);\n};\n\nvar firefoxVersion = lib.getFirefoxVersion();\n// see https://bugzilla.mozilla.org/show_bug.cgi?id=1684973\nvar isProblematicFirefox = firefoxVersion !== null && firefoxVersion < 86;\n\n/**\n * Return the mouse position from the last event registered by D3.\n * @returns An array with two numbers, representing the x and y coordinates of the mouse pointer\n * at the event relative to the targeted node.\n */\nlib.getPositionFromD3Event = function() {\n if(isProblematicFirefox) {\n // layerX and layerY are non-standard, so we only fallback to them when we have to:\n return [\n d3.event.layerX,\n d3.event.layerY\n ];\n } else {\n return [\n d3.event.offsetX,\n d3.event.offsetY\n ];\n }\n};\n\n},{\"../constants/numerical\":491,\"./anchor_utils\":495,\"./angles\":496,\"./array\":497,\"./clean_number\":498,\"./clear_responsive\":500,\"./coerce\":501,\"./dates\":502,\"./dom\":503,\"./extend\":505,\"./filter_unique\":506,\"./filter_visible\":507,\"./geometry2d\":510,\"./identity\":513,\"./increment\":514,\"./is_plain_object\":516,\"./keyed_container\":517,\"./localize\":518,\"./loggers\":519,\"./make_trace_groups\":520,\"./matrix\":521,\"./mod\":522,\"./nested_property\":523,\"./noop\":524,\"./notifier\":525,\"./preserve_drawing_buffer\":529,\"./push_unique\":530,\"./regex\":532,\"./relative_attr\":533,\"./relink_private\":534,\"./search\":535,\"./sort_object_keys\":538,\"./stats\":539,\"./throttle\":542,\"./to_log_range\":543,\"@plotly/d3\":58,\"d3-format\":112,\"d3-time-format\":120,\"fast-isnumeric\":190}],516:[function(_dereq_,module,exports){\n'use strict';\n\n// more info: http://stackoverflow.com/questions/18531624/isplainobject-thing\nmodule.exports = function isPlainObject(obj) {\n // We need to be a little less strict in the `imagetest` container because\n // of how async image requests are handled.\n //\n // N.B. isPlainObject(new Constructor()) will return true in `imagetest`\n if(window && window.process && window.process.versions) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n }\n\n return (\n Object.prototype.toString.call(obj) === '[object Object]' &&\n Object.getPrototypeOf(obj).hasOwnProperty('hasOwnProperty')\n );\n};\n\n},{}],517:[function(_dereq_,module,exports){\n'use strict';\n\nvar nestedProperty = _dereq_('./nested_property');\n\nvar SIMPLE_PROPERTY_REGEX = /^\\w*$/;\n\n// bitmask for deciding what's updated. Sometimes the name needs to be updated,\n// sometimes the value needs to be updated, and sometimes both do. This is just\n// a simple way to track what's updated such that it's a simple OR operation to\n// assimilate new updates.\n//\n// The only exception is the UNSET bit that tracks when we need to explicitly\n// unset and remove the property. This concrn arises because of the special\n// way in which nestedProperty handles null/undefined. When you specify `null`,\n// it prunes any unused items in the tree. I ran into some issues with it getting\n// null vs undefined confused, so UNSET is just a bit that forces the property\n// update to send `null`, removing the property explicitly rather than setting\n// it to undefined.\nvar NONE = 0;\nvar NAME = 1;\nvar VALUE = 2;\nvar BOTH = 3;\nvar UNSET = 4;\n\nmodule.exports = function keyedContainer(baseObj, path, keyName, valueName) {\n keyName = keyName || 'name';\n valueName = valueName || 'value';\n var i, arr, baseProp;\n var changeTypes = {};\n\n if(path && path.length) {\n baseProp = nestedProperty(baseObj, path);\n arr = baseProp.get();\n } else {\n arr = baseObj;\n }\n\n path = path || '';\n\n // Construct an index:\n var indexLookup = {};\n if(arr) {\n for(i = 0; i < arr.length; i++) {\n indexLookup[arr[i][keyName]] = i;\n }\n }\n\n var isSimpleValueProp = SIMPLE_PROPERTY_REGEX.test(valueName);\n\n var obj = {\n set: function(name, value) {\n var changeType = value === null ? UNSET : NONE;\n\n // create the base array if necessary\n if(!arr) {\n if(!baseProp || changeType === UNSET) return;\n\n arr = [];\n baseProp.set(arr);\n }\n\n var idx = indexLookup[name];\n if(idx === undefined) {\n if(changeType === UNSET) return;\n\n changeType = changeType | BOTH;\n idx = arr.length;\n indexLookup[name] = idx;\n } else if(value !== (isSimpleValueProp ? arr[idx][valueName] : nestedProperty(arr[idx], valueName).get())) {\n changeType = changeType | VALUE;\n }\n\n var newValue = arr[idx] = arr[idx] || {};\n newValue[keyName] = name;\n\n if(isSimpleValueProp) {\n newValue[valueName] = value;\n } else {\n nestedProperty(newValue, valueName).set(value);\n }\n\n // If it's not an unset, force that bit to be unset. This is all related to the fact\n // that undefined and null are a bit specially implemented in nestedProperties.\n if(value !== null) {\n changeType = changeType & ~UNSET;\n }\n\n changeTypes[idx] = changeTypes[idx] | changeType;\n\n return obj;\n },\n get: function(name) {\n if(!arr) return;\n\n var idx = indexLookup[name];\n\n if(idx === undefined) {\n return undefined;\n } else if(isSimpleValueProp) {\n return arr[idx][valueName];\n } else {\n return nestedProperty(arr[idx], valueName).get();\n }\n },\n rename: function(name, newName) {\n var idx = indexLookup[name];\n\n if(idx === undefined) return obj;\n changeTypes[idx] = changeTypes[idx] | NAME;\n\n indexLookup[newName] = idx;\n delete indexLookup[name];\n\n arr[idx][keyName] = newName;\n\n return obj;\n },\n remove: function(name) {\n var idx = indexLookup[name];\n\n if(idx === undefined) return obj;\n\n var object = arr[idx];\n if(Object.keys(object).length > 2) {\n // This object contains more than just the key/value, so unset\n // the value without modifying the entry otherwise:\n changeTypes[idx] = changeTypes[idx] | VALUE;\n return obj.set(name, null);\n }\n\n if(isSimpleValueProp) {\n for(i = idx; i < arr.length; i++) {\n changeTypes[i] = changeTypes[i] | BOTH;\n }\n for(i = idx; i < arr.length; i++) {\n indexLookup[arr[i][keyName]]--;\n }\n arr.splice(idx, 1);\n delete(indexLookup[name]);\n } else {\n // Perform this update *strictly* so we can check whether the result's\n // been pruned. If so, it's a removal. If not, it's a value unset only.\n nestedProperty(object, valueName).set(null);\n\n // Now check if the top level nested property has any keys left. If so,\n // the object still has values so we only want to unset the key. If not,\n // the entire object can be removed since there's no other data.\n // var topLevelKeys = Object.keys(object[valueName.split('.')[0]] || []);\n\n changeTypes[idx] = changeTypes[idx] | VALUE | UNSET;\n }\n\n return obj;\n },\n constructUpdate: function() {\n var astr, idx;\n var update = {};\n var changed = Object.keys(changeTypes);\n for(var i = 0; i < changed.length; i++) {\n idx = changed[i];\n astr = path + '[' + idx + ']';\n if(arr[idx]) {\n if(changeTypes[idx] & NAME) {\n update[astr + '.' + keyName] = arr[idx][keyName];\n }\n if(changeTypes[idx] & VALUE) {\n if(isSimpleValueProp) {\n update[astr + '.' + valueName] = (changeTypes[idx] & UNSET) ? null : arr[idx][valueName];\n } else {\n update[astr + '.' + valueName] = (changeTypes[idx] & UNSET) ? null : nestedProperty(arr[idx], valueName).get();\n }\n }\n } else {\n update[astr] = null;\n }\n }\n\n return update;\n }\n };\n\n return obj;\n};\n\n},{\"./nested_property\":523}],518:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\n\n/**\n * localize: translate a string for the current locale\n *\n * @param {object} gd: the graphDiv for context\n * gd._context.locale determines the language (& optional region/country)\n * the dictionary for each locale may either be supplied in\n * gd._context.locales or globally via Plotly.register\n * @param {string} s: the string to translate\n */\nmodule.exports = function localize(gd, s) {\n var locale = gd._context.locale;\n\n /*\n * Priority of lookup:\n * contextDicts[locale],\n * registeredDicts[locale],\n * contextDicts[baseLocale], (if baseLocale is distinct)\n * registeredDicts[baseLocale]\n * Return the first translation we find.\n * This way if you have a regionalization you are allowed to specify\n * only what's different from the base locale, everything else will\n * fall back on the base.\n */\n for(var i = 0; i < 2; i++) {\n var locales = gd._context.locales;\n for(var j = 0; j < 2; j++) {\n var dict = (locales[locale] || {}).dictionary;\n if(dict) {\n var out = dict[s];\n if(out) return out;\n }\n locales = Registry.localeRegistry;\n }\n\n var baseLocale = locale.split('-')[0];\n if(baseLocale === locale) break;\n locale = baseLocale;\n }\n\n return s;\n};\n\n},{\"../registry\":647}],519:[function(_dereq_,module,exports){\n'use strict';\n\n/* eslint-disable no-console */\n\nvar dfltConfig = _dereq_('../plot_api/plot_config').dfltConfig;\n\nvar notifier = _dereq_('./notifier');\n\nvar loggers = module.exports = {};\n\n/**\n * ------------------------------------------\n * debugging tools\n * ------------------------------------------\n */\n\nloggers.log = function() {\n var i;\n\n if(dfltConfig.logging > 1) {\n var messages = ['LOG:'];\n for(i = 0; i < arguments.length; i++) {\n messages.push(arguments[i]);\n }\n console.trace.apply(console, messages);\n }\n\n if(dfltConfig.notifyOnLogging > 1) {\n var lines = [];\n for(i = 0; i < arguments.length; i++) {\n lines.push(arguments[i]);\n }\n notifier(lines.join('
'), 'long');\n }\n};\n\nloggers.warn = function() {\n var i;\n\n if(dfltConfig.logging > 0) {\n var messages = ['WARN:'];\n for(i = 0; i < arguments.length; i++) {\n messages.push(arguments[i]);\n }\n console.trace.apply(console, messages);\n }\n\n if(dfltConfig.notifyOnLogging > 0) {\n var lines = [];\n for(i = 0; i < arguments.length; i++) {\n lines.push(arguments[i]);\n }\n notifier(lines.join('
'), 'stick');\n }\n};\n\nloggers.error = function() {\n var i;\n\n if(dfltConfig.logging > 0) {\n var messages = ['ERROR:'];\n for(i = 0; i < arguments.length; i++) {\n messages.push(arguments[i]);\n }\n console.error.apply(console, messages);\n }\n\n if(dfltConfig.notifyOnLogging > 0) {\n var lines = [];\n for(i = 0; i < arguments.length; i++) {\n lines.push(arguments[i]);\n }\n notifier(lines.join('
'), 'stick');\n }\n};\n\n},{\"../plot_api/plot_config\":553,\"./notifier\":525}],520:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\n/**\n * General helper to manage trace groups based on calcdata\n *\n * @param {d3.selection} traceLayer: a selection containing a single group\n * to draw these traces into\n * @param {array} cdModule: array of calcdata items for this\n * module and subplot combination. Assumes the calcdata item for each\n * trace is an array with the fullData trace attached to the first item.\n * @param {string} cls: the class attribute to give each trace group\n * so you can give multiple classes separated by spaces\n */\nmodule.exports = function makeTraceGroups(traceLayer, cdModule, cls) {\n var traces = traceLayer.selectAll('g.' + cls.replace(/\\s/g, '.'))\n .data(cdModule, function(cd) { return cd[0].trace.uid; });\n\n traces.exit().remove();\n\n traces.enter().append('g')\n .attr('class', cls);\n\n traces.order();\n\n // stash ref node to trace group in calcdata,\n // useful for (fast) styleOnSelect\n var k = traceLayer.classed('rangeplot') ? 'nodeRangePlot3' : 'node3';\n traces.each(function(cd) { cd[0][k] = d3.select(this); });\n\n return traces;\n};\n\n},{\"@plotly/d3\":58}],521:[function(_dereq_,module,exports){\n'use strict';\n\nvar mat4X4 = _dereq_('gl-mat4');\n\nexports.init2dArray = function(rowLength, colLength) {\n var array = new Array(rowLength);\n for(var i = 0; i < rowLength; i++) array[i] = new Array(colLength);\n return array;\n};\n\n/**\n * transpose a (possibly ragged) 2d array z. inspired by\n * http://stackoverflow.com/questions/17428587/\n * transposing-a-2d-array-in-javascript\n */\nexports.transposeRagged = function(z) {\n var maxlen = 0;\n var zlen = z.length;\n var i, j;\n // Maximum row length:\n for(i = 0; i < zlen; i++) maxlen = Math.max(maxlen, z[i].length);\n\n var t = new Array(maxlen);\n for(i = 0; i < maxlen; i++) {\n t[i] = new Array(zlen);\n for(j = 0; j < zlen; j++) t[i][j] = z[j][i];\n }\n\n return t;\n};\n\n// our own dot function so that we don't need to include numeric\nexports.dot = function(x, y) {\n if(!(x.length && y.length) || x.length !== y.length) return null;\n\n var len = x.length;\n var out;\n var i;\n\n if(x[0].length) {\n // mat-vec or mat-mat\n out = new Array(len);\n for(i = 0; i < len; i++) out[i] = exports.dot(x[i], y);\n } else if(y[0].length) {\n // vec-mat\n var yTranspose = exports.transposeRagged(y);\n out = new Array(yTranspose.length);\n for(i = 0; i < yTranspose.length; i++) out[i] = exports.dot(x, yTranspose[i]);\n } else {\n // vec-vec\n out = 0;\n for(i = 0; i < len; i++) out += x[i] * y[i];\n }\n\n return out;\n};\n\n// translate by (x,y)\nexports.translationMatrix = function(x, y) {\n return [[1, 0, x], [0, 1, y], [0, 0, 1]];\n};\n\n// rotate by alpha around (0,0)\nexports.rotationMatrix = function(alpha) {\n var a = alpha * Math.PI / 180;\n return [[Math.cos(a), -Math.sin(a), 0],\n [Math.sin(a), Math.cos(a), 0],\n [0, 0, 1]];\n};\n\n// rotate by alpha around (x,y)\nexports.rotationXYMatrix = function(a, x, y) {\n return exports.dot(\n exports.dot(exports.translationMatrix(x, y),\n exports.rotationMatrix(a)),\n exports.translationMatrix(-x, -y));\n};\n\n// applies a 3D transformation matrix to either x, y and z params\n// Note: z is optional\nexports.apply3DTransform = function(transform) {\n return function() {\n var args = arguments;\n var xyz = arguments.length === 1 ? args[0] : [args[0], args[1], args[2] || 0];\n return exports.dot(transform, [xyz[0], xyz[1], xyz[2], 1]).slice(0, 3);\n };\n};\n\n// applies a 2D transformation matrix to either x and y params or an [x,y] array\nexports.apply2DTransform = function(transform) {\n return function() {\n var args = arguments;\n if(args.length === 3) {\n args = args[0];\n } // from map\n var xy = arguments.length === 1 ? args[0] : [args[0], args[1]];\n return exports.dot(transform, [xy[0], xy[1], 1]).slice(0, 2);\n };\n};\n\n// applies a 2D transformation matrix to an [x1,y1,x2,y2] array (to transform a segment)\nexports.apply2DTransform2 = function(transform) {\n var at = exports.apply2DTransform(transform);\n return function(xys) {\n return at(xys.slice(0, 2)).concat(at(xys.slice(2, 4)));\n };\n};\n\nexports.convertCssMatrix = function(m) {\n if(m) {\n var len = m.length;\n if(len === 16) return m;\n if(len === 6) {\n // converts a 2x3 css transform matrix to a 4x4 matrix see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix\n return [\n m[0], m[1], 0, 0,\n m[2], m[3], 0, 0,\n 0, 0, 1, 0,\n m[4], m[5], 0, 1\n ];\n }\n }\n return [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1\n ];\n};\n\n// find the inverse for a 4x4 affine transform matrix\nexports.inverseTransformMatrix = function(m) {\n var out = [];\n mat4X4.invert(out, m);\n return [\n [out[0], out[1], out[2], out[3]],\n [out[4], out[5], out[6], out[7]],\n [out[8], out[9], out[10], out[11]],\n [out[12], out[13], out[14], out[15]]\n ];\n};\n\n},{\"gl-mat4\":210}],522:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * sanitized modulus function that always returns in the range [0, d)\n * rather than (-d, 0] if v is negative\n */\nfunction mod(v, d) {\n var out = v % d;\n return out < 0 ? out + d : out;\n}\n\n/**\n * sanitized modulus function that always returns in the range [-d/2, d/2]\n * rather than (-d, 0] if v is negative\n */\nfunction modHalf(v, d) {\n return Math.abs(v) > (d / 2) ?\n v - Math.round(v / d) * d :\n v;\n}\n\nmodule.exports = {\n mod: mod,\n modHalf: modHalf\n};\n\n},{}],523:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\n/**\n * convert a string s (such as 'xaxis.range[0]')\n * representing a property of nested object into set and get methods\n * also return the string and object so we don't have to keep track of them\n * allows [-1] for an array index, to set a property inside all elements\n * of an array\n * eg if obj = {arr: [{a: 1}, {a: 2}]}\n * you can do p = nestedProperty(obj, 'arr[-1].a')\n * but you cannot set the array itself this way, to do that\n * just set the whole array.\n * eg if obj = {arr: [1, 2, 3]}\n * you can't do nestedProperty(obj, 'arr[-1]').set(5)\n * but you can do nestedProperty(obj, 'arr').set([5, 5, 5])\n */\nmodule.exports = function nestedProperty(container, propStr) {\n if(isNumeric(propStr)) propStr = String(propStr);\n else if(typeof propStr !== 'string' ||\n propStr.substr(propStr.length - 4) === '[-1]') {\n throw 'bad property string';\n }\n\n var j = 0;\n var propParts = propStr.split('.');\n var indexed;\n var indices;\n var i;\n\n // check for parts of the nesting hierarchy that are numbers (ie array elements)\n while(j < propParts.length) {\n // look for non-bracket chars, then any number of [##] blocks\n indexed = String(propParts[j]).match(/^([^\\[\\]]*)((\\[\\-?[0-9]*\\])+)$/);\n if(indexed) {\n if(indexed[1]) propParts[j] = indexed[1];\n // allow propStr to start with bracketed array indices\n else if(j === 0) propParts.splice(0, 1);\n else throw 'bad property string';\n\n indices = indexed[2]\n .substr(1, indexed[2].length - 2)\n .split('][');\n\n for(i = 0; i < indices.length; i++) {\n j++;\n propParts.splice(j, 0, Number(indices[i]));\n }\n }\n j++;\n }\n\n if(typeof container !== 'object') {\n return badContainer(container, propStr, propParts);\n }\n\n return {\n set: npSet(container, propParts, propStr),\n get: npGet(container, propParts),\n astr: propStr,\n parts: propParts,\n obj: container\n };\n};\n\nfunction npGet(cont, parts) {\n return function() {\n var curCont = cont;\n var curPart;\n var allSame;\n var out;\n var i;\n var j;\n\n for(i = 0; i < parts.length - 1; i++) {\n curPart = parts[i];\n if(curPart === -1) {\n allSame = true;\n out = [];\n for(j = 0; j < curCont.length; j++) {\n out[j] = npGet(curCont[j], parts.slice(i + 1))();\n if(out[j] !== out[0]) allSame = false;\n }\n return allSame ? out[0] : out;\n }\n if(typeof curPart === 'number' && !isArrayOrTypedArray(curCont)) {\n return undefined;\n }\n curCont = curCont[curPart];\n if(typeof curCont !== 'object' || curCont === null) {\n return undefined;\n }\n }\n\n // only hit this if parts.length === 1\n if(typeof curCont !== 'object' || curCont === null) return undefined;\n\n out = curCont[parts[i]];\n if(out === null) return undefined;\n return out;\n };\n}\n\n/*\n * Can this value be deleted? We can delete `undefined`, and `null` except INSIDE an\n * *args* array.\n *\n * Previously we also deleted some `{}` and `[]`, in order to try and make set/unset\n * a net noop; but this causes far more complication than it's worth, and still had\n * lots of exceptions. See https://github.com/plotly/plotly.js/issues/1410\n *\n * *args* arrays get passed directly to API methods and we should respect null if\n * the user put it there, but otherwise null is deleted as we use it as code\n * in restyle/relayout/update for \"delete this value\" whereas undefined means\n * \"ignore this edit\"\n */\nvar ARGS_PATTERN = /(^|\\.)args\\[/;\nfunction isDeletable(val, propStr) {\n return (val === undefined) || (val === null && !propStr.match(ARGS_PATTERN));\n}\n\nfunction npSet(cont, parts, propStr) {\n return function(val) {\n var curCont = cont;\n var propPart = '';\n var containerLevels = [[cont, propPart]];\n var toDelete = isDeletable(val, propStr);\n var curPart;\n var i;\n\n for(i = 0; i < parts.length - 1; i++) {\n curPart = parts[i];\n\n if(typeof curPart === 'number' && !isArrayOrTypedArray(curCont)) {\n throw 'array index but container is not an array';\n }\n\n // handle special -1 array index\n if(curPart === -1) {\n toDelete = !setArrayAll(curCont, parts.slice(i + 1), val, propStr);\n if(toDelete) break;\n else return;\n }\n\n if(!checkNewContainer(curCont, curPart, parts[i + 1], toDelete)) {\n break;\n }\n\n curCont = curCont[curPart];\n\n if(typeof curCont !== 'object' || curCont === null) {\n throw 'container is not an object';\n }\n\n propPart = joinPropStr(propPart, curPart);\n\n containerLevels.push([curCont, propPart]);\n }\n\n if(toDelete) {\n if(i === parts.length - 1) {\n delete curCont[parts[i]];\n\n // The one bit of pruning we still do: drop `undefined` from the end of arrays.\n // In case someone has already unset previous items, continue until we hit a\n // non-undefined value.\n if(Array.isArray(curCont) && +parts[i] === curCont.length - 1) {\n while(curCont.length && curCont[curCont.length - 1] === undefined) {\n curCont.pop();\n }\n }\n }\n } else curCont[parts[i]] = val;\n };\n}\n\nfunction joinPropStr(propStr, newPart) {\n var toAdd = newPart;\n if(isNumeric(newPart)) toAdd = '[' + newPart + ']';\n else if(propStr) toAdd = '.' + newPart;\n\n return propStr + toAdd;\n}\n\n// handle special -1 array index\nfunction setArrayAll(containerArray, innerParts, val, propStr) {\n var arrayVal = isArrayOrTypedArray(val);\n var allSet = true;\n var thisVal = val;\n var thisPropStr = propStr.replace('-1', 0);\n var deleteThis = arrayVal ? false : isDeletable(val, thisPropStr);\n var firstPart = innerParts[0];\n var i;\n\n for(i = 0; i < containerArray.length; i++) {\n thisPropStr = propStr.replace('-1', i);\n if(arrayVal) {\n thisVal = val[i % val.length];\n deleteThis = isDeletable(thisVal, thisPropStr);\n }\n if(deleteThis) allSet = false;\n if(!checkNewContainer(containerArray, i, firstPart, deleteThis)) {\n continue;\n }\n npSet(containerArray[i], innerParts, propStr.replace('-1', i))(thisVal);\n }\n return allSet;\n}\n\n/**\n * make new sub-container as needed.\n * returns false if there's no container and none is needed\n * because we're only deleting an attribute\n */\nfunction checkNewContainer(container, part, nextPart, toDelete) {\n if(container[part] === undefined) {\n if(toDelete) return false;\n\n if(typeof nextPart === 'number') container[part] = [];\n else container[part] = {};\n }\n return true;\n}\n\nfunction badContainer(container, propStr, propParts) {\n return {\n set: function() { throw 'bad container'; },\n get: function() {},\n astr: propStr,\n parts: propParts,\n obj: container\n };\n}\n\n},{\"./array\":497,\"fast-isnumeric\":190}],524:[function(_dereq_,module,exports){\n'use strict';\n\n// Simple helper functions\n// none of these need any external deps\n\nmodule.exports = function noop() {};\n\n},{}],525:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar NOTEDATA = [];\n\n/**\n * notifier\n * @param {String} text The person's user name\n * @param {Number} [delay=1000] The delay time in milliseconds\n * or 'long' which provides 2000 ms delay time.\n * @return {undefined} this function does not return a value\n */\nmodule.exports = function(text, displayLength) {\n if(NOTEDATA.indexOf(text) !== -1) return;\n\n NOTEDATA.push(text);\n\n var ts = 1000;\n if(isNumeric(displayLength)) ts = displayLength;\n else if(displayLength === 'long') ts = 3000;\n\n var notifierContainer = d3.select('body')\n .selectAll('.plotly-notifier')\n .data([0]);\n notifierContainer.enter()\n .append('div')\n .classed('plotly-notifier', true);\n\n var notes = notifierContainer.selectAll('.notifier-note').data(NOTEDATA);\n\n function killNote(transition) {\n transition\n .duration(700)\n .style('opacity', 0)\n .each('end', function(thisText) {\n var thisIndex = NOTEDATA.indexOf(thisText);\n if(thisIndex !== -1) NOTEDATA.splice(thisIndex, 1);\n d3.select(this).remove();\n });\n }\n\n notes.enter().append('div')\n .classed('notifier-note', true)\n .style('opacity', 0)\n .each(function(thisText) {\n var note = d3.select(this);\n\n note.append('button')\n .classed('notifier-close', true)\n .html('×')\n .on('click', function() {\n note.transition().call(killNote);\n });\n\n var p = note.append('p');\n var lines = thisText.split(//g);\n for(var i = 0; i < lines.length; i++) {\n if(i) p.append('br');\n p.append('span').text(lines[i]);\n }\n\n if(displayLength === 'stick') {\n note.transition()\n .duration(350)\n .style('opacity', 1);\n } else {\n note.transition()\n .duration(700)\n .style('opacity', 1)\n .transition()\n .delay(ts)\n .call(killNote);\n }\n });\n};\n\n},{\"@plotly/d3\":58,\"fast-isnumeric\":190}],526:[function(_dereq_,module,exports){\n'use strict';\n\nvar setCursor = _dereq_('./setcursor');\n\nvar STASHATTR = 'data-savedcursor';\nvar NO_CURSOR = '!!';\n\n/*\n * works with our CSS cursor classes (see css/_cursor.scss)\n * to override a previous cursor set on d3 single-element selections,\n * by moving the name of the original cursor to the data-savedcursor attr.\n * omit cursor to revert to the previously set value.\n */\nmodule.exports = function overrideCursor(el3, csr) {\n var savedCursor = el3.attr(STASHATTR);\n if(csr) {\n if(!savedCursor) {\n var classes = (el3.attr('class') || '').split(' ');\n for(var i = 0; i < classes.length; i++) {\n var cls = classes[i];\n if(cls.indexOf('cursor-') === 0) {\n el3.attr(STASHATTR, cls.substr(7))\n .classed(cls, false);\n }\n }\n if(!el3.attr(STASHATTR)) {\n el3.attr(STASHATTR, NO_CURSOR);\n }\n }\n setCursor(el3, csr);\n } else if(savedCursor) {\n el3.attr(STASHATTR, null);\n\n if(savedCursor === NO_CURSOR) setCursor(el3);\n else setCursor(el3, savedCursor);\n }\n};\n\n},{\"./setcursor\":536}],527:[function(_dereq_,module,exports){\n'use strict';\n\nvar dot = _dereq_('./matrix').dot;\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nvar polygon = module.exports = {};\n\n/**\n * Turn an array of [x, y] pairs into a polygon object\n * that can test if points are inside it\n *\n * @param ptsIn Array of [x, y] pairs\n *\n * @returns polygon Object {xmin, xmax, ymin, ymax, pts, contains}\n * (x|y)(min|max) are the bounding rect of the polygon\n * pts is the original array, with the first pair repeated at the end\n * contains is a function: (pt, omitFirstEdge)\n * pt is the [x, y] pair to test\n * omitFirstEdge truthy means points exactly on the first edge don't\n * count. This is for use adding one polygon to another so we\n * don't double-count the edge where they meet.\n * returns boolean: is pt inside the polygon (including on its edges)\n */\npolygon.tester = function tester(ptsIn) {\n var pts = ptsIn.slice();\n var xmin = pts[0][0];\n var xmax = xmin;\n var ymin = pts[0][1];\n var ymax = ymin;\n var i;\n\n if(\n pts[pts.length - 1][0] !== pts[0][0] ||\n pts[pts.length - 1][1] !== pts[0][1]\n ) {\n // close the polygon\n pts.push(pts[0]);\n }\n\n for(i = 1; i < pts.length; i++) {\n xmin = Math.min(xmin, pts[i][0]);\n xmax = Math.max(xmax, pts[i][0]);\n ymin = Math.min(ymin, pts[i][1]);\n ymax = Math.max(ymax, pts[i][1]);\n }\n\n // do we have a rectangle? Handle this here, so we can use the same\n // tester for the rectangular case without sacrificing speed\n\n var isRect = false;\n var rectFirstEdgeTest;\n\n if(pts.length === 5) {\n if(pts[0][0] === pts[1][0]) { // vert, horz, vert, horz\n if(pts[2][0] === pts[3][0] &&\n pts[0][1] === pts[3][1] &&\n pts[1][1] === pts[2][1]) {\n isRect = true;\n rectFirstEdgeTest = function(pt) { return pt[0] === pts[0][0]; };\n }\n } else if(pts[0][1] === pts[1][1]) { // horz, vert, horz, vert\n if(pts[2][1] === pts[3][1] &&\n pts[0][0] === pts[3][0] &&\n pts[1][0] === pts[2][0]) {\n isRect = true;\n rectFirstEdgeTest = function(pt) { return pt[1] === pts[0][1]; };\n }\n }\n }\n\n function rectContains(pt, omitFirstEdge) {\n var x = pt[0];\n var y = pt[1];\n\n if(x === BADNUM || x < xmin || x > xmax || y === BADNUM || y < ymin || y > ymax) {\n // pt is outside the bounding box of polygon\n return false;\n }\n if(omitFirstEdge && rectFirstEdgeTest(pt)) return false;\n\n return true;\n }\n\n function contains(pt, omitFirstEdge) {\n var x = pt[0];\n var y = pt[1];\n\n if(x === BADNUM || x < xmin || x > xmax || y === BADNUM || y < ymin || y > ymax) {\n // pt is outside the bounding box of polygon\n return false;\n }\n\n var imax = pts.length;\n var x1 = pts[0][0];\n var y1 = pts[0][1];\n var crossings = 0;\n var i;\n var x0;\n var y0;\n var xmini;\n var ycross;\n\n for(i = 1; i < imax; i++) {\n // find all crossings of a vertical line upward from pt with\n // polygon segments\n // crossings exactly at xmax don't count, unless the point is\n // exactly on the segment, then it counts as inside.\n x0 = x1;\n y0 = y1;\n x1 = pts[i][0];\n y1 = pts[i][1];\n xmini = Math.min(x0, x1);\n\n if(x < xmini || x > Math.max(x0, x1) || y > Math.max(y0, y1)) {\n // outside the bounding box of this segment, it's only a crossing\n // if it's below the box.\n\n continue;\n } else if(y < Math.min(y0, y1)) {\n // don't count the left-most point of the segment as a crossing\n // because we don't want to double-count adjacent crossings\n // UNLESS the polygon turns past vertical at exactly this x\n // Note that this is repeated below, but we can't factor it out\n // because\n if(x !== xmini) crossings++;\n } else {\n // inside the bounding box, check the actual line intercept\n\n // vertical segment - we know already that the point is exactly\n // on the segment, so mark the crossing as exactly at the point.\n if(x1 === x0) ycross = y;\n // any other angle\n else ycross = y0 + (x - x0) * (y1 - y0) / (x1 - x0);\n\n // exactly on the edge: counts as inside the polygon, unless it's the\n // first edge and we're omitting it.\n if(y === ycross) {\n if(i === 1 && omitFirstEdge) return false;\n return true;\n }\n\n if(y <= ycross && x !== xmini) crossings++;\n }\n }\n\n // if we've gotten this far, odd crossings means inside, even is outside\n return crossings % 2 === 1;\n }\n\n // detect if poly is degenerate\n var degenerate = true;\n var lastPt = pts[0];\n for(i = 1; i < pts.length; i++) {\n if(lastPt[0] !== pts[i][0] || lastPt[1] !== pts[i][1]) {\n degenerate = false;\n break;\n }\n }\n\n return {\n xmin: xmin,\n xmax: xmax,\n ymin: ymin,\n ymax: ymax,\n pts: pts,\n contains: isRect ? rectContains : contains,\n isRect: isRect,\n degenerate: degenerate\n };\n};\n\n/**\n * Test if a segment of a points array is bent or straight\n *\n * @param pts Array of [x, y] pairs\n * @param start the index of the proposed start of the straight section\n * @param end the index of the proposed end point\n * @param tolerance the max distance off the line connecting start and end\n * before the line counts as bent\n * @returns boolean: true means this segment is bent, false means straight\n */\npolygon.isSegmentBent = function isSegmentBent(pts, start, end, tolerance) {\n var startPt = pts[start];\n var segment = [pts[end][0] - startPt[0], pts[end][1] - startPt[1]];\n var segmentSquared = dot(segment, segment);\n var segmentLen = Math.sqrt(segmentSquared);\n var unitPerp = [-segment[1] / segmentLen, segment[0] / segmentLen];\n var i;\n var part;\n var partParallel;\n\n for(i = start + 1; i < end; i++) {\n part = [pts[i][0] - startPt[0], pts[i][1] - startPt[1]];\n partParallel = dot(part, segment);\n\n if(partParallel < 0 || partParallel > segmentSquared ||\n Math.abs(dot(part, unitPerp)) > tolerance) return true;\n }\n return false;\n};\n\n/**\n * Make a filtering polygon, to minimize the number of segments\n *\n * @param pts Array of [x, y] pairs (must start with at least 1 pair)\n * @param tolerance the maximum deviation from straight allowed for\n * removing points to simplify the polygon\n *\n * @returns Object {addPt, raw, filtered}\n * addPt is a function(pt: [x, y] pair) to add a raw point and\n * continue filtering\n * raw is all the input points\n * filtered is the resulting filtered Array of [x, y] pairs\n */\npolygon.filter = function filter(pts, tolerance) {\n var ptsFiltered = [pts[0]];\n var doneRawIndex = 0;\n var doneFilteredIndex = 0;\n\n function addPt(pt) {\n pts.push(pt);\n var prevFilterLen = ptsFiltered.length;\n var iLast = doneRawIndex;\n ptsFiltered.splice(doneFilteredIndex + 1);\n\n for(var i = iLast + 1; i < pts.length; i++) {\n if(i === pts.length - 1 || polygon.isSegmentBent(pts, iLast, i + 1, tolerance)) {\n ptsFiltered.push(pts[i]);\n if(ptsFiltered.length < prevFilterLen - 2) {\n doneRawIndex = i;\n doneFilteredIndex = ptsFiltered.length - 1;\n }\n iLast = i;\n }\n }\n }\n\n if(pts.length > 1) {\n var lastPt = pts.pop();\n addPt(lastPt);\n }\n\n return {\n addPt: addPt,\n raw: pts,\n filtered: ptsFiltered\n };\n};\n\n},{\"../constants/numerical\":491,\"./matrix\":521}],528:[function(_dereq_,module,exports){\n(function (global){(function (){\n'use strict';\n\nvar showNoWebGlMsg = _dereq_('./show_no_webgl_msg');\n\n// Note that this module should be ONLY required into\n// files corresponding to regl trace modules\n// so that bundles with non-regl only don't include\n// regl and all its bytes.\nvar createRegl = _dereq_('regl');\n\n/**\n * Idempotent version of createRegl. Create regl instances\n * in the correct canvases with the correct attributes and\n * options\n *\n * @param {DOM node or object} gd : graph div object\n * @param {array} extensions : list of extension to pass to createRegl\n *\n * @return {boolean} true if all createRegl calls succeeded, false otherwise\n */\nmodule.exports = function prepareRegl(gd, extensions, reglPrecompiled) {\n var fullLayout = gd._fullLayout;\n var success = true;\n\n fullLayout._glcanvas.each(function(d) {\n if(d.regl) {\n d.regl.preloadCachedCode(reglPrecompiled);\n return;\n }\n // only parcoords needs pick layer\n if(d.pick && !fullLayout._has('parcoords')) return;\n\n try {\n d.regl = createRegl({\n canvas: this,\n attributes: {\n antialias: !d.pick,\n preserveDrawingBuffer: true\n },\n pixelRatio: gd._context.plotGlPixelRatio || global.devicePixelRatio,\n extensions: extensions || [],\n cachedCode: reglPrecompiled || {}\n });\n } catch(e) {\n success = false;\n }\n\n if(!d.regl) success = false;\n\n if(success) {\n this.addEventListener('webglcontextlost', function(event) {\n if(gd && gd.emit) {\n gd.emit('plotly_webglcontextlost', {\n event: event,\n layer: d.key\n });\n }\n }, false);\n }\n });\n\n if(!success) {\n showNoWebGlMsg({container: fullLayout._glcontainer.node()});\n }\n return success;\n};\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./show_no_webgl_msg\":537,\"regl\":284}],529:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isMobileOrTablet = _dereq_('is-mobile');\n\nmodule.exports = function preserveDrawingBuffer(opts) {\n var ua;\n\n if(opts && opts.hasOwnProperty('userAgent')) {\n ua = opts.userAgent;\n } else {\n ua = getUserAgent();\n }\n\n if(typeof ua !== 'string') return true;\n\n var enable = isMobileOrTablet({\n ua: { headers: {'user-agent': ua }},\n tablet: true,\n featureDetect: false\n });\n\n if(!enable) {\n var allParts = ua.split(' ');\n for(var i = 1; i < allParts.length; i++) {\n var part = allParts[i];\n if(part.indexOf('Safari') !== -1) {\n // find Safari version\n for(var k = i - 1; k > -1; k--) {\n var prevPart = allParts[k];\n if(prevPart.substr(0, 8) === 'Version/') {\n var v = prevPart.substr(8).split('.')[0];\n if(isNumeric(v)) v = +v;\n if(v >= 13) return true;\n }\n }\n }\n }\n }\n\n return enable;\n};\n\nfunction getUserAgent() {\n // similar to https://github.com/juliangruber/is-mobile/blob/91ca39ccdd4cfc5edfb5391e2515b923a730fbea/index.js#L14-L17\n var ua;\n if(typeof navigator !== 'undefined') {\n ua = navigator.userAgent;\n }\n\n if(\n ua &&\n ua.headers &&\n typeof ua.headers['user-agent'] === 'string'\n ) {\n ua = ua.headers['user-agent'];\n }\n\n return ua;\n}\n\n},{\"fast-isnumeric\":190,\"is-mobile\":234}],530:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Push array with unique items\n *\n * Ignores falsy items, except 0 so we can use it to construct arrays of indices.\n *\n * @param {array} array\n * array to be filled\n * @param {any} item\n * item to be or not to be inserted\n * @return {array}\n * ref to array (now possibly containing one more item)\n *\n */\nmodule.exports = function pushUnique(array, item) {\n if(item instanceof RegExp) {\n var itemStr = item.toString();\n for(var i = 0; i < array.length; i++) {\n if(array[i] instanceof RegExp && array[i].toString() === itemStr) {\n return array;\n }\n }\n array.push(item);\n } else if((item || item === 0) && array.indexOf(item) === -1) array.push(item);\n\n return array;\n};\n\n},{}],531:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar dfltConfig = _dereq_('../plot_api/plot_config').dfltConfig;\n\n/**\n * Copy arg array *without* removing `undefined` values from objects.\n *\n * @param gd\n * @param args\n * @returns {Array}\n */\nfunction copyArgArray(gd, args) {\n var copy = [];\n var arg;\n\n for(var i = 0; i < args.length; i++) {\n arg = args[i];\n\n if(arg === gd) copy[i] = arg;\n else if(typeof arg === 'object') {\n copy[i] = Array.isArray(arg) ?\n Lib.extendDeep([], arg) :\n Lib.extendDeepAll({}, arg);\n } else copy[i] = arg;\n }\n\n return copy;\n}\n\n\n// -----------------------------------------------------\n// Undo/Redo queue for plots\n// -----------------------------------------------------\n\n\nvar queue = {};\n\n// TODO: disable/enable undo and redo buttons appropriately\n\n/**\n * Add an item to the undoQueue for a graphDiv\n *\n * @param gd\n * @param undoFunc Function undo this operation\n * @param undoArgs Args to supply undoFunc with\n * @param redoFunc Function to redo this operation\n * @param redoArgs Args to supply redoFunc with\n */\nqueue.add = function(gd, undoFunc, undoArgs, redoFunc, redoArgs) {\n var queueObj,\n queueIndex;\n\n // make sure we have the queue and our position in it\n gd.undoQueue = gd.undoQueue || {index: 0, queue: [], sequence: false};\n queueIndex = gd.undoQueue.index;\n\n // if we're already playing an undo or redo, or if this is an auto operation\n // (like pane resize... any others?) then we don't save this to the undo queue\n if(gd.autoplay) {\n if(!gd.undoQueue.inSequence) gd.autoplay = false;\n return;\n }\n\n // if we're not in a sequence or are just starting, we need a new queue item\n if(!gd.undoQueue.sequence || gd.undoQueue.beginSequence) {\n queueObj = {undo: {calls: [], args: []}, redo: {calls: [], args: []}};\n gd.undoQueue.queue.splice(queueIndex, gd.undoQueue.queue.length - queueIndex, queueObj);\n gd.undoQueue.index += 1;\n } else {\n queueObj = gd.undoQueue.queue[queueIndex - 1];\n }\n gd.undoQueue.beginSequence = false;\n\n // we unshift to handle calls for undo in a forward for loop later\n if(queueObj) {\n queueObj.undo.calls.unshift(undoFunc);\n queueObj.undo.args.unshift(undoArgs);\n queueObj.redo.calls.push(redoFunc);\n queueObj.redo.args.push(redoArgs);\n }\n\n if(gd.undoQueue.queue.length > dfltConfig.queueLength) {\n gd.undoQueue.queue.shift();\n gd.undoQueue.index--;\n }\n};\n\n/**\n * Begin a sequence of undoQueue changes\n *\n * @param gd\n */\nqueue.startSequence = function(gd) {\n gd.undoQueue = gd.undoQueue || {index: 0, queue: [], sequence: false};\n gd.undoQueue.sequence = true;\n gd.undoQueue.beginSequence = true;\n};\n\n/**\n * Stop a sequence of undoQueue changes\n *\n * Call this *after* you're sure your undo chain has ended\n *\n * @param gd\n */\nqueue.stopSequence = function(gd) {\n gd.undoQueue = gd.undoQueue || {index: 0, queue: [], sequence: false};\n gd.undoQueue.sequence = false;\n gd.undoQueue.beginSequence = false;\n};\n\n/**\n * Move one step back in the undo queue, and undo the object there.\n *\n * @param gd\n */\nqueue.undo = function undo(gd) {\n var queueObj, i;\n\n if(gd.undoQueue === undefined ||\n isNaN(gd.undoQueue.index) ||\n gd.undoQueue.index <= 0) {\n return;\n }\n\n // index is pointing to next *forward* queueObj, point to the one we're undoing\n gd.undoQueue.index--;\n\n // get the queueObj for instructions on how to undo\n queueObj = gd.undoQueue.queue[gd.undoQueue.index];\n\n // this sequence keeps things from adding to the queue during undo/redo\n gd.undoQueue.inSequence = true;\n for(i = 0; i < queueObj.undo.calls.length; i++) {\n queue.plotDo(gd, queueObj.undo.calls[i], queueObj.undo.args[i]);\n }\n gd.undoQueue.inSequence = false;\n gd.autoplay = false;\n};\n\n/**\n * Redo the current object in the undo, then move forward in the queue.\n *\n * @param gd\n */\nqueue.redo = function redo(gd) {\n var queueObj, i;\n\n if(gd.undoQueue === undefined ||\n isNaN(gd.undoQueue.index) ||\n gd.undoQueue.index >= gd.undoQueue.queue.length) {\n return;\n }\n\n // get the queueObj for instructions on how to undo\n queueObj = gd.undoQueue.queue[gd.undoQueue.index];\n\n // this sequence keeps things from adding to the queue during undo/redo\n gd.undoQueue.inSequence = true;\n for(i = 0; i < queueObj.redo.calls.length; i++) {\n queue.plotDo(gd, queueObj.redo.calls[i], queueObj.redo.args[i]);\n }\n gd.undoQueue.inSequence = false;\n gd.autoplay = false;\n\n // index is pointing to the thing we just redid, move it\n gd.undoQueue.index++;\n};\n\n/**\n * Called by undo/redo to make the actual changes.\n *\n * Not meant to be called publically, but included for mocking out in tests.\n *\n * @param gd\n * @param func\n * @param args\n */\nqueue.plotDo = function(gd, func, args) {\n gd.autoplay = true;\n\n // this *won't* copy gd and it preserves `undefined` properties!\n args = copyArgArray(gd, args);\n\n // call the supplied function\n func.apply(null, args);\n};\n\nmodule.exports = queue;\n\n},{\"../lib\":515,\"../plot_api/plot_config\":553}],532:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * make a regex for matching counter ids/names ie xaxis, xaxis2, xaxis10...\n *\n * @param {string} head: the head of the pattern, eg 'x' matches 'x', 'x2', 'x10' etc.\n * 'xy' is a special case for cartesian subplots: it matches 'x2y3' etc\n * @param {Optional(string)} tail: a fixed piece after the id\n * eg counterRegex('scene', '.annotations') for scene2.annotations etc.\n * @param {boolean} openEnded: if true, the string may continue past the match.\n * @param {boolean} matchBeginning: if false, the string may start before the match.\n */\nexports.counter = function(head, tail, openEnded, matchBeginning) {\n var fullTail = (tail || '') + (openEnded ? '' : '$');\n var startWithPrefix = matchBeginning === false ? '' : '^';\n if(head === 'xy') {\n return new RegExp(startWithPrefix + 'x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?' + fullTail);\n }\n return new RegExp(startWithPrefix + head + '([2-9]|[1-9][0-9]+)?' + fullTail);\n};\n\n},{}],533:[function(_dereq_,module,exports){\n'use strict';\n\n// ASCEND: chop off the last nesting level - either [] or . - to ascend\n// the attribute tree. the remaining attrString is in match[1]\nvar ASCEND = /^(.*)(\\.[^\\.\\[\\]]+|\\[\\d\\])$/;\n\n// SIMPLEATTR: is this an un-nested attribute? (no dots or brackets)\nvar SIMPLEATTR = /^[^\\.\\[\\]]+$/;\n\n/*\n * calculate a relative attribute string, similar to a relative path\n *\n * @param {string} baseAttr:\n * an attribute string, such as 'annotations[3].x'. The \"current location\"\n * is the attribute string minus the last component ('annotations[3]')\n * @param {string} relativeAttr:\n * a route to the desired attribute string, using '^' to ascend\n *\n * @return {string} attrString:\n * for example:\n * relativeAttr('annotations[3].x', 'y') = 'annotations[3].y'\n * relativeAttr('annotations[3].x', '^[2].z') = 'annotations[2].z'\n * relativeAttr('annotations[3].x', '^^margin') = 'margin'\n * relativeAttr('annotations[3].x', '^^margin.r') = 'margin.r'\n */\nmodule.exports = function(baseAttr, relativeAttr) {\n while(relativeAttr) {\n var match = baseAttr.match(ASCEND);\n\n if(match) baseAttr = match[1];\n else if(baseAttr.match(SIMPLEATTR)) baseAttr = '';\n else throw new Error('bad relativeAttr call:' + [baseAttr, relativeAttr]);\n\n if(relativeAttr.charAt(0) === '^') relativeAttr = relativeAttr.slice(1);\n else break;\n }\n\n if(baseAttr && relativeAttr.charAt(0) !== '[') {\n return baseAttr + '.' + relativeAttr;\n }\n return baseAttr + relativeAttr;\n};\n\n},{}],534:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\nvar isPlainObject = _dereq_('./is_plain_object');\n\n/**\n * Relink private _keys and keys with a function value from one container\n * to the new container.\n * Relink means copying if object is pass-by-value and adding a reference\n * if object is pass-by-ref.\n * This prevents deepCopying massive structures like a webgl context.\n */\nmodule.exports = function relinkPrivateKeys(toContainer, fromContainer) {\n for(var k in fromContainer) {\n var fromVal = fromContainer[k];\n var toVal = toContainer[k];\n\n if(toVal === fromVal) continue;\n\n if(k.charAt(0) === '_' || typeof fromVal === 'function') {\n // if it already exists at this point, it's something\n // that we recreate each time around, so ignore it\n if(k in toContainer) continue;\n\n toContainer[k] = fromVal;\n } else if(isArrayOrTypedArray(fromVal) && isArrayOrTypedArray(toVal) && isPlainObject(fromVal[0])) {\n // filter out data_array items that can contain user objects\n // most of the time the toVal === fromVal check will catch these early\n // but if the user makes new ones we also don't want to recurse in.\n if(k === 'customdata' || k === 'ids') continue;\n\n // recurse into arrays containers\n var minLen = Math.min(fromVal.length, toVal.length);\n for(var j = 0; j < minLen; j++) {\n if((toVal[j] !== fromVal[j]) && isPlainObject(fromVal[j]) && isPlainObject(toVal[j])) {\n relinkPrivateKeys(toVal[j], fromVal[j]);\n }\n }\n } else if(isPlainObject(fromVal) && isPlainObject(toVal)) {\n // recurse into objects, but only if they still exist\n relinkPrivateKeys(toVal, fromVal);\n\n if(!Object.keys(toVal).length) delete toContainer[k];\n }\n }\n};\n\n},{\"./array\":497,\"./is_plain_object\":516}],535:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar loggers = _dereq_('./loggers');\nvar identity = _dereq_('./identity');\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\n// don't trust floating point equality - fraction of bin size to call\n// \"on the line\" and ensure that they go the right way specified by\n// linelow\nvar roundingError = 1e-9;\n\n\n/**\n * findBin - find the bin for val - note that it can return outside the\n * bin range any pos. or neg. integer for linear bins, or -1 or\n * bins.length-1 for explicit.\n * bins is either an object {start,size,end} or an array length #bins+1\n * bins can be either increasing or decreasing but must be monotonic\n * for linear bins, we can just calculate. For listed bins, run a binary\n * search linelow (truthy) says the bin boundary should be attributed to\n * the lower bin rather than the default upper bin\n */\nexports.findBin = function(val, bins, linelow) {\n if(isNumeric(bins.start)) {\n return linelow ?\n Math.ceil((val - bins.start) / bins.size - roundingError) - 1 :\n Math.floor((val - bins.start) / bins.size + roundingError);\n } else {\n var n1 = 0;\n var n2 = bins.length;\n var c = 0;\n var binSize = (n2 > 1) ? (bins[n2 - 1] - bins[0]) / (n2 - 1) : 1;\n var n, test;\n if(binSize >= 0) {\n test = linelow ? lessThan : lessOrEqual;\n } else {\n test = linelow ? greaterOrEqual : greaterThan;\n }\n val += binSize * roundingError * (linelow ? -1 : 1) * (binSize >= 0 ? 1 : -1);\n // c is just to avoid infinite loops if there's an error\n while(n1 < n2 && c++ < 100) {\n n = Math.floor((n1 + n2) / 2);\n if(test(bins[n], val)) n1 = n + 1;\n else n2 = n;\n }\n if(c > 90) loggers.log('Long binary search...');\n return n1 - 1;\n }\n};\n\nfunction lessThan(a, b) { return a < b; }\nfunction lessOrEqual(a, b) { return a <= b; }\nfunction greaterThan(a, b) { return a > b; }\nfunction greaterOrEqual(a, b) { return a >= b; }\n\nexports.sorterAsc = function(a, b) { return a - b; };\nexports.sorterDes = function(a, b) { return b - a; };\n\n/**\n * find distinct values in an array, lumping together ones that appear to\n * just be off by a rounding error\n * return the distinct values and the minimum difference between any two\n */\nexports.distinctVals = function(valsIn) {\n var vals = valsIn.slice(); // otherwise we sort the original array...\n vals.sort(exports.sorterAsc); // undefined listed in the end - also works on IE11\n\n var last;\n for(last = vals.length - 1; last > -1; last--) {\n if(vals[last] !== BADNUM) break;\n }\n\n var minDiff = (vals[last] - vals[0]) || 1;\n var errDiff = minDiff / (last || 1) / 10000;\n var newVals = [];\n var preV;\n for(var i = 0; i <= last; i++) {\n var v = vals[i];\n\n // make sure values aren't just off by a rounding error\n var diff = v - preV;\n\n if(preV === undefined) {\n newVals.push(v);\n preV = v;\n } else if(diff > errDiff) {\n minDiff = Math.min(minDiff, diff);\n\n newVals.push(v);\n preV = v;\n }\n }\n\n return {vals: newVals, minDiff: minDiff};\n};\n\n/**\n * return the smallest element from (sorted) array arrayIn that's bigger than val,\n * or (reverse) the largest element smaller than val\n * used to find the best tick given the minimum (non-rounded) tick\n * particularly useful for date/time where things are not powers of 10\n * binary search is probably overkill here...\n */\nexports.roundUp = function(val, arrayIn, reverse) {\n var low = 0;\n var high = arrayIn.length - 1;\n var mid;\n var c = 0;\n var dlow = reverse ? 0 : 1;\n var dhigh = reverse ? 1 : 0;\n var rounded = reverse ? Math.ceil : Math.floor;\n // c is just to avoid infinite loops if there's an error\n while(low < high && c++ < 100) {\n mid = rounded((low + high) / 2);\n if(arrayIn[mid] <= val) low = mid + dlow;\n else high = mid - dhigh;\n }\n return arrayIn[low];\n};\n\n/**\n * Tweak to Array.sort(sortFn) that improves performance for pre-sorted arrays\n *\n * Note that newer browsers (such as Chrome v70+) are starting to pick up\n * on pre-sorted arrays which may render the following optimization unnecessary\n * in the future.\n *\n * Motivation: sometimes we need to sort arrays but the input is likely to\n * already be sorted. Browsers don't seem to pick up on pre-sorted arrays,\n * and in fact Chrome is actually *slower* sorting pre-sorted arrays than purely\n * random arrays. FF is at least faster if the array is pre-sorted, but still\n * not as fast as it could be.\n * Here's how this plays out sorting a length-1e6 array:\n *\n * Calls to Sort FN | Chrome bare | FF bare | Chrome tweak | FF tweak\n * | v68.0 Mac | v61.0 Mac| |\n * ------------------+---------------+-----------+----------------+------------\n * ordered | 30.4e6 | 10.1e6 | 1e6 | 1e6\n * reversed | 29.4e6 | 9.9e6 | 1e6 + reverse | 1e6 + reverse\n * random | ~21e6 | ~18.7e6 | ~21e6 | ~18.7e6\n *\n * So this is a substantial win for pre-sorted (ordered or exactly reversed)\n * arrays. Including this wrapper on an unsorted array adds a penalty that will\n * in general be only a few calls to the sort function. The only case this\n * penalty will be significant is if the array is mostly sorted but there are\n * a few unsorted items near the end, but the penalty is still at most N calls\n * out of (for N=1e6) ~20N total calls\n *\n * @param {Array} array: the array, to be sorted in place\n * @param {function} sortFn: As in Array.sort, function(a, b) that puts\n * item a before item b if the return is negative, a after b if positive,\n * and no change if zero.\n * @return {Array}: the original array, sorted in place.\n */\nexports.sort = function(array, sortFn) {\n var notOrdered = 0;\n var notReversed = 0;\n for(var i = 1; i < array.length; i++) {\n var pairOrder = sortFn(array[i], array[i - 1]);\n if(pairOrder < 0) notOrdered = 1;\n else if(pairOrder > 0) notReversed = 1;\n if(notOrdered && notReversed) return array.sort(sortFn);\n }\n return notReversed ? array : array.reverse();\n};\n\n/**\n * find index in array 'arr' that minimizes 'fn'\n *\n * @param {array} arr : array where to search\n * @param {fn (optional)} fn : function to minimize,\n * if not given, fn is the identity function\n * @return {integer}\n */\nexports.findIndexOfMin = function(arr, fn) {\n fn = fn || identity;\n\n var min = Infinity;\n var ind;\n\n for(var i = 0; i < arr.length; i++) {\n var v = fn(arr[i]);\n if(v < min) {\n min = v;\n ind = i;\n }\n }\n return ind;\n};\n\n},{\"../constants/numerical\":491,\"./identity\":513,\"./loggers\":519,\"fast-isnumeric\":190}],536:[function(_dereq_,module,exports){\n'use strict';\n\n// works with our CSS cursor classes (see css/_cursor.scss)\n// to apply cursors to d3 single-element selections.\n// omit cursor to revert to the default.\nmodule.exports = function setCursor(el3, csr) {\n (el3.attr('class') || '').split(' ').forEach(function(cls) {\n if(cls.indexOf('cursor-') === 0) el3.classed(cls, false);\n });\n\n if(csr) el3.classed('cursor-' + csr, true);\n};\n\n},{}],537:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../components/color');\n\nvar noop = function() {};\n\n\n/**\n * Prints a no webgl error message into the scene container\n * @param {scene instance} scene\n *\n * Expects 'scene' to have property 'container'\n *\n */\nmodule.exports = function showNoWebGlMsg(scene) {\n for(var prop in scene) {\n if(typeof scene[prop] === 'function') scene[prop] = noop;\n }\n\n scene.destroy = function() {\n scene.container.parentNode.removeChild(scene.container);\n };\n\n var div = document.createElement('div');\n div.className = 'no-webgl';\n div.style.cursor = 'pointer';\n div.style.fontSize = '24px';\n div.style.color = Color.defaults[0];\n div.style.position = 'absolute';\n div.style.left = div.style.top = '0px';\n div.style.width = div.style.height = '100%';\n div.style['background-color'] = Color.lightLine;\n div.style['z-index'] = 30;\n\n var p = document.createElement('p');\n p.textContent = 'WebGL is not supported by your browser - visit https://get.webgl.org for more info';\n p.style.position = 'relative';\n p.style.top = '50%';\n p.style.left = '50%';\n p.style.height = '30%';\n p.style.width = '50%';\n p.style.margin = '-15% 0 0 -25%';\n\n div.appendChild(p);\n scene.container.appendChild(div);\n scene.container.style.background = '#FFFFFF';\n scene.container.onclick = function() {\n window.open('https://get.webgl.org');\n };\n\n // return before setting up camera and onrender methods\n return false;\n};\n\n},{\"../components/color\":367}],538:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function sortObjectKeys(obj) {\n return Object.keys(obj).sort();\n};\n\n},{}],539:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isArrayOrTypedArray = _dereq_('./array').isArrayOrTypedArray;\n\n/**\n * aggNums() returns the result of an aggregate function applied to an array of\n * values, where non-numerical values have been tossed out.\n *\n * @param {function} f - aggregation function (e.g., Math.min)\n * @param {Number} v - initial value (continuing from previous calls)\n * if there's no continuing value, use null for selector-type\n * functions (max,min), or 0 for summations\n * @param {Array} a - array to aggregate (may be nested, we will recurse,\n * but all elements must have the same dimension)\n * @param {Number} len - maximum length of a to aggregate\n * @return {Number} - result of f applied to a starting from v\n */\nexports.aggNums = function(f, v, a, len) {\n var i,\n b;\n if(!len || len > a.length) len = a.length;\n if(!isNumeric(v)) v = false;\n if(isArrayOrTypedArray(a[0])) {\n b = new Array(len);\n for(i = 0; i < len; i++) b[i] = exports.aggNums(f, v, a[i]);\n a = b;\n }\n\n for(i = 0; i < len; i++) {\n if(!isNumeric(v)) v = a[i];\n else if(isNumeric(a[i])) v = f(+v, +a[i]);\n }\n return v;\n};\n\n/**\n * mean & std dev functions using aggNums, so it handles non-numerics nicely\n * even need to use aggNums instead of .length, to toss out non-numerics\n */\nexports.len = function(data) {\n return exports.aggNums(function(a) { return a + 1; }, 0, data);\n};\n\nexports.mean = function(data, len) {\n if(!len) len = exports.len(data);\n return exports.aggNums(function(a, b) { return a + b; }, 0, data) / len;\n};\n\nexports.midRange = function(numArr) {\n if(numArr === undefined || numArr.length === 0) return undefined;\n return (exports.aggNums(Math.max, null, numArr) + exports.aggNums(Math.min, null, numArr)) / 2;\n};\n\nexports.variance = function(data, len, mean) {\n if(!len) len = exports.len(data);\n if(!isNumeric(mean)) mean = exports.mean(data, len);\n\n return exports.aggNums(function(a, b) {\n return a + Math.pow(b - mean, 2);\n }, 0, data) / len;\n};\n\nexports.stdev = function(data, len, mean) {\n return Math.sqrt(exports.variance(data, len, mean));\n};\n\n/**\n * median of a finite set of numbers\n * reference page: https://en.wikipedia.org/wiki/Median#Finite_set_of_numbers\n**/\nexports.median = function(data) {\n var b = data.slice().sort();\n return exports.interp(b, 0.5);\n};\n\n/**\n * interp() computes a percentile (quantile) for a given distribution.\n * We interpolate the distribution (to compute quantiles, we follow method #10 here:\n * http://jse.amstat.org/v14n3/langford.html).\n * Typically the index or rank (n * arr.length) may be non-integer.\n * For reference: ends are clipped to the extreme values in the array;\n * For box plots: index you get is half a point too high (see\n * http://en.wikipedia.org/wiki/Percentile#Nearest_rank) but note that this definition\n * indexes from 1 rather than 0, so we subtract 1/2 (instead of add).\n *\n * @param {Array} arr - This array contains the values that make up the distribution.\n * @param {Number} n - Between 0 and 1, n = p/100 is such that we compute the p^th percentile.\n * For example, the 50th percentile (or median) corresponds to n = 0.5\n * @return {Number} - percentile\n */\nexports.interp = function(arr, n) {\n if(!isNumeric(n)) throw 'n should be a finite number';\n n = n * arr.length - 0.5;\n if(n < 0) return arr[0];\n if(n > arr.length - 1) return arr[arr.length - 1];\n var frac = n % 1;\n return frac * arr[Math.ceil(n)] + (1 - frac) * arr[Math.floor(n)];\n};\n\n},{\"./array\":497,\"fast-isnumeric\":190}],540:[function(_dereq_,module,exports){\n'use strict';\n\nvar rgba = _dereq_('color-normalize');\n\nfunction str2RgbaArray(color) {\n if(!color) return [0, 0, 0, 1];\n return rgba(color);\n}\n\nmodule.exports = str2RgbaArray;\n\n},{\"color-normalize\":89}],541:[function(_dereq_,module,exports){\n'use strict';\n\n/* global MathJax:false */\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../lib');\nvar strTranslate = Lib.strTranslate;\nvar xmlnsNamespaces = _dereq_('../constants/xmlns_namespaces');\nvar LINE_SPACING = _dereq_('../constants/alignment').LINE_SPACING;\n\n// text converter\n\nvar FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/;\n\nexports.convertToTspans = function(_context, gd, _callback) {\n var str = _context.text();\n\n // Until we get tex integrated more fully (so it can be used along with non-tex)\n // allow some elements to prohibit it by attaching 'data-notex' to the original\n var tex = (!_context.attr('data-notex')) &&\n gd && gd._context.typesetMath &&\n (typeof MathJax !== 'undefined') &&\n str.match(FIND_TEX);\n\n var parent = d3.select(_context.node().parentNode);\n if(parent.empty()) return;\n var svgClass = (_context.attr('class')) ? _context.attr('class').split(' ')[0] : 'text';\n svgClass += '-math';\n parent.selectAll('svg.' + svgClass).remove();\n parent.selectAll('g.' + svgClass + '-group').remove();\n _context.style('display', null)\n .attr({\n // some callers use data-unformatted *from the element* in 'cancel'\n // so we need it here even if we're going to turn it into math\n // these two (plus style and text-anchor attributes) form the key we're\n // going to use for Drawing.bBox\n 'data-unformatted': str,\n 'data-math': 'N'\n });\n\n function showText() {\n if(!parent.empty()) {\n svgClass = _context.attr('class') + '-math';\n parent.select('svg.' + svgClass).remove();\n }\n _context.text('')\n .style('white-space', 'pre');\n\n var hasLink = buildSVGText(_context.node(), str);\n\n if(hasLink) {\n // at least in Chrome, pointer-events does not seem\n // to be honored in children of elements\n // so if we have an anchor, we have to make the\n // whole element respond\n _context.style('pointer-events', 'all');\n }\n\n exports.positionText(_context);\n\n if(_callback) _callback.call(_context);\n }\n\n if(tex) {\n ((gd && gd._promises) || []).push(new Promise(function(resolve) {\n _context.style('display', 'none');\n var fontSize = parseInt(_context.node().style.fontSize, 10);\n var config = {fontSize: fontSize};\n\n texToSVG(tex[2], config, function(_svgEl, _glyphDefs, _svgBBox) {\n parent.selectAll('svg.' + svgClass).remove();\n parent.selectAll('g.' + svgClass + '-group').remove();\n\n var newSvg = _svgEl && _svgEl.select('svg');\n if(!newSvg || !newSvg.node()) {\n showText();\n resolve();\n return;\n }\n\n var mathjaxGroup = parent.append('g')\n .classed(svgClass + '-group', true)\n .attr({\n 'pointer-events': 'none',\n 'data-unformatted': str,\n 'data-math': 'Y'\n });\n\n mathjaxGroup.node().appendChild(newSvg.node());\n\n // stitch the glyph defs\n if(_glyphDefs && _glyphDefs.node()) {\n newSvg.node().insertBefore(_glyphDefs.node().cloneNode(true),\n newSvg.node().firstChild);\n }\n\n var w0 = _svgBBox.width;\n var h0 = _svgBBox.height;\n\n newSvg.attr({\n 'class': svgClass,\n height: h0,\n preserveAspectRatio: 'xMinYMin meet'\n })\n .style({overflow: 'visible', 'pointer-events': 'none'});\n\n var fill = _context.node().style.fill || 'black';\n var g = newSvg.select('g');\n g.attr({fill: fill, stroke: fill});\n\n var bb = g.node().getBoundingClientRect();\n var w = bb.width;\n var h = bb.height;\n\n if(w > w0 || h > h0) {\n // this happen in firefox v82+ | see https://bugzilla.mozilla.org/show_bug.cgi?id=1709251 addressed\n // temporary fix:\n newSvg.style('overflow', 'hidden');\n bb = newSvg.node().getBoundingClientRect();\n w = bb.width;\n h = bb.height;\n }\n\n var x = +_context.attr('x');\n var y = +_context.attr('y');\n\n // font baseline is about 1/4 fontSize below centerline\n var textHeight = fontSize || _context.node().getBoundingClientRect().height;\n var dy = -textHeight / 4;\n\n if(svgClass[0] === 'y') {\n mathjaxGroup.attr({\n transform: 'rotate(' + [-90, x, y] +\n ')' + strTranslate(-w / 2, dy - h / 2)\n });\n } else if(svgClass[0] === 'l') {\n y = dy - h / 2;\n } else if(svgClass[0] === 'a' && svgClass.indexOf('atitle') !== 0) {\n x = 0;\n y = dy;\n } else {\n var anchor = _context.attr('text-anchor');\n\n x = x - w * (\n anchor === 'middle' ? 0.5 :\n anchor === 'end' ? 1 : 0\n );\n y = y + dy - h / 2;\n }\n\n newSvg.attr({\n x: x,\n y: y\n });\n\n if(_callback) _callback.call(_context, mathjaxGroup);\n resolve(mathjaxGroup);\n });\n }));\n } else showText();\n\n return _context;\n};\n\n\n// MathJax\n\nvar LT_MATCH = /(<|<|<)/g;\nvar GT_MATCH = /(>|>|>)/g;\n\nfunction cleanEscapesForTex(s) {\n return s.replace(LT_MATCH, '\\\\lt ')\n .replace(GT_MATCH, '\\\\gt ');\n}\n\nvar inlineMath = [['$', '$'], ['\\\\(', '\\\\)']];\n\nfunction texToSVG(_texString, _config, _callback) {\n var MathJaxVersion = parseInt(\n (MathJax.version || '').split('.')[0]\n );\n\n if(\n MathJaxVersion !== 2 &&\n MathJaxVersion !== 3\n ) {\n Lib.warn('No MathJax version:', MathJax.version);\n return;\n }\n\n var originalRenderer,\n originalConfig,\n originalProcessSectionDelay,\n tmpDiv;\n\n var setConfig2 = function() {\n originalConfig = Lib.extendDeepAll({}, MathJax.Hub.config);\n\n originalProcessSectionDelay = MathJax.Hub.processSectionDelay;\n if(MathJax.Hub.processSectionDelay !== undefined) {\n // MathJax 2.5+ but not 3+\n MathJax.Hub.processSectionDelay = 0;\n }\n\n return MathJax.Hub.Config({\n messageStyle: 'none',\n tex2jax: {\n inlineMath: inlineMath\n },\n displayAlign: 'left',\n });\n };\n\n var setConfig3 = function() {\n originalConfig = Lib.extendDeepAll({}, MathJax.config);\n\n if(!MathJax.config.tex) {\n MathJax.config.tex = {};\n }\n\n MathJax.config.tex.inlineMath = inlineMath;\n };\n\n var setRenderer2 = function() {\n originalRenderer = MathJax.Hub.config.menuSettings.renderer;\n if(originalRenderer !== 'SVG') {\n return MathJax.Hub.setRenderer('SVG');\n }\n };\n\n var setRenderer3 = function() {\n originalRenderer = MathJax.config.startup.output;\n if(originalRenderer !== 'svg') {\n MathJax.config.startup.output = 'svg';\n }\n };\n\n var initiateMathJax = function() {\n var randomID = 'math-output-' + Lib.randstr({}, 64);\n tmpDiv = d3.select('body').append('div')\n .attr({id: randomID})\n .style({\n visibility: 'hidden',\n position: 'absolute',\n 'font-size': _config.fontSize + 'px'\n })\n .text(cleanEscapesForTex(_texString));\n\n var tmpNode = tmpDiv.node();\n\n return MathJaxVersion === 2 ?\n MathJax.Hub.Typeset(tmpNode) :\n MathJax.typeset([tmpNode]);\n };\n\n var finalizeMathJax = function() {\n var sel = tmpDiv.select(\n MathJaxVersion === 2 ? '.MathJax_SVG' : '.MathJax'\n );\n\n var node = !sel.empty() && tmpDiv.select('svg').node();\n if(!node) {\n Lib.log('There was an error in the tex syntax.', _texString);\n _callback();\n } else {\n var nodeBBox = node.getBoundingClientRect();\n var glyphDefs;\n if(MathJaxVersion === 2) {\n glyphDefs = d3.select('body').select('#MathJax_SVG_glyphs');\n } else {\n glyphDefs = sel.select('defs');\n }\n _callback(sel, glyphDefs, nodeBBox);\n }\n\n tmpDiv.remove();\n };\n\n var resetRenderer2 = function() {\n if(originalRenderer !== 'SVG') {\n return MathJax.Hub.setRenderer(originalRenderer);\n }\n };\n\n var resetRenderer3 = function() {\n if(originalRenderer !== 'svg') {\n MathJax.config.startup.output = originalRenderer;\n }\n };\n\n var resetConfig2 = function() {\n if(originalProcessSectionDelay !== undefined) {\n MathJax.Hub.processSectionDelay = originalProcessSectionDelay;\n }\n return MathJax.Hub.Config(originalConfig);\n };\n\n var resetConfig3 = function() {\n MathJax.config = originalConfig;\n };\n\n if(MathJaxVersion === 2) {\n MathJax.Hub.Queue(\n setConfig2,\n setRenderer2,\n initiateMathJax,\n finalizeMathJax,\n resetRenderer2,\n resetConfig2\n );\n } else if(MathJaxVersion === 3) {\n setConfig3();\n setRenderer3();\n MathJax.startup.defaultReady();\n\n MathJax.startup.promise.then(function() {\n initiateMathJax();\n finalizeMathJax();\n\n resetRenderer3();\n resetConfig3();\n });\n }\n}\n\nvar TAG_STYLES = {\n // would like to use baseline-shift for sub/sup but FF doesn't support it\n // so we need to use dy along with the uber hacky shift-back-to\n // baseline below\n sup: 'font-size:70%',\n sub: 'font-size:70%',\n b: 'font-weight:bold',\n i: 'font-style:italic',\n a: 'cursor:pointer',\n span: '',\n em: 'font-style:italic;font-weight:bold'\n};\n\n// baseline shifts for sub and sup\nvar SHIFT_DY = {\n sub: '0.3em',\n sup: '-0.6em'\n};\n// reset baseline by adding a tspan (empty except for a zero-width space)\n// with dy of -70% * SHIFT_DY (because font-size=70%)\nvar RESET_DY = {\n sub: '-0.21em',\n sup: '0.42em'\n};\nvar ZERO_WIDTH_SPACE = '\\u200b';\n\n/*\n * Whitelist of protocols in user-supplied urls. Mostly we want to avoid javascript\n * and related attack vectors. The empty items are there for IE, that in various\n * versions treats relative paths as having different flavors of no protocol, while\n * other browsers have these explicitly inherit the protocol of the page they're in.\n */\nvar PROTOCOLS = ['http:', 'https:', 'mailto:', '', undefined, ':'];\n\nvar NEWLINES = exports.NEWLINES = /(\\r\\n?|\\n)/g;\n\nvar SPLIT_TAGS = /(<[^<>]*>)/;\n\nvar ONE_TAG = /<(\\/?)([^ >]*)(\\s+(.*))?>/i;\n\nvar BR_TAG = //i;\nexports.BR_TAG_ALL = //gi;\n\n/*\n * style and href: pull them out of either single or double quotes. Also\n * - target: (_blank|_self|_parent|_top|framename)\n * note that you can't use target to get a popup but if you use popup,\n * a `framename` will be passed along as the name of the popup window.\n * per the spec, cannot contain whitespace.\n * for backward compatibility we default to '_blank'\n * - popup: a custom one for us to enable popup (new window) links. String\n * for window.open -> strWindowFeatures, like 'menubar=yes,width=500,height=550'\n * note that at least in Chrome, you need to give at least one property\n * in this string or the page will open in a new tab anyway. We follow this\n * convention and will not make a popup if this string is empty.\n * per the spec, cannot contain whitespace.\n *\n * Because we hack in other attributes with style (sub & sup), drop any trailing\n * semicolon in user-supplied styles so we can consistently append the tag-dependent style\n *\n * These are for tag attributes; Chrome anyway will convert entities in\n * attribute values, but not in attribute names\n * you can test this by for example:\n * > p = document.createElement('p')\n * > p.innerHTML = 'Hi'\n * > p.innerHTML\n * <- 'Hi'\n */\nvar STYLEMATCH = /(^|[\\s\"'])style\\s*=\\s*(\"([^\"]*);?\"|'([^']*);?')/i;\nvar HREFMATCH = /(^|[\\s\"'])href\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/i;\nvar TARGETMATCH = /(^|[\\s\"'])target\\s*=\\s*(\"([^\"\\s]*)\"|'([^'\\s]*)')/i;\nvar POPUPMATCH = /(^|[\\s\"'])popup\\s*=\\s*(\"([\\w=,]*)\"|'([\\w=,]*)')/i;\n\n// dedicated matcher for these quoted regexes, that can return their results\n// in two different places\nfunction getQuotedMatch(_str, re) {\n if(!_str) return null;\n var match = _str.match(re);\n var result = match && (match[3] || match[4]);\n return result && convertEntities(result);\n}\n\nvar COLORMATCH = /(^|;)\\s*color:/;\n\n/**\n * Strip string of tags\n *\n * @param {string} _str : input string\n * @param {object} opts :\n * - len {number} max length of output string\n * - allowedTags {array} list of pseudo-html tags to NOT strip\n * @return {string}\n */\nexports.plainText = function(_str, opts) {\n opts = opts || {};\n\n var len = (opts.len !== undefined && opts.len !== -1) ? opts.len : Infinity;\n var allowedTags = opts.allowedTags !== undefined ? opts.allowedTags : ['br'];\n\n var ellipsis = '...';\n var eLen = ellipsis.length;\n\n var oldParts = _str.split(SPLIT_TAGS);\n var newParts = [];\n var prevTag = '';\n var l = 0;\n\n for(var i = 0; i < oldParts.length; i++) {\n var p = oldParts[i];\n var match = p.match(ONE_TAG);\n var tagType = match && match[2].toLowerCase();\n\n if(tagType) {\n // N.B. tags do not count towards string length\n if(allowedTags.indexOf(tagType) !== -1) {\n newParts.push(p);\n prevTag = tagType;\n }\n } else {\n var pLen = p.length;\n\n if((l + pLen) < len) {\n newParts.push(p);\n l += pLen;\n } else if(l < len) {\n var pLen2 = len - l;\n\n if(prevTag && (prevTag !== 'br' || pLen2 <= eLen || pLen <= eLen)) {\n newParts.pop();\n }\n\n if(len > eLen) {\n newParts.push(p.substr(0, pLen2 - eLen) + ellipsis);\n } else {\n newParts.push(p.substr(0, pLen2));\n }\n break;\n }\n\n prevTag = '';\n }\n }\n\n return newParts.join('');\n};\n\n/*\n * N.B. HTML entities are listed without the leading '&' and trailing ';'\n * https://www.freeformatter.com/html-entities.html\n *\n * FWIW if we wanted to support the full set, it has 2261 entries:\n * https://www.w3.org/TR/html5/entities.json\n * though I notice that some of these are duplicates and/or are missing \";\"\n * eg: \"&\", \"&\", \"&\", and \"&\" all map to \"&\"\n * We no longer need to include numeric entities here, these are now handled\n * by String.fromCodePoint/fromCharCode\n *\n * Anyway the only ones that are really important to allow are the HTML special\n * chars <, >, and &, because these ones can trigger special processing if not\n * replaced by the corresponding entity.\n */\nvar entityToUnicode = {\n mu: 'μ',\n amp: '&',\n lt: '<',\n gt: '>',\n nbsp: ' ',\n times: '×',\n plusmn: '±',\n deg: '°'\n};\n\n// NOTE: in general entities can contain uppercase too (so [a-zA-Z]) but all the\n// ones we support use only lowercase. If we ever change that, update the regex.\nvar ENTITY_MATCH = /&(#\\d+|#x[\\da-fA-F]+|[a-z]+);/g;\nfunction convertEntities(_str) {\n return _str.replace(ENTITY_MATCH, function(fullMatch, innerMatch) {\n var outChar;\n if(innerMatch.charAt(0) === '#') {\n // cannot use String.fromCodePoint in IE\n outChar = fromCodePoint(\n innerMatch.charAt(1) === 'x' ?\n parseInt(innerMatch.substr(2), 16) :\n parseInt(innerMatch.substr(1), 10)\n );\n } else outChar = entityToUnicode[innerMatch];\n\n // as in regular HTML, if we didn't decode the entity just\n // leave the raw text in place.\n return outChar || fullMatch;\n });\n}\nexports.convertEntities = convertEntities;\n\nfunction fromCodePoint(code) {\n // Don't allow overflow. In Chrome this turns into � but I feel like it's\n // more useful to just not convert it at all.\n if(code > 0x10FFFF) return;\n var stringFromCodePoint = String.fromCodePoint;\n if(stringFromCodePoint) return stringFromCodePoint(code);\n\n // IE doesn't have String.fromCodePoint\n // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint\n var stringFromCharCode = String.fromCharCode;\n if(code <= 0xFFFF) return stringFromCharCode(code);\n return stringFromCharCode(\n (code >> 10) + 0xD7C0,\n (code % 0x400) + 0xDC00\n );\n}\n\n/*\n * buildSVGText: convert our pseudo-html into SVG tspan elements, and attach these\n * to containerNode\n *\n * @param {svg text element} containerNode: the node to insert this text into\n * @param {string} str: the pseudo-html string to convert to svg\n *\n * @returns {bool}: does the result contain any links? We need to handle the text element\n * somewhat differently if it does, so just keep track of this when it happens.\n */\nfunction buildSVGText(containerNode, str) {\n /*\n * Normalize behavior between IE and others wrt newlines and whitespace:pre\n * this combination makes IE barf https://github.com/plotly/plotly.js/issues/746\n * Chrome and FF display \\n, \\r, or \\r\\n as a space in this mode.\n * I feel like at some point we turned these into
but currently we don't so\n * I'm just going to cement what we do now in Chrome and FF\n */\n str = str.replace(NEWLINES, ' ');\n\n var hasLink = false;\n\n // as we're building the text, keep track of what elements we're nested inside\n // nodeStack will be an array of {node, type, style, href, target, popup}\n // where only type: 'a' gets the last 3 and node is only added when it's created\n var nodeStack = [];\n var currentNode;\n var currentLine = -1;\n\n function newLine() {\n currentLine++;\n\n var lineNode = document.createElementNS(xmlnsNamespaces.svg, 'tspan');\n d3.select(lineNode).attr({\n class: 'line',\n dy: (currentLine * LINE_SPACING) + 'em'\n });\n containerNode.appendChild(lineNode);\n\n currentNode = lineNode;\n\n var oldNodeStack = nodeStack;\n nodeStack = [{node: lineNode}];\n\n if(oldNodeStack.length > 1) {\n for(var i = 1; i < oldNodeStack.length; i++) {\n enterNode(oldNodeStack[i]);\n }\n }\n }\n\n function enterNode(nodeSpec) {\n var type = nodeSpec.type;\n var nodeAttrs = {};\n var nodeType;\n\n if(type === 'a') {\n nodeType = 'a';\n var target = nodeSpec.target;\n var href = nodeSpec.href;\n var popup = nodeSpec.popup;\n if(href) {\n nodeAttrs = {\n 'xlink:xlink:show': (target === '_blank' || target.charAt(0) !== '_') ? 'new' : 'replace',\n target: target,\n 'xlink:xlink:href': href\n };\n if(popup) {\n // security: href and target are not inserted as code but\n // as attributes. popup is, but limited to /[A-Za-z0-9_=,]/\n nodeAttrs.onclick = 'window.open(this.href.baseVal,this.target.baseVal,\"' +\n popup + '\");return false;';\n }\n }\n } else nodeType = 'tspan';\n\n if(nodeSpec.style) nodeAttrs.style = nodeSpec.style;\n\n var newNode = document.createElementNS(xmlnsNamespaces.svg, nodeType);\n\n if(type === 'sup' || type === 'sub') {\n addTextNode(currentNode, ZERO_WIDTH_SPACE);\n currentNode.appendChild(newNode);\n\n var resetter = document.createElementNS(xmlnsNamespaces.svg, 'tspan');\n addTextNode(resetter, ZERO_WIDTH_SPACE);\n d3.select(resetter).attr('dy', RESET_DY[type]);\n nodeAttrs.dy = SHIFT_DY[type];\n\n currentNode.appendChild(newNode);\n currentNode.appendChild(resetter);\n } else {\n currentNode.appendChild(newNode);\n }\n\n d3.select(newNode).attr(nodeAttrs);\n\n currentNode = nodeSpec.node = newNode;\n nodeStack.push(nodeSpec);\n }\n\n function addTextNode(node, text) {\n node.appendChild(document.createTextNode(text));\n }\n\n function exitNode(type) {\n // A bare closing tag can't close the root node. If we encounter this it\n // means there's an extra closing tag that can just be ignored:\n if(nodeStack.length === 1) {\n Lib.log('Ignoring unexpected end tag .', str);\n return;\n }\n\n var innerNode = nodeStack.pop();\n\n if(type !== innerNode.type) {\n Lib.log('Start tag <' + innerNode.type + '> doesnt match end tag <' +\n type + '>. Pretending it did match.', str);\n }\n currentNode = nodeStack[nodeStack.length - 1].node;\n }\n\n var hasLines = BR_TAG.test(str);\n\n if(hasLines) newLine();\n else {\n currentNode = containerNode;\n nodeStack = [{node: containerNode}];\n }\n\n var parts = str.split(SPLIT_TAGS);\n for(var i = 0; i < parts.length; i++) {\n var parti = parts[i];\n var match = parti.match(ONE_TAG);\n var tagType = match && match[2].toLowerCase();\n var tagStyle = TAG_STYLES[tagType];\n\n if(tagType === 'br') {\n newLine();\n } else if(tagStyle === undefined) {\n addTextNode(currentNode, convertEntities(parti));\n } else {\n // tag - open or close\n if(match[1]) {\n exitNode(tagType);\n } else {\n var extra = match[4];\n\n var nodeSpec = {type: tagType};\n\n // now add style, from both the tag name and any extra css\n // Most of the svg css that users will care about is just like html,\n // but font color is different (uses fill). Let our users ignore this.\n var css = getQuotedMatch(extra, STYLEMATCH);\n if(css) {\n css = css.replace(COLORMATCH, '$1 fill:');\n if(tagStyle) css += ';' + tagStyle;\n } else if(tagStyle) css = tagStyle;\n\n if(css) nodeSpec.style = css;\n\n if(tagType === 'a') {\n hasLink = true;\n\n var href = getQuotedMatch(extra, HREFMATCH);\n\n if(href) {\n var safeHref = sanitizeHref(href);\n if(safeHref) {\n nodeSpec.href = safeHref;\n nodeSpec.target = getQuotedMatch(extra, TARGETMATCH) || '_blank';\n nodeSpec.popup = getQuotedMatch(extra, POPUPMATCH);\n }\n }\n }\n\n enterNode(nodeSpec);\n }\n }\n }\n\n return hasLink;\n}\n\nfunction sanitizeHref(href) {\n var decodedHref = encodeURI(decodeURI(href));\n var dummyAnchor1 = document.createElement('a');\n var dummyAnchor2 = document.createElement('a');\n dummyAnchor1.href = href;\n dummyAnchor2.href = decodedHref;\n\n var p1 = dummyAnchor1.protocol;\n var p2 = dummyAnchor2.protocol;\n\n // check safe protocols\n if(\n PROTOCOLS.indexOf(p1) !== -1 &&\n PROTOCOLS.indexOf(p2) !== -1\n ) {\n return decodedHref;\n } else {\n return '';\n }\n}\n\n/*\n * sanitizeHTML: port of buildSVGText aimed at providing a clean subset of HTML\n * @param {string} str: the html string to clean\n * @returns {string}: a cleaned and normalized version of the input,\n * supporting only a small subset of html\n */\nexports.sanitizeHTML = function sanitizeHTML(str) {\n str = str.replace(NEWLINES, ' ');\n\n var rootNode = document.createElement('p');\n var currentNode = rootNode;\n var nodeStack = [];\n\n var parts = str.split(SPLIT_TAGS);\n for(var i = 0; i < parts.length; i++) {\n var parti = parts[i];\n var match = parti.match(ONE_TAG);\n var tagType = match && match[2].toLowerCase();\n\n if(tagType in TAG_STYLES) {\n if(match[1]) {\n if(nodeStack.length) {\n currentNode = nodeStack.pop();\n }\n } else {\n var extra = match[4];\n\n var css = getQuotedMatch(extra, STYLEMATCH);\n var nodeAttrs = css ? {style: css} : {};\n\n if(tagType === 'a') {\n var href = getQuotedMatch(extra, HREFMATCH);\n\n if(href) {\n var safeHref = sanitizeHref(href);\n if(safeHref) {\n nodeAttrs.href = safeHref;\n var target = getQuotedMatch(extra, TARGETMATCH);\n if(target) {\n nodeAttrs.target = target;\n }\n }\n }\n }\n\n var newNode = document.createElement(tagType);\n currentNode.appendChild(newNode);\n d3.select(newNode).attr(nodeAttrs);\n\n currentNode = newNode;\n nodeStack.push(newNode);\n }\n } else {\n currentNode.appendChild(\n document.createTextNode(convertEntities(parti))\n );\n }\n }\n var key = 'innerHTML'; // i.e. to avoid pass test-syntax\n return rootNode[key];\n};\n\nexports.lineCount = function lineCount(s) {\n return s.selectAll('tspan.line').size() || 1;\n};\n\nexports.positionText = function positionText(s, x, y) {\n return s.each(function() {\n var text = d3.select(this);\n\n function setOrGet(attr, val) {\n if(val === undefined) {\n val = text.attr(attr);\n if(val === null) {\n text.attr(attr, 0);\n val = 0;\n }\n } else text.attr(attr, val);\n return val;\n }\n\n var thisX = setOrGet('x', x);\n var thisY = setOrGet('y', y);\n\n if(this.nodeName === 'text') {\n text.selectAll('tspan.line').attr({x: thisX, y: thisY});\n }\n });\n};\n\nfunction alignHTMLWith(_base, container, options) {\n var alignH = options.horizontalAlign;\n var alignV = options.verticalAlign || 'top';\n var bRect = _base.node().getBoundingClientRect();\n var cRect = container.node().getBoundingClientRect();\n var thisRect;\n var getTop;\n var getLeft;\n\n if(alignV === 'bottom') {\n getTop = function() { return bRect.bottom - thisRect.height; };\n } else if(alignV === 'middle') {\n getTop = function() { return bRect.top + (bRect.height - thisRect.height) / 2; };\n } else { // default: top\n getTop = function() { return bRect.top; };\n }\n\n if(alignH === 'right') {\n getLeft = function() { return bRect.right - thisRect.width; };\n } else if(alignH === 'center') {\n getLeft = function() { return bRect.left + (bRect.width - thisRect.width) / 2; };\n } else { // default: left\n getLeft = function() { return bRect.left; };\n }\n\n return function() {\n thisRect = this.node().getBoundingClientRect();\n\n var x0 = getLeft() - cRect.left;\n var y0 = getTop() - cRect.top;\n var gd = options.gd || {};\n if(options.gd) {\n gd._fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(gd._fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n }\n\n this.style({\n top: y0 + 'px',\n left: x0 + 'px',\n 'z-index': 1000\n });\n return this;\n };\n}\n\nvar onePx = '1px ';\n\nexports.makeTextShadow = function(color) {\n var x = onePx;\n var y = onePx;\n var b = onePx;\n return x + y + b + color + ', ' +\n '-' + x + '-' + y + b + color + ', ' +\n x + '-' + y + b + color + ', ' +\n '-' + x + y + b + color;\n};\n\n/*\n * Editable title\n * @param {d3.selection} context: the element being edited. Normally text,\n * but if it isn't, you should provide the styling options\n * @param {object} options:\n * @param {div} options.gd: graphDiv\n * @param {d3.selection} options.delegate: item to bind events to if not this\n * @param {boolean} options.immediate: start editing now (true) or on click (false, default)\n * @param {string} options.fill: font color if not as shown\n * @param {string} options.background: background color if not as shown\n * @param {string} options.text: initial text, if not as shown\n * @param {string} options.horizontalAlign: alignment of the edit box wrt. the bound element\n * @param {string} options.verticalAlign: alignment of the edit box wrt. the bound element\n */\n\nexports.makeEditable = function(context, options) {\n var gd = options.gd;\n var _delegate = options.delegate;\n var dispatch = d3.dispatch('edit', 'input', 'cancel');\n var handlerElement = _delegate || context;\n\n context.style({'pointer-events': _delegate ? 'none' : 'all'});\n\n if(context.size() !== 1) throw new Error('boo');\n\n function handleClick() {\n appendEditable();\n context.style({opacity: 0});\n // also hide any mathjax svg\n var svgClass = handlerElement.attr('class');\n var mathjaxClass;\n if(svgClass) mathjaxClass = '.' + svgClass.split(' ')[0] + '-math-group';\n else mathjaxClass = '[class*=-math-group]';\n if(mathjaxClass) {\n d3.select(context.node().parentNode).select(mathjaxClass).style({opacity: 0});\n }\n }\n\n function selectElementContents(_el) {\n var el = _el.node();\n var range = document.createRange();\n range.selectNodeContents(el);\n var sel = window.getSelection();\n sel.removeAllRanges();\n sel.addRange(range);\n el.focus();\n }\n\n function appendEditable() {\n var plotDiv = d3.select(gd);\n var container = plotDiv.select('.svg-container');\n var div = container.append('div');\n var cStyle = context.node().style;\n var fontSize = parseFloat(cStyle.fontSize || 12);\n\n var initialText = options.text;\n if(initialText === undefined) initialText = context.attr('data-unformatted');\n\n div.classed('plugin-editable editable', true)\n .style({\n position: 'absolute',\n 'font-family': cStyle.fontFamily || 'Arial',\n 'font-size': fontSize,\n color: options.fill || cStyle.fill || 'black',\n opacity: 1,\n 'background-color': options.background || 'transparent',\n outline: '#ffffff33 1px solid',\n margin: [-fontSize / 8 + 1, 0, 0, -1].join('px ') + 'px',\n padding: '0',\n 'box-sizing': 'border-box'\n })\n .attr({contenteditable: true})\n .text(initialText)\n .call(alignHTMLWith(context, container, options))\n .on('blur', function() {\n gd._editing = false;\n context.text(this.textContent)\n .style({opacity: 1});\n var svgClass = d3.select(this).attr('class');\n var mathjaxClass;\n if(svgClass) mathjaxClass = '.' + svgClass.split(' ')[0] + '-math-group';\n else mathjaxClass = '[class*=-math-group]';\n if(mathjaxClass) {\n d3.select(context.node().parentNode).select(mathjaxClass).style({opacity: 0});\n }\n var text = this.textContent;\n d3.select(this).transition().duration(0).remove();\n d3.select(document).on('mouseup', null);\n dispatch.edit.call(context, text);\n })\n .on('focus', function() {\n var editDiv = this;\n gd._editing = true;\n d3.select(document).on('mouseup', function() {\n if(d3.event.target === editDiv) return false;\n if(document.activeElement === div.node()) div.node().blur();\n });\n })\n .on('keyup', function() {\n if(d3.event.which === 27) {\n gd._editing = false;\n context.style({opacity: 1});\n d3.select(this)\n .style({opacity: 0})\n .on('blur', function() { return false; })\n .transition().remove();\n dispatch.cancel.call(context, this.textContent);\n } else {\n dispatch.input.call(context, this.textContent);\n d3.select(this).call(alignHTMLWith(context, container, options));\n }\n })\n .on('keydown', function() {\n if(d3.event.which === 13) this.blur();\n })\n .call(selectElementContents);\n }\n\n if(options.immediate) handleClick();\n else handlerElement.on('click', handleClick);\n\n return d3.rebind(context, dispatch, 'on');\n};\n\n},{\"../constants/alignment\":483,\"../constants/xmlns_namespaces\":492,\"../lib\":515,\"@plotly/d3\":58}],542:[function(_dereq_,module,exports){\n'use strict';\n\nvar timerCache = {};\n\n/**\n * Throttle a callback. `callback` executes synchronously only if\n * more than `minInterval` milliseconds have already elapsed since the latest\n * call (if any). Otherwise we wait until `minInterval` is over and execute the\n * last callback received while waiting.\n * So the first and last events in a train are always executed (eventually)\n * but some of the events in the middle can be dropped.\n *\n * @param {string} id: an identifier to mark events to throttle together\n * @param {number} minInterval: minimum time, in milliseconds, between\n * invocations of `callback`\n * @param {function} callback: the function to throttle. `callback` itself\n * should be a purely synchronous function.\n */\nexports.throttle = function throttle(id, minInterval, callback) {\n var cache = timerCache[id];\n var now = Date.now();\n\n if(!cache) {\n /*\n * Throw out old items before making a new one, to prevent the cache\n * getting overgrown, for example from old plots that have been replaced.\n * 1 minute age is arbitrary.\n */\n for(var idi in timerCache) {\n if(timerCache[idi].ts < now - 60000) {\n delete timerCache[idi];\n }\n }\n cache = timerCache[id] = {ts: 0, timer: null};\n }\n\n _clearTimeout(cache);\n\n function exec() {\n callback();\n cache.ts = Date.now();\n if(cache.onDone) {\n cache.onDone();\n cache.onDone = null;\n }\n }\n\n if(now > cache.ts + minInterval) {\n exec();\n return;\n }\n\n cache.timer = setTimeout(function() {\n exec();\n cache.timer = null;\n }, minInterval);\n};\n\nexports.done = function(id) {\n var cache = timerCache[id];\n if(!cache || !cache.timer) return Promise.resolve();\n\n return new Promise(function(resolve) {\n var previousOnDone = cache.onDone;\n cache.onDone = function onDone() {\n if(previousOnDone) previousOnDone();\n resolve();\n cache.onDone = null;\n };\n });\n};\n\n/**\n * Clear the throttle cache for one or all timers\n * @param {optional string} id:\n * if provided, clear just this timer\n * if omitted, clear all timers (mainly useful for testing)\n */\nexports.clear = function(id) {\n if(id) {\n _clearTimeout(timerCache[id]);\n delete timerCache[id];\n } else {\n for(var idi in timerCache) exports.clear(idi);\n }\n};\n\nfunction _clearTimeout(cache) {\n if(cache && cache.timer !== null) {\n clearTimeout(cache.timer);\n cache.timer = null;\n }\n}\n\n},{}],543:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\n/**\n * convert a linear value into a logged value, folding negative numbers into\n * the given range\n */\nmodule.exports = function toLogRange(val, range) {\n if(val > 0) return Math.log(val) / Math.LN10;\n\n // move a negative value reference to a log axis - just put the\n // result at the lowest range value on the plot (or if the range also went negative,\n // one millionth of the top of the range)\n var newVal = Math.log(Math.min(range[0], range[1])) / Math.LN10;\n if(!isNumeric(newVal)) newVal = Math.log(Math.max(range[0], range[1])) / Math.LN10 - 6;\n return newVal;\n};\n\n},{\"fast-isnumeric\":190}],544:[function(_dereq_,module,exports){\n'use strict';\n\nvar topojsonUtils = module.exports = {};\n\nvar locationmodeToLayer = _dereq_('../plots/geo/constants').locationmodeToLayer;\nvar topojsonFeature = _dereq_('topojson-client').feature;\n\ntopojsonUtils.getTopojsonName = function(geoLayout) {\n return [\n geoLayout.scope.replace(/ /g, '-'), '_',\n geoLayout.resolution.toString(), 'm'\n ].join('');\n};\n\ntopojsonUtils.getTopojsonPath = function(topojsonURL, topojsonName) {\n return topojsonURL + topojsonName + '.json';\n};\n\ntopojsonUtils.getTopojsonFeatures = function(trace, topojson) {\n var layer = locationmodeToLayer[trace.locationmode];\n var obj = topojson.objects[layer];\n\n return topojsonFeature(topojson, obj).features;\n};\n\n},{\"../plots/geo/constants\":596,\"topojson-client\":316}],545:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'locale',\n name: 'en-US',\n dictionary: {\n 'Click to enter Colorscale title': 'Click to enter Colorscale title'\n },\n format: {\n date: '%m/%d/%Y'\n }\n};\n\n},{}],546:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'locale',\n name: 'en',\n dictionary: {\n 'Click to enter Colorscale title': 'Click to enter Colourscale title'\n },\n format: {\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n months: [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'\n ],\n shortMonths: [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n ],\n periods: ['AM', 'PM'],\n dateTime: '%a %b %e %X %Y',\n date: '%d/%m/%Y',\n time: '%H:%M:%S',\n decimal: '.',\n thousands: ',',\n grouping: [3],\n currency: ['$', ''],\n year: '%Y',\n month: '%b %Y',\n dayMonth: '%b %-d',\n dayMonthYear: '%b %-d, %Y'\n }\n};\n\n},{}],547:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\n\n/*\n * containerArrayMatch: does this attribute string point into a\n * layout container array?\n *\n * @param {String} astr: an attribute string, like *annotations[2].text*\n *\n * @returns {Object | false} Returns false if `astr` doesn't match a container\n * array. If it does, returns:\n * {array: {String}, index: {Number}, property: {String}}\n * ie the attribute string for the array, the index within the array (or ''\n * if the whole array) and the property within that (or '' if the whole array\n * or the whole object)\n */\nmodule.exports = function containerArrayMatch(astr) {\n var rootContainers = Registry.layoutArrayContainers;\n var regexpContainers = Registry.layoutArrayRegexes;\n var rootPart = astr.split('[')[0];\n var arrayStr;\n var match;\n\n // look for regexp matches first, because they may be nested inside root matches\n // eg updatemenus[i].buttons is nested inside updatemenus\n for(var i = 0; i < regexpContainers.length; i++) {\n match = astr.match(regexpContainers[i]);\n if(match && match.index === 0) {\n arrayStr = match[0];\n break;\n }\n }\n\n // now look for root matches\n if(!arrayStr) arrayStr = rootContainers[rootContainers.indexOf(rootPart)];\n\n if(!arrayStr) return false;\n\n var tail = astr.substr(arrayStr.length);\n if(!tail) return {array: arrayStr, index: '', property: ''};\n\n match = tail.match(/^\\[(0|[1-9][0-9]*)\\](\\.(.+))?$/);\n if(!match) return false;\n\n return {array: arrayStr, index: Number(match[1]), property: match[3] || ''};\n};\n\n},{\"../registry\":647}],548:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar extendFlat = Lib.extendFlat;\nvar isPlainObject = Lib.isPlainObject;\n\nvar traceOpts = {\n valType: 'flaglist',\n extras: ['none'],\n flags: ['calc', 'clearAxisTypes', 'plot', 'style', 'markerSize', 'colorbars'],\n};\n\nvar layoutOpts = {\n valType: 'flaglist',\n extras: ['none'],\n flags: [\n 'calc', 'plot', 'legend', 'ticks', 'axrange',\n 'layoutstyle', 'modebar', 'camera', 'arraydraw', 'colorbars'\n ],\n};\n\n// flags for inside restyle/relayout include a few extras\n// that shouldn't be used in attributes, to deal with certain\n// combinations and conditionals efficiently\nvar traceEditTypeFlags = traceOpts.flags.slice()\n .concat(['fullReplot']);\n\nvar layoutEditTypeFlags = layoutOpts.flags.slice()\n .concat('layoutReplot');\n\nmodule.exports = {\n traces: traceOpts,\n layout: layoutOpts,\n /*\n * default (all false) edit flags for restyle (traces)\n * creates a new object each call, so the caller can mutate freely\n */\n traceFlags: function() { return falseObj(traceEditTypeFlags); },\n\n /*\n * default (all false) edit flags for relayout\n * creates a new object each call, so the caller can mutate freely\n */\n layoutFlags: function() { return falseObj(layoutEditTypeFlags); },\n\n /*\n * update `flags` with the `editType` values found in `attr`\n */\n update: function(flags, attr) {\n var editType = attr.editType;\n if(editType && editType !== 'none') {\n var editTypeParts = editType.split('+');\n for(var i = 0; i < editTypeParts.length; i++) {\n flags[editTypeParts[i]] = true;\n }\n }\n },\n\n overrideAll: overrideAll\n};\n\nfunction falseObj(keys) {\n var out = {};\n for(var i = 0; i < keys.length; i++) out[keys[i]] = false;\n return out;\n}\n\n/**\n * For attributes that are largely copied from elsewhere into a plot type that doesn't\n * support partial redraws - overrides the editType field of all attributes in the object\n *\n * @param {object} attrs: the attributes to override. Will not be mutated.\n * @param {string} editTypeOverride: the new editType to use\n * @param {'nested'|'from-root'} overrideContainers:\n * - 'nested' will override editType for nested containers but not the root.\n * - 'from-root' will also override editType of the root container.\n * Containers below the absolute top level (trace or layout root) DO need an\n * editType even if they are not `valObject`s themselves (eg `scatter.marker`)\n * to handle the case where you edit the whole container.\n *\n * @return {object} a new attributes object with `editType` modified as directed\n */\nfunction overrideAll(attrs, editTypeOverride, overrideContainers) {\n var out = extendFlat({}, attrs);\n for(var key in out) {\n var attr = out[key];\n if(isPlainObject(attr)) {\n out[key] = overrideOne(attr, editTypeOverride, overrideContainers, key);\n }\n }\n if(overrideContainers === 'from-root') out.editType = editTypeOverride;\n\n return out;\n}\n\nfunction overrideOne(attr, editTypeOverride, overrideContainers, key) {\n if(attr.valType) {\n var out = extendFlat({}, attr);\n out.editType = editTypeOverride;\n\n if(Array.isArray(attr.items)) {\n out.items = new Array(attr.items.length);\n for(var i = 0; i < attr.items.length; i++) {\n out.items[i] = overrideOne(attr.items[i], editTypeOverride, 'from-root');\n }\n }\n return out;\n } else {\n // don't provide an editType for the _deprecated container\n return overrideAll(attr, editTypeOverride,\n (key.charAt(0) === '_') ? 'nested' : 'from-root');\n }\n}\n\n},{\"../lib\":515}],549:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar m4FromQuat = _dereq_('gl-mat4/fromQuat');\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\nvar Plots = _dereq_('../plots/plots');\nvar AxisIds = _dereq_('../plots/cartesian/axis_ids');\nvar Color = _dereq_('../components/color');\n\nvar cleanId = AxisIds.cleanId;\nvar getFromTrace = AxisIds.getFromTrace;\nvar traceIs = Registry.traceIs;\n\n// clear the promise queue if one of them got rejected\nexports.clearPromiseQueue = function(gd) {\n if(Array.isArray(gd._promises) && gd._promises.length > 0) {\n Lib.log('Clearing previous rejected promises from queue.');\n }\n\n gd._promises = [];\n};\n\n// make a few changes to the layout right away\n// before it gets used for anything\n// backward compatibility and cleanup of nonstandard options\nexports.cleanLayout = function(layout) {\n var i, j;\n\n if(!layout) layout = {};\n\n // cannot have (x|y)axis1, numbering goes axis, axis2, axis3...\n if(layout.xaxis1) {\n if(!layout.xaxis) layout.xaxis = layout.xaxis1;\n delete layout.xaxis1;\n }\n if(layout.yaxis1) {\n if(!layout.yaxis) layout.yaxis = layout.yaxis1;\n delete layout.yaxis1;\n }\n if(layout.scene1) {\n if(!layout.scene) layout.scene = layout.scene1;\n delete layout.scene1;\n }\n\n var axisAttrRegex = (Plots.subplotsRegistry.cartesian || {}).attrRegex;\n var polarAttrRegex = (Plots.subplotsRegistry.polar || {}).attrRegex;\n var ternaryAttrRegex = (Plots.subplotsRegistry.ternary || {}).attrRegex;\n var sceneAttrRegex = (Plots.subplotsRegistry.gl3d || {}).attrRegex;\n\n var keys = Object.keys(layout);\n for(i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if(axisAttrRegex && axisAttrRegex.test(key)) {\n // modifications to cartesian axes\n\n var ax = layout[key];\n if(ax.anchor && ax.anchor !== 'free') {\n ax.anchor = cleanId(ax.anchor);\n }\n if(ax.overlaying) ax.overlaying = cleanId(ax.overlaying);\n\n // old method of axis type - isdate and islog (before category existed)\n if(!ax.type) {\n if(ax.isdate) ax.type = 'date';\n else if(ax.islog) ax.type = 'log';\n else if(ax.isdate === false && ax.islog === false) ax.type = 'linear';\n }\n if(ax.autorange === 'withzero' || ax.autorange === 'tozero') {\n ax.autorange = true;\n ax.rangemode = 'tozero';\n }\n delete ax.islog;\n delete ax.isdate;\n delete ax.categories; // replaced by _categories\n\n // prune empty domain arrays made before the new nestedProperty\n if(emptyContainer(ax, 'domain')) delete ax.domain;\n\n // autotick -> tickmode\n if(ax.autotick !== undefined) {\n if(ax.tickmode === undefined) {\n ax.tickmode = ax.autotick ? 'auto' : 'linear';\n }\n delete ax.autotick;\n }\n\n cleanTitle(ax);\n } else if(polarAttrRegex && polarAttrRegex.test(key)) {\n // modifications for polar\n\n var polar = layout[key];\n cleanTitle(polar.radialaxis);\n } else if(ternaryAttrRegex && ternaryAttrRegex.test(key)) {\n // modifications for ternary\n\n var ternary = layout[key];\n cleanTitle(ternary.aaxis);\n cleanTitle(ternary.baxis);\n cleanTitle(ternary.caxis);\n } else if(sceneAttrRegex && sceneAttrRegex.test(key)) {\n // modifications for 3D scenes\n\n var scene = layout[key];\n\n // clean old Camera coords\n var cameraposition = scene.cameraposition;\n\n if(Array.isArray(cameraposition) && cameraposition[0].length === 4) {\n var rotation = cameraposition[0];\n var center = cameraposition[1];\n var radius = cameraposition[2];\n var mat = m4FromQuat([], rotation);\n var eye = [];\n\n for(j = 0; j < 3; ++j) {\n eye[j] = center[j] + radius * mat[2 + 4 * j];\n }\n\n scene.camera = {\n eye: {x: eye[0], y: eye[1], z: eye[2]},\n center: {x: center[0], y: center[1], z: center[2]},\n up: {x: 0, y: 0, z: 1} // we just ignore calculating camera z up in this case\n };\n\n delete scene.cameraposition;\n }\n\n // clean axis titles\n cleanTitle(scene.xaxis);\n cleanTitle(scene.yaxis);\n cleanTitle(scene.zaxis);\n }\n }\n\n var annotationsLen = Array.isArray(layout.annotations) ? layout.annotations.length : 0;\n for(i = 0; i < annotationsLen; i++) {\n var ann = layout.annotations[i];\n\n if(!Lib.isPlainObject(ann)) continue;\n\n if(ann.ref) {\n if(ann.ref === 'paper') {\n ann.xref = 'paper';\n ann.yref = 'paper';\n } else if(ann.ref === 'data') {\n ann.xref = 'x';\n ann.yref = 'y';\n }\n delete ann.ref;\n }\n\n cleanAxRef(ann, 'xref');\n cleanAxRef(ann, 'yref');\n }\n\n var shapesLen = Array.isArray(layout.shapes) ? layout.shapes.length : 0;\n for(i = 0; i < shapesLen; i++) {\n var shape = layout.shapes[i];\n\n if(!Lib.isPlainObject(shape)) continue;\n\n cleanAxRef(shape, 'xref');\n cleanAxRef(shape, 'yref');\n }\n\n var imagesLen = Array.isArray(layout.images) ? layout.images.length : 0;\n for(i = 0; i < imagesLen; i++) {\n var image = layout.images[i];\n\n if(!Lib.isPlainObject(image)) continue;\n\n cleanAxRef(image, 'xref');\n cleanAxRef(image, 'yref');\n }\n\n var legend = layout.legend;\n if(legend) {\n // check for old-style legend positioning (x or y is +/- 100)\n if(legend.x > 3) {\n legend.x = 1.02;\n legend.xanchor = 'left';\n } else if(legend.x < -2) {\n legend.x = -0.02;\n legend.xanchor = 'right';\n }\n\n if(legend.y > 3) {\n legend.y = 1.02;\n legend.yanchor = 'bottom';\n } else if(legend.y < -2) {\n legend.y = -0.02;\n legend.yanchor = 'top';\n }\n }\n\n // clean plot title\n cleanTitle(layout);\n\n /*\n * Moved from rotate -> orbit for dragmode\n */\n if(layout.dragmode === 'rotate') layout.dragmode = 'orbit';\n\n // sanitize rgb(fractions) and rgba(fractions) that old tinycolor\n // supported, but new tinycolor does not because they're not valid css\n Color.clean(layout);\n\n // clean the layout container in layout.template\n if(layout.template && layout.template.layout) {\n exports.cleanLayout(layout.template.layout);\n }\n\n return layout;\n};\n\nfunction cleanAxRef(container, attr) {\n var valIn = container[attr];\n var axLetter = attr.charAt(0);\n if(valIn && valIn !== 'paper') {\n container[attr] = cleanId(valIn, axLetter, true);\n }\n}\n\n/**\n * Cleans up old title attribute structure (flat) in favor of the new one (nested).\n *\n * @param {Object} titleContainer - an object potentially including deprecated title attributes\n */\nfunction cleanTitle(titleContainer) {\n if(titleContainer) {\n // title -> title.text\n // (although title used to be a string attribute,\n // numbers are accepted as well)\n if(typeof titleContainer.title === 'string' || typeof titleContainer.title === 'number') {\n titleContainer.title = {\n text: titleContainer.title\n };\n }\n\n rewireAttr('titlefont', 'font');\n rewireAttr('titleposition', 'position');\n rewireAttr('titleside', 'side');\n rewireAttr('titleoffset', 'offset');\n }\n\n function rewireAttr(oldAttrName, newAttrName) {\n var oldAttrSet = titleContainer[oldAttrName];\n var newAttrSet = titleContainer.title && titleContainer.title[newAttrName];\n\n if(oldAttrSet && !newAttrSet) {\n // Ensure title object exists\n if(!titleContainer.title) {\n titleContainer.title = {};\n }\n\n titleContainer.title[newAttrName] = titleContainer[oldAttrName];\n delete titleContainer[oldAttrName];\n }\n }\n}\n\n/*\n * cleanData: Make a few changes to the data for backward compatibility\n * before it gets used for anything. Modifies the data traces users provide.\n *\n * Important: if you're going to add something here that modifies a data array,\n * update it in place so the new array === the old one.\n */\nexports.cleanData = function(data) {\n for(var tracei = 0; tracei < data.length; tracei++) {\n var trace = data[tracei];\n var i;\n\n // use xbins to bin data in x, and ybins to bin data in y\n if(trace.type === 'histogramy' && 'xbins' in trace && !('ybins' in trace)) {\n trace.ybins = trace.xbins;\n delete trace.xbins;\n }\n\n // error_y.opacity is obsolete - merge into color\n if(trace.error_y && 'opacity' in trace.error_y) {\n var dc = Color.defaults;\n var yeColor = trace.error_y.color || (traceIs(trace, 'bar') ?\n Color.defaultLine :\n dc[tracei % dc.length]);\n trace.error_y.color = Color.addOpacity(\n Color.rgb(yeColor),\n Color.opacity(yeColor) * trace.error_y.opacity);\n delete trace.error_y.opacity;\n }\n\n // convert bardir to orientation, and put the data into\n // the axes it's eventually going to be used with\n if('bardir' in trace) {\n if(trace.bardir === 'h' && (traceIs(trace, 'bar') ||\n trace.type.substr(0, 9) === 'histogram')) {\n trace.orientation = 'h';\n exports.swapXYData(trace);\n }\n delete trace.bardir;\n }\n\n // now we have only one 1D histogram type, and whether\n // it uses x or y data depends on trace.orientation\n if(trace.type === 'histogramy') exports.swapXYData(trace);\n if(trace.type === 'histogramx' || trace.type === 'histogramy') {\n trace.type = 'histogram';\n }\n\n // scl->scale, reversescl->reversescale\n if('scl' in trace && !('colorscale' in trace)) {\n trace.colorscale = trace.scl;\n delete trace.scl;\n }\n if('reversescl' in trace && !('reversescale' in trace)) {\n trace.reversescale = trace.reversescl;\n delete trace.reversescl;\n }\n\n // axis ids x1 -> x, y1-> y\n if(trace.xaxis) trace.xaxis = cleanId(trace.xaxis, 'x');\n if(trace.yaxis) trace.yaxis = cleanId(trace.yaxis, 'y');\n\n // scene ids scene1 -> scene\n if(traceIs(trace, 'gl3d') && trace.scene) {\n trace.scene = Plots.subplotsRegistry.gl3d.cleanId(trace.scene);\n }\n\n if(!traceIs(trace, 'pie-like') && !traceIs(trace, 'bar-like')) {\n if(Array.isArray(trace.textposition)) {\n for(i = 0; i < trace.textposition.length; i++) {\n trace.textposition[i] = cleanTextPosition(trace.textposition[i]);\n }\n } else if(trace.textposition) {\n trace.textposition = cleanTextPosition(trace.textposition);\n }\n }\n\n // fix typo in colorscale definition\n var _module = Registry.getModule(trace);\n if(_module && _module.colorbar) {\n var containerName = _module.colorbar.container;\n var container = containerName ? trace[containerName] : trace;\n if(container && container.colorscale) {\n if(container.colorscale === 'YIGnBu') container.colorscale = 'YlGnBu';\n if(container.colorscale === 'YIOrRd') container.colorscale = 'YlOrRd';\n }\n }\n\n // fix typo in surface 'highlight*' definitions\n if(trace.type === 'surface' && Lib.isPlainObject(trace.contours)) {\n var dims = ['x', 'y', 'z'];\n\n for(i = 0; i < dims.length; i++) {\n var opts = trace.contours[dims[i]];\n\n if(!Lib.isPlainObject(opts)) continue;\n\n if(opts.highlightColor) {\n opts.highlightcolor = opts.highlightColor;\n delete opts.highlightColor;\n }\n\n if(opts.highlightWidth) {\n opts.highlightwidth = opts.highlightWidth;\n delete opts.highlightWidth;\n }\n }\n }\n\n // fixes from converting finance from transforms to real trace types\n if(trace.type === 'candlestick' || trace.type === 'ohlc') {\n var increasingShowlegend = (trace.increasing || {}).showlegend !== false;\n var decreasingShowlegend = (trace.decreasing || {}).showlegend !== false;\n var increasingName = cleanFinanceDir(trace.increasing);\n var decreasingName = cleanFinanceDir(trace.decreasing);\n\n // now figure out something smart to do with the separate direction\n // names we removed\n if((increasingName !== false) && (decreasingName !== false)) {\n // both sub-names existed: base name previously had no effect\n // so ignore it and try to find a shared part of the sub-names\n\n var newName = commonPrefix(\n increasingName, decreasingName,\n increasingShowlegend, decreasingShowlegend\n );\n // if no common part, leave whatever name was (or wasn't) there\n if(newName) trace.name = newName;\n } else if((increasingName || decreasingName) && !trace.name) {\n // one sub-name existed but not the base name - just use the sub-name\n trace.name = increasingName || decreasingName;\n }\n }\n\n // transforms backward compatibility fixes\n if(Array.isArray(trace.transforms)) {\n var transforms = trace.transforms;\n\n for(i = 0; i < transforms.length; i++) {\n var transform = transforms[i];\n\n if(!Lib.isPlainObject(transform)) continue;\n\n switch(transform.type) {\n case 'filter':\n if(transform.filtersrc) {\n transform.target = transform.filtersrc;\n delete transform.filtersrc;\n }\n\n if(transform.calendar) {\n if(!transform.valuecalendar) {\n transform.valuecalendar = transform.calendar;\n }\n delete transform.calendar;\n }\n break;\n\n case 'groupby':\n // Name has changed from `style` to `styles`, so use `style` but prefer `styles`:\n transform.styles = transform.styles || transform.style;\n\n if(transform.styles && !Array.isArray(transform.styles)) {\n var prevStyles = transform.styles;\n var styleKeys = Object.keys(prevStyles);\n\n transform.styles = [];\n for(var j = 0; j < styleKeys.length; j++) {\n transform.styles.push({\n target: styleKeys[j],\n value: prevStyles[styleKeys[j]]\n });\n }\n }\n break;\n }\n }\n }\n\n // prune empty containers made before the new nestedProperty\n if(emptyContainer(trace, 'line')) delete trace.line;\n if('marker' in trace) {\n if(emptyContainer(trace.marker, 'line')) delete trace.marker.line;\n if(emptyContainer(trace, 'marker')) delete trace.marker;\n }\n\n // sanitize rgb(fractions) and rgba(fractions) that old tinycolor\n // supported, but new tinycolor does not because they're not valid css\n Color.clean(trace);\n\n // remove obsolete autobin(x|y) attributes, but only if true\n // if false, this needs to happen in Histogram.calc because it\n // can be a one-time autobin so we need to know the results before\n // we can push them back into the trace.\n if(trace.autobinx) {\n delete trace.autobinx;\n delete trace.xbins;\n }\n if(trace.autobiny) {\n delete trace.autobiny;\n delete trace.ybins;\n }\n\n cleanTitle(trace);\n if(trace.colorbar) cleanTitle(trace.colorbar);\n if(trace.marker && trace.marker.colorbar) cleanTitle(trace.marker.colorbar);\n if(trace.line && trace.line.colorbar) cleanTitle(trace.line.colorbar);\n if(trace.aaxis) cleanTitle(trace.aaxis);\n if(trace.baxis) cleanTitle(trace.baxis);\n }\n};\n\nfunction cleanFinanceDir(dirContainer) {\n if(!Lib.isPlainObject(dirContainer)) return false;\n\n var dirName = dirContainer.name;\n\n delete dirContainer.name;\n delete dirContainer.showlegend;\n\n return (typeof dirName === 'string' || typeof dirName === 'number') && String(dirName);\n}\n\nfunction commonPrefix(name1, name2, show1, show2) {\n // if only one is shown in the legend, use that\n if(show1 && !show2) return name1;\n if(show2 && !show1) return name2;\n\n // if both or neither are in the legend, check if one is blank (or whitespace)\n // and use the other one\n // note that hover labels can still use the name even if the legend doesn't\n if(!name1.trim()) return name2;\n if(!name2.trim()) return name1;\n\n var minLen = Math.min(name1.length, name2.length);\n var i;\n for(i = 0; i < minLen; i++) {\n if(name1.charAt(i) !== name2.charAt(i)) break;\n }\n\n var out = name1.substr(0, i);\n return out.trim();\n}\n\n// textposition - support partial attributes (ie just 'top')\n// and incorrect use of middle / center etc.\nfunction cleanTextPosition(textposition) {\n var posY = 'middle';\n var posX = 'center';\n\n if(typeof textposition === 'string') {\n if(textposition.indexOf('top') !== -1) posY = 'top';\n else if(textposition.indexOf('bottom') !== -1) posY = 'bottom';\n\n if(textposition.indexOf('left') !== -1) posX = 'left';\n else if(textposition.indexOf('right') !== -1) posX = 'right';\n }\n\n return posY + ' ' + posX;\n}\n\nfunction emptyContainer(outer, innerStr) {\n return (innerStr in outer) &&\n (typeof outer[innerStr] === 'object') &&\n (Object.keys(outer[innerStr]).length === 0);\n}\n\n\n// swap all the data and data attributes associated with x and y\nexports.swapXYData = function(trace) {\n var i;\n Lib.swapAttrs(trace, ['?', '?0', 'd?', '?bins', 'nbins?', 'autobin?', '?src', 'error_?']);\n if(Array.isArray(trace.z) && Array.isArray(trace.z[0])) {\n if(trace.transpose) delete trace.transpose;\n else trace.transpose = true;\n }\n if(trace.error_x && trace.error_y) {\n var errorY = trace.error_y;\n var copyYstyle = ('copy_ystyle' in errorY) ?\n errorY.copy_ystyle :\n !(errorY.color || errorY.thickness || errorY.width);\n Lib.swapAttrs(trace, ['error_?.copy_ystyle']);\n if(copyYstyle) {\n Lib.swapAttrs(trace, ['error_?.color', 'error_?.thickness', 'error_?.width']);\n }\n }\n if(typeof trace.hoverinfo === 'string') {\n var hoverInfoParts = trace.hoverinfo.split('+');\n for(i = 0; i < hoverInfoParts.length; i++) {\n if(hoverInfoParts[i] === 'x') hoverInfoParts[i] = 'y';\n else if(hoverInfoParts[i] === 'y') hoverInfoParts[i] = 'x';\n }\n trace.hoverinfo = hoverInfoParts.join('+');\n }\n};\n\n// coerce traceIndices input to array of trace indices\nexports.coerceTraceIndices = function(gd, traceIndices) {\n if(isNumeric(traceIndices)) {\n return [traceIndices];\n } else if(!Array.isArray(traceIndices) || !traceIndices.length) {\n return gd.data.map(function(_, i) { return i; });\n } else if(Array.isArray(traceIndices)) {\n var traceIndicesOut = [];\n for(var i = 0; i < traceIndices.length; i++) {\n if(Lib.isIndex(traceIndices[i], gd.data.length)) {\n traceIndicesOut.push(traceIndices[i]);\n } else {\n Lib.warn('trace index (', traceIndices[i], ') is not a number or is out of bounds');\n }\n }\n return traceIndicesOut;\n }\n\n return traceIndices;\n};\n\n/**\n * Manages logic around array container item creation / deletion / update\n * that nested property alone can't handle.\n *\n * @param {Object} np\n * nested property of update attribute string about trace or layout object\n * @param {*} newVal\n * update value passed to restyle / relayout / update\n * @param {Object} undoit\n * undo hash (N.B. undoit may be mutated here).\n *\n */\nexports.manageArrayContainers = function(np, newVal, undoit) {\n var obj = np.obj;\n var parts = np.parts;\n var pLength = parts.length;\n var pLast = parts[pLength - 1];\n\n var pLastIsNumber = isNumeric(pLast);\n\n if(pLastIsNumber && newVal === null) {\n // delete item\n\n // Clear item in array container when new value is null\n var contPath = parts.slice(0, pLength - 1).join('.');\n var cont = Lib.nestedProperty(obj, contPath).get();\n cont.splice(pLast, 1);\n\n // Note that nested property clears null / undefined at end of\n // array container, but not within them.\n } else if(pLastIsNumber && np.get() === undefined) {\n // create item\n\n // When adding a new item, make sure undo command will remove it\n if(np.get() === undefined) undoit[np.astr] = null;\n\n np.set(newVal);\n } else {\n // update item\n\n // If the last part of attribute string isn't a number,\n // np.set is all we need.\n np.set(newVal);\n }\n};\n\n/*\n * Match the part to strip off to turn an attribute into its parent\n * really it should be either '.some_characters' or '[number]'\n * but we're a little more permissive here and match either\n * '.not_brackets_or_dot' or '[not_brackets_or_dot]'\n */\nvar ATTR_TAIL_RE = /(\\.[^\\[\\]\\.]+|\\[[^\\[\\]\\.]+\\])$/;\n\nfunction getParent(attr) {\n var tail = attr.search(ATTR_TAIL_RE);\n if(tail > 0) return attr.substr(0, tail);\n}\n\n/*\n * hasParent: does an attribute object contain a parent of the given attribute?\n * for example, given 'images[2].x' do we also have 'images' or 'images[2]'?\n *\n * @param {Object} aobj\n * update object, whose keys are attribute strings and values are their new settings\n * @param {string} attr\n * the attribute string to test against\n * @returns {Boolean}\n * is a parent of attr present in aobj?\n */\nexports.hasParent = function(aobj, attr) {\n var attrParent = getParent(attr);\n while(attrParent) {\n if(attrParent in aobj) return true;\n attrParent = getParent(attrParent);\n }\n return false;\n};\n\n/**\n * Empty out types for all axes containing these traces so we auto-set them again\n *\n * @param {object} gd\n * @param {[integer]} traces: trace indices to search for axes to clear the types of\n * @param {object} layoutUpdate: any update being done concurrently to the layout,\n * which may supercede clearing the axis types\n */\nvar axLetters = ['x', 'y', 'z'];\nexports.clearAxisTypes = function(gd, traces, layoutUpdate) {\n for(var i = 0; i < traces.length; i++) {\n var trace = gd._fullData[i];\n for(var j = 0; j < 3; j++) {\n var ax = getFromTrace(gd, trace, axLetters[j]);\n\n // do not clear log type - that's never an auto result so must have been intentional\n if(ax && ax.type !== 'log') {\n var axAttr = ax._name;\n var sceneName = ax._id.substr(1);\n if(sceneName.substr(0, 5) === 'scene') {\n if(layoutUpdate[sceneName] !== undefined) continue;\n axAttr = sceneName + '.' + axAttr;\n }\n var typeAttr = axAttr + '.type';\n\n if(layoutUpdate[axAttr] === undefined && layoutUpdate[typeAttr] === undefined) {\n Lib.nestedProperty(gd.layout, typeAttr).set(null);\n }\n }\n }\n }\n};\n\n},{\"../components/color\":367,\"../lib\":515,\"../plots/cartesian/axis_ids\":570,\"../plots/plots\":628,\"../registry\":647,\"fast-isnumeric\":190,\"gl-mat4/fromQuat\":200}],550:[function(_dereq_,module,exports){\n'use strict';\n\nvar main = _dereq_('./plot_api');\n\nexports._doPlot = main._doPlot;\nexports.newPlot = main.newPlot;\nexports.restyle = main.restyle;\nexports.relayout = main.relayout;\nexports.redraw = main.redraw;\nexports.update = main.update;\nexports._guiRestyle = main._guiRestyle;\nexports._guiRelayout = main._guiRelayout;\nexports._guiUpdate = main._guiUpdate;\nexports._storeDirectGUIEdit = main._storeDirectGUIEdit;\nexports.react = main.react;\nexports.extendTraces = main.extendTraces;\nexports.prependTraces = main.prependTraces;\nexports.addTraces = main.addTraces;\nexports.deleteTraces = main.deleteTraces;\nexports.moveTraces = main.moveTraces;\nexports.purge = main.purge;\nexports.addFrames = main.addFrames;\nexports.deleteFrames = main.deleteFrames;\nexports.animate = main.animate;\nexports.setPlotConfig = main.setPlotConfig;\n\nexports.toImage = _dereq_('./to_image');\nexports.validate = _dereq_('./validate');\nexports.downloadImage = _dereq_('../snapshot/download');\n\nvar templateApi = _dereq_('./template_api');\nexports.makeTemplate = templateApi.makeTemplate;\nexports.validateTemplate = templateApi.validateTemplate;\n\n},{\"../snapshot/download\":649,\"./plot_api\":552,\"./template_api\":557,\"./to_image\":558,\"./validate\":559}],551:[function(_dereq_,module,exports){\n'use strict';\n\nvar isPlainObject = _dereq_('../lib/is_plain_object');\nvar noop = _dereq_('../lib/noop');\nvar Loggers = _dereq_('../lib/loggers');\nvar sorterAsc = _dereq_('../lib/search').sorterAsc;\nvar Registry = _dereq_('../registry');\n\n\nexports.containerArrayMatch = _dereq_('./container_array_match');\n\nvar isAddVal = exports.isAddVal = function isAddVal(val) {\n return val === 'add' || isPlainObject(val);\n};\n\nvar isRemoveVal = exports.isRemoveVal = function isRemoveVal(val) {\n return val === null || val === 'remove';\n};\n\n/*\n * applyContainerArrayChanges: for managing arrays of layout components in relayout\n * handles them all with a consistent interface.\n *\n * Here are the supported actions -> relayout calls -> edits we get here\n * (as prepared in _relayout):\n *\n * add an empty obj -> {'annotations[2]': 'add'} -> {2: {'': 'add'}}\n * add a specific obj -> {'annotations[2]': {attrs}} -> {2: {'': {attrs}}}\n * delete an obj -> {'annotations[2]': 'remove'} -> {2: {'': 'remove'}}\n * -> {'annotations[2]': null} -> {2: {'': null}}\n * delete the whole array -> {'annotations': 'remove'} -> {'': {'': 'remove'}}\n * -> {'annotations': null} -> {'': {'': null}}\n * edit an object -> {'annotations[2].text': 'boo'} -> {2: {'text': 'boo'}}\n *\n * You can combine many edits to different objects. Objects are added and edited\n * in ascending order, then removed in descending order.\n * For example, starting with [a, b, c], if you want to:\n * - replace b with d:\n * {'annotations[1]': d, 'annotations[2]': null} (b is item 2 after adding d)\n * - add a new item d between a and b, and edit b:\n * {'annotations[1]': d, 'annotations[2].x': newX} (b is item 2 after adding d)\n * - delete b and edit c:\n * {'annotations[1]': null, 'annotations[2].x': newX} (c is edited before b is removed)\n *\n * You CANNOT combine adding/deleting an item at index `i` with edits to the same index `i`\n * You CANNOT combine replacing/deleting the whole array with anything else (for the same array).\n *\n * @param {HTMLDivElement} gd\n * the DOM element of the graph container div\n * @param {Lib.nestedProperty} componentType: the array we are editing\n * @param {Object} edits\n * the changes to make; keys are indices to edit, values are themselves objects:\n * {attr: newValue} of changes to make to that index (with add/remove behavior\n * in special values of the empty attr)\n * @param {Object} flags\n * the flags for which actions we're going to perform to display these (and\n * any other) changes. If we're already `recalc`ing, we don't need to redraw\n * individual items\n * @param {function} _nestedProperty\n * a (possibly modified for gui edits) nestedProperty constructor\n * The modified version takes a 3rd argument, for a prefix to the attribute\n * string necessary for storing GUI edits\n *\n * @returns {bool} `true` if it managed to complete drawing of the changes\n * `false` would mean the parent should replot.\n */\nexports.applyContainerArrayChanges = function applyContainerArrayChanges(gd, np, edits, flags, _nestedProperty) {\n var componentType = np.astr;\n var supplyComponentDefaults = Registry.getComponentMethod(componentType, 'supplyLayoutDefaults');\n var draw = Registry.getComponentMethod(componentType, 'draw');\n var drawOne = Registry.getComponentMethod(componentType, 'drawOne');\n var replotLater = flags.replot || flags.recalc || (supplyComponentDefaults === noop) || (draw === noop);\n var layout = gd.layout;\n var fullLayout = gd._fullLayout;\n\n if(edits['']) {\n if(Object.keys(edits).length > 1) {\n Loggers.warn('Full array edits are incompatible with other edits',\n componentType);\n }\n\n var fullVal = edits[''][''];\n\n if(isRemoveVal(fullVal)) np.set(null);\n else if(Array.isArray(fullVal)) np.set(fullVal);\n else {\n Loggers.warn('Unrecognized full array edit value', componentType, fullVal);\n return true;\n }\n\n if(replotLater) return false;\n\n supplyComponentDefaults(layout, fullLayout);\n draw(gd);\n return true;\n }\n\n var componentNums = Object.keys(edits).map(Number).sort(sorterAsc);\n var componentArrayIn = np.get();\n var componentArray = componentArrayIn || [];\n // componentArrayFull is used just to keep splices in line between\n // full and input arrays, so private keys can be copied over after\n // redoing supplyDefaults\n // TODO: this assumes componentArray is in gd.layout - which will not be\n // true after we extend this to restyle\n var componentArrayFull = _nestedProperty(fullLayout, componentType).get();\n\n var deletes = [];\n var firstIndexChange = -1;\n var maxIndex = componentArray.length;\n var i;\n var j;\n var componentNum;\n var objEdits;\n var objKeys;\n var objVal;\n var adding, prefix;\n\n // first make the add and edit changes\n for(i = 0; i < componentNums.length; i++) {\n componentNum = componentNums[i];\n objEdits = edits[componentNum];\n objKeys = Object.keys(objEdits);\n objVal = objEdits[''],\n adding = isAddVal(objVal);\n\n if(componentNum < 0 || componentNum > componentArray.length - (adding ? 0 : 1)) {\n Loggers.warn('index out of range', componentType, componentNum);\n continue;\n }\n\n if(objVal !== undefined) {\n if(objKeys.length > 1) {\n Loggers.warn(\n 'Insertion & removal are incompatible with edits to the same index.',\n componentType, componentNum);\n }\n\n if(isRemoveVal(objVal)) {\n deletes.push(componentNum);\n } else if(adding) {\n if(objVal === 'add') objVal = {};\n componentArray.splice(componentNum, 0, objVal);\n if(componentArrayFull) componentArrayFull.splice(componentNum, 0, {});\n } else {\n Loggers.warn('Unrecognized full object edit value',\n componentType, componentNum, objVal);\n }\n\n if(firstIndexChange === -1) firstIndexChange = componentNum;\n } else {\n for(j = 0; j < objKeys.length; j++) {\n prefix = componentType + '[' + componentNum + '].';\n _nestedProperty(componentArray[componentNum], objKeys[j], prefix)\n .set(objEdits[objKeys[j]]);\n }\n }\n }\n\n // now do deletes\n for(i = deletes.length - 1; i >= 0; i--) {\n componentArray.splice(deletes[i], 1);\n // TODO: this drops private keys that had been stored in componentArrayFull\n // does this have any ill effects?\n if(componentArrayFull) componentArrayFull.splice(deletes[i], 1);\n }\n\n if(!componentArray.length) np.set(null);\n else if(!componentArrayIn) np.set(componentArray);\n\n if(replotLater) return false;\n\n supplyComponentDefaults(layout, fullLayout);\n\n // finally draw all the components we need to\n // if we added or removed any, redraw all after it\n if(drawOne !== noop) {\n var indicesToDraw;\n if(firstIndexChange === -1) {\n // there's no re-indexing to do, so only redraw components that changed\n indicesToDraw = componentNums;\n } else {\n // in case the component array was shortened, we still need do call\n // drawOne on the latter items so they get properly removed\n maxIndex = Math.max(componentArray.length, maxIndex);\n indicesToDraw = [];\n for(i = 0; i < componentNums.length; i++) {\n componentNum = componentNums[i];\n if(componentNum >= firstIndexChange) break;\n indicesToDraw.push(componentNum);\n }\n for(i = firstIndexChange; i < maxIndex; i++) {\n indicesToDraw.push(i);\n }\n }\n for(i = 0; i < indicesToDraw.length; i++) {\n drawOne(gd, indicesToDraw[i]);\n }\n } else draw(gd);\n\n return true;\n};\n\n},{\"../lib/is_plain_object\":516,\"../lib/loggers\":519,\"../lib/noop\":524,\"../lib/search\":535,\"../registry\":647,\"./container_array_match\":547}],552:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar hasHover = _dereq_('has-hover');\n\nvar Lib = _dereq_('../lib');\nvar nestedProperty = Lib.nestedProperty;\n\nvar Events = _dereq_('../lib/events');\nvar Queue = _dereq_('../lib/queue');\n\nvar Registry = _dereq_('../registry');\nvar PlotSchema = _dereq_('./plot_schema');\nvar Plots = _dereq_('../plots/plots');\n\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar Drawing = _dereq_('../components/drawing');\nvar Color = _dereq_('../components/color');\nvar initInteractions = _dereq_('../plots/cartesian/graph_interact').initInteractions;\nvar xmlnsNamespaces = _dereq_('../constants/xmlns_namespaces');\nvar clearOutline = _dereq_('../components/selections').clearOutline;\n\nvar dfltConfig = _dereq_('./plot_config').dfltConfig;\nvar manageArrays = _dereq_('./manage_arrays');\nvar helpers = _dereq_('./helpers');\nvar subroutines = _dereq_('./subroutines');\nvar editTypes = _dereq_('./edit_types');\n\nvar AX_NAME_PATTERN = _dereq_('../plots/cartesian/constants').AX_NAME_PATTERN;\n\nvar numericNameWarningCount = 0;\nvar numericNameWarningCountLimit = 5;\n\n/**\n * Internal plot-creation function\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {array of objects} data\n * array of traces, containing the data and display information for each trace\n * @param {object} layout\n * object describing the overall display of the plot,\n * all the stuff that doesn't pertain to any individual trace\n * @param {object} config\n * configuration options (see ./plot_config.js for more info)\n *\n * OR\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {object} figure\n * object containing `data`, `layout`, `config`, and `frames` members\n *\n */\nfunction _doPlot(gd, data, layout, config) {\n var frames;\n\n gd = Lib.getGraphDiv(gd);\n\n // Events.init is idempotent and bails early if gd has already been init'd\n Events.init(gd);\n\n if(Lib.isPlainObject(data)) {\n var obj = data;\n data = obj.data;\n layout = obj.layout;\n config = obj.config;\n frames = obj.frames;\n }\n\n var okToPlot = Events.triggerHandler(gd, 'plotly_beforeplot', [data, layout, config]);\n if(okToPlot === false) return Promise.reject();\n\n // if there's no data or layout, and this isn't yet a plotly plot\n // container, log a warning to help plotly.js users debug\n if(!data && !layout && !Lib.isPlotDiv(gd)) {\n Lib.warn('Calling _doPlot as if redrawing ' +\n 'but this container doesn\\'t yet have a plot.', gd);\n }\n\n function addFrames() {\n if(frames) {\n return exports.addFrames(gd, frames);\n }\n }\n\n // transfer configuration options to gd until we move over to\n // a more OO like model\n setPlotContext(gd, config);\n\n if(!layout) layout = {};\n\n // hook class for plots main container (in case of plotly.js\n // this won't be #embedded-graph or .js-tab-contents)\n d3.select(gd).classed('js-plotly-plot', true);\n\n // off-screen getBoundingClientRect testing space,\n // in #js-plotly-tester (and stored as Drawing.tester)\n // so we can share cached text across tabs\n Drawing.makeTester();\n\n // collect promises for any async actions during plotting\n // any part of the plotting code can push to gd._promises, then\n // before we move to the next step, we check that they're all\n // complete, and empty out the promise list again.\n if(!Array.isArray(gd._promises)) gd._promises = [];\n\n var graphWasEmpty = ((gd.data || []).length === 0 && Array.isArray(data));\n\n // if there is already data on the graph, append the new data\n // if you only want to redraw, pass a non-array for data\n if(Array.isArray(data)) {\n helpers.cleanData(data);\n\n if(graphWasEmpty) gd.data = data;\n else gd.data.push.apply(gd.data, data);\n\n // for routines outside graph_obj that want a clean tab\n // (rather than appending to an existing one) gd.empty\n // is used to determine whether to make a new tab\n gd.empty = false;\n }\n\n if(!gd.layout || graphWasEmpty) {\n gd.layout = helpers.cleanLayout(layout);\n }\n\n Plots.supplyDefaults(gd);\n\n var fullLayout = gd._fullLayout;\n var hasCartesian = fullLayout._has('cartesian');\n\n // so we don't try to re-call _doPlot from inside\n // legend and colorbar, if margins changed\n fullLayout._replotting = true;\n\n // make or remake the framework if we need to\n if(graphWasEmpty || fullLayout._shouldCreateBgLayer) {\n makePlotFramework(gd);\n\n if(fullLayout._shouldCreateBgLayer) {\n delete fullLayout._shouldCreateBgLayer;\n }\n }\n\n // clear gradient and pattern defs on each .plot call, because we know we'll loop through all traces\n Drawing.initGradients(gd);\n Drawing.initPatterns(gd);\n\n // save initial show spikes once per graph\n if(graphWasEmpty) Axes.saveShowSpikeInitial(gd);\n\n // prepare the data and find the autorange\n\n // generate calcdata, if we need to\n // to force redoing calcdata, just delete it before calling _doPlot\n var recalc = !gd.calcdata || gd.calcdata.length !== (gd._fullData || []).length;\n if(recalc) Plots.doCalcdata(gd);\n\n // in case it has changed, attach fullData traces to calcdata\n for(var i = 0; i < gd.calcdata.length; i++) {\n gd.calcdata[i][0].trace = gd._fullData[i];\n }\n\n // make the figure responsive\n if(gd._context.responsive) {\n if(!gd._responsiveChartHandler) {\n // Keep a reference to the resize handler to purge it down the road\n gd._responsiveChartHandler = function() { if(!Lib.isHidden(gd)) Plots.resize(gd); };\n\n // Listen to window resize\n window.addEventListener('resize', gd._responsiveChartHandler);\n }\n } else {\n Lib.clearResponsive(gd);\n }\n\n /*\n * start async-friendly code - now we're actually drawing things\n */\n\n var oldMargins = Lib.extendFlat({}, fullLayout._size);\n\n // draw framework first so that margin-pushing\n // components can position themselves correctly\n var drawFrameworkCalls = 0;\n function drawFramework() {\n var basePlotModules = fullLayout._basePlotModules;\n\n for(var i = 0; i < basePlotModules.length; i++) {\n if(basePlotModules[i].drawFramework) {\n basePlotModules[i].drawFramework(gd);\n }\n }\n\n if(!fullLayout._glcanvas && fullLayout._has('gl')) {\n fullLayout._glcanvas = fullLayout._glcontainer.selectAll('.gl-canvas').data([{\n key: 'contextLayer',\n context: true,\n pick: false\n }, {\n key: 'focusLayer',\n context: false,\n pick: false\n }, {\n key: 'pickLayer',\n context: false,\n pick: true\n }], function(d) { return d.key; });\n\n fullLayout._glcanvas.enter().append('canvas')\n .attr('class', function(d) {\n return 'gl-canvas gl-canvas-' + d.key.replace('Layer', '');\n })\n .style({\n position: 'absolute',\n top: 0,\n left: 0,\n overflow: 'visible',\n 'pointer-events': 'none'\n });\n }\n\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n if(fullLayout._glcanvas) {\n fullLayout._glcanvas\n .attr('width', fullLayout.width * plotGlPixelRatio)\n .attr('height', fullLayout.height * plotGlPixelRatio)\n .style('width', fullLayout.width + 'px')\n .style('height', fullLayout.height + 'px');\n\n var regl = fullLayout._glcanvas.data()[0].regl;\n if(regl) {\n // Unfortunately, this can happen when relayouting to large\n // width/height on some browsers.\n if(Math.floor(fullLayout.width * plotGlPixelRatio) !== regl._gl.drawingBufferWidth ||\n Math.floor(fullLayout.height * plotGlPixelRatio) !== regl._gl.drawingBufferHeight\n ) {\n var msg = 'WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.';\n if(drawFrameworkCalls) {\n Lib.error(msg);\n } else {\n Lib.log(msg + ' Clearing graph and plotting again.');\n Plots.cleanPlot([], {}, gd._fullData, fullLayout);\n Plots.supplyDefaults(gd);\n fullLayout = gd._fullLayout;\n Plots.doCalcdata(gd);\n drawFrameworkCalls++;\n return drawFramework();\n }\n }\n }\n }\n\n if(fullLayout.modebar.orientation === 'h') {\n fullLayout._modebardiv\n .style('height', null)\n .style('width', '100%');\n } else {\n fullLayout._modebardiv\n .style('width', null)\n .style('height', fullLayout.height + 'px');\n }\n\n return Plots.previousPromises(gd);\n }\n\n // draw anything that can affect margins.\n function marginPushers() {\n // First reset the list of things that are allowed to change the margins\n // So any deleted traces or components will be wiped out of the\n // automargin calculation.\n // This means *every* margin pusher must be listed here, even if it\n // doesn't actually try to push the margins until later.\n Plots.clearAutoMarginIds(gd);\n\n subroutines.drawMarginPushers(gd);\n Axes.allowAutoMargin(gd);\n\n // TODO can this be moved elsewhere?\n if(fullLayout._has('pie')) {\n var fullData = gd._fullData;\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(trace.type === 'pie' && trace.automargin) {\n Plots.allowAutoMargin(gd, 'pie.' + trace.uid + '.automargin');\n }\n }\n }\n\n Plots.doAutoMargin(gd);\n return Plots.previousPromises(gd);\n }\n\n // in case the margins changed, draw margin pushers again\n function marginPushersAgain() {\n if(!Plots.didMarginChange(oldMargins, fullLayout._size)) return;\n\n return Lib.syncOrAsync([\n marginPushers,\n subroutines.layoutStyles\n ], gd);\n }\n\n function positionAndAutorange() {\n if(!recalc) {\n doAutoRangeAndConstraints();\n return;\n }\n\n // TODO: autosize extra for text markers and images\n // see https://github.com/plotly/plotly.js/issues/1111\n return Lib.syncOrAsync([\n Registry.getComponentMethod('shapes', 'calcAutorange'),\n Registry.getComponentMethod('annotations', 'calcAutorange'),\n doAutoRangeAndConstraints\n ], gd);\n }\n\n function doAutoRangeAndConstraints() {\n if(gd._transitioning) return;\n\n subroutines.doAutoRangeAndConstraints(gd);\n\n // store initial ranges *after* enforcing constraints, otherwise\n // we will never look like we're at the initial ranges\n if(graphWasEmpty) Axes.saveRangeInitial(gd);\n\n // this one is different from shapes/annotations calcAutorange\n // the others incorporate those components into ax._extremes,\n // this one actually sets the ranges in rangesliders.\n Registry.getComponentMethod('rangeslider', 'calcAutorange')(gd);\n }\n\n // draw ticks, titles, and calculate axis scaling (._b, ._m)\n function drawAxes() {\n return Axes.draw(gd, graphWasEmpty ? '' : 'redraw');\n }\n\n var seq = [\n Plots.previousPromises,\n addFrames,\n drawFramework,\n marginPushers,\n marginPushersAgain\n ];\n\n if(hasCartesian) seq.push(positionAndAutorange);\n\n seq.push(subroutines.layoutStyles);\n if(hasCartesian) {\n seq.push(\n drawAxes,\n function insideTickLabelsAutorange(gd) {\n if(gd._fullLayout._insideTickLabelsAutorange) {\n relayout(gd, gd._fullLayout._insideTickLabelsAutorange).then(function() {\n gd._fullLayout._insideTickLabelsAutorange = undefined;\n });\n }\n }\n );\n }\n\n seq.push(\n subroutines.drawData,\n subroutines.finalDraw,\n initInteractions,\n Plots.addLinks,\n Plots.rehover,\n Plots.redrag,\n Plots.reselect,\n // TODO: doAutoMargin is only needed here for axis automargin, which\n // happens outside of marginPushers where all the other automargins are\n // calculated. Would be much better to separate margin calculations from\n // component drawing - see https://github.com/plotly/plotly.js/issues/2704\n Plots.doAutoMargin,\n saveRangeInitialForInsideTickLabels,\n Plots.previousPromises\n );\n\n function saveRangeInitialForInsideTickLabels(gd) {\n if(gd._fullLayout._insideTickLabelsAutorange) {\n if(graphWasEmpty) Axes.saveRangeInitial(gd, true);\n }\n }\n\n // even if everything we did was synchronous, return a promise\n // so that the caller doesn't care which route we took\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve();\n\n return plotDone.then(function() {\n emitAfterPlot(gd);\n return gd;\n });\n}\n\nfunction emitAfterPlot(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._redrawFromAutoMarginCount) {\n fullLayout._redrawFromAutoMarginCount--;\n } else {\n gd.emit('plotly_afterplot');\n }\n}\n\nfunction setPlotConfig(obj) {\n return Lib.extendFlat(dfltConfig, obj);\n}\n\nfunction setBackground(gd, bgColor) {\n try {\n gd._fullLayout._paper.style('background', bgColor);\n } catch(e) {\n Lib.error(e);\n }\n}\n\nfunction opaqueSetBackground(gd, bgColor) {\n var blend = Color.combine(bgColor, 'white');\n setBackground(gd, blend);\n}\n\nfunction setPlotContext(gd, config) {\n if(!gd._context) {\n gd._context = Lib.extendDeep({}, dfltConfig);\n\n // stash href, used to make robust clipPath URLs\n var base = d3.select('base');\n gd._context._baseUrl = base.size() && base.attr('href') ?\n window.location.href.split('#')[0] :\n '';\n }\n\n var context = gd._context;\n\n var i, keys, key;\n\n if(config) {\n keys = Object.keys(config);\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n if(key === 'editable' || key === 'edits') continue;\n if(key in context) {\n if(key === 'setBackground' && config[key] === 'opaque') {\n context[key] = opaqueSetBackground;\n } else {\n context[key] = config[key];\n }\n }\n }\n\n // map plot3dPixelRatio to plotGlPixelRatio for backward compatibility\n if(config.plot3dPixelRatio && !context.plotGlPixelRatio) {\n context.plotGlPixelRatio = context.plot3dPixelRatio;\n }\n\n // now deal with editable and edits - first editable overrides\n // everything, then edits refines\n var editable = config.editable;\n if(editable !== undefined) {\n // we're not going to *use* context.editable, we're only going to\n // use context.edits... but keep it for the record\n context.editable = editable;\n\n keys = Object.keys(context.edits);\n for(i = 0; i < keys.length; i++) {\n context.edits[keys[i]] = editable;\n }\n }\n if(config.edits) {\n keys = Object.keys(config.edits);\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n if(key in context.edits) {\n context.edits[key] = config.edits[key];\n }\n }\n }\n\n // not part of the user-facing config options\n context._exportedPlot = config._exportedPlot;\n }\n\n // staticPlot forces a bunch of others:\n if(context.staticPlot) {\n context.editable = false;\n context.edits = {};\n context.autosizable = false;\n context.scrollZoom = false;\n context.doubleClick = false;\n context.showTips = false;\n context.showLink = false;\n context.displayModeBar = false;\n }\n\n // make sure hover-only devices have mode bar visible\n if(context.displayModeBar === 'hover' && !hasHover) {\n context.displayModeBar = true;\n }\n\n // default and fallback for setBackground\n if(context.setBackground === 'transparent' || typeof context.setBackground !== 'function') {\n context.setBackground = setBackground;\n }\n\n // Check if gd has a specified widht/height to begin with\n context._hasZeroHeight = context._hasZeroHeight || gd.clientHeight === 0;\n context._hasZeroWidth = context._hasZeroWidth || gd.clientWidth === 0;\n\n // fill context._scrollZoom helper to help manage scrollZoom flaglist\n var szIn = context.scrollZoom;\n var szOut = context._scrollZoom = {};\n if(szIn === true) {\n szOut.cartesian = 1;\n szOut.gl3d = 1;\n szOut.geo = 1;\n szOut.mapbox = 1;\n } else if(typeof szIn === 'string') {\n var parts = szIn.split('+');\n for(i = 0; i < parts.length; i++) {\n szOut[parts[i]] = 1;\n }\n } else if(szIn !== false) {\n szOut.gl3d = 1;\n szOut.geo = 1;\n szOut.mapbox = 1;\n }\n}\n\n\n// convenience function to force a full redraw, mostly for use by plotly.js\nfunction redraw(gd) {\n gd = Lib.getGraphDiv(gd);\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error('This element is not a Plotly plot: ' + gd);\n }\n\n helpers.cleanData(gd.data);\n helpers.cleanLayout(gd.layout);\n\n gd.calcdata = undefined;\n return exports._doPlot(gd).then(function() {\n gd.emit('plotly_redraw');\n return gd;\n });\n}\n\n/**\n * Convenience function to make idempotent plot option obvious to users.\n *\n * @param gd\n * @param {Object[]} data\n * @param {Object} layout\n * @param {Object} config\n */\nfunction newPlot(gd, data, layout, config) {\n gd = Lib.getGraphDiv(gd);\n\n // remove gl contexts\n Plots.cleanPlot([], {}, gd._fullData || [], gd._fullLayout || {});\n\n Plots.purge(gd);\n return exports._doPlot(gd, data, layout, config);\n}\n\n/**\n * Wrap negative indicies to their positive counterparts.\n *\n * @param {Number[]} indices An array of indices\n * @param {Number} maxIndex The maximum index allowable (arr.length - 1)\n */\nfunction positivifyIndices(indices, maxIndex) {\n var parentLength = maxIndex + 1;\n var positiveIndices = [];\n var i;\n var index;\n\n for(i = 0; i < indices.length; i++) {\n index = indices[i];\n if(index < 0) {\n positiveIndices.push(parentLength + index);\n } else {\n positiveIndices.push(index);\n }\n }\n return positiveIndices;\n}\n\n/**\n * Ensures that an index array for manipulating gd.data is valid.\n *\n * Intended for use with addTraces, deleteTraces, and moveTraces.\n *\n * @param gd\n * @param indices\n * @param arrayName\n */\nfunction assertIndexArray(gd, indices, arrayName) {\n var i,\n index;\n\n for(i = 0; i < indices.length; i++) {\n index = indices[i];\n\n // validate that indices are indeed integers\n if(index !== parseInt(index, 10)) {\n throw new Error('all values in ' + arrayName + ' must be integers');\n }\n\n // check that all indices are in bounds for given gd.data array length\n if(index >= gd.data.length || index < -gd.data.length) {\n throw new Error(arrayName + ' must be valid indices for gd.data.');\n }\n\n // check that indices aren't repeated\n if(indices.indexOf(index, i + 1) > -1 ||\n index >= 0 && indices.indexOf(-gd.data.length + index) > -1 ||\n index < 0 && indices.indexOf(gd.data.length + index) > -1) {\n throw new Error('each index in ' + arrayName + ' must be unique.');\n }\n }\n}\n\n/**\n * Private function used by Plotly.moveTraces to check input args\n *\n * @param gd\n * @param currentIndices\n * @param newIndices\n */\nfunction checkMoveTracesArgs(gd, currentIndices, newIndices) {\n // check that gd has attribute 'data' and 'data' is array\n if(!Array.isArray(gd.data)) {\n throw new Error('gd.data must be an array.');\n }\n\n // validate currentIndices array\n if(typeof currentIndices === 'undefined') {\n throw new Error('currentIndices is a required argument.');\n } else if(!Array.isArray(currentIndices)) {\n currentIndices = [currentIndices];\n }\n assertIndexArray(gd, currentIndices, 'currentIndices');\n\n // validate newIndices array if it exists\n if(typeof newIndices !== 'undefined' && !Array.isArray(newIndices)) {\n newIndices = [newIndices];\n }\n if(typeof newIndices !== 'undefined') {\n assertIndexArray(gd, newIndices, 'newIndices');\n }\n\n // check currentIndices and newIndices are the same length if newIdices exists\n if(typeof newIndices !== 'undefined' && currentIndices.length !== newIndices.length) {\n throw new Error('current and new indices must be of equal length.');\n }\n}\n/**\n * A private function to reduce the type checking clutter in addTraces.\n *\n * @param gd\n * @param traces\n * @param newIndices\n */\nfunction checkAddTracesArgs(gd, traces, newIndices) {\n var i, value;\n\n // check that gd has attribute 'data' and 'data' is array\n if(!Array.isArray(gd.data)) {\n throw new Error('gd.data must be an array.');\n }\n\n // make sure traces exists\n if(typeof traces === 'undefined') {\n throw new Error('traces must be defined.');\n }\n\n // make sure traces is an array\n if(!Array.isArray(traces)) {\n traces = [traces];\n }\n\n // make sure each value in traces is an object\n for(i = 0; i < traces.length; i++) {\n value = traces[i];\n if(typeof value !== 'object' || (Array.isArray(value) || value === null)) {\n throw new Error('all values in traces array must be non-array objects');\n }\n }\n\n // make sure we have an index for each trace\n if(typeof newIndices !== 'undefined' && !Array.isArray(newIndices)) {\n newIndices = [newIndices];\n }\n if(typeof newIndices !== 'undefined' && newIndices.length !== traces.length) {\n throw new Error(\n 'if indices is specified, traces.length must equal indices.length'\n );\n }\n}\n\n/**\n * A private function to reduce the type checking clutter in spliceTraces.\n * Get all update Properties from gd.data. Validate inputs and outputs.\n * Used by prependTrace and extendTraces\n *\n * @param gd\n * @param update\n * @param indices\n * @param maxPoints\n */\nfunction assertExtendTracesArgs(gd, update, indices, maxPoints) {\n var maxPointsIsObject = Lib.isPlainObject(maxPoints);\n\n if(!Array.isArray(gd.data)) {\n throw new Error('gd.data must be an array');\n }\n if(!Lib.isPlainObject(update)) {\n throw new Error('update must be a key:value object');\n }\n\n if(typeof indices === 'undefined') {\n throw new Error('indices must be an integer or array of integers');\n }\n\n assertIndexArray(gd, indices, 'indices');\n\n for(var key in update) {\n /*\n * Verify that the attribute to be updated contains as many trace updates\n * as indices. Failure must result in throw and no-op\n */\n if(!Array.isArray(update[key]) || update[key].length !== indices.length) {\n throw new Error('attribute ' + key + ' must be an array of length equal to indices array length');\n }\n\n /*\n * if maxPoints is an object it must match keys and array lengths of 'update' 1:1\n */\n if(maxPointsIsObject &&\n (!(key in maxPoints) || !Array.isArray(maxPoints[key]) ||\n maxPoints[key].length !== update[key].length)) {\n throw new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' +\n 'corrispondence with the keys and number of traces in the update object');\n }\n }\n}\n\n/**\n * A private function to reduce the type checking clutter in spliceTraces.\n *\n * @param {Object|HTMLDivElement} gd\n * @param {Object} update\n * @param {Number[]} indices\n * @param {Number||Object} maxPoints\n * @return {Object[]}\n */\nfunction getExtendProperties(gd, update, indices, maxPoints) {\n var maxPointsIsObject = Lib.isPlainObject(maxPoints);\n var updateProps = [];\n var trace, target, prop, insert, maxp;\n\n // allow scalar index to represent a single trace position\n if(!Array.isArray(indices)) indices = [indices];\n\n // negative indices are wrapped around to their positive value. Equivalent to python indexing.\n indices = positivifyIndices(indices, gd.data.length - 1);\n\n // loop through all update keys and traces and harvest validated data.\n for(var key in update) {\n for(var j = 0; j < indices.length; j++) {\n /*\n * Choose the trace indexed by the indices map argument and get the prop setter-getter\n * instance that references the key and value for this particular trace.\n */\n trace = gd.data[indices[j]];\n prop = nestedProperty(trace, key);\n\n /*\n * Target is the existing gd.data.trace.dataArray value like \"x\" or \"marker.size\"\n * Target must exist as an Array to allow the extend operation to be performed.\n */\n target = prop.get();\n insert = update[key][j];\n\n if(!Lib.isArrayOrTypedArray(insert)) {\n throw new Error('attribute: ' + key + ' index: ' + j + ' must be an array');\n }\n if(!Lib.isArrayOrTypedArray(target)) {\n throw new Error('cannot extend missing or non-array attribute: ' + key);\n }\n if(target.constructor !== insert.constructor) {\n throw new Error('cannot extend array with an array of a different type: ' + key);\n }\n\n /*\n * maxPoints may be an object map or a scalar. If object select the key:value, else\n * Use the scalar maxPoints for all key and trace combinations.\n */\n maxp = maxPointsIsObject ? maxPoints[key][j] : maxPoints;\n\n // could have chosen null here, -1 just tells us to not take a window\n if(!isNumeric(maxp)) maxp = -1;\n\n /*\n * Wrap the nestedProperty in an object containing required data\n * for lengthening and windowing this particular trace - key combination.\n * Flooring maxp mirrors the behaviour of floats in the Array.slice JSnative function.\n */\n updateProps.push({\n prop: prop,\n target: target,\n insert: insert,\n maxp: Math.floor(maxp)\n });\n }\n }\n\n // all target and insertion data now validated\n return updateProps;\n}\n\n/**\n * A private function to key Extend and Prepend traces DRY\n *\n * @param {Object|HTMLDivElement} gd\n * @param {Object} update\n * @param {Number[]} indices\n * @param {Number||Object} maxPoints\n * @param {Function} updateArray\n * @return {Object}\n */\nfunction spliceTraces(gd, update, indices, maxPoints, updateArray) {\n assertExtendTracesArgs(gd, update, indices, maxPoints);\n\n var updateProps = getExtendProperties(gd, update, indices, maxPoints);\n var undoUpdate = {};\n var undoPoints = {};\n\n for(var i = 0; i < updateProps.length; i++) {\n var prop = updateProps[i].prop;\n var maxp = updateProps[i].maxp;\n\n // return new array and remainder\n var out = updateArray(updateProps[i].target, updateProps[i].insert, maxp);\n prop.set(out[0]);\n\n // build the inverse update object for the undo operation\n if(!Array.isArray(undoUpdate[prop.astr])) undoUpdate[prop.astr] = [];\n undoUpdate[prop.astr].push(out[1]);\n\n // build the matching maxPoints undo object containing original trace lengths\n if(!Array.isArray(undoPoints[prop.astr])) undoPoints[prop.astr] = [];\n undoPoints[prop.astr].push(updateProps[i].target.length);\n }\n\n return {update: undoUpdate, maxPoints: undoPoints};\n}\n\nfunction concatTypedArray(arr0, arr1) {\n var arr2 = new arr0.constructor(arr0.length + arr1.length);\n arr2.set(arr0);\n arr2.set(arr1, arr0.length);\n return arr2;\n}\n\n/**\n * extend && prepend traces at indices with update arrays, window trace lengths to maxPoints\n *\n * Extend and Prepend have identical APIs. Prepend inserts an array at the head while Extend\n * inserts an array off the tail. Prepend truncates the tail of the array - counting maxPoints\n * from the head, whereas Extend truncates the head of the array, counting backward maxPoints\n * from the tail.\n *\n * If maxPoints is undefined, nonNumeric, negative or greater than extended trace length no\n * truncation / windowing will be performed. If its zero, well the whole trace is truncated.\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object} update The key:array map of target attributes to extend\n * @param {Number|Number[]} indices The locations of traces to be extended\n * @param {Number|Object} [maxPoints] Number of points for trace window after lengthening.\n *\n */\nfunction extendTraces(gd, update, indices, maxPoints) {\n gd = Lib.getGraphDiv(gd);\n\n function updateArray(target, insert, maxp) {\n var newArray, remainder;\n\n if(Lib.isTypedArray(target)) {\n if(maxp < 0) {\n var none = new target.constructor(0);\n var both = concatTypedArray(target, insert);\n\n if(maxp < 0) {\n newArray = both;\n remainder = none;\n } else {\n newArray = none;\n remainder = both;\n }\n } else {\n newArray = new target.constructor(maxp);\n remainder = new target.constructor(target.length + insert.length - maxp);\n\n if(maxp === insert.length) {\n newArray.set(insert);\n remainder.set(target);\n } else if(maxp < insert.length) {\n var numberOfItemsFromInsert = insert.length - maxp;\n\n newArray.set(insert.subarray(numberOfItemsFromInsert));\n remainder.set(target);\n remainder.set(insert.subarray(0, numberOfItemsFromInsert), target.length);\n } else {\n var numberOfItemsFromTarget = maxp - insert.length;\n var targetBegin = target.length - numberOfItemsFromTarget;\n\n newArray.set(target.subarray(targetBegin));\n newArray.set(insert, numberOfItemsFromTarget);\n remainder.set(target.subarray(0, targetBegin));\n }\n }\n } else {\n newArray = target.concat(insert);\n remainder = (maxp >= 0 && maxp < newArray.length) ?\n newArray.splice(0, newArray.length - maxp) :\n [];\n }\n\n return [newArray, remainder];\n }\n\n var undo = spliceTraces(gd, update, indices, maxPoints, updateArray);\n var promise = exports.redraw(gd);\n var undoArgs = [gd, undo.update, indices, undo.maxPoints];\n Queue.add(gd, exports.prependTraces, undoArgs, extendTraces, arguments);\n\n return promise;\n}\n\nfunction prependTraces(gd, update, indices, maxPoints) {\n gd = Lib.getGraphDiv(gd);\n\n function updateArray(target, insert, maxp) {\n var newArray, remainder;\n\n if(Lib.isTypedArray(target)) {\n if(maxp <= 0) {\n var none = new target.constructor(0);\n var both = concatTypedArray(insert, target);\n\n if(maxp < 0) {\n newArray = both;\n remainder = none;\n } else {\n newArray = none;\n remainder = both;\n }\n } else {\n newArray = new target.constructor(maxp);\n remainder = new target.constructor(target.length + insert.length - maxp);\n\n if(maxp === insert.length) {\n newArray.set(insert);\n remainder.set(target);\n } else if(maxp < insert.length) {\n var numberOfItemsFromInsert = insert.length - maxp;\n\n newArray.set(insert.subarray(0, numberOfItemsFromInsert));\n remainder.set(insert.subarray(numberOfItemsFromInsert));\n remainder.set(target, numberOfItemsFromInsert);\n } else {\n var numberOfItemsFromTarget = maxp - insert.length;\n\n newArray.set(insert);\n newArray.set(target.subarray(0, numberOfItemsFromTarget), insert.length);\n remainder.set(target.subarray(numberOfItemsFromTarget));\n }\n }\n } else {\n newArray = insert.concat(target);\n remainder = (maxp >= 0 && maxp < newArray.length) ?\n newArray.splice(maxp, newArray.length) :\n [];\n }\n\n return [newArray, remainder];\n }\n\n var undo = spliceTraces(gd, update, indices, maxPoints, updateArray);\n var promise = exports.redraw(gd);\n var undoArgs = [gd, undo.update, indices, undo.maxPoints];\n Queue.add(gd, exports.extendTraces, undoArgs, prependTraces, arguments);\n\n return promise;\n}\n\n/**\n * Add data traces to an existing graph div.\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object[]} gd.data The array of traces we're adding to\n * @param {Object[]|Object} traces The object or array of objects to add\n * @param {Number[]|Number} [newIndices=[gd.data.length]] Locations to add traces\n *\n */\nfunction addTraces(gd, traces, newIndices) {\n gd = Lib.getGraphDiv(gd);\n\n var currentIndices = [];\n var undoFunc = exports.deleteTraces;\n var redoFunc = addTraces;\n var undoArgs = [gd, currentIndices];\n var redoArgs = [gd, traces]; // no newIndices here\n var i;\n var promise;\n\n // all validation is done elsewhere to remove clutter here\n checkAddTracesArgs(gd, traces, newIndices);\n\n // make sure traces is an array\n if(!Array.isArray(traces)) {\n traces = [traces];\n }\n\n // make sure traces do not repeat existing ones\n traces = traces.map(function(trace) {\n return Lib.extendFlat({}, trace);\n });\n\n helpers.cleanData(traces);\n\n // add the traces to gd.data (no redrawing yet!)\n for(i = 0; i < traces.length; i++) {\n gd.data.push(traces[i]);\n }\n\n // to continue, we need to call moveTraces which requires currentIndices\n for(i = 0; i < traces.length; i++) {\n currentIndices.push(-traces.length + i);\n }\n\n // if the user didn't define newIndices, they just want the traces appended\n // i.e., we can simply redraw and be done\n if(typeof newIndices === 'undefined') {\n promise = exports.redraw(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n return promise;\n }\n\n // make sure indices is property defined\n if(!Array.isArray(newIndices)) {\n newIndices = [newIndices];\n }\n\n try {\n // this is redundant, but necessary to not catch later possible errors!\n checkMoveTracesArgs(gd, currentIndices, newIndices);\n } catch(error) {\n // something went wrong, reset gd to be safe and rethrow error\n gd.data.splice(gd.data.length - traces.length, traces.length);\n throw error;\n }\n\n // if we're here, the user has defined specific places to place the new traces\n // this requires some extra work that moveTraces will do\n Queue.startSequence(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n promise = exports.moveTraces(gd, currentIndices, newIndices);\n Queue.stopSequence(gd);\n return promise;\n}\n\n/**\n * Delete traces at `indices` from gd.data array.\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object[]} gd.data The array of traces we're removing from\n * @param {Number|Number[]} indices The indices\n */\nfunction deleteTraces(gd, indices) {\n gd = Lib.getGraphDiv(gd);\n\n var traces = [];\n var undoFunc = exports.addTraces;\n var redoFunc = deleteTraces;\n var undoArgs = [gd, traces, indices];\n var redoArgs = [gd, indices];\n var i;\n var deletedTrace;\n\n // make sure indices are defined\n if(typeof indices === 'undefined') {\n throw new Error('indices must be an integer or array of integers.');\n } else if(!Array.isArray(indices)) {\n indices = [indices];\n }\n assertIndexArray(gd, indices, 'indices');\n\n // convert negative indices to positive indices\n indices = positivifyIndices(indices, gd.data.length - 1);\n\n // we want descending here so that splicing later doesn't affect indexing\n indices.sort(Lib.sorterDes);\n for(i = 0; i < indices.length; i += 1) {\n deletedTrace = gd.data.splice(indices[i], 1)[0];\n traces.push(deletedTrace);\n }\n\n var promise = exports.redraw(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return promise;\n}\n\n/**\n * Move traces at currentIndices array to locations in newIndices array.\n *\n * If newIndices is omitted, currentIndices will be moved to the end. E.g.,\n * these are equivalent:\n *\n * Plotly.moveTraces(gd, [1, 2, 3], [-3, -2, -1])\n * Plotly.moveTraces(gd, [1, 2, 3])\n *\n * @param {Object|HTMLDivElement} gd The graph div\n * @param {Object[]} gd.data The array of traces we're removing from\n * @param {Number|Number[]} currentIndices The locations of traces to be moved\n * @param {Number|Number[]} [newIndices] The locations to move traces to\n *\n * Example calls:\n *\n * // move trace i to location x\n * Plotly.moveTraces(gd, i, x)\n *\n * // move trace i to end of array\n * Plotly.moveTraces(gd, i)\n *\n * // move traces i, j, k to end of array (i != j != k)\n * Plotly.moveTraces(gd, [i, j, k])\n *\n * // move traces [i, j, k] to [x, y, z] (i != j != k) (x != y != z)\n * Plotly.moveTraces(gd, [i, j, k], [x, y, z])\n *\n * // reorder all traces (assume there are 5--a, b, c, d, e)\n * Plotly.moveTraces(gd, [b, d, e, a, c]) // same as 'move to end'\n */\nfunction moveTraces(gd, currentIndices, newIndices) {\n gd = Lib.getGraphDiv(gd);\n\n var newData = [];\n var movingTraceMap = [];\n var undoFunc = moveTraces;\n var redoFunc = moveTraces;\n var undoArgs = [gd, newIndices, currentIndices];\n var redoArgs = [gd, currentIndices, newIndices];\n var i;\n\n // to reduce complexity here, check args elsewhere\n // this throws errors where appropriate\n checkMoveTracesArgs(gd, currentIndices, newIndices);\n\n // make sure currentIndices is an array\n currentIndices = Array.isArray(currentIndices) ? currentIndices : [currentIndices];\n\n // if undefined, define newIndices to point to the end of gd.data array\n if(typeof newIndices === 'undefined') {\n newIndices = [];\n for(i = 0; i < currentIndices.length; i++) {\n newIndices.push(-currentIndices.length + i);\n }\n }\n\n // make sure newIndices is an array if it's user-defined\n newIndices = Array.isArray(newIndices) ? newIndices : [newIndices];\n\n // convert negative indices to positive indices (they're the same length)\n currentIndices = positivifyIndices(currentIndices, gd.data.length - 1);\n newIndices = positivifyIndices(newIndices, gd.data.length - 1);\n\n // at this point, we've coerced the index arrays into predictable forms\n\n // get the traces that aren't being moved around\n for(i = 0; i < gd.data.length; i++) {\n // if index isn't in currentIndices, include it in ignored!\n if(currentIndices.indexOf(i) === -1) {\n newData.push(gd.data[i]);\n }\n }\n\n // get a mapping of indices to moving traces\n for(i = 0; i < currentIndices.length; i++) {\n movingTraceMap.push({newIndex: newIndices[i], trace: gd.data[currentIndices[i]]});\n }\n\n // reorder this mapping by newIndex, ascending\n movingTraceMap.sort(function(a, b) {\n return a.newIndex - b.newIndex;\n });\n\n // now, add the moving traces back in, in order!\n for(i = 0; i < movingTraceMap.length; i += 1) {\n newData.splice(movingTraceMap[i].newIndex, 0, movingTraceMap[i].trace);\n }\n\n gd.data = newData;\n\n var promise = exports.redraw(gd);\n Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return promise;\n}\n\n/**\n * restyle: update trace attributes of an existing plot\n *\n * Can be called two ways.\n *\n * Signature 1:\n * @param {String | HTMLDivElement} gd\n * the id or DOM element of the graph container div\n * @param {String} astr\n * attribute string (like `'marker.symbol'`) to update\n * @param {*} val\n * value to give this attribute\n * @param {Number[] | Number} [traces]\n * integer or array of integers for the traces to alter (all if omitted)\n *\n * Signature 2:\n * @param {String | HTMLDivElement} gd\n * (as in signature 1)\n * @param {Object} aobj\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * allows setting multiple attributes simultaneously\n * @param {Number[] | Number} [traces]\n * (as in signature 1)\n *\n * `val` (or `val1`, `val2` ... in the object form) can be an array,\n * to apply different values to each trace.\n *\n * If the array is too short, it will wrap around (useful for\n * style files that want to specify cyclical default values).\n */\nfunction restyle(gd, astr, val, _traces) {\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n var aobj = {};\n if(typeof astr === 'string') aobj[astr] = val;\n else if(Lib.isPlainObject(astr)) {\n // the 3-arg form\n aobj = Lib.extendFlat({}, astr);\n if(_traces === undefined) _traces = val;\n } else {\n Lib.warn('Restyle fail.', astr, val, _traces);\n return Promise.reject();\n }\n\n if(Object.keys(aobj).length) gd.changed = true;\n\n var traces = helpers.coerceTraceIndices(gd, _traces);\n\n var specs = _restyle(gd, aobj, traces);\n var flags = specs.flags;\n\n // clear calcdata and/or axis types if required so they get regenerated\n if(flags.calc) gd.calcdata = undefined;\n if(flags.clearAxisTypes) helpers.clearAxisTypes(gd, traces, {});\n\n // fill in redraw sequence\n var seq = [];\n\n if(flags.fullReplot) {\n seq.push(exports._doPlot);\n } else {\n seq.push(Plots.previousPromises);\n\n // maybe only call Plots.supplyDataDefaults in the splom case,\n // to skip over long and slow axes defaults\n Plots.supplyDefaults(gd);\n\n if(flags.markerSize) {\n Plots.doCalcdata(gd);\n addAxRangeSequence(seq);\n\n // TODO\n // if all axes have autorange:false, then\n // proceed to subroutines.doTraceStyle(),\n // otherwise we must go through addAxRangeSequence,\n // which in general must redraws 'all' axes\n }\n\n if(flags.style) seq.push(subroutines.doTraceStyle);\n if(flags.colorbars) seq.push(subroutines.doColorBars);\n\n seq.push(emitAfterPlot);\n }\n\n seq.push(\n Plots.rehover,\n Plots.redrag,\n Plots.reselect\n );\n\n Queue.add(gd,\n restyle, [gd, specs.undoit, specs.traces],\n restyle, [gd, specs.redoit, specs.traces]\n );\n\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve();\n\n return plotDone.then(function() {\n gd.emit('plotly_restyle', specs.eventData);\n return gd;\n });\n}\n\n// for undo: undefined initial vals must be turned into nulls\n// so that we unset rather than ignore them\nfunction undefinedToNull(val) {\n if(val === undefined) return null;\n return val;\n}\n\n/**\n * Factory function to wrap nestedProperty with GUI edits if necessary\n * with GUI edits we add an optional prefix to the nestedProperty constructor\n * to prepend to the attribute string in the preGUI store.\n */\nfunction makeNP(preGUI, guiEditFlag) {\n if(!guiEditFlag) return nestedProperty;\n\n return function(container, attr, prefix) {\n var np = nestedProperty(container, attr);\n var npSet = np.set;\n np.set = function(val) {\n var fullAttr = (prefix || '') + attr;\n storeCurrent(fullAttr, np.get(), val, preGUI);\n npSet(val);\n };\n return np;\n };\n}\n\nfunction storeCurrent(attr, val, newVal, preGUI) {\n if(Array.isArray(val) || Array.isArray(newVal)) {\n var arrayVal = Array.isArray(val) ? val : [];\n var arrayNew = Array.isArray(newVal) ? newVal : [];\n var maxLen = Math.max(arrayVal.length, arrayNew.length);\n for(var i = 0; i < maxLen; i++) {\n storeCurrent(attr + '[' + i + ']', arrayVal[i], arrayNew[i], preGUI);\n }\n } else if(Lib.isPlainObject(val) || Lib.isPlainObject(newVal)) {\n var objVal = Lib.isPlainObject(val) ? val : {};\n var objNew = Lib.isPlainObject(newVal) ? newVal : {};\n var objBoth = Lib.extendFlat({}, objVal, objNew);\n for(var key in objBoth) {\n storeCurrent(attr + '.' + key, objVal[key], objNew[key], preGUI);\n }\n } else if(preGUI[attr] === undefined) {\n preGUI[attr] = undefinedToNull(val);\n }\n}\n\n/**\n * storeDirectGUIEdit: for routines that skip restyle/relayout and mock it\n * by emitting a plotly_restyle or plotly_relayout event, this routine\n * keeps track of the initial state in _preGUI for use by uirevision\n * Does *not* apply these changes to data/layout - that's the responsibility\n * of the calling routine.\n *\n * @param {object} container: the input attributes container (eg `layout` or a `trace`)\n * @param {object} preGUI: where original values should be stored, either\n * `layout._preGUI` or `layout._tracePreGUI[uid]`\n * @param {object} edits: the {attr: val} object as normally passed to `relayout` etc\n */\nfunction _storeDirectGUIEdit(container, preGUI, edits) {\n for(var attr in edits) {\n var np = nestedProperty(container, attr);\n storeCurrent(attr, np.get(), edits[attr], preGUI);\n }\n}\n\nfunction _restyle(gd, aobj, traces) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var data = gd.data;\n var guiEditFlag = fullLayout._guiEditing;\n var layoutNP = makeNP(fullLayout._preGUI, guiEditFlag);\n var eventData = Lib.extendDeepAll({}, aobj);\n var i;\n\n cleanDeprecatedAttributeKeys(aobj);\n\n // initialize flags\n var flags = editTypes.traceFlags();\n\n // copies of the change (and previous values of anything affected)\n // for the undo / redo queue\n var redoit = {};\n var undoit = {};\n var axlist;\n\n // make a new empty vals array for undoit\n function a0() { return traces.map(function() { return undefined; }); }\n\n // for autoranging multiple axes\n function addToAxlist(axid) {\n var axName = Axes.id2name(axid);\n if(axlist.indexOf(axName) === -1) axlist.push(axName);\n }\n\n function autorangeAttr(axName) { return 'LAYOUT' + axName + '.autorange'; }\n\n function rangeAttr(axName) { return 'LAYOUT' + axName + '.range'; }\n\n function getFullTrace(traceIndex) {\n // usually fullData maps 1:1 onto data, but with groupby transforms\n // the fullData index can be greater. Take the *first* matching trace.\n for(var j = traceIndex; j < fullData.length; j++) {\n if(fullData[j]._input === data[traceIndex]) return fullData[j];\n }\n // should never get here - and if we *do* it should cause an error\n // later on undefined fullTrace is passed to nestedProperty.\n }\n\n // for attrs that interact (like scales & autoscales), save the\n // old vals before making the change\n // val=undefined will not set a value, just record what the value was.\n // val=null will delete the attribute\n // attr can be an array to set several at once (all to the same val)\n function doextra(attr, val, i) {\n if(Array.isArray(attr)) {\n attr.forEach(function(a) { doextra(a, val, i); });\n return;\n }\n // quit if explicitly setting this elsewhere\n if(attr in aobj || helpers.hasParent(aobj, attr)) return;\n\n var extraparam;\n if(attr.substr(0, 6) === 'LAYOUT') {\n extraparam = layoutNP(gd.layout, attr.replace('LAYOUT', ''));\n } else {\n var tracei = traces[i];\n var preGUI = fullLayout._tracePreGUI[getFullTrace(tracei)._fullInput.uid];\n extraparam = makeNP(preGUI, guiEditFlag)(data[tracei], attr);\n }\n\n if(!(attr in undoit)) {\n undoit[attr] = a0();\n }\n if(undoit[attr][i] === undefined) {\n undoit[attr][i] = undefinedToNull(extraparam.get());\n }\n if(val !== undefined) {\n extraparam.set(val);\n }\n }\n\n function allBins(binAttr) {\n return function(j) {\n return fullData[j][binAttr];\n };\n }\n\n function arrayBins(binAttr) {\n return function(vij, j) {\n return vij === false ? fullData[traces[j]][binAttr] : null;\n };\n }\n\n // now make the changes to gd.data (and occasionally gd.layout)\n // and figure out what kind of graphics update we need to do\n for(var ai in aobj) {\n if(helpers.hasParent(aobj, ai)) {\n throw new Error('cannot set ' + ai + ' and a parent attribute simultaneously');\n }\n\n var vi = aobj[ai];\n var cont;\n var contFull;\n var param;\n var oldVal;\n var newVal;\n var valObject;\n\n // Backward compatibility shim for turning histogram autobin on,\n // or freezing previous autobinned values.\n // Replace obsolete `autobin(x|y): true` with `(x|y)bins: null`\n // and `autobin(x|y): false` with the `(x|y)bins` in `fullData`\n if(ai === 'autobinx' || ai === 'autobiny') {\n ai = ai.charAt(ai.length - 1) + 'bins';\n if(Array.isArray(vi)) vi = vi.map(arrayBins(ai));\n else if(vi === false) vi = traces.map(allBins(ai));\n else vi = null;\n }\n\n redoit[ai] = vi;\n\n if(ai.substr(0, 6) === 'LAYOUT') {\n param = layoutNP(gd.layout, ai.replace('LAYOUT', ''));\n undoit[ai] = [undefinedToNull(param.get())];\n // since we're allowing val to be an array, allow it here too,\n // even though that's meaningless\n param.set(Array.isArray(vi) ? vi[0] : vi);\n // ironically, the layout attrs in restyle only require replot,\n // not relayout\n flags.calc = true;\n continue;\n }\n\n // set attribute in gd.data\n undoit[ai] = a0();\n for(i = 0; i < traces.length; i++) {\n cont = data[traces[i]];\n contFull = getFullTrace(traces[i]);\n var preGUI = fullLayout._tracePreGUI[contFull._fullInput.uid];\n param = makeNP(preGUI, guiEditFlag)(cont, ai);\n oldVal = param.get();\n newVal = Array.isArray(vi) ? vi[i % vi.length] : vi;\n\n if(newVal === undefined) continue;\n\n var finalPart = param.parts[param.parts.length - 1];\n var prefix = ai.substr(0, ai.length - finalPart.length - 1);\n var prefixDot = prefix ? prefix + '.' : '';\n var innerContFull = prefix ?\n nestedProperty(contFull, prefix).get() : contFull;\n\n valObject = PlotSchema.getTraceValObject(contFull, param.parts);\n\n if(valObject && valObject.impliedEdits && newVal !== null) {\n for(var impliedKey in valObject.impliedEdits) {\n doextra(Lib.relativeAttr(ai, impliedKey), valObject.impliedEdits[impliedKey], i);\n }\n } else if((finalPart === 'thicknessmode' || finalPart === 'lenmode') &&\n oldVal !== newVal &&\n (newVal === 'fraction' || newVal === 'pixels') &&\n innerContFull\n ) {\n // changing colorbar size modes,\n // make the resulting size not change\n // note that colorbar fractional sizing is based on the\n // original plot size, before anything (like a colorbar)\n // increases the margins\n\n var gs = fullLayout._size;\n var orient = innerContFull.orient;\n var topOrBottom = (orient === 'top') || (orient === 'bottom');\n if(finalPart === 'thicknessmode') {\n var thicknorm = topOrBottom ? gs.h : gs.w;\n doextra(prefixDot + 'thickness', innerContFull.thickness *\n (newVal === 'fraction' ? 1 / thicknorm : thicknorm), i);\n } else {\n var lennorm = topOrBottom ? gs.w : gs.h;\n doextra(prefixDot + 'len', innerContFull.len *\n (newVal === 'fraction' ? 1 / lennorm : lennorm), i);\n }\n } else if(ai === 'type' && (\n (newVal === 'pie') !== (oldVal === 'pie') ||\n (newVal === 'funnelarea') !== (oldVal === 'funnelarea')\n )) {\n var labelsTo = 'x';\n var valuesTo = 'y';\n if((newVal === 'bar' || oldVal === 'bar') && cont.orientation === 'h') {\n labelsTo = 'y';\n valuesTo = 'x';\n }\n Lib.swapAttrs(cont, ['?', '?src'], 'labels', labelsTo);\n Lib.swapAttrs(cont, ['d?', '?0'], 'label', labelsTo);\n Lib.swapAttrs(cont, ['?', '?src'], 'values', valuesTo);\n\n if(oldVal === 'pie' || oldVal === 'funnelarea') {\n nestedProperty(cont, 'marker.color')\n .set(nestedProperty(cont, 'marker.colors').get());\n\n // super kludgy - but if all pies are gone we won't remove them otherwise\n fullLayout._pielayer.selectAll('g.trace').remove();\n } else if(Registry.traceIs(cont, 'cartesian')) {\n nestedProperty(cont, 'marker.colors')\n .set(nestedProperty(cont, 'marker.color').get());\n }\n }\n\n undoit[ai][i] = undefinedToNull(oldVal);\n // set the new value - if val is an array, it's one el per trace\n // first check for attributes that get more complex alterations\n var swapAttrs = [\n 'swapxy', 'swapxyaxes', 'orientation', 'orientationaxes'\n ];\n if(swapAttrs.indexOf(ai) !== -1) {\n // setting an orientation: make sure it's changing\n // before we swap everything else\n if(ai === 'orientation') {\n param.set(newVal);\n // obnoxious that we need this level of coupling... but in order to\n // properly handle setting orientation to `null` we need to mimic\n // the logic inside Bars.supplyDefaults for default orientation\n var defaultOrientation = (cont.x && !cont.y) ? 'h' : 'v';\n if((param.get() || defaultOrientation) === contFull.orientation) {\n continue;\n }\n } else if(ai === 'orientationaxes') {\n // orientationaxes has no value,\n // it flips everything and the axes\n\n cont.orientation =\n {v: 'h', h: 'v'}[contFull.orientation];\n }\n helpers.swapXYData(cont);\n flags.calc = flags.clearAxisTypes = true;\n } else if(Plots.dataArrayContainers.indexOf(param.parts[0]) !== -1) {\n // TODO: use manageArrays.applyContainerArrayChanges here too\n helpers.manageArrayContainers(param, newVal, undoit);\n flags.calc = true;\n } else {\n if(valObject) {\n // must redo calcdata when restyling array values of arrayOk attributes\n // ... but no need to this for regl-based traces\n if(valObject.arrayOk &&\n !Registry.traceIs(contFull, 'regl') &&\n (Lib.isArrayOrTypedArray(newVal) || Lib.isArrayOrTypedArray(oldVal))\n ) {\n flags.calc = true;\n } else editTypes.update(flags, valObject);\n } else {\n /*\n * if we couldn't find valObject, assume a full recalc.\n * This can happen if you're changing type and making\n * some other edits too, so the modules we're\n * looking at don't have these attributes in them.\n */\n flags.calc = true;\n }\n\n // all the other ones, just modify that one attribute\n param.set(newVal);\n }\n }\n\n // swap the data attributes of the relevant x and y axes?\n if(['swapxyaxes', 'orientationaxes'].indexOf(ai) !== -1) {\n Axes.swap(gd, traces);\n }\n\n // swap hovermode if set to \"compare x/y data\"\n if(ai === 'orientationaxes') {\n var hovermode = nestedProperty(gd.layout, 'hovermode');\n var h = hovermode.get();\n if(h === 'x') {\n hovermode.set('y');\n } else if(h === 'y') {\n hovermode.set('x');\n } else if(h === 'x unified') {\n hovermode.set('y unified');\n } else if(h === 'y unified') {\n hovermode.set('x unified');\n }\n }\n\n // Major enough changes deserve autoscale and\n // non-reversed axes so people don't get confused\n //\n // Note: autobin (or its new analog bin clearing) is not included here\n // since we're not pushing bins back to gd.data, so if we have bin\n // info it was explicitly provided by the user.\n if(['orientation', 'type'].indexOf(ai) !== -1) {\n axlist = [];\n for(i = 0; i < traces.length; i++) {\n var trace = data[traces[i]];\n\n if(Registry.traceIs(trace, 'cartesian')) {\n addToAxlist(trace.xaxis || 'x');\n addToAxlist(trace.yaxis || 'y');\n }\n }\n\n doextra(axlist.map(autorangeAttr), true, 0);\n doextra(axlist.map(rangeAttr), [0, 1], 0);\n }\n }\n\n if(flags.calc || flags.plot) {\n flags.fullReplot = true;\n }\n\n return {\n flags: flags,\n undoit: undoit,\n redoit: redoit,\n traces: traces,\n eventData: Lib.extendDeepNoArrays([], [eventData, traces])\n };\n}\n\n/**\n * Converts deprecated attribute keys to\n * the current API to ensure backwards compatibility.\n *\n * This is needed for the update mechanism to determine which\n * subroutines to run based on the actual attribute\n * definitions (that don't include the deprecated ones).\n *\n * E.g. Maps {'xaxis.title': 'A chart'} to {'xaxis.title.text': 'A chart'}\n * and {titlefont: {...}} to {'title.font': {...}}.\n *\n * @param aobj\n */\nfunction cleanDeprecatedAttributeKeys(aobj) {\n var oldAxisTitleRegex = Lib.counterRegex('axis', '\\.title', false, false);\n var colorbarRegex = /colorbar\\.title$/;\n var keys = Object.keys(aobj);\n var i, key, value;\n\n for(i = 0; i < keys.length; i++) {\n key = keys[i];\n value = aobj[key];\n\n if((key === 'title' || oldAxisTitleRegex.test(key) || colorbarRegex.test(key)) &&\n (typeof value === 'string' || typeof value === 'number')) {\n replace(key, key.replace('title', 'title.text'));\n } else if(key.indexOf('titlefont') > -1 && key.indexOf('grouptitlefont') === -1) {\n replace(key, key.replace('titlefont', 'title.font'));\n } else if(key.indexOf('titleposition') > -1) {\n replace(key, key.replace('titleposition', 'title.position'));\n } else if(key.indexOf('titleside') > -1) {\n replace(key, key.replace('titleside', 'title.side'));\n } else if(key.indexOf('titleoffset') > -1) {\n replace(key, key.replace('titleoffset', 'title.offset'));\n }\n }\n\n function replace(oldAttrStr, newAttrStr) {\n aobj[newAttrStr] = aobj[oldAttrStr];\n delete aobj[oldAttrStr];\n }\n}\n\n/**\n * relayout: update layout attributes of an existing plot\n *\n * Can be called two ways:\n *\n * Signature 1:\n * @param {String | HTMLDivElement} gd\n * the id or dom element of the graph container div\n * @param {String} astr\n * attribute string (like `'xaxis.range[0]'`) to update\n * @param {*} val\n * value to give this attribute\n *\n * Signature 2:\n * @param {String | HTMLDivElement} gd\n * (as in signature 1)\n * @param {Object} aobj\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * allows setting multiple attributes simultaneously\n */\nfunction relayout(gd, astr, val) {\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n var aobj = {};\n if(typeof astr === 'string') {\n aobj[astr] = val;\n } else if(Lib.isPlainObject(astr)) {\n aobj = Lib.extendFlat({}, astr);\n } else {\n Lib.warn('Relayout fail.', astr, val);\n return Promise.reject();\n }\n\n if(Object.keys(aobj).length) gd.changed = true;\n\n var specs = _relayout(gd, aobj);\n var flags = specs.flags;\n\n // clear calcdata if required\n if(flags.calc) gd.calcdata = undefined;\n\n // fill in redraw sequence\n\n // even if we don't have anything left in aobj,\n // something may have happened within relayout that we\n // need to wait for\n var seq = [Plots.previousPromises];\n\n if(flags.layoutReplot) {\n seq.push(subroutines.layoutReplot);\n } else if(Object.keys(aobj).length) {\n axRangeSupplyDefaultsByPass(gd, flags, specs) || Plots.supplyDefaults(gd);\n\n if(flags.legend) seq.push(subroutines.doLegend);\n if(flags.layoutstyle) seq.push(subroutines.layoutStyles);\n if(flags.axrange) addAxRangeSequence(seq, specs.rangesAltered);\n if(flags.ticks) seq.push(subroutines.doTicksRelayout);\n if(flags.modebar) seq.push(subroutines.doModeBar);\n if(flags.camera) seq.push(subroutines.doCamera);\n if(flags.colorbars) seq.push(subroutines.doColorBars);\n\n seq.push(emitAfterPlot);\n }\n\n seq.push(\n Plots.rehover,\n Plots.redrag,\n Plots.reselect\n );\n\n Queue.add(gd,\n relayout, [gd, specs.undoit],\n relayout, [gd, specs.redoit]\n );\n\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve(gd);\n\n return plotDone.then(function() {\n gd.emit('plotly_relayout', specs.eventData);\n return gd;\n });\n}\n\n// Optimization mostly for large splom traces where\n// Plots.supplyDefaults can take > 100ms\nfunction axRangeSupplyDefaultsByPass(gd, flags, specs) {\n var fullLayout = gd._fullLayout;\n\n if(!flags.axrange) return false;\n\n for(var k in flags) {\n if(k !== 'axrange' && flags[k]) return false;\n }\n\n for(var axId in specs.rangesAltered) {\n var axName = Axes.id2name(axId);\n var axIn = gd.layout[axName];\n var axOut = fullLayout[axName];\n axOut.autorange = axIn.autorange;\n if(axIn.range) {\n axOut.range = axIn.range.slice();\n }\n axOut.cleanRange();\n\n if(axOut._matchGroup) {\n for(var axId2 in axOut._matchGroup) {\n if(axId2 !== axId) {\n var ax2 = fullLayout[Axes.id2name(axId2)];\n ax2.autorange = axOut.autorange;\n ax2.range = axOut.range.slice();\n ax2._input.range = axOut.range.slice();\n }\n }\n }\n }\n\n return true;\n}\n\nfunction addAxRangeSequence(seq, rangesAltered) {\n // N.B. leave as sequence of subroutines (for now) instead of\n // subroutine of its own so that finalDraw always gets\n // executed after drawData\n var drawAxes = rangesAltered ?\n function(gd) {\n var axIds = [];\n var skipTitle = true;\n\n for(var id in rangesAltered) {\n var ax = Axes.getFromId(gd, id);\n axIds.push(id);\n\n if((ax.ticklabelposition || '').indexOf('inside') !== -1) {\n if(ax._anchorAxis) {\n axIds.push(ax._anchorAxis._id);\n }\n }\n\n if(ax._matchGroup) {\n for(var id2 in ax._matchGroup) {\n if(!rangesAltered[id2]) {\n axIds.push(id2);\n }\n }\n }\n }\n\n return Axes.draw(gd, axIds, {skipTitle: skipTitle});\n } :\n function(gd) {\n return Axes.draw(gd, 'redraw');\n };\n\n seq.push(\n clearOutline,\n subroutines.doAutoRangeAndConstraints,\n drawAxes,\n subroutines.drawData,\n subroutines.finalDraw\n );\n}\n\nvar AX_RANGE_RE = /^[xyz]axis[0-9]*\\.range(\\[[0|1]\\])?$/;\nvar AX_AUTORANGE_RE = /^[xyz]axis[0-9]*\\.autorange$/;\nvar AX_DOMAIN_RE = /^[xyz]axis[0-9]*\\.domain(\\[[0|1]\\])?$/;\n\nfunction _relayout(gd, aobj) {\n var layout = gd.layout;\n var fullLayout = gd._fullLayout;\n var guiEditFlag = fullLayout._guiEditing;\n var layoutNP = makeNP(fullLayout._preGUI, guiEditFlag);\n var keys = Object.keys(aobj);\n var axes = Axes.list(gd);\n var eventData = Lib.extendDeepAll({}, aobj);\n var arrayEdits = {};\n\n var arrayStr, i, j;\n\n cleanDeprecatedAttributeKeys(aobj);\n keys = Object.keys(aobj);\n\n // look for 'allaxes', split out into all axes\n // in case of 3D the axis are nested within a scene which is held in _id\n for(i = 0; i < keys.length; i++) {\n if(keys[i].indexOf('allaxes') === 0) {\n for(j = 0; j < axes.length; j++) {\n var scene = axes[j]._id.substr(1);\n var axisAttr = (scene.indexOf('scene') !== -1) ? (scene + '.') : '';\n var newkey = keys[i].replace('allaxes', axisAttr + axes[j]._name);\n\n if(!aobj[newkey]) aobj[newkey] = aobj[keys[i]];\n }\n\n delete aobj[keys[i]];\n }\n }\n\n // initialize flags\n var flags = editTypes.layoutFlags();\n\n // copies of the change (and previous values of anything affected)\n // for the undo / redo queue\n var redoit = {};\n var undoit = {};\n\n // for attrs that interact (like scales & autoscales), save the\n // old vals before making the change\n // val=undefined will not set a value, just record what the value was.\n // attr can be an array to set several at once (all to the same val)\n function doextra(attr, val) {\n if(Array.isArray(attr)) {\n attr.forEach(function(a) { doextra(a, val); });\n return;\n }\n\n // if we have another value for this attribute (explicitly or\n // via a parent) do not override with this auto-generated extra\n if(attr in aobj || helpers.hasParent(aobj, attr)) return;\n\n var p = layoutNP(layout, attr);\n if(!(attr in undoit)) {\n undoit[attr] = undefinedToNull(p.get());\n }\n if(val !== undefined) p.set(val);\n }\n\n // for constraint enforcement: keep track of all axes (as {id: name})\n // we're editing the (auto)range of, so we can tell the others constrained\n // to scale with them that it's OK for them to shrink\n var rangesAltered = {};\n var ax;\n\n function recordAlteredAxis(pleafPlus) {\n var axId = Axes.name2id(pleafPlus.split('.')[0]);\n rangesAltered[axId] = 1;\n return axId;\n }\n\n // alter gd.layout\n for(var ai in aobj) {\n if(helpers.hasParent(aobj, ai)) {\n throw new Error('cannot set ' + ai + ' and a parent attribute simultaneously');\n }\n\n var p = layoutNP(layout, ai);\n var vi = aobj[ai];\n var plen = p.parts.length;\n // p.parts may end with an index integer if the property is an array\n var pend = plen - 1;\n while(pend > 0 && typeof p.parts[pend] !== 'string') pend--;\n // last property in chain (leaf node)\n var pleaf = p.parts[pend];\n // leaf plus immediate parent\n var pleafPlus = p.parts[pend - 1] + '.' + pleaf;\n // trunk nodes (everything except the leaf)\n var ptrunk = p.parts.slice(0, pend).join('.');\n var parentIn = nestedProperty(gd.layout, ptrunk).get();\n var parentFull = nestedProperty(fullLayout, ptrunk).get();\n var vOld = p.get();\n\n if(vi === undefined) continue;\n\n redoit[ai] = vi;\n\n // axis reverse is special - it is its own inverse\n // op and has no flag.\n undoit[ai] = (pleaf === 'reverse') ? vi : undefinedToNull(vOld);\n\n var valObject = PlotSchema.getLayoutValObject(fullLayout, p.parts);\n\n if(valObject && valObject.impliedEdits && vi !== null) {\n for(var impliedKey in valObject.impliedEdits) {\n doextra(Lib.relativeAttr(ai, impliedKey), valObject.impliedEdits[impliedKey]);\n }\n }\n\n // Setting width or height to null must reset the graph's width / height\n // back to its initial value as computed during the first pass in Plots.plotAutoSize.\n //\n // To do so, we must manually set them back here using the _initialAutoSize cache.\n // can't use impliedEdits for this because behavior depends on vi\n if(['width', 'height'].indexOf(ai) !== -1) {\n if(vi) {\n doextra('autosize', null);\n // currently we don't support autosize one dim only - so\n // explicitly set the other one. Note that doextra will\n // ignore this if the same relayout call also provides oppositeAttr\n var oppositeAttr = ai === 'height' ? 'width' : 'height';\n doextra(oppositeAttr, fullLayout[oppositeAttr]);\n } else {\n fullLayout[ai] = gd._initialAutoSize[ai];\n }\n } else if(ai === 'autosize') {\n // depends on vi here too, so again can't use impliedEdits\n doextra('width', vi ? null : fullLayout.width);\n doextra('height', vi ? null : fullLayout.height);\n } else if(pleafPlus.match(AX_RANGE_RE)) {\n // check autorange vs range\n\n recordAlteredAxis(pleafPlus);\n nestedProperty(fullLayout, ptrunk + '._inputRange').set(null);\n } else if(pleafPlus.match(AX_AUTORANGE_RE)) {\n recordAlteredAxis(pleafPlus);\n nestedProperty(fullLayout, ptrunk + '._inputRange').set(null);\n var axFull = nestedProperty(fullLayout, ptrunk).get();\n if(axFull._inputDomain) {\n // if we're autoranging and this axis has a constrained domain,\n // reset it so we don't get locked into a shrunken size\n axFull._input.domain = axFull._inputDomain.slice();\n }\n } else if(pleafPlus.match(AX_DOMAIN_RE)) {\n nestedProperty(fullLayout, ptrunk + '._inputDomain').set(null);\n }\n\n // toggling axis type between log and linear: we need to convert\n // positions for components that are still using linearized values,\n // not data values like newer components.\n // previously we did this for log <-> not-log, but now only do it\n // for log <-> linear\n if(pleaf === 'type') {\n ax = parentIn;\n var toLog = parentFull.type === 'linear' && vi === 'log';\n var fromLog = parentFull.type === 'log' && vi === 'linear';\n\n if(toLog || fromLog) {\n if(!ax || !ax.range) {\n // 2D never gets here, but 3D does\n // I don't think this is needed, but left here in case there\n // are edge cases I'm not thinking of.\n doextra(ptrunk + '.autorange', true);\n } else if(!parentFull.autorange) {\n // toggling log without autorange: need to also recalculate ranges\n // because log axes use linearized values for range endpoints\n var r0 = ax.range[0];\n var r1 = ax.range[1];\n if(toLog) {\n // if both limits are negative, autorange\n if(r0 <= 0 && r1 <= 0) {\n doextra(ptrunk + '.autorange', true);\n }\n // if one is negative, set it 6 orders below the other.\n if(r0 <= 0) r0 = r1 / 1e6;\n else if(r1 <= 0) r1 = r0 / 1e6;\n // now set the range values as appropriate\n doextra(ptrunk + '.range[0]', Math.log(r0) / Math.LN10);\n doextra(ptrunk + '.range[1]', Math.log(r1) / Math.LN10);\n } else {\n doextra(ptrunk + '.range[0]', Math.pow(10, r0));\n doextra(ptrunk + '.range[1]', Math.pow(10, r1));\n }\n } else if(toLog) {\n // just make sure the range is positive and in the right\n // order, it'll get recalculated later\n ax.range = (ax.range[1] > ax.range[0]) ? [1, 2] : [2, 1];\n }\n\n // clear polar view initial stash for radial range so that\n // value get recomputed in correct units\n if(Array.isArray(fullLayout._subplots.polar) &&\n fullLayout._subplots.polar.length &&\n fullLayout[p.parts[0]] &&\n p.parts[1] === 'radialaxis'\n ) {\n delete fullLayout[p.parts[0]]._subplot.viewInitial['radialaxis.range'];\n }\n\n // Annotations and images also need to convert to/from linearized coords\n // Shapes do not need this :)\n Registry.getComponentMethod('annotations', 'convertCoords')(gd, parentFull, vi, doextra);\n Registry.getComponentMethod('images', 'convertCoords')(gd, parentFull, vi, doextra);\n } else {\n // any other type changes: the range from the previous type\n // will not make sense, so autorange it.\n doextra(ptrunk + '.autorange', true);\n doextra(ptrunk + '.range', null);\n }\n nestedProperty(fullLayout, ptrunk + '._inputRange').set(null);\n } else if(pleaf.match(AX_NAME_PATTERN)) {\n var fullProp = nestedProperty(fullLayout, ai).get();\n var newType = (vi || {}).type;\n\n // This can potentially cause strange behavior if the autotype is not\n // numeric (linear, because we don't auto-log) but the previous type\n // was log. That's a very strange edge case though\n if(!newType || newType === '-') newType = 'linear';\n Registry.getComponentMethod('annotations', 'convertCoords')(gd, fullProp, newType, doextra);\n Registry.getComponentMethod('images', 'convertCoords')(gd, fullProp, newType, doextra);\n }\n\n // alter gd.layout\n\n // collect array component edits for execution all together\n // so we can ensure consistent behavior adding/removing items\n // and order-independence for add/remove/edit all together in\n // one relayout call\n var containerArrayMatch = manageArrays.containerArrayMatch(ai);\n if(containerArrayMatch) {\n arrayStr = containerArrayMatch.array;\n i = containerArrayMatch.index;\n var propStr = containerArrayMatch.property;\n var updateValObject = valObject || {editType: 'calc'};\n\n if(i !== '' && propStr === '') {\n // special handling of undoit if we're adding or removing an element\n // ie 'annotations[2]' which can be {...} (add) or null,\n // does not work when replacing the entire array\n if(manageArrays.isAddVal(vi)) {\n undoit[ai] = null;\n } else if(manageArrays.isRemoveVal(vi)) {\n undoit[ai] = (nestedProperty(layout, arrayStr).get() || [])[i];\n } else {\n Lib.warn('unrecognized full object value', aobj);\n }\n }\n editTypes.update(flags, updateValObject);\n\n // prepare the edits object we'll send to applyContainerArrayChanges\n if(!arrayEdits[arrayStr]) arrayEdits[arrayStr] = {};\n var objEdits = arrayEdits[arrayStr][i];\n if(!objEdits) objEdits = arrayEdits[arrayStr][i] = {};\n objEdits[propStr] = vi;\n\n delete aobj[ai];\n } else if(pleaf === 'reverse') {\n // handle axis reversal explicitly, as there's no 'reverse' attribute\n\n if(parentIn.range) parentIn.range.reverse();\n else {\n doextra(ptrunk + '.autorange', true);\n parentIn.range = [1, 0];\n }\n\n if(parentFull.autorange) flags.calc = true;\n else flags.plot = true;\n } else {\n if(ai === 'dragmode' && ((vi === false && vOld !== false) || (vi !== false && vOld === false))) {\n flags.plot = true;\n } else if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&\n (ai === 'dragmode' &&\n (vi === 'lasso' || vi === 'select') &&\n !(vOld === 'lasso' || vOld === 'select'))\n ) {\n flags.plot = true;\n } else if(fullLayout._has('gl2d')) {\n flags.plot = true;\n } else if(valObject) editTypes.update(flags, valObject);\n else flags.calc = true;\n\n p.set(vi);\n }\n }\n\n // now we've collected component edits - execute them all together\n for(arrayStr in arrayEdits) {\n var finished = manageArrays.applyContainerArrayChanges(gd,\n layoutNP(layout, arrayStr), arrayEdits[arrayStr], flags, layoutNP);\n if(!finished) flags.plot = true;\n }\n\n // figure out if we need to recalculate axis constraints\n for(var axId in rangesAltered) {\n ax = Axes.getFromId(gd, axId);\n var group = ax && ax._constraintGroup;\n if(group) {\n // Always recalc if we're changing constrained ranges.\n // Otherwise it's possible to violate the constraints by\n // specifying arbitrary ranges for all axes in the group.\n // this way some ranges may expand beyond what's specified,\n // as they do at first draw, to satisfy the constraints.\n flags.calc = true;\n for(var groupAxId in group) {\n if(!rangesAltered[groupAxId]) {\n Axes.getFromId(gd, groupAxId)._constraintShrinkable = true;\n }\n }\n }\n }\n\n // If the autosize changed or height or width was explicitly specified,\n // this triggers a redraw\n // TODO: do we really need special aobj.height/width handling here?\n // couldn't editType do this?\n if(updateAutosize(gd) || aobj.height || aobj.width) flags.plot = true;\n\n if(flags.plot || flags.calc) {\n flags.layoutReplot = true;\n }\n\n // now all attribute mods are done, as are\n // redo and undo so we can save them\n\n return {\n flags: flags,\n rangesAltered: rangesAltered,\n undoit: undoit,\n redoit: redoit,\n eventData: eventData\n };\n}\n\n/*\n * updateAutosize: we made a change, does it change the autosize result?\n * puts the new size into fullLayout\n * returns true if either height or width changed\n */\nfunction updateAutosize(gd) {\n var fullLayout = gd._fullLayout;\n var oldWidth = fullLayout.width;\n var oldHeight = fullLayout.height;\n\n // calculate autosizing\n if(gd.layout.autosize) Plots.plotAutoSize(gd, gd.layout, fullLayout);\n\n return (fullLayout.width !== oldWidth) || (fullLayout.height !== oldHeight);\n}\n\n/**\n * update: update trace and layout attributes of an existing plot\n *\n * @param {String | HTMLDivElement} gd\n * the id or DOM element of the graph container div\n * @param {Object} traceUpdate\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * corresponding to updates in the plot's traces\n * @param {Object} layoutUpdate\n * attribute object `{astr1: val1, astr2: val2 ...}`\n * corresponding to updates in the plot's layout\n * @param {Number[] | Number} [traces]\n * integer or array of integers for the traces to alter (all if omitted)\n *\n */\nfunction update(gd, traceUpdate, layoutUpdate, _traces) {\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n if(!Lib.isPlainObject(traceUpdate)) traceUpdate = {};\n if(!Lib.isPlainObject(layoutUpdate)) layoutUpdate = {};\n\n if(Object.keys(traceUpdate).length) gd.changed = true;\n if(Object.keys(layoutUpdate).length) gd.changed = true;\n\n var traces = helpers.coerceTraceIndices(gd, _traces);\n\n var restyleSpecs = _restyle(gd, Lib.extendFlat({}, traceUpdate), traces);\n var restyleFlags = restyleSpecs.flags;\n\n var relayoutSpecs = _relayout(gd, Lib.extendFlat({}, layoutUpdate));\n var relayoutFlags = relayoutSpecs.flags;\n\n // clear calcdata and/or axis types if required\n if(restyleFlags.calc || relayoutFlags.calc) gd.calcdata = undefined;\n if(restyleFlags.clearAxisTypes) helpers.clearAxisTypes(gd, traces, layoutUpdate);\n\n // fill in redraw sequence\n var seq = [];\n\n if(relayoutFlags.layoutReplot) {\n // N.B. works fine when both\n // relayoutFlags.layoutReplot and restyleFlags.fullReplot are true\n seq.push(subroutines.layoutReplot);\n } else if(restyleFlags.fullReplot) {\n seq.push(exports._doPlot);\n } else {\n seq.push(Plots.previousPromises);\n axRangeSupplyDefaultsByPass(gd, relayoutFlags, relayoutSpecs) || Plots.supplyDefaults(gd);\n\n if(restyleFlags.style) seq.push(subroutines.doTraceStyle);\n if(restyleFlags.colorbars || relayoutFlags.colorbars) seq.push(subroutines.doColorBars);\n if(relayoutFlags.legend) seq.push(subroutines.doLegend);\n if(relayoutFlags.layoutstyle) seq.push(subroutines.layoutStyles);\n if(relayoutFlags.axrange) addAxRangeSequence(seq, relayoutSpecs.rangesAltered);\n if(relayoutFlags.ticks) seq.push(subroutines.doTicksRelayout);\n if(relayoutFlags.modebar) seq.push(subroutines.doModeBar);\n if(relayoutFlags.camera) seq.push(subroutines.doCamera);\n\n seq.push(emitAfterPlot);\n }\n\n seq.push(\n Plots.rehover,\n Plots.redrag,\n Plots.reselect\n );\n\n Queue.add(gd,\n update, [gd, restyleSpecs.undoit, relayoutSpecs.undoit, restyleSpecs.traces],\n update, [gd, restyleSpecs.redoit, relayoutSpecs.redoit, restyleSpecs.traces]\n );\n\n var plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve(gd);\n\n return plotDone.then(function() {\n gd.emit('plotly_update', {\n data: restyleSpecs.eventData,\n layout: relayoutSpecs.eventData\n });\n\n return gd;\n });\n}\n\n/*\n * internal-use-only restyle/relayout/update variants that record the initial\n * values in (fullLayout|fullTrace)._preGUI so changes can be persisted across\n * Plotly.react data updates, dependent on uirevision attributes\n */\nfunction guiEdit(func) {\n return function wrappedEdit(gd) {\n gd._fullLayout._guiEditing = true;\n var p = func.apply(null, arguments);\n gd._fullLayout._guiEditing = false;\n return p;\n };\n}\n\n// For connecting edited layout attributes to uirevision attrs\n// If no `attr` we use `match[1] + '.uirevision'`\n// Ordered by most common edits first, to minimize our search time\nvar layoutUIControlPatterns = [\n {pattern: /^hiddenlabels/, attr: 'legend.uirevision'},\n {pattern: /^((x|y)axis\\d*)\\.((auto)?range|title\\.text)/},\n\n // showspikes and modes include those nested inside scenes\n {pattern: /axis\\d*\\.showspikes$/, attr: 'modebar.uirevision'},\n {pattern: /(hover|drag)mode$/, attr: 'modebar.uirevision'},\n\n {pattern: /^(scene\\d*)\\.camera/},\n {pattern: /^(geo\\d*)\\.(projection|center|fitbounds)/},\n {pattern: /^(ternary\\d*\\.[abc]axis)\\.(min|title\\.text)$/},\n {pattern: /^(polar\\d*\\.radialaxis)\\.((auto)?range|angle|title\\.text)/},\n {pattern: /^(polar\\d*\\.angularaxis)\\.rotation/},\n {pattern: /^(mapbox\\d*)\\.(center|zoom|bearing|pitch)/},\n\n {pattern: /^legend\\.(x|y)$/, attr: 'editrevision'},\n {pattern: /^(shapes|annotations)/, attr: 'editrevision'},\n {pattern: /^title\\.text$/, attr: 'editrevision'}\n];\n\n// same for trace attributes: if `attr` is given it's in layout,\n// or with no `attr` we use `trace.uirevision`\nvar traceUIControlPatterns = [\n {pattern: /^selectedpoints$/, attr: 'selectionrevision'},\n // \"visible\" includes trace.transforms[i].styles[j].value.visible\n {pattern: /(^|value\\.)visible$/, attr: 'legend.uirevision'},\n {pattern: /^dimensions\\[\\d+\\]\\.constraintrange/},\n {pattern: /^node\\.(x|y|groups)/}, // for Sankey nodes\n {pattern: /^level$/}, // for Sunburst, Treemap and Icicle traces\n\n // below this you must be in editable: true mode\n // TODO: I still put name and title with `trace.uirevision`\n // reasonable or should these be `editrevision`?\n // Also applies to axis titles up in the layout section\n\n // \"name\" also includes transform.styles\n {pattern: /(^|value\\.)name$/},\n // including nested colorbar attributes (ie marker.colorbar)\n {pattern: /colorbar\\.title\\.text$/},\n {pattern: /colorbar\\.(x|y)$/, attr: 'editrevision'}\n];\n\nfunction findUIPattern(key, patternSpecs) {\n for(var i = 0; i < patternSpecs.length; i++) {\n var spec = patternSpecs[i];\n var match = key.match(spec.pattern);\n if(match) {\n var head = match[1] || '';\n return {head: head, tail: key.substr(head.length + 1), attr: spec.attr};\n }\n }\n}\n\n// We're finding the new uirevision before supplyDefaults, so do the\n// inheritance manually. Note that only `undefined` inherits - other\n// falsy values are returned.\nfunction getNewRev(revAttr, container) {\n var newRev = nestedProperty(container, revAttr).get();\n if(newRev !== undefined) return newRev;\n\n var parts = revAttr.split('.');\n parts.pop();\n while(parts.length > 1) {\n parts.pop();\n newRev = nestedProperty(container, parts.join('.') + '.uirevision').get();\n if(newRev !== undefined) return newRev;\n }\n\n return container.uirevision;\n}\n\nfunction getFullTraceIndexFromUid(uid, fullData) {\n for(var i = 0; i < fullData.length; i++) {\n if(fullData[i]._fullInput.uid === uid) return i;\n }\n return -1;\n}\n\nfunction getTraceIndexFromUid(uid, data, tracei) {\n for(var i = 0; i < data.length; i++) {\n if(data[i].uid === uid) return i;\n }\n // fall back on trace order, but only if user didn't provide a uid for that trace\n return (!data[tracei] || data[tracei].uid) ? -1 : tracei;\n}\n\nfunction valsMatch(v1, v2) {\n var v1IsObj = Lib.isPlainObject(v1);\n var v1IsArray = Array.isArray(v1);\n if(v1IsObj || v1IsArray) {\n return (\n (v1IsObj && Lib.isPlainObject(v2)) ||\n (v1IsArray && Array.isArray(v2))\n ) && JSON.stringify(v1) === JSON.stringify(v2);\n }\n return v1 === v2;\n}\n\nfunction applyUIRevisions(data, layout, oldFullData, oldFullLayout) {\n var layoutPreGUI = oldFullLayout._preGUI;\n var key, revAttr, oldRev, newRev, match, preGUIVal, newNP, newVal, head, tail;\n var bothInheritAutorange = [];\n var newAutorangeIn = {};\n var newRangeAccepted = {};\n for(key in layoutPreGUI) {\n match = findUIPattern(key, layoutUIControlPatterns);\n if(match) {\n head = match.head;\n tail = match.tail;\n revAttr = match.attr || (head + '.uirevision');\n oldRev = nestedProperty(oldFullLayout, revAttr).get();\n newRev = oldRev && getNewRev(revAttr, layout);\n\n if(newRev && (newRev === oldRev)) {\n preGUIVal = layoutPreGUI[key];\n if(preGUIVal === null) preGUIVal = undefined;\n newNP = nestedProperty(layout, key);\n newVal = newNP.get();\n\n if(valsMatch(newVal, preGUIVal)) {\n if(newVal === undefined && tail === 'autorange') {\n bothInheritAutorange.push(head);\n }\n newNP.set(undefinedToNull(nestedProperty(oldFullLayout, key).get()));\n continue;\n } else if(tail === 'autorange' || tail.substr(0, 6) === 'range[') {\n // Special case for (auto)range since we push it back into the layout\n // so all null should be treated equivalently to autorange: true with any range\n var pre0 = layoutPreGUI[head + '.range[0]'];\n var pre1 = layoutPreGUI[head + '.range[1]'];\n var preAuto = layoutPreGUI[head + '.autorange'];\n if(preAuto || (preAuto === null && pre0 === null && pre1 === null)) {\n // Only read the input layout once and stash the result,\n // so we get it before we start modifying it\n if(!(head in newAutorangeIn)) {\n var newContainer = nestedProperty(layout, head).get();\n newAutorangeIn[head] = newContainer && (\n newContainer.autorange ||\n (newContainer.autorange !== false && (\n !newContainer.range || newContainer.range.length !== 2)\n )\n );\n }\n if(newAutorangeIn[head]) {\n newNP.set(undefinedToNull(nestedProperty(oldFullLayout, key).get()));\n continue;\n }\n }\n }\n }\n } else {\n Lib.warn('unrecognized GUI edit: ' + key);\n }\n // if we got this far, the new value was accepted as the new starting\n // point (either because it changed or revision changed)\n // so remove it from _preGUI for next time.\n delete layoutPreGUI[key];\n\n if(match && match.tail.substr(0, 6) === 'range[') {\n newRangeAccepted[match.head] = 1;\n }\n }\n\n // More special logic for `autorange`, since it interacts with `range`:\n // If the new figure's matching `range` was kept, and `autorange`\n // wasn't supplied explicitly in either the original or the new figure,\n // we shouldn't alter that - but we may just have done that, so fix it.\n for(var i = 0; i < bothInheritAutorange.length; i++) {\n var axAttr = bothInheritAutorange[i];\n if(newRangeAccepted[axAttr]) {\n var newAx = nestedProperty(layout, axAttr).get();\n if(newAx) delete newAx.autorange;\n }\n }\n\n // Now traces - try to match them up by uid (in case we added/deleted in\n // the middle), then fall back on index.\n var allTracePreGUI = oldFullLayout._tracePreGUI;\n for(var uid in allTracePreGUI) {\n var tracePreGUI = allTracePreGUI[uid];\n var newTrace = null;\n var fullInput;\n for(key in tracePreGUI) {\n // wait until we know we have preGUI values to look for traces\n // but if we don't find both, stop looking at this uid\n if(!newTrace) {\n var fulli = getFullTraceIndexFromUid(uid, oldFullData);\n if(fulli < 0) {\n // Somehow we didn't even have this trace in oldFullData...\n // I guess this could happen with `deleteTraces` or something\n delete allTracePreGUI[uid];\n break;\n }\n var fullTrace = oldFullData[fulli];\n fullInput = fullTrace._fullInput;\n\n var newTracei = getTraceIndexFromUid(uid, data, fullInput.index);\n if(newTracei < 0) {\n // No match in new data\n delete allTracePreGUI[uid];\n break;\n }\n newTrace = data[newTracei];\n }\n\n match = findUIPattern(key, traceUIControlPatterns);\n if(match) {\n if(match.attr) {\n oldRev = nestedProperty(oldFullLayout, match.attr).get();\n newRev = oldRev && getNewRev(match.attr, layout);\n } else {\n oldRev = fullInput.uirevision;\n // inheritance for trace.uirevision is simple, just layout.uirevision\n newRev = newTrace.uirevision;\n if(newRev === undefined) newRev = layout.uirevision;\n }\n\n if(newRev && newRev === oldRev) {\n preGUIVal = tracePreGUI[key];\n if(preGUIVal === null) preGUIVal = undefined;\n newNP = nestedProperty(newTrace, key);\n newVal = newNP.get();\n if(valsMatch(newVal, preGUIVal)) {\n newNP.set(undefinedToNull(nestedProperty(fullInput, key).get()));\n continue;\n }\n }\n } else {\n Lib.warn('unrecognized GUI edit: ' + key + ' in trace uid ' + uid);\n }\n delete tracePreGUI[key];\n }\n }\n}\n\n/**\n * Plotly.react:\n * A plot/update method that takes the full plot state (same API as plot/newPlot)\n * and diffs to determine the minimal update pathway\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {array of objects} data\n * array of traces, containing the data and display information for each trace\n * @param {object} layout\n * object describing the overall display of the plot,\n * all the stuff that doesn't pertain to any individual trace\n * @param {object} config\n * configuration options (see ./plot_config.js for more info)\n *\n * OR\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n * @param {object} figure\n * object containing `data`, `layout`, `config`, and `frames` members\n *\n */\nfunction react(gd, data, layout, config) {\n var frames, plotDone;\n\n function addFrames() { return exports.addFrames(gd, frames); }\n\n gd = Lib.getGraphDiv(gd);\n helpers.clearPromiseQueue(gd);\n\n var oldFullData = gd._fullData;\n var oldFullLayout = gd._fullLayout;\n\n // you can use this as the initial draw as well as to update\n if(!Lib.isPlotDiv(gd) || !oldFullData || !oldFullLayout) {\n plotDone = exports.newPlot(gd, data, layout, config);\n } else {\n if(Lib.isPlainObject(data)) {\n var obj = data;\n data = obj.data;\n layout = obj.layout;\n config = obj.config;\n frames = obj.frames;\n }\n\n var configChanged = false;\n // assume that if there's a config at all, we're reacting to it too,\n // and completely replace the previous config\n if(config) {\n var oldConfig = Lib.extendDeep({}, gd._context);\n gd._context = undefined;\n setPlotContext(gd, config);\n configChanged = diffConfig(oldConfig, gd._context);\n }\n\n gd.data = data || [];\n helpers.cleanData(gd.data);\n gd.layout = layout || {};\n helpers.cleanLayout(gd.layout);\n\n applyUIRevisions(gd.data, gd.layout, oldFullData, oldFullLayout);\n\n // \"true\" skips updating calcdata and remapping arrays from calcTransforms,\n // which supplyDefaults usually does at the end, but we may need to NOT do\n // if the diff (which we haven't determined yet) says we'll recalc\n Plots.supplyDefaults(gd, {skipUpdateCalc: true});\n\n var newFullData = gd._fullData;\n var newFullLayout = gd._fullLayout;\n var immutable = newFullLayout.datarevision === undefined;\n var transition = newFullLayout.transition;\n\n var relayoutFlags = diffLayout(gd, oldFullLayout, newFullLayout, immutable, transition);\n var newDataRevision = relayoutFlags.newDataRevision;\n var restyleFlags = diffData(gd, oldFullData, newFullData, immutable, transition, newDataRevision);\n\n // TODO: how to translate this part of relayout to Plotly.react?\n // // Setting width or height to null must reset the graph's width / height\n // // back to its initial value as computed during the first pass in Plots.plotAutoSize.\n // //\n // // To do so, we must manually set them back here using the _initialAutoSize cache.\n // if(['width', 'height'].indexOf(ai) !== -1 && vi === null) {\n // fullLayout[ai] = gd._initialAutoSize[ai];\n // }\n\n if(updateAutosize(gd)) relayoutFlags.layoutReplot = true;\n\n // clear calcdata and empty categories if required\n if(restyleFlags.calc || relayoutFlags.calc) {\n gd.calcdata = undefined;\n var allNames = Object.getOwnPropertyNames(newFullLayout);\n for(var q = 0; q < allNames.length; q++) {\n var name = allNames[q];\n var start = name.substring(0, 5);\n if(start === 'xaxis' || start === 'yaxis') {\n var emptyCategories = newFullLayout[name]._emptyCategories;\n if(emptyCategories) emptyCategories();\n }\n }\n // otherwise do the calcdata updates and calcTransform array remaps that we skipped earlier\n } else {\n Plots.supplyDefaultsUpdateCalc(gd.calcdata, newFullData);\n }\n\n // Note: what restyle/relayout use impliedEdits and clearAxisTypes for\n // must be handled by the user when using Plotly.react.\n\n // fill in redraw sequence\n var seq = [];\n\n if(frames) {\n gd._transitionData = {};\n Plots.createTransitionData(gd);\n seq.push(addFrames);\n }\n\n // Transition pathway,\n // only used when 'transition' is set by user and\n // when at least one animatable attribute has changed,\n // N.B. config changed aren't animatable\n if(newFullLayout.transition && !configChanged && (restyleFlags.anim || relayoutFlags.anim)) {\n if(relayoutFlags.ticks) seq.push(subroutines.doTicksRelayout);\n\n Plots.doCalcdata(gd);\n subroutines.doAutoRangeAndConstraints(gd);\n\n seq.push(function() {\n return Plots.transitionFromReact(gd, restyleFlags, relayoutFlags, oldFullLayout);\n });\n } else if(restyleFlags.fullReplot || relayoutFlags.layoutReplot || configChanged) {\n gd._fullLayout._skipDefaults = true;\n seq.push(exports._doPlot);\n } else {\n for(var componentType in relayoutFlags.arrays) {\n var indices = relayoutFlags.arrays[componentType];\n if(indices.length) {\n var drawOne = Registry.getComponentMethod(componentType, 'drawOne');\n if(drawOne !== Lib.noop) {\n for(var i = 0; i < indices.length; i++) {\n drawOne(gd, indices[i]);\n }\n } else {\n var draw = Registry.getComponentMethod(componentType, 'draw');\n if(draw === Lib.noop) {\n throw new Error('cannot draw components: ' + componentType);\n }\n draw(gd);\n }\n }\n }\n\n seq.push(Plots.previousPromises);\n if(restyleFlags.style) seq.push(subroutines.doTraceStyle);\n if(restyleFlags.colorbars || relayoutFlags.colorbars) seq.push(subroutines.doColorBars);\n if(relayoutFlags.legend) seq.push(subroutines.doLegend);\n if(relayoutFlags.layoutstyle) seq.push(subroutines.layoutStyles);\n if(relayoutFlags.axrange) addAxRangeSequence(seq);\n if(relayoutFlags.ticks) seq.push(subroutines.doTicksRelayout);\n if(relayoutFlags.modebar) seq.push(subroutines.doModeBar);\n if(relayoutFlags.camera) seq.push(subroutines.doCamera);\n seq.push(emitAfterPlot);\n }\n\n seq.push(\n Plots.rehover,\n Plots.redrag,\n Plots.reselect\n );\n\n plotDone = Lib.syncOrAsync(seq, gd);\n if(!plotDone || !plotDone.then) plotDone = Promise.resolve(gd);\n }\n\n return plotDone.then(function() {\n gd.emit('plotly_react', {\n data: data,\n layout: layout\n });\n\n return gd;\n });\n}\n\nfunction diffData(gd, oldFullData, newFullData, immutable, transition, newDataRevision) {\n var sameTraceLength = oldFullData.length === newFullData.length;\n\n if(!transition && !sameTraceLength) {\n return {\n fullReplot: true,\n calc: true\n };\n }\n\n var flags = editTypes.traceFlags();\n flags.arrays = {};\n flags.nChanges = 0;\n flags.nChangesAnim = 0;\n\n var i, trace;\n\n function getTraceValObject(parts) {\n var out = PlotSchema.getTraceValObject(trace, parts);\n if(!trace._module.animatable && out.anim) {\n out.anim = false;\n }\n return out;\n }\n\n var diffOpts = {\n getValObject: getTraceValObject,\n flags: flags,\n immutable: immutable,\n transition: transition,\n newDataRevision: newDataRevision,\n gd: gd\n };\n\n var seenUIDs = {};\n\n for(i = 0; i < oldFullData.length; i++) {\n if(newFullData[i]) {\n trace = newFullData[i]._fullInput;\n if(Plots.hasMakesDataTransform(trace)) trace = newFullData[i];\n if(seenUIDs[trace.uid]) continue;\n seenUIDs[trace.uid] = 1;\n\n getDiffFlags(oldFullData[i]._fullInput, trace, [], diffOpts);\n }\n }\n\n if(flags.calc || flags.plot) {\n flags.fullReplot = true;\n }\n\n if(transition && flags.nChanges && flags.nChangesAnim) {\n flags.anim = (flags.nChanges === flags.nChangesAnim) && sameTraceLength ? 'all' : 'some';\n }\n\n return flags;\n}\n\nfunction diffLayout(gd, oldFullLayout, newFullLayout, immutable, transition) {\n var flags = editTypes.layoutFlags();\n flags.arrays = {};\n flags.rangesAltered = {};\n flags.nChanges = 0;\n flags.nChangesAnim = 0;\n\n function getLayoutValObject(parts) {\n return PlotSchema.getLayoutValObject(newFullLayout, parts);\n }\n\n var diffOpts = {\n getValObject: getLayoutValObject,\n flags: flags,\n immutable: immutable,\n transition: transition,\n gd: gd\n };\n\n getDiffFlags(oldFullLayout, newFullLayout, [], diffOpts);\n\n if(flags.plot || flags.calc) {\n flags.layoutReplot = true;\n }\n\n if(transition && flags.nChanges && flags.nChangesAnim) {\n flags.anim = flags.nChanges === flags.nChangesAnim ? 'all' : 'some';\n }\n\n return flags;\n}\n\nfunction getDiffFlags(oldContainer, newContainer, outerparts, opts) {\n var valObject, key, astr;\n\n var getValObject = opts.getValObject;\n var flags = opts.flags;\n var immutable = opts.immutable;\n var inArray = opts.inArray;\n var arrayIndex = opts.arrayIndex;\n\n function changed() {\n var editType = valObject.editType;\n if(inArray && editType.indexOf('arraydraw') !== -1) {\n Lib.pushUnique(flags.arrays[inArray], arrayIndex);\n return;\n }\n editTypes.update(flags, valObject);\n\n if(editType !== 'none') {\n flags.nChanges++;\n }\n\n // track animatable changes\n if(opts.transition && valObject.anim) {\n flags.nChangesAnim++;\n }\n\n // track cartesian axes with altered ranges\n if(AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {\n flags.rangesAltered[outerparts[0]] = 1;\n }\n\n // clear _inputDomain on cartesian axes with altered domains\n if(AX_DOMAIN_RE.test(astr)) {\n nestedProperty(newContainer, '_inputDomain').set(null);\n }\n\n // track datarevision changes\n if(key === 'datarevision') {\n flags.newDataRevision = 1;\n }\n }\n\n function valObjectCanBeDataArray(valObject) {\n return valObject.valType === 'data_array' || valObject.arrayOk;\n }\n\n for(key in oldContainer) {\n // short-circuit based on previous calls or previous keys that already maximized the pathway\n if(flags.calc && !opts.transition) return;\n\n var oldVal = oldContainer[key];\n var newVal = newContainer[key];\n var parts = outerparts.concat(key);\n astr = parts.join('.');\n\n if(key.charAt(0) === '_' || typeof oldVal === 'function' || oldVal === newVal) continue;\n\n // FIXME: ax.tick0 and dtick get filled in during plotting (except for geo subplots),\n // and unlike other auto values they don't make it back into the input,\n // so newContainer won't have them.\n if((key === 'tick0' || key === 'dtick') && outerparts[0] !== 'geo') {\n var tickMode = newContainer.tickmode;\n if(tickMode === 'auto' || tickMode === 'array' || !tickMode) continue;\n }\n // FIXME: Similarly for axis ranges for 3D\n // contourcarpet doesn't HAVE zmin/zmax, they're just auto-added. It needs them.\n if(key === 'range' && newContainer.autorange) continue;\n if((key === 'zmin' || key === 'zmax') && newContainer.type === 'contourcarpet') continue;\n\n valObject = getValObject(parts);\n\n // in case type changed, we may not even *have* a valObject.\n if(!valObject) continue;\n\n if(valObject._compareAsJSON && JSON.stringify(oldVal) === JSON.stringify(newVal)) continue;\n\n var valType = valObject.valType;\n var i;\n\n var canBeDataArray = valObjectCanBeDataArray(valObject);\n var wasArray = Array.isArray(oldVal);\n var nowArray = Array.isArray(newVal);\n\n // hack for traces that modify the data in supplyDefaults, like\n // converting 1D to 2D arrays, which will always create new objects\n if(wasArray && nowArray) {\n var inputKey = '_input_' + key;\n var oldValIn = oldContainer[inputKey];\n var newValIn = newContainer[inputKey];\n if(Array.isArray(oldValIn) && oldValIn === newValIn) continue;\n }\n\n if(newVal === undefined) {\n if(canBeDataArray && wasArray) flags.calc = true;\n else changed();\n } else if(valObject._isLinkedToArray) {\n var arrayEditIndices = [];\n var extraIndices = false;\n if(!inArray) flags.arrays[key] = arrayEditIndices;\n\n var minLen = Math.min(oldVal.length, newVal.length);\n var maxLen = Math.max(oldVal.length, newVal.length);\n if(minLen !== maxLen) {\n if(valObject.editType === 'arraydraw') {\n extraIndices = true;\n } else {\n changed();\n continue;\n }\n }\n\n for(i = 0; i < minLen; i++) {\n getDiffFlags(oldVal[i], newVal[i], parts.concat(i),\n // add array indices, but not if we're already in an array\n Lib.extendFlat({inArray: key, arrayIndex: i}, opts));\n }\n\n // put this at the end so that we know our collected array indices are sorted\n // but the check for length changes happens up front so we can short-circuit\n // diffing if appropriate\n if(extraIndices) {\n for(i = minLen; i < maxLen; i++) {\n arrayEditIndices.push(i);\n }\n }\n } else if(!valType && Lib.isPlainObject(oldVal)) {\n getDiffFlags(oldVal, newVal, parts, opts);\n } else if(canBeDataArray) {\n if(wasArray && nowArray) {\n // don't try to diff two data arrays. If immutable we know the data changed,\n // if not, assume it didn't and let `layout.datarevision` tell us if it did\n if(immutable) {\n flags.calc = true;\n }\n\n // look for animatable attributes when the data changed\n if(immutable || opts.newDataRevision) {\n changed();\n }\n } else if(wasArray !== nowArray) {\n flags.calc = true;\n } else changed();\n } else if(wasArray && nowArray) {\n // info array, colorscale, 'any' - these are short, just stringify.\n // I don't *think* that covers up any real differences post-validation, does it?\n // otherwise we need to dive in 1 (info_array) or 2 (colorscale) levels and compare\n // all elements.\n if(oldVal.length !== newVal.length || String(oldVal) !== String(newVal)) {\n changed();\n }\n } else {\n changed();\n }\n }\n\n for(key in newContainer) {\n if(!(key in oldContainer || key.charAt(0) === '_' || typeof newContainer[key] === 'function')) {\n valObject = getValObject(outerparts.concat(key));\n\n if(valObjectCanBeDataArray(valObject) && Array.isArray(newContainer[key])) {\n flags.calc = true;\n return;\n } else changed();\n }\n }\n}\n\n/*\n * simple diff for config - for now, just treat all changes as equivalent\n */\nfunction diffConfig(oldConfig, newConfig) {\n var key;\n\n for(key in oldConfig) {\n if(key.charAt(0) === '_') continue;\n var oldVal = oldConfig[key];\n var newVal = newConfig[key];\n if(oldVal !== newVal) {\n if(Lib.isPlainObject(oldVal) && Lib.isPlainObject(newVal)) {\n if(diffConfig(oldVal, newVal)) {\n return true;\n }\n } else if(Array.isArray(oldVal) && Array.isArray(newVal)) {\n if(oldVal.length !== newVal.length) {\n return true;\n }\n for(var i = 0; i < oldVal.length; i++) {\n if(oldVal[i] !== newVal[i]) {\n if(Lib.isPlainObject(oldVal[i]) && Lib.isPlainObject(newVal[i])) {\n if(diffConfig(oldVal[i], newVal[i])) {\n return true;\n }\n } else {\n return true;\n }\n }\n }\n } else {\n return true;\n }\n }\n }\n}\n\n/**\n * Animate to a frame, sequence of frame, frame group, or frame definition\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n *\n * @param {string or object or array of strings or array of objects} frameOrGroupNameOrFrameList\n * a single frame, array of frames, or group to which to animate. The intent is\n * inferred by the type of the input. Valid inputs are:\n *\n * - string, e.g. 'groupname': animate all frames of a given `group` in the order\n * in which they are defined via `Plotly.addFrames`.\n *\n * - array of strings, e.g. ['frame1', frame2']: a list of frames by name to which\n * to animate in sequence\n *\n * - object: {data: ...}: a frame definition to which to animate. The frame is not\n * and does not need to be added via `Plotly.addFrames`. It may contain any of\n * the properties of a frame, including `data`, `layout`, and `traces`. The\n * frame is used as provided and does not use the `baseframe` property.\n *\n * - array of objects, e.g. [{data: ...}, {data: ...}]: a list of frame objects,\n * each following the same rules as a single `object`.\n *\n * @param {object} animationOpts\n * configuration for the animation\n */\nfunction animate(gd, frameOrGroupNameOrFrameList, animationOpts) {\n gd = Lib.getGraphDiv(gd);\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error(\n 'This element is not a Plotly plot: ' + gd + '. It\\'s likely that you\\'ve failed ' +\n 'to create a plot before animating it. For more details, see ' +\n 'https://plotly.com/javascript/animations/'\n );\n }\n\n var trans = gd._transitionData;\n\n // This is the queue of frames that will be animated as soon as possible. They\n // are popped immediately upon the *start* of a transition:\n if(!trans._frameQueue) {\n trans._frameQueue = [];\n }\n\n animationOpts = Plots.supplyAnimationDefaults(animationOpts);\n var transitionOpts = animationOpts.transition;\n var frameOpts = animationOpts.frame;\n\n // Since frames are popped immediately, an empty queue only means all frames have\n // *started* to transition, not that the animation is complete. To solve that,\n // track a separate counter that increments at the same time as frames are added\n // to the queue, but decrements only when the transition is complete.\n if(trans._frameWaitingCnt === undefined) {\n trans._frameWaitingCnt = 0;\n }\n\n function getTransitionOpts(i) {\n if(Array.isArray(transitionOpts)) {\n if(i >= transitionOpts.length) {\n return transitionOpts[0];\n } else {\n return transitionOpts[i];\n }\n } else {\n return transitionOpts;\n }\n }\n\n function getFrameOpts(i) {\n if(Array.isArray(frameOpts)) {\n if(i >= frameOpts.length) {\n return frameOpts[0];\n } else {\n return frameOpts[i];\n }\n } else {\n return frameOpts;\n }\n }\n\n // Execute a callback after the wrapper function has been called n times.\n // This is used to defer the resolution until a transition has resolved *and*\n // the frame has completed. If it's not done this way, then we get a race\n // condition in which the animation might resolve before a transition is complete\n // or vice versa.\n function callbackOnNthTime(cb, n) {\n var cnt = 0;\n return function() {\n if(cb && ++cnt === n) {\n return cb();\n }\n };\n }\n\n return new Promise(function(resolve, reject) {\n function discardExistingFrames() {\n if(trans._frameQueue.length === 0) {\n return;\n }\n\n while(trans._frameQueue.length) {\n var next = trans._frameQueue.pop();\n if(next.onInterrupt) {\n next.onInterrupt();\n }\n }\n\n gd.emit('plotly_animationinterrupted', []);\n }\n\n function queueFrames(frameList) {\n if(frameList.length === 0) return;\n\n for(var i = 0; i < frameList.length; i++) {\n var computedFrame;\n\n if(frameList[i].type === 'byname') {\n // If it's a named frame, compute it:\n computedFrame = Plots.computeFrame(gd, frameList[i].name);\n } else {\n // Otherwise we must have been given a simple object, so treat\n // the input itself as the computed frame.\n computedFrame = frameList[i].data;\n }\n\n var frameOpts = getFrameOpts(i);\n var transitionOpts = getTransitionOpts(i);\n\n // It doesn't make much sense for the transition duration to be greater than\n // the frame duration, so limit it:\n transitionOpts.duration = Math.min(transitionOpts.duration, frameOpts.duration);\n\n var nextFrame = {\n frame: computedFrame,\n name: frameList[i].name,\n frameOpts: frameOpts,\n transitionOpts: transitionOpts,\n };\n if(i === frameList.length - 1) {\n // The last frame in this .animate call stores the promise resolve\n // and reject callbacks. This is how we ensure that the animation\n // loop (which may exist as a result of a *different* .animate call)\n // still resolves or rejecdts this .animate call's promise. once it's\n // complete.\n nextFrame.onComplete = callbackOnNthTime(resolve, 2);\n nextFrame.onInterrupt = reject;\n }\n\n trans._frameQueue.push(nextFrame);\n }\n\n // Set it as never having transitioned to a frame. This will cause the animation\n // loop to immediately transition to the next frame (which, for immediate mode,\n // is the first frame in the list since all others would have been discarded\n // below)\n if(animationOpts.mode === 'immediate') {\n trans._lastFrameAt = -Infinity;\n }\n\n // Only it's not already running, start a RAF loop. This could be avoided in the\n // case that there's only one frame, but it significantly complicated the logic\n // and only sped things up by about 5% or so for a lorenz attractor simulation.\n // It would be a fine thing to implement, but the benefit of that optimization\n // doesn't seem worth the extra complexity.\n if(!trans._animationRaf) {\n beginAnimationLoop();\n }\n }\n\n function stopAnimationLoop() {\n gd.emit('plotly_animated');\n\n // Be sure to unset also since it's how we know whether a loop is already running:\n window.cancelAnimationFrame(trans._animationRaf);\n trans._animationRaf = null;\n }\n\n function nextFrame() {\n if(trans._currentFrame && trans._currentFrame.onComplete) {\n // Execute the callback and unset it to ensure it doesn't\n // accidentally get called twice\n trans._currentFrame.onComplete();\n }\n\n var newFrame = trans._currentFrame = trans._frameQueue.shift();\n\n if(newFrame) {\n // Since it's sometimes necessary to do deep digging into frame data,\n // we'll consider it not 100% impossible for nulls or numbers to sneak through,\n // so check when casting the name, just to be absolutely certain:\n var stringName = newFrame.name ? newFrame.name.toString() : null;\n gd._fullLayout._currentFrame = stringName;\n\n trans._lastFrameAt = Date.now();\n trans._timeToNext = newFrame.frameOpts.duration;\n\n // This is simply called and it's left to .transition to decide how to manage\n // interrupting current transitions. That means we don't need to worry about\n // how it resolves or what happens after this:\n Plots.transition(gd,\n newFrame.frame.data,\n newFrame.frame.layout,\n helpers.coerceTraceIndices(gd, newFrame.frame.traces),\n newFrame.frameOpts,\n newFrame.transitionOpts\n ).then(function() {\n if(newFrame.onComplete) {\n newFrame.onComplete();\n }\n });\n\n gd.emit('plotly_animatingframe', {\n name: stringName,\n frame: newFrame.frame,\n animation: {\n frame: newFrame.frameOpts,\n transition: newFrame.transitionOpts,\n }\n });\n } else {\n // If there are no more frames, then stop the RAF loop:\n stopAnimationLoop();\n }\n }\n\n function beginAnimationLoop() {\n gd.emit('plotly_animating');\n\n // If no timer is running, then set last frame = long ago so that the next\n // frame is immediately transitioned:\n trans._lastFrameAt = -Infinity;\n trans._timeToNext = 0;\n trans._runningTransitions = 0;\n trans._currentFrame = null;\n\n var doFrame = function() {\n // This *must* be requested before nextFrame since nextFrame may decide\n // to cancel it if there's nothing more to animated:\n trans._animationRaf = window.requestAnimationFrame(doFrame);\n\n // Check if we're ready for a new frame:\n if(Date.now() - trans._lastFrameAt > trans._timeToNext) {\n nextFrame();\n }\n };\n\n doFrame();\n }\n\n // This is an animate-local counter that helps match up option input list\n // items with the particular frame.\n var configCounter = 0;\n function setTransitionConfig(frame) {\n if(Array.isArray(transitionOpts)) {\n if(configCounter >= transitionOpts.length) {\n frame.transitionOpts = transitionOpts[configCounter];\n } else {\n frame.transitionOpts = transitionOpts[0];\n }\n } else {\n frame.transitionOpts = transitionOpts;\n }\n configCounter++;\n return frame;\n }\n\n // Disambiguate what's sort of frames have been received\n var i, frame;\n var frameList = [];\n var allFrames = frameOrGroupNameOrFrameList === undefined || frameOrGroupNameOrFrameList === null;\n var isFrameArray = Array.isArray(frameOrGroupNameOrFrameList);\n var isSingleFrame = !allFrames && !isFrameArray && Lib.isPlainObject(frameOrGroupNameOrFrameList);\n\n if(isSingleFrame) {\n // In this case, a simple object has been passed to animate.\n frameList.push({\n type: 'object',\n data: setTransitionConfig(Lib.extendFlat({}, frameOrGroupNameOrFrameList))\n });\n } else if(allFrames || ['string', 'number'].indexOf(typeof frameOrGroupNameOrFrameList) !== -1) {\n // In this case, null or undefined has been passed so that we want to\n // animate *all* currently defined frames\n for(i = 0; i < trans._frames.length; i++) {\n frame = trans._frames[i];\n\n if(!frame) continue;\n\n if(allFrames || String(frame.group) === String(frameOrGroupNameOrFrameList)) {\n frameList.push({\n type: 'byname',\n name: String(frame.name),\n data: setTransitionConfig({name: frame.name})\n });\n }\n }\n } else if(isFrameArray) {\n for(i = 0; i < frameOrGroupNameOrFrameList.length; i++) {\n var frameOrName = frameOrGroupNameOrFrameList[i];\n if(['number', 'string'].indexOf(typeof frameOrName) !== -1) {\n frameOrName = String(frameOrName);\n // In this case, there's an array and this frame is a string name:\n frameList.push({\n type: 'byname',\n name: frameOrName,\n data: setTransitionConfig({name: frameOrName})\n });\n } else if(Lib.isPlainObject(frameOrName)) {\n frameList.push({\n type: 'object',\n data: setTransitionConfig(Lib.extendFlat({}, frameOrName))\n });\n }\n }\n }\n\n // Verify that all of these frames actually exist; return and reject if not:\n for(i = 0; i < frameList.length; i++) {\n frame = frameList[i];\n if(frame.type === 'byname' && !trans._frameHash[frame.data.name]) {\n Lib.warn('animate failure: frame not found: \"' + frame.data.name + '\"');\n reject();\n return;\n }\n }\n\n // If the mode is either next or immediate, then all currently queued frames must\n // be dumped and the corresponding .animate promises rejected.\n if(['next', 'immediate'].indexOf(animationOpts.mode) !== -1) {\n discardExistingFrames();\n }\n\n if(animationOpts.direction === 'reverse') {\n frameList.reverse();\n }\n\n var currentFrame = gd._fullLayout._currentFrame;\n if(currentFrame && animationOpts.fromcurrent) {\n var idx = -1;\n for(i = 0; i < frameList.length; i++) {\n frame = frameList[i];\n if(frame.type === 'byname' && frame.name === currentFrame) {\n idx = i;\n break;\n }\n }\n\n if(idx > 0 && idx < frameList.length - 1) {\n var filteredFrameList = [];\n for(i = 0; i < frameList.length; i++) {\n frame = frameList[i];\n if(frameList[i].type !== 'byname' || i > idx) {\n filteredFrameList.push(frame);\n }\n }\n frameList = filteredFrameList;\n }\n }\n\n if(frameList.length > 0) {\n queueFrames(frameList);\n } else {\n // This is the case where there were simply no frames. It's a little strange\n // since there's not much to do:\n gd.emit('plotly_animated');\n resolve();\n }\n });\n}\n\n/**\n * Register new frames\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n *\n * @param {array of objects} frameList\n * list of frame definitions, in which each object includes any of:\n * - name: {string} name of frame to add\n * - data: {array of objects} trace data\n * - layout {object} layout definition\n * - traces {array} trace indices\n * - baseframe {string} name of frame from which this frame gets defaults\n *\n * @param {array of integers} indices\n * an array of integer indices matching the respective frames in `frameList`. If not\n * provided, an index will be provided in serial order. If already used, the frame\n * will be overwritten.\n */\nfunction addFrames(gd, frameList, indices) {\n gd = Lib.getGraphDiv(gd);\n\n if(frameList === null || frameList === undefined) {\n return Promise.resolve();\n }\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error(\n 'This element is not a Plotly plot: ' + gd + '. It\\'s likely that you\\'ve failed ' +\n 'to create a plot before adding frames. For more details, see ' +\n 'https://plotly.com/javascript/animations/'\n );\n }\n\n var i, frame, j, idx;\n var _frames = gd._transitionData._frames;\n var _frameHash = gd._transitionData._frameHash;\n\n\n if(!Array.isArray(frameList)) {\n throw new Error('addFrames failure: frameList must be an Array of frame definitions' + frameList);\n }\n\n // Create a sorted list of insertions since we run into lots of problems if these\n // aren't in ascending order of index:\n //\n // Strictly for sorting. Make sure this is guaranteed to never collide with any\n // already-exisisting indices:\n var bigIndex = _frames.length + frameList.length * 2;\n\n var insertions = [];\n var _frameHashLocal = {};\n for(i = frameList.length - 1; i >= 0; i--) {\n if(!Lib.isPlainObject(frameList[i])) continue;\n\n // The entire logic for checking for this type of name collision can be removed once we migrate to ES6 and\n // use a Map instead of an Object instance, as Map keys aren't converted to strings.\n var lookupName = frameList[i].name;\n var name = (_frameHash[lookupName] || _frameHashLocal[lookupName] || {}).name;\n var newName = frameList[i].name;\n var collisionPresent = _frameHash[name] || _frameHashLocal[name];\n\n if(name && newName && typeof newName === 'number' && collisionPresent && numericNameWarningCount < numericNameWarningCountLimit) {\n numericNameWarningCount++;\n\n Lib.warn('addFrames: overwriting frame \"' + (_frameHash[name] || _frameHashLocal[name]).name +\n '\" with a frame whose name of type \"number\" also equates to \"' +\n name + '\". This is valid but may potentially lead to unexpected ' +\n 'behavior since all plotly.js frame names are stored internally ' +\n 'as strings.');\n\n if(numericNameWarningCount === numericNameWarningCountLimit) {\n Lib.warn('addFrames: This API call has yielded too many of these warnings. ' +\n 'For the rest of this call, further warnings about numeric frame ' +\n 'names will be suppressed.');\n }\n }\n\n _frameHashLocal[lookupName] = {name: lookupName};\n\n insertions.push({\n frame: Plots.supplyFrameDefaults(frameList[i]),\n index: (indices && indices[i] !== undefined && indices[i] !== null) ? indices[i] : bigIndex + i\n });\n }\n\n // Sort this, taking note that undefined insertions end up at the end:\n insertions.sort(function(a, b) {\n if(a.index > b.index) return -1;\n if(a.index < b.index) return 1;\n return 0;\n });\n\n var ops = [];\n var revops = [];\n var frameCount = _frames.length;\n\n for(i = insertions.length - 1; i >= 0; i--) {\n frame = insertions[i].frame;\n\n if(typeof frame.name === 'number') {\n Lib.warn('Warning: addFrames accepts frames with numeric names, but the numbers are' +\n 'implicitly cast to strings');\n }\n\n if(!frame.name) {\n // Repeatedly assign a default name, incrementing the counter each time until\n // we get a name that's not in the hashed lookup table:\n while(_frameHash[(frame.name = 'frame ' + gd._transitionData._counter++)]);\n }\n\n if(_frameHash[frame.name]) {\n // If frame is present, overwrite its definition:\n for(j = 0; j < _frames.length; j++) {\n if((_frames[j] || {}).name === frame.name) break;\n }\n ops.push({type: 'replace', index: j, value: frame});\n revops.unshift({type: 'replace', index: j, value: _frames[j]});\n } else {\n // Otherwise insert it at the end of the list:\n idx = Math.max(0, Math.min(insertions[i].index, frameCount));\n\n ops.push({type: 'insert', index: idx, value: frame});\n revops.unshift({type: 'delete', index: idx});\n frameCount++;\n }\n }\n\n var undoFunc = Plots.modifyFrames;\n var redoFunc = Plots.modifyFrames;\n var undoArgs = [gd, revops];\n var redoArgs = [gd, ops];\n\n if(Queue) Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return Plots.modifyFrames(gd, ops);\n}\n\n/**\n * Delete frame\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n *\n * @param {array of integers} frameList\n * list of integer indices of frames to be deleted\n */\nfunction deleteFrames(gd, frameList) {\n gd = Lib.getGraphDiv(gd);\n\n if(!Lib.isPlotDiv(gd)) {\n throw new Error('This element is not a Plotly plot: ' + gd);\n }\n\n var i, idx;\n var _frames = gd._transitionData._frames;\n var ops = [];\n var revops = [];\n\n if(!frameList) {\n frameList = [];\n for(i = 0; i < _frames.length; i++) {\n frameList.push(i);\n }\n }\n\n frameList = frameList.slice();\n frameList.sort();\n\n for(i = frameList.length - 1; i >= 0; i--) {\n idx = frameList[i];\n ops.push({type: 'delete', index: idx});\n revops.unshift({type: 'insert', index: idx, value: _frames[idx]});\n }\n\n var undoFunc = Plots.modifyFrames;\n var redoFunc = Plots.modifyFrames;\n var undoArgs = [gd, revops];\n var redoArgs = [gd, ops];\n\n if(Queue) Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);\n\n return Plots.modifyFrames(gd, ops);\n}\n\n/**\n * Purge a graph container div back to its initial pre-_doPlot state\n *\n * @param {string id or DOM element} gd\n * the id or DOM element of the graph container div\n */\nfunction purge(gd) {\n gd = Lib.getGraphDiv(gd);\n\n var fullLayout = gd._fullLayout || {};\n var fullData = gd._fullData || [];\n\n // remove gl contexts\n Plots.cleanPlot([], {}, fullData, fullLayout);\n\n // purge properties\n Plots.purge(gd);\n\n // purge event emitter methods\n Events.purge(gd);\n\n // remove plot container\n if(fullLayout._container) fullLayout._container.remove();\n\n // in contrast to _doPlots.purge which does NOT clear _context!\n delete gd._context;\n\n return gd;\n}\n\n// determines if the graph div requires a recalculation of its inverse matrix transforms by comparing old + new bounding boxes.\nfunction calcInverseTransform(gd) {\n var fullLayout = gd._fullLayout;\n\n var newBBox = gd.getBoundingClientRect();\n if(Lib.equalDomRects(newBBox, fullLayout._lastBBox)) return;\n\n var m = fullLayout._invTransform = Lib.inverseTransformMatrix(Lib.getFullTransformMatrix(gd));\n fullLayout._invScaleX = Math.sqrt(m[0][0] * m[0][0] + m[0][1] * m[0][1] + m[0][2] * m[0][2]);\n fullLayout._invScaleY = Math.sqrt(m[1][0] * m[1][0] + m[1][1] * m[1][1] + m[1][2] * m[1][2]);\n fullLayout._lastBBox = newBBox;\n}\n\n// -------------------------------------------------------\n// makePlotFramework: Create the plot container and axes\n// -------------------------------------------------------\nfunction makePlotFramework(gd) {\n var gd3 = d3.select(gd);\n var fullLayout = gd._fullLayout;\n\n fullLayout._calcInverseTransform = calcInverseTransform;\n fullLayout._calcInverseTransform(gd);\n\n // Plot container\n fullLayout._container = gd3.selectAll('.plot-container').data([0]);\n fullLayout._container.enter()\n .insert('div', ':first-child')\n .classed('plot-container', true)\n .classed('plotly', true);\n\n // Make the svg container\n fullLayout._paperdiv = fullLayout._container.selectAll('.svg-container').data([0]);\n fullLayout._paperdiv.enter().append('div')\n .classed('user-select-none', true)\n .classed('svg-container', true)\n .style('position', 'relative');\n\n // Make the graph containers\n // start fresh each time we get here, so we know the order comes out\n // right, rather than enter/exit which can muck up the order\n // TODO: sort out all the ordering so we don't have to\n // explicitly delete anything\n // FIXME: parcoords reuses this object, not the best pattern\n fullLayout._glcontainer = fullLayout._paperdiv.selectAll('.gl-container')\n .data([{}]);\n\n fullLayout._glcontainer.enter().append('div')\n .classed('gl-container', true);\n\n fullLayout._paperdiv.selectAll('.main-svg').remove();\n fullLayout._paperdiv.select('.modebar-container').remove();\n\n fullLayout._paper = fullLayout._paperdiv.insert('svg', ':first-child')\n .classed('main-svg', true);\n\n fullLayout._toppaper = fullLayout._paperdiv.append('svg')\n .classed('main-svg', true);\n\n fullLayout._modebardiv = fullLayout._paperdiv.append('div');\n delete fullLayout._modeBar;\n\n fullLayout._hoverpaper = fullLayout._paperdiv.append('svg')\n .classed('main-svg', true);\n\n if(!fullLayout._uid) {\n var otherUids = {};\n d3.selectAll('defs').each(function() {\n if(this.id) otherUids[this.id.split('-')[1]] = 1;\n });\n fullLayout._uid = Lib.randstr(otherUids);\n }\n\n fullLayout._paperdiv.selectAll('.main-svg')\n .attr(xmlnsNamespaces.svgAttrs);\n\n fullLayout._defs = fullLayout._paper.append('defs')\n .attr('id', 'defs-' + fullLayout._uid);\n\n fullLayout._clips = fullLayout._defs.append('g')\n .classed('clips', true);\n\n fullLayout._topdefs = fullLayout._toppaper.append('defs')\n .attr('id', 'topdefs-' + fullLayout._uid);\n\n fullLayout._topclips = fullLayout._topdefs.append('g')\n .classed('clips', true);\n\n fullLayout._bgLayer = fullLayout._paper.append('g')\n .classed('bglayer', true);\n\n fullLayout._draggers = fullLayout._paper.append('g')\n .classed('draglayer', true);\n\n // lower shape/image layer - note that this is behind\n // all subplots data/grids but above the backgrounds\n // except inset subplots, whose backgrounds are drawn\n // inside their own group so that they appear above\n // the data for the main subplot\n // lower shapes and images which are fully referenced to\n // a subplot still get drawn within the subplot's group\n // so they will work correctly on insets\n var layerBelow = fullLayout._paper.append('g')\n .classed('layer-below', true);\n fullLayout._imageLowerLayer = layerBelow.append('g')\n .classed('imagelayer', true);\n fullLayout._shapeLowerLayer = layerBelow.append('g')\n .classed('shapelayer', true);\n\n // single cartesian layer for the whole plot\n fullLayout._cartesianlayer = fullLayout._paper.append('g').classed('cartesianlayer', true);\n\n // single polar layer for the whole plot\n fullLayout._polarlayer = fullLayout._paper.append('g').classed('polarlayer', true);\n\n // single smith layer for the whole plot\n fullLayout._smithlayer = fullLayout._paper.append('g').classed('smithlayer', true);\n\n // single ternary layer for the whole plot\n fullLayout._ternarylayer = fullLayout._paper.append('g').classed('ternarylayer', true);\n\n // single geo layer for the whole plot\n fullLayout._geolayer = fullLayout._paper.append('g').classed('geolayer', true);\n\n // single funnelarea layer for the whole plot\n fullLayout._funnelarealayer = fullLayout._paper.append('g').classed('funnelarealayer', true);\n\n // single pie layer for the whole plot\n fullLayout._pielayer = fullLayout._paper.append('g').classed('pielayer', true);\n\n // single treemap layer for the whole plot\n fullLayout._iciclelayer = fullLayout._paper.append('g').classed('iciclelayer', true);\n\n // single treemap layer for the whole plot\n fullLayout._treemaplayer = fullLayout._paper.append('g').classed('treemaplayer', true);\n\n // single sunburst layer for the whole plot\n fullLayout._sunburstlayer = fullLayout._paper.append('g').classed('sunburstlayer', true);\n\n // single indicator layer for the whole plot\n fullLayout._indicatorlayer = fullLayout._toppaper.append('g').classed('indicatorlayer', true);\n\n // fill in image server scrape-svg\n fullLayout._glimages = fullLayout._paper.append('g').classed('glimages', true);\n\n // lastly upper shapes, info (legend, annotations) and hover layers go on top\n // these are in a different svg element normally, but get collapsed into a single\n // svg when exporting (after inserting 3D)\n // upper shapes/images are only those drawn above the whole plot, including subplots\n var layerAbove = fullLayout._toppaper.append('g')\n .classed('layer-above', true);\n fullLayout._imageUpperLayer = layerAbove.append('g')\n .classed('imagelayer', true);\n fullLayout._shapeUpperLayer = layerAbove.append('g')\n .classed('shapelayer', true);\n\n fullLayout._selectionLayer = fullLayout._toppaper.append('g').classed('selectionlayer', true);\n fullLayout._infolayer = fullLayout._toppaper.append('g').classed('infolayer', true);\n fullLayout._menulayer = fullLayout._toppaper.append('g').classed('menulayer', true);\n fullLayout._zoomlayer = fullLayout._toppaper.append('g').classed('zoomlayer', true);\n fullLayout._hoverlayer = fullLayout._hoverpaper.append('g').classed('hoverlayer', true);\n\n // Make the modebar container\n fullLayout._modebardiv\n .classed('modebar-container', true)\n .style('position', 'absolute')\n .style('top', '0px')\n .style('right', '0px');\n\n gd.emit('plotly_framework');\n}\n\nexports.animate = animate;\nexports.addFrames = addFrames;\nexports.deleteFrames = deleteFrames;\n\nexports.addTraces = addTraces;\nexports.deleteTraces = deleteTraces;\nexports.extendTraces = extendTraces;\nexports.moveTraces = moveTraces;\nexports.prependTraces = prependTraces;\n\nexports.newPlot = newPlot;\nexports._doPlot = _doPlot;\nexports.purge = purge;\n\nexports.react = react;\nexports.redraw = redraw;\nexports.relayout = relayout;\nexports.restyle = restyle;\n\nexports.setPlotConfig = setPlotConfig;\n\nexports.update = update;\n\nexports._guiRelayout = guiEdit(relayout);\nexports._guiRestyle = guiEdit(restyle);\nexports._guiUpdate = guiEdit(update);\n\nexports._storeDirectGUIEdit = _storeDirectGUIEdit;\n\n},{\"../components/color\":367,\"../components/drawing\":389,\"../components/selections\":455,\"../constants/xmlns_namespaces\":492,\"../lib\":515,\"../lib/events\":504,\"../lib/queue\":531,\"../plots/cartesian/axes\":566,\"../plots/cartesian/constants\":573,\"../plots/cartesian/graph_interact\":576,\"../plots/plots\":628,\"../registry\":647,\"./edit_types\":548,\"./helpers\":549,\"./manage_arrays\":551,\"./plot_config\":553,\"./plot_schema\":554,\"./subroutines\":556,\"@plotly/d3\":58,\"fast-isnumeric\":190,\"has-hover\":228}],553:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * This will be transferred over to gd and overridden by\n * config args to Plotly.newPlot.\n *\n * The defaults are the appropriate settings for plotly.js,\n * so we get the right experience without any config argument.\n *\n * N.B. the config options are not coerced using Lib.coerce so keys\n * like `valType` and `values` are only set for documentation purposes\n * at the moment.\n */\n\nvar configAttributes = {\n staticPlot: {\n valType: 'boolean',\n dflt: false,\n },\n\n typesetMath: {\n valType: 'boolean',\n dflt: true,\n },\n\n plotlyServerURL: {\n valType: 'string',\n dflt: '',\n },\n\n editable: {\n valType: 'boolean',\n dflt: false,\n },\n edits: {\n annotationPosition: {\n valType: 'boolean',\n dflt: false,\n },\n annotationTail: {\n valType: 'boolean',\n dflt: false,\n },\n annotationText: {\n valType: 'boolean',\n dflt: false,\n },\n axisTitleText: {\n valType: 'boolean',\n dflt: false,\n },\n colorbarPosition: {\n valType: 'boolean',\n dflt: false,\n },\n colorbarTitleText: {\n valType: 'boolean',\n dflt: false,\n },\n legendPosition: {\n valType: 'boolean',\n dflt: false,\n },\n legendText: {\n valType: 'boolean',\n dflt: false,\n },\n shapePosition: {\n valType: 'boolean',\n dflt: false,\n },\n titleText: {\n valType: 'boolean',\n dflt: false,\n }\n },\n\n editSelection: {\n valType: 'boolean',\n dflt: true,\n },\n\n autosizable: {\n valType: 'boolean',\n dflt: false,\n },\n responsive: {\n valType: 'boolean',\n dflt: false,\n },\n fillFrame: {\n valType: 'boolean',\n dflt: false,\n },\n frameMargins: {\n valType: 'number',\n dflt: 0,\n min: 0,\n max: 0.5,\n },\n\n scrollZoom: {\n valType: 'flaglist',\n flags: ['cartesian', 'gl3d', 'geo', 'mapbox'],\n extras: [true, false],\n dflt: 'gl3d+geo+mapbox',\n },\n doubleClick: {\n valType: 'enumerated',\n values: [false, 'reset', 'autosize', 'reset+autosize'],\n dflt: 'reset+autosize',\n },\n doubleClickDelay: {\n valType: 'number',\n dflt: 300,\n min: 0,\n },\n\n showAxisDragHandles: {\n valType: 'boolean',\n dflt: true,\n },\n showAxisRangeEntryBoxes: {\n valType: 'boolean',\n dflt: true,\n },\n\n showTips: {\n valType: 'boolean',\n dflt: true,\n },\n\n showLink: {\n valType: 'boolean',\n dflt: false,\n },\n linkText: {\n valType: 'string',\n dflt: 'Edit chart',\n noBlank: true,\n },\n sendData: {\n valType: 'boolean',\n dflt: true,\n },\n showSources: {\n valType: 'any',\n dflt: false,\n },\n\n displayModeBar: {\n valType: 'enumerated',\n values: ['hover', true, false],\n dflt: 'hover',\n },\n showSendToCloud: {\n valType: 'boolean',\n dflt: false,\n },\n showEditInChartStudio: {\n valType: 'boolean',\n dflt: false,\n },\n modeBarButtonsToRemove: {\n valType: 'any',\n dflt: [],\n },\n modeBarButtonsToAdd: {\n valType: 'any',\n dflt: [],\n },\n modeBarButtons: {\n valType: 'any',\n dflt: false,\n },\n toImageButtonOptions: {\n valType: 'any',\n dflt: {},\n },\n displaylogo: {\n valType: 'boolean',\n dflt: true,\n },\n watermark: {\n valType: 'boolean',\n dflt: false,\n },\n\n plotGlPixelRatio: {\n valType: 'number',\n dflt: 2,\n min: 1,\n max: 4,\n },\n\n setBackground: {\n valType: 'any',\n dflt: 'transparent',\n },\n\n topojsonURL: {\n valType: 'string',\n noBlank: true,\n dflt: 'https://cdn.plot.ly/',\n },\n\n mapboxAccessToken: {\n valType: 'string',\n dflt: null,\n },\n\n logging: {\n valType: 'integer',\n min: 0,\n max: 2,\n dflt: 1,\n },\n\n notifyOnLogging: {\n valType: 'integer',\n min: 0,\n max: 2,\n dflt: 0,\n },\n\n queueLength: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n },\n\n globalTransforms: {\n valType: 'any',\n dflt: [],\n },\n\n locale: {\n valType: 'string',\n dflt: 'en-US',\n },\n\n locales: {\n valType: 'any',\n dflt: {},\n }\n};\n\nvar dfltConfig = {};\n\nfunction crawl(src, target) {\n for(var k in src) {\n var obj = src[k];\n if(obj.valType) {\n target[k] = obj.dflt;\n } else {\n if(!target[k]) {\n target[k] = {};\n }\n crawl(obj, target[k]);\n }\n }\n}\n\ncrawl(configAttributes, dfltConfig);\n\nmodule.exports = {\n configAttributes: configAttributes,\n dfltConfig: dfltConfig\n};\n\n},{}],554:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\nvar baseAttributes = _dereq_('../plots/attributes');\nvar baseLayoutAttributes = _dereq_('../plots/layout_attributes');\nvar frameAttributes = _dereq_('../plots/frame_attributes');\nvar animationAttributes = _dereq_('../plots/animation_attributes');\nvar configAttributes = _dereq_('./plot_config').configAttributes;\n\nvar editTypes = _dereq_('./edit_types');\n\nvar extendDeepAll = Lib.extendDeepAll;\nvar isPlainObject = Lib.isPlainObject;\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\nvar nestedProperty = Lib.nestedProperty;\nvar valObjectMeta = Lib.valObjectMeta;\n\nvar IS_SUBPLOT_OBJ = '_isSubplotObj';\nvar IS_LINKED_TO_ARRAY = '_isLinkedToArray';\nvar ARRAY_ATTR_REGEXPS = '_arrayAttrRegexps';\nvar DEPRECATED = '_deprecated';\nvar UNDERSCORE_ATTRS = [IS_SUBPLOT_OBJ, IS_LINKED_TO_ARRAY, ARRAY_ATTR_REGEXPS, DEPRECATED];\n\nexports.IS_SUBPLOT_OBJ = IS_SUBPLOT_OBJ;\nexports.IS_LINKED_TO_ARRAY = IS_LINKED_TO_ARRAY;\nexports.DEPRECATED = DEPRECATED;\nexports.UNDERSCORE_ATTRS = UNDERSCORE_ATTRS;\n\n/** Outputs the full plotly.js plot schema\n *\n * @return {object}\n * - defs\n * - traces\n * - layout\n * - transforms\n * - frames\n * - animations\n * - config\n */\nexports.get = function() {\n var traces = {};\n\n Registry.allTypes.forEach(function(type) {\n traces[type] = getTraceAttributes(type);\n });\n\n var transforms = {};\n\n Object.keys(Registry.transformsRegistry).forEach(function(type) {\n transforms[type] = getTransformAttributes(type);\n });\n\n return {\n defs: {\n valObjects: valObjectMeta,\n metaKeys: UNDERSCORE_ATTRS.concat(['description', 'role', 'editType', 'impliedEdits']),\n editType: {\n traces: editTypes.traces,\n layout: editTypes.layout\n },\n impliedEdits: {\n }\n },\n\n traces: traces,\n layout: getLayoutAttributes(),\n\n transforms: transforms,\n\n frames: getFramesAttributes(),\n animation: formatAttributes(animationAttributes),\n\n config: formatAttributes(configAttributes)\n };\n};\n\n/**\n * Crawl the attribute tree, recursively calling a callback function\n *\n * @param {object} attrs\n * The node of the attribute tree (e.g. the root) from which recursion originates\n * @param {Function} callback\n * A callback function with the signature:\n * @callback callback\n * @param {object} attr an attribute\n * @param {String} attrName name string\n * @param {object[]} attrs all the attributes\n * @param {Number} level the recursion level, 0 at the root\n * @param {String} fullAttrString full attribute name (ie 'marker.line')\n * @param {Number} [specifiedLevel]\n * The level in the tree, in order to let the callback function detect descend or backtrack,\n * typically unsupplied (implied 0), just used by the self-recursive call.\n * The necessity arises because the tree traversal is not controlled by callback return values.\n * The decision to not use callback return values for controlling tree pruning arose from\n * the goal of keeping the crawler backwards compatible. Observe that one of the pruning conditions\n * precedes the callback call.\n * @param {string} [attrString]\n * the path to the current attribute, as an attribute string (ie 'marker.line')\n * typically unsupplied, but you may supply it if you want to disambiguate which attrs tree you\n * are starting from\n *\n * @return {object} transformOut\n * copy of transformIn that contains attribute defaults\n */\nexports.crawl = function(attrs, callback, specifiedLevel, attrString) {\n var level = specifiedLevel || 0;\n attrString = attrString || '';\n\n Object.keys(attrs).forEach(function(attrName) {\n var attr = attrs[attrName];\n\n if(UNDERSCORE_ATTRS.indexOf(attrName) !== -1) return;\n\n var fullAttrString = (attrString ? attrString + '.' : '') + attrName;\n callback(attr, attrName, attrs, level, fullAttrString);\n\n if(exports.isValObject(attr)) return;\n\n if(isPlainObject(attr) && attrName !== 'impliedEdits') {\n exports.crawl(attr, callback, level + 1, fullAttrString);\n }\n });\n};\n\n/** Is object a value object (or a container object)?\n *\n * @param {object} obj\n * @return {boolean}\n * returns true for a valid value object and\n * false for tree nodes in the attribute hierarchy\n */\nexports.isValObject = function(obj) {\n return obj && obj.valType !== undefined;\n};\n\n/**\n * Find all data array attributes in a given trace object - including\n * `arrayOk` attributes.\n *\n * @param {object} trace\n * full trace object that contains a reference to `_module.attributes`\n *\n * @return {array} arrayAttributes\n * list of array attributes for the given trace\n */\nexports.findArrayAttributes = function(trace) {\n var arrayAttributes = [];\n var stack = [];\n var isArrayStack = [];\n var baseContainer, baseAttrName;\n\n function callback(attr, attrName, attrs, level) {\n stack = stack.slice(0, level).concat([attrName]);\n isArrayStack = isArrayStack.slice(0, level).concat([attr && attr._isLinkedToArray]);\n\n var splittableAttr = (\n attr &&\n (attr.valType === 'data_array' || attr.arrayOk === true) &&\n !(stack[level - 1] === 'colorbar' && (attrName === 'ticktext' || attrName === 'tickvals'))\n );\n\n // Manually exclude 'colorbar.tickvals' and 'colorbar.ticktext' for now\n // which are declared as `valType: 'data_array'` but scale independently of\n // the coordinate arrays.\n //\n // Down the road, we might want to add a schema field (e.g `uncorrelatedArray: true`)\n // to distinguish attributes of the likes.\n\n if(!splittableAttr) return;\n\n crawlIntoTrace(baseContainer, 0, '');\n }\n\n function crawlIntoTrace(container, i, astrPartial) {\n var item = container[stack[i]];\n var newAstrPartial = astrPartial + stack[i];\n if(i === stack.length - 1) {\n if(isArrayOrTypedArray(item)) {\n arrayAttributes.push(baseAttrName + newAstrPartial);\n }\n } else {\n if(isArrayStack[i]) {\n if(Array.isArray(item)) {\n for(var j = 0; j < item.length; j++) {\n if(isPlainObject(item[j])) {\n crawlIntoTrace(item[j], i + 1, newAstrPartial + '[' + j + '].');\n }\n }\n }\n } else if(isPlainObject(item)) {\n crawlIntoTrace(item, i + 1, newAstrPartial + '.');\n }\n }\n }\n\n baseContainer = trace;\n baseAttrName = '';\n exports.crawl(baseAttributes, callback);\n if(trace._module && trace._module.attributes) {\n exports.crawl(trace._module.attributes, callback);\n }\n\n var transforms = trace.transforms;\n if(transforms) {\n for(var i = 0; i < transforms.length; i++) {\n var transform = transforms[i];\n var module = transform._module;\n\n if(module) {\n baseAttrName = 'transforms[' + i + '].';\n baseContainer = transform;\n\n exports.crawl(module.attributes, callback);\n }\n }\n }\n\n return arrayAttributes;\n};\n\n/*\n * Find the valObject for one attribute in an existing trace\n *\n * @param {object} trace\n * full trace object that contains a reference to `_module.attributes`\n * @param {object} parts\n * an array of parts, like ['transforms', 1, 'value']\n * typically from nestedProperty(...).parts\n *\n * @return {object|false}\n * the valObject for this attribute, or the last found parent\n * in some cases the innermost valObject will not exist, for example\n * `valType: 'any'` attributes where we might set a part of the attribute.\n * In that case, stop at the deepest valObject we *do* find.\n */\nexports.getTraceValObject = function(trace, parts) {\n var head = parts[0];\n var i = 1; // index to start recursing from\n var moduleAttrs, valObject;\n\n if(head === 'transforms') {\n if(parts.length === 1) {\n return baseAttributes.transforms;\n }\n var transforms = trace.transforms;\n if(!Array.isArray(transforms) || !transforms.length) return false;\n var tNum = parts[1];\n if(!isIndex(tNum) || tNum >= transforms.length) {\n return false;\n }\n moduleAttrs = (Registry.transformsRegistry[transforms[tNum].type] || {}).attributes;\n valObject = moduleAttrs && moduleAttrs[parts[2]];\n i = 3; // start recursing only inside the transform\n } else {\n // first look in the module for this trace\n // components have already merged their trace attributes in here\n var _module = trace._module;\n if(!_module) _module = (Registry.modules[trace.type || baseAttributes.type.dflt] || {})._module;\n if(!_module) return false;\n\n moduleAttrs = _module.attributes;\n valObject = moduleAttrs && moduleAttrs[head];\n\n // then look in the subplot attributes\n if(!valObject) {\n var subplotModule = _module.basePlotModule;\n if(subplotModule && subplotModule.attributes) {\n valObject = subplotModule.attributes[head];\n }\n }\n\n // finally look in the global attributes\n if(!valObject) valObject = baseAttributes[head];\n }\n\n return recurseIntoValObject(valObject, parts, i);\n};\n\n/*\n * Find the valObject for one layout attribute\n *\n * @param {array} parts\n * an array of parts, like ['annotations', 1, 'x']\n * typically from nestedProperty(...).parts\n *\n * @return {object|false}\n * the valObject for this attribute, or the last found parent\n * in some cases the innermost valObject will not exist, for example\n * `valType: 'any'` attributes where we might set a part of the attribute.\n * In that case, stop at the deepest valObject we *do* find.\n */\nexports.getLayoutValObject = function(fullLayout, parts) {\n var valObject = layoutHeadAttr(fullLayout, parts[0]);\n\n return recurseIntoValObject(valObject, parts, 1);\n};\n\nfunction layoutHeadAttr(fullLayout, head) {\n var i, key, _module, attributes;\n\n // look for attributes of the subplot types used on the plot\n var basePlotModules = fullLayout._basePlotModules;\n if(basePlotModules) {\n var out;\n for(i = 0; i < basePlotModules.length; i++) {\n _module = basePlotModules[i];\n if(_module.attrRegex && _module.attrRegex.test(head)) {\n // if a module defines overrides, these take precedence\n // initially this is to allow gl2d different editTypes from svg cartesian\n if(_module.layoutAttrOverrides) return _module.layoutAttrOverrides;\n\n // otherwise take the first attributes we find\n if(!out && _module.layoutAttributes) out = _module.layoutAttributes;\n }\n\n // a module can also override the behavior of base (and component) module layout attrs\n // again see gl2d for initial use case\n var baseOverrides = _module.baseLayoutAttrOverrides;\n if(baseOverrides && head in baseOverrides) return baseOverrides[head];\n }\n if(out) return out;\n }\n\n // look for layout attributes contributed by traces on the plot\n var modules = fullLayout._modules;\n if(modules) {\n for(i = 0; i < modules.length; i++) {\n attributes = modules[i].layoutAttributes;\n if(attributes && head in attributes) {\n return attributes[head];\n }\n }\n }\n\n /*\n * Next look in components.\n * Components that define a schema have already merged this into\n * base and subplot attribute defs, so ignore these.\n * Others (older style) all put all their attributes\n * inside a container matching the module `name`\n * eg `attributes` (array) or `legend` (object)\n */\n for(key in Registry.componentsRegistry) {\n _module = Registry.componentsRegistry[key];\n if(_module.name === 'colorscale' && head.indexOf('coloraxis') === 0) {\n return _module.layoutAttributes[head];\n } else if(!_module.schema && (head === _module.name)) {\n return _module.layoutAttributes;\n }\n }\n\n if(head in baseLayoutAttributes) return baseLayoutAttributes[head];\n\n return false;\n}\n\nfunction recurseIntoValObject(valObject, parts, i) {\n if(!valObject) return false;\n\n if(valObject._isLinkedToArray) {\n // skip array index, abort if we try to dive into an array without an index\n if(isIndex(parts[i])) i++;\n else if(i < parts.length) return false;\n }\n\n // now recurse as far as we can. Occasionally we have an attribute\n // setting an internal part below what's in the schema; just return\n // the innermost schema item we find.\n for(; i < parts.length; i++) {\n var newValObject = valObject[parts[i]];\n if(isPlainObject(newValObject)) valObject = newValObject;\n else break;\n\n if(i === parts.length - 1) break;\n\n if(valObject._isLinkedToArray) {\n i++;\n if(!isIndex(parts[i])) return false;\n } else if(valObject.valType === 'info_array') {\n i++;\n var index = parts[i];\n if(!isIndex(index)) return false;\n\n var items = valObject.items;\n if(Array.isArray(items)) {\n if(index >= items.length) return false;\n if(valObject.dimensions === 2) {\n i++;\n if(parts.length === i) return valObject;\n var index2 = parts[i];\n if(!isIndex(index2)) return false;\n valObject = items[index][index2];\n } else valObject = items[index];\n } else {\n valObject = items;\n }\n }\n }\n\n return valObject;\n}\n\n// note: this is different from Lib.isIndex, this one doesn't accept numeric\n// strings, only actual numbers.\nfunction isIndex(val) {\n return val === Math.round(val) && val >= 0;\n}\n\nfunction getTraceAttributes(type) {\n var _module, basePlotModule;\n\n _module = Registry.modules[type]._module,\n basePlotModule = _module.basePlotModule;\n\n var attributes = {};\n\n // make 'type' the first attribute in the object\n attributes.type = null;\n\n var copyBaseAttributes = extendDeepAll({}, baseAttributes);\n var copyModuleAttributes = extendDeepAll({}, _module.attributes);\n\n // prune global-level trace attributes that are already defined in a trace\n exports.crawl(copyModuleAttributes, function(attr, attrName, attrs, level, fullAttrString) {\n nestedProperty(copyBaseAttributes, fullAttrString).set(undefined);\n // Prune undefined attributes\n if(attr === undefined) nestedProperty(copyModuleAttributes, fullAttrString).set(undefined);\n });\n\n // base attributes (same for all trace types)\n extendDeepAll(attributes, copyBaseAttributes);\n\n // prune-out base attributes based on trace module categories\n if(Registry.traceIs(type, 'noOpacity')) {\n delete attributes.opacity;\n }\n if(!Registry.traceIs(type, 'showLegend')) {\n delete attributes.showlegend;\n delete attributes.legendgroup;\n }\n if(Registry.traceIs(type, 'noHover')) {\n delete attributes.hoverinfo;\n delete attributes.hoverlabel;\n }\n if(!_module.selectPoints) {\n delete attributes.selectedpoints;\n }\n\n // module attributes\n extendDeepAll(attributes, copyModuleAttributes);\n\n // subplot attributes\n if(basePlotModule.attributes) {\n extendDeepAll(attributes, basePlotModule.attributes);\n }\n\n // 'type' gets overwritten by baseAttributes; reset it here\n attributes.type = type;\n\n var out = {\n meta: _module.meta || {},\n categories: _module.categories || {},\n animatable: Boolean(_module.animatable),\n type: type,\n attributes: formatAttributes(attributes),\n };\n\n // trace-specific layout attributes\n if(_module.layoutAttributes) {\n var layoutAttributes = {};\n\n extendDeepAll(layoutAttributes, _module.layoutAttributes);\n out.layoutAttributes = formatAttributes(layoutAttributes);\n }\n\n // drop anim:true in non-animatable modules\n if(!_module.animatable) {\n exports.crawl(out, function(attr) {\n if(exports.isValObject(attr) && 'anim' in attr) {\n delete attr.anim;\n }\n });\n }\n\n return out;\n}\n\nfunction getLayoutAttributes() {\n var layoutAttributes = {};\n var key, _module;\n\n // global layout attributes\n extendDeepAll(layoutAttributes, baseLayoutAttributes);\n\n // add base plot module layout attributes\n for(key in Registry.subplotsRegistry) {\n _module = Registry.subplotsRegistry[key];\n\n if(!_module.layoutAttributes) continue;\n\n if(Array.isArray(_module.attr)) {\n for(var i = 0; i < _module.attr.length; i++) {\n handleBasePlotModule(layoutAttributes, _module, _module.attr[i]);\n }\n } else {\n var astr = _module.attr === 'subplot' ? _module.name : _module.attr;\n handleBasePlotModule(layoutAttributes, _module, astr);\n }\n }\n\n // add registered components layout attributes\n for(key in Registry.componentsRegistry) {\n _module = Registry.componentsRegistry[key];\n var schema = _module.schema;\n\n if(schema && (schema.subplots || schema.layout)) {\n /*\n * Components with defined schema have already been merged in at register time\n * but a few components define attributes that apply only to xaxis\n * not yaxis (rangeselector, rangeslider) - delete from y schema.\n * Note that the input attributes for xaxis/yaxis are the same object\n * so it's not possible to only add them to xaxis from the start.\n * If we ever have such asymmetry the other way, or anywhere else,\n * we will need to extend both this code and mergeComponentAttrsToSubplot\n * (which will not find yaxis only for example)\n */\n var subplots = schema.subplots;\n if(subplots && subplots.xaxis && !subplots.yaxis) {\n for(var xkey in subplots.xaxis) {\n delete layoutAttributes.yaxis[xkey];\n }\n }\n } else if(_module.name === 'colorscale') {\n extendDeepAll(layoutAttributes, _module.layoutAttributes);\n } else if(_module.layoutAttributes) {\n // older style without schema need to be explicitly merged in now\n insertAttrs(layoutAttributes, _module.layoutAttributes, _module.name);\n }\n }\n\n return {\n layoutAttributes: formatAttributes(layoutAttributes)\n };\n}\n\nfunction getTransformAttributes(type) {\n var _module = Registry.transformsRegistry[type];\n var attributes = extendDeepAll({}, _module.attributes);\n\n // add registered components transform attributes\n Object.keys(Registry.componentsRegistry).forEach(function(k) {\n var _module = Registry.componentsRegistry[k];\n\n if(_module.schema && _module.schema.transforms && _module.schema.transforms[type]) {\n Object.keys(_module.schema.transforms[type]).forEach(function(v) {\n insertAttrs(attributes, _module.schema.transforms[type][v], v);\n });\n }\n });\n\n return {\n attributes: formatAttributes(attributes)\n };\n}\n\nfunction getFramesAttributes() {\n var attrs = {\n frames: extendDeepAll({}, frameAttributes)\n };\n\n formatAttributes(attrs);\n\n return attrs.frames;\n}\n\nfunction formatAttributes(attrs) {\n mergeValTypeAndRole(attrs);\n formatArrayContainers(attrs);\n stringify(attrs);\n\n return attrs;\n}\n\nfunction mergeValTypeAndRole(attrs) {\n function makeSrcAttr(attrName) {\n return {\n valType: 'string',\n editType: 'none'\n };\n }\n\n function callback(attr, attrName, attrs) {\n if(exports.isValObject(attr)) {\n if(attr.arrayOk === true || attr.valType === 'data_array') {\n // all 'arrayOk' and 'data_array' attrs have a corresponding 'src' attr\n attrs[attrName + 'src'] = makeSrcAttr(attrName);\n }\n } else if(isPlainObject(attr)) {\n // all attrs container objects get role 'object'\n attr.role = 'object';\n }\n }\n\n exports.crawl(attrs, callback);\n}\n\nfunction formatArrayContainers(attrs) {\n function callback(attr, attrName, attrs) {\n if(!attr) return;\n\n var itemName = attr[IS_LINKED_TO_ARRAY];\n\n if(!itemName) return;\n\n delete attr[IS_LINKED_TO_ARRAY];\n\n attrs[attrName] = { items: {} };\n attrs[attrName].items[itemName] = attr;\n attrs[attrName].role = 'object';\n }\n\n exports.crawl(attrs, callback);\n}\n\n// this can take around 10ms and should only be run from PlotSchema.get(),\n// to ensure JSON.stringify(PlotSchema.get()) gives the intended result.\nfunction stringify(attrs) {\n function walk(attr) {\n for(var k in attr) {\n if(isPlainObject(attr[k])) {\n walk(attr[k]);\n } else if(Array.isArray(attr[k])) {\n for(var i = 0; i < attr[k].length; i++) {\n walk(attr[k][i]);\n }\n } else {\n // as JSON.stringify(/test/) // => {}\n if(attr[k] instanceof RegExp) {\n attr[k] = attr[k].toString();\n }\n }\n }\n }\n\n walk(attrs);\n}\n\n\nfunction handleBasePlotModule(layoutAttributes, _module, astr) {\n var np = nestedProperty(layoutAttributes, astr);\n var attrs = extendDeepAll({}, _module.layoutAttributes);\n\n attrs[IS_SUBPLOT_OBJ] = true;\n np.set(attrs);\n}\n\nfunction insertAttrs(baseAttrs, newAttrs, astr) {\n var np = nestedProperty(baseAttrs, astr);\n\n np.set(extendDeepAll(np.get() || {}, newAttrs));\n}\n\n},{\"../lib\":515,\"../plots/animation_attributes\":560,\"../plots/attributes\":562,\"../plots/frame_attributes\":595,\"../plots/layout_attributes\":619,\"../registry\":647,\"./edit_types\":548,\"./plot_config\":553}],555:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar plotAttributes = _dereq_('../plots/attributes');\n\nvar TEMPLATEITEMNAME = 'templateitemname';\n\nvar templateAttrs = {\n name: {\n valType: 'string',\n editType: 'none',\n }\n};\ntemplateAttrs[TEMPLATEITEMNAME] = {\n valType: 'string',\n editType: 'calc',\n};\n\n/**\n * templatedArray: decorate an attributes object with templating (and array)\n * properties.\n *\n * @param {string} name: the singular form of the array name. Sets\n * `_isLinkedToArray` to this, so the schema knows to treat this as an array.\n * @param {object} attrs: the item attributes. Since all callers are expected\n * to be constructing this object on the spot, we mutate it here for\n * performance, rather than extending a new object with it.\n *\n * @returns {object}: the decorated `attrs` object\n */\nexports.templatedArray = function(name, attrs) {\n attrs._isLinkedToArray = name;\n attrs.name = templateAttrs.name;\n attrs[TEMPLATEITEMNAME] = templateAttrs[TEMPLATEITEMNAME];\n return attrs;\n};\n\n/**\n * traceTemplater: logic for matching traces to trace templates\n *\n * @param {object} dataTemplate: collection of {traceType: [{template}, ...]}\n * ie each type the template applies to contains a list of template objects,\n * to be provided cyclically to data traces of that type.\n *\n * @returns {object}: {newTrace}, a function:\n * newTrace(traceIn): that takes the input traceIn, coerces its type, then\n * uses that type to find the next template to apply. returns the output\n * traceOut with template attached, ready to continue supplyDefaults.\n */\nexports.traceTemplater = function(dataTemplate) {\n var traceCounts = {};\n var traceType, typeTemplates;\n\n for(traceType in dataTemplate) {\n typeTemplates = dataTemplate[traceType];\n if(Array.isArray(typeTemplates) && typeTemplates.length) {\n traceCounts[traceType] = 0;\n }\n }\n\n function newTrace(traceIn) {\n traceType = Lib.coerce(traceIn, {}, plotAttributes, 'type');\n var traceOut = {type: traceType, _template: null};\n if(traceType in traceCounts) {\n typeTemplates = dataTemplate[traceType];\n // cycle through traces in the template set for this type\n var typei = traceCounts[traceType] % typeTemplates.length;\n traceCounts[traceType]++;\n traceOut._template = typeTemplates[typei];\n } else {\n // TODO: anything we should do for types missing from the template?\n // try to apply some other type? Or just bail as we do here?\n // Actually I think yes, we should apply other types; would be nice\n // if all scatter* could inherit from each other, and if histogram\n // could inherit from bar, etc... but how to specify this? And do we\n // compose them, or if a type is present require it to be complete?\n // Actually this could apply to layout too - 3D annotations\n // inheriting from 2D, axes of different types inheriting from each\n // other...\n }\n return traceOut;\n }\n\n return {\n newTrace: newTrace\n // TODO: function to figure out what's left & what didn't work\n };\n};\n\n/**\n * newContainer: Create a new sub-container inside `container` and propagate any\n * applicable template to it. If there's no template, still propagates\n * `undefined` so relinkPrivate will not retain an old template!\n *\n * @param {object} container: the outer container, should already have _template\n * if there *is* a template for this plot\n * @param {string} name: the key of the new container to make\n * @param {string} baseName: if applicable, a base attribute to take the\n * template from, ie for xaxis3 the base would be xaxis\n *\n * @returns {object}: an object for inclusion _full*, empty except for the\n * appropriate template piece\n */\nexports.newContainer = function(container, name, baseName) {\n var template = container._template;\n var part = template && (template[name] || (baseName && template[baseName]));\n if(!Lib.isPlainObject(part)) part = null;\n\n var out = container[name] = {_template: part};\n return out;\n};\n\n/**\n * arrayTemplater: special logic for templating both defaults and specific items\n * in a container array (annotations etc)\n *\n * @param {object} container: the outer container, should already have _template\n * if there *is* a template for this plot\n * @param {string} name: the name of the array to template (ie 'annotations')\n * will be used to find default ('annotationdefaults' object) and specific\n * ('annotations' array) template specs.\n * @param {string} inclusionAttr: the attribute determining this item's\n * inclusion in the output, usually 'visible' or 'enabled'\n *\n * @returns {object}: {newItem, defaultItems}, both functions:\n * newItem(itemIn): create an output item, bare except for the correct\n * template and name(s), as the base for supplyDefaults\n * defaultItems(): to be called after all newItem calls, return any\n * specific template items that have not already beeen included,\n * also as bare output items ready for supplyDefaults.\n */\nexports.arrayTemplater = function(container, name, inclusionAttr) {\n var template = container._template;\n var defaultsTemplate = template && template[arrayDefaultKey(name)];\n var templateItems = template && template[name];\n if(!Array.isArray(templateItems) || !templateItems.length) {\n templateItems = [];\n }\n\n var usedNames = {};\n\n function newItem(itemIn) {\n // include name and templateitemname in the output object for ALL\n // container array items. Note: you could potentially use different\n // name and templateitemname, if you're using one template to make\n // another template. templateitemname would be the name in the original\n // template, and name is the new \"subclassed\" item name.\n var out = {name: itemIn.name, _input: itemIn};\n var templateItemName = out[TEMPLATEITEMNAME] = itemIn[TEMPLATEITEMNAME];\n\n // no itemname: use the default template\n if(!validItemName(templateItemName)) {\n out._template = defaultsTemplate;\n return out;\n }\n\n // look for an item matching this itemname\n // note these do not inherit from the default template, only the item.\n for(var i = 0; i < templateItems.length; i++) {\n var templateItem = templateItems[i];\n if(templateItem.name === templateItemName) {\n // Note: it's OK to use a template item more than once\n // but using it at least once will stop it from generating\n // a default item at the end.\n usedNames[templateItemName] = 1;\n out._template = templateItem;\n return out;\n }\n }\n\n // Didn't find a matching template item, so since this item is intended\n // to only be modifications it's most likely broken. Hide it unless\n // it's explicitly marked visible - in which case it gets NO template,\n // not even the default.\n out[inclusionAttr] = itemIn[inclusionAttr] || false;\n // special falsy value we can look for in validateTemplate\n out._template = false;\n return out;\n }\n\n function defaultItems() {\n var out = [];\n for(var i = 0; i < templateItems.length; i++) {\n var templateItem = templateItems[i];\n var name = templateItem.name;\n // only allow named items to be added as defaults,\n // and only allow each name once\n if(validItemName(name) && !usedNames[name]) {\n var outi = {\n _template: templateItem,\n name: name,\n _input: {_templateitemname: name}\n };\n outi[TEMPLATEITEMNAME] = templateItem[TEMPLATEITEMNAME];\n out.push(outi);\n usedNames[name] = 1;\n }\n }\n return out;\n }\n\n return {\n newItem: newItem,\n defaultItems: defaultItems\n };\n};\n\nfunction validItemName(name) {\n return name && typeof name === 'string';\n}\n\nfunction arrayDefaultKey(name) {\n var lastChar = name.length - 1;\n if(name.charAt(lastChar) !== 's') {\n Lib.warn('bad argument to arrayDefaultKey: ' + name);\n }\n return name.substr(0, name.length - 1) + 'defaults';\n}\nexports.arrayDefaultKey = arrayDefaultKey;\n\n/**\n * arrayEditor: helper for editing array items that may have come from\n * template defaults (in which case they will not exist in the input yet)\n *\n * @param {object} parentIn: the input container (eg gd.layout)\n * @param {string} containerStr: the attribute string for the container inside\n * `parentIn`.\n * @param {object} itemOut: the _full* item (eg gd._fullLayout.annotations[0])\n * that we'll be editing. Assumed to have been created by `arrayTemplater`.\n *\n * @returns {object}: {modifyBase, modifyItem, getUpdateObj, applyUpdate}, all functions:\n * modifyBase(attr, value): Add an update that's *not* related to the item.\n * `attr` is the full attribute string.\n * modifyItem(attr, value): Add an update to the item. `attr` is just the\n * portion of the attribute string inside the item.\n * getUpdateObj(): Get the final constructed update object, to use in\n * `restyle` or `relayout`. Also resets the update object in case this\n * update was canceled.\n * applyUpdate(attr, value): optionally add an update `attr: value`,\n * then apply it to `parent` which should be the parent of `containerIn`,\n * ie the object to which `containerStr` is the attribute string.\n */\nexports.arrayEditor = function(parentIn, containerStr, itemOut) {\n var lengthIn = (Lib.nestedProperty(parentIn, containerStr).get() || []).length;\n var index = itemOut._index;\n // Check that we are indeed off the end of this container.\n // Otherwise a devious user could put a key `_templateitemname` in their\n // own input and break lots of things.\n var templateItemName = (index >= lengthIn) && (itemOut._input || {})._templateitemname;\n if(templateItemName) index = lengthIn;\n var itemStr = containerStr + '[' + index + ']';\n\n var update;\n function resetUpdate() {\n update = {};\n if(templateItemName) {\n update[itemStr] = {};\n update[itemStr][TEMPLATEITEMNAME] = templateItemName;\n }\n }\n resetUpdate();\n\n function modifyBase(attr, value) {\n update[attr] = value;\n }\n\n function modifyItem(attr, value) {\n if(templateItemName) {\n // we're making a new object: edit that object\n Lib.nestedProperty(update[itemStr], attr).set(value);\n } else {\n // we're editing an existing object: include *just* the edit\n update[itemStr + '.' + attr] = value;\n }\n }\n\n function getUpdateObj() {\n var updateOut = update;\n resetUpdate();\n return updateOut;\n }\n\n function applyUpdate(attr, value) {\n if(attr) modifyItem(attr, value);\n var updateToApply = getUpdateObj();\n for(var key in updateToApply) {\n Lib.nestedProperty(parentIn, key).set(updateToApply[key]);\n }\n }\n\n return {\n modifyBase: modifyBase,\n modifyItem: modifyItem,\n getUpdateObj: getUpdateObj,\n applyUpdate: applyUpdate\n };\n};\n\n},{\"../lib\":515,\"../plots/attributes\":562}],556:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Registry = _dereq_('../registry');\nvar Plots = _dereq_('../plots/plots');\n\nvar Lib = _dereq_('../lib');\nvar clearGlCanvases = _dereq_('../lib/clear_gl_canvases');\n\nvar Color = _dereq_('../components/color');\nvar Drawing = _dereq_('../components/drawing');\nvar Titles = _dereq_('../components/titles');\nvar ModeBar = _dereq_('../components/modebar');\n\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar alignmentConstants = _dereq_('../constants/alignment');\nvar axisConstraints = _dereq_('../plots/cartesian/constraints');\nvar enforceAxisConstraints = axisConstraints.enforce;\nvar cleanAxisConstraints = axisConstraints.clean;\nvar doAutoRange = _dereq_('../plots/cartesian/autorange').doAutoRange;\n\nvar SVG_TEXT_ANCHOR_START = 'start';\nvar SVG_TEXT_ANCHOR_MIDDLE = 'middle';\nvar SVG_TEXT_ANCHOR_END = 'end';\n\nexports.layoutStyles = function(gd) {\n return Lib.syncOrAsync([Plots.doAutoMargin, lsInner], gd);\n};\n\nfunction overlappingDomain(xDomain, yDomain, domains) {\n for(var i = 0; i < domains.length; i++) {\n var existingX = domains[i][0];\n var existingY = domains[i][1];\n\n if(existingX[0] >= xDomain[1] || existingX[1] <= xDomain[0]) {\n continue;\n }\n if(existingY[0] < yDomain[1] && existingY[1] > yDomain[0]) {\n return true;\n }\n }\n return false;\n}\n\nfunction lsInner(gd) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var pad = gs.p;\n var axList = Axes.list(gd, '', true);\n var i, subplot, plotinfo, ax, xa, ya;\n\n fullLayout._paperdiv.style({\n width: (gd._context.responsive && fullLayout.autosize && !gd._context._hasZeroWidth && !gd.layout.width) ? '100%' : fullLayout.width + 'px',\n height: (gd._context.responsive && fullLayout.autosize && !gd._context._hasZeroHeight && !gd.layout.height) ? '100%' : fullLayout.height + 'px'\n })\n .selectAll('.main-svg')\n .call(Drawing.setSize, fullLayout.width, fullLayout.height);\n gd._context.setBackground(gd, fullLayout.paper_bgcolor);\n\n exports.drawMainTitle(gd);\n ModeBar.manage(gd);\n\n // _has('cartesian') means SVG specifically, not GL2D - but GL2D\n // can still get here because it makes some of the SVG structure\n // for shared features like selections.\n if(!fullLayout._has('cartesian')) {\n return Plots.previousPromises(gd);\n }\n\n function getLinePosition(ax, counterAx, side) {\n var lwHalf = ax._lw / 2;\n\n if(ax._id.charAt(0) === 'x') {\n if(!counterAx) return gs.t + gs.h * (1 - (ax.position || 0)) + (lwHalf % 1);\n else if(side === 'top') return counterAx._offset - pad - lwHalf;\n return counterAx._offset + counterAx._length + pad + lwHalf;\n }\n\n if(!counterAx) return gs.l + gs.w * (ax.position || 0) + (lwHalf % 1);\n else if(side === 'right') return counterAx._offset + counterAx._length + pad + lwHalf;\n return counterAx._offset - pad - lwHalf;\n }\n\n // some preparation of axis position info\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n var counterAx = ax._anchorAxis;\n\n // clear axis line positions, to be set in the subplot loop below\n ax._linepositions = {};\n\n // stash crispRounded linewidth so we don't need to pass gd all over the place\n ax._lw = Drawing.crispRound(gd, ax.linewidth, 1);\n\n // figure out the main axis line and main mirror line position.\n // it's easier to follow the logic if we handle these separately from\n // ax._linepositions, which are only used by mirror=allticks\n // for non-main-subplot ticks, and mirror=all(ticks)? for zero line\n // hiding logic\n ax._mainLinePosition = getLinePosition(ax, counterAx, ax.side);\n ax._mainMirrorPosition = (ax.mirror && counterAx) ?\n getLinePosition(ax, counterAx,\n alignmentConstants.OPPOSITE_SIDE[ax.side]) : null;\n }\n\n // figure out which backgrounds we need to draw,\n // and in which layers to put them\n var lowerBackgroundIDs = [];\n var backgroundIds = [];\n var lowerDomains = [];\n // no need to draw background when paper and plot color are the same color,\n // activate mode just for large splom (which benefit the most from this\n // optimization), but this could apply to all cartesian subplots.\n var noNeedForBg = (\n Color.opacity(fullLayout.paper_bgcolor) === 1 &&\n Color.opacity(fullLayout.plot_bgcolor) === 1 &&\n fullLayout.paper_bgcolor === fullLayout.plot_bgcolor\n );\n\n for(subplot in fullLayout._plots) {\n plotinfo = fullLayout._plots[subplot];\n\n if(plotinfo.mainplot) {\n // mainplot is a reference to the main plot this one is overlaid on\n // so if it exists, this is an overlaid plot and we don't need to\n // give it its own background\n if(plotinfo.bg) {\n plotinfo.bg.remove();\n }\n plotinfo.bg = undefined;\n } else {\n var xDomain = plotinfo.xaxis.domain;\n var yDomain = plotinfo.yaxis.domain;\n var plotgroup = plotinfo.plotgroup;\n\n if(overlappingDomain(xDomain, yDomain, lowerDomains)) {\n var pgNode = plotgroup.node();\n var plotgroupBg = plotinfo.bg = Lib.ensureSingle(plotgroup, 'rect', 'bg');\n pgNode.insertBefore(plotgroupBg.node(), pgNode.childNodes[0]);\n backgroundIds.push(subplot);\n } else {\n plotgroup.select('rect.bg').remove();\n lowerDomains.push([xDomain, yDomain]);\n if(!noNeedForBg) {\n lowerBackgroundIDs.push(subplot);\n backgroundIds.push(subplot);\n }\n }\n }\n }\n\n // now create all the lower-layer backgrounds at once now that\n // we have the list of subplots that need them\n var lowerBackgrounds = fullLayout._bgLayer.selectAll('.bg')\n .data(lowerBackgroundIDs);\n\n lowerBackgrounds.enter().append('rect')\n .classed('bg', true);\n\n lowerBackgrounds.exit().remove();\n\n lowerBackgrounds.each(function(subplot) {\n fullLayout._plots[subplot].bg = d3.select(this);\n });\n\n // style all backgrounds\n for(i = 0; i < backgroundIds.length; i++) {\n plotinfo = fullLayout._plots[backgroundIds[i]];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n if(plotinfo.bg && xa._offset !== undefined && ya._offset !== undefined) {\n plotinfo.bg\n .call(Drawing.setRect,\n xa._offset - pad, ya._offset - pad,\n xa._length + 2 * pad, ya._length + 2 * pad)\n .call(Color.fill, fullLayout.plot_bgcolor)\n .style('stroke-width', 0);\n }\n }\n\n if(!fullLayout._hasOnlyLargeSploms) {\n for(subplot in fullLayout._plots) {\n plotinfo = fullLayout._plots[subplot];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n // Clip so that data only shows up on the plot area.\n var clipId = plotinfo.clipId = 'clip' + fullLayout._uid + subplot + 'plot';\n\n var plotClip = Lib.ensureSingleById(fullLayout._clips, 'clipPath', clipId, function(s) {\n s.classed('plotclip', true)\n .append('rect');\n });\n\n plotinfo.clipRect = plotClip.select('rect').attr({\n width: xa._length,\n height: ya._length\n });\n\n Drawing.setTranslate(plotinfo.plot, xa._offset, ya._offset);\n\n var plotClipId;\n var layerClipId;\n\n if(plotinfo._hasClipOnAxisFalse) {\n plotClipId = null;\n layerClipId = clipId;\n } else {\n plotClipId = clipId;\n layerClipId = null;\n }\n\n Drawing.setClipUrl(plotinfo.plot, plotClipId, gd);\n\n // stash layer clipId value (null or same as clipId)\n // to DRY up Drawing.setClipUrl calls on trace-module and trace layers\n // downstream\n plotinfo.layerClipId = layerClipId;\n }\n }\n\n var xLinesXLeft, xLinesXRight, xLinesYBottom, xLinesYTop,\n leftYLineWidth, rightYLineWidth;\n var yLinesYBottom, yLinesYTop, yLinesXLeft, yLinesXRight,\n connectYBottom, connectYTop;\n var extraSubplot;\n\n function xLinePath(y) {\n return 'M' + xLinesXLeft + ',' + y + 'H' + xLinesXRight;\n }\n\n function xLinePathFree(y) {\n return 'M' + xa._offset + ',' + y + 'h' + xa._length;\n }\n\n function yLinePath(x) {\n return 'M' + x + ',' + yLinesYTop + 'V' + yLinesYBottom;\n }\n\n function yLinePathFree(x) {\n return 'M' + x + ',' + ya._offset + 'v' + ya._length;\n }\n\n function mainPath(ax, pathFn, pathFnFree) {\n if(!ax.showline || subplot !== ax._mainSubplot) return '';\n if(!ax._anchorAxis) return pathFnFree(ax._mainLinePosition);\n var out = pathFn(ax._mainLinePosition);\n if(ax.mirror) out += pathFn(ax._mainMirrorPosition);\n return out;\n }\n\n for(subplot in fullLayout._plots) {\n plotinfo = fullLayout._plots[subplot];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n /*\n * x lines get longer where they meet y lines, to make a crisp corner.\n * The x lines get the padding (margin.pad) plus the y line width to\n * fill up the corner nicely. Free x lines are excluded - they always\n * span exactly the data area of the plot\n *\n * | XXXXX\n * | XXXXX\n * |\n * +------\n * x1\n * -----\n * x2\n */\n var xPath = 'M0,0';\n if(shouldShowLinesOrTicks(xa, subplot)) {\n leftYLineWidth = findCounterAxisLineWidth(xa, 'left', ya, axList);\n xLinesXLeft = xa._offset - (leftYLineWidth ? (pad + leftYLineWidth) : 0);\n rightYLineWidth = findCounterAxisLineWidth(xa, 'right', ya, axList);\n xLinesXRight = xa._offset + xa._length + (rightYLineWidth ? (pad + rightYLineWidth) : 0);\n xLinesYBottom = getLinePosition(xa, ya, 'bottom');\n xLinesYTop = getLinePosition(xa, ya, 'top');\n\n // save axis line positions for extra ticks to reference\n // each subplot that gets ticks from \"allticks\" gets an entry:\n // [left or bottom, right or top]\n extraSubplot = (!xa._anchorAxis || subplot !== xa._mainSubplot);\n if(extraSubplot && (xa.mirror === 'allticks' || xa.mirror === 'all')) {\n xa._linepositions[subplot] = [xLinesYBottom, xLinesYTop];\n }\n\n xPath = mainPath(xa, xLinePath, xLinePathFree);\n if(extraSubplot && xa.showline && (xa.mirror === 'all' || xa.mirror === 'allticks')) {\n xPath += xLinePath(xLinesYBottom) + xLinePath(xLinesYTop);\n }\n\n plotinfo.xlines\n .style('stroke-width', xa._lw + 'px')\n .call(Color.stroke, xa.showline ?\n xa.linecolor : 'rgba(0,0,0,0)');\n }\n plotinfo.xlines.attr('d', xPath);\n\n /*\n * y lines that meet x axes get longer only by margin.pad, because\n * the x axes fill in the corner space. Free y axes, like free x axes,\n * always span exactly the data area of the plot\n *\n * | | XXXX\n * y2| y1| XXXX\n * | | XXXX\n * |\n * +-----\n */\n var yPath = 'M0,0';\n if(shouldShowLinesOrTicks(ya, subplot)) {\n connectYBottom = findCounterAxisLineWidth(ya, 'bottom', xa, axList);\n yLinesYBottom = ya._offset + ya._length + (connectYBottom ? pad : 0);\n connectYTop = findCounterAxisLineWidth(ya, 'top', xa, axList);\n yLinesYTop = ya._offset - (connectYTop ? pad : 0);\n yLinesXLeft = getLinePosition(ya, xa, 'left');\n yLinesXRight = getLinePosition(ya, xa, 'right');\n\n extraSubplot = (!ya._anchorAxis || subplot !== ya._mainSubplot);\n if(extraSubplot && (ya.mirror === 'allticks' || ya.mirror === 'all')) {\n ya._linepositions[subplot] = [yLinesXLeft, yLinesXRight];\n }\n\n yPath = mainPath(ya, yLinePath, yLinePathFree);\n if(extraSubplot && ya.showline && (ya.mirror === 'all' || ya.mirror === 'allticks')) {\n yPath += yLinePath(yLinesXLeft) + yLinePath(yLinesXRight);\n }\n\n plotinfo.ylines\n .style('stroke-width', ya._lw + 'px')\n .call(Color.stroke, ya.showline ?\n ya.linecolor : 'rgba(0,0,0,0)');\n }\n plotinfo.ylines.attr('d', yPath);\n }\n\n Axes.makeClipPaths(gd);\n\n return Plots.previousPromises(gd);\n}\n\nfunction shouldShowLinesOrTicks(ax, subplot) {\n return (ax.ticks || ax.showline) &&\n (subplot === ax._mainSubplot || ax.mirror === 'all' || ax.mirror === 'allticks');\n}\n\n/*\n * should we draw a line on counterAx at this side of ax?\n * It's assumed that counterAx is known to overlay the subplot we're working on\n * but it may not be its main axis.\n */\nfunction shouldShowLineThisSide(ax, side, counterAx) {\n // does counterAx get a line at all?\n if(!counterAx.showline || !counterAx._lw) return false;\n\n // are we drawing *all* lines for counterAx?\n if(counterAx.mirror === 'all' || counterAx.mirror === 'allticks') return true;\n\n var anchorAx = counterAx._anchorAxis;\n\n // is this a free axis? free axes can only have a subplot side-line with all(ticks)? mirroring\n if(!anchorAx) return false;\n\n // in order to handle cases where the user forgot to anchor this axis correctly\n // (because its default anchor has the same domain on the relevant end)\n // check whether the relevant position is the same.\n var sideIndex = alignmentConstants.FROM_BL[side];\n if(counterAx.side === side) {\n return anchorAx.domain[sideIndex] === ax.domain[sideIndex];\n }\n return counterAx.mirror && anchorAx.domain[1 - sideIndex] === ax.domain[1 - sideIndex];\n}\n\n/*\n * Is there another axis intersecting `side` end of `ax`?\n * First look at `counterAx` (the axis for this subplot),\n * then at all other potential counteraxes on or overlaying this subplot.\n * Take the line width from the first one that has a line.\n */\nfunction findCounterAxisLineWidth(ax, side, counterAx, axList) {\n if(shouldShowLineThisSide(ax, side, counterAx)) {\n return counterAx._lw;\n }\n for(var i = 0; i < axList.length; i++) {\n var axi = axList[i];\n if(axi._mainAxis === counterAx._mainAxis && shouldShowLineThisSide(ax, side, axi)) {\n return axi._lw;\n }\n }\n return 0;\n}\n\nexports.drawMainTitle = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var textAnchor = getMainTitleTextAnchor(fullLayout);\n var dy = getMainTitleDy(fullLayout);\n\n Titles.draw(gd, 'gtitle', {\n propContainer: fullLayout,\n propName: 'title.text',\n placeholder: fullLayout._dfltTitle.plot,\n attributes: {\n x: getMainTitleX(fullLayout, textAnchor),\n y: getMainTitleY(fullLayout, dy),\n 'text-anchor': textAnchor,\n dy: dy\n }\n });\n};\n\nfunction getMainTitleX(fullLayout, textAnchor) {\n var title = fullLayout.title;\n var gs = fullLayout._size;\n var hPadShift = 0;\n\n if(textAnchor === SVG_TEXT_ANCHOR_START) {\n hPadShift = title.pad.l;\n } else if(textAnchor === SVG_TEXT_ANCHOR_END) {\n hPadShift = -title.pad.r;\n }\n\n switch(title.xref) {\n case 'paper':\n return gs.l + gs.w * title.x + hPadShift;\n case 'container':\n default:\n return fullLayout.width * title.x + hPadShift;\n }\n}\n\nfunction getMainTitleY(fullLayout, dy) {\n var title = fullLayout.title;\n var gs = fullLayout._size;\n var vPadShift = 0;\n\n if(dy === '0em' || !dy) {\n vPadShift = -title.pad.b;\n } else if(dy === alignmentConstants.CAP_SHIFT + 'em') {\n vPadShift = title.pad.t;\n }\n\n if(title.y === 'auto') {\n return gs.t / 2;\n } else {\n switch(title.yref) {\n case 'paper':\n return gs.t + gs.h - gs.h * title.y + vPadShift;\n case 'container':\n default:\n return fullLayout.height - fullLayout.height * title.y + vPadShift;\n }\n }\n}\n\nfunction getMainTitleTextAnchor(fullLayout) {\n var title = fullLayout.title;\n\n var textAnchor = SVG_TEXT_ANCHOR_MIDDLE;\n if(Lib.isRightAnchor(title)) {\n textAnchor = SVG_TEXT_ANCHOR_END;\n } else if(Lib.isLeftAnchor(title)) {\n textAnchor = SVG_TEXT_ANCHOR_START;\n }\n\n return textAnchor;\n}\n\nfunction getMainTitleDy(fullLayout) {\n var title = fullLayout.title;\n\n var dy = '0em';\n if(Lib.isTopAnchor(title)) {\n dy = alignmentConstants.CAP_SHIFT + 'em';\n } else if(Lib.isMiddleAnchor(title)) {\n dy = alignmentConstants.MID_SHIFT + 'em';\n }\n\n return dy;\n}\n\nexports.doTraceStyle = function(gd) {\n var calcdata = gd.calcdata;\n var editStyleCalls = [];\n var i;\n\n for(i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var cd0 = cd[0] || {};\n var trace = cd0.trace || {};\n var _module = trace._module || {};\n\n // See if we need to do arraysToCalcdata\n // call it regardless of what change we made, in case\n // supplyDefaults brought in an array that was already\n // in gd.data but not in gd._fullData previously\n var arraysToCalcdata = _module.arraysToCalcdata;\n if(arraysToCalcdata) arraysToCalcdata(cd, trace);\n\n var editStyle = _module.editStyle;\n if(editStyle) editStyleCalls.push({fn: editStyle, cd0: cd0});\n }\n\n if(editStyleCalls.length) {\n for(i = 0; i < editStyleCalls.length; i++) {\n var edit = editStyleCalls[i];\n edit.fn(gd, edit.cd0);\n }\n clearGlCanvases(gd);\n exports.redrawReglTraces(gd);\n }\n\n Plots.style(gd);\n Registry.getComponentMethod('legend', 'draw')(gd);\n\n return Plots.previousPromises(gd);\n};\n\nexports.doColorBars = function(gd) {\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n return Plots.previousPromises(gd);\n};\n\n// force plot() to redo the layout and replot with the modified layout\nexports.layoutReplot = function(gd) {\n var layout = gd.layout;\n gd.layout = undefined;\n return Registry.call('_doPlot', gd, '', layout);\n};\n\nexports.doLegend = function(gd) {\n Registry.getComponentMethod('legend', 'draw')(gd);\n return Plots.previousPromises(gd);\n};\n\nexports.doTicksRelayout = function(gd) {\n Axes.draw(gd, 'redraw');\n\n if(gd._fullLayout._hasOnlyLargeSploms) {\n Registry.subplotsRegistry.splom.updateGrid(gd);\n clearGlCanvases(gd);\n exports.redrawReglTraces(gd);\n }\n\n exports.drawMainTitle(gd);\n return Plots.previousPromises(gd);\n};\n\nexports.doModeBar = function(gd) {\n var fullLayout = gd._fullLayout;\n\n ModeBar.manage(gd);\n\n for(var i = 0; i < fullLayout._basePlotModules.length; i++) {\n var updateFx = fullLayout._basePlotModules[i].updateFx;\n if(updateFx) updateFx(gd);\n }\n\n return Plots.previousPromises(gd);\n};\n\nexports.doCamera = function(gd) {\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots.gl3d;\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneLayout = fullLayout[sceneIds[i]];\n var scene = sceneLayout._scene;\n\n scene.setViewport(sceneLayout);\n }\n};\n\nexports.drawData = function(gd) {\n var fullLayout = gd._fullLayout;\n\n clearGlCanvases(gd);\n\n // loop over the base plot modules present on graph\n var basePlotModules = fullLayout._basePlotModules;\n for(var i = 0; i < basePlotModules.length; i++) {\n basePlotModules[i].plot(gd);\n }\n\n exports.redrawReglTraces(gd);\n\n // styling separate from drawing\n Plots.style(gd);\n\n // draw components that can be drawn on axes,\n // and that do not push the margins\n Registry.getComponentMethod('selections', 'draw')(gd);\n Registry.getComponentMethod('shapes', 'draw')(gd);\n Registry.getComponentMethod('annotations', 'draw')(gd);\n Registry.getComponentMethod('images', 'draw')(gd);\n\n // Mark the first render as complete\n fullLayout._replotting = false;\n\n return Plots.previousPromises(gd);\n};\n\n// Draw (or redraw) all regl-based traces in one go,\n// useful during drag and selection where buffers of targeted traces are updated,\n// but all traces need to be redrawn following clearGlCanvases.\n//\n// Note that _module.plot for regl trace does NOT draw things\n// on the canvas, they only update the buffers.\n// Drawing is perform here.\n//\n// TODO try adding per-subplot option using gl.SCISSOR_TEST for\n// non-overlaying, disjoint subplots.\n//\n// TODO try to include parcoords in here.\n// https://github.com/plotly/plotly.js/issues/3069\nexports.redrawReglTraces = function(gd) {\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._has('regl')) {\n var fullData = gd._fullData;\n var cartesianIds = [];\n var polarIds = [];\n var i, sp;\n\n if(fullLayout._hasOnlyLargeSploms) {\n fullLayout._splomGrid.draw();\n }\n\n // N.B.\n // - Loop over fullData (not _splomScenes) to preserve splom trace-to-trace ordering\n // - Fill list if subplot ids (instead of fullLayout._subplots) to handle cases where all traces\n // of a given module are `visible !== true`\n for(i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible === true && trace._length !== 0) {\n if(trace.type === 'splom') {\n fullLayout._splomScenes[trace.uid].draw();\n } else if(trace.type === 'scattergl') {\n Lib.pushUnique(cartesianIds, trace.xaxis + trace.yaxis);\n } else if(trace.type === 'scatterpolargl') {\n Lib.pushUnique(polarIds, trace.subplot);\n }\n }\n }\n\n for(i = 0; i < cartesianIds.length; i++) {\n sp = fullLayout._plots[cartesianIds[i]];\n if(sp._scene) sp._scene.draw();\n }\n\n for(i = 0; i < polarIds.length; i++) {\n sp = fullLayout[polarIds[i]]._subplot;\n if(sp._scene) sp._scene.draw();\n }\n }\n};\n\nexports.doAutoRangeAndConstraints = function(gd) {\n var axList = Axes.list(gd, '', true);\n var ax;\n\n var autoRangeDone = {};\n\n for(var i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n if(!autoRangeDone[ax._id]) {\n autoRangeDone[ax._id] = 1;\n cleanAxisConstraints(gd, ax);\n doAutoRange(gd, ax);\n\n // For matching axes, just propagate this autorange to the group.\n // The extra arg to doAutoRange avoids recalculating the range,\n // since doAutoRange by itself accounts for all matching axes. but\n // there are other side-effects of doAutoRange that we still want.\n var matchGroup = ax._matchGroup;\n if(matchGroup) {\n for(var id2 in matchGroup) {\n var ax2 = Axes.getFromId(gd, id2);\n doAutoRange(gd, ax2, ax.range);\n autoRangeDone[id2] = 1;\n }\n }\n }\n }\n\n enforceAxisConstraints(gd);\n};\n\n// An initial paint must be completed before these components can be\n// correctly sized and the whole plot re-margined. fullLayout._replotting must\n// be set to false before these will work properly.\nexports.finalDraw = function(gd) {\n // TODO: rangesliders really belong in marginPushers but they need to be\n // drawn after data - can we at least get the margin pushing part separated\n // out and done earlier?\n Registry.getComponentMethod('rangeslider', 'draw')(gd);\n // TODO: rangeselector only needs to be here (in addition to drawMarginPushers)\n // because the margins need to be fully determined before we can call\n // autorange and update axis ranges (which rangeselector needs to know which\n // button is active). Can we break out its automargin step from its draw step?\n Registry.getComponentMethod('rangeselector', 'draw')(gd);\n};\n\nexports.drawMarginPushers = function(gd) {\n Registry.getComponentMethod('legend', 'draw')(gd);\n Registry.getComponentMethod('rangeselector', 'draw')(gd);\n Registry.getComponentMethod('sliders', 'draw')(gd);\n Registry.getComponentMethod('updatemenus', 'draw')(gd);\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n};\n\n},{\"../components/color\":367,\"../components/drawing\":389,\"../components/modebar\":430,\"../components/titles\":476,\"../constants/alignment\":483,\"../lib\":515,\"../lib/clear_gl_canvases\":499,\"../plots/cartesian/autorange\":565,\"../plots/cartesian/axes\":566,\"../plots/cartesian/constraints\":574,\"../plots/plots\":628,\"../registry\":647,\"@plotly/d3\":58}],557:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar isPlainObject = Lib.isPlainObject;\nvar PlotSchema = _dereq_('./plot_schema');\nvar Plots = _dereq_('../plots/plots');\nvar plotAttributes = _dereq_('../plots/attributes');\nvar Template = _dereq_('./plot_template');\nvar dfltConfig = _dereq_('./plot_config').dfltConfig;\n\n/**\n * Plotly.makeTemplate: create a template off an existing figure to reuse\n * style attributes on other figures.\n *\n * Note: separated from the rest of templates because otherwise we get circular\n * references due to PlotSchema.\n *\n * @param {object|DOM element|string} figure: The figure to base the template on\n * should contain a trace array `figure.data`\n * and a layout object `figure.layout`\n * @returns {object} template: the extracted template - can then be used as\n * `layout.template` in another figure.\n */\nexports.makeTemplate = function(figure) {\n figure = Lib.isPlainObject(figure) ? figure : Lib.getGraphDiv(figure);\n figure = Lib.extendDeep({_context: dfltConfig}, {data: figure.data, layout: figure.layout});\n Plots.supplyDefaults(figure);\n var data = figure.data || [];\n var layout = figure.layout || {};\n // copy over a few items to help follow the schema\n layout._basePlotModules = figure._fullLayout._basePlotModules;\n layout._modules = figure._fullLayout._modules;\n\n var template = {\n data: {},\n layout: {}\n };\n\n /*\n * Note: we do NOT validate template values, we just take what's in the\n * user inputs data and layout, not the validated values in fullData and\n * fullLayout. Even if we were to validate here, there's no guarantee that\n * these values would still be valid when applied to a new figure, which\n * may contain different trace modes, different axes, etc. So it's\n * important that when applying a template we still validate the template\n * values, rather than just using them as defaults.\n */\n\n data.forEach(function(trace) {\n // TODO: What if no style info is extracted for this trace. We may\n // not want an empty object as the null value.\n // TODO: allow transforms to contribute to templates?\n // as it stands they are ignored, which may be for the best...\n\n var traceTemplate = {};\n walkStyleKeys(trace, traceTemplate, getTraceInfo.bind(null, trace));\n\n var traceType = Lib.coerce(trace, {}, plotAttributes, 'type');\n var typeTemplates = template.data[traceType];\n if(!typeTemplates) typeTemplates = template.data[traceType] = [];\n typeTemplates.push(traceTemplate);\n });\n\n walkStyleKeys(layout, template.layout, getLayoutInfo.bind(null, layout));\n\n /*\n * Compose the new template with an existing one to the same effect\n *\n * NOTE: there's a possibility of slightly different behavior: if the plot\n * has an invalid value and the old template has a valid value for the same\n * attribute, the plot will use the old template value but this routine\n * will pull the invalid value (resulting in the original default).\n * In the general case it's not possible to solve this with a single value,\n * since valid options can be context-dependent. It could be solved with\n * a *list* of values, but that would be huge complexity for little gain.\n */\n delete template.layout.template;\n var oldTemplate = layout.template;\n if(isPlainObject(oldTemplate)) {\n var oldLayoutTemplate = oldTemplate.layout;\n\n var i, traceType, oldTypeTemplates, oldTypeLen, typeTemplates, typeLen;\n\n if(isPlainObject(oldLayoutTemplate)) {\n mergeTemplates(oldLayoutTemplate, template.layout);\n }\n var oldDataTemplate = oldTemplate.data;\n if(isPlainObject(oldDataTemplate)) {\n for(traceType in template.data) {\n oldTypeTemplates = oldDataTemplate[traceType];\n if(Array.isArray(oldTypeTemplates)) {\n typeTemplates = template.data[traceType];\n typeLen = typeTemplates.length;\n oldTypeLen = oldTypeTemplates.length;\n for(i = 0; i < typeLen; i++) {\n mergeTemplates(oldTypeTemplates[i % oldTypeLen], typeTemplates[i]);\n }\n for(i = typeLen; i < oldTypeLen; i++) {\n typeTemplates.push(Lib.extendDeep({}, oldTypeTemplates[i]));\n }\n }\n }\n for(traceType in oldDataTemplate) {\n if(!(traceType in template.data)) {\n template.data[traceType] = Lib.extendDeep([], oldDataTemplate[traceType]);\n }\n }\n }\n }\n\n return template;\n};\n\nfunction mergeTemplates(oldTemplate, newTemplate) {\n // we don't care about speed here, just make sure we have a totally\n // distinct object from the previous template\n oldTemplate = Lib.extendDeep({}, oldTemplate);\n\n // sort keys so we always get annotationdefaults before annotations etc\n // so arrayTemplater will work right\n var oldKeys = Object.keys(oldTemplate).sort();\n var i, j;\n\n function mergeOne(oldVal, newVal, key) {\n if(isPlainObject(newVal) && isPlainObject(oldVal)) {\n mergeTemplates(oldVal, newVal);\n } else if(Array.isArray(newVal) && Array.isArray(oldVal)) {\n // Note: omitted `inclusionAttr` from arrayTemplater here,\n // it's irrelevant as we only want the resulting `_template`.\n var templater = Template.arrayTemplater({_template: oldTemplate}, key);\n for(j = 0; j < newVal.length; j++) {\n var item = newVal[j];\n var oldItem = templater.newItem(item)._template;\n if(oldItem) mergeTemplates(oldItem, item);\n }\n var defaultItems = templater.defaultItems();\n for(j = 0; j < defaultItems.length; j++) newVal.push(defaultItems[j]._template);\n\n // templateitemname only applies to receiving plots\n for(j = 0; j < newVal.length; j++) delete newVal[j].templateitemname;\n }\n }\n\n for(i = 0; i < oldKeys.length; i++) {\n var key = oldKeys[i];\n var oldVal = oldTemplate[key];\n if(key in newTemplate) {\n mergeOne(oldVal, newTemplate[key], key);\n } else newTemplate[key] = oldVal;\n\n // if this is a base key from the old template (eg xaxis), look for\n // extended keys (eg xaxis2) in the new template to merge into\n if(getBaseKey(key) === key) {\n for(var key2 in newTemplate) {\n var baseKey2 = getBaseKey(key2);\n if(key2 !== baseKey2 && baseKey2 === key && !(key2 in oldTemplate)) {\n mergeOne(oldVal, newTemplate[key2], key);\n }\n }\n }\n }\n}\n\nfunction getBaseKey(key) {\n return key.replace(/[0-9]+$/, '');\n}\n\nfunction walkStyleKeys(parent, templateOut, getAttributeInfo, path, basePath) {\n var pathAttr = basePath && getAttributeInfo(basePath);\n for(var key in parent) {\n var child = parent[key];\n var nextPath = getNextPath(parent, key, path);\n var nextBasePath = getNextPath(parent, key, basePath);\n var attr = getAttributeInfo(nextBasePath);\n if(!attr) {\n var baseKey = getBaseKey(key);\n if(baseKey !== key) {\n nextBasePath = getNextPath(parent, baseKey, basePath);\n attr = getAttributeInfo(nextBasePath);\n }\n }\n\n // we'll get an attr if path starts with a valid part, then has an\n // invalid ending. Make sure we got all the way to the end.\n if(pathAttr && (pathAttr === attr)) continue;\n\n if(!attr || attr._noTemplating ||\n attr.valType === 'data_array' ||\n (attr.arrayOk && Array.isArray(child))\n ) {\n continue;\n }\n\n if(!attr.valType && isPlainObject(child)) {\n walkStyleKeys(child, templateOut, getAttributeInfo, nextPath, nextBasePath);\n } else if(attr._isLinkedToArray && Array.isArray(child)) {\n var dfltDone = false;\n var namedIndex = 0;\n var usedNames = {};\n for(var i = 0; i < child.length; i++) {\n var item = child[i];\n if(isPlainObject(item)) {\n var name = item.name;\n if(name) {\n if(!usedNames[name]) {\n // named array items: allow all attributes except data arrays\n walkStyleKeys(item, templateOut, getAttributeInfo,\n getNextPath(child, namedIndex, nextPath),\n getNextPath(child, namedIndex, nextBasePath));\n namedIndex++;\n usedNames[name] = 1;\n }\n } else if(!dfltDone) {\n var dfltKey = Template.arrayDefaultKey(key);\n var dfltPath = getNextPath(parent, dfltKey, path);\n\n // getAttributeInfo will fail if we try to use dfltKey directly.\n // Instead put this item into the next array element, then\n // pull it out and move it to dfltKey.\n var pathInArray = getNextPath(child, namedIndex, nextPath);\n walkStyleKeys(item, templateOut, getAttributeInfo, pathInArray,\n getNextPath(child, namedIndex, nextBasePath));\n var itemPropInArray = Lib.nestedProperty(templateOut, pathInArray);\n var dfltProp = Lib.nestedProperty(templateOut, dfltPath);\n dfltProp.set(itemPropInArray.get());\n itemPropInArray.set(null);\n\n dfltDone = true;\n }\n }\n }\n } else {\n var templateProp = Lib.nestedProperty(templateOut, nextPath);\n templateProp.set(child);\n }\n }\n}\n\nfunction getLayoutInfo(layout, path) {\n return PlotSchema.getLayoutValObject(\n layout, Lib.nestedProperty({}, path).parts\n );\n}\n\nfunction getTraceInfo(trace, path) {\n return PlotSchema.getTraceValObject(\n trace, Lib.nestedProperty({}, path).parts\n );\n}\n\nfunction getNextPath(parent, key, path) {\n var nextPath;\n if(!path) nextPath = key;\n else if(Array.isArray(parent)) nextPath = path + '[' + key + ']';\n else nextPath = path + '.' + key;\n\n return nextPath;\n}\n\n/**\n * validateTemplate: Test for consistency between the given figure and\n * a template, either already included in the figure or given separately.\n * Note that not every issue we identify here is necessarily a problem,\n * it depends on what you're using the template for.\n *\n * @param {object|DOM element} figure: the plot, with {data, layout} members,\n * to test the template against\n * @param {Optional(object)} template: the template, with its own {data, layout},\n * to test. If omitted, we will look for a template already attached as the\n * plot's `layout.template` attribute.\n *\n * @returns {array} array of error objects each containing:\n * - {string} code\n * error code ('missing', 'unused', 'reused', 'noLayout', 'noData')\n * - {string} msg\n * a full readable description of the issue.\n */\nexports.validateTemplate = function(figureIn, template) {\n var figure = Lib.extendDeep({}, {\n _context: dfltConfig,\n data: figureIn.data,\n layout: figureIn.layout\n });\n var layout = figure.layout || {};\n if(!isPlainObject(template)) template = layout.template || {};\n var layoutTemplate = template.layout;\n var dataTemplate = template.data;\n var errorList = [];\n\n figure.layout = layout;\n figure.layout.template = template;\n Plots.supplyDefaults(figure);\n\n var fullLayout = figure._fullLayout;\n var fullData = figure._fullData;\n\n var layoutPaths = {};\n function crawlLayoutForContainers(obj, paths) {\n for(var key in obj) {\n if(key.charAt(0) !== '_' && isPlainObject(obj[key])) {\n var baseKey = getBaseKey(key);\n var nextPaths = [];\n var i;\n for(i = 0; i < paths.length; i++) {\n nextPaths.push(getNextPath(obj, key, paths[i]));\n if(baseKey !== key) nextPaths.push(getNextPath(obj, baseKey, paths[i]));\n }\n for(i = 0; i < nextPaths.length; i++) {\n layoutPaths[nextPaths[i]] = 1;\n }\n crawlLayoutForContainers(obj[key], nextPaths);\n }\n }\n }\n\n function crawlLayoutTemplateForContainers(obj, path) {\n for(var key in obj) {\n if(key.indexOf('defaults') === -1 && isPlainObject(obj[key])) {\n var nextPath = getNextPath(obj, key, path);\n if(layoutPaths[nextPath]) {\n crawlLayoutTemplateForContainers(obj[key], nextPath);\n } else {\n errorList.push({code: 'unused', path: nextPath});\n }\n }\n }\n }\n\n if(!isPlainObject(layoutTemplate)) {\n errorList.push({code: 'layout'});\n } else {\n crawlLayoutForContainers(fullLayout, ['layout']);\n crawlLayoutTemplateForContainers(layoutTemplate, 'layout');\n }\n\n if(!isPlainObject(dataTemplate)) {\n errorList.push({code: 'data'});\n } else {\n var typeCount = {};\n var traceType;\n for(var i = 0; i < fullData.length; i++) {\n var fullTrace = fullData[i];\n traceType = fullTrace.type;\n typeCount[traceType] = (typeCount[traceType] || 0) + 1;\n if(!fullTrace._fullInput._template) {\n // this takes care of the case of traceType in the data but not\n // the template\n errorList.push({\n code: 'missing',\n index: fullTrace._fullInput.index,\n traceType: traceType\n });\n }\n }\n for(traceType in dataTemplate) {\n var templateCount = dataTemplate[traceType].length;\n var dataCount = typeCount[traceType] || 0;\n if(templateCount > dataCount) {\n errorList.push({\n code: 'unused',\n traceType: traceType,\n templateCount: templateCount,\n dataCount: dataCount\n });\n } else if(dataCount > templateCount) {\n errorList.push({\n code: 'reused',\n traceType: traceType,\n templateCount: templateCount,\n dataCount: dataCount\n });\n }\n }\n }\n\n // _template: false is when someone tried to modify an array item\n // but there was no template with matching name\n function crawlForMissingTemplates(obj, path) {\n for(var key in obj) {\n if(key.charAt(0) === '_') continue;\n var val = obj[key];\n var nextPath = getNextPath(obj, key, path);\n if(isPlainObject(val)) {\n if(Array.isArray(obj) && val._template === false && val.templateitemname) {\n errorList.push({\n code: 'missing',\n path: nextPath,\n templateitemname: val.templateitemname\n });\n }\n crawlForMissingTemplates(val, nextPath);\n } else if(Array.isArray(val) && hasPlainObject(val)) {\n crawlForMissingTemplates(val, nextPath);\n }\n }\n }\n crawlForMissingTemplates({data: fullData, layout: fullLayout}, '');\n\n if(errorList.length) return errorList.map(format);\n};\n\nfunction hasPlainObject(arr) {\n for(var i = 0; i < arr.length; i++) {\n if(isPlainObject(arr[i])) return true;\n }\n}\n\nfunction format(opts) {\n var msg;\n switch(opts.code) {\n case 'data':\n msg = 'The template has no key data.';\n break;\n case 'layout':\n msg = 'The template has no key layout.';\n break;\n case 'missing':\n if(opts.path) {\n msg = 'There are no templates for item ' + opts.path +\n ' with name ' + opts.templateitemname;\n } else {\n msg = 'There are no templates for trace ' + opts.index +\n ', of type ' + opts.traceType + '.';\n }\n break;\n case 'unused':\n if(opts.path) {\n msg = 'The template item at ' + opts.path +\n ' was not used in constructing the plot.';\n } else if(opts.dataCount) {\n msg = 'Some of the templates of type ' + opts.traceType +\n ' were not used. The template has ' + opts.templateCount +\n ' traces, the data only has ' + opts.dataCount +\n ' of this type.';\n } else {\n msg = 'The template has ' + opts.templateCount +\n ' traces of type ' + opts.traceType +\n ' but there are none in the data.';\n }\n break;\n case 'reused':\n msg = 'Some of the templates of type ' + opts.traceType +\n ' were used more than once. The template has ' +\n opts.templateCount + ' traces, the data has ' +\n opts.dataCount + ' of this type.';\n break;\n }\n opts.msg = msg;\n\n return opts;\n}\n\n},{\"../lib\":515,\"../plots/attributes\":562,\"../plots/plots\":628,\"./plot_config\":553,\"./plot_schema\":554,\"./plot_template\":555}],558:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar plotApi = _dereq_('./plot_api');\nvar plots = _dereq_('../plots/plots');\nvar Lib = _dereq_('../lib');\n\nvar helpers = _dereq_('../snapshot/helpers');\nvar toSVG = _dereq_('../snapshot/tosvg');\nvar svgToImg = _dereq_('../snapshot/svgtoimg');\nvar version = _dereq_('../version').version;\n\nvar attrs = {\n format: {\n valType: 'enumerated',\n values: ['png', 'jpeg', 'webp', 'svg', 'full-json'],\n dflt: 'png',\n },\n width: {\n valType: 'number',\n min: 1,\n },\n height: {\n valType: 'number',\n min: 1,\n },\n scale: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n setBackground: {\n valType: 'any',\n dflt: false,\n },\n imageDataOnly: {\n valType: 'boolean',\n dflt: false,\n }\n};\n\n/** Plotly.toImage\n *\n * @param {object | string | HTML div} gd\n * can either be a data/layout/config object\n * or an existing graph
\n * or an id to an existing graph
\n * @param {object} opts (see above)\n * @return {promise}\n */\nfunction toImage(gd, opts) {\n opts = opts || {};\n\n var data;\n var layout;\n var config;\n var fullLayout;\n\n if(Lib.isPlainObject(gd)) {\n data = gd.data || [];\n layout = gd.layout || {};\n config = gd.config || {};\n fullLayout = {};\n } else {\n gd = Lib.getGraphDiv(gd);\n data = Lib.extendDeep([], gd.data);\n layout = Lib.extendDeep({}, gd.layout);\n config = gd._context;\n fullLayout = gd._fullLayout || {};\n }\n\n function isImpliedOrValid(attr) {\n return !(attr in opts) || Lib.validate(opts[attr], attrs[attr]);\n }\n\n if((!isImpliedOrValid('width') && opts.width !== null) ||\n (!isImpliedOrValid('height') && opts.height !== null)) {\n throw new Error('Height and width should be pixel values.');\n }\n\n if(!isImpliedOrValid('format')) {\n throw new Error('Export format is not ' + Lib.join2(attrs.format.values, ', ', ' or ') + '.');\n }\n\n var fullOpts = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts, fullOpts, attrs, attr, dflt);\n }\n\n var format = coerce('format');\n var width = coerce('width');\n var height = coerce('height');\n var scale = coerce('scale');\n var setBackground = coerce('setBackground');\n var imageDataOnly = coerce('imageDataOnly');\n\n // put the cloned div somewhere off screen before attaching to DOM\n var clonedGd = document.createElement('div');\n clonedGd.style.position = 'absolute';\n clonedGd.style.left = '-5000px';\n document.body.appendChild(clonedGd);\n\n // extend layout with image options\n var layoutImage = Lib.extendFlat({}, layout);\n if(width) {\n layoutImage.width = width;\n } else if(opts.width === null && isNumeric(fullLayout.width)) {\n layoutImage.width = fullLayout.width;\n }\n if(height) {\n layoutImage.height = height;\n } else if(opts.height === null && isNumeric(fullLayout.height)) {\n layoutImage.height = fullLayout.height;\n }\n\n // extend config for static plot\n var configImage = Lib.extendFlat({}, config, {\n _exportedPlot: true,\n staticPlot: true,\n setBackground: setBackground\n });\n\n var redrawFunc = helpers.getRedrawFunc(clonedGd);\n\n function wait() {\n return new Promise(function(resolve) {\n setTimeout(resolve, helpers.getDelay(clonedGd._fullLayout));\n });\n }\n\n function convert() {\n return new Promise(function(resolve, reject) {\n var svg = toSVG(clonedGd, format, scale);\n var width = clonedGd._fullLayout.width;\n var height = clonedGd._fullLayout.height;\n\n function cleanup() {\n plotApi.purge(clonedGd);\n document.body.removeChild(clonedGd);\n }\n\n if(format === 'full-json') {\n var json = plots.graphJson(clonedGd, false, 'keepdata', 'object', true, true);\n json.version = version;\n json = JSON.stringify(json);\n cleanup();\n if(imageDataOnly) {\n return resolve(json);\n } else {\n return resolve(helpers.encodeJSON(json));\n }\n }\n\n cleanup();\n\n if(format === 'svg') {\n if(imageDataOnly) {\n return resolve(svg);\n } else {\n return resolve(helpers.encodeSVG(svg));\n }\n }\n\n var canvas = document.createElement('canvas');\n canvas.id = Lib.randstr();\n\n svgToImg({\n format: format,\n width: width,\n height: height,\n scale: scale,\n canvas: canvas,\n svg: svg,\n // ask svgToImg to return a Promise\n // rather than EventEmitter\n // leave EventEmitter for backward\n // compatibility\n promise: true\n })\n .then(resolve)\n .catch(reject);\n });\n }\n\n function urlToImageData(url) {\n if(imageDataOnly) {\n return url.replace(helpers.IMAGE_URL_PREFIX, '');\n } else {\n return url;\n }\n }\n\n return new Promise(function(resolve, reject) {\n plotApi.newPlot(clonedGd, data, layoutImage, configImage)\n .then(redrawFunc)\n .then(wait)\n .then(convert)\n .then(function(url) { resolve(urlToImageData(url)); })\n .catch(function(err) { reject(err); });\n });\n}\n\nmodule.exports = toImage;\n\n},{\"../lib\":515,\"../plots/plots\":628,\"../snapshot/helpers\":651,\"../snapshot/svgtoimg\":653,\"../snapshot/tosvg\":655,\"../version\":1132,\"./plot_api\":552,\"fast-isnumeric\":190}],559:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Plots = _dereq_('../plots/plots');\nvar PlotSchema = _dereq_('./plot_schema');\nvar dfltConfig = _dereq_('./plot_config').dfltConfig;\n\nvar isPlainObject = Lib.isPlainObject;\nvar isArray = Array.isArray;\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\n\n/**\n * Validate a data array and layout object.\n *\n * @param {array} data\n * @param {object} layout\n *\n * @return {array} array of error objects each containing:\n * - {string} code\n * error code ('object', 'array', 'schema', 'unused', 'invisible' or 'value')\n * - {string} container\n * container where the error occurs ('data' or 'layout')\n * - {number} trace\n * trace index of the 'data' container where the error occurs\n * - {array} path\n * nested path to the key that causes the error\n * - {string} astr\n * attribute string variant of 'path' compatible with Plotly.restyle and\n * Plotly.relayout.\n * - {string} msg\n * error message (shown in console in logger config argument is enable)\n */\nmodule.exports = function validate(data, layout) {\n if(data === undefined) data = [];\n if(layout === undefined) layout = {};\n\n var schema = PlotSchema.get();\n var errorList = [];\n var gd = {_context: Lib.extendFlat({}, dfltConfig)};\n\n var dataIn, layoutIn;\n\n if(isArray(data)) {\n gd.data = Lib.extendDeep([], data);\n dataIn = data;\n } else {\n gd.data = [];\n dataIn = [];\n errorList.push(format('array', 'data'));\n }\n\n if(isPlainObject(layout)) {\n gd.layout = Lib.extendDeep({}, layout);\n layoutIn = layout;\n } else {\n gd.layout = {};\n layoutIn = {};\n if(arguments.length > 1) {\n errorList.push(format('object', 'layout'));\n }\n }\n\n // N.B. dataIn and layoutIn are in general not the same as\n // gd.data and gd.layout after supplyDefaults as some attributes\n // in gd.data and gd.layout (still) get mutated during this step.\n\n Plots.supplyDefaults(gd);\n\n var dataOut = gd._fullData;\n var len = dataIn.length;\n\n for(var i = 0; i < len; i++) {\n var traceIn = dataIn[i];\n var base = ['data', i];\n\n if(!isPlainObject(traceIn)) {\n errorList.push(format('object', base));\n continue;\n }\n\n var traceOut = dataOut[i];\n var traceType = traceOut.type;\n var traceSchema = schema.traces[traceType].attributes;\n\n // PlotSchema does something fancy with trace 'type', reset it here\n // to make the trace schema compatible with Lib.validate.\n traceSchema.type = {\n valType: 'enumerated',\n values: [traceType]\n };\n\n if(traceOut.visible === false && traceIn.visible !== false) {\n errorList.push(format('invisible', base));\n }\n\n crawl(traceIn, traceOut, traceSchema, errorList, base);\n\n var transformsIn = traceIn.transforms;\n var transformsOut = traceOut.transforms;\n\n if(transformsIn) {\n if(!isArray(transformsIn)) {\n errorList.push(format('array', base, ['transforms']));\n }\n\n base.push('transforms');\n\n for(var j = 0; j < transformsIn.length; j++) {\n var path = ['transforms', j];\n var transformType = transformsIn[j].type;\n\n if(!isPlainObject(transformsIn[j])) {\n errorList.push(format('object', base, path));\n continue;\n }\n\n var transformSchema = schema.transforms[transformType] ?\n schema.transforms[transformType].attributes :\n {};\n\n // add 'type' to transform schema to validate the transform type\n transformSchema.type = {\n valType: 'enumerated',\n values: Object.keys(schema.transforms)\n };\n\n crawl(transformsIn[j], transformsOut[j], transformSchema, errorList, base, path);\n }\n }\n }\n\n var layoutOut = gd._fullLayout;\n var layoutSchema = fillLayoutSchema(schema, dataOut);\n\n crawl(layoutIn, layoutOut, layoutSchema, errorList, 'layout');\n\n // return undefined if no validation errors were found\n return (errorList.length === 0) ? void(0) : errorList;\n};\n\nfunction crawl(objIn, objOut, schema, list, base, path) {\n path = path || [];\n\n var keys = Object.keys(objIn);\n\n for(var i = 0; i < keys.length; i++) {\n var k = keys[i];\n\n // transforms are handled separately\n if(k === 'transforms') continue;\n\n var p = path.slice();\n p.push(k);\n\n var valIn = objIn[k];\n var valOut = objOut[k];\n\n var nestedSchema = getNestedSchema(schema, k);\n var nestedValType = (nestedSchema || {}).valType;\n var isInfoArray = nestedValType === 'info_array';\n var isColorscale = nestedValType === 'colorscale';\n var items = (nestedSchema || {}).items;\n\n if(!isInSchema(schema, k)) {\n list.push(format('schema', base, p));\n } else if(isPlainObject(valIn) && isPlainObject(valOut) && nestedValType !== 'any') {\n crawl(valIn, valOut, nestedSchema, list, base, p);\n } else if(isInfoArray && isArray(valIn)) {\n if(valIn.length > valOut.length) {\n list.push(format('unused', base, p.concat(valOut.length)));\n }\n var len = valOut.length;\n var arrayItems = Array.isArray(items);\n if(arrayItems) len = Math.min(len, items.length);\n var m, n, item, valInPart, valOutPart;\n if(nestedSchema.dimensions === 2) {\n for(n = 0; n < len; n++) {\n if(isArray(valIn[n])) {\n if(valIn[n].length > valOut[n].length) {\n list.push(format('unused', base, p.concat(n, valOut[n].length)));\n }\n var len2 = valOut[n].length;\n for(m = 0; m < (arrayItems ? Math.min(len2, items[n].length) : len2); m++) {\n item = arrayItems ? items[n][m] : items;\n valInPart = valIn[n][m];\n valOutPart = valOut[n][m];\n if(!Lib.validate(valInPart, item)) {\n list.push(format('value', base, p.concat(n, m), valInPart));\n } else if(valOutPart !== valInPart && valOutPart !== +valInPart) {\n list.push(format('dynamic', base, p.concat(n, m), valInPart, valOutPart));\n }\n }\n } else {\n list.push(format('array', base, p.concat(n), valIn[n]));\n }\n }\n } else {\n for(n = 0; n < len; n++) {\n item = arrayItems ? items[n] : items;\n valInPart = valIn[n];\n valOutPart = valOut[n];\n if(!Lib.validate(valInPart, item)) {\n list.push(format('value', base, p.concat(n), valInPart));\n } else if(valOutPart !== valInPart && valOutPart !== +valInPart) {\n list.push(format('dynamic', base, p.concat(n), valInPart, valOutPart));\n }\n }\n }\n } else if(nestedSchema.items && !isInfoArray && isArray(valIn)) {\n var _nestedSchema = items[Object.keys(items)[0]];\n var indexList = [];\n\n var j, _p;\n\n // loop over valOut items while keeping track of their\n // corresponding input container index (given by _index)\n for(j = 0; j < valOut.length; j++) {\n var _index = valOut[j]._index || j;\n\n _p = p.slice();\n _p.push(_index);\n\n if(isPlainObject(valIn[_index]) && isPlainObject(valOut[j])) {\n indexList.push(_index);\n var valInj = valIn[_index];\n var valOutj = valOut[j];\n if(isPlainObject(valInj) && valInj.visible !== false && valOutj.visible === false) {\n list.push(format('invisible', base, _p));\n } else crawl(valInj, valOutj, _nestedSchema, list, base, _p);\n }\n }\n\n // loop over valIn to determine where it went wrong for some items\n for(j = 0; j < valIn.length; j++) {\n _p = p.slice();\n _p.push(j);\n\n if(!isPlainObject(valIn[j])) {\n list.push(format('object', base, _p, valIn[j]));\n } else if(indexList.indexOf(j) === -1) {\n list.push(format('unused', base, _p));\n }\n }\n } else if(!isPlainObject(valIn) && isPlainObject(valOut)) {\n list.push(format('object', base, p, valIn));\n } else if(!isArrayOrTypedArray(valIn) && isArrayOrTypedArray(valOut) && !isInfoArray && !isColorscale) {\n list.push(format('array', base, p, valIn));\n } else if(!(k in objOut)) {\n list.push(format('unused', base, p, valIn));\n } else if(!Lib.validate(valIn, nestedSchema)) {\n list.push(format('value', base, p, valIn));\n } else if(nestedSchema.valType === 'enumerated' &&\n ((nestedSchema.coerceNumber && valIn !== +valOut) || valIn !== valOut)\n ) {\n list.push(format('dynamic', base, p, valIn, valOut));\n }\n }\n\n return list;\n}\n\n// the 'full' layout schema depends on the traces types presents\nfunction fillLayoutSchema(schema, dataOut) {\n var layoutSchema = schema.layout.layoutAttributes;\n\n for(var i = 0; i < dataOut.length; i++) {\n var traceOut = dataOut[i];\n var traceSchema = schema.traces[traceOut.type];\n var traceLayoutAttr = traceSchema.layoutAttributes;\n\n if(traceLayoutAttr) {\n if(traceOut.subplot) {\n Lib.extendFlat(layoutSchema[traceSchema.attributes.subplot.dflt], traceLayoutAttr);\n } else {\n Lib.extendFlat(layoutSchema, traceLayoutAttr);\n }\n }\n }\n\n return layoutSchema;\n}\n\n// validation error codes\nvar code2msgFunc = {\n object: function(base, astr) {\n var prefix;\n\n if(base === 'layout' && astr === '') prefix = 'The layout argument';\n else if(base[0] === 'data' && astr === '') {\n prefix = 'Trace ' + base[1] + ' in the data argument';\n } else prefix = inBase(base) + 'key ' + astr;\n\n return prefix + ' must be linked to an object container';\n },\n array: function(base, astr) {\n var prefix;\n\n if(base === 'data') prefix = 'The data argument';\n else prefix = inBase(base) + 'key ' + astr;\n\n return prefix + ' must be linked to an array container';\n },\n schema: function(base, astr) {\n return inBase(base) + 'key ' + astr + ' is not part of the schema';\n },\n unused: function(base, astr, valIn) {\n var target = isPlainObject(valIn) ? 'container' : 'key';\n\n return inBase(base) + target + ' ' + astr + ' did not get coerced';\n },\n dynamic: function(base, astr, valIn, valOut) {\n return [\n inBase(base) + 'key',\n astr,\n '(set to \\'' + valIn + '\\')',\n 'got reset to',\n '\\'' + valOut + '\\'',\n 'during defaults.'\n ].join(' ');\n },\n invisible: function(base, astr) {\n return (\n astr ? (inBase(base) + 'item ' + astr) : ('Trace ' + base[1])\n ) + ' got defaulted to be not visible';\n },\n value: function(base, astr, valIn) {\n return [\n inBase(base) + 'key ' + astr,\n 'is set to an invalid value (' + valIn + ')'\n ].join(' ');\n }\n};\n\nfunction inBase(base) {\n if(isArray(base)) return 'In data trace ' + base[1] + ', ';\n\n return 'In ' + base + ', ';\n}\n\nfunction format(code, base, path, valIn, valOut) {\n path = path || '';\n\n var container, trace;\n\n // container is either 'data' or 'layout\n // trace is the trace index if 'data', null otherwise\n\n if(isArray(base)) {\n container = base[0];\n trace = base[1];\n } else {\n container = base;\n trace = null;\n }\n\n var astr = convertPathToAttributeString(path);\n var msg = code2msgFunc[code](base, astr, valIn, valOut);\n\n // log to console if logger config option is enabled\n Lib.log(msg);\n\n return {\n code: code,\n container: container,\n trace: trace,\n path: path,\n astr: astr,\n msg: msg\n };\n}\n\nfunction isInSchema(schema, key) {\n var parts = splitKey(key);\n var keyMinusId = parts.keyMinusId;\n var id = parts.id;\n\n if((keyMinusId in schema) && schema[keyMinusId]._isSubplotObj && id) {\n return true;\n }\n\n return (key in schema);\n}\n\nfunction getNestedSchema(schema, key) {\n if(key in schema) return schema[key];\n\n var parts = splitKey(key);\n\n return schema[parts.keyMinusId];\n}\n\nvar idRegex = Lib.counterRegex('([a-z]+)');\n\nfunction splitKey(key) {\n var idMatch = key.match(idRegex);\n\n return {\n keyMinusId: idMatch && idMatch[1],\n id: idMatch && idMatch[2]\n };\n}\n\nfunction convertPathToAttributeString(path) {\n if(!isArray(path)) return String(path);\n\n var astr = '';\n\n for(var i = 0; i < path.length; i++) {\n var p = path[i];\n\n if(typeof p === 'number') {\n astr = astr.substr(0, astr.length - 1) + '[' + p + ']';\n } else {\n astr += p;\n }\n\n if(i < path.length - 1) astr += '.';\n }\n\n return astr;\n}\n\n},{\"../lib\":515,\"../plots/plots\":628,\"./plot_config\":553,\"./plot_schema\":554}],560:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n mode: {\n valType: 'enumerated',\n dflt: 'afterall',\n values: ['immediate', 'next', 'afterall'],\n },\n direction: {\n valType: 'enumerated',\n values: ['forward', 'reverse'],\n dflt: 'forward',\n },\n fromcurrent: {\n valType: 'boolean',\n dflt: false,\n },\n frame: {\n duration: {\n valType: 'number',\n min: 0,\n dflt: 500,\n },\n redraw: {\n valType: 'boolean',\n dflt: true,\n },\n },\n transition: {\n duration: {\n valType: 'number',\n min: 0,\n dflt: 500,\n editType: 'none',\n },\n easing: {\n valType: 'enumerated',\n dflt: 'cubic-in-out',\n values: [\n 'linear',\n 'quad',\n 'cubic',\n 'sin',\n 'exp',\n 'circle',\n 'elastic',\n 'back',\n 'bounce',\n 'linear-in',\n 'quad-in',\n 'cubic-in',\n 'sin-in',\n 'exp-in',\n 'circle-in',\n 'elastic-in',\n 'back-in',\n 'bounce-in',\n 'linear-out',\n 'quad-out',\n 'cubic-out',\n 'sin-out',\n 'exp-out',\n 'circle-out',\n 'elastic-out',\n 'back-out',\n 'bounce-out',\n 'linear-in-out',\n 'quad-in-out',\n 'cubic-in-out',\n 'sin-in-out',\n 'exp-in-out',\n 'circle-in-out',\n 'elastic-in-out',\n 'back-in-out',\n 'bounce-in-out'\n ],\n editType: 'none',\n },\n ordering: {\n valType: 'enumerated',\n values: ['layout first', 'traces first'],\n dflt: 'layout first',\n editType: 'none',\n }\n }\n};\n\n},{}],561:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Template = _dereq_('../plot_api/plot_template');\n\n/** Convenience wrapper for making array container logic DRY and consistent\n *\n * @param {object} parentObjIn\n * user input object where the container in question is linked\n * (i.e. either a user trace object or the user layout object)\n *\n * @param {object} parentObjOut\n * full object where the coerced container will be linked\n * (i.e. either a full trace object or the full layout object)\n *\n * @param {object} opts\n * options object:\n * - name {string}\n * name of the key linking the container in question\n * - inclusionAttr {string}\n * name of the item attribute for inclusion/exclusion. Default is 'visible'.\n * Since inclusion is true, use eg 'enabled' instead of 'disabled'.\n * - handleItemDefaults {function}\n * defaults method to be called on each item in the array container in question\n *\n * Its arguments are:\n * - itemIn {object} item in user layout\n * - itemOut {object} item in full layout\n * - parentObj {object} (as in closure)\n * - opts {object} (as in closure)\n * N.B.\n *\n * - opts is passed to handleItemDefaults so it can also store\n * links to supplementary data (e.g. fullData for layout components)\n *\n */\nmodule.exports = function handleArrayContainerDefaults(parentObjIn, parentObjOut, opts) {\n var name = opts.name;\n var inclusionAttr = opts.inclusionAttr || 'visible';\n\n var previousContOut = parentObjOut[name];\n\n var contIn = Lib.isArrayOrTypedArray(parentObjIn[name]) ? parentObjIn[name] : [];\n var contOut = parentObjOut[name] = [];\n var templater = Template.arrayTemplater(parentObjOut, name, inclusionAttr);\n var i, itemOut;\n\n for(i = 0; i < contIn.length; i++) {\n var itemIn = contIn[i];\n\n if(!Lib.isPlainObject(itemIn)) {\n itemOut = templater.newItem({});\n itemOut[inclusionAttr] = false;\n } else {\n itemOut = templater.newItem(itemIn);\n }\n\n itemOut._index = i;\n\n if(itemOut[inclusionAttr] !== false) {\n opts.handleItemDefaults(itemIn, itemOut, parentObjOut, opts);\n }\n\n contOut.push(itemOut);\n }\n\n var defaultItems = templater.defaultItems();\n for(i = 0; i < defaultItems.length; i++) {\n itemOut = defaultItems[i];\n itemOut._index = contOut.length;\n opts.handleItemDefaults({}, itemOut, parentObjOut, opts, {});\n contOut.push(itemOut);\n }\n\n // in case this array gets its defaults rebuilt independent of the whole layout,\n // relink the private keys just for this array.\n if(Lib.isArrayOrTypedArray(previousContOut)) {\n var len = Math.min(previousContOut.length, contOut.length);\n for(i = 0; i < len; i++) {\n Lib.relinkPrivateKeys(contOut[i], previousContOut[i]);\n }\n }\n\n return contOut;\n};\n\n},{\"../lib\":515,\"../plot_api/plot_template\":555}],562:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('./font_attributes');\nvar fxAttrs = _dereq_('../components/fx/attributes');\n\nmodule.exports = {\n type: {\n valType: 'enumerated',\n values: [], // listed dynamically\n dflt: 'scatter',\n editType: 'calc+clearAxisTypes',\n _noTemplating: true // we handle this at a higher level\n },\n visible: {\n valType: 'enumerated',\n values: [true, false, 'legendonly'],\n dflt: true,\n editType: 'calc',\n },\n showlegend: {\n valType: 'boolean',\n dflt: true,\n editType: 'style',\n },\n legendgroup: {\n valType: 'string',\n dflt: '',\n editType: 'style',\n },\n legendgrouptitle: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'style',\n },\n font: fontAttrs({\n editType: 'style',\n }),\n editType: 'style',\n },\n legendrank: {\n valType: 'number',\n dflt: 1000,\n editType: 'style',\n },\n legendwidth: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'style',\n },\n name: {\n valType: 'string',\n editType: 'style',\n },\n uid: {\n valType: 'string',\n editType: 'plot',\n anim: true,\n },\n ids: {\n valType: 'data_array',\n editType: 'calc',\n anim: true,\n },\n customdata: {\n valType: 'data_array',\n editType: 'calc',\n },\n meta: {\n valType: 'any',\n arrayOk: true,\n editType: 'plot',\n },\n\n // N.B. these cannot be 'data_array' as they do not have the same length as\n // other data arrays and arrayOk attributes in general\n //\n // Maybe add another valType:\n // https://github.com/plotly/plotly.js/issues/1894\n selectedpoints: {\n valType: 'any',\n editType: 'calc',\n },\n\n hoverinfo: {\n valType: 'flaglist',\n flags: ['x', 'y', 'z', 'text', 'name'],\n extras: ['all', 'none', 'skip'],\n arrayOk: true,\n dflt: 'all',\n editType: 'none',\n },\n hoverlabel: fxAttrs.hoverlabel,\n stream: {\n token: {\n valType: 'string',\n noBlank: true,\n strict: true,\n editType: 'calc',\n },\n maxpoints: {\n valType: 'number',\n min: 0,\n max: 10000,\n dflt: 500,\n editType: 'calc',\n },\n editType: 'calc'\n },\n transforms: {\n _isLinkedToArray: 'transform',\n editType: 'calc',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n }\n};\n\n},{\"../components/fx/attributes\":398,\"./font_attributes\":594}],563:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar dateTime2ms = Lib.dateTime2ms;\nvar incrementMonth = Lib.incrementMonth;\nvar constants = _dereq_('../../constants/numerical');\nvar ONEAVGMONTH = constants.ONEAVGMONTH;\n\nmodule.exports = function alignPeriod(trace, ax, axLetter, vals) {\n if(ax.type !== 'date') return {vals: vals};\n\n var alignment = trace[axLetter + 'periodalignment'];\n if(!alignment) return {vals: vals};\n\n var period = trace[axLetter + 'period'];\n var mPeriod;\n if(isNumeric(period)) {\n period = +period;\n if(period <= 0) return {vals: vals};\n } else if(typeof period === 'string' && period.charAt(0) === 'M') {\n var n = +(period.substring(1));\n if(n > 0 && Math.round(n) === n) {\n mPeriod = n;\n } else return {vals: vals};\n }\n\n var calendar = ax.calendar;\n\n var isStart = 'start' === alignment;\n // var isMiddle = 'middle' === alignment;\n var isEnd = 'end' === alignment;\n\n var period0 = trace[axLetter + 'period0'];\n var base = dateTime2ms(period0, calendar) || 0;\n\n var newVals = [];\n var starts = [];\n var ends = [];\n\n var len = vals.length;\n for(var i = 0; i < len; i++) {\n var v = vals[i];\n\n var nEstimated, startTime, endTime;\n if(mPeriod) {\n // guess at how many periods away from base we are\n nEstimated = Math.round((v - base) / (mPeriod * ONEAVGMONTH));\n endTime = incrementMonth(base, mPeriod * nEstimated, calendar);\n\n // iterate to get the exact bounds before and after v\n // there may be ways to make this faster, but most of the time\n // we'll only execute each loop zero or one time.\n while(endTime > v) {\n endTime = incrementMonth(endTime, -mPeriod, calendar);\n }\n while(endTime <= v) {\n endTime = incrementMonth(endTime, mPeriod, calendar);\n }\n\n // now we know endTime is the boundary immediately after v\n // so startTime is obtained by incrementing backward one period.\n startTime = incrementMonth(endTime, -mPeriod, calendar);\n } else { // case of ms\n nEstimated = Math.round((v - base) / period);\n endTime = base + nEstimated * period;\n\n while(endTime > v) {\n endTime -= period;\n }\n while(endTime <= v) {\n endTime += period;\n }\n\n startTime = endTime - period;\n }\n\n newVals[i] = (\n isStart ? startTime :\n isEnd ? endTime :\n (startTime + endTime) / 2\n );\n\n starts[i] = startTime;\n ends[i] = endTime;\n }\n\n return {\n vals: newVals,\n starts: starts,\n ends: ends\n };\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"fast-isnumeric\":190}],564:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n xaxis: {\n valType: 'subplotid',\n dflt: 'x',\n editType: 'calc+clearAxisTypes',\n },\n yaxis: {\n valType: 'subplotid',\n dflt: 'y',\n editType: 'calc+clearAxisTypes',\n }\n};\n\n},{}],565:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar FP_SAFE = _dereq_('../../constants/numerical').FP_SAFE;\nvar Registry = _dereq_('../../registry');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar axIds = _dereq_('./axis_ids');\nvar getFromId = axIds.getFromId;\nvar isLinked = axIds.isLinked;\n\nmodule.exports = {\n getAutoRange: getAutoRange,\n makePadFn: makePadFn,\n doAutoRange: doAutoRange,\n findExtremes: findExtremes,\n concatExtremes: concatExtremes\n};\n\n/**\n * getAutoRange\n *\n * Collects all _extremes values corresponding to a given axis\n * and computes its auto range.\n *\n * Note that getAutoRange uses return values from findExtremes.\n *\n * @param {object} gd:\n * graph div object with filled-in fullData and fullLayout, in particular\n * with filled-in '_extremes' containers:\n * {\n * val: calcdata value,\n * pad: extra pixels beyond this value,\n * extrapad: bool, does this point want 5% extra padding\n * }\n * @param {object} ax:\n * full axis object, in particular with filled-in '_traceIndices'\n * and '_annIndices' / '_shapeIndices' if applicable\n * @return {array}\n * an array of [min, max]. These are calcdata for log and category axes\n * and data for linear and date axes.\n *\n * TODO: we want to change log to data as well, but it's hard to do this\n * maintaining backward compatibility. category will always have to use calcdata\n * though, because otherwise values between categories (or outside all categories)\n * would be impossible.\n */\nfunction getAutoRange(gd, ax) {\n var i, j;\n var newRange = [];\n\n var fullLayout = gd._fullLayout;\n var getPadMin = makePadFn(fullLayout, ax, 0);\n var getPadMax = makePadFn(fullLayout, ax, 1);\n var extremes = concatExtremes(gd, ax);\n var minArray = extremes.min;\n var maxArray = extremes.max;\n\n if(minArray.length === 0 || maxArray.length === 0) {\n return Lib.simpleMap(ax.range, ax.r2l);\n }\n\n var minmin = minArray[0].val;\n var maxmax = maxArray[0].val;\n\n for(i = 1; i < minArray.length; i++) {\n if(minmin !== maxmax) break;\n minmin = Math.min(minmin, minArray[i].val);\n }\n for(i = 1; i < maxArray.length; i++) {\n if(minmin !== maxmax) break;\n maxmax = Math.max(maxmax, maxArray[i].val);\n }\n\n var axReverse = false;\n\n if(ax.range) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n axReverse = rng[1] < rng[0];\n }\n // one-time setting to easily reverse the axis\n // when plotting from code\n if(ax.autorange === 'reversed') {\n axReverse = true;\n ax.autorange = true;\n }\n\n var rangeMode = ax.rangemode;\n var toZero = rangeMode === 'tozero';\n var nonNegative = rangeMode === 'nonnegative';\n var axLen = ax._length;\n // don't allow padding to reduce the data to < 10% of the length\n var minSpan = axLen / 10;\n\n var mbest = 0;\n var minpt, maxpt, minbest, maxbest, dp, dv;\n\n for(i = 0; i < minArray.length; i++) {\n minpt = minArray[i];\n for(j = 0; j < maxArray.length; j++) {\n maxpt = maxArray[j];\n dv = maxpt.val - minpt.val - calcBreaksLength(ax, minpt.val, maxpt.val);\n if(dv > 0) {\n dp = axLen - getPadMin(minpt) - getPadMax(maxpt);\n if(dp > minSpan) {\n if(dv / dp > mbest) {\n minbest = minpt;\n maxbest = maxpt;\n mbest = dv / dp;\n }\n } else if(dv / axLen > mbest) {\n // in case of padding longer than the axis\n // at least include the unpadded data values.\n minbest = {val: minpt.val, nopad: 1};\n maxbest = {val: maxpt.val, nopad: 1};\n mbest = dv / axLen;\n }\n }\n }\n }\n\n function maximumPad(prev, pt) {\n return Math.max(prev, getPadMax(pt));\n }\n\n if(minmin === maxmax) {\n var lower = minmin - 1;\n var upper = minmin + 1;\n if(toZero) {\n if(minmin === 0) {\n // The only value we have on this axis is 0, and we want to\n // autorange so zero is one end.\n // In principle this could be [0, 1] or [-1, 0] but usually\n // 'tozero' pins 0 to the low end, so follow that.\n newRange = [0, 1];\n } else {\n var maxPad = (minmin > 0 ? maxArray : minArray).reduce(maximumPad, 0);\n // we're pushing a single value away from the edge due to its\n // padding, with the other end clamped at zero\n // 0.5 means don't push it farther than the center.\n var rangeEnd = minmin / (1 - Math.min(0.5, maxPad / axLen));\n newRange = minmin > 0 ? [0, rangeEnd] : [rangeEnd, 0];\n }\n } else if(nonNegative) {\n newRange = [Math.max(0, lower), Math.max(1, upper)];\n } else {\n newRange = [lower, upper];\n }\n } else {\n if(toZero) {\n if(minbest.val >= 0) {\n minbest = {val: 0, nopad: 1};\n }\n if(maxbest.val <= 0) {\n maxbest = {val: 0, nopad: 1};\n }\n } else if(nonNegative) {\n if(minbest.val - mbest * getPadMin(minbest) < 0) {\n minbest = {val: 0, nopad: 1};\n }\n if(maxbest.val <= 0) {\n maxbest = {val: 1, nopad: 1};\n }\n }\n\n // in case it changed again...\n mbest = (maxbest.val - minbest.val - calcBreaksLength(ax, minpt.val, maxpt.val)) /\n (axLen - getPadMin(minbest) - getPadMax(maxbest));\n\n newRange = [\n minbest.val - mbest * getPadMin(minbest),\n maxbest.val + mbest * getPadMax(maxbest)\n ];\n }\n\n // maintain reversal\n if(axReverse) newRange.reverse();\n\n return Lib.simpleMap(newRange, ax.l2r || Number);\n}\n\n// find axis rangebreaks in [v0,v1] and compute its length in value space\nfunction calcBreaksLength(ax, v0, v1) {\n var lBreaks = 0;\n if(ax.rangebreaks) {\n var rangebreaksOut = ax.locateBreaks(v0, v1);\n for(var i = 0; i < rangebreaksOut.length; i++) {\n var brk = rangebreaksOut[i];\n lBreaks += brk.max - brk.min;\n }\n }\n return lBreaks;\n}\n\n/*\n * calculate the pixel padding for ax._min and ax._max entries with\n * optional extrapad as 5% of the total axis length\n */\nfunction makePadFn(fullLayout, ax, max) {\n // 5% padding for points that specify extrapad: true\n var extrappad = 0.05 * ax._length;\n\n var anchorAxis = ax._anchorAxis || {};\n\n if(\n (ax.ticklabelposition || '').indexOf('inside') !== -1 ||\n (anchorAxis.ticklabelposition || '').indexOf('inside') !== -1\n ) {\n var axReverse = ax.autorange === 'reversed';\n if(!axReverse) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n axReverse = rng[1] < rng[0];\n }\n if(axReverse) max = !max;\n }\n\n var zero = 0;\n if(!isLinked(fullLayout, ax._id)) {\n zero = padInsideLabelsOnAnchorAxis(fullLayout, ax, max);\n }\n extrappad = Math.max(zero, extrappad);\n\n // domain-constrained axes: base extrappad on the unconstrained\n // domain so it's consistent as the domain changes\n if((ax.constrain === 'domain') && ax._inputDomain) {\n extrappad *= (ax._inputDomain[1] - ax._inputDomain[0]) /\n (ax.domain[1] - ax.domain[0]);\n }\n\n return function getPad(pt) {\n if(pt.nopad) return 0;\n return pt.pad + (pt.extrapad ? extrappad : zero);\n };\n}\n\nvar TEXTPAD = 3;\n\nfunction padInsideLabelsOnAnchorAxis(fullLayout, ax, max) {\n var pad = 0;\n\n var isX = ax._id.charAt(0) === 'x';\n\n for(var subplot in fullLayout._plots) {\n var plotinfo = fullLayout._plots[subplot];\n\n if(ax._id !== plotinfo.xaxis._id && ax._id !== plotinfo.yaxis._id) continue;\n\n var anchorAxis = (isX ? plotinfo.yaxis : plotinfo.xaxis) || {};\n\n if((anchorAxis.ticklabelposition || '').indexOf('inside') !== -1) {\n // increase padding to make more room for inside tick labels of the counter axis\n if((\n !max && (\n anchorAxis.side === 'left' ||\n anchorAxis.side === 'bottom'\n )\n ) || (\n max && (\n anchorAxis.side === 'top' ||\n anchorAxis.side === 'right'\n )\n )) {\n if(anchorAxis._vals) {\n var rad = Lib.deg2rad(anchorAxis._tickAngles[anchorAxis._id + 'tick'] || 0);\n var cosA = Math.abs(Math.cos(rad));\n var sinA = Math.abs(Math.sin(rad));\n\n // no stashed bounding boxes - stash bounding boxes\n if(!anchorAxis._vals[0].bb) {\n var cls = anchorAxis._id + 'tick';\n var tickLabels = anchorAxis._selections[cls];\n tickLabels.each(function(d) {\n var thisLabel = d3.select(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n if(mathjaxGroup.empty()) {\n d.bb = Drawing.bBox(thisLabel.node());\n }\n });\n }\n\n // use bounding boxes\n for(var i = 0; i < anchorAxis._vals.length; i++) {\n var t = anchorAxis._vals[i];\n var bb = t.bb;\n\n if(bb) {\n var w = 2 * TEXTPAD + bb.width;\n var h = 2 * TEXTPAD + bb.height;\n\n pad = Math.max(pad, isX ?\n Math.max(w * cosA, h * sinA) :\n Math.max(h * cosA, w * sinA)\n );\n }\n }\n }\n\n if(anchorAxis.ticks === 'inside' && anchorAxis.ticklabelposition === 'inside') {\n pad += anchorAxis.ticklen || 0;\n }\n }\n }\n }\n\n return pad;\n}\n\nfunction concatExtremes(gd, ax, noMatch) {\n var axId = ax._id;\n var fullData = gd._fullData;\n var fullLayout = gd._fullLayout;\n var minArray = [];\n var maxArray = [];\n var i, j, d;\n\n function _concat(cont, indices) {\n for(i = 0; i < indices.length; i++) {\n var item = cont[indices[i]];\n var extremes = (item._extremes || {})[axId];\n if(item.visible === true && extremes) {\n for(j = 0; j < extremes.min.length; j++) {\n d = extremes.min[j];\n collapseMinArray(minArray, d.val, d.pad, {extrapad: d.extrapad});\n }\n for(j = 0; j < extremes.max.length; j++) {\n d = extremes.max[j];\n collapseMaxArray(maxArray, d.val, d.pad, {extrapad: d.extrapad});\n }\n }\n }\n }\n\n _concat(fullData, ax._traceIndices);\n _concat(fullLayout.annotations || [], ax._annIndices || []);\n _concat(fullLayout.shapes || [], ax._shapeIndices || []);\n\n // Include the extremes from other matched axes with this one\n if(ax._matchGroup && !noMatch) {\n for(var axId2 in ax._matchGroup) {\n if(axId2 !== ax._id) {\n var ax2 = getFromId(gd, axId2);\n var extremes2 = concatExtremes(gd, ax2, true);\n // convert padding on the second axis to the first with lenRatio\n var lenRatio = ax._length / ax2._length;\n for(j = 0; j < extremes2.min.length; j++) {\n d = extremes2.min[j];\n collapseMinArray(minArray, d.val, d.pad * lenRatio, {extrapad: d.extrapad});\n }\n for(j = 0; j < extremes2.max.length; j++) {\n d = extremes2.max[j];\n collapseMaxArray(maxArray, d.val, d.pad * lenRatio, {extrapad: d.extrapad});\n }\n }\n }\n }\n\n return {min: minArray, max: maxArray};\n}\n\nfunction doAutoRange(gd, ax, presetRange) {\n ax.setScale();\n\n if(ax.autorange) {\n ax.range = presetRange ? presetRange.slice() : getAutoRange(gd, ax);\n\n ax._r = ax.range.slice();\n ax._rl = Lib.simpleMap(ax._r, ax.r2l);\n\n // doAutoRange will get called on fullLayout,\n // but we want to report its results back to layout\n\n var axIn = ax._input;\n\n // before we edit _input, store preGUI values\n var edits = {};\n edits[ax._attr + '.range'] = ax.range;\n edits[ax._attr + '.autorange'] = ax.autorange;\n Registry.call('_storeDirectGUIEdit', gd.layout, gd._fullLayout._preGUI, edits);\n\n axIn.range = ax.range.slice();\n axIn.autorange = ax.autorange;\n }\n\n var anchorAx = ax._anchorAxis;\n\n if(anchorAx && anchorAx.rangeslider) {\n var axeRangeOpts = anchorAx.rangeslider[ax._name];\n if(axeRangeOpts) {\n if(axeRangeOpts.rangemode === 'auto') {\n axeRangeOpts.range = getAutoRange(gd, ax);\n }\n }\n anchorAx._input.rangeslider[ax._name] = Lib.extendFlat({}, axeRangeOpts);\n }\n}\n\n/**\n * findExtremes\n *\n * Find min/max extremes of an array of coordinates on a given axis.\n *\n * Note that findExtremes is called during `calc`, when we don't yet know the axis\n * length; all the inputs should be based solely on the trace data, nothing\n * about the axis layout.\n *\n * Note that `ppad` and `vpad` as well as their asymmetric variants refer to\n * the before and after padding of the passed `data` array, not to the whole axis.\n *\n * @param {object} ax: full axis object\n * relies on\n * - ax.type\n * - ax._m (just its sign)\n * - ax.d2l\n * @param {array} data:\n * array of numbers (i.e. already run though ax.d2c)\n * @param {object} opts:\n * available keys are:\n * vpad: (number or number array) pad values (data value +-vpad)\n * ppad: (number or number array) pad pixels (pixel location +-ppad)\n * ppadplus, ppadminus, vpadplus, vpadminus:\n * separate padding for each side, overrides symmetric\n * padded: (boolean) add 5% padding to both ends\n * (unless one end is overridden by tozero)\n * tozero: (boolean) make sure to include zero if axis is linear,\n * and make it a tight bound if possible\n * vpadLinearized: (boolean) whether or not vpad (or vpadplus/vpadminus)\n * is linearized (for log scale axes)\n *\n * @return {object}\n * - min {array of objects}\n * - max {array of objects}\n * each object item has fields:\n * - val {number}\n * - pad {number}\n * - extrappad {number}\n * - opts {object}: a ref to the passed \"options\" object\n */\nfunction findExtremes(ax, data, opts) {\n if(!opts) opts = {};\n if(!ax._m) ax.setScale();\n\n var minArray = [];\n var maxArray = [];\n\n var len = data.length;\n var extrapad = opts.padded || false;\n var tozero = opts.tozero && (ax.type === 'linear' || ax.type === '-');\n var isLog = ax.type === 'log';\n var hasArrayOption = false;\n var vpadLinearized = opts.vpadLinearized || false;\n var i, v, di, dmin, dmax, ppadiplus, ppadiminus, vmin, vmax;\n\n function makePadAccessor(item) {\n if(Array.isArray(item)) {\n hasArrayOption = true;\n return function(i) { return Math.max(Number(item[i]||0), 0); };\n } else {\n var v = Math.max(Number(item||0), 0);\n return function() { return v; };\n }\n }\n\n var ppadplus = makePadAccessor((ax._m > 0 ?\n opts.ppadplus : opts.ppadminus) || opts.ppad || 0);\n var ppadminus = makePadAccessor((ax._m > 0 ?\n opts.ppadminus : opts.ppadplus) || opts.ppad || 0);\n var vpadplus = makePadAccessor(opts.vpadplus || opts.vpad);\n var vpadminus = makePadAccessor(opts.vpadminus || opts.vpad);\n\n if(!hasArrayOption) {\n // with no arrays other than `data` we don't need to consider\n // every point, only the extreme data points\n vmin = Infinity;\n vmax = -Infinity;\n\n if(isLog) {\n for(i = 0; i < len; i++) {\n v = data[i];\n // data is not linearized yet so we still have to filter out negative logs\n if(v < vmin && v > 0) vmin = v;\n if(v > vmax && v < FP_SAFE) vmax = v;\n }\n } else {\n for(i = 0; i < len; i++) {\n v = data[i];\n if(v < vmin && v > -FP_SAFE) vmin = v;\n if(v > vmax && v < FP_SAFE) vmax = v;\n }\n }\n\n data = [vmin, vmax];\n len = 2;\n }\n\n var collapseOpts = {tozero: tozero, extrapad: extrapad};\n\n function addItem(i) {\n di = data[i];\n if(!isNumeric(di)) return;\n ppadiplus = ppadplus(i);\n ppadiminus = ppadminus(i);\n\n if(vpadLinearized) {\n dmin = ax.c2l(di) - vpadminus(i);\n dmax = ax.c2l(di) + vpadplus(i);\n } else {\n vmin = di - vpadminus(i);\n vmax = di + vpadplus(i);\n // special case for log axes: if vpad makes this object span\n // more than an order of mag, clip it to one order. This is so\n // we don't have non-positive errors or absurdly large lower\n // range due to rounding errors\n if(isLog && vmin < vmax / 10) vmin = vmax / 10;\n\n dmin = ax.c2l(vmin);\n dmax = ax.c2l(vmax);\n }\n\n if(tozero) {\n dmin = Math.min(0, dmin);\n dmax = Math.max(0, dmax);\n }\n if(goodNumber(dmin)) {\n collapseMinArray(minArray, dmin, ppadiminus, collapseOpts);\n }\n if(goodNumber(dmax)) {\n collapseMaxArray(maxArray, dmax, ppadiplus, collapseOpts);\n }\n }\n\n // For efficiency covering monotonic or near-monotonic data,\n // check a few points at both ends first and then sweep\n // through the middle\n var iMax = Math.min(6, len);\n for(i = 0; i < iMax; i++) addItem(i);\n for(i = len - 1; i >= iMax; i--) addItem(i);\n\n return {\n min: minArray,\n max: maxArray,\n opts: opts\n };\n}\n\nfunction collapseMinArray(array, newVal, newPad, opts) {\n collapseArray(array, newVal, newPad, opts, lessOrEqual);\n}\n\nfunction collapseMaxArray(array, newVal, newPad, opts) {\n collapseArray(array, newVal, newPad, opts, greaterOrEqual);\n}\n\n/**\n * collapseArray\n *\n * Takes items from 'array' and compares them to 'newVal', 'newPad'.\n *\n * @param {array} array:\n * current set of min or max extremes\n * @param {number} newVal:\n * new value to compare against\n * @param {number} newPad:\n * pad value associated with 'newVal'\n * @param {object} opts:\n * - tozero {boolean}\n * - extrapad {number}\n * @param {function} atLeastAsExtreme:\n * comparison function, use\n * - lessOrEqual for min 'array' and\n * - greaterOrEqual for max 'array'\n *\n * In practice, 'array' is either\n * - 'extremes[ax._id].min' or\n * - 'extremes[ax._id].max\n * found in traces and layout items that affect autorange.\n *\n * Since we don't yet know the relationship between pixels and values\n * (that's what we're trying to figure out!) AND we don't yet know how\n * many pixels `extrapad` represents (it's going to be 5% of the length,\n * but we don't want to have to redo calc just because length changed)\n * two point must satisfy three criteria simultaneously for one to supersede the other:\n * - at least as extreme a `val`\n * - at least as big a `pad`\n * - an unpadded point cannot supersede a padded point, but any other combination can\n *\n * Then:\n * - If the item supersedes the new point, set includeThis false\n * - If the new pt supersedes the item, delete it from 'array'\n */\nfunction collapseArray(array, newVal, newPad, opts, atLeastAsExtreme) {\n var tozero = opts.tozero;\n var extrapad = opts.extrapad;\n var includeThis = true;\n\n for(var j = 0; j < array.length && includeThis; j++) {\n var v = array[j];\n if(atLeastAsExtreme(v.val, newVal) && v.pad >= newPad && (v.extrapad || !extrapad)) {\n includeThis = false;\n break;\n } else if(atLeastAsExtreme(newVal, v.val) && v.pad <= newPad && (extrapad || !v.extrapad)) {\n array.splice(j, 1);\n j--;\n }\n }\n if(includeThis) {\n var clipAtZero = (tozero && newVal === 0);\n array.push({\n val: newVal,\n pad: clipAtZero ? 0 : newPad,\n extrapad: clipAtZero ? false : extrapad\n });\n }\n}\n\n// In order to stop overflow errors, don't consider points\n// too close to the limits of js floating point\nfunction goodNumber(v) {\n return isNumeric(v) && Math.abs(v) < FP_SAFE;\n}\n\nfunction lessOrEqual(v0, v1) { return v0 <= v1; }\nfunction greaterOrEqual(v0, v1) { return v0 >= v1; }\n\n},{\"../../components/drawing\":389,\"../../constants/numerical\":491,\"../../lib\":515,\"../../registry\":647,\"./axis_ids\":570,\"@plotly/d3\":58,\"fast-isnumeric\":190}],566:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Plots = _dereq_('../../plots/plots');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Titles = _dereq_('../../components/titles');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar axAttrs = _dereq_('./layout_attributes');\nvar cleanTicks = _dereq_('./clean_ticks');\n\nvar constants = _dereq_('../../constants/numerical');\nvar ONEMAXYEAR = constants.ONEMAXYEAR;\nvar ONEAVGYEAR = constants.ONEAVGYEAR;\nvar ONEMINYEAR = constants.ONEMINYEAR;\nvar ONEMAXQUARTER = constants.ONEMAXQUARTER;\nvar ONEAVGQUARTER = constants.ONEAVGQUARTER;\nvar ONEMINQUARTER = constants.ONEMINQUARTER;\nvar ONEMAXMONTH = constants.ONEMAXMONTH;\nvar ONEAVGMONTH = constants.ONEAVGMONTH;\nvar ONEMINMONTH = constants.ONEMINMONTH;\nvar ONEWEEK = constants.ONEWEEK;\nvar ONEDAY = constants.ONEDAY;\nvar HALFDAY = ONEDAY / 2;\nvar ONEHOUR = constants.ONEHOUR;\nvar ONEMIN = constants.ONEMIN;\nvar ONESEC = constants.ONESEC;\nvar MINUS_SIGN = constants.MINUS_SIGN;\nvar BADNUM = constants.BADNUM;\n\nvar ZERO_PATH = { K: 'zeroline' };\nvar GRID_PATH = { K: 'gridline', L: 'path' };\nvar MINORGRID_PATH = { K: 'minor-gridline', L: 'path' };\nvar TICK_PATH = { K: 'tick', L: 'path' };\nvar TICK_TEXT = { K: 'tick', L: 'text' };\nvar MARGIN_MAPPING = {\n width: ['x', 'r', 'l', 'xl', 'xr'],\n height: ['y', 't', 'b', 'yt', 'yb'],\n right: ['r', 'xr'],\n left: ['l', 'xl'],\n top: ['t', 'yt'],\n bottom: ['b', 'yb']\n};\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar MID_SHIFT = alignmentConstants.MID_SHIFT;\nvar CAP_SHIFT = alignmentConstants.CAP_SHIFT;\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar OPPOSITE_SIDE = alignmentConstants.OPPOSITE_SIDE;\n\nvar TEXTPAD = 3;\n\nvar axes = module.exports = {};\n\naxes.setConvert = _dereq_('./set_convert');\nvar autoType = _dereq_('./axis_autotype');\n\nvar axisIds = _dereq_('./axis_ids');\nvar idSort = axisIds.idSort;\nvar isLinked = axisIds.isLinked;\n\n// tight coupling to chart studio\naxes.id2name = axisIds.id2name;\naxes.name2id = axisIds.name2id;\naxes.cleanId = axisIds.cleanId;\naxes.list = axisIds.list;\naxes.listIds = axisIds.listIds;\naxes.getFromId = axisIds.getFromId;\naxes.getFromTrace = axisIds.getFromTrace;\n\nvar autorange = _dereq_('./autorange');\naxes.getAutoRange = autorange.getAutoRange;\naxes.findExtremes = autorange.findExtremes;\n\nvar epsilon = 0.0001;\nfunction expandRange(range) {\n var delta = (range[1] - range[0]) * epsilon;\n return [\n range[0] - delta,\n range[1] + delta\n ];\n}\n\n/*\n * find the list of possible axes to reference with an xref or yref attribute\n * and coerce it to that list\n *\n * attr: the attribute we're generating a reference for. Should end in 'x' or 'y'\n * but can be prefixed, like 'ax' for annotation's arrow x\n * dflt: the default to coerce to, or blank to use the first axis (falling back on\n * extraOption if there is no axis)\n * extraOption: aside from existing axes with this letter, what non-axis value is allowed?\n * Only required if it's different from `dflt`\n */\naxes.coerceRef = function(containerIn, containerOut, gd, attr, dflt, extraOption) {\n var axLetter = attr.charAt(attr.length - 1);\n var axlist = gd._fullLayout._subplots[axLetter + 'axis'];\n var refAttr = attr + 'ref';\n var attrDef = {};\n\n if(!dflt) dflt = axlist[0] || (typeof extraOption === 'string' ? extraOption : extraOption[0]);\n if(!extraOption) extraOption = dflt;\n axlist = axlist.concat(axlist.map(function(x) { return x + ' domain'; }));\n\n // data-ref annotations are not supported in gl2d yet\n\n attrDef[refAttr] = {\n valType: 'enumerated',\n values: axlist.concat(extraOption ?\n (typeof extraOption === 'string' ? [extraOption] : extraOption) :\n []),\n dflt: dflt\n };\n\n // xref, yref\n return Lib.coerce(containerIn, containerOut, attrDef, refAttr);\n};\n\n/*\n * Get the type of an axis reference. This can be 'range', 'domain', or 'paper'.\n * This assumes ar is a valid axis reference and returns 'range' if it doesn't\n * match the patterns for 'paper' or 'domain'.\n *\n * ar: the axis reference string\n *\n */\naxes.getRefType = function(ar) {\n if(ar === undefined) { return ar; }\n if(ar === 'paper') { return 'paper'; }\n if(ar === 'pixel') { return 'pixel'; }\n if(/( domain)$/.test(ar)) { return 'domain'; } else { return 'range'; }\n};\n\n/*\n * coerce position attributes (range-type) that can be either on axes or absolute\n * (paper or pixel) referenced. The biggest complication here is that we don't know\n * before looking at the axis whether the value must be a number or not (it may be\n * a date string), so we can't use the regular valType='number' machinery\n *\n * axRef (string): the axis this position is referenced to, or:\n * paper: fraction of the plot area\n * pixel: pixels relative to some starting position\n * attr (string): the attribute in containerOut we are coercing\n * dflt (number): the default position, as a fraction or pixels. If the attribute\n * is to be axis-referenced, this will be converted to an axis data value\n *\n * Also cleans the values, since the attribute definition itself has to say\n * valType: 'any' to handle date axes. This allows us to accept:\n * - for category axes: category names, and convert them here into serial numbers.\n * Note that this will NOT work for axis range endpoints, because we don't know\n * the category list yet (it's set by ax.makeCalcdata during calc)\n * but it works for component (note, shape, images) positions.\n * - for date axes: JS Dates or milliseconds, and convert to date strings\n * - for other types: coerce them to numbers\n */\naxes.coercePosition = function(containerOut, gd, coerce, axRef, attr, dflt) {\n var cleanPos, pos;\n var axRefType = axes.getRefType(axRef);\n if(axRefType !== 'range') {\n cleanPos = Lib.ensureNumber;\n pos = coerce(attr, dflt);\n } else {\n var ax = axes.getFromId(gd, axRef);\n dflt = ax.fraction2r(dflt);\n pos = coerce(attr, dflt);\n cleanPos = ax.cleanPos;\n }\n containerOut[attr] = cleanPos(pos);\n};\n\naxes.cleanPosition = function(pos, gd, axRef) {\n var cleanPos = (axRef === 'paper' || axRef === 'pixel') ?\n Lib.ensureNumber :\n axes.getFromId(gd, axRef).cleanPos;\n\n return cleanPos(pos);\n};\n\naxes.redrawComponents = function(gd, axIds) {\n axIds = axIds ? axIds : axes.listIds(gd);\n\n var fullLayout = gd._fullLayout;\n\n function _redrawOneComp(moduleName, methodName, stashName, shortCircuit) {\n var method = Registry.getComponentMethod(moduleName, methodName);\n var stash = {};\n\n for(var i = 0; i < axIds.length; i++) {\n var ax = fullLayout[axes.id2name(axIds[i])];\n var indices = ax[stashName];\n\n for(var j = 0; j < indices.length; j++) {\n var ind = indices[j];\n\n if(!stash[ind]) {\n method(gd, ind);\n stash[ind] = 1;\n // once is enough for images (which doesn't use the `i` arg anyway)\n if(shortCircuit) return;\n }\n }\n }\n }\n\n // annotations and shapes 'draw' method is slow,\n // use the finer-grained 'drawOne' method instead\n _redrawOneComp('annotations', 'drawOne', '_annIndices');\n _redrawOneComp('shapes', 'drawOne', '_shapeIndices');\n _redrawOneComp('images', 'draw', '_imgIndices', true);\n _redrawOneComp('selections', 'drawOne', '_selectionIndices');\n};\n\nvar getDataConversions = axes.getDataConversions = function(gd, trace, target, targetArray) {\n var ax;\n\n // If target points to an axis, use the type we already have for that\n // axis to find the data type. Otherwise use the values to autotype.\n var d2cTarget = (target === 'x' || target === 'y' || target === 'z') ?\n target :\n targetArray;\n\n // In the case of an array target, make a mock data array\n // and call supplyDefaults to the data type and\n // setup the data-to-calc method.\n if(Array.isArray(d2cTarget)) {\n ax = {\n type: autoType(targetArray, undefined, {\n autotypenumbers: gd._fullLayout.autotypenumbers\n }),\n _categories: []\n };\n axes.setConvert(ax);\n\n // build up ax._categories (usually done during ax.makeCalcdata()\n if(ax.type === 'category') {\n for(var i = 0; i < targetArray.length; i++) {\n ax.d2c(targetArray[i]);\n }\n }\n // TODO what to do for transforms?\n } else {\n ax = axes.getFromTrace(gd, trace, d2cTarget);\n }\n\n // if 'target' has corresponding axis\n // -> use setConvert method\n if(ax) return {d2c: ax.d2c, c2d: ax.c2d};\n\n // special case for 'ids'\n // -> cast to String\n if(d2cTarget === 'ids') return {d2c: toString, c2d: toString};\n\n // otherwise (e.g. numeric-array of 'marker.color' or 'marker.size')\n // -> cast to Number\n\n return {d2c: toNum, c2d: toNum};\n};\n\nfunction toNum(v) { return +v; }\nfunction toString(v) { return String(v); }\n\naxes.getDataToCoordFunc = function(gd, trace, target, targetArray) {\n return getDataConversions(gd, trace, target, targetArray).d2c;\n};\n\n// get counteraxis letter for this axis (name or id)\n// this can also be used as the id for default counter axis\naxes.counterLetter = function(id) {\n var axLetter = id.charAt(0);\n if(axLetter === 'x') return 'y';\n if(axLetter === 'y') return 'x';\n};\n\n// incorporate a new minimum difference and first tick into\n// forced\n// note that _forceTick0 is linearized, so needs to be turned into\n// a range value for setting tick0\naxes.minDtick = function(ax, newDiff, newFirst, allow) {\n // doesn't make sense to do forced min dTick on log or category axes,\n // and the plot itself may decide to cancel (ie non-grouped bars)\n if(['log', 'category', 'multicategory'].indexOf(ax.type) !== -1 || !allow) {\n ax._minDtick = 0;\n } else if(ax._minDtick === undefined) {\n // undefined means there's nothing there yet\n\n ax._minDtick = newDiff;\n ax._forceTick0 = newFirst;\n } else if(ax._minDtick) {\n if((ax._minDtick / newDiff + 1e-6) % 1 < 2e-6 &&\n // existing minDtick is an integer multiple of newDiff\n // (within rounding err)\n // and forceTick0 can be shifted to newFirst\n\n (((newFirst - ax._forceTick0) / newDiff % 1) +\n 1.000001) % 1 < 2e-6) {\n ax._minDtick = newDiff;\n ax._forceTick0 = newFirst;\n } else if((newDiff / ax._minDtick + 1e-6) % 1 > 2e-6 ||\n // if the converse is true (newDiff is a multiple of minDtick and\n // newFirst can be shifted to forceTick0) then do nothing - same\n // forcing stands. Otherwise, cancel forced minimum\n\n (((newFirst - ax._forceTick0) / ax._minDtick % 1) +\n 1.000001) % 1 > 2e-6) {\n ax._minDtick = 0;\n }\n }\n};\n\n// save a copy of the initial axis ranges in fullLayout\n// use them in mode bar and dblclick events\naxes.saveRangeInitial = function(gd, overwrite) {\n var axList = axes.list(gd, '', true);\n var hasOneAxisChanged = false;\n\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n var isNew = (ax._rangeInitial === undefined);\n var hasChanged = isNew || !(\n ax.range[0] === ax._rangeInitial[0] &&\n ax.range[1] === ax._rangeInitial[1]\n );\n\n if((isNew && ax.autorange === false) || (overwrite && hasChanged)) {\n ax._rangeInitial = ax.range.slice();\n hasOneAxisChanged = true;\n }\n }\n\n return hasOneAxisChanged;\n};\n\n// save a copy of the initial spike visibility\naxes.saveShowSpikeInitial = function(gd, overwrite) {\n var axList = axes.list(gd, '', true);\n var hasOneAxisChanged = false;\n var allSpikesEnabled = 'on';\n\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n var isNew = (ax._showSpikeInitial === undefined);\n var hasChanged = isNew || !(ax.showspikes === ax._showspikes);\n\n if(isNew || (overwrite && hasChanged)) {\n ax._showSpikeInitial = ax.showspikes;\n hasOneAxisChanged = true;\n }\n\n if(allSpikesEnabled === 'on' && !ax.showspikes) {\n allSpikesEnabled = 'off';\n }\n }\n gd._fullLayout._cartesianSpikesEnabled = allSpikesEnabled;\n return hasOneAxisChanged;\n};\n\naxes.autoBin = function(data, ax, nbins, is2d, calendar, size) {\n var dataMin = Lib.aggNums(Math.min, null, data);\n var dataMax = Lib.aggNums(Math.max, null, data);\n\n if(ax.type === 'category' || ax.type === 'multicategory') {\n return {\n start: dataMin - 0.5,\n end: dataMax + 0.5,\n size: Math.max(1, Math.round(size) || 1),\n _dataSpan: dataMax - dataMin,\n };\n }\n\n if(!calendar) calendar = ax.calendar;\n\n // piggyback off tick code to make \"nice\" bin sizes and edges\n var dummyAx;\n if(ax.type === 'log') {\n dummyAx = {\n type: 'linear',\n range: [dataMin, dataMax]\n };\n } else {\n dummyAx = {\n type: ax.type,\n range: Lib.simpleMap([dataMin, dataMax], ax.c2r, 0, calendar),\n calendar: calendar\n };\n }\n axes.setConvert(dummyAx);\n\n size = size && cleanTicks.dtick(size, dummyAx.type);\n\n if(size) {\n dummyAx.dtick = size;\n dummyAx.tick0 = cleanTicks.tick0(undefined, dummyAx.type, calendar);\n } else {\n var size0;\n if(nbins) size0 = ((dataMax - dataMin) / nbins);\n else {\n // totally auto: scale off std deviation so the highest bin is\n // somewhat taller than the total number of bins, but don't let\n // the size get smaller than the 'nice' rounded down minimum\n // difference between values\n var distinctData = Lib.distinctVals(data);\n var msexp = Math.pow(10, Math.floor(\n Math.log(distinctData.minDiff) / Math.LN10));\n var minSize = msexp * Lib.roundUp(\n distinctData.minDiff / msexp, [0.9, 1.9, 4.9, 9.9], true);\n size0 = Math.max(minSize, 2 * Lib.stdev(data) /\n Math.pow(data.length, is2d ? 0.25 : 0.4));\n\n // fallback if ax.d2c output BADNUMs\n // e.g. when user try to plot categorical bins\n // on a layout.xaxis.type: 'linear'\n if(!isNumeric(size0)) size0 = 1;\n }\n\n axes.autoTicks(dummyAx, size0);\n }\n\n var finalSize = dummyAx.dtick;\n var binStart = axes.tickIncrement(\n axes.tickFirst(dummyAx), finalSize, 'reverse', calendar);\n var binEnd, bincount;\n\n // check for too many data points right at the edges of bins\n // (>50% within 1% of bin edges) or all data points integral\n // and offset the bins accordingly\n if(typeof finalSize === 'number') {\n binStart = autoShiftNumericBins(binStart, data, dummyAx, dataMin, dataMax);\n\n bincount = 1 + Math.floor((dataMax - binStart) / finalSize);\n binEnd = binStart + bincount * finalSize;\n } else {\n // month ticks - should be the only nonlinear kind we have at this point.\n // dtick (as supplied by axes.autoTick) only has nonlinear values on\n // date and log axes, but even if you display a histogram on a log axis\n // we bin it on a linear axis (which one could argue against, but that's\n // a separate issue)\n if(dummyAx.dtick.charAt(0) === 'M') {\n binStart = autoShiftMonthBins(binStart, data, finalSize, dataMin, calendar);\n }\n\n // calculate the endpoint for nonlinear ticks - you have to\n // just increment until you're done\n binEnd = binStart;\n bincount = 0;\n while(binEnd <= dataMax) {\n binEnd = axes.tickIncrement(binEnd, finalSize, false, calendar);\n bincount++;\n }\n }\n\n return {\n start: ax.c2r(binStart, 0, calendar),\n end: ax.c2r(binEnd, 0, calendar),\n size: finalSize,\n _dataSpan: dataMax - dataMin\n };\n};\n\n\nfunction autoShiftNumericBins(binStart, data, ax, dataMin, dataMax) {\n var edgecount = 0;\n var midcount = 0;\n var intcount = 0;\n var blankCount = 0;\n\n function nearEdge(v) {\n // is a value within 1% of a bin edge?\n return (1 + (v - binStart) * 100 / ax.dtick) % 100 < 2;\n }\n\n for(var i = 0; i < data.length; i++) {\n if(data[i] % 1 === 0) intcount++;\n else if(!isNumeric(data[i])) blankCount++;\n\n if(nearEdge(data[i])) edgecount++;\n if(nearEdge(data[i] + ax.dtick / 2)) midcount++;\n }\n var dataCount = data.length - blankCount;\n\n if(intcount === dataCount && ax.type !== 'date') {\n if(ax.dtick < 1) {\n // all integers: if bin size is <1, it's because\n // that was specifically requested (large nbins)\n // so respect that... but center the bins containing\n // integers on those integers\n\n binStart = dataMin - 0.5 * ax.dtick;\n } else {\n // otherwise start half an integer down regardless of\n // the bin size, just enough to clear up endpoint\n // ambiguity about which integers are in which bins.\n\n binStart -= 0.5;\n if(binStart + ax.dtick < dataMin) binStart += ax.dtick;\n }\n } else if(midcount < dataCount * 0.1) {\n if(edgecount > dataCount * 0.3 ||\n nearEdge(dataMin) || nearEdge(dataMax)) {\n // lots of points at the edge, not many in the middle\n // shift half a bin\n var binshift = ax.dtick / 2;\n binStart += (binStart + binshift < dataMin) ? binshift : -binshift;\n }\n }\n return binStart;\n}\n\n\nfunction autoShiftMonthBins(binStart, data, dtick, dataMin, calendar) {\n var stats = Lib.findExactDates(data, calendar);\n // number of data points that needs to be an exact value\n // to shift that increment to (near) the bin center\n var threshold = 0.8;\n\n if(stats.exactDays > threshold) {\n var numMonths = Number(dtick.substr(1));\n\n if((stats.exactYears > threshold) && (numMonths % 12 === 0)) {\n // The exact middle of a non-leap-year is 1.5 days into July\n // so if we start the bins here, all but leap years will\n // get hover-labeled as exact years.\n binStart = axes.tickIncrement(binStart, 'M6', 'reverse') + ONEDAY * 1.5;\n } else if(stats.exactMonths > threshold) {\n // Months are not as clean, but if we shift half the *longest*\n // month (31/2 days) then 31-day months will get labeled exactly\n // and shorter months will get labeled with the correct month\n // but shifted 12-36 hours into it.\n binStart = axes.tickIncrement(binStart, 'M1', 'reverse') + ONEDAY * 15.5;\n } else {\n // Shifting half a day is exact, but since these are month bins it\n // will always give a somewhat odd-looking label, until we do something\n // smarter like showing the bin boundaries (or the bounds of the actual\n // data in each bin)\n binStart -= HALFDAY;\n }\n var nextBinStart = axes.tickIncrement(binStart, dtick);\n\n if(nextBinStart <= dataMin) return nextBinStart;\n }\n return binStart;\n}\n\n// ----------------------------------------------------\n// Ticks and grids\n// ----------------------------------------------------\n\n// ensure we have minor tick0 and dtick calculated\naxes.prepMinorTicks = function(mockAx, ax, opts) {\n if(!ax.minor.dtick) {\n delete mockAx.dtick;\n var hasMajor = ax.dtick && isNumeric(ax._tmin);\n var mockMinorRange;\n if(hasMajor) {\n var tick2 = axes.tickIncrement(ax._tmin, ax.dtick, true);\n // mock range a tiny bit smaller than one major tick interval\n mockMinorRange = [ax._tmin, tick2 * 0.99 + ax._tmin * 0.01];\n } else {\n var rl = Lib.simpleMap(ax.range, ax.r2l);\n // If we don't have a major dtick, the concept of minor ticks is a little\n // ambiguous - just take a stab and say minor.nticks should span 1/5 the axis\n mockMinorRange = [rl[0], 0.8 * rl[0] + 0.2 * rl[1]];\n }\n mockAx.range = Lib.simpleMap(mockMinorRange, ax.l2r);\n mockAx._isMinor = true;\n\n axes.prepTicks(mockAx, opts);\n\n if(hasMajor) {\n var numericMajor = isNumeric(ax.dtick);\n var numericMinor = isNumeric(mockAx.dtick);\n var majorNum = numericMajor ? ax.dtick : +ax.dtick.substring(1);\n var minorNum = numericMinor ? mockAx.dtick : +mockAx.dtick.substring(1);\n if(numericMajor && numericMinor) {\n if(!isMultiple(majorNum, minorNum)) {\n // give up on minor ticks - outside the below exceptions,\n // this can only happen if minor.nticks is smaller than two jumps\n // in the auto-tick scale and the first jump is not an even multiple\n // (5 -> 2 or for dates 3 ->2, 15 -> 10 etc) or if you provided\n // an explicit dtick, in which case it's fine to give up,\n // you can provide an explicit minor.dtick.\n if((majorNum === 2 * ONEWEEK) && (minorNum === 3 * ONEDAY)) {\n mockAx.dtick = ONEWEEK;\n } else if(majorNum === ONEWEEK && !(ax._input.minor || {}).nticks) {\n // minor.nticks defaults to 5, but in this one case we want 7,\n // so the minor ticks show on all days of the week\n mockAx.dtick = ONEDAY;\n } else if(isClose(majorNum / minorNum, 2.5)) {\n // 5*10^n -> 2*10^n and you've set nticks < 5\n // quarters are pretty common, we don't do this by default as it\n // would add an extra digit to display, but minor has no labels\n mockAx.dtick = majorNum / 2;\n } else {\n mockAx.dtick = majorNum;\n }\n } else if(majorNum === 2 * ONEWEEK && minorNum === 2 * ONEDAY) {\n // this is a weird one: we don't want to automatically choose\n // 2-day minor ticks for 2-week major, even though it IS an even multiple,\n // because people would expect to see the weeks clearly\n mockAx.dtick = ONEWEEK;\n }\n } else if(String(ax.dtick).charAt(0) === 'M') {\n if(numericMinor) {\n mockAx.dtick = 'M1';\n } else {\n if(!isMultiple(majorNum, minorNum)) {\n // unless you provided an explicit ax.dtick (in which case\n // it's OK for us to give up, you can provide an explicit\n // minor.dtick too), this can only happen with:\n // minor.nticks < 3 and dtick === M3, or\n // minor.nticks < 5 and dtick === 5 * 10^n years\n // so in all cases we just give up.\n mockAx.dtick = ax.dtick;\n } else if((majorNum >= 12) && (minorNum === 2)) {\n // another special carve-out: for year major ticks, don't show\n // 2-month minor ticks, bump to quarters\n mockAx.dtick = 'M3';\n }\n }\n } else if(String(mockAx.dtick).charAt(0) === 'L') {\n if(String(ax.dtick).charAt(0) === 'L') {\n if(!isMultiple(majorNum, minorNum)) {\n mockAx.dtick = isClose(majorNum / minorNum, 2.5) ? (ax.dtick / 2) : ax.dtick;\n }\n } else {\n mockAx.dtick = 'D1';\n }\n } else if(mockAx.dtick === 'D2' && +ax.dtick > 1) {\n // the D2 log axis tick spacing is confusing for unlabeled minor ticks if\n // the major dtick is more than one order of magnitude.\n mockAx.dtick = 1;\n }\n }\n // put back the original range, to use to find the full set of minor ticks\n mockAx.range = ax.range;\n }\n if(ax.minor._tick0Init === undefined) {\n // ensure identical tick0\n mockAx.tick0 = ax.tick0;\n }\n};\n\nfunction isMultiple(bigger, smaller) {\n return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 0.001;\n}\n\nfunction isClose(a, b) {\n return Math.abs((a / b) - 1) < 0.001;\n}\n\n// ensure we have tick0, dtick, and tick rounding calculated\naxes.prepTicks = function(ax, opts) {\n var rng = Lib.simpleMap(ax.range, ax.r2l, undefined, undefined, opts);\n\n // calculate max number of (auto) ticks to display based on plot size\n if(ax.tickmode === 'auto' || !ax.dtick) {\n var nt = ax.nticks;\n var minPx;\n\n if(!nt) {\n if(ax.type === 'category' || ax.type === 'multicategory') {\n minPx = ax.tickfont ? Lib.bigFont(ax.tickfont.size || 12) : 15;\n nt = ax._length / minPx;\n } else {\n minPx = ax._id.charAt(0) === 'y' ? 40 : 80;\n nt = Lib.constrain(ax._length / minPx, 4, 9) + 1;\n }\n\n // radial axes span half their domain,\n // multiply nticks value by two to get correct number of auto ticks.\n if(ax._name === 'radialaxis') nt *= 2;\n }\n\n if(!(ax.minor && ax.minor.tickmode !== 'array')) {\n // add a couple of extra digits for filling in ticks when we\n // have explicit tickvals without tick text\n if(ax.tickmode === 'array') nt *= 100;\n }\n\n ax._roughDTick = Math.abs(rng[1] - rng[0]) / nt;\n axes.autoTicks(ax, ax._roughDTick);\n\n // check for a forced minimum dtick\n if(ax._minDtick > 0 && ax.dtick < ax._minDtick * 2) {\n ax.dtick = ax._minDtick;\n ax.tick0 = ax.l2r(ax._forceTick0);\n }\n }\n\n if(ax.ticklabelmode === 'period') {\n adjustPeriodDelta(ax);\n }\n\n // check for missing tick0\n if(!ax.tick0) {\n ax.tick0 = (ax.type === 'date') ? '2000-01-01' : 0;\n }\n\n // ensure we don't try to make ticks below our minimum precision\n // see https://github.com/plotly/plotly.js/issues/2892\n if(ax.type === 'date' && ax.dtick < 0.1) ax.dtick = 0.1;\n\n // now figure out rounding of tick values\n autoTickRound(ax);\n};\n\nfunction nMonths(dtick) {\n return +(dtick.substring(1));\n}\n\nfunction adjustPeriodDelta(ax) { // adjusts ax.dtick and sets ax._definedDelta\n var definedDelta;\n\n function mDate() {\n return !(\n isNumeric(ax.dtick) ||\n ax.dtick.charAt(0) !== 'M'\n );\n }\n var isMDate = mDate();\n var tickformat = axes.getTickFormat(ax);\n if(tickformat) {\n var noDtick = ax._dtickInit !== ax.dtick;\n if(\n !(/%[fLQsSMX]/.test(tickformat))\n // %f: microseconds as a decimal number [000000, 999999]\n // %L: milliseconds as a decimal number [000, 999]\n // %Q: milliseconds since UNIX epoch\n // %s: seconds since UNIX epoch\n // %S: second as a decimal number [00,61]\n // %M: minute as a decimal number [00,59]\n // %X: the locale’s time, such as %-I:%M:%S %p\n ) {\n if(\n /%[HI]/.test(tickformat)\n // %H: hour (24-hour clock) as a decimal number [00,23]\n // %I: hour (12-hour clock) as a decimal number [01,12]\n ) {\n definedDelta = ONEHOUR;\n if(noDtick && !isMDate && ax.dtick < ONEHOUR) ax.dtick = ONEHOUR;\n } else if(\n /%p/.test(tickformat) // %p: either AM or PM\n ) {\n definedDelta = HALFDAY;\n if(noDtick && !isMDate && ax.dtick < HALFDAY) ax.dtick = HALFDAY;\n } else if(\n /%[Aadejuwx]/.test(tickformat)\n // %A: full weekday name\n // %a: abbreviated weekday name\n // %d: zero-padded day of the month as a decimal number [01,31]\n // %e: space-padded day of the month as a decimal number [ 1,31]\n // %j: day of the year as a decimal number [001,366]\n // %u: Monday-based (ISO 8601) weekday as a decimal number [1,7]\n // %w: Sunday-based weekday as a decimal number [0,6]\n // %x: the locale’s date, such as %-m/%-d/%Y\n ) {\n definedDelta = ONEDAY;\n if(noDtick && !isMDate && ax.dtick < ONEDAY) ax.dtick = ONEDAY;\n } else if(\n /%[UVW]/.test(tickformat)\n // %U: Sunday-based week of the year as a decimal number [00,53]\n // %V: ISO 8601 week of the year as a decimal number [01, 53]\n // %W: Monday-based week of the year as a decimal number [00,53]\n ) {\n definedDelta = ONEWEEK;\n if(noDtick && !isMDate && ax.dtick < ONEWEEK) ax.dtick = ONEWEEK;\n } else if(\n /%[Bbm]/.test(tickformat)\n // %B: full month name\n // %b: abbreviated month name\n // %m: month as a decimal number [01,12]\n ) {\n definedDelta = ONEAVGMONTH;\n if(noDtick && (\n isMDate ? nMonths(ax.dtick) < 1 : ax.dtick < ONEMINMONTH)\n ) ax.dtick = 'M1';\n } else if(\n /%[q]/.test(tickformat)\n // %q: quarter of the year as a decimal number [1,4]\n ) {\n definedDelta = ONEAVGQUARTER;\n if(noDtick && (\n isMDate ? nMonths(ax.dtick) < 3 : ax.dtick < ONEMINQUARTER)\n ) ax.dtick = 'M3';\n } else if(\n /%[Yy]/.test(tickformat)\n // %Y: year with century as a decimal number, such as 1999\n // %y: year without century as a decimal number [00,99]\n ) {\n definedDelta = ONEAVGYEAR;\n if(noDtick && (\n isMDate ? nMonths(ax.dtick) < 12 : ax.dtick < ONEMINYEAR)\n ) ax.dtick = 'M12';\n }\n }\n }\n\n isMDate = mDate();\n if(isMDate && ax.tick0 === ax._dowTick0) {\n // discard Sunday/Monday tweaks\n ax.tick0 = ax._rawTick0;\n }\n\n ax._definedDelta = definedDelta;\n}\n\nfunction positionPeriodTicks(tickVals, ax, definedDelta) {\n for(var i = 0; i < tickVals.length; i++) {\n var v = tickVals[i].value;\n\n var a = i;\n var b = i + 1;\n if(i < tickVals.length - 1) {\n a = i;\n b = i + 1;\n } else if(i > 0) {\n a = i - 1;\n b = i;\n } else {\n a = i;\n b = i;\n }\n\n var A = tickVals[a].value;\n var B = tickVals[b].value;\n var actualDelta = Math.abs(B - A);\n var delta = definedDelta || actualDelta;\n var periodLength = 0;\n\n if(delta >= ONEMINYEAR) {\n if(actualDelta >= ONEMINYEAR && actualDelta <= ONEMAXYEAR) {\n periodLength = actualDelta;\n } else {\n periodLength = ONEAVGYEAR;\n }\n } else if(definedDelta === ONEAVGQUARTER && delta >= ONEMINQUARTER) {\n if(actualDelta >= ONEMINQUARTER && actualDelta <= ONEMAXQUARTER) {\n periodLength = actualDelta;\n } else {\n periodLength = ONEAVGQUARTER;\n }\n } else if(delta >= ONEMINMONTH) {\n if(actualDelta >= ONEMINMONTH && actualDelta <= ONEMAXMONTH) {\n periodLength = actualDelta;\n } else {\n periodLength = ONEAVGMONTH;\n }\n } else if(definedDelta === ONEWEEK && delta >= ONEWEEK) {\n periodLength = ONEWEEK;\n } else if(delta >= ONEDAY) {\n periodLength = ONEDAY;\n } else if(definedDelta === HALFDAY && delta >= HALFDAY) {\n periodLength = HALFDAY;\n } else if(definedDelta === ONEHOUR && delta >= ONEHOUR) {\n periodLength = ONEHOUR;\n }\n\n var inBetween;\n if(periodLength >= actualDelta) {\n // ensure new label positions remain between ticks\n periodLength = actualDelta;\n inBetween = true;\n }\n\n var endPeriod = v + periodLength;\n if(ax.rangebreaks && periodLength > 0) {\n var nAll = 84; // highly divisible 7 * 12\n var n = 0;\n for(var c = 0; c < nAll; c++) {\n var r = (c + 0.5) / nAll;\n if(ax.maskBreaks(v * (1 - r) + r * endPeriod) !== BADNUM) n++;\n }\n periodLength *= n / nAll;\n\n if(!periodLength) {\n tickVals[i].drop = true;\n }\n\n if(inBetween && actualDelta > ONEWEEK) periodLength = actualDelta; // center monthly & longer periods\n }\n\n if(\n periodLength > 0 || // not instant\n i === 0 // taking care first tick added\n ) {\n tickVals[i].periodX = v + periodLength / 2;\n }\n }\n}\n\n// calculate the ticks: text, values, positioning\n// if ticks are set to automatic, determine the right values (tick0,dtick)\n// in any case, set tickround to # of digits to round tick labels to,\n// or codes to this effect for log and date scales\naxes.calcTicks = function calcTicks(ax, opts) {\n var type = ax.type;\n var calendar = ax.calendar;\n var ticklabelstep = ax.ticklabelstep;\n var isPeriod = ax.ticklabelmode === 'period';\n\n var rng = Lib.simpleMap(ax.range, ax.r2l, undefined, undefined, opts);\n var axrev = (rng[1] < rng[0]);\n var minRange = Math.min(rng[0], rng[1]);\n var maxRange = Math.max(rng[0], rng[1]);\n\n var maxTicks = Math.max(1000, ax._length || 0);\n\n var ticksOut = [];\n var minorTicks = [];\n\n var tickVals = [];\n var minorTickVals = [];\n\n var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid);\n\n // calc major first\n for(var major = 1; major >= (hasMinor ? 0 : 1); major--) {\n var isMinor = !major;\n\n if(major) {\n ax._dtickInit = ax.dtick;\n ax._tick0Init = ax.tick0;\n } else {\n ax.minor._dtickInit = ax.minor.dtick;\n ax.minor._tick0Init = ax.minor.tick0;\n }\n\n var mockAx = major ? ax : Lib.extendFlat({}, ax, ax.minor);\n\n if(isMinor) {\n axes.prepMinorTicks(mockAx, ax, opts);\n } else {\n axes.prepTicks(mockAx, opts);\n }\n\n // now that we've figured out the auto values for formatting\n // in case we're missing some ticktext, we can break out for array ticks\n if(mockAx.tickmode === 'array') {\n if(major) {\n tickVals = [];\n ticksOut = arrayTicks(ax);\n } else {\n minorTickVals = [];\n minorTicks = arrayTicks(ax);\n }\n continue;\n }\n\n // add a tiny bit so we get ticks which may have rounded out\n var exRng = expandRange(rng);\n var startTick = exRng[0];\n var endTick = exRng[1];\n\n var numDtick = isNumeric(mockAx.dtick);\n var isDLog = (type === 'log') && !(numDtick || mockAx.dtick.charAt(0) === 'L');\n\n // find the first tick\n var x0 = axes.tickFirst(mockAx, opts);\n\n if(major) {\n ax._tmin = x0;\n\n // No visible ticks? Quit.\n // I've only seen this on category axes with all categories off the edge.\n if((x0 < startTick) !== axrev) break;\n\n // return the full set of tick vals\n if(type === 'category' || type === 'multicategory') {\n endTick = (axrev) ? Math.max(-0.5, endTick) :\n Math.min(ax._categories.length - 0.5, endTick);\n }\n }\n\n var prevX = null;\n var x = x0;\n var majorId;\n\n if(major) {\n // ids for ticklabelstep\n var _dTick;\n if(numDtick) {\n _dTick = ax.dtick;\n } else {\n if(type === 'date') {\n if(typeof ax.dtick === 'string' && ax.dtick.charAt(0) === 'M') {\n _dTick = ONEAVGMONTH * ax.dtick.substring(1);\n }\n } else {\n _dTick = ax._roughDTick;\n }\n }\n\n majorId = Math.round((\n ax.r2l(x) -\n ax.r2l(ax.tick0)\n ) / _dTick) - 1;\n }\n\n var dtick = mockAx.dtick;\n\n if(mockAx.rangebreaks && mockAx._tick0Init !== mockAx.tick0) {\n // adjust tick0\n x = moveOutsideBreak(x, ax);\n if(!axrev) {\n x = axes.tickIncrement(x, dtick, !axrev, calendar);\n }\n }\n\n if(major && isPeriod) {\n // add one item to label period before tick0\n x = axes.tickIncrement(x, dtick, !axrev, calendar);\n majorId--;\n }\n\n for(;\n axrev ?\n (x >= endTick) :\n (x <= endTick);\n x = axes.tickIncrement(\n x,\n dtick,\n axrev,\n calendar\n )\n ) {\n if(major) majorId++;\n\n if(mockAx.rangebreaks) {\n if(!axrev) {\n if(x < startTick) continue;\n if(mockAx.maskBreaks(x) === BADNUM && moveOutsideBreak(x, mockAx) >= maxRange) break;\n }\n }\n\n // prevent infinite loops - no more than one tick per pixel,\n // and make sure each value is different from the previous\n if(tickVals.length > maxTicks || x === prevX) break;\n prevX = x;\n\n var obj = { value: x };\n\n if(major) {\n if(isDLog && (x !== (x | 0))) {\n obj.simpleLabel = true;\n }\n\n if(ticklabelstep > 1 && majorId % ticklabelstep) {\n obj.skipLabel = true;\n }\n\n tickVals.push(obj);\n } else {\n obj.minor = true;\n\n minorTickVals.push(obj);\n }\n }\n }\n\n if(hasMinor) {\n var canOverlap =\n (ax.minor.ticks === 'inside' && ax.ticks === 'outside') ||\n (ax.minor.ticks === 'outside' && ax.ticks === 'inside');\n\n if(!canOverlap) {\n // remove duplicate minors\n\n var majorValues = tickVals.map(function(d) { return d.value; });\n\n var list = [];\n for(var k = 0; k < minorTickVals.length; k++) {\n var T = minorTickVals[k];\n var v = T.value;\n if(majorValues.indexOf(v) !== -1) {\n continue;\n }\n var found = false;\n for(var q = 0; !found && (q < tickVals.length); q++) {\n if(\n // add 10e6 to eliminate problematic digits\n 10e6 + tickVals[q].value ===\n 10e6 + v\n ) {\n found = true;\n }\n }\n if(!found) list.push(T);\n }\n minorTickVals = list;\n }\n }\n\n if(isPeriod) positionPeriodTicks(tickVals, ax, ax._definedDelta);\n\n var i;\n if(ax.rangebreaks) {\n var flip = ax._id.charAt(0) === 'y';\n\n var fontSize = 1; // one pixel minimum\n if(ax.tickmode === 'auto') {\n fontSize = ax.tickfont ? ax.tickfont.size : 12;\n }\n\n var prevL = NaN;\n for(i = tickVals.length - 1; i > -1; i--) {\n if(tickVals[i].drop) {\n tickVals.splice(i, 1);\n continue;\n }\n\n tickVals[i].value = moveOutsideBreak(tickVals[i].value, ax);\n\n // avoid overlaps\n var l = ax.c2p(tickVals[i].value);\n if(flip ?\n (prevL > l - fontSize) :\n (prevL < l + fontSize)\n ) { // ensure one pixel minimum\n tickVals.splice(axrev ? i + 1 : i, 1);\n } else {\n prevL = l;\n }\n }\n }\n\n // If same angle over a full circle, the last tick vals is a duplicate.\n // TODO must do something similar for angular date axes.\n if(isAngular(ax) && Math.abs(rng[1] - rng[0]) === 360) {\n tickVals.pop();\n }\n\n // save the last tick as well as first, so we can\n // show the exponent only on the last one\n ax._tmax = (tickVals[tickVals.length - 1] || {}).value;\n\n // for showing the rest of a date when the main tick label is only the\n // latter part: ax._prevDateHead holds what we showed most recently.\n // Start with it cleared and mark that we're in calcTicks (ie calculating a\n // whole string of these so we should care what the previous date head was!)\n ax._prevDateHead = '';\n ax._inCalcTicks = true;\n\n var lastVisibleHead;\n var hideLabel = function(tick) {\n tick.text = '';\n ax._prevDateHead = lastVisibleHead;\n };\n\n tickVals = tickVals.concat(minorTickVals);\n\n var t, p;\n for(i = 0; i < tickVals.length; i++) {\n var _minor = tickVals[i].minor;\n var _value = tickVals[i].value;\n\n if(_minor) {\n minorTicks.push({\n x: _value,\n minor: true\n });\n } else {\n lastVisibleHead = ax._prevDateHead;\n\n t = axes.tickText(\n ax,\n _value,\n false, // hover\n tickVals[i].simpleLabel // noSuffixPrefix\n );\n\n p = tickVals[i].periodX;\n if(p !== undefined) {\n t.periodX = p;\n if(p > maxRange || p < minRange) { // hide label if outside the range\n if(p > maxRange) t.periodX = maxRange;\n if(p < minRange) t.periodX = minRange;\n\n hideLabel(t);\n }\n }\n\n if(tickVals[i].skipLabel) {\n hideLabel(t);\n }\n\n ticksOut.push(t);\n }\n }\n ticksOut = ticksOut.concat(minorTicks);\n\n ax._inCalcTicks = false;\n\n if(isPeriod && ticksOut.length) {\n // drop very first tick that we added to handle period\n ticksOut[0].noTick = true;\n }\n\n return ticksOut;\n};\n\nfunction arrayTicks(ax) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n var exRng = expandRange(rng);\n var tickMin = Math.min(exRng[0], exRng[1]);\n var tickMax = Math.max(exRng[0], exRng[1]);\n\n // make sure showing ticks doesn't accidentally add new categories\n // TODO multicategory, if we allow ticktext / tickvals\n var tickVal2l = ax.type === 'category' ? ax.d2l_noadd : ax.d2l;\n\n // array ticks on log axes always show the full number\n // (if no explicit ticktext overrides it)\n if(ax.type === 'log' && String(ax.dtick).charAt(0) !== 'L') {\n ax.dtick = 'L' + Math.pow(10, Math.floor(Math.min(ax.range[0], ax.range[1])) - 1);\n }\n\n var ticksOut = [];\n for(var isMinor = 0; isMinor <= 1; isMinor++) {\n if(isMinor && !ax.minor) continue;\n var vals = !isMinor ? ax.tickvals : ax.minor.tickvals;\n var text = !isMinor ? ax.ticktext : [];\n\n if(!vals) continue;\n\n\n // without a text array, just format the given values as any other ticks\n // except with more precision to the numbers\n if(!Array.isArray(text)) text = [];\n\n for(var i = 0; i < vals.length; i++) {\n var vali = tickVal2l(vals[i]);\n if(vali > tickMin && vali < tickMax) {\n var obj = text[i] === undefined ?\n axes.tickText(ax, vali) :\n tickTextObj(ax, vali, String(text[i]));\n\n if(isMinor) {\n obj.minor = true;\n obj.text = '';\n }\n\n ticksOut.push(obj);\n }\n }\n }\n\n if(ax.rangebreaks) {\n // remove ticks falling inside rangebreaks\n ticksOut = ticksOut.filter(function(d) {\n return ax.maskBreaks(d.x) !== BADNUM;\n });\n }\n\n return ticksOut;\n}\n\nvar roundBase10 = [2, 5, 10];\nvar roundBase24 = [1, 2, 3, 6, 12];\nvar roundBase60 = [1, 2, 5, 10, 15, 30];\n// 2&3 day ticks are weird, but need something btwn 1&7\nvar roundDays = [1, 2, 3, 7, 14];\n// approx. tick positions for log axes, showing all (1) and just 1, 2, 5 (2)\n// these don't have to be exact, just close enough to round to the right value\nvar roundLog1 = [-0.046, 0, 0.301, 0.477, 0.602, 0.699, 0.778, 0.845, 0.903, 0.954, 1];\nvar roundLog2 = [-0.301, 0, 0.301, 0.699, 1];\n// N.B. `thetaunit; 'radians' angular axes must be converted to degrees\nvar roundAngles = [15, 30, 45, 90, 180];\n\nfunction roundDTick(roughDTick, base, roundingSet) {\n return base * Lib.roundUp(roughDTick / base, roundingSet);\n}\n\n// autoTicks: calculate best guess at pleasant ticks for this axis\n// inputs:\n// ax - an axis object\n// roughDTick - rough tick spacing (to be turned into a nice round number)\n// outputs (into ax):\n// tick0: starting point for ticks (not necessarily on the graph)\n// usually 0 for numeric (=10^0=1 for log) or jan 1, 2000 for dates\n// dtick: the actual, nice round tick spacing, usually a little larger than roughDTick\n// if the ticks are spaced linearly (linear scale, categories,\n// log with only full powers, date ticks < month),\n// this will just be a number\n// months: M#\n// years: M# where # is 12*number of years\n// log with linear ticks: L# where # is the linear tick spacing\n// log showing powers plus some intermediates:\n// D1 shows all digits, D2 shows 2 and 5\naxes.autoTicks = function(ax, roughDTick, isMinor) {\n var base;\n\n function getBase(v) {\n return Math.pow(v, Math.floor(Math.log(roughDTick) / Math.LN10));\n }\n\n if(ax.type === 'date') {\n ax.tick0 = Lib.dateTick0(ax.calendar, 0);\n\n // the criteria below are all based on the rough spacing we calculate\n // being > half of the final unit - so precalculate twice the rough val\n var roughX2 = 2 * roughDTick;\n\n if(roughX2 > ONEAVGYEAR) {\n roughDTick /= ONEAVGYEAR;\n base = getBase(10);\n ax.dtick = 'M' + (12 * roundDTick(roughDTick, base, roundBase10));\n } else if(roughX2 > ONEAVGMONTH) {\n roughDTick /= ONEAVGMONTH;\n ax.dtick = 'M' + roundDTick(roughDTick, 1, roundBase24);\n } else if(roughX2 > ONEDAY) {\n ax.dtick = roundDTick(roughDTick, ONEDAY, ax._hasDayOfWeekBreaks ? [1, 2, 7, 14] : roundDays);\n if(!isMinor) {\n // get week ticks on sunday\n // this will also move the base tick off 2000-01-01 if dtick is\n // 2 or 3 days... but that's a weird enough case that we'll ignore it.\n var tickformat = axes.getTickFormat(ax);\n var isPeriod = ax.ticklabelmode === 'period';\n if(isPeriod) ax._rawTick0 = ax.tick0;\n\n if(/%[uVW]/.test(tickformat)) {\n ax.tick0 = Lib.dateTick0(ax.calendar, 2); // Monday\n } else {\n ax.tick0 = Lib.dateTick0(ax.calendar, 1); // Sunday\n }\n\n if(isPeriod) ax._dowTick0 = ax.tick0;\n }\n } else if(roughX2 > ONEHOUR) {\n ax.dtick = roundDTick(roughDTick, ONEHOUR, roundBase24);\n } else if(roughX2 > ONEMIN) {\n ax.dtick = roundDTick(roughDTick, ONEMIN, roundBase60);\n } else if(roughX2 > ONESEC) {\n ax.dtick = roundDTick(roughDTick, ONESEC, roundBase60);\n } else {\n // milliseconds\n base = getBase(10);\n ax.dtick = roundDTick(roughDTick, base, roundBase10);\n }\n } else if(ax.type === 'log') {\n ax.tick0 = 0;\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n if(ax._isMinor) {\n // Log axes by default get MORE than nTicks based on the metrics below\n // But for minor ticks we don't want this increase, we already have\n // the major ticks.\n roughDTick *= 1.5;\n }\n if(roughDTick > 0.7) {\n // only show powers of 10\n ax.dtick = Math.ceil(roughDTick);\n } else if(Math.abs(rng[1] - rng[0]) < 1) {\n // span is less than one power of 10\n var nt = 1.5 * Math.abs((rng[1] - rng[0]) / roughDTick);\n\n // ticks on a linear scale, labeled fully\n roughDTick = Math.abs(Math.pow(10, rng[1]) -\n Math.pow(10, rng[0])) / nt;\n base = getBase(10);\n ax.dtick = 'L' + roundDTick(roughDTick, base, roundBase10);\n } else {\n // include intermediates between powers of 10,\n // labeled with small digits\n // ax.dtick = \"D2\" (show 2 and 5) or \"D1\" (show all digits)\n ax.dtick = (roughDTick > 0.3) ? 'D2' : 'D1';\n }\n } else if(ax.type === 'category' || ax.type === 'multicategory') {\n ax.tick0 = 0;\n ax.dtick = Math.ceil(Math.max(roughDTick, 1));\n } else if(isAngular(ax)) {\n ax.tick0 = 0;\n base = 1;\n ax.dtick = roundDTick(roughDTick, base, roundAngles);\n } else {\n // auto ticks always start at 0\n ax.tick0 = 0;\n base = getBase(10);\n ax.dtick = roundDTick(roughDTick, base, roundBase10);\n }\n\n // prevent infinite loops\n if(ax.dtick === 0) ax.dtick = 1;\n\n // TODO: this is from log axis histograms with autorange off\n if(!isNumeric(ax.dtick) && typeof ax.dtick !== 'string') {\n var olddtick = ax.dtick;\n ax.dtick = 1;\n throw 'ax.dtick error: ' + String(olddtick);\n }\n};\n\n// after dtick is already known, find tickround = precision\n// to display in tick labels\n// for numeric ticks, integer # digits after . to round to\n// for date ticks, the last date part to show (y,m,d,H,M,S)\n// or an integer # digits past seconds\nfunction autoTickRound(ax) {\n var dtick = ax.dtick;\n\n ax._tickexponent = 0;\n if(!isNumeric(dtick) && typeof dtick !== 'string') {\n dtick = 1;\n }\n\n if(ax.type === 'category' || ax.type === 'multicategory') {\n ax._tickround = null;\n }\n if(ax.type === 'date') {\n // If tick0 is unusual, give tickround a bit more information\n // not necessarily *all* the information in tick0 though, if it's really odd\n // minimal string length for tick0: 'd' is 10, 'M' is 16, 'S' is 19\n // take off a leading minus (year < 0) and i (intercalary month) so length is consistent\n var tick0ms = ax.r2l(ax.tick0);\n var tick0str = ax.l2r(tick0ms).replace(/(^-|i)/g, '');\n var tick0len = tick0str.length;\n\n if(String(dtick).charAt(0) === 'M') {\n // any tick0 more specific than a year: alway show the full date\n if(tick0len > 10 || tick0str.substr(5) !== '01-01') ax._tickround = 'd';\n // show the month unless ticks are full multiples of a year\n else ax._tickround = (+(dtick.substr(1)) % 12 === 0) ? 'y' : 'm';\n } else if((dtick >= ONEDAY && tick0len <= 10) || (dtick >= ONEDAY * 15)) ax._tickround = 'd';\n else if((dtick >= ONEMIN && tick0len <= 16) || (dtick >= ONEHOUR)) ax._tickround = 'M';\n else if((dtick >= ONESEC && tick0len <= 19) || (dtick >= ONEMIN)) ax._tickround = 'S';\n else {\n // tickround is a number of digits of fractional seconds\n // of any two adjacent ticks, at least one will have the maximum fractional digits\n // of all possible ticks - so take the max. length of tick0 and the next one\n var tick1len = ax.l2r(tick0ms + dtick).replace(/^-/, '').length;\n ax._tickround = Math.max(tick0len, tick1len) - 20;\n\n // We shouldn't get here... but in case there's a situation I'm\n // not thinking of where tick0str and tick1str are identical or\n // something, fall back on maximum precision\n if(ax._tickround < 0) ax._tickround = 4;\n }\n } else if(isNumeric(dtick) || dtick.charAt(0) === 'L') {\n // linear or log (except D1, D2)\n var rng = ax.range.map(ax.r2d || Number);\n if(!isNumeric(dtick)) dtick = Number(dtick.substr(1));\n // 2 digits past largest digit of dtick\n ax._tickround = 2 - Math.floor(Math.log(dtick) / Math.LN10 + 0.01);\n\n var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1]));\n var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01);\n var minexponent = ax.minexponent === undefined ? 3 : ax.minexponent;\n if(Math.abs(rangeexp) > minexponent) {\n if(isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) {\n ax._tickexponent = 3 * Math.round((rangeexp - 1) / 3);\n } else ax._tickexponent = rangeexp;\n }\n } else {\n // D1 or D2 (log)\n ax._tickround = null;\n }\n}\n\n// months and years don't have constant millisecond values\n// (but a year is always 12 months so we only need months)\n// log-scale ticks are also not consistently spaced, except\n// for pure powers of 10\n// numeric ticks always have constant differences, other datetime ticks\n// can all be calculated as constant number of milliseconds\naxes.tickIncrement = function(x, dtick, axrev, calendar) {\n var axSign = axrev ? -1 : 1;\n\n // includes linear, all dates smaller than month, and pure 10^n in log\n if(isNumeric(dtick)) return Lib.increment(x, axSign * dtick);\n\n // everything else is a string, one character plus a number\n var tType = dtick.charAt(0);\n var dtSigned = axSign * Number(dtick.substr(1));\n\n // Dates: months (or years - see Lib.incrementMonth)\n if(tType === 'M') return Lib.incrementMonth(x, dtSigned, calendar);\n\n // Log scales: Linear, Digits\n if(tType === 'L') return Math.log(Math.pow(10, x) + dtSigned) / Math.LN10;\n\n // log10 of 2,5,10, or all digits (logs just have to be\n // close enough to round)\n if(tType === 'D') {\n var tickset = (dtick === 'D2') ? roundLog2 : roundLog1;\n var x2 = x + axSign * 0.01;\n var frac = Lib.roundUp(Lib.mod(x2, 1), tickset, axrev);\n\n return Math.floor(x2) +\n Math.log(d3.round(Math.pow(10, frac), 1)) / Math.LN10;\n }\n\n throw 'unrecognized dtick ' + String(dtick);\n};\n\n// calculate the first tick on an axis\naxes.tickFirst = function(ax, opts) {\n var r2l = ax.r2l || Number;\n var rng = Lib.simpleMap(ax.range, r2l, undefined, undefined, opts);\n var axrev = rng[1] < rng[0];\n var sRound = axrev ? Math.floor : Math.ceil;\n // add a tiny extra bit to make sure we get ticks\n // that may have been rounded out\n var r0 = expandRange(rng)[0];\n var dtick = ax.dtick;\n var tick0 = r2l(ax.tick0);\n\n if(isNumeric(dtick)) {\n var tmin = sRound((r0 - tick0) / dtick) * dtick + tick0;\n\n // make sure no ticks outside the category list\n if(ax.type === 'category' || ax.type === 'multicategory') {\n tmin = Lib.constrain(tmin, 0, ax._categories.length - 1);\n }\n return tmin;\n }\n\n var tType = dtick.charAt(0);\n var dtNum = Number(dtick.substr(1));\n\n // Dates: months (or years)\n if(tType === 'M') {\n var cnt = 0;\n var t0 = tick0;\n var t1, mult, newDTick;\n\n // This algorithm should work for *any* nonlinear (but close to linear!)\n // tick spacing. Limit to 10 iterations, for gregorian months it's normally <=3.\n while(cnt < 10) {\n t1 = axes.tickIncrement(t0, dtick, axrev, ax.calendar);\n if((t1 - r0) * (t0 - r0) <= 0) {\n // t1 and t0 are on opposite sides of r0! we've succeeded!\n if(axrev) return Math.min(t0, t1);\n return Math.max(t0, t1);\n }\n mult = (r0 - ((t0 + t1) / 2)) / (t1 - t0);\n newDTick = tType + ((Math.abs(Math.round(mult)) || 1) * dtNum);\n t0 = axes.tickIncrement(t0, newDTick, mult < 0 ? !axrev : axrev, ax.calendar);\n cnt++;\n }\n Lib.error('tickFirst did not converge', ax);\n return t0;\n } else if(tType === 'L') {\n // Log scales: Linear, Digits\n\n return Math.log(sRound(\n (Math.pow(10, r0) - tick0) / dtNum) * dtNum + tick0) / Math.LN10;\n } else if(tType === 'D') {\n var tickset = (dtick === 'D2') ? roundLog2 : roundLog1;\n var frac = Lib.roundUp(Lib.mod(r0, 1), tickset, axrev);\n\n return Math.floor(r0) +\n Math.log(d3.round(Math.pow(10, frac), 1)) / Math.LN10;\n } else throw 'unrecognized dtick ' + String(dtick);\n};\n\n// draw the text for one tick.\n// px,py are the location on gd.paper\n// prefix is there so the x axis ticks can be dropped a line\n// ax is the axis layout, x is the tick value\n// hover is a (truthy) flag for whether to show numbers with a bit\n// more precision for hovertext\naxes.tickText = function(ax, x, hover, noSuffixPrefix) {\n var out = tickTextObj(ax, x);\n var arrayMode = ax.tickmode === 'array';\n var extraPrecision = hover || arrayMode;\n var axType = ax.type;\n // TODO multicategory, if we allow ticktext / tickvals\n var tickVal2l = axType === 'category' ? ax.d2l_noadd : ax.d2l;\n var i;\n\n if(arrayMode && Array.isArray(ax.ticktext)) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n var minDiff = (Math.abs(rng[1] - rng[0]) - (ax._lBreaks || 0)) / 10000;\n\n for(i = 0; i < ax.ticktext.length; i++) {\n if(Math.abs(x - tickVal2l(ax.tickvals[i])) < minDiff) break;\n }\n if(i < ax.ticktext.length) {\n out.text = String(ax.ticktext[i]);\n return out;\n }\n }\n\n function isHidden(showAttr) {\n if(showAttr === undefined) return true;\n if(hover) return showAttr === 'none';\n\n var firstOrLast = {\n first: ax._tmin,\n last: ax._tmax\n }[showAttr];\n\n return showAttr !== 'all' && x !== firstOrLast;\n }\n\n var hideexp = hover ?\n 'never' :\n ax.exponentformat !== 'none' && isHidden(ax.showexponent) ? 'hide' : '';\n\n if(axType === 'date') formatDate(ax, out, hover, extraPrecision);\n else if(axType === 'log') formatLog(ax, out, hover, extraPrecision, hideexp);\n else if(axType === 'category') formatCategory(ax, out);\n else if(axType === 'multicategory') formatMultiCategory(ax, out, hover);\n else if(isAngular(ax)) formatAngle(ax, out, hover, extraPrecision, hideexp);\n else formatLinear(ax, out, hover, extraPrecision, hideexp);\n\n // add prefix and suffix\n if(!noSuffixPrefix) {\n if(ax.tickprefix && !isHidden(ax.showtickprefix)) out.text = ax.tickprefix + out.text;\n if(ax.ticksuffix && !isHidden(ax.showticksuffix)) out.text += ax.ticksuffix;\n }\n\n // Setup ticks and grid lines boundaries\n // at 1/2 a 'category' to the left/bottom\n if(ax.tickson === 'boundaries' || ax.showdividers) {\n var inbounds = function(v) {\n var p = ax.l2p(v);\n return p >= 0 && p <= ax._length ? v : null;\n };\n\n out.xbnd = [\n inbounds(out.x - 0.5),\n inbounds(out.x + ax.dtick - 0.5)\n ];\n }\n\n return out;\n};\n\n/**\n * create text for a hover label on this axis, with special handling of\n * log axes (where negative values can't be displayed but can appear in hover text)\n *\n * @param {object} ax: the axis to format text for\n * @param {number or array of numbers} values: calcdata value(s) to format\n * @param {Optional(string)} hoverformat: trace (x|y)hoverformat to override axis.hoverformat\n *\n * @returns {string} `val` formatted as a string appropriate to this axis, or\n * first value and second value as a range (ie ' - ') if the second value is provided and\n * it's different from the first value.\n */\naxes.hoverLabelText = function(ax, values, hoverformat) {\n if(hoverformat) ax = Lib.extendFlat({}, ax, {hoverformat: hoverformat});\n\n var val = Array.isArray(values) ? values[0] : values;\n var val2 = Array.isArray(values) ? values[1] : undefined;\n if(val2 !== undefined && val2 !== val) {\n return (\n axes.hoverLabelText(ax, val, hoverformat) + ' - ' +\n axes.hoverLabelText(ax, val2, hoverformat)\n );\n }\n\n var logOffScale = (ax.type === 'log' && val <= 0);\n var tx = axes.tickText(ax, ax.c2l(logOffScale ? -val : val), 'hover').text;\n\n if(logOffScale) {\n return val === 0 ? '0' : MINUS_SIGN + tx;\n }\n\n // TODO: should we do something special if the axis calendar and\n // the data calendar are different? Somehow display both dates with\n // their system names? Right now it will just display in the axis calendar\n // but users could add the other one as text.\n return tx;\n};\n\nfunction tickTextObj(ax, x, text) {\n var tf = ax.tickfont || {};\n\n return {\n x: x,\n dx: 0,\n dy: 0,\n text: text || '',\n fontSize: tf.size,\n font: tf.family,\n fontColor: tf.color\n };\n}\n\nfunction formatDate(ax, out, hover, extraPrecision) {\n var tr = ax._tickround;\n var fmt = (hover && ax.hoverformat) || axes.getTickFormat(ax);\n\n if(extraPrecision) {\n // second or sub-second precision: extra always shows max digits.\n // for other fields, extra precision just adds one field.\n if(isNumeric(tr)) tr = 4;\n else tr = {y: 'm', m: 'd', d: 'M', M: 'S', S: 4}[tr];\n }\n\n var dateStr = Lib.formatDate(out.x, fmt, tr, ax._dateFormat, ax.calendar, ax._extraFormat);\n var headStr;\n\n var splitIndex = dateStr.indexOf('\\n');\n if(splitIndex !== -1) {\n headStr = dateStr.substr(splitIndex + 1);\n dateStr = dateStr.substr(0, splitIndex);\n }\n\n if(extraPrecision) {\n // if extraPrecision led to trailing zeros, strip them off\n // actually, this can lead to removing even more zeros than\n // in the original rounding, but that's fine because in these\n // contexts uniformity is not so important (if there's even\n // anything to be uniform with!)\n\n // can we remove the whole time part?\n if(dateStr === '00:00:00' || dateStr === '00:00') {\n dateStr = headStr;\n headStr = '';\n } else if(dateStr.length === 8) {\n // strip off seconds if they're zero (zero fractional seconds\n // are already omitted)\n // but we never remove minutes and leave just hours\n dateStr = dateStr.replace(/:00$/, '');\n }\n }\n\n if(headStr) {\n if(hover) {\n // hover puts it all on one line, so headPart works best up front\n // except for year headPart: turn this into \"Jan 1, 2000\" etc.\n if(tr === 'd') dateStr += ', ' + headStr;\n else dateStr = headStr + (dateStr ? ', ' + dateStr : '');\n } else {\n if(\n !ax._inCalcTicks ||\n ax._prevDateHead !== headStr\n ) {\n ax._prevDateHead = headStr;\n dateStr += '
' + headStr;\n } else {\n var isInside = insideTicklabelposition(ax);\n var side = ax._trueSide || ax.side; // polar mocks the side of the radial axis\n if(\n (!isInside && side === 'top') ||\n (isInside && side === 'bottom')\n ) {\n dateStr += '
';\n }\n }\n }\n }\n\n out.text = dateStr;\n}\n\nfunction formatLog(ax, out, hover, extraPrecision, hideexp) {\n var dtick = ax.dtick;\n var x = out.x;\n var tickformat = ax.tickformat;\n var dtChar0 = typeof dtick === 'string' && dtick.charAt(0);\n\n if(hideexp === 'never') {\n // If this is a hover label, then we must *never* hide the exponent\n // for the sake of display, which could give the wrong value by\n // potentially many orders of magnitude. If hideexp was 'never', then\n // it's now succeeded by preventing the other condition from automating\n // this choice. Thus we can unset it so that the axis formatting takes\n // precedence.\n hideexp = '';\n }\n\n if(extraPrecision && (dtChar0 !== 'L')) {\n dtick = 'L3';\n dtChar0 = 'L';\n }\n\n if(tickformat || (dtChar0 === 'L')) {\n out.text = numFormat(Math.pow(10, x), ax, hideexp, extraPrecision);\n } else if(isNumeric(dtick) || ((dtChar0 === 'D') && (Lib.mod(x + 0.01, 1) < 0.1))) {\n var p = Math.round(x);\n var absP = Math.abs(p);\n var exponentFormat = ax.exponentformat;\n if(exponentFormat === 'power' || (isSIFormat(exponentFormat) && beyondSI(p))) {\n if(p === 0) out.text = 1;\n else if(p === 1) out.text = '10';\n else out.text = '10' + (p > 1 ? '' : MINUS_SIGN) + absP + '';\n\n out.fontSize *= 1.25;\n } else if((exponentFormat === 'e' || exponentFormat === 'E') && absP > 2) {\n out.text = '1' + exponentFormat + (p > 0 ? '+' : MINUS_SIGN) + absP;\n } else {\n out.text = numFormat(Math.pow(10, x), ax, '', 'fakehover');\n if(dtick === 'D1' && ax._id.charAt(0) === 'y') {\n out.dy -= out.fontSize / 6;\n }\n }\n } else if(dtChar0 === 'D') {\n out.text = String(Math.round(Math.pow(10, Lib.mod(x, 1))));\n out.fontSize *= 0.75;\n } else throw 'unrecognized dtick ' + String(dtick);\n\n // if 9's are printed on log scale, move the 10's away a bit\n if(ax.dtick === 'D1') {\n var firstChar = String(out.text).charAt(0);\n if(firstChar === '0' || firstChar === '1') {\n if(ax._id.charAt(0) === 'y') {\n out.dx -= out.fontSize / 4;\n } else {\n out.dy += out.fontSize / 2;\n out.dx += (ax.range[1] > ax.range[0] ? 1 : -1) *\n out.fontSize * (x < 0 ? 0.5 : 0.25);\n }\n }\n }\n}\n\nfunction formatCategory(ax, out) {\n var tt = ax._categories[Math.round(out.x)];\n if(tt === undefined) tt = '';\n out.text = String(tt);\n}\n\nfunction formatMultiCategory(ax, out, hover) {\n var v = Math.round(out.x);\n var cats = ax._categories[v] || [];\n var tt = cats[1] === undefined ? '' : String(cats[1]);\n var tt2 = cats[0] === undefined ? '' : String(cats[0]);\n\n if(hover) {\n // TODO is this what we want?\n out.text = tt2 + ' - ' + tt;\n } else {\n // setup for secondary labels\n out.text = tt;\n out.text2 = tt2;\n }\n}\n\nfunction formatLinear(ax, out, hover, extraPrecision, hideexp) {\n if(hideexp === 'never') {\n // If this is a hover label, then we must *never* hide the exponent\n // for the sake of display, which could give the wrong value by\n // potentially many orders of magnitude. If hideexp was 'never', then\n // it's now succeeded by preventing the other condition from automating\n // this choice. Thus we can unset it so that the axis formatting takes\n // precedence.\n hideexp = '';\n } else if(ax.showexponent === 'all' && Math.abs(out.x / ax.dtick) < 1e-6) {\n // don't add an exponent to zero if we're showing all exponents\n // so the only reason you'd show an exponent on zero is if it's the\n // ONLY tick to get an exponent (first or last)\n hideexp = 'hide';\n }\n out.text = numFormat(out.x, ax, hideexp, extraPrecision);\n}\n\nfunction formatAngle(ax, out, hover, extraPrecision, hideexp) {\n if(ax.thetaunit === 'radians' && !hover) {\n var num = out.x / 180;\n\n if(num === 0) {\n out.text = '0';\n } else {\n var frac = num2frac(num);\n\n if(frac[1] >= 100) {\n out.text = numFormat(Lib.deg2rad(out.x), ax, hideexp, extraPrecision);\n } else {\n var isNeg = out.x < 0;\n\n if(frac[1] === 1) {\n if(frac[0] === 1) out.text = 'π';\n else out.text = frac[0] + 'π';\n } else {\n out.text = [\n '', frac[0], '',\n '⁄',\n '', frac[1], '',\n 'π'\n ].join('');\n }\n\n if(isNeg) out.text = MINUS_SIGN + out.text;\n }\n }\n } else {\n out.text = numFormat(out.x, ax, hideexp, extraPrecision);\n }\n}\n\n// inspired by\n// https://github.com/yisibl/num2fraction/blob/master/index.js\nfunction num2frac(num) {\n function almostEq(a, b) {\n return Math.abs(a - b) <= 1e-6;\n }\n\n function findGCD(a, b) {\n return almostEq(b, 0) ? a : findGCD(b, a % b);\n }\n\n function findPrecision(n) {\n var e = 1;\n while(!almostEq(Math.round(n * e) / e, n)) {\n e *= 10;\n }\n return e;\n }\n\n var precision = findPrecision(num);\n var number = num * precision;\n var gcd = Math.abs(findGCD(number, precision));\n\n return [\n // numerator\n Math.round(number / gcd),\n // denominator\n Math.round(precision / gcd)\n ];\n}\n\n// format a number (tick value) according to the axis settings\n// new, more reliable procedure than d3.round or similar:\n// add half the rounding increment, then stringify and truncate\n// also automatically switch to sci. notation\nvar SIPREFIXES = ['f', 'p', 'n', 'μ', 'm', '', 'k', 'M', 'G', 'T'];\n\nfunction isSIFormat(exponentFormat) {\n return exponentFormat === 'SI' || exponentFormat === 'B';\n}\n\n// are we beyond the range of common SI prefixes?\n// 10^-16 -> 1x10^-16\n// 10^-15 -> 1f\n// ...\n// 10^14 -> 100T\n// 10^15 -> 1x10^15\n// 10^16 -> 1x10^16\nfunction beyondSI(exponent) {\n return exponent > 14 || exponent < -15;\n}\n\nfunction numFormat(v, ax, fmtoverride, hover) {\n var isNeg = v < 0;\n // max number of digits past decimal point to show\n var tickRound = ax._tickround;\n var exponentFormat = fmtoverride || ax.exponentformat || 'B';\n var exponent = ax._tickexponent;\n var tickformat = axes.getTickFormat(ax);\n var separatethousands = ax.separatethousands;\n\n // special case for hover: set exponent just for this value, and\n // add a couple more digits of precision over tick labels\n if(hover) {\n // make a dummy axis obj to get the auto rounding and exponent\n var ah = {\n exponentformat: exponentFormat,\n minexponent: ax.minexponent,\n dtick: ax.showexponent === 'none' ? ax.dtick :\n (isNumeric(v) ? Math.abs(v) || 1 : 1),\n // if not showing any exponents, don't change the exponent\n // from what we calculate\n range: ax.showexponent === 'none' ? ax.range.map(ax.r2d) : [0, v || 1]\n };\n autoTickRound(ah);\n tickRound = (Number(ah._tickround) || 0) + 4;\n exponent = ah._tickexponent;\n if(ax.hoverformat) tickformat = ax.hoverformat;\n }\n\n if(tickformat) return ax._numFormat(tickformat)(v).replace(/-/g, MINUS_SIGN);\n\n // 'epsilon' - rounding increment\n var e = Math.pow(10, -tickRound) / 2;\n\n // exponentFormat codes:\n // 'e' (1.2e+6, default)\n // 'E' (1.2E+6)\n // 'SI' (1.2M)\n // 'B' (same as SI except 10^9=B not G)\n // 'none' (1200000)\n // 'power' (1.2x10^6)\n // 'hide' (1.2, use 3rd argument=='hide' to eg\n // only show exponent on last tick)\n if(exponentFormat === 'none') exponent = 0;\n\n // take the sign out, put it back manually at the end\n // - makes cases easier\n v = Math.abs(v);\n if(v < e) {\n // 0 is just 0, but may get exponent if it's the last tick\n v = '0';\n isNeg = false;\n } else {\n v += e;\n // take out a common exponent, if any\n if(exponent) {\n v *= Math.pow(10, -exponent);\n tickRound += exponent;\n }\n // round the mantissa\n if(tickRound === 0) v = String(Math.floor(v));\n else if(tickRound < 0) {\n v = String(Math.round(v));\n v = v.substr(0, v.length + tickRound);\n for(var i = tickRound; i < 0; i++) v += '0';\n } else {\n v = String(v);\n var dp = v.indexOf('.') + 1;\n if(dp) v = v.substr(0, dp + tickRound).replace(/\\.?0+$/, '');\n }\n // insert appropriate decimal point and thousands separator\n v = Lib.numSeparate(v, ax._separators, separatethousands);\n }\n\n // add exponent\n if(exponent && exponentFormat !== 'hide') {\n if(isSIFormat(exponentFormat) && beyondSI(exponent)) exponentFormat = 'power';\n\n var signedExponent;\n if(exponent < 0) signedExponent = MINUS_SIGN + -exponent;\n else if(exponentFormat !== 'power') signedExponent = '+' + exponent;\n else signedExponent = String(exponent);\n\n if(exponentFormat === 'e' || exponentFormat === 'E') {\n v += exponentFormat + signedExponent;\n } else if(exponentFormat === 'power') {\n v += '×10' + signedExponent + '';\n } else if(exponentFormat === 'B' && exponent === 9) {\n v += 'B';\n } else if(isSIFormat(exponentFormat)) {\n v += SIPREFIXES[exponent / 3 + 5];\n }\n }\n\n // put sign back in and return\n // replace standard minus character (which is technically a hyphen)\n // with a true minus sign\n if(isNeg) return MINUS_SIGN + v;\n return v;\n}\n\naxes.getTickFormat = function(ax) {\n var i;\n\n function convertToMs(dtick) {\n return typeof dtick !== 'string' ? dtick : Number(dtick.replace('M', '')) * ONEAVGMONTH;\n }\n\n function compareLogTicks(left, right) {\n var priority = ['L', 'D'];\n if(typeof left === typeof right) {\n if(typeof left === 'number') {\n return left - right;\n } else {\n var leftPriority = priority.indexOf(left.charAt(0));\n var rightPriority = priority.indexOf(right.charAt(0));\n if(leftPriority === rightPriority) {\n return Number(left.replace(/(L|D)/g, '')) - Number(right.replace(/(L|D)/g, ''));\n } else {\n return leftPriority - rightPriority;\n }\n }\n } else {\n return typeof left === 'number' ? 1 : -1;\n }\n }\n\n function isProperStop(dtick, range, convert) {\n var convertFn = convert || function(x) { return x;};\n var leftDtick = range[0];\n var rightDtick = range[1];\n return ((!leftDtick && typeof leftDtick !== 'number') || convertFn(leftDtick) <= convertFn(dtick)) &&\n ((!rightDtick && typeof rightDtick !== 'number') || convertFn(rightDtick) >= convertFn(dtick));\n }\n\n function isProperLogStop(dtick, range) {\n var isLeftDtickNull = range[0] === null;\n var isRightDtickNull = range[1] === null;\n var isDtickInRangeLeft = compareLogTicks(dtick, range[0]) >= 0;\n var isDtickInRangeRight = compareLogTicks(dtick, range[1]) <= 0;\n return (isLeftDtickNull || isDtickInRangeLeft) && (isRightDtickNull || isDtickInRangeRight);\n }\n\n var tickstop, stopi;\n if(ax.tickformatstops && ax.tickformatstops.length > 0) {\n switch(ax.type) {\n case 'date':\n case 'linear': {\n for(i = 0; i < ax.tickformatstops.length; i++) {\n stopi = ax.tickformatstops[i];\n if(stopi.enabled && isProperStop(ax.dtick, stopi.dtickrange, convertToMs)) {\n tickstop = stopi;\n break;\n }\n }\n break;\n }\n case 'log': {\n for(i = 0; i < ax.tickformatstops.length; i++) {\n stopi = ax.tickformatstops[i];\n if(stopi.enabled && isProperLogStop(ax.dtick, stopi.dtickrange)) {\n tickstop = stopi;\n break;\n }\n }\n break;\n }\n default:\n }\n }\n return tickstop ? tickstop.value : ax.tickformat;\n};\n\n// getSubplots - extract all subplot IDs we need\n// as an array of items like 'xy', 'x2y', 'x2y2'...\n// sorted by x (x,x2,x3...) then y\n// optionally restrict to only subplots containing axis object ax\n//\n// NOTE: this is currently only used OUTSIDE plotly.js (toolpanel, webapp)\n// ideally we get rid of it there (or just copy this there) and remove it here\naxes.getSubplots = function(gd, ax) {\n var subplotObj = gd._fullLayout._subplots;\n var allSubplots = subplotObj.cartesian.concat(subplotObj.gl2d || []);\n\n var out = ax ? axes.findSubplotsWithAxis(allSubplots, ax) : allSubplots;\n\n out.sort(function(a, b) {\n var aParts = a.substr(1).split('y');\n var bParts = b.substr(1).split('y');\n\n if(aParts[0] === bParts[0]) return +aParts[1] - +bParts[1];\n return +aParts[0] - +bParts[0];\n });\n\n return out;\n};\n\n// find all subplots with axis 'ax'\n// NOTE: this is only used in axes.getSubplots (only used outside plotly.js) and\n// gl2d/convert (where it restricts axis subplots to only those with gl2d)\naxes.findSubplotsWithAxis = function(subplots, ax) {\n var axMatch = new RegExp(\n (ax._id.charAt(0) === 'x') ? ('^' + ax._id + 'y') : (ax._id + '$')\n );\n var subplotsWithAx = [];\n\n for(var i = 0; i < subplots.length; i++) {\n var sp = subplots[i];\n if(axMatch.test(sp)) subplotsWithAx.push(sp);\n }\n\n return subplotsWithAx;\n};\n\n// makeClipPaths: prepare clipPaths for all single axes and all possible xy pairings\naxes.makeClipPaths = function(gd) {\n var fullLayout = gd._fullLayout;\n\n // for more info: https://github.com/plotly/plotly.js/issues/2595\n if(fullLayout._hasOnlyLargeSploms) return;\n\n var fullWidth = {_offset: 0, _length: fullLayout.width, _id: ''};\n var fullHeight = {_offset: 0, _length: fullLayout.height, _id: ''};\n var xaList = axes.list(gd, 'x', true);\n var yaList = axes.list(gd, 'y', true);\n var clipList = [];\n var i, j;\n\n for(i = 0; i < xaList.length; i++) {\n clipList.push({x: xaList[i], y: fullHeight});\n for(j = 0; j < yaList.length; j++) {\n if(i === 0) clipList.push({x: fullWidth, y: yaList[j]});\n clipList.push({x: xaList[i], y: yaList[j]});\n }\n }\n\n // selectors don't work right with camelCase tags,\n // have to use class instead\n // https://groups.google.com/forum/#!topic/d3-js/6EpAzQ2gU9I\n var axClips = fullLayout._clips.selectAll('.axesclip')\n .data(clipList, function(d) { return d.x._id + d.y._id; });\n\n axClips.enter().append('clipPath')\n .classed('axesclip', true)\n .attr('id', function(d) { return 'clip' + fullLayout._uid + d.x._id + d.y._id; })\n .append('rect');\n\n axClips.exit().remove();\n\n axClips.each(function(d) {\n d3.select(this).select('rect').attr({\n x: d.x._offset || 0,\n y: d.y._offset || 0,\n width: d.x._length || 1,\n height: d.y._length || 1\n });\n });\n};\n\n/**\n * Main multi-axis drawing routine!\n *\n * @param {DOM element} gd : graph div\n * @param {string or array of strings} arg : polymorphic argument\n * @param {object} opts:\n * - @param {boolean} skipTitle : optional flag to skip axis title draw/update\n *\n * Signature 1: Axes.draw(gd, 'redraw')\n * use this to clear and redraw all axes on graph\n *\n * Signature 2: Axes.draw(gd, '')\n * use this to draw all axes on graph w/o the selectAll().remove()\n * of the 'redraw' signature\n *\n * Signature 3: Axes.draw(gd, [axId, axId2, ...])\n * where the items are axis id string,\n * use this to update multiple axes in one call\n *\n * N.B draw updates:\n * - ax._r (stored range for use by zoom/pan)\n * - ax._rl (stored linearized range for use by zoom/pan)\n */\naxes.draw = function(gd, arg, opts) {\n var fullLayout = gd._fullLayout;\n\n if(arg === 'redraw') {\n fullLayout._paper.selectAll('g.subplot').each(function(d) {\n var id = d[0];\n var plotinfo = fullLayout._plots[id];\n if(plotinfo) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick').remove();\n plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick').remove();\n plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick2').remove();\n plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick2').remove();\n plotinfo.xaxislayer.selectAll('.' + xa._id + 'divider').remove();\n plotinfo.yaxislayer.selectAll('.' + ya._id + 'divider').remove();\n\n if(plotinfo.minorGridlayer) plotinfo.minorGridlayer.selectAll('path').remove();\n if(plotinfo.gridlayer) plotinfo.gridlayer.selectAll('path').remove();\n if(plotinfo.zerolinelayer) plotinfo.zerolinelayer.selectAll('path').remove();\n\n fullLayout._infolayer.select('.g-' + xa._id + 'title').remove();\n fullLayout._infolayer.select('.g-' + ya._id + 'title').remove();\n }\n });\n }\n\n var axList = (!arg || arg === 'redraw') ? axes.listIds(gd) : arg;\n\n return Lib.syncOrAsync(axList.map(function(axId) {\n return function() {\n if(!axId) return;\n\n var ax = axes.getFromId(gd, axId);\n var axDone = axes.drawOne(gd, ax, opts);\n\n ax._r = ax.range.slice();\n ax._rl = Lib.simpleMap(ax._r, ax.r2l);\n\n return axDone;\n };\n }));\n};\n\n/**\n * Draw one cartesian axis\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * @param {object} opts\n * - @param {boolean} skipTitle (set to true to skip axis title draw call)\n *\n * Depends on:\n * - ax._mainSubplot (from linkSubplots)\n * - ax._mainAxis\n * - ax._anchorAxis\n * - ax._subplotsWith\n * - ax._counterDomainMin, ax._counterDomainMax (optionally, from linkSubplots)\n * - ax._tickAngles (on redraw only, old value relinked during supplyDefaults)\n * - ax._mainLinePosition (from lsInner)\n * - ax._mainMirrorPosition\n * - ax._linepositions\n *\n * Fills in:\n * - ax._vals:\n * - ax._gridVals:\n * - ax._selections:\n * - ax._tickAngles:\n * - ax._depth (when required only):\n * - and calls ax.setScale\n */\naxes.drawOne = function(gd, ax, opts) {\n opts = opts || {};\n\n var i, sp, plotinfo;\n\n ax.setScale();\n\n var fullLayout = gd._fullLayout;\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var counterLetter = axes.counterLetter(axId);\n var mainPlotinfo = fullLayout._plots[ax._mainSubplot];\n\n // this happens when updating matched group with 'missing' axes\n if(!mainPlotinfo) return;\n\n var mainAxLayer = mainPlotinfo[axLetter + 'axislayer'];\n var mainLinePosition = ax._mainLinePosition;\n var mainMirrorPosition = ax._mainMirrorPosition;\n\n var vals = ax._vals = axes.calcTicks(ax);\n\n // Add a couple of axis properties that should cause us to recreate\n // elements. Used in d3 data function.\n var axInfo = [ax.mirror, mainLinePosition, mainMirrorPosition].join('_');\n for(i = 0; i < vals.length; i++) {\n vals[i].axInfo = axInfo;\n }\n\n // stash selections to avoid DOM queries e.g.\n // - stash tickLabels selection, so that drawTitle can use it to scoot title\n ax._selections = {};\n // stash tick angle (including the computed 'auto' values) per tick-label class\n // linkup 'previous' tick angles on redraws\n if(ax._tickAngles) ax._prevTickAngles = ax._tickAngles;\n ax._tickAngles = {};\n // measure [in px] between axis position and outward-most part of bounding box\n // (touching either the tick label or ticks)\n // depth can be expansive to compute, so we only do so when required\n ax._depth = null;\n\n // calcLabelLevelBbox can be expensive,\n // so make sure to not call it twice during the same Axes.drawOne call\n // by stashing label-level bounding boxes per tick-label class\n var llbboxes = {};\n function getLabelLevelBbox(suffix) {\n var cls = axId + (suffix || 'tick');\n if(!llbboxes[cls]) llbboxes[cls] = calcLabelLevelBbox(ax, cls);\n return llbboxes[cls];\n }\n\n if(!ax.visible) return;\n\n var transTickFn = axes.makeTransTickFn(ax);\n var transTickLabelFn = axes.makeTransTickLabelFn(ax);\n\n var tickVals;\n // We remove zero lines, grid lines, and inside ticks if they're within 1px of the end\n // The key case here is removing zero lines when the axis bound is zero\n var valsClipped;\n\n var insideTicks = ax.ticks === 'inside';\n var outsideTicks = ax.ticks === 'outside';\n\n if(ax.tickson === 'boundaries') {\n var boundaryVals = getBoundaryVals(ax, vals);\n valsClipped = axes.clipEnds(ax, boundaryVals);\n tickVals = insideTicks ? valsClipped : boundaryVals;\n } else {\n valsClipped = axes.clipEnds(ax, vals);\n tickVals = (insideTicks && ax.ticklabelmode !== 'period') ? valsClipped : vals;\n }\n\n var gridVals = ax._gridVals = valsClipped;\n var dividerVals = getDividerVals(ax, vals);\n\n if(!fullLayout._hasOnlyLargeSploms) {\n var subplotsWithAx = ax._subplotsWith;\n\n // keep track of which subplots (by main counter axis) we've already\n // drawn grids for, so we don't overdraw overlaying subplots\n var finishedGrids = {};\n\n for(i = 0; i < subplotsWithAx.length; i++) {\n sp = subplotsWithAx[i];\n plotinfo = fullLayout._plots[sp];\n\n var counterAxis = plotinfo[counterLetter + 'axis'];\n var mainCounterID = counterAxis._mainAxis._id;\n if(finishedGrids[mainCounterID]) continue;\n finishedGrids[mainCounterID] = 1;\n\n var gridPath = axLetter === 'x' ?\n 'M0,' + counterAxis._offset + 'v' + counterAxis._length :\n 'M' + counterAxis._offset + ',0h' + counterAxis._length;\n\n axes.drawGrid(gd, ax, {\n vals: gridVals,\n counterAxis: counterAxis,\n layer: plotinfo.gridlayer.select('.' + axId),\n minorLayer: plotinfo.minorGridlayer.select('.' + axId),\n path: gridPath,\n transFn: transTickFn\n });\n axes.drawZeroLine(gd, ax, {\n counterAxis: counterAxis,\n layer: plotinfo.zerolinelayer,\n path: gridPath,\n transFn: transTickFn\n });\n }\n }\n\n var tickPath;\n\n var majorTickSigns = axes.getTickSigns(ax);\n var minorTickSigns = axes.getTickSigns(ax, 'minor');\n\n if(ax.ticks || (ax.minor && ax.minor.ticks)) {\n var majorTickPath = axes.makeTickPath(ax, mainLinePosition, majorTickSigns[2]);\n var minorTickPath = axes.makeTickPath(ax, mainLinePosition, minorTickSigns[2], { minor: true });\n\n var mirrorMajorTickPath;\n var mirrorMinorTickPath;\n\n var fullMajorTickPath;\n var fullMinorTickPath;\n\n if(ax._anchorAxis && ax.mirror && ax.mirror !== true) {\n mirrorMajorTickPath = axes.makeTickPath(ax, mainMirrorPosition, majorTickSigns[3]);\n mirrorMinorTickPath = axes.makeTickPath(ax, mainMirrorPosition, minorTickSigns[3], { minor: true });\n\n fullMajorTickPath = majorTickPath + mirrorMajorTickPath;\n fullMinorTickPath = minorTickPath + mirrorMinorTickPath;\n } else {\n mirrorMajorTickPath = '';\n mirrorMinorTickPath = '';\n fullMajorTickPath = majorTickPath;\n fullMinorTickPath = minorTickPath;\n }\n\n if(ax.showdividers && outsideTicks && ax.tickson === 'boundaries') {\n var dividerLookup = {};\n for(i = 0; i < dividerVals.length; i++) {\n dividerLookup[dividerVals[i].x] = 1;\n }\n tickPath = function(d) {\n return dividerLookup[d.x] ? mirrorMajorTickPath : fullMajorTickPath;\n };\n } else {\n tickPath = function(d) {\n return d.minor ? fullMinorTickPath : fullMajorTickPath;\n };\n }\n }\n\n axes.drawTicks(gd, ax, {\n vals: tickVals,\n layer: mainAxLayer,\n path: tickPath,\n transFn: transTickFn\n });\n\n if(ax.mirror === 'allticks') {\n var tickSubplots = Object.keys(ax._linepositions || {});\n\n for(i = 0; i < tickSubplots.length; i++) {\n sp = tickSubplots[i];\n plotinfo = fullLayout._plots[sp];\n // [bottom or left, top or right], free and main are handled above\n var linepositions = ax._linepositions[sp] || [];\n\n var p0 = linepositions[0];\n var p1 = linepositions[1];\n var isMinor = linepositions[2];\n\n var spTickPath =\n axes.makeTickPath(ax, p0,\n isMinor ? majorTickSigns[0] : minorTickSigns[0],\n { minor: isMinor }\n ) +\n axes.makeTickPath(ax, p1,\n isMinor ? majorTickSigns[1] : minorTickSigns[1],\n { minor: isMinor }\n );\n\n axes.drawTicks(gd, ax, {\n vals: tickVals,\n layer: plotinfo[axLetter + 'axislayer'],\n path: spTickPath,\n transFn: transTickFn\n });\n }\n }\n\n var seq = [];\n\n // tick labels - for now just the main labels.\n // TODO: mirror labels, esp for subplots\n\n seq.push(function() {\n return axes.drawLabels(gd, ax, {\n vals: vals,\n layer: mainAxLayer,\n plotinfo: plotinfo,\n transFn: transTickLabelFn,\n labelFns: axes.makeLabelFns(ax, mainLinePosition)\n });\n });\n\n if(ax.type === 'multicategory') {\n var pad = {x: 2, y: 10}[axLetter];\n\n seq.push(function() {\n var bboxKey = {x: 'height', y: 'width'}[axLetter];\n var standoff = getLabelLevelBbox()[bboxKey] + pad +\n (ax._tickAngles[axId + 'tick'] ? ax.tickfont.size * LINE_SPACING : 0);\n\n return axes.drawLabels(gd, ax, {\n vals: getSecondaryLabelVals(ax, vals),\n layer: mainAxLayer,\n cls: axId + 'tick2',\n repositionOnUpdate: true,\n secondary: true,\n transFn: transTickFn,\n labelFns: axes.makeLabelFns(ax, mainLinePosition + standoff * majorTickSigns[4])\n });\n });\n\n seq.push(function() {\n ax._depth = majorTickSigns[4] * (getLabelLevelBbox('tick2')[ax.side] - mainLinePosition);\n\n return drawDividers(gd, ax, {\n vals: dividerVals,\n layer: mainAxLayer,\n path: axes.makeTickPath(ax, mainLinePosition, majorTickSigns[4], { len: ax._depth }),\n transFn: transTickFn\n });\n });\n } else if(ax.title.hasOwnProperty('standoff')) {\n seq.push(function() {\n ax._depth = majorTickSigns[4] * (getLabelLevelBbox()[ax.side] - mainLinePosition);\n });\n }\n\n var hasRangeSlider = Registry.getComponentMethod('rangeslider', 'isVisible')(ax);\n\n seq.push(function() {\n var s = ax.side.charAt(0);\n var sMirror = OPPOSITE_SIDE[ax.side].charAt(0);\n var pos = axes.getPxPosition(gd, ax);\n var outsideTickLen = outsideTicks ? ax.ticklen : 0;\n var llbbox;\n\n var push;\n var mirrorPush;\n var rangeSliderPush;\n\n if(ax.automargin || hasRangeSlider) {\n if(ax.type === 'multicategory') {\n llbbox = getLabelLevelBbox('tick2');\n } else {\n llbbox = getLabelLevelBbox();\n if(axLetter === 'x' && s === 'b') {\n ax._depth = Math.max(llbbox.width > 0 ? llbbox.bottom - pos : 0, outsideTickLen);\n }\n }\n }\n\n if(ax.automargin) {\n push = {x: 0, y: 0, r: 0, l: 0, t: 0, b: 0};\n var domainIndices = [0, 1];\n\n if(axLetter === 'x') {\n if(s === 'b') {\n push[s] = ax._depth;\n } else {\n push[s] = ax._depth = Math.max(llbbox.width > 0 ? pos - llbbox.top : 0, outsideTickLen);\n domainIndices.reverse();\n }\n\n if(llbbox.width > 0) {\n var rExtra = llbbox.right - (ax._offset + ax._length);\n if(rExtra > 0) {\n push.xr = 1;\n push.r = rExtra;\n }\n var lExtra = ax._offset - llbbox.left;\n if(lExtra > 0) {\n push.xl = 0;\n push.l = lExtra;\n }\n }\n } else {\n if(s === 'l') {\n push[s] = ax._depth = Math.max(llbbox.height > 0 ? pos - llbbox.left : 0, outsideTickLen);\n } else {\n push[s] = ax._depth = Math.max(llbbox.height > 0 ? llbbox.right - pos : 0, outsideTickLen);\n domainIndices.reverse();\n }\n\n if(llbbox.height > 0) {\n var bExtra = llbbox.bottom - (ax._offset + ax._length);\n if(bExtra > 0) {\n push.yb = 0;\n push.b = bExtra;\n }\n var tExtra = ax._offset - llbbox.top;\n if(tExtra > 0) {\n push.yt = 1;\n push.t = tExtra;\n }\n }\n }\n\n push[counterLetter] = ax.anchor === 'free' ?\n ax.position :\n ax._anchorAxis.domain[domainIndices[0]];\n\n if(ax.title.text !== fullLayout._dfltTitle[axLetter]) {\n push[s] += approxTitleDepth(ax) + (ax.title.standoff || 0);\n }\n\n if(ax.mirror && ax.anchor !== 'free') {\n mirrorPush = {x: 0, y: 0, r: 0, l: 0, t: 0, b: 0};\n\n mirrorPush[sMirror] = ax.linewidth;\n if(ax.mirror && ax.mirror !== true) mirrorPush[sMirror] += outsideTickLen;\n\n if(ax.mirror === true || ax.mirror === 'ticks') {\n mirrorPush[counterLetter] = ax._anchorAxis.domain[domainIndices[1]];\n } else if(ax.mirror === 'all' || ax.mirror === 'allticks') {\n mirrorPush[counterLetter] = [ax._counterDomainMin, ax._counterDomainMax][domainIndices[1]];\n }\n }\n }\n\n if(hasRangeSlider) {\n rangeSliderPush = Registry.getComponentMethod('rangeslider', 'autoMarginOpts')(gd, ax);\n }\n\n if(typeof ax.automargin === 'string') {\n filterPush(push, ax.automargin);\n filterPush(mirrorPush, ax.automargin);\n }\n\n Plots.autoMargin(gd, axAutoMarginID(ax), push);\n Plots.autoMargin(gd, axMirrorAutoMarginID(ax), mirrorPush);\n Plots.autoMargin(gd, rangeSliderAutoMarginID(ax), rangeSliderPush);\n });\n\n if(!opts.skipTitle &&\n !(hasRangeSlider && ax.side === 'bottom')\n ) {\n seq.push(function() { return drawTitle(gd, ax); });\n }\n\n return Lib.syncOrAsync(seq);\n};\n\nfunction filterPush(push, automargin) {\n if(!push) return;\n\n var keepMargin = Object.keys(MARGIN_MAPPING).reduce(function(data, nextKey) {\n if(automargin.indexOf(nextKey) !== -1) {\n MARGIN_MAPPING[nextKey].forEach(function(key) { data[key] = 1;});\n }\n return data;\n }, {});\n Object.keys(push).forEach(function(key) {\n if(!keepMargin[key]) {\n if(key.length === 1) push[key] = 0;\n else delete push[key];\n }\n });\n}\n\nfunction getBoundaryVals(ax, vals) {\n var out = [];\n var i;\n\n // boundaryVals are never used for labels;\n // no need to worry about the other tickTextObj keys\n var _push = function(d, bndIndex) {\n var xb = d.xbnd[bndIndex];\n if(xb !== null) {\n out.push(Lib.extendFlat({}, d, {x: xb}));\n }\n };\n\n if(vals.length) {\n for(i = 0; i < vals.length; i++) {\n _push(vals[i], 0);\n }\n _push(vals[i - 1], 1);\n }\n\n return out;\n}\n\nfunction getSecondaryLabelVals(ax, vals) {\n var out = [];\n var lookup = {};\n\n for(var i = 0; i < vals.length; i++) {\n var d = vals[i];\n if(lookup[d.text2]) {\n lookup[d.text2].push(d.x);\n } else {\n lookup[d.text2] = [d.x];\n }\n }\n\n for(var k in lookup) {\n out.push(tickTextObj(ax, Lib.interp(lookup[k], 0.5), k));\n }\n\n return out;\n}\n\nfunction getDividerVals(ax, vals) {\n var out = [];\n var i, current;\n\n var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);\n\n // never used for labels;\n // no need to worry about the other tickTextObj keys\n var _push = function(d, bndIndex) {\n var xb = d.xbnd[bndIndex];\n if(xb !== null) {\n out.push(Lib.extendFlat({}, d, {x: xb}));\n }\n };\n\n if(ax.showdividers && vals.length) {\n for(i = 0; i < vals.length; i++) {\n var d = vals[i];\n if(d.text2 !== current) {\n _push(d, reversed ? 1 : 0);\n }\n current = d.text2;\n }\n _push(vals[i - 1], reversed ? 0 : 1);\n }\n\n return out;\n}\n\nfunction calcLabelLevelBbox(ax, cls) {\n var top, bottom;\n var left, right;\n\n if(ax._selections[cls].size()) {\n top = Infinity;\n bottom = -Infinity;\n left = Infinity;\n right = -Infinity;\n ax._selections[cls].each(function() {\n var thisLabel = selectTickLabel(this);\n // Use parent node , to make Drawing.bBox\n // retrieve a bbox computed with transform info\n //\n // To improve perf, it would be nice to use `thisLabel.node()`\n // (like in fixLabelOverlaps) instead and use Axes.getPxPosition\n // together with the makeLabelFns outputs and `tickangle`\n // to compute one bbox per (tick value x tick style)\n var bb = Drawing.bBox(thisLabel.node().parentNode);\n top = Math.min(top, bb.top);\n bottom = Math.max(bottom, bb.bottom);\n left = Math.min(left, bb.left);\n right = Math.max(right, bb.right);\n });\n } else {\n top = 0;\n bottom = 0;\n left = 0;\n right = 0;\n }\n\n return {\n top: top,\n bottom: bottom,\n left: left,\n right: right,\n height: bottom - top,\n width: right - left\n };\n}\n\n/**\n * Which direction do the 'ax.side' values, and free ticks go?\n *\n * @param {object} ax (full) axis object\n * - {string} _id (starting with 'x' or 'y')\n * - {string} side\n * - {string} ticks\n * @return {array} all entries are either -1 or 1\n * - [0]: sign for top/right ticks (i.e. negative SVG direction)\n * - [1]: sign for bottom/left ticks (i.e. positive SVG direction)\n * - [2]: sign for ticks corresponding to 'ax.side'\n * - [3]: sign for ticks mirroring 'ax.side'\n * - [4]: sign of arrow starting at axis pointing towards margin\n */\naxes.getTickSigns = function(ax, minor) {\n var axLetter = ax._id.charAt(0);\n var sideOpposite = {x: 'top', y: 'right'}[axLetter];\n var main = ax.side === sideOpposite ? 1 : -1;\n var out = [-1, 1, main, -main];\n // then we flip if outside XOR y axis\n\n var ticks = minor ? (ax.minor || {}).ticks : ax.ticks;\n if((ticks !== 'inside') === (axLetter === 'x')) {\n out = out.map(function(v) { return -v; });\n }\n // independent of `ticks`; do not flip this one\n if(ax.side) {\n out.push({l: -1, t: -1, r: 1, b: 1}[ax.side.charAt(0)]);\n }\n return out;\n};\n\n/**\n * Make axis translate transform function\n *\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {number} _offset\n * - {fn} l2p\n * @return {fn} function of calcTicks items\n */\naxes.makeTransTickFn = function(ax) {\n return ax._id.charAt(0) === 'x' ?\n function(d) { return strTranslate(ax._offset + ax.l2p(d.x), 0); } :\n function(d) { return strTranslate(0, ax._offset + ax.l2p(d.x)); };\n};\n\naxes.makeTransTickLabelFn = function(ax) {\n var uv = getTickLabelUV(ax);\n var u = uv[0];\n var v = uv[1];\n\n return ax._id.charAt(0) === 'x' ?\n function(d) {\n return strTranslate(\n u + ax._offset + ax.l2p(getPosX(d)),\n v\n );\n } :\n function(d) {\n return strTranslate(\n v,\n u + ax._offset + ax.l2p(getPosX(d))\n );\n };\n};\n\nfunction getPosX(d) {\n return d.periodX !== undefined ? d.periodX : d.x;\n}\n\n// u is a shift along the axis,\n// v is a shift perpendicular to the axis\nfunction getTickLabelUV(ax) {\n var ticklabelposition = ax.ticklabelposition || '';\n var has = function(str) {\n return ticklabelposition.indexOf(str) !== -1;\n };\n\n var isTop = has('top');\n var isLeft = has('left');\n var isRight = has('right');\n var isBottom = has('bottom');\n var isInside = has('inside');\n\n var isAligned = isBottom || isLeft || isTop || isRight;\n\n // early return\n if(!isAligned && !isInside) return [0, 0];\n\n var side = ax.side;\n\n var u = isAligned ? (ax.tickwidth || 0) / 2 : 0;\n var v = TEXTPAD;\n\n var fontSize = ax.tickfont ? ax.tickfont.size : 12;\n if(isBottom || isTop) {\n u += fontSize * CAP_SHIFT;\n v += (ax.linewidth || 0) / 2;\n }\n if(isLeft || isRight) {\n u += (ax.linewidth || 0) / 2;\n v += TEXTPAD;\n }\n if(isInside && side === 'top') {\n v -= fontSize * (1 - CAP_SHIFT);\n }\n\n if(isLeft || isTop) u = -u;\n if(side === 'bottom' || side === 'right') v = -v;\n\n return [\n isAligned ? u : 0,\n isInside ? v : 0\n ];\n}\n\n/**\n * Make axis tick path string\n *\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {number} ticklen\n * - {number} linewidth\n * @param {number} shift along direction of ticklen\n * @param {1 or -1} sgn tick sign\n * @param {object} opts\n * - {number (optional)} len tick length\n * @return {string}\n */\naxes.makeTickPath = function(ax, shift, sgn, opts) {\n if(!opts) opts = {};\n var minor = opts.minor;\n if(minor && !ax.minor) return '';\n\n var len = opts.len !== undefined ? opts.len :\n minor ? ax.minor.ticklen : ax.ticklen;\n\n var axLetter = ax._id.charAt(0);\n var pad = (ax.linewidth || 1) / 2;\n\n return axLetter === 'x' ?\n 'M0,' + (shift + pad * sgn) + 'v' + (len * sgn) :\n 'M' + (shift + pad * sgn) + ',0h' + (len * sgn);\n};\n\n/**\n * Make axis tick label x, y and anchor functions\n *\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} ticks\n * - {number} ticklen\n * - {string} side\n * - {number} linewidth\n * - {number} tickfont.size\n * - {boolean} showline\n * @param {number} shift\n * @param {number} angle [in degrees] ...\n * @return {object}\n * - {fn} xFn\n * - {fn} yFn\n * - {fn} anchorFn\n * - {fn} heightFn\n * - {number} labelStandoff (gap parallel to ticks)\n * - {number} labelShift (gap perpendicular to ticks)\n */\naxes.makeLabelFns = function(ax, shift, angle) {\n var ticklabelposition = ax.ticklabelposition || '';\n var has = function(str) {\n return ticklabelposition.indexOf(str) !== -1;\n };\n\n var isTop = has('top');\n var isLeft = has('left');\n var isRight = has('right');\n var isBottom = has('bottom');\n var isAligned = isBottom || isLeft || isTop || isRight;\n\n var insideTickLabels = has('inside');\n var labelsOverTicks =\n (ticklabelposition === 'inside' && ax.ticks === 'inside') ||\n (!insideTickLabels && ax.ticks === 'outside' && ax.tickson !== 'boundaries');\n\n var labelStandoff = 0;\n var labelShift = 0;\n\n var tickLen = labelsOverTicks ? ax.ticklen : 0;\n if(insideTickLabels) {\n tickLen *= -1;\n } else if(isAligned) {\n tickLen = 0;\n }\n\n if(labelsOverTicks) {\n labelStandoff += tickLen;\n if(angle) {\n var rad = Lib.deg2rad(angle);\n labelStandoff = tickLen * Math.cos(rad) + 1;\n labelShift = tickLen * Math.sin(rad);\n }\n }\n\n if(ax.showticklabels && (labelsOverTicks || ax.showline)) {\n labelStandoff += 0.2 * ax.tickfont.size;\n }\n labelStandoff += (ax.linewidth || 1) / 2 * (insideTickLabels ? -1 : 1);\n\n var out = {\n labelStandoff: labelStandoff,\n labelShift: labelShift\n };\n\n var x0, y0, ff, flipIt;\n var xQ = 0;\n\n var side = ax.side;\n var axLetter = ax._id.charAt(0);\n var tickangle = ax.tickangle;\n var endSide;\n if(axLetter === 'x') {\n endSide =\n (!insideTickLabels && side === 'bottom') ||\n (insideTickLabels && side === 'top');\n\n flipIt = endSide ? 1 : -1;\n if(insideTickLabels) flipIt *= -1;\n\n x0 = labelShift * flipIt;\n y0 = shift + labelStandoff * flipIt;\n ff = endSide ? 1 : -0.2;\n if(Math.abs(tickangle) === 90) {\n if(insideTickLabels) {\n ff += MID_SHIFT;\n } else {\n if(tickangle === -90 && side === 'bottom') {\n ff = CAP_SHIFT;\n } else if(tickangle === 90 && side === 'top') {\n ff = MID_SHIFT;\n } else {\n ff = 0.5;\n }\n }\n\n xQ = (MID_SHIFT / 2) * (tickangle / 90);\n }\n\n out.xFn = function(d) { return d.dx + x0 + xQ * d.fontSize; };\n out.yFn = function(d) { return d.dy + y0 + d.fontSize * ff; };\n out.anchorFn = function(d, a) {\n if(isAligned) {\n if(isLeft) return 'end';\n if(isRight) return 'start';\n }\n\n if(!isNumeric(a) || a === 0 || a === 180) {\n return 'middle';\n }\n\n return ((a * flipIt < 0) !== insideTickLabels) ? 'end' : 'start';\n };\n out.heightFn = function(d, a, h) {\n return (a < -60 || a > 60) ? -0.5 * h :\n ((ax.side === 'top') !== insideTickLabels) ? -h :\n 0;\n };\n } else if(axLetter === 'y') {\n endSide =\n (!insideTickLabels && side === 'left') ||\n (insideTickLabels && side === 'right');\n\n flipIt = endSide ? 1 : -1;\n if(insideTickLabels) flipIt *= -1;\n\n x0 = labelStandoff;\n y0 = labelShift * flipIt;\n ff = 0;\n if(!insideTickLabels && Math.abs(tickangle) === 90) {\n if(\n (tickangle === -90 && side === 'left') ||\n (tickangle === 90 && side === 'right')\n ) {\n ff = CAP_SHIFT;\n } else {\n ff = 0.5;\n }\n }\n\n if(insideTickLabels) {\n var ang = isNumeric(tickangle) ? +tickangle : 0;\n if(ang !== 0) {\n var rA = Lib.deg2rad(ang);\n xQ = Math.abs(Math.sin(rA)) * CAP_SHIFT * flipIt;\n ff = 0;\n }\n }\n\n out.xFn = function(d) { return d.dx + shift - (x0 + d.fontSize * ff) * flipIt + xQ * d.fontSize; };\n out.yFn = function(d) { return d.dy + y0 + d.fontSize * MID_SHIFT; };\n out.anchorFn = function(d, a) {\n if(isNumeric(a) && Math.abs(a) === 90) {\n return 'middle';\n }\n\n return endSide ? 'end' : 'start';\n };\n out.heightFn = function(d, a, h) {\n if(ax.side === 'right') a *= -1;\n\n return a < -30 ? -h :\n a < 30 ? -0.5 * h :\n 0;\n };\n }\n\n return out;\n};\n\nfunction tickDataFn(d) {\n return [d.text, d.x, d.axInfo, d.font, d.fontSize, d.fontColor].join('_');\n}\n\n/**\n * Draw axis ticks\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} ticks\n * - {number} linewidth\n * - {string} tickcolor\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {string or fn} path\n * - {fn} transFn\n * - {boolean} crisp (set to false to unset crisp-edge SVG rendering)\n */\naxes.drawTicks = function(gd, ax, opts) {\n opts = opts || {};\n\n var cls = ax._id + 'tick';\n\n var vals = []\n .concat(ax.minor && ax.minor.ticks ?\n // minor vals\n opts.vals.filter(function(d) { return d.minor && !d.noTick; }) :\n []\n )\n .concat(ax.ticks ?\n // major vals\n opts.vals.filter(function(d) { return !d.minor && !d.noTick; }) :\n []\n );\n\n var ticks = opts.layer.selectAll('path.' + cls)\n .data(vals, tickDataFn);\n\n ticks.exit().remove();\n\n ticks.enter().append('path')\n .classed(cls, 1)\n .classed('ticks', 1)\n .classed('crisp', opts.crisp !== false)\n .each(function(d) {\n return Color.stroke(d3.select(this), d.minor ? ax.minor.tickcolor : ax.tickcolor);\n })\n .style('stroke-width', function(d) {\n return Drawing.crispRound(\n gd,\n d.minor ? ax.minor.tickwidth : ax.tickwidth,\n 1\n ) + 'px';\n })\n .attr('d', opts.path)\n .style('display', null); // visible\n\n hideCounterAxisInsideTickLabels(ax, [TICK_PATH]);\n\n ticks.attr('transform', opts.transFn);\n};\n\n/**\n * Draw axis grid\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {boolean} showgrid\n * - {string} gridcolor\n * - {string} gridwidth\n * - {string} griddash\n * - {boolean} zeroline\n * - {string} type\n * - {string} dtick\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {object} counterAxis (full axis object corresponding to counter axis)\n * optional - only required if this axis supports zero lines\n * - {string or fn} path\n * - {fn} transFn\n * - {boolean} crisp (set to false to unset crisp-edge SVG rendering)\n */\naxes.drawGrid = function(gd, ax, opts) {\n opts = opts || {};\n\n var cls = ax._id + 'grid';\n\n var hasMinor = ax.minor && ax.minor.showgrid;\n var minorVals = hasMinor ? opts.vals.filter(function(d) { return d.minor; }) : [];\n var majorVals = ax.showgrid ? opts.vals.filter(function(d) { return !d.minor; }) : [];\n\n var counterAx = opts.counterAxis;\n if(counterAx && axes.shouldShowZeroLine(gd, ax, counterAx)) {\n var isArrayMode = ax.tickmode === 'array';\n for(var i = 0; i < majorVals.length; i++) {\n var xi = majorVals[i].x;\n if(isArrayMode ? !xi : (Math.abs(xi) < ax.dtick / 100)) {\n majorVals = majorVals.slice(0, i).concat(majorVals.slice(i + 1));\n // In array mode you can in principle have multiple\n // ticks at 0, so test them all. Otherwise once we found\n // one we can stop.\n if(isArrayMode) i--;\n else break;\n }\n }\n }\n\n ax._gw =\n Drawing.crispRound(gd, ax.gridwidth, 1);\n\n var wMinor = !hasMinor ? 0 :\n Drawing.crispRound(gd, ax.minor.gridwidth, 1);\n\n var majorLayer = opts.layer;\n var minorLayer = opts.minorLayer;\n for(var major = 1; major >= 0; major--) {\n var layer = major ? majorLayer : minorLayer;\n if(!layer) continue;\n\n var grid = layer.selectAll('path.' + cls)\n .data(major ? majorVals : minorVals, tickDataFn);\n\n grid.exit().remove();\n\n grid.enter().append('path')\n .classed(cls, 1)\n .classed('crisp', opts.crisp !== false);\n\n grid.attr('transform', opts.transFn)\n .attr('d', opts.path)\n .each(function(d) {\n return Color.stroke(d3.select(this), d.minor ?\n ax.minor.gridcolor :\n (ax.gridcolor || '#ddd')\n );\n })\n .style('stroke-dasharray', function(d) {\n return Drawing.dashStyle(\n d.minor ? ax.minor.griddash : ax.griddash,\n d.minor ? ax.minor.gridwidth : ax.gridwidth\n );\n })\n .style('stroke-width', function(d) {\n return (d.minor ? wMinor : ax._gw) + 'px';\n })\n .style('display', null); // visible\n\n if(typeof opts.path === 'function') grid.attr('d', opts.path);\n }\n\n hideCounterAxisInsideTickLabels(ax, [GRID_PATH, MINORGRID_PATH]);\n};\n\n/**\n * Draw axis zero-line\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {boolean} zeroline\n * - {number} zerolinewidth\n * - {string} zerolinecolor\n * - {number (optional)} _gridWidthCrispRound\n * @param {object} opts\n * - {d3 selection} layer\n * - {object} counterAxis (full axis object corresponding to counter axis)\n * - {string or fn} path\n * - {fn} transFn\n * - {boolean} crisp (set to false to unset crisp-edge SVG rendering)\n */\naxes.drawZeroLine = function(gd, ax, opts) {\n opts = opts || opts;\n\n var cls = ax._id + 'zl';\n var show = axes.shouldShowZeroLine(gd, ax, opts.counterAxis);\n\n var zl = opts.layer.selectAll('path.' + cls)\n .data(show ? [{x: 0, id: ax._id}] : []);\n\n zl.exit().remove();\n\n zl.enter().append('path')\n .classed(cls, 1)\n .classed('zl', 1)\n .classed('crisp', opts.crisp !== false)\n .each(function() {\n // use the fact that only one element can enter to trigger a sort.\n // If several zerolines enter at the same time we will sort once per,\n // but generally this should be a minimal overhead.\n opts.layer.selectAll('path').sort(function(da, db) {\n return idSort(da.id, db.id);\n });\n });\n\n zl.attr('transform', opts.transFn)\n .attr('d', opts.path)\n .call(Color.stroke, ax.zerolinecolor || Color.defaultLine)\n .style('stroke-width', Drawing.crispRound(gd, ax.zerolinewidth, ax._gw || 1) + 'px')\n .style('display', null); // visible\n\n hideCounterAxisInsideTickLabels(ax, [ZERO_PATH]);\n};\n\n/**\n * Draw axis tick labels\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {boolean} showticklabels\n * - {number} tickangle\n * - {object (optional)} _selections\n * - {object} (optional)} _tickAngles\n * - {object} (optional)} _prevTickAngles\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {string (optional)} cls (node className)\n * - {boolean} repositionOnUpdate (set to true to reposition update selection)\n * - {boolean} secondary\n * - {fn} transFn\n * - {object} labelFns\n * + {fn} xFn\n * + {fn} yFn\n * + {fn} anchorFn\n * + {fn} heightFn\n */\naxes.drawLabels = function(gd, ax, opts) {\n opts = opts || {};\n\n var fullLayout = gd._fullLayout;\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var cls = opts.cls || axId + 'tick';\n\n var vals = opts.vals.filter(function(d) { return d.text; });\n\n var labelFns = opts.labelFns;\n var tickAngle = opts.secondary ? 0 : ax.tickangle;\n var prevAngle = (ax._prevTickAngles || {})[cls];\n\n var tickLabels = opts.layer.selectAll('g.' + cls)\n .data(ax.showticklabels ? vals : [], tickDataFn);\n\n var labelsReady = [];\n\n tickLabels.enter().append('g')\n .classed(cls, 1)\n .append('text')\n // only so tex has predictable alignment that we can\n // alter later\n .attr('text-anchor', 'middle')\n .each(function(d) {\n var thisLabel = d3.select(this);\n var newPromise = gd._promises.length;\n\n thisLabel\n .call(svgTextUtils.positionText, labelFns.xFn(d), labelFns.yFn(d))\n .call(Drawing.font, d.font, d.fontSize, d.fontColor)\n .text(d.text)\n .call(svgTextUtils.convertToTspans, gd);\n\n if(gd._promises[newPromise]) {\n // if we have an async label, we'll deal with that\n // all here so take it out of gd._promises and\n // instead position the label and promise this in\n // labelsReady\n labelsReady.push(gd._promises.pop().then(function() {\n positionLabels(thisLabel, tickAngle);\n }));\n } else {\n // sync label: just position it now.\n positionLabels(thisLabel, tickAngle);\n }\n });\n\n hideCounterAxisInsideTickLabels(ax, [TICK_TEXT]);\n\n tickLabels.exit().remove();\n\n if(opts.repositionOnUpdate) {\n tickLabels.each(function(d) {\n d3.select(this).select('text')\n .call(svgTextUtils.positionText, labelFns.xFn(d), labelFns.yFn(d));\n });\n }\n\n function positionLabels(s, angle) {\n s.each(function(d) {\n var thisLabel = d3.select(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n var anchor = labelFns.anchorFn(d, angle);\n\n var transform = opts.transFn.call(thisLabel.node(), d) +\n ((isNumeric(angle) && +angle !== 0) ?\n (' rotate(' + angle + ',' + labelFns.xFn(d) + ',' +\n (labelFns.yFn(d) - d.fontSize / 2) + ')') :\n '');\n\n // how much to shift a multi-line label to center it vertically.\n var nLines = svgTextUtils.lineCount(thisLabel);\n var lineHeight = LINE_SPACING * d.fontSize;\n var anchorHeight = labelFns.heightFn(d, isNumeric(angle) ? +angle : 0, (nLines - 1) * lineHeight);\n\n if(anchorHeight) {\n transform += strTranslate(0, anchorHeight);\n }\n\n if(mathjaxGroup.empty()) {\n var thisText = thisLabel.select('text');\n thisText.attr({\n transform: transform,\n 'text-anchor': anchor\n });\n\n thisText.style('opacity', 1); // visible\n\n if(ax._adjustTickLabelsOverflow) {\n ax._adjustTickLabelsOverflow();\n }\n } else {\n var mjWidth = Drawing.bBox(mathjaxGroup.node()).width;\n var mjShift = mjWidth * {end: -0.5, start: 0.5}[anchor];\n mathjaxGroup.attr('transform', transform + strTranslate(mjShift, 0));\n }\n });\n }\n\n ax._adjustTickLabelsOverflow = function() {\n var ticklabeloverflow = ax.ticklabeloverflow;\n if(!ticklabeloverflow || ticklabeloverflow === 'allow') return;\n\n var hideOverflow = ticklabeloverflow.indexOf('hide') !== -1;\n\n var isX = ax._id.charAt(0) === 'x';\n // div positions\n var p0 = 0;\n var p1 = isX ?\n gd._fullLayout.width :\n gd._fullLayout.height;\n\n if(ticklabeloverflow.indexOf('domain') !== -1) {\n // domain positions\n var rl = Lib.simpleMap(ax.range, ax.r2l);\n p0 = ax.l2p(rl[0]) + ax._offset;\n p1 = ax.l2p(rl[1]) + ax._offset;\n }\n\n var min = Math.min(p0, p1);\n var max = Math.max(p0, p1);\n\n var side = ax.side;\n\n var visibleLabelMin = Infinity;\n var visibleLabelMax = -Infinity;\n\n tickLabels.each(function(d) {\n var thisLabel = d3.select(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n\n if(mathjaxGroup.empty()) {\n var bb = Drawing.bBox(thisLabel.node());\n var adjust = 0;\n if(isX) {\n if(bb.right > max) adjust = 1;\n else if(bb.left < min) adjust = 1;\n } else {\n if(bb.bottom > max) adjust = 1;\n else if(bb.top + (ax.tickangle ? 0 : d.fontSize / 4) < min) adjust = 1;\n }\n\n var t = thisLabel.select('text');\n if(adjust) {\n if(hideOverflow) t.style('opacity', 0); // hidden\n } else {\n t.style('opacity', 1); // visible\n\n if(side === 'bottom' || side === 'right') {\n visibleLabelMin = Math.min(visibleLabelMin, isX ? bb.top : bb.left);\n } else {\n visibleLabelMin = -Infinity;\n }\n\n if(side === 'top' || side === 'left') {\n visibleLabelMax = Math.max(visibleLabelMax, isX ? bb.bottom : bb.right);\n } else {\n visibleLabelMax = Infinity;\n }\n }\n } // TODO: hide mathjax?\n });\n\n for(var subplot in fullLayout._plots) {\n var plotinfo = fullLayout._plots[subplot];\n if(ax._id !== plotinfo.xaxis._id && ax._id !== plotinfo.yaxis._id) continue;\n var anchorAx = isX ? plotinfo.yaxis : plotinfo.xaxis;\n if(anchorAx) {\n anchorAx['_visibleLabelMin_' + ax._id] = visibleLabelMin;\n anchorAx['_visibleLabelMax_' + ax._id] = visibleLabelMax;\n }\n }\n };\n\n ax._hideCounterAxisInsideTickLabels = function(partialOpts) {\n var isX = ax._id.charAt(0) === 'x';\n\n var anchoredAxes = [];\n for(var subplot in fullLayout._plots) {\n var plotinfo = fullLayout._plots[subplot];\n if(ax._id !== plotinfo.xaxis._id && ax._id !== plotinfo.yaxis._id) continue;\n anchoredAxes.push(isX ? plotinfo.yaxis : plotinfo.xaxis);\n }\n\n anchoredAxes.forEach(function(anchorAx, idx) {\n if(anchorAx && insideTicklabelposition(anchorAx)) {\n (partialOpts || [\n ZERO_PATH,\n MINORGRID_PATH,\n GRID_PATH,\n TICK_PATH,\n TICK_TEXT\n ]).forEach(function(e) {\n var isPeriodLabel =\n e.K === 'tick' &&\n e.L === 'text' &&\n ax.ticklabelmode === 'period';\n\n var mainPlotinfo = fullLayout._plots[ax._mainSubplot];\n\n var sel;\n if(e.K === ZERO_PATH.K) sel = mainPlotinfo.zerolinelayer.selectAll('.' + ax._id + 'zl');\n else if(e.K === MINORGRID_PATH.K) sel = mainPlotinfo.minorGridlayer.selectAll('.' + ax._id);\n else if(e.K === GRID_PATH.K) sel = mainPlotinfo.gridlayer.selectAll('.' + ax._id);\n else sel = mainPlotinfo[ax._id.charAt(0) + 'axislayer'];\n\n sel.each(function() {\n var w = d3.select(this);\n if(e.L) w = w.selectAll(e.L);\n\n w.each(function(d) {\n var q = ax.l2p(\n isPeriodLabel ? getPosX(d) : d.x\n ) + ax._offset;\n\n var t = d3.select(this);\n if(\n q < ax['_visibleLabelMax_' + anchorAx._id] &&\n q > ax['_visibleLabelMin_' + anchorAx._id]\n ) {\n t.style('display', 'none'); // hidden\n } else if(e.K === 'tick' && !idx) {\n t.style('display', null); // visible\n }\n });\n });\n });\n }\n });\n };\n\n // make sure all labels are correctly positioned at their base angle\n // the positionLabels call above is only for newly drawn labels.\n // do this without waiting, using the last calculated angle to\n // minimize flicker, then do it again when we know all labels are\n // there, putting back the prescribed angle to check for overlaps.\n positionLabels(tickLabels, (prevAngle + 1) ? prevAngle : tickAngle);\n\n function allLabelsReady() {\n return labelsReady.length && Promise.all(labelsReady);\n }\n\n var autoangle = null;\n\n function fixLabelOverlaps() {\n positionLabels(tickLabels, tickAngle);\n\n // check for auto-angling if x labels overlap\n // don't auto-angle at all for log axes with\n // base and digit format\n if(vals.length && axLetter === 'x' && !isNumeric(tickAngle) &&\n (ax.type !== 'log' || String(ax.dtick).charAt(0) !== 'D')\n ) {\n autoangle = 0;\n\n var maxFontSize = 0;\n var lbbArray = [];\n var i;\n\n tickLabels.each(function(d) {\n maxFontSize = Math.max(maxFontSize, d.fontSize);\n\n var x = ax.l2p(d.x);\n var thisLabel = selectTickLabel(this);\n var bb = Drawing.bBox(thisLabel.node());\n\n lbbArray.push({\n // ignore about y, just deal with x overlaps\n top: 0,\n bottom: 10,\n height: 10,\n left: x - bb.width / 2,\n // impose a 2px gap\n right: x + bb.width / 2 + 2,\n width: bb.width + 2\n });\n });\n\n if((ax.tickson === 'boundaries' || ax.showdividers) && !opts.secondary) {\n var gap = 2;\n if(ax.ticks) gap += ax.tickwidth / 2;\n\n // TODO should secondary labels also fall into this fix-overlap regime?\n\n for(i = 0; i < lbbArray.length; i++) {\n var xbnd = vals[i].xbnd;\n var lbb = lbbArray[i];\n if(\n (xbnd[0] !== null && (lbb.left - ax.l2p(xbnd[0])) < gap) ||\n (xbnd[1] !== null && (ax.l2p(xbnd[1]) - lbb.right) < gap)\n ) {\n autoangle = 90;\n break;\n }\n }\n } else {\n var vLen = vals.length;\n var tickSpacing = Math.abs((vals[vLen - 1].x - vals[0].x) * ax._m) / (vLen - 1);\n\n var ticklabelposition = ax.ticklabelposition || '';\n var has = function(str) {\n return ticklabelposition.indexOf(str) !== -1;\n };\n var isTop = has('top');\n var isLeft = has('left');\n var isRight = has('right');\n var isBottom = has('bottom');\n var isAligned = isBottom || isLeft || isTop || isRight;\n var pad = !isAligned ? 0 :\n (ax.tickwidth || 0) + 2 * TEXTPAD;\n\n var rotate90 = (tickSpacing < maxFontSize * 2.5) || ax.type === 'multicategory' || ax._name === 'realaxis';\n\n // any overlap at all - set 30 degrees or 90 degrees\n for(i = 0; i < lbbArray.length - 1; i++) {\n if(Lib.bBoxIntersect(lbbArray[i], lbbArray[i + 1], pad)) {\n autoangle = rotate90 ? 90 : 30;\n break;\n }\n }\n }\n\n if(autoangle) {\n positionLabels(tickLabels, autoangle);\n }\n }\n }\n\n if(ax._selections) {\n ax._selections[cls] = tickLabels;\n }\n\n var seq = [allLabelsReady];\n\n // N.B. during auto-margin redraws, if the axis fixed its label overlaps\n // by rotating 90 degrees, do not attempt to re-fix its label overlaps\n // as this can lead to infinite redraw loops!\n if(ax.automargin && fullLayout._redrawFromAutoMarginCount && prevAngle === 90) {\n autoangle = 90;\n seq.push(function() {\n positionLabels(tickLabels, prevAngle);\n });\n } else {\n seq.push(fixLabelOverlaps);\n }\n\n // save current tick angle for future redraws\n if(ax._tickAngles) {\n seq.push(function() {\n ax._tickAngles[cls] = autoangle === null ?\n (isNumeric(tickAngle) ? tickAngle : 0) :\n autoangle;\n });\n }\n\n var anchorAx = ax._anchorAxis;\n if(\n anchorAx && anchorAx.autorange &&\n insideTicklabelposition(ax) &&\n !isLinked(fullLayout, ax._id)\n ) {\n if(!fullLayout._insideTickLabelsAutorange) {\n fullLayout._insideTickLabelsAutorange = {};\n }\n fullLayout._insideTickLabelsAutorange[anchorAx._name + '.autorange'] = anchorAx.autorange;\n\n seq.push(\n function computeFinalTickLabelBoundingBoxes() {\n tickLabels.each(function(d, i) {\n var thisLabel = selectTickLabel(this);\n var mathjaxGroup = thisLabel.select('.text-math-group');\n if(mathjaxGroup.empty()) {\n ax._vals[i].bb = Drawing.bBox(thisLabel.node());\n }\n });\n }\n );\n }\n\n var done = Lib.syncOrAsync(seq);\n if(done && done.then) gd._promises.push(done);\n return done;\n};\n\n/**\n * Draw axis dividers\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} showdividers\n * - {number} dividerwidth\n * - {string} dividercolor\n * @param {object} opts\n * - {array of object} vals (calcTicks output-like)\n * - {d3 selection} layer\n * - {fn} path\n * - {fn} transFn\n */\nfunction drawDividers(gd, ax, opts) {\n var cls = ax._id + 'divider';\n var vals = opts.vals;\n\n var dividers = opts.layer.selectAll('path.' + cls)\n .data(vals, tickDataFn);\n\n dividers.exit().remove();\n\n dividers.enter().insert('path', ':first-child')\n .classed(cls, 1)\n .classed('crisp', 1)\n .call(Color.stroke, ax.dividercolor)\n .style('stroke-width', Drawing.crispRound(gd, ax.dividerwidth, 1) + 'px');\n\n dividers\n .attr('transform', opts.transFn)\n .attr('d', opts.path);\n}\n\n/**\n * Get axis position in px, that is the distance for the graph's\n * top (left) edge for x (y) axes.\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} side\n * if anchored:\n * - {object} _anchorAxis\n * Otherwise:\n * - {number} position\n * @return {number}\n */\naxes.getPxPosition = function(gd, ax) {\n var gs = gd._fullLayout._size;\n var axLetter = ax._id.charAt(0);\n var side = ax.side;\n var anchorAxis;\n\n if(ax.anchor !== 'free') {\n anchorAxis = ax._anchorAxis;\n } else if(axLetter === 'x') {\n anchorAxis = {\n _offset: gs.t + (1 - (ax.position || 0)) * gs.h,\n _length: 0\n };\n } else if(axLetter === 'y') {\n anchorAxis = {\n _offset: gs.l + (ax.position || 0) * gs.w,\n _length: 0\n };\n }\n\n if(side === 'top' || side === 'left') {\n return anchorAxis._offset;\n } else if(side === 'bottom' || side === 'right') {\n return anchorAxis._offset + anchorAxis._length;\n }\n};\n\n/**\n * Approximate axis title depth (w/o computing its bounding box)\n *\n * @param {object} ax (full) axis object\n * - {string} title.text\n * - {number} title.font.size\n * - {number} title.standoff\n * @return {number} (in px)\n */\nfunction approxTitleDepth(ax) {\n var fontSize = ax.title.font.size;\n var extraLines = (ax.title.text.match(svgTextUtils.BR_TAG_ALL) || []).length;\n if(ax.title.hasOwnProperty('standoff')) {\n return extraLines ?\n fontSize * (CAP_SHIFT + (extraLines * LINE_SPACING)) :\n fontSize * CAP_SHIFT;\n } else {\n return extraLines ?\n fontSize * (extraLines + 1) * LINE_SPACING :\n fontSize;\n }\n}\n\n/**\n * Draw axis title, compute default standoff if necessary\n *\n * @param {DOM element} gd\n * @param {object} ax (full) axis object\n * - {string} _id\n * - {string} _name\n * - {string} side\n * - {number} title.font.size\n * - {object} _selections\n *\n * - {number} _depth\n * - {number} title.standoff\n * OR\n * - {number} linewidth\n * - {boolean} showticklabels\n */\nfunction drawTitle(gd, ax) {\n var fullLayout = gd._fullLayout;\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var fontSize = ax.title.font.size;\n var titleStandoff;\n\n if(ax.title.hasOwnProperty('standoff')) {\n titleStandoff = ax._depth + ax.title.standoff + approxTitleDepth(ax);\n } else {\n var isInside = insideTicklabelposition(ax);\n\n if(ax.type === 'multicategory') {\n titleStandoff = ax._depth;\n } else {\n var offsetBase = 1.5 * fontSize;\n if(isInside) {\n offsetBase = 0.5 * fontSize;\n if(ax.ticks === 'outside') {\n offsetBase += ax.ticklen;\n }\n }\n titleStandoff = 10 + offsetBase + (ax.linewidth ? ax.linewidth - 1 : 0);\n }\n\n if(!isInside) {\n if(axLetter === 'x') {\n titleStandoff += ax.side === 'top' ?\n fontSize * (ax.showticklabels ? 1 : 0) :\n fontSize * (ax.showticklabels ? 1.5 : 0.5);\n } else {\n titleStandoff += ax.side === 'right' ?\n fontSize * (ax.showticklabels ? 1 : 0.5) :\n fontSize * (ax.showticklabels ? 0.5 : 0);\n }\n }\n }\n\n var pos = axes.getPxPosition(gd, ax);\n var transform, x, y;\n\n if(axLetter === 'x') {\n x = ax._offset + ax._length / 2;\n y = (ax.side === 'top') ? pos - titleStandoff : pos + titleStandoff;\n } else {\n y = ax._offset + ax._length / 2;\n x = (ax.side === 'right') ? pos + titleStandoff : pos - titleStandoff;\n transform = {rotate: '-90', offset: 0};\n }\n\n var avoid;\n\n if(ax.type !== 'multicategory') {\n var tickLabels = ax._selections[ax._id + 'tick'];\n\n avoid = {\n selection: tickLabels,\n side: ax.side\n };\n\n if(tickLabels && tickLabels.node() && tickLabels.node().parentNode) {\n var translation = Drawing.getTranslate(tickLabels.node().parentNode);\n avoid.offsetLeft = translation.x;\n avoid.offsetTop = translation.y;\n }\n\n if(ax.title.hasOwnProperty('standoff')) {\n avoid.pad = 0;\n }\n }\n\n return Titles.draw(gd, axId + 'title', {\n propContainer: ax,\n propName: ax._name + '.title.text',\n placeholder: fullLayout._dfltTitle[axLetter],\n avoid: avoid,\n transform: transform,\n attributes: {x: x, y: y, 'text-anchor': 'middle'}\n });\n}\n\naxes.shouldShowZeroLine = function(gd, ax, counterAxis) {\n var rng = Lib.simpleMap(ax.range, ax.r2l);\n return (\n (rng[0] * rng[1] <= 0) &&\n ax.zeroline &&\n (ax.type === 'linear' || ax.type === '-') &&\n !(ax.rangebreaks && ax.maskBreaks(0) === BADNUM) &&\n (\n clipEnds(ax, 0) ||\n !anyCounterAxLineAtZero(gd, ax, counterAxis, rng) ||\n hasBarsOrFill(gd, ax)\n )\n );\n};\n\naxes.clipEnds = function(ax, vals) {\n return vals.filter(function(d) { return clipEnds(ax, d.x); });\n};\n\nfunction clipEnds(ax, l) {\n var p = ax.l2p(l);\n return (p > 1 && p < ax._length - 1);\n}\n\nfunction anyCounterAxLineAtZero(gd, ax, counterAxis, rng) {\n var mainCounterAxis = counterAxis._mainAxis;\n if(!mainCounterAxis) return;\n\n var fullLayout = gd._fullLayout;\n var axLetter = ax._id.charAt(0);\n var counterLetter = axes.counterLetter(ax._id);\n\n var zeroPosition = ax._offset + (\n ((Math.abs(rng[0]) < Math.abs(rng[1])) === (axLetter === 'x')) ?\n 0 : ax._length\n );\n\n function lineNearZero(ax2) {\n if(!ax2.showline || !ax2.linewidth) return false;\n var tolerance = Math.max((ax2.linewidth + ax.zerolinewidth) / 2, 1);\n\n function closeEnough(pos2) {\n return typeof pos2 === 'number' && Math.abs(pos2 - zeroPosition) < tolerance;\n }\n\n if(closeEnough(ax2._mainLinePosition) || closeEnough(ax2._mainMirrorPosition)) {\n return true;\n }\n var linePositions = ax2._linepositions || {};\n for(var k in linePositions) {\n if(closeEnough(linePositions[k][0]) || closeEnough(linePositions[k][1])) {\n return true;\n }\n }\n }\n\n var plotinfo = fullLayout._plots[counterAxis._mainSubplot];\n if(!(plotinfo.mainplotinfo || plotinfo).overlays.length) {\n return lineNearZero(counterAxis, zeroPosition);\n }\n\n var counterLetterAxes = axes.list(gd, counterLetter);\n for(var i = 0; i < counterLetterAxes.length; i++) {\n var counterAxis2 = counterLetterAxes[i];\n if(\n counterAxis2._mainAxis === mainCounterAxis &&\n lineNearZero(counterAxis2, zeroPosition)\n ) {\n return true;\n }\n }\n}\n\nfunction hasBarsOrFill(gd, ax) {\n var fullData = gd._fullData;\n var subplot = ax._mainSubplot;\n var axLetter = ax._id.charAt(0);\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible === true && (trace.xaxis + trace.yaxis) === subplot) {\n if(\n Registry.traceIs(trace, 'bar-like') &&\n trace.orientation === {x: 'h', y: 'v'}[axLetter]\n ) return true;\n\n if(\n trace.fill &&\n trace.fill.charAt(trace.fill.length - 1) === axLetter\n ) return true;\n }\n }\n return false;\n}\n\nfunction selectTickLabel(gTick) {\n var s = d3.select(gTick);\n var mj = s.select('.text-math-group');\n return mj.empty() ? s.select('text') : mj;\n}\n\n/**\n * Find all margin pushers for 2D axes and reserve them for later use\n * Both label and rangeslider automargin calculations happen later so\n * we need to explicitly allow their ids in order to not delete them.\n *\n * TODO: can we pull the actual automargin calls forward to avoid this hack?\n * We're probably also doing multiple redraws in this case, would be faster\n * if we can just do the whole calculation ahead of time and draw once.\n */\naxes.allowAutoMargin = function(gd) {\n var axList = axes.list(gd, '', true);\n for(var i = 0; i < axList.length; i++) {\n var ax = axList[i];\n if(ax.automargin) {\n Plots.allowAutoMargin(gd, axAutoMarginID(ax));\n if(ax.mirror) {\n Plots.allowAutoMargin(gd, axMirrorAutoMarginID(ax));\n }\n }\n if(Registry.getComponentMethod('rangeslider', 'isVisible')(ax)) {\n Plots.allowAutoMargin(gd, rangeSliderAutoMarginID(ax));\n }\n }\n};\n\nfunction axAutoMarginID(ax) { return ax._id + '.automargin'; }\nfunction axMirrorAutoMarginID(ax) { return axAutoMarginID(ax) + '.mirror'; }\nfunction rangeSliderAutoMarginID(ax) { return ax._id + '.rangeslider'; }\n\n// swap all the presentation attributes of the axes showing these traces\naxes.swap = function(gd, traces) {\n var axGroups = makeAxisGroups(gd, traces);\n\n for(var i = 0; i < axGroups.length; i++) {\n swapAxisGroup(gd, axGroups[i].x, axGroups[i].y);\n }\n};\n\nfunction makeAxisGroups(gd, traces) {\n var groups = [];\n var i, j;\n\n for(i = 0; i < traces.length; i++) {\n var groupsi = [];\n var xi = gd._fullData[traces[i]].xaxis;\n var yi = gd._fullData[traces[i]].yaxis;\n if(!xi || !yi) continue; // not a 2D cartesian trace?\n\n for(j = 0; j < groups.length; j++) {\n if(groups[j].x.indexOf(xi) !== -1 || groups[j].y.indexOf(yi) !== -1) {\n groupsi.push(j);\n }\n }\n\n if(!groupsi.length) {\n groups.push({x: [xi], y: [yi]});\n continue;\n }\n\n var group0 = groups[groupsi[0]];\n var groupj;\n\n if(groupsi.length > 1) {\n for(j = 1; j < groupsi.length; j++) {\n groupj = groups[groupsi[j]];\n mergeAxisGroups(group0.x, groupj.x);\n mergeAxisGroups(group0.y, groupj.y);\n }\n }\n mergeAxisGroups(group0.x, [xi]);\n mergeAxisGroups(group0.y, [yi]);\n }\n\n return groups;\n}\n\nfunction mergeAxisGroups(intoSet, fromSet) {\n for(var i = 0; i < fromSet.length; i++) {\n if(intoSet.indexOf(fromSet[i]) === -1) intoSet.push(fromSet[i]);\n }\n}\n\nfunction swapAxisGroup(gd, xIds, yIds) {\n var xFullAxes = [];\n var yFullAxes = [];\n var layout = gd.layout;\n var i, j;\n\n for(i = 0; i < xIds.length; i++) xFullAxes.push(axes.getFromId(gd, xIds[i]));\n for(i = 0; i < yIds.length; i++) yFullAxes.push(axes.getFromId(gd, yIds[i]));\n\n var allAxKeys = Object.keys(axAttrs);\n\n var noSwapAttrs = [\n 'anchor', 'domain', 'overlaying', 'position', 'side', 'tickangle', 'editType'\n ];\n var numericTypes = ['linear', 'log'];\n\n for(i = 0; i < allAxKeys.length; i++) {\n var keyi = allAxKeys[i];\n var xVal = xFullAxes[0][keyi];\n var yVal = yFullAxes[0][keyi];\n var allEqual = true;\n var coerceLinearX = false;\n var coerceLinearY = false;\n if(keyi.charAt(0) === '_' || typeof xVal === 'function' ||\n noSwapAttrs.indexOf(keyi) !== -1) {\n continue;\n }\n for(j = 1; j < xFullAxes.length && allEqual; j++) {\n var xVali = xFullAxes[j][keyi];\n if(keyi === 'type' && numericTypes.indexOf(xVal) !== -1 &&\n numericTypes.indexOf(xVali) !== -1 && xVal !== xVali) {\n // type is special - if we find a mixture of linear and log,\n // coerce them all to linear on flipping\n coerceLinearX = true;\n } else if(xVali !== xVal) allEqual = false;\n }\n for(j = 1; j < yFullAxes.length && allEqual; j++) {\n var yVali = yFullAxes[j][keyi];\n if(keyi === 'type' && numericTypes.indexOf(yVal) !== -1 &&\n numericTypes.indexOf(yVali) !== -1 && yVal !== yVali) {\n // type is special - if we find a mixture of linear and log,\n // coerce them all to linear on flipping\n coerceLinearY = true;\n } else if(yFullAxes[j][keyi] !== yVal) allEqual = false;\n }\n if(allEqual) {\n if(coerceLinearX) layout[xFullAxes[0]._name].type = 'linear';\n if(coerceLinearY) layout[yFullAxes[0]._name].type = 'linear';\n swapAxisAttrs(layout, keyi, xFullAxes, yFullAxes, gd._fullLayout._dfltTitle);\n }\n }\n\n // now swap x&y for any annotations anchored to these x & y\n for(i = 0; i < gd._fullLayout.annotations.length; i++) {\n var ann = gd._fullLayout.annotations[i];\n if(xIds.indexOf(ann.xref) !== -1 &&\n yIds.indexOf(ann.yref) !== -1) {\n Lib.swapAttrs(layout.annotations[i], ['?']);\n }\n }\n}\n\nfunction swapAxisAttrs(layout, key, xFullAxes, yFullAxes, dfltTitle) {\n // in case the value is the default for either axis,\n // look at the first axis in each list and see if\n // this key's value is undefined\n var np = Lib.nestedProperty;\n var xVal = np(layout[xFullAxes[0]._name], key).get();\n var yVal = np(layout[yFullAxes[0]._name], key).get();\n var i;\n\n if(key === 'title') {\n // special handling of placeholder titles\n if(xVal && xVal.text === dfltTitle.x) {\n xVal.text = dfltTitle.y;\n }\n if(yVal && yVal.text === dfltTitle.y) {\n yVal.text = dfltTitle.x;\n }\n }\n\n for(i = 0; i < xFullAxes.length; i++) {\n np(layout, xFullAxes[i]._name + '.' + key).set(yVal);\n }\n for(i = 0; i < yFullAxes.length; i++) {\n np(layout, yFullAxes[i]._name + '.' + key).set(xVal);\n }\n}\n\nfunction isAngular(ax) {\n return ax._id === 'angularaxis';\n}\n\nfunction moveOutsideBreak(v, ax) {\n var len = ax._rangebreaks.length;\n for(var k = 0; k < len; k++) {\n var brk = ax._rangebreaks[k];\n if(v >= brk.min && v < brk.max) {\n return brk.max;\n }\n }\n return v;\n}\n\nfunction insideTicklabelposition(ax) {\n return ((ax.ticklabelposition || '').indexOf('inside') !== -1);\n}\n\nfunction hideCounterAxisInsideTickLabels(ax, opts) {\n if(insideTicklabelposition(ax._anchorAxis || {})) {\n if(ax._hideCounterAxisInsideTickLabels) {\n ax._hideCounterAxisInsideTickLabels(opts);\n }\n }\n}\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../components/titles\":476,\"../../constants/alignment\":483,\"../../constants/numerical\":491,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/plots\":628,\"../../registry\":647,\"./autorange\":565,\"./axis_autotype\":567,\"./axis_ids\":570,\"./clean_ticks\":572,\"./layout_attributes\":579,\"./set_convert\":585,\"@plotly/d3\":58,\"fast-isnumeric\":190}],567:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\nvar isDateTime = Lib.isDateTime;\nvar cleanNumber = Lib.cleanNumber;\nvar round = Math.round;\n\nmodule.exports = function autoType(array, calendar, opts) {\n var a = array;\n\n var noMultiCategory = opts.noMultiCategory;\n if(isArrayOrTypedArray(a) && !a.length) return '-';\n if(!noMultiCategory && multiCategory(a)) return 'multicategory';\n if(noMultiCategory && Array.isArray(a[0])) { // no need to flat typed arrays here\n var b = [];\n for(var i = 0; i < a.length; i++) {\n if(isArrayOrTypedArray(a[i])) {\n for(var j = 0; j < a[i].length; j++) {\n b.push(a[i][j]);\n }\n }\n }\n a = b;\n }\n\n if(moreDates(a, calendar)) return 'date';\n\n var convertNumeric = opts.autotypenumbers !== 'strict'; // compare against strict, just in case autotypenumbers was not provided in opts\n if(category(a, convertNumeric)) return 'category';\n if(linearOK(a, convertNumeric)) return 'linear';\n\n return '-';\n};\n\nfunction hasTypeNumber(v, convertNumeric) {\n return convertNumeric ? isNumeric(v) : typeof v === 'number';\n}\n\n// is there at least one number in array? If not, we should leave\n// ax.type empty so it can be autoset later\nfunction linearOK(a, convertNumeric) {\n var len = a.length;\n\n for(var i = 0; i < len; i++) {\n if(hasTypeNumber(a[i], convertNumeric)) return true;\n }\n\n return false;\n}\n\n// does the array a have mostly dates rather than numbers?\n// note: some values can be neither (such as blanks, text)\n// 2- or 4-digit integers can be both, so require twice as many\n// dates as non-dates, to exclude cases with mostly 2 & 4 digit\n// numbers and a few dates\n// as with categories, consider DISTINCT values only.\nfunction moreDates(a, calendar) {\n var len = a.length;\n\n var inc = getIncrement(len);\n var dats = 0;\n var nums = 0;\n var seen = {};\n\n for(var f = 0; f < len; f += inc) {\n var i = round(f);\n var ai = a[i];\n var stri = String(ai);\n if(seen[stri]) continue;\n seen[stri] = 1;\n\n if(isDateTime(ai, calendar)) dats++;\n if(isNumeric(ai)) nums++;\n }\n\n return dats > nums * 2;\n}\n\n// return increment to test at most 1000 points, evenly spaced\nfunction getIncrement(len) {\n return Math.max(1, (len - 1) / 1000);\n}\n\n// are the (x,y)-values in gd.data mostly text?\n// require twice as many DISTINCT categories as distinct numbers\nfunction category(a, convertNumeric) {\n var len = a.length;\n\n var inc = getIncrement(len);\n var nums = 0;\n var cats = 0;\n var seen = {};\n\n for(var f = 0; f < len; f += inc) {\n var i = round(f);\n var ai = a[i];\n var stri = String(ai);\n if(seen[stri]) continue;\n seen[stri] = 1;\n\n var t = typeof ai;\n if(t === 'boolean') cats++;\n else if(convertNumeric ? cleanNumber(ai) !== BADNUM : t === 'number') nums++;\n else if(t === 'string') cats++;\n }\n\n return cats > nums * 2;\n}\n\n// very-loose requirements for multicategory,\n// trace modules that should never auto-type to multicategory\n// should be declared with 'noMultiCategory'\nfunction multiCategory(a) {\n return isArrayOrTypedArray(a[0]) && isArrayOrTypedArray(a[1]);\n}\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"fast-isnumeric\":190}],568:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleArrayContainerDefaults = _dereq_('../array_container_defaults');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar handleTickValueDefaults = _dereq_('./tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('./tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('./tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('./prefix_suffix_defaults');\nvar handleCategoryOrderDefaults = _dereq_('./category_order_defaults');\nvar handleLineGridDefaults = _dereq_('./line_grid_defaults');\nvar setConvert = _dereq_('./set_convert');\n\nvar DAY_OF_WEEK = _dereq_('./constants').WEEKDAY_PATTERN;\nvar HOUR = _dereq_('./constants').HOUR_PATTERN;\n\n/**\n * options: object containing:\n *\n * letter: 'x' or 'y'\n * title: name of the axis (ie 'Colorbar') to go in default title\n * font: the default font to inherit\n * outerTicks: boolean, should ticks default to outside?\n * showGrid: boolean, should gridlines be shown by default?\n * noHover: boolean, this axis doesn't support hover effects?\n * noTickson: boolean, this axis doesn't support 'tickson'\n * data: the plot data, used to manage categories\n * bgColor: the plot background color, to calculate default gridline colors\n * calendar:\n * splomStash:\n * visibleDflt: boolean\n * reverseDflt: boolean\n * automargin: boolean\n */\nmodule.exports = function handleAxisDefaults(containerIn, containerOut, coerce, options, layoutOut) {\n var letter = options.letter;\n var font = options.font || {};\n var splomStash = options.splomStash || {};\n\n var visible = coerce('visible', !options.visibleDflt);\n\n var axTemplate = containerOut._template || {};\n var axType = containerOut.type || axTemplate.type || '-';\n\n var ticklabelmode;\n if(axType === 'date') {\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleDefaults');\n handleCalendarDefaults(containerIn, containerOut, 'calendar', options.calendar);\n\n if(!options.noTicklabelmode) {\n ticklabelmode = coerce('ticklabelmode');\n }\n }\n\n var ticklabelposition = '';\n if(!options.noTicklabelposition || axType === 'multicategory') {\n ticklabelposition = Lib.coerce(containerIn, containerOut, {\n ticklabelposition: {\n valType: 'enumerated',\n dflt: 'outside',\n values: ticklabelmode === 'period' ? ['outside', 'inside'] :\n letter === 'x' ? [\n 'outside', 'inside',\n 'outside left', 'inside left',\n 'outside right', 'inside right'\n ] : [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside bottom', 'inside bottom'\n ]\n }\n }, 'ticklabelposition');\n }\n\n if(!options.noTicklabeloverflow) {\n coerce('ticklabeloverflow',\n ticklabelposition.indexOf('inside') !== -1 ?\n 'hide past domain' :\n axType === 'category' ||\n axType === 'multicategory' ?\n 'allow' :\n 'hide past div'\n );\n }\n\n setConvert(containerOut, layoutOut);\n\n var autorangeDflt = !containerOut.isValidRange(containerIn.range);\n if(autorangeDflt && options.reverseDflt) autorangeDflt = 'reversed';\n var autoRange = coerce('autorange', autorangeDflt);\n if(autoRange && (axType === 'linear' || axType === '-')) coerce('rangemode');\n\n coerce('range');\n containerOut.cleanRange();\n\n handleCategoryOrderDefaults(containerIn, containerOut, coerce, options);\n\n if(axType !== 'category' && !options.noHover) coerce('hoverformat');\n\n var dfltColor = coerce('color');\n // if axis.color was provided, use it for fonts too; otherwise,\n // inherit from global font color in case that was provided.\n // Compare to dflt rather than to containerIn, so we can provide color via\n // template too.\n var dfltFontColor = (dfltColor !== layoutAttributes.color.dflt) ? dfltColor : font.color;\n // try to get default title from splom trace, fallback to graph-wide value\n var dfltTitle = splomStash.label || layoutOut._dfltTitle[letter];\n\n handlePrefixSuffixDefaults(containerIn, containerOut, coerce, axType, options);\n if(!visible) return containerOut;\n\n coerce('title.text', dfltTitle);\n Lib.coerceFont(coerce, 'title.font', {\n family: font.family,\n size: Lib.bigFont(font.size),\n color: dfltFontColor\n });\n\n // major ticks\n handleTickValueDefaults(containerIn, containerOut, coerce, axType);\n\n var hasMinor = options.hasMinor;\n if(hasMinor) {\n // minor ticks\n Template.newContainer(containerOut, 'minor');\n handleTickValueDefaults(containerIn, containerOut, coerce, axType, { isMinor: true });\n }\n\n handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options);\n\n // major and minor ticks\n handleTickMarkDefaults(containerIn, containerOut, coerce, options);\n if(hasMinor) {\n var keepIsMinor = options.isMinor;\n options.isMinor = true;\n handleTickMarkDefaults(containerIn, containerOut, coerce, options);\n options.isMinor = keepIsMinor;\n }\n\n handleLineGridDefaults(containerIn, containerOut, coerce, {\n dfltColor: dfltColor,\n bgColor: options.bgColor,\n showGrid: options.showGrid,\n hasMinor: hasMinor,\n attributes: layoutAttributes\n });\n\n // delete minor when no minor ticks or gridlines\n if(\n hasMinor &&\n !containerOut.minor.ticks &&\n !containerOut.minor.showgrid\n ) {\n delete containerOut.minor;\n }\n\n // mirror\n if(containerOut.showline || containerOut.ticks) coerce('mirror');\n\n if(options.automargin) coerce('automargin');\n\n var isMultiCategory = axType === 'multicategory';\n\n if(!options.noTickson &&\n (axType === 'category' || isMultiCategory) &&\n (containerOut.ticks || containerOut.showgrid)\n ) {\n var ticksonDflt;\n if(isMultiCategory) ticksonDflt = 'boundaries';\n var tickson = coerce('tickson', ticksonDflt);\n if(tickson === 'boundaries') {\n delete containerOut.ticklabelposition;\n }\n }\n\n if(isMultiCategory) {\n var showDividers = coerce('showdividers');\n if(showDividers) {\n coerce('dividercolor');\n coerce('dividerwidth');\n }\n }\n\n if(axType === 'date') {\n handleArrayContainerDefaults(containerIn, containerOut, {\n name: 'rangebreaks',\n inclusionAttr: 'enabled',\n handleItemDefaults: rangebreaksDefaults\n });\n\n if(!containerOut.rangebreaks.length) {\n delete containerOut.rangebreaks;\n } else {\n for(var k = 0; k < containerOut.rangebreaks.length; k++) {\n if(containerOut.rangebreaks[k].pattern === DAY_OF_WEEK) {\n containerOut._hasDayOfWeekBreaks = true;\n break;\n }\n }\n\n setConvert(containerOut, layoutOut);\n\n if(layoutOut._has('scattergl') || layoutOut._has('splom')) {\n for(var i = 0; i < options.data.length; i++) {\n var trace = options.data[i];\n if(trace.type === 'scattergl' || trace.type === 'splom') {\n trace.visible = false;\n Lib.warn(trace.type +\n ' traces do not work on axes with rangebreaks.' +\n ' Setting trace ' + trace.index + ' to `visible: false`.');\n }\n }\n }\n }\n }\n\n return containerOut;\n};\n\nfunction rangebreaksDefaults(itemIn, itemOut, containerOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(itemIn, itemOut, layoutAttributes.rangebreaks, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(enabled) {\n var bnds = coerce('bounds');\n if(bnds && bnds.length >= 2) {\n var dfltPattern = '';\n var i, q;\n if(bnds.length === 2) {\n for(i = 0; i < 2; i++) {\n q = indexOfDay(bnds[i]);\n if(q) {\n dfltPattern = DAY_OF_WEEK;\n break;\n }\n }\n }\n var pattern = coerce('pattern', dfltPattern);\n if(pattern === DAY_OF_WEEK) {\n for(i = 0; i < 2; i++) {\n q = indexOfDay(bnds[i]);\n if(q) {\n // convert to integers i.e 'Sunday' --> 0\n itemOut.bounds[i] = bnds[i] = q - 1;\n }\n }\n }\n if(pattern) {\n // ensure types and ranges\n for(i = 0; i < 2; i++) {\n q = bnds[i];\n switch(pattern) {\n case DAY_OF_WEEK :\n if(!isNumeric(q)) {\n itemOut.enabled = false;\n return;\n }\n q = +q;\n\n if(\n q !== Math.floor(q) || // don't accept fractional days for mow\n q < 0 || q >= 7\n ) {\n itemOut.enabled = false;\n return;\n }\n // use number\n itemOut.bounds[i] = bnds[i] = q;\n break;\n\n case HOUR :\n if(!isNumeric(q)) {\n itemOut.enabled = false;\n return;\n }\n q = +q;\n\n if(q < 0 || q > 24) { // accept 24\n itemOut.enabled = false;\n return;\n }\n // use number\n itemOut.bounds[i] = bnds[i] = q;\n break;\n }\n }\n }\n\n if(containerOut.autorange === false) {\n var rng = containerOut.range;\n\n // if bounds are bigger than the (set) range, disable break\n if(rng[0] < rng[1]) {\n if(bnds[0] < rng[0] && bnds[1] > rng[1]) {\n itemOut.enabled = false;\n return;\n }\n } else if(bnds[0] > rng[0] && bnds[1] < rng[1]) {\n itemOut.enabled = false;\n return;\n }\n }\n } else {\n var values = coerce('values');\n\n if(values && values.length) {\n coerce('dvalue');\n } else {\n itemOut.enabled = false;\n return;\n }\n }\n }\n}\n\n// these numbers are one more than what bounds would be mapped to\nvar dayStrToNum = {\n sun: 1,\n mon: 2,\n tue: 3,\n wed: 4,\n thu: 5,\n fri: 6,\n sat: 7\n};\n\nfunction indexOfDay(v) {\n if(typeof v !== 'string') return;\n return dayStrToNum[\n v.substr(0, 3).toLowerCase()\n ];\n}\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../registry\":647,\"../array_container_defaults\":561,\"./category_order_defaults\":571,\"./constants\":573,\"./layout_attributes\":579,\"./line_grid_defaults\":581,\"./prefix_suffix_defaults\":583,\"./set_convert\":585,\"./tick_label_defaults\":587,\"./tick_mark_defaults\":588,\"./tick_value_defaults\":589,\"fast-isnumeric\":190}],569:[function(_dereq_,module,exports){\n'use strict';\n\nvar docs = _dereq_('../../constants/docs');\nvar FORMAT_LINK = docs.FORMAT_LINK;\nvar DATE_FORMAT_LINK = docs.DATE_FORMAT_LINK;\n\nfunction axisHoverFormat(x, noDates) {\n return {\n valType: 'string',\n dflt: '',\n editType: 'none',\n description: (\n noDates ? descriptionOnlyNumbers : descriptionWithDates\n )('hover text', x) + [\n 'By default the values are formatted using ' + (\n noDates ?\n 'generic number format' :\n ('`' + x + 'axis.hoverformat`')\n ) + '.',\n ].join(' ')\n };\n}\n\nfunction descriptionOnlyNumbers(label, x) {\n return [\n 'Sets the ' + label + ' formatting rule' + (x ? 'for `' + x + '` ' : ''),\n 'using d3 formatting mini-languages',\n 'which are very similar to those in Python. For numbers, see: ' + FORMAT_LINK + '.'\n ].join(' ');\n}\n\nfunction descriptionWithDates(label, x) {\n return descriptionOnlyNumbers(label, x) + [\n ' And for dates see: ' + DATE_FORMAT_LINK + '.',\n 'We add two items to d3\\'s date formatter:',\n '*%h* for half of the year as a decimal number as well as',\n '*%{n}f* for fractional seconds',\n 'with n digits. For example, *2016-10-13 09:15:23.456* with tickformat',\n '*%H~%M~%S.%2f* would display *09~15~23.46*'\n ].join(' ');\n}\n\nmodule.exports = {\n axisHoverFormat: axisHoverFormat,\n descriptionOnlyNumbers: descriptionOnlyNumbers,\n descriptionWithDates: descriptionWithDates\n};\n\n},{\"../../constants/docs\":486}],570:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\n\nvar constants = _dereq_('./constants');\n\n\n// convert between axis names (xaxis, xaxis2, etc, elements of gd.layout)\n// and axis id's (x, x2, etc). Would probably have ditched 'xaxis'\n// completely in favor of just 'x' if it weren't ingrained in the API etc.\nexports.id2name = function id2name(id) {\n if(typeof id !== 'string' || !id.match(constants.AX_ID_PATTERN)) return;\n var axNum = id.split(' ')[0].substr(1);\n if(axNum === '1') axNum = '';\n return id.charAt(0) + 'axis' + axNum;\n};\n\nexports.name2id = function name2id(name) {\n if(!name.match(constants.AX_NAME_PATTERN)) return;\n var axNum = name.substr(5);\n if(axNum === '1') axNum = '';\n return name.charAt(0) + axNum;\n};\n\n/*\n * Cleans up the number of an axis, e.g., 'x002'->'x2', 'x0'->'x', 'x1' -> 'x',\n * etc.\n * If domainId is true, then id could be a domain reference and if it is, the\n * ' domain' part is kept at the end of the axis ID string.\n */\nexports.cleanId = function cleanId(id, axLetter, domainId) {\n var domainTest = /( domain)$/.test(id);\n if(typeof id !== 'string' || !id.match(constants.AX_ID_PATTERN)) return;\n if(axLetter && id.charAt(0) !== axLetter) return;\n if(domainTest && (!domainId)) return;\n var axNum = id.split(' ')[0].substr(1).replace(/^0+/, '');\n if(axNum === '1') axNum = '';\n return id.charAt(0) + axNum + (domainTest && domainId ? ' domain' : '');\n};\n\n// get all axis objects, as restricted in listNames\nexports.list = function(gd, axLetter, only2d) {\n var fullLayout = gd._fullLayout;\n if(!fullLayout) return [];\n\n var idList = exports.listIds(gd, axLetter);\n var out = new Array(idList.length);\n var i;\n\n for(i = 0; i < idList.length; i++) {\n var idi = idList[i];\n out[i] = fullLayout[idi.charAt(0) + 'axis' + idi.substr(1)];\n }\n\n if(!only2d) {\n var sceneIds3D = fullLayout._subplots.gl3d || [];\n\n for(i = 0; i < sceneIds3D.length; i++) {\n var scene = fullLayout[sceneIds3D[i]];\n\n if(axLetter) out.push(scene[axLetter + 'axis']);\n else out.push(scene.xaxis, scene.yaxis, scene.zaxis);\n }\n }\n\n return out;\n};\n\n// get all axis ids, optionally restricted by letter\n// this only makes sense for 2d axes\nexports.listIds = function(gd, axLetter) {\n var fullLayout = gd._fullLayout;\n if(!fullLayout) return [];\n\n var subplotLists = fullLayout._subplots;\n if(axLetter) return subplotLists[axLetter + 'axis'];\n return subplotLists.xaxis.concat(subplotLists.yaxis);\n};\n\n// get an axis object from its id 'x','x2' etc\n// optionally, id can be a subplot (ie 'x2y3') and type gets x or y from it\nexports.getFromId = function(gd, id, type) {\n var fullLayout = gd._fullLayout;\n // remove \"domain\" suffix\n id = ((id === undefined) || (typeof(id) !== 'string')) ? id : id.replace(' domain', '');\n\n if(type === 'x') id = id.replace(/y[0-9]*/, '');\n else if(type === 'y') id = id.replace(/x[0-9]*/, '');\n\n return fullLayout[exports.id2name(id)];\n};\n\n// get an axis object of specified type from the containing trace\nexports.getFromTrace = function(gd, fullTrace, type) {\n var fullLayout = gd._fullLayout;\n var ax = null;\n\n if(Registry.traceIs(fullTrace, 'gl3d')) {\n var scene = fullTrace.scene;\n if(scene.substr(0, 5) === 'scene') {\n ax = fullLayout[scene][type + 'axis'];\n }\n } else {\n ax = exports.getFromId(gd, fullTrace[type + 'axis'] || type);\n }\n\n return ax;\n};\n\n// sort x, x2, x10, y, y2, y10...\nexports.idSort = function(id1, id2) {\n var letter1 = id1.charAt(0);\n var letter2 = id2.charAt(0);\n if(letter1 !== letter2) return letter1 > letter2 ? 1 : -1;\n return +(id1.substr(1) || 1) - +(id2.substr(1) || 1);\n};\n\n/*\n * An axis reference (e.g., the contents at the 'xref' key of an object) might\n * have extra information appended. Extract the axis ID only.\n *\n * ar: the axis reference string\n *\n */\nexports.ref2id = function(ar) {\n // This assumes ar has been coerced via coerceRef, and uses the shortcut of\n // checking if the first letter matches [xyz] to determine if it should\n // return the axis ID. Otherwise it returns false.\n return (/^[xyz]/.test(ar)) ? ar.split(' ')[0] : false;\n};\n\nfunction isFound(axId, list) {\n if(list && list.length) {\n for(var i = 0; i < list.length; i++) {\n if(list[i][axId]) return true;\n }\n }\n return false;\n}\n\nexports.isLinked = function(fullLayout, axId) {\n return (\n isFound(axId, fullLayout._axisMatchGroups) ||\n isFound(axId, fullLayout._axisConstraintGroups)\n );\n};\n\n},{\"../../registry\":647,\"./constants\":573}],571:[function(_dereq_,module,exports){\n'use strict';\n\nfunction findCategories(ax, opts) {\n var dataAttr = opts.dataAttr || ax._id.charAt(0);\n var lookup = {};\n var axData;\n var i, j;\n\n if(opts.axData) {\n // non-x/y case\n axData = opts.axData;\n } else {\n // x/y case\n axData = [];\n for(i = 0; i < opts.data.length; i++) {\n var trace = opts.data[i];\n if(trace[dataAttr + 'axis'] === ax._id) {\n axData.push(trace);\n }\n }\n }\n\n for(i = 0; i < axData.length; i++) {\n var vals = axData[i][dataAttr];\n for(j = 0; j < vals.length; j++) {\n var v = vals[j];\n if(v !== null && v !== undefined) {\n lookup[v] = 1;\n }\n }\n }\n\n return Object.keys(lookup);\n}\n\n/**\n * Fills in category* default and initial categories.\n *\n * @param {object} containerIn : input axis object\n * @param {object} containerOut : full axis object\n * @param {function} coerce : Lib.coerce fn wrapper\n * @param {object} opts :\n * - data {array} : (full) data trace\n * OR\n * - axData {array} : (full) data associated with axis being coerced here\n * - dataAttr {string} : attribute name corresponding to coordinate array\n */\nmodule.exports = function handleCategoryOrderDefaults(containerIn, containerOut, coerce, opts) {\n if(containerOut.type !== 'category') return;\n\n var arrayIn = containerIn.categoryarray;\n var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);\n\n // override default 'categoryorder' value when non-empty array is supplied\n var orderDefault;\n if(isValidArray) orderDefault = 'array';\n\n var order = coerce('categoryorder', orderDefault);\n var array;\n\n // coerce 'categoryarray' only in array order case\n if(order === 'array') {\n array = coerce('categoryarray');\n }\n\n // cannot set 'categoryorder' to 'array' with an invalid 'categoryarray'\n if(!isValidArray && order === 'array') {\n order = containerOut.categoryorder = 'trace';\n }\n\n // set up things for makeCalcdata\n if(order === 'trace') {\n containerOut._initialCategories = [];\n } else if(order === 'array') {\n containerOut._initialCategories = array.slice();\n } else {\n array = findCategories(containerOut, opts).sort();\n if(order === 'category ascending') {\n containerOut._initialCategories = array;\n } else if(order === 'category descending') {\n containerOut._initialCategories = array.reverse();\n }\n }\n};\n\n},{}],572:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('../../constants/numerical');\nvar ONEDAY = constants.ONEDAY;\nvar ONEWEEK = constants.ONEWEEK;\n\n/**\n * Return a validated dtick value for this axis\n *\n * @param {any} dtick: the candidate dtick. valid values are numbers and strings,\n * and further constrained depending on the axis type.\n * @param {string} axType: the axis type\n */\nexports.dtick = function(dtick, axType) {\n var isLog = axType === 'log';\n var isDate = axType === 'date';\n var isCat = axType === 'category';\n var dtickDflt = isDate ? ONEDAY : 1;\n\n if(!dtick) return dtickDflt;\n\n if(isNumeric(dtick)) {\n dtick = Number(dtick);\n if(dtick <= 0) return dtickDflt;\n if(isCat) {\n // category dtick must be positive integers\n return Math.max(1, Math.round(dtick));\n }\n if(isDate) {\n // date dtick must be at least 0.1ms (our current precision)\n return Math.max(0.1, dtick);\n }\n return dtick;\n }\n\n if(typeof dtick !== 'string' || !(isDate || isLog)) {\n return dtickDflt;\n }\n\n var prefix = dtick.charAt(0);\n var dtickNum = dtick.substr(1);\n dtickNum = isNumeric(dtickNum) ? Number(dtickNum) : 0;\n\n if((dtickNum <= 0) || !(\n // \"M\" gives ticks every (integer) n months\n (isDate && prefix === 'M' && dtickNum === Math.round(dtickNum)) ||\n // \"L\" gives ticks linearly spaced in data (not in position) every (float) f\n (isLog && prefix === 'L') ||\n // \"D1\" gives powers of 10 with all small digits between, \"D2\" gives only 2 and 5\n (isLog && prefix === 'D' && (dtickNum === 1 || dtickNum === 2))\n )) {\n return dtickDflt;\n }\n\n return dtick;\n};\n\n/**\n * Return a validated tick0 for this axis\n *\n * @param {any} tick0: the candidate tick0. Valid values are numbers and strings,\n * further constrained depending on the axis type\n * @param {string} axType: the axis type\n * @param {string} calendar: for date axes, the calendar to validate/convert with\n * @param {any} dtick: an already valid dtick. Only used for D1 and D2 log dticks,\n * which do not support tick0 at all.\n */\nexports.tick0 = function(tick0, axType, calendar, dtick) {\n if(axType === 'date') {\n return Lib.cleanDate(tick0,\n Lib.dateTick0(calendar, (dtick % ONEWEEK === 0) ? 1 : 0)\n );\n }\n if(dtick === 'D1' || dtick === 'D2') {\n // D1 and D2 modes ignore tick0 entirely\n return undefined;\n }\n // Aside from date axes, tick0 must be numeric\n return isNumeric(tick0) ? Number(tick0) : 0;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"fast-isnumeric\":190}],573:[function(_dereq_,module,exports){\n'use strict';\n\nvar counterRegex = _dereq_('../../lib/regex').counter;\n\nmodule.exports = {\n idRegex: {\n x: counterRegex('x', '( domain)?'),\n y: counterRegex('y', '( domain)?')\n },\n\n attrRegex: counterRegex('[xy]axis'),\n\n // axis match regular expression\n xAxisMatch: counterRegex('xaxis'),\n yAxisMatch: counterRegex('yaxis'),\n\n // pattern matching axis ids and names\n // note that this is more permissive than counterRegex, as\n // id2name, name2id, and cleanId accept \"x1\" etc\n AX_ID_PATTERN: /^[xyz][0-9]*( domain)?$/,\n AX_NAME_PATTERN: /^[xyz]axis[0-9]*$/,\n\n // and for 2D subplots\n SUBPLOT_PATTERN: /^x([0-9]*)y([0-9]*)$/,\n\n HOUR_PATTERN: 'hour',\n WEEKDAY_PATTERN: 'day of week',\n\n // pixels to move mouse before you stop clamping to starting point\n MINDRAG: 8,\n\n // smallest dimension allowed for a zoombox\n MINZOOM: 20,\n\n // width of axis drag regions\n DRAGGERSIZE: 20,\n\n // delay before a redraw (relayout) after smooth panning and zooming\n REDRAWDELAY: 50,\n\n // last resort axis ranges for x and y axes if we have no data\n DFLTRANGEX: [-1, 6],\n DFLTRANGEY: [-1, 4],\n\n // Layers to keep trace types in the right order\n // N.B. each 'unique' plot method must have its own layer\n traceLayerClasses: [\n 'imagelayer',\n 'heatmaplayer',\n 'contourcarpetlayer', 'contourlayer',\n 'funnellayer', 'waterfalllayer', 'barlayer',\n 'carpetlayer',\n 'violinlayer',\n 'boxlayer',\n 'ohlclayer',\n 'scattercarpetlayer', 'scatterlayer'\n ],\n\n clipOnAxisFalseQuery: [\n '.scatterlayer',\n '.barlayer',\n '.funnellayer',\n '.waterfalllayer'\n ],\n\n layerValue2layerClass: {\n 'above traces': 'above',\n 'below traces': 'below'\n }\n};\n\n},{\"../../lib/regex\":532}],574:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar autorange = _dereq_('./autorange');\nvar id2name = _dereq_('./axis_ids').id2name;\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar scaleZoom = _dereq_('./scale_zoom');\nvar setConvert = _dereq_('./set_convert');\n\nvar ALMOST_EQUAL = _dereq_('../../constants/numerical').ALMOST_EQUAL;\nvar FROM_BL = _dereq_('../../constants/alignment').FROM_BL;\n\nexports.handleDefaults = function(layoutIn, layoutOut, opts) {\n var axIds = opts.axIds;\n var axHasImage = opts.axHasImage;\n\n // sets of axes linked by `scaleanchor` OR `matches` along with the\n // scaleratios compounded together, populated in handleConstraintDefaults\n var constraintGroups = layoutOut._axisConstraintGroups = [];\n // similar to _axisConstraintGroups, but only matching axes\n var matchGroups = layoutOut._axisMatchGroups = [];\n\n var i, group, axId, axName, axIn, axOut, attr, val;\n\n for(i = 0; i < axIds.length; i++) {\n axName = id2name(axIds[i]);\n axIn = layoutIn[axName];\n axOut = layoutOut[axName];\n\n handleOneAxDefaults(axIn, axOut, {\n axIds: axIds,\n layoutOut: layoutOut,\n hasImage: axHasImage[axName]\n });\n }\n\n // save matchGroup on each matching axis\n function stash(groups, stashAttr) {\n for(i = 0; i < groups.length; i++) {\n group = groups[i];\n for(axId in group) {\n layoutOut[id2name(axId)][stashAttr] = group;\n }\n }\n }\n stash(matchGroups, '_matchGroup');\n\n // If any axis in a constraint group is fixedrange, they all get fixed\n // This covers matches axes, as they're now in the constraintgroup too\n // and have not yet been removed (if the group is *only* matching)\n for(i = 0; i < constraintGroups.length; i++) {\n group = constraintGroups[i];\n for(axId in group) {\n axOut = layoutOut[id2name(axId)];\n if(axOut.fixedrange) {\n for(var axId2 in group) {\n var axName2 = id2name(axId2);\n if((layoutIn[axName2] || {}).fixedrange === false) {\n Lib.warn(\n 'fixedrange was specified as false for axis ' +\n axName2 + ' but was overridden because another ' +\n 'axis in its constraint group has fixedrange true'\n );\n }\n layoutOut[axName2].fixedrange = true;\n }\n break;\n }\n }\n }\n\n // remove constraint groups that simply duplicate match groups\n i = 0;\n while(i < constraintGroups.length) {\n group = constraintGroups[i];\n for(axId in group) {\n axOut = layoutOut[id2name(axId)];\n if(axOut._matchGroup && Object.keys(axOut._matchGroup).length === Object.keys(group).length) {\n constraintGroups.splice(i, 1);\n i--;\n }\n break;\n }\n i++;\n }\n\n // save constraintGroup on each constrained axis\n stash(constraintGroups, '_constraintGroup');\n\n // make sure `matching` axes share values of necessary attributes\n // Precedence (base axis is the one that doesn't list a `matches`, ie others\n // all point to it):\n // (1) explicitly defined value in the base axis\n // (2) explicitly defined in another axis (arbitrary order)\n // (3) default in the base axis\n var matchAttrs = [\n 'constrain',\n 'range',\n 'autorange',\n 'rangemode',\n 'rangebreaks',\n 'categoryorder',\n 'categoryarray'\n ];\n var hasRange = false;\n var hasDayOfWeekBreaks = false;\n\n function setAttrVal() {\n val = axOut[attr];\n if(attr === 'rangebreaks') {\n hasDayOfWeekBreaks = axOut._hasDayOfWeekBreaks;\n }\n }\n\n for(i = 0; i < matchGroups.length; i++) {\n group = matchGroups[i];\n\n // find 'matching' range attrs\n for(var j = 0; j < matchAttrs.length; j++) {\n attr = matchAttrs[j];\n val = null;\n var baseAx;\n for(axId in group) {\n axName = id2name(axId);\n axIn = layoutIn[axName];\n axOut = layoutOut[axName];\n if(!(attr in axOut)) {\n continue;\n }\n if(!axOut.matches) {\n baseAx = axOut;\n // top priority: explicit value in base axis\n if(attr in axIn) {\n setAttrVal();\n break;\n }\n }\n if(val === null && attr in axIn) {\n // second priority: first explicit value in another axis\n setAttrVal();\n }\n }\n\n // special logic for coupling of range and autorange\n // if nobody explicitly specifies autorange, but someone does\n // explicitly specify range, autorange must be disabled.\n if(attr === 'range' && val) {\n hasRange = true;\n }\n if(attr === 'autorange' && val === null && hasRange) {\n val = false;\n }\n\n if(val === null && attr in baseAx) {\n // fallback: default value in base axis\n val = baseAx[attr];\n }\n // but we still might not have a value, which is fine.\n if(val !== null) {\n for(axId in group) {\n axOut = layoutOut[id2name(axId)];\n axOut[attr] = attr === 'range' ? val.slice() : val;\n\n if(attr === 'rangebreaks') {\n axOut._hasDayOfWeekBreaks = hasDayOfWeekBreaks;\n setConvert(axOut, layoutOut);\n }\n }\n }\n }\n }\n};\n\nfunction handleOneAxDefaults(axIn, axOut, opts) {\n var axIds = opts.axIds;\n var layoutOut = opts.layoutOut;\n var hasImage = opts.hasImage;\n var constraintGroups = layoutOut._axisConstraintGroups;\n var matchGroups = layoutOut._axisMatchGroups;\n var axId = axOut._id;\n var axLetter = axId.charAt(0);\n var splomStash = ((layoutOut._splomAxes || {})[axLetter] || {})[axId] || {};\n var thisID = axOut._id;\n var isX = thisID.charAt(0) === 'x';\n\n // Clear _matchGroup & _constraintGroup so relinkPrivateKeys doesn't keep\n // an old one around. If this axis is in a group we'll set this again later\n axOut._matchGroup = null;\n axOut._constraintGroup = null;\n\n function coerce(attr, dflt) {\n return Lib.coerce(axIn, axOut, layoutAttributes, attr, dflt);\n }\n\n // coerce the constraint mechanics even if this axis has no scaleanchor\n // because it may be the anchor of another axis.\n coerce('constrain', hasImage ? 'domain' : 'range');\n Lib.coerce(axIn, axOut, {\n constraintoward: {\n valType: 'enumerated',\n values: isX ? ['left', 'center', 'right'] : ['bottom', 'middle', 'top'],\n dflt: isX ? 'center' : 'middle'\n }\n }, 'constraintoward');\n\n // If this axis is already part of a constraint group, we can't\n // scaleanchor any other axis in that group, or we'd make a loop.\n // Filter axIds to enforce this, also matching axis types.\n var thisType = axOut.type;\n var i, idi;\n\n var linkableAxes = [];\n for(i = 0; i < axIds.length; i++) {\n idi = axIds[i];\n if(idi === thisID) continue;\n\n var axi = layoutOut[id2name(idi)];\n if(axi.type === thisType) {\n linkableAxes.push(idi);\n }\n }\n\n var thisGroup = getConstraintGroup(constraintGroups, thisID);\n if(thisGroup) {\n var linkableAxesNoLoops = [];\n for(i = 0; i < linkableAxes.length; i++) {\n idi = linkableAxes[i];\n if(!thisGroup[idi]) linkableAxesNoLoops.push(idi);\n }\n linkableAxes = linkableAxesNoLoops;\n }\n\n var canLink = linkableAxes.length;\n\n var matches, scaleanchor;\n\n if(canLink && (axIn.matches || splomStash.matches)) {\n matches = Lib.coerce(axIn, axOut, {\n matches: {\n valType: 'enumerated',\n values: linkableAxes,\n dflt: linkableAxes.indexOf(splomStash.matches) !== -1 ? splomStash.matches : undefined\n }\n }, 'matches');\n }\n\n // 'matches' wins over 'scaleanchor' - each axis can only specify one\n // constraint, but you can chain matches and scaleanchor constraints by\n // specifying them in separate axes.\n var scaleanchorDflt = hasImage && !isX ? axOut.anchor : undefined;\n if(canLink && !matches && (axIn.scaleanchor || scaleanchorDflt)) {\n scaleanchor = Lib.coerce(axIn, axOut, {\n scaleanchor: {\n valType: 'enumerated',\n values: linkableAxes\n }\n }, 'scaleanchor', scaleanchorDflt);\n }\n\n if(matches) {\n axOut._matchGroup = updateConstraintGroups(matchGroups, thisID, matches, 1);\n\n // Also include match constraints in the scale groups\n var matchedAx = layoutOut[id2name(matches)];\n var matchRatio = extent(layoutOut, axOut) / extent(layoutOut, matchedAx);\n if(isX !== (matches.charAt(0) === 'x')) {\n // We don't yet know the actual scale ratio of x/y matches constraints,\n // due to possible automargins, so just leave a placeholder for this:\n // 'x' means \"x size over y size\", 'y' means the inverse.\n // in principle in the constraint group you could get multiple of these.\n matchRatio = (isX ? 'x' : 'y') + matchRatio;\n }\n updateConstraintGroups(constraintGroups, thisID, matches, matchRatio);\n } else if(axIn.matches && axIds.indexOf(axIn.matches) !== -1) {\n Lib.warn('ignored ' + axOut._name + '.matches: \"' +\n axIn.matches + '\" to avoid an infinite loop');\n }\n\n if(scaleanchor) {\n var scaleratio = coerce('scaleratio');\n\n // TODO: I suppose I could do attribute.min: Number.MIN_VALUE to avoid zero,\n // but that seems hacky. Better way to say \"must be a positive number\"?\n // Of course if you use several super-tiny values you could eventually\n // force a product of these to zero and all hell would break loose...\n // Likewise with super-huge values.\n if(!scaleratio) scaleratio = axOut.scaleratio = 1;\n\n updateConstraintGroups(constraintGroups, thisID, scaleanchor, scaleratio);\n } else if(axIn.scaleanchor && axIds.indexOf(axIn.scaleanchor) !== -1) {\n Lib.warn('ignored ' + axOut._name + '.scaleanchor: \"' +\n axIn.scaleanchor + '\" to avoid either an infinite loop ' +\n 'and possibly inconsistent scaleratios, or because this axis ' +\n 'declares a *matches* constraint.');\n }\n}\n\nfunction extent(layoutOut, ax) {\n var domain = ax.domain;\n if(!domain) {\n // at this point overlaying axes haven't yet inherited their main domains\n // TODO: constrain: domain with overlaying axes is likely a bug.\n domain = layoutOut[id2name(ax.overlaying)].domain;\n }\n return domain[1] - domain[0];\n}\n\nfunction getConstraintGroup(groups, thisID) {\n for(var i = 0; i < groups.length; i++) {\n if(groups[i][thisID]) {\n return groups[i];\n }\n }\n return null;\n}\n\n/*\n * Add this axis to the axis constraint groups, which is the collection\n * of axes that are all constrained together on scale (or matching).\n *\n * constraintGroups: a list of objects. each object is\n * {axis_id: scale_within_group}, where scale_within_group is\n * only important relative to the rest of the group, and defines\n * the relative scales between all axes in the group\n *\n * thisGroup: the group the current axis is already in\n * thisID: the id if the current axis\n * thatID: the id of the axis to scale it with\n * scaleratio: the ratio of this axis to the thatID axis\n */\nfunction updateConstraintGroups(constraintGroups, thisID, thatID, scaleratio) {\n var i, j, groupi, keyj, thisGroupIndex;\n\n var thisGroup = getConstraintGroup(constraintGroups, thisID);\n\n if(thisGroup === null) {\n thisGroup = {};\n thisGroup[thisID] = 1;\n thisGroupIndex = constraintGroups.length;\n constraintGroups.push(thisGroup);\n } else {\n thisGroupIndex = constraintGroups.indexOf(thisGroup);\n }\n\n var thisGroupKeys = Object.keys(thisGroup);\n\n // we know that this axis isn't in any other groups, but we don't know\n // about the thatID axis. If it is, we need to merge the groups.\n for(i = 0; i < constraintGroups.length; i++) {\n groupi = constraintGroups[i];\n if(i !== thisGroupIndex && groupi[thatID]) {\n var baseScale = groupi[thatID];\n for(j = 0; j < thisGroupKeys.length; j++) {\n keyj = thisGroupKeys[j];\n groupi[keyj] = multiplyScales(baseScale, multiplyScales(scaleratio, thisGroup[keyj]));\n }\n constraintGroups.splice(thisGroupIndex, 1);\n return;\n }\n }\n\n // otherwise, we insert the new thatID axis as the base scale (1)\n // in its group, and scale the rest of the group to it\n if(scaleratio !== 1) {\n for(j = 0; j < thisGroupKeys.length; j++) {\n var key = thisGroupKeys[j];\n thisGroup[key] = multiplyScales(scaleratio, thisGroup[key]);\n }\n }\n thisGroup[thatID] = 1;\n}\n\n// scales may be numbers or 'x1.3', 'yy4.5' etc to multiply by as-yet-unknown\n// ratios between x and y plot sizes n times\nfunction multiplyScales(a, b) {\n var aPrefix = '';\n var bPrefix = '';\n var aLen, bLen;\n\n if(typeof a === 'string') {\n aPrefix = a.match(/^[xy]*/)[0];\n aLen = aPrefix.length;\n a = +a.substr(aLen);\n }\n\n if(typeof b === 'string') {\n bPrefix = b.match(/^[xy]*/)[0];\n bLen = bPrefix.length;\n b = +b.substr(bLen);\n }\n\n var c = a * b;\n\n // just two numbers\n if(!aLen && !bLen) {\n return c;\n }\n\n // one or more prefixes of the same type\n if(!aLen || !bLen || aPrefix.charAt(0) === bPrefix.charAt(0)) {\n return aPrefix + bPrefix + (a * b);\n }\n\n // x and y cancel each other out exactly - back to a number\n if(aLen === bLen) {\n return c;\n }\n\n // partial cancelation of prefixes\n return (aLen > bLen ? aPrefix.substr(bLen) : bPrefix.substr(aLen)) + c;\n}\n\nfunction finalRatios(group, fullLayout) {\n var size = fullLayout._size;\n var yRatio = size.h / size.w;\n var out = {};\n var keys = Object.keys(group);\n for(var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var val = group[key];\n\n if(typeof val === 'string') {\n var prefix = val.match(/^[xy]*/)[0];\n var pLen = prefix.length;\n val = +val.substr(pLen);\n var mult = prefix.charAt(0) === 'y' ? yRatio : (1 / yRatio);\n for(var j = 0; j < pLen; j++) {\n val *= mult;\n }\n }\n\n out[key] = val;\n }\n return out;\n}\n\nexports.enforce = function enforce(gd) {\n var fullLayout = gd._fullLayout;\n var constraintGroups = fullLayout._axisConstraintGroups || [];\n\n var i, j, group, axisID, ax, normScale, mode, factor;\n\n // matching constraints are handled in the autorange code when autoranged,\n // or in the supplyDefaults code when explicitly ranged.\n // now we just need to handle scaleanchor constraints\n // matches constraints that chain with scaleanchor constraints are included\n // here too, but because matches has already been satisfied,\n // any changes here should preserve that.\n for(i = 0; i < constraintGroups.length; i++) {\n group = finalRatios(constraintGroups[i], fullLayout);\n var axisIDs = Object.keys(group);\n\n var minScale = Infinity;\n var maxScale = 0;\n // mostly matchScale will be the same as minScale\n // ie we expand axis ranges to encompass *everything*\n // that's currently in any of their ranges, but during\n // autorange of a subset of axes we will ignore other\n // axes for this purpose.\n var matchScale = Infinity;\n var normScales = {};\n var axes = {};\n var hasAnyDomainConstraint = false;\n\n // find the (normalized) scale of each axis in the group\n for(j = 0; j < axisIDs.length; j++) {\n axisID = axisIDs[j];\n axes[axisID] = ax = fullLayout[id2name(axisID)];\n\n if(ax._inputDomain) ax.domain = ax._inputDomain.slice();\n else ax._inputDomain = ax.domain.slice();\n\n if(!ax._inputRange) ax._inputRange = ax.range.slice();\n\n // set axis scale here so we can use _m rather than\n // having to calculate it from length and range\n ax.setScale();\n\n // abs: inverted scales still satisfy the constraint\n normScales[axisID] = normScale = Math.abs(ax._m) / group[axisID];\n minScale = Math.min(minScale, normScale);\n if(ax.constrain === 'domain' || !ax._constraintShrinkable) {\n matchScale = Math.min(matchScale, normScale);\n }\n\n // this has served its purpose, so remove it\n delete ax._constraintShrinkable;\n maxScale = Math.max(maxScale, normScale);\n\n if(ax.constrain === 'domain') hasAnyDomainConstraint = true;\n }\n\n // Do we have a constraint mismatch? Give a small buffer for rounding errors\n if(minScale > ALMOST_EQUAL * maxScale && !hasAnyDomainConstraint) continue;\n\n // now increase any ranges we need to until all normalized scales are equal\n for(j = 0; j < axisIDs.length; j++) {\n axisID = axisIDs[j];\n normScale = normScales[axisID];\n ax = axes[axisID];\n mode = ax.constrain;\n\n // even if the scale didn't change, if we're shrinking domain\n // we need to recalculate in case `constraintoward` changed\n if(normScale !== matchScale || mode === 'domain') {\n factor = normScale / matchScale;\n\n if(mode === 'range') {\n scaleZoom(ax, factor);\n } else {\n // mode === 'domain'\n\n var inputDomain = ax._inputDomain;\n var domainShrunk = (ax.domain[1] - ax.domain[0]) /\n (inputDomain[1] - inputDomain[0]);\n var rangeShrunk = (ax.r2l(ax.range[1]) - ax.r2l(ax.range[0])) /\n (ax.r2l(ax._inputRange[1]) - ax.r2l(ax._inputRange[0]));\n\n factor /= domainShrunk;\n\n if(factor * rangeShrunk < 1) {\n // we've asked to magnify the axis more than we can just by\n // enlarging the domain - so we need to constrict range\n ax.domain = ax._input.domain = inputDomain.slice();\n scaleZoom(ax, factor);\n continue;\n }\n\n if(rangeShrunk < 1) {\n // the range has previously been constricted by ^^, but we've\n // switched to the domain-constricted regime, so reset range\n ax.range = ax._input.range = ax._inputRange.slice();\n factor *= rangeShrunk;\n }\n\n if(ax.autorange) {\n /*\n * range & factor may need to change because range was\n * calculated for the larger scaling, so some pixel\n * paddings may get cut off when we reduce the domain.\n *\n * This is easier than the regular autorange calculation\n * because we already know the scaling `m`, but we still\n * need to cut out impossible constraints (like\n * annotations with super-long arrows). That's what\n * outerMin/Max are for - if the expansion was going to\n * go beyond the original domain, it must be impossible\n */\n var rl0 = ax.r2l(ax.range[0]);\n var rl1 = ax.r2l(ax.range[1]);\n var rangeCenter = (rl0 + rl1) / 2;\n var rangeMin = rangeCenter;\n var rangeMax = rangeCenter;\n var halfRange = Math.abs(rl1 - rangeCenter);\n // extra tiny bit for rounding errors, in case we actually\n // *are* expanding to the full domain\n var outerMin = rangeCenter - halfRange * factor * 1.0001;\n var outerMax = rangeCenter + halfRange * factor * 1.0001;\n var getPadMin = autorange.makePadFn(fullLayout, ax, 0);\n var getPadMax = autorange.makePadFn(fullLayout, ax, 1);\n\n updateDomain(ax, factor);\n var m = Math.abs(ax._m);\n var extremes = autorange.concatExtremes(gd, ax);\n var minArray = extremes.min;\n var maxArray = extremes.max;\n var newVal;\n var k;\n\n for(k = 0; k < minArray.length; k++) {\n newVal = minArray[k].val - getPadMin(minArray[k]) / m;\n if(newVal > outerMin && newVal < rangeMin) {\n rangeMin = newVal;\n }\n }\n\n for(k = 0; k < maxArray.length; k++) {\n newVal = maxArray[k].val + getPadMax(maxArray[k]) / m;\n if(newVal < outerMax && newVal > rangeMax) {\n rangeMax = newVal;\n }\n }\n\n var domainExpand = (rangeMax - rangeMin) / (2 * halfRange);\n factor /= domainExpand;\n\n rangeMin = ax.l2r(rangeMin);\n rangeMax = ax.l2r(rangeMax);\n ax.range = ax._input.range = (rl0 < rl1) ?\n [rangeMin, rangeMax] : [rangeMax, rangeMin];\n }\n\n updateDomain(ax, factor);\n }\n }\n }\n }\n};\n\nexports.getAxisGroup = function getAxisGroup(fullLayout, axId) {\n var matchGroups = fullLayout._axisMatchGroups;\n\n for(var i = 0; i < matchGroups.length; i++) {\n var group = matchGroups[i];\n if(group[axId]) return 'g' + i;\n }\n return axId;\n};\n\n// For use before autoranging, check if this axis was previously constrained\n// by domain but no longer is\nexports.clean = function clean(gd, ax) {\n if(ax._inputDomain) {\n var isConstrained = false;\n var axId = ax._id;\n var constraintGroups = gd._fullLayout._axisConstraintGroups;\n for(var j = 0; j < constraintGroups.length; j++) {\n if(constraintGroups[j][axId]) {\n isConstrained = true;\n break;\n }\n }\n if(!isConstrained || ax.constrain !== 'domain') {\n ax._input.domain = ax.domain = ax._inputDomain;\n delete ax._inputDomain;\n }\n }\n};\n\nfunction updateDomain(ax, factor) {\n var inputDomain = ax._inputDomain;\n var centerFraction = FROM_BL[ax.constraintoward];\n var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction;\n\n ax.domain = ax._input.domain = [\n center + (inputDomain[0] - center) / factor,\n center + (inputDomain[1] - center) / factor\n ];\n ax.setScale();\n}\n\n},{\"../../constants/alignment\":483,\"../../constants/numerical\":491,\"../../lib\":515,\"./autorange\":565,\"./axis_ids\":570,\"./layout_attributes\":579,\"./scale_zoom\":584,\"./set_convert\":585}],575:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar tinycolor = _dereq_('tinycolor2');\nvar supportsPassive = _dereq_('has-passive-events');\n\nvar Registry = _dereq_('../../registry');\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Fx = _dereq_('../../components/fx');\nvar Axes = _dereq_('./axes');\nvar setCursor = _dereq_('../../lib/setcursor');\nvar dragElement = _dereq_('../../components/dragelement');\nvar helpers = _dereq_('../../components/dragelement/helpers');\nvar selectingOrDrawing = helpers.selectingOrDrawing;\nvar freeMode = helpers.freeMode;\n\nvar FROM_TL = _dereq_('../../constants/alignment').FROM_TL;\nvar clearGlCanvases = _dereq_('../../lib/clear_gl_canvases');\nvar redrawReglTraces = _dereq_('../../plot_api/subroutines').redrawReglTraces;\n\nvar Plots = _dereq_('../plots');\n\nvar getFromId = _dereq_('./axis_ids').getFromId;\nvar prepSelect = _dereq_('../../components/selections').prepSelect;\nvar clearOutline = _dereq_('../../components/selections').clearOutline;\nvar selectOnClick = _dereq_('../../components/selections').selectOnClick;\nvar scaleZoom = _dereq_('./scale_zoom');\n\nvar constants = _dereq_('./constants');\nvar MINDRAG = constants.MINDRAG;\nvar MINZOOM = constants.MINZOOM;\n\n// flag for showing \"doubleclick to zoom out\" only at the beginning\nvar SHOWZOOMOUTTIP = true;\n\n// dragBox: create an element to drag one or more axis ends\n// inputs:\n// plotinfo - which subplot are we making dragboxes on?\n// x,y,w,h - left, top, width, height of the box\n// ns - how does this drag the vertical axis?\n// 'n' - top only\n// 's' - bottom only\n// 'ns' - top and bottom together, difference unchanged\n// ew - same for horizontal axis\nfunction makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {\n // mouseDown stores ms of first mousedown event in the last\n // `gd._context.doubleClickDelay` ms on the drag bars\n // numClicks stores how many mousedowns have been seen\n // within `gd._context.doubleClickDelay` so we can check for click or doubleclick events\n // dragged stores whether a drag has occurred, so we don't have to\n // redraw unnecessarily, ie if no move bigger than MINDRAG or MINZOOM px\n var zoomlayer = gd._fullLayout._zoomlayer;\n var isMainDrag = (ns + ew === 'nsew');\n var singleEnd = (ns + ew).length === 1;\n\n // main subplot x and y (i.e. found in plotinfo - the main ones)\n var xa0, ya0;\n // {ax._id: ax} hash objects\n var xaHash, yaHash;\n // xaHash/yaHash values (arrays)\n var xaxes, yaxes;\n // main axis offsets\n var xs, ys;\n // main axis lengths\n var pw, ph;\n // contains keys 'xaHash', 'yaHash', 'xaxes', and 'yaxes'\n // which are the x/y {ax._id: ax} hash objects and their values\n // for linked axis relative to this subplot\n var links;\n // similar to `links` but for matching axes\n var matches;\n // set to ew/ns val when active, set to '' when inactive\n var xActive, yActive;\n // are all axes in this subplot are fixed?\n var allFixedRanges;\n // do we need to edit x/y ranges?\n var editX, editY;\n // graph-wide optimization flags\n var hasScatterGl, hasSplom, hasSVG;\n // collected changes to be made to the plot by relayout at the end\n var updates;\n // scaling factors from css transform\n var scaleX;\n var scaleY;\n\n function recomputeAxisLists() {\n xa0 = plotinfo.xaxis;\n ya0 = plotinfo.yaxis;\n pw = xa0._length;\n ph = ya0._length;\n xs = xa0._offset;\n ys = ya0._offset;\n\n xaHash = {};\n xaHash[xa0._id] = xa0;\n yaHash = {};\n yaHash[ya0._id] = ya0;\n\n // if we're dragging two axes at once, also drag overlays\n if(ns && ew) {\n var overlays = plotinfo.overlays;\n for(var i = 0; i < overlays.length; i++) {\n var xa = overlays[i].xaxis;\n xaHash[xa._id] = xa;\n var ya = overlays[i].yaxis;\n yaHash[ya._id] = ya;\n }\n }\n\n xaxes = hashValues(xaHash);\n yaxes = hashValues(yaHash);\n xActive = isDirectionActive(xaxes, ew);\n yActive = isDirectionActive(yaxes, ns);\n allFixedRanges = !yActive && !xActive;\n\n matches = calcLinks(gd, gd._fullLayout._axisMatchGroups, xaHash, yaHash);\n links = calcLinks(gd, gd._fullLayout._axisConstraintGroups, xaHash, yaHash, matches);\n var spConstrained = links.isSubplotConstrained || matches.isSubplotConstrained;\n editX = ew || spConstrained;\n editY = ns || spConstrained;\n\n var fullLayout = gd._fullLayout;\n hasScatterGl = fullLayout._has('scattergl');\n hasSplom = fullLayout._has('splom');\n hasSVG = fullLayout._has('svg');\n }\n\n recomputeAxisLists();\n\n var cursor = getDragCursor(yActive + xActive, gd._fullLayout.dragmode, isMainDrag);\n var dragger = makeRectDragger(plotinfo, ns + ew + 'drag', cursor, x, y, w, h);\n\n // still need to make the element if the axes are disabled\n // but nuke its events (except for maindrag which needs them for hover)\n // and stop there\n if(allFixedRanges && !isMainDrag) {\n dragger.onmousedown = null;\n dragger.style.pointerEvents = 'none';\n return dragger;\n }\n\n var dragOptions = {\n element: dragger,\n gd: gd,\n plotinfo: plotinfo\n };\n\n dragOptions.prepFn = function(e, startX, startY) {\n var dragModePrev = dragOptions.dragmode;\n var dragModeNow = gd._fullLayout.dragmode;\n if(dragModeNow !== dragModePrev) {\n dragOptions.dragmode = dragModeNow;\n }\n\n recomputeAxisLists();\n\n scaleX = gd._fullLayout._invScaleX;\n scaleY = gd._fullLayout._invScaleY;\n\n if(!allFixedRanges) {\n if(isMainDrag) {\n // main dragger handles all drag modes, and changes\n // to pan (or to zoom if it already is pan) on shift\n if(e.shiftKey) {\n if(dragModeNow === 'pan') dragModeNow = 'zoom';\n else if(!selectingOrDrawing(dragModeNow)) dragModeNow = 'pan';\n } else if(e.ctrlKey) {\n dragModeNow = 'pan';\n }\n } else {\n // all other draggers just pan\n dragModeNow = 'pan';\n }\n }\n\n if(freeMode(dragModeNow)) dragOptions.minDrag = 1;\n else dragOptions.minDrag = undefined;\n\n if(selectingOrDrawing(dragModeNow)) {\n dragOptions.xaxes = xaxes;\n dragOptions.yaxes = yaxes;\n // this attaches moveFn, clickFn, doneFn on dragOptions\n prepSelect(e, startX, startY, dragOptions, dragModeNow);\n } else {\n dragOptions.clickFn = clickFn;\n if(selectingOrDrawing(dragModePrev)) {\n // TODO Fix potential bug\n // Note: clearing / resetting selection state only happens, when user\n // triggers at least one interaction in pan/zoom mode. Otherwise, the\n // select/lasso outlines are deleted (in plots.js.cleanPlot) but the selection\n // cache isn't cleared. So when the user switches back to select/lasso and\n // 'adds to a selection' with Shift, the \"old\", seemingly removed outlines\n // are redrawn again because the selection cache still holds their coordinates.\n // However, this isn't easily solved, since plots.js would need\n // to have a reference to the dragOptions object (which holds the\n // selection cache).\n clearAndResetSelect();\n }\n\n if(!allFixedRanges) {\n if(dragModeNow === 'zoom') {\n dragOptions.moveFn = zoomMove;\n dragOptions.doneFn = zoomDone;\n\n // zoomMove takes care of the threshold, but we need to\n // minimize this so that constrained zoom boxes will flip\n // orientation at the right place\n dragOptions.minDrag = 1;\n\n zoomPrep(e, startX, startY);\n } else if(dragModeNow === 'pan') {\n dragOptions.moveFn = plotDrag;\n dragOptions.doneFn = dragTail;\n }\n }\n }\n\n gd._fullLayout._redrag = function() {\n var dragDataNow = gd._dragdata;\n\n if(dragDataNow && dragDataNow.element === dragger) {\n var dragModeNow = gd._fullLayout.dragmode;\n\n if(!selectingOrDrawing(dragModeNow)) {\n recomputeAxisLists();\n updateSubplots([0, 0, pw, ph]);\n dragOptions.moveFn(dragDataNow.dx, dragDataNow.dy);\n }\n }\n };\n };\n\n function clearAndResetSelect() {\n // clear selection polygon cache (if any)\n dragOptions.plotinfo.selection = false;\n // clear selection outlines\n clearOutline(gd);\n }\n\n function clickFn(numClicks, evt) {\n var gd = dragOptions.gd;\n if(gd._fullLayout._activeShapeIndex >= 0) {\n gd._fullLayout._deactivateShape(gd);\n return;\n }\n\n var clickmode = gd._fullLayout.clickmode;\n\n removeZoombox(gd);\n\n if(numClicks === 2 && !singleEnd) doubleClick();\n\n if(isMainDrag) {\n if(clickmode.indexOf('select') > -1) {\n selectOnClick(evt, gd, xaxes, yaxes, plotinfo.id, dragOptions);\n }\n\n if(clickmode.indexOf('event') > -1) {\n Fx.click(gd, evt, plotinfo.id);\n }\n } else if(numClicks === 1 && singleEnd) {\n var ax = ns ? ya0 : xa0;\n var end = (ns === 's' || ew === 'w') ? 0 : 1;\n var attrStr = ax._name + '.range[' + end + ']';\n var initialText = getEndText(ax, end);\n var hAlign = 'left';\n var vAlign = 'middle';\n\n if(ax.fixedrange) return;\n\n if(ns) {\n vAlign = (ns === 'n') ? 'top' : 'bottom';\n if(ax.side === 'right') hAlign = 'right';\n } else if(ew === 'e') hAlign = 'right';\n\n if(gd._context.showAxisRangeEntryBoxes) {\n d3.select(dragger)\n .call(svgTextUtils.makeEditable, {\n gd: gd,\n immediate: true,\n background: gd._fullLayout.paper_bgcolor,\n text: String(initialText),\n fill: ax.tickfont ? ax.tickfont.color : '#444',\n horizontalAlign: hAlign,\n verticalAlign: vAlign\n })\n .on('edit', function(text) {\n var v = ax.d2r(text);\n if(v !== undefined) {\n Registry.call('_guiRelayout', gd, attrStr, v);\n }\n });\n }\n }\n }\n\n dragElement.init(dragOptions);\n\n // x/y px position at start of drag\n var x0, y0;\n // bbox object of the zoombox\n var box;\n // luminance of bg behind zoombox\n var lum;\n // zoombox path outline\n var path0;\n // is zoombox dimmed (during drag)\n var dimmed;\n // 'x'-only, 'y' or 'xy' zooming\n var zoomMode;\n // zoombox d3 selection\n var zb;\n // zoombox corner d3 selection\n var corners;\n // zoom takes over minDrag, so it also has to take over gd._dragged\n var zoomDragged;\n\n function zoomPrep(e, startX, startY) {\n var dragBBox = dragger.getBoundingClientRect();\n x0 = startX - dragBBox.left;\n y0 = startY - dragBBox.top;\n\n gd._fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(gd._fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n box = {l: x0, r: x0, w: 0, t: y0, b: y0, h: 0};\n lum = gd._hmpixcount ?\n (gd._hmlumcount / gd._hmpixcount) :\n tinycolor(gd._fullLayout.plot_bgcolor).getLuminance();\n path0 = 'M0,0H' + pw + 'V' + ph + 'H0V0';\n dimmed = false;\n zoomMode = 'xy';\n zoomDragged = false;\n zb = makeZoombox(zoomlayer, lum, xs, ys, path0);\n corners = makeCorners(zoomlayer, xs, ys);\n }\n\n function zoomMove(dx0, dy0) {\n if(gd._transitioningWithDuration) {\n return false;\n }\n\n var x1 = Math.max(0, Math.min(pw, scaleX * dx0 + x0));\n var y1 = Math.max(0, Math.min(ph, scaleY * dy0 + y0));\n var dx = Math.abs(x1 - x0);\n var dy = Math.abs(y1 - y0);\n\n box.l = Math.min(x0, x1);\n box.r = Math.max(x0, x1);\n box.t = Math.min(y0, y1);\n box.b = Math.max(y0, y1);\n\n function noZoom() {\n zoomMode = '';\n box.r = box.l;\n box.t = box.b;\n corners.attr('d', 'M0,0Z');\n }\n\n if(links.isSubplotConstrained) {\n if(dx > MINZOOM || dy > MINZOOM) {\n zoomMode = 'xy';\n if(dx / pw > dy / ph) {\n dy = dx * ph / pw;\n if(y0 > y1) box.t = y0 - dy;\n else box.b = y0 + dy;\n } else {\n dx = dy * pw / ph;\n if(x0 > x1) box.l = x0 - dx;\n else box.r = x0 + dx;\n }\n corners.attr('d', xyCorners(box));\n } else {\n noZoom();\n }\n } else if(matches.isSubplotConstrained) {\n if(dx > MINZOOM || dy > MINZOOM) {\n zoomMode = 'xy';\n\n var r0 = Math.min(box.l / pw, (ph - box.b) / ph);\n var r1 = Math.max(box.r / pw, (ph - box.t) / ph);\n\n box.l = r0 * pw;\n box.r = r1 * pw;\n box.b = (1 - r0) * ph;\n box.t = (1 - r1) * ph;\n corners.attr('d', xyCorners(box));\n } else {\n noZoom();\n }\n } else if(!yActive || dy < Math.min(Math.max(dx * 0.6, MINDRAG), MINZOOM)) {\n // look for small drags in one direction or the other,\n // and only drag the other axis\n\n if(dx < MINDRAG || !xActive) {\n noZoom();\n } else {\n box.t = 0;\n box.b = ph;\n zoomMode = 'x';\n corners.attr('d', xCorners(box, y0));\n }\n } else if(!xActive || dx < Math.min(dy * 0.6, MINZOOM)) {\n box.l = 0;\n box.r = pw;\n zoomMode = 'y';\n corners.attr('d', yCorners(box, x0));\n } else {\n zoomMode = 'xy';\n corners.attr('d', xyCorners(box));\n }\n box.w = box.r - box.l;\n box.h = box.b - box.t;\n\n if(zoomMode) zoomDragged = true;\n gd._dragged = zoomDragged;\n\n updateZoombox(zb, corners, box, path0, dimmed, lum);\n computeZoomUpdates();\n gd.emit('plotly_relayouting', updates);\n dimmed = true;\n }\n\n function computeZoomUpdates() {\n updates = {};\n\n // TODO: edit linked axes in zoomAxRanges and in dragTail\n if(zoomMode === 'xy' || zoomMode === 'x') {\n zoomAxRanges(xaxes, box.l / pw, box.r / pw, updates, links.xaxes);\n updateMatchedAxRange('x', updates);\n }\n if(zoomMode === 'xy' || zoomMode === 'y') {\n zoomAxRanges(yaxes, (ph - box.b) / ph, (ph - box.t) / ph, updates, links.yaxes);\n updateMatchedAxRange('y', updates);\n }\n }\n\n function zoomDone() {\n computeZoomUpdates();\n removeZoombox(gd);\n dragTail();\n showDoubleClickNotifier(gd);\n }\n\n // scroll zoom, on all draggers except corners\n var scrollViewBox = [0, 0, pw, ph];\n // wait a little after scrolling before redrawing\n var redrawTimer = null;\n var REDRAWDELAY = constants.REDRAWDELAY;\n var mainplot = plotinfo.mainplot ? gd._fullLayout._plots[plotinfo.mainplot] : plotinfo;\n\n function zoomWheel(e) {\n // deactivate mousewheel scrolling on embedded graphs\n // devs can override this with layout._enablescrollzoom,\n // but _ ensures this setting won't leave their page\n if(!gd._context._scrollZoom.cartesian && !gd._fullLayout._enablescrollzoom) {\n return;\n }\n\n clearAndResetSelect();\n\n // If a transition is in progress, then disable any behavior:\n if(gd._transitioningWithDuration) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n recomputeAxisLists();\n\n clearTimeout(redrawTimer);\n\n var wheelDelta = -e.deltaY;\n if(!isFinite(wheelDelta)) wheelDelta = e.wheelDelta / 10;\n if(!isFinite(wheelDelta)) {\n Lib.log('Did not find wheel motion attributes: ', e);\n return;\n }\n\n var zoom = Math.exp(-Math.min(Math.max(wheelDelta, -20), 20) / 200);\n var gbb = mainplot.draglayer.select('.nsewdrag').node().getBoundingClientRect();\n var xfrac = (e.clientX - gbb.left) / gbb.width;\n var yfrac = (gbb.bottom - e.clientY) / gbb.height;\n var i;\n\n function zoomWheelOneAxis(ax, centerFraction, zoom) {\n if(ax.fixedrange) return;\n\n var axRange = Lib.simpleMap(ax.range, ax.r2l);\n var v0 = axRange[0] + (axRange[1] - axRange[0]) * centerFraction;\n function doZoom(v) { return ax.l2r(v0 + (v - v0) * zoom); }\n ax.range = axRange.map(doZoom);\n }\n\n if(editX) {\n // if we're only zooming this axis because of constraints,\n // zoom it about the center\n if(!ew) xfrac = 0.5;\n\n for(i = 0; i < xaxes.length; i++) {\n zoomWheelOneAxis(xaxes[i], xfrac, zoom);\n }\n updateMatchedAxRange('x');\n\n scrollViewBox[2] *= zoom;\n scrollViewBox[0] += scrollViewBox[2] * xfrac * (1 / zoom - 1);\n }\n if(editY) {\n if(!ns) yfrac = 0.5;\n\n for(i = 0; i < yaxes.length; i++) {\n zoomWheelOneAxis(yaxes[i], yfrac, zoom);\n }\n updateMatchedAxRange('y');\n\n scrollViewBox[3] *= zoom;\n scrollViewBox[1] += scrollViewBox[3] * (1 - yfrac) * (1 / zoom - 1);\n }\n\n // viewbox redraw at first\n updateSubplots(scrollViewBox);\n ticksAndAnnotations();\n\n gd.emit('plotly_relayouting', updates);\n\n // then replot after a delay to make sure\n // no more scrolling is coming\n redrawTimer = setTimeout(function() {\n if(!gd._fullLayout) return;\n scrollViewBox = [0, 0, pw, ph];\n dragTail();\n }, REDRAWDELAY);\n\n e.preventDefault();\n return;\n }\n\n // everything but the corners gets wheel zoom\n if(ns.length * ew.length !== 1) {\n attachWheelEventHandler(dragger, zoomWheel);\n }\n\n // plotDrag: move the plot in response to a drag\n function plotDrag(dx, dy) {\n dx = dx * scaleX;\n dy = dy * scaleY;\n // If a transition is in progress, then disable any behavior:\n if(gd._transitioningWithDuration) {\n return;\n }\n\n // prevent axis drawing from monkeying with margins until we're done\n gd._fullLayout._replotting = true;\n\n if(xActive === 'ew' || yActive === 'ns') {\n var spDx = xActive ? -dx : 0;\n var spDy = yActive ? -dy : 0;\n if(matches.isSubplotConstrained) {\n if(xActive && yActive) {\n var frac = (dx / pw - dy / ph) / 2;\n dx = frac * pw;\n dy = -frac * ph;\n spDx = -dx;\n spDy = -dy;\n }\n if(yActive) {\n spDx = -spDy * pw / ph;\n } else {\n spDy = -spDx * ph / pw;\n }\n }\n if(xActive) {\n dragAxList(xaxes, dx);\n updateMatchedAxRange('x');\n }\n if(yActive) {\n dragAxList(yaxes, dy);\n updateMatchedAxRange('y');\n }\n updateSubplots([spDx, spDy, pw, ph]);\n ticksAndAnnotations();\n gd.emit('plotly_relayouting', updates);\n return;\n }\n\n // dz: set a new value for one end (0 or 1) of an axis array axArray,\n // and return a pixel shift for that end for the viewbox\n // based on pixel drag distance d\n // TODO: this makes (generally non-fatal) errors when you get\n // near floating point limits\n function dz(axArray, end, d) {\n var otherEnd = 1 - end;\n var movedAx;\n var newLinearizedEnd;\n for(var i = 0; i < axArray.length; i++) {\n var axi = axArray[i];\n if(axi.fixedrange) continue;\n movedAx = axi;\n newLinearizedEnd = axi._rl[otherEnd] +\n (axi._rl[end] - axi._rl[otherEnd]) / dZoom(d / axi._length);\n var newEnd = axi.l2r(newLinearizedEnd);\n\n // if l2r comes back false or undefined, it means we've dragged off\n // the end of valid ranges - so stop.\n if(newEnd !== false && newEnd !== undefined) axi.range[end] = newEnd;\n }\n return movedAx._length * (movedAx._rl[end] - newLinearizedEnd) /\n (movedAx._rl[end] - movedAx._rl[otherEnd]);\n }\n\n var dxySign = ((xActive === 'w') === (yActive === 'n')) ? 1 : -1;\n if(xActive && yActive && (links.isSubplotConstrained || matches.isSubplotConstrained)) {\n // dragging a corner of a constrained subplot:\n // respect the fixed corner, but harmonize dx and dy\n var dxyFraction = (dx / pw + dxySign * dy / ph) / 2;\n dx = dxyFraction * pw;\n dy = dxySign * dxyFraction * ph;\n }\n\n var xStart, yStart;\n\n if(xActive === 'w') dx = dz(xaxes, 0, dx);\n else if(xActive === 'e') dx = dz(xaxes, 1, -dx);\n else if(!xActive) dx = 0;\n\n if(yActive === 'n') dy = dz(yaxes, 1, dy);\n else if(yActive === 's') dy = dz(yaxes, 0, -dy);\n else if(!yActive) dy = 0;\n\n xStart = (xActive === 'w') ? dx : 0;\n yStart = (yActive === 'n') ? dy : 0;\n\n if(\n (links.isSubplotConstrained && !matches.isSubplotConstrained) ||\n // NW or SE on matching axes - create a symmetric zoom\n (matches.isSubplotConstrained && xActive && yActive && dxySign > 0)\n ) {\n var i;\n if(matches.isSubplotConstrained || (!xActive && yActive.length === 1)) {\n // dragging one end of the y axis of a constrained subplot\n // scale the other axis the same about its middle\n for(i = 0; i < xaxes.length; i++) {\n xaxes[i].range = xaxes[i]._r.slice();\n scaleZoom(xaxes[i], 1 - dy / ph);\n }\n dx = dy * pw / ph;\n xStart = dx / 2;\n }\n if(matches.isSubplotConstrained || (!yActive && xActive.length === 1)) {\n for(i = 0; i < yaxes.length; i++) {\n yaxes[i].range = yaxes[i]._r.slice();\n scaleZoom(yaxes[i], 1 - dx / pw);\n }\n dy = dx * ph / pw;\n yStart = dy / 2;\n }\n }\n\n if(!matches.isSubplotConstrained || !yActive) {\n updateMatchedAxRange('x');\n }\n if(!matches.isSubplotConstrained || !xActive) {\n updateMatchedAxRange('y');\n }\n var xSize = pw - dx;\n var ySize = ph - dy;\n if(matches.isSubplotConstrained && !(xActive && yActive)) {\n if(xActive) {\n yStart = xStart ? 0 : (dx * ph / pw);\n ySize = xSize * ph / pw;\n } else {\n xStart = yStart ? 0 : (dy * pw / ph);\n xSize = ySize * pw / ph;\n }\n }\n updateSubplots([xStart, yStart, xSize, ySize]);\n ticksAndAnnotations();\n gd.emit('plotly_relayouting', updates);\n }\n\n function updateMatchedAxRange(axLetter, out) {\n var matchedAxes = matches.isSubplotConstrained ?\n {x: yaxes, y: xaxes}[axLetter] :\n matches[axLetter + 'axes'];\n\n var constrainedAxes = matches.isSubplotConstrained ?\n {x: xaxes, y: yaxes}[axLetter] :\n [];\n\n for(var i = 0; i < matchedAxes.length; i++) {\n var ax = matchedAxes[i];\n var axId = ax._id;\n var axId2 = matches.xLinks[axId] || matches.yLinks[axId];\n var ax2 = constrainedAxes[0] || xaHash[axId2] || yaHash[axId2];\n\n if(ax2) {\n if(out) {\n // zoombox case - don't mutate 'range', just add keys in 'updates'\n out[ax._name + '.range[0]'] = out[ax2._name + '.range[0]'];\n out[ax._name + '.range[1]'] = out[ax2._name + '.range[1]'];\n } else {\n ax.range = ax2.range.slice();\n }\n }\n }\n }\n\n // Draw ticks and annotations (and other components) when ranges change.\n // Also records the ranges that have changed for use by update at the end.\n function ticksAndAnnotations() {\n var activeAxIds = [];\n var i;\n\n function pushActiveAxIds(axList) {\n for(i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) activeAxIds.push(axList[i]._id);\n }\n }\n\n if(editX) {\n pushActiveAxIds(xaxes);\n pushActiveAxIds(links.xaxes);\n pushActiveAxIds(matches.xaxes);\n }\n if(editY) {\n pushActiveAxIds(yaxes);\n pushActiveAxIds(links.yaxes);\n pushActiveAxIds(matches.yaxes);\n }\n\n updates = {};\n for(i = 0; i < activeAxIds.length; i++) {\n var axId = activeAxIds[i];\n var ax = getFromId(gd, axId);\n Axes.drawOne(gd, ax, {skipTitle: true});\n updates[ax._name + '.range[0]'] = ax.range[0];\n updates[ax._name + '.range[1]'] = ax.range[1];\n }\n\n Axes.redrawComponents(gd, activeAxIds);\n }\n\n function doubleClick() {\n if(gd._transitioningWithDuration) return;\n\n var doubleClickConfig = gd._context.doubleClick;\n\n var axList = [];\n if(xActive) axList = axList.concat(xaxes);\n if(yActive) axList = axList.concat(yaxes);\n if(matches.xaxes) axList = axList.concat(matches.xaxes);\n if(matches.yaxes) axList = axList.concat(matches.yaxes);\n\n var attrs = {};\n var ax, i, rangeInitial;\n\n // For reset+autosize mode:\n // If *any* of the main axes is not at its initial range\n // (or autoranged, if we have no initial range, to match the logic in\n // doubleClickConfig === 'reset' below), we reset.\n // If they are *all* at their initial ranges, then we autosize.\n if(doubleClickConfig === 'reset+autosize') {\n doubleClickConfig = 'autosize';\n\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n if((ax._rangeInitial && (\n ax.range[0] !== ax._rangeInitial[0] ||\n ax.range[1] !== ax._rangeInitial[1]\n )) ||\n (!ax._rangeInitial && !ax.autorange)\n ) {\n doubleClickConfig = 'reset';\n break;\n }\n }\n }\n\n if(doubleClickConfig === 'autosize') {\n // don't set the linked axes here, so relayout marks them as shrinkable\n // and we autosize just to the requested axis/axes\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n if(!ax.fixedrange) attrs[ax._name + '.autorange'] = true;\n }\n } else if(doubleClickConfig === 'reset') {\n // when we're resetting, reset all linked axes too, so we get back\n // to the fully-auto-with-constraints situation\n if(xActive || links.isSubplotConstrained) axList = axList.concat(links.xaxes);\n if(yActive && !links.isSubplotConstrained) axList = axList.concat(links.yaxes);\n\n if(links.isSubplotConstrained) {\n if(!xActive) axList = axList.concat(xaxes);\n else if(!yActive) axList = axList.concat(yaxes);\n }\n\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n\n if(!ax.fixedrange) {\n if(!ax._rangeInitial) {\n attrs[ax._name + '.autorange'] = true;\n } else {\n rangeInitial = ax._rangeInitial;\n attrs[ax._name + '.range[0]'] = rangeInitial[0];\n attrs[ax._name + '.range[1]'] = rangeInitial[1];\n }\n }\n }\n }\n\n gd.emit('plotly_doubleclick', null);\n Registry.call('_guiRelayout', gd, attrs);\n }\n\n // dragTail - finish a drag event with a redraw\n function dragTail() {\n // put the subplot viewboxes back to default (Because we're going to)\n // be repositioning the data in the relayout. But DON'T call\n // ticksAndAnnotations again - it's unnecessary and would overwrite `updates`\n updateSubplots([0, 0, pw, ph]);\n\n // since we may have been redrawing some things during the drag, we may have\n // accumulated MathJax promises - wait for them before we relayout.\n Lib.syncOrAsync([\n Plots.previousPromises,\n function() {\n gd._fullLayout._replotting = false;\n Registry.call('_guiRelayout', gd, updates);\n }\n ], gd);\n }\n\n // updateSubplots - find all plot viewboxes that should be\n // affected by this drag, and update them. look for all plots\n // sharing an affected axis (including the one being dragged),\n // includes also scattergl and splom logic.\n function updateSubplots(viewBox) {\n var fullLayout = gd._fullLayout;\n var plotinfos = fullLayout._plots;\n var subplots = fullLayout._subplots.cartesian;\n var i, sp, xa, ya;\n\n if(hasSplom) {\n Registry.subplotsRegistry.splom.drag(gd);\n }\n\n if(hasScatterGl) {\n for(i = 0; i < subplots.length; i++) {\n sp = plotinfos[subplots[i]];\n xa = sp.xaxis;\n ya = sp.yaxis;\n\n if(sp._scene) {\n var xrng = Lib.simpleMap(xa.range, xa.r2l);\n var yrng = Lib.simpleMap(ya.range, ya.r2l);\n sp._scene.update({range: [xrng[0], yrng[0], xrng[1], yrng[1]]});\n }\n }\n }\n\n if(hasSplom || hasScatterGl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n\n if(hasSVG) {\n var xScaleFactor = viewBox[2] / xa0._length;\n var yScaleFactor = viewBox[3] / ya0._length;\n\n for(i = 0; i < subplots.length; i++) {\n sp = plotinfos[subplots[i]];\n xa = sp.xaxis;\n ya = sp.yaxis;\n\n var editX2 = (editX || matches.isSubplotConstrained) && !xa.fixedrange && xaHash[xa._id];\n var editY2 = (editY || matches.isSubplotConstrained) && !ya.fixedrange && yaHash[ya._id];\n\n var xScaleFactor2, yScaleFactor2;\n var clipDx, clipDy;\n\n if(editX2) {\n xScaleFactor2 = xScaleFactor;\n clipDx = ew || matches.isSubplotConstrained ? viewBox[0] : getShift(xa, xScaleFactor2);\n } else if(matches.xaHash[xa._id]) {\n xScaleFactor2 = xScaleFactor;\n clipDx = viewBox[0] * xa._length / xa0._length;\n } else if(matches.yaHash[xa._id]) {\n xScaleFactor2 = yScaleFactor;\n clipDx = yActive === 'ns' ?\n -viewBox[1] * xa._length / ya0._length :\n getShift(xa, xScaleFactor2, {n: 'top', s: 'bottom'}[yActive]);\n } else {\n xScaleFactor2 = getLinkedScaleFactor(xa, xScaleFactor, yScaleFactor);\n clipDx = scaleAndGetShift(xa, xScaleFactor2);\n }\n\n if(editY2) {\n yScaleFactor2 = yScaleFactor;\n clipDy = ns || matches.isSubplotConstrained ? viewBox[1] : getShift(ya, yScaleFactor2);\n } else if(matches.yaHash[ya._id]) {\n yScaleFactor2 = yScaleFactor;\n clipDy = viewBox[1] * ya._length / ya0._length;\n } else if(matches.xaHash[ya._id]) {\n yScaleFactor2 = xScaleFactor;\n clipDy = xActive === 'ew' ?\n -viewBox[0] * ya._length / xa0._length :\n getShift(ya, yScaleFactor2, {e: 'right', w: 'left'}[xActive]);\n } else {\n yScaleFactor2 = getLinkedScaleFactor(ya, xScaleFactor, yScaleFactor);\n clipDy = scaleAndGetShift(ya, yScaleFactor2);\n }\n\n // don't scale at all if neither axis is scalable here\n if(!xScaleFactor2 && !yScaleFactor2) {\n continue;\n }\n\n // but if only one is, reset the other axis scaling\n if(!xScaleFactor2) xScaleFactor2 = 1;\n if(!yScaleFactor2) yScaleFactor2 = 1;\n\n var plotDx = xa._offset - clipDx / xScaleFactor2;\n var plotDy = ya._offset - clipDy / yScaleFactor2;\n\n // TODO could be more efficient here:\n // setTranslate and setScale do a lot of extra work\n // when working independently, should perhaps combine\n // them into a single routine.\n sp.clipRect\n .call(Drawing.setTranslate, clipDx, clipDy)\n .call(Drawing.setScale, xScaleFactor2, yScaleFactor2);\n\n sp.plot\n .call(Drawing.setTranslate, plotDx, plotDy)\n .call(Drawing.setScale, 1 / xScaleFactor2, 1 / yScaleFactor2);\n\n // apply an inverse scale to individual points to counteract\n // the scale of the trace group.\n // apply only when scale changes, as adjusting the scale of\n // all the points can be expansive.\n if(xScaleFactor2 !== sp.xScaleFactor || yScaleFactor2 !== sp.yScaleFactor) {\n Drawing.setPointGroupScale(sp.zoomScalePts, xScaleFactor2, yScaleFactor2);\n Drawing.setTextPointsScale(sp.zoomScaleTxt, xScaleFactor2, yScaleFactor2);\n }\n\n Drawing.hideOutsideRangePoints(sp.clipOnAxisFalseTraces, sp);\n\n // update x/y scaleFactor stash\n sp.xScaleFactor = xScaleFactor2;\n sp.yScaleFactor = yScaleFactor2;\n }\n }\n }\n\n // Find the appropriate scaling for this axis, if it's linked to the\n // dragged axes by constraints. 0 is special, it means this axis shouldn't\n // ever be scaled (will be converted to 1 if the other axis is scaled)\n function getLinkedScaleFactor(ax, xScaleFactor, yScaleFactor) {\n if(ax.fixedrange) return 0;\n\n if(editX && links.xaHash[ax._id]) {\n return xScaleFactor;\n }\n if(editY && (links.isSubplotConstrained ? links.xaHash : links.yaHash)[ax._id]) {\n return yScaleFactor;\n }\n return 0;\n }\n\n function scaleAndGetShift(ax, scaleFactor) {\n if(scaleFactor) {\n ax.range = ax._r.slice();\n scaleZoom(ax, scaleFactor);\n return getShift(ax, scaleFactor);\n }\n return 0;\n }\n\n function getShift(ax, scaleFactor, from) {\n return ax._length * (1 - scaleFactor) * FROM_TL[from || ax.constraintoward || 'middle'];\n }\n\n return dragger;\n}\n\nfunction makeDragger(plotinfo, nodeName, dragClass, cursor) {\n var dragger3 = Lib.ensureSingle(plotinfo.draglayer, nodeName, dragClass, function(s) {\n s.classed('drag', true)\n .style({fill: 'transparent', 'stroke-width': 0})\n .attr('data-subplot', plotinfo.id);\n });\n\n dragger3.call(setCursor, cursor);\n\n return dragger3.node();\n}\n\nfunction makeRectDragger(plotinfo, dragClass, cursor, x, y, w, h) {\n var dragger = makeDragger(plotinfo, 'rect', dragClass, cursor);\n d3.select(dragger).call(Drawing.setRect, x, y, w, h);\n return dragger;\n}\n\nfunction isDirectionActive(axList, activeVal) {\n for(var i = 0; i < axList.length; i++) {\n if(!axList[i].fixedrange) return activeVal;\n }\n return '';\n}\n\nfunction getEndText(ax, end) {\n var initialVal = ax.range[end];\n var diff = Math.abs(initialVal - ax.range[1 - end]);\n var dig;\n\n // TODO: this should basically be ax.r2d but we're doing extra\n // rounding here... can we clean up at all?\n if(ax.type === 'date') {\n return initialVal;\n } else if(ax.type === 'log') {\n dig = Math.ceil(Math.max(0, -Math.log(diff) / Math.LN10)) + 3;\n return numberFormat('.' + dig + 'g')(Math.pow(10, initialVal));\n } else { // linear numeric (or category... but just show numbers here)\n dig = Math.floor(Math.log(Math.abs(initialVal)) / Math.LN10) -\n Math.floor(Math.log(diff) / Math.LN10) + 4;\n return numberFormat('.' + String(dig) + 'g')(initialVal);\n }\n}\n\nfunction zoomAxRanges(axList, r0Fraction, r1Fraction, updates, linkedAxes) {\n for(var i = 0; i < axList.length; i++) {\n var axi = axList[i];\n if(axi.fixedrange) continue;\n\n if(axi.rangebreaks) {\n var isY = axi._id.charAt(0) === 'y';\n var r0F = isY ? (1 - r0Fraction) : r0Fraction;\n var r1F = isY ? (1 - r1Fraction) : r1Fraction;\n\n updates[axi._name + '.range[0]'] = axi.l2r(axi.p2l(r0F * axi._length));\n updates[axi._name + '.range[1]'] = axi.l2r(axi.p2l(r1F * axi._length));\n } else {\n var axRangeLinear0 = axi._rl[0];\n var axRangeLinearSpan = axi._rl[1] - axRangeLinear0;\n updates[axi._name + '.range[0]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction);\n updates[axi._name + '.range[1]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction);\n }\n }\n\n // zoom linked axes about their centers\n if(linkedAxes && linkedAxes.length) {\n var linkedR0Fraction = (r0Fraction + (1 - r1Fraction)) / 2;\n zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, []);\n }\n}\n\nfunction dragAxList(axList, pix) {\n for(var i = 0; i < axList.length; i++) {\n var axi = axList[i];\n if(!axi.fixedrange) {\n if(axi.rangebreaks) {\n var p0 = 0;\n var p1 = axi._length;\n var d0 = axi.p2l(p0 + pix) - axi.p2l(p0);\n var d1 = axi.p2l(p1 + pix) - axi.p2l(p1);\n var delta = (d0 + d1) / 2;\n\n axi.range = [\n axi.l2r(axi._rl[0] - delta),\n axi.l2r(axi._rl[1] - delta)\n ];\n } else {\n axi.range = [\n axi.l2r(axi._rl[0] - pix / axi._m),\n axi.l2r(axi._rl[1] - pix / axi._m)\n ];\n }\n }\n }\n}\n\n// common transform for dragging one end of an axis\n// d>0 is compressing scale (cursor is over the plot,\n// the axis end should move with the cursor)\n// d<0 is expanding (cursor is off the plot, axis end moves\n// nonlinearly so you can expand far)\nfunction dZoom(d) {\n return 1 - ((d >= 0) ? Math.min(d, 0.9) :\n 1 / (1 / Math.max(d, -0.3) + 3.222));\n}\n\nfunction getDragCursor(nsew, dragmode, isMainDrag) {\n if(!nsew) return 'pointer';\n if(nsew === 'nsew') {\n // in this case here, clear cursor and\n // use the cursor style set on \n if(isMainDrag) return '';\n if(dragmode === 'pan') return 'move';\n return 'crosshair';\n }\n return nsew.toLowerCase() + '-resize';\n}\n\nfunction makeZoombox(zoomlayer, lum, xs, ys, path0) {\n return zoomlayer.append('path')\n .attr('class', 'zoombox')\n .style({\n 'fill': lum > 0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)',\n 'stroke-width': 0\n })\n .attr('transform', strTranslate(xs, ys))\n .attr('d', path0 + 'Z');\n}\n\nfunction makeCorners(zoomlayer, xs, ys) {\n return zoomlayer.append('path')\n .attr('class', 'zoombox-corners')\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1,\n opacity: 0\n })\n .attr('transform', strTranslate(xs, ys))\n .attr('d', 'M0,0Z');\n}\n\nfunction updateZoombox(zb, corners, box, path0, dimmed, lum) {\n zb.attr('d',\n path0 + 'M' + (box.l) + ',' + (box.t) + 'v' + (box.h) +\n 'h' + (box.w) + 'v-' + (box.h) + 'h-' + (box.w) + 'Z');\n transitionZoombox(zb, corners, dimmed, lum);\n}\n\nfunction transitionZoombox(zb, corners, dimmed, lum) {\n if(!dimmed) {\n zb.transition()\n .style('fill', lum > 0.2 ? 'rgba(0,0,0,0.4)' :\n 'rgba(255,255,255,0.3)')\n .duration(200);\n corners.transition()\n .style('opacity', 1)\n .duration(200);\n }\n}\n\nfunction removeZoombox(gd) {\n d3.select(gd)\n .selectAll('.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners')\n .remove();\n}\n\nfunction showDoubleClickNotifier(gd) {\n if(SHOWZOOMOUTTIP && gd.data && gd._context.showTips) {\n Lib.notifier(Lib._(gd, 'Double-click to zoom back out'), 'long');\n SHOWZOOMOUTTIP = false;\n }\n}\n\nfunction xCorners(box, y0) {\n return 'M' +\n (box.l - 0.5) + ',' + (y0 - MINZOOM - 0.5) +\n 'h-3v' + (2 * MINZOOM + 1) + 'h3ZM' +\n (box.r + 0.5) + ',' + (y0 - MINZOOM - 0.5) +\n 'h3v' + (2 * MINZOOM + 1) + 'h-3Z';\n}\n\nfunction yCorners(box, x0) {\n return 'M' +\n (x0 - MINZOOM - 0.5) + ',' + (box.t - 0.5) +\n 'v-3h' + (2 * MINZOOM + 1) + 'v3ZM' +\n (x0 - MINZOOM - 0.5) + ',' + (box.b + 0.5) +\n 'v3h' + (2 * MINZOOM + 1) + 'v-3Z';\n}\n\nfunction xyCorners(box) {\n var clen = Math.floor(Math.min(box.b - box.t, box.r - box.l, MINZOOM) / 2);\n return 'M' +\n (box.l - 3.5) + ',' + (box.t - 0.5 + clen) + 'h3v' + (-clen) +\n 'h' + clen + 'v-3h-' + (clen + 3) + 'ZM' +\n (box.r + 3.5) + ',' + (box.t - 0.5 + clen) + 'h-3v' + (-clen) +\n 'h' + (-clen) + 'v-3h' + (clen + 3) + 'ZM' +\n (box.r + 3.5) + ',' + (box.b + 0.5 - clen) + 'h-3v' + clen +\n 'h' + (-clen) + 'v3h' + (clen + 3) + 'ZM' +\n (box.l - 3.5) + ',' + (box.b + 0.5 - clen) + 'h3v' + clen +\n 'h' + clen + 'v3h-' + (clen + 3) + 'Z';\n}\n\nfunction calcLinks(gd, groups, xaHash, yaHash, exclude) {\n var isSubplotConstrained = false;\n var xLinks = {};\n var yLinks = {};\n var xID, yID, xLinkID, yLinkID;\n var xExclude = (exclude || {}).xaHash;\n var yExclude = (exclude || {}).yaHash;\n\n for(var i = 0; i < groups.length; i++) {\n var group = groups[i];\n // check if any of the x axes we're dragging is in this constraint group\n for(xID in xaHash) {\n if(group[xID]) {\n // put the rest of these axes into xLinks, if we're not already\n // dragging them, so we know to scale these axes automatically too\n // to match the changes in the dragged x axes\n for(xLinkID in group) {\n if(\n !(exclude && (xExclude[xLinkID] || yExclude[xLinkID])) &&\n !(xLinkID.charAt(0) === 'x' ? xaHash : yaHash)[xLinkID]\n ) {\n xLinks[xLinkID] = xID;\n }\n }\n\n // check if the x and y axes of THIS drag are linked\n for(yID in yaHash) {\n if(\n !(exclude && (xExclude[yID] || yExclude[yID])) &&\n group[yID]\n ) {\n isSubplotConstrained = true;\n }\n }\n }\n }\n\n // now check if any of the y axes we're dragging is in this constraint group\n // only look for outside links, as we've already checked for links within the dragger\n for(yID in yaHash) {\n if(group[yID]) {\n for(yLinkID in group) {\n if(\n !(exclude && (xExclude[yLinkID] || yExclude[yLinkID])) &&\n !(yLinkID.charAt(0) === 'x' ? xaHash : yaHash)[yLinkID]\n ) {\n yLinks[yLinkID] = yID;\n }\n }\n }\n }\n }\n\n if(isSubplotConstrained) {\n // merge xLinks and yLinks if the subplot is constrained,\n // since we'll always apply both anyway and the two will contain\n // duplicates\n Lib.extendFlat(xLinks, yLinks);\n yLinks = {};\n }\n\n var xaHashLinked = {};\n var xaxesLinked = [];\n for(xLinkID in xLinks) {\n var xa = getFromId(gd, xLinkID);\n xaxesLinked.push(xa);\n xaHashLinked[xa._id] = xa;\n }\n\n var yaHashLinked = {};\n var yaxesLinked = [];\n for(yLinkID in yLinks) {\n var ya = getFromId(gd, yLinkID);\n yaxesLinked.push(ya);\n yaHashLinked[ya._id] = ya;\n }\n\n return {\n xaHash: xaHashLinked,\n yaHash: yaHashLinked,\n xaxes: xaxesLinked,\n yaxes: yaxesLinked,\n xLinks: xLinks,\n yLinks: yLinks,\n isSubplotConstrained: isSubplotConstrained\n };\n}\n\n// still seems to be some confusion about onwheel vs onmousewheel...\nfunction attachWheelEventHandler(element, handler) {\n if(!supportsPassive) {\n if(element.onwheel !== undefined) element.onwheel = handler;\n else if(element.onmousewheel !== undefined) element.onmousewheel = handler;\n else if(!element.isAddedWheelEvent) {\n element.isAddedWheelEvent = true;\n element.addEventListener('wheel', handler, {passive: false});\n }\n } else {\n var wheelEventName = element.onwheel !== undefined ? 'wheel' : 'mousewheel';\n\n if(element._onwheel) {\n element.removeEventListener(wheelEventName, element._onwheel);\n }\n element._onwheel = handler;\n\n element.addEventListener(wheelEventName, handler, {passive: false});\n }\n}\n\nfunction hashValues(hash) {\n var out = [];\n for(var k in hash) out.push(hash[k]);\n return out;\n}\n\nmodule.exports = {\n makeDragBox: makeDragBox,\n\n makeDragger: makeDragger,\n makeRectDragger: makeRectDragger,\n makeZoombox: makeZoombox,\n makeCorners: makeCorners,\n\n updateZoombox: updateZoombox,\n xyCorners: xyCorners,\n transitionZoombox: transitionZoombox,\n removeZoombox: removeZoombox,\n showDoubleClickNotifier: showDoubleClickNotifier,\n\n attachWheelEventHandler: attachWheelEventHandler\n};\n\n},{\"../../components/color\":367,\"../../components/dragelement\":386,\"../../components/dragelement/helpers\":385,\"../../components/drawing\":389,\"../../components/fx\":407,\"../../components/selections\":455,\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/clear_gl_canvases\":499,\"../../lib/setcursor\":536,\"../../lib/svg_text_utils\":541,\"../../plot_api/subroutines\":556,\"../../registry\":647,\"../plots\":628,\"./axes\":566,\"./axis_ids\":570,\"./constants\":573,\"./scale_zoom\":584,\"@plotly/d3\":58,\"has-passive-events\":229,\"tinycolor2\":313}],576:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Fx = _dereq_('../../components/fx');\nvar dragElement = _dereq_('../../components/dragelement');\nvar setCursor = _dereq_('../../lib/setcursor');\n\nvar makeDragBox = _dereq_('./dragbox').makeDragBox;\nvar DRAGGERSIZE = _dereq_('./constants').DRAGGERSIZE;\n\nexports.initInteractions = function initInteractions(gd) {\n var fullLayout = gd._fullLayout;\n\n if(gd._context.staticPlot) {\n // this sweeps up more than just cartesian drag elements...\n d3.select(gd).selectAll('.drag').remove();\n return;\n }\n\n if(!fullLayout._has('cartesian') && !fullLayout._has('splom')) return;\n\n var subplots = Object.keys(fullLayout._plots || {}).sort(function(a, b) {\n // sort overlays last, then by x axis number, then y axis number\n if((fullLayout._plots[a].mainplot && true) ===\n (fullLayout._plots[b].mainplot && true)) {\n var aParts = a.split('y');\n var bParts = b.split('y');\n return (aParts[0] === bParts[0]) ?\n (Number(aParts[1] || 1) - Number(bParts[1] || 1)) :\n (Number(aParts[0] || 1) - Number(bParts[0] || 1));\n }\n return fullLayout._plots[a].mainplot ? 1 : -1;\n });\n\n subplots.forEach(function(subplot) {\n var plotinfo = fullLayout._plots[subplot];\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n // main and corner draggers need not be repeated for\n // overlaid subplots - these draggers drag them all\n if(!plotinfo.mainplot) {\n // main dragger goes over the grids and data, so we use its\n // mousemove events for all data hover effects\n var maindrag = makeDragBox(gd, plotinfo, xa._offset, ya._offset,\n xa._length, ya._length, 'ns', 'ew');\n\n maindrag.onmousemove = function(evt) {\n // This is on `gd._fullLayout`, *not* fullLayout because the reference\n // changes by the time this is called again.\n gd._fullLayout._rehover = function() {\n if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {\n Fx.hover(gd, evt, subplot);\n }\n };\n\n Fx.hover(gd, evt, subplot);\n\n // Note that we have *not* used the cached fullLayout variable here\n // since that may be outdated when this is called as a callback later on\n gd._fullLayout._lasthover = maindrag;\n gd._fullLayout._hoversubplot = subplot;\n };\n\n /*\n * IMPORTANT:\n * We must check for the presence of the drag cover here.\n * If we don't, a 'mouseout' event is triggered on the\n * maindrag before each 'click' event, which has the effect\n * of clearing the hoverdata; thus, cancelling the click event.\n */\n maindrag.onmouseout = function(evt) {\n if(gd._dragging) return;\n\n // When the mouse leaves this maindrag, unset the hovered subplot.\n // This may cause problems if it leaves the subplot directly *onto*\n // another subplot, but that's a tiny corner case at the moment.\n gd._fullLayout._hoversubplot = null;\n\n dragElement.unhover(gd, evt);\n };\n\n // corner draggers\n if(gd._context.showAxisDragHandles) {\n makeDragBox(gd, plotinfo, xa._offset - DRAGGERSIZE, ya._offset - DRAGGERSIZE,\n DRAGGERSIZE, DRAGGERSIZE, 'n', 'w');\n makeDragBox(gd, plotinfo, xa._offset + xa._length, ya._offset - DRAGGERSIZE,\n DRAGGERSIZE, DRAGGERSIZE, 'n', 'e');\n makeDragBox(gd, plotinfo, xa._offset - DRAGGERSIZE, ya._offset + ya._length,\n DRAGGERSIZE, DRAGGERSIZE, 's', 'w');\n makeDragBox(gd, plotinfo, xa._offset + xa._length, ya._offset + ya._length,\n DRAGGERSIZE, DRAGGERSIZE, 's', 'e');\n }\n }\n if(gd._context.showAxisDragHandles) {\n // x axis draggers - if you have overlaid plots,\n // these drag each axis separately\n if(subplot === xa._mainSubplot) {\n // the y position of the main x axis line\n var y0 = xa._mainLinePosition;\n if(xa.side === 'top') y0 -= DRAGGERSIZE;\n makeDragBox(gd, plotinfo, xa._offset + xa._length * 0.1, y0,\n xa._length * 0.8, DRAGGERSIZE, '', 'ew');\n makeDragBox(gd, plotinfo, xa._offset, y0,\n xa._length * 0.1, DRAGGERSIZE, '', 'w');\n makeDragBox(gd, plotinfo, xa._offset + xa._length * 0.9, y0,\n xa._length * 0.1, DRAGGERSIZE, '', 'e');\n }\n // y axis draggers\n if(subplot === ya._mainSubplot) {\n // the x position of the main y axis line\n var x0 = ya._mainLinePosition;\n if(ya.side !== 'right') x0 -= DRAGGERSIZE;\n makeDragBox(gd, plotinfo, x0, ya._offset + ya._length * 0.1,\n DRAGGERSIZE, ya._length * 0.8, 'ns', '');\n makeDragBox(gd, plotinfo, x0, ya._offset + ya._length * 0.9,\n DRAGGERSIZE, ya._length * 0.1, 's', '');\n makeDragBox(gd, plotinfo, x0, ya._offset,\n DRAGGERSIZE, ya._length * 0.1, 'n', '');\n }\n }\n });\n\n // In case you mousemove over some hovertext, send it to Fx.hover too\n // we do this so that we can put the hover text in front of everything,\n // but still be able to interact with everything as if it isn't there\n var hoverLayer = fullLayout._hoverlayer.node();\n\n hoverLayer.onmousemove = function(evt) {\n evt.target = gd._fullLayout._lasthover;\n Fx.hover(gd, evt, fullLayout._hoversubplot);\n };\n\n hoverLayer.onclick = function(evt) {\n evt.target = gd._fullLayout._lasthover;\n Fx.click(gd, evt);\n };\n\n // also delegate mousedowns... TODO: does this actually work?\n hoverLayer.onmousedown = function(evt) {\n gd._fullLayout._lasthover.onmousedown(evt);\n };\n\n exports.updateFx(gd);\n};\n\n// Minimal set of update needed on 'modebar' edits.\n// We only need to update the cursor style.\n//\n// Note that changing the axis configuration and/or the fixedrange attribute\n// should trigger a full initInteractions.\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var cursor = fullLayout.dragmode === 'pan' ? 'move' : 'crosshair';\n setCursor(fullLayout._draggers, cursor);\n};\n\n},{\"../../components/dragelement\":386,\"../../components/fx\":407,\"../../lib/setcursor\":536,\"./constants\":573,\"./dragbox\":575,\"@plotly/d3\":58}],577:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar axisIds = _dereq_('./axis_ids');\n\n/**\n * Factory function for checking component arrays for subplot references.\n *\n * @param {string} containerArrayName: the top-level array in gd.layout to check\n * If an item in this container is found that references a cartesian x and/or y axis,\n * ensure cartesian is marked as a base plot module and record the axes (and subplot\n * if both refs are axes) in gd._fullLayout\n *\n * @return {function}: with args layoutIn (gd.layout) and layoutOut (gd._fullLayout)\n * as expected of a component includeBasePlot method\n */\nmodule.exports = function makeIncludeComponents(containerArrayName) {\n return function includeComponents(layoutIn, layoutOut) {\n var array = layoutIn[containerArrayName];\n if(!Array.isArray(array)) return;\n\n var Cartesian = Registry.subplotsRegistry.cartesian;\n var idRegex = Cartesian.idRegex;\n var subplots = layoutOut._subplots;\n var xaList = subplots.xaxis;\n var yaList = subplots.yaxis;\n var cartesianList = subplots.cartesian;\n var hasCartesianOrGL2D = layoutOut._has('cartesian') || layoutOut._has('gl2d');\n\n for(var i = 0; i < array.length; i++) {\n var itemi = array[i];\n if(!Lib.isPlainObject(itemi)) continue;\n\n // call cleanId because if xref, or yref has something appended\n // (e.g., ' domain') this will get removed.\n var xref = axisIds.cleanId(itemi.xref, 'x', false);\n var yref = axisIds.cleanId(itemi.yref, 'y', false);\n\n var hasXref = idRegex.x.test(xref);\n var hasYref = idRegex.y.test(yref);\n if(hasXref || hasYref) {\n if(!hasCartesianOrGL2D) Lib.pushUnique(layoutOut._basePlotModules, Cartesian);\n\n var newAxis = false;\n if(hasXref && xaList.indexOf(xref) === -1) {\n xaList.push(xref);\n newAxis = true;\n }\n if(hasYref && yaList.indexOf(yref) === -1) {\n yaList.push(yref);\n newAxis = true;\n }\n\n /*\n * Notice the logic here: only add a subplot for a component if\n * it's referencing both x and y axes AND it's creating a new axis\n * so for example if your plot already has xy and x2y2, an annotation\n * on x2y or xy2 will not create a new subplot.\n */\n if(newAxis && hasXref && hasYref) {\n cartesianList.push(xref + yref);\n }\n }\n }\n };\n};\n\n},{\"../../lib\":515,\"../../registry\":647,\"./axis_ids\":570}],578:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Plots = _dereq_('../plots');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar getModuleCalcData = _dereq_('../get_data').getModuleCalcData;\nvar axisIds = _dereq_('./axis_ids');\nvar constants = _dereq_('./constants');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nvar ensureSingle = Lib.ensureSingle;\n\nfunction ensureSingleAndAddDatum(parent, nodeType, className) {\n return Lib.ensureSingle(parent, nodeType, className, function(s) {\n s.datum(className);\n });\n}\n\nexports.name = 'cartesian';\n\nexports.attr = ['xaxis', 'yaxis'];\n\nexports.idRoot = ['x', 'y'];\n\nexports.idRegex = constants.idRegex;\n\nexports.attrRegex = constants.attrRegex;\n\nexports.attributes = _dereq_('./attributes');\n\nexports.layoutAttributes = _dereq_('./layout_attributes');\n\nexports.supplyLayoutDefaults = _dereq_('./layout_defaults');\n\nexports.transitionAxes = _dereq_('./transition_axes');\n\nexports.finalizeSubplots = function(layoutIn, layoutOut) {\n var subplots = layoutOut._subplots;\n var xList = subplots.xaxis;\n var yList = subplots.yaxis;\n var spSVG = subplots.cartesian;\n var spAll = spSVG.concat(subplots.gl2d || []);\n var allX = {};\n var allY = {};\n var i, xi, yi;\n\n for(i = 0; i < spAll.length; i++) {\n var parts = spAll[i].split('y');\n allX[parts[0]] = 1;\n allY['y' + parts[1]] = 1;\n }\n\n // check for x axes with no subplot, and make one from the anchor of that x axis\n for(i = 0; i < xList.length; i++) {\n xi = xList[i];\n if(!allX[xi]) {\n yi = (layoutIn[axisIds.id2name(xi)] || {}).anchor;\n if(!constants.idRegex.y.test(yi)) yi = 'y';\n spSVG.push(xi + yi);\n spAll.push(xi + yi);\n\n if(!allY[yi]) {\n allY[yi] = 1;\n Lib.pushUnique(yList, yi);\n }\n }\n }\n\n // same for y axes with no subplot\n for(i = 0; i < yList.length; i++) {\n yi = yList[i];\n if(!allY[yi]) {\n xi = (layoutIn[axisIds.id2name(yi)] || {}).anchor;\n if(!constants.idRegex.x.test(xi)) xi = 'x';\n spSVG.push(xi + yi);\n spAll.push(xi + yi);\n\n if(!allX[xi]) {\n allX[xi] = 1;\n Lib.pushUnique(xList, xi);\n }\n }\n }\n\n // finally, if we've gotten here we're supposed to show cartesian...\n // so if there are NO subplots at all, make one from the first\n // x & y axes in the input layout\n if(!spAll.length) {\n xi = '';\n yi = '';\n for(var ki in layoutIn) {\n if(constants.attrRegex.test(ki)) {\n var axLetter = ki.charAt(0);\n if(axLetter === 'x') {\n if(!xi || (+ki.substr(5) < +xi.substr(5))) {\n xi = ki;\n }\n } else if(!yi || (+ki.substr(5) < +yi.substr(5))) {\n yi = ki;\n }\n }\n }\n xi = xi ? axisIds.name2id(xi) : 'x';\n yi = yi ? axisIds.name2id(yi) : 'y';\n xList.push(xi);\n yList.push(yi);\n spSVG.push(xi + yi);\n }\n};\n\n/**\n * Cartesian.plot\n *\n * @param {DOM div | object} gd\n * @param {array (optional)} traces\n * array of traces indices to plot\n * if undefined, plots all cartesian traces,\n * @param {object} (optional) transitionOpts\n * transition option object\n * @param {function} (optional) makeOnCompleteCallback\n * transition make callback function from Plots.transition\n */\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n var subplots = fullLayout._subplots.cartesian;\n var calcdata = gd.calcdata;\n var i;\n\n if(!Array.isArray(traces)) {\n // If traces is not provided, then it's a complete replot and missing\n // traces are removed\n traces = [];\n for(i = 0; i < calcdata.length; i++) traces.push(i);\n }\n\n for(i = 0; i < subplots.length; i++) {\n var subplot = subplots[i];\n var subplotInfo = fullLayout._plots[subplot];\n\n // Get all calcdata for this subplot:\n var cdSubplot = [];\n var pcd;\n\n for(var j = 0; j < calcdata.length; j++) {\n var cd = calcdata[j];\n var trace = cd[0].trace;\n\n // Skip trace if whitelist provided and it's not whitelisted:\n // if (Array.isArray(traces) && traces.indexOf(i) === -1) continue;\n if(trace.xaxis + trace.yaxis === subplot) {\n // XXX: Should trace carpet dependencies. Only replot all carpet plots if the carpet\n // axis has actually changed:\n //\n // If this trace is specifically requested, add it to the list:\n if(traces.indexOf(trace.index) !== -1 || trace.carpet) {\n // Okay, so example: traces 0, 1, and 2 have fill = tonext. You animate\n // traces 0 and 2. Trace 1 also needs to be updated, otherwise its fill\n // is outdated. So this retroactively adds the previous trace if the\n // traces are interdependent.\n if(\n pcd &&\n pcd[0].trace.xaxis + pcd[0].trace.yaxis === subplot &&\n ['tonextx', 'tonexty', 'tonext'].indexOf(trace.fill) !== -1 &&\n cdSubplot.indexOf(pcd) === -1\n ) {\n cdSubplot.push(pcd);\n }\n\n cdSubplot.push(cd);\n }\n\n // Track the previous trace on this subplot for the retroactive-add step\n // above:\n pcd = cd;\n }\n }\n\n plotOne(gd, subplotInfo, cdSubplot, transitionOpts, makeOnCompleteCallback);\n }\n};\n\nfunction plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback) {\n var traceLayerClasses = constants.traceLayerClasses;\n var fullLayout = gd._fullLayout;\n var modules = fullLayout._modules;\n var _module, cdModuleAndOthers, cdModule;\n\n var layerData = [];\n var zoomScaleQueryParts = [];\n\n for(var i = 0; i < modules.length; i++) {\n _module = modules[i];\n var name = _module.name;\n var categories = Registry.modules[name].categories;\n\n if(categories.svg) {\n var className = (_module.layerName || name + 'layer');\n var plotMethod = _module.plot;\n\n // plot all visible traces of this type on this subplot at once\n cdModuleAndOthers = getModuleCalcData(cdSubplot, plotMethod);\n cdModule = cdModuleAndOthers[0];\n // don't need to search the found traces again - in fact we need to NOT\n // so that if two modules share the same plotter we don't double-plot\n cdSubplot = cdModuleAndOthers[1];\n\n if(cdModule.length) {\n layerData.push({\n i: traceLayerClasses.indexOf(className),\n className: className,\n plotMethod: plotMethod,\n cdModule: cdModule\n });\n }\n\n if(categories.zoomScale) {\n zoomScaleQueryParts.push('.' + className);\n }\n }\n }\n\n layerData.sort(function(a, b) { return a.i - b.i; });\n\n var layers = plotinfo.plot.selectAll('g.mlayer')\n .data(layerData, function(d) { return d.className; });\n\n layers.enter().append('g')\n .attr('class', function(d) { return d.className; })\n .classed('mlayer', true)\n .classed('rangeplot', plotinfo.isRangePlot);\n\n layers.exit().remove();\n\n layers.order();\n\n layers.each(function(d) {\n var sel = d3.select(this);\n var className = d.className;\n\n d.plotMethod(\n gd, plotinfo, d.cdModule, sel,\n transitionOpts, makeOnCompleteCallback\n );\n\n // layers that allow `cliponaxis: false`\n if(constants.clipOnAxisFalseQuery.indexOf('.' + className) === -1) {\n Drawing.setClipUrl(sel, plotinfo.layerClipId, gd);\n }\n });\n\n // call Scattergl.plot separately\n if(fullLayout._has('scattergl')) {\n _module = Registry.getModule('scattergl');\n cdModule = getModuleCalcData(cdSubplot, _module)[0];\n _module.plot(gd, plotinfo, cdModule);\n }\n\n // stash \"hot\" selections for faster interaction on drag and scroll\n if(!gd._context.staticPlot) {\n if(plotinfo._hasClipOnAxisFalse) {\n plotinfo.clipOnAxisFalseTraces = plotinfo.plot\n .selectAll(constants.clipOnAxisFalseQuery.join(','))\n .selectAll('.trace');\n }\n\n if(zoomScaleQueryParts.length) {\n var traces = plotinfo.plot\n .selectAll(zoomScaleQueryParts.join(','))\n .selectAll('.trace');\n\n plotinfo.zoomScalePts = traces.selectAll('path.point');\n plotinfo.zoomScaleTxt = traces.selectAll('.textpoint');\n }\n }\n}\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldPlots = oldFullLayout._plots || {};\n var newPlots = newFullLayout._plots || {};\n var oldSubplotList = oldFullLayout._subplots || {};\n var plotinfo;\n var i, k;\n\n // when going from a large splom graph to something else,\n // we need to clear so that the new cartesian subplot\n // can have the correct layer ordering\n if(oldFullLayout._hasOnlyLargeSploms && !newFullLayout._hasOnlyLargeSploms) {\n for(k in oldPlots) {\n plotinfo = oldPlots[k];\n if(plotinfo.plotgroup) plotinfo.plotgroup.remove();\n }\n }\n\n var hadGl = (oldFullLayout._has && oldFullLayout._has('gl'));\n var hasGl = (newFullLayout._has && newFullLayout._has('gl'));\n\n if(hadGl && !hasGl) {\n for(k in oldPlots) {\n plotinfo = oldPlots[k];\n if(plotinfo._scene) plotinfo._scene.destroy();\n }\n }\n\n // delete any titles we don't need anymore\n // check if axis list has changed, and if so clear old titles\n if(oldSubplotList.xaxis && oldSubplotList.yaxis) {\n var oldAxIDs = axisIds.listIds({_fullLayout: oldFullLayout});\n for(i = 0; i < oldAxIDs.length; i++) {\n var oldAxId = oldAxIDs[i];\n if(!newFullLayout[axisIds.id2name(oldAxId)]) {\n oldFullLayout._infolayer.selectAll('.g-' + oldAxId + 'title').remove();\n }\n }\n }\n\n var hadCartesian = (oldFullLayout._has && oldFullLayout._has('cartesian'));\n var hasCartesian = (newFullLayout._has && newFullLayout._has('cartesian'));\n\n if(hadCartesian && !hasCartesian) {\n // if we've gotten rid of all cartesian traces, remove all the subplot svg items\n\n purgeSubplotLayers(oldFullLayout._cartesianlayer.selectAll('.subplot'), oldFullLayout);\n oldFullLayout._defs.selectAll('.axesclip').remove();\n delete oldFullLayout._axisConstraintGroups;\n delete oldFullLayout._axisMatchGroups;\n } else if(oldSubplotList.cartesian) {\n // otherwise look for subplots we need to remove\n\n for(i = 0; i < oldSubplotList.cartesian.length; i++) {\n var oldSubplotId = oldSubplotList.cartesian[i];\n if(!newPlots[oldSubplotId]) {\n var selector = '.' + oldSubplotId + ',.' + oldSubplotId + '-x,.' + oldSubplotId + '-y';\n oldFullLayout._cartesianlayer.selectAll(selector).remove();\n removeSubplotExtras(oldSubplotId, oldFullLayout);\n }\n }\n }\n};\n\nexports.drawFramework = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotData = makeSubplotData(gd);\n\n var subplotLayers = fullLayout._cartesianlayer.selectAll('.subplot')\n .data(subplotData, String);\n\n subplotLayers.enter().append('g')\n .attr('class', function(d) { return 'subplot ' + d[0]; });\n\n subplotLayers.order();\n\n subplotLayers.exit()\n .call(purgeSubplotLayers, fullLayout);\n\n subplotLayers.each(function(d) {\n var id = d[0];\n var plotinfo = fullLayout._plots[id];\n\n plotinfo.plotgroup = d3.select(this);\n makeSubplotLayer(gd, plotinfo);\n\n // make separate drag layers for each subplot,\n // but append them to paper rather than the plot groups,\n // so they end up on top of the rest\n plotinfo.draglayer = ensureSingle(fullLayout._draggers, 'g', id);\n });\n};\n\nexports.rangePlot = function(gd, plotinfo, cdSubplot) {\n makeSubplotLayer(gd, plotinfo);\n plotOne(gd, plotinfo, cdSubplot);\n Plots.style(gd);\n};\n\nfunction makeSubplotData(gd) {\n var fullLayout = gd._fullLayout;\n var ids = fullLayout._subplots.cartesian;\n var len = ids.length;\n var i, j, id, plotinfo, xa, ya;\n\n // split 'regular' and 'overlaying' subplots\n var regulars = [];\n var overlays = [];\n\n for(i = 0; i < len; i++) {\n id = ids[i];\n plotinfo = fullLayout._plots[id];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n var xa2 = xa._mainAxis;\n var ya2 = ya._mainAxis;\n var mainplot = xa2._id + ya2._id;\n var mainplotinfo = fullLayout._plots[mainplot];\n plotinfo.overlays = [];\n\n if(mainplot !== id && mainplotinfo) {\n plotinfo.mainplot = mainplot;\n plotinfo.mainplotinfo = mainplotinfo;\n overlays.push(id);\n } else {\n plotinfo.mainplot = undefined;\n plotinfo.mainplotinfo = undefined;\n regulars.push(id);\n }\n }\n\n // fill in list of overlaying subplots in 'main plot'\n for(i = 0; i < overlays.length; i++) {\n id = overlays[i];\n plotinfo = fullLayout._plots[id];\n plotinfo.mainplotinfo.overlays.push(plotinfo);\n }\n\n // put 'regular' subplot data before 'overlaying'\n var subplotIds = regulars.concat(overlays);\n var subplotData = new Array(len);\n\n for(i = 0; i < len; i++) {\n id = subplotIds[i];\n plotinfo = fullLayout._plots[id];\n xa = plotinfo.xaxis;\n ya = plotinfo.yaxis;\n\n // use info about axis layer and overlaying pattern\n // to clean what need to be cleaned up in exit selection\n var d = [id, xa.layer, ya.layer, xa.overlaying || '', ya.overlaying || ''];\n for(j = 0; j < plotinfo.overlays.length; j++) {\n d.push(plotinfo.overlays[j].id);\n }\n subplotData[i] = d;\n }\n\n return subplotData;\n}\n\nfunction makeSubplotLayer(gd, plotinfo) {\n var plotgroup = plotinfo.plotgroup;\n var id = plotinfo.id;\n var xLayer = constants.layerValue2layerClass[plotinfo.xaxis.layer];\n var yLayer = constants.layerValue2layerClass[plotinfo.yaxis.layer];\n var hasOnlyLargeSploms = gd._fullLayout._hasOnlyLargeSploms;\n\n if(!plotinfo.mainplot) {\n if(hasOnlyLargeSploms) {\n // TODO could do even better\n // - we don't need plot (but we would have to mock it in lsInner\n // and other places\n // - we don't (x|y)lines and (x|y)axislayer for most subplots\n // usually just the bottom x and left y axes.\n plotinfo.xlines = ensureSingle(plotgroup, 'path', 'xlines-above');\n plotinfo.ylines = ensureSingle(plotgroup, 'path', 'ylines-above');\n plotinfo.xaxislayer = ensureSingle(plotgroup, 'g', 'xaxislayer-above');\n plotinfo.yaxislayer = ensureSingle(plotgroup, 'g', 'yaxislayer-above');\n } else {\n var backLayer = ensureSingle(plotgroup, 'g', 'layer-subplot');\n plotinfo.shapelayer = ensureSingle(backLayer, 'g', 'shapelayer');\n plotinfo.imagelayer = ensureSingle(backLayer, 'g', 'imagelayer');\n\n plotinfo.minorGridlayer = ensureSingle(plotgroup, 'g', 'minor-gridlayer');\n plotinfo.gridlayer = ensureSingle(plotgroup, 'g', 'gridlayer');\n plotinfo.zerolinelayer = ensureSingle(plotgroup, 'g', 'zerolinelayer');\n\n ensureSingle(plotgroup, 'path', 'xlines-below');\n ensureSingle(plotgroup, 'path', 'ylines-below');\n plotinfo.overlinesBelow = ensureSingle(plotgroup, 'g', 'overlines-below');\n\n ensureSingle(plotgroup, 'g', 'xaxislayer-below');\n ensureSingle(plotgroup, 'g', 'yaxislayer-below');\n plotinfo.overaxesBelow = ensureSingle(plotgroup, 'g', 'overaxes-below');\n\n plotinfo.plot = ensureSingle(plotgroup, 'g', 'plot');\n plotinfo.overplot = ensureSingle(plotgroup, 'g', 'overplot');\n\n plotinfo.xlines = ensureSingle(plotgroup, 'path', 'xlines-above');\n plotinfo.ylines = ensureSingle(plotgroup, 'path', 'ylines-above');\n plotinfo.overlinesAbove = ensureSingle(plotgroup, 'g', 'overlines-above');\n\n ensureSingle(plotgroup, 'g', 'xaxislayer-above');\n ensureSingle(plotgroup, 'g', 'yaxislayer-above');\n plotinfo.overaxesAbove = ensureSingle(plotgroup, 'g', 'overaxes-above');\n\n // set refs to correct layers as determined by 'axis.layer'\n plotinfo.xlines = plotgroup.select('.xlines-' + xLayer);\n plotinfo.ylines = plotgroup.select('.ylines-' + yLayer);\n plotinfo.xaxislayer = plotgroup.select('.xaxislayer-' + xLayer);\n plotinfo.yaxislayer = plotgroup.select('.yaxislayer-' + yLayer);\n }\n } else {\n var mainplotinfo = plotinfo.mainplotinfo;\n var mainplotgroup = mainplotinfo.plotgroup;\n var xId = id + '-x';\n var yId = id + '-y';\n\n // now make the components of overlaid subplots\n // overlays don't have backgrounds, and append all\n // their other components to the corresponding\n // extra groups of their main plots.\n\n plotinfo.minorGridlayer = mainplotinfo.minorGridlayer;\n plotinfo.gridlayer = mainplotinfo.gridlayer;\n plotinfo.zerolinelayer = mainplotinfo.zerolinelayer;\n\n ensureSingle(mainplotinfo.overlinesBelow, 'path', xId);\n ensureSingle(mainplotinfo.overlinesBelow, 'path', yId);\n ensureSingle(mainplotinfo.overaxesBelow, 'g', xId);\n ensureSingle(mainplotinfo.overaxesBelow, 'g', yId);\n\n plotinfo.plot = ensureSingle(mainplotinfo.overplot, 'g', id);\n\n ensureSingle(mainplotinfo.overlinesAbove, 'path', xId);\n ensureSingle(mainplotinfo.overlinesAbove, 'path', yId);\n ensureSingle(mainplotinfo.overaxesAbove, 'g', xId);\n ensureSingle(mainplotinfo.overaxesAbove, 'g', yId);\n\n // set refs to correct layers as determined by 'abovetraces'\n plotinfo.xlines = mainplotgroup.select('.overlines-' + xLayer).select('.' + xId);\n plotinfo.ylines = mainplotgroup.select('.overlines-' + yLayer).select('.' + yId);\n plotinfo.xaxislayer = mainplotgroup.select('.overaxes-' + xLayer).select('.' + xId);\n plotinfo.yaxislayer = mainplotgroup.select('.overaxes-' + yLayer).select('.' + yId);\n }\n\n // common attributes for all subplots, overlays or not\n\n if(!hasOnlyLargeSploms) {\n ensureSingleAndAddDatum(plotinfo.minorGridlayer, 'g', plotinfo.xaxis._id);\n ensureSingleAndAddDatum(plotinfo.minorGridlayer, 'g', plotinfo.yaxis._id);\n plotinfo.minorGridlayer.selectAll('g')\n .map(function(d) { return d[0]; })\n .sort(axisIds.idSort);\n\n ensureSingleAndAddDatum(plotinfo.gridlayer, 'g', plotinfo.xaxis._id);\n ensureSingleAndAddDatum(plotinfo.gridlayer, 'g', plotinfo.yaxis._id);\n plotinfo.gridlayer.selectAll('g')\n .map(function(d) { return d[0]; })\n .sort(axisIds.idSort);\n }\n\n plotinfo.xlines\n .style('fill', 'none')\n .classed('crisp', true);\n\n plotinfo.ylines\n .style('fill', 'none')\n .classed('crisp', true);\n}\n\nfunction purgeSubplotLayers(layers, fullLayout) {\n if(!layers) return;\n\n var overlayIdsToRemove = {};\n\n layers.each(function(d) {\n var id = d[0];\n var plotgroup = d3.select(this);\n\n plotgroup.remove();\n removeSubplotExtras(id, fullLayout);\n overlayIdsToRemove[id] = true;\n\n // do not remove individual axis s here\n // as other subplots may need them\n });\n\n // must remove overlaid subplot trace layers 'manually'\n\n for(var k in fullLayout._plots) {\n var subplotInfo = fullLayout._plots[k];\n var overlays = subplotInfo.overlays || [];\n\n for(var j = 0; j < overlays.length; j++) {\n var overlayInfo = overlays[j];\n\n if(overlayIdsToRemove[overlayInfo.id]) {\n overlayInfo.plot.selectAll('.trace').remove();\n }\n }\n }\n}\n\nfunction removeSubplotExtras(subplotId, fullLayout) {\n fullLayout._draggers.selectAll('g.' + subplotId).remove();\n fullLayout._defs.select('#clip' + fullLayout._uid + subplotId + 'plot').remove();\n}\n\nexports.toSVG = function(gd) {\n var imageRoot = gd._fullLayout._glimages;\n var root = d3.select(gd).selectAll('.svg-container');\n var canvases = root.filter(function(d, i) {return i === root.size() - 1;})\n .selectAll('.gl-canvas-context, .gl-canvas-focus');\n\n function canvasToImage() {\n var canvas = this;\n var imageData = canvas.toDataURL('image/png');\n var image = imageRoot.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n preserveAspectRatio: 'none',\n x: 0,\n y: 0,\n width: canvas.style.width,\n height: canvas.style.height\n });\n }\n\n canvases.each(canvasToImage);\n};\n\nexports.updateFx = _dereq_('./graph_interact').updateFx;\n\n},{\"../../components/drawing\":389,\"../../constants/xmlns_namespaces\":492,\"../../lib\":515,\"../../registry\":647,\"../get_data\":602,\"../plots\":628,\"./attributes\":564,\"./axis_ids\":570,\"./constants\":573,\"./graph_interact\":576,\"./layout_attributes\":579,\"./layout_defaults\":580,\"./transition_axes\":590,\"@plotly/d3\":58}],579:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar descriptionWithDates = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionWithDates;\n\nvar ONEDAY = _dereq_('../../constants/numerical').ONEDAY;\nvar constants = _dereq_('./constants');\nvar HOUR = constants.HOUR_PATTERN;\nvar DAY_OF_WEEK = constants.WEEKDAY_PATTERN;\n\nvar tickmode = {\n valType: 'enumerated',\n values: ['auto', 'linear', 'array'],\n editType: 'ticks',\n impliedEdits: {tick0: undefined, dtick: undefined},\n};\n\nfunction makeNticks(minor) {\n return {\n valType: 'integer',\n min: 0,\n dflt: minor ? 5 : 0,\n editType: 'ticks',\n };\n}\n\nvar tick0 = {\n valType: 'any',\n editType: 'ticks',\n impliedEdits: {tickmode: 'linear'},\n};\n\nvar dtick = {\n valType: 'any',\n editType: 'ticks',\n impliedEdits: {tickmode: 'linear'},\n};\n\nvar tickvals = {\n valType: 'data_array',\n editType: 'ticks',\n};\n\nvar ticks = {\n valType: 'enumerated',\n values: ['outside', 'inside', ''],\n editType: 'ticks',\n};\n\nfunction makeTicklen(minor) {\n var obj = {\n valType: 'number',\n min: 0,\n editType: 'ticks',\n };\n\n if(!minor) obj.dflt = 5;\n\n return obj;\n}\n\nfunction makeTickwidth(minor) {\n var obj = {\n valType: 'number',\n min: 0,\n editType: 'ticks',\n };\n\n if(!minor) obj.dflt = 1;\n\n return obj;\n}\n\nvar tickcolor = {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n};\n\nvar gridcolor = {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n editType: 'ticks',\n};\n\nfunction makeGridwidth(minor) {\n var obj = {\n valType: 'number',\n min: 0,\n editType: 'ticks',\n };\n\n if(!minor) obj.dflt = 1;\n\n return obj;\n}\n\nvar griddash = extendFlat({}, dash, {editType: 'ticks'});\n\nvar showgrid = {\n valType: 'boolean',\n editType: 'ticks',\n};\n\nmodule.exports = {\n visible: {\n valType: 'boolean',\n editType: 'plot',\n },\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n title: {\n text: {\n valType: 'string',\n editType: 'ticks',\n },\n font: fontAttrs({\n editType: 'ticks',\n }),\n standoff: {\n valType: 'number',\n min: 0,\n editType: 'ticks',\n },\n editType: 'ticks'\n },\n type: {\n valType: 'enumerated',\n // '-' means we haven't yet run autotype or couldn't find any data\n // it gets turned into linear in gd._fullLayout but not copied back\n // to gd.data like the others are.\n values: ['-', 'linear', 'log', 'date', 'category', 'multicategory'],\n dflt: '-',\n editType: 'calc',\n // we forget when an axis has been autotyped, just writing the auto\n // value back to the input - so it doesn't make sense to template this.\n // Note: we do NOT prohibit this in `coerce`, so if someone enters a\n // type in the template explicitly it will be honored as the default.\n _noTemplating: true,\n },\n autotypenumbers: {\n valType: 'enumerated',\n values: ['convert types', 'strict'],\n dflt: 'convert types',\n editType: 'calc',\n },\n autorange: {\n valType: 'enumerated',\n values: [true, false, 'reversed'],\n dflt: true,\n editType: 'axrange',\n impliedEdits: {'range[0]': undefined, 'range[1]': undefined},\n },\n rangemode: {\n valType: 'enumerated',\n values: ['normal', 'tozero', 'nonnegative'],\n dflt: 'normal',\n editType: 'plot',\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true},\n {valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true}\n ],\n editType: 'axrange',\n impliedEdits: {'autorange': false},\n anim: true,\n },\n fixedrange: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n // scaleanchor: not used directly, just put here for reference\n // values are any opposite-letter axis id\n scaleanchor: {\n valType: 'enumerated',\n values: [\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'plot',\n },\n scaleratio: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n constrain: {\n valType: 'enumerated',\n values: ['range', 'domain'],\n editType: 'plot',\n },\n // constraintoward: not used directly, just put here for reference\n constraintoward: {\n valType: 'enumerated',\n values: ['left', 'center', 'right', 'top', 'middle', 'bottom'],\n editType: 'plot',\n },\n matches: {\n valType: 'enumerated',\n values: [\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'calc',\n },\n\n rangebreaks: templatedArray('rangebreak', {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n\n bounds: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'calc'},\n {valType: 'any', editType: 'calc'}\n ],\n editType: 'calc',\n },\n\n pattern: {\n valType: 'enumerated',\n values: [DAY_OF_WEEK, HOUR, ''],\n editType: 'calc',\n },\n\n values: {\n valType: 'info_array',\n freeLength: true,\n editType: 'calc',\n items: {\n valType: 'any',\n editType: 'calc'\n },\n },\n dvalue: {\n // TODO could become 'any' to add support for 'months', 'years'\n valType: 'number',\n editType: 'calc',\n min: 0,\n dflt: ONEDAY,\n },\n\n /*\n gap: {\n valType: 'number',\n min: 0,\n dflt: 0, // for *date* axes, maybe something else for *linear*\n editType: 'calc',\n },\n gapmode: {\n valType: 'enumerated',\n values: ['pixels', 'fraction'],\n dflt: 'pixels',\n editType: 'calc',\n },\n */\n\n // To complete https://github.com/plotly/plotly.js/issues/4210\n // we additionally need `gap` and make this work on *linear*, and\n // possibly all other cartesian axis types. We possibly would also need\n // some style attributes controlling the zig-zag on the corresponding\n // axis.\n\n editType: 'calc'\n }),\n\n // ticks\n tickmode: tickmode,\n nticks: makeNticks(),\n tick0: tick0,\n dtick: dtick,\n ticklabelstep: {\n valType: 'integer',\n min: 1,\n dflt: 1,\n editType: 'ticks',\n },\n tickvals: tickvals,\n ticktext: {\n valType: 'data_array',\n editType: 'ticks',\n },\n ticks: ticks,\n tickson: {\n valType: 'enumerated',\n values: ['labels', 'boundaries'],\n dflt: 'labels',\n editType: 'ticks',\n },\n ticklabelmode: {\n valType: 'enumerated',\n values: ['instant', 'period'],\n dflt: 'instant',\n editType: 'ticks',\n },\n // ticklabelposition: not used directly, as values depend on direction (similar to side)\n // left/right options are for x axes, and top/bottom options are for y axes\n ticklabelposition: {\n valType: 'enumerated',\n values: [\n 'outside', 'inside',\n 'outside top', 'inside top',\n 'outside left', 'inside left',\n 'outside right', 'inside right',\n 'outside bottom', 'inside bottom'\n ],\n dflt: 'outside',\n editType: 'calc',\n },\n ticklabeloverflow: {\n valType: 'enumerated',\n values: [\n 'allow',\n 'hide past div',\n 'hide past domain'\n ],\n editType: 'calc',\n },\n mirror: {\n valType: 'enumerated',\n values: [true, 'ticks', false, 'all', 'allticks'],\n dflt: false,\n editType: 'ticks+layoutstyle',\n },\n ticklen: makeTicklen(),\n tickwidth: makeTickwidth(),\n tickcolor: tickcolor,\n showticklabels: {\n valType: 'boolean',\n dflt: true,\n editType: 'ticks',\n },\n automargin: {\n valType: 'flaglist',\n flags: ['height', 'width', 'left', 'right', 'top', 'bottom'],\n extras: [true, false],\n dflt: false,\n editType: 'ticks',\n },\n showspikes: {\n valType: 'boolean',\n dflt: false,\n editType: 'modebar',\n },\n spikecolor: {\n valType: 'color',\n dflt: null,\n editType: 'none',\n },\n spikethickness: {\n valType: 'number',\n dflt: 3,\n editType: 'none',\n },\n spikedash: extendFlat({}, dash, {dflt: 'dash', editType: 'none'}),\n spikemode: {\n valType: 'flaglist',\n flags: ['toaxis', 'across', 'marker'],\n dflt: 'toaxis',\n editType: 'none',\n },\n spikesnap: {\n valType: 'enumerated',\n values: ['data', 'cursor', 'hovered data'],\n dflt: 'hovered data',\n editType: 'none',\n },\n tickfont: fontAttrs({\n editType: 'ticks',\n }),\n tickangle: {\n valType: 'angle',\n dflt: 'auto',\n editType: 'ticks',\n },\n tickprefix: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n },\n showtickprefix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'ticks',\n },\n ticksuffix: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n },\n showticksuffix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'ticks',\n },\n showexponent: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'ticks',\n },\n exponentformat: {\n valType: 'enumerated',\n values: ['none', 'e', 'E', 'power', 'SI', 'B'],\n dflt: 'B',\n editType: 'ticks',\n },\n minexponent: {\n valType: 'number',\n dflt: 3,\n min: 0,\n editType: 'ticks',\n },\n separatethousands: {\n valType: 'boolean',\n dflt: false,\n editType: 'ticks',\n },\n tickformat: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n description: descriptionWithDates('tick label')\n },\n tickformatstops: templatedArray('tickformatstop', {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'ticks',\n },\n dtickrange: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'ticks'},\n {valType: 'any', editType: 'ticks'}\n ],\n editType: 'ticks',\n },\n value: {\n valType: 'string',\n dflt: '',\n editType: 'ticks',\n },\n editType: 'ticks'\n }),\n hoverformat: {\n valType: 'string',\n dflt: '',\n editType: 'none',\n description: descriptionWithDates('hover text')\n },\n // lines and grids\n showline: {\n valType: 'boolean',\n dflt: false,\n editType: 'ticks+layoutstyle',\n },\n linecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'layoutstyle',\n },\n linewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'ticks+layoutstyle',\n },\n showgrid: showgrid,\n gridcolor: gridcolor,\n gridwidth: makeGridwidth(),\n griddash: griddash,\n\n zeroline: {\n valType: 'boolean',\n editType: 'ticks',\n },\n zerolinecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n zerolinewidth: {\n valType: 'number',\n dflt: 1,\n editType: 'ticks',\n },\n\n showdividers: {\n valType: 'boolean',\n dflt: true,\n editType: 'ticks',\n },\n dividercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'ticks',\n },\n dividerwidth: {\n valType: 'number',\n dflt: 1,\n editType: 'ticks',\n },\n // TODO dividerlen: that would override \"to label base\" length?\n\n // positioning attributes\n // anchor: not used directly, just put here for reference\n // values are any opposite-letter axis id\n anchor: {\n valType: 'enumerated',\n values: [\n 'free',\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'plot',\n },\n // side: not used directly, as values depend on direction\n // values are top, bottom for x axes, and left, right for y\n side: {\n valType: 'enumerated',\n values: ['top', 'bottom', 'left', 'right'],\n editType: 'plot',\n },\n // overlaying: not used directly, just put here for reference\n // values are false and any other same-letter axis id that's not\n // itself overlaying anything\n overlaying: {\n valType: 'enumerated',\n values: [\n 'free',\n constants.idRegex.x.toString(),\n constants.idRegex.y.toString()\n ],\n editType: 'plot',\n },\n\n minor: {\n tickmode: tickmode,\n nticks: makeNticks('minor'),\n tick0: tick0,\n dtick: dtick,\n tickvals: tickvals,\n ticks: ticks,\n ticklen: makeTicklen('minor'),\n tickwidth: makeTickwidth('minor'),\n tickcolor: tickcolor,\n\n gridcolor: gridcolor,\n gridwidth: makeGridwidth('minor'),\n griddash: griddash,\n showgrid: showgrid,\n\n editType: 'ticks'\n },\n\n layer: {\n valType: 'enumerated',\n values: ['above traces', 'below traces'],\n dflt: 'above traces',\n editType: 'plot',\n },\n domain: {\n valType: 'info_array',\n items: [\n {valType: 'number', min: 0, max: 1, editType: 'plot'},\n {valType: 'number', min: 0, max: 1, editType: 'plot'}\n ],\n dflt: [0, 1],\n editType: 'plot',\n },\n position: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'plot',\n },\n categoryorder: {\n valType: 'enumerated',\n values: [\n 'trace', 'category ascending', 'category descending', 'array',\n 'total ascending', 'total descending',\n 'min ascending', 'min descending',\n 'max ascending', 'max descending',\n 'sum ascending', 'sum descending',\n 'mean ascending', 'mean descending',\n 'median ascending', 'median descending'\n ],\n dflt: 'trace',\n editType: 'calc',\n },\n categoryarray: {\n valType: 'data_array',\n editType: 'calc',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n editType: 'calc',\n\n _deprecated: {\n autotick: {\n valType: 'boolean',\n editType: 'ticks',\n },\n title: {\n valType: 'string',\n editType: 'ticks',\n },\n titlefont: fontAttrs({\n editType: 'ticks',\n })\n }\n};\n\n},{\"../../components/color/attributes\":366,\"../../components/drawing/attributes\":388,\"../../constants/numerical\":491,\"../../lib/extend\":505,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/axis_format_attributes\":569,\"../font_attributes\":594,\"./constants\":573}],580:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar isUnifiedHover = _dereq_('../../components/fx/helpers').isUnifiedHover;\nvar handleHoverModeDefaults = _dereq_('../../components/fx/hovermode_defaults');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar basePlotLayoutAttributes = _dereq_('../layout_attributes');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar handleTypeDefaults = _dereq_('./type_defaults');\nvar handleAxisDefaults = _dereq_('./axis_defaults');\nvar constraints = _dereq_('./constraints');\nvar handlePositionDefaults = _dereq_('./position_defaults');\n\nvar axisIds = _dereq_('./axis_ids');\nvar id2name = axisIds.id2name;\nvar name2id = axisIds.name2id;\n\nvar AX_ID_PATTERN = _dereq_('./constants').AX_ID_PATTERN;\n\nvar Registry = _dereq_('../../registry');\nvar traceIs = Registry.traceIs;\nvar getComponentMethod = Registry.getComponentMethod;\n\nfunction appendList(cont, k, item) {\n if(Array.isArray(cont[k])) cont[k].push(item);\n else cont[k] = [item];\n}\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n var autotypenumbersDflt = layoutOut.autotypenumbers;\n\n var ax2traces = {};\n var xaMayHide = {};\n var yaMayHide = {};\n var xaMustDisplay = {};\n var yaMustDisplay = {};\n var yaMustNotReverse = {};\n var yaMayReverse = {};\n var axHasImage = {};\n var outerTicks = {};\n var noGrids = {};\n var i, j;\n\n // look for axes in the data\n for(i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(!traceIs(trace, 'cartesian') && !traceIs(trace, 'gl2d')) continue;\n\n var xaName;\n if(trace.xaxis) {\n xaName = id2name(trace.xaxis);\n appendList(ax2traces, xaName, trace);\n } else if(trace.xaxes) {\n for(j = 0; j < trace.xaxes.length; j++) {\n appendList(ax2traces, id2name(trace.xaxes[j]), trace);\n }\n }\n\n var yaName;\n if(trace.yaxis) {\n yaName = id2name(trace.yaxis);\n appendList(ax2traces, yaName, trace);\n } else if(trace.yaxes) {\n for(j = 0; j < trace.yaxes.length; j++) {\n appendList(ax2traces, id2name(trace.yaxes[j]), trace);\n }\n }\n\n // logic for funnels\n if(trace.type === 'funnel') {\n if(trace.orientation === 'h') {\n if(xaName) xaMayHide[xaName] = true;\n if(yaName) yaMayReverse[yaName] = true;\n } else {\n if(yaName) yaMayHide[yaName] = true;\n }\n } else if(trace.type === 'image') {\n if(yaName) axHasImage[yaName] = true;\n if(xaName) axHasImage[xaName] = true;\n } else {\n if(yaName) {\n yaMustDisplay[yaName] = true;\n yaMustNotReverse[yaName] = true;\n }\n\n if(!traceIs(trace, 'carpet') || (trace.type === 'carpet' && !trace._cheater)) {\n if(xaName) xaMustDisplay[xaName] = true;\n }\n }\n\n // Two things trigger axis visibility:\n // 1. is not carpet\n // 2. carpet that's not cheater\n\n // The above check for definitely-not-cheater is not adequate. This\n // second list tracks which axes *could* be a cheater so that the\n // full condition triggering hiding is:\n // *could* be a cheater and *is not definitely visible*\n if(trace.type === 'carpet' && trace._cheater) {\n if(xaName) xaMayHide[xaName] = true;\n }\n\n // check for default formatting tweaks\n if(traceIs(trace, '2dMap')) {\n outerTicks[xaName] = true;\n outerTicks[yaName] = true;\n }\n\n if(traceIs(trace, 'oriented')) {\n var positionAxis = trace.orientation === 'h' ? yaName : xaName;\n noGrids[positionAxis] = true;\n }\n }\n\n var subplots = layoutOut._subplots;\n var xIds = subplots.xaxis;\n var yIds = subplots.yaxis;\n var xNames = Lib.simpleMap(xIds, id2name);\n var yNames = Lib.simpleMap(yIds, id2name);\n var axNames = xNames.concat(yNames);\n\n // plot_bgcolor only makes sense if there's a (2D) plot!\n // TODO: bgcolor for each subplot, to inherit from the main one\n var plotBgColor = Color.background;\n if(xIds.length && yIds.length) {\n plotBgColor = Lib.coerce(layoutIn, layoutOut, basePlotLayoutAttributes, 'plot_bgcolor');\n }\n\n var bgColor = Color.combine(plotBgColor, layoutOut.paper_bgcolor);\n\n // name of single axis (e.g. 'xaxis', 'yaxis2')\n var axName;\n // id of single axis (e.g. 'y', 'x5')\n var axId;\n // 'x' or 'y'\n var axLetter;\n // input layout axis container\n var axLayoutIn;\n // full layout axis container\n var axLayoutOut;\n\n function newAxLayoutOut() {\n var traces = ax2traces[axName] || [];\n axLayoutOut._traceIndices = traces.map(function(t) { return t._expandedIndex; });\n axLayoutOut._annIndices = [];\n axLayoutOut._shapeIndices = [];\n axLayoutOut._selectionIndices = [];\n axLayoutOut._imgIndices = [];\n axLayoutOut._subplotsWith = [];\n axLayoutOut._counterAxes = [];\n axLayoutOut._name = axLayoutOut._attr = axName;\n axLayoutOut._id = axId;\n }\n\n function coerce(attr, dflt) {\n return Lib.coerce(axLayoutIn, axLayoutOut, layoutAttributes, attr, dflt);\n }\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(axLayoutIn, axLayoutOut, layoutAttributes, attr, dflt);\n }\n\n function getCounterAxes(axLetter) {\n return (axLetter === 'x') ? yIds : xIds;\n }\n\n function getOverlayableAxes(axLetter, axName) {\n var list = (axLetter === 'x') ? xNames : yNames;\n var out = [];\n\n for(var j = 0; j < list.length; j++) {\n var axName2 = list[j];\n\n if(axName2 !== axName && !(layoutIn[axName2] || {}).overlaying) {\n out.push(name2id(axName2));\n }\n }\n\n return out;\n }\n\n // list of available counter axis names\n var counterAxes = {x: getCounterAxes('x'), y: getCounterAxes('y')};\n // list of all x AND y axis ids\n var allAxisIds = counterAxes.x.concat(counterAxes.y);\n // lookup and list of axis ids that axes in axNames have a reference to,\n // even though they are missing from allAxisIds\n var missingMatchedAxisIdsLookup = {};\n var missingMatchedAxisIds = [];\n\n // fill in 'missing' axis lookup when an axis is set to match an axis\n // not part of the allAxisIds list, save axis type so that we can propagate\n // it to the missing axes\n function addMissingMatchedAxis() {\n var matchesIn = axLayoutIn.matches;\n if(AX_ID_PATTERN.test(matchesIn) && allAxisIds.indexOf(matchesIn) === -1) {\n missingMatchedAxisIdsLookup[matchesIn] = axLayoutIn.type;\n missingMatchedAxisIds = Object.keys(missingMatchedAxisIdsLookup);\n }\n }\n\n var hovermode = handleHoverModeDefaults(layoutIn, layoutOut);\n var unifiedHover = isUnifiedHover(hovermode);\n\n // first pass creates the containers, determines types, and handles most of the settings\n for(i = 0; i < axNames.length; i++) {\n axName = axNames[i];\n axId = name2id(axName);\n axLetter = axName.charAt(0);\n\n if(!Lib.isPlainObject(layoutIn[axName])) {\n layoutIn[axName] = {};\n }\n\n axLayoutIn = layoutIn[axName];\n axLayoutOut = Template.newContainer(layoutOut, axName, axLetter + 'axis');\n newAxLayoutOut();\n\n var visibleDflt =\n (axLetter === 'x' && !xaMustDisplay[axName] && xaMayHide[axName]) ||\n (axLetter === 'y' && !yaMustDisplay[axName] && yaMayHide[axName]);\n\n var reverseDflt =\n (axLetter === 'y' &&\n (\n (!yaMustNotReverse[axName] && yaMayReverse[axName]) ||\n axHasImage[axName]\n ));\n\n var defaultOptions = {\n hasMinor: true,\n letter: axLetter,\n font: layoutOut.font,\n outerTicks: outerTicks[axName],\n showGrid: !noGrids[axName],\n data: ax2traces[axName] || [],\n bgColor: bgColor,\n calendar: layoutOut.calendar,\n automargin: true,\n visibleDflt: visibleDflt,\n reverseDflt: reverseDflt,\n autotypenumbersDflt: autotypenumbersDflt,\n splomStash: ((layoutOut._splomAxes || {})[axLetter] || {})[axId]\n };\n\n coerce('uirevision', layoutOut.uirevision);\n\n handleTypeDefaults(axLayoutIn, axLayoutOut, coerce, defaultOptions);\n handleAxisDefaults(axLayoutIn, axLayoutOut, coerce, defaultOptions, layoutOut);\n\n var unifiedSpike = unifiedHover && axLetter === hovermode.charAt(0);\n var spikecolor = coerce2('spikecolor', unifiedHover ? axLayoutOut.color : undefined);\n var spikethickness = coerce2('spikethickness', unifiedHover ? 1.5 : undefined);\n var spikedash = coerce2('spikedash', unifiedHover ? 'dot' : undefined);\n var spikemode = coerce2('spikemode', unifiedHover ? 'across' : undefined);\n var spikesnap = coerce2('spikesnap');\n var showSpikes = coerce('showspikes', !!unifiedSpike || !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap);\n\n if(!showSpikes) {\n delete axLayoutOut.spikecolor;\n delete axLayoutOut.spikethickness;\n delete axLayoutOut.spikedash;\n delete axLayoutOut.spikemode;\n delete axLayoutOut.spikesnap;\n }\n\n handlePositionDefaults(axLayoutIn, axLayoutOut, coerce, {\n letter: axLetter,\n counterAxes: counterAxes[axLetter],\n overlayableAxes: getOverlayableAxes(axLetter, axName),\n grid: layoutOut.grid\n });\n\n coerce('title.standoff');\n\n addMissingMatchedAxis();\n\n axLayoutOut._input = axLayoutIn;\n }\n\n // coerce the 'missing' axes\n i = 0;\n while(i < missingMatchedAxisIds.length) {\n axId = missingMatchedAxisIds[i++];\n axName = id2name(axId);\n axLetter = axName.charAt(0);\n\n if(!Lib.isPlainObject(layoutIn[axName])) {\n layoutIn[axName] = {};\n }\n\n axLayoutIn = layoutIn[axName];\n axLayoutOut = Template.newContainer(layoutOut, axName, axLetter + 'axis');\n newAxLayoutOut();\n\n var defaultOptions2 = {\n letter: axLetter,\n font: layoutOut.font,\n outerTicks: outerTicks[axName],\n showGrid: !noGrids[axName],\n data: [],\n bgColor: bgColor,\n calendar: layoutOut.calendar,\n automargin: true,\n visibleDflt: false,\n reverseDflt: false,\n autotypenumbersDflt: autotypenumbersDflt,\n splomStash: ((layoutOut._splomAxes || {})[axLetter] || {})[axId]\n };\n\n coerce('uirevision', layoutOut.uirevision);\n\n axLayoutOut.type = missingMatchedAxisIdsLookup[axId] || 'linear';\n\n handleAxisDefaults(axLayoutIn, axLayoutOut, coerce, defaultOptions2, layoutOut);\n\n handlePositionDefaults(axLayoutIn, axLayoutOut, coerce, {\n letter: axLetter,\n counterAxes: counterAxes[axLetter],\n overlayableAxes: getOverlayableAxes(axLetter, axName),\n grid: layoutOut.grid\n });\n\n coerce('fixedrange');\n\n addMissingMatchedAxis();\n\n axLayoutOut._input = axLayoutIn;\n }\n\n // quick second pass for range slider and selector defaults\n var rangeSliderDefaults = getComponentMethod('rangeslider', 'handleDefaults');\n var rangeSelectorDefaults = getComponentMethod('rangeselector', 'handleDefaults');\n\n for(i = 0; i < xNames.length; i++) {\n axName = xNames[i];\n axLayoutIn = layoutIn[axName];\n axLayoutOut = layoutOut[axName];\n\n rangeSliderDefaults(layoutIn, layoutOut, axName);\n\n if(axLayoutOut.type === 'date') {\n rangeSelectorDefaults(\n axLayoutIn,\n axLayoutOut,\n layoutOut,\n yNames,\n axLayoutOut.calendar\n );\n }\n\n coerce('fixedrange');\n }\n\n for(i = 0; i < yNames.length; i++) {\n axName = yNames[i];\n axLayoutIn = layoutIn[axName];\n axLayoutOut = layoutOut[axName];\n\n var anchoredAxis = layoutOut[id2name(axLayoutOut.anchor)];\n\n var fixedRangeDflt = getComponentMethod('rangeslider', 'isVisible')(anchoredAxis);\n\n coerce('fixedrange', fixedRangeDflt);\n }\n\n // Finally, handle scale constraints and matching axes.\n //\n // We need to do this after all axes have coerced both `type`\n // (so we link only axes of the same type) and\n // `fixedrange` (so we can avoid linking from OR TO a fixed axis).\n constraints.handleDefaults(layoutIn, layoutOut, {\n axIds: allAxisIds.concat(missingMatchedAxisIds).sort(axisIds.idSort),\n axHasImage: axHasImage\n });\n};\n\n},{\"../../components/color\":367,\"../../components/fx/helpers\":403,\"../../components/fx/hovermode_defaults\":406,\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../registry\":647,\"../layout_attributes\":619,\"./axis_defaults\":568,\"./axis_ids\":570,\"./constants\":573,\"./constraints\":574,\"./layout_attributes\":579,\"./position_defaults\":582,\"./type_defaults\":591}],581:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorMix = _dereq_('tinycolor2').mix;\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar Lib = _dereq_('../../lib');\n\n/**\n * @param {object} opts :\n * - dfltColor {string} : default axis color\n * - bgColor {string} : combined subplot bg color\n * - blend {number, optional} : blend percentage (to compute dflt grid color)\n * - showLine {boolean} : show line by default\n * - showGrid {boolean} : show grid by default\n * - noZeroLine {boolean} : don't coerce zeroline* attributes\n * - attributes {object} : attribute object associated with input containers\n */\nmodule.exports = function handleLineGridDefaults(containerIn, containerOut, coerce, opts) {\n opts = opts || {};\n\n var dfltColor = opts.dfltColor;\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(containerIn, containerOut, opts.attributes, attr, dflt);\n }\n\n var lineColor = coerce2('linecolor', dfltColor);\n var lineWidth = coerce2('linewidth');\n var showLine = coerce('showline', opts.showLine || !!lineColor || !!lineWidth);\n\n if(!showLine) {\n delete containerOut.linecolor;\n delete containerOut.linewidth;\n }\n\n var gridColorDflt = colorMix(dfltColor, opts.bgColor, opts.blend || colorAttrs.lightFraction).toRgbString();\n var gridColor = coerce2('gridcolor', gridColorDflt);\n var gridWidth = coerce2('gridwidth');\n var gridDash = coerce2('griddash');\n var showGridLines = coerce('showgrid', opts.showGrid ||\n !!gridColor ||\n !!gridWidth ||\n !!gridDash\n );\n\n if(!showGridLines) {\n delete containerOut.gridcolor;\n delete containerOut.gridwidth;\n delete containerOut.griddash;\n }\n\n if(opts.hasMinor) {\n var minorGridColorDflt = colorMix(containerOut.gridcolor, opts.bgColor, 67).toRgbString();\n var minorGridColor = coerce2('minor.gridcolor', minorGridColorDflt);\n var minorGridWidth = coerce2('minor.gridwidth', containerOut.gridwidth || 1);\n var minorGridDash = coerce2('minor.griddash', containerOut.griddash || 'solid');\n var minorShowGridLines = coerce('minor.showgrid',\n !!minorGridColor ||\n !!minorGridWidth ||\n !!minorGridDash\n );\n\n if(!minorShowGridLines) {\n delete containerOut.minor.gridcolor;\n delete containerOut.minor.gridwidth;\n delete containerOut.minor.griddash;\n }\n }\n\n if(!opts.noZeroLine) {\n var zeroLineColor = coerce2('zerolinecolor', dfltColor);\n var zeroLineWidth = coerce2('zerolinewidth');\n var showZeroLine = coerce('zeroline', opts.showGrid || !!zeroLineColor || !!zeroLineWidth);\n\n if(!showZeroLine) {\n delete containerOut.zerolinecolor;\n delete containerOut.zerolinewidth;\n }\n }\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib\":515,\"tinycolor2\":313}],582:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\n\n\nmodule.exports = function handlePositionDefaults(containerIn, containerOut, coerce, options) {\n var counterAxes = options.counterAxes || [];\n var overlayableAxes = options.overlayableAxes || [];\n var letter = options.letter;\n var grid = options.grid;\n\n var dfltAnchor, dfltDomain, dfltSide, dfltPosition;\n\n if(grid) {\n dfltDomain = grid._domains[letter][grid._axisMap[containerOut._id]];\n dfltAnchor = grid._anchors[containerOut._id];\n if(dfltDomain) {\n dfltSide = grid[letter + 'side'].split(' ')[0];\n dfltPosition = grid.domain[letter][dfltSide === 'right' || dfltSide === 'top' ? 1 : 0];\n }\n }\n\n // Even if there's a grid, this axis may not be in it - fall back on non-grid defaults\n dfltDomain = dfltDomain || [0, 1];\n dfltAnchor = dfltAnchor || (isNumeric(containerIn.position) ? 'free' : (counterAxes[0] || 'free'));\n dfltSide = dfltSide || (letter === 'x' ? 'bottom' : 'left');\n dfltPosition = dfltPosition || 0;\n\n var anchor = Lib.coerce(containerIn, containerOut, {\n anchor: {\n valType: 'enumerated',\n values: ['free'].concat(counterAxes),\n dflt: dfltAnchor\n }\n }, 'anchor');\n\n if(anchor === 'free') coerce('position', dfltPosition);\n\n Lib.coerce(containerIn, containerOut, {\n side: {\n valType: 'enumerated',\n values: letter === 'x' ? ['bottom', 'top'] : ['left', 'right'],\n dflt: dfltSide\n }\n }, 'side');\n\n var overlaying = false;\n if(overlayableAxes.length) {\n overlaying = Lib.coerce(containerIn, containerOut, {\n overlaying: {\n valType: 'enumerated',\n values: [false].concat(overlayableAxes),\n dflt: false\n }\n }, 'overlaying');\n }\n\n if(!overlaying) {\n // TODO: right now I'm copying this domain over to overlaying axes\n // in ax.setscale()... but this means we still need (imperfect) logic\n // in the axes popover to hide domain for the overlaying axis.\n // perhaps I should make a private version _domain that all axes get???\n var domain = coerce('domain', dfltDomain);\n\n // according to https://www.npmjs.com/package/canvas-size\n // the minimum value of max canvas width across browsers and devices is 4096\n // which applied in the calculation below:\n if(domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain;\n Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain);\n }\n\n coerce('layer');\n\n return containerOut;\n};\n\n},{\"../../lib\":515,\"fast-isnumeric\":190}],583:[function(_dereq_,module,exports){\n'use strict';\n\nvar getShowAttrDflt = _dereq_('./show_dflt');\n\nmodule.exports = function handlePrefixSuffixDefaults(containerIn, containerOut, coerce, axType, options) {\n if(!options) options = {};\n var tickSuffixDflt = options.tickSuffixDflt;\n\n var showAttrDflt = getShowAttrDflt(containerIn);\n\n var tickPrefix = coerce('tickprefix');\n if(tickPrefix) coerce('showtickprefix', showAttrDflt);\n\n var tickSuffix = coerce('ticksuffix', tickSuffixDflt);\n if(tickSuffix) coerce('showticksuffix', showAttrDflt);\n};\n\n},{\"./show_dflt\":586}],584:[function(_dereq_,module,exports){\n'use strict';\n\nvar FROM_BL = _dereq_('../../constants/alignment').FROM_BL;\n\nmodule.exports = function scaleZoom(ax, factor, centerFraction) {\n if(centerFraction === undefined) {\n centerFraction = FROM_BL[ax.constraintoward || 'center'];\n }\n\n var rangeLinear = [ax.r2l(ax.range[0]), ax.r2l(ax.range[1])];\n var center = rangeLinear[0] + (rangeLinear[1] - rangeLinear[0]) * centerFraction;\n\n ax.range = ax._input.range = [\n ax.l2r(center + (rangeLinear[0] - center) * factor),\n ax.l2r(center + (rangeLinear[1] - center) * factor)\n ];\n ax.setScale();\n};\n\n},{\"../../constants/alignment\":483}],585:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar utcFormat = _dereq_('d3-time-format').utcFormat;\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar cleanNumber = Lib.cleanNumber;\nvar ms2DateTime = Lib.ms2DateTime;\nvar dateTime2ms = Lib.dateTime2ms;\nvar ensureNumber = Lib.ensureNumber;\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\n\nvar numConstants = _dereq_('../../constants/numerical');\nvar FP_SAFE = numConstants.FP_SAFE;\nvar BADNUM = numConstants.BADNUM;\nvar LOG_CLIP = numConstants.LOG_CLIP;\nvar ONEWEEK = numConstants.ONEWEEK;\nvar ONEDAY = numConstants.ONEDAY;\nvar ONEHOUR = numConstants.ONEHOUR;\nvar ONEMIN = numConstants.ONEMIN;\nvar ONESEC = numConstants.ONESEC;\n\nvar axisIds = _dereq_('./axis_ids');\nvar constants = _dereq_('./constants');\nvar HOUR_PATTERN = constants.HOUR_PATTERN;\nvar WEEKDAY_PATTERN = constants.WEEKDAY_PATTERN;\n\nfunction fromLog(v) {\n return Math.pow(10, v);\n}\n\nfunction isValidCategory(v) {\n return v !== null && v !== undefined;\n}\n\n/**\n * Define the conversion functions for an axis data is used in 5 ways:\n *\n * d: data, in whatever form it's provided\n * c: calcdata: turned into numbers, but not linearized\n * l: linearized - same as c except for log axes (and other nonlinear\n * mappings later?) this is used when we need to know if it's\n * *possible* to show some data on this axis, without caring about\n * the current range\n * p: pixel value - mapped to the screen with current size and zoom\n * r: ranges, tick0, and annotation positions match one of the above\n * but are handled differently for different types:\n * - linear and date: data format (d)\n * - category: calcdata format (c), and will stay that way because\n * the data format has no continuous mapping\n * - log: linearized (l) format\n * TODO: in v3.0 we plan to change it to data format. At that point\n * shapes will work the same way as ranges, tick0, and annotations\n * so they can use this conversion too.\n *\n * Creates/updates these conversion functions, and a few more utilities\n * like cleanRange, and makeCalcdata\n *\n * also clears the autotick constraints ._minDtick, ._forceTick0\n */\nmodule.exports = function setConvert(ax, fullLayout) {\n fullLayout = fullLayout || {};\n\n var axId = (ax._id || 'x');\n var axLetter = axId.charAt(0);\n\n function toLog(v, clip) {\n if(v > 0) return Math.log(v) / Math.LN10;\n\n else if(v <= 0 && clip && ax.range && ax.range.length === 2) {\n // clip NaN (ie past negative infinity) to LOG_CLIP axis\n // length past the negative edge\n var r0 = ax.range[0];\n var r1 = ax.range[1];\n return 0.5 * (r0 + r1 - 2 * LOG_CLIP * Math.abs(r0 - r1));\n } else return BADNUM;\n }\n\n /*\n * wrapped dateTime2ms that:\n * - accepts ms numbers for backward compatibility\n * - inserts a dummy arg so calendar is the 3rd arg (see notes below).\n * - defaults to ax.calendar\n */\n function dt2ms(v, _, calendar, opts) {\n if((opts || {}).msUTC && isNumeric(v)) {\n // For now it is only used\n // to fix bar length in milliseconds & gl3d ticks\n // It could be applied in other places in v3\n return +v;\n }\n\n // NOTE: Changed this behavior: previously we took any numeric value\n // to be a ms, even if it was a string that could be a bare year.\n // Now we convert it as a date if at all possible, and only try\n // as (local) ms if that fails.\n var ms = dateTime2ms(v, calendar || ax.calendar);\n if(ms === BADNUM) {\n if(isNumeric(v)) {\n v = +v;\n // keep track of tenths of ms, that `new Date` will drop\n // same logic as in Lib.ms2DateTime\n var msecTenths = Math.floor(Lib.mod(v + 0.05, 1) * 10);\n var msRounded = Math.round(v - msecTenths / 10);\n ms = dateTime2ms(new Date(msRounded)) + msecTenths / 10;\n } else return BADNUM;\n }\n return ms;\n }\n\n // wrapped ms2DateTime to insert default ax.calendar\n function ms2dt(v, r, calendar) {\n return ms2DateTime(v, r, calendar || ax.calendar);\n }\n\n function getCategoryName(v) {\n return ax._categories[Math.round(v)];\n }\n\n /*\n * setCategoryIndex: return the index of category v,\n * inserting it in the list if it's not already there\n *\n * this will enter the categories in the order it\n * encounters them, ie all the categories from the\n * first data set, then all the ones from the second\n * that aren't in the first etc.\n *\n * it is assumed that this function is being invoked in the\n * already sorted category order; otherwise there would be\n * a disconnect between the array and the index returned\n */\n function setCategoryIndex(v) {\n if(isValidCategory(v)) {\n if(ax._categoriesMap === undefined) {\n ax._categoriesMap = {};\n }\n\n if(ax._categoriesMap[v] !== undefined) {\n return ax._categoriesMap[v];\n } else {\n ax._categories.push(typeof v === 'number' ? String(v) : v);\n\n var curLength = ax._categories.length - 1;\n ax._categoriesMap[v] = curLength;\n\n return curLength;\n }\n }\n return BADNUM;\n }\n\n function setMultiCategoryIndex(arrayIn, len) {\n var arrayOut = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var v0 = (arrayIn[0] || [])[i];\n var v1 = (arrayIn[1] || [])[i];\n arrayOut[i] = getCategoryIndex([v0, v1]);\n }\n\n return arrayOut;\n }\n\n function getCategoryIndex(v) {\n if(ax._categoriesMap) {\n return ax._categoriesMap[v];\n }\n }\n\n function getCategoryPosition(v) {\n // d2l/d2c variant that that won't add categories but will also\n // allow numbers to be mapped to the linearized axis positions\n var index = getCategoryIndex(v);\n if(index !== undefined) return index;\n if(isNumeric(v)) return +v;\n }\n\n function getRangePosition(v) {\n return isNumeric(v) ? +v : getCategoryIndex(v);\n }\n\n // include 2 fractional digits on pixel, for PDF zooming etc\n function _l2p(v, m, b) { return d3.round(b + m * v, 2); }\n\n function _p2l(px, m, b) { return (px - b) / m; }\n\n var l2p = function l2p(v) {\n if(!isNumeric(v)) return BADNUM;\n return _l2p(v, ax._m, ax._b);\n };\n\n var p2l = function(px) {\n return _p2l(px, ax._m, ax._b);\n };\n\n if(ax.rangebreaks) {\n var isY = axLetter === 'y';\n\n l2p = function(v) {\n if(!isNumeric(v)) return BADNUM;\n var len = ax._rangebreaks.length;\n if(!len) return _l2p(v, ax._m, ax._b);\n\n var flip = isY;\n if(ax.range[0] > ax.range[1]) flip = !flip;\n var signAx = flip ? -1 : 1;\n var pos = signAx * v;\n\n var q = 0;\n for(var i = 0; i < len; i++) {\n var min = signAx * ax._rangebreaks[i].min;\n var max = signAx * ax._rangebreaks[i].max;\n\n if(pos < min) break;\n if(pos > max) q = i + 1;\n else {\n // when falls into break, pick 'closest' offset\n q = pos < (min + max) / 2 ? i : i + 1;\n break;\n }\n }\n var b2 = ax._B[q] || 0;\n if(!isFinite(b2)) return 0; // avoid NaN translate e.g. in positionLabels if one keep zooming exactly into a break\n return _l2p(v, ax._m2, b2);\n };\n\n p2l = function(px) {\n var len = ax._rangebreaks.length;\n if(!len) return _p2l(px, ax._m, ax._b);\n\n var q = 0;\n for(var i = 0; i < len; i++) {\n if(px < ax._rangebreaks[i].pmin) break;\n if(px > ax._rangebreaks[i].pmax) q = i + 1;\n }\n return _p2l(px, ax._m2, ax._B[q]);\n };\n }\n\n // conversions among c/l/p are fairly simple - do them together for all axis types\n ax.c2l = (ax.type === 'log') ? toLog : ensureNumber;\n ax.l2c = (ax.type === 'log') ? fromLog : ensureNumber;\n\n ax.l2p = l2p;\n ax.p2l = p2l;\n\n ax.c2p = (ax.type === 'log') ? function(v, clip) { return l2p(toLog(v, clip)); } : l2p;\n ax.p2c = (ax.type === 'log') ? function(px) { return fromLog(p2l(px)); } : p2l;\n\n /*\n * now type-specific conversions for **ALL** other combinations\n * they're all written out, instead of being combinations of each other, for\n * both clarity and speed.\n */\n if(['linear', '-'].indexOf(ax.type) !== -1) {\n // all are data vals, but d and r need cleaning\n ax.d2r = ax.r2d = ax.d2c = ax.r2c = ax.d2l = ax.r2l = cleanNumber;\n ax.c2d = ax.c2r = ax.l2d = ax.l2r = ensureNumber;\n\n ax.d2p = ax.r2p = function(v) { return ax.l2p(cleanNumber(v)); };\n ax.p2d = ax.p2r = p2l;\n\n ax.cleanPos = ensureNumber;\n } else if(ax.type === 'log') {\n // d and c are data vals, r and l are logged (but d and r need cleaning)\n ax.d2r = ax.d2l = function(v, clip) { return toLog(cleanNumber(v), clip); };\n ax.r2d = ax.r2c = function(v) { return fromLog(cleanNumber(v)); };\n\n ax.d2c = ax.r2l = cleanNumber;\n ax.c2d = ax.l2r = ensureNumber;\n\n ax.c2r = toLog;\n ax.l2d = fromLog;\n\n ax.d2p = function(v, clip) { return ax.l2p(ax.d2r(v, clip)); };\n ax.p2d = function(px) { return fromLog(p2l(px)); };\n\n ax.r2p = function(v) { return ax.l2p(cleanNumber(v)); };\n ax.p2r = p2l;\n\n ax.cleanPos = ensureNumber;\n } else if(ax.type === 'date') {\n // r and d are date strings, l and c are ms\n\n /*\n * Any of these functions with r and d on either side, calendar is the\n * **3rd** argument. log has reserved the second argument.\n *\n * Unless you need the special behavior of the second arg (ms2DateTime\n * uses this to limit precision, toLog uses true to clip negatives\n * to offscreen low rather than undefined), it's safe to pass 0.\n */\n ax.d2r = ax.r2d = Lib.identity;\n\n ax.d2c = ax.r2c = ax.d2l = ax.r2l = dt2ms;\n ax.c2d = ax.c2r = ax.l2d = ax.l2r = ms2dt;\n\n ax.d2p = ax.r2p = function(v, _, calendar) { return ax.l2p(dt2ms(v, 0, calendar)); };\n ax.p2d = ax.p2r = function(px, r, calendar) { return ms2dt(p2l(px), r, calendar); };\n\n ax.cleanPos = function(v) { return Lib.cleanDate(v, BADNUM, ax.calendar); };\n } else if(ax.type === 'category') {\n // d is categories (string)\n // c and l are indices (numbers)\n // r is categories or numbers\n\n ax.d2c = ax.d2l = setCategoryIndex;\n ax.r2d = ax.c2d = ax.l2d = getCategoryName;\n\n ax.d2r = ax.d2l_noadd = getCategoryPosition;\n\n ax.r2c = function(v) {\n var index = getRangePosition(v);\n return index !== undefined ? index : ax.fraction2r(0.5);\n };\n\n ax.l2r = ax.c2r = ensureNumber;\n ax.r2l = getRangePosition;\n\n ax.d2p = function(v) { return ax.l2p(ax.r2c(v)); };\n ax.p2d = function(px) { return getCategoryName(p2l(px)); };\n ax.r2p = ax.d2p;\n ax.p2r = p2l;\n\n ax.cleanPos = function(v) {\n if(typeof v === 'string' && v !== '') return v;\n return ensureNumber(v);\n };\n } else if(ax.type === 'multicategory') {\n // N.B. multicategory axes don't define d2c and d2l,\n // as 'data-to-calcdata' conversion needs to take into\n // account all data array items as in ax.makeCalcdata.\n\n ax.r2d = ax.c2d = ax.l2d = getCategoryName;\n ax.d2r = ax.d2l_noadd = getCategoryPosition;\n\n ax.r2c = function(v) {\n var index = getCategoryPosition(v);\n return index !== undefined ? index : ax.fraction2r(0.5);\n };\n\n ax.r2c_just_indices = getCategoryIndex;\n\n ax.l2r = ax.c2r = ensureNumber;\n ax.r2l = getCategoryPosition;\n\n ax.d2p = function(v) { return ax.l2p(ax.r2c(v)); };\n ax.p2d = function(px) { return getCategoryName(p2l(px)); };\n ax.r2p = ax.d2p;\n ax.p2r = p2l;\n\n ax.cleanPos = function(v) {\n if(Array.isArray(v) || (typeof v === 'string' && v !== '')) return v;\n return ensureNumber(v);\n };\n\n ax.setupMultiCategory = function(fullData) {\n var traceIndices = ax._traceIndices;\n var i, j;\n\n var group = ax._matchGroup;\n if(group && ax._categories.length === 0) {\n for(var axId2 in group) {\n if(axId2 !== axId) {\n var ax2 = fullLayout[axisIds.id2name(axId2)];\n traceIndices = traceIndices.concat(ax2._traceIndices);\n }\n }\n }\n\n // [ [cnt, {$cat: index}], for 1,2 ]\n var seen = [[0, {}], [0, {}]];\n // [ [arrayIn[0][i], arrayIn[1][i]], for i .. N ]\n var list = [];\n\n for(i = 0; i < traceIndices.length; i++) {\n var trace = fullData[traceIndices[i]];\n\n if(axLetter in trace) {\n var arrayIn = trace[axLetter];\n var len = trace._length || Lib.minRowLength(arrayIn);\n\n if(isArrayOrTypedArray(arrayIn[0]) && isArrayOrTypedArray(arrayIn[1])) {\n for(j = 0; j < len; j++) {\n var v0 = arrayIn[0][j];\n var v1 = arrayIn[1][j];\n\n if(isValidCategory(v0) && isValidCategory(v1)) {\n list.push([v0, v1]);\n\n if(!(v0 in seen[0][1])) {\n seen[0][1][v0] = seen[0][0]++;\n }\n if(!(v1 in seen[1][1])) {\n seen[1][1][v1] = seen[1][0]++;\n }\n }\n }\n }\n }\n }\n\n list.sort(function(a, b) {\n var ind0 = seen[0][1];\n var d = ind0[a[0]] - ind0[b[0]];\n if(d) return d;\n\n var ind1 = seen[1][1];\n return ind1[a[1]] - ind1[b[1]];\n });\n\n for(i = 0; i < list.length; i++) {\n setCategoryIndex(list[i]);\n }\n };\n }\n\n // find the range value at the specified (linear) fraction of the axis\n ax.fraction2r = function(v) {\n var rl0 = ax.r2l(ax.range[0]);\n var rl1 = ax.r2l(ax.range[1]);\n return ax.l2r(rl0 + v * (rl1 - rl0));\n };\n\n // find the fraction of the range at the specified range value\n ax.r2fraction = function(v) {\n var rl0 = ax.r2l(ax.range[0]);\n var rl1 = ax.r2l(ax.range[1]);\n return (ax.r2l(v) - rl0) / (rl1 - rl0);\n };\n\n /*\n * cleanRange: make sure range is a couplet of valid & distinct values\n * keep numbers away from the limits of floating point numbers,\n * and dates away from the ends of our date system (+/- 9999 years)\n *\n * optional param rangeAttr: operate on a different attribute, like\n * ax._r, rather than ax.range\n */\n ax.cleanRange = function(rangeAttr, opts) {\n if(!opts) opts = {};\n if(!rangeAttr) rangeAttr = 'range';\n\n var range = Lib.nestedProperty(ax, rangeAttr).get();\n var i, dflt;\n\n if(ax.type === 'date') dflt = Lib.dfltRange(ax.calendar);\n else if(axLetter === 'y') dflt = constants.DFLTRANGEY;\n else if(ax._name === 'realaxis') dflt = [0, 1];\n else dflt = opts.dfltRange || constants.DFLTRANGEX;\n\n // make sure we don't later mutate the defaults\n dflt = dflt.slice();\n\n if(ax.rangemode === 'tozero' || ax.rangemode === 'nonnegative') {\n dflt[0] = 0;\n }\n\n if(!range || range.length !== 2) {\n Lib.nestedProperty(ax, rangeAttr).set(dflt);\n return;\n }\n\n if(ax.type === 'date' && !ax.autorange) {\n // check if milliseconds or js date objects are provided for range\n // and convert to date strings\n range[0] = Lib.cleanDate(range[0], BADNUM, ax.calendar);\n range[1] = Lib.cleanDate(range[1], BADNUM, ax.calendar);\n }\n\n for(i = 0; i < 2; i++) {\n if(ax.type === 'date') {\n if(!Lib.isDateTime(range[i], ax.calendar)) {\n ax[rangeAttr] = dflt;\n break;\n }\n\n if(ax.r2l(range[0]) === ax.r2l(range[1])) {\n // split by +/- 1 second\n var linCenter = Lib.constrain(ax.r2l(range[0]),\n Lib.MIN_MS + 1000, Lib.MAX_MS - 1000);\n range[0] = ax.l2r(linCenter - 1000);\n range[1] = ax.l2r(linCenter + 1000);\n break;\n }\n } else {\n if(!isNumeric(range[i])) {\n if(isNumeric(range[1 - i])) {\n range[i] = range[1 - i] * (i ? 10 : 0.1);\n } else {\n ax[rangeAttr] = dflt;\n break;\n }\n }\n\n if(range[i] < -FP_SAFE) range[i] = -FP_SAFE;\n else if(range[i] > FP_SAFE) range[i] = FP_SAFE;\n\n if(range[0] === range[1]) {\n // somewhat arbitrary: split by 1 or 1ppm, whichever is bigger\n var inc = Math.max(1, Math.abs(range[0] * 1e-6));\n range[0] -= inc;\n range[1] += inc;\n }\n }\n }\n };\n\n // set scaling to pixels\n ax.setScale = function(usePrivateRange) {\n var gs = fullLayout._size;\n\n // make sure we have a domain (pull it in from the axis\n // this one is overlaying if necessary)\n if(ax.overlaying) {\n var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying);\n ax.domain = ax2.domain;\n }\n\n // While transitions are occurring, we get a double-transform\n // issue if we transform the drawn layer *and* use the new axis range to\n // draw the data. This allows us to construct setConvert using the pre-\n // interaction values of the range:\n var rangeAttr = (usePrivateRange && ax._r) ? '_r' : 'range';\n var calendar = ax.calendar;\n ax.cleanRange(rangeAttr);\n\n var rl0 = ax.r2l(ax[rangeAttr][0], calendar);\n var rl1 = ax.r2l(ax[rangeAttr][1], calendar);\n\n var isY = axLetter === 'y';\n if(isY) {\n ax._offset = gs.t + (1 - ax.domain[1]) * gs.h;\n ax._length = gs.h * (ax.domain[1] - ax.domain[0]);\n ax._m = ax._length / (rl0 - rl1);\n ax._b = -ax._m * rl1;\n } else {\n ax._offset = gs.l + ax.domain[0] * gs.w;\n ax._length = gs.w * (ax.domain[1] - ax.domain[0]);\n ax._m = ax._length / (rl1 - rl0);\n ax._b = -ax._m * rl0;\n }\n\n // set of \"N\" disjoint rangebreaks inside the range\n ax._rangebreaks = [];\n // length of these rangebreaks in value space - negative on reversed axes\n ax._lBreaks = 0;\n // l2p slope (same for all intervals)\n ax._m2 = 0;\n // set of l2p offsets (one for each of the (N+1) piecewise intervals)\n ax._B = [];\n\n if(ax.rangebreaks) {\n var i, brk;\n\n ax._rangebreaks = ax.locateBreaks(\n Math.min(rl0, rl1),\n Math.max(rl0, rl1)\n );\n\n if(ax._rangebreaks.length) {\n for(i = 0; i < ax._rangebreaks.length; i++) {\n brk = ax._rangebreaks[i];\n ax._lBreaks += Math.abs(brk.max - brk.min);\n }\n\n var flip = isY;\n if(rl0 > rl1) flip = !flip;\n if(flip) ax._rangebreaks.reverse();\n var sign = flip ? -1 : 1;\n\n ax._m2 = sign * ax._length / (Math.abs(rl1 - rl0) - ax._lBreaks);\n ax._B.push(-ax._m2 * (isY ? rl1 : rl0));\n for(i = 0; i < ax._rangebreaks.length; i++) {\n brk = ax._rangebreaks[i];\n ax._B.push(\n ax._B[ax._B.length - 1] -\n sign * ax._m2 * (brk.max - brk.min)\n );\n }\n\n // fill pixel (i.e. 'p') min/max here,\n // to not have to loop through the _rangebreaks twice during `p2l`\n for(i = 0; i < ax._rangebreaks.length; i++) {\n brk = ax._rangebreaks[i];\n brk.pmin = l2p(brk.min);\n brk.pmax = l2p(brk.max);\n }\n }\n }\n\n if(!isFinite(ax._m) || !isFinite(ax._b) || ax._length < 0) {\n fullLayout._replotting = false;\n throw new Error('Something went wrong with axis scaling');\n }\n };\n\n ax.maskBreaks = function(v) {\n var rangebreaksIn = ax.rangebreaks || [];\n var bnds, b0, b1, vb, vDate;\n\n\n if(!rangebreaksIn._cachedPatterns) {\n rangebreaksIn._cachedPatterns = rangebreaksIn.map(function(brk) {\n return brk.enabled && brk.bounds ? Lib.simpleMap(brk.bounds, brk.pattern ?\n cleanNumber :\n ax.d2c // case of pattern: ''\n ) : null;\n });\n }\n if(!rangebreaksIn._cachedValues) {\n rangebreaksIn._cachedValues = rangebreaksIn.map(function(brk) {\n return brk.enabled && brk.values ? Lib.simpleMap(brk.values, ax.d2c).sort(Lib.sorterAsc) : null;\n });\n }\n\n\n for(var i = 0; i < rangebreaksIn.length; i++) {\n var brk = rangebreaksIn[i];\n\n if(brk.enabled) {\n if(brk.bounds) {\n var pattern = brk.pattern;\n bnds = rangebreaksIn._cachedPatterns[i];\n b0 = bnds[0];\n b1 = bnds[1];\n\n switch(pattern) {\n case WEEKDAY_PATTERN:\n vDate = new Date(v);\n vb = vDate.getUTCDay();\n\n if(b0 > b1) {\n b1 += 7;\n if(vb < b0) vb += 7;\n }\n\n break;\n case HOUR_PATTERN:\n vDate = new Date(v);\n var hours = vDate.getUTCHours();\n var minutes = vDate.getUTCMinutes();\n var seconds = vDate.getUTCSeconds();\n var milliseconds = vDate.getUTCMilliseconds();\n\n vb = hours + (\n minutes / 60 +\n seconds / 3600 +\n milliseconds / 3600000\n );\n\n if(b0 > b1) {\n b1 += 24;\n if(vb < b0) vb += 24;\n }\n\n break;\n case '':\n // N.B. should work on date axes as well!\n // e.g. { bounds: ['2020-01-04', '2020-01-05 23:59'] }\n // TODO should work with reversed-range axes\n vb = v;\n break;\n }\n\n if(vb >= b0 && vb < b1) return BADNUM;\n } else {\n var vals = rangebreaksIn._cachedValues[i];\n for(var j = 0; j < vals.length; j++) {\n b0 = vals[j];\n b1 = b0 + brk.dvalue;\n if(v >= b0 && v < b1) return BADNUM;\n }\n }\n }\n }\n return v;\n };\n\n ax.locateBreaks = function(r0, r1) {\n var i, bnds, b0, b1;\n\n var rangebreaksOut = [];\n if(!ax.rangebreaks) return rangebreaksOut;\n\n var rangebreaksIn = ax.rangebreaks.slice().sort(function(a, b) {\n if(a.pattern === WEEKDAY_PATTERN && b.pattern === HOUR_PATTERN) return -1;\n if(b.pattern === WEEKDAY_PATTERN && a.pattern === HOUR_PATTERN) return 1;\n return 0;\n });\n\n var addBreak = function(min, max) {\n min = Lib.constrain(min, r0, r1);\n max = Lib.constrain(max, r0, r1);\n if(min === max) return;\n\n var isNewBreak = true;\n for(var j = 0; j < rangebreaksOut.length; j++) {\n var brkj = rangebreaksOut[j];\n if(min < brkj.max && max >= brkj.min) {\n if(min < brkj.min) {\n brkj.min = min;\n }\n if(max > brkj.max) {\n brkj.max = max;\n }\n isNewBreak = false;\n }\n }\n if(isNewBreak) {\n rangebreaksOut.push({min: min, max: max});\n }\n };\n\n for(i = 0; i < rangebreaksIn.length; i++) {\n var brk = rangebreaksIn[i];\n\n if(brk.enabled) {\n if(brk.bounds) {\n var t0 = r0;\n var t1 = r1;\n if(brk.pattern) {\n // to remove decimal (most often found in auto ranges)\n t0 = Math.floor(t0);\n }\n\n bnds = Lib.simpleMap(brk.bounds, brk.pattern ? cleanNumber : ax.r2l);\n b0 = bnds[0];\n b1 = bnds[1];\n\n // r0 value as date\n var t0Date = new Date(t0);\n // r0 value for break pattern\n var bndDelta;\n // step in ms between rangebreaks\n var step;\n\n switch(brk.pattern) {\n case WEEKDAY_PATTERN:\n step = ONEWEEK;\n\n bndDelta = (\n (b1 < b0 ? 7 : 0) +\n (b1 - b0)\n ) * ONEDAY;\n\n t0 += b0 * ONEDAY - (\n t0Date.getUTCDay() * ONEDAY +\n t0Date.getUTCHours() * ONEHOUR +\n t0Date.getUTCMinutes() * ONEMIN +\n t0Date.getUTCSeconds() * ONESEC +\n t0Date.getUTCMilliseconds()\n );\n break;\n case HOUR_PATTERN:\n step = ONEDAY;\n\n bndDelta = (\n (b1 < b0 ? 24 : 0) +\n (b1 - b0)\n ) * ONEHOUR;\n\n t0 += b0 * ONEHOUR - (\n t0Date.getUTCHours() * ONEHOUR +\n t0Date.getUTCMinutes() * ONEMIN +\n t0Date.getUTCSeconds() * ONESEC +\n t0Date.getUTCMilliseconds()\n );\n break;\n default:\n t0 = Math.min(bnds[0], bnds[1]);\n t1 = Math.max(bnds[0], bnds[1]);\n step = t1 - t0;\n bndDelta = step;\n }\n\n for(var t = t0; t < t1; t += step) {\n addBreak(t, t + bndDelta);\n }\n } else {\n var vals = Lib.simpleMap(brk.values, ax.d2c);\n for(var j = 0; j < vals.length; j++) {\n b0 = vals[j];\n b1 = b0 + brk.dvalue;\n addBreak(b0, b1);\n }\n }\n }\n }\n\n rangebreaksOut.sort(function(a, b) { return a.min - b.min; });\n\n return rangebreaksOut;\n };\n\n // makeCalcdata: takes an x or y array and converts it\n // to a position on the axis object \"ax\"\n // inputs:\n // trace - a data object from gd.data\n // axLetter - a string, either 'x' or 'y', for which item\n // to convert (TODO: is this now always the same as\n // the first letter of ax._id?)\n // in case the expected data isn't there, make a list of\n // integers based on the opposite data\n ax.makeCalcdata = function(trace, axLetter, opts) {\n var arrayIn, arrayOut, i, len;\n\n var axType = ax.type;\n var cal = axType === 'date' && trace[axLetter + 'calendar'];\n\n if(axLetter in trace) {\n arrayIn = trace[axLetter];\n len = trace._length || Lib.minRowLength(arrayIn);\n\n if(Lib.isTypedArray(arrayIn) && (axType === 'linear' || axType === 'log')) {\n if(len === arrayIn.length) {\n return arrayIn;\n } else if(arrayIn.subarray) {\n return arrayIn.subarray(0, len);\n }\n }\n\n if(axType === 'multicategory') {\n return setMultiCategoryIndex(arrayIn, len);\n }\n\n arrayOut = new Array(len);\n for(i = 0; i < len; i++) {\n arrayOut[i] = ax.d2c(arrayIn[i], 0, cal, opts);\n }\n } else {\n var v0 = ((axLetter + '0') in trace) ? ax.d2c(trace[axLetter + '0'], 0, cal) : 0;\n var dv = (trace['d' + axLetter]) ? Number(trace['d' + axLetter]) : 1;\n\n // the opposing data, for size if we have x and dx etc\n arrayIn = trace[{x: 'y', y: 'x'}[axLetter]];\n len = trace._length || arrayIn.length;\n arrayOut = new Array(len);\n\n for(i = 0; i < len; i++) {\n arrayOut[i] = v0 + i * dv;\n }\n }\n\n // mask (i.e. set to BADNUM) coords that fall inside rangebreaks\n if(ax.rangebreaks) {\n for(i = 0; i < len; i++) {\n arrayOut[i] = ax.maskBreaks(arrayOut[i]);\n }\n }\n\n return arrayOut;\n };\n\n ax.isValidRange = function(range) {\n return (\n Array.isArray(range) &&\n range.length === 2 &&\n isNumeric(ax.r2l(range[0])) &&\n isNumeric(ax.r2l(range[1]))\n );\n };\n\n ax.isPtWithinRange = function(d, calendar) {\n var coord = ax.c2l(d[axLetter], null, calendar);\n var r0 = ax.r2l(ax.range[0]);\n var r1 = ax.r2l(ax.range[1]);\n\n if(r0 < r1) {\n return r0 <= coord && coord <= r1;\n } else {\n // Reversed axis case.\n return r1 <= coord && coord <= r0;\n }\n };\n\n ax._emptyCategories = function() {\n ax._categories = [];\n ax._categoriesMap = {};\n };\n\n // should skip if not category nor multicategory\n ax.clearCalc = function() {\n var group = ax._matchGroup;\n if(group) {\n var categories = null;\n var categoriesMap = null;\n\n for(var axId2 in group) {\n var ax2 = fullLayout[axisIds.id2name(axId2)];\n if(ax2._categories) {\n categories = ax2._categories;\n categoriesMap = ax2._categoriesMap;\n break;\n }\n }\n\n if(categories && categoriesMap) {\n ax._categories = categories;\n ax._categoriesMap = categoriesMap;\n } else {\n ax._emptyCategories();\n }\n } else {\n ax._emptyCategories();\n }\n\n if(ax._initialCategories) {\n for(var j = 0; j < ax._initialCategories.length; j++) {\n setCategoryIndex(ax._initialCategories[j]);\n }\n }\n };\n\n // sort the axis (and all the matching ones) by _initialCategories\n // returns the indices of the traces affected by the reordering\n ax.sortByInitialCategories = function() {\n var affectedTraces = [];\n\n ax._emptyCategories();\n\n if(ax._initialCategories) {\n for(var j = 0; j < ax._initialCategories.length; j++) {\n setCategoryIndex(ax._initialCategories[j]);\n }\n }\n\n affectedTraces = affectedTraces.concat(ax._traceIndices);\n\n // Propagate to matching axes\n var group = ax._matchGroup;\n for(var axId2 in group) {\n if(axId === axId2) continue;\n var ax2 = fullLayout[axisIds.id2name(axId2)];\n ax2._categories = ax._categories;\n ax2._categoriesMap = ax._categoriesMap;\n affectedTraces = affectedTraces.concat(ax2._traceIndices);\n }\n return affectedTraces;\n };\n\n // Propagate localization into the axis so that\n // methods in Axes can use it w/o having to pass fullLayout\n // Default (non-d3) number formatting uses separators directly\n // dates and d3-formatted numbers use the d3 locale\n // Fall back on default format for dummy axes that don't care about formatting\n var locale = fullLayout._d3locale;\n if(ax.type === 'date') {\n ax._dateFormat = locale ? locale.timeFormat : utcFormat;\n ax._extraFormat = fullLayout._extraFormat;\n }\n // occasionally we need _numFormat to pass through\n // even though it won't be needed by this axis\n ax._separators = fullLayout.separators;\n ax._numFormat = locale ? locale.numberFormat : numberFormat;\n\n // and for bar charts and box plots: reset forced minimum tick spacing\n delete ax._minDtick;\n delete ax._forceTick0;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"./axis_ids\":570,\"./constants\":573,\"@plotly/d3\":58,\"d3-time-format\":120,\"fast-isnumeric\":190}],586:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Attributes 'showexponent', 'showtickprefix' and 'showticksuffix'\n * share values.\n *\n * If only 1 attribute is set,\n * the remaining attributes inherit that value.\n *\n * If 2 attributes are set to the same value,\n * the remaining attribute inherits that value.\n *\n * If 2 attributes are set to different values,\n * the remaining is set to its dflt value.\n *\n */\nmodule.exports = function getShowAttrDflt(containerIn) {\n var showAttrsAll = ['showexponent', 'showtickprefix', 'showticksuffix'];\n var showAttrs = showAttrsAll.filter(function(a) {\n return containerIn[a] !== undefined;\n });\n var sameVal = function(a) {\n return containerIn[a] === containerIn[showAttrs[0]];\n };\n\n if(showAttrs.every(sameVal) || showAttrs.length === 1) {\n return containerIn[showAttrs[0]];\n }\n};\n\n},{}],587:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar contrast = _dereq_('../../components/color').contrast;\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar getShowAttrDflt = _dereq_('./show_dflt');\nvar handleArrayContainerDefaults = _dereq_('../array_container_defaults');\n\nmodule.exports = function handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options) {\n if(!options) options = {};\n var showAttrDflt = getShowAttrDflt(containerIn);\n\n var showTickLabels = coerce('showticklabels');\n if(showTickLabels) {\n var font = options.font || {};\n var contColor = containerOut.color;\n var position = containerOut.ticklabelposition || '';\n var dfltFontColor = position.indexOf('inside') !== -1 ?\n contrast(options.bgColor) :\n // as with titlefont.color, inherit axis.color only if one was\n // explicitly provided\n (contColor && contColor !== layoutAttributes.color.dflt) ?\n contColor : font.color;\n\n Lib.coerceFont(coerce, 'tickfont', {\n family: font.family,\n size: font.size,\n color: dfltFontColor\n });\n\n if(\n !options.noTicklabelstep &&\n axType !== 'multicategory' &&\n axType !== 'log'\n ) {\n coerce('ticklabelstep');\n }\n\n if(!options.noAng) coerce('tickangle');\n\n if(axType !== 'category') {\n var tickFormat = coerce('tickformat');\n\n handleArrayContainerDefaults(containerIn, containerOut, {\n name: 'tickformatstops',\n inclusionAttr: 'enabled',\n handleItemDefaults: tickformatstopDefaults\n });\n if(!containerOut.tickformatstops.length) {\n delete containerOut.tickformatstops;\n }\n\n if(!options.noExp && !tickFormat && axType !== 'date') {\n coerce('showexponent', showAttrDflt);\n coerce('exponentformat');\n coerce('minexponent');\n coerce('separatethousands');\n }\n }\n }\n};\n\nfunction tickformatstopDefaults(valueIn, valueOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(valueIn, valueOut, layoutAttributes.tickformatstops, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n if(enabled) {\n coerce('dtickrange');\n coerce('value');\n }\n}\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../array_container_defaults\":561,\"./layout_attributes\":579,\"./show_dflt\":586}],588:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\n\n/**\n * options: inherits outerTicks from axes.handleAxisDefaults\n */\nmodule.exports = function handleTickMarkDefaults(containerIn, containerOut, coerce, options) {\n var isMinor = options.isMinor;\n var cIn = isMinor ? containerIn.minor || {} : containerIn;\n var cOut = isMinor ? containerOut.minor : containerOut;\n var lAttr = isMinor ? layoutAttributes.minor : layoutAttributes;\n var prefix = isMinor ? 'minor.' : '';\n\n var tickLen = Lib.coerce2(cIn, cOut, lAttr, 'ticklen', isMinor ? ((containerOut.ticklen || 5) * 0.6) : undefined);\n var tickWidth = Lib.coerce2(cIn, cOut, lAttr, 'tickwidth', isMinor ? (containerOut.tickwidth || 1) : undefined);\n var tickColor = Lib.coerce2(cIn, cOut, lAttr, 'tickcolor', (isMinor ? containerOut.tickcolor : undefined) || cOut.color);\n var showTicks = coerce(prefix + 'ticks', (\n (!isMinor && options.outerTicks) || tickLen || tickWidth || tickColor\n ) ? 'outside' : '');\n\n if(!showTicks) {\n delete cOut.ticklen;\n delete cOut.tickwidth;\n delete cOut.tickcolor;\n }\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":579}],589:[function(_dereq_,module,exports){\n'use strict';\n\nvar cleanTicks = _dereq_('./clean_ticks');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function handleTickValueDefaults(containerIn, containerOut, coerce, axType, opts) {\n if(!opts) opts = {};\n var isMinor = opts.isMinor;\n var cIn = isMinor ? containerIn.minor || {} : containerIn;\n var cOut = isMinor ? containerOut.minor : containerOut;\n var prefix = isMinor ? 'minor.' : '';\n\n function readInput(attr) {\n var v = cIn[attr];\n return (\n v !== undefined\n ) ? v : (cOut._template || {})[attr];\n }\n\n var _tick0 = readInput('tick0');\n var _dtick = readInput('dtick');\n var _tickvals = readInput('tickvals');\n\n var tickmodeDefault = isArrayOrTypedArray(_tickvals) ? 'array' :\n _dtick ? 'linear' :\n 'auto';\n var tickmode = coerce(prefix + 'tickmode', tickmodeDefault);\n\n if(tickmode === 'auto') {\n coerce(prefix + 'nticks');\n } else if(tickmode === 'linear') {\n // dtick is usually a positive number, but there are some\n // special strings available for log or date axes\n // tick0 also has special logic\n var dtick = cOut.dtick = cleanTicks.dtick(\n _dtick, axType);\n cOut.tick0 = cleanTicks.tick0(\n _tick0, axType, containerOut.calendar, dtick);\n } else if(axType !== 'multicategory') {\n var tickvals = coerce(prefix + 'tickvals');\n if(tickvals === undefined) cOut.tickmode = 'auto';\n else if(!isMinor) coerce('ticktext');\n }\n};\n\n},{\"../../lib\":515,\"./clean_ticks\":572}],590:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar Axes = _dereq_('./axes');\n\n/**\n * transitionAxes\n *\n * transition axes from one set of ranges to another, using a svg\n * transformations, similar to during panning.\n *\n * @param {DOM element | object} gd\n * @param {array} edits : array of 'edits', each item with\n * - plotinfo {object} subplot object\n * - xr0 {array} initial x-range\n * - xr1 {array} end x-range\n * - yr0 {array} initial y-range\n * - yr1 {array} end y-range\n * @param {object} transitionOpts\n * @param {function} makeOnCompleteCallback\n */\nmodule.exports = function transitionAxes(gd, edits, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n\n // special case for redraw:false Plotly.animate that relies on this\n // to update axis-referenced layout components\n if(edits.length === 0) {\n Axes.redrawComponents(gd);\n return;\n }\n\n function unsetSubplotTransform(subplot) {\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n\n fullLayout._defs.select('#' + subplot.clipId + '> rect')\n .call(Drawing.setTranslate, 0, 0)\n .call(Drawing.setScale, 1, 1);\n\n subplot.plot\n .call(Drawing.setTranslate, xa._offset, ya._offset)\n .call(Drawing.setScale, 1, 1);\n\n var traceGroups = subplot.plot.selectAll('.scatterlayer .trace');\n\n // This is specifically directed at scatter traces, applying an inverse\n // scale to individual points to counteract the scale of the trace\n // as a whole:\n traceGroups.selectAll('.point')\n .call(Drawing.setPointGroupScale, 1, 1);\n traceGroups.selectAll('.textpoint')\n .call(Drawing.setTextPointsScale, 1, 1);\n traceGroups\n .call(Drawing.hideOutsideRangePoints, subplot);\n }\n\n function updateSubplot(edit, progress) {\n var plotinfo = edit.plotinfo;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xlen = xa._length;\n var ylen = ya._length;\n var editX = !!edit.xr1;\n var editY = !!edit.yr1;\n var viewBox = [];\n\n if(editX) {\n var xr0 = Lib.simpleMap(edit.xr0, xa.r2l);\n var xr1 = Lib.simpleMap(edit.xr1, xa.r2l);\n var dx0 = xr0[1] - xr0[0];\n var dx1 = xr1[1] - xr1[0];\n viewBox[0] = (xr0[0] * (1 - progress) + progress * xr1[0] - xr0[0]) / (xr0[1] - xr0[0]) * xlen;\n viewBox[2] = xlen * ((1 - progress) + progress * dx1 / dx0);\n xa.range[0] = xa.l2r(xr0[0] * (1 - progress) + progress * xr1[0]);\n xa.range[1] = xa.l2r(xr0[1] * (1 - progress) + progress * xr1[1]);\n } else {\n viewBox[0] = 0;\n viewBox[2] = xlen;\n }\n\n if(editY) {\n var yr0 = Lib.simpleMap(edit.yr0, ya.r2l);\n var yr1 = Lib.simpleMap(edit.yr1, ya.r2l);\n var dy0 = yr0[1] - yr0[0];\n var dy1 = yr1[1] - yr1[0];\n viewBox[1] = (yr0[1] * (1 - progress) + progress * yr1[1] - yr0[1]) / (yr0[0] - yr0[1]) * ylen;\n viewBox[3] = ylen * ((1 - progress) + progress * dy1 / dy0);\n ya.range[0] = xa.l2r(yr0[0] * (1 - progress) + progress * yr1[0]);\n ya.range[1] = ya.l2r(yr0[1] * (1 - progress) + progress * yr1[1]);\n } else {\n viewBox[1] = 0;\n viewBox[3] = ylen;\n }\n\n Axes.drawOne(gd, xa, {skipTitle: true});\n Axes.drawOne(gd, ya, {skipTitle: true});\n Axes.redrawComponents(gd, [xa._id, ya._id]);\n\n var xScaleFactor = editX ? xlen / viewBox[2] : 1;\n var yScaleFactor = editY ? ylen / viewBox[3] : 1;\n var clipDx = editX ? viewBox[0] : 0;\n var clipDy = editY ? viewBox[1] : 0;\n var fracDx = editX ? (viewBox[0] / viewBox[2] * xlen) : 0;\n var fracDy = editY ? (viewBox[1] / viewBox[3] * ylen) : 0;\n var plotDx = xa._offset - fracDx;\n var plotDy = ya._offset - fracDy;\n\n plotinfo.clipRect\n .call(Drawing.setTranslate, clipDx, clipDy)\n .call(Drawing.setScale, 1 / xScaleFactor, 1 / yScaleFactor);\n\n plotinfo.plot\n .call(Drawing.setTranslate, plotDx, plotDy)\n .call(Drawing.setScale, xScaleFactor, yScaleFactor);\n\n // apply an inverse scale to individual points to counteract\n // the scale of the trace group.\n Drawing.setPointGroupScale(plotinfo.zoomScalePts, 1 / xScaleFactor, 1 / yScaleFactor);\n Drawing.setTextPointsScale(plotinfo.zoomScaleTxt, 1 / xScaleFactor, 1 / yScaleFactor);\n }\n\n var onComplete;\n if(makeOnCompleteCallback) {\n // This module makes the choice whether or not it notifies Plotly.transition\n // about completion:\n onComplete = makeOnCompleteCallback();\n }\n\n function transitionComplete() {\n var aobj = {};\n\n for(var i = 0; i < edits.length; i++) {\n var edit = edits[i];\n var xa = edit.plotinfo.xaxis;\n var ya = edit.plotinfo.yaxis;\n if(edit.xr1) aobj[xa._name + '.range'] = edit.xr1.slice();\n if(edit.yr1) aobj[ya._name + '.range'] = edit.yr1.slice();\n }\n\n // Signal that this transition has completed:\n onComplete && onComplete();\n\n return Registry.call('relayout', gd, aobj).then(function() {\n for(var i = 0; i < edits.length; i++) {\n unsetSubplotTransform(edits[i].plotinfo);\n }\n });\n }\n\n function transitionInterrupt() {\n var aobj = {};\n\n for(var i = 0; i < edits.length; i++) {\n var edit = edits[i];\n var xa = edit.plotinfo.xaxis;\n var ya = edit.plotinfo.yaxis;\n if(edit.xr0) aobj[xa._name + '.range'] = edit.xr0.slice();\n if(edit.yr0) aobj[ya._name + '.range'] = edit.yr0.slice();\n }\n\n return Registry.call('relayout', gd, aobj).then(function() {\n for(var i = 0; i < edits.length; i++) {\n unsetSubplotTransform(edits[i].plotinfo);\n }\n });\n }\n\n var t1, t2, raf;\n var easeFn = d3.ease(transitionOpts.easing);\n\n gd._transitionData._interruptCallbacks.push(function() {\n window.cancelAnimationFrame(raf);\n raf = null;\n return transitionInterrupt();\n });\n\n function doFrame() {\n t2 = Date.now();\n\n var tInterp = Math.min(1, (t2 - t1) / transitionOpts.duration);\n var progress = easeFn(tInterp);\n\n for(var i = 0; i < edits.length; i++) {\n updateSubplot(edits[i], progress);\n }\n\n if(t2 - t1 > transitionOpts.duration) {\n transitionComplete();\n raf = window.cancelAnimationFrame(doFrame);\n } else {\n raf = window.requestAnimationFrame(doFrame);\n }\n }\n\n t1 = Date.now();\n raf = window.requestAnimationFrame(doFrame);\n\n return Promise.resolve();\n};\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../registry\":647,\"./axes\":566,\"@plotly/d3\":58}],591:[function(_dereq_,module,exports){\n'use strict';\n\nvar traceIs = _dereq_('../../registry').traceIs;\nvar autoType = _dereq_('./axis_autotype');\n\n/*\n * data: the plot data to use in choosing auto type\n * name: axis object name (ie 'xaxis') if one should be stored\n */\nmodule.exports = function handleTypeDefaults(containerIn, containerOut, coerce, options) {\n coerce('autotypenumbers', options.autotypenumbersDflt);\n var axType = coerce('type', (options.splomStash || {}).type);\n\n if(axType === '-') {\n setAutoType(containerOut, options.data);\n\n if(containerOut.type === '-') {\n containerOut.type = 'linear';\n } else {\n // copy autoType back to input axis\n // note that if this object didn't exist\n // in the input layout, we have to put it in\n // this happens in the main supplyDefaults function\n containerIn.type = containerOut.type;\n }\n }\n};\n\nfunction setAutoType(ax, data) {\n // new logic: let people specify any type they want,\n // only autotype if type is '-'\n if(ax.type !== '-') return;\n\n var id = ax._id;\n var axLetter = id.charAt(0);\n var i;\n\n // support 3d\n if(id.indexOf('scene') !== -1) id = axLetter;\n\n var d0 = getFirstNonEmptyTrace(data, id, axLetter);\n if(!d0) return;\n\n // first check for histograms, as the count direction\n // should always default to a linear axis\n if(d0.type === 'histogram' &&\n axLetter === {v: 'y', h: 'x'}[d0.orientation || 'v']\n ) {\n ax.type = 'linear';\n return;\n }\n\n var calAttr = axLetter + 'calendar';\n var calendar = d0[calAttr];\n var opts = {noMultiCategory: !traceIs(d0, 'cartesian') || traceIs(d0, 'noMultiCategory')};\n\n // To not confuse 2D x/y used for per-box sample points for multicategory coordinates\n if(d0.type === 'box' && d0._hasPreCompStats &&\n axLetter === {h: 'x', v: 'y'}[d0.orientation || 'v']\n ) {\n opts.noMultiCategory = true;\n }\n\n opts.autotypenumbers = ax.autotypenumbers;\n\n // check all boxes on this x axis to see\n // if they're dates, numbers, or categories\n if(isBoxWithoutPositionCoords(d0, axLetter)) {\n var posLetter = getBoxPosLetter(d0);\n var boxPositions = [];\n\n for(i = 0; i < data.length; i++) {\n var trace = data[i];\n if(!traceIs(trace, 'box-violin') || (trace[axLetter + 'axis'] || axLetter) !== id) continue;\n\n if(trace[posLetter] !== undefined) boxPositions.push(trace[posLetter][0]);\n else if(trace.name !== undefined) boxPositions.push(trace.name);\n else boxPositions.push('text');\n\n if(trace[calAttr] !== calendar) calendar = undefined;\n }\n\n ax.type = autoType(boxPositions, calendar, opts);\n } else if(d0.type === 'splom') {\n var dimensions = d0.dimensions;\n var dim = dimensions[d0._axesDim[id]];\n if(dim.visible) ax.type = autoType(dim.values, calendar, opts);\n } else {\n ax.type = autoType(d0[axLetter] || [d0[axLetter + '0']], calendar, opts);\n }\n}\n\nfunction getFirstNonEmptyTrace(data, id, axLetter) {\n for(var i = 0; i < data.length; i++) {\n var trace = data[i];\n\n if(trace.type === 'splom' &&\n trace._length > 0 &&\n (trace['_' + axLetter + 'axes'] || {})[id]\n ) {\n return trace;\n }\n\n if((trace[axLetter + 'axis'] || axLetter) === id) {\n if(isBoxWithoutPositionCoords(trace, axLetter)) {\n return trace;\n } else if((trace[axLetter] || []).length || trace[axLetter + '0']) {\n return trace;\n }\n }\n }\n}\n\nfunction getBoxPosLetter(trace) {\n return {v: 'x', h: 'y'}[trace.orientation || 'v'];\n}\n\nfunction isBoxWithoutPositionCoords(trace, axLetter) {\n var posLetter = getBoxPosLetter(trace);\n var isBox = traceIs(trace, 'box-violin');\n var isCandlestick = traceIs(trace._fullInput || {}, 'candlestick');\n\n return (\n isBox &&\n !isCandlestick &&\n axLetter === posLetter &&\n trace[posLetter] === undefined &&\n trace[posLetter + '0'] === undefined\n );\n}\n\n},{\"../../registry\":647,\"./axis_autotype\":567}],592:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\n/*\n * Create or update an observer. This function is designed to be\n * idempotent so that it can be called over and over as the component\n * updates, and will attach and detach listeners as needed.\n *\n * @param {optional object} container\n * An object on which the observer is stored. This is the mechanism\n * by which it is idempotent. If it already exists, another won't be\n * added. Each time it's called, the value lookup table is updated.\n * @param {array} commandList\n * An array of commands, following either `buttons` of `updatemenus`\n * or `steps` of `sliders`.\n * @param {function} onchange\n * A listener called when the value is changed. Receives data object\n * with information about the new state.\n */\nexports.manageCommandObserver = function(gd, container, commandList, onchange) {\n var ret = {};\n var enabled = true;\n\n if(container && container._commandObserver) {\n ret = container._commandObserver;\n }\n\n if(!ret.cache) {\n ret.cache = {};\n }\n\n // Either create or just recompute this:\n ret.lookupTable = {};\n\n var binding = exports.hasSimpleAPICommandBindings(gd, commandList, ret.lookupTable);\n\n if(container && container._commandObserver) {\n if(!binding) {\n // If container exists and there are no longer any bindings,\n // remove existing:\n if(container._commandObserver.remove) {\n container._commandObserver.remove();\n container._commandObserver = null;\n return ret;\n }\n } else {\n // If container exists and there *are* bindings, then the lookup\n // table should have been updated and check is already attached,\n // so there's nothing to be done:\n return ret;\n }\n }\n\n // Determine whether there's anything to do for this binding:\n\n if(binding) {\n // Build the cache:\n bindingValueHasChanged(gd, binding, ret.cache);\n\n ret.check = function check() {\n if(!enabled) return;\n\n var update = bindingValueHasChanged(gd, binding, ret.cache);\n\n if(update.changed && onchange) {\n // Disable checks for the duration of this command in order to avoid\n // infinite loops:\n if(ret.lookupTable[update.value] !== undefined) {\n ret.disable();\n Promise.resolve(onchange({\n value: update.value,\n type: binding.type,\n prop: binding.prop,\n traces: binding.traces,\n index: ret.lookupTable[update.value]\n })).then(ret.enable, ret.enable);\n }\n }\n\n return update.changed;\n };\n\n var checkEvents = [\n 'plotly_relayout',\n 'plotly_redraw',\n 'plotly_restyle',\n 'plotly_update',\n 'plotly_animatingframe',\n 'plotly_afterplot'\n ];\n\n for(var i = 0; i < checkEvents.length; i++) {\n gd._internalOn(checkEvents[i], ret.check);\n }\n\n ret.remove = function() {\n for(var i = 0; i < checkEvents.length; i++) {\n gd._removeInternalListener(checkEvents[i], ret.check);\n }\n };\n } else {\n // TODO: It'd be really neat to actually give a *reason* for this, but at least a warning\n // is a start\n Lib.log('Unable to automatically bind plot updates to API command');\n\n ret.lookupTable = {};\n ret.remove = function() {};\n }\n\n ret.disable = function disable() {\n enabled = false;\n };\n\n ret.enable = function enable() {\n enabled = true;\n };\n\n if(container) {\n container._commandObserver = ret;\n }\n\n return ret;\n};\n\n/*\n * This function checks to see if an array of objects containing\n * method and args properties is compatible with automatic two-way\n * binding. The criteria right now are that\n *\n * 1. multiple traces may be affected\n * 2. only one property may be affected\n * 3. the same property must be affected by all commands\n */\nexports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue) {\n var i;\n var n = commandList.length;\n\n var refBinding;\n\n for(i = 0; i < n; i++) {\n var binding;\n var command = commandList[i];\n var method = command.method;\n var args = command.args;\n\n if(!Array.isArray(args)) args = [];\n\n // If any command has no method, refuse to bind:\n if(!method) {\n return false;\n }\n var bindings = exports.computeAPICommandBindings(gd, method, args);\n\n // Right now, handle one and *only* one property being set:\n if(bindings.length !== 1) {\n return false;\n }\n\n if(!refBinding) {\n refBinding = bindings[0];\n if(Array.isArray(refBinding.traces)) {\n refBinding.traces.sort();\n }\n } else {\n binding = bindings[0];\n if(binding.type !== refBinding.type) {\n return false;\n }\n if(binding.prop !== refBinding.prop) {\n return false;\n }\n if(Array.isArray(refBinding.traces)) {\n if(Array.isArray(binding.traces)) {\n binding.traces.sort();\n for(var j = 0; j < refBinding.traces.length; j++) {\n if(refBinding.traces[j] !== binding.traces[j]) {\n return false;\n }\n }\n } else {\n return false;\n }\n } else {\n if(binding.prop !== refBinding.prop) {\n return false;\n }\n }\n }\n\n binding = bindings[0];\n var value = binding.value;\n if(Array.isArray(value)) {\n if(value.length === 1) {\n value = value[0];\n } else {\n return false;\n }\n }\n if(bindingsByValue) {\n bindingsByValue[value] = i;\n }\n }\n\n return refBinding;\n};\n\nfunction bindingValueHasChanged(gd, binding, cache) {\n var container, value, obj;\n var changed = false;\n\n if(binding.type === 'data') {\n // If it's data, we need to get a trace. Based on the limited scope\n // of what we cover, we can just take the first trace from the list,\n // or otherwise just the first trace:\n container = gd._fullData[binding.traces !== null ? binding.traces[0] : 0];\n } else if(binding.type === 'layout') {\n container = gd._fullLayout;\n } else {\n return false;\n }\n\n value = Lib.nestedProperty(container, binding.prop).get();\n\n obj = cache[binding.type] = cache[binding.type] || {};\n\n if(obj.hasOwnProperty(binding.prop)) {\n if(obj[binding.prop] !== value) {\n changed = true;\n }\n }\n\n obj[binding.prop] = value;\n\n return {\n changed: changed,\n value: value\n };\n}\n\n/*\n * Execute an API command. There's really not much to this; it just provides\n * a common hook so that implementations don't need to be synchronized across\n * multiple components with the ability to invoke API commands.\n *\n * @param {string} method\n * The name of the plotly command to execute. Must be one of 'animate',\n * 'restyle', 'relayout', 'update'.\n * @param {array} args\n * A list of arguments passed to the API command\n */\nexports.executeAPICommand = function(gd, method, args) {\n if(method === 'skip') return Promise.resolve();\n\n var _method = Registry.apiMethodRegistry[method];\n var allArgs = [gd];\n if(!Array.isArray(args)) args = [];\n\n for(var i = 0; i < args.length; i++) {\n allArgs.push(args[i]);\n }\n\n return _method.apply(null, allArgs).catch(function(err) {\n Lib.warn('API call to Plotly.' + method + ' rejected.', err);\n return Promise.reject(err);\n });\n};\n\nexports.computeAPICommandBindings = function(gd, method, args) {\n var bindings;\n\n if(!Array.isArray(args)) args = [];\n\n switch(method) {\n case 'restyle':\n bindings = computeDataBindings(gd, args);\n break;\n case 'relayout':\n bindings = computeLayoutBindings(gd, args);\n break;\n case 'update':\n bindings = computeDataBindings(gd, [args[0], args[2]])\n .concat(computeLayoutBindings(gd, [args[1]]));\n break;\n case 'animate':\n bindings = computeAnimateBindings(gd, args);\n break;\n default:\n // This is the case where intelligent logic about what affects\n // this command is not implemented. It causes no ill effects.\n // For example, addFrames simply won't bind to a control component.\n bindings = [];\n }\n return bindings;\n};\n\nfunction computeAnimateBindings(gd, args) {\n // We'll assume that the only relevant modification an animation\n // makes that's meaningfully tracked is the frame:\n if(Array.isArray(args[0]) && args[0].length === 1 && ['string', 'number'].indexOf(typeof args[0][0]) !== -1) {\n return [{type: 'layout', prop: '_currentFrame', value: args[0][0].toString()}];\n } else {\n return [];\n }\n}\n\nfunction computeLayoutBindings(gd, args) {\n var bindings = [];\n\n var astr = args[0];\n var aobj = {};\n if(typeof astr === 'string') {\n aobj[astr] = args[1];\n } else if(Lib.isPlainObject(astr)) {\n aobj = astr;\n } else {\n return bindings;\n }\n\n crawl(aobj, function(path, attrName, attr) {\n bindings.push({type: 'layout', prop: path, value: attr});\n }, '', 0);\n\n return bindings;\n}\n\nfunction computeDataBindings(gd, args) {\n var traces, astr, val, aobj;\n var bindings = [];\n\n // Logic copied from Plotly.restyle:\n astr = args[0];\n val = args[1];\n traces = args[2];\n aobj = {};\n if(typeof astr === 'string') {\n aobj[astr] = val;\n } else if(Lib.isPlainObject(astr)) {\n // the 3-arg form\n aobj = astr;\n\n if(traces === undefined) {\n traces = val;\n }\n } else {\n return bindings;\n }\n\n if(traces === undefined) {\n // Explicitly assign this to null instead of undefined:\n traces = null;\n }\n\n crawl(aobj, function(path, attrName, _attr) {\n var thisTraces;\n var attr;\n\n if(Array.isArray(_attr)) {\n attr = _attr.slice();\n\n var nAttr = Math.min(attr.length, gd.data.length);\n if(traces) {\n nAttr = Math.min(nAttr, traces.length);\n }\n thisTraces = [];\n for(var j = 0; j < nAttr; j++) {\n thisTraces[j] = traces ? traces[j] : j;\n }\n } else {\n attr = _attr;\n thisTraces = traces ? traces.slice() : null;\n }\n\n // Convert [7] to just 7 when traces is null:\n if(thisTraces === null) {\n if(Array.isArray(attr)) {\n attr = attr[0];\n }\n } else if(Array.isArray(thisTraces)) {\n if(!Array.isArray(attr)) {\n var tmp = attr;\n attr = [];\n for(var i = 0; i < thisTraces.length; i++) {\n attr[i] = tmp;\n }\n }\n attr.length = Math.min(thisTraces.length, attr.length);\n }\n\n bindings.push({\n type: 'data',\n prop: path,\n traces: thisTraces,\n value: attr\n });\n }, '', 0);\n\n return bindings;\n}\n\nfunction crawl(attrs, callback, path, depth) {\n Object.keys(attrs).forEach(function(attrName) {\n var attr = attrs[attrName];\n\n if(attrName[0] === '_') return;\n\n var thisPath = path + (depth > 0 ? '.' : '') + attrName;\n\n if(Lib.isPlainObject(attr)) {\n crawl(attr, callback, thisPath, depth + 1);\n } else {\n // Only execute the callback on leaf nodes:\n callback(thisPath, attrName, attr);\n }\n });\n}\n\n},{\"../lib\":515,\"../registry\":647}],593:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../lib/extend').extendFlat;\n\n/**\n * Make a xy domain attribute group\n *\n * @param {object} opts\n * @param {string}\n * opts.name: name to be inserted in the default description\n * @param {boolean}\n * opts.trace: set to true for trace containers\n * @param {string}\n * opts.editType: editType for all pieces\n * @param {boolean}\n * opts.noGridCell: set to true to omit `row` and `column`\n *\n * @param {object} extra\n * @param {string}\n * extra.description: extra description. N.B we use\n * a separate extra container to make it compatible with\n * the compress_attributes transform.\n *\n * @return {object} attributes object containing {x,y} as specified\n */\nexports.attributes = function(opts, extra) {\n opts = opts || {};\n extra = extra || {};\n\n var base = {\n valType: 'info_array',\n editType: opts.editType,\n items: [\n {valType: 'number', min: 0, max: 1, editType: opts.editType},\n {valType: 'number', min: 0, max: 1, editType: opts.editType}\n ],\n dflt: [0, 1]\n };\n\n var namePart = opts.name ? opts.name + ' ' : '';\n var contPart = opts.trace ? 'trace ' : 'subplot ';\n var descPart = extra.description ? ' ' + extra.description : '';\n\n var out = {\n x: extendFlat({}, base, {\n }),\n y: extendFlat({}, base, {\n }),\n editType: opts.editType\n };\n\n if(!opts.noGridCell) {\n out.row = {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: opts.editType,\n };\n out.column = {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: opts.editType,\n };\n }\n\n return out;\n};\n\nexports.defaults = function(containerOut, layout, coerce, dfltDomains) {\n var dfltX = (dfltDomains && dfltDomains.x) || [0, 1];\n var dfltY = (dfltDomains && dfltDomains.y) || [0, 1];\n\n var grid = layout.grid;\n if(grid) {\n var column = coerce('domain.column');\n if(column !== undefined) {\n if(column < grid.columns) dfltX = grid._domains.x[column];\n else delete containerOut.domain.column;\n }\n\n var row = coerce('domain.row');\n if(row !== undefined) {\n if(row < grid.rows) dfltY = grid._domains.y[row];\n else delete containerOut.domain.row;\n }\n }\n\n var x = coerce('domain.x', dfltX);\n var y = coerce('domain.y', dfltY);\n\n // don't accept bad input data\n if(!(x[0] < x[1])) containerOut.domain.x = dfltX.slice();\n if(!(y[0] < y[1])) containerOut.domain.y = dfltY.slice();\n};\n\n},{\"../lib/extend\":505}],594:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * make a font attribute group\n *\n * @param {object} opts\n * @param {string}\n * opts.description: where & how this font is used\n * @param {optional bool} arrayOk:\n * should each part (family, size, color) be arrayOk? default false.\n * @param {string} editType:\n * the editType for all pieces of this font\n * @param {optional string} colorEditType:\n * a separate editType just for color\n *\n * @return {object} attributes object containing {family, size, color} as specified\n */\nmodule.exports = function(opts) {\n var editType = opts.editType;\n var colorEditType = opts.colorEditType;\n if(colorEditType === undefined) colorEditType = editType;\n var attrs = {\n family: {\n valType: 'string',\n noBlank: true,\n strict: true,\n editType: editType,\n },\n size: {\n valType: 'number',\n min: 1,\n editType: editType\n },\n color: {\n valType: 'color',\n editType: colorEditType\n },\n editType: editType,\n // blank strings so compress_attributes can remove\n // TODO - that's uber hacky... better solution?\n };\n\n if(opts.autoSize) attrs.size.dflt = 'auto';\n if(opts.autoColor) attrs.color.dflt = 'auto';\n\n if(opts.arrayOk) {\n attrs.family.arrayOk = true;\n attrs.size.arrayOk = true;\n attrs.color.arrayOk = true;\n }\n\n return attrs;\n};\n\n},{}],595:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n _isLinkedToArray: 'frames_entry',\n\n group: {\n valType: 'string',\n },\n name: {\n valType: 'string',\n },\n traces: {\n valType: 'any',\n },\n baseframe: {\n valType: 'string',\n },\n data: {\n valType: 'any',\n },\n layout: {\n valType: 'any',\n }\n};\n\n},{}],596:[function(_dereq_,module,exports){\n'use strict';\n\n// projection names to d3 function name\nexports.projNames = {\n 'airy': 'airy',\n 'aitoff': 'aitoff',\n 'albers usa': 'albersUsa',\n 'albers': 'albers',\n // 'armadillo': 'armadillo',\n 'august': 'august',\n 'azimuthal equal area': 'azimuthalEqualArea',\n 'azimuthal equidistant': 'azimuthalEquidistant',\n 'baker': 'baker',\n // 'berghaus': 'berghaus',\n 'bertin1953': 'bertin1953',\n 'boggs': 'boggs',\n 'bonne': 'bonne',\n 'bottomley': 'bottomley',\n 'bromley': 'bromley',\n // 'chamberlin africa': 'chamberlinAfrica',\n // 'chamberlin': 'chamberlin',\n 'collignon': 'collignon',\n 'conic conformal': 'conicConformal',\n 'conic equal area': 'conicEqualArea',\n 'conic equidistant': 'conicEquidistant',\n 'craig': 'craig',\n 'craster': 'craster',\n 'cylindrical equal area': 'cylindricalEqualArea',\n 'cylindrical stereographic': 'cylindricalStereographic',\n 'eckert1': 'eckert1',\n 'eckert2': 'eckert2',\n 'eckert3': 'eckert3',\n 'eckert4': 'eckert4',\n 'eckert5': 'eckert5',\n 'eckert6': 'eckert6',\n 'eisenlohr': 'eisenlohr',\n 'equirectangular': 'equirectangular',\n 'fahey': 'fahey',\n 'foucaut sinusoidal': 'foucautSinusoidal',\n 'foucaut': 'foucaut',\n // 'gilbert': 'gilbert',\n // 'gingery': 'gingery',\n 'ginzburg4': 'ginzburg4',\n 'ginzburg5': 'ginzburg5',\n 'ginzburg6': 'ginzburg6',\n 'ginzburg8': 'ginzburg8',\n 'ginzburg9': 'ginzburg9',\n 'gnomonic': 'gnomonic',\n 'gringorten quincuncial': 'gringortenQuincuncial',\n 'gringorten': 'gringorten',\n 'guyou': 'guyou',\n // 'hammer retroazimuthal': 'hammerRetroazimuthal',\n 'hammer': 'hammer',\n // 'healpix': 'healpix',\n 'hill': 'hill',\n 'homolosine': 'homolosine',\n 'hufnagel': 'hufnagel',\n 'hyperelliptical': 'hyperelliptical',\n // 'interrupted boggs': 'interruptedBoggs',\n // 'interrupted homolosine': 'interruptedHomolosine',\n // 'interrupted mollweide hemispheres': 'interruptedMollweideHemispheres',\n // 'interrupted mollweide': 'interruptedMollweide',\n // 'interrupted quartic authalic': 'interruptedQuarticAuthalic',\n // 'interrupted sinu mollweide': 'interruptedSinuMollweide',\n // 'interrupted sinusoidal': 'interruptedSinusoidal',\n 'kavrayskiy7': 'kavrayskiy7',\n 'lagrange': 'lagrange',\n 'larrivee': 'larrivee',\n 'laskowski': 'laskowski',\n // 'littrow': 'littrow',\n 'loximuthal': 'loximuthal',\n 'mercator': 'mercator',\n 'miller': 'miller',\n // 'modified stereographic alaska': 'modifiedStereographicAlaska',\n // 'modified stereographic gs48': 'modifiedStereographicGs48',\n // 'modified stereographic gs50': 'modifiedStereographicGs50',\n // 'modified stereographic lee': 'modifiedStereographicLee',\n // 'modified stereographic miller': 'modifiedStereographicMiller',\n // 'modified stereographic': 'modifiedStereographic',\n 'mollweide': 'mollweide',\n 'mt flat polar parabolic': 'mtFlatPolarParabolic',\n 'mt flat polar quartic': 'mtFlatPolarQuartic',\n 'mt flat polar sinusoidal': 'mtFlatPolarSinusoidal',\n 'natural earth': 'naturalEarth',\n 'natural earth1': 'naturalEarth1',\n 'natural earth2': 'naturalEarth2',\n 'nell hammer': 'nellHammer',\n 'nicolosi': 'nicolosi',\n 'orthographic': 'orthographic',\n 'patterson': 'patterson',\n 'peirce quincuncial': 'peirceQuincuncial',\n 'polyconic': 'polyconic',\n // 'polyhedral butterfly': 'polyhedralButterfly',\n // 'polyhedral collignon': 'polyhedralCollignon',\n // 'polyhedral waterman': 'polyhedralWaterman',\n 'rectangular polyconic': 'rectangularPolyconic',\n 'robinson': 'robinson',\n 'satellite': 'satellite',\n 'sinu mollweide': 'sinuMollweide',\n 'sinusoidal': 'sinusoidal',\n 'stereographic': 'stereographic',\n 'times': 'times',\n 'transverse mercator': 'transverseMercator',\n // 'two point azimuthalUsa': 'twoPointAzimuthalUsa',\n // 'two point azimuthal': 'twoPointAzimuthal',\n // 'two point equidistantUsa': 'twoPointEquidistantUsa',\n // 'two point equidistant': 'twoPointEquidistant',\n 'van der grinten': 'vanDerGrinten',\n 'van der grinten2': 'vanDerGrinten2',\n 'van der grinten3': 'vanDerGrinten3',\n 'van der grinten4': 'vanDerGrinten4',\n 'wagner4': 'wagner4',\n 'wagner6': 'wagner6',\n // 'wagner7': 'wagner7',\n // 'wagner': 'wagner',\n 'wiechel': 'wiechel',\n 'winkel tripel': 'winkel3',\n 'winkel3': 'winkel3',\n};\n\n// name of the axes\nexports.axesNames = ['lonaxis', 'lataxis'];\n\n// max longitudinal angular span (EXPERIMENTAL)\nexports.lonaxisSpan = {\n 'orthographic': 180,\n 'azimuthal equal area': 360,\n 'azimuthal equidistant': 360,\n 'conic conformal': 180,\n 'gnomonic': 160,\n 'stereographic': 180,\n 'transverse mercator': 180,\n '*': 360\n};\n\n// max latitudinal angular span (EXPERIMENTAL)\nexports.lataxisSpan = {\n 'conic conformal': 150,\n 'stereographic': 179.5,\n '*': 180\n};\n\n// defaults for each scope\nexports.scopeDefaults = {\n world: {\n lonaxisRange: [-180, 180],\n lataxisRange: [-90, 90],\n projType: 'equirectangular',\n projRotate: [0, 0, 0]\n },\n usa: {\n lonaxisRange: [-180, -50],\n lataxisRange: [15, 80],\n projType: 'albers usa'\n },\n europe: {\n lonaxisRange: [-30, 60],\n lataxisRange: [30, 85],\n projType: 'conic conformal',\n projRotate: [15, 0, 0],\n projParallels: [0, 60]\n },\n asia: {\n lonaxisRange: [22, 160],\n lataxisRange: [-15, 55],\n projType: 'mercator',\n projRotate: [0, 0, 0]\n },\n africa: {\n lonaxisRange: [-30, 60],\n lataxisRange: [-40, 40],\n projType: 'mercator',\n projRotate: [0, 0, 0]\n },\n 'north america': {\n lonaxisRange: [-180, -45],\n lataxisRange: [5, 85],\n projType: 'conic conformal',\n projRotate: [-100, 0, 0],\n projParallels: [29.5, 45.5]\n },\n 'south america': {\n lonaxisRange: [-100, -30],\n lataxisRange: [-60, 15],\n projType: 'mercator',\n projRotate: [0, 0, 0]\n }\n};\n\n// angular pad to avoid rounding error around clip angles\nexports.clipPad = 1e-3;\n\n// map projection precision\nexports.precision = 0.1;\n\n// default land and water fill colors\nexports.landColor = '#F0DC82';\nexports.waterColor = '#3399FF';\n\n// locationmode to layer name\nexports.locationmodeToLayer = {\n 'ISO-3': 'countries',\n 'USA-states': 'subunits',\n 'country names': 'countries'\n};\n\n// SVG element for a sphere (use to frame maps)\nexports.sphereSVG = {type: 'Sphere'};\n\n// N.B. base layer names must be the same as in the topojson files\n\n// base layer with a fill color\nexports.fillLayers = {\n ocean: 1,\n land: 1,\n lakes: 1\n};\n\n// base layer with a only a line color\nexports.lineLayers = {\n subunits: 1,\n countries: 1,\n coastlines: 1,\n rivers: 1,\n frame: 1\n};\n\nexports.layers = [\n 'bg',\n 'ocean', 'land', 'lakes',\n 'subunits', 'countries', 'coastlines', 'rivers',\n 'lataxis', 'lonaxis', 'frame',\n 'backplot',\n 'frontplot'\n];\n\nexports.layersForChoropleth = [\n 'bg',\n 'ocean', 'land',\n 'subunits', 'countries', 'coastlines',\n 'lataxis', 'lonaxis', 'frame',\n 'backplot',\n 'rivers', 'lakes',\n 'frontplot'\n];\n\nexports.layerNameToAdjective = {\n ocean: 'ocean',\n land: 'land',\n lakes: 'lake',\n subunits: 'subunit',\n countries: 'country',\n coastlines: 'coastline',\n rivers: 'river',\n frame: 'frame'\n};\n\n},{}],597:[function(_dereq_,module,exports){\n'use strict';\n\n/* global PlotlyGeoAssets:false */\n\nvar d3 = _dereq_('@plotly/d3');\nvar geo = _dereq_('d3-geo');\nvar geoPath = geo.geoPath;\nvar geoDistance = geo.geoDistance;\nvar geoProjection = _dereq_('d3-geo-projection');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Fx = _dereq_('../../components/fx');\nvar Plots = _dereq_('../plots');\nvar Axes = _dereq_('../cartesian/axes');\nvar getAutoRange = _dereq_('../cartesian/autorange').getAutoRange;\nvar dragElement = _dereq_('../../components/dragelement');\nvar prepSelect = _dereq_('../../components/selections').prepSelect;\nvar clearOutline = _dereq_('../../components/selections').clearOutline;\nvar selectOnClick = _dereq_('../../components/selections').selectOnClick;\n\nvar createGeoZoom = _dereq_('./zoom');\nvar constants = _dereq_('./constants');\n\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar topojsonUtils = _dereq_('../../lib/topojson_utils');\nvar topojsonFeature = _dereq_('topojson-client').feature;\n\nfunction Geo(opts) {\n this.id = opts.id;\n this.graphDiv = opts.graphDiv;\n this.container = opts.container;\n this.topojsonURL = opts.topojsonURL;\n this.isStatic = opts.staticPlot;\n\n this.topojsonName = null;\n this.topojson = null;\n\n this.projection = null;\n this.scope = null;\n this.viewInitial = null;\n this.fitScale = null;\n this.bounds = null;\n this.midPt = null;\n\n this.hasChoropleth = false;\n this.traceHash = {};\n\n this.layers = {};\n this.basePaths = {};\n this.dataPaths = {};\n this.dataPoints = {};\n\n this.clipDef = null;\n this.clipRect = null;\n this.bgRect = null;\n\n this.makeFramework();\n}\n\nvar proto = Geo.prototype;\n\nmodule.exports = function createGeo(opts) {\n return new Geo(opts);\n};\n\nproto.plot = function(geoCalcData, fullLayout, promises, replot) {\n var _this = this;\n if(replot) return _this.update(geoCalcData, fullLayout, true);\n\n _this._geoCalcData = geoCalcData;\n _this._fullLayout = fullLayout;\n\n var geoLayout = fullLayout[this.id];\n var geoPromises = [];\n\n var needsTopojson = false;\n for(var k in constants.layerNameToAdjective) {\n if(k !== 'frame' && geoLayout['show' + k]) {\n needsTopojson = true;\n break;\n }\n }\n\n var hasMarkerAngles = false;\n for(var i = 0; i < geoCalcData.length; i++) {\n var trace = geoCalcData[0][0].trace;\n trace._geo = _this;\n\n if(trace.locationmode) {\n needsTopojson = true;\n }\n\n var marker = trace.marker;\n if(marker) {\n var angle = marker.angle;\n var angleref = marker.angleref;\n if(angle || angleref === 'north' || angleref === 'previous') hasMarkerAngles = true;\n }\n }\n this._hasMarkerAngles = hasMarkerAngles;\n\n if(needsTopojson) {\n var topojsonNameNew = topojsonUtils.getTopojsonName(geoLayout);\n if(_this.topojson === null || topojsonNameNew !== _this.topojsonName) {\n _this.topojsonName = topojsonNameNew;\n\n if(PlotlyGeoAssets.topojson[_this.topojsonName] === undefined) {\n geoPromises.push(_this.fetchTopojson());\n }\n }\n }\n\n geoPromises = geoPromises.concat(geoUtils.fetchTraceGeoData(geoCalcData));\n\n promises.push(new Promise(function(resolve, reject) {\n Promise.all(geoPromises).then(function() {\n _this.topojson = PlotlyGeoAssets.topojson[_this.topojsonName];\n _this.update(geoCalcData, fullLayout);\n resolve();\n })\n .catch(reject);\n }));\n};\n\nproto.fetchTopojson = function() {\n var _this = this;\n var topojsonPath = topojsonUtils.getTopojsonPath(_this.topojsonURL, _this.topojsonName);\n\n return new Promise(function(resolve, reject) {\n d3.json(topojsonPath, function(err, topojson) {\n if(err) {\n if(err.status === 404) {\n return reject(new Error([\n 'plotly.js could not find topojson file at',\n topojsonPath + '.',\n 'Make sure the *topojsonURL* plot config option',\n 'is set properly.'\n ].join(' ')));\n } else {\n return reject(new Error([\n 'unexpected error while fetching topojson file at',\n topojsonPath\n ].join(' ')));\n }\n }\n\n PlotlyGeoAssets.topojson[_this.topojsonName] = topojson;\n resolve();\n });\n });\n};\n\nproto.update = function(geoCalcData, fullLayout, replot) {\n var geoLayout = fullLayout[this.id];\n\n // important: maps with choropleth traces have a different layer order\n this.hasChoropleth = false;\n\n for(var i = 0; i < geoCalcData.length; i++) {\n var calcTrace = geoCalcData[i];\n var trace = calcTrace[0].trace;\n\n if(trace.type === 'choropleth') {\n this.hasChoropleth = true;\n }\n if(trace.visible === true && trace._length > 0) {\n trace._module.calcGeoJSON(calcTrace, fullLayout);\n }\n }\n\n if(!replot) {\n var hasInvalidBounds = this.updateProjection(geoCalcData, fullLayout);\n if(hasInvalidBounds) return;\n\n if(!this.viewInitial || this.scope !== geoLayout.scope) {\n this.saveViewInitial(geoLayout);\n }\n }\n this.scope = geoLayout.scope;\n\n this.updateBaseLayers(fullLayout, geoLayout);\n this.updateDims(fullLayout, geoLayout);\n this.updateFx(fullLayout, geoLayout);\n\n Plots.generalUpdatePerTraceModule(this.graphDiv, this, geoCalcData, geoLayout);\n\n var scatterLayer = this.layers.frontplot.select('.scatterlayer');\n this.dataPoints.point = scatterLayer.selectAll('.point');\n this.dataPoints.text = scatterLayer.selectAll('text');\n this.dataPaths.line = scatterLayer.selectAll('.js-line');\n\n var choroplethLayer = this.layers.backplot.select('.choroplethlayer');\n this.dataPaths.choropleth = choroplethLayer.selectAll('path');\n\n this._render();\n};\n\nproto.updateProjection = function(geoCalcData, fullLayout) {\n var gd = this.graphDiv;\n var geoLayout = fullLayout[this.id];\n var gs = fullLayout._size;\n var domain = geoLayout.domain;\n var projLayout = geoLayout.projection;\n\n var lonaxis = geoLayout.lonaxis;\n var lataxis = geoLayout.lataxis;\n var axLon = lonaxis._ax;\n var axLat = lataxis._ax;\n\n var projection = this.projection = getProjection(geoLayout);\n\n // setup subplot extent [[x0,y0], [x1,y1]]\n var extent = [[\n gs.l + gs.w * domain.x[0],\n gs.t + gs.h * (1 - domain.y[1])\n ], [\n gs.l + gs.w * domain.x[1],\n gs.t + gs.h * (1 - domain.y[0])\n ]];\n\n var center = geoLayout.center || {};\n var rotation = projLayout.rotation || {};\n var lonaxisRange = lonaxis.range || [];\n var lataxisRange = lataxis.range || [];\n\n if(geoLayout.fitbounds) {\n axLon._length = extent[1][0] - extent[0][0];\n axLat._length = extent[1][1] - extent[0][1];\n axLon.range = getAutoRange(gd, axLon);\n axLat.range = getAutoRange(gd, axLat);\n\n var midLon = (axLon.range[0] + axLon.range[1]) / 2;\n var midLat = (axLat.range[0] + axLat.range[1]) / 2;\n\n if(geoLayout._isScoped) {\n center = {lon: midLon, lat: midLat};\n } else if(geoLayout._isClipped) {\n center = {lon: midLon, lat: midLat};\n rotation = {lon: midLon, lat: midLat, roll: rotation.roll};\n\n var projType = projLayout.type;\n var lonHalfSpan = (constants.lonaxisSpan[projType] / 2) || 180;\n var latHalfSpan = (constants.lataxisSpan[projType] / 2) || 90;\n\n lonaxisRange = [midLon - lonHalfSpan, midLon + lonHalfSpan];\n lataxisRange = [midLat - latHalfSpan, midLat + latHalfSpan];\n } else {\n center = {lon: midLon, lat: midLat};\n rotation = {lon: midLon, lat: rotation.lat, roll: rotation.roll};\n }\n }\n\n // set 'pre-fit' projection\n projection\n .center([center.lon - rotation.lon, center.lat - rotation.lat])\n .rotate([-rotation.lon, -rotation.lat, rotation.roll])\n .parallels(projLayout.parallels);\n\n // fit projection 'scale' and 'translate' to set lon/lat ranges\n var rangeBox = makeRangeBox(lonaxisRange, lataxisRange);\n projection.fitExtent(extent, rangeBox);\n\n var b = this.bounds = projection.getBounds(rangeBox);\n var s = this.fitScale = projection.scale();\n var t = projection.translate();\n\n if(geoLayout.fitbounds) {\n var b2 = projection.getBounds(makeRangeBox(axLon.range, axLat.range));\n var k2 = Math.min(\n (b[1][0] - b[0][0]) / (b2[1][0] - b2[0][0]),\n (b[1][1] - b[0][1]) / (b2[1][1] - b2[0][1])\n );\n\n if(isFinite(k2)) {\n projection.scale(k2 * s);\n } else {\n Lib.warn('Something went wrong during' + this.id + 'fitbounds computations.');\n }\n } else {\n // adjust projection to user setting\n projection.scale(projLayout.scale * s);\n }\n\n // px coordinates of view mid-point,\n // useful to update `geo.center` after interactions\n var midPt = this.midPt = [\n (b[0][0] + b[1][0]) / 2,\n (b[0][1] + b[1][1]) / 2\n ];\n\n projection\n .translate([t[0] + (midPt[0] - t[0]), t[1] + (midPt[1] - t[1])])\n .clipExtent(b);\n\n // the 'albers usa' projection does not expose a 'center' method\n // so here's this hack to make it respond to 'geoLayout.center'\n if(geoLayout._isAlbersUsa) {\n var centerPx = projection([center.lon, center.lat]);\n var tt = projection.translate();\n\n projection.translate([\n tt[0] - (centerPx[0] - tt[0]),\n tt[1] - (centerPx[1] - tt[1])\n ]);\n }\n};\n\nproto.updateBaseLayers = function(fullLayout, geoLayout) {\n var _this = this;\n var topojson = _this.topojson;\n var layers = _this.layers;\n var basePaths = _this.basePaths;\n\n function isAxisLayer(d) {\n return (d === 'lonaxis' || d === 'lataxis');\n }\n\n function isLineLayer(d) {\n return Boolean(constants.lineLayers[d]);\n }\n\n function isFillLayer(d) {\n return Boolean(constants.fillLayers[d]);\n }\n\n var allLayers = this.hasChoropleth ?\n constants.layersForChoropleth :\n constants.layers;\n\n var layerData = allLayers.filter(function(d) {\n return (isLineLayer(d) || isFillLayer(d)) ? geoLayout['show' + d] :\n isAxisLayer(d) ? geoLayout[d].showgrid :\n true;\n });\n\n var join = _this.framework.selectAll('.layer')\n .data(layerData, String);\n\n join.exit().each(function(d) {\n delete layers[d];\n delete basePaths[d];\n d3.select(this).remove();\n });\n\n join.enter().append('g')\n .attr('class', function(d) { return 'layer ' + d; })\n .each(function(d) {\n var layer = layers[d] = d3.select(this);\n\n if(d === 'bg') {\n _this.bgRect = layer.append('rect')\n .style('pointer-events', 'all');\n } else if(isAxisLayer(d)) {\n basePaths[d] = layer.append('path')\n .style('fill', 'none');\n } else if(d === 'backplot') {\n layer.append('g')\n .classed('choroplethlayer', true);\n } else if(d === 'frontplot') {\n layer.append('g')\n .classed('scatterlayer', true);\n } else if(isLineLayer(d)) {\n basePaths[d] = layer.append('path')\n .style('fill', 'none')\n .style('stroke-miterlimit', 2);\n } else if(isFillLayer(d)) {\n basePaths[d] = layer.append('path')\n .style('stroke', 'none');\n }\n });\n\n join.order();\n\n join.each(function(d) {\n var path = basePaths[d];\n var adj = constants.layerNameToAdjective[d];\n\n if(d === 'frame') {\n path.datum(constants.sphereSVG);\n } else if(isLineLayer(d) || isFillLayer(d)) {\n path.datum(topojsonFeature(topojson, topojson.objects[d]));\n } else if(isAxisLayer(d)) {\n path.datum(makeGraticule(d, geoLayout, fullLayout))\n .call(Color.stroke, geoLayout[d].gridcolor)\n .call(Drawing.dashLine, geoLayout[d].griddash, geoLayout[d].gridwidth);\n }\n\n if(isLineLayer(d)) {\n path.call(Color.stroke, geoLayout[adj + 'color'])\n .call(Drawing.dashLine, '', geoLayout[adj + 'width']);\n } else if(isFillLayer(d)) {\n path.call(Color.fill, geoLayout[adj + 'color']);\n }\n });\n};\n\nproto.updateDims = function(fullLayout, geoLayout) {\n var b = this.bounds;\n var hFrameWidth = (geoLayout.framewidth || 0) / 2;\n\n var l = b[0][0] - hFrameWidth;\n var t = b[0][1] - hFrameWidth;\n var w = b[1][0] - l + hFrameWidth;\n var h = b[1][1] - t + hFrameWidth;\n\n Drawing.setRect(this.clipRect, l, t, w, h);\n\n this.bgRect\n .call(Drawing.setRect, l, t, w, h)\n .call(Color.fill, geoLayout.bgcolor);\n\n this.xaxis._offset = l;\n this.xaxis._length = w;\n\n this.yaxis._offset = t;\n this.yaxis._length = h;\n};\n\nproto.updateFx = function(fullLayout, geoLayout) {\n var _this = this;\n var gd = _this.graphDiv;\n var bgRect = _this.bgRect;\n var dragMode = fullLayout.dragmode;\n var clickMode = fullLayout.clickmode;\n\n if(_this.isStatic) return;\n\n function zoomReset() {\n var viewInitial = _this.viewInitial;\n var updateObj = {};\n\n for(var k in viewInitial) {\n updateObj[_this.id + '.' + k] = viewInitial[k];\n }\n\n Registry.call('_guiRelayout', gd, updateObj);\n gd.emit('plotly_doubleclick', null);\n }\n\n function invert(lonlat) {\n return _this.projection.invert([\n lonlat[0] + _this.xaxis._offset,\n lonlat[1] + _this.yaxis._offset\n ]);\n }\n\n var fillRangeItems = function(eventData, poly) {\n if(poly.isRect) {\n var ranges = eventData.range = {};\n ranges[_this.id] = [\n invert([poly.xmin, poly.ymin]),\n invert([poly.xmax, poly.ymax])\n ];\n } else {\n var dataPts = eventData.lassoPoints = {};\n dataPts[_this.id] = poly.map(invert);\n }\n };\n\n // Note: dragOptions is needed to be declared for all dragmodes because\n // it's the object that holds persistent selection state.\n var dragOptions = {\n element: _this.bgRect.node(),\n gd: gd,\n plotinfo: {\n id: _this.id,\n xaxis: _this.xaxis,\n yaxis: _this.yaxis,\n fillRangeItems: fillRangeItems\n },\n xaxes: [_this.xaxis],\n yaxes: [_this.yaxis],\n subplot: _this.id,\n clickFn: function(numClicks) {\n if(numClicks === 2) {\n clearOutline(gd);\n }\n }\n };\n\n if(dragMode === 'pan') {\n bgRect.node().onmousedown = null;\n bgRect.call(createGeoZoom(_this, geoLayout));\n bgRect.on('dblclick.zoom', zoomReset);\n if(!gd._context._scrollZoom.geo) {\n bgRect.on('wheel.zoom', null);\n }\n } else if(dragMode === 'select' || dragMode === 'lasso') {\n bgRect.on('.zoom', null);\n\n dragOptions.prepFn = function(e, startX, startY) {\n prepSelect(e, startX, startY, dragOptions, dragMode);\n };\n\n dragElement.init(dragOptions);\n }\n\n bgRect.on('mousemove', function() {\n var lonlat = _this.projection.invert(Lib.getPositionFromD3Event());\n\n if(!lonlat) {\n return dragElement.unhover(gd, d3.event);\n }\n\n _this.xaxis.p2c = function() { return lonlat[0]; };\n _this.yaxis.p2c = function() { return lonlat[1]; };\n\n Fx.hover(gd, d3.event, _this.id);\n });\n\n bgRect.on('mouseout', function() {\n if(gd._dragging) return;\n dragElement.unhover(gd, d3.event);\n });\n\n bgRect.on('click', function() {\n // For select and lasso the dragElement is handling clicks\n if(dragMode !== 'select' && dragMode !== 'lasso') {\n if(clickMode.indexOf('select') > -1) {\n selectOnClick(d3.event, gd, [_this.xaxis], [_this.yaxis],\n _this.id, dragOptions);\n }\n\n if(clickMode.indexOf('event') > -1) {\n // TODO: like pie and mapbox, this doesn't support right-click\n // actually this one is worse, as right-click starts a pan, or leaves\n // select in a weird state.\n // Also, only tangentially related, we should cancel hover during pan\n Fx.click(gd, d3.event);\n }\n }\n });\n};\n\nproto.makeFramework = function() {\n var _this = this;\n var gd = _this.graphDiv;\n var fullLayout = gd._fullLayout;\n var clipId = 'clip' + fullLayout._uid + _this.id;\n\n _this.clipDef = fullLayout._clips.append('clipPath')\n .attr('id', clipId);\n\n _this.clipRect = _this.clipDef.append('rect');\n\n _this.framework = d3.select(_this.container).append('g')\n .attr('class', 'geo ' + _this.id)\n .call(Drawing.setClipUrl, clipId, gd);\n\n // sane lonlat to px\n _this.project = function(v) {\n var px = _this.projection(v);\n return px ?\n [px[0] - _this.xaxis._offset, px[1] - _this.yaxis._offset] :\n [null, null];\n };\n\n _this.xaxis = {\n _id: 'x',\n c2p: function(v) { return _this.project(v)[0]; }\n };\n\n _this.yaxis = {\n _id: 'y',\n c2p: function(v) { return _this.project(v)[1]; }\n };\n\n // mock axis for hover formatting\n _this.mockAxis = {\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B'\n };\n Axes.setConvert(_this.mockAxis, fullLayout);\n};\n\nproto.saveViewInitial = function(geoLayout) {\n var center = geoLayout.center || {};\n var projLayout = geoLayout.projection;\n var rotation = projLayout.rotation || {};\n\n this.viewInitial = {\n 'fitbounds': geoLayout.fitbounds,\n 'projection.scale': projLayout.scale\n };\n\n var extra;\n if(geoLayout._isScoped) {\n extra = {\n 'center.lon': center.lon,\n 'center.lat': center.lat,\n };\n } else if(geoLayout._isClipped) {\n extra = {\n 'projection.rotation.lon': rotation.lon,\n 'projection.rotation.lat': rotation.lat\n };\n } else {\n extra = {\n 'center.lon': center.lon,\n 'center.lat': center.lat,\n 'projection.rotation.lon': rotation.lon\n };\n }\n\n Lib.extendFlat(this.viewInitial, extra);\n};\n\nproto.render = function(mayRedrawOnUpdates) {\n if(this._hasMarkerAngles && mayRedrawOnUpdates) {\n this.plot(this._geoCalcData, this._fullLayout, [], true);\n } else {\n this._render();\n }\n};\n\n// [hot code path] (re)draw all paths which depend on the projection\nproto._render = function() {\n var projection = this.projection;\n var pathFn = projection.getPath();\n var k;\n\n function translatePoints(d) {\n var lonlatPx = projection(d.lonlat);\n return lonlatPx ?\n strTranslate(lonlatPx[0], lonlatPx[1]) :\n null;\n }\n\n function hideShowPoints(d) {\n return projection.isLonLatOverEdges(d.lonlat) ? 'none' : null;\n }\n\n for(k in this.basePaths) {\n this.basePaths[k].attr('d', pathFn);\n }\n\n for(k in this.dataPaths) {\n this.dataPaths[k].attr('d', function(d) { return pathFn(d.geojson); });\n }\n\n for(k in this.dataPoints) {\n this.dataPoints[k]\n .attr('display', hideShowPoints)\n .attr('transform', translatePoints); // TODO: need to redraw points with marker angle instead of calling translatePoints\n }\n};\n\n// Helper that wraps d3[geo + /* Projection name /*]() which:\n//\n// - adds 'getPath', 'getBounds' convenience methods\n// - scopes logic related to 'clipAngle'\n// - adds 'isLonLatOverEdges' method\n// - sets projection precision\n// - sets methods that aren't always defined depending\n// on the projection type to a dummy 'd3-esque' function,\n//\n// This wrapper alleviates subsequent code of (many) annoying if-statements.\nfunction getProjection(geoLayout) {\n var projLayout = geoLayout.projection;\n var projType = projLayout.type;\n\n var projName = constants.projNames[projType];\n // uppercase the first letter and add geo to the start of method name\n projName = 'geo' + Lib.titleCase(projName);\n var projFn = geo[projName] || geoProjection[projName];\n var projection = projFn();\n\n var clipAngle =\n geoLayout._isSatellite ? Math.acos(1 / projLayout.distance) * 180 / Math.PI :\n geoLayout._isClipped ? constants.lonaxisSpan[projType] / 2 : null;\n\n var methods = ['center', 'rotate', 'parallels', 'clipExtent'];\n var dummyFn = function(_) { return _ ? projection : []; };\n\n for(var i = 0; i < methods.length; i++) {\n var m = methods[i];\n if(typeof projection[m] !== 'function') {\n projection[m] = dummyFn;\n }\n }\n\n projection.isLonLatOverEdges = function(lonlat) {\n if(projection(lonlat) === null) {\n return true;\n }\n\n if(clipAngle) {\n var r = projection.rotate();\n var angle = geoDistance(lonlat, [-r[0], -r[1]]);\n var maxAngle = clipAngle * Math.PI / 180;\n return angle > maxAngle;\n } else {\n return false;\n }\n };\n\n projection.getPath = function() {\n return geoPath().projection(projection);\n };\n\n projection.getBounds = function(object) {\n return projection.getPath().bounds(object);\n };\n\n projection.precision(constants.precision);\n\n if(geoLayout._isSatellite) {\n projection.tilt(projLayout.tilt).distance(projLayout.distance);\n }\n\n if(clipAngle) {\n projection.clipAngle(clipAngle - constants.clipPad);\n }\n\n return projection;\n}\n\nfunction makeGraticule(axisName, geoLayout, fullLayout) {\n // equivalent to the d3 \"ε\"\n var epsilon = 1e-6;\n // same as the geoGraticule default\n var precision = 2.5;\n\n var axLayout = geoLayout[axisName];\n var scopeDefaults = constants.scopeDefaults[geoLayout.scope];\n var rng;\n var oppRng;\n var coordFn;\n\n if(axisName === 'lonaxis') {\n rng = scopeDefaults.lonaxisRange;\n oppRng = scopeDefaults.lataxisRange;\n coordFn = function(v, l) { return [v, l]; };\n } else if(axisName === 'lataxis') {\n rng = scopeDefaults.lataxisRange;\n oppRng = scopeDefaults.lonaxisRange;\n coordFn = function(v, l) { return [l, v]; };\n }\n\n var dummyAx = {\n type: 'linear',\n range: [rng[0], rng[1] - epsilon],\n tick0: axLayout.tick0,\n dtick: axLayout.dtick\n };\n\n Axes.setConvert(dummyAx, fullLayout);\n var vals = Axes.calcTicks(dummyAx);\n\n // remove duplicate on antimeridian\n if(!geoLayout.isScoped && axisName === 'lonaxis') {\n vals.pop();\n }\n\n var len = vals.length;\n var coords = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var v = vals[i].x;\n var line = coords[i] = [];\n for(var l = oppRng[0]; l < oppRng[1] + precision; l += precision) {\n line.push(coordFn(v, l));\n }\n }\n\n return {\n type: 'MultiLineString',\n coordinates: coords\n };\n}\n\n// Returns polygon GeoJSON corresponding to lon/lat range box\n// with well-defined direction\n//\n// Note that clipPad padding is added around range to avoid aliasing.\nfunction makeRangeBox(lon, lat) {\n var clipPad = constants.clipPad;\n var lon0 = lon[0] + clipPad;\n var lon1 = lon[1] - clipPad;\n var lat0 = lat[0] + clipPad;\n var lat1 = lat[1] - clipPad;\n\n // to cross antimeridian w/o ambiguity\n if(lon0 > 0 && lon1 < 0) lon1 += 360;\n\n var dlon4 = (lon1 - lon0) / 4;\n\n return {\n type: 'Polygon',\n coordinates: [[\n [lon0, lat0],\n [lon0, lat1],\n [lon0 + dlon4, lat1],\n [lon0 + 2 * dlon4, lat1],\n [lon0 + 3 * dlon4, lat1],\n [lon1, lat1],\n [lon1, lat0],\n [lon1 - dlon4, lat0],\n [lon1 - 2 * dlon4, lat0],\n [lon1 - 3 * dlon4, lat0],\n [lon0, lat0]\n ]]\n };\n}\n\n},{\"../../components/color\":367,\"../../components/dragelement\":386,\"../../components/drawing\":389,\"../../components/fx\":407,\"../../components/selections\":455,\"../../lib\":515,\"../../lib/geo_location_utils\":508,\"../../lib/topojson_utils\":544,\"../../registry\":647,\"../cartesian/autorange\":565,\"../cartesian/axes\":566,\"../plots\":628,\"./constants\":596,\"./zoom\":601,\"@plotly/d3\":58,\"d3-geo\":114,\"d3-geo-projection\":113,\"topojson-client\":316}],598:[function(_dereq_,module,exports){\n'use strict';\n\nvar getSubplotCalcData = _dereq_('../../plots/get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\n\nvar createGeo = _dereq_('./geo');\n\nvar GEO = 'geo';\nvar counter = counterRegex(GEO);\n\nvar attributes = {};\nattributes[GEO] = {\n valType: 'subplotid',\n dflt: GEO,\n editType: 'calc',\n};\n\nfunction plotGeo(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var geoIds = fullLayout._subplots[GEO];\n\n for(var i = 0; i < geoIds.length; i++) {\n var geoId = geoIds[i];\n var geoCalcData = getSubplotCalcData(calcData, GEO, geoId);\n var geoLayout = fullLayout[geoId];\n var geo = geoLayout._subplot;\n\n if(!geo) {\n geo = createGeo({\n id: geoId,\n graphDiv: gd,\n container: fullLayout._geolayer.node(),\n topojsonURL: gd._context.topojsonURL,\n staticPlot: gd._context.staticPlot\n });\n\n fullLayout[geoId]._subplot = geo;\n }\n\n geo.plot(geoCalcData, fullLayout, gd._promises);\n }\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldGeoKeys = oldFullLayout._subplots[GEO] || [];\n\n for(var i = 0; i < oldGeoKeys.length; i++) {\n var oldGeoKey = oldGeoKeys[i];\n var oldGeo = oldFullLayout[oldGeoKey]._subplot;\n\n if(!newFullLayout[oldGeoKey] && !!oldGeo) {\n oldGeo.framework.remove();\n oldGeo.clipDef.remove();\n }\n }\n}\n\nfunction updateFx(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[GEO];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotLayout = fullLayout[subplotIds[i]];\n var subplotObj = subplotLayout._subplot;\n subplotObj.updateFx(fullLayout, subplotLayout);\n }\n}\n\nmodule.exports = {\n attr: GEO,\n name: GEO,\n idRoot: GEO,\n idRegex: counter,\n attrRegex: counter,\n attributes: attributes,\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n plot: plotGeo,\n updateFx: updateFx,\n clean: clean\n};\n\n},{\"../../lib\":515,\"../../plots/get_data\":602,\"./geo\":597,\"./layout_attributes\":599,\"./layout_defaults\":600}],599:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar constants = _dereq_('./constants');\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar geoAxesAttrs = {\n range: {\n valType: 'info_array',\n items: [\n {valType: 'number'},\n {valType: 'number'}\n ],\n },\n showgrid: {\n valType: 'boolean',\n dflt: false,\n },\n tick0: {\n valType: 'number',\n dflt: 0,\n },\n dtick: {\n valType: 'number',\n },\n gridcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n },\n gridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n griddash: dash\n};\n\nvar attrs = module.exports = overrideAll({\n domain: domainAttrs({name: 'geo'}, {\n }),\n\n fitbounds: {\n valType: 'enumerated',\n values: [false, 'locations', 'geojson'],\n dflt: false,\n editType: 'plot',\n },\n\n resolution: {\n valType: 'enumerated',\n values: [110, 50],\n dflt: 110,\n coerceNumber: true,\n },\n scope: {\n valType: 'enumerated',\n values: sortObjectKeys(constants.scopeDefaults),\n dflt: 'world',\n },\n projection: {\n type: {\n valType: 'enumerated',\n values: sortObjectKeys(constants.projNames),\n },\n rotation: {\n lon: {\n valType: 'number',\n },\n lat: {\n valType: 'number',\n },\n roll: {\n valType: 'number',\n }\n },\n tilt: {\n valType: 'number',\n dflt: 0,\n },\n distance: {\n valType: 'number',\n min: 1.001,\n dflt: 2,\n },\n parallels: {\n valType: 'info_array',\n items: [\n {valType: 'number'},\n {valType: 'number'}\n ],\n },\n scale: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n },\n center: {\n lon: {\n valType: 'number',\n },\n lat: {\n valType: 'number',\n }\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n showcoastlines: {\n valType: 'boolean',\n },\n coastlinecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n coastlinewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showland: {\n valType: 'boolean',\n dflt: false,\n },\n landcolor: {\n valType: 'color',\n dflt: constants.landColor,\n },\n showocean: {\n valType: 'boolean',\n dflt: false,\n },\n oceancolor: {\n valType: 'color',\n dflt: constants.waterColor,\n },\n showlakes: {\n valType: 'boolean',\n dflt: false,\n },\n lakecolor: {\n valType: 'color',\n dflt: constants.waterColor,\n },\n showrivers: {\n valType: 'boolean',\n dflt: false,\n },\n rivercolor: {\n valType: 'color',\n dflt: constants.waterColor,\n },\n riverwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showcountries: {\n valType: 'boolean',\n },\n countrycolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n countrywidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showsubunits: {\n valType: 'boolean',\n },\n subunitcolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n subunitwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n showframe: {\n valType: 'boolean',\n },\n framecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n },\n framewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n },\n bgcolor: {\n valType: 'color',\n dflt: colorAttrs.background,\n },\n lonaxis: geoAxesAttrs,\n lataxis: geoAxesAttrs\n}, 'plot', 'from-root');\n\n// set uirevision outside of overrideAll so it can be `editType: 'none'`\nattrs.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\n},{\"../../components/color/attributes\":366,\"../../components/drawing/attributes\":388,\"../../lib/sort_object_keys\":538,\"../../plot_api/edit_types\":548,\"../domain\":593,\"./constants\":596}],600:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nvar constants = _dereq_('./constants');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nvar axesNames = constants.axesNames;\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: 'geo',\n attributes: layoutAttributes,\n handleDefaults: handleGeoDefaults,\n fullData: fullData,\n partition: 'y'\n });\n};\n\nfunction handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {\n var subplotData = getSubplotData(opts.fullData, 'geo', opts.id);\n var traceIndices = subplotData.map(function(t) { return t._expandedIndex; });\n\n var resolution = coerce('resolution');\n var scope = coerce('scope');\n var scopeParams = constants.scopeDefaults[scope];\n\n var projType = coerce('projection.type', scopeParams.projType);\n var isAlbersUsa = geoLayoutOut._isAlbersUsa = projType === 'albers usa';\n\n // no other scopes are allowed for 'albers usa' projection\n if(isAlbersUsa) scope = geoLayoutOut.scope = 'usa';\n\n var isScoped = geoLayoutOut._isScoped = (scope !== 'world');\n var isSatellite = geoLayoutOut._isSatellite = projType === 'satellite';\n var isConic = geoLayoutOut._isConic = projType.indexOf('conic') !== -1 || projType === 'albers';\n var isClipped = geoLayoutOut._isClipped = !!constants.lonaxisSpan[projType];\n\n if(geoLayoutIn.visible === false) {\n // should override template.layout.geo.show* - see issue 4482\n\n // make a copy\n var newTemplate = Lib.extendDeep({}, geoLayoutOut._template);\n\n // override show*\n newTemplate.showcoastlines = false;\n newTemplate.showcountries = false;\n newTemplate.showframe = false;\n newTemplate.showlakes = false;\n newTemplate.showland = false;\n newTemplate.showocean = false;\n newTemplate.showrivers = false;\n newTemplate.showsubunits = false;\n if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;\n if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;\n\n // set ref to copy\n geoLayoutOut._template = newTemplate;\n }\n var visible = coerce('visible');\n\n var show;\n for(var i = 0; i < axesNames.length; i++) {\n var axisName = axesNames[i];\n var dtickDflt = [30, 10][i];\n var rangeDflt;\n\n if(isScoped) {\n rangeDflt = scopeParams[axisName + 'Range'];\n } else {\n var dfltSpans = constants[axisName + 'Span'];\n var hSpan = (dfltSpans[projType] || dfltSpans['*']) / 2;\n var rot = coerce(\n 'projection.rotation.' + axisName.substr(0, 3),\n scopeParams.projRotate[i]\n );\n rangeDflt = [rot - hSpan, rot + hSpan];\n }\n\n var range = coerce(axisName + '.range', rangeDflt);\n coerce(axisName + '.tick0');\n coerce(axisName + '.dtick', dtickDflt);\n\n show = coerce(axisName + '.showgrid', !visible ? false : undefined);\n if(show) {\n coerce(axisName + '.gridcolor');\n coerce(axisName + '.gridwidth');\n coerce(axisName + '.griddash');\n }\n\n // mock axis for autorange computations\n geoLayoutOut[axisName]._ax = {\n type: 'linear',\n _id: axisName.slice(0, 3),\n _traceIndices: traceIndices,\n setScale: Lib.identity,\n c2l: Lib.identity,\n r2l: Lib.identity,\n autorange: true,\n range: range.slice(),\n _m: 1,\n _input: {}\n };\n }\n\n var lonRange = geoLayoutOut.lonaxis.range;\n var latRange = geoLayoutOut.lataxis.range;\n\n // to cross antimeridian w/o ambiguity\n var lon0 = lonRange[0];\n var lon1 = lonRange[1];\n if(lon0 > 0 && lon1 < 0) lon1 += 360;\n\n var centerLon = (lon0 + lon1) / 2;\n var projLon;\n\n if(!isAlbersUsa) {\n var dfltProjRotate = isScoped ? scopeParams.projRotate : [centerLon, 0, 0];\n\n projLon = coerce('projection.rotation.lon', dfltProjRotate[0]);\n coerce('projection.rotation.lat', dfltProjRotate[1]);\n coerce('projection.rotation.roll', dfltProjRotate[2]);\n\n show = coerce('showcoastlines', !isScoped && visible);\n if(show) {\n coerce('coastlinecolor');\n coerce('coastlinewidth');\n }\n\n show = coerce('showocean', !visible ? false : undefined);\n if(show) coerce('oceancolor');\n }\n\n var centerLonDflt;\n var centerLatDflt;\n\n if(isAlbersUsa) {\n // 'albers usa' does not have a 'center',\n // these values were found using via:\n // projection.invert([geoLayout.center.lon, geoLayoutIn.center.lat])\n centerLonDflt = -96.6;\n centerLatDflt = 38.7;\n } else {\n centerLonDflt = isScoped ? centerLon : projLon;\n centerLatDflt = (latRange[0] + latRange[1]) / 2;\n }\n\n coerce('center.lon', centerLonDflt);\n coerce('center.lat', centerLatDflt);\n\n if(isSatellite) {\n coerce('projection.tilt');\n coerce('projection.distance');\n }\n\n if(isConic) {\n var dfltProjParallels = scopeParams.projParallels || [0, 60];\n coerce('projection.parallels', dfltProjParallels);\n }\n\n coerce('projection.scale');\n\n show = coerce('showland', !visible ? false : undefined);\n if(show) coerce('landcolor');\n\n show = coerce('showlakes', !visible ? false : undefined);\n if(show) coerce('lakecolor');\n\n show = coerce('showrivers', !visible ? false : undefined);\n if(show) {\n coerce('rivercolor');\n coerce('riverwidth');\n }\n\n show = coerce('showcountries', isScoped && scope !== 'usa' && visible);\n if(show) {\n coerce('countrycolor');\n coerce('countrywidth');\n }\n\n if(scope === 'usa' || (scope === 'north america' && resolution === 50)) {\n // Only works for:\n // USA states at 110m\n // USA states + Canada provinces at 50m\n coerce('showsubunits', visible);\n coerce('subunitcolor');\n coerce('subunitwidth');\n }\n\n if(!isScoped) {\n // Does not work in non-world scopes\n show = coerce('showframe', visible);\n if(show) {\n coerce('framecolor');\n coerce('framewidth');\n }\n }\n\n coerce('bgcolor');\n\n var fitBounds = coerce('fitbounds');\n\n // clear attributes that will get auto-filled later\n if(fitBounds) {\n delete geoLayoutOut.projection.scale;\n\n if(isScoped) {\n delete geoLayoutOut.center.lon;\n delete geoLayoutOut.center.lat;\n } else if(isClipped) {\n delete geoLayoutOut.center.lon;\n delete geoLayoutOut.center.lat;\n delete geoLayoutOut.projection.rotation.lon;\n delete geoLayoutOut.projection.rotation.lat;\n delete geoLayoutOut.lonaxis.range;\n delete geoLayoutOut.lataxis.range;\n } else {\n delete geoLayoutOut.center.lon;\n delete geoLayoutOut.center.lat;\n delete geoLayoutOut.projection.rotation.lon;\n }\n }\n}\n\n},{\"../../lib\":515,\"../get_data\":602,\"../subplot_defaults\":641,\"./constants\":596,\"./layout_attributes\":599}],601:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar radians = Math.PI / 180;\nvar degrees = 180 / Math.PI;\nvar zoomstartStyle = {cursor: 'pointer'};\nvar zoomendStyle = {cursor: 'auto'};\n\nfunction createGeoZoom(geo, geoLayout) {\n var projection = geo.projection;\n var zoomConstructor;\n\n if(geoLayout._isScoped) {\n zoomConstructor = zoomScoped;\n } else if(geoLayout._isClipped) {\n zoomConstructor = zoomClipped;\n } else {\n zoomConstructor = zoomNonClipped;\n }\n\n // TODO add a conic-specific zoom\n\n return zoomConstructor(geo, projection);\n}\n\nmodule.exports = createGeoZoom;\n\n// common to all zoom types\nfunction initZoom(geo, projection) {\n return d3.behavior.zoom()\n .translate(projection.translate())\n .scale(projection.scale());\n}\n\n// sync zoom updates with user & full layout\nfunction sync(geo, projection, cb) {\n var id = geo.id;\n var gd = geo.graphDiv;\n var layout = gd.layout;\n var userOpts = layout[id];\n var fullLayout = gd._fullLayout;\n var fullOpts = fullLayout[id];\n\n var preGUI = {};\n var eventData = {};\n\n function set(propStr, val) {\n preGUI[id + '.' + propStr] = Lib.nestedProperty(userOpts, propStr).get();\n Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, preGUI);\n\n var fullNp = Lib.nestedProperty(fullOpts, propStr);\n if(fullNp.get() !== val) {\n fullNp.set(val);\n Lib.nestedProperty(userOpts, propStr).set(val);\n eventData[id + '.' + propStr] = val;\n }\n }\n\n cb(set);\n set('projection.scale', projection.scale() / geo.fitScale);\n set('fitbounds', false);\n gd.emit('plotly_relayout', eventData);\n}\n\n// zoom for scoped projections\nfunction zoomScoped(geo, projection) {\n var zoom = initZoom(geo, projection);\n\n function handleZoomstart() {\n d3.select(this).style(zoomstartStyle);\n }\n\n function handleZoom() {\n projection\n .scale(d3.event.scale)\n .translate(d3.event.translate);\n geo.render(true);\n\n var center = projection.invert(geo.midPt);\n geo.graphDiv.emit('plotly_relayouting', {\n 'geo.projection.scale': projection.scale() / geo.fitScale,\n 'geo.center.lon': center[0],\n 'geo.center.lat': center[1]\n });\n }\n\n function syncCb(set) {\n var center = projection.invert(geo.midPt);\n\n set('center.lon', center[0]);\n set('center.lat', center[1]);\n }\n\n function handleZoomend() {\n d3.select(this).style(zoomendStyle);\n sync(geo, projection, syncCb);\n }\n\n zoom\n .on('zoomstart', handleZoomstart)\n .on('zoom', handleZoom)\n .on('zoomend', handleZoomend);\n\n return zoom;\n}\n\n// zoom for non-clipped projections\nfunction zoomNonClipped(geo, projection) {\n var zoom = initZoom(geo, projection);\n\n var INSIDETOLORANCEPXS = 2;\n\n var mouse0, rotate0, translate0, lastRotate, zoomPoint,\n mouse1, rotate1, point1, didZoom;\n\n function position(x) { return projection.invert(x); }\n\n function outside(x) {\n var pos = position(x);\n if(!pos) return true;\n\n var pt = projection(pos);\n return (\n Math.abs(pt[0] - x[0]) > INSIDETOLORANCEPXS ||\n Math.abs(pt[1] - x[1]) > INSIDETOLORANCEPXS\n );\n }\n\n function handleZoomstart() {\n d3.select(this).style(zoomstartStyle);\n\n mouse0 = d3.mouse(this);\n rotate0 = projection.rotate();\n translate0 = projection.translate();\n lastRotate = rotate0;\n zoomPoint = position(mouse0);\n }\n\n function handleZoom() {\n mouse1 = d3.mouse(this);\n\n if(outside(mouse0)) {\n zoom.scale(projection.scale());\n zoom.translate(projection.translate());\n return;\n }\n\n projection.scale(d3.event.scale);\n projection.translate([translate0[0], d3.event.translate[1]]);\n\n if(!zoomPoint) {\n mouse0 = mouse1;\n zoomPoint = position(mouse0);\n } else if(position(mouse1)) {\n point1 = position(mouse1);\n rotate1 = [lastRotate[0] + (point1[0] - zoomPoint[0]), rotate0[1], rotate0[2]];\n projection.rotate(rotate1);\n lastRotate = rotate1;\n }\n\n didZoom = true;\n geo.render(true);\n\n var rotate = projection.rotate();\n var center = projection.invert(geo.midPt);\n geo.graphDiv.emit('plotly_relayouting', {\n 'geo.projection.scale': projection.scale() / geo.fitScale,\n 'geo.center.lon': center[0],\n 'geo.center.lat': center[1],\n 'geo.projection.rotation.lon': -rotate[0]\n });\n }\n\n function handleZoomend() {\n d3.select(this).style(zoomendStyle);\n if(didZoom) sync(geo, projection, syncCb);\n }\n\n function syncCb(set) {\n var rotate = projection.rotate();\n var center = projection.invert(geo.midPt);\n\n set('projection.rotation.lon', -rotate[0]);\n set('center.lon', center[0]);\n set('center.lat', center[1]);\n }\n\n zoom\n .on('zoomstart', handleZoomstart)\n .on('zoom', handleZoom)\n .on('zoomend', handleZoomend);\n\n return zoom;\n}\n\n// zoom for clipped projections\n// inspired by https://www.jasondavies.com/maps/d3.geo.zoom.js\nfunction zoomClipped(geo, projection) {\n var view = {r: projection.rotate(), k: projection.scale()};\n var zoom = initZoom(geo, projection);\n var event = d3eventDispatch(zoom, 'zoomstart', 'zoom', 'zoomend');\n var zooming = 0;\n var zoomOn = zoom.on;\n\n var zoomPoint;\n\n zoom.on('zoomstart', function() {\n d3.select(this).style(zoomstartStyle);\n\n var mouse0 = d3.mouse(this);\n var rotate0 = projection.rotate();\n var lastRotate = rotate0;\n var translate0 = projection.translate();\n var q = quaternionFromEuler(rotate0);\n\n zoomPoint = position(projection, mouse0);\n\n zoomOn.call(zoom, 'zoom', function() {\n var mouse1 = d3.mouse(this);\n\n projection.scale(view.k = d3.event.scale);\n\n if(!zoomPoint) {\n // if no zoomPoint, the mouse wasn't over the actual geography yet\n // maybe this point is the start... we'll find out next time!\n mouse0 = mouse1;\n zoomPoint = position(projection, mouse0);\n } else if(position(projection, mouse1)) {\n // check if the point is on the map\n // if not, don't do anything new but scale\n // if it is, then we can assume between will exist below\n // so we don't need the 'bank' function, whatever that is.\n\n // go back to original projection temporarily\n // except for scale... that's kind of independent?\n projection\n .rotate(rotate0)\n .translate(translate0);\n\n // calculate the new params\n var point1 = position(projection, mouse1);\n var between = rotateBetween(zoomPoint, point1);\n var newEuler = eulerFromQuaternion(multiply(q, between));\n var rotateAngles = view.r = unRoll(newEuler, zoomPoint, lastRotate);\n\n if(!isFinite(rotateAngles[0]) || !isFinite(rotateAngles[1]) ||\n !isFinite(rotateAngles[2])) {\n rotateAngles = lastRotate;\n }\n\n // update the projection\n projection.rotate(rotateAngles);\n lastRotate = rotateAngles;\n }\n\n zoomed(event.of(this, arguments));\n });\n\n zoomstarted(event.of(this, arguments));\n })\n .on('zoomend', function() {\n d3.select(this).style(zoomendStyle);\n zoomOn.call(zoom, 'zoom', null);\n zoomended(event.of(this, arguments));\n sync(geo, projection, syncCb);\n })\n .on('zoom.redraw', function() {\n geo.render(true);\n\n var _rotate = projection.rotate();\n geo.graphDiv.emit('plotly_relayouting', {\n 'geo.projection.scale': projection.scale() / geo.fitScale,\n 'geo.projection.rotation.lon': -_rotate[0],\n 'geo.projection.rotation.lat': -_rotate[1]\n });\n });\n\n function zoomstarted(dispatch) {\n if(!zooming++) dispatch({type: 'zoomstart'});\n }\n\n function zoomed(dispatch) {\n dispatch({type: 'zoom'});\n }\n\n function zoomended(dispatch) {\n if(!--zooming) dispatch({type: 'zoomend'});\n }\n\n function syncCb(set) {\n var _rotate = projection.rotate();\n set('projection.rotation.lon', -_rotate[0]);\n set('projection.rotation.lat', -_rotate[1]);\n }\n\n return d3.rebind(zoom, event, 'on');\n}\n\n// -- helper functions for zoomClipped\n\nfunction position(projection, point) {\n var spherical = projection.invert(point);\n return spherical && isFinite(spherical[0]) && isFinite(spherical[1]) && cartesian(spherical);\n}\n\nfunction quaternionFromEuler(euler) {\n var lambda = 0.5 * euler[0] * radians;\n var phi = 0.5 * euler[1] * radians;\n var gamma = 0.5 * euler[2] * radians;\n var sinLambda = Math.sin(lambda);\n var cosLambda = Math.cos(lambda);\n var sinPhi = Math.sin(phi);\n var cosPhi = Math.cos(phi);\n var sinGamma = Math.sin(gamma);\n var cosGamma = Math.cos(gamma);\n return [\n cosLambda * cosPhi * cosGamma + sinLambda * sinPhi * sinGamma,\n sinLambda * cosPhi * cosGamma - cosLambda * sinPhi * sinGamma,\n cosLambda * sinPhi * cosGamma + sinLambda * cosPhi * sinGamma,\n cosLambda * cosPhi * sinGamma - sinLambda * sinPhi * cosGamma\n ];\n}\n\nfunction multiply(a, b) {\n var a0 = a[0];\n var a1 = a[1];\n var a2 = a[2];\n var a3 = a[3];\n var b0 = b[0];\n var b1 = b[1];\n var b2 = b[2];\n var b3 = b[3];\n return [\n a0 * b0 - a1 * b1 - a2 * b2 - a3 * b3,\n a0 * b1 + a1 * b0 + a2 * b3 - a3 * b2,\n a0 * b2 - a1 * b3 + a2 * b0 + a3 * b1,\n a0 * b3 + a1 * b2 - a2 * b1 + a3 * b0\n ];\n}\n\nfunction rotateBetween(a, b) {\n if(!a || !b) return;\n var axis = cross(a, b);\n var norm = Math.sqrt(dot(axis, axis));\n var halfgamma = 0.5 * Math.acos(Math.max(-1, Math.min(1, dot(a, b))));\n var k = Math.sin(halfgamma) / norm;\n return norm && [Math.cos(halfgamma), axis[2] * k, -axis[1] * k, axis[0] * k];\n}\n\n// input:\n// rotateAngles: a calculated set of Euler angles\n// pt: a point (cartesian in 3-space) to keep fixed\n// roll0: an initial roll, to be preserved\n// output:\n// a set of Euler angles that preserve the projection of pt\n// but set roll (output[2]) equal to roll0\n// note that this doesn't depend on the particular projection,\n// just on the rotation angles\nfunction unRoll(rotateAngles, pt, lastRotate) {\n // calculate the fixed point transformed by these Euler angles\n // but with the desired roll undone\n var ptRotated = rotateCartesian(pt, 2, rotateAngles[0]);\n ptRotated = rotateCartesian(ptRotated, 1, rotateAngles[1]);\n ptRotated = rotateCartesian(ptRotated, 0, rotateAngles[2] - lastRotate[2]);\n\n var x = pt[0];\n var y = pt[1];\n var z = pt[2];\n var f = ptRotated[0];\n var g = ptRotated[1];\n var h = ptRotated[2];\n\n // the following essentially solves:\n // ptRotated = rotateCartesian(rotateCartesian(pt, 2, newYaw), 1, newPitch)\n // for newYaw and newPitch, as best it can\n var theta = Math.atan2(y, x) * degrees;\n var a = Math.sqrt(x * x + y * y);\n var b;\n var newYaw1;\n\n if(Math.abs(g) > a) {\n newYaw1 = (g > 0 ? 90 : -90) - theta;\n b = 0;\n } else {\n newYaw1 = Math.asin(g / a) * degrees - theta;\n b = Math.sqrt(a * a - g * g);\n }\n\n var newYaw2 = 180 - newYaw1 - 2 * theta;\n var newPitch1 = (Math.atan2(h, f) - Math.atan2(z, b)) * degrees;\n var newPitch2 = (Math.atan2(h, f) - Math.atan2(z, -b)) * degrees;\n\n // which is closest to lastRotate[0,1]: newYaw/Pitch or newYaw2/Pitch2?\n var dist1 = angleDistance(lastRotate[0], lastRotate[1], newYaw1, newPitch1);\n var dist2 = angleDistance(lastRotate[0], lastRotate[1], newYaw2, newPitch2);\n\n if(dist1 <= dist2) return [newYaw1, newPitch1, lastRotate[2]];\n else return [newYaw2, newPitch2, lastRotate[2]];\n}\n\nfunction angleDistance(yaw0, pitch0, yaw1, pitch1) {\n var dYaw = angleMod(yaw1 - yaw0);\n var dPitch = angleMod(pitch1 - pitch0);\n return Math.sqrt(dYaw * dYaw + dPitch * dPitch);\n}\n\n// reduce an angle in degrees to [-180,180]\nfunction angleMod(angle) {\n return (angle % 360 + 540) % 360 - 180;\n}\n\n// rotate a cartesian vector\n// axis is 0 (x), 1 (y), or 2 (z)\n// angle is in degrees\nfunction rotateCartesian(vector, axis, angle) {\n var angleRads = angle * radians;\n var vectorOut = vector.slice();\n var ax1 = (axis === 0) ? 1 : 0;\n var ax2 = (axis === 2) ? 1 : 2;\n var cosa = Math.cos(angleRads);\n var sina = Math.sin(angleRads);\n\n vectorOut[ax1] = vector[ax1] * cosa - vector[ax2] * sina;\n vectorOut[ax2] = vector[ax2] * cosa + vector[ax1] * sina;\n\n return vectorOut;\n}\nfunction eulerFromQuaternion(q) {\n return [\n Math.atan2(2 * (q[0] * q[1] + q[2] * q[3]), 1 - 2 * (q[1] * q[1] + q[2] * q[2])) * degrees,\n Math.asin(Math.max(-1, Math.min(1, 2 * (q[0] * q[2] - q[3] * q[1])))) * degrees,\n Math.atan2(2 * (q[0] * q[3] + q[1] * q[2]), 1 - 2 * (q[2] * q[2] + q[3] * q[3])) * degrees\n ];\n}\n\nfunction cartesian(spherical) {\n var lambda = spherical[0] * radians;\n var phi = spherical[1] * radians;\n var cosPhi = Math.cos(phi);\n return [\n cosPhi * Math.cos(lambda),\n cosPhi * Math.sin(lambda),\n Math.sin(phi)\n ];\n}\n\nfunction dot(a, b) {\n var s = 0;\n for(var i = 0, n = a.length; i < n; ++i) s += a[i] * b[i];\n return s;\n}\n\nfunction cross(a, b) {\n return [\n a[1] * b[2] - a[2] * b[1],\n a[2] * b[0] - a[0] * b[2],\n a[0] * b[1] - a[1] * b[0]\n ];\n}\n\n// Like d3.dispatch, but for custom events abstracting native UI events. These\n// events have a target component (such as a brush), a target element (such as\n// the svg:g element containing the brush) and the standard arguments `d` (the\n// target element's data) and `i` (the selection index of the target element).\nfunction d3eventDispatch(target) {\n var i = 0;\n var n = arguments.length;\n var argumentz = [];\n\n while(++i < n) argumentz.push(arguments[i]);\n\n var dispatch = d3.dispatch.apply(null, argumentz);\n\n // Creates a dispatch context for the specified `thiz` (typically, the target\n // DOM element that received the source event) and `argumentz` (typically, the\n // data `d` and index `i` of the target element). The returned function can be\n // used to dispatch an event to any registered listeners; the function takes a\n // single argument as input, being the event to dispatch. The event must have\n // a \"type\" attribute which corresponds to a type registered in the\n // constructor. This context will automatically populate the \"sourceEvent\" and\n // \"target\" attributes of the event, as well as setting the `d3.event` global\n // for the duration of the notification.\n dispatch.of = function(thiz, argumentz) {\n return function(e1) {\n var e0;\n try {\n e0 = e1.sourceEvent = d3.event;\n e1.target = target;\n d3.event = e1;\n dispatch[e1.type].apply(thiz, argumentz);\n } finally {\n d3.event = e0;\n }\n };\n };\n\n return dispatch;\n}\n\n},{\"../../lib\":515,\"../../registry\":647,\"@plotly/d3\":58}],602:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar SUBPLOT_PATTERN = _dereq_('./cartesian/constants').SUBPLOT_PATTERN;\n\n/**\n * Get calcdata trace(s) associated with a given subplot\n *\n * @param {array} calcData: as in gd.calcdata\n * @param {string} type: subplot type\n * @param {string} subplotId: subplot id to look for\n *\n * @return {array} array of calcdata traces\n */\nexports.getSubplotCalcData = function(calcData, type, subplotId) {\n var basePlotModule = Registry.subplotsRegistry[type];\n if(!basePlotModule) return [];\n\n var attr = basePlotModule.attr;\n var subplotCalcData = [];\n\n for(var i = 0; i < calcData.length; i++) {\n var calcTrace = calcData[i];\n var trace = calcTrace[0].trace;\n\n if(trace[attr] === subplotId) subplotCalcData.push(calcTrace);\n }\n\n return subplotCalcData;\n};\n/**\n * Get calcdata trace(s) that can be plotted with a given module\n * NOTE: this isn't necessarily just exactly matching trace type,\n * if multiple trace types use the same plotting routine, they will be\n * collected here.\n * In order to not plot the same thing multiple times, we return two arrays,\n * the calcdata we *will* plot with this module, and the ones we *won't*\n *\n * @param {array} calcdata: as in gd.calcdata\n * @param {object|string|fn} arg1:\n * the plotting module, or its name, or its plot method\n *\n * @return {array[array]} [foundCalcdata, remainingCalcdata]\n */\nexports.getModuleCalcData = function(calcdata, arg1) {\n var moduleCalcData = [];\n var remainingCalcData = [];\n\n var plotMethod;\n if(typeof arg1 === 'string') {\n plotMethod = Registry.getModule(arg1).plot;\n } else if(typeof arg1 === 'function') {\n plotMethod = arg1;\n } else {\n plotMethod = arg1.plot;\n }\n if(!plotMethod) {\n return [moduleCalcData, calcdata];\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var trace = cd[0].trace;\n // N.B.\n // - 'legendonly' traces do not make it past here\n // - skip over 'visible' traces that got trimmed completely during calc transforms\n if(trace.visible !== true || trace._length === 0) continue;\n\n // group calcdata trace not by 'module' (as the name of this function\n // would suggest), but by 'module plot method' so that if some traces\n // share the same module plot method (e.g. bar and histogram), we\n // only call it one!\n if(trace._module.plot === plotMethod) {\n moduleCalcData.push(cd);\n } else {\n remainingCalcData.push(cd);\n }\n }\n\n return [moduleCalcData, remainingCalcData];\n};\n\n/**\n * Get the data trace(s) associated with a given subplot.\n *\n * @param {array} data plotly full data array.\n * @param {string} type subplot type to look for.\n * @param {string} subplotId subplot id to look for.\n *\n * @return {array} list of trace objects.\n *\n */\nexports.getSubplotData = function getSubplotData(data, type, subplotId) {\n if(!Registry.subplotsRegistry[type]) return [];\n\n var attr = Registry.subplotsRegistry[type].attr;\n var subplotData = [];\n var trace, subplotX, subplotY;\n\n if(type === 'gl2d') {\n var spmatch = subplotId.match(SUBPLOT_PATTERN);\n subplotX = 'x' + spmatch[1];\n subplotY = 'y' + spmatch[2];\n }\n\n for(var i = 0; i < data.length; i++) {\n trace = data[i];\n\n if(type === 'gl2d' && Registry.traceIs(trace, 'gl2d')) {\n if(trace[attr[0]] === subplotX && trace[attr[1]] === subplotY) {\n subplotData.push(trace);\n }\n } else {\n if(trace[attr] === subplotId) subplotData.push(trace);\n }\n }\n\n return subplotData;\n};\n\n},{\"../registry\":647,\"./cartesian/constants\":573}],603:[function(_dereq_,module,exports){\n'use strict';\n\nvar mouseChange = _dereq_('mouse-change');\nvar mouseWheel = _dereq_('mouse-wheel');\nvar mouseOffset = _dereq_('mouse-event-offset');\nvar cartesianConstants = _dereq_('../cartesian/constants');\nvar hasPassive = _dereq_('has-passive-events');\n\nmodule.exports = createCamera;\n\nfunction Camera2D(element, plot) {\n this.element = element;\n this.plot = plot;\n this.mouseListener = null;\n this.wheelListener = null;\n this.lastInputTime = Date.now();\n this.lastPos = [0, 0];\n this.boxEnabled = false;\n this.boxInited = false;\n this.boxStart = [0, 0];\n this.boxEnd = [0, 0];\n this.dragStart = [0, 0];\n}\n\n\nfunction createCamera(scene) {\n var element = scene.mouseContainer;\n var plot = scene.glplot;\n var result = new Camera2D(element, plot);\n\n function unSetAutoRange() {\n scene.xaxis.autorange = false;\n scene.yaxis.autorange = false;\n }\n\n function getSubplotConstraint() {\n // note: this assumes we only have one x and one y axis on this subplot\n // when this constraint is lifted this block won't make sense\n var constraints = scene.graphDiv._fullLayout._axisConstraintGroups;\n var xaId = scene.xaxis._id;\n var yaId = scene.yaxis._id;\n for(var i = 0; i < constraints.length; i++) {\n if(constraints[i][xaId] !== -1) {\n if(constraints[i][yaId] !== -1) return true;\n break;\n }\n }\n return false;\n }\n\n result.mouseListener = mouseChange(element, handleInteraction);\n\n // enable simple touch interactions\n element.addEventListener('touchstart', function(ev) {\n var xy = mouseOffset(ev.changedTouches[0], element);\n handleInteraction(0, xy[0], xy[1]);\n handleInteraction(1, xy[0], xy[1]);\n\n ev.preventDefault();\n }, hasPassive ? {passive: false} : false);\n element.addEventListener('touchmove', function(ev) {\n ev.preventDefault();\n var xy = mouseOffset(ev.changedTouches[0], element);\n handleInteraction(1, xy[0], xy[1]);\n\n ev.preventDefault();\n }, hasPassive ? {passive: false} : false);\n element.addEventListener('touchend', function(ev) {\n handleInteraction(0, result.lastPos[0], result.lastPos[1]);\n\n ev.preventDefault();\n }, hasPassive ? {passive: false} : false);\n\n function handleInteraction(buttons, x, y) {\n var dataBox = scene.calcDataBox();\n var viewBox = plot.viewBox;\n\n var lastX = result.lastPos[0];\n var lastY = result.lastPos[1];\n\n var MINDRAG = cartesianConstants.MINDRAG * plot.pixelRatio;\n var MINZOOM = cartesianConstants.MINZOOM * plot.pixelRatio;\n\n var dx, dy;\n\n x *= plot.pixelRatio;\n y *= plot.pixelRatio;\n\n // mouseChange gives y about top; convert to about bottom\n y = (viewBox[3] - viewBox[1]) - y;\n\n function updateRange(i0, start, end) {\n var range0 = Math.min(start, end);\n var range1 = Math.max(start, end);\n\n if(range0 !== range1) {\n dataBox[i0] = range0;\n dataBox[i0 + 2] = range1;\n result.dataBox = dataBox;\n scene.setRanges(dataBox);\n } else {\n scene.selectBox.selectBox = [0, 0, 1, 1];\n scene.glplot.setDirty();\n }\n }\n\n switch(scene.fullLayout.dragmode) {\n case 'zoom':\n if(buttons) {\n var dataX = x /\n (viewBox[2] - viewBox[0]) * (dataBox[2] - dataBox[0]) +\n dataBox[0];\n var dataY = y /\n (viewBox[3] - viewBox[1]) * (dataBox[3] - dataBox[1]) +\n dataBox[1];\n\n if(!result.boxInited) {\n result.boxStart[0] = dataX;\n result.boxStart[1] = dataY;\n result.dragStart[0] = x;\n result.dragStart[1] = y;\n }\n\n result.boxEnd[0] = dataX;\n result.boxEnd[1] = dataY;\n\n // we need to mark the box as initialized right away\n // so that we can tell the start and end points apart\n result.boxInited = true;\n\n // but don't actually enable the box until the cursor moves\n if(!result.boxEnabled && (\n result.boxStart[0] !== result.boxEnd[0] ||\n result.boxStart[1] !== result.boxEnd[1])\n ) {\n result.boxEnabled = true;\n }\n\n // constrain aspect ratio if the axes require it\n var smallDx = Math.abs(result.dragStart[0] - x) < MINZOOM;\n var smallDy = Math.abs(result.dragStart[1] - y) < MINZOOM;\n if(getSubplotConstraint() && !(smallDx && smallDy)) {\n dx = result.boxEnd[0] - result.boxStart[0];\n dy = result.boxEnd[1] - result.boxStart[1];\n var dydx = (dataBox[3] - dataBox[1]) / (dataBox[2] - dataBox[0]);\n\n if(Math.abs(dx * dydx) > Math.abs(dy)) {\n result.boxEnd[1] = result.boxStart[1] +\n Math.abs(dx) * dydx * (dy >= 0 ? 1 : -1);\n\n // gl-select-box clips to the plot area bounds,\n // which breaks the axis constraint, so don't allow\n // this box to go out of bounds\n if(result.boxEnd[1] < dataBox[1]) {\n result.boxEnd[1] = dataBox[1];\n result.boxEnd[0] = result.boxStart[0] +\n (dataBox[1] - result.boxStart[1]) / Math.abs(dydx);\n } else if(result.boxEnd[1] > dataBox[3]) {\n result.boxEnd[1] = dataBox[3];\n result.boxEnd[0] = result.boxStart[0] +\n (dataBox[3] - result.boxStart[1]) / Math.abs(dydx);\n }\n } else {\n result.boxEnd[0] = result.boxStart[0] +\n Math.abs(dy) / dydx * (dx >= 0 ? 1 : -1);\n\n if(result.boxEnd[0] < dataBox[0]) {\n result.boxEnd[0] = dataBox[0];\n result.boxEnd[1] = result.boxStart[1] +\n (dataBox[0] - result.boxStart[0]) * Math.abs(dydx);\n } else if(result.boxEnd[0] > dataBox[2]) {\n result.boxEnd[0] = dataBox[2];\n result.boxEnd[1] = result.boxStart[1] +\n (dataBox[2] - result.boxStart[0]) * Math.abs(dydx);\n }\n }\n } else {\n // otherwise clamp small changes to the origin so we get 1D zoom\n\n if(smallDx) result.boxEnd[0] = result.boxStart[0];\n if(smallDy) result.boxEnd[1] = result.boxStart[1];\n }\n } else if(result.boxEnabled) {\n dx = result.boxStart[0] !== result.boxEnd[0];\n dy = result.boxStart[1] !== result.boxEnd[1];\n if(dx || dy) {\n if(dx) {\n updateRange(0, result.boxStart[0], result.boxEnd[0]);\n scene.xaxis.autorange = false;\n }\n if(dy) {\n updateRange(1, result.boxStart[1], result.boxEnd[1]);\n scene.yaxis.autorange = false;\n }\n scene.relayoutCallback();\n } else {\n scene.glplot.setDirty();\n }\n result.boxEnabled = false;\n result.boxInited = false;\n } else if(result.boxInited) {\n // if box was inited but button released then - reset the box\n\n result.boxInited = false;\n }\n break;\n\n case 'pan':\n result.boxEnabled = false;\n result.boxInited = false;\n\n if(buttons) {\n if(!result.panning) {\n result.dragStart[0] = x;\n result.dragStart[1] = y;\n }\n\n if(Math.abs(result.dragStart[0] - x) < MINDRAG) x = result.dragStart[0];\n if(Math.abs(result.dragStart[1] - y) < MINDRAG) y = result.dragStart[1];\n\n dx = (lastX - x) * (dataBox[2] - dataBox[0]) /\n (plot.viewBox[2] - plot.viewBox[0]);\n dy = (lastY - y) * (dataBox[3] - dataBox[1]) /\n (plot.viewBox[3] - plot.viewBox[1]);\n\n dataBox[0] += dx;\n dataBox[2] += dx;\n dataBox[1] += dy;\n dataBox[3] += dy;\n\n scene.setRanges(dataBox);\n\n result.panning = true;\n result.lastInputTime = Date.now();\n unSetAutoRange();\n scene.cameraChanged();\n scene.handleAnnotations();\n } else if(result.panning) {\n result.panning = false;\n scene.relayoutCallback();\n }\n break;\n }\n\n result.lastPos[0] = x;\n result.lastPos[1] = y;\n }\n\n result.wheelListener = mouseWheel(element, function(dx, dy) {\n if(!scene.scrollZoom) return false;\n\n var dataBox = scene.calcDataBox();\n var viewBox = plot.viewBox;\n\n var lastX = result.lastPos[0];\n var lastY = result.lastPos[1];\n\n var scale = Math.exp(5.0 * dy / (viewBox[3] - viewBox[1]));\n\n var cx = lastX /\n (viewBox[2] - viewBox[0]) * (dataBox[2] - dataBox[0]) +\n dataBox[0];\n var cy = lastY /\n (viewBox[3] - viewBox[1]) * (dataBox[3] - dataBox[1]) +\n dataBox[1];\n\n dataBox[0] = (dataBox[0] - cx) * scale + cx;\n dataBox[2] = (dataBox[2] - cx) * scale + cx;\n dataBox[1] = (dataBox[1] - cy) * scale + cy;\n dataBox[3] = (dataBox[3] - cy) * scale + cy;\n\n scene.setRanges(dataBox);\n\n result.lastInputTime = Date.now();\n unSetAutoRange();\n scene.cameraChanged();\n scene.handleAnnotations();\n scene.relayoutCallback();\n\n return true;\n }, true);\n\n return result;\n}\n\n},{\"../cartesian/constants\":573,\"has-passive-events\":229,\"mouse-change\":241,\"mouse-event-offset\":242,\"mouse-wheel\":244}],604:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../cartesian/axes');\n\nvar str2RGBArray = _dereq_('../../lib/str2rgbarray');\n\nfunction Axes2DOptions(scene) {\n this.scene = scene;\n this.gl = scene.gl;\n this.pixelRatio = scene.pixelRatio;\n\n this.screenBox = [0, 0, 1, 1];\n this.viewBox = [0, 0, 1, 1];\n this.dataBox = [-1, -1, 1, 1];\n\n this.borderLineEnable = [false, false, false, false];\n this.borderLineWidth = [1, 1, 1, 1];\n this.borderLineColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.ticks = [[], []];\n this.tickEnable = [true, true, false, false];\n this.tickPad = [15, 15, 15, 15];\n this.tickAngle = [0, 0, 0, 0];\n this.tickColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n this.tickMarkLength = [0, 0, 0, 0];\n this.tickMarkWidth = [0, 0, 0, 0];\n this.tickMarkColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.labels = ['x', 'y'];\n this.labelEnable = [true, true, false, false];\n this.labelAngle = [0, Math.PI / 2, 0, 3.0 * Math.PI / 2];\n this.labelPad = [15, 15, 15, 15];\n this.labelSize = [12, 12];\n this.labelFont = ['sans-serif', 'sans-serif'];\n this.labelColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.title = '';\n this.titleEnable = true;\n this.titleCenter = [0, 0, 0, 0];\n this.titleAngle = 0;\n this.titleColor = [0, 0, 0, 1];\n this.titleFont = 'sans-serif';\n this.titleSize = 18;\n\n this.gridLineEnable = [true, true];\n this.gridLineColor = [\n [0, 0, 0, 0.5],\n [0, 0, 0, 0.5]\n ];\n this.gridLineWidth = [1, 1];\n\n this.zeroLineEnable = [true, true];\n this.zeroLineWidth = [1, 1];\n this.zeroLineColor = [\n [0, 0, 0, 1],\n [0, 0, 0, 1]\n ];\n\n this.borderColor = [0, 0, 0, 0];\n this.backgroundColor = [0, 0, 0, 0];\n\n this.static = this.scene.staticPlot;\n}\n\nvar proto = Axes2DOptions.prototype;\n\nvar AXES = ['xaxis', 'yaxis'];\n\nproto.merge = function(options) {\n // titles are rendered in SVG\n this.titleEnable = false;\n this.backgroundColor = str2RGBArray(options.plot_bgcolor);\n\n var axisName, ax, axTitle, axMirror;\n var hasAxisInDfltPos, hasAxisInAltrPos, hasSharedAxis, mirrorLines, mirrorTicks;\n var i, j;\n\n for(i = 0; i < 2; ++i) {\n axisName = AXES[i];\n var axisLetter = axisName.charAt(0);\n\n // get options relevant to this subplot,\n // '_name' is e.g. xaxis, xaxis2, yaxis, yaxis4 ...\n ax = options[this.scene[axisName]._name];\n\n axTitle = ax.title.text === this.scene.fullLayout._dfltTitle[axisLetter] ? '' : ax.title.text;\n\n for(j = 0; j <= 2; j += 2) {\n this.labelEnable[i + j] = false;\n this.labels[i + j] = axTitle;\n this.labelColor[i + j] = str2RGBArray(ax.title.font.color);\n this.labelFont[i + j] = ax.title.font.family;\n this.labelSize[i + j] = ax.title.font.size;\n this.labelPad[i + j] = this.getLabelPad(axisName, ax);\n\n this.tickEnable[i + j] = false;\n this.tickColor[i + j] = str2RGBArray((ax.tickfont || {}).color);\n this.tickAngle[i + j] = (ax.tickangle === 'auto') ?\n 0 :\n Math.PI * -ax.tickangle / 180;\n this.tickPad[i + j] = this.getTickPad(ax);\n\n this.tickMarkLength[i + j] = 0;\n this.tickMarkWidth[i + j] = ax.tickwidth || 0;\n this.tickMarkColor[i + j] = str2RGBArray(ax.tickcolor);\n\n this.borderLineEnable[i + j] = false;\n this.borderLineColor[i + j] = str2RGBArray(ax.linecolor);\n this.borderLineWidth[i + j] = ax.linewidth || 0;\n }\n\n hasSharedAxis = this.hasSharedAxis(ax);\n hasAxisInDfltPos = this.hasAxisInDfltPos(axisName, ax) && !hasSharedAxis;\n hasAxisInAltrPos = this.hasAxisInAltrPos(axisName, ax) && !hasSharedAxis;\n\n axMirror = ax.mirror || false;\n mirrorLines = hasSharedAxis ?\n (String(axMirror).indexOf('all') !== -1) : // 'all' or 'allticks'\n !!axMirror; // all but false\n mirrorTicks = hasSharedAxis ?\n (axMirror === 'allticks') :\n (String(axMirror).indexOf('ticks') !== -1); // 'ticks' or 'allticks'\n\n // Axis titles and tick labels can only appear of one side of the scene\n // and are never show on subplots that share existing axes.\n\n if(hasAxisInDfltPos) this.labelEnable[i] = true;\n else if(hasAxisInAltrPos) this.labelEnable[i + 2] = true;\n\n if(hasAxisInDfltPos) this.tickEnable[i] = ax.showticklabels;\n else if(hasAxisInAltrPos) this.tickEnable[i + 2] = ax.showticklabels;\n\n // Grid lines and ticks can appear on both sides of the scene\n // and can appear on subplot that share existing axes via `ax.mirror`.\n\n if(hasAxisInDfltPos || mirrorLines) this.borderLineEnable[i] = ax.showline;\n if(hasAxisInAltrPos || mirrorLines) this.borderLineEnable[i + 2] = ax.showline;\n\n if(hasAxisInDfltPos || mirrorTicks) this.tickMarkLength[i] = this.getTickMarkLength(ax);\n if(hasAxisInAltrPos || mirrorTicks) this.tickMarkLength[i + 2] = this.getTickMarkLength(ax);\n\n this.gridLineEnable[i] = ax.showgrid;\n this.gridLineColor[i] = str2RGBArray(ax.gridcolor);\n this.gridLineWidth[i] = ax.gridwidth;\n\n this.zeroLineEnable[i] = ax.zeroline;\n this.zeroLineColor[i] = str2RGBArray(ax.zerolinecolor);\n this.zeroLineWidth[i] = ax.zerolinewidth;\n }\n};\n\n// is an axis shared with an already-drawn subplot ?\nproto.hasSharedAxis = function(ax) {\n var scene = this.scene;\n var subplotIds = scene.fullLayout._subplots.gl2d;\n var list = Axes.findSubplotsWithAxis(subplotIds, ax);\n\n // if index === 0, then the subplot is already drawn as subplots\n // are drawn in order.\n return (list.indexOf(scene.id) !== 0);\n};\n\n// has an axis in default position (i.e. bottom/left) ?\nproto.hasAxisInDfltPos = function(axisName, ax) {\n var axSide = ax.side;\n\n if(axisName === 'xaxis') return (axSide === 'bottom');\n else if(axisName === 'yaxis') return (axSide === 'left');\n};\n\n// has an axis in alternate position (i.e. top/right) ?\nproto.hasAxisInAltrPos = function(axisName, ax) {\n var axSide = ax.side;\n\n if(axisName === 'xaxis') return (axSide === 'top');\n else if(axisName === 'yaxis') return (axSide === 'right');\n};\n\nproto.getLabelPad = function(axisName, ax) {\n var offsetBase = 1.5;\n var fontSize = ax.title.font.size;\n var showticklabels = ax.showticklabels;\n\n if(axisName === 'xaxis') {\n return (ax.side === 'top') ?\n -10 + fontSize * (offsetBase + (showticklabels ? 1 : 0)) :\n -10 + fontSize * (offsetBase + (showticklabels ? 0.5 : 0));\n } else if(axisName === 'yaxis') {\n return (ax.side === 'right') ?\n 10 + fontSize * (offsetBase + (showticklabels ? 1 : 0.5)) :\n 10 + fontSize * (offsetBase + (showticklabels ? 0.5 : 0));\n }\n};\n\nproto.getTickPad = function(ax) {\n return (ax.ticks === 'outside') ? 10 + ax.ticklen : 15;\n};\n\nproto.getTickMarkLength = function(ax) {\n if(!ax.ticks) return 0;\n\n var ticklen = ax.ticklen;\n\n return (ax.ticks === 'inside') ? -ticklen : ticklen;\n};\n\n\nfunction createAxes2D(scene) {\n return new Axes2DOptions(scene);\n}\n\nmodule.exports = createAxes2D;\n\n},{\"../../lib/str2rgbarray\":540,\"../cartesian/axes\":566}],605:[function(_dereq_,module,exports){\n'use strict';\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar Scene2D = _dereq_('./scene2d');\nvar layoutGlobalAttrs = _dereq_('../layout_attributes');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar constants = _dereq_('../cartesian/constants');\nvar Cartesian = _dereq_('../cartesian');\nvar fxAttrs = _dereq_('../../components/fx/layout_attributes');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nexports.name = 'gl2d';\n\nexports.attr = ['xaxis', 'yaxis'];\n\nexports.idRoot = ['x', 'y'];\n\nexports.idRegex = constants.idRegex;\n\nexports.attrRegex = constants.attrRegex;\n\nexports.attributes = _dereq_('../cartesian/attributes');\n\nexports.supplyLayoutDefaults = function(layoutIn, layoutOut, fullData) {\n if(!layoutOut._has('cartesian')) {\n Cartesian.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n};\n\n// gl2d uses svg axis attributes verbatim, but overrides editType\n// this could potentially be just `layoutAttributes` but it would\n// still need special handling somewhere to give it precedence over\n// the svg version when both are in use on one plot\nexports.layoutAttrOverrides = overrideAll(Cartesian.layoutAttributes, 'plot', 'from-root');\n\n// similar overrides for base plot attributes (and those added by components)\nexports.baseLayoutAttrOverrides = overrideAll({\n plot_bgcolor: layoutGlobalAttrs.plot_bgcolor,\n hoverlabel: fxAttrs.hoverlabel\n // dragmode needs calc but only when transitioning TO lasso or select\n // so for now it's left inside _relayout\n // dragmode: fxAttrs.dragmode\n}, 'plot', 'nested');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var subplotIds = fullLayout._subplots.gl2d;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotId = subplotIds[i];\n var subplotObj = fullLayout._plots[subplotId];\n var fullSubplotData = getSubplotData(fullData, 'gl2d', subplotId);\n\n // ref. to corresp. Scene instance\n var scene = subplotObj._scene2d;\n\n // If Scene is not instantiated, create one!\n if(scene === undefined) {\n scene = new Scene2D({\n id: subplotId,\n graphDiv: gd,\n container: gd.querySelector('.gl-container'),\n staticPlot: gd._context.staticPlot,\n plotGlPixelRatio: gd._context.plotGlPixelRatio\n },\n fullLayout\n );\n\n // set ref to Scene instance\n subplotObj._scene2d = scene;\n }\n\n scene.plot(fullSubplotData, gd.calcdata, fullLayout, gd.layout);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldSceneKeys = oldFullLayout._subplots.gl2d || [];\n\n for(var i = 0; i < oldSceneKeys.length; i++) {\n var id = oldSceneKeys[i];\n var oldSubplot = oldFullLayout._plots[id];\n\n // old subplot wasn't gl2d; nothing to do\n if(!oldSubplot._scene2d) continue;\n\n // if no traces are present, delete gl2d subplot\n var subplotData = getSubplotData(newFullData, 'gl2d', id);\n if(subplotData.length === 0) {\n oldSubplot._scene2d.destroy();\n delete oldFullLayout._plots[id];\n }\n }\n\n // since we use cartesian interactions, do cartesian clean\n Cartesian.clean.apply(this, arguments);\n};\n\nexports.drawFramework = function(gd) {\n if(!gd._context.staticPlot) {\n Cartesian.drawFramework(gd);\n }\n};\n\nexports.toSVG = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots.gl2d;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplot = fullLayout._plots[subplotIds[i]];\n var scene = subplot._scene2d;\n\n var imageData = scene.toImage('png');\n var image = fullLayout._glimages.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n x: 0,\n y: 0,\n width: '100%',\n height: '100%',\n preserveAspectRatio: 'none'\n });\n\n scene.destroy();\n }\n};\n\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots.gl2d;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotObj = fullLayout._plots[subplotIds[i]]._scene2d;\n subplotObj.updateFx(fullLayout.dragmode);\n }\n};\n\n},{\"../../components/fx/layout_attributes\":408,\"../../constants/xmlns_namespaces\":492,\"../../plot_api/edit_types\":548,\"../cartesian\":578,\"../cartesian/attributes\":564,\"../cartesian/constants\":573,\"../get_data\":602,\"../layout_attributes\":619,\"./scene2d\":606}],606:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Fx = _dereq_('../../components/fx');\n\nvar createPlot2D = _dereq_('../../../stackgl_modules').gl_plot2d;\nvar createSpikes = _dereq_('../../../stackgl_modules').gl_spikes2d;\nvar createSelectBox = _dereq_('../../../stackgl_modules').gl_select_box;\nvar getContext = _dereq_('webgl-context');\n\nvar createOptions = _dereq_('./convert');\nvar createCamera = _dereq_('./camera');\nvar showNoWebGlMsg = _dereq_('../../lib/show_no_webgl_msg');\nvar axisConstraints = _dereq_('../cartesian/constraints');\nvar enforceAxisConstraints = axisConstraints.enforce;\nvar cleanAxisConstraints = axisConstraints.clean;\nvar doAutoRange = _dereq_('../cartesian/autorange').doAutoRange;\n\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar AXES = ['xaxis', 'yaxis'];\nvar STATIC_CANVAS, STATIC_CONTEXT;\n\nvar SUBPLOT_PATTERN = _dereq_('../cartesian/constants').SUBPLOT_PATTERN;\n\n\nfunction Scene2D(options, fullLayout) {\n this.container = options.container;\n this.graphDiv = options.graphDiv;\n this.pixelRatio = options.plotGlPixelRatio || window.devicePixelRatio;\n this.id = options.id;\n this.staticPlot = !!options.staticPlot;\n this.scrollZoom = this.graphDiv._context._scrollZoom.cartesian;\n\n this.fullData = null;\n this.updateRefs(fullLayout);\n\n this.makeFramework();\n if(this.stopped) return;\n\n // update options\n this.glplotOptions = createOptions(this);\n this.glplotOptions.merge(fullLayout);\n\n // create the plot\n this.glplot = createPlot2D(this.glplotOptions);\n\n // create camera\n this.camera = createCamera(this);\n\n // trace set\n this.traces = {};\n\n // create axes spikes\n this.spikes = createSpikes(this.glplot);\n\n this.selectBox = createSelectBox(this.glplot, {\n innerFill: false,\n outerFill: true\n });\n\n // last button state\n this.lastButtonState = 0;\n\n // last pick result\n this.pickResult = null;\n\n // is the mouse over the plot?\n // it's OK if this says true when it's not, so long as\n // when we get a mouseout we set it to false before handling\n this.isMouseOver = true;\n\n // flag to stop render loop\n this.stopped = false;\n\n // redraw the plot\n this.redraw = this.draw.bind(this);\n this.redraw();\n}\n\nmodule.exports = Scene2D;\n\nvar proto = Scene2D.prototype;\n\nproto.makeFramework = function() {\n // create canvas and gl context\n if(this.staticPlot) {\n if(!STATIC_CONTEXT) {\n STATIC_CANVAS = document.createElement('canvas');\n\n STATIC_CONTEXT = getContext({\n canvas: STATIC_CANVAS,\n preserveDrawingBuffer: false,\n premultipliedAlpha: true,\n antialias: true\n });\n\n if(!STATIC_CONTEXT) {\n throw new Error('Error creating static canvas/context for image server');\n }\n }\n\n this.canvas = STATIC_CANVAS;\n this.gl = STATIC_CONTEXT;\n } else {\n var liveCanvas = this.container.querySelector('.gl-canvas-focus');\n\n var gl = getContext({\n canvas: liveCanvas,\n preserveDrawingBuffer: true,\n premultipliedAlpha: true\n });\n\n if(!gl) {\n showNoWebGlMsg(this);\n this.stopped = true;\n return;\n }\n\n this.canvas = liveCanvas;\n this.gl = gl;\n }\n\n // position the canvas\n var canvas = this.canvas;\n\n canvas.style.width = '100%';\n canvas.style.height = '100%';\n canvas.style.position = 'absolute';\n canvas.style.top = '0px';\n canvas.style.left = '0px';\n canvas.style['pointer-events'] = 'none';\n\n this.updateSize(canvas);\n\n // create SVG container for hover text\n var svgContainer = this.svgContainer = document.createElementNS(\n 'http://www.w3.org/2000/svg',\n 'svg');\n svgContainer.style.position = 'absolute';\n svgContainer.style.top = svgContainer.style.left = '0px';\n svgContainer.style.width = svgContainer.style.height = '100%';\n svgContainer.style['z-index'] = 20;\n svgContainer.style['pointer-events'] = 'none';\n\n // create div to catch the mouse event\n var mouseContainer = this.mouseContainer = document.createElement('div');\n mouseContainer.style.position = 'absolute';\n mouseContainer.style['pointer-events'] = 'auto';\n\n this.pickCanvas = this.container.querySelector('.gl-canvas-pick');\n\n\n // append canvas, hover svg and mouse div to container\n var container = this.container;\n container.appendChild(svgContainer);\n container.appendChild(mouseContainer);\n\n var self = this;\n mouseContainer.addEventListener('mouseout', function() {\n self.isMouseOver = false;\n self.unhover();\n });\n mouseContainer.addEventListener('mouseover', function() {\n self.isMouseOver = true;\n });\n};\n\nproto.toImage = function(format) {\n if(!format) format = 'png';\n\n this.stopped = true;\n\n if(this.staticPlot) this.container.appendChild(STATIC_CANVAS);\n\n // update canvas size\n this.updateSize(this.canvas);\n\n\n // grab context and yank out pixels\n var gl = this.glplot.gl;\n var w = gl.drawingBufferWidth;\n var h = gl.drawingBufferHeight;\n\n // force redraw\n gl.clearColor(1, 1, 1, 0);\n gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);\n this.glplot.setDirty();\n this.glplot.draw();\n\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n\n var pixels = new Uint8Array(w * h * 4);\n gl.readPixels(0, 0, w, h, gl.RGBA, gl.UNSIGNED_BYTE, pixels);\n\n // flip pixels\n for(var j = 0, k = h - 1; j < k; ++j, --k) {\n for(var i = 0; i < w; ++i) {\n for(var l = 0; l < 4; ++l) {\n var tmp = pixels[4 * (w * j + i) + l];\n pixels[4 * (w * j + i) + l] = pixels[4 * (w * k + i) + l];\n pixels[4 * (w * k + i) + l] = tmp;\n }\n }\n }\n\n var canvas = document.createElement('canvas');\n canvas.width = w;\n canvas.height = h;\n\n var context = canvas.getContext('2d', {willReadFrequently: true});\n var imageData = context.createImageData(w, h);\n imageData.data.set(pixels);\n context.putImageData(imageData, 0, 0);\n\n var dataURL;\n\n switch(format) {\n case 'jpeg':\n dataURL = canvas.toDataURL('image/jpeg');\n break;\n case 'webp':\n dataURL = canvas.toDataURL('image/webp');\n break;\n default:\n dataURL = canvas.toDataURL('image/png');\n }\n\n if(this.staticPlot) this.container.removeChild(STATIC_CANVAS);\n\n return dataURL;\n};\n\nproto.updateSize = function(canvas) {\n if(!canvas) canvas = this.canvas;\n\n var pixelRatio = this.pixelRatio;\n var fullLayout = this.fullLayout;\n\n var width = fullLayout.width;\n var height = fullLayout.height;\n var pixelWidth = Math.ceil(pixelRatio * width) |0;\n var pixelHeight = Math.ceil(pixelRatio * height) |0;\n\n // check for resize\n if(canvas.width !== pixelWidth || canvas.height !== pixelHeight) {\n canvas.width = pixelWidth;\n canvas.height = pixelHeight;\n }\n\n return canvas;\n};\n\nproto.computeTickMarks = function() {\n this.xaxis.setScale();\n this.yaxis.setScale();\n\n var nextTicks = [\n Axes.calcTicks(this.xaxis),\n Axes.calcTicks(this.yaxis)\n ];\n\n for(var j = 0; j < 2; ++j) {\n for(var i = 0; i < nextTicks[j].length; ++i) {\n // coercing tick value (may not be a string) to a string\n nextTicks[j][i].text = nextTicks[j][i].text + '';\n }\n }\n\n return nextTicks;\n};\n\nfunction compareTicks(a, b) {\n for(var i = 0; i < 2; ++i) {\n var aticks = a[i];\n var bticks = b[i];\n\n if(aticks.length !== bticks.length) return true;\n\n for(var j = 0; j < aticks.length; ++j) {\n if(aticks[j].x !== bticks[j].x) return true;\n }\n }\n\n return false;\n}\n\nproto.updateRefs = function(newFullLayout) {\n this.fullLayout = newFullLayout;\n\n var spmatch = this.id.match(SUBPLOT_PATTERN);\n var xaxisName = 'xaxis' + spmatch[1];\n var yaxisName = 'yaxis' + spmatch[2];\n\n this.xaxis = this.fullLayout[xaxisName];\n this.yaxis = this.fullLayout[yaxisName];\n};\n\nproto.relayoutCallback = function() {\n var graphDiv = this.graphDiv;\n var xaxis = this.xaxis;\n var yaxis = this.yaxis;\n var layout = graphDiv.layout;\n\n // make a meaningful value to be passed on to possible 'plotly_relayout' subscriber(s)\n var update = {};\n var xrange = update[xaxis._name + '.range'] = xaxis.range.slice();\n var yrange = update[yaxis._name + '.range'] = yaxis.range.slice();\n update[xaxis._name + '.autorange'] = xaxis.autorange;\n update[yaxis._name + '.autorange'] = yaxis.autorange;\n\n Registry.call('_storeDirectGUIEdit', graphDiv.layout, graphDiv._fullLayout._preGUI, update);\n\n // update the input layout\n var xaIn = layout[xaxis._name];\n xaIn.range = xrange;\n xaIn.autorange = xaxis.autorange;\n\n var yaIn = layout[yaxis._name];\n yaIn.range = yrange;\n yaIn.autorange = yaxis.autorange;\n\n // lastInputTime helps determine which one is the latest input (if async)\n update.lastInputTime = this.camera.lastInputTime;\n graphDiv.emit('plotly_relayout', update);\n};\n\nproto.cameraChanged = function() {\n var camera = this.camera;\n\n this.glplot.setDataBox(this.calcDataBox());\n\n var nextTicks = this.computeTickMarks();\n var curTicks = this.glplotOptions.ticks;\n\n if(compareTicks(nextTicks, curTicks)) {\n this.glplotOptions.ticks = nextTicks;\n this.glplotOptions.dataBox = camera.dataBox;\n this.glplot.update(this.glplotOptions);\n this.handleAnnotations();\n }\n};\n\nproto.handleAnnotations = function() {\n var gd = this.graphDiv;\n var annotations = this.fullLayout.annotations;\n\n for(var i = 0; i < annotations.length; i++) {\n var ann = annotations[i];\n\n if(ann.xref === this.xaxis._id && ann.yref === this.yaxis._id) {\n Registry.getComponentMethod('annotations', 'drawOne')(gd, i);\n }\n }\n};\n\nproto.destroy = function() {\n if(!this.glplot) return;\n\n var traces = this.traces;\n\n if(traces) {\n Object.keys(traces).map(function(key) {\n traces[key].dispose();\n delete traces[key];\n });\n }\n\n this.glplot.dispose();\n\n this.container.removeChild(this.svgContainer);\n this.container.removeChild(this.mouseContainer);\n\n this.fullData = null;\n this.glplot = null;\n this.stopped = true;\n this.camera.mouseListener.enabled = false;\n this.mouseContainer.removeEventListener('wheel', this.camera.wheelListener);\n this.camera = null;\n};\n\nproto.plot = function(fullData, calcData, fullLayout) {\n var glplot = this.glplot;\n\n this.updateRefs(fullLayout);\n this.xaxis.clearCalc();\n this.yaxis.clearCalc();\n this.updateTraces(fullData, calcData);\n this.updateFx(fullLayout.dragmode);\n\n var width = fullLayout.width;\n var height = fullLayout.height;\n\n this.updateSize(this.canvas);\n\n var options = this.glplotOptions;\n options.merge(fullLayout);\n options.screenBox = [0, 0, width, height];\n\n var mockGraphDiv = {_fullLayout: {\n _axisConstraintGroups: fullLayout._axisConstraintGroups,\n xaxis: this.xaxis,\n yaxis: this.yaxis,\n _size: fullLayout._size\n }};\n\n cleanAxisConstraints(mockGraphDiv, this.xaxis);\n cleanAxisConstraints(mockGraphDiv, this.yaxis);\n\n var size = fullLayout._size;\n var domainX = this.xaxis.domain;\n var domainY = this.yaxis.domain;\n\n options.viewBox = [\n size.l + domainX[0] * size.w,\n size.b + domainY[0] * size.h,\n (width - size.r) - (1 - domainX[1]) * size.w,\n (height - size.t) - (1 - domainY[1]) * size.h\n ];\n\n this.mouseContainer.style.width = size.w * (domainX[1] - domainX[0]) + 'px';\n this.mouseContainer.style.height = size.h * (domainY[1] - domainY[0]) + 'px';\n this.mouseContainer.height = size.h * (domainY[1] - domainY[0]);\n this.mouseContainer.style.left = size.l + domainX[0] * size.w + 'px';\n this.mouseContainer.style.top = size.t + (1 - domainY[1]) * size.h + 'px';\n\n var ax, i;\n\n for(i = 0; i < 2; ++i) {\n ax = this[AXES[i]];\n ax._length = options.viewBox[i + 2] - options.viewBox[i];\n\n doAutoRange(this.graphDiv, ax);\n ax.setScale();\n }\n\n enforceAxisConstraints(mockGraphDiv);\n\n options.ticks = this.computeTickMarks();\n\n options.dataBox = this.calcDataBox();\n\n options.merge(fullLayout);\n glplot.update(options);\n\n // force redraw so that promise is returned when rendering is completed\n this.glplot.draw();\n};\n\nproto.calcDataBox = function() {\n var xaxis = this.xaxis;\n var yaxis = this.yaxis;\n var xrange = xaxis.range;\n var yrange = yaxis.range;\n var xr2l = xaxis.r2l;\n var yr2l = yaxis.r2l;\n\n return [xr2l(xrange[0]), yr2l(yrange[0]), xr2l(xrange[1]), yr2l(yrange[1])];\n};\n\nproto.setRanges = function(dataBox) {\n var xaxis = this.xaxis;\n var yaxis = this.yaxis;\n var xl2r = xaxis.l2r;\n var yl2r = yaxis.l2r;\n\n xaxis.range = [xl2r(dataBox[0]), xl2r(dataBox[2])];\n yaxis.range = [yl2r(dataBox[1]), yl2r(dataBox[3])];\n};\n\nproto.updateTraces = function(fullData, calcData) {\n var traceIds = Object.keys(this.traces);\n var i, j, fullTrace;\n\n this.fullData = fullData;\n\n // remove empty traces\n traceIdLoop:\n for(i = 0; i < traceIds.length; i++) {\n var oldUid = traceIds[i];\n var oldTrace = this.traces[oldUid];\n\n for(j = 0; j < fullData.length; j++) {\n fullTrace = fullData[j];\n\n if(fullTrace.uid === oldUid && fullTrace.type === oldTrace.type) {\n continue traceIdLoop;\n }\n }\n\n oldTrace.dispose();\n delete this.traces[oldUid];\n }\n\n // update / create trace objects\n for(i = 0; i < fullData.length; i++) {\n fullTrace = fullData[i];\n var calcTrace = calcData[i];\n var traceObj = this.traces[fullTrace.uid];\n\n if(traceObj) traceObj.update(fullTrace, calcTrace);\n else {\n traceObj = fullTrace._module.plot(this, fullTrace, calcTrace);\n this.traces[fullTrace.uid] = traceObj;\n }\n }\n\n // order object per traces\n this.glplot.objects.sort(function(a, b) {\n return a._trace.index - b._trace.index;\n });\n};\n\nproto.updateFx = function(dragmode) {\n // switch to svg interactions in lasso/select mode & shape drawing\n if(selectMode(dragmode) || drawMode(dragmode)) {\n this.pickCanvas.style['pointer-events'] = 'none';\n this.mouseContainer.style['pointer-events'] = 'none';\n } else {\n this.pickCanvas.style['pointer-events'] = 'auto';\n this.mouseContainer.style['pointer-events'] = 'auto';\n }\n\n // set proper cursor\n if(dragmode === 'pan') {\n this.mouseContainer.style.cursor = 'move';\n } else if(dragmode === 'zoom') {\n this.mouseContainer.style.cursor = 'crosshair';\n } else {\n this.mouseContainer.style.cursor = null;\n }\n};\n\nproto.emitPointAction = function(nextSelection, eventType) {\n var uid = nextSelection.trace.uid;\n var ptNumber = nextSelection.pointIndex;\n var trace;\n\n for(var i = 0; i < this.fullData.length; i++) {\n if(this.fullData[i].uid === uid) {\n trace = this.fullData[i];\n }\n }\n\n var pointData = {\n x: nextSelection.traceCoord[0],\n y: nextSelection.traceCoord[1],\n curveNumber: trace.index,\n pointNumber: ptNumber,\n data: trace._input,\n fullData: this.fullData,\n xaxis: this.xaxis,\n yaxis: this.yaxis\n };\n\n Fx.appendArrayPointValue(pointData, trace, ptNumber);\n\n this.graphDiv.emit(eventType, {points: [pointData]});\n};\n\nproto.draw = function() {\n if(this.stopped) return;\n\n requestAnimationFrame(this.redraw);\n\n var glplot = this.glplot;\n var camera = this.camera;\n var mouseListener = camera.mouseListener;\n var mouseUp = this.lastButtonState === 1 && mouseListener.buttons === 0;\n var fullLayout = this.fullLayout;\n\n this.lastButtonState = mouseListener.buttons;\n\n this.cameraChanged();\n\n var x = mouseListener.x * glplot.pixelRatio;\n var y = this.canvas.height - glplot.pixelRatio * mouseListener.y;\n\n var result;\n\n if(camera.boxEnabled && fullLayout.dragmode === 'zoom') {\n this.selectBox.enabled = true;\n\n var selectBox = this.selectBox.selectBox = [\n Math.min(camera.boxStart[0], camera.boxEnd[0]),\n Math.min(camera.boxStart[1], camera.boxEnd[1]),\n Math.max(camera.boxStart[0], camera.boxEnd[0]),\n Math.max(camera.boxStart[1], camera.boxEnd[1])\n ];\n\n // 1D zoom\n for(var i = 0; i < 2; i++) {\n if(camera.boxStart[i] === camera.boxEnd[i]) {\n selectBox[i] = glplot.dataBox[i];\n selectBox[i + 2] = glplot.dataBox[i + 2];\n }\n }\n\n glplot.setDirty();\n } else if(!camera.panning && this.isMouseOver) {\n this.selectBox.enabled = false;\n\n var size = fullLayout._size;\n var domainX = this.xaxis.domain;\n var domainY = this.yaxis.domain;\n\n result = glplot.pick(\n (x / glplot.pixelRatio) + size.l + domainX[0] * size.w,\n (y / glplot.pixelRatio) - (size.t + (1 - domainY[1]) * size.h)\n );\n\n var nextSelection = result && result.object._trace.handlePick(result);\n\n if(nextSelection && mouseUp) {\n this.emitPointAction(nextSelection, 'plotly_click');\n }\n\n if(result && result.object._trace.hoverinfo !== 'skip' && fullLayout.hovermode) {\n if(nextSelection && (\n !this.lastPickResult ||\n this.lastPickResult.traceUid !== nextSelection.trace.uid ||\n this.lastPickResult.dataCoord[0] !== nextSelection.dataCoord[0] ||\n this.lastPickResult.dataCoord[1] !== nextSelection.dataCoord[1])\n ) {\n var selection = nextSelection;\n\n this.lastPickResult = {\n traceUid: nextSelection.trace ? nextSelection.trace.uid : null,\n dataCoord: nextSelection.dataCoord.slice()\n };\n this.spikes.update({ center: result.dataCoord });\n\n selection.screenCoord = [\n ((glplot.viewBox[2] - glplot.viewBox[0]) *\n (result.dataCoord[0] - glplot.dataBox[0]) /\n (glplot.dataBox[2] - glplot.dataBox[0]) + glplot.viewBox[0]) /\n glplot.pixelRatio,\n (this.canvas.height - (glplot.viewBox[3] - glplot.viewBox[1]) *\n (result.dataCoord[1] - glplot.dataBox[1]) /\n (glplot.dataBox[3] - glplot.dataBox[1]) - glplot.viewBox[1]) /\n glplot.pixelRatio\n ];\n\n // this needs to happen before the next block that deletes traceCoord data\n // also it's important to copy, otherwise data is lost by the time event data is read\n this.emitPointAction(nextSelection, 'plotly_hover');\n\n var trace = this.fullData[selection.trace.index] || {};\n var ptNumber = selection.pointIndex;\n var hoverinfo = Fx.castHoverinfo(trace, fullLayout, ptNumber);\n\n if(hoverinfo && hoverinfo !== 'all') {\n var parts = hoverinfo.split('+');\n if(parts.indexOf('x') === -1) selection.traceCoord[0] = undefined;\n if(parts.indexOf('y') === -1) selection.traceCoord[1] = undefined;\n if(parts.indexOf('z') === -1) selection.traceCoord[2] = undefined;\n if(parts.indexOf('text') === -1) selection.textLabel = undefined;\n if(parts.indexOf('name') === -1) selection.name = undefined;\n }\n\n Fx.loneHover({\n x: selection.screenCoord[0],\n y: selection.screenCoord[1],\n xLabel: this.hoverFormatter('xaxis', selection.traceCoord[0]),\n yLabel: this.hoverFormatter('yaxis', selection.traceCoord[1]),\n zLabel: selection.traceCoord[2],\n text: selection.textLabel,\n name: selection.name,\n color: Fx.castHoverOption(trace, ptNumber, 'bgcolor') || selection.color,\n borderColor: Fx.castHoverOption(trace, ptNumber, 'bordercolor'),\n fontFamily: Fx.castHoverOption(trace, ptNumber, 'font.family'),\n fontSize: Fx.castHoverOption(trace, ptNumber, 'font.size'),\n fontColor: Fx.castHoverOption(trace, ptNumber, 'font.color'),\n nameLength: Fx.castHoverOption(trace, ptNumber, 'namelength'),\n textAlign: Fx.castHoverOption(trace, ptNumber, 'align')\n }, {\n container: this.svgContainer,\n gd: this.graphDiv\n });\n }\n }\n }\n\n // Remove hover effects if we're not over a point OR\n // if we're zooming or panning (in which case result is not set)\n if(!result) {\n this.unhover();\n }\n\n glplot.draw();\n};\n\nproto.unhover = function() {\n if(this.lastPickResult) {\n this.spikes.update({});\n this.lastPickResult = null;\n this.graphDiv.emit('plotly_unhover');\n Fx.loneUnhover(this.svgContainer);\n }\n};\n\nproto.hoverFormatter = function(axisName, val) {\n if(val === undefined) return undefined;\n\n var axis = this[axisName];\n return Axes.tickText(axis, axis.c2l(val), 'hover').text;\n};\n\n},{\"../../../stackgl_modules\":1133,\"../../components/dragelement/helpers\":385,\"../../components/fx\":407,\"../../lib/show_no_webgl_msg\":537,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../cartesian/autorange\":565,\"../cartesian/constants\":573,\"../cartesian/constraints\":574,\"./camera\":603,\"./convert\":604,\"webgl-context\":332}],607:[function(_dereq_,module,exports){\n'use strict';\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar fxAttrs = _dereq_('../../components/fx/layout_attributes');\n\nvar Scene = _dereq_('./scene');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\nvar Lib = _dereq_('../../lib');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nvar GL3D = 'gl3d';\nvar SCENE = 'scene';\n\n\nexports.name = GL3D;\n\nexports.attr = SCENE;\n\nexports.idRoot = SCENE;\n\nexports.idRegex = exports.attrRegex = Lib.counterRegex('scene');\n\nexports.attributes = _dereq_('./layout/attributes');\n\nexports.layoutAttributes = _dereq_('./layout/layout_attributes');\n\nexports.baseLayoutAttrOverrides = overrideAll({\n hoverlabel: fxAttrs.hoverlabel\n}, 'plot', 'nested');\n\nexports.supplyLayoutDefaults = _dereq_('./layout/defaults');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var sceneIds = fullLayout._subplots[GL3D];\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneId = sceneIds[i];\n var fullSceneData = getSubplotData(fullData, GL3D, sceneId);\n var sceneLayout = fullLayout[sceneId];\n var camera = sceneLayout.camera;\n var scene = sceneLayout._scene;\n\n if(!scene) {\n scene = new Scene({\n id: sceneId,\n graphDiv: gd,\n container: gd.querySelector('.gl-container'),\n staticPlot: gd._context.staticPlot,\n plotGlPixelRatio: gd._context.plotGlPixelRatio,\n camera: camera\n },\n fullLayout\n );\n\n // set ref to Scene instance\n sceneLayout._scene = scene;\n }\n\n // save 'initial' camera view settings for modebar button\n if(!scene.viewInitial) {\n scene.viewInitial = {\n up: {\n x: camera.up.x,\n y: camera.up.y,\n z: camera.up.z\n },\n eye: {\n x: camera.eye.x,\n y: camera.eye.y,\n z: camera.eye.z\n },\n center: {\n x: camera.center.x,\n y: camera.center.y,\n z: camera.center.z\n }\n };\n }\n\n scene.plot(fullSceneData, fullLayout, gd.layout);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldSceneKeys = oldFullLayout._subplots[GL3D] || [];\n\n for(var i = 0; i < oldSceneKeys.length; i++) {\n var oldSceneKey = oldSceneKeys[i];\n\n if(!newFullLayout[oldSceneKey] && !!oldFullLayout[oldSceneKey]._scene) {\n oldFullLayout[oldSceneKey]._scene.destroy();\n\n if(oldFullLayout._infolayer) {\n oldFullLayout._infolayer\n .selectAll('.annotation-' + oldSceneKey)\n .remove();\n }\n }\n }\n};\n\nexports.toSVG = function(gd) {\n var fullLayout = gd._fullLayout;\n var sceneIds = fullLayout._subplots[GL3D];\n var size = fullLayout._size;\n\n for(var i = 0; i < sceneIds.length; i++) {\n var sceneLayout = fullLayout[sceneIds[i]];\n var domain = sceneLayout.domain;\n var scene = sceneLayout._scene;\n\n var imageData = scene.toImage('png');\n var image = fullLayout._glimages.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n x: size.l + size.w * domain.x[0],\n y: size.t + size.h * (1 - domain.y[1]),\n width: size.w * (domain.x[1] - domain.x[0]),\n height: size.h * (domain.y[1] - domain.y[0]),\n preserveAspectRatio: 'none'\n });\n\n scene.destroy();\n }\n};\n\n// clean scene ids, 'scene1' -> 'scene'\nexports.cleanId = function cleanId(id) {\n if(!id.match(/^scene[0-9]*$/)) return;\n\n var sceneNum = id.substr(5);\n if(sceneNum === '1') sceneNum = '';\n\n return SCENE + sceneNum;\n};\n\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[GL3D];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotObj = fullLayout[subplotIds[i]]._scene;\n subplotObj.updateFx(fullLayout.dragmode, fullLayout.hovermode);\n }\n};\n\n},{\"../../components/fx/layout_attributes\":408,\"../../constants/xmlns_namespaces\":492,\"../../lib\":515,\"../../plot_api/edit_types\":548,\"../get_data\":602,\"./layout/attributes\":608,\"./layout/defaults\":612,\"./layout/layout_attributes\":613,\"./scene\":617}],608:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n scene: {\n valType: 'subplotid',\n dflt: 'scene',\n editType: 'calc+clearAxisTypes',\n }\n};\n\n},{}],609:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../../components/color');\nvar axesAttrs = _dereq_('../../cartesian/layout_attributes');\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../../plot_api/edit_types').overrideAll;\n\nmodule.exports = overrideAll({\n visible: axesAttrs.visible,\n showspikes: {\n valType: 'boolean',\n dflt: true,\n },\n spikesides: {\n valType: 'boolean',\n dflt: true,\n },\n spikethickness: {\n valType: 'number',\n min: 0,\n dflt: 2,\n },\n spikecolor: {\n valType: 'color',\n dflt: Color.defaultLine,\n },\n showbackground: {\n valType: 'boolean',\n dflt: false,\n },\n backgroundcolor: {\n valType: 'color',\n dflt: 'rgba(204, 204, 204, 0.5)',\n },\n showaxeslabels: {\n valType: 'boolean',\n dflt: true,\n },\n color: axesAttrs.color,\n categoryorder: axesAttrs.categoryorder,\n categoryarray: axesAttrs.categoryarray,\n title: {\n text: axesAttrs.title.text,\n font: axesAttrs.title.font\n },\n type: extendFlat({}, axesAttrs.type, {\n values: ['-', 'linear', 'log', 'date', 'category']\n }),\n autotypenumbers: axesAttrs.autotypenumbers,\n autorange: axesAttrs.autorange,\n rangemode: axesAttrs.rangemode,\n range: extendFlat({}, axesAttrs.range, {\n items: [\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}},\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}}\n ],\n anim: false\n }),\n // ticks\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: axesAttrs.ticks,\n mirror: axesAttrs.mirror,\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n tickfont: axesAttrs.tickfont,\n tickangle: axesAttrs.tickangle,\n tickprefix: axesAttrs.tickprefix,\n showtickprefix: axesAttrs.showtickprefix,\n ticksuffix: axesAttrs.ticksuffix,\n showticksuffix: axesAttrs.showticksuffix,\n showexponent: axesAttrs.showexponent,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n separatethousands: axesAttrs.separatethousands,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n hoverformat: axesAttrs.hoverformat,\n // lines and grids\n showline: axesAttrs.showline,\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: axesAttrs.showgrid,\n gridcolor: extendFlat({}, axesAttrs.gridcolor, // shouldn't this be on-par with 2D?\n {dflt: 'rgb(204, 204, 204)'}),\n gridwidth: axesAttrs.gridwidth,\n zeroline: axesAttrs.zeroline,\n zerolinecolor: axesAttrs.zerolinecolor,\n zerolinewidth: axesAttrs.zerolinewidth,\n _deprecated: {\n title: axesAttrs._deprecated.title,\n titlefont: axesAttrs._deprecated.titlefont\n }\n}, 'plot', 'from-root');\n\n},{\"../../../components/color\":367,\"../../../lib/extend\":505,\"../../../plot_api/edit_types\":548,\"../../cartesian/layout_attributes\":579}],610:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorMix = _dereq_('tinycolor2').mix;\n\nvar Lib = _dereq_('../../../lib');\nvar Template = _dereq_('../../../plot_api/plot_template');\n\nvar layoutAttributes = _dereq_('./axis_attributes');\nvar handleTypeDefaults = _dereq_('../../cartesian/type_defaults');\nvar handleAxisDefaults = _dereq_('../../cartesian/axis_defaults');\n\nvar axesNames = ['xaxis', 'yaxis', 'zaxis'];\n\n// TODO: hard-coded lightness fraction based on gridline default colors\n// that differ from other subplot types.\nvar gridLightness = 100 * (204 - 0x44) / (255 - 0x44);\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, options) {\n var containerIn, containerOut;\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, layoutAttributes, attr, dflt);\n }\n\n for(var j = 0; j < axesNames.length; j++) {\n var axName = axesNames[j];\n containerIn = layoutIn[axName] || {};\n\n containerOut = Template.newContainer(layoutOut, axName);\n containerOut._id = axName[0] + options.scene;\n containerOut._name = axName;\n\n handleTypeDefaults(containerIn, containerOut, coerce, options);\n\n handleAxisDefaults(\n containerIn,\n containerOut,\n coerce,\n {\n font: options.font,\n letter: axName[0],\n data: options.data,\n showGrid: true,\n noTickson: true,\n noTicklabelmode: true,\n noTicklabelstep: true,\n noTicklabelposition: true,\n noTicklabeloverflow: true,\n bgColor: options.bgColor,\n calendar: options.calendar\n },\n options.fullLayout);\n\n coerce('gridcolor', colorMix(containerOut.color, options.bgColor, gridLightness).toRgbString());\n coerce('title.text', axName[0]); // shouldn't this be on-par with 2D?\n\n containerOut.setScale = Lib.noop;\n\n if(coerce('showspikes')) {\n coerce('spikesides');\n coerce('spikethickness');\n coerce('spikecolor', containerOut.color);\n }\n\n coerce('showaxeslabels');\n if(coerce('showbackground')) coerce('backgroundcolor');\n }\n};\n\n},{\"../../../lib\":515,\"../../../plot_api/plot_template\":555,\"../../cartesian/axis_defaults\":568,\"../../cartesian/type_defaults\":591,\"./axis_attributes\":609,\"tinycolor2\":313}],611:[function(_dereq_,module,exports){\n'use strict';\n\nvar str2RgbaArray = _dereq_('../../../lib/str2rgbarray');\nvar Lib = _dereq_('../../../lib');\n\nvar AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];\n\nfunction AxesOptions() {\n this.bounds = [\n [-10, -10, -10],\n [10, 10, 10]\n ];\n\n this.ticks = [ [], [], [] ];\n this.tickEnable = [ true, true, true ];\n this.tickFont = [ 'sans-serif', 'sans-serif', 'sans-serif' ];\n this.tickSize = [ 12, 12, 12 ];\n this.tickAngle = [ 0, 0, 0 ];\n this.tickColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n this.tickPad = [ 18, 18, 18 ];\n\n this.labels = [ 'x', 'y', 'z' ];\n this.labelEnable = [ true, true, true ];\n this.labelFont = ['Open Sans', 'Open Sans', 'Open Sans'];\n this.labelSize = [ 20, 20, 20 ];\n this.labelColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n this.labelPad = [ 30, 30, 30 ];\n\n this.lineEnable = [ true, true, true ];\n this.lineMirror = [ false, false, false ];\n this.lineWidth = [ 1, 1, 1 ];\n this.lineColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n\n this.lineTickEnable = [ true, true, true ];\n this.lineTickMirror = [ false, false, false ];\n this.lineTickLength = [ 10, 10, 10 ];\n this.lineTickWidth = [ 1, 1, 1 ];\n this.lineTickColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n\n this.gridEnable = [ true, true, true ];\n this.gridWidth = [ 1, 1, 1 ];\n this.gridColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n\n this.zeroEnable = [ true, true, true ];\n this.zeroLineColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ];\n this.zeroLineWidth = [ 2, 2, 2 ];\n\n this.backgroundEnable = [ true, true, true ];\n this.backgroundColor = [ [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5] ];\n\n // some default values are stored for applying model transforms\n this._defaultTickPad = this.tickPad.slice();\n this._defaultLabelPad = this.labelPad.slice();\n this._defaultLineTickLength = this.lineTickLength.slice();\n}\n\nvar proto = AxesOptions.prototype;\n\nproto.merge = function(fullLayout, sceneLayout) {\n var opts = this;\n for(var i = 0; i < 3; ++i) {\n var axes = sceneLayout[AXES_NAMES[i]];\n\n if(!axes.visible) {\n opts.tickEnable[i] = false;\n opts.labelEnable[i] = false;\n opts.lineEnable[i] = false;\n opts.lineTickEnable[i] = false;\n opts.gridEnable[i] = false;\n opts.zeroEnable[i] = false;\n opts.backgroundEnable[i] = false;\n continue;\n }\n\n // Axes labels\n opts.labels[i] = fullLayout._meta ?\n Lib.templateString(axes.title.text, fullLayout._meta) :\n axes.title.text;\n\n if('font' in axes.title) {\n if(axes.title.font.color) opts.labelColor[i] = str2RgbaArray(axes.title.font.color);\n if(axes.title.font.family) opts.labelFont[i] = axes.title.font.family;\n if(axes.title.font.size) opts.labelSize[i] = axes.title.font.size;\n }\n\n // Lines\n if('showline' in axes) opts.lineEnable[i] = axes.showline;\n if('linecolor' in axes) opts.lineColor[i] = str2RgbaArray(axes.linecolor);\n if('linewidth' in axes) opts.lineWidth[i] = axes.linewidth;\n\n if('showgrid' in axes) opts.gridEnable[i] = axes.showgrid;\n if('gridcolor' in axes) opts.gridColor[i] = str2RgbaArray(axes.gridcolor);\n if('gridwidth' in axes) opts.gridWidth[i] = axes.gridwidth;\n\n // Remove zeroline if axis type is log\n // otherwise the zeroline is incorrectly drawn at 1 on log axes\n if(axes.type === 'log') opts.zeroEnable[i] = false;\n else if('zeroline' in axes) opts.zeroEnable[i] = axes.zeroline;\n if('zerolinecolor' in axes) opts.zeroLineColor[i] = str2RgbaArray(axes.zerolinecolor);\n if('zerolinewidth' in axes) opts.zeroLineWidth[i] = axes.zerolinewidth;\n\n // tick lines\n if('ticks' in axes && !!axes.ticks) opts.lineTickEnable[i] = true;\n else opts.lineTickEnable[i] = false;\n\n if('ticklen' in axes) {\n opts.lineTickLength[i] = opts._defaultLineTickLength[i] = axes.ticklen;\n }\n if('tickcolor' in axes) opts.lineTickColor[i] = str2RgbaArray(axes.tickcolor);\n if('tickwidth' in axes) opts.lineTickWidth[i] = axes.tickwidth;\n if('tickangle' in axes) {\n opts.tickAngle[i] = (axes.tickangle === 'auto') ?\n -3600 : // i.e. special number to set auto option\n Math.PI * -axes.tickangle / 180;\n }\n\n // tick labels\n if('showticklabels' in axes) opts.tickEnable[i] = axes.showticklabels;\n if('tickfont' in axes) {\n if(axes.tickfont.color) opts.tickColor[i] = str2RgbaArray(axes.tickfont.color);\n if(axes.tickfont.family) opts.tickFont[i] = axes.tickfont.family;\n if(axes.tickfont.size) opts.tickSize[i] = axes.tickfont.size;\n }\n\n if('mirror' in axes) {\n if(['ticks', 'all', 'allticks'].indexOf(axes.mirror) !== -1) {\n opts.lineTickMirror[i] = true;\n opts.lineMirror[i] = true;\n } else if(axes.mirror === true) {\n opts.lineTickMirror[i] = false;\n opts.lineMirror[i] = true;\n } else {\n opts.lineTickMirror[i] = false;\n opts.lineMirror[i] = false;\n }\n } else opts.lineMirror[i] = false;\n\n // grid background\n if('showbackground' in axes && axes.showbackground !== false) {\n opts.backgroundEnable[i] = true;\n opts.backgroundColor[i] = str2RgbaArray(axes.backgroundcolor);\n } else opts.backgroundEnable[i] = false;\n }\n};\n\n\nfunction createAxesOptions(fullLayout, sceneLayout) {\n var result = new AxesOptions();\n result.merge(fullLayout, sceneLayout);\n return result;\n}\n\nmodule.exports = createAxesOptions;\n\n},{\"../../../lib\":515,\"../../../lib/str2rgbarray\":540}],612:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../../lib');\nvar Color = _dereq_('../../../components/color');\nvar Registry = _dereq_('../../../registry');\n\nvar handleSubplotDefaults = _dereq_('../../subplot_defaults');\nvar supplyGl3dAxisLayoutDefaults = _dereq_('./axis_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar getSubplotData = _dereq_('../../get_data').getSubplotData;\n\nvar GL3D = 'gl3d';\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n var hasNon3D = layoutOut._basePlotModules.length > 1;\n\n // some layout-wide attribute are used in all scenes\n // if 3D is the only visible plot type\n function getDfltFromLayout(attr) {\n if(hasNon3D) return;\n\n var isValid = Lib.validate(layoutIn[attr], layoutAttributes[attr]);\n if(isValid) return layoutIn[attr];\n }\n\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: GL3D,\n attributes: layoutAttributes,\n handleDefaults: handleGl3dDefaults,\n fullLayout: layoutOut,\n font: layoutOut.font,\n fullData: fullData,\n getDfltFromLayout: getDfltFromLayout,\n autotypenumbersDflt: layoutOut.autotypenumbers,\n paper_bgcolor: layoutOut.paper_bgcolor,\n calendar: layoutOut.calendar\n });\n};\n\nfunction handleGl3dDefaults(sceneLayoutIn, sceneLayoutOut, coerce, opts) {\n /*\n * Scene numbering proceeds as follows\n * scene\n * scene2\n * scene3\n *\n * and d.scene will be undefined or some number or number string\n *\n * Also write back a blank scene object to user layout so that some\n * attributes like aspectratio can be written back dynamically.\n */\n\n var bgcolor = coerce('bgcolor');\n var bgColorCombined = Color.combine(bgcolor, opts.paper_bgcolor);\n\n var cameraKeys = ['up', 'center', 'eye'];\n\n for(var j = 0; j < cameraKeys.length; j++) {\n coerce('camera.' + cameraKeys[j] + '.x');\n coerce('camera.' + cameraKeys[j] + '.y');\n coerce('camera.' + cameraKeys[j] + '.z');\n }\n\n coerce('camera.projection.type');\n\n /*\n * coerce to positive number (min 0) but also do not accept 0 (>0 not >=0)\n * note that 0's go false with the !! call\n */\n var hasAspect = !!coerce('aspectratio.x') &&\n !!coerce('aspectratio.y') &&\n !!coerce('aspectratio.z');\n\n var defaultAspectMode = hasAspect ? 'manual' : 'auto';\n var aspectMode = coerce('aspectmode', defaultAspectMode);\n\n /*\n * We need aspectratio object in all the Layouts as it is dynamically set\n * in the calculation steps, ie, we cant set the correct data now, it happens later.\n * We must also account for the case the user sends bad ratio data with 'manual' set\n * for the mode. In this case we must force change it here as the default coerce\n * misses it above.\n */\n if(!hasAspect) {\n sceneLayoutIn.aspectratio = sceneLayoutOut.aspectratio = {x: 1, y: 1, z: 1};\n\n if(aspectMode === 'manual') sceneLayoutOut.aspectmode = 'auto';\n\n /*\n * kind of like autorange - we need the calculated aspectmode back in\n * the input layout or relayout can cause problems later\n */\n sceneLayoutIn.aspectmode = sceneLayoutOut.aspectmode;\n }\n\n var fullGl3dData = getSubplotData(opts.fullData, GL3D, opts.id);\n\n supplyGl3dAxisLayoutDefaults(sceneLayoutIn, sceneLayoutOut, {\n font: opts.font,\n scene: opts.id,\n data: fullGl3dData,\n bgColor: bgColorCombined,\n calendar: opts.calendar,\n autotypenumbersDflt: opts.autotypenumbersDflt,\n fullLayout: opts.fullLayout\n });\n\n Registry.getComponentMethod('annotations3d', 'handleDefaults')(\n sceneLayoutIn, sceneLayoutOut, opts\n );\n\n var dragmode = opts.getDfltFromLayout('dragmode');\n\n if(dragmode !== false) {\n if(!dragmode) {\n dragmode = 'orbit';\n\n if(sceneLayoutIn.camera &&\n sceneLayoutIn.camera.up) {\n var x = sceneLayoutIn.camera.up.x;\n var y = sceneLayoutIn.camera.up.y;\n var z = sceneLayoutIn.camera.up.z;\n\n if(z !== 0) {\n if(!x || !y || !z) {\n dragmode = 'turntable';\n } else if(z / Math.sqrt(x * x + y * y + z * z) > 0.999) {\n dragmode = 'turntable';\n }\n }\n } else {\n dragmode = 'turntable';\n }\n }\n }\n\n coerce('dragmode', dragmode);\n coerce('hovermode', opts.getDfltFromLayout('hovermode'));\n}\n\n},{\"../../../components/color\":367,\"../../../lib\":515,\"../../../registry\":647,\"../../get_data\":602,\"../../subplot_defaults\":641,\"./axis_defaults\":610,\"./layout_attributes\":613}],613:[function(_dereq_,module,exports){\n'use strict';\n\nvar gl3dAxisAttrs = _dereq_('./axis_attributes');\nvar domainAttrs = _dereq_('../../domain').attributes;\nvar extendFlat = _dereq_('../../../lib/extend').extendFlat;\nvar counterRegex = _dereq_('../../../lib').counterRegex;\n\nfunction makeCameraVector(x, y, z) {\n return {\n x: {\n valType: 'number',\n dflt: x,\n editType: 'camera'\n },\n y: {\n valType: 'number',\n dflt: y,\n editType: 'camera'\n },\n z: {\n valType: 'number',\n dflt: z,\n editType: 'camera'\n },\n editType: 'camera'\n };\n}\n\nmodule.exports = {\n _arrayAttrRegexps: [counterRegex('scene', '.annotations', true)],\n\n bgcolor: {\n valType: 'color',\n dflt: 'rgba(0,0,0,0)',\n editType: 'plot'\n },\n camera: {\n up: extendFlat(makeCameraVector(0, 0, 1), {\n }),\n center: extendFlat(makeCameraVector(0, 0, 0), {\n }),\n eye: extendFlat(makeCameraVector(1.25, 1.25, 1.25), {\n }),\n projection: {\n type: {\n valType: 'enumerated',\n values: ['perspective', 'orthographic'],\n dflt: 'perspective',\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'camera'\n },\n domain: domainAttrs({name: 'scene', editType: 'plot'}),\n aspectmode: {\n valType: 'enumerated',\n values: ['auto', 'cube', 'data', 'manual'],\n dflt: 'auto',\n editType: 'plot',\n impliedEdits: {\n 'aspectratio.x': undefined,\n 'aspectratio.y': undefined,\n 'aspectratio.z': undefined\n },\n },\n aspectratio: { // must be positive (0's are coerced to 1)\n x: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n impliedEdits: {'^aspectmode': 'manual'}\n },\n y: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n impliedEdits: {'^aspectmode': 'manual'}\n },\n z: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n impliedEdits: {'^aspectmode': 'manual'}\n },\n editType: 'plot',\n impliedEdits: {aspectmode: 'manual'},\n },\n\n xaxis: gl3dAxisAttrs,\n yaxis: gl3dAxisAttrs,\n zaxis: gl3dAxisAttrs,\n\n dragmode: {\n valType: 'enumerated',\n values: ['orbit', 'turntable', 'zoom', 'pan', false],\n editType: 'plot',\n },\n hovermode: {\n valType: 'enumerated',\n values: ['closest', false],\n dflt: 'closest',\n editType: 'modebar',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n editType: 'plot',\n\n _deprecated: {\n cameraposition: {\n valType: 'info_array',\n editType: 'camera',\n }\n }\n};\n\n},{\"../../../lib\":515,\"../../../lib/extend\":505,\"../../domain\":593,\"./axis_attributes\":609}],614:[function(_dereq_,module,exports){\n'use strict';\n\nvar str2RGBArray = _dereq_('../../../lib/str2rgbarray');\n\nvar AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];\n\nfunction SpikeOptions() {\n this.enabled = [true, true, true];\n this.colors = [[0, 0, 0, 1],\n [0, 0, 0, 1],\n [0, 0, 0, 1]];\n this.drawSides = [true, true, true];\n this.lineWidth = [1, 1, 1];\n}\n\nvar proto = SpikeOptions.prototype;\n\nproto.merge = function(sceneLayout) {\n for(var i = 0; i < 3; ++i) {\n var axes = sceneLayout[AXES_NAMES[i]];\n\n if(!axes.visible) {\n this.enabled[i] = false;\n this.drawSides[i] = false;\n continue;\n }\n\n this.enabled[i] = axes.showspikes;\n this.colors[i] = str2RGBArray(axes.spikecolor);\n this.drawSides[i] = axes.spikesides;\n this.lineWidth[i] = axes.spikethickness;\n }\n};\n\nfunction createSpikeOptions(layout) {\n var result = new SpikeOptions();\n result.merge(layout);\n return result;\n}\n\nmodule.exports = createSpikeOptions;\n\n},{\"../../../lib/str2rgbarray\":540}],615:[function(_dereq_,module,exports){\n/* eslint block-scoped-var: 0*/\n/* eslint no-redeclare: 0*/\n\n'use strict';\n\nmodule.exports = computeTickMarks;\n\nvar Axes = _dereq_('../../cartesian/axes');\nvar Lib = _dereq_('../../../lib');\n\nvar AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];\n\nvar centerPoint = [0, 0, 0];\n\nfunction contourLevelsFromTicks(ticks) {\n var result = new Array(3);\n for(var i = 0; i < 3; ++i) {\n var tlevel = ticks[i];\n var clevel = new Array(tlevel.length);\n for(var j = 0; j < tlevel.length; ++j) {\n clevel[j] = tlevel[j].x;\n }\n result[i] = clevel;\n }\n return result;\n}\n\nfunction computeTickMarks(scene) {\n var axesOptions = scene.axesOptions;\n var glRange = scene.glplot.axesPixels;\n var sceneLayout = scene.fullSceneLayout;\n\n var ticks = [[], [], []];\n\n for(var i = 0; i < 3; ++i) {\n var axes = sceneLayout[AXES_NAMES[i]];\n\n axes._length = (glRange[i].hi - glRange[i].lo) *\n glRange[i].pixelsPerDataUnit / scene.dataScale[i];\n\n if(Math.abs(axes._length) === Infinity ||\n isNaN(axes._length)) {\n ticks[i] = [];\n } else {\n axes._input_range = axes.range.slice();\n axes.range[0] = (glRange[i].lo) / scene.dataScale[i];\n axes.range[1] = (glRange[i].hi) / scene.dataScale[i];\n axes._m = 1.0 / (scene.dataScale[i] * glRange[i].pixelsPerDataUnit);\n\n if(axes.range[0] === axes.range[1]) {\n axes.range[0] -= 1;\n axes.range[1] += 1;\n }\n // this is necessary to short-circuit the 'y' handling\n // in autotick part of calcTicks... Treating all axes as 'y' in this case\n // running the autoticks here, then setting\n // autoticks to false to get around the 2D handling in calcTicks.\n var tickModeCached = axes.tickmode;\n if(axes.tickmode === 'auto') {\n axes.tickmode = 'linear';\n var nticks = axes.nticks || Lib.constrain((axes._length / 40), 4, 9);\n Axes.autoTicks(axes, Math.abs(axes.range[1] - axes.range[0]) / nticks);\n }\n var dataTicks = Axes.calcTicks(axes, { msUTC: true });\n for(var j = 0; j < dataTicks.length; ++j) {\n dataTicks[j].x = dataTicks[j].x * scene.dataScale[i];\n\n if(axes.type === 'date') {\n dataTicks[j].text =\n dataTicks[j].text.replace(/\\/g, ' ');\n }\n }\n ticks[i] = dataTicks;\n\n\n axes.tickmode = tickModeCached;\n }\n }\n\n axesOptions.ticks = ticks;\n\n // Calculate tick lengths dynamically\n for(var i = 0; i < 3; ++i) {\n centerPoint[i] = 0.5 * (scene.glplot.bounds[0][i] + scene.glplot.bounds[1][i]);\n for(var j = 0; j < 2; ++j) {\n axesOptions.bounds[j][i] = scene.glplot.bounds[j][i];\n }\n }\n\n scene.contourLevels = contourLevelsFromTicks(ticks);\n}\n\n},{\"../../../lib\":515,\"../../cartesian/axes\":566}],616:[function(_dereq_,module,exports){\n'use strict';\n\nfunction xformMatrix(m, v) {\n var out = [0, 0, 0, 0];\n var i, j;\n\n for(i = 0; i < 4; ++i) {\n for(j = 0; j < 4; ++j) {\n out[j] += m[4 * i + j] * v[i];\n }\n }\n\n return out;\n}\n\nfunction project(camera, v) {\n var p = xformMatrix(camera.projection,\n xformMatrix(camera.view,\n xformMatrix(camera.model, [v[0], v[1], v[2], 1])));\n return p;\n}\n\nmodule.exports = project;\n\n},{}],617:[function(_dereq_,module,exports){\n'use strict';\n\nvar glPlot3d = _dereq_('../../../stackgl_modules').gl_plot3d;\nvar createCamera = glPlot3d.createCamera;\nvar createPlot = glPlot3d.createScene;\n\nvar getContext = _dereq_('webgl-context');\nvar passiveSupported = _dereq_('has-passive-events');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar preserveDrawingBuffer = Lib.preserveDrawingBuffer();\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Fx = _dereq_('../../components/fx');\n\nvar str2RGBAarray = _dereq_('../../lib/str2rgbarray');\nvar showNoWebGlMsg = _dereq_('../../lib/show_no_webgl_msg');\n\nvar project = _dereq_('./project');\nvar createAxesOptions = _dereq_('./layout/convert');\nvar createSpikeOptions = _dereq_('./layout/spikes');\nvar computeTickMarks = _dereq_('./layout/tick_marks');\n\nvar STATIC_CANVAS, STATIC_CONTEXT;\n\nfunction Scene(options, fullLayout) {\n // create sub container for plot\n var sceneContainer = document.createElement('div');\n var plotContainer = options.container;\n\n // keep a ref to the graph div to fire hover+click events\n this.graphDiv = options.graphDiv;\n\n // create SVG container for hover text\n var svgContainer = document.createElementNS(\n 'http://www.w3.org/2000/svg',\n 'svg');\n svgContainer.style.position = 'absolute';\n svgContainer.style.top = svgContainer.style.left = '0px';\n svgContainer.style.width = svgContainer.style.height = '100%';\n svgContainer.style['z-index'] = 20;\n svgContainer.style['pointer-events'] = 'none';\n sceneContainer.appendChild(svgContainer);\n this.svgContainer = svgContainer;\n\n // Tag the container with the sceneID\n sceneContainer.id = options.id;\n sceneContainer.style.position = 'absolute';\n sceneContainer.style.top = sceneContainer.style.left = '0px';\n sceneContainer.style.width = sceneContainer.style.height = '100%';\n plotContainer.appendChild(sceneContainer);\n\n this.fullLayout = fullLayout;\n this.id = options.id || 'scene';\n this.fullSceneLayout = fullLayout[this.id];\n\n // Saved from last call to plot()\n this.plotArgs = [ [], {}, {} ];\n\n /*\n * Move this to calc step? Why does it work here?\n */\n this.axesOptions = createAxesOptions(fullLayout, fullLayout[this.id]);\n this.spikeOptions = createSpikeOptions(fullLayout[this.id]);\n this.container = sceneContainer;\n this.staticMode = !!options.staticPlot;\n this.pixelRatio = this.pixelRatio || options.plotGlPixelRatio || 2;\n\n // Coordinate rescaling\n this.dataScale = [1, 1, 1];\n\n this.contourLevels = [ [], [], [] ];\n\n this.convertAnnotations = Registry.getComponentMethod('annotations3d', 'convert');\n this.drawAnnotations = Registry.getComponentMethod('annotations3d', 'draw');\n\n this.initializeGLPlot();\n}\n\nvar proto = Scene.prototype;\n\nproto.prepareOptions = function() {\n var scene = this;\n\n var opts = {\n canvas: scene.canvas,\n gl: scene.gl,\n glOptions: {\n preserveDrawingBuffer: preserveDrawingBuffer,\n premultipliedAlpha: true,\n antialias: true\n },\n container: scene.container,\n axes: scene.axesOptions,\n spikes: scene.spikeOptions,\n pickRadius: 10,\n snapToData: true,\n autoScale: true,\n autoBounds: false,\n cameraObject: scene.camera,\n pixelRatio: scene.pixelRatio\n };\n\n // for static plots, we reuse the WebGL context\n // as WebKit doesn't collect them reliably\n if(scene.staticMode) {\n if(!STATIC_CONTEXT) {\n STATIC_CANVAS = document.createElement('canvas');\n STATIC_CONTEXT = getContext({\n canvas: STATIC_CANVAS,\n preserveDrawingBuffer: true,\n premultipliedAlpha: true,\n antialias: true\n });\n if(!STATIC_CONTEXT) {\n throw new Error('error creating static canvas/context for image server');\n }\n }\n\n opts.gl = STATIC_CONTEXT;\n opts.canvas = STATIC_CANVAS;\n }\n\n return opts;\n};\n\nvar firstInit = true;\n\nproto.tryCreatePlot = function() {\n var scene = this;\n\n var opts = scene.prepareOptions();\n\n var success = true;\n\n try {\n scene.glplot = createPlot(opts);\n } catch(e) {\n if(scene.staticMode || !firstInit || preserveDrawingBuffer) {\n success = false;\n } else { // try second time\n // enable preserveDrawingBuffer setup\n // in case is-mobile not detecting the right device\n Lib.warn([\n 'webgl setup failed possibly due to',\n 'false preserveDrawingBuffer config.',\n 'The mobile/tablet device may not be detected by is-mobile module.',\n 'Enabling preserveDrawingBuffer in second attempt to create webgl scene...'\n ].join(' '));\n\n try {\n // invert preserveDrawingBuffer\n preserveDrawingBuffer = opts.glOptions.preserveDrawingBuffer = true;\n\n scene.glplot = createPlot(opts);\n } catch(e) {\n // revert changes to preserveDrawingBuffer\n preserveDrawingBuffer = opts.glOptions.preserveDrawingBuffer = false;\n\n success = false;\n }\n }\n }\n\n firstInit = false;\n\n return success;\n};\n\nproto.initializeGLCamera = function() {\n var scene = this;\n var cameraData = scene.fullSceneLayout.camera;\n var isOrtho = (cameraData.projection.type === 'orthographic');\n\n scene.camera = createCamera(scene.container, {\n center: [cameraData.center.x, cameraData.center.y, cameraData.center.z],\n eye: [cameraData.eye.x, cameraData.eye.y, cameraData.eye.z],\n up: [cameraData.up.x, cameraData.up.y, cameraData.up.z],\n _ortho: isOrtho,\n zoomMin: 0.01,\n zoomMax: 100,\n mode: 'orbit'\n });\n};\n\nproto.initializeGLPlot = function() {\n var scene = this;\n\n scene.initializeGLCamera();\n\n var success = scene.tryCreatePlot();\n /*\n * createPlot will throw when webgl is not enabled in the client.\n * Lets return an instance of the module with all functions noop'd.\n * The destroy method - which will remove the container from the DOM\n * is overridden with a function that removes the container only.\n */\n if(!success) return showNoWebGlMsg(scene);\n\n // List of scene objects\n scene.traces = {};\n\n scene.make4thDimension();\n\n var gd = scene.graphDiv;\n var layout = gd.layout;\n\n var makeUpdate = function() {\n var update = {};\n\n if(scene.isCameraChanged(layout)) {\n // camera updates\n update[scene.id + '.camera'] = scene.getCamera();\n }\n\n if(scene.isAspectChanged(layout)) {\n // scene updates\n update[scene.id + '.aspectratio'] = scene.glplot.getAspectratio();\n\n if(layout[scene.id].aspectmode !== 'manual') {\n scene.fullSceneLayout.aspectmode =\n layout[scene.id].aspectmode =\n update[scene.id + '.aspectmode'] = 'manual';\n }\n }\n\n return update;\n };\n\n var relayoutCallback = function(scene) {\n if(scene.fullSceneLayout.dragmode === false) return;\n\n var update = makeUpdate();\n scene.saveLayout(layout);\n scene.graphDiv.emit('plotly_relayout', update);\n };\n\n if(scene.glplot.canvas) {\n scene.glplot.canvas.addEventListener('mouseup', function() {\n relayoutCallback(scene);\n });\n\n scene.glplot.canvas.addEventListener('wheel', function(e) {\n if(gd._context._scrollZoom.gl3d) {\n if(scene.camera._ortho) {\n var s = (e.deltaX > e.deltaY) ? 1.1 : 1.0 / 1.1;\n var o = scene.glplot.getAspectratio();\n scene.glplot.setAspectratio({\n x: s * o.x,\n y: s * o.y,\n z: s * o.z\n });\n }\n\n relayoutCallback(scene);\n }\n }, passiveSupported ? {passive: false} : false);\n\n scene.glplot.canvas.addEventListener('mousemove', function() {\n if(scene.fullSceneLayout.dragmode === false) return;\n if(scene.camera.mouseListener.buttons === 0) return;\n\n var update = makeUpdate();\n scene.graphDiv.emit('plotly_relayouting', update);\n });\n\n if(!scene.staticMode) {\n scene.glplot.canvas.addEventListener('webglcontextlost', function(event) {\n if(gd && gd.emit) {\n gd.emit('plotly_webglcontextlost', {\n event: event,\n layer: scene.id\n });\n }\n }, false);\n }\n }\n\n scene.glplot.oncontextloss = function() {\n scene.recoverContext();\n };\n\n scene.glplot.onrender = function() {\n scene.render();\n };\n\n return true;\n};\n\nproto.render = function() {\n var scene = this;\n var gd = scene.graphDiv;\n var trace;\n\n // update size of svg container\n var svgContainer = scene.svgContainer;\n var clientRect = scene.container.getBoundingClientRect();\n\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n var width = clientRect.width * scaleX;\n var height = clientRect.height * scaleY;\n svgContainer.setAttributeNS(null, 'viewBox', '0 0 ' + width + ' ' + height);\n svgContainer.setAttributeNS(null, 'width', width);\n svgContainer.setAttributeNS(null, 'height', height);\n\n computeTickMarks(scene);\n scene.glplot.axes.update(scene.axesOptions);\n\n // check if pick has changed\n var keys = Object.keys(scene.traces);\n var lastPicked = null;\n var selection = scene.glplot.selection;\n for(var i = 0; i < keys.length; ++i) {\n trace = scene.traces[keys[i]];\n if(trace.data.hoverinfo !== 'skip' && trace.handlePick(selection)) {\n lastPicked = trace;\n }\n\n if(trace.setContourLevels) trace.setContourLevels();\n }\n\n function formatter(axLetter, val, hoverformat) {\n var ax = scene.fullSceneLayout[axLetter + 'axis'];\n\n if(ax.type !== 'log') {\n val = ax.d2l(val);\n }\n\n return Axes.hoverLabelText(ax, val, hoverformat);\n }\n\n if(lastPicked !== null) {\n var pdata = project(scene.glplot.cameraParams, selection.dataCoordinate);\n trace = lastPicked.data;\n var traceNow = gd._fullData[trace.index];\n var ptNumber = selection.index;\n\n var labels = {\n xLabel: formatter('x', selection.traceCoordinate[0], trace.xhoverformat),\n yLabel: formatter('y', selection.traceCoordinate[1], trace.yhoverformat),\n zLabel: formatter('z', selection.traceCoordinate[2], trace.zhoverformat)\n };\n\n var hoverinfo = Fx.castHoverinfo(traceNow, scene.fullLayout, ptNumber);\n var hoverinfoParts = (hoverinfo || '').split('+');\n var isHoverinfoAll = hoverinfo && hoverinfo === 'all';\n\n if(!traceNow.hovertemplate && !isHoverinfoAll) {\n if(hoverinfoParts.indexOf('x') === -1) labels.xLabel = undefined;\n if(hoverinfoParts.indexOf('y') === -1) labels.yLabel = undefined;\n if(hoverinfoParts.indexOf('z') === -1) labels.zLabel = undefined;\n if(hoverinfoParts.indexOf('text') === -1) selection.textLabel = undefined;\n if(hoverinfoParts.indexOf('name') === -1) lastPicked.name = undefined;\n }\n\n var tx;\n var vectorTx = [];\n\n if(trace.type === 'cone' || trace.type === 'streamtube') {\n labels.uLabel = formatter('x', selection.traceCoordinate[3], trace.uhoverformat);\n if(isHoverinfoAll || hoverinfoParts.indexOf('u') !== -1) {\n vectorTx.push('u: ' + labels.uLabel);\n }\n\n labels.vLabel = formatter('y', selection.traceCoordinate[4], trace.vhoverformat);\n if(isHoverinfoAll || hoverinfoParts.indexOf('v') !== -1) {\n vectorTx.push('v: ' + labels.vLabel);\n }\n\n labels.wLabel = formatter('z', selection.traceCoordinate[5], trace.whoverformat);\n if(isHoverinfoAll || hoverinfoParts.indexOf('w') !== -1) {\n vectorTx.push('w: ' + labels.wLabel);\n }\n\n labels.normLabel = selection.traceCoordinate[6].toPrecision(3);\n if(isHoverinfoAll || hoverinfoParts.indexOf('norm') !== -1) {\n vectorTx.push('norm: ' + labels.normLabel);\n }\n if(trace.type === 'streamtube') {\n labels.divergenceLabel = selection.traceCoordinate[7].toPrecision(3);\n if(isHoverinfoAll || hoverinfoParts.indexOf('divergence') !== -1) {\n vectorTx.push('divergence: ' + labels.divergenceLabel);\n }\n }\n if(selection.textLabel) {\n vectorTx.push(selection.textLabel);\n }\n tx = vectorTx.join('
');\n } else if(trace.type === 'isosurface' || trace.type === 'volume') {\n labels.valueLabel = Axes.hoverLabelText(scene._mockAxis, scene._mockAxis.d2l(selection.traceCoordinate[3]), trace.valuehoverformat);\n vectorTx.push('value: ' + labels.valueLabel);\n if(selection.textLabel) {\n vectorTx.push(selection.textLabel);\n }\n tx = vectorTx.join('
');\n } else {\n tx = selection.textLabel;\n }\n\n var pointData = {\n x: selection.traceCoordinate[0],\n y: selection.traceCoordinate[1],\n z: selection.traceCoordinate[2],\n data: traceNow._input,\n fullData: traceNow,\n curveNumber: traceNow.index,\n pointNumber: ptNumber\n };\n\n Fx.appendArrayPointValue(pointData, traceNow, ptNumber);\n\n if(trace._module.eventData) {\n pointData = traceNow._module.eventData(pointData, selection, traceNow, {}, ptNumber);\n }\n\n var eventData = {points: [pointData]};\n\n if(scene.fullSceneLayout.hovermode) {\n var bbox = [];\n Fx.loneHover({\n trace: traceNow,\n x: (0.5 + 0.5 * pdata[0] / pdata[3]) * width,\n y: (0.5 - 0.5 * pdata[1] / pdata[3]) * height,\n xLabel: labels.xLabel,\n yLabel: labels.yLabel,\n zLabel: labels.zLabel,\n text: tx,\n name: lastPicked.name,\n color: Fx.castHoverOption(traceNow, ptNumber, 'bgcolor') || lastPicked.color,\n borderColor: Fx.castHoverOption(traceNow, ptNumber, 'bordercolor'),\n fontFamily: Fx.castHoverOption(traceNow, ptNumber, 'font.family'),\n fontSize: Fx.castHoverOption(traceNow, ptNumber, 'font.size'),\n fontColor: Fx.castHoverOption(traceNow, ptNumber, 'font.color'),\n nameLength: Fx.castHoverOption(traceNow, ptNumber, 'namelength'),\n textAlign: Fx.castHoverOption(traceNow, ptNumber, 'align'),\n hovertemplate: Lib.castOption(traceNow, ptNumber, 'hovertemplate'),\n hovertemplateLabels: Lib.extendFlat({}, pointData, labels),\n eventData: [pointData]\n }, {\n container: svgContainer,\n gd: gd,\n inOut_bbox: bbox\n });\n\n pointData.bbox = bbox[0];\n }\n\n if(selection.buttons && selection.distance < 5) {\n gd.emit('plotly_click', eventData);\n } else {\n gd.emit('plotly_hover', eventData);\n }\n\n this.oldEventData = eventData;\n } else {\n Fx.loneUnhover(svgContainer);\n if(this.oldEventData) gd.emit('plotly_unhover', this.oldEventData);\n this.oldEventData = undefined;\n }\n\n scene.drawAnnotations(scene);\n};\n\nproto.recoverContext = function() {\n var scene = this;\n\n scene.glplot.dispose();\n\n var tryRecover = function() {\n if(scene.glplot.gl.isContextLost()) {\n requestAnimationFrame(tryRecover);\n return;\n }\n if(!scene.initializeGLPlot()) {\n Lib.error('Catastrophic and unrecoverable WebGL error. Context lost.');\n return;\n }\n scene.plot.apply(scene, scene.plotArgs);\n };\n\n requestAnimationFrame(tryRecover);\n};\n\nvar axisProperties = [ 'xaxis', 'yaxis', 'zaxis' ];\n\nfunction computeTraceBounds(scene, trace, bounds) {\n var fullSceneLayout = scene.fullSceneLayout;\n\n for(var d = 0; d < 3; d++) {\n var axisName = axisProperties[d];\n var axLetter = axisName.charAt(0);\n var ax = fullSceneLayout[axisName];\n var coords = trace[axLetter];\n var calendar = trace[axLetter + 'calendar'];\n var len = trace['_' + axLetter + 'length'];\n\n if(!Lib.isArrayOrTypedArray(coords)) {\n bounds[0][d] = Math.min(bounds[0][d], 0);\n bounds[1][d] = Math.max(bounds[1][d], len - 1);\n } else {\n var v;\n\n for(var i = 0; i < (len || coords.length); i++) {\n if(Lib.isArrayOrTypedArray(coords[i])) {\n for(var j = 0; j < coords[i].length; ++j) {\n v = ax.d2l(coords[i][j], 0, calendar);\n if(!isNaN(v) && isFinite(v)) {\n bounds[0][d] = Math.min(bounds[0][d], v);\n bounds[1][d] = Math.max(bounds[1][d], v);\n }\n }\n } else {\n v = ax.d2l(coords[i], 0, calendar);\n if(!isNaN(v) && isFinite(v)) {\n bounds[0][d] = Math.min(bounds[0][d], v);\n bounds[1][d] = Math.max(bounds[1][d], v);\n }\n }\n }\n }\n }\n}\n\nfunction computeAnnotationBounds(scene, bounds) {\n var fullSceneLayout = scene.fullSceneLayout;\n var annotations = fullSceneLayout.annotations || [];\n\n for(var d = 0; d < 3; d++) {\n var axisName = axisProperties[d];\n var axLetter = axisName.charAt(0);\n var ax = fullSceneLayout[axisName];\n\n for(var j = 0; j < annotations.length; j++) {\n var ann = annotations[j];\n\n if(ann.visible) {\n var pos = ax.r2l(ann[axLetter]);\n if(!isNaN(pos) && isFinite(pos)) {\n bounds[0][d] = Math.min(bounds[0][d], pos);\n bounds[1][d] = Math.max(bounds[1][d], pos);\n }\n }\n }\n }\n}\n\nproto.plot = function(sceneData, fullLayout, layout) {\n var scene = this;\n\n // Save parameters\n scene.plotArgs = [sceneData, fullLayout, layout];\n\n if(scene.glplot.contextLost) return;\n\n var data, trace;\n var i, j, axis, axisType;\n var fullSceneLayout = fullLayout[scene.id];\n var sceneLayout = layout[scene.id];\n\n // Update layout\n scene.fullLayout = fullLayout;\n scene.fullSceneLayout = fullSceneLayout;\n\n scene.axesOptions.merge(fullLayout, fullSceneLayout);\n scene.spikeOptions.merge(fullSceneLayout);\n\n // Update camera and camera mode\n scene.setViewport(fullSceneLayout);\n scene.updateFx(fullSceneLayout.dragmode, fullSceneLayout.hovermode);\n scene.camera.enableWheel = scene.graphDiv._context._scrollZoom.gl3d;\n\n // Update scene background\n scene.glplot.setClearColor(str2RGBAarray(fullSceneLayout.bgcolor));\n\n // Update axes functions BEFORE updating traces\n scene.setConvert(axis);\n\n // Convert scene data\n if(!sceneData) sceneData = [];\n else if(!Array.isArray(sceneData)) sceneData = [sceneData];\n\n // Compute trace bounding box\n var dataBounds = [\n [Infinity, Infinity, Infinity],\n [-Infinity, -Infinity, -Infinity]\n ];\n\n for(i = 0; i < sceneData.length; ++i) {\n data = sceneData[i];\n if(data.visible !== true || data._length === 0) continue;\n\n computeTraceBounds(this, data, dataBounds);\n }\n computeAnnotationBounds(this, dataBounds);\n\n var dataScale = [1, 1, 1];\n for(j = 0; j < 3; ++j) {\n if(dataBounds[1][j] === dataBounds[0][j]) {\n dataScale[j] = 1.0;\n } else {\n dataScale[j] = 1.0 / (dataBounds[1][j] - dataBounds[0][j]);\n }\n }\n\n // Save scale\n scene.dataScale = dataScale;\n\n // after computeTraceBounds where ax._categories are filled in\n scene.convertAnnotations(this);\n\n // Update traces\n for(i = 0; i < sceneData.length; ++i) {\n data = sceneData[i];\n if(data.visible !== true || data._length === 0) {\n continue;\n }\n trace = scene.traces[data.uid];\n if(trace) {\n if(trace.data.type === data.type) {\n trace.update(data);\n } else {\n trace.dispose();\n trace = data._module.plot(this, data);\n scene.traces[data.uid] = trace;\n }\n } else {\n trace = data._module.plot(this, data);\n scene.traces[data.uid] = trace;\n }\n trace.name = data.name;\n }\n\n // Remove empty traces\n var traceIds = Object.keys(scene.traces);\n\n traceIdLoop:\n for(i = 0; i < traceIds.length; ++i) {\n for(j = 0; j < sceneData.length; ++j) {\n if(sceneData[j].uid === traceIds[i] &&\n (sceneData[j].visible === true && sceneData[j]._length !== 0)) {\n continue traceIdLoop;\n }\n }\n trace = scene.traces[traceIds[i]];\n trace.dispose();\n delete scene.traces[traceIds[i]];\n }\n\n // order object per trace index\n scene.glplot.objects.sort(function(a, b) {\n return a._trace.data.index - b._trace.data.index;\n });\n\n // Update ranges (needs to be called *after* objects are added due to updates)\n var sceneBounds = [[0, 0, 0], [0, 0, 0]];\n var axisDataRange = [];\n var axisTypeRatios = {};\n\n for(i = 0; i < 3; ++i) {\n axis = fullSceneLayout[axisProperties[i]];\n axisType = axis.type;\n\n if(axisType in axisTypeRatios) {\n axisTypeRatios[axisType].acc *= dataScale[i];\n axisTypeRatios[axisType].count += 1;\n } else {\n axisTypeRatios[axisType] = {\n acc: dataScale[i],\n count: 1\n };\n }\n\n if(axis.autorange) {\n sceneBounds[0][i] = Infinity;\n sceneBounds[1][i] = -Infinity;\n\n var objects = scene.glplot.objects;\n var annotations = scene.fullSceneLayout.annotations || [];\n var axLetter = axis._name.charAt(0);\n\n for(j = 0; j < objects.length; j++) {\n var obj = objects[j];\n var objBounds = obj.bounds;\n var pad = obj._trace.data._pad || 0;\n\n if(obj.constructor.name === 'ErrorBars' && axis._lowerLogErrorBound) {\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], axis._lowerLogErrorBound);\n } else {\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], objBounds[0][i] / dataScale[i] - pad);\n }\n sceneBounds[1][i] = Math.max(sceneBounds[1][i], objBounds[1][i] / dataScale[i] + pad);\n }\n\n for(j = 0; j < annotations.length; j++) {\n var ann = annotations[j];\n\n // N.B. not taking into consideration the arrowhead\n if(ann.visible) {\n var pos = axis.r2l(ann[axLetter]);\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], pos);\n sceneBounds[1][i] = Math.max(sceneBounds[1][i], pos);\n }\n }\n\n if('rangemode' in axis && axis.rangemode === 'tozero') {\n sceneBounds[0][i] = Math.min(sceneBounds[0][i], 0);\n sceneBounds[1][i] = Math.max(sceneBounds[1][i], 0);\n }\n if(sceneBounds[0][i] > sceneBounds[1][i]) {\n sceneBounds[0][i] = -1;\n sceneBounds[1][i] = 1;\n } else {\n var d = sceneBounds[1][i] - sceneBounds[0][i];\n sceneBounds[0][i] -= d / 32.0;\n sceneBounds[1][i] += d / 32.0;\n }\n\n if(axis.autorange === 'reversed') {\n // swap bounds:\n var tmp = sceneBounds[0][i];\n sceneBounds[0][i] = sceneBounds[1][i];\n sceneBounds[1][i] = tmp;\n }\n } else {\n var range = axis.range;\n sceneBounds[0][i] = axis.r2l(range[0]);\n sceneBounds[1][i] = axis.r2l(range[1]);\n }\n if(sceneBounds[0][i] === sceneBounds[1][i]) {\n sceneBounds[0][i] -= 1;\n sceneBounds[1][i] += 1;\n }\n axisDataRange[i] = sceneBounds[1][i] - sceneBounds[0][i];\n\n // Update plot bounds\n scene.glplot.setBounds(i, {\n min: sceneBounds[0][i] * dataScale[i],\n max: sceneBounds[1][i] * dataScale[i]\n });\n }\n\n /*\n * Dynamically set the aspect ratio depending on the users aspect settings\n */\n var aspectRatio;\n var aspectmode = fullSceneLayout.aspectmode;\n if(aspectmode === 'cube') {\n aspectRatio = [1, 1, 1];\n } else if(aspectmode === 'manual') {\n var userRatio = fullSceneLayout.aspectratio;\n aspectRatio = [userRatio.x, userRatio.y, userRatio.z];\n } else if(aspectmode === 'auto' || aspectmode === 'data') {\n var axesScaleRatio = [1, 1, 1];\n // Compute axis scale per category\n for(i = 0; i < 3; ++i) {\n axis = fullSceneLayout[axisProperties[i]];\n axisType = axis.type;\n var axisRatio = axisTypeRatios[axisType];\n axesScaleRatio[i] = Math.pow(axisRatio.acc, 1.0 / axisRatio.count) / dataScale[i];\n }\n\n if(aspectmode === 'data') {\n aspectRatio = axesScaleRatio;\n } else { // i.e. 'auto' option\n if(\n Math.max.apply(null, axesScaleRatio) /\n Math.min.apply(null, axesScaleRatio) <= 4\n ) {\n // USE DATA MODE WHEN AXIS RANGE DIMENSIONS ARE RELATIVELY EQUAL\n aspectRatio = axesScaleRatio;\n } else {\n // USE EQUAL MODE WHEN AXIS RANGE DIMENSIONS ARE HIGHLY UNEQUAL\n aspectRatio = [1, 1, 1];\n }\n }\n } else {\n throw new Error('scene.js aspectRatio was not one of the enumerated types');\n }\n\n /*\n * Write aspect Ratio back to user data and fullLayout so that it is modifies as user\n * manipulates the aspectmode settings and the fullLayout is up-to-date.\n */\n fullSceneLayout.aspectratio.x = sceneLayout.aspectratio.x = aspectRatio[0];\n fullSceneLayout.aspectratio.y = sceneLayout.aspectratio.y = aspectRatio[1];\n fullSceneLayout.aspectratio.z = sceneLayout.aspectratio.z = aspectRatio[2];\n\n /*\n * Finally assign the computed aspecratio to the glplot module. This will have an effect\n * on the next render cycle.\n */\n scene.glplot.setAspectratio(fullSceneLayout.aspectratio);\n\n // save 'initial' aspectratio & aspectmode view settings for modebar buttons\n if(!scene.viewInitial.aspectratio) {\n scene.viewInitial.aspectratio = {\n x: fullSceneLayout.aspectratio.x,\n y: fullSceneLayout.aspectratio.y,\n z: fullSceneLayout.aspectratio.z\n };\n }\n if(!scene.viewInitial.aspectmode) {\n scene.viewInitial.aspectmode = fullSceneLayout.aspectmode;\n }\n\n // Update frame position for multi plots\n var domain = fullSceneLayout.domain || null;\n var size = fullLayout._size || null;\n\n if(domain && size) {\n var containerStyle = scene.container.style;\n containerStyle.position = 'absolute';\n containerStyle.left = (size.l + domain.x[0] * size.w) + 'px';\n containerStyle.top = (size.t + (1 - domain.y[1]) * size.h) + 'px';\n containerStyle.width = (size.w * (domain.x[1] - domain.x[0])) + 'px';\n containerStyle.height = (size.h * (domain.y[1] - domain.y[0])) + 'px';\n }\n\n // force redraw so that promise is returned when rendering is completed\n scene.glplot.redraw();\n};\n\nproto.destroy = function() {\n var scene = this;\n\n if(!scene.glplot) return;\n scene.camera.mouseListener.enabled = false;\n scene.container.removeEventListener('wheel', scene.camera.wheelListener);\n scene.camera = null;\n scene.glplot.dispose();\n scene.container.parentNode.removeChild(scene.container);\n scene.glplot = null;\n};\n\n// getCameraArrays :: plotly_coords -> gl-plot3d_coords\n// inverse of getLayoutCamera\nfunction getCameraArrays(camera) {\n return [\n [camera.eye.x, camera.eye.y, camera.eye.z],\n [camera.center.x, camera.center.y, camera.center.z],\n [camera.up.x, camera.up.y, camera.up.z]\n ];\n}\n\n// getLayoutCamera :: gl-plot3d_coords -> plotly_coords\n// inverse of getCameraArrays\nfunction getLayoutCamera(camera) {\n return {\n up: {x: camera.up[0], y: camera.up[1], z: camera.up[2]},\n center: {x: camera.center[0], y: camera.center[1], z: camera.center[2]},\n eye: {x: camera.eye[0], y: camera.eye[1], z: camera.eye[2]},\n projection: {type: (camera._ortho === true) ? 'orthographic' : 'perspective'}\n };\n}\n\n// get camera position in plotly coords from 'gl-plot3d' coords\nproto.getCamera = function() {\n var scene = this;\n scene.camera.view.recalcMatrix(scene.camera.view.lastT());\n return getLayoutCamera(scene.camera);\n};\n\n// set gl-plot3d camera position and scene aspects with a set of plotly coords\nproto.setViewport = function(sceneLayout) {\n var scene = this;\n var cameraData = sceneLayout.camera;\n\n scene.camera.lookAt.apply(this, getCameraArrays(cameraData));\n scene.glplot.setAspectratio(sceneLayout.aspectratio);\n\n var newOrtho = (cameraData.projection.type === 'orthographic');\n var oldOrtho = scene.camera._ortho;\n\n if(newOrtho !== oldOrtho) {\n scene.glplot.redraw(); // TODO: figure out why we need to redraw here?\n scene.glplot.clearRGBA();\n scene.glplot.dispose();\n scene.initializeGLPlot();\n }\n};\n\nproto.isCameraChanged = function(layout) {\n var scene = this;\n var cameraData = scene.getCamera();\n var cameraNestedProp = Lib.nestedProperty(layout, scene.id + '.camera');\n var cameraDataLastSave = cameraNestedProp.get();\n\n function same(x, y, i, j) {\n var vectors = ['up', 'center', 'eye'];\n var components = ['x', 'y', 'z'];\n return y[vectors[i]] && (x[vectors[i]][components[j]] === y[vectors[i]][components[j]]);\n }\n\n var changed = false;\n if(cameraDataLastSave === undefined) {\n changed = true;\n } else {\n for(var i = 0; i < 3; i++) {\n for(var j = 0; j < 3; j++) {\n if(!same(cameraData, cameraDataLastSave, i, j)) {\n changed = true;\n break;\n }\n }\n }\n\n if(!cameraDataLastSave.projection || (\n cameraData.projection &&\n cameraData.projection.type !== cameraDataLastSave.projection.type)) {\n changed = true;\n }\n }\n\n return changed;\n};\n\nproto.isAspectChanged = function(layout) {\n var scene = this;\n var aspectData = scene.glplot.getAspectratio();\n var aspectNestedProp = Lib.nestedProperty(layout, scene.id + '.aspectratio');\n var aspectDataLastSave = aspectNestedProp.get();\n\n return (\n aspectDataLastSave === undefined || (\n aspectDataLastSave.x !== aspectData.x ||\n aspectDataLastSave.y !== aspectData.y ||\n aspectDataLastSave.z !== aspectData.z\n ));\n};\n\n// save camera to user layout (i.e. gd.layout)\nproto.saveLayout = function(layout) {\n var scene = this;\n var fullLayout = scene.fullLayout;\n\n var cameraData;\n var cameraNestedProp;\n var cameraDataLastSave;\n\n var aspectData;\n var aspectNestedProp;\n var aspectDataLastSave;\n\n var cameraChanged = scene.isCameraChanged(layout);\n var aspectChanged = scene.isAspectChanged(layout);\n\n var hasChanged = cameraChanged || aspectChanged;\n if(hasChanged) {\n var preGUI = {};\n if(cameraChanged) {\n cameraData = scene.getCamera();\n cameraNestedProp = Lib.nestedProperty(layout, scene.id + '.camera');\n cameraDataLastSave = cameraNestedProp.get();\n\n preGUI[scene.id + '.camera'] = cameraDataLastSave;\n }\n if(aspectChanged) {\n aspectData = scene.glplot.getAspectratio();\n aspectNestedProp = Lib.nestedProperty(layout, scene.id + '.aspectratio');\n aspectDataLastSave = aspectNestedProp.get();\n\n preGUI[scene.id + '.aspectratio'] = aspectDataLastSave;\n }\n Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, preGUI);\n\n if(cameraChanged) {\n cameraNestedProp.set(cameraData);\n\n var cameraFullNP = Lib.nestedProperty(fullLayout, scene.id + '.camera');\n cameraFullNP.set(cameraData);\n }\n\n if(aspectChanged) {\n aspectNestedProp.set(aspectData);\n\n var aspectFullNP = Lib.nestedProperty(fullLayout, scene.id + '.aspectratio');\n aspectFullNP.set(aspectData);\n\n scene.glplot.redraw();\n }\n }\n\n return hasChanged;\n};\n\nproto.updateFx = function(dragmode, hovermode) {\n var scene = this;\n var camera = scene.camera;\n if(camera) {\n // rotate and orbital are synonymous\n if(dragmode === 'orbit') {\n camera.mode = 'orbit';\n camera.keyBindingMode = 'rotate';\n } else if(dragmode === 'turntable') {\n camera.up = [0, 0, 1];\n camera.mode = 'turntable';\n camera.keyBindingMode = 'rotate';\n\n // The setter for camera.mode animates the transition to z-up,\n // but only if we *don't* explicitly set z-up earlier via the\n // relayout. So push `up` back to layout & fullLayout manually now.\n var gd = scene.graphDiv;\n var fullLayout = gd._fullLayout;\n var fullCamera = scene.fullSceneLayout.camera;\n var x = fullCamera.up.x;\n var y = fullCamera.up.y;\n var z = fullCamera.up.z;\n // only push `up` back to (full)layout if it's going to change\n if(z / Math.sqrt(x * x + y * y + z * z) < 0.999) {\n var attr = scene.id + '.camera.up';\n var zUp = {x: 0, y: 0, z: 1};\n var edits = {};\n edits[attr] = zUp;\n var layout = gd.layout;\n Registry.call('_storeDirectGUIEdit', layout, fullLayout._preGUI, edits);\n fullCamera.up = zUp;\n Lib.nestedProperty(layout, attr).set(zUp);\n }\n } else {\n // none rotation modes [pan or zoom]\n camera.keyBindingMode = dragmode;\n }\n }\n\n // to put dragmode and hovermode on the same grounds from relayout\n scene.fullSceneLayout.hovermode = hovermode;\n};\n\nfunction flipPixels(pixels, w, h) {\n for(var i = 0, q = h - 1; i < q; ++i, --q) {\n for(var j = 0; j < w; ++j) {\n for(var k = 0; k < 4; ++k) {\n var a = 4 * (w * i + j) + k;\n var b = 4 * (w * q + j) + k;\n var tmp = pixels[a];\n pixels[a] = pixels[b];\n pixels[b] = tmp;\n }\n }\n }\n}\n\nfunction correctRGB(pixels, w, h) {\n for(var i = 0; i < h; ++i) {\n for(var j = 0; j < w; ++j) {\n var k = 4 * (w * i + j);\n\n var a = pixels[k + 3]; // alpha\n if(a > 0) {\n var q = 255 / a;\n\n for(var l = 0; l < 3; ++l) { // RGB\n pixels[k + l] = Math.min(q * pixels[k + l], 255);\n }\n }\n }\n }\n}\n\nproto.toImage = function(format) {\n var scene = this;\n\n if(!format) format = 'png';\n if(scene.staticMode) scene.container.appendChild(STATIC_CANVAS);\n\n // Force redraw\n scene.glplot.redraw();\n\n // Grab context and yank out pixels\n var gl = scene.glplot.gl;\n var w = gl.drawingBufferWidth;\n var h = gl.drawingBufferHeight;\n\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n\n var pixels = new Uint8Array(w * h * 4);\n gl.readPixels(0, 0, w, h, gl.RGBA, gl.UNSIGNED_BYTE, pixels);\n flipPixels(pixels, w, h);\n correctRGB(pixels, w, h);\n\n var canvas = document.createElement('canvas');\n canvas.width = w;\n canvas.height = h;\n var context = canvas.getContext('2d', {willReadFrequently: true});\n var imageData = context.createImageData(w, h);\n imageData.data.set(pixels);\n context.putImageData(imageData, 0, 0);\n\n var dataURL;\n\n switch(format) {\n case 'jpeg':\n dataURL = canvas.toDataURL('image/jpeg');\n break;\n case 'webp':\n dataURL = canvas.toDataURL('image/webp');\n break;\n default:\n dataURL = canvas.toDataURL('image/png');\n }\n\n if(scene.staticMode) scene.container.removeChild(STATIC_CANVAS);\n\n return dataURL;\n};\n\nproto.setConvert = function() {\n var scene = this;\n for(var i = 0; i < 3; i++) {\n var ax = scene.fullSceneLayout[axisProperties[i]];\n Axes.setConvert(ax, scene.fullLayout);\n ax.setScale = Lib.noop;\n }\n};\n\nproto.make4thDimension = function() {\n var scene = this;\n var gd = scene.graphDiv;\n var fullLayout = gd._fullLayout;\n\n // mock axis for hover formatting\n scene._mockAxis = {\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B'\n };\n Axes.setConvert(scene._mockAxis, fullLayout);\n};\n\nmodule.exports = Scene;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/fx\":407,\"../../lib\":515,\"../../lib/show_no_webgl_msg\":537,\"../../lib/str2rgbarray\":540,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"./layout/convert\":611,\"./layout/spikes\":614,\"./layout/tick_marks\":615,\"./project\":616,\"has-passive-events\":229,\"webgl-context\":332}],618:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function zip3(x, y, z, len) {\n len = len || x.length;\n\n var result = new Array(len);\n for(var i = 0; i < len; i++) {\n result[i] = [x[i], y[i], z[i]];\n }\n return result;\n};\n\n},{}],619:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('./font_attributes');\nvar animationAttrs = _dereq_('./animation_attributes');\nvar colorAttrs = _dereq_('../components/color/attributes');\nvar drawNewShapeAttrs = _dereq_('../components/shapes/draw_newshape/attributes');\nvar drawNewSelectionAttrs = _dereq_('../components/selections/draw_newselection/attributes');\nvar padAttrs = _dereq_('./pad_attributes');\nvar extendFlat = _dereq_('../lib/extend').extendFlat;\n\nvar globalFont = fontAttrs({\n editType: 'calc',\n});\nglobalFont.family.dflt = '\"Open Sans\", verdana, arial, sans-serif';\nglobalFont.size.dflt = 12;\nglobalFont.color.dflt = colorAttrs.defaultLine;\n\nmodule.exports = {\n font: globalFont,\n title: {\n text: {\n valType: 'string',\n editType: 'layoutstyle',\n },\n font: fontAttrs({\n editType: 'layoutstyle',\n }),\n xref: {\n valType: 'enumerated',\n dflt: 'container',\n values: ['container', 'paper'],\n editType: 'layoutstyle',\n },\n yref: {\n valType: 'enumerated',\n dflt: 'container',\n values: ['container', 'paper'],\n editType: 'layoutstyle',\n },\n x: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'layoutstyle',\n },\n y: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 'auto',\n editType: 'layoutstyle',\n },\n xanchor: {\n valType: 'enumerated',\n dflt: 'auto',\n values: ['auto', 'left', 'center', 'right'],\n editType: 'layoutstyle',\n },\n yanchor: {\n valType: 'enumerated',\n dflt: 'auto',\n values: ['auto', 'top', 'middle', 'bottom'],\n editType: 'layoutstyle',\n },\n pad: extendFlat(padAttrs({editType: 'layoutstyle'}), {\n }),\n editType: 'layoutstyle'\n },\n uniformtext: {\n mode: {\n valType: 'enumerated',\n values: [false, 'hide', 'show'],\n dflt: false,\n editType: 'plot',\n },\n minsize: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n editType: 'plot'\n },\n autosize: {\n valType: 'boolean',\n dflt: false,\n // autosize, width, and height get special editType treatment in _relayout\n // so we can handle noop resizes more efficiently\n editType: 'none',\n },\n width: {\n valType: 'number',\n min: 10,\n dflt: 700,\n editType: 'plot',\n },\n height: {\n valType: 'number',\n min: 10,\n dflt: 450,\n editType: 'plot',\n },\n minreducedwidth: {\n valType: 'number',\n min: 2,\n dflt: 64,\n editType: 'plot',\n },\n minreducedheight: {\n valType: 'number',\n min: 2,\n dflt: 64,\n editType: 'plot',\n },\n margin: {\n l: {\n valType: 'number',\n min: 0,\n dflt: 80,\n editType: 'plot',\n },\n r: {\n valType: 'number',\n min: 0,\n dflt: 80,\n editType: 'plot',\n },\n t: {\n valType: 'number',\n min: 0,\n dflt: 100,\n editType: 'plot',\n },\n b: {\n valType: 'number',\n min: 0,\n dflt: 80,\n editType: 'plot',\n },\n pad: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n autoexpand: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n computed: {\n valType: 'any',\n editType: 'none',\n },\n paper_bgcolor: {\n valType: 'color',\n dflt: colorAttrs.background,\n editType: 'plot',\n },\n plot_bgcolor: {\n // defined here, but set in cartesian.supplyLayoutDefaults\n // because it needs to know if there are (2D) axes or not\n valType: 'color',\n dflt: colorAttrs.background,\n editType: 'layoutstyle',\n },\n autotypenumbers: {\n valType: 'enumerated',\n values: ['convert types', 'strict'],\n dflt: 'convert types',\n editType: 'calc',\n },\n separators: {\n valType: 'string',\n editType: 'plot',\n },\n hidesources: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n showlegend: {\n // handled in legend.supplyLayoutDefaults\n // but included here because it's not in the legend object\n valType: 'boolean',\n editType: 'legend',\n },\n\n colorway: {\n valType: 'colorlist',\n dflt: colorAttrs.defaults,\n editType: 'calc',\n },\n datarevision: {\n valType: 'any',\n editType: 'calc',\n },\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n editrevision: {\n valType: 'any',\n editType: 'none',\n },\n selectionrevision: {\n valType: 'any',\n editType: 'none',\n },\n template: {\n valType: 'any',\n editType: 'calc',\n },\n\n newshape: drawNewShapeAttrs.newshape,\n activeshape: drawNewShapeAttrs.activeshape,\n\n newselection: drawNewSelectionAttrs.newselection,\n activeselection: drawNewSelectionAttrs.activeselection,\n\n meta: {\n valType: 'any',\n arrayOk: true,\n editType: 'plot',\n },\n\n transition: extendFlat({}, animationAttrs.transition, {\n editType: 'none'\n }),\n _deprecated: {\n title: {\n valType: 'string',\n editType: 'layoutstyle',\n },\n titlefont: fontAttrs({\n editType: 'layoutstyle',\n })\n }\n};\n\n},{\"../components/color/attributes\":366,\"../components/selections/draw_newselection/attributes\":451,\"../components/shapes/draw_newshape/attributes\":463,\"../lib/extend\":505,\"./animation_attributes\":560,\"./font_attributes\":594,\"./pad_attributes\":627}],620:[function(_dereq_,module,exports){\n'use strict';\n\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar requiredVersion = '1.10.1';\n\nvar OSM = '© OpenStreetMap contributors';\nvar carto = [\n '© Carto',\n OSM\n].join(' ');\n\nvar stamenTerrainOrToner = [\n 'Map tiles by Stamen Design',\n 'under CC BY 3.0',\n '|',\n 'Data by OpenStreetMap contributors',\n 'under ODbL'\n].join(' ');\n\nvar stamenWaterColor = [\n 'Map tiles by Stamen Design',\n 'under CC BY 3.0',\n '|',\n 'Data by OpenStreetMap contributors',\n 'under CC BY SA'\n].join(' ');\n\nvar stylesNonMapbox = {\n 'open-street-map': {\n id: 'osm',\n version: 8,\n sources: {\n 'plotly-osm-tiles': {\n type: 'raster',\n attribution: OSM,\n tiles: [\n 'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png',\n 'https://b.tile.openstreetmap.org/{z}/{x}/{y}.png'\n ],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-osm-tiles',\n type: 'raster',\n source: 'plotly-osm-tiles',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'white-bg': {\n id: 'white-bg',\n version: 8,\n sources: {},\n layers: [{\n id: 'white-bg',\n type: 'background',\n paint: {'background-color': '#FFFFFF'},\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'carto-positron': {\n id: 'carto-positron',\n version: 8,\n sources: {\n 'plotly-carto-positron': {\n type: 'raster',\n attribution: carto,\n tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-carto-positron',\n type: 'raster',\n source: 'plotly-carto-positron',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'carto-darkmatter': {\n id: 'carto-darkmatter',\n version: 8,\n sources: {\n 'plotly-carto-darkmatter': {\n type: 'raster',\n attribution: carto,\n tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-carto-darkmatter',\n type: 'raster',\n source: 'plotly-carto-darkmatter',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'stamen-terrain': {\n id: 'stamen-terrain',\n version: 8,\n sources: {\n 'plotly-stamen-terrain': {\n type: 'raster',\n attribution: stamenTerrainOrToner,\n tiles: ['https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-stamen-terrain',\n type: 'raster',\n source: 'plotly-stamen-terrain',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'stamen-toner': {\n id: 'stamen-toner',\n version: 8,\n sources: {\n 'plotly-stamen-toner': {\n type: 'raster',\n attribution: stamenTerrainOrToner,\n tiles: ['https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-stamen-toner',\n type: 'raster',\n source: 'plotly-stamen-toner',\n minzoom: 0,\n maxzoom: 22\n }]\n },\n 'stamen-watercolor': {\n id: 'stamen-watercolor',\n version: 8,\n sources: {\n 'plotly-stamen-watercolor': {\n type: 'raster',\n attribution: stamenWaterColor,\n tiles: ['https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png'],\n tileSize: 256\n }\n },\n layers: [{\n id: 'plotly-stamen-watercolor',\n type: 'raster',\n source: 'plotly-stamen-watercolor',\n minzoom: 0,\n maxzoom: 22\n }]\n }\n};\n\nvar styleValuesNonMapbox = sortObjectKeys(stylesNonMapbox);\n\nmodule.exports = {\n requiredVersion: requiredVersion,\n\n styleUrlPrefix: 'mapbox://styles/mapbox/',\n styleUrlSuffix: 'v9',\n\n styleValuesMapbox: ['basic', 'streets', 'outdoors', 'light', 'dark', 'satellite', 'satellite-streets'],\n styleValueDflt: 'basic',\n stylesNonMapbox: stylesNonMapbox,\n styleValuesNonMapbox: styleValuesNonMapbox,\n\n traceLayerPrefix: 'plotly-trace-layer-',\n layoutLayerPrefix: 'plotly-layout-layer-',\n\n wrongVersionErrorMsg: [\n 'Your custom plotly.js bundle is not using the correct mapbox-gl version',\n 'Please install mapbox-gl@' + requiredVersion + '.'\n ].join('\\n'),\n\n noAccessTokenErrorMsg: [\n 'Missing Mapbox access token.',\n 'Mapbox trace type require a Mapbox access token to be registered.',\n 'For example:',\n ' Plotly.newPlot(gd, data, layout, { mapboxAccessToken: \\'my-access-token\\' });',\n 'More info here: https://www.mapbox.com/help/define-access-token/'\n ].join('\\n'),\n\n missingStyleErrorMsg: [\n 'No valid mapbox style found, please set `mapbox.style` to one of:',\n styleValuesNonMapbox.join(', '),\n 'or register a Mapbox access token to use a Mapbox-served style.'\n ].join('\\n'),\n\n multipleTokensErrorMsg: [\n 'Set multiple mapbox access token across different mapbox subplot,',\n 'using first token found as mapbox-gl does not allow multiple' +\n 'access tokens on the same page.'\n ].join('\\n'),\n\n mapOnErrorMsg: 'Mapbox error.',\n\n // Mapbox logo for static export\n mapboxLogo: {\n path0: 'm 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z',\n path1: 'M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z',\n path2: 'M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z',\n polygon: '11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34'\n },\n\n // a subset of node_modules/mapbox-gl/dist/mapbox-gl.css\n styleRules: {\n map: 'overflow:hidden;position:relative;',\n 'missing-css': 'display:none;',\n 'canary': 'background-color:salmon;',\n\n // Reusing CSS directives from: https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.1/mapbox-gl.css\n 'ctrl-bottom-left': 'position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;',\n 'ctrl-bottom-right': 'position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;',\n 'ctrl': 'clear: both; pointer-events: auto; transform: translate(0, 0);',\n\n // Compact ctrl\n 'ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner': 'display: none;',\n 'ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner': 'display: block; margin-top:2px',\n 'ctrl-attrib.mapboxgl-compact:hover': 'padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;',\n 'ctrl-attrib.mapboxgl-compact::after': 'content: \"\"; cursor: pointer; position: absolute; background-image: url(\\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"%3E %3Cpath fill=\"%23333333\" fill-rule=\"evenodd\" d=\"M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0\"/%3E %3C/svg%3E\\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',\n 'ctrl-attrib.mapboxgl-compact': 'min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;',\n 'ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after': 'bottom: 0; right: 0',\n 'ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after': 'bottom: 0; left: 0',\n\n 'ctrl-bottom-left .mapboxgl-ctrl': 'margin: 0 0 10px 10px; float: left;',\n 'ctrl-bottom-right .mapboxgl-ctrl': 'margin: 0 10px 10px 0; float: right;',\n\n 'ctrl-attrib': 'color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px',\n 'ctrl-attrib a': 'color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px',\n 'ctrl-attrib a:hover': 'color: inherit; text-decoration: underline;',\n\n 'ctrl-attrib .mapbox-improve-map': 'font-weight: bold; margin-left: 2px;',\n 'attrib-empty': 'display: none;',\n\n // Compact Mapbox logo without text\n 'ctrl-logo': 'display:block; width: 21px; height: 21px; background-image: url(\\'data:image/svg+xml;charset=utf-8,%3C?xml version=\"1.0\" encoding=\"utf-8\"?%3E %3Csvg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 21 21\" style=\"enable-background:new 0 0 21 21;\" xml:space=\"preserve\"%3E%3Cg transform=\"translate(0,0.01)\"%3E%3Cpath d=\"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z\" style=\"opacity:0.9;fill:%23ffffff;enable-background:new\" class=\"st0\"/%3E%3Cpath d=\"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z\" style=\"opacity:0.35;enable-background:new\" class=\"st1\"/%3E%3Cpath d=\"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z\" style=\"opacity:0.35;enable-background:new\" class=\"st1\"/%3E%3Cpolygon points=\"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 \" style=\"opacity:0.9;fill:%23ffffff;enable-background:new\" class=\"st0\"/%3E%3C/g%3E%3C/svg%3E\\')'\n\n // Mapbox logo WITH text below (commented out for now)\n // 'ctrl-logo': 'width: 85px; height: 21px; margin: 0 0 -3px -3px; display: block; background-repeat: no-repeat; cursor: pointer; background-image: url(\\'data:image/svg+xml;charset=utf-8,%3C?xml version=\"1.0\" encoding=\"utf-8\"?%3E%3Csvg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 84.49 21\" style=\"enable-background:new 0 0 84.49 21;\" xml:space=\"preserve\"%3E%3Cg%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M83.25,14.26c0,0.12-0.09,0.21-0.21,0.21h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39l-1.44,2.39 c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68L76.2,6.84 c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.4-2.35 c0.06-0.11,0.18-0.17,0.3-0.17H83c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.37,3.63l2.43,3.67 C83.24,14.18,83.25,14.22,83.25,14.26z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M66.24,9.59c-0.39-1.88-1.96-3.28-3.84-3.28c-1.03,0-2.03,0.42-2.73,1.18V3.51c0-0.13-0.1-0.23-0.23-0.23h-1.4 c-0.13,0-0.23,0.11-0.23,0.23v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.11,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.73,1.18 c1.88,0,3.45-1.41,3.84-3.29C66.37,10.79,66.37,10.18,66.24,9.59L66.24,9.59z M62.08,13c-1.32,0-2.39-1.11-2.41-2.48v-0.06 c0.02-1.38,1.09-2.48,2.41-2.48s2.42,1.12,2.42,2.51S63.41,13,62.08,13z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M71.67,6.32c-1.98-0.01-3.72,1.35-4.16,3.29c-0.13,0.59-0.13,1.19,0,1.77c0.44,1.94,2.17,3.32,4.17,3.3 c2.35,0,4.26-1.87,4.26-4.19S74.04,6.32,71.67,6.32z M71.65,13.01c-1.33,0-2.42-1.12-2.42-2.51s1.08-2.52,2.42-2.52 c1.33,0,2.42,1.12,2.42,2.51S72.99,13,71.65,13.01L71.65,13.01z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M62.08,7.98c-1.32,0-2.39,1.11-2.41,2.48v0.06C59.68,11.9,60.75,13,62.08,13s2.42-1.12,2.42-2.51 S63.41,7.98,62.08,7.98z M62.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25 c0.63,0,1.17,0.57,1.17,1.27C63.24,11.2,62.73,11.76,62.08,11.76z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M71.65,7.98c-1.33,0-2.42,1.12-2.42,2.51S70.32,13,71.65,13s2.42-1.12,2.42-2.51S72.99,7.98,71.65,7.98z M71.65,11.76c-0.64,0-1.17-0.57-1.17-1.27c0-0.7,0.53-1.26,1.17-1.26s1.17,0.57,1.17,1.27C72.82,11.21,72.29,11.76,71.65,11.76z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M45.74,6.53h-1.4c-0.13,0-0.23,0.11-0.23,0.23v0.73c-0.71-0.75-1.7-1.18-2.73-1.18 c-2.17,0-3.94,1.87-3.94,4.19s1.77,4.19,3.94,4.19c1.04,0,2.03-0.43,2.73-1.19v0.73c0,0.13,0.1,0.23,0.23,0.23h1.4 c0.13,0,0.23-0.11,0.23-0.23V6.74c0-0.12-0.09-0.22-0.22-0.22C45.75,6.53,45.75,6.53,45.74,6.53z M44.12,10.53 C44.11,11.9,43.03,13,41.71,13s-2.42-1.12-2.42-2.51s1.08-2.52,2.4-2.52c1.33,0,2.39,1.11,2.41,2.48L44.12,10.53z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M41.71,7.98c-1.33,0-2.42,1.12-2.42,2.51S40.37,13,41.71,13s2.39-1.11,2.41-2.48v-0.06 C44.1,9.09,43.03,7.98,41.71,7.98z M40.55,10.49c0-0.7,0.52-1.27,1.17-1.27c0.64,0,1.14,0.56,1.17,1.25v0.04 c-0.01,0.68-0.53,1.24-1.17,1.24C41.08,11.75,40.55,11.19,40.55,10.49z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M52.41,6.32c-1.03,0-2.03,0.42-2.73,1.18V6.75c0-0.13-0.1-0.23-0.23-0.23h-1.4c-0.13,0-0.23,0.11-0.23,0.23 v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.1,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.74,1.18c2.17,0,3.94-1.87,3.94-4.19 S54.58,6.32,52.41,6.32z M52.08,13.01c-1.32,0-2.39-1.11-2.42-2.48v-0.07c0.02-1.38,1.09-2.49,2.4-2.49c1.32,0,2.41,1.12,2.41,2.51 S53.4,13,52.08,13.01L52.08,13.01z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M52.08,7.98c-1.32,0-2.39,1.11-2.42,2.48v0.06c0.03,1.38,1.1,2.48,2.42,2.48s2.41-1.12,2.41-2.51 S53.4,7.98,52.08,7.98z M52.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25c0.63,0,1.17,0.58,1.17,1.27 S52.72,11.76,52.08,11.76z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M36.08,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68c0-0.98-0.74-1.71-1.62-1.71 c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.11,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V6.74 c0.01-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03c1.09,0,2.09,0.6,2.6,1.55 c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78L36.08,14.24z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M84.34,13.59l-0.07-0.13l-1.96-2.99l1.94-2.95c0.44-0.67,0.26-1.56-0.41-2.02c-0.02,0-0.03,0-0.04-0.01 c-0.23-0.15-0.5-0.22-0.78-0.22h-1.61c-0.56,0-1.08,0.29-1.37,0.78L79.72,6.6l-0.34-0.56C79.09,5.56,78.57,5.27,78,5.27h-1.6 c-0.6,0-1.13,0.37-1.35,0.92c-2.19-1.66-5.28-1.47-7.26,0.45c-0.35,0.34-0.65,0.72-0.89,1.14c-0.9-1.62-2.58-2.72-4.5-2.72 c-0.5,0-1.01,0.07-1.48,0.23V3.51c0-0.82-0.66-1.48-1.47-1.48h-1.4c-0.81,0-1.47,0.66-1.47,1.47v3.75 c-0.95-1.36-2.5-2.18-4.17-2.19c-0.74,0-1.46,0.16-2.12,0.47c-0.24-0.17-0.54-0.26-0.84-0.26h-1.4c-0.45,0-0.87,0.21-1.15,0.56 c-0.02-0.03-0.04-0.05-0.07-0.08c-0.28-0.3-0.68-0.47-1.09-0.47h-1.39c-0.3,0-0.6,0.09-0.84,0.26c-0.67-0.3-1.39-0.46-2.12-0.46 c-1.83,0-3.43,1-4.37,2.5c-0.2-0.46-0.48-0.89-0.83-1.25c-0.8-0.81-1.89-1.25-3.02-1.25h-0.01c-0.89,0.01-1.75,0.33-2.46,0.88 c-0.74-0.57-1.64-0.88-2.57-0.88H28.1c-0.29,0-0.58,0.03-0.86,0.11c-0.28,0.06-0.56,0.16-0.82,0.28c-0.21-0.12-0.45-0.18-0.7-0.18 h-1.4c-0.82,0-1.47,0.66-1.47,1.47v7.5c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.48-0.66,1.48-1.48l0,0V9.79 c0.03-0.36,0.23-0.59,0.36-0.59c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41c0.82,0,1.47-0.66,1.47-1.47 l-0.01-4.57c0.06-0.32,0.25-0.47,0.35-0.47c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41 c0.82,0,1.47-0.66,1.47-1.47v-0.38c0.96,1.29,2.46,2.06,4.06,2.06c0.74,0,1.46-0.16,2.12-0.47c0.24,0.17,0.54,0.26,0.84,0.26h1.39 c0.3,0,0.6-0.09,0.84-0.26v2.01c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.47-0.66,1.47-1.47v-1.77c0.48,0.15,0.99,0.23,1.49,0.22 c1.7,0,3.22-0.87,4.17-2.2v0.52c0,0.82,0.66,1.47,1.47,1.47h1.4c0.3,0,0.6-0.09,0.84-0.26c0.66,0.31,1.39,0.47,2.12,0.47 c1.92,0,3.6-1.1,4.49-2.73c1.54,2.65,4.95,3.53,7.58,1.98c0.18-0.11,0.36-0.22,0.53-0.36c0.22,0.55,0.76,0.91,1.35,0.9H78 c0.56,0,1.08-0.29,1.37-0.78l0.37-0.61l0.37,0.61c0.29,0.48,0.81,0.78,1.38,0.78h1.6c0.81,0,1.46-0.66,1.45-1.46 C84.49,14.02,84.44,13.8,84.34,13.59L84.34,13.59z M35.86,14.47h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23 V9.68c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23 V6.74c0.01-0.13,0.11-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03 c1.09,0,2.09,0.6,2.6,1.55c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78l0.01,5.16C36.09,14.36,35.98,14.46,35.86,14.47 L35.86,14.47z M45.97,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V13.5c-0.7,0.76-1.69,1.18-2.72,1.18 c-2.17,0-3.94-1.87-3.94-4.19s1.77-4.19,3.94-4.19c1.03,0,2.02,0.43,2.73,1.18V6.74c0-0.13,0.1-0.23,0.23-0.23h1.4 c0.12-0.01,0.22,0.08,0.23,0.21c0,0.01,0,0.01,0,0.02v7.51h-0.01V14.24z M52.41,14.67c-1.03,0-2.02-0.43-2.73-1.18v3.97 c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.1-0.23-0.23V6.75c0-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.23,0.11,0.23,0.23v0.73 c0.71-0.76,1.7-1.18,2.73-1.18c2.17,0,3.94,1.86,3.94,4.18S54.58,14.67,52.41,14.67z M66.24,11.39c-0.39,1.87-1.96,3.29-3.84,3.29 c-1.03,0-2.02-0.43-2.73-1.18v0.73c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V3.51c0-0.13,0.1-0.23,0.23-0.23 h1.4c0.13,0,0.23,0.11,0.23,0.23v3.97c0.71-0.75,1.7-1.18,2.73-1.17c1.88,0,3.45,1.4,3.84,3.28C66.37,10.19,66.37,10.8,66.24,11.39 L66.24,11.39L66.24,11.39z M71.67,14.68c-2,0.01-3.73-1.35-4.17-3.3c-0.13-0.59-0.13-1.19,0-1.77c0.44-1.94,2.17-3.31,4.17-3.3 c2.36,0,4.26,1.87,4.26,4.19S74.03,14.68,71.67,14.68L71.67,14.68z M83.04,14.47h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39 l-1.44,2.39c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68 L76.2,6.84c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.41-2.36 c0.06-0.11,0.18-0.17,0.3-0.17h1.61c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.38,3.64l2.43,3.67 c0.02,0.03,0.03,0.07,0.03,0.12C83.25,14.38,83.16,14.47,83.04,14.47L83.04,14.47L83.04,14.47z\"/%3E %3Cpath class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" d=\"M10.5,1.24c-5.11,0-9.25,4.15-9.25,9.25s4.15,9.25,9.25,9.25s9.25-4.15,9.25-9.25 C19.75,5.38,15.61,1.24,10.5,1.24z M14.89,12.77c-1.93,1.93-4.78,2.31-6.7,2.31c-0.7,0-1.41-0.05-2.1-0.16c0,0-1.02-5.64,2.14-8.81 c0.83-0.83,1.95-1.28,3.13-1.28c1.27,0,2.49,0.51,3.39,1.42C16.59,8.09,16.64,11,14.89,12.77z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M10.5-0.01C4.7-0.01,0,4.7,0,10.49s4.7,10.5,10.5,10.5S21,16.29,21,10.49C20.99,4.7,16.3-0.01,10.5-0.01z M10.5,19.74c-5.11,0-9.25-4.15-9.25-9.25s4.14-9.26,9.25-9.26s9.25,4.15,9.25,9.25C19.75,15.61,15.61,19.74,10.5,19.74z\"/%3E %3Cpath class=\"st1\" style=\"opacity:0.35; enable-background:new;\" d=\"M14.74,6.25C12.9,4.41,9.98,4.35,8.23,6.1c-3.16,3.17-2.14,8.81-2.14,8.81s5.64,1.02,8.81-2.14 C16.64,11,16.59,8.09,14.74,6.25z M12.47,10.34l-0.91,1.87l-0.9-1.87L8.8,9.43l1.86-0.9l0.9-1.87l0.91,1.87l1.86,0.9L12.47,10.34z\"/%3E %3Cpolygon class=\"st0\" style=\"opacity:0.9; fill: %23FFFFFF; enable-background: new;\" points=\"14.33,9.43 12.47,10.34 11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 \"/%3E%3C/g%3E%3C/svg%3E\\');'\n }\n};\n\n},{\"../../lib/sort_object_keys\":538}],621:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n/**\n * Convert plotly.js 'textposition' to mapbox-gl 'anchor' and 'offset'\n * (with the help of the icon size).\n *\n * @param {string} textpostion : plotly.js textposition value\n * @param {number} iconSize : plotly.js icon size (e.g. marker.size for traces)\n *\n * @return {object}\n * - anchor\n * - offset\n */\nmodule.exports = function convertTextOpts(textposition, iconSize) {\n var parts = textposition.split(' ');\n var vPos = parts[0];\n var hPos = parts[1];\n\n // ballpack values\n var factor = Lib.isArrayOrTypedArray(iconSize) ? Lib.mean(iconSize) : iconSize;\n var xInc = 0.5 + (factor / 100);\n var yInc = 1.5 + (factor / 100);\n\n var anchorVals = ['', ''];\n var offset = [0, 0];\n\n switch(vPos) {\n case 'top':\n anchorVals[0] = 'top';\n offset[1] = -yInc;\n break;\n case 'bottom':\n anchorVals[0] = 'bottom';\n offset[1] = yInc;\n break;\n }\n\n switch(hPos) {\n case 'left':\n anchorVals[1] = 'right';\n offset[0] = -xInc;\n break;\n case 'right':\n anchorVals[1] = 'left';\n offset[0] = xInc;\n break;\n }\n\n // Mapbox text-anchor must be one of:\n // center, left, right, top, bottom,\n // top-left, top-right, bottom-left, bottom-right\n\n var anchor;\n if(anchorVals[0] && anchorVals[1]) anchor = anchorVals.join('-');\n else if(anchorVals[0]) anchor = anchorVals[0];\n else if(anchorVals[1]) anchor = anchorVals[1];\n else anchor = 'center';\n\n return { anchor: anchor, offset: offset };\n};\n\n},{\"../../lib\":515}],622:[function(_dereq_,module,exports){\n'use strict';\n\nvar mapboxgl = _dereq_('mapbox-gl/dist/mapbox-gl-unminified');\n\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar strScale = Lib.strScale;\nvar getSubplotCalcData = _dereq_('../../plots/get_data').getSubplotCalcData;\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Mapbox = _dereq_('./mapbox');\n\nvar MAPBOX = 'mapbox';\n\nvar constants = exports.constants = _dereq_('./constants');\n\nexports.name = MAPBOX;\n\nexports.attr = 'subplot';\n\nexports.idRoot = MAPBOX;\n\nexports.idRegex = exports.attrRegex = Lib.counterRegex(MAPBOX);\n\nexports.attributes = {\n subplot: {\n valType: 'subplotid',\n dflt: 'mapbox',\n editType: 'calc',\n }\n};\n\nexports.layoutAttributes = _dereq_('./layout_attributes');\n\nexports.supplyLayoutDefaults = _dereq_('./layout_defaults');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var mapboxIds = fullLayout._subplots[MAPBOX];\n\n if(mapboxgl.version !== constants.requiredVersion) {\n throw new Error(constants.wrongVersionErrorMsg);\n }\n\n var accessToken = findAccessToken(gd, mapboxIds);\n mapboxgl.accessToken = accessToken;\n\n for(var i = 0; i < mapboxIds.length; i++) {\n var id = mapboxIds[i];\n var subplotCalcData = getSubplotCalcData(calcData, MAPBOX, id);\n var opts = fullLayout[id];\n var mapbox = opts._subplot;\n\n if(!mapbox) {\n mapbox = new Mapbox(gd, id);\n fullLayout[id]._subplot = mapbox;\n }\n\n if(!mapbox.viewInitial) {\n mapbox.viewInitial = {\n center: Lib.extendFlat({}, opts.center),\n zoom: opts.zoom,\n bearing: opts.bearing,\n pitch: opts.pitch\n };\n }\n\n mapbox.plot(subplotCalcData, fullLayout, gd._promises);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldMapboxKeys = oldFullLayout._subplots[MAPBOX] || [];\n\n for(var i = 0; i < oldMapboxKeys.length; i++) {\n var oldMapboxKey = oldMapboxKeys[i];\n\n if(!newFullLayout[oldMapboxKey] && !!oldFullLayout[oldMapboxKey]._subplot) {\n oldFullLayout[oldMapboxKey]._subplot.destroy();\n }\n }\n};\n\nexports.toSVG = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[MAPBOX];\n var size = fullLayout._size;\n\n for(var i = 0; i < subplotIds.length; i++) {\n var opts = fullLayout[subplotIds[i]];\n var domain = opts.domain;\n var mapbox = opts._subplot;\n\n var imageData = mapbox.toImage('png');\n var image = fullLayout._glimages.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n x: size.l + size.w * domain.x[0],\n y: size.t + size.h * (1 - domain.y[1]),\n width: size.w * (domain.x[1] - domain.x[0]),\n height: size.h * (domain.y[1] - domain.y[0]),\n preserveAspectRatio: 'none'\n });\n\n var subplotDiv = d3.select(opts._subplot.div);\n\n // Append logo if visible\n var hidden = subplotDiv.select('.mapboxgl-ctrl-logo').node().offsetParent === null;\n if(!hidden) {\n var logo = fullLayout._glimages.append('g');\n logo.attr('transform', strTranslate(size.l + size.w * domain.x[0] + 10, size.t + size.h * (1 - domain.y[0]) - 31));\n logo.append('path')\n .attr('d', constants.mapboxLogo.path0)\n .style({\n opacity: 0.9,\n fill: '#ffffff',\n 'enable-background': 'new'\n });\n\n logo.append('path')\n .attr('d', constants.mapboxLogo.path1)\n .style('opacity', 0.35)\n .style('enable-background', 'new');\n\n logo.append('path')\n .attr('d', constants.mapboxLogo.path2)\n .style('opacity', 0.35)\n .style('enable-background', 'new');\n\n logo.append('polygon')\n .attr('points', constants.mapboxLogo.polygon)\n .style({\n opacity: 0.9,\n fill: '#ffffff',\n 'enable-background': 'new'\n });\n }\n\n // Add attributions\n var attributions = subplotDiv\n .select('.mapboxgl-ctrl-attrib').text()\n .replace('Improve this map', '');\n\n var attributionGroup = fullLayout._glimages.append('g');\n\n var attributionText = attributionGroup.append('text');\n attributionText\n .text(attributions)\n .classed('static-attribution', true)\n .attr({\n 'font-size': 12,\n 'font-family': 'Arial',\n 'color': 'rgba(0, 0, 0, 0.75)',\n 'text-anchor': 'end',\n 'data-unformatted': attributions\n });\n\n var bBox = Drawing.bBox(attributionText.node());\n\n // Break into multiple lines twice larger than domain\n var maxWidth = size.w * (domain.x[1] - domain.x[0]);\n if((bBox.width > maxWidth / 2)) {\n var multilineAttributions = attributions.split('|').join('
');\n attributionText\n .text(multilineAttributions)\n .attr('data-unformatted', multilineAttributions)\n .call(svgTextUtils.convertToTspans, gd);\n\n bBox = Drawing.bBox(attributionText.node());\n }\n attributionText.attr('transform', strTranslate(-3, -bBox.height + 8));\n\n // Draw white rectangle behind text\n attributionGroup\n .insert('rect', '.static-attribution')\n .attr({\n x: -bBox.width - 6,\n y: -bBox.height - 3,\n width: bBox.width + 6,\n height: bBox.height + 3,\n fill: 'rgba(255, 255, 255, 0.75)'\n });\n\n // Scale down if larger than domain\n var scaleRatio = 1;\n if((bBox.width + 6) > maxWidth) scaleRatio = maxWidth / (bBox.width + 6);\n\n var offset = [(size.l + size.w * domain.x[1]), (size.t + size.h * (1 - domain.y[0]))];\n attributionGroup.attr('transform', strTranslate(offset[0], offset[1]) + strScale(scaleRatio));\n }\n};\n\n// N.B. mapbox-gl only allows one accessToken to be set per page:\n// https://github.com/mapbox/mapbox-gl-js/issues/6331\nfunction findAccessToken(gd, mapboxIds) {\n var fullLayout = gd._fullLayout;\n var context = gd._context;\n\n // special case for Mapbox Atlas users\n if(context.mapboxAccessToken === '') return '';\n\n var tokensUseful = [];\n var tokensListed = [];\n var hasOneSetMapboxStyle = false;\n var wontWork = false;\n\n // Take the first token we find in a mapbox subplot.\n // These default to the context value but may be overridden.\n for(var i = 0; i < mapboxIds.length; i++) {\n var opts = fullLayout[mapboxIds[i]];\n var token = opts.accesstoken;\n\n if(isMapboxStyle(opts.style)) {\n if(token) {\n Lib.pushUnique(tokensUseful, token);\n } else {\n if(isMapboxStyle(opts._input.style)) {\n Lib.error('Uses Mapbox map style, but did not set an access token.');\n hasOneSetMapboxStyle = true;\n }\n wontWork = true;\n }\n }\n\n if(token) {\n Lib.pushUnique(tokensListed, token);\n }\n }\n\n if(wontWork) {\n var msg = hasOneSetMapboxStyle ?\n constants.noAccessTokenErrorMsg :\n constants.missingStyleErrorMsg;\n Lib.error(msg);\n throw new Error(msg);\n }\n\n if(tokensUseful.length) {\n if(tokensUseful.length > 1) {\n Lib.warn(constants.multipleTokensErrorMsg);\n }\n return tokensUseful[0];\n } else {\n if(tokensListed.length) {\n Lib.log([\n 'Listed mapbox access token(s)', tokensListed.join(','),\n 'but did not use a Mapbox map style, ignoring token(s).'\n ].join(' '));\n }\n return '';\n }\n}\n\nfunction isMapboxStyle(s) {\n return typeof s === 'string' && (\n constants.styleValuesMapbox.indexOf(s) !== -1 ||\n s.indexOf('mapbox://') === 0\n );\n}\n\nexports.updateFx = function(gd) {\n var fullLayout = gd._fullLayout;\n var subplotIds = fullLayout._subplots[MAPBOX];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var subplotObj = fullLayout[subplotIds[i]]._subplot;\n subplotObj.updateFx(fullLayout);\n }\n};\n\n},{\"../../components/drawing\":389,\"../../constants/xmlns_namespaces\":492,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/get_data\":602,\"./constants\":620,\"./layout_attributes\":624,\"./layout_defaults\":625,\"./mapbox\":626,\"@plotly/d3\":58,\"mapbox-gl/dist/mapbox-gl-unminified\":239}],623:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar sanitizeHTML = _dereq_('../../lib/svg_text_utils').sanitizeHTML;\nvar convertTextOpts = _dereq_('./convert_text_opts');\nvar constants = _dereq_('./constants');\n\nfunction MapboxLayer(subplot, index) {\n this.subplot = subplot;\n\n this.uid = subplot.uid + '-' + index;\n this.index = index;\n\n this.idSource = 'source-' + this.uid;\n this.idLayer = constants.layoutLayerPrefix + this.uid;\n\n // some state variable to check if a remove/add step is needed\n this.sourceType = null;\n this.source = null;\n this.layerType = null;\n this.below = null;\n\n // is layer currently visible\n this.visible = false;\n}\n\nvar proto = MapboxLayer.prototype;\n\nproto.update = function update(opts) {\n if(!this.visible) {\n // IMPORTANT: must create source before layer to not cause errors\n this.updateSource(opts);\n this.updateLayer(opts);\n } else if(this.needsNewImage(opts)) {\n this.updateImage(opts);\n } else if(this.needsNewSource(opts)) {\n // IMPORTANT: must delete layer before source to not cause errors\n this.removeLayer();\n this.updateSource(opts);\n this.updateLayer(opts);\n } else if(this.needsNewLayer(opts)) {\n this.updateLayer(opts);\n } else {\n this.updateStyle(opts);\n }\n\n this.visible = isVisible(opts);\n};\n\nproto.needsNewImage = function(opts) {\n var map = this.subplot.map;\n return (\n map.getSource(this.idSource) &&\n this.sourceType === 'image' &&\n opts.sourcetype === 'image' &&\n (this.source !== opts.source ||\n JSON.stringify(this.coordinates) !==\n JSON.stringify(opts.coordinates))\n );\n};\n\nproto.needsNewSource = function(opts) {\n // for some reason changing layer to 'fill' or 'symbol'\n // w/o changing the source throws an exception in mapbox-gl 0.18 ;\n // stay safe and make new source on type changes\n return (\n this.sourceType !== opts.sourcetype ||\n JSON.stringify(this.source) !== JSON.stringify(opts.source) ||\n this.layerType !== opts.type\n );\n};\n\nproto.needsNewLayer = function(opts) {\n return (\n this.layerType !== opts.type ||\n this.below !== this.subplot.belowLookup['layout-' + this.index]\n );\n};\n\nproto.lookupBelow = function() {\n return this.subplot.belowLookup['layout-' + this.index];\n};\n\nproto.updateImage = function(opts) {\n var map = this.subplot.map;\n map.getSource(this.idSource).updateImage({\n url: opts.source, coordinates: opts.coordinates\n });\n\n // Since the `updateImage` control flow doesn't call updateLayer,\n // We need to take care of moving the image layer to match the location\n // where updateLayer would have placed it.\n var _below = this.findFollowingMapboxLayerId(this.lookupBelow());\n if(_below !== null) {\n this.subplot.map.moveLayer(this.idLayer, _below);\n }\n};\n\nproto.updateSource = function(opts) {\n var map = this.subplot.map;\n\n if(map.getSource(this.idSource)) map.removeSource(this.idSource);\n\n this.sourceType = opts.sourcetype;\n this.source = opts.source;\n\n if(!isVisible(opts)) return;\n\n var sourceOpts = convertSourceOpts(opts);\n\n map.addSource(this.idSource, sourceOpts);\n};\n\nproto.findFollowingMapboxLayerId = function(below) {\n if(below === 'traces') {\n var mapLayers = this.subplot.getMapLayers();\n\n // find id of first plotly trace layer\n for(var i = 0; i < mapLayers.length; i++) {\n var layerId = mapLayers[i].id;\n if(typeof layerId === 'string' &&\n layerId.indexOf(constants.traceLayerPrefix) === 0\n ) {\n below = layerId;\n break;\n }\n }\n }\n return below;\n};\n\nproto.updateLayer = function(opts) {\n var subplot = this.subplot;\n var convertedOpts = convertOpts(opts);\n var below = this.lookupBelow();\n var _below = this.findFollowingMapboxLayerId(below);\n\n this.removeLayer();\n\n if(isVisible(opts)) {\n subplot.addLayer({\n id: this.idLayer,\n source: this.idSource,\n 'source-layer': opts.sourcelayer || '',\n type: opts.type,\n minzoom: opts.minzoom,\n maxzoom: opts.maxzoom,\n layout: convertedOpts.layout,\n paint: convertedOpts.paint\n }, _below);\n }\n\n this.layerType = opts.type;\n this.below = below;\n};\n\nproto.updateStyle = function(opts) {\n if(isVisible(opts)) {\n var convertedOpts = convertOpts(opts);\n this.subplot.setOptions(this.idLayer, 'setLayoutProperty', convertedOpts.layout);\n this.subplot.setOptions(this.idLayer, 'setPaintProperty', convertedOpts.paint);\n }\n};\n\nproto.removeLayer = function() {\n var map = this.subplot.map;\n if(map.getLayer(this.idLayer)) {\n map.removeLayer(this.idLayer);\n }\n};\n\nproto.dispose = function() {\n var map = this.subplot.map;\n if(map.getLayer(this.idLayer)) map.removeLayer(this.idLayer);\n if(map.getSource(this.idSource)) map.removeSource(this.idSource);\n};\n\nfunction isVisible(opts) {\n if(!opts.visible) return false;\n\n var source = opts.source;\n\n if(Array.isArray(source) && source.length > 0) {\n for(var i = 0; i < source.length; i++) {\n if(typeof source[i] !== 'string' || source[i].length === 0) {\n return false;\n }\n }\n return true;\n }\n\n return Lib.isPlainObject(source) ||\n (typeof source === 'string' && source.length > 0);\n}\n\nfunction convertOpts(opts) {\n var layout = {};\n var paint = {};\n\n switch(opts.type) {\n case 'circle':\n Lib.extendFlat(paint, {\n 'circle-radius': opts.circle.radius,\n 'circle-color': opts.color,\n 'circle-opacity': opts.opacity\n });\n break;\n\n case 'line':\n Lib.extendFlat(paint, {\n 'line-width': opts.line.width,\n 'line-color': opts.color,\n 'line-opacity': opts.opacity,\n 'line-dasharray': opts.line.dash\n });\n break;\n\n case 'fill':\n Lib.extendFlat(paint, {\n 'fill-color': opts.color,\n 'fill-outline-color': opts.fill.outlinecolor,\n 'fill-opacity': opts.opacity\n\n // no way to pass specify outline width at the moment\n });\n break;\n\n case 'symbol':\n var symbol = opts.symbol;\n var textOpts = convertTextOpts(symbol.textposition, symbol.iconsize);\n\n Lib.extendFlat(layout, {\n 'icon-image': symbol.icon + '-15',\n 'icon-size': symbol.iconsize / 10,\n\n 'text-field': symbol.text,\n 'text-size': symbol.textfont.size,\n 'text-anchor': textOpts.anchor,\n 'text-offset': textOpts.offset,\n 'symbol-placement': symbol.placement,\n\n // TODO font family\n // 'text-font': symbol.textfont.family.split(', '),\n });\n\n Lib.extendFlat(paint, {\n 'icon-color': opts.color,\n 'text-color': symbol.textfont.color,\n 'text-opacity': opts.opacity\n });\n break;\n case 'raster':\n Lib.extendFlat(paint, {\n 'raster-fade-duration': 0,\n 'raster-opacity': opts.opacity\n });\n break;\n }\n\n return {\n layout: layout,\n paint: paint\n };\n}\n\nfunction convertSourceOpts(opts) {\n var sourceType = opts.sourcetype;\n var source = opts.source;\n var sourceOpts = {type: sourceType};\n var field;\n\n if(sourceType === 'geojson') {\n field = 'data';\n } else if(sourceType === 'vector') {\n field = typeof source === 'string' ? 'url' : 'tiles';\n } else if(sourceType === 'raster') {\n field = 'tiles';\n sourceOpts.tileSize = 256;\n } else if(sourceType === 'image') {\n field = 'url';\n sourceOpts.coordinates = opts.coordinates;\n }\n\n sourceOpts[field] = source;\n\n if(opts.sourceattribution) {\n sourceOpts.attribution = sanitizeHTML(opts.sourceattribution);\n }\n\n return sourceOpts;\n}\n\nmodule.exports = function createMapboxLayer(subplot, index, opts) {\n var mapboxLayer = new MapboxLayer(subplot, index);\n\n mapboxLayer.update(opts);\n\n return mapboxLayer;\n};\n\n},{\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"./constants\":620,\"./convert_text_opts\":621}],624:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar defaultLine = _dereq_('../../components/color').defaultLine;\nvar domainAttrs = _dereq_('../domain').attributes;\nvar fontAttrs = _dereq_('../font_attributes');\nvar textposition = _dereq_('../../traces/scatter/attributes').textposition;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nvar constants = _dereq_('./constants');\n\nvar fontAttr = fontAttrs({\n});\nfontAttr.family.dflt = 'Open Sans Regular, Arial Unicode MS Regular';\n\nvar attrs = module.exports = overrideAll({\n _arrayAttrRegexps: [Lib.counterRegex('mapbox', '.layers', true)],\n\n domain: domainAttrs({name: 'mapbox'}),\n\n accesstoken: {\n valType: 'string',\n noBlank: true,\n strict: true,\n },\n style: {\n valType: 'any',\n values: constants.styleValuesMapbox.concat(constants.styleValuesNonMapbox),\n dflt: constants.styleValueDflt,\n },\n\n center: {\n lon: {\n valType: 'number',\n dflt: 0,\n },\n lat: {\n valType: 'number',\n dflt: 0,\n }\n },\n zoom: {\n valType: 'number',\n dflt: 1,\n },\n bearing: {\n valType: 'number',\n dflt: 0,\n },\n pitch: {\n valType: 'number',\n dflt: 0,\n },\n\n bounds: {\n west: {\n valType: 'number',\n },\n east: {\n valType: 'number',\n },\n south: {\n valType: 'number',\n },\n north: {\n valType: 'number',\n }\n },\n\n layers: templatedArray('layer', {\n visible: {\n valType: 'boolean',\n dflt: true,\n },\n sourcetype: {\n valType: 'enumerated',\n values: ['geojson', 'vector', 'raster', 'image'],\n dflt: 'geojson',\n },\n\n source: {\n valType: 'any',\n },\n\n sourcelayer: {\n valType: 'string',\n dflt: '',\n },\n\n sourceattribution: {\n valType: 'string',\n },\n\n type: {\n valType: 'enumerated',\n values: ['circle', 'line', 'fill', 'symbol', 'raster'],\n dflt: 'circle',\n },\n\n coordinates: {\n valType: 'any',\n },\n\n // attributes shared between all types\n below: {\n valType: 'string',\n },\n color: {\n valType: 'color',\n dflt: defaultLine,\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n minzoom: {\n valType: 'number',\n min: 0,\n max: 24,\n dflt: 0,\n },\n maxzoom: {\n valType: 'number',\n min: 0,\n max: 24,\n dflt: 24,\n },\n\n // type-specific style attributes\n circle: {\n radius: {\n valType: 'number',\n dflt: 15,\n }\n },\n\n line: {\n width: {\n valType: 'number',\n dflt: 2,\n },\n dash: {\n valType: 'data_array',\n }\n },\n\n fill: {\n outlinecolor: {\n valType: 'color',\n dflt: defaultLine,\n }\n },\n\n symbol: {\n icon: {\n valType: 'string',\n dflt: 'marker',\n },\n iconsize: {\n valType: 'number',\n dflt: 10,\n },\n text: {\n valType: 'string',\n dflt: '',\n },\n placement: {\n valType: 'enumerated',\n values: ['point', 'line', 'line-center'],\n dflt: 'point',\n },\n textfont: fontAttr,\n textposition: Lib.extendFlat({}, textposition, { arrayOk: false })\n }\n })\n}, 'plot', 'from-root');\n\n// set uirevision outside of overrideAll so it can be `editType: 'none'`\nattrs.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../../traces/scatter/attributes\":936,\"../domain\":593,\"../font_attributes\":594,\"./constants\":620}],625:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar handleArrayContainerDefaults = _dereq_('../array_container_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: 'mapbox',\n attributes: layoutAttributes,\n handleDefaults: handleDefaults,\n partition: 'y',\n accessToken: layoutOut._mapboxAccessToken\n });\n};\n\nfunction handleDefaults(containerIn, containerOut, coerce, opts) {\n coerce('accesstoken', opts.accessToken);\n coerce('style');\n coerce('center.lon');\n coerce('center.lat');\n coerce('zoom');\n coerce('bearing');\n coerce('pitch');\n\n var west = coerce('bounds.west');\n var east = coerce('bounds.east');\n var south = coerce('bounds.south');\n var north = coerce('bounds.north');\n if(\n west === undefined ||\n east === undefined ||\n south === undefined ||\n north === undefined\n ) {\n delete containerOut.bounds;\n }\n\n handleArrayContainerDefaults(containerIn, containerOut, {\n name: 'layers',\n handleItemDefaults: handleLayerDefaults\n });\n\n // copy ref to input container to update 'center' and 'zoom' on map move\n containerOut._input = containerIn;\n}\n\nfunction handleLayerDefaults(layerIn, layerOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layerIn, layerOut, layoutAttributes.layers, attr, dflt);\n }\n\n var visible = coerce('visible');\n if(visible) {\n var sourceType = coerce('sourcetype');\n var mustBeRasterLayer = sourceType === 'raster' || sourceType === 'image';\n\n coerce('source');\n coerce('sourceattribution');\n\n if(sourceType === 'vector') {\n coerce('sourcelayer');\n }\n\n if(sourceType === 'image') {\n coerce('coordinates');\n }\n\n var typeDflt;\n if(mustBeRasterLayer) typeDflt = 'raster';\n\n var type = coerce('type', typeDflt);\n\n if(mustBeRasterLayer && type !== 'raster') {\n type = layerOut.type = 'raster';\n Lib.log('Source types *raster* and *image* must drawn *raster* layer type.');\n }\n\n coerce('below');\n coerce('color');\n coerce('opacity');\n coerce('minzoom');\n coerce('maxzoom');\n\n if(type === 'circle') {\n coerce('circle.radius');\n }\n\n if(type === 'line') {\n coerce('line.width');\n coerce('line.dash');\n }\n\n if(type === 'fill') {\n coerce('fill.outlinecolor');\n }\n\n if(type === 'symbol') {\n coerce('symbol.icon');\n coerce('symbol.iconsize');\n\n coerce('symbol.text');\n Lib.coerceFont(coerce, 'symbol.textfont');\n coerce('symbol.textposition');\n coerce('symbol.placement');\n }\n }\n}\n\n},{\"../../lib\":515,\"../array_container_defaults\":561,\"../subplot_defaults\":641,\"./layout_attributes\":624}],626:[function(_dereq_,module,exports){\n'use strict';\n\nvar mapboxgl = _dereq_('mapbox-gl/dist/mapbox-gl-unminified');\n\nvar Lib = _dereq_('../../lib');\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../cartesian/axes');\nvar dragElement = _dereq_('../../components/dragelement');\n\nvar Fx = _dereq_('../../components/fx');\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar drawMode = dragHelpers.drawMode;\nvar selectMode = dragHelpers.selectMode;\n\nvar prepSelect = _dereq_('../../components/selections').prepSelect;\nvar clearOutline = _dereq_('../../components/selections').clearOutline;\nvar clearSelectionsCache = _dereq_('../../components/selections').clearSelectionsCache;\nvar selectOnClick = _dereq_('../../components/selections').selectOnClick;\n\nvar constants = _dereq_('./constants');\nvar createMapboxLayer = _dereq_('./layers');\n\nfunction Mapbox(gd, id) {\n this.id = id;\n this.gd = gd;\n\n var fullLayout = gd._fullLayout;\n var context = gd._context;\n\n this.container = fullLayout._glcontainer.node();\n this.isStatic = context.staticPlot;\n\n // unique id for this Mapbox instance\n this.uid = fullLayout._uid + '-' + this.id;\n\n // create framework on instantiation for a smoother first plot call\n this.div = null;\n this.xaxis = null;\n this.yaxis = null;\n this.createFramework(fullLayout);\n\n // state variables used to infer how and what to update\n this.map = null;\n this.accessToken = null;\n this.styleObj = null;\n this.traceHash = {};\n this.layerList = [];\n this.belowLookup = {};\n this.dragging = false;\n this.wheeling = false;\n}\n\nvar proto = Mapbox.prototype;\n\nproto.plot = function(calcData, fullLayout, promises) {\n var self = this;\n var opts = fullLayout[self.id];\n\n // remove map and create a new map if access token has change\n if(self.map && (opts.accesstoken !== self.accessToken)) {\n self.map.remove();\n self.map = null;\n self.styleObj = null;\n self.traceHash = {};\n self.layerList = [];\n }\n\n var promise;\n\n if(!self.map) {\n promise = new Promise(function(resolve, reject) {\n self.createMap(calcData, fullLayout, resolve, reject);\n });\n } else {\n promise = new Promise(function(resolve, reject) {\n self.updateMap(calcData, fullLayout, resolve, reject);\n });\n }\n\n promises.push(promise);\n};\n\nproto.createMap = function(calcData, fullLayout, resolve, reject) {\n var self = this;\n var opts = fullLayout[self.id];\n\n // store style id and URL or object\n var styleObj = self.styleObj = getStyleObj(opts.style);\n\n // store access token associated with this map\n self.accessToken = opts.accesstoken;\n\n var bounds = opts.bounds;\n var maxBounds = bounds ? [[bounds.west, bounds.south], [bounds.east, bounds.north]] : null;\n\n // create the map!\n var map = self.map = new mapboxgl.Map({\n container: self.div,\n\n style: styleObj.style,\n center: convertCenter(opts.center),\n zoom: opts.zoom,\n bearing: opts.bearing,\n pitch: opts.pitch,\n maxBounds: maxBounds,\n\n interactive: !self.isStatic,\n preserveDrawingBuffer: self.isStatic,\n\n doubleClickZoom: false,\n boxZoom: false,\n\n attributionControl: false\n })\n .addControl(new mapboxgl.AttributionControl({\n compact: true\n }));\n\n\n // make sure canvas does not inherit left and top css\n map._canvas.style.left = '0px';\n map._canvas.style.top = '0px';\n\n self.rejectOnError(reject);\n\n if(!self.isStatic) {\n self.initFx(calcData, fullLayout);\n }\n\n var promises = [];\n\n promises.push(new Promise(function(resolve) {\n map.once('load', resolve);\n }));\n\n promises = promises.concat(geoUtils.fetchTraceGeoData(calcData));\n\n Promise.all(promises).then(function() {\n self.fillBelowLookup(calcData, fullLayout);\n self.updateData(calcData);\n self.updateLayout(fullLayout);\n self.resolveOnRender(resolve);\n }).catch(reject);\n};\n\nproto.updateMap = function(calcData, fullLayout, resolve, reject) {\n var self = this;\n var map = self.map;\n var opts = fullLayout[this.id];\n\n self.rejectOnError(reject);\n\n var promises = [];\n var styleObj = getStyleObj(opts.style);\n\n if(JSON.stringify(self.styleObj) !== JSON.stringify(styleObj)) {\n self.styleObj = styleObj;\n map.setStyle(styleObj.style);\n\n // need to rebuild trace layers on reload\n // to avoid 'lost event' errors\n self.traceHash = {};\n\n promises.push(new Promise(function(resolve) {\n map.once('styledata', resolve);\n }));\n }\n\n promises = promises.concat(geoUtils.fetchTraceGeoData(calcData));\n\n Promise.all(promises).then(function() {\n self.fillBelowLookup(calcData, fullLayout);\n self.updateData(calcData);\n self.updateLayout(fullLayout);\n self.resolveOnRender(resolve);\n }).catch(reject);\n};\n\nproto.fillBelowLookup = function(calcData, fullLayout) {\n var opts = fullLayout[this.id];\n var layers = opts.layers;\n var i, val;\n\n var belowLookup = this.belowLookup = {};\n var hasTraceAtTop = false;\n\n for(i = 0; i < calcData.length; i++) {\n var trace = calcData[i][0].trace;\n var _module = trace._module;\n\n if(typeof trace.below === 'string') {\n val = trace.below;\n } else if(_module.getBelow) {\n // 'smart' default that depend the map's base layers\n val = _module.getBelow(trace, this);\n }\n\n if(val === '') {\n hasTraceAtTop = true;\n }\n\n belowLookup['trace-' + trace.uid] = val || '';\n }\n\n for(i = 0; i < layers.length; i++) {\n var item = layers[i];\n\n if(typeof item.below === 'string') {\n val = item.below;\n } else if(hasTraceAtTop) {\n // if one or more trace(s) set `below:''` and\n // layers[i].below is unset,\n // place layer below traces\n val = 'traces';\n } else {\n val = '';\n }\n\n belowLookup['layout-' + i] = val;\n }\n\n // N.B. If multiple layers have the 'below' value,\n // we must clear the stashed 'below' field in order\n // to make `traceHash[k].update()` and `layerList[i].update()`\n // remove/add the all those layers to have preserve\n // the correct layer ordering\n var val2list = {};\n var k, id;\n\n for(k in belowLookup) {\n val = belowLookup[k];\n if(val2list[val]) {\n val2list[val].push(k);\n } else {\n val2list[val] = [k];\n }\n }\n\n for(val in val2list) {\n var list = val2list[val];\n if(list.length > 1) {\n for(i = 0; i < list.length; i++) {\n k = list[i];\n if(k.indexOf('trace-') === 0) {\n id = k.split('trace-')[1];\n if(this.traceHash[id]) {\n this.traceHash[id].below = null;\n }\n } else if(k.indexOf('layout-') === 0) {\n id = k.split('layout-')[1];\n if(this.layerList[id]) {\n this.layerList[id].below = null;\n }\n }\n }\n }\n }\n};\n\nvar traceType2orderIndex = {\n choroplethmapbox: 0,\n densitymapbox: 1,\n scattermapbox: 2\n};\n\nproto.updateData = function(calcData) {\n var traceHash = this.traceHash;\n var traceObj, trace, i, j;\n\n // Need to sort here by trace type here,\n // in case traces with different `type` have the same\n // below value, but sorting we ensure that\n // e.g. choroplethmapbox traces will be below scattermapbox traces\n var calcDataSorted = calcData.slice().sort(function(a, b) {\n return (\n traceType2orderIndex[a[0].trace.type] -\n traceType2orderIndex[b[0].trace.type]\n );\n });\n\n // update or create trace objects\n for(i = 0; i < calcDataSorted.length; i++) {\n var calcTrace = calcDataSorted[i];\n\n trace = calcTrace[0].trace;\n traceObj = traceHash[trace.uid];\n\n var didUpdate = false;\n if(traceObj) {\n if(traceObj.type === trace.type) {\n traceObj.update(calcTrace);\n didUpdate = true;\n } else {\n traceObj.dispose();\n }\n }\n if(!didUpdate && trace._module) {\n traceHash[trace.uid] = trace._module.plot(this, calcTrace);\n }\n }\n\n // remove empty trace objects\n var ids = Object.keys(traceHash);\n idLoop:\n for(i = 0; i < ids.length; i++) {\n var id = ids[i];\n\n for(j = 0; j < calcData.length; j++) {\n trace = calcData[j][0].trace;\n if(id === trace.uid) continue idLoop;\n }\n\n traceObj = traceHash[id];\n traceObj.dispose();\n delete traceHash[id];\n }\n};\n\nproto.updateLayout = function(fullLayout) {\n var map = this.map;\n var opts = fullLayout[this.id];\n\n if(!this.dragging && !this.wheeling) {\n map.setCenter(convertCenter(opts.center));\n map.setZoom(opts.zoom);\n map.setBearing(opts.bearing);\n map.setPitch(opts.pitch);\n }\n\n this.updateLayers(fullLayout);\n this.updateFramework(fullLayout);\n this.updateFx(fullLayout);\n this.map.resize();\n\n if(this.gd._context._scrollZoom.mapbox) {\n map.scrollZoom.enable();\n } else {\n map.scrollZoom.disable();\n }\n};\n\nproto.resolveOnRender = function(resolve) {\n var map = this.map;\n\n map.on('render', function onRender() {\n if(map.loaded()) {\n map.off('render', onRender);\n // resolve at end of render loop\n //\n // Need a 10ms delay (0ms should suffice to skip a thread in the\n // render loop) to workaround mapbox-gl bug introduced in v1.3.0\n setTimeout(resolve, 10);\n }\n });\n};\n\nproto.rejectOnError = function(reject) {\n var map = this.map;\n\n function handler() {\n reject(new Error(constants.mapOnErrorMsg));\n }\n\n map.once('error', handler);\n map.once('style.error', handler);\n map.once('source.error', handler);\n map.once('tile.error', handler);\n map.once('layer.error', handler);\n};\n\nproto.createFramework = function(fullLayout) {\n var self = this;\n\n var div = self.div = document.createElement('div');\n div.id = self.uid;\n div.style.position = 'absolute';\n self.container.appendChild(div);\n\n // create mock x/y axes for hover routine\n self.xaxis = {\n _id: 'x',\n c2p: function(v) { return self.project(v).x; }\n };\n self.yaxis = {\n _id: 'y',\n c2p: function(v) { return self.project(v).y; }\n };\n\n self.updateFramework(fullLayout);\n\n // mock axis for hover formatting\n self.mockAxis = {\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B'\n };\n Axes.setConvert(self.mockAxis, fullLayout);\n};\n\nproto.initFx = function(calcData, fullLayout) {\n var self = this;\n var gd = self.gd;\n var map = self.map;\n\n // keep track of pan / zoom in user layout and emit relayout event\n map.on('moveend', function(evt) {\n if(!self.map) return;\n\n var fullLayoutNow = gd._fullLayout;\n\n // 'moveend' gets triggered by map.setCenter, map.setZoom,\n // map.setBearing and map.setPitch.\n //\n // Here, we make sure that state updates amd 'plotly_relayout'\n // are triggered only when the 'moveend' originates from a\n // mouse target (filtering out API calls) to not\n // duplicate 'plotly_relayout' events.\n\n if(evt.originalEvent || self.wheeling) {\n var optsNow = fullLayoutNow[self.id];\n Registry.call('_storeDirectGUIEdit', gd.layout, fullLayoutNow._preGUI, self.getViewEdits(optsNow));\n\n var viewNow = self.getView();\n optsNow._input.center = optsNow.center = viewNow.center;\n optsNow._input.zoom = optsNow.zoom = viewNow.zoom;\n optsNow._input.bearing = optsNow.bearing = viewNow.bearing;\n optsNow._input.pitch = optsNow.pitch = viewNow.pitch;\n gd.emit('plotly_relayout', self.getViewEditsWithDerived(viewNow));\n }\n if(evt.originalEvent && evt.originalEvent.type === 'mouseup') {\n self.dragging = false;\n } else if(self.wheeling) {\n self.wheeling = false;\n }\n\n if(fullLayoutNow._rehover) {\n fullLayoutNow._rehover();\n }\n });\n\n map.on('wheel', function() {\n self.wheeling = true;\n });\n\n map.on('mousemove', function(evt) {\n var bb = self.div.getBoundingClientRect();\n var xy = [\n evt.originalEvent.offsetX,\n evt.originalEvent.offsetY\n ];\n\n evt.target.getBoundingClientRect = function() { return bb; };\n\n self.xaxis.p2c = function() { return map.unproject(xy).lng; };\n self.yaxis.p2c = function() { return map.unproject(xy).lat; };\n\n gd._fullLayout._rehover = function() {\n if(gd._fullLayout._hoversubplot === self.id && gd._fullLayout[self.id]) {\n Fx.hover(gd, evt, self.id);\n }\n };\n\n Fx.hover(gd, evt, self.id);\n gd._fullLayout._hoversubplot = self.id;\n });\n\n function unhover() {\n Fx.loneUnhover(fullLayout._hoverlayer);\n }\n\n map.on('dragstart', function() {\n self.dragging = true;\n unhover();\n });\n map.on('zoomstart', unhover);\n\n map.on('mouseout', function() {\n gd._fullLayout._hoversubplot = null;\n });\n\n function emitUpdate() {\n var viewNow = self.getView();\n gd.emit('plotly_relayouting', self.getViewEditsWithDerived(viewNow));\n }\n\n map.on('drag', emitUpdate);\n map.on('zoom', emitUpdate);\n\n map.on('dblclick', function() {\n var optsNow = gd._fullLayout[self.id];\n Registry.call('_storeDirectGUIEdit', gd.layout, gd._fullLayout._preGUI, self.getViewEdits(optsNow));\n\n var viewInitial = self.viewInitial;\n map.setCenter(convertCenter(viewInitial.center));\n map.setZoom(viewInitial.zoom);\n map.setBearing(viewInitial.bearing);\n map.setPitch(viewInitial.pitch);\n\n var viewNow = self.getView();\n optsNow._input.center = optsNow.center = viewNow.center;\n optsNow._input.zoom = optsNow.zoom = viewNow.zoom;\n optsNow._input.bearing = optsNow.bearing = viewNow.bearing;\n optsNow._input.pitch = optsNow.pitch = viewNow.pitch;\n\n gd.emit('plotly_doubleclick', null);\n gd.emit('plotly_relayout', self.getViewEditsWithDerived(viewNow));\n });\n\n // define event handlers on map creation, to keep one ref per map,\n // so that map.on / map.off in updateFx works as expected\n self.clearOutline = function() {\n clearSelectionsCache(self.dragOptions);\n clearOutline(self.dragOptions.gd);\n };\n\n /**\n * Returns a click handler function that is supposed\n * to handle clicks in pan mode.\n */\n self.onClickInPanFn = function(dragOptions) {\n return function(evt) {\n var clickMode = gd._fullLayout.clickmode;\n\n if(clickMode.indexOf('select') > -1) {\n selectOnClick(evt.originalEvent, gd, [self.xaxis], [self.yaxis], self.id, dragOptions);\n }\n\n if(clickMode.indexOf('event') > -1) {\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change mapbox to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // pie would use this too.\n Fx.click(gd, evt.originalEvent);\n }\n };\n };\n};\n\nproto.updateFx = function(fullLayout) {\n var self = this;\n var map = self.map;\n var gd = self.gd;\n\n if(self.isStatic) return;\n\n function invert(pxpy) {\n var obj = self.map.unproject(pxpy);\n return [obj.lng, obj.lat];\n }\n\n var dragMode = fullLayout.dragmode;\n var fillRangeItems;\n\n fillRangeItems = function(eventData, poly) {\n if(poly.isRect) {\n var ranges = eventData.range = {};\n ranges[self.id] = [\n invert([poly.xmin, poly.ymin]),\n invert([poly.xmax, poly.ymax])\n ];\n } else {\n var dataPts = eventData.lassoPoints = {};\n dataPts[self.id] = poly.map(invert);\n }\n };\n\n // Note: dragOptions is needed to be declared for all dragmodes because\n // it's the object that holds persistent selection state.\n // Merge old dragOptions with new to keep possibly initialized\n // persistent selection state.\n var oldDragOptions = self.dragOptions;\n self.dragOptions = Lib.extendDeep(oldDragOptions || {}, {\n dragmode: fullLayout.dragmode,\n element: self.div,\n gd: gd,\n plotinfo: {\n id: self.id,\n domain: fullLayout[self.id].domain,\n xaxis: self.xaxis,\n yaxis: self.yaxis,\n fillRangeItems: fillRangeItems\n },\n xaxes: [self.xaxis],\n yaxes: [self.yaxis],\n subplot: self.id\n });\n\n // Unregister the old handler before potentially registering\n // a new one. Otherwise multiple click handlers might\n // be registered resulting in unwanted behavior.\n map.off('click', self.onClickInPanHandler);\n if(selectMode(dragMode) || drawMode(dragMode)) {\n map.dragPan.disable();\n map.on('zoomstart', self.clearOutline);\n\n self.dragOptions.prepFn = function(e, startX, startY) {\n prepSelect(e, startX, startY, self.dragOptions, dragMode);\n };\n\n dragElement.init(self.dragOptions);\n } else {\n map.dragPan.enable();\n map.off('zoomstart', self.clearOutline);\n self.div.onmousedown = null;\n self.div.ontouchstart = null;\n self.div.removeEventListener('touchstart', self.div._ontouchstart);\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change mapbox to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // pie would use this too.\n self.onClickInPanHandler = self.onClickInPanFn(self.dragOptions);\n map.on('click', self.onClickInPanHandler);\n }\n};\n\nproto.updateFramework = function(fullLayout) {\n var domain = fullLayout[this.id].domain;\n var size = fullLayout._size;\n\n var style = this.div.style;\n style.width = size.w * (domain.x[1] - domain.x[0]) + 'px';\n style.height = size.h * (domain.y[1] - domain.y[0]) + 'px';\n style.left = size.l + domain.x[0] * size.w + 'px';\n style.top = size.t + (1 - domain.y[1]) * size.h + 'px';\n\n this.xaxis._offset = size.l + domain.x[0] * size.w;\n this.xaxis._length = size.w * (domain.x[1] - domain.x[0]);\n\n this.yaxis._offset = size.t + (1 - domain.y[1]) * size.h;\n this.yaxis._length = size.h * (domain.y[1] - domain.y[0]);\n};\n\nproto.updateLayers = function(fullLayout) {\n var opts = fullLayout[this.id];\n var layers = opts.layers;\n var layerList = this.layerList;\n var i;\n\n // if the layer arrays don't match,\n // don't try to be smart,\n // delete them all, and start all over.\n\n if(layers.length !== layerList.length) {\n for(i = 0; i < layerList.length; i++) {\n layerList[i].dispose();\n }\n\n layerList = this.layerList = [];\n\n for(i = 0; i < layers.length; i++) {\n layerList.push(createMapboxLayer(this, i, layers[i]));\n }\n } else {\n for(i = 0; i < layers.length; i++) {\n layerList[i].update(layers[i]);\n }\n }\n};\n\nproto.destroy = function() {\n if(this.map) {\n this.map.remove();\n this.map = null;\n this.container.removeChild(this.div);\n }\n};\n\nproto.toImage = function() {\n this.map.stop();\n return this.map.getCanvas().toDataURL();\n};\n\n// convenience wrapper to create set multiple layer\n// 'layout' or 'paint options at once.\nproto.setOptions = function(id, methodName, opts) {\n for(var k in opts) {\n this.map[methodName](id, k, opts[k]);\n }\n};\n\nproto.getMapLayers = function() {\n return this.map.getStyle().layers;\n};\n\n// convenience wrapper that first check in 'below' references\n// a layer that exist and then add the layer to the map,\nproto.addLayer = function(opts, below) {\n var map = this.map;\n\n if(typeof below === 'string') {\n if(below === '') {\n map.addLayer(opts, below);\n return;\n }\n\n var mapLayers = this.getMapLayers();\n for(var i = 0; i < mapLayers.length; i++) {\n if(below === mapLayers[i].id) {\n map.addLayer(opts, below);\n return;\n }\n }\n\n Lib.warn([\n 'Trying to add layer with *below* value',\n below,\n 'referencing a layer that does not exist',\n 'or that does not yet exist.'\n ].join(' '));\n }\n\n map.addLayer(opts);\n};\n\n// convenience method to project a [lon, lat] array to pixel coords\nproto.project = function(v) {\n return this.map.project(new mapboxgl.LngLat(v[0], v[1]));\n};\n\n// get map's current view values in plotly.js notation\nproto.getView = function() {\n var map = this.map;\n var mapCenter = map.getCenter();\n var lon = mapCenter.lng;\n var lat = mapCenter.lat;\n var center = { lon: lon, lat: lat };\n\n var canvas = map.getCanvas();\n var w = parseInt(canvas.style.width);\n var h = parseInt(canvas.style.height);\n\n return {\n center: center,\n zoom: map.getZoom(),\n bearing: map.getBearing(),\n pitch: map.getPitch(),\n _derived: {\n coordinates: [\n map.unproject([0, 0]).toArray(),\n map.unproject([w, 0]).toArray(),\n map.unproject([w, h]).toArray(),\n map.unproject([0, h]).toArray()\n ]\n }\n };\n};\n\nproto.getViewEdits = function(cont) {\n var id = this.id;\n var keys = ['center', 'zoom', 'bearing', 'pitch'];\n var obj = {};\n\n for(var i = 0; i < keys.length; i++) {\n var k = keys[i];\n obj[id + '.' + k] = cont[k];\n }\n\n return obj;\n};\n\nproto.getViewEditsWithDerived = function(cont) {\n var id = this.id;\n var obj = this.getViewEdits(cont);\n obj[id + '._derived'] = cont._derived;\n return obj;\n};\n\nfunction getStyleObj(val) {\n var styleObj = {};\n\n if(Lib.isPlainObject(val)) {\n styleObj.id = val.id;\n styleObj.style = val;\n } else if(typeof val === 'string') {\n styleObj.id = val;\n\n if(constants.styleValuesMapbox.indexOf(val) !== -1) {\n styleObj.style = convertStyleVal(val);\n } else if(constants.stylesNonMapbox[val]) {\n styleObj.style = constants.stylesNonMapbox[val];\n } else {\n styleObj.style = val;\n }\n } else {\n styleObj.id = constants.styleValueDflt;\n styleObj.style = convertStyleVal(constants.styleValueDflt);\n }\n\n styleObj.transition = {duration: 0, delay: 0};\n\n return styleObj;\n}\n\n// if style is part of the 'official' mapbox values, add URL prefix and suffix\nfunction convertStyleVal(val) {\n return constants.styleUrlPrefix + val + '-' + constants.styleUrlSuffix;\n}\n\nfunction convertCenter(center) {\n return [center.lon, center.lat];\n}\n\nmodule.exports = Mapbox;\n\n},{\"../../components/dragelement\":386,\"../../components/dragelement/helpers\":385,\"../../components/fx\":407,\"../../components/selections\":455,\"../../lib\":515,\"../../lib/geo_location_utils\":508,\"../../registry\":647,\"../cartesian/axes\":566,\"./constants\":620,\"./layers\":623,\"mapbox-gl/dist/mapbox-gl-unminified\":239}],627:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Creates a set of padding attributes.\n *\n * @param {object} opts\n * @param {string} editType:\n * the editType for all pieces of this padding definition\n *\n * @return {object} attributes object containing {t, r, b, l} as specified\n */\nmodule.exports = function(opts) {\n var editType = opts.editType;\n return {\n t: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n r: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n b: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n l: {\n valType: 'number',\n dflt: 0,\n editType: editType,\n },\n editType: editType\n };\n};\n\n},{}],628:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar timeFormatLocale = _dereq_('d3-time-format').timeFormatLocale;\nvar formatLocale = _dereq_('d3-format').formatLocale;\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Registry = _dereq_('../registry');\nvar PlotSchema = _dereq_('../plot_api/plot_schema');\nvar Template = _dereq_('../plot_api/plot_template');\nvar Lib = _dereq_('../lib');\nvar Color = _dereq_('../components/color');\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nvar axisIDs = _dereq_('./cartesian/axis_ids');\nvar clearOutline = _dereq_('../components/shapes/handle_outline').clearOutline;\n\nvar animationAttrs = _dereq_('./animation_attributes');\nvar frameAttrs = _dereq_('./frame_attributes');\n\nvar getModuleCalcData = _dereq_('../plots/get_data').getModuleCalcData;\n\nvar relinkPrivateKeys = Lib.relinkPrivateKeys;\nvar _ = Lib._;\n\nvar plots = module.exports = {};\n\n// Expose registry methods on Plots for backward-compatibility\nLib.extendFlat(plots, Registry);\n\nplots.attributes = _dereq_('./attributes');\nplots.attributes.type.values = plots.allTypes;\nplots.fontAttrs = _dereq_('./font_attributes');\nplots.layoutAttributes = _dereq_('./layout_attributes');\n\n// TODO make this a plot attribute?\nplots.fontWeight = 'normal';\n\nvar transformsRegistry = plots.transformsRegistry;\n\nvar commandModule = _dereq_('./command');\nplots.executeAPICommand = commandModule.executeAPICommand;\nplots.computeAPICommandBindings = commandModule.computeAPICommandBindings;\nplots.manageCommandObserver = commandModule.manageCommandObserver;\nplots.hasSimpleAPICommandBindings = commandModule.hasSimpleAPICommandBindings;\n\n// in some cases the browser doesn't seem to know how big\n// the text is at first, so it needs to draw it,\n// then wait a little, then draw it again\nplots.redrawText = function(gd) {\n gd = Lib.getGraphDiv(gd);\n\n return new Promise(function(resolve) {\n setTimeout(function() {\n if(!gd._fullLayout) return;\n Registry.getComponentMethod('annotations', 'draw')(gd);\n Registry.getComponentMethod('legend', 'draw')(gd);\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n resolve(plots.previousPromises(gd));\n }, 300);\n });\n};\n\n// resize plot about the container size\nplots.resize = function(gd) {\n gd = Lib.getGraphDiv(gd);\n\n var resolveLastResize;\n var p = new Promise(function(resolve, reject) {\n if(!gd || Lib.isHidden(gd)) {\n reject(new Error('Resize must be passed a displayed plot div element.'));\n }\n\n if(gd._redrawTimer) clearTimeout(gd._redrawTimer);\n if(gd._resolveResize) resolveLastResize = gd._resolveResize;\n gd._resolveResize = resolve;\n\n gd._redrawTimer = setTimeout(function() {\n // return if there is nothing to resize or is hidden\n if(!gd.layout || (gd.layout.width && gd.layout.height) || Lib.isHidden(gd)) {\n resolve(gd);\n return;\n }\n\n delete gd.layout.width;\n delete gd.layout.height;\n\n // autosizing doesn't count as a change that needs saving\n var oldchanged = gd.changed;\n\n // nor should it be included in the undo queue\n gd.autoplay = true;\n\n Registry.call('relayout', gd, {autosize: true}).then(function() {\n gd.changed = oldchanged;\n // Only resolve if a new call hasn't been made!\n if(gd._resolveResize === resolve) {\n delete gd._resolveResize;\n resolve(gd);\n }\n });\n }, 100);\n });\n\n if(resolveLastResize) resolveLastResize(p);\n return p;\n};\n\n\n// for use in Lib.syncOrAsync, check if there are any\n// pending promises in this plot and wait for them\nplots.previousPromises = function(gd) {\n if((gd._promises || []).length) {\n return Promise.all(gd._promises)\n .then(function() { gd._promises = []; });\n }\n};\n\n/**\n * Adds the 'Edit chart' link.\n * Note that now _doPlot calls this so it can regenerate whenever it replots\n *\n * Add source links to your graph inside the 'showSources' config argument.\n */\nplots.addLinks = function(gd) {\n // Do not do anything if showLink and showSources are not set to true in config\n if(!gd._context.showLink && !gd._context.showSources) return;\n\n var fullLayout = gd._fullLayout;\n\n var linkContainer = Lib.ensureSingle(fullLayout._paper, 'text', 'js-plot-link-container', function(s) {\n s.style({\n 'font-family': '\"Open Sans\", Arial, sans-serif',\n 'font-size': '12px',\n 'fill': Color.defaultLine,\n 'pointer-events': 'all'\n })\n .each(function() {\n var links = d3.select(this);\n links.append('tspan').classed('js-link-to-tool', true);\n links.append('tspan').classed('js-link-spacer', true);\n links.append('tspan').classed('js-sourcelinks', true);\n });\n });\n\n // The text node inside svg\n var text = linkContainer.node();\n var attrs = {y: fullLayout._paper.attr('height') - 9};\n\n // If text's width is bigger than the layout\n // Check that text is a child node or document.body\n // because otherwise IE/Edge might throw an exception\n // when calling getComputedTextLength().\n // Apparently offsetParent is null for invisibles.\n if(document.body.contains(text) && text.getComputedTextLength() >= (fullLayout.width - 20)) {\n // Align the text at the left\n attrs['text-anchor'] = 'start';\n attrs.x = 5;\n } else {\n // Align the text at the right\n attrs['text-anchor'] = 'end';\n attrs.x = fullLayout._paper.attr('width') - 7;\n }\n\n linkContainer.attr(attrs);\n\n var toolspan = linkContainer.select('.js-link-to-tool');\n var spacespan = linkContainer.select('.js-link-spacer');\n var sourcespan = linkContainer.select('.js-sourcelinks');\n\n if(gd._context.showSources) gd._context.showSources(gd);\n\n // 'view in plotly' link for embedded plots\n if(gd._context.showLink) positionPlayWithData(gd, toolspan);\n\n // separator if we have both sources and tool link\n spacespan.text((toolspan.text() && sourcespan.text()) ? ' - ' : '');\n};\n\n// note that now this function is only adding the brand in\n// iframes and 3rd-party apps\nfunction positionPlayWithData(gd, container) {\n container.text('');\n var link = container.append('a')\n .attr({\n 'xlink:xlink:href': '#',\n 'class': 'link--impt link--embedview',\n 'font-weight': 'bold'\n })\n .text(gd._context.linkText + ' ' + String.fromCharCode(187));\n\n if(gd._context.sendData) {\n link.on('click', function() {\n plots.sendDataToCloud(gd);\n });\n } else {\n var path = window.location.pathname.split('/');\n var query = window.location.search;\n link.attr({\n 'xlink:xlink:show': 'new',\n 'xlink:xlink:href': '/' + path[2].split('.')[0] + '/' + path[1] + query\n });\n }\n}\n\nplots.sendDataToCloud = function(gd) {\n var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL;\n if(!baseUrl) return;\n\n gd.emit('plotly_beforeexport');\n\n var hiddenformDiv = d3.select(gd)\n .append('div')\n .attr('id', 'hiddenform')\n .style('display', 'none');\n\n var hiddenform = hiddenformDiv\n .append('form')\n .attr({\n action: baseUrl + '/external',\n method: 'post',\n target: '_blank'\n });\n\n var hiddenformInput = hiddenform\n .append('input')\n .attr({\n type: 'text',\n name: 'data'\n });\n\n hiddenformInput.node().value = plots.graphJson(gd, false, 'keepdata');\n hiddenform.node().submit();\n hiddenformDiv.remove();\n\n gd.emit('plotly_afterexport');\n return false;\n};\n\nvar d3FormatKeys = [\n 'days', 'shortDays', 'months', 'shortMonths', 'periods',\n 'dateTime', 'date', 'time',\n 'decimal', 'thousands', 'grouping', 'currency'\n];\n\nvar extraFormatKeys = [\n 'year', 'month', 'dayMonth', 'dayMonthYear'\n];\n\n/*\n * Fill in default values\n * @param {DOM element} gd\n * @param {object} opts\n * @param {boolean} opts.skipUpdateCalc: normally if the existing gd.calcdata looks\n * compatible with the new gd._fullData we finish by linking the new _fullData traces\n * to the old gd.calcdata, so it's correctly set if we're not going to recalc. But also,\n * if there are calcTransforms on the trace, we first remap data arrays from the old full\n * trace into the new one. Use skipUpdateCalc to defer this (needed by Plotly.react)\n *\n * gd.data, gd.layout:\n * are precisely what the user specified (except as modified by cleanData/cleanLayout),\n * these fields shouldn't be modified (except for filling in some auto values)\n * nor used directly after the supply defaults step.\n *\n * gd._fullData, gd._fullLayout:\n * are complete descriptions of how to draw the plot,\n * use these fields in all required computations.\n *\n * gd._fullLayout._modules\n * is a list of all the trace modules required to draw the plot.\n *\n * gd._fullLayout._visibleModules\n * subset of _modules, a list of modules corresponding to visible:true traces.\n *\n * gd._fullLayout._basePlotModules\n * is a list of all the plot modules required to draw the plot.\n *\n * gd._fullLayout._transformModules\n * is a list of all the transform modules invoked.\n *\n */\nplots.supplyDefaults = function(gd, opts) {\n var skipUpdateCalc = opts && opts.skipUpdateCalc;\n var oldFullLayout = gd._fullLayout || {};\n\n if(oldFullLayout._skipDefaults) {\n delete oldFullLayout._skipDefaults;\n return;\n }\n\n var newFullLayout = gd._fullLayout = {};\n var newLayout = gd.layout || {};\n\n var oldFullData = gd._fullData || [];\n var newFullData = gd._fullData = [];\n var newData = gd.data || [];\n\n var oldCalcdata = gd.calcdata || [];\n\n var context = gd._context || {};\n\n var i;\n\n // Create all the storage space for frames, but only if doesn't already exist\n if(!gd._transitionData) plots.createTransitionData(gd);\n\n // So we only need to do this once (and since we have gd here)\n // get the translated placeholder titles.\n // These ones get used as default values so need to be known at supplyDefaults\n // others keep their blank defaults but render the placeholder as desired later\n // TODO: make these work the same way, only inserting the placeholder text at draw time?\n // The challenge is that this has slightly different behavior right now in editable mode:\n // using the placeholder as default makes this text permanently (but lightly) visible,\n // but explicit '' for these titles gives you a placeholder that's hidden until you mouse\n // over it - so you're not distracted by it if you really don't want a title, but if you do\n // and you're new to plotly you may not be able to find it.\n // When editable=false the two behave the same, no title is drawn.\n newFullLayout._dfltTitle = {\n plot: _(gd, 'Click to enter Plot title'),\n x: _(gd, 'Click to enter X axis title'),\n y: _(gd, 'Click to enter Y axis title'),\n colorbar: _(gd, 'Click to enter Colorscale title'),\n annotation: _(gd, 'new text')\n };\n newFullLayout._traceWord = _(gd, 'trace');\n\n var formatObj = getFormatObj(gd, d3FormatKeys);\n\n // stash the token from context so mapbox subplots can use it as default\n newFullLayout._mapboxAccessToken = context.mapboxAccessToken;\n\n // first fill in what we can of layout without looking at data\n // because fullData needs a few things from layout\n if(oldFullLayout._initialAutoSizeIsDone) {\n // coerce the updated layout while preserving width and height\n var oldWidth = oldFullLayout.width;\n var oldHeight = oldFullLayout.height;\n\n plots.supplyLayoutGlobalDefaults(newLayout, newFullLayout, formatObj);\n\n if(!newLayout.width) newFullLayout.width = oldWidth;\n if(!newLayout.height) newFullLayout.height = oldHeight;\n plots.sanitizeMargins(newFullLayout);\n } else {\n // coerce the updated layout and autosize if needed\n plots.supplyLayoutGlobalDefaults(newLayout, newFullLayout, formatObj);\n\n var missingWidthOrHeight = (!newLayout.width || !newLayout.height);\n var autosize = newFullLayout.autosize;\n var autosizable = context.autosizable;\n var initialAutoSize = missingWidthOrHeight && (autosize || autosizable);\n\n if(initialAutoSize) plots.plotAutoSize(gd, newLayout, newFullLayout);\n else if(missingWidthOrHeight) plots.sanitizeMargins(newFullLayout);\n\n // for backwards-compatibility with Plotly v1.x.x\n if(!autosize && missingWidthOrHeight) {\n newLayout.width = newFullLayout.width;\n newLayout.height = newFullLayout.height;\n }\n }\n\n newFullLayout._d3locale = getFormatter(formatObj, newFullLayout.separators);\n newFullLayout._extraFormat = getFormatObj(gd, extraFormatKeys);\n\n newFullLayout._initialAutoSizeIsDone = true;\n\n // keep track of how many traces are inputted\n newFullLayout._dataLength = newData.length;\n\n // clear the lists of trace and baseplot modules, and subplots\n newFullLayout._modules = [];\n newFullLayout._visibleModules = [];\n newFullLayout._basePlotModules = [];\n var subplots = newFullLayout._subplots = emptySubplotLists();\n\n // initialize axis and subplot hash objects for splom-generated grids\n var splomAxes = newFullLayout._splomAxes = {x: {}, y: {}};\n var splomSubplots = newFullLayout._splomSubplots = {};\n // initialize splom grid defaults\n newFullLayout._splomGridDflt = {};\n\n // for stacked area traces to share config across traces\n newFullLayout._scatterStackOpts = {};\n // for the first scatter trace on each subplot (so it knows tonext->tozero)\n newFullLayout._firstScatter = {};\n // for grouped bar/box/violin trace to share config across traces\n newFullLayout._alignmentOpts = {};\n // track color axes referenced in the data\n newFullLayout._colorAxes = {};\n\n // for traces to request a default rangeslider on their x axes\n // eg set `_requestRangeslider.x2 = true` for xaxis2\n newFullLayout._requestRangeslider = {};\n\n // pull uids from old data to use as new defaults\n newFullLayout._traceUids = getTraceUids(oldFullData, newData);\n\n // then do the data\n newFullLayout._globalTransforms = (gd._context || {}).globalTransforms;\n plots.supplyDataDefaults(newData, newFullData, newLayout, newFullLayout);\n\n // redo grid size defaults with info about splom x/y axes,\n // and fill in generated cartesian axes and subplots\n var splomXa = Object.keys(splomAxes.x);\n var splomYa = Object.keys(splomAxes.y);\n if(splomXa.length > 1 && splomYa.length > 1) {\n Registry.getComponentMethod('grid', 'sizeDefaults')(newLayout, newFullLayout);\n\n for(i = 0; i < splomXa.length; i++) {\n Lib.pushUnique(subplots.xaxis, splomXa[i]);\n }\n for(i = 0; i < splomYa.length; i++) {\n Lib.pushUnique(subplots.yaxis, splomYa[i]);\n }\n for(var k in splomSubplots) {\n Lib.pushUnique(subplots.cartesian, k);\n }\n }\n\n // attach helper method to check whether a plot type is present on graph\n newFullLayout._has = plots._hasPlotType.bind(newFullLayout);\n\n if(oldFullData.length === newFullData.length) {\n for(i = 0; i < newFullData.length; i++) {\n relinkPrivateKeys(newFullData[i], oldFullData[i]);\n }\n }\n\n // finally, fill in the pieces of layout that may need to look at data\n plots.supplyLayoutModuleDefaults(newLayout, newFullLayout, newFullData, gd._transitionData);\n\n // Special cases that introduce interactions between traces.\n // This is after relinkPrivateKeys so we can use those in crossTraceDefaults\n // and after layout module defaults, so we can use eg barmode\n var _modules = newFullLayout._visibleModules;\n var crossTraceDefaultsFuncs = [];\n for(i = 0; i < _modules.length; i++) {\n var funci = _modules[i].crossTraceDefaults;\n // some trace types share crossTraceDefaults (ie histogram2d, histogram2dcontour)\n if(funci) Lib.pushUnique(crossTraceDefaultsFuncs, funci);\n }\n for(i = 0; i < crossTraceDefaultsFuncs.length; i++) {\n crossTraceDefaultsFuncs[i](newFullData, newFullLayout);\n }\n\n // turn on flag to optimize large splom-only graphs\n // mostly by omitting SVG layers during Cartesian.drawFramework\n newFullLayout._hasOnlyLargeSploms = (\n newFullLayout._basePlotModules.length === 1 &&\n newFullLayout._basePlotModules[0].name === 'splom' &&\n splomXa.length > 15 &&\n splomYa.length > 15 &&\n newFullLayout.shapes.length === 0 &&\n newFullLayout.images.length === 0\n );\n\n // relink / initialize subplot axis objects\n plots.linkSubplots(newFullData, newFullLayout, oldFullData, oldFullLayout);\n\n // clean subplots and other artifacts from previous plot calls\n plots.cleanPlot(newFullData, newFullLayout, oldFullData, oldFullLayout);\n\n var hadGL2D = !!(oldFullLayout._has && oldFullLayout._has('gl2d'));\n var hasGL2D = !!(newFullLayout._has && newFullLayout._has('gl2d'));\n var hadCartesian = !!(oldFullLayout._has && oldFullLayout._has('cartesian'));\n var hasCartesian = !!(newFullLayout._has && newFullLayout._has('cartesian'));\n var hadBgLayer = hadCartesian || hadGL2D;\n var hasBgLayer = hasCartesian || hasGL2D;\n if(hadBgLayer && !hasBgLayer) {\n // remove bgLayer\n oldFullLayout._bgLayer.remove();\n } else if(hasBgLayer && !hadBgLayer) {\n // create bgLayer\n newFullLayout._shouldCreateBgLayer = true;\n }\n\n // clear selection outline until we implement persistent selection,\n // don't clear them though when drag handlers (e.g. listening to\n // `plotly_selecting`) update the graph.\n // we should try to come up with a better solution when implementing\n // https://github.com/plotly/plotly.js/issues/1851\n if(oldFullLayout._zoomlayer && !gd._dragging) {\n clearOutline({ // mock old gd\n _fullLayout: oldFullLayout\n });\n }\n\n\n // fill in meta helpers\n fillMetaTextHelpers(newFullData, newFullLayout);\n\n // relink functions and _ attributes to promote consistency between plots\n relinkPrivateKeys(newFullLayout, oldFullLayout);\n\n // colorscale crossTraceDefaults needs newFullLayout with relinked keys\n Registry.getComponentMethod('colorscale', 'crossTraceDefaults')(newFullData, newFullLayout);\n\n // For persisting GUI-driven changes in layout\n // _preGUI and _tracePreGUI were already copied over in relinkPrivateKeys\n if(!newFullLayout._preGUI) newFullLayout._preGUI = {};\n // track trace GUI changes by uid rather than by trace index\n if(!newFullLayout._tracePreGUI) newFullLayout._tracePreGUI = {};\n var tracePreGUI = newFullLayout._tracePreGUI;\n var uids = {};\n var uid;\n for(uid in tracePreGUI) uids[uid] = 'old';\n for(i = 0; i < newFullData.length; i++) {\n uid = newFullData[i]._fullInput.uid;\n if(!uids[uid]) tracePreGUI[uid] = {};\n uids[uid] = 'new';\n }\n for(uid in uids) {\n if(uids[uid] === 'old') delete tracePreGUI[uid];\n }\n\n // set up containers for margin calculations\n initMargins(newFullLayout);\n\n // collect and do some initial calculations for rangesliders\n Registry.getComponentMethod('rangeslider', 'makeData')(newFullLayout);\n\n // update object references in calcdata\n if(!skipUpdateCalc && oldCalcdata.length === newFullData.length) {\n plots.supplyDefaultsUpdateCalc(oldCalcdata, newFullData);\n }\n};\n\nplots.supplyDefaultsUpdateCalc = function(oldCalcdata, newFullData) {\n for(var i = 0; i < newFullData.length; i++) {\n var newTrace = newFullData[i];\n var cd0 = (oldCalcdata[i] || [])[0];\n if(cd0 && cd0.trace) {\n var oldTrace = cd0.trace;\n if(oldTrace._hasCalcTransform) {\n var arrayAttrs = oldTrace._arrayAttrs;\n var j, astr, oldArrayVal;\n\n for(j = 0; j < arrayAttrs.length; j++) {\n astr = arrayAttrs[j];\n oldArrayVal = Lib.nestedProperty(oldTrace, astr).get().slice();\n Lib.nestedProperty(newTrace, astr).set(oldArrayVal);\n }\n }\n cd0.trace = newTrace;\n }\n }\n};\n\n/**\n * Create a list of uid strings satisfying (in this order of importance):\n * 1. all unique, all strings\n * 2. matches input uids if provided\n * 3. matches previous data uids\n */\nfunction getTraceUids(oldFullData, newData) {\n var len = newData.length;\n var oldFullInput = [];\n var i, prevFullInput;\n for(i = 0; i < oldFullData.length; i++) {\n var thisFullInput = oldFullData[i]._fullInput;\n if(thisFullInput !== prevFullInput) oldFullInput.push(thisFullInput);\n prevFullInput = thisFullInput;\n }\n var oldLen = oldFullInput.length;\n var out = new Array(len);\n var seenUids = {};\n\n function setUid(uid, i) {\n out[i] = uid;\n seenUids[uid] = 1;\n }\n\n function tryUid(uid, i) {\n if(uid && typeof uid === 'string' && !seenUids[uid]) {\n setUid(uid, i);\n return true;\n }\n }\n\n for(i = 0; i < len; i++) {\n var newUid = newData[i].uid;\n if(typeof newUid === 'number') newUid = String(newUid);\n\n if(tryUid(newUid, i)) continue;\n if(i < oldLen && tryUid(oldFullInput[i].uid, i)) continue;\n setUid(Lib.randstr(seenUids), i);\n }\n\n return out;\n}\n\n/**\n * Make a container for collecting subplots we need to display.\n *\n * Finds all subplot types we need to enumerate once and caches it,\n * but makes a new output object each time.\n * Single-trace subplots (which have no `id`) such as pie, table, etc\n * do not need to be collected because we just draw all visible traces.\n */\nfunction emptySubplotLists() {\n var collectableSubplotTypes = Registry.collectableSubplotTypes;\n var out = {};\n var i, j;\n\n if(!collectableSubplotTypes) {\n collectableSubplotTypes = [];\n\n var subplotsRegistry = Registry.subplotsRegistry;\n\n for(var subplotType in subplotsRegistry) {\n var subplotModule = subplotsRegistry[subplotType];\n var subplotAttr = subplotModule.attr;\n\n if(subplotAttr) {\n collectableSubplotTypes.push(subplotType);\n\n // special case, currently just for cartesian:\n // we need to enumerate axes, not just subplots\n if(Array.isArray(subplotAttr)) {\n for(j = 0; j < subplotAttr.length; j++) {\n Lib.pushUnique(collectableSubplotTypes, subplotAttr[j]);\n }\n }\n }\n }\n }\n\n for(i = 0; i < collectableSubplotTypes.length; i++) {\n out[collectableSubplotTypes[i]] = [];\n }\n return out;\n}\n\n/**\n * getFormatObj: use _context to get the format object from locale.\n * Used to get d3.locale argument object and extraFormat argument object\n *\n * Regarding d3.locale argument :\n * decimal and thousands can be overridden later by layout.separators\n * grouping and currency are not presently used by our automatic number\n * formatting system but can be used by custom formats.\n *\n * @returns {object} d3.locale format object\n */\nfunction getFormatObj(gd, formatKeys) {\n var locale = gd._context.locale;\n if(!locale) locale = 'en-US';\n\n var formatDone = false;\n var formatObj = {};\n\n function includeFormat(newFormat) {\n var formatFinished = true;\n for(var i = 0; i < formatKeys.length; i++) {\n var formatKey = formatKeys[i];\n if(!formatObj[formatKey]) {\n if(newFormat[formatKey]) {\n formatObj[formatKey] = newFormat[formatKey];\n } else formatFinished = false;\n }\n }\n if(formatFinished) formatDone = true;\n }\n\n // same as localize, look for format parts in each format spec in the chain\n for(var i = 0; i < 2; i++) {\n var locales = gd._context.locales;\n for(var j = 0; j < 2; j++) {\n var formatj = (locales[locale] || {}).format;\n if(formatj) {\n includeFormat(formatj);\n if(formatDone) break;\n }\n locales = Registry.localeRegistry;\n }\n\n var baseLocale = locale.split('-')[0];\n if(formatDone || baseLocale === locale) break;\n locale = baseLocale;\n }\n\n // lastly pick out defaults from english (non-US, as DMY is so much more common)\n if(!formatDone) includeFormat(Registry.localeRegistry.en.format);\n\n return formatObj;\n}\n\n/**\n * getFormatter: combine the final separators with the locale formatting object\n * we pulled earlier to generate number and time formatters\n * TODO: remove separators in v3, only use locale, so we don't need this step?\n *\n * @param {object} formatObj: d3.locale format object\n * @param {string} separators: length-2 string to override decimal and thousands\n * separators in number formatting\n *\n * @returns {object} {numberFormat, timeFormat} d3 formatter factory functions\n * for numbers and time\n */\nfunction getFormatter(formatObj, separators) {\n formatObj.decimal = separators.charAt(0);\n formatObj.thousands = separators.charAt(1);\n\n return {\n numberFormat: function(formatStr) {\n try {\n formatStr = formatLocale(formatObj).format(\n Lib.adjustFormat(formatStr)\n );\n } catch(e) {\n Lib.warnBadFormat(formatStr);\n return Lib.noFormat;\n }\n\n return formatStr;\n },\n timeFormat: timeFormatLocale(formatObj).utcFormat\n };\n}\n\nfunction fillMetaTextHelpers(newFullData, newFullLayout) {\n var _meta;\n var meta4data = [];\n\n if(newFullLayout.meta) {\n _meta = newFullLayout._meta = {\n meta: newFullLayout.meta,\n layout: {meta: newFullLayout.meta}\n };\n }\n\n for(var i = 0; i < newFullData.length; i++) {\n var trace = newFullData[i];\n\n if(trace.meta) {\n meta4data[trace.index] = trace._meta = {meta: trace.meta};\n } else if(newFullLayout.meta) {\n trace._meta = {meta: newFullLayout.meta};\n }\n if(newFullLayout.meta) {\n trace._meta.layout = {meta: newFullLayout.meta};\n }\n }\n\n if(meta4data.length) {\n if(!_meta) {\n _meta = newFullLayout._meta = {};\n }\n _meta.data = meta4data;\n }\n}\n\n// Create storage for all of the data related to frames and transitions:\nplots.createTransitionData = function(gd) {\n // Set up the default keyframe if it doesn't exist:\n if(!gd._transitionData) {\n gd._transitionData = {};\n }\n\n if(!gd._transitionData._frames) {\n gd._transitionData._frames = [];\n }\n\n if(!gd._transitionData._frameHash) {\n gd._transitionData._frameHash = {};\n }\n\n if(!gd._transitionData._counter) {\n gd._transitionData._counter = 0;\n }\n\n if(!gd._transitionData._interruptCallbacks) {\n gd._transitionData._interruptCallbacks = [];\n }\n};\n\n// helper function to be bound to fullLayout to check\n// whether a certain plot type is present on plot\n// or trace has a category\nplots._hasPlotType = function(category) {\n var i;\n\n // check base plot modules\n var basePlotModules = this._basePlotModules || [];\n for(i = 0; i < basePlotModules.length; i++) {\n if(basePlotModules[i].name === category) return true;\n }\n\n // check trace modules (including non-visible:true)\n var modules = this._modules || [];\n for(i = 0; i < modules.length; i++) {\n var name = modules[i].name;\n if(name === category) return true;\n // N.B. this is modules[i] along with 'categories' as a hash object\n var _module = Registry.modules[name];\n if(_module && _module.categories[category]) return true;\n }\n\n return false;\n};\n\nplots.cleanPlot = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var i, j;\n\n var basePlotModules = oldFullLayout._basePlotModules || [];\n for(i = 0; i < basePlotModules.length; i++) {\n var _module = basePlotModules[i];\n\n if(_module.clean) {\n _module.clean(newFullData, newFullLayout, oldFullData, oldFullLayout);\n }\n }\n\n var hadGl = oldFullLayout._has && oldFullLayout._has('gl');\n var hasGl = newFullLayout._has && newFullLayout._has('gl');\n\n if(hadGl && !hasGl) {\n if(oldFullLayout._glcontainer !== undefined) {\n oldFullLayout._glcontainer.selectAll('.gl-canvas').remove();\n oldFullLayout._glcontainer.selectAll('.no-webgl').remove();\n oldFullLayout._glcanvas = null;\n }\n }\n\n var hasInfoLayer = !!oldFullLayout._infolayer;\n\n oldLoop:\n for(i = 0; i < oldFullData.length; i++) {\n var oldTrace = oldFullData[i];\n var oldUid = oldTrace.uid;\n\n for(j = 0; j < newFullData.length; j++) {\n var newTrace = newFullData[j];\n\n if(oldUid === newTrace.uid) continue oldLoop;\n }\n\n // clean old colorbars\n if(hasInfoLayer) {\n oldFullLayout._infolayer.select('.cb' + oldUid).remove();\n }\n }\n};\n\nplots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var i, j;\n\n var oldSubplots = oldFullLayout._plots || {};\n var newSubplots = newFullLayout._plots = {};\n var newSubplotList = newFullLayout._subplots;\n\n var mockGd = {\n _fullData: newFullData,\n _fullLayout: newFullLayout\n };\n\n var ids = newSubplotList.cartesian.concat(newSubplotList.gl2d || []);\n\n for(i = 0; i < ids.length; i++) {\n var id = ids[i];\n var oldSubplot = oldSubplots[id];\n var xaxis = axisIDs.getFromId(mockGd, id, 'x');\n var yaxis = axisIDs.getFromId(mockGd, id, 'y');\n var plotinfo;\n\n // link or create subplot object\n if(oldSubplot) {\n plotinfo = newSubplots[id] = oldSubplot;\n } else {\n plotinfo = newSubplots[id] = {};\n plotinfo.id = id;\n }\n\n // add these axis ids to each others' subplot lists\n xaxis._counterAxes.push(yaxis._id);\n yaxis._counterAxes.push(xaxis._id);\n xaxis._subplotsWith.push(id);\n yaxis._subplotsWith.push(id);\n\n // update x and y axis layout object refs\n plotinfo.xaxis = xaxis;\n plotinfo.yaxis = yaxis;\n\n // By default, we clip at the subplot level,\n // but if one trace on a given subplot has *cliponaxis* set to false,\n // we need to clip at the trace module layer level;\n // find this out here, once of for all.\n plotinfo._hasClipOnAxisFalse = false;\n\n for(j = 0; j < newFullData.length; j++) {\n var trace = newFullData[j];\n\n if(\n trace.xaxis === plotinfo.xaxis._id &&\n trace.yaxis === plotinfo.yaxis._id &&\n trace.cliponaxis === false\n ) {\n plotinfo._hasClipOnAxisFalse = true;\n break;\n }\n }\n }\n\n // while we're at it, link overlaying axes to their main axes and\n // anchored axes to the axes they're anchored to\n var axList = axisIDs.list(mockGd, null, true);\n var ax;\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n var mainAx = null;\n\n if(ax.overlaying) {\n mainAx = axisIDs.getFromId(mockGd, ax.overlaying);\n\n // you cannot overlay an axis that's already overlaying another\n if(mainAx && mainAx.overlaying) {\n ax.overlaying = false;\n mainAx = null;\n }\n }\n ax._mainAxis = mainAx || ax;\n\n /*\n * For now force overlays to overlay completely... so they\n * can drag together correctly and share backgrounds.\n * Later perhaps we make separate axis domain and\n * tick/line domain or something, so they can still share\n * the (possibly larger) dragger and background but don't\n * have to both be drawn over that whole domain\n */\n if(mainAx) ax.domain = mainAx.domain.slice();\n\n ax._anchorAxis = ax.anchor === 'free' ?\n null :\n axisIDs.getFromId(mockGd, ax.anchor);\n }\n\n // finally, we can find the main subplot for each axis\n // (on which the ticks & labels are drawn)\n for(i = 0; i < axList.length; i++) {\n ax = axList[i];\n ax._counterAxes.sort(axisIDs.idSort);\n ax._subplotsWith.sort(Lib.subplotSort);\n ax._mainSubplot = findMainSubplot(ax, newFullLayout);\n\n // find \"full\" domain span of counter axes,\n // this loop can be costly, so only compute it when required\n if(ax._counterAxes.length && (\n (ax.spikemode && ax.spikemode.indexOf('across') !== -1) ||\n (ax.automargin && ax.mirror && ax.anchor !== 'free') ||\n Registry.getComponentMethod('rangeslider', 'isVisible')(ax)\n )) {\n var min = 1;\n var max = 0;\n for(j = 0; j < ax._counterAxes.length; j++) {\n var ax2 = axisIDs.getFromId(mockGd, ax._counterAxes[j]);\n min = Math.min(min, ax2.domain[0]);\n max = Math.max(max, ax2.domain[1]);\n }\n if(min < max) {\n ax._counterDomainMin = min;\n ax._counterDomainMax = max;\n }\n }\n }\n};\n\nfunction findMainSubplot(ax, fullLayout) {\n var mockGd = {_fullLayout: fullLayout};\n\n var isX = ax._id.charAt(0) === 'x';\n var anchorAx = ax._mainAxis._anchorAxis;\n var mainSubplotID = '';\n var nextBestMainSubplotID = '';\n var anchorID = '';\n\n // First try the main ID with the anchor\n if(anchorAx) {\n anchorID = anchorAx._mainAxis._id;\n mainSubplotID = isX ? (ax._id + anchorID) : (anchorID + ax._id);\n }\n\n // Then look for a subplot with the counteraxis overlaying the anchor\n // If that fails just use the first subplot including this axis\n if(!mainSubplotID || !fullLayout._plots[mainSubplotID]) {\n mainSubplotID = '';\n\n var counterIDs = ax._counterAxes;\n for(var j = 0; j < counterIDs.length; j++) {\n var counterPart = counterIDs[j];\n var id = isX ? (ax._id + counterPart) : (counterPart + ax._id);\n if(!nextBestMainSubplotID) nextBestMainSubplotID = id;\n var counterAx = axisIDs.getFromId(mockGd, counterPart);\n if(anchorID && counterAx.overlaying === anchorID) {\n mainSubplotID = id;\n break;\n }\n }\n }\n\n return mainSubplotID || nextBestMainSubplotID;\n}\n\n// This function clears any trace attributes with valType: color and\n// no set dflt filed in the plot schema. This is needed because groupby (which\n// is the only transform for which this currently applies) supplies parent\n// trace defaults, then expanded trace defaults. The result is that `null`\n// colors are default-supplied and inherited as a color instead of a null.\n// The result is that expanded trace default colors have no effect, with\n// the final result that groups are indistinguishable. This function clears\n// those colors so that individual groupby groups get unique colors.\nplots.clearExpandedTraceDefaultColors = function(trace) {\n var colorAttrs, path, i;\n\n // This uses weird closure state in order to satisfy the linter rule\n // that we can't create functions in a loop.\n function locateColorAttrs(attr, attrName, attrs, level) {\n path[level] = attrName;\n path.length = level + 1;\n if(attr.valType === 'color' && attr.dflt === undefined) {\n colorAttrs.push(path.join('.'));\n }\n }\n\n path = [];\n\n // Get the cached colorAttrs:\n colorAttrs = trace._module._colorAttrs;\n\n // Or else compute and cache the colorAttrs on the module:\n if(!colorAttrs) {\n trace._module._colorAttrs = colorAttrs = [];\n PlotSchema.crawl(\n trace._module.attributes,\n locateColorAttrs\n );\n }\n\n for(i = 0; i < colorAttrs.length; i++) {\n var origprop = Lib.nestedProperty(trace, '_input.' + colorAttrs[i]);\n\n if(!origprop.get()) {\n Lib.nestedProperty(trace, colorAttrs[i]).set(null);\n }\n }\n};\n\n\nplots.supplyDataDefaults = function(dataIn, dataOut, layout, fullLayout) {\n var modules = fullLayout._modules;\n var visibleModules = fullLayout._visibleModules;\n var basePlotModules = fullLayout._basePlotModules;\n var cnt = 0;\n var colorCnt = 0;\n\n var i, fullTrace, trace;\n\n fullLayout._transformModules = [];\n\n function pushModule(fullTrace) {\n dataOut.push(fullTrace);\n\n var _module = fullTrace._module;\n if(!_module) return;\n\n Lib.pushUnique(modules, _module);\n if(fullTrace.visible === true) Lib.pushUnique(visibleModules, _module);\n Lib.pushUnique(basePlotModules, fullTrace._module.basePlotModule);\n cnt++;\n\n // TODO: do we really want color not to increment for explicitly invisible traces?\n // This logic is weird, but matches previous behavior: traces that you explicitly\n // set to visible:false do not increment the color, but traces WE determine to be\n // empty or invalid (and thus set to visible:false) DO increment color.\n // I kind of think we should just let all traces increment color, visible or not.\n // see mock: axes-autotype-empty vs. a test of restyling visible: false that\n // I can't find right now...\n if(fullTrace._input.visible !== false) colorCnt++;\n }\n\n var carpetIndex = {};\n var carpetDependents = [];\n var dataTemplate = (layout.template || {}).data || {};\n var templater = Template.traceTemplater(dataTemplate);\n\n for(i = 0; i < dataIn.length; i++) {\n trace = dataIn[i];\n\n // reuse uid we may have pulled out of oldFullData\n // Note: templater supplies trace type\n fullTrace = templater.newTrace(trace);\n fullTrace.uid = fullLayout._traceUids[i];\n plots.supplyTraceDefaults(trace, fullTrace, colorCnt, fullLayout, i);\n\n fullTrace.index = i;\n fullTrace._input = trace;\n fullTrace._expandedIndex = cnt;\n\n if(fullTrace.transforms && fullTrace.transforms.length) {\n var sdInvisible = trace.visible !== false && fullTrace.visible === false;\n\n var expandedTraces = applyTransforms(fullTrace, dataOut, layout, fullLayout);\n\n for(var j = 0; j < expandedTraces.length; j++) {\n var expandedTrace = expandedTraces[j];\n\n // No further templating during transforms.\n var fullExpandedTrace = {\n _template: fullTrace._template,\n type: fullTrace.type,\n // set uid using parent uid and expanded index\n // to promote consistency between update calls\n uid: fullTrace.uid + j\n };\n\n // If the first supplyDefaults created `visible: false`,\n // clear it before running supplyDefaults a second time,\n // because sometimes there are items we still want to coerce\n // inside trace modules before determining that the trace is\n // again `visible: false`, for example partial visibilities\n // in `splom` traces.\n if(sdInvisible && expandedTrace.visible === false) {\n delete expandedTrace.visible;\n }\n\n plots.supplyTraceDefaults(expandedTrace, fullExpandedTrace, cnt, fullLayout, i);\n\n // relink private (i.e. underscore) keys expanded trace to full expanded trace so\n // that transform supply-default methods can set _ keys for future use.\n relinkPrivateKeys(fullExpandedTrace, expandedTrace);\n\n // add info about parent data trace\n fullExpandedTrace.index = i;\n fullExpandedTrace._input = trace;\n fullExpandedTrace._fullInput = fullTrace;\n\n // add info about the expanded data\n fullExpandedTrace._expandedIndex = cnt;\n fullExpandedTrace._expandedInput = expandedTrace;\n\n pushModule(fullExpandedTrace);\n }\n } else {\n // add identify refs for consistency with transformed traces\n fullTrace._fullInput = fullTrace;\n fullTrace._expandedInput = fullTrace;\n\n pushModule(fullTrace);\n }\n\n if(Registry.traceIs(fullTrace, 'carpetAxis')) {\n carpetIndex[fullTrace.carpet] = fullTrace;\n }\n\n if(Registry.traceIs(fullTrace, 'carpetDependent')) {\n carpetDependents.push(i);\n }\n }\n\n for(i = 0; i < carpetDependents.length; i++) {\n fullTrace = dataOut[carpetDependents[i]];\n\n if(!fullTrace.visible) continue;\n\n var carpetAxis = carpetIndex[fullTrace.carpet];\n fullTrace._carpet = carpetAxis;\n\n if(!carpetAxis || !carpetAxis.visible) {\n fullTrace.visible = false;\n continue;\n }\n\n fullTrace.xaxis = carpetAxis.xaxis;\n fullTrace.yaxis = carpetAxis.yaxis;\n }\n};\n\nplots.supplyAnimationDefaults = function(opts) {\n opts = opts || {};\n var i;\n var optsOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts || {}, optsOut, animationAttrs, attr, dflt);\n }\n\n coerce('mode');\n coerce('direction');\n coerce('fromcurrent');\n\n if(Array.isArray(opts.frame)) {\n optsOut.frame = [];\n for(i = 0; i < opts.frame.length; i++) {\n optsOut.frame[i] = plots.supplyAnimationFrameDefaults(opts.frame[i] || {});\n }\n } else {\n optsOut.frame = plots.supplyAnimationFrameDefaults(opts.frame || {});\n }\n\n if(Array.isArray(opts.transition)) {\n optsOut.transition = [];\n for(i = 0; i < opts.transition.length; i++) {\n optsOut.transition[i] = plots.supplyAnimationTransitionDefaults(opts.transition[i] || {});\n }\n } else {\n optsOut.transition = plots.supplyAnimationTransitionDefaults(opts.transition || {});\n }\n\n return optsOut;\n};\n\nplots.supplyAnimationFrameDefaults = function(opts) {\n var optsOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts || {}, optsOut, animationAttrs.frame, attr, dflt);\n }\n\n coerce('duration');\n coerce('redraw');\n\n return optsOut;\n};\n\nplots.supplyAnimationTransitionDefaults = function(opts) {\n var optsOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(opts || {}, optsOut, animationAttrs.transition, attr, dflt);\n }\n\n coerce('duration');\n coerce('easing');\n\n return optsOut;\n};\n\nplots.supplyFrameDefaults = function(frameIn) {\n var frameOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(frameIn, frameOut, frameAttrs, attr, dflt);\n }\n\n coerce('group');\n coerce('name');\n coerce('traces');\n coerce('baseframe');\n coerce('data');\n coerce('layout');\n\n return frameOut;\n};\n\nplots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, traceInIndex) {\n var colorway = layout.colorway || Color.defaults;\n var defaultColor = colorway[colorIndex % colorway.length];\n\n var i;\n\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, plots.attributes, attr, dflt);\n }\n\n var visible = coerce('visible');\n\n coerce('type');\n coerce('name', layout._traceWord + ' ' + traceInIndex);\n\n coerce('uirevision', layout.uirevision);\n\n // we want even invisible traces to make their would-be subplots visible\n // so coerce the subplot id(s) now no matter what\n var _module = plots.getModule(traceOut);\n\n traceOut._module = _module;\n if(_module) {\n var basePlotModule = _module.basePlotModule;\n var subplotAttr = basePlotModule.attr;\n var subplotAttrs = basePlotModule.attributes;\n if(subplotAttr && subplotAttrs) {\n var subplots = layout._subplots;\n var subplotId = '';\n\n if(\n visible ||\n basePlotModule.name !== 'gl2d' // for now just drop empty gl2d subplots\n // TODO - currently if we draw an empty gl2d subplot, it draws\n // nothing then gets stuck and you can't get it back without newPlot\n // sort this out in the regl refactor?\n ) {\n if(Array.isArray(subplotAttr)) {\n for(i = 0; i < subplotAttr.length; i++) {\n var attri = subplotAttr[i];\n var vali = Lib.coerce(traceIn, traceOut, subplotAttrs, attri);\n\n if(subplots[attri]) Lib.pushUnique(subplots[attri], vali);\n subplotId += vali;\n }\n } else {\n subplotId = Lib.coerce(traceIn, traceOut, subplotAttrs, subplotAttr);\n }\n\n if(subplots[basePlotModule.name]) {\n Lib.pushUnique(subplots[basePlotModule.name], subplotId);\n }\n }\n }\n }\n\n if(visible) {\n coerce('customdata');\n coerce('ids');\n coerce('meta');\n\n if(Registry.traceIs(traceOut, 'showLegend')) {\n Lib.coerce(traceIn, traceOut,\n _module.attributes.showlegend ? _module.attributes : plots.attributes,\n 'showlegend'\n );\n\n coerce('legendwidth');\n coerce('legendgroup');\n coerce('legendgrouptitle.text');\n coerce('legendrank');\n\n traceOut._dfltShowLegend = true;\n } else {\n traceOut._dfltShowLegend = false;\n }\n\n if(_module) {\n _module.supplyDefaults(traceIn, traceOut, defaultColor, layout);\n }\n\n if(!Registry.traceIs(traceOut, 'noOpacity')) {\n coerce('opacity');\n }\n\n if(Registry.traceIs(traceOut, 'notLegendIsolatable')) {\n // This clears out the legendonly state for traces like carpet that\n // cannot be isolated in the legend\n traceOut.visible = !!traceOut.visible;\n }\n\n if(!Registry.traceIs(traceOut, 'noHover')) {\n if(!traceOut.hovertemplate) Lib.coerceHoverinfo(traceIn, traceOut, layout);\n\n // parcats support hover, but not hoverlabel stylings (yet)\n if(traceOut.type !== 'parcats') {\n Registry.getComponentMethod('fx', 'supplyDefaults')(traceIn, traceOut, defaultColor, layout);\n }\n }\n\n if(_module && _module.selectPoints) {\n coerce('selectedpoints');\n }\n\n plots.supplyTransformDefaults(traceIn, traceOut, layout);\n }\n\n return traceOut;\n};\n\n/**\n * hasMakesDataTransform: does this trace have a transform that makes its own\n * data, either by grabbing it from somewhere else or by creating it from input\n * parameters? If so, we should still keep going with supplyDefaults\n * even if the trace is invisible, which may just be because it has no data yet.\n */\nfunction hasMakesDataTransform(trace) {\n var transforms = trace.transforms;\n if(Array.isArray(transforms) && transforms.length) {\n for(var i = 0; i < transforms.length; i++) {\n var ti = transforms[i];\n var _module = ti._module || transformsRegistry[ti.type];\n if(_module && _module.makesData) return true;\n }\n }\n return false;\n}\n\nplots.hasMakesDataTransform = hasMakesDataTransform;\n\nplots.supplyTransformDefaults = function(traceIn, traceOut, layout) {\n // For now we only allow transforms on 1D traces, ie those that specify a _length.\n // If we were to implement 2D transforms, we'd need to have each transform\n // describe its own applicability and disable itself when it doesn't apply.\n // Also allow transforms that make their own data, but not in globalTransforms\n if(!(traceOut._length || hasMakesDataTransform(traceIn))) return;\n\n var globalTransforms = layout._globalTransforms || [];\n var transformModules = layout._transformModules || [];\n\n if(!Array.isArray(traceIn.transforms) && globalTransforms.length === 0) return;\n\n var containerIn = traceIn.transforms || [];\n var transformList = globalTransforms.concat(containerIn);\n var containerOut = traceOut.transforms = [];\n\n for(var i = 0; i < transformList.length; i++) {\n var transformIn = transformList[i];\n var type = transformIn.type;\n var _module = transformsRegistry[type];\n var transformOut;\n\n /*\n * Supply defaults may run twice. First pass runs all supply defaults steps\n * and adds the _module to any output transforms.\n * If transforms exist another pass is run so that any generated traces also\n * go through supply defaults. This has the effect of rerunning\n * supplyTransformDefaults. If the transform does not have a `transform`\n * function it could not have generated any new traces and the second stage\n * is unnecessary. We detect this case with the following variables.\n */\n var isFirstStage = !(transformIn._module && transformIn._module === _module);\n var doLaterStages = _module && typeof _module.transform === 'function';\n\n if(!_module) Lib.warn('Unrecognized transform type ' + type + '.');\n\n if(_module && _module.supplyDefaults && (isFirstStage || doLaterStages)) {\n transformOut = _module.supplyDefaults(transformIn, traceOut, layout, traceIn);\n transformOut.type = type;\n transformOut._module = _module;\n\n Lib.pushUnique(transformModules, _module);\n } else {\n transformOut = Lib.extendFlat({}, transformIn);\n }\n\n containerOut.push(transformOut);\n }\n};\n\nfunction applyTransforms(fullTrace, fullData, layout, fullLayout) {\n var container = fullTrace.transforms;\n var dataOut = [fullTrace];\n\n for(var i = 0; i < container.length; i++) {\n var transform = container[i];\n var _module = transformsRegistry[transform.type];\n\n if(_module && _module.transform) {\n dataOut = _module.transform(dataOut, {\n transform: transform,\n fullTrace: fullTrace,\n fullData: fullData,\n layout: layout,\n fullLayout: fullLayout,\n transformIndex: i\n });\n }\n }\n\n return dataOut;\n}\n\nplots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, plots.layoutAttributes, attr, dflt);\n }\n\n var template = layoutIn.template;\n if(Lib.isPlainObject(template)) {\n layoutOut.template = template;\n layoutOut._template = template.layout;\n layoutOut._dataTemplate = template.data;\n }\n\n coerce('autotypenumbers');\n\n var font = Lib.coerceFont(coerce, 'font');\n var fontSize = font.size;\n\n Lib.coerceFont(coerce, 'title.font', Lib.extendFlat({}, font, {\n size: Math.round(fontSize * 1.4)\n }));\n\n coerce('title.text', layoutOut._dfltTitle.plot);\n coerce('title.xref');\n coerce('title.yref');\n coerce('title.x');\n coerce('title.y');\n coerce('title.xanchor');\n coerce('title.yanchor');\n coerce('title.pad.t');\n coerce('title.pad.r');\n coerce('title.pad.b');\n coerce('title.pad.l');\n\n var uniformtextMode = coerce('uniformtext.mode');\n if(uniformtextMode) {\n coerce('uniformtext.minsize');\n }\n\n // Make sure that autosize is defaulted to *true*\n // on layouts with no set width and height for backward compatibly,\n // in particular https://plotly.com/javascript/responsive-fluid-layout/\n //\n // Before https://github.com/plotly/plotly.js/pull/635 ,\n // layouts with no set width and height were set temporary set to 'initial'\n // to pass through the autosize routine\n //\n // This behavior is subject to change in v3.\n coerce('autosize', !(layoutIn.width && layoutIn.height));\n\n coerce('width');\n coerce('height');\n coerce('minreducedwidth');\n coerce('minreducedheight');\n\n coerce('margin.l');\n coerce('margin.r');\n coerce('margin.t');\n coerce('margin.b');\n coerce('margin.pad');\n coerce('margin.autoexpand');\n\n if(layoutIn.width && layoutIn.height) plots.sanitizeMargins(layoutOut);\n\n Registry.getComponentMethod('grid', 'sizeDefaults')(layoutIn, layoutOut);\n\n coerce('paper_bgcolor');\n\n coerce('separators', formatObj.decimal + formatObj.thousands);\n coerce('hidesources');\n\n coerce('colorway');\n\n coerce('datarevision');\n var uirevision = coerce('uirevision');\n coerce('editrevision', uirevision);\n coerce('selectionrevision', uirevision);\n\n Registry.getComponentMethod(\n 'modebar',\n 'supplyLayoutDefaults'\n )(layoutIn, layoutOut);\n\n Registry.getComponentMethod(\n 'shapes',\n 'supplyDrawNewShapeDefaults'\n )(layoutIn, layoutOut, coerce);\n\n Registry.getComponentMethod(\n 'selections',\n 'supplyDrawNewSelectionDefaults'\n )(layoutIn, layoutOut, coerce);\n\n coerce('meta');\n\n // do not include defaults in fullLayout when users do not set transition\n if(Lib.isPlainObject(layoutIn.transition)) {\n coerce('transition.duration');\n coerce('transition.easing');\n coerce('transition.ordering');\n }\n\n Registry.getComponentMethod(\n 'calendars',\n 'handleDefaults'\n )(layoutIn, layoutOut, 'calendar');\n\n Registry.getComponentMethod(\n 'fx',\n 'supplyLayoutGlobalDefaults'\n )(layoutIn, layoutOut, coerce);\n};\n\nfunction getComputedSize(attr) {\n return (\n (typeof attr === 'string') &&\n (attr.substr(attr.length - 2) === 'px') &&\n parseFloat(attr)\n );\n}\n\n\nplots.plotAutoSize = function plotAutoSize(gd, layout, fullLayout) {\n var context = gd._context || {};\n var frameMargins = context.frameMargins;\n var newWidth;\n var newHeight;\n\n var isPlotDiv = Lib.isPlotDiv(gd);\n\n if(isPlotDiv) gd.emit('plotly_autosize');\n\n // embedded in an iframe - just take the full iframe size\n // if we get to this point, with no aspect ratio restrictions\n if(context.fillFrame) {\n newWidth = window.innerWidth;\n newHeight = window.innerHeight;\n\n // somehow we get a few extra px height sometimes...\n // just hide it\n document.body.style.overflow = 'hidden';\n } else {\n // plotly.js - let the developers do what they want, either\n // provide height and width for the container div,\n // specify size in layout, or take the defaults,\n // but don't enforce any ratio restrictions\n var computedStyle = isPlotDiv ? window.getComputedStyle(gd) : {};\n\n newWidth = getComputedSize(computedStyle.width) || getComputedSize(computedStyle.maxWidth) || fullLayout.width;\n newHeight = getComputedSize(computedStyle.height) || getComputedSize(computedStyle.maxHeight) || fullLayout.height;\n\n if(isNumeric(frameMargins) && frameMargins > 0) {\n var factor = 1 - 2 * frameMargins;\n newWidth = Math.round(factor * newWidth);\n newHeight = Math.round(factor * newHeight);\n }\n }\n\n var minWidth = plots.layoutAttributes.width.min;\n var minHeight = plots.layoutAttributes.height.min;\n if(newWidth < minWidth) newWidth = minWidth;\n if(newHeight < minHeight) newHeight = minHeight;\n\n var widthHasChanged = !layout.width &&\n (Math.abs(fullLayout.width - newWidth) > 1);\n var heightHasChanged = !layout.height &&\n (Math.abs(fullLayout.height - newHeight) > 1);\n\n if(heightHasChanged || widthHasChanged) {\n if(widthHasChanged) fullLayout.width = newWidth;\n if(heightHasChanged) fullLayout.height = newHeight;\n }\n\n // cache initial autosize value, used in relayout when\n // width or height values are set to null\n if(!gd._initialAutoSize) {\n gd._initialAutoSize = { width: newWidth, height: newHeight };\n }\n\n plots.sanitizeMargins(fullLayout);\n};\n\nplots.supplyLayoutModuleDefaults = function(layoutIn, layoutOut, fullData, transitionData) {\n var componentsRegistry = Registry.componentsRegistry;\n var basePlotModules = layoutOut._basePlotModules;\n var component, i, _module;\n\n var Cartesian = Registry.subplotsRegistry.cartesian;\n\n // check if any components need to add more base plot modules\n // that weren't captured by traces\n for(component in componentsRegistry) {\n _module = componentsRegistry[component];\n\n if(_module.includeBasePlot) {\n _module.includeBasePlot(layoutIn, layoutOut);\n }\n }\n\n // make sure we *at least* have some cartesian axes\n if(!basePlotModules.length) {\n basePlotModules.push(Cartesian);\n }\n\n // ensure all cartesian axes have at least one subplot\n if(layoutOut._has('cartesian')) {\n Registry.getComponentMethod('grid', 'contentDefaults')(layoutIn, layoutOut);\n Cartesian.finalizeSubplots(layoutIn, layoutOut);\n }\n\n // sort subplot lists\n for(var subplotType in layoutOut._subplots) {\n layoutOut._subplots[subplotType].sort(Lib.subplotSort);\n }\n\n // base plot module layout defaults\n for(i = 0; i < basePlotModules.length; i++) {\n _module = basePlotModules[i];\n\n // e.g. pie does not have a layout-defaults step\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n }\n\n // trace module layout defaults\n // use _modules rather than _visibleModules so that even\n // legendonly traces can include settings - eg barmode, which affects\n // legend.traceorder default value.\n var modules = layoutOut._modules;\n for(i = 0; i < modules.length; i++) {\n _module = modules[i];\n\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n }\n\n // transform module layout defaults\n var transformModules = layoutOut._transformModules;\n for(i = 0; i < transformModules.length; i++) {\n _module = transformModules[i];\n\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData, transitionData);\n }\n }\n\n for(component in componentsRegistry) {\n _module = componentsRegistry[component];\n\n if(_module.supplyLayoutDefaults) {\n _module.supplyLayoutDefaults(layoutIn, layoutOut, fullData);\n }\n }\n};\n\n// Remove all plotly attributes from a div so it can be replotted fresh\n// TODO: these really need to be encapsulated into a much smaller set...\nplots.purge = function(gd) {\n // note: we DO NOT remove _context because it doesn't change when we insert\n // a new plot, and may have been set outside of our scope.\n\n var fullLayout = gd._fullLayout || {};\n if(fullLayout._glcontainer !== undefined) {\n fullLayout._glcontainer.selectAll('.gl-canvas').remove();\n fullLayout._glcontainer.remove();\n fullLayout._glcanvas = null;\n }\n\n // remove modebar\n if(fullLayout._modeBar) fullLayout._modeBar.destroy();\n\n if(gd._transitionData) {\n // Ensure any dangling callbacks are simply dropped if the plot is purged.\n // This is more or less only actually important for testing.\n if(gd._transitionData._interruptCallbacks) {\n gd._transitionData._interruptCallbacks.length = 0;\n }\n\n if(gd._transitionData._animationRaf) {\n window.cancelAnimationFrame(gd._transitionData._animationRaf);\n }\n }\n\n // remove any planned throttles\n Lib.clearThrottle();\n\n // remove responsive handler\n Lib.clearResponsive(gd);\n\n // data and layout\n delete gd.data;\n delete gd.layout;\n delete gd._fullData;\n delete gd._fullLayout;\n delete gd.calcdata;\n delete gd.empty;\n\n delete gd.fid;\n\n delete gd.undoqueue; // action queue\n delete gd.undonum;\n delete gd.autoplay; // are we doing an action that doesn't go in undo queue?\n delete gd.changed;\n\n // these get recreated on _doPlot anyway, but just to be safe\n // (and to have a record of them...)\n delete gd._promises;\n delete gd._redrawTimer;\n delete gd._hmlumcount;\n delete gd._hmpixcount;\n delete gd._transitionData;\n delete gd._transitioning;\n delete gd._initialAutoSize;\n delete gd._transitioningWithDuration;\n\n // created during certain events, that *should* clean them up\n // themselves, but may not if there was an error\n delete gd._dragging;\n delete gd._dragged;\n delete gd._dragdata;\n delete gd._hoverdata;\n delete gd._snapshotInProgress;\n delete gd._editing;\n delete gd._mouseDownTime;\n delete gd._legendMouseDownTime;\n\n // remove all event listeners\n if(gd.removeAllListeners) gd.removeAllListeners();\n};\n\nplots.style = function(gd) {\n var _modules = gd._fullLayout._visibleModules;\n var styleModules = [];\n var i;\n\n // some trace modules reuse the same style method,\n // make sure to not unnecessary call them multiple times.\n\n for(i = 0; i < _modules.length; i++) {\n var _module = _modules[i];\n if(_module.style) {\n Lib.pushUnique(styleModules, _module.style);\n }\n }\n\n for(i = 0; i < styleModules.length; i++) {\n styleModules[i](gd);\n }\n};\n\nplots.sanitizeMargins = function(fullLayout) {\n // polar doesn't do margins...\n if(!fullLayout || !fullLayout.margin) return;\n\n var width = fullLayout.width;\n var height = fullLayout.height;\n var margin = fullLayout.margin;\n var plotWidth = width - (margin.l + margin.r);\n var plotHeight = height - (margin.t + margin.b);\n var correction;\n\n // if margin.l + margin.r = 0 then plotWidth > 0\n // as width >= 10 by supplyDefaults\n // similarly for margin.t + margin.b\n\n if(plotWidth < 0) {\n correction = (width - 1) / (margin.l + margin.r);\n margin.l = Math.floor(correction * margin.l);\n margin.r = Math.floor(correction * margin.r);\n }\n\n if(plotHeight < 0) {\n correction = (height - 1) / (margin.t + margin.b);\n margin.t = Math.floor(correction * margin.t);\n margin.b = Math.floor(correction * margin.b);\n }\n};\n\nplots.clearAutoMarginIds = function(gd) {\n gd._fullLayout._pushmarginIds = {};\n};\n\nplots.allowAutoMargin = function(gd, id) {\n gd._fullLayout._pushmarginIds[id] = 1;\n};\n\nfunction initMargins(fullLayout) {\n var margin = fullLayout.margin;\n\n if(!fullLayout._size) {\n var gs = fullLayout._size = {\n l: Math.round(margin.l),\n r: Math.round(margin.r),\n t: Math.round(margin.t),\n b: Math.round(margin.b),\n p: Math.round(margin.pad)\n };\n gs.w = Math.round(fullLayout.width) - gs.l - gs.r;\n gs.h = Math.round(fullLayout.height) - gs.t - gs.b;\n }\n if(!fullLayout._pushmargin) fullLayout._pushmargin = {};\n if(!fullLayout._pushmarginIds) fullLayout._pushmarginIds = {};\n}\n\n// non-negotiable - this is the smallest height we will allow users to specify via explicit margins\nvar MIN_SPECIFIED_WIDTH = 2;\nvar MIN_SPECIFIED_HEIGHT = 2;\n\n/**\n * autoMargin: called by components that may need to expand the margins to\n * be rendered on-plot.\n *\n * @param {DOM element} gd\n * @param {string} id - an identifier unique (within this plot) to this object,\n * so we can remove a previous margin expansion from the same object.\n * @param {object} o - the margin requirements of this object, or omit to delete\n * this entry (like if it's hidden). Keys are:\n * x, y: plot fraction of the anchor point.\n * xl, xr, yt, yb: if the object has an extent defined in plot fraction,\n * you can specify both edges as plot fractions in each dimension\n * l, r, t, b: the pixels to pad past the plot fraction x[l|r] and y[t|b]\n * pad: extra pixels to add in all directions, default 12 (why?)\n */\nplots.autoMargin = function(gd, id, o) {\n var fullLayout = gd._fullLayout;\n var width = fullLayout.width;\n var height = fullLayout.height;\n var margin = fullLayout.margin;\n var minreducedwidth = fullLayout.minreducedwidth;\n var minreducedheight = fullLayout.minreducedheight;\n\n var minFinalWidth = Lib.constrain(\n width - margin.l - margin.r,\n MIN_SPECIFIED_WIDTH,\n minreducedwidth\n );\n\n var minFinalHeight = Lib.constrain(\n height - margin.t - margin.b,\n MIN_SPECIFIED_HEIGHT,\n minreducedheight\n );\n\n var maxSpaceW = Math.max(0, width - minFinalWidth);\n var maxSpaceH = Math.max(0, height - minFinalHeight);\n\n var pushMargin = fullLayout._pushmargin;\n var pushMarginIds = fullLayout._pushmarginIds;\n\n if(margin.autoexpand !== false) {\n if(!o) {\n delete pushMargin[id];\n delete pushMarginIds[id];\n } else {\n var pad = o.pad;\n if(pad === undefined) {\n // if no explicit pad is given, use 12px unless there's a\n // specified margin that's smaller than that\n pad = Math.min(12, margin.l, margin.r, margin.t, margin.b);\n }\n\n // if the item is too big, just give it enough automargin to\n // make sure you can still grab it and bring it back\n if(maxSpaceW) {\n var rW = (o.l + o.r) / maxSpaceW;\n if(rW > 1) {\n o.l /= rW;\n o.r /= rW;\n }\n }\n if(maxSpaceH) {\n var rH = (o.t + o.b) / maxSpaceH;\n if(rH > 1) {\n o.t /= rH;\n o.b /= rH;\n }\n }\n\n var xl = o.xl !== undefined ? o.xl : o.x;\n var xr = o.xr !== undefined ? o.xr : o.x;\n var yt = o.yt !== undefined ? o.yt : o.y;\n var yb = o.yb !== undefined ? o.yb : o.y;\n\n pushMargin[id] = {\n l: {val: xl, size: o.l + pad},\n r: {val: xr, size: o.r + pad},\n b: {val: yb, size: o.b + pad},\n t: {val: yt, size: o.t + pad}\n };\n pushMarginIds[id] = 1;\n }\n\n if(!fullLayout._replotting) {\n return plots.doAutoMargin(gd);\n }\n }\n};\n\nplots.doAutoMargin = function(gd) {\n var fullLayout = gd._fullLayout;\n var width = fullLayout.width;\n var height = fullLayout.height;\n\n if(!fullLayout._size) fullLayout._size = {};\n initMargins(fullLayout);\n\n var gs = fullLayout._size;\n var margin = fullLayout.margin;\n var oldMargins = Lib.extendFlat({}, gs);\n\n // adjust margins for outside components\n // fullLayout.margin is the requested margin,\n // fullLayout._size has margins and plotsize after adjustment\n var ml = margin.l;\n var mr = margin.r;\n var mt = margin.t;\n var mb = margin.b;\n var pushMargin = fullLayout._pushmargin;\n var pushMarginIds = fullLayout._pushmarginIds;\n var minreducedwidth = fullLayout.minreducedwidth;\n var minreducedheight = fullLayout.minreducedheight;\n\n if(fullLayout.margin.autoexpand !== false) {\n for(var k in pushMargin) {\n if(!pushMarginIds[k]) delete pushMargin[k];\n }\n\n // fill in the requested margins\n pushMargin.base = {\n l: {val: 0, size: ml},\n r: {val: 1, size: mr},\n t: {val: 1, size: mt},\n b: {val: 0, size: mb}\n };\n\n // now cycle through all the combinations of l and r\n // (and t and b) to find the required margins\n\n for(var k1 in pushMargin) {\n var pushleft = pushMargin[k1].l || {};\n var pushbottom = pushMargin[k1].b || {};\n var fl = pushleft.val;\n var pl = pushleft.size;\n var fb = pushbottom.val;\n var pb = pushbottom.size;\n\n for(var k2 in pushMargin) {\n if(isNumeric(pl) && pushMargin[k2].r) {\n var fr = pushMargin[k2].r.val;\n var pr = pushMargin[k2].r.size;\n if(fr > fl) {\n var newL = (pl * fr + (pr - width) * fl) / (fr - fl);\n var newR = (pr * (1 - fl) + (pl - width) * (1 - fr)) / (fr - fl);\n if(newL + newR > ml + mr) {\n ml = newL;\n mr = newR;\n }\n }\n }\n\n if(isNumeric(pb) && pushMargin[k2].t) {\n var ft = pushMargin[k2].t.val;\n var pt = pushMargin[k2].t.size;\n if(ft > fb) {\n var newB = (pb * ft + (pt - height) * fb) / (ft - fb);\n var newT = (pt * (1 - fb) + (pb - height) * (1 - ft)) / (ft - fb);\n if(newB + newT > mb + mt) {\n mb = newB;\n mt = newT;\n }\n }\n }\n }\n }\n }\n\n var minFinalWidth = Lib.constrain(\n width - margin.l - margin.r,\n MIN_SPECIFIED_WIDTH,\n minreducedwidth\n );\n\n var minFinalHeight = Lib.constrain(\n height - margin.t - margin.b,\n MIN_SPECIFIED_HEIGHT,\n minreducedheight\n );\n\n var maxSpaceW = Math.max(0, width - minFinalWidth);\n var maxSpaceH = Math.max(0, height - minFinalHeight);\n\n if(maxSpaceW) {\n var rW = (ml + mr) / maxSpaceW;\n if(rW > 1) {\n ml /= rW;\n mr /= rW;\n }\n }\n\n if(maxSpaceH) {\n var rH = (mb + mt) / maxSpaceH;\n if(rH > 1) {\n mb /= rH;\n mt /= rH;\n }\n }\n\n gs.l = Math.round(ml);\n gs.r = Math.round(mr);\n gs.t = Math.round(mt);\n gs.b = Math.round(mb);\n gs.p = Math.round(margin.pad);\n gs.w = Math.round(width) - gs.l - gs.r;\n gs.h = Math.round(height) - gs.t - gs.b;\n\n // if things changed and we're not already redrawing, trigger a redraw\n if(!fullLayout._replotting && plots.didMarginChange(oldMargins, gs)) {\n if('_redrawFromAutoMarginCount' in fullLayout) {\n fullLayout._redrawFromAutoMarginCount++;\n } else {\n fullLayout._redrawFromAutoMarginCount = 1;\n }\n\n // Always allow at least one redraw and give each margin-push\n // call 3 loops to converge. Of course, for most cases this way too many,\n // but let's keep things on the safe side until we fix our\n // auto-margin pipeline problems:\n // https://github.com/plotly/plotly.js/issues/2704\n var maxNumberOfRedraws = 3 * (1 + Object.keys(pushMarginIds).length);\n\n if(fullLayout._redrawFromAutoMarginCount < maxNumberOfRedraws) {\n return Registry.call('_doPlot', gd);\n } else {\n fullLayout._size = oldMargins;\n Lib.warn('Too many auto-margin redraws.');\n }\n }\n\n refineTicks(gd);\n};\n\nfunction refineTicks(gd) {\n var axList = axisIDs.list(gd, '', true);\n\n [\n '_adjustTickLabelsOverflow',\n '_hideCounterAxisInsideTickLabels'\n ].forEach(function(k) {\n for(var i = 0; i < axList.length; i++) {\n var hideFn = axList[i][k];\n if(hideFn) hideFn();\n }\n });\n}\n\nvar marginKeys = ['l', 'r', 't', 'b', 'p', 'w', 'h'];\n\nplots.didMarginChange = function(margin0, margin1) {\n for(var i = 0; i < marginKeys.length; i++) {\n var k = marginKeys[i];\n var m0 = margin0[k];\n var m1 = margin1[k];\n // use 1px tolerance in case we old/new differ only\n // by rounding errors, which can lead to infinite loops\n if(!isNumeric(m0) || Math.abs(m1 - m0) > 1) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * JSONify the graph data and layout\n *\n * This function needs to recurse because some src can be inside\n * sub-objects.\n *\n * It also strips out functions and private (starts with _) elements.\n * Therefore, we can add temporary things to data and layout that don't\n * get saved.\n *\n * @param gd The graphDiv\n * @param {Boolean} dataonly If true, don't return layout.\n * @param {'keepref'|'keepdata'|'keepall'} [mode='keepref'] Filter what's kept\n * keepref: remove data for which there's a src present\n * eg if there's xsrc present (and xsrc is well-formed,\n * ie has : and some chars before it), strip out x\n * keepdata: remove all src tags, don't remove the data itself\n * keepall: keep data and src\n * @param {String} output If you specify 'object', the result will not be stringified\n * @param {Boolean} useDefaults If truthy, use _fullLayout and _fullData\n * @param {Boolean} includeConfig If truthy, include _context\n * @returns {Object|String}\n */\nplots.graphJson = function(gd, dataonly, mode, output, useDefaults, includeConfig) {\n // if the defaults aren't supplied yet, we need to do that...\n if((useDefaults && dataonly && !gd._fullData) ||\n (useDefaults && !dataonly && !gd._fullLayout)) {\n plots.supplyDefaults(gd);\n }\n\n var data = (useDefaults) ? gd._fullData : gd.data;\n var layout = (useDefaults) ? gd._fullLayout : gd.layout;\n var frames = (gd._transitionData || {})._frames;\n\n function stripObj(d, keepFunction) {\n if(typeof d === 'function') {\n return keepFunction ? '_function_' : null;\n }\n if(Lib.isPlainObject(d)) {\n var o = {};\n var src;\n Object.keys(d).sort().forEach(function(v) {\n // remove private elements and functions\n // _ is for private, [ is a mistake ie [object Object]\n if(['_', '['].indexOf(v.charAt(0)) !== -1) return;\n\n // if a function, add if necessary then move on\n if(typeof d[v] === 'function') {\n if(keepFunction) o[v] = '_function';\n return;\n }\n\n // look for src/data matches and remove the appropriate one\n if(mode === 'keepdata') {\n // keepdata: remove all ...src tags\n if(v.substr(v.length - 3) === 'src') {\n return;\n }\n } else if(mode === 'keepstream') {\n // keep sourced data if it's being streamed.\n // similar to keepref, but if the 'stream' object exists\n // in a trace, we will keep the data array.\n src = d[v + 'src'];\n if(typeof src === 'string' && src.indexOf(':') > 0) {\n if(!Lib.isPlainObject(d.stream)) {\n return;\n }\n }\n } else if(mode !== 'keepall') {\n // keepref: remove sourced data but only\n // if the source tag is well-formed\n src = d[v + 'src'];\n if(typeof src === 'string' && src.indexOf(':') > 0) {\n return;\n }\n }\n\n // OK, we're including this... recurse into it\n o[v] = stripObj(d[v], keepFunction);\n });\n return o;\n }\n\n if(Array.isArray(d)) {\n return d.map(function(x) {return stripObj(x, keepFunction);});\n }\n\n if(Lib.isTypedArray(d)) {\n return Lib.simpleMap(d, Lib.identity);\n }\n\n // convert native dates to date strings...\n // mostly for external users exporting to plotly\n if(Lib.isJSDate(d)) return Lib.ms2DateTimeLocal(+d);\n\n return d;\n }\n\n var obj = {\n data: (data || []).map(function(v) {\n var d = stripObj(v);\n // fit has some little arrays in it that don't contain data,\n // just fit params and meta\n if(dataonly) { delete d.fit; }\n return d;\n })\n };\n if(!dataonly) {\n obj.layout = stripObj(layout);\n if(useDefaults) {\n var gs = layout._size;\n obj.layout.computed = {\n margin: {\n b: gs.b,\n l: gs.l,\n r: gs.r,\n t: gs.t\n }\n };\n }\n }\n\n if(frames) obj.frames = stripObj(frames);\n\n if(includeConfig) obj.config = stripObj(gd._context, true);\n\n return (output === 'object') ? obj : JSON.stringify(obj);\n};\n\n/**\n * Modify a keyframe using a list of operations:\n *\n * @param {array of objects} operations\n * Sequence of operations to be performed on the keyframes\n */\nplots.modifyFrames = function(gd, operations) {\n var i, op, frame;\n var _frames = gd._transitionData._frames;\n var _frameHash = gd._transitionData._frameHash;\n\n for(i = 0; i < operations.length; i++) {\n op = operations[i];\n\n switch(op.type) {\n // No reason this couldn't exist, but is currently unused/untested:\n /* case 'rename':\n frame = _frames[op.index];\n delete _frameHash[frame.name];\n _frameHash[op.name] = frame;\n frame.name = op.name;\n break;*/\n case 'replace':\n frame = op.value;\n var oldName = (_frames[op.index] || {}).name;\n var newName = frame.name;\n _frames[op.index] = _frameHash[newName] = frame;\n\n if(newName !== oldName) {\n // If name has changed in addition to replacement, then update\n // the lookup table:\n delete _frameHash[oldName];\n _frameHash[newName] = frame;\n }\n\n break;\n case 'insert':\n frame = op.value;\n _frameHash[frame.name] = frame;\n _frames.splice(op.index, 0, frame);\n break;\n case 'delete':\n frame = _frames[op.index];\n delete _frameHash[frame.name];\n _frames.splice(op.index, 1);\n break;\n }\n }\n\n return Promise.resolve();\n};\n\n/*\n * Compute a keyframe. Merge a keyframe into its base frame(s) and\n * expand properties.\n *\n * @param {object} frameLookup\n * An object containing frames keyed by name (i.e. gd._transitionData._frameHash)\n * @param {string} frame\n * The name of the keyframe to be computed\n *\n * Returns: a new object with the merged content\n */\nplots.computeFrame = function(gd, frameName) {\n var frameLookup = gd._transitionData._frameHash;\n var i, traceIndices, traceIndex, destIndex;\n\n // Null or undefined will fail on .toString(). We'll allow numbers since we\n // make it clear frames must be given string names, but we'll allow numbers\n // here since they're otherwise fine for looking up frames as long as they're\n // properly cast to strings. We really just want to ensure here that this\n // 1) doesn't fail, and\n // 2) doens't give an incorrect answer (which String(frameName) would)\n if(!frameName) {\n throw new Error('computeFrame must be given a string frame name');\n }\n\n var framePtr = frameLookup[frameName.toString()];\n\n // Return false if the name is invalid:\n if(!framePtr) {\n return false;\n }\n\n var frameStack = [framePtr];\n var frameNameStack = [framePtr.name];\n\n // Follow frame pointers:\n while(framePtr.baseframe && (framePtr = frameLookup[framePtr.baseframe.toString()])) {\n // Avoid infinite loops:\n if(frameNameStack.indexOf(framePtr.name) !== -1) break;\n\n frameStack.push(framePtr);\n frameNameStack.push(framePtr.name);\n }\n\n // A new object for the merged result:\n var result = {};\n\n // Merge, starting with the last and ending with the desired frame:\n while((framePtr = frameStack.pop())) {\n if(framePtr.layout) {\n result.layout = plots.extendLayout(result.layout, framePtr.layout);\n }\n\n if(framePtr.data) {\n if(!result.data) {\n result.data = [];\n }\n traceIndices = framePtr.traces;\n\n if(!traceIndices) {\n // If not defined, assume serial order starting at zero\n traceIndices = [];\n for(i = 0; i < framePtr.data.length; i++) {\n traceIndices[i] = i;\n }\n }\n\n if(!result.traces) {\n result.traces = [];\n }\n\n for(i = 0; i < framePtr.data.length; i++) {\n // Loop through this frames data, find out where it should go,\n // and merge it!\n traceIndex = traceIndices[i];\n if(traceIndex === undefined || traceIndex === null) {\n continue;\n }\n\n destIndex = result.traces.indexOf(traceIndex);\n if(destIndex === -1) {\n destIndex = result.data.length;\n result.traces[destIndex] = traceIndex;\n }\n\n result.data[destIndex] = plots.extendTrace(result.data[destIndex], framePtr.data[i]);\n }\n }\n }\n\n return result;\n};\n\n/*\n * Recompute the lookup table that maps frame name -> frame object. addFrames/\n * deleteFrames already manages this data one at a time, so the only time this\n * is necessary is if you poke around manually in `gd._transitionData._frames`\n * and create and haven't updated the lookup table.\n */\nplots.recomputeFrameHash = function(gd) {\n var hash = gd._transitionData._frameHash = {};\n var frames = gd._transitionData._frames;\n for(var i = 0; i < frames.length; i++) {\n var frame = frames[i];\n if(frame && frame.name) {\n hash[frame.name] = frame;\n }\n }\n};\n\n/**\n * Extend an object, treating container arrays very differently by extracting\n * their contents and merging them separately.\n *\n * This exists so that we can extendDeepNoArrays and avoid stepping into data\n * arrays without knowledge of the plot schema, but so that we may also manually\n * recurse into known container arrays, such as transforms.\n *\n * See extendTrace and extendLayout below for usage.\n */\nplots.extendObjectWithContainers = function(dest, src, containerPaths) {\n var containerProp, containerVal, i, j, srcProp, destProp, srcContainer, destContainer;\n var copy = Lib.extendDeepNoArrays({}, src || {});\n var expandedObj = Lib.expandObjectPaths(copy);\n var containerObj = {};\n\n // Step through and extract any container properties. Otherwise extendDeepNoArrays\n // will clobber any existing properties with an empty array and then supplyDefaults\n // will reset everything to defaults.\n if(containerPaths && containerPaths.length) {\n for(i = 0; i < containerPaths.length; i++) {\n containerProp = Lib.nestedProperty(expandedObj, containerPaths[i]);\n containerVal = containerProp.get();\n\n if(containerVal === undefined) {\n Lib.nestedProperty(containerObj, containerPaths[i]).set(null);\n } else {\n containerProp.set(null);\n Lib.nestedProperty(containerObj, containerPaths[i]).set(containerVal);\n }\n }\n }\n\n dest = Lib.extendDeepNoArrays(dest || {}, expandedObj);\n\n if(containerPaths && containerPaths.length) {\n for(i = 0; i < containerPaths.length; i++) {\n srcProp = Lib.nestedProperty(containerObj, containerPaths[i]);\n srcContainer = srcProp.get();\n\n if(!srcContainer) continue;\n\n destProp = Lib.nestedProperty(dest, containerPaths[i]);\n destContainer = destProp.get();\n\n if(!Array.isArray(destContainer)) {\n destContainer = [];\n destProp.set(destContainer);\n }\n\n for(j = 0; j < srcContainer.length; j++) {\n var srcObj = srcContainer[j];\n\n if(srcObj === null) destContainer[j] = null;\n else {\n destContainer[j] = plots.extendObjectWithContainers(destContainer[j], srcObj);\n }\n }\n\n destProp.set(destContainer);\n }\n }\n\n return dest;\n};\n\nplots.dataArrayContainers = ['transforms', 'dimensions'];\nplots.layoutArrayContainers = Registry.layoutArrayContainers;\n\n/*\n * Extend a trace definition. This method:\n *\n * 1. directly transfers any array references\n * 2. manually recurses into container arrays like transforms\n *\n * The result is the original object reference with the new contents merged in.\n */\nplots.extendTrace = function(destTrace, srcTrace) {\n return plots.extendObjectWithContainers(destTrace, srcTrace, plots.dataArrayContainers);\n};\n\n/*\n * Extend a layout definition. This method:\n *\n * 1. directly transfers any array references (not critically important for\n * layout since there aren't really data arrays)\n * 2. manually recurses into container arrays like annotations\n *\n * The result is the original object reference with the new contents merged in.\n */\nplots.extendLayout = function(destLayout, srcLayout) {\n return plots.extendObjectWithContainers(destLayout, srcLayout, plots.layoutArrayContainers);\n};\n\n/**\n * Transition to a set of new data and layout properties from Plotly.animate\n *\n * @param {DOM element} gd\n * @param {Object[]} data\n * an array of data objects following the normal Plotly data definition format\n * @param {Object} layout\n * a layout object, following normal Plotly layout format\n * @param {Number[]} traces\n * indices of the corresponding traces specified in `data`\n * @param {Object} frameOpts\n * options for the frame (i.e. whether to redraw post-transition)\n * @param {Object} transitionOpts\n * options for the transition\n */\nplots.transition = function(gd, data, layout, traces, frameOpts, transitionOpts) {\n var opts = {redraw: frameOpts.redraw};\n var transitionedTraces = {};\n var axEdits = [];\n\n opts.prepareFn = function() {\n var dataLength = Array.isArray(data) ? data.length : 0;\n var traceIndices = traces.slice(0, dataLength);\n\n for(var i = 0; i < traceIndices.length; i++) {\n var traceIdx = traceIndices[i];\n var trace = gd._fullData[traceIdx];\n var _module = trace._module;\n\n // There's nothing to do if this module is not defined:\n if(!_module) continue;\n\n // Don't register the trace as transitioned if it doesn't know what to do.\n // If it *is* registered, it will receive a callback that it's responsible\n // for calling in order to register the transition as having completed.\n if(_module.animatable) {\n var n = _module.basePlotModule.name;\n if(!transitionedTraces[n]) transitionedTraces[n] = [];\n transitionedTraces[n].push(traceIdx);\n }\n\n gd.data[traceIndices[i]] = plots.extendTrace(gd.data[traceIndices[i]], data[i]);\n }\n\n // Follow the same procedure. Clone it so we don't mangle the input, then\n // expand any object paths so we can merge deep into gd.layout:\n var layoutUpdate = Lib.expandObjectPaths(Lib.extendDeepNoArrays({}, layout));\n\n // Before merging though, we need to modify the incoming layout. We only\n // know how to *transition* layout ranges, so it's imperative that a new\n // range not be sent to the layout before the transition has started. So\n // we must remove the things we can transition:\n var axisAttrRe = /^[xy]axis[0-9]*$/;\n for(var attr in layoutUpdate) {\n if(!axisAttrRe.test(attr)) continue;\n delete layoutUpdate[attr].range;\n }\n\n plots.extendLayout(gd.layout, layoutUpdate);\n\n // Supply defaults after applying the incoming properties. Note that any attempt\n // to simplify this step and reduce the amount of work resulted in the reconstruction\n // of essentially the whole supplyDefaults step, so that it seems sensible to just use\n // supplyDefaults even though it's heavier than would otherwise be desired for\n // transitions:\n\n // first delete calcdata so supplyDefaults knows a calc step is coming\n delete gd.calcdata;\n\n plots.supplyDefaults(gd);\n plots.doCalcdata(gd);\n\n var newLayout = Lib.expandObjectPaths(layout);\n\n if(newLayout) {\n var subplots = gd._fullLayout._plots;\n\n for(var k in subplots) {\n var plotinfo = subplots[k];\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xr0 = xa.range.slice();\n var yr0 = ya.range.slice();\n\n var xr1 = null;\n var yr1 = null;\n var editX = null;\n var editY = null;\n\n if(Array.isArray(newLayout[xa._name + '.range'])) {\n xr1 = newLayout[xa._name + '.range'].slice();\n } else if(Array.isArray((newLayout[xa._name] || {}).range)) {\n xr1 = newLayout[xa._name].range.slice();\n }\n if(Array.isArray(newLayout[ya._name + '.range'])) {\n yr1 = newLayout[ya._name + '.range'].slice();\n } else if(Array.isArray((newLayout[ya._name] || {}).range)) {\n yr1 = newLayout[ya._name].range.slice();\n }\n\n if(xr0 && xr1 &&\n (xa.r2l(xr0[0]) !== xa.r2l(xr1[0]) || xa.r2l(xr0[1]) !== xa.r2l(xr1[1]))\n ) {\n editX = {xr0: xr0, xr1: xr1};\n }\n if(yr0 && yr1 &&\n (ya.r2l(yr0[0]) !== ya.r2l(yr1[0]) || ya.r2l(yr0[1]) !== ya.r2l(yr1[1]))\n ) {\n editY = {yr0: yr0, yr1: yr1};\n }\n\n if(editX || editY) {\n axEdits.push(Lib.extendFlat({plotinfo: plotinfo}, editX, editY));\n }\n }\n }\n\n return Promise.resolve();\n };\n\n opts.runFn = function(makeCallback) {\n var traceTransitionOpts;\n var basePlotModules = gd._fullLayout._basePlotModules;\n var hasAxisTransition = axEdits.length;\n var i;\n\n if(layout) {\n for(i = 0; i < basePlotModules.length; i++) {\n if(basePlotModules[i].transitionAxes) {\n basePlotModules[i].transitionAxes(gd, axEdits, transitionOpts, makeCallback);\n }\n }\n }\n\n // Here handle the exception that we refuse to animate scales and axes at the same\n // time. In other words, if there's an axis transition, then set the data transition\n // to instantaneous.\n if(hasAxisTransition) {\n traceTransitionOpts = Lib.extendFlat({}, transitionOpts);\n traceTransitionOpts.duration = 0;\n // This means do not transition cartesian traces,\n // this happens on layout-only (e.g. axis range) animations\n delete transitionedTraces.cartesian;\n } else {\n traceTransitionOpts = transitionOpts;\n }\n\n // Note that we pass a callback to *create* the callback that must be invoked on completion.\n // This is since not all traces know about transitions, so it greatly simplifies matters if\n // the trace is responsible for creating a callback, if needed, and then executing it when\n // the time is right.\n for(var n in transitionedTraces) {\n var traceIndices = transitionedTraces[n];\n var _module = gd._fullData[traceIndices[0]]._module;\n _module.basePlotModule.plot(gd, traceIndices, traceTransitionOpts, makeCallback);\n }\n };\n\n return _transition(gd, transitionOpts, opts);\n};\n\n/**\n * Transition to a set of new data and layout properties from Plotly.react\n *\n * @param {DOM element} gd\n * @param {object} restyleFlags\n * - anim {'all'|'some'}\n * @param {object} relayoutFlags\n * - anim {'all'|'some'}\n * @param {object} oldFullLayout : old (pre Plotly.react) fullLayout\n */\nplots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLayout) {\n var fullLayout = gd._fullLayout;\n var transitionOpts = fullLayout.transition;\n var opts = {};\n var axEdits = [];\n\n opts.prepareFn = function() {\n var subplots = fullLayout._plots;\n\n // no need to redraw at end of transition,\n // if all changes are animatable\n opts.redraw = false;\n if(restyleFlags.anim === 'some') opts.redraw = true;\n if(relayoutFlags.anim === 'some') opts.redraw = true;\n\n for(var k in subplots) {\n var plotinfo = subplots[k];\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xr0 = oldFullLayout[xa._name].range.slice();\n var yr0 = oldFullLayout[ya._name].range.slice();\n var xr1 = xa.range.slice();\n var yr1 = ya.range.slice();\n\n xa.setScale();\n ya.setScale();\n\n var editX = null;\n var editY = null;\n\n if(xa.r2l(xr0[0]) !== xa.r2l(xr1[0]) || xa.r2l(xr0[1]) !== xa.r2l(xr1[1])) {\n editX = {xr0: xr0, xr1: xr1};\n }\n if(ya.r2l(yr0[0]) !== ya.r2l(yr1[0]) || ya.r2l(yr0[1]) !== ya.r2l(yr1[1])) {\n editY = {yr0: yr0, yr1: yr1};\n }\n\n if(editX || editY) {\n axEdits.push(Lib.extendFlat({plotinfo: plotinfo}, editX, editY));\n }\n }\n\n return Promise.resolve();\n };\n\n opts.runFn = function(makeCallback) {\n var fullData = gd._fullData;\n var fullLayout = gd._fullLayout;\n var basePlotModules = fullLayout._basePlotModules;\n\n var axisTransitionOpts;\n var traceTransitionOpts;\n var transitionedTraces;\n\n var allTraceIndices = [];\n for(var i = 0; i < fullData.length; i++) {\n allTraceIndices.push(i);\n }\n\n function transitionAxes() {\n if(!gd._fullLayout) return;\n for(var j = 0; j < basePlotModules.length; j++) {\n if(basePlotModules[j].transitionAxes) {\n basePlotModules[j].transitionAxes(gd, axEdits, axisTransitionOpts, makeCallback);\n }\n }\n }\n\n function transitionTraces() {\n if(!gd._fullLayout) return;\n for(var j = 0; j < basePlotModules.length; j++) {\n basePlotModules[j].plot(gd, transitionedTraces, traceTransitionOpts, makeCallback);\n }\n }\n\n if(axEdits.length && restyleFlags.anim) {\n if(transitionOpts.ordering === 'traces first') {\n axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});\n transitionedTraces = allTraceIndices;\n traceTransitionOpts = transitionOpts;\n setTimeout(transitionAxes, transitionOpts.duration);\n transitionTraces();\n } else {\n axisTransitionOpts = transitionOpts;\n transitionedTraces = null;\n traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});\n setTimeout(transitionTraces, axisTransitionOpts.duration);\n transitionAxes();\n }\n } else if(axEdits.length) {\n axisTransitionOpts = transitionOpts;\n transitionAxes();\n } else if(restyleFlags.anim) {\n transitionedTraces = allTraceIndices;\n traceTransitionOpts = transitionOpts;\n transitionTraces();\n }\n };\n\n return _transition(gd, transitionOpts, opts);\n};\n\n/**\n * trace/layout transition wrapper that works\n * for transitions initiated by Plotly.animate and Plotly.react.\n *\n * @param {DOM element} gd\n * @param {object} transitionOpts\n * @param {object} opts\n * - redraw {boolean}\n * - prepareFn {function} *should return a Promise*\n * - runFn {function} ran inside executeTransitions\n */\nfunction _transition(gd, transitionOpts, opts) {\n var aborted = false;\n\n function executeCallbacks(list) {\n var p = Promise.resolve();\n if(!list) return p;\n while(list.length) {\n p = p.then((list.shift()));\n }\n return p;\n }\n\n function flushCallbacks(list) {\n if(!list) return;\n while(list.length) {\n list.shift();\n }\n }\n\n function executeTransitions() {\n gd.emit('plotly_transitioning', []);\n\n return new Promise(function(resolve) {\n // This flag is used to disabled things like autorange:\n gd._transitioning = true;\n\n // When instantaneous updates are coming through quickly, it's too much to simply disable\n // all interaction, so store this flag so we can disambiguate whether mouse interactions\n // should be fully disabled or not:\n if(transitionOpts.duration > 0) {\n gd._transitioningWithDuration = true;\n }\n\n // If another transition is triggered, this callback will be executed simply because it's\n // in the interruptCallbacks queue. If this transition completes, it will instead flush\n // that queue and forget about this callback.\n gd._transitionData._interruptCallbacks.push(function() {\n aborted = true;\n });\n\n if(opts.redraw) {\n gd._transitionData._interruptCallbacks.push(function() {\n return Registry.call('redraw', gd);\n });\n }\n\n // Emit this and make sure it happens last:\n gd._transitionData._interruptCallbacks.push(function() {\n gd.emit('plotly_transitioninterrupted', []);\n });\n\n // Construct callbacks that are executed on transition end. This ensures the d3 transitions\n // are *complete* before anything else is done.\n var numCallbacks = 0;\n var numCompleted = 0;\n function makeCallback() {\n numCallbacks++;\n return function() {\n numCompleted++;\n // When all are complete, perform a redraw:\n if(!aborted && numCompleted === numCallbacks) {\n completeTransition(resolve);\n }\n };\n }\n\n opts.runFn(makeCallback);\n\n // If nothing else creates a callback, then this will trigger the completion in the next tick:\n setTimeout(makeCallback());\n });\n }\n\n function completeTransition(callback) {\n // This a simple workaround for tests which purge the graph before animations\n // have completed. That's not a very common case, so this is the simplest\n // fix.\n if(!gd._transitionData) return;\n\n flushCallbacks(gd._transitionData._interruptCallbacks);\n\n return Promise.resolve().then(function() {\n if(opts.redraw) {\n return Registry.call('redraw', gd);\n }\n }).then(function() {\n // Set transitioning false again once the redraw has occurred. This is used, for example,\n // to prevent the trailing redraw from autoranging:\n gd._transitioning = false;\n gd._transitioningWithDuration = false;\n\n gd.emit('plotly_transitioned', []);\n }).then(callback);\n }\n\n function interruptPreviousTransitions() {\n // Fail-safe against purged plot:\n if(!gd._transitionData) return;\n\n // If a transition is interrupted, set this to false. At the moment, the only thing that would\n // interrupt a transition is another transition, so that it will momentarily be set to true\n // again, but this determines whether autorange or dragbox work, so it's for the sake of\n // cleanliness:\n gd._transitioning = false;\n\n return executeCallbacks(gd._transitionData._interruptCallbacks);\n }\n\n var seq = [\n plots.previousPromises,\n interruptPreviousTransitions,\n opts.prepareFn,\n plots.rehover,\n plots.reselect,\n executeTransitions\n ];\n\n var transitionStarting = Lib.syncOrAsync(seq, gd);\n\n if(!transitionStarting || !transitionStarting.then) {\n transitionStarting = Promise.resolve();\n }\n\n return transitionStarting.then(function() { return gd; });\n}\n\nplots.doCalcdata = function(gd, traces) {\n var axList = axisIDs.list(gd);\n var fullData = gd._fullData;\n var fullLayout = gd._fullLayout;\n\n var trace, _module, i, j;\n\n // XXX: Is this correct? Needs a closer look so that *some* traces can be recomputed without\n // *all* needing doCalcdata:\n var calcdata = new Array(fullData.length);\n var oldCalcdata = (gd.calcdata || []).slice();\n gd.calcdata = calcdata;\n\n // extra helper variables\n\n // how many box/violins plots do we have (in case they're grouped)\n fullLayout._numBoxes = 0;\n fullLayout._numViolins = 0;\n\n // initialize violin per-scale-group stats container\n fullLayout._violinScaleGroupStats = {};\n\n // for calculating avg luminosity of heatmaps\n gd._hmpixcount = 0;\n gd._hmlumcount = 0;\n\n // for sharing colors across pies / sunbursts / treemap / icicle / funnelarea (and for legend)\n fullLayout._piecolormap = {};\n fullLayout._sunburstcolormap = {};\n fullLayout._treemapcolormap = {};\n fullLayout._iciclecolormap = {};\n fullLayout._funnelareacolormap = {};\n\n // If traces were specified and this trace was not included,\n // then transfer it over from the old calcdata:\n for(i = 0; i < fullData.length; i++) {\n if(Array.isArray(traces) && traces.indexOf(i) === -1) {\n calcdata[i] = oldCalcdata[i];\n continue;\n }\n }\n\n for(i = 0; i < fullData.length; i++) {\n trace = fullData[i];\n\n trace._arrayAttrs = PlotSchema.findArrayAttributes(trace);\n\n // keep track of trace extremes (for autorange) in here\n trace._extremes = {};\n }\n\n // add polar axes to axis list\n var polarIds = fullLayout._subplots.polar || [];\n for(i = 0; i < polarIds.length; i++) {\n axList.push(\n fullLayout[polarIds[i]].radialaxis,\n fullLayout[polarIds[i]].angularaxis\n );\n }\n\n // clear relinked cmin/cmax values in shared axes to start aggregation from scratch\n for(var k in fullLayout._colorAxes) {\n var cOpts = fullLayout[k];\n if(cOpts.cauto !== false) {\n delete cOpts.cmin;\n delete cOpts.cmax;\n }\n }\n\n var hasCalcTransform = false;\n\n function transformCalci(i) {\n trace = fullData[i];\n _module = trace._module;\n\n if(trace.visible === true && trace.transforms) {\n // we need one round of trace module calc before\n // the calc transform to 'fill in' the categories list\n // used for example in the data-to-coordinate method\n if(_module && _module.calc) {\n var cdi = _module.calc(gd, trace);\n\n // must clear scene 'batches', so that 2nd\n // _module.calc call starts from scratch\n if(cdi[0] && cdi[0].t && cdi[0].t._scene) {\n delete cdi[0].t._scene.dirty;\n }\n }\n\n for(j = 0; j < trace.transforms.length; j++) {\n var transform = trace.transforms[j];\n\n _module = transformsRegistry[transform.type];\n if(_module && _module.calcTransform) {\n trace._hasCalcTransform = true;\n hasCalcTransform = true;\n _module.calcTransform(gd, trace, transform);\n }\n }\n }\n }\n\n function calci(i, isContainer) {\n trace = fullData[i];\n _module = trace._module;\n\n if(!!_module.isContainer !== isContainer) return;\n\n var cd = [];\n\n if(trace.visible === true && trace._length !== 0) {\n // clear existing ref in case it got relinked\n delete trace._indexToPoints;\n // keep ref of index-to-points map object of the *last* enabled transform,\n // this index-to-points map object is required to determine the calcdata indices\n // that correspond to input indices (e.g. from 'selectedpoints')\n var transforms = trace.transforms || [];\n for(j = transforms.length - 1; j >= 0; j--) {\n if(transforms[j].enabled) {\n trace._indexToPoints = transforms[j]._indexToPoints;\n break;\n }\n }\n\n if(_module && _module.calc) {\n cd = _module.calc(gd, trace);\n }\n }\n\n // Make sure there is a first point.\n //\n // This ensures there is a calcdata item for every trace,\n // even if cartesian logic doesn't handle it (for things like legends).\n if(!Array.isArray(cd) || !cd[0]) {\n cd = [{x: BADNUM, y: BADNUM}];\n }\n\n // add the trace-wide properties to the first point,\n // per point properties to every point\n // t is the holder for trace-wide properties\n if(!cd[0].t) cd[0].t = {};\n cd[0].trace = trace;\n\n calcdata[i] = cd;\n }\n\n setupAxisCategories(axList, fullData, fullLayout);\n\n // 'transform' loop - must calc container traces first\n // so that if their dependent traces can get transform properly\n for(i = 0; i < fullData.length; i++) calci(i, true);\n for(i = 0; i < fullData.length; i++) transformCalci(i);\n\n // clear stuff that should recomputed in 'regular' loop\n if(hasCalcTransform) setupAxisCategories(axList, fullData, fullLayout);\n\n // 'regular' loop - make sure container traces (eg carpet) calc before\n // contained traces (eg contourcarpet)\n for(i = 0; i < fullData.length; i++) calci(i, true);\n for(i = 0; i < fullData.length; i++) calci(i, false);\n\n doCrossTraceCalc(gd);\n\n // Sort axis categories per value if specified\n var sorted = sortAxisCategoriesByValue(axList, gd);\n if(sorted.length) {\n // how many box/violins plots do we have (in case they're grouped)\n fullLayout._numBoxes = 0;\n fullLayout._numViolins = 0;\n // If a sort operation was performed, run calc() again\n for(i = 0; i < sorted.length; i++) calci(sorted[i], true);\n for(i = 0; i < sorted.length; i++) calci(sorted[i], false);\n doCrossTraceCalc(gd);\n }\n\n Registry.getComponentMethod('fx', 'calc')(gd);\n Registry.getComponentMethod('errorbars', 'calc')(gd);\n};\n\nvar sortAxisCategoriesByValueRegex = /(total|sum|min|max|mean|median) (ascending|descending)/;\n\nfunction sortAxisCategoriesByValue(axList, gd) {\n var affectedTraces = [];\n var i, j, k, l, o;\n\n function zMapCategory(type, ax, value) {\n var axLetter = ax._id.charAt(0);\n if(type === 'histogram2dcontour') {\n var counterAxLetter = ax._counterAxes[0];\n var counterAx = axisIDs.getFromId(gd, counterAxLetter);\n\n var xCategorical = axLetter === 'x' || (counterAxLetter === 'x' && counterAx.type === 'category');\n var yCategorical = axLetter === 'y' || (counterAxLetter === 'y' && counterAx.type === 'category');\n\n return function(o, l) {\n if(o === 0 || l === 0) return -1; // Skip first row and column\n if(xCategorical && o === value[l].length - 1) return -1;\n if(yCategorical && l === value.length - 1) return -1;\n\n return (axLetter === 'y' ? l : o) - 1;\n };\n } else {\n return function(o, l) {\n return axLetter === 'y' ? l : o;\n };\n }\n }\n\n var aggFn = {\n 'min': function(values) {return Lib.aggNums(Math.min, null, values);},\n 'max': function(values) {return Lib.aggNums(Math.max, null, values);},\n 'sum': function(values) {return Lib.aggNums(function(a, b) { return a + b;}, null, values);},\n 'total': function(values) {return Lib.aggNums(function(a, b) { return a + b;}, null, values);},\n 'mean': function(values) {return Lib.mean(values);},\n 'median': function(values) {return Lib.median(values);}\n };\n\n for(i = 0; i < axList.length; i++) {\n var ax = axList[i];\n if(ax.type !== 'category') continue;\n\n // Order by value\n var match = ax.categoryorder.match(sortAxisCategoriesByValueRegex);\n if(match) {\n var aggregator = match[1];\n var order = match[2];\n\n var axLetter = ax._id.charAt(0);\n var isX = axLetter === 'x';\n\n // Store values associated with each category\n var categoriesValue = [];\n for(j = 0; j < ax._categories.length; j++) {\n categoriesValue.push([ax._categories[j], []]);\n }\n\n // Collect values across traces\n for(j = 0; j < ax._traceIndices.length; j++) {\n var traceIndex = ax._traceIndices[j];\n var fullTrace = gd._fullData[traceIndex];\n\n // Skip over invisible traces\n if(fullTrace.visible !== true) continue;\n\n var type = fullTrace.type;\n if(Registry.traceIs(fullTrace, 'histogram')) {\n delete fullTrace._xautoBinFinished;\n delete fullTrace._yautoBinFinished;\n }\n var isSplom = type === 'splom';\n var isScattergl = type === 'scattergl';\n\n var cd = gd.calcdata[traceIndex];\n for(k = 0; k < cd.length; k++) {\n var cdi = cd[k];\n var catIndex, value;\n\n if(isSplom) {\n // If `splom`, collect values across dimensions\n // Find which dimension the current axis is representing\n var currentDimensionIndex = fullTrace._axesDim[ax._id];\n\n // Apply logic to associated x axis if it's defined\n if(!isX) {\n var associatedXAxisID = fullTrace._diag[currentDimensionIndex][0];\n if(associatedXAxisID) ax = gd._fullLayout[axisIDs.id2name(associatedXAxisID)];\n }\n\n var categories = cdi.trace.dimensions[currentDimensionIndex].values;\n for(l = 0; l < categories.length; l++) {\n catIndex = ax._categoriesMap[categories[l]];\n\n // Collect associated values at index `l` over all other dimensions\n for(o = 0; o < cdi.trace.dimensions.length; o++) {\n if(o === currentDimensionIndex) continue;\n var dimension = cdi.trace.dimensions[o];\n categoriesValue[catIndex][1].push(dimension.values[l]);\n }\n }\n } else if(isScattergl) {\n // If `scattergl`, collect all values stashed under cdi.t\n for(l = 0; l < cdi.t.x.length; l++) {\n if(isX) {\n catIndex = cdi.t.x[l];\n value = cdi.t.y[l];\n } else {\n catIndex = cdi.t.y[l];\n value = cdi.t.x[l];\n }\n categoriesValue[catIndex][1].push(value);\n }\n // must clear scene 'batches', so that 2nd\n // _module.calc call starts from scratch\n if(cdi.t && cdi.t._scene) {\n delete cdi.t._scene.dirty;\n }\n } else if(cdi.hasOwnProperty('z')) {\n // If 2dMap, collect values in `z`\n value = cdi.z;\n var mapping = zMapCategory(fullTrace.type, ax, value);\n\n for(l = 0; l < value.length; l++) {\n for(o = 0; o < value[l].length; o++) {\n catIndex = mapping(o, l);\n if(catIndex + 1) categoriesValue[catIndex][1].push(value[l][o]);\n }\n }\n } else {\n // For all other 2d cartesian traces\n catIndex = cdi.p;\n if(catIndex === undefined) catIndex = cdi[axLetter];\n\n value = cdi.s;\n if(value === undefined) value = cdi.v;\n if(value === undefined) value = isX ? cdi.y : cdi.x;\n\n if(!Array.isArray(value)) {\n if(value === undefined) value = [];\n else value = [value];\n }\n for(l = 0; l < value.length; l++) {\n categoriesValue[catIndex][1].push(value[l]);\n }\n }\n }\n }\n\n ax._categoriesValue = categoriesValue;\n\n var categoriesAggregatedValue = [];\n for(j = 0; j < categoriesValue.length; j++) {\n categoriesAggregatedValue.push([\n categoriesValue[j][0],\n aggFn[aggregator](categoriesValue[j][1])\n ]);\n }\n\n // Sort by aggregated value\n categoriesAggregatedValue.sort(function(a, b) {\n return a[1] - b[1];\n });\n\n ax._categoriesAggregatedValue = categoriesAggregatedValue;\n\n // Set new category order\n ax._initialCategories = categoriesAggregatedValue.map(function(c) {\n return c[0];\n });\n\n // Reverse if descending\n if(order === 'descending') {\n ax._initialCategories.reverse();\n }\n\n // Sort all matching axes\n affectedTraces = affectedTraces.concat(ax.sortByInitialCategories());\n }\n }\n return affectedTraces;\n}\n\nfunction setupAxisCategories(axList, fullData, fullLayout) {\n var axLookup = {};\n\n function setupOne(ax) {\n ax.clearCalc();\n if(ax.type === 'multicategory') {\n ax.setupMultiCategory(fullData);\n }\n\n axLookup[ax._id] = 1;\n }\n\n Lib.simpleMap(axList, setupOne);\n\n // look into match groups for 'missing' axes\n var matchGroups = fullLayout._axisMatchGroups || [];\n for(var i = 0; i < matchGroups.length; i++) {\n for(var axId in matchGroups[i]) {\n if(!axLookup[axId]) {\n setupOne(fullLayout[axisIDs.id2name(axId)]);\n }\n }\n }\n}\n\nfunction doCrossTraceCalc(gd) {\n var fullLayout = gd._fullLayout;\n var modules = fullLayout._visibleModules;\n var hash = {};\n var i, j, k;\n\n // position and range calculations for traces that\n // depend on each other ie bars (stacked or grouped)\n // and boxes (grouped) push each other out of the way\n\n for(j = 0; j < modules.length; j++) {\n var _module = modules[j];\n var fn = _module.crossTraceCalc;\n if(fn) {\n var spType = _module.basePlotModule.name;\n if(hash[spType]) {\n Lib.pushUnique(hash[spType], fn);\n } else {\n hash[spType] = [fn];\n }\n }\n }\n\n for(k in hash) {\n var methods = hash[k];\n var subplots = fullLayout._subplots[k];\n\n if(Array.isArray(subplots)) {\n for(i = 0; i < subplots.length; i++) {\n var sp = subplots[i];\n var spInfo = k === 'cartesian' ?\n fullLayout._plots[sp] :\n fullLayout[sp];\n\n for(j = 0; j < methods.length; j++) {\n methods[j](gd, spInfo, sp);\n }\n }\n } else {\n for(j = 0; j < methods.length; j++) {\n methods[j](gd);\n }\n }\n }\n}\n\nplots.rehover = function(gd) {\n if(gd._fullLayout._rehover) {\n gd._fullLayout._rehover();\n }\n};\n\nplots.redrag = function(gd) {\n if(gd._fullLayout._redrag) {\n gd._fullLayout._redrag();\n }\n};\n\nplots.reselect = function(gd) {\n var fullLayout = gd._fullLayout;\n\n var A = (gd.layout || {}).selections;\n var B = fullLayout._previousSelections;\n fullLayout._previousSelections = A;\n\n var mayEmitSelected = fullLayout._reselect ||\n JSON.stringify(A) !== JSON.stringify(B);\n\n Registry.getComponentMethod('selections', 'reselect')(gd, mayEmitSelected);\n};\n\nplots.generalUpdatePerTraceModule = function(gd, subplot, subplotCalcData, subplotLayout) {\n var traceHashOld = subplot.traceHash;\n var traceHash = {};\n var i;\n\n // build up moduleName -> calcData hash\n for(i = 0; i < subplotCalcData.length; i++) {\n var calcTraces = subplotCalcData[i];\n var trace = calcTraces[0].trace;\n\n // skip over visible === false traces\n // as they don't have `_module` ref\n if(trace.visible) {\n traceHash[trace.type] = traceHash[trace.type] || [];\n traceHash[trace.type].push(calcTraces);\n }\n }\n\n // when a trace gets deleted, make sure that its module's\n // plot method is called so that it is properly\n // removed from the DOM.\n for(var moduleNameOld in traceHashOld) {\n if(!traceHash[moduleNameOld]) {\n var fakeCalcTrace = traceHashOld[moduleNameOld][0];\n var fakeTrace = fakeCalcTrace[0].trace;\n\n fakeTrace.visible = false;\n traceHash[moduleNameOld] = [fakeCalcTrace];\n }\n }\n\n // call module plot method\n for(var moduleName in traceHash) {\n var moduleCalcData = traceHash[moduleName];\n var _module = moduleCalcData[0][0].trace._module;\n\n _module.plot(gd, subplot, Lib.filterVisible(moduleCalcData), subplotLayout);\n }\n\n // update moduleName -> calcData hash\n subplot.traceHash = traceHash;\n};\n\nplots.plotBasePlot = function(desiredType, gd, traces, transitionOpts, makeOnCompleteCallback) {\n var _module = Registry.getModule(desiredType);\n var cdmodule = getModuleCalcData(gd.calcdata, _module)[0];\n _module.plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback);\n};\n\nplots.cleanBasePlot = function(desiredType, newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var had = (oldFullLayout._has && oldFullLayout._has(desiredType));\n var has = (newFullLayout._has && newFullLayout._has(desiredType));\n\n if(had && !has) {\n oldFullLayout['_' + desiredType + 'layer'].selectAll('g.trace').remove();\n }\n};\n\n},{\"../components/color\":367,\"../components/shapes/handle_outline\":468,\"../constants/numerical\":491,\"../lib\":515,\"../plot_api/plot_schema\":554,\"../plot_api/plot_template\":555,\"../plots/get_data\":602,\"../registry\":647,\"./animation_attributes\":560,\"./attributes\":562,\"./cartesian/axis_ids\":570,\"./command\":592,\"./font_attributes\":594,\"./frame_attributes\":595,\"./layout_attributes\":619,\"@plotly/d3\":58,\"d3-format\":112,\"d3-time-format\":120,\"fast-isnumeric\":190}],629:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attr: 'subplot',\n name: 'polar',\n\n axisNames: ['angularaxis', 'radialaxis'],\n axisName2dataArray: {angularaxis: 'theta', radialaxis: 'r'},\n\n layerNames: [\n 'draglayer',\n 'plotbg',\n 'backplot',\n 'angular-grid',\n 'radial-grid',\n 'frontplot',\n 'angular-line',\n 'radial-line',\n 'angular-axis',\n 'radial-axis'\n ],\n\n radialDragBoxSize: 50,\n angularDragBoxSize: 30,\n cornerLen: 25,\n cornerHalfWidth: 2,\n\n // pixels to move mouse before you stop clamping to starting point\n MINDRAG: 8,\n // smallest radial distance [px] allowed for a zoombox\n MINZOOM: 20,\n // distance [px] off (r=0) or (r=radius) where we transition\n // from single-sided to two-sided radial zoom\n OFFEDGE: 20\n};\n\n},{}],630:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar polygonTester = _dereq_('../../lib/polygon').tester;\n\nvar findIndexOfMin = Lib.findIndexOfMin;\nvar isAngleInsideSector = Lib.isAngleInsideSector;\nvar angleDelta = Lib.angleDelta;\nvar angleDist = Lib.angleDist;\n\n/**\n * is pt (r,a) inside polygon made up vertices at angles 'vangles'\n * inside a given polar sector\n *\n * @param {number} r : pt's radial coordinate\n * @param {number} a : pt's angular coordinate in *radians*\n * @param {2-item array} rBnds : sector's radial bounds\n * @param {2-item array} aBnds : sector's angular bounds *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @return {boolean}\n */\nfunction isPtInsidePolygon(r, a, rBnds, aBnds, vangles) {\n if(!isAngleInsideSector(a, aBnds)) return false;\n\n var r0, r1;\n\n if(rBnds[0] < rBnds[1]) {\n r0 = rBnds[0];\n r1 = rBnds[1];\n } else {\n r0 = rBnds[1];\n r1 = rBnds[0];\n }\n\n var polygonIn = polygonTester(makePolygon(r0, aBnds[0], aBnds[1], vangles));\n var polygonOut = polygonTester(makePolygon(r1, aBnds[0], aBnds[1], vangles));\n var xy = [r * Math.cos(a), r * Math.sin(a)];\n return polygonOut.contains(xy) && !polygonIn.contains(xy);\n}\n\n// find intersection of 'v0' <-> 'v1' edge with a ray at angle 'a'\n// (i.e. a line that starts from the origin at angle 'a')\n// given an (xp,yp) pair on the 'v0' <-> 'v1' line\n// (N.B. 'v0' and 'v1' are angles in radians)\nfunction findIntersectionXY(v0, v1, a, xpyp) {\n var xstar, ystar;\n\n var xp = xpyp[0];\n var yp = xpyp[1];\n var dsin = clampTiny(Math.sin(v1) - Math.sin(v0));\n var dcos = clampTiny(Math.cos(v1) - Math.cos(v0));\n var tanA = Math.tan(a);\n var cotanA = clampTiny(1 / tanA);\n var m = dsin / dcos;\n var b = yp - m * xp;\n\n if(cotanA) {\n if(dsin && dcos) {\n // given\n // g(x) := v0 -> v1 line = m*x + b\n // h(x) := ray at angle 'a' = m*x = tanA*x\n // solve g(xstar) = h(xstar)\n xstar = b / (tanA - m);\n ystar = tanA * xstar;\n } else if(dcos) {\n // horizontal v0 -> v1\n xstar = yp * cotanA;\n ystar = yp;\n } else {\n // vertical v0 -> v1\n xstar = xp;\n ystar = xp * tanA;\n }\n } else {\n // vertical ray\n if(dsin && dcos) {\n xstar = 0;\n ystar = b;\n } else if(dcos) {\n xstar = 0;\n ystar = yp;\n } else {\n // does this case exists?\n xstar = ystar = NaN;\n }\n }\n\n return [xstar, ystar];\n}\n\n// solves l^2 = (f(x)^2 - yp)^2 + (x - xp)^2\n// rearranged into 0 = a*x^2 + b * x + c\n//\n// where f(x) = m*x + t + yp\n// and (x0, x1) = (-b +/- del) / (2*a)\nfunction findXYatLength(l, m, xp, yp) {\n var t = -m * xp;\n var a = m * m + 1;\n var b = 2 * (m * t - xp);\n var c = t * t + xp * xp - l * l;\n var del = Math.sqrt(b * b - 4 * a * c);\n var x0 = (-b + del) / (2 * a);\n var x1 = (-b - del) / (2 * a);\n return [\n [x0, m * x0 + t + yp],\n [x1, m * x1 + t + yp]\n ];\n}\n\nfunction makeRegularPolygon(r, vangles) {\n var len = vangles.length;\n var vertices = new Array(len + 1);\n var i;\n for(i = 0; i < len; i++) {\n var va = vangles[i];\n vertices[i] = [r * Math.cos(va), r * Math.sin(va)];\n }\n vertices[i] = vertices[0].slice();\n return vertices;\n}\n\nfunction makeClippedPolygon(r, a0, a1, vangles) {\n var len = vangles.length;\n var vertices = [];\n var i, j;\n\n function a2xy(a) {\n return [r * Math.cos(a), r * Math.sin(a)];\n }\n\n function findXY(va0, va1, s) {\n return findIntersectionXY(va0, va1, s, a2xy(va0));\n }\n\n function cycleIndex(ind) {\n return Lib.mod(ind, len);\n }\n\n function isInside(v) {\n return isAngleInsideSector(v, [a0, a1]);\n }\n\n // find index in sector closest to a0\n // use it to find intersection of v[i0] <-> v[i0-1] edge with sector radius\n var i0 = findIndexOfMin(vangles, function(v) {\n return isInside(v) ? angleDist(v, a0) : Infinity;\n });\n var xy0 = findXY(vangles[i0], vangles[cycleIndex(i0 - 1)], a0);\n vertices.push(xy0);\n\n // fill in in-sector vertices\n for(i = i0, j = 0; j < len; i++, j++) {\n var va = vangles[cycleIndex(i)];\n if(!isInside(va)) break;\n vertices.push(a2xy(va));\n }\n\n // find index in sector closest to a1,\n // use it to find intersection of v[iN] <-> v[iN+1] edge with sector radius\n var iN = findIndexOfMin(vangles, function(v) {\n return isInside(v) ? angleDist(v, a1) : Infinity;\n });\n var xyN = findXY(vangles[iN], vangles[cycleIndex(iN + 1)], a1);\n vertices.push(xyN);\n\n vertices.push([0, 0]);\n vertices.push(vertices[0].slice());\n\n return vertices;\n}\n\nfunction makePolygon(r, a0, a1, vangles) {\n return Lib.isFullCircle([a0, a1]) ?\n makeRegularPolygon(r, vangles) :\n makeClippedPolygon(r, a0, a1, vangles);\n}\n\nfunction findPolygonOffset(r, a0, a1, vangles) {\n var minX = Infinity;\n var minY = Infinity;\n var vertices = makePolygon(r, a0, a1, vangles);\n\n for(var i = 0; i < vertices.length; i++) {\n var v = vertices[i];\n minX = Math.min(minX, v[0]);\n minY = Math.min(minY, -v[1]);\n }\n return [minX, minY];\n}\n\n/**\n * find vertex angles (in 'vangles') the enclose angle 'a'\n *\n * @param {number} a : angle in *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @return {2-item array}\n */\nfunction findEnclosingVertexAngles(a, vangles) {\n var minFn = function(v) {\n var adelta = angleDelta(v, a);\n return adelta > 0 ? adelta : Infinity;\n };\n var i0 = findIndexOfMin(vangles, minFn);\n var i1 = Lib.mod(i0 + 1, vangles.length);\n return [vangles[i0], vangles[i1]];\n}\n\n// to more easily catch 'almost zero' numbers in if-else blocks\nfunction clampTiny(v) {\n return Math.abs(v) > 1e-10 ? v : 0;\n}\n\nfunction transformForSVG(pts0, cx, cy) {\n cx = cx || 0;\n cy = cy || 0;\n\n var len = pts0.length;\n var pts1 = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var pt = pts0[i];\n pts1[i] = [cx + pt[0], cy - pt[1]];\n }\n return pts1;\n}\n\n/**\n * path polygon\n *\n * @param {number} r : polygon 'radius'\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n *\n */\nfunction pathPolygon(r, a0, a1, vangles, cx, cy) {\n var poly = makePolygon(r, a0, a1, vangles);\n return 'M' + transformForSVG(poly, cx, cy).join('L');\n}\n\n/**\n * path a polygon 'annulus'\n * i.e. a polygon with a concentric hole\n *\n * N.B. this routine uses the evenodd SVG rule\n *\n * @param {number} r0 : first radial coordinate\n * @param {number} r1 : second radial coordinate\n * @param {number} a0 : first angular coordinate in *radians*\n * @param {number} a1 : second angular coordinate in *radians*\n * @param {array} vangles : angles of polygon vertices in *radians*\n * @param {number (optional)} cx : x coordinate of center\n * @param {number (optional)} cy : y coordinate of center\n * @return {string} svg path\n *\n */\nfunction pathPolygonAnnulus(r0, r1, a0, a1, vangles, cx, cy) {\n var rStart, rEnd;\n\n if(r0 < r1) {\n rStart = r0;\n rEnd = r1;\n } else {\n rStart = r1;\n rEnd = r0;\n }\n\n var inner = transformForSVG(makePolygon(rStart, a0, a1, vangles), cx, cy);\n var outer = transformForSVG(makePolygon(rEnd, a0, a1, vangles), cx, cy);\n return 'M' + outer.reverse().join('L') + 'M' + inner.join('L');\n}\n\nmodule.exports = {\n isPtInsidePolygon: isPtInsidePolygon,\n findPolygonOffset: findPolygonOffset,\n findEnclosingVertexAngles: findEnclosingVertexAngles,\n findIntersectionXY: findIntersectionXY,\n findXYatLength: findXYatLength,\n clampTiny: clampTiny,\n pathPolygon: pathPolygon,\n pathPolygonAnnulus: pathPolygonAnnulus\n};\n\n},{\"../../lib\":515,\"../../lib/polygon\":527}],631:[function(_dereq_,module,exports){\n'use strict';\n\nvar getSubplotCalcData = _dereq_('../get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\n\nvar createPolar = _dereq_('./polar');\nvar constants = _dereq_('./constants');\n\nvar attr = constants.attr;\nvar name = constants.name;\nvar counter = counterRegex(name);\n\nvar attributes = {};\nattributes[attr] = {\n valType: 'subplotid',\n dflt: name,\n editType: 'calc',\n};\n\nfunction plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var subplotIds = fullLayout._subplots[name];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var subplotCalcData = getSubplotCalcData(calcData, name, id);\n var subplot = fullLayout[id]._subplot;\n\n if(!subplot) {\n subplot = createPolar(gd, id);\n fullLayout[id]._subplot = subplot;\n }\n\n subplot.plot(subplotCalcData, fullLayout, gd._promises);\n }\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldIds = oldFullLayout._subplots[name] || [];\n var hadGl = (oldFullLayout._has && oldFullLayout._has('gl'));\n var hasGl = (newFullLayout._has && newFullLayout._has('gl'));\n var mustCleanScene = hadGl && !hasGl;\n\n for(var i = 0; i < oldIds.length; i++) {\n var id = oldIds[i];\n var oldSubplot = oldFullLayout[id]._subplot;\n\n if(!newFullLayout[id] && !!oldSubplot) {\n oldSubplot.framework.remove();\n oldSubplot.layers['radial-axis-title'].remove();\n\n for(var k in oldSubplot.clipPaths) {\n oldSubplot.clipPaths[k].remove();\n }\n }\n\n if(mustCleanScene && oldSubplot._scene) {\n oldSubplot._scene.destroy();\n oldSubplot._scene = null;\n }\n }\n}\n\nmodule.exports = {\n attr: attr,\n name: name,\n idRoot: name,\n idRegex: counter,\n attrRegex: counter,\n attributes: attributes,\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n plot: plot,\n clean: clean,\n toSVG: _dereq_('../cartesian').toSVG\n};\n\n},{\"../../lib\":515,\"../cartesian\":578,\"../get_data\":602,\"./constants\":629,\"./layout_attributes\":632,\"./layout_defaults\":633,\"./polar\":634}],632:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axesAttrs = _dereq_('../cartesian/layout_attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar axisLineGridAttr = overrideAll({\n color: axesAttrs.color,\n showline: extendFlat({}, axesAttrs.showline, {dflt: true}),\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: extendFlat({}, axesAttrs.showgrid, {dflt: true}),\n gridcolor: axesAttrs.gridcolor,\n gridwidth: axesAttrs.gridwidth,\n griddash: axesAttrs.griddash\n\n // TODO add spike* attributes down the road\n\n // should we add zeroline* attributes?\n\n}, 'plot', 'from-root');\n\nvar axisTickAttrs = overrideAll({\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: axesAttrs.ticks,\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n ticklabelstep: axesAttrs.ticklabelstep,\n showticklabels: axesAttrs.showticklabels,\n showtickprefix: axesAttrs.showtickprefix,\n tickprefix: axesAttrs.tickprefix,\n showticksuffix: axesAttrs.showticksuffix,\n ticksuffix: axesAttrs.ticksuffix,\n showexponent: axesAttrs.showexponent,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n separatethousands: axesAttrs.separatethousands,\n tickfont: axesAttrs.tickfont,\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n layer: axesAttrs.layer\n}, 'plot', 'from-root');\n\nvar radialAxisAttrs = {\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n type: extendFlat({}, axesAttrs.type, {\n values: ['-', 'linear', 'log', 'date', 'category']\n }),\n autotypenumbers: axesAttrs.autotypenumbers,\n\n autorange: extendFlat({}, axesAttrs.autorange, {editType: 'plot'}),\n rangemode: {\n valType: 'enumerated',\n values: ['tozero', 'nonnegative', 'normal'],\n dflt: 'tozero',\n editType: 'calc',\n },\n range: extendFlat({}, axesAttrs.range, {\n items: [\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}},\n {valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}}\n ],\n editType: 'plot'\n }),\n\n categoryorder: axesAttrs.categoryorder,\n categoryarray: axesAttrs.categoryarray,\n\n angle: {\n valType: 'angle',\n editType: 'plot',\n },\n\n side: {\n valType: 'enumerated',\n // TODO add 'center' for `showline: false` radial axes\n values: ['clockwise', 'counterclockwise'],\n dflt: 'clockwise',\n editType: 'plot',\n },\n\n\n title: {\n // radial title is not gui-editable at the moment,\n // so it needs dflt: '', similar to carpet axes.\n text: extendFlat({}, axesAttrs.title.text, {editType: 'plot', dflt: ''}),\n font: extendFlat({}, axesAttrs.title.font, {editType: 'plot'}),\n\n // TODO\n // - might need a 'titleside' and even 'titledirection' down the road\n // - what about standoff ??\n\n editType: 'plot'\n },\n\n hoverformat: axesAttrs.hoverformat,\n\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n\n editType: 'calc',\n\n _deprecated: {\n title: axesAttrs._deprecated.title,\n titlefont: axesAttrs._deprecated.titlefont\n }\n};\n\nextendFlat(\n radialAxisAttrs,\n\n // N.B. radialaxis grid lines are circular,\n // but radialaxis lines are straight from circle center to outer bound\n axisLineGridAttr,\n axisTickAttrs\n);\n\nvar angularAxisAttrs = {\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n type: {\n valType: 'enumerated',\n // 'linear' should maybe be called 'angle' or 'angular' here\n // to make clear that axis here is periodic and more tightly match\n // `thetaunit`?\n //\n // skip 'date' for first push\n // no 'log' for now\n values: ['-', 'linear', 'category'],\n dflt: '-',\n editType: 'calc',\n _noTemplating: true,\n },\n autotypenumbers: axesAttrs.autotypenumbers,\n\n categoryorder: axesAttrs.categoryorder,\n categoryarray: axesAttrs.categoryarray,\n\n thetaunit: {\n valType: 'enumerated',\n values: ['radians', 'degrees'],\n dflt: 'degrees',\n editType: 'calc',\n },\n\n period: {\n valType: 'number',\n editType: 'calc',\n min: 0,\n // Examples for date axes:\n //\n // - period that equals the timeseries length\n // http://flowingdata.com/2017/01/24/one-dataset-visualized-25-ways/18-polar-coordinates/\n // - and 1-year periods (focusing on seasonal change0\n // http://otexts.org/fpp2/seasonal-plots.html\n // https://blogs.scientificamerican.com/sa-visual/why-are-so-many-babies-born-around-8-00-a-m/\n // http://www.seasonaladjustment.com/2012/09/05/clock-plot-visualising-seasonality-using-r-and-ggplot2-part-3/\n // https://i.pinimg.com/736x/49/b9/72/49b972ccb3206a1a6d6f870dac543280.jpg\n // https://www.climate-lab-book.ac.uk/spirals/\n },\n\n direction: {\n valType: 'enumerated',\n values: ['counterclockwise', 'clockwise'],\n dflt: 'counterclockwise',\n editType: 'calc',\n },\n\n rotation: {\n valType: 'angle',\n editType: 'calc',\n },\n\n hoverformat: axesAttrs.hoverformat,\n\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n\n editType: 'calc'\n};\n\nextendFlat(\n angularAxisAttrs,\n\n // N.B. angular grid lines are straight lines from circle center to outer bound\n // the angular line is circular bounding the polar plot area.\n axisLineGridAttr,\n\n // N.B. ticksuffix defaults to '°' for angular axes with `thetaunit: 'degrees'`\n axisTickAttrs\n);\n\nmodule.exports = {\n // TODO for x/y/zoom system for paper-based zooming:\n // x: {},\n // y: {},\n // zoom: {},\n\n domain: domainAttrs({name: 'polar', editType: 'plot'}),\n\n sector: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'plot'},\n {valType: 'number', editType: 'plot'}\n ],\n dflt: [0, 360],\n editType: 'plot',\n },\n hole: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'plot',\n },\n\n bgcolor: {\n valType: 'color',\n editType: 'plot',\n dflt: colorAttrs.background,\n },\n\n radialaxis: radialAxisAttrs,\n angularaxis: angularAxisAttrs,\n\n gridshape: {\n valType: 'enumerated',\n values: ['circular', 'linear'],\n dflt: 'circular',\n editType: 'plot',\n },\n\n // TODO maybe?\n // annotations:\n\n uirevision: {\n valType: 'any',\n editType: 'none',\n },\n\n editType: 'calc'\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib\":515,\"../../plot_api/edit_types\":548,\"../cartesian/layout_attributes\":579,\"../domain\":593}],633:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nvar handleTickValueDefaults = _dereq_('../cartesian/tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('../cartesian/tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('../cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../cartesian/prefix_suffix_defaults');\nvar handleCategoryOrderDefaults = _dereq_('../cartesian/category_order_defaults');\nvar handleLineGridDefaults = _dereq_('../cartesian/line_grid_defaults');\nvar autoType = _dereq_('../cartesian/axis_autotype');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar setConvert = _dereq_('./set_convert');\nvar constants = _dereq_('./constants');\nvar axisNames = constants.axisNames;\n\nfunction handleDefaults(contIn, contOut, coerce, opts) {\n var bgColor = coerce('bgcolor');\n opts.bgColor = Color.combine(bgColor, opts.paper_bgcolor);\n\n var sector = coerce('sector');\n coerce('hole');\n\n // could optimize, subplotData is not always needed!\n var subplotData = getSubplotData(opts.fullData, constants.name, opts.id);\n var layoutOut = opts.layoutOut;\n var axName;\n\n function coerceAxis(attr, dflt) {\n return coerce(axName + '.' + attr, dflt);\n }\n\n for(var i = 0; i < axisNames.length; i++) {\n axName = axisNames[i];\n\n if(!Lib.isPlainObject(contIn[axName])) {\n contIn[axName] = {};\n }\n\n var axIn = contIn[axName];\n var axOut = Template.newContainer(contOut, axName);\n axOut._id = axOut._name = axName;\n axOut._attr = opts.id + '.' + axName;\n axOut._traceIndices = subplotData.map(function(t) { return t._expandedIndex; });\n\n var dataAttr = constants.axisName2dataArray[axName];\n var axType = handleAxisTypeDefaults(axIn, axOut, coerceAxis, subplotData, dataAttr, opts);\n\n handleCategoryOrderDefaults(axIn, axOut, coerceAxis, {\n axData: subplotData,\n dataAttr: dataAttr\n });\n\n var visible = coerceAxis('visible');\n setConvert(axOut, contOut, layoutOut);\n\n coerceAxis('uirevision', contOut.uirevision);\n\n // We don't want to make downstream code call ax.setScale,\n // as both radial and angular axes don't have a set domain.\n // Furthermore, angular axes don't have a set range.\n //\n // Mocked domains and ranges are set by the polar subplot instances,\n // but Axes.findExtremes uses the sign of _m to determine which padding value\n // to use.\n //\n // By setting, _m to 1 here, we make Axes.findExtremes think that\n // range[1] > range[0], and vice-versa for `autorange: 'reversed'` below.\n axOut._m = 1;\n\n switch(axName) {\n case 'radialaxis':\n var autoRange = coerceAxis('autorange', !axOut.isValidRange(axIn.range));\n axIn.autorange = autoRange;\n if(autoRange && (axType === 'linear' || axType === '-')) coerceAxis('rangemode');\n if(autoRange === 'reversed') axOut._m = -1;\n\n coerceAxis('range');\n axOut.cleanRange('range', {dfltRange: [0, 1]});\n break;\n\n case 'angularaxis':\n // We do not support 'true' date angular axes yet,\n // users can still plot dates on angular axes by setting\n // `angularaxis.type: 'category'`.\n //\n // Here, if a date angular axes is detected, we make\n // all its corresponding traces invisible, so that\n // when we do add support for data angular axes, the new\n // behavior won't conflict with existing behavior\n if(axType === 'date') {\n Lib.log('Polar plots do not support date angular axes yet.');\n\n for(var j = 0; j < subplotData.length; j++) {\n subplotData[j].visible = false;\n }\n\n // turn this into a 'dummy' linear axis so that\n // the subplot still renders ok\n axType = axIn.type = axOut.type = 'linear';\n }\n\n if(axType === 'linear') {\n coerceAxis('thetaunit');\n } else {\n coerceAxis('period');\n }\n\n var direction = coerceAxis('direction');\n coerceAxis('rotation', {counterclockwise: 0, clockwise: 90}[direction]);\n break;\n }\n\n handlePrefixSuffixDefaults(axIn, axOut, coerceAxis, axOut.type, {\n tickSuffixDflt: axOut.thetaunit === 'degrees' ? '°' : undefined\n });\n\n if(visible) {\n var dfltColor;\n var dfltFontColor;\n var dfltFontSize;\n var dfltFontFamily;\n var font = opts.font || {};\n\n dfltColor = coerceAxis('color');\n dfltFontColor = (dfltColor === axIn.color) ? dfltColor : font.color;\n dfltFontSize = font.size;\n dfltFontFamily = font.family;\n\n handleTickValueDefaults(axIn, axOut, coerceAxis, axOut.type);\n handleTickLabelDefaults(axIn, axOut, coerceAxis, axOut.type, {\n font: {\n color: dfltFontColor,\n size: dfltFontSize,\n family: dfltFontFamily\n }\n });\n\n handleTickMarkDefaults(axIn, axOut, coerceAxis, {outerTicks: true});\n\n handleLineGridDefaults(axIn, axOut, coerceAxis, {\n dfltColor: dfltColor,\n bgColor: opts.bgColor,\n // default grid color is darker here (60%, vs cartesian default ~91%)\n // because the grid is not square so the eye needs heavier cues to follow\n blend: 60,\n showLine: true,\n showGrid: true,\n noZeroLine: true,\n attributes: layoutAttributes[axName]\n });\n\n coerceAxis('layer');\n\n if(axName === 'radialaxis') {\n coerceAxis('side');\n coerceAxis('angle', sector[0]);\n\n coerceAxis('title.text');\n Lib.coerceFont(coerceAxis, 'title.font', {\n color: dfltFontColor,\n size: Lib.bigFont(dfltFontSize),\n family: dfltFontFamily\n });\n }\n }\n\n if(axType !== 'category') coerceAxis('hoverformat');\n\n axOut._input = axIn;\n }\n\n if(contOut.angularaxis.type === 'category') {\n coerce('gridshape');\n }\n}\n\nfunction handleAxisTypeDefaults(axIn, axOut, coerce, subplotData, dataAttr, options) {\n var autotypenumbers = coerce('autotypenumbers', options.autotypenumbersDflt);\n var axType = coerce('type');\n\n if(axType === '-') {\n var trace;\n\n for(var i = 0; i < subplotData.length; i++) {\n if(subplotData[i].visible) {\n trace = subplotData[i];\n break;\n }\n }\n\n if(trace && trace[dataAttr]) {\n axOut.type = autoType(trace[dataAttr], 'gregorian', {\n noMultiCategory: true,\n autotypenumbers: autotypenumbers\n });\n }\n\n if(axOut.type === '-') {\n axOut.type = 'linear';\n } else {\n // copy autoType back to input axis\n // note that if this object didn't exist\n // in the input layout, we have to put it in\n // this happens in the main supplyDefaults function\n axIn.type = axOut.type;\n }\n }\n\n return axOut.type;\n}\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: constants.name,\n attributes: layoutAttributes,\n handleDefaults: handleDefaults,\n font: layoutOut.font,\n autotypenumbersDflt: layoutOut.autotypenumbers,\n paper_bgcolor: layoutOut.paper_bgcolor,\n fullData: fullData,\n layoutOut: layoutOut\n });\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../cartesian/axis_autotype\":567,\"../cartesian/category_order_defaults\":571,\"../cartesian/line_grid_defaults\":581,\"../cartesian/prefix_suffix_defaults\":583,\"../cartesian/tick_label_defaults\":587,\"../cartesian/tick_mark_defaults\":588,\"../cartesian/tick_value_defaults\":589,\"../get_data\":602,\"../subplot_defaults\":641,\"./constants\":629,\"./layout_attributes\":632,\"./set_convert\":635}],634:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Plots = _dereq_('../plots');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar setConvertCartesian = _dereq_('../cartesian/set_convert');\nvar setConvertPolar = _dereq_('./set_convert');\nvar doAutoRange = _dereq_('../cartesian/autorange').doAutoRange;\nvar dragBox = _dereq_('../cartesian/dragbox');\nvar dragElement = _dereq_('../../components/dragelement');\nvar Fx = _dereq_('../../components/fx');\nvar Titles = _dereq_('../../components/titles');\nvar prepSelect = _dereq_('../../components/selections').prepSelect;\nvar selectOnClick = _dereq_('../../components/selections').selectOnClick;\nvar clearOutline = _dereq_('../../components/selections').clearOutline;\nvar setCursor = _dereq_('../../lib/setcursor');\nvar clearGlCanvases = _dereq_('../../lib/clear_gl_canvases');\nvar redrawReglTraces = _dereq_('../../plot_api/subroutines').redrawReglTraces;\n\nvar MID_SHIFT = _dereq_('../../constants/alignment').MID_SHIFT;\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\nvar smithHelpers = _dereq_('../smith/helpers');\nvar smith = smithHelpers.smith;\nvar reactanceArc = smithHelpers.reactanceArc;\nvar resistanceArc = smithHelpers.resistanceArc;\nvar smithTransform = smithHelpers.smithTransform;\n\nvar _ = Lib._;\nvar mod = Lib.mod;\nvar deg2rad = Lib.deg2rad;\nvar rad2deg = Lib.rad2deg;\n\nfunction Polar(gd, id, isSmith) {\n this.isSmith = isSmith || false;\n this.id = id;\n this.gd = gd;\n\n this._hasClipOnAxisFalse = null;\n this.vangles = null;\n this.radialAxisAngle = null;\n this.traceHash = {};\n this.layers = {};\n this.clipPaths = {};\n this.clipIds = {};\n this.viewInitial = {};\n\n var fullLayout = gd._fullLayout;\n var clipIdBase = 'clip' + fullLayout._uid + id;\n\n this.clipIds.forTraces = clipIdBase + '-for-traces';\n this.clipPaths.forTraces = fullLayout._clips.append('clipPath')\n .attr('id', this.clipIds.forTraces);\n this.clipPaths.forTraces.append('path');\n\n this.framework = fullLayout['_' + (isSmith ? 'smith' : 'polar') + 'layer'].append('g')\n .attr('class', id);\n\n this.getHole = function(s) {\n return this.isSmith ? 0 : s.hole;\n };\n\n this.getSector = function(s) {\n return this.isSmith ? [0, 360] : s.sector;\n };\n\n this.getRadial = function(s) {\n return this.isSmith ? s.realaxis : s.radialaxis;\n };\n\n this.getAngular = function(s) {\n return this.isSmith ? s.imaginaryaxis : s.angularaxis;\n };\n\n if(!isSmith) {\n // unfortunately, we have to keep track of some axis tick settings\n // as polar subplots do not implement the 'ticks' editType\n this.radialTickLayout = null;\n this.angularTickLayout = null;\n }\n}\n\nvar proto = Polar.prototype;\n\nmodule.exports = function createPolar(gd, id, isSmith) {\n return new Polar(gd, id, isSmith);\n};\n\nproto.plot = function(polarCalcData, fullLayout) {\n var _this = this;\n var polarLayout = fullLayout[_this.id];\n\n var found = false;\n for(var i = 0; i < polarCalcData.length; i++) {\n var trace = polarCalcData[i][0].trace;\n if(trace.cliponaxis === false) {\n found = true;\n break;\n }\n }\n _this._hasClipOnAxisFalse = found;\n\n _this.updateLayers(fullLayout, polarLayout);\n _this.updateLayout(fullLayout, polarLayout);\n Plots.generalUpdatePerTraceModule(_this.gd, _this, polarCalcData, polarLayout);\n _this.updateFx(fullLayout, polarLayout);\n\n if(_this.isSmith) {\n delete polarLayout.realaxis.range;\n delete polarLayout.imaginaryaxis.range;\n }\n};\n\nproto.updateLayers = function(fullLayout, polarLayout) {\n var _this = this;\n var isSmith = _this.isSmith;\n var layers = _this.layers;\n var radialLayout = _this.getRadial(polarLayout);\n var angularLayout = _this.getAngular(polarLayout);\n var layerNames = constants.layerNames;\n\n var frontPlotIndex = layerNames.indexOf('frontplot');\n var layerData = layerNames.slice(0, frontPlotIndex);\n var isAngularAxisBelowTraces = angularLayout.layer === 'below traces';\n var isRadialAxisBelowTraces = radialLayout.layer === 'below traces';\n\n if(isAngularAxisBelowTraces) layerData.push('angular-line');\n if(isRadialAxisBelowTraces) layerData.push('radial-line');\n if(isAngularAxisBelowTraces) layerData.push('angular-axis');\n if(isRadialAxisBelowTraces) layerData.push('radial-axis');\n\n layerData.push('frontplot');\n\n if(!isAngularAxisBelowTraces) layerData.push('angular-line');\n if(!isRadialAxisBelowTraces) layerData.push('radial-line');\n if(!isAngularAxisBelowTraces) layerData.push('angular-axis');\n if(!isRadialAxisBelowTraces) layerData.push('radial-axis');\n\n var subLayer = (isSmith ? 'smith' : 'polar') + 'sublayer';\n\n var join = _this.framework.selectAll('.' + subLayer)\n .data(layerData, String);\n\n join.enter().append('g')\n .attr('class', function(d) { return subLayer + ' ' + d;})\n .each(function(d) {\n var sel = layers[d] = d3.select(this);\n\n switch(d) {\n case 'frontplot':\n // TODO add option to place in 'backplot' layer??\n if(!isSmith) {\n sel.append('g').classed('barlayer', true);\n }\n sel.append('g').classed('scatterlayer', true);\n break;\n case 'backplot':\n sel.append('g').classed('maplayer', true);\n break;\n case 'plotbg':\n layers.bg = sel.append('path');\n break;\n case 'radial-grid':\n sel.style('fill', 'none');\n break;\n case 'angular-grid':\n sel.style('fill', 'none');\n break;\n case 'radial-line':\n sel.append('line').style('fill', 'none');\n break;\n case 'angular-line':\n sel.append('path').style('fill', 'none');\n break;\n }\n });\n\n join.order();\n};\n\n/* Polar subplots juggle with 6 'axis objects' (!), these are:\n *\n * - getRadial(polarLayout) (aka radialLayout in this file):\n * - getAngular(polarLayout) (aka angularLayout in this file):\n * used for data -> calcdata conversions (aka d2c) during the calc step\n *\n * - this.radialAxis\n * extends getRadial(polarLayout), adds mocked 'domain' and\n * few other keys in order to reuse Cartesian doAutoRange and the Axes\n * drawing routines.\n * used for calcdata -> geometric conversions (aka c2g) during the plot step\n * + setGeometry setups ax.c2g for given ax.range\n * + setScale setups ax._m,ax._b for given ax.range\n *\n * - this.angularAxis\n * extends getAngular(polarLayout), adds mocked 'range' and 'domain' and\n * a few other keys in order to reuse the Axes drawing routines.\n * used for calcdata -> geometric conversions (aka c2g) during the plot step\n * + setGeometry setups ax.c2g given ax.rotation, ax.direction & ax._categories,\n * and mocks ax.range\n * + setScale setups ax._m,ax._b with that mocked ax.range\n *\n * - this.xaxis\n * - this.yaxis\n * setup so that polar traces can reuse plot methods of Cartesian traces\n * which mostly rely on 2pixel methods (e.g ax.c2p)\n */\nproto.updateLayout = function(fullLayout, polarLayout) {\n var _this = this;\n var layers = _this.layers;\n var gs = fullLayout._size;\n\n // axis attributes\n var radialLayout = _this.getRadial(polarLayout);\n var angularLayout = _this.getAngular(polarLayout);\n // layout domains\n var xDomain = polarLayout.domain.x;\n var yDomain = polarLayout.domain.y;\n // offsets from paper edge to layout domain box\n _this.xOffset = gs.l + gs.w * xDomain[0];\n _this.yOffset = gs.t + gs.h * (1 - yDomain[1]);\n // lengths of the layout domain box\n var xLength = _this.xLength = gs.w * (xDomain[1] - xDomain[0]);\n var yLength = _this.yLength = gs.h * (yDomain[1] - yDomain[0]);\n // sector to plot\n var sector = _this.getSector(polarLayout);\n _this.sectorInRad = sector.map(deg2rad);\n var sectorBBox = _this.sectorBBox = computeSectorBBox(sector);\n var dxSectorBBox = sectorBBox[2] - sectorBBox[0];\n var dySectorBBox = sectorBBox[3] - sectorBBox[1];\n // aspect ratios\n var arDomain = yLength / xLength;\n var arSector = Math.abs(dySectorBBox / dxSectorBBox);\n // actual lengths and domains of subplot box\n var xLength2, yLength2;\n var xDomain2, yDomain2;\n var gap;\n if(arDomain > arSector) {\n xLength2 = xLength;\n yLength2 = xLength * arSector;\n gap = (yLength - yLength2) / gs.h / 2;\n xDomain2 = [xDomain[0], xDomain[1]];\n yDomain2 = [yDomain[0] + gap, yDomain[1] - gap];\n } else {\n xLength2 = yLength / arSector;\n yLength2 = yLength;\n gap = (xLength - xLength2) / gs.w / 2;\n xDomain2 = [xDomain[0] + gap, xDomain[1] - gap];\n yDomain2 = [yDomain[0], yDomain[1]];\n }\n _this.xLength2 = xLength2;\n _this.yLength2 = yLength2;\n _this.xDomain2 = xDomain2;\n _this.yDomain2 = yDomain2;\n // actual offsets from paper edge to the subplot box top-left corner\n var xOffset2 = _this.xOffset2 = gs.l + gs.w * xDomain2[0];\n var yOffset2 = _this.yOffset2 = gs.t + gs.h * (1 - yDomain2[1]);\n // circle radius in px\n var radius = _this.radius = xLength2 / dxSectorBBox;\n // 'inner' radius in px (when polar.hole is set)\n var innerRadius = _this.innerRadius = _this.getHole(polarLayout) * radius;\n // circle center position in px\n var cx = _this.cx = xOffset2 - radius * sectorBBox[0];\n var cy = _this.cy = yOffset2 + radius * sectorBBox[3];\n // circle center in the coordinate system of plot area\n var cxx = _this.cxx = cx - xOffset2;\n var cyy = _this.cyy = cy - yOffset2;\n\n var side = radialLayout.side;\n var trueSide;\n if(side === 'counterclockwise') {\n trueSide = side;\n side = 'top';\n } else if(side === 'clockwise') {\n trueSide = side;\n side = 'bottom';\n }\n\n _this.radialAxis = _this.mockAxis(fullLayout, polarLayout, radialLayout, {\n // make this an 'x' axis to make positioning (especially rotation) easier\n _id: 'x',\n // convert to 'x' axis equivalent\n side: side,\n // keep track of real side\n _trueSide: trueSide,\n // spans length 1 radius\n domain: [innerRadius / gs.w, radius / gs.w]\n });\n\n _this.angularAxis = _this.mockAxis(fullLayout, polarLayout, angularLayout, {\n side: 'right',\n // to get auto nticks right\n domain: [0, Math.PI],\n // don't pass through autorange logic\n autorange: false\n });\n\n _this.doAutoRange(fullLayout, polarLayout);\n // N.B. this sets _this.vangles\n _this.updateAngularAxis(fullLayout, polarLayout);\n // N.B. this sets _this.radialAxisAngle\n _this.updateRadialAxis(fullLayout, polarLayout);\n _this.updateRadialAxisTitle(fullLayout, polarLayout);\n\n _this.xaxis = _this.mockCartesianAxis(fullLayout, polarLayout, {\n _id: 'x',\n domain: xDomain2\n });\n\n _this.yaxis = _this.mockCartesianAxis(fullLayout, polarLayout, {\n _id: 'y',\n domain: yDomain2\n });\n\n var dPath = _this.pathSubplot();\n\n _this.clipPaths.forTraces.select('path')\n .attr('d', dPath)\n .attr('transform', strTranslate(cxx, cyy));\n\n layers.frontplot\n .attr('transform', strTranslate(xOffset2, yOffset2))\n .call(Drawing.setClipUrl, _this._hasClipOnAxisFalse ? null : _this.clipIds.forTraces, _this.gd);\n\n layers.bg\n .attr('d', dPath)\n .attr('transform', strTranslate(cx, cy))\n .call(Color.fill, polarLayout.bgcolor);\n};\n\nproto.mockAxis = function(fullLayout, polarLayout, axLayout, opts) {\n var ax = Lib.extendFlat({}, axLayout, opts);\n setConvertPolar(ax, polarLayout, fullLayout);\n return ax;\n};\n\nproto.mockCartesianAxis = function(fullLayout, polarLayout, opts) {\n var _this = this;\n var isSmith = _this.isSmith;\n var axId = opts._id;\n\n var ax = Lib.extendFlat({type: 'linear'}, opts);\n setConvertCartesian(ax, fullLayout);\n\n var bboxIndices = {\n x: [0, 2],\n y: [1, 3]\n };\n\n ax.setRange = function() {\n var sectorBBox = _this.sectorBBox;\n var ind = bboxIndices[axId];\n var rl = _this.radialAxis._rl;\n var drl = (rl[1] - rl[0]) / (1 - _this.getHole(polarLayout));\n ax.range = [sectorBBox[ind[0]] * drl, sectorBBox[ind[1]] * drl];\n };\n\n ax.isPtWithinRange = axId === 'x' && !isSmith ?\n function(d) { return _this.isPtInside(d); } :\n function() { return true; };\n\n ax.setRange();\n ax.setScale();\n\n return ax;\n};\n\nproto.doAutoRange = function(fullLayout, polarLayout) {\n var _this = this;\n var gd = _this.gd;\n var radialAxis = _this.radialAxis;\n var radialLayout = _this.getRadial(polarLayout);\n\n doAutoRange(gd, radialAxis);\n\n var rng = radialAxis.range;\n radialLayout.range = rng.slice();\n radialLayout._input.range = rng.slice();\n\n radialAxis._rl = [\n radialAxis.r2l(rng[0], null, 'gregorian'),\n radialAxis.r2l(rng[1], null, 'gregorian')\n ];\n};\n\nproto.updateRadialAxis = function(fullLayout, polarLayout) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var radialLayout = _this.getRadial(polarLayout);\n var a0 = mod(_this.getSector(polarLayout)[0], 360);\n var ax = _this.radialAxis;\n var hasRoomForIt = innerRadius < radius;\n\n var isSmith = _this.isSmith;\n if(!isSmith) {\n _this.fillViewInitialKey('radialaxis.angle', radialLayout.angle);\n _this.fillViewInitialKey('radialaxis.range', ax.range.slice());\n\n ax.setGeometry();\n }\n\n // rotate auto tick labels by 180 if in quadrant II and III to make them\n // readable from left-to-right\n //\n // TODO try moving deeper in Axes.drawLabels for better results?\n if(ax.tickangle === 'auto' && (a0 > 90 && a0 <= 270)) {\n ax.tickangle = 180;\n }\n\n // easier to set rotate angle with custom translate function\n var transFn = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([d.x, 0]));\n return strTranslate(t[0] - cx, t[1] - cy);\n } :\n function(d) {\n return strTranslate(ax.l2p(d.x) + innerRadius, 0);\n };\n\n // set special grid path function\n var gridPathFn = isSmith ?\n function(d) {\n return resistanceArc(_this, d.x, -Infinity, Infinity);\n } :\n function(d) {\n return _this.pathArc(ax.r2p(d.x) + innerRadius);\n };\n\n var newTickLayout = strTickLayout(radialLayout);\n if(_this.radialTickLayout !== newTickLayout) {\n layers['radial-axis'].selectAll('.xtick').remove();\n _this.radialTickLayout = newTickLayout;\n }\n\n if(hasRoomForIt) {\n ax.setScale();\n\n var labelShift = 0;\n\n var vals = isSmith ?\n (ax.tickvals || []).filter(function(x) {\n // filter negative\n return x >= 0;\n }).map(function(x) {\n return Axes.tickText(ax, x, true, false);\n }) : Axes.calcTicks(ax);\n\n var valsClipped = isSmith ? vals : Axes.clipEnds(ax, vals);\n var tickSign = Axes.getTickSigns(ax)[2];\n if(isSmith) {\n if(\n (ax.ticks === 'top' && ax.side === 'bottom') ||\n (ax.ticks === 'bottom' && ax.side === 'top')\n ) {\n // invert sign\n tickSign = -tickSign;\n }\n\n if(ax.ticks === 'top' && ax.side === 'top') labelShift = -ax.ticklen;\n if(ax.ticks === 'bottom' && ax.side === 'bottom') labelShift = ax.ticklen;\n }\n\n Axes.drawTicks(gd, ax, {\n vals: vals,\n layer: layers['radial-axis'],\n path: Axes.makeTickPath(ax, 0, tickSign),\n transFn: transFn,\n crisp: false\n });\n\n Axes.drawGrid(gd, ax, {\n vals: valsClipped,\n layer: layers['radial-grid'],\n path: gridPathFn,\n transFn: Lib.noop,\n crisp: false\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: layers['radial-axis'],\n transFn: transFn,\n labelFns: Axes.makeLabelFns(ax, labelShift)\n });\n }\n\n // stash 'actual' radial axis angle for drag handlers (in degrees)\n var angle = _this.radialAxisAngle = _this.vangles ?\n rad2deg(snapToVertexAngle(deg2rad(radialLayout.angle), _this.vangles)) :\n radialLayout.angle;\n\n var tLayer = strTranslate(cx, cy);\n var tLayer2 = tLayer + strRotate(-angle);\n\n updateElement(\n layers['radial-axis'],\n hasRoomForIt && (radialLayout.showticklabels || radialLayout.ticks),\n {transform: tLayer2}\n );\n\n updateElement(\n layers['radial-grid'],\n hasRoomForIt && radialLayout.showgrid,\n {transform: isSmith ? '' : tLayer}\n );\n\n updateElement(\n layers['radial-line'].select('line'),\n hasRoomForIt && radialLayout.showline,\n {\n x1: isSmith ? -radius : innerRadius,\n y1: 0,\n x2: radius,\n y2: 0,\n transform: tLayer2\n }\n )\n .attr('stroke-width', radialLayout.linewidth)\n .call(Color.stroke, radialLayout.linecolor);\n};\n\nproto.updateRadialAxisTitle = function(fullLayout, polarLayout, _angle) {\n if(this.isSmith) return;\n\n var _this = this;\n var gd = _this.gd;\n var radius = _this.radius;\n var cx = _this.cx;\n var cy = _this.cy;\n var radialLayout = _this.getRadial(polarLayout);\n var titleClass = _this.id + 'title';\n\n var pad = 0;\n\n // Hint: no need to check if there is in fact a title.text set\n // because if plot is editable, pad needs to be calculated anyways\n // to properly show placeholder text when title is empty.\n if(radialLayout.title) {\n var h = Drawing.bBox(_this.layers['radial-axis'].node()).height;\n var ts = radialLayout.title.font.size;\n var side = radialLayout.side;\n pad =\n side === 'top' ? ts :\n side === 'counterclockwise' ?\n -(h + ts * 0.4) :\n h + ts * 0.8;\n }\n\n var angle = _angle !== undefined ? _angle : _this.radialAxisAngle;\n\n var angleRad = deg2rad(angle);\n var cosa = Math.cos(angleRad);\n var sina = Math.sin(angleRad);\n\n var x = cx + (radius / 2) * cosa + pad * sina;\n var y = cy - (radius / 2) * sina + pad * cosa;\n\n _this.layers['radial-axis-title'] = Titles.draw(gd, titleClass, {\n propContainer: radialLayout,\n propName: _this.id + '.radialaxis.title',\n placeholder: _(gd, 'Click to enter radial axis title'),\n attributes: {\n x: x,\n y: y,\n 'text-anchor': 'middle'\n },\n transform: {rotate: -angle}\n });\n};\n\nproto.updateAngularAxis = function(fullLayout, polarLayout) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var angularLayout = _this.getAngular(polarLayout);\n var ax = _this.angularAxis;\n\n var isSmith = _this.isSmith;\n if(!isSmith) {\n _this.fillViewInitialKey('angularaxis.rotation', angularLayout.rotation);\n\n ax.setGeometry();\n ax.setScale();\n }\n\n // 't'ick to 'g'eometric radians is used all over the place here\n var t2g = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([0, d.x]));\n return Math.atan2(t[0] - cx, t[1] - cy) - Math.PI / 2;\n } :\n function(d) { return ax.t2g(d.x); };\n\n // run rad2deg on tick0 and ditck for thetaunit: 'radians' axes\n if(ax.type === 'linear' && ax.thetaunit === 'radians') {\n ax.tick0 = rad2deg(ax.tick0);\n ax.dtick = rad2deg(ax.dtick);\n }\n\n var _transFn = function(rad) {\n return strTranslate(cx + radius * Math.cos(rad), cy - radius * Math.sin(rad));\n };\n\n var transFn = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([0, d.x]));\n return strTranslate(t[0], t[1]);\n } :\n function(d) {\n return _transFn(t2g(d));\n };\n\n var transFn2 = isSmith ?\n function(d) {\n var t = smithTransform(_this, smith([0, d.x]));\n var rad = Math.atan2(t[0] - cx, t[1] - cy) - Math.PI / 2;\n return strTranslate(t[0], t[1]) + strRotate(-rad2deg(rad));\n } :\n function(d) {\n var rad = t2g(d);\n return _transFn(rad) + strRotate(-rad2deg(rad));\n };\n\n var gridPathFn = isSmith ?\n function(d) {\n return reactanceArc(_this, d.x, 0, Infinity);\n } :\n function(d) {\n var rad = t2g(d);\n var cosRad = Math.cos(rad);\n var sinRad = Math.sin(rad);\n return 'M' + [cx + innerRadius * cosRad, cy - innerRadius * sinRad] +\n 'L' + [cx + radius * cosRad, cy - radius * sinRad];\n };\n\n var out = Axes.makeLabelFns(ax, 0);\n var labelStandoff = out.labelStandoff;\n var labelFns = {};\n\n labelFns.xFn = function(d) {\n var rad = t2g(d);\n return Math.cos(rad) * labelStandoff;\n };\n\n labelFns.yFn = function(d) {\n var rad = t2g(d);\n var ff = Math.sin(rad) > 0 ? 0.2 : 1;\n return -Math.sin(rad) * (labelStandoff + d.fontSize * ff) +\n Math.abs(Math.cos(rad)) * (d.fontSize * MID_SHIFT);\n };\n\n labelFns.anchorFn = function(d) {\n var rad = t2g(d);\n var cos = Math.cos(rad);\n return Math.abs(cos) < 0.1 ?\n 'middle' :\n (cos > 0 ? 'start' : 'end');\n };\n\n labelFns.heightFn = function(d, a, h) {\n var rad = t2g(d);\n return -0.5 * (1 + Math.sin(rad)) * h;\n };\n\n var newTickLayout = strTickLayout(angularLayout);\n if(_this.angularTickLayout !== newTickLayout) {\n layers['angular-axis'].selectAll('.' + ax._id + 'tick').remove();\n _this.angularTickLayout = newTickLayout;\n }\n\n var vals = isSmith ?\n [Infinity].concat(ax.tickvals || []).map(function(x) {\n return Axes.tickText(ax, x, true, false);\n }) : Axes.calcTicks(ax);\n\n if(isSmith) {\n vals[0].text = '∞';\n vals[0].fontSize *= 1.75;\n }\n\n // angle of polygon vertices in geometric radians (null means circles)\n // TODO what to do when ax.period > ax._categories ??\n var vangles;\n if(polarLayout.gridshape === 'linear') {\n vangles = vals.map(t2g);\n\n // ax._vals should be always ordered, make them\n // always turn counterclockwise for convenience here\n if(Lib.angleDelta(vangles[0], vangles[1]) < 0) {\n vangles = vangles.slice().reverse();\n }\n } else {\n vangles = null;\n }\n _this.vangles = vangles;\n\n // Use tickval filter for category axes instead of tweaking\n // the range w.r.t sector, so that sectors that cross 360 can\n // show all their ticks.\n if(ax.type === 'category') {\n vals = vals.filter(function(d) {\n return Lib.isAngleInsideSector(t2g(d), _this.sectorInRad);\n });\n }\n\n if(ax.visible) {\n var tickSign = ax.ticks === 'inside' ? -1 : 1;\n\n var pad = (ax.linewidth || 1) / 2;\n\n Axes.drawTicks(gd, ax, {\n vals: vals,\n layer: layers['angular-axis'],\n path: 'M' + (tickSign * pad) + ',0h' + (tickSign * ax.ticklen),\n transFn: transFn2,\n crisp: false\n });\n\n Axes.drawGrid(gd, ax, {\n vals: vals,\n layer: layers['angular-grid'],\n path: gridPathFn,\n transFn: Lib.noop,\n crisp: false\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: layers['angular-axis'],\n repositionOnUpdate: true,\n transFn: transFn,\n labelFns: labelFns\n });\n }\n\n // TODO maybe two arcs is better here?\n // maybe split style attributes between inner and outer angular axes?\n\n updateElement(layers['angular-line'].select('path'), angularLayout.showline, {\n d: _this.pathSubplot(),\n transform: strTranslate(cx, cy)\n })\n .attr('stroke-width', angularLayout.linewidth)\n .call(Color.stroke, angularLayout.linecolor);\n};\n\nproto.updateFx = function(fullLayout, polarLayout) {\n if(!this.gd._context.staticPlot) {\n var hasDrag = !this.isSmith;\n if(hasDrag) {\n this.updateAngularDrag(fullLayout);\n this.updateRadialDrag(fullLayout, polarLayout, 0);\n this.updateRadialDrag(fullLayout, polarLayout, 1);\n }\n this.updateHoverAndMainDrag(fullLayout);\n }\n};\n\nproto.updateHoverAndMainDrag = function(fullLayout) {\n var _this = this;\n var isSmith = _this.isSmith;\n var gd = _this.gd;\n var layers = _this.layers;\n var zoomlayer = fullLayout._zoomlayer;\n var MINZOOM = constants.MINZOOM;\n var OFFEDGE = constants.OFFEDGE;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var cxx = _this.cxx;\n var cyy = _this.cyy;\n var sectorInRad = _this.sectorInRad;\n var vangles = _this.vangles;\n var radialAxis = _this.radialAxis;\n var clampTiny = helpers.clampTiny;\n var findXYatLength = helpers.findXYatLength;\n var findEnclosingVertexAngles = helpers.findEnclosingVertexAngles;\n var chw = constants.cornerHalfWidth;\n var chl = constants.cornerLen / 2;\n\n var scaleX;\n var scaleY;\n\n var mainDrag = dragBox.makeDragger(layers, 'path', 'maindrag', fullLayout.dragmode === false ? 'none' : 'crosshair');\n\n d3.select(mainDrag)\n .attr('d', _this.pathSubplot())\n .attr('transform', strTranslate(cx, cy));\n\n mainDrag.onmousemove = function(evt) {\n Fx.hover(gd, evt, _this.id);\n gd._fullLayout._lasthover = mainDrag;\n gd._fullLayout._hoversubplot = _this.id;\n };\n\n mainDrag.onmouseout = function(evt) {\n if(gd._dragging) return;\n dragElement.unhover(gd, evt);\n };\n\n var dragOpts = {\n element: mainDrag,\n gd: gd,\n subplot: _this.id,\n plotinfo: {\n id: _this.id,\n xaxis: _this.xaxis,\n yaxis: _this.yaxis\n },\n xaxes: [_this.xaxis],\n yaxes: [_this.yaxis]\n };\n\n // mouse px position at drag start (0), move (1)\n var x0, y0;\n // radial distance from circle center at drag start (0), move (1)\n var r0, r1;\n // zoombox persistent quantities\n var path0, dimmed, lum;\n // zoombox, corners elements\n var zb, corners;\n\n function norm(x, y) {\n return Math.sqrt(x * x + y * y);\n }\n\n function xy2r(x, y) {\n return norm(x - cxx, y - cyy);\n }\n\n function xy2a(x, y) {\n return Math.atan2(cyy - y, x - cxx);\n }\n\n function ra2xy(r, a) {\n return [r * Math.cos(a), r * Math.sin(-a)];\n }\n\n function pathCorner(r, a) {\n if(r === 0) return _this.pathSector(2 * chw);\n\n var da = chl / r;\n var am = a - da;\n var ap = a + da;\n var rb = Math.max(0, Math.min(r, radius));\n var rm = rb - chw;\n var rp = rb + chw;\n\n return 'M' + ra2xy(rm, am) +\n 'A' + [rm, rm] + ' 0,0,0 ' + ra2xy(rm, ap) +\n 'L' + ra2xy(rp, ap) +\n 'A' + [rp, rp] + ' 0,0,1 ' + ra2xy(rp, am) +\n 'Z';\n }\n\n // (x,y) is the pt at middle of the va0 <-> va1 edge\n //\n // ... we could eventually add another mode for cursor\n // angles 'close to' enough to a particular vertex.\n function pathCornerForPolygons(r, va0, va1) {\n if(r === 0) return _this.pathSector(2 * chw);\n\n var xy0 = ra2xy(r, va0);\n var xy1 = ra2xy(r, va1);\n var x = clampTiny((xy0[0] + xy1[0]) / 2);\n var y = clampTiny((xy0[1] + xy1[1]) / 2);\n var innerPts, outerPts;\n\n if(x && y) {\n var m = y / x;\n var mperp = -1 / m;\n var midPts = findXYatLength(chw, m, x, y);\n innerPts = findXYatLength(chl, mperp, midPts[0][0], midPts[0][1]);\n outerPts = findXYatLength(chl, mperp, midPts[1][0], midPts[1][1]);\n } else {\n var dx, dy;\n if(y) {\n // horizontal handles\n dx = chl;\n dy = chw;\n } else {\n // vertical handles\n dx = chw;\n dy = chl;\n }\n innerPts = [[x - dx, y - dy], [x + dx, y - dy]];\n outerPts = [[x - dx, y + dy], [x + dx, y + dy]];\n }\n\n return 'M' + innerPts.join('L') +\n 'L' + outerPts.reverse().join('L') + 'Z';\n }\n\n function zoomPrep() {\n r0 = null;\n r1 = null;\n path0 = _this.pathSubplot();\n dimmed = false;\n\n var polarLayoutNow = gd._fullLayout[_this.id];\n lum = tinycolor(polarLayoutNow.bgcolor).getLuminance();\n\n zb = dragBox.makeZoombox(zoomlayer, lum, cx, cy, path0);\n zb.attr('fill-rule', 'evenodd');\n corners = dragBox.makeCorners(zoomlayer, cx, cy);\n clearOutline(gd);\n }\n\n // N.B. this sets scoped 'r0' and 'r1'\n // return true if 'valid' zoom distance, false otherwise\n function clampAndSetR0R1(rr0, rr1) {\n rr1 = Math.max(Math.min(rr1, radius), innerRadius);\n\n // starting or ending drag near center (outer edge),\n // clamps radial distance at origin (at r=radius)\n if(rr0 < OFFEDGE) rr0 = 0;\n else if((radius - rr0) < OFFEDGE) rr0 = radius;\n else if(rr1 < OFFEDGE) rr1 = 0;\n else if((radius - rr1) < OFFEDGE) rr1 = radius;\n\n // make sure r0 < r1,\n // to get correct fill pattern in path1 below\n if(Math.abs(rr1 - rr0) > MINZOOM) {\n if(rr0 < rr1) {\n r0 = rr0;\n r1 = rr1;\n } else {\n r0 = rr1;\n r1 = rr0;\n }\n return true;\n } else {\n r0 = null;\n r1 = null;\n return false;\n }\n }\n\n function applyZoomMove(path1, cpath) {\n path1 = path1 || path0;\n cpath = cpath || 'M0,0Z';\n\n zb.attr('d', path1);\n corners.attr('d', cpath);\n dragBox.transitionZoombox(zb, corners, dimmed, lum);\n dimmed = true;\n\n var updateObj = {};\n computeZoomUpdates(updateObj);\n gd.emit('plotly_relayouting', updateObj);\n }\n\n function zoomMove(dx, dy) {\n dx = dx * scaleX;\n dy = dy * scaleY;\n\n var x1 = x0 + dx;\n var y1 = y0 + dy;\n\n var rr0 = xy2r(x0, y0);\n var rr1 = Math.min(xy2r(x1, y1), radius);\n var a0 = xy2a(x0, y0);\n var path1;\n var cpath;\n\n if(clampAndSetR0R1(rr0, rr1)) {\n path1 = path0 + _this.pathSector(r1);\n if(r0) path1 += _this.pathSector(r0);\n // keep 'starting' angle\n cpath = pathCorner(r0, a0) + pathCorner(r1, a0);\n }\n applyZoomMove(path1, cpath);\n }\n\n function findPolygonRadius(x, y, va0, va1) {\n var xy = helpers.findIntersectionXY(va0, va1, va0, [x - cxx, cyy - y]);\n return norm(xy[0], xy[1]);\n }\n\n function zoomMoveForPolygons(dx, dy) {\n var x1 = x0 + dx;\n var y1 = y0 + dy;\n var a0 = xy2a(x0, y0);\n var a1 = xy2a(x1, y1);\n var vangles0 = findEnclosingVertexAngles(a0, vangles);\n var vangles1 = findEnclosingVertexAngles(a1, vangles);\n var rr0 = findPolygonRadius(x0, y0, vangles0[0], vangles0[1]);\n var rr1 = Math.min(findPolygonRadius(x1, y1, vangles1[0], vangles1[1]), radius);\n var path1;\n var cpath;\n\n if(clampAndSetR0R1(rr0, rr1)) {\n path1 = path0 + _this.pathSector(r1);\n if(r0) path1 += _this.pathSector(r0);\n // keep 'starting' angle here too\n cpath = [\n pathCornerForPolygons(r0, vangles0[0], vangles0[1]),\n pathCornerForPolygons(r1, vangles0[0], vangles0[1])\n ].join(' ');\n }\n applyZoomMove(path1, cpath);\n }\n\n function zoomDone() {\n dragBox.removeZoombox(gd);\n\n if(r0 === null || r1 === null) return;\n var updateObj = {};\n computeZoomUpdates(updateObj);\n\n dragBox.showDoubleClickNotifier(gd);\n\n Registry.call('_guiRelayout', gd, updateObj);\n }\n\n function computeZoomUpdates(update) {\n var rl = radialAxis._rl;\n var m = (rl[1] - rl[0]) / (1 - innerRadius / radius) / radius;\n var newRng = [\n rl[0] + (r0 - innerRadius) * m,\n rl[0] + (r1 - innerRadius) * m\n ];\n update[_this.id + '.radialaxis.range'] = newRng;\n }\n\n function zoomClick(numClicks, evt) {\n var clickMode = gd._fullLayout.clickmode;\n\n dragBox.removeZoombox(gd);\n\n // TODO double once vs twice logic (autorange vs fixed range)\n if(numClicks === 2) {\n var updateObj = {};\n for(var k in _this.viewInitial) {\n updateObj[_this.id + '.' + k] = _this.viewInitial[k];\n }\n\n gd.emit('plotly_doubleclick', null);\n Registry.call('_guiRelayout', gd, updateObj);\n }\n\n if(clickMode.indexOf('select') > -1 && numClicks === 1) {\n selectOnClick(evt, gd, [_this.xaxis], [_this.yaxis], _this.id, dragOpts);\n }\n\n if(clickMode.indexOf('event') > -1) {\n Fx.click(gd, evt, _this.id);\n }\n }\n\n dragOpts.prepFn = function(evt, startX, startY) {\n var dragModeNow = gd._fullLayout.dragmode;\n\n var bbox = mainDrag.getBoundingClientRect();\n gd._fullLayout._calcInverseTransform(gd);\n var inverse = gd._fullLayout._invTransform;\n scaleX = gd._fullLayout._invScaleX;\n scaleY = gd._fullLayout._invScaleY;\n var transformedCoords = Lib.apply3DTransform(inverse)(startX - bbox.left, startY - bbox.top);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n // need to offset x/y as bbox center does not\n // match origin for asymmetric polygons\n if(vangles) {\n var offset = helpers.findPolygonOffset(radius, sectorInRad[0], sectorInRad[1], vangles);\n x0 += cxx + offset[0];\n y0 += cyy + offset[1];\n }\n\n switch(dragModeNow) {\n case 'zoom':\n dragOpts.clickFn = zoomClick;\n\n if(!isSmith) {\n if(vangles) {\n dragOpts.moveFn = zoomMoveForPolygons;\n } else {\n dragOpts.moveFn = zoomMove;\n }\n\n dragOpts.doneFn = zoomDone;\n zoomPrep(evt, startX, startY);\n }\n break;\n case 'select':\n case 'lasso':\n prepSelect(evt, startX, startY, dragOpts, dragModeNow);\n break;\n }\n };\n\n dragElement.init(dragOpts);\n};\n\nproto.updateRadialDrag = function(fullLayout, polarLayout, rngIndex) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var innerRadius = _this.innerRadius;\n var cx = _this.cx;\n var cy = _this.cy;\n var radialAxis = _this.radialAxis;\n var bl = constants.radialDragBoxSize;\n var bl2 = bl / 2;\n\n if(!radialAxis.visible) return;\n\n var angle0 = deg2rad(_this.radialAxisAngle);\n var rl = radialAxis._rl;\n var rl0 = rl[0];\n var rl1 = rl[1];\n var rbase = rl[rngIndex];\n var m = 0.75 * (rl[1] - rl[0]) / (1 - _this.getHole(polarLayout)) / radius;\n\n var tx, ty, className;\n if(rngIndex) {\n tx = cx + (radius + bl2) * Math.cos(angle0);\n ty = cy - (radius + bl2) * Math.sin(angle0);\n className = 'radialdrag';\n } else {\n // the 'inner' box can get called:\n // - when polar.hole>0\n // - when polar.sector isn't a full circle\n // otherwise it is hidden behind the main drag.\n tx = cx + (innerRadius - bl2) * Math.cos(angle0);\n ty = cy - (innerRadius - bl2) * Math.sin(angle0);\n className = 'radialdrag-inner';\n }\n\n var radialDrag = dragBox.makeRectDragger(layers, className, 'crosshair', -bl2, -bl2, bl, bl);\n var dragOpts = {element: radialDrag, gd: gd};\n if(fullLayout.dragmode === false) {\n dragOpts.dragmode = false;\n }\n\n updateElement(d3.select(radialDrag), radialAxis.visible && innerRadius < radius, {\n transform: strTranslate(tx, ty)\n });\n\n // move function (either rotate or re-range flavor)\n var moveFn2;\n // rotate angle on done\n var angle1;\n // re-range range[1] (or range[0]) on done\n var rprime;\n\n function moveFn(dx, dy) {\n if(moveFn2) {\n moveFn2(dx, dy);\n } else {\n var dvec = [dx, -dy];\n var rvec = [Math.cos(angle0), Math.sin(angle0)];\n var comp = Math.abs(Lib.dot(dvec, rvec) / Math.sqrt(Lib.dot(dvec, dvec)));\n\n // mostly perpendicular motions rotate,\n // mostly parallel motions re-range\n if(!isNaN(comp)) {\n moveFn2 = comp < 0.5 ? rotateMove : rerangeMove;\n }\n }\n\n var update = {};\n computeRadialAxisUpdates(update);\n gd.emit('plotly_relayouting', update);\n }\n\n function computeRadialAxisUpdates(update) {\n if(angle1 !== null) {\n update[_this.id + '.radialaxis.angle'] = angle1;\n } else if(rprime !== null) {\n update[_this.id + '.radialaxis.range[' + rngIndex + ']'] = rprime;\n }\n }\n\n function doneFn() {\n if(angle1 !== null) {\n Registry.call('_guiRelayout', gd, _this.id + '.radialaxis.angle', angle1);\n } else if(rprime !== null) {\n Registry.call('_guiRelayout', gd, _this.id + '.radialaxis.range[' + rngIndex + ']', rprime);\n }\n }\n\n function rotateMove(dx, dy) {\n // disable for inner drag boxes\n if(rngIndex === 0) return;\n\n var x1 = tx + dx;\n var y1 = ty + dy;\n\n angle1 = Math.atan2(cy - y1, x1 - cx);\n if(_this.vangles) angle1 = snapToVertexAngle(angle1, _this.vangles);\n angle1 = rad2deg(angle1);\n\n var transform = strTranslate(cx, cy) + strRotate(-angle1);\n layers['radial-axis'].attr('transform', transform);\n layers['radial-line'].select('line').attr('transform', transform);\n\n var fullLayoutNow = _this.gd._fullLayout;\n var polarLayoutNow = fullLayoutNow[_this.id];\n _this.updateRadialAxisTitle(fullLayoutNow, polarLayoutNow, angle1);\n }\n\n function rerangeMove(dx, dy) {\n // project (dx, dy) unto unit radial axis vector\n var dr = Lib.dot([dx, -dy], [Math.cos(angle0), Math.sin(angle0)]);\n rprime = rbase - m * dr;\n\n // make sure rprime does not change the range[0] -> range[1] sign\n if((m > 0) !== (rngIndex ? rprime > rl0 : rprime < rl1)) {\n rprime = null;\n return;\n }\n\n var fullLayoutNow = gd._fullLayout;\n var polarLayoutNow = fullLayoutNow[_this.id];\n\n // update radial range -> update c2g -> update _m,_b\n radialAxis.range[rngIndex] = rprime;\n radialAxis._rl[rngIndex] = rprime;\n _this.updateRadialAxis(fullLayoutNow, polarLayoutNow);\n\n _this.xaxis.setRange();\n _this.xaxis.setScale();\n _this.yaxis.setRange();\n _this.yaxis.setScale();\n\n var hasRegl = false;\n\n for(var traceType in _this.traceHash) {\n var moduleCalcData = _this.traceHash[traceType];\n var moduleCalcDataVisible = Lib.filterVisible(moduleCalcData);\n var _module = moduleCalcData[0][0].trace._module;\n _module.plot(gd, _this, moduleCalcDataVisible, polarLayoutNow);\n if(Registry.traceIs(traceType, 'gl') && moduleCalcDataVisible.length) hasRegl = true;\n }\n\n if(hasRegl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n }\n\n dragOpts.prepFn = function() {\n moveFn2 = null;\n angle1 = null;\n rprime = null;\n\n dragOpts.moveFn = moveFn;\n dragOpts.doneFn = doneFn;\n\n clearOutline(gd);\n };\n\n dragOpts.clampFn = function(dx, dy) {\n if(Math.sqrt(dx * dx + dy * dy) < constants.MINDRAG) {\n dx = 0;\n dy = 0;\n }\n return [dx, dy];\n };\n\n dragElement.init(dragOpts);\n};\n\nproto.updateAngularDrag = function(fullLayout) {\n var _this = this;\n var gd = _this.gd;\n var layers = _this.layers;\n var radius = _this.radius;\n var angularAxis = _this.angularAxis;\n var cx = _this.cx;\n var cy = _this.cy;\n var cxx = _this.cxx;\n var cyy = _this.cyy;\n var dbs = constants.angularDragBoxSize;\n\n var angularDrag = dragBox.makeDragger(layers, 'path', 'angulardrag', fullLayout.dragmode === false ? 'none' : 'move');\n var dragOpts = {element: angularDrag, gd: gd};\n\n if(fullLayout.dragmode === false) {\n dragOpts.dragmode = false;\n } else {\n d3.select(angularDrag)\n .attr('d', _this.pathAnnulus(radius, radius + dbs))\n .attr('transform', strTranslate(cx, cy))\n .call(setCursor, 'move');\n }\n\n function xy2a(x, y) {\n return Math.atan2(cyy + dbs - y, x - cxx - dbs);\n }\n\n // scatter trace, points and textpoints selections\n var scatterTraces = layers.frontplot.select('.scatterlayer').selectAll('.trace');\n var scatterPoints = scatterTraces.selectAll('.point');\n var scatterTextPoints = scatterTraces.selectAll('.textpoint');\n\n // mouse px position at drag start (0), move (1)\n var x0, y0;\n // angular axis angle rotation at drag start (0), move (1)\n var rot0, rot1;\n // induced radial axis rotation (only used on polygon grids)\n var rrot1;\n // angle about circle center at drag start\n var a0;\n\n function moveFn(dx, dy) {\n var fullLayoutNow = _this.gd._fullLayout;\n var polarLayoutNow = fullLayoutNow[_this.id];\n\n var x1 = x0 + dx * fullLayout._invScaleX;\n var y1 = y0 + dy * fullLayout._invScaleY;\n var a1 = xy2a(x1, y1);\n var da = rad2deg(a1 - a0);\n rot1 = rot0 + da;\n\n layers.frontplot.attr('transform',\n strTranslate(_this.xOffset2, _this.yOffset2) + strRotate([-da, cxx, cyy])\n );\n\n if(_this.vangles) {\n rrot1 = _this.radialAxisAngle + da;\n\n var trans = strTranslate(cx, cy) + strRotate(-da);\n var trans2 = strTranslate(cx, cy) + strRotate(-rrot1);\n\n layers.bg.attr('transform', trans);\n layers['radial-grid'].attr('transform', trans);\n layers['radial-axis'].attr('transform', trans2);\n layers['radial-line'].select('line').attr('transform', trans2);\n _this.updateRadialAxisTitle(fullLayoutNow, polarLayoutNow, rrot1);\n } else {\n _this.clipPaths.forTraces.select('path').attr('transform',\n strTranslate(cxx, cyy) + strRotate(da)\n );\n }\n\n // 'un-rotate' marker and text points\n scatterPoints.each(function() {\n var sel = d3.select(this);\n var xy = Drawing.getTranslate(sel);\n sel.attr('transform', strTranslate(xy.x, xy.y) + strRotate([da]));\n });\n scatterTextPoints.each(function() {\n var sel = d3.select(this);\n var tx = sel.select('text');\n var xy = Drawing.getTranslate(sel);\n // N.B rotate -> translate ordering matters\n sel.attr('transform', strRotate([da, tx.attr('x'), tx.attr('y')]) + strTranslate(xy.x, xy.y));\n });\n\n // update rotation -> range -> _m,_b\n angularAxis.rotation = Lib.modHalf(rot1, 360);\n _this.updateAngularAxis(fullLayoutNow, polarLayoutNow);\n\n if(_this._hasClipOnAxisFalse && !Lib.isFullCircle(_this.sectorInRad)) {\n scatterTraces.call(Drawing.hideOutsideRangePoints, _this);\n }\n\n var hasRegl = false;\n\n for(var traceType in _this.traceHash) {\n if(Registry.traceIs(traceType, 'gl')) {\n var moduleCalcData = _this.traceHash[traceType];\n var moduleCalcDataVisible = Lib.filterVisible(moduleCalcData);\n var _module = moduleCalcData[0][0].trace._module;\n _module.plot(gd, _this, moduleCalcDataVisible, polarLayoutNow);\n if(moduleCalcDataVisible.length) hasRegl = true;\n }\n }\n\n if(hasRegl) {\n clearGlCanvases(gd);\n redrawReglTraces(gd);\n }\n\n var update = {};\n computeRotationUpdates(update);\n gd.emit('plotly_relayouting', update);\n }\n\n function computeRotationUpdates(updateObj) {\n updateObj[_this.id + '.angularaxis.rotation'] = rot1;\n\n if(_this.vangles) {\n updateObj[_this.id + '.radialaxis.angle'] = rrot1;\n }\n }\n\n function doneFn() {\n scatterTextPoints.select('text').attr('transform', null);\n\n var updateObj = {};\n computeRotationUpdates(updateObj);\n Registry.call('_guiRelayout', gd, updateObj);\n }\n\n dragOpts.prepFn = function(evt, startX, startY) {\n var polarLayoutNow = fullLayout[_this.id];\n rot0 = polarLayoutNow.angularaxis.rotation;\n\n var bbox = angularDrag.getBoundingClientRect();\n x0 = startX - bbox.left;\n y0 = startY - bbox.top;\n\n gd._fullLayout._calcInverseTransform(gd);\n var transformedCoords = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n a0 = xy2a(x0, y0);\n\n dragOpts.moveFn = moveFn;\n dragOpts.doneFn = doneFn;\n\n clearOutline(gd);\n };\n\n // I don't what we should do in this case, skip we now\n if(_this.vangles && !Lib.isFullCircle(_this.sectorInRad)) {\n dragOpts.prepFn = Lib.noop;\n setCursor(d3.select(angularDrag), null);\n }\n\n dragElement.init(dragOpts);\n};\n\nproto.isPtInside = function(d) {\n if(this.isSmith) return true;\n\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var thetag = this.angularAxis.c2g(d.theta);\n var radialAxis = this.radialAxis;\n var r = radialAxis.c2l(d.r);\n var rl = radialAxis._rl;\n\n var fn = vangles ? helpers.isPtInsidePolygon : Lib.isPtInsideSector;\n return fn(r, thetag, rl, sectorInRad, vangles);\n};\n\nproto.pathArc = function(r) {\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var fn = vangles ? helpers.pathPolygon : Lib.pathArc;\n return fn(r, sectorInRad[0], sectorInRad[1], vangles);\n};\n\nproto.pathSector = function(r) {\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var fn = vangles ? helpers.pathPolygon : Lib.pathSector;\n return fn(r, sectorInRad[0], sectorInRad[1], vangles);\n};\n\nproto.pathAnnulus = function(r0, r1) {\n var sectorInRad = this.sectorInRad;\n var vangles = this.vangles;\n var fn = vangles ? helpers.pathPolygonAnnulus : Lib.pathAnnulus;\n return fn(r0, r1, sectorInRad[0], sectorInRad[1], vangles);\n};\n\nproto.pathSubplot = function() {\n var r0 = this.innerRadius;\n var r1 = this.radius;\n return r0 ? this.pathAnnulus(r0, r1) : this.pathSector(r1);\n};\n\nproto.fillViewInitialKey = function(key, val) {\n if(!(key in this.viewInitial)) {\n this.viewInitial[key] = val;\n }\n};\n\nfunction strTickLayout(axLayout) {\n var out = axLayout.ticks + String(axLayout.ticklen) + String(axLayout.showticklabels);\n if('side' in axLayout) out += axLayout.side;\n return out;\n}\n\n// Finds the bounding box of a given circle sector,\n// inspired by https://math.stackexchange.com/q/1852703\n//\n// assumes:\n// - sector[0] < sector[1]\n// - counterclockwise rotation\nfunction computeSectorBBox(sector) {\n var s0 = sector[0];\n var s1 = sector[1];\n var arc = s1 - s0;\n var a0 = mod(s0, 360);\n var a1 = a0 + arc;\n\n var ax0 = Math.cos(deg2rad(a0));\n var ay0 = Math.sin(deg2rad(a0));\n var ax1 = Math.cos(deg2rad(a1));\n var ay1 = Math.sin(deg2rad(a1));\n\n var x0, y0, x1, y1;\n\n if((a0 <= 90 && a1 >= 90) || (a0 > 90 && a1 >= 450)) {\n y1 = 1;\n } else if(ay0 <= 0 && ay1 <= 0) {\n y1 = 0;\n } else {\n y1 = Math.max(ay0, ay1);\n }\n\n if((a0 <= 180 && a1 >= 180) || (a0 > 180 && a1 >= 540)) {\n x0 = -1;\n } else if(ax0 >= 0 && ax1 >= 0) {\n x0 = 0;\n } else {\n x0 = Math.min(ax0, ax1);\n }\n\n if((a0 <= 270 && a1 >= 270) || (a0 > 270 && a1 >= 630)) {\n y0 = -1;\n } else if(ay0 >= 0 && ay1 >= 0) {\n y0 = 0;\n } else {\n y0 = Math.min(ay0, ay1);\n }\n\n if(a1 >= 360) {\n x1 = 1;\n } else if(ax0 <= 0 && ax1 <= 0) {\n x1 = 0;\n } else {\n x1 = Math.max(ax0, ax1);\n }\n\n return [x0, y0, x1, y1];\n}\n\nfunction snapToVertexAngle(a, vangles) {\n var fn = function(v) { return Lib.angleDist(a, v); };\n var ind = Lib.findIndexOfMin(vangles, fn);\n return vangles[ind];\n}\n\nfunction updateElement(sel, showAttr, attrs) {\n if(showAttr) {\n sel.attr('display', null);\n sel.attr(attrs);\n } else if(sel) {\n sel.attr('display', 'none');\n }\n return sel;\n}\n\n},{\"../../components/color\":367,\"../../components/dragelement\":386,\"../../components/drawing\":389,\"../../components/fx\":407,\"../../components/selections\":455,\"../../components/titles\":476,\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/clear_gl_canvases\":499,\"../../lib/setcursor\":536,\"../../plot_api/subroutines\":556,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../cartesian/autorange\":565,\"../cartesian/dragbox\":575,\"../cartesian/set_convert\":585,\"../plots\":628,\"../smith/helpers\":637,\"./constants\":629,\"./helpers\":630,\"./set_convert\":635,\"@plotly/d3\":58,\"tinycolor2\":313}],635:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar setConvertCartesian = _dereq_('../cartesian/set_convert');\n\nvar deg2rad = Lib.deg2rad;\nvar rad2deg = Lib.rad2deg;\n\n/**\n * setConvert for polar axes!\n *\n * @param {object} ax\n * axis in question (works for both radial and angular axes)\n * @param {object} polarLayout\n * full polar layout of the subplot associated with 'ax'\n * @param {object} fullLayout\n * full layout\n *\n * Here, reuse some of the Cartesian setConvert logic,\n * but we must extend some of it, as both radial and angular axes\n * don't have domains and angular axes don't have _true_ ranges.\n *\n * Moreover, we introduce two new coordinate systems:\n * - 'g' for geometric coordinates and\n * - 't' for angular ticks\n *\n * Radial axis coordinate systems:\n * - d, c and l: same as for cartesian axes\n * - g: like calcdata but translated about `radialaxis.range[0]` & `polar.hole`\n *\n * Angular axis coordinate systems:\n * - d: data, in whatever form it's provided\n * - c: calcdata, turned into radians (for linear axes)\n * or category indices (category axes)\n * - t: tick calcdata, just like 'c' but in degrees for linear axes\n * - g: geometric calcdata, radians coordinates that take into account\n * axis rotation and direction\n *\n * Then, 'g'eometric data is ready to be converted to (x,y).\n */\nmodule.exports = function setConvert(ax, polarLayout, fullLayout) {\n setConvertCartesian(ax, fullLayout);\n\n switch(ax._id) {\n case 'x':\n case 'radialaxis':\n setConvertRadial(ax, polarLayout);\n break;\n case 'angularaxis':\n setConvertAngular(ax, polarLayout);\n break;\n }\n};\n\nfunction setConvertRadial(ax, polarLayout) {\n var subplot = polarLayout._subplot;\n\n ax.setGeometry = function() {\n var rl0 = ax._rl[0];\n var rl1 = ax._rl[1];\n\n var b = subplot.innerRadius;\n var m = (subplot.radius - b) / (rl1 - rl0);\n var b2 = b / m;\n\n var rFilter = rl0 > rl1 ?\n function(v) { return v <= 0; } :\n function(v) { return v >= 0; };\n\n ax.c2g = function(v) {\n var r = ax.c2l(v) - rl0;\n return (rFilter(r) ? r : 0) + b2;\n };\n\n ax.g2c = function(v) {\n return ax.l2c(v + rl0 - b2);\n };\n\n ax.g2p = function(v) { return v * m; };\n ax.c2p = function(v) { return ax.g2p(ax.c2g(v)); };\n };\n}\n\nfunction toRadians(v, unit) {\n return unit === 'degrees' ? deg2rad(v) : v;\n}\n\nfunction fromRadians(v, unit) {\n return unit === 'degrees' ? rad2deg(v) : v;\n}\n\nfunction setConvertAngular(ax, polarLayout) {\n var axType = ax.type;\n\n if(axType === 'linear') {\n var _d2c = ax.d2c;\n var _c2d = ax.c2d;\n\n ax.d2c = function(v, unit) { return toRadians(_d2c(v), unit); };\n ax.c2d = function(v, unit) { return _c2d(fromRadians(v, unit)); };\n }\n\n // override makeCalcdata to handle thetaunit and special theta0/dtheta logic\n ax.makeCalcdata = function(trace, coord) {\n var arrayIn = trace[coord];\n var len = trace._length;\n var arrayOut, i;\n\n var _d2c = function(v) { return ax.d2c(v, trace.thetaunit); };\n\n if(arrayIn) {\n if(Lib.isTypedArray(arrayIn) && axType === 'linear') {\n if(len === arrayIn.length) {\n return arrayIn;\n } else if(arrayIn.subarray) {\n return arrayIn.subarray(0, len);\n }\n }\n\n arrayOut = new Array(len);\n for(i = 0; i < len; i++) {\n arrayOut[i] = _d2c(arrayIn[i]);\n }\n } else {\n var coord0 = coord + '0';\n var dcoord = 'd' + coord;\n var v0 = (coord0 in trace) ? _d2c(trace[coord0]) : 0;\n var dv = (trace[dcoord]) ? _d2c(trace[dcoord]) : (ax.period || 2 * Math.PI) / len;\n\n arrayOut = new Array(len);\n for(i = 0; i < len; i++) {\n arrayOut[i] = v0 + i * dv;\n }\n }\n\n return arrayOut;\n };\n\n // N.B. we mock the axis 'range' here\n ax.setGeometry = function() {\n var sector = polarLayout.sector;\n var sectorInRad = sector.map(deg2rad);\n var dir = {clockwise: -1, counterclockwise: 1}[ax.direction];\n var rot = deg2rad(ax.rotation);\n\n var rad2g = function(v) { return dir * v + rot; };\n var g2rad = function(v) { return (v - rot) / dir; };\n\n var rad2c, c2rad;\n var rad2t, t2rad;\n\n switch(axType) {\n case 'linear':\n c2rad = rad2c = Lib.identity;\n t2rad = deg2rad;\n rad2t = rad2deg;\n\n // Set the angular range in degrees to make auto-tick computation cleaner,\n // changing rotation/direction should not affect the angular tick value.\n ax.range = Lib.isFullCircle(sectorInRad) ?\n [sector[0], sector[0] + 360] :\n sectorInRad.map(g2rad).map(rad2deg);\n break;\n\n case 'category':\n var catLen = ax._categories.length;\n var _period = ax.period ? Math.max(ax.period, catLen) : catLen;\n\n // fallback in case all categories have been filtered out\n if(_period === 0) _period = 1;\n\n c2rad = t2rad = function(v) { return v * 2 * Math.PI / _period; };\n rad2c = rad2t = function(v) { return v * _period / Math.PI / 2; };\n\n ax.range = [0, _period];\n break;\n }\n\n ax.c2g = function(v) { return rad2g(c2rad(v)); };\n ax.g2c = function(v) { return rad2c(g2rad(v)); };\n\n ax.t2g = function(v) { return rad2g(t2rad(v)); };\n ax.g2t = function(v) { return rad2t(g2rad(v)); };\n };\n}\n\n},{\"../../lib\":515,\"../cartesian/set_convert\":585}],636:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attr: 'subplot',\n name: 'smith',\n\n axisNames: [\n 'realaxis',\n 'imaginaryaxis' // imaginary axis should be second here so that the `tickvals` defaults could be inherited from realaxis\n ],\n axisName2dataArray: {imaginaryaxis: 'imag', realaxis: 'real'},\n};\n\n},{}],637:[function(_dereq_,module,exports){\n'use strict';\n\nfunction sign(x) {\n return (\n x < 0 ? -1 :\n x > 0 ? 1 : 0\n );\n}\n\n// adapted from Mike Bostock's https://observablehq.com/@mbostock/smith-chart\nfunction smith(a) {\n var R = a[0];\n var X = a[1];\n\n if(!isFinite(R) || !isFinite(X)) return [1, 0];\n\n var D = (R + 1) * (R + 1) + X * X;\n return [(R * R + X * X - 1) / D, 2 * X / D];\n}\n\nfunction transform(subplot, a) {\n var x = a[0];\n var y = a[1];\n\n return [\n x * subplot.radius + subplot.cx,\n -y * subplot.radius + subplot.cy\n ];\n}\n\nfunction scale(subplot, r) {\n return r * subplot.radius;\n}\n\nfunction reactanceArc(subplot, X, R1, R2) {\n var t1 = transform(subplot, smith([R1, X]));\n var x1 = t1[0];\n var y1 = t1[1];\n\n var t2 = transform(subplot, smith([R2, X]));\n var x2 = t2[0];\n var y2 = t2[1];\n\n if(X === 0) {\n return [\n 'M' + x1 + ',' + y1,\n 'L' + x2 + ',' + y2\n ].join(' ');\n }\n\n var r = scale(subplot, 1 / Math.abs(X));\n\n return [\n 'M' + x1 + ',' + y1,\n 'A' + r + ',' + r + ' 0 0,' + (X < 0 ? 1 : 0) + ' ' + x2 + ',' + y2\n ].join(' ');\n}\n\nfunction resistanceArc(subplot, R, X1, X2) {\n var r = scale(subplot, 1 / (R + 1));\n\n var t1 = transform(subplot, smith([R, X1]));\n var x1 = t1[0];\n var y1 = t1[1];\n\n var t2 = transform(subplot, smith([R, X2]));\n var x2 = t2[0];\n var y2 = t2[1];\n\n if(sign(X1) !== sign(X2)) {\n var t0 = transform(subplot, smith([R, 0]));\n var x0 = t0[0];\n var y0 = t0[1];\n\n return [\n 'M' + x1 + ',' + y1,\n 'A' + r + ',' + r + ' 0 0,' + (0 < X1 ? 0 : 1) + ' ' + x0 + ',' + y0,\n 'A' + r + ',' + r + ' 0 0,' + (X2 < 0 ? 0 : 1) + x2 + ',' + y2,\n ].join(' ');\n }\n\n return [\n 'M' + x1 + ',' + y1,\n 'A' + r + ',' + r + ' 0 0,' + (X2 < X1 ? 0 : 1) + ' ' + x2 + ',' + y2\n ].join(' ');\n}\n\nmodule.exports = {\n smith: smith,\n reactanceArc: reactanceArc,\n resistanceArc: resistanceArc,\n smithTransform: transform\n};\n\n},{}],638:[function(_dereq_,module,exports){\n'use strict';\n\nvar getSubplotCalcData = _dereq_('../get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\n\nvar createPolar = _dereq_('../polar/polar');\nvar constants = _dereq_('./constants');\n\nvar attr = constants.attr;\nvar name = constants.name;\nvar counter = counterRegex(name);\n\nvar attributes = {};\nattributes[attr] = {\n valType: 'subplotid',\n dflt: name,\n editType: 'calc',\n};\n\nfunction plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var subplotIds = fullLayout._subplots[name];\n\n for(var i = 0; i < subplotIds.length; i++) {\n var id = subplotIds[i];\n var subplotCalcData = getSubplotCalcData(calcData, name, id);\n var subplot = fullLayout[id]._subplot;\n\n if(!subplot) {\n subplot = createPolar(gd, id, true);\n fullLayout[id]._subplot = subplot;\n }\n\n subplot.plot(subplotCalcData, fullLayout, gd._promises);\n }\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldIds = oldFullLayout._subplots[name] || [];\n for(var i = 0; i < oldIds.length; i++) {\n var id = oldIds[i];\n var oldSubplot = oldFullLayout[id]._subplot;\n\n if(!newFullLayout[id] && !!oldSubplot) {\n oldSubplot.framework.remove();\n\n for(var k in oldSubplot.clipPaths) {\n oldSubplot.clipPaths[k].remove();\n }\n }\n }\n}\n\nmodule.exports = {\n attr: attr,\n name: name,\n idRoot: name,\n idRegex: counter,\n attrRegex: counter,\n attributes: attributes,\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n plot: plot,\n clean: clean,\n toSVG: _dereq_('../cartesian').toSVG\n};\n\n},{\"../../lib\":515,\"../cartesian\":578,\"../get_data\":602,\"../polar/polar\":634,\"./constants\":636,\"./layout_attributes\":639,\"./layout_defaults\":640}],639:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axesAttrs = _dereq_('../cartesian/layout_attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar axisLineGridAttr = overrideAll({\n color: axesAttrs.color,\n showline: extendFlat({}, axesAttrs.showline, {dflt: true}),\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: extendFlat({}, axesAttrs.showgrid, {dflt: true}),\n gridcolor: axesAttrs.gridcolor,\n gridwidth: axesAttrs.gridwidth,\n griddash: axesAttrs.griddash\n}, 'plot', 'from-root');\n\nvar axisTickAttrs = overrideAll({\n ticklen: axesAttrs.ticklen,\n tickwidth: extendFlat({}, axesAttrs.tickwidth, {dflt: 2}),\n tickcolor: axesAttrs.tickcolor,\n showticklabels: axesAttrs.showticklabels,\n showtickprefix: axesAttrs.showtickprefix,\n tickprefix: axesAttrs.tickprefix,\n showticksuffix: axesAttrs.showticksuffix,\n ticksuffix: axesAttrs.ticksuffix,\n tickfont: axesAttrs.tickfont,\n tickformat: axesAttrs.tickformat,\n hoverformat: axesAttrs.hoverformat,\n layer: axesAttrs.layer\n}, 'plot', 'from-root');\n\nvar realAxisAttrs = extendFlat({\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n\n tickvals: {\n dflt: [0.2, 0.5, 1, 2, 5],\n valType: 'data_array',\n editType: 'plot',\n },\n\n tickangle: extendFlat({}, axesAttrs.tickangle, {dflt: 90}),\n\n ticks: {\n valType: 'enumerated',\n values: ['top', 'bottom', ''],\n editType: 'ticks',\n },\n\n side: {\n valType: 'enumerated',\n values: ['top', 'bottom'],\n dflt: 'top',\n editType: 'plot',\n },\n\n editType: 'calc',\n}, axisLineGridAttr, axisTickAttrs);\n\nvar imaginaryAxisAttrs = extendFlat({\n visible: extendFlat({}, axesAttrs.visible, {dflt: true}),\n\n tickvals: {\n valType: 'data_array',\n editType: 'plot',\n },\n\n ticks: axesAttrs.ticks,\n\n editType: 'calc'\n}, axisLineGridAttr, axisTickAttrs);\n\nmodule.exports = {\n domain: domainAttrs({name: 'smith', editType: 'plot'}),\n\n bgcolor: {\n valType: 'color',\n editType: 'plot',\n dflt: colorAttrs.background,\n },\n\n realaxis: realAxisAttrs,\n imaginaryaxis: imaginaryAxisAttrs,\n\n editType: 'calc'\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib\":515,\"../../plot_api/edit_types\":548,\"../cartesian/layout_attributes\":579,\"../domain\":593}],640:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar getSubplotData = _dereq_('../get_data').getSubplotData;\n\nvar handlePrefixSuffixDefaults = _dereq_('../cartesian/prefix_suffix_defaults');\nvar handleTickLabelDefaults = _dereq_('../cartesian/tick_label_defaults');\nvar handleLineGridDefaults = _dereq_('../cartesian/line_grid_defaults');\nvar setConvertCartesian = _dereq_('../cartesian/set_convert');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar constants = _dereq_('./constants');\nvar axisNames = constants.axisNames;\n\nvar makeImagDflt = memoize(function(realTickvals) {\n return realTickvals.slice().reverse().map(function(x) { return -x; })\n .concat([0])\n .concat(realTickvals);\n}, String);\n\nfunction handleDefaults(contIn, contOut, coerce, opts) {\n var bgColor = coerce('bgcolor');\n opts.bgColor = Color.combine(bgColor, opts.paper_bgcolor);\n\n var subplotData = getSubplotData(opts.fullData, constants.name, opts.id);\n var layoutOut = opts.layoutOut;\n var axName;\n\n function coerceAxis(attr, dflt) {\n return coerce(axName + '.' + attr, dflt);\n }\n\n for(var i = 0; i < axisNames.length; i++) {\n axName = axisNames[i];\n\n if(!Lib.isPlainObject(contIn[axName])) {\n contIn[axName] = {};\n }\n\n var axIn = contIn[axName];\n var axOut = Template.newContainer(contOut, axName);\n axOut._id = axOut._name = axName;\n axOut._attr = opts.id + '.' + axName;\n axOut._traceIndices = subplotData.map(function(t) { return t._expandedIndex; });\n\n var visible = coerceAxis('visible');\n\n axOut.type = 'linear';\n setConvertCartesian(axOut, layoutOut);\n\n handlePrefixSuffixDefaults(axIn, axOut, coerceAxis, axOut.type);\n\n if(visible) {\n var isRealAxis = axName === 'realaxis';\n if(isRealAxis) coerceAxis('side');\n\n if(isRealAxis) {\n coerceAxis('tickvals');\n } else {\n var imagTickvalsDflt = makeImagDflt(\n contOut.realaxis.tickvals ||\n layoutAttributes.realaxis.tickvals.dflt\n );\n\n coerceAxis('tickvals', imagTickvalsDflt);\n }\n\n var dfltColor;\n var dfltFontColor;\n var dfltFontSize;\n var dfltFontFamily;\n var font = opts.font || {};\n\n if(visible) {\n dfltColor = coerceAxis('color');\n dfltFontColor = (dfltColor === axIn.color) ? dfltColor : font.color;\n dfltFontSize = font.size;\n dfltFontFamily = font.family;\n }\n\n handleTickLabelDefaults(axIn, axOut, coerceAxis, axOut.type, {\n noTicklabelstep: true,\n noAng: !isRealAxis,\n noExp: true,\n font: {\n color: dfltFontColor,\n size: dfltFontSize,\n family: dfltFontFamily\n }\n });\n\n Lib.coerce2(contIn, contOut, layoutAttributes, axName + '.ticklen');\n Lib.coerce2(contIn, contOut, layoutAttributes, axName + '.tickwidth');\n Lib.coerce2(contIn, contOut, layoutAttributes, axName + '.tickcolor', contOut.color);\n var showTicks = coerceAxis('ticks');\n if(!showTicks) {\n delete contOut[axName].ticklen;\n delete contOut[axName].tickwidth;\n delete contOut[axName].tickcolor;\n }\n\n handleLineGridDefaults(axIn, axOut, coerceAxis, {\n dfltColor: dfltColor,\n bgColor: opts.bgColor,\n // default grid color is darker here (60%, vs cartesian default ~91%)\n // because the grid is not square so the eye needs heavier cues to follow\n blend: 60,\n showLine: true,\n showGrid: true,\n noZeroLine: true,\n attributes: layoutAttributes[axName]\n });\n\n coerceAxis('layer');\n }\n\n coerceAxis('hoverformat');\n\n delete axOut.type;\n\n axOut._input = axIn;\n }\n}\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n noUirevision: true,\n type: constants.name,\n attributes: layoutAttributes,\n handleDefaults: handleDefaults,\n font: layoutOut.font,\n paper_bgcolor: layoutOut.paper_bgcolor,\n fullData: fullData,\n layoutOut: layoutOut\n });\n};\n\nfunction memoize(fn, keyFn) {\n var cache = {};\n return function(val) {\n var newKey = keyFn ? keyFn(val) : val;\n if(newKey in cache) { return cache[newKey]; }\n\n var out = fn(val);\n cache[newKey] = out;\n return out;\n };\n}\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../cartesian/line_grid_defaults\":581,\"../cartesian/prefix_suffix_defaults\":583,\"../cartesian/set_convert\":585,\"../cartesian/tick_label_defaults\":587,\"../get_data\":602,\"../subplot_defaults\":641,\"./constants\":636,\"./layout_attributes\":639}],641:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Template = _dereq_('../plot_api/plot_template');\nvar handleDomainDefaults = _dereq_('./domain').defaults;\n\n\n/**\n * Find and supply defaults to all subplots of a given type\n * This handles subplots that are contained within one container - so\n * gl3d, geo, ternary... but not 2d axes which have separate x and y axes\n * finds subplots, coerces their `domain` attributes, then calls the\n * given handleDefaults function to fill in everything else.\n *\n * layoutIn: the complete user-supplied input layout\n * layoutOut: the complete finished layout\n * fullData: the finished data array, used only to find subplots\n * opts: {\n * type: subplot type string\n * attributes: subplot attributes object\n * partition: 'x' or 'y', which direction to divide domain space by default\n * (default 'x', ie side-by-side subplots)\n * TODO: this option is only here because 3D and geo made opposite\n * choices in this regard previously and I didn't want to change it.\n * Instead we should do:\n * - something consistent\n * - something more square (4 cuts 2x2, 5/6 cuts 2x3, etc.)\n * - something that includes all subplot types in one arrangement,\n * now that we can have them together!\n * handleDefaults: function of (subplotLayoutIn, subplotLayoutOut, coerce, opts)\n * this opts object is passed through to handleDefaults, so attach any\n * additional items needed by this function here as well\n * }\n */\nmodule.exports = function handleSubplotDefaults(layoutIn, layoutOut, fullData, opts) {\n var subplotType = opts.type;\n var subplotAttributes = opts.attributes;\n var handleDefaults = opts.handleDefaults;\n var partition = opts.partition || 'x';\n\n var ids = layoutOut._subplots[subplotType];\n var idsLength = ids.length;\n\n var baseId = idsLength && ids[0].replace(/\\d+$/, '');\n\n var subplotLayoutIn, subplotLayoutOut;\n\n function coerce(attr, dflt) {\n return Lib.coerce(subplotLayoutIn, subplotLayoutOut, subplotAttributes, attr, dflt);\n }\n\n for(var i = 0; i < idsLength; i++) {\n var id = ids[i];\n\n // ternary traces get a layout ternary for free!\n if(layoutIn[id]) subplotLayoutIn = layoutIn[id];\n else subplotLayoutIn = layoutIn[id] = {};\n\n subplotLayoutOut = Template.newContainer(layoutOut, id, baseId);\n\n if(!opts.noUirevision) coerce('uirevision', layoutOut.uirevision);\n\n var dfltDomains = {};\n dfltDomains[partition] = [i / idsLength, (i + 1) / idsLength];\n handleDomainDefaults(subplotLayoutOut, layoutOut, coerce, dfltDomains);\n\n opts.id = id;\n handleDefaults(subplotLayoutIn, subplotLayoutOut, coerce, opts);\n }\n};\n\n},{\"../lib\":515,\"../plot_api/plot_template\":555,\"./domain\":593}],642:[function(_dereq_,module,exports){\n'use strict';\n\nvar docs = _dereq_('../constants/docs');\nvar FORMAT_LINK = docs.FORMAT_LINK;\nvar DATE_FORMAT_LINK = docs.DATE_FORMAT_LINK;\n\nfunction templateFormatStringDescription(opts) {\n var supportOther = opts && opts.supportOther;\n\n return [\n 'Variables are inserted using %{variable},',\n 'for example \"y: %{y}\"' + (\n supportOther ?\n ' as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.' :\n '.'\n ),\n 'Numbers are formatted using d3-format\\'s syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\".',\n FORMAT_LINK,\n 'for details on the formatting syntax.',\n 'Dates are formatted using d3-time-format\\'s syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\".',\n DATE_FORMAT_LINK,\n 'for details on the date formatting syntax.'\n ].join(' ');\n}\n\nfunction describeVariables(extra) {\n var descPart = extra.description ? ' ' + extra.description : '';\n var keys = extra.keys || [];\n if(keys.length > 0) {\n var quotedKeys = [];\n for(var i = 0; i < keys.length; i++) {\n quotedKeys[i] = '`' + keys[i] + '`';\n }\n descPart = descPart + 'Finally, the template string has access to ';\n if(keys.length === 1) {\n descPart = 'variable ' + quotedKeys[0];\n } else {\n descPart = 'variables ' + quotedKeys.slice(0, -1).join(', ') + ' and ' + quotedKeys.slice(-1) + '.';\n }\n }\n return descPart;\n}\n\nexports.hovertemplateAttrs = function(opts, extra) {\n opts = opts || {};\n extra = extra || {};\n\n var descPart = describeVariables(extra);\n\n var hovertemplate = {\n valType: 'string',\n dflt: '',\n editType: opts.editType || 'none',\n };\n\n if(opts.arrayOk !== false) {\n hovertemplate.arrayOk = true;\n }\n\n return hovertemplate;\n};\n\nexports.texttemplateAttrs = function(opts, extra) {\n opts = opts || {};\n extra = extra || {};\n\n var descPart = describeVariables(extra);\n\n var texttemplate = {\n valType: 'string',\n dflt: '',\n editType: opts.editType || 'calc',\n };\n\n if(opts.arrayOk !== false) {\n texttemplate.arrayOk = true;\n }\n return texttemplate;\n};\n\n},{\"../constants/docs\":486}],643:[function(_dereq_,module,exports){\n'use strict';\n\nvar Ternary = _dereq_('./ternary');\n\nvar getSubplotCalcData = _dereq_('../../plots/get_data').getSubplotCalcData;\nvar counterRegex = _dereq_('../../lib').counterRegex;\nvar TERNARY = 'ternary';\n\nexports.name = TERNARY;\n\nvar attr = exports.attr = 'subplot';\n\nexports.idRoot = TERNARY;\n\nexports.idRegex = exports.attrRegex = counterRegex(TERNARY);\n\nvar attributes = exports.attributes = {};\nattributes[attr] = {\n valType: 'subplotid',\n dflt: 'ternary',\n editType: 'calc',\n};\n\nexports.layoutAttributes = _dereq_('./layout_attributes');\n\nexports.supplyLayoutDefaults = _dereq_('./layout_defaults');\n\nexports.plot = function plot(gd) {\n var fullLayout = gd._fullLayout;\n var calcData = gd.calcdata;\n var ternaryIds = fullLayout._subplots[TERNARY];\n\n for(var i = 0; i < ternaryIds.length; i++) {\n var ternaryId = ternaryIds[i];\n var ternaryCalcData = getSubplotCalcData(calcData, TERNARY, ternaryId);\n var ternary = fullLayout[ternaryId]._subplot;\n\n // If ternary is not instantiated, create one!\n if(!ternary) {\n ternary = new Ternary({\n id: ternaryId,\n graphDiv: gd,\n container: fullLayout._ternarylayer.node()\n },\n fullLayout\n );\n\n fullLayout[ternaryId]._subplot = ternary;\n }\n\n ternary.plot(ternaryCalcData, fullLayout, gd._promises);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var oldTernaryKeys = oldFullLayout._subplots[TERNARY] || [];\n\n for(var i = 0; i < oldTernaryKeys.length; i++) {\n var oldTernaryKey = oldTernaryKeys[i];\n var oldTernary = oldFullLayout[oldTernaryKey]._subplot;\n\n if(!newFullLayout[oldTernaryKey] && !!oldTernary) {\n oldTernary.plotContainer.remove();\n oldTernary.clipDef.remove();\n oldTernary.clipDefRelative.remove();\n oldTernary.layers['a-title'].remove();\n oldTernary.layers['b-title'].remove();\n oldTernary.layers['c-title'].remove();\n }\n }\n};\n\n},{\"../../lib\":515,\"../../plots/get_data\":602,\"./layout_attributes\":644,\"./layout_defaults\":645,\"./ternary\":646}],644:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar domainAttrs = _dereq_('../domain').attributes;\nvar axesAttrs = _dereq_('../cartesian/layout_attributes');\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar ternaryAxesAttrs = {\n title: {\n text: axesAttrs.title.text,\n font: axesAttrs.title.font\n // TODO does standoff here make sense?\n },\n color: axesAttrs.color,\n // ticks\n tickmode: axesAttrs.tickmode,\n nticks: extendFlat({}, axesAttrs.nticks, {dflt: 6, min: 1}),\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: axesAttrs.ticks,\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n ticklabelstep: axesAttrs.ticklabelstep,\n showticklabels: axesAttrs.showticklabels,\n showtickprefix: axesAttrs.showtickprefix,\n tickprefix: axesAttrs.tickprefix,\n showticksuffix: axesAttrs.showticksuffix,\n ticksuffix: axesAttrs.ticksuffix,\n showexponent: axesAttrs.showexponent,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n separatethousands: axesAttrs.separatethousands,\n tickfont: axesAttrs.tickfont,\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n hoverformat: axesAttrs.hoverformat,\n // lines and grids\n showline: extendFlat({}, axesAttrs.showline, {dflt: true}),\n linecolor: axesAttrs.linecolor,\n linewidth: axesAttrs.linewidth,\n showgrid: extendFlat({}, axesAttrs.showgrid, {dflt: true}),\n gridcolor: axesAttrs.gridcolor,\n gridwidth: axesAttrs.gridwidth,\n griddash: axesAttrs.griddash,\n layer: axesAttrs.layer,\n // range\n min: {\n valType: 'number',\n dflt: 0,\n min: 0,\n },\n _deprecated: {\n title: axesAttrs._deprecated.title,\n titlefont: axesAttrs._deprecated.titlefont\n }\n};\n\nvar attrs = module.exports = overrideAll({\n domain: domainAttrs({name: 'ternary'}),\n\n bgcolor: {\n valType: 'color',\n dflt: colorAttrs.background,\n },\n sum: {\n valType: 'number',\n dflt: 1,\n min: 0,\n },\n aaxis: ternaryAxesAttrs,\n baxis: ternaryAxesAttrs,\n caxis: ternaryAxesAttrs\n}, 'plot', 'from-root');\n\n// set uirevisions outside of `overrideAll` so we can get `editType: none`\nattrs.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\nattrs.aaxis.uirevision = attrs.baxis.uirevision = attrs.caxis.uirevision = {\n valType: 'any',\n editType: 'none',\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../cartesian/layout_attributes\":579,\"../domain\":593}],645:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar Lib = _dereq_('../../lib');\n\nvar handleSubplotDefaults = _dereq_('../subplot_defaults');\nvar handleTickLabelDefaults = _dereq_('../cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../cartesian/prefix_suffix_defaults');\nvar handleTickMarkDefaults = _dereq_('../cartesian/tick_mark_defaults');\nvar handleTickValueDefaults = _dereq_('../cartesian/tick_value_defaults');\nvar handleLineGridDefaults = _dereq_('../cartesian/line_grid_defaults');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nvar axesNames = ['aaxis', 'baxis', 'caxis'];\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n handleSubplotDefaults(layoutIn, layoutOut, fullData, {\n type: 'ternary',\n attributes: layoutAttributes,\n handleDefaults: handleTernaryDefaults,\n font: layoutOut.font,\n paper_bgcolor: layoutOut.paper_bgcolor\n });\n};\n\nfunction handleTernaryDefaults(ternaryLayoutIn, ternaryLayoutOut, coerce, options) {\n var bgColor = coerce('bgcolor');\n var sum = coerce('sum');\n options.bgColor = Color.combine(bgColor, options.paper_bgcolor);\n var axName, containerIn, containerOut;\n\n // TODO: allow most (if not all) axis attributes to be set\n // in the outer container and used as defaults in the individual axes?\n\n for(var j = 0; j < axesNames.length; j++) {\n axName = axesNames[j];\n containerIn = ternaryLayoutIn[axName] || {};\n containerOut = Template.newContainer(ternaryLayoutOut, axName);\n containerOut._name = axName;\n\n handleAxisDefaults(containerIn, containerOut, options, ternaryLayoutOut);\n }\n\n // if the min values contradict each other, set them all to default (0)\n // and delete *all* the inputs so the user doesn't get confused later by\n // changing one and having them all change.\n var aaxis = ternaryLayoutOut.aaxis;\n var baxis = ternaryLayoutOut.baxis;\n var caxis = ternaryLayoutOut.caxis;\n if(aaxis.min + baxis.min + caxis.min >= sum) {\n aaxis.min = 0;\n baxis.min = 0;\n caxis.min = 0;\n if(ternaryLayoutIn.aaxis) delete ternaryLayoutIn.aaxis.min;\n if(ternaryLayoutIn.baxis) delete ternaryLayoutIn.baxis.min;\n if(ternaryLayoutIn.caxis) delete ternaryLayoutIn.caxis.min;\n }\n}\n\nfunction handleAxisDefaults(containerIn, containerOut, options, ternaryLayoutOut) {\n var axAttrs = layoutAttributes[containerOut._name];\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, axAttrs, attr, dflt);\n }\n\n coerce('uirevision', ternaryLayoutOut.uirevision);\n\n containerOut.type = 'linear'; // no other types allowed for ternary\n\n var dfltColor = coerce('color');\n // if axis.color was provided, use it for fonts too; otherwise,\n // inherit from global font color in case that was provided.\n var dfltFontColor = (dfltColor !== axAttrs.color.dflt) ? dfltColor : options.font.color;\n\n var axName = containerOut._name;\n var letterUpper = axName.charAt(0).toUpperCase();\n var dfltTitle = 'Component ' + letterUpper;\n\n var title = coerce('title.text', dfltTitle);\n containerOut._hovertitle = title === dfltTitle ? title : letterUpper;\n\n Lib.coerceFont(coerce, 'title.font', {\n family: options.font.family,\n size: Lib.bigFont(options.font.size),\n color: dfltFontColor\n });\n\n // range is just set by 'min' - max is determined by the other axes mins\n coerce('min');\n\n handleTickValueDefaults(containerIn, containerOut, coerce, 'linear');\n handlePrefixSuffixDefaults(containerIn, containerOut, coerce, 'linear');\n handleTickLabelDefaults(containerIn, containerOut, coerce, 'linear');\n handleTickMarkDefaults(containerIn, containerOut, coerce,\n { outerTicks: true });\n\n var showTickLabels = coerce('showticklabels');\n if(showTickLabels) {\n Lib.coerceFont(coerce, 'tickfont', {\n family: options.font.family,\n size: options.font.size,\n color: dfltFontColor\n });\n coerce('tickangle');\n coerce('tickformat');\n }\n\n handleLineGridDefaults(containerIn, containerOut, coerce, {\n dfltColor: dfltColor,\n bgColor: options.bgColor,\n // default grid color is darker here (60%, vs cartesian default ~91%)\n // because the grid is not square so the eye needs heavier cues to follow\n blend: 60,\n showLine: true,\n showGrid: true,\n noZeroLine: true,\n attributes: axAttrs\n });\n\n coerce('hoverformat');\n coerce('layer');\n}\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../cartesian/line_grid_defaults\":581,\"../cartesian/prefix_suffix_defaults\":583,\"../cartesian/tick_label_defaults\":587,\"../cartesian/tick_mark_defaults\":588,\"../cartesian/tick_value_defaults\":589,\"../subplot_defaults\":641,\"./layout_attributes\":644}],646:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar _ = Lib._;\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar setConvert = _dereq_('../cartesian/set_convert');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar Plots = _dereq_('../plots');\nvar Axes = _dereq_('../cartesian/axes');\nvar dragElement = _dereq_('../../components/dragelement');\nvar Fx = _dereq_('../../components/fx');\nvar dragHelpers = _dereq_('../../components/dragelement/helpers');\nvar freeMode = dragHelpers.freeMode;\nvar rectMode = dragHelpers.rectMode;\nvar Titles = _dereq_('../../components/titles');\nvar prepSelect = _dereq_('../../components/selections').prepSelect;\nvar selectOnClick = _dereq_('../../components/selections').selectOnClick;\nvar clearOutline = _dereq_('../../components/selections').clearOutline;\nvar clearSelectionsCache = _dereq_('../../components/selections').clearSelectionsCache;\nvar constants = _dereq_('../cartesian/constants');\n\nfunction Ternary(options, fullLayout) {\n this.id = options.id;\n this.graphDiv = options.graphDiv;\n this.init(fullLayout);\n this.makeFramework(fullLayout);\n\n // unfortunately, we have to keep track of some axis tick settings\n // as ternary subplots do not implement the 'ticks' editType\n this.aTickLayout = null;\n this.bTickLayout = null;\n this.cTickLayout = null;\n}\n\nmodule.exports = Ternary;\n\nvar proto = Ternary.prototype;\n\nproto.init = function(fullLayout) {\n this.container = fullLayout._ternarylayer;\n this.defs = fullLayout._defs;\n this.layoutId = fullLayout._uid;\n this.traceHash = {};\n this.layers = {};\n};\n\nproto.plot = function(ternaryCalcData, fullLayout) {\n var _this = this;\n var ternaryLayout = fullLayout[_this.id];\n var graphSize = fullLayout._size;\n\n _this._hasClipOnAxisFalse = false;\n for(var i = 0; i < ternaryCalcData.length; i++) {\n var trace = ternaryCalcData[i][0].trace;\n\n if(trace.cliponaxis === false) {\n _this._hasClipOnAxisFalse = true;\n break;\n }\n }\n\n _this.updateLayers(ternaryLayout);\n _this.adjustLayout(ternaryLayout, graphSize);\n Plots.generalUpdatePerTraceModule(_this.graphDiv, _this, ternaryCalcData, ternaryLayout);\n _this.layers.plotbg.select('path').call(Color.fill, ternaryLayout.bgcolor);\n};\n\nproto.makeFramework = function(fullLayout) {\n var _this = this;\n var gd = _this.graphDiv;\n var ternaryLayout = fullLayout[_this.id];\n\n var clipId = _this.clipId = 'clip' + _this.layoutId + _this.id;\n var clipIdRelative = _this.clipIdRelative = 'clip-relative' + _this.layoutId + _this.id;\n\n // clippath for this ternary subplot\n _this.clipDef = Lib.ensureSingleById(fullLayout._clips, 'clipPath', clipId, function(s) {\n s.append('path').attr('d', 'M0,0Z');\n });\n\n // 'relative' clippath (i.e. no translation) for this ternary subplot\n _this.clipDefRelative = Lib.ensureSingleById(fullLayout._clips, 'clipPath', clipIdRelative, function(s) {\n s.append('path').attr('d', 'M0,0Z');\n });\n\n // container for everything in this ternary subplot\n _this.plotContainer = Lib.ensureSingle(_this.container, 'g', _this.id);\n _this.updateLayers(ternaryLayout);\n\n Drawing.setClipUrl(_this.layers.backplot, clipId, gd);\n Drawing.setClipUrl(_this.layers.grids, clipId, gd);\n};\n\nproto.updateLayers = function(ternaryLayout) {\n var _this = this;\n var layers = _this.layers;\n\n // inside that container, we have one container for the data, and\n // one each for the three axes around it.\n\n var plotLayers = ['draglayer', 'plotbg', 'backplot', 'grids'];\n\n if(ternaryLayout.aaxis.layer === 'below traces') {\n plotLayers.push('aaxis', 'aline');\n }\n if(ternaryLayout.baxis.layer === 'below traces') {\n plotLayers.push('baxis', 'bline');\n }\n if(ternaryLayout.caxis.layer === 'below traces') {\n plotLayers.push('caxis', 'cline');\n }\n\n plotLayers.push('frontplot');\n\n if(ternaryLayout.aaxis.layer === 'above traces') {\n plotLayers.push('aaxis', 'aline');\n }\n if(ternaryLayout.baxis.layer === 'above traces') {\n plotLayers.push('baxis', 'bline');\n }\n if(ternaryLayout.caxis.layer === 'above traces') {\n plotLayers.push('caxis', 'cline');\n }\n\n var toplevel = _this.plotContainer.selectAll('g.toplevel')\n .data(plotLayers, String);\n\n var grids = ['agrid', 'bgrid', 'cgrid'];\n\n toplevel.enter().append('g')\n .attr('class', function(d) { return 'toplevel ' + d; })\n .each(function(d) {\n var s = d3.select(this);\n layers[d] = s;\n\n // containers for different trace types.\n // NOTE - this is different from cartesian, where all traces\n // are in front of grids. Here I'm putting maps behind the grids\n // so the grids will always be visible if they're requested.\n // Perhaps we want that for cartesian too?\n if(d === 'frontplot') {\n s.append('g').classed('scatterlayer', true);\n } else if(d === 'backplot') {\n s.append('g').classed('maplayer', true);\n } else if(d === 'plotbg') {\n s.append('path').attr('d', 'M0,0Z');\n } else if(d === 'aline' || d === 'bline' || d === 'cline') {\n s.append('path');\n } else if(d === 'grids') {\n grids.forEach(function(d) {\n layers[d] = s.append('g').classed('grid ' + d, true);\n });\n }\n });\n\n toplevel.order();\n};\n\nvar whRatio = Math.sqrt(4 / 3);\n\nproto.adjustLayout = function(ternaryLayout, graphSize) {\n var _this = this;\n var domain = ternaryLayout.domain;\n var xDomainCenter = (domain.x[0] + domain.x[1]) / 2;\n var yDomainCenter = (domain.y[0] + domain.y[1]) / 2;\n var xDomain = domain.x[1] - domain.x[0];\n var yDomain = domain.y[1] - domain.y[0];\n var wmax = xDomain * graphSize.w;\n var hmax = yDomain * graphSize.h;\n var sum = ternaryLayout.sum;\n var amin = ternaryLayout.aaxis.min;\n var bmin = ternaryLayout.baxis.min;\n var cmin = ternaryLayout.caxis.min;\n\n var x0, y0, w, h, xDomainFinal, yDomainFinal;\n\n if(wmax > whRatio * hmax) {\n h = hmax;\n w = h * whRatio;\n } else {\n w = wmax;\n h = w / whRatio;\n }\n\n xDomainFinal = xDomain * w / wmax;\n yDomainFinal = yDomain * h / hmax;\n\n x0 = graphSize.l + graphSize.w * xDomainCenter - w / 2;\n y0 = graphSize.t + graphSize.h * (1 - yDomainCenter) - h / 2;\n\n _this.x0 = x0;\n _this.y0 = y0;\n _this.w = w;\n _this.h = h;\n _this.sum = sum;\n\n // set up the x and y axis objects we'll use to lay out the points\n _this.xaxis = {\n type: 'linear',\n range: [amin + 2 * cmin - sum, sum - amin - 2 * bmin],\n domain: [\n xDomainCenter - xDomainFinal / 2,\n xDomainCenter + xDomainFinal / 2\n ],\n _id: 'x'\n };\n setConvert(_this.xaxis, _this.graphDiv._fullLayout);\n _this.xaxis.setScale();\n _this.xaxis.isPtWithinRange = function(d) {\n return (\n d.a >= _this.aaxis.range[0] &&\n d.a <= _this.aaxis.range[1] &&\n d.b >= _this.baxis.range[1] &&\n d.b <= _this.baxis.range[0] &&\n d.c >= _this.caxis.range[1] &&\n d.c <= _this.caxis.range[0]\n );\n };\n\n _this.yaxis = {\n type: 'linear',\n range: [amin, sum - bmin - cmin],\n domain: [\n yDomainCenter - yDomainFinal / 2,\n yDomainCenter + yDomainFinal / 2\n ],\n _id: 'y'\n };\n setConvert(_this.yaxis, _this.graphDiv._fullLayout);\n _this.yaxis.setScale();\n _this.yaxis.isPtWithinRange = function() { return true; };\n\n // set up the modified axes for tick drawing\n var yDomain0 = _this.yaxis.domain[0];\n\n // aaxis goes up the left side. Set it up as a y axis, but with\n // fictitious angles and domain, but then rotate and translate\n // it into place at the end\n var aaxis = _this.aaxis = extendFlat({}, ternaryLayout.aaxis, {\n range: [amin, sum - bmin - cmin],\n side: 'left',\n // tickangle = 'auto' means 0 anyway for a y axis, need to coerce to 0 here\n // so we can shift by 30.\n tickangle: (+ternaryLayout.aaxis.tickangle || 0) - 30,\n domain: [yDomain0, yDomain0 + yDomainFinal * whRatio],\n anchor: 'free',\n position: 0,\n _id: 'y',\n _length: w\n });\n setConvert(aaxis, _this.graphDiv._fullLayout);\n aaxis.setScale();\n\n // baxis goes across the bottom (backward). We can set it up as an x axis\n // without any enclosing transformation.\n var baxis = _this.baxis = extendFlat({}, ternaryLayout.baxis, {\n range: [sum - amin - cmin, bmin],\n side: 'bottom',\n domain: _this.xaxis.domain,\n anchor: 'free',\n position: 0,\n _id: 'x',\n _length: w\n });\n setConvert(baxis, _this.graphDiv._fullLayout);\n baxis.setScale();\n\n // caxis goes down the right side. Set it up as a y axis, with\n // post-transformation similar to aaxis\n var caxis = _this.caxis = extendFlat({}, ternaryLayout.caxis, {\n range: [sum - amin - bmin, cmin],\n side: 'right',\n tickangle: (+ternaryLayout.caxis.tickangle || 0) + 30,\n domain: [yDomain0, yDomain0 + yDomainFinal * whRatio],\n anchor: 'free',\n position: 0,\n _id: 'y',\n _length: w\n });\n setConvert(caxis, _this.graphDiv._fullLayout);\n caxis.setScale();\n\n var triangleClip = 'M' + x0 + ',' + (y0 + h) + 'h' + w + 'l-' + (w / 2) + ',-' + h + 'Z';\n _this.clipDef.select('path').attr('d', triangleClip);\n _this.layers.plotbg.select('path').attr('d', triangleClip);\n\n var triangleClipRelative = 'M0,' + h + 'h' + w + 'l-' + (w / 2) + ',-' + h + 'Z';\n _this.clipDefRelative.select('path').attr('d', triangleClipRelative);\n\n var plotTransform = strTranslate(x0, y0);\n _this.plotContainer.selectAll('.scatterlayer,.maplayer')\n .attr('transform', plotTransform);\n\n _this.clipDefRelative.select('path').attr('transform', null);\n\n // TODO: shift axes to accommodate linewidth*sin(30) tick mark angle\n\n // TODO: there's probably an easier way to handle these translations/offsets now...\n var bTransform = strTranslate(x0 - baxis._offset, y0 + h);\n\n _this.layers.baxis.attr('transform', bTransform);\n _this.layers.bgrid.attr('transform', bTransform);\n\n var aTransform = strTranslate(x0 + w / 2, y0) +\n 'rotate(30)' + strTranslate(0, -aaxis._offset);\n _this.layers.aaxis.attr('transform', aTransform);\n _this.layers.agrid.attr('transform', aTransform);\n\n var cTransform = strTranslate(x0 + w / 2, y0) +\n 'rotate(-30)' + strTranslate(0, -caxis._offset);\n _this.layers.caxis.attr('transform', cTransform);\n _this.layers.cgrid.attr('transform', cTransform);\n\n _this.drawAxes(true);\n\n _this.layers.aline.select('path')\n .attr('d', aaxis.showline ?\n 'M' + x0 + ',' + (y0 + h) + 'l' + (w / 2) + ',-' + h : 'M0,0')\n .call(Color.stroke, aaxis.linecolor || '#000')\n .style('stroke-width', (aaxis.linewidth || 0) + 'px');\n _this.layers.bline.select('path')\n .attr('d', baxis.showline ?\n 'M' + x0 + ',' + (y0 + h) + 'h' + w : 'M0,0')\n .call(Color.stroke, baxis.linecolor || '#000')\n .style('stroke-width', (baxis.linewidth || 0) + 'px');\n _this.layers.cline.select('path')\n .attr('d', caxis.showline ?\n 'M' + (x0 + w / 2) + ',' + y0 + 'l' + (w / 2) + ',' + h : 'M0,0')\n .call(Color.stroke, caxis.linecolor || '#000')\n .style('stroke-width', (caxis.linewidth || 0) + 'px');\n\n if(!_this.graphDiv._context.staticPlot) {\n _this.initInteractions();\n }\n\n Drawing.setClipUrl(\n _this.layers.frontplot,\n _this._hasClipOnAxisFalse ? null : _this.clipId,\n _this.graphDiv\n );\n};\n\nproto.drawAxes = function(doTitles) {\n var _this = this;\n var gd = _this.graphDiv;\n var titlesuffix = _this.id.substr(7) + 'title';\n var layers = _this.layers;\n var aaxis = _this.aaxis;\n var baxis = _this.baxis;\n var caxis = _this.caxis;\n\n _this.drawAx(aaxis);\n _this.drawAx(baxis);\n _this.drawAx(caxis);\n\n if(doTitles) {\n var apad = Math.max(aaxis.showticklabels ? aaxis.tickfont.size / 2 : 0,\n (caxis.showticklabels ? caxis.tickfont.size * 0.75 : 0) +\n (caxis.ticks === 'outside' ? caxis.ticklen * 0.87 : 0));\n var bpad = (baxis.showticklabels ? baxis.tickfont.size : 0) +\n (baxis.ticks === 'outside' ? baxis.ticklen : 0) + 3;\n\n layers['a-title'] = Titles.draw(gd, 'a' + titlesuffix, {\n propContainer: aaxis,\n propName: _this.id + '.aaxis.title',\n placeholder: _(gd, 'Click to enter Component A title'),\n attributes: {\n x: _this.x0 + _this.w / 2,\n y: _this.y0 - aaxis.title.font.size / 3 - apad,\n 'text-anchor': 'middle'\n }\n });\n layers['b-title'] = Titles.draw(gd, 'b' + titlesuffix, {\n propContainer: baxis,\n propName: _this.id + '.baxis.title',\n placeholder: _(gd, 'Click to enter Component B title'),\n attributes: {\n x: _this.x0 - bpad,\n y: _this.y0 + _this.h + baxis.title.font.size * 0.83 + bpad,\n 'text-anchor': 'middle'\n }\n });\n layers['c-title'] = Titles.draw(gd, 'c' + titlesuffix, {\n propContainer: caxis,\n propName: _this.id + '.caxis.title',\n placeholder: _(gd, 'Click to enter Component C title'),\n attributes: {\n x: _this.x0 + _this.w + bpad,\n y: _this.y0 + _this.h + caxis.title.font.size * 0.83 + bpad,\n 'text-anchor': 'middle'\n }\n });\n }\n};\n\nproto.drawAx = function(ax) {\n var _this = this;\n var gd = _this.graphDiv;\n var axName = ax._name;\n var axLetter = axName.charAt(0);\n var axId = ax._id;\n var axLayer = _this.layers[axName];\n var counterAngle = 30;\n\n var stashKey = axLetter + 'tickLayout';\n var newTickLayout = strTickLayout(ax);\n if(_this[stashKey] !== newTickLayout) {\n axLayer.selectAll('.' + axId + 'tick').remove();\n _this[stashKey] = newTickLayout;\n }\n\n ax.setScale();\n\n var vals = Axes.calcTicks(ax);\n var valsClipped = Axes.clipEnds(ax, vals);\n var transFn = Axes.makeTransTickFn(ax);\n var tickSign = Axes.getTickSigns(ax)[2];\n\n var caRad = Lib.deg2rad(counterAngle);\n var pad = tickSign * (ax.linewidth || 1) / 2;\n var len = tickSign * ax.ticklen;\n var w = _this.w;\n var h = _this.h;\n\n var tickPath = axLetter === 'b' ?\n 'M0,' + pad + 'l' + (Math.sin(caRad) * len) + ',' + (Math.cos(caRad) * len) :\n 'M' + pad + ',0l' + (Math.cos(caRad) * len) + ',' + (-Math.sin(caRad) * len);\n\n var gridPath = {\n a: 'M0,0l' + h + ',-' + (w / 2),\n b: 'M0,0l-' + (w / 2) + ',-' + h,\n c: 'M0,0l-' + h + ',' + (w / 2)\n }[axLetter];\n\n Axes.drawTicks(gd, ax, {\n vals: ax.ticks === 'inside' ? valsClipped : vals,\n layer: axLayer,\n path: tickPath,\n transFn: transFn,\n crisp: false\n });\n\n Axes.drawGrid(gd, ax, {\n vals: valsClipped,\n layer: _this.layers[axLetter + 'grid'],\n path: gridPath,\n transFn: transFn,\n crisp: false\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axLayer,\n transFn: transFn,\n labelFns: Axes.makeLabelFns(ax, 0, counterAngle)\n });\n};\n\nfunction strTickLayout(axLayout) {\n return axLayout.ticks + String(axLayout.ticklen) + String(axLayout.showticklabels);\n}\n\n// hard coded paths for zoom corners\n// uses the same sizing as cartesian, length is MINZOOM/2, width is 3px\nvar CLEN = constants.MINZOOM / 2 + 0.87;\nvar BLPATH = 'm-0.87,.5h' + CLEN + 'v3h-' + (CLEN + 5.2) +\n 'l' + (CLEN / 2 + 2.6) + ',-' + (CLEN * 0.87 + 4.5) +\n 'l2.6,1.5l-' + (CLEN / 2) + ',' + (CLEN * 0.87) + 'Z';\nvar BRPATH = 'm0.87,.5h-' + CLEN + 'v3h' + (CLEN + 5.2) +\n 'l-' + (CLEN / 2 + 2.6) + ',-' + (CLEN * 0.87 + 4.5) +\n 'l-2.6,1.5l' + (CLEN / 2) + ',' + (CLEN * 0.87) + 'Z';\nvar TOPPATH = 'm0,1l' + (CLEN / 2) + ',' + (CLEN * 0.87) +\n 'l2.6,-1.5l-' + (CLEN / 2 + 2.6) + ',-' + (CLEN * 0.87 + 4.5) +\n 'l-' + (CLEN / 2 + 2.6) + ',' + (CLEN * 0.87 + 4.5) +\n 'l2.6,1.5l' + (CLEN / 2) + ',-' + (CLEN * 0.87) + 'Z';\nvar STARTMARKER = 'm0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z';\n\n// I guess this could be shared with cartesian... but for now it's separate.\nvar SHOWZOOMOUTTIP = true;\n\nproto.clearOutline = function() {\n clearSelectionsCache(this.dragOptions);\n clearOutline(this.dragOptions.gd);\n};\n\nproto.initInteractions = function() {\n var _this = this;\n var dragger = _this.layers.plotbg.select('path').node();\n var gd = _this.graphDiv;\n var zoomLayer = gd._fullLayout._zoomlayer;\n var scaleX;\n var scaleY;\n\n // use plotbg for the main interactions\n this.dragOptions = {\n element: dragger,\n gd: gd,\n plotinfo: {\n id: _this.id,\n domain: gd._fullLayout[_this.id].domain,\n xaxis: _this.xaxis,\n yaxis: _this.yaxis\n },\n subplot: _this.id,\n prepFn: function(e, startX, startY) {\n // these aren't available yet when initInteractions\n // is called\n _this.dragOptions.xaxes = [_this.xaxis];\n _this.dragOptions.yaxes = [_this.yaxis];\n\n scaleX = gd._fullLayout._invScaleX;\n scaleY = gd._fullLayout._invScaleY;\n\n var dragModeNow = _this.dragOptions.dragmode = gd._fullLayout.dragmode;\n\n if(freeMode(dragModeNow)) _this.dragOptions.minDrag = 1;\n else _this.dragOptions.minDrag = undefined;\n\n if(dragModeNow === 'zoom') {\n _this.dragOptions.moveFn = zoomMove;\n _this.dragOptions.clickFn = clickZoomPan;\n _this.dragOptions.doneFn = zoomDone;\n zoomPrep(e, startX, startY);\n } else if(dragModeNow === 'pan') {\n _this.dragOptions.moveFn = plotDrag;\n _this.dragOptions.clickFn = clickZoomPan;\n _this.dragOptions.doneFn = dragDone;\n panPrep();\n _this.clearOutline(gd);\n } else if(rectMode(dragModeNow) || freeMode(dragModeNow)) {\n prepSelect(e, startX, startY, _this.dragOptions, dragModeNow);\n }\n }\n };\n\n var x0, y0, mins0, span0, mins, lum, path0, dimmed, zb, corners;\n\n function makeUpdate(_mins) {\n var attrs = {};\n attrs[_this.id + '.aaxis.min'] = _mins.a;\n attrs[_this.id + '.baxis.min'] = _mins.b;\n attrs[_this.id + '.caxis.min'] = _mins.c;\n return attrs;\n }\n\n function clickZoomPan(numClicks, evt) {\n var clickMode = gd._fullLayout.clickmode;\n\n removeZoombox(gd);\n\n if(numClicks === 2) {\n gd.emit('plotly_doubleclick', null);\n Registry.call('_guiRelayout', gd, makeUpdate({a: 0, b: 0, c: 0}));\n }\n\n if(clickMode.indexOf('select') > -1 && numClicks === 1) {\n selectOnClick(evt, gd, [_this.xaxis], [_this.yaxis], _this.id, _this.dragOptions);\n }\n\n if(clickMode.indexOf('event') > -1) {\n Fx.click(gd, evt, _this.id);\n }\n }\n\n function zoomPrep(e, startX, startY) {\n var dragBBox = dragger.getBoundingClientRect();\n x0 = startX - dragBBox.left;\n y0 = startY - dragBBox.top;\n\n gd._fullLayout._calcInverseTransform(gd);\n var inverse = gd._fullLayout._invTransform;\n var transformedCoords = Lib.apply3DTransform(inverse)(x0, y0);\n x0 = transformedCoords[0];\n y0 = transformedCoords[1];\n\n mins0 = {\n a: _this.aaxis.range[0],\n b: _this.baxis.range[1],\n c: _this.caxis.range[1]\n };\n mins = mins0;\n span0 = _this.aaxis.range[1] - mins0.a;\n lum = tinycolor(_this.graphDiv._fullLayout[_this.id].bgcolor).getLuminance();\n path0 = 'M0,' + _this.h + 'L' + (_this.w / 2) + ', 0L' + _this.w + ',' + _this.h + 'Z';\n dimmed = false;\n\n zb = zoomLayer.append('path')\n .attr('class', 'zoombox')\n .attr('transform', strTranslate(_this.x0, _this.y0))\n .style({\n 'fill': lum > 0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)',\n 'stroke-width': 0\n })\n .attr('d', path0);\n\n corners = zoomLayer.append('path')\n .attr('class', 'zoombox-corners')\n .attr('transform', strTranslate(_this.x0, _this.y0))\n .style({\n fill: Color.background,\n stroke: Color.defaultLine,\n 'stroke-width': 1,\n opacity: 0\n })\n .attr('d', 'M0,0Z');\n\n _this.clearOutline(gd);\n }\n\n function getAFrac(x, y) { return 1 - (y / _this.h); }\n function getBFrac(x, y) { return 1 - ((x + (_this.h - y) / Math.sqrt(3)) / _this.w); }\n function getCFrac(x, y) { return ((x - (_this.h - y) / Math.sqrt(3)) / _this.w); }\n\n function zoomMove(dx0, dy0) {\n var x1 = x0 + dx0 * scaleX;\n var y1 = y0 + dy0 * scaleY;\n var afrac = Math.max(0, Math.min(1, getAFrac(x0, y0), getAFrac(x1, y1)));\n var bfrac = Math.max(0, Math.min(1, getBFrac(x0, y0), getBFrac(x1, y1)));\n var cfrac = Math.max(0, Math.min(1, getCFrac(x0, y0), getCFrac(x1, y1)));\n var xLeft = ((afrac / 2) + cfrac) * _this.w;\n var xRight = (1 - (afrac / 2) - bfrac) * _this.w;\n var xCenter = (xLeft + xRight) / 2;\n var xSpan = xRight - xLeft;\n var yBottom = (1 - afrac) * _this.h;\n var yTop = yBottom - xSpan / whRatio;\n\n if(xSpan < constants.MINZOOM) {\n mins = mins0;\n zb.attr('d', path0);\n corners.attr('d', 'M0,0Z');\n } else {\n mins = {\n a: mins0.a + afrac * span0,\n b: mins0.b + bfrac * span0,\n c: mins0.c + cfrac * span0\n };\n zb.attr('d', path0 + 'M' + xLeft + ',' + yBottom +\n 'H' + xRight + 'L' + xCenter + ',' + yTop +\n 'L' + xLeft + ',' + yBottom + 'Z');\n corners.attr('d', 'M' + x0 + ',' + y0 + STARTMARKER +\n 'M' + xLeft + ',' + yBottom + BLPATH +\n 'M' + xRight + ',' + yBottom + BRPATH +\n 'M' + xCenter + ',' + yTop + TOPPATH);\n }\n\n if(!dimmed) {\n zb.transition()\n .style('fill', lum > 0.2 ? 'rgba(0,0,0,0.4)' :\n 'rgba(255,255,255,0.3)')\n .duration(200);\n corners.transition()\n .style('opacity', 1)\n .duration(200);\n dimmed = true;\n }\n\n gd.emit('plotly_relayouting', makeUpdate(mins));\n }\n\n function zoomDone() {\n removeZoombox(gd);\n\n if(mins === mins0) return;\n\n Registry.call('_guiRelayout', gd, makeUpdate(mins));\n\n if(SHOWZOOMOUTTIP && gd.data && gd._context.showTips) {\n Lib.notifier(_(gd, 'Double-click to zoom back out'), 'long');\n SHOWZOOMOUTTIP = false;\n }\n }\n\n function panPrep() {\n mins0 = {\n a: _this.aaxis.range[0],\n b: _this.baxis.range[1],\n c: _this.caxis.range[1]\n };\n mins = mins0;\n }\n\n function plotDrag(dx, dy) {\n var dxScaled = dx / _this.xaxis._m;\n var dyScaled = dy / _this.yaxis._m;\n mins = {\n a: mins0.a - dyScaled,\n b: mins0.b + (dxScaled + dyScaled) / 2,\n c: mins0.c - (dxScaled - dyScaled) / 2\n };\n var minsorted = [mins.a, mins.b, mins.c].sort(Lib.sorterAsc);\n var minindices = {\n a: minsorted.indexOf(mins.a),\n b: minsorted.indexOf(mins.b),\n c: minsorted.indexOf(mins.c)\n };\n if(minsorted[0] < 0) {\n if(minsorted[1] + minsorted[0] / 2 < 0) {\n minsorted[2] += minsorted[0] + minsorted[1];\n minsorted[0] = minsorted[1] = 0;\n } else {\n minsorted[2] += minsorted[0] / 2;\n minsorted[1] += minsorted[0] / 2;\n minsorted[0] = 0;\n }\n mins = {\n a: minsorted[minindices.a],\n b: minsorted[minindices.b],\n c: minsorted[minindices.c]\n };\n dy = (mins0.a - mins.a) * _this.yaxis._m;\n dx = (mins0.c - mins.c - mins0.b + mins.b) * _this.xaxis._m;\n }\n\n // move the data (translate, don't redraw)\n var plotTransform = strTranslate(_this.x0 + dx, _this.y0 + dy);\n _this.plotContainer.selectAll('.scatterlayer,.maplayer')\n .attr('transform', plotTransform);\n\n var plotTransform2 = strTranslate(-dx, -dy);\n _this.clipDefRelative.select('path').attr('transform', plotTransform2);\n\n // move the ticks\n _this.aaxis.range = [mins.a, _this.sum - mins.b - mins.c];\n _this.baxis.range = [_this.sum - mins.a - mins.c, mins.b];\n _this.caxis.range = [_this.sum - mins.a - mins.b, mins.c];\n\n _this.drawAxes(false);\n\n if(_this._hasClipOnAxisFalse) {\n _this.plotContainer\n .select('.scatterlayer').selectAll('.trace')\n .call(Drawing.hideOutsideRangePoints, _this);\n }\n\n gd.emit('plotly_relayouting', makeUpdate(mins));\n }\n\n function dragDone() {\n Registry.call('_guiRelayout', gd, makeUpdate(mins));\n }\n\n // finally, set up hover and click\n // these event handlers must already be set before dragElement.init\n // so it can stash them and override them.\n dragger.onmousemove = function(evt) {\n Fx.hover(gd, evt, _this.id);\n gd._fullLayout._lasthover = dragger;\n gd._fullLayout._hoversubplot = _this.id;\n };\n\n dragger.onmouseout = function(evt) {\n if(gd._dragging) return;\n\n dragElement.unhover(gd, evt);\n };\n\n dragElement.init(this.dragOptions);\n};\n\nfunction removeZoombox(gd) {\n d3.select(gd)\n .selectAll('.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners')\n .remove();\n}\n\n},{\"../../components/color\":367,\"../../components/dragelement\":386,\"../../components/dragelement/helpers\":385,\"../../components/drawing\":389,\"../../components/fx\":407,\"../../components/selections\":455,\"../../components/titles\":476,\"../../lib\":515,\"../../lib/extend\":505,\"../../registry\":647,\"../cartesian/axes\":566,\"../cartesian/constants\":573,\"../cartesian/set_convert\":585,\"../plots\":628,\"@plotly/d3\":58,\"tinycolor2\":313}],647:[function(_dereq_,module,exports){\n'use strict';\n\nvar Loggers = _dereq_('./lib/loggers');\nvar noop = _dereq_('./lib/noop');\nvar pushUnique = _dereq_('./lib/push_unique');\nvar isPlainObject = _dereq_('./lib/is_plain_object');\nvar addStyleRule = _dereq_('./lib/dom').addStyleRule;\nvar ExtendModule = _dereq_('./lib/extend');\n\nvar basePlotAttributes = _dereq_('./plots/attributes');\nvar baseLayoutAttributes = _dereq_('./plots/layout_attributes');\n\nvar extendFlat = ExtendModule.extendFlat;\nvar extendDeepAll = ExtendModule.extendDeepAll;\n\nexports.modules = {};\nexports.allCategories = {};\nexports.allTypes = [];\nexports.subplotsRegistry = {};\nexports.transformsRegistry = {};\nexports.componentsRegistry = {};\nexports.layoutArrayContainers = [];\nexports.layoutArrayRegexes = [];\nexports.traceLayoutAttributes = {};\nexports.localeRegistry = {};\nexports.apiMethodRegistry = {};\nexports.collectableSubplotTypes = null;\n\n/**\n * Top-level register routine, exported as Plotly.register\n *\n * @param {object array or array of objects} _modules :\n * module object or list of module object to register.\n *\n * A valid `moduleType: 'trace'` module has fields:\n * - name {string} : the trace type\n * - categories {array} : categories associated with this trace type,\n * tested with Register.traceIs()\n * - meta {object} : meta info (mostly for plot-schema)\n *\n * A valid `moduleType: 'locale'` module has fields:\n * - name {string} : the locale name. Should be a 2-digit language string ('en', 'de')\n * optionally with a country/region code ('en-GB', 'de-CH'). If a country\n * code is used but the base language locale has not yet been supplied,\n * we will use this locale for the base as well.\n * - dictionary {object} : the dictionary mapping input strings to localized strings\n * generally the keys should be the literal input strings, but\n * if default translations are provided you can use any string as a key.\n * - format {object} : a `d3.locale` format specifier for this locale\n * any omitted keys we'll fall back on en-US.\n *\n * A valid `moduleType: 'transform'` module has fields:\n * - name {string} : transform name\n * - transform {function} : default-level transform function\n * - calcTransform {function} : calc-level transform function\n * - attributes {object} : transform attributes declarations\n * - supplyDefaults {function} : attributes default-supply function\n *\n * A valid `moduleType: 'component'` module has fields:\n * - name {string} : the component name, used it with Register.getComponentMethod()\n * to employ component method.\n *\n * A valid `moduleType: 'apiMethod'` module has fields:\n * - name {string} : the api method name.\n * - fn {function} : the api method called with Register.call();\n *\n */\nexports.register = function register(_modules) {\n exports.collectableSubplotTypes = null;\n\n if(!_modules) {\n throw new Error('No argument passed to Plotly.register.');\n } else if(_modules && !Array.isArray(_modules)) {\n _modules = [_modules];\n }\n\n for(var i = 0; i < _modules.length; i++) {\n var newModule = _modules[i];\n\n if(!newModule) {\n throw new Error('Invalid module was attempted to be registered!');\n }\n\n switch(newModule.moduleType) {\n case 'trace':\n registerTraceModule(newModule);\n break;\n case 'transform':\n registerTransformModule(newModule);\n break;\n case 'component':\n registerComponentModule(newModule);\n break;\n case 'locale':\n registerLocale(newModule);\n break;\n case 'apiMethod':\n var name = newModule.name;\n exports.apiMethodRegistry[name] = newModule.fn;\n break;\n default:\n throw new Error('Invalid module was attempted to be registered!');\n }\n }\n};\n\n/**\n * Get registered module using trace object or trace type\n *\n * @param {object||string} trace\n * trace object with prop 'type' or trace type as a string\n * @return {object}\n * module object corresponding to trace type\n */\nexports.getModule = function(trace) {\n var _module = exports.modules[getTraceType(trace)];\n if(!_module) return false;\n return _module._module;\n};\n\n/**\n * Determine if this trace type is in a given category\n *\n * @param {object||string} traceType\n * a trace (object) or trace type (string)\n * @param {string} category\n * category in question\n * @return {boolean}\n */\nexports.traceIs = function(traceType, category) {\n traceType = getTraceType(traceType);\n\n // old Chart Studio Cloud workspace hack, nothing to see here\n if(traceType === 'various') return false;\n\n var _module = exports.modules[traceType];\n\n if(!_module) {\n if(traceType) {\n Loggers.log('Unrecognized trace type ' + traceType + '.');\n }\n\n _module = exports.modules[basePlotAttributes.type.dflt];\n }\n\n return !!_module.categories[category];\n};\n\n/**\n * Determine if this trace has a transform of the given type and return\n * array of matching indices.\n *\n * @param {object} data\n * a trace object (member of data or fullData)\n * @param {string} type\n * type of trace to test\n * @return {array}\n * array of matching indices. If none found, returns []\n */\nexports.getTransformIndices = function(data, type) {\n var indices = [];\n var transforms = data.transforms || [];\n for(var i = 0; i < transforms.length; i++) {\n if(transforms[i].type === type) {\n indices.push(i);\n }\n }\n return indices;\n};\n\n/**\n * Determine if this trace has a transform of the given type\n *\n * @param {object} data\n * a trace object (member of data or fullData)\n * @param {string} type\n * type of trace to test\n * @return {boolean}\n */\nexports.hasTransform = function(data, type) {\n var transforms = data.transforms || [];\n for(var i = 0; i < transforms.length; i++) {\n if(transforms[i].type === type) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * Retrieve component module method. Falls back on noop if either the\n * module or the method is missing, so the result can always be safely called\n *\n * @param {string} name\n * name of component (as declared in component module)\n * @param {string} method\n * name of component module method\n * @return {function}\n */\nexports.getComponentMethod = function(name, method) {\n var _module = exports.componentsRegistry[name];\n\n if(!_module) return noop;\n return _module[method] || noop;\n};\n\n/**\n * Call registered api method.\n *\n * @param {string} name : api method name\n * @param {...array} args : arguments passed to api method\n * @return {any} : returns api method output\n */\nexports.call = function() {\n var name = arguments[0];\n var args = [].slice.call(arguments, 1);\n return exports.apiMethodRegistry[name].apply(null, args);\n};\n\nfunction registerTraceModule(_module) {\n var thisType = _module.name;\n var categoriesIn = _module.categories;\n var meta = _module.meta;\n\n if(exports.modules[thisType]) {\n Loggers.log('Type ' + thisType + ' already registered');\n return;\n }\n\n if(!exports.subplotsRegistry[_module.basePlotModule.name]) {\n registerSubplot(_module.basePlotModule);\n }\n\n var categoryObj = {};\n for(var i = 0; i < categoriesIn.length; i++) {\n categoryObj[categoriesIn[i]] = true;\n exports.allCategories[categoriesIn[i]] = true;\n }\n\n exports.modules[thisType] = {\n _module: _module,\n categories: categoryObj\n };\n\n if(meta && Object.keys(meta).length) {\n exports.modules[thisType].meta = meta;\n }\n\n exports.allTypes.push(thisType);\n\n for(var componentName in exports.componentsRegistry) {\n mergeComponentAttrsToTrace(componentName, thisType);\n }\n\n /*\n * Collect all trace layout attributes in one place for easier lookup later\n * but don't merge them into the base schema as it would confuse the docs\n * (at least after https://github.com/plotly/documentation/issues/202 gets done!)\n */\n if(_module.layoutAttributes) {\n extendFlat(exports.traceLayoutAttributes, _module.layoutAttributes);\n }\n\n var basePlotModule = _module.basePlotModule;\n var bpmName = basePlotModule.name;\n\n // add mapbox-gl CSS here to avoid console warning on instantiation\n if(bpmName === 'mapbox') {\n var styleRules = basePlotModule.constants.styleRules;\n for(var k in styleRules) {\n addStyleRule('.js-plotly-plot .plotly .mapboxgl-' + k, styleRules[k]);\n }\n }\n\n // if `plotly-geo-assets.js` is not included,\n // add `PlotlyGeoAssets` global to stash references to all fetched\n // topojson / geojson data\n if((bpmName === 'geo' || bpmName === 'mapbox') &&\n (window.PlotlyGeoAssets === undefined)\n ) {\n window.PlotlyGeoAssets = {topojson: {}};\n }\n}\n\nfunction registerSubplot(_module) {\n var plotType = _module.name;\n\n if(exports.subplotsRegistry[plotType]) {\n Loggers.log('Plot type ' + plotType + ' already registered.');\n return;\n }\n\n // relayout array handling will look for component module methods with this\n // name and won't find them because this is a subplot module... but that\n // should be fine, it will just fall back on redrawing the plot.\n findArrayRegexps(_module);\n\n // not sure what's best for the 'cartesian' type at this point\n exports.subplotsRegistry[plotType] = _module;\n\n for(var componentName in exports.componentsRegistry) {\n mergeComponentAttrsToSubplot(componentName, _module.name);\n }\n}\n\nfunction registerComponentModule(_module) {\n if(typeof _module.name !== 'string') {\n throw new Error('Component module *name* must be a string.');\n }\n\n var name = _module.name;\n exports.componentsRegistry[name] = _module;\n\n if(_module.layoutAttributes) {\n if(_module.layoutAttributes._isLinkedToArray) {\n pushUnique(exports.layoutArrayContainers, name);\n }\n findArrayRegexps(_module);\n }\n\n for(var traceType in exports.modules) {\n mergeComponentAttrsToTrace(name, traceType);\n }\n\n for(var subplotName in exports.subplotsRegistry) {\n mergeComponentAttrsToSubplot(name, subplotName);\n }\n\n for(var transformType in exports.transformsRegistry) {\n mergeComponentAttrsToTransform(name, transformType);\n }\n\n if(_module.schema && _module.schema.layout) {\n extendDeepAll(baseLayoutAttributes, _module.schema.layout);\n }\n}\n\nfunction registerTransformModule(_module) {\n if(typeof _module.name !== 'string') {\n throw new Error('Transform module *name* must be a string.');\n }\n\n var prefix = 'Transform module ' + _module.name;\n var hasTransform = typeof _module.transform === 'function';\n var hasCalcTransform = typeof _module.calcTransform === 'function';\n\n if(!hasTransform && !hasCalcTransform) {\n throw new Error(prefix + ' is missing a *transform* or *calcTransform* method.');\n }\n if(hasTransform && hasCalcTransform) {\n Loggers.log([\n prefix + ' has both a *transform* and *calcTransform* methods.',\n 'Please note that all *transform* methods are executed',\n 'before all *calcTransform* methods.'\n ].join(' '));\n }\n if(!isPlainObject(_module.attributes)) {\n Loggers.log(prefix + ' registered without an *attributes* object.');\n }\n if(typeof _module.supplyDefaults !== 'function') {\n Loggers.log(prefix + ' registered without a *supplyDefaults* method.');\n }\n\n exports.transformsRegistry[_module.name] = _module;\n\n for(var componentName in exports.componentsRegistry) {\n mergeComponentAttrsToTransform(componentName, _module.name);\n }\n}\n\nfunction registerLocale(_module) {\n var locale = _module.name;\n var baseLocale = locale.split('-')[0];\n\n var newDict = _module.dictionary;\n var newFormat = _module.format;\n var hasDict = newDict && Object.keys(newDict).length;\n var hasFormat = newFormat && Object.keys(newFormat).length;\n\n var locales = exports.localeRegistry;\n\n var localeObj = locales[locale];\n if(!localeObj) locales[locale] = localeObj = {};\n\n // Should we use this dict for the base locale?\n // In case we're overwriting a previous dict for this locale, check\n // whether the base matches the full locale dict now. If we're not\n // overwriting, locales[locale] is undefined so this just checks if\n // baseLocale already had a dict or not.\n // Same logic for dateFormats\n if(baseLocale !== locale) {\n var baseLocaleObj = locales[baseLocale];\n if(!baseLocaleObj) locales[baseLocale] = baseLocaleObj = {};\n\n if(hasDict && baseLocaleObj.dictionary === localeObj.dictionary) {\n baseLocaleObj.dictionary = newDict;\n }\n if(hasFormat && baseLocaleObj.format === localeObj.format) {\n baseLocaleObj.format = newFormat;\n }\n }\n\n if(hasDict) localeObj.dictionary = newDict;\n if(hasFormat) localeObj.format = newFormat;\n}\n\nfunction findArrayRegexps(_module) {\n if(_module.layoutAttributes) {\n var arrayAttrRegexps = _module.layoutAttributes._arrayAttrRegexps;\n if(arrayAttrRegexps) {\n for(var i = 0; i < arrayAttrRegexps.length; i++) {\n pushUnique(exports.layoutArrayRegexes, arrayAttrRegexps[i]);\n }\n }\n }\n}\n\nfunction mergeComponentAttrsToTrace(componentName, traceType) {\n var componentSchema = exports.componentsRegistry[componentName].schema;\n if(!componentSchema || !componentSchema.traces) return;\n\n var traceAttrs = componentSchema.traces[traceType];\n if(traceAttrs) {\n extendDeepAll(exports.modules[traceType]._module.attributes, traceAttrs);\n }\n}\n\nfunction mergeComponentAttrsToTransform(componentName, transformType) {\n var componentSchema = exports.componentsRegistry[componentName].schema;\n if(!componentSchema || !componentSchema.transforms) return;\n\n var transformAttrs = componentSchema.transforms[transformType];\n if(transformAttrs) {\n extendDeepAll(exports.transformsRegistry[transformType].attributes, transformAttrs);\n }\n}\n\nfunction mergeComponentAttrsToSubplot(componentName, subplotName) {\n var componentSchema = exports.componentsRegistry[componentName].schema;\n if(!componentSchema || !componentSchema.subplots) return;\n\n var subplotModule = exports.subplotsRegistry[subplotName];\n var subplotAttrs = subplotModule.layoutAttributes;\n var subplotAttr = subplotModule.attr === 'subplot' ? subplotModule.name : subplotModule.attr;\n if(Array.isArray(subplotAttr)) subplotAttr = subplotAttr[0];\n\n var componentLayoutAttrs = componentSchema.subplots[subplotAttr];\n if(subplotAttrs && componentLayoutAttrs) {\n extendDeepAll(subplotAttrs, componentLayoutAttrs);\n }\n}\n\nfunction getTraceType(traceType) {\n if(typeof traceType === 'object') traceType = traceType.type;\n return traceType;\n}\n\n},{\"./lib/dom\":503,\"./lib/extend\":505,\"./lib/is_plain_object\":516,\"./lib/loggers\":519,\"./lib/noop\":524,\"./lib/push_unique\":530,\"./plots/attributes\":562,\"./plots/layout_attributes\":619}],648:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\nvar extendFlat = Lib.extendFlat;\nvar extendDeep = Lib.extendDeep;\n\n// Put default plotTile layouts here\nfunction cloneLayoutOverride(tileClass) {\n var override;\n\n switch(tileClass) {\n case 'themes__thumb':\n override = {\n autosize: true,\n width: 150,\n height: 150,\n title: {text: ''},\n showlegend: false,\n margin: {l: 5, r: 5, t: 5, b: 5, pad: 0},\n annotations: []\n };\n break;\n\n case 'thumbnail':\n override = {\n title: {text: ''},\n hidesources: true,\n showlegend: false,\n borderwidth: 0,\n bordercolor: '',\n margin: {l: 1, r: 1, t: 1, b: 1, pad: 0},\n annotations: []\n };\n break;\n\n default:\n override = {};\n }\n\n\n return override;\n}\n\nfunction keyIsAxis(keyName) {\n var types = ['xaxis', 'yaxis', 'zaxis'];\n return (types.indexOf(keyName.slice(0, 5)) > -1);\n}\n\n\nmodule.exports = function clonePlot(graphObj, options) {\n var i;\n var oldData = graphObj.data;\n var oldLayout = graphObj.layout;\n var newData = extendDeep([], oldData);\n var newLayout = extendDeep({}, oldLayout, cloneLayoutOverride(options.tileClass));\n var context = graphObj._context || {};\n\n if(options.width) newLayout.width = options.width;\n if(options.height) newLayout.height = options.height;\n\n if(options.tileClass === 'thumbnail' || options.tileClass === 'themes__thumb') {\n // kill annotations\n newLayout.annotations = [];\n var keys = Object.keys(newLayout);\n\n for(i = 0; i < keys.length; i++) {\n if(keyIsAxis(keys[i])) {\n newLayout[keys[i]].title = {text: ''};\n }\n }\n\n // kill colorbar and pie labels\n for(i = 0; i < newData.length; i++) {\n var trace = newData[i];\n trace.showscale = false;\n if(trace.marker) trace.marker.showscale = false;\n if(Registry.traceIs(trace, 'pie-like')) trace.textposition = 'none';\n }\n }\n\n if(Array.isArray(options.annotations)) {\n for(i = 0; i < options.annotations.length; i++) {\n newLayout.annotations.push(options.annotations[i]);\n }\n }\n\n // TODO: does this scene modification really belong here?\n // If we still need it, can it move into the gl3d module?\n var sceneIds = Object.keys(newLayout).filter(function(key) {\n return key.match(/^scene\\d*$/);\n });\n if(sceneIds.length) {\n var axesImageOverride = {};\n if(options.tileClass === 'thumbnail') {\n axesImageOverride = {\n title: {text: ''},\n showaxeslabels: false,\n showticklabels: false,\n linetickenable: false\n };\n }\n for(i = 0; i < sceneIds.length; i++) {\n var scene = newLayout[sceneIds[i]];\n\n if(!scene.xaxis) {\n scene.xaxis = {};\n }\n\n if(!scene.yaxis) {\n scene.yaxis = {};\n }\n\n if(!scene.zaxis) {\n scene.zaxis = {};\n }\n\n extendFlat(scene.xaxis, axesImageOverride);\n extendFlat(scene.yaxis, axesImageOverride);\n extendFlat(scene.zaxis, axesImageOverride);\n\n // TODO what does this do?\n scene._scene = null;\n }\n }\n\n var gd = document.createElement('div');\n if(options.tileClass) gd.className = options.tileClass;\n\n var plotTile = {\n gd: gd,\n td: gd, // for external (image server) compatibility\n layout: newLayout,\n data: newData,\n config: {\n staticPlot: (options.staticPlot === undefined) ?\n true :\n options.staticPlot,\n plotGlPixelRatio: (options.plotGlPixelRatio === undefined) ?\n 2 :\n options.plotGlPixelRatio,\n displaylogo: options.displaylogo || false,\n showLink: options.showLink || false,\n showTips: options.showTips || false,\n mapboxAccessToken: context.mapboxAccessToken\n }\n };\n\n if(options.setBackground !== 'transparent') {\n plotTile.config.setBackground = options.setBackground || 'opaque';\n }\n\n // attaching the default Layout the gd, so you can grab it later\n plotTile.gd.defaultLayout = cloneLayoutOverride(options.tileClass);\n\n return plotTile;\n};\n\n},{\"../lib\":515,\"../registry\":647}],649:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\n\nvar toImage = _dereq_('../plot_api/to_image');\n\nvar fileSaver = _dereq_('./filesaver');\nvar helpers = _dereq_('./helpers');\n\n/**\n * Plotly.downloadImage\n *\n * @param {object | string | HTML div} gd\n * can either be a data/layout/config object\n * or an existing graph
\n * or an id to an existing graph
\n * @param {object} opts (see Plotly.toImage in ../plot_api/to_image)\n * @return {promise}\n */\nfunction downloadImage(gd, opts) {\n var _gd;\n if(!Lib.isPlainObject(gd)) _gd = Lib.getGraphDiv(gd);\n\n opts = opts || {};\n opts.format = opts.format || 'png';\n opts.width = opts.width || null;\n opts.height = opts.height || null;\n opts.imageDataOnly = true;\n\n return new Promise(function(resolve, reject) {\n if(_gd && _gd._snapshotInProgress) {\n reject(new Error('Snapshotting already in progress.'));\n }\n\n // see comments within svgtoimg for additional\n // discussion of problems with IE\n // can now draw to canvas, but CORS tainted canvas\n // does not allow toDataURL\n // svg format will work though\n if(Lib.isIE() && opts.format !== 'svg') {\n reject(new Error(helpers.MSG_IE_BAD_FORMAT));\n }\n\n if(_gd) _gd._snapshotInProgress = true;\n var promise = toImage(gd, opts);\n\n var filename = opts.filename || gd.fn || 'newplot';\n filename += '.' + opts.format.replace('-', '.');\n\n promise.then(function(result) {\n if(_gd) _gd._snapshotInProgress = false;\n return fileSaver(result, filename, opts.format);\n }).then(function(name) {\n resolve(name);\n }).catch(function(err) {\n if(_gd) _gd._snapshotInProgress = false;\n reject(err);\n });\n });\n}\n\nmodule.exports = downloadImage;\n\n},{\"../lib\":515,\"../plot_api/to_image\":558,\"./filesaver\":650,\"./helpers\":651}],650:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar helpers = _dereq_('./helpers');\n\n/*\n* substantial portions of this code from FileSaver.js\n* https://github.com/eligrey/FileSaver.js\n* License: https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n* FileSaver.js\n* A saveAs() FileSaver implementation.\n* 1.1.20160328\n*\n* By Eli Grey, http://eligrey.com\n* License: MIT\n* See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n*/\nfunction fileSaver(url, name, format) {\n var saveLink = document.createElement('a');\n var canUseSaveLink = 'download' in saveLink;\n\n var promise = new Promise(function(resolve, reject) {\n var blob;\n var objectUrl;\n\n // IE 10+ (native saveAs)\n if(Lib.isIE()) {\n // At this point we are only dealing with a decoded SVG as\n // a data URL (since IE only supports SVG)\n blob = helpers.createBlob(url, 'svg');\n window.navigator.msSaveBlob(blob, name);\n blob = null;\n return resolve(name);\n }\n\n if(canUseSaveLink) {\n blob = helpers.createBlob(url, format);\n objectUrl = helpers.createObjectURL(blob);\n\n saveLink.href = objectUrl;\n saveLink.download = name;\n document.body.appendChild(saveLink);\n saveLink.click();\n\n document.body.removeChild(saveLink);\n helpers.revokeObjectURL(objectUrl);\n blob = null;\n\n return resolve(name);\n }\n\n // Older versions of Safari did not allow downloading of blob urls\n if(Lib.isSafari()) {\n var prefix = format === 'svg' ? ',' : ';base64,';\n helpers.octetStream(prefix + encodeURIComponent(url));\n return resolve(name);\n }\n\n reject(new Error('download error'));\n });\n\n return promise;\n}\n\n\nmodule.exports = fileSaver;\n\n},{\"../lib\":515,\"./helpers\":651}],651:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../registry');\n\nexports.getDelay = function(fullLayout) {\n if(!fullLayout._has) return 0;\n\n return (\n fullLayout._has('gl3d') ||\n fullLayout._has('gl2d') ||\n fullLayout._has('mapbox')\n ) ? 500 : 0;\n};\n\nexports.getRedrawFunc = function(gd) {\n return function() {\n Registry.getComponentMethod('colorbar', 'draw')(gd);\n };\n};\n\nexports.encodeSVG = function(svg) {\n return 'data:image/svg+xml,' + encodeURIComponent(svg);\n};\n\nexports.encodeJSON = function(json) {\n return 'data:application/json,' + encodeURIComponent(json);\n};\n\nvar DOM_URL = window.URL || window.webkitURL;\n\nexports.createObjectURL = function(blob) {\n return DOM_URL.createObjectURL(blob);\n};\n\nexports.revokeObjectURL = function(url) {\n return DOM_URL.revokeObjectURL(url);\n};\n\nexports.createBlob = function(url, format) {\n if(format === 'svg') {\n return new window.Blob([url], {type: 'image/svg+xml;charset=utf-8'});\n } else if(format === 'full-json') {\n return new window.Blob([url], {type: 'application/json;charset=utf-8'});\n } else {\n var binary = fixBinary(window.atob(url));\n return new window.Blob([binary], {type: 'image/' + format});\n }\n};\n\nexports.octetStream = function(s) {\n document.location.href = 'data:application/octet-stream' + s;\n};\n\n// Taken from https://bl.ocks.org/nolanlawson/0eac306e4dac2114c752\nfunction fixBinary(b) {\n var len = b.length;\n var buf = new ArrayBuffer(len);\n var arr = new Uint8Array(buf);\n for(var i = 0; i < len; i++) {\n arr[i] = b.charCodeAt(i);\n }\n return buf;\n}\n\nexports.IMAGE_URL_PREFIX = /^data:image\\/\\w+;base64,/;\n\nexports.MSG_IE_BAD_FORMAT = 'Sorry IE does not support downloading from canvas. Try {format:\\'svg\\'} instead.';\n\n},{\"../registry\":647}],652:[function(_dereq_,module,exports){\n'use strict';\n\nvar helpers = _dereq_('./helpers');\n\nvar Snapshot = {\n getDelay: helpers.getDelay,\n getRedrawFunc: helpers.getRedrawFunc,\n clone: _dereq_('./cloneplot'),\n toSVG: _dereq_('./tosvg'),\n svgToImg: _dereq_('./svgtoimg'),\n toImage: _dereq_('./toimage'),\n downloadImage: _dereq_('./download')\n};\n\nmodule.exports = Snapshot;\n\n},{\"./cloneplot\":648,\"./download\":649,\"./helpers\":651,\"./svgtoimg\":653,\"./toimage\":654,\"./tosvg\":655}],653:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar EventEmitter = _dereq_('events').EventEmitter;\n\nvar helpers = _dereq_('./helpers');\n\nfunction svgToImg(opts) {\n var ev = opts.emitter || new EventEmitter();\n\n var promise = new Promise(function(resolve, reject) {\n var Image = window.Image;\n var svg = opts.svg;\n var format = opts.format || 'png';\n\n // IE only support svg\n if(Lib.isIE() && format !== 'svg') {\n var ieSvgError = new Error(helpers.MSG_IE_BAD_FORMAT);\n reject(ieSvgError);\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n return ev.emit('error', ieSvgError);\n } else {\n return promise;\n }\n }\n\n var canvas = opts.canvas;\n var scale = opts.scale || 1;\n var w0 = opts.width || 300;\n var h0 = opts.height || 150;\n var w1 = scale * w0;\n var h1 = scale * h0;\n\n var ctx = canvas.getContext('2d', {willReadFrequently: true});\n var img = new Image();\n var svgBlob, url;\n\n if(format === 'svg' || Lib.isSafari()) {\n url = helpers.encodeSVG(svg);\n } else {\n svgBlob = helpers.createBlob(svg, 'svg');\n url = helpers.createObjectURL(svgBlob);\n }\n\n canvas.width = w1;\n canvas.height = h1;\n\n img.onload = function() {\n var imgData;\n\n svgBlob = null;\n helpers.revokeObjectURL(url);\n\n // don't need to draw to canvas if svg\n // save some time and also avoid failure on IE\n if(format !== 'svg') {\n ctx.drawImage(img, 0, 0, w1, h1);\n }\n\n switch(format) {\n case 'jpeg':\n imgData = canvas.toDataURL('image/jpeg');\n break;\n case 'png':\n imgData = canvas.toDataURL('image/png');\n break;\n case 'webp':\n imgData = canvas.toDataURL('image/webp');\n break;\n case 'svg':\n imgData = url;\n break;\n default:\n var errorMsg = 'Image format is not jpeg, png, svg or webp.';\n reject(new Error(errorMsg));\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n return ev.emit('error', errorMsg);\n }\n }\n resolve(imgData);\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n ev.emit('success', imgData);\n }\n };\n\n img.onerror = function(err) {\n svgBlob = null;\n helpers.revokeObjectURL(url);\n\n reject(err);\n // eventually remove the ev\n // in favor of promises\n if(!opts.promise) {\n return ev.emit('error', err);\n }\n };\n\n img.src = url;\n });\n\n // temporary for backward compatibility\n // move to only Promise in 2.0.0\n // and eliminate the EventEmitter\n if(opts.promise) {\n return promise;\n }\n\n return ev;\n}\n\nmodule.exports = svgToImg;\n\n},{\"../lib\":515,\"./helpers\":651,\"events\":84}],654:[function(_dereq_,module,exports){\n'use strict';\n\nvar EventEmitter = _dereq_('events').EventEmitter;\n\nvar Registry = _dereq_('../registry');\nvar Lib = _dereq_('../lib');\n\nvar helpers = _dereq_('./helpers');\nvar clonePlot = _dereq_('./cloneplot');\nvar toSVG = _dereq_('./tosvg');\nvar svgToImg = _dereq_('./svgtoimg');\n\n/**\n * @param {object} gd figure Object\n * @param {object} opts option object\n * @param opts.format 'jpeg' | 'png' | 'webp' | 'svg'\n */\nfunction toImage(gd, opts) {\n // first clone the GD so we can operate in a clean environment\n var ev = new EventEmitter();\n\n var clone = clonePlot(gd, {format: 'png'});\n var clonedGd = clone.gd;\n\n // put the cloned div somewhere off screen before attaching to DOM\n clonedGd.style.position = 'absolute';\n clonedGd.style.left = '-5000px';\n document.body.appendChild(clonedGd);\n\n function wait() {\n var delay = helpers.getDelay(clonedGd._fullLayout);\n\n setTimeout(function() {\n var svg = toSVG(clonedGd);\n\n var canvas = document.createElement('canvas');\n canvas.id = Lib.randstr();\n\n ev = svgToImg({\n format: opts.format,\n width: clonedGd._fullLayout.width,\n height: clonedGd._fullLayout.height,\n canvas: canvas,\n emitter: ev,\n svg: svg\n });\n\n ev.clean = function() {\n if(clonedGd) document.body.removeChild(clonedGd);\n };\n }, delay);\n }\n\n var redrawFunc = helpers.getRedrawFunc(clonedGd);\n\n Registry.call('_doPlot', clonedGd, clone.data, clone.layout, clone.config)\n .then(redrawFunc)\n .then(wait)\n .catch(function(err) {\n ev.emit('error', err);\n });\n\n\n return ev;\n}\n\nmodule.exports = toImage;\n\n},{\"../lib\":515,\"../registry\":647,\"./cloneplot\":648,\"./helpers\":651,\"./svgtoimg\":653,\"./tosvg\":655,\"events\":84}],655:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../lib');\nvar Drawing = _dereq_('../components/drawing');\nvar Color = _dereq_('../components/color');\n\nvar xmlnsNamespaces = _dereq_('../constants/xmlns_namespaces');\nvar DOUBLEQUOTE_REGEX = /\"/g;\nvar DUMMY_SUB = 'TOBESTRIPPED';\nvar DUMMY_REGEX = new RegExp('(\"' + DUMMY_SUB + ')|(' + DUMMY_SUB + '\")', 'g');\n\nfunction htmlEntityDecode(s) {\n var hiddenDiv = d3.select('body').append('div').style({display: 'none'}).html('');\n var replaced = s.replace(/(&[^;]*;)/gi, function(d) {\n if(d === '<') { return '<'; } // special handling for brackets\n if(d === '&rt;') { return '>'; }\n if(d.indexOf('<') !== -1 || d.indexOf('>') !== -1) { return ''; }\n return hiddenDiv.html(d).text(); // everything else, let the browser decode it to unicode\n });\n hiddenDiv.remove();\n return replaced;\n}\n\nfunction xmlEntityEncode(str) {\n return str.replace(/&(?!\\w+;|\\#[0-9]+;| \\#x[0-9A-F]+;)/g, '&');\n}\n\nmodule.exports = function toSVG(gd, format, scale) {\n var fullLayout = gd._fullLayout;\n var svg = fullLayout._paper;\n var toppaper = fullLayout._toppaper;\n var width = fullLayout.width;\n var height = fullLayout.height;\n var i;\n\n // make background color a rect in the svg, then revert after scraping\n // all other alterations have been dealt with by properly preparing the svg\n // in the first place... like setting cursors with css classes so we don't\n // have to remove them, and providing the right namespaces in the svg to\n // begin with\n svg.insert('rect', ':first-child')\n .call(Drawing.setRect, 0, 0, width, height)\n .call(Color.fill, fullLayout.paper_bgcolor);\n\n // subplot-specific to-SVG methods\n // which notably add the contents of the gl-container\n // into the main svg node\n var basePlotModules = fullLayout._basePlotModules || [];\n for(i = 0; i < basePlotModules.length; i++) {\n var _module = basePlotModules[i];\n\n if(_module.toSVG) _module.toSVG(gd);\n }\n\n // add top items above them assumes everything in toppaper is either\n // a group or a defs, and if it's empty (like hoverlayer) we can ignore it.\n if(toppaper) {\n var nodes = toppaper.node().childNodes;\n\n // make copy of nodes as childNodes prop gets mutated in loop below\n var topGroups = Array.prototype.slice.call(nodes);\n\n for(i = 0; i < topGroups.length; i++) {\n var topGroup = topGroups[i];\n\n if(topGroup.childNodes.length) svg.node().appendChild(topGroup);\n }\n }\n\n // remove draglayer for Adobe Illustrator compatibility\n if(fullLayout._draggers) {\n fullLayout._draggers.remove();\n }\n\n // in case the svg element had an explicit background color, remove this\n // we want the rect to get the color so it's the right size; svg bg will\n // fill whatever container it's displayed in regardless of plot size.\n svg.node().style.background = '';\n\n svg.selectAll('text')\n .attr({'data-unformatted': null, 'data-math': null})\n .each(function() {\n var txt = d3.select(this);\n\n // hidden text is pre-formatting mathjax, the browser ignores it\n // but in a static plot it's useless and it can confuse batik\n // we've tried to standardize on display:none but make sure we still\n // catch visibility:hidden if it ever arises\n if(this.style.visibility === 'hidden' || this.style.display === 'none') {\n txt.remove();\n return;\n } else {\n // clear other visibility/display values to default\n // to not potentially confuse non-browser SVG implementations\n txt.style({visibility: null, display: null});\n }\n\n // Font family styles break things because of quotation marks,\n // so we must remove them *after* the SVG DOM has been serialized\n // to a string (browsers convert singles back)\n var ff = this.style.fontFamily;\n if(ff && ff.indexOf('\"') !== -1) {\n txt.style('font-family', ff.replace(DOUBLEQUOTE_REGEX, DUMMY_SUB));\n }\n });\n\n svg.selectAll('.gradient_filled,.pattern_filled').each(function() {\n var pt = d3.select(this);\n\n // similar to font family styles above,\n // we must remove \" after the SVG DOM has been serialized\n var fill = this.style.fill;\n if(fill && fill.indexOf('url(') !== -1) {\n pt.style('fill', fill.replace(DOUBLEQUOTE_REGEX, DUMMY_SUB));\n }\n\n var stroke = this.style.stroke;\n if(stroke && stroke.indexOf('url(') !== -1) {\n pt.style('stroke', stroke.replace(DOUBLEQUOTE_REGEX, DUMMY_SUB));\n }\n });\n\n if(format === 'pdf' || format === 'eps') {\n // these formats make the extra line MathJax adds around symbols look super thick in some cases\n // it looks better if this is removed entirely.\n svg.selectAll('#MathJax_SVG_glyphs path')\n .attr('stroke-width', 0);\n }\n\n // fix for IE namespacing quirk?\n // http://stackoverflow.com/questions/19610089/unwanted-namespaces-on-svg-markup-when-using-xmlserializer-in-javascript-with-ie\n svg.node().setAttributeNS(xmlnsNamespaces.xmlns, 'xmlns', xmlnsNamespaces.svg);\n svg.node().setAttributeNS(xmlnsNamespaces.xmlns, 'xmlns:xlink', xmlnsNamespaces.xlink);\n\n if(format === 'svg' && scale) {\n svg.attr('width', scale * width);\n svg.attr('height', scale * height);\n svg.attr('viewBox', '0 0 ' + width + ' ' + height);\n }\n\n var s = new window.XMLSerializer().serializeToString(svg.node());\n s = htmlEntityDecode(s);\n s = xmlEntityEncode(s);\n\n // Fix quotations around font strings and gradient URLs\n s = s.replace(DUMMY_REGEX, '\\'');\n\n // Do we need this process now that IE9 and IE10 are not supported?\n\n // IE is very strict, so we will need to clean\n // svg with the following regex\n // yes this is messy, but do not know a better way\n // Even with this IE will not work due to tainted canvas\n // see https://github.com/kangax/fabric.js/issues/1957\n // http://stackoverflow.com/questions/18112047/canvas-todataurl-working-in-all-browsers-except-ie10\n // Leave here just in case the CORS/tainted IE issue gets resolved\n if(Lib.isIE()) {\n // replace double quote with single quote\n s = s.replace(/\"/gi, '\\'');\n // url in svg are single quoted\n // since we changed double to single\n // we'll need to change these to double-quoted\n s = s.replace(/(\\('#)([^']*)('\\))/gi, '(\\\"#$2\\\")');\n // font names with spaces will be escaped single-quoted\n // we'll need to change these to double-quoted\n s = s.replace(/(\\\\')/gi, '\\\"');\n }\n\n return s;\n};\n\n},{\"../components/color\":367,\"../components/drawing\":389,\"../constants/xmlns_namespaces\":492,\"../lib\":515,\"@plotly/d3\":58}],656:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// arrayOk attributes, merge them into calcdata array\nmodule.exports = function arraysToCalcdata(cd, trace) {\n for(var i = 0; i < cd.length; i++) cd[i].i = i;\n\n Lib.mergeArray(trace.text, cd, 'tx');\n Lib.mergeArray(trace.hovertext, cd, 'htx');\n\n var marker = trace.marker;\n if(marker) {\n Lib.mergeArray(marker.opacity, cd, 'mo', true);\n Lib.mergeArray(marker.color, cd, 'mc');\n\n var markerLine = marker.line;\n if(markerLine) {\n Lib.mergeArray(markerLine.color, cd, 'mlc');\n Lib.mergeArrayCastPositive(markerLine.width, cd, 'mlw');\n }\n }\n};\n\n},{\"../../lib\":515}],657:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar constants = _dereq_('./constants');\nvar pattern = _dereq_('../../components/drawing/attributes').pattern;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar textFontAttrs = fontAttrs({\n editType: 'calc',\n arrayOk: true,\n colorEditType: 'style',\n});\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar markerLineWidth = extendFlat({},\n scatterMarkerLineAttrs.width, { dflt: 0 });\n\nvar markerLine = extendFlat({\n width: markerLineWidth,\n editType: 'calc'\n}, colorScaleAttrs('marker.line'));\n\nvar marker = extendFlat({\n line: markerLine,\n editType: 'calc'\n}, colorScaleAttrs('marker'), {\n opacity: {\n valType: 'number',\n arrayOk: true,\n dflt: 1,\n min: 0,\n max: 1,\n editType: 'style',\n },\n pattern: pattern\n});\n\nmodule.exports = {\n x: scatterAttrs.x,\n x0: scatterAttrs.x0,\n dx: scatterAttrs.dx,\n y: scatterAttrs.y,\n y0: scatterAttrs.y0,\n dy: scatterAttrs.dy,\n\n xperiod: scatterAttrs.xperiod,\n yperiod: scatterAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n yperiodalignment: scatterAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n text: scatterAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys\n }),\n hovertext: scatterAttrs.hovertext,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textposition: {\n valType: 'enumerated',\n values: ['inside', 'outside', 'auto', 'none'],\n dflt: 'auto',\n arrayOk: true,\n editType: 'calc',\n },\n\n insidetextanchor: {\n valType: 'enumerated',\n values: ['end', 'middle', 'start'],\n dflt: 'end',\n editType: 'plot',\n },\n\n textangle: {\n valType: 'angle',\n dflt: 'auto',\n editType: 'plot',\n },\n\n textfont: extendFlat({}, textFontAttrs, {\n }),\n\n insidetextfont: extendFlat({}, textFontAttrs, {\n }),\n\n outsidetextfont: extendFlat({}, textFontAttrs, {\n }),\n\n constraintext: {\n valType: 'enumerated',\n values: ['inside', 'outside', 'both', 'none'],\n dflt: 'both',\n editType: 'calc',\n },\n\n cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {\n }),\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n editType: 'calc+clearAxisTypes',\n },\n\n base: {\n valType: 'any',\n dflt: null,\n arrayOk: true,\n editType: 'calc',\n },\n\n offset: {\n valType: 'number',\n dflt: null,\n arrayOk: true,\n editType: 'calc',\n },\n\n width: {\n valType: 'number',\n dflt: null,\n min: 0,\n arrayOk: true,\n editType: 'calc',\n },\n\n marker: marker,\n\n offsetgroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n alignmentgroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n\n selected: {\n marker: {\n opacity: scatterAttrs.selected.marker.opacity,\n color: scatterAttrs.selected.marker.color,\n editType: 'style'\n },\n textfont: scatterAttrs.selected.textfont,\n editType: 'style'\n },\n unselected: {\n marker: {\n opacity: scatterAttrs.unselected.marker.opacity,\n color: scatterAttrs.unselected.marker.color,\n editType: 'style'\n },\n textfont: scatterAttrs.unselected.textfont,\n editType: 'style'\n },\n\n _deprecated: {\n bardir: {\n valType: 'enumerated',\n editType: 'calc',\n values: ['v', 'h'],\n }\n }\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../components/drawing/attributes\":388,\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936,\"./constants\":659}],658:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar arraysToCalcdata = _dereq_('./arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var size, pos, origPos, pObj, hasPeriod, pLetter;\n\n var sizeOpts = {\n msUTC: !!(trace.base || trace.base === 0)\n };\n\n if(trace.orientation === 'h') {\n size = xa.makeCalcdata(trace, 'x', sizeOpts);\n origPos = ya.makeCalcdata(trace, 'y');\n pObj = alignPeriod(trace, ya, 'y', origPos);\n hasPeriod = !!trace.yperiodalignment;\n pLetter = 'y';\n } else {\n size = ya.makeCalcdata(trace, 'y', sizeOpts);\n origPos = xa.makeCalcdata(trace, 'x');\n pObj = alignPeriod(trace, xa, 'x', origPos);\n hasPeriod = !!trace.xperiodalignment;\n pLetter = 'x';\n }\n pos = pObj.vals;\n\n // create the \"calculated data\" to plot\n var serieslen = Math.min(pos.length, size.length);\n var cd = new Array(serieslen);\n\n // set position and size\n for(var i = 0; i < serieslen; i++) {\n cd[i] = { p: pos[i], s: size[i] };\n\n if(hasPeriod) {\n cd[i].orig_p = origPos[i]; // used by hover\n cd[i][pLetter + 'End'] = pObj.ends[i];\n cd[i][pLetter + 'Start'] = pObj.starts[i];\n }\n\n if(trace.ids) {\n cd[i].id = String(trace.ids[i]);\n }\n }\n\n // auto-z and autocolorscale if applicable\n if(hasColorscale(trace, 'marker')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.color,\n containerStr: 'marker',\n cLetter: 'c'\n });\n }\n if(hasColorscale(trace, 'marker.line')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.line.color,\n containerStr: 'marker.line',\n cLetter: 'c'\n });\n }\n\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../components/colorscale/calc\":375,\"../../components/colorscale/helpers\":378,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"../scatter/calc_selection\":938,\"./arrays_to_calcdata\":656}],659:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // padding in pixels around text\n TEXTPAD: 3,\n // 'value' and 'label' are not really necessary for bar traces,\n // but they were made available to `texttemplate` (maybe by accident)\n // via tokens `%{value}` and `%{label}` starting in 1.50.0,\n // so let's include them in the event data also.\n eventDataKeys: ['value', 'label']\n};\n\n},{}],660:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\nvar Sieve = _dereq_('./sieve.js');\n\n/*\n * Bar chart stacking/grouping positioning and autoscaling calculations\n * for each direction separately calculate the ranges and positions\n * note that this handles histograms too\n * now doing this one subplot at a time\n */\n\nfunction crossTraceCalc(gd, plotinfo) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var fullLayout = gd._fullLayout;\n var fullTraces = gd._fullData;\n var calcTraces = gd.calcdata;\n var calcTracesHorz = [];\n var calcTracesVert = [];\n\n for(var i = 0; i < fullTraces.length; i++) {\n var fullTrace = fullTraces[i];\n if(\n fullTrace.visible === true &&\n Registry.traceIs(fullTrace, 'bar') &&\n fullTrace.xaxis === xa._id &&\n fullTrace.yaxis === ya._id\n ) {\n if(fullTrace.orientation === 'h') {\n calcTracesHorz.push(calcTraces[i]);\n } else {\n calcTracesVert.push(calcTraces[i]);\n }\n\n if(fullTrace._computePh) {\n var cd = gd.calcdata[i];\n for(var j = 0; j < cd.length; j++) {\n if(typeof cd[j].ph0 === 'function') cd[j].ph0 = cd[j].ph0();\n if(typeof cd[j].ph1 === 'function') cd[j].ph1 = cd[j].ph1();\n }\n }\n }\n }\n\n var opts = {\n xCat: xa.type === 'category' || xa.type === 'multicategory',\n yCat: ya.type === 'category' || ya.type === 'multicategory',\n\n mode: fullLayout.barmode,\n norm: fullLayout.barnorm,\n gap: fullLayout.bargap,\n groupgap: fullLayout.bargroupgap\n };\n\n setGroupPositions(gd, xa, ya, calcTracesVert, opts);\n setGroupPositions(gd, ya, xa, calcTracesHorz, opts);\n}\n\nfunction setGroupPositions(gd, pa, sa, calcTraces, opts) {\n if(!calcTraces.length) return;\n\n var excluded;\n var included;\n var i, calcTrace, fullTrace;\n\n initBase(sa, calcTraces);\n\n switch(opts.mode) {\n case 'overlay':\n setGroupPositionsInOverlayMode(pa, sa, calcTraces, opts);\n break;\n\n case 'group':\n // exclude from the group those traces for which the user set an offset\n excluded = [];\n included = [];\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n if(fullTrace.offset === undefined) included.push(calcTrace);\n else excluded.push(calcTrace);\n }\n\n if(included.length) {\n setGroupPositionsInGroupMode(gd, pa, sa, included, opts);\n }\n if(excluded.length) {\n setGroupPositionsInOverlayMode(pa, sa, excluded, opts);\n }\n break;\n\n case 'stack':\n case 'relative':\n // exclude from the stack those traces for which the user set a base\n excluded = [];\n included = [];\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n if(fullTrace.base === undefined) included.push(calcTrace);\n else excluded.push(calcTrace);\n }\n\n if(included.length) {\n setGroupPositionsInStackOrRelativeMode(gd, pa, sa, included, opts);\n }\n if(excluded.length) {\n setGroupPositionsInOverlayMode(pa, sa, excluded, opts);\n }\n break;\n }\n\n collectExtents(calcTraces, pa);\n}\n\nfunction initBase(sa, calcTraces) {\n var i, j;\n\n for(i = 0; i < calcTraces.length; i++) {\n var cd = calcTraces[i];\n var trace = cd[0].trace;\n var base = (trace.type === 'funnel') ? trace._base : trace.base;\n var b;\n\n // not sure if it really makes sense to have dates for bar size data...\n // ideally if we want to make gantt charts or something we'd treat\n // the actual size (trace.x or y) as time delta but base as absolute\n // time. But included here for completeness.\n var scalendar = trace.orientation === 'h' ? trace.xcalendar : trace.ycalendar;\n\n // 'base' on categorical axes makes no sense\n var d2c = sa.type === 'category' || sa.type === 'multicategory' ?\n function() { return null; } :\n sa.d2c;\n\n if(isArrayOrTypedArray(base)) {\n for(j = 0; j < Math.min(base.length, cd.length); j++) {\n b = d2c(base[j], 0, scalendar);\n if(isNumeric(b)) {\n cd[j].b = +b;\n cd[j].hasB = 1;\n } else cd[j].b = 0;\n }\n for(; j < cd.length; j++) {\n cd[j].b = 0;\n }\n } else {\n b = d2c(base, 0, scalendar);\n var hasBase = isNumeric(b);\n b = hasBase ? b : 0;\n for(j = 0; j < cd.length; j++) {\n cd[j].b = b;\n if(hasBase) cd[j].hasB = 1;\n }\n }\n }\n}\n\nfunction setGroupPositionsInOverlayMode(pa, sa, calcTraces, opts) {\n // update position axis and set bar offsets and widths\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n\n var sieve = new Sieve([calcTrace], {\n posAxis: pa,\n sepNegVal: false,\n overlapNoMerge: !opts.norm\n });\n\n // set bar offsets and widths, and update position axis\n setOffsetAndWidth(pa, sieve, opts);\n\n // set bar bases and sizes, and update size axis\n //\n // (note that `setGroupPositionsInOverlayMode` handles the case barnorm\n // is defined, because this function is also invoked for traces that\n // can't be grouped or stacked)\n if(opts.norm) {\n sieveBars(sieve);\n normalizeBars(sa, sieve, opts);\n } else {\n setBaseAndTop(sa, sieve);\n }\n }\n}\n\nfunction setGroupPositionsInGroupMode(gd, pa, sa, calcTraces, opts) {\n var sieve = new Sieve(calcTraces, {\n posAxis: pa,\n sepNegVal: false,\n overlapNoMerge: !opts.norm\n });\n\n // set bar offsets and widths, and update position axis\n setOffsetAndWidthInGroupMode(gd, pa, sieve, opts);\n\n // relative-stack bars within the same trace that would otherwise\n // be hidden\n unhideBarsWithinTrace(sieve, pa);\n\n // set bar bases and sizes, and update size axis\n if(opts.norm) {\n sieveBars(sieve);\n normalizeBars(sa, sieve, opts);\n } else {\n setBaseAndTop(sa, sieve);\n }\n}\n\nfunction setGroupPositionsInStackOrRelativeMode(gd, pa, sa, calcTraces, opts) {\n var sieve = new Sieve(calcTraces, {\n posAxis: pa,\n sepNegVal: opts.mode === 'relative',\n overlapNoMerge: !(opts.norm || opts.mode === 'stack' || opts.mode === 'relative')\n });\n\n // set bar offsets and widths, and update position axis\n setOffsetAndWidth(pa, sieve, opts);\n\n // set bar bases and sizes, and update size axis\n stackBars(sa, sieve, opts);\n\n // flag the outmost bar (for text display purposes)\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n var isOutmostBar = ((bar.b + bar.s) === sieve.get(bar.p, bar.s));\n if(isOutmostBar) bar._outmost = true;\n }\n }\n }\n\n // Note that marking the outmost bars has to be done\n // before `normalizeBars` changes `bar.b` and `bar.s`.\n if(opts.norm) normalizeBars(sa, sieve, opts);\n}\n\nfunction setOffsetAndWidth(pa, sieve, opts) {\n var minDiff = sieve.minDiff;\n var calcTraces = sieve.traces;\n\n // set bar offsets and widths\n var barGroupWidth = minDiff * (1 - opts.gap);\n var barWidthPlusGap = barGroupWidth;\n var barWidth = barWidthPlusGap * (1 - (opts.groupgap || 0));\n\n // computer bar group center and bar offset\n var offsetFromCenter = -barWidth / 2;\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var t = calcTrace[0].t;\n\n // store bar width and offset for this trace\n t.barwidth = barWidth;\n t.poffset = offsetFromCenter;\n t.bargroupwidth = barGroupWidth;\n t.bardelta = minDiff;\n }\n\n // stack bars that only differ by rounding\n sieve.binWidth = calcTraces[0][0].t.barwidth / 100;\n\n // if defined, apply trace offset and width\n applyAttributes(sieve);\n\n // store the bar center in each calcdata item\n setBarCenterAndWidth(pa, sieve);\n\n // update position axes\n updatePositionAxis(pa, sieve);\n}\n\nfunction setOffsetAndWidthInGroupMode(gd, pa, sieve, opts) {\n var fullLayout = gd._fullLayout;\n var positions = sieve.positions;\n var distinctPositions = sieve.distinctPositions;\n var minDiff = sieve.minDiff;\n var calcTraces = sieve.traces;\n var nTraces = calcTraces.length;\n\n // if there aren't any overlapping positions,\n // let them have full width even if mode is group\n var overlap = (positions.length !== distinctPositions.length);\n var barGroupWidth = minDiff * (1 - opts.gap);\n\n var groupId = getAxisGroup(fullLayout, pa._id) + calcTraces[0][0].trace.orientation;\n var alignmentGroups = fullLayout._alignmentOpts[groupId] || {};\n\n for(var i = 0; i < nTraces; i++) {\n var calcTrace = calcTraces[i];\n var trace = calcTrace[0].trace;\n\n var alignmentGroupOpts = alignmentGroups[trace.alignmentgroup] || {};\n var nOffsetGroups = Object.keys(alignmentGroupOpts.offsetGroups || {}).length;\n\n var barWidthPlusGap;\n if(nOffsetGroups) {\n barWidthPlusGap = barGroupWidth / nOffsetGroups;\n } else {\n barWidthPlusGap = overlap ? barGroupWidth / nTraces : barGroupWidth;\n }\n\n var barWidth = barWidthPlusGap * (1 - (opts.groupgap || 0));\n\n var offsetFromCenter;\n if(nOffsetGroups) {\n offsetFromCenter = ((2 * trace._offsetIndex + 1 - nOffsetGroups) * barWidthPlusGap - barWidth) / 2;\n } else {\n offsetFromCenter = overlap ?\n ((2 * i + 1 - nTraces) * barWidthPlusGap - barWidth) / 2 :\n -barWidth / 2;\n }\n\n var t = calcTrace[0].t;\n t.barwidth = barWidth;\n t.poffset = offsetFromCenter;\n t.bargroupwidth = barGroupWidth;\n t.bardelta = minDiff;\n }\n\n // stack bars that only differ by rounding\n sieve.binWidth = calcTraces[0][0].t.barwidth / 100;\n\n // if defined, apply trace width\n applyAttributes(sieve);\n\n // store the bar center in each calcdata item\n setBarCenterAndWidth(pa, sieve);\n\n // update position axes\n updatePositionAxis(pa, sieve, overlap);\n}\n\nfunction applyAttributes(sieve) {\n var calcTraces = sieve.traces;\n var i, j;\n\n for(i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var calcTrace0 = calcTrace[0];\n var fullTrace = calcTrace0.trace;\n var t = calcTrace0.t;\n var offset = fullTrace._offset || fullTrace.offset;\n var initialPoffset = t.poffset;\n var newPoffset;\n\n if(isArrayOrTypedArray(offset)) {\n // if offset is an array, then clone it into t.poffset.\n newPoffset = Array.prototype.slice.call(offset, 0, calcTrace.length);\n\n // guard against non-numeric items\n for(j = 0; j < newPoffset.length; j++) {\n if(!isNumeric(newPoffset[j])) {\n newPoffset[j] = initialPoffset;\n }\n }\n\n // if the length of the array is too short,\n // then extend it with the initial value of t.poffset\n for(j = newPoffset.length; j < calcTrace.length; j++) {\n newPoffset.push(initialPoffset);\n }\n\n t.poffset = newPoffset;\n } else if(offset !== undefined) {\n t.poffset = offset;\n }\n\n var width = fullTrace._width || fullTrace.width;\n var initialBarwidth = t.barwidth;\n\n if(isArrayOrTypedArray(width)) {\n // if width is an array, then clone it into t.barwidth.\n var newBarwidth = Array.prototype.slice.call(width, 0, calcTrace.length);\n\n // guard against non-numeric items\n for(j = 0; j < newBarwidth.length; j++) {\n if(!isNumeric(newBarwidth[j])) newBarwidth[j] = initialBarwidth;\n }\n\n // if the length of the array is too short,\n // then extend it with the initial value of t.barwidth\n for(j = newBarwidth.length; j < calcTrace.length; j++) {\n newBarwidth.push(initialBarwidth);\n }\n\n t.barwidth = newBarwidth;\n\n // if user didn't set offset,\n // then correct t.poffset to ensure bars remain centered\n if(offset === undefined) {\n newPoffset = [];\n for(j = 0; j < calcTrace.length; j++) {\n newPoffset.push(\n initialPoffset + (initialBarwidth - newBarwidth[j]) / 2\n );\n }\n t.poffset = newPoffset;\n }\n } else if(width !== undefined) {\n t.barwidth = width;\n\n // if user didn't set offset,\n // then correct t.poffset to ensure bars remain centered\n if(offset === undefined) {\n t.poffset = initialPoffset + (initialBarwidth - width) / 2;\n }\n }\n }\n}\n\nfunction setBarCenterAndWidth(pa, sieve) {\n var calcTraces = sieve.traces;\n var pLetter = getAxisLetter(pa);\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var t = calcTrace[0].t;\n var poffset = t.poffset;\n var poffsetIsArray = Array.isArray(poffset);\n var barwidth = t.barwidth;\n var barwidthIsArray = Array.isArray(barwidth);\n\n for(var j = 0; j < calcTrace.length; j++) {\n var calcBar = calcTrace[j];\n\n // store the actual bar width and position, for use by hover\n var width = calcBar.w = barwidthIsArray ? barwidth[j] : barwidth;\n calcBar[pLetter] = calcBar.p + (poffsetIsArray ? poffset[j] : poffset) + width / 2;\n }\n }\n}\n\nfunction updatePositionAxis(pa, sieve, allowMinDtick) {\n var calcTraces = sieve.traces;\n var minDiff = sieve.minDiff;\n var vpad = minDiff / 2;\n\n Axes.minDtick(pa, sieve.minDiff, sieve.distinctPositions[0], allowMinDtick);\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var calcTrace0 = calcTrace[0];\n var fullTrace = calcTrace0.trace;\n var pts = [];\n var bar, l, r, j;\n\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n l = bar.p - vpad;\n r = bar.p + vpad;\n pts.push(l, r);\n }\n\n if(fullTrace.width || fullTrace.offset) {\n var t = calcTrace0.t;\n var poffset = t.poffset;\n var barwidth = t.barwidth;\n var poffsetIsArray = Array.isArray(poffset);\n var barwidthIsArray = Array.isArray(barwidth);\n\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n var calcBarOffset = poffsetIsArray ? poffset[j] : poffset;\n var calcBarWidth = barwidthIsArray ? barwidth[j] : barwidth;\n l = bar.p + calcBarOffset;\n r = l + calcBarWidth;\n pts.push(l, r);\n }\n }\n\n fullTrace._extremes[pa._id] = Axes.findExtremes(pa, pts, {padded: false});\n }\n}\n\n// store these bar bases and tops in calcdata\n// and make sure the size axis includes zero,\n// along with the bases and tops of each bar.\nfunction setBaseAndTop(sa, sieve) {\n var calcTraces = sieve.traces;\n var sLetter = getAxisLetter(sa);\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var fullTrace = calcTrace[0].trace;\n var pts = [];\n var tozero = false;\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n var base = bar.b;\n var top = base + bar.s;\n\n bar[sLetter] = top;\n pts.push(top);\n if(bar.hasB) pts.push(base);\n\n if(!bar.hasB || !bar.b) {\n tozero = true;\n }\n }\n\n fullTrace._extremes[sa._id] = Axes.findExtremes(sa, pts, {\n tozero: tozero,\n padded: true\n });\n }\n}\n\nfunction stackBars(sa, sieve, opts) {\n var sLetter = getAxisLetter(sa);\n var calcTraces = sieve.traces;\n var calcTrace;\n var fullTrace;\n var isFunnel;\n var i, j;\n var bar;\n\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n if(fullTrace.type === 'funnel') {\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n // create base of funnels\n sieve.put(bar.p, -0.5 * bar.s);\n }\n }\n }\n }\n\n for(i = 0; i < calcTraces.length; i++) {\n calcTrace = calcTraces[i];\n fullTrace = calcTrace[0].trace;\n\n isFunnel = (fullTrace.type === 'funnel');\n\n var pts = [];\n\n for(j = 0; j < calcTrace.length; j++) {\n bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n // stack current bar and get previous sum\n var value;\n if(isFunnel) {\n value = bar.s;\n } else {\n value = bar.s + bar.b;\n }\n\n var base = sieve.put(bar.p, value);\n\n var top = base + value;\n\n // store the bar base and top in each calcdata item\n bar.b = base;\n bar[sLetter] = top;\n\n if(!opts.norm) {\n pts.push(top);\n if(bar.hasB) {\n pts.push(base);\n }\n }\n }\n }\n\n // if barnorm is set, let normalizeBars update the axis range\n if(!opts.norm) {\n fullTrace._extremes[sa._id] = Axes.findExtremes(sa, pts, {\n // N.B. we don't stack base with 'base',\n // so set tozero:true always!\n tozero: true,\n padded: true\n });\n }\n }\n}\n\nfunction sieveBars(sieve) {\n var calcTraces = sieve.traces;\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n sieve.put(bar.p, bar.b + bar.s);\n }\n }\n }\n}\n\nfunction unhideBarsWithinTrace(sieve, pa) {\n var calcTraces = sieve.traces;\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var fullTrace = calcTrace[0].trace;\n\n if(fullTrace.base === undefined) {\n var inTraceSieve = new Sieve([calcTrace], {\n posAxis: pa,\n sepNegVal: true,\n overlapNoMerge: true\n });\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.p !== BADNUM) {\n // stack current bar and get previous sum\n var base = inTraceSieve.put(bar.p, bar.b + bar.s);\n\n // if previous sum if non-zero, this means:\n // multiple bars have same starting point are potentially hidden,\n // shift them vertically so that all bars are visible by default\n if(base) bar.b = base;\n }\n }\n }\n }\n}\n\n// Note:\n//\n// normalizeBars requires that either sieveBars or stackBars has been\n// previously invoked.\nfunction normalizeBars(sa, sieve, opts) {\n var calcTraces = sieve.traces;\n var sLetter = getAxisLetter(sa);\n var sTop = opts.norm === 'fraction' ? 1 : 100;\n var sTiny = sTop / 1e9; // in case of rounding error in sum\n var sMin = sa.l2c(sa.c2l(0));\n var sMax = opts.mode === 'stack' ? sTop : sMin;\n\n function needsPadding(v) {\n return (\n isNumeric(sa.c2l(v)) &&\n ((v < sMin - sTiny) || (v > sMax + sTiny) || !isNumeric(sMin))\n );\n }\n\n for(var i = 0; i < calcTraces.length; i++) {\n var calcTrace = calcTraces[i];\n var fullTrace = calcTrace[0].trace;\n var pts = [];\n var tozero = false;\n var padded = false;\n\n for(var j = 0; j < calcTrace.length; j++) {\n var bar = calcTrace[j];\n\n if(bar.s !== BADNUM) {\n var scale = Math.abs(sTop / sieve.get(bar.p, bar.s));\n bar.b *= scale;\n bar.s *= scale;\n\n var base = bar.b;\n var top = base + bar.s;\n\n bar[sLetter] = top;\n pts.push(top);\n padded = padded || needsPadding(top);\n\n if(bar.hasB) {\n pts.push(base);\n padded = padded || needsPadding(base);\n }\n\n if(!bar.hasB || !bar.b) {\n tozero = true;\n }\n }\n }\n\n fullTrace._extremes[sa._id] = Axes.findExtremes(sa, pts, {\n tozero: tozero,\n padded: padded\n });\n }\n}\n\n// find the full position span of bars at each position\n// for use by hover, to ensure labels move in if bars are\n// narrower than the space they're in.\n// run once per trace group (subplot & direction) and\n// the same mapping is attached to all calcdata traces\nfunction collectExtents(calcTraces, pa) {\n var pLetter = getAxisLetter(pa);\n var extents = {};\n var i, j, cd;\n\n var pMin = Infinity;\n var pMax = -Infinity;\n\n for(i = 0; i < calcTraces.length; i++) {\n cd = calcTraces[i];\n for(j = 0; j < cd.length; j++) {\n var p = cd[j].p;\n if(isNumeric(p)) {\n pMin = Math.min(pMin, p);\n pMax = Math.max(pMax, p);\n }\n }\n }\n\n // this is just for positioning of hover labels, and nobody will care if\n // the label is 1px too far out; so round positions to 1/10K in case\n // position values don't exactly match from trace to trace\n var roundFactor = 10000 / (pMax - pMin);\n var round = extents.round = function(p) {\n return String(Math.round(roundFactor * (p - pMin)));\n };\n\n for(i = 0; i < calcTraces.length; i++) {\n cd = calcTraces[i];\n cd[0].t.extents = extents;\n\n var poffset = cd[0].t.poffset;\n var poffsetIsArray = Array.isArray(poffset);\n\n for(j = 0; j < cd.length; j++) {\n var di = cd[j];\n var p0 = di[pLetter] - di.w / 2;\n\n if(isNumeric(p0)) {\n var p1 = di[pLetter] + di.w / 2;\n var pVal = round(di.p);\n if(extents[pVal]) {\n extents[pVal] = [Math.min(p0, extents[pVal][0]), Math.max(p1, extents[pVal][1])];\n } else {\n extents[pVal] = [p0, p1];\n }\n }\n\n di.p0 = di.p + (poffsetIsArray ? poffset[j] : poffset);\n di.p1 = di.p0 + di.w;\n di.s0 = di.b;\n di.s1 = di.s0 + di.s;\n }\n }\n}\n\nfunction getAxisLetter(ax) {\n return ax._id.charAt(0);\n}\n\nmodule.exports = {\n crossTraceCalc: crossTraceCalc,\n setGroupPositions: setGroupPositions\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/constraints\":574,\"../../registry\":647,\"./sieve.js\":670,\"fast-isnumeric\":190}],661:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Registry = _dereq_('../../registry');\n\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleStyleDefaults = _dereq_('./style_defaults');\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\nvar attributes = _dereq_('./attributes');\n\nvar coerceFont = Lib.coerceFont;\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('orientation', (traceOut.x && !traceOut.y) ? 'h' : 'v');\n coerce('base');\n coerce('offset');\n coerce('width');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: true,\n moduleHasUnselected: true,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout);\n\n var lineColor = (traceOut.marker.line || {}).color;\n\n // override defaultColor for error bars with defaultLine\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'x', inherit: 'y'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n}\n\nfunction handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce) {\n var orientation = traceOut.orientation;\n // N.B. grouping is done across all trace types that support it\n var posAxId = traceOut[{v: 'x', h: 'y'}[orientation] + 'axis'];\n var groupId = getAxisGroup(fullLayout, posAxId) + orientation;\n\n var alignmentOpts = fullLayout._alignmentOpts || {};\n var alignmentgroup = coerce('alignmentgroup');\n\n var alignmentGroups = alignmentOpts[groupId];\n if(!alignmentGroups) alignmentGroups = alignmentOpts[groupId] = {};\n\n var alignmentGroupOpts = alignmentGroups[alignmentgroup];\n\n if(alignmentGroupOpts) {\n alignmentGroupOpts.traces.push(traceOut);\n } else {\n alignmentGroupOpts = alignmentGroups[alignmentgroup] = {\n traces: [traceOut],\n alignmentIndex: Object.keys(alignmentGroups).length,\n offsetGroups: {}\n };\n }\n\n var offsetgroup = coerce('offsetgroup');\n var offsetGroups = alignmentGroupOpts.offsetGroups;\n var offsetGroupOpts = offsetGroups[offsetgroup];\n\n if(offsetgroup) {\n if(!offsetGroupOpts) {\n offsetGroupOpts = offsetGroups[offsetgroup] = {\n offsetIndex: Object.keys(offsetGroups).length\n };\n }\n\n traceOut._offsetIndex = offsetGroupOpts.offsetIndex;\n }\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n if(fullLayout.barmode === 'group') {\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n\n if(traceOut.type === 'bar') {\n traceIn = traceOut._input;\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n }\n}\n\nfunction handleText(traceIn, traceOut, layout, coerce, textposition, opts) {\n opts = opts || {};\n var moduleHasSelected = !(opts.moduleHasSelected === false);\n var moduleHasUnselected = !(opts.moduleHasUnselected === false);\n var moduleHasConstrain = !(opts.moduleHasConstrain === false);\n var moduleHasCliponaxis = !(opts.moduleHasCliponaxis === false);\n var moduleHasTextangle = !(opts.moduleHasTextangle === false);\n var moduleHasInsideanchor = !(opts.moduleHasInsideanchor === false);\n var hasPathbar = !!opts.hasPathbar;\n\n var hasBoth = Array.isArray(textposition) || textposition === 'auto';\n var hasInside = hasBoth || textposition === 'inside';\n var hasOutside = hasBoth || textposition === 'outside';\n\n if(hasInside || hasOutside) {\n var dfltFont = coerceFont(coerce, 'textfont', layout.font);\n\n // Note that coercing `insidetextfont` is always needed –\n // even if `textposition` is `outside` for each trace – since\n // an outside label can become an inside one, for example because\n // of a bar being stacked on top of it.\n var insideTextFontDefault = Lib.extendFlat({}, dfltFont);\n var isTraceTextfontColorSet = traceIn.textfont && traceIn.textfont.color;\n var isColorInheritedFromLayoutFont = !isTraceTextfontColorSet;\n if(isColorInheritedFromLayoutFont) {\n delete insideTextFontDefault.color;\n }\n coerceFont(coerce, 'insidetextfont', insideTextFontDefault);\n\n if(hasPathbar) {\n var pathbarTextFontDefault = Lib.extendFlat({}, dfltFont);\n if(isColorInheritedFromLayoutFont) {\n delete pathbarTextFontDefault.color;\n }\n coerceFont(coerce, 'pathbar.textfont', pathbarTextFontDefault);\n }\n\n if(hasOutside) coerceFont(coerce, 'outsidetextfont', dfltFont);\n\n if(moduleHasSelected) coerce('selected.textfont.color');\n if(moduleHasUnselected) coerce('unselected.textfont.color');\n if(moduleHasConstrain) coerce('constraintext');\n if(moduleHasCliponaxis) coerce('cliponaxis');\n if(moduleHasTextangle) coerce('textangle');\n\n coerce('texttemplate');\n }\n\n if(hasInside) {\n if(moduleHasInsideanchor) coerce('insidetextanchor');\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults,\n handleGroupingDefaults: handleGroupingDefaults,\n handleText: handleText\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plots/cartesian/constraints\":574,\"../../registry\":647,\"../scatter/period_defaults\":956,\"../scatter/xy_defaults\":963,\"./attributes\":657,\"./style_defaults\":672}],662:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n if(trace.orientation === 'h') {\n out.label = out.y;\n out.value = out.x;\n } else {\n out.label = out.x;\n out.value = out.y;\n }\n\n return out;\n};\n\n},{}],663:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nexports.coerceString = function(attributeDefinition, value, defaultValue) {\n if(typeof value === 'string') {\n if(value || !attributeDefinition.noBlank) return value;\n } else if(typeof value === 'number' || value === true) {\n if(!attributeDefinition.strict) return String(value);\n }\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.coerceNumber = function(attributeDefinition, value, defaultValue) {\n if(isNumeric(value)) {\n value = +value;\n\n var min = attributeDefinition.min;\n var max = attributeDefinition.max;\n var isOutOfBounds = (min !== undefined && value < min) ||\n (max !== undefined && value > max);\n\n if(!isOutOfBounds) return value;\n }\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.coerceColor = function(attributeDefinition, value, defaultValue) {\n if(tinycolor(value).isValid()) return value;\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.coerceEnumerated = function(attributeDefinition, value, defaultValue) {\n if(attributeDefinition.coerceNumber) value = +value;\n\n if(attributeDefinition.values.indexOf(value) !== -1) return value;\n\n return (defaultValue !== undefined) ?\n defaultValue :\n attributeDefinition.dflt;\n};\n\nexports.getValue = function(arrayOrScalar, index) {\n var value;\n if(!Array.isArray(arrayOrScalar)) value = arrayOrScalar;\n else if(index < arrayOrScalar.length) value = arrayOrScalar[index];\n return value;\n};\n\nexports.getLineWidth = function(trace, di) {\n var w =\n (0 < di.mlw) ? di.mlw :\n !isArrayOrTypedArray(trace.marker.line.width) ? trace.marker.line.width :\n 0;\n\n return w;\n};\n\n},{\"../../lib\":515,\"fast-isnumeric\":190,\"tinycolor2\":313}],664:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../../components/color');\n\nvar fillText = _dereq_('../../lib').fillText;\nvar getLineWidth = _dereq_('./helpers').getLineWidth;\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction hoverPoints(pointData, xval, yval, hovermode, opts) {\n var barPointData = hoverOnBars(pointData, xval, yval, hovermode, opts);\n\n if(barPointData) {\n var cd = barPointData.cd;\n var trace = cd[0].trace;\n var di = cd[barPointData.index];\n\n barPointData.color = getTraceColor(trace, di);\n Registry.getComponentMethod('errorbars', 'hoverInfo')(di, trace, barPointData);\n\n return [barPointData];\n }\n}\n\nfunction hoverOnBars(pointData, xval, yval, hovermode, opts) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var t = cd[0].t;\n var isClosest = (hovermode === 'closest');\n var isWaterfall = (trace.type === 'waterfall');\n var maxHoverDistance = pointData.maxHoverDistance;\n var maxSpikeDistance = pointData.maxSpikeDistance;\n\n var posVal, sizeVal, posLetter, sizeLetter, dx, dy, pRangeCalc;\n\n if(trace.orientation === 'h') {\n posVal = yval;\n sizeVal = xval;\n posLetter = 'y';\n sizeLetter = 'x';\n dx = sizeFn;\n dy = positionFn;\n } else {\n posVal = xval;\n sizeVal = yval;\n posLetter = 'x';\n sizeLetter = 'y';\n dy = sizeFn;\n dx = positionFn;\n }\n\n var period = trace[posLetter + 'period'];\n var isClosestOrPeriod = isClosest || period;\n\n function thisBarMinPos(di) { return thisBarExtPos(di, -1); }\n function thisBarMaxPos(di) { return thisBarExtPos(di, 1); }\n\n function thisBarExtPos(di, sgn) {\n var w = di.w;\n\n return di[posLetter] + sgn * w / 2;\n }\n\n function periodLength(di) {\n return di[posLetter + 'End'] - di[posLetter + 'Start'];\n }\n\n var minPos = isClosest ?\n thisBarMinPos : period ?\n function(di) {\n return di.p - periodLength(di) / 2;\n } :\n function(di) {\n /*\n * In compare mode, accept a bar if you're on it *or* its group.\n * Nearly always it's the group that matters, but in case the bar\n * was explicitly set wider than its group we'd better accept the\n * whole bar.\n *\n * use `bardelta` instead of `bargroupwidth` so we accept hover\n * in the gap. That way hover doesn't flash on and off as you\n * mouse over the plot in compare modes.\n * In 'closest' mode though the flashing seems inevitable,\n * without far more complex logic\n */\n return Math.min(thisBarMinPos(di), di.p - t.bardelta / 2);\n };\n\n var maxPos = isClosest ?\n thisBarMaxPos : period ?\n function(di) {\n return di.p + periodLength(di) / 2;\n } :\n function(di) {\n return Math.max(thisBarMaxPos(di), di.p + t.bardelta / 2);\n };\n\n function inbox(_minPos, _maxPos, maxDistance) {\n if(opts.finiteRange) maxDistance = 0;\n\n // add a little to the pseudo-distance for wider bars, so that like scatter,\n // if you are over two overlapping bars, the narrower one wins.\n return Fx.inbox(_minPos - posVal, _maxPos - posVal,\n maxDistance + Math.min(1, Math.abs(_maxPos - _minPos) / pRangeCalc) - 1);\n }\n\n function positionFn(di) {\n return inbox(minPos(di), maxPos(di), maxHoverDistance);\n }\n\n function thisBarPositionFn(di) {\n return inbox(thisBarMinPos(di), thisBarMaxPos(di), maxSpikeDistance);\n }\n\n function getSize(di) {\n var s = di[sizeLetter];\n\n if(isWaterfall) {\n var rawS = Math.abs(di.rawS) || 0;\n if(sizeVal > 0) {\n s += rawS;\n } else if(sizeVal < 0) {\n s -= rawS;\n }\n }\n\n return s;\n }\n\n function sizeFn(di) {\n var v = sizeVal;\n var b = di.b;\n var s = getSize(di);\n\n // add a gradient so hovering near the end of a\n // bar makes it a little closer match\n return Fx.inbox(b - v, s - v, maxHoverDistance + (s - v) / (s - b) - 1);\n }\n\n function thisBarSizeFn(di) {\n var v = sizeVal;\n var b = di.b;\n var s = getSize(di);\n\n // add a gradient so hovering near the end of a\n // bar makes it a little closer match\n return Fx.inbox(b - v, s - v, maxSpikeDistance + (s - v) / (s - b) - 1);\n }\n\n var pa = pointData[posLetter + 'a'];\n var sa = pointData[sizeLetter + 'a'];\n\n pRangeCalc = Math.abs(pa.r2c(pa.range[1]) - pa.r2c(pa.range[0]));\n\n function dxy(di) { return (dx(di) + dy(di)) / 2; }\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n Fx.getClosest(cd, distfn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index === false) return;\n\n // skip points inside axis rangebreaks\n if(cd[pointData.index].p === BADNUM) return;\n\n // if we get here and we're not in 'closest' mode, push min/max pos back\n // onto the group - even though that means occasionally the mouse will be\n // over the hover label.\n if(!isClosestOrPeriod) {\n minPos = function(di) {\n return Math.min(thisBarMinPos(di), di.p - t.bargroupwidth / 2);\n };\n maxPos = function(di) {\n return Math.max(thisBarMaxPos(di), di.p + t.bargroupwidth / 2);\n };\n }\n\n // the closest data point\n var index = pointData.index;\n var di = cd[index];\n\n var size = (trace.base) ? di.b + di.s : di.s;\n pointData[sizeLetter + '0'] = pointData[sizeLetter + '1'] = sa.c2p(di[sizeLetter], true);\n pointData[sizeLetter + 'LabelVal'] = size;\n\n var extent = t.extents[t.extents.round(di.p)];\n pointData[posLetter + '0'] = pa.c2p(isClosest ? minPos(di) : extent[0], true);\n pointData[posLetter + '1'] = pa.c2p(isClosest ? maxPos(di) : extent[1], true);\n\n var hasPeriod = di.orig_p !== undefined;\n pointData[posLetter + 'LabelVal'] = hasPeriod ? di.orig_p : di.p;\n\n pointData.labelLabel = hoverLabelText(pa, pointData[posLetter + 'LabelVal'], trace[posLetter + 'hoverformat']);\n pointData.valueLabel = hoverLabelText(sa, pointData[sizeLetter + 'LabelVal'], trace[sizeLetter + 'hoverformat']);\n pointData.baseLabel = hoverLabelText(sa, di.b, trace[sizeLetter + 'hoverformat']);\n\n // spikelines always want \"closest\" distance regardless of hovermode\n pointData.spikeDistance = (thisBarSizeFn(di) + thisBarPositionFn(di)) / 2;\n // they also want to point to the data value, regardless of where the label goes\n // in case of bars shifted within groups\n pointData[posLetter + 'Spike'] = pa.c2p(di.p, true);\n\n fillText(di, trace, pointData);\n pointData.hovertemplate = trace.hovertemplate;\n\n return pointData;\n}\n\nfunction getTraceColor(trace, di) {\n var mc = di.mcc || trace.marker.color;\n var mlc = di.mlcc || trace.marker.line.color;\n var mlw = getLineWidth(trace, di);\n\n if(Color.opacity(mc)) return mc;\n else if(Color.opacity(mlc) && mlw) return mlc;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n hoverOnBars: hoverOnBars,\n getTraceColor: getTraceColor\n};\n\n},{\"../../components/color\":367,\"../../components/fx\":407,\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"./helpers\":663}],665:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc').crossTraceCalc,\n colorbar: _dereq_('../scatter/marker_colorbar'),\n arraysToCalcdata: _dereq_('./arrays_to_calcdata'),\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'bar',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'bar', 'oriented', 'errorBarsOK', 'showLegend', 'zoomScale'],\n animatable: true,\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../scatter/marker_colorbar\":954,\"./arrays_to_calcdata\":656,\"./attributes\":657,\"./calc\":658,\"./cross_trace_calc\":660,\"./defaults\":661,\"./event_data\":662,\"./hover\":664,\"./layout_attributes\":666,\"./layout_defaults\":667,\"./plot\":668,\"./select\":669,\"./style\":671}],666:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n barmode: {\n valType: 'enumerated',\n values: ['stack', 'group', 'overlay', 'relative'],\n dflt: 'group',\n editType: 'calc',\n },\n barnorm: {\n valType: 'enumerated',\n values: ['', 'fraction', 'percent'],\n dflt: '',\n editType: 'calc',\n },\n bargap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n bargroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n }\n};\n\n},{}],667:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n var hasBars = false;\n var shouldBeGapless = false;\n var gappedAnyway = false;\n var usedSubplots = {};\n\n var mode = coerce('barmode');\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(Registry.traceIs(trace, 'bar') && trace.visible) hasBars = true;\n else continue;\n\n // if we have at least 2 grouped bar traces on the same subplot,\n // we should default to a gap anyway, even if the data is histograms\n if(mode === 'group') {\n var subploti = trace.xaxis + trace.yaxis;\n if(usedSubplots[subploti]) gappedAnyway = true;\n usedSubplots[subploti] = true;\n }\n\n if(trace.visible && trace.type === 'histogram') {\n var pa = Axes.getFromId({_fullLayout: layoutOut},\n trace[trace.orientation === 'v' ? 'xaxis' : 'yaxis']);\n if(pa.type !== 'category') shouldBeGapless = true;\n }\n }\n\n if(!hasBars) {\n delete layoutOut.barmode;\n return;\n }\n\n if(mode !== 'overlay') coerce('barnorm');\n\n coerce('bargap', (shouldBeGapless && !gappedAnyway) ? 0 : 0.2);\n coerce('bargroupgap');\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"./layout_attributes\":666}],668:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Registry = _dereq_('../../registry');\nvar tickText = _dereq_('../../plots/cartesian/axes').tickText;\n\nvar uniformText = _dereq_('./uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\n\nvar style = _dereq_('./style');\nvar helpers = _dereq_('./helpers');\nvar constants = _dereq_('./constants');\nvar attributes = _dereq_('./attributes');\n\nvar attributeText = attributes.text;\nvar attributeTextPosition = attributes.textposition;\n\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar TEXTPAD = constants.TEXTPAD;\n\nfunction keyFunc(d) {return d.id;}\nfunction getKeyFunc(trace) {\n if(trace.ids) {\n return keyFunc;\n }\n}\n\nfunction dirSign(a, b) {\n return (a < b) ? 1 : -1;\n}\n\nfunction getXY(di, xa, ya, isHorizontal) {\n var s = [];\n var p = [];\n\n var sAxis = isHorizontal ? xa : ya;\n var pAxis = isHorizontal ? ya : xa;\n\n s[0] = sAxis.c2p(di.s0, true);\n p[0] = pAxis.c2p(di.p0, true);\n\n s[1] = sAxis.c2p(di.s1, true);\n p[1] = pAxis.c2p(di.p1, true);\n\n return isHorizontal ? [s, p] : [p, s];\n}\n\nfunction transition(selection, fullLayout, opts, makeOnCompleteCallback) {\n if(!fullLayout.uniformtext.mode && hasTransition(opts)) {\n var onComplete;\n if(makeOnCompleteCallback) {\n onComplete = makeOnCompleteCallback();\n }\n return selection\n .transition()\n .duration(opts.duration)\n .ease(opts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); });\n } else {\n return selection;\n }\n}\n\nfunction hasTransition(transitionOpts) {\n return transitionOpts && transitionOpts.duration > 0;\n}\n\nfunction plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var fullLayout = gd._fullLayout;\n\n if(!opts) {\n opts = {\n mode: fullLayout.barmode,\n norm: fullLayout.barmode,\n gap: fullLayout.bargap,\n groupgap: fullLayout.bargroupgap\n };\n\n // don't clear bar when this is called from waterfall or funnel\n clearMinTextSize('bar', fullLayout);\n }\n\n var bartraces = Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n var isWaterfall = (trace.type === 'waterfall');\n var isFunnel = (trace.type === 'funnel');\n var isBar = (trace.type === 'bar');\n var shouldDisplayZeros = (isBar || isFunnel);\n\n var adjustPixel = 0;\n if(isWaterfall && trace.connector.visible && trace.connector.mode === 'between') {\n adjustPixel = trace.connector.line.width / 2;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n var withTransition = hasTransition(opts);\n\n var pointGroup = Lib.ensureSingle(plotGroup, 'g', 'points');\n\n var keyFunc = getKeyFunc(trace);\n var bars = pointGroup.selectAll('g.point').data(Lib.identity, keyFunc);\n\n bars.enter().append('g')\n .classed('point', true);\n\n bars.exit().remove();\n\n bars.each(function(di, i) {\n var bar = d3.select(this);\n\n // now display the bar\n // clipped xf/yf (2nd arg true): non-positive\n // log values go off-screen by plotwidth\n // so you see them continue if you drag the plot\n var xy = getXY(di, xa, ya, isHorizontal);\n\n var x0 = xy[0][0];\n var x1 = xy[0][1];\n var y0 = xy[1][0];\n var y1 = xy[1][1];\n\n // empty bars\n var isBlank = (isHorizontal ? x1 - x0 : y1 - y0) === 0;\n\n // display zeros if line.width > 0\n if(isBlank && shouldDisplayZeros && helpers.getLineWidth(trace, di)) {\n isBlank = false;\n }\n\n // skip nulls\n if(!isBlank) {\n isBlank = (\n !isNumeric(x0) ||\n !isNumeric(x1) ||\n !isNumeric(y0) ||\n !isNumeric(y1)\n );\n }\n\n // record isBlank\n di.isBlank = isBlank;\n\n // for blank bars, ensure start and end positions are equal - important for smooth transitions\n if(isBlank) {\n if(isHorizontal) {\n x1 = x0;\n } else {\n y1 = y0;\n }\n }\n\n // in waterfall mode `between` we need to adjust bar end points to match the connector width\n if(adjustPixel && !isBlank) {\n if(isHorizontal) {\n x0 -= dirSign(x0, x1) * adjustPixel;\n x1 += dirSign(x0, x1) * adjustPixel;\n } else {\n y0 -= dirSign(y0, y1) * adjustPixel;\n y1 += dirSign(y0, y1) * adjustPixel;\n }\n }\n\n var lw;\n var mc;\n\n if(trace.type === 'waterfall') {\n if(!isBlank) {\n var cont = trace[di.dir].marker;\n lw = cont.line.width;\n mc = cont.color;\n }\n } else {\n lw = helpers.getLineWidth(trace, di);\n mc = di.mc || trace.marker.color;\n }\n\n function roundWithLine(v) {\n var offset = d3.round((lw / 2) % 1, 2);\n\n // if there are explicit gaps, don't round,\n // it can make the gaps look crappy\n return (opts.gap === 0 && opts.groupgap === 0) ?\n d3.round(Math.round(v) - offset, 2) : v;\n }\n\n function expandToVisible(v, vc, hideZeroSpan) {\n if(hideZeroSpan && v === vc) {\n // should not expand zero span bars\n // when start and end positions are identical\n // i.e. for vertical when y0 === y1\n // and for horizontal when x0 === x1\n return v;\n }\n\n // if it's not in danger of disappearing entirely,\n // round more precisely\n return Math.abs(v - vc) >= 2 ? roundWithLine(v) :\n // but if it's very thin, expand it so it's\n // necessarily visible, even if it might overlap\n // its neighbor\n (v > vc ? Math.ceil(v) : Math.floor(v));\n }\n\n if(!gd._context.staticPlot) {\n // if bars are not fully opaque or they have a line\n // around them, round to integer pixels, mainly for\n // safari so we prevent overlaps from its expansive\n // pixelation. if the bars ARE fully opaque and have\n // no line, expand to a full pixel to make sure we\n // can see them\n\n var op = Color.opacity(mc);\n var fixpx = (op < 1 || lw > 0.01) ? roundWithLine : expandToVisible;\n\n x0 = fixpx(x0, x1, isHorizontal);\n x1 = fixpx(x1, x0, isHorizontal);\n y0 = fixpx(y0, y1, !isHorizontal);\n y1 = fixpx(y1, y0, !isHorizontal);\n }\n\n var sel = transition(Lib.ensureSingle(bar, 'path'), fullLayout, opts, makeOnCompleteCallback);\n sel\n .style('vector-effect', 'non-scaling-stroke')\n .attr('d', (isNaN((x1 - x0) * (y1 - y0)) || (isBlank && gd._context.staticPlot)) ? 'M0,0Z' : 'M' + x0 + ',' + y0 + 'V' + y1 + 'H' + x1 + 'V' + y0 + 'Z')\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n\n if(!fullLayout.uniformtext.mode && withTransition) {\n var styleFns = Drawing.makePointStyleFns(trace);\n Drawing.singlePointStyle(di, sel, trace, styleFns, gd);\n }\n\n appendBarText(gd, plotinfo, bar, cd, i, x0, x1, y0, y1, opts, makeOnCompleteCallback);\n\n if(plotinfo.layerClipId) {\n Drawing.hideOutsideRangePoint(di, bar.select('text'), xa, ya, trace.xcalendar, trace.ycalendar);\n }\n });\n\n // lastly, clip points groups of `cliponaxis !== false` traces\n // on `plotinfo._hasClipOnAxisFalse === true` subplots\n var hasClipOnAxisFalse = trace.cliponaxis === false;\n Drawing.setClipUrl(plotGroup, hasClipOnAxisFalse ? null : plotinfo.layerClipId, gd);\n });\n\n // error bars are on the top\n Registry.getComponentMethod('errorbars', 'plot')(gd, bartraces, plotinfo, opts);\n}\n\nfunction appendBarText(gd, plotinfo, bar, cd, i, x0, x1, y0, y1, opts, makeOnCompleteCallback) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var fullLayout = gd._fullLayout;\n var textPosition;\n\n function appendTextNode(bar, text, font) {\n var textSelection = Lib.ensureSingle(bar, 'text')\n .text(text)\n .attr({\n 'class': 'bartext bartext-' + textPosition,\n 'text-anchor': 'middle',\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n 'data-notex': 1\n })\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n return textSelection;\n }\n\n // get trace attributes\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n\n var text = getText(fullLayout, cd, i, xa, ya);\n textPosition = getTextPosition(trace, i);\n\n // compute text position\n var inStackOrRelativeMode =\n opts.mode === 'stack' ||\n opts.mode === 'relative';\n\n var calcBar = cd[i];\n var isOutmostBar = !inStackOrRelativeMode || calcBar._outmost;\n\n if(!text ||\n textPosition === 'none' ||\n ((calcBar.isBlank || x0 === x1 || y0 === y1) && (\n textPosition === 'auto' ||\n textPosition === 'inside'))) {\n bar.select('text').remove();\n return;\n }\n\n var layoutFont = fullLayout.font;\n var barColor = style.getBarColor(cd[i], trace);\n var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);\n var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);\n\n // Special case: don't use the c2p(v, true) value on log size axes,\n // so that we can get correctly inside text scaling\n var di = bar.datum();\n if(isHorizontal) {\n if(xa.type === 'log' && di.s0 <= 0) {\n if(xa.range[0] < xa.range[1]) {\n x0 = 0;\n } else {\n x0 = xa._length;\n }\n }\n } else {\n if(ya.type === 'log' && di.s0 <= 0) {\n if(ya.range[0] < ya.range[1]) {\n y0 = ya._length;\n } else {\n y0 = 0;\n }\n }\n }\n\n // padding excluded\n var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;\n var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;\n\n var textSelection;\n var textBB;\n var textWidth;\n var textHeight;\n var font;\n\n if(textPosition === 'outside') {\n if(!isOutmostBar && !calcBar.hasB) textPosition = 'inside';\n }\n\n if(textPosition === 'auto') {\n if(isOutmostBar) {\n // draw text using insideTextFont and check if it fits inside bar\n textPosition = 'inside';\n\n font = Lib.ensureUniformFontSize(gd, insideTextFont);\n\n textSelection = appendTextNode(bar, text, font);\n\n textBB = Drawing.bBox(textSelection.node()),\n textWidth = textBB.width,\n textHeight = textBB.height;\n\n var textHasSize = (textWidth > 0 && textHeight > 0);\n var fitsInside = (textWidth <= barWidth && textHeight <= barHeight);\n var fitsInsideIfRotated = (textWidth <= barHeight && textHeight <= barWidth);\n var fitsInsideIfShrunk = (isHorizontal) ?\n (barWidth >= textWidth * (barHeight / textHeight)) :\n (barHeight >= textHeight * (barWidth / textWidth));\n\n if(textHasSize && (\n fitsInside ||\n fitsInsideIfRotated ||\n fitsInsideIfShrunk)\n ) {\n textPosition = 'inside';\n } else {\n textPosition = 'outside';\n textSelection.remove();\n textSelection = null;\n }\n } else {\n textPosition = 'inside';\n }\n }\n\n if(!textSelection) {\n font = Lib.ensureUniformFontSize(gd, (textPosition === 'outside') ? outsideTextFont : insideTextFont);\n\n textSelection = appendTextNode(bar, text, font);\n\n var currentTransform = textSelection.attr('transform');\n textSelection.attr('transform', '');\n textBB = Drawing.bBox(textSelection.node()),\n textWidth = textBB.width,\n textHeight = textBB.height;\n textSelection.attr('transform', currentTransform);\n\n if(textWidth <= 0 || textHeight <= 0) {\n textSelection.remove();\n return;\n }\n }\n\n var angle = trace.textangle;\n\n // compute text transform\n var transform, constrained;\n if(textPosition === 'outside') {\n constrained =\n trace.constraintext === 'both' ||\n trace.constraintext === 'outside';\n\n transform = toMoveOutsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: isHorizontal,\n constrained: constrained,\n angle: angle\n });\n } else {\n constrained =\n trace.constraintext === 'both' ||\n trace.constraintext === 'inside';\n\n transform = toMoveInsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: isHorizontal,\n constrained: constrained,\n angle: angle,\n anchor: trace.insidetextanchor\n });\n }\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type === 'histogram' ? 'bar' : trace.type, transform, fullLayout);\n calcBar.transform = transform;\n\n var s = transition(textSelection, fullLayout, opts, makeOnCompleteCallback);\n Lib.setTransormAndDisplay(s, transform);\n}\n\nfunction getRotateFromAngle(angle) {\n return (angle === 'auto') ? 0 : angle;\n}\n\nfunction getRotatedTextSize(textBB, rotate) {\n var a = Math.PI / 180 * rotate;\n var absSin = Math.abs(Math.sin(a));\n var absCos = Math.abs(Math.cos(a));\n\n return {\n x: textBB.width * absCos + textBB.height * absSin,\n y: textBB.width * absSin + textBB.height * absCos\n };\n}\n\nfunction toMoveInsideBar(x0, x1, y0, y1, textBB, opts) {\n var isHorizontal = !!opts.isHorizontal;\n var constrained = !!opts.constrained;\n var angle = opts.angle || 0;\n var anchor = opts.anchor || 'end';\n var isEnd = anchor === 'end';\n var isStart = anchor === 'start';\n var leftToRight = opts.leftToRight || 0; // left: -1, center: 0, right: 1\n var toRight = (leftToRight + 1) / 2;\n var toLeft = 1 - toRight;\n\n var textWidth = textBB.width;\n var textHeight = textBB.height;\n var lx = Math.abs(x1 - x0);\n var ly = Math.abs(y1 - y0);\n\n // compute remaining space\n var textpad = (\n lx > (2 * TEXTPAD) &&\n ly > (2 * TEXTPAD)\n ) ? TEXTPAD : 0;\n\n lx -= 2 * textpad;\n ly -= 2 * textpad;\n\n var rotate = getRotateFromAngle(angle);\n if((angle === 'auto') &&\n !(textWidth <= lx && textHeight <= ly) &&\n (textWidth > lx || textHeight > ly) && (\n !(textWidth > ly || textHeight > lx) ||\n ((textWidth < textHeight) !== (lx < ly))\n )) {\n rotate += 90;\n }\n\n var t = getRotatedTextSize(textBB, rotate);\n\n var scale = 1;\n if(constrained) {\n scale = Math.min(\n 1,\n lx / t.x,\n ly / t.y\n );\n }\n\n // compute text and target positions\n var textX = (\n textBB.left * toLeft +\n textBB.right * toRight\n );\n var textY = (textBB.top + textBB.bottom) / 2;\n var targetX = (\n (x0 + TEXTPAD) * toLeft +\n (x1 - TEXTPAD) * toRight\n );\n var targetY = (y0 + y1) / 2;\n var anchorX = 0;\n var anchorY = 0;\n if(isStart || isEnd) {\n var extrapad = (isHorizontal ? t.x : t.y) / 2;\n var dir = isHorizontal ? dirSign(x0, x1) : dirSign(y0, y1);\n\n if(isHorizontal) {\n if(isStart) {\n targetX = x0 + dir * textpad;\n anchorX = -dir * extrapad;\n } else {\n targetX = x1 - dir * textpad;\n anchorX = dir * extrapad;\n }\n } else {\n if(isStart) {\n targetY = y0 + dir * textpad;\n anchorY = -dir * extrapad;\n } else {\n targetY = y1 - dir * textpad;\n anchorY = dir * extrapad;\n }\n }\n }\n\n return {\n textX: textX,\n textY: textY,\n targetX: targetX,\n targetY: targetY,\n anchorX: anchorX,\n anchorY: anchorY,\n scale: scale,\n rotate: rotate\n };\n}\n\nfunction toMoveOutsideBar(x0, x1, y0, y1, textBB, opts) {\n var isHorizontal = !!opts.isHorizontal;\n var constrained = !!opts.constrained;\n var angle = opts.angle || 0;\n\n var textWidth = textBB.width;\n var textHeight = textBB.height;\n var lx = Math.abs(x1 - x0);\n var ly = Math.abs(y1 - y0);\n\n var textpad;\n // Keep the padding so the text doesn't sit right against\n // the bars, but don't factor it into barWidth\n if(isHorizontal) {\n textpad = (ly > 2 * TEXTPAD) ? TEXTPAD : 0;\n } else {\n textpad = (lx > 2 * TEXTPAD) ? TEXTPAD : 0;\n }\n\n // compute rotate and scale\n var scale = 1;\n if(constrained) {\n scale = (isHorizontal) ?\n Math.min(1, ly / textHeight) :\n Math.min(1, lx / textWidth);\n }\n\n var rotate = getRotateFromAngle(angle);\n var t = getRotatedTextSize(textBB, rotate);\n\n // compute text and target positions\n var extrapad = (isHorizontal ? t.x : t.y) / 2;\n var textX = (textBB.left + textBB.right) / 2;\n var textY = (textBB.top + textBB.bottom) / 2;\n var targetX = (x0 + x1) / 2;\n var targetY = (y0 + y1) / 2;\n var anchorX = 0;\n var anchorY = 0;\n\n var dir = isHorizontal ? dirSign(x1, x0) : dirSign(y0, y1);\n if(isHorizontal) {\n targetX = x1 - dir * textpad;\n anchorX = dir * extrapad;\n } else {\n targetY = y1 + dir * textpad;\n anchorY = -dir * extrapad;\n }\n\n return {\n textX: textX,\n textY: textY,\n targetX: targetX,\n targetY: targetY,\n anchorX: anchorX,\n anchorY: anchorY,\n scale: scale,\n rotate: rotate\n };\n}\n\nfunction getText(fullLayout, cd, index, xa, ya) {\n var trace = cd[0].trace;\n var texttemplate = trace.texttemplate;\n\n var value;\n if(texttemplate) {\n value = calcTexttemplate(fullLayout, cd, index, xa, ya);\n } else if(trace.textinfo) {\n value = calcTextinfo(cd, index, xa, ya);\n } else {\n value = helpers.getValue(trace.text, index);\n }\n\n return helpers.coerceString(attributeText, value);\n}\n\nfunction getTextPosition(trace, index) {\n var value = helpers.getValue(trace.textposition, index);\n return helpers.coerceEnumerated(attributeTextPosition, value);\n}\n\nfunction calcTexttemplate(fullLayout, cd, index, xa, ya) {\n var trace = cd[0].trace;\n var texttemplate = Lib.castOption(trace, index, 'texttemplate');\n if(!texttemplate) return '';\n var isHistogram = (trace.type === 'histogram');\n var isWaterfall = (trace.type === 'waterfall');\n var isFunnel = (trace.type === 'funnel');\n var isHorizontal = trace.orientation === 'h';\n\n var pLetter, pAxis;\n var vLetter, vAxis;\n if(isHorizontal) {\n pLetter = 'y';\n pAxis = ya;\n vLetter = 'x';\n vAxis = xa;\n } else {\n pLetter = 'x';\n pAxis = xa;\n vLetter = 'y';\n vAxis = ya;\n }\n\n function formatLabel(u) {\n return tickText(pAxis, pAxis.c2l(u), true).text;\n }\n\n function formatNumber(v) {\n return tickText(vAxis, vAxis.c2l(v), true).text;\n }\n\n var cdi = cd[index];\n var obj = {};\n\n obj.label = cdi.p;\n obj.labelLabel = obj[pLetter + 'Label'] = formatLabel(cdi.p);\n\n var tx = Lib.castOption(trace, cdi.i, 'text');\n if(tx === 0 || tx) obj.text = tx;\n\n obj.value = cdi.s;\n obj.valueLabel = obj[vLetter + 'Label'] = formatNumber(cdi.s);\n\n var pt = {};\n appendArrayPointValue(pt, trace, cdi.i);\n\n if(isHistogram || pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;\n if(isHistogram || pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;\n if(isHistogram || pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;\n if(isHistogram || pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;\n\n if(isWaterfall) {\n obj.delta = +cdi.rawS || cdi.s;\n obj.deltaLabel = formatNumber(obj.delta);\n obj.final = cdi.v;\n obj.finalLabel = formatNumber(obj.final);\n obj.initial = obj.final - obj.delta;\n obj.initialLabel = formatNumber(obj.initial);\n }\n\n if(isFunnel) {\n obj.value = cdi.s;\n obj.valueLabel = formatNumber(obj.value);\n\n obj.percentInitial = cdi.begR;\n obj.percentInitialLabel = Lib.formatPercent(cdi.begR);\n obj.percentPrevious = cdi.difR;\n obj.percentPreviousLabel = Lib.formatPercent(cdi.difR);\n obj.percentTotal = cdi.sumR;\n obj.percenTotalLabel = Lib.formatPercent(cdi.sumR);\n }\n\n var customdata = Lib.castOption(trace, cdi.i, 'customdata');\n if(customdata) obj.customdata = customdata;\n return Lib.texttemplateString(texttemplate, obj, fullLayout._d3locale, pt, obj, trace._meta || {});\n}\n\nfunction calcTextinfo(cd, index, xa, ya) {\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n var isWaterfall = (trace.type === 'waterfall');\n var isFunnel = (trace.type === 'funnel');\n\n function formatLabel(u) {\n var pAxis = isHorizontal ? ya : xa;\n return tickText(pAxis, u, true).text;\n }\n\n function formatNumber(v) {\n var sAxis = isHorizontal ? xa : ya;\n return tickText(sAxis, +v, true).text;\n }\n\n var textinfo = trace.textinfo;\n var cdi = cd[index];\n\n var parts = textinfo.split('+');\n var text = [];\n var tx;\n\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n\n if(hasFlag('label')) {\n text.push(formatLabel(cd[index].p));\n }\n\n if(hasFlag('text')) {\n tx = Lib.castOption(trace, cdi.i, 'text');\n if(tx === 0 || tx) text.push(tx);\n }\n\n if(isWaterfall) {\n var delta = +cdi.rawS || cdi.s;\n var final = cdi.v;\n var initial = final - delta;\n\n if(hasFlag('initial')) text.push(formatNumber(initial));\n if(hasFlag('delta')) text.push(formatNumber(delta));\n if(hasFlag('final')) text.push(formatNumber(final));\n }\n\n if(isFunnel) {\n if(hasFlag('value')) text.push(formatNumber(cdi.s));\n\n var nPercent = 0;\n if(hasFlag('percent initial')) nPercent++;\n if(hasFlag('percent previous')) nPercent++;\n if(hasFlag('percent total')) nPercent++;\n\n var hasMultiplePercents = nPercent > 1;\n\n if(hasFlag('percent initial')) {\n tx = Lib.formatPercent(cdi.begR);\n if(hasMultiplePercents) tx += ' of initial';\n text.push(tx);\n }\n if(hasFlag('percent previous')) {\n tx = Lib.formatPercent(cdi.difR);\n if(hasMultiplePercents) tx += ' of previous';\n text.push(tx);\n }\n if(hasFlag('percent total')) {\n tx = Lib.formatPercent(cdi.sumR);\n if(hasMultiplePercents) tx += ' of total';\n text.push(tx);\n }\n }\n\n return text.join('
');\n}\n\nmodule.exports = {\n plot: plot,\n toMoveInsideBar: toMoveInsideBar\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../components/fx/helpers\":403,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"./attributes\":657,\"./constants\":659,\"./helpers\":663,\"./style\":671,\"./uniform_text\":673,\"@plotly/d3\":58,\"fast-isnumeric\":190}],669:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var trace = cd[0].trace;\n var isFunnel = (trace.type === 'funnel');\n var isHorizontal = (trace.orientation === 'h');\n var selection = [];\n var i;\n\n if(selectionTester === false) {\n // clear selection\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n var di = cd[i];\n var ct = 'ct' in di ? di.ct : getCentroid(di, xa, ya, isHorizontal, isFunnel);\n\n if(selectionTester.contains(ct, false, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n x: xa.c2d(di.x),\n y: ya.c2d(di.y)\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\nfunction getCentroid(d, xa, ya, isHorizontal, isFunnel) {\n var x0 = xa.c2p(isHorizontal ? d.s0 : d.p0, true);\n var x1 = xa.c2p(isHorizontal ? d.s1 : d.p1, true);\n var y0 = ya.c2p(isHorizontal ? d.p0 : d.s0, true);\n var y1 = ya.c2p(isHorizontal ? d.p1 : d.s1, true);\n\n if(isFunnel) {\n return [(x0 + x1) / 2, (y0 + y1) / 2];\n } else {\n if(isHorizontal) {\n return [x1, (y0 + y1) / 2];\n } else {\n return [(x0 + x1) / 2, y1];\n }\n }\n}\n\n},{}],670:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = Sieve;\n\nvar distinctVals = _dereq_('../../lib').distinctVals;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\n/**\n * Helper class to sieve data from traces into bins\n *\n * @class\n *\n * @param {Array} traces\n* Array of calculated traces\n * @param {object} opts\n * - @param {boolean} [sepNegVal]\n * If true, then split data at the same position into a bar\n * for positive values and another for negative values\n * - @param {boolean} [overlapNoMerge]\n * If true, then don't merge overlapping bars into a single bar\n */\nfunction Sieve(traces, opts) {\n this.traces = traces;\n this.sepNegVal = opts.sepNegVal;\n this.overlapNoMerge = opts.overlapNoMerge;\n\n // for single-bin histograms - see histogram/calc\n var width1 = Infinity;\n\n var positions = [];\n for(var i = 0; i < traces.length; i++) {\n var trace = traces[i];\n for(var j = 0; j < trace.length; j++) {\n var bar = trace[j];\n if(bar.p !== BADNUM) positions.push(bar.p);\n }\n if(trace[0] && trace[0].width1) {\n width1 = Math.min(trace[0].width1, width1);\n }\n }\n this.positions = positions;\n\n var dv = distinctVals(positions);\n\n this.distinctPositions = dv.vals;\n if(dv.vals.length === 1 && width1 !== Infinity) this.minDiff = width1;\n else this.minDiff = Math.min(dv.minDiff, width1);\n\n var type = (opts.posAxis || {}).type;\n if(type === 'category' || type === 'multicategory') {\n this.minDiff = 1;\n }\n\n this.binWidth = this.minDiff;\n\n this.bins = {};\n}\n\n/**\n * Sieve datum\n *\n * @method\n * @param {number} position\n * @param {number} value\n * @returns {number} Previous bin value\n */\nSieve.prototype.put = function put(position, value) {\n var label = this.getLabel(position, value);\n var oldValue = this.bins[label] || 0;\n\n this.bins[label] = oldValue + value;\n\n return oldValue;\n};\n\n/**\n * Get current bin value for a given datum\n *\n * @method\n * @param {number} position Position of datum\n * @param {number} [value] Value of datum\n * (required if this.sepNegVal is true)\n * @returns {number} Current bin value\n */\nSieve.prototype.get = function get(position, value) {\n var label = this.getLabel(position, value);\n return this.bins[label] || 0;\n};\n\n/**\n * Get bin label for a given datum\n *\n * @method\n * @param {number} position Position of datum\n * @param {number} [value] Value of datum\n * (required if this.sepNegVal is true)\n * @returns {string} Bin label\n * (prefixed with a 'v' if value is negative and this.sepNegVal is\n * true; otherwise prefixed with '^')\n */\nSieve.prototype.getLabel = function getLabel(position, value) {\n var prefix = (value < 0 && this.sepNegVal) ? 'v' : '^';\n var label = (this.overlapNoMerge) ?\n position :\n Math.round(position / this.binWidth);\n return prefix + label;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515}],671:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar resizeText = _dereq_('./uniform_text').resizeText;\nvar attributes = _dereq_('./attributes');\nvar attributeTextFont = attributes.textfont;\nvar attributeInsideTextFont = attributes.insidetextfont;\nvar attributeOutsideTextFont = attributes.outsidetextfont;\nvar helpers = _dereq_('./helpers');\n\nfunction style(gd) {\n var s = d3.select(gd).selectAll('g.barlayer').selectAll('g.trace');\n resizeText(gd, s, 'bar');\n\n var barcount = s.size();\n var fullLayout = gd._fullLayout;\n\n // trace styling\n s.style('opacity', function(d) { return d[0].trace.opacity; })\n\n // for gapless (either stacked or neighboring grouped) bars use\n // crispEdges to turn off antialiasing so an artificial gap\n // isn't introduced.\n .each(function(d) {\n if((fullLayout.barmode === 'stack' && barcount > 1) ||\n (fullLayout.bargap === 0 &&\n fullLayout.bargroupgap === 0 &&\n !d[0].trace.marker.line.width)) {\n d3.select(this).attr('shape-rendering', 'crispEdges');\n }\n });\n\n s.selectAll('g.points').each(function(d) {\n var sel = d3.select(this);\n var trace = d[0].trace;\n stylePoints(sel, trace, gd);\n });\n\n Registry.getComponentMethod('errorbars', 'style')(s);\n}\n\nfunction stylePoints(sel, trace, gd) {\n Drawing.pointStyle(sel.selectAll('path'), trace, gd);\n styleTextPoints(sel, trace, gd);\n}\n\nfunction styleTextPoints(sel, trace, gd) {\n sel.selectAll('text').each(function(d) {\n var tx = d3.select(this);\n var font = Lib.ensureUniformFontSize(gd, determineFont(tx, d, trace, gd));\n\n Drawing.font(tx, font);\n });\n}\n\nfunction styleOnSelect(gd, cd, sel) {\n var trace = cd[0].trace;\n\n if(trace.selectedpoints) {\n stylePointsInSelectionMode(sel, trace, gd);\n } else {\n stylePoints(sel, trace, gd);\n Registry.getComponentMethod('errorbars', 'style')(sel);\n }\n}\n\nfunction stylePointsInSelectionMode(s, trace, gd) {\n Drawing.selectedPointStyle(s.selectAll('path'), trace);\n styleTextInSelectionMode(s.selectAll('text'), trace, gd);\n}\n\nfunction styleTextInSelectionMode(txs, trace, gd) {\n txs.each(function(d) {\n var tx = d3.select(this);\n var font;\n\n if(d.selected) {\n font = Lib.ensureUniformFontSize(gd, determineFont(tx, d, trace, gd));\n\n var selectedFontColor = trace.selected.textfont && trace.selected.textfont.color;\n if(selectedFontColor) {\n font.color = selectedFontColor;\n }\n\n Drawing.font(tx, font);\n } else {\n Drawing.selectedTextStyle(tx, trace);\n }\n });\n}\n\nfunction determineFont(tx, d, trace, gd) {\n var layoutFont = gd._fullLayout.font;\n var textFont = trace.textfont;\n\n if(tx.classed('bartext-inside')) {\n var barColor = getBarColor(d, trace);\n textFont = getInsideTextFont(trace, d.i, layoutFont, barColor);\n } else if(tx.classed('bartext-outside')) {\n textFont = getOutsideTextFont(trace, d.i, layoutFont);\n }\n\n return textFont;\n}\n\nfunction getTextFont(trace, index, defaultValue) {\n return getFontValue(\n attributeTextFont, trace.textfont, index, defaultValue);\n}\n\nfunction getInsideTextFont(trace, index, layoutFont, barColor) {\n var defaultFont = getTextFont(trace, index, layoutFont);\n\n var wouldFallBackToLayoutFont =\n (trace._input.textfont === undefined || trace._input.textfont.color === undefined) ||\n (Array.isArray(trace.textfont.color) && trace.textfont.color[index] === undefined);\n if(wouldFallBackToLayoutFont) {\n defaultFont = {\n color: Color.contrast(barColor),\n family: defaultFont.family,\n size: defaultFont.size\n };\n }\n\n return getFontValue(\n attributeInsideTextFont, trace.insidetextfont, index, defaultFont);\n}\n\nfunction getOutsideTextFont(trace, index, layoutFont) {\n var defaultFont = getTextFont(trace, index, layoutFont);\n return getFontValue(\n attributeOutsideTextFont, trace.outsidetextfont, index, defaultFont);\n}\n\nfunction getFontValue(attributeDefinition, attributeValue, index, defaultValue) {\n attributeValue = attributeValue || {};\n\n var familyValue = helpers.getValue(attributeValue.family, index);\n var sizeValue = helpers.getValue(attributeValue.size, index);\n var colorValue = helpers.getValue(attributeValue.color, index);\n\n return {\n family: helpers.coerceString(\n attributeDefinition.family, familyValue, defaultValue.family),\n size: helpers.coerceNumber(\n attributeDefinition.size, sizeValue, defaultValue.size),\n color: helpers.coerceColor(\n attributeDefinition.color, colorValue, defaultValue.color)\n };\n}\n\nfunction getBarColor(cd, trace) {\n if(trace.type === 'waterfall') {\n return trace[cd.dir].marker.color;\n }\n return cd.mcc || cd.mc || trace.marker.color;\n}\n\nmodule.exports = {\n style: style,\n styleTextPoints: styleTextPoints,\n styleOnSelect: styleOnSelect,\n getInsideTextFont: getInsideTextFont,\n getOutsideTextFont: getOutsideTextFont,\n getBarColor: getBarColor,\n resizeText: resizeText\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../lib\":515,\"../../registry\":647,\"./attributes\":657,\"./helpers\":663,\"./uniform_text\":673,\"@plotly/d3\":58}],672:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar coercePattern = _dereq_('../../lib').coercePattern;\n\nmodule.exports = function handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout) {\n var markerColor = coerce('marker.color', defaultColor);\n var hasMarkerColorscale = hasColorscale(traceIn, 'marker');\n if(hasMarkerColorscale) {\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'}\n );\n }\n\n coerce('marker.line.color', Color.defaultLine);\n\n if(hasColorscale(traceIn, 'marker.line')) {\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: 'marker.line.', cLetter: 'c'}\n );\n }\n\n coerce('marker.line.width');\n coerce('marker.opacity');\n coercePattern(coerce, 'marker.pattern', markerColor, hasMarkerColorscale);\n coerce('selected.marker.color');\n coerce('unselected.marker.color');\n};\n\n},{\"../../components/color\":367,\"../../components/colorscale/defaults\":377,\"../../components/colorscale/helpers\":378,\"../../lib\":515}],673:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\n\nfunction resizeText(gd, gTrace, traceType) {\n var fullLayout = gd._fullLayout;\n var minSize = fullLayout['_' + traceType + 'Text_minsize'];\n if(minSize) {\n var shouldHide = fullLayout.uniformtext.mode === 'hide';\n\n var selector;\n switch(traceType) {\n case 'funnelarea' :\n case 'pie' :\n case 'sunburst' :\n selector = 'g.slice';\n break;\n case 'treemap' :\n case 'icicle' :\n selector = 'g.slice, g.pathbar';\n break;\n default :\n selector = 'g.points > g.point';\n }\n\n gTrace.selectAll(selector).each(function(d) {\n var transform = d.transform;\n if(transform) {\n transform.scale = (shouldHide && transform.hide) ? 0 : minSize / transform.fontSize;\n\n var el = d3.select(this).select('text');\n Lib.setTransormAndDisplay(el, transform);\n }\n });\n }\n}\n\nfunction recordMinTextSize(\n traceType, // in\n transform, // inout\n fullLayout // inout\n) {\n if(fullLayout.uniformtext.mode) {\n var minKey = getMinKey(traceType);\n var minSize = fullLayout.uniformtext.minsize;\n var size = transform.scale * transform.fontSize;\n\n transform.hide = size < minSize;\n\n fullLayout[minKey] = fullLayout[minKey] || Infinity;\n if(!transform.hide) {\n fullLayout[minKey] = Math.min(\n fullLayout[minKey],\n Math.max(size, minSize)\n );\n }\n }\n}\n\nfunction clearMinTextSize(\n traceType, // in\n fullLayout // inout\n) {\n var minKey = getMinKey(traceType);\n fullLayout[minKey] = undefined;\n}\n\nfunction getMinKey(traceType) {\n return '_' + traceType + 'Text_minsize';\n}\n\nmodule.exports = {\n recordMinTextSize: recordMinTextSize,\n clearMinTextSize: clearMinTextSize,\n resizeText: resizeText\n};\n\n},{\"../../lib\":515,\"@plotly/d3\":58}],674:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar scatterPolarAttrs = _dereq_('../scatterpolar/attributes');\nvar barAttrs = _dereq_('../bar/attributes');\n\nmodule.exports = {\n r: scatterPolarAttrs.r,\n theta: scatterPolarAttrs.theta,\n r0: scatterPolarAttrs.r0,\n dr: scatterPolarAttrs.dr,\n theta0: scatterPolarAttrs.theta0,\n dtheta: scatterPolarAttrs.dtheta,\n thetaunit: scatterPolarAttrs.thetaunit,\n\n // orientation: {\n // valType: 'enumerated',\n // values: ['radial', 'angular'],\n // editType: 'calc+clearAxisTypes',\n //\n // },\n\n base: extendFlat({}, barAttrs.base, {\n }),\n offset: extendFlat({}, barAttrs.offset, {\n }),\n width: extendFlat({}, barAttrs.width, {\n }),\n\n text: extendFlat({}, barAttrs.text, {\n }),\n hovertext: extendFlat({}, barAttrs.hovertext, {\n }),\n\n // textposition: {},\n // textfont: {},\n // insidetextfont: {},\n // outsidetextfont: {},\n // constraintext: {},\n // cliponaxis: extendFlat({}, barAttrs.cliponaxis, {dflt: false}),\n\n marker: barAttrs.marker,\n\n hoverinfo: scatterPolarAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs(),\n\n selected: barAttrs.selected,\n unselected: barAttrs.unselected\n\n // error_x (error_r, error_theta)\n // error_y\n};\n\n},{\"../../lib/extend\":505,\"../../plots/template_attributes\":642,\"../bar/attributes\":657,\"../scatterpolar/attributes\":1011}],675:[function(_dereq_,module,exports){\n'use strict';\n\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar arraysToCalcdata = _dereq_('../bar/arrays_to_calcdata');\nvar setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar traceIs = _dereq_('../../registry').traceIs;\nvar extendFlat = _dereq_('../../lib').extendFlat;\n\nfunction calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var radialAxis = fullLayout[subplotId].radialaxis;\n var angularAxis = fullLayout[subplotId].angularaxis;\n var rArray = radialAxis.makeCalcdata(trace, 'r');\n var thetaArray = angularAxis.makeCalcdata(trace, 'theta');\n var len = trace._length;\n var cd = new Array(len);\n\n // 'size' axis variables\n var sArray = rArray;\n // 'pos' axis variables\n var pArray = thetaArray;\n\n for(var i = 0; i < len; i++) {\n cd[i] = {p: pArray[i], s: sArray[i]};\n }\n\n // convert width and offset in 'c' coordinate,\n // set 'c' value(s) in trace._width and trace._offset,\n // to make Bar.crossTraceCalc \"just work\"\n function d2c(attr) {\n var val = trace[attr];\n if(val !== undefined) {\n trace['_' + attr] = Array.isArray(val) ?\n angularAxis.makeCalcdata(trace, attr) :\n angularAxis.d2c(val, trace.thetaunit);\n }\n }\n\n if(angularAxis.type === 'linear') {\n d2c('width');\n d2c('offset');\n }\n\n if(hasColorscale(trace, 'marker')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.color,\n containerStr: 'marker',\n cLetter: 'c'\n });\n }\n if(hasColorscale(trace, 'marker.line')) {\n colorscaleCalc(gd, trace, {\n vals: trace.marker.line.color,\n containerStr: 'marker.line',\n cLetter: 'c'\n });\n }\n\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n}\n\nfunction crossTraceCalc(gd, polarLayout, subplotId) {\n var calcdata = gd.calcdata;\n var barPolarCd = [];\n\n for(var i = 0; i < calcdata.length; i++) {\n var cdi = calcdata[i];\n var trace = cdi[0].trace;\n\n if(trace.visible === true && traceIs(trace, 'bar') &&\n trace.subplot === subplotId\n ) {\n barPolarCd.push(cdi);\n }\n }\n\n // to make _extremes is filled in correctly so that\n // polar._subplot.radialAxis can get auotrange'd\n // TODO clean up!\n // I think we want to call getAutorange on polar.radialaxis\n // NOT on polar._subplot.radialAxis\n var rAxis = extendFlat({}, polarLayout.radialaxis, {_id: 'x'});\n var aAxis = polarLayout.angularaxis;\n\n setGroupPositions(gd, aAxis, rAxis, barPolarCd, {\n mode: polarLayout.barmode,\n norm: polarLayout.barnorm,\n gap: polarLayout.bargap,\n groupgap: polarLayout.bargroupgap\n });\n}\n\nmodule.exports = {\n calc: calc,\n crossTraceCalc: crossTraceCalc\n};\n\n},{\"../../components/colorscale/calc\":375,\"../../components/colorscale/helpers\":378,\"../../lib\":515,\"../../registry\":647,\"../bar/arrays_to_calcdata\":656,\"../bar/cross_trace_calc\":660,\"../scatter/calc_selection\":938}],676:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleRThetaDefaults = _dereq_('../scatterpolar/defaults').handleRThetaDefaults;\nvar handleStyleDefaults = _dereq_('../bar/style_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRThetaDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n // coerce('orientation', (traceOut.theta && !traceOut.r) ? 'angular' : 'radial');\n\n coerce('thetaunit');\n coerce('base');\n coerce('offset');\n coerce('width');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n // var textPosition = coerce('textposition');\n // var hasBoth = Array.isArray(textPosition) || textPosition === 'auto';\n // var hasInside = hasBoth || textPosition === 'inside';\n // var hasOutside = hasBoth || textPosition === 'outside';\n\n // if(hasInside || hasOutside) {\n // var textFont = coerceFont(coerce, 'textfont', layout.font);\n // if(hasInside) coerceFont(coerce, 'insidetextfont', textFont);\n // if(hasOutside) coerceFont(coerce, 'outsidetextfont', textFont);\n // coerce('constraintext');\n // coerce('selected.textfont.color');\n // coerce('unselected.textfont.color');\n // coerce('cliponaxis');\n // }\n\n handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout);\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../bar/style_defaults\":672,\"../scatterpolar/defaults\":1013,\"./attributes\":674}],677:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar getTraceColor = _dereq_('../bar/hover').getTraceColor;\nvar fillText = Lib.fillText;\nvar makeHoverPointText = _dereq_('../scatterpolar/hover').makeHoverPointText;\nvar isPtInsidePolygon = _dereq_('../../plots/polar/helpers').isPtInsidePolygon;\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n\n var subplot = pointData.subplot;\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n var vangles = subplot.vangles;\n var inboxFn = vangles ? isPtInsidePolygon : Lib.isPtInsideSector;\n var maxHoverDistance = pointData.maxHoverDistance;\n var period = angularAxis._period || 2 * Math.PI;\n\n var rVal = Math.abs(radialAxis.g2p(Math.sqrt(xval * xval + yval * yval)));\n var thetaVal = Math.atan2(yval, xval);\n\n // polar.(x|y)axis.p2c doesn't get the reversed radial axis range case right\n if(radialAxis.range[0] > radialAxis.range[1]) {\n thetaVal += Math.PI;\n }\n\n var distFn = function(di) {\n if(inboxFn(rVal, thetaVal, [di.rp0, di.rp1], [di.thetag0, di.thetag1], vangles)) {\n return maxHoverDistance +\n // add a little to the pseudo-distance for wider bars, so that like scatter,\n // if you are over two overlapping bars, the narrower one wins.\n Math.min(1, Math.abs(di.thetag1 - di.thetag0) / period) - 1 +\n // add a gradient so hovering near the end of a\n // bar makes it a little closer match\n (di.rp1 - rVal) / (di.rp1 - di.rp0) - 1;\n } else {\n return Infinity;\n }\n };\n\n Fx.getClosest(cd, distFn, pointData);\n if(pointData.index === false) return;\n\n var index = pointData.index;\n var cdi = cd[index];\n\n pointData.x0 = pointData.x1 = cdi.ct[0];\n pointData.y0 = pointData.y1 = cdi.ct[1];\n\n var _cdi = Lib.extendFlat({}, cdi, {r: cdi.s, theta: cdi.p});\n fillText(cdi, trace, pointData);\n makeHoverPointText(_cdi, trace, subplot, pointData);\n pointData.hovertemplate = trace.hovertemplate;\n pointData.color = getTraceColor(trace, cdi);\n pointData.xLabelVal = pointData.yLabelVal = undefined;\n\n if(cdi.s < 0) {\n pointData.idealAlign = 'left';\n }\n\n return [pointData];\n};\n\n},{\"../../components/fx\":407,\"../../lib\":515,\"../../plots/polar/helpers\":630,\"../bar/hover\":664,\"../scatterpolar/hover\":1015}],678:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'barpolar',\n basePlotModule: _dereq_('../../plots/polar'),\n categories: ['polar', 'bar', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('../scatterpolar/format_labels'),\n\n style: _dereq_('../bar/style').style,\n styleOnSelect: _dereq_('../bar/style').styleOnSelect,\n\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../bar/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/polar\":631,\"../bar/select\":669,\"../bar/style\":671,\"../scatter/marker_colorbar\":954,\"../scatterpolar/format_labels\":1014,\"./attributes\":674,\"./calc\":675,\"./defaults\":676,\"./hover\":677,\"./layout_attributes\":679,\"./layout_defaults\":680,\"./plot\":681}],679:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n barmode: {\n valType: 'enumerated',\n values: ['stack', 'overlay'],\n dflt: 'stack',\n editType: 'calc',\n },\n bargap: {\n valType: 'number',\n dflt: 0.1,\n min: 0,\n max: 1,\n editType: 'calc',\n }\n};\n\n},{}],680:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attrs = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n var subplotsDone = {};\n var sp;\n\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn[sp] || {}, layoutOut[sp], attrs, attr, dflt);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n if(trace.type === 'barpolar' && trace.visible === true) {\n sp = trace.subplot;\n if(!subplotsDone[sp]) {\n coerce('barmode');\n coerce('bargap');\n subplotsDone[sp] = 1;\n }\n }\n }\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":679}],681:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar helpers = _dereq_('../../plots/polar/helpers');\n\nmodule.exports = function plot(gd, subplot, cdbar) {\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n var pathFn = makePathFn(subplot);\n var barLayer = subplot.layers.frontplot.select('g.barlayer');\n\n Lib.makeTraceGroups(barLayer, cdbar, 'trace bars').each(function() {\n var plotGroup = d3.select(this);\n var pointGroup = Lib.ensureSingle(plotGroup, 'g', 'points');\n var bars = pointGroup.selectAll('g.point').data(Lib.identity);\n\n bars.enter().append('g')\n .style('vector-effect', 'non-scaling-stroke')\n .style('stroke-miterlimit', 2)\n .classed('point', true);\n\n bars.exit().remove();\n\n bars.each(function(di) {\n var bar = d3.select(this);\n\n var rp0 = di.rp0 = radialAxis.c2p(di.s0);\n var rp1 = di.rp1 = radialAxis.c2p(di.s1);\n var thetag0 = di.thetag0 = angularAxis.c2g(di.p0);\n var thetag1 = di.thetag1 = angularAxis.c2g(di.p1);\n\n var dPath;\n\n if(!isNumeric(rp0) || !isNumeric(rp1) ||\n !isNumeric(thetag0) || !isNumeric(thetag1) ||\n rp0 === rp1 || thetag0 === thetag1\n ) {\n // do not remove blank bars, to keep data-to-node\n // mapping intact during radial drag, that we\n // can skip calling _module.style during interactions\n dPath = 'M0,0Z';\n } else {\n // this 'center' pt is used for selections and hover labels\n var rg1 = radialAxis.c2g(di.s1);\n var thetagMid = (thetag0 + thetag1) / 2;\n di.ct = [\n xa.c2p(rg1 * Math.cos(thetagMid)),\n ya.c2p(rg1 * Math.sin(thetagMid))\n ];\n\n dPath = pathFn(rp0, rp1, thetag0, thetag1);\n }\n\n Lib.ensureSingle(bar, 'path').attr('d', dPath);\n });\n\n // clip plotGroup, when trace layer isn't clipped\n Drawing.setClipUrl(\n plotGroup,\n subplot._hasClipOnAxisFalse ? subplot.clipIds.forTraces : null,\n gd\n );\n });\n};\n\nfunction makePathFn(subplot) {\n var cxx = subplot.cxx;\n var cyy = subplot.cyy;\n\n if(subplot.vangles) {\n return function(r0, r1, _a0, _a1) {\n var a0, a1;\n\n if(Lib.angleDelta(_a0, _a1) > 0) {\n a0 = _a0;\n a1 = _a1;\n } else {\n a0 = _a1;\n a1 = _a0;\n }\n\n var va0 = helpers.findEnclosingVertexAngles(a0, subplot.vangles)[0];\n var va1 = helpers.findEnclosingVertexAngles(a1, subplot.vangles)[1];\n var vaBar = [va0, (a0 + a1) / 2, va1];\n return helpers.pathPolygonAnnulus(r0, r1, a0, a1, vaBar, cxx, cyy);\n };\n }\n\n return function(r0, r1, a0, a1) {\n return Lib.pathAnnulus(r0, r1, a0, a1, cxx, cyy);\n };\n}\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../plots/polar/helpers\":630,\"@plotly/d3\":58,\"fast-isnumeric\":190}],682:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar barAttrs = _dereq_('../bar/attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = {\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n x0: {\n valType: 'any',\n editType: 'calc+clearAxisTypes',\n },\n y0: {\n valType: 'any',\n editType: 'calc+clearAxisTypes',\n },\n\n dx: {\n valType: 'number',\n editType: 'calc',\n },\n dy: {\n valType: 'number',\n editType: 'calc',\n },\n\n xperiod: scatterAttrs.xperiod,\n yperiod: scatterAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n yperiodalignment: scatterAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n name: {\n valType: 'string',\n editType: 'calc+clearAxisTypes',\n },\n\n q1: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n median: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n q3: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n lowerfence: {\n valType: 'data_array',\n editType: 'calc',\n },\n upperfence: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n notched: {\n valType: 'boolean',\n editType: 'calc',\n },\n notchwidth: {\n valType: 'number',\n min: 0,\n max: 0.5,\n dflt: 0.25,\n editType: 'calc',\n },\n notchspan: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO\n // maybe add\n // - loweroutlierbound / upperoutlierbound\n // - lowersuspectedoutlierbound / uppersuspectedoutlierbound\n\n boxpoints: {\n valType: 'enumerated',\n values: ['all', 'outliers', 'suspectedoutliers', false],\n editType: 'calc',\n },\n jitter: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n pointpos: {\n valType: 'number',\n min: -2,\n max: 2,\n editType: 'calc',\n },\n\n boxmean: {\n valType: 'enumerated',\n values: [true, 'sd', false],\n editType: 'calc',\n },\n mean: {\n valType: 'data_array',\n editType: 'calc',\n },\n sd: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n editType: 'calc+clearAxisTypes',\n },\n\n quartilemethod: {\n valType: 'enumerated',\n values: ['linear', 'exclusive', 'inclusive'],\n dflt: 'linear',\n editType: 'calc',\n },\n\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n\n marker: {\n outliercolor: {\n valType: 'color',\n dflt: 'rgba(0, 0, 0, 0)',\n editType: 'style',\n },\n symbol: extendFlat({}, scatterMarkerAttrs.symbol,\n {arrayOk: false, editType: 'plot'}),\n opacity: extendFlat({}, scatterMarkerAttrs.opacity,\n {arrayOk: false, dflt: 1, editType: 'style'}),\n angle: extendFlat({}, scatterMarkerAttrs.angle,\n {arrayOk: false, editType: 'calc'}),\n size: extendFlat({}, scatterMarkerAttrs.size,\n {arrayOk: false, editType: 'calc'}),\n color: extendFlat({}, scatterMarkerAttrs.color,\n {arrayOk: false, editType: 'style'}),\n line: {\n color: extendFlat({}, scatterMarkerLineAttrs.color,\n {arrayOk: false, dflt: colorAttrs.defaultLine, editType: 'style'}\n ),\n width: extendFlat({}, scatterMarkerLineAttrs.width,\n {arrayOk: false, dflt: 0, editType: 'style'}\n ),\n outliercolor: {\n valType: 'color',\n editType: 'style',\n },\n outlierwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'plot'\n },\n\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n },\n editType: 'plot'\n },\n\n fillcolor: scatterAttrs.fillcolor,\n\n whiskerwidth: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.5,\n editType: 'calc',\n },\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup,\n\n selected: {\n marker: scatterAttrs.selected.marker,\n editType: 'style'\n },\n unselected: {\n marker: scatterAttrs.unselected.marker,\n editType: 'style'\n },\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n hovertemplate: hovertemplateAttrs({\n }),\n\n hoveron: {\n valType: 'flaglist',\n flags: ['boxes', 'points'],\n dflt: 'boxes+points',\n editType: 'style',\n }\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../bar/attributes\":657,\"../scatter/attributes\":936}],683:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar Lib = _dereq_('../../lib');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar _ = Lib._;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var cd = [];\n\n // N.B. violin reuses same Box.calc\n var numKey = trace.type === 'violin' ? '_numViolins' : '_numBoxes';\n\n var i, j;\n var valAxis, valLetter;\n var posAxis, posLetter;\n\n var hasPeriod;\n if(trace.orientation === 'h') {\n valAxis = xa;\n valLetter = 'x';\n posAxis = ya;\n posLetter = 'y';\n hasPeriod = !!trace.yperiodalignment;\n } else {\n valAxis = ya;\n valLetter = 'y';\n posAxis = xa;\n posLetter = 'x';\n hasPeriod = !!trace.xperiodalignment;\n }\n\n var allPosArrays = getPosArrays(trace, posLetter, posAxis, fullLayout[numKey]);\n var posArray = allPosArrays[0];\n var origPos = allPosArrays[1];\n var dv = Lib.distinctVals(posArray, posAxis);\n var posDistinct = dv.vals;\n var dPos = dv.minDiff / 2;\n\n // item in trace calcdata\n var cdi;\n // array of {v: v, i, i} sample pts\n var pts;\n // values of the `pts` array of objects\n var boxVals;\n // length of sample\n var N;\n // single sample point\n var pt;\n // single sample value\n var v;\n\n // filter function for outlier pts\n // outlier definition based on http://www.physics.csbsju.edu/stats/box2.html\n var ptFilterFn = (trace.boxpoints || trace.points) === 'all' ?\n Lib.identity :\n function(pt) { return (pt.v < cdi.lf || pt.v > cdi.uf); };\n\n if(trace._hasPreCompStats) {\n var valArrayRaw = trace[valLetter];\n var d2c = function(k) { return valAxis.d2c((trace[k] || [])[i]); };\n var minVal = Infinity;\n var maxVal = -Infinity;\n\n for(i = 0; i < trace._length; i++) {\n var posi = posArray[i];\n if(!isNumeric(posi)) continue;\n\n cdi = {};\n cdi.pos = cdi[posLetter] = posi;\n if(hasPeriod && origPos) {\n cdi.orig_p = origPos[i]; // used by hover\n }\n\n cdi.q1 = d2c('q1');\n cdi.med = d2c('median');\n cdi.q3 = d2c('q3');\n\n pts = [];\n if(valArrayRaw && Lib.isArrayOrTypedArray(valArrayRaw[i])) {\n for(j = 0; j < valArrayRaw[i].length; j++) {\n v = valAxis.d2c(valArrayRaw[i][j]);\n if(v !== BADNUM) {\n pt = {v: v, i: [i, j]};\n arraysToCalcdata(pt, trace, [i, j]);\n pts.push(pt);\n }\n }\n }\n cdi.pts = pts.sort(sortByVal);\n boxVals = cdi[valLetter] = pts.map(extractVal);\n N = boxVals.length;\n\n if(cdi.med !== BADNUM && cdi.q1 !== BADNUM && cdi.q3 !== BADNUM &&\n cdi.med >= cdi.q1 && cdi.q3 >= cdi.med\n ) {\n var lf = d2c('lowerfence');\n cdi.lf = (lf !== BADNUM && lf <= cdi.q1) ?\n lf :\n computeLowerFence(cdi, boxVals, N);\n\n var uf = d2c('upperfence');\n cdi.uf = (uf !== BADNUM && uf >= cdi.q3) ?\n uf :\n computeUpperFence(cdi, boxVals, N);\n\n var mean = d2c('mean');\n cdi.mean = (mean !== BADNUM) ?\n mean :\n (N ? Lib.mean(boxVals, N) : (cdi.q1 + cdi.q3) / 2);\n\n var sd = d2c('sd');\n cdi.sd = (mean !== BADNUM && sd >= 0) ?\n sd :\n (N ? Lib.stdev(boxVals, N, cdi.mean) : (cdi.q3 - cdi.q1));\n\n cdi.lo = computeLowerOutlierBound(cdi);\n cdi.uo = computeUpperOutlierBound(cdi);\n\n var ns = d2c('notchspan');\n ns = (ns !== BADNUM && ns > 0) ? ns : computeNotchSpan(cdi, N);\n cdi.ln = cdi.med - ns;\n cdi.un = cdi.med + ns;\n\n var imin = cdi.lf;\n var imax = cdi.uf;\n if(trace.boxpoints && boxVals.length) {\n imin = Math.min(imin, boxVals[0]);\n imax = Math.max(imax, boxVals[N - 1]);\n }\n if(trace.notched) {\n imin = Math.min(imin, cdi.ln);\n imax = Math.max(imax, cdi.un);\n }\n cdi.min = imin;\n cdi.max = imax;\n } else {\n Lib.warn([\n 'Invalid input - make sure that q1 <= median <= q3',\n 'q1 = ' + cdi.q1,\n 'median = ' + cdi.med,\n 'q3 = ' + cdi.q3\n ].join('\\n'));\n\n var v0;\n if(cdi.med !== BADNUM) {\n v0 = cdi.med;\n } else if(cdi.q1 !== BADNUM) {\n if(cdi.q3 !== BADNUM) v0 = (cdi.q1 + cdi.q3) / 2;\n else v0 = cdi.q1;\n } else if(cdi.q3 !== BADNUM) {\n v0 = cdi.q3;\n } else {\n v0 = 0;\n }\n\n // draw box as line segment\n cdi.med = v0;\n cdi.q1 = cdi.q3 = v0;\n cdi.lf = cdi.uf = v0;\n cdi.mean = cdi.sd = v0;\n cdi.ln = cdi.un = v0;\n cdi.min = cdi.max = v0;\n }\n\n minVal = Math.min(minVal, cdi.min);\n maxVal = Math.max(maxVal, cdi.max);\n\n cdi.pts2 = pts.filter(ptFilterFn);\n\n cd.push(cdi);\n }\n\n trace._extremes[valAxis._id] = Axes.findExtremes(valAxis,\n [minVal, maxVal],\n {padded: true}\n );\n } else {\n var valArray = valAxis.makeCalcdata(trace, valLetter);\n var posBins = makeBins(posDistinct, dPos);\n var pLen = posDistinct.length;\n var ptsPerBin = initNestedArray(pLen);\n\n // bin pts info per position bins\n for(i = 0; i < trace._length; i++) {\n v = valArray[i];\n if(!isNumeric(v)) continue;\n\n var n = Lib.findBin(posArray[i], posBins);\n if(n >= 0 && n < pLen) {\n pt = {v: v, i: i};\n arraysToCalcdata(pt, trace, i);\n ptsPerBin[n].push(pt);\n }\n }\n\n var minLowerNotch = Infinity;\n var maxUpperNotch = -Infinity;\n\n var quartilemethod = trace.quartilemethod;\n var usesExclusive = quartilemethod === 'exclusive';\n var usesInclusive = quartilemethod === 'inclusive';\n\n // build calcdata trace items, one item per distinct position\n for(i = 0; i < pLen; i++) {\n if(ptsPerBin[i].length > 0) {\n cdi = {};\n cdi.pos = cdi[posLetter] = posDistinct[i];\n\n pts = cdi.pts = ptsPerBin[i].sort(sortByVal);\n boxVals = cdi[valLetter] = pts.map(extractVal);\n N = boxVals.length;\n\n cdi.min = boxVals[0];\n cdi.max = boxVals[N - 1];\n cdi.mean = Lib.mean(boxVals, N);\n cdi.sd = Lib.stdev(boxVals, N, cdi.mean);\n cdi.med = Lib.interp(boxVals, 0.5);\n\n if((N % 2) && (usesExclusive || usesInclusive)) {\n var lower;\n var upper;\n\n if(usesExclusive) {\n // do NOT include the median in either half\n lower = boxVals.slice(0, N / 2);\n upper = boxVals.slice(N / 2 + 1);\n } else if(usesInclusive) {\n // include the median in either half\n lower = boxVals.slice(0, N / 2 + 1);\n upper = boxVals.slice(N / 2);\n }\n\n cdi.q1 = Lib.interp(lower, 0.5);\n cdi.q3 = Lib.interp(upper, 0.5);\n } else {\n cdi.q1 = Lib.interp(boxVals, 0.25);\n cdi.q3 = Lib.interp(boxVals, 0.75);\n }\n\n // lower and upper fences\n cdi.lf = computeLowerFence(cdi, boxVals, N);\n cdi.uf = computeUpperFence(cdi, boxVals, N);\n\n // lower and upper outliers bounds\n cdi.lo = computeLowerOutlierBound(cdi);\n cdi.uo = computeUpperOutlierBound(cdi);\n\n // lower and upper notches\n var mci = computeNotchSpan(cdi, N);\n cdi.ln = cdi.med - mci;\n cdi.un = cdi.med + mci;\n minLowerNotch = Math.min(minLowerNotch, cdi.ln);\n maxUpperNotch = Math.max(maxUpperNotch, cdi.un);\n\n cdi.pts2 = pts.filter(ptFilterFn);\n\n cd.push(cdi);\n }\n }\n\n trace._extremes[valAxis._id] = Axes.findExtremes(valAxis,\n trace.notched ? valArray.concat([minLowerNotch, maxUpperNotch]) : valArray,\n {padded: true}\n );\n }\n\n calcSelection(cd, trace);\n\n if(cd.length > 0) {\n cd[0].t = {\n num: fullLayout[numKey],\n dPos: dPos,\n posLetter: posLetter,\n valLetter: valLetter,\n labels: {\n med: _(gd, 'median:'),\n min: _(gd, 'min:'),\n q1: _(gd, 'q1:'),\n q3: _(gd, 'q3:'),\n max: _(gd, 'max:'),\n mean: trace.boxmean === 'sd' ? _(gd, 'mean ± σ:') : _(gd, 'mean:'),\n lf: _(gd, 'lower fence:'),\n uf: _(gd, 'upper fence:')\n }\n };\n\n fullLayout[numKey]++;\n return cd;\n } else {\n return [{t: {empty: true}}];\n }\n};\n\n// In vertical (horizontal) box plots:\n// if no x (y) data, use x0 (y0), or name\n// so if you want one box\n// per trace, set x0 (y0) to the x (y) value or category for this trace\n// (or set x (y) to a constant array matching y (x))\nfunction getPosArrays(trace, posLetter, posAxis, num) {\n var hasPosArray = posLetter in trace;\n var hasPos0 = posLetter + '0' in trace;\n var hasPosStep = 'd' + posLetter in trace;\n\n if(hasPosArray || (hasPos0 && hasPosStep)) {\n var origPos = posAxis.makeCalcdata(trace, posLetter);\n var pos = alignPeriod(trace, posAxis, posLetter, origPos).vals;\n return [pos, origPos];\n }\n\n var pos0;\n if(hasPos0) {\n pos0 = trace[posLetter + '0'];\n } else if('name' in trace && (\n posAxis.type === 'category' || (\n isNumeric(trace.name) &&\n ['linear', 'log'].indexOf(posAxis.type) !== -1\n ) || (\n Lib.isDateTime(trace.name) &&\n posAxis.type === 'date'\n )\n )) {\n pos0 = trace.name;\n } else {\n pos0 = num;\n }\n\n var pos0c = posAxis.type === 'multicategory' ?\n posAxis.r2c_just_indices(pos0) :\n posAxis.d2c(pos0, 0, trace[posLetter + 'calendar']);\n\n var len = trace._length;\n var out = new Array(len);\n for(var i = 0; i < len; i++) out[i] = pos0c;\n\n return [out];\n}\n\nfunction makeBins(x, dx) {\n var len = x.length;\n var bins = new Array(len + 1);\n\n for(var i = 0; i < len; i++) {\n bins[i] = x[i] - dx;\n }\n bins[len] = x[len - 1] + dx;\n\n return bins;\n}\n\nfunction initNestedArray(len) {\n var arr = new Array(len);\n for(var i = 0; i < len; i++) {\n arr[i] = [];\n }\n return arr;\n}\n\nvar TRACE_TO_CALC = {\n text: 'tx',\n hovertext: 'htx'\n};\n\nfunction arraysToCalcdata(pt, trace, ptNumber) {\n for(var k in TRACE_TO_CALC) {\n if(Lib.isArrayOrTypedArray(trace[k])) {\n if(Array.isArray(ptNumber)) {\n if(Lib.isArrayOrTypedArray(trace[k][ptNumber[0]])) {\n pt[TRACE_TO_CALC[k]] = trace[k][ptNumber[0]][ptNumber[1]];\n }\n } else {\n pt[TRACE_TO_CALC[k]] = trace[k][ptNumber];\n }\n }\n }\n}\n\nfunction calcSelection(cd, trace) {\n if(Lib.isArrayOrTypedArray(trace.selectedpoints)) {\n for(var i = 0; i < cd.length; i++) {\n var pts = cd[i].pts || [];\n var ptNumber2cdIndex = {};\n\n for(var j = 0; j < pts.length; j++) {\n ptNumber2cdIndex[pts[j].i] = j;\n }\n\n Lib.tagSelected(pts, trace, ptNumber2cdIndex);\n }\n }\n}\n\nfunction sortByVal(a, b) { return a.v - b.v; }\n\nfunction extractVal(o) { return o.v; }\n\n// last point below 1.5 * IQR\nfunction computeLowerFence(cdi, boxVals, N) {\n if(N === 0) return cdi.q1;\n return Math.min(\n cdi.q1,\n boxVals[Math.min(\n Lib.findBin(2.5 * cdi.q1 - 1.5 * cdi.q3, boxVals, true) + 1,\n N - 1\n )]\n );\n}\n\n// last point above 1.5 * IQR\nfunction computeUpperFence(cdi, boxVals, N) {\n if(N === 0) return cdi.q3;\n return Math.max(\n cdi.q3,\n boxVals[Math.max(\n Lib.findBin(2.5 * cdi.q3 - 1.5 * cdi.q1, boxVals),\n 0\n )]\n );\n}\n\n// 3 IQR below (don't clip to max/min,\n// this is only for discriminating suspected & far outliers)\nfunction computeLowerOutlierBound(cdi) {\n return 4 * cdi.q1 - 3 * cdi.q3;\n}\n\n// 3 IQR above (don't clip to max/min,\n// this is only for discriminating suspected & far outliers)\nfunction computeUpperOutlierBound(cdi) {\n return 4 * cdi.q3 - 3 * cdi.q1;\n}\n\n// 95% confidence intervals for median\nfunction computeNotchSpan(cdi, N) {\n if(N === 0) return 0;\n return 1.57 * (cdi.q3 - cdi.q1) / Math.sqrt(N);\n}\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"fast-isnumeric\":190}],684:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\n\nvar orientations = ['v', 'h'];\n\nfunction crossTraceCalc(gd, plotinfo) {\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n for(var i = 0; i < orientations.length; i++) {\n var orientation = orientations[i];\n var posAxis = orientation === 'h' ? ya : xa;\n var boxList = [];\n\n // make list of boxes / candlesticks\n // For backward compatibility, candlesticks are treated as if they *are* box traces here\n for(var j = 0; j < calcdata.length; j++) {\n var cd = calcdata[j];\n var t = cd[0].t;\n var trace = cd[0].trace;\n\n if(trace.visible === true &&\n (trace.type === 'box' || trace.type === 'candlestick') &&\n !t.empty &&\n (trace.orientation || 'v') === orientation &&\n trace.xaxis === xa._id &&\n trace.yaxis === ya._id\n ) {\n boxList.push(j);\n }\n }\n\n setPositionOffset('box', gd, boxList, posAxis);\n }\n}\n\nfunction setPositionOffset(traceType, gd, boxList, posAxis) {\n var calcdata = gd.calcdata;\n var fullLayout = gd._fullLayout;\n var axId = posAxis._id;\n var axLetter = axId.charAt(0);\n\n var i, j, calcTrace;\n var pointList = [];\n var shownPts = 0;\n\n // make list of box points\n for(i = 0; i < boxList.length; i++) {\n calcTrace = calcdata[boxList[i]];\n for(j = 0; j < calcTrace.length; j++) {\n pointList.push(posAxis.c2l(calcTrace[j].pos, true));\n shownPts += (calcTrace[j].pts2 || []).length;\n }\n }\n\n if(!pointList.length) return;\n\n // box plots - update dPos based on multiple traces\n var boxdv = Lib.distinctVals(pointList);\n if(posAxis.type === 'category' || posAxis.type === 'multicategory') {\n boxdv.minDiff = 1;\n }\n\n var dPos0 = boxdv.minDiff / 2;\n\n // check for forced minimum dtick\n Axes.minDtick(posAxis, boxdv.minDiff, boxdv.vals[0], true);\n\n var numKey = traceType === 'violin' ? '_numViolins' : '_numBoxes';\n var numTotal = fullLayout[numKey];\n var group = fullLayout[traceType + 'mode'] === 'group' && numTotal > 1;\n var groupFraction = 1 - fullLayout[traceType + 'gap'];\n var groupGapFraction = 1 - fullLayout[traceType + 'groupgap'];\n\n for(i = 0; i < boxList.length; i++) {\n calcTrace = calcdata[boxList[i]];\n\n var trace = calcTrace[0].trace;\n var t = calcTrace[0].t;\n var width = trace.width;\n var side = trace.side;\n\n // position coordinate delta\n var dPos;\n // box half width;\n var bdPos;\n // box center offset\n var bPos;\n // half-width within which to accept hover for this box/violin\n // always split the distance to the closest box/violin\n var wHover;\n\n if(width) {\n dPos = bdPos = wHover = width / 2;\n bPos = 0;\n } else {\n dPos = dPos0;\n\n if(group) {\n var groupId = getAxisGroup(fullLayout, posAxis._id) + trace.orientation;\n var alignmentGroups = fullLayout._alignmentOpts[groupId] || {};\n var alignmentGroupOpts = alignmentGroups[trace.alignmentgroup] || {};\n var nOffsetGroups = Object.keys(alignmentGroupOpts.offsetGroups || {}).length;\n var num = nOffsetGroups || numTotal;\n var shift = nOffsetGroups ? trace._offsetIndex : t.num;\n\n bdPos = dPos * groupFraction * groupGapFraction / num;\n bPos = 2 * dPos * (-0.5 + (shift + 0.5) / num) * groupFraction;\n wHover = dPos * groupFraction / num;\n } else {\n bdPos = dPos * groupFraction * groupGapFraction;\n bPos = 0;\n wHover = dPos;\n }\n }\n t.dPos = dPos;\n t.bPos = bPos;\n t.bdPos = bdPos;\n t.wHover = wHover;\n\n // box/violin-only value-space push value\n var pushplus;\n var pushminus;\n // edge of box/violin\n var edge = bPos + bdPos;\n var edgeplus;\n var edgeminus;\n // value-space padding\n var vpadplus;\n var vpadminus;\n // pixel-space padding\n var ppadplus;\n var ppadminus;\n // do we add 5% of both sides (more logic for points beyond box/violin below)\n var padded = Boolean(width);\n // does this trace show points?\n var hasPts = (trace.boxpoints || trace.points) && (shownPts > 0);\n\n if(side === 'positive') {\n pushplus = dPos * (width ? 1 : 0.5);\n edgeplus = edge;\n pushminus = edgeplus = bPos;\n } else if(side === 'negative') {\n pushplus = edgeplus = bPos;\n pushminus = dPos * (width ? 1 : 0.5);\n edgeminus = edge;\n } else {\n pushplus = pushminus = dPos;\n edgeplus = edgeminus = edge;\n }\n\n if(hasPts) {\n var pointpos = trace.pointpos;\n var jitter = trace.jitter;\n var ms = trace.marker.size / 2;\n\n var pp = 0;\n if((pointpos + jitter) >= 0) {\n pp = edge * (pointpos + jitter);\n if(pp > pushplus) {\n // (++) beyond plus-value, use pp\n padded = true;\n ppadplus = ms;\n vpadplus = pp;\n } else if(pp > edgeplus) {\n // (+), use push-value (it's bigger), but add px-pad\n ppadplus = ms;\n vpadplus = pushplus;\n }\n }\n if(pp <= pushplus) {\n // (->) fallback to push value\n vpadplus = pushplus;\n }\n\n var pm = 0;\n if((pointpos - jitter) <= 0) {\n pm = -edge * (pointpos - jitter);\n if(pm > pushminus) {\n // (--) beyond plus-value, use pp\n padded = true;\n ppadminus = ms;\n vpadminus = pm;\n } else if(pm > edgeminus) {\n // (-), use push-value (it's bigger), but add px-pad\n ppadminus = ms;\n vpadminus = pushminus;\n }\n }\n if(pm <= pushminus) {\n // (<-) fallback to push value\n vpadminus = pushminus;\n }\n } else {\n vpadplus = pushplus;\n vpadminus = pushminus;\n }\n\n var pos = new Array(calcTrace.length);\n for(j = 0; j < calcTrace.length; j++) {\n pos[j] = calcTrace[j].pos;\n }\n\n trace._extremes[axId] = Axes.findExtremes(posAxis, pos, {\n padded: padded,\n vpadminus: vpadminus,\n vpadplus: vpadplus,\n vpadLinearized: true,\n // N.B. SVG px-space positive/negative\n ppadminus: {x: ppadminus, y: ppadplus}[axLetter],\n ppadplus: {x: ppadplus, y: ppadminus}[axLetter],\n });\n }\n}\n\nmodule.exports = {\n crossTraceCalc: crossTraceCalc,\n setPositionOffset: setPositionOffset\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/constraints\":574}],685:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar Color = _dereq_('../../components/color');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\nvar autoType = _dereq_('../../plots/cartesian/axis_autotype');\nvar attributes = _dereq_('./attributes');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var hasPreCompStats = traceOut._hasPreCompStats;\n\n if(hasPreCompStats) {\n coerce('lowerfence');\n coerce('upperfence');\n }\n\n coerce('line.color', (traceIn.marker || {}).color || defaultColor);\n coerce('line.width');\n coerce('fillcolor', Color.addOpacity(traceOut.line.color, 0.5));\n\n var boxmeanDflt = false;\n if(hasPreCompStats) {\n var mean = coerce('mean');\n var sd = coerce('sd');\n if(mean && mean.length) {\n boxmeanDflt = true;\n if(sd && sd.length) boxmeanDflt = 'sd';\n }\n }\n coerce('boxmean', boxmeanDflt);\n\n coerce('whiskerwidth');\n coerce('width');\n coerce('quartilemethod');\n\n var notchedDflt = false;\n if(hasPreCompStats) {\n var notchspan = coerce('notchspan');\n if(notchspan && notchspan.length) {\n notchedDflt = true;\n }\n } else if(Lib.validate(traceIn.notchwidth, attributes.notchwidth)) {\n notchedDflt = true;\n }\n var notched = coerce('notched', notchedDflt);\n if(notched) coerce('notchwidth');\n\n handlePointsDefaults(traceIn, traceOut, coerce, {prefix: 'box'});\n}\n\nfunction handleSampleDefaults(traceIn, traceOut, coerce, layout) {\n function getDims(arr) {\n var dims = 0;\n if(arr && arr.length) {\n dims += 1;\n if(Lib.isArrayOrTypedArray(arr[0]) && arr[0].length) {\n dims += 1;\n }\n }\n return dims;\n }\n\n function valid(astr) {\n return Lib.validate(traceIn[astr], attributes[astr]);\n }\n\n var y = coerce('y');\n var x = coerce('x');\n\n var sLen;\n if(traceOut.type === 'box') {\n var q1 = coerce('q1');\n var median = coerce('median');\n var q3 = coerce('q3');\n\n traceOut._hasPreCompStats = (\n q1 && q1.length &&\n median && median.length &&\n q3 && q3.length\n );\n sLen = Math.min(\n Lib.minRowLength(q1),\n Lib.minRowLength(median),\n Lib.minRowLength(q3)\n );\n }\n\n var yDims = getDims(y);\n var xDims = getDims(x);\n var yLen = yDims && Lib.minRowLength(y);\n var xLen = xDims && Lib.minRowLength(x);\n\n var calendar = layout.calendar;\n var opts = {\n autotypenumbers: layout.autotypenumbers\n };\n\n var defaultOrientation, len;\n if(traceOut._hasPreCompStats) {\n switch(String(xDims) + String(yDims)) {\n // no x / no y\n case '00':\n var setInX = valid('x0') || valid('dx');\n var setInY = valid('y0') || valid('dy');\n\n if(setInY && !setInX) {\n defaultOrientation = 'h';\n } else {\n defaultOrientation = 'v';\n }\n\n len = sLen;\n break;\n // just x\n case '10':\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen);\n break;\n case '20':\n defaultOrientation = 'h';\n len = Math.min(sLen, x.length);\n break;\n // just y\n case '01':\n defaultOrientation = 'h';\n len = Math.min(sLen, yLen);\n break;\n case '02':\n defaultOrientation = 'v';\n len = Math.min(sLen, y.length);\n break;\n // both\n case '12':\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen, y.length);\n break;\n case '21':\n defaultOrientation = 'h';\n len = Math.min(sLen, x.length, yLen);\n break;\n case '11':\n // this one is ill-defined\n len = 0;\n break;\n case '22':\n var hasCategories = false;\n var i;\n for(i = 0; i < x.length; i++) {\n if(autoType(x[i], calendar, opts) === 'category') {\n hasCategories = true;\n break;\n }\n }\n\n if(hasCategories) {\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen, y.length);\n } else {\n for(i = 0; i < y.length; i++) {\n if(autoType(y[i], calendar, opts) === 'category') {\n hasCategories = true;\n break;\n }\n }\n\n if(hasCategories) {\n defaultOrientation = 'h';\n len = Math.min(sLen, x.length, yLen);\n } else {\n defaultOrientation = 'v';\n len = Math.min(sLen, xLen, y.length);\n }\n }\n break;\n }\n } else if(yDims > 0) {\n defaultOrientation = 'v';\n if(xDims > 0) {\n len = Math.min(xLen, yLen);\n } else {\n len = Math.min(yLen);\n }\n } else if(xDims > 0) {\n defaultOrientation = 'h';\n len = Math.min(xLen);\n } else {\n len = 0;\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n traceOut._length = len;\n\n var orientation = coerce('orientation', defaultOrientation);\n\n // these are just used for positioning, they never define the sample\n if(traceOut._hasPreCompStats) {\n if(orientation === 'v' && xDims === 0) {\n coerce('x0', 0);\n coerce('dx', 1);\n } else if(orientation === 'h' && yDims === 0) {\n coerce('y0', 0);\n coerce('dy', 1);\n }\n } else {\n if(orientation === 'v' && xDims === 0) {\n coerce('x0');\n } else if(orientation === 'h' && yDims === 0) {\n coerce('y0');\n }\n }\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n}\n\nfunction handlePointsDefaults(traceIn, traceOut, coerce, opts) {\n var prefix = opts.prefix;\n\n var outlierColorDflt = Lib.coerce2(traceIn, traceOut, attributes, 'marker.outliercolor');\n var lineoutliercolor = coerce('marker.line.outliercolor');\n\n var modeDflt = 'outliers';\n if(traceOut._hasPreCompStats) {\n modeDflt = 'all';\n } else if(outlierColorDflt || lineoutliercolor) {\n modeDflt = 'suspectedoutliers';\n }\n\n var mode = coerce(prefix + 'points', modeDflt);\n\n if(mode) {\n coerce('jitter', mode === 'all' ? 0.3 : 0);\n coerce('pointpos', mode === 'all' ? -1.5 : 0);\n\n coerce('marker.symbol');\n coerce('marker.opacity');\n coerce('marker.size');\n coerce('marker.angle');\n\n coerce('marker.color', traceOut.line.color);\n coerce('marker.line.color');\n coerce('marker.line.width');\n\n if(mode === 'suspectedoutliers') {\n coerce('marker.line.outliercolor', traceOut.marker.color);\n coerce('marker.line.outlierwidth');\n }\n\n coerce('selected.marker.color');\n coerce('unselected.marker.color');\n coerce('selected.marker.size');\n coerce('unselected.marker.size');\n\n coerce('text');\n coerce('hovertext');\n } else {\n delete traceOut.marker;\n }\n\n var hoveron = coerce('hoveron');\n if(hoveron === 'all' || hoveron.indexOf('points') !== -1) {\n coerce('hovertemplate');\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n var traceType = traceOut.type;\n\n if(traceType === 'box' || traceType === 'violin') {\n traceIn = traceOut._input;\n if(fullLayout[traceType + 'mode'] === 'group') {\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults,\n\n handleSampleDefaults: handleSampleDefaults,\n handlePointsDefaults: handlePointsDefaults\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plots/cartesian/axis_autotype\":567,\"../../registry\":647,\"../bar/defaults\":661,\"../scatter/period_defaults\":956,\"./attributes\":682}],686:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt) {\n // Note: hoverOnBox property is needed for click-to-select\n // to ignore when a box was clicked. This is the reason box\n // implements this custom eventData function.\n if(pt.hoverOnBox) out.hoverOnBox = pt.hoverOnBox;\n\n if('xVal' in pt) out.x = pt.xVal;\n if('yVal' in pt) out.y = pt.yVal;\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n return out;\n};\n\n},{}],687:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar fillText = Lib.fillText;\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var hoveron = trace.hoveron;\n var closeBoxData = [];\n var closePtData;\n\n if(hoveron.indexOf('boxes') !== -1) {\n closeBoxData = closeBoxData.concat(hoverOnBoxes(pointData, xval, yval, hovermode));\n }\n\n if(hoveron.indexOf('points') !== -1) {\n closePtData = hoverOnPoints(pointData, xval, yval);\n }\n\n // If there's a point in range and hoveron has points, show the best single point only.\n // If hoveron has boxes and there's no point in range (or hoveron doesn't have points), show the box stats.\n if(hovermode === 'closest') {\n if(closePtData) return [closePtData];\n return closeBoxData;\n }\n\n // Otherwise in compare mode, allow a point AND the box stats to be labeled\n // If there are multiple boxes in range (ie boxmode = 'overlay') we'll see stats for all of them.\n if(closePtData) {\n closeBoxData.push(closePtData);\n return closeBoxData;\n }\n return closeBoxData;\n}\n\nfunction hoverOnBoxes(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var t = cd[0].t;\n var isViolin = trace.type === 'violin';\n\n var pLetter, vLetter, pAxis, vAxis, vVal, pVal, dx, dy, dPos,\n hoverPseudoDistance, spikePseudoDistance;\n\n var boxDelta = t.bdPos;\n var boxDeltaPos, boxDeltaNeg;\n var posAcceptance = t.wHover;\n var shiftPos = function(di) { return pAxis.c2l(di.pos) + t.bPos - pAxis.c2l(pVal); };\n\n if(isViolin && trace.side !== 'both') {\n if(trace.side === 'positive') {\n dPos = function(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos, pos + posAcceptance, hoverPseudoDistance);\n };\n boxDeltaPos = boxDelta;\n boxDeltaNeg = 0;\n }\n if(trace.side === 'negative') {\n dPos = function(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos - posAcceptance, pos, hoverPseudoDistance);\n };\n boxDeltaPos = 0;\n boxDeltaNeg = boxDelta;\n }\n } else {\n dPos = function(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos - posAcceptance, pos + posAcceptance, hoverPseudoDistance);\n };\n boxDeltaPos = boxDeltaNeg = boxDelta;\n }\n\n var dVal;\n\n if(isViolin) {\n dVal = function(di) {\n return Fx.inbox(di.span[0] - vVal, di.span[1] - vVal, hoverPseudoDistance);\n };\n } else {\n dVal = function(di) {\n return Fx.inbox(di.min - vVal, di.max - vVal, hoverPseudoDistance);\n };\n }\n\n if(trace.orientation === 'h') {\n vVal = xval;\n pVal = yval;\n dx = dVal;\n dy = dPos;\n pLetter = 'y';\n pAxis = ya;\n vLetter = 'x';\n vAxis = xa;\n } else {\n vVal = yval;\n pVal = xval;\n dx = dPos;\n dy = dVal;\n pLetter = 'x';\n pAxis = xa;\n vLetter = 'y';\n vAxis = ya;\n }\n\n // if two boxes are overlaying, let the narrowest one win\n var pseudoDistance = Math.min(1, boxDelta / Math.abs(pAxis.r2c(pAxis.range[1]) - pAxis.r2c(pAxis.range[0])));\n hoverPseudoDistance = pointData.maxHoverDistance - pseudoDistance;\n spikePseudoDistance = pointData.maxSpikeDistance - pseudoDistance;\n\n function dxy(di) { return (dx(di) + dy(di)) / 2; }\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n Fx.getClosest(cd, distfn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n // and create the item(s) in closedata for this point\n if(pointData.index === false) return [];\n\n var di = cd[pointData.index];\n var lc = trace.line.color;\n var mc = (trace.marker || {}).color;\n\n if(Color.opacity(lc) && trace.line.width) pointData.color = lc;\n else if(Color.opacity(mc) && trace.boxpoints) pointData.color = mc;\n else pointData.color = trace.fillcolor;\n\n pointData[pLetter + '0'] = pAxis.c2p(di.pos + t.bPos - boxDeltaNeg, true);\n pointData[pLetter + '1'] = pAxis.c2p(di.pos + t.bPos + boxDeltaPos, true);\n\n pointData[pLetter + 'LabelVal'] = di.orig_p !== undefined ? di.orig_p : di.pos;\n\n var spikePosAttr = pLetter + 'Spike';\n pointData.spikeDistance = dxy(di) * spikePseudoDistance / hoverPseudoDistance;\n pointData[spikePosAttr] = pAxis.c2p(di.pos, true);\n\n var hasMean = trace.boxmean || (trace.meanline || {}).visible;\n var hasFences = trace.boxpoints || trace.points;\n\n // labels with equal values (e.g. when min === q1) should still be presented in the order they have when they're unequal\n var attrs =\n (hasFences && hasMean) ? ['max', 'uf', 'q3', 'med', 'mean', 'q1', 'lf', 'min'] :\n (hasFences && !hasMean) ? ['max', 'uf', 'q3', 'med', 'q1', 'lf', 'min'] :\n (!hasFences && hasMean) ? ['max', 'q3', 'med', 'mean', 'q1', 'min'] :\n ['max', 'q3', 'med', 'q1', 'min'];\n\n var rev = vAxis.range[1] < vAxis.range[0];\n\n if(trace.orientation === (rev ? 'v' : 'h')) {\n attrs.reverse();\n }\n\n var spikeDistance = pointData.spikeDistance;\n var spikePosition = pointData[spikePosAttr];\n\n var closeBoxData = [];\n for(var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n if(!(attr in di)) continue;\n\n // copy out to a new object for each value to label\n var val = di[attr];\n var valPx = vAxis.c2p(val, true);\n var pointData2 = Lib.extendFlat({}, pointData);\n\n pointData2.attr = attr;\n pointData2[vLetter + '0'] = pointData2[vLetter + '1'] = valPx;\n pointData2[vLetter + 'LabelVal'] = val;\n pointData2[vLetter + 'Label'] = (t.labels ? t.labels[attr] + ' ' : '') + Axes.hoverLabelText(vAxis, val, trace[vLetter + 'hoverformat']);\n\n // Note: introduced to be able to distinguish a\n // clicked point from a box during click-to-select\n pointData2.hoverOnBox = true;\n\n if(attr === 'mean' && ('sd' in di) && trace.boxmean === 'sd') {\n pointData2[vLetter + 'err'] = di.sd;\n }\n\n // no hovertemplate support yet\n pointData2.hovertemplate = false;\n\n closeBoxData.push(pointData2);\n }\n\n // only keep name and spikes on the median\n pointData.name = '';\n pointData.spikeDistance = undefined;\n pointData[spikePosAttr] = undefined;\n for(var k = 0; k < closeBoxData.length; k++) {\n if(closeBoxData[k].attr !== 'med') {\n closeBoxData[k].name = '';\n closeBoxData[k].spikeDistance = undefined;\n closeBoxData[k][spikePosAttr] = undefined;\n } else {\n closeBoxData[k].spikeDistance = spikeDistance;\n closeBoxData[k][spikePosAttr] = spikePosition;\n }\n }\n\n return closeBoxData;\n}\n\nfunction hoverOnPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var xPx = xa.c2p(xval);\n var yPx = ya.c2p(yval);\n var closePtData;\n\n var dx = function(di) {\n var rad = Math.max(3, di.mrc || 0);\n return Math.max(Math.abs(xa.c2p(di.x) - xPx) - rad, 1 - 3 / rad);\n };\n var dy = function(di) {\n var rad = Math.max(3, di.mrc || 0);\n return Math.max(Math.abs(ya.c2p(di.y) - yPx) - rad, 1 - 3 / rad);\n };\n var distfn = Fx.quadrature(dx, dy);\n\n // show one point per trace\n var ijClosest = false;\n var di, pt;\n\n for(var i = 0; i < cd.length; i++) {\n di = cd[i];\n\n for(var j = 0; j < (di.pts || []).length; j++) {\n pt = di.pts[j];\n\n var newDistance = distfn(pt);\n if(newDistance <= pointData.distance) {\n pointData.distance = newDistance;\n ijClosest = [i, j];\n }\n }\n }\n\n if(!ijClosest) return false;\n\n di = cd[ijClosest[0]];\n pt = di.pts[ijClosest[1]];\n\n var xc = xa.c2p(pt.x, true);\n var yc = ya.c2p(pt.y, true);\n var rad = pt.mrc || 1;\n\n closePtData = Lib.extendFlat({}, pointData, {\n // corresponds to index in x/y input data array\n index: pt.i,\n color: (trace.marker || {}).color,\n name: trace.name,\n x0: xc - rad,\n x1: xc + rad,\n y0: yc - rad,\n y1: yc + rad,\n spikeDistance: pointData.distance,\n hovertemplate: trace.hovertemplate\n });\n\n var origPos = di.orig_p;\n var pos = origPos !== undefined ? origPos : di.pos;\n var pa;\n if(trace.orientation === 'h') {\n pa = ya;\n closePtData.xLabelVal = pt.x;\n closePtData.yLabelVal = pos;\n } else {\n pa = xa;\n closePtData.xLabelVal = pos;\n closePtData.yLabelVal = pt.y;\n }\n\n var pLetter = pa._id.charAt(0);\n closePtData[pLetter + 'Spike'] = pa.c2p(di.pos, true);\n\n fillText(pt, trace, closePtData);\n\n return closePtData;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n hoverOnBoxes: hoverOnBoxes,\n hoverOnPoints: hoverOnPoints\n};\n\n},{\"../../components/color\":367,\"../../components/fx\":407,\"../../lib\":515,\"../../plots/cartesian/axes\":566}],688:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults').supplyLayoutDefaults,\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc').crossTraceCalc,\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'box',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'symbols', 'oriented', 'box-violin', 'showLegend', 'boxLayout', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"./attributes\":682,\"./calc\":683,\"./cross_trace_calc\":684,\"./defaults\":685,\"./event_data\":686,\"./hover\":687,\"./layout_attributes\":689,\"./layout_defaults\":690,\"./plot\":691,\"./select\":692,\"./style\":693}],689:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n boxmode: {\n valType: 'enumerated',\n values: ['group', 'overlay'],\n dflt: 'overlay',\n editType: 'calc',\n },\n boxgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.3,\n editType: 'calc',\n },\n boxgroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.3,\n editType: 'calc',\n }\n};\n\n},{}],690:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nfunction _supply(layoutIn, layoutOut, fullData, coerce, traceType) {\n var category = traceType + 'Layout';\n var hasTraceType = false;\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(Registry.traceIs(trace, category)) {\n hasTraceType = true;\n break;\n }\n }\n if(!hasTraceType) return;\n\n coerce(traceType + 'mode');\n coerce(traceType + 'gap');\n coerce(traceType + 'groupgap');\n}\n\nfunction supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n _supply(layoutIn, layoutOut, fullData, coerce, 'box');\n}\n\nmodule.exports = {\n supplyLayoutDefaults: supplyLayoutDefaults,\n _supply: _supply\n};\n\n},{\"../../lib\":515,\"../../registry\":647,\"./layout_attributes\":689}],691:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\n\n// constants for dynamic jitter (ie less jitter for sparser points)\nvar JITTERCOUNT = 5; // points either side of this to include\nvar JITTERSPREAD = 0.01; // fraction of IQR to count as \"dense\"\n\nfunction plot(gd, plotinfo, cdbox, boxLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(boxLayer, cdbox, 'trace boxes').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var t = cd0.t;\n var trace = cd0.trace;\n\n // whisker width\n t.wdPos = t.bdPos * trace.whiskerwidth;\n\n if(trace.visible !== true || t.empty) {\n plotGroup.remove();\n return;\n }\n\n var posAxis, valAxis;\n\n if(trace.orientation === 'h') {\n posAxis = ya;\n valAxis = xa;\n } else {\n posAxis = xa;\n valAxis = ya;\n }\n\n plotBoxAndWhiskers(plotGroup, {pos: posAxis, val: valAxis}, trace, t);\n plotPoints(plotGroup, {x: xa, y: ya}, trace, t);\n plotBoxMean(plotGroup, {pos: posAxis, val: valAxis}, trace, t);\n });\n}\n\nfunction plotBoxAndWhiskers(sel, axes, trace, t) {\n var isHorizontal = trace.orientation === 'h';\n var valAxis = axes.val;\n var posAxis = axes.pos;\n var posHasRangeBreaks = !!posAxis.rangebreaks;\n\n var bPos = t.bPos;\n var wdPos = t.wdPos || 0;\n var bPosPxOffset = t.bPosPxOffset || 0;\n var whiskerWidth = trace.whiskerwidth || 0;\n var notched = trace.notched || false;\n var nw = notched ? 1 - 2 * trace.notchwidth : 1;\n\n // to support for one-sided box\n var bdPos0;\n var bdPos1;\n if(Array.isArray(t.bdPos)) {\n bdPos0 = t.bdPos[0];\n bdPos1 = t.bdPos[1];\n } else {\n bdPos0 = t.bdPos;\n bdPos1 = t.bdPos;\n }\n\n var paths = sel.selectAll('path.box').data((\n trace.type !== 'violin' ||\n trace.box.visible\n ) ? Lib.identity : []);\n\n paths.enter().append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .attr('class', 'box');\n\n paths.exit().remove();\n\n paths.each(function(d) {\n if(d.empty) return 'M0,0Z';\n\n var lcenter = posAxis.c2l(d.pos + bPos, true);\n\n var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;\n var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;\n var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;\n\n var r = trace.whiskerwidth;\n var posw0 = posHasRangeBreaks ? pos0 * r + (1 - r) * posc : posAxis.l2p(lcenter - wdPos) + bPosPxOffset;\n var posw1 = posHasRangeBreaks ? pos1 * r + (1 - r) * posc : posAxis.l2p(lcenter + wdPos) + bPosPxOffset;\n\n var posm0 = posAxis.l2p(lcenter - bdPos0 * nw) + bPosPxOffset;\n var posm1 = posAxis.l2p(lcenter + bdPos1 * nw) + bPosPxOffset;\n var q1 = valAxis.c2p(d.q1, true);\n var q3 = valAxis.c2p(d.q3, true);\n // make sure median isn't identical to either of the\n // quartiles, so we can see it\n var m = Lib.constrain(\n valAxis.c2p(d.med, true),\n Math.min(q1, q3) + 1, Math.max(q1, q3) - 1\n );\n\n // for compatibility with box, violin, and candlestick\n // perhaps we should put this into cd0.t instead so it's more explicit,\n // but what we have now is:\n // - box always has d.lf, but boxpoints can be anything\n // - violin has d.lf and should always use it (boxpoints is undefined)\n // - candlestick has only min/max\n var useExtremes = (d.lf === undefined) || (trace.boxpoints === false);\n var lf = valAxis.c2p(useExtremes ? d.min : d.lf, true);\n var uf = valAxis.c2p(useExtremes ? d.max : d.uf, true);\n var ln = valAxis.c2p(d.ln, true);\n var un = valAxis.c2p(d.un, true);\n\n if(isHorizontal) {\n d3.select(this).attr('d',\n 'M' + m + ',' + posm0 + 'V' + posm1 + // median line\n 'M' + q1 + ',' + pos0 + 'V' + pos1 + // left edge\n (notched ?\n 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 :\n ''\n ) + // top notched edge\n 'H' + q3 + // end of the top edge\n 'V' + pos0 + // right edge\n (notched ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '') + // bottom notched edge\n 'Z' + // end of the box\n 'M' + q1 + ',' + posc + 'H' + lf + 'M' + q3 + ',' + posc + 'H' + uf + // whiskers\n (whiskerWidth === 0 ?\n '' : // whisker caps\n 'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1\n )\n );\n } else {\n d3.select(this).attr('d',\n 'M' + posm0 + ',' + m + 'H' + posm1 + // median line\n 'M' + pos0 + ',' + q1 + 'H' + pos1 + // top of the box\n (notched ?\n 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un :\n ''\n ) + // notched right edge\n 'V' + q3 + // end of the right edge\n 'H' + pos0 + // bottom of the box\n (notched ?\n 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln :\n ''\n ) + // notched left edge\n 'Z' + // end of the box\n 'M' + posc + ',' + q1 + 'V' + lf + 'M' + posc + ',' + q3 + 'V' + uf + // whiskers\n (whiskerWidth === 0 ?\n '' : // whisker caps\n 'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1\n )\n );\n }\n });\n}\n\nfunction plotPoints(sel, axes, trace, t) {\n var xa = axes.x;\n var ya = axes.y;\n var bdPos = t.bdPos;\n var bPos = t.bPos;\n\n // to support violin points\n var mode = trace.boxpoints || trace.points;\n\n // repeatable pseudo-random number generator\n Lib.seedPseudoRandom();\n\n // since box plot points get an extra level of nesting, each\n // box needs the trace styling info\n var fn = function(d) {\n d.forEach(function(v) {\n v.t = t;\n v.trace = trace;\n });\n return d;\n };\n\n var gPoints = sel.selectAll('g.points')\n .data(mode ? fn : []);\n\n gPoints.enter().append('g')\n .attr('class', 'points');\n\n gPoints.exit().remove();\n\n var paths = gPoints.selectAll('path')\n .data(function(d) {\n var i;\n var pts = d.pts2;\n\n // normally use IQR, but if this is 0 or too small, use max-min\n var typicalSpread = Math.max((d.max - d.min) / 10, d.q3 - d.q1);\n var minSpread = typicalSpread * 1e-9;\n var spreadLimit = typicalSpread * JITTERSPREAD;\n var jitterFactors = [];\n var maxJitterFactor = 0;\n var newJitter;\n\n // dynamic jitter\n if(trace.jitter) {\n if(typicalSpread === 0) {\n // edge case of no spread at all: fall back to max jitter\n maxJitterFactor = 1;\n jitterFactors = new Array(pts.length);\n for(i = 0; i < pts.length; i++) {\n jitterFactors[i] = 1;\n }\n } else {\n for(i = 0; i < pts.length; i++) {\n var i0 = Math.max(0, i - JITTERCOUNT);\n var pmin = pts[i0].v;\n var i1 = Math.min(pts.length - 1, i + JITTERCOUNT);\n var pmax = pts[i1].v;\n\n if(mode !== 'all') {\n if(pts[i].v < d.lf) pmax = Math.min(pmax, d.lf);\n else pmin = Math.max(pmin, d.uf);\n }\n\n var jitterFactor = Math.sqrt(spreadLimit * (i1 - i0) / (pmax - pmin + minSpread)) || 0;\n jitterFactor = Lib.constrain(Math.abs(jitterFactor), 0, 1);\n\n jitterFactors.push(jitterFactor);\n maxJitterFactor = Math.max(jitterFactor, maxJitterFactor);\n }\n }\n newJitter = trace.jitter * 2 / (maxJitterFactor || 1);\n }\n\n // fills in 'x' and 'y' in calcdata 'pts' item\n for(i = 0; i < pts.length; i++) {\n var pt = pts[i];\n var v = pt.v;\n\n var jitterOffset = trace.jitter ?\n (newJitter * jitterFactors[i] * (Lib.pseudoRandom() - 0.5)) :\n 0;\n\n var posPx = d.pos + bPos + bdPos * (trace.pointpos + jitterOffset);\n\n if(trace.orientation === 'h') {\n pt.y = posPx;\n pt.x = v;\n } else {\n pt.x = posPx;\n pt.y = v;\n }\n\n // tag suspected outliers\n if(mode === 'suspectedoutliers' && v < d.uo && v > d.lo) {\n pt.so = true;\n }\n }\n\n return pts;\n });\n\n paths.enter().append('path')\n .classed('point', true);\n\n paths.exit().remove();\n\n paths.call(Drawing.translatePoints, xa, ya);\n}\n\nfunction plotBoxMean(sel, axes, trace, t) {\n var valAxis = axes.val;\n var posAxis = axes.pos;\n var posHasRangeBreaks = !!posAxis.rangebreaks;\n\n var bPos = t.bPos;\n var bPosPxOffset = t.bPosPxOffset || 0;\n\n // to support violin mean lines\n var mode = trace.boxmean || (trace.meanline || {}).visible;\n\n // to support for one-sided box\n var bdPos0;\n var bdPos1;\n if(Array.isArray(t.bdPos)) {\n bdPos0 = t.bdPos[0];\n bdPos1 = t.bdPos[1];\n } else {\n bdPos0 = t.bdPos;\n bdPos1 = t.bdPos;\n }\n\n var paths = sel.selectAll('path.mean').data((\n (trace.type === 'box' && trace.boxmean) ||\n (trace.type === 'violin' && trace.box.visible && trace.meanline.visible)\n ) ? Lib.identity : []);\n\n paths.enter().append('path')\n .attr('class', 'mean')\n .style({\n fill: 'none',\n 'vector-effect': 'non-scaling-stroke'\n });\n\n paths.exit().remove();\n\n paths.each(function(d) {\n var lcenter = posAxis.c2l(d.pos + bPos, true);\n\n var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;\n var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;\n var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;\n\n var m = valAxis.c2p(d.mean, true);\n var sl = valAxis.c2p(d.mean - d.sd, true);\n var sh = valAxis.c2p(d.mean + d.sd, true);\n\n if(trace.orientation === 'h') {\n d3.select(this).attr('d',\n 'M' + m + ',' + pos0 + 'V' + pos1 +\n (mode === 'sd' ?\n 'm0,0L' + sl + ',' + posc + 'L' + m + ',' + pos0 + 'L' + sh + ',' + posc + 'Z' :\n '')\n );\n } else {\n d3.select(this).attr('d',\n 'M' + pos0 + ',' + m + 'H' + pos1 +\n (mode === 'sd' ?\n 'm0,0L' + posc + ',' + sl + 'L' + pos0 + ',' + m + 'L' + posc + ',' + sh + 'Z' :\n '')\n );\n }\n });\n}\n\nmodule.exports = {\n plot: plot,\n plotBoxAndWhiskers: plotBoxAndWhiskers,\n plotPoints: plotPoints,\n plotBoxMean: plotBoxMean\n};\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"@plotly/d3\":58}],692:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var i, j;\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n for(j = 0; j < (cd[i].pts || []).length; j++) {\n // clear selection\n cd[i].pts[j].selected = 0;\n }\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n for(j = 0; j < (cd[i].pts || []).length; j++) {\n var pt = cd[i].pts[j];\n var x = xa.c2p(pt.x);\n var y = ya.c2p(pt.y);\n\n if(selectionTester.contains([x, y], null, pt.i, searchInfo)) {\n selection.push({\n pointNumber: pt.i,\n x: xa.c2d(pt.x),\n y: ya.c2d(pt.y)\n });\n pt.selected = 1;\n } else {\n pt.selected = 0;\n }\n }\n }\n }\n\n return selection;\n};\n\n},{}],693:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\n\nfunction style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.trace.boxes');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var el = d3.select(this);\n var trace = d[0].trace;\n var lineWidth = trace.line.width;\n\n function styleBox(boxSel, lineWidth, lineColor, fillColor) {\n boxSel.style('stroke-width', lineWidth + 'px')\n .call(Color.stroke, lineColor)\n .call(Color.fill, fillColor);\n }\n\n var allBoxes = el.selectAll('path.box');\n\n if(trace.type === 'candlestick') {\n allBoxes.each(function(boxData) {\n if(boxData.empty) return;\n\n var thisBox = d3.select(this);\n var container = trace[boxData.dir]; // dir = 'increasing' or 'decreasing'\n styleBox(thisBox, container.line.width, container.line.color, container.fillcolor);\n // TODO: custom selection style for candlesticks\n thisBox.style('opacity', trace.selectedpoints && !boxData.selected ? 0.3 : 1);\n });\n } else {\n styleBox(allBoxes, lineWidth, trace.line.color, trace.fillcolor);\n el.selectAll('path.mean')\n .style({\n 'stroke-width': lineWidth,\n 'stroke-dasharray': (2 * lineWidth) + 'px,' + lineWidth + 'px'\n })\n .call(Color.stroke, trace.line.color);\n\n var pts = el.selectAll('path.point');\n Drawing.pointStyle(pts, trace, gd);\n }\n });\n}\n\nfunction styleOnSelect(gd, cd, sel) {\n var trace = cd[0].trace;\n var pts = sel.selectAll('path.point');\n\n if(trace.selectedpoints) {\n Drawing.selectedPointStyle(pts, trace);\n } else {\n Drawing.pointStyle(pts, trace, gd);\n }\n}\n\nmodule.exports = {\n style: style,\n styleOnSelect: styleOnSelect\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"@plotly/d3\":58}],694:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar OHLCattrs = _dereq_('../ohlc/attributes');\nvar boxAttrs = _dereq_('../box/attributes');\n\nfunction directionAttrs(lineColorDefault) {\n return {\n line: {\n color: extendFlat({}, boxAttrs.line.color, {dflt: lineColorDefault}),\n width: boxAttrs.line.width,\n editType: 'style'\n },\n\n fillcolor: boxAttrs.fillcolor,\n editType: 'style'\n };\n}\n\nmodule.exports = {\n xperiod: OHLCattrs.xperiod,\n xperiod0: OHLCattrs.xperiod0,\n xperiodalignment: OHLCattrs.xperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n x: OHLCattrs.x,\n open: OHLCattrs.open,\n high: OHLCattrs.high,\n low: OHLCattrs.low,\n close: OHLCattrs.close,\n\n line: {\n width: extendFlat({}, boxAttrs.line.width, {\n }),\n editType: 'style'\n },\n\n increasing: directionAttrs(OHLCattrs.increasing.line.color.dflt),\n\n decreasing: directionAttrs(OHLCattrs.decreasing.line.color.dflt),\n\n text: OHLCattrs.text,\n hovertext: OHLCattrs.hovertext,\n\n whiskerwidth: extendFlat({}, boxAttrs.whiskerwidth, { dflt: 0 }),\n\n hoverlabel: OHLCattrs.hoverlabel,\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axis_format_attributes\":569,\"../box/attributes\":682,\"../ohlc/attributes\":881}],695:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nvar calcCommon = _dereq_('../ohlc/calc').calcCommon;\n\nmodule.exports = function(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n\n var origX = xa.makeCalcdata(trace, 'x');\n var x = alignPeriod(trace, xa, 'x', origX).vals;\n\n var cd = calcCommon(gd, trace, origX, x, ya, ptFunc);\n\n if(cd.length) {\n Lib.extendFlat(cd[0].t, {\n num: fullLayout._numBoxes,\n dPos: Lib.distinctVals(x).minDiff / 2,\n posLetter: 'x',\n valLetter: 'y',\n });\n\n fullLayout._numBoxes++;\n return cd;\n } else {\n return [{t: {empty: true}}];\n }\n};\n\nfunction ptFunc(o, h, l, c) {\n return {\n min: l,\n q1: Math.min(o, c),\n med: c,\n q3: Math.max(o, c),\n max: h,\n };\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"../ohlc/calc\":882}],696:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar handleOHLC = _dereq_('../ohlc/ohlc_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleOHLC(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce, {x: true});\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('line.width');\n\n handleDirection(traceIn, traceOut, coerce, 'increasing');\n handleDirection(traceIn, traceOut, coerce, 'decreasing');\n\n coerce('text');\n coerce('hovertext');\n coerce('whiskerwidth');\n\n layout._requestRangeslider[traceOut.xaxis] = true;\n};\n\nfunction handleDirection(traceIn, traceOut, coerce, direction) {\n var lineColor = coerce(direction + '.line.color');\n coerce(direction + '.line.width', traceOut.line.width);\n coerce(direction + '.fillcolor', Color.addOpacity(lineColor, 0.5));\n}\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../ohlc/ohlc_defaults\":886,\"../scatter/period_defaults\":956,\"./attributes\":694}],697:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'candlestick',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'showLegend', 'candlestick', 'boxLayout'],\n meta: {\n },\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('../box/layout_attributes'),\n supplyLayoutDefaults: _dereq_('../box/layout_defaults').supplyLayoutDefaults,\n crossTraceCalc: _dereq_('../box/cross_trace_calc').crossTraceCalc,\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('../box/plot').plot,\n layerName: 'boxlayer',\n style: _dereq_('../box/style').style,\n hoverPoints: _dereq_('../ohlc/hover').hoverPoints,\n selectPoints: _dereq_('../ohlc/select')\n};\n\n},{\"../../plots/cartesian\":578,\"../box/cross_trace_calc\":684,\"../box/layout_attributes\":689,\"../box/layout_defaults\":690,\"../box/plot\":691,\"../box/style\":693,\"../ohlc/hover\":884,\"../ohlc/select\":888,\"./attributes\":694,\"./calc\":695,\"./defaults\":696}],698:[function(_dereq_,module,exports){\n'use strict';\n\nvar handleAxisDefaults = _dereq_('./axis_defaults');\nvar Template = _dereq_('../../plot_api/plot_template');\n\nmodule.exports = function handleABDefaults(traceIn, traceOut, fullLayout, coerce, dfltColor) {\n var a = coerce('a');\n\n if(!a) {\n coerce('da');\n coerce('a0');\n }\n\n var b = coerce('b');\n\n if(!b) {\n coerce('db');\n coerce('b0');\n }\n\n mimickAxisDefaults(traceIn, traceOut, fullLayout, dfltColor);\n};\n\nfunction mimickAxisDefaults(traceIn, traceOut, fullLayout, dfltColor) {\n var axesList = ['aaxis', 'baxis'];\n\n axesList.forEach(function(axName) {\n var axLetter = axName.charAt(0);\n var axIn = traceIn[axName] || {};\n var axOut = Template.newContainer(traceOut, axName);\n\n var defaultOptions = {\n noTicklabelstep: true,\n tickfont: 'x',\n id: axLetter + 'axis',\n letter: axLetter,\n font: traceOut.font,\n name: axName,\n data: traceIn[axLetter],\n calendar: traceOut.calendar,\n dfltColor: dfltColor,\n bgColor: fullLayout.paper_bgcolor,\n autotypenumbersDflt: fullLayout.autotypenumbers,\n fullLayout: fullLayout\n };\n\n handleAxisDefaults(axIn, axOut, defaultOptions);\n axOut._categories = axOut._categories || [];\n\n // so we don't have to repeat autotype unnecessarily,\n // copy an autotype back to traceIn\n if(!traceIn[axName] && axIn.type !== '-') {\n traceIn[axName] = {type: axIn.type};\n }\n });\n}\n\n},{\"../../plot_api/plot_template\":555,\"./axis_defaults\":703}],699:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function(a) {\n return minMax(a, 0);\n};\n\nfunction minMax(a, depth) {\n // Limit to ten dimensional datasets. This seems *exceedingly* unlikely to\n // ever cause problems or even be a concern. It's include strictly so that\n // circular arrays could never cause this to loop.\n if(!isArrayOrTypedArray(a) || depth >= 10) {\n return null;\n }\n\n var min = Infinity;\n var max = -Infinity;\n var n = a.length;\n for(var i = 0; i < n; i++) {\n var datum = a[i];\n\n if(isArrayOrTypedArray(datum)) {\n var result = minMax(datum, depth + 1);\n\n if(result) {\n min = Math.min(result[0], min);\n max = Math.max(result[1], max);\n }\n } else {\n min = Math.min(datum, min);\n max = Math.max(datum, max);\n }\n }\n\n return [min, max];\n}\n\n},{\"../../lib\":515}],700:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar axisAttrs = _dereq_('./axis_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\n\nvar carpetFont = fontAttrs({\n editType: 'calc',\n});\n// TODO: inherit from global font\ncarpetFont.family.dflt = '\"Open Sans\", verdana, arial, sans-serif';\ncarpetFont.size.dflt = 12;\ncarpetFont.color.dflt = colorAttrs.defaultLine;\n\nmodule.exports = {\n carpet: {\n valType: 'string',\n editType: 'calc',\n },\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n a: {\n valType: 'data_array',\n editType: 'calc',\n },\n a0: {\n valType: 'number',\n dflt: 0,\n editType: 'calc',\n },\n da: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n b: {\n valType: 'data_array',\n editType: 'calc',\n },\n b0: {\n valType: 'number',\n dflt: 0,\n editType: 'calc',\n },\n db: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n cheaterslope: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n aaxis: axisAttrs,\n baxis: axisAttrs,\n font: carpetFont,\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n transforms: undefined\n};\n\n},{\"../../components/color/attributes\":366,\"../../plots/font_attributes\":594,\"./axis_attributes\":702}],701:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\n/* This function retrns a set of control points that define a curve aligned along\n * either the a or b axis. Exactly one of a or b must be an array defining the range\n * spanned.\n *\n * Honestly this is the most complicated function I've implemente here so far because\n * of the way it handles knot insertion and direction/axis-agnostic slices.\n */\nmodule.exports = function(carpet, carpetcd, a, b) {\n var idx, tangent, tanIsoIdx, tanIsoPar, segment, refidx;\n var p0, p1, v0, v1, start, end, range;\n\n var axis = isArrayOrTypedArray(a) ? 'a' : 'b';\n var ax = axis === 'a' ? carpet.aaxis : carpet.baxis;\n var smoothing = ax.smoothing;\n var toIdx = axis === 'a' ? carpet.a2i : carpet.b2j;\n var pt = axis === 'a' ? a : b;\n var iso = axis === 'a' ? b : a;\n var n = axis === 'a' ? carpetcd.a.length : carpetcd.b.length;\n var m = axis === 'a' ? carpetcd.b.length : carpetcd.a.length;\n var isoIdx = Math.floor(axis === 'a' ? carpet.b2j(iso) : carpet.a2i(iso));\n\n var xy = axis === 'a' ? function(value) {\n return carpet.evalxy([], value, isoIdx);\n } : function(value) {\n return carpet.evalxy([], isoIdx, value);\n };\n\n if(smoothing) {\n tanIsoIdx = Math.max(0, Math.min(m - 2, isoIdx));\n tanIsoPar = isoIdx - tanIsoIdx;\n tangent = axis === 'a' ? function(i, ti) {\n return carpet.dxydi([], i, tanIsoIdx, ti, tanIsoPar);\n } : function(j, tj) {\n return carpet.dxydj([], tanIsoIdx, j, tanIsoPar, tj);\n };\n }\n\n var vstart = toIdx(pt[0]);\n var vend = toIdx(pt[1]);\n\n // So that we can make this work in two directions, flip all of the\n // math functions if the direction is from higher to lower indices:\n //\n // Note that the tolerance is directional!\n var dir = vstart < vend ? 1 : -1;\n var tol = (vend - vstart) * 1e-8;\n var dirfloor = dir > 0 ? Math.floor : Math.ceil;\n var dirceil = dir > 0 ? Math.ceil : Math.floor;\n var dirmin = dir > 0 ? Math.min : Math.max;\n var dirmax = dir > 0 ? Math.max : Math.min;\n\n var idx0 = dirfloor(vstart + tol);\n var idx1 = dirceil(vend - tol);\n\n p0 = xy(vstart);\n var segments = [[p0]];\n\n for(idx = idx0; idx * dir < idx1 * dir; idx += dir) {\n segment = [];\n start = dirmax(vstart, idx);\n end = dirmin(vend, idx + dir);\n range = end - start;\n\n // In order to figure out which cell we're in for the derivative (remember,\n // the derivatives are *not* constant across grid lines), let's just average\n // the start and end points. This cuts out just a tiny bit of logic and\n // there's really no computational difference:\n refidx = Math.max(0, Math.min(n - 2, Math.floor(0.5 * (start + end))));\n\n p1 = xy(end);\n if(smoothing) {\n v0 = tangent(refidx, start - refidx);\n v1 = tangent(refidx, end - refidx);\n\n segment.push([\n p0[0] + v0[0] / 3 * range,\n p0[1] + v0[1] / 3 * range\n ]);\n\n segment.push([\n p1[0] - v1[0] / 3 * range,\n p1[1] - v1[1] / 3 * range\n ]);\n }\n\n segment.push(p1);\n\n segments.push(segment);\n p0 = p1;\n }\n\n return segments;\n};\n\n},{\"../../lib\":515}],702:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar descriptionWithDates = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionWithDates;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\n\nmodule.exports = {\n color: {\n valType: 'color',\n editType: 'calc',\n },\n smoothing: {\n valType: 'number',\n dflt: 1,\n min: 0,\n max: 1.3,\n editType: 'calc'\n },\n title: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n font: fontAttrs({\n editType: 'calc',\n }),\n // TODO how is this different than `title.standoff`\n offset: {\n valType: 'number',\n dflt: 10,\n editType: 'calc',\n },\n editType: 'calc',\n },\n type: {\n valType: 'enumerated',\n // '-' means we haven't yet run autotype or couldn't find any data\n // it gets turned into linear in gd._fullLayout but not copied back\n // to gd.data like the others are.\n values: ['-', 'linear', 'date', 'category'],\n dflt: '-',\n editType: 'calc',\n },\n autotypenumbers: axesAttrs.autotypenumbers,\n autorange: {\n valType: 'enumerated',\n values: [true, false, 'reversed'],\n dflt: true,\n editType: 'calc',\n },\n rangemode: {\n valType: 'enumerated',\n values: ['normal', 'tozero', 'nonnegative'],\n dflt: 'normal',\n editType: 'calc',\n },\n range: {\n valType: 'info_array',\n editType: 'calc',\n items: [\n {valType: 'any', editType: 'calc'},\n {valType: 'any', editType: 'calc'}\n ],\n },\n\n fixedrange: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n cheatertype: {\n valType: 'enumerated',\n values: ['index', 'value'],\n dflt: 'value',\n editType: 'calc'\n },\n tickmode: {\n valType: 'enumerated',\n values: ['linear', 'array'],\n dflt: 'array',\n editType: 'calc'\n },\n nticks: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n tickvals: {\n valType: 'data_array',\n editType: 'calc',\n },\n ticktext: {\n valType: 'data_array',\n editType: 'calc',\n },\n showticklabels: {\n valType: 'enumerated',\n values: ['start', 'end', 'both', 'none'],\n dflt: 'start',\n editType: 'calc',\n },\n tickfont: fontAttrs({\n editType: 'calc',\n }),\n tickangle: {\n valType: 'angle',\n dflt: 'auto',\n editType: 'calc',\n },\n tickprefix: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n showtickprefix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'calc',\n },\n ticksuffix: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n showticksuffix: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'calc',\n },\n showexponent: {\n valType: 'enumerated',\n values: ['all', 'first', 'last', 'none'],\n dflt: 'all',\n editType: 'calc',\n },\n exponentformat: {\n valType: 'enumerated',\n values: ['none', 'e', 'E', 'power', 'SI', 'B'],\n dflt: 'B',\n editType: 'calc',\n },\n minexponent: {\n valType: 'number',\n dflt: 3,\n min: 0,\n editType: 'calc',\n },\n separatethousands: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n tickformat: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n description: descriptionWithDates('tick label')\n },\n tickformatstops: overrideAll(axesAttrs.tickformatstops, 'calc', 'from-root'),\n categoryorder: {\n valType: 'enumerated',\n values: [\n 'trace', 'category ascending', 'category descending', 'array'\n /* , 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later\n ],\n dflt: 'trace',\n editType: 'calc',\n },\n categoryarray: {\n valType: 'data_array',\n editType: 'calc',\n },\n labelpadding: {\n valType: 'integer',\n dflt: 10,\n editType: 'calc',\n },\n labelprefix: {\n valType: 'string',\n editType: 'calc',\n },\n labelsuffix: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n // lines and grids\n showline: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n linecolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'calc',\n },\n linewidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n gridcolor: {\n valType: 'color',\n editType: 'calc',\n },\n gridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n griddash: extendFlat({}, dash, {editType: 'calc'}),\n showgrid: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n minorgridcount: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n minorgridwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n minorgriddash: extendFlat({}, dash, {editType: 'calc'}),\n minorgridcolor: {\n valType: 'color',\n dflt: colorAttrs.lightLine,\n editType: 'calc',\n },\n startline: {\n valType: 'boolean',\n editType: 'calc',\n },\n startlinecolor: {\n valType: 'color',\n editType: 'calc',\n },\n startlinewidth: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n endline: {\n valType: 'boolean',\n editType: 'calc',\n },\n endlinewidth: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n endlinecolor: {\n valType: 'color',\n editType: 'calc',\n },\n tick0: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n dtick: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'calc',\n },\n arraytick0: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n arraydtick: {\n valType: 'integer',\n min: 1,\n dflt: 1,\n editType: 'calc',\n },\n\n _deprecated: {\n title: {\n valType: 'string',\n editType: 'calc',\n },\n titlefont: fontAttrs({\n editType: 'calc',\n }),\n titleoffset: {\n valType: 'number',\n dflt: 10,\n editType: 'calc',\n }\n },\n\n editType: 'calc'\n};\n\n},{\"../../components/color/attributes\":366,\"../../components/drawing/attributes\":388,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/cartesian/layout_attributes\":579,\"../../plots/font_attributes\":594}],703:[function(_dereq_,module,exports){\n'use strict';\n\nvar carpetAttrs = _dereq_('./attributes');\n\nvar addOpacity = _dereq_('../../components/color').addOpacity;\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar handleTickValueDefaults = _dereq_('../../plots/cartesian/tick_value_defaults');\nvar handleTickLabelDefaults = _dereq_('../../plots/cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../../plots/cartesian/prefix_suffix_defaults');\nvar handleCategoryOrderDefaults = _dereq_('../../plots/cartesian/category_order_defaults');\nvar setConvert = _dereq_('../../plots/cartesian/set_convert');\nvar autoType = _dereq_('../../plots/cartesian/axis_autotype');\n\n/**\n * options: object containing:\n *\n * letter: 'a' or 'b'\n * title: name of the axis (ie 'Colorbar') to go in default title\n * name: axis object name (ie 'xaxis') if one should be stored\n * font: the default font to inherit\n * outerTicks: boolean, should ticks default to outside?\n * showGrid: boolean, should gridlines be shown by default?\n * data: the plot data to use in choosing auto type\n * bgColor: the plot background color, to calculate default gridline colors\n */\nmodule.exports = function handleAxisDefaults(containerIn, containerOut, options) {\n var letter = options.letter;\n var font = options.font || {};\n var attributes = carpetAttrs[letter + 'axis'];\n\n function coerce(attr, dflt) {\n return Lib.coerce(containerIn, containerOut, attributes, attr, dflt);\n }\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(containerIn, containerOut, attributes, attr, dflt);\n }\n\n // set up some private properties\n if(options.name) {\n containerOut._name = options.name;\n containerOut._id = options.name;\n }\n\n // now figure out type and do some more initialization\n coerce('autotypenumbers', options.autotypenumbersDflt);\n var axType = coerce('type');\n if(axType === '-') {\n if(options.data) setAutoType(containerOut, options.data);\n\n if(containerOut.type === '-') {\n containerOut.type = 'linear';\n } else {\n // copy autoType back to input axis\n // note that if this object didn't exist\n // in the input layout, we have to put it in\n // this happens in the main supplyDefaults function\n axType = containerIn.type = containerOut.type;\n }\n }\n\n coerce('smoothing');\n coerce('cheatertype');\n\n coerce('showticklabels');\n coerce('labelprefix', letter + ' = ');\n coerce('labelsuffix');\n coerce('showtickprefix');\n coerce('showticksuffix');\n\n coerce('separatethousands');\n coerce('tickformat');\n coerce('exponentformat');\n coerce('minexponent');\n coerce('showexponent');\n coerce('categoryorder');\n\n coerce('tickmode');\n coerce('tickvals');\n coerce('ticktext');\n coerce('tick0');\n coerce('dtick');\n\n if(containerOut.tickmode === 'array') {\n coerce('arraytick0');\n coerce('arraydtick');\n }\n\n coerce('labelpadding');\n\n containerOut._hovertitle = letter;\n\n\n if(axType === 'date') {\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleDefaults');\n handleCalendarDefaults(containerIn, containerOut, 'calendar', options.calendar);\n }\n\n // we need some of the other functions setConvert attaches, but for\n // path finding, override pixel scaling to simple passthrough (identity)\n setConvert(containerOut, options.fullLayout);\n containerOut.c2p = Lib.identity;\n\n var dfltColor = coerce('color', options.dfltColor);\n // if axis.color was provided, use it for fonts too; otherwise,\n // inherit from global font color in case that was provided.\n var dfltFontColor = (dfltColor === containerIn.color) ? dfltColor : font.color;\n\n var title = coerce('title.text');\n if(title) {\n Lib.coerceFont(coerce, 'title.font', {\n family: font.family,\n size: Lib.bigFont(font.size),\n color: dfltFontColor\n });\n coerce('title.offset');\n }\n\n coerce('tickangle');\n\n var autoRange = coerce('autorange', !containerOut.isValidRange(containerIn.range));\n\n if(autoRange) coerce('rangemode');\n\n coerce('range');\n containerOut.cleanRange();\n\n coerce('fixedrange');\n\n handleTickValueDefaults(containerIn, containerOut, coerce, axType);\n handlePrefixSuffixDefaults(containerIn, containerOut, coerce, axType, options);\n handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options);\n handleCategoryOrderDefaults(containerIn, containerOut, coerce, {\n data: options.data,\n dataAttr: letter\n });\n\n var gridColor = coerce2('gridcolor', addOpacity(dfltColor, 0.3));\n var gridWidth = coerce2('gridwidth');\n var gridDash = coerce2('griddash');\n var showGrid = coerce('showgrid');\n\n if(!showGrid) {\n delete containerOut.gridcolor;\n delete containerOut.gridwidth;\n delete containerOut.griddash;\n }\n\n var startLineColor = coerce2('startlinecolor', dfltColor);\n var startLineWidth = coerce2('startlinewidth', gridWidth);\n var showStartLine = coerce('startline', containerOut.showgrid || !!startLineColor || !!startLineWidth);\n\n if(!showStartLine) {\n delete containerOut.startlinecolor;\n delete containerOut.startlinewidth;\n }\n\n var endLineColor = coerce2('endlinecolor', dfltColor);\n var endLineWidth = coerce2('endlinewidth', gridWidth);\n var showEndLine = coerce('endline', containerOut.showgrid || !!endLineColor || !!endLineWidth);\n\n if(!showEndLine) {\n delete containerOut.endlinecolor;\n delete containerOut.endlinewidth;\n }\n\n if(!showGrid) {\n delete containerOut.gridcolor;\n delete containerOut.gridwidth;\n delete containerOut.griddash;\n } else {\n coerce('minorgridcount');\n coerce('minorgridwidth', gridWidth);\n coerce('minorgriddash', gridDash);\n coerce('minorgridcolor', addOpacity(gridColor, 0.06));\n\n if(!containerOut.minorgridcount) {\n delete containerOut.minorgridwidth;\n delete containerOut.minorgriddash;\n delete containerOut.minorgridcolor;\n }\n }\n\n if(containerOut.showticklabels === 'none') {\n delete containerOut.tickfont;\n delete containerOut.tickangle;\n delete containerOut.showexponent;\n delete containerOut.exponentformat;\n delete containerOut.minexponent;\n delete containerOut.tickformat;\n delete containerOut.showticksuffix;\n delete containerOut.showtickprefix;\n }\n\n if(!containerOut.showticksuffix) {\n delete containerOut.ticksuffix;\n }\n\n if(!containerOut.showtickprefix) {\n delete containerOut.tickprefix;\n }\n\n // It needs to be coerced, then something above overrides this deep in the axis code,\n // but no, we *actually* want to coerce this.\n coerce('tickmode');\n\n return containerOut;\n};\n\nfunction setAutoType(ax, data) {\n // new logic: let people specify any type they want,\n // only autotype if type is '-'\n if(ax.type !== '-') return;\n\n var id = ax._id;\n var axLetter = id.charAt(0);\n\n var calAttr = axLetter + 'calendar';\n var calendar = ax[calAttr];\n\n ax.type = autoType(data, calendar, {\n autotypenumbers: ax.autotypenumbers\n });\n}\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plots/cartesian/axis_autotype\":567,\"../../plots/cartesian/category_order_defaults\":571,\"../../plots/cartesian/prefix_suffix_defaults\":583,\"../../plots/cartesian/set_convert\":585,\"../../plots/cartesian/tick_label_defaults\":587,\"../../plots/cartesian/tick_value_defaults\":589,\"../../registry\":647,\"./attributes\":700}],704:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar isArray1D = _dereq_('../../lib').isArray1D;\nvar cheaterBasis = _dereq_('./cheater_basis');\nvar arrayMinmax = _dereq_('./array_minmax');\nvar calcGridlines = _dereq_('./calc_gridlines');\nvar calcLabels = _dereq_('./calc_labels');\nvar calcClipPath = _dereq_('./calc_clippath');\nvar clean2dArray = _dereq_('../heatmap/clean_2d_array');\nvar smoothFill2dArray = _dereq_('./smooth_fill_2d_array');\nvar convertColumnData = _dereq_('../heatmap/convert_column_xyz');\nvar setConvert = _dereq_('./set_convert');\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n var aax = trace.aaxis;\n var bax = trace.baxis;\n\n var x = trace.x;\n var y = trace.y;\n var cols = [];\n if(x && isArray1D(x)) cols.push('x');\n if(y && isArray1D(y)) cols.push('y');\n\n if(cols.length) {\n convertColumnData(trace, aax, bax, 'a', 'b', cols);\n }\n\n var a = trace._a = trace._a || trace.a;\n var b = trace._b = trace._b || trace.b;\n x = trace._x || trace.x;\n y = trace._y || trace.y;\n\n var t = {};\n\n if(trace._cheater) {\n var avals = aax.cheatertype === 'index' ? a.length : a;\n var bvals = bax.cheatertype === 'index' ? b.length : b;\n x = cheaterBasis(avals, bvals, trace.cheaterslope);\n }\n\n trace._x = x = clean2dArray(x);\n trace._y = y = clean2dArray(y);\n\n // Fill in any undefined values with elliptic smoothing. This doesn't take\n // into account the spacing of the values. That is, the derivatives should\n // be modified to use a and b values. It's not that hard, but this is already\n // moderate overkill for just filling in missing values.\n smoothFill2dArray(x, a, b);\n smoothFill2dArray(y, a, b);\n\n setConvert(trace);\n\n // create conversion functions that depend on the data\n trace.setScale();\n\n // This is a rather expensive scan. Nothing guarantees monotonicity,\n // so we need to scan through all data to get proper ranges:\n var xrange = arrayMinmax(x);\n var yrange = arrayMinmax(y);\n\n var dx = 0.5 * (xrange[1] - xrange[0]);\n var xc = 0.5 * (xrange[1] + xrange[0]);\n\n var dy = 0.5 * (yrange[1] - yrange[0]);\n var yc = 0.5 * (yrange[1] + yrange[0]);\n\n // Expand the axes to fit the plot, except just grow it by a factor of 1.3\n // because the labels should be taken into account except that's difficult\n // hence 1.3.\n var grow = 1.3;\n xrange = [xc - dx * grow, xc + dx * grow];\n yrange = [yc - dy * grow, yc + dy * grow];\n\n trace._extremes[xa._id] = Axes.findExtremes(xa, xrange, {padded: true});\n trace._extremes[ya._id] = Axes.findExtremes(ya, yrange, {padded: true});\n\n // Enumerate the gridlines, both major and minor, and store them on the trace\n // object:\n calcGridlines(trace, 'a', 'b');\n calcGridlines(trace, 'b', 'a');\n\n // Calculate the text labels for each major gridline and store them on the\n // trace object:\n calcLabels(trace, aax);\n calcLabels(trace, bax);\n\n // Tabulate points for the four segments that bound the axes so that we can\n // map to pixel coordinates in the plot function and create a clip rect:\n t.clipsegments = calcClipPath(trace._xctrl, trace._yctrl, aax, bax);\n\n t.x = x;\n t.y = y;\n t.a = a;\n t.b = b;\n\n return [t];\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../heatmap/clean_2d_array\":803,\"../heatmap/convert_column_xyz\":805,\"./array_minmax\":699,\"./calc_clippath\":705,\"./calc_gridlines\":706,\"./calc_labels\":707,\"./cheater_basis\":709,\"./set_convert\":722,\"./smooth_fill_2d_array\":723}],705:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function makeClipPath(xctrl, yctrl, aax, bax) {\n var i, x, y;\n var segments = [];\n\n var asmoothing = !!aax.smoothing;\n var bsmoothing = !!bax.smoothing;\n var nea1 = xctrl[0].length - 1;\n var neb1 = xctrl.length - 1;\n\n // Along the lower a axis:\n for(i = 0, x = [], y = []; i <= nea1; i++) {\n x[i] = xctrl[0][i];\n y[i] = yctrl[0][i];\n }\n segments.push({x: x, y: y, bicubic: asmoothing});\n\n // Along the upper b axis:\n for(i = 0, x = [], y = []; i <= neb1; i++) {\n x[i] = xctrl[i][nea1];\n y[i] = yctrl[i][nea1];\n }\n segments.push({x: x, y: y, bicubic: bsmoothing});\n\n // Backwards along the upper a axis:\n for(i = nea1, x = [], y = []; i >= 0; i--) {\n x[nea1 - i] = xctrl[neb1][i];\n y[nea1 - i] = yctrl[neb1][i];\n }\n segments.push({x: x, y: y, bicubic: asmoothing});\n\n // Backwards along the lower b axis:\n for(i = neb1, x = [], y = []; i >= 0; i--) {\n x[neb1 - i] = xctrl[i][0];\n y[neb1 - i] = yctrl[i][0];\n }\n segments.push({x: x, y: y, bicubic: bsmoothing});\n\n return segments;\n};\n\n},{}],706:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = function calcGridlines(trace, axisLetter, crossAxisLetter) {\n var i, j, j0;\n var eps, bounds, n1, n2, n, value, v;\n var j1, v0, v1, d;\n\n var data = trace['_' + axisLetter];\n var axis = trace[axisLetter + 'axis'];\n\n var gridlines = axis._gridlines = [];\n var minorgridlines = axis._minorgridlines = [];\n var boundarylines = axis._boundarylines = [];\n\n var crossData = trace['_' + crossAxisLetter];\n var crossAxis = trace[crossAxisLetter + 'axis'];\n\n if(axis.tickmode === 'array') {\n axis.tickvals = data.slice();\n }\n\n var xcp = trace._xctrl;\n var ycp = trace._yctrl;\n var nea = xcp[0].length;\n var neb = xcp.length;\n var na = trace._a.length;\n var nb = trace._b.length;\n\n Axes.prepTicks(axis);\n\n // don't leave tickvals in axis looking like an attribute\n if(axis.tickmode === 'array') delete axis.tickvals;\n\n // The default is an empty array that will cause the join to remove the gridline if\n // it's just disappeared:\n // axis._startline = axis._endline = [];\n\n // If the cross axis uses bicubic interpolation, then the grid\n // lines fall once every three expanded grid row/cols:\n var stride = axis.smoothing ? 3 : 1;\n\n function constructValueGridline(value) {\n var i, j, j0, tj, pxy, i0, ti, xy, dxydi0, dxydi1, dxydj0, dxydj1;\n var xpoints = [];\n var ypoints = [];\n var ret = {};\n // Search for the fractional grid index giving this line:\n if(axisLetter === 'b') {\n // For the position we use just the i-j coordinates:\n j = trace.b2j(value);\n\n // The derivatives for catmull-rom splines are discontinuous across cell\n // boundaries though, so we need to provide both the cell and the position\n // within the cell separately:\n j0 = Math.floor(Math.max(0, Math.min(nb - 2, j)));\n tj = j - j0;\n\n ret.length = nb;\n ret.crossLength = na;\n\n ret.xy = function(i) {\n return trace.evalxy([], i, j);\n };\n\n ret.dxy = function(i0, ti) {\n return trace.dxydi([], i0, j0, ti, tj);\n };\n\n for(i = 0; i < na; i++) {\n i0 = Math.min(na - 2, i);\n ti = i - i0;\n xy = trace.evalxy([], i, j);\n\n if(crossAxis.smoothing && i > 0) {\n // First control point:\n dxydi0 = trace.dxydi([], i - 1, j0, 0, tj);\n xpoints.push(pxy[0] + dxydi0[0] / 3);\n ypoints.push(pxy[1] + dxydi0[1] / 3);\n\n // Second control point:\n dxydi1 = trace.dxydi([], i - 1, j0, 1, tj);\n xpoints.push(xy[0] - dxydi1[0] / 3);\n ypoints.push(xy[1] - dxydi1[1] / 3);\n }\n\n xpoints.push(xy[0]);\n ypoints.push(xy[1]);\n\n pxy = xy;\n }\n } else {\n i = trace.a2i(value);\n i0 = Math.floor(Math.max(0, Math.min(na - 2, i)));\n ti = i - i0;\n\n ret.length = na;\n ret.crossLength = nb;\n\n ret.xy = function(j) {\n return trace.evalxy([], i, j);\n };\n\n ret.dxy = function(j0, tj) {\n return trace.dxydj([], i0, j0, ti, tj);\n };\n\n for(j = 0; j < nb; j++) {\n j0 = Math.min(nb - 2, j);\n tj = j - j0;\n xy = trace.evalxy([], i, j);\n\n if(crossAxis.smoothing && j > 0) {\n // First control point:\n dxydj0 = trace.dxydj([], i0, j - 1, ti, 0);\n xpoints.push(pxy[0] + dxydj0[0] / 3);\n ypoints.push(pxy[1] + dxydj0[1] / 3);\n\n // Second control point:\n dxydj1 = trace.dxydj([], i0, j - 1, ti, 1);\n xpoints.push(xy[0] - dxydj1[0] / 3);\n ypoints.push(xy[1] - dxydj1[1] / 3);\n }\n\n xpoints.push(xy[0]);\n ypoints.push(xy[1]);\n\n pxy = xy;\n }\n }\n\n ret.axisLetter = axisLetter;\n ret.axis = axis;\n ret.crossAxis = crossAxis;\n ret.value = value;\n ret.constvar = crossAxisLetter;\n ret.index = n;\n ret.x = xpoints;\n ret.y = ypoints;\n ret.smoothing = crossAxis.smoothing;\n\n return ret;\n }\n\n function constructArrayGridline(idx) {\n var j, i0, j0, ti, tj;\n var xpoints = [];\n var ypoints = [];\n var ret = {};\n ret.length = data.length;\n ret.crossLength = crossData.length;\n\n if(axisLetter === 'b') {\n j0 = Math.max(0, Math.min(nb - 2, idx));\n tj = Math.min(1, Math.max(0, idx - j0));\n\n ret.xy = function(i) {\n return trace.evalxy([], i, idx);\n };\n\n ret.dxy = function(i0, ti) {\n return trace.dxydi([], i0, j0, ti, tj);\n };\n\n // In the tickmode: array case, this operation is a simple\n // transfer of data:\n for(j = 0; j < nea; j++) {\n xpoints[j] = xcp[idx * stride][j];\n ypoints[j] = ycp[idx * stride][j];\n }\n } else {\n i0 = Math.max(0, Math.min(na - 2, idx));\n ti = Math.min(1, Math.max(0, idx - i0));\n\n ret.xy = function(j) {\n return trace.evalxy([], idx, j);\n };\n\n ret.dxy = function(j0, tj) {\n return trace.dxydj([], i0, j0, ti, tj);\n };\n\n // In the tickmode: array case, this operation is a simple\n // transfer of data:\n for(j = 0; j < neb; j++) {\n xpoints[j] = xcp[j][idx * stride];\n ypoints[j] = ycp[j][idx * stride];\n }\n }\n\n ret.axisLetter = axisLetter;\n ret.axis = axis;\n ret.crossAxis = crossAxis;\n ret.value = data[idx];\n ret.constvar = crossAxisLetter;\n ret.index = idx;\n ret.x = xpoints;\n ret.y = ypoints;\n ret.smoothing = crossAxis.smoothing;\n\n return ret;\n }\n\n if(axis.tickmode === 'array') {\n // var j0 = axis.startline ? 1 : 0;\n // var j1 = data.length - (axis.endline ? 1 : 0);\n\n eps = 5e-15;\n bounds = [\n Math.floor(((data.length - 1) - axis.arraytick0) / axis.arraydtick * (1 + eps)),\n Math.ceil((- axis.arraytick0) / axis.arraydtick / (1 + eps))\n ].sort(function(a, b) {return a - b;});\n\n // Unpack sorted values so we can be sure to avoid infinite loops if something\n // is backwards:\n n1 = bounds[0] - 1;\n n2 = bounds[1] + 1;\n\n // If the axes fall along array lines, then this is a much simpler process since\n // we already have all the control points we need\n for(n = n1; n < n2; n++) {\n j = axis.arraytick0 + axis.arraydtick * n;\n if(j < 0 || j > data.length - 1) continue;\n gridlines.push(extendFlat(constructArrayGridline(j), {\n color: axis.gridcolor,\n width: axis.gridwidth,\n dash: axis.griddash\n }));\n }\n\n for(n = n1; n < n2; n++) {\n j0 = axis.arraytick0 + axis.arraydtick * n;\n j1 = Math.min(j0 + axis.arraydtick, data.length - 1);\n\n // TODO: fix the bounds computation so we don't have to do a large range and then throw\n // out unneeded numbers\n if(j0 < 0 || j0 > data.length - 1) continue;\n if(j1 < 0 || j1 > data.length - 1) continue;\n\n v0 = data[j0];\n v1 = data[j1];\n\n for(i = 0; i < axis.minorgridcount; i++) {\n d = j1 - j0;\n\n // TODO: fix the bounds computation so we don't have to do a large range and then throw\n // out unneeded numbers\n if(d <= 0) continue;\n\n // XXX: This calculation isn't quite right. Off by one somewhere?\n v = v0 + (v1 - v0) * (i + 1) / (axis.minorgridcount + 1) * (axis.arraydtick / d);\n\n // TODO: fix the bounds computation so we don't have to do a large range and then throw\n // out unneeded numbers\n if(v < data[0] || v > data[data.length - 1]) continue;\n minorgridlines.push(extendFlat(constructValueGridline(v), {\n color: axis.minorgridcolor,\n width: axis.minorgridwidth,\n dash: axis.minorgriddash\n }));\n }\n }\n\n if(axis.startline) {\n boundarylines.push(extendFlat(constructArrayGridline(0), {\n color: axis.startlinecolor,\n width: axis.startlinewidth\n }));\n }\n\n if(axis.endline) {\n boundarylines.push(extendFlat(constructArrayGridline(data.length - 1), {\n color: axis.endlinecolor,\n width: axis.endlinewidth\n }));\n }\n } else {\n // If the lines do not fall along the axes, then we have to interpolate\n // the contro points and so some math to figure out where the lines are\n // in the first place.\n\n // Compute the integer boudns of tick0 + n * dtick that fall within the range\n // (roughly speaking):\n // Give this a nice generous epsilon. We use at as * (1 + eps) in order to make\n // inequalities a little tolerant in a more or less correct manner:\n eps = 5e-15;\n bounds = [\n Math.floor((data[data.length - 1] - axis.tick0) / axis.dtick * (1 + eps)),\n Math.ceil((data[0] - axis.tick0) / axis.dtick / (1 + eps))\n ].sort(function(a, b) {return a - b;});\n\n // Unpack sorted values so we can be sure to avoid infinite loops if something\n // is backwards:\n n1 = bounds[0];\n n2 = bounds[1];\n\n for(n = n1; n <= n2; n++) {\n value = axis.tick0 + axis.dtick * n;\n\n gridlines.push(extendFlat(constructValueGridline(value), {\n color: axis.gridcolor,\n width: axis.gridwidth,\n dash: axis.griddash\n }));\n }\n\n for(n = n1 - 1; n < n2 + 1; n++) {\n value = axis.tick0 + axis.dtick * n;\n\n for(i = 0; i < axis.minorgridcount; i++) {\n v = value + axis.dtick * (i + 1) / (axis.minorgridcount + 1);\n if(v < data[0] || v > data[data.length - 1]) continue;\n minorgridlines.push(extendFlat(constructValueGridline(v), {\n color: axis.minorgridcolor,\n width: axis.minorgridwidth,\n dash: axis.minorgriddash\n }));\n }\n }\n\n if(axis.startline) {\n boundarylines.push(extendFlat(constructValueGridline(data[0]), {\n color: axis.startlinecolor,\n width: axis.startlinewidth\n }));\n }\n\n if(axis.endline) {\n boundarylines.push(extendFlat(constructValueGridline(data[data.length - 1]), {\n color: axis.endlinecolor,\n width: axis.endlinewidth\n }));\n }\n }\n};\n\n},{\"../../lib/extend\":505,\"../../plots/cartesian/axes\":566}],707:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = function calcLabels(trace, axis) {\n var i, tobj, prefix, suffix, gridline;\n\n var labels = axis._labels = [];\n var gridlines = axis._gridlines;\n\n for(i = 0; i < gridlines.length; i++) {\n gridline = gridlines[i];\n\n if(['start', 'both'].indexOf(axis.showticklabels) !== -1) {\n tobj = Axes.tickText(axis, gridline.value);\n\n extendFlat(tobj, {\n prefix: prefix,\n suffix: suffix,\n endAnchor: true,\n xy: gridline.xy(0),\n dxy: gridline.dxy(0, 0),\n axis: gridline.axis,\n length: gridline.crossAxis.length,\n font: gridline.axis.tickfont,\n isFirst: i === 0,\n isLast: i === gridlines.length - 1\n });\n\n labels.push(tobj);\n }\n\n if(['end', 'both'].indexOf(axis.showticklabels) !== -1) {\n tobj = Axes.tickText(axis, gridline.value);\n\n extendFlat(tobj, {\n endAnchor: false,\n xy: gridline.xy(gridline.crossLength - 1),\n dxy: gridline.dxy(gridline.crossLength - 2, 1),\n axis: gridline.axis,\n length: gridline.crossAxis.length,\n font: gridline.axis.tickfont,\n isFirst: i === 0,\n isLast: i === gridlines.length - 1\n });\n\n labels.push(tobj);\n }\n }\n};\n\n},{\"../../lib/extend\":505,\"../../plots/cartesian/axes\":566}],708:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Compute the tangent vector according to catmull-rom cubic splines (centripetal,\n * I think). That differs from the control point in two ways:\n * 1. It is a vector, not a position relative to the point\n * 2. the vector is longer than the position relative to p1 by a factor of 3\n *\n * Close to the boundaries, we'll use these as *quadratic control points, so that\n * to make a nice grid, we'll need to divide the tangent by 2 instead of 3. (The\n * math works out this way if you work through the bezier derivatives)\n */\nvar CatmullRomExp = 0.5;\nmodule.exports = function makeControlPoints(p0, p1, p2, smoothness) {\n var d1x = p0[0] - p1[0];\n var d1y = p0[1] - p1[1];\n var d2x = p2[0] - p1[0];\n var d2y = p2[1] - p1[1];\n var d1a = Math.pow(d1x * d1x + d1y * d1y, CatmullRomExp / 2);\n var d2a = Math.pow(d2x * d2x + d2y * d2y, CatmullRomExp / 2);\n var numx = (d2a * d2a * d1x - d1a * d1a * d2x) * smoothness;\n var numy = (d2a * d2a * d1y - d1a * d1a * d2y) * smoothness;\n var denom1 = d2a * (d1a + d2a) * 3;\n var denom2 = d1a * (d1a + d2a) * 3;\n\n return [[\n p1[0] + (denom1 && numx / denom1),\n p1[1] + (denom1 && numy / denom1)\n ], [\n p1[0] - (denom2 && numx / denom2),\n p1[1] - (denom2 && numy / denom2)\n ]];\n};\n\n},{}],709:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\n/*\n * Construct a 2D array of cheater values given a, b, and a slope.\n * If\n */\nmodule.exports = function(a, b, cheaterslope) {\n var i, j, ascal, bscal, aval, bval;\n var data = [];\n\n var na = isArrayOrTypedArray(a) ? a.length : a;\n var nb = isArrayOrTypedArray(b) ? b.length : b;\n var adata = isArrayOrTypedArray(a) ? a : null;\n var bdata = isArrayOrTypedArray(b) ? b : null;\n\n // If we're using data, scale it so that for data that's just barely\n // not evenly spaced, the switch to value-based indexing is continuous.\n // This means evenly spaced data should look the same whether value\n // or index cheatertype.\n if(adata) {\n ascal = (adata.length - 1) / (adata[adata.length - 1] - adata[0]) / (na - 1);\n }\n\n if(bdata) {\n bscal = (bdata.length - 1) / (bdata[bdata.length - 1] - bdata[0]) / (nb - 1);\n }\n\n var xval;\n var xmin = Infinity;\n var xmax = -Infinity;\n for(j = 0; j < nb; j++) {\n data[j] = [];\n bval = bdata ? (bdata[j] - bdata[0]) * bscal : j / (nb - 1);\n for(i = 0; i < na; i++) {\n aval = adata ? (adata[i] - adata[0]) * ascal : i / (na - 1);\n xval = aval - bval * cheaterslope;\n xmin = Math.min(xval, xmin);\n xmax = Math.max(xval, xmax);\n data[j][i] = xval;\n }\n }\n\n // Normalize cheater values to the 0-1 range. This comes into play when you have\n // multiple cheater plots. After careful consideration, it seems better if cheater\n // values are normalized to a consistent range. Otherwise one cheater affects the\n // layout of other cheaters on the same axis.\n var slope = 1.0 / (xmax - xmin);\n var offset = -xmin * slope;\n for(j = 0; j < nb; j++) {\n for(i = 0; i < na; i++) {\n data[j][i] = slope * data[j][i] + offset;\n }\n }\n\n return data;\n};\n\n},{\"../../lib\":515}],710:[function(_dereq_,module,exports){\n'use strict';\n\nvar makeControlPoints = _dereq_('./catmull_rom');\nvar ensureArray = _dereq_('../../lib').ensureArray;\n\n/*\n * Turns a coarse grid into a fine grid with control points.\n *\n * Here's an ASCII representation:\n *\n * o ----- o ----- o ----- o\n * | | | |\n * | | | |\n * | | | |\n * o ----- o ----- o ----- o\n * | | | |\n * | | | |\n * ^ | | | |\n * | o ----- o ----- o ----- o\n * b | | | | |\n * | | | | |\n * | | | | |\n * o ----- o ----- o ----- o\n * ------>\n * a\n *\n * First of all, note that we want to do this in *cartesian* space. This means\n * we might run into problems when there are extreme differences in x/y scaling,\n * but the alternative is that the topology of the contours might actually be\n * view-dependent, which seems worse. As a fallback, the only parameter that\n * actually affects the result is the *aspect ratio*, so that we can at least\n * improve the situation a bit without going all the way to screen coordinates.\n *\n * This function flattens the points + tangents into a slightly denser grid of\n * *control points*. The resulting grid looks like this:\n *\n * 9 +--o-o--+ -o-o--+--o-o--+\n * 8 o o o o o o o o o o\n * | | | |\n * 7 o o o o o o o o o o\n * 6 +--o-o--+ -o-o--+--o-o--+\n * 5 o o o o o o o o o o\n * | | | |\n * ^ 4 o o o o o o o o o o\n * | 3 +--o-o--+ -o-o--+--o-o--+\n * b | 2 o o o o o o o o o o\n * | | | | |\n * | 1 o o o o o o o o o o\n * 0 +--o-o--+ -o-o--+--o-o--+\n * 0 1 2 3 4 5 6 7 8 9\n * ------>\n * a\n *\n * where `o`s represent newly-computed control points. the resulting dimension is\n *\n * (m - 1) * 3 + 1\n * = 3 * m - 2\n *\n * We could simply store the tangents separately, but that's a nightmare to organize\n * in two dimensions since we'll be slicing grid lines in both directions and since\n * that basically requires very nearly just as much storage as just storing the dense\n * grid.\n *\n * Wow!\n */\n\n\n/*\n * Catmull-rom is biased at the boundaries toward the interior and we actually\n * can't use catmull-rom to compute the control point closest to (but inside)\n * the boundary.\n *\n * A note on plotly's spline interpolation. It uses the catmull rom control point\n * closest to the boundary *as* a quadratic control point. This seems incorrect,\n * so I've elected not to follow that. Given control points 0 and 1, regular plotly\n * splines give *equivalent* cubic control points:\n *\n * Input:\n *\n * boundary\n * | |\n * p0 p2 p3 --> interior\n * 0.0 0.667 1.0\n * | |\n *\n * Cubic-equivalent of what plotly splines draw::\n *\n * boundary\n * | |\n * p0 p1 p2 p3 --> interior\n * 0.0 0.4444 0.8888 1.0\n * | |\n *\n * What this function fills in:\n *\n * boundary\n * | |\n * p0 p1 p2 p3 --> interior\n * 0.0 0.333 0.667 1.0\n * | |\n *\n * Parameters:\n * p0: boundary point\n * p2: catmull rom point based on computation at p3\n * p3: first grid point\n *\n * Of course it works whichever way it's oriented; you just need to interpret the\n * input/output accordingly.\n */\nfunction inferCubicControlPoint(p0, p2, p3) {\n // Extend p1 away from p0 by 50%. This is the equivalent quadratic point that\n // would give the same slope as catmull rom at p0.\n var p2e0 = -0.5 * p3[0] + 1.5 * p2[0];\n var p2e1 = -0.5 * p3[1] + 1.5 * p2[1];\n\n return [\n (2 * p2e0 + p0[0]) / 3,\n (2 * p2e1 + p0[1]) / 3,\n ];\n}\n\nmodule.exports = function computeControlPoints(xe, ye, x, y, asmoothing, bsmoothing) {\n var i, j, ie, je, xej, yej, xj, yj, cp, p1;\n // At this point, we know these dimensions are correct and representative of\n // the whole 2D arrays:\n var na = x[0].length;\n var nb = x.length;\n\n // (n)umber of (e)xpanded points:\n var nea = asmoothing ? 3 * na - 2 : na;\n var neb = bsmoothing ? 3 * nb - 2 : nb;\n\n xe = ensureArray(xe, neb);\n ye = ensureArray(ye, neb);\n\n for(ie = 0; ie < neb; ie++) {\n xe[ie] = ensureArray(xe[ie], nea);\n ye[ie] = ensureArray(ye[ie], nea);\n }\n\n // This loop fills in the X'd points:\n //\n // . . . .\n // . . . .\n // | | | |\n // | | | |\n // X ----- X ----- X ----- X\n // | | | |\n // | | | |\n // | | | |\n // X ----- X ----- X ----- X\n //\n //\n // ie = (i) (e)xpanded:\n for(j = 0, je = 0; j < nb; j++, je += bsmoothing ? 3 : 1) {\n xej = xe[je];\n yej = ye[je];\n xj = x[j];\n yj = y[j];\n\n // je = (j) (e)xpanded:\n for(i = 0, ie = 0; i < na; i++, ie += asmoothing ? 3 : 1) {\n xej[ie] = xj[i];\n yej[ie] = yj[i];\n }\n }\n\n if(asmoothing) {\n // If there's a-smoothing, this loop fills in the X'd points with catmull-rom\n // control points computed along the a-axis:\n // . . . .\n // . . . .\n // | | | |\n // | | | |\n // o -Y-X- o -X-X- o -X-Y- o\n // | | | |\n // | | | |\n // | | | |\n // o -Y-X- o -X-X- o -X-Y- o\n //\n // i: 0 1 2 3\n // ie: 0 1 3 3 4 5 6 7 8 9\n //\n // ------>\n // a\n //\n for(j = 0, je = 0; j < nb; j++, je += bsmoothing ? 3 : 1) {\n // Fill in the points marked X for this a-row:\n for(i = 1, ie = 3; i < na - 1; i++, ie += 3) {\n cp = makeControlPoints(\n [x[j][i - 1], y[j][i - 1]],\n [x[j][i ], y[j][i]],\n [x[j][i + 1], y[j][i + 1]],\n asmoothing\n );\n\n xe[je][ie - 1] = cp[0][0];\n ye[je][ie - 1] = cp[0][1];\n xe[je][ie + 1] = cp[1][0];\n ye[je][ie + 1] = cp[1][1];\n }\n\n // The very first cubic interpolation point (to the left for i = 1 above) is\n // used as a *quadratic* interpolation point by the spline drawing function\n // which isn't really correct. But for the sake of consistency, we'll use it\n // as such. Since we're using cubic splines, that means we need to shorten the\n // tangent by 1/3 and also construct a new cubic spline control point 1/3 from\n // the original to the i = 0 point.\n p1 = inferCubicControlPoint(\n [xe[je][0], ye[je][0]],\n [xe[je][2], ye[je][2]],\n [xe[je][3], ye[je][3]]\n );\n xe[je][1] = p1[0];\n ye[je][1] = p1[1];\n\n // Ditto last points, sans explanation:\n p1 = inferCubicControlPoint(\n [xe[je][nea - 1], ye[je][nea - 1]],\n [xe[je][nea - 3], ye[je][nea - 3]],\n [xe[je][nea - 4], ye[je][nea - 4]]\n );\n xe[je][nea - 2] = p1[0];\n ye[je][nea - 2] = p1[1];\n }\n }\n\n if(bsmoothing) {\n // If there's a-smoothing, this loop fills in the X'd points with catmull-rom\n // control points computed along the b-axis:\n // . . . .\n // X X X X X X X X X X\n // | | | |\n // X X X X X X X X X X\n // o -o-o- o -o-o- o -o-o- o\n // X X X X X X X X X X\n // | | | |\n // Y Y Y Y Y Y Y Y Y Y\n // o -o-o- o -o-o- o -o-o- o\n //\n // i: 0 1 2 3\n // ie: 0 1 3 3 4 5 6 7 8 9\n //\n // ------>\n // a\n //\n for(ie = 0; ie < nea; ie++) {\n for(je = 3; je < neb - 3; je += 3) {\n cp = makeControlPoints(\n [xe[je - 3][ie], ye[je - 3][ie]],\n [xe[je][ie], ye[je][ie]],\n [xe[je + 3][ie], ye[je + 3][ie]],\n bsmoothing\n );\n\n xe[je - 1][ie] = cp[0][0];\n ye[je - 1][ie] = cp[0][1];\n xe[je + 1][ie] = cp[1][0];\n ye[je + 1][ie] = cp[1][1];\n }\n // Do the same boundary condition magic for these control points marked Y above:\n p1 = inferCubicControlPoint(\n [xe[0][ie], ye[0][ie]],\n [xe[2][ie], ye[2][ie]],\n [xe[3][ie], ye[3][ie]]\n );\n xe[1][ie] = p1[0];\n ye[1][ie] = p1[1];\n\n p1 = inferCubicControlPoint(\n [xe[neb - 1][ie], ye[neb - 1][ie]],\n [xe[neb - 3][ie], ye[neb - 3][ie]],\n [xe[neb - 4][ie], ye[neb - 4][ie]]\n );\n xe[neb - 2][ie] = p1[0];\n ye[neb - 2][ie] = p1[1];\n }\n }\n\n if(asmoothing && bsmoothing) {\n // Do one more pass, this time recomputing exactly what we just computed.\n // It's overdetermined since we're peforming catmull-rom in two directions,\n // so we'll just average the overdetermined. These points don't lie along the\n // grid lines, so note that only grid lines will follow normal plotly spline\n // interpolation.\n //\n // Unless of course there was no b smoothing. Then these intermediate points\n // don't actually exist and this section is bypassed.\n // . . . .\n // o X X o X X o X X o\n // | | | |\n // o X X o X X o X X o\n // o -o-o- o -o-o- o -o-o- o\n // o X X o X X o X X o\n // | | | |\n // o Y Y o Y Y o Y Y o\n // o -o-o- o -o-o- o -o-o- o\n //\n // i: 0 1 2 3\n // ie: 0 1 3 3 4 5 6 7 8 9\n //\n // ------>\n // a\n //\n for(je = 1; je < neb; je += (je + 1) % 3 === 0 ? 2 : 1) {\n // Fill in the points marked X for this a-row:\n for(ie = 3; ie < nea - 3; ie += 3) {\n cp = makeControlPoints(\n [xe[je][ie - 3], ye[je][ie - 3]],\n [xe[je][ie], ye[je][ie]],\n [xe[je][ie + 3], ye[je][ie + 3]],\n asmoothing\n );\n\n xe[je][ie - 1] = 0.5 * (xe[je][ie - 1] + cp[0][0]);\n ye[je][ie - 1] = 0.5 * (ye[je][ie - 1] + cp[0][1]);\n xe[je][ie + 1] = 0.5 * (xe[je][ie + 1] + cp[1][0]);\n ye[je][ie + 1] = 0.5 * (ye[je][ie + 1] + cp[1][1]);\n }\n\n // This case is just slightly different. The computation is the same,\n // but having computed this, we'll average with the existing result.\n p1 = inferCubicControlPoint(\n [xe[je][0], ye[je][0]],\n [xe[je][2], ye[je][2]],\n [xe[je][3], ye[je][3]]\n );\n xe[je][1] = 0.5 * (xe[je][1] + p1[0]);\n ye[je][1] = 0.5 * (ye[je][1] + p1[1]);\n\n p1 = inferCubicControlPoint(\n [xe[je][nea - 1], ye[je][nea - 1]],\n [xe[je][nea - 3], ye[je][nea - 3]],\n [xe[je][nea - 4], ye[je][nea - 4]]\n );\n xe[je][nea - 2] = 0.5 * (xe[je][nea - 2] + p1[0]);\n ye[je][nea - 2] = 0.5 * (ye[je][nea - 2] + p1[1]);\n }\n }\n\n return [xe, ye];\n};\n\n},{\"../../lib\":515,\"./catmull_rom\":708}],711:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n RELATIVE_CULL_TOLERANCE: 1e-6\n};\n\n},{}],712:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Evaluates the derivative of a list of control point arrays. That is, it expects an array or arrays\n * that are expanded relative to the raw data to include the bicubic control points, if applicable. If\n * only linear interpolation is desired, then the data points correspond 1-1 along that axis to the\n * data itself. Since it's catmull-rom splines in either direction note in particular that the\n * derivatives are discontinuous across cell boundaries. That's the reason you need both the *cell*\n * and the *point within the cell*.\n *\n * Also note that the discontinuity of the derivative is in magnitude only. The direction *is*\n * continuous across cell boundaries.\n *\n * For example, to compute the derivative of the xcoordinate halfway between the 7 and 8th i-gridpoints\n * and the 10th and 11th j-gridpoints given bicubic smoothing in both dimensions, you'd write:\n *\n * var deriv = createIDerivativeEvaluator([x], 1, 1);\n *\n * var dxdi = deriv([], 7, 10, 0.5, 0.5);\n * // => [0.12345]\n *\n * Since there'd be a bunch of duplicate computation to compute multiple derivatives, you can double\n * this up by providing more arrays:\n *\n * var deriv = createIDerivativeEvaluator([x, y], 1, 1);\n *\n * var dxdi = deriv([], 7, 10, 0.5, 0.5);\n * // => [0.12345, 0.78910]\n *\n * NB: It's presumed that at this point all data has been sanitized and is valid numerical data arrays\n * of the correct dimension.\n */\nmodule.exports = function(arrays, asmoothing, bsmoothing) {\n if(asmoothing && bsmoothing) {\n return function(out, i0, j0, u, v) {\n if(!out) out = [];\n var f0, f1, f2, f3, ak, k;\n\n // Since it's a grid of control points, the actual indices are * 3:\n i0 *= 3;\n j0 *= 3;\n\n // Precompute some numbers:\n var u2 = u * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ouu2 = ou * u * 2;\n var a = -3 * ou2;\n var b = 3 * (ou2 - ouu2);\n var c = 3 * (ouu2 - u2);\n var d = 3 * u2;\n\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n // Compute the derivatives in the u-direction:\n f0 = a * ak[j0 ][i0] + b * ak[j0 ][i0 + 1] + c * ak[j0 ][i0 + 2] + d * ak[j0 ][i0 + 3];\n f1 = a * ak[j0 + 1][i0] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 1][i0 + 2] + d * ak[j0 + 1][i0 + 3];\n f2 = a * ak[j0 + 2][i0] + b * ak[j0 + 2][i0 + 1] + c * ak[j0 + 2][i0 + 2] + d * ak[j0 + 2][i0 + 3];\n f3 = a * ak[j0 + 3][i0] + b * ak[j0 + 3][i0 + 1] + c * ak[j0 + 3][i0 + 2] + d * ak[j0 + 3][i0 + 3];\n\n // Now just interpolate in the v-direction since it's all separable:\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n\n return out;\n };\n } else if(asmoothing) {\n // Handle smooth in the a-direction but linear in the b-direction by performing four\n // linear interpolations followed by one cubic interpolation of the result\n return function(out, i0, j0, u, v) {\n if(!out) out = [];\n var f0, f1, k, ak;\n i0 *= 3;\n var u2 = u * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ouu2 = ou * u * 2;\n var a = -3 * ou2;\n var b = 3 * (ou2 - ouu2);\n var c = 3 * (ouu2 - u2);\n var d = 3 * u2;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = a * ak[j0 ][i0] + b * ak[j0 ][i0 + 1] + c * ak[j0 ][i0 + 2] + d * ak[j0 ][i0 + 3];\n f1 = a * ak[j0 + 1][i0] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 1][i0 + 2] + d * ak[j0 + 1][i0 + 3];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n } else if(bsmoothing) {\n // Same as the above case, except reversed. I've disabled the no-unused vars rule\n // so that this function is fully interpolation-agnostic. Otherwise it would need\n // to be called differently in different cases. Which wouldn't be the worst, but\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, u, v) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, f2, f3, k, ak;\n j0 *= 3;\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ak[j0][i0 + 1] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0 + 1][i0];\n f2 = ak[j0 + 2][i0 + 1] - ak[j0 + 2][i0];\n f3 = ak[j0 + 3][i0 + 1] - ak[j0 + 3][i0];\n\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n return out;\n };\n } else {\n // Finally, both directions are linear:\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, u, v) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, k, ak;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ak[j0][i0 + 1] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0 + 1][i0];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n }\n};\n\n},{}],713:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function(arrays, asmoothing, bsmoothing) {\n if(asmoothing && bsmoothing) {\n return function(out, i0, j0, u, v) {\n if(!out) out = [];\n var f0, f1, f2, f3, ak, k;\n\n // Since it's a grid of control points, the actual indices are * 3:\n i0 *= 3;\n j0 *= 3;\n\n // Precompute some numbers:\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n\n var v2 = v * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ovv2 = ov * v * 2;\n var a = -3 * ov2;\n var b = 3 * (ov2 - ovv2);\n var c = 3 * (ovv2 - v2);\n var d = 3 * v2;\n\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n\n // Compute the derivatives in the v-direction:\n f0 = a * ak[j0][i0] + b * ak[j0 + 1][i0] + c * ak[j0 + 2][i0] + d * ak[j0 + 3][i0];\n f1 = a * ak[j0][i0 + 1] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 2][i0 + 1] + d * ak[j0 + 3][i0 + 1];\n f2 = a * ak[j0][i0 + 2] + b * ak[j0 + 1][i0 + 2] + c * ak[j0 + 2][i0 + 2] + d * ak[j0 + 3][i0 + 2];\n f3 = a * ak[j0][i0 + 3] + b * ak[j0 + 1][i0 + 3] + c * ak[j0 + 2][i0 + 3] + d * ak[j0 + 3][i0 + 3];\n\n // Now just interpolate in the v-direction since it's all separable:\n out[k] = ou3 * f0 + 3 * (ou2 * u * f1 + ou * u2 * f2) + u3 * f3;\n }\n\n return out;\n };\n } else if(asmoothing) {\n // Handle smooth in the a-direction but linear in the b-direction by performing four\n // linear interpolations followed by one cubic interpolation of the result\n return function(out, i0, j0, v, u) {\n if(!out) out = [];\n var f0, f1, f2, f3, k, ak;\n i0 *= 3;\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n\n f0 = ak[j0 + 1][i0] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0][i0 + 1];\n f2 = ak[j0 + 1][i0 + 2] - ak[j0][i0 + 2];\n f3 = ak[j0 + 1][i0 + 3] - ak[j0][i0 + 3];\n\n out[k] = ou3 * f0 + 3 * (ou2 * u * f1 + ou * u2 * f2) + u3 * f3;\n\n // mathematically equivalent:\n // f0 = ou3 * ak[j0 ][i0] + 3 * (ou2 * u * ak[j0 ][i0 + 1] + ou * u2 * ak[j0 ][i0 + 2]) + u3 * ak[j0 ][i0 + 3];\n // f1 = ou3 * ak[j0 + 1][i0] + 3 * (ou2 * u * ak[j0 + 1][i0 + 1] + ou * u2 * ak[j0 + 1][i0 + 2]) + u3 * ak[j0 + 1][i0 + 3];\n // out[k] = f1 - f0;\n }\n return out;\n };\n } else if(bsmoothing) {\n // Same as the above case, except reversed:\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, u, v) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, k, ak;\n j0 *= 3;\n var ou = 1 - u;\n var v2 = v * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ovv2 = ov * v * 2;\n var a = -3 * ov2;\n var b = 3 * (ov2 - ovv2);\n var c = 3 * (ovv2 - v2);\n var d = 3 * v2;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = a * ak[j0][i0] + b * ak[j0 + 1][i0] + c * ak[j0 + 2][i0] + d * ak[j0 + 3][i0];\n f1 = a * ak[j0][i0 + 1] + b * ak[j0 + 1][i0 + 1] + c * ak[j0 + 2][i0 + 1] + d * ak[j0 + 3][i0 + 1];\n\n out[k] = ou * f0 + u * f1;\n }\n return out;\n };\n } else {\n // Finally, both directions are linear:\n /* eslint-disable no-unused-vars */\n return function(out, i0, j0, v, u) {\n /* eslint-enable no-unused-vars */\n if(!out) out = [];\n var f0, f1, k, ak;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ak[j0 + 1][i0] - ak[j0][i0];\n f1 = ak[j0 + 1][i0 + 1] - ak[j0][i0 + 1];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n }\n};\n\n},{}],714:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Return a function that evaluates a set of linear or bicubic control points.\n * This will get evaluated a lot, so we'll at least do a bit of extra work to\n * flatten some of the choices. In particular, we'll unroll the linear/bicubic\n * combinations and we'll allow computing results in parallel to cut down\n * on repeated arithmetic.\n *\n * Take note that we don't search for the correct range in this function. The\n * reason is for consistency due to the corrresponding derivative function. In\n * particular, the derivatives aren't continuous across cells, so it's important\n * to be able control whether the derivative at a cell boundary is approached\n * from one side or the other.\n */\nmodule.exports = function(arrays, na, nb, asmoothing, bsmoothing) {\n var imax = na - 2;\n var jmax = nb - 2;\n\n if(asmoothing && bsmoothing) {\n return function(out, i, j) {\n if(!out) out = [];\n var f0, f1, f2, f3, ak, k;\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n // Since it's a grid of control points, the actual indices are * 3:\n i0 *= 3;\n j0 *= 3;\n\n // Precompute some numbers:\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ou3 * ak[j0][i0] + 3 * (ou2 * u * ak[j0][i0 + 1] + ou * u2 * ak[j0][i0 + 2]) + u3 * ak[j0][i0 + 3];\n f1 = ou3 * ak[j0 + 1][i0] + 3 * (ou2 * u * ak[j0 + 1][i0 + 1] + ou * u2 * ak[j0 + 1][i0 + 2]) + u3 * ak[j0 + 1][i0 + 3];\n f2 = ou3 * ak[j0 + 2][i0] + 3 * (ou2 * u * ak[j0 + 2][i0 + 1] + ou * u2 * ak[j0 + 2][i0 + 2]) + u3 * ak[j0 + 2][i0 + 3];\n f3 = ou3 * ak[j0 + 3][i0] + 3 * (ou2 * u * ak[j0 + 3][i0 + 1] + ou * u2 * ak[j0 + 3][i0 + 2]) + u3 * ak[j0 + 3][i0 + 3];\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n\n return out;\n };\n } else if(asmoothing) {\n // Handle smooth in the a-direction but linear in the b-direction by performing four\n // linear interpolations followed by one cubic interpolation of the result\n return function(out, i, j) {\n if(!out) out = [];\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n var f0, f1, f2, f3, k, ak;\n i0 *= 3;\n var u2 = u * u;\n var u3 = u2 * u;\n var ou = 1 - u;\n var ou2 = ou * ou;\n var ou3 = ou2 * ou;\n var ov = 1 - v;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ov * ak[j0][i0] + v * ak[j0 + 1][i0];\n f1 = ov * ak[j0][i0 + 1] + v * ak[j0 + 1][i0 + 1];\n f2 = ov * ak[j0][i0 + 2] + v * ak[j0 + 1][i0 + 1];\n f3 = ov * ak[j0][i0 + 3] + v * ak[j0 + 1][i0 + 1];\n\n out[k] = ou3 * f0 + 3 * (ou2 * u * f1 + ou * u2 * f2) + u3 * f3;\n }\n return out;\n };\n } else if(bsmoothing) {\n // Same as the above case, except reversed:\n return function(out, i, j) {\n if(!out) out = [];\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n var f0, f1, f2, f3, k, ak;\n j0 *= 3;\n var v2 = v * v;\n var v3 = v2 * v;\n var ov = 1 - v;\n var ov2 = ov * ov;\n var ov3 = ov2 * ov;\n var ou = 1 - u;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ou * ak[j0][i0] + u * ak[j0][i0 + 1];\n f1 = ou * ak[j0 + 1][i0] + u * ak[j0 + 1][i0 + 1];\n f2 = ou * ak[j0 + 2][i0] + u * ak[j0 + 2][i0 + 1];\n f3 = ou * ak[j0 + 3][i0] + u * ak[j0 + 3][i0 + 1];\n\n out[k] = ov3 * f0 + 3 * (ov2 * v * f1 + ov * v2 * f2) + v3 * f3;\n }\n return out;\n };\n } else {\n // Finally, both directions are linear:\n return function(out, i, j) {\n if(!out) out = [];\n\n var i0 = Math.max(0, Math.min(Math.floor(i), imax));\n var j0 = Math.max(0, Math.min(Math.floor(j), jmax));\n var u = Math.max(0, Math.min(1, i - i0));\n var v = Math.max(0, Math.min(1, j - j0));\n\n var f0, f1, k, ak;\n var ov = 1 - v;\n var ou = 1 - u;\n for(k = 0; k < arrays.length; k++) {\n ak = arrays[k];\n f0 = ou * ak[j0][i0] + u * ak[j0][i0 + 1];\n f1 = ou * ak[j0 + 1][i0] + u * ak[j0 + 1][i0 + 1];\n\n out[k] = ov * f0 + v * f1;\n }\n return out;\n };\n }\n};\n\n},{}],715:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleXYDefaults = _dereq_('./xy_defaults');\nvar handleABDefaults = _dereq_('./ab_defaults');\nvar attributes = _dereq_('./attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, dfltColor, fullLayout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n traceOut._clipPathId = 'clip' + traceOut.uid + 'carpet';\n\n var defaultColor = coerce('color', colorAttrs.defaultLine);\n Lib.coerceFont(coerce, 'font');\n\n coerce('carpet');\n\n handleABDefaults(traceIn, traceOut, fullLayout, coerce, defaultColor);\n\n if(!traceOut.a || !traceOut.b) {\n traceOut.visible = false;\n return;\n }\n\n if(traceOut.a.length < 3) {\n traceOut.aaxis.smoothing = 0;\n }\n\n if(traceOut.b.length < 3) {\n traceOut.baxis.smoothing = 0;\n }\n\n // NB: the input is x/y arrays. You should know that the *first* dimension of x and y\n // corresponds to b and the second to a. This sounds backwards but ends up making sense\n // the important part to know is that when you write y[j][i], j goes from 0 to b.length - 1\n // and i goes from 0 to a.length - 1.\n var validData = handleXYDefaults(traceIn, traceOut, coerce);\n if(!validData) {\n traceOut.visible = false;\n }\n\n if(traceOut._cheater) {\n coerce('cheaterslope');\n }\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib\":515,\"./ab_defaults\":698,\"./attributes\":700,\"./xy_defaults\":724}],716:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n plot: _dereq_('./plot'),\n calc: _dereq_('./calc'),\n animatable: true,\n isContainer: true, // so carpet traces get `calc` before other traces\n\n moduleType: 'trace',\n name: 'carpet',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'carpet', 'carpetAxis', 'notLegendIsolatable', 'noMultiCategory', 'noHover', 'noSortingByValue'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"./attributes\":700,\"./calc\":704,\"./defaults\":715,\"./plot\":721}],717:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * Given a trace, look up the carpet axis by carpet.\n */\nmodule.exports = function(gd, trace) {\n var n = gd._fullData.length;\n var firstAxis;\n for(var i = 0; i < n; i++) {\n var maybeCarpet = gd._fullData[i];\n\n if(maybeCarpet.index === trace.index) continue;\n\n if(maybeCarpet.type === 'carpet') {\n if(!firstAxis) {\n firstAxis = maybeCarpet;\n }\n\n if(maybeCarpet.carpet === trace.carpet) {\n return maybeCarpet;\n }\n }\n }\n\n return firstAxis;\n};\n\n},{}],718:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function makePath(xp, yp, isBicubic) {\n // Prevent d3 errors that would result otherwise:\n if(xp.length === 0) return '';\n\n var i;\n var path = [];\n var stride = isBicubic ? 3 : 1;\n for(i = 0; i < xp.length; i += stride) {\n path.push(xp[i] + ',' + yp[i]);\n\n if(isBicubic && i < xp.length - stride) {\n path.push('C');\n path.push([\n xp[i + 1] + ',' + yp[i + 1],\n xp[i + 2] + ',' + yp[i + 2] + ' ',\n ].join(' '));\n }\n }\n return path.join(isBicubic ? '' : 'L');\n};\n\n},{}],719:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\n/*\n * Map an array of x or y coordinates (c) to screen-space pixel coordinates (p).\n * The output array is optional, but if provided, it will be reused without\n * reallocation to the extent possible.\n */\nmodule.exports = function mapArray(out, data, func) {\n var i;\n\n if(!isArrayOrTypedArray(out)) {\n // If not an array, make it an array:\n out = [];\n } else if(out.length > data.length) {\n // If too long, truncate. (If too short, it will grow\n // automatically so we don't care about that case)\n out = out.slice(0, data.length);\n }\n\n for(i = 0; i < data.length; i++) {\n out[i] = func(data[i]);\n }\n\n return out;\n};\n\n},{\"../../lib\":515}],720:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function orientText(trace, xaxis, yaxis, xy, dxy, refDxy) {\n var dx = dxy[0] * trace.dpdx(xaxis);\n var dy = dxy[1] * trace.dpdy(yaxis);\n var flip = 1;\n\n var offsetMultiplier = 1.0;\n if(refDxy) {\n var l1 = Math.sqrt(dxy[0] * dxy[0] + dxy[1] * dxy[1]);\n var l2 = Math.sqrt(refDxy[0] * refDxy[0] + refDxy[1] * refDxy[1]);\n var dot = (dxy[0] * refDxy[0] + dxy[1] * refDxy[1]) / l1 / l2;\n offsetMultiplier = Math.max(0.0, dot);\n }\n\n var angle = Math.atan2(dy, dx) * 180 / Math.PI;\n if(angle < -90) {\n angle += 180;\n flip = -flip;\n } else if(angle > 90) {\n angle -= 180;\n flip = -flip;\n }\n\n return {\n angle: angle,\n flip: flip,\n p: trace.c2p(xy, xaxis, yaxis),\n offsetMultplier: offsetMultiplier\n };\n};\n\n},{}],721:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar map1dArray = _dereq_('./map_1d_array');\nvar makepath = _dereq_('./makepath');\nvar orientText = _dereq_('./orient_text');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Lib = _dereq_('../../lib');\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\nvar alignmentConstants = _dereq_('../../constants/alignment');\n\nmodule.exports = function plot(gd, plotinfo, cdcarpet, carpetLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var fullLayout = gd._fullLayout;\n var clipLayer = fullLayout._clips;\n\n Lib.makeTraceGroups(carpetLayer, cdcarpet, 'trace').each(function(cd) {\n var axisLayer = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var aax = trace.aaxis;\n var bax = trace.baxis;\n\n var minorLayer = Lib.ensureSingle(axisLayer, 'g', 'minorlayer');\n var majorLayer = Lib.ensureSingle(axisLayer, 'g', 'majorlayer');\n var boundaryLayer = Lib.ensureSingle(axisLayer, 'g', 'boundarylayer');\n var labelLayer = Lib.ensureSingle(axisLayer, 'g', 'labellayer');\n\n axisLayer.style('opacity', trace.opacity);\n\n drawGridLines(xa, ya, majorLayer, aax, 'a', aax._gridlines, true);\n drawGridLines(xa, ya, majorLayer, bax, 'b', bax._gridlines, true);\n drawGridLines(xa, ya, minorLayer, aax, 'a', aax._minorgridlines, true);\n drawGridLines(xa, ya, minorLayer, bax, 'b', bax._minorgridlines, true);\n\n // NB: These are not omitted if the lines are not active. The joins must be executed\n // in order for them to get cleaned up without a full redraw\n drawGridLines(xa, ya, boundaryLayer, aax, 'a-boundary', aax._boundarylines);\n drawGridLines(xa, ya, boundaryLayer, bax, 'b-boundary', bax._boundarylines);\n\n var labelOrientationA = drawAxisLabels(gd, xa, ya, trace, cd0, labelLayer, aax._labels, 'a-label');\n var labelOrientationB = drawAxisLabels(gd, xa, ya, trace, cd0, labelLayer, bax._labels, 'b-label');\n\n drawAxisTitles(gd, labelLayer, trace, cd0, xa, ya, labelOrientationA, labelOrientationB);\n\n drawClipPath(trace, cd0, clipLayer, xa, ya);\n });\n};\n\nfunction drawClipPath(trace, t, layer, xaxis, yaxis) {\n var seg, xp, yp, i;\n\n var clip = layer.select('#' + trace._clipPathId);\n\n if(!clip.size()) {\n clip = layer.append('clipPath')\n .classed('carpetclip', true);\n }\n\n var path = Lib.ensureSingle(clip, 'path', 'carpetboundary');\n var segments = t.clipsegments;\n var segs = [];\n\n for(i = 0; i < segments.length; i++) {\n seg = segments[i];\n xp = map1dArray([], seg.x, xaxis.c2p);\n yp = map1dArray([], seg.y, yaxis.c2p);\n segs.push(makepath(xp, yp, seg.bicubic));\n }\n\n // This could be optimized ever so slightly to avoid no-op L segments\n // at the corners, but it's so negligible that I don't think it's worth\n // the extra complexity\n var clipPathData = 'M' + segs.join('L') + 'Z';\n clip.attr('id', trace._clipPathId);\n path.attr('d', clipPathData);\n}\n\nfunction drawGridLines(xaxis, yaxis, layer, axis, axisLetter, gridlines) {\n var lineClass = 'const-' + axisLetter + '-lines';\n var gridJoin = layer.selectAll('.' + lineClass).data(gridlines);\n\n gridJoin.enter().append('path')\n .classed(lineClass, true)\n .style('vector-effect', 'non-scaling-stroke');\n\n gridJoin.each(function(d) {\n var gridline = d;\n var x = gridline.x;\n var y = gridline.y;\n\n var xp = map1dArray([], x, xaxis.c2p);\n var yp = map1dArray([], y, yaxis.c2p);\n\n var path = 'M' + makepath(xp, yp, gridline.smoothing);\n\n var el = d3.select(this);\n\n el.attr('d', path)\n .style('stroke-width', gridline.width)\n .style('stroke', gridline.color)\n .style('stroke-dasharray', Drawing.dashStyle(gridline.dash, gridline.width))\n .style('fill', 'none');\n });\n\n gridJoin.exit().remove();\n}\n\nfunction drawAxisLabels(gd, xaxis, yaxis, trace, t, layer, labels, labelClass) {\n var labelJoin = layer.selectAll('text.' + labelClass).data(labels);\n\n labelJoin.enter().append('text')\n .classed(labelClass, true);\n\n var maxExtent = 0;\n var labelOrientation = {};\n\n labelJoin.each(function(label, i) {\n // Most of the positioning is done in calc_labels. Only the parts that depend upon\n // the screen space representation of the x and y axes are here:\n var orientation;\n if(label.axis.tickangle === 'auto') {\n orientation = orientText(trace, xaxis, yaxis, label.xy, label.dxy);\n } else {\n var angle = (label.axis.tickangle + 180.0) * Math.PI / 180.0;\n orientation = orientText(trace, xaxis, yaxis, label.xy, [Math.cos(angle), Math.sin(angle)]);\n }\n\n if(!i) {\n // TODO: offsetMultiplier? Not currently used anywhere...\n labelOrientation = {angle: orientation.angle, flip: orientation.flip};\n }\n var direction = (label.endAnchor ? -1 : 1) * orientation.flip;\n\n var labelEl = d3.select(this)\n .attr({\n 'text-anchor': direction > 0 ? 'start' : 'end',\n 'data-notex': 1\n })\n .call(Drawing.font, label.font)\n .text(label.text)\n .call(svgTextUtils.convertToTspans, gd);\n\n var bbox = Drawing.bBox(this);\n\n labelEl.attr('transform',\n // Translate to the correct point:\n strTranslate(orientation.p[0], orientation.p[1]) +\n // Rotate to line up with grid line tangent:\n strRotate(orientation.angle) +\n // Adjust the baseline and indentation:\n strTranslate(label.axis.labelpadding * direction, bbox.height * 0.3)\n );\n\n maxExtent = Math.max(maxExtent, bbox.width + label.axis.labelpadding);\n });\n\n labelJoin.exit().remove();\n\n labelOrientation.maxExtent = maxExtent;\n return labelOrientation;\n}\n\nfunction drawAxisTitles(gd, layer, trace, t, xa, ya, labelOrientationA, labelOrientationB) {\n var a, b, xy, dxy;\n\n var aMin = Lib.aggNums(Math.min, null, trace.a);\n var aMax = Lib.aggNums(Math.max, null, trace.a);\n var bMin = Lib.aggNums(Math.min, null, trace.b);\n var bMax = Lib.aggNums(Math.max, null, trace.b);\n\n a = 0.5 * (aMin + aMax);\n b = bMin;\n xy = trace.ab2xy(a, b, true);\n dxy = trace.dxyda_rough(a, b);\n if(labelOrientationA.angle === undefined) {\n Lib.extendFlat(labelOrientationA, orientText(trace, xa, ya, xy, trace.dxydb_rough(a, b)));\n }\n drawAxisTitle(gd, layer, trace, t, xy, dxy, trace.aaxis, xa, ya, labelOrientationA, 'a-title');\n\n a = aMin;\n b = 0.5 * (bMin + bMax);\n xy = trace.ab2xy(a, b, true);\n dxy = trace.dxydb_rough(a, b);\n if(labelOrientationB.angle === undefined) {\n Lib.extendFlat(labelOrientationB, orientText(trace, xa, ya, xy, trace.dxyda_rough(a, b)));\n }\n drawAxisTitle(gd, layer, trace, t, xy, dxy, trace.baxis, xa, ya, labelOrientationB, 'b-title');\n}\n\nvar lineSpacing = alignmentConstants.LINE_SPACING;\nvar midShift = ((1 - alignmentConstants.MID_SHIFT) / lineSpacing) + 1;\n\nfunction drawAxisTitle(gd, layer, trace, t, xy, dxy, axis, xa, ya, labelOrientation, labelClass) {\n var data = [];\n if(axis.title.text) data.push(axis.title.text);\n var titleJoin = layer.selectAll('text.' + labelClass).data(data);\n var offset = labelOrientation.maxExtent;\n\n titleJoin.enter().append('text')\n .classed(labelClass, true);\n\n // There's only one, but we'll do it as a join so it's updated nicely:\n titleJoin.each(function() {\n var orientation = orientText(trace, xa, ya, xy, dxy);\n\n if(['start', 'both'].indexOf(axis.showticklabels) === -1) {\n offset = 0;\n }\n\n // In addition to the size of the labels, add on some extra padding:\n var titleSize = axis.title.font.size;\n offset += titleSize + axis.title.offset;\n\n var labelNorm = labelOrientation.angle + (labelOrientation.flip < 0 ? 180 : 0);\n var angleDiff = (labelNorm - orientation.angle + 450) % 360;\n var reverseTitle = angleDiff > 90 && angleDiff < 270;\n\n var el = d3.select(this);\n\n el.text(axis.title.text)\n .call(svgTextUtils.convertToTspans, gd);\n\n if(reverseTitle) {\n offset = (-svgTextUtils.lineCount(el) + midShift) * lineSpacing * titleSize - offset;\n }\n\n el.attr('transform',\n strTranslate(orientation.p[0], orientation.p[1]) +\n strRotate(orientation.angle) +\n strTranslate(0, offset)\n )\n .attr('text-anchor', 'middle')\n .call(Drawing.font, axis.title.font);\n });\n\n titleJoin.exit().remove();\n}\n\n},{\"../../components/drawing\":389,\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"./makepath\":718,\"./map_1d_array\":719,\"./orient_text\":720,\"@plotly/d3\":58}],722:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\nvar search = _dereq_('../../lib/search').findBin;\nvar computeControlPoints = _dereq_('./compute_control_points');\nvar createSplineEvaluator = _dereq_('./create_spline_evaluator');\nvar createIDerivativeEvaluator = _dereq_('./create_i_derivative_evaluator');\nvar createJDerivativeEvaluator = _dereq_('./create_j_derivative_evaluator');\n\n/*\n * Create conversion functions to go from one basis to another. In particular the letter\n * abbreviations are:\n *\n * i: i/j coordinates along the grid. Integer values correspond to data points\n * a: real-valued coordinates along the a/b axes\n * c: cartesian x-y coordinates\n * p: screen-space pixel coordinates\n */\nmodule.exports = function setConvert(trace) {\n var a = trace._a;\n var b = trace._b;\n var na = a.length;\n var nb = b.length;\n var aax = trace.aaxis;\n var bax = trace.baxis;\n\n // Grab the limits once rather than recomputing the bounds for every point\n // independently:\n var amin = a[0];\n var amax = a[na - 1];\n var bmin = b[0];\n var bmax = b[nb - 1];\n var arange = a[a.length - 1] - a[0];\n var brange = b[b.length - 1] - b[0];\n\n // Compute the tolerance so that points are visible slightly outside the\n // defined carpet axis:\n var atol = arange * constants.RELATIVE_CULL_TOLERANCE;\n var btol = brange * constants.RELATIVE_CULL_TOLERANCE;\n\n // Expand the limits to include the relative tolerance:\n amin -= atol;\n amax += atol;\n bmin -= btol;\n bmax += btol;\n\n trace.isVisible = function(a, b) {\n return a > amin && a < amax && b > bmin && b < bmax;\n };\n\n trace.isOccluded = function(a, b) {\n return a < amin || a > amax || b < bmin || b > bmax;\n };\n\n trace.setScale = function() {\n var x = trace._x;\n var y = trace._y;\n\n // This is potentially a very expensive step! It does the bulk of the work of constructing\n // an expanded basis of control points. Note in particular that it overwrites the existing\n // basis without creating a new array since that would potentially thrash the garbage\n // collector.\n var result = computeControlPoints(trace._xctrl, trace._yctrl, x, y, aax.smoothing, bax.smoothing);\n trace._xctrl = result[0];\n trace._yctrl = result[1];\n\n // This step is the second step in the process, but it's somewhat simpler. It just unrolls\n // some logic since it would be unnecessarily expensive to compute both interpolations\n // nearly identically but separately and to include a bunch of linear vs. bicubic logic in\n // every single call.\n trace.evalxy = createSplineEvaluator([trace._xctrl, trace._yctrl], na, nb, aax.smoothing, bax.smoothing);\n\n trace.dxydi = createIDerivativeEvaluator([trace._xctrl, trace._yctrl], aax.smoothing, bax.smoothing);\n trace.dxydj = createJDerivativeEvaluator([trace._xctrl, trace._yctrl], aax.smoothing, bax.smoothing);\n };\n\n /*\n * Convert from i/j data grid coordinates to a/b values. Note in particular that this\n * is *linear* interpolation, even if the data is interpolated bicubically.\n */\n trace.i2a = function(i) {\n var i0 = Math.max(0, Math.floor(i[0]), na - 2);\n var ti = i[0] - i0;\n return (1 - ti) * a[i0] + ti * a[i0 + 1];\n };\n\n trace.j2b = function(j) {\n var j0 = Math.max(0, Math.floor(j[1]), na - 2);\n var tj = j[1] - j0;\n return (1 - tj) * b[j0] + tj * b[j0 + 1];\n };\n\n trace.ij2ab = function(ij) {\n return [trace.i2a(ij[0]), trace.j2b(ij[1])];\n };\n\n /*\n * Convert from a/b coordinates to i/j grid-numbered coordinates. This requires searching\n * through the a/b data arrays and assumes they are monotonic, which is presumed to have\n * been enforced already.\n */\n trace.a2i = function(aval) {\n var i0 = Math.max(0, Math.min(search(aval, a), na - 2));\n var a0 = a[i0];\n var a1 = a[i0 + 1];\n return Math.max(0, Math.min(na - 1, i0 + (aval - a0) / (a1 - a0)));\n };\n\n trace.b2j = function(bval) {\n var j0 = Math.max(0, Math.min(search(bval, b), nb - 2));\n var b0 = b[j0];\n var b1 = b[j0 + 1];\n return Math.max(0, Math.min(nb - 1, j0 + (bval - b0) / (b1 - b0)));\n };\n\n trace.ab2ij = function(ab) {\n return [trace.a2i(ab[0]), trace.b2j(ab[1])];\n };\n\n /*\n * Convert from i/j coordinates to x/y caretesian coordinates. This means either bilinear\n * or bicubic spline evaluation, but the hard part is already done at this point.\n */\n trace.i2c = function(i, j) {\n return trace.evalxy([], i, j);\n };\n\n trace.ab2xy = function(aval, bval, extrapolate) {\n if(!extrapolate && (aval < a[0] || aval > a[na - 1] | bval < b[0] || bval > b[nb - 1])) {\n return [false, false];\n }\n var i = trace.a2i(aval);\n var j = trace.b2j(bval);\n\n var pt = trace.evalxy([], i, j);\n\n if(extrapolate) {\n // This section uses the boundary derivatives to extrapolate linearly outside\n // the defined range. Consider a scatter line with one point inside the carpet\n // axis and one point outside. If we don't extrapolate, we can't draw the line\n // at all.\n var iex = 0;\n var jex = 0;\n var der = [];\n\n var i0, ti, j0, tj;\n if(aval < a[0]) {\n i0 = 0;\n ti = 0;\n iex = (aval - a[0]) / (a[1] - a[0]);\n } else if(aval > a[na - 1]) {\n i0 = na - 2;\n ti = 1;\n iex = (aval - a[na - 1]) / (a[na - 1] - a[na - 2]);\n } else {\n i0 = Math.max(0, Math.min(na - 2, Math.floor(i)));\n ti = i - i0;\n }\n\n if(bval < b[0]) {\n j0 = 0;\n tj = 0;\n jex = (bval - b[0]) / (b[1] - b[0]);\n } else if(bval > b[nb - 1]) {\n j0 = nb - 2;\n tj = 1;\n jex = (bval - b[nb - 1]) / (b[nb - 1] - b[nb - 2]);\n } else {\n j0 = Math.max(0, Math.min(nb - 2, Math.floor(j)));\n tj = j - j0;\n }\n\n if(iex) {\n trace.dxydi(der, i0, j0, ti, tj);\n pt[0] += der[0] * iex;\n pt[1] += der[1] * iex;\n }\n\n if(jex) {\n trace.dxydj(der, i0, j0, ti, tj);\n pt[0] += der[0] * jex;\n pt[1] += der[1] * jex;\n }\n }\n\n return pt;\n };\n\n\n trace.c2p = function(xy, xa, ya) {\n return [xa.c2p(xy[0]), ya.c2p(xy[1])];\n };\n\n trace.p2x = function(p, xa, ya) {\n return [xa.p2c(p[0]), ya.p2c(p[1])];\n };\n\n trace.dadi = function(i /* , u*/) {\n // Right now only a piecewise linear a or b basis is permitted since smoother interpolation\n // would cause monotonicity problems. As a retult, u is entirely disregarded in this\n // computation, though we'll specify it as a parameter for the sake of completeness and\n // future-proofing. It would be possible to use monotonic cubic interpolation, for example.\n //\n // See: https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\n\n // u = u || 0;\n\n var i0 = Math.max(0, Math.min(a.length - 2, i));\n\n // The step (denominator) is implicitly 1 since that's the grid spacing.\n return a[i0 + 1] - a[i0];\n };\n\n trace.dbdj = function(j /* , v*/) {\n // See above caveats for dadi which also apply here\n var j0 = Math.max(0, Math.min(b.length - 2, j));\n\n // The step (denominator) is implicitly 1 since that's the grid spacing.\n return b[j0 + 1] - b[j0];\n };\n\n // Takes: grid cell coordinate (i, j) and fractional grid cell coordinates (u, v)\n // Returns: (dx/da, dy/db)\n //\n // NB: separate grid cell + fractional grid cell coordinate format is due to the discontinuous\n // derivative, as described better in create_i_derivative_evaluator.js\n trace.dxyda = function(i0, j0, u, v) {\n var dxydi = trace.dxydi(null, i0, j0, u, v);\n var dadi = trace.dadi(i0, u);\n\n return [dxydi[0] / dadi, dxydi[1] / dadi];\n };\n\n trace.dxydb = function(i0, j0, u, v) {\n var dxydj = trace.dxydj(null, i0, j0, u, v);\n var dbdj = trace.dbdj(j0, v);\n\n return [dxydj[0] / dbdj, dxydj[1] / dbdj];\n };\n\n // Sometimes we don't care about precision and all we really want is decent rough\n // directions (as is the case with labels). In that case, we can do a very rough finite\n // difference and spare having to worry about precise grid coordinates:\n trace.dxyda_rough = function(a, b, reldiff) {\n var h = arange * (reldiff || 0.1);\n var plus = trace.ab2xy(a + h, b, true);\n var minus = trace.ab2xy(a - h, b, true);\n\n return [\n (plus[0] - minus[0]) * 0.5 / h,\n (plus[1] - minus[1]) * 0.5 / h\n ];\n };\n\n trace.dxydb_rough = function(a, b, reldiff) {\n var h = brange * (reldiff || 0.1);\n var plus = trace.ab2xy(a, b + h, true);\n var minus = trace.ab2xy(a, b - h, true);\n\n return [\n (plus[0] - minus[0]) * 0.5 / h,\n (plus[1] - minus[1]) * 0.5 / h\n ];\n };\n\n trace.dpdx = function(xa) {\n return xa._m;\n };\n\n trace.dpdy = function(ya) {\n return ya._m;\n };\n};\n\n},{\"../../lib/search\":535,\"./compute_control_points\":710,\"./constants\":711,\"./create_i_derivative_evaluator\":712,\"./create_j_derivative_evaluator\":713,\"./create_spline_evaluator\":714}],723:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n/*\n * Given a 2D array as well as a basis in either direction, this function fills in the\n * 2D array using a combination of smoothing and extrapolation. This is rather important\n * for carpet plots since it's used for layout so that we can't simply omit or blank out\n * points. We need a reasonable guess so that the interpolation puts points somewhere\n * even if we were to somehow represent that the data was missing later on.\n *\n * input:\n * - data: 2D array of arrays\n * - a: array such that a.length === data[0].length\n * - b: array such that b.length === data.length\n */\nmodule.exports = function smoothFill2dArray(data, a, b) {\n var i, j, k;\n var ip = [];\n var jp = [];\n // var neighborCnts = [];\n\n var ni = data[0].length;\n var nj = data.length;\n\n function avgSurrounding(i, j) {\n // As a low-quality start, we can simply average surrounding points (in a not\n // non-uniform grid aware manner):\n var sum = 0.0;\n var val;\n var cnt = 0;\n if(i > 0 && (val = data[j][i - 1]) !== undefined) {\n cnt++;\n sum += val;\n }\n if(i < ni - 1 && (val = data[j][i + 1]) !== undefined) {\n cnt++;\n sum += val;\n }\n if(j > 0 && (val = data[j - 1][i]) !== undefined) {\n cnt++;\n sum += val;\n }\n if(j < nj - 1 && (val = data[j + 1][i]) !== undefined) {\n cnt++;\n sum += val;\n }\n return sum / Math.max(1, cnt);\n }\n\n // This loop iterates over all cells. Any cells that are null will be noted and those\n // are the only points we will loop over and update via laplace's equation. Points with\n // any neighbors will receive the average. If there are no neighboring points, then they\n // will be set to zero. Also as we go, track the maximum magnitude so that we can scale\n // our tolerance accordingly.\n var dmax = 0.0;\n for(i = 0; i < ni; i++) {\n for(j = 0; j < nj; j++) {\n if(data[j][i] === undefined) {\n ip.push(i);\n jp.push(j);\n\n data[j][i] = avgSurrounding(i, j);\n // neighborCnts.push(result.neighbors);\n }\n dmax = Math.max(dmax, Math.abs(data[j][i]));\n }\n }\n\n if(!ip.length) return data;\n\n // The tolerance doesn't need to be excessive. It's just for display positioning\n var dxp, dxm, dap, dam, dbp, dbm, c, d, diff, reldiff, overrelaxation;\n var tol = 1e-5;\n var resid = 0;\n var itermax = 100;\n var iter = 0;\n var n = ip.length;\n do {\n resid = 0;\n // Normally we'd loop in two dimensions, but not all points are blank and need\n // an update, so we instead loop only over the points that were tabulated above\n for(k = 0; k < n; k++) {\n i = ip[k];\n j = jp[k];\n // neighborCnt = neighborCnts[k];\n\n // Track a counter for how many contributions there are. We'll use this counter\n // to average at the end, which reduces to laplace's equation with neumann boundary\n // conditions on the first derivative (second derivative is zero so that we get\n // a nice linear extrapolation at the boundaries).\n var boundaryCnt = 0;\n var newVal = 0;\n\n var d0, d1, x0, x1, i0, j0;\n if(i === 0) {\n // If this lies along the i = 0 boundary, extrapolate from the two points\n // to the right of this point. Note that the finite differences take into\n // account non-uniform grid spacing:\n i0 = Math.min(ni - 1, 2);\n x0 = a[i0];\n x1 = a[1];\n d0 = data[j][i0];\n d1 = data[j][1];\n newVal += d1 + (d1 - d0) * (a[0] - x1) / (x1 - x0);\n boundaryCnt++;\n } else if(i === ni - 1) {\n // If along the high i boundary, extrapolate from the two points to the\n // left of this point\n i0 = Math.max(0, ni - 3);\n x0 = a[i0];\n x1 = a[ni - 2];\n d0 = data[j][i0];\n d1 = data[j][ni - 2];\n newVal += d1 + (d1 - d0) * (a[ni - 1] - x1) / (x1 - x0);\n boundaryCnt++;\n }\n\n if((i === 0 || i === ni - 1) && (j > 0 && j < nj - 1)) {\n // If along the min(i) or max(i) boundaries, also smooth vertically as long\n // as we're not in a corner. Note that the finite differences used here\n // are also aware of nonuniform grid spacing:\n dxp = b[j + 1] - b[j];\n dxm = b[j] - b[j - 1];\n newVal += (dxm * data[j + 1][i] + dxp * data[j - 1][i]) / (dxm + dxp);\n boundaryCnt++;\n }\n\n if(j === 0) {\n // If along the j = 0 boundary, extrpolate this point from the two points\n // above it\n j0 = Math.min(nj - 1, 2);\n x0 = b[j0];\n x1 = b[1];\n d0 = data[j0][i];\n d1 = data[1][i];\n newVal += d1 + (d1 - d0) * (b[0] - x1) / (x1 - x0);\n boundaryCnt++;\n } else if(j === nj - 1) {\n // Same for the max j boundary from the cells below it:\n j0 = Math.max(0, nj - 3);\n x0 = b[j0];\n x1 = b[nj - 2];\n d0 = data[j0][i];\n d1 = data[nj - 2][i];\n newVal += d1 + (d1 - d0) * (b[nj - 1] - x1) / (x1 - x0);\n boundaryCnt++;\n }\n\n if((j === 0 || j === nj - 1) && (i > 0 && i < ni - 1)) {\n // Now average points to the left/right as long as not in a corner:\n dxp = a[i + 1] - a[i];\n dxm = a[i] - a[i - 1];\n newVal += (dxm * data[j][i + 1] + dxp * data[j][i - 1]) / (dxm + dxp);\n boundaryCnt++;\n }\n\n if(!boundaryCnt) {\n // If none of the above conditions were triggered, then this is an interior\n // point and we can just do a laplace equation update. As above, these differences\n // are aware of nonuniform grid spacing:\n dap = a[i + 1] - a[i];\n dam = a[i] - a[i - 1];\n dbp = b[j + 1] - b[j];\n dbm = b[j] - b[j - 1];\n\n // These are just some useful constants for the iteration, which is perfectly\n // straightforward but a little long to derive from f_xx + f_yy = 0.\n c = dap * dam * (dap + dam);\n d = dbp * dbm * (dbp + dbm);\n\n newVal = (c * (dbm * data[j + 1][i] + dbp * data[j - 1][i]) +\n d * (dam * data[j][i + 1] + dap * data[j][i - 1])) /\n (d * (dam + dap) + c * (dbm + dbp));\n } else {\n // If we did have contributions from the boundary conditions, then average\n // the result from the various contributions:\n newVal /= boundaryCnt;\n }\n\n // Jacobi updates are ridiculously slow to converge, so this approach uses a\n // Gauss-seidel iteration which is dramatically faster.\n diff = newVal - data[j][i];\n reldiff = diff / dmax;\n resid += reldiff * reldiff;\n\n // Gauss-Seidel-ish iteration, omega chosen based on heuristics and some\n // quick tests.\n //\n // NB: Don't overrelax the boundarie. Otherwise set an overrelaxation factor\n // which is a little low but safely optimal-ish:\n overrelaxation = boundaryCnt ? 0 : 0.85;\n\n // If there are four non-null neighbors, then we want a simple average without\n // overrelaxation. If all the surrounding points are null, then we want the full\n // overrelaxation\n //\n // Based on experiments, this actually seems to slow down convergence just a bit.\n // I'll leave it here for reference in case this needs to be revisited, but\n // it seems to work just fine without this.\n // if (overrelaxation) overrelaxation *= (4 - neighborCnt) / 4;\n\n data[j][i] += diff * (1 + overrelaxation);\n }\n\n resid = Math.sqrt(resid);\n } while(iter++ < itermax && resid > tol);\n\n Lib.log('Smoother converged to', resid, 'after', iter, 'iterations');\n\n return data;\n};\n\n},{\"../../lib\":515}],724:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArray1D = _dereq_('../../lib').isArray1D;\n\nmodule.exports = function handleXYDefaults(traceIn, traceOut, coerce) {\n var x = coerce('x');\n var hasX = x && x.length;\n var y = coerce('y');\n var hasY = y && y.length;\n if(!hasX && !hasY) return false;\n\n traceOut._cheater = !x;\n\n if((!hasX || isArray1D(x)) && (!hasY || isArray1D(y))) {\n var len = hasX ? x.length : Infinity;\n if(hasY) len = Math.min(len, y.length);\n if(traceOut.a && traceOut.a.length) len = Math.min(len, traceOut.a.length);\n if(traceOut.b && traceOut.b.length) len = Math.min(len, traceOut.b.length);\n traceOut._length = len;\n } else traceOut._length = null;\n\n return true;\n};\n\n},{\"../../lib\":515}],725:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar scatterGeoAttrs = _dereq_('../scattergeo/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar defaultLine = _dereq_('../../components/color/attributes').defaultLine;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterGeoMarkerLineAttrs = scatterGeoAttrs.marker.line;\n\nmodule.exports = extendFlat({\n locations: {\n valType: 'data_array',\n editType: 'calc',\n },\n locationmode: scatterGeoAttrs.locationmode,\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n geojson: extendFlat({}, scatterGeoAttrs.geojson, {\n }),\n featureidkey: scatterGeoAttrs.featureidkey,\n\n text: extendFlat({}, scatterGeoAttrs.text, {\n }),\n hovertext: extendFlat({}, scatterGeoAttrs.hovertext, {\n }),\n marker: {\n line: {\n color: extendFlat({}, scatterGeoMarkerLineAttrs.color, {dflt: defaultLine}),\n width: extendFlat({}, scatterGeoMarkerLineAttrs.width, {dflt: 1}),\n editType: 'calc'\n },\n opacity: {\n valType: 'number',\n arrayOk: true,\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'style',\n },\n editType: 'calc'\n },\n\n selected: {\n marker: {\n opacity: scatterGeoAttrs.selected.marker.opacity,\n editType: 'plot'\n },\n editType: 'plot'\n },\n unselected: {\n marker: {\n opacity: scatterGeoAttrs.unselected.marker.opacity,\n editType: 'plot'\n },\n editType: 'plot'\n },\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n editType: 'calc',\n flags: ['location', 'z', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/color/attributes\":366,\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scattergeo/attributes\":978}],726:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\n\nfunction isNonBlankString(v) {\n return v && typeof v === 'string';\n}\n\nmodule.exports = function calc(gd, trace) {\n var len = trace._length;\n var calcTrace = new Array(len);\n\n var isValidLoc;\n\n if(trace.geojson) {\n isValidLoc = function(v) { return isNonBlankString(v) || isNumeric(v); };\n } else {\n isValidLoc = isNonBlankString;\n }\n\n for(var i = 0; i < len; i++) {\n var calcPt = calcTrace[i] = {};\n var loc = trace.locations[i];\n var z = trace.z[i];\n\n if(isValidLoc(loc) && isNumeric(z)) {\n calcPt.loc = loc;\n calcPt.z = z;\n } else {\n calcPt.loc = null;\n calcPt.z = BADNUM;\n }\n\n calcPt.index = i;\n }\n\n arraysToCalcdata(calcTrace, trace);\n colorscaleCalc(gd, trace, {\n vals: trace.z,\n containerStr: '',\n cLetter: 'z'\n });\n calcSelection(calcTrace, trace);\n\n return calcTrace;\n};\n\n},{\"../../components/colorscale/calc\":375,\"../../constants/numerical\":491,\"../scatter/arrays_to_calcdata\":935,\"../scatter/calc_selection\":938,\"fast-isnumeric\":190}],727:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var locations = coerce('locations');\n var z = coerce('z');\n\n if(!(locations && locations.length && Lib.isArrayOrTypedArray(z) && z.length)) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = Math.min(locations.length, z.length);\n\n var geojson = coerce('geojson');\n\n var locationmodeDflt;\n if((typeof geojson === 'string' && geojson !== '') || Lib.isPlainObject(geojson)) {\n locationmodeDflt = 'geojson-id';\n }\n\n var locationMode = coerce('locationmode', locationmodeDflt);\n\n if(locationMode === 'geojson-id') {\n coerce('featureidkey');\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n var mlw = coerce('marker.line.width');\n if(mlw) coerce('marker.line.color');\n coerce('marker.opacity');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"./attributes\":725}],728:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n out.location = pt.location;\n out.z = pt.z;\n\n // include feature properties from input geojson\n var cdi = cd[pointNumber];\n if(cdi.fIn && cdi.fIn.properties) {\n out.properties = cdi.fIn.properties;\n }\n out.ct = cdi.ct;\n\n return out;\n};\n\n},{}],729:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar attributes = _dereq_('./attributes');\nvar fillText = _dereq_('../../lib').fillText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var geo = pointData.subplot;\n\n var pt, i, j, isInside;\n\n var xy = [xval, yval];\n var altXy = [xval + 360, yval];\n\n for(i = 0; i < cd.length; i++) {\n pt = cd[i];\n isInside = false;\n\n if(pt._polygons) {\n for(j = 0; j < pt._polygons.length; j++) {\n if(pt._polygons[j].contains(xy)) {\n isInside = !isInside;\n }\n // for polygons that cross antimeridian as xval is in [-180, 180]\n if(pt._polygons[j].contains(altXy)) {\n isInside = !isInside;\n }\n }\n\n if(isInside) break;\n }\n }\n\n if(!isInside || !pt) return;\n\n pointData.x0 = pointData.x1 = pointData.xa.c2p(pt.ct);\n pointData.y0 = pointData.y1 = pointData.ya.c2p(pt.ct);\n\n pointData.index = pt.index;\n pointData.location = pt.loc;\n pointData.z = pt.z;\n pointData.zLabel = Axes.tickText(geo.mockAxis, geo.mockAxis.c2l(pt.z), 'hover').text;\n pointData.hovertemplate = pt.hovertemplate;\n\n makeHoverInfo(pointData, trace, pt);\n\n return [pointData];\n};\n\nfunction makeHoverInfo(pointData, trace, pt) {\n if(trace.hovertemplate) return;\n\n var hoverinfo = pt.hi || trace.hoverinfo;\n var loc = String(pt.loc);\n\n var parts = (hoverinfo === 'all') ?\n attributes.hoverinfo.flags :\n hoverinfo.split('+');\n\n var hasName = (parts.indexOf('name') !== -1);\n var hasLocation = (parts.indexOf('location') !== -1);\n var hasZ = (parts.indexOf('z') !== -1);\n var hasText = (parts.indexOf('text') !== -1);\n var hasIdAsNameLabel = !hasName && hasLocation;\n\n var text = [];\n\n if(hasIdAsNameLabel) {\n pointData.nameOverride = loc;\n } else {\n if(hasName) pointData.nameOverride = trace.name;\n if(hasLocation) text.push(loc);\n }\n\n if(hasZ) {\n text.push(pointData.zLabel);\n }\n if(hasText) {\n fillText(pt, trace, text);\n }\n\n pointData.extraText = text.join('
');\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"./attributes\":725}],730:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n calc: _dereq_('./calc'),\n calcGeoJSON: _dereq_('./plot').calcGeoJSON,\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'choropleth',\n basePlotModule: _dereq_('../../plots/geo'),\n categories: ['geo', 'noOpacity', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/geo\":598,\"../heatmap/colorbar\":804,\"./attributes\":725,\"./calc\":726,\"./defaults\":727,\"./event_data\":728,\"./hover\":729,\"./plot\":731,\"./select\":732,\"./style\":733}],731:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar getTopojsonFeatures = _dereq_('../../lib/topojson_utils').getTopojsonFeatures;\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\n\nvar style = _dereq_('./style').style;\n\nfunction plot(gd, geo, calcData) {\n var choroplethLayer = geo.layers.backplot.select('.choroplethlayer');\n\n Lib.makeTraceGroups(choroplethLayer, calcData, 'trace choropleth').each(function(calcTrace) {\n var sel = d3.select(this);\n\n var paths = sel.selectAll('path.choroplethlocation')\n .data(Lib.identity);\n\n paths.enter().append('path')\n .classed('choroplethlocation', true);\n\n paths.exit().remove();\n\n // call style here within topojson request callback\n style(gd, calcTrace);\n });\n}\n\nfunction calcGeoJSON(calcTrace, fullLayout) {\n var trace = calcTrace[0].trace;\n var geoLayout = fullLayout[trace.geo];\n var geo = geoLayout._subplot;\n var locationmode = trace.locationmode;\n var len = trace._length;\n\n var features = locationmode === 'geojson-id' ?\n geoUtils.extractTraceFeature(calcTrace) :\n getTopojsonFeatures(trace, geo.topojson);\n\n var lonArray = [];\n var latArray = [];\n\n for(var i = 0; i < len; i++) {\n var calcPt = calcTrace[i];\n var feature = locationmode === 'geojson-id' ?\n calcPt.fOut :\n geoUtils.locationToFeature(locationmode, calcPt.loc, features);\n\n if(feature) {\n calcPt.geojson = feature;\n calcPt.ct = feature.properties.ct;\n calcPt._polygons = geoUtils.feature2polygons(feature);\n\n var bboxFeature = geoUtils.computeBbox(feature);\n lonArray.push(bboxFeature[0], bboxFeature[2]);\n latArray.push(bboxFeature[1], bboxFeature[3]);\n } else {\n calcPt.geojson = null;\n }\n }\n\n if(geoLayout.fitbounds === 'geojson' && locationmode === 'geojson-id') {\n var bboxGeojson = geoUtils.computeBbox(geoUtils.getTraceGeojson(trace));\n lonArray = [bboxGeojson[0], bboxGeojson[2]];\n latArray = [bboxGeojson[1], bboxGeojson[3]];\n }\n\n var opts = {padded: true};\n trace._extremes.lon = findExtremes(geoLayout.lonaxis._ax, lonArray, opts);\n trace._extremes.lat = findExtremes(geoLayout.lataxis._ax, latArray, opts);\n}\n\nmodule.exports = {\n calcGeoJSON: calcGeoJSON,\n plot: plot\n};\n\n},{\"../../lib\":515,\"../../lib/geo_location_utils\":508,\"../../lib/topojson_utils\":544,\"../../plots/cartesian/autorange\":565,\"./style\":733,\"@plotly/d3\":58}],732:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n\n var i, di, ct, x, y;\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n di = cd[i];\n ct = di.ct;\n\n if(!ct) continue;\n\n x = xa.c2p(ct);\n y = ya.c2p(ct);\n\n if(selectionTester.contains([x, y], null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n lon: ct[0],\n lat: ct[1]\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{}],733:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Colorscale = _dereq_('../../components/colorscale');\n\nfunction style(gd, calcTrace) {\n if(calcTrace) styleTrace(gd, calcTrace);\n}\n\nfunction styleTrace(gd, calcTrace) {\n var trace = calcTrace[0].trace;\n var s = calcTrace[0].node3;\n var locs = s.selectAll('.choroplethlocation');\n var marker = trace.marker || {};\n var markerLine = marker.line || {};\n\n var sclFunc = Colorscale.makeColorScaleFuncFromTrace(trace);\n\n locs.each(function(d) {\n d3.select(this)\n .attr('fill', sclFunc(d.z))\n .call(Color.stroke, d.mlc || markerLine.color)\n .call(Drawing.dashLine, '', d.mlw || markerLine.width || 0)\n .style('opacity', marker.opacity);\n });\n\n Drawing.selectedPointStyle(locs, trace);\n}\n\nfunction styleOnSelect(gd, calcTrace) {\n var s = calcTrace[0].node3;\n var trace = calcTrace[0].trace;\n\n if(trace.selectedpoints) {\n Drawing.selectedPointStyle(s.selectAll('.choroplethlocation'), trace);\n } else {\n styleTrace(gd, calcTrace);\n }\n}\n\nmodule.exports = {\n style: style,\n styleOnSelect: styleOnSelect\n};\n\n},{\"../../components/color\":367,\"../../components/colorscale\":379,\"../../components/drawing\":389,\"@plotly/d3\":58}],734:[function(_dereq_,module,exports){\n'use strict';\n\nvar choroplethAttrs = _dereq_('../choropleth/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n locations: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO\n // Maybe start with only one value (that we could name e.g. 'geojson-id'),\n // but eventually:\n // - we could also support for our own dist/topojson/*\n // .. and locationmode: choroplethAttrs.locationmode,\n\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO maybe we could also set a \"key\" to dig out values out of the\n // GeoJSON feature `properties` fields?\n\n geojson: {\n valType: 'any',\n editType: 'calc',\n },\n featureidkey: extendFlat({}, choroplethAttrs.featureidkey, {\n }),\n\n // TODO agree on name / behaviour\n //\n // 'below' is used currently for layout.mapbox.layers,\n // even though it's not very plotly-esque.\n //\n // Note also, that the mapbox-gl style don't all have the same layers,\n // see https://codepen.io/etpinard/pen/ydVMwM for full list\n below: {\n valType: 'string',\n editType: 'plot',\n },\n\n text: choroplethAttrs.text,\n hovertext: choroplethAttrs.hovertext,\n\n marker: {\n line: {\n color: extendFlat({}, choroplethAttrs.marker.line.color, {editType: 'plot'}),\n width: extendFlat({}, choroplethAttrs.marker.line.width, {editType: 'plot'}),\n editType: 'calc'\n },\n // TODO maybe having a dflt less than 1, together with `below:''` would be better?\n opacity: extendFlat({}, choroplethAttrs.marker.opacity, {editType: 'plot'}),\n editType: 'calc'\n },\n\n selected: {\n marker: {\n opacity: extendFlat({}, choroplethAttrs.selected.marker.opacity, {editType: 'plot'}),\n editType: 'plot'\n },\n editType: 'plot'\n },\n unselected: {\n marker: {\n opacity: extendFlat({}, choroplethAttrs.unselected.marker.opacity, {editType: 'plot'}),\n editType: 'plot'\n },\n editType: 'plot'\n },\n\n hoverinfo: choroplethAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs({}, {keys: ['properties']}),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../choropleth/attributes\":725}],735:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Colorscale = _dereq_('../../components/colorscale');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar makeBlank = _dereq_('../../lib/geojson_utils').makeBlank;\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\n\n/* N.B.\n *\n * We fetch the GeoJSON files \"ourselves\" (during\n * mapbox.prototype.fetchMapData) where they are stored in a global object\n * named `PlotlyGeoAssets` (same as for topojson files in `geo` subplots).\n *\n * Mapbox does allow using URLs as geojson sources, but does NOT allow filtering\n * features by feature `id` that are not numbers (more info in:\n * https://github.com/mapbox/mapbox-gl-js/issues/8088).\n */\n\nfunction convert(calcTrace) {\n var trace = calcTrace[0].trace;\n var isVisible = trace.visible === true && trace._length !== 0;\n\n var fill = {\n layout: {visibility: 'none'},\n paint: {}\n };\n\n var line = {\n layout: {visibility: 'none'},\n paint: {}\n };\n\n var opts = trace._opts = {\n fill: fill,\n line: line,\n geojson: makeBlank()\n };\n\n if(!isVisible) return opts;\n\n var features = geoUtils.extractTraceFeature(calcTrace);\n\n if(!features) return opts;\n\n var sclFunc = Colorscale.makeColorScaleFuncFromTrace(trace);\n var marker = trace.marker;\n var markerLine = marker.line || {};\n\n var opacityFn;\n if(Lib.isArrayOrTypedArray(marker.opacity)) {\n opacityFn = function(d) {\n var mo = d.mo;\n return isNumeric(mo) ? +Lib.constrain(mo, 0, 1) : 0;\n };\n }\n\n var lineColorFn;\n if(Lib.isArrayOrTypedArray(markerLine.color)) {\n lineColorFn = function(d) { return d.mlc; };\n }\n\n var lineWidthFn;\n if(Lib.isArrayOrTypedArray(markerLine.width)) {\n lineWidthFn = function(d) { return d.mlw; };\n }\n\n for(var i = 0; i < calcTrace.length; i++) {\n var cdi = calcTrace[i];\n var fOut = cdi.fOut;\n\n if(fOut) {\n var props = fOut.properties;\n props.fc = sclFunc(cdi.z);\n if(opacityFn) props.mo = opacityFn(cdi);\n if(lineColorFn) props.mlc = lineColorFn(cdi);\n if(lineWidthFn) props.mlw = lineWidthFn(cdi);\n cdi.ct = props.ct;\n cdi._polygons = geoUtils.feature2polygons(fOut);\n }\n }\n\n var opacitySetting = opacityFn ?\n {type: 'identity', property: 'mo'} :\n marker.opacity;\n\n Lib.extendFlat(fill.paint, {\n 'fill-color': {type: 'identity', property: 'fc'},\n 'fill-opacity': opacitySetting\n });\n\n Lib.extendFlat(line.paint, {\n 'line-color': lineColorFn ?\n {type: 'identity', property: 'mlc'} :\n markerLine.color,\n 'line-width': lineWidthFn ?\n {type: 'identity', property: 'mlw'} :\n markerLine.width,\n 'line-opacity': opacitySetting\n });\n\n fill.layout.visibility = 'visible';\n line.layout.visibility = 'visible';\n\n opts.geojson = {type: 'FeatureCollection', features: features};\n\n convertOnSelect(calcTrace);\n\n return opts;\n}\n\nfunction convertOnSelect(calcTrace) {\n var trace = calcTrace[0].trace;\n var opts = trace._opts;\n var opacitySetting;\n\n if(trace.selectedpoints) {\n var fns = Drawing.makeSelectedPointStyleFns(trace);\n\n for(var i = 0; i < calcTrace.length; i++) {\n var cdi = calcTrace[i];\n if(cdi.fOut) {\n cdi.fOut.properties.mo2 = fns.selectedOpacityFn(cdi);\n }\n }\n\n opacitySetting = {type: 'identity', property: 'mo2'};\n } else {\n opacitySetting = Lib.isArrayOrTypedArray(trace.marker.opacity) ?\n {type: 'identity', property: 'mo'} :\n trace.marker.opacity;\n }\n\n Lib.extendFlat(opts.fill.paint, {'fill-opacity': opacitySetting});\n Lib.extendFlat(opts.line.paint, {'line-opacity': opacitySetting});\n\n return opts;\n}\n\nmodule.exports = {\n convert: convert,\n convertOnSelect: convertOnSelect\n};\n\n},{\"../../components/colorscale\":379,\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/geo_location_utils\":508,\"../../lib/geojson_utils\":509,\"fast-isnumeric\":190}],736:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var locations = coerce('locations');\n var z = coerce('z');\n var geojson = coerce('geojson');\n\n if(!Lib.isArrayOrTypedArray(locations) || !locations.length ||\n !Lib.isArrayOrTypedArray(z) || !z.length ||\n !((typeof geojson === 'string' && geojson !== '') || Lib.isPlainObject(geojson))\n ) {\n traceOut.visible = false;\n return;\n }\n\n coerce('featureidkey');\n\n traceOut._length = Math.min(locations.length, z.length);\n\n coerce('below');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n var mlw = coerce('marker.line.width');\n if(mlw) coerce('marker.line.color');\n coerce('marker.opacity');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"./attributes\":734}],737:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n calc: _dereq_('../choropleth/calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('../choropleth/hover'),\n eventData: _dereq_('../choropleth/event_data'),\n selectPoints: _dereq_('../choropleth/select'),\n\n styleOnSelect: function(_, cd) {\n if(cd) {\n var trace = cd[0].trace;\n trace._glTrace.updateOnSelect(cd);\n }\n },\n\n getBelow: function(trace, subplot) {\n var mapLayers = subplot.getMapLayers();\n\n // find layer just above top-most \"water\" layer\n // that is not a plotly layer\n for(var i = mapLayers.length - 2; i >= 0; i--) {\n var layerId = mapLayers[i].id;\n\n if(typeof layerId === 'string' &&\n layerId.indexOf('water') === 0\n ) {\n for(var j = i + 1; j < mapLayers.length; j++) {\n layerId = mapLayers[j].id;\n\n if(typeof layerId === 'string' &&\n layerId.indexOf('plotly-') === -1\n ) {\n return layerId;\n }\n }\n }\n }\n },\n\n moduleType: 'trace',\n name: 'choroplethmapbox',\n basePlotModule: _dereq_('../../plots/mapbox'),\n categories: ['mapbox', 'gl', 'noOpacity', 'showLegend'],\n meta: {\n hr_name: 'choropleth_mapbox',\n }\n};\n\n},{\"../../plots/mapbox\":622,\"../choropleth/calc\":726,\"../choropleth/event_data\":728,\"../choropleth/hover\":729,\"../choropleth/select\":732,\"../heatmap/colorbar\":804,\"./attributes\":734,\"./defaults\":736,\"./plot\":738}],738:[function(_dereq_,module,exports){\n'use strict';\n\nvar convert = _dereq_('./convert').convert;\nvar convertOnSelect = _dereq_('./convert').convertOnSelect;\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\n\nfunction ChoroplethMapbox(subplot, uid) {\n this.type = 'choroplethmapbox';\n this.subplot = subplot;\n this.uid = uid;\n\n // N.B. fill and line layers share same source\n this.sourceId = 'source-' + uid;\n\n this.layerList = [\n ['fill', LAYER_PREFIX + uid + '-fill'],\n ['line', LAYER_PREFIX + uid + '-line']\n ];\n\n // previous 'below' value,\n // need this to update it properly\n this.below = null;\n}\n\nvar proto = ChoroplethMapbox.prototype;\n\nproto.update = function(calcTrace) {\n this._update(convert(calcTrace));\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = this;\n};\n\nproto.updateOnSelect = function(calcTrace) {\n this._update(convertOnSelect(calcTrace));\n};\n\nproto._update = function(optsAll) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var below = subplot.belowLookup['trace-' + this.uid];\n\n subplot.map\n .getSource(this.sourceId)\n .setData(optsAll.geojson);\n\n if(below !== this.below) {\n this._removeLayers();\n this._addLayers(optsAll, below);\n this.below = below;\n }\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var id = item[1];\n var opts = optsAll[k];\n\n subplot.setOptions(id, 'setLayoutProperty', opts.layout);\n\n if(opts.layout.visibility === 'visible') {\n subplot.setOptions(id, 'setPaintProperty', opts.paint);\n }\n }\n};\n\nproto._addLayers = function(optsAll, below) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var sourceId = this.sourceId;\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var opts = optsAll[k];\n\n subplot.addLayer({\n type: k,\n id: item[1],\n source: sourceId,\n layout: opts.layout,\n paint: opts.paint\n }, below);\n }\n};\n\nproto._removeLayers = function() {\n var map = this.subplot.map;\n var layerList = this.layerList;\n\n for(var i = layerList.length - 1; i >= 0; i--) {\n map.removeLayer(layerList[i][1]);\n }\n};\n\nproto.dispose = function() {\n var map = this.subplot.map;\n this._removeLayers();\n map.removeSource(this.sourceId);\n};\n\nmodule.exports = function createChoroplethMapbox(subplot, calcTrace) {\n var trace = calcTrace[0].trace;\n var choroplethMapbox = new ChoroplethMapbox(subplot, trace.uid);\n var sourceId = choroplethMapbox.sourceId;\n var optsAll = convert(calcTrace);\n var below = choroplethMapbox.below = subplot.belowLookup['trace-' + trace.uid];\n\n subplot.map.addSource(sourceId, {\n type: 'geojson',\n data: optsAll.geojson\n });\n\n choroplethMapbox._addLayers(optsAll, below);\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = choroplethMapbox;\n\n return choroplethMapbox;\n};\n\n},{\"../../plots/mapbox/constants\":620,\"./convert\":735}],739:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar mesh3dAttrs = _dereq_('../mesh3d/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar attrs = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n z: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n u: {\n valType: 'data_array',\n editType: 'calc',\n },\n v: {\n valType: 'data_array',\n editType: 'calc',\n },\n w: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // TODO add way to specify cone positions independently of the vector field\n // provided, similar to MATLAB's coneplot Cx/Cy/Cz meshgrids,\n // see https://www.mathworks.com/help/matlab/ref/coneplot.html\n //\n // Alternatively, if our goal is only to 'fill in gaps' in the vector data,\n // we could try to extend the heatmap 'connectgaps' algorithm to 3D.\n // From AJ: this particular algorithm which amounts to a Poisson equation,\n // both for interpolation and extrapolation - is the right one to use for\n // cones too. It makes a field with zero divergence, which is a good\n // baseline assumption for vector fields.\n //\n // cones: {\n // // potential attributes to add:\n // //\n // // - meshmode: 'cartesian-product', 'pts', 'grid'\n // //\n // // under `meshmode: 'grid'`\n // // - (x|y|z)grid.start\n // // - (x|y|z)grid.end\n // // - (x|y|z)grid.size\n //\n // x: {\n // valType: 'data_array',\n // editType: 'calc',\n //\n // },\n // y: {\n // valType: 'data_array',\n // editType: 'calc',\n //\n // },\n // z: {\n // valType: 'data_array',\n // editType: 'calc',\n //\n // },\n //\n // editType: 'calc',\n //\n // },\n\n sizemode: {\n valType: 'enumerated',\n values: ['scaled', 'absolute'],\n editType: 'calc',\n dflt: 'scaled',\n },\n sizeref: {\n valType: 'number',\n editType: 'calc',\n min: 0,\n },\n\n anchor: {\n valType: 'enumerated',\n editType: 'calc',\n values: ['tip', 'tail', 'cm', 'center'],\n dflt: 'cm',\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n\n hovertemplate: hovertemplateAttrs({editType: 'calc'}, {keys: ['norm']}),\n uhoverformat: axisHoverFormat('u', 1),\n vhoverformat: axisHoverFormat('v', 1),\n whoverformat: axisHoverFormat('w', 1),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n};\n\nextendFlat(attrs, colorScaleAttrs('', {\n colorAttr: 'u/v/w norm',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}));\n\nvar fromMesh3d = ['opacity', 'lightposition', 'lighting'];\n\nfromMesh3d.forEach(function(k) {\n attrs[k] = mesh3dAttrs[k];\n});\n\nattrs.hoverinfo = extendFlat({}, baseAttrs.hoverinfo, {\n editType: 'calc',\n flags: ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'text', 'name'],\n dflt: 'x+y+z+norm+text+name'\n});\n\nattrs.transforms = undefined;\n\nmodule.exports = attrs;\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../mesh3d/attributes\":876}],740:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\nmodule.exports = function calc(gd, trace) {\n var u = trace.u;\n var v = trace.v;\n var w = trace.w;\n var len = Math.min(\n trace.x.length, trace.y.length, trace.z.length,\n u.length, v.length, w.length\n );\n var normMax = -Infinity;\n var normMin = Infinity;\n\n for(var i = 0; i < len; i++) {\n var uu = u[i];\n var vv = v[i];\n var ww = w[i];\n var norm = Math.sqrt(uu * uu + vv * vv + ww * ww);\n\n normMax = Math.max(normMax, norm);\n normMin = Math.min(normMin, norm);\n }\n\n trace._len = len;\n trace._normMax = normMax;\n\n colorscaleCalc(gd, trace, {\n vals: [normMin, normMax],\n containerStr: '',\n cLetter: 'c'\n });\n};\n\n},{\"../../components/colorscale/calc\":375}],741:[function(_dereq_,module,exports){\n'use strict';\n\nvar conePlot = _dereq_('../../../stackgl_modules').gl_cone3d;\nvar createConeMesh = _dereq_('../../../stackgl_modules').gl_cone3d.createConeMesh;\n\nvar simpleMap = _dereq_('../../lib').simpleMap;\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nfunction Cone(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = null;\n this.data = null;\n}\n\nvar proto = Cone.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var selectIndex = selection.index = selection.data.index;\n var xx = this.data.x[selectIndex];\n var yy = this.data.y[selectIndex];\n var zz = this.data.z[selectIndex];\n var uu = this.data.u[selectIndex];\n var vv = this.data.v[selectIndex];\n var ww = this.data.w[selectIndex];\n\n selection.traceCoordinate = [\n xx, yy, zz,\n uu, vv, ww,\n Math.sqrt(uu * uu + vv * vv + ww * ww)\n ];\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nvar axisName2scaleIndex = {xaxis: 0, yaxis: 1, zaxis: 2};\nvar anchor2coneOffset = {tip: 1, tail: 0, cm: 0.25, center: 0.5};\nvar anchor2coneSpan = {tip: 1, tail: 1, cm: 0.75, center: 0.5};\n\nfunction convert(scene, trace) {\n var sceneLayout = scene.fullSceneLayout;\n var dataScale = scene.dataScale;\n var coneOpts = {};\n\n function toDataCoords(arr, axisName) {\n var ax = sceneLayout[axisName];\n var scale = dataScale[axisName2scaleIndex[axisName]];\n return simpleMap(arr, function(v) { return ax.d2l(v) * scale; });\n }\n\n coneOpts.vectors = zip3(\n toDataCoords(trace.u, 'xaxis'),\n toDataCoords(trace.v, 'yaxis'),\n toDataCoords(trace.w, 'zaxis'),\n trace._len\n );\n\n coneOpts.positions = zip3(\n toDataCoords(trace.x, 'xaxis'),\n toDataCoords(trace.y, 'yaxis'),\n toDataCoords(trace.z, 'zaxis'),\n trace._len\n );\n\n var cOpts = extractOpts(trace);\n coneOpts.colormap = parseColorScale(trace);\n coneOpts.vertexIntensityBounds = [cOpts.min / trace._normMax, cOpts.max / trace._normMax];\n coneOpts.coneOffset = anchor2coneOffset[trace.anchor];\n\n if(trace.sizemode === 'scaled') {\n // unitless sizeref\n coneOpts.coneSize = trace.sizeref || 0.5;\n } else {\n // sizeref here has unit of velocity\n coneOpts.coneSize = trace.sizeref && trace._normMax ?\n trace.sizeref / trace._normMax :\n 0.5;\n }\n\n var meshData = conePlot(coneOpts);\n\n // pass gl-mesh3d lighting attributes\n var lp = trace.lightposition;\n meshData.lightPosition = [lp.x, lp.y, lp.z];\n meshData.ambient = trace.lighting.ambient;\n meshData.diffuse = trace.lighting.diffuse;\n meshData.specular = trace.lighting.specular;\n meshData.roughness = trace.lighting.roughness;\n meshData.fresnel = trace.lighting.fresnel;\n meshData.opacity = trace.opacity;\n\n // stash autorange pad value\n trace._pad = anchor2coneSpan[trace.anchor] * meshData.vectorScale * meshData.coneScale * trace._normMax;\n\n return meshData;\n}\n\nproto.update = function(data) {\n this.data = data;\n\n var meshData = convert(this.scene, data);\n this.mesh.update(meshData);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createConeTrace(scene, data) {\n var gl = scene.glplot.gl;\n\n var meshData = convert(scene, data);\n var mesh = createConeMesh(gl, meshData);\n\n var cone = new Cone(scene, data.uid);\n cone.mesh = mesh;\n cone.data = data;\n mesh._trace = cone;\n\n scene.glplot.add(mesh);\n\n return cone;\n}\n\nmodule.exports = createConeTrace;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/colorscale\":379,\"../../lib\":515,\"../../lib/gl_format_color\":511,\"../../plots/gl3d/zip3\":618}],742:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var u = coerce('u');\n var v = coerce('v');\n var w = coerce('w');\n\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n\n if(\n !u || !u.length || !v || !v.length || !w || !w.length ||\n !x || !x.length || !y || !y.length || !z || !z.length\n ) {\n traceOut.visible = false;\n return;\n }\n\n coerce('sizeref');\n coerce('sizemode');\n\n coerce('anchor');\n\n coerce('lighting.ambient');\n coerce('lighting.diffuse');\n coerce('lighting.specular');\n coerce('lighting.roughness');\n coerce('lighting.fresnel');\n coerce('lightposition.x');\n coerce('lightposition.y');\n coerce('lightposition.z');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('uhoverformat');\n coerce('vhoverformat');\n coerce('whoverformat');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // disable 1D transforms (for now)\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"./attributes\":739}],743:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'cone',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n calc: _dereq_('./calc'),\n plot: _dereq_('./convert'),\n eventData: function(out, pt) {\n out.norm = pt.traceCoordinate[6];\n return out;\n },\n\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":607,\"./attributes\":739,\"./calc\":740,\"./convert\":741,\"./defaults\":742}],744:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisFormat = _dereq_('../../plots/cartesian/axis_format_attributes');\nvar axisHoverFormat = axisFormat.axisHoverFormat;\nvar descriptionOnlyNumbers = axisFormat.descriptionOnlyNumbers;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar filterOps = _dereq_('../../constants/filter_ops');\nvar COMPARISON_OPS2 = filterOps.COMPARISON_OPS2;\nvar INTERVAL_OPS = filterOps.INTERVAL_OPS;\n\n\nvar scatterLineAttrs = scatterAttrs.line;\n\nmodule.exports = extendFlat({\n z: heatmapAttrs.z,\n x: heatmapAttrs.x,\n x0: heatmapAttrs.x0,\n dx: heatmapAttrs.dx,\n y: heatmapAttrs.y,\n y0: heatmapAttrs.y0,\n dy: heatmapAttrs.dy,\n\n xperiod: heatmapAttrs.xperiod,\n yperiod: heatmapAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: heatmapAttrs.xperiodalignment,\n yperiodalignment: heatmapAttrs.yperiodalignment,\n\n text: heatmapAttrs.text,\n hovertext: heatmapAttrs.hovertext,\n transpose: heatmapAttrs.transpose,\n xtype: heatmapAttrs.xtype,\n ytype: heatmapAttrs.ytype,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n hovertemplate: heatmapAttrs.hovertemplate,\n texttemplate: extendFlat({}, heatmapAttrs.texttemplate, {\n }),\n textfont: extendFlat({}, heatmapAttrs.textfont, {\n }),\n hoverongaps: heatmapAttrs.hoverongaps,\n connectgaps: extendFlat({}, heatmapAttrs.connectgaps, {\n }),\n\n fillcolor: {\n valType: 'color',\n editType: 'calc',\n },\n\n autocontour: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n impliedEdits: {\n 'contours.start': undefined,\n 'contours.end': undefined,\n 'contours.size': undefined\n },\n },\n ncontours: {\n valType: 'integer',\n dflt: 15,\n min: 1,\n editType: 'calc',\n },\n\n contours: {\n type: {\n valType: 'enumerated',\n values: ['levels', 'constraint'],\n dflt: 'levels',\n editType: 'calc',\n },\n start: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n impliedEdits: {'^autocontour': false},\n },\n end: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n impliedEdits: {'^autocontour': false},\n },\n size: {\n valType: 'number',\n dflt: null,\n min: 0,\n editType: 'plot',\n impliedEdits: {'^autocontour': false},\n },\n coloring: {\n valType: 'enumerated',\n values: ['fill', 'heatmap', 'lines', 'none'],\n dflt: 'fill',\n editType: 'calc',\n },\n showlines: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n showlabels: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n labelfont: fontAttrs({\n editType: 'plot',\n colorEditType: 'style',\n }),\n labelformat: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n description: descriptionOnlyNumbers('contour label')\n },\n operation: {\n valType: 'enumerated',\n values: [].concat(COMPARISON_OPS2).concat(INTERVAL_OPS),\n dflt: '=',\n editType: 'calc',\n },\n value: {\n valType: 'any',\n dflt: 0,\n editType: 'calc',\n },\n editType: 'calc',\n impliedEdits: {'autocontour': false}\n },\n\n line: {\n color: extendFlat({}, scatterLineAttrs.color, {\n editType: 'style+colorbars',\n }),\n width: {\n valType: 'number',\n min: 0,\n editType: 'style+colorbars',\n },\n dash: dash,\n smoothing: extendFlat({}, scatterLineAttrs.smoothing, {\n }),\n editType: 'plot'\n }\n},\n colorScaleAttrs('', {\n cLetter: 'z',\n autoColorDflt: false,\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../components/drawing/attributes\":388,\"../../constants/filter_ops\":487,\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/font_attributes\":594,\"../heatmap/attributes\":801,\"../scatter/attributes\":936}],745:[function(_dereq_,module,exports){\n'use strict';\n\nvar Colorscale = _dereq_('../../components/colorscale');\n\nvar heatmapCalc = _dereq_('../heatmap/calc');\nvar setContours = _dereq_('./set_contours');\nvar endPlus = _dereq_('./end_plus');\n\n// most is the same as heatmap calc, then adjust it\n// though a few things inside heatmap calc still look for\n// contour maps, because the makeBoundArray calls are too entangled\nmodule.exports = function calc(gd, trace) {\n var cd = heatmapCalc(gd, trace);\n\n var zOut = cd[0].z;\n setContours(trace, zOut);\n\n var contours = trace.contours;\n var cOpts = Colorscale.extractOpts(trace);\n var cVals;\n\n if(contours.coloring === 'heatmap' && cOpts.auto && trace.autocontour === false) {\n var start = contours.start;\n var end = endPlus(contours);\n var cs = contours.size || 1;\n var nc = Math.floor((end - start) / cs) + 1;\n\n if(!isFinite(cs)) {\n cs = 1;\n nc = 1;\n }\n\n var min0 = start - cs / 2;\n var max0 = min0 + nc * cs;\n cVals = [min0, max0];\n } else {\n cVals = zOut;\n }\n\n Colorscale.calc(gd, trace, {vals: cVals, cLetter: 'z'});\n\n return cd;\n};\n\n},{\"../../components/colorscale\":379,\"../heatmap/calc\":802,\"./end_plus\":755,\"./set_contours\":763}],746:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function(pathinfo, contours) {\n var pi0 = pathinfo[0];\n var z = pi0.z;\n var i;\n\n switch(contours.type) {\n case 'levels':\n // Why (just) use z[0][0] and z[0][1]?\n //\n // N.B. using boundaryMin instead of edgeVal2 here makes the\n // `contour_scatter` mock fail\n var edgeVal2 = Math.min(z[0][0], z[0][1]);\n\n for(i = 0; i < pathinfo.length; i++) {\n var pi = pathinfo[i];\n pi.prefixBoundary = !pi.edgepaths.length &&\n (edgeVal2 > pi.level || pi.starts.length && edgeVal2 === pi.level);\n }\n break;\n case 'constraint':\n // after convertToConstraints, pathinfo has length=0\n pi0.prefixBoundary = false;\n\n // joinAllPaths does enough already when edgepaths are present\n if(pi0.edgepaths.length) return;\n\n var na = pi0.x.length;\n var nb = pi0.y.length;\n var boundaryMax = -Infinity;\n var boundaryMin = Infinity;\n\n for(i = 0; i < nb; i++) {\n boundaryMin = Math.min(boundaryMin, z[i][0]);\n boundaryMin = Math.min(boundaryMin, z[i][na - 1]);\n boundaryMax = Math.max(boundaryMax, z[i][0]);\n boundaryMax = Math.max(boundaryMax, z[i][na - 1]);\n }\n for(i = 1; i < na - 1; i++) {\n boundaryMin = Math.min(boundaryMin, z[0][i]);\n boundaryMin = Math.min(boundaryMin, z[nb - 1][i]);\n boundaryMax = Math.max(boundaryMax, z[0][i]);\n boundaryMax = Math.max(boundaryMax, z[nb - 1][i]);\n }\n\n var contoursValue = contours.value;\n var v1, v2;\n\n switch(contours._operation) {\n case '>':\n if(contoursValue > boundaryMax) {\n pi0.prefixBoundary = true;\n }\n break;\n case '<':\n if(contoursValue < boundaryMin ||\n (pi0.starts.length && contoursValue === boundaryMin)) {\n pi0.prefixBoundary = true;\n }\n break;\n case '[]':\n v1 = Math.min(contoursValue[0], contoursValue[1]);\n v2 = Math.max(contoursValue[0], contoursValue[1]);\n if(v2 < boundaryMin || v1 > boundaryMax ||\n (pi0.starts.length && v2 === boundaryMin)) {\n pi0.prefixBoundary = true;\n }\n break;\n case '][':\n v1 = Math.min(contoursValue[0], contoursValue[1]);\n v2 = Math.max(contoursValue[0], contoursValue[1]);\n if(v1 < boundaryMin && v2 > boundaryMax) {\n pi0.prefixBoundary = true;\n }\n break;\n }\n break;\n }\n};\n\n},{}],747:[function(_dereq_,module,exports){\n'use strict';\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar makeColorMap = _dereq_('./make_color_map');\nvar endPlus = _dereq_('./end_plus');\n\nfunction calc(gd, trace, opts) {\n var contours = trace.contours;\n var line = trace.line;\n var cs = contours.size || 1;\n var coloring = contours.coloring;\n var colorMap = makeColorMap(trace, {isColorbar: true});\n\n if(coloring === 'heatmap') {\n var cOpts = Colorscale.extractOpts(trace);\n opts._fillgradient = cOpts.reversescale ?\n Colorscale.flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n opts._zrange = [cOpts.min, cOpts.max];\n } else if(coloring === 'fill') {\n opts._fillcolor = colorMap;\n }\n\n opts._line = {\n color: coloring === 'lines' ? colorMap : line.color,\n width: contours.showlines !== false ? line.width : 0,\n dash: line.dash\n };\n\n opts._levels = {\n start: contours.start,\n end: endPlus(contours),\n size: cs\n };\n}\n\nmodule.exports = {\n min: 'zmin',\n max: 'zmax',\n calc: calc\n};\n\n},{\"../../components/colorscale\":379,\"./end_plus\":755,\"./make_color_map\":760}],748:[function(_dereq_,module,exports){\n'use strict';\nmodule.exports = {\n // some constants to help with marching squares algorithm\n // where does the path start for each index?\n BOTTOMSTART: [1, 9, 13, 104, 713],\n TOPSTART: [4, 6, 7, 104, 713],\n LEFTSTART: [8, 12, 14, 208, 1114],\n RIGHTSTART: [2, 3, 11, 208, 1114],\n\n // which way [dx,dy] do we leave a given index?\n // saddles are already disambiguated\n NEWDELTA: [\n null, [-1, 0], [0, -1], [-1, 0],\n [1, 0], null, [0, -1], [-1, 0],\n [0, 1], [0, 1], null, [0, 1],\n [1, 0], [1, 0], [0, -1]\n ],\n\n // for each saddle, the first index here is used\n // for dx||dy<0, the second for dx||dy>0\n CHOOSESADDLE: {\n 104: [4, 1],\n 208: [2, 8],\n 713: [7, 13],\n 1114: [11, 14]\n },\n\n // after one index has been used for a saddle, which do we\n // substitute to be used up later?\n SADDLEREMAINDER: {1: 4, 2: 8, 4: 1, 7: 13, 8: 2, 11: 14, 13: 7, 14: 11},\n\n // length of a contour, as a multiple of the plot area diagonal, per label\n LABELDISTANCE: 2,\n\n // number of contour levels after which we start increasing the number of\n // labels we draw. Many contours means they will generally be close\n // together, so it will be harder to follow a long way to find a label\n LABELINCREASE: 10,\n\n // minimum length of a contour line, as a multiple of the label length,\n // at which we draw *any* labels\n LABELMIN: 3,\n\n // max number of labels to draw on a single contour path, no matter how long\n LABELMAX: 10,\n\n // constants for the label position cost function\n LABELOPTIMIZER: {\n // weight given to edge proximity\n EDGECOST: 1,\n // weight given to the angle off horizontal\n ANGLECOST: 1,\n // weight given to distance from already-placed labels\n NEIGHBORCOST: 5,\n // cost multiplier for labels on the same level\n SAMELEVELFACTOR: 10,\n // minimum distance (as a multiple of the label length)\n // for labels on the same level\n SAMELEVELDISTANCE: 5,\n // maximum cost before we won't even place the label\n MAXCOST: 100,\n // number of evenly spaced points to look at in the first\n // iteration of the search\n INITIALSEARCHPOINTS: 10,\n // number of binary search iterations after the initial wide search\n ITERATIONS: 5\n }\n};\n\n},{}],749:[function(_dereq_,module,exports){\n'use strict';\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar handleLabelDefaults = _dereq_('./label_defaults');\n\nvar Color = _dereq_('../../components/color');\nvar addOpacity = Color.addOpacity;\nvar opacity = Color.opacity;\n\nvar filterOps = _dereq_('../../constants/filter_ops');\nvar CONSTRAINT_REDUCTION = filterOps.CONSTRAINT_REDUCTION;\nvar COMPARISON_OPS2 = filterOps.COMPARISON_OPS2;\n\nmodule.exports = function handleConstraintDefaults(traceIn, traceOut, coerce, layout, defaultColor, opts) {\n var contours = traceOut.contours;\n var showLines, lineColor, fillColor;\n\n var operation = coerce('contours.operation');\n contours._operation = CONSTRAINT_REDUCTION[operation];\n\n handleConstraintValueDefaults(coerce, contours);\n\n if(operation === '=') {\n showLines = contours.showlines = true;\n } else {\n showLines = coerce('contours.showlines');\n fillColor = coerce('fillcolor', addOpacity(\n (traceIn.line || {}).color || defaultColor, 0.5\n ));\n }\n\n if(showLines) {\n var lineDfltColor = fillColor && opacity(fillColor) ?\n addOpacity(traceOut.fillcolor, 1) :\n defaultColor;\n lineColor = coerce('line.color', lineDfltColor);\n coerce('line.width', 2);\n coerce('line.dash');\n }\n\n coerce('line.smoothing');\n\n handleLabelDefaults(coerce, layout, lineColor, opts);\n};\n\nfunction handleConstraintValueDefaults(coerce, contours) {\n var zvalue;\n\n if(COMPARISON_OPS2.indexOf(contours.operation) === -1) {\n // Requires an array of two numbers:\n coerce('contours.value', [0, 1]);\n\n if(!Array.isArray(contours.value)) {\n if(isNumeric(contours.value)) {\n zvalue = parseFloat(contours.value);\n contours.value = [zvalue, zvalue + 1];\n }\n } else if(contours.value.length > 2) {\n contours.value = contours.value.slice(2);\n } else if(contours.length === 0) {\n contours.value = [0, 1];\n } else if(contours.length < 2) {\n zvalue = parseFloat(contours.value[0]);\n contours.value = [zvalue, zvalue + 1];\n } else {\n contours.value = [\n parseFloat(contours.value[0]),\n parseFloat(contours.value[1])\n ];\n }\n } else {\n // Requires a single scalar:\n coerce('contours.value', 0);\n\n if(!isNumeric(contours.value)) {\n if(Array.isArray(contours.value)) {\n contours.value = parseFloat(contours.value[0]);\n } else {\n contours.value = 0;\n }\n }\n }\n}\n\n},{\"../../components/color\":367,\"../../constants/filter_ops\":487,\"./label_defaults\":759,\"fast-isnumeric\":190}],750:[function(_dereq_,module,exports){\n'use strict';\n\nvar filterOps = _dereq_('../../constants/filter_ops');\nvar isNumeric = _dereq_('fast-isnumeric');\n\n// This syntax conforms to the existing filter transform syntax, but we don't care\n// about open vs. closed intervals for simply drawing contours constraints:\nmodule.exports = {\n '[]': makeRangeSettings('[]'),\n '][': makeRangeSettings(']['),\n '>': makeInequalitySettings('>'),\n '<': makeInequalitySettings('<'),\n '=': makeInequalitySettings('=')\n};\n\n// This does not in any way shape or form support calendars. It's adapted from\n// transforms/filter.js.\nfunction coerceValue(operation, value) {\n var hasArrayValue = Array.isArray(value);\n\n var coercedValue;\n\n function coerce(value) {\n return isNumeric(value) ? (+value) : null;\n }\n\n if(filterOps.COMPARISON_OPS2.indexOf(operation) !== -1) {\n coercedValue = hasArrayValue ? coerce(value[0]) : coerce(value);\n } else if(filterOps.INTERVAL_OPS.indexOf(operation) !== -1) {\n coercedValue = hasArrayValue ?\n [coerce(value[0]), coerce(value[1])] :\n [coerce(value), coerce(value)];\n } else if(filterOps.SET_OPS.indexOf(operation) !== -1) {\n coercedValue = hasArrayValue ? value.map(coerce) : [coerce(value)];\n }\n\n return coercedValue;\n}\n\n// Returns a parabola scaled so that the min/max is either +/- 1 and zero at the two values\n// provided. The data is mapped by this function when constructing intervals so that it's\n// very easy to construct contours as normal.\nfunction makeRangeSettings(operation) {\n return function(value) {\n value = coerceValue(operation, value);\n\n // Ensure proper ordering:\n var min = Math.min(value[0], value[1]);\n var max = Math.max(value[0], value[1]);\n\n return {\n start: min,\n end: max,\n size: max - min\n };\n };\n}\n\nfunction makeInequalitySettings(operation) {\n return function(value) {\n value = coerceValue(operation, value);\n\n return {\n start: value,\n end: Infinity,\n size: Infinity\n };\n };\n}\n\n},{\"../../constants/filter_ops\":487,\"fast-isnumeric\":190}],751:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function handleContourDefaults(traceIn, traceOut, coerce, coerce2) {\n var contourStart = coerce2('contours.start');\n var contourEnd = coerce2('contours.end');\n var missingEnd = (contourStart === false) || (contourEnd === false);\n\n // normally we only need size if autocontour is off. But contour.calc\n // pushes its calculated contour size back to the input trace, so for\n // things like restyle that can call supplyDefaults without calc\n // after the initial draw, we can just reuse the previous calculation\n var contourSize = coerce('contours.size');\n var autoContour;\n\n if(missingEnd) autoContour = traceOut.autocontour = true;\n else autoContour = coerce('autocontour', false);\n\n if(autoContour || !contourSize) coerce('ncontours');\n};\n\n},{}],752:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// The contour extraction is great, except it totally fails for constraints because we\n// need weird range loops and flipped contours instead of the usual format. This function\n// does some weird manipulation of the extracted pathinfo data such that it magically\n// draws contours correctly *as* constraints.\n//\n// ** I do not know which \"weird range loops\" the comment above is referring to.\nmodule.exports = function(pathinfo, operation) {\n var i, pi0, pi1;\n\n var op0 = function(arr) { return arr.reverse(); };\n var op1 = function(arr) { return arr; };\n\n switch(operation) {\n case '=':\n case '<':\n return pathinfo;\n case '>':\n if(pathinfo.length !== 1) {\n Lib.warn('Contour data invalid for the specified inequality operation.');\n }\n\n // In this case there should be exactly one contour levels in pathinfo.\n // We flip all of the data. This will draw the contour as closed.\n pi0 = pathinfo[0];\n\n for(i = 0; i < pi0.edgepaths.length; i++) {\n pi0.edgepaths[i] = op0(pi0.edgepaths[i]);\n }\n for(i = 0; i < pi0.paths.length; i++) {\n pi0.paths[i] = op0(pi0.paths[i]);\n }\n for(i = 0; i < pi0.starts.length; i++) {\n pi0.starts[i] = op0(pi0.starts[i]);\n }\n\n return pathinfo;\n case '][':\n var tmp = op0;\n op0 = op1;\n op1 = tmp;\n // It's a nice rule, except this definitely *is* what's intended here.\n /* eslint-disable: no-fallthrough */\n case '[]':\n /* eslint-enable: no-fallthrough */\n if(pathinfo.length !== 2) {\n Lib.warn('Contour data invalid for the specified inequality range operation.');\n }\n\n // In this case there should be exactly two contour levels in pathinfo.\n // - We concatenate the info into one pathinfo.\n // - We must also flip all of the data in the `[]` case.\n // This will draw the contours as closed.\n pi0 = copyPathinfo(pathinfo[0]);\n pi1 = copyPathinfo(pathinfo[1]);\n\n for(i = 0; i < pi0.edgepaths.length; i++) {\n pi0.edgepaths[i] = op0(pi0.edgepaths[i]);\n }\n for(i = 0; i < pi0.paths.length; i++) {\n pi0.paths[i] = op0(pi0.paths[i]);\n }\n for(i = 0; i < pi0.starts.length; i++) {\n pi0.starts[i] = op0(pi0.starts[i]);\n }\n\n while(pi1.edgepaths.length) {\n pi0.edgepaths.push(op1(pi1.edgepaths.shift()));\n }\n while(pi1.paths.length) {\n pi0.paths.push(op1(pi1.paths.shift()));\n }\n while(pi1.starts.length) {\n pi0.starts.push(op1(pi1.starts.shift()));\n }\n\n return [pi0];\n }\n};\n\nfunction copyPathinfo(pi) {\n return Lib.extendFlat({}, pi, {\n edgepaths: Lib.extendDeep([], pi.edgepaths),\n paths: Lib.extendDeep([], pi.paths),\n starts: Lib.extendDeep([], pi.starts)\n });\n}\n\n},{\"../../lib\":515}],753:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('../heatmap/xyz_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleConstraintDefaults = _dereq_('./constraint_defaults');\nvar handleContoursDefaults = _dereq_('./contours_defaults');\nvar handleStyleDefaults = _dereq_('./style_defaults');\nvar handleHeatmapLabelDefaults = _dereq_('../heatmap/label_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr);\n }\n\n var len = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('text');\n coerce('hovertext');\n coerce('hoverongaps');\n coerce('hovertemplate');\n\n var isConstraint = (coerce('contours.type') === 'constraint');\n coerce('connectgaps', Lib.isArray1D(traceOut.z));\n\n if(isConstraint) {\n handleConstraintDefaults(traceIn, traceOut, coerce, layout, defaultColor);\n } else {\n handleContoursDefaults(traceIn, traceOut, coerce, coerce2);\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n }\n\n if(\n traceOut.contours &&\n traceOut.contours.coloring === 'heatmap'\n ) {\n handleHeatmapLabelDefaults(coerce, layout);\n }\n};\n\n},{\"../../lib\":515,\"../heatmap/label_defaults\":811,\"../heatmap/xyz_defaults\":816,\"../scatter/period_defaults\":956,\"./attributes\":744,\"./constraint_defaults\":749,\"./contours_defaults\":751,\"./style_defaults\":765}],754:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar constraintMapping = _dereq_('./constraint_mapping');\nvar endPlus = _dereq_('./end_plus');\n\nmodule.exports = function emptyPathinfo(contours, plotinfo, cd0) {\n var contoursFinal = (contours.type === 'constraint') ?\n constraintMapping[contours._operation](contours.value) :\n contours;\n\n var cs = contoursFinal.size;\n var pathinfo = [];\n var end = endPlus(contoursFinal);\n\n var carpet = cd0.trace._carpetTrace;\n\n var basePathinfo = carpet ? {\n // store axes so we can convert to px\n xaxis: carpet.aaxis,\n yaxis: carpet.baxis,\n // full data arrays to use for interpolation\n x: cd0.a,\n y: cd0.b\n } : {\n xaxis: plotinfo.xaxis,\n yaxis: plotinfo.yaxis,\n x: cd0.x,\n y: cd0.y\n };\n\n for(var ci = contoursFinal.start; ci < end; ci += cs) {\n pathinfo.push(Lib.extendFlat({\n level: ci,\n // all the cells with nontrivial marching index\n crossings: {},\n // starting points on the edges of the lattice for each contour\n starts: [],\n // all unclosed paths (may have less items than starts,\n // if a path is closed by rounding)\n edgepaths: [],\n // all closed paths\n paths: [],\n z: cd0.z,\n smoothing: cd0.trace.line.smoothing\n }, basePathinfo));\n\n if(pathinfo.length > 1000) {\n Lib.warn('Too many contours, clipping at 1000', contours);\n break;\n }\n }\n return pathinfo;\n};\n\n},{\"../../lib\":515,\"./constraint_mapping\":750,\"./end_plus\":755}],755:[function(_dereq_,module,exports){\n'use strict';\n\n/*\n * tiny helper to move the end of the contours a little to prevent\n * losing the last contour to rounding errors\n */\nmodule.exports = function endPlus(contours) {\n return contours.end + contours.size / 1e6;\n};\n\n},{}],756:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('./constants');\n\nmodule.exports = function findAllPaths(pathinfo, xtol, ytol) {\n var cnt,\n startLoc,\n i,\n pi,\n j;\n\n // Default just passes these values through as they were before:\n xtol = xtol || 0.01;\n ytol = ytol || 0.01;\n\n for(i = 0; i < pathinfo.length; i++) {\n pi = pathinfo[i];\n\n for(j = 0; j < pi.starts.length; j++) {\n startLoc = pi.starts[j];\n makePath(pi, startLoc, 'edge', xtol, ytol);\n }\n\n cnt = 0;\n while(Object.keys(pi.crossings).length && cnt < 10000) {\n cnt++;\n startLoc = Object.keys(pi.crossings)[0].split(',').map(Number);\n makePath(pi, startLoc, undefined, xtol, ytol);\n }\n if(cnt === 10000) Lib.log('Infinite loop in contour?');\n }\n};\n\nfunction equalPts(pt1, pt2, xtol, ytol) {\n return Math.abs(pt1[0] - pt2[0]) < xtol &&\n Math.abs(pt1[1] - pt2[1]) < ytol;\n}\n\n// distance in index units - uses the 3rd and 4th items in points\nfunction ptDist(pt1, pt2) {\n var dx = pt1[2] - pt2[2];\n var dy = pt1[3] - pt2[3];\n return Math.sqrt(dx * dx + dy * dy);\n}\n\nfunction makePath(pi, loc, edgeflag, xtol, ytol) {\n var locStr = loc.join(',');\n var mi = pi.crossings[locStr];\n var marchStep = getStartStep(mi, edgeflag, loc);\n // start by going backward a half step and finding the crossing point\n var pts = [getInterpPx(pi, loc, [-marchStep[0], -marchStep[1]])];\n var m = pi.z.length;\n var n = pi.z[0].length;\n var startLoc = loc.slice();\n var startStep = marchStep.slice();\n var cnt;\n\n // now follow the path\n for(cnt = 0; cnt < 10000; cnt++) { // just to avoid infinite loops\n if(mi > 20) {\n mi = constants.CHOOSESADDLE[mi][(marchStep[0] || marchStep[1]) < 0 ? 0 : 1];\n pi.crossings[locStr] = constants.SADDLEREMAINDER[mi];\n } else {\n delete pi.crossings[locStr];\n }\n\n marchStep = constants.NEWDELTA[mi];\n if(!marchStep) {\n Lib.log('Found bad marching index:', mi, loc, pi.level);\n break;\n }\n\n // find the crossing a half step forward, and then take the full step\n pts.push(getInterpPx(pi, loc, marchStep));\n loc[0] += marchStep[0];\n loc[1] += marchStep[1];\n locStr = loc.join(',');\n\n // don't include the same point multiple times\n if(equalPts(pts[pts.length - 1], pts[pts.length - 2], xtol, ytol)) pts.pop();\n\n var atEdge = (marchStep[0] && (loc[0] < 0 || loc[0] > n - 2)) ||\n (marchStep[1] && (loc[1] < 0 || loc[1] > m - 2));\n\n var closedLoop = loc[0] === startLoc[0] && loc[1] === startLoc[1] &&\n marchStep[0] === startStep[0] && marchStep[1] === startStep[1];\n\n // have we completed a loop, or reached an edge?\n if((closedLoop) || (edgeflag && atEdge)) break;\n\n mi = pi.crossings[locStr];\n }\n\n if(cnt === 10000) {\n Lib.log('Infinite loop in contour?');\n }\n var closedpath = equalPts(pts[0], pts[pts.length - 1], xtol, ytol);\n var totaldist = 0;\n var distThresholdFactor = 0.2 * pi.smoothing;\n var alldists = [];\n var cropstart = 0;\n var distgroup, cnt2, cnt3, newpt, ptcnt, ptavg, thisdist,\n i, j, edgepathi, edgepathj;\n\n /*\n * Check for points that are too close together (<1/5 the average dist\n * *in grid index units* (important for log axes and nonuniform grids),\n * less if less smoothed) and just take the center (or avg of center 2).\n * This cuts down on funny behavior when a point is very close to a\n * contour level.\n */\n for(cnt = 1; cnt < pts.length; cnt++) {\n thisdist = ptDist(pts[cnt], pts[cnt - 1]);\n totaldist += thisdist;\n alldists.push(thisdist);\n }\n\n var distThreshold = totaldist / alldists.length * distThresholdFactor;\n\n function getpt(i) { return pts[i % pts.length]; }\n\n for(cnt = pts.length - 2; cnt >= cropstart; cnt--) {\n distgroup = alldists[cnt];\n if(distgroup < distThreshold) {\n cnt3 = 0;\n for(cnt2 = cnt - 1; cnt2 >= cropstart; cnt2--) {\n if(distgroup + alldists[cnt2] < distThreshold) {\n distgroup += alldists[cnt2];\n } else break;\n }\n\n // closed path with close points wrapping around the boundary?\n if(closedpath && cnt === pts.length - 2) {\n for(cnt3 = 0; cnt3 < cnt2; cnt3++) {\n if(distgroup + alldists[cnt3] < distThreshold) {\n distgroup += alldists[cnt3];\n } else break;\n }\n }\n ptcnt = cnt - cnt2 + cnt3 + 1;\n ptavg = Math.floor((cnt + cnt2 + cnt3 + 2) / 2);\n\n // either endpoint included: keep the endpoint\n if(!closedpath && cnt === pts.length - 2) newpt = pts[pts.length - 1];\n else if(!closedpath && cnt2 === -1) newpt = pts[0];\n\n // odd # of points - just take the central one\n else if(ptcnt % 2) newpt = getpt(ptavg);\n\n // even # of pts - average central two\n else {\n newpt = [(getpt(ptavg)[0] + getpt(ptavg + 1)[0]) / 2,\n (getpt(ptavg)[1] + getpt(ptavg + 1)[1]) / 2];\n }\n\n pts.splice(cnt2 + 1, cnt - cnt2 + 1, newpt);\n cnt = cnt2 + 1;\n if(cnt3) cropstart = cnt3;\n if(closedpath) {\n if(cnt === pts.length - 2) pts[cnt3] = pts[pts.length - 1];\n else if(cnt === 0) pts[pts.length - 1] = pts[0];\n }\n }\n }\n pts.splice(0, cropstart);\n\n // done with the index parts - remove them so path generation works right\n // because it depends on only having [xpx, ypx]\n for(cnt = 0; cnt < pts.length; cnt++) pts[cnt].length = 2;\n\n // don't return single-point paths (ie all points were the same\n // so they got deleted?)\n if(pts.length < 2) return;\n else if(closedpath) {\n pts.pop();\n pi.paths.push(pts);\n } else {\n if(!edgeflag) {\n Lib.log('Unclosed interior contour?',\n pi.level, startLoc.join(','), pts.join('L'));\n }\n\n // edge path - does it start where an existing edge path ends, or vice versa?\n var merged = false;\n for(i = 0; i < pi.edgepaths.length; i++) {\n edgepathi = pi.edgepaths[i];\n if(!merged && equalPts(edgepathi[0], pts[pts.length - 1], xtol, ytol)) {\n pts.pop();\n merged = true;\n\n // now does it ALSO meet the end of another (or the same) path?\n var doublemerged = false;\n for(j = 0; j < pi.edgepaths.length; j++) {\n edgepathj = pi.edgepaths[j];\n if(equalPts(edgepathj[edgepathj.length - 1], pts[0], xtol, ytol)) {\n doublemerged = true;\n pts.shift();\n pi.edgepaths.splice(i, 1);\n if(j === i) {\n // the path is now closed\n pi.paths.push(pts.concat(edgepathj));\n } else {\n if(j > i) j--;\n pi.edgepaths[j] = edgepathj.concat(pts, edgepathi);\n }\n break;\n }\n }\n if(!doublemerged) {\n pi.edgepaths[i] = pts.concat(edgepathi);\n }\n }\n }\n for(i = 0; i < pi.edgepaths.length; i++) {\n if(merged) break;\n edgepathi = pi.edgepaths[i];\n if(equalPts(edgepathi[edgepathi.length - 1], pts[0], xtol, ytol)) {\n pts.shift();\n pi.edgepaths[i] = edgepathi.concat(pts);\n merged = true;\n }\n }\n\n if(!merged) pi.edgepaths.push(pts);\n }\n}\n\n// special function to get the marching step of the\n// first point in the path (leading to loc)\nfunction getStartStep(mi, edgeflag, loc) {\n var dx = 0;\n var dy = 0;\n if(mi > 20 && edgeflag) {\n // these saddles start at +/- x\n if(mi === 208 || mi === 1114) {\n // if we're starting at the left side, we must be going right\n dx = loc[0] === 0 ? 1 : -1;\n } else {\n // if we're starting at the bottom, we must be going up\n dy = loc[1] === 0 ? 1 : -1;\n }\n } else if(constants.BOTTOMSTART.indexOf(mi) !== -1) dy = 1;\n else if(constants.LEFTSTART.indexOf(mi) !== -1) dx = 1;\n else if(constants.TOPSTART.indexOf(mi) !== -1) dy = -1;\n else dx = -1;\n return [dx, dy];\n}\n\n/*\n * Find the pixel coordinates of a particular crossing\n *\n * @param {object} pi: the pathinfo object at this level\n * @param {array} loc: the grid index [x, y] of the crossing\n * @param {array} step: the direction [dx, dy] we're moving on the grid\n *\n * @return {array} [xpx, ypx, xi, yi]: the first two are the pixel location,\n * the next two are the interpolated grid indices, which we use for\n * distance calculations to delete points that are too close together.\n * This is important when the grid is nonuniform (and most dramatically when\n * we're on log axes and include invalid (0 or negative) values.\n * It's crucial to delete these extra two before turning an array of these\n * points into a path, because those routines require length-2 points.\n */\nfunction getInterpPx(pi, loc, step) {\n var locx = loc[0] + Math.max(step[0], 0);\n var locy = loc[1] + Math.max(step[1], 0);\n var zxy = pi.z[locy][locx];\n var xa = pi.xaxis;\n var ya = pi.yaxis;\n\n // Interpolate in linear space, then convert to pixel\n if(step[1]) {\n var dx = (pi.level - zxy) / (pi.z[locy][locx + 1] - zxy);\n // Interpolate, but protect against NaN linear values for log axis (dx will equal 1 or 0)\n var dxl =\n (dx !== 1 ? (1 - dx) * xa.c2l(pi.x[locx]) : 0) +\n (dx !== 0 ? dx * xa.c2l(pi.x[locx + 1]) : 0);\n\n return [xa.c2p(xa.l2c(dxl), true),\n ya.c2p(pi.y[locy], true),\n locx + dx, locy];\n } else {\n var dy = (pi.level - zxy) / (pi.z[locy + 1][locx] - zxy);\n var dyl =\n (dy !== 1 ? (1 - dy) * ya.c2l(pi.y[locy]) : 0) +\n (dy !== 0 ? dy * ya.c2l(pi.y[locy + 1]) : 0);\n\n return [xa.c2p(pi.x[locx], true),\n ya.c2p(ya.l2c(dyl), true),\n locx, locy + dy];\n }\n}\n\n},{\"../../lib\":515,\"./constants\":748}],757:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\n\nvar heatmapHoverPoints = _dereq_('../heatmap/hover');\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n if(!opts) opts = {};\n opts.isContour = true;\n\n var hoverData = heatmapHoverPoints(pointData, xval, yval, hovermode, opts);\n\n if(hoverData) {\n hoverData.forEach(function(hoverPt) {\n var trace = hoverPt.trace;\n if(trace.contours.type === 'constraint') {\n if(trace.fillcolor && Color.opacity(trace.fillcolor)) {\n hoverPt.color = Color.addOpacity(trace.fillcolor, 1);\n } else if(trace.contours.showlines && Color.opacity(trace.line.color)) {\n hoverPt.color = Color.addOpacity(trace.line.color, 1);\n }\n }\n });\n }\n\n return hoverData;\n};\n\n},{\"../../components/color\":367,\"../heatmap/hover\":808}],758:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style'),\n colorbar: _dereq_('./colorbar'),\n hoverPoints: _dereq_('./hover'),\n\n moduleType: 'trace',\n name: 'contour',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'contour', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"./attributes\":744,\"./calc\":745,\"./colorbar\":747,\"./defaults\":753,\"./hover\":757,\"./plot\":762,\"./style\":764}],759:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleLabelDefaults(coerce, layout, lineColor, opts) {\n if(!opts) opts = {};\n var showLabels = coerce('contours.showlabels');\n if(showLabels) {\n var globalFont = layout.font;\n Lib.coerceFont(coerce, 'contours.labelfont', {\n family: globalFont.family,\n size: globalFont.size,\n color: lineColor\n });\n coerce('contours.labelformat');\n }\n\n if(opts.hasHover !== false) coerce('zhoverformat');\n};\n\n},{\"../../lib\":515}],760:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar endPlus = _dereq_('./end_plus');\n\nmodule.exports = function makeColorMap(trace) {\n var contours = trace.contours;\n var start = contours.start;\n var end = endPlus(contours);\n var cs = contours.size || 1;\n var nc = Math.floor((end - start) / cs) + 1;\n var extra = contours.coloring === 'lines' ? 0 : 1;\n var cOpts = Colorscale.extractOpts(trace);\n\n if(!isFinite(cs)) {\n cs = 1;\n nc = 1;\n }\n\n var scl = cOpts.reversescale ?\n Colorscale.flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n\n var len = scl.length;\n var domain = new Array(len);\n var range = new Array(len);\n\n var si, i;\n\n if(contours.coloring === 'heatmap') {\n var zmin0 = cOpts.min;\n var zmax0 = cOpts.max;\n\n for(i = 0; i < len; i++) {\n si = scl[i];\n domain[i] = si[0] * (zmax0 - zmin0) + zmin0;\n range[i] = si[1];\n }\n\n // do the contours extend beyond the colorscale?\n // if so, extend the colorscale with constants\n var zRange = d3.extent([\n zmin0,\n zmax0,\n contours.start,\n contours.start + cs * (nc - 1)\n ]);\n var zmin = zRange[zmin0 < zmax0 ? 0 : 1];\n var zmax = zRange[zmin0 < zmax0 ? 1 : 0];\n\n if(zmin !== zmin0) {\n domain.splice(0, 0, zmin);\n range.splice(0, 0, range[0]);\n }\n\n if(zmax !== zmax0) {\n domain.push(zmax);\n range.push(range[range.length - 1]);\n }\n } else {\n for(i = 0; i < len; i++) {\n si = scl[i];\n domain[i] = (si[0] * (nc + extra - 1) - (extra / 2)) * cs + start;\n range[i] = si[1];\n }\n }\n\n return Colorscale.makeColorScaleFunc(\n {domain: domain, range: range},\n {noNumericCheck: true}\n );\n};\n\n},{\"../../components/colorscale\":379,\"./end_plus\":755,\"@plotly/d3\":58}],761:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\n// Calculate all the marching indices, for ALL levels at once.\n// since we want to be exhaustive we'll check for contour crossings\n// at every intersection, rather than just following a path\n// TODO: shorten the inner loop to only the relevant levels\nmodule.exports = function makeCrossings(pathinfo) {\n var z = pathinfo[0].z;\n var m = z.length;\n var n = z[0].length; // we already made sure z isn't ragged in interp2d\n var twoWide = m === 2 || n === 2;\n var xi;\n var yi;\n var startIndices;\n var ystartIndices;\n var label;\n var corners;\n var mi;\n var pi;\n var i;\n\n for(yi = 0; yi < m - 1; yi++) {\n ystartIndices = [];\n if(yi === 0) ystartIndices = ystartIndices.concat(constants.BOTTOMSTART);\n if(yi === m - 2) ystartIndices = ystartIndices.concat(constants.TOPSTART);\n\n for(xi = 0; xi < n - 1; xi++) {\n startIndices = ystartIndices.slice();\n if(xi === 0) startIndices = startIndices.concat(constants.LEFTSTART);\n if(xi === n - 2) startIndices = startIndices.concat(constants.RIGHTSTART);\n\n label = xi + ',' + yi;\n corners = [[z[yi][xi], z[yi][xi + 1]],\n [z[yi + 1][xi], z[yi + 1][xi + 1]]];\n for(i = 0; i < pathinfo.length; i++) {\n pi = pathinfo[i];\n mi = getMarchingIndex(pi.level, corners);\n if(!mi) continue;\n\n pi.crossings[label] = mi;\n if(startIndices.indexOf(mi) !== -1) {\n pi.starts.push([xi, yi]);\n if(twoWide && startIndices.indexOf(mi,\n startIndices.indexOf(mi) + 1) !== -1) {\n // the same square has starts from opposite sides\n // it's not possible to have starts on opposite edges\n // of a corner, only a start and an end...\n // but if the array is only two points wide (either way)\n // you can have starts on opposite sides.\n pi.starts.push([xi, yi]);\n }\n }\n }\n }\n }\n};\n\n// modified marching squares algorithm,\n// so we disambiguate the saddle points from the start\n// and we ignore the cases with no crossings\n// the index I'm using is based on:\n// http://en.wikipedia.org/wiki/Marching_squares\n// except that the saddles bifurcate and I represent them\n// as the decimal combination of the two appropriate\n// non-saddle indices\nfunction getMarchingIndex(val, corners) {\n var mi = (corners[0][0] > val ? 0 : 1) +\n (corners[0][1] > val ? 0 : 2) +\n (corners[1][1] > val ? 0 : 4) +\n (corners[1][0] > val ? 0 : 8);\n if(mi === 5 || mi === 10) {\n var avg = (corners[0][0] + corners[0][1] +\n corners[1][0] + corners[1][1]) / 4;\n // two peaks with a big valley\n if(val > avg) return (mi === 5) ? 713 : 1114;\n // two valleys with a big ridge\n return (mi === 5) ? 104 : 208;\n }\n return (mi === 15) ? 0 : mi;\n}\n\n},{\"./constants\":748}],762:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar Colorscale = _dereq_('../../components/colorscale');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar setConvert = _dereq_('../../plots/cartesian/set_convert');\n\nvar heatmapPlot = _dereq_('../heatmap/plot');\nvar makeCrossings = _dereq_('./make_crossings');\nvar findAllPaths = _dereq_('./find_all_paths');\nvar emptyPathinfo = _dereq_('./empty_pathinfo');\nvar convertToConstraints = _dereq_('./convert_to_constraints');\nvar closeBoundaries = _dereq_('./close_boundaries');\nvar constants = _dereq_('./constants');\nvar costConstants = constants.LABELOPTIMIZER;\n\nexports.plot = function plot(gd, plotinfo, cdcontours, contourLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(contourLayer, cdcontours, 'contour').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var x = cd0.x;\n var y = cd0.y;\n var contours = trace.contours;\n var pathinfo = emptyPathinfo(contours, plotinfo, cd0);\n\n // use a heatmap to fill - draw it behind the lines\n var heatmapColoringLayer = Lib.ensureSingle(plotGroup, 'g', 'heatmapcoloring');\n var cdheatmaps = [];\n if(contours.coloring === 'heatmap') {\n cdheatmaps = [cd];\n }\n heatmapPlot(gd, plotinfo, cdheatmaps, heatmapColoringLayer);\n\n makeCrossings(pathinfo);\n findAllPaths(pathinfo);\n\n var leftedge = xa.c2p(x[0], true);\n var rightedge = xa.c2p(x[x.length - 1], true);\n var bottomedge = ya.c2p(y[0], true);\n var topedge = ya.c2p(y[y.length - 1], true);\n var perimeter = [\n [leftedge, topedge],\n [rightedge, topedge],\n [rightedge, bottomedge],\n [leftedge, bottomedge]\n ];\n\n var fillPathinfo = pathinfo;\n if(contours.type === 'constraint') {\n // N.B. this also mutates pathinfo\n fillPathinfo = convertToConstraints(pathinfo, contours._operation);\n }\n\n // draw everything\n makeBackground(plotGroup, perimeter, contours);\n makeFills(plotGroup, fillPathinfo, perimeter, contours);\n makeLinesAndLabels(plotGroup, pathinfo, gd, cd0, contours);\n clipGaps(plotGroup, plotinfo, gd, cd0, perimeter);\n });\n};\n\nfunction makeBackground(plotgroup, perimeter, contours) {\n var bggroup = Lib.ensureSingle(plotgroup, 'g', 'contourbg');\n\n var bgfill = bggroup.selectAll('path')\n .data(contours.coloring === 'fill' ? [0] : []);\n bgfill.enter().append('path');\n bgfill.exit().remove();\n bgfill\n .attr('d', 'M' + perimeter.join('L') + 'Z')\n .style('stroke', 'none');\n}\n\nfunction makeFills(plotgroup, pathinfo, perimeter, contours) {\n var hasFills = contours.coloring === 'fill' || (contours.type === 'constraint' && contours._operation !== '=');\n var boundaryPath = 'M' + perimeter.join('L') + 'Z';\n\n // fills prefixBoundary in pathinfo items\n if(hasFills) {\n closeBoundaries(pathinfo, contours);\n }\n\n var fillgroup = Lib.ensureSingle(plotgroup, 'g', 'contourfill');\n\n var fillitems = fillgroup.selectAll('path').data(hasFills ? pathinfo : []);\n fillitems.enter().append('path');\n fillitems.exit().remove();\n fillitems.each(function(pi) {\n // join all paths for this level together into a single path\n // first follow clockwise around the perimeter to close any open paths\n // if the whole perimeter is above this level, start with a path\n // enclosing the whole thing. With all that, the parity should mean\n // that we always fill everything above the contour, nothing below\n var fullpath = (pi.prefixBoundary ? boundaryPath : '') +\n joinAllPaths(pi, perimeter);\n\n if(!fullpath) {\n d3.select(this).remove();\n } else {\n d3.select(this)\n .attr('d', fullpath)\n .style('stroke', 'none');\n }\n });\n}\n\nfunction joinAllPaths(pi, perimeter) {\n var fullpath = '';\n var i = 0;\n var startsleft = pi.edgepaths.map(function(v, i) { return i; });\n var newloop = true;\n var endpt;\n var newendpt;\n var cnt;\n var nexti;\n var possiblei;\n var addpath;\n\n function istop(pt) { return Math.abs(pt[1] - perimeter[0][1]) < 0.01; }\n function isbottom(pt) { return Math.abs(pt[1] - perimeter[2][1]) < 0.01; }\n function isleft(pt) { return Math.abs(pt[0] - perimeter[0][0]) < 0.01; }\n function isright(pt) { return Math.abs(pt[0] - perimeter[2][0]) < 0.01; }\n\n while(startsleft.length) {\n addpath = Drawing.smoothopen(pi.edgepaths[i], pi.smoothing);\n fullpath += newloop ? addpath : addpath.replace(/^M/, 'L');\n startsleft.splice(startsleft.indexOf(i), 1);\n endpt = pi.edgepaths[i][pi.edgepaths[i].length - 1];\n nexti = -1;\n\n // now loop through sides, moving our endpoint until we find a new start\n for(cnt = 0; cnt < 4; cnt++) { // just to prevent infinite loops\n if(!endpt) {\n Lib.log('Missing end?', i, pi);\n break;\n }\n\n if(istop(endpt) && !isright(endpt)) newendpt = perimeter[1]; // right top\n else if(isleft(endpt)) newendpt = perimeter[0]; // left top\n else if(isbottom(endpt)) newendpt = perimeter[3]; // right bottom\n else if(isright(endpt)) newendpt = perimeter[2]; // left bottom\n\n for(possiblei = 0; possiblei < pi.edgepaths.length; possiblei++) {\n var ptNew = pi.edgepaths[possiblei][0];\n // is ptNew on the (horz. or vert.) segment from endpt to newendpt?\n if(Math.abs(endpt[0] - newendpt[0]) < 0.01) {\n if(Math.abs(endpt[0] - ptNew[0]) < 0.01 &&\n (ptNew[1] - endpt[1]) * (newendpt[1] - ptNew[1]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else if(Math.abs(endpt[1] - newendpt[1]) < 0.01) {\n if(Math.abs(endpt[1] - ptNew[1]) < 0.01 &&\n (ptNew[0] - endpt[0]) * (newendpt[0] - ptNew[0]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else {\n Lib.log('endpt to newendpt is not vert. or horz.',\n endpt, newendpt, ptNew);\n }\n }\n\n endpt = newendpt;\n\n if(nexti >= 0) break;\n fullpath += 'L' + newendpt;\n }\n\n if(nexti === pi.edgepaths.length) {\n Lib.log('unclosed perimeter path');\n break;\n }\n\n i = nexti;\n\n // if we closed back on a loop we already included,\n // close it and start a new loop\n newloop = (startsleft.indexOf(i) === -1);\n if(newloop) {\n i = startsleft[0];\n fullpath += 'Z';\n }\n }\n\n // finally add the interior paths\n for(i = 0; i < pi.paths.length; i++) {\n fullpath += Drawing.smoothclosed(pi.paths[i], pi.smoothing);\n }\n\n return fullpath;\n}\n\nfunction makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours) {\n var lineContainer = Lib.ensureSingle(plotgroup, 'g', 'contourlines');\n var showLines = contours.showlines !== false;\n var showLabels = contours.showlabels;\n var clipLinesForLabels = showLines && showLabels;\n\n // Even if we're not going to show lines, we need to create them\n // if we're showing labels, because the fill paths include the perimeter\n // so can't be used to position the labels correctly.\n // In this case we'll remove the lines after making the labels.\n var linegroup = exports.createLines(lineContainer, showLines || showLabels, pathinfo);\n\n var lineClip = exports.createLineClip(lineContainer, clipLinesForLabels, gd, cd0.trace.uid);\n\n var labelGroup = plotgroup.selectAll('g.contourlabels')\n .data(showLabels ? [0] : []);\n\n labelGroup.exit().remove();\n\n labelGroup.enter().append('g')\n .classed('contourlabels', true);\n\n if(showLabels) {\n var labelClipPathData = [];\n var labelData = [];\n\n // invalidate the getTextLocation cache in case paths changed\n Lib.clearLocationCache();\n\n var contourFormat = exports.labelFormatter(gd, cd0);\n\n var dummyText = Drawing.tester.append('text')\n .attr('data-notex', 1)\n .call(Drawing.font, contours.labelfont);\n\n var xa = pathinfo[0].xaxis;\n var ya = pathinfo[0].yaxis;\n var xLen = xa._length;\n var yLen = ya._length;\n var xRng = xa.range;\n var yRng = ya.range;\n var xMin = Lib.aggNums(Math.min, null, cd0.x);\n var xMax = Lib.aggNums(Math.max, null, cd0.x);\n var yMin = Lib.aggNums(Math.min, null, cd0.y);\n var yMax = Lib.aggNums(Math.max, null, cd0.y);\n var x0 = Math.max(xa.c2p(xMin, true), 0);\n var x1 = Math.min(xa.c2p(xMax, true), xLen);\n var y0 = Math.max(ya.c2p(yMax, true), 0);\n var y1 = Math.min(ya.c2p(yMin, true), yLen);\n\n // visible bounds of the contour trace (and the midpoints, to\n // help with cost calculations)\n var bounds = {};\n\n if(xRng[0] < xRng[1]) {\n bounds.left = x0;\n bounds.right = x1;\n } else {\n bounds.left = x1;\n bounds.right = x0;\n }\n\n if(yRng[0] < yRng[1]) {\n bounds.top = y0;\n bounds.bottom = y1;\n } else {\n bounds.top = y1;\n bounds.bottom = y0;\n }\n\n bounds.middle = (bounds.top + bounds.bottom) / 2;\n bounds.center = (bounds.left + bounds.right) / 2;\n\n labelClipPathData.push([\n [bounds.left, bounds.top],\n [bounds.right, bounds.top],\n [bounds.right, bounds.bottom],\n [bounds.left, bounds.bottom]\n ]);\n\n var plotDiagonal = Math.sqrt(xLen * xLen + yLen * yLen);\n\n // the path length to use to scale the number of labels to draw:\n var normLength = constants.LABELDISTANCE * plotDiagonal /\n Math.max(1, pathinfo.length / constants.LABELINCREASE);\n\n linegroup.each(function(d) {\n var textOpts = exports.calcTextOpts(d.level, contourFormat, dummyText, gd);\n\n d3.select(this).selectAll('path').each(function() {\n var path = this;\n var pathBounds = Lib.getVisibleSegment(path, bounds, textOpts.height / 2);\n if(!pathBounds) return;\n\n if(pathBounds.len < (textOpts.width + textOpts.height) * constants.LABELMIN) return;\n\n var maxLabels = Math.min(Math.ceil(pathBounds.len / normLength),\n constants.LABELMAX);\n\n for(var i = 0; i < maxLabels; i++) {\n var loc = exports.findBestTextLocation(path, pathBounds, textOpts,\n labelData, bounds);\n\n if(!loc) break;\n\n exports.addLabelData(loc, textOpts, labelData, labelClipPathData);\n }\n });\n });\n\n dummyText.remove();\n\n exports.drawLabels(labelGroup, labelData, gd, lineClip,\n clipLinesForLabels ? labelClipPathData : null);\n }\n\n if(showLabels && !showLines) linegroup.remove();\n}\n\nexports.createLines = function(lineContainer, makeLines, pathinfo) {\n var smoothing = pathinfo[0].smoothing;\n\n var linegroup = lineContainer.selectAll('g.contourlevel')\n .data(makeLines ? pathinfo : []);\n\n linegroup.exit().remove();\n linegroup.enter().append('g')\n .classed('contourlevel', true);\n\n if(makeLines) {\n // pedgepaths / ppaths are used by contourcarpet, for the paths transformed from a/b to x/y\n // edgepaths / paths are used by contour since it's in x/y from the start\n var opencontourlines = linegroup.selectAll('path.openline')\n .data(function(d) { return d.pedgepaths || d.edgepaths; });\n\n opencontourlines.exit().remove();\n opencontourlines.enter().append('path')\n .classed('openline', true);\n\n opencontourlines\n .attr('d', function(d) {\n return Drawing.smoothopen(d, smoothing);\n })\n .style('stroke-miterlimit', 1)\n .style('vector-effect', 'non-scaling-stroke');\n\n var closedcontourlines = linegroup.selectAll('path.closedline')\n .data(function(d) { return d.ppaths || d.paths; });\n\n closedcontourlines.exit().remove();\n closedcontourlines.enter().append('path')\n .classed('closedline', true);\n\n closedcontourlines\n .attr('d', function(d) {\n return Drawing.smoothclosed(d, smoothing);\n })\n .style('stroke-miterlimit', 1)\n .style('vector-effect', 'non-scaling-stroke');\n }\n\n return linegroup;\n};\n\nexports.createLineClip = function(lineContainer, clipLinesForLabels, gd, uid) {\n var clips = gd._fullLayout._clips;\n var clipId = clipLinesForLabels ? ('clipline' + uid) : null;\n\n var lineClip = clips.selectAll('#' + clipId)\n .data(clipLinesForLabels ? [0] : []);\n lineClip.exit().remove();\n\n lineClip.enter().append('clipPath')\n .classed('contourlineclip', true)\n .attr('id', clipId);\n\n Drawing.setClipUrl(lineContainer, clipId, gd);\n\n return lineClip;\n};\n\nexports.labelFormatter = function(gd, cd0) {\n var fullLayout = gd._fullLayout;\n var trace = cd0.trace;\n var contours = trace.contours;\n\n var formatAxis = {\n type: 'linear',\n _id: 'ycontour',\n showexponent: 'all',\n exponentformat: 'B'\n };\n\n if(contours.labelformat) {\n formatAxis.tickformat = contours.labelformat;\n setConvert(formatAxis, fullLayout);\n } else {\n var cOpts = Colorscale.extractOpts(trace);\n if(cOpts && cOpts.colorbar && cOpts.colorbar._axis) {\n formatAxis = cOpts.colorbar._axis;\n } else {\n if(contours.type === 'constraint') {\n var value = contours.value;\n if(Array.isArray(value)) {\n formatAxis.range = [value[0], value[value.length - 1]];\n } else formatAxis.range = [value, value];\n } else {\n formatAxis.range = [contours.start, contours.end];\n formatAxis.nticks = (contours.end - contours.start) / contours.size;\n }\n\n if(formatAxis.range[0] === formatAxis.range[1]) {\n formatAxis.range[1] += formatAxis.range[0] || 1;\n }\n if(!formatAxis.nticks) formatAxis.nticks = 1000;\n\n setConvert(formatAxis, fullLayout);\n Axes.prepTicks(formatAxis);\n formatAxis._tmin = null;\n formatAxis._tmax = null;\n }\n }\n\n return function(v) { return Axes.tickText(formatAxis, v).text; };\n};\n\nexports.calcTextOpts = function(level, contourFormat, dummyText, gd) {\n var text = contourFormat(level);\n dummyText.text(text)\n .call(svgTextUtils.convertToTspans, gd);\n\n var el = dummyText.node();\n var bBox = Drawing.bBox(el, true);\n\n return {\n text: text,\n width: bBox.width,\n height: bBox.height,\n fontSize: +(el.style['font-size'].replace('px', '')),\n level: level,\n dy: (bBox.top + bBox.bottom) / 2\n };\n};\n\nexports.findBestTextLocation = function(path, pathBounds, textOpts, labelData, plotBounds) {\n var textWidth = textOpts.width;\n\n var p0, dp, pMax, pMin, loc;\n if(pathBounds.isClosed) {\n dp = pathBounds.len / costConstants.INITIALSEARCHPOINTS;\n p0 = pathBounds.min + dp / 2;\n pMax = pathBounds.max;\n } else {\n dp = (pathBounds.len - textWidth) / (costConstants.INITIALSEARCHPOINTS + 1);\n p0 = pathBounds.min + dp + textWidth / 2;\n pMax = pathBounds.max - (dp + textWidth) / 2;\n }\n\n var cost = Infinity;\n for(var j = 0; j < costConstants.ITERATIONS; j++) {\n for(var p = p0; p < pMax; p += dp) {\n var newLocation = Lib.getTextLocation(path, pathBounds.total, p, textWidth);\n var newCost = locationCost(newLocation, textOpts, labelData, plotBounds);\n if(newCost < cost) {\n cost = newCost;\n loc = newLocation;\n pMin = p;\n }\n }\n if(cost > costConstants.MAXCOST * 2) break;\n\n // subsequent iterations just look half steps away from the\n // best we found in the previous iteration\n if(j) dp /= 2;\n p0 = pMin - dp / 2;\n pMax = p0 + dp * 1.5;\n }\n if(cost <= costConstants.MAXCOST) return loc;\n};\n\n/*\n * locationCost: a cost function for label locations\n * composed of three kinds of penalty:\n * - for open paths, being close to the end of the path\n * - the angle away from horizontal\n * - being too close to already placed neighbors\n */\nfunction locationCost(loc, textOpts, labelData, bounds) {\n var halfWidth = textOpts.width / 2;\n var halfHeight = textOpts.height / 2;\n var x = loc.x;\n var y = loc.y;\n var theta = loc.theta;\n var dx = Math.cos(theta) * halfWidth;\n var dy = Math.sin(theta) * halfWidth;\n\n // cost for being near an edge\n var normX = ((x > bounds.center) ? (bounds.right - x) : (x - bounds.left)) /\n (dx + Math.abs(Math.sin(theta) * halfHeight));\n var normY = ((y > bounds.middle) ? (bounds.bottom - y) : (y - bounds.top)) /\n (Math.abs(dy) + Math.cos(theta) * halfHeight);\n if(normX < 1 || normY < 1) return Infinity;\n var cost = costConstants.EDGECOST * (1 / (normX - 1) + 1 / (normY - 1));\n\n // cost for not being horizontal\n cost += costConstants.ANGLECOST * theta * theta;\n\n // cost for being close to other labels\n var x1 = x - dx;\n var y1 = y - dy;\n var x2 = x + dx;\n var y2 = y + dy;\n for(var i = 0; i < labelData.length; i++) {\n var labeli = labelData[i];\n var dxd = Math.cos(labeli.theta) * labeli.width / 2;\n var dyd = Math.sin(labeli.theta) * labeli.width / 2;\n var dist = Lib.segmentDistance(\n x1, y1,\n x2, y2,\n labeli.x - dxd, labeli.y - dyd,\n labeli.x + dxd, labeli.y + dyd\n ) * 2 / (textOpts.height + labeli.height);\n\n var sameLevel = labeli.level === textOpts.level;\n var distOffset = sameLevel ? costConstants.SAMELEVELDISTANCE : 1;\n\n if(dist <= distOffset) return Infinity;\n\n var distFactor = costConstants.NEIGHBORCOST *\n (sameLevel ? costConstants.SAMELEVELFACTOR : 1);\n\n cost += distFactor / (dist - distOffset);\n }\n\n return cost;\n}\n\nexports.addLabelData = function(loc, textOpts, labelData, labelClipPathData) {\n var fontSize = textOpts.fontSize;\n var w = textOpts.width + fontSize / 3;\n var h = Math.max(0, textOpts.height - fontSize / 3);\n\n var x = loc.x;\n var y = loc.y;\n var theta = loc.theta;\n\n var sin = Math.sin(theta);\n var cos = Math.cos(theta);\n\n var rotateXY = function(dx, dy) {\n return [\n x + dx * cos - dy * sin,\n y + dx * sin + dy * cos\n ];\n };\n\n var bBoxPts = [\n rotateXY(-w / 2, -h / 2),\n rotateXY(-w / 2, h / 2),\n rotateXY(w / 2, h / 2),\n rotateXY(w / 2, -h / 2)\n ];\n\n labelData.push({\n text: textOpts.text,\n x: x,\n y: y,\n dy: textOpts.dy,\n theta: theta,\n level: textOpts.level,\n width: w,\n height: h\n });\n\n labelClipPathData.push(bBoxPts);\n};\n\nexports.drawLabels = function(labelGroup, labelData, gd, lineClip, labelClipPathData) {\n var labels = labelGroup.selectAll('text')\n .data(labelData, function(d) {\n return d.text + ',' + d.x + ',' + d.y + ',' + d.theta;\n });\n\n labels.exit().remove();\n\n labels.enter().append('text')\n .attr({\n 'data-notex': 1,\n 'text-anchor': 'middle'\n })\n .each(function(d) {\n var x = d.x + Math.sin(d.theta) * d.dy;\n var y = d.y - Math.cos(d.theta) * d.dy;\n d3.select(this)\n .text(d.text)\n .attr({\n x: x,\n y: y,\n transform: 'rotate(' + (180 * d.theta / Math.PI) + ' ' + x + ' ' + y + ')'\n })\n .call(svgTextUtils.convertToTspans, gd);\n });\n\n if(labelClipPathData) {\n var clipPath = '';\n for(var i = 0; i < labelClipPathData.length; i++) {\n clipPath += 'M' + labelClipPathData[i].join('L') + 'Z';\n }\n\n var lineClipPath = Lib.ensureSingle(lineClip, 'path', '');\n lineClipPath.attr('d', clipPath);\n }\n};\n\nfunction clipGaps(plotGroup, plotinfo, gd, cd0, perimeter) {\n var trace = cd0.trace;\n var clips = gd._fullLayout._clips;\n var clipId = 'clip' + trace.uid;\n\n var clipPath = clips.selectAll('#' + clipId)\n .data(trace.connectgaps ? [] : [0]);\n clipPath.enter().append('clipPath')\n .classed('contourclip', true)\n .attr('id', clipId);\n clipPath.exit().remove();\n\n if(trace.connectgaps === false) {\n var clipPathInfo = {\n // fraction of the way from missing to present point\n // to draw the boundary.\n // if you make this 1 (or 1-epsilon) then a point in\n // a sea of missing data will disappear entirely.\n level: 0.9,\n crossings: {},\n starts: [],\n edgepaths: [],\n paths: [],\n xaxis: plotinfo.xaxis,\n yaxis: plotinfo.yaxis,\n x: cd0.x,\n y: cd0.y,\n // 0 = no data, 1 = data\n z: makeClipMask(cd0),\n smoothing: 0\n };\n\n makeCrossings([clipPathInfo]);\n findAllPaths([clipPathInfo]);\n closeBoundaries([clipPathInfo], {type: 'levels'});\n\n var path = Lib.ensureSingle(clipPath, 'path', '');\n path.attr('d',\n (clipPathInfo.prefixBoundary ? 'M' + perimeter.join('L') + 'Z' : '') +\n joinAllPaths(clipPathInfo, perimeter)\n );\n } else clipId = null;\n\n Drawing.setClipUrl(plotGroup, clipId, gd);\n}\n\nfunction makeClipMask(cd0) {\n var empties = cd0.trace._emptypoints;\n var z = [];\n var m = cd0.z.length;\n var n = cd0.z[0].length;\n var i;\n var row = [];\n var emptyPoint;\n\n for(i = 0; i < n; i++) row.push(1);\n for(i = 0; i < m; i++) z.push(row.slice());\n for(i = 0; i < empties.length; i++) {\n emptyPoint = empties[i];\n z[emptyPoint[0]][emptyPoint[1]] = 0;\n }\n // save this mask to determine whether to show this data in hover\n cd0.zmask = z;\n return z;\n}\n\n},{\"../../components/colorscale\":379,\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/set_convert\":585,\"../heatmap/plot\":813,\"./close_boundaries\":746,\"./constants\":748,\"./convert_to_constraints\":752,\"./empty_pathinfo\":754,\"./find_all_paths\":756,\"./make_crossings\":761,\"@plotly/d3\":58}],763:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function setContours(trace, vals) {\n var contours = trace.contours;\n\n // check if we need to auto-choose contour levels\n if(trace.autocontour) {\n // N.B. do not try to use coloraxis cmin/cmax,\n // these values here are meant to remain \"per-trace\" for now\n var zmin = trace.zmin;\n var zmax = trace.zmax;\n if(trace.zauto || zmin === undefined) {\n zmin = Lib.aggNums(Math.min, null, vals);\n }\n if(trace.zauto || zmax === undefined) {\n zmax = Lib.aggNums(Math.max, null, vals);\n }\n\n var dummyAx = autoContours(zmin, zmax, trace.ncontours);\n contours.size = dummyAx.dtick;\n contours.start = Axes.tickFirst(dummyAx);\n dummyAx.range.reverse();\n contours.end = Axes.tickFirst(dummyAx);\n\n if(contours.start === zmin) contours.start += contours.size;\n if(contours.end === zmax) contours.end -= contours.size;\n\n // if you set a small ncontours, *and* the ends are exactly on zmin/zmax\n // there's an edge case where start > end now. Make sure there's at least\n // one meaningful contour, put it midway between the crossed values\n if(contours.start > contours.end) {\n contours.start = contours.end = (contours.start + contours.end) / 2;\n }\n\n // copy auto-contour info back to the source data.\n // previously we copied the whole contours object back, but that had\n // other info (coloring, showlines) that should be left to supplyDefaults\n if(!trace._input.contours) trace._input.contours = {};\n Lib.extendFlat(trace._input.contours, {\n start: contours.start,\n end: contours.end,\n size: contours.size\n });\n trace._input.autocontour = true;\n } else if(contours.type !== 'constraint') {\n // sanity checks on manually-supplied start/end/size\n var start = contours.start;\n var end = contours.end;\n var inputContours = trace._input.contours;\n\n if(start > end) {\n contours.start = inputContours.start = end;\n end = contours.end = inputContours.end = start;\n start = contours.start;\n }\n\n if(!(contours.size > 0)) {\n var sizeOut;\n if(start === end) sizeOut = 1;\n else sizeOut = autoContours(start, end, trace.ncontours).dtick;\n\n inputContours.size = contours.size = sizeOut;\n }\n }\n};\n\n\n/*\n * autoContours: make a dummy axis object with dtick we can use\n * as contours.size, and if needed we can use Axes.tickFirst\n * with this axis object to calculate the start and end too\n *\n * start: the value to start the contours at\n * end: the value to end at (must be > start)\n * ncontours: max number of contours to make, like roughDTick\n *\n * returns: an axis object\n */\nfunction autoContours(start, end, ncontours) {\n var dummyAx = {\n type: 'linear',\n range: [start, end]\n };\n\n Axes.autoTicks(\n dummyAx,\n (end - start) / (ncontours || 15)\n );\n\n return dummyAx;\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566}],764:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar heatmapStyle = _dereq_('../heatmap/style');\n\nvar makeColorMap = _dereq_('./make_color_map');\n\n\nmodule.exports = function style(gd) {\n var contours = d3.select(gd).selectAll('g.contour');\n\n contours.style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n\n contours.each(function(d) {\n var c = d3.select(this);\n var trace = d[0].trace;\n var contours = trace.contours;\n var line = trace.line;\n var cs = contours.size || 1;\n var start = contours.start;\n\n // for contourcarpet only - is this a constraint-type contour trace?\n var isConstraintType = contours.type === 'constraint';\n var colorLines = !isConstraintType && contours.coloring === 'lines';\n var colorFills = !isConstraintType && contours.coloring === 'fill';\n\n var colorMap = (colorLines || colorFills) ? makeColorMap(trace) : null;\n\n c.selectAll('g.contourlevel').each(function(d) {\n d3.select(this).selectAll('path')\n .call(Drawing.lineGroupStyle,\n line.width,\n colorLines ? colorMap(d.level) : line.color,\n line.dash);\n });\n\n var labelFont = contours.labelfont;\n c.selectAll('g.contourlabels text').each(function(d) {\n Drawing.font(d3.select(this), {\n family: labelFont.family,\n size: labelFont.size,\n color: labelFont.color || (colorLines ? colorMap(d.level) : line.color)\n });\n });\n\n if(isConstraintType) {\n c.selectAll('g.contourfill path')\n .style('fill', trace.fillcolor);\n } else if(colorFills) {\n var firstFill;\n\n c.selectAll('g.contourfill path')\n .style('fill', function(d) {\n if(firstFill === undefined) firstFill = d.level;\n return colorMap(d.level + 0.5 * cs);\n });\n\n if(firstFill === undefined) firstFill = start;\n\n c.selectAll('g.contourbg path')\n .style('fill', colorMap(firstFill - 0.5 * cs));\n }\n });\n\n heatmapStyle(gd);\n};\n\n},{\"../../components/drawing\":389,\"../heatmap/style\":814,\"./make_color_map\":760,\"@plotly/d3\":58}],765:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleLabelDefaults = _dereq_('./label_defaults');\n\n\nmodule.exports = function handleStyleDefaults(traceIn, traceOut, coerce, layout, opts) {\n var coloring = coerce('contours.coloring');\n\n var showLines;\n var lineColor = '';\n if(coloring === 'fill') showLines = coerce('contours.showlines');\n\n if(showLines !== false) {\n if(coloring !== 'lines') lineColor = coerce('line.color', '#000');\n coerce('line.width', 0.5);\n coerce('line.dash');\n }\n\n if(coloring !== 'none') {\n // plots/plots always coerces showlegend to true, but in this case\n // we default to false and (by default) show a colorbar instead\n if(traceIn.showlegend !== true) traceOut.showlegend = false;\n traceOut._dfltShowLegend = false;\n\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'}\n );\n }\n\n coerce('line.smoothing');\n\n handleLabelDefaults(coerce, layout, lineColor, opts);\n};\n\n},{\"../../components/colorscale/defaults\":377,\"./label_defaults\":759}],766:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar contourAttrs = _dereq_('../contour/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar contourContourAttrs = contourAttrs.contours;\n\nmodule.exports = extendFlat({\n carpet: {\n valType: 'string',\n editType: 'calc',\n },\n z: heatmapAttrs.z,\n a: heatmapAttrs.x,\n a0: heatmapAttrs.x0,\n da: heatmapAttrs.dx,\n b: heatmapAttrs.y,\n b0: heatmapAttrs.y0,\n db: heatmapAttrs.dy,\n text: heatmapAttrs.text,\n hovertext: heatmapAttrs.hovertext,\n transpose: heatmapAttrs.transpose,\n atype: heatmapAttrs.xtype,\n btype: heatmapAttrs.ytype,\n\n fillcolor: contourAttrs.fillcolor,\n\n autocontour: contourAttrs.autocontour,\n ncontours: contourAttrs.ncontours,\n\n contours: {\n type: contourContourAttrs.type,\n start: contourContourAttrs.start,\n end: contourContourAttrs.end,\n size: contourContourAttrs.size,\n coloring: {\n // from contourAttrs.contours.coloring but no 'heatmap' option\n valType: 'enumerated',\n values: ['fill', 'lines', 'none'],\n dflt: 'fill',\n editType: 'calc',\n },\n showlines: contourContourAttrs.showlines,\n showlabels: contourContourAttrs.showlabels,\n labelfont: contourContourAttrs.labelfont,\n labelformat: contourContourAttrs.labelformat,\n operation: contourContourAttrs.operation,\n value: contourContourAttrs.value,\n editType: 'calc',\n impliedEdits: {'autocontour': false}\n },\n\n line: {\n color: contourAttrs.line.color,\n width: contourAttrs.line.width,\n dash: contourAttrs.line.dash,\n smoothing: contourAttrs.line.smoothing,\n editType: 'plot'\n },\n\n transforms: undefined\n},\n\n colorScaleAttrs('', {\n cLetter: 'z',\n autoColorDflt: false\n })\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../contour/attributes\":744,\"../heatmap/attributes\":801}],767:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar Lib = _dereq_('../../lib');\n\nvar convertColumnData = _dereq_('../heatmap/convert_column_xyz');\nvar clean2dArray = _dereq_('../heatmap/clean_2d_array');\nvar interp2d = _dereq_('../heatmap/interp2d');\nvar findEmpties = _dereq_('../heatmap/find_empties');\nvar makeBoundArray = _dereq_('../heatmap/make_bound_array');\nvar supplyDefaults = _dereq_('./defaults');\nvar lookupCarpet = _dereq_('../carpet/lookup_carpetid');\nvar setContours = _dereq_('../contour/set_contours');\n\n// most is the same as heatmap calc, then adjust it\n// though a few things inside heatmap calc still look for\n// contour maps, because the makeBoundArray calls are too entangled\nmodule.exports = function calc(gd, trace) {\n var carpet = trace._carpetTrace = lookupCarpet(gd, trace);\n if(!carpet || !carpet.visible || carpet.visible === 'legendonly') return;\n\n if(!trace.a || !trace.b) {\n // Look up the original incoming carpet data:\n var carpetdata = gd.data[carpet.index];\n\n // Look up the incoming trace data, *except* perform a shallow\n // copy so that we're not actually modifying it when we use it\n // to supply defaults:\n var tracedata = gd.data[trace.index];\n // var tracedata = extendFlat({}, gd.data[trace.index]);\n\n // If the data is not specified\n if(!tracedata.a) tracedata.a = carpetdata.a;\n if(!tracedata.b) tracedata.b = carpetdata.b;\n\n supplyDefaults(tracedata, trace, trace._defaultColor, gd._fullLayout);\n }\n\n var cd = heatmappishCalc(gd, trace);\n setContours(trace, trace._z);\n\n return cd;\n};\n\nfunction heatmappishCalc(gd, trace) {\n // prepare the raw data\n // run makeCalcdata on x and y even for heatmaps, in case of category mappings\n var carpet = trace._carpetTrace;\n var aax = carpet.aaxis;\n var bax = carpet.baxis;\n var a,\n a0,\n da,\n b,\n b0,\n db,\n z;\n\n // cancel minimum tick spacings (only applies to bars and boxes)\n aax._minDtick = 0;\n bax._minDtick = 0;\n\n if(Lib.isArray1D(trace.z)) convertColumnData(trace, aax, bax, 'a', 'b', ['z']);\n a = trace._a = trace._a || trace.a;\n b = trace._b = trace._b || trace.b;\n\n a = a ? aax.makeCalcdata(trace, '_a') : [];\n b = b ? bax.makeCalcdata(trace, '_b') : [];\n a0 = trace.a0 || 0;\n da = trace.da || 1;\n b0 = trace.b0 || 0;\n db = trace.db || 1;\n\n z = trace._z = clean2dArray(trace._z || trace.z, trace.transpose);\n\n trace._emptypoints = findEmpties(z);\n interp2d(z, trace._emptypoints);\n\n // create arrays of brick boundaries, to be used by autorange and heatmap.plot\n var xlen = Lib.maxRowLength(z);\n var xIn = trace.xtype === 'scaled' ? '' : a;\n var xArray = makeBoundArray(trace, xIn, a0, da, xlen, aax);\n var yIn = trace.ytype === 'scaled' ? '' : b;\n var yArray = makeBoundArray(trace, yIn, b0, db, z.length, bax);\n\n var cd0 = {\n a: xArray,\n b: yArray,\n z: z,\n };\n\n if(trace.contours.type === 'levels' && trace.contours.coloring !== 'none') {\n // auto-z and autocolorscale if applicable\n colorscaleCalc(gd, trace, {\n vals: z,\n containerStr: '',\n cLetter: 'z'\n });\n }\n\n return [cd0];\n}\n\n},{\"../../components/colorscale/calc\":375,\"../../lib\":515,\"../carpet/lookup_carpetid\":717,\"../contour/set_contours\":763,\"../heatmap/clean_2d_array\":803,\"../heatmap/convert_column_xyz\":805,\"../heatmap/find_empties\":807,\"../heatmap/interp2d\":810,\"../heatmap/make_bound_array\":812,\"./defaults\":768}],768:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('../heatmap/xyz_defaults');\nvar attributes = _dereq_('./attributes');\nvar handleConstraintDefaults = _dereq_('../contour/constraint_defaults');\nvar handleContoursDefaults = _dereq_('../contour/contours_defaults');\nvar handleStyleDefaults = _dereq_('../contour/style_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr);\n }\n\n coerce('carpet');\n\n // If either a or b is not present, then it's not a valid trace *unless* the carpet\n // axis has the a or b values we're looking for. So if these are not found, just defer\n // that decision until the calc step.\n //\n // NB: the calc step will modify the original data input by assigning whichever of\n // a or b are missing. This is necessary because panning goes right from supplyDefaults\n // to plot (skipping calc). That means on subsequent updates, this *will* need to be\n // able to find a and b.\n //\n // The long-term proper fix is that this should perhaps use underscored attributes to\n // at least modify the user input to a slightly lesser extent. Fully removing the\n // input mutation is challenging. The underscore approach is not currently taken since\n // it requires modification to all of the functions below that expect the coerced\n // attribute name to match the property name -- except '_a' !== 'a' so that is not\n // straightforward.\n if(traceIn.a && traceIn.b) {\n var len = handleXYZDefaults(traceIn, traceOut, coerce, layout, 'a', 'b');\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n var isConstraint = (coerce('contours.type') === 'constraint');\n\n if(isConstraint) {\n handleConstraintDefaults(traceIn, traceOut, coerce, layout, defaultColor, {hasHover: false});\n } else {\n handleContoursDefaults(traceIn, traceOut, coerce, coerce2);\n handleStyleDefaults(traceIn, traceOut, coerce, layout, {hasHover: false});\n }\n } else {\n traceOut._defaultColor = defaultColor;\n traceOut._length = null;\n }\n};\n\n},{\"../../lib\":515,\"../contour/constraint_defaults\":749,\"../contour/contours_defaults\":751,\"../contour/style_defaults\":765,\"../heatmap/xyz_defaults\":816,\"./attributes\":766}],769:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../contour/colorbar'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../contour/style'),\n\n moduleType: 'trace',\n name: 'contourcarpet',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'carpet', 'contour', 'symbols', 'showLegend', 'hasLines', 'carpetDependent', 'noHover', 'noSortingByValue'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../contour/colorbar\":747,\"../contour/style\":764,\"./attributes\":766,\"./calc\":767,\"./defaults\":768,\"./plot\":770}],770:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar map1dArray = _dereq_('../carpet/map_1d_array');\nvar makepath = _dereq_('../carpet/makepath');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\n\nvar makeCrossings = _dereq_('../contour/make_crossings');\nvar findAllPaths = _dereq_('../contour/find_all_paths');\nvar contourPlot = _dereq_('../contour/plot');\nvar constants = _dereq_('../contour/constants');\nvar convertToConstraints = _dereq_('../contour/convert_to_constraints');\nvar emptyPathinfo = _dereq_('../contour/empty_pathinfo');\nvar closeBoundaries = _dereq_('../contour/close_boundaries');\nvar lookupCarpet = _dereq_('../carpet/lookup_carpetid');\nvar axisAlignedLine = _dereq_('../carpet/axis_aligned_line');\n\nmodule.exports = function plot(gd, plotinfo, cdcontours, contourcarpetLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(contourcarpetLayer, cdcontours, 'contour').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var carpet = trace._carpetTrace = lookupCarpet(gd, trace);\n var carpetcd = gd.calcdata[carpet.index][0];\n\n if(!carpet.visible || carpet.visible === 'legendonly') return;\n\n var a = cd0.a;\n var b = cd0.b;\n var contours = trace.contours;\n var pathinfo = emptyPathinfo(contours, plotinfo, cd0);\n var isConstraint = contours.type === 'constraint';\n var operation = contours._operation;\n var coloring = isConstraint ? (operation === '=' ? 'lines' : 'fill') : contours.coloring;\n\n // Map [a, b] (data) --> [i, j] (pixels)\n function ab2p(ab) {\n var pt = carpet.ab2xy(ab[0], ab[1], true);\n return [xa.c2p(pt[0]), ya.c2p(pt[1])];\n }\n\n // Define the perimeter in a/b coordinates:\n var perimeter = [\n [a[0], b[b.length - 1]],\n [a[a.length - 1], b[b.length - 1]],\n [a[a.length - 1], b[0]],\n [a[0], b[0]]\n ];\n\n // Extract the contour levels:\n makeCrossings(pathinfo);\n var atol = (a[a.length - 1] - a[0]) * 1e-8;\n var btol = (b[b.length - 1] - b[0]) * 1e-8;\n findAllPaths(pathinfo, atol, btol);\n\n // Constraints might need to be draw inverted, which is not something contours\n // handle by default since they're assumed fully opaque so that they can be\n // drawn overlapping. This function flips the paths as necessary so that they're\n // drawn correctly.\n //\n // TODO: Perhaps this should be generalized and *all* paths should be drawn as\n // closed regions so that translucent contour levels would be valid.\n // See: https://github.com/plotly/plotly.js/issues/1356\n var fillPathinfo = pathinfo;\n if(contours.type === 'constraint') {\n fillPathinfo = convertToConstraints(pathinfo, operation);\n }\n\n // Map the paths in a/b coordinates to pixel coordinates:\n mapPathinfo(pathinfo, ab2p);\n\n // draw everything\n\n // Compute the boundary path\n var seg, xp, yp, i;\n var segs = [];\n for(i = carpetcd.clipsegments.length - 1; i >= 0; i--) {\n seg = carpetcd.clipsegments[i];\n xp = map1dArray([], seg.x, xa.c2p);\n yp = map1dArray([], seg.y, ya.c2p);\n xp.reverse();\n yp.reverse();\n segs.push(makepath(xp, yp, seg.bicubic));\n }\n\n var boundaryPath = 'M' + segs.join('L') + 'Z';\n\n // Draw the baseline background fill that fills in the space behind any other\n // contour levels:\n makeBackground(plotGroup, carpetcd.clipsegments, xa, ya, isConstraint, coloring);\n\n // Draw the specific contour fills. As a simplification, they're assumed to be\n // fully opaque so that it's easy to draw them simply overlapping. The alternative\n // would be to flip adjacent paths and draw closed paths for each level instead.\n makeFills(trace, plotGroup, xa, ya, fillPathinfo, perimeter, ab2p, carpet, carpetcd, coloring, boundaryPath);\n\n // Draw contour lines:\n makeLinesAndLabels(plotGroup, pathinfo, gd, cd0, contours, plotinfo, carpet);\n\n // Clip the boundary of the plot\n Drawing.setClipUrl(plotGroup, carpet._clipPathId, gd);\n });\n};\n\nfunction mapPathinfo(pathinfo, map) {\n var i, j, k, pi, pedgepaths, ppaths, pedgepath, ppath, path;\n\n for(i = 0; i < pathinfo.length; i++) {\n pi = pathinfo[i];\n pedgepaths = pi.pedgepaths = [];\n ppaths = pi.ppaths = [];\n for(j = 0; j < pi.edgepaths.length; j++) {\n path = pi.edgepaths[j];\n pedgepath = [];\n for(k = 0; k < path.length; k++) {\n pedgepath[k] = map(path[k]);\n }\n pedgepaths.push(pedgepath);\n }\n for(j = 0; j < pi.paths.length; j++) {\n path = pi.paths[j];\n ppath = [];\n for(k = 0; k < path.length; k++) {\n ppath[k] = map(path[k]);\n }\n ppaths.push(ppath);\n }\n }\n}\n\nfunction makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours, plotinfo, carpet) {\n var lineContainer = Lib.ensureSingle(plotgroup, 'g', 'contourlines');\n var showLines = contours.showlines !== false;\n var showLabels = contours.showlabels;\n var clipLinesForLabels = showLines && showLabels;\n\n // Even if we're not going to show lines, we need to create them\n // if we're showing labels, because the fill paths include the perimeter\n // so can't be used to position the labels correctly.\n // In this case we'll remove the lines after making the labels.\n var linegroup = contourPlot.createLines(lineContainer, showLines || showLabels, pathinfo);\n\n var lineClip = contourPlot.createLineClip(lineContainer, clipLinesForLabels, gd, cd0.trace.uid);\n\n var labelGroup = plotgroup.selectAll('g.contourlabels')\n .data(showLabels ? [0] : []);\n\n labelGroup.exit().remove();\n\n labelGroup.enter().append('g')\n .classed('contourlabels', true);\n\n if(showLabels) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xLen = xa._length;\n var yLen = ya._length;\n // for simplicity use the xy box for label clipping outline.\n var labelClipPathData = [[\n [0, 0],\n [xLen, 0],\n [xLen, yLen],\n [0, yLen]\n ]];\n\n\n var labelData = [];\n\n // invalidate the getTextLocation cache in case paths changed\n Lib.clearLocationCache();\n\n var contourFormat = contourPlot.labelFormatter(gd, cd0);\n\n var dummyText = Drawing.tester.append('text')\n .attr('data-notex', 1)\n .call(Drawing.font, contours.labelfont);\n\n // use `bounds` only to keep labels away from the x/y boundaries\n // `constrainToCarpet` below ensures labels don't go off the\n // carpet edges\n var bounds = {\n left: 0,\n right: xLen,\n center: xLen / 2,\n top: 0,\n bottom: yLen,\n middle: yLen / 2\n };\n\n var plotDiagonal = Math.sqrt(xLen * xLen + yLen * yLen);\n\n // the path length to use to scale the number of labels to draw:\n var normLength = constants.LABELDISTANCE * plotDiagonal /\n Math.max(1, pathinfo.length / constants.LABELINCREASE);\n\n linegroup.each(function(d) {\n var textOpts = contourPlot.calcTextOpts(d.level, contourFormat, dummyText, gd);\n\n d3.select(this).selectAll('path').each(function(pathData) {\n var path = this;\n var pathBounds = Lib.getVisibleSegment(path, bounds, textOpts.height / 2);\n if(!pathBounds) return;\n\n constrainToCarpet(path, pathData, d, pathBounds, carpet, textOpts.height);\n\n if(pathBounds.len < (textOpts.width + textOpts.height) * constants.LABELMIN) return;\n\n var maxLabels = Math.min(Math.ceil(pathBounds.len / normLength),\n constants.LABELMAX);\n\n for(var i = 0; i < maxLabels; i++) {\n var loc = contourPlot.findBestTextLocation(path, pathBounds, textOpts,\n labelData, bounds);\n\n if(!loc) break;\n\n contourPlot.addLabelData(loc, textOpts, labelData, labelClipPathData);\n }\n });\n });\n\n dummyText.remove();\n\n contourPlot.drawLabels(labelGroup, labelData, gd, lineClip,\n clipLinesForLabels ? labelClipPathData : null);\n }\n\n if(showLabels && !showLines) linegroup.remove();\n}\n\n// figure out if this path goes off the edge of the carpet\n// and shorten the part we call visible to keep labels away from the edge\nfunction constrainToCarpet(path, pathData, levelData, pathBounds, carpet, textHeight) {\n var pathABData;\n for(var i = 0; i < levelData.pedgepaths.length; i++) {\n if(pathData === levelData.pedgepaths[i]) {\n pathABData = levelData.edgepaths[i];\n }\n }\n if(!pathABData) return;\n\n var aMin = carpet.a[0];\n var aMax = carpet.a[carpet.a.length - 1];\n var bMin = carpet.b[0];\n var bMax = carpet.b[carpet.b.length - 1];\n\n function getOffset(abPt, pathVector) {\n var offset = 0;\n var edgeVector;\n var dAB = 0.1;\n if(Math.abs(abPt[0] - aMin) < dAB || Math.abs(abPt[0] - aMax) < dAB) {\n edgeVector = normalizeVector(carpet.dxydb_rough(abPt[0], abPt[1], dAB));\n offset = Math.max(offset, textHeight * vectorTan(pathVector, edgeVector) / 2);\n }\n\n if(Math.abs(abPt[1] - bMin) < dAB || Math.abs(abPt[1] - bMax) < dAB) {\n edgeVector = normalizeVector(carpet.dxyda_rough(abPt[0], abPt[1], dAB));\n offset = Math.max(offset, textHeight * vectorTan(pathVector, edgeVector) / 2);\n }\n return offset;\n }\n\n var startVector = getUnitVector(path, 0, 1);\n var endVector = getUnitVector(path, pathBounds.total, pathBounds.total - 1);\n var minStart = getOffset(pathABData[0], startVector);\n var maxEnd = pathBounds.total - getOffset(pathABData[pathABData.length - 1], endVector);\n\n if(pathBounds.min < minStart) pathBounds.min = minStart;\n if(pathBounds.max > maxEnd) pathBounds.max = maxEnd;\n\n pathBounds.len = pathBounds.max - pathBounds.min;\n}\n\nfunction getUnitVector(path, p0, p1) {\n var pt0 = path.getPointAtLength(p0);\n var pt1 = path.getPointAtLength(p1);\n var dx = pt1.x - pt0.x;\n var dy = pt1.y - pt0.y;\n var len = Math.sqrt(dx * dx + dy * dy);\n return [dx / len, dy / len];\n}\n\nfunction normalizeVector(v) {\n var len = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n return [v[0] / len, v[1] / len];\n}\n\nfunction vectorTan(v0, v1) {\n var cos = Math.abs(v0[0] * v1[0] + v0[1] * v1[1]);\n var sin = Math.sqrt(1 - cos * cos);\n return sin / cos;\n}\n\nfunction makeBackground(plotgroup, clipsegments, xaxis, yaxis, isConstraint, coloring) {\n var seg, xp, yp, i;\n var bggroup = Lib.ensureSingle(plotgroup, 'g', 'contourbg');\n\n var bgfill = bggroup.selectAll('path')\n .data((coloring === 'fill' && !isConstraint) ? [0] : []);\n bgfill.enter().append('path');\n bgfill.exit().remove();\n\n var segs = [];\n for(i = 0; i < clipsegments.length; i++) {\n seg = clipsegments[i];\n xp = map1dArray([], seg.x, xaxis.c2p);\n yp = map1dArray([], seg.y, yaxis.c2p);\n segs.push(makepath(xp, yp, seg.bicubic));\n }\n\n bgfill\n .attr('d', 'M' + segs.join('L') + 'Z')\n .style('stroke', 'none');\n}\n\nfunction makeFills(trace, plotgroup, xa, ya, pathinfo, perimeter, ab2p, carpet, carpetcd, coloring, boundaryPath) {\n var hasFills = coloring === 'fill';\n\n // fills prefixBoundary in pathinfo items\n if(hasFills) {\n closeBoundaries(pathinfo, trace.contours);\n }\n\n var fillgroup = Lib.ensureSingle(plotgroup, 'g', 'contourfill');\n var fillitems = fillgroup.selectAll('path').data(hasFills ? pathinfo : []);\n fillitems.enter().append('path');\n fillitems.exit().remove();\n fillitems.each(function(pi) {\n // join all paths for this level together into a single path\n // first follow clockwise around the perimeter to close any open paths\n // if the whole perimeter is above this level, start with a path\n // enclosing the whole thing. With all that, the parity should mean\n // that we always fill everything above the contour, nothing below\n var fullpath = (pi.prefixBoundary ? boundaryPath : '') +\n joinAllPaths(trace, pi, perimeter, ab2p, carpet, carpetcd, xa, ya);\n\n if(!fullpath) {\n d3.select(this).remove();\n } else {\n d3.select(this)\n .attr('d', fullpath)\n .style('stroke', 'none');\n }\n });\n}\n\nfunction joinAllPaths(trace, pi, perimeter, ab2p, carpet, carpetcd, xa, ya) {\n var i;\n var fullpath = '';\n\n var startsleft = pi.edgepaths.map(function(v, i) { return i; });\n var newloop = true;\n var endpt, newendpt, cnt, nexti, possiblei, addpath;\n\n var atol = Math.abs(perimeter[0][0] - perimeter[2][0]) * 1e-4;\n var btol = Math.abs(perimeter[0][1] - perimeter[2][1]) * 1e-4;\n\n function istop(pt) { return Math.abs(pt[1] - perimeter[0][1]) < btol; }\n function isbottom(pt) { return Math.abs(pt[1] - perimeter[2][1]) < btol; }\n function isleft(pt) { return Math.abs(pt[0] - perimeter[0][0]) < atol; }\n function isright(pt) { return Math.abs(pt[0] - perimeter[2][0]) < atol; }\n\n function pathto(pt0, pt1) {\n var i, j, segments, axis;\n var path = '';\n\n if((istop(pt0) && !isright(pt0)) || (isbottom(pt0) && !isleft(pt0))) {\n axis = carpet.aaxis;\n segments = axisAlignedLine(carpet, carpetcd, [pt0[0], pt1[0]], 0.5 * (pt0[1] + pt1[1]));\n } else {\n axis = carpet.baxis;\n segments = axisAlignedLine(carpet, carpetcd, 0.5 * (pt0[0] + pt1[0]), [pt0[1], pt1[1]]);\n }\n\n for(i = 1; i < segments.length; i++) {\n path += axis.smoothing ? 'C' : 'L';\n for(j = 0; j < segments[i].length; j++) {\n var pt = segments[i][j];\n path += [xa.c2p(pt[0]), ya.c2p(pt[1])] + ' ';\n }\n }\n\n return path;\n }\n\n i = 0;\n endpt = null;\n while(startsleft.length) {\n var startpt = pi.edgepaths[i][0];\n\n if(endpt) {\n fullpath += pathto(endpt, startpt);\n }\n\n addpath = Drawing.smoothopen(pi.edgepaths[i].map(ab2p), pi.smoothing);\n fullpath += newloop ? addpath : addpath.replace(/^M/, 'L');\n startsleft.splice(startsleft.indexOf(i), 1);\n endpt = pi.edgepaths[i][pi.edgepaths[i].length - 1];\n nexti = -1;\n\n // now loop through sides, moving our endpoint until we find a new start\n for(cnt = 0; cnt < 4; cnt++) { // just to prevent infinite loops\n if(!endpt) {\n Lib.log('Missing end?', i, pi);\n break;\n }\n\n if(istop(endpt) && !isright(endpt)) {\n newendpt = perimeter[1]; // left top ---> right top\n } else if(isleft(endpt)) {\n newendpt = perimeter[0]; // left bottom ---> left top\n } else if(isbottom(endpt)) {\n newendpt = perimeter[3]; // right bottom\n } else if(isright(endpt)) {\n newendpt = perimeter[2]; // left bottom\n }\n\n for(possiblei = 0; possiblei < pi.edgepaths.length; possiblei++) {\n var ptNew = pi.edgepaths[possiblei][0];\n // is ptNew on the (horz. or vert.) segment from endpt to newendpt?\n if(Math.abs(endpt[0] - newendpt[0]) < atol) {\n if(Math.abs(endpt[0] - ptNew[0]) < atol &&\n (ptNew[1] - endpt[1]) * (newendpt[1] - ptNew[1]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else if(Math.abs(endpt[1] - newendpt[1]) < btol) {\n if(Math.abs(endpt[1] - ptNew[1]) < btol &&\n (ptNew[0] - endpt[0]) * (newendpt[0] - ptNew[0]) >= 0) {\n newendpt = ptNew;\n nexti = possiblei;\n }\n } else {\n Lib.log('endpt to newendpt is not vert. or horz.', endpt, newendpt, ptNew);\n }\n }\n\n if(nexti >= 0) break;\n fullpath += pathto(endpt, newendpt);\n endpt = newendpt;\n }\n\n if(nexti === pi.edgepaths.length) {\n Lib.log('unclosed perimeter path');\n break;\n }\n\n i = nexti;\n\n // if we closed back on a loop we already included,\n // close it and start a new loop\n newloop = (startsleft.indexOf(i) === -1);\n if(newloop) {\n i = startsleft[0];\n fullpath += pathto(endpt, newendpt) + 'Z';\n endpt = null;\n }\n }\n\n // finally add the interior paths\n for(i = 0; i < pi.paths.length; i++) {\n fullpath += Drawing.smoothclosed(pi.paths[i].map(ab2p), pi.smoothing);\n }\n\n return fullpath;\n}\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../carpet/axis_aligned_line\":701,\"../carpet/lookup_carpetid\":717,\"../carpet/makepath\":718,\"../carpet/map_1d_array\":719,\"../contour/close_boundaries\":746,\"../contour/constants\":748,\"../contour/convert_to_constraints\":752,\"../contour/empty_pathinfo\":754,\"../contour/find_all_paths\":756,\"../contour/make_crossings\":761,\"../contour/plot\":762,\"@plotly/d3\":58}],771:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar scatterMapboxAttrs = _dereq_('../scattermapbox/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\n/*\n * - https://docs.mapbox.com/help/tutorials/make-a-heatmap-with-mapbox-gl-js/\n * - https://docs.mapbox.com/mapbox-gl-js/example/heatmap-layer/\n * - https://docs.mapbox.com/mapbox-gl-js/style-spec/#layers-heatmap\n * - https://blog.mapbox.com/introducing-heatmaps-in-mapbox-gl-js-71355ada9e6c\n *\n * Gotchas:\n * - https://github.com/mapbox/mapbox-gl-js/issues/6463\n * - https://github.com/mapbox/mapbox-gl-js/issues/6112\n */\n\n/*\n *\n * In mathematical terms, Mapbox GL heatmaps are a bivariate (2D) kernel density\n * estimation with a Gaussian kernel. It means that each data point has an area\n * of “influence” around it (called a kernel) where the numerical value of\n * influence (which we call density) decreases as you go further from the point.\n * If we sum density values of all points in every pixel of the screen, we get a\n * combined density value which we then map to a heatmap color.\n *\n */\n\nmodule.exports = extendFlat({\n lon: scatterMapboxAttrs.lon,\n lat: scatterMapboxAttrs.lat,\n\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n radius: {\n valType: 'number',\n editType: 'plot',\n arrayOk: true,\n min: 1,\n dflt: 30,\n },\n\n below: {\n valType: 'string',\n editType: 'plot',\n },\n\n text: scatterMapboxAttrs.text,\n hovertext: scatterMapboxAttrs.hovertext,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['lon', 'lat', 'z', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scattermapbox/attributes\":1002}],772:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar _ = _dereq_('../../lib')._;\n\nmodule.exports = function calc(gd, trace) {\n var len = trace._length;\n var calcTrace = new Array(len);\n var z = trace.z;\n var hasZ = isArrayOrTypedArray(z) && z.length;\n\n for(var i = 0; i < len; i++) {\n var cdi = calcTrace[i] = {};\n\n var lon = trace.lon[i];\n var lat = trace.lat[i];\n\n cdi.lonlat = isNumeric(lon) && isNumeric(lat) ?\n [+lon, +lat] :\n [BADNUM, BADNUM];\n\n if(hasZ) {\n var zi = z[i];\n cdi.z = isNumeric(zi) ? zi : BADNUM;\n }\n }\n\n colorscaleCalc(gd, trace, {\n vals: hasZ ? z : [0, 1],\n containerStr: '',\n cLetter: 'z'\n });\n\n if(len) {\n calcTrace[0].t = {\n labels: {\n lat: _(gd, 'lat:') + ' ',\n lon: _(gd, 'lon:') + ' '\n }\n };\n }\n\n return calcTrace;\n};\n\n},{\"../../components/colorscale/calc\":375,\"../../constants/numerical\":491,\"../../lib\":515,\"fast-isnumeric\":190}],773:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar Colorscale = _dereq_('../../components/colorscale');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar makeBlank = _dereq_('../../lib/geojson_utils').makeBlank;\n\nmodule.exports = function convert(calcTrace) {\n var trace = calcTrace[0].trace;\n var isVisible = (trace.visible === true && trace._length !== 0);\n\n var heatmap = {\n layout: {visibility: 'none'},\n paint: {}\n };\n\n var opts = trace._opts = {\n heatmap: heatmap,\n geojson: makeBlank()\n };\n\n // early return if not visible or placeholder\n if(!isVisible) return opts;\n\n var features = [];\n var i;\n\n var z = trace.z;\n var radius = trace.radius;\n var hasZ = Lib.isArrayOrTypedArray(z) && z.length;\n var hasArrayRadius = Lib.isArrayOrTypedArray(radius);\n\n for(i = 0; i < calcTrace.length; i++) {\n var cdi = calcTrace[i];\n var lonlat = cdi.lonlat;\n\n if(lonlat[0] !== BADNUM) {\n var props = {};\n\n if(hasZ) {\n var zi = cdi.z;\n props.z = zi !== BADNUM ? zi : 0;\n }\n if(hasArrayRadius) {\n props.r = (isNumeric(radius[i]) && radius[i] > 0) ? +radius[i] : 0;\n }\n\n features.push({\n type: 'Feature',\n geometry: {type: 'Point', coordinates: lonlat},\n properties: props\n });\n }\n }\n\n var cOpts = Colorscale.extractOpts(trace);\n var scl = cOpts.reversescale ?\n Colorscale.flipScale(cOpts.colorscale) :\n cOpts.colorscale;\n\n // Add alpha channel to first colorscale step.\n // If not, we would essentially color the entire map.\n // See https://docs.mapbox.com/mapbox-gl-js/example/heatmap-layer/\n var scl01 = scl[0][1];\n var color0 = Color.opacity(scl01) < 1 ? scl01 : Color.addOpacity(scl01, 0);\n\n var heatmapColor = [\n 'interpolate', ['linear'],\n ['heatmap-density'],\n 0, color0\n ];\n for(i = 1; i < scl.length; i++) {\n heatmapColor.push(scl[i][0], scl[i][1]);\n }\n\n // Those \"weights\" have to be in [0, 1], we can do this either:\n // - as here using a mapbox-gl expression\n // - or, scale the 'z' property in the feature loop\n var zExp = [\n 'interpolate', ['linear'],\n ['get', 'z'],\n cOpts.min, 0,\n cOpts.max, 1\n ];\n\n Lib.extendFlat(opts.heatmap.paint, {\n 'heatmap-weight': hasZ ? zExp : 1 / (cOpts.max - cOpts.min),\n\n 'heatmap-color': heatmapColor,\n\n 'heatmap-radius': hasArrayRadius ?\n {type: 'identity', property: 'r'} :\n trace.radius,\n\n 'heatmap-opacity': trace.opacity\n });\n\n opts.geojson = {type: 'FeatureCollection', features: features};\n opts.heatmap.layout.visibility = 'visible';\n\n return opts;\n};\n\n},{\"../../components/color\":367,\"../../components/colorscale\":379,\"../../constants/numerical\":491,\"../../lib\":515,\"../../lib/geojson_utils\":509,\"fast-isnumeric\":190}],774:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var lon = coerce('lon') || [];\n var lat = coerce('lat') || [];\n\n var len = Math.min(lon.length, lat.length);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('z');\n coerce('radius');\n coerce('below');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"./attributes\":771}],775:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt) {\n out.lon = pt.lon;\n out.lat = pt.lat;\n out.z = pt.z;\n return out;\n};\n\n},{}],776:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar scatterMapboxHoverPoints = _dereq_('../scattermapbox/hover').hoverPoints;\nvar getExtraText = _dereq_('../scattermapbox/hover').getExtraText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var pts = scatterMapboxHoverPoints(pointData, xval, yval);\n if(!pts) return;\n\n var newPointData = pts[0];\n var cd = newPointData.cd;\n var trace = cd[0].trace;\n var di = cd[newPointData.index];\n\n // let Fx.hover pick the color\n delete newPointData.color;\n\n if('z' in di) {\n var ax = newPointData.subplot.mockAxis;\n newPointData.z = di.z;\n newPointData.zLabel = Axes.tickText(ax, ax.c2l(di.z), 'hover').text;\n }\n\n newPointData.extraText = getExtraText(trace, di, cd[0].t.labels);\n\n return [newPointData];\n};\n\n},{\"../../plots/cartesian/axes\":566,\"../scattermapbox/hover\":1007}],777:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n formatLabels: _dereq_('../scattermapbox/format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n getBelow: function(trace, subplot) {\n var mapLayers = subplot.getMapLayers();\n\n // find first layer with `type: 'symbol'`,\n // that is not a plotly layer\n for(var i = 0; i < mapLayers.length; i++) {\n var layer = mapLayers[i];\n var layerId = layer.id;\n if(layer.type === 'symbol' &&\n typeof layerId === 'string' && layerId.indexOf('plotly-') === -1\n ) {\n return layerId;\n }\n }\n },\n\n moduleType: 'trace',\n name: 'densitymapbox',\n basePlotModule: _dereq_('../../plots/mapbox'),\n categories: ['mapbox', 'gl', 'showLegend'],\n meta: {\n hr_name: 'density_mapbox',\n }\n};\n\n},{\"../../plots/mapbox\":622,\"../heatmap/colorbar\":804,\"../scattermapbox/format_labels\":1006,\"./attributes\":771,\"./calc\":772,\"./defaults\":774,\"./event_data\":775,\"./hover\":776,\"./plot\":778}],778:[function(_dereq_,module,exports){\n'use strict';\n\nvar convert = _dereq_('./convert');\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\n\nfunction DensityMapbox(subplot, uid) {\n this.type = 'densitymapbox';\n this.subplot = subplot;\n this.uid = uid;\n\n this.sourceId = 'source-' + uid;\n\n this.layerList = [\n ['heatmap', LAYER_PREFIX + uid + '-heatmap']\n ];\n\n // previous 'below' value,\n // need this to update it properly\n this.below = null;\n}\n\nvar proto = DensityMapbox.prototype;\n\nproto.update = function(calcTrace) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var optsAll = convert(calcTrace);\n var below = subplot.belowLookup['trace-' + this.uid];\n\n subplot.map\n .getSource(this.sourceId)\n .setData(optsAll.geojson);\n\n if(below !== this.below) {\n this._removeLayers();\n this._addLayers(optsAll, below);\n this.below = below;\n }\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var id = item[1];\n var opts = optsAll[k];\n\n subplot.setOptions(id, 'setLayoutProperty', opts.layout);\n\n if(opts.layout.visibility === 'visible') {\n subplot.setOptions(id, 'setPaintProperty', opts.paint);\n }\n }\n};\n\nproto._addLayers = function(optsAll, below) {\n var subplot = this.subplot;\n var layerList = this.layerList;\n var sourceId = this.sourceId;\n\n for(var i = 0; i < layerList.length; i++) {\n var item = layerList[i];\n var k = item[0];\n var opts = optsAll[k];\n\n subplot.addLayer({\n type: k,\n id: item[1],\n source: sourceId,\n layout: opts.layout,\n paint: opts.paint\n }, below);\n }\n};\n\nproto._removeLayers = function() {\n var map = this.subplot.map;\n var layerList = this.layerList;\n\n for(var i = layerList.length - 1; i >= 0; i--) {\n map.removeLayer(layerList[i][1]);\n }\n};\n\nproto.dispose = function() {\n var map = this.subplot.map;\n this._removeLayers();\n map.removeSource(this.sourceId);\n};\n\nmodule.exports = function createDensityMapbox(subplot, calcTrace) {\n var trace = calcTrace[0].trace;\n var densityMapbox = new DensityMapbox(subplot, trace.uid);\n var sourceId = densityMapbox.sourceId;\n var optsAll = convert(calcTrace);\n var below = densityMapbox.below = subplot.belowLookup['trace-' + trace.uid];\n\n subplot.map.addSource(sourceId, {\n type: 'geojson',\n data: optsAll.geojson\n });\n\n densityMapbox._addLayers(optsAll, below);\n\n return densityMapbox;\n};\n\n},{\"../../plots/mapbox/constants\":620,\"./convert\":773}],779:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// arrayOk attributes, merge them into calcdata array\nmodule.exports = function arraysToCalcdata(cd, trace) {\n for(var i = 0; i < cd.length; i++) cd[i].i = i;\n\n Lib.mergeArray(trace.text, cd, 'tx');\n Lib.mergeArray(trace.hovertext, cd, 'htx');\n\n var marker = trace.marker;\n if(marker) {\n Lib.mergeArray(marker.opacity, cd, 'mo');\n Lib.mergeArray(marker.color, cd, 'mc');\n\n var markerLine = marker.line;\n if(markerLine) {\n Lib.mergeArray(markerLine.color, cd, 'mlc');\n Lib.mergeArrayCastPositive(markerLine.width, cd, 'mlw');\n }\n }\n};\n\n},{\"../../lib\":515}],780:[function(_dereq_,module,exports){\n'use strict';\n\nvar barAttrs = _dereq_('../bar/attributes');\nvar lineAttrs = _dereq_('../scatter/attributes').line;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar Color = _dereq_('../../components/color');\n\nmodule.exports = {\n x: barAttrs.x,\n x0: barAttrs.x0,\n dx: barAttrs.dx,\n y: barAttrs.y,\n y0: barAttrs.y0,\n dy: barAttrs.dy,\n\n xperiod: barAttrs.xperiod,\n yperiod: barAttrs.yperiod,\n xperiod0: barAttrs.xperiod0,\n yperiod0: barAttrs.yperiod0,\n xperiodalignment: barAttrs.xperiodalignment,\n yperiodalignment: barAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n hovertext: barAttrs.hovertext,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['name', 'x', 'y', 'text', 'percent initial', 'percent previous', 'percent total']\n }),\n\n textinfo: {\n valType: 'flaglist',\n flags: ['label', 'text', 'percent initial', 'percent previous', 'percent total', 'value'],\n extras: ['none'],\n editType: 'plot',\n arrayOk: false,\n },\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n text: barAttrs.text,\n textposition: barAttrs.textposition,\n insidetextanchor: extendFlat({}, barAttrs.insidetextanchor, {dflt: 'middle'}),\n textangle: extendFlat({}, barAttrs.textangle, {dflt: 0}),\n textfont: barAttrs.textfont,\n insidetextfont: barAttrs.insidetextfont,\n outsidetextfont: barAttrs.outsidetextfont,\n constraintext: barAttrs.constraintext,\n cliponaxis: barAttrs.cliponaxis,\n\n orientation: extendFlat({}, barAttrs.orientation, {\n }),\n\n offset: extendFlat({}, barAttrs.offset, {arrayOk: false}),\n width: extendFlat({}, barAttrs.width, {arrayOk: false}),\n\n marker: funnelMarker(),\n\n connector: {\n fillcolor: {\n valType: 'color',\n editType: 'style',\n },\n line: {\n color: extendFlat({}, lineAttrs.color, {dflt: Color.defaultLine}),\n width: extendFlat({}, lineAttrs.width, {\n dflt: 0,\n editType: 'plot',\n }),\n dash: lineAttrs.dash,\n editType: 'style'\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup\n};\n\nfunction funnelMarker() {\n var marker = extendFlat({}, barAttrs.marker);\n delete marker.pattern;\n return marker;\n}\n\n},{\"../../components/color\":367,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../bar/attributes\":657,\"../scatter/attributes\":936,\"./constants\":782}],781:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar arraysToCalcdata = _dereq_('./arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var size, pos, origPos, pObj, hasPeriod, pLetter, i, cdi;\n\n if(trace.orientation === 'h') {\n size = xa.makeCalcdata(trace, 'x');\n origPos = ya.makeCalcdata(trace, 'y');\n pObj = alignPeriod(trace, ya, 'y', origPos);\n hasPeriod = !!trace.yperiodalignment;\n pLetter = 'y';\n } else {\n size = ya.makeCalcdata(trace, 'y');\n origPos = xa.makeCalcdata(trace, 'x');\n pObj = alignPeriod(trace, xa, 'x', origPos);\n hasPeriod = !!trace.xperiodalignment;\n pLetter = 'x';\n }\n pos = pObj.vals;\n\n // create the \"calculated data\" to plot\n var serieslen = Math.min(pos.length, size.length);\n var cd = new Array(serieslen);\n\n // Unlike other bar-like traces funnels do not support base attribute.\n // bases for funnels are computed internally in a way that\n // the mid-point of each bar are located on the axis line.\n trace._base = [];\n\n // set position and size\n for(i = 0; i < serieslen; i++) {\n // treat negative values as bad numbers\n if(size[i] < 0) size[i] = BADNUM;\n\n var connectToNext = false;\n if(size[i] !== BADNUM) {\n if(i + 1 < serieslen && size[i + 1] !== BADNUM) {\n connectToNext = true;\n }\n }\n\n cdi = cd[i] = {\n p: pos[i],\n s: size[i],\n cNext: connectToNext\n };\n\n trace._base[i] = -0.5 * cdi.s;\n\n if(hasPeriod) {\n cd[i].orig_p = origPos[i]; // used by hover\n cd[i][pLetter + 'End'] = pObj.ends[i];\n cd[i][pLetter + 'Start'] = pObj.starts[i];\n }\n\n if(trace.ids) {\n cdi.id = String(trace.ids[i]);\n }\n\n // calculate total values\n if(i === 0) cd[0].vTotal = 0;\n cd[0].vTotal += fixNum(cdi.s);\n\n // ratio from initial value\n cdi.begR = fixNum(cdi.s) / fixNum(cd[0].s);\n }\n\n var prevGoodNum;\n for(i = 0; i < serieslen; i++) {\n cdi = cd[i];\n if(cdi.s === BADNUM) continue;\n\n // ratio of total value\n cdi.sumR = cdi.s / cd[0].vTotal;\n\n // ratio of previous (good) value\n cdi.difR = (prevGoodNum !== undefined) ? cdi.s / prevGoodNum : 1;\n\n prevGoodNum = cdi.s;\n }\n\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\nfunction fixNum(a) {\n return (a === BADNUM) ? 0 : a;\n}\n\n},{\"../../constants/numerical\":491,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"../scatter/calc_selection\":938,\"./arrays_to_calcdata\":779}],782:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n eventDataKeys: [\n 'percentInitial',\n 'percentPrevious',\n 'percentTotal'\n ]\n};\n\n},{}],783:[function(_dereq_,module,exports){\n'use strict';\n\nvar setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var funnels = [];\n var funnelsVert = [];\n var funnelsHorz = [];\n var cd, i;\n\n for(i = 0; i < fullData.length; i++) {\n var fullTrace = fullData[i];\n var isHorizontal = (fullTrace.orientation === 'h');\n\n if(\n fullTrace.visible === true &&\n fullTrace.xaxis === xa._id &&\n fullTrace.yaxis === ya._id &&\n fullTrace.type === 'funnel'\n ) {\n cd = calcdata[i];\n\n if(isHorizontal) {\n funnelsHorz.push(cd);\n } else {\n funnelsVert.push(cd);\n }\n\n funnels.push(cd);\n }\n }\n\n var opts = {\n mode: fullLayout.funnelmode,\n norm: fullLayout.funnelnorm,\n gap: fullLayout.funnelgap,\n groupgap: fullLayout.funnelgroupgap\n };\n\n setGroupPositions(gd, xa, ya, funnelsVert, opts);\n setGroupPositions(gd, ya, xa, funnelsHorz, opts);\n\n for(i = 0; i < funnels.length; i++) {\n cd = funnels[i];\n\n for(var j = 0; j < cd.length; j++) {\n if(j + 1 < cd.length) {\n cd[j].nextP0 = cd[j + 1].p0;\n cd[j].nextS0 = cd[j + 1].s0;\n\n cd[j].nextP1 = cd[j + 1].p1;\n cd[j].nextS1 = cd[j + 1].s1;\n }\n }\n }\n};\n\n},{\"../bar/cross_trace_calc\":660}],784:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('orientation', (traceOut.y && !traceOut.x) ? 'v' : 'h');\n coerce('offset');\n coerce('width');\n\n var text = coerce('text');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n if(traceOut.textposition !== 'none' && !traceOut.texttemplate) {\n coerce('textinfo', Array.isArray(text) ? 'text+value' : 'value');\n }\n\n var markerColor = coerce('marker.color', defaultColor);\n coerce('marker.line.color', Color.defaultLine);\n coerce('marker.line.width');\n\n var connectorVisible = coerce('connector.visible');\n if(connectorVisible) {\n coerce('connector.fillcolor', defaultFillColor(markerColor));\n\n var connectorLineWidth = coerce('connector.line.width');\n if(connectorLineWidth) {\n coerce('connector.line.color');\n coerce('connector.line.dash');\n }\n }\n}\n\nfunction defaultFillColor(markerColor) {\n var cBase = Lib.isArrayOrTypedArray(markerColor) ? '#000' : markerColor;\n\n return Color.addOpacity(cBase, 0.5 * Color.opacity(cBase));\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n if(fullLayout.funnelmode === 'group') {\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n traceIn = traceOut._input;\n\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../bar/defaults\":661,\"../scatter/period_defaults\":956,\"../scatter/xy_defaults\":963,\"./attributes\":780}],785:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n\n // for funnel\n if('percentInitial' in pt) out.percentInitial = pt.percentInitial;\n if('percentPrevious' in pt) out.percentPrevious = pt.percentPrevious;\n if('percentTotal' in pt) out.percentTotal = pt.percentTotal;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n return out;\n};\n\n},{}],786:[function(_dereq_,module,exports){\n'use strict';\n\nvar opacity = _dereq_('../../components/color').opacity;\nvar hoverOnBars = _dereq_('../bar/hover').hoverOnBars;\nvar formatPercent = _dereq_('../../lib').formatPercent;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var point = hoverOnBars(pointData, xval, yval, hovermode, opts);\n if(!point) return;\n\n var cd = point.cd;\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n\n // the closest data point\n var index = point.index;\n var di = cd[index];\n\n var sizeLetter = isHorizontal ? 'x' : 'y';\n point[sizeLetter + 'LabelVal'] = di.s;\n\n point.percentInitial = di.begR;\n point.percentInitialLabel = formatPercent(di.begR, 1);\n\n point.percentPrevious = di.difR;\n point.percentPreviousLabel = formatPercent(di.difR, 1);\n\n point.percentTotal = di.sumR;\n point.percentTotalLabel = formatPercent(di.sumR, 1);\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var text = [];\n if(hoverinfo && hoverinfo !== 'none' && hoverinfo !== 'skip') {\n var isAll = (hoverinfo === 'all');\n var parts = hoverinfo.split('+');\n\n var hasFlag = function(flag) { return isAll || parts.indexOf(flag) !== -1; };\n\n if(hasFlag('percent initial')) {\n text.push(point.percentInitialLabel + ' of initial');\n }\n if(hasFlag('percent previous')) {\n text.push(point.percentPreviousLabel + ' of previous');\n }\n if(hasFlag('percent total')) {\n text.push(point.percentTotalLabel + ' of total');\n }\n }\n point.extraText = text.join('
');\n\n point.color = getTraceColor(trace, di);\n\n return [point];\n};\n\nfunction getTraceColor(trace, di) {\n var cont = trace.marker;\n var mc = di.mc || cont.color;\n var mlc = di.mlc || cont.line.color;\n var mlw = di.mlw || cont.line.width;\n if(opacity(mc)) return mc;\n else if(opacity(mlc) && mlw) return mlc;\n}\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../bar/hover\":664}],787:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n selectPoints: _dereq_('../bar/select'),\n\n moduleType: 'trace',\n name: 'funnel',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'oriented', 'showLegend', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../bar/select\":669,\"./attributes\":780,\"./calc\":781,\"./cross_trace_calc\":783,\"./defaults\":784,\"./event_data\":785,\"./hover\":786,\"./layout_attributes\":788,\"./layout_defaults\":789,\"./plot\":790,\"./style\":791}],788:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n funnelmode: {\n valType: 'enumerated',\n values: ['stack', 'group', 'overlay'],\n dflt: 'stack',\n editType: 'calc',\n },\n funnelgap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n funnelgroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n }\n};\n\n},{}],789:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n var hasTraceType = false;\n\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible && trace.type === 'funnel') {\n hasTraceType = true;\n break;\n }\n }\n\n if(hasTraceType) {\n coerce('funnelmode');\n coerce('funnelgap', 0.2);\n coerce('funnelgroupgap');\n }\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":788}],790:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar barPlot = _dereq_('../bar/plot');\nvar clearMinTextSize = _dereq_('../bar/uniform_text').clearMinTextSize;\n\nmodule.exports = function plot(gd, plotinfo, cdModule, traceLayer) {\n var fullLayout = gd._fullLayout;\n\n clearMinTextSize('funnel', fullLayout);\n\n plotConnectorRegions(gd, plotinfo, cdModule, traceLayer);\n plotConnectorLines(gd, plotinfo, cdModule, traceLayer);\n\n barPlot.plot(gd, plotinfo, cdModule, traceLayer, {\n mode: fullLayout.funnelmode,\n norm: fullLayout.funnelmode,\n gap: fullLayout.funnelgap,\n groupgap: fullLayout.funnelgroupgap\n });\n};\n\nfunction plotConnectorRegions(gd, plotinfo, cdModule, traceLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n\n var group = Lib.ensureSingle(plotGroup, 'g', 'regions');\n\n if(!trace.connector || !trace.connector.visible) {\n group.remove();\n return;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n\n var connectors = group.selectAll('g.region').data(Lib.identity);\n\n connectors.enter().append('g')\n .classed('region', true);\n\n connectors.exit().remove();\n\n var len = connectors.size();\n\n connectors.each(function(di, i) {\n // don't draw lines between nulls\n if(i !== len - 1 && !di.cNext) return;\n\n var xy = getXY(di, xa, ya, isHorizontal);\n var x = xy[0];\n var y = xy[1];\n\n var shape = '';\n\n if(\n x[0] !== BADNUM && y[0] !== BADNUM &&\n x[1] !== BADNUM && y[1] !== BADNUM &&\n x[2] !== BADNUM && y[2] !== BADNUM &&\n x[3] !== BADNUM && y[3] !== BADNUM\n ) {\n if(isHorizontal) {\n shape += 'M' + x[0] + ',' + y[1] + 'L' + x[2] + ',' + y[2] + 'H' + x[3] + 'L' + x[1] + ',' + y[1] + 'Z';\n } else {\n shape += 'M' + x[1] + ',' + y[1] + 'L' + x[2] + ',' + y[3] + 'V' + y[2] + 'L' + x[1] + ',' + y[0] + 'Z';\n }\n }\n\n if(shape === '') shape = 'M0,0Z';\n\n Lib.ensureSingle(d3.select(this), 'path')\n .attr('d', shape)\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n });\n });\n}\n\nfunction plotConnectorLines(gd, plotinfo, cdModule, traceLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n\n var group = Lib.ensureSingle(plotGroup, 'g', 'lines');\n\n if(!trace.connector || !trace.connector.visible || !trace.connector.line.width) {\n group.remove();\n return;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n\n var connectors = group.selectAll('g.line').data(Lib.identity);\n\n connectors.enter().append('g')\n .classed('line', true);\n\n connectors.exit().remove();\n\n var len = connectors.size();\n\n connectors.each(function(di, i) {\n // don't draw lines between nulls\n if(i !== len - 1 && !di.cNext) return;\n\n var xy = getXY(di, xa, ya, isHorizontal);\n var x = xy[0];\n var y = xy[1];\n\n var shape = '';\n\n if(x[3] !== undefined && y[3] !== undefined) {\n if(isHorizontal) {\n shape += 'M' + x[0] + ',' + y[1] + 'L' + x[2] + ',' + y[2];\n shape += 'M' + x[1] + ',' + y[1] + 'L' + x[3] + ',' + y[2];\n } else {\n shape += 'M' + x[1] + ',' + y[1] + 'L' + x[2] + ',' + y[3];\n shape += 'M' + x[1] + ',' + y[0] + 'L' + x[2] + ',' + y[2];\n }\n }\n\n if(shape === '') shape = 'M0,0Z';\n\n Lib.ensureSingle(d3.select(this), 'path')\n .attr('d', shape)\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n });\n });\n}\n\nfunction getXY(di, xa, ya, isHorizontal) {\n var s = [];\n var p = [];\n\n var sAxis = isHorizontal ? xa : ya;\n var pAxis = isHorizontal ? ya : xa;\n\n s[0] = sAxis.c2p(di.s0, true);\n p[0] = pAxis.c2p(di.p0, true);\n\n s[1] = sAxis.c2p(di.s1, true);\n p[1] = pAxis.c2p(di.p1, true);\n\n s[2] = sAxis.c2p(di.nextS0, true);\n p[2] = pAxis.c2p(di.nextP0, true);\n\n s[3] = sAxis.c2p(di.nextS1, true);\n p[3] = pAxis.c2p(di.nextP1, true);\n\n return isHorizontal ? [s, p] : [p, s];\n}\n\n},{\"../../components/drawing\":389,\"../../constants/numerical\":491,\"../../lib\":515,\"../bar/plot\":668,\"../bar/uniform_text\":673,\"@plotly/d3\":58}],791:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\nvar barStyle = _dereq_('../bar/style');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\nvar styleTextPoints = barStyle.styleTextPoints;\n\nfunction style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.funnellayer').selectAll('g.trace');\n resizeText(gd, s, 'funnel');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var gTrace = d3.select(this);\n var trace = d[0].trace;\n\n gTrace.selectAll('.point > path').each(function(di) {\n if(!di.isBlank) {\n var cont = trace.marker;\n\n d3.select(this)\n .call(Color.fill, di.mc || cont.color)\n .call(Color.stroke, di.mlc || cont.line.color)\n .call(Drawing.dashLine, cont.line.dash, di.mlw || cont.line.width)\n .style('opacity', trace.selectedpoints && !di.selected ? DESELECTDIM : 1);\n }\n });\n\n styleTextPoints(gTrace, trace, gd);\n\n gTrace.selectAll('.regions').each(function() {\n d3.select(this).selectAll('path').style('stroke-width', 0).call(Color.fill, trace.connector.fillcolor);\n });\n\n gTrace.selectAll('.lines').each(function() {\n var cont = trace.connector.line;\n\n Drawing.lineGroupStyle(\n d3.select(this).selectAll('path'),\n cont.width,\n cont.color,\n cont.dash\n );\n });\n });\n}\n\nmodule.exports = {\n style: style\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../constants/interactions\":490,\"../bar/style\":671,\"../bar/uniform_text\":673,\"@plotly/d3\":58}],792:[function(_dereq_,module,exports){\n'use strict';\n\nvar pieAttrs = _dereq_('../pie/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: pieAttrs.labels,\n // equivalent of x0 and dx, if label is missing\n label0: pieAttrs.label0,\n dlabel: pieAttrs.dlabel,\n values: pieAttrs.values,\n\n marker: {\n colors: pieAttrs.marker.colors,\n line: {\n color: extendFlat({}, pieAttrs.marker.line.color, {\n dflt: null,\n }),\n width: extendFlat({}, pieAttrs.marker.line.width, {dflt: 1}),\n editType: 'calc'\n },\n editType: 'calc'\n },\n\n text: pieAttrs.text,\n hovertext: pieAttrs.hovertext,\n\n scalegroup: extendFlat({}, pieAttrs.scalegroup, {\n }),\n\n textinfo: extendFlat({}, pieAttrs.textinfo, {\n flags: ['label', 'text', 'value', 'percent']\n }),\n\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['label', 'color', 'value', 'text', 'percent']\n }),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['label', 'text', 'value', 'percent', 'name']\n }),\n\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['label', 'color', 'value', 'text', 'percent']\n }),\n\n textposition: extendFlat({}, pieAttrs.textposition, {\n values: ['inside', 'none'],\n dflt: 'inside'\n }),\n\n textfont: pieAttrs.textfont,\n insidetextfont: pieAttrs.insidetextfont,\n\n title: {\n text: pieAttrs.title.text,\n font: pieAttrs.title.font,\n position: extendFlat({}, pieAttrs.title.position, {\n values: ['top left', 'top center', 'top right'],\n dflt: 'top center'\n }),\n editType: 'plot'\n },\n\n domain: domainAttrs({name: 'funnelarea', trace: true, editType: 'calc'}),\n\n aspectratio: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n\n baseratio: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.333,\n editType: 'plot',\n }\n};\n\n},{\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/domain\":593,\"../../plots/template_attributes\":642,\"../pie/attributes\":910}],793:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'funnelarea';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":628}],794:[function(_dereq_,module,exports){\n'use strict';\n\nvar pieCalc = _dereq_('../pie/calc');\n\nfunction calc(gd, trace) {\n return pieCalc.calc(gd, trace);\n}\n\nfunction crossTraceCalc(gd) {\n pieCalc.crossTraceCalc(gd, { type: 'funnelarea' });\n}\n\nmodule.exports = {\n calc: calc,\n crossTraceCalc: crossTraceCalc\n};\n\n},{\"../pie/calc\":912}],795:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleLabelsAndValues = _dereq_('../pie/defaults').handleLabelsAndValues;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var values = coerce('values');\n\n var res = handleLabelsAndValues(labels, values);\n var len = res.len;\n traceOut._hasLabels = res.hasLabels;\n traceOut._hasValues = res.hasValues;\n\n if(!traceOut._hasLabels &&\n traceOut._hasValues\n ) {\n coerce('label0');\n coerce('dlabel');\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n traceOut._length = len;\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n coerce('marker.colors');\n\n coerce('scalegroup');\n\n var textData = coerce('text');\n var textTemplate = coerce('texttemplate');\n var textInfo;\n if(!textTemplate) textInfo = coerce('textinfo', Array.isArray(textData) ? 'text+percent' : 'percent');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n if(textTemplate || (textInfo && textInfo !== 'none')) {\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n var title = coerce('title.text');\n if(title) {\n coerce('title.position');\n Lib.coerceFont(coerce, 'title.font', layout.font);\n }\n\n coerce('aspectratio');\n coerce('baseratio');\n};\n\n},{\"../../lib\":515,\"../../plots/domain\":593,\"../bar/defaults\":661,\"../pie/defaults\":913,\"./attributes\":792}],796:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'funnelarea',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['pie-like', 'funnelarea', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n styleOne: _dereq_('../pie/style_one'),\n\n meta: {\n }\n};\n\n},{\"../pie/style_one\":921,\"./attributes\":792,\"./base_plot\":793,\"./calc\":794,\"./defaults\":795,\"./layout_attributes\":797,\"./layout_defaults\":798,\"./plot\":799,\"./style\":800}],797:[function(_dereq_,module,exports){\n'use strict';\n\nvar hiddenlabels = _dereq_('../pie/layout_attributes').hiddenlabels;\n\nmodule.exports = {\n hiddenlabels: hiddenlabels,\n\n funnelareacolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendfunnelareacolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{\"../pie/layout_attributes\":917}],798:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n coerce('hiddenlabels');\n coerce('funnelareacolorway', layoutOut.colorway);\n coerce('extendfunnelareacolors');\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":797}],799:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar barPlot = _dereq_('../bar/plot');\nvar toMoveInsideBar = barPlot.toMoveInsideBar;\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar pieHelpers = _dereq_('../pie/helpers');\nvar piePlot = _dereq_('../pie/plot');\n\nvar attachFxHandlers = piePlot.attachFxHandlers;\nvar determineInsideTextFont = piePlot.determineInsideTextFont;\n\nvar layoutAreas = piePlot.layoutAreas;\nvar prerenderTitles = piePlot.prerenderTitles;\nvar positionTitleOutside = piePlot.positionTitleOutside;\nvar formatSliceLabel = piePlot.formatSliceLabel;\n\nmodule.exports = function plot(gd, cdModule) {\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n\n clearMinTextSize('funnelarea', fullLayout);\n\n prerenderTitles(cdModule, gd);\n layoutAreas(cdModule, fullLayout._size);\n\n Lib.makeTraceGroups(fullLayout._funnelarealayer, cdModule, 'trace').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n setCoords(cd);\n\n plotGroup.each(function() {\n var slices = d3.select(this).selectAll('g.slice').data(cd);\n\n slices.enter().append('g')\n .classed('slice', true);\n slices.exit().remove();\n\n slices.each(function(pt, i) {\n if(pt.hidden) {\n d3.select(this).selectAll('path,g').remove();\n return;\n }\n\n // to have consistent event data compared to other traces\n pt.pointNumber = pt.i;\n pt.curveNumber = trace.index;\n\n var cx = cd0.cx;\n var cy = cd0.cy;\n var sliceTop = d3.select(this);\n var slicePath = sliceTop.selectAll('path.surface').data([pt]);\n\n slicePath.enter().append('path')\n .classed('surface', true)\n .style({'pointer-events': isStatic ? 'none' : 'all'});\n\n sliceTop.call(attachFxHandlers, gd, cd);\n\n var shape =\n 'M' + (cx + pt.TR[0]) + ',' + (cy + pt.TR[1]) +\n line(pt.TR, pt.BR) +\n line(pt.BR, pt.BL) +\n line(pt.BL, pt.TL) +\n 'Z';\n\n slicePath.attr('d', shape);\n\n // add text\n formatSliceLabel(gd, pt, cd0);\n var textPosition = pieHelpers.castOption(trace.textposition, pt.pts);\n var sliceTextGroup = sliceTop.selectAll('g.slicetext')\n .data(pt.text && (textPosition !== 'none') ? [0] : []);\n\n sliceTextGroup.enter().append('g')\n .classed('slicetext', true);\n sliceTextGroup.exit().remove();\n\n sliceTextGroup.each(function() {\n var sliceText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, determineInsideTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(pt.text)\n .attr({\n 'class': 'slicetext',\n transform: '',\n 'text-anchor': 'middle'\n })\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // position the text relative to the slice\n var textBB = Drawing.bBox(sliceText.node());\n var transform;\n\n var x0, x1;\n var y0 = Math.min(pt.BL[1], pt.BR[1]) + cy;\n var y1 = Math.max(pt.TL[1], pt.TR[1]) + cy;\n\n x0 = Math.max(pt.TL[0], pt.BL[0]) + cx;\n x1 = Math.min(pt.TR[0], pt.BR[0]) + cx;\n\n transform = toMoveInsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: true,\n constrained: true,\n angle: 0,\n anchor: 'middle'\n });\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n cd[i].transform = transform;\n\n Lib.setTransormAndDisplay(sliceText, transform);\n });\n });\n\n // add the title\n var titleTextGroup = d3.select(this).selectAll('g.titletext')\n .data(trace.title.text ? [0] : []);\n\n titleTextGroup.enter().append('g')\n .classed('titletext', true);\n titleTextGroup.exit().remove();\n\n titleTextGroup.each(function() {\n var titleText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation as above\n s.attr('data-notex', 1);\n });\n\n var txt = trace.title.text;\n if(trace._meta) {\n txt = Lib.templateString(txt, trace._meta);\n }\n\n titleText.text(txt)\n .attr({\n 'class': 'titletext',\n transform: '',\n 'text-anchor': 'middle',\n })\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n\n var transform = positionTitleOutside(cd0, fullLayout._size);\n\n titleText.attr('transform',\n strTranslate(transform.x, transform.y) +\n strScale(Math.min(1, transform.scale)) +\n strTranslate(transform.tx, transform.ty));\n });\n });\n });\n};\n\nfunction line(a, b) {\n var dx = b[0] - a[0];\n var dy = b[1] - a[1];\n\n return 'l' + dx + ',' + dy;\n}\n\nfunction getBetween(a, b) {\n return [\n 0.5 * (a[0] + b[0]),\n 0.5 * (a[1] + b[1])\n ];\n}\n\nfunction setCoords(cd) {\n if(!cd.length) return;\n\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var aspectratio = trace.aspectratio;\n\n var h = trace.baseratio;\n if(h > 0.999) h = 0.999; // TODO: may handle this case separately\n var h2 = Math.pow(h, 2);\n\n var v1 = cd0.vTotal;\n var v0 = v1 * h2 / (1 - h2);\n\n var totalValues = v1;\n var sumSteps = v0 / v1;\n\n function calcPos() {\n var q = Math.sqrt(sumSteps);\n return {\n x: q,\n y: -q\n };\n }\n\n function getPoint() {\n var pos = calcPos();\n return [pos.x, pos.y];\n }\n\n var p;\n var allPoints = [];\n allPoints.push(getPoint());\n\n var i, cdi;\n for(i = cd.length - 1; i > -1; i--) {\n cdi = cd[i];\n if(cdi.hidden) continue;\n\n var step = cdi.v / totalValues;\n sumSteps += step;\n\n allPoints.push(getPoint());\n }\n\n var minY = Infinity;\n var maxY = -Infinity;\n for(i = 0; i < allPoints.length; i++) {\n p = allPoints[i];\n minY = Math.min(minY, p[1]);\n maxY = Math.max(maxY, p[1]);\n }\n\n // center the shape\n for(i = 0; i < allPoints.length; i++) {\n allPoints[i][1] -= (maxY + minY) / 2;\n }\n\n var lastX = allPoints[allPoints.length - 1][0];\n\n // get pie r\n var r = cd0.r;\n\n var rY = (maxY - minY) / 2;\n var scaleX = r / lastX;\n var scaleY = r / rY * aspectratio;\n\n // set funnelarea r\n cd0.r = scaleY * rY;\n\n // scale the shape\n for(i = 0; i < allPoints.length; i++) {\n allPoints[i][0] *= scaleX;\n allPoints[i][1] *= scaleY;\n }\n\n // record first position\n p = allPoints[0];\n var prevLeft = [-p[0], p[1]];\n var prevRight = [p[0], p[1]];\n\n var n = 0; // note we skip the very first point.\n for(i = cd.length - 1; i > -1; i--) {\n cdi = cd[i];\n if(cdi.hidden) continue;\n\n n += 1;\n var x = allPoints[n][0];\n var y = allPoints[n][1];\n\n cdi.TL = [-x, y];\n cdi.TR = [x, y];\n\n cdi.BL = prevLeft;\n cdi.BR = prevRight;\n\n cdi.pxmid = getBetween(cdi.TR, cdi.BR);\n\n prevLeft = cdi.TL;\n prevRight = cdi.TR;\n }\n}\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../bar/plot\":668,\"../bar/uniform_text\":673,\"../pie/helpers\":915,\"../pie/plot\":919,\"@plotly/d3\":58}],800:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar styleOne = _dereq_('../pie/style_one');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nmodule.exports = function style(gd) {\n var s = gd._fullLayout._funnelarealayer.selectAll('.trace');\n resizeText(gd, s, 'funnelarea');\n\n s.each(function(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var traceSelection = d3.select(this);\n\n traceSelection.style({opacity: trace.opacity});\n\n traceSelection.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n};\n\n},{\"../bar/uniform_text\":673,\"../pie/style_one\":921,\"@plotly/d3\":58}],801:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n x: extendFlat({}, scatterAttrs.x, {impliedEdits: {xtype: 'array'}}),\n x0: extendFlat({}, scatterAttrs.x0, {impliedEdits: {xtype: 'scaled'}}),\n dx: extendFlat({}, scatterAttrs.dx, {impliedEdits: {xtype: 'scaled'}}),\n y: extendFlat({}, scatterAttrs.y, {impliedEdits: {ytype: 'array'}}),\n y0: extendFlat({}, scatterAttrs.y0, {impliedEdits: {ytype: 'scaled'}}),\n dy: extendFlat({}, scatterAttrs.dy, {impliedEdits: {ytype: 'scaled'}}),\n\n xperiod: extendFlat({}, scatterAttrs.xperiod, {impliedEdits: {xtype: 'scaled'}}),\n yperiod: extendFlat({}, scatterAttrs.yperiod, {impliedEdits: {ytype: 'scaled'}}),\n xperiod0: extendFlat({}, scatterAttrs.xperiod0, {impliedEdits: {xtype: 'scaled'}}),\n yperiod0: extendFlat({}, scatterAttrs.yperiod0, {impliedEdits: {ytype: 'scaled'}}),\n xperiodalignment: extendFlat({}, scatterAttrs.xperiodalignment, {impliedEdits: {xtype: 'scaled'}}),\n yperiodalignment: extendFlat({}, scatterAttrs.yperiodalignment, {impliedEdits: {ytype: 'scaled'}}),\n\n text: {\n valType: 'data_array',\n editType: 'calc',\n },\n hovertext: {\n valType: 'data_array',\n editType: 'calc',\n },\n transpose: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n xtype: {\n valType: 'enumerated',\n values: ['array', 'scaled'],\n editType: 'calc+clearAxisTypes',\n },\n ytype: {\n valType: 'enumerated',\n values: ['array', 'scaled'],\n editType: 'calc+clearAxisTypes',\n },\n zsmooth: {\n valType: 'enumerated',\n values: ['fast', 'best', false],\n dflt: false,\n editType: 'calc',\n },\n hoverongaps: {\n valType: 'boolean',\n dflt: true,\n editType: 'none',\n },\n connectgaps: {\n valType: 'boolean',\n editType: 'calc',\n },\n xgap: {\n valType: 'number',\n dflt: 0,\n min: 0,\n editType: 'plot',\n },\n ygap: {\n valType: 'number',\n dflt: 0,\n min: 0,\n editType: 'plot',\n },\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n\n hovertemplate: hovertemplateAttrs(),\n texttemplate: texttemplateAttrs({\n arrayOk: false,\n editType: 'plot'\n }, {\n keys: ['x', 'y', 'z', 'text']\n }),\n textfont: fontAttrs({\n editType: 'plot',\n autoSize: true,\n autoColor: true,\n colorEditType: 'style',\n }),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n}, {\n transforms: undefined\n},\n colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],802:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nvar histogram2dCalc = _dereq_('../histogram2d/calc');\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar convertColumnData = _dereq_('./convert_column_xyz');\nvar clean2dArray = _dereq_('./clean_2d_array');\nvar interp2d = _dereq_('./interp2d');\nvar findEmpties = _dereq_('./find_empties');\nvar makeBoundArray = _dereq_('./make_bound_array');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function calc(gd, trace) {\n // prepare the raw data\n // run makeCalcdata on x and y even for heatmaps, in case of category mappings\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var isContour = Registry.traceIs(trace, 'contour');\n var isHist = Registry.traceIs(trace, 'histogram');\n var isGL2D = Registry.traceIs(trace, 'gl2d');\n var zsmooth = isContour ? 'best' : trace.zsmooth;\n var x, x0, dx, origX;\n var y, y0, dy, origY;\n var z, i, binned;\n\n // cancel minimum tick spacings (only applies to bars and boxes)\n xa._minDtick = 0;\n ya._minDtick = 0;\n\n if(isHist) {\n binned = histogram2dCalc(gd, trace);\n origX = binned.orig_x;\n x = binned.x;\n x0 = binned.x0;\n dx = binned.dx;\n\n origY = binned.orig_y;\n y = binned.y;\n y0 = binned.y0;\n dy = binned.dy;\n\n z = binned.z;\n } else {\n var zIn = trace.z;\n if(Lib.isArray1D(zIn)) {\n convertColumnData(trace, xa, ya, 'x', 'y', ['z']);\n x = trace._x;\n y = trace._y;\n zIn = trace._z;\n } else {\n origX = trace.x ? xa.makeCalcdata(trace, 'x') : [];\n origY = trace.y ? ya.makeCalcdata(trace, 'y') : [];\n x = alignPeriod(trace, xa, 'x', origX).vals;\n y = alignPeriod(trace, ya, 'y', origY).vals;\n trace._x = x;\n trace._y = y;\n }\n\n x0 = trace.x0;\n dx = trace.dx;\n y0 = trace.y0;\n dy = trace.dy;\n\n z = clean2dArray(zIn, trace, xa, ya);\n }\n\n if(xa.rangebreaks || ya.rangebreaks) {\n z = dropZonBreaks(x, y, z);\n\n if(!isHist) {\n x = skipBreaks(x);\n y = skipBreaks(y);\n\n trace._x = x;\n trace._y = y;\n }\n }\n\n if(!isHist && (isContour || trace.connectgaps)) {\n trace._emptypoints = findEmpties(z);\n interp2d(z, trace._emptypoints);\n }\n\n function noZsmooth(msg) {\n zsmooth = trace._input.zsmooth = trace.zsmooth = false;\n Lib.warn('cannot use zsmooth: \"fast\": ' + msg);\n }\n\n // check whether we really can smooth (ie all boxes are about the same size)\n if(zsmooth === 'fast') {\n if(xa.type === 'log' || ya.type === 'log') {\n noZsmooth('log axis found');\n } else if(!isHist) {\n if(x.length) {\n var avgdx = (x[x.length - 1] - x[0]) / (x.length - 1);\n var maxErrX = Math.abs(avgdx / 100);\n for(i = 0; i < x.length - 1; i++) {\n if(Math.abs(x[i + 1] - x[i] - avgdx) > maxErrX) {\n noZsmooth('x scale is not linear');\n break;\n }\n }\n }\n if(y.length && zsmooth === 'fast') {\n var avgdy = (y[y.length - 1] - y[0]) / (y.length - 1);\n var maxErrY = Math.abs(avgdy / 100);\n for(i = 0; i < y.length - 1; i++) {\n if(Math.abs(y[i + 1] - y[i] - avgdy) > maxErrY) {\n noZsmooth('y scale is not linear');\n break;\n }\n }\n }\n }\n }\n\n // create arrays of brick boundaries, to be used by autorange and heatmap.plot\n var xlen = Lib.maxRowLength(z);\n var xIn = trace.xtype === 'scaled' ? '' : x;\n var xArray = makeBoundArray(trace, xIn, x0, dx, xlen, xa);\n var yIn = trace.ytype === 'scaled' ? '' : y;\n var yArray = makeBoundArray(trace, yIn, y0, dy, z.length, ya);\n\n // handled in gl2d convert step\n if(!isGL2D) {\n trace._extremes[xa._id] = Axes.findExtremes(xa, xArray);\n trace._extremes[ya._id] = Axes.findExtremes(ya, yArray);\n }\n\n var cd0 = {\n x: xArray,\n y: yArray,\n z: z,\n text: trace._text || trace.text,\n hovertext: trace._hovertext || trace.hovertext\n };\n\n if(trace.xperiodalignment && origX) {\n cd0.orig_x = origX;\n }\n if(trace.yperiodalignment && origY) {\n cd0.orig_y = origY;\n }\n\n if(xIn && xIn.length === xArray.length - 1) cd0.xCenter = xIn;\n if(yIn && yIn.length === yArray.length - 1) cd0.yCenter = yIn;\n\n if(isHist) {\n cd0.xRanges = binned.xRanges;\n cd0.yRanges = binned.yRanges;\n cd0.pts = binned.pts;\n }\n\n if(!isContour) {\n colorscaleCalc(gd, trace, {vals: z, cLetter: 'z'});\n }\n\n if(isContour && trace.contours && trace.contours.coloring === 'heatmap') {\n var dummyTrace = {\n type: trace.type === 'contour' ? 'heatmap' : 'histogram2d',\n xcalendar: trace.xcalendar,\n ycalendar: trace.ycalendar\n };\n cd0.xfill = makeBoundArray(dummyTrace, xIn, x0, dx, xlen, xa);\n cd0.yfill = makeBoundArray(dummyTrace, yIn, y0, dy, z.length, ya);\n }\n\n return [cd0];\n};\n\nfunction skipBreaks(a) {\n var b = [];\n var len = a.length;\n for(var i = 0; i < len; i++) {\n var v = a[i];\n if(v !== BADNUM) b.push(v);\n }\n return b;\n}\n\nfunction dropZonBreaks(x, y, z) {\n var newZ = [];\n var k = -1;\n for(var i = 0; i < z.length; i++) {\n if(y[i] === BADNUM) continue;\n k++;\n newZ[k] = [];\n for(var j = 0; j < z[i].length; j++) {\n if(x[j] === BADNUM) continue;\n\n newZ[k].push(z[i][j]);\n }\n }\n return newZ;\n}\n\n},{\"../../components/colorscale/calc\":375,\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../histogram2d/calc\":835,\"./clean_2d_array\":803,\"./convert_column_xyz\":805,\"./find_empties\":807,\"./interp2d\":810,\"./make_bound_array\":812}],803:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function clean2dArray(zOld, trace, xa, ya) {\n var rowlen, collen, getCollen, old2new, i, j;\n\n function cleanZvalue(v) {\n if(!isNumeric(v)) return undefined;\n return +v;\n }\n\n if(trace && trace.transpose) {\n rowlen = 0;\n for(i = 0; i < zOld.length; i++) rowlen = Math.max(rowlen, zOld[i].length);\n if(rowlen === 0) return false;\n getCollen = function(zOld) { return zOld.length; };\n old2new = function(zOld, i, j) { return (zOld[j] || [])[i]; };\n } else {\n rowlen = zOld.length;\n getCollen = function(zOld, i) { return zOld[i].length; };\n old2new = function(zOld, i, j) { return (zOld[i] || [])[j]; };\n }\n\n var padOld2new = function(zOld, i, j) {\n if(i === BADNUM || j === BADNUM) return BADNUM;\n return old2new(zOld, i, j);\n };\n\n function axisMapping(ax) {\n if(trace && trace.type !== 'carpet' && trace.type !== 'contourcarpet' &&\n ax && ax.type === 'category' && trace['_' + ax._id.charAt(0)].length) {\n var axLetter = ax._id.charAt(0);\n var axMapping = {};\n var traceCategories = trace['_' + axLetter + 'CategoryMap'] || trace[axLetter];\n for(i = 0; i < traceCategories.length; i++) {\n axMapping[traceCategories[i]] = i;\n }\n return function(i) {\n var ind = axMapping[ax._categories[i]];\n return ind + 1 ? ind : BADNUM;\n };\n } else {\n return Lib.identity;\n }\n }\n\n var xMap = axisMapping(xa);\n var yMap = axisMapping(ya);\n\n if(ya && ya.type === 'category') rowlen = ya._categories.length;\n var zNew = new Array(rowlen);\n\n for(i = 0; i < rowlen; i++) {\n if(xa && xa.type === 'category') {\n collen = xa._categories.length;\n } else {\n collen = getCollen(zOld, i);\n }\n zNew[i] = new Array(collen);\n for(j = 0; j < collen; j++) zNew[i][j] = cleanZvalue(padOld2new(zOld, yMap(i), xMap(j)));\n }\n\n return zNew;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"fast-isnumeric\":190}],804:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n min: 'zmin',\n max: 'zmax'\n};\n\n},{}],805:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nmodule.exports = function convertColumnData(trace, ax1, ax2, var1Name, var2Name, arrayVarNames) {\n var colLen = trace._length;\n var col1 = ax1.makeCalcdata(trace, var1Name);\n var col2 = ax2.makeCalcdata(trace, var2Name);\n col1 = alignPeriod(trace, ax1, var1Name, col1).vals;\n col2 = alignPeriod(trace, ax2, var2Name, col2).vals;\n\n var textCol = trace.text;\n var hasColumnText = (textCol !== undefined && Lib.isArray1D(textCol));\n var hoverTextCol = trace.hovertext;\n var hasColumnHoverText = (hoverTextCol !== undefined && Lib.isArray1D(hoverTextCol));\n var i, j;\n\n var col1dv = Lib.distinctVals(col1);\n var col1vals = col1dv.vals;\n var col2dv = Lib.distinctVals(col2);\n var col2vals = col2dv.vals;\n var newArrays = [];\n var text;\n var hovertext;\n\n var nI = col2vals.length;\n var nJ = col1vals.length;\n\n for(i = 0; i < arrayVarNames.length; i++) {\n newArrays[i] = Lib.init2dArray(nI, nJ);\n }\n\n if(hasColumnText) {\n text = Lib.init2dArray(nI, nJ);\n }\n if(hasColumnHoverText) {\n hovertext = Lib.init2dArray(nI, nJ);\n }\n\n var after2before = Lib.init2dArray(nI, nJ);\n\n for(i = 0; i < colLen; i++) {\n if(col1[i] !== BADNUM && col2[i] !== BADNUM) {\n var i1 = Lib.findBin(col1[i] + col1dv.minDiff / 2, col1vals);\n var i2 = Lib.findBin(col2[i] + col2dv.minDiff / 2, col2vals);\n\n for(j = 0; j < arrayVarNames.length; j++) {\n var arrayVarName = arrayVarNames[j];\n var arrayVar = trace[arrayVarName];\n var newArray = newArrays[j];\n newArray[i2][i1] = arrayVar[i];\n after2before[i2][i1] = i;\n }\n\n if(hasColumnText) text[i2][i1] = textCol[i];\n if(hasColumnHoverText) hovertext[i2][i1] = hoverTextCol[i];\n }\n }\n\n trace['_' + var1Name] = col1vals;\n trace['_' + var2Name] = col2vals;\n for(j = 0; j < arrayVarNames.length; j++) {\n trace['_' + arrayVarNames[j]] = newArrays[j];\n }\n if(hasColumnText) trace._text = text;\n if(hasColumnHoverText) trace._hovertext = hovertext;\n\n if(ax1 && ax1.type === 'category') {\n trace['_' + var1Name + 'CategoryMap'] = col1vals.map(function(v) { return ax1._categories[v];});\n }\n\n if(ax2 && ax2.type === 'category') {\n trace['_' + var2Name + 'CategoryMap'] = col2vals.map(function(v) { return ax2._categories[v];});\n }\n\n trace._after2before = after2before;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563}],806:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('./xyz_defaults');\nvar handleHeatmapLabelDefaults = _dereq_('./label_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleStyleDefaults = _dereq_('./style_defaults');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var validData = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!validData) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n handleHeatmapLabelDefaults(coerce, layout);\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n\n coerce('hoverongaps');\n coerce('connectgaps', Lib.isArray1D(traceOut.z) && (traceOut.zsmooth !== false));\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"../scatter/period_defaults\":956,\"./attributes\":801,\"./label_defaults\":811,\"./style_defaults\":815,\"./xyz_defaults\":816}],807:[function(_dereq_,module,exports){\n'use strict';\n\nvar maxRowLength = _dereq_('../../lib').maxRowLength;\n\n/* Return a list of empty points in 2D array z\n * each empty point z[i][j] gives an array [i, j, neighborCount]\n * neighborCount is the count of 4 nearest neighbors that DO exist\n * this is to give us an order of points to evaluate for interpolation.\n * if no neighbors exist, we iteratively look for neighbors that HAVE\n * neighbors, and add a fractional neighborCount\n */\nmodule.exports = function findEmpties(z) {\n var empties = [];\n var neighborHash = {};\n var noNeighborList = [];\n var nextRow = z[0];\n var row = [];\n var blank = [0, 0, 0];\n var rowLength = maxRowLength(z);\n var prevRow;\n var i;\n var j;\n var thisPt;\n var p;\n var neighborCount;\n var newNeighborHash;\n var foundNewNeighbors;\n\n for(i = 0; i < z.length; i++) {\n prevRow = row;\n row = nextRow;\n nextRow = z[i + 1] || [];\n for(j = 0; j < rowLength; j++) {\n if(row[j] === undefined) {\n neighborCount = (row[j - 1] !== undefined ? 1 : 0) +\n (row[j + 1] !== undefined ? 1 : 0) +\n (prevRow[j] !== undefined ? 1 : 0) +\n (nextRow[j] !== undefined ? 1 : 0);\n\n if(neighborCount) {\n // for this purpose, don't count off-the-edge points\n // as undefined neighbors\n if(i === 0) neighborCount++;\n if(j === 0) neighborCount++;\n if(i === z.length - 1) neighborCount++;\n if(j === row.length - 1) neighborCount++;\n\n // if all neighbors that could exist do, we don't\n // need this for finding farther neighbors\n if(neighborCount < 4) {\n neighborHash[[i, j]] = [i, j, neighborCount];\n }\n\n empties.push([i, j, neighborCount]);\n } else noNeighborList.push([i, j]);\n }\n }\n }\n\n while(noNeighborList.length) {\n newNeighborHash = {};\n foundNewNeighbors = false;\n\n // look for cells that now have neighbors but didn't before\n for(p = noNeighborList.length - 1; p >= 0; p--) {\n thisPt = noNeighborList[p];\n i = thisPt[0];\n j = thisPt[1];\n\n neighborCount = ((neighborHash[[i - 1, j]] || blank)[2] +\n (neighborHash[[i + 1, j]] || blank)[2] +\n (neighborHash[[i, j - 1]] || blank)[2] +\n (neighborHash[[i, j + 1]] || blank)[2]) / 20;\n\n if(neighborCount) {\n newNeighborHash[thisPt] = [i, j, neighborCount];\n noNeighborList.splice(p, 1);\n foundNewNeighbors = true;\n }\n }\n\n if(!foundNewNeighbors) {\n throw 'findEmpties iterated with no new neighbors';\n }\n\n // put these new cells into the main neighbor list\n for(thisPt in newNeighborHash) {\n neighborHash[thisPt] = newNeighborHash[thisPt];\n empties.push(newNeighborHash[thisPt]);\n }\n }\n\n // sort the full list in descending order of neighbor count\n return empties.sort(function(a, b) { return b[2] - a[2]; });\n};\n\n},{\"../../lib\":515}],808:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n if(!opts) opts = {};\n var isContour = opts.isContour;\n\n var cd0 = pointData.cd[0];\n var trace = cd0.trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var x = cd0.x;\n var y = cd0.y;\n var z = cd0.z;\n var xc = cd0.xCenter;\n var yc = cd0.yCenter;\n var zmask = cd0.zmask;\n var zhoverformat = trace.zhoverformat;\n var x2 = x;\n var y2 = y;\n\n var xl, yl, nx, ny;\n\n if(pointData.index !== false) {\n try {\n nx = Math.round(pointData.index[1]);\n ny = Math.round(pointData.index[0]);\n } catch(e) {\n Lib.error('Error hovering on heatmap, ' +\n 'pointNumber must be [row,col], found:', pointData.index);\n return;\n }\n if(nx < 0 || nx >= z[0].length || ny < 0 || ny > z.length) {\n return;\n }\n } else if(Fx.inbox(xval - x[0], xval - x[x.length - 1], 0) > 0 ||\n Fx.inbox(yval - y[0], yval - y[y.length - 1], 0) > 0) {\n return;\n } else {\n if(isContour) {\n var i2;\n x2 = [2 * x[0] - x[1]];\n\n for(i2 = 1; i2 < x.length; i2++) {\n x2.push((x[i2] + x[i2 - 1]) / 2);\n }\n x2.push([2 * x[x.length - 1] - x[x.length - 2]]);\n\n y2 = [2 * y[0] - y[1]];\n for(i2 = 1; i2 < y.length; i2++) {\n y2.push((y[i2] + y[i2 - 1]) / 2);\n }\n y2.push([2 * y[y.length - 1] - y[y.length - 2]]);\n }\n nx = Math.max(0, Math.min(x2.length - 2, Lib.findBin(xval, x2)));\n ny = Math.max(0, Math.min(y2.length - 2, Lib.findBin(yval, y2)));\n }\n\n var x0 = xa.c2p(x[nx]);\n var x1 = xa.c2p(x[nx + 1]);\n var y0 = ya.c2p(y[ny]);\n var y1 = ya.c2p(y[ny + 1]);\n\n var _x, _y;\n if(isContour) {\n _x = cd0.orig_x || x;\n _y = cd0.orig_y || y;\n\n x1 = x0;\n xl = _x[nx];\n y1 = y0;\n yl = _y[ny];\n } else {\n _x = cd0.orig_x || xc || x;\n _y = cd0.orig_y || yc || y;\n\n xl = xc ? _x[nx] : ((_x[nx] + _x[nx + 1]) / 2);\n yl = yc ? _y[ny] : ((_y[ny] + _y[ny + 1]) / 2);\n\n if(xa && xa.type === 'category') xl = x[nx];\n if(ya && ya.type === 'category') yl = y[ny];\n\n if(trace.zsmooth) {\n x0 = x1 = xa.c2p(xl);\n y0 = y1 = ya.c2p(yl);\n }\n }\n\n var zVal = z[ny][nx];\n if(zmask && !zmask[ny][nx]) zVal = undefined;\n\n if(zVal === undefined && !trace.hoverongaps) return;\n\n var text;\n if(Array.isArray(cd0.hovertext) && Array.isArray(cd0.hovertext[ny])) {\n text = cd0.hovertext[ny][nx];\n } else if(Array.isArray(cd0.text) && Array.isArray(cd0.text[ny])) {\n text = cd0.text[ny][nx];\n }\n\n // dummy axis for formatting the z value\n var cOpts = extractOpts(trace);\n var dummyAx = {\n type: 'linear',\n range: [cOpts.min, cOpts.max],\n hoverformat: zhoverformat,\n _separators: xa._separators,\n _numFormat: xa._numFormat\n };\n var zLabel = Axes.tickText(dummyAx, zVal, 'hover').text;\n\n return [Lib.extendFlat(pointData, {\n index: trace._after2before ? trace._after2before[ny][nx] : [ny, nx],\n // never let a 2D override 1D type as closest point\n distance: pointData.maxHoverDistance,\n spikeDistance: pointData.maxSpikeDistance,\n x0: x0,\n x1: x1,\n y0: y0,\n y1: y1,\n xLabelVal: xl,\n yLabelVal: yl,\n zLabelVal: zVal,\n zLabel: zLabel,\n text: text\n })];\n};\n\n},{\"../../components/colorscale\":379,\"../../components/fx\":407,\"../../lib\":515,\"../../plots/cartesian/axes\":566}],809:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n colorbar: _dereq_('./colorbar'),\n style: _dereq_('./style'),\n hoverPoints: _dereq_('./hover'),\n\n moduleType: 'trace',\n name: 'heatmap',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"./attributes\":801,\"./calc\":802,\"./colorbar\":804,\"./defaults\":806,\"./hover\":808,\"./plot\":813,\"./style\":814}],810:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar INTERPTHRESHOLD = 1e-2;\nvar NEIGHBORSHIFTS = [[-1, 0], [1, 0], [0, -1], [0, 1]];\n\nfunction correctionOvershoot(maxFractionalChange) {\n // start with less overshoot, until we know it's converging,\n // then ramp up the overshoot for faster convergence\n return 0.5 - 0.25 * Math.min(1, maxFractionalChange * 0.5);\n}\n\n/*\n * interp2d: Fill in missing data from a 2D array using an iterative\n * poisson equation solver with zero-derivative BC at edges.\n * Amazingly, this just amounts to repeatedly averaging all the existing\n * nearest neighbors, at least if we don't take x/y scaling into account,\n * which is the right approach here where x and y may not even have the\n * same units.\n *\n * @param {array of arrays} z\n * The 2D array to fill in. Will be mutated here. Assumed to already be\n * cleaned, so all entries are numbers except gaps, which are `undefined`.\n * @param {array of arrays} emptyPoints\n * Each entry [i, j, neighborCount] for empty points z[i][j] and the number\n * of neighbors that are *not* missing. Assumed to be sorted from most to\n * least neighbors, as produced by heatmap/find_empties.\n */\nmodule.exports = function interp2d(z, emptyPoints) {\n var maxFractionalChange = 1;\n var i;\n\n // one pass to fill in a starting value for all the empties\n iterateInterp2d(z, emptyPoints);\n\n // we're don't need to iterate lone empties - remove them\n for(i = 0; i < emptyPoints.length; i++) {\n if(emptyPoints[i][2] < 4) break;\n }\n // but don't remove these points from the original array,\n // we'll use them for masking, so make a copy.\n emptyPoints = emptyPoints.slice(i);\n\n for(i = 0; i < 100 && maxFractionalChange > INTERPTHRESHOLD; i++) {\n maxFractionalChange = iterateInterp2d(z, emptyPoints,\n correctionOvershoot(maxFractionalChange));\n }\n if(maxFractionalChange > INTERPTHRESHOLD) {\n Lib.log('interp2d didn\\'t converge quickly', maxFractionalChange);\n }\n\n return z;\n};\n\nfunction iterateInterp2d(z, emptyPoints, overshoot) {\n var maxFractionalChange = 0;\n var thisPt;\n var i;\n var j;\n var p;\n var q;\n var neighborShift;\n var neighborRow;\n var neighborVal;\n var neighborCount;\n var neighborSum;\n var initialVal;\n var minNeighbor;\n var maxNeighbor;\n\n for(p = 0; p < emptyPoints.length; p++) {\n thisPt = emptyPoints[p];\n i = thisPt[0];\n j = thisPt[1];\n initialVal = z[i][j];\n neighborSum = 0;\n neighborCount = 0;\n\n for(q = 0; q < 4; q++) {\n neighborShift = NEIGHBORSHIFTS[q];\n neighborRow = z[i + neighborShift[0]];\n if(!neighborRow) continue;\n neighborVal = neighborRow[j + neighborShift[1]];\n if(neighborVal !== undefined) {\n if(neighborSum === 0) {\n minNeighbor = maxNeighbor = neighborVal;\n } else {\n minNeighbor = Math.min(minNeighbor, neighborVal);\n maxNeighbor = Math.max(maxNeighbor, neighborVal);\n }\n neighborCount++;\n neighborSum += neighborVal;\n }\n }\n\n if(neighborCount === 0) {\n throw 'iterateInterp2d order is wrong: no defined neighbors';\n }\n\n // this is the laplace equation interpolation:\n // each point is just the average of its neighbors\n // note that this ignores differential x/y scaling\n // which I think is the right approach, since we\n // don't know what that scaling means\n z[i][j] = neighborSum / neighborCount;\n\n if(initialVal === undefined) {\n if(neighborCount < 4) maxFractionalChange = 1;\n } else {\n // we can make large empty regions converge faster\n // if we overshoot the change vs the previous value\n z[i][j] = (1 + overshoot) * z[i][j] - overshoot * initialVal;\n\n if(maxNeighbor > minNeighbor) {\n maxFractionalChange = Math.max(maxFractionalChange,\n Math.abs(z[i][j] - initialVal) / (maxNeighbor - minNeighbor));\n }\n }\n }\n\n return maxFractionalChange;\n}\n\n},{\"../../lib\":515}],811:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleHeatmapLabelDefaults(coerce, layout) {\n coerce('texttemplate');\n\n var fontDflt = Lib.extendFlat({}, layout.font, {\n color: 'auto',\n size: 'auto'\n });\n Lib.coerceFont(coerce, 'textfont', fontDflt);\n};\n\n},{\"../../lib\":515}],812:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks, ax) {\n var arrayOut = [];\n var isContour = Registry.traceIs(trace, 'contour');\n var isHist = Registry.traceIs(trace, 'histogram');\n var isGL2D = Registry.traceIs(trace, 'gl2d');\n var v0;\n var dv;\n var i;\n\n var isArrayOfTwoItemsOrMore = isArrayOrTypedArray(arrayIn) && arrayIn.length > 1;\n\n if(isArrayOfTwoItemsOrMore && !isHist && (ax.type !== 'category')) {\n var len = arrayIn.length;\n\n // given vals are brick centers\n // hopefully length === numbricks, but use this method even if too few are supplied\n // and extend it linearly based on the last two points\n if(len <= numbricks) {\n // contour plots only want the centers\n if(isContour || isGL2D) arrayOut = arrayIn.slice(0, numbricks);\n else if(numbricks === 1) {\n arrayOut = [arrayIn[0] - 0.5, arrayIn[0] + 0.5];\n } else {\n arrayOut = [1.5 * arrayIn[0] - 0.5 * arrayIn[1]];\n\n for(i = 1; i < len; i++) {\n arrayOut.push((arrayIn[i - 1] + arrayIn[i]) * 0.5);\n }\n\n arrayOut.push(1.5 * arrayIn[len - 1] - 0.5 * arrayIn[len - 2]);\n }\n\n if(len < numbricks) {\n var lastPt = arrayOut[arrayOut.length - 1];\n var delta = lastPt - arrayOut[arrayOut.length - 2];\n\n for(i = len; i < numbricks; i++) {\n lastPt += delta;\n arrayOut.push(lastPt);\n }\n }\n } else {\n // hopefully length === numbricks+1, but do something regardless:\n // given vals are brick boundaries\n return isContour ?\n arrayIn.slice(0, numbricks) : // we must be strict for contours\n arrayIn.slice(0, numbricks + 1);\n }\n } else {\n var calendar = trace[ax._id.charAt(0) + 'calendar'];\n\n if(isHist) {\n v0 = ax.r2c(v0In, 0, calendar);\n } else {\n if(isArrayOrTypedArray(arrayIn) && arrayIn.length === 1) {\n v0 = arrayIn[0];\n } else if(v0In === undefined) {\n v0 = 0;\n } else {\n var fn = ax.type === 'log' ? ax.d2c : ax.r2c;\n v0 = fn(v0In, 0, calendar);\n }\n }\n\n dv = dvIn || 1;\n\n for(i = (isContour || isGL2D) ? 0 : -0.5; i < numbricks; i++) {\n arrayOut.push(v0 + dv * i);\n }\n }\n\n return arrayOut;\n};\n\n},{\"../../lib\":515,\"../../registry\":647}],813:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Registry = _dereq_('../../registry');\nvar Drawing = _dereq_('../../components/drawing');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar formatLabels = _dereq_('../scatter/format_labels');\nvar Color = _dereq_('../../components/color');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar makeColorScaleFuncFromTrace = _dereq_('../../components/colorscale').makeColorScaleFuncFromTrace;\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\n\nvar labelClass = 'heatmap-label';\n\nfunction selectLabels(plotGroup) {\n return plotGroup.selectAll('g.' + labelClass);\n}\n\nfunction removeLabels(plotGroup) {\n selectLabels(plotGroup).remove();\n}\n\nmodule.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(heatmapLayer, cdheatmaps, 'hm').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var xGap = trace.xgap || 0;\n var yGap = trace.ygap || 0;\n\n var z = cd0.z;\n var x = cd0.x;\n var y = cd0.y;\n var xc = cd0.xCenter;\n var yc = cd0.yCenter;\n var isContour = Registry.traceIs(trace, 'contour');\n var zsmooth = isContour ? 'best' : trace.zsmooth;\n\n // get z dims\n var m = z.length;\n var n = Lib.maxRowLength(z);\n var xrev = false;\n var yrev = false;\n\n var left, right, temp, top, bottom, i, j, k;\n\n // TODO: if there are multiple overlapping categorical heatmaps,\n // or if we allow category sorting, then the categories may not be\n // sequential... may need to reorder and/or expand z\n\n // Get edges of png in pixels (xa.c2p() maps axes coordinates to pixel coordinates)\n // figure out if either axis is reversed (y is usually reversed, in pixel coords)\n // also clip the image to maximum 50% outside the visible plot area\n // bigger image lets you pan more naturally, but slows performance.\n // TODO: use low-resolution images outside the visible plot for panning\n // these while loops find the first and last brick bounds that are defined\n // (in case of log of a negative)\n i = 0;\n while(left === undefined && i < x.length - 1) {\n left = xa.c2p(x[i]);\n i++;\n }\n i = x.length - 1;\n while(right === undefined && i > 0) {\n right = xa.c2p(x[i]);\n i--;\n }\n\n if(right < left) {\n temp = right;\n right = left;\n left = temp;\n xrev = true;\n }\n\n i = 0;\n while(top === undefined && i < y.length - 1) {\n top = ya.c2p(y[i]);\n i++;\n }\n i = y.length - 1;\n while(bottom === undefined && i > 0) {\n bottom = ya.c2p(y[i]);\n i--;\n }\n\n if(bottom < top) {\n temp = top;\n top = bottom;\n bottom = temp;\n yrev = true;\n }\n\n // for contours with heatmap fill, we generate the boundaries based on\n // brick centers but then use the brick edges for drawing the bricks\n if(isContour) {\n xc = x;\n yc = y;\n x = cd0.xfill;\n y = cd0.yfill;\n }\n\n // make an image that goes at most half a screen off either side, to keep\n // time reasonable when you zoom in. if zsmooth is true/fast, don't worry\n // about this, because zooming doesn't increase number of pixels\n // if zsmooth is best, don't include anything off screen because it takes too long\n if(zsmooth !== 'fast') {\n var extra = zsmooth === 'best' ? 0 : 0.5;\n left = Math.max(-extra * xa._length, left);\n right = Math.min((1 + extra) * xa._length, right);\n top = Math.max(-extra * ya._length, top);\n bottom = Math.min((1 + extra) * ya._length, bottom);\n }\n\n var imageWidth = Math.round(right - left);\n var imageHeight = Math.round(bottom - top);\n\n // setup image nodes\n\n // if image is entirely off-screen, don't even draw it\n var isOffScreen = (imageWidth <= 0 || imageHeight <= 0);\n\n if(isOffScreen) {\n var noImage = plotGroup.selectAll('image').data([]);\n noImage.exit().remove();\n\n removeLabels(plotGroup);\n return;\n }\n\n // generate image data\n\n var canvasW, canvasH;\n if(zsmooth === 'fast') {\n canvasW = n;\n canvasH = m;\n } else {\n canvasW = imageWidth;\n canvasH = imageHeight;\n }\n\n var canvas = document.createElement('canvas');\n canvas.width = canvasW;\n canvas.height = canvasH;\n var context = canvas.getContext('2d');\n\n var sclFunc = makeColorScaleFuncFromTrace(trace, {noNumericCheck: true, returnArray: true});\n\n // map brick boundaries to image pixels\n var xpx,\n ypx;\n if(zsmooth === 'fast') {\n xpx = xrev ?\n function(index) { return n - 1 - index; } :\n Lib.identity;\n ypx = yrev ?\n function(index) { return m - 1 - index; } :\n Lib.identity;\n } else {\n xpx = function(index) {\n return Lib.constrain(Math.round(xa.c2p(x[index]) - left),\n 0, imageWidth);\n };\n ypx = function(index) {\n return Lib.constrain(Math.round(ya.c2p(y[index]) - top),\n 0, imageHeight);\n };\n }\n\n // build the pixel map brick-by-brick\n // cruise through z-matrix row-by-row\n // build a brick at each z-matrix value\n var yi = ypx(0);\n var yb = [yi, yi];\n var xbi = xrev ? 0 : 1;\n var ybi = yrev ? 0 : 1;\n // for collecting an average luminosity of the heatmap\n var pixcount = 0;\n var rcount = 0;\n var gcount = 0;\n var bcount = 0;\n\n var xb, xi, v, row, c;\n\n function setColor(v, pixsize) {\n if(v !== undefined) {\n var c = sclFunc(v);\n c[0] = Math.round(c[0]);\n c[1] = Math.round(c[1]);\n c[2] = Math.round(c[2]);\n\n pixcount += pixsize;\n rcount += c[0] * pixsize;\n gcount += c[1] * pixsize;\n bcount += c[2] * pixsize;\n return c;\n }\n return [0, 0, 0, 0];\n }\n\n function interpColor(r0, r1, xinterp, yinterp) {\n var z00 = r0[xinterp.bin0];\n if(z00 === undefined) return setColor(undefined, 1);\n\n var z01 = r0[xinterp.bin1];\n var z10 = r1[xinterp.bin0];\n var z11 = r1[xinterp.bin1];\n var dx = (z01 - z00) || 0;\n var dy = (z10 - z00) || 0;\n var dxy;\n\n // the bilinear interpolation term needs different calculations\n // for all the different permutations of missing data\n // among the neighbors of the main point, to ensure\n // continuity across brick boundaries.\n if(z01 === undefined) {\n if(z11 === undefined) dxy = 0;\n else if(z10 === undefined) dxy = 2 * (z11 - z00);\n else dxy = (2 * z11 - z10 - z00) * 2 / 3;\n } else if(z11 === undefined) {\n if(z10 === undefined) dxy = 0;\n else dxy = (2 * z00 - z01 - z10) * 2 / 3;\n } else if(z10 === undefined) dxy = (2 * z11 - z01 - z00) * 2 / 3;\n else dxy = (z11 + z00 - z01 - z10);\n\n return setColor(z00 + xinterp.frac * dx + yinterp.frac * (dy + xinterp.frac * dxy));\n }\n\n if(zsmooth) { // best or fast, works fastest with imageData\n var pxIndex = 0;\n var pixels;\n\n try {\n pixels = new Uint8Array(imageWidth * imageHeight * 4);\n } catch(e) {\n pixels = new Array(imageWidth * imageHeight * 4);\n }\n\n if(zsmooth === 'best') {\n var xForPx = xc || x;\n var yForPx = yc || y;\n var xPixArray = new Array(xForPx.length);\n var yPixArray = new Array(yForPx.length);\n var xinterpArray = new Array(imageWidth);\n var findInterpX = xc ? findInterpFromCenters : findInterp;\n var findInterpY = yc ? findInterpFromCenters : findInterp;\n var yinterp, r0, r1;\n\n // first make arrays of x and y pixel locations of brick boundaries\n for(i = 0; i < xForPx.length; i++) xPixArray[i] = Math.round(xa.c2p(xForPx[i]) - left);\n for(i = 0; i < yForPx.length; i++) yPixArray[i] = Math.round(ya.c2p(yForPx[i]) - top);\n\n // then make arrays of interpolations\n // (bin0=closest, bin1=next, frac=fractional dist.)\n for(i = 0; i < imageWidth; i++) xinterpArray[i] = findInterpX(i, xPixArray);\n\n // now do the interpolations and fill the png\n for(j = 0; j < imageHeight; j++) {\n yinterp = findInterpY(j, yPixArray);\n r0 = z[yinterp.bin0];\n r1 = z[yinterp.bin1];\n for(i = 0; i < imageWidth; i++, pxIndex += 4) {\n c = interpColor(r0, r1, xinterpArray[i], yinterp);\n putColor(pixels, pxIndex, c);\n }\n }\n } else { // zsmooth = fast\n for(j = 0; j < m; j++) {\n row = z[j];\n yb = ypx(j);\n for(i = 0; i < imageWidth; i++) {\n c = setColor(row[i], 1);\n pxIndex = (yb * imageWidth + xpx(i)) * 4;\n putColor(pixels, pxIndex, c);\n }\n }\n }\n\n var imageData = context.createImageData(imageWidth, imageHeight);\n try {\n imageData.data.set(pixels);\n } catch(e) {\n var pxArray = imageData.data;\n var dlen = pxArray.length;\n for(j = 0; j < dlen; j ++) {\n pxArray[j] = pixels[j];\n }\n }\n\n context.putImageData(imageData, 0, 0);\n } else { // zsmooth = false -> filling potentially large bricks works fastest with fillRect\n // gaps do not need to be exact integers, but if they *are* we will get\n // cleaner edges by rounding at least one edge\n var xGapLeft = Math.floor(xGap / 2);\n var yGapTop = Math.floor(yGap / 2);\n\n for(j = 0; j < m; j++) {\n row = z[j];\n yb.reverse();\n yb[ybi] = ypx(j + 1);\n if(yb[0] === yb[1] || yb[0] === undefined || yb[1] === undefined) {\n continue;\n }\n xi = xpx(0);\n xb = [xi, xi];\n for(i = 0; i < n; i++) {\n // build one color brick!\n xb.reverse();\n xb[xbi] = xpx(i + 1);\n if(xb[0] === xb[1] || xb[0] === undefined || xb[1] === undefined) {\n continue;\n }\n v = row[i];\n c = setColor(v, (xb[1] - xb[0]) * (yb[1] - yb[0]));\n context.fillStyle = 'rgba(' + c.join(',') + ')';\n\n context.fillRect(xb[0] + xGapLeft, yb[0] + yGapTop,\n xb[1] - xb[0] - xGap, yb[1] - yb[0] - yGap);\n }\n }\n }\n\n rcount = Math.round(rcount / pixcount);\n gcount = Math.round(gcount / pixcount);\n bcount = Math.round(bcount / pixcount);\n var avgColor = tinycolor('rgb(' + rcount + ',' + gcount + ',' + bcount + ')');\n\n gd._hmpixcount = (gd._hmpixcount||0) + pixcount;\n gd._hmlumcount = (gd._hmlumcount||0) + pixcount * avgColor.getLuminance();\n\n var image3 = plotGroup.selectAll('image')\n .data(cd);\n\n image3.enter().append('svg:image').attr({\n xmlns: xmlnsNamespaces.svg,\n preserveAspectRatio: 'none'\n });\n\n image3.attr({\n height: imageHeight,\n width: imageWidth,\n x: left,\n y: top,\n 'xlink:href': canvas.toDataURL('image/png')\n });\n\n removeLabels(plotGroup);\n\n var texttemplate = trace.texttemplate;\n if(texttemplate) {\n // dummy axis for formatting the z value\n var cOpts = extractOpts(trace);\n var dummyAx = {\n type: 'linear',\n range: [cOpts.min, cOpts.max],\n _separators: xa._separators,\n _numFormat: xa._numFormat\n };\n\n var aHistogram2dContour = trace.type === 'histogram2dcontour';\n var aContour = trace.type === 'contour';\n var iStart = aContour ? 1 : 0;\n var iStop = aContour ? m - 1 : m;\n var jStart = aContour ? 1 : 0;\n var jStop = aContour ? n - 1 : n;\n\n var textData = [];\n for(i = iStart; i < iStop; i++) {\n var yVal;\n if(aContour) {\n yVal = cd0.y[i];\n } else if(aHistogram2dContour) {\n if(i === 0 || i === m - 1) continue;\n yVal = cd0.y[i];\n } else if(cd0.yCenter) {\n yVal = cd0.yCenter[i];\n } else {\n if(i + 1 === m && cd0.y[i + 1] === undefined) continue;\n yVal = (cd0.y[i] + cd0.y[i + 1]) / 2;\n }\n\n var _y = Math.round(ya.c2p(yVal));\n if(0 > _y || _y > ya._length) continue;\n\n for(j = jStart; j < jStop; j++) {\n var xVal;\n if(aContour) {\n xVal = cd0.x[j];\n } else if(aHistogram2dContour) {\n if(j === 0 || j === n - 1) continue;\n xVal = cd0.x[j];\n } else if(cd0.xCenter) {\n xVal = cd0.xCenter[j];\n } else {\n if(j + 1 === n && cd0.x[j + 1] === undefined) continue;\n xVal = (cd0.x[j] + cd0.x[j + 1]) / 2;\n }\n\n var _x = Math.round(xa.c2p(xVal));\n if(0 > _x || _x > xa._length) continue;\n\n var obj = formatLabels({\n x: xVal,\n y: yVal\n }, trace, gd._fullLayout);\n\n obj.x = xVal;\n obj.y = yVal;\n\n var zVal = cd0.z[i][j];\n if(zVal === undefined) {\n obj.z = '';\n obj.zLabel = '';\n } else {\n obj.z = zVal;\n obj.zLabel = Axes.tickText(dummyAx, zVal, 'hover').text;\n }\n\n var theText = cd0.text && cd0.text[i] && cd0.text[i][j];\n if(theText === undefined || theText === false) theText = '';\n obj.text = theText;\n\n var _t = Lib.texttemplateString(texttemplate, obj, gd._fullLayout._d3locale, obj, trace._meta || {});\n if(!_t) continue;\n\n var lines = _t.split('
');\n var nL = lines.length;\n var nC = 0;\n for(k = 0; k < nL; k++) {\n nC = Math.max(nC, lines[k].length);\n }\n\n textData.push({\n l: nL, // number of lines\n c: nC, // maximum number of chars in a line\n t: _t, // text\n x: _x,\n y: _y,\n z: zVal\n });\n }\n }\n\n var font = trace.textfont;\n var fontFamily = font.family;\n var fontSize = font.size;\n var globalFontSize = gd._fullLayout.font.size;\n\n if(!fontSize || fontSize === 'auto') {\n var minW = Infinity;\n var minH = Infinity;\n var maxL = 0;\n var maxC = 0;\n\n for(k = 0; k < textData.length; k++) {\n var d = textData[k];\n maxL = Math.max(maxL, d.l);\n maxC = Math.max(maxC, d.c);\n\n if(k < textData.length - 1) {\n var nextD = textData[k + 1];\n var dx = Math.abs(nextD.x - d.x);\n var dy = Math.abs(nextD.y - d.y);\n\n if(dx) minW = Math.min(minW, dx);\n if(dy) minH = Math.min(minH, dy);\n }\n }\n\n if(\n !isFinite(minW) ||\n !isFinite(minH)\n ) {\n fontSize = globalFontSize;\n } else {\n minW -= xGap;\n minH -= yGap;\n\n minW /= maxC;\n minH /= maxL;\n\n minW /= LINE_SPACING / 2;\n minH /= LINE_SPACING;\n\n fontSize = Math.min(\n Math.floor(minW),\n Math.floor(minH),\n globalFontSize\n );\n }\n }\n if(fontSize <= 0 || !isFinite(fontSize)) return;\n\n var xFn = function(d) { return d.x; };\n var yFn = function(d) {\n return d.y - fontSize * ((d.l * LINE_SPACING) / 2 - 1);\n };\n\n var labels = selectLabels(plotGroup).data(textData);\n\n labels\n .enter()\n .append('g')\n .classed(labelClass, 1)\n .append('text')\n .attr('text-anchor', 'middle')\n .each(function(d) {\n var thisLabel = d3.select(this);\n\n var fontColor = font.color;\n if(!fontColor || fontColor === 'auto') {\n fontColor = Color.contrast(\n 'rgba(' +\n sclFunc(d.z).join() +\n ')'\n );\n }\n\n thisLabel\n .attr('data-notex', 1)\n .call(svgTextUtils.positionText, xFn(d), yFn(d))\n .call(Drawing.font, fontFamily, fontSize, fontColor)\n .text(d.t)\n .call(svgTextUtils.convertToTspans, gd);\n });\n }\n });\n};\n\n// get interpolated bin value. Returns {bin0:closest bin, frac:fractional dist to next, bin1:next bin}\nfunction findInterp(pixel, pixArray) {\n var maxBin = pixArray.length - 2;\n var bin = Lib.constrain(Lib.findBin(pixel, pixArray), 0, maxBin);\n var pix0 = pixArray[bin];\n var pix1 = pixArray[bin + 1];\n var interp = Lib.constrain(bin + (pixel - pix0) / (pix1 - pix0) - 0.5, 0, maxBin);\n var bin0 = Math.round(interp);\n var frac = Math.abs(interp - bin0);\n\n if(!interp || interp === maxBin || !frac) {\n return {\n bin0: bin0,\n bin1: bin0,\n frac: 0\n };\n }\n return {\n bin0: bin0,\n frac: frac,\n bin1: Math.round(bin0 + frac / (interp - bin0))\n };\n}\n\nfunction findInterpFromCenters(pixel, centerPixArray) {\n var maxBin = centerPixArray.length - 1;\n var bin = Lib.constrain(Lib.findBin(pixel, centerPixArray), 0, maxBin);\n var pix0 = centerPixArray[bin];\n var pix1 = centerPixArray[bin + 1];\n var frac = ((pixel - pix0) / (pix1 - pix0)) || 0;\n if(frac <= 0) {\n return {\n bin0: bin,\n bin1: bin,\n frac: 0\n };\n }\n if(frac < 0.5) {\n return {\n bin0: bin,\n bin1: bin + 1,\n frac: frac\n };\n }\n return {\n bin0: bin + 1,\n bin1: bin,\n frac: 1 - frac\n };\n}\n\nfunction putColor(pixels, pxIndex, c) {\n pixels[pxIndex] = c[0];\n pixels[pxIndex + 1] = c[1];\n pixels[pxIndex + 2] = c[2];\n pixels[pxIndex + 3] = Math.round(c[3] * 255);\n}\n\n},{\"../../components/color\":367,\"../../components/colorscale\":379,\"../../components/drawing\":389,\"../../constants/alignment\":483,\"../../constants/xmlns_namespaces\":492,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../scatter/format_labels\":945,\"@plotly/d3\":58,\"tinycolor2\":313}],814:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nmodule.exports = function style(gd) {\n d3.select(gd).selectAll('.hm image')\n .style('opacity', function(d) {\n return d.trace.opacity;\n });\n};\n\n},{\"@plotly/d3\":58}],815:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function handleStyleDefaults(traceIn, traceOut, coerce) {\n var zsmooth = coerce('zsmooth');\n if(zsmooth === false) {\n // ensure that xgap and ygap are coerced only when zsmooth allows them to have an effect.\n coerce('xgap');\n coerce('ygap');\n }\n\n coerce('zhoverformat');\n};\n\n},{}],816:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\n\nvar Registry = _dereq_('../../registry');\n\nmodule.exports = function handleXYZDefaults(traceIn, traceOut, coerce, layout, xName, yName) {\n var z = coerce('z');\n xName = xName || 'x';\n yName = yName || 'y';\n var x, y;\n\n if(z === undefined || !z.length) return 0;\n\n if(Lib.isArray1D(traceIn.z)) {\n x = coerce(xName);\n y = coerce(yName);\n\n var xlen = Lib.minRowLength(x);\n var ylen = Lib.minRowLength(y);\n\n // column z must be accompanied by xName and yName arrays\n if(xlen === 0 || ylen === 0) return 0;\n\n traceOut._length = Math.min(xlen, ylen, z.length);\n } else {\n x = coordDefaults(xName, coerce);\n y = coordDefaults(yName, coerce);\n\n // TODO put z validation elsewhere\n if(!isValidZ(z)) return 0;\n\n coerce('transpose');\n\n traceOut._length = null;\n }\n\n if(traceIn.type === 'heatmapgl') return true; // skip calendars until we handle them in those traces\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, [xName, yName], layout);\n\n return true;\n};\n\nfunction coordDefaults(coordStr, coerce) {\n var coord = coerce(coordStr);\n var coordType = coord ? coerce(coordStr + 'type', 'array') : 'scaled';\n\n if(coordType === 'scaled') {\n coerce(coordStr + '0');\n coerce('d' + coordStr);\n }\n\n return coord;\n}\n\nfunction isValidZ(z) {\n var allRowsAreArrays = true;\n var oneRowIsFilled = false;\n var hasOneNumber = false;\n var zi;\n\n /*\n * Without this step:\n *\n * hasOneNumber = false breaks contour but not heatmap\n * allRowsAreArrays = false breaks contour but not heatmap\n * oneRowIsFilled = false breaks both\n */\n\n for(var i = 0; i < z.length; i++) {\n zi = z[i];\n if(!Lib.isArrayOrTypedArray(zi)) {\n allRowsAreArrays = false;\n break;\n }\n if(zi.length > 0) oneRowIsFilled = true;\n for(var j = 0; j < zi.length; j++) {\n if(isNumeric(zi[j])) {\n hasOneNumber = true;\n break;\n }\n }\n }\n\n return (allRowsAreArrays && oneRowIsFilled && hasOneNumber);\n}\n\n},{\"../../lib\":515,\"../../registry\":647,\"fast-isnumeric\":190}],817:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar commonList = [\n 'z',\n 'x', 'x0', 'dx',\n 'y', 'y0', 'dy',\n 'text', 'transpose',\n 'xtype', 'ytype'\n];\n\nvar attrs = {};\n\nfor(var i = 0; i < commonList.length; i++) {\n var k = commonList[i];\n attrs[k] = heatmapAttrs[k];\n}\n\nattrs.zsmooth = {\n valType: 'enumerated',\n values: ['fast', false],\n dflt: 'fast',\n editType: 'calc',\n};\n\nextendFlat(\n attrs,\n colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})\n);\n\nmodule.exports = overrideAll(attrs, 'calc', 'nested');\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../heatmap/attributes\":801}],818:[function(_dereq_,module,exports){\n'use strict';\n\nvar createHeatmap2D = _dereq_('../../../stackgl_modules').gl_heatmap2d;\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar str2RGBArray = _dereq_('../../lib/str2rgbarray');\n\n\nfunction Heatmap(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.type = 'heatmapgl';\n\n this.name = '';\n this.hoverinfo = 'all';\n\n this.xData = [];\n this.yData = [];\n this.zData = [];\n this.textLabels = [];\n\n this.idToIndex = [];\n this.bounds = [0, 0, 0, 0];\n\n this.options = {\n zsmooth: 'fast',\n z: [],\n x: [],\n y: [],\n shape: [0, 0],\n colorLevels: [0],\n colorValues: [0, 0, 0, 1]\n };\n\n this.heatmap = createHeatmap2D(scene.glplot, this.options);\n this.heatmap._trace = this;\n}\n\nvar proto = Heatmap.prototype;\n\nproto.handlePick = function(pickResult) {\n var options = this.options;\n var shape = options.shape;\n var index = pickResult.pointId;\n var xIndex = index % shape[0];\n var yIndex = Math.floor(index / shape[0]);\n var zIndex = index;\n\n return {\n trace: this,\n dataCoord: pickResult.dataCoord,\n traceCoord: [\n options.x[xIndex],\n options.y[yIndex],\n options.z[zIndex]\n ],\n textLabel: this.textLabels[index],\n name: this.name,\n pointIndex: [yIndex, xIndex],\n hoverinfo: this.hoverinfo\n };\n};\n\nproto.update = function(fullTrace, calcTrace) {\n var calcPt = calcTrace[0];\n\n this.index = fullTrace.index;\n this.name = fullTrace.name;\n this.hoverinfo = fullTrace.hoverinfo;\n\n // convert z from 2D -> 1D\n var z = calcPt.z;\n this.options.z = [].concat.apply([], z);\n\n var rowLen = z[0].length;\n var colLen = z.length;\n this.options.shape = [rowLen, colLen];\n\n this.options.x = calcPt.x;\n this.options.y = calcPt.y;\n this.options.zsmooth = fullTrace.zsmooth;\n\n var colorOptions = convertColorscale(fullTrace);\n this.options.colorLevels = colorOptions.colorLevels;\n this.options.colorValues = colorOptions.colorValues;\n\n // convert text from 2D -> 1D\n this.textLabels = [].concat.apply([], fullTrace.text);\n\n this.heatmap.update(this.options);\n\n var xa = this.scene.xaxis;\n var ya = this.scene.yaxis;\n\n var xOpts, yOpts;\n if(fullTrace.zsmooth === false) {\n // increase padding for discretised heatmap as suggested by Louise Ord\n xOpts = { ppad: calcPt.x[1] - calcPt.x[0] };\n yOpts = { ppad: calcPt.y[1] - calcPt.y[0] };\n }\n\n fullTrace._extremes[xa._id] = Axes.findExtremes(xa, calcPt.x, xOpts);\n fullTrace._extremes[ya._id] = Axes.findExtremes(ya, calcPt.y, yOpts);\n};\n\nproto.dispose = function() {\n this.heatmap.dispose();\n};\n\nfunction convertColorscale(fullTrace) {\n var scl = fullTrace.colorscale;\n var zmin = fullTrace.zmin;\n var zmax = fullTrace.zmax;\n\n var N = scl.length;\n var domain = new Array(N);\n var range = new Array(4 * N);\n\n for(var i = 0; i < N; i++) {\n var si = scl[i];\n var color = str2RGBArray(si[1]);\n\n domain[i] = zmin + si[0] * (zmax - zmin);\n\n for(var j = 0; j < 4; j++) {\n range[(4 * i) + j] = color[j];\n }\n }\n\n return {\n colorLevels: domain,\n colorValues: range\n };\n}\n\nfunction createHeatmap(scene, fullTrace, calcTrace) {\n var plot = new Heatmap(scene, fullTrace.uid);\n plot.update(fullTrace, calcTrace);\n return plot;\n}\n\nmodule.exports = createHeatmap;\n\n},{\"../../../stackgl_modules\":1133,\"../../lib/str2rgbarray\":540,\"../../plots/cartesian/axes\":566}],819:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleXYZDefaults = _dereq_('../heatmap/xyz_defaults');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var validData = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!validData) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('zsmooth');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"../heatmap/xyz_defaults\":816,\"./attributes\":817}],820:[function(_dereq_,module,exports){\n'use strict';\n\nvar deprecationWarning = [\n '*heatmapgl* trace is deprecated!',\n 'Please consider switching to the *heatmap* or *image* trace types.',\n 'Alternatively you could contribute/sponsor rewriting this trace type',\n 'based on cartesian features and using regl framework.'\n].join(' ');\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../heatmap/colorbar'),\n\n calc: _dereq_('../heatmap/calc'),\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'heatmapgl',\n basePlotModule: _dereq_('../../plots/gl2d'),\n categories: ['gl', 'gl2d', '2dMap'],\n meta: {\n }\n};\n\n},{\"../../plots/gl2d\":605,\"../heatmap/calc\":802,\"../heatmap/colorbar\":804,\"./attributes\":817,\"./convert\":818,\"./defaults\":819}],821:[function(_dereq_,module,exports){\n'use strict';\n\nvar barAttrs = _dereq_('../bar/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar makeBinAttrs = _dereq_('./bin_attributes');\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n text: extendFlat({}, barAttrs.text, {\n }),\n hovertext: extendFlat({}, barAttrs.hovertext, {\n }),\n orientation: barAttrs.orientation,\n\n histfunc: {\n valType: 'enumerated',\n values: ['count', 'sum', 'avg', 'min', 'max'],\n dflt: 'count',\n editType: 'calc',\n },\n histnorm: {\n valType: 'enumerated',\n values: ['', 'percent', 'probability', 'density', 'probability density'],\n dflt: '',\n editType: 'calc',\n },\n\n cumulative: {\n enabled: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n direction: {\n valType: 'enumerated',\n values: ['increasing', 'decreasing'],\n dflt: 'increasing',\n editType: 'calc',\n },\n\n currentbin: {\n valType: 'enumerated',\n values: ['include', 'exclude', 'half'],\n dflt: 'include',\n editType: 'calc',\n },\n editType: 'calc'\n },\n nbinsx: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n xbins: makeBinAttrs('x', true),\n\n nbinsy: {\n valType: 'integer',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n ybins: makeBinAttrs('y', true),\n autobinx: {\n valType: 'boolean',\n dflt: null,\n editType: 'calc',\n },\n autobiny: {\n valType: 'boolean',\n dflt: null,\n editType: 'calc',\n },\n\n bingroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n texttemplate: texttemplateAttrs({\n arrayOk: false,\n editType: 'plot'\n }, {\n keys: ['label', 'value']\n }),\n\n textposition: extendFlat({}, barAttrs.textposition, {\n arrayOk: false\n }),\n\n textfont: fontAttrs({\n arrayOk: false,\n editType: 'plot',\n colorEditType: 'style',\n }),\n\n outsidetextfont: fontAttrs({\n arrayOk: false,\n editType: 'plot',\n colorEditType: 'style',\n }),\n\n insidetextfont: fontAttrs({\n arrayOk: false,\n editType: 'plot',\n colorEditType: 'style',\n }),\n\n insidetextanchor: barAttrs.insidetextanchor,\n\n textangle: barAttrs.textangle,\n cliponaxis: barAttrs.cliponaxis,\n constraintext: barAttrs.constraintext,\n\n marker: barAttrs.marker,\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup,\n\n selected: barAttrs.selected,\n unselected: barAttrs.unselected,\n\n _deprecated: {\n bardir: barAttrs._deprecated.bardir\n }\n};\n\n},{\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642,\"../bar/attributes\":657,\"./bin_attributes\":823,\"./constants\":827}],822:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = function doAvg(size, counts) {\n var nMax = size.length;\n var total = 0;\n for(var i = 0; i < nMax; i++) {\n if(counts[i]) {\n size[i] /= counts[i];\n total += size[i];\n } else size[i] = null;\n }\n return total;\n};\n\n},{}],823:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function makeBinAttrs(axLetter, match) {\n return {\n start: {\n valType: 'any', // for date axes\n editType: 'calc',\n },\n end: {\n valType: 'any', // for date axes\n editType: 'calc',\n },\n size: {\n valType: 'any', // for date axes\n editType: 'calc',\n },\n editType: 'calc'\n };\n};\n\n},{}],824:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\n\nmodule.exports = {\n count: function(n, i, size) {\n size[n]++;\n return 1;\n },\n\n sum: function(n, i, size, counterData) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n size[n] += v;\n return v;\n }\n return 0;\n },\n\n avg: function(n, i, size, counterData, counts) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n size[n] += v;\n counts[n]++;\n }\n return 0;\n },\n\n min: function(n, i, size, counterData) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n if(!isNumeric(size[n])) {\n size[n] = v;\n return v;\n } else if(size[n] > v) {\n var delta = v - size[n];\n size[n] = v;\n return delta;\n }\n }\n return 0;\n },\n\n max: function(n, i, size, counterData) {\n var v = counterData[i];\n if(isNumeric(v)) {\n v = Number(v);\n if(!isNumeric(size[n])) {\n size[n] = v;\n return v;\n } else if(size[n] < v) {\n var delta = v - size[n];\n size[n] = v;\n return delta;\n }\n }\n return 0;\n }\n};\n\n},{\"fast-isnumeric\":190}],825:[function(_dereq_,module,exports){\n'use strict';\n\nvar numConstants = _dereq_('../../constants/numerical');\nvar oneYear = numConstants.ONEAVGYEAR;\nvar oneMonth = numConstants.ONEAVGMONTH;\nvar oneDay = numConstants.ONEDAY;\nvar oneHour = numConstants.ONEHOUR;\nvar oneMin = numConstants.ONEMIN;\nvar oneSec = numConstants.ONESEC;\nvar tickIncrement = _dereq_('../../plots/cartesian/axes').tickIncrement;\n\n\n/*\n * make a function that will find rounded bin edges\n * @param {number} leftGap: how far from the left edge of any bin is the closest data value?\n * @param {number} rightGap: how far from the right edge of any bin is the closest data value?\n * @param {Array[number]} binEdges: the actual edge values used in binning\n * @param {object} pa: the position axis\n * @param {string} calendar: the data calendar\n *\n * @return {function(v, isRightEdge)}:\n * find the start (isRightEdge is falsy) or end (truthy) label value for a bin edge `v`\n */\nmodule.exports = function getBinSpanLabelRound(leftGap, rightGap, binEdges, pa, calendar) {\n // the rounding digit is the largest digit that changes in *all* of 4 regions:\n // - inside the rightGap before binEdges[0] (shifted 10% to the left)\n // - inside the leftGap after binEdges[0] (expanded by 10% of rightGap on each end)\n // - same for binEdges[1]\n var dv0 = -1.1 * rightGap;\n var dv1 = -0.1 * rightGap;\n var dv2 = leftGap - dv1;\n var edge0 = binEdges[0];\n var edge1 = binEdges[1];\n var leftDigit = Math.min(\n biggestDigitChanged(edge0 + dv1, edge0 + dv2, pa, calendar),\n biggestDigitChanged(edge1 + dv1, edge1 + dv2, pa, calendar)\n );\n var rightDigit = Math.min(\n biggestDigitChanged(edge0 + dv0, edge0 + dv1, pa, calendar),\n biggestDigitChanged(edge1 + dv0, edge1 + dv1, pa, calendar)\n );\n\n // normally we try to make the label for the right edge different from\n // the left edge label, so it's unambiguous which bin gets data on the edge.\n // but if this results in more than 3 extra digits (or for dates, more than\n // 2 fields ie hr&min or min&sec, which is 3600x), it'll be more clutter than\n // useful so keep the label cleaner instead\n var digit, disambiguateEdges;\n if(leftDigit > rightDigit && rightDigit < Math.abs(edge1 - edge0) / 4000) {\n digit = leftDigit;\n disambiguateEdges = false;\n } else {\n digit = Math.min(leftDigit, rightDigit);\n disambiguateEdges = true;\n }\n\n if(pa.type === 'date' && digit > oneDay) {\n var dashExclude = (digit === oneYear) ? 1 : 6;\n var increment = (digit === oneYear) ? 'M12' : 'M1';\n\n return function(v, isRightEdge) {\n var dateStr = pa.c2d(v, oneYear, calendar);\n var dashPos = dateStr.indexOf('-', dashExclude);\n if(dashPos > 0) dateStr = dateStr.substr(0, dashPos);\n var roundedV = pa.d2c(dateStr, 0, calendar);\n\n if(roundedV < v) {\n var nextV = tickIncrement(roundedV, increment, false, calendar);\n if((roundedV + nextV) / 2 < v + leftGap) roundedV = nextV;\n }\n\n if(isRightEdge && disambiguateEdges) {\n return tickIncrement(roundedV, increment, true, calendar);\n }\n\n return roundedV;\n };\n }\n\n return function(v, isRightEdge) {\n var roundedV = digit * Math.round(v / digit);\n // if we rounded down and we could round up and still be < leftGap\n // (or what leftGap values round to), do that\n if(roundedV + (digit / 10) < v && roundedV + (digit * 0.9) < v + leftGap) {\n roundedV += digit;\n }\n // finally for the right edge back off one digit - but only if we can do that\n // and not clip off any data that's potentially in the bin\n if(isRightEdge && disambiguateEdges) {\n roundedV -= digit;\n }\n return roundedV;\n };\n};\n\n/*\n * Find the largest digit that changes within a (calcdata) region [v1, v2]\n * if dates, \"digit\" means date/time part when it's bigger than a second\n * returns the unit value to round to this digit, eg 0.01 to round to hundredths, or\n * 100 to round to hundreds. returns oneMonth or oneYear for month or year rounding,\n * so that Math.min will work, rather than 'M1' and 'M12'\n */\nfunction biggestDigitChanged(v1, v2, pa, calendar) {\n // are we crossing zero? can't say anything.\n // in principle this doesn't apply to dates but turns out this doesn't matter.\n if(v1 * v2 <= 0) return Infinity;\n\n var dv = Math.abs(v2 - v1);\n var isDate = pa.type === 'date';\n var digit = biggestGuaranteedDigitChanged(dv, isDate);\n // see if a larger digit also changed\n for(var i = 0; i < 10; i++) {\n // numbers: next digit needs to be >10x but <100x then gets rounded down.\n // dates: next digit can be as much as 60x (then rounded down)\n var nextDigit = biggestGuaranteedDigitChanged(digit * 80, isDate);\n // if we get to years, the chain stops\n if(digit === nextDigit) break;\n if(didDigitChange(nextDigit, v1, v2, isDate, pa, calendar)) digit = nextDigit;\n else break;\n }\n return digit;\n}\n\n/*\n * Find the largest digit that *definitely* changes in a region [v, v + dv] for any v\n * for nonuniform date regions (months/years) pick the largest\n */\nfunction biggestGuaranteedDigitChanged(dv, isDate) {\n if(isDate && dv > oneSec) {\n // this is supposed to be the biggest *guaranteed* change\n // so compare to the longest month and year across any calendar,\n // and we'll iterate back up later\n // note: does not support rounding larger than one year. We could add\n // that if anyone wants it, but seems unusual and not strictly necessary.\n if(dv > oneDay) {\n if(dv > oneYear * 1.1) return oneYear;\n if(dv > oneMonth * 1.1) return oneMonth;\n return oneDay;\n }\n\n if(dv > oneHour) return oneHour;\n if(dv > oneMin) return oneMin;\n return oneSec;\n }\n return Math.pow(10, Math.floor(Math.log(dv) / Math.LN10));\n}\n\nfunction didDigitChange(digit, v1, v2, isDate, pa, calendar) {\n if(isDate && digit > oneDay) {\n var dateParts1 = dateParts(v1, pa, calendar);\n var dateParts2 = dateParts(v2, pa, calendar);\n var parti = (digit === oneYear) ? 0 : 1;\n return dateParts1[parti] !== dateParts2[parti];\n }\n return Math.floor(v2 / digit) - Math.floor(v1 / digit) > 0.1;\n}\n\nfunction dateParts(v, pa, calendar) {\n var parts = pa.c2d(v, oneYear, calendar).split('-');\n if(parts[0] === '') {\n parts.unshift();\n parts[0] = '-' + parts[0];\n }\n return parts;\n}\n\n},{\"../../constants/numerical\":491,\"../../plots/cartesian/axes\":566}],826:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar arraysToCalcdata = _dereq_('../bar/arrays_to_calcdata');\nvar binFunctions = _dereq_('./bin_functions');\nvar normFunctions = _dereq_('./norm_functions');\nvar doAvg = _dereq_('./average');\nvar getBinSpanLabelRound = _dereq_('./bin_label_vals');\n\nfunction calc(gd, trace) {\n var pos = [];\n var size = [];\n var isHorizontal = trace.orientation === 'h';\n var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);\n var mainData = isHorizontal ? 'y' : 'x';\n var counterData = {x: 'y', y: 'x'}[mainData];\n var calendar = trace[mainData + 'calendar'];\n var cumulativeSpec = trace.cumulative;\n var i;\n\n var binsAndPos = calcAllAutoBins(gd, trace, pa, mainData);\n var binSpec = binsAndPos[0];\n var pos0 = binsAndPos[1];\n\n var nonuniformBins = typeof binSpec.size === 'string';\n var binEdges = [];\n var bins = nonuniformBins ? binEdges : binSpec;\n // make the empty bin array\n var inc = [];\n var counts = [];\n var inputPoints = [];\n var total = 0;\n var norm = trace.histnorm;\n var func = trace.histfunc;\n var densityNorm = norm.indexOf('density') !== -1;\n var i2, binEnd, n;\n\n if(cumulativeSpec.enabled && densityNorm) {\n // we treat \"cumulative\" like it means \"integral\" if you use a density norm,\n // which in the end means it's the same as without \"density\"\n norm = norm.replace(/ ?density$/, '');\n densityNorm = false;\n }\n\n var extremeFunc = func === 'max' || func === 'min';\n var sizeInit = extremeFunc ? null : 0;\n var binFunc = binFunctions.count;\n var normFunc = normFunctions[norm];\n var isAvg = false;\n var pr2c = function(v) { return pa.r2c(v, 0, calendar); };\n var rawCounterData;\n\n if(Lib.isArrayOrTypedArray(trace[counterData]) && func !== 'count') {\n rawCounterData = trace[counterData];\n isAvg = func === 'avg';\n binFunc = binFunctions[func];\n }\n\n // create the bins (and any extra arrays needed)\n // assume more than 1e6 bins is an error, so we don't crash the browser\n i = pr2c(binSpec.start);\n\n // decrease end a little in case of rounding errors\n binEnd = pr2c(binSpec.end) + (i - Axes.tickIncrement(i, binSpec.size, false, calendar)) / 1e6;\n\n while(i < binEnd && pos.length < 1e6) {\n i2 = Axes.tickIncrement(i, binSpec.size, false, calendar);\n pos.push((i + i2) / 2);\n size.push(sizeInit);\n inputPoints.push([]);\n // nonuniform bins (like months) we need to search,\n // rather than straight calculate the bin we're in\n binEdges.push(i);\n // nonuniform bins also need nonuniform normalization factors\n if(densityNorm) inc.push(1 / (i2 - i));\n if(isAvg) counts.push(0);\n // break to avoid infinite loops\n if(i2 <= i) break;\n i = i2;\n }\n binEdges.push(i);\n\n // for date axes we need bin bounds to be calcdata. For nonuniform bins\n // we already have this, but uniform with start/end/size they're still strings.\n if(!nonuniformBins && pa.type === 'date') {\n bins = {\n start: pr2c(bins.start),\n end: pr2c(bins.end),\n size: bins.size\n };\n }\n\n // stash left and right gaps by group\n if(!gd._fullLayout._roundFnOpts) gd._fullLayout._roundFnOpts = {};\n var groupName = trace['_' + mainData + 'bingroup'];\n var roundFnOpts = {leftGap: Infinity, rightGap: Infinity};\n if(groupName) {\n if(!gd._fullLayout._roundFnOpts[groupName]) gd._fullLayout._roundFnOpts[groupName] = roundFnOpts;\n roundFnOpts = gd._fullLayout._roundFnOpts[groupName];\n }\n\n // bin the data\n // and make histogram-specific pt-number-to-cd-index map object\n var nMax = size.length;\n var uniqueValsPerBin = true;\n var leftGap = roundFnOpts.leftGap;\n var rightGap = roundFnOpts.rightGap;\n var ptNumber2cdIndex = {};\n for(i = 0; i < pos0.length; i++) {\n var posi = pos0[i];\n n = Lib.findBin(posi, bins);\n if(n >= 0 && n < nMax) {\n total += binFunc(n, i, size, rawCounterData, counts);\n if(uniqueValsPerBin && inputPoints[n].length && posi !== pos0[inputPoints[n][0]]) {\n uniqueValsPerBin = false;\n }\n inputPoints[n].push(i);\n ptNumber2cdIndex[i] = n;\n\n leftGap = Math.min(leftGap, posi - binEdges[n]);\n rightGap = Math.min(rightGap, binEdges[n + 1] - posi);\n }\n }\n roundFnOpts.leftGap = leftGap;\n roundFnOpts.rightGap = rightGap;\n\n var roundFn;\n if(!uniqueValsPerBin) {\n roundFn = function(v, isRightEdge) {\n return function() {\n var roundFnOpts = gd._fullLayout._roundFnOpts[groupName];\n return getBinSpanLabelRound(\n roundFnOpts.leftGap,\n roundFnOpts.rightGap,\n binEdges, pa, calendar\n )(v, isRightEdge);\n };\n };\n }\n\n // average and/or normalize the data, if needed\n if(isAvg) total = doAvg(size, counts);\n if(normFunc) normFunc(size, total, inc);\n\n // after all normalization etc, now we can accumulate if desired\n if(cumulativeSpec.enabled) cdf(size, cumulativeSpec.direction, cumulativeSpec.currentbin);\n\n var seriesLen = Math.min(pos.length, size.length);\n var cd = [];\n var firstNonzero = 0;\n var lastNonzero = seriesLen - 1;\n\n // look for empty bins at the ends to remove, so autoscale omits them\n for(i = 0; i < seriesLen; i++) {\n if(size[i]) {\n firstNonzero = i;\n break;\n }\n }\n for(i = seriesLen - 1; i >= firstNonzero; i--) {\n if(size[i]) {\n lastNonzero = i;\n break;\n }\n }\n\n // create the \"calculated data\" to plot\n for(i = firstNonzero; i <= lastNonzero; i++) {\n if((isNumeric(pos[i]) && isNumeric(size[i]))) {\n var cdi = {\n p: pos[i],\n s: size[i],\n b: 0\n };\n\n // setup hover and event data fields,\n // N.B. pts and \"hover\" positions ph0/ph1 don't seem to make much sense\n // for cumulative distributions\n if(!cumulativeSpec.enabled) {\n cdi.pts = inputPoints[i];\n if(uniqueValsPerBin) {\n cdi.ph0 = cdi.ph1 = (inputPoints[i].length) ? pos0[inputPoints[i][0]] : pos[i];\n } else {\n // Defer evaluation of ph(0|1) in crossTraceCalc\n trace._computePh = true;\n cdi.ph0 = roundFn(binEdges[i]);\n cdi.ph1 = roundFn(binEdges[i + 1], true);\n }\n }\n cd.push(cdi);\n }\n }\n\n if(cd.length === 1) {\n // when we collapse to a single bin, calcdata no longer describes bin size\n // so we need to explicitly specify it\n cd[0].width1 = Axes.tickIncrement(cd[0].p, binSpec.size, false, calendar) - cd[0].p;\n }\n\n arraysToCalcdata(cd, trace);\n\n if(Lib.isArrayOrTypedArray(trace.selectedpoints)) {\n Lib.tagSelected(cd, trace, ptNumber2cdIndex);\n }\n\n return cd;\n}\n\n/*\n * calcAllAutoBins: we want all histograms inside the same bingroup\n * (see logic in Histogram.crossTraceDefaults) to share bin specs\n *\n * If the user has explicitly specified differing\n * bin specs, there's nothing we can do, but if possible we will try to use the\n * smallest bins of any of the auto values for all histograms inside the same\n * bingroup.\n */\nfunction calcAllAutoBins(gd, trace, pa, mainData, _overlayEdgeCase) {\n var binAttr = mainData + 'bins';\n var fullLayout = gd._fullLayout;\n var groupName = trace['_' + mainData + 'bingroup'];\n var binOpts = fullLayout._histogramBinOpts[groupName];\n var isOverlay = fullLayout.barmode === 'overlay';\n var i, traces, tracei, calendar, pos0, autoVals, cumulativeSpec;\n\n var r2c = function(v) { return pa.r2c(v, 0, calendar); };\n var c2r = function(v) { return pa.c2r(v, 0, calendar); };\n\n var cleanBound = pa.type === 'date' ?\n function(v) { return (v || v === 0) ? Lib.cleanDate(v, null, calendar) : null; } :\n function(v) { return isNumeric(v) ? Number(v) : null; };\n\n function setBound(attr, bins, newBins) {\n if(bins[attr + 'Found']) {\n bins[attr] = cleanBound(bins[attr]);\n if(bins[attr] === null) bins[attr] = newBins[attr];\n } else {\n autoVals[attr] = bins[attr] = newBins[attr];\n Lib.nestedProperty(traces[0], binAttr + '.' + attr).set(newBins[attr]);\n }\n }\n\n // all but the first trace in this group has already been marked finished\n // clear this flag, so next time we run calc we will run autobin again\n if(trace['_' + mainData + 'autoBinFinished']) {\n delete trace['_' + mainData + 'autoBinFinished'];\n } else {\n traces = binOpts.traces;\n var allPos = [];\n\n // Note: we're including `legendonly` traces here for autobin purposes,\n // so that showing & hiding from the legend won't affect bins.\n // But this complicates things a bit since those traces don't `calc`,\n // hence `isFirstVisible`.\n var isFirstVisible = true;\n var has2dMap = false;\n var hasHist2dContour = false;\n for(i = 0; i < traces.length; i++) {\n tracei = traces[i];\n\n if(tracei.visible) {\n var mainDatai = binOpts.dirs[i];\n pos0 = tracei['_' + mainDatai + 'pos0'] = pa.makeCalcdata(tracei, mainDatai);\n\n allPos = Lib.concat(allPos, pos0);\n delete tracei['_' + mainData + 'autoBinFinished'];\n\n if(trace.visible === true) {\n if(isFirstVisible) {\n isFirstVisible = false;\n } else {\n delete tracei._autoBin;\n tracei['_' + mainData + 'autoBinFinished'] = 1;\n }\n if(Registry.traceIs(tracei, '2dMap')) {\n has2dMap = true;\n }\n if(tracei.type === 'histogram2dcontour') {\n hasHist2dContour = true;\n }\n }\n }\n }\n\n calendar = traces[0][mainData + 'calendar'];\n var newBinSpec = Axes.autoBin(allPos, pa, binOpts.nbins, has2dMap, calendar, binOpts.sizeFound && binOpts.size);\n\n var autoBin = traces[0]._autoBin = {};\n autoVals = autoBin[binOpts.dirs[0]] = {};\n\n if(hasHist2dContour) {\n // the \"true\" 2nd argument reverses the tick direction (which we can't\n // just do with a minus sign because of month bins)\n if(!binOpts.size) {\n newBinSpec.start = c2r(Axes.tickIncrement(\n r2c(newBinSpec.start), newBinSpec.size, true, calendar));\n }\n if(binOpts.end === undefined) {\n newBinSpec.end = c2r(Axes.tickIncrement(\n r2c(newBinSpec.end), newBinSpec.size, false, calendar));\n }\n }\n\n // Edge case: single-valued histogram overlaying others\n // Use them all together to calculate the bin size for the single-valued one\n if(isOverlay && !Registry.traceIs(trace, '2dMap') && newBinSpec._dataSpan === 0 &&\n pa.type !== 'category' && pa.type !== 'multicategory') {\n // Several single-valued histograms! Stop infinite recursion,\n // just return an extra flag that tells handleSingleValueOverlays\n // to sort out this trace too\n if(_overlayEdgeCase) return [newBinSpec, pos0, true];\n\n newBinSpec = handleSingleValueOverlays(gd, trace, pa, mainData, binAttr);\n }\n\n // adjust for CDF edge cases\n cumulativeSpec = tracei.cumulative || {};\n if(cumulativeSpec.enabled && (cumulativeSpec.currentbin !== 'include')) {\n if(cumulativeSpec.direction === 'decreasing') {\n newBinSpec.start = c2r(Axes.tickIncrement(\n r2c(newBinSpec.start), newBinSpec.size, true, calendar));\n } else {\n newBinSpec.end = c2r(Axes.tickIncrement(\n r2c(newBinSpec.end), newBinSpec.size, false, calendar));\n }\n }\n\n binOpts.size = newBinSpec.size;\n if(!binOpts.sizeFound) {\n autoVals.size = newBinSpec.size;\n Lib.nestedProperty(traces[0], binAttr + '.size').set(newBinSpec.size);\n }\n\n setBound('start', binOpts, newBinSpec);\n setBound('end', binOpts, newBinSpec);\n }\n\n pos0 = trace['_' + mainData + 'pos0'];\n delete trace['_' + mainData + 'pos0'];\n\n // Each trace can specify its own start/end, or if omitted\n // we ensure they're beyond the bounds of this trace's data,\n // and we need to make sure start is aligned with the main start\n var traceInputBins = trace._input[binAttr] || {};\n var traceBinOptsCalc = Lib.extendFlat({}, binOpts);\n var mainStart = binOpts.start;\n var startIn = pa.r2l(traceInputBins.start);\n var hasStart = startIn !== undefined;\n if((binOpts.startFound || hasStart) && startIn !== pa.r2l(mainStart)) {\n // We have an explicit start to reconcile across traces\n // if this trace has an explicit start, shift it down to a bin edge\n // if another trace had an explicit start, shift it down to a\n // bin edge past our data\n var traceStart = hasStart ?\n startIn :\n Lib.aggNums(Math.min, null, pos0);\n\n var dummyAx = {\n type: (pa.type === 'category' || pa.type === 'multicategory') ? 'linear' : pa.type,\n r2l: pa.r2l,\n dtick: binOpts.size,\n tick0: mainStart,\n calendar: calendar,\n range: ([traceStart, Axes.tickIncrement(traceStart, binOpts.size, false, calendar)]).map(pa.l2r)\n };\n var newStart = Axes.tickFirst(dummyAx);\n if(newStart > pa.r2l(traceStart)) {\n newStart = Axes.tickIncrement(newStart, binOpts.size, true, calendar);\n }\n traceBinOptsCalc.start = pa.l2r(newStart);\n if(!hasStart) Lib.nestedProperty(trace, binAttr + '.start').set(traceBinOptsCalc.start);\n }\n\n var mainEnd = binOpts.end;\n var endIn = pa.r2l(traceInputBins.end);\n var hasEnd = endIn !== undefined;\n if((binOpts.endFound || hasEnd) && endIn !== pa.r2l(mainEnd)) {\n // Reconciling an explicit end is easier, as it doesn't need to\n // match bin edges\n var traceEnd = hasEnd ?\n endIn :\n Lib.aggNums(Math.max, null, pos0);\n\n traceBinOptsCalc.end = pa.l2r(traceEnd);\n if(!hasEnd) Lib.nestedProperty(trace, binAttr + '.start').set(traceBinOptsCalc.end);\n }\n\n // Backward compatibility for one-time autobinning.\n // autobin: true is handled in cleanData, but autobin: false\n // needs to be here where we have determined the values.\n var autoBinAttr = 'autobin' + mainData;\n if(trace._input[autoBinAttr] === false) {\n trace._input[binAttr] = Lib.extendFlat({}, trace[binAttr] || {});\n delete trace._input[autoBinAttr];\n delete trace[autoBinAttr];\n }\n\n return [traceBinOptsCalc, pos0];\n}\n\n/*\n * Adjust single-value histograms in overlay mode to make as good a\n * guess as we can at autobin values the user would like.\n *\n * Returns the binSpec for the trace that sparked all this\n */\nfunction handleSingleValueOverlays(gd, trace, pa, mainData, binAttr) {\n var fullLayout = gd._fullLayout;\n var overlaidTraceGroup = getConnectedHistograms(gd, trace);\n var pastThisTrace = false;\n var minSize = Infinity;\n var singleValuedTraces = [trace];\n var i, tracei, binOpts;\n\n // first collect all the:\n // - min bin size from all multi-valued traces\n // - single-valued traces\n for(i = 0; i < overlaidTraceGroup.length; i++) {\n tracei = overlaidTraceGroup[i];\n\n if(tracei === trace) {\n pastThisTrace = true;\n } else if(!pastThisTrace) {\n // This trace has already had its autobins calculated, so either:\n // - it is part of a bingroup\n // - it is NOT a single-valued trace\n binOpts = fullLayout._histogramBinOpts[tracei['_' + mainData + 'bingroup']];\n minSize = Math.min(minSize, binOpts.size || tracei[binAttr].size);\n } else {\n var resulti = calcAllAutoBins(gd, tracei, pa, mainData, true);\n var binSpeci = resulti[0];\n var isSingleValued = resulti[2];\n\n // so we can use this result when we get to tracei in the normal\n // course of events, mark it as done and put _pos0 back\n tracei['_' + mainData + 'autoBinFinished'] = 1;\n tracei['_' + mainData + 'pos0'] = resulti[1];\n\n if(isSingleValued) {\n singleValuedTraces.push(tracei);\n } else {\n minSize = Math.min(minSize, binSpeci.size);\n }\n }\n }\n\n // find the real data values for each single-valued trace\n // hunt through pos0 for the first valid value\n var dataVals = new Array(singleValuedTraces.length);\n for(i = 0; i < singleValuedTraces.length; i++) {\n var pos0 = singleValuedTraces[i]['_' + mainData + 'pos0'];\n for(var j = 0; j < pos0.length; j++) {\n if(pos0[j] !== undefined) {\n dataVals[i] = pos0[j];\n break;\n }\n }\n }\n\n // are ALL traces are single-valued? use the min difference between\n // all of their values (which defaults to 1 if there's still only one)\n if(!isFinite(minSize)) {\n minSize = Lib.distinctVals(dataVals).minDiff;\n }\n\n // now apply the min size we found to all single-valued traces\n for(i = 0; i < singleValuedTraces.length; i++) {\n tracei = singleValuedTraces[i];\n var calendar = tracei[mainData + 'calendar'];\n\n var newBins = {\n start: pa.c2r(dataVals[i] - minSize / 2, 0, calendar),\n end: pa.c2r(dataVals[i] + minSize / 2, 0, calendar),\n size: minSize\n };\n\n tracei._input[binAttr] = tracei[binAttr] = newBins;\n\n binOpts = fullLayout._histogramBinOpts[tracei['_' + mainData + 'bingroup']];\n if(binOpts) Lib.extendFlat(binOpts, newBins);\n }\n\n return trace[binAttr];\n}\n\n/*\n * Return an array of histograms that share axes and orientation.\n *\n * Only considers histograms. In principle we could include bars in a\n * similar way to how we do manually binned histograms, though this\n * would have tons of edge cases and value judgments to make.\n */\nfunction getConnectedHistograms(gd, trace) {\n var xid = trace.xaxis;\n var yid = trace.yaxis;\n var orientation = trace.orientation;\n\n var out = [];\n var fullData = gd._fullData;\n for(var i = 0; i < fullData.length; i++) {\n var tracei = fullData[i];\n if(tracei.type === 'histogram' &&\n tracei.visible === true &&\n tracei.orientation === orientation &&\n tracei.xaxis === xid && tracei.yaxis === yid\n ) {\n out.push(tracei);\n }\n }\n\n return out;\n}\n\nfunction cdf(size, direction, currentBin) {\n var i, vi, prevSum;\n\n function firstHalfPoint(i) {\n prevSum = size[i];\n size[i] /= 2;\n }\n\n function nextHalfPoint(i) {\n vi = size[i];\n size[i] = prevSum + vi / 2;\n prevSum += vi;\n }\n\n if(currentBin === 'half') {\n if(direction === 'increasing') {\n firstHalfPoint(0);\n for(i = 1; i < size.length; i++) {\n nextHalfPoint(i);\n }\n } else {\n firstHalfPoint(size.length - 1);\n for(i = size.length - 2; i >= 0; i--) {\n nextHalfPoint(i);\n }\n }\n } else if(direction === 'increasing') {\n for(i = 1; i < size.length; i++) {\n size[i] += size[i - 1];\n }\n\n // 'exclude' is identical to 'include' just shifted one bin over\n if(currentBin === 'exclude') {\n size.unshift(0);\n size.pop();\n }\n } else {\n for(i = size.length - 2; i >= 0; i--) {\n size[i] += size[i + 1];\n }\n\n if(currentBin === 'exclude') {\n size.push(0);\n size.shift();\n }\n }\n}\n\nmodule.exports = {\n calc: calc,\n calcAllAutoBins: calcAllAutoBins\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../../registry\":647,\"../bar/arrays_to_calcdata\":656,\"./average\":822,\"./bin_functions\":824,\"./bin_label_vals\":825,\"./norm_functions\":833,\"fast-isnumeric\":190}],827:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n eventDataKeys: ['binNumber']\n};\n\n},{}],828:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar axisIds = _dereq_('../../plots/cartesian/axis_ids');\n\nvar traceIs = _dereq_('../../registry').traceIs;\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\n\nvar nestedProperty = Lib.nestedProperty;\nvar getAxisGroup = _dereq_('../../plots/cartesian/constraints').getAxisGroup;\n\nvar BINATTRS = [\n {aStr: {x: 'xbins.start', y: 'ybins.start'}, name: 'start'},\n {aStr: {x: 'xbins.end', y: 'ybins.end'}, name: 'end'},\n {aStr: {x: 'xbins.size', y: 'ybins.size'}, name: 'size'},\n {aStr: {x: 'nbinsx', y: 'nbinsy'}, name: 'nbins'}\n];\n\nvar BINDIRECTIONS = ['x', 'y'];\n\n// handle bin attrs and relink auto-determined values so fullData is complete\nmodule.exports = function crossTraceDefaults(fullData, fullLayout) {\n var allBinOpts = fullLayout._histogramBinOpts = {};\n var histTraces = [];\n var mustMatchTracesLookup = {};\n var otherTracesList = [];\n\n var traceOut, traces, groupName, binDir;\n var i, j, k;\n\n function coerce(attr, dflt) {\n return Lib.coerce(traceOut._input, traceOut, traceOut._module.attributes, attr, dflt);\n }\n\n function orientation2binDir(traceOut) {\n return traceOut.orientation === 'v' ? 'x' : 'y';\n }\n\n function getAxisType(traceOut, binDir) {\n var ax = axisIds.getFromTrace({_fullLayout: fullLayout}, traceOut, binDir);\n return ax.type;\n }\n\n function fillBinOpts(traceOut, groupName, binDir) {\n // N.B. group traces that don't have a bingroup with themselves\n var fallbackGroupName = traceOut.uid + '__' + binDir;\n if(!groupName) groupName = fallbackGroupName;\n\n var axType = getAxisType(traceOut, binDir);\n var calendar = traceOut[binDir + 'calendar'] || '';\n var binOpts = allBinOpts[groupName];\n var needsNewItem = true;\n\n if(binOpts) {\n if(axType === binOpts.axType && calendar === binOpts.calendar) {\n needsNewItem = false;\n binOpts.traces.push(traceOut);\n binOpts.dirs.push(binDir);\n } else {\n groupName = fallbackGroupName;\n\n if(axType !== binOpts.axType) {\n Lib.warn([\n 'Attempted to group the bins of trace', traceOut.index,\n 'set on a', 'type:' + axType, 'axis',\n 'with bins on', 'type:' + binOpts.axType, 'axis.'\n ].join(' '));\n }\n if(calendar !== binOpts.calendar) {\n // prohibit bingroup for traces using different calendar,\n // there's probably a way to make this work, but skip for now\n Lib.warn([\n 'Attempted to group the bins of trace', traceOut.index,\n 'set with a', calendar, 'calendar',\n 'with bins',\n (binOpts.calendar ? 'on a ' + binOpts.calendar + ' calendar' : 'w/o a set calendar')\n ].join(' '));\n }\n }\n }\n\n if(needsNewItem) {\n allBinOpts[groupName] = {\n traces: [traceOut],\n dirs: [binDir],\n axType: axType,\n calendar: traceOut[binDir + 'calendar'] || ''\n };\n }\n traceOut['_' + binDir + 'bingroup'] = groupName;\n }\n\n for(i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n\n if(traceIs(traceOut, 'histogram')) {\n histTraces.push(traceOut);\n\n // TODO: this shouldn't be relinked as it's only used within calc\n // https://github.com/plotly/plotly.js/issues/749\n delete traceOut._xautoBinFinished;\n delete traceOut._yautoBinFinished;\n\n // N.B. need to coerce *alignmentgroup* before *bingroup*, as traces\n // in same alignmentgroup \"have to match\"\n if(!traceIs(traceOut, '2dMap')) {\n handleGroupingDefaults(traceOut._input, traceOut, fullLayout, coerce);\n }\n }\n }\n\n var alignmentOpts = fullLayout._alignmentOpts || {};\n\n // Look for traces that \"have to match\", that is:\n // - 1d histogram traces on the same subplot with same orientation under barmode:stack,\n // - 1d histogram traces on the same subplot with same orientation under barmode:group\n // - 1d histogram traces on the same position axis with the same orientation\n // and the same *alignmentgroup* (coerced under barmode:group)\n // - Once `stackgroup` gets implemented (see https://github.com/plotly/plotly.js/issues/3614),\n // traces within the same stackgroup will also \"have to match\"\n for(i = 0; i < histTraces.length; i++) {\n traceOut = histTraces[i];\n groupName = '';\n\n if(!traceIs(traceOut, '2dMap')) {\n binDir = orientation2binDir(traceOut);\n\n if(fullLayout.barmode === 'group' && traceOut.alignmentgroup) {\n var pa = traceOut[binDir + 'axis'];\n var aGroupId = getAxisGroup(fullLayout, pa) + traceOut.orientation;\n if((alignmentOpts[aGroupId] || {})[traceOut.alignmentgroup]) {\n groupName = aGroupId;\n }\n }\n\n if(!groupName && fullLayout.barmode !== 'overlay') {\n groupName = (\n getAxisGroup(fullLayout, traceOut.xaxis) +\n getAxisGroup(fullLayout, traceOut.yaxis) +\n orientation2binDir(traceOut)\n );\n }\n }\n\n if(groupName) {\n if(!mustMatchTracesLookup[groupName]) {\n mustMatchTracesLookup[groupName] = [];\n }\n mustMatchTracesLookup[groupName].push(traceOut);\n } else {\n otherTracesList.push(traceOut);\n }\n }\n\n // Setup binOpts for traces that have to match,\n // if the traces have a valid bingroup, use that\n // if not use axis+binDir groupName\n for(groupName in mustMatchTracesLookup) {\n traces = mustMatchTracesLookup[groupName];\n\n // no need to 'force' anything when a single\n // trace is detected as \"must match\"\n if(traces.length === 1) {\n otherTracesList.push(traces[0]);\n continue;\n }\n\n var binGroupFound = false;\n if(traces.length) {\n traceOut = traces[0];\n binGroupFound = coerce('bingroup');\n }\n\n groupName = binGroupFound || groupName;\n\n for(i = 0; i < traces.length; i++) {\n traceOut = traces[i];\n var bingroupIn = traceOut._input.bingroup;\n if(bingroupIn && bingroupIn !== groupName) {\n Lib.warn([\n 'Trace', traceOut.index, 'must match',\n 'within bingroup', groupName + '.',\n 'Ignoring its bingroup:', bingroupIn, 'setting.'\n ].join(' '));\n }\n traceOut.bingroup = groupName;\n\n // N.B. no need to worry about 2dMap case\n // (where both bin direction are set in each trace)\n // as 2dMap trace never \"have to match\"\n fillBinOpts(traceOut, groupName, orientation2binDir(traceOut));\n }\n }\n\n // setup binOpts for traces that can but don't have to match,\n // notice that these traces can be matched with traces that have to match\n for(i = 0; i < otherTracesList.length; i++) {\n traceOut = otherTracesList[i];\n\n var binGroup = coerce('bingroup');\n\n if(traceIs(traceOut, '2dMap')) {\n for(k = 0; k < 2; k++) {\n binDir = BINDIRECTIONS[k];\n var binGroupInDir = coerce(binDir + 'bingroup',\n binGroup ? binGroup + '__' + binDir : null\n );\n fillBinOpts(traceOut, binGroupInDir, binDir);\n }\n } else {\n fillBinOpts(traceOut, binGroup, orientation2binDir(traceOut));\n }\n }\n\n // coerce bin attrs!\n for(groupName in allBinOpts) {\n var binOpts = allBinOpts[groupName];\n traces = binOpts.traces;\n\n for(j = 0; j < BINATTRS.length; j++) {\n var attrSpec = BINATTRS[j];\n var attr = attrSpec.name;\n var aStr;\n var autoVals;\n\n // nbins(x|y) is moot if we have a size. This depends on\n // nbins coming after size in binAttrs.\n if(attr === 'nbins' && binOpts.sizeFound) continue;\n\n for(i = 0; i < traces.length; i++) {\n traceOut = traces[i];\n binDir = binOpts.dirs[i];\n aStr = attrSpec.aStr[binDir];\n\n if(nestedProperty(traceOut._input, aStr).get() !== undefined) {\n binOpts[attr] = coerce(aStr);\n binOpts[attr + 'Found'] = true;\n break;\n }\n\n autoVals = (traceOut._autoBin || {})[binDir] || {};\n if(autoVals[attr]) {\n // if this is the *first* autoval\n nestedProperty(traceOut, aStr).set(autoVals[attr]);\n }\n }\n\n // start and end we need to coerce anyway, after having collected the\n // first of each into binOpts, in case a trace wants to restrict its\n // data to a certain range\n if(attr === 'start' || attr === 'end') {\n for(; i < traces.length; i++) {\n traceOut = traces[i];\n if(traceOut['_' + binDir + 'bingroup']) {\n autoVals = (traceOut._autoBin || {})[binDir] || {};\n coerce(aStr, autoVals[attr]);\n }\n }\n }\n\n if(attr === 'nbins' && !binOpts.sizeFound && !binOpts.nbinsFound) {\n traceOut = traces[0];\n binOpts[attr] = coerce(aStr);\n }\n }\n }\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axis_ids\":570,\"../../plots/cartesian/constraints\":574,\"../../registry\":647,\"../bar/defaults\":661}],829:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\n\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleStyleDefaults = _dereq_('../bar/style_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var x = coerce('x');\n var y = coerce('y');\n\n var cumulative = coerce('cumulative.enabled');\n if(cumulative) {\n coerce('cumulative.direction');\n coerce('cumulative.currentbin');\n }\n\n coerce('text');\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: true,\n moduleHasUnselected: true,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var orientation = coerce('orientation', (y && !x) ? 'h' : 'v');\n var sampleLetter = orientation === 'v' ? 'x' : 'y';\n var aggLetter = orientation === 'v' ? 'y' : 'x';\n\n var len = (x && y) ?\n Math.min(Lib.minRowLength(x) && Lib.minRowLength(y)) :\n Lib.minRowLength(traceOut[sampleLetter] || []);\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n\n var hasAggregationData = traceOut[aggLetter];\n if(hasAggregationData) coerce('histfunc');\n coerce('histnorm');\n\n // Note: bin defaults are now handled in Histogram.crossTraceDefaults\n // autobin(x|y) are only included here to appease Plotly.validate\n coerce('autobin' + sampleLetter);\n\n handleStyleDefaults(traceIn, traceOut, coerce, defaultColor, layout);\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n\n var lineColor = (traceOut.marker.line || {}).color;\n\n // override defaultColor for error bars with defaultLine\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'x', inherit: 'y'});\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../registry\":647,\"../bar/defaults\":661,\"../bar/style_defaults\":672,\"./attributes\":821}],830:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n\n // for 2d histograms\n if('zLabelVal' in pt) out.z = pt.zLabelVal;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n // specific to histogram - CDFs do not have pts (yet?)\n if(!(trace.cumulative || {}).enabled) {\n var pts = Array.isArray(pointNumber) ?\n cd[0].pts[pointNumber[0]][pointNumber[1]] :\n cd[pointNumber].pts;\n\n out.pointNumbers = pts;\n out.binNumber = out.pointNumber;\n delete out.pointNumber;\n delete out.pointIndex;\n\n var pointIndices;\n if(trace._indexToPoints) {\n pointIndices = [];\n for(var i = 0; i < pts.length; i++) {\n pointIndices = pointIndices.concat(trace._indexToPoints[pts[i]]);\n }\n } else {\n pointIndices = pts;\n }\n\n out.pointIndices = pointIndices;\n }\n\n return out;\n};\n\n},{}],831:[function(_dereq_,module,exports){\n'use strict';\n\nvar barHover = _dereq_('../bar/hover').hoverPoints;\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var pts = barHover(pointData, xval, yval, hovermode, opts);\n\n if(!pts) return;\n\n pointData = pts[0];\n var di = pointData.cd[pointData.index];\n var trace = pointData.cd[0].trace;\n\n if(!trace.cumulative.enabled) {\n var posLetter = trace.orientation === 'h' ? 'y' : 'x';\n\n pointData[posLetter + 'Label'] = hoverLabelText(pointData[posLetter + 'a'], [di.ph0, di.ph1], trace[posLetter + 'hoverformat']);\n }\n\n return pts;\n};\n\n},{\"../../plots/cartesian/axes\":566,\"../bar/hover\":664}],832:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * Histogram has its own attribute, defaults and calc steps,\n * but uses bar's plot to display\n * and bar's crossTraceCalc (formerly known as setPositions) for stacking and grouping\n */\n\n/**\n * histogram errorBarsOK is debatable, but it's put in for backward compat.\n * there are use cases for it - sqrt for a simple histogram works right now,\n * constant and % work but they're not so meaningful. I guess it could be cool\n * to allow quadrature combination of errors in summed histograms...\n */\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('../bar/layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('./cross_trace_defaults'),\n supplyLayoutDefaults: _dereq_('../bar/layout_defaults'),\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('../bar/cross_trace_calc').crossTraceCalc,\n plot: _dereq_('../bar/plot').plot,\n layerName: 'barlayer',\n style: _dereq_('../bar/style').style,\n styleOnSelect: _dereq_('../bar/style').styleOnSelect,\n colorbar: _dereq_('../scatter/marker_colorbar'),\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../bar/select'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'histogram',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../bar/cross_trace_calc\":660,\"../bar/layout_attributes\":666,\"../bar/layout_defaults\":667,\"../bar/plot\":668,\"../bar/select\":669,\"../bar/style\":671,\"../scatter/marker_colorbar\":954,\"./attributes\":821,\"./calc\":826,\"./cross_trace_defaults\":828,\"./defaults\":829,\"./event_data\":830,\"./hover\":831}],833:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n percent: function(size, total) {\n var nMax = size.length;\n var norm = 100 / total;\n for(var n = 0; n < nMax; n++) size[n] *= norm;\n },\n probability: function(size, total) {\n var nMax = size.length;\n for(var n = 0; n < nMax; n++) size[n] /= total;\n },\n density: function(size, total, inc, yinc) {\n var nMax = size.length;\n yinc = yinc || 1;\n for(var n = 0; n < nMax; n++) size[n] *= inc[n] * yinc;\n },\n 'probability density': function(size, total, inc, yinc) {\n var nMax = size.length;\n if(yinc) total /= yinc;\n for(var n = 0; n < nMax; n++) size[n] *= inc[n] / total;\n }\n};\n\n},{}],834:[function(_dereq_,module,exports){\n'use strict';\n\nvar histogramAttrs = _dereq_('../histogram/attributes');\nvar makeBinAttrs = _dereq_('../histogram/bin_attributes');\nvar heatmapAttrs = _dereq_('../heatmap/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat(\n {\n x: histogramAttrs.x,\n y: histogramAttrs.y,\n\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n marker: {\n color: {\n valType: 'data_array',\n editType: 'calc',\n },\n editType: 'calc'\n },\n\n histnorm: histogramAttrs.histnorm,\n histfunc: histogramAttrs.histfunc,\n nbinsx: histogramAttrs.nbinsx,\n xbins: makeBinAttrs('x'),\n nbinsy: histogramAttrs.nbinsy,\n ybins: makeBinAttrs('y'),\n autobinx: histogramAttrs.autobinx,\n autobiny: histogramAttrs.autobiny,\n\n bingroup: extendFlat({}, histogramAttrs.bingroup, {\n }),\n xbingroup: extendFlat({}, histogramAttrs.bingroup, {\n }),\n ybingroup: extendFlat({}, histogramAttrs.bingroup, {\n }),\n\n xgap: heatmapAttrs.xgap,\n ygap: heatmapAttrs.ygap,\n zsmooth: heatmapAttrs.zsmooth,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n hovertemplate: hovertemplateAttrs({}, {keys: 'z'}),\n texttemplate: texttemplateAttrs({\n arrayOk: false,\n editType: 'plot'\n }, {\n keys: 'z'\n }),\n textfont: heatmapAttrs.textfont,\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n },\n colorScaleAttrs('', {cLetter: 'z', autoColorDflt: false})\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../heatmap/attributes\":801,\"../histogram/attributes\":821,\"../histogram/bin_attributes\":823}],835:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar binFunctions = _dereq_('../histogram/bin_functions');\nvar normFunctions = _dereq_('../histogram/norm_functions');\nvar doAvg = _dereq_('../histogram/average');\nvar getBinSpanLabelRound = _dereq_('../histogram/bin_label_vals');\nvar calcAllAutoBins = _dereq_('../histogram/calc').calcAllAutoBins;\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n\n var xcalendar = trace.xcalendar;\n var ycalendar = trace.ycalendar;\n var xr2c = function(v) { return xa.r2c(v, 0, xcalendar); };\n var yr2c = function(v) { return ya.r2c(v, 0, ycalendar); };\n var xc2r = function(v) { return xa.c2r(v, 0, xcalendar); };\n var yc2r = function(v) { return ya.c2r(v, 0, ycalendar); };\n\n var i, j, n, m;\n\n // calculate the bins\n var xBinsAndPos = calcAllAutoBins(gd, trace, xa, 'x');\n var xBinSpec = xBinsAndPos[0];\n var xPos0 = xBinsAndPos[1];\n var yBinsAndPos = calcAllAutoBins(gd, trace, ya, 'y');\n var yBinSpec = yBinsAndPos[0];\n var yPos0 = yBinsAndPos[1];\n\n var serieslen = trace._length;\n if(xPos0.length > serieslen) xPos0.splice(serieslen, xPos0.length - serieslen);\n if(yPos0.length > serieslen) yPos0.splice(serieslen, yPos0.length - serieslen);\n\n // make the empty bin array & scale the map\n var z = [];\n var onecol = [];\n var zerocol = [];\n var nonuniformBinsX = typeof xBinSpec.size === 'string';\n var nonuniformBinsY = typeof yBinSpec.size === 'string';\n var xEdges = [];\n var yEdges = [];\n var xbins = nonuniformBinsX ? xEdges : xBinSpec;\n var ybins = nonuniformBinsY ? yEdges : yBinSpec;\n var total = 0;\n var counts = [];\n var inputPoints = [];\n var norm = trace.histnorm;\n var func = trace.histfunc;\n var densitynorm = norm.indexOf('density') !== -1;\n var extremefunc = func === 'max' || func === 'min';\n var sizeinit = extremefunc ? null : 0;\n var binfunc = binFunctions.count;\n var normfunc = normFunctions[norm];\n var doavg = false;\n var xinc = [];\n var yinc = [];\n\n // set a binning function other than count?\n // for binning functions: check first for 'z',\n // then 'mc' in case we had a colored scatter plot\n // and want to transfer these colors to the 2D histo\n // TODO: axe this, make it the responsibility of the app changing type? or an impliedEdit?\n var rawCounterData = ('z' in trace) ?\n trace.z :\n (('marker' in trace && Array.isArray(trace.marker.color)) ?\n trace.marker.color : '');\n if(rawCounterData && func !== 'count') {\n doavg = func === 'avg';\n binfunc = binFunctions[func];\n }\n\n // decrease end a little in case of rounding errors\n var xBinSize = xBinSpec.size;\n var xBinStart = xr2c(xBinSpec.start);\n var xBinEnd = xr2c(xBinSpec.end) +\n (xBinStart - Axes.tickIncrement(xBinStart, xBinSize, false, xcalendar)) / 1e6;\n\n for(i = xBinStart; i < xBinEnd; i = Axes.tickIncrement(i, xBinSize, false, xcalendar)) {\n onecol.push(sizeinit);\n xEdges.push(i);\n if(doavg) zerocol.push(0);\n }\n xEdges.push(i);\n\n var nx = onecol.length;\n var dx = (i - xBinStart) / nx;\n var x0 = xc2r(xBinStart + dx / 2);\n\n var yBinSize = yBinSpec.size;\n var yBinStart = yr2c(yBinSpec.start);\n var yBinEnd = yr2c(yBinSpec.end) +\n (yBinStart - Axes.tickIncrement(yBinStart, yBinSize, false, ycalendar)) / 1e6;\n\n for(i = yBinStart; i < yBinEnd; i = Axes.tickIncrement(i, yBinSize, false, ycalendar)) {\n z.push(onecol.slice());\n yEdges.push(i);\n var ipCol = new Array(nx);\n for(j = 0; j < nx; j++) ipCol[j] = [];\n inputPoints.push(ipCol);\n if(doavg) counts.push(zerocol.slice());\n }\n yEdges.push(i);\n\n var ny = z.length;\n var dy = (i - yBinStart) / ny;\n var y0 = yc2r(yBinStart + dy / 2);\n\n if(densitynorm) {\n xinc = makeIncrements(onecol.length, xbins, dx, nonuniformBinsX);\n yinc = makeIncrements(z.length, ybins, dy, nonuniformBinsY);\n }\n\n // for date axes we need bin bounds to be calcdata. For nonuniform bins\n // we already have this, but uniform with start/end/size they're still strings.\n if(!nonuniformBinsX && xa.type === 'date') xbins = binsToCalc(xr2c, xbins);\n if(!nonuniformBinsY && ya.type === 'date') ybins = binsToCalc(yr2c, ybins);\n\n // put data into bins\n var uniqueValsPerX = true;\n var uniqueValsPerY = true;\n var xVals = new Array(nx);\n var yVals = new Array(ny);\n var xGapLow = Infinity;\n var xGapHigh = Infinity;\n var yGapLow = Infinity;\n var yGapHigh = Infinity;\n for(i = 0; i < serieslen; i++) {\n var xi = xPos0[i];\n var yi = yPos0[i];\n n = Lib.findBin(xi, xbins);\n m = Lib.findBin(yi, ybins);\n if(n >= 0 && n < nx && m >= 0 && m < ny) {\n total += binfunc(n, i, z[m], rawCounterData, counts[m]);\n inputPoints[m][n].push(i);\n\n if(uniqueValsPerX) {\n if(xVals[n] === undefined) xVals[n] = xi;\n else if(xVals[n] !== xi) uniqueValsPerX = false;\n }\n if(uniqueValsPerY) {\n if(yVals[m] === undefined) yVals[m] = yi;\n else if(yVals[m] !== yi) uniqueValsPerY = false;\n }\n\n xGapLow = Math.min(xGapLow, xi - xEdges[n]);\n xGapHigh = Math.min(xGapHigh, xEdges[n + 1] - xi);\n yGapLow = Math.min(yGapLow, yi - yEdges[m]);\n yGapHigh = Math.min(yGapHigh, yEdges[m + 1] - yi);\n }\n }\n // normalize, if needed\n if(doavg) {\n for(m = 0; m < ny; m++) total += doAvg(z[m], counts[m]);\n }\n if(normfunc) {\n for(m = 0; m < ny; m++) normfunc(z[m], total, xinc, yinc[m]);\n }\n\n return {\n x: xPos0,\n xRanges: getRanges(xEdges, uniqueValsPerX && xVals, xGapLow, xGapHigh, xa, xcalendar),\n x0: x0,\n dx: dx,\n y: yPos0,\n yRanges: getRanges(yEdges, uniqueValsPerY && yVals, yGapLow, yGapHigh, ya, ycalendar),\n y0: y0,\n dy: dy,\n z: z,\n pts: inputPoints\n };\n};\n\nfunction makeIncrements(len, bins, dv, nonuniform) {\n var out = new Array(len);\n var i;\n if(nonuniform) {\n for(i = 0; i < len; i++) out[i] = 1 / (bins[i + 1] - bins[i]);\n } else {\n var inc = 1 / dv;\n for(i = 0; i < len; i++) out[i] = inc;\n }\n return out;\n}\n\nfunction binsToCalc(r2c, bins) {\n return {\n start: r2c(bins.start),\n end: r2c(bins.end),\n size: bins.size\n };\n}\n\nfunction getRanges(edges, uniqueVals, gapLow, gapHigh, ax, calendar) {\n var i;\n var len = edges.length - 1;\n var out = new Array(len);\n var roundFn = getBinSpanLabelRound(gapLow, gapHigh, edges, ax, calendar);\n\n for(i = 0; i < len; i++) {\n var v = (uniqueVals || [])[i];\n out[i] = v === undefined ?\n [roundFn(edges[i]), roundFn(edges[i + 1], true)] :\n [v, v];\n }\n return out;\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../histogram/average\":822,\"../histogram/bin_functions\":824,\"../histogram/bin_label_vals\":825,\"../histogram/calc\":826,\"../histogram/norm_functions\":833}],836:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleSampleDefaults = _dereq_('./sample_defaults');\nvar handleStyleDefaults = _dereq_('../heatmap/style_defaults');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleHeatmapLabelDefaults = _dereq_('../heatmap/label_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});\n coerce('hovertemplate');\n\n handleHeatmapLabelDefaults(coerce, layout);\n\n coerce('xhoverformat');\n coerce('yhoverformat');\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"../heatmap/label_defaults\":811,\"../heatmap/style_defaults\":815,\"./attributes\":834,\"./sample_defaults\":839}],837:[function(_dereq_,module,exports){\n'use strict';\n\nvar heatmapHover = _dereq_('../heatmap/hover');\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var pts = heatmapHover(pointData, xval, yval, hovermode, opts);\n\n if(!pts) return;\n\n pointData = pts[0];\n var indices = pointData.index;\n var ny = indices[0];\n var nx = indices[1];\n var cd0 = pointData.cd[0];\n var trace = cd0.trace;\n var xRange = cd0.xRanges[nx];\n var yRange = cd0.yRanges[ny];\n\n pointData.xLabel = hoverLabelText(pointData.xa, [xRange[0], xRange[1]], trace.xhoverformat);\n pointData.yLabel = hoverLabelText(pointData.ya, [yRange[0], yRange[1]], trace.yhoverformat);\n\n return pts;\n};\n\n},{\"../../plots/cartesian/axes\":566,\"../heatmap/hover\":808}],838:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../histogram/cross_trace_defaults'),\n calc: _dereq_('../heatmap/calc'),\n plot: _dereq_('../heatmap/plot'),\n layerName: 'heatmaplayer',\n colorbar: _dereq_('../heatmap/colorbar'),\n style: _dereq_('../heatmap/style'),\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('../histogram/event_data'),\n\n moduleType: 'trace',\n name: 'histogram2d',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'histogram', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../heatmap/calc\":802,\"../heatmap/colorbar\":804,\"../heatmap/plot\":813,\"../heatmap/style\":814,\"../histogram/cross_trace_defaults\":828,\"../histogram/event_data\":830,\"./attributes\":834,\"./defaults\":836,\"./hover\":837}],839:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleSampleDefaults(traceIn, traceOut, coerce, layout) {\n var x = coerce('x');\n var y = coerce('y');\n var xlen = Lib.minRowLength(x);\n var ylen = Lib.minRowLength(y);\n\n // we could try to accept x0 and dx, etc...\n // but that's a pretty weird use case.\n // for now require both x and y explicitly specified.\n if(!xlen || !ylen) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = Math.min(xlen, ylen);\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n\n // if marker.color is an array, we can use it in aggregation instead of z\n var hasAggregationData = coerce('z') || coerce('marker.color');\n\n if(hasAggregationData) coerce('histfunc');\n coerce('histnorm');\n\n // Note: bin defaults are now handled in Histogram2D.crossTraceDefaults\n // autobin(x|y) are only included here to appease Plotly.validate\n coerce('autobinx');\n coerce('autobiny');\n};\n\n},{\"../../lib\":515,\"../../registry\":647}],840:[function(_dereq_,module,exports){\n'use strict';\n\nvar histogram2dAttrs = _dereq_('../histogram2d/attributes');\nvar contourAttrs = _dereq_('../contour/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n x: histogram2dAttrs.x,\n y: histogram2dAttrs.y,\n z: histogram2dAttrs.z,\n marker: histogram2dAttrs.marker,\n\n histnorm: histogram2dAttrs.histnorm,\n histfunc: histogram2dAttrs.histfunc,\n nbinsx: histogram2dAttrs.nbinsx,\n xbins: histogram2dAttrs.xbins,\n nbinsy: histogram2dAttrs.nbinsy,\n ybins: histogram2dAttrs.ybins,\n autobinx: histogram2dAttrs.autobinx,\n autobiny: histogram2dAttrs.autobiny,\n\n bingroup: histogram2dAttrs.bingroup,\n xbingroup: histogram2dAttrs.xbingroup,\n ybingroup: histogram2dAttrs.ybingroup,\n\n autocontour: contourAttrs.autocontour,\n ncontours: contourAttrs.ncontours,\n contours: contourAttrs.contours,\n line: {\n color: contourAttrs.line.color,\n width: extendFlat({}, contourAttrs.line.width, {\n dflt: 0.5,\n }),\n dash: contourAttrs.line.dash,\n smoothing: contourAttrs.line.smoothing,\n editType: 'plot'\n },\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z', 1),\n hovertemplate: histogram2dAttrs.hovertemplate,\n texttemplate: contourAttrs.texttemplate,\n textfont: contourAttrs.textfont\n},\n colorScaleAttrs('', {\n cLetter: 'z',\n editTypeOverride: 'calc'\n })\n);\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../contour/attributes\":744,\"../histogram2d/attributes\":834}],841:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleSampleDefaults = _dereq_('../histogram2d/sample_defaults');\nvar handleContoursDefaults = _dereq_('../contour/contours_defaults');\nvar handleStyleDefaults = _dereq_('../contour/style_defaults');\nvar handleHeatmapLabelDefaults = _dereq_('../heatmap/label_defaults');\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr);\n }\n\n handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n handleContoursDefaults(traceIn, traceOut, coerce, coerce2);\n handleStyleDefaults(traceIn, traceOut, coerce, layout);\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('hovertemplate');\n if(\n traceOut.contours &&\n traceOut.contours.coloring === 'heatmap'\n ) {\n handleHeatmapLabelDefaults(coerce, layout);\n }\n};\n\n},{\"../../lib\":515,\"../contour/contours_defaults\":751,\"../contour/style_defaults\":765,\"../heatmap/label_defaults\":811,\"../histogram2d/sample_defaults\":839,\"./attributes\":840}],842:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../histogram/cross_trace_defaults'),\n calc: _dereq_('../contour/calc'),\n plot: _dereq_('../contour/plot').plot,\n layerName: 'contourlayer',\n style: _dereq_('../contour/style'),\n colorbar: _dereq_('../contour/colorbar'),\n hoverPoints: _dereq_('../contour/hover'),\n\n moduleType: 'trace',\n name: 'histogram2dcontour',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'contour', 'histogram', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../contour/calc\":745,\"../contour/colorbar\":747,\"../contour/hover\":757,\"../contour/plot\":762,\"../contour/style\":764,\"../histogram/cross_trace_defaults\":828,\"./attributes\":840,\"./defaults\":841}],843:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar pieAttrs = _dereq_('../pie/attributes');\nvar sunburstAttrs = _dereq_('../sunburst/attributes');\nvar treemapAttrs = _dereq_('../treemap/attributes');\nvar constants = _dereq_('../treemap/constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: sunburstAttrs.labels,\n parents: sunburstAttrs.parents,\n\n values: sunburstAttrs.values,\n branchvalues: sunburstAttrs.branchvalues,\n count: sunburstAttrs.count,\n\n level: sunburstAttrs.level,\n maxdepth: sunburstAttrs.maxdepth,\n\n tiling: {\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'h',\n editType: 'plot',\n },\n\n flip: treemapAttrs.tiling.flip,\n\n pad: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n\n\n editType: 'calc',\n },\n\n marker: extendFlat({\n colors: sunburstAttrs.marker.colors,\n\n line: sunburstAttrs.marker.line,\n\n editType: 'calc'\n },\n colorScaleAttrs('marker', {\n colorAttr: 'colors',\n anim: false // TODO: set to anim: true?\n })\n ),\n\n leaf: sunburstAttrs.leaf,\n\n pathbar: treemapAttrs.pathbar,\n\n text: pieAttrs.text,\n textinfo: sunburstAttrs.textinfo,\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n hovertext: pieAttrs.hovertext,\n hoverinfo: sunburstAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textfont: pieAttrs.textfont,\n insidetextfont: pieAttrs.insidetextfont,\n outsidetextfont: treemapAttrs.outsidetextfont,\n\n textposition: treemapAttrs.textposition,\n sort: pieAttrs.sort,\n root: sunburstAttrs.root,\n\n domain: domainAttrs({name: 'icicle', trace: true, editType: 'calc'}),\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/domain\":593,\"../../plots/template_attributes\":642,\"../pie/attributes\":910,\"../sunburst/attributes\":1058,\"../treemap/attributes\":1084,\"../treemap/constants\":1087}],844:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'icicle';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":628}],845:[function(_dereq_,module,exports){\n'use strict';\n\nvar calc = _dereq_('../sunburst/calc');\n\nexports.calc = function(gd, trace) {\n return calc.calc(gd, trace);\n};\n\nexports.crossTraceCalc = function(gd) {\n return calc._runCrossTraceCalc('icicle', gd);\n};\n\n},{\"../sunburst/calc\":1060}],846:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar hasColorscale = Colorscale.hasColorscale;\nvar colorscaleDefaults = Colorscale.handleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var parents = coerce('parents');\n\n if(!labels || !labels.length || !parents || !parents.length) {\n traceOut.visible = false;\n return;\n }\n\n var vals = coerce('values');\n if(vals && vals.length) {\n coerce('branchvalues');\n } else {\n coerce('count');\n }\n\n coerce('level');\n coerce('maxdepth');\n\n coerce('tiling.orientation');\n coerce('tiling.flip');\n coerce('tiling.pad');\n\n var text = coerce('text');\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo', Array.isArray(text) ? 'text+label' : 'label');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var hasPathbar = coerce('pathbar.visible');\n\n var textposition = 'auto';\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n hasPathbar: hasPathbar,\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n coerce('textposition');\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n coerce('marker.colors');\n var withColorscale = traceOut._hasColorscale = (\n hasColorscale(traceIn, 'marker', 'colors') ||\n (traceIn.marker || {}).coloraxis // N.B. special logic to consider \"values\" colorscales\n );\n if(withColorscale) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n }\n\n coerce('leaf.opacity', withColorscale ? 1 : 0.7);\n\n traceOut._hovered = {\n marker: {\n line: {\n width: 2,\n color: Color.contrast(layout.paper_bgcolor)\n }\n }\n };\n\n if(hasPathbar) {\n // This works even for multi-line labels as icicle pathbar trim out line breaks\n coerce('pathbar.thickness', traceOut.pathbar.textfont.size + 2 * TEXTPAD);\n\n coerce('pathbar.side');\n coerce('pathbar.edgeshape');\n }\n\n coerce('sort');\n\n coerce('root.color');\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // do not support transforms for now\n traceOut._length = null;\n};\n\n},{\"../../components/color\":367,\"../../components/colorscale\":379,\"../../lib\":515,\"../../plots/domain\":593,\"../bar/constants\":659,\"../bar/defaults\":661,\"./attributes\":843}],847:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar partition = _dereq_('./partition');\nvar styleOne = _dereq_('./style').styleOne;\nvar constants = _dereq_('../treemap/constants');\nvar helpers = _dereq_('../sunburst/helpers');\nvar attachFxHandlers = _dereq_('../sunburst/fx');\nvar formatSliceLabel = _dereq_('../sunburst/plot').formatSliceLabel;\n\nvar onPathbar = false; // for Descendants\n\nmodule.exports = function drawDescendants(gd, cd, entry, slices, opts) {\n var width = opts.width;\n var height = opts.height;\n var viewX = opts.viewX;\n var viewY = opts.viewY;\n var pathSlice = opts.pathSlice;\n var toMoveInsideSlice = opts.toMoveInsideSlice;\n var strTransform = opts.strTransform;\n var hasTransition = opts.hasTransition;\n var handleSlicesExit = opts.handleSlicesExit;\n var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;\n var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;\n var prevEntry = opts.prevEntry;\n var refRect = {};\n\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var hasLeft = trace.textposition.indexOf('left') !== -1;\n var hasRight = trace.textposition.indexOf('right') !== -1;\n var hasBottom = trace.textposition.indexOf('bottom') !== -1;\n\n // N.B. slice data isn't the calcdata,\n // grab corresponding calcdata item in sliceData[i].data.data\n var allData = partition(entry, [width, height], {\n flipX: trace.tiling.flip.indexOf('x') > -1,\n flipY: trace.tiling.flip.indexOf('y') > -1,\n orientation: trace.tiling.orientation,\n pad: {\n inner: trace.tiling.pad\n },\n maxDepth: trace._maxDepth\n });\n\n var sliceData = allData.descendants();\n\n var minVisibleDepth = Infinity;\n var maxVisibleDepth = -Infinity;\n sliceData.forEach(function(pt) {\n var depth = pt.depth;\n if(depth >= trace._maxDepth) {\n // hide slices that won't show up on graph\n pt.x0 = pt.x1 = (pt.x0 + pt.x1) / 2;\n pt.y0 = pt.y1 = (pt.y0 + pt.y1) / 2;\n } else {\n minVisibleDepth = Math.min(minVisibleDepth, depth);\n maxVisibleDepth = Math.max(maxVisibleDepth, depth);\n }\n });\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n trace._maxVisibleLayers = isFinite(maxVisibleDepth) ? maxVisibleDepth - minVisibleDepth + 1 : 0;\n\n slices.enter().append('g')\n .classed('slice', true);\n\n handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);\n\n slices.order();\n\n // next coords of previous entry\n var nextOfPrevEntry = null;\n if(hasTransition && prevEntry) {\n var prevEntryId = helpers.getPtId(prevEntry);\n slices.each(function(pt) {\n if(nextOfPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {\n nextOfPrevEntry = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n }\n });\n }\n\n var getRefRect = function() {\n return nextOfPrevEntry || {\n x0: 0,\n x1: width,\n y0: 0,\n y1: height\n };\n };\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: true,\n hideOnLeaves: false,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n // for bbox\n pt._x0 = viewX(pt.x0);\n pt._x1 = viewX(pt.x1);\n pt._y0 = viewY(pt.y0);\n pt._y1 = viewY(pt.y1);\n\n pt._hoverX = viewX(pt.x1 - trace.tiling.pad),\n pt._hoverY = hasBottom ?\n viewY(pt.y1 - trace.tiling.pad / 2) :\n viewY(pt.y0 + trace.tiling.pad / 2);\n\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', isStatic ? 'none' : 'all');\n });\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(\n pt2,\n onPathbar,\n getRefRect(),\n [width, height],\n {\n orientation: trace.tiling.orientation,\n flipX: trace.tiling.flip.indexOf('x') > -1,\n flipY: trace.tiling.flip.indexOf('y') > -1,\n }\n );\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n styleOne: styleOne,\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, { isTransitioning: gd._transitioning });\n\n slicePath.call(styleOne, pt, trace, {\n hovered: false\n });\n\n if(pt.x0 === pt.x1 || pt.y0 === pt.y1) {\n pt._text = '';\n } else {\n pt._text = formatSliceLabel(pt, entry, trace, cd, fullLayout) || '';\n }\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(pt._text || ' ') // use one space character instead of a blank string to avoid jumps during transition\n .classed('slicetext', true)\n .attr('text-anchor', hasRight ? 'end' : hasLeft ? 'start' : 'middle')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n pt.textBB = Drawing.bBox(sliceText.node());\n pt.transform = toMoveInsideSlice(pt, {\n fontSize: font.size\n });\n pt.transform.fontSize = font.size;\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2, onPathbar, getRefRect(), [width, height]);\n return function(t) { return strTransform(interp(t)); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt));\n }\n });\n\n return nextOfPrevEntry;\n};\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../sunburst/fx\":1063,\"../sunburst/helpers\":1064,\"../sunburst/plot\":1068,\"../treemap/constants\":1087,\"./partition\":851,\"./style\":853,\"@plotly/d3\":58}],848:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'icicle',\n basePlotModule: _dereq_('./base_plot'),\n categories: [],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n meta: {\n }\n};\n\n},{\"../scatter/marker_colorbar\":954,\"./attributes\":843,\"./base_plot\":844,\"./calc\":845,\"./defaults\":846,\"./layout_attributes\":849,\"./layout_defaults\":850,\"./plot\":852,\"./style\":853}],849:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n iciclecolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendiciclecolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],850:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n coerce('iciclecolorway', layoutOut.colorway);\n coerce('extendiciclecolors');\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":849}],851:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar flipTree = _dereq_('../treemap/flip_tree');\n\nmodule.exports = function partition(entry, size, opts) {\n var flipX = opts.flipX;\n var flipY = opts.flipY;\n var swapXY = opts.orientation === 'h';\n var maxDepth = opts.maxDepth;\n\n var newWidth = size[0];\n var newHeight = size[1];\n if(maxDepth) {\n newWidth = (entry.height + 1) * size[0] / Math.min(entry.height + 1, maxDepth);\n newHeight = (entry.height + 1) * size[1] / Math.min(entry.height + 1, maxDepth);\n }\n\n var result = d3Hierarchy\n .partition()\n .padding(opts.pad.inner)\n .size(\n swapXY ? [size[1], newWidth] : [size[0], newHeight]\n )(entry);\n\n if(swapXY || flipX || flipY) {\n flipTree(result, size, {\n swapXY: swapXY,\n flipX: flipX,\n flipY: flipY\n });\n }\n return result;\n};\n\n},{\"../treemap/flip_tree\":1092,\"d3-hierarchy\":115}],852:[function(_dereq_,module,exports){\n'use strict';\n\nvar draw = _dereq_('../treemap/draw');\nvar drawDescendants = _dereq_('./draw_descendants');\n\nmodule.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {\n return draw(gd, cdmodule, transitionOpts, makeOnCompleteCallback, {\n type: 'icicle',\n drawDescendants: drawDescendants\n });\n};\n\n},{\"../treemap/draw\":1089,\"./draw_descendants\":847}],853:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nfunction style(gd) {\n var s = gd._fullLayout._iciclelayer.selectAll('.trace');\n resizeText(gd, s, 'icicle');\n\n s.each(function(cd) {\n var gTrace = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n gTrace.style('opacity', trace.opacity);\n\n gTrace.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n}\n\nfunction styleOne(s, pt, trace) {\n var cdi = pt.data.data;\n var isLeaf = !pt.children;\n var ptNumber = cdi.i;\n var lineColor = Lib.castOption(trace, ptNumber, 'marker.line.color') || Color.defaultLine;\n var lineWidth = Lib.castOption(trace, ptNumber, 'marker.line.width') || 0;\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, cdi.color)\n .call(Color.stroke, lineColor)\n .style('opacity', isLeaf ? trace.leaf.opacity : null);\n}\n\nmodule.exports = {\n style: style,\n styleOne: styleOne\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../bar/uniform_text\":673,\"@plotly/d3\":58}],854:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar colormodel = _dereq_('./constants').colormodel;\n\nvar cm = ['rgb', 'rgba', 'rgba256', 'hsl', 'hsla'];\nvar zminDesc = [];\nvar zmaxDesc = [];\nfor(var i = 0; i < cm.length; i++) {\n var cr = colormodel[cm[i]];\n zminDesc.push('For the `' + cm[i] + '` colormodel, it is [' + (cr.zminDflt || cr.min).join(', ') + '].');\n zmaxDesc.push('For the `' + cm[i] + '` colormodel, it is [' + (cr.zmaxDflt || cr.max).join(', ') + '].');\n}\n\nmodule.exports = extendFlat({\n source: {\n valType: 'string',\n editType: 'calc',\n },\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n colormodel: {\n valType: 'enumerated',\n values: cm,\n editType: 'calc',\n },\n zsmooth: {\n valType: 'enumerated',\n values: ['fast', false],\n dflt: false,\n editType: 'plot',\n },\n zmin: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'}\n ],\n editType: 'calc',\n },\n zmax: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'},\n {valType: 'number', editType: 'calc'}\n ],\n editType: 'calc',\n },\n x0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n y0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n dx: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n dy: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n text: {\n valType: 'data_array',\n editType: 'plot',\n },\n hovertext: {\n valType: 'data_array',\n editType: 'plot',\n },\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['x', 'y', 'z', 'color', 'name', 'text'],\n dflt: 'x+y+z+text+name'\n }),\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['z', 'color', 'colormodel']\n }),\n\n transforms: undefined\n});\n\n},{\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"./constants\":856}],855:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('./constants');\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar maxRowLength = _dereq_('../../lib').maxRowLength;\nvar getImageSize = _dereq_('./helpers').getImageSize;\n\nmodule.exports = function calc(gd, trace) {\n var h;\n var w;\n if(trace._hasZ) {\n h = trace.z.length;\n w = maxRowLength(trace.z);\n } else if(trace._hasSource) {\n var size = getImageSize(trace.source);\n h = size.height;\n w = size.width;\n }\n\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n\n var x0 = xa.d2c(trace.x0) - trace.dx / 2;\n var y0 = ya.d2c(trace.y0) - trace.dy / 2;\n\n // Set axis range\n var i;\n var xrange = [x0, x0 + w * trace.dx];\n var yrange = [y0, y0 + h * trace.dy];\n if(xa && xa.type === 'log') for(i = 0; i < w; i++) xrange.push(x0 + i * trace.dx);\n if(ya && ya.type === 'log') for(i = 0; i < h; i++) yrange.push(y0 + i * trace.dy);\n trace._extremes[xa._id] = Axes.findExtremes(xa, xrange);\n trace._extremes[ya._id] = Axes.findExtremes(ya, yrange);\n trace._scaler = makeScaler(trace);\n\n var cd0 = {\n x0: x0,\n y0: y0,\n z: trace.z,\n w: w,\n h: h\n };\n return [cd0];\n};\n\nfunction scale(zero, ratio, min, max) {\n return function(c) {\n return Lib.constrain((c - zero) * ratio, min, max);\n };\n}\n\nfunction constrain(min, max) {\n return function(c) { return Lib.constrain(c, min, max);};\n}\n\n// Generate a function to scale color components according to zmin/zmax and the colormodel\nfunction makeScaler(trace) {\n var cr = constants.colormodel[trace.colormodel];\n var colormodel = (cr.colormodel || trace.colormodel);\n var n = colormodel.length;\n\n trace._sArray = [];\n // Loop over all color components\n for(var k = 0; k < n; k++) {\n if(cr.min[k] !== trace.zmin[k] || cr.max[k] !== trace.zmax[k]) {\n trace._sArray.push(scale(\n trace.zmin[k],\n (cr.max[k] - cr.min[k]) / (trace.zmax[k] - trace.zmin[k]),\n cr.min[k],\n cr.max[k]\n ));\n } else {\n trace._sArray.push(constrain(cr.min[k], cr.max[k]));\n }\n }\n\n return function(pixel) {\n var c = pixel.slice(0, n);\n for(var k = 0; k < n; k++) {\n var ck = c[k];\n if(!isNumeric(ck)) return false;\n c[k] = trace._sArray[k](ck);\n }\n return c;\n };\n}\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"./constants\":856,\"./helpers\":859,\"fast-isnumeric\":190}],856:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n colormodel: {\n // min and max define the numerical range accepted in CSS\n // If z(min|max)Dflt are not defined, z(min|max) will default to min/max\n rgb: {\n min: [0, 0, 0],\n max: [255, 255, 255],\n fmt: function(c) {return c.slice(0, 3);},\n suffix: ['', '', '']\n },\n rgba: {\n min: [0, 0, 0, 0],\n max: [255, 255, 255, 1],\n fmt: function(c) {return c.slice(0, 4);},\n suffix: ['', '', '', '']\n },\n rgba256: {\n colormodel: 'rgba', // because rgba256 is not an accept colormodel in CSS\n zminDflt: [0, 0, 0, 0],\n zmaxDflt: [255, 255, 255, 255],\n min: [0, 0, 0, 0],\n max: [255, 255, 255, 1],\n fmt: function(c) {return c.slice(0, 4);},\n suffix: ['', '', '', '']\n },\n hsl: {\n min: [0, 0, 0],\n max: [360, 100, 100],\n fmt: function(c) {\n var p = c.slice(0, 3);\n p[1] = p[1] + '%';\n p[2] = p[2] + '%';\n return p;\n },\n suffix: ['°', '%', '%']\n },\n hsla: {\n min: [0, 0, 0, 0],\n max: [360, 100, 100, 1],\n fmt: function(c) {\n var p = c.slice(0, 4);\n p[1] = p[1] + '%';\n p[2] = p[2] + '%';\n return p;\n },\n suffix: ['°', '%', '%', '']\n }\n },\n // For pixelated image rendering\n // http://phrogz.net/tmp/canvas_image_zoom.html\n // https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering\n pixelatedStyle: [\n 'image-rendering: optimizeSpeed',\n 'image-rendering: -moz-crisp-edges',\n 'image-rendering: -o-crisp-edges',\n 'image-rendering: -webkit-optimize-contrast',\n 'image-rendering: optimize-contrast',\n 'image-rendering: crisp-edges',\n 'image-rendering: pixelated',\n ''\n ].join('; ')\n};\n\n},{}],857:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\nvar dataUri = _dereq_('../../snapshot/helpers').IMAGE_URL_PREFIX;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n coerce('source');\n // sanitize source to only allow for data URI representing images\n if(traceOut.source && !traceOut.source.match(dataUri)) delete traceOut.source;\n traceOut._hasSource = !!traceOut.source;\n\n var z = coerce('z');\n traceOut._hasZ = !(z === undefined || !z.length || !z[0] || !z[0].length);\n if(!traceOut._hasZ && !traceOut._hasSource) {\n traceOut.visible = false;\n return;\n }\n\n coerce('x0');\n coerce('y0');\n coerce('dx');\n coerce('dy');\n\n var cm;\n if(traceOut._hasZ) {\n coerce('colormodel', 'rgb');\n cm = constants.colormodel[traceOut.colormodel];\n coerce('zmin', (cm.zminDflt || cm.min));\n coerce('zmax', (cm.zmaxDflt || cm.max));\n } else if(traceOut._hasSource) {\n traceOut.colormodel = 'rgba256';\n cm = constants.colormodel[traceOut.colormodel];\n traceOut.zmin = cm.zminDflt;\n traceOut.zmax = cm.zmaxDflt;\n }\n\n coerce('zsmooth');\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n\n traceOut._length = null;\n};\n\n},{\"../../lib\":515,\"../../snapshot/helpers\":651,\"./attributes\":854,\"./constants\":856}],858:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt) {\n if('xVal' in pt) out.x = pt.xVal;\n if('yVal' in pt) out.y = pt.yVal;\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n out.color = pt.color;\n out.colormodel = pt.trace.colormodel;\n if(!out.z) out.z = pt.color;\n return out;\n};\n\n},{}],859:[function(_dereq_,module,exports){\n'use strict';\n\nvar probeSync = _dereq_('probe-image-size/sync');\nvar dataUri = _dereq_('../../snapshot/helpers').IMAGE_URL_PREFIX;\nvar Buffer = _dereq_('buffer/').Buffer; // note: the trailing slash is important!\n\nexports.getImageSize = function(src) {\n var data = src.replace(dataUri, '');\n var buff = new Buffer(data, 'base64');\n return probeSync(buff);\n};\n\n},{\"../../snapshot/helpers\":651,\"buffer/\":85,\"probe-image-size/sync\":277}],860:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar constants = _dereq_('./constants');\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd0 = pointData.cd[0];\n var trace = cd0.trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n\n // Return early if not on image\n if(Fx.inbox(xval - cd0.x0, xval - (cd0.x0 + cd0.w * trace.dx), 0) > 0 ||\n Fx.inbox(yval - cd0.y0, yval - (cd0.y0 + cd0.h * trace.dy), 0) > 0) {\n return;\n }\n\n // Find nearest pixel's index\n var nx = Math.floor((xval - cd0.x0) / trace.dx);\n var ny = Math.floor(Math.abs(yval - cd0.y0) / trace.dy);\n\n var pixel;\n if(trace._hasZ) {\n pixel = cd0.z[ny][nx];\n } else if(trace._hasSource) {\n pixel = trace._canvas.el.getContext('2d', {willReadFrequently: true}).getImageData(nx, ny, 1, 1).data;\n }\n\n // return early if pixel is undefined\n if(!pixel) return;\n\n var hoverinfo = cd0.hi || trace.hoverinfo;\n var fmtColor;\n if(hoverinfo) {\n var parts = hoverinfo.split('+');\n if(parts.indexOf('all') !== -1) parts = ['color'];\n if(parts.indexOf('color') !== -1) fmtColor = true;\n }\n\n var cr = constants.colormodel[trace.colormodel];\n var colormodel = cr.colormodel || trace.colormodel;\n var dims = colormodel.length;\n var c = trace._scaler(pixel);\n var s = cr.suffix;\n\n var colorstring = [];\n if(trace.hovertemplate || fmtColor) {\n colorstring.push('[' + [c[0] + s[0], c[1] + s[1], c[2] + s[2]].join(', '));\n if(dims === 4) colorstring.push(', ' + c[3] + s[3]);\n colorstring.push(']');\n colorstring = colorstring.join('');\n pointData.extraText = colormodel.toUpperCase() + ': ' + colorstring;\n }\n\n var text;\n if(Array.isArray(trace.hovertext) && Array.isArray(trace.hovertext[ny])) {\n text = trace.hovertext[ny][nx];\n } else if(Array.isArray(trace.text) && Array.isArray(trace.text[ny])) {\n text = trace.text[ny][nx];\n }\n\n // TODO: for color model with 3 dims, display something useful for hovertemplate `%{color[3]}`\n var py = ya.c2p(cd0.y0 + (ny + 0.5) * trace.dy);\n var xVal = cd0.x0 + (nx + 0.5) * trace.dx;\n var yVal = cd0.y0 + (ny + 0.5) * trace.dy;\n var zLabel = '[' + pixel.slice(0, trace.colormodel.length).join(', ') + ']';\n return [Lib.extendFlat(pointData, {\n index: [ny, nx],\n x0: xa.c2p(cd0.x0 + nx * trace.dx),\n x1: xa.c2p(cd0.x0 + (nx + 1) * trace.dx),\n y0: py,\n y1: py,\n color: c,\n xVal: xVal,\n xLabelVal: xVal,\n yVal: yVal,\n yLabelVal: yVal,\n zLabelVal: zLabel,\n text: text,\n hovertemplateLabels: {\n 'zLabel': zLabel,\n 'colorLabel': colorstring,\n 'color[0]Label': c[0] + s[0],\n 'color[1]Label': c[1] + s[1],\n 'color[2]Label': c[2] + s[2],\n 'color[3]Label': c[3] + s[3]\n }\n })];\n};\n\n},{\"../../components/fx\":407,\"../../lib\":515,\"./constants\":856}],861:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'image',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', '2dMap', 'noSortingByValue'],\n animatable: false,\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"./attributes\":854,\"./calc\":855,\"./defaults\":857,\"./event_data\":858,\"./hover\":860,\"./plot\":862,\"./style\":863}],862:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\nvar constants = _dereq_('./constants');\n\nvar unsupportedBrowsers = Lib.isIOS() || Lib.isSafari() || Lib.isIE();\n\nmodule.exports = function plot(gd, plotinfo, cdimage, imageLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var supportsPixelatedImage = !(unsupportedBrowsers || gd._context._exportedPlot);\n\n Lib.makeTraceGroups(imageLayer, cdimage, 'im').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n var realImage = (\n ((trace.zsmooth === 'fast') || (trace.zsmooth === false && supportsPixelatedImage)) &&\n !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear'\n );\n trace._realImage = realImage;\n\n var z = cd0.z;\n var x0 = cd0.x0;\n var y0 = cd0.y0;\n var w = cd0.w;\n var h = cd0.h;\n var dx = trace.dx;\n var dy = trace.dy;\n\n var left, right, temp, top, bottom, i;\n // in case of log of a negative\n i = 0;\n while(left === undefined && i < w) {\n left = xa.c2p(x0 + i * dx);\n i++;\n }\n i = w;\n while(right === undefined && i > 0) {\n right = xa.c2p(x0 + i * dx);\n i--;\n }\n i = 0;\n while(top === undefined && i < h) {\n top = ya.c2p(y0 + i * dy);\n i++;\n }\n i = h;\n while(bottom === undefined && i > 0) {\n bottom = ya.c2p(y0 + i * dy);\n i--;\n }\n\n if(right < left) {\n temp = right;\n right = left;\n left = temp;\n }\n\n if(bottom < top) {\n temp = top;\n top = bottom;\n bottom = temp;\n }\n\n // Reduce image size when zoomed in to save memory\n if(!realImage) {\n var extra = 0.5; // half the axis size\n left = Math.max(-extra * xa._length, left);\n right = Math.min((1 + extra) * xa._length, right);\n top = Math.max(-extra * ya._length, top);\n bottom = Math.min((1 + extra) * ya._length, bottom);\n }\n\n var imageWidth = Math.round(right - left);\n var imageHeight = Math.round(bottom - top);\n\n // if image is entirely off-screen, don't even draw it\n var isOffScreen = (imageWidth <= 0 || imageHeight <= 0);\n if(isOffScreen) {\n var noImage = plotGroup.selectAll('image').data([]);\n noImage.exit().remove();\n return;\n }\n\n // Create a new canvas and draw magnified pixels on it\n function drawMagnifiedPixelsOnCanvas(readPixel) {\n var canvas = document.createElement('canvas');\n canvas.width = imageWidth;\n canvas.height = imageHeight;\n var context = canvas.getContext('2d', {willReadFrequently: true});\n\n var ipx = function(i) {return Lib.constrain(Math.round(xa.c2p(x0 + i * dx) - left), 0, imageWidth);};\n var jpx = function(j) {return Lib.constrain(Math.round(ya.c2p(y0 + j * dy) - top), 0, imageHeight);};\n\n var cr = constants.colormodel[trace.colormodel];\n var colormodel = (cr.colormodel || trace.colormodel);\n var fmt = cr.fmt;\n var c;\n for(i = 0; i < cd0.w; i++) {\n var ipx0 = ipx(i); var ipx1 = ipx(i + 1);\n if(ipx1 === ipx0 || isNaN(ipx1) || isNaN(ipx0)) continue;\n for(var j = 0; j < cd0.h; j++) {\n var jpx0 = jpx(j); var jpx1 = jpx(j + 1);\n if(jpx1 === jpx0 || isNaN(jpx1) || isNaN(jpx0) || !readPixel(i, j)) continue;\n c = trace._scaler(readPixel(i, j));\n if(c) {\n context.fillStyle = colormodel + '(' + fmt(c).join(',') + ')';\n } else {\n // Return a transparent pixel\n context.fillStyle = 'rgba(0,0,0,0)';\n }\n context.fillRect(ipx0, jpx0, ipx1 - ipx0, jpx1 - jpx0);\n }\n }\n\n return canvas;\n }\n\n var image3 = plotGroup.selectAll('image')\n .data([cd]);\n\n image3.enter().append('svg:image').attr({\n xmlns: xmlnsNamespaces.svg,\n preserveAspectRatio: 'none'\n });\n\n image3.exit().remove();\n\n var style = (trace.zsmooth === false) ? constants.pixelatedStyle : '';\n\n if(realImage) {\n var xRange = Lib.simpleMap(xa.range, xa.r2l);\n var yRange = Lib.simpleMap(ya.range, ya.r2l);\n\n var flipX = xRange[1] < xRange[0];\n var flipY = yRange[1] > yRange[0];\n if(flipX || flipY) {\n var tx = left + imageWidth / 2;\n var ty = top + imageHeight / 2;\n style += 'transform:' +\n strTranslate(tx + 'px', ty + 'px') +\n 'scale(' + (flipX ? -1 : 1) + ',' + (flipY ? -1 : 1) + ')' +\n strTranslate(-tx + 'px', -ty + 'px') + ';';\n }\n }\n image3.attr('style', style);\n\n var p = new Promise(function(resolve) {\n if(trace._hasZ) {\n resolve();\n } else if(trace._hasSource) {\n // Check if canvas already exists and has the right data\n if(\n trace._canvas &&\n trace._canvas.el.width === w &&\n trace._canvas.el.height === h &&\n trace._canvas.source === trace.source\n ) {\n resolve();\n } else {\n // Create a canvas and transfer image onto it to access pixel information\n var canvas = document.createElement('canvas');\n canvas.width = w;\n canvas.height = h;\n var context = canvas.getContext('2d', {willReadFrequently: true});\n\n trace._image = trace._image || new Image();\n var image = trace._image;\n image.onload = function() {\n context.drawImage(image, 0, 0);\n trace._canvas = {\n el: canvas,\n source: trace.source\n };\n resolve();\n };\n image.setAttribute('src', trace.source);\n }\n }\n })\n .then(function() {\n var href, canvas;\n if(trace._hasZ) {\n canvas = drawMagnifiedPixelsOnCanvas(function(i, j) {return z[j][i];});\n href = canvas.toDataURL('image/png');\n } else if(trace._hasSource) {\n if(realImage) {\n href = trace.source;\n } else {\n var context = trace._canvas.el.getContext('2d', {willReadFrequently: true});\n var data = context.getImageData(0, 0, w, h).data;\n canvas = drawMagnifiedPixelsOnCanvas(function(i, j) {\n var index = 4 * (j * w + i);\n return [\n data[index],\n data[index + 1],\n data[index + 2],\n data[index + 3]\n ];\n });\n href = canvas.toDataURL('image/png');\n }\n }\n\n image3.attr({\n 'xlink:href': href,\n height: imageHeight,\n width: imageWidth,\n x: left,\n y: top\n });\n });\n\n gd._promises.push(p);\n });\n};\n\n},{\"../../constants/xmlns_namespaces\":492,\"../../lib\":515,\"./constants\":856,\"@plotly/d3\":58}],863:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nmodule.exports = function style(gd) {\n d3.select(gd).selectAll('.im image')\n .style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n};\n\n},{\"@plotly/d3\":58}],864:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar extendDeep = _dereq_('../../lib/extend').extendDeep;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar delta = _dereq_('../../constants/delta.js');\nvar descriptionOnlyNumbers = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionOnlyNumbers;\n\nvar textFontAttrs = fontAttrs({\n editType: 'plot',\n colorEditType: 'plot'\n});\n\nvar gaugeBarAttrs = {\n color: {\n valType: 'color',\n editType: 'plot',\n },\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n editType: 'calc'\n },\n thickness: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n editType: 'plot',\n },\n editType: 'calc'\n};\n\nvar rangeAttr = {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'plot'},\n {valType: 'number', editType: 'plot'}\n ],\n editType: 'plot',\n};\n\nvar stepsAttrs = templatedArray('step', extendDeep({}, gaugeBarAttrs, {\n range: rangeAttr\n}));\n\nmodule.exports = {\n mode: {\n valType: 'flaglist',\n editType: 'calc',\n flags: ['number', 'delta', 'gauge'],\n dflt: 'number',\n },\n value: {\n valType: 'number',\n editType: 'calc',\n anim: true,\n },\n align: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n editType: 'plot',\n },\n // position\n domain: domainAttrs({name: 'indicator', trace: true, editType: 'calc'}),\n\n title: {\n text: {\n valType: 'string',\n editType: 'plot',\n },\n align: {\n valType: 'enumerated',\n values: ['left', 'center', 'right'],\n editType: 'plot',\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n editType: 'plot'\n },\n number: {\n valueformat: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n description: descriptionOnlyNumbers('value')\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n prefix: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n suffix: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n editType: 'plot'\n },\n delta: {\n reference: {\n valType: 'number',\n editType: 'calc',\n },\n position: {\n valType: 'enumerated',\n values: ['top', 'bottom', 'left', 'right'],\n dflt: 'bottom',\n editType: 'plot',\n },\n relative: {\n valType: 'boolean',\n editType: 'plot',\n dflt: false,\n },\n valueformat: {\n valType: 'string',\n editType: 'plot',\n description: descriptionOnlyNumbers('value')\n },\n increasing: {\n symbol: {\n valType: 'string',\n dflt: delta.INCREASING.SYMBOL,\n editType: 'plot',\n },\n color: {\n valType: 'color',\n dflt: delta.INCREASING.COLOR,\n editType: 'plot',\n },\n // TODO: add attribute to show sign\n editType: 'plot'\n },\n decreasing: {\n symbol: {\n valType: 'string',\n dflt: delta.DECREASING.SYMBOL,\n editType: 'plot',\n },\n color: {\n valType: 'color',\n dflt: delta.DECREASING.COLOR,\n editType: 'plot',\n },\n // TODO: add attribute to hide sign\n editType: 'plot'\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n prefix: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n suffix: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n editType: 'calc'\n },\n gauge: {\n shape: {\n valType: 'enumerated',\n editType: 'plot',\n dflt: 'angular',\n values: ['angular', 'bullet'],\n },\n bar: extendDeep({}, gaugeBarAttrs, {\n color: {dflt: 'green'},\n }),\n // Background of the gauge\n bgcolor: {\n valType: 'color',\n editType: 'plot',\n },\n bordercolor: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n editType: 'plot',\n },\n borderwidth: {\n valType: 'number',\n min: 0,\n dflt: 1,\n editType: 'plot',\n },\n axis: overrideAll({\n range: rangeAttr,\n visible: extendFlat({}, axesAttrs.visible, {\n dflt: true\n }),\n // tick and title properties named and function exactly as in axes\n tickmode: axesAttrs.tickmode,\n nticks: axesAttrs.nticks,\n tick0: axesAttrs.tick0,\n dtick: axesAttrs.dtick,\n tickvals: axesAttrs.tickvals,\n ticktext: axesAttrs.ticktext,\n ticks: extendFlat({}, axesAttrs.ticks, {dflt: 'outside'}),\n ticklen: axesAttrs.ticklen,\n tickwidth: axesAttrs.tickwidth,\n tickcolor: axesAttrs.tickcolor,\n ticklabelstep: axesAttrs.ticklabelstep,\n showticklabels: axesAttrs.showticklabels,\n tickfont: fontAttrs({\n }),\n tickangle: axesAttrs.tickangle,\n tickformat: axesAttrs.tickformat,\n tickformatstops: axesAttrs.tickformatstops,\n tickprefix: axesAttrs.tickprefix,\n showtickprefix: axesAttrs.showtickprefix,\n ticksuffix: axesAttrs.ticksuffix,\n showticksuffix: axesAttrs.showticksuffix,\n separatethousands: axesAttrs.separatethousands,\n exponentformat: axesAttrs.exponentformat,\n minexponent: axesAttrs.minexponent,\n showexponent: axesAttrs.showexponent,\n editType: 'plot'\n }, 'plot'),\n // Steps (or ranges) and thresholds\n steps: stepsAttrs,\n threshold: {\n line: {\n color: extendFlat({}, gaugeBarAttrs.line.color, {\n }),\n width: extendFlat({}, gaugeBarAttrs.line.width, {\n dflt: 1,\n }),\n editType: 'plot'\n },\n thickness: extendFlat({}, gaugeBarAttrs.thickness, {\n dflt: 0.85,\n }),\n value: {\n valType: 'number',\n editType: 'calc',\n dflt: false,\n },\n editType: 'plot'\n },\n editType: 'plot'\n // TODO: in future version, add marker: (bar|needle)\n }\n};\n\n},{\"../../components/color/attributes\":366,\"../../constants/delta.js\":485,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/cartesian/layout_attributes\":579,\"../../plots/domain\":593,\"../../plots/font_attributes\":594}],865:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'indicator';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":628}],866:[function(_dereq_,module,exports){\n'use strict';\n\n// var Lib = require('../../lib');\n\nfunction calc(gd, trace) {\n var cd = [];\n\n var lastReading = trace.value;\n if(!(typeof trace._lastValue === 'number')) trace._lastValue = trace.value;\n var secondLastReading = trace._lastValue;\n var deltaRef = secondLastReading;\n if(trace._hasDelta && typeof trace.delta.reference === 'number') {\n deltaRef = trace.delta.reference;\n }\n cd[0] = {\n y: lastReading,\n lastY: secondLastReading,\n\n delta: lastReading - deltaRef,\n relativeDelta: (lastReading - deltaRef) / deltaRef,\n };\n return cd;\n}\n\nmodule.exports = {\n calc: calc\n};\n\n},{}],867:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n // Defaults for delta\n defaultNumberFontSize: 80,\n bulletNumberDomainSize: 0.25,\n bulletPadding: 0.025,\n innerRadius: 0.75,\n valueThickness: 0.5, // thickness of value bars relative to full thickness,\n titlePadding: 5,\n horizontalPadding: 10\n};\n\n},{}],868:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar Template = _dereq_('../../plot_api/plot_template');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\nvar cn = _dereq_('./constants.js');\n\nvar handleTickValueDefaults = _dereq_('../../plots/cartesian/tick_value_defaults');\nvar handleTickMarkDefaults = _dereq_('../../plots/cartesian/tick_mark_defaults');\nvar handleTickLabelDefaults = _dereq_('../../plots/cartesian/tick_label_defaults');\nvar handlePrefixSuffixDefaults = _dereq_('../../plots/cartesian/prefix_suffix_defaults');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // Mode\n coerce('mode');\n traceOut._hasNumber = traceOut.mode.indexOf('number') !== -1;\n traceOut._hasDelta = traceOut.mode.indexOf('delta') !== -1;\n traceOut._hasGauge = traceOut.mode.indexOf('gauge') !== -1;\n\n var value = coerce('value');\n traceOut._range = [0, (typeof value === 'number' ? 1.5 * value : 1)];\n\n // Number attributes\n var auto = new Array(2);\n var bignumberFontSize;\n if(traceOut._hasNumber) {\n coerce('number.valueformat');\n coerce('number.font.color', layout.font.color);\n coerce('number.font.family', layout.font.family);\n coerce('number.font.size');\n if(traceOut.number.font.size === undefined) {\n traceOut.number.font.size = cn.defaultNumberFontSize;\n auto[0] = true;\n }\n coerce('number.prefix');\n coerce('number.suffix');\n bignumberFontSize = traceOut.number.font.size;\n }\n\n // delta attributes\n var deltaFontSize;\n if(traceOut._hasDelta) {\n coerce('delta.font.color', layout.font.color);\n coerce('delta.font.family', layout.font.family);\n coerce('delta.font.size');\n if(traceOut.delta.font.size === undefined) {\n traceOut.delta.font.size = (traceOut._hasNumber ? 0.5 : 1) * (bignumberFontSize || cn.defaultNumberFontSize);\n auto[1] = true;\n }\n coerce('delta.reference', traceOut.value);\n coerce('delta.relative');\n coerce('delta.valueformat', traceOut.delta.relative ? '2%' : '');\n coerce('delta.increasing.symbol');\n coerce('delta.increasing.color');\n coerce('delta.decreasing.symbol');\n coerce('delta.decreasing.color');\n coerce('delta.position');\n coerce('delta.prefix');\n coerce('delta.suffix');\n deltaFontSize = traceOut.delta.font.size;\n }\n traceOut._scaleNumbers = (!traceOut._hasNumber || auto[0]) && (!traceOut._hasDelta || auto[1]) || false;\n\n // Title attributes\n coerce('title.font.color', layout.font.color);\n coerce('title.font.family', layout.font.family);\n coerce('title.font.size', 0.25 * (bignumberFontSize || deltaFontSize || cn.defaultNumberFontSize));\n coerce('title.text');\n\n // Gauge attributes\n var gaugeIn, gaugeOut, axisIn, axisOut;\n function coerceGauge(attr, dflt) {\n return Lib.coerce(gaugeIn, gaugeOut, attributes.gauge, attr, dflt);\n }\n function coerceGaugeAxis(attr, dflt) {\n return Lib.coerce(axisIn, axisOut, attributes.gauge.axis, attr, dflt);\n }\n\n if(traceOut._hasGauge) {\n gaugeIn = traceIn.gauge;\n if(!gaugeIn) gaugeIn = {};\n gaugeOut = Template.newContainer(traceOut, 'gauge');\n coerceGauge('shape');\n var isBullet = traceOut._isBullet = traceOut.gauge.shape === 'bullet';\n if(!isBullet) {\n coerce('title.align', 'center');\n }\n var isAngular = traceOut._isAngular = traceOut.gauge.shape === 'angular';\n if(!isAngular) {\n coerce('align', 'center');\n }\n\n // gauge background\n coerceGauge('bgcolor', layout.paper_bgcolor);\n coerceGauge('borderwidth');\n coerceGauge('bordercolor');\n\n // gauge bar indicator\n coerceGauge('bar.color');\n coerceGauge('bar.line.color');\n coerceGauge('bar.line.width');\n var defaultBarThickness = cn.valueThickness * (traceOut.gauge.shape === 'bullet' ? 0.5 : 1);\n coerceGauge('bar.thickness', defaultBarThickness);\n\n // Gauge steps\n handleArrayContainerDefaults(gaugeIn, gaugeOut, {\n name: 'steps',\n handleItemDefaults: stepDefaults\n });\n\n // Gauge threshold\n coerceGauge('threshold.value');\n coerceGauge('threshold.thickness');\n coerceGauge('threshold.line.width');\n coerceGauge('threshold.line.color');\n\n // Gauge axis\n axisIn = {};\n if(gaugeIn) axisIn = gaugeIn.axis || {};\n axisOut = Template.newContainer(gaugeOut, 'axis');\n coerceGaugeAxis('visible');\n traceOut._range = coerceGaugeAxis('range', traceOut._range);\n\n var opts = {outerTicks: true};\n handleTickValueDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear');\n handlePrefixSuffixDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear', opts);\n handleTickLabelDefaults(axisIn, axisOut, coerceGaugeAxis, 'linear', opts);\n handleTickMarkDefaults(axisIn, axisOut, coerceGaugeAxis, opts);\n } else {\n coerce('title.align', 'center');\n coerce('align', 'center');\n traceOut._isAngular = traceOut._isBullet = false;\n }\n\n // disable 1D transforms\n traceOut._length = null;\n}\n\nfunction stepDefaults(stepIn, stepOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(stepIn, stepOut, attributes.gauge.steps, attr, dflt);\n }\n\n coerce('color');\n coerce('line.color');\n coerce('line.width');\n coerce('range');\n coerce('thickness');\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults\n};\n\n},{\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/prefix_suffix_defaults\":583,\"../../plots/cartesian/tick_label_defaults\":587,\"../../plots/cartesian/tick_mark_defaults\":588,\"../../plots/cartesian/tick_value_defaults\":589,\"../../plots/domain\":593,\"./attributes\":864,\"./constants.js\":867}],869:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'indicator',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['svg', 'noOpacity', 'noHover'],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n\n calc: _dereq_('./calc').calc,\n\n plot: _dereq_('./plot'),\n\n meta: {\n }\n};\n\n},{\"./attributes\":864,\"./base_plot\":865,\"./calc\":866,\"./defaults\":868,\"./plot\":870}],870:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar interpolate = _dereq_('d3-interpolate').interpolate;\nvar interpolateNumber = _dereq_('d3-interpolate').interpolateNumber;\n\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strTranslate = Lib.strTranslate;\nvar rad2deg = Lib.rad2deg;\nvar MID_SHIFT = _dereq_('../../constants/alignment').MID_SHIFT;\nvar Drawing = _dereq_('../../components/drawing');\nvar cn = _dereq_('./constants');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar handleAxisDefaults = _dereq_('../../plots/cartesian/axis_defaults');\nvar handleAxisPositionDefaults = _dereq_('../../plots/cartesian/position_defaults');\nvar axisLayoutAttrs = _dereq_('../../plots/cartesian/layout_attributes');\n\nvar Color = _dereq_('../../components/color');\nvar anchor = {\n 'left': 'start',\n 'center': 'middle',\n 'right': 'end'\n};\nvar position = {\n 'left': 0,\n 'center': 0.5,\n 'right': 1\n};\n\nvar SI_PREFIX = /[yzafpnµmkMGTPEZY]/;\n\nfunction hasTransition(transitionOpts) {\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n return transitionOpts && transitionOpts.duration > 0;\n}\n\nmodule.exports = function plot(gd, cdModule, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n var onComplete;\n\n if(hasTransition(transitionOpts)) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n }\n\n Lib.makeTraceGroups(fullLayout._indicatorlayer, cdModule, 'trace').each(function(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var plotGroup = d3.select(this);\n\n // Elements in trace\n var hasGauge = trace._hasGauge;\n var isAngular = trace._isAngular;\n var isBullet = trace._isBullet;\n\n // Domain size\n var domain = trace.domain;\n var size = {\n w: fullLayout._size.w * (domain.x[1] - domain.x[0]),\n h: fullLayout._size.h * (domain.y[1] - domain.y[0]),\n l: fullLayout._size.l + fullLayout._size.w * domain.x[0],\n r: fullLayout._size.r + fullLayout._size.w * (1 - domain.x[1]),\n t: fullLayout._size.t + fullLayout._size.h * (1 - domain.y[1]),\n b: fullLayout._size.b + fullLayout._size.h * (domain.y[0])\n };\n var centerX = size.l + size.w / 2;\n var centerY = size.t + size.h / 2;\n\n // Angular gauge size\n var radius = Math.min(size.w / 2, size.h); // fill domain\n var innerRadius = cn.innerRadius * radius;\n\n // Position numbers based on mode and set the scaling logic\n var numbersX, numbersY, numbersScaler;\n var numbersAlign = trace.align || 'center';\n\n numbersY = centerY;\n if(!hasGauge) {\n numbersX = size.l + position[numbersAlign] * size.w;\n numbersScaler = function(el) {\n return fitTextInsideBox(el, size.w, size.h);\n };\n } else {\n if(isAngular) {\n numbersX = centerX;\n numbersY = centerY + radius / 2;\n numbersScaler = function(el) {\n return fitTextInsideCircle(el, 0.9 * innerRadius);\n };\n }\n if(isBullet) {\n var padding = cn.bulletPadding;\n var p = (1 - cn.bulletNumberDomainSize) + padding;\n numbersX = size.l + (p + (1 - p) * position[numbersAlign]) * size.w;\n numbersScaler = function(el) {\n return fitTextInsideBox(el, (cn.bulletNumberDomainSize - padding) * size.w, size.h);\n };\n }\n }\n\n // Draw numbers\n drawNumbers(gd, plotGroup, cd, {\n numbersX: numbersX,\n numbersY: numbersY,\n numbersScaler: numbersScaler,\n transitionOpts: transitionOpts,\n onComplete: onComplete\n });\n\n // Reexpress our gauge background attributes for drawing\n var gaugeBg, gaugeOutline;\n if(hasGauge) {\n gaugeBg = {\n range: trace.gauge.axis.range,\n color: trace.gauge.bgcolor,\n line: {\n color: trace.gauge.bordercolor,\n width: 0\n },\n thickness: 1\n };\n\n gaugeOutline = {\n range: trace.gauge.axis.range,\n color: 'rgba(0, 0, 0, 0)',\n line: {\n color: trace.gauge.bordercolor,\n width: trace.gauge.borderwidth\n },\n thickness: 1\n };\n }\n\n // Prepare angular gauge layers\n var angularGauge = plotGroup.selectAll('g.angular').data(isAngular ? cd : []);\n angularGauge.exit().remove();\n var angularaxisLayer = plotGroup.selectAll('g.angularaxis').data(isAngular ? cd : []);\n angularaxisLayer.exit().remove();\n\n if(isAngular) {\n drawAngularGauge(gd, plotGroup, cd, {\n radius: radius,\n innerRadius: innerRadius,\n\n gauge: angularGauge,\n layer: angularaxisLayer,\n size: size,\n gaugeBg: gaugeBg,\n gaugeOutline: gaugeOutline,\n transitionOpts: transitionOpts,\n onComplete: onComplete\n });\n }\n\n // Prepare bullet layers\n var bulletGauge = plotGroup.selectAll('g.bullet').data(isBullet ? cd : []);\n bulletGauge.exit().remove();\n var bulletaxisLayer = plotGroup.selectAll('g.bulletaxis').data(isBullet ? cd : []);\n bulletaxisLayer.exit().remove();\n\n if(isBullet) {\n drawBulletGauge(gd, plotGroup, cd, {\n gauge: bulletGauge,\n layer: bulletaxisLayer,\n size: size,\n gaugeBg: gaugeBg,\n gaugeOutline: gaugeOutline,\n transitionOpts: transitionOpts,\n onComplete: onComplete\n });\n }\n\n // title\n var title = plotGroup.selectAll('text.title').data(cd);\n title.exit().remove();\n title.enter().append('text').classed('title', true);\n title\n .attr('text-anchor', function() {\n return isBullet ? anchor.right : anchor[trace.title.align];\n })\n .text(trace.title.text)\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // Position title\n title.attr('transform', function() {\n var titleX = size.l + size.w * position[trace.title.align];\n var titleY;\n var titlePadding = cn.titlePadding;\n var titlebBox = Drawing.bBox(title.node());\n if(hasGauge) {\n if(isAngular) {\n // position above axis ticks/labels\n if(trace.gauge.axis.visible) {\n var bBox = Drawing.bBox(angularaxisLayer.node());\n titleY = (bBox.top - titlePadding) - titlebBox.bottom;\n } else {\n titleY = size.t + size.h / 2 - radius / 2 - titlebBox.bottom - titlePadding;\n }\n }\n if(isBullet) {\n // position outside domain\n titleY = numbersY - (titlebBox.top + titlebBox.bottom) / 2;\n titleX = size.l - cn.bulletPadding * size.w; // Outside domain, on the left\n }\n } else {\n // position above numbers\n titleY = (trace._numbersTop - titlePadding) - titlebBox.bottom;\n }\n return strTranslate(titleX, titleY);\n });\n });\n};\n\nfunction drawBulletGauge(gd, plotGroup, cd, opts) {\n var trace = cd[0].trace;\n\n var bullet = opts.gauge;\n var axisLayer = opts.layer;\n var gaugeBg = opts.gaugeBg;\n var gaugeOutline = opts.gaugeOutline;\n var size = opts.size;\n var domain = trace.domain;\n\n var transitionOpts = opts.transitionOpts;\n var onComplete = opts.onComplete;\n\n // preparing axis\n var ax, vals, transFn, tickSign, shift;\n\n // Enter bullet, axis\n bullet.enter().append('g').classed('bullet', true);\n bullet.attr('transform', strTranslate(size.l, size.t));\n\n axisLayer.enter().append('g')\n .classed('bulletaxis', true)\n .classed('crisp', true);\n axisLayer.selectAll('g.' + 'xbulletaxis' + 'tick,path,text').remove();\n\n // Draw bullet\n var bulletHeight = size.h; // use all vertical domain\n var innerBulletHeight = trace.gauge.bar.thickness * bulletHeight;\n var bulletLeft = domain.x[0];\n var bulletRight = domain.x[0] + (domain.x[1] - domain.x[0]) * ((trace._hasNumber || trace._hasDelta) ? (1 - cn.bulletNumberDomainSize) : 1);\n\n ax = mockAxis(gd, trace.gauge.axis);\n ax._id = 'xbulletaxis';\n ax.domain = [bulletLeft, bulletRight];\n ax.setScale();\n\n vals = Axes.calcTicks(ax);\n transFn = Axes.makeTransTickFn(ax);\n tickSign = Axes.getTickSigns(ax)[2];\n\n shift = size.t + size.h;\n if(ax.visible) {\n Axes.drawTicks(gd, ax, {\n vals: ax.ticks === 'inside' ? Axes.clipEnds(ax, vals) : vals,\n layer: axisLayer,\n path: Axes.makeTickPath(ax, shift, tickSign),\n transFn: transFn\n });\n\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axisLayer,\n transFn: transFn,\n labelFns: Axes.makeLabelFns(ax, shift)\n });\n }\n\n function drawRect(s) {\n s\n .attr('width', function(d) { return Math.max(0, ax.c2p(d.range[1]) - ax.c2p(d.range[0]));})\n .attr('x', function(d) { return ax.c2p(d.range[0]);})\n .attr('y', function(d) { return 0.5 * (1 - d.thickness) * bulletHeight;})\n .attr('height', function(d) { return d.thickness * bulletHeight; });\n }\n\n // Draw bullet background, steps\n var boxes = [gaugeBg].concat(trace.gauge.steps);\n var bgBullet = bullet.selectAll('g.bg-bullet').data(boxes);\n bgBullet.enter().append('g').classed('bg-bullet', true).append('rect');\n bgBullet.select('rect')\n .call(drawRect)\n .call(styleShape);\n bgBullet.exit().remove();\n\n // Draw value bar with transitions\n var fgBullet = bullet.selectAll('g.value-bullet').data([trace.gauge.bar]);\n fgBullet.enter().append('g').classed('value-bullet', true).append('rect');\n fgBullet.select('rect')\n .attr('height', innerBulletHeight)\n .attr('y', (bulletHeight - innerBulletHeight) / 2)\n .call(styleShape);\n if(hasTransition(transitionOpts)) {\n fgBullet.select('rect')\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); })\n .attr('width', Math.max(0, ax.c2p(Math.min(trace.gauge.axis.range[1], cd[0].y))));\n } else {\n fgBullet.select('rect')\n .attr('width', typeof cd[0].y === 'number' ?\n Math.max(0, ax.c2p(Math.min(trace.gauge.axis.range[1], cd[0].y))) :\n 0);\n }\n fgBullet.exit().remove();\n\n var data = cd.filter(function() {return trace.gauge.threshold.value || trace.gauge.threshold.value === 0;});\n var threshold = bullet.selectAll('g.threshold-bullet').data(data);\n threshold.enter().append('g').classed('threshold-bullet', true).append('line');\n threshold.select('line')\n .attr('x1', ax.c2p(trace.gauge.threshold.value))\n .attr('x2', ax.c2p(trace.gauge.threshold.value))\n .attr('y1', (1 - trace.gauge.threshold.thickness) / 2 * bulletHeight)\n .attr('y2', (1 - (1 - trace.gauge.threshold.thickness) / 2) * bulletHeight)\n .call(Color.stroke, trace.gauge.threshold.line.color)\n .style('stroke-width', trace.gauge.threshold.line.width);\n threshold.exit().remove();\n\n var bulletOutline = bullet.selectAll('g.gauge-outline').data([gaugeOutline]);\n bulletOutline.enter().append('g').classed('gauge-outline', true).append('rect');\n bulletOutline.select('rect')\n .call(drawRect)\n .call(styleShape);\n bulletOutline.exit().remove();\n}\n\nfunction drawAngularGauge(gd, plotGroup, cd, opts) {\n var trace = cd[0].trace;\n\n var size = opts.size;\n var radius = opts.radius;\n var innerRadius = opts.innerRadius;\n var gaugeBg = opts.gaugeBg;\n var gaugeOutline = opts.gaugeOutline;\n var gaugePosition = [size.l + size.w / 2, size.t + size.h / 2 + radius / 2];\n var gauge = opts.gauge;\n var axisLayer = opts.layer;\n\n var transitionOpts = opts.transitionOpts;\n var onComplete = opts.onComplete;\n\n // circular gauge\n var theta = Math.PI / 2;\n function valueToAngle(v) {\n var min = trace.gauge.axis.range[0];\n var max = trace.gauge.axis.range[1];\n var angle = (v - min) / (max - min) * Math.PI - theta;\n if(angle < -theta) return -theta;\n if(angle > theta) return theta;\n return angle;\n }\n\n function arcPathGenerator(size) {\n return d3.svg.arc()\n .innerRadius((innerRadius + radius) / 2 - size / 2 * (radius - innerRadius))\n .outerRadius((innerRadius + radius) / 2 + size / 2 * (radius - innerRadius))\n .startAngle(-theta);\n }\n\n function drawArc(p) {\n p\n .attr('d', function(d) {\n return arcPathGenerator(d.thickness)\n .startAngle(valueToAngle(d.range[0]))\n .endAngle(valueToAngle(d.range[1]))();\n });\n }\n\n // preparing axis\n var ax, vals, transFn, tickSign;\n\n // Enter gauge and axis\n gauge.enter().append('g').classed('angular', true);\n gauge.attr('transform', strTranslate(gaugePosition[0], gaugePosition[1]));\n\n axisLayer.enter().append('g')\n .classed('angularaxis', true)\n .classed('crisp', true);\n axisLayer.selectAll('g.' + 'xangularaxis' + 'tick,path,text').remove();\n\n ax = mockAxis(gd, trace.gauge.axis);\n ax.type = 'linear';\n ax.range = trace.gauge.axis.range;\n ax._id = 'xangularaxis'; // or 'y', but I don't think this makes a difference here\n ax.ticklabeloverflow = 'allow';\n ax.setScale();\n\n // 't'ick to 'g'eometric radians is used all over the place here\n var t2g = function(d) {\n return (ax.range[0] - d.x) / (ax.range[1] - ax.range[0]) * Math.PI + Math.PI;\n };\n\n var labelFns = {};\n var out = Axes.makeLabelFns(ax, 0);\n var labelStandoff = out.labelStandoff;\n labelFns.xFn = function(d) {\n var rad = t2g(d);\n return Math.cos(rad) * labelStandoff;\n };\n labelFns.yFn = function(d) {\n var rad = t2g(d);\n var ff = Math.sin(rad) > 0 ? 0.2 : 1;\n return -Math.sin(rad) * (labelStandoff + d.fontSize * ff) +\n Math.abs(Math.cos(rad)) * (d.fontSize * MID_SHIFT);\n };\n labelFns.anchorFn = function(d) {\n var rad = t2g(d);\n var cos = Math.cos(rad);\n return Math.abs(cos) < 0.1 ?\n 'middle' :\n (cos > 0 ? 'start' : 'end');\n };\n labelFns.heightFn = function(d, a, h) {\n var rad = t2g(d);\n return -0.5 * (1 + Math.sin(rad)) * h;\n };\n var _transFn = function(rad) {\n return strTranslate(\n gaugePosition[0] + radius * Math.cos(rad),\n gaugePosition[1] - radius * Math.sin(rad)\n );\n };\n transFn = function(d) {\n return _transFn(t2g(d));\n };\n var transFn2 = function(d) {\n var rad = t2g(d);\n return _transFn(rad) + 'rotate(' + -rad2deg(rad) + ')';\n };\n vals = Axes.calcTicks(ax);\n tickSign = Axes.getTickSigns(ax)[2];\n if(ax.visible) {\n tickSign = ax.ticks === 'inside' ? -1 : 1;\n var pad = (ax.linewidth || 1) / 2;\n Axes.drawTicks(gd, ax, {\n vals: vals,\n layer: axisLayer,\n path: 'M' + (tickSign * pad) + ',0h' + (tickSign * ax.ticklen),\n transFn: transFn2\n });\n Axes.drawLabels(gd, ax, {\n vals: vals,\n layer: axisLayer,\n transFn: transFn,\n labelFns: labelFns\n });\n }\n\n // Draw background + steps\n var arcs = [gaugeBg].concat(trace.gauge.steps);\n var bgArc = gauge.selectAll('g.bg-arc').data(arcs);\n bgArc.enter().append('g').classed('bg-arc', true).append('path');\n bgArc.select('path').call(drawArc).call(styleShape);\n bgArc.exit().remove();\n\n // Draw foreground with transition\n var valueArcPathGenerator = arcPathGenerator(trace.gauge.bar.thickness);\n var valueArc = gauge.selectAll('g.value-arc').data([trace.gauge.bar]);\n valueArc.enter().append('g').classed('value-arc', true).append('path');\n var valueArcPath = valueArc.select('path');\n if(hasTransition(transitionOpts)) {\n valueArcPath\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); })\n .attrTween('d', arcTween(valueArcPathGenerator, valueToAngle(cd[0].lastY), valueToAngle(cd[0].y)));\n trace._lastValue = cd[0].y;\n } else {\n valueArcPath.attr('d', typeof cd[0].y === 'number' ?\n valueArcPathGenerator.endAngle(valueToAngle(cd[0].y)) :\n 'M0,0Z');\n }\n valueArcPath.call(styleShape);\n valueArc.exit().remove();\n\n // Draw threshold\n arcs = [];\n var v = trace.gauge.threshold.value;\n if(v || v === 0) {\n arcs.push({\n range: [v, v],\n color: trace.gauge.threshold.color,\n line: {\n color: trace.gauge.threshold.line.color,\n width: trace.gauge.threshold.line.width\n },\n thickness: trace.gauge.threshold.thickness\n });\n }\n var thresholdArc = gauge.selectAll('g.threshold-arc').data(arcs);\n thresholdArc.enter().append('g').classed('threshold-arc', true).append('path');\n thresholdArc.select('path').call(drawArc).call(styleShape);\n thresholdArc.exit().remove();\n\n // Draw border last\n var gaugeBorder = gauge.selectAll('g.gauge-outline').data([gaugeOutline]);\n gaugeBorder.enter().append('g').classed('gauge-outline', true).append('path');\n gaugeBorder.select('path').call(drawArc).call(styleShape);\n gaugeBorder.exit().remove();\n}\n\nfunction drawNumbers(gd, plotGroup, cd, opts) {\n var trace = cd[0].trace;\n\n var numbersX = opts.numbersX;\n var numbersY = opts.numbersY;\n var numbersAlign = trace.align || 'center';\n var numbersAnchor = anchor[numbersAlign];\n\n var transitionOpts = opts.transitionOpts;\n var onComplete = opts.onComplete;\n\n var numbers = Lib.ensureSingle(plotGroup, 'g', 'numbers');\n var bignumberbBox, deltabBox;\n var numbersbBox;\n\n var data = [];\n if(trace._hasNumber) data.push('number');\n if(trace._hasDelta) {\n data.push('delta');\n if(trace.delta.position === 'left') data.reverse();\n }\n var sel = numbers.selectAll('text').data(data);\n sel.enter().append('text');\n sel\n .attr('text-anchor', function() {return numbersAnchor;})\n .attr('class', function(d) { return d;})\n .attr('x', null)\n .attr('y', null)\n .attr('dx', null)\n .attr('dy', null);\n sel.exit().remove();\n\n // Function to override the number formatting used during transitions\n function transitionFormat(valueformat, fmt, from, to) {\n // For now, do not display SI prefix if start and end value do not have any\n if(valueformat.match('s') && // If using SI prefix\n (from >= 0 !== to >= 0) && // If sign change\n (!fmt(from).slice(-1).match(SI_PREFIX) && !fmt(to).slice(-1).match(SI_PREFIX)) // Has no SI prefix\n ) {\n var transitionValueFormat = valueformat.slice().replace('s', 'f').replace(/\\d+/, function(m) { return parseInt(m) - 1;});\n var transitionAx = mockAxis(gd, {tickformat: transitionValueFormat});\n return function(v) {\n // Switch to fixed precision if number is smaller than one\n if(Math.abs(v) < 1) return Axes.tickText(transitionAx, v).text;\n return fmt(v);\n };\n } else {\n return fmt;\n }\n }\n\n function drawBignumber() {\n var bignumberAx = mockAxis(gd, {tickformat: trace.number.valueformat}, trace._range);\n bignumberAx.setScale();\n Axes.prepTicks(bignumberAx);\n\n var bignumberFmt = function(v) { return Axes.tickText(bignumberAx, v).text;};\n var bignumberSuffix = trace.number.suffix;\n var bignumberPrefix = trace.number.prefix;\n\n var number = numbers.select('text.number');\n\n function writeNumber() {\n var txt = typeof cd[0].y === 'number' ?\n bignumberPrefix + bignumberFmt(cd[0].y) + bignumberSuffix :\n '-';\n number.text(txt)\n .call(Drawing.font, trace.number.font)\n .call(svgTextUtils.convertToTspans, gd);\n }\n\n if(hasTransition(transitionOpts)) {\n number\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { writeNumber(); onComplete && onComplete(); })\n .each('interrupt', function() { writeNumber(); onComplete && onComplete(); })\n .attrTween('text', function() {\n var that = d3.select(this);\n var interpolator = interpolateNumber(cd[0].lastY, cd[0].y);\n trace._lastValue = cd[0].y;\n\n var transitionFmt = transitionFormat(trace.number.valueformat, bignumberFmt, cd[0].lastY, cd[0].y);\n return function(t) {\n that.text(bignumberPrefix + transitionFmt(interpolator(t)) + bignumberSuffix);\n };\n });\n } else {\n writeNumber();\n }\n\n bignumberbBox = measureText(bignumberPrefix + bignumberFmt(cd[0].y) + bignumberSuffix, trace.number.font, numbersAnchor, gd);\n return number;\n }\n\n function drawDelta() {\n var deltaAx = mockAxis(gd, {tickformat: trace.delta.valueformat}, trace._range);\n deltaAx.setScale();\n Axes.prepTicks(deltaAx);\n\n var deltaFmt = function(v) { return Axes.tickText(deltaAx, v).text;};\n var deltaSuffix = trace.delta.suffix;\n var deltaPrefix = trace.delta.prefix;\n\n var deltaValue = function(d) {\n var value = trace.delta.relative ? d.relativeDelta : d.delta;\n return value;\n };\n var deltaFormatText = function(value, numberFmt) {\n if(value === 0 || typeof value !== 'number' || isNaN(value)) return '-';\n return (value > 0 ? trace.delta.increasing.symbol : trace.delta.decreasing.symbol) + deltaPrefix + numberFmt(value) + deltaSuffix;\n };\n var deltaFill = function(d) {\n return d.delta >= 0 ? trace.delta.increasing.color : trace.delta.decreasing.color;\n };\n if(trace._deltaLastValue === undefined) {\n trace._deltaLastValue = deltaValue(cd[0]);\n }\n var delta = numbers.select('text.delta');\n delta\n .call(Drawing.font, trace.delta.font)\n .call(Color.fill, deltaFill({delta: trace._deltaLastValue}));\n\n function writeDelta() {\n delta.text(deltaFormatText(deltaValue(cd[0]), deltaFmt))\n .call(Color.fill, deltaFill(cd[0]))\n .call(svgTextUtils.convertToTspans, gd);\n }\n\n if(hasTransition(transitionOpts)) {\n delta\n .transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .tween('text', function() {\n var that = d3.select(this);\n var to = deltaValue(cd[0]);\n var from = trace._deltaLastValue;\n var transitionFmt = transitionFormat(trace.delta.valueformat, deltaFmt, from, to);\n var interpolator = interpolateNumber(from, to);\n trace._deltaLastValue = to;\n return function(t) {\n that.text(deltaFormatText(interpolator(t), transitionFmt));\n that.call(Color.fill, deltaFill({delta: interpolator(t)}));\n };\n })\n .each('end', function() { writeDelta(); onComplete && onComplete(); })\n .each('interrupt', function() { writeDelta(); onComplete && onComplete(); });\n } else {\n writeDelta();\n }\n\n deltabBox = measureText(deltaFormatText(deltaValue(cd[0]), deltaFmt), trace.delta.font, numbersAnchor, gd);\n return delta;\n }\n\n var key = trace.mode + trace.align;\n var delta;\n if(trace._hasDelta) {\n delta = drawDelta();\n key += trace.delta.position + trace.delta.font.size + trace.delta.font.family + trace.delta.valueformat;\n key += trace.delta.increasing.symbol + trace.delta.decreasing.symbol;\n numbersbBox = deltabBox;\n }\n if(trace._hasNumber) {\n drawBignumber();\n key += trace.number.font.size + trace.number.font.family + trace.number.valueformat + trace.number.suffix + trace.number.prefix;\n numbersbBox = bignumberbBox;\n }\n\n // Position delta relative to bignumber\n if(trace._hasDelta && trace._hasNumber) {\n var bignumberCenter = [\n (bignumberbBox.left + bignumberbBox.right) / 2,\n (bignumberbBox.top + bignumberbBox.bottom) / 2\n ];\n var deltaCenter = [\n (deltabBox.left + deltabBox.right) / 2,\n (deltabBox.top + deltabBox.bottom) / 2\n ];\n\n var dx, dy;\n var padding = 0.75 * trace.delta.font.size;\n if(trace.delta.position === 'left') {\n dx = cache(trace, 'deltaPos', 0, -1 * (bignumberbBox.width * (position[trace.align]) + deltabBox.width * (1 - position[trace.align]) + padding), key, Math.min);\n dy = bignumberCenter[1] - deltaCenter[1];\n\n numbersbBox = {\n width: bignumberbBox.width + deltabBox.width + padding,\n height: Math.max(bignumberbBox.height, deltabBox.height),\n left: deltabBox.left + dx,\n right: bignumberbBox.right,\n top: Math.min(bignumberbBox.top, deltabBox.top + dy),\n bottom: Math.max(bignumberbBox.bottom, deltabBox.bottom + dy)\n };\n }\n if(trace.delta.position === 'right') {\n dx = cache(trace, 'deltaPos', 0, bignumberbBox.width * (1 - position[trace.align]) + deltabBox.width * position[trace.align] + padding, key, Math.max);\n dy = bignumberCenter[1] - deltaCenter[1];\n\n numbersbBox = {\n width: bignumberbBox.width + deltabBox.width + padding,\n height: Math.max(bignumberbBox.height, deltabBox.height),\n left: bignumberbBox.left,\n right: deltabBox.right + dx,\n top: Math.min(bignumberbBox.top, deltabBox.top + dy),\n bottom: Math.max(bignumberbBox.bottom, deltabBox.bottom + dy)\n };\n }\n if(trace.delta.position === 'bottom') {\n dx = null;\n dy = deltabBox.height;\n\n numbersbBox = {\n width: Math.max(bignumberbBox.width, deltabBox.width),\n height: bignumberbBox.height + deltabBox.height,\n left: Math.min(bignumberbBox.left, deltabBox.left),\n right: Math.max(bignumberbBox.right, deltabBox.right),\n top: bignumberbBox.bottom - bignumberbBox.height,\n bottom: bignumberbBox.bottom + deltabBox.height\n };\n }\n if(trace.delta.position === 'top') {\n dx = null;\n dy = bignumberbBox.top;\n\n numbersbBox = {\n width: Math.max(bignumberbBox.width, deltabBox.width),\n height: bignumberbBox.height + deltabBox.height,\n left: Math.min(bignumberbBox.left, deltabBox.left),\n right: Math.max(bignumberbBox.right, deltabBox.right),\n top: bignumberbBox.bottom - bignumberbBox.height - deltabBox.height,\n bottom: bignumberbBox.bottom\n };\n }\n\n delta.attr({dx: dx, dy: dy});\n }\n\n // Resize numbers to fit within space and position\n if(trace._hasNumber || trace._hasDelta) {\n numbers.attr('transform', function() {\n var m = opts.numbersScaler(numbersbBox);\n key += m[2];\n var scaleRatio = cache(trace, 'numbersScale', 1, m[0], key, Math.min);\n var translateY;\n if(!trace._scaleNumbers) scaleRatio = 1;\n if(trace._isAngular) {\n // align vertically to bottom\n translateY = numbersY - scaleRatio * numbersbBox.bottom;\n } else {\n // align vertically to center\n translateY = numbersY - scaleRatio * (numbersbBox.top + numbersbBox.bottom) / 2;\n }\n\n // Stash the top position of numbersbBox for title positioning\n trace._numbersTop = scaleRatio * (numbersbBox.top) + translateY;\n\n var ref = numbersbBox[numbersAlign];\n if(numbersAlign === 'center') ref = (numbersbBox.left + numbersbBox.right) / 2;\n var translateX = numbersX - scaleRatio * ref;\n\n // Stash translateX\n translateX = cache(trace, 'numbersTranslate', 0, translateX, key, Math.max);\n return strTranslate(translateX, translateY) + strScale(scaleRatio);\n });\n }\n}\n\n// Apply fill, stroke, stroke-width to SVG shape\nfunction styleShape(p) {\n p\n .each(function(d) { Color.stroke(d3.select(this), d.line.color);})\n .each(function(d) { Color.fill(d3.select(this), d.color);})\n .style('stroke-width', function(d) { return d.line.width;});\n}\n\n// Returns a tween for a transition’s \"d\" attribute, transitioning any selected\n// arcs from their current angle to the specified new angle.\nfunction arcTween(arc, endAngle, newAngle) {\n return function() {\n var interp = interpolate(endAngle, newAngle);\n return function(t) {\n return arc.endAngle(interp(t))();\n };\n };\n}\n\n// mocks our axis\nfunction mockAxis(gd, opts, zrange) {\n var fullLayout = gd._fullLayout;\n\n var axisIn = Lib.extendFlat({\n type: 'linear',\n ticks: 'outside',\n range: zrange,\n showline: true\n }, opts);\n\n var axisOut = {\n type: 'linear',\n _id: 'x' + opts._id\n };\n\n var axisOptions = {\n letter: 'x',\n font: fullLayout.font,\n noHover: true,\n noTickson: true\n };\n\n function coerce(attr, dflt) {\n return Lib.coerce(axisIn, axisOut, axisLayoutAttrs, attr, dflt);\n }\n\n handleAxisDefaults(axisIn, axisOut, coerce, axisOptions, fullLayout);\n handleAxisPositionDefaults(axisIn, axisOut, coerce, axisOptions);\n\n return axisOut;\n}\n\nfunction fitTextInsideBox(textBB, width, height) {\n // compute scaling ratio to have text fit within specified width and height\n var ratio = Math.min(width / textBB.width, height / textBB.height);\n return [ratio, textBB, width + 'x' + height];\n}\n\nfunction fitTextInsideCircle(textBB, radius) {\n // compute scaling ratio to have text fit within specified radius\n var elRadius = Math.sqrt((textBB.width / 2) * (textBB.width / 2) + textBB.height * textBB.height);\n var ratio = radius / elRadius;\n return [ratio, textBB, radius];\n}\n\nfunction measureText(txt, font, textAnchor, gd) {\n var element = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n var sel = d3.select(element);\n sel.text(txt)\n .attr('x', 0)\n .attr('y', 0)\n .attr('text-anchor', textAnchor)\n .attr('data-unformatted', txt)\n .call(svgTextUtils.convertToTspans, gd)\n .call(Drawing.font, font);\n return Drawing.bBox(sel.node());\n}\n\nfunction cache(trace, name, initialValue, value, key, fn) {\n var objName = '_cache' + name;\n if(!(trace[objName] && trace[objName].key === key)) {\n trace[objName] = {key: key, value: initialValue};\n }\n var v = Lib.aggNums(fn, null, [trace[objName].value, value], 2);\n trace[objName].value = v;\n\n return v;\n}\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/axis_defaults\":568,\"../../plots/cartesian/layout_attributes\":579,\"../../plots/cartesian/position_defaults\":582,\"./constants\":867,\"@plotly/d3\":58,\"d3-interpolate\":116}],871:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar meshAttrs = _dereq_('../mesh3d/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nfunction makeSliceAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n locations: {\n valType: 'data_array',\n dflt: [],\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n }\n };\n}\n\nfunction makeCapAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: true,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n }\n };\n}\n\nvar attrs = module.exports = overrideAll(extendFlat({\n x: {\n valType: 'data_array',\n },\n y: {\n valType: 'data_array',\n },\n z: {\n valType: 'data_array',\n },\n value: {\n valType: 'data_array',\n },\n isomin: {\n valType: 'number',\n },\n isomax: {\n valType: 'number',\n },\n\n surface: {\n show: {\n valType: 'boolean',\n dflt: true,\n },\n count: {\n valType: 'integer',\n dflt: 2,\n min: 1,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n pattern: {\n valType: 'flaglist',\n flags: ['A', 'B', 'C', 'D', 'E'],\n extras: ['all', 'odd', 'even'],\n dflt: 'all',\n }\n },\n\n spaceframe: {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.15,\n }\n },\n\n slices: {\n x: makeSliceAttr('x'),\n y: makeSliceAttr('y'),\n z: makeSliceAttr('z')\n },\n\n caps: {\n x: makeCapAttr('x'),\n y: makeCapAttr('y'),\n z: makeCapAttr('z')\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertemplate: hovertemplateAttrs(),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n valuehoverformat: axisHoverFormat('value', 1),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n},\n\ncolorScaleAttrs('', {\n colorAttr: '`value`',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}), {\n opacity: meshAttrs.opacity,\n lightposition: meshAttrs.lightposition,\n lighting: meshAttrs.lighting,\n flatshading: meshAttrs.flatshading,\n contour: meshAttrs.contour,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo)\n}), 'calc', 'nested');\n\n// required defaults to speed up surface normal calculations\nattrs.flatshading.dflt = true; attrs.lighting.facenormalsepsilon.dflt = 0;\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes';\nattrs.transforms = undefined;\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../mesh3d/attributes\":876}],872:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar processGrid = _dereq_('../streamtube/calc').processGrid;\nvar filter = _dereq_('../streamtube/calc').filter;\n\nmodule.exports = function calc(gd, trace) {\n trace._len = Math.min(\n trace.x.length,\n trace.y.length,\n trace.z.length,\n trace.value.length\n );\n\n trace._x = filter(trace.x, trace._len);\n trace._y = filter(trace.y, trace._len);\n trace._z = filter(trace.z, trace._len);\n trace._value = filter(trace.value, trace._len);\n\n var grid = processGrid(trace);\n trace._gridFill = grid.fill;\n trace._Xs = grid.Xs;\n trace._Ys = grid.Ys;\n trace._Zs = grid.Zs;\n trace._len = grid.len;\n\n var min = Infinity;\n var max = -Infinity;\n for(var i = 0; i < trace._len; i++) {\n var v = trace._value[i];\n min = Math.min(min, v);\n max = Math.max(max, v);\n }\n\n trace._minValues = min;\n trace._maxValues = max;\n trace._vMin = (trace.isomin === undefined || trace.isomin === null) ? min : trace.isomin;\n trace._vMax = (trace.isomax === undefined || trace.isomin === null) ? max : trace.isomax;\n\n colorscaleCalc(gd, trace, {\n vals: [trace._vMin, trace._vMax],\n containerStr: '',\n cLetter: 'c'\n });\n};\n\n},{\"../../components/colorscale/calc\":375,\"../streamtube/calc\":1054}],873:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nvar findNearestOnAxis = function(w, arr) {\n for(var q = arr.length - 1; q > 0; q--) {\n var min = Math.min(arr[q], arr[q - 1]);\n var max = Math.max(arr[q], arr[q - 1]);\n if(max > min && min < w && w <= max) {\n return {\n id: q,\n distRatio: (max - w) / (max - min)\n };\n }\n }\n return {\n id: 0,\n distRatio: 0\n };\n};\n\nfunction IsosurfaceTrace(scene, mesh, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = mesh;\n this.name = '';\n this.data = null;\n this.showContour = false;\n}\n\nvar proto = IsosurfaceTrace.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var rawId = selection.data.index;\n\n var x = this.data._meshX[rawId];\n var y = this.data._meshY[rawId];\n var z = this.data._meshZ[rawId];\n\n var height = this.data._Ys.length;\n var depth = this.data._Zs.length;\n\n var i = findNearestOnAxis(x, this.data._Xs).id;\n var j = findNearestOnAxis(y, this.data._Ys).id;\n var k = findNearestOnAxis(z, this.data._Zs).id;\n\n var selectIndex = selection.index = k + depth * j + depth * height * i;\n\n selection.traceCoordinate = [\n this.data._meshX[selectIndex],\n this.data._meshY[selectIndex],\n this.data._meshZ[selectIndex],\n this.data._value[selectIndex]\n ];\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nproto.update = function(data) {\n var scene = this.scene;\n var layout = scene.fullSceneLayout;\n\n this.data = generateIsoMeshes(data);\n\n // Unpack position data\n function toDataCoords(axis, coord, scale, calendar) {\n return coord.map(function(x) {\n return axis.d2l(x, 0, calendar) * scale;\n });\n }\n\n var positions = zip3(\n toDataCoords(layout.xaxis, data._meshX, scene.dataScale[0], data.xcalendar),\n toDataCoords(layout.yaxis, data._meshY, scene.dataScale[1], data.ycalendar),\n toDataCoords(layout.zaxis, data._meshZ, scene.dataScale[2], data.zcalendar));\n\n var cells = zip3(data._meshI, data._meshJ, data._meshK);\n\n var config = {\n positions: positions,\n cells: cells,\n lightPosition: [data.lightposition.x, data.lightposition.y, data.lightposition.z],\n ambient: data.lighting.ambient,\n diffuse: data.lighting.diffuse,\n specular: data.lighting.specular,\n roughness: data.lighting.roughness,\n fresnel: data.lighting.fresnel,\n vertexNormalsEpsilon: data.lighting.vertexnormalsepsilon,\n faceNormalsEpsilon: data.lighting.facenormalsepsilon,\n opacity: data.opacity,\n contourEnable: data.contour.show,\n contourColor: str2RgbaArray(data.contour.color).slice(0, 3),\n contourWidth: data.contour.width,\n useFacetNormals: data.flatshading\n };\n\n var cOpts = extractOpts(data);\n config.vertexIntensity = data._meshIntensity;\n config.vertexIntensityBounds = [cOpts.min, cOpts.max];\n config.colormap = parseColorScale(data);\n\n // Update mesh\n this.mesh.update(config);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nvar GRID_TYPES = ['xyz', 'xzy', 'yxz', 'yzx', 'zxy', 'zyx'];\n\nfunction generateIsoMeshes(data) {\n data._meshI = [];\n data._meshJ = [];\n data._meshK = [];\n\n var showSurface = data.surface.show;\n var showSpaceframe = data.spaceframe.show;\n\n var surfaceFill = data.surface.fill;\n var spaceframeFill = data.spaceframe.fill;\n\n var drawingSurface = false;\n var drawingSpaceframe = false;\n\n var numFaces = 0;\n var numVertices;\n var beginVertextLength;\n\n var Xs = data._Xs;\n var Ys = data._Ys;\n var Zs = data._Zs;\n\n var width = Xs.length;\n var height = Ys.length;\n var depth = Zs.length;\n\n var filled = GRID_TYPES.indexOf(data._gridFill.replace(/-/g, '').replace(/\\+/g, ''));\n\n var getIndex = function(i, j, k) {\n switch(filled) {\n case 5: // 'zyx'\n return k + depth * j + depth * height * i;\n case 4: // 'zxy'\n return k + depth * i + depth * width * j;\n case 3: // 'yzx'\n return j + height * k + height * depth * i;\n case 2: // 'yxz'\n return j + height * i + height * width * k;\n case 1: // 'xzy'\n return i + width * k + width * depth * j;\n default: // case 0: // 'xyz'\n return i + width * j + width * height * k;\n }\n };\n\n var minValues = data._minValues;\n var maxValues = data._maxValues;\n\n var vMin = data._vMin;\n var vMax = data._vMax;\n\n var allXs;\n var allYs;\n var allZs;\n var allVs;\n\n function findVertexId(x, y, z) {\n // could be used to find the vertex id of previously generated vertex within the group\n\n var len = allVs.length;\n for(var f = beginVertextLength; f < len; f++) {\n if(\n x === allXs[f] &&\n y === allYs[f] &&\n z === allZs[f]\n ) {\n return f;\n }\n }\n return -1;\n }\n\n function beginGroup() {\n beginVertextLength = numVertices;\n }\n\n function emptyVertices() {\n allXs = [];\n allYs = [];\n allZs = [];\n allVs = [];\n numVertices = 0;\n\n beginGroup();\n }\n\n function addVertex(x, y, z, v) {\n allXs.push(x);\n allYs.push(y);\n allZs.push(z);\n allVs.push(v);\n numVertices++;\n\n return numVertices - 1;\n }\n\n function addFace(a, b, c) {\n data._meshI.push(a);\n data._meshJ.push(b);\n data._meshK.push(c);\n numFaces++;\n\n return numFaces - 1;\n }\n\n function getCenter(A, B, C) {\n var M = [];\n for(var i = 0; i < A.length; i++) {\n M[i] = (A[i] + B[i] + C[i]) / 3.0;\n }\n return M;\n }\n\n function getBetween(A, B, r) {\n var M = [];\n for(var i = 0; i < A.length; i++) {\n M[i] = A[i] * (1 - r) + r * B[i];\n }\n return M;\n }\n\n var activeFill;\n function setFill(fill) {\n activeFill = fill;\n }\n\n function createOpenTri(xyzv, abc) {\n var A = xyzv[0];\n var B = xyzv[1];\n var C = xyzv[2];\n var G = getCenter(A, B, C);\n\n var r = Math.sqrt(1 - activeFill);\n var p1 = getBetween(G, A, r);\n var p2 = getBetween(G, B, r);\n var p3 = getBetween(G, C, r);\n\n var a = abc[0];\n var b = abc[1];\n var c = abc[2];\n\n return {\n xyzv: [\n [A, B, p2], [p2, p1, A],\n [B, C, p3], [p3, p2, B],\n [C, A, p1], [p1, p3, C]\n ],\n abc: [\n [a, b, -1], [-1, -1, a],\n [b, c, -1], [-1, -1, b],\n [c, a, -1], [-1, -1, c]\n ]\n };\n }\n\n function styleIncludes(style, char) {\n if(style === 'all' || style === null) return true;\n return (style.indexOf(char) > -1);\n }\n\n function mapValue(style, value) {\n if(style === null) return value;\n return style;\n }\n\n function drawTri(style, xyzv, abc) {\n beginGroup();\n\n var allXYZVs = [xyzv];\n var allABCs = [abc];\n if(activeFill >= 1) {\n allXYZVs = [xyzv];\n allABCs = [abc];\n } else if(activeFill > 0) {\n var openTri = createOpenTri(xyzv, abc);\n allXYZVs = openTri.xyzv;\n allABCs = openTri.abc;\n }\n\n for(var f = 0; f < allXYZVs.length; f++) {\n xyzv = allXYZVs[f];\n abc = allABCs[f];\n\n var pnts = [];\n for(var i = 0; i < 3; i++) {\n var x = xyzv[i][0];\n var y = xyzv[i][1];\n var z = xyzv[i][2];\n var v = xyzv[i][3];\n\n var id = (abc[i] > -1) ? abc[i] : findVertexId(x, y, z);\n if(id > -1) {\n pnts[i] = id;\n } else {\n pnts[i] = addVertex(x, y, z, mapValue(style, v));\n }\n }\n\n addFace(pnts[0], pnts[1], pnts[2]);\n }\n }\n\n function drawQuad(style, xyzv, abcd) {\n var makeTri = function(i, j, k) {\n drawTri(style, [xyzv[i], xyzv[j], xyzv[k]], [abcd[i], abcd[j], abcd[k]]);\n };\n\n makeTri(0, 1, 2);\n makeTri(2, 3, 0);\n }\n\n function drawTetra(style, xyzv, abcd) {\n var makeTri = function(i, j, k) {\n drawTri(style, [xyzv[i], xyzv[j], xyzv[k]], [abcd[i], abcd[j], abcd[k]]);\n };\n\n makeTri(0, 1, 2);\n makeTri(3, 0, 1);\n makeTri(2, 3, 0);\n makeTri(1, 2, 3);\n }\n\n function calcIntersection(pointOut, pointIn, min, max) {\n var value = pointOut[3];\n\n if(value < min) value = min;\n if(value > max) value = max;\n\n var ratio = (pointOut[3] - value) / (pointOut[3] - pointIn[3] + 0.000000001); // we had to add this error to force solve the tiny caps\n\n var result = [];\n for(var s = 0; s < 4; s++) {\n result[s] = (1 - ratio) * pointOut[s] + ratio * pointIn[s];\n }\n return result;\n }\n\n function inRange(value, min, max) {\n return (\n value >= min &&\n value <= max\n );\n }\n\n function almostInFinalRange(value) {\n var vErr = 0.001 * (vMax - vMin);\n return (\n value >= vMin - vErr &&\n value <= vMax + vErr\n );\n }\n\n function getXYZV(indecies) {\n var xyzv = [];\n for(var q = 0; q < 4; q++) {\n var index = indecies[q];\n xyzv.push(\n [\n data._x[index],\n data._y[index],\n data._z[index],\n data._value[index]\n ]\n );\n }\n\n return xyzv;\n }\n\n var MAX_PASS = 3;\n\n function tryCreateTri(style, xyzv, abc, min, max, nPass) {\n if(!nPass) nPass = 1;\n\n abc = [-1, -1, -1]; // Note: for the moment we override indices\n // to run faster! But it is possible to comment this line\n // to reduce the number of vertices.\n\n var result = false;\n\n var ok = [\n inRange(xyzv[0][3], min, max),\n inRange(xyzv[1][3], min, max),\n inRange(xyzv[2][3], min, max)\n ];\n\n if(!ok[0] && !ok[1] && !ok[2]) {\n return false;\n }\n\n var tryDrawTri = function(style, xyzv, abc) {\n if( // we check here if the points are in `real` iso-min/max range\n almostInFinalRange(xyzv[0][3]) &&\n almostInFinalRange(xyzv[1][3]) &&\n almostInFinalRange(xyzv[2][3])\n ) {\n drawTri(style, xyzv, abc);\n return true;\n } else if(nPass < MAX_PASS) {\n return tryCreateTri(style, xyzv, abc, vMin, vMax, ++nPass); // i.e. second pass using actual vMin vMax bounds\n }\n return false;\n };\n\n if(ok[0] && ok[1] && ok[2]) {\n return tryDrawTri(style, xyzv, abc) || result;\n }\n\n var interpolated = false;\n\n [\n [0, 1, 2],\n [2, 0, 1],\n [1, 2, 0]\n ].forEach(function(e) {\n if(ok[e[0]] && ok[e[1]] && !ok[e[2]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n\n var p1 = calcIntersection(C, A, min, max);\n var p2 = calcIntersection(C, B, min, max);\n\n result = tryDrawTri(style, [p2, p1, A], [-1, -1, abc[e[0]]]) || result;\n result = tryDrawTri(style, [A, B, p2], [abc[e[0]], abc[e[1]], -1]) || result;\n\n interpolated = true;\n }\n });\n if(interpolated) return result;\n\n [\n [0, 1, 2],\n [1, 2, 0],\n [2, 0, 1]\n ].forEach(function(e) {\n if(ok[e[0]] && !ok[e[1]] && !ok[e[2]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n\n var p1 = calcIntersection(B, A, min, max);\n var p2 = calcIntersection(C, A, min, max);\n\n result = tryDrawTri(style, [p2, p1, A], [-1, -1, abc[e[0]]]) || result;\n\n interpolated = true;\n }\n });\n return result;\n }\n\n function tryCreateTetra(style, abcd, min, max) {\n var result = false;\n\n var xyzv = getXYZV(abcd);\n\n var ok = [\n inRange(xyzv[0][3], min, max),\n inRange(xyzv[1][3], min, max),\n inRange(xyzv[2][3], min, max),\n inRange(xyzv[3][3], min, max)\n ];\n\n if(!ok[0] && !ok[1] && !ok[2] && !ok[3]) {\n return result;\n }\n\n if(ok[0] && ok[1] && ok[2] && ok[3]) {\n if(drawingSpaceframe) {\n result = drawTetra(style, xyzv, abcd) || result;\n }\n return result;\n }\n\n var interpolated = false;\n\n [\n [0, 1, 2, 3],\n [3, 0, 1, 2],\n [2, 3, 0, 1],\n [1, 2, 3, 0]\n ].forEach(function(e) {\n if(ok[e[0]] && ok[e[1]] && ok[e[2]] && !ok[e[3]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n var D = xyzv[e[3]];\n\n if(drawingSpaceframe) {\n result = drawTri(style, [A, B, C], [abcd[e[0]], abcd[e[1]], abcd[e[2]]]) || result;\n } else {\n var p1 = calcIntersection(D, A, min, max);\n var p2 = calcIntersection(D, B, min, max);\n var p3 = calcIntersection(D, C, min, max);\n\n result = drawTri(null, [p1, p2, p3], [-1, -1, -1]) || result;\n }\n\n interpolated = true;\n }\n });\n if(interpolated) return result;\n\n [\n [0, 1, 2, 3],\n [1, 2, 3, 0],\n [2, 3, 0, 1],\n [3, 0, 1, 2],\n [0, 2, 3, 1],\n [1, 3, 2, 0]\n ].forEach(function(e) {\n if(ok[e[0]] && ok[e[1]] && !ok[e[2]] && !ok[e[3]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n var D = xyzv[e[3]];\n\n var p1 = calcIntersection(C, A, min, max);\n var p2 = calcIntersection(C, B, min, max);\n var p3 = calcIntersection(D, B, min, max);\n var p4 = calcIntersection(D, A, min, max);\n\n if(drawingSpaceframe) {\n result = drawTri(style, [A, p4, p1], [abcd[e[0]], -1, -1]) || result;\n result = drawTri(style, [B, p2, p3], [abcd[e[1]], -1, -1]) || result;\n } else {\n result = drawQuad(null, [p1, p2, p3, p4], [-1, -1, -1, -1]) || result;\n }\n\n interpolated = true;\n }\n });\n if(interpolated) return result;\n\n [\n [0, 1, 2, 3],\n [1, 2, 3, 0],\n [2, 3, 0, 1],\n [3, 0, 1, 2]\n ].forEach(function(e) {\n if(ok[e[0]] && !ok[e[1]] && !ok[e[2]] && !ok[e[3]]) {\n var A = xyzv[e[0]];\n var B = xyzv[e[1]];\n var C = xyzv[e[2]];\n var D = xyzv[e[3]];\n\n var p1 = calcIntersection(B, A, min, max);\n var p2 = calcIntersection(C, A, min, max);\n var p3 = calcIntersection(D, A, min, max);\n\n if(drawingSpaceframe) {\n result = drawTri(style, [A, p1, p2], [abcd[e[0]], -1, -1]) || result;\n result = drawTri(style, [A, p2, p3], [abcd[e[0]], -1, -1]) || result;\n result = drawTri(style, [A, p3, p1], [abcd[e[0]], -1, -1]) || result;\n } else {\n result = drawTri(null, [p1, p2, p3], [-1, -1, -1]) || result;\n }\n\n interpolated = true;\n }\n });\n return result;\n }\n\n function addCube(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max) {\n var result = false;\n\n if(drawingSurface) {\n if(styleIncludes(style, 'A')) {\n result = tryCreateTetra(null, [p000, p001, p010, p100], min, max) || result;\n }\n if(styleIncludes(style, 'B')) {\n result = tryCreateTetra(null, [p001, p010, p011, p111], min, max) || result;\n }\n if(styleIncludes(style, 'C')) {\n result = tryCreateTetra(null, [p001, p100, p101, p111], min, max) || result;\n }\n if(styleIncludes(style, 'D')) {\n result = tryCreateTetra(null, [p010, p100, p110, p111], min, max) || result;\n }\n if(styleIncludes(style, 'E')) {\n result = tryCreateTetra(null, [p001, p010, p100, p111], min, max) || result;\n }\n }\n\n if(drawingSpaceframe) {\n result = tryCreateTetra(style, [p001, p010, p100, p111], min, max) || result;\n }\n\n return result;\n }\n\n function addRect(style, a, b, c, d, min, max, previousResult) {\n return [\n (previousResult[0] === true) ? true :\n tryCreateTri(style, getXYZV([a, b, c]), [a, b, c], min, max),\n (previousResult[1] === true) ? true :\n tryCreateTri(style, getXYZV([c, d, a]), [c, d, a], min, max)\n ];\n }\n\n function begin2dCell(style, p00, p01, p10, p11, min, max, isEven, previousResult) {\n // used to create caps and/or slices on exact axis points\n if(isEven) {\n return addRect(style, p00, p01, p11, p10, min, max, previousResult);\n } else {\n return addRect(style, p01, p11, p10, p00, min, max, previousResult);\n }\n }\n\n function beginSection(style, i, j, k, min, max, distRatios) {\n // used to create slices between axis points\n\n var result = false;\n var A, B, C, D;\n\n var makeSection = function() {\n result = tryCreateTri(style, [A, B, C], [-1, -1, -1], min, max) || result;\n result = tryCreateTri(style, [C, D, A], [-1, -1, -1], min, max) || result;\n };\n\n var rX = distRatios[0];\n var rY = distRatios[1];\n var rZ = distRatios[2];\n\n if(rX) {\n A = getBetween(getXYZV([getIndex(i, j - 0, k - 0)])[0], getXYZV([getIndex(i - 1, j - 0, k - 0)])[0], rX);\n B = getBetween(getXYZV([getIndex(i, j - 0, k - 1)])[0], getXYZV([getIndex(i - 1, j - 0, k - 1)])[0], rX);\n C = getBetween(getXYZV([getIndex(i, j - 1, k - 1)])[0], getXYZV([getIndex(i - 1, j - 1, k - 1)])[0], rX);\n D = getBetween(getXYZV([getIndex(i, j - 1, k - 0)])[0], getXYZV([getIndex(i - 1, j - 1, k - 0)])[0], rX);\n makeSection();\n }\n\n if(rY) {\n A = getBetween(getXYZV([getIndex(i - 0, j, k - 0)])[0], getXYZV([getIndex(i - 0, j - 1, k - 0)])[0], rY);\n B = getBetween(getXYZV([getIndex(i - 0, j, k - 1)])[0], getXYZV([getIndex(i - 0, j - 1, k - 1)])[0], rY);\n C = getBetween(getXYZV([getIndex(i - 1, j, k - 1)])[0], getXYZV([getIndex(i - 1, j - 1, k - 1)])[0], rY);\n D = getBetween(getXYZV([getIndex(i - 1, j, k - 0)])[0], getXYZV([getIndex(i - 1, j - 1, k - 0)])[0], rY);\n makeSection();\n }\n\n if(rZ) {\n A = getBetween(getXYZV([getIndex(i - 0, j - 0, k)])[0], getXYZV([getIndex(i - 0, j - 0, k - 1)])[0], rZ);\n B = getBetween(getXYZV([getIndex(i - 0, j - 1, k)])[0], getXYZV([getIndex(i - 0, j - 1, k - 1)])[0], rZ);\n C = getBetween(getXYZV([getIndex(i - 1, j - 1, k)])[0], getXYZV([getIndex(i - 1, j - 1, k - 1)])[0], rZ);\n D = getBetween(getXYZV([getIndex(i - 1, j - 0, k)])[0], getXYZV([getIndex(i - 1, j - 0, k - 1)])[0], rZ);\n makeSection();\n }\n\n return result;\n }\n\n function begin3dCell(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max, isEven) {\n // used to create spaceframe and/or iso-surfaces\n\n var cellStyle = style;\n if(isEven) {\n if(drawingSurface && style === 'even') cellStyle = null;\n return addCube(cellStyle, p000, p001, p010, p011, p100, p101, p110, p111, min, max);\n } else {\n if(drawingSurface && style === 'odd') cellStyle = null;\n return addCube(cellStyle, p111, p110, p101, p100, p011, p010, p001, p000, min, max);\n }\n }\n\n function draw2dX(style, items, min, max, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var i = items[q];\n for(var k = 1; k < depth; k++) {\n for(var j = 1; j < height; j++) {\n result.push(\n begin2dCell(style,\n getIndex(i, j - 1, k - 1),\n getIndex(i, j - 1, k),\n getIndex(i, j, k - 1),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2,\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function draw2dY(style, items, min, max, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var j = items[q];\n for(var i = 1; i < width; i++) {\n for(var k = 1; k < depth; k++) {\n result.push(\n begin2dCell(style,\n getIndex(i - 1, j, k - 1),\n getIndex(i, j, k - 1),\n getIndex(i - 1, j, k),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2,\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function draw2dZ(style, items, min, max, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var k = items[q];\n for(var j = 1; j < height; j++) {\n for(var i = 1; i < width; i++) {\n result.push(\n begin2dCell(style,\n getIndex(i - 1, j - 1, k),\n getIndex(i - 1, j, k),\n getIndex(i, j - 1, k),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2,\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function draw3d(style, min, max) {\n for(var k = 1; k < depth; k++) {\n for(var j = 1; j < height; j++) {\n for(var i = 1; i < width; i++) {\n begin3dCell(style,\n getIndex(i - 1, j - 1, k - 1),\n getIndex(i - 1, j - 1, k),\n getIndex(i - 1, j, k - 1),\n getIndex(i - 1, j, k),\n getIndex(i, j - 1, k - 1),\n getIndex(i, j - 1, k),\n getIndex(i, j, k - 1),\n getIndex(i, j, k),\n min,\n max,\n (i + j + k) % 2\n );\n }\n }\n }\n }\n\n function drawSpaceframe(style, min, max) {\n drawingSpaceframe = true;\n draw3d(style, min, max);\n drawingSpaceframe = false;\n }\n\n function drawSurface(style, min, max) {\n drawingSurface = true;\n draw3d(style, min, max);\n drawingSurface = false;\n }\n\n function drawSectionX(style, items, min, max, distRatios, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var i = items[q];\n for(var k = 1; k < depth; k++) {\n for(var j = 1; j < height; j++) {\n result.push(\n beginSection(style, i, j, k, min, max, distRatios[q],\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function drawSectionY(style, items, min, max, distRatios, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var j = items[q];\n for(var i = 1; i < width; i++) {\n for(var k = 1; k < depth; k++) {\n result.push(\n beginSection(style, i, j, k, min, max, distRatios[q],\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function drawSectionZ(style, items, min, max, distRatios, previousResult) {\n var result = [];\n var n = 0;\n for(var q = 0; q < items.length; q++) {\n var k = items[q];\n for(var j = 1; j < height; j++) {\n for(var i = 1; i < width; i++) {\n result.push(\n beginSection(style, i, j, k, min, max, distRatios[q],\n (previousResult && previousResult[n]) ? previousResult[n] : []\n )\n );\n n++;\n }\n }\n }\n return result;\n }\n\n function createRange(a, b) {\n var range = [];\n for(var q = a; q < b; q++) {\n range.push(q);\n }\n return range;\n }\n\n function insertGridPoints() {\n for(var i = 0; i < width; i++) {\n for(var j = 0; j < height; j++) {\n for(var k = 0; k < depth; k++) {\n var index = getIndex(i, j, k);\n addVertex(\n data._x[index],\n data._y[index],\n data._z[index],\n data._value[index]\n );\n }\n }\n }\n }\n\n function drawAll() {\n emptyVertices();\n\n // insert grid points\n insertGridPoints();\n\n var activeStyle = null;\n\n // draw spaceframes\n if(showSpaceframe && spaceframeFill) {\n setFill(spaceframeFill);\n\n drawSpaceframe(activeStyle, vMin, vMax);\n }\n\n // draw iso-surfaces\n if(showSurface && surfaceFill) {\n setFill(surfaceFill);\n\n var surfacePattern = data.surface.pattern;\n var surfaceCount = data.surface.count;\n for(var q = 0; q < surfaceCount; q++) {\n var ratio = (surfaceCount === 1) ? 0.5 : q / (surfaceCount - 1);\n var level = (1 - ratio) * vMin + ratio * vMax;\n\n var d1 = Math.abs(level - minValues);\n var d2 = Math.abs(level - maxValues);\n var ranges = (d1 > d2) ?\n [minValues, level] :\n [level, maxValues];\n\n drawSurface(surfacePattern, ranges[0], ranges[1]);\n }\n }\n\n var setupMinMax = [\n [ Math.min(vMin, maxValues), Math.max(vMin, maxValues) ],\n [ Math.min(minValues, vMax), Math.max(minValues, vMax) ]\n ];\n\n ['x', 'y', 'z'].forEach(function(e) {\n var preRes = [];\n for(var s = 0; s < setupMinMax.length; s++) {\n var count = 0;\n\n var activeMin = setupMinMax[s][0];\n var activeMax = setupMinMax[s][1];\n\n // draw slices\n var slice = data.slices[e];\n if(slice.show && slice.fill) {\n setFill(slice.fill);\n\n var exactIndices = [];\n var ceilIndices = [];\n var distRatios = [];\n if(slice.locations.length) {\n for(var q = 0; q < slice.locations.length; q++) {\n var near = findNearestOnAxis(\n slice.locations[q],\n (e === 'x') ? Xs :\n (e === 'y') ? Ys : Zs\n );\n\n if(near.distRatio === 0) {\n exactIndices.push(near.id);\n } else if(near.id > 0) {\n ceilIndices.push(near.id);\n if(e === 'x') {\n distRatios.push([near.distRatio, 0, 0]);\n } else if(e === 'y') {\n distRatios.push([0, near.distRatio, 0]);\n } else {\n distRatios.push([0, 0, near.distRatio]);\n }\n }\n }\n } else {\n if(e === 'x') {\n exactIndices = createRange(1, width - 1);\n } else if(e === 'y') {\n exactIndices = createRange(1, height - 1);\n } else {\n exactIndices = createRange(1, depth - 1);\n }\n }\n\n if(ceilIndices.length > 0) {\n if(e === 'x') {\n preRes[count] = drawSectionX(activeStyle, ceilIndices, activeMin, activeMax, distRatios, preRes[count]);\n } else if(e === 'y') {\n preRes[count] = drawSectionY(activeStyle, ceilIndices, activeMin, activeMax, distRatios, preRes[count]);\n } else {\n preRes[count] = drawSectionZ(activeStyle, ceilIndices, activeMin, activeMax, distRatios, preRes[count]);\n }\n count++;\n }\n\n if(exactIndices.length > 0) {\n if(e === 'x') {\n preRes[count] = draw2dX(activeStyle, exactIndices, activeMin, activeMax, preRes[count]);\n } else if(e === 'y') {\n preRes[count] = draw2dY(activeStyle, exactIndices, activeMin, activeMax, preRes[count]);\n } else {\n preRes[count] = draw2dZ(activeStyle, exactIndices, activeMin, activeMax, preRes[count]);\n }\n count++;\n }\n }\n\n // draw caps\n var cap = data.caps[e];\n if(cap.show && cap.fill) {\n setFill(cap.fill);\n if(e === 'x') {\n preRes[count] = draw2dX(activeStyle, [0, width - 1], activeMin, activeMax, preRes[count]);\n } else if(e === 'y') {\n preRes[count] = draw2dY(activeStyle, [0, height - 1], activeMin, activeMax, preRes[count]);\n } else {\n preRes[count] = draw2dZ(activeStyle, [0, depth - 1], activeMin, activeMax, preRes[count]);\n }\n count++;\n }\n }\n });\n\n // remove vertices arrays (i.e. grid points) in case no face was created.\n if(numFaces === 0) {\n emptyVertices();\n }\n\n data._meshX = allXs;\n data._meshY = allYs;\n data._meshZ = allZs;\n data._meshIntensity = allVs;\n\n data._Xs = Xs;\n data._Ys = Ys;\n data._Zs = Zs;\n }\n\n drawAll();\n\n return data;\n}\n\nfunction createIsosurfaceTrace(scene, data) {\n var gl = scene.glplot.gl;\n var mesh = createMesh({gl: gl});\n var result = new IsosurfaceTrace(scene, mesh, data.uid);\n\n mesh._trace = result;\n result.update(data);\n scene.glplot.add(mesh);\n return result;\n}\n\nmodule.exports = {\n findNearestOnAxis: findNearestOnAxis,\n generateIsoMeshes: generateIsoMeshes,\n createIsosurfaceTrace: createIsosurfaceTrace,\n};\n\n},{\"../../../stackgl_modules\":1133,\"../../components/colorscale\":379,\"../../lib/gl_format_color\":511,\"../../lib/str2rgbarray\":540,\"../../plots/gl3d/zip3\":618}],874:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\nvar attributes = _dereq_('./attributes');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n supplyIsoDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n}\n\nfunction supplyIsoDefaults(traceIn, traceOut, defaultColor, layout, coerce) {\n var isomin = coerce('isomin');\n var isomax = coerce('isomax');\n\n if(isomax !== undefined && isomax !== null &&\n isomin !== undefined && isomin !== null &&\n isomin > isomax) {\n // applying default values in this case:\n traceOut.isomin = null;\n traceOut.isomax = null;\n }\n\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n var value = coerce('value');\n\n if(\n !x || !x.length ||\n !y || !y.length ||\n !z || !z.length ||\n !value || !value.length\n ) {\n traceOut.visible = false;\n return;\n }\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n coerce('valuehoverformat');\n ['x', 'y', 'z'].forEach(function(dim) {\n coerce(dim + 'hoverformat');\n\n var capDim = 'caps.' + dim;\n var showCap = coerce(capDim + '.show');\n if(showCap) {\n coerce(capDim + '.fill');\n }\n\n var sliceDim = 'slices.' + dim;\n var showSlice = coerce(sliceDim + '.show');\n if(showSlice) {\n coerce(sliceDim + '.fill');\n coerce(sliceDim + '.locations');\n }\n });\n\n var showSpaceframe = coerce('spaceframe.show');\n if(showSpaceframe) {\n coerce('spaceframe.fill');\n }\n\n var showSurface = coerce('surface.show');\n if(showSurface) {\n coerce('surface.count');\n coerce('surface.fill');\n coerce('surface.pattern');\n }\n\n var showContour = coerce('contour.show');\n if(showContour) {\n coerce('contour.color');\n coerce('contour.width');\n }\n\n // Coerce remaining properties\n [\n 'text',\n 'hovertext',\n 'hovertemplate',\n 'lighting.ambient',\n 'lighting.diffuse',\n 'lighting.specular',\n 'lighting.roughness',\n 'lighting.fresnel',\n 'lighting.vertexnormalsepsilon',\n 'lighting.facenormalsepsilon',\n 'lightposition.x',\n 'lightposition.y',\n 'lightposition.z',\n 'flatshading',\n 'opacity'\n ].forEach(function(x) { coerce(x); });\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n\n // disable 1D transforms (for now)\n traceOut._length = null;\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n supplyIsoDefaults: supplyIsoDefaults\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"../../registry\":647,\"./attributes\":871}],875:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n calc: _dereq_('./calc'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n plot: _dereq_('./convert').createIsosurfaceTrace,\n\n moduleType: 'trace',\n name: 'isosurface',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":607,\"./attributes\":871,\"./calc\":872,\"./convert\":873,\"./defaults\":874}],876:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar surfaceAttrs = _dereq_('../surface/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = extendFlat({\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n z: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n i: {\n valType: 'data_array',\n editType: 'calc',\n },\n j: {\n valType: 'data_array',\n editType: 'calc',\n\n },\n k: {\n valType: 'data_array',\n editType: 'calc',\n\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertemplate: hovertemplateAttrs({editType: 'calc'}),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n delaunayaxis: {\n valType: 'enumerated',\n values: [ 'x', 'y', 'z' ],\n dflt: 'z',\n editType: 'calc',\n },\n\n alphahull: {\n valType: 'number',\n dflt: -1,\n editType: 'calc',\n },\n\n intensity: {\n valType: 'data_array',\n editType: 'calc',\n },\n intensitymode: {\n valType: 'enumerated',\n values: ['vertex', 'cell'],\n dflt: 'vertex',\n editType: 'calc',\n },\n\n // Color field\n color: {\n valType: 'color',\n editType: 'calc',\n },\n vertexcolor: {\n valType: 'data_array',\n editType: 'calc',\n },\n facecolor: {\n valType: 'data_array',\n editType: 'calc',\n },\n transforms: undefined\n},\n\ncolorScaleAttrs('', {\n colorAttr: '`intensity`',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}), {\n opacity: surfaceAttrs.opacity,\n\n // Flat shaded mode\n flatshading: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n contour: {\n show: extendFlat({}, surfaceAttrs.contours.x.show, {\n }),\n color: surfaceAttrs.contours.x.color,\n width: surfaceAttrs.contours.x.width,\n editType: 'calc'\n },\n\n lightposition: {\n x: extendFlat({}, surfaceAttrs.lightposition.x, {dflt: 1e5}),\n y: extendFlat({}, surfaceAttrs.lightposition.y, {dflt: 1e5}),\n z: extendFlat({}, surfaceAttrs.lightposition.z, {dflt: 0}),\n editType: 'calc'\n },\n lighting: extendFlat({\n vertexnormalsepsilon: {\n valType: 'number',\n min: 0.00,\n max: 1,\n dflt: 1e-12, // otherwise finely tessellated things eg. the brain will have no specular light reflection\n editType: 'calc',\n },\n facenormalsepsilon: {\n valType: 'number',\n min: 0.00,\n max: 1,\n dflt: 1e-6, // even the brain model doesn't appear to need finer than this\n editType: 'calc',\n },\n editType: 'calc'\n }, surfaceAttrs.lighting),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {editType: 'calc'}),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n});\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../surface/attributes\":1070}],877:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\nmodule.exports = function calc(gd, trace) {\n if(trace.intensity) {\n colorscaleCalc(gd, trace, {\n vals: trace.intensity,\n containerStr: '',\n cLetter: 'c'\n });\n }\n};\n\n},{\"../../components/colorscale/calc\":375}],878:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\nvar triangulate = _dereq_('../../../stackgl_modules').delaunay_triangulate;\nvar alphaShape = _dereq_('../../../stackgl_modules').alpha_shape;\nvar convexHull = _dereq_('../../../stackgl_modules').convex_hull;\n\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nfunction Mesh3DTrace(scene, mesh, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = mesh;\n this.name = '';\n this.color = '#fff';\n this.data = null;\n this.showContour = false;\n}\n\nvar proto = Mesh3DTrace.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var selectIndex = selection.index = selection.data.index;\n\n if(selection.data._cellCenter) {\n selection.traceCoordinate = selection.data.dataCoordinate;\n } else {\n selection.traceCoordinate = [\n this.data.x[selectIndex],\n this.data.y[selectIndex],\n this.data.z[selectIndex]\n ];\n }\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nfunction parseColorArray(colors) {\n var b = [];\n var len = colors.length;\n for(var i = 0; i < len; i++) {\n b[i] = str2RgbaArray(colors[i]);\n }\n return b;\n}\n\n// Unpack position data\nfunction toDataCoords(axis, coord, scale, calendar) {\n var b = [];\n var len = coord.length;\n for(var i = 0; i < len; i++) {\n b[i] = axis.d2l(coord[i], 0, calendar) * scale;\n }\n return b;\n}\n\n// Round indices if passed as floats\nfunction toRoundIndex(a) {\n var b = [];\n var len = a.length;\n for(var i = 0; i < len; i++) {\n b[i] = Math.round(a[i]);\n }\n return b;\n}\n\nfunction delaunayCells(delaunayaxis, positions) {\n var d = ['x', 'y', 'z'].indexOf(delaunayaxis);\n var b = [];\n var len = positions.length;\n for(var i = 0; i < len; i++) {\n b[i] = [positions[i][(d + 1) % 3], positions[i][(d + 2) % 3]];\n }\n return triangulate(b);\n}\n\n// Validate indices\nfunction hasValidIndices(list, numVertices) {\n var len = list.length;\n for(var i = 0; i < len; i++) {\n if(list[i] <= -0.5 || list[i] >= numVertices - 0.5) { // Note: the indices would be rounded -0.49 is valid.\n return false;\n }\n }\n return true;\n}\n\nproto.update = function(data) {\n var scene = this.scene;\n var layout = scene.fullSceneLayout;\n\n this.data = data;\n\n var numVertices = data.x.length;\n\n var positions = zip3(\n toDataCoords(layout.xaxis, data.x, scene.dataScale[0], data.xcalendar),\n toDataCoords(layout.yaxis, data.y, scene.dataScale[1], data.ycalendar),\n toDataCoords(layout.zaxis, data.z, scene.dataScale[2], data.zcalendar)\n );\n\n var cells;\n if(data.i && data.j && data.k) {\n if(\n data.i.length !== data.j.length ||\n data.j.length !== data.k.length ||\n !hasValidIndices(data.i, numVertices) ||\n !hasValidIndices(data.j, numVertices) ||\n !hasValidIndices(data.k, numVertices)\n ) {\n return;\n }\n cells = zip3(\n toRoundIndex(data.i),\n toRoundIndex(data.j),\n toRoundIndex(data.k)\n );\n } else if(data.alphahull === 0) {\n cells = convexHull(positions);\n } else if(data.alphahull > 0) {\n cells = alphaShape(data.alphahull, positions);\n } else {\n cells = delaunayCells(data.delaunayaxis, positions);\n }\n\n var config = {\n positions: positions,\n cells: cells,\n lightPosition: [data.lightposition.x, data.lightposition.y, data.lightposition.z],\n ambient: data.lighting.ambient,\n diffuse: data.lighting.diffuse,\n specular: data.lighting.specular,\n roughness: data.lighting.roughness,\n fresnel: data.lighting.fresnel,\n vertexNormalsEpsilon: data.lighting.vertexnormalsepsilon,\n faceNormalsEpsilon: data.lighting.facenormalsepsilon,\n opacity: data.opacity,\n contourEnable: data.contour.show,\n contourColor: str2RgbaArray(data.contour.color).slice(0, 3),\n contourWidth: data.contour.width,\n useFacetNormals: data.flatshading\n };\n\n if(data.intensity) {\n var cOpts = extractOpts(data);\n this.color = '#fff';\n var mode = data.intensitymode;\n config[mode + 'Intensity'] = data.intensity;\n config[mode + 'IntensityBounds'] = [cOpts.min, cOpts.max];\n config.colormap = parseColorScale(data);\n } else if(data.vertexcolor) {\n this.color = data.vertexcolor[0];\n config.vertexColors = parseColorArray(data.vertexcolor);\n } else if(data.facecolor) {\n this.color = data.facecolor[0];\n config.cellColors = parseColorArray(data.facecolor);\n } else {\n this.color = data.color;\n config.meshColor = str2RgbaArray(data.color);\n }\n\n // Update mesh\n this.mesh.update(config);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createMesh3DTrace(scene, data) {\n var gl = scene.glplot.gl;\n var mesh = createMesh({gl: gl});\n var result = new Mesh3DTrace(scene, mesh, data.uid);\n mesh._trace = result;\n result.update(data);\n scene.glplot.add(mesh);\n return result;\n}\n\nmodule.exports = createMesh3DTrace;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/colorscale\":379,\"../../lib/gl_format_color\":511,\"../../lib/str2rgbarray\":540,\"../../plots/gl3d/zip3\":618}],879:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n // read in face/vertex properties\n function readComponents(array) {\n var ret = array.map(function(attr) {\n var result = coerce(attr);\n\n if(result && Lib.isArrayOrTypedArray(result)) return result;\n return null;\n });\n\n return ret.every(function(x) {\n return x && x.length === ret[0].length;\n }) && ret;\n }\n\n var coords = readComponents(['x', 'y', 'z']);\n if(!coords) {\n traceOut.visible = false;\n return;\n }\n\n readComponents(['i', 'j', 'k']);\n // three indices should be all provided or not\n if(\n (traceOut.i && (!traceOut.j || !traceOut.k)) ||\n (traceOut.j && (!traceOut.k || !traceOut.i)) ||\n (traceOut.k && (!traceOut.i || !traceOut.j))\n ) {\n traceOut.visible = false;\n return;\n }\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n // Coerce remaining properties\n [\n 'lighting.ambient',\n 'lighting.diffuse',\n 'lighting.specular',\n 'lighting.roughness',\n 'lighting.fresnel',\n 'lighting.vertexnormalsepsilon',\n 'lighting.facenormalsepsilon',\n 'lightposition.x',\n 'lightposition.y',\n 'lightposition.z',\n 'flatshading',\n 'alphahull',\n 'delaunayaxis',\n 'opacity'\n ].forEach(function(x) { coerce(x); });\n\n var showContour = coerce('contour.show');\n if(showContour) {\n coerce('contour.color');\n coerce('contour.width');\n }\n\n if('intensity' in traceIn) {\n coerce('intensity');\n coerce('intensitymode');\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n } else {\n traceOut.showscale = false;\n\n if('facecolor' in traceIn) coerce('facecolor');\n else if('vertexcolor' in traceIn) coerce('vertexcolor');\n else coerce('color', defaultColor);\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // disable 1D transforms\n // x/y/z should match lengths, and i/j/k should match as well, but\n // the two sets have different lengths so transforms wouldn't work.\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"../../registry\":647,\"./attributes\":876}],880:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'mesh3d',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":607,\"./attributes\":876,\"./calc\":877,\"./convert\":878,\"./defaults\":879}],881:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib').extendFlat;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar fxAttrs = _dereq_('../../components/fx/attributes');\nvar delta = _dereq_('../../constants/delta.js');\n\nvar INCREASING_COLOR = delta.INCREASING.COLOR;\nvar DECREASING_COLOR = delta.DECREASING.COLOR;\n\nvar lineAttrs = scatterAttrs.line;\n\nfunction directionAttrs(lineColorDefault) {\n return {\n line: {\n color: extendFlat({}, lineAttrs.color, {dflt: lineColorDefault}),\n width: lineAttrs.width,\n dash: dash,\n editType: 'style'\n },\n editType: 'style'\n };\n}\n\nmodule.exports = {\n\n xperiod: scatterAttrs.xperiod,\n xperiod0: scatterAttrs.xperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n open: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n high: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n low: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n close: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n line: {\n width: extendFlat({}, lineAttrs.width, {\n }),\n dash: extendFlat({}, dash, {\n }),\n editType: 'style'\n },\n\n increasing: directionAttrs(INCREASING_COLOR),\n\n decreasing: directionAttrs(DECREASING_COLOR),\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n\n tickwidth: {\n valType: 'number',\n min: 0,\n max: 0.5,\n dflt: 0.3,\n editType: 'calc',\n },\n\n hoverlabel: extendFlat({}, fxAttrs.hoverlabel, {\n split: {\n valType: 'boolean',\n dflt: false,\n editType: 'style',\n }\n }),\n};\n\n},{\"../../components/drawing/attributes\":388,\"../../components/fx/attributes\":398,\"../../constants/delta.js\":485,\"../../lib\":515,\"../../plots/cartesian/axis_format_attributes\":569,\"../scatter/attributes\":936}],882:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar _ = Lib._;\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis);\n var ya = Axes.getFromId(gd, trace.yaxis);\n\n var tickLen = convertTickWidth(gd, xa, trace);\n var minDiff = trace._minDiff;\n trace._minDiff = null;\n var origX = trace._origX;\n trace._origX = null;\n var x = trace._xcalc;\n trace._xcalc = null;\n\n var cd = calcCommon(gd, trace, origX, x, ya, ptFunc);\n\n trace._extremes[xa._id] = Axes.findExtremes(xa, x, {vpad: minDiff / 2});\n if(cd.length) {\n Lib.extendFlat(cd[0].t, {\n wHover: minDiff / 2,\n tickLen: tickLen\n });\n return cd;\n } else {\n return [{t: {empty: true}}];\n }\n}\n\nfunction ptFunc(o, h, l, c) {\n return {\n o: o,\n h: h,\n l: l,\n c: c\n };\n}\n\n\n// shared between OHLC and candlestick\n// ptFunc makes a calcdata point specific to each trace type, from oi, hi, li, ci\nfunction calcCommon(gd, trace, origX, x, ya, ptFunc) {\n var o = ya.makeCalcdata(trace, 'open');\n var h = ya.makeCalcdata(trace, 'high');\n var l = ya.makeCalcdata(trace, 'low');\n var c = ya.makeCalcdata(trace, 'close');\n\n var hasTextArray = Array.isArray(trace.text);\n var hasHovertextArray = Array.isArray(trace.hovertext);\n\n // we're optimists - before we have any changing data, assume increasing\n var increasing = true;\n var cPrev = null;\n\n var hasPeriod = !!trace.xperiodalignment;\n\n var cd = [];\n for(var i = 0; i < x.length; i++) {\n var xi = x[i];\n var oi = o[i];\n var hi = h[i];\n var li = l[i];\n var ci = c[i];\n\n if(xi !== BADNUM && oi !== BADNUM && hi !== BADNUM && li !== BADNUM && ci !== BADNUM) {\n if(ci === oi) {\n // if open == close, look for a change from the previous close\n if(cPrev !== null && ci !== cPrev) increasing = ci > cPrev;\n // else (c === cPrev or cPrev is null) no change\n } else increasing = ci > oi;\n\n cPrev = ci;\n\n var pt = ptFunc(oi, hi, li, ci);\n\n pt.pos = xi;\n pt.yc = (oi + ci) / 2;\n pt.i = i;\n pt.dir = increasing ? 'increasing' : 'decreasing';\n\n // For categoryorder, store low and high\n pt.x = pt.pos;\n pt.y = [li, hi];\n\n if(hasPeriod) pt.orig_p = origX[i]; // used by hover\n if(hasTextArray) pt.tx = trace.text[i];\n if(hasHovertextArray) pt.htx = trace.hovertext[i];\n\n cd.push(pt);\n } else {\n cd.push({pos: xi, empty: true});\n }\n }\n\n trace._extremes[ya._id] = Axes.findExtremes(ya, Lib.concat(l, h), {padded: true});\n\n if(cd.length) {\n cd[0].t = {\n labels: {\n open: _(gd, 'open:') + ' ',\n high: _(gd, 'high:') + ' ',\n low: _(gd, 'low:') + ' ',\n close: _(gd, 'close:') + ' '\n }\n };\n }\n\n return cd;\n}\n\n/*\n * find min x-coordinates difference of all traces\n * attached to this x-axis and stash the result in _minDiff\n * in all traces; when a trace uses this in its\n * calc step it deletes _minDiff, so that next calc this is\n * done again in case the data changed.\n * also since we need it here, stash _xcalc (and _origX) on the trace\n */\nfunction convertTickWidth(gd, xa, trace) {\n var minDiff = trace._minDiff;\n\n if(!minDiff) {\n var fullData = gd._fullData;\n var ohlcTracesOnThisXaxis = [];\n\n minDiff = Infinity;\n\n var i;\n\n for(i = 0; i < fullData.length; i++) {\n var tracei = fullData[i];\n\n if(tracei.type === 'ohlc' &&\n tracei.visible === true &&\n tracei.xaxis === xa._id\n ) {\n ohlcTracesOnThisXaxis.push(tracei);\n\n var origX = xa.makeCalcdata(tracei, 'x');\n tracei._origX = origX;\n\n var xcalc = alignPeriod(trace, xa, 'x', origX).vals;\n tracei._xcalc = xcalc;\n\n var _minDiff = Lib.distinctVals(xcalc).minDiff;\n if(_minDiff && isFinite(_minDiff)) {\n minDiff = Math.min(minDiff, _minDiff);\n }\n }\n }\n\n // if minDiff is still Infinity here, set it to 1\n if(minDiff === Infinity) minDiff = 1;\n\n for(i = 0; i < ohlcTracesOnThisXaxis.length; i++) {\n ohlcTracesOnThisXaxis[i]._minDiff = minDiff;\n }\n }\n\n return minDiff * trace.tickwidth;\n}\n\nmodule.exports = {\n calc: calc,\n calcCommon: calcCommon\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566}],883:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleOHLC = _dereq_('./ohlc_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleOHLC(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce, {x: true});\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('line.width');\n coerce('line.dash');\n\n handleDirection(traceIn, traceOut, coerce, 'increasing');\n handleDirection(traceIn, traceOut, coerce, 'decreasing');\n\n coerce('text');\n coerce('hovertext');\n coerce('tickwidth');\n\n layout._requestRangeslider[traceOut.xaxis] = true;\n};\n\nfunction handleDirection(traceIn, traceOut, coerce, direction) {\n coerce(direction + '.line.color');\n coerce(direction + '.line.width', traceOut.line.width);\n coerce(direction + '.line.dash', traceOut.line.dash);\n}\n\n},{\"../../lib\":515,\"../scatter/period_defaults\":956,\"./attributes\":881,\"./ohlc_defaults\":886}],884:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Lib = _dereq_('../../lib');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar fillText = _dereq_('../../lib').fillText;\nvar delta = _dereq_('../../constants/delta.js');\n\nvar DIRSYMBOL = {\n increasing: delta.INCREASING.SYMBOL,\n decreasing: delta.DECREASING.SYMBOL\n};\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n\n if(trace.hoverlabel.split) {\n return hoverSplit(pointData, xval, yval, hovermode);\n }\n\n return hoverOnPoints(pointData, xval, yval, hovermode);\n}\n\nfunction _getClosestPoint(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var xa = pointData.xa;\n var trace = cd[0].trace;\n var t = cd[0].t;\n\n var type = trace.type;\n var minAttr = type === 'ohlc' ? 'l' : 'min';\n var maxAttr = type === 'ohlc' ? 'h' : 'max';\n\n var hoverPseudoDistance, spikePseudoDistance;\n\n // potentially shift xval for grouped candlesticks\n var centerShift = t.bPos || 0;\n var shiftPos = function(di) { return di.pos + centerShift - xval; };\n\n // ohlc and candlestick call displayHalfWidth different things...\n var displayHalfWidth = t.bdPos || t.tickLen;\n var hoverHalfWidth = t.wHover;\n\n // if two figures are overlaying, let the narrowest one win\n var pseudoDistance = Math.min(1, displayHalfWidth / Math.abs(xa.r2c(xa.range[1]) - xa.r2c(xa.range[0])));\n hoverPseudoDistance = pointData.maxHoverDistance - pseudoDistance;\n spikePseudoDistance = pointData.maxSpikeDistance - pseudoDistance;\n\n function dx(di) {\n var pos = shiftPos(di);\n return Fx.inbox(pos - hoverHalfWidth, pos + hoverHalfWidth, hoverPseudoDistance);\n }\n\n function dy(di) {\n var min = di[minAttr];\n var max = di[maxAttr];\n return min === max || Fx.inbox(min - yval, max - yval, hoverPseudoDistance);\n }\n\n function dxy(di) { return (dx(di) + dy(di)) / 2; }\n\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n Fx.getClosest(cd, distfn, pointData);\n\n if(pointData.index === false) return null;\n\n var di = cd[pointData.index];\n\n if(di.empty) return null;\n\n var dir = di.dir;\n var container = trace[dir];\n var lc = container.line.color;\n\n if(Color.opacity(lc) && container.line.width) pointData.color = lc;\n else pointData.color = container.fillcolor;\n\n pointData.x0 = xa.c2p(di.pos + centerShift - displayHalfWidth, true);\n pointData.x1 = xa.c2p(di.pos + centerShift + displayHalfWidth, true);\n\n pointData.xLabelVal = di.orig_p !== undefined ? di.orig_p : di.pos;\n\n pointData.spikeDistance = dxy(di) * spikePseudoDistance / hoverPseudoDistance;\n pointData.xSpike = xa.c2p(di.pos, true);\n\n return pointData;\n}\n\nfunction hoverSplit(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var t = cd[0].t;\n var closeBoxData = [];\n\n var closestPoint = _getClosestPoint(pointData, xval, yval, hovermode);\n // skip the rest (for this trace) if we didn't find a close point\n if(!closestPoint) return [];\n\n var cdIndex = closestPoint.index;\n var di = cd[cdIndex];\n var hoverinfo = di.hi || trace.hoverinfo;\n var hoverParts = hoverinfo.split('+');\n var isAll = hoverinfo === 'all';\n var hasY = isAll || hoverParts.indexOf('y') !== -1;\n\n // similar to hoverOnPoints, we return nothing\n // if all or y is not present.\n if(!hasY) return [];\n\n var attrs = ['high', 'open', 'close', 'low'];\n\n // several attributes can have the same y-coordinate. We will\n // bunch them together in a single text block. For this, we keep\n // a dictionary mapping y-coord -> point data.\n var usedVals = {};\n\n for(var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n var val = trace[attr][closestPoint.index];\n var valPx = ya.c2p(val, true);\n var pointData2;\n if(val in usedVals) {\n pointData2 = usedVals[val];\n pointData2.yLabel += '
' + t.labels[attr] + Axes.hoverLabelText(ya, val, trace.yhoverformat);\n } else {\n // copy out to a new object for each new y-value to label\n pointData2 = Lib.extendFlat({}, closestPoint);\n\n pointData2.y0 = pointData2.y1 = valPx;\n pointData2.yLabelVal = val;\n pointData2.yLabel = t.labels[attr] + Axes.hoverLabelText(ya, val, trace.yhoverformat);\n\n pointData2.name = '';\n\n closeBoxData.push(pointData2);\n usedVals[val] = pointData2;\n }\n }\n\n return closeBoxData;\n}\n\nfunction hoverOnPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var ya = pointData.ya;\n var trace = cd[0].trace;\n var t = cd[0].t;\n\n var closestPoint = _getClosestPoint(pointData, xval, yval, hovermode);\n // skip the rest (for this trace) if we didn't find a close point\n if(!closestPoint) return [];\n\n // we don't make a calcdata point if we're missing any piece (x/o/h/l/c)\n // so we need to fix the index here to point to the data arrays\n var cdIndex = closestPoint.index;\n var di = cd[cdIndex];\n var i = closestPoint.index = di.i;\n var dir = di.dir;\n\n function getLabelLine(attr) {\n return t.labels[attr] + Axes.hoverLabelText(ya, trace[attr][i], trace.yhoverformat);\n }\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var hoverParts = hoverinfo.split('+');\n var isAll = hoverinfo === 'all';\n var hasY = isAll || hoverParts.indexOf('y') !== -1;\n var hasText = isAll || hoverParts.indexOf('text') !== -1;\n\n var textParts = hasY ? [\n getLabelLine('open'),\n getLabelLine('high'),\n getLabelLine('low'),\n getLabelLine('close') + ' ' + DIRSYMBOL[dir]\n ] : [];\n if(hasText) fillText(di, trace, textParts);\n\n // don't make .yLabelVal or .text, since we're managing hoverinfo\n // put it all in .extraText\n closestPoint.extraText = textParts.join('
');\n\n // this puts the label *and the spike* at the midpoint of the box, ie\n // halfway between open and close, not between high and low.\n closestPoint.y0 = closestPoint.y1 = ya.c2p(di.yc, true);\n\n return [closestPoint];\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n hoverSplit: hoverSplit,\n hoverOnPoints: hoverOnPoints\n};\n\n},{\"../../components/color\":367,\"../../components/fx\":407,\"../../constants/delta.js\":485,\"../../lib\":515,\"../../plots/cartesian/axes\":566}],885:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'ohlc',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'showLegend'],\n meta: {\n },\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc').calc,\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('./select')\n};\n\n},{\"../../plots/cartesian\":578,\"./attributes\":881,\"./calc\":882,\"./defaults\":883,\"./hover\":884,\"./plot\":887,\"./select\":888,\"./style\":889}],886:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function handleOHLC(traceIn, traceOut, coerce, layout) {\n var x = coerce('x');\n var open = coerce('open');\n var high = coerce('high');\n var low = coerce('low');\n var close = coerce('close');\n\n coerce('hoverlabel.split');\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x'], layout);\n\n if(!(open && high && low && close)) return;\n\n var len = Math.min(open.length, high.length, low.length, close.length);\n if(x) len = Math.min(len, Lib.minRowLength(x));\n traceOut._length = len;\n\n return len;\n};\n\n},{\"../../lib\":515,\"../../registry\":647}],887:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function plot(gd, plotinfo, cdOHLC, ohlcLayer) {\n var ya = plotinfo.yaxis;\n var xa = plotinfo.xaxis;\n var posHasRangeBreaks = !!xa.rangebreaks;\n\n Lib.makeTraceGroups(ohlcLayer, cdOHLC, 'trace ohlc').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var t = cd0.t;\n var trace = cd0.trace;\n\n if(trace.visible !== true || t.empty) {\n plotGroup.remove();\n return;\n }\n\n var tickLen = t.tickLen;\n\n var paths = plotGroup.selectAll('path').data(Lib.identity);\n\n paths.enter().append('path');\n\n paths.exit().remove();\n\n paths.attr('d', function(d) {\n if(d.empty) return 'M0,0Z';\n\n var xo = xa.c2p(d.pos - tickLen, true);\n var xc = xa.c2p(d.pos + tickLen, true);\n var x = posHasRangeBreaks ? (xo + xc) / 2 : xa.c2p(d.pos, true);\n\n var yo = ya.c2p(d.o, true);\n var yh = ya.c2p(d.h, true);\n var yl = ya.c2p(d.l, true);\n var yc = ya.c2p(d.c, true);\n\n return 'M' + xo + ',' + yo + 'H' + x +\n 'M' + x + ',' + yh + 'V' + yl +\n 'M' + xc + ',' + yc + 'H' + x;\n });\n });\n};\n\n},{\"../../lib\":515,\"@plotly/d3\":58}],888:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var i;\n // for (potentially grouped) candlesticks\n var posOffset = cd[0].t.bPos || 0;\n\n if(selectionTester === false) {\n // clear selection\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n var di = cd[i];\n\n if(selectionTester.contains([xa.c2p(di.pos + posOffset), ya.c2p(di.yc)], null, di.i, searchInfo)) {\n selection.push({\n pointNumber: di.i,\n x: xa.c2d(di.pos),\n y: ya.c2d(di.yc)\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{}],889:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\n\nmodule.exports = function style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.ohlclayer').selectAll('g.trace');\n\n s.style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n\n s.each(function(d) {\n var trace = d[0].trace;\n\n d3.select(this).selectAll('path').each(function(di) {\n if(di.empty) return;\n\n var dirLine = trace[di.dir].line;\n d3.select(this)\n .style('fill', 'none')\n .call(Color.stroke, dirLine.color)\n .call(Drawing.dashLine, dirLine.dash, dirLine.width)\n // TODO: custom selection style for OHLC\n .style('opacity', trace.selectedpoints && !di.selected ? 0.3 : 1);\n });\n });\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"@plotly/d3\":58}],890:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\n\nvar line = extendFlat(\n {editType: 'calc'},\n colorScaleAttrs('line', {editTypeOverride: 'calc'}),\n {\n shape: {\n valType: 'enumerated',\n values: ['linear', 'hspline'],\n dflt: 'linear',\n editType: 'plot',\n },\n\n hovertemplate: hovertemplateAttrs({\n editType: 'plot',\n arrayOk: false\n }, {\n keys: ['count', 'probability'],\n })\n }\n);\n\nmodule.exports = {\n domain: domainAttrs({name: 'parcats', trace: true, editType: 'calc'}),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['count', 'probability'],\n editType: 'plot',\n arrayOk: false\n }),\n hoveron: {\n valType: 'enumerated',\n values: ['category', 'color', 'dimension'],\n dflt: 'category',\n editType: 'plot',\n },\n hovertemplate: hovertemplateAttrs({\n editType: 'plot',\n arrayOk: false\n }, {\n keys: [\n 'count', 'probability', 'category',\n 'categorycount', 'colorcount', 'bandcolorcount'\n ],\n }),\n\n arrangement: {\n valType: 'enumerated',\n values: ['perpendicular', 'freeform', 'fixed'],\n dflt: 'perpendicular',\n editType: 'plot',\n },\n bundlecolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n sortpaths: {\n valType: 'enumerated',\n values: ['forward', 'backward'],\n dflt: 'forward',\n editType: 'plot',\n },\n labelfont: fontAttrs({\n editType: 'calc',\n }),\n\n tickfont: fontAttrs({\n editType: 'calc',\n }),\n\n dimensions: {\n _isLinkedToArray: 'dimension',\n label: {\n valType: 'string',\n editType: 'calc',\n },\n categoryorder: {\n valType: 'enumerated',\n values: [\n 'trace', 'category ascending', 'category descending', 'array'\n ],\n dflt: 'trace',\n editType: 'calc',\n },\n categoryarray: {\n valType: 'data_array',\n editType: 'calc',\n },\n ticktext: {\n valType: 'data_array',\n editType: 'calc',\n },\n values: {\n valType: 'data_array',\n dflt: [],\n editType: 'calc',\n },\n displayindex: {\n valType: 'integer',\n editType: 'calc',\n },\n editType: 'calc',\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n },\n\n line: line,\n counts: {\n valType: 'number',\n min: 0,\n dflt: 1,\n arrayOk: true,\n editType: 'calc',\n },\n\n // Hide unsupported top-level properties from plot-schema\n customdata: undefined,\n hoverlabel: undefined,\n ids: undefined,\n legendgroup: undefined,\n legendrank: undefined,\n opacity: undefined,\n selectedpoints: undefined,\n showlegend: undefined\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/domain\":593,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642}],891:[function(_dereq_,module,exports){\n'use strict';\n\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar parcatsPlot = _dereq_('./plot');\n\nvar PARCATS = 'parcats';\nexports.name = PARCATS;\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n var cdModuleAndOthers = getModuleCalcData(gd.calcdata, PARCATS);\n\n if(cdModuleAndOthers.length) {\n var calcData = cdModuleAndOthers[0];\n parcatsPlot(gd, calcData, transitionOpts, makeOnCompleteCallback);\n }\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadTable = (oldFullLayout._has && oldFullLayout._has('parcats'));\n var hasTable = (newFullLayout._has && newFullLayout._has('parcats'));\n\n if(hadTable && !hasTable) {\n oldFullLayout._paperdiv.selectAll('.parcats').remove();\n }\n};\n\n},{\"../../plots/get_data\":602,\"./plot\":896}],892:[function(_dereq_,module,exports){\n'use strict';\n\n// Requirements\n// ============\nvar wrap = _dereq_('../../lib/gup').wrap;\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\nvar filterUnique = _dereq_('../../lib/filter_unique.js');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar isNumeric = _dereq_('fast-isnumeric');\n\n/**\n * Create a wrapped ParcatsModel object from trace\n *\n * Note: trace defaults have already been applied\n * @param {Object} gd\n * @param {Object} trace\n * @return {Array.}\n */\nmodule.exports = function calc(gd, trace) {\n var visibleDims = Lib.filterVisible(trace.dimensions);\n\n if(visibleDims.length === 0) return [];\n\n var uniqueInfoDims = visibleDims.map(function(dim) {\n var categoryValues;\n if(dim.categoryorder === 'trace') {\n // Use order of first occurrence in trace\n categoryValues = null;\n } else if(dim.categoryorder === 'array') {\n // Use categories specified in `categoryarray` first,\n // then add extra to the end in trace order\n categoryValues = dim.categoryarray;\n } else {\n // Get all categories up front\n categoryValues = filterUnique(dim.values);\n\n // order them\n var allNumeric = true;\n for(var i = 0; i < categoryValues.length; i++) {\n if(!isNumeric(categoryValues[i])) {\n allNumeric = false;\n break;\n }\n }\n categoryValues.sort(allNumeric ? Lib.sorterAsc : undefined);\n\n if(dim.categoryorder === 'category descending') {\n categoryValues = categoryValues.reverse();\n }\n }\n return getUniqueInfo(dim.values, categoryValues);\n });\n\n var counts,\n count,\n totalCount;\n if(Lib.isArrayOrTypedArray(trace.counts)) {\n counts = trace.counts;\n } else {\n counts = [trace.counts];\n }\n\n validateDimensionDisplayInds(visibleDims);\n\n visibleDims.forEach(function(dim, dimInd) {\n validateCategoryProperties(dim, uniqueInfoDims[dimInd]);\n });\n\n // Handle path colors\n // ------------------\n var line = trace.line;\n var markerColorscale;\n\n // Process colorscale\n if(line) {\n if(hasColorscale(trace, 'line')) {\n colorscaleCalc(gd, trace, {\n vals: trace.line.color,\n containerStr: 'line',\n cLetter: 'c'\n });\n }\n markerColorscale = Drawing.tryColorscale(line);\n } else {\n markerColorscale = Lib.identity;\n }\n\n // Build color generation function\n function getMarkerColorInfo(index) {\n var value, rawColor;\n if(Lib.isArrayOrTypedArray(line.color)) {\n value = line.color[index % line.color.length];\n rawColor = value;\n } else {\n value = line.color;\n }\n\n return {color: markerColorscale(value), rawColor: rawColor};\n }\n\n // Number of values and counts\n // ---------------------------\n var numValues = visibleDims[0].values.length;\n\n // Build path info\n // ---------------\n // Mapping from category inds to PathModel objects\n var pathModels = {};\n\n // Category inds array for each dimension\n var categoryIndsDims = uniqueInfoDims.map(function(di) {return di.inds;});\n\n // Initialize total count\n totalCount = 0;\n var valueInd;\n var d;\n\n for(valueInd = 0; valueInd < numValues; valueInd++) {\n // Category inds for this input value across dimensions\n var categoryIndsPath = [];\n for(d = 0; d < categoryIndsDims.length; d++) {\n categoryIndsPath.push(categoryIndsDims[d][valueInd]);\n }\n\n // Count\n count = counts[valueInd % counts.length];\n\n // Update total count\n totalCount += count;\n\n // Path color\n var pathColorInfo = getMarkerColorInfo(valueInd);\n\n // path key\n var pathKey = categoryIndsPath + '-' + pathColorInfo.rawColor;\n\n // Create / Update PathModel\n if(pathModels[pathKey] === undefined) {\n pathModels[pathKey] = createPathModel(categoryIndsPath,\n pathColorInfo.color,\n pathColorInfo.rawColor);\n }\n updatePathModel(pathModels[pathKey], valueInd, count);\n }\n\n var dimensionModels = visibleDims.map(function(di, i) {\n return createDimensionModel(i, di._index, di._displayindex, di.label, totalCount);\n });\n\n\n for(valueInd = 0; valueInd < numValues; valueInd++) {\n count = counts[valueInd % counts.length];\n\n for(d = 0; d < dimensionModels.length; d++) {\n var containerInd = dimensionModels[d].containerInd;\n var catInd = uniqueInfoDims[d].inds[valueInd];\n var cats = dimensionModels[d].categories;\n\n if(cats[catInd] === undefined) {\n var catValue = trace.dimensions[containerInd]._categoryarray[catInd];\n var catLabel = trace.dimensions[containerInd]._ticktext[catInd];\n cats[catInd] = createCategoryModel(d, catInd, catValue, catLabel);\n }\n\n updateCategoryModel(cats[catInd], valueInd, count);\n }\n }\n\n // Compute unique\n return wrap(createParcatsModel(dimensionModels, pathModels, totalCount));\n};\n\n// Models\n// ======\n\n// Parcats Model\n// -------------\n/**\n * @typedef {Object} ParcatsModel\n * Object containing calculated information about a parcats trace\n *\n * @property {Array.} dimensions\n * Array of dimension models\n * @property {Object.} paths\n * Dictionary from category inds string (e.g. \"1,2,1,1\") to path model\n * @property {Number} maxCats\n * The maximum number of categories of any dimension in the diagram\n * @property {Number} count\n * Total number of input values\n * @property {Object} trace\n */\n\n/**\n * Create and new ParcatsModel object\n * @param {Array.} dimensions\n * @param {Object.} paths\n * @param {Number} count\n * @return {ParcatsModel}\n */\nfunction createParcatsModel(dimensions, paths, count) {\n var maxCats = dimensions\n .map(function(d) {return d.categories.length;})\n .reduce(function(v1, v2) {return Math.max(v1, v2);});\n return {dimensions: dimensions, paths: paths, trace: undefined, maxCats: maxCats, count: count};\n}\n\n// Dimension Model\n// ---------------\n/**\n * @typedef {Object} DimensionModel\n * Object containing calculated information about a single dimension\n *\n * @property {Number} dimensionInd\n * The index of this dimension among the *visible* dimensions\n * @property {Number} containerInd\n * The index of this dimension in the original dimensions container,\n * irrespective of dimension visibility\n * @property {Number} displayInd\n * The display index of this dimension (where 0 is the left most dimension)\n * @property {String} dimensionLabel\n * The label of this dimension\n * @property {Number} count\n * Total number of input values\n * @property {Array.} categories\n * @property {Number|null} dragX\n * The x position of dimension that is currently being dragged. null if not being dragged\n */\n\n/**\n * Create and new DimensionModel object with an empty categories array\n * @param {Number} dimensionInd\n * @param {Number} containerInd\n * @param {Number} displayInd\n * @param {String} dimensionLabel\n * @param {Number} count\n * Total number of input values\n * @return {DimensionModel}\n */\nfunction createDimensionModel(dimensionInd, containerInd, displayInd, dimensionLabel, count) {\n return {\n dimensionInd: dimensionInd,\n containerInd: containerInd,\n displayInd: displayInd,\n dimensionLabel: dimensionLabel,\n count: count,\n categories: [],\n dragX: null\n };\n}\n\n// Category Model\n// --------------\n/**\n * @typedef {Object} CategoryModel\n * Object containing calculated information about a single category.\n *\n * @property {Number} dimensionInd\n * The index of this categories dimension\n * @property {Number} categoryInd\n * The index of this category\n * @property {Number} displayInd\n * The display index of this category (where 0 is the topmost category)\n * @property {String} categoryLabel\n * The name of this category\n * @property categoryValue: Raw value of the category\n * @property {Array} valueInds\n * Array of indices (into the original value array) of all samples in this category\n * @property {Number} count\n * The number of elements from the original array in this path\n * @property {Number|null} dragY\n * The y position of category that is currently being dragged. null if not being dragged\n */\n\n/**\n * Create and return a new CategoryModel object\n * @param {Number} dimensionInd\n * @param {Number} categoryInd\n * The display index of this category (where 0 is the topmost category)\n * @param {String} categoryValue\n * @param {String} categoryLabel\n * @return {CategoryModel}\n */\nfunction createCategoryModel(dimensionInd, categoryInd, categoryValue, categoryLabel) {\n return {\n dimensionInd: dimensionInd,\n categoryInd: categoryInd,\n categoryValue: categoryValue,\n displayInd: categoryInd,\n categoryLabel: categoryLabel,\n valueInds: [],\n count: 0,\n dragY: null\n };\n}\n\n/**\n * Update a CategoryModel object with a new value index\n * Note: The calling parameter is modified in place.\n *\n * @param {CategoryModel} categoryModel\n * @param {Number} valueInd\n * @param {Number} count\n */\nfunction updateCategoryModel(categoryModel, valueInd, count) {\n categoryModel.valueInds.push(valueInd);\n categoryModel.count += count;\n}\n\n\n// Path Model\n// ----------\n/**\n * @typedef {Object} PathModel\n * Object containing calculated information about the samples in a path.\n *\n * @property {Array} categoryInds\n * Array of category indices for each dimension (length `numDimensions`)\n * @param {String} pathColor\n * Color of this path. (Note: Any colorscaling has already taken place)\n * @property {Array} valueInds\n * Array of indices (into the original value array) of all samples in this path\n * @property {Number} count\n * The number of elements from the original array in this path\n * @property {String} color\n * The path's color (ass CSS color string)\n * @property rawColor\n * The raw color value specified by the user. May be a CSS color string or a Number\n */\n\n/**\n * Create and return a new PathModel object\n * @param {Array} categoryInds\n * @param color\n * @param rawColor\n * @return {PathModel}\n */\nfunction createPathModel(categoryInds, color, rawColor) {\n return {\n categoryInds: categoryInds,\n color: color,\n rawColor: rawColor,\n valueInds: [],\n count: 0\n };\n}\n\n/**\n * Update a PathModel object with a new value index\n * Note: The calling parameter is modified in place.\n *\n * @param {PathModel} pathModel\n * @param {Number} valueInd\n * @param {Number} count\n */\nfunction updatePathModel(pathModel, valueInd, count) {\n pathModel.valueInds.push(valueInd);\n pathModel.count += count;\n}\n\n// Unique calculations\n// ===================\n/**\n * @typedef {Object} UniqueInfo\n * Object containing information about the unique values of an input array\n *\n * @property {Array} uniqueValues\n * The unique values in the input array\n * @property {Array} uniqueCounts\n * The number of times each entry in uniqueValues occurs in input array.\n * This has the same length as `uniqueValues`\n * @property {Array} inds\n * Indices into uniqueValues that would reproduce original input array\n */\n\n/**\n * Compute unique value information for an array\n *\n * IMPORTANT: Note that values are considered unique\n * if their string representations are unique.\n *\n * @param {Array} values\n * @param {Array|undefined} uniqueValues\n * Array of expected unique values. The uniqueValues property of the resulting UniqueInfo object will begin with\n * these entries. Entries are included even if there are zero occurrences in the values array. Entries found in\n * the values array that are not present in uniqueValues will be included at the end of the array in the\n * UniqueInfo object.\n * @return {UniqueInfo}\n */\nfunction getUniqueInfo(values, uniqueValues) {\n // Initialize uniqueValues if not specified\n if(uniqueValues === undefined || uniqueValues === null) {\n uniqueValues = [];\n } else {\n // Shallow copy so append below doesn't alter input array\n uniqueValues = uniqueValues.map(function(e) {return e;});\n }\n\n // Initialize Variables\n var uniqueValueCounts = {};\n var uniqueValueInds = {};\n var inds = [];\n\n // Initialize uniqueValueCounts and\n uniqueValues.forEach(function(uniqueVal, valInd) {\n uniqueValueCounts[uniqueVal] = 0;\n uniqueValueInds[uniqueVal] = valInd;\n });\n\n // Compute the necessary unique info in a single pass\n for(var i = 0; i < values.length; i++) {\n var item = values[i];\n var itemInd;\n\n if(uniqueValueCounts[item] === undefined) {\n // This item has a previously unseen value\n uniqueValueCounts[item] = 1;\n itemInd = uniqueValues.push(item) - 1;\n uniqueValueInds[item] = itemInd;\n } else {\n // Increment count for this item\n uniqueValueCounts[item]++;\n itemInd = uniqueValueInds[item];\n }\n inds.push(itemInd);\n }\n\n // Build UniqueInfo\n var uniqueCounts = uniqueValues.map(function(v) { return uniqueValueCounts[v]; });\n\n return {\n uniqueValues: uniqueValues,\n uniqueCounts: uniqueCounts,\n inds: inds\n };\n}\n\n\n/**\n * Validate the requested display order for the dimensions.\n * If the display order is a permutation of 0 through dimensions.length - 1, link to _displayindex\n * Otherwise, replace the display order with the dimension order\n * @param {Object} trace\n */\nfunction validateDimensionDisplayInds(visibleDims) {\n var displayInds = visibleDims.map(function(d) { return d.displayindex; });\n var i;\n\n if(isRangePermutation(displayInds)) {\n for(i = 0; i < visibleDims.length; i++) {\n visibleDims[i]._displayindex = visibleDims[i].displayindex;\n }\n } else {\n for(i = 0; i < visibleDims.length; i++) {\n visibleDims[i]._displayindex = i;\n }\n }\n}\n\n\n/**\n * Update category properties based on the unique values found for this dimension\n * @param {Object} dim\n * @param {UniqueInfo} uniqueInfoDim\n */\nfunction validateCategoryProperties(dim, uniqueInfoDim) {\n // Update categoryarray\n dim._categoryarray = uniqueInfoDim.uniqueValues;\n\n // Handle ticktext\n if(dim.ticktext === null || dim.ticktext === undefined) {\n dim._ticktext = [];\n } else {\n // Shallow copy to avoid modifying input array\n dim._ticktext = dim.ticktext.slice();\n }\n\n // Extend ticktext with elements from uniqueInfoDim.uniqueValues\n for(var i = dim._ticktext.length; i < uniqueInfoDim.uniqueValues.length; i++) {\n dim._ticktext.push(uniqueInfoDim.uniqueValues[i]);\n }\n}\n\n/**\n * Determine whether an array contains a permutation of the integers from 0 to the array's length - 1\n * @param {Array} inds\n * @return {boolean}\n */\nfunction isRangePermutation(inds) {\n var indsSpecified = new Array(inds.length);\n\n for(var i = 0; i < inds.length; i++) {\n // Check for out of bounds\n if(inds[i] < 0 || inds[i] >= inds.length) {\n return false;\n }\n\n // Check for collisions with already specified index\n if(indsSpecified[inds[i]] !== undefined) {\n return false;\n }\n\n indsSpecified[inds[i]] = true;\n }\n\n // Nothing out of bounds and no collisions. We have a permutation\n return true;\n}\n\n},{\"../../components/colorscale/calc\":375,\"../../components/colorscale/helpers\":378,\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/filter_unique.js\":506,\"../../lib/gup\":512,\"fast-isnumeric\":190}],893:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar mergeLength = _dereq_('../parcoords/merge_length');\n\nfunction handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce) {\n coerce('line.shape');\n coerce('line.hovertemplate');\n\n var lineColor = coerce('line.color', layout.colorway[0]);\n if(hasColorscale(traceIn, 'line') && Lib.isArrayOrTypedArray(lineColor)) {\n if(lineColor.length) {\n coerce('line.colorscale');\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'line.', cLetter: 'c'});\n return lineColor.length;\n } else {\n traceOut.line.color = defaultColor;\n }\n }\n return Infinity;\n}\n\nfunction dimensionDefaults(dimensionIn, dimensionOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(dimensionIn, dimensionOut, attributes.dimensions, attr, dflt);\n }\n\n var values = coerce('values');\n var visible = coerce('visible');\n if(!(values && values.length)) {\n visible = dimensionOut.visible = false;\n }\n\n if(visible) {\n // Dimension level\n coerce('label');\n coerce('displayindex', dimensionOut._index);\n\n // Category level\n var arrayIn = dimensionIn.categoryarray;\n var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);\n\n var orderDefault;\n if(isValidArray) orderDefault = 'array';\n var order = coerce('categoryorder', orderDefault);\n\n // coerce 'categoryarray' only in array order case\n if(order === 'array') {\n coerce('categoryarray');\n coerce('ticktext');\n } else {\n delete dimensionIn.categoryarray;\n delete dimensionIn.ticktext;\n }\n\n // cannot set 'categoryorder' to 'array' with an invalid 'categoryarray'\n if(!isValidArray && order === 'array') {\n dimensionOut.categoryorder = 'trace';\n }\n }\n}\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var dimensions = handleArrayContainerDefaults(traceIn, traceOut, {\n name: 'dimensions',\n handleItemDefaults: dimensionDefaults\n });\n\n var len = handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n if(!Array.isArray(dimensions) || !dimensions.length) {\n traceOut.visible = false;\n }\n\n mergeLength(traceOut, dimensions, 'values', len);\n\n coerce('hoveron');\n coerce('hovertemplate');\n coerce('arrangement');\n coerce('bundlecolors');\n coerce('sortpaths');\n coerce('counts');\n\n var labelfontDflt = {\n family: layout.font.family,\n size: Math.round(layout.font.size),\n color: layout.font.color\n };\n\n Lib.coerceFont(coerce, 'labelfont', labelfontDflt);\n\n var categoryfontDefault = {\n family: layout.font.family,\n size: Math.round(layout.font.size / 1.2),\n color: layout.font.color\n };\n\n Lib.coerceFont(coerce, 'tickfont', categoryfontDefault);\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../components/colorscale/helpers\":378,\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/domain\":593,\"../parcoords/merge_length\":907,\"./attributes\":890}],894:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n colorbar: {\n container: 'line',\n min: 'cmin',\n max: 'cmax'\n },\n\n moduleType: 'trace',\n name: 'parcats',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['noOpacity'],\n meta: {\n }\n};\n\n},{\"./attributes\":890,\"./base_plot\":891,\"./calc\":892,\"./defaults\":893,\"./plot\":896}],895:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar interpolateNumber = _dereq_('d3-interpolate').interpolateNumber;\nvar Plotly = _dereq_('../../plot_api/plot_api');\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar Drawing = _dereq_('../../components/drawing');\nvar tinycolor = _dereq_('tinycolor2');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nfunction performPlot(parcatsModels, graphDiv, layout, svg) {\n var isStatic = graphDiv._context.staticPlot;\n\n var viewModels = parcatsModels.map(createParcatsViewModel.bind(0, graphDiv, layout));\n\n // Get (potentially empty) parcatslayer selection with bound data to single element array\n var layerSelection = svg.selectAll('g.parcatslayer').data([null]);\n\n // Initialize single parcatslayer group if it doesn't exist\n layerSelection.enter()\n .append('g')\n .attr('class', 'parcatslayer')\n .style('pointer-events', isStatic ? 'none' : 'all');\n\n // Bind data to children of layerSelection and get reference to traceSelection\n var traceSelection = layerSelection\n .selectAll('g.trace.parcats')\n .data(viewModels, key);\n\n // Initialize group for each trace/dimensions\n var traceEnter = traceSelection.enter()\n .append('g')\n .attr('class', 'trace parcats');\n\n // Update properties for each trace\n traceSelection\n .attr('transform', function(d) {\n return strTranslate(d.x, d.y);\n });\n\n // Initialize paths group\n traceEnter\n .append('g')\n .attr('class', 'paths');\n\n // Update paths transform\n var pathsSelection = traceSelection\n .select('g.paths');\n\n // Get paths selection\n var pathSelection = pathsSelection\n .selectAll('path.path')\n .data(function(d) {\n return d.paths;\n }, key);\n\n // Update existing path colors\n pathSelection\n .attr('fill', function(d) {\n return d.model.color;\n });\n\n // Create paths\n var pathSelectionEnter = pathSelection\n .enter()\n .append('path')\n .attr('class', 'path')\n .attr('stroke-opacity', 0)\n .attr('fill', function(d) {\n return d.model.color;\n })\n .attr('fill-opacity', 0);\n\n stylePathsNoHover(pathSelectionEnter);\n\n // Set path geometry\n pathSelection\n .attr('d', function(d) {\n return d.svgD;\n });\n\n // sort paths\n if(!pathSelectionEnter.empty()) {\n // Only sort paths if there has been a change.\n // Otherwise paths are already sorted or a hover operation may be in progress\n pathSelection.sort(compareRawColor);\n }\n\n // Remove any old paths\n pathSelection.exit().remove();\n\n // Path hover\n pathSelection\n .on('mouseover', mouseoverPath)\n .on('mouseout', mouseoutPath)\n .on('click', clickPath);\n\n // Initialize dimensions group\n traceEnter.append('g').attr('class', 'dimensions');\n\n // Update dimensions transform\n var dimensionsSelection = traceSelection\n .select('g.dimensions');\n\n // Get dimension selection\n var dimensionSelection = dimensionsSelection\n .selectAll('g.dimension')\n .data(function(d) {\n return d.dimensions;\n }, key);\n\n // Create dimension groups\n dimensionSelection.enter()\n .append('g')\n .attr('class', 'dimension');\n\n // Update dimension group transforms\n dimensionSelection.attr('transform', function(d) {\n return strTranslate(d.x, 0);\n });\n\n // Remove any old dimensions\n dimensionSelection.exit().remove();\n\n // Get category selection\n var categorySelection = dimensionSelection\n .selectAll('g.category')\n .data(function(d) {\n return d.categories;\n }, key);\n\n // Initialize category groups\n var categoryGroupEnterSelection = categorySelection\n .enter()\n .append('g')\n .attr('class', 'category');\n\n // Update category transforms\n categorySelection\n .attr('transform', function(d) {\n return strTranslate(0, d.y);\n });\n\n\n // Initialize rectangle\n categoryGroupEnterSelection\n .append('rect')\n .attr('class', 'catrect')\n .attr('pointer-events', 'none');\n\n\n // Update rectangle\n categorySelection.select('rect.catrect')\n .attr('fill', 'none')\n .attr('width', function(d) {\n return d.width;\n })\n .attr('height', function(d) {\n return d.height;\n });\n\n styleCategoriesNoHover(categoryGroupEnterSelection);\n\n // Initialize color band rects\n var bandSelection = categorySelection\n .selectAll('rect.bandrect')\n .data(\n /** @param {CategoryViewModel} catViewModel*/\n function(catViewModel) {\n return catViewModel.bands;\n }, key);\n\n // Raise all update bands to the top so that fading enter/exit bands will be behind\n bandSelection.each(function() {Lib.raiseToTop(this);});\n\n // Update band color\n bandSelection\n .attr('fill', function(d) {\n return d.color;\n });\n\n var bandsSelectionEnter = bandSelection.enter()\n .append('rect')\n .attr('class', 'bandrect')\n .attr('stroke-opacity', 0)\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('fill-opacity', 0);\n\n bandSelection\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('width', function(d) {\n return d.width;\n })\n .attr('height', function(d) {\n return d.height;\n })\n .attr('y', function(d) {\n return d.y;\n })\n .attr('cursor',\n /** @param {CategoryBandViewModel} bandModel*/\n function(bandModel) {\n if(bandModel.parcatsViewModel.arrangement === 'fixed') {\n return 'default';\n } else if(bandModel.parcatsViewModel.arrangement === 'perpendicular') {\n return 'ns-resize';\n } else {\n return 'move';\n }\n });\n\n styleBandsNoHover(bandsSelectionEnter);\n\n bandSelection.exit().remove();\n\n // Initialize category label\n categoryGroupEnterSelection\n .append('text')\n .attr('class', 'catlabel')\n .attr('pointer-events', 'none');\n\n var paperColor = graphDiv._fullLayout.paper_bgcolor;\n\n // Update category label\n categorySelection.select('text.catlabel')\n .attr('text-anchor',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return 'start';\n } else {\n // Place label to the left of category\n return 'end';\n }\n })\n .attr('alignment-baseline', 'middle')\n\n .style('text-shadow', svgTextUtils.makeTextShadow(paperColor))\n .style('fill', 'rgb(0, 0, 0)')\n .attr('x',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return d.width + 5;\n } else {\n // Place label to the left of category\n return -5;\n }\n })\n .attr('y', function(d) {\n return d.height / 2;\n })\n .text(function(d) {\n return d.model.categoryLabel;\n })\n .each(\n /** @param {CategoryViewModel} catModel*/\n function(catModel) {\n Drawing.font(d3.select(this), catModel.parcatsViewModel.categorylabelfont);\n svgTextUtils.convertToTspans(d3.select(this), graphDiv);\n });\n\n // Initialize dimension label\n categoryGroupEnterSelection\n .append('text')\n .attr('class', 'dimlabel');\n\n // Update dimension label\n categorySelection.select('text.dimlabel')\n .attr('text-anchor', 'middle')\n .attr('alignment-baseline', 'baseline')\n .attr('cursor',\n /** @param {CategoryViewModel} catModel*/\n function(catModel) {\n if(catModel.parcatsViewModel.arrangement === 'fixed') {\n return 'default';\n } else {\n return 'ew-resize';\n }\n })\n .attr('x', function(d) {\n return d.width / 2;\n })\n .attr('y', -5)\n .text(function(d, i) {\n if(i === 0) {\n // Add dimension label above topmost category\n return d.parcatsViewModel.model.dimensions[d.model.dimensionInd].dimensionLabel;\n } else {\n return null;\n }\n })\n .each(\n /** @param {CategoryViewModel} catModel*/\n function(catModel) {\n Drawing.font(d3.select(this), catModel.parcatsViewModel.labelfont);\n });\n\n // Category hover\n // categorySelection.select('rect.catrect')\n categorySelection.selectAll('rect.bandrect')\n .on('mouseover', mouseoverCategoryBand)\n .on('mouseout', mouseoutCategory);\n\n // Remove unused categories\n categorySelection.exit().remove();\n\n // Setup drag\n dimensionSelection.call(d3.behavior.drag()\n .origin(function(d) {\n return {x: d.x, y: 0};\n })\n .on('dragstart', dragDimensionStart)\n .on('drag', dragDimension)\n .on('dragend', dragDimensionEnd));\n\n\n // Save off selections to view models\n traceSelection.each(function(d) {\n d.traceSelection = d3.select(this);\n d.pathSelection = d3.select(this).selectAll('g.paths').selectAll('path.path');\n d.dimensionSelection = d3.select(this).selectAll('g.dimensions').selectAll('g.dimension');\n });\n\n // Remove any orphan traces\n traceSelection.exit().remove();\n}\n\n/**\n * Create / update parcat traces\n *\n * @param {Object} graphDiv\n * @param {Object} svg\n * @param {Array.} parcatsModels\n * @param {Layout} layout\n */\nmodule.exports = function(graphDiv, svg, parcatsModels, layout) {\n performPlot(parcatsModels, graphDiv, layout, svg);\n};\n\n/**\n * Function the returns the key property of an object for use with as D3 join function\n * @param d\n */\nfunction key(d) {\n return d.key;\n}\n\n /** True if a category view model is in the right-most display dimension\n * @param {CategoryViewModel} d */\nfunction catInRightDim(d) {\n var numDims = d.parcatsViewModel.dimensions.length;\n var leftDimInd = d.parcatsViewModel.dimensions[numDims - 1].model.dimensionInd;\n return d.model.dimensionInd === leftDimInd;\n}\n\n/**\n * @param {PathViewModel} a\n * @param {PathViewModel} b\n */\nfunction compareRawColor(a, b) {\n if(a.model.rawColor > b.model.rawColor) {\n return 1;\n } else if(a.model.rawColor < b.model.rawColor) {\n return -1;\n } else {\n return 0;\n }\n}\n\n/**\n * Handle path mouseover\n * @param {PathViewModel} d\n */\nfunction mouseoverPath(d) {\n if(!d.parcatsViewModel.dragDimension) {\n // We're not currently dragging\n\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n // hoverinfo is not skip, so we at least style the paths and emit interaction events\n\n // Raise path to top\n Lib.raiseToTop(this);\n\n stylePathsHover(d3.select(this));\n\n // Emit hover event\n var points = buildPointsArrayForPath(d);\n var constraints = buildConstraintsForPath(d);\n d.parcatsViewModel.graphDiv.emit('plotly_hover', {\n points: points, event: d3.event, constraints: constraints\n });\n\n // Handle hover label\n if(d.parcatsViewModel.hoverinfoItems.indexOf('none') === -1) {\n // hoverinfo is a combination of 'count' and 'probability'\n\n // Mouse\n var hoverX = d3.mouse(this)[0];\n\n // Label\n var gd = d.parcatsViewModel.graphDiv;\n var trace = d.parcatsViewModel.trace;\n var fullLayout = gd._fullLayout;\n var rootBBox = fullLayout._paperdiv.node().getBoundingClientRect();\n var graphDivBBox = d.parcatsViewModel.graphDiv.getBoundingClientRect();\n\n // Find path center in path coordinates\n var pathCenterX,\n pathCenterY,\n dimInd;\n\n for(dimInd = 0; dimInd < (d.leftXs.length - 1); dimInd++) {\n if(d.leftXs[dimInd] + d.dimWidths[dimInd] - 2 <= hoverX && hoverX <= d.leftXs[dimInd + 1] + 2) {\n var leftDim = d.parcatsViewModel.dimensions[dimInd];\n var rightDim = d.parcatsViewModel.dimensions[dimInd + 1];\n pathCenterX = (leftDim.x + leftDim.width + rightDim.x) / 2;\n pathCenterY = (d.topYs[dimInd] + d.topYs[dimInd + 1] + d.height) / 2;\n break;\n }\n }\n\n // Find path center in root coordinates\n var hoverCenterX = d.parcatsViewModel.x + pathCenterX;\n var hoverCenterY = d.parcatsViewModel.y + pathCenterY;\n\n var textColor = tinycolor.mostReadable(d.model.color, ['black', 'white']);\n\n var count = d.model.count;\n var prob = count / d.parcatsViewModel.model.count;\n var labels = {\n countLabel: count,\n probabilityLabel: prob.toFixed(3)\n };\n\n // Build hover text\n var hovertextParts = [];\n if(d.parcatsViewModel.hoverinfoItems.indexOf('count') !== -1) {\n hovertextParts.push(['Count:', labels.countLabel].join(' '));\n }\n if(d.parcatsViewModel.hoverinfoItems.indexOf('probability') !== -1) {\n hovertextParts.push(['P:', labels.probabilityLabel].join(' '));\n }\n\n var hovertext = hovertextParts.join('
');\n var mouseX = d3.mouse(gd)[0];\n\n Fx.loneHover({\n trace: trace,\n x: hoverCenterX - rootBBox.left + graphDivBBox.left,\n y: hoverCenterY - rootBBox.top + graphDivBBox.top,\n text: hovertext,\n color: d.model.color,\n borderColor: 'black',\n fontFamily: 'Monaco, \"Courier New\", monospace',\n fontSize: 10,\n fontColor: textColor,\n idealAlign: mouseX < hoverCenterX ? 'right' : 'left',\n hovertemplate: (trace.line || {}).hovertemplate,\n hovertemplateLabels: labels,\n eventData: [{\n data: trace._input,\n fullData: trace,\n count: count,\n probability: prob\n }]\n }, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n }\n }\n }\n}\n\n/**\n * Handle path mouseout\n * @param {PathViewModel} d\n */\nfunction mouseoutPath(d) {\n if(!d.parcatsViewModel.dragDimension) {\n // We're not currently dragging\n stylePathsNoHover(d3.select(this));\n\n // Remove and hover label\n Fx.loneUnhover(d.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node());\n\n // Restore path order\n d.parcatsViewModel.pathSelection.sort(compareRawColor);\n\n // Emit unhover event\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n var points = buildPointsArrayForPath(d);\n var constraints = buildConstraintsForPath(d);\n d.parcatsViewModel.graphDiv.emit('plotly_unhover', {\n points: points, event: d3.event, constraints: constraints\n });\n }\n }\n}\n\n/**\n * Build array of point objects for a path\n *\n * For use in click/hover events\n * @param {PathViewModel} d\n */\nfunction buildPointsArrayForPath(d) {\n var points = [];\n var curveNumber = getTraceIndex(d.parcatsViewModel);\n\n for(var i = 0; i < d.model.valueInds.length; i++) {\n var pointNumber = d.model.valueInds[i];\n points.push({\n curveNumber: curveNumber,\n pointNumber: pointNumber\n });\n }\n return points;\n}\n\n/**\n * Build constraints object for a path\n *\n * For use in click/hover events\n * @param {PathViewModel} d\n */\nfunction buildConstraintsForPath(d) {\n var constraints = {};\n var dimensions = d.parcatsViewModel.model.dimensions;\n\n // dimensions\n for(var i = 0; i < dimensions.length; i++) {\n var dimension = dimensions[i];\n var category = dimension.categories[d.model.categoryInds[i]];\n constraints[dimension.containerInd] = category.categoryValue;\n }\n\n // color\n if(d.model.rawColor !== undefined) {\n constraints.color = d.model.rawColor;\n }\n return constraints;\n}\n\n/**\n * Handle path click\n * @param {PathViewModel} d\n */\nfunction clickPath(d) {\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n // hoverinfo it's skip, so interaction events aren't disabled\n var points = buildPointsArrayForPath(d);\n var constraints = buildConstraintsForPath(d);\n d.parcatsViewModel.graphDiv.emit('plotly_click', {\n points: points, event: d3.event, constraints: constraints\n });\n }\n}\n\nfunction stylePathsNoHover(pathSelection) {\n pathSelection\n .attr('fill', function(d) {\n return d.model.color;\n })\n .attr('fill-opacity', 0.6)\n .attr('stroke', 'lightgray')\n .attr('stroke-width', 0.2)\n .attr('stroke-opacity', 1.0);\n}\n\nfunction stylePathsHover(pathSelection) {\n pathSelection\n .attr('fill-opacity', 0.8)\n .attr('stroke', function(d) {\n return tinycolor.mostReadable(d.model.color, ['black', 'white']);\n })\n .attr('stroke-width', 0.3);\n}\n\nfunction styleCategoryHover(categorySelection) {\n categorySelection\n .select('rect.catrect')\n .attr('stroke', 'black')\n .attr('stroke-width', 2.5);\n}\n\nfunction styleCategoriesNoHover(categorySelection) {\n categorySelection\n .select('rect.catrect')\n .attr('stroke', 'black')\n .attr('stroke-width', 1)\n .attr('stroke-opacity', 1);\n}\n\nfunction styleBandsHover(bandsSelection) {\n bandsSelection\n .attr('stroke', 'black')\n .attr('stroke-width', 1.5);\n}\n\nfunction styleBandsNoHover(bandsSelection) {\n bandsSelection\n .attr('stroke', 'black')\n .attr('stroke-width', 0.2)\n .attr('stroke-opacity', 1.0)\n .attr('fill-opacity', 1.0);\n}\n\n/**\n * Return selection of all paths that pass through the specified category\n * @param {CategoryBandViewModel} catBandViewModel\n */\nfunction selectPathsThroughCategoryBandColor(catBandViewModel) {\n var allPaths = catBandViewModel.parcatsViewModel.pathSelection;\n var dimInd = catBandViewModel.categoryViewModel.model.dimensionInd;\n var catInd = catBandViewModel.categoryViewModel.model.categoryInd;\n\n return allPaths\n .filter(\n /** @param {PathViewModel} pathViewModel */\n function(pathViewModel) {\n return pathViewModel.model.categoryInds[dimInd] === catInd &&\n pathViewModel.model.color === catBandViewModel.color;\n });\n}\n\n\n/**\n * Perform hover styling for all paths that pass though the specified band element's category\n *\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction styleForCategoryHovermode(bandElement) {\n // Get all bands in the current category\n var bandSel = d3.select(bandElement.parentNode).selectAll('rect.bandrect');\n\n // Raise and style paths\n bandSel.each(function(bvm) {\n var paths = selectPathsThroughCategoryBandColor(bvm);\n stylePathsHover(paths);\n paths.each(function() {\n // Raise path to top\n Lib.raiseToTop(this);\n });\n });\n\n // Style category\n styleCategoryHover(d3.select(bandElement.parentNode));\n}\n\n/**\n * Perform hover styling for all paths that pass though the category of the specified band element and share the\n * same color\n *\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction styleForColorHovermode(bandElement) {\n var bandViewModel = d3.select(bandElement).datum();\n var catPaths = selectPathsThroughCategoryBandColor(bandViewModel);\n stylePathsHover(catPaths);\n catPaths.each(function() {\n // Raise path to top\n Lib.raiseToTop(this);\n });\n\n // Style category for drag\n d3.select(bandElement.parentNode)\n .selectAll('rect.bandrect')\n .filter(function(b) {return b.color === bandViewModel.color;})\n .each(function() {\n Lib.raiseToTop(this);\n styleBandsHover(d3.select(this));\n });\n}\n\n\n/**\n * @param {HTMLElement} bandElement\n * HTML element for band\n * @param eventName\n * Event name (plotly_hover or plotly_click)\n * @param event\n * Mouse Event\n */\nfunction emitPointsEventCategoryHovermode(bandElement, eventName, event) {\n // Get all bands in the current category\n var bandViewModel = d3.select(bandElement).datum();\n var categoryModel = bandViewModel.categoryViewModel.model;\n var gd = bandViewModel.parcatsViewModel.graphDiv;\n var bandSel = d3.select(bandElement.parentNode).selectAll('rect.bandrect');\n\n var points = [];\n bandSel.each(function(bvm) {\n var paths = selectPathsThroughCategoryBandColor(bvm);\n paths.each(function(pathViewModel) {\n // Extend points array\n Array.prototype.push.apply(points, buildPointsArrayForPath(pathViewModel));\n });\n });\n\n var constraints = {};\n constraints[categoryModel.dimensionInd] = categoryModel.categoryValue;\n gd.emit(eventName, {\n points: points, event: event, constraints: constraints\n });\n}\n\n/**\n * @param {HTMLElement} bandElement\n * HTML element for band\n * @param eventName\n * Event name (plotly_hover or plotly_click)\n * @param event\n * Mouse Event\n */\nfunction emitPointsEventColorHovermode(bandElement, eventName, event) {\n var bandViewModel = d3.select(bandElement).datum();\n var categoryModel = bandViewModel.categoryViewModel.model;\n var gd = bandViewModel.parcatsViewModel.graphDiv;\n var paths = selectPathsThroughCategoryBandColor(bandViewModel);\n\n var points = [];\n paths.each(function(pathViewModel) {\n // Extend points array\n Array.prototype.push.apply(points, buildPointsArrayForPath(pathViewModel));\n });\n\n var constraints = {};\n constraints[categoryModel.dimensionInd] = categoryModel.categoryValue;\n // color\n if(bandViewModel.rawColor !== undefined) {\n constraints.color = bandViewModel.rawColor;\n }\n gd.emit(eventName, {\n points: points, event: event, constraints: constraints\n });\n}\n\n/**\n * Create hover label for a band element's category (for use when hoveron === 'category')\n *\n * @param {ClientRect} rootBBox\n * Client bounding box for root of figure\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction createHoverLabelForCategoryHovermode(gd, rootBBox, bandElement) {\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n\n // Selections\n var rectSelection = d3.select(bandElement.parentNode).select('rect.catrect');\n var rectBoundingBox = rectSelection.node().getBoundingClientRect();\n\n // Models\n /** @type {CategoryViewModel} */\n var catViewModel = rectSelection.datum();\n var parcatsViewModel = catViewModel.parcatsViewModel;\n var dimensionModel = parcatsViewModel.model.dimensions[catViewModel.model.dimensionInd];\n var trace = parcatsViewModel.trace;\n\n // Positions\n var hoverCenterY = rectBoundingBox.top + rectBoundingBox.height / 2;\n var hoverCenterX,\n hoverLabelIdealAlign;\n\n if(parcatsViewModel.dimensions.length > 1 &&\n dimensionModel.displayInd === parcatsViewModel.dimensions.length - 1) {\n // right most dimension\n hoverCenterX = rectBoundingBox.left;\n hoverLabelIdealAlign = 'left';\n } else {\n hoverCenterX = rectBoundingBox.left + rectBoundingBox.width;\n hoverLabelIdealAlign = 'right';\n }\n\n var count = catViewModel.model.count;\n var catLabel = catViewModel.model.categoryLabel;\n var prob = count / catViewModel.parcatsViewModel.model.count;\n var labels = {\n countLabel: count,\n categoryLabel: catLabel,\n probabilityLabel: prob.toFixed(3)\n };\n\n // Hover label text\n var hoverinfoParts = [];\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('count') !== -1) {\n hoverinfoParts.push(['Count:', labels.countLabel].join(' '));\n }\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('probability') !== -1) {\n hoverinfoParts.push(['P(' + labels.categoryLabel + '):', labels.probabilityLabel].join(' '));\n }\n\n var hovertext = hoverinfoParts.join('
');\n return {\n trace: trace,\n x: scaleX * (hoverCenterX - rootBBox.left),\n y: scaleY * (hoverCenterY - rootBBox.top),\n text: hovertext,\n color: 'lightgray',\n borderColor: 'black',\n fontFamily: 'Monaco, \"Courier New\", monospace',\n fontSize: 12,\n fontColor: 'black',\n idealAlign: hoverLabelIdealAlign,\n hovertemplate: trace.hovertemplate,\n hovertemplateLabels: labels,\n eventData: [{\n data: trace._input,\n fullData: trace,\n count: count,\n category: catLabel,\n probability: prob\n }]\n };\n}\n\n/**\n * Create hover label for a band element's category (for use when hoveron === 'category')\n *\n * @param {ClientRect} rootBBox\n * Client bounding box for root of figure\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction createHoverLabelForDimensionHovermode(gd, rootBBox, bandElement) {\n var allHoverlabels = [];\n\n d3.select(bandElement.parentNode.parentNode)\n .selectAll('g.category')\n .select('rect.catrect')\n .each(function() {\n var bandNode = this;\n allHoverlabels.push(createHoverLabelForCategoryHovermode(gd, rootBBox, bandNode));\n });\n\n return allHoverlabels;\n}\n\n/**\n * Create hover labels for a band element's category (for use when hoveron === 'dimension')\n *\n * @param {ClientRect} rootBBox\n * Client bounding box for root of figure\n * @param {HTMLElement} bandElement\n * HTML element for band\n *\n */\nfunction createHoverLabelForColorHovermode(gd, rootBBox, bandElement) {\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n\n var bandBoundingBox = bandElement.getBoundingClientRect();\n\n // Models\n /** @type {CategoryBandViewModel} */\n var bandViewModel = d3.select(bandElement).datum();\n var catViewModel = bandViewModel.categoryViewModel;\n var parcatsViewModel = catViewModel.parcatsViewModel;\n var dimensionModel = parcatsViewModel.model.dimensions[catViewModel.model.dimensionInd];\n var trace = parcatsViewModel.trace;\n\n // positions\n var hoverCenterY = bandBoundingBox.y + bandBoundingBox.height / 2;\n\n var hoverCenterX,\n hoverLabelIdealAlign;\n if(parcatsViewModel.dimensions.length > 1 &&\n dimensionModel.displayInd === parcatsViewModel.dimensions.length - 1) {\n // right most dimension\n hoverCenterX = bandBoundingBox.left;\n hoverLabelIdealAlign = 'left';\n } else {\n hoverCenterX = bandBoundingBox.left + bandBoundingBox.width;\n hoverLabelIdealAlign = 'right';\n }\n\n // Labels\n var catLabel = catViewModel.model.categoryLabel;\n\n // Counts\n var totalCount = bandViewModel.parcatsViewModel.model.count;\n\n var bandColorCount = 0;\n bandViewModel.categoryViewModel.bands.forEach(function(b) {\n if(b.color === bandViewModel.color) {\n bandColorCount += b.count;\n }\n });\n\n var catCount = catViewModel.model.count;\n\n var colorCount = 0;\n parcatsViewModel.pathSelection.each(\n /** @param {PathViewModel} pathViewModel */\n function(pathViewModel) {\n if(pathViewModel.model.color === bandViewModel.color) {\n colorCount += pathViewModel.model.count;\n }\n });\n\n var pColorAndCat = bandColorCount / totalCount;\n var pCatGivenColor = bandColorCount / colorCount;\n var pColorGivenCat = bandColorCount / catCount;\n\n var labels = {\n countLabel: totalCount,\n categoryLabel: catLabel,\n probabilityLabel: pColorAndCat.toFixed(3)\n };\n\n // Hover label text\n var hoverinfoParts = [];\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('count') !== -1) {\n hoverinfoParts.push(['Count:', labels.countLabel].join(' '));\n }\n if(catViewModel.parcatsViewModel.hoverinfoItems.indexOf('probability') !== -1) {\n hoverinfoParts.push('P(color ∩ ' + catLabel + '): ' + labels.probabilityLabel);\n hoverinfoParts.push('P(' + catLabel + ' | color): ' + pCatGivenColor.toFixed(3));\n hoverinfoParts.push('P(color | ' + catLabel + '): ' + pColorGivenCat.toFixed(3));\n }\n\n var hovertext = hoverinfoParts.join('
');\n\n // Compute text color\n var textColor = tinycolor.mostReadable(bandViewModel.color, ['black', 'white']);\n\n return {\n trace: trace,\n x: scaleX * (hoverCenterX - rootBBox.left),\n y: scaleY * (hoverCenterY - rootBBox.top),\n // name: 'NAME',\n text: hovertext,\n color: bandViewModel.color,\n borderColor: 'black',\n fontFamily: 'Monaco, \"Courier New\", monospace',\n fontColor: textColor,\n fontSize: 10,\n idealAlign: hoverLabelIdealAlign,\n hovertemplate: trace.hovertemplate,\n hovertemplateLabels: labels,\n eventData: [{\n data: trace._input,\n fullData: trace,\n category: catLabel,\n count: totalCount,\n probability: pColorAndCat,\n categorycount: catCount,\n colorcount: colorCount,\n bandcolorcount: bandColorCount\n }]\n };\n}\n\n/**\n * Handle dimension mouseover\n * @param {CategoryBandViewModel} bandViewModel\n */\nfunction mouseoverCategoryBand(bandViewModel) {\n if(!bandViewModel.parcatsViewModel.dragDimension) {\n // We're not currently dragging\n\n if(bandViewModel.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n // hoverinfo is not skip, so we at least style the bands and emit interaction events\n\n // Mouse\n var mouseY = d3.mouse(this)[1];\n if(mouseY < -1) {\n // Hover is above above the category rectangle (probably the dimension title text)\n return;\n }\n\n var gd = bandViewModel.parcatsViewModel.graphDiv;\n var fullLayout = gd._fullLayout;\n var rootBBox = fullLayout._paperdiv.node().getBoundingClientRect();\n var hoveron = bandViewModel.parcatsViewModel.hoveron;\n\n /** @type {HTMLElement} */\n var bandElement = this;\n\n // Handle style and events\n if(hoveron === 'color') {\n styleForColorHovermode(bandElement);\n emitPointsEventColorHovermode(bandElement, 'plotly_hover', d3.event);\n } else {\n styleForCategoryHovermode(bandElement);\n emitPointsEventCategoryHovermode(bandElement, 'plotly_hover', d3.event);\n }\n\n // Handle hover label\n if(bandViewModel.parcatsViewModel.hoverinfoItems.indexOf('none') === -1) {\n var hoverItems;\n if(hoveron === 'category') {\n hoverItems = createHoverLabelForCategoryHovermode(gd, rootBBox, bandElement);\n } else if(hoveron === 'color') {\n hoverItems = createHoverLabelForColorHovermode(gd, rootBBox, bandElement);\n } else if(hoveron === 'dimension') {\n hoverItems = createHoverLabelForDimensionHovermode(gd, rootBBox, bandElement);\n }\n\n if(hoverItems) {\n Fx.loneHover(hoverItems, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n }\n }\n }\n }\n}\n\n\n/**\n * Handle dimension mouseover\n * @param {CategoryBandViewModel} bandViewModel\n */\nfunction mouseoutCategory(bandViewModel) {\n var parcatsViewModel = bandViewModel.parcatsViewModel;\n\n if(!parcatsViewModel.dragDimension) {\n // We're not dragging anything\n\n // Reset unhovered styles\n stylePathsNoHover(parcatsViewModel.pathSelection);\n styleCategoriesNoHover(parcatsViewModel.dimensionSelection.selectAll('g.category'));\n styleBandsNoHover(parcatsViewModel.dimensionSelection.selectAll('g.category').selectAll('rect.bandrect'));\n\n // Remove hover label\n Fx.loneUnhover(parcatsViewModel.graphDiv._fullLayout._hoverlayer.node());\n\n // Restore path order\n parcatsViewModel.pathSelection.sort(compareRawColor);\n\n // Emit unhover event\n if(parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n var hoveron = bandViewModel.parcatsViewModel.hoveron;\n var bandElement = this;\n\n // Handle style and events\n if(hoveron === 'color') {\n emitPointsEventColorHovermode(bandElement, 'plotly_unhover', d3.event);\n } else {\n emitPointsEventCategoryHovermode(bandElement, 'plotly_unhover', d3.event);\n }\n }\n }\n}\n\n\n/**\n * Handle dimension drag start\n * @param {DimensionViewModel} d\n */\nfunction dragDimensionStart(d) {\n // Check if dragging is supported\n if(d.parcatsViewModel.arrangement === 'fixed') {\n return;\n }\n\n // Save off initial drag indexes for dimension\n d.dragDimensionDisplayInd = d.model.displayInd;\n d.initialDragDimensionDisplayInds = d.parcatsViewModel.model.dimensions.map(function(d) {return d.displayInd;});\n d.dragHasMoved = false;\n\n // Check for category hit\n d.dragCategoryDisplayInd = null;\n d3.select(this)\n .selectAll('g.category')\n .select('rect.catrect')\n .each(\n /** @param {CategoryViewModel} catViewModel */\n function(catViewModel) {\n var catMouseX = d3.mouse(this)[0];\n var catMouseY = d3.mouse(this)[1];\n\n\n if(-2 <= catMouseX && catMouseX <= catViewModel.width + 2 &&\n -2 <= catMouseY && catMouseY <= catViewModel.height + 2) {\n // Save off initial drag indexes for categories\n d.dragCategoryDisplayInd = catViewModel.model.displayInd;\n d.initialDragCategoryDisplayInds = d.model.categories.map(function(c) {\n return c.displayInd;\n });\n\n // Initialize categories dragY to be the current y position\n catViewModel.model.dragY = catViewModel.y;\n\n // Raise category\n Lib.raiseToTop(this.parentNode);\n\n // Get band element\n d3.select(this.parentNode)\n .selectAll('rect.bandrect')\n /** @param {CategoryBandViewModel} bandViewModel */\n .each(function(bandViewModel) {\n if(bandViewModel.y < catMouseY && catMouseY <= bandViewModel.y + bandViewModel.height) {\n d.potentialClickBand = this;\n }\n });\n }\n });\n\n // Update toplevel drag dimension\n d.parcatsViewModel.dragDimension = d;\n\n // Remove hover label if any\n Fx.loneUnhover(d.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node());\n}\n\n/**\n * Handle dimension drag\n * @param {DimensionViewModel} d\n */\nfunction dragDimension(d) {\n // Check if dragging is supported\n if(d.parcatsViewModel.arrangement === 'fixed') {\n return;\n }\n\n d.dragHasMoved = true;\n\n if(d.dragDimensionDisplayInd === null) {\n return;\n }\n\n var dragDimInd = d.dragDimensionDisplayInd;\n var prevDimInd = dragDimInd - 1;\n var nextDimInd = dragDimInd + 1;\n\n var dragDimension = d.parcatsViewModel\n .dimensions[dragDimInd];\n\n // Update category\n if(d.dragCategoryDisplayInd !== null) {\n var dragCategory = dragDimension.categories[d.dragCategoryDisplayInd];\n\n // Update dragY by dy\n dragCategory.model.dragY += d3.event.dy;\n var categoryY = dragCategory.model.dragY;\n\n // Check for category drag swaps\n var catDisplayInd = dragCategory.model.displayInd;\n var dimCategoryViews = dragDimension.categories;\n\n var catAbove = dimCategoryViews[catDisplayInd - 1];\n var catBelow = dimCategoryViews[catDisplayInd + 1];\n\n // Check for overlap above\n if(catAbove !== undefined) {\n if(categoryY < (catAbove.y + catAbove.height / 2.0)) {\n // Swap display inds\n dragCategory.model.displayInd = catAbove.model.displayInd;\n catAbove.model.displayInd = catDisplayInd;\n }\n }\n\n if(catBelow !== undefined) {\n if((categoryY + dragCategory.height) > (catBelow.y + catBelow.height / 2.0)) {\n // Swap display inds\n dragCategory.model.displayInd = catBelow.model.displayInd;\n catBelow.model.displayInd = catDisplayInd;\n }\n }\n\n // Update category drag display index\n d.dragCategoryDisplayInd = dragCategory.model.displayInd;\n }\n\n // Update dimension position\n if(d.dragCategoryDisplayInd === null || d.parcatsViewModel.arrangement === 'freeform') {\n dragDimension.model.dragX = d3.event.x;\n\n // Check for dimension swaps\n var prevDimension = d.parcatsViewModel.dimensions[prevDimInd];\n var nextDimension = d.parcatsViewModel.dimensions[nextDimInd];\n\n if(prevDimension !== undefined) {\n if(dragDimension.model.dragX < (prevDimension.x + prevDimension.width)) {\n // Swap display inds\n dragDimension.model.displayInd = prevDimension.model.displayInd;\n prevDimension.model.displayInd = dragDimInd;\n }\n }\n\n if(nextDimension !== undefined) {\n if((dragDimension.model.dragX + dragDimension.width) > nextDimension.x) {\n // Swap display inds\n dragDimension.model.displayInd = nextDimension.model.displayInd;\n nextDimension.model.displayInd = d.dragDimensionDisplayInd;\n }\n }\n\n // Update drag display index\n d.dragDimensionDisplayInd = dragDimension.model.displayInd;\n }\n\n // Update view models\n updateDimensionViewModels(d.parcatsViewModel);\n updatePathViewModels(d.parcatsViewModel);\n\n // Update svg geometry\n updateSvgCategories(d.parcatsViewModel);\n updateSvgPaths(d.parcatsViewModel);\n}\n\n\n/**\n * Handle dimension drag end\n * @param {DimensionViewModel} d\n */\nfunction dragDimensionEnd(d) {\n // Check if dragging is supported\n if(d.parcatsViewModel.arrangement === 'fixed') {\n return;\n }\n\n if(d.dragDimensionDisplayInd === null) {\n return;\n }\n\n d3.select(this).selectAll('text').attr('font-weight', 'normal');\n\n // Compute restyle command\n // -----------------------\n var restyleData = {};\n var traceInd = getTraceIndex(d.parcatsViewModel);\n\n // ### Handle dimension reordering ###\n var finalDragDimensionDisplayInds = d.parcatsViewModel.model.dimensions.map(function(d) {return d.displayInd;});\n var anyDimsReordered = d.initialDragDimensionDisplayInds.some(function(initDimDisplay, dimInd) {\n return initDimDisplay !== finalDragDimensionDisplayInds[dimInd];\n });\n\n if(anyDimsReordered) {\n finalDragDimensionDisplayInds.forEach(function(finalDimDisplay, dimInd) {\n var containerInd = d.parcatsViewModel.model.dimensions[dimInd].containerInd;\n restyleData['dimensions[' + containerInd + '].displayindex'] = finalDimDisplay;\n });\n }\n\n // ### Handle category reordering ###\n var anyCatsReordered = false;\n if(d.dragCategoryDisplayInd !== null) {\n var finalDragCategoryDisplayInds = d.model.categories.map(function(c) {\n return c.displayInd;\n });\n\n anyCatsReordered = d.initialDragCategoryDisplayInds.some(function(initCatDisplay, catInd) {\n return initCatDisplay !== finalDragCategoryDisplayInds[catInd];\n });\n\n if(anyCatsReordered) {\n // Sort a shallow copy of the category models by display index\n var sortedCategoryModels = d.model.categories.slice().sort(\n function(a, b) { return a.displayInd - b.displayInd; });\n\n // Get new categoryarray and ticktext values\n var newCategoryArray = sortedCategoryModels.map(function(v) { return v.categoryValue; });\n var newCategoryLabels = sortedCategoryModels.map(function(v) { return v.categoryLabel; });\n\n restyleData['dimensions[' + d.model.containerInd + '].categoryarray'] = [newCategoryArray];\n restyleData['dimensions[' + d.model.containerInd + '].ticktext'] = [newCategoryLabels];\n restyleData['dimensions[' + d.model.containerInd + '].categoryorder'] = 'array';\n }\n }\n\n // Handle potential click event\n // ----------------------------\n if(d.parcatsViewModel.hoverinfoItems.indexOf('skip') === -1) {\n if(!d.dragHasMoved && d.potentialClickBand) {\n if(d.parcatsViewModel.hoveron === 'color') {\n emitPointsEventColorHovermode(d.potentialClickBand, 'plotly_click', d3.event.sourceEvent);\n } else {\n emitPointsEventCategoryHovermode(d.potentialClickBand, 'plotly_click', d3.event.sourceEvent);\n }\n }\n }\n\n // Nullify drag states\n // -------------------\n d.model.dragX = null;\n if(d.dragCategoryDisplayInd !== null) {\n var dragCategory = d.parcatsViewModel\n .dimensions[d.dragDimensionDisplayInd]\n .categories[d.dragCategoryDisplayInd];\n\n dragCategory.model.dragY = null;\n d.dragCategoryDisplayInd = null;\n }\n\n d.dragDimensionDisplayInd = null;\n d.parcatsViewModel.dragDimension = null;\n d.dragHasMoved = null;\n d.potentialClickBand = null;\n\n // Update view models\n // ------------------\n updateDimensionViewModels(d.parcatsViewModel);\n updatePathViewModels(d.parcatsViewModel);\n\n // Perform transition\n // ------------------\n var transition = d3.transition()\n .duration(300)\n .ease('cubic-in-out');\n\n transition\n .each(function() {\n updateSvgCategories(d.parcatsViewModel, true);\n updateSvgPaths(d.parcatsViewModel, true);\n })\n .each('end', function() {\n if(anyDimsReordered || anyCatsReordered) {\n // Perform restyle if the order of categories or dimensions changed\n Plotly.restyle(d.parcatsViewModel.graphDiv, restyleData, [traceInd]);\n }\n });\n}\n\n/**\n *\n * @param {ParcatsViewModel} parcatsViewModel\n */\nfunction getTraceIndex(parcatsViewModel) {\n var traceInd;\n var allTraces = parcatsViewModel.graphDiv._fullData;\n for(var i = 0; i < allTraces.length; i++) {\n if(parcatsViewModel.key === allTraces[i].uid) {\n traceInd = i;\n break;\n }\n }\n return traceInd;\n}\n\n/** Update the svg paths for view model\n * @param {ParcatsViewModel} parcatsViewModel\n * @param {boolean} hasTransition Whether to update element with transition\n */\nfunction updateSvgPaths(parcatsViewModel, hasTransition) {\n if(hasTransition === undefined) {\n hasTransition = false;\n }\n\n function transition(selection) {\n return hasTransition ? selection.transition() : selection;\n }\n\n // Update binding\n parcatsViewModel.pathSelection.data(function(d) {\n return d.paths;\n }, key);\n\n // Update paths\n transition(parcatsViewModel.pathSelection).attr('d', function(d) {\n return d.svgD;\n });\n}\n\n/** Update the svg paths for view model\n * @param {ParcatsViewModel} parcatsViewModel\n * @param {boolean} hasTransition Whether to update element with transition\n */\nfunction updateSvgCategories(parcatsViewModel, hasTransition) {\n if(hasTransition === undefined) {\n hasTransition = false;\n }\n\n function transition(selection) {\n return hasTransition ? selection.transition() : selection;\n }\n\n // Update binding\n parcatsViewModel.dimensionSelection\n .data(function(d) {\n return d.dimensions;\n }, key);\n\n var categorySelection = parcatsViewModel.dimensionSelection\n .selectAll('g.category')\n .data(function(d) {return d.categories;}, key);\n\n // Update dimension position\n transition(parcatsViewModel.dimensionSelection)\n .attr('transform', function(d) {\n return strTranslate(d.x, 0);\n });\n\n // Update category position\n transition(categorySelection)\n .attr('transform', function(d) {\n return strTranslate(0, d.y);\n });\n\n var dimLabelSelection = categorySelection.select('.dimlabel');\n\n // ### Update dimension label\n // Only the top-most display category should have the dimension label\n dimLabelSelection\n .text(function(d, i) {\n if(i === 0) {\n // Add dimension label above topmost category\n return d.parcatsViewModel.model.dimensions[d.model.dimensionInd].dimensionLabel;\n } else {\n return null;\n }\n });\n\n // Update category label\n // Categories in the right-most display dimension have their labels on\n // the right, all others on the left\n var catLabelSelection = categorySelection.select('.catlabel');\n catLabelSelection\n .attr('text-anchor',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return 'start';\n } else {\n // Place label to the left of category\n return 'end';\n }\n })\n .attr('x',\n function(d) {\n if(catInRightDim(d)) {\n // Place label to the right of category\n return d.width + 5;\n } else {\n // Place label to the left of category\n return -5;\n }\n })\n .each(function(d) {\n // Update attriubutes of elements\n var newX;\n var newAnchor;\n if(catInRightDim(d)) {\n // Place label to the right of category\n newX = d.width + 5;\n newAnchor = 'start';\n } else {\n // Place label to the left of category\n newX = -5;\n newAnchor = 'end';\n }\n d3.select(this)\n .selectAll('tspan')\n .attr('x', newX)\n .attr('text-anchor', newAnchor);\n });\n\n // Update bands\n // Initialize color band rects\n var bandSelection = categorySelection\n .selectAll('rect.bandrect')\n .data(\n /** @param {CategoryViewModel} catViewModel*/\n function(catViewModel) {\n return catViewModel.bands;\n }, key);\n\n var bandsSelectionEnter = bandSelection.enter()\n .append('rect')\n .attr('class', 'bandrect')\n .attr('cursor', 'move')\n .attr('stroke-opacity', 0)\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('fill-opacity', 0);\n\n bandSelection\n .attr('fill', function(d) {\n return d.color;\n })\n .attr('width', function(d) {\n return d.width;\n })\n .attr('height', function(d) {\n return d.height;\n })\n .attr('y', function(d) {\n return d.y;\n });\n\n styleBandsNoHover(bandsSelectionEnter);\n\n // Raise bands to the top\n bandSelection.each(function() {Lib.raiseToTop(this);});\n\n // Remove unused bands\n bandSelection.exit().remove();\n}\n\n/**\n * Create a ParcatsViewModel traces\n * @param {Object} graphDiv\n * Top-level graph div element\n * @param {Layout} layout\n * SVG layout object\n * @param {Array.} wrappedParcatsModel\n * Wrapped ParcatsModel for this trace\n * @return {ParcatsViewModel}\n */\nfunction createParcatsViewModel(graphDiv, layout, wrappedParcatsModel) {\n // Unwrap model\n var parcatsModel = wrappedParcatsModel[0];\n\n // Compute margin\n var margin = layout.margin || {l: 80, r: 80, t: 100, b: 80};\n\n // Compute pixel position/extents\n var trace = parcatsModel.trace;\n var domain = trace.domain;\n var figureWidth = layout.width;\n var figureHeight = layout.height;\n var traceWidth = Math.floor(figureWidth * (domain.x[1] - domain.x[0]));\n var traceHeight = Math.floor(figureHeight * (domain.y[1] - domain.y[0]));\n var traceX = domain.x[0] * figureWidth + margin.l;\n var traceY = layout.height - domain.y[1] * layout.height + margin.t;\n\n // Handle path shape\n // -----------------\n var pathShape = trace.line.shape;\n\n // Handle hover info\n // -----------------\n var hoverinfoItems;\n if(trace.hoverinfo === 'all') {\n hoverinfoItems = ['count', 'probability'];\n } else {\n hoverinfoItems = (trace.hoverinfo || '').split('+');\n }\n\n // Construct parcatsViewModel\n // --------------------------\n var parcatsViewModel = {\n trace: trace,\n key: trace.uid,\n model: parcatsModel,\n x: traceX,\n y: traceY,\n width: traceWidth,\n height: traceHeight,\n hoveron: trace.hoveron,\n hoverinfoItems: hoverinfoItems,\n arrangement: trace.arrangement,\n bundlecolors: trace.bundlecolors,\n sortpaths: trace.sortpaths,\n labelfont: trace.labelfont,\n categorylabelfont: trace.tickfont,\n pathShape: pathShape,\n dragDimension: null,\n margin: margin,\n paths: [],\n dimensions: [],\n graphDiv: graphDiv,\n traceSelection: null,\n pathSelection: null,\n dimensionSelection: null\n };\n\n // Update dimension view models if we have at least 1 dimension\n if(parcatsModel.dimensions) {\n updateDimensionViewModels(parcatsViewModel);\n\n // Update path view models if we have at least 2 dimensions\n updatePathViewModels(parcatsViewModel);\n }\n // Inside a categories view model\n return parcatsViewModel;\n}\n\n/**\n * Build the SVG string to represents a parallel categories path\n * @param {Array.} leftXPositions\n * Array of the x positions of the left edge of each dimension (in display order)\n * @param {Array.} pathYs\n * Array of the y positions of the top of the path at each dimension (in display order)\n * @param {Array.} dimWidths\n * Array of the widths of each dimension in display order\n * @param {Number} pathHeight\n * The height of the path in pixels\n * @param {Number} curvature\n * The curvature factor for the path. 0 results in a straight line and values greater than zero result in curved paths\n * @return {string}\n */\nfunction buildSvgPath(leftXPositions, pathYs, dimWidths, pathHeight, curvature) {\n // Compute the x midpoint of each path segment\n var xRefPoints1 = [];\n var xRefPoints2 = [];\n var refInterpolator;\n var d;\n\n for(d = 0; d < dimWidths.length - 1; d++) {\n refInterpolator = interpolateNumber(dimWidths[d] + leftXPositions[d], leftXPositions[d + 1]);\n xRefPoints1.push(refInterpolator(curvature));\n xRefPoints2.push(refInterpolator(1 - curvature));\n }\n\n // Move to top of path on left edge of left-most category\n var svgD = 'M ' + leftXPositions[0] + ',' + pathYs[0];\n\n // Horizontal line to right edge\n svgD += 'l' + dimWidths[0] + ',0 ';\n\n // Horizontal line to right edge\n for(d = 1; d < dimWidths.length; d++) {\n // Curve to left edge of category\n svgD += 'C' + xRefPoints1[d - 1] + ',' + pathYs[d - 1] +\n ' ' + xRefPoints2[d - 1] + ',' + pathYs[d] +\n ' ' + leftXPositions[d] + ',' + pathYs[d];\n\n // svgD += 'L' + leftXPositions[d] + ',' + pathYs[d];\n\n // Horizontal line to right edge\n svgD += 'l' + dimWidths[d] + ',0 ';\n }\n\n // Line down\n svgD += 'l' + '0,' + pathHeight + ' ';\n\n // Line to left edge of right-most category\n svgD += 'l -' + dimWidths[dimWidths.length - 1] + ',0 ';\n\n for(d = dimWidths.length - 2; d >= 0; d--) {\n // Curve to right edge of category\n svgD += 'C' + xRefPoints2[d] + ',' + (pathYs[d + 1] + pathHeight) +\n ' ' + xRefPoints1[d] + ',' + (pathYs[d] + pathHeight) +\n ' ' + (leftXPositions[d] + dimWidths[d]) + ',' + (pathYs[d] + pathHeight);\n\n // svgD += 'L' + (leftXPositions[d] + dimWidths[d]) + ',' + (pathYs[d] + pathHeight);\n\n // Horizontal line to right edge\n svgD += 'l-' + dimWidths[d] + ',0 ';\n }\n\n // Close path\n svgD += 'Z';\n return svgD;\n}\n\n/**\n * Update the path view models based on the dimension view models in a ParcatsViewModel\n *\n * @param {ParcatsViewModel} parcatsViewModel\n * View model for trace\n */\nfunction updatePathViewModels(parcatsViewModel) {\n // Initialize an array of the y position of the top of the next path to be added to each category.\n //\n // nextYPositions[d][c] is the y position of the next path through category with index c of dimension with index d\n var dimensionViewModels = parcatsViewModel.dimensions;\n var parcatsModel = parcatsViewModel.model;\n var nextYPositions = dimensionViewModels.map(\n function(d) {\n return d.categories.map(\n function(c) {\n return c.y;\n });\n });\n\n // Array from category index to category display index for each true dimension index\n var catToDisplayIndPerDim = parcatsViewModel.model.dimensions.map(\n function(d) {\n return d.categories.map(function(c) {return c.displayInd;});\n });\n\n // Array from true dimension index to dimension display index\n var dimToDisplayInd = parcatsViewModel.model.dimensions.map(function(d) {return d.displayInd;});\n var displayToDimInd = parcatsViewModel.dimensions.map(function(d) {return d.model.dimensionInd;});\n\n // Array of the x position of the left edge of the rectangles for each dimension\n var leftXPositions = dimensionViewModels.map(\n function(d) {\n return d.x;\n });\n\n // Compute dimension widths\n var dimWidths = dimensionViewModels.map(function(d) {return d.width;});\n\n // Build sorted Array of PathModel objects\n var pathModels = [];\n for(var p in parcatsModel.paths) {\n if(parcatsModel.paths.hasOwnProperty(p)) {\n pathModels.push(parcatsModel.paths[p]);\n }\n }\n\n // Compute category display inds to use for sorting paths\n function pathDisplayCategoryInds(pathModel) {\n var dimensionInds = pathModel.categoryInds.map(function(catInd, dimInd) {return catToDisplayIndPerDim[dimInd][catInd];});\n var displayInds = displayToDimInd.map(function(dimInd) {\n return dimensionInds[dimInd];\n });\n return displayInds;\n }\n\n // Sort in ascending order by display index array\n pathModels.sort(function(v1, v2) {\n // Build display inds for each path\n var sortArray1 = pathDisplayCategoryInds(v1);\n var sortArray2 = pathDisplayCategoryInds(v2);\n\n // Handle path sort order\n if(parcatsViewModel.sortpaths === 'backward') {\n sortArray1.reverse();\n sortArray2.reverse();\n }\n\n // Append the first value index of the path to break ties\n sortArray1.push(v1.valueInds[0]);\n sortArray2.push(v2.valueInds[0]);\n\n // Handle color bundling\n if(parcatsViewModel.bundlecolors) {\n // Prepend sort array with the raw color value\n sortArray1.unshift(v1.rawColor);\n sortArray2.unshift(v2.rawColor);\n }\n\n // colors equal, sort by display categories\n if(sortArray1 < sortArray2) {\n return -1;\n }\n if(sortArray1 > sortArray2) {\n return 1;\n }\n\n return 0;\n });\n\n // Create path models\n var pathViewModels = new Array(pathModels.length);\n var totalCount = dimensionViewModels[0].model.count;\n var totalHeight = dimensionViewModels[0].categories\n .map(function(c) { return c.height; })\n .reduce(function(v1, v2) { return v1 + v2; });\n\n\n for(var pathNumber = 0; pathNumber < pathModels.length; pathNumber++) {\n var pathModel = pathModels[pathNumber];\n\n var pathHeight;\n if(totalCount > 0) {\n pathHeight = totalHeight * (pathModel.count / totalCount);\n } else {\n pathHeight = 0;\n }\n\n // Build path y coords\n var pathYs = new Array(nextYPositions.length);\n for(var d = 0; d < pathModel.categoryInds.length; d++) {\n var catInd = pathModel.categoryInds[d];\n var catDisplayInd = catToDisplayIndPerDim[d][catInd];\n var dimDisplayInd = dimToDisplayInd[d];\n\n // Update next y position\n pathYs[dimDisplayInd] = nextYPositions[dimDisplayInd][catDisplayInd];\n nextYPositions[dimDisplayInd][catDisplayInd] += pathHeight;\n\n // Update category color information\n var catViewModle = parcatsViewModel.dimensions[dimDisplayInd].categories[catDisplayInd];\n var numBands = catViewModle.bands.length;\n var lastCatBand = catViewModle.bands[numBands - 1];\n\n if(lastCatBand === undefined || pathModel.rawColor !== lastCatBand.rawColor) {\n // Create a new band\n var bandY = lastCatBand === undefined ? 0 : lastCatBand.y + lastCatBand.height;\n catViewModle.bands.push({\n key: bandY,\n color: pathModel.color,\n rawColor: pathModel.rawColor,\n height: pathHeight,\n width: catViewModle.width,\n count: pathModel.count,\n y: bandY,\n categoryViewModel: catViewModle,\n parcatsViewModel: parcatsViewModel\n });\n } else {\n // Extend current band\n var currentBand = catViewModle.bands[numBands - 1];\n currentBand.height += pathHeight;\n currentBand.count += pathModel.count;\n }\n }\n\n // build svg path\n var svgD;\n if(parcatsViewModel.pathShape === 'hspline') {\n svgD = buildSvgPath(leftXPositions, pathYs, dimWidths, pathHeight, 0.5);\n } else {\n svgD = buildSvgPath(leftXPositions, pathYs, dimWidths, pathHeight, 0);\n }\n\n pathViewModels[pathNumber] = {\n key: pathModel.valueInds[0],\n model: pathModel,\n height: pathHeight,\n leftXs: leftXPositions,\n topYs: pathYs,\n dimWidths: dimWidths,\n svgD: svgD,\n parcatsViewModel: parcatsViewModel\n };\n }\n\n parcatsViewModel.paths = pathViewModels;\n\n // * @property key\n // * Unique key for this model\n // * @property {PathModel} model\n // * Source path model\n // * @property {Number} height\n // * Height of this path (pixels)\n // * @property {String} svgD\n // * SVG path \"d\" attribute string\n}\n\n/**\n * Update the dimension view models based on the dimension models in a ParcatsViewModel\n *\n * @param {ParcatsViewModel} parcatsViewModel\n * View model for trace\n */\nfunction updateDimensionViewModels(parcatsViewModel) {\n // Compute dimension ordering\n var dimensionsIndInfo = parcatsViewModel.model.dimensions.map(function(d) {\n return {displayInd: d.displayInd, dimensionInd: d.dimensionInd};\n });\n\n dimensionsIndInfo.sort(function(a, b) {\n return a.displayInd - b.displayInd;\n });\n\n var dimensions = [];\n for(var displayInd in dimensionsIndInfo) {\n var dimensionInd = dimensionsIndInfo[displayInd].dimensionInd;\n var dimModel = parcatsViewModel.model.dimensions[dimensionInd];\n dimensions.push(createDimensionViewModel(parcatsViewModel, dimModel));\n }\n\n parcatsViewModel.dimensions = dimensions;\n}\n\n/**\n * Create a parcats DimensionViewModel\n *\n * @param {ParcatsViewModel} parcatsViewModel\n * View model for trace\n * @param {DimensionModel} dimensionModel\n * @return {DimensionViewModel}\n */\nfunction createDimensionViewModel(parcatsViewModel, dimensionModel) {\n // Compute dimension x position\n var categoryLabelPad = 40;\n var dimWidth = 16;\n var numDimensions = parcatsViewModel.model.dimensions.length;\n var displayInd = dimensionModel.displayInd;\n\n // Compute x coordinate values\n var dimDx;\n var dimX0;\n var dimX;\n\n if(numDimensions > 1) {\n dimDx = (parcatsViewModel.width - 2 * categoryLabelPad - dimWidth) / (numDimensions - 1);\n } else {\n dimDx = 0;\n }\n dimX0 = categoryLabelPad;\n dimX = dimX0 + dimDx * displayInd;\n\n // Compute categories\n var categories = [];\n var maxCats = parcatsViewModel.model.maxCats;\n var numCats = dimensionModel.categories.length;\n var catSpacing = 8;\n var totalCount = dimensionModel.count;\n var totalHeight = parcatsViewModel.height - catSpacing * (maxCats - 1);\n var nextCatHeight;\n var nextCatModel;\n var nextCat;\n var catInd;\n var catDisplayInd;\n\n // Compute starting Y offset\n var nextCatY = (maxCats - numCats) * catSpacing / 2.0;\n\n // Compute category ordering\n var categoryIndInfo = dimensionModel.categories.map(function(c) {\n return {displayInd: c.displayInd, categoryInd: c.categoryInd};\n });\n\n categoryIndInfo.sort(function(a, b) {\n return a.displayInd - b.displayInd;\n });\n\n for(catDisplayInd = 0; catDisplayInd < numCats; catDisplayInd++) {\n catInd = categoryIndInfo[catDisplayInd].categoryInd;\n nextCatModel = dimensionModel.categories[catInd];\n\n if(totalCount > 0) {\n nextCatHeight = (nextCatModel.count / totalCount) * totalHeight;\n } else {\n nextCatHeight = 0;\n }\n\n nextCat = {\n key: nextCatModel.valueInds[0],\n model: nextCatModel,\n width: dimWidth,\n height: nextCatHeight,\n y: nextCatModel.dragY !== null ? nextCatModel.dragY : nextCatY,\n bands: [],\n parcatsViewModel: parcatsViewModel\n };\n\n nextCatY = nextCatY + nextCatHeight + catSpacing;\n categories.push(nextCat);\n }\n\n return {\n key: dimensionModel.dimensionInd,\n x: dimensionModel.dragX !== null ? dimensionModel.dragX : dimX,\n y: 0,\n width: dimWidth,\n model: dimensionModel,\n categories: categories,\n parcatsViewModel: parcatsViewModel,\n dragCategoryDisplayInd: null,\n dragDimensionDisplayInd: null,\n initialDragDimensionDisplayInds: null,\n initialDragCategoryDisplayInds: null,\n dragHasMoved: null,\n potentialClickBand: null\n };\n}\n\n// JSDoc typedefs\n// ==============\n/**\n * @typedef {Object} Layout\n * Object containing svg layout information\n *\n * @property {Number} width (pixels)\n * Usable width for Figure (after margins are removed)\n * @property {Number} height (pixels)\n * Usable height for Figure (after margins are removed)\n * @property {Margin} margin\n * Margin around the Figure (pixels)\n */\n\n/**\n * @typedef {Object} Margin\n * Object containing padding information in pixels\n *\n * @property {Number} t\n * Top margin\n * @property {Number} r\n * Right margin\n * @property {Number} b\n * Bottom margin\n * @property {Number} l\n * Left margin\n */\n\n/**\n * @typedef {Object} Font\n * Object containing font information\n *\n * @property {Number} size: Font size\n * @property {String} color: Font color\n * @property {String} family: Font family\n */\n\n/**\n * @typedef {Object} ParcatsViewModel\n * Object containing calculated parcats view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {ParcatsModel} model\n * Source parcats model\n * @property {Array.} dimensions\n * Array of dimension view models\n * @property {Number} width\n * Width for this trace (pixels)\n * @property {Number} height\n * Height for this trace (pixels)\n * @property {Number} x\n * X position of this trace with respect to the Figure (pixels)\n * @property {Number} y\n * Y position of this trace with respect to the Figure (pixels)\n * @property {String} hoveron\n * Hover interaction mode. One of: 'category', 'color', or 'dimension'\n * @property {Array.} hoverinfoItems\n * Info to display on hover. Array with a combination of 'counts' and/or 'probabilities', or 'none', or 'skip'\n * @property {String} arrangement\n * Category arrangement. One of: 'perpendicular', 'freeform', or 'fixed'\n * @property {Boolean} bundlecolors\n * Whether paths should be sorted so that like colors are bundled together as they pass through categories\n * @property {String} sortpaths\n * If 'forward' then sort paths based on dimensions from left to right. If 'backward' sort based on dimensions\n * from right to left\n * @property {Font} labelfont\n * Font for the dimension labels\n * @property {Font} categorylabelfont\n * Font for the category labels\n * @property {String} pathShape\n * The shape of the paths. Either 'linear' or 'hspline'.\n * @property {DimensionViewModel|null} dragDimension\n * Dimension currently being dragged. Null if no drag in progress\n * @property {Margin} margin\n * Margin around the Figure\n * @property {Object} graphDiv\n * Top-level graph div element\n * @property {Object} traceSelection\n * D3 selection of this view models trace group element\n * @property {Object} pathSelection\n * D3 selection of this view models path elements\n * @property {Object} dimensionSelection\n * D3 selection of this view models dimension group element\n */\n\n/**\n * @typedef {Object} DimensionViewModel\n * Object containing calculated parcats dimension view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {DimensionModel} model\n * Source dimension model\n * @property {Number} x\n * X position of the center of this dimension with respect to the Figure (pixels)\n * @property {Number} y\n * Y position of the top of this dimension with respect to the Figure (pixels)\n * @property {Number} width\n * Width of categories in this dimension (pixels)\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n * @property {Array.} categories\n * Dimensions category view models\n * @property {Number|null} dragCategoryDisplayInd\n * Display index of category currently being dragged. null if no category is being dragged\n * @property {Number|null} dragDimensionDisplayInd\n * Display index of the dimension being dragged. null if no dimension is being dragged\n * @property {Array.|null} initialDragDimensionDisplayInds\n * Dimensions display indexes at the beginning of the current drag. null if no dimension is being dragged\n * @property {Array.|null} initialDragCategoryDisplayInds\n * Category display indexes for the at the beginning of the current drag. null if no category is being dragged\n * @property {HTMLElement} potentialClickBand\n * Band under mouse when current drag began. If no drag movement takes place then a click will be emitted for this\n * band. Null if not drag in progress.\n * @property {Boolean} dragHasMoved\n * True if there is an active drag and the drag has moved. If drag doesn't move before being ended then\n * this may be interpreted as a click. Null if no drag in progress\n */\n\n/**\n * @typedef {Object} CategoryViewModel\n * Object containing calculated parcats category view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {CategoryModel} model\n * Source category model\n * @property {Number} width\n * Width for this category (pixels)\n * @property {Number} height\n * Height for this category (pixels)\n * @property {Number} y\n * Y position of this cateogry with respect to the Figure (pixels)\n * @property {Array.} bands\n * Array of color bands inside the category\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n */\n\n/**\n * @typedef {Object} CategoryBandViewModel\n * Object containing calculated category band information. A category band is a region inside a category covering\n * paths of a single color\n *\n * @property key\n * Unique key for this model\n * @property color\n * Band color\n * @property rawColor\n * Raw color value for band\n * @property {Number} width\n * Band width\n * @property {Number} height\n * Band height\n * @property {Number} y\n * Y position of top of the band with respect to the category\n * @property {Number} count\n * The number of samples represented by the band\n * @property {CategoryViewModel} categoryViewModel\n * The parent categorie's view model\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n */\n\n/**\n * @typedef {Object} PathViewModel\n * Object containing calculated parcats path view information\n *\n * These are quantities that require Layout information to calculate\n * @property key\n * Unique key for this model\n * @property {PathModel} model\n * Source path model\n * @property {Number} height\n * Height of this path (pixels)\n * @property {Array.} leftXs\n * The x position of the left edge of each display dimension\n * @property {Array.} topYs\n * The y position of the top of the path for each display dimension\n * @property {Array.} dimWidths\n * The width of each display dimension\n * @property {String} svgD\n * SVG path \"d\" attribute string\n * @property {ParcatsViewModel} parcatsViewModel\n * The parent trace's view model\n */\n\n},{\"../../components/drawing\":389,\"../../components/fx\":407,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plot_api/plot_api\":552,\"@plotly/d3\":58,\"d3-interpolate\":116,\"tinycolor2\":313}],896:[function(_dereq_,module,exports){\n'use strict';\n\n\nvar parcats = _dereq_('./parcats');\n\n/**\n * Create / update parcat traces\n *\n * @param {Object} graphDiv\n * @param {Array.} parcatsModels\n */\nmodule.exports = function plot(graphDiv, parcatsModels, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = graphDiv._fullLayout;\n var svg = fullLayout._paper;\n var size = fullLayout._size;\n\n parcats(\n graphDiv,\n svg,\n parcatsModels,\n {\n width: size.w,\n height: size.h,\n margin: {\n t: size.t,\n r: size.r,\n b: size.b,\n l: size.l\n }\n },\n transitionOpts,\n makeOnCompleteCallback\n );\n};\n\n},{\"./parcats\":895}],897:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axesAttrs = _dereq_('../../plots/cartesian/layout_attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\n\nmodule.exports = {\n domain: domainAttrs({name: 'parcoords', trace: true, editType: 'plot'}),\n\n labelangle: {\n valType: 'angle',\n dflt: 0,\n editType: 'plot',\n },\n\n labelside: {\n valType: 'enumerated',\n values: ['top', 'bottom'],\n dflt: 'top',\n editType: 'plot',\n },\n\n labelfont: fontAttrs({\n editType: 'plot',\n }),\n tickfont: fontAttrs({\n editType: 'plot',\n }),\n rangefont: fontAttrs({\n editType: 'plot',\n }),\n\n dimensions: templatedArray('dimension', {\n label: {\n valType: 'string',\n editType: 'plot',\n },\n // TODO: better way to determine ordinal vs continuous axes,\n // so users can use tickvals/ticktext with a continuous axis.\n tickvals: extendFlat({}, axesAttrs.tickvals, {\n editType: 'plot',\n }),\n ticktext: extendFlat({}, axesAttrs.ticktext, {\n editType: 'plot',\n }),\n tickformat: extendFlat({}, axesAttrs.tickformat, {\n editType: 'plot'\n }),\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n range: {\n valType: 'info_array',\n items: [\n {valType: 'number', editType: 'plot'},\n {valType: 'number', editType: 'plot'}\n ],\n editType: 'plot',\n },\n constraintrange: {\n valType: 'info_array',\n freeLength: true,\n dimensions: '1-2',\n items: [\n {valType: 'any', editType: 'plot'},\n {valType: 'any', editType: 'plot'}\n ],\n editType: 'plot',\n },\n multiselect: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n values: {\n valType: 'data_array',\n editType: 'calc',\n },\n editType: 'calc',\n }),\n\n line: extendFlat({editType: 'calc'},\n colorScaleAttrs('line', {\n // the default autocolorscale isn't quite usable for parcoords due to context ambiguity around 0 (grey, off-white)\n // autocolorscale therefore defaults to false too, to avoid being overridden by the blue-white-red autocolor palette\n colorscaleDflt: 'Viridis',\n autoColorDflt: false,\n editTypeOverride: 'calc'\n })\n ),\n\n unselected: {\n line: {\n color: {\n valType: 'color',\n dflt: '#7f7f7f',\n editType: 'plot',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 'auto',\n editType: 'plot',\n },\n editType: 'plot'\n },\n editType: 'plot'\n }\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/layout_attributes\":579,\"../../plots/domain\":593,\"../../plots/font_attributes\":594}],898:[function(_dereq_,module,exports){\n'use strict';\n\nvar c = _dereq_('./constants');\nvar d3 = _dereq_('@plotly/d3');\nvar keyFun = _dereq_('../../lib/gup').keyFun;\nvar repeat = _dereq_('../../lib/gup').repeat;\nvar sortAsc = _dereq_('../../lib').sorterAsc;\nvar strTranslate = _dereq_('../../lib').strTranslate;\n\nvar snapRatio = c.bar.snapRatio;\nfunction snapOvershoot(v, vAdjacent) { return v * (1 - snapRatio) + vAdjacent * snapRatio; }\n\nvar snapClose = c.bar.snapClose;\nfunction closeToCovering(v, vAdjacent) { return v * (1 - snapClose) + vAdjacent * snapClose; }\n\n// snap for the low end of a range on an ordinal scale\n// on an ordinal scale, always show some overshoot from the exact value,\n// so it's clear we're covering it\n// find the interval we're in, and snap to 1/4 the distance to the next\n// these two could be unified at a slight loss of readability / perf\nfunction ordinalScaleSnap(isHigh, a, v, existingRanges) {\n if(overlappingExisting(v, existingRanges)) return v;\n\n var dir = isHigh ? -1 : 1;\n\n var first = 0;\n var last = a.length - 1;\n if(dir < 0) {\n var tmp = first;\n first = last;\n last = tmp;\n }\n\n var aHere = a[first];\n var aPrev = aHere;\n for(var i = first; dir * i < dir * last; i += dir) {\n var nextI = i + dir;\n var aNext = a[nextI];\n\n // very close to the previous - snap down to it\n if(dir * v < dir * closeToCovering(aHere, aNext)) return snapOvershoot(aHere, aPrev);\n if(dir * v < dir * aNext || nextI === last) return snapOvershoot(aNext, aHere);\n\n aPrev = aHere;\n aHere = aNext;\n }\n}\n\nfunction overlappingExisting(v, existingRanges) {\n for(var i = 0; i < existingRanges.length; i++) {\n if(v >= existingRanges[i][0] && v <= existingRanges[i][1]) return true;\n }\n return false;\n}\n\nfunction barHorizontalSetup(selection) {\n selection\n .attr('x', -c.bar.captureWidth / 2)\n .attr('width', c.bar.captureWidth);\n}\n\nfunction backgroundBarHorizontalSetup(selection) {\n selection\n .attr('visibility', 'visible')\n .style('visibility', 'visible')\n .attr('fill', 'yellow')\n .attr('opacity', 0);\n}\n\nfunction setHighlight(d) {\n if(!d.brush.filterSpecified) {\n return '0,' + d.height;\n }\n\n var pixelRanges = unitToPx(d.brush.filter.getConsolidated(), d.height);\n var dashArray = [0]; // we start with a 0 length selection as filter ranges are inclusive, not exclusive\n var p, sectionHeight, iNext;\n var currentGap = pixelRanges.length ? pixelRanges[0][0] : null;\n for(var i = 0; i < pixelRanges.length; i++) {\n p = pixelRanges[i];\n sectionHeight = p[1] - p[0];\n dashArray.push(currentGap);\n dashArray.push(sectionHeight);\n iNext = i + 1;\n if(iNext < pixelRanges.length) {\n currentGap = pixelRanges[iNext][0] - p[1];\n }\n }\n dashArray.push(d.height);\n // d.height is added at the end to ensure that (1) we have an even number of dasharray points, MDN page says\n // \"If an odd number of values is provided, then the list of values is repeated to yield an even number of values.\"\n // and (2) it's _at least_ as long as the full height (even if range is minuscule and at the bottom) though this\n // may not be necessary, maybe duplicating the last point would do too. But no harm in a longer dasharray than line.\n return dashArray;\n}\n\nfunction unitToPx(unitRanges, height) {\n return unitRanges.map(function(pr) {\n return pr.map(function(v) { return Math.max(0, v * height); }).sort(sortAsc);\n });\n}\n\n// is the cursor over the north, middle, or south of a bar?\n// the end handles extend over the last 10% of the bar\nfunction getRegion(fPix, y) {\n var pad = c.bar.handleHeight;\n if(y > fPix[1] + pad || y < fPix[0] - pad) return;\n if(y >= 0.9 * fPix[1] + 0.1 * fPix[0]) return 'n';\n if(y <= 0.9 * fPix[0] + 0.1 * fPix[1]) return 's';\n return 'ns';\n}\n\nfunction clearCursor() {\n d3.select(document.body)\n .style('cursor', null);\n}\n\nfunction styleHighlight(selection) {\n // stroke-dasharray is used to minimize the number of created DOM nodes, because the requirement calls for up to\n // 1000 individual selections on an axis, and there can be 60 axes per parcoords, and multiple parcoords per\n // dashboard. The technique is similar to https://codepen.io/monfera/pen/rLYqWR and using a `polyline` with\n // multiple sections, or a `path` element via its `d` attribute would also be DOM-sparing alternatives.\n selection.attr('stroke-dasharray', setHighlight);\n}\n\nfunction renderHighlight(root, tweenCallback) {\n var bar = d3.select(root).selectAll('.highlight, .highlight-shadow');\n var barToStyle = tweenCallback ? bar.transition().duration(c.bar.snapDuration).each('end', tweenCallback) : bar;\n styleHighlight(barToStyle);\n}\n\nfunction getInterval(d, y) {\n var b = d.brush;\n var active = b.filterSpecified;\n var closestInterval = NaN;\n var out = {};\n var i;\n\n if(active) {\n var height = d.height;\n var intervals = b.filter.getConsolidated();\n var pixIntervals = unitToPx(intervals, height);\n var hoveredInterval = NaN;\n var previousInterval = NaN;\n var nextInterval = NaN;\n for(i = 0; i <= pixIntervals.length; i++) {\n var p = pixIntervals[i];\n if(p && p[0] <= y && y <= p[1]) {\n // over a bar\n hoveredInterval = i;\n break;\n } else {\n // between bars, or before/after the first/last bar\n previousInterval = i ? i - 1 : NaN;\n if(p && p[0] > y) {\n nextInterval = i;\n break; // no point continuing as intervals are non-overlapping and sorted; could use log search\n }\n }\n }\n\n closestInterval = hoveredInterval;\n if(isNaN(closestInterval)) {\n if(isNaN(previousInterval) || isNaN(nextInterval)) {\n closestInterval = isNaN(previousInterval) ? nextInterval : previousInterval;\n } else {\n closestInterval = (y - pixIntervals[previousInterval][1] < pixIntervals[nextInterval][0] - y) ?\n previousInterval : nextInterval;\n }\n }\n\n if(!isNaN(closestInterval)) {\n var fPix = pixIntervals[closestInterval];\n var region = getRegion(fPix, y);\n\n if(region) {\n out.interval = intervals[closestInterval];\n out.intervalPix = fPix;\n out.region = region;\n }\n }\n }\n\n if(d.ordinal && !out.region) {\n var a = d.unitTickvals;\n var unitLocation = d.unitToPaddedPx.invert(y);\n for(i = 0; i < a.length; i++) {\n var rangei = [\n a[Math.max(i - 1, 0)] * 0.25 + a[i] * 0.75,\n a[Math.min(i + 1, a.length - 1)] * 0.25 + a[i] * 0.75\n ];\n if(unitLocation >= rangei[0] && unitLocation <= rangei[1]) {\n out.clickableOrdinalRange = rangei;\n break;\n }\n }\n }\n\n return out;\n}\n\nfunction dragstart(lThis, d) {\n d3.event.sourceEvent.stopPropagation();\n var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;\n var unitLocation = d.unitToPaddedPx.invert(y);\n var b = d.brush;\n var interval = getInterval(d, y);\n var unitRange = interval.interval;\n var s = b.svgBrush;\n s.wasDragged = false; // we start assuming there won't be a drag - useful for reset\n s.grabbingBar = interval.region === 'ns';\n if(s.grabbingBar) {\n var pixelRange = unitRange.map(d.unitToPaddedPx);\n s.grabPoint = y - pixelRange[0] - c.verticalPadding;\n s.barLength = pixelRange[1] - pixelRange[0];\n }\n s.clickableOrdinalRange = interval.clickableOrdinalRange;\n s.stayingIntervals = (d.multiselect && b.filterSpecified) ? b.filter.getConsolidated() : [];\n if(unitRange) {\n s.stayingIntervals = s.stayingIntervals.filter(function(int2) {\n return int2[0] !== unitRange[0] && int2[1] !== unitRange[1];\n });\n }\n s.startExtent = interval.region ? unitRange[interval.region === 's' ? 1 : 0] : unitLocation;\n d.parent.inBrushDrag = true;\n s.brushStartCallback();\n}\n\nfunction drag(lThis, d) {\n d3.event.sourceEvent.stopPropagation();\n var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;\n var s = d.brush.svgBrush;\n s.wasDragged = true;\n s._dragging = true;\n\n if(s.grabbingBar) { // moving the bar\n s.newExtent = [y - s.grabPoint, y + s.barLength - s.grabPoint].map(d.unitToPaddedPx.invert);\n } else { // south/north drag or new bar creation\n s.newExtent = [s.startExtent, d.unitToPaddedPx.invert(y)].sort(sortAsc);\n }\n\n d.brush.filterSpecified = true;\n s.extent = s.stayingIntervals.concat([s.newExtent]);\n s.brushCallback(d);\n renderHighlight(lThis.parentNode);\n}\n\nfunction dragend(lThis, d) {\n var brush = d.brush;\n var filter = brush.filter;\n var s = brush.svgBrush;\n\n if(!s._dragging) { // i.e. click\n // mock zero drag\n mousemove(lThis, d);\n drag(lThis, d);\n // remember it is a click not a drag\n d.brush.svgBrush.wasDragged = false;\n }\n s._dragging = false;\n\n var e = d3.event;\n e.sourceEvent.stopPropagation();\n var grabbingBar = s.grabbingBar;\n s.grabbingBar = false;\n s.grabLocation = undefined;\n d.parent.inBrushDrag = false;\n clearCursor(); // instead of clearing, a nicer thing would be to set it according to current location\n if(!s.wasDragged) { // a click+release on the same spot (ie. w/o dragging) means a bar or full reset\n s.wasDragged = undefined; // logic-wise unneeded, just shows `wasDragged` has no longer a meaning\n if(s.clickableOrdinalRange) {\n if(brush.filterSpecified && d.multiselect) {\n s.extent.push(s.clickableOrdinalRange);\n } else {\n s.extent = [s.clickableOrdinalRange];\n brush.filterSpecified = true;\n }\n } else if(grabbingBar) {\n s.extent = s.stayingIntervals;\n if(s.extent.length === 0) {\n brushClear(brush);\n }\n } else {\n brushClear(brush);\n }\n s.brushCallback(d);\n renderHighlight(lThis.parentNode);\n s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []);\n return; // no need to fuse intervals or snap to ordinals, so we can bail early\n }\n\n var mergeIntervals = function() {\n // Key piece of logic: once the button is released, possibly overlapping intervals will be fused:\n // Here it's done immediately on click release while on ordinal snap transition it's done at the end\n filter.set(filter.getConsolidated());\n };\n\n if(d.ordinal) {\n var a = d.unitTickvals;\n if(a[a.length - 1] < a[0]) a.reverse();\n s.newExtent = [\n ordinalScaleSnap(0, a, s.newExtent[0], s.stayingIntervals),\n ordinalScaleSnap(1, a, s.newExtent[1], s.stayingIntervals)\n ];\n var hasNewExtent = s.newExtent[1] > s.newExtent[0];\n s.extent = s.stayingIntervals.concat(hasNewExtent ? [s.newExtent] : []);\n if(!s.extent.length) {\n brushClear(brush);\n }\n s.brushCallback(d);\n if(hasNewExtent) {\n // merging intervals post the snap tween\n renderHighlight(lThis.parentNode, mergeIntervals);\n } else {\n // if no new interval, don't animate, just redraw the highlight immediately\n mergeIntervals();\n renderHighlight(lThis.parentNode);\n }\n } else {\n mergeIntervals(); // merging intervals immediately\n }\n s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []);\n}\n\nfunction mousemove(lThis, d) {\n var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;\n var interval = getInterval(d, y);\n\n var cursor = 'crosshair';\n if(interval.clickableOrdinalRange) cursor = 'pointer';\n else if(interval.region) cursor = interval.region + '-resize';\n d3.select(document.body)\n .style('cursor', cursor);\n}\n\nfunction attachDragBehavior(selection) {\n // There's some fiddling with pointer cursor styling so that the cursor preserves its shape while dragging a brush\n // even if the cursor strays from the interacting bar, which is bound to happen as bars are thin and the user\n // will inevitably leave the hotspot strip. In this regard, it does something similar to what the D3 brush would do.\n selection\n .on('mousemove', function(d) {\n d3.event.preventDefault();\n if(!d.parent.inBrushDrag) mousemove(this, d);\n })\n .on('mouseleave', function(d) {\n if(!d.parent.inBrushDrag) clearCursor();\n })\n .call(d3.behavior.drag()\n .on('dragstart', function(d) { dragstart(this, d); })\n .on('drag', function(d) { drag(this, d); })\n .on('dragend', function(d) { dragend(this, d); })\n );\n}\n\nfunction startAsc(a, b) { return a[0] - b[0]; }\n\nfunction renderAxisBrush(axisBrush, paperColor, gd) {\n var isStatic = gd._context.staticPlot;\n\n var background = axisBrush.selectAll('.background').data(repeat);\n\n background.enter()\n .append('rect')\n .classed('background', true)\n .call(barHorizontalSetup)\n .call(backgroundBarHorizontalSetup)\n .style('pointer-events', isStatic ? 'none' : 'auto') // parent pointer events are disabled; we must have it to register events\n .attr('transform', strTranslate(0, c.verticalPadding));\n\n background\n .call(attachDragBehavior)\n .attr('height', function(d) {\n return d.height - c.verticalPadding;\n });\n\n var highlightShadow = axisBrush.selectAll('.highlight-shadow').data(repeat); // we have a set here, can't call it `extent`\n\n highlightShadow.enter()\n .append('line')\n .classed('highlight-shadow', true)\n .attr('x', -c.bar.width / 2)\n .attr('stroke-width', c.bar.width + c.bar.strokeWidth)\n .attr('stroke', paperColor)\n .attr('opacity', c.bar.strokeOpacity)\n .attr('stroke-linecap', 'butt');\n\n highlightShadow\n .attr('y1', function(d) { return d.height; })\n .call(styleHighlight);\n\n var highlight = axisBrush.selectAll('.highlight').data(repeat); // we have a set here, can't call it `extent`\n\n highlight.enter()\n .append('line')\n .classed('highlight', true)\n .attr('x', -c.bar.width / 2)\n .attr('stroke-width', c.bar.width - c.bar.strokeWidth)\n .attr('stroke', c.bar.fillColor)\n .attr('opacity', c.bar.fillOpacity)\n .attr('stroke-linecap', 'butt');\n\n highlight\n .attr('y1', function(d) { return d.height; })\n .call(styleHighlight);\n}\n\nfunction ensureAxisBrush(axisOverlays, paperColor, gd) {\n var axisBrush = axisOverlays.selectAll('.' + c.cn.axisBrush)\n .data(repeat, keyFun);\n\n axisBrush.enter()\n .append('g')\n .classed(c.cn.axisBrush, true);\n\n renderAxisBrush(axisBrush, paperColor, gd);\n}\n\nfunction getBrushExtent(brush) {\n return brush.svgBrush.extent.map(function(e) {return e.slice();});\n}\n\nfunction brushClear(brush) {\n brush.filterSpecified = false;\n brush.svgBrush.extent = [[-Infinity, Infinity]];\n}\n\nfunction axisBrushMoved(callback) {\n return function axisBrushMoved(dimension) {\n var brush = dimension.brush;\n var extent = getBrushExtent(brush);\n var newExtent = extent.slice();\n brush.filter.set(newExtent);\n callback();\n };\n}\n\nfunction dedupeRealRanges(intervals) {\n // Fuses elements of intervals if they overlap, yielding discontiguous intervals, results.length <= intervals.length\n // Currently uses closed intervals, ie. dedupeRealRanges([[400, 800], [300, 400]]) -> [300, 800]\n var queue = intervals.slice();\n var result = [];\n var currentInterval;\n var current = queue.shift();\n while(current) { // [].shift === undefined, so we don't descend into an empty array\n currentInterval = current.slice();\n while((current = queue.shift()) && current[0] <= /* right-open interval would need `<` */ currentInterval[1]) {\n currentInterval[1] = Math.max(currentInterval[1], current[1]);\n }\n result.push(currentInterval);\n }\n\n if(\n result.length === 1 &&\n result[0][0] > result[0][1]\n ) {\n // discard result\n result = [];\n }\n\n return result;\n}\n\nfunction makeFilter() {\n var filter = [];\n var consolidated;\n var bounds;\n return {\n set: function(a) {\n filter = a\n .map(function(d) { return d.slice().sort(sortAsc); })\n .sort(startAsc);\n\n // handle unselected case\n if(filter.length === 1 &&\n filter[0][0] === -Infinity &&\n filter[0][1] === Infinity) {\n filter = [[0, -1]];\n }\n\n consolidated = dedupeRealRanges(filter);\n bounds = filter.reduce(function(p, n) {\n return [Math.min(p[0], n[0]), Math.max(p[1], n[1])];\n }, [Infinity, -Infinity]);\n },\n get: function() { return filter.slice(); },\n getConsolidated: function() { return consolidated; },\n getBounds: function() { return bounds; }\n };\n}\n\nfunction makeBrush(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback) {\n var filter = makeFilter();\n filter.set(initialRange);\n return {\n filter: filter,\n filterSpecified: rangeSpecified, // there's a difference between not filtering and filtering a non-proper subset\n svgBrush: {\n extent: [], // this is where the svgBrush writes contents into\n brushStartCallback: brushStartCallback,\n brushCallback: axisBrushMoved(brushCallback),\n brushEndCallback: brushEndCallback\n }\n };\n}\n\n// for use by supplyDefaults, but it needed tons of pieces from here so\n// seemed to make more sense just to put the whole routine here\nfunction cleanRanges(ranges, dimension) {\n if(Array.isArray(ranges[0])) {\n ranges = ranges.map(function(ri) { return ri.sort(sortAsc); });\n\n if(!dimension.multiselect) ranges = [ranges[0]];\n else ranges = dedupeRealRanges(ranges.sort(startAsc));\n } else ranges = [ranges.sort(sortAsc)];\n\n // ordinal snapping\n if(dimension.tickvals) {\n var sortedTickVals = dimension.tickvals.slice().sort(sortAsc);\n ranges = ranges.map(function(ri) {\n var rSnapped = [\n ordinalScaleSnap(0, sortedTickVals, ri[0], []),\n ordinalScaleSnap(1, sortedTickVals, ri[1], [])\n ];\n if(rSnapped[1] > rSnapped[0]) return rSnapped;\n })\n .filter(function(ri) { return ri; });\n\n if(!ranges.length) return;\n }\n return ranges.length > 1 ? ranges : ranges[0];\n}\n\nmodule.exports = {\n makeBrush: makeBrush,\n ensureAxisBrush: ensureAxisBrush,\n cleanRanges: cleanRanges\n};\n\n},{\"../../lib\":515,\"../../lib/gup\":512,\"./constants\":902,\"@plotly/d3\":58}],899:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n colorbar: {\n container: 'line',\n min: 'cmin',\n max: 'cmax'\n },\n\n moduleType: 'trace',\n name: 'parcoords',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['gl', 'regl', 'noOpacity', 'noHover'],\n meta: {\n }\n};\n\n},{\"./attributes\":897,\"./base_plot\":900,\"./calc\":901,\"./defaults\":903}],900:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar parcoordsPlot = _dereq_('./plot');\nvar xmlnsNamespaces = _dereq_('../../constants/xmlns_namespaces');\n\nexports.name = 'parcoords';\n\nexports.plot = function(gd) {\n var calcData = getModuleCalcData(gd.calcdata, 'parcoords')[0];\n if(calcData.length) parcoordsPlot(gd, calcData);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadParcoords = (oldFullLayout._has && oldFullLayout._has('parcoords'));\n var hasParcoords = (newFullLayout._has && newFullLayout._has('parcoords'));\n\n if(hadParcoords && !hasParcoords) {\n oldFullLayout._paperdiv.selectAll('.parcoords').remove();\n oldFullLayout._glimages.selectAll('*').remove();\n }\n};\n\nexports.toSVG = function(gd) {\n var imageRoot = gd._fullLayout._glimages;\n var root = d3.select(gd).selectAll('.svg-container');\n var canvases = root.filter(function(d, i) {return i === root.size() - 1;})\n .selectAll('.gl-canvas-context, .gl-canvas-focus');\n\n function canvasToImage() {\n var canvas = this;\n var imageData = canvas.toDataURL('image/png');\n var image = imageRoot.append('svg:image');\n\n image.attr({\n xmlns: xmlnsNamespaces.svg,\n 'xlink:href': imageData,\n preserveAspectRatio: 'none',\n x: 0,\n y: 0,\n width: canvas.style.width,\n height: canvas.style.height\n });\n }\n\n canvases.each(canvasToImage);\n\n // Chrome / Safari bug workaround - browser apparently loses connection to the defined pattern\n // Without the workaround, these browsers 'lose' the filter brush styling (color etc.) after a snapshot\n // on a subsequent interaction.\n // Firefox works fine without this workaround\n window.setTimeout(function() {\n d3.selectAll('#filterBarPattern')\n .attr('id', 'filterBarPattern');\n }, 60);\n};\n\n},{\"../../constants/xmlns_namespaces\":492,\"../../plots/get_data\":602,\"./plot\":909,\"@plotly/d3\":58}],901:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar Colorscale = _dereq_('../../components/colorscale');\nvar wrap = _dereq_('../../lib/gup').wrap;\n\nmodule.exports = function calc(gd, trace) {\n var lineColor;\n var cscale;\n\n if(Colorscale.hasColorscale(trace, 'line') && isArrayOrTypedArray(trace.line.color)) {\n lineColor = trace.line.color;\n cscale = Colorscale.extractOpts(trace.line).colorscale;\n\n Colorscale.calc(gd, trace, {\n vals: lineColor,\n containerStr: 'line',\n cLetter: 'c'\n });\n } else {\n lineColor = constHalf(trace._length);\n cscale = [[0, trace.line.color], [1, trace.line.color]];\n }\n\n return wrap({lineColor: lineColor, cscale: cscale});\n};\n\nfunction constHalf(len) {\n var out = new Array(len);\n for(var i = 0; i < len; i++) {\n out[i] = 0.5;\n }\n return out;\n}\n\n},{\"../../components/colorscale\":379,\"../../lib\":515,\"../../lib/gup\":512}],902:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = {\n maxDimensionCount: 60, // this cannot be increased without WebGL code refactoring\n overdrag: 45,\n verticalPadding: 2, // otherwise, horizontal lines on top or bottom are of lower width\n tickDistance: 50,\n canvasPixelRatio: 1,\n blockLineCount: 5000,\n layers: ['contextLineLayer', 'focusLineLayer', 'pickLineLayer'],\n axisTitleOffset: 28,\n axisExtentOffset: 10,\n bar: {\n width: 4, // Visible width of the filter bar\n captureWidth: 10, // Mouse-sensitive width for interaction (Fitts law)\n fillColor: 'magenta', // Color of the filter bar fill\n fillOpacity: 1, // Filter bar fill opacity\n snapDuration: 150, // tween duration in ms for brush snap for ordinal axes\n snapRatio: 0.25, // ratio of bar extension relative to the distance between two adjacent ordinal values\n snapClose: 0.01, // fraction of inter-value distance to snap to the closer one, even if you're not over it\n strokeOpacity: 1, // Filter bar side stroke opacity\n strokeWidth: 1, // Filter bar side stroke width in pixels\n handleHeight: 8, // Height of the filter bar vertical resize areas on top and bottom\n handleOpacity: 1, // Opacity of the filter bar vertical resize areas on top and bottom\n handleOverlap: 0 // A larger than 0 value causes overlaps with the filter bar, represented as pixels\n },\n cn: {\n axisExtentText: 'axis-extent-text',\n parcoordsLineLayers: 'parcoords-line-layers',\n parcoordsLineLayer: 'parcoords-lines',\n parcoords: 'parcoords',\n parcoordsControlView: 'parcoords-control-view',\n yAxis: 'y-axis',\n axisOverlays: 'axis-overlays',\n axis: 'axis',\n axisHeading: 'axis-heading',\n axisTitle: 'axis-title',\n axisExtent: 'axis-extent',\n axisExtentTop: 'axis-extent-top',\n axisExtentTopText: 'axis-extent-top-text',\n axisExtentBottom: 'axis-extent-bottom',\n axisExtentBottomText: 'axis-extent-bottom-text',\n axisBrush: 'axis-brush'\n },\n id: {\n filterBarPattern: 'filter-bar-pattern'\n\n }\n};\n\n},{}],903:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar attributes = _dereq_('./attributes');\nvar axisBrush = _dereq_('./axisbrush');\nvar maxDimensionCount = _dereq_('./constants').maxDimensionCount;\nvar mergeLength = _dereq_('./merge_length');\n\nfunction handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce) {\n var lineColor = coerce('line.color', defaultColor);\n\n if(hasColorscale(traceIn, 'line') && Lib.isArrayOrTypedArray(lineColor)) {\n if(lineColor.length) {\n coerce('line.colorscale');\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'line.', cLetter: 'c'});\n // TODO: I think it would be better to keep showing lines beyond the last line color\n // but I'm not sure what color to give these lines - probably black or white\n // depending on the background color?\n return lineColor.length;\n } else {\n traceOut.line.color = defaultColor;\n }\n }\n return Infinity;\n}\n\nfunction dimensionDefaults(dimensionIn, dimensionOut, parentOut, opts) {\n function coerce(attr, dflt) {\n return Lib.coerce(dimensionIn, dimensionOut, attributes.dimensions, attr, dflt);\n }\n\n var values = coerce('values');\n var visible = coerce('visible');\n if(!(values && values.length)) {\n visible = dimensionOut.visible = false;\n }\n\n if(visible) {\n coerce('label');\n coerce('tickvals');\n coerce('ticktext');\n coerce('tickformat');\n var range = coerce('range');\n\n dimensionOut._ax = {\n _id: 'y',\n type: 'linear',\n showexponent: 'all',\n exponentformat: 'B',\n range: range\n };\n\n Axes.setConvert(dimensionOut._ax, opts.layout);\n\n coerce('multiselect');\n var constraintRange = coerce('constraintrange');\n if(constraintRange) {\n dimensionOut.constraintrange = axisBrush.cleanRanges(constraintRange, dimensionOut);\n }\n }\n}\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var dimensionsIn = traceIn.dimensions;\n if(Array.isArray(dimensionsIn) && dimensionsIn.length > maxDimensionCount) {\n Lib.log('parcoords traces support up to ' + maxDimensionCount + ' dimensions at the moment');\n dimensionsIn.splice(maxDimensionCount);\n }\n\n var dimensions = handleArrayContainerDefaults(traceIn, traceOut, {\n name: 'dimensions',\n layout: layout,\n handleItemDefaults: dimensionDefaults\n });\n\n var len = handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n if(!Array.isArray(dimensions) || !dimensions.length) {\n traceOut.visible = false;\n }\n\n mergeLength(traceOut, dimensions, 'values', len);\n\n // make default font size 10px (default is 12),\n // scale linearly with global font size\n var fontDflt = {\n family: layout.font.family,\n size: Math.round(layout.font.size / 1.2),\n color: layout.font.color\n };\n\n Lib.coerceFont(coerce, 'labelfont', fontDflt);\n Lib.coerceFont(coerce, 'tickfont', fontDflt);\n Lib.coerceFont(coerce, 'rangefont', fontDflt);\n\n coerce('labelangle');\n coerce('labelside');\n\n coerce('unselected.line.color');\n coerce('unselected.line.opacity');\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../components/colorscale/helpers\":378,\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../../plots/cartesian/axes\":566,\"../../plots/domain\":593,\"./attributes\":897,\"./axisbrush\":898,\"./constants\":902,\"./merge_length\":907}],904:[function(_dereq_,module,exports){\n'use strict';\n\nvar isTypedArray = _dereq_('../../lib').isTypedArray;\n\nexports.convertTypedArray = function(a) {\n return isTypedArray(a) ? Array.prototype.slice.call(a) : a;\n};\n\nexports.isOrdinal = function(dimension) {\n return !!dimension.tickvals;\n};\n\nexports.isVisible = function(dimension) {\n return dimension.visible || !('visible' in dimension);\n};\n\n},{\"../../lib\":515}],905:[function(_dereq_,module,exports){\n'use strict';\n\nvar index = _dereq_('./base_index');\n\nindex.plot = _dereq_('./plot');\n\nmodule.exports = index;\n\n},{\"./base_index\":899,\"./plot\":909}],906:[function(_dereq_,module,exports){\n'use strict';\n\nvar glslify = _dereq_('glslify');\nvar vertexShaderSource = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\\n p17_20, p21_24, p25_28, p29_32,\\n p33_36, p37_40, p41_44, p45_48,\\n p49_52, p53_56, p57_60, colors;\\n\\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\\nuniform float maskHeight;\\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\\nuniform vec4 contextColor;\\nuniform sampler2D maskTexture, palette;\\n\\nbool isPick = (drwLayer > 1.5);\\nbool isContext = (drwLayer < 0.5);\\n\\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * UNITS, UNITS);\\n}\\n\\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\\n float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\\n float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\\n return y1 * (1.0 - ratio) + y2 * ratio;\\n}\\n\\nint iMod(int a, int b) {\\n return a - b * (a / b);\\n}\\n\\nbool fOutside(float p, float lo, float hi) {\\n return (lo < hi) && (lo > p || p > hi);\\n}\\n\\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\\n return (\\n fOutside(p[0], lo[0], hi[0]) ||\\n fOutside(p[1], lo[1], hi[1]) ||\\n fOutside(p[2], lo[2], hi[2]) ||\\n fOutside(p[3], lo[3], hi[3])\\n );\\n}\\n\\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\\n return (\\n vOutside(p[0], lo[0], hi[0]) ||\\n vOutside(p[1], lo[1], hi[1]) ||\\n vOutside(p[2], lo[2], hi[2]) ||\\n vOutside(p[3], lo[3], hi[3])\\n );\\n}\\n\\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\\n return mOutside(A, loA, hiA) ||\\n mOutside(B, loB, hiB) ||\\n mOutside(C, loC, hiC) ||\\n mOutside(D, loD, hiD);\\n}\\n\\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\\n mat4 pnts[4];\\n pnts[0] = A;\\n pnts[1] = B;\\n pnts[2] = C;\\n pnts[3] = D;\\n\\n for(int i = 0; i < 4; ++i) {\\n for(int j = 0; j < 4; ++j) {\\n for(int k = 0; k < 4; ++k) {\\n if(0 == iMod(\\n int(255.0 * texture2D(maskTexture,\\n vec2(\\n (float(i * 2 + j / 2) + 0.5) / 8.0,\\n (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\\n ))[3]\\n ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\\n 2\\n )) return true;\\n }\\n }\\n }\\n return false;\\n}\\n\\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\\n float x = 0.5 * sign(v) + 0.5;\\n float y = axisY(x, A, B, C, D);\\n float z = 1.0 - abs(v);\\n\\n z += isContext ? 0.0 : 2.0 * float(\\n outsideBoundingBox(A, B, C, D) ||\\n outsideRasterMask(A, B, C, D)\\n );\\n\\n return vec4(\\n 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\\n z,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\\n mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\\n mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\\n mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\\n\\n float v = colors[3];\\n\\n gl_Position = position(isContext, v, A, B, C, D);\\n\\n fragColor =\\n isContext ? vec4(contextColor) :\\n isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\\n}\\n\"]);\nvar fragmentShaderSource = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\"]);\nvar maxDim = _dereq_('./constants').maxDimensionCount;\n\nvar Lib = _dereq_('../../lib');\n\n// don't change; otherwise near/far plane lines are lost\nvar depthLimitEpsilon = 1e-6;\n\n// precision of multiselect is the full range divided into this many parts\nvar maskHeight = 2048;\n\nvar dummyPixel = new Uint8Array(4);\nvar dataPixel = new Uint8Array(4);\n\nvar paletteTextureConfig = {\n shape: [256, 1],\n format: 'rgba',\n type: 'uint8',\n mag: 'nearest',\n min: 'nearest'\n};\n\nfunction ensureDraw(regl) {\n regl.read({\n x: 0,\n y: 0,\n width: 1,\n height: 1,\n data: dummyPixel\n });\n}\n\nfunction clear(regl, x, y, width, height) {\n var gl = regl._gl;\n gl.enable(gl.SCISSOR_TEST);\n gl.scissor(x, y, width, height);\n regl.clear({color: [0, 0, 0, 0], depth: 1}); // clearing is done in scissored panel only\n}\n\nfunction renderBlock(regl, glAes, renderState, blockLineCount, sampleCount, item) {\n var rafKey = item.key;\n\n function render(blockNumber) {\n var count = Math.min(blockLineCount, sampleCount - blockNumber * blockLineCount);\n\n if(blockNumber === 0) {\n // stop drawing possibly stale glyphs before clearing\n window.cancelAnimationFrame(renderState.currentRafs[rafKey]);\n delete renderState.currentRafs[rafKey];\n clear(regl, item.scissorX, item.scissorY, item.scissorWidth, item.viewBoxSize[1]);\n }\n\n if(renderState.clearOnly) {\n return;\n }\n\n item.count = 2 * count;\n item.offset = 2 * blockNumber * blockLineCount;\n glAes(item);\n\n if(blockNumber * blockLineCount + count < sampleCount) {\n renderState.currentRafs[rafKey] = window.requestAnimationFrame(function() {\n render(blockNumber + 1);\n });\n }\n\n renderState.drawCompleted = false;\n }\n\n if(!renderState.drawCompleted) {\n ensureDraw(regl);\n renderState.drawCompleted = true;\n }\n\n // start with rendering item 0; recursion handles the rest\n render(0);\n}\n\nfunction adjustDepth(d) {\n // WebGL matrix operations use floats with limited precision, potentially causing a number near a border of [0, 1]\n // to end up slightly outside the border. With an epsilon, we reduce the chance that a line gets clipped by the\n // near or the far plane.\n return Math.max(depthLimitEpsilon, Math.min(1 - depthLimitEpsilon, d));\n}\n\nfunction palette(unitToColor, opacity) {\n var result = new Array(256);\n for(var i = 0; i < 256; i++) {\n result[i] = unitToColor(i / 255).concat(opacity);\n }\n return result;\n}\n\n// Maps the sample index [0...sampleCount - 1] to a range of [0, 1] as the shader expects colors in the [0, 1] range.\n// but first it shifts the sample index by 0, 8 or 16 bits depending on rgbIndex [0..2]\n// with the end result that each line will be of a unique color, making it possible for the pick handler\n// to uniquely identify which line is hovered over (bijective mapping).\n// The inverse, i.e. readPixel is invoked from 'parcoords.js'\nfunction calcPickColor(i, rgbIndex) {\n return (i >>> 8 * rgbIndex) % 256 / 255;\n}\n\nfunction makePoints(sampleCount, dims, color) {\n var points = new Array(sampleCount * (maxDim + 4));\n var n = 0;\n for(var i = 0; i < sampleCount; i++) {\n for(var k = 0; k < maxDim; k++) {\n points[n++] = (k < dims.length) ? dims[k].paddedUnitValues[i] : 0.5;\n }\n points[n++] = calcPickColor(i, 2);\n points[n++] = calcPickColor(i, 1);\n points[n++] = calcPickColor(i, 0);\n points[n++] = adjustDepth(color[i]);\n }\n return points;\n}\n\nfunction makeVecAttr(vecIndex, sampleCount, points) {\n var pointPairs = new Array(sampleCount * 8);\n var n = 0;\n for(var i = 0; i < sampleCount; i++) {\n for(var j = 0; j < 2; j++) {\n for(var k = 0; k < 4; k++) {\n var q = vecIndex * 4 + k;\n var v = points[i * 64 + q];\n if(q === 63 && j === 0) {\n v *= -1;\n }\n pointPairs[n++] = v;\n }\n }\n }\n return pointPairs;\n}\n\nfunction pad2(num) {\n var s = '0' + num;\n return s.substr(s.length - 2);\n}\n\nfunction getAttrName(i) {\n return (i < maxDim) ? 'p' + pad2(i + 1) + '_' + pad2(i + 4) : 'colors';\n}\n\nfunction setAttributes(attributes, sampleCount, points) {\n for(var i = 0; i <= maxDim; i += 4) {\n attributes[getAttrName(i)](makeVecAttr(i / 4, sampleCount, points));\n }\n}\n\nfunction emptyAttributes(regl) {\n var attributes = {};\n for(var i = 0; i <= maxDim; i += 4) {\n attributes[getAttrName(i)] = regl.buffer({usage: 'dynamic', type: 'float', data: new Uint8Array(0)});\n }\n return attributes;\n}\n\nfunction makeItem(\n model, leftmost, rightmost, itemNumber, i0, i1, x, y, panelSizeX, panelSizeY,\n crossfilterDimensionIndex, drwLayer, constraints, plotGlPixelRatio\n) {\n var dims = [[], []];\n for(var k = 0; k < 64; k++) {\n dims[0][k] = (k === i0) ? 1 : 0;\n dims[1][k] = (k === i1) ? 1 : 0;\n }\n x *= plotGlPixelRatio;\n y *= plotGlPixelRatio;\n panelSizeX *= plotGlPixelRatio;\n panelSizeY *= plotGlPixelRatio;\n var overdrag = model.lines.canvasOverdrag * plotGlPixelRatio;\n var domain = model.domain;\n var canvasWidth = model.canvasWidth * plotGlPixelRatio;\n var canvasHeight = model.canvasHeight * plotGlPixelRatio;\n var padL = model.pad.l * plotGlPixelRatio;\n var padB = model.pad.b * plotGlPixelRatio;\n var layoutHeight = model.layoutHeight * plotGlPixelRatio;\n var layoutWidth = model.layoutWidth * plotGlPixelRatio;\n\n var deselectedLinesColor = model.deselectedLines.color;\n var deselectedLinesOpacity = model.deselectedLines.opacity;\n\n var itemModel = Lib.extendFlat({\n key: crossfilterDimensionIndex,\n resolution: [canvasWidth, canvasHeight],\n viewBoxPos: [x + overdrag, y],\n viewBoxSize: [panelSizeX, panelSizeY],\n i0: i0,\n i1: i1,\n\n dim0A: dims[0].slice(0, 16),\n dim0B: dims[0].slice(16, 32),\n dim0C: dims[0].slice(32, 48),\n dim0D: dims[0].slice(48, 64),\n dim1A: dims[1].slice(0, 16),\n dim1B: dims[1].slice(16, 32),\n dim1C: dims[1].slice(32, 48),\n dim1D: dims[1].slice(48, 64),\n\n drwLayer: drwLayer,\n contextColor: [\n deselectedLinesColor[0] / 255,\n deselectedLinesColor[1] / 255,\n deselectedLinesColor[2] / 255,\n deselectedLinesOpacity !== 'auto' ?\n deselectedLinesColor[3] * deselectedLinesOpacity :\n Math.max(1 / 255, Math.pow(1 / model.lines.color.length, 1 / 3))\n ],\n\n scissorX: (itemNumber === leftmost ? 0 : x + overdrag) + (padL - overdrag) + layoutWidth * domain.x[0],\n scissorWidth: (itemNumber === rightmost ? canvasWidth - x + overdrag : panelSizeX + 0.5) + (itemNumber === leftmost ? x + overdrag : 0),\n scissorY: y + padB + layoutHeight * domain.y[0],\n scissorHeight: panelSizeY,\n\n viewportX: padL - overdrag + layoutWidth * domain.x[0],\n viewportY: padB + layoutHeight * domain.y[0],\n viewportWidth: canvasWidth,\n viewportHeight: canvasHeight\n }, constraints);\n\n return itemModel;\n}\n\nfunction expandedPixelRange(bounds) {\n var dh = maskHeight - 1;\n var a = Math.max(0, Math.floor(bounds[0] * dh), 0);\n var b = Math.min(dh, Math.ceil(bounds[1] * dh), dh);\n return [\n Math.min(a, b),\n Math.max(a, b)\n ];\n}\n\nmodule.exports = function(canvasGL, d) {\n // context & pick describe which canvas we're talking about - won't change with new data\n var isContext = d.context;\n var isPick = d.pick;\n\n var regl = d.regl;\n var gl = regl._gl;\n var supportedLineWidth = gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE);\n // ensure here that plotGlPixelRatio is within supported range; otherwise regl throws error\n var plotGlPixelRatio = Math.max(\n supportedLineWidth[0],\n Math.min(\n supportedLineWidth[1],\n d.viewModel.plotGlPixelRatio\n )\n );\n\n var renderState = {\n currentRafs: {},\n drawCompleted: true,\n clearOnly: false\n };\n\n // state to be set by update and used later\n var model;\n var vm;\n var initialDims;\n var sampleCount;\n var attributes = emptyAttributes(regl);\n var maskTexture;\n var paletteTexture = regl.texture(paletteTextureConfig);\n\n var prevAxisOrder = [];\n\n update(d);\n\n var glAes = regl({\n\n profile: false,\n\n blend: {\n enable: isContext,\n func: {\n srcRGB: 'src alpha',\n dstRGB: 'one minus src alpha',\n srcAlpha: 1,\n dstAlpha: 1 // 'one minus src alpha'\n },\n equation: {\n rgb: 'add',\n alpha: 'add'\n },\n color: [0, 0, 0, 0]\n },\n\n depth: {\n enable: !isContext,\n mask: true,\n func: 'less',\n range: [0, 1]\n },\n\n // for polygons\n cull: {\n enable: true,\n face: 'back'\n },\n\n scissor: {\n enable: true,\n box: {\n x: regl.prop('scissorX'),\n y: regl.prop('scissorY'),\n width: regl.prop('scissorWidth'),\n height: regl.prop('scissorHeight')\n }\n },\n\n viewport: {\n x: regl.prop('viewportX'),\n y: regl.prop('viewportY'),\n width: regl.prop('viewportWidth'),\n height: regl.prop('viewportHeight')\n },\n\n dither: false,\n\n vert: vertexShaderSource,\n\n frag: fragmentShaderSource,\n\n primitive: 'lines',\n lineWidth: plotGlPixelRatio,\n attributes: attributes,\n uniforms: {\n resolution: regl.prop('resolution'),\n viewBoxPos: regl.prop('viewBoxPos'),\n viewBoxSize: regl.prop('viewBoxSize'),\n dim0A: regl.prop('dim0A'),\n dim1A: regl.prop('dim1A'),\n dim0B: regl.prop('dim0B'),\n dim1B: regl.prop('dim1B'),\n dim0C: regl.prop('dim0C'),\n dim1C: regl.prop('dim1C'),\n dim0D: regl.prop('dim0D'),\n dim1D: regl.prop('dim1D'),\n loA: regl.prop('loA'),\n hiA: regl.prop('hiA'),\n loB: regl.prop('loB'),\n hiB: regl.prop('hiB'),\n loC: regl.prop('loC'),\n hiC: regl.prop('hiC'),\n loD: regl.prop('loD'),\n hiD: regl.prop('hiD'),\n palette: paletteTexture,\n contextColor: regl.prop('contextColor'),\n maskTexture: regl.prop('maskTexture'),\n drwLayer: regl.prop('drwLayer'),\n maskHeight: regl.prop('maskHeight')\n },\n offset: regl.prop('offset'),\n count: regl.prop('count')\n });\n\n function update(dNew) {\n model = dNew.model;\n vm = dNew.viewModel;\n initialDims = vm.dimensions.slice();\n sampleCount = initialDims[0] ? initialDims[0].values.length : 0;\n\n var lines = model.lines;\n var color = isPick ? lines.color.map(function(_, i) {return i / lines.color.length;}) : lines.color;\n\n var points = makePoints(sampleCount, initialDims, color);\n setAttributes(attributes, sampleCount, points);\n\n if(!isContext && !isPick) {\n paletteTexture = regl.texture(Lib.extendFlat({\n data: palette(model.unitToColor, 255)\n }, paletteTextureConfig));\n }\n }\n\n function makeConstraints(isContext) {\n var i, j, k;\n\n var limits = [[], []];\n for(k = 0; k < 64; k++) {\n var p = (!isContext && k < initialDims.length) ?\n initialDims[k].brush.filter.getBounds() : [-Infinity, Infinity];\n\n limits[0][k] = p[0];\n limits[1][k] = p[1];\n }\n\n var len = maskHeight * 8;\n var mask = new Array(len);\n for(i = 0; i < len; i++) {\n mask[i] = 255;\n }\n if(!isContext) {\n for(i = 0; i < initialDims.length; i++) {\n var u = i % 8;\n var v = (i - u) / 8;\n var bitMask = Math.pow(2, u);\n var dim = initialDims[i];\n var ranges = dim.brush.filter.get();\n if(ranges.length < 2) continue; // bail if the bounding box based filter is sufficient\n\n var prevEnd = expandedPixelRange(ranges[0])[1];\n for(j = 1; j < ranges.length; j++) {\n var nextRange = expandedPixelRange(ranges[j]);\n for(k = prevEnd + 1; k < nextRange[0]; k++) {\n mask[k * 8 + v] &= ~bitMask;\n }\n prevEnd = Math.max(prevEnd, nextRange[1]);\n }\n }\n }\n\n var textureData = {\n // 8 units x 8 bits = 64 bits, just sufficient for the almost 64 dimensions we support\n shape: [8, maskHeight],\n format: 'alpha',\n type: 'uint8',\n mag: 'nearest',\n min: 'nearest',\n data: mask\n };\n if(maskTexture) maskTexture(textureData);\n else maskTexture = regl.texture(textureData);\n\n return {\n maskTexture: maskTexture,\n maskHeight: maskHeight,\n loA: limits[0].slice(0, 16),\n loB: limits[0].slice(16, 32),\n loC: limits[0].slice(32, 48),\n loD: limits[0].slice(48, 64),\n hiA: limits[1].slice(0, 16),\n hiB: limits[1].slice(16, 32),\n hiC: limits[1].slice(32, 48),\n hiD: limits[1].slice(48, 64),\n };\n }\n\n function renderGLParcoords(panels, setChanged, clearOnly) {\n var panelCount = panels.length;\n var i;\n\n var leftmost;\n var rightmost;\n var lowestX = Infinity;\n var highestX = -Infinity;\n\n for(i = 0; i < panelCount; i++) {\n if(panels[i].dim0.canvasX < lowestX) {\n lowestX = panels[i].dim0.canvasX;\n leftmost = i;\n }\n if(panels[i].dim1.canvasX > highestX) {\n highestX = panels[i].dim1.canvasX;\n rightmost = i;\n }\n }\n\n if(panelCount === 0) {\n // clear canvas here, as the panel iteration below will not enter the loop body\n clear(regl, 0, 0, model.canvasWidth, model.canvasHeight);\n }\n var constraints = makeConstraints(isContext);\n\n for(i = 0; i < panelCount; i++) {\n var p = panels[i];\n var i0 = p.dim0.crossfilterDimensionIndex;\n var i1 = p.dim1.crossfilterDimensionIndex;\n var x = p.canvasX;\n var y = p.canvasY;\n var nextX = x + p.panelSizeX;\n var plotGlPixelRatio = p.plotGlPixelRatio;\n if(setChanged ||\n !prevAxisOrder[i0] ||\n prevAxisOrder[i0][0] !== x ||\n prevAxisOrder[i0][1] !== nextX\n ) {\n prevAxisOrder[i0] = [x, nextX];\n\n var item = makeItem(\n model,\n leftmost, rightmost, i, i0, i1, x, y,\n p.panelSizeX, p.panelSizeY,\n p.dim0.crossfilterDimensionIndex,\n isContext ? 0 : isPick ? 2 : 1,\n constraints,\n plotGlPixelRatio\n );\n\n renderState.clearOnly = clearOnly;\n\n var blockLineCount = setChanged ? model.lines.blockLineCount : sampleCount;\n renderBlock(\n regl, glAes, renderState, blockLineCount, sampleCount, item\n );\n }\n }\n }\n\n function readPixel(canvasX, canvasY) {\n regl.read({\n x: canvasX,\n y: canvasY,\n width: 1,\n height: 1,\n data: dataPixel\n });\n return dataPixel;\n }\n\n function readPixels(canvasX, canvasY, width, height) {\n var pixelArray = new Uint8Array(4 * width * height);\n regl.read({\n x: canvasX,\n y: canvasY,\n width: width,\n height: height,\n data: pixelArray\n });\n return pixelArray;\n }\n\n function destroy() {\n canvasGL.style['pointer-events'] = 'none';\n paletteTexture.destroy();\n if(maskTexture) maskTexture.destroy();\n for(var k in attributes) attributes[k].destroy();\n }\n\n return {\n render: renderGLParcoords,\n readPixel: readPixel,\n readPixels: readPixels,\n destroy: destroy,\n update: update\n };\n};\n\n},{\"../../lib\":515,\"./constants\":902,\"glslify\":227}],907:[function(_dereq_,module,exports){\n'use strict';\n\n/**\n * mergeLength: set trace length as the minimum of all dimension data lengths\n * and propagates this length into each dimension\n *\n * @param {object} traceOut: the fullData trace\n * @param {Array(object)} dimensions: array of dimension objects\n * @param {string} dataAttr: the attribute of each dimension containing the data\n * @param {integer} len: an already-existing length from other attributes\n */\nmodule.exports = function(traceOut, dimensions, dataAttr, len) {\n if(!len) len = Infinity;\n var i, dimi;\n for(i = 0; i < dimensions.length; i++) {\n dimi = dimensions[i];\n if(dimi.visible) len = Math.min(len, dimi[dataAttr].length);\n }\n if(len === Infinity) len = 0;\n\n traceOut._length = len;\n for(i = 0; i < dimensions.length; i++) {\n dimi = dimensions[i];\n if(dimi.visible) dimi._length = len;\n }\n\n return len;\n};\n\n},{}],908:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar rgba = _dereq_('color-rgba');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar strRotate = Lib.strRotate;\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar Drawing = _dereq_('../../components/drawing');\nvar Colorscale = _dereq_('../../components/colorscale');\n\nvar gup = _dereq_('../../lib/gup');\nvar keyFun = gup.keyFun;\nvar repeat = gup.repeat;\nvar unwrap = gup.unwrap;\n\nvar helpers = _dereq_('./helpers');\nvar c = _dereq_('./constants');\nvar brush = _dereq_('./axisbrush');\nvar lineLayerMaker = _dereq_('./lines');\n\nfunction findExtreme(fn, values, len) {\n return Lib.aggNums(fn, null, values, len);\n}\n\nfunction findExtremes(values, len) {\n return fixExtremes(\n findExtreme(Math.min, values, len),\n findExtreme(Math.max, values, len)\n );\n}\n\nfunction dimensionExtent(dimension) {\n var range = dimension.range;\n return range ?\n fixExtremes(range[0], range[1]) :\n findExtremes(dimension.values, dimension._length);\n}\n\nfunction fixExtremes(lo, hi) {\n if(isNaN(lo) || !isFinite(lo)) {\n lo = 0;\n }\n\n if(isNaN(hi) || !isFinite(hi)) {\n hi = 0;\n }\n\n // avoid a degenerate (zero-width) domain\n if(lo === hi) {\n if(lo === 0) {\n // no use to multiplying zero, so add/subtract in this case\n lo -= 1;\n hi += 1;\n } else {\n // this keeps the range in the order of magnitude of the data\n lo *= 0.9;\n hi *= 1.1;\n }\n }\n\n return [lo, hi];\n}\n\nfunction toText(formatter, texts) {\n if(texts) {\n return function(v, i) {\n var text = texts[i];\n if(text === null || text === undefined) return formatter(v);\n return text;\n };\n }\n return formatter;\n}\n\nfunction domainScale(height, padding, dimension, tickvals, ticktext) {\n var extent = dimensionExtent(dimension);\n if(tickvals) {\n return d3.scale.ordinal()\n .domain(tickvals.map(toText(numberFormat(dimension.tickformat), ticktext)))\n .range(tickvals\n .map(function(d) {\n var unitVal = (d - extent[0]) / (extent[1] - extent[0]);\n return (height - padding + unitVal * (2 * padding - height));\n })\n );\n }\n return d3.scale.linear()\n .domain(extent)\n .range([height - padding, padding]);\n}\n\nfunction unitToPaddedPx(height, padding) {\n return d3.scale.linear().range([padding, height - padding]);\n}\n\nfunction domainToPaddedUnitScale(dimension, padFraction) {\n return d3.scale.linear()\n .domain(dimensionExtent(dimension))\n .range([padFraction, 1 - padFraction]);\n}\n\nfunction ordinalScale(dimension) {\n if(!dimension.tickvals) return;\n\n var extent = dimensionExtent(dimension);\n return d3.scale.ordinal()\n .domain(dimension.tickvals)\n .range(dimension.tickvals.map(function(d) {\n return (d - extent[0]) / (extent[1] - extent[0]);\n }));\n}\n\nfunction unitToColorScale(cscale) {\n var colorStops = cscale.map(function(d) { return d[0]; });\n var colorTuples = cscale.map(function(d) {\n var RGBA = rgba(d[1]);\n return d3.rgb('rgb(' + RGBA[0] + ',' + RGBA[1] + ',' + RGBA[2] + ')');\n });\n var prop = function(n) { return function(o) { return o[n]; }; };\n\n // We can't use d3 color interpolation as we may have non-uniform color palette raster\n // (various color stop distances).\n var polylinearUnitScales = 'rgb'.split('').map(function(key) {\n return d3.scale.linear()\n .clamp(true)\n .domain(colorStops)\n .range(colorTuples.map(prop(key)));\n });\n\n return function(d) {\n return polylinearUnitScales.map(function(s) {\n return s(d);\n });\n };\n}\n\nfunction someFiltersActive(view) {\n return view.dimensions.some(function(p) {\n return p.brush.filterSpecified;\n });\n}\n\nfunction model(layout, d, i) {\n var cd0 = unwrap(d);\n var trace = cd0.trace;\n var lineColor = helpers.convertTypedArray(cd0.lineColor);\n var line = trace.line;\n var deselectedLines = {\n color: rgba(trace.unselected.line.color),\n opacity: trace.unselected.line.opacity\n };\n var cOpts = Colorscale.extractOpts(line);\n var cscale = cOpts.reversescale ? Colorscale.flipScale(cd0.cscale) : cd0.cscale;\n var domain = trace.domain;\n var dimensions = trace.dimensions;\n var width = layout.width;\n var labelAngle = trace.labelangle;\n var labelSide = trace.labelside;\n var labelFont = trace.labelfont;\n var tickFont = trace.tickfont;\n var rangeFont = trace.rangefont;\n\n var lines = Lib.extendDeepNoArrays({}, line, {\n color: lineColor.map(d3.scale.linear().domain(\n dimensionExtent({\n values: lineColor,\n range: [cOpts.min, cOpts.max],\n _length: trace._length\n })\n )),\n blockLineCount: c.blockLineCount,\n canvasOverdrag: c.overdrag * c.canvasPixelRatio\n });\n\n var groupWidth = Math.floor(width * (domain.x[1] - domain.x[0]));\n var groupHeight = Math.floor(layout.height * (domain.y[1] - domain.y[0]));\n\n var pad = layout.margin || {l: 80, r: 80, t: 100, b: 80};\n var rowContentWidth = groupWidth;\n var rowHeight = groupHeight;\n\n return {\n key: i,\n colCount: dimensions.filter(helpers.isVisible).length,\n dimensions: dimensions,\n tickDistance: c.tickDistance,\n unitToColor: unitToColorScale(cscale),\n lines: lines,\n deselectedLines: deselectedLines,\n labelAngle: labelAngle,\n labelSide: labelSide,\n labelFont: labelFont,\n tickFont: tickFont,\n rangeFont: rangeFont,\n layoutWidth: width,\n layoutHeight: layout.height,\n domain: domain,\n translateX: domain.x[0] * width,\n translateY: layout.height - domain.y[1] * layout.height,\n pad: pad,\n canvasWidth: rowContentWidth * c.canvasPixelRatio + 2 * lines.canvasOverdrag,\n canvasHeight: rowHeight * c.canvasPixelRatio,\n width: rowContentWidth,\n height: rowHeight,\n canvasPixelRatio: c.canvasPixelRatio\n };\n}\n\nfunction viewModel(state, callbacks, model) {\n var width = model.width;\n var height = model.height;\n var dimensions = model.dimensions;\n var canvasPixelRatio = model.canvasPixelRatio;\n\n var xScale = function(d) {return width * d / Math.max(1, model.colCount - 1);};\n\n var unitPad = c.verticalPadding / height;\n var _unitToPaddedPx = unitToPaddedPx(height, c.verticalPadding);\n\n var vm = {\n key: model.key,\n xScale: xScale,\n model: model,\n inBrushDrag: false // consider factoring it out and putting it in a centralized global-ish gesture state object\n };\n\n var uniqueKeys = {};\n\n vm.dimensions = dimensions.filter(helpers.isVisible).map(function(dimension, i) {\n var domainToPaddedUnit = domainToPaddedUnitScale(dimension, unitPad);\n var foundKey = uniqueKeys[dimension.label];\n uniqueKeys[dimension.label] = (foundKey || 0) + 1;\n var key = dimension.label + (foundKey ? '__' + foundKey : '');\n var specifiedConstraint = dimension.constraintrange;\n var filterRangeSpecified = specifiedConstraint && specifiedConstraint.length;\n if(filterRangeSpecified && !Array.isArray(specifiedConstraint[0])) {\n specifiedConstraint = [specifiedConstraint];\n }\n var filterRange = filterRangeSpecified ?\n specifiedConstraint.map(function(d) { return d.map(domainToPaddedUnit); }) :\n [[-Infinity, Infinity]];\n var brushMove = function() {\n var p = vm;\n p.focusLayer && p.focusLayer.render(p.panels, true);\n var filtersActive = someFiltersActive(p);\n if(!state.contextShown() && filtersActive) {\n p.contextLayer && p.contextLayer.render(p.panels, true);\n state.contextShown(true);\n } else if(state.contextShown() && !filtersActive) {\n p.contextLayer && p.contextLayer.render(p.panels, true, true);\n state.contextShown(false);\n }\n };\n\n var truncatedValues = dimension.values;\n if(truncatedValues.length > dimension._length) {\n truncatedValues = truncatedValues.slice(0, dimension._length);\n }\n\n var tickvals = dimension.tickvals;\n var ticktext;\n function makeTickItem(v, i) { return {val: v, text: ticktext[i]}; }\n function sortTickItem(a, b) { return a.val - b.val; }\n if(Array.isArray(tickvals) && tickvals.length) {\n ticktext = dimension.ticktext;\n\n // ensure ticktext and tickvals have same length\n if(!Array.isArray(ticktext) || !ticktext.length) {\n ticktext = tickvals.map(numberFormat(dimension.tickformat));\n } else if(ticktext.length > tickvals.length) {\n ticktext = ticktext.slice(0, tickvals.length);\n } else if(tickvals.length > ticktext.length) {\n tickvals = tickvals.slice(0, ticktext.length);\n }\n\n // check if we need to sort tickvals/ticktext\n for(var j = 1; j < tickvals.length; j++) {\n if(tickvals[j] < tickvals[j - 1]) {\n var tickItems = tickvals.map(makeTickItem).sort(sortTickItem);\n for(var k = 0; k < tickvals.length; k++) {\n tickvals[k] = tickItems[k].val;\n ticktext[k] = tickItems[k].text;\n }\n break;\n }\n }\n } else tickvals = undefined;\n\n truncatedValues = helpers.convertTypedArray(truncatedValues);\n\n return {\n key: key,\n label: dimension.label,\n tickFormat: dimension.tickformat,\n tickvals: tickvals,\n ticktext: ticktext,\n ordinal: helpers.isOrdinal(dimension),\n multiselect: dimension.multiselect,\n xIndex: i,\n crossfilterDimensionIndex: i,\n visibleIndex: dimension._index,\n height: height,\n values: truncatedValues,\n paddedUnitValues: truncatedValues.map(domainToPaddedUnit),\n unitTickvals: tickvals && tickvals.map(domainToPaddedUnit),\n xScale: xScale,\n x: xScale(i),\n canvasX: xScale(i) * canvasPixelRatio,\n unitToPaddedPx: _unitToPaddedPx,\n domainScale: domainScale(height, c.verticalPadding, dimension, tickvals, ticktext),\n ordinalScale: ordinalScale(dimension),\n parent: vm,\n model: model,\n brush: brush.makeBrush(\n state,\n filterRangeSpecified,\n filterRange,\n function() {\n state.linePickActive(false);\n },\n brushMove,\n function(f) {\n vm.focusLayer.render(vm.panels, true);\n vm.pickLayer && vm.pickLayer.render(vm.panels, true);\n state.linePickActive(true);\n if(callbacks && callbacks.filterChanged) {\n var invScale = domainToPaddedUnit.invert;\n\n // update gd.data as if a Plotly.restyle were fired\n var newRanges = f.map(function(r) {\n return r.map(invScale).sort(Lib.sorterAsc);\n }).sort(function(a, b) { return a[0] - b[0]; });\n callbacks.filterChanged(vm.key, dimension._index, newRanges);\n }\n }\n )\n };\n });\n\n return vm;\n}\n\nfunction styleExtentTexts(selection) {\n selection\n .classed(c.cn.axisExtentText, true)\n .attr('text-anchor', 'middle')\n .style('cursor', 'default');\n}\n\nfunction parcoordsInteractionState() {\n var linePickActive = true;\n var contextShown = false;\n return {\n linePickActive: function(val) {return arguments.length ? linePickActive = !!val : linePickActive;},\n contextShown: function(val) {return arguments.length ? contextShown = !!val : contextShown;}\n };\n}\n\nfunction calcTilt(angle, position) {\n var dir = (position === 'top') ? 1 : -1;\n var radians = angle * Math.PI / 180;\n var dx = Math.sin(radians);\n var dy = Math.cos(radians);\n return {\n dir: dir,\n dx: dx,\n dy: dy,\n degrees: angle\n };\n}\n\nfunction updatePanelLayout(yAxis, vm, plotGlPixelRatio) {\n var panels = vm.panels || (vm.panels = []);\n var data = yAxis.data();\n for(var i = 0; i < data.length - 1; i++) {\n var p = panels[i] || (panels[i] = {});\n var dim0 = data[i];\n var dim1 = data[i + 1];\n p.dim0 = dim0;\n p.dim1 = dim1;\n p.canvasX = dim0.canvasX;\n p.panelSizeX = dim1.canvasX - dim0.canvasX;\n p.panelSizeY = vm.model.canvasHeight;\n p.y = 0;\n p.canvasY = 0;\n p.plotGlPixelRatio = plotGlPixelRatio;\n }\n}\n\nfunction calcAllTicks(cd) {\n for(var i = 0; i < cd.length; i++) {\n for(var j = 0; j < cd[i].length; j++) {\n var trace = cd[i][j].trace;\n var dimensions = trace.dimensions;\n\n for(var k = 0; k < dimensions.length; k++) {\n var values = dimensions[k].values;\n var dim = dimensions[k]._ax;\n\n if(dim) {\n if(!dim.range) {\n dim.range = findExtremes(values, trace._length);\n } else {\n dim.range = fixExtremes(dim.range[0], dim.range[1]);\n }\n\n if(!dim.dtick) {\n dim.dtick = 0.01 * (Math.abs(dim.range[1] - dim.range[0]) || 1);\n }\n\n dim.tickformat = dimensions[k].tickformat;\n Axes.calcTicks(dim);\n dim.cleanRange();\n }\n }\n }\n }\n}\n\nfunction linearFormat(dim, v) {\n return Axes.tickText(dim._ax, v, false).text;\n}\n\nfunction extremeText(d, isTop) {\n if(d.ordinal) return '';\n var domain = d.domainScale.domain();\n var v = (domain[isTop ? domain.length - 1 : 0]);\n\n return linearFormat(d.model.dimensions[d.visibleIndex], v);\n}\n\n\nmodule.exports = function parcoords(gd, cdModule, layout, callbacks) {\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n var svg = fullLayout._toppaper;\n var glContainer = fullLayout._glcontainer;\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n var paperColor = gd._fullLayout.paper_bgcolor;\n\n calcAllTicks(cdModule);\n\n var state = parcoordsInteractionState();\n\n var vm = cdModule\n .filter(function(d) { return unwrap(d).trace.visible; })\n .map(model.bind(0, layout))\n .map(viewModel.bind(0, state, callbacks));\n\n glContainer.each(function(d, i) {\n return Lib.extendFlat(d, vm[i]);\n });\n\n var glLayers = glContainer.selectAll('.gl-canvas')\n .each(function(d) {\n // FIXME: figure out how to handle multiple instances\n d.viewModel = vm[0];\n d.viewModel.plotGlPixelRatio = plotGlPixelRatio;\n d.viewModel.paperColor = paperColor;\n d.model = d.viewModel ? d.viewModel.model : null;\n });\n\n var lastHovered = null;\n\n var pickLayer = glLayers.filter(function(d) {return d.pick;});\n\n // emit hover / unhover event\n pickLayer\n .style('pointer-events', isStatic ? 'none' : 'auto')\n .on('mousemove', function(d) {\n if(state.linePickActive() && d.lineLayer && callbacks && callbacks.hover) {\n var event = d3.event;\n var cw = this.width;\n var ch = this.height;\n var pointer = d3.mouse(this);\n var x = pointer[0];\n var y = pointer[1];\n\n if(x < 0 || y < 0 || x >= cw || y >= ch) {\n return;\n }\n var pixel = d.lineLayer.readPixel(x, ch - 1 - y);\n var found = pixel[3] !== 0;\n // inverse of the calcPickColor in `lines.js`; detailed comment there\n var curveNumber = found ? pixel[2] + 256 * (pixel[1] + 256 * pixel[0]) : null;\n var eventData = {\n x: x,\n y: y,\n clientX: event.clientX,\n clientY: event.clientY,\n dataIndex: d.model.key,\n curveNumber: curveNumber\n };\n if(curveNumber !== lastHovered) { // don't unnecessarily repeat the same hit (or miss)\n if(found) {\n callbacks.hover(eventData);\n } else if(callbacks.unhover) {\n callbacks.unhover(eventData);\n }\n lastHovered = curveNumber;\n }\n }\n });\n\n glLayers\n .style('opacity', function(d) {return d.pick ? 0 : 1;});\n\n svg.style('background', 'rgba(255, 255, 255, 0)');\n var controlOverlay = svg.selectAll('.' + c.cn.parcoords)\n .data(vm, keyFun);\n\n controlOverlay.exit().remove();\n\n controlOverlay.enter()\n .append('g')\n .classed(c.cn.parcoords, true)\n .style('shape-rendering', 'crispEdges')\n .style('pointer-events', 'none');\n\n controlOverlay.attr('transform', function(d) {\n return strTranslate(d.model.translateX, d.model.translateY);\n });\n\n var parcoordsControlView = controlOverlay.selectAll('.' + c.cn.parcoordsControlView)\n .data(repeat, keyFun);\n\n parcoordsControlView.enter()\n .append('g')\n .classed(c.cn.parcoordsControlView, true);\n\n parcoordsControlView.attr('transform', function(d) {\n return strTranslate(d.model.pad.l, d.model.pad.t);\n });\n\n var yAxis = parcoordsControlView.selectAll('.' + c.cn.yAxis)\n .data(function(p) { return p.dimensions; }, keyFun);\n\n yAxis.enter()\n .append('g')\n .classed(c.cn.yAxis, true);\n\n parcoordsControlView.each(function(p) {\n updatePanelLayout(yAxis, p, plotGlPixelRatio);\n });\n\n glLayers\n .each(function(d) {\n if(d.viewModel) {\n if(!d.lineLayer || callbacks) { // recreate in case of having callbacks e.g. restyle. Should we test for callback to be a restyle?\n d.lineLayer = lineLayerMaker(this, d);\n } else d.lineLayer.update(d);\n\n if(d.key || d.key === 0) d.viewModel[d.key] = d.lineLayer;\n\n var setChanged = (!d.context || // don't update background\n callbacks); // unless there is a callback on the context layer. Should we test the callback?\n\n d.lineLayer.render(d.viewModel.panels, setChanged);\n }\n });\n\n yAxis.attr('transform', function(d) {\n return strTranslate(d.xScale(d.xIndex), 0);\n });\n\n // drag column for reordering columns\n yAxis.call(d3.behavior.drag()\n .origin(function(d) { return d; })\n .on('drag', function(d) {\n var p = d.parent;\n state.linePickActive(false);\n d.x = Math.max(-c.overdrag, Math.min(d.model.width + c.overdrag, d3.event.x));\n d.canvasX = d.x * d.model.canvasPixelRatio;\n yAxis\n .sort(function(a, b) { return a.x - b.x; })\n .each(function(e, i) {\n e.xIndex = i;\n e.x = d === e ? e.x : e.xScale(e.xIndex);\n e.canvasX = e.x * e.model.canvasPixelRatio;\n });\n\n updatePanelLayout(yAxis, p, plotGlPixelRatio);\n\n yAxis.filter(function(e) { return Math.abs(d.xIndex - e.xIndex) !== 0; })\n .attr('transform', function(d) { return strTranslate(d.xScale(d.xIndex), 0); });\n d3.select(this).attr('transform', strTranslate(d.x, 0));\n yAxis.each(function(e, i0, i1) { if(i1 === d.parent.key) p.dimensions[i0] = e; });\n p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p));\n p.focusLayer.render && p.focusLayer.render(p.panels);\n })\n .on('dragend', function(d) {\n var p = d.parent;\n d.x = d.xScale(d.xIndex);\n d.canvasX = d.x * d.model.canvasPixelRatio;\n updatePanelLayout(yAxis, p, plotGlPixelRatio);\n d3.select(this)\n .attr('transform', function(d) { return strTranslate(d.x, 0); });\n p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p));\n p.focusLayer && p.focusLayer.render(p.panels);\n p.pickLayer && p.pickLayer.render(p.panels, true);\n state.linePickActive(true);\n\n if(callbacks && callbacks.axesMoved) {\n callbacks.axesMoved(p.key, p.dimensions.map(function(e) {return e.crossfilterDimensionIndex;}));\n }\n })\n );\n\n yAxis.exit()\n .remove();\n\n var axisOverlays = yAxis.selectAll('.' + c.cn.axisOverlays)\n .data(repeat, keyFun);\n\n axisOverlays.enter()\n .append('g')\n .classed(c.cn.axisOverlays, true);\n\n axisOverlays.selectAll('.' + c.cn.axis).remove();\n\n var axis = axisOverlays.selectAll('.' + c.cn.axis)\n .data(repeat, keyFun);\n\n axis.enter()\n .append('g')\n .classed(c.cn.axis, true);\n\n axis\n .each(function(d) {\n var wantedTickCount = d.model.height / d.model.tickDistance;\n var scale = d.domainScale;\n var sdom = scale.domain();\n d3.select(this)\n .call(d3.svg.axis()\n .orient('left')\n .tickSize(4)\n .outerTickSize(2)\n .ticks(wantedTickCount, d.tickFormat) // works for continuous scales only...\n .tickValues(d.ordinal ? // and this works for ordinal scales\n sdom :\n null)\n .tickFormat(function(v) {\n return helpers.isOrdinal(d) ? v : linearFormat(d.model.dimensions[d.visibleIndex], v);\n })\n .scale(scale));\n Drawing.font(axis.selectAll('text'), d.model.tickFont);\n });\n\n axis.selectAll('.domain, .tick>line')\n .attr('fill', 'none')\n .attr('stroke', 'black')\n .attr('stroke-opacity', 0.25)\n .attr('stroke-width', '1px');\n\n axis.selectAll('text')\n .style('text-shadow', svgTextUtils.makeTextShadow(paperColor))\n .style('cursor', 'default');\n\n var axisHeading = axisOverlays.selectAll('.' + c.cn.axisHeading)\n .data(repeat, keyFun);\n\n axisHeading.enter()\n .append('g')\n .classed(c.cn.axisHeading, true);\n\n var axisTitle = axisHeading.selectAll('.' + c.cn.axisTitle)\n .data(repeat, keyFun);\n\n axisTitle.enter()\n .append('text')\n .classed(c.cn.axisTitle, true)\n .attr('text-anchor', 'middle')\n .style('cursor', 'ew-resize')\n .style('pointer-events', isStatic ? 'none' : 'auto');\n\n axisTitle\n .text(function(d) { return d.label; })\n .each(function(d) {\n var e = d3.select(this);\n Drawing.font(e, d.model.labelFont);\n svgTextUtils.convertToTspans(e, gd);\n })\n .attr('transform', function(d) {\n var tilt = calcTilt(d.model.labelAngle, d.model.labelSide);\n var r = c.axisTitleOffset;\n return (\n (tilt.dir > 0 ? '' : strTranslate(0, 2 * r + d.model.height)) +\n strRotate(tilt.degrees) +\n strTranslate(-r * tilt.dx, -r * tilt.dy)\n );\n })\n .attr('text-anchor', function(d) {\n var tilt = calcTilt(d.model.labelAngle, d.model.labelSide);\n var adx = Math.abs(tilt.dx);\n var ady = Math.abs(tilt.dy);\n\n if(2 * adx > ady) {\n return (tilt.dir * tilt.dx < 0) ? 'start' : 'end';\n } else {\n return 'middle';\n }\n });\n\n var axisExtent = axisOverlays.selectAll('.' + c.cn.axisExtent)\n .data(repeat, keyFun);\n\n axisExtent.enter()\n .append('g')\n .classed(c.cn.axisExtent, true);\n\n var axisExtentTop = axisExtent.selectAll('.' + c.cn.axisExtentTop)\n .data(repeat, keyFun);\n\n axisExtentTop.enter()\n .append('g')\n .classed(c.cn.axisExtentTop, true);\n\n axisExtentTop\n .attr('transform', strTranslate(0, -c.axisExtentOffset));\n\n var axisExtentTopText = axisExtentTop.selectAll('.' + c.cn.axisExtentTopText)\n .data(repeat, keyFun);\n\n axisExtentTopText.enter()\n .append('text')\n .classed(c.cn.axisExtentTopText, true)\n .call(styleExtentTexts);\n\n axisExtentTopText\n .text(function(d) { return extremeText(d, true); })\n .each(function(d) { Drawing.font(d3.select(this), d.model.rangeFont); });\n\n var axisExtentBottom = axisExtent.selectAll('.' + c.cn.axisExtentBottom)\n .data(repeat, keyFun);\n\n axisExtentBottom.enter()\n .append('g')\n .classed(c.cn.axisExtentBottom, true);\n\n axisExtentBottom\n .attr('transform', function(d) {\n return strTranslate(0, d.model.height + c.axisExtentOffset);\n });\n\n var axisExtentBottomText = axisExtentBottom.selectAll('.' + c.cn.axisExtentBottomText)\n .data(repeat, keyFun);\n\n axisExtentBottomText.enter()\n .append('text')\n .classed(c.cn.axisExtentBottomText, true)\n .attr('dy', '0.75em')\n .call(styleExtentTexts);\n\n axisExtentBottomText\n .text(function(d) { return extremeText(d, false); })\n .each(function(d) { Drawing.font(d3.select(this), d.model.rangeFont); });\n\n brush.ensureAxisBrush(axisOverlays, paperColor, gd);\n};\n\n},{\"../../components/colorscale\":379,\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/gup\":512,\"../../lib/svg_text_utils\":541,\"../../plots/cartesian/axes\":566,\"./axisbrush\":898,\"./constants\":902,\"./helpers\":904,\"./lines\":906,\"@plotly/d3\":58,\"color-rgba\":91}],909:[function(_dereq_,module,exports){\n'use strict';\n\nvar parcoords = _dereq_('./parcoords');\nvar prepareRegl = _dereq_('../../lib/prepare_regl');\nvar isVisible = _dereq_('./helpers').isVisible;\nvar reglPrecompiled = {};\n\nfunction newIndex(visibleIndices, orig, dim) {\n var origIndex = orig.indexOf(dim);\n var currentIndex = visibleIndices.indexOf(origIndex);\n if(currentIndex === -1) {\n // invisible dimensions initially go to the end\n currentIndex += orig.length;\n }\n return currentIndex;\n}\n\nfunction sorter(visibleIndices, orig) {\n return function sorter(d1, d2) {\n return (\n newIndex(visibleIndices, orig, d1) -\n newIndex(visibleIndices, orig, d2)\n );\n };\n}\n\nvar exports = module.exports = function plot(gd, cdModule) {\n var fullLayout = gd._fullLayout;\n\n var success = prepareRegl(gd, [], reglPrecompiled);\n if(!success) return;\n\n var currentDims = {};\n var initialDims = {};\n var fullIndices = {};\n var inputIndices = {};\n\n var size = fullLayout._size;\n\n cdModule.forEach(function(d, i) {\n var trace = d[0].trace;\n fullIndices[i] = trace.index;\n var iIn = inputIndices[i] = trace._fullInput.index;\n currentDims[i] = gd.data[iIn].dimensions;\n initialDims[i] = gd.data[iIn].dimensions.slice();\n });\n\n var filterChanged = function(i, initialDimIndex, newRanges) {\n // Have updated `constraintrange` data on `gd.data` and raise `Plotly.restyle` event\n // without having to incur heavy UI blocking due to an actual `Plotly.restyle` call\n\n var dim = initialDims[i][initialDimIndex];\n var newConstraints = newRanges.map(function(r) { return r.slice(); });\n\n // Store constraint range in preGUI\n // This one doesn't work if it's stored in pieces in _storeDirectGUIEdit\n // because it's an array of variable dimensionality. So store the whole\n // thing at once manually.\n var aStr = 'dimensions[' + initialDimIndex + '].constraintrange';\n var preGUI = fullLayout._tracePreGUI[gd._fullData[fullIndices[i]]._fullInput.uid];\n if(preGUI[aStr] === undefined) {\n var initialVal = dim.constraintrange;\n preGUI[aStr] = initialVal || null;\n }\n\n var fullDimension = gd._fullData[fullIndices[i]].dimensions[initialDimIndex];\n\n if(!newConstraints.length) {\n delete dim.constraintrange;\n delete fullDimension.constraintrange;\n newConstraints = null;\n } else {\n if(newConstraints.length === 1) newConstraints = newConstraints[0];\n dim.constraintrange = newConstraints;\n fullDimension.constraintrange = newConstraints.slice();\n // wrap in another array for restyle event data\n newConstraints = [newConstraints];\n }\n\n var restyleData = {};\n restyleData[aStr] = newConstraints;\n gd.emit('plotly_restyle', [restyleData, [inputIndices[i]]]);\n };\n\n var hover = function(eventData) {\n gd.emit('plotly_hover', eventData);\n };\n\n var unhover = function(eventData) {\n gd.emit('plotly_unhover', eventData);\n };\n\n var axesMoved = function(i, visibleIndices) {\n // Have updated order data on `gd.data` and raise `Plotly.restyle` event\n // without having to incur heavy UI blocking due to an actual `Plotly.restyle` call\n\n // drag&drop sorting of the visible dimensions\n var orig = sorter(visibleIndices, initialDims[i].filter(isVisible));\n currentDims[i].sort(orig);\n\n // invisible dimensions are not interpreted in the context of drag&drop sorting as an invisible dimension\n // cannot be dragged; they're interspersed into their original positions by this subsequent merging step\n initialDims[i].filter(function(d) {return !isVisible(d);})\n .sort(function(d) {\n // subsequent splicing to be done left to right, otherwise indices may be incorrect\n return initialDims[i].indexOf(d);\n })\n .forEach(function(d) {\n currentDims[i].splice(currentDims[i].indexOf(d), 1); // remove from the end\n currentDims[i].splice(initialDims[i].indexOf(d), 0, d); // insert at original index\n });\n\n // TODO: we can't really store this part of the interaction state\n // directly as below, since it incudes data arrays. If we want to\n // persist column order we may have to do something special for this\n // case to just store the order itself.\n // Registry.call('_storeDirectGUIEdit',\n // gd.data[inputIndices[i]],\n // fullLayout._tracePreGUI[gd._fullData[fullIndices[i]]._fullInput.uid],\n // {dimensions: currentDims[i]}\n // );\n\n gd.emit('plotly_restyle', [{dimensions: [currentDims[i]]}, [inputIndices[i]]]);\n };\n\n parcoords(\n gd,\n cdModule,\n { // layout\n width: size.w,\n height: size.h,\n margin: {\n t: size.t,\n r: size.r,\n b: size.b,\n l: size.l\n }\n },\n { // callbacks\n filterChanged: filterChanged,\n hover: hover,\n unhover: unhover,\n axesMoved: axesMoved\n }\n );\n};\n\nexports.reglPrecompiled = reglPrecompiled;\n\n},{\"../../lib/prepare_regl\":528,\"./helpers\":904,\"./parcoords\":908}],910:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar textFontAttrs = fontAttrs({\n editType: 'plot',\n arrayOk: true,\n colorEditType: 'plot',\n});\n\nmodule.exports = {\n labels: {\n valType: 'data_array',\n editType: 'calc',\n },\n // equivalent of x0 and dx, if label is missing\n label0: {\n valType: 'number',\n dflt: 0,\n editType: 'calc',\n },\n dlabel: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n\n values: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n marker: {\n colors: {\n valType: 'data_array', // TODO 'color_array' ?\n editType: 'calc',\n },\n\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n arrayOk: true,\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n arrayOk: true,\n editType: 'style',\n },\n editType: 'calc'\n },\n editType: 'calc'\n },\n\n text: {\n valType: 'data_array',\n editType: 'plot',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'style',\n },\n\n// 'see eg:'\n// 'https://www.e-education.psu.edu/natureofgeoinfo/sites/www.e-education.psu.edu.natureofgeoinfo/files/image/hisp_pies.gif',\n// '(this example involves a map too - may someday be a whole trace type',\n// 'of its own. but the point is the size of the whole pie is important.)'\n scalegroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n\n // labels (legend is handled by plots.attributes.showlegend and layout.hiddenlabels)\n textinfo: {\n valType: 'flaglist',\n flags: ['label', 'text', 'value', 'percent'],\n extras: ['none'],\n editType: 'calc',\n },\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['label', 'text', 'value', 'percent', 'name']\n }),\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['label', 'color', 'value', 'percent', 'text']\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['label', 'color', 'value', 'percent', 'text']\n }),\n textposition: {\n valType: 'enumerated',\n values: ['inside', 'outside', 'auto', 'none'],\n dflt: 'auto',\n arrayOk: true,\n editType: 'plot',\n },\n textfont: extendFlat({}, textFontAttrs, {\n }),\n insidetextorientation: {\n valType: 'enumerated',\n values: ['horizontal', 'radial', 'tangential', 'auto'],\n dflt: 'auto',\n editType: 'plot',\n },\n insidetextfont: extendFlat({}, textFontAttrs, {\n }),\n outsidetextfont: extendFlat({}, textFontAttrs, {\n }),\n automargin: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n\n title: {\n text: {\n valType: 'string',\n dflt: '',\n editType: 'plot',\n },\n font: extendFlat({}, textFontAttrs, {\n }),\n position: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle center',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n editType: 'plot',\n },\n\n editType: 'plot'\n },\n\n // position and shape\n domain: domainAttrs({name: 'pie', trace: true, editType: 'calc'}),\n\n hole: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n },\n\n // ordering and direction\n sort: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n direction: {\n /**\n * there are two common conventions, both of which place the first\n * (largest, if sorted) slice with its left edge at 12 o'clock but\n * succeeding slices follow either cw or ccw from there.\n *\n * see http://visage.co/data-visualization-101-pie-charts/\n */\n valType: 'enumerated',\n values: ['clockwise', 'counterclockwise'],\n dflt: 'counterclockwise',\n editType: 'calc',\n },\n rotation: {\n valType: 'angle',\n dflt: 0,\n editType: 'calc',\n },\n\n pull: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n arrayOk: true,\n editType: 'calc',\n },\n\n _deprecated: {\n title: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n titlefont: extendFlat({}, textFontAttrs, {\n }),\n titleposition: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle center',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n editType: 'calc',\n }\n }\n};\n\n},{\"../../components/color/attributes\":366,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/domain\":593,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642}],911:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'pie';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":628}],912:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar tinycolor = _dereq_('tinycolor2');\n\nvar Color = _dereq_('../../components/color');\n\nvar extendedColorWayList = {};\n\nfunction calc(gd, trace) {\n var cd = [];\n\n var fullLayout = gd._fullLayout;\n var hiddenLabels = fullLayout.hiddenlabels || [];\n\n var labels = trace.labels;\n var colors = trace.marker.colors || [];\n var vals = trace.values;\n var len = trace._length;\n var hasValues = trace._hasValues && len;\n\n var i, pt;\n\n if(trace.dlabel) {\n labels = new Array(len);\n for(i = 0; i < len; i++) {\n labels[i] = String(trace.label0 + i * trace.dlabel);\n }\n }\n\n var allThisTraceLabels = {};\n var pullColor = makePullColorFn(fullLayout['_' + trace.type + 'colormap']);\n var vTotal = 0;\n var isAggregated = false;\n\n for(i = 0; i < len; i++) {\n var v, label, hidden;\n if(hasValues) {\n v = vals[i];\n if(!isNumeric(v)) continue;\n v = +v;\n } else v = 1;\n\n label = labels[i];\n if(label === undefined || label === '') label = i;\n label = String(label);\n\n var thisLabelIndex = allThisTraceLabels[label];\n if(thisLabelIndex === undefined) {\n allThisTraceLabels[label] = cd.length;\n\n hidden = hiddenLabels.indexOf(label) !== -1;\n\n if(!hidden) vTotal += v;\n\n cd.push({\n v: v,\n label: label,\n color: pullColor(colors[i], label),\n i: i,\n pts: [i],\n hidden: hidden\n });\n } else {\n isAggregated = true;\n\n pt = cd[thisLabelIndex];\n pt.v += v;\n pt.pts.push(i);\n if(!pt.hidden) vTotal += v;\n\n if(pt.color === false && colors[i]) {\n pt.color = pullColor(colors[i], label);\n }\n }\n }\n\n // Drop aggregate sums of value 0 or less\n cd = cd.filter(function(elem) { return elem.v >= 0; });\n\n var shouldSort = (trace.type === 'funnelarea') ? isAggregated : trace.sort;\n if(shouldSort) cd.sort(function(a, b) { return b.v - a.v; });\n\n // include the sum of all values in the first point\n if(cd[0]) cd[0].vTotal = vTotal;\n\n return cd;\n}\n\nfunction makePullColorFn(colorMap) {\n return function pullColor(color, id) {\n if(!color) return false;\n\n color = tinycolor(color);\n if(!color.isValid()) return false;\n\n color = Color.addOpacity(color, color.getAlpha());\n if(!colorMap[id]) colorMap[id] = color;\n\n return color;\n };\n}\n\n/*\n * `calc` filled in (and collated) explicit colors.\n * Now we need to propagate these explicit colors to other traces,\n * and fill in default colors.\n * This is done after sorting, so we pick defaults\n * in the order slices will be displayed\n */\nfunction crossTraceCalc(gd, plotinfo) { // TODO: should we name the second argument opts?\n var desiredType = (plotinfo || {}).type;\n if(!desiredType) desiredType = 'pie';\n\n var fullLayout = gd._fullLayout;\n var calcdata = gd.calcdata;\n var colorWay = fullLayout[desiredType + 'colorway'];\n var colorMap = fullLayout['_' + desiredType + 'colormap'];\n\n if(fullLayout['extend' + desiredType + 'colors']) {\n colorWay = generateExtendedColors(colorWay, extendedColorWayList);\n }\n var dfltColorCount = 0;\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var traceType = cd[0].trace.type;\n if(traceType !== desiredType) continue;\n\n for(var j = 0; j < cd.length; j++) {\n var pt = cd[j];\n if(pt.color === false) {\n // have we seen this label and assigned a color to it in a previous trace?\n if(colorMap[pt.label]) {\n pt.color = colorMap[pt.label];\n } else {\n colorMap[pt.label] = pt.color = colorWay[dfltColorCount % colorWay.length];\n dfltColorCount++;\n }\n }\n }\n }\n}\n\n/**\n * pick a default color from the main default set, augmented by\n * itself lighter then darker before repeating\n */\nfunction generateExtendedColors(colorList, extendedColorWays) {\n var i;\n var colorString = JSON.stringify(colorList);\n var colors = extendedColorWays[colorString];\n if(!colors) {\n colors = colorList.slice();\n\n for(i = 0; i < colorList.length; i++) {\n colors.push(tinycolor(colorList[i]).lighten(20).toHexString());\n }\n\n for(i = 0; i < colorList.length; i++) {\n colors.push(tinycolor(colorList[i]).darken(20).toHexString());\n }\n extendedColorWays[colorString] = colors;\n }\n\n return colors;\n}\n\nmodule.exports = {\n calc: calc,\n crossTraceCalc: crossTraceCalc,\n\n makePullColorFn: makePullColorFn,\n generateExtendedColors: generateExtendedColors\n};\n\n},{\"../../components/color\":367,\"fast-isnumeric\":190,\"tinycolor2\":313}],913:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\n\nfunction handleLabelsAndValues(labels, values) {\n var hasLabels = Array.isArray(labels);\n var hasValues = Lib.isArrayOrTypedArray(values);\n var len = Math.min(\n hasLabels ? labels.length : Infinity,\n hasValues ? values.length : Infinity\n );\n\n if(!isFinite(len)) len = 0;\n\n if(len && hasValues) {\n var hasPositive;\n for(var i = 0; i < len; i++) {\n var v = values[i];\n if(isNumeric(v) && v > 0) {\n hasPositive = true;\n break;\n }\n }\n if(!hasPositive) len = 0;\n }\n\n return {\n hasLabels: hasLabels,\n hasValues: hasValues,\n len: len\n };\n}\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var values = coerce('values');\n\n var res = handleLabelsAndValues(labels, values);\n var len = res.len;\n traceOut._hasLabels = res.hasLabels;\n traceOut._hasValues = res.hasValues;\n\n if(!traceOut._hasLabels &&\n traceOut._hasValues\n ) {\n coerce('label0');\n coerce('dlabel');\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n traceOut._length = len;\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color');\n\n coerce('marker.colors');\n\n coerce('scalegroup');\n // TODO: hole needs to be coerced to the same value within a scaleegroup\n\n var textData = coerce('text');\n var textTemplate = coerce('texttemplate');\n var textInfo;\n if(!textTemplate) textInfo = coerce('textinfo', Array.isArray(textData) ? 'text+percent' : 'percent');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n if(textTemplate || (textInfo && textInfo !== 'none')) {\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n\n var hasBoth = Array.isArray(textposition) || textposition === 'auto';\n var hasOutside = hasBoth || textposition === 'outside';\n if(hasOutside) {\n coerce('automargin');\n }\n\n if(textposition === 'inside' || textposition === 'auto' || Array.isArray(textposition)) {\n coerce('insidetextorientation');\n }\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n var hole = coerce('hole');\n var title = coerce('title.text');\n if(title) {\n var titlePosition = coerce('title.position', hole ? 'middle center' : 'top center');\n if(!hole && titlePosition === 'middle center') traceOut.title.position = 'top center';\n Lib.coerceFont(coerce, 'title.font', layout.font);\n }\n\n coerce('sort');\n coerce('direction');\n coerce('rotation');\n coerce('pull');\n}\n\nmodule.exports = {\n handleLabelsAndValues: handleLabelsAndValues,\n supplyDefaults: supplyDefaults\n};\n\n},{\"../../lib\":515,\"../../plots/domain\":593,\"../bar/defaults\":661,\"./attributes\":910,\"fast-isnumeric\":190}],914:[function(_dereq_,module,exports){\n'use strict';\n\nvar appendArrayMultiPointValues = _dereq_('../../components/fx/helpers').appendArrayMultiPointValues;\n\n// Note: like other eventData routines, this creates the data for hover/unhover/click events\n// but it has a different API and goes through a totally different pathway.\n// So to ensure it doesn't get misused, it's not attached to the Pie module.\nmodule.exports = function eventData(pt, trace) {\n var out = {\n curveNumber: trace.index,\n pointNumbers: pt.pts,\n data: trace._input,\n fullData: trace,\n label: pt.label,\n color: pt.color,\n value: pt.v,\n percent: pt.percent,\n text: pt.text,\n bbox: pt.bbox,\n\n // pt.v (and pt.i below) for backward compatibility\n v: pt.v\n };\n\n // Only include pointNumber if it's unambiguous\n if(pt.pts.length === 1) out.pointNumber = out.i = pt.pts[0];\n\n // Add extra data arrays to the output\n // notice that this is the multi-point version ('s' on the end!)\n // so added data will be arrays matching the pointNumbers array.\n appendArrayMultiPointValues(out, trace, pt.pts);\n\n // don't include obsolete fields in new funnelarea traces\n if(trace.type === 'funnelarea') {\n delete out.v;\n delete out.i;\n }\n\n return out;\n};\n\n},{\"../../components/fx/helpers\":403}],915:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nfunction format(vRounded) {\n return (\n vRounded.indexOf('e') !== -1 ? vRounded.replace(/[.]?0+e/, 'e') :\n vRounded.indexOf('.') !== -1 ? vRounded.replace(/[.]?0+$/, '') :\n vRounded\n );\n}\n\nexports.formatPiePercent = function formatPiePercent(v, separators) {\n var vRounded = format((v * 100).toPrecision(3));\n return Lib.numSeparate(vRounded, separators) + '%';\n};\n\nexports.formatPieValue = function formatPieValue(v, separators) {\n var vRounded = format(v.toPrecision(10));\n return Lib.numSeparate(vRounded, separators);\n};\n\nexports.getFirstFilled = function getFirstFilled(array, indices) {\n if(!Array.isArray(array)) return;\n for(var i = 0; i < indices.length; i++) {\n var v = array[indices[i]];\n if(v || v === 0 || v === '') return v;\n }\n};\n\nexports.castOption = function castOption(item, indices) {\n if(Array.isArray(item)) return exports.getFirstFilled(item, indices);\n else if(item) return item;\n};\n\nexports.getRotationAngle = function(rotation) {\n return (rotation === 'auto' ? 0 : rotation) * Math.PI / 180;\n};\n\n},{\"../../lib\":515}],916:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n layoutAttributes: _dereq_('./layout_attributes'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style'),\n styleOne: _dereq_('./style_one'),\n\n moduleType: 'trace',\n name: 'pie',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['pie-like', 'pie', 'showLegend'],\n meta: {\n }\n};\n\n},{\"./attributes\":910,\"./base_plot\":911,\"./calc\":912,\"./defaults\":913,\"./layout_attributes\":917,\"./layout_defaults\":918,\"./plot\":919,\"./style\":920,\"./style_one\":921}],917:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n hiddenlabels: {\n valType: 'data_array',\n editType: 'calc',\n },\n piecolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendpiecolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],918:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n coerce('hiddenlabels');\n coerce('piecolorway', layoutOut.colorway);\n coerce('extendpiecolors');\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":917}],919:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Plots = _dereq_('../../plots/plots');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar strScale = Lib.strScale;\nvar strTranslate = Lib.strTranslate;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\n\nvar helpers = _dereq_('./helpers');\nvar eventData = _dereq_('./event_data');\nvar isValidTextValue = _dereq_('../../lib').isValidTextValue;\n\nfunction plot(gd, cdModule) {\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n\n clearMinTextSize('pie', fullLayout);\n\n prerenderTitles(cdModule, gd);\n layoutAreas(cdModule, gs);\n\n var plotGroups = Lib.makeTraceGroups(fullLayout._pielayer, cdModule, 'trace').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n setCoords(cd);\n\n // TODO: miter might look better but can sometimes cause problems\n // maybe miter with a small-ish stroke-miterlimit?\n plotGroup.attr('stroke-linejoin', 'round');\n\n plotGroup.each(function() {\n var slices = d3.select(this).selectAll('g.slice').data(cd);\n\n slices.enter().append('g')\n .classed('slice', true);\n slices.exit().remove();\n\n var quadrants = [\n [[], []], // y<0: x<0, x>=0\n [[], []] // y>=0: x<0, x>=0\n ];\n var hasOutsideText = false;\n\n slices.each(function(pt, i) {\n if(pt.hidden) {\n d3.select(this).selectAll('path,g').remove();\n return;\n }\n\n // to have consistent event data compared to other traces\n pt.pointNumber = pt.i;\n pt.curveNumber = trace.index;\n\n quadrants[pt.pxmid[1] < 0 ? 0 : 1][pt.pxmid[0] < 0 ? 0 : 1].push(pt);\n\n var cx = cd0.cx;\n var cy = cd0.cy;\n var sliceTop = d3.select(this);\n var slicePath = sliceTop.selectAll('path.surface').data([pt]);\n\n slicePath.enter().append('path')\n .classed('surface', true)\n .style({'pointer-events': isStatic ? 'none' : 'all'});\n\n sliceTop.call(attachFxHandlers, gd, cd);\n\n if(trace.pull) {\n var pull = +helpers.castOption(trace.pull, pt.pts) || 0;\n if(pull > 0) {\n cx += pull * pt.pxmid[0];\n cy += pull * pt.pxmid[1];\n }\n }\n\n pt.cxFinal = cx;\n pt.cyFinal = cy;\n\n function arc(start, finish, cw, scale) {\n var dx = scale * (finish[0] - start[0]);\n var dy = scale * (finish[1] - start[1]);\n\n return 'a' +\n (scale * cd0.r) + ',' + (scale * cd0.r) + ' 0 ' +\n pt.largeArc + (cw ? ' 1 ' : ' 0 ') + dx + ',' + dy;\n }\n\n var hole = trace.hole;\n if(pt.v === cd0.vTotal) { // 100% fails bcs arc start and end are identical\n var outerCircle = 'M' + (cx + pt.px0[0]) + ',' + (cy + pt.px0[1]) +\n arc(pt.px0, pt.pxmid, true, 1) +\n arc(pt.pxmid, pt.px0, true, 1) + 'Z';\n if(hole) {\n slicePath.attr('d',\n 'M' + (cx + hole * pt.px0[0]) + ',' + (cy + hole * pt.px0[1]) +\n arc(pt.px0, pt.pxmid, false, hole) +\n arc(pt.pxmid, pt.px0, false, hole) +\n 'Z' + outerCircle);\n } else slicePath.attr('d', outerCircle);\n } else {\n var outerArc = arc(pt.px0, pt.px1, true, 1);\n\n if(hole) {\n var rim = 1 - hole;\n slicePath.attr('d',\n 'M' + (cx + hole * pt.px1[0]) + ',' + (cy + hole * pt.px1[1]) +\n arc(pt.px1, pt.px0, false, hole) +\n 'l' + (rim * pt.px0[0]) + ',' + (rim * pt.px0[1]) +\n outerArc +\n 'Z');\n } else {\n slicePath.attr('d',\n 'M' + cx + ',' + cy +\n 'l' + pt.px0[0] + ',' + pt.px0[1] +\n outerArc +\n 'Z');\n }\n }\n\n // add text\n formatSliceLabel(gd, pt, cd0);\n var textPosition = helpers.castOption(trace.textposition, pt.pts);\n var sliceTextGroup = sliceTop.selectAll('g.slicetext')\n .data(pt.text && (textPosition !== 'none') ? [0] : []);\n\n sliceTextGroup.enter().append('g')\n .classed('slicetext', true);\n sliceTextGroup.exit().remove();\n\n sliceTextGroup.each(function() {\n var sliceText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, textPosition === 'outside' ?\n determineOutsideTextFont(trace, pt, fullLayout.font) :\n determineInsideTextFont(trace, pt, fullLayout.font)\n );\n\n sliceText.text(pt.text)\n .attr({\n 'class': 'slicetext',\n transform: '',\n 'text-anchor': 'middle'\n })\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // position the text relative to the slice\n var textBB = Drawing.bBox(sliceText.node());\n var transform;\n\n if(textPosition === 'outside') {\n transform = transformOutsideText(textBB, pt);\n } else {\n transform = transformInsideText(textBB, pt, cd0);\n if(textPosition === 'auto' && transform.scale < 1) {\n var newFont = Lib.ensureUniformFontSize(gd, trace.outsidetextfont);\n\n sliceText.call(Drawing.font, newFont);\n textBB = Drawing.bBox(sliceText.node());\n\n transform = transformOutsideText(textBB, pt);\n }\n }\n\n var textPosAngle = transform.textPosAngle;\n var textXY = textPosAngle === undefined ? pt.pxmid : getCoords(cd0.r, textPosAngle);\n transform.targetX = cx + textXY[0] * transform.rCenter + (transform.x || 0);\n transform.targetY = cy + textXY[1] * transform.rCenter + (transform.y || 0);\n computeTransform(transform, textBB);\n\n // save some stuff to use later ensure no labels overlap\n if(transform.outside) {\n var targetY = transform.targetY;\n pt.yLabelMin = targetY - textBB.height / 2;\n pt.yLabelMid = targetY;\n pt.yLabelMax = targetY + textBB.height / 2;\n pt.labelExtraX = 0;\n pt.labelExtraY = 0;\n hasOutsideText = true;\n }\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n cd[i].transform = transform;\n\n Lib.setTransormAndDisplay(sliceText, transform);\n });\n });\n\n // add the title\n var titleTextGroup = d3.select(this).selectAll('g.titletext')\n .data(trace.title.text ? [0] : []);\n\n titleTextGroup.enter().append('g')\n .classed('titletext', true);\n titleTextGroup.exit().remove();\n\n titleTextGroup.each(function() {\n var titleText = Lib.ensureSingle(d3.select(this), 'text', '', function(s) {\n // prohibit tex interpretation as above\n s.attr('data-notex', 1);\n });\n\n var txt = trace.title.text;\n if(trace._meta) {\n txt = Lib.templateString(txt, trace._meta);\n }\n\n titleText.text(txt)\n .attr({\n 'class': 'titletext',\n transform: '',\n 'text-anchor': 'middle',\n })\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n\n var transform;\n\n if(trace.title.position === 'middle center') {\n transform = positionTitleInside(cd0);\n } else {\n transform = positionTitleOutside(cd0, gs);\n }\n\n titleText.attr('transform',\n strTranslate(transform.x, transform.y) +\n strScale(Math.min(1, transform.scale)) +\n strTranslate(transform.tx, transform.ty));\n });\n\n // now make sure no labels overlap (at least within one pie)\n if(hasOutsideText) scootLabels(quadrants, trace);\n\n plotTextLines(slices, trace);\n\n if(hasOutsideText && trace.automargin) {\n // TODO if we ever want to improve perf,\n // we could reuse the textBB computed above together\n // with the sliceText transform info\n var traceBbox = Drawing.bBox(plotGroup.node());\n\n var domain = trace.domain;\n var vpw = gs.w * (domain.x[1] - domain.x[0]);\n var vph = gs.h * (domain.y[1] - domain.y[0]);\n var xgap = (0.5 * vpw - cd0.r) / gs.w;\n var ygap = (0.5 * vph - cd0.r) / gs.h;\n\n Plots.autoMargin(gd, 'pie.' + trace.uid + '.automargin', {\n xl: domain.x[0] - xgap,\n xr: domain.x[1] + xgap,\n yb: domain.y[0] - ygap,\n yt: domain.y[1] + ygap,\n l: Math.max(cd0.cx - cd0.r - traceBbox.left, 0),\n r: Math.max(traceBbox.right - (cd0.cx + cd0.r), 0),\n b: Math.max(traceBbox.bottom - (cd0.cy + cd0.r), 0),\n t: Math.max(cd0.cy - cd0.r - traceBbox.top, 0),\n pad: 5\n });\n }\n });\n });\n\n // This is for a bug in Chrome (as of 2015-07-22, and does not affect FF)\n // if insidetextfont and outsidetextfont are different sizes, sometimes the size\n // of an \"em\" gets taken from the wrong element at first so lines are\n // spaced wrong. You just have to tell it to try again later and it gets fixed.\n // I have no idea why we haven't seen this in other contexts. Also, sometimes\n // it gets the initial draw correct but on redraw it gets confused.\n setTimeout(function() {\n plotGroups.selectAll('tspan').each(function() {\n var s = d3.select(this);\n if(s.attr('dy')) s.attr('dy', s.attr('dy'));\n });\n }, 0);\n}\n\n// TODO add support for transition\nfunction plotTextLines(slices, trace) {\n slices.each(function(pt) {\n var sliceTop = d3.select(this);\n\n if(!pt.labelExtraX && !pt.labelExtraY) {\n sliceTop.select('path.textline').remove();\n return;\n }\n\n // first move the text to its new location\n var sliceText = sliceTop.select('g.slicetext text');\n\n pt.transform.targetX += pt.labelExtraX;\n pt.transform.targetY += pt.labelExtraY;\n\n Lib.setTransormAndDisplay(sliceText, pt.transform);\n\n // then add a line to the new location\n var lineStartX = pt.cxFinal + pt.pxmid[0];\n var lineStartY = pt.cyFinal + pt.pxmid[1];\n var textLinePath = 'M' + lineStartX + ',' + lineStartY;\n var finalX = (pt.yLabelMax - pt.yLabelMin) * (pt.pxmid[0] < 0 ? -1 : 1) / 4;\n\n if(pt.labelExtraX) {\n var yFromX = pt.labelExtraX * pt.pxmid[1] / pt.pxmid[0];\n var yNet = pt.yLabelMid + pt.labelExtraY - (pt.cyFinal + pt.pxmid[1]);\n\n if(Math.abs(yFromX) > Math.abs(yNet)) {\n textLinePath +=\n 'l' + (yNet * pt.pxmid[0] / pt.pxmid[1]) + ',' + yNet +\n 'H' + (lineStartX + pt.labelExtraX + finalX);\n } else {\n textLinePath += 'l' + pt.labelExtraX + ',' + yFromX +\n 'v' + (yNet - yFromX) +\n 'h' + finalX;\n }\n } else {\n textLinePath +=\n 'V' + (pt.yLabelMid + pt.labelExtraY) +\n 'h' + finalX;\n }\n\n Lib.ensureSingle(sliceTop, 'path', 'textline')\n .call(Color.stroke, trace.outsidetextfont.color)\n .attr({\n 'stroke-width': Math.min(2, trace.outsidetextfont.size / 8),\n d: textLinePath,\n fill: 'none'\n });\n });\n}\n\nfunction attachFxHandlers(sliceTop, gd, cd) {\n var cd0 = cd[0];\n var cx = cd0.cx;\n var cy = cd0.cy;\n var trace = cd0.trace;\n var isFunnelArea = trace.type === 'funnelarea';\n\n // hover state vars\n // have we drawn a hover label, so it should be cleared later\n if(!('_hasHoverLabel' in trace)) trace._hasHoverLabel = false;\n // have we emitted a hover event, so later an unhover event should be emitted\n // note that click events do not depend on this - you can still get them\n // with hovermode: false or if you were earlier dragging, then clicked\n // in the same slice that you moused up in\n if(!('_hasHoverEvent' in trace)) trace._hasHoverEvent = false;\n\n sliceTop.on('mouseover', function(pt) {\n // in case fullLayout or fullData has changed without a replot\n var fullLayout2 = gd._fullLayout;\n var trace2 = gd._fullData[trace.index];\n\n if(gd._dragging || fullLayout2.hovermode === false) return;\n\n var hoverinfo = trace2.hoverinfo;\n if(Array.isArray(hoverinfo)) {\n // super hacky: we need to pull out the *first* hoverinfo from\n // pt.pts, then put it back into an array in a dummy trace\n // and call castHoverinfo on that.\n // TODO: do we want to have Fx.castHoverinfo somehow handle this?\n // it already takes an array for index, for 2D, so this seems tricky.\n hoverinfo = Fx.castHoverinfo({\n hoverinfo: [helpers.castOption(hoverinfo, pt.pts)],\n _module: trace._module\n }, fullLayout2, 0);\n }\n\n if(hoverinfo === 'all') hoverinfo = 'label+text+value+percent+name';\n\n // in case we dragged over the pie from another subplot,\n // or if hover is turned off\n if(trace2.hovertemplate || (hoverinfo !== 'none' && hoverinfo !== 'skip' && hoverinfo)) {\n var rInscribed = pt.rInscribed || 0;\n var hoverCenterX = cx + pt.pxmid[0] * (1 - rInscribed);\n var hoverCenterY = cy + pt.pxmid[1] * (1 - rInscribed);\n var separators = fullLayout2.separators;\n var text = [];\n\n if(hoverinfo && hoverinfo.indexOf('label') !== -1) text.push(pt.label);\n pt.text = helpers.castOption(trace2.hovertext || trace2.text, pt.pts);\n if(hoverinfo && hoverinfo.indexOf('text') !== -1) {\n var tx = pt.text;\n if(Lib.isValidTextValue(tx)) text.push(tx);\n }\n pt.value = pt.v;\n pt.valueLabel = helpers.formatPieValue(pt.v, separators);\n if(hoverinfo && hoverinfo.indexOf('value') !== -1) text.push(pt.valueLabel);\n pt.percent = pt.v / cd0.vTotal;\n pt.percentLabel = helpers.formatPiePercent(pt.percent, separators);\n if(hoverinfo && hoverinfo.indexOf('percent') !== -1) text.push(pt.percentLabel);\n\n var hoverLabel = trace2.hoverlabel;\n var hoverFont = hoverLabel.font;\n\n var bbox = [];\n Fx.loneHover({\n trace: trace,\n x0: hoverCenterX - rInscribed * cd0.r,\n x1: hoverCenterX + rInscribed * cd0.r,\n y: hoverCenterY,\n _x0: isFunnelArea ? cx + pt.TL[0] : hoverCenterX - rInscribed * cd0.r,\n _x1: isFunnelArea ? cx + pt.TR[0] : hoverCenterX + rInscribed * cd0.r,\n _y0: isFunnelArea ? cy + pt.TL[1] : hoverCenterY - rInscribed * cd0.r,\n _y1: isFunnelArea ? cy + pt.BL[1] : hoverCenterY + rInscribed * cd0.r,\n text: text.join('
'),\n name: (trace2.hovertemplate || hoverinfo.indexOf('name') !== -1) ? trace2.name : undefined,\n idealAlign: pt.pxmid[0] < 0 ? 'left' : 'right',\n color: helpers.castOption(hoverLabel.bgcolor, pt.pts) || pt.color,\n borderColor: helpers.castOption(hoverLabel.bordercolor, pt.pts),\n fontFamily: helpers.castOption(hoverFont.family, pt.pts),\n fontSize: helpers.castOption(hoverFont.size, pt.pts),\n fontColor: helpers.castOption(hoverFont.color, pt.pts),\n nameLength: helpers.castOption(hoverLabel.namelength, pt.pts),\n textAlign: helpers.castOption(hoverLabel.align, pt.pts),\n hovertemplate: helpers.castOption(trace2.hovertemplate, pt.pts),\n hovertemplateLabels: pt,\n eventData: [eventData(pt, trace2)]\n }, {\n container: fullLayout2._hoverlayer.node(),\n outerContainer: fullLayout2._paper.node(),\n gd: gd,\n inOut_bbox: bbox\n });\n pt.bbox = bbox[0];\n\n trace._hasHoverLabel = true;\n }\n\n trace._hasHoverEvent = true;\n gd.emit('plotly_hover', {\n points: [eventData(pt, trace2)],\n event: d3.event\n });\n });\n\n sliceTop.on('mouseout', function(evt) {\n var fullLayout2 = gd._fullLayout;\n var trace2 = gd._fullData[trace.index];\n var pt = d3.select(this).datum();\n\n if(trace._hasHoverEvent) {\n evt.originalEvent = d3.event;\n gd.emit('plotly_unhover', {\n points: [eventData(pt, trace2)],\n event: d3.event\n });\n trace._hasHoverEvent = false;\n }\n\n if(trace._hasHoverLabel) {\n Fx.loneUnhover(fullLayout2._hoverlayer.node());\n trace._hasHoverLabel = false;\n }\n });\n\n sliceTop.on('click', function(pt) {\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change pie to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // mapbox would use this too.\n var fullLayout2 = gd._fullLayout;\n var trace2 = gd._fullData[trace.index];\n\n if(gd._dragging || fullLayout2.hovermode === false) return;\n\n gd._hoverdata = [eventData(pt, trace2)];\n Fx.click(gd, d3.event);\n });\n}\n\nfunction determineOutsideTextFont(trace, pt, layoutFont) {\n var color =\n helpers.castOption(trace.outsidetextfont.color, pt.pts) ||\n helpers.castOption(trace.textfont.color, pt.pts) ||\n layoutFont.color;\n\n var family =\n helpers.castOption(trace.outsidetextfont.family, pt.pts) ||\n helpers.castOption(trace.textfont.family, pt.pts) ||\n layoutFont.family;\n\n var size =\n helpers.castOption(trace.outsidetextfont.size, pt.pts) ||\n helpers.castOption(trace.textfont.size, pt.pts) ||\n layoutFont.size;\n\n return {\n color: color,\n family: family,\n size: size\n };\n}\n\nfunction determineInsideTextFont(trace, pt, layoutFont) {\n var customColor = helpers.castOption(trace.insidetextfont.color, pt.pts);\n if(!customColor && trace._input.textfont) {\n // Why not simply using trace.textfont? Because if not set, it\n // defaults to layout.font which has a default color. But if\n // textfont.color and insidetextfont.color don't supply a value,\n // a contrasting color shall be used.\n customColor = helpers.castOption(trace._input.textfont.color, pt.pts);\n }\n\n var family =\n helpers.castOption(trace.insidetextfont.family, pt.pts) ||\n helpers.castOption(trace.textfont.family, pt.pts) ||\n layoutFont.family;\n\n var size =\n helpers.castOption(trace.insidetextfont.size, pt.pts) ||\n helpers.castOption(trace.textfont.size, pt.pts) ||\n layoutFont.size;\n\n return {\n color: customColor || Color.contrast(pt.color),\n family: family,\n size: size\n };\n}\n\nfunction prerenderTitles(cdModule, gd) {\n var cd0, trace;\n\n // Determine the width and height of the title for each pie.\n for(var i = 0; i < cdModule.length; i++) {\n cd0 = cdModule[i][0];\n trace = cd0.trace;\n\n if(trace.title.text) {\n var txt = trace.title.text;\n if(trace._meta) {\n txt = Lib.templateString(txt, trace._meta);\n }\n\n var dummyTitle = Drawing.tester.append('text')\n .attr('data-notex', 1)\n .text(txt)\n .call(Drawing.font, trace.title.font)\n .call(svgTextUtils.convertToTspans, gd);\n var bBox = Drawing.bBox(dummyTitle.node(), true);\n cd0.titleBox = {\n width: bBox.width,\n height: bBox.height,\n };\n dummyTitle.remove();\n }\n }\n}\n\nfunction transformInsideText(textBB, pt, cd0) {\n var r = cd0.r || pt.rpx1;\n var rInscribed = pt.rInscribed;\n\n var isEmpty = pt.startangle === pt.stopangle;\n if(isEmpty) {\n return {\n rCenter: 1 - rInscribed,\n scale: 0,\n rotate: 0,\n textPosAngle: 0\n };\n }\n\n var ring = pt.ring;\n var isCircle = (ring === 1) && (Math.abs(pt.startangle - pt.stopangle) === Math.PI * 2);\n\n var halfAngle = pt.halfangle;\n var midAngle = pt.midangle;\n\n var orientation = cd0.trace.insidetextorientation;\n var isHorizontal = orientation === 'horizontal';\n var isTangential = orientation === 'tangential';\n var isRadial = orientation === 'radial';\n var isAuto = orientation === 'auto';\n\n var allTransforms = [];\n var newT;\n\n if(!isAuto) {\n // max size if text is placed (horizontally) at the top or bottom of the arc\n\n var considerCrossing = function(angle, key) {\n if(isCrossing(pt, angle)) {\n var dStart = Math.abs(angle - pt.startangle);\n var dStop = Math.abs(angle - pt.stopangle);\n\n var closestEdge = dStart < dStop ? dStart : dStop;\n\n if(key === 'tan') {\n newT = calcTanTransform(textBB, r, ring, closestEdge, 0);\n } else { // case of 'rad'\n newT = calcRadTransform(textBB, r, ring, closestEdge, Math.PI / 2);\n }\n newT.textPosAngle = angle;\n\n allTransforms.push(newT);\n }\n };\n\n // to cover all cases with trace.rotation added\n var i;\n if(isHorizontal || isTangential) {\n // top\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * i, 'tan');\n // bottom\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * (i + 1), 'tan');\n }\n if(isHorizontal || isRadial) {\n // left\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * (i + 1.5), 'rad');\n // right\n for(i = 4; i >= -4; i -= 2) considerCrossing(Math.PI * (i + 0.5), 'rad');\n }\n }\n\n if(isCircle || isAuto || isHorizontal) {\n // max size text can be inserted inside without rotating it\n // this inscribes the text rectangle in a circle, which is then inscribed\n // in the slice, so it will be an underestimate, which some day we may want\n // to improve so this case can get more use\n var textDiameter = Math.sqrt(textBB.width * textBB.width + textBB.height * textBB.height);\n\n newT = {\n scale: rInscribed * r * 2 / textDiameter,\n\n // and the center position and rotation in this case\n rCenter: 1 - rInscribed,\n rotate: 0\n };\n\n newT.textPosAngle = (pt.startangle + pt.stopangle) / 2;\n if(newT.scale >= 1) return newT;\n\n allTransforms.push(newT);\n }\n\n if(isAuto || isRadial) {\n newT = calcRadTransform(textBB, r, ring, halfAngle, midAngle);\n newT.textPosAngle = (pt.startangle + pt.stopangle) / 2;\n allTransforms.push(newT);\n }\n\n if(isAuto || isTangential) {\n newT = calcTanTransform(textBB, r, ring, halfAngle, midAngle);\n newT.textPosAngle = (pt.startangle + pt.stopangle) / 2;\n allTransforms.push(newT);\n }\n\n var id = 0;\n var maxScale = 0;\n for(var k = 0; k < allTransforms.length; k++) {\n var s = allTransforms[k].scale;\n if(maxScale < s) {\n maxScale = s;\n id = k;\n }\n\n if(!isAuto && maxScale >= 1) {\n // respect test order for non-auto options\n break;\n }\n }\n return allTransforms[id];\n}\n\nfunction isCrossing(pt, angle) {\n var start = pt.startangle;\n var stop = pt.stopangle;\n return (\n (start > angle && angle > stop) ||\n (start < angle && angle < stop)\n );\n}\n\nfunction calcRadTransform(textBB, r, ring, halfAngle, midAngle) {\n r = Math.max(0, r - 2 * TEXTPAD);\n\n // max size if text is rotated radially\n var a = textBB.width / textBB.height;\n var s = calcMaxHalfSize(a, halfAngle, r, ring);\n return {\n scale: s * 2 / textBB.height,\n rCenter: calcRCenter(a, s / r),\n rotate: calcRotate(midAngle)\n };\n}\n\nfunction calcTanTransform(textBB, r, ring, halfAngle, midAngle) {\n r = Math.max(0, r - 2 * TEXTPAD);\n\n // max size if text is rotated tangentially\n var a = textBB.height / textBB.width;\n var s = calcMaxHalfSize(a, halfAngle, r, ring);\n return {\n scale: s * 2 / textBB.width,\n rCenter: calcRCenter(a, s / r),\n rotate: calcRotate(midAngle + Math.PI / 2)\n };\n}\n\nfunction calcRCenter(a, b) {\n return Math.cos(b) - a * b;\n}\n\nfunction calcRotate(t) {\n return (180 / Math.PI * t + 720) % 180 - 90;\n}\n\nfunction calcMaxHalfSize(a, halfAngle, r, ring) {\n var q = a + 1 / (2 * Math.tan(halfAngle));\n return r * Math.min(\n 1 / (Math.sqrt(q * q + 0.5) + q),\n ring / (Math.sqrt(a * a + ring / 2) + a)\n );\n}\n\nfunction getInscribedRadiusFraction(pt, cd0) {\n if(pt.v === cd0.vTotal && !cd0.trace.hole) return 1;// special case of 100% with no hole\n\n return Math.min(1 / (1 + 1 / Math.sin(pt.halfangle)), pt.ring / 2);\n}\n\nfunction transformOutsideText(textBB, pt) {\n var x = pt.pxmid[0];\n var y = pt.pxmid[1];\n var dx = textBB.width / 2;\n var dy = textBB.height / 2;\n\n if(x < 0) dx *= -1;\n if(y < 0) dy *= -1;\n\n return {\n scale: 1,\n rCenter: 1,\n rotate: 0,\n x: dx + Math.abs(dy) * (dx > 0 ? 1 : -1) / 2,\n y: dy / (1 + x * x / (y * y)),\n outside: true\n };\n}\n\nfunction positionTitleInside(cd0) {\n var textDiameter =\n Math.sqrt(cd0.titleBox.width * cd0.titleBox.width + cd0.titleBox.height * cd0.titleBox.height);\n return {\n x: cd0.cx,\n y: cd0.cy,\n scale: cd0.trace.hole * cd0.r * 2 / textDiameter,\n tx: 0,\n ty: - cd0.titleBox.height / 2 + cd0.trace.title.font.size\n };\n}\n\nfunction positionTitleOutside(cd0, plotSize) {\n var scaleX = 1;\n var scaleY = 1;\n var maxPull;\n\n var trace = cd0.trace;\n // position of the baseline point of the text box in the plot, before scaling.\n // we anchored the text in the middle, so the baseline is on the bottom middle\n // of the first line of text.\n var topMiddle = {\n x: cd0.cx,\n y: cd0.cy\n };\n // relative translation of the text box after scaling\n var translate = {\n tx: 0,\n ty: 0\n };\n\n // we reason below as if the baseline is the top middle point of the text box.\n // so we must add the font size to approximate the y-coord. of the top.\n // note that this correction must happen after scaling.\n translate.ty += trace.title.font.size;\n maxPull = getMaxPull(trace);\n\n if(trace.title.position.indexOf('top') !== -1) {\n topMiddle.y -= (1 + maxPull) * cd0.r;\n translate.ty -= cd0.titleBox.height;\n } else if(trace.title.position.indexOf('bottom') !== -1) {\n topMiddle.y += (1 + maxPull) * cd0.r;\n }\n\n var rx = applyAspectRatio(cd0.r, cd0.trace.aspectratio);\n\n var maxWidth = plotSize.w * (trace.domain.x[1] - trace.domain.x[0]) / 2;\n if(trace.title.position.indexOf('left') !== -1) {\n // we start the text at the left edge of the pie\n maxWidth = maxWidth + rx;\n topMiddle.x -= (1 + maxPull) * rx;\n translate.tx += cd0.titleBox.width / 2;\n } else if(trace.title.position.indexOf('center') !== -1) {\n maxWidth *= 2;\n } else if(trace.title.position.indexOf('right') !== -1) {\n maxWidth = maxWidth + rx;\n topMiddle.x += (1 + maxPull) * rx;\n translate.tx -= cd0.titleBox.width / 2;\n }\n scaleX = maxWidth / cd0.titleBox.width;\n scaleY = getTitleSpace(cd0, plotSize) / cd0.titleBox.height;\n return {\n x: topMiddle.x,\n y: topMiddle.y,\n scale: Math.min(scaleX, scaleY),\n tx: translate.tx,\n ty: translate.ty\n };\n}\n\nfunction applyAspectRatio(x, aspectratio) {\n return x / ((aspectratio === undefined) ? 1 : aspectratio);\n}\n\nfunction getTitleSpace(cd0, plotSize) {\n var trace = cd0.trace;\n var pieBoxHeight = plotSize.h * (trace.domain.y[1] - trace.domain.y[0]);\n // use at most half of the plot for the title\n return Math.min(cd0.titleBox.height, pieBoxHeight / 2);\n}\n\nfunction getMaxPull(trace) {\n var maxPull = trace.pull;\n if(!maxPull) return 0;\n\n var j;\n if(Array.isArray(maxPull)) {\n maxPull = 0;\n for(j = 0; j < trace.pull.length; j++) {\n if(trace.pull[j] > maxPull) maxPull = trace.pull[j];\n }\n }\n return maxPull;\n}\n\nfunction scootLabels(quadrants, trace) {\n var xHalf, yHalf, equatorFirst, farthestX, farthestY,\n xDiffSign, yDiffSign, thisQuad, oppositeQuad,\n wholeSide, i, thisQuadOutside, firstOppositeOutsidePt;\n\n function topFirst(a, b) { return a.pxmid[1] - b.pxmid[1]; }\n function bottomFirst(a, b) { return b.pxmid[1] - a.pxmid[1]; }\n\n function scootOneLabel(thisPt, prevPt) {\n if(!prevPt) prevPt = {};\n\n var prevOuterY = prevPt.labelExtraY + (yHalf ? prevPt.yLabelMax : prevPt.yLabelMin);\n var thisInnerY = yHalf ? thisPt.yLabelMin : thisPt.yLabelMax;\n var thisOuterY = yHalf ? thisPt.yLabelMax : thisPt.yLabelMin;\n var thisSliceOuterY = thisPt.cyFinal + farthestY(thisPt.px0[1], thisPt.px1[1]);\n var newExtraY = prevOuterY - thisInnerY;\n\n var xBuffer, i, otherPt, otherOuterY, otherOuterX, newExtraX;\n\n // make sure this label doesn't overlap other labels\n // this *only* has us move these labels vertically\n if(newExtraY * yDiffSign > 0) thisPt.labelExtraY = newExtraY;\n\n // make sure this label doesn't overlap any slices\n if(!Array.isArray(trace.pull)) return; // this can only happen with array pulls\n\n for(i = 0; i < wholeSide.length; i++) {\n otherPt = wholeSide[i];\n\n // overlap can only happen if the other point is pulled more than this one\n if(otherPt === thisPt || (\n (helpers.castOption(trace.pull, thisPt.pts) || 0) >=\n (helpers.castOption(trace.pull, otherPt.pts) || 0))\n ) {\n continue;\n }\n\n if((thisPt.pxmid[1] - otherPt.pxmid[1]) * yDiffSign > 0) {\n // closer to the equator - by construction all of these happen first\n // move the text vertically to get away from these slices\n otherOuterY = otherPt.cyFinal + farthestY(otherPt.px0[1], otherPt.px1[1]);\n newExtraY = otherOuterY - thisInnerY - thisPt.labelExtraY;\n\n if(newExtraY * yDiffSign > 0) thisPt.labelExtraY += newExtraY;\n } else if((thisOuterY + thisPt.labelExtraY - thisSliceOuterY) * yDiffSign > 0) {\n // farther from the equator - happens after we've done all the\n // vertical moving we're going to do\n // move horizontally to get away from these more polar slices\n\n // if we're moving horz. based on a slice that's several slices away from this one\n // then we need some extra space for the lines to labels between them\n xBuffer = 3 * xDiffSign * Math.abs(i - wholeSide.indexOf(thisPt));\n\n otherOuterX = otherPt.cxFinal + farthestX(otherPt.px0[0], otherPt.px1[0]);\n newExtraX = otherOuterX + xBuffer - (thisPt.cxFinal + thisPt.pxmid[0]) - thisPt.labelExtraX;\n\n if(newExtraX * xDiffSign > 0) thisPt.labelExtraX += newExtraX;\n }\n }\n }\n\n for(yHalf = 0; yHalf < 2; yHalf++) {\n equatorFirst = yHalf ? topFirst : bottomFirst;\n farthestY = yHalf ? Math.max : Math.min;\n yDiffSign = yHalf ? 1 : -1;\n\n for(xHalf = 0; xHalf < 2; xHalf++) {\n farthestX = xHalf ? Math.max : Math.min;\n xDiffSign = xHalf ? 1 : -1;\n\n // first sort the array\n // note this is a copy of cd, so cd itself doesn't get sorted\n // but we can still modify points in place.\n thisQuad = quadrants[yHalf][xHalf];\n thisQuad.sort(equatorFirst);\n\n oppositeQuad = quadrants[1 - yHalf][xHalf];\n wholeSide = oppositeQuad.concat(thisQuad);\n\n thisQuadOutside = [];\n for(i = 0; i < thisQuad.length; i++) {\n if(thisQuad[i].yLabelMid !== undefined) thisQuadOutside.push(thisQuad[i]);\n }\n\n firstOppositeOutsidePt = false;\n for(i = 0; yHalf && i < oppositeQuad.length; i++) {\n if(oppositeQuad[i].yLabelMid !== undefined) {\n firstOppositeOutsidePt = oppositeQuad[i];\n break;\n }\n }\n\n // each needs to avoid the previous\n for(i = 0; i < thisQuadOutside.length; i++) {\n var prevPt = i && thisQuadOutside[i - 1];\n // bottom half needs to avoid the first label of the top half\n // top half we still need to call scootOneLabel on the first slice\n // so we can avoid other slices, but we don't pass a prevPt\n if(firstOppositeOutsidePt && !i) prevPt = firstOppositeOutsidePt;\n scootOneLabel(thisQuadOutside[i], prevPt);\n }\n }\n }\n}\n\nfunction layoutAreas(cdModule, plotSize) {\n var scaleGroups = [];\n\n // figure out the center and maximum radius\n for(var i = 0; i < cdModule.length; i++) {\n var cd0 = cdModule[i][0];\n var trace = cd0.trace;\n\n var domain = trace.domain;\n var width = plotSize.w * (domain.x[1] - domain.x[0]);\n var height = plotSize.h * (domain.y[1] - domain.y[0]);\n // leave some space for the title, if it will be displayed outside\n if(trace.title.text && trace.title.position !== 'middle center') {\n height -= getTitleSpace(cd0, plotSize);\n }\n\n var rx = width / 2;\n var ry = height / 2;\n if(trace.type === 'funnelarea' && !trace.scalegroup) {\n ry /= trace.aspectratio;\n }\n\n cd0.r = Math.min(rx, ry) / (1 + getMaxPull(trace));\n\n cd0.cx = plotSize.l + plotSize.w * (trace.domain.x[1] + trace.domain.x[0]) / 2;\n cd0.cy = plotSize.t + plotSize.h * (1 - trace.domain.y[0]) - height / 2;\n if(trace.title.text && trace.title.position.indexOf('bottom') !== -1) {\n cd0.cy -= getTitleSpace(cd0, plotSize);\n }\n\n if(trace.scalegroup && scaleGroups.indexOf(trace.scalegroup) === -1) {\n scaleGroups.push(trace.scalegroup);\n }\n }\n\n groupScale(cdModule, scaleGroups);\n}\n\nfunction groupScale(cdModule, scaleGroups) {\n var cd0, i, trace;\n\n // scale those that are grouped\n for(var k = 0; k < scaleGroups.length; k++) {\n var min = Infinity;\n var g = scaleGroups[k];\n\n for(i = 0; i < cdModule.length; i++) {\n cd0 = cdModule[i][0];\n trace = cd0.trace;\n\n if(trace.scalegroup === g) {\n var area;\n if(trace.type === 'pie') {\n area = cd0.r * cd0.r;\n } else if(trace.type === 'funnelarea') {\n var rx, ry;\n\n if(trace.aspectratio > 1) {\n rx = cd0.r;\n ry = rx / trace.aspectratio;\n } else {\n ry = cd0.r;\n rx = ry * trace.aspectratio;\n }\n\n rx *= (1 + trace.baseratio) / 2;\n\n area = rx * ry;\n }\n\n min = Math.min(min, area / cd0.vTotal);\n }\n }\n\n for(i = 0; i < cdModule.length; i++) {\n cd0 = cdModule[i][0];\n trace = cd0.trace;\n if(trace.scalegroup === g) {\n var v = min * cd0.vTotal;\n if(trace.type === 'funnelarea') {\n v /= (1 + trace.baseratio) / 2;\n v /= trace.aspectratio;\n }\n\n cd0.r = Math.sqrt(v);\n }\n }\n }\n}\n\nfunction setCoords(cd) {\n var cd0 = cd[0];\n var r = cd0.r;\n var trace = cd0.trace;\n var currentAngle = helpers.getRotationAngle(trace.rotation);\n var angleFactor = 2 * Math.PI / cd0.vTotal;\n var firstPt = 'px0';\n var lastPt = 'px1';\n\n var i, cdi, currentCoords;\n\n if(trace.direction === 'counterclockwise') {\n for(i = 0; i < cd.length; i++) {\n if(!cd[i].hidden) break; // find the first non-hidden slice\n }\n if(i === cd.length) return; // all slices hidden\n\n currentAngle += angleFactor * cd[i].v;\n angleFactor *= -1;\n firstPt = 'px1';\n lastPt = 'px0';\n }\n\n currentCoords = getCoords(r, currentAngle);\n\n for(i = 0; i < cd.length; i++) {\n cdi = cd[i];\n if(cdi.hidden) continue;\n\n cdi[firstPt] = currentCoords;\n\n cdi.startangle = currentAngle;\n currentAngle += angleFactor * cdi.v / 2;\n cdi.pxmid = getCoords(r, currentAngle);\n cdi.midangle = currentAngle;\n currentAngle += angleFactor * cdi.v / 2;\n currentCoords = getCoords(r, currentAngle);\n cdi.stopangle = currentAngle;\n\n cdi[lastPt] = currentCoords;\n\n cdi.largeArc = (cdi.v > cd0.vTotal / 2) ? 1 : 0;\n\n cdi.halfangle = Math.PI * Math.min(cdi.v / cd0.vTotal, 0.5);\n cdi.ring = 1 - trace.hole;\n cdi.rInscribed = getInscribedRadiusFraction(cdi, cd0);\n }\n}\n\nfunction getCoords(r, angle) {\n return [r * Math.sin(angle), -r * Math.cos(angle)];\n}\n\nfunction formatSliceLabel(gd, pt, cd0) {\n var fullLayout = gd._fullLayout;\n var trace = cd0.trace;\n // look for textemplate\n var texttemplate = trace.texttemplate;\n\n // now insert text\n var textinfo = trace.textinfo;\n if(!texttemplate && textinfo && textinfo !== 'none') {\n var parts = textinfo.split('+');\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n var hasLabel = hasFlag('label');\n var hasText = hasFlag('text');\n var hasValue = hasFlag('value');\n var hasPercent = hasFlag('percent');\n\n var separators = fullLayout.separators;\n var text;\n\n text = hasLabel ? [pt.label] : [];\n if(hasText) {\n var tx = helpers.getFirstFilled(trace.text, pt.pts);\n if(isValidTextValue(tx)) text.push(tx);\n }\n if(hasValue) text.push(helpers.formatPieValue(pt.v, separators));\n if(hasPercent) text.push(helpers.formatPiePercent(pt.v / cd0.vTotal, separators));\n pt.text = text.join('
');\n }\n\n function makeTemplateVariables(pt) {\n return {\n label: pt.label,\n value: pt.v,\n valueLabel: helpers.formatPieValue(pt.v, fullLayout.separators),\n percent: pt.v / cd0.vTotal,\n percentLabel: helpers.formatPiePercent(pt.v / cd0.vTotal, fullLayout.separators),\n color: pt.color,\n text: pt.text,\n customdata: Lib.castOption(trace, pt.i, 'customdata')\n };\n }\n\n if(texttemplate) {\n var txt = Lib.castOption(trace, pt.i, 'texttemplate');\n if(!txt) {\n pt.text = '';\n } else {\n var obj = makeTemplateVariables(pt);\n var ptTx = helpers.getFirstFilled(trace.text, pt.pts);\n if(isValidTextValue(ptTx) || ptTx === '') obj.text = ptTx;\n pt.text = Lib.texttemplateString(txt, obj, gd._fullLayout._d3locale, obj, trace._meta || {});\n }\n }\n}\n\nfunction computeTransform(\n transform, // inout\n textBB // in\n) {\n var a = transform.rotate * Math.PI / 180;\n var cosA = Math.cos(a);\n var sinA = Math.sin(a);\n var midX = (textBB.left + textBB.right) / 2;\n var midY = (textBB.top + textBB.bottom) / 2;\n transform.textX = midX * cosA - midY * sinA;\n transform.textY = midX * sinA + midY * cosA;\n transform.noCenter = true;\n}\n\nmodule.exports = {\n plot: plot,\n formatSliceLabel: formatSliceLabel,\n transformInsideText: transformInsideText,\n determineInsideTextFont: determineInsideTextFont,\n positionTitleOutside: positionTitleOutside,\n prerenderTitles: prerenderTitles,\n layoutAreas: layoutAreas,\n attachFxHandlers: attachFxHandlers,\n computeTransform: computeTransform\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../components/fx\":407,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../../plots/plots\":628,\"../bar/constants\":659,\"../bar/uniform_text\":673,\"./event_data\":914,\"./helpers\":915,\"@plotly/d3\":58}],920:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar styleOne = _dereq_('./style_one');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nmodule.exports = function style(gd) {\n var s = gd._fullLayout._pielayer.selectAll('.trace');\n resizeText(gd, s, 'pie');\n\n s.each(function(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var traceSelection = d3.select(this);\n\n traceSelection.style({opacity: trace.opacity});\n\n traceSelection.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n};\n\n},{\"../bar/uniform_text\":673,\"./style_one\":921,\"@plotly/d3\":58}],921:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar castOption = _dereq_('./helpers').castOption;\n\nmodule.exports = function styleOne(s, pt, trace) {\n var line = trace.marker.line;\n var lineColor = castOption(line.color, pt.pts) || Color.defaultLine;\n var lineWidth = castOption(line.width, pt.pts) || 0;\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, pt.color)\n .call(Color.stroke, lineColor);\n};\n\n},{\"../../components/color\":367,\"./helpers\":915}],922:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterglAttrs = _dereq_('../scatter/attributes');\n\nmodule.exports = {\n x: scatterglAttrs.x,\n y: scatterglAttrs.y,\n xy: {\n valType: 'data_array',\n editType: 'calc',\n },\n indices: {\n valType: 'data_array',\n editType: 'calc',\n },\n xbounds: {\n valType: 'data_array',\n editType: 'calc',\n },\n ybounds: {\n valType: 'data_array',\n editType: 'calc',\n },\n text: scatterglAttrs.text,\n marker: {\n color: {\n valType: 'color',\n arrayOk: false,\n\n editType: 'calc',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n arrayOk: false,\n\n editType: 'calc',\n },\n blend: {\n valType: 'boolean',\n dflt: null,\n\n editType: 'calc',\n },\n sizemin: {\n valType: 'number',\n min: 0.1,\n max: 2,\n dflt: 0.5,\n\n editType: 'calc',\n },\n sizemax: {\n valType: 'number',\n min: 0.1,\n dflt: 20,\n\n editType: 'calc',\n },\n border: {\n color: {\n valType: 'color',\n arrayOk: false,\n\n editType: 'calc',\n },\n arearatio: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'calc'\n },\n transforms: undefined\n};\n\n},{\"../scatter/attributes\":936}],923:[function(_dereq_,module,exports){\n'use strict';\n\nvar createPointCloudRenderer = _dereq_('../../../stackgl_modules').gl_pointcloud2d;\n\nvar str2RGBArray = _dereq_('../../lib/str2rgbarray');\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\n\nfunction Pointcloud(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.type = 'pointcloud';\n\n this.pickXData = [];\n this.pickYData = [];\n this.xData = [];\n this.yData = [];\n this.textLabels = [];\n this.color = 'rgb(0, 0, 0)';\n this.name = '';\n this.hoverinfo = 'all';\n\n this.idToIndex = new Int32Array(0);\n this.bounds = [0, 0, 0, 0];\n\n this.pointcloudOptions = {\n positions: new Float32Array(0),\n idToIndex: this.idToIndex,\n sizemin: 0.5,\n sizemax: 12,\n color: [0, 0, 0, 1],\n areaRatio: 1,\n borderColor: [0, 0, 0, 1]\n };\n this.pointcloud = createPointCloudRenderer(scene.glplot, this.pointcloudOptions);\n this.pointcloud._trace = this; // scene2d requires this prop\n}\n\nvar proto = Pointcloud.prototype;\n\nproto.handlePick = function(pickResult) {\n var index = this.idToIndex[pickResult.pointId];\n\n // prefer the readout from XY, if present\n return {\n trace: this,\n dataCoord: pickResult.dataCoord,\n traceCoord: this.pickXYData ?\n [this.pickXYData[index * 2], this.pickXYData[index * 2 + 1]] :\n [this.pickXData[index], this.pickYData[index]],\n textLabel: Array.isArray(this.textLabels) ?\n this.textLabels[index] :\n this.textLabels,\n color: this.color,\n name: this.name,\n pointIndex: index,\n hoverinfo: this.hoverinfo\n };\n};\n\nproto.update = function(options) {\n this.index = options.index;\n this.textLabels = options.text;\n this.name = options.name;\n this.hoverinfo = options.hoverinfo;\n this.bounds = [Infinity, Infinity, -Infinity, -Infinity];\n\n this.updateFast(options);\n\n this.color = getTraceColor(options, {});\n};\n\nproto.updateFast = function(options) {\n var x = this.xData = this.pickXData = options.x;\n var y = this.yData = this.pickYData = options.y;\n var xy = this.pickXYData = options.xy;\n\n var userBounds = options.xbounds && options.ybounds;\n var index = options.indices;\n\n var len;\n var idToIndex;\n var positions;\n var bounds = this.bounds;\n\n var xx, yy, i;\n\n if(xy) {\n positions = xy;\n\n // dividing xy.length by 2 and truncating to integer if xy.length was not even\n len = xy.length >>> 1;\n\n if(userBounds) {\n bounds[0] = options.xbounds[0];\n bounds[2] = options.xbounds[1];\n bounds[1] = options.ybounds[0];\n bounds[3] = options.ybounds[1];\n } else {\n for(i = 0; i < len; i++) {\n xx = positions[i * 2];\n yy = positions[i * 2 + 1];\n\n if(xx < bounds[0]) bounds[0] = xx;\n if(xx > bounds[2]) bounds[2] = xx;\n if(yy < bounds[1]) bounds[1] = yy;\n if(yy > bounds[3]) bounds[3] = yy;\n }\n }\n\n if(index) {\n idToIndex = index;\n } else {\n idToIndex = new Int32Array(len);\n\n for(i = 0; i < len; i++) {\n idToIndex[i] = i;\n }\n }\n } else {\n len = x.length;\n\n positions = new Float32Array(2 * len);\n idToIndex = new Int32Array(len);\n\n for(i = 0; i < len; i++) {\n xx = x[i];\n yy = y[i];\n\n idToIndex[i] = i;\n\n positions[i * 2] = xx;\n positions[i * 2 + 1] = yy;\n\n if(xx < bounds[0]) bounds[0] = xx;\n if(xx > bounds[2]) bounds[2] = xx;\n if(yy < bounds[1]) bounds[1] = yy;\n if(yy > bounds[3]) bounds[3] = yy;\n }\n }\n\n this.idToIndex = idToIndex;\n this.pointcloudOptions.idToIndex = idToIndex;\n\n this.pointcloudOptions.positions = positions;\n\n var markerColor = str2RGBArray(options.marker.color);\n var borderColor = str2RGBArray(options.marker.border.color);\n var opacity = options.opacity * options.marker.opacity;\n\n markerColor[3] *= opacity;\n this.pointcloudOptions.color = markerColor;\n\n // detect blending from the number of points, if undefined\n // because large data with blending hits performance\n var blend = options.marker.blend;\n if(blend === null) {\n var maxPoints = 100;\n blend = x.length < maxPoints || y.length < maxPoints;\n }\n this.pointcloudOptions.blend = blend;\n\n borderColor[3] *= opacity;\n this.pointcloudOptions.borderColor = borderColor;\n\n var markerSizeMin = options.marker.sizemin;\n var markerSizeMax = Math.max(options.marker.sizemax, options.marker.sizemin);\n this.pointcloudOptions.sizeMin = markerSizeMin;\n this.pointcloudOptions.sizeMax = markerSizeMax;\n this.pointcloudOptions.areaRatio = options.marker.border.arearatio;\n\n this.pointcloud.update(this.pointcloudOptions);\n\n // add item for autorange routine\n var xa = this.scene.xaxis;\n var ya = this.scene.yaxis;\n var pad = markerSizeMax / 2 || 0.5;\n options._extremes[xa._id] = findExtremes(xa, [bounds[0], bounds[2]], {ppad: pad});\n options._extremes[ya._id] = findExtremes(ya, [bounds[1], bounds[3]], {ppad: pad});\n};\n\nproto.dispose = function() {\n this.pointcloud.dispose();\n};\n\nfunction createPointcloud(scene, data) {\n var plot = new Pointcloud(scene, data.uid);\n plot.update(data);\n return plot;\n}\n\nmodule.exports = createPointcloud;\n\n},{\"../../../stackgl_modules\":1133,\"../../lib/str2rgbarray\":540,\"../../plots/cartesian/autorange\":565,\"../scatter/get_trace_color\":946}],924:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n coerce('x');\n coerce('y');\n\n coerce('xbounds');\n coerce('ybounds');\n\n if(traceIn.xy && traceIn.xy instanceof Float32Array) {\n traceOut.xy = traceIn.xy;\n }\n\n if(traceIn.indices && traceIn.indices instanceof Int32Array) {\n traceOut.indices = traceIn.indices;\n }\n\n coerce('text');\n coerce('marker.color', defaultColor);\n coerce('marker.opacity');\n coerce('marker.blend');\n coerce('marker.sizemin');\n coerce('marker.sizemax');\n coerce('marker.border.color', defaultColor);\n coerce('marker.border.arearatio');\n\n // disable 1D transforms - that would defeat the purpose of this trace type, performance!\n traceOut._length = null;\n};\n\n},{\"../../lib\":515,\"./attributes\":922}],925:[function(_dereq_,module,exports){\n'use strict';\n\nvar deprecationWarning = [\n '*pointcloud* trace is deprecated!',\n 'Please consider switching to the *scattergl* trace type.'\n].join(' ');\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n\n // reuse the Scatter3D 'dummy' calc step so that legends know what to do\n calc: _dereq_('../scatter3d/calc'),\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'pointcloud',\n basePlotModule: _dereq_('../../plots/gl2d'),\n categories: ['gl', 'gl2d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl2d\":605,\"../scatter3d/calc\":965,\"./attributes\":922,\"./convert\":923,\"./defaults\":924}],926:[function(_dereq_,module,exports){\n'use strict';\n\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorAttrs = _dereq_('../../components/color/attributes');\nvar fxAttrs = _dereq_('../../components/fx/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar colorAttributes = _dereq_('../../components/colorscale/attributes');\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar descriptionOnlyNumbers = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionOnlyNumbers;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar attrs = module.exports = overrideAll({\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: [],\n arrayOk: false,\n }),\n hoverlabel: fxAttrs.hoverlabel,\n domain: domainAttrs({name: 'sankey', trace: true}),\n\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n dflt: 'h',\n },\n\n valueformat: {\n valType: 'string',\n dflt: '.3s',\n description: descriptionOnlyNumbers('value')\n },\n\n valuesuffix: {\n valType: 'string',\n dflt: '',\n },\n\n arrangement: {\n valType: 'enumerated',\n values: ['snap', 'perpendicular', 'freeform', 'fixed'],\n dflt: 'snap',\n },\n\n textfont: fontAttrs({\n }),\n\n // Remove top-level customdata\n customdata: undefined,\n\n node: {\n label: {\n valType: 'data_array',\n dflt: [],\n },\n groups: {\n valType: 'info_array',\n impliedEdits: {'x': [], 'y': []},\n dimensions: 2,\n freeLength: true,\n dflt: [],\n items: {valType: 'number', editType: 'calc'},\n },\n x: {\n valType: 'data_array',\n dflt: [],\n },\n y: {\n valType: 'data_array',\n dflt: [],\n },\n color: {\n valType: 'color',\n arrayOk: true,\n },\n customdata: {\n valType: 'data_array',\n editType: 'calc',\n },\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n arrayOk: true,\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0.5,\n arrayOk: true,\n }\n },\n pad: {\n valType: 'number',\n arrayOk: false,\n min: 0,\n dflt: 20,\n },\n thickness: {\n valType: 'number',\n arrayOk: false,\n min: 1,\n dflt: 20,\n },\n hoverinfo: {\n valType: 'enumerated',\n values: ['all', 'none', 'skip'],\n dflt: 'all',\n },\n hoverlabel: fxAttrs.hoverlabel, // needs editType override,\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['value', 'label']\n }),\n },\n\n link: {\n arrowlen: {\n valType: 'number',\n min: 0,\n dflt: 0,\n },\n label: {\n valType: 'data_array',\n dflt: [],\n },\n color: {\n valType: 'color',\n arrayOk: true,\n },\n customdata: {\n valType: 'data_array',\n editType: 'calc',\n },\n line: {\n color: {\n valType: 'color',\n dflt: colorAttrs.defaultLine,\n arrayOk: true,\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 0,\n arrayOk: true,\n }\n },\n source: {\n valType: 'data_array',\n dflt: [],\n },\n target: {\n valType: 'data_array',\n dflt: [],\n },\n value: {\n valType: 'data_array',\n dflt: [],\n },\n hoverinfo: {\n valType: 'enumerated',\n values: ['all', 'none', 'skip'],\n dflt: 'all',\n },\n hoverlabel: fxAttrs.hoverlabel, // needs editType override,\n hovertemplate: hovertemplateAttrs({}, {\n keys: ['value', 'label']\n }),\n colorscales: templatedArray('concentrationscales', {\n editType: 'calc',\n label: {\n valType: 'string',\n editType: 'calc',\n dflt: ''\n },\n cmax: {\n valType: 'number',\n editType: 'calc',\n dflt: 1,\n },\n cmin: {\n valType: 'number',\n editType: 'calc',\n dflt: 0,\n },\n colorscale: extendFlat(colorAttributes().colorscale, {dflt: [[0, 'white'], [1, 'black']]})\n }),\n }\n}, 'calc', 'nested');\nattrs.transforms = undefined;\n\n},{\"../../components/color/attributes\":366,\"../../components/colorscale/attributes\":374,\"../../components/fx/attributes\":398,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plot_api/plot_template\":555,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/domain\":593,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642}],927:[function(_dereq_,module,exports){\n'use strict';\n\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar plot = _dereq_('./plot');\nvar fxAttrs = _dereq_('../../components/fx/layout_attributes');\n\nvar setCursor = _dereq_('../../lib/setcursor');\nvar dragElement = _dereq_('../../components/dragelement');\nvar prepSelect = _dereq_('../../components/selections').prepSelect;\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar SANKEY = 'sankey';\n\nexports.name = SANKEY;\n\nexports.baseLayoutAttrOverrides = overrideAll({\n hoverlabel: fxAttrs.hoverlabel\n}, 'plot', 'nested');\n\nexports.plot = function(gd) {\n var calcData = getModuleCalcData(gd.calcdata, SANKEY)[0];\n plot(gd, calcData);\n exports.updateFx(gd);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadPlot = (oldFullLayout._has && oldFullLayout._has(SANKEY));\n var hasPlot = (newFullLayout._has && newFullLayout._has(SANKEY));\n\n if(hadPlot && !hasPlot) {\n oldFullLayout._paperdiv.selectAll('.sankey').remove();\n oldFullLayout._paperdiv.selectAll('.bgsankey').remove();\n }\n};\n\nexports.updateFx = function(gd) {\n for(var i = 0; i < gd._fullData.length; i++) {\n subplotUpdateFx(gd, i);\n }\n};\n\nfunction subplotUpdateFx(gd, index) {\n var trace = gd._fullData[index];\n var fullLayout = gd._fullLayout;\n\n var dragMode = fullLayout.dragmode;\n var cursor = fullLayout.dragmode === 'pan' ? 'move' : 'crosshair';\n var bgRect = trace._bgRect;\n if(!bgRect) return;\n\n if(dragMode === 'pan' || dragMode === 'zoom') return;\n\n setCursor(bgRect, cursor);\n\n var xaxis = {\n _id: 'x',\n c2p: Lib.identity,\n _offset: trace._sankey.translateX,\n _length: trace._sankey.width\n };\n var yaxis = {\n _id: 'y',\n c2p: Lib.identity,\n _offset: trace._sankey.translateY,\n _length: trace._sankey.height\n };\n\n // Note: dragOptions is needed to be declared for all dragmodes because\n // it's the object that holds persistent selection state.\n var dragOptions = {\n gd: gd,\n element: bgRect.node(),\n plotinfo: {\n id: index,\n xaxis: xaxis,\n yaxis: yaxis,\n fillRangeItems: Lib.noop\n },\n subplot: index,\n // create mock x/y axes for hover routine\n xaxes: [xaxis],\n yaxes: [yaxis],\n doneFnCompleted: function(selection) {\n var traceNow = gd._fullData[index];\n var newGroups;\n var oldGroups = traceNow.node.groups.slice();\n var newGroup = [];\n\n function findNode(pt) {\n var nodes = traceNow._sankey.graph.nodes;\n for(var i = 0; i < nodes.length; i++) {\n if(nodes[i].pointNumber === pt) return nodes[i];\n }\n }\n\n for(var j = 0; j < selection.length; j++) {\n var node = findNode(selection[j].pointNumber);\n if(!node) continue;\n\n // If the node represents a group\n if(node.group) {\n // Add all its children to the current selection\n for(var k = 0; k < node.childrenNodes.length; k++) {\n newGroup.push(node.childrenNodes[k].pointNumber);\n }\n // Flag group for removal from existing list of groups\n oldGroups[node.pointNumber - traceNow.node._count] = false;\n } else {\n newGroup.push(node.pointNumber);\n }\n }\n\n newGroups = oldGroups\n .filter(Boolean)\n .concat([newGroup]);\n\n Registry.call('_guiRestyle', gd, {\n 'node.groups': [ newGroups ]\n }, index);\n }\n };\n\n dragOptions.prepFn = function(e, startX, startY) {\n prepSelect(e, startX, startY, dragOptions, dragMode);\n };\n\n dragElement.init(dragOptions);\n}\n\n},{\"../../components/dragelement\":386,\"../../components/fx/layout_attributes\":408,\"../../components/selections\":455,\"../../lib\":515,\"../../lib/setcursor\":536,\"../../plot_api/edit_types\":548,\"../../plots/get_data\":602,\"../../registry\":647,\"./plot\":932}],928:[function(_dereq_,module,exports){\n'use strict';\n\nvar tarjan = _dereq_('strongly-connected-components');\nvar Lib = _dereq_('../../lib');\nvar wrap = _dereq_('../../lib/gup').wrap;\n\nvar isArrayOrTypedArray = Lib.isArrayOrTypedArray;\nvar isIndex = Lib.isIndex;\nvar Colorscale = _dereq_('../../components/colorscale');\n\nfunction convertToD3Sankey(trace) {\n var nodeSpec = trace.node;\n var linkSpec = trace.link;\n\n var links = [];\n var hasLinkColorArray = isArrayOrTypedArray(linkSpec.color);\n var hasLinkCustomdataArray = isArrayOrTypedArray(linkSpec.customdata);\n var linkedNodes = {};\n\n var components = {};\n var componentCount = linkSpec.colorscales.length;\n var i;\n for(i = 0; i < componentCount; i++) {\n var cscale = linkSpec.colorscales[i];\n var specs = Colorscale.extractScale(cscale, {cLetter: 'c'});\n var scale = Colorscale.makeColorScaleFunc(specs);\n components[cscale.label] = scale;\n }\n\n var maxNodeId = 0;\n for(i = 0; i < linkSpec.value.length; i++) {\n if(linkSpec.source[i] > maxNodeId) maxNodeId = linkSpec.source[i];\n if(linkSpec.target[i] > maxNodeId) maxNodeId = linkSpec.target[i];\n }\n var nodeCount = maxNodeId + 1;\n trace.node._count = nodeCount;\n\n // Group nodes\n var j;\n var groups = trace.node.groups;\n var groupLookup = {};\n for(i = 0; i < groups.length; i++) {\n var group = groups[i];\n // Build a lookup table to quickly find in which group a node is\n for(j = 0; j < group.length; j++) {\n var nodeIndex = group[j];\n var groupIndex = nodeCount + i;\n if(groupLookup.hasOwnProperty(nodeIndex)) {\n Lib.warn('Node ' + nodeIndex + ' is already part of a group.');\n } else {\n groupLookup[nodeIndex] = groupIndex;\n }\n }\n }\n\n // Process links\n var groupedLinks = {\n source: [],\n target: []\n };\n for(i = 0; i < linkSpec.value.length; i++) {\n var val = linkSpec.value[i];\n // remove negative values, but keep zeros with special treatment\n var source = linkSpec.source[i];\n var target = linkSpec.target[i];\n if(!(val > 0 && isIndex(source, nodeCount) && isIndex(target, nodeCount))) {\n continue;\n }\n\n // Remove links that are within the same group\n if(groupLookup.hasOwnProperty(source) && groupLookup.hasOwnProperty(target) && groupLookup[source] === groupLookup[target]) {\n continue;\n }\n\n // if link targets a node in the group, relink target to that group\n if(groupLookup.hasOwnProperty(target)) {\n target = groupLookup[target];\n }\n\n // if link originates from a node in a group, relink source to that group\n if(groupLookup.hasOwnProperty(source)) {\n source = groupLookup[source];\n }\n\n source = +source;\n target = +target;\n linkedNodes[source] = linkedNodes[target] = true;\n\n var label = '';\n if(linkSpec.label && linkSpec.label[i]) label = linkSpec.label[i];\n\n var concentrationscale = null;\n if(label && components.hasOwnProperty(label)) concentrationscale = components[label];\n\n links.push({\n pointNumber: i,\n label: label,\n color: hasLinkColorArray ? linkSpec.color[i] : linkSpec.color,\n customdata: hasLinkCustomdataArray ? linkSpec.customdata[i] : linkSpec.customdata,\n concentrationscale: concentrationscale,\n source: source,\n target: target,\n value: +val\n });\n\n groupedLinks.source.push(source);\n groupedLinks.target.push(target);\n }\n\n // Process nodes\n var totalCount = nodeCount + groups.length;\n var hasNodeColorArray = isArrayOrTypedArray(nodeSpec.color);\n var hasNodeCustomdataArray = isArrayOrTypedArray(nodeSpec.customdata);\n var nodes = [];\n for(i = 0; i < totalCount; i++) {\n if(!linkedNodes[i]) continue;\n var l = nodeSpec.label[i];\n\n nodes.push({\n group: (i > nodeCount - 1),\n childrenNodes: [],\n pointNumber: i,\n label: l,\n color: hasNodeColorArray ? nodeSpec.color[i] : nodeSpec.color,\n customdata: hasNodeCustomdataArray ? nodeSpec.customdata[i] : nodeSpec.customdata\n });\n }\n\n // Check if we have circularity on the resulting graph\n var circular = false;\n if(circularityPresent(totalCount, groupedLinks.source, groupedLinks.target)) {\n circular = true;\n }\n\n return {\n circular: circular,\n links: links,\n nodes: nodes,\n\n // Data structure for groups\n groups: groups,\n groupLookup: groupLookup\n };\n}\n\nfunction circularityPresent(nodeLen, sources, targets) {\n var nodes = Lib.init2dArray(nodeLen, 0);\n\n for(var i = 0; i < Math.min(sources.length, targets.length); i++) {\n if(Lib.isIndex(sources[i], nodeLen) && Lib.isIndex(targets[i], nodeLen)) {\n if(sources[i] === targets[i]) {\n return true; // self-link which is also a scc of one\n }\n nodes[sources[i]].push(targets[i]);\n }\n }\n\n var scc = tarjan(nodes);\n\n // Tarján's strongly connected components algorithm coded by Mikola Lysenko\n // returns at least one non-singular component if there's circularity in the graph\n return scc.components.some(function(c) {\n return c.length > 1;\n });\n}\n\nmodule.exports = function calc(gd, trace) {\n var result = convertToD3Sankey(trace);\n\n return wrap({\n circular: result.circular,\n _nodes: result.nodes,\n _links: result.links,\n\n // Data structure for grouping\n _groups: result.groups,\n _groupLookup: result.groupLookup,\n });\n};\n\n},{\"../../components/colorscale\":379,\"../../lib\":515,\"../../lib/gup\":512,\"strongly-connected-components\":307}],929:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n nodeTextOffsetHorizontal: 4,\n nodeTextOffsetVertical: 3,\n nodePadAcross: 10,\n sankeyIterations: 50,\n forceIterations: 5,\n forceTicksPerFrame: 10,\n duration: 500,\n ease: 'linear',\n cn: {\n sankey: 'sankey',\n sankeyLinks: 'sankey-links',\n sankeyLink: 'sankey-link',\n sankeyNodeSet: 'sankey-node-set',\n sankeyNode: 'sankey-node',\n nodeRect: 'node-rect',\n nodeLabel: 'node-label'\n }\n};\n\n},{}],930:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar tinycolor = _dereq_('tinycolor2');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleHoverLabelDefaults = _dereq_('../../components/fx/hoverlabel_defaults');\nvar Template = _dereq_('../../plot_api/plot_template');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var hoverlabelDefault = Lib.extendDeep(layout.hoverlabel, traceIn.hoverlabel);\n\n // node attributes\n var nodeIn = traceIn.node;\n var nodeOut = Template.newContainer(traceOut, 'node');\n\n function coerceNode(attr, dflt) {\n return Lib.coerce(nodeIn, nodeOut, attributes.node, attr, dflt);\n }\n coerceNode('label');\n coerceNode('groups');\n coerceNode('x');\n coerceNode('y');\n coerceNode('pad');\n coerceNode('thickness');\n coerceNode('line.color');\n coerceNode('line.width');\n coerceNode('hoverinfo', traceIn.hoverinfo);\n handleHoverLabelDefaults(nodeIn, nodeOut, coerceNode, hoverlabelDefault);\n coerceNode('hovertemplate');\n\n var colors = layout.colorway;\n\n var defaultNodePalette = function(i) {return colors[i % colors.length];};\n\n coerceNode('color', nodeOut.label.map(function(d, i) {\n return Color.addOpacity(defaultNodePalette(i), 0.8);\n }));\n coerceNode('customdata');\n\n // link attributes\n var linkIn = traceIn.link || {};\n var linkOut = Template.newContainer(traceOut, 'link');\n\n function coerceLink(attr, dflt) {\n return Lib.coerce(linkIn, linkOut, attributes.link, attr, dflt);\n }\n coerceLink('label');\n coerceLink('arrowlen');\n coerceLink('source');\n coerceLink('target');\n coerceLink('value');\n coerceLink('line.color');\n coerceLink('line.width');\n coerceLink('hoverinfo', traceIn.hoverinfo);\n handleHoverLabelDefaults(linkIn, linkOut, coerceLink, hoverlabelDefault);\n coerceLink('hovertemplate');\n\n var defaultLinkColor = tinycolor(layout.paper_bgcolor).getLuminance() < 0.333 ?\n 'rgba(255, 255, 255, 0.6)' :\n 'rgba(0, 0, 0, 0.2)';\n\n coerceLink('color', Lib.repeat(defaultLinkColor, linkOut.value.length));\n coerceLink('customdata');\n\n handleArrayContainerDefaults(linkIn, linkOut, {\n name: 'colorscales',\n handleItemDefaults: concentrationscalesDefaults\n });\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n coerce('orientation');\n coerce('valueformat');\n coerce('valuesuffix');\n\n var dfltArrangement;\n if(nodeOut.x.length && nodeOut.y.length) {\n dfltArrangement = 'freeform';\n }\n coerce('arrangement', dfltArrangement);\n\n Lib.coerceFont(coerce, 'textfont', Lib.extendFlat({}, layout.font));\n\n // disable 1D transforms - arrays here are 1D but their lengths/meanings\n // don't match, between nodes and links\n traceOut._length = null;\n};\n\nfunction concentrationscalesDefaults(In, Out) {\n function coerce(attr, dflt) {\n return Lib.coerce(In, Out, attributes.link.colorscales, attr, dflt);\n }\n\n coerce('label');\n coerce('cmin');\n coerce('cmax');\n coerce('colorscale');\n}\n\n},{\"../../components/color\":367,\"../../components/fx/hoverlabel_defaults\":405,\"../../lib\":515,\"../../plot_api/plot_template\":555,\"../../plots/array_container_defaults\":561,\"../../plots/domain\":593,\"./attributes\":926,\"tinycolor2\":313}],931:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n\n moduleType: 'trace',\n name: 'sankey',\n basePlotModule: _dereq_('./base_plot'),\n selectPoints: _dereq_('./select.js'),\n categories: ['noOpacity'],\n meta: {\n }\n};\n\n},{\"./attributes\":926,\"./base_plot\":927,\"./calc\":928,\"./defaults\":930,\"./plot\":932,\"./select.js\":934}],932:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar render = _dereq_('./render');\nvar Fx = _dereq_('../../components/fx');\nvar Color = _dereq_('../../components/color');\nvar cn = _dereq_('./constants').cn;\n\nvar _ = Lib._;\n\nfunction renderableValuePresent(d) {return d !== '';}\n\nfunction ownTrace(selection, d) {\n return selection.filter(function(s) {return s.key === d.traceId;});\n}\n\nfunction makeTranslucent(element, alpha) {\n d3.select(element)\n .select('path')\n .style('fill-opacity', alpha);\n d3.select(element)\n .select('rect')\n .style('fill-opacity', alpha);\n}\n\nfunction makeTextContrasty(element) {\n d3.select(element)\n .select('text.name')\n .style('fill', 'black');\n}\n\nfunction relatedLinks(d) {\n return function(l) {\n return d.node.sourceLinks.indexOf(l.link) !== -1 || d.node.targetLinks.indexOf(l.link) !== -1;\n };\n}\n\nfunction relatedNodes(l) {\n return function(d) {\n return d.node.sourceLinks.indexOf(l.link) !== -1 || d.node.targetLinks.indexOf(l.link) !== -1;\n };\n}\n\nfunction nodeHoveredStyle(sankeyNode, d, sankey) {\n if(d && sankey) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(relatedLinks(d))\n .call(linkHoveredStyle.bind(0, d, sankey, false));\n }\n}\n\nfunction nodeNonHoveredStyle(sankeyNode, d, sankey) {\n if(d && sankey) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(relatedLinks(d))\n .call(linkNonHoveredStyle.bind(0, d, sankey, false));\n }\n}\n\nfunction linkHoveredStyle(d, sankey, visitNodes, sankeyLink) {\n var label = sankeyLink.datum().link.label;\n\n sankeyLink.style('fill-opacity', function(l) {\n if(!l.link.concentrationscale) {\n return 0.4;\n }\n });\n\n if(label) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(function(l) {return l.link.label === label;})\n .style('fill-opacity', function(l) {\n if(!l.link.concentrationscale) {\n return 0.4;\n }\n });\n }\n\n if(visitNodes) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyNode)\n .filter(relatedNodes(d))\n .call(nodeHoveredStyle);\n }\n}\n\nfunction linkNonHoveredStyle(d, sankey, visitNodes, sankeyLink) {\n var label = sankeyLink.datum().link.label;\n\n sankeyLink.style('fill-opacity', function(d) {return d.tinyColorAlpha;});\n if(label) {\n ownTrace(sankey, d)\n .selectAll('.' + cn.sankeyLink)\n .filter(function(l) {return l.link.label === label;})\n .style('fill-opacity', function(d) {return d.tinyColorAlpha;});\n }\n\n if(visitNodes) {\n ownTrace(sankey, d)\n .selectAll(cn.sankeyNode)\n .filter(relatedNodes(d))\n .call(nodeNonHoveredStyle);\n }\n}\n\n// does not support array values for now\nfunction castHoverOption(trace, attr) {\n var labelOpts = trace.hoverlabel || {};\n var val = Lib.nestedProperty(labelOpts, attr).get();\n return Array.isArray(val) ? false : val;\n}\n\nmodule.exports = function plot(gd, calcData) {\n var fullLayout = gd._fullLayout;\n var svg = fullLayout._paper;\n var size = fullLayout._size;\n\n // stash initial view\n for(var i = 0; i < gd._fullData.length; i++) {\n if(!gd._fullData[i].visible) continue;\n if(gd._fullData[i].type !== cn.sankey) continue;\n if(!gd._fullData[i]._viewInitial) {\n var node = gd._fullData[i].node;\n gd._fullData[i]._viewInitial = {\n node: {\n groups: node.groups.slice(),\n x: node.x.slice(),\n y: node.y.slice()\n }\n };\n }\n }\n\n var linkSelect = function(element, d) {\n var evt = d.link;\n evt.originalEvent = d3.event;\n gd._hoverdata = [evt];\n Fx.click(gd, { target: true });\n };\n\n var linkHover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(linkHoveredStyle.bind(0, d, sankey, true));\n if(d.link.trace.link.hoverinfo !== 'skip') {\n d.link.fullData = d.link.trace;\n gd.emit('plotly_hover', {\n event: d3.event,\n points: [d.link]\n });\n }\n };\n\n var sourceLabel = _(gd, 'source:') + ' ';\n var targetLabel = _(gd, 'target:') + ' ';\n var concentrationLabel = _(gd, 'concentration:') + ' ';\n var incomingLabel = _(gd, 'incoming flow count:') + ' ';\n var outgoingLabel = _(gd, 'outgoing flow count:') + ' ';\n\n var linkHoverFollow = function(element, d) {\n if(gd._fullLayout.hovermode === false) return;\n var obj = d.link.trace.link;\n if(obj.hoverinfo === 'none' || obj.hoverinfo === 'skip') return;\n\n var hoverItems = [];\n\n function hoverCenterPosition(link) {\n var hoverCenterX, hoverCenterY;\n if(link.circular) {\n hoverCenterX = (link.circularPathData.leftInnerExtent + link.circularPathData.rightInnerExtent) / 2;\n hoverCenterY = link.circularPathData.verticalFullExtent;\n } else {\n hoverCenterX = (link.source.x1 + link.target.x0) / 2;\n hoverCenterY = (link.y0 + link.y1) / 2;\n }\n var center = [hoverCenterX, hoverCenterY];\n if(link.trace.orientation === 'v') center.reverse();\n center[0] += d.parent.translateX;\n center[1] += d.parent.translateY;\n return center;\n }\n\n // For each related links, create a hoverItem\n var anchorIndex = 0;\n for(var i = 0; i < d.flow.links.length; i++) {\n var link = d.flow.links[i];\n if(gd._fullLayout.hovermode === 'closest' && d.link.pointNumber !== link.pointNumber) continue;\n if(d.link.pointNumber === link.pointNumber) anchorIndex = i;\n link.fullData = link.trace;\n obj = d.link.trace.link;\n var hoverCenter = hoverCenterPosition(link);\n var hovertemplateLabels = {valueLabel: numberFormat(d.valueFormat)(link.value) + d.valueSuffix};\n\n hoverItems.push({\n x: hoverCenter[0],\n y: hoverCenter[1],\n name: hovertemplateLabels.valueLabel,\n text: [\n link.label || '',\n sourceLabel + link.source.label,\n targetLabel + link.target.label,\n link.concentrationscale ? concentrationLabel + numberFormat('%0.2f')(link.flow.labelConcentration) : ''\n ].filter(renderableValuePresent).join('
'),\n color: castHoverOption(obj, 'bgcolor') || Color.addOpacity(link.color, 1),\n borderColor: castHoverOption(obj, 'bordercolor'),\n fontFamily: castHoverOption(obj, 'font.family'),\n fontSize: castHoverOption(obj, 'font.size'),\n fontColor: castHoverOption(obj, 'font.color'),\n nameLength: castHoverOption(obj, 'namelength'),\n textAlign: castHoverOption(obj, 'align'),\n idealAlign: d3.event.x < hoverCenter[0] ? 'right' : 'left',\n\n hovertemplate: obj.hovertemplate,\n hovertemplateLabels: hovertemplateLabels,\n eventData: [link]\n });\n }\n\n var tooltips = Fx.loneHover(hoverItems, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd,\n anchorIndex: anchorIndex\n });\n\n tooltips.each(function() {\n var tooltip = this;\n if(!d.link.concentrationscale) {\n makeTranslucent(tooltip, 0.65);\n }\n makeTextContrasty(tooltip);\n });\n };\n\n var linkUnhover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(linkNonHoveredStyle.bind(0, d, sankey, true));\n if(d.link.trace.link.hoverinfo !== 'skip') {\n d.link.fullData = d.link.trace;\n gd.emit('plotly_unhover', {\n event: d3.event,\n points: [d.link]\n });\n }\n\n Fx.loneUnhover(fullLayout._hoverlayer.node());\n };\n\n var nodeSelect = function(element, d, sankey) {\n var evt = d.node;\n evt.originalEvent = d3.event;\n gd._hoverdata = [evt];\n d3.select(element).call(nodeNonHoveredStyle, d, sankey);\n Fx.click(gd, { target: true });\n };\n\n var nodeHover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(nodeHoveredStyle, d, sankey);\n if(d.node.trace.node.hoverinfo !== 'skip') {\n d.node.fullData = d.node.trace;\n gd.emit('plotly_hover', {\n event: d3.event,\n points: [d.node]\n });\n }\n };\n\n var nodeHoverFollow = function(element, d) {\n if(gd._fullLayout.hovermode === false) return;\n\n var obj = d.node.trace.node;\n if(obj.hoverinfo === 'none' || obj.hoverinfo === 'skip') return;\n var nodeRect = d3.select(element).select('.' + cn.nodeRect);\n var rootBBox = gd._fullLayout._paperdiv.node().getBoundingClientRect();\n var boundingBox = nodeRect.node().getBoundingClientRect();\n var hoverCenterX0 = boundingBox.left - 2 - rootBBox.left;\n var hoverCenterX1 = boundingBox.right + 2 - rootBBox.left;\n var hoverCenterY = boundingBox.top + boundingBox.height / 4 - rootBBox.top;\n\n var hovertemplateLabels = {valueLabel: numberFormat(d.valueFormat)(d.node.value) + d.valueSuffix};\n d.node.fullData = d.node.trace;\n\n gd._fullLayout._calcInverseTransform(gd);\n var scaleX = gd._fullLayout._invScaleX;\n var scaleY = gd._fullLayout._invScaleY;\n\n var tooltip = Fx.loneHover({\n x0: scaleX * hoverCenterX0,\n x1: scaleX * hoverCenterX1,\n y: scaleY * hoverCenterY,\n name: numberFormat(d.valueFormat)(d.node.value) + d.valueSuffix,\n text: [\n d.node.label,\n incomingLabel + d.node.targetLinks.length,\n outgoingLabel + d.node.sourceLinks.length\n ].filter(renderableValuePresent).join('
'),\n color: castHoverOption(obj, 'bgcolor') || d.tinyColorHue,\n borderColor: castHoverOption(obj, 'bordercolor'),\n fontFamily: castHoverOption(obj, 'font.family'),\n fontSize: castHoverOption(obj, 'font.size'),\n fontColor: castHoverOption(obj, 'font.color'),\n nameLength: castHoverOption(obj, 'namelength'),\n textAlign: castHoverOption(obj, 'align'),\n idealAlign: 'left',\n\n hovertemplate: obj.hovertemplate,\n hovertemplateLabels: hovertemplateLabels,\n eventData: [d.node]\n }, {\n container: fullLayout._hoverlayer.node(),\n outerContainer: fullLayout._paper.node(),\n gd: gd\n });\n\n makeTranslucent(tooltip, 0.85);\n makeTextContrasty(tooltip);\n };\n\n var nodeUnhover = function(element, d, sankey) {\n if(gd._fullLayout.hovermode === false) return;\n d3.select(element).call(nodeNonHoveredStyle, d, sankey);\n if(d.node.trace.node.hoverinfo !== 'skip') {\n d.node.fullData = d.node.trace;\n gd.emit('plotly_unhover', {\n event: d3.event,\n points: [d.node]\n });\n }\n\n Fx.loneUnhover(fullLayout._hoverlayer.node());\n };\n\n render(\n gd,\n svg,\n calcData,\n {\n width: size.w,\n height: size.h,\n margin: {\n t: size.t,\n r: size.r,\n b: size.b,\n l: size.l\n }\n },\n {\n linkEvents: {\n hover: linkHover,\n follow: linkHoverFollow,\n unhover: linkUnhover,\n select: linkSelect\n },\n nodeEvents: {\n hover: nodeHover,\n follow: nodeHoverFollow,\n unhover: nodeUnhover,\n select: nodeSelect\n }\n }\n );\n};\n\n},{\"../../components/color\":367,\"../../components/fx\":407,\"../../lib\":515,\"./constants\":929,\"./render\":933,\"@plotly/d3\":58}],933:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Force = _dereq_('d3-force');\nvar interpolateNumber = _dereq_('d3-interpolate').interpolateNumber;\nvar d3 = _dereq_('@plotly/d3');\nvar d3Sankey = _dereq_('@plotly/d3-sankey');\nvar d3SankeyCircular = _dereq_('@plotly/d3-sankey-circular');\n\nvar c = _dereq_('./constants');\nvar tinycolor = _dereq_('tinycolor2');\nvar Color = _dereq_('../../components/color');\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar strTranslate = Lib.strTranslate;\nvar strRotate = Lib.strRotate;\nvar gup = _dereq_('../../lib/gup');\nvar keyFun = gup.keyFun;\nvar repeat = gup.repeat;\nvar unwrap = gup.unwrap;\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar Registry = _dereq_('../../registry');\n\nvar alignmentConstants = _dereq_('../../constants/alignment');\nvar CAP_SHIFT = alignmentConstants.CAP_SHIFT;\nvar LINE_SPACING = alignmentConstants.LINE_SPACING;\nvar TEXTPAD = 3;\n\n// view models\n\nfunction sankeyModel(layout, d, traceIndex) {\n var calcData = unwrap(d);\n var trace = calcData.trace;\n var domain = trace.domain;\n var horizontal = trace.orientation === 'h';\n var nodePad = trace.node.pad;\n var nodeThickness = trace.node.thickness;\n\n var width = layout.width * (domain.x[1] - domain.x[0]);\n var height = layout.height * (domain.y[1] - domain.y[0]);\n\n var nodes = calcData._nodes;\n var links = calcData._links;\n var circular = calcData.circular;\n\n // Select Sankey generator\n var sankey;\n if(circular) {\n sankey = d3SankeyCircular\n .sankeyCircular()\n .circularLinkGap(0);\n } else {\n sankey = d3Sankey.sankey();\n }\n\n sankey\n .iterations(c.sankeyIterations)\n .size(horizontal ? [width, height] : [height, width])\n .nodeWidth(nodeThickness)\n .nodePadding(nodePad)\n .nodeId(function(d) {\n return d.pointNumber;\n })\n .nodes(nodes)\n .links(links);\n\n var graph = sankey();\n\n if(sankey.nodePadding() < nodePad) {\n Lib.warn('node.pad was reduced to ', sankey.nodePadding(), ' to fit within the figure.');\n }\n\n // Counters for nested loops\n var i, j, k;\n\n // Create transient nodes for animations\n for(var nodePointNumber in calcData._groupLookup) {\n var groupIndex = parseInt(calcData._groupLookup[nodePointNumber]);\n\n // Find node representing groupIndex\n var groupingNode;\n\n for(i = 0; i < graph.nodes.length; i++) {\n if(graph.nodes[i].pointNumber === groupIndex) {\n groupingNode = graph.nodes[i];\n break;\n }\n }\n // If groupinNode is undefined, no links are targeting this group\n if(!groupingNode) continue;\n\n var child = {\n pointNumber: parseInt(nodePointNumber),\n x0: groupingNode.x0,\n x1: groupingNode.x1,\n y0: groupingNode.y0,\n y1: groupingNode.y1,\n partOfGroup: true,\n sourceLinks: [],\n targetLinks: []\n };\n\n graph.nodes.unshift(child);\n groupingNode.childrenNodes.unshift(child);\n }\n\n function computeLinkConcentrations() {\n for(i = 0; i < graph.nodes.length; i++) {\n var node = graph.nodes[i];\n // Links connecting the same two nodes are part of a flow\n var flows = {};\n var flowKey;\n var link;\n for(j = 0; j < node.targetLinks.length; j++) {\n link = node.targetLinks[j];\n flowKey = link.source.pointNumber + ':' + link.target.pointNumber;\n if(!flows.hasOwnProperty(flowKey)) flows[flowKey] = [];\n flows[flowKey].push(link);\n }\n\n // Compute statistics for each flow\n var keys = Object.keys(flows);\n for(j = 0; j < keys.length; j++) {\n flowKey = keys[j];\n var flowLinks = flows[flowKey];\n\n // Find the total size of the flow and total size per label\n var total = 0;\n var totalPerLabel = {};\n for(k = 0; k < flowLinks.length; k++) {\n link = flowLinks[k];\n if(!totalPerLabel[link.label]) totalPerLabel[link.label] = 0;\n totalPerLabel[link.label] += link.value;\n total += link.value;\n }\n\n // Find the ratio of the link's value and the size of the flow\n for(k = 0; k < flowLinks.length; k++) {\n link = flowLinks[k];\n link.flow = {\n value: total,\n labelConcentration: totalPerLabel[link.label] / total,\n concentration: link.value / total,\n links: flowLinks\n };\n if(link.concentrationscale) {\n link.color = tinycolor(link.concentrationscale(link.flow.labelConcentration));\n }\n }\n }\n\n // Gather statistics of all links at current node\n var totalOutflow = 0;\n for(j = 0; j < node.sourceLinks.length; j++) {\n totalOutflow += node.sourceLinks[j].value;\n }\n for(j = 0; j < node.sourceLinks.length; j++) {\n link = node.sourceLinks[j];\n link.concentrationOut = link.value / totalOutflow;\n }\n\n var totalInflow = 0;\n for(j = 0; j < node.targetLinks.length; j++) {\n totalInflow += node.targetLinks[j].value;\n }\n\n for(j = 0; j < node.targetLinks.length; j++) {\n link = node.targetLinks[j];\n link.concenrationIn = link.value / totalInflow;\n }\n }\n }\n computeLinkConcentrations();\n\n // Push any overlapping nodes down.\n function resolveCollisionsTopToBottom(columns) {\n columns.forEach(function(nodes) {\n var node;\n var dy;\n var y = 0;\n var n = nodes.length;\n var i;\n nodes.sort(function(a, b) {\n return a.y0 - b.y0;\n });\n for(i = 0; i < n; ++i) {\n node = nodes[i];\n if(node.y0 >= y) {\n // No overlap\n } else {\n dy = (y - node.y0);\n if(dy > 1e-6) node.y0 += dy, node.y1 += dy;\n }\n y = node.y1 + nodePad;\n }\n });\n }\n\n // Group nodes into columns based on their x position\n function snapToColumns(nodes) {\n // Sort nodes by x position\n var orderedNodes = nodes.map(function(n, i) {\n return {\n x0: n.x0,\n index: i\n };\n })\n .sort(function(a, b) {\n return a.x0 - b.x0;\n });\n\n var columns = [];\n var colNumber = -1;\n var colX; // Position of column\n var lastX = -Infinity; // Position of last node\n var dx;\n for(i = 0; i < orderedNodes.length; i++) {\n var node = nodes[orderedNodes[i].index];\n // If the node does not overlap with the last one\n if(node.x0 > lastX + nodeThickness) {\n // Start a new column\n colNumber += 1;\n colX = node.x0;\n }\n lastX = node.x0;\n\n // Add node to its associated column\n if(!columns[colNumber]) columns[colNumber] = [];\n columns[colNumber].push(node);\n\n // Change node's x position to align it with its column\n dx = colX - node.x0;\n node.x0 += dx, node.x1 += dx;\n }\n return columns;\n }\n\n // Force node position\n if(trace.node.x.length && trace.node.y.length) {\n for(i = 0; i < Math.min(trace.node.x.length, trace.node.y.length, graph.nodes.length); i++) {\n if(trace.node.x[i] && trace.node.y[i]) {\n var pos = [trace.node.x[i] * width, trace.node.y[i] * height];\n graph.nodes[i].x0 = pos[0] - nodeThickness / 2;\n graph.nodes[i].x1 = pos[0] + nodeThickness / 2;\n\n var nodeHeight = graph.nodes[i].y1 - graph.nodes[i].y0;\n graph.nodes[i].y0 = pos[1] - nodeHeight / 2;\n graph.nodes[i].y1 = pos[1] + nodeHeight / 2;\n }\n }\n if(trace.arrangement === 'snap') {\n nodes = graph.nodes;\n var columns = snapToColumns(nodes);\n resolveCollisionsTopToBottom(columns);\n }\n // Update links\n sankey.update(graph);\n }\n\n\n return {\n circular: circular,\n key: traceIndex,\n trace: trace,\n guid: Lib.randstr(),\n horizontal: horizontal,\n width: width,\n height: height,\n nodePad: trace.node.pad,\n nodeLineColor: trace.node.line.color,\n nodeLineWidth: trace.node.line.width,\n linkLineColor: trace.link.line.color,\n linkLineWidth: trace.link.line.width,\n linkArrowLength: trace.link.arrowlen,\n valueFormat: trace.valueformat,\n valueSuffix: trace.valuesuffix,\n textFont: trace.textfont,\n translateX: domain.x[0] * layout.width + layout.margin.l,\n translateY: layout.height - domain.y[1] * layout.height + layout.margin.t,\n dragParallel: horizontal ? height : width,\n dragPerpendicular: horizontal ? width : height,\n arrangement: trace.arrangement,\n sankey: sankey,\n graph: graph,\n forceLayouts: {},\n interactionState: {\n dragInProgress: false,\n hovered: false\n }\n };\n}\n\nfunction linkModel(d, l, i) {\n var tc = tinycolor(l.color);\n var basicKey = l.source.label + '|' + l.target.label;\n var key = basicKey + '__' + i;\n\n // for event data\n l.trace = d.trace;\n l.curveNumber = d.trace.index;\n\n return {\n circular: d.circular,\n key: key,\n traceId: d.key,\n pointNumber: l.pointNumber,\n link: l,\n tinyColorHue: Color.tinyRGB(tc),\n tinyColorAlpha: tc.getAlpha(),\n linkPath: linkPath,\n linkLineColor: d.linkLineColor,\n linkLineWidth: d.linkLineWidth,\n linkArrowLength: d.linkArrowLength,\n valueFormat: d.valueFormat,\n valueSuffix: d.valueSuffix,\n sankey: d.sankey,\n parent: d,\n interactionState: d.interactionState,\n flow: l.flow\n };\n}\n\nfunction createCircularClosedPathString(link, arrowLen) {\n // Using coordinates computed by d3-sankey-circular\n var pathString = '';\n var offset = link.width / 2;\n var coords = link.circularPathData;\n if(link.circularLinkType === 'top') {\n // Top path\n pathString =\n // start at the left of the target node\n 'M ' +\n (coords.targetX - arrowLen) + ' ' + (coords.targetY + offset) + ' ' +\n 'L' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.targetY + offset) +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightSmallArcRadius + offset) + ' 0 0 1 ' +\n (coords.rightFullExtent - offset - arrowLen) + ' ' + (coords.targetY - coords.rightSmallArcRadius) +\n 'L' +\n (coords.rightFullExtent - offset - arrowLen) + ' ' + coords.verticalRightInnerExtent +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightLargeArcRadius + offset) + ' 0 0 1 ' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.verticalFullExtent - offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent - offset) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftLargeArcRadius + offset) + ' 0 0 1 ' +\n (coords.leftFullExtent + offset) + ' ' + coords.verticalLeftInnerExtent +\n 'L' +\n (coords.leftFullExtent + offset) + ' ' + (coords.sourceY - coords.leftSmallArcRadius) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftSmallArcRadius + offset) + ' 0 0 1 ' +\n coords.leftInnerExtent + ' ' + (coords.sourceY + offset) +\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY + offset) +\n\n // Walking back\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY - offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.sourceY - offset) +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftSmallArcRadius - offset) + ' 0 0 0 ' +\n (coords.leftFullExtent - offset) + ' ' + (coords.sourceY - coords.leftSmallArcRadius) +\n 'L' +\n (coords.leftFullExtent - offset) + ' ' + coords.verticalLeftInnerExtent +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftLargeArcRadius - offset) + ' 0 0 0 ' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent + offset) +\n 'L' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.verticalFullExtent + offset) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightLargeArcRadius - offset) + ' 0 0 0 ' +\n (coords.rightFullExtent + offset - arrowLen) + ' ' + coords.verticalRightInnerExtent +\n 'L' +\n (coords.rightFullExtent + offset - arrowLen) + ' ' + (coords.targetY - coords.rightSmallArcRadius) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightSmallArcRadius - offset) + ' 0 0 0 ' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.targetY - offset) +\n 'L' +\n (coords.targetX - arrowLen) + ' ' + (coords.targetY - offset) +\n (arrowLen > 0 ? 'L' + coords.targetX + ' ' + (coords.targetY) : '') +\n 'Z';\n } else {\n // Bottom path\n pathString =\n // start at the left of the target node\n 'M ' +\n (coords.targetX - arrowLen) + ' ' + (coords.targetY - offset) + ' ' +\n 'L' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.targetY - offset) +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightSmallArcRadius + offset) + ' 0 0 0 ' +\n (coords.rightFullExtent - offset - arrowLen) + ' ' + (coords.targetY + coords.rightSmallArcRadius) +\n 'L' +\n (coords.rightFullExtent - offset - arrowLen) + ' ' + coords.verticalRightInnerExtent +\n 'A' +\n (coords.rightLargeArcRadius + offset) + ' ' + (coords.rightLargeArcRadius + offset) + ' 0 0 0 ' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.verticalFullExtent + offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent + offset) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftLargeArcRadius + offset) + ' 0 0 0 ' +\n (coords.leftFullExtent + offset) + ' ' + coords.verticalLeftInnerExtent +\n 'L' +\n (coords.leftFullExtent + offset) + ' ' + (coords.sourceY + coords.leftSmallArcRadius) +\n 'A' +\n (coords.leftLargeArcRadius + offset) + ' ' + (coords.leftSmallArcRadius + offset) + ' 0 0 0 ' +\n coords.leftInnerExtent + ' ' + (coords.sourceY - offset) +\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY - offset) +\n\n // Walking back\n 'L' +\n coords.sourceX + ' ' + (coords.sourceY + offset) +\n 'L' +\n coords.leftInnerExtent + ' ' + (coords.sourceY + offset) +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftSmallArcRadius - offset) + ' 0 0 1 ' +\n (coords.leftFullExtent - offset) + ' ' + (coords.sourceY + coords.leftSmallArcRadius) +\n 'L' +\n (coords.leftFullExtent - offset) + ' ' + coords.verticalLeftInnerExtent +\n 'A' +\n (coords.leftLargeArcRadius - offset) + ' ' + (coords.leftLargeArcRadius - offset) + ' 0 0 1 ' +\n coords.leftInnerExtent + ' ' + (coords.verticalFullExtent - offset) +\n 'L' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.verticalFullExtent - offset) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightLargeArcRadius - offset) + ' 0 0 1 ' +\n (coords.rightFullExtent + offset - arrowLen) + ' ' + coords.verticalRightInnerExtent +\n 'L' +\n (coords.rightFullExtent + offset - arrowLen) + ' ' + (coords.targetY + coords.rightSmallArcRadius) +\n 'A' +\n (coords.rightLargeArcRadius - offset) + ' ' + (coords.rightSmallArcRadius - offset) + ' 0 0 1 ' +\n (coords.rightInnerExtent - arrowLen) + ' ' + (coords.targetY + offset) +\n 'L' +\n (coords.targetX - arrowLen) + ' ' + (coords.targetY + offset) +\n (arrowLen > 0 ? 'L' + coords.targetX + ' ' + (coords.targetY) : '') +\n 'Z';\n }\n return pathString;\n}\n\nfunction linkPath() {\n var curvature = 0.5;\n function path(d) {\n var arrowLen = d.linkArrowLength;\n if(d.link.circular) {\n return createCircularClosedPathString(d.link, arrowLen);\n } else {\n var maxArrowLength = Math.abs((d.link.target.x0 - d.link.source.x1) / 2);\n if(arrowLen > maxArrowLength) {\n arrowLen = maxArrowLength;\n }\n var x0 = d.link.source.x1;\n var x1 = d.link.target.x0 - arrowLen;\n var xi = interpolateNumber(x0, x1);\n var x2 = xi(curvature);\n var x3 = xi(1 - curvature);\n var y0a = d.link.y0 - d.link.width / 2;\n var y0b = d.link.y0 + d.link.width / 2;\n var y1a = d.link.y1 - d.link.width / 2;\n var y1b = d.link.y1 + d.link.width / 2;\n var start = 'M' + x0 + ',' + y0a;\n var upperCurve = 'C' + x2 + ',' + y0a +\n ' ' + x3 + ',' + y1a +\n ' ' + x1 + ',' + y1a;\n var lowerCurve = 'C' + x3 + ',' + y1b +\n ' ' + x2 + ',' + y0b +\n ' ' + x0 + ',' + y0b;\n\n var rightEnd = arrowLen > 0 ? 'L' + (x1 + arrowLen) + ',' + (y1a + d.link.width / 2) : '';\n rightEnd += 'L' + x1 + ',' + y1b;\n return start + upperCurve + rightEnd + lowerCurve + 'Z';\n }\n }\n return path;\n}\n\nfunction nodeModel(d, n) {\n var tc = tinycolor(n.color);\n var zoneThicknessPad = c.nodePadAcross;\n var zoneLengthPad = d.nodePad / 2;\n n.dx = n.x1 - n.x0;\n n.dy = n.y1 - n.y0;\n var visibleThickness = n.dx;\n var visibleLength = Math.max(0.5, n.dy);\n\n var key = 'node_' + n.pointNumber;\n // If it's a group, it's mutable and should be unique\n if(n.group) {\n key = Lib.randstr();\n }\n\n // for event data\n n.trace = d.trace;\n n.curveNumber = d.trace.index;\n\n return {\n index: n.pointNumber,\n key: key,\n partOfGroup: n.partOfGroup || false,\n group: n.group,\n traceId: d.key,\n trace: d.trace,\n node: n,\n nodePad: d.nodePad,\n nodeLineColor: d.nodeLineColor,\n nodeLineWidth: d.nodeLineWidth,\n textFont: d.textFont,\n size: d.horizontal ? d.height : d.width,\n visibleWidth: Math.ceil(visibleThickness),\n visibleHeight: visibleLength,\n zoneX: -zoneThicknessPad,\n zoneY: -zoneLengthPad,\n zoneWidth: visibleThickness + 2 * zoneThicknessPad,\n zoneHeight: visibleLength + 2 * zoneLengthPad,\n labelY: d.horizontal ? n.dy / 2 + 1 : n.dx / 2 + 1,\n left: n.originalLayer === 1,\n sizeAcross: d.width,\n forceLayouts: d.forceLayouts,\n horizontal: d.horizontal,\n darkBackground: tc.getBrightness() <= 128,\n tinyColorHue: Color.tinyRGB(tc),\n tinyColorAlpha: tc.getAlpha(),\n valueFormat: d.valueFormat,\n valueSuffix: d.valueSuffix,\n sankey: d.sankey,\n graph: d.graph,\n arrangement: d.arrangement,\n uniqueNodeLabelPathId: [d.guid, d.key, key].join('_'),\n interactionState: d.interactionState,\n figure: d\n };\n}\n\n// rendering snippets\n\nfunction updateNodePositions(sankeyNode) {\n sankeyNode\n .attr('transform', function(d) {\n return strTranslate(d.node.x0.toFixed(3), (d.node.y0).toFixed(3));\n });\n}\n\nfunction updateNodeShapes(sankeyNode) {\n sankeyNode.call(updateNodePositions);\n}\n\nfunction updateShapes(sankeyNode, sankeyLink) {\n sankeyNode.call(updateNodeShapes);\n sankeyLink.attr('d', linkPath());\n}\n\nfunction sizeNode(rect) {\n rect\n .attr('width', function(d) {return d.node.x1 - d.node.x0;})\n .attr('height', function(d) {return d.visibleHeight;});\n}\n\nfunction salientEnough(d) {return (d.link.width > 1 || d.linkLineWidth > 0);}\n\nfunction sankeyTransform(d) {\n var offset = strTranslate(d.translateX, d.translateY);\n return offset + (d.horizontal ? 'matrix(1 0 0 1 0 0)' : 'matrix(0 1 1 0 0 0)');\n}\n\n// event handling\n\nfunction attachPointerEvents(selection, sankey, eventSet) {\n selection\n .on('.basic', null) // remove any preexisting handlers\n .on('mouseover.basic', function(d) {\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.hover(this, d, sankey);\n d.interactionState.hovered = [this, d];\n }\n })\n .on('mousemove.basic', function(d) {\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.follow(this, d);\n d.interactionState.hovered = [this, d];\n }\n })\n .on('mouseout.basic', function(d) {\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.unhover(this, d, sankey);\n d.interactionState.hovered = false;\n }\n })\n .on('click.basic', function(d) {\n if(d.interactionState.hovered) {\n eventSet.unhover(this, d, sankey);\n d.interactionState.hovered = false;\n }\n if(!d.interactionState.dragInProgress && !d.partOfGroup) {\n eventSet.select(this, d, sankey);\n }\n });\n}\n\nfunction attachDragHandler(sankeyNode, sankeyLink, callbacks, gd) {\n var dragBehavior = d3.behavior.drag()\n .origin(function(d) {\n return {\n x: d.node.x0 + d.visibleWidth / 2,\n y: d.node.y0 + d.visibleHeight / 2\n };\n })\n\n .on('dragstart', function(d) {\n if(d.arrangement === 'fixed') return;\n Lib.ensureSingle(gd._fullLayout._infolayer, 'g', 'dragcover', function(s) {\n gd._fullLayout._dragCover = s;\n });\n Lib.raiseToTop(this);\n d.interactionState.dragInProgress = d.node;\n\n saveCurrentDragPosition(d.node);\n if(d.interactionState.hovered) {\n callbacks.nodeEvents.unhover.apply(0, d.interactionState.hovered);\n d.interactionState.hovered = false;\n }\n if(d.arrangement === 'snap') {\n var forceKey = d.traceId + '|' + d.key;\n if(d.forceLayouts[forceKey]) {\n d.forceLayouts[forceKey].alpha(1);\n } else { // make a forceLayout if needed\n attachForce(sankeyNode, forceKey, d, gd);\n }\n startForce(sankeyNode, sankeyLink, d, forceKey, gd);\n }\n })\n\n .on('drag', function(d) {\n if(d.arrangement === 'fixed') return;\n var x = d3.event.x;\n var y = d3.event.y;\n if(d.arrangement === 'snap') {\n d.node.x0 = x - d.visibleWidth / 2;\n d.node.x1 = x + d.visibleWidth / 2;\n d.node.y0 = y - d.visibleHeight / 2;\n d.node.y1 = y + d.visibleHeight / 2;\n } else {\n if(d.arrangement === 'freeform') {\n d.node.x0 = x - d.visibleWidth / 2;\n d.node.x1 = x + d.visibleWidth / 2;\n }\n y = Math.max(0, Math.min(d.size - d.visibleHeight / 2, y));\n d.node.y0 = y - d.visibleHeight / 2;\n d.node.y1 = y + d.visibleHeight / 2;\n }\n\n saveCurrentDragPosition(d.node);\n if(d.arrangement !== 'snap') {\n d.sankey.update(d.graph);\n updateShapes(sankeyNode.filter(sameLayer(d)), sankeyLink);\n }\n })\n\n .on('dragend', function(d) {\n if(d.arrangement === 'fixed') return;\n d.interactionState.dragInProgress = false;\n for(var i = 0; i < d.node.childrenNodes.length; i++) {\n d.node.childrenNodes[i].x = d.node.x;\n d.node.childrenNodes[i].y = d.node.y;\n }\n if(d.arrangement !== 'snap') persistFinalNodePositions(d, gd);\n });\n\n sankeyNode\n .on('.drag', null) // remove possible previous handlers\n .call(dragBehavior);\n}\n\nfunction attachForce(sankeyNode, forceKey, d, gd) {\n // Attach force to nodes in the same column (same x coordinate)\n switchToForceFormat(d.graph.nodes);\n var nodes = d.graph.nodes\n .filter(function(n) {return n.originalX === d.node.originalX;})\n // Filter out children\n .filter(function(n) {return !n.partOfGroup;});\n d.forceLayouts[forceKey] = d3Force.forceSimulation(nodes)\n .alphaDecay(0)\n .force('collide', d3Force.forceCollide()\n .radius(function(n) {return n.dy / 2 + d.nodePad / 2;})\n .strength(1)\n .iterations(c.forceIterations))\n .force('constrain', snappingForce(sankeyNode, forceKey, nodes, d, gd))\n .stop();\n}\n\nfunction startForce(sankeyNode, sankeyLink, d, forceKey, gd) {\n window.requestAnimationFrame(function faster() {\n var i;\n for(i = 0; i < c.forceTicksPerFrame; i++) {\n d.forceLayouts[forceKey].tick();\n }\n\n var nodes = d.graph.nodes;\n switchToSankeyFormat(nodes);\n\n d.sankey.update(d.graph);\n updateShapes(sankeyNode.filter(sameLayer(d)), sankeyLink);\n\n if(d.forceLayouts[forceKey].alpha() > 0) {\n window.requestAnimationFrame(faster);\n } else {\n // Make sure the final x position is equal to its original value\n // because the force simulation will have numerical error\n var x = d.node.originalX;\n d.node.x0 = x - d.visibleWidth / 2;\n d.node.x1 = x + d.visibleWidth / 2;\n\n persistFinalNodePositions(d, gd);\n }\n });\n}\n\nfunction snappingForce(sankeyNode, forceKey, nodes, d) {\n return function _snappingForce() {\n var maxVelocity = 0;\n for(var i = 0; i < nodes.length; i++) {\n var n = nodes[i];\n if(n === d.interactionState.dragInProgress) { // constrain node position to the dragging pointer\n n.x = n.lastDraggedX;\n n.y = n.lastDraggedY;\n } else {\n n.vx = (n.originalX - n.x) / c.forceTicksPerFrame; // snap to layer\n n.y = Math.min(d.size - n.dy / 2, Math.max(n.dy / 2, n.y)); // constrain to extent\n }\n maxVelocity = Math.max(maxVelocity, Math.abs(n.vx), Math.abs(n.vy));\n }\n if(!d.interactionState.dragInProgress && maxVelocity < 0.1 && d.forceLayouts[forceKey].alpha() > 0) {\n d.forceLayouts[forceKey].alpha(0); // This will stop the animation loop\n }\n };\n}\n\n// basic data utilities\n\nfunction persistFinalNodePositions(d, gd) {\n var x = [];\n var y = [];\n for(var i = 0; i < d.graph.nodes.length; i++) {\n var nodeX = (d.graph.nodes[i].x0 + d.graph.nodes[i].x1) / 2;\n var nodeY = (d.graph.nodes[i].y0 + d.graph.nodes[i].y1) / 2;\n x.push(nodeX / d.figure.width);\n y.push(nodeY / d.figure.height);\n }\n Registry.call('_guiRestyle', gd, {\n 'node.x': [x],\n 'node.y': [y]\n }, d.trace.index)\n .then(function() {\n if(gd._fullLayout._dragCover) gd._fullLayout._dragCover.remove();\n });\n}\n\nfunction persistOriginalPlace(nodes) {\n var distinctLayerPositions = [];\n var i;\n for(i = 0; i < nodes.length; i++) {\n nodes[i].originalX = (nodes[i].x0 + nodes[i].x1) / 2;\n nodes[i].originalY = (nodes[i].y0 + nodes[i].y1) / 2;\n if(distinctLayerPositions.indexOf(nodes[i].originalX) === -1) {\n distinctLayerPositions.push(nodes[i].originalX);\n }\n }\n distinctLayerPositions.sort(function(a, b) {return a - b;});\n for(i = 0; i < nodes.length; i++) {\n nodes[i].originalLayerIndex = distinctLayerPositions.indexOf(nodes[i].originalX);\n nodes[i].originalLayer = nodes[i].originalLayerIndex / (distinctLayerPositions.length - 1);\n }\n}\n\nfunction saveCurrentDragPosition(d) {\n d.lastDraggedX = d.x0 + d.dx / 2;\n d.lastDraggedY = d.y0 + d.dy / 2;\n}\n\nfunction sameLayer(d) {\n return function(n) {return n.node.originalX === d.node.originalX;};\n}\n\nfunction switchToForceFormat(nodes) {\n // force uses x, y as centers\n for(var i = 0; i < nodes.length; i++) {\n nodes[i].y = (nodes[i].y0 + nodes[i].y1) / 2;\n nodes[i].x = (nodes[i].x0 + nodes[i].x1) / 2;\n }\n}\n\nfunction switchToSankeyFormat(nodes) {\n // sankey uses x0, x1, y0, y1\n for(var i = 0; i < nodes.length; i++) {\n nodes[i].y0 = nodes[i].y - nodes[i].dy / 2;\n nodes[i].y1 = nodes[i].y0 + nodes[i].dy;\n\n nodes[i].x0 = nodes[i].x - nodes[i].dx / 2;\n nodes[i].x1 = nodes[i].x0 + nodes[i].dx;\n }\n}\n\n// scene graph\nmodule.exports = function(gd, svg, calcData, layout, callbacks) {\n var isStatic = gd._context.staticPlot;\n\n // To prevent animation on first render\n var firstRender = false;\n Lib.ensureSingle(gd._fullLayout._infolayer, 'g', 'first-render', function() {\n firstRender = true;\n });\n\n // To prevent animation on dragging\n var dragcover = gd._fullLayout._dragCover;\n\n var styledData = calcData\n .filter(function(d) {return unwrap(d).trace.visible;})\n .map(sankeyModel.bind(null, layout));\n\n var sankey = svg.selectAll('.' + c.cn.sankey)\n .data(styledData, keyFun);\n\n sankey.exit()\n .remove();\n\n sankey.enter()\n .append('g')\n .classed(c.cn.sankey, true)\n .style('box-sizing', 'content-box')\n .style('position', 'absolute')\n .style('left', 0)\n .style('shape-rendering', 'geometricPrecision')\n .style('pointer-events', isStatic ? 'none' : 'auto')\n .attr('transform', sankeyTransform);\n\n sankey.each(function(d, i) {\n gd._fullData[i]._sankey = d;\n // Create dragbox if missing\n var dragboxClassName = 'bgsankey-' + d.trace.uid + '-' + i;\n Lib.ensureSingle(gd._fullLayout._draggers, 'rect', dragboxClassName);\n\n gd._fullData[i]._bgRect = d3.select('.' + dragboxClassName);\n\n // Style dragbox\n gd._fullData[i]._bgRect\n .style('pointer-events', isStatic ? 'none' : 'all')\n .attr('width', d.width)\n .attr('height', d.height)\n .attr('x', d.translateX)\n .attr('y', d.translateY)\n .classed('bgsankey', true)\n .style({fill: 'transparent', 'stroke-width': 0});\n });\n\n sankey.transition()\n .ease(c.ease).duration(c.duration)\n .attr('transform', sankeyTransform);\n\n var sankeyLinks = sankey.selectAll('.' + c.cn.sankeyLinks)\n .data(repeat, keyFun);\n\n sankeyLinks.enter()\n .append('g')\n .classed(c.cn.sankeyLinks, true)\n .style('fill', 'none');\n\n var sankeyLink = sankeyLinks.selectAll('.' + c.cn.sankeyLink)\n .data(function(d) {\n var links = d.graph.links;\n return links\n .filter(function(l) {return l.value;})\n .map(linkModel.bind(null, d));\n }, keyFun);\n\n sankeyLink\n .enter().append('path')\n .classed(c.cn.sankeyLink, true)\n .call(attachPointerEvents, sankey, callbacks.linkEvents);\n\n sankeyLink\n .style('stroke', function(d) {\n return salientEnough(d) ? Color.tinyRGB(tinycolor(d.linkLineColor)) : d.tinyColorHue;\n })\n .style('stroke-opacity', function(d) {\n return salientEnough(d) ? Color.opacity(d.linkLineColor) : d.tinyColorAlpha;\n })\n .style('fill', function(d) {\n return d.tinyColorHue;\n })\n .style('fill-opacity', function(d) {\n return d.tinyColorAlpha;\n })\n .style('stroke-width', function(d) {\n return salientEnough(d) ? d.linkLineWidth : 1;\n })\n .attr('d', linkPath());\n\n sankeyLink\n .style('opacity', function() { return (gd._context.staticPlot || firstRender || dragcover) ? 1 : 0;})\n .transition()\n .ease(c.ease).duration(c.duration)\n .style('opacity', 1);\n\n sankeyLink.exit()\n .transition()\n .ease(c.ease).duration(c.duration)\n .style('opacity', 0)\n .remove();\n\n var sankeyNodeSet = sankey.selectAll('.' + c.cn.sankeyNodeSet)\n .data(repeat, keyFun);\n\n sankeyNodeSet.enter()\n .append('g')\n .classed(c.cn.sankeyNodeSet, true);\n\n sankeyNodeSet\n .style('cursor', function(d) {\n switch(d.arrangement) {\n case 'fixed': return 'default';\n case 'perpendicular': return 'ns-resize';\n default: return 'move';\n }\n });\n\n var sankeyNode = sankeyNodeSet.selectAll('.' + c.cn.sankeyNode)\n .data(function(d) {\n var nodes = d.graph.nodes;\n persistOriginalPlace(nodes);\n return nodes\n .map(nodeModel.bind(null, d));\n }, keyFun);\n\n sankeyNode.enter()\n .append('g')\n .classed(c.cn.sankeyNode, true)\n .call(updateNodePositions)\n .style('opacity', function(n) { return ((gd._context.staticPlot || firstRender) && !n.partOfGroup) ? 1 : 0;});\n\n sankeyNode\n .call(attachPointerEvents, sankey, callbacks.nodeEvents)\n .call(attachDragHandler, sankeyLink, callbacks, gd); // has to be here as it binds sankeyLink\n\n sankeyNode\n .transition()\n .ease(c.ease).duration(c.duration)\n .call(updateNodePositions)\n .style('opacity', function(n) { return n.partOfGroup ? 0 : 1;});\n\n sankeyNode.exit()\n .transition()\n .ease(c.ease).duration(c.duration)\n .style('opacity', 0)\n .remove();\n\n var nodeRect = sankeyNode.selectAll('.' + c.cn.nodeRect)\n .data(repeat);\n\n nodeRect.enter()\n .append('rect')\n .classed(c.cn.nodeRect, true)\n .call(sizeNode);\n\n nodeRect\n .style('stroke-width', function(d) {return d.nodeLineWidth;})\n .style('stroke', function(d) {return Color.tinyRGB(tinycolor(d.nodeLineColor));})\n .style('stroke-opacity', function(d) {return Color.opacity(d.nodeLineColor);})\n .style('fill', function(d) {return d.tinyColorHue;})\n .style('fill-opacity', function(d) {return d.tinyColorAlpha;});\n\n nodeRect.transition()\n .ease(c.ease).duration(c.duration)\n .call(sizeNode);\n\n var nodeLabel = sankeyNode.selectAll('.' + c.cn.nodeLabel)\n .data(repeat);\n\n nodeLabel.enter()\n .append('text')\n .classed(c.cn.nodeLabel, true)\n .style('cursor', 'default');\n\n nodeLabel\n .attr('data-notex', 1) // prohibit tex interpretation until we can handle tex and regular text together\n .text(function(d) { return d.node.label; })\n .each(function(d) {\n var e = d3.select(this);\n Drawing.font(e, d.textFont);\n svgTextUtils.convertToTspans(e, gd);\n })\n .style('text-shadow', svgTextUtils.makeTextShadow(gd._fullLayout.paper_bgcolor))\n .attr('text-anchor', function(d) {\n return (d.horizontal && d.left) ? 'end' : 'start';\n })\n .attr('transform', function(d) {\n var e = d3.select(this);\n // how much to shift a multi-line label to center it vertically.\n var nLines = svgTextUtils.lineCount(e);\n var blockHeight = d.textFont.size * (\n (nLines - 1) * LINE_SPACING - CAP_SHIFT\n );\n\n var posX = d.nodeLineWidth / 2 + TEXTPAD;\n var posY = ((d.horizontal ? d.visibleHeight : d.visibleWidth) - blockHeight) / 2;\n if(d.horizontal) {\n if(d.left) {\n posX = -posX;\n } else {\n posX += d.visibleWidth;\n }\n }\n\n var flipText = d.horizontal ? '' : (\n 'scale(-1,1)' + strRotate(90)\n );\n\n return strTranslate(\n d.horizontal ? posX : posY,\n d.horizontal ? posY : posX\n ) + flipText;\n });\n\n nodeLabel\n .transition()\n .ease(c.ease).duration(c.duration);\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../constants/alignment\":483,\"../../lib\":515,\"../../lib/gup\":512,\"../../lib/svg_text_utils\":541,\"../../registry\":647,\"./constants\":929,\"@plotly/d3\":58,\"@plotly/d3-sankey\":57,\"@plotly/d3-sankey-circular\":56,\"d3-force\":111,\"d3-interpolate\":116,\"tinycolor2\":313}],934:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var selection = [];\n var fullData = cd[0].trace;\n\n var nodes = fullData._sankey.graph.nodes;\n\n for(var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n if(node.partOfGroup) continue; // Those are invisible\n\n // Position of node's centroid\n var pos = [(node.x0 + node.x1) / 2, (node.y0 + node.y1) / 2];\n\n // Swap x and y if trace is vertical\n if(fullData.orientation === 'v') pos.reverse();\n\n if(selectionTester && selectionTester.contains(pos, false, i, searchInfo)) {\n selection.push({\n pointNumber: node.pointNumber\n // TODO: add eventData\n });\n }\n }\n return selection;\n};\n\n},{}],935:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n\n// arrayOk attributes, merge them into calcdata array\nmodule.exports = function arraysToCalcdata(cd, trace) {\n // so each point knows which index it originally came from\n for(var i = 0; i < cd.length; i++) cd[i].i = i;\n\n Lib.mergeArray(trace.text, cd, 'tx');\n Lib.mergeArray(trace.texttemplate, cd, 'txt');\n Lib.mergeArray(trace.hovertext, cd, 'htx');\n Lib.mergeArray(trace.customdata, cd, 'data');\n Lib.mergeArray(trace.textposition, cd, 'tp');\n if(trace.textfont) {\n Lib.mergeArrayCastPositive(trace.textfont.size, cd, 'ts');\n Lib.mergeArray(trace.textfont.color, cd, 'tc');\n Lib.mergeArray(trace.textfont.family, cd, 'tf');\n }\n\n var marker = trace.marker;\n if(marker) {\n Lib.mergeArrayCastPositive(marker.size, cd, 'ms');\n Lib.mergeArrayCastPositive(marker.opacity, cd, 'mo');\n Lib.mergeArray(marker.symbol, cd, 'mx');\n Lib.mergeArray(marker.angle, cd, 'ma');\n Lib.mergeArray(marker.standoff, cd, 'mf');\n Lib.mergeArray(marker.color, cd, 'mc');\n\n var markerLine = marker.line;\n if(marker.line) {\n Lib.mergeArray(markerLine.color, cd, 'mlc');\n Lib.mergeArrayCastPositive(markerLine.width, cd, 'mlw');\n }\n\n var markerGradient = marker.gradient;\n if(markerGradient && markerGradient.type !== 'none') {\n Lib.mergeArray(markerGradient.type, cd, 'mgt');\n Lib.mergeArray(markerGradient.color, cd, 'mgc');\n }\n }\n};\n\n},{\"../../lib\":515}],936:[function(_dereq_,module,exports){\n'use strict';\n\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\nvar pattern = _dereq_('../../components/drawing/attributes').pattern;\n\nvar Drawing = _dereq_('../../components/drawing');\nvar constants = _dereq_('./constants');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nfunction axisPeriod(axis) {\n return {\n valType: 'any',\n dflt: 0,\n editType: 'calc',\n };\n}\n\nfunction axisPeriod0(axis) {\n return {\n valType: 'any',\n editType: 'calc',\n };\n}\n\nfunction axisPeriodAlignment(axis) {\n return {\n valType: 'enumerated',\n values: [\n 'start', 'middle', 'end'\n ],\n dflt: 'middle',\n editType: 'calc',\n };\n}\n\nmodule.exports = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n x0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n dx: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n anim: true,\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n y0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n anim: true,\n },\n dy: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n anim: true,\n },\n\n xperiod: axisPeriod('x'),\n yperiod: axisPeriod('y'),\n xperiod0: axisPeriod0('x0'),\n yperiod0: axisPeriod0('y0'),\n xperiodalignment: axisPeriodAlignment('x'),\n yperiodalignment: axisPeriodAlignment('y'),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n stackgroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n orientation: {\n valType: 'enumerated',\n values: ['v', 'h'],\n editType: 'calc',\n },\n groupnorm: {\n valType: 'enumerated',\n values: ['', 'fraction', 'percent'],\n dflt: '',\n editType: 'calc',\n },\n stackgaps: {\n valType: 'enumerated',\n values: ['infer zero', 'interpolate'],\n dflt: 'infer zero',\n editType: 'calc',\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'calc',\n },\n\n texttemplate: texttemplateAttrs({}, {\n\n }),\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n editType: 'style',\n },\n mode: {\n valType: 'flaglist',\n flags: ['lines', 'markers', 'text'],\n extras: ['none'],\n editType: 'calc',\n },\n hoveron: {\n valType: 'flaglist',\n flags: ['points', 'fills'],\n editType: 'style',\n },\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n anim: true,\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n anim: true,\n },\n shape: {\n valType: 'enumerated',\n values: ['linear', 'spline', 'hv', 'vh', 'hvh', 'vhv'],\n dflt: 'linear',\n editType: 'plot',\n },\n smoothing: {\n valType: 'number',\n min: 0,\n max: 1.3,\n dflt: 1,\n editType: 'plot',\n },\n dash: extendFlat({}, dash, {editType: 'style'}),\n backoff: { // we want to have a similar option for the start of the line\n valType: 'number',\n min: 0,\n dflt: 'auto',\n arrayOk: true,\n editType: 'plot',\n },\n simplify: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n\n connectgaps: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n cliponaxis: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n\n fill: {\n valType: 'enumerated',\n values: ['none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext'],\n editType: 'calc',\n },\n fillcolor: {\n valType: 'color',\n editType: 'style',\n anim: true,\n },\n fillpattern: pattern,\n marker: extendFlat({\n symbol: {\n valType: 'enumerated',\n values: Drawing.symbolList,\n dflt: 'circle',\n arrayOk: true,\n editType: 'style',\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n arrayOk: true,\n editType: 'style',\n anim: true,\n },\n angle: {\n valType: 'angle',\n dflt: 0,\n arrayOk: true,\n editType: 'plot',\n anim: false, // TODO: possibly set to true in future\n },\n angleref: {\n valType: 'enumerated',\n values: ['previous', 'up'],\n dflt: 'up',\n editType: 'plot',\n anim: false,\n },\n standoff: {\n valType: 'number',\n min: 0,\n dflt: 0,\n arrayOk: true,\n editType: 'plot',\n anim: true,\n },\n size: {\n valType: 'number',\n min: 0,\n dflt: 6,\n arrayOk: true,\n editType: 'calc',\n anim: true,\n },\n maxdisplayed: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'plot',\n },\n sizeref: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n sizemin: {\n valType: 'number',\n min: 0,\n dflt: 0,\n editType: 'calc',\n },\n sizemode: {\n valType: 'enumerated',\n values: ['diameter', 'area'],\n dflt: 'diameter',\n editType: 'calc',\n },\n\n line: extendFlat({\n width: {\n valType: 'number',\n min: 0,\n arrayOk: true,\n editType: 'style',\n anim: true,\n },\n editType: 'calc'\n },\n colorScaleAttrs('marker.line', {anim: true})\n ),\n gradient: {\n type: {\n valType: 'enumerated',\n values: ['radial', 'horizontal', 'vertical', 'none'],\n arrayOk: true,\n dflt: 'none',\n editType: 'calc',\n },\n color: {\n valType: 'color',\n arrayOk: true,\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'calc'\n },\n colorScaleAttrs('marker', {anim: true})\n ),\n selected: {\n marker: {\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'style',\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n size: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'style'\n },\n textfont: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'style'\n },\n unselected: {\n marker: {\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'style',\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n size: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'style'\n },\n textfont: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'style'\n },\n\n textposition: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle left', 'middle center', 'middle right',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n dflt: 'middle center',\n arrayOk: true,\n editType: 'calc',\n },\n textfont: fontAttrs({\n editType: 'calc',\n colorEditType: 'style',\n arrayOk: true,\n }),\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../components/drawing\":389,\"../../components/drawing/attributes\":388,\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/font_attributes\":594,\"../../plots/template_attributes\":642,\"./constants\":940}],937:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar Lib = _dereq_('../../lib');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar subTypes = _dereq_('./subtypes');\nvar calcColorscale = _dereq_('./colorscale_calc');\nvar arraysToCalcdata = _dereq_('./arrays_to_calcdata');\nvar calcSelection = _dereq_('./calc_selection');\n\nfunction calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = trace._xA = Axes.getFromId(gd, trace.xaxis || 'x', 'x');\n var ya = trace._yA = Axes.getFromId(gd, trace.yaxis || 'y', 'y');\n var origX = xa.makeCalcdata(trace, 'x');\n var origY = ya.makeCalcdata(trace, 'y');\n var xObj = alignPeriod(trace, xa, 'x', origX);\n var yObj = alignPeriod(trace, ya, 'y', origY);\n var x = xObj.vals;\n var y = yObj.vals;\n\n var serieslen = trace._length;\n var cd = new Array(serieslen);\n var ids = trace.ids;\n var stackGroupOpts = getStackOpts(trace, fullLayout, xa, ya);\n var interpolateGaps = false;\n var isV, i, j, k, interpolate, vali;\n\n setFirstScatter(fullLayout, trace);\n\n var xAttr = 'x';\n var yAttr = 'y';\n var posAttr;\n if(stackGroupOpts) {\n Lib.pushUnique(stackGroupOpts.traceIndices, trace._expandedIndex);\n isV = stackGroupOpts.orientation === 'v';\n\n // size, like we use for bar\n if(isV) {\n yAttr = 's';\n posAttr = 'x';\n } else {\n xAttr = 's';\n posAttr = 'y';\n }\n interpolate = stackGroupOpts.stackgaps === 'interpolate';\n } else {\n var ppad = calcMarkerSize(trace, serieslen);\n calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);\n }\n\n var hasPeriodX = !!trace.xperiodalignment;\n var hasPeriodY = !!trace.yperiodalignment;\n\n for(i = 0; i < serieslen; i++) {\n var cdi = cd[i] = {};\n var xValid = isNumeric(x[i]);\n var yValid = isNumeric(y[i]);\n if(xValid && yValid) {\n cdi[xAttr] = x[i];\n cdi[yAttr] = y[i];\n\n if(hasPeriodX) {\n cdi.orig_x = origX[i]; // used by hover\n cdi.xEnd = xObj.ends[i];\n cdi.xStart = xObj.starts[i];\n }\n if(hasPeriodY) {\n cdi.orig_y = origY[i]; // used by hover\n cdi.yEnd = yObj.ends[i];\n cdi.yStart = yObj.starts[i];\n }\n } else if(stackGroupOpts && (isV ? xValid : yValid)) {\n // if we're stacking we need to hold on to all valid positions\n // even with invalid sizes\n\n cdi[posAttr] = isV ? x[i] : y[i];\n cdi.gap = true;\n if(interpolate) {\n cdi.s = BADNUM;\n interpolateGaps = true;\n } else {\n cdi.s = 0;\n }\n } else {\n cdi[xAttr] = cdi[yAttr] = BADNUM;\n }\n\n if(ids) {\n cdi.id = String(ids[i]);\n }\n }\n\n arraysToCalcdata(cd, trace);\n calcColorscale(gd, trace);\n calcSelection(cd, trace);\n\n if(stackGroupOpts) {\n // remove bad positions and sort\n // note that original indices get added to cd in arraysToCalcdata\n i = 0;\n while(i < cd.length) {\n if(cd[i][posAttr] === BADNUM) {\n cd.splice(i, 1);\n } else i++;\n }\n\n Lib.sort(cd, function(a, b) {\n return (a[posAttr] - b[posAttr]) || (a.i - b.i);\n });\n\n if(interpolateGaps) {\n // first fill the beginning with constant from the first point\n i = 0;\n while(i < cd.length - 1 && cd[i].gap) {\n i++;\n }\n vali = cd[i].s;\n if(!vali) vali = cd[i].s = 0; // in case of no data AT ALL in this trace - use 0\n for(j = 0; j < i; j++) {\n cd[j].s = vali;\n }\n // then fill the end with constant from the last point\n k = cd.length - 1;\n while(k > i && cd[k].gap) {\n k--;\n }\n vali = cd[k].s;\n for(j = cd.length - 1; j > k; j--) {\n cd[j].s = vali;\n }\n // now interpolate internal gaps linearly\n while(i < k) {\n i++;\n if(cd[i].gap) {\n j = i + 1;\n while(cd[j].gap) {\n j++;\n }\n var pos0 = cd[i - 1][posAttr];\n var size0 = cd[i - 1].s;\n var m = (cd[j].s - size0) / (cd[j][posAttr] - pos0);\n while(i < j) {\n cd[i].s = size0 + (cd[i][posAttr] - pos0) * m;\n i++;\n }\n }\n }\n }\n }\n\n return cd;\n}\n\nfunction calcAxisExpansion(gd, trace, xa, ya, x, y, ppad) {\n var serieslen = trace._length;\n var fullLayout = gd._fullLayout;\n var xId = xa._id;\n var yId = ya._id;\n var firstScatter = fullLayout._firstScatter[firstScatterGroup(trace)] === trace.uid;\n var stackOrientation = (getStackOpts(trace, fullLayout, xa, ya) || {}).orientation;\n var fill = trace.fill;\n\n // cancel minimum tick spacings (only applies to bars and boxes)\n xa._minDtick = 0;\n ya._minDtick = 0;\n\n // check whether bounds should be tight, padded, extended to zero...\n // most cases both should be padded on both ends, so start with that.\n var xOptions = {padded: true};\n var yOptions = {padded: true};\n\n if(ppad) {\n xOptions.ppad = yOptions.ppad = ppad;\n }\n\n // TODO: text size\n\n var openEnded = serieslen < 2 || (x[0] !== x[serieslen - 1]) || (y[0] !== y[serieslen - 1]);\n\n if(openEnded && (\n (fill === 'tozerox') ||\n ((fill === 'tonextx') && (firstScatter || stackOrientation === 'h'))\n )) {\n // include zero (tight) and extremes (padded) if fill to zero\n // (unless the shape is closed, then it's just filling the shape regardless)\n\n xOptions.tozero = true;\n } else if(!(trace.error_y || {}).visible && (\n // if no error bars, markers or text, or fill to y=0 remove x padding\n\n (fill === 'tonexty' || fill === 'tozeroy') ||\n (!subTypes.hasMarkers(trace) && !subTypes.hasText(trace))\n )) {\n xOptions.padded = false;\n xOptions.ppad = 0;\n }\n\n if(openEnded && (\n (fill === 'tozeroy') ||\n ((fill === 'tonexty') && (firstScatter || stackOrientation === 'v'))\n )) {\n // now check for y - rather different logic, though still mostly padded both ends\n // include zero (tight) and extremes (padded) if fill to zero\n // (unless the shape is closed, then it's just filling the shape regardless)\n\n yOptions.tozero = true;\n } else if(fill === 'tonextx' || fill === 'tozerox') {\n // tight y: any x fill\n\n yOptions.padded = false;\n }\n\n // N.B. asymmetric splom traces call this with blank {} xa or ya\n if(xId) trace._extremes[xId] = Axes.findExtremes(xa, x, xOptions);\n if(yId) trace._extremes[yId] = Axes.findExtremes(ya, y, yOptions);\n}\n\nfunction calcMarkerSize(trace, serieslen) {\n if(!subTypes.hasMarkers(trace)) return;\n\n // Treat size like x or y arrays --- Run d2c\n // this needs to go before ppad computation\n var marker = trace.marker;\n var sizeref = 1.6 * (trace.marker.sizeref || 1);\n var markerTrans;\n\n if(trace.marker.sizemode === 'area') {\n markerTrans = function(v) {\n return Math.max(Math.sqrt((v || 0) / sizeref), 3);\n };\n } else {\n markerTrans = function(v) {\n return Math.max((v || 0) / sizeref, 3);\n };\n }\n\n if(Lib.isArrayOrTypedArray(marker.size)) {\n // I tried auto-type but category and dates dont make much sense.\n var ax = {type: 'linear'};\n Axes.setConvert(ax);\n\n var s = ax.makeCalcdata(trace.marker, 'size');\n\n var sizeOut = new Array(serieslen);\n for(var i = 0; i < serieslen; i++) {\n sizeOut[i] = markerTrans(s[i]);\n }\n return sizeOut;\n } else {\n return markerTrans(marker.size);\n }\n}\n\n/**\n * mark the first scatter trace for each subplot\n * note that scatter and scattergl each get their own first trace\n * note also that I'm doing this during calc rather than supplyDefaults\n * so I don't need to worry about transforms, but if we ever do\n * per-trace calc this will get confused.\n */\nfunction setFirstScatter(fullLayout, trace) {\n var group = firstScatterGroup(trace);\n var firstScatter = fullLayout._firstScatter;\n if(!firstScatter[group]) firstScatter[group] = trace.uid;\n}\n\nfunction firstScatterGroup(trace) {\n var stackGroup = trace.stackgroup;\n return trace.xaxis + trace.yaxis + trace.type +\n (stackGroup ? '-' + stackGroup : '');\n}\n\nfunction getStackOpts(trace, fullLayout, xa, ya) {\n var stackGroup = trace.stackgroup;\n if(!stackGroup) return;\n var stackOpts = fullLayout._scatterStackOpts[xa._id + ya._id][stackGroup];\n var stackAx = stackOpts.orientation === 'v' ? ya : xa;\n // Allow stacking only on numeric axes\n // calc is a little late to be figuring this out, but during supplyDefaults\n // we don't know the axis type yet\n if(stackAx.type === 'linear' || stackAx.type === 'log') return stackOpts;\n}\n\nmodule.exports = {\n calc: calc,\n calcMarkerSize: calcMarkerSize,\n calcAxisExpansion: calcAxisExpansion,\n setFirstScatter: setFirstScatter,\n getStackOpts: getStackOpts\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"./arrays_to_calcdata\":935,\"./calc_selection\":938,\"./colorscale_calc\":939,\"./subtypes\":961,\"fast-isnumeric\":190}],938:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function calcSelection(cd, trace) {\n if(Lib.isArrayOrTypedArray(trace.selectedpoints)) {\n Lib.tagSelected(cd, trace);\n }\n};\n\n},{\"../../lib\":515}],939:[function(_dereq_,module,exports){\n'use strict';\n\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar calcColorscale = _dereq_('../../components/colorscale/calc');\n\nvar subTypes = _dereq_('./subtypes');\n\nmodule.exports = function calcMarkerColorscale(gd, trace) {\n if(subTypes.hasLines(trace) && hasColorscale(trace, 'line')) {\n calcColorscale(gd, trace, {\n vals: trace.line.color,\n containerStr: 'line',\n cLetter: 'c'\n });\n }\n\n if(subTypes.hasMarkers(trace)) {\n if(hasColorscale(trace, 'marker')) {\n calcColorscale(gd, trace, {\n vals: trace.marker.color,\n containerStr: 'marker',\n cLetter: 'c'\n });\n }\n if(hasColorscale(trace, 'marker.line')) {\n calcColorscale(gd, trace, {\n vals: trace.marker.line.color,\n containerStr: 'marker.line',\n cLetter: 'c'\n });\n }\n }\n};\n\n},{\"../../components/colorscale/calc\":375,\"../../components/colorscale/helpers\":378,\"./subtypes\":961}],940:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n PTS_LINESONLY: 20,\n\n // fixed parameters of clustering and clipping algorithms\n\n // fraction of clustering tolerance \"so close we don't even consider it a new point\"\n minTolerance: 0.2,\n // how fast does clustering tolerance increase as you get away from the visible region\n toleranceGrowth: 10,\n\n // number of viewport sizes away from the visible region\n // at which we clip all lines to the perimeter\n maxScreensAway: 20,\n\n eventDataKeys: []\n};\n\n},{}],941:[function(_dereq_,module,exports){\n'use strict';\n\nvar calc = _dereq_('./calc');\n\n/*\n * Scatter stacking & normalization calculations\n * runs per subplot, and can handle multiple stacking groups\n */\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var subplot = xa._id + ya._id;\n\n var subplotStackOpts = gd._fullLayout._scatterStackOpts[subplot];\n if(!subplotStackOpts) return;\n\n var calcTraces = gd.calcdata;\n\n var i, j, k, i2, cd, cd0, posj, sumj, norm;\n var groupOpts, interpolate, groupnorm, posAttr, valAttr;\n var hasAnyBlanks;\n\n for(var stackGroup in subplotStackOpts) {\n groupOpts = subplotStackOpts[stackGroup];\n var indices = groupOpts.traceIndices;\n\n // can get here with no indices if the stack axis is non-numeric\n if(!indices.length) continue;\n\n interpolate = groupOpts.stackgaps === 'interpolate';\n groupnorm = groupOpts.groupnorm;\n if(groupOpts.orientation === 'v') {\n posAttr = 'x';\n valAttr = 'y';\n } else {\n posAttr = 'y';\n valAttr = 'x';\n }\n hasAnyBlanks = new Array(indices.length);\n for(i = 0; i < hasAnyBlanks.length; i++) {\n hasAnyBlanks[i] = false;\n }\n\n // Collect the complete set of all positions across ALL traces.\n // Start with the first trace, then interleave items from later traces\n // as needed.\n // Fill in mising items as we go.\n cd0 = calcTraces[indices[0]];\n var allPositions = new Array(cd0.length);\n for(i = 0; i < cd0.length; i++) {\n allPositions[i] = cd0[i][posAttr];\n }\n\n for(i = 1; i < indices.length; i++) {\n cd = calcTraces[indices[i]];\n\n for(j = k = 0; j < cd.length; j++) {\n posj = cd[j][posAttr];\n for(; posj > allPositions[k] && k < allPositions.length; k++) {\n // the current trace is missing a position from some previous trace(s)\n insertBlank(cd, j, allPositions[k], i, hasAnyBlanks, interpolate, posAttr);\n j++;\n }\n if(posj !== allPositions[k]) {\n // previous trace(s) are missing a position from the current trace\n for(i2 = 0; i2 < i; i2++) {\n insertBlank(calcTraces[indices[i2]], k, posj, i2, hasAnyBlanks, interpolate, posAttr);\n }\n allPositions.splice(k, 0, posj);\n }\n k++;\n }\n for(; k < allPositions.length; k++) {\n insertBlank(cd, j, allPositions[k], i, hasAnyBlanks, interpolate, posAttr);\n j++;\n }\n }\n\n var serieslen = allPositions.length;\n\n // stack (and normalize)!\n for(j = 0; j < cd0.length; j++) {\n sumj = cd0[j][valAttr] = cd0[j].s;\n for(i = 1; i < indices.length; i++) {\n cd = calcTraces[indices[i]];\n cd[0].trace._rawLength = cd[0].trace._length;\n cd[0].trace._length = serieslen;\n sumj += cd[j].s;\n cd[j][valAttr] = sumj;\n }\n\n if(groupnorm) {\n norm = ((groupnorm === 'fraction') ? sumj : (sumj / 100)) || 1;\n for(i = 0; i < indices.length; i++) {\n var cdj = calcTraces[indices[i]][j];\n cdj[valAttr] /= norm;\n cdj.sNorm = cdj.s / norm;\n }\n }\n }\n\n // autorange\n for(i = 0; i < indices.length; i++) {\n cd = calcTraces[indices[i]];\n var trace = cd[0].trace;\n var ppad = calc.calcMarkerSize(trace, trace._rawLength);\n var arrayPad = Array.isArray(ppad);\n if((ppad && hasAnyBlanks[i]) || arrayPad) {\n var ppadRaw = ppad;\n ppad = new Array(serieslen);\n for(j = 0; j < serieslen; j++) {\n ppad[j] = cd[j].gap ? 0 : (arrayPad ? ppadRaw[cd[j].i] : ppadRaw);\n }\n }\n var x = new Array(serieslen);\n var y = new Array(serieslen);\n for(j = 0; j < serieslen; j++) {\n x[j] = cd[j].x;\n y[j] = cd[j].y;\n }\n calc.calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);\n\n // while we're here (in a loop over all traces in the stack)\n // record the orientation, so hover can find it easily\n cd[0].t.orientation = groupOpts.orientation;\n }\n }\n};\n\nfunction insertBlank(calcTrace, index, position, traceIndex, hasAnyBlanks, interpolate, posAttr) {\n hasAnyBlanks[traceIndex] = true;\n var newEntry = {\n i: null,\n gap: true,\n s: 0\n };\n newEntry[posAttr] = position;\n calcTrace.splice(index, 0, newEntry);\n // Even if we're not interpolating, if one trace has multiple\n // values at the same position and this trace only has one value there,\n // we just duplicate that one value rather than insert a zero.\n // We also make it look like a real point - because it's ambiguous which\n // one really is the real one!\n if(index && position === calcTrace[index - 1][posAttr]) {\n var prevEntry = calcTrace[index - 1];\n newEntry.s = prevEntry.s;\n // TODO is it going to cause any problems to have multiple\n // calcdata points with the same index?\n newEntry.i = prevEntry.i;\n newEntry.gap = prevEntry.gap;\n } else if(interpolate) {\n newEntry.s = getInterp(calcTrace, index, position, posAttr);\n }\n if(!index) {\n // t and trace need to stay on the first cd entry\n calcTrace[0].t = calcTrace[1].t;\n calcTrace[0].trace = calcTrace[1].trace;\n delete calcTrace[1].t;\n delete calcTrace[1].trace;\n }\n}\n\nfunction getInterp(calcTrace, index, position, posAttr) {\n var pt0 = calcTrace[index - 1];\n var pt1 = calcTrace[index + 1];\n if(!pt1) return pt0.s;\n if(!pt0) return pt1.s;\n return pt0.s + (pt1.s - pt0.s) * (position - pt0[posAttr]) / (pt1[posAttr] - pt0[posAttr]);\n}\n\n},{\"./calc\":937}],942:[function(_dereq_,module,exports){\n'use strict';\n\n\n// remove opacity for any trace that has a fill or is filled to\nmodule.exports = function crossTraceDefaults(fullData) {\n for(var i = 0; i < fullData.length; i++) {\n var tracei = fullData[i];\n if(tracei.type !== 'scatter') continue;\n\n var filli = tracei.fill;\n if(filli === 'none' || filli === 'toself') continue;\n\n tracei.opacity = undefined;\n\n if(filli === 'tonexty' || filli === 'tonextx') {\n for(var j = i - 1; j >= 0; j--) {\n var tracej = fullData[j];\n\n if((tracej.type === 'scatter') &&\n (tracej.xaxis === tracei.xaxis) &&\n (tracej.yaxis === tracei.yaxis)) {\n tracej.opacity = undefined;\n break;\n }\n }\n }\n }\n};\n\n},{}],943:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('./constants');\nvar subTypes = _dereq_('./subtypes');\nvar handleXYDefaults = _dereq_('./xy_defaults');\nvar handlePeriodDefaults = _dereq_('./period_defaults');\nvar handleStackDefaults = _dereq_('./stack_defaults');\nvar handleMarkerDefaults = _dereq_('./marker_defaults');\nvar handleLineDefaults = _dereq_('./line_defaults');\nvar handleLineShapeDefaults = _dereq_('./line_shape_defaults');\nvar handleTextDefaults = _dereq_('./text_defaults');\nvar handleFillColorDefaults = _dereq_('./fillcolor_defaults');\nvar coercePattern = _dereq_('../../lib').coercePattern;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) traceOut.visible = false;\n\n if(!traceOut.visible) return;\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var stackGroupOpts = handleStackDefaults(traceIn, traceOut, layout, coerce);\n\n var defaultMode = !stackGroupOpts && (len < constants.PTS_LINESONLY) ?\n 'lines+markers' : 'lines';\n coerce('text');\n coerce('hovertext');\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {backoff: true});\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n coerce('line.simplify');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n // It's possible for this default to be changed by a later trace.\n // We handle that case in some hacky code inside handleStackDefaults.\n coerce('fill', stackGroupOpts ? stackGroupOpts.fillDflt : 'none');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n coercePattern(coerce, 'fillpattern', traceOut.fillcolor, false);\n }\n\n var lineColor = (traceOut.line || {}).color;\n var markerColor = (traceOut.marker || {}).color;\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'x', inherit: 'y'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../../registry\":647,\"./attributes\":936,\"./constants\":940,\"./fillcolor_defaults\":944,\"./line_defaults\":949,\"./line_shape_defaults\":951,\"./marker_defaults\":955,\"./period_defaults\":956,\"./stack_defaults\":959,\"./subtypes\":961,\"./text_defaults\":962,\"./xy_defaults\":963}],944:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\n\nmodule.exports = function fillColorDefaults(traceIn, traceOut, defaultColor, coerce) {\n var inheritColorFromMarker = false;\n\n if(traceOut.marker) {\n // don't try to inherit a color array\n var markerColor = traceOut.marker.color;\n var markerLineColor = (traceOut.marker.line || {}).color;\n\n if(markerColor && !isArrayOrTypedArray(markerColor)) {\n inheritColorFromMarker = markerColor;\n } else if(markerLineColor && !isArrayOrTypedArray(markerLineColor)) {\n inheritColorFromMarker = markerLineColor;\n }\n }\n\n coerce('fillcolor', Color.addOpacity(\n (traceOut.line || {}).color ||\n inheritColorFromMarker ||\n defaultColor, 0.5\n ));\n};\n\n},{\"../../components/color\":367,\"../../lib\":515}],945:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var mockGd = {_fullLayout: fullLayout};\n var xa = Axes.getFromTrace(mockGd, trace, 'x');\n var ya = Axes.getFromTrace(mockGd, trace, 'y');\n\n labels.xLabel = Axes.tickText(xa, xa.c2l(cdi.x), true).text;\n labels.yLabel = Axes.tickText(ya, ya.c2l(cdi.y), true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":566}],946:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar subtypes = _dereq_('./subtypes');\n\n\nmodule.exports = function getTraceColor(trace, di) {\n var lc, tc;\n\n // TODO: text modes\n\n if(trace.mode === 'lines') {\n lc = trace.line.color;\n return (lc && Color.opacity(lc)) ?\n lc : trace.fillcolor;\n } else if(trace.mode === 'none') {\n return trace.fill ? trace.fillcolor : '';\n } else {\n var mc = di.mcc || (trace.marker || {}).color;\n var mlc = di.mlcc || ((trace.marker || {}).line || {}).color;\n\n tc = (mc && Color.opacity(mc)) ? mc :\n (mlc && Color.opacity(mlc) &&\n (di.mlw || ((trace.marker || {}).line || {}).width)) ? mlc : '';\n\n if(tc) {\n // make sure the points aren't TOO transparent\n if(Color.opacity(tc) < 0.3) {\n return Color.addOpacity(tc, 0.3);\n } else return tc;\n } else {\n lc = (trace.line || {}).color;\n return (lc && Color.opacity(lc) &&\n subtypes.hasLines(trace) && trace.line.width) ?\n lc : trace.fillcolor;\n }\n }\n};\n\n},{\"../../components/color\":367,\"./subtypes\":961}],947:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Fx = _dereq_('../../components/fx');\nvar Registry = _dereq_('../../registry');\nvar getTraceColor = _dereq_('./get_trace_color');\nvar Color = _dereq_('../../components/color');\nvar fillText = Lib.fillText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var xpx = xa.c2p(xval);\n var ypx = ya.c2p(yval);\n var pt = [xpx, ypx];\n var hoveron = trace.hoveron || '';\n var minRad = (trace.mode.indexOf('markers') !== -1) ? 3 : 0.5;\n\n var xPeriod = !!trace.xperiodalignment;\n var yPeriod = !!trace.yperiodalignment;\n\n // look for points to hover on first, then take fills only if we\n // didn't find a point\n\n if(hoveron.indexOf('points') !== -1) {\n // dx and dy are used in compare modes - here we want to always\n // prioritize the closest data point, at least as long as markers are\n // the same size or nonexistent, but still try to prioritize small markers too.\n var dx = function(di) {\n if(xPeriod) {\n var x0 = xa.c2p(di.xStart);\n var x1 = xa.c2p(di.xEnd);\n\n return (\n xpx >= Math.min(x0, x1) &&\n xpx <= Math.max(x0, x1)\n ) ? 0 : Infinity;\n }\n\n var rad = Math.max(3, di.mrc || 0);\n var kink = 1 - 1 / rad;\n var dxRaw = Math.abs(xa.c2p(di.x) - xpx);\n return (dxRaw < rad) ? (kink * dxRaw / rad) : (dxRaw - rad + kink);\n };\n var dy = function(di) {\n if(yPeriod) {\n var y0 = ya.c2p(di.yStart);\n var y1 = ya.c2p(di.yEnd);\n\n return (\n ypx >= Math.min(y0, y1) &&\n ypx <= Math.max(y0, y1)\n ) ? 0 : Infinity;\n }\n\n var rad = Math.max(3, di.mrc || 0);\n var kink = 1 - 1 / rad;\n var dyRaw = Math.abs(ya.c2p(di.y) - ypx);\n return (dyRaw < rad) ? (kink * dyRaw / rad) : (dyRaw - rad + kink);\n };\n\n // scatter points: d.mrc is the calculated marker radius\n // adjust the distance so if you're inside the marker it\n // always will show up regardless of point size, but\n // prioritize smaller points\n var dxy = function(di) {\n var rad = Math.max(minRad, di.mrc || 0);\n var dx = xa.c2p(di.x) - xpx;\n var dy = ya.c2p(di.y) - ypx;\n return Math.max(Math.sqrt(dx * dx + dy * dy) - rad, 1 - minRad / rad);\n };\n var distfn = Fx.getDistanceFunction(hovermode, dx, dy, dxy);\n\n Fx.getClosest(cd, distfn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index !== false) {\n // the closest data point\n var di = cd[pointData.index];\n var xc = xa.c2p(di.x, true);\n var yc = ya.c2p(di.y, true);\n var rad = di.mrc || 1;\n\n // now we're done using the whole `calcdata` array, replace the\n // index with the original index (in case of inserted point from\n // stacked area)\n pointData.index = di.i;\n\n var orientation = cd[0].t.orientation;\n // TODO: for scatter and bar, option to show (sub)totals and\n // raw data? Currently stacked and/or normalized bars just show\n // the normalized individual sizes, so that's what I'm doing here\n // for now.\n var sizeVal = orientation && (di.sNorm || di.s);\n var xLabelVal = (orientation === 'h') ? sizeVal : di.orig_x !== undefined ? di.orig_x : di.x;\n var yLabelVal = (orientation === 'v') ? sizeVal : di.orig_y !== undefined ? di.orig_y : di.y;\n\n Lib.extendFlat(pointData, {\n color: getTraceColor(trace, di),\n\n x0: xc - rad,\n x1: xc + rad,\n xLabelVal: xLabelVal,\n\n y0: yc - rad,\n y1: yc + rad,\n yLabelVal: yLabelVal,\n\n spikeDistance: dxy(di),\n hovertemplate: trace.hovertemplate\n });\n\n fillText(di, trace, pointData);\n Registry.getComponentMethod('errorbars', 'hoverInfo')(di, trace, pointData);\n\n return [pointData];\n }\n }\n\n // even if hoveron is 'fills', only use it if we have polygons too\n if(hoveron.indexOf('fills') !== -1 && trace._polygons) {\n var polygons = trace._polygons;\n var polygonsIn = [];\n var inside = false;\n var xmin = Infinity;\n var xmax = -Infinity;\n var ymin = Infinity;\n var ymax = -Infinity;\n\n var i, j, polygon, pts, xCross, x0, x1, y0, y1;\n\n for(i = 0; i < polygons.length; i++) {\n polygon = polygons[i];\n // TODO: this is not going to work right for curved edges, it will\n // act as though they're straight. That's probably going to need\n // the elements themselves to capture the events. Worth it?\n if(polygon.contains(pt)) {\n inside = !inside;\n // TODO: need better than just the overall bounding box\n polygonsIn.push(polygon);\n ymin = Math.min(ymin, polygon.ymin);\n ymax = Math.max(ymax, polygon.ymax);\n }\n }\n\n if(inside) {\n // constrain ymin/max to the visible plot, so the label goes\n // at the middle of the piece you can see\n ymin = Math.max(ymin, 0);\n ymax = Math.min(ymax, ya._length);\n\n // find the overall left-most and right-most points of the\n // polygon(s) we're inside at their combined vertical midpoint.\n // This is where we will draw the hover label.\n // Note that this might not be the vertical midpoint of the\n // whole trace, if it's disjoint.\n var yAvg = (ymin + ymax) / 2;\n for(i = 0; i < polygonsIn.length; i++) {\n pts = polygonsIn[i].pts;\n for(j = 1; j < pts.length; j++) {\n y0 = pts[j - 1][1];\n y1 = pts[j][1];\n if((y0 > yAvg) !== (y1 >= yAvg)) {\n x0 = pts[j - 1][0];\n x1 = pts[j][0];\n if(y1 - y0) {\n xCross = x0 + (x1 - x0) * (yAvg - y0) / (y1 - y0);\n xmin = Math.min(xmin, xCross);\n xmax = Math.max(xmax, xCross);\n }\n }\n }\n }\n\n // constrain xmin/max to the visible plot now too\n xmin = Math.max(xmin, 0);\n xmax = Math.min(xmax, xa._length);\n\n // get only fill or line color for the hover color\n var color = Color.defaultLine;\n if(Color.opacity(trace.fillcolor)) color = trace.fillcolor;\n else if(Color.opacity((trace.line || {}).color)) {\n color = trace.line.color;\n }\n\n Lib.extendFlat(pointData, {\n // never let a 2D override 1D type as closest point\n // also: no spikeDistance, it's not allowed for fills\n distance: pointData.maxHoverDistance,\n x0: xmin,\n x1: xmax,\n y0: yAvg,\n y1: yAvg,\n color: color,\n hovertemplate: false\n });\n\n delete pointData.index;\n\n if(trace.text && !Array.isArray(trace.text)) {\n pointData.text = String(trace.text);\n } else pointData.text = trace.name;\n\n return [pointData];\n }\n }\n};\n\n},{\"../../components/color\":367,\"../../components/fx\":407,\"../../lib\":515,\"../../registry\":647,\"./get_trace_color\":946}],948:[function(_dereq_,module,exports){\n'use strict';\n\nvar subtypes = _dereq_('./subtypes');\n\nmodule.exports = {\n hasLines: subtypes.hasLines,\n hasMarkers: subtypes.hasMarkers,\n hasText: subtypes.hasText,\n isBubble: subtypes.isBubble,\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('./cross_trace_defaults'),\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n arraysToCalcdata: _dereq_('./arrays_to_calcdata'),\n plot: _dereq_('./plot'),\n colorbar: _dereq_('./marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n style: _dereq_('./style').style,\n styleOnSelect: _dereq_('./style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('./select'),\n animatable: true,\n\n moduleType: 'trace',\n name: 'scatter',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: [\n 'cartesian', 'svg', 'symbols', 'errorBarsOK', 'showLegend', 'scatter-like',\n 'zoomScale'\n ],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"./arrays_to_calcdata\":935,\"./attributes\":936,\"./calc\":937,\"./cross_trace_calc\":941,\"./cross_trace_defaults\":942,\"./defaults\":943,\"./format_labels\":945,\"./hover\":947,\"./marker_colorbar\":954,\"./plot\":957,\"./select\":958,\"./style\":960,\"./subtypes\":961}],949:[function(_dereq_,module,exports){\n'use strict';\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\n\nmodule.exports = function lineDefaults(traceIn, traceOut, defaultColor, layout, coerce, opts) {\n if(!opts) opts = {};\n\n var markerColor = (traceIn.marker || {}).color;\n\n coerce('line.color', defaultColor);\n\n if(hasColorscale(traceIn, 'line')) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'line.', cLetter: 'c'});\n } else {\n var lineColorDflt = (isArrayOrTypedArray(markerColor) ? false : markerColor) || defaultColor;\n coerce('line.color', lineColorDflt);\n }\n\n coerce('line.width');\n\n if(!opts.noDash) coerce('line.dash');\n if(opts.backoff) coerce('line.backoff');\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../components/colorscale/helpers\":378,\"../../lib\":515}],950:[function(_dereq_,module,exports){\n'use strict';\n\nvar Drawing = _dereq_('../../components/drawing');\nvar numConstants = _dereq_('../../constants/numerical');\nvar BADNUM = numConstants.BADNUM;\nvar LOG_CLIP = numConstants.LOG_CLIP;\nvar LOG_CLIP_PLUS = LOG_CLIP + 0.5;\nvar LOG_CLIP_MINUS = LOG_CLIP - 0.5;\nvar Lib = _dereq_('../../lib');\nvar segmentsIntersect = Lib.segmentsIntersect;\nvar constrain = Lib.constrain;\nvar constants = _dereq_('./constants');\n\n\nmodule.exports = function linePoints(d, opts) {\n var trace = opts.trace || {};\n var xa = opts.xaxis;\n var ya = opts.yaxis;\n var xLog = xa.type === 'log';\n var yLog = ya.type === 'log';\n var xLen = xa._length;\n var yLen = ya._length;\n var backoff = opts.backoff;\n var marker = trace.marker;\n var connectGaps = opts.connectGaps;\n var baseTolerance = opts.baseTolerance;\n var shape = opts.shape;\n var linear = shape === 'linear';\n var fill = trace.fill && trace.fill !== 'none';\n var segments = [];\n var minTolerance = constants.minTolerance;\n var len = d.length;\n var pts = new Array(len);\n var pti = 0;\n\n var i;\n\n // pt variables are pixel coordinates [x,y] of one point\n // these four are the outputs of clustering on a line\n var clusterStartPt, clusterEndPt, clusterHighPt, clusterLowPt;\n\n // \"this\" is the next point we're considering adding to the cluster\n var thisPt;\n\n // did we encounter the high point first, then a low point, or vice versa?\n var clusterHighFirst;\n\n // the first two points in the cluster determine its unit vector\n // so the second is always in the \"High\" direction\n var clusterUnitVector;\n\n // the pixel delta from clusterStartPt\n var thisVector;\n\n // val variables are (signed) pixel distances along the cluster vector\n var clusterRefDist, clusterHighVal, clusterLowVal, thisVal;\n\n // deviation variables are (signed) pixel distances normal to the cluster vector\n var clusterMinDeviation, clusterMaxDeviation, thisDeviation;\n\n // turn one calcdata point into pixel coordinates\n function getPt(index) {\n var di = d[index];\n if(!di) return false;\n var x = opts.linearized ? xa.l2p(di.x) : xa.c2p(di.x);\n var y = opts.linearized ? ya.l2p(di.y) : ya.c2p(di.y);\n\n // if non-positive log values, set them VERY far off-screen\n // so the line looks essentially straight from the previous point.\n if(x === BADNUM) {\n if(xLog) x = xa.c2p(di.x, true);\n if(x === BADNUM) return false;\n // If BOTH were bad log values, make the line follow a constant\n // exponent rather than a constant slope\n if(yLog && y === BADNUM) {\n x *= Math.abs(xa._m * yLen * (xa._m > 0 ? LOG_CLIP_PLUS : LOG_CLIP_MINUS) /\n (ya._m * xLen * (ya._m > 0 ? LOG_CLIP_PLUS : LOG_CLIP_MINUS)));\n }\n x *= 1000;\n }\n if(y === BADNUM) {\n if(yLog) y = ya.c2p(di.y, true);\n if(y === BADNUM) return false;\n y *= 1000;\n }\n return [x, y];\n }\n\n function crossesViewport(xFrac0, yFrac0, xFrac1, yFrac1) {\n var dx = xFrac1 - xFrac0;\n var dy = yFrac1 - yFrac0;\n var dx0 = 0.5 - xFrac0;\n var dy0 = 0.5 - yFrac0;\n var norm2 = dx * dx + dy * dy;\n var dot = dx * dx0 + dy * dy0;\n if(dot > 0 && dot < norm2) {\n var cross = dx0 * dy - dy0 * dx;\n if(cross * cross < norm2) return true;\n }\n }\n\n var latestXFrac, latestYFrac;\n // if we're off-screen, increase tolerance over baseTolerance\n function getTolerance(pt, nextPt) {\n var xFrac = pt[0] / xLen;\n var yFrac = pt[1] / yLen;\n var offScreenFraction = Math.max(0, -xFrac, xFrac - 1, -yFrac, yFrac - 1);\n if(offScreenFraction && (latestXFrac !== undefined) &&\n crossesViewport(xFrac, yFrac, latestXFrac, latestYFrac)\n ) {\n offScreenFraction = 0;\n }\n if(offScreenFraction && nextPt &&\n crossesViewport(xFrac, yFrac, nextPt[0] / xLen, nextPt[1] / yLen)\n ) {\n offScreenFraction = 0;\n }\n\n return (1 + constants.toleranceGrowth * offScreenFraction) * baseTolerance;\n }\n\n function ptDist(pt1, pt2) {\n var dx = pt1[0] - pt2[0];\n var dy = pt1[1] - pt2[1];\n return Math.sqrt(dx * dx + dy * dy);\n }\n\n // last bit of filtering: clip paths that are VERY far off-screen\n // so we don't get near the browser's hard limit (+/- 2^29 px in Chrome and FF)\n\n var maxScreensAway = constants.maxScreensAway;\n\n // find the intersections between the segment from pt1 to pt2\n // and the large rectangle maxScreensAway around the viewport\n // if one of pt1 and pt2 is inside and the other outside, there\n // will be only one intersection.\n // if both are outside there will be 0 or 2 intersections\n // (or 1 if it's right at a corner - we'll treat that like 0)\n // returns an array of intersection pts\n var xEdge0 = -xLen * maxScreensAway;\n var xEdge1 = xLen * (1 + maxScreensAway);\n var yEdge0 = -yLen * maxScreensAway;\n var yEdge1 = yLen * (1 + maxScreensAway);\n var edges = [\n [xEdge0, yEdge0, xEdge1, yEdge0],\n [xEdge1, yEdge0, xEdge1, yEdge1],\n [xEdge1, yEdge1, xEdge0, yEdge1],\n [xEdge0, yEdge1, xEdge0, yEdge0]\n ];\n var xEdge, yEdge, lastXEdge, lastYEdge, lastFarPt, edgePt;\n\n // for linear line shape, edge intersections should be linearly interpolated\n // spline uses this too, which isn't precisely correct but is actually pretty\n // good, because Catmull-Rom weights far-away points less in creating the curvature\n function getLinearEdgeIntersections(pt1, pt2) {\n var out = [];\n var ptCount = 0;\n for(var i = 0; i < 4; i++) {\n var edge = edges[i];\n var ptInt = segmentsIntersect(\n pt1[0], pt1[1], pt2[0], pt2[1],\n edge[0], edge[1], edge[2], edge[3]\n );\n if(ptInt && (!ptCount ||\n Math.abs(ptInt.x - out[0][0]) > 1 ||\n Math.abs(ptInt.y - out[0][1]) > 1\n )) {\n ptInt = [ptInt.x, ptInt.y];\n // if we have 2 intersections, make sure the closest one to pt1 comes first\n if(ptCount && ptDist(ptInt, pt1) < ptDist(out[0], pt1)) out.unshift(ptInt);\n else out.push(ptInt);\n ptCount++;\n }\n }\n return out;\n }\n\n function onlyConstrainedPoint(pt) {\n if(pt[0] < xEdge0 || pt[0] > xEdge1 || pt[1] < yEdge0 || pt[1] > yEdge1) {\n return [constrain(pt[0], xEdge0, xEdge1), constrain(pt[1], yEdge0, yEdge1)];\n }\n }\n\n function sameEdge(pt1, pt2) {\n if(pt1[0] === pt2[0] && (pt1[0] === xEdge0 || pt1[0] === xEdge1)) return true;\n if(pt1[1] === pt2[1] && (pt1[1] === yEdge0 || pt1[1] === yEdge1)) return true;\n }\n\n // for line shapes hv and vh, movement in the two dimensions is decoupled,\n // so all we need to do is constrain each dimension independently\n function getHVEdgeIntersections(pt1, pt2) {\n var out = [];\n var ptInt1 = onlyConstrainedPoint(pt1);\n var ptInt2 = onlyConstrainedPoint(pt2);\n if(ptInt1 && ptInt2 && sameEdge(ptInt1, ptInt2)) return out;\n\n if(ptInt1) out.push(ptInt1);\n if(ptInt2) out.push(ptInt2);\n return out;\n }\n\n // hvh and vhv we sometimes have to move one of the intersection points\n // out BEYOND the clipping rect, by a maximum of a factor of 2, so that\n // the midpoint line is drawn in the right place\n function getABAEdgeIntersections(dim, limit0, limit1) {\n return function(pt1, pt2) {\n var ptInt1 = onlyConstrainedPoint(pt1);\n var ptInt2 = onlyConstrainedPoint(pt2);\n\n var out = [];\n if(ptInt1 && ptInt2 && sameEdge(ptInt1, ptInt2)) return out;\n\n if(ptInt1) out.push(ptInt1);\n if(ptInt2) out.push(ptInt2);\n\n var midShift = 2 * Lib.constrain((pt1[dim] + pt2[dim]) / 2, limit0, limit1) -\n ((ptInt1 || pt1)[dim] + (ptInt2 || pt2)[dim]);\n if(midShift) {\n var ptToAlter;\n if(ptInt1 && ptInt2) {\n ptToAlter = (midShift > 0 === ptInt1[dim] > ptInt2[dim]) ? ptInt1 : ptInt2;\n } else ptToAlter = ptInt1 || ptInt2;\n\n ptToAlter[dim] += midShift;\n }\n\n return out;\n };\n }\n\n var getEdgeIntersections;\n if(shape === 'linear' || shape === 'spline') {\n getEdgeIntersections = getLinearEdgeIntersections;\n } else if(shape === 'hv' || shape === 'vh') {\n getEdgeIntersections = getHVEdgeIntersections;\n } else if(shape === 'hvh') getEdgeIntersections = getABAEdgeIntersections(0, xEdge0, xEdge1);\n else if(shape === 'vhv') getEdgeIntersections = getABAEdgeIntersections(1, yEdge0, yEdge1);\n\n // a segment pt1->pt2 entirely outside the nearby region:\n // find the corner it gets closest to touching\n function getClosestCorner(pt1, pt2) {\n var dx = pt2[0] - pt1[0];\n var m = (pt2[1] - pt1[1]) / dx;\n var b = (pt1[1] * pt2[0] - pt2[1] * pt1[0]) / dx;\n\n if(b > 0) return [m > 0 ? xEdge0 : xEdge1, yEdge1];\n else return [m > 0 ? xEdge1 : xEdge0, yEdge0];\n }\n\n function updateEdge(pt) {\n var x = pt[0];\n var y = pt[1];\n var xSame = x === pts[pti - 1][0];\n var ySame = y === pts[pti - 1][1];\n // duplicate point?\n if(xSame && ySame) return;\n if(pti > 1) {\n // backtracking along an edge?\n var xSame2 = x === pts[pti - 2][0];\n var ySame2 = y === pts[pti - 2][1];\n if(xSame && (x === xEdge0 || x === xEdge1) && xSame2) {\n if(ySame2) pti--; // backtracking exactly - drop prev pt and don't add\n else pts[pti - 1] = pt; // not exact: replace the prev pt\n } else if(ySame && (y === yEdge0 || y === yEdge1) && ySame2) {\n if(xSame2) pti--;\n else pts[pti - 1] = pt;\n } else pts[pti++] = pt;\n } else pts[pti++] = pt;\n }\n\n function updateEdgesForReentry(pt) {\n // if we're outside the nearby region and going back in,\n // we may need to loop around a corner point\n if(pts[pti - 1][0] !== pt[0] && pts[pti - 1][1] !== pt[1]) {\n updateEdge([lastXEdge, lastYEdge]);\n }\n updateEdge(pt);\n lastFarPt = null;\n lastXEdge = lastYEdge = 0;\n }\n\n var arrayMarker = Lib.isArrayOrTypedArray(marker);\n\n function addPt(pt) {\n if(pt && backoff) {\n pt.i = i;\n pt.d = d;\n pt.trace = trace;\n pt.marker = arrayMarker ? marker[pt.i] : marker;\n pt.backoff = backoff;\n }\n\n latestXFrac = pt[0] / xLen;\n latestYFrac = pt[1] / yLen;\n // Are we more than maxScreensAway off-screen any direction?\n // if so, clip to this box, but in such a way that on-screen\n // drawing is unchanged\n xEdge = (pt[0] < xEdge0) ? xEdge0 : (pt[0] > xEdge1) ? xEdge1 : 0;\n yEdge = (pt[1] < yEdge0) ? yEdge0 : (pt[1] > yEdge1) ? yEdge1 : 0;\n if(xEdge || yEdge) {\n if(!pti) {\n // to get fills right - if first point is far, push it toward the\n // screen in whichever direction(s) are far\n\n pts[pti++] = [xEdge || pt[0], yEdge || pt[1]];\n } else if(lastFarPt) {\n // both this point and the last are outside the nearby region\n // check if we're crossing the nearby region\n var intersections = getEdgeIntersections(lastFarPt, pt);\n if(intersections.length > 1) {\n updateEdgesForReentry(intersections[0]);\n pts[pti++] = intersections[1];\n }\n } else {\n // we're leaving the nearby region - add the point where we left it\n\n edgePt = getEdgeIntersections(pts[pti - 1], pt)[0];\n pts[pti++] = edgePt;\n }\n\n var lastPt = pts[pti - 1];\n if(xEdge && yEdge && (lastPt[0] !== xEdge || lastPt[1] !== yEdge)) {\n // we've gone out beyond a new corner: add the corner too\n // so that the next point will take the right winding\n if(lastFarPt) {\n if(lastXEdge !== xEdge && lastYEdge !== yEdge) {\n if(lastXEdge && lastYEdge) {\n // we've gone around to an opposite corner - we\n // need to add the correct extra corner\n // in order to get the right winding\n updateEdge(getClosestCorner(lastFarPt, pt));\n } else {\n // we're coming from a far edge - the extra corner\n // we need is determined uniquely by the sectors\n updateEdge([lastXEdge || xEdge, lastYEdge || yEdge]);\n }\n } else if(lastXEdge && lastYEdge) {\n updateEdge([lastXEdge, lastYEdge]);\n }\n }\n updateEdge([xEdge, yEdge]);\n } else if((lastXEdge - xEdge) && (lastYEdge - yEdge)) {\n // we're coming from an edge or far corner to an edge - again the\n // extra corner we need is uniquely determined by the sectors\n updateEdge([xEdge || lastXEdge, yEdge || lastYEdge]);\n }\n lastFarPt = pt;\n lastXEdge = xEdge;\n lastYEdge = yEdge;\n } else {\n if(lastFarPt) {\n // this point is in range but the previous wasn't: add its entry pt first\n updateEdgesForReentry(getEdgeIntersections(lastFarPt, pt)[0]);\n }\n\n pts[pti++] = pt;\n }\n }\n\n // loop over ALL points in this trace\n for(i = 0; i < len; i++) {\n clusterStartPt = getPt(i);\n if(!clusterStartPt) continue;\n\n pti = 0;\n lastFarPt = null;\n addPt(clusterStartPt);\n\n // loop over one segment of the trace\n for(i++; i < len; i++) {\n clusterHighPt = getPt(i);\n if(!clusterHighPt) {\n if(connectGaps) continue;\n else break;\n }\n\n // can't decimate if nonlinear line shape\n // TODO: we *could* decimate [hv]{2,3} shapes if we restricted clusters to horz or vert again\n // but spline would be verrry awkward to decimate\n if(!linear || !opts.simplify) {\n addPt(clusterHighPt);\n continue;\n }\n\n var nextPt = getPt(i + 1);\n\n clusterRefDist = ptDist(clusterHighPt, clusterStartPt);\n\n // #3147 - always include the very first and last points for fills\n if(!(fill && (pti === 0 || pti === len - 1)) &&\n clusterRefDist < getTolerance(clusterHighPt, nextPt) * minTolerance) continue;\n\n clusterUnitVector = [\n (clusterHighPt[0] - clusterStartPt[0]) / clusterRefDist,\n (clusterHighPt[1] - clusterStartPt[1]) / clusterRefDist\n ];\n\n clusterLowPt = clusterStartPt;\n clusterHighVal = clusterRefDist;\n clusterLowVal = clusterMinDeviation = clusterMaxDeviation = 0;\n clusterHighFirst = false;\n clusterEndPt = clusterHighPt;\n\n // loop over one cluster of points that collapse onto one line\n for(i++; i < d.length; i++) {\n thisPt = nextPt;\n nextPt = getPt(i + 1);\n if(!thisPt) {\n if(connectGaps) continue;\n else break;\n }\n thisVector = [\n thisPt[0] - clusterStartPt[0],\n thisPt[1] - clusterStartPt[1]\n ];\n // cross product (or dot with normal to the cluster vector)\n thisDeviation = thisVector[0] * clusterUnitVector[1] - thisVector[1] * clusterUnitVector[0];\n clusterMinDeviation = Math.min(clusterMinDeviation, thisDeviation);\n clusterMaxDeviation = Math.max(clusterMaxDeviation, thisDeviation);\n\n if(clusterMaxDeviation - clusterMinDeviation > getTolerance(thisPt, nextPt)) break;\n\n clusterEndPt = thisPt;\n thisVal = thisVector[0] * clusterUnitVector[0] + thisVector[1] * clusterUnitVector[1];\n\n if(thisVal > clusterHighVal) {\n clusterHighVal = thisVal;\n clusterHighPt = thisPt;\n clusterHighFirst = false;\n } else if(thisVal < clusterLowVal) {\n clusterLowVal = thisVal;\n clusterLowPt = thisPt;\n clusterHighFirst = true;\n }\n }\n\n // insert this cluster into pts\n // we've already inserted the start pt, now check if we have high and low pts\n if(clusterHighFirst) {\n addPt(clusterHighPt);\n if(clusterEndPt !== clusterLowPt) addPt(clusterLowPt);\n } else {\n if(clusterLowPt !== clusterStartPt) addPt(clusterLowPt);\n if(clusterEndPt !== clusterHighPt) addPt(clusterHighPt);\n }\n // and finally insert the end pt\n addPt(clusterEndPt);\n\n // have we reached the end of this segment?\n if(i >= d.length || !thisPt) break;\n\n // otherwise we have an out-of-cluster point to insert as next clusterStartPt\n addPt(thisPt);\n clusterStartPt = thisPt;\n }\n\n // to get fills right - repeat what we did at the start\n if(lastFarPt) updateEdge([lastXEdge || lastFarPt[0], lastYEdge || lastFarPt[1]]);\n\n segments.push(pts.slice(0, pti));\n }\n\n\n var lastShapeChar = shape.slice(shape.length - 1);\n if(backoff && lastShapeChar !== 'h' && lastShapeChar !== 'v') {\n var trimmed = false;\n var n = -1;\n var newSegments = [];\n\n for(var j = 0; j < segments.length; j++) {\n for(var k = 0; k < segments[j].length - 1; k++) {\n var start = segments[j][k];\n var end = segments[j][k + 1];\n\n var xy = Drawing.applyBackoff(end, start);\n if(\n xy[0] !== end[0] ||\n xy[1] !== end[1]\n ) {\n trimmed = true;\n }\n if(!newSegments[n + 1]) {\n n++;\n newSegments[n] = [\n start, [xy[0], xy[1]]\n ];\n }\n }\n }\n\n return trimmed ? newSegments : segments;\n }\n\n return segments;\n};\n\n},{\"../../components/drawing\":389,\"../../constants/numerical\":491,\"../../lib\":515,\"./constants\":940}],951:[function(_dereq_,module,exports){\n'use strict';\n\n\n// common to 'scatter' and 'scatterternary'\nmodule.exports = function handleLineShapeDefaults(traceIn, traceOut, coerce) {\n var shape = coerce('line.shape');\n if(shape === 'spline') coerce('line.smoothing');\n};\n\n},{}],952:[function(_dereq_,module,exports){\n'use strict';\n\nvar LINKEDFILLS = {tonextx: 1, tonexty: 1, tonext: 1};\n\nmodule.exports = function linkTraces(gd, plotinfo, cdscatter) {\n var trace, i, group, prevtrace, groupIndex;\n\n // first sort traces to keep stacks & filled-together groups together\n var groupIndices = {};\n var needsSort = false;\n var prevGroupIndex = -1;\n var nextGroupIndex = 0;\n var prevUnstackedGroupIndex = -1;\n for(i = 0; i < cdscatter.length; i++) {\n trace = cdscatter[i][0].trace;\n group = trace.stackgroup || '';\n if(group) {\n if(group in groupIndices) {\n groupIndex = groupIndices[group];\n } else {\n groupIndex = groupIndices[group] = nextGroupIndex;\n nextGroupIndex++;\n }\n } else if(trace.fill in LINKEDFILLS && prevUnstackedGroupIndex >= 0) {\n groupIndex = prevUnstackedGroupIndex;\n } else {\n groupIndex = prevUnstackedGroupIndex = nextGroupIndex;\n nextGroupIndex++;\n }\n\n if(groupIndex < prevGroupIndex) needsSort = true;\n trace._groupIndex = prevGroupIndex = groupIndex;\n }\n\n var cdscatterSorted = cdscatter.slice();\n if(needsSort) {\n cdscatterSorted.sort(function(a, b) {\n var traceA = a[0].trace;\n var traceB = b[0].trace;\n return (traceA._groupIndex - traceB._groupIndex) ||\n (traceA.index - traceB.index);\n });\n }\n\n // now link traces to each other\n var prevtraces = {};\n for(i = 0; i < cdscatterSorted.length; i++) {\n trace = cdscatterSorted[i][0].trace;\n group = trace.stackgroup || '';\n\n // Note: The check which ensures all cdscatter here are for the same axis and\n // are either cartesian or scatterternary has been removed. This code assumes\n // the passed scattertraces have been filtered to the proper plot types and\n // the proper subplots.\n if(trace.visible === true) {\n trace._nexttrace = null;\n\n if(trace.fill in LINKEDFILLS) {\n prevtrace = prevtraces[group];\n trace._prevtrace = prevtrace || null;\n\n if(prevtrace) {\n prevtrace._nexttrace = trace;\n }\n }\n\n trace._ownfill = (trace.fill && (\n trace.fill.substr(0, 6) === 'tozero' ||\n trace.fill === 'toself' ||\n (trace.fill.substr(0, 2) === 'to' && !trace._prevtrace)\n ));\n\n prevtraces[group] = trace;\n } else {\n trace._prevtrace = trace._nexttrace = trace._ownfill = null;\n }\n }\n\n return cdscatterSorted;\n};\n\n},{}],953:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\n\n// used in the drawing step for 'scatter' and 'scattegeo' and\n// in the convert step for 'scatter3d'\nmodule.exports = function makeBubbleSizeFn(trace, factor) {\n if(!factor) {\n factor = 2;\n }\n var marker = trace.marker;\n var sizeRef = marker.sizeref || 1;\n var sizeMin = marker.sizemin || 0;\n\n // for bubble charts, allow scaling the provided value linearly\n // and by area or diameter.\n // Note this only applies to the array-value sizes\n\n var baseFn = (marker.sizemode === 'area') ?\n function(v) { return Math.sqrt(v / sizeRef); } :\n function(v) { return v / sizeRef; };\n\n // TODO add support for position/negative bubbles?\n // TODO add 'sizeoffset' attribute?\n return function(v) {\n var baseSize = baseFn(v / factor);\n\n // don't show non-numeric and negative sizes\n return (isNumeric(baseSize) && (baseSize > 0)) ?\n Math.max(baseSize, sizeMin) :\n 0;\n };\n};\n\n},{\"fast-isnumeric\":190}],954:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n container: 'marker',\n min: 'cmin',\n max: 'cmax'\n};\n\n},{}],955:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar hasColorscale = _dereq_('../../components/colorscale/helpers').hasColorscale;\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\n\nvar subTypes = _dereq_('./subtypes');\n\n/*\n * opts: object of flags to control features not all marker users support\n * noLine: caller does not support marker lines\n * gradient: caller supports gradients\n * noSelect: caller does not support selected/unselected attribute containers\n */\nmodule.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout, coerce, opts) {\n var isBubble = subTypes.isBubble(traceIn);\n var lineColor = (traceIn.line || {}).color;\n var defaultMLC;\n\n opts = opts || {};\n\n // marker.color inherit from line.color (even if line.color is an array)\n if(lineColor) defaultColor = lineColor;\n\n coerce('marker.symbol');\n coerce('marker.opacity', isBubble ? 0.7 : 1);\n coerce('marker.size');\n if(!opts.noAngle) {\n coerce('marker.angle');\n if(!opts.noAngleRef) {\n coerce('marker.angleref');\n }\n\n if(!opts.noStandOff) {\n coerce('marker.standoff');\n }\n }\n\n coerce('marker.color', defaultColor);\n if(hasColorscale(traceIn, 'marker')) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n }\n\n if(!opts.noSelect) {\n coerce('selected.marker.color');\n coerce('unselected.marker.color');\n coerce('selected.marker.size');\n coerce('unselected.marker.size');\n }\n\n if(!opts.noLine) {\n // if there's a line with a different color than the marker, use\n // that line color as the default marker line color\n // (except when it's an array)\n // mostly this is for transparent markers to behave nicely\n if(lineColor && !Array.isArray(lineColor) && (traceOut.marker.color !== lineColor)) {\n defaultMLC = lineColor;\n } else if(isBubble) defaultMLC = Color.background;\n else defaultMLC = Color.defaultLine;\n\n coerce('marker.line.color', defaultMLC);\n if(hasColorscale(traceIn, 'marker.line')) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.line.', cLetter: 'c'});\n }\n\n coerce('marker.line.width', isBubble ? 1 : 0);\n }\n\n if(isBubble) {\n coerce('marker.sizeref');\n coerce('marker.sizemin');\n coerce('marker.sizemode');\n }\n\n if(opts.gradient) {\n var gradientType = coerce('marker.gradient.type');\n if(gradientType !== 'none') {\n coerce('marker.gradient.color');\n }\n }\n};\n\n},{\"../../components/color\":367,\"../../components/colorscale/defaults\":377,\"../../components/colorscale/helpers\":378,\"./subtypes\":961}],956:[function(_dereq_,module,exports){\n'use strict';\n\nvar dateTick0 = _dereq_('../../lib').dateTick0;\nvar numConstants = _dereq_('../../constants/numerical');\nvar ONEWEEK = numConstants.ONEWEEK;\n\nfunction getPeriod0Dflt(period, calendar) {\n if(period % ONEWEEK === 0) {\n return dateTick0(calendar, 1); // Sunday\n }\n return dateTick0(calendar, 0);\n}\n\nmodule.exports = function handlePeriodDefaults(traceIn, traceOut, layout, coerce, opts) {\n if(!opts) {\n opts = {\n x: true,\n y: true\n };\n }\n\n if(opts.x) {\n var xperiod = coerce('xperiod');\n if(xperiod) {\n coerce('xperiod0', getPeriod0Dflt(xperiod, traceOut.xcalendar));\n coerce('xperiodalignment');\n }\n }\n\n if(opts.y) {\n var yperiod = coerce('yperiod');\n if(yperiod) {\n coerce('yperiod0', getPeriod0Dflt(yperiod, traceOut.ycalendar));\n coerce('yperiodalignment');\n }\n }\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515}],957:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar ensureSingle = Lib.ensureSingle;\nvar identity = Lib.identity;\nvar Drawing = _dereq_('../../components/drawing');\n\nvar subTypes = _dereq_('./subtypes');\nvar linePoints = _dereq_('./line_points');\nvar linkTraces = _dereq_('./link_traces');\nvar polygonTester = _dereq_('../../lib/polygon').tester;\n\nmodule.exports = function plot(gd, plotinfo, cdscatter, scatterLayer, transitionOpts, makeOnCompleteCallback) {\n var join, onComplete;\n\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n var isFullReplot = !transitionOpts;\n var hasTransition = !!transitionOpts && transitionOpts.duration > 0;\n\n // Link traces so the z-order of fill layers is correct\n var cdscatterSorted = linkTraces(gd, plotinfo, cdscatter);\n\n join = scatterLayer.selectAll('g.trace')\n .data(cdscatterSorted, function(d) { return d[0].trace.uid; });\n\n // Append new traces:\n join.enter().append('g')\n .attr('class', function(d) {\n return 'trace scatter trace' + d[0].trace.uid;\n })\n .style('stroke-miterlimit', 2);\n join.order();\n\n createFills(gd, join, plotinfo);\n\n if(hasTransition) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n\n var transition = d3.transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() {\n onComplete && onComplete();\n })\n .each('interrupt', function() {\n onComplete && onComplete();\n });\n\n transition.each(function() {\n // Must run the selection again since otherwise enters/updates get grouped together\n // and these get executed out of order. Except we need them in order!\n scatterLayer.selectAll('g.trace').each(function(d, i) {\n plotOne(gd, i, plotinfo, d, cdscatterSorted, this, transitionOpts);\n });\n });\n } else {\n join.each(function(d, i) {\n plotOne(gd, i, plotinfo, d, cdscatterSorted, this, transitionOpts);\n });\n }\n\n if(isFullReplot) {\n join.exit().remove();\n }\n\n // remove paths that didn't get used\n scatterLayer.selectAll('path:not([d])').remove();\n};\n\nfunction createFills(gd, traceJoin, plotinfo) {\n traceJoin.each(function(d) {\n var fills = ensureSingle(d3.select(this), 'g', 'fills');\n Drawing.setClipUrl(fills, plotinfo.layerClipId, gd);\n\n var trace = d[0].trace;\n\n var fillData = [];\n if(trace._ownfill) fillData.push('_ownFill');\n if(trace._nexttrace) fillData.push('_nextFill');\n\n var fillJoin = fills.selectAll('g').data(fillData, identity);\n\n fillJoin.enter().append('g');\n\n fillJoin.exit()\n .each(function(d) { trace[d] = null; })\n .remove();\n\n fillJoin.order().each(function(d) {\n // make a path element inside the fill group, just so\n // we can give it its own data later on and the group can\n // keep its simple '_*Fill' data\n trace[d] = ensureSingle(d3.select(this), 'path', 'js-fill');\n });\n });\n}\n\nfunction plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transitionOpts) {\n var i;\n\n // Since this has been reorganized and we're executing this on individual traces,\n // we need to pass it the full list of cdscatter as well as this trace's index (idx)\n // since it does an internal n^2 loop over comparisons with other traces:\n selectMarkers(gd, idx, plotinfo, cdscatter, cdscatterAll);\n\n var hasTransition = !!transitionOpts && transitionOpts.duration > 0;\n\n function transition(selection) {\n return hasTransition ? selection.transition() : selection;\n }\n\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n var trace = cdscatter[0].trace;\n var line = trace.line;\n var tr = d3.select(element);\n\n var errorBarGroup = ensureSingle(tr, 'g', 'errorbars');\n var lines = ensureSingle(tr, 'g', 'lines');\n var points = ensureSingle(tr, 'g', 'points');\n var text = ensureSingle(tr, 'g', 'text');\n\n // error bars are at the bottom\n Registry.getComponentMethod('errorbars', 'plot')(gd, errorBarGroup, plotinfo, transitionOpts);\n\n if(trace.visible !== true) return;\n\n transition(tr).style('opacity', trace.opacity);\n\n // BUILD LINES AND FILLS\n var ownFillEl3, tonext;\n var ownFillDir = trace.fill.charAt(trace.fill.length - 1);\n if(ownFillDir !== 'x' && ownFillDir !== 'y') ownFillDir = '';\n\n // store node for tweaking by selectPoints\n cdscatter[0][plotinfo.isRangePlot ? 'nodeRangePlot3' : 'node3'] = tr;\n\n var prevRevpath = '';\n var prevPolygons = [];\n var prevtrace = trace._prevtrace;\n\n if(prevtrace) {\n prevRevpath = prevtrace._prevRevpath || '';\n tonext = prevtrace._nextFill;\n prevPolygons = prevtrace._polygons;\n }\n\n var thispath;\n var thisrevpath;\n // fullpath is all paths for this curve, joined together straight\n // across gaps, for filling\n var fullpath = '';\n // revpath is fullpath reversed, for fill-to-next\n var revpath = '';\n // functions for converting a point array to a path\n var pathfn, revpathbase, revpathfn;\n // variables used before and after the data join\n var pt0, lastSegment, pt1, thisPolygons;\n\n // initialize line join data / method\n var segments = [];\n var makeUpdate = Lib.noop;\n\n ownFillEl3 = trace._ownFill;\n\n if(subTypes.hasLines(trace) || trace.fill !== 'none') {\n if(tonext) {\n // This tells .style which trace to use for fill information:\n tonext.datum(cdscatter);\n }\n\n if(['hv', 'vh', 'hvh', 'vhv'].indexOf(line.shape) !== -1) {\n pathfn = Drawing.steps(line.shape);\n revpathbase = Drawing.steps(\n line.shape.split('').reverse().join('')\n );\n } else if(line.shape === 'spline') {\n pathfn = revpathbase = function(pts) {\n var pLast = pts[pts.length - 1];\n if(pts.length > 1 && pts[0][0] === pLast[0] && pts[0][1] === pLast[1]) {\n // identical start and end points: treat it as a\n // closed curve so we don't get a kink\n return Drawing.smoothclosed(pts.slice(1), line.smoothing);\n } else {\n return Drawing.smoothopen(pts, line.smoothing);\n }\n };\n } else {\n pathfn = revpathbase = function(pts) {\n return 'M' + pts.join('L');\n };\n }\n\n revpathfn = function(pts) {\n // note: this is destructive (reverses pts in place) so can't use pts after this\n return revpathbase(pts.reverse());\n };\n\n segments = linePoints(cdscatter, {\n xaxis: xa,\n yaxis: ya,\n trace: trace,\n connectGaps: trace.connectgaps,\n baseTolerance: Math.max(line.width || 1, 3) / 4,\n shape: line.shape,\n backoff: line.backoff,\n simplify: line.simplify,\n fill: trace.fill\n });\n\n // since we already have the pixel segments here, use them to make\n // polygons for hover on fill\n // TODO: can we skip this if hoveron!=fills? That would mean we\n // need to redraw when you change hoveron...\n thisPolygons = trace._polygons = new Array(segments.length);\n for(i = 0; i < segments.length; i++) {\n trace._polygons[i] = polygonTester(segments[i]);\n }\n\n if(segments.length) {\n pt0 = segments[0][0];\n lastSegment = segments[segments.length - 1];\n pt1 = lastSegment[lastSegment.length - 1];\n }\n\n makeUpdate = function(isEnter) {\n return function(pts) {\n thispath = pathfn(pts);\n thisrevpath = revpathfn(pts);\n if(!fullpath) {\n fullpath = thispath;\n revpath = thisrevpath;\n } else if(ownFillDir) {\n fullpath += 'L' + thispath.substr(1);\n revpath = thisrevpath + ('L' + revpath.substr(1));\n } else {\n fullpath += 'Z' + thispath;\n revpath = thisrevpath + 'Z' + revpath;\n }\n\n if(subTypes.hasLines(trace) && pts.length > 1) {\n var el = d3.select(this);\n\n // This makes the coloring work correctly:\n el.datum(cdscatter);\n\n if(isEnter) {\n transition(el.style('opacity', 0)\n .attr('d', thispath)\n .call(Drawing.lineGroupStyle))\n .style('opacity', 1);\n } else {\n var sel = transition(el);\n sel.attr('d', thispath);\n Drawing.singleLineStyle(cdscatter, sel);\n }\n }\n };\n };\n }\n\n var lineJoin = lines.selectAll('.js-line').data(segments);\n\n transition(lineJoin.exit())\n .style('opacity', 0)\n .remove();\n\n lineJoin.each(makeUpdate(false));\n\n lineJoin.enter().append('path')\n .classed('js-line', true)\n .style('vector-effect', 'non-scaling-stroke')\n .call(Drawing.lineGroupStyle)\n .each(makeUpdate(true));\n\n Drawing.setClipUrl(lineJoin, plotinfo.layerClipId, gd);\n\n function clearFill(selection) {\n transition(selection).attr('d', 'M0,0Z');\n }\n\n if(segments.length) {\n if(ownFillEl3) {\n ownFillEl3.datum(cdscatter);\n if(pt0 && pt1) {\n if(ownFillDir) {\n if(ownFillDir === 'y') {\n pt0[1] = pt1[1] = ya.c2p(0, true);\n } else if(ownFillDir === 'x') {\n pt0[0] = pt1[0] = xa.c2p(0, true);\n }\n\n // fill to zero: full trace path, plus extension of\n // the endpoints to the appropriate axis\n // For the sake of animations, wrap the points around so that\n // the points on the axes are the first two points. Otherwise\n // animations get a little crazy if the number of points changes.\n transition(ownFillEl3).attr('d', 'M' + pt1 + 'L' + pt0 + 'L' + fullpath.substr(1))\n .call(Drawing.singleFillStyle, gd);\n } else {\n // fill to self: just join the path to itself\n transition(ownFillEl3).attr('d', fullpath + 'Z')\n .call(Drawing.singleFillStyle, gd);\n }\n }\n } else if(tonext) {\n if(trace.fill.substr(0, 6) === 'tonext' && fullpath && prevRevpath) {\n // fill to next: full trace path, plus the previous path reversed\n if(trace.fill === 'tonext') {\n // tonext: for use by concentric shapes, like manually constructed\n // contours, we just add the two paths closed on themselves.\n // This makes strange results if one path is *not* entirely\n // inside the other, but then that is a strange usage.\n transition(tonext).attr('d', fullpath + 'Z' + prevRevpath + 'Z')\n .call(Drawing.singleFillStyle, gd);\n } else {\n // tonextx/y: for now just connect endpoints with lines. This is\n // the correct behavior if the endpoints are at the same value of\n // y/x, but if they *aren't*, we should ideally do more complicated\n // things depending on whether the new endpoint projects onto the\n // existing curve or off the end of it\n transition(tonext).attr('d', fullpath + 'L' + prevRevpath.substr(1) + 'Z')\n .call(Drawing.singleFillStyle, gd);\n }\n trace._polygons = trace._polygons.concat(prevPolygons);\n } else {\n clearFill(tonext);\n trace._polygons = null;\n }\n }\n trace._prevRevpath = revpath;\n trace._prevPolygons = thisPolygons;\n } else {\n if(ownFillEl3) clearFill(ownFillEl3);\n else if(tonext) clearFill(tonext);\n trace._polygons = trace._prevRevpath = trace._prevPolygons = null;\n }\n\n\n function visFilter(d) {\n return d.filter(function(v) { return !v.gap && v.vis; });\n }\n\n function visFilterWithGaps(d) {\n return d.filter(function(v) { return v.vis; });\n }\n\n function gapFilter(d) {\n return d.filter(function(v) { return !v.gap; });\n }\n\n function keyFunc(d) {\n return d.id;\n }\n\n // Returns a function if the trace is keyed, otherwise returns undefined\n function getKeyFunc(trace) {\n if(trace.ids) {\n return keyFunc;\n }\n }\n\n function hideFilter() {\n return false;\n }\n\n function makePoints(points, text, cdscatter) {\n var join, selection, hasNode;\n\n var trace = cdscatter[0].trace;\n var showMarkers = subTypes.hasMarkers(trace);\n var showText = subTypes.hasText(trace);\n\n var keyFunc = getKeyFunc(trace);\n var markerFilter = hideFilter;\n var textFilter = hideFilter;\n\n if(showMarkers || showText) {\n var showFilter = identity;\n // if we're stacking, \"infer zero\" gap mode gets markers in the\n // gap points - because we've inferred a zero there - but other\n // modes (currently \"interpolate\", later \"interrupt\" hopefully)\n // we don't draw generated markers\n var stackGroup = trace.stackgroup;\n var isInferZero = stackGroup && (\n gd._fullLayout._scatterStackOpts[xa._id + ya._id][stackGroup].stackgaps === 'infer zero');\n if(trace.marker.maxdisplayed || trace._needsCull) {\n showFilter = isInferZero ? visFilterWithGaps : visFilter;\n } else if(stackGroup && !isInferZero) {\n showFilter = gapFilter;\n }\n\n if(showMarkers) markerFilter = showFilter;\n if(showText) textFilter = showFilter;\n }\n\n // marker points\n\n selection = points.selectAll('path.point');\n\n join = selection.data(markerFilter, keyFunc);\n\n var enter = join.enter().append('path')\n .classed('point', true);\n\n if(hasTransition) {\n enter\n .call(Drawing.pointStyle, trace, gd)\n .call(Drawing.translatePoints, xa, ya)\n .style('opacity', 0)\n .transition()\n .style('opacity', 1);\n }\n\n join.order();\n\n var styleFns;\n if(showMarkers) {\n styleFns = Drawing.makePointStyleFns(trace);\n }\n\n join.each(function(d) {\n var el = d3.select(this);\n var sel = transition(el);\n hasNode = Drawing.translatePoint(d, sel, xa, ya);\n\n if(hasNode) {\n Drawing.singlePointStyle(d, sel, trace, styleFns, gd);\n\n if(plotinfo.layerClipId) {\n Drawing.hideOutsideRangePoint(d, sel, xa, ya, trace.xcalendar, trace.ycalendar);\n }\n\n if(trace.customdata) {\n el.classed('plotly-customdata', d.data !== null && d.data !== undefined);\n }\n } else {\n sel.remove();\n }\n });\n\n if(hasTransition) {\n join.exit().transition()\n .style('opacity', 0)\n .remove();\n } else {\n join.exit().remove();\n }\n\n // text points\n selection = text.selectAll('g');\n join = selection.data(textFilter, keyFunc);\n\n // each text needs to go in its own 'g' in case\n // it gets converted to mathjax\n join.enter().append('g').classed('textpoint', true).append('text');\n\n join.order();\n\n join.each(function(d) {\n var g = d3.select(this);\n var sel = transition(g.select('text'));\n hasNode = Drawing.translatePoint(d, sel, xa, ya);\n\n if(hasNode) {\n if(plotinfo.layerClipId) {\n Drawing.hideOutsideRangePoint(d, g, xa, ya, trace.xcalendar, trace.ycalendar);\n }\n } else {\n g.remove();\n }\n });\n\n join.selectAll('text')\n .call(Drawing.textPointStyle, trace, gd)\n .each(function(d) {\n // This just *has* to be totally custom because of SVG text positioning :(\n // It's obviously copied from translatePoint; we just can't use that\n var x = xa.c2p(d.x);\n var y = ya.c2p(d.y);\n\n d3.select(this).selectAll('tspan.line').each(function() {\n transition(d3.select(this)).attr({x: x, y: y});\n });\n });\n\n join.exit().remove();\n }\n\n points.datum(cdscatter);\n text.datum(cdscatter);\n makePoints(points, text, cdscatter);\n\n // lastly, clip points groups of `cliponaxis !== false` traces\n // on `plotinfo._hasClipOnAxisFalse === true` subplots\n var hasClipOnAxisFalse = trace.cliponaxis === false;\n var clipUrl = hasClipOnAxisFalse ? null : plotinfo.layerClipId;\n Drawing.setClipUrl(points, clipUrl, gd);\n Drawing.setClipUrl(text, clipUrl, gd);\n}\n\nfunction selectMarkers(gd, idx, plotinfo, cdscatter, cdscatterAll) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var xr = d3.extent(Lib.simpleMap(xa.range, xa.r2c));\n var yr = d3.extent(Lib.simpleMap(ya.range, ya.r2c));\n\n var trace = cdscatter[0].trace;\n if(!subTypes.hasMarkers(trace)) return;\n // if marker.maxdisplayed is used, select a maximum of\n // mnum markers to show, from the set that are in the viewport\n var mnum = trace.marker.maxdisplayed;\n\n // TODO: remove some as we get away from the viewport?\n if(mnum === 0) return;\n\n var cd = cdscatter.filter(function(v) {\n return v.x >= xr[0] && v.x <= xr[1] && v.y >= yr[0] && v.y <= yr[1];\n });\n var inc = Math.ceil(cd.length / mnum);\n var tnum = 0;\n cdscatterAll.forEach(function(cdj, j) {\n var tracei = cdj[0].trace;\n if(subTypes.hasMarkers(tracei) &&\n tracei.marker.maxdisplayed > 0 && j < idx) {\n tnum++;\n }\n });\n\n // if multiple traces use maxdisplayed, stagger which markers we\n // display this formula offsets successive traces by 1/3 of the\n // increment, adding an extra small amount after each triplet so\n // it's not quite periodic\n var i0 = Math.round(tnum * inc / 3 + Math.floor(tnum / 3) * inc / 7.1);\n\n // for error bars: save in cd which markers to show\n // so we don't have to repeat this\n cdscatter.forEach(function(v) { delete v.vis; });\n cd.forEach(function(v, i) {\n if(Math.round((i + i0) % inc) === 0) v.vis = true;\n });\n}\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/polygon\":527,\"../../registry\":647,\"./line_points\":950,\"./link_traces\":952,\"./subtypes\":961,\"@plotly/d3\":58}],958:[function(_dereq_,module,exports){\n'use strict';\n\nvar subtypes = _dereq_('./subtypes');\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n var i;\n var di;\n var x;\n var y;\n\n var hasOnlyLines = (!subtypes.hasMarkers(trace) && !subtypes.hasText(trace));\n if(hasOnlyLines) return [];\n\n if(selectionTester === false) { // clear selection\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n di = cd[i];\n x = xa.c2p(di.x);\n y = ya.c2p(di.y);\n\n if((di.i !== null) && selectionTester.contains([x, y], false, i, searchInfo)) {\n selection.push({\n pointNumber: di.i,\n x: xa.c2d(di.x),\n y: ya.c2d(di.y)\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{\"./subtypes\":961}],959:[function(_dereq_,module,exports){\n'use strict';\n\nvar perStackAttrs = ['orientation', 'groupnorm', 'stackgaps'];\n\nmodule.exports = function handleStackDefaults(traceIn, traceOut, layout, coerce) {\n var stackOpts = layout._scatterStackOpts;\n\n var stackGroup = coerce('stackgroup');\n if(stackGroup) {\n // use independent stacking options per subplot\n var subplot = traceOut.xaxis + traceOut.yaxis;\n var subplotStackOpts = stackOpts[subplot];\n if(!subplotStackOpts) subplotStackOpts = stackOpts[subplot] = {};\n\n var groupOpts = subplotStackOpts[stackGroup];\n var firstTrace = false;\n if(groupOpts) {\n groupOpts.traces.push(traceOut);\n } else {\n groupOpts = subplotStackOpts[stackGroup] = {\n // keep track of trace indices for use during stacking calculations\n // this will be filled in during `calc` and used during `crossTraceCalc`\n // so it's OK if we don't recreate it during a non-calc edit\n traceIndices: [],\n // Hold on to the whole set of prior traces\n // First one is most important, so we can clear defaults\n // there if we find explicit values only in later traces.\n // We're only going to *use* the values stored in groupOpts,\n // but for the editor and validate we want things self-consistent\n // The full set of traces is used only to fix `fill` default if\n // we find `orientation: 'h'` beyond the first trace\n traces: [traceOut]\n };\n firstTrace = true;\n }\n // TODO: how is this going to work with groupby transforms?\n // in principle it should be OK I guess, as long as explicit group styles\n // don't override explicit base-trace styles?\n\n var dflts = {\n orientation: (traceOut.x && !traceOut.y) ? 'h' : 'v'\n };\n\n for(var i = 0; i < perStackAttrs.length; i++) {\n var attr = perStackAttrs[i];\n var attrFound = attr + 'Found';\n if(!groupOpts[attrFound]) {\n var traceHasAttr = traceIn[attr] !== undefined;\n var isOrientation = attr === 'orientation';\n if(traceHasAttr || firstTrace) {\n groupOpts[attr] = coerce(attr, dflts[attr]);\n\n if(isOrientation) {\n groupOpts.fillDflt = groupOpts[attr] === 'h' ?\n 'tonextx' : 'tonexty';\n }\n\n if(traceHasAttr) {\n // Note: this will show a value here even if it's invalid\n // in which case it will revert to default.\n groupOpts[attrFound] = true;\n\n // Note: only one trace in the stack will get a _fullData\n // entry for a given stack-wide attribute. If no traces\n // (or the first trace) specify that attribute, the\n // first trace will get it. If the first trace does NOT\n // specify it but some later trace does, then it gets\n // removed from the first trace and only included in the\n // one that specified it. This is mostly important for\n // editors (that want to see the full values to know\n // what settings are available) and Plotly.react diffing.\n // Editors may want to use fullLayout._scatterStackOpts\n // directly and make these settings available from all\n // traces in the stack... then set the new value into\n // the first trace, and clear all later traces.\n if(!firstTrace) {\n delete groupOpts.traces[0][attr];\n\n // orientation can affect default fill of previous traces\n if(isOrientation) {\n for(var j = 0; j < groupOpts.traces.length - 1; j++) {\n var trace2 = groupOpts.traces[j];\n if(trace2._input.fill !== trace2.fill) {\n trace2.fill = groupOpts.fillDflt;\n }\n }\n }\n }\n }\n }\n }\n }\n return groupOpts;\n }\n};\n\n},{}],960:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar Registry = _dereq_('../../registry');\n\nfunction style(gd) {\n var s = d3.select(gd).selectAll('g.trace.scatter');\n\n s.style('opacity', function(d) {\n return d[0].trace.opacity;\n });\n\n s.selectAll('g.points').each(function(d) {\n var sel = d3.select(this);\n var trace = d.trace || d[0].trace;\n stylePoints(sel, trace, gd);\n });\n\n s.selectAll('g.text').each(function(d) {\n var sel = d3.select(this);\n var trace = d.trace || d[0].trace;\n styleText(sel, trace, gd);\n });\n\n s.selectAll('g.trace path.js-line')\n .call(Drawing.lineGroupStyle);\n\n s.selectAll('g.trace path.js-fill')\n .call(Drawing.fillGroupStyle, gd);\n\n Registry.getComponentMethod('errorbars', 'style')(s);\n}\n\nfunction stylePoints(sel, trace, gd) {\n Drawing.pointStyle(sel.selectAll('path.point'), trace, gd);\n}\n\nfunction styleText(sel, trace, gd) {\n Drawing.textPointStyle(sel.selectAll('text'), trace, gd);\n}\n\nfunction styleOnSelect(gd, cd, sel) {\n var trace = cd[0].trace;\n\n if(trace.selectedpoints) {\n Drawing.selectedPointStyle(sel.selectAll('path.point'), trace);\n Drawing.selectedTextStyle(sel.selectAll('text'), trace);\n } else {\n stylePoints(sel, trace, gd);\n styleText(sel, trace, gd);\n }\n}\n\nmodule.exports = {\n style: style,\n stylePoints: stylePoints,\n styleText: styleText,\n styleOnSelect: styleOnSelect\n};\n\n},{\"../../components/drawing\":389,\"../../registry\":647,\"@plotly/d3\":58}],961:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = {\n hasLines: function(trace) {\n return trace.visible && trace.mode &&\n trace.mode.indexOf('lines') !== -1;\n },\n\n hasMarkers: function(trace) {\n return trace.visible && (\n (trace.mode && trace.mode.indexOf('markers') !== -1) ||\n // until splom implements 'mode'\n trace.type === 'splom'\n );\n },\n\n hasText: function(trace) {\n return trace.visible && trace.mode &&\n trace.mode.indexOf('text') !== -1;\n },\n\n isBubble: function(trace) {\n return Lib.isPlainObject(trace.marker) &&\n Lib.isArrayOrTypedArray(trace.marker.size);\n }\n};\n\n},{\"../../lib\":515}],962:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n/*\n * opts: object of flags to control features not all text users support\n * noSelect: caller does not support selected/unselected attribute containers\n */\nmodule.exports = function(traceIn, traceOut, layout, coerce, opts) {\n opts = opts || {};\n\n coerce('textposition');\n Lib.coerceFont(coerce, 'textfont', layout.font);\n\n if(!opts.noSelect) {\n coerce('selected.textfont.color');\n coerce('unselected.textfont.color');\n }\n};\n\n},{\"../../lib\":515}],963:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nmodule.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {\n var x = coerce('x');\n var y = coerce('y');\n var len;\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y'], layout);\n\n if(x) {\n var xlen = Lib.minRowLength(x);\n if(y) {\n len = Math.min(xlen, Lib.minRowLength(y));\n } else {\n len = xlen;\n coerce('y0');\n coerce('dy');\n }\n } else {\n if(!y) return 0;\n\n len = Lib.minRowLength(y);\n coerce('x0');\n coerce('dx');\n }\n\n traceOut._length = len;\n\n return len;\n};\n\n},{\"../../lib\":515,\"../../registry\":647}],964:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar colorAttributes = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar DASHES = _dereq_('../../constants/gl3d_dashes');\n\nvar MARKER_SYMBOLS = _dereq_('../../constants/gl3d_markers');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\n\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar lineAttrs = extendFlat({\n width: scatterLineAttrs.width,\n dash: {\n valType: 'enumerated',\n values: sortObjectKeys(DASHES),\n dflt: 'solid',\n }\n}, colorAttributes('line'));\n\nfunction makeProjectionAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n scale: {\n valType: 'number',\n min: 0,\n max: 10,\n dflt: 2 / 3,\n }\n };\n}\n\nvar attrs = module.exports = overrideAll({\n x: scatterAttrs.x,\n y: scatterAttrs.y,\n z: {\n valType: 'data_array',\n },\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({}, {\n\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n hovertemplate: hovertemplateAttrs(),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n mode: extendFlat({}, scatterAttrs.mode, // shouldn't this be on-par with 2D?\n {dflt: 'lines+markers'}),\n surfaceaxis: {\n valType: 'enumerated',\n values: [-1, 0, 1, 2],\n dflt: -1,\n },\n surfacecolor: {\n valType: 'color',\n },\n projection: {\n x: makeProjectionAttr('x'),\n y: makeProjectionAttr('y'),\n z: makeProjectionAttr('z')\n },\n\n connectgaps: scatterAttrs.connectgaps,\n line: lineAttrs,\n\n marker: extendFlat({ // Parity with scatter.js?\n symbol: {\n valType: 'enumerated',\n values: sortObjectKeys(MARKER_SYMBOLS),\n dflt: 'circle',\n arrayOk: true,\n },\n size: extendFlat({}, scatterMarkerAttrs.size, {dflt: 8}),\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n opacity: extendFlat({}, scatterMarkerAttrs.opacity, {\n arrayOk: false,\n }),\n colorbar: scatterMarkerAttrs.colorbar,\n\n line: extendFlat({\n width: extendFlat({}, scatterMarkerLineAttrs.width, {arrayOk: false})\n },\n colorAttributes('marker.line')\n )\n },\n colorAttributes('marker')\n ),\n\n textposition: extendFlat({}, scatterAttrs.textposition, {dflt: 'top center'}),\n textfont: {\n color: scatterAttrs.textfont.color,\n size: scatterAttrs.textfont.size,\n family: extendFlat({}, scatterAttrs.textfont.family, {arrayOk: false})\n },\n\n opacity: baseAttrs.opacity,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo)\n}, 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = 'calc+clearAxisTypes';\n\n},{\"../../components/colorscale/attributes\":374,\"../../constants/gl3d_dashes\":488,\"../../constants/gl3d_markers\":489,\"../../lib/extend\":505,\"../../lib/sort_object_keys\":538,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],965:[function(_dereq_,module,exports){\n'use strict';\n\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\n\n/**\n * This is a kludge to put the array attributes into\n * calcdata the way Scatter.plot does, so that legends and\n * popovers know what to do with them.\n */\nmodule.exports = function calc(gd, trace) {\n var cd = [{x: false, y: false, trace: trace, t: {}}];\n\n arraysToCalcdata(cd, trace);\n calcColorscale(gd, trace);\n\n return cd;\n};\n\n},{\"../scatter/arrays_to_calcdata\":935,\"../scatter/colorscale_calc\":939}],966:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\n\nfunction calculateAxisErrors(data, params, scaleFactor, axis) {\n if(!params || !params.visible) return null;\n\n var computeError = Registry.getComponentMethod('errorbars', 'makeComputeError')(params);\n var result = new Array(data.length);\n\n for(var i = 0; i < data.length; i++) {\n var errors = computeError(+data[i], i);\n\n if(axis.type === 'log') {\n var point = axis.c2l(data[i]);\n var min = data[i] - errors[0];\n var max = data[i] + errors[1];\n\n result[i] = [\n (axis.c2l(min, true) - point) * scaleFactor,\n (axis.c2l(max, true) - point) * scaleFactor\n ];\n\n // Keep track of the lower error bound which isn't negative!\n if(min > 0) {\n var lower = axis.c2l(min);\n if(!axis._lowerLogErrorBound) axis._lowerLogErrorBound = lower;\n axis._lowerErrorBound = Math.min(axis._lowerLogErrorBound, lower);\n }\n } else {\n result[i] = [\n -errors[0] * scaleFactor,\n errors[1] * scaleFactor\n ];\n }\n }\n\n return result;\n}\n\nfunction dataLength(array) {\n for(var i = 0; i < array.length; i++) {\n if(array[i]) return array[i].length;\n }\n return 0;\n}\n\nfunction calculateErrors(data, scaleFactor, sceneLayout) {\n var errors = [\n calculateAxisErrors(data.x, data.error_x, scaleFactor[0], sceneLayout.xaxis),\n calculateAxisErrors(data.y, data.error_y, scaleFactor[1], sceneLayout.yaxis),\n calculateAxisErrors(data.z, data.error_z, scaleFactor[2], sceneLayout.zaxis)\n ];\n\n var n = dataLength(errors);\n if(n === 0) return null;\n\n var errorBounds = new Array(n);\n\n for(var i = 0; i < n; i++) {\n var bound = [[0, 0, 0], [0, 0, 0]];\n\n for(var j = 0; j < 3; j++) {\n if(errors[j]) {\n for(var k = 0; k < 2; k++) {\n bound[k][j] = errors[j][i][k];\n }\n }\n }\n\n errorBounds[i] = bound;\n }\n\n return errorBounds;\n}\n\nmodule.exports = calculateErrors;\n\n},{\"../../registry\":647}],967:[function(_dereq_,module,exports){\n'use strict';\n\nvar createLinePlot = _dereq_('../../../stackgl_modules').gl_line3d;\nvar createScatterPlot = _dereq_('../../../stackgl_modules').gl_scatter3d;\nvar createErrorBars = _dereq_('../../../stackgl_modules').gl_error3d;\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\nvar triangulate = _dereq_('../../../stackgl_modules').delaunay_triangulate;\n\nvar Lib = _dereq_('../../lib');\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar formatColor = _dereq_('../../lib/gl_format_color').formatColor;\nvar makeBubbleSizeFn = _dereq_('../scatter/make_bubble_size_func');\nvar DASH_PATTERNS = _dereq_('../../constants/gl3d_dashes');\nvar MARKER_SYMBOLS = _dereq_('../../constants/gl3d_markers');\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar calculateError = _dereq_('./calc_errors');\n\nfunction LineWithMarkers(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.linePlot = null;\n this.scatterPlot = null;\n this.errorBars = null;\n this.textMarkers = null;\n this.delaunayMesh = null;\n this.color = null;\n this.mode = '';\n this.dataPoints = [];\n this.axesBounds = [\n [-Infinity, -Infinity, -Infinity],\n [Infinity, Infinity, Infinity]\n ];\n this.textLabels = null;\n this.data = null;\n}\n\nvar proto = LineWithMarkers.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object &&\n (selection.object === this.linePlot ||\n selection.object === this.delaunayMesh ||\n selection.object === this.textMarkers ||\n selection.object === this.scatterPlot)\n ) {\n var ind = selection.index = selection.data.index;\n\n if(selection.object.highlight) {\n selection.object.highlight(null);\n }\n if(this.scatterPlot) {\n selection.object = this.scatterPlot;\n this.scatterPlot.highlight(selection.data);\n }\n\n selection.textLabel = '';\n if(this.textLabels) {\n if(Array.isArray(this.textLabels)) {\n if(this.textLabels[ind] || this.textLabels[ind] === 0) {\n selection.textLabel = this.textLabels[ind];\n }\n } else {\n selection.textLabel = this.textLabels;\n }\n }\n\n selection.traceCoordinate = [\n this.data.x[ind],\n this.data.y[ind],\n this.data.z[ind]\n ];\n\n return true;\n }\n};\n\nfunction constructDelaunay(points, color, axis) {\n var u = (axis + 1) % 3;\n var v = (axis + 2) % 3;\n var filteredPoints = [];\n var filteredIds = [];\n var i;\n\n for(i = 0; i < points.length; ++i) {\n var p = points[i];\n if(isNaN(p[u]) || !isFinite(p[u]) ||\n isNaN(p[v]) || !isFinite(p[v])) {\n continue;\n }\n filteredPoints.push([p[u], p[v]]);\n filteredIds.push(i);\n }\n var cells = triangulate(filteredPoints);\n for(i = 0; i < cells.length; ++i) {\n var c = cells[i];\n for(var j = 0; j < c.length; ++j) {\n c[j] = filteredIds[c[j]];\n }\n }\n return {\n positions: points,\n cells: cells,\n meshColor: color\n };\n}\n\nfunction calculateErrorParams(errors) {\n var capSize = [0.0, 0.0, 0.0];\n var color = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];\n var lineWidth = [1.0, 1.0, 1.0];\n\n for(var i = 0; i < 3; i++) {\n var e = errors[i];\n\n if(e && e.copy_zstyle !== false && errors[2].visible !== false) e = errors[2];\n if(!e || !e.visible) continue;\n\n capSize[i] = e.width / 2; // ballpark rescaling\n color[i] = str2RgbaArray(e.color);\n lineWidth[i] = e.thickness;\n }\n\n return {capSize: capSize, color: color, lineWidth: lineWidth};\n}\n\nfunction parseAlignmentX(a) {\n if(a === null || a === undefined) return 0;\n\n return (a.indexOf('left') > -1) ? -1 :\n (a.indexOf('right') > -1) ? 1 : 0;\n}\n\nfunction parseAlignmentY(a) {\n if(a === null || a === undefined) return 0;\n\n return (a.indexOf('top') > -1) ? -1 :\n (a.indexOf('bottom') > -1) ? 1 : 0;\n}\n\nfunction calculateTextOffset(tp) {\n // Read out text properties\n\n var defaultAlignmentX = 0;\n var defaultAlignmentY = 0;\n\n var textOffset = [\n defaultAlignmentX,\n defaultAlignmentY\n ];\n\n if(Array.isArray(tp)) {\n for(var i = 0; i < tp.length; i++) {\n textOffset[i] = [\n defaultAlignmentX,\n defaultAlignmentY\n ];\n if(tp[i]) {\n textOffset[i][0] = parseAlignmentX(tp[i]);\n textOffset[i][1] = parseAlignmentY(tp[i]);\n }\n }\n } else {\n textOffset[0] = parseAlignmentX(tp);\n textOffset[1] = parseAlignmentY(tp);\n }\n\n return textOffset;\n}\n\n\nfunction calculateSize(sizeIn, sizeFn) {\n // rough parity with Plotly 2D markers\n return sizeFn(sizeIn * 4);\n}\n\nfunction calculateSymbol(symbolIn) {\n return MARKER_SYMBOLS[symbolIn];\n}\n\nfunction formatParam(paramIn, len, calculate, dflt, extraFn) {\n var paramOut = null;\n\n if(Lib.isArrayOrTypedArray(paramIn)) {\n paramOut = [];\n\n for(var i = 0; i < len; i++) {\n if(paramIn[i] === undefined) paramOut[i] = dflt;\n else paramOut[i] = calculate(paramIn[i], extraFn);\n }\n } else paramOut = calculate(paramIn, Lib.identity);\n\n return paramOut;\n}\n\n\nfunction convertPlotlyOptions(scene, data) {\n var points = [];\n var sceneLayout = scene.fullSceneLayout;\n var scaleFactor = scene.dataScale;\n var xaxis = sceneLayout.xaxis;\n var yaxis = sceneLayout.yaxis;\n var zaxis = sceneLayout.zaxis;\n var marker = data.marker;\n var line = data.line;\n var x = data.x || [];\n var y = data.y || [];\n var z = data.z || [];\n var len = x.length;\n var xcalendar = data.xcalendar;\n var ycalendar = data.ycalendar;\n var zcalendar = data.zcalendar;\n var xc, yc, zc;\n var params, i;\n var text;\n\n // Convert points\n for(i = 0; i < len; i++) {\n // sanitize numbers and apply transforms based on axes.type\n xc = xaxis.d2l(x[i], 0, xcalendar) * scaleFactor[0];\n yc = yaxis.d2l(y[i], 0, ycalendar) * scaleFactor[1];\n zc = zaxis.d2l(z[i], 0, zcalendar) * scaleFactor[2];\n\n points[i] = [xc, yc, zc];\n }\n\n // convert text\n if(Array.isArray(data.text)) text = data.text;\n else if(data.text !== undefined) {\n text = new Array(len);\n for(i = 0; i < len; i++) text[i] = data.text;\n }\n\n function formatter(axName, val) {\n var ax = sceneLayout[axName];\n return Axes.tickText(ax, ax.d2l(val), true).text;\n }\n\n // check texttemplate\n var texttemplate = data.texttemplate;\n if(texttemplate) {\n var fullLayout = scene.fullLayout;\n var d3locale = fullLayout._d3locale;\n var isArray = Array.isArray(texttemplate);\n var N = isArray ? Math.min(texttemplate.length, len) : len;\n var txt = isArray ?\n function(i) { return texttemplate[i]; } :\n function() { return texttemplate; };\n\n text = new Array(N);\n\n for(i = 0; i < N; i++) {\n var d = {x: x[i], y: y[i], z: z[i]};\n var labels = {\n xLabel: formatter('xaxis', x[i]),\n yLabel: formatter('yaxis', y[i]),\n zLabel: formatter('zaxis', z[i])\n };\n var pointValues = {};\n appendArrayPointValue(pointValues, data, i);\n var meta = data._meta || {};\n text[i] = Lib.texttemplateString(txt(i), labels, d3locale, pointValues, d, meta);\n }\n }\n\n // Build object parameters\n params = {\n position: points,\n mode: data.mode,\n text: text\n };\n\n if('line' in data) {\n params.lineColor = formatColor(line, 1, len);\n params.lineWidth = line.width;\n params.lineDashes = line.dash;\n }\n\n if('marker' in data) {\n var sizeFn = makeBubbleSizeFn(data);\n\n params.scatterColor = formatColor(marker, 1, len);\n params.scatterSize = formatParam(marker.size, len, calculateSize, 20, sizeFn);\n params.scatterMarker = formatParam(marker.symbol, len, calculateSymbol, '●');\n params.scatterLineWidth = marker.line.width; // arrayOk === false\n params.scatterLineColor = formatColor(marker.line, 1, len);\n params.scatterAngle = 0;\n }\n\n if('textposition' in data) {\n params.textOffset = calculateTextOffset(data.textposition);\n params.textColor = formatColor(data.textfont, 1, len);\n params.textSize = formatParam(data.textfont.size, len, Lib.identity, 12);\n params.textFont = data.textfont.family; // arrayOk === false\n params.textAngle = 0;\n }\n\n var dims = ['x', 'y', 'z'];\n params.project = [false, false, false];\n params.projectScale = [1, 1, 1];\n params.projectOpacity = [1, 1, 1];\n for(i = 0; i < 3; ++i) {\n var projection = data.projection[dims[i]];\n if((params.project[i] = projection.show)) {\n params.projectOpacity[i] = projection.opacity;\n params.projectScale[i] = projection.scale;\n }\n }\n\n params.errorBounds = calculateError(data, scaleFactor, sceneLayout);\n\n var errorParams = calculateErrorParams([data.error_x, data.error_y, data.error_z]);\n params.errorColor = errorParams.color;\n params.errorLineWidth = errorParams.lineWidth;\n params.errorCapSize = errorParams.capSize;\n\n params.delaunayAxis = data.surfaceaxis;\n params.delaunayColor = str2RgbaArray(data.surfacecolor);\n\n return params;\n}\n\nfunction _arrayToColor(color) {\n if(Lib.isArrayOrTypedArray(color)) {\n var c = color[0];\n\n if(Lib.isArrayOrTypedArray(c)) color = c;\n\n return 'rgb(' + color.slice(0, 3).map(function(x) {\n return Math.round(x * 255);\n }) + ')';\n }\n\n return null;\n}\n\nfunction arrayToColor(colors) {\n if(!Lib.isArrayOrTypedArray(colors)) {\n return null;\n }\n\n if((colors.length === 4) && (typeof colors[0] === 'number')) {\n return _arrayToColor(colors);\n }\n\n return colors.map(_arrayToColor);\n}\n\nproto.update = function(data) {\n var gl = this.scene.glplot.gl;\n var lineOptions;\n var scatterOptions;\n var errorOptions;\n var textOptions;\n var dashPattern = DASH_PATTERNS.solid;\n\n // Save data\n this.data = data;\n\n // Run data conversion\n var options = convertPlotlyOptions(this.scene, data);\n\n if('mode' in options) {\n this.mode = options.mode;\n }\n if('lineDashes' in options) {\n if(options.lineDashes in DASH_PATTERNS) {\n dashPattern = DASH_PATTERNS[options.lineDashes];\n }\n }\n\n this.color = arrayToColor(options.scatterColor) ||\n arrayToColor(options.lineColor);\n\n // Save data points\n this.dataPoints = options.position;\n\n lineOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n color: options.lineColor,\n lineWidth: options.lineWidth || 1,\n dashes: dashPattern[0],\n dashScale: dashPattern[1],\n opacity: data.opacity,\n connectGaps: data.connectgaps\n };\n\n if(this.mode.indexOf('lines') !== -1) {\n if(this.linePlot) this.linePlot.update(lineOptions);\n else {\n this.linePlot = createLinePlot(lineOptions);\n this.linePlot._trace = this;\n this.scene.glplot.add(this.linePlot);\n }\n } else if(this.linePlot) {\n this.scene.glplot.remove(this.linePlot);\n this.linePlot.dispose();\n this.linePlot = null;\n }\n\n // N.B. marker.opacity must be a scalar for performance\n var scatterOpacity = data.opacity;\n if(data.marker && data.marker.opacity) scatterOpacity *= data.marker.opacity;\n\n scatterOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n color: options.scatterColor,\n size: options.scatterSize,\n glyph: options.scatterMarker,\n opacity: scatterOpacity,\n orthographic: true,\n lineWidth: options.scatterLineWidth,\n lineColor: options.scatterLineColor,\n project: options.project,\n projectScale: options.projectScale,\n projectOpacity: options.projectOpacity\n };\n\n if(this.mode.indexOf('markers') !== -1) {\n if(this.scatterPlot) this.scatterPlot.update(scatterOptions);\n else {\n this.scatterPlot = createScatterPlot(scatterOptions);\n this.scatterPlot._trace = this;\n this.scatterPlot.highlightScale = 1;\n this.scene.glplot.add(this.scatterPlot);\n }\n } else if(this.scatterPlot) {\n this.scene.glplot.remove(this.scatterPlot);\n this.scatterPlot.dispose();\n this.scatterPlot = null;\n }\n\n textOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n glyph: options.text,\n color: options.textColor,\n size: options.textSize,\n angle: options.textAngle,\n alignment: options.textOffset,\n font: options.textFont,\n orthographic: true,\n lineWidth: 0,\n project: false,\n opacity: data.opacity\n };\n\n this.textLabels = data.hovertext || data.text;\n\n if(this.mode.indexOf('text') !== -1) {\n if(this.textMarkers) this.textMarkers.update(textOptions);\n else {\n this.textMarkers = createScatterPlot(textOptions);\n this.textMarkers._trace = this;\n this.textMarkers.highlightScale = 1;\n this.scene.glplot.add(this.textMarkers);\n }\n } else if(this.textMarkers) {\n this.scene.glplot.remove(this.textMarkers);\n this.textMarkers.dispose();\n this.textMarkers = null;\n }\n\n errorOptions = {\n gl: this.scene.glplot.gl,\n position: options.position,\n color: options.errorColor,\n error: options.errorBounds,\n lineWidth: options.errorLineWidth,\n capSize: options.errorCapSize,\n opacity: data.opacity\n };\n if(this.errorBars) {\n if(options.errorBounds) {\n this.errorBars.update(errorOptions);\n } else {\n this.scene.glplot.remove(this.errorBars);\n this.errorBars.dispose();\n this.errorBars = null;\n }\n } else if(options.errorBounds) {\n this.errorBars = createErrorBars(errorOptions);\n this.errorBars._trace = this;\n this.scene.glplot.add(this.errorBars);\n }\n\n if(options.delaunayAxis >= 0) {\n var delaunayOptions = constructDelaunay(\n options.position,\n options.delaunayColor,\n options.delaunayAxis\n );\n delaunayOptions.opacity = data.opacity;\n\n if(this.delaunayMesh) {\n this.delaunayMesh.update(delaunayOptions);\n } else {\n delaunayOptions.gl = gl;\n this.delaunayMesh = createMesh(delaunayOptions);\n this.delaunayMesh._trace = this;\n this.scene.glplot.add(this.delaunayMesh);\n }\n } else if(this.delaunayMesh) {\n this.scene.glplot.remove(this.delaunayMesh);\n this.delaunayMesh.dispose();\n this.delaunayMesh = null;\n }\n};\n\nproto.dispose = function() {\n if(this.linePlot) {\n this.scene.glplot.remove(this.linePlot);\n this.linePlot.dispose();\n }\n if(this.scatterPlot) {\n this.scene.glplot.remove(this.scatterPlot);\n this.scatterPlot.dispose();\n }\n if(this.errorBars) {\n this.scene.glplot.remove(this.errorBars);\n this.errorBars.dispose();\n }\n if(this.textMarkers) {\n this.scene.glplot.remove(this.textMarkers);\n this.textMarkers.dispose();\n }\n if(this.delaunayMesh) {\n this.scene.glplot.remove(this.delaunayMesh);\n this.delaunayMesh.dispose();\n }\n};\n\nfunction createLineWithMarkers(scene, data) {\n var plot = new LineWithMarkers(scene, data.uid);\n plot.update(data);\n return plot;\n}\n\nmodule.exports = createLineWithMarkers;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/fx/helpers\":403,\"../../constants/gl3d_dashes\":488,\"../../constants/gl3d_markers\":489,\"../../lib\":515,\"../../lib/gl_format_color\":511,\"../../lib/str2rgbarray\":540,\"../../plots/cartesian/axes\":566,\"../scatter/make_bubble_size_func\":953,\"./calc_errors\":966}],968:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYZDefaults(traceIn, traceOut, coerce, layout);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n coerce('mode');\n\n if(subTypes.hasLines(traceOut)) {\n coerce('connectgaps');\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noSelect: true, noAngle: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce, {noSelect: true});\n }\n\n var lineColor = (traceOut.line || {}).color;\n var markerColor = (traceOut.marker || {}).color;\n if(coerce('surfaceaxis') >= 0) coerce('surfacecolor', lineColor || markerColor);\n\n var dims = ['x', 'y', 'z'];\n for(var i = 0; i < 3; ++i) {\n var projection = 'projection.' + dims[i];\n if(coerce(projection + '.show')) {\n coerce(projection + '.opacity');\n coerce(projection + '.scale');\n }\n }\n\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'z'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'y', inherit: 'z'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'x', inherit: 'z'});\n};\n\nfunction handleXYZDefaults(traceIn, traceOut, coerce, layout) {\n var len = 0;\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n if(x && y && z) {\n // TODO: what happens if one is missing?\n len = Math.min(x.length, y.length, z.length);\n traceOut._length = traceOut._xlength = traceOut._ylength = traceOut._zlength = len;\n }\n\n return len;\n}\n\n},{\"../../lib\":515,\"../../registry\":647,\"../scatter/line_defaults\":949,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":964}],969:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n plot: _dereq_('./convert'),\n attributes: _dereq_('./attributes'),\n markerSymbols: _dereq_('../../constants/gl3d_markers'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: [\n {\n container: 'marker',\n min: 'cmin',\n max: 'cmax'\n }, {\n container: 'line',\n min: 'cmin',\n max: 'cmax'\n }\n ],\n calc: _dereq_('./calc'),\n\n moduleType: 'trace',\n name: 'scatter3d',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../constants/gl3d_markers\":489,\"../../plots/gl3d\":607,\"./attributes\":964,\"./calc\":965,\"./convert\":967,\"./defaults\":968}],970:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = {\n carpet: {\n valType: 'string',\n editType: 'calc',\n },\n a: {\n valType: 'data_array',\n editType: 'calc',\n },\n b: {\n valType: 'data_array',\n editType: 'calc',\n },\n mode: extendFlat({}, scatterAttrs.mode, {dflt: 'markers'}),\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['a', 'b', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n dash: scatterLineAttrs.dash,\n backoff: scatterLineAttrs.backoff,\n shape: extendFlat({}, scatterLineAttrs.shape,\n {values: ['linear', 'spline']}),\n smoothing: scatterLineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n marker: extendFlat({\n symbol: scatterMarkerAttrs.symbol,\n opacity: scatterMarkerAttrs.opacity,\n maxdisplayed: scatterMarkerAttrs.maxdisplayed,\n angle: scatterMarkerAttrs.angle,\n angleref: scatterMarkerAttrs.angleref,\n standoff: scatterMarkerAttrs.standoff,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n line: extendFlat({\n width: scatterMarkerLineAttrs.width,\n editType: 'calc'\n },\n colorScaleAttrs('marker.line')\n ),\n gradient: scatterMarkerAttrs.gradient,\n editType: 'calc'\n },\n colorScaleAttrs('marker')\n ),\n\n textfont: scatterAttrs.textfont,\n textposition: scatterAttrs.textposition,\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['a', 'b', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs()\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],971:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar lookupCarpet = _dereq_('../carpet/lookup_carpetid');\n\nmodule.exports = function calc(gd, trace) {\n var carpet = trace._carpetTrace = lookupCarpet(gd, trace);\n if(!carpet || !carpet.visible || carpet.visible === 'legendonly') return;\n var i;\n\n // Transfer this over from carpet before plotting since this is a necessary\n // condition in order for cartesian to actually plot this trace:\n trace.xaxis = carpet.xaxis;\n trace.yaxis = carpet.yaxis;\n\n // make the calcdata array\n var serieslen = trace._length;\n var cd = new Array(serieslen);\n var a, b;\n var needsCull = false;\n for(i = 0; i < serieslen; i++) {\n a = trace.a[i];\n b = trace.b[i];\n if(isNumeric(a) && isNumeric(b)) {\n var xy = carpet.ab2xy(+a, +b, true);\n var visible = carpet.isVisible(+a, +b);\n if(!visible) needsCull = true;\n cd[i] = {x: xy[0], y: xy[1], a: a, b: b, vis: visible};\n } else cd[i] = {x: false, y: false};\n }\n\n trace._needsCull = needsCull;\n\n cd[0].carpet = carpet;\n cd[0].trace = trace;\n\n calcMarkerSize(trace, serieslen);\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../carpet/lookup_carpetid\":717,\"../scatter/arrays_to_calcdata\":935,\"../scatter/calc\":937,\"../scatter/calc_selection\":938,\"../scatter/colorscale_calc\":939,\"fast-isnumeric\":190}],972:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar constants = _dereq_('../scatter/constants');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n coerce('carpet');\n\n // XXX: Don't hard code this\n traceOut.xaxis = 'x';\n traceOut.yaxis = 'y';\n\n var a = coerce('a');\n var b = coerce('b');\n var len = Math.min(a.length, b.length);\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('text');\n coerce('texttemplate');\n coerce('hovertext');\n\n var defaultMode = len < constants.PTS_LINESONLY ? 'lines+markers' : 'lines';\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {backoff: true});\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n\n var hoverOn = coerce('hoveron', dfltHoverOn.join('+') || 'points');\n if(hoverOn !== 'fills') coerce('hovertemplate');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../scatter/constants\":940,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/line_shape_defaults\":951,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":970}],973:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n var cdi = cd[pointNumber];\n\n out.a = cdi.a;\n out.b = cdi.b;\n out.y = cdi.y;\n\n return out;\n};\n\n},{}],974:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function formatLabels(cdi, trace) {\n var labels = {};\n\n var carpet = trace._carpet;\n var ij = carpet.ab2ij([cdi.a, cdi.b]);\n var i0 = Math.floor(ij[0]);\n var ti = ij[0] - i0;\n var j0 = Math.floor(ij[1]);\n var tj = ij[1] - j0;\n var xy = carpet.evalxy([], i0, j0, ti, tj);\n\n labels.yLabel = xy[1].toFixed(3);\n\n return labels;\n};\n\n},{}],975:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\nvar fillText = _dereq_('../../lib').fillText;\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // if hovering on a fill, we don't show any point data so the label is\n // unchanged from what scatter gives us - except that it needs to\n // be constrained to the trianglular plot area, not just the rectangular\n // area defined by the synthetic x and y axes\n // TODO: in some cases the vertical middle of the shape is not within\n // the triangular viewport at all, so the label can become disconnected\n // from the shape entirely. But calculating what portion of the shape\n // is actually visible, as constrained by the diagonal axis lines, is not\n // so easy and anyway we lost the information we would have needed to do\n // this inside scatterHover.\n if(newPointData.index === undefined) {\n var yFracUp = 1 - (newPointData.y0 / pointData.ya._length);\n var xLen = pointData.xa._length;\n var xMin = xLen * yFracUp / 2;\n var xMax = xLen - xMin;\n newPointData.x0 = Math.max(Math.min(newPointData.x0, xMax), xMin);\n newPointData.x1 = Math.max(Math.min(newPointData.x1, xMax), xMin);\n return scatterPointData;\n }\n\n var cdi = newPointData.cd[newPointData.index];\n\n newPointData.a = cdi.a;\n newPointData.b = cdi.b;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n // TODO: nice formatting, and label by axis title, for a, b, and c?\n\n var trace = newPointData.trace;\n var carpet = trace._carpet;\n\n var labels = trace._module.formatLabels(cdi, trace);\n newPointData.yLabel = labels.yLabel;\n\n delete newPointData.text;\n var text = [];\n\n function textPart(ax, val) {\n var prefix;\n\n if(ax.labelprefix && ax.labelprefix.length > 0) {\n prefix = ax.labelprefix.replace(/ = $/, '');\n } else {\n prefix = ax._hovertitle;\n }\n\n text.push(prefix + ': ' + val.toFixed(3) + ax.labelsuffix);\n }\n\n\n if(!trace.hovertemplate) {\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var parts = hoverinfo.split('+');\n\n if(parts.indexOf('all') !== -1) parts = ['a', 'b', 'text'];\n if(parts.indexOf('a') !== -1) textPart(carpet.aaxis, cdi.a);\n if(parts.indexOf('b') !== -1) textPart(carpet.baxis, cdi.b);\n\n text.push('y: ' + newPointData.yLabel);\n\n if(parts.indexOf('text') !== -1) {\n fillText(cdi, trace, text);\n }\n\n newPointData.extraText = text.join('
');\n }\n\n return scatterPointData;\n};\n\n},{\"../../lib\":515,\"../scatter/hover\":947}],976:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../scatter/select'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'scattercarpet',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['svg', 'carpet', 'symbols', 'showLegend', 'carpetDependent', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../scatter/marker_colorbar\":954,\"../scatter/select\":958,\"../scatter/style\":960,\"./attributes\":970,\"./calc\":971,\"./defaults\":972,\"./event_data\":973,\"./format_labels\":974,\"./hover\":975,\"./plot\":977}],977:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar Drawing = _dereq_('../../components/drawing');\n\nmodule.exports = function plot(gd, plotinfoproxy, data, layer) {\n var i, trace, node;\n\n var carpet = data[0][0].carpet;\n\n var xaxis = Axes.getFromId(gd, carpet.xaxis || 'x');\n var yaxis = Axes.getFromId(gd, carpet.yaxis || 'y');\n\n // mimic cartesian plotinfo\n var plotinfo = {\n xaxis: xaxis,\n yaxis: yaxis,\n plot: plotinfoproxy.plot,\n };\n\n for(i = 0; i < data.length; i++) {\n trace = data[i][0].trace;\n\n trace._xA = xaxis;\n trace._yA = yaxis;\n }\n\n scatterPlot(gd, plotinfo, data, layer);\n\n for(i = 0; i < data.length; i++) {\n trace = data[i][0].trace;\n\n // Note: .select is adequate but seems to mutate the node data,\n // which is at least a bit surprising and causes problems elsewhere\n node = layer.selectAll('g.trace' + trace.uid + ' .js-line');\n\n // Note: it would be more efficient if this didn't need to be applied\n // separately to all scattercarpet traces, but that would require\n // lots of reorganization of scatter traces that is otherwise not\n // necessary. That makes this a potential optimization.\n Drawing.setClipUrl(node, data[i][0].carpet._clipPathId, gd);\n }\n};\n\n},{\"../../components/drawing\":389,\"../../plots/cartesian/axes\":566,\"../scatter/plot\":957}],978:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorAttributes = _dereq_('../../components/colorscale/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = overrideAll({\n lon: {\n valType: 'data_array',\n },\n lat: {\n valType: 'data_array',\n },\n\n locations: {\n valType: 'data_array',\n },\n locationmode: {\n valType: 'enumerated',\n values: ['ISO-3', 'USA-states', 'country names', 'geojson-id'],\n dflt: 'ISO-3',\n },\n\n geojson: {\n valType: 'any',\n editType: 'calc',\n },\n featureidkey: {\n valType: 'string',\n editType: 'calc',\n dflt: 'id',\n },\n\n mode: extendFlat({}, scatterAttrs.mode, {dflt: 'markers'}),\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['lat', 'lon', 'location', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n\n textfont: scatterAttrs.textfont,\n textposition: scatterAttrs.textposition,\n\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n dash: dash\n },\n connectgaps: scatterAttrs.connectgaps,\n\n marker: extendFlat({\n symbol: scatterMarkerAttrs.symbol,\n opacity: scatterMarkerAttrs.opacity,\n angle: scatterMarkerAttrs.angle,\n angleref: extendFlat({}, scatterMarkerAttrs.angleref, {\n values: ['previous', 'up', 'north'],\n }),\n standoff: scatterMarkerAttrs.standoff,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n colorbar: scatterMarkerAttrs.colorbar,\n line: extendFlat({\n width: scatterMarkerLineAttrs.width\n },\n colorAttributes('marker.line')\n ),\n gradient: scatterMarkerAttrs.gradient\n },\n colorAttributes('marker')\n ),\n\n fill: {\n valType: 'enumerated',\n values: ['none', 'toself'],\n dflt: 'none',\n },\n fillcolor: scatterAttrs.fillcolor,\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['lon', 'lat', 'location', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n}, 'calc', 'nested');\n\n},{\"../../components/colorscale/attributes\":374,\"../../components/drawing/attributes\":388,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],979:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar calcMarkerColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\n\nvar _ = _dereq_('../../lib')._;\n\nfunction isNonBlankString(v) {\n return v && typeof v === 'string';\n}\n\nmodule.exports = function calc(gd, trace) {\n var hasLocationData = Array.isArray(trace.locations);\n var len = hasLocationData ? trace.locations.length : trace._length;\n var calcTrace = new Array(len);\n\n var isValidLoc;\n if(trace.geojson) {\n isValidLoc = function(v) { return isNonBlankString(v) || isNumeric(v); };\n } else {\n isValidLoc = isNonBlankString;\n }\n\n for(var i = 0; i < len; i++) {\n var calcPt = calcTrace[i] = {};\n\n if(hasLocationData) {\n var loc = trace.locations[i];\n calcPt.loc = isValidLoc(loc) ? loc : null;\n } else {\n var lon = trace.lon[i];\n var lat = trace.lat[i];\n\n if(isNumeric(lon) && isNumeric(lat)) calcPt.lonlat = [+lon, +lat];\n else calcPt.lonlat = [BADNUM, BADNUM];\n }\n }\n\n arraysToCalcdata(calcTrace, trace);\n calcMarkerColorscale(gd, trace);\n calcSelection(calcTrace, trace);\n\n if(len) {\n calcTrace[0].t = {\n labels: {\n lat: _(gd, 'lat:') + ' ',\n lon: _(gd, 'lon:') + ' '\n }\n };\n }\n\n return calcTrace;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../scatter/arrays_to_calcdata\":935,\"../scatter/calc_selection\":938,\"../scatter/colorscale_calc\":939,\"fast-isnumeric\":190}],980:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var locations = coerce('locations');\n var len;\n\n if(locations && locations.length) {\n var geojson = coerce('geojson');\n var locationmodeDflt;\n if((typeof geojson === 'string' && geojson !== '') || Lib.isPlainObject(geojson)) {\n locationmodeDflt = 'geojson-id';\n }\n\n var locationMode = coerce('locationmode', locationmodeDflt);\n\n if(locationMode === 'geojson-id') {\n coerce('featureidkey');\n }\n\n len = locations.length;\n } else {\n var lon = coerce('lon') || [];\n var lat = coerce('lat') || [];\n len = Math.min(lon.length, lat.length);\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('mode');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":978}],981:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n out.lon = pt.lon;\n out.lat = pt.lat;\n out.location = pt.loc ? pt.loc : null;\n\n // include feature properties from input geojson\n var cdi = cd[pointNumber];\n if(cdi.fIn && cdi.fIn.properties) {\n out.properties = cdi.fIn.properties;\n }\n\n return out;\n};\n\n},{}],982:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var geo = fullLayout[trace.geo]._subplot;\n var ax = geo.mockAxis;\n var lonlat = cdi.lonlat;\n labels.lonLabel = Axes.tickText(ax, ax.c2l(lonlat[0]), true).text;\n labels.latLabel = Axes.tickText(ax, ax.c2l(lonlat[1]), true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":566}],983:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\nvar fillText = _dereq_('../../lib').fillText;\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var geo = pointData.subplot;\n\n var isLonLatOverEdges = geo.projection.isLonLatOverEdges;\n var project = geo.project;\n\n function distFn(d) {\n var lonlat = d.lonlat;\n\n if(lonlat[0] === BADNUM) return Infinity;\n if(isLonLatOverEdges(lonlat)) return Infinity;\n\n var pt = project(lonlat);\n var px = project([xval, yval]);\n var dx = Math.abs(pt[0] - px[0]);\n var dy = Math.abs(pt[1] - px[1]);\n var rad = Math.max(3, d.mrc || 0);\n\n // N.B. d.mrc is the calculated marker radius\n // which is only set for trace with 'markers' mode.\n\n return Math.max(Math.sqrt(dx * dx + dy * dy) - rad, 1 - 3 / rad);\n }\n\n Fx.getClosest(cd, distFn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index === false) return;\n\n var di = cd[pointData.index];\n var lonlat = di.lonlat;\n var pos = [xa.c2p(lonlat), ya.c2p(lonlat)];\n var rad = di.mrc || 1;\n\n pointData.x0 = pos[0] - rad;\n pointData.x1 = pos[0] + rad;\n pointData.y0 = pos[1] - rad;\n pointData.y1 = pos[1] + rad;\n\n pointData.loc = di.loc;\n pointData.lon = lonlat[0];\n pointData.lat = lonlat[1];\n\n var fullLayout = {};\n fullLayout[trace.geo] = {_subplot: geo};\n var labels = trace._module.formatLabels(di, trace, fullLayout);\n pointData.lonLabel = labels.lonLabel;\n pointData.latLabel = labels.latLabel;\n\n pointData.color = getTraceColor(trace, di);\n pointData.extraText = getExtraText(trace, di, pointData, cd[0].t.labels);\n pointData.hovertemplate = trace.hovertemplate;\n\n return [pointData];\n};\n\nfunction getExtraText(trace, pt, pointData, labels) {\n if(trace.hovertemplate) return;\n\n var hoverinfo = pt.hi || trace.hoverinfo;\n\n var parts = hoverinfo === 'all' ?\n attributes.hoverinfo.flags :\n hoverinfo.split('+');\n\n var hasLocation = parts.indexOf('location') !== -1 && Array.isArray(trace.locations);\n var hasLon = (parts.indexOf('lon') !== -1);\n var hasLat = (parts.indexOf('lat') !== -1);\n var hasText = (parts.indexOf('text') !== -1);\n var text = [];\n\n function format(val) { return val + '\\u00B0'; }\n\n if(hasLocation) {\n text.push(pt.loc);\n } else if(hasLon && hasLat) {\n text.push('(' + format(pointData.latLabel) + ', ' + format(pointData.lonLabel) + ')');\n } else if(hasLon) {\n text.push(labels.lon + format(pointData.lonLabel));\n } else if(hasLat) {\n text.push(labels.lat + format(pointData.latLabel));\n }\n\n if(hasText) {\n fillText(pt, trace, text);\n }\n\n return text.join('
');\n}\n\n},{\"../../components/fx\":407,\"../../constants/numerical\":491,\"../../lib\":515,\"../scatter/get_trace_color\":946,\"./attributes\":978}],984:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n calcGeoJSON: _dereq_('./plot').calcGeoJSON,\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style'),\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n moduleType: 'trace',\n name: 'scattergeo',\n basePlotModule: _dereq_('../../plots/geo'),\n categories: ['geo', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../plots/geo\":598,\"../scatter/marker_colorbar\":954,\"../scatter/style\":960,\"./attributes\":978,\"./calc\":979,\"./defaults\":980,\"./event_data\":981,\"./format_labels\":982,\"./hover\":983,\"./plot\":985,\"./select\":986,\"./style\":987}],985:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Lib = _dereq_('../../lib');\nvar getTopojsonFeatures = _dereq_('../../lib/topojson_utils').getTopojsonFeatures;\nvar geoJsonUtils = _dereq_('../../lib/geojson_utils');\nvar geoUtils = _dereq_('../../lib/geo_location_utils');\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar subTypes = _dereq_('../scatter/subtypes');\nvar style = _dereq_('./style');\n\nfunction plot(gd, geo, calcData) {\n var scatterLayer = geo.layers.frontplot.select('.scatterlayer');\n var gTraces = Lib.makeTraceGroups(scatterLayer, calcData, 'trace scattergeo');\n\n function removeBADNUM(d, node) {\n if(d.lonlat[0] === BADNUM) {\n d3.select(node).remove();\n }\n }\n\n // TODO find a way to order the inner nodes on update\n gTraces.selectAll('*').remove();\n\n gTraces.each(function(calcTrace) {\n var s = d3.select(this);\n var trace = calcTrace[0].trace;\n\n if(subTypes.hasLines(trace) || trace.fill !== 'none') {\n var lineCoords = geoJsonUtils.calcTraceToLineCoords(calcTrace);\n\n var lineData = (trace.fill !== 'none') ?\n geoJsonUtils.makePolygon(lineCoords) :\n geoJsonUtils.makeLine(lineCoords);\n\n s.selectAll('path.js-line')\n .data([{geojson: lineData, trace: trace}])\n .enter().append('path')\n .classed('js-line', true)\n .style('stroke-miterlimit', 2);\n }\n\n if(subTypes.hasMarkers(trace)) {\n s.selectAll('path.point')\n .data(Lib.identity)\n .enter().append('path')\n .classed('point', true)\n .each(function(calcPt) { removeBADNUM(calcPt, this); });\n }\n\n if(subTypes.hasText(trace)) {\n s.selectAll('g')\n .data(Lib.identity)\n .enter().append('g')\n .append('text')\n .each(function(calcPt) { removeBADNUM(calcPt, this); });\n }\n\n // call style here within topojson request callback\n style(gd, calcTrace);\n });\n}\n\nfunction calcGeoJSON(calcTrace, fullLayout) {\n var trace = calcTrace[0].trace;\n var geoLayout = fullLayout[trace.geo];\n var geo = geoLayout._subplot;\n var len = trace._length;\n var i, calcPt;\n\n if(Array.isArray(trace.locations)) {\n var locationmode = trace.locationmode;\n var features = locationmode === 'geojson-id' ?\n geoUtils.extractTraceFeature(calcTrace) :\n getTopojsonFeatures(trace, geo.topojson);\n\n for(i = 0; i < len; i++) {\n calcPt = calcTrace[i];\n\n var feature = locationmode === 'geojson-id' ?\n calcPt.fOut :\n geoUtils.locationToFeature(locationmode, calcPt.loc, features);\n\n calcPt.lonlat = feature ? feature.properties.ct : [BADNUM, BADNUM];\n }\n }\n\n var opts = {padded: true};\n var lonArray;\n var latArray;\n\n if(geoLayout.fitbounds === 'geojson' && trace.locationmode === 'geojson-id') {\n var bboxGeojson = geoUtils.computeBbox(geoUtils.getTraceGeojson(trace));\n lonArray = [bboxGeojson[0], bboxGeojson[2]];\n latArray = [bboxGeojson[1], bboxGeojson[3]];\n } else {\n lonArray = new Array(len);\n latArray = new Array(len);\n for(i = 0; i < len; i++) {\n calcPt = calcTrace[i];\n lonArray[i] = calcPt.lonlat[0];\n latArray[i] = calcPt.lonlat[1];\n }\n\n opts.ppad = calcMarkerSize(trace, len);\n }\n\n trace._extremes.lon = findExtremes(geoLayout.lonaxis._ax, lonArray, opts);\n trace._extremes.lat = findExtremes(geoLayout.lataxis._ax, latArray, opts);\n}\n\nmodule.exports = {\n calcGeoJSON: calcGeoJSON,\n plot: plot\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../lib/geo_location_utils\":508,\"../../lib/geojson_utils\":509,\"../../lib/topojson_utils\":544,\"../../plots/cartesian/autorange\":565,\"../scatter/calc\":937,\"../scatter/subtypes\":961,\"./style\":987,\"@plotly/d3\":58}],986:[function(_dereq_,module,exports){\n'use strict';\n\nvar subtypes = _dereq_('../scatter/subtypes');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n\n var di, lonlat, x, y, i;\n\n var hasOnlyLines = (!subtypes.hasMarkers(trace) && !subtypes.hasText(trace));\n if(hasOnlyLines) return [];\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n di = cd[i];\n lonlat = di.lonlat;\n\n // some projection types can't handle BADNUMs\n if(lonlat[0] === BADNUM) continue;\n\n x = xa.c2p(lonlat);\n y = ya.c2p(lonlat);\n\n if(selectionTester.contains([x, y], null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n lon: lonlat[0],\n lat: lonlat[1]\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n\n return selection;\n};\n\n},{\"../../constants/numerical\":491,\"../scatter/subtypes\":961}],987:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\n\nvar scatterStyle = _dereq_('../scatter/style');\nvar stylePoints = scatterStyle.stylePoints;\nvar styleText = scatterStyle.styleText;\n\nmodule.exports = function style(gd, calcTrace) {\n if(calcTrace) styleTrace(gd, calcTrace);\n};\n\nfunction styleTrace(gd, calcTrace) {\n var trace = calcTrace[0].trace;\n var s = calcTrace[0].node3;\n\n s.style('opacity', calcTrace[0].trace.opacity);\n\n stylePoints(s, trace, gd);\n styleText(s, trace, gd);\n\n // this part is incompatible with Drawing.lineGroupStyle\n s.selectAll('path.js-line')\n .style('fill', 'none')\n .each(function(d) {\n var path = d3.select(this);\n var trace = d.trace;\n var line = trace.line || {};\n\n path.call(Color.stroke, line.color)\n .call(Drawing.dashLine, line.dash || '', line.width || 0);\n\n if(trace.fill !== 'none') {\n path.call(Color.fill, trace.fillcolor);\n }\n });\n}\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../scatter/style\":960,\"@plotly/d3\":58}],988:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar sortObjectKeys = _dereq_('../../lib/sort_object_keys');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar DASHES = _dereq_('./constants').DASHES;\n\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar attrs = module.exports = overrideAll({\n x: scatterAttrs.x,\n x0: scatterAttrs.x0,\n dx: scatterAttrs.dx,\n y: scatterAttrs.y,\n y0: scatterAttrs.y0,\n dy: scatterAttrs.dy,\n\n xperiod: scatterAttrs.xperiod,\n yperiod: scatterAttrs.yperiod,\n xperiod0: scatterAttrs.xperiod0,\n yperiod0: scatterAttrs.yperiod0,\n xperiodalignment: scatterAttrs.xperiodalignment,\n yperiodalignment: scatterAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n text: scatterAttrs.text,\n hovertext: scatterAttrs.hovertext,\n\n textposition: scatterAttrs.textposition,\n textfont: scatterAttrs.textfont,\n\n mode: {\n valType: 'flaglist',\n flags: ['lines', 'markers', 'text'],\n extras: ['none'],\n },\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n shape: {\n valType: 'enumerated',\n values: ['linear', 'hv', 'vh', 'hvh', 'vhv'],\n dflt: 'linear',\n editType: 'plot',\n },\n dash: {\n valType: 'enumerated',\n values: sortObjectKeys(DASHES),\n dflt: 'solid',\n }\n },\n marker: extendFlat({}, colorScaleAttrs('marker'), {\n symbol: scatterMarkerAttrs.symbol,\n angle: scatterMarkerAttrs.angle,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n opacity: scatterMarkerAttrs.opacity,\n colorbar: scatterMarkerAttrs.colorbar,\n line: extendFlat({}, colorScaleAttrs('marker.line'), {\n width: scatterMarkerLineAttrs.width\n })\n }),\n connectgaps: scatterAttrs.connectgaps,\n fill: extendFlat({}, scatterAttrs.fill, {dflt: 'none'}),\n fillcolor: scatterAttrs.fillcolor,\n\n // no hoveron\n\n selected: {\n marker: scatterAttrs.selected.marker,\n textfont: scatterAttrs.selected.textfont\n },\n unselected: {\n marker: scatterAttrs.unselected.marker,\n textfont: scatterAttrs.unselected.textfont\n },\n\n opacity: baseAttrs.opacity\n\n}, 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.x0.editType = attrs.y0.editType = 'calc+clearAxisTypes';\nattrs.hovertemplate = scatterAttrs.hovertemplate;\nattrs.texttemplate = scatterAttrs.texttemplate;\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../lib/sort_object_keys\":538,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../scatter/attributes\":936,\"./constants\":991}],989:[function(_dereq_,module,exports){\n'use strict';\n\nvar hover = _dereq_('./hover');\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scattergl',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['gl', 'regl', 'cartesian', 'symbols', 'errorBarsOK', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../scatter/cross_trace_defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n hoverPoints: hover.hoverPoints,\n selectPoints: _dereq_('./select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../scatter/cross_trace_defaults\":942,\"../scatter/marker_colorbar\":954,\"./attributes\":988,\"./calc\":990,\"./defaults\":993,\"./format_labels\":995,\"./hover\":997,\"./select\":1001}],990:[function(_dereq_,module,exports){\n'use strict';\n\nvar cluster = _dereq_('@plotly/point-cluster');\n\nvar Lib = _dereq_('../../lib');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\nvar findExtremes = _dereq_('../../plots/cartesian/autorange').findExtremes;\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\n\nvar scatterCalc = _dereq_('../scatter/calc');\nvar calcMarkerSize = scatterCalc.calcMarkerSize;\nvar calcAxisExpansion = scatterCalc.calcAxisExpansion;\nvar setFirstScatter = scatterCalc.setFirstScatter;\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar convert = _dereq_('./convert');\nvar sceneUpdate = _dereq_('./scene_update');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar TOO_MANY_POINTS = _dereq_('./constants').TOO_MANY_POINTS;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var xa = trace._xA = AxisIDs.getFromId(gd, trace.xaxis, 'x');\n var ya = trace._yA = AxisIDs.getFromId(gd, trace.yaxis, 'y');\n\n var subplot = fullLayout._plots[trace.xaxis + trace.yaxis];\n var len = trace._length;\n var hasTooManyPoints = len >= TOO_MANY_POINTS;\n var len2 = len * 2;\n var stash = {};\n var i;\n\n var origX = xa.makeCalcdata(trace, 'x');\n var origY = ya.makeCalcdata(trace, 'y');\n var xObj = alignPeriod(trace, xa, 'x', origX);\n var yObj = alignPeriod(trace, ya, 'y', origY);\n var x = xObj.vals;\n var y = yObj.vals;\n trace._x = x;\n trace._y = y;\n\n if(trace.xperiodalignment) {\n trace._origX = origX;\n trace._xStarts = xObj.starts;\n trace._xEnds = xObj.ends;\n }\n if(trace.yperiodalignment) {\n trace._origY = origY;\n trace._yStarts = yObj.starts;\n trace._yEnds = yObj.ends;\n }\n\n // we need hi-precision for scatter2d,\n // regl-scatter2d uses NaNs for bad/missing values\n var positions = new Array(len2);\n var _ids = new Array(len);\n for(i = 0; i < len; i++) {\n positions[i * 2] = x[i] === BADNUM ? NaN : x[i];\n positions[i * 2 + 1] = y[i] === BADNUM ? NaN : y[i];\n // Pre-compute ids.\n _ids[i] = i;\n }\n\n if(xa.type === 'log') {\n for(i = 0; i < len2; i += 2) {\n positions[i] = xa.c2l(positions[i]);\n }\n }\n if(ya.type === 'log') {\n for(i = 1; i < len2; i += 2) {\n positions[i] = ya.c2l(positions[i]);\n }\n }\n\n // we don't build a tree for log axes since it takes long to convert log2px\n // and it is also\n if(hasTooManyPoints && (xa.type !== 'log' && ya.type !== 'log')) {\n // FIXME: delegate this to webworker\n stash.tree = cluster(positions);\n } else {\n stash.ids = _ids;\n }\n\n // create scene options and scene\n calcColorscale(gd, trace);\n var opts = sceneOptions(gd, subplot, trace, positions, x, y);\n var scene = sceneUpdate(gd, subplot);\n\n // Reuse SVG scatter axis expansion routine.\n // For graphs with very large number of points and array marker.size,\n // use average marker size instead to speed things up.\n setFirstScatter(fullLayout, trace);\n var ppad;\n if(!hasTooManyPoints) {\n ppad = calcMarkerSize(trace, len);\n } else if(opts.marker) {\n ppad = opts.marker.sizeAvg || Math.max(opts.marker.size, 3);\n }\n calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);\n if(opts.errorX) expandForErrorBars(trace, xa, opts.errorX);\n if(opts.errorY) expandForErrorBars(trace, ya, opts.errorY);\n\n // set flags to create scene renderers\n if(opts.fill && !scene.fill2d) scene.fill2d = true;\n if(opts.marker && !scene.scatter2d) scene.scatter2d = true;\n if(opts.line && !scene.line2d) scene.line2d = true;\n if((opts.errorX || opts.errorY) && !scene.error2d) scene.error2d = true;\n if(opts.text && !scene.glText) scene.glText = true;\n if(opts.marker) opts.marker.snap = len;\n\n scene.lineOptions.push(opts.line);\n scene.errorXOptions.push(opts.errorX);\n scene.errorYOptions.push(opts.errorY);\n scene.fillOptions.push(opts.fill);\n scene.markerOptions.push(opts.marker);\n scene.markerSelectedOptions.push(opts.markerSel);\n scene.markerUnselectedOptions.push(opts.markerUnsel);\n scene.textOptions.push(opts.text);\n scene.textSelectedOptions.push(opts.textSel);\n scene.textUnselectedOptions.push(opts.textUnsel);\n scene.selectBatch.push([]);\n scene.unselectBatch.push([]);\n\n stash._scene = scene;\n stash.index = scene.count;\n stash.x = x;\n stash.y = y;\n stash.positions = positions;\n scene.count++;\n\n return [{x: false, y: false, t: stash, trace: trace}];\n};\n\nfunction expandForErrorBars(trace, ax, opts) {\n var extremes = trace._extremes[ax._id];\n var errExt = findExtremes(ax, opts._bnds, {padded: true});\n extremes.min = extremes.min.concat(errExt.min);\n extremes.max = extremes.max.concat(errExt.max);\n}\n\nfunction sceneOptions(gd, subplot, trace, positions, x, y) {\n var opts = convert.style(gd, trace);\n\n if(opts.marker) {\n opts.marker.positions = positions;\n }\n\n if(opts.line && positions.length > 1) {\n Lib.extendFlat(\n opts.line,\n convert.linePositions(gd, trace, positions)\n );\n }\n\n if(opts.errorX || opts.errorY) {\n var errors = convert.errorBarPositions(gd, trace, positions, x, y);\n\n if(opts.errorX) {\n Lib.extendFlat(opts.errorX, errors.x);\n }\n if(opts.errorY) {\n Lib.extendFlat(opts.errorY, errors.y);\n }\n }\n\n if(opts.text) {\n Lib.extendFlat(\n opts.text,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.marker)\n );\n Lib.extendFlat(\n opts.textSel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerSel)\n );\n Lib.extendFlat(\n opts.textUnsel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerUnsel)\n );\n }\n\n return opts;\n}\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/autorange\":565,\"../../plots/cartesian/axis_ids\":570,\"../scatter/calc\":937,\"../scatter/colorscale_calc\":939,\"./constants\":991,\"./convert\":992,\"./scene_update\":1000,\"@plotly/point-cluster\":59}],991:[function(_dereq_,module,exports){\n'use strict';\n\nvar SYMBOL_SIZE = 20;\n\nmodule.exports = {\n TOO_MANY_POINTS: 1e5,\n\n SYMBOL_SDF_SIZE: 200,\n SYMBOL_SIZE: SYMBOL_SIZE,\n SYMBOL_STROKE: SYMBOL_SIZE / 20,\n\n DOT_RE: /-dot/,\n OPEN_RE: /-open/,\n\n DASHES: {\n solid: [1],\n dot: [1, 1],\n dash: [4, 1],\n longdash: [8, 1],\n dashdot: [4, 1, 1, 1],\n longdashdot: [8, 1, 1, 1]\n }\n};\n\n},{}],992:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar svgSdf = _dereq_('svg-path-sdf');\nvar rgba = _dereq_('color-normalize');\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\n\nvar formatColor = _dereq_('../../lib/gl_format_color').formatColor;\nvar subTypes = _dereq_('../scatter/subtypes');\nvar makeBubbleSizeFn = _dereq_('../scatter/make_bubble_size_func');\n\nvar helpers = _dereq_('./helpers');\nvar constants = _dereq_('./constants');\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\n\nvar TEXTOFFSETSIGN = {\n start: 1, left: 1, end: -1, right: -1, middle: 0, center: 0, bottom: 1, top: -1\n};\n\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nfunction convertStyle(gd, trace) {\n var i;\n\n var opts = {\n marker: undefined,\n markerSel: undefined,\n markerUnsel: undefined,\n line: undefined,\n fill: undefined,\n errorX: undefined,\n errorY: undefined,\n text: undefined,\n textSel: undefined,\n textUnsel: undefined\n };\n\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n\n if(trace.visible !== true) return opts;\n\n if(subTypes.hasText(trace)) {\n opts.text = convertTextStyle(gd, trace);\n opts.textSel = convertTextSelection(gd, trace, trace.selected);\n opts.textUnsel = convertTextSelection(gd, trace, trace.unselected);\n }\n\n if(subTypes.hasMarkers(trace)) {\n opts.marker = convertMarkerStyle(gd, trace);\n opts.markerSel = convertMarkerSelection(gd, trace, trace.selected);\n opts.markerUnsel = convertMarkerSelection(gd, trace, trace.unselected);\n\n if(!trace.unselected && Lib.isArrayOrTypedArray(trace.marker.opacity)) {\n var mo = trace.marker.opacity;\n opts.markerUnsel.opacity = new Array(mo.length);\n for(i = 0; i < mo.length; i++) {\n opts.markerUnsel.opacity[i] = DESELECTDIM * mo[i];\n }\n }\n }\n\n if(subTypes.hasLines(trace)) {\n opts.line = {\n overlay: true,\n thickness: trace.line.width * plotGlPixelRatio,\n color: trace.line.color,\n opacity: trace.opacity\n };\n\n var dashes = (constants.DASHES[trace.line.dash] || [1]).slice();\n for(i = 0; i < dashes.length; ++i) {\n dashes[i] *= trace.line.width * plotGlPixelRatio;\n }\n opts.line.dashes = dashes;\n }\n\n if(trace.error_x && trace.error_x.visible) {\n opts.errorX = convertErrorBarStyle(trace, trace.error_x, plotGlPixelRatio);\n }\n\n if(trace.error_y && trace.error_y.visible) {\n opts.errorY = convertErrorBarStyle(trace, trace.error_y, plotGlPixelRatio);\n }\n\n if(!!trace.fill && trace.fill !== 'none') {\n opts.fill = {\n closed: true,\n fill: trace.fillcolor,\n thickness: 0\n };\n }\n\n return opts;\n}\n\nfunction convertTextStyle(gd, trace) {\n var fullLayout = gd._fullLayout;\n var count = trace._length;\n var textfontIn = trace.textfont;\n var textpositionIn = trace.textposition;\n var textPos = Array.isArray(textpositionIn) ? textpositionIn : [textpositionIn];\n var tfc = textfontIn.color;\n var tfs = textfontIn.size;\n var tff = textfontIn.family;\n var optsOut = {};\n var i;\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n\n var texttemplate = trace.texttemplate;\n if(texttemplate) {\n optsOut.text = [];\n\n var d3locale = fullLayout._d3locale;\n var isArray = Array.isArray(texttemplate);\n var N = isArray ? Math.min(texttemplate.length, count) : count;\n var txt = isArray ?\n function(i) { return texttemplate[i]; } :\n function() { return texttemplate; };\n\n for(i = 0; i < N; i++) {\n var d = {i: i};\n var labels = trace._module.formatLabels(d, trace, fullLayout);\n var pointValues = {};\n appendArrayPointValue(pointValues, trace, i);\n var meta = trace._meta || {};\n optsOut.text.push(Lib.texttemplateString(txt(i), labels, d3locale, pointValues, d, meta));\n }\n } else {\n if(Array.isArray(trace.text) && trace.text.length < count) {\n // if text array is shorter, we'll need to append to it, so let's slice to prevent mutating\n optsOut.text = trace.text.slice();\n } else {\n optsOut.text = trace.text;\n }\n }\n // pad text array with empty strings\n if(Array.isArray(optsOut.text)) {\n for(i = optsOut.text.length; i < count; i++) {\n optsOut.text[i] = '';\n }\n }\n\n optsOut.opacity = trace.opacity;\n optsOut.font = {};\n optsOut.align = [];\n optsOut.baseline = [];\n\n for(i = 0; i < textPos.length; i++) {\n var tp = textPos[i].split(/\\s+/);\n\n switch(tp[1]) {\n case 'left':\n optsOut.align.push('right');\n break;\n case 'right':\n optsOut.align.push('left');\n break;\n default:\n optsOut.align.push(tp[1]);\n }\n switch(tp[0]) {\n case 'top':\n optsOut.baseline.push('bottom');\n break;\n case 'bottom':\n optsOut.baseline.push('top');\n break;\n default:\n optsOut.baseline.push(tp[0]);\n }\n }\n\n if(Array.isArray(tfc)) {\n optsOut.color = new Array(count);\n for(i = 0; i < count; i++) {\n optsOut.color[i] = tfc[i];\n }\n } else {\n optsOut.color = tfc;\n }\n\n if(Lib.isArrayOrTypedArray(tfs) || Array.isArray(tff)) {\n // if any textfont param is array - make render a batch\n optsOut.font = new Array(count);\n for(i = 0; i < count; i++) {\n var fonti = optsOut.font[i] = {};\n\n fonti.size = (\n Lib.isTypedArray(tfs) ? tfs[i] :\n Array.isArray(tfs) ? (\n isNumeric(tfs[i]) ? tfs[i] : 0\n ) : tfs\n ) * plotGlPixelRatio;\n\n fonti.family = Array.isArray(tff) ? tff[i] : tff;\n }\n } else {\n // if both are single values, make render fast single-value\n optsOut.font = {size: tfs * plotGlPixelRatio, family: tff};\n }\n\n return optsOut;\n}\n\n\nfunction convertMarkerStyle(gd, trace) {\n var count = trace._length;\n var optsIn = trace.marker;\n var optsOut = {};\n var i;\n\n var multiSymbol = Lib.isArrayOrTypedArray(optsIn.symbol);\n var multiAngle = Lib.isArrayOrTypedArray(optsIn.angle);\n var multiColor = Lib.isArrayOrTypedArray(optsIn.color);\n var multiLineColor = Lib.isArrayOrTypedArray(optsIn.line.color);\n var multiOpacity = Lib.isArrayOrTypedArray(optsIn.opacity);\n var multiSize = Lib.isArrayOrTypedArray(optsIn.size);\n var multiLineWidth = Lib.isArrayOrTypedArray(optsIn.line.width);\n\n var isOpen;\n if(!multiSymbol) isOpen = helpers.isOpenSymbol(optsIn.symbol);\n\n // prepare colors\n if(multiSymbol || multiColor || multiLineColor || multiOpacity || multiAngle) {\n optsOut.symbols = new Array(count);\n optsOut.angles = new Array(count);\n optsOut.colors = new Array(count);\n optsOut.borderColors = new Array(count);\n\n var symbols = optsIn.symbol;\n var angles = optsIn.angle;\n var colors = formatColor(optsIn, optsIn.opacity, count);\n var borderColors = formatColor(optsIn.line, optsIn.opacity, count);\n\n if(!Array.isArray(borderColors[0])) {\n var borderColor = borderColors;\n borderColors = Array(count);\n for(i = 0; i < count; i++) {\n borderColors[i] = borderColor;\n }\n }\n if(!Array.isArray(colors[0])) {\n var color = colors;\n colors = Array(count);\n for(i = 0; i < count; i++) {\n colors[i] = color;\n }\n }\n if(!Array.isArray(symbols)) {\n var symbol = symbols;\n symbols = Array(count);\n for(i = 0; i < count; i++) {\n symbols[i] = symbol;\n }\n }\n if(!Array.isArray(angles)) {\n var angle = angles;\n angles = Array(count);\n for(i = 0; i < count; i++) {\n angles[i] = angle;\n }\n }\n\n optsOut.symbols = symbols;\n optsOut.angles = angles;\n optsOut.colors = colors;\n optsOut.borderColors = borderColors;\n\n for(i = 0; i < count; i++) {\n if(multiSymbol) {\n isOpen = helpers.isOpenSymbol(optsIn.symbol[i]);\n }\n if(isOpen) {\n borderColors[i] = colors[i].slice();\n colors[i] = colors[i].slice();\n colors[i][3] = 0;\n }\n }\n\n optsOut.opacity = trace.opacity;\n\n optsOut.markers = new Array(count);\n for(i = 0; i < count; i++) {\n optsOut.markers[i] = getSymbolSdf({\n mx: optsOut.symbols[i],\n ma: optsOut.angles[i]\n }, trace);\n }\n } else {\n if(isOpen) {\n optsOut.color = rgba(optsIn.color, 'uint8');\n optsOut.color[3] = 0;\n optsOut.borderColor = rgba(optsIn.color, 'uint8');\n } else {\n optsOut.color = rgba(optsIn.color, 'uint8');\n optsOut.borderColor = rgba(optsIn.line.color, 'uint8');\n }\n\n optsOut.opacity = trace.opacity * optsIn.opacity;\n\n optsOut.marker = getSymbolSdf({\n mx: optsIn.symbol,\n ma: optsIn.angle\n }, trace);\n }\n\n // prepare sizes\n var sizeFactor = 1;\n var markerSizeFunc = makeBubbleSizeFn(trace, sizeFactor);\n var s;\n\n if(multiSize || multiLineWidth) {\n var sizes = optsOut.sizes = new Array(count);\n var borderSizes = optsOut.borderSizes = new Array(count);\n var sizeTotal = 0;\n var sizeAvg;\n\n if(multiSize) {\n for(i = 0; i < count; i++) {\n sizes[i] = markerSizeFunc(optsIn.size[i]);\n sizeTotal += sizes[i];\n }\n sizeAvg = sizeTotal / count;\n } else {\n s = markerSizeFunc(optsIn.size);\n for(i = 0; i < count; i++) {\n sizes[i] = s;\n }\n }\n\n // See https://github.com/plotly/plotly.js/pull/1781#discussion_r121820798\n if(multiLineWidth) {\n for(i = 0; i < count; i++) {\n borderSizes[i] = optsIn.line.width[i];\n }\n } else {\n s = optsIn.line.width;\n for(i = 0; i < count; i++) {\n borderSizes[i] = s;\n }\n }\n\n optsOut.sizeAvg = sizeAvg;\n } else {\n optsOut.size = markerSizeFunc(optsIn && optsIn.size || 10);\n optsOut.borderSizes = markerSizeFunc(optsIn.line.width);\n }\n\n return optsOut;\n}\n\nfunction convertMarkerSelection(gd, trace, target) {\n var optsIn = trace.marker;\n var optsOut = {};\n\n if(!target) return optsOut;\n\n if(target.marker && target.marker.symbol) {\n optsOut = convertMarkerStyle(gd, Lib.extendFlat({}, optsIn, target.marker));\n } else if(target.marker) {\n if(target.marker.size) optsOut.size = target.marker.size;\n if(target.marker.color) optsOut.colors = target.marker.color;\n if(target.marker.opacity !== undefined) optsOut.opacity = target.marker.opacity;\n }\n\n return optsOut;\n}\n\nfunction convertTextSelection(gd, trace, target) {\n var optsOut = {};\n\n if(!target) return optsOut;\n\n if(target.textfont) {\n var optsIn = {\n opacity: 1,\n text: trace.text,\n texttemplate: trace.texttemplate,\n textposition: trace.textposition,\n textfont: Lib.extendFlat({}, trace.textfont)\n };\n if(target.textfont) {\n Lib.extendFlat(optsIn.textfont, target.textfont);\n }\n optsOut = convertTextStyle(gd, optsIn);\n }\n\n return optsOut;\n}\n\nfunction convertErrorBarStyle(trace, target, plotGlPixelRatio) {\n var optsOut = {\n capSize: target.width * 2 * plotGlPixelRatio,\n lineWidth: target.thickness * plotGlPixelRatio,\n color: target.color\n };\n\n if(target.copy_ystyle) {\n optsOut = trace.error_y;\n }\n\n return optsOut;\n}\n\nvar SYMBOL_SDF_SIZE = constants.SYMBOL_SDF_SIZE;\nvar SYMBOL_SIZE = constants.SYMBOL_SIZE;\nvar SYMBOL_STROKE = constants.SYMBOL_STROKE;\nvar SYMBOL_SDF = {};\nvar SYMBOL_SVG_CIRCLE = Drawing.symbolFuncs[0](SYMBOL_SIZE * 0.05);\n\nfunction getSymbolSdf(d, trace) {\n var symbol = d.mx;\n if(symbol === 'circle') return null;\n\n var symbolPath, symbolSdf;\n var symbolNumber = Drawing.symbolNumber(symbol);\n var symbolFunc = Drawing.symbolFuncs[symbolNumber % 100];\n var symbolNoDot = !!Drawing.symbolNoDot[symbolNumber % 100];\n var symbolNoFill = !!Drawing.symbolNoFill[symbolNumber % 100];\n\n var isDot = helpers.isDotSymbol(symbol);\n\n // until we may handle angles in shader?\n if(d.ma) symbol += '_' + d.ma;\n\n // get symbol sdf from cache or generate it\n if(SYMBOL_SDF[symbol]) return SYMBOL_SDF[symbol];\n\n var angle = Drawing.getMarkerAngle(d, trace);\n if(isDot && !symbolNoDot) {\n symbolPath = symbolFunc(SYMBOL_SIZE * 1.1, angle) + SYMBOL_SVG_CIRCLE;\n } else {\n symbolPath = symbolFunc(SYMBOL_SIZE, angle);\n }\n\n symbolSdf = svgSdf(symbolPath, {\n w: SYMBOL_SDF_SIZE,\n h: SYMBOL_SDF_SIZE,\n viewBox: [-SYMBOL_SIZE, -SYMBOL_SIZE, SYMBOL_SIZE, SYMBOL_SIZE],\n stroke: symbolNoFill ? SYMBOL_STROKE : -SYMBOL_STROKE\n });\n\n SYMBOL_SDF[symbol] = symbolSdf;\n\n return symbolSdf || null;\n}\n\nfunction convertLinePositions(gd, trace, positions) {\n var len = positions.length;\n var count = len / 2;\n var linePositions;\n var i;\n\n if(subTypes.hasLines(trace) && count) {\n if(trace.line.shape === 'hv') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1])) {\n linePositions.push(NaN, NaN, NaN, NaN);\n } else {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n if(!isNaN(positions[i * 2 + 2]) && !isNaN(positions[i * 2 + 3])) {\n linePositions.push(positions[i * 2 + 2], positions[i * 2 + 1]);\n } else {\n linePositions.push(NaN, NaN);\n }\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else if(trace.line.shape === 'hvh') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1]) || isNaN(positions[i * 2 + 2]) || isNaN(positions[i * 2 + 3])) {\n if(!isNaN(positions[i * 2]) && !isNaN(positions[i * 2 + 1])) {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n } else {\n linePositions.push(NaN, NaN);\n }\n linePositions.push(NaN, NaN);\n } else {\n var midPtX = (positions[i * 2] + positions[i * 2 + 2]) / 2;\n linePositions.push(\n positions[i * 2],\n positions[i * 2 + 1],\n midPtX,\n positions[i * 2 + 1],\n midPtX,\n positions[i * 2 + 3]\n );\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else if(trace.line.shape === 'vhv') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1]) || isNaN(positions[i * 2 + 2]) || isNaN(positions[i * 2 + 3])) {\n if(!isNaN(positions[i * 2]) && !isNaN(positions[i * 2 + 1])) {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n } else {\n linePositions.push(NaN, NaN);\n }\n linePositions.push(NaN, NaN);\n } else {\n var midPtY = (positions[i * 2 + 1] + positions[i * 2 + 3]) / 2;\n linePositions.push(\n positions[i * 2],\n positions[i * 2 + 1],\n positions[i * 2],\n midPtY,\n positions[i * 2 + 2],\n midPtY\n );\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else if(trace.line.shape === 'vh') {\n linePositions = [];\n for(i = 0; i < count - 1; i++) {\n if(isNaN(positions[i * 2]) || isNaN(positions[i * 2 + 1])) {\n linePositions.push(NaN, NaN, NaN, NaN);\n } else {\n linePositions.push(positions[i * 2], positions[i * 2 + 1]);\n if(!isNaN(positions[i * 2 + 2]) && !isNaN(positions[i * 2 + 3])) {\n linePositions.push(positions[i * 2], positions[i * 2 + 3]);\n } else {\n linePositions.push(NaN, NaN);\n }\n }\n }\n linePositions.push(positions[len - 2], positions[len - 1]);\n } else {\n linePositions = positions;\n }\n }\n\n // If we have data with gaps, we ought to use rect joins\n // FIXME: get rid of this\n var hasNaN = false;\n for(i = 0; i < linePositions.length; i++) {\n if(isNaN(linePositions[i])) {\n hasNaN = true;\n break;\n }\n }\n\n var join = (hasNaN || linePositions.length > constants.TOO_MANY_POINTS) ? 'rect' :\n subTypes.hasMarkers(trace) ? 'rect' : 'round';\n\n // fill gaps\n if(hasNaN && trace.connectgaps) {\n var lastX = linePositions[0];\n var lastY = linePositions[1];\n\n for(i = 0; i < linePositions.length; i += 2) {\n if(isNaN(linePositions[i]) || isNaN(linePositions[i + 1])) {\n linePositions[i] = lastX;\n linePositions[i + 1] = lastY;\n } else {\n lastX = linePositions[i];\n lastY = linePositions[i + 1];\n }\n }\n }\n\n return {\n join: join,\n positions: linePositions\n };\n}\n\nfunction convertErrorBarPositions(gd, trace, positions, x, y) {\n var makeComputeError = Registry.getComponentMethod('errorbars', 'makeComputeError');\n var xa = AxisIDs.getFromId(gd, trace.xaxis, 'x');\n var ya = AxisIDs.getFromId(gd, trace.yaxis, 'y');\n var count = positions.length / 2;\n var out = {};\n\n function convertOneAxis(coords, ax) {\n var axLetter = ax._id.charAt(0);\n var opts = trace['error_' + axLetter];\n\n if(opts && opts.visible && (ax.type === 'linear' || ax.type === 'log')) {\n var computeError = makeComputeError(opts);\n var pOffset = {x: 0, y: 1}[axLetter];\n var eOffset = {x: [0, 1, 2, 3], y: [2, 3, 0, 1]}[axLetter];\n var errors = new Float64Array(4 * count);\n var minShoe = Infinity;\n var maxHat = -Infinity;\n\n for(var i = 0, j = 0; i < count; i++, j += 4) {\n var dc = coords[i];\n\n if(isNumeric(dc)) {\n var dl = positions[i * 2 + pOffset];\n var vals = computeError(dc, i);\n var lv = vals[0];\n var hv = vals[1];\n\n if(isNumeric(lv) && isNumeric(hv)) {\n var shoe = dc - lv;\n var hat = dc + hv;\n\n errors[j + eOffset[0]] = dl - ax.c2l(shoe);\n errors[j + eOffset[1]] = ax.c2l(hat) - dl;\n errors[j + eOffset[2]] = 0;\n errors[j + eOffset[3]] = 0;\n\n minShoe = Math.min(minShoe, dc - lv);\n maxHat = Math.max(maxHat, dc + hv);\n }\n }\n }\n\n out[axLetter] = {\n positions: positions,\n errors: errors,\n _bnds: [minShoe, maxHat]\n };\n }\n }\n\n convertOneAxis(x, xa);\n convertOneAxis(y, ya);\n return out;\n}\n\nfunction convertTextPosition(gd, trace, textOpts, markerOpts) {\n var count = trace._length;\n var out = {};\n var i;\n\n // corresponds to textPointPosition from component.drawing\n if(subTypes.hasMarkers(trace)) {\n var fontOpts = textOpts.font;\n var align = textOpts.align;\n var baseline = textOpts.baseline;\n out.offset = new Array(count);\n\n for(i = 0; i < count; i++) {\n var ms = markerOpts.sizes ? markerOpts.sizes[i] : markerOpts.size;\n var fs = Array.isArray(fontOpts) ? fontOpts[i].size : fontOpts.size;\n\n var a = Array.isArray(align) ?\n (align.length > 1 ? align[i] : align[0]) :\n align;\n var b = Array.isArray(baseline) ?\n (baseline.length > 1 ? baseline[i] : baseline[0]) :\n baseline;\n\n var hSign = TEXTOFFSETSIGN[a];\n var vSign = TEXTOFFSETSIGN[b];\n var xPad = ms ? ms / 0.8 + 1 : 0;\n var yPad = -vSign * xPad - vSign * 0.5;\n out.offset[i] = [hSign * xPad / fs, yPad / fs];\n }\n }\n\n return out;\n}\n\nmodule.exports = {\n style: convertStyle,\n\n markerStyle: convertMarkerStyle,\n markerSelection: convertMarkerSelection,\n\n linePositions: convertLinePositions,\n errorBarPositions: convertErrorBarPositions,\n textPosition: convertTextPosition\n};\n\n},{\"../../components/drawing\":389,\"../../components/fx/helpers\":403,\"../../constants/interactions\":490,\"../../lib\":515,\"../../lib/gl_format_color\":511,\"../../plots/cartesian/axis_ids\":570,\"../../registry\":647,\"../scatter/make_bubble_size_func\":953,\"../scatter/subtypes\":961,\"./constants\":991,\"./helpers\":996,\"color-normalize\":89,\"fast-isnumeric\":190,\"svg-path-sdf\":311}],993:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Registry = _dereq_('../../registry');\n\nvar helpers = _dereq_('./helpers');\nvar attributes = _dereq_('./attributes');\nvar constants = _dereq_('../scatter/constants');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var isOpen = traceIn.marker ? helpers.isOpenSymbol(traceIn.marker.symbol) : false;\n var isBubble = subTypes.isBubble(traceIn);\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n var defaultMode = len < constants.PTS_LINESONLY ? 'lines+markers' : 'lines';\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n coerce('connectgaps');\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('line.shape');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noAngleRef: true, noStandOff: true});\n coerce('marker.line.width', isOpen || isBubble ? 1 : 0);\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var lineColor = (traceOut.line || {}).color;\n var markerColor = (traceOut.marker || {}).color;\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'y'});\n errorBarsSupplyDefaults(traceIn, traceOut, lineColor || markerColor || defaultColor, {axis: 'x', inherit: 'y'});\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../../registry\":647,\"../scatter/constants\":940,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/marker_defaults\":955,\"../scatter/period_defaults\":956,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"../scatter/xy_defaults\":963,\"./attributes\":988,\"./helpers\":996}],994:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\n\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\n\nfunction styleTextSelection(cd) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var stash = cd0.t;\n var scene = stash._scene;\n var index = stash.index;\n var els = scene.selectBatch[index];\n var unels = scene.unselectBatch[index];\n var baseOpts = scene.textOptions[index];\n var selOpts = scene.textSelectedOptions[index] || {};\n var unselOpts = scene.textUnselectedOptions[index] || {};\n var opts = Lib.extendFlat({}, baseOpts);\n var i, j;\n\n if(els.length || unels.length) {\n var stc = selOpts.color;\n var utc = unselOpts.color;\n var base = baseOpts.color;\n var hasArrayBase = Array.isArray(base);\n opts.color = new Array(trace._length);\n\n for(i = 0; i < els.length; i++) {\n j = els[i];\n opts.color[j] = stc || (hasArrayBase ? base[j] : base);\n }\n for(i = 0; i < unels.length; i++) {\n j = unels[i];\n var basej = hasArrayBase ? base[j] : base;\n opts.color[j] = utc ? utc :\n stc ? basej : Color.addOpacity(basej, DESELECTDIM);\n }\n }\n\n scene.glText[index].update(opts);\n}\n\nmodule.exports = {\n styleTextSelection: styleTextSelection\n};\n\n},{\"../../components/color\":367,\"../../constants/interactions\":490,\"../../lib\":515}],995:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterFormatLabels = _dereq_('../scatter/format_labels');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var i = cdi.i;\n if(!('x' in cdi)) cdi.x = trace._x[i];\n if(!('y' in cdi)) cdi.y = trace._y[i];\n return scatterFormatLabels(cdi, trace, fullLayout);\n};\n\n},{\"../scatter/format_labels\":945}],996:[function(_dereq_,module,exports){\n'use strict';\n\nvar constants = _dereq_('./constants');\n\nexports.isOpenSymbol = function(symbol) {\n return (typeof symbol === 'string') ?\n constants.OPEN_RE.test(symbol) :\n symbol % 200 > 100;\n};\n\nexports.isDotSymbol = function(symbol) {\n return (typeof symbol === 'string') ?\n constants.DOT_RE.test(symbol) :\n symbol > 200;\n};\n\n},{\"./constants\":991}],997:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var stash = cd[0].t;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var x = stash.x;\n var y = stash.y;\n var xpx = xa.c2p(xval);\n var ypx = ya.c2p(yval);\n var maxDistance = pointData.distance;\n var ids;\n\n // FIXME: make sure this is a proper way to calc search radius\n if(stash.tree) {\n var xl = xa.p2c(xpx - maxDistance);\n var xr = xa.p2c(xpx + maxDistance);\n var yl = ya.p2c(ypx - maxDistance);\n var yr = ya.p2c(ypx + maxDistance);\n\n if(hovermode === 'x') {\n ids = stash.tree.range(\n Math.min(xl, xr), Math.min(ya._rl[0], ya._rl[1]),\n Math.max(xl, xr), Math.max(ya._rl[0], ya._rl[1])\n );\n } else {\n ids = stash.tree.range(\n Math.min(xl, xr), Math.min(yl, yr),\n Math.max(xl, xr), Math.max(yl, yr)\n );\n }\n } else {\n ids = stash.ids;\n }\n\n // pick the id closest to the point\n // note that point possibly may not be found\n var k, closestId, ptx, pty, i, dx, dy, dist, dxy;\n\n var minDist = maxDistance;\n if(hovermode === 'x') {\n var xPeriod = !!trace.xperiodalignment;\n var yPeriod = !!trace.yperiodalignment;\n\n for(i = 0; i < ids.length; i++) {\n k = ids[i];\n ptx = x[k];\n\n dx = Math.abs(xa.c2p(ptx) - xpx);\n if(xPeriod) {\n var x0 = xa.c2p(trace._xStarts[k]);\n var x1 = xa.c2p(trace._xEnds[k]);\n\n dx = (\n xpx >= Math.min(x0, x1) &&\n xpx <= Math.max(x0, x1)\n ) ? 0 : Infinity;\n }\n\n if(dx < minDist) {\n minDist = dx;\n pty = y[k];\n dy = ya.c2p(pty) - ypx;\n\n if(yPeriod) {\n var y0 = ya.c2p(trace._yStarts[k]);\n var y1 = ya.c2p(trace._yEnds[k]);\n\n dy = (\n ypx >= Math.min(y0, y1) &&\n ypx <= Math.max(y0, y1)\n ) ? 0 : Infinity;\n }\n\n dxy = Math.sqrt(dx * dx + dy * dy);\n closestId = ids[i];\n }\n }\n } else {\n for(i = ids.length - 1; i > -1; i--) {\n k = ids[i];\n ptx = x[k];\n pty = y[k];\n dx = xa.c2p(ptx) - xpx;\n dy = ya.c2p(pty) - ypx;\n\n dist = Math.sqrt(dx * dx + dy * dy);\n if(dist < minDist) {\n minDist = dxy = dist;\n closestId = k;\n }\n }\n }\n\n pointData.index = closestId;\n pointData.distance = minDist;\n pointData.dxy = dxy;\n\n if(closestId === undefined) return [pointData];\n\n return [calcHover(pointData, x, y, trace)];\n}\n\nfunction calcHover(pointData, x, y, trace) {\n var xa = pointData.xa;\n var ya = pointData.ya;\n var minDist = pointData.distance;\n var dxy = pointData.dxy;\n var id = pointData.index;\n\n // the closest data point\n var di = {\n pointNumber: id,\n x: x[id],\n y: y[id]\n };\n\n // that is single-item arrays_to_calcdata excerpt, since we are doing it for a single point and we don't have to do it beforehead for 1e6 points\n di.tx = Array.isArray(trace.text) ? trace.text[id] : trace.text;\n di.htx = Array.isArray(trace.hovertext) ? trace.hovertext[id] : trace.hovertext;\n di.data = Array.isArray(trace.customdata) ? trace.customdata[id] : trace.customdata;\n di.tp = Array.isArray(trace.textposition) ? trace.textposition[id] : trace.textposition;\n\n var font = trace.textfont;\n if(font) {\n di.ts = Lib.isArrayOrTypedArray(font.size) ? font.size[id] : font.size;\n di.tc = Array.isArray(font.color) ? font.color[id] : font.color;\n di.tf = Array.isArray(font.family) ? font.family[id] : font.family;\n }\n\n var marker = trace.marker;\n if(marker) {\n di.ms = Lib.isArrayOrTypedArray(marker.size) ? marker.size[id] : marker.size;\n di.mo = Lib.isArrayOrTypedArray(marker.opacity) ? marker.opacity[id] : marker.opacity;\n di.mx = Lib.isArrayOrTypedArray(marker.symbol) ? marker.symbol[id] : marker.symbol;\n di.ma = Lib.isArrayOrTypedArray(marker.angle) ? marker.angle[id] : marker.angle;\n di.mc = Lib.isArrayOrTypedArray(marker.color) ? marker.color[id] : marker.color;\n }\n\n var line = marker && marker.line;\n if(line) {\n di.mlc = Array.isArray(line.color) ? line.color[id] : line.color;\n di.mlw = Lib.isArrayOrTypedArray(line.width) ? line.width[id] : line.width;\n }\n\n var grad = marker && marker.gradient;\n if(grad && grad.type !== 'none') {\n di.mgt = Array.isArray(grad.type) ? grad.type[id] : grad.type;\n di.mgc = Array.isArray(grad.color) ? grad.color[id] : grad.color;\n }\n\n var xp = xa.c2p(di.x, true);\n var yp = ya.c2p(di.y, true);\n var rad = di.mrc || 1;\n\n var hoverlabel = trace.hoverlabel;\n\n if(hoverlabel) {\n di.hbg = Array.isArray(hoverlabel.bgcolor) ? hoverlabel.bgcolor[id] : hoverlabel.bgcolor;\n di.hbc = Array.isArray(hoverlabel.bordercolor) ? hoverlabel.bordercolor[id] : hoverlabel.bordercolor;\n di.hts = Lib.isArrayOrTypedArray(hoverlabel.font.size) ? hoverlabel.font.size[id] : hoverlabel.font.size;\n di.htc = Array.isArray(hoverlabel.font.color) ? hoverlabel.font.color[id] : hoverlabel.font.color;\n di.htf = Array.isArray(hoverlabel.font.family) ? hoverlabel.font.family[id] : hoverlabel.font.family;\n di.hnl = Lib.isArrayOrTypedArray(hoverlabel.namelength) ? hoverlabel.namelength[id] : hoverlabel.namelength;\n }\n var hoverinfo = trace.hoverinfo;\n if(hoverinfo) {\n di.hi = Array.isArray(hoverinfo) ? hoverinfo[id] : hoverinfo;\n }\n\n var hovertemplate = trace.hovertemplate;\n if(hovertemplate) {\n di.ht = Array.isArray(hovertemplate) ? hovertemplate[id] : hovertemplate;\n }\n\n var fakeCd = {};\n fakeCd[pointData.index] = di;\n\n var origX = trace._origX;\n var origY = trace._origY;\n\n var pointData2 = Lib.extendFlat({}, pointData, {\n color: getTraceColor(trace, di),\n\n x0: xp - rad,\n x1: xp + rad,\n xLabelVal: origX ? origX[id] : di.x,\n\n y0: yp - rad,\n y1: yp + rad,\n yLabelVal: origY ? origY[id] : di.y,\n\n cd: fakeCd,\n distance: minDist,\n spikeDistance: dxy,\n\n hovertemplate: di.ht\n });\n\n if(di.htx) pointData2.text = di.htx;\n else if(di.tx) pointData2.text = di.tx;\n else if(trace.text) pointData2.text = trace.text;\n\n Lib.fillText(di, trace, pointData2);\n Registry.getComponentMethod('errorbars', 'hoverInfo')(di, trace, pointData2);\n\n return pointData2;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n calcHover: calcHover\n};\n\n},{\"../../lib\":515,\"../../registry\":647,\"../scatter/get_trace_color\":946}],998:[function(_dereq_,module,exports){\narguments[4][905][0].apply(exports,arguments)\n},{\"./base_index\":989,\"./plot\":999,\"dup\":905}],999:[function(_dereq_,module,exports){\n'use strict';\n\nvar createScatter = _dereq_('regl-scatter2d');\nvar createLine = _dereq_('regl-line2d');\nvar createError = _dereq_('regl-error2d');\nvar Text = _dereq_('gl-text');\n\nvar Lib = _dereq_('../../lib');\nvar selectMode = _dereq_('../../components/dragelement/helpers').selectMode;\nvar prepareRegl = _dereq_('../../lib/prepare_regl');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar linkTraces = _dereq_('../scatter/link_traces');\n\nvar styleTextSelection = _dereq_('./edit_style').styleTextSelection;\n\nvar reglPrecompiled = {};\n\nfunction getViewport(fullLayout, xaxis, yaxis, plotGlPixelRatio) {\n var gs = fullLayout._size;\n var width = fullLayout.width * plotGlPixelRatio;\n var height = fullLayout.height * plotGlPixelRatio;\n\n var l = gs.l * plotGlPixelRatio;\n var b = gs.b * plotGlPixelRatio;\n var r = gs.r * plotGlPixelRatio;\n var t = gs.t * plotGlPixelRatio;\n var w = gs.w * plotGlPixelRatio;\n var h = gs.h * plotGlPixelRatio;\n return [\n l + xaxis.domain[0] * w,\n b + yaxis.domain[0] * h,\n (width - r) - (1 - xaxis.domain[1]) * w,\n (height - t) - (1 - yaxis.domain[1]) * h\n ];\n}\n\nvar exports = module.exports = function plot(gd, subplot, cdata) {\n if(!cdata.length) return;\n\n var fullLayout = gd._fullLayout;\n var scene = subplot._scene;\n var xaxis = subplot.xaxis;\n var yaxis = subplot.yaxis;\n var i, j;\n\n // we may have more subplots than initialized data due to Axes.getSubplots method\n if(!scene) return;\n\n var success = prepareRegl(gd, ['ANGLE_instanced_arrays', 'OES_element_index_uint'], reglPrecompiled);\n if(!success) {\n scene.init();\n return;\n }\n\n var count = scene.count;\n var regl = fullLayout._glcanvas.data()[0].regl;\n\n // that is needed for fills\n linkTraces(gd, subplot, cdata);\n\n if(scene.dirty) {\n // make sure scenes are created\n if(scene.error2d === true) {\n scene.error2d = createError(regl);\n }\n if(scene.line2d === true) {\n scene.line2d = createLine(regl);\n }\n if(scene.scatter2d === true) {\n scene.scatter2d = createScatter(regl);\n }\n if(scene.fill2d === true) {\n scene.fill2d = createLine(regl);\n }\n if(scene.glText === true) {\n scene.glText = new Array(count);\n for(i = 0; i < count; i++) {\n scene.glText[i] = new Text(regl);\n }\n }\n\n // update main marker options\n if(scene.glText) {\n if(count > scene.glText.length) {\n // add gl text marker\n var textsToAdd = count - scene.glText.length;\n for(i = 0; i < textsToAdd; i++) {\n scene.glText.push(new Text(regl));\n }\n } else if(count < scene.glText.length) {\n // remove gl text marker\n var textsToRemove = scene.glText.length - count;\n var removedTexts = scene.glText.splice(count, textsToRemove);\n removedTexts.forEach(function(text) { text.destroy(); });\n }\n\n for(i = 0; i < count; i++) {\n scene.glText[i].update(scene.textOptions[i]);\n }\n }\n if(scene.line2d) {\n scene.line2d.update(scene.lineOptions);\n scene.lineOptions = scene.lineOptions.map(function(lineOptions) {\n if(lineOptions && lineOptions.positions) {\n var srcPos = lineOptions.positions;\n\n var firstptdef = 0;\n while(firstptdef < srcPos.length && (isNaN(srcPos[firstptdef]) || isNaN(srcPos[firstptdef + 1]))) {\n firstptdef += 2;\n }\n var lastptdef = srcPos.length - 2;\n while(lastptdef > firstptdef && (isNaN(srcPos[lastptdef]) || isNaN(srcPos[lastptdef + 1]))) {\n lastptdef -= 2;\n }\n lineOptions.positions = srcPos.slice(firstptdef, lastptdef + 2);\n }\n return lineOptions;\n });\n scene.line2d.update(scene.lineOptions);\n }\n if(scene.error2d) {\n var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []);\n scene.error2d.update(errorBatch);\n }\n if(scene.scatter2d) {\n scene.scatter2d.update(scene.markerOptions);\n }\n\n // fill requires linked traces, so we generate it's positions here\n scene.fillOrder = Lib.repeat(null, count);\n if(scene.fill2d) {\n scene.fillOptions = scene.fillOptions.map(function(fillOptions, i) {\n var cdscatter = cdata[i];\n if(!fillOptions || !cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;\n var cd = cdscatter[0];\n var trace = cd.trace;\n var stash = cd.t;\n var lineOptions = scene.lineOptions[i];\n var last, j;\n\n var fillData = [];\n if(trace._ownfill) fillData.push(i);\n if(trace._nexttrace) fillData.push(i + 1);\n if(fillData.length) scene.fillOrder[i] = fillData;\n\n var pos = [];\n var srcPos = (lineOptions && lineOptions.positions) || stash.positions;\n var firstptdef, lastptdef;\n\n if(trace.fill === 'tozeroy') {\n firstptdef = 0;\n while(firstptdef < srcPos.length && isNaN(srcPos[firstptdef + 1])) {\n firstptdef += 2;\n }\n lastptdef = srcPos.length - 2;\n while(lastptdef > firstptdef && isNaN(srcPos[lastptdef + 1])) {\n lastptdef -= 2;\n }\n if(srcPos[firstptdef + 1] !== 0) {\n pos = [srcPos[firstptdef], 0];\n }\n pos = pos.concat(srcPos.slice(firstptdef, lastptdef + 2));\n if(srcPos[lastptdef + 1] !== 0) {\n pos = pos.concat([srcPos[lastptdef], 0]);\n }\n } else if(trace.fill === 'tozerox') {\n firstptdef = 0;\n while(firstptdef < srcPos.length && isNaN(srcPos[firstptdef])) {\n firstptdef += 2;\n }\n lastptdef = srcPos.length - 2;\n while(lastptdef > firstptdef && isNaN(srcPos[lastptdef])) {\n lastptdef -= 2;\n }\n if(srcPos[firstptdef] !== 0) {\n pos = [0, srcPos[firstptdef + 1]];\n }\n pos = pos.concat(srcPos.slice(firstptdef, lastptdef + 2));\n if(srcPos[lastptdef] !== 0) {\n pos = pos.concat([ 0, srcPos[lastptdef + 1]]);\n }\n } else if(trace.fill === 'toself' || trace.fill === 'tonext') {\n pos = [];\n last = 0;\n\n fillOptions.splitNull = true;\n\n for(j = 0; j < srcPos.length; j += 2) {\n if(isNaN(srcPos[j]) || isNaN(srcPos[j + 1])) {\n pos = pos.concat(srcPos.slice(last, j));\n pos.push(srcPos[last], srcPos[last + 1]);\n pos.push(null, null); // keep null to mark end of polygon\n last = j + 2;\n }\n }\n pos = pos.concat(srcPos.slice(last));\n if(last) {\n pos.push(srcPos[last], srcPos[last + 1]);\n }\n } else {\n var nextTrace = trace._nexttrace;\n\n if(nextTrace) {\n var nextOptions = scene.lineOptions[i + 1];\n\n if(nextOptions) {\n var nextPos = nextOptions.positions;\n if(trace.fill === 'tonexty') {\n pos = srcPos.slice();\n\n for(i = Math.floor(nextPos.length / 2); i--;) {\n var xx = nextPos[i * 2];\n var yy = nextPos[i * 2 + 1];\n if(isNaN(xx) || isNaN(yy)) continue;\n pos.push(xx, yy);\n }\n fillOptions.fill = nextTrace.fillcolor;\n }\n }\n }\n }\n\n // detect prev trace positions to exclude from current fill\n if(trace._prevtrace && trace._prevtrace.fill === 'tonext') {\n var prevLinePos = scene.lineOptions[i - 1].positions;\n\n // FIXME: likely this logic should be tested better\n var offset = pos.length / 2;\n last = offset;\n var hole = [last];\n for(j = 0; j < prevLinePos.length; j += 2) {\n if(isNaN(prevLinePos[j]) || isNaN(prevLinePos[j + 1])) {\n hole.push(j / 2 + offset + 1);\n last = j + 2;\n }\n }\n\n pos = pos.concat(prevLinePos);\n fillOptions.hole = hole;\n }\n fillOptions.fillmode = trace.fill;\n fillOptions.opacity = trace.opacity;\n fillOptions.positions = pos;\n\n return fillOptions;\n });\n\n scene.fill2d.update(scene.fillOptions);\n }\n }\n\n // form batch arrays, and check for selected points\n var dragmode = fullLayout.dragmode;\n var isSelectMode = selectMode(dragmode);\n var clickSelectEnabled = fullLayout.clickmode.indexOf('select') > -1;\n\n for(i = 0; i < count; i++) {\n var cd0 = cdata[i][0];\n var trace = cd0.trace;\n var stash = cd0.t;\n var index = stash.index;\n var len = trace._length;\n var x = stash.x;\n var y = stash.y;\n\n if(trace.selectedpoints || isSelectMode || clickSelectEnabled) {\n if(!isSelectMode) isSelectMode = true;\n\n // regenerate scene batch, if traces number changed during selection\n if(trace.selectedpoints) {\n var selPts = scene.selectBatch[index] = Lib.selIndices2selPoints(trace);\n\n var selDict = {};\n for(j = 0; j < selPts.length; j++) {\n selDict[selPts[j]] = 1;\n }\n var unselPts = [];\n for(j = 0; j < len; j++) {\n if(!selDict[j]) unselPts.push(j);\n }\n scene.unselectBatch[index] = unselPts;\n }\n\n // precalculate px coords since we are not going to pan during select\n // TODO, could do better here e.g.\n // - spin that in a webworker\n // - compute selection from polygons in data coordinates\n // (maybe just for linear axes)\n var xpx = stash.xpx = new Array(len);\n var ypx = stash.ypx = new Array(len);\n for(j = 0; j < len; j++) {\n xpx[j] = xaxis.c2p(x[j]);\n ypx[j] = yaxis.c2p(y[j]);\n }\n } else {\n stash.xpx = stash.ypx = null;\n }\n }\n\n if(isSelectMode) {\n // create scatter instance by cloning scatter2d\n if(!scene.select2d) {\n scene.select2d = createScatter(fullLayout._glcanvas.data()[1].regl);\n }\n\n // use unselected styles on 'context' canvas\n if(scene.scatter2d) {\n var unselOpts = new Array(count);\n for(i = 0; i < count; i++) {\n unselOpts[i] = scene.selectBatch[i].length || scene.unselectBatch[i].length ?\n scene.markerUnselectedOptions[i] :\n {};\n }\n scene.scatter2d.update(unselOpts);\n }\n\n // use selected style on 'focus' canvas\n if(scene.select2d) {\n scene.select2d.update(scene.markerOptions);\n scene.select2d.update(scene.markerSelectedOptions);\n }\n\n if(scene.glText) {\n cdata.forEach(function(cdscatter) {\n var trace = ((cdscatter || [])[0] || {}).trace || {};\n if(subTypes.hasText(trace)) {\n styleTextSelection(cdscatter);\n }\n });\n }\n } else {\n // reset 'context' scatter2d opts to base opts,\n // thus unsetting markerUnselectedOptions from selection\n if(scene.scatter2d) {\n scene.scatter2d.update(scene.markerOptions);\n }\n }\n\n // provide viewport and range\n var vpRange0 = {\n viewport: getViewport(fullLayout, xaxis, yaxis, gd._context.plotGlPixelRatio),\n // TODO do we need those fallbacks?\n range: [\n (xaxis._rl || xaxis.range)[0],\n (yaxis._rl || yaxis.range)[0],\n (xaxis._rl || xaxis.range)[1],\n (yaxis._rl || yaxis.range)[1]\n ]\n };\n var vpRange = Lib.repeat(vpRange0, scene.count);\n\n // upload viewport/range data to GPU\n if(scene.fill2d) {\n scene.fill2d.update(vpRange);\n }\n if(scene.line2d) {\n scene.line2d.update(vpRange);\n }\n if(scene.error2d) {\n scene.error2d.update(vpRange.concat(vpRange));\n }\n if(scene.scatter2d) {\n scene.scatter2d.update(vpRange);\n }\n if(scene.select2d) {\n scene.select2d.update(vpRange);\n }\n if(scene.glText) {\n scene.glText.forEach(function(text) { text.update(vpRange0); });\n }\n};\n\nexports.reglPrecompiled = reglPrecompiled;\n\n},{\"../../components/dragelement/helpers\":385,\"../../lib\":515,\"../../lib/prepare_regl\":528,\"../scatter/link_traces\":952,\"../scatter/subtypes\":961,\"./edit_style\":994,\"gl-text\":225,\"regl-error2d\":280,\"regl-line2d\":281,\"regl-scatter2d\":282}],1000:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// make sure scene exists on subplot, return it\nmodule.exports = function sceneUpdate(gd, subplot) {\n var scene = subplot._scene;\n\n var resetOpts = {\n // number of traces in subplot, since scene:subplot -> 1:1\n count: 0,\n // whether scene requires init hook in plot call (dirty plot call)\n dirty: true,\n // last used options\n lineOptions: [],\n fillOptions: [],\n markerOptions: [],\n markerSelectedOptions: [],\n markerUnselectedOptions: [],\n errorXOptions: [],\n errorYOptions: [],\n textOptions: [],\n textSelectedOptions: [],\n textUnselectedOptions: [],\n // selection batches\n selectBatch: [],\n unselectBatch: []\n };\n\n // regl- component stubs, initialized in dirty plot call\n var initOpts = {\n fill2d: false,\n scatter2d: false,\n error2d: false,\n line2d: false,\n glText: false,\n select2d: false\n };\n\n if(!subplot._scene) {\n scene = subplot._scene = {};\n\n scene.init = function init() {\n Lib.extendFlat(scene, initOpts, resetOpts);\n };\n\n scene.init();\n\n // apply new option to all regl components (used on drag)\n scene.update = function update(opt) {\n var opts = Lib.repeat(opt, scene.count);\n\n if(scene.fill2d) scene.fill2d.update(opts);\n if(scene.scatter2d) scene.scatter2d.update(opts);\n if(scene.line2d) scene.line2d.update(opts);\n if(scene.error2d) scene.error2d.update(opts.concat(opts));\n if(scene.select2d) scene.select2d.update(opts);\n if(scene.glText) {\n for(var i = 0; i < scene.count; i++) {\n scene.glText[i].update(opt);\n }\n }\n };\n\n // draw traces in proper order\n scene.draw = function draw() {\n var count = scene.count;\n var fill2d = scene.fill2d;\n var error2d = scene.error2d;\n var line2d = scene.line2d;\n var scatter2d = scene.scatter2d;\n var glText = scene.glText;\n var select2d = scene.select2d;\n var selectBatch = scene.selectBatch;\n var unselectBatch = scene.unselectBatch;\n\n for(var i = 0; i < count; i++) {\n if(fill2d && scene.fillOrder[i]) {\n fill2d.draw(scene.fillOrder[i]);\n }\n if(line2d && scene.lineOptions[i]) {\n line2d.draw(i);\n }\n if(error2d) {\n if(scene.errorXOptions[i]) error2d.draw(i);\n if(scene.errorYOptions[i]) error2d.draw(i + count);\n }\n if(scatter2d && scene.markerOptions[i]) {\n if(unselectBatch[i].length) {\n var arg = Lib.repeat([], scene.count);\n arg[i] = unselectBatch[i];\n scatter2d.draw(arg);\n } else if(!selectBatch[i].length) {\n scatter2d.draw(i);\n }\n }\n if(glText[i] && scene.textOptions[i]) {\n glText[i].render();\n }\n }\n\n if(select2d) {\n select2d.draw(selectBatch);\n }\n\n scene.dirty = false;\n };\n\n // remove scene resources\n scene.destroy = function destroy() {\n if(scene.fill2d && scene.fill2d.destroy) scene.fill2d.destroy();\n if(scene.scatter2d && scene.scatter2d.destroy) scene.scatter2d.destroy();\n if(scene.error2d && scene.error2d.destroy) scene.error2d.destroy();\n if(scene.line2d && scene.line2d.destroy) scene.line2d.destroy();\n if(scene.select2d && scene.select2d.destroy) scene.select2d.destroy();\n if(scene.glText) {\n scene.glText.forEach(function(text) {\n if(text.destroy) text.destroy();\n });\n }\n\n scene.lineOptions = null;\n scene.fillOptions = null;\n scene.markerOptions = null;\n scene.markerSelectedOptions = null;\n scene.markerUnselectedOptions = null;\n scene.errorXOptions = null;\n scene.errorYOptions = null;\n scene.textOptions = null;\n scene.textSelectedOptions = null;\n scene.textUnselectedOptions = null;\n\n scene.selectBatch = null;\n scene.unselectBatch = null;\n\n // we can't just delete _scene, because `destroy` is called in the\n // middle of supplyDefaults, before relinkPrivateKeys which will put it back.\n subplot._scene = null;\n };\n }\n\n // in case if we have scene from the last calc - reset data\n if(!scene.dirty) {\n Lib.extendFlat(scene, resetOpts);\n }\n\n return scene;\n};\n\n},{\"../../lib\":515}],1001:[function(_dereq_,module,exports){\n'use strict';\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar styleTextSelection = _dereq_('./edit_style').styleTextSelection;\n\nmodule.exports = function select(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n var stash = cd[0].t;\n var len = trace._length;\n var x = stash.x;\n var y = stash.y;\n var scene = stash._scene;\n var index = stash.index;\n\n if(!scene) return selection;\n\n var hasText = subTypes.hasText(trace);\n var hasMarkers = subTypes.hasMarkers(trace);\n var hasOnlyLines = !hasMarkers && !hasText;\n\n if(trace.visible !== true || hasOnlyLines) return selection;\n\n var els = [];\n var unels = [];\n\n // degenerate polygon does not enable selection\n // filter out points by visible scatter ones\n if(selectionTester !== false && !selectionTester.degenerate) {\n for(var i = 0; i < len; i++) {\n if(selectionTester.contains([stash.xpx[i], stash.ypx[i]], false, i, searchInfo)) {\n els.push(i);\n selection.push({\n pointNumber: i,\n x: xa.c2d(x[i]),\n y: ya.c2d(y[i])\n });\n } else {\n unels.push(i);\n }\n }\n }\n\n if(hasMarkers) {\n var scatter2d = scene.scatter2d;\n\n if(!els.length && !unels.length) {\n // reset to base styles when clearing\n var baseOpts = new Array(scene.count);\n baseOpts[index] = scene.markerOptions[index];\n scatter2d.update.apply(scatter2d, baseOpts);\n } else if(!scene.selectBatch[index].length && !scene.unselectBatch[index].length) {\n // set unselected styles on 'context' canvas (if not done already)\n var unselOpts = new Array(scene.count);\n unselOpts[index] = scene.markerUnselectedOptions[index];\n scatter2d.update.apply(scatter2d, unselOpts);\n }\n }\n\n scene.selectBatch[index] = els;\n scene.unselectBatch[index] = unels;\n\n if(hasText) {\n styleTextSelection(cd);\n }\n\n return selection;\n};\n\n},{\"../scatter/subtypes\":961,\"./edit_style\":994}],1002:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar scatterGeoAttrs = _dereq_('../scattergeo/attributes');\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar mapboxAttrs = _dereq_('../../plots/mapbox/layout_attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar mapboxLayoutAtributes = _dereq_('../../plots/mapbox/layout_attributes');\n\nvar lineAttrs = scatterGeoAttrs.line;\nvar markerAttrs = scatterGeoAttrs.marker;\n\nmodule.exports = overrideAll({\n lon: scatterGeoAttrs.lon,\n lat: scatterGeoAttrs.lat,\n\n cluster: {\n enabled: {\n valType: 'boolean',\n },\n maxzoom: extendFlat({}, mapboxLayoutAtributes.layers.maxzoom, {\n }),\n step: {\n valType: 'number',\n arrayOk: true,\n dflt: -1,\n min: -1,\n },\n size: {\n valType: 'number',\n arrayOk: true,\n dflt: 20,\n min: 0,\n },\n color: {\n valType: 'color',\n arrayOk: true,\n },\n opacity: extendFlat({}, markerAttrs.opacity, {\n dflt: 1\n })\n },\n\n // locations\n // locationmode\n\n mode: extendFlat({}, scatterAttrs.mode, {\n dflt: 'markers',\n }),\n\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['lat', 'lon', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n\n line: {\n color: lineAttrs.color,\n width: lineAttrs.width\n\n // TODO\n // dash: dash\n },\n\n connectgaps: scatterAttrs.connectgaps,\n\n marker: extendFlat({\n symbol: {\n valType: 'string',\n dflt: 'circle',\n arrayOk: true,\n },\n angle: {\n valType: 'number',\n dflt: 'auto',\n arrayOk: true,\n },\n allowoverlap: {\n valType: 'boolean',\n dflt: false,\n },\n opacity: markerAttrs.opacity,\n size: markerAttrs.size,\n sizeref: markerAttrs.sizeref,\n sizemin: markerAttrs.sizemin,\n sizemode: markerAttrs.sizemode\n },\n colorScaleAttrs('marker')\n // line\n ),\n\n fill: scatterGeoAttrs.fill,\n fillcolor: scatterAttrs.fillcolor,\n\n textfont: mapboxAttrs.layers.symbol.textfont,\n textposition: mapboxAttrs.layers.symbol.textposition,\n\n below: {\n valType: 'string',\n },\n\n selected: {\n marker: scatterAttrs.selected.marker\n },\n unselected: {\n marker: scatterAttrs.unselected.marker\n },\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['lon', 'lat', 'text', 'name']\n }),\n hovertemplate: hovertemplateAttrs(),\n}, 'calc', 'nested');\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../../plots/mapbox/layout_attributes\":624,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936,\"../scattergeo/attributes\":978}],1003:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar geoJsonUtils = _dereq_('../../lib/geojson_utils');\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar Drawing = _dereq_('../../components/drawing');\nvar makeBubbleSizeFn = _dereq_('../scatter/make_bubble_size_func');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar convertTextOpts = _dereq_('../../plots/mapbox/convert_text_opts');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\n\nvar NEWLINES = _dereq_('../../lib/svg_text_utils').NEWLINES;\nvar BR_TAG_ALL = _dereq_('../../lib/svg_text_utils').BR_TAG_ALL;\n\nmodule.exports = function convert(gd, calcTrace) {\n var trace = calcTrace[0].trace;\n\n var isVisible = (trace.visible === true && trace._length !== 0);\n var hasFill = (trace.fill !== 'none');\n var hasLines = subTypes.hasLines(trace);\n var hasMarkers = subTypes.hasMarkers(trace);\n var hasText = subTypes.hasText(trace);\n var hasCircles = (hasMarkers && trace.marker.symbol === 'circle');\n var hasSymbols = (hasMarkers && trace.marker.symbol !== 'circle');\n var hasCluster = trace.cluster && trace.cluster.enabled;\n\n var fill = initContainer('fill');\n var line = initContainer('line');\n var circle = initContainer('circle');\n var symbol = initContainer('symbol');\n\n var opts = {\n fill: fill,\n line: line,\n circle: circle,\n symbol: symbol\n };\n\n // early return if not visible or placeholder\n if(!isVisible) return opts;\n\n // fill layer and line layer use the same coords\n var lineCoords;\n if(hasFill || hasLines) {\n lineCoords = geoJsonUtils.calcTraceToLineCoords(calcTrace);\n }\n\n if(hasFill) {\n fill.geojson = geoJsonUtils.makePolygon(lineCoords);\n fill.layout.visibility = 'visible';\n\n Lib.extendFlat(fill.paint, {\n 'fill-color': trace.fillcolor\n });\n }\n\n if(hasLines) {\n line.geojson = geoJsonUtils.makeLine(lineCoords);\n line.layout.visibility = 'visible';\n\n Lib.extendFlat(line.paint, {\n 'line-width': trace.line.width,\n 'line-color': trace.line.color,\n 'line-opacity': trace.opacity\n });\n\n // TODO convert line.dash into line-dasharray\n }\n\n if(hasCircles) {\n var circleOpts = makeCircleOpts(calcTrace);\n circle.geojson = circleOpts.geojson;\n circle.layout.visibility = 'visible';\n if(hasCluster) {\n circle.filter = ['!', ['has', 'point_count']];\n opts.cluster = {\n type: 'circle',\n filter: ['has', 'point_count'],\n layout: {visibility: 'visible'},\n paint: {\n 'circle-color': arrayifyAttribute(trace.cluster.color, trace.cluster.step),\n 'circle-radius': arrayifyAttribute(trace.cluster.size, trace.cluster.step),\n 'circle-opacity': arrayifyAttribute(trace.cluster.opacity, trace.cluster.step),\n },\n };\n opts.clusterCount = {\n type: 'symbol',\n filter: ['has', 'point_count'],\n paint: {},\n layout: {\n 'text-field': '{point_count_abbreviated}',\n 'text-font': ['Open Sans Regular', 'Arial Unicode MS Regular'],\n 'text-size': 12\n }\n };\n }\n\n Lib.extendFlat(circle.paint, {\n 'circle-color': circleOpts.mcc,\n 'circle-radius': circleOpts.mrc,\n 'circle-opacity': circleOpts.mo\n });\n }\n\n if(hasCircles && hasCluster) {\n circle.filter = ['!', ['has', 'point_count']];\n }\n\n if(hasSymbols || hasText) {\n symbol.geojson = makeSymbolGeoJSON(calcTrace, gd);\n\n Lib.extendFlat(symbol.layout, {\n visibility: 'visible',\n 'icon-image': '{symbol}-15',\n 'text-field': '{text}'\n });\n\n if(hasSymbols) {\n Lib.extendFlat(symbol.layout, {\n 'icon-size': trace.marker.size / 10\n });\n\n if('angle' in trace.marker && trace.marker.angle !== 'auto') {\n Lib.extendFlat(symbol.layout, {\n // unfortunately cant use {angle} do to this issue:\n // https://github.com/mapbox/mapbox-gl-js/issues/873\n 'icon-rotate': {\n type: 'identity', property: 'angle'\n },\n 'icon-rotation-alignment': 'map'\n });\n }\n\n symbol.layout['icon-allow-overlap'] = trace.marker.allowoverlap;\n\n Lib.extendFlat(symbol.paint, {\n 'icon-opacity': trace.opacity * trace.marker.opacity,\n\n // TODO does not work ??\n 'icon-color': trace.marker.color\n });\n }\n\n if(hasText) {\n var iconSize = (trace.marker || {}).size;\n var textOpts = convertTextOpts(trace.textposition, iconSize);\n\n // all data-driven below !!\n\n Lib.extendFlat(symbol.layout, {\n 'text-size': trace.textfont.size,\n 'text-anchor': textOpts.anchor,\n 'text-offset': textOpts.offset\n\n // TODO font family\n // 'text-font': symbol.textfont.family.split(', '),\n });\n\n Lib.extendFlat(symbol.paint, {\n 'text-color': trace.textfont.color,\n 'text-opacity': trace.opacity\n });\n }\n }\n\n return opts;\n};\n\nfunction initContainer(type) {\n return {\n type: type,\n geojson: geoJsonUtils.makeBlank(),\n layout: { visibility: 'none' },\n filter: null,\n paint: {}\n };\n}\n\nfunction makeCircleOpts(calcTrace) {\n var trace = calcTrace[0].trace;\n var marker = trace.marker;\n var selectedpoints = trace.selectedpoints;\n var arrayColor = Lib.isArrayOrTypedArray(marker.color);\n var arraySize = Lib.isArrayOrTypedArray(marker.size);\n var arrayOpacity = Lib.isArrayOrTypedArray(marker.opacity);\n var i;\n\n function addTraceOpacity(o) { return trace.opacity * o; }\n\n function size2radius(s) { return s / 2; }\n\n var colorFn;\n if(arrayColor) {\n if(Colorscale.hasColorscale(trace, 'marker')) {\n colorFn = Colorscale.makeColorScaleFuncFromTrace(marker);\n } else {\n colorFn = Lib.identity;\n }\n }\n\n var sizeFn;\n if(arraySize) {\n sizeFn = makeBubbleSizeFn(trace);\n }\n\n var opacityFn;\n if(arrayOpacity) {\n opacityFn = function(mo) {\n var mo2 = isNumeric(mo) ? +Lib.constrain(mo, 0, 1) : 0;\n return addTraceOpacity(mo2);\n };\n }\n\n var features = [];\n for(i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n var lonlat = calcPt.lonlat;\n\n if(isBADNUM(lonlat)) continue;\n\n var props = {};\n if(colorFn) props.mcc = calcPt.mcc = colorFn(calcPt.mc);\n if(sizeFn) props.mrc = calcPt.mrc = sizeFn(calcPt.ms);\n if(opacityFn) props.mo = opacityFn(calcPt.mo);\n if(selectedpoints) props.selected = calcPt.selected || 0;\n\n features.push({\n type: 'Feature',\n id: i + 1,\n geometry: { type: 'Point', coordinates: lonlat },\n properties: props\n });\n }\n\n var fns;\n if(selectedpoints) {\n fns = Drawing.makeSelectedPointStyleFns(trace);\n\n for(i = 0; i < features.length; i++) {\n var d = features[i].properties;\n\n if(fns.selectedOpacityFn) {\n d.mo = addTraceOpacity(fns.selectedOpacityFn(d));\n }\n if(fns.selectedColorFn) {\n d.mcc = fns.selectedColorFn(d);\n }\n if(fns.selectedSizeFn) {\n d.mrc = fns.selectedSizeFn(d);\n }\n }\n }\n\n return {\n geojson: {type: 'FeatureCollection', features: features},\n mcc: arrayColor || (fns && fns.selectedColorFn) ?\n {type: 'identity', property: 'mcc'} :\n marker.color,\n mrc: arraySize || (fns && fns.selectedSizeFn) ?\n {type: 'identity', property: 'mrc'} :\n size2radius(marker.size),\n mo: arrayOpacity || (fns && fns.selectedOpacityFn) ?\n {type: 'identity', property: 'mo'} :\n addTraceOpacity(marker.opacity)\n };\n}\n\nfunction makeSymbolGeoJSON(calcTrace, gd) {\n var fullLayout = gd._fullLayout;\n var trace = calcTrace[0].trace;\n\n var marker = trace.marker || {};\n var symbol = marker.symbol;\n var angle = marker.angle;\n\n var fillSymbol = (symbol !== 'circle') ?\n getFillFunc(symbol) :\n blankFillFunc;\n\n var fillAngle = (angle !== 'auto') ?\n getFillFunc(angle, true) :\n blankFillFunc;\n\n var fillText = subTypes.hasText(trace) ?\n getFillFunc(trace.text) :\n blankFillFunc;\n\n\n var features = [];\n\n for(var i = 0; i < calcTrace.length; i++) {\n var calcPt = calcTrace[i];\n\n if(isBADNUM(calcPt.lonlat)) continue;\n\n var texttemplate = trace.texttemplate;\n var text;\n\n if(texttemplate) {\n var tt = Array.isArray(texttemplate) ? (texttemplate[i] || '') : texttemplate;\n var labels = trace._module.formatLabels(calcPt, trace, fullLayout);\n var pointValues = {};\n appendArrayPointValue(pointValues, trace, calcPt.i);\n var meta = trace._meta || {};\n text = Lib.texttemplateString(tt, labels, fullLayout._d3locale, pointValues, calcPt, meta);\n } else {\n text = fillText(i);\n }\n\n if(text) {\n text = text.replace(NEWLINES, '').replace(BR_TAG_ALL, '\\n');\n }\n\n features.push({\n type: 'Feature',\n geometry: {\n type: 'Point',\n coordinates: calcPt.lonlat\n },\n properties: {\n symbol: fillSymbol(i),\n angle: fillAngle(i),\n text: text\n }\n });\n }\n\n return {\n type: 'FeatureCollection',\n features: features\n };\n}\n\nfunction getFillFunc(attr, numeric) {\n if(Lib.isArrayOrTypedArray(attr)) {\n if(numeric) {\n return function(i) { return isNumeric(attr[i]) ? +attr[i] : 0; };\n }\n return function(i) { return attr[i]; };\n } else if(attr) {\n return function() { return attr; };\n } else {\n return blankFillFunc;\n }\n}\n\nfunction blankFillFunc() { return ''; }\n\n// only need to check lon (OR lat)\nfunction isBADNUM(lonlat) {\n return lonlat[0] === BADNUM;\n}\n\nfunction arrayifyAttribute(values, step) {\n var newAttribute;\n if(Lib.isArrayOrTypedArray(values) && Lib.isArrayOrTypedArray(step)) {\n newAttribute = ['step', ['get', 'point_count'], values[0]];\n\n for(var idx = 1; idx < values.length; idx++) {\n newAttribute.push(step[idx - 1], values[idx]);\n }\n } else {\n newAttribute = values;\n }\n return newAttribute;\n}\n\n},{\"../../components/colorscale\":379,\"../../components/drawing\":389,\"../../components/fx/helpers\":403,\"../../constants/numerical\":491,\"../../lib\":515,\"../../lib/geojson_utils\":509,\"../../lib/svg_text_utils\":541,\"../../plots/mapbox/convert_text_opts\":621,\"../scatter/make_bubble_size_func\":953,\"../scatter/subtypes\":961,\"fast-isnumeric\":190}],1004:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n function coerce2(attr, dflt) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleLonLatDefaults(traceIn, traceOut, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('texttemplate');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('mode');\n coerce('below');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noDash: true});\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noLine: true, noAngle: true});\n\n coerce('marker.allowoverlap');\n coerce('marker.angle');\n\n // array marker.size and marker.color are only supported with circles\n var marker = traceOut.marker;\n if(marker.symbol !== 'circle') {\n if(Lib.isArrayOrTypedArray(marker.size)) marker.size = marker.size[0];\n if(Lib.isArrayOrTypedArray(marker.color)) marker.color = marker.color[0];\n }\n }\n\n var clusterMaxzoom = coerce2('cluster.maxzoom');\n var clusterStep = coerce2('cluster.step');\n var clusterColor = coerce2('cluster.color', (traceOut.marker && traceOut.marker.color) || defaultColor);\n var clusterSize = coerce2('cluster.size');\n var clusterOpacity = coerce2('cluster.opacity');\n\n var clusterEnabledDflt =\n clusterMaxzoom !== false ||\n clusterStep !== false ||\n clusterColor !== false ||\n clusterSize !== false ||\n clusterOpacity !== false;\n\n coerce('cluster.enabled', clusterEnabledDflt);\n\n if(subTypes.hasText(traceOut)) {\n handleTextDefaults(traceIn, traceOut, layout, coerce, {noSelect: true});\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\nfunction handleLonLatDefaults(traceIn, traceOut, coerce) {\n var lon = coerce('lon') || [];\n var lat = coerce('lat') || [];\n var len = Math.min(lon.length, lat.length);\n traceOut._length = len;\n\n return len;\n}\n\n},{\"../../lib\":515,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":1002}],1005:[function(_dereq_,module,exports){\n'use strict';\n\n\nmodule.exports = function eventData(out, pt) {\n out.lon = pt.lon;\n out.lat = pt.lat;\n\n return out;\n};\n\n},{}],1006:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n var ax = subplot.mockAxis;\n\n var lonlat = cdi.lonlat;\n labels.lonLabel = Axes.tickText(ax, ax.c2l(lonlat[0]), true).text;\n labels.latLabel = Axes.tickText(ax, ax.c2l(lonlat[1]), true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":566}],1007:[function(_dereq_,module,exports){\n'use strict';\n\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar getTraceColor = _dereq_('../scatter/get_trace_color');\nvar fillText = Lib.fillText;\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\n\nfunction hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var subplot = pointData.subplot;\n var clusteredPointsIds = [];\n var layer = LAYER_PREFIX + trace.uid + '-circle';\n var hasCluster = trace.cluster && trace.cluster.enabled;\n\n if(hasCluster) {\n var elems = subplot.map.queryRenderedFeatures(null, {layers: [layer]});\n clusteredPointsIds = elems.map(function(elem) {return elem.id;});\n }\n\n // compute winding number about [-180, 180] globe\n var winding = (xval >= 0) ?\n Math.floor((xval + 180) / 360) :\n Math.ceil((xval - 180) / 360);\n\n // shift longitude to [-180, 180] to determine closest point\n var lonShift = winding * 360;\n var xval2 = xval - lonShift;\n\n function distFn(d) {\n var lonlat = d.lonlat;\n if(lonlat[0] === BADNUM) return Infinity;\n if(hasCluster && clusteredPointsIds.indexOf(d.i + 1) === -1) return Infinity;\n\n var lon = Lib.modHalf(lonlat[0], 360);\n var lat = lonlat[1];\n var pt = subplot.project([lon, lat]);\n var dx = pt.x - xa.c2p([xval2, lat]);\n var dy = pt.y - ya.c2p([lon, yval]);\n var rad = Math.max(3, d.mrc || 0);\n\n return Math.max(Math.sqrt(dx * dx + dy * dy) - rad, 1 - 3 / rad);\n }\n\n Fx.getClosest(cd, distFn, pointData);\n\n // skip the rest (for this trace) if we didn't find a close point\n if(pointData.index === false) return;\n\n var di = cd[pointData.index];\n var lonlat = di.lonlat;\n var lonlatShifted = [Lib.modHalf(lonlat[0], 360) + lonShift, lonlat[1]];\n\n // shift labels back to original winded globe\n var xc = xa.c2p(lonlatShifted);\n var yc = ya.c2p(lonlatShifted);\n var rad = di.mrc || 1;\n\n pointData.x0 = xc - rad;\n pointData.x1 = xc + rad;\n pointData.y0 = yc - rad;\n pointData.y1 = yc + rad;\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(di, trace, fullLayout);\n pointData.lonLabel = labels.lonLabel;\n pointData.latLabel = labels.latLabel;\n\n pointData.color = getTraceColor(trace, di);\n pointData.extraText = getExtraText(trace, di, cd[0].t.labels);\n pointData.hovertemplate = trace.hovertemplate;\n\n return [pointData];\n}\n\nfunction getExtraText(trace, di, labels) {\n if(trace.hovertemplate) return;\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var parts = hoverinfo.split('+');\n var isAll = parts.indexOf('all') !== -1;\n var hasLon = parts.indexOf('lon') !== -1;\n var hasLat = parts.indexOf('lat') !== -1;\n var lonlat = di.lonlat;\n var text = [];\n\n // TODO should we use a mock axis to format hover?\n // If so, we'll need to make precision be zoom-level dependent\n function format(v) {\n return v + '\\u00B0';\n }\n\n if(isAll || (hasLon && hasLat)) {\n text.push('(' + format(lonlat[1]) + ', ' + format(lonlat[0]) + ')');\n } else if(hasLon) {\n text.push(labels.lon + format(lonlat[0]));\n } else if(hasLat) {\n text.push(labels.lat + format(lonlat[1]));\n }\n\n if(isAll || parts.indexOf('text') !== -1) {\n fillText(di, trace, text);\n }\n\n return text.join('
');\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n getExtraText: getExtraText\n};\n\n},{\"../../components/fx\":407,\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/mapbox/constants\":620,\"../scatter/get_trace_color\":946}],1008:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('../scattergeo/calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n eventData: _dereq_('./event_data'),\n selectPoints: _dereq_('./select'),\n\n styleOnSelect: function(_, cd) {\n if(cd) {\n var trace = cd[0].trace;\n trace._glTrace.update(cd);\n }\n },\n\n moduleType: 'trace',\n name: 'scattermapbox',\n basePlotModule: _dereq_('../../plots/mapbox'),\n categories: ['mapbox', 'gl', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../plots/mapbox\":622,\"../scatter/marker_colorbar\":954,\"../scattergeo/calc\":979,\"./attributes\":1002,\"./defaults\":1004,\"./event_data\":1005,\"./format_labels\":1006,\"./hover\":1007,\"./plot\":1009,\"./select\":1010}],1009:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar convert = _dereq_('./convert');\nvar LAYER_PREFIX = _dereq_('../../plots/mapbox/constants').traceLayerPrefix;\nvar ORDER = {\n cluster: ['cluster', 'clusterCount', 'circle'],\n nonCluster: ['fill', 'line', 'circle', 'symbol'],\n};\n\nfunction ScatterMapbox(subplot, uid, clusterEnabled) {\n this.type = 'scattermapbox';\n this.subplot = subplot;\n this.uid = uid;\n this.clusterEnabled = clusterEnabled;\n\n this.sourceIds = {\n fill: 'source-' + uid + '-fill',\n line: 'source-' + uid + '-line',\n circle: 'source-' + uid + '-circle',\n symbol: 'source-' + uid + '-symbol',\n cluster: 'source-' + uid + '-circle',\n clusterCount: 'source-' + uid + '-circle',\n };\n\n this.layerIds = {\n fill: LAYER_PREFIX + uid + '-fill',\n line: LAYER_PREFIX + uid + '-line',\n circle: LAYER_PREFIX + uid + '-circle',\n symbol: LAYER_PREFIX + uid + '-symbol',\n cluster: LAYER_PREFIX + uid + '-cluster',\n clusterCount: LAYER_PREFIX + uid + '-cluster-count',\n };\n\n // We could merge the 'fill' source with the 'line' source and\n // the 'circle' source with the 'symbol' source if ever having\n // for up-to 4 sources per 'scattermapbox' traces becomes a problem.\n\n // previous 'below' value,\n // need this to update it properly\n this.below = null;\n}\n\nvar proto = ScatterMapbox.prototype;\n\nproto.addSource = function(k, opts, cluster) {\n var sourceOpts = {\n type: 'geojson',\n data: opts.geojson,\n };\n\n if(cluster && cluster.enabled) {\n Lib.extendFlat(sourceOpts, {\n cluster: true,\n clusterMaxZoom: cluster.maxzoom,\n });\n }\n\n this.subplot.map.addSource(this.sourceIds[k], sourceOpts);\n};\n\nproto.setSourceData = function(k, opts) {\n this.subplot.map\n .getSource(this.sourceIds[k])\n .setData(opts.geojson);\n};\n\nproto.addLayer = function(k, opts, below) {\n var source = {\n type: opts.type,\n id: this.layerIds[k],\n source: this.sourceIds[k],\n layout: opts.layout,\n paint: opts.paint,\n };\n if(opts.filter) {\n source.filter = opts.filter;\n }\n this.subplot.addLayer(source, below);\n};\n\nproto.update = function update(calcTrace) {\n var trace = calcTrace[0].trace;\n var subplot = this.subplot;\n var map = subplot.map;\n var optsAll = convert(subplot.gd, calcTrace);\n var below = subplot.belowLookup['trace-' + this.uid];\n var i, k, opts;\n var hasCluster = !!(trace.cluster && trace.cluster.enabled);\n var hadCluster = !!this.clusterEnabled;\n\n if(below !== this.below) {\n var order = ORDER.nonCluster;\n\n for(i = order.length - 1; i >= 0; i--) {\n k = order[i];\n map.removeLayer(this.layerIds[k]);\n }\n for(i = 0; i < order.length; i++) {\n k = order[i];\n opts = optsAll[k];\n this.addLayer(k, opts, below);\n }\n this.below = below;\n } else if(hasCluster && !hadCluster) {\n for(i = ORDER.nonCluster.length - 1; i >= 0; i--) {\n k = ORDER.nonCluster[i];\n map.removeLayer(this.layerIds[k]);\n map.removeSource(this.sourceIds[k]);\n }\n this.addSource('circle', optsAll.circle, trace.cluster);\n for(i = 0; i < ORDER.cluster.length; i++) {\n k = ORDER.cluster[i];\n opts = optsAll[k];\n this.addLayer(k, opts, below);\n }\n this.clusterEnabled = hasCluster;\n } else if(!hasCluster && hadCluster) {\n for(i = 0; i < ORDER.cluster.length; i++) {\n k = ORDER.cluster[i];\n map.removeLayer(this.layerIds[k]);\n }\n map.removeSource(this.sourceIds.circle);\n for(i = 0; i < ORDER.nonCluster.length; i++) {\n k = ORDER.nonCluster[i];\n opts = optsAll[k];\n this.addSource(k, opts, trace.cluster);\n this.addLayer(k, opts, below);\n }\n this.clusterEnabled = hasCluster;\n }\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = this;\n};\n\nproto.dispose = function dispose() {\n var map = this.subplot.map;\n var order = this.clusterEnabled ? ORDER.cluster : ORDER.nonCluster;\n for(var i = order.length - 1; i >= 0; i--) {\n var k = order[i];\n map.removeLayer(this.layerIds[k]);\n map.removeSource(this.sourceIds[k]);\n }\n};\n\nmodule.exports = function createScatterMapbox(subplot, calcTrace) {\n var trace = calcTrace[0].trace;\n var hasCluster = trace.cluster && trace.cluster.enabled;\n var scatterMapbox = new ScatterMapbox(\n subplot,\n trace.uid,\n hasCluster\n );\n\n var optsAll = convert(subplot.gd, calcTrace);\n var below = scatterMapbox.below = subplot.belowLookup['trace-' + trace.uid];\n var i, k, opts;\n\n if(hasCluster) {\n scatterMapbox.addSource('circle', optsAll.circle, trace.cluster);\n for(i = 0; i < ORDER.cluster.length; i++) {\n k = ORDER.cluster[i];\n opts = optsAll[k];\n scatterMapbox.addLayer(k, opts, below);\n }\n } else {\n for(i = 0; i < ORDER.nonCluster.length; i++) {\n k = ORDER.nonCluster[i];\n opts = optsAll[k];\n scatterMapbox.addSource(k, opts, trace.cluster);\n scatterMapbox.addLayer(k, opts, below);\n }\n }\n\n // link ref for quick update during selections\n calcTrace[0].trace._glTrace = scatterMapbox;\n\n return scatterMapbox;\n};\n\n},{\"../../lib\":515,\"../../plots/mapbox/constants\":620,\"./convert\":1003}],1010:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar subtypes = _dereq_('../scatter/subtypes');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function selectPoints(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n var trace = cd[0].trace;\n var i;\n\n if(!subtypes.hasMarkers(trace)) return [];\n\n if(selectionTester === false) {\n for(i = 0; i < cd.length; i++) {\n cd[i].selected = 0;\n }\n } else {\n for(i = 0; i < cd.length; i++) {\n var di = cd[i];\n var lonlat = di.lonlat;\n\n if(lonlat[0] !== BADNUM) {\n var lonlat2 = [Lib.modHalf(lonlat[0], 360), lonlat[1]];\n var xy = [xa.c2p(lonlat2), ya.c2p(lonlat2)];\n\n if(selectionTester.contains(xy, null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n lon: lonlat[0],\n lat: lonlat[1]\n });\n di.selected = 1;\n } else {\n di.selected = 0;\n }\n }\n }\n }\n\n return selection;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../scatter/subtypes\":961}],1011:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar lineAttrs = scatterAttrs.line;\n\nmodule.exports = {\n mode: scatterAttrs.mode,\n\n r: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n theta: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n r0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n dr: {\n valType: 'number',\n dflt: 1,\n editType: 'calc',\n },\n\n theta0: {\n valType: 'any',\n dflt: 0,\n editType: 'calc+clearAxisTypes',\n },\n dtheta: {\n valType: 'number',\n editType: 'calc',\n },\n\n thetaunit: {\n valType: 'enumerated',\n values: ['radians', 'degrees', 'gradians'],\n dflt: 'degrees',\n editType: 'calc+clearAxisTypes',\n },\n\n text: scatterAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['r', 'theta', 'text']\n }),\n hovertext: scatterAttrs.hovertext,\n\n line: {\n color: lineAttrs.color,\n width: lineAttrs.width,\n dash: lineAttrs.dash,\n backoff: lineAttrs.backoff,\n shape: extendFlat({}, lineAttrs.shape, {\n values: ['linear', 'spline']\n }),\n smoothing: lineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n\n marker: scatterAttrs.marker,\n cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {dflt: false}),\n\n textposition: scatterAttrs.textposition,\n textfont: scatterAttrs.textfont,\n\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n\n // TODO error bars\n // https://stackoverflow.com/a/26597487/4068492\n // error_x (error_r, error_theta)\n // error_y\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['r', 'theta', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs(),\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected\n};\n\n},{\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],1012:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var radialAxis = fullLayout[subplotId].radialaxis;\n var angularAxis = fullLayout[subplotId].angularaxis;\n var rArray = radialAxis.makeCalcdata(trace, 'r');\n var thetaArray = angularAxis.makeCalcdata(trace, 'theta');\n var len = trace._length;\n var cd = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var r = rArray[i];\n var theta = thetaArray[i];\n var cdi = cd[i] = {};\n\n if(isNumeric(r) && isNumeric(theta)) {\n cdi.r = r;\n cdi.theta = theta;\n } else {\n cdi.r = BADNUM;\n }\n }\n\n var ppad = calcMarkerSize(trace, len);\n trace._extremes.x = Axes.findExtremes(radialAxis, rArray, {ppad: ppad});\n\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../constants/numerical\":491,\"../../plots/cartesian/axes\":566,\"../scatter/arrays_to_calcdata\":935,\"../scatter/calc\":937,\"../scatter/calc_selection\":938,\"../scatter/colorscale_calc\":939,\"fast-isnumeric\":190}],1013:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar PTS_LINESONLY = _dereq_('../scatter/constants').PTS_LINESONLY;\n\nvar attributes = _dereq_('./attributes');\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRThetaDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('thetaunit');\n coerce('mode', len < PTS_LINESONLY ? 'lines+markers' : 'lines');\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {backoff: true});\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n}\n\nfunction handleRThetaDefaults(traceIn, traceOut, layout, coerce) {\n var r = coerce('r');\n var theta = coerce('theta');\n var len;\n\n if(r) {\n if(theta) {\n len = Math.min(r.length, theta.length);\n } else {\n len = r.length;\n coerce('theta0');\n coerce('dtheta');\n }\n } else {\n if(!theta) return 0;\n len = traceOut.theta.length;\n coerce('r0');\n coerce('dr');\n }\n\n traceOut._length = len;\n return len;\n}\n\nmodule.exports = {\n handleRThetaDefaults: handleRThetaDefaults,\n supplyDefaults: supplyDefaults\n};\n\n},{\"../../lib\":515,\"../scatter/constants\":940,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/line_shape_defaults\":951,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":1011}],1014:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n var radialAxis;\n var angularAxis;\n\n // for scatterpolargl texttemplate, _subplot is NOT defined, this takes part during the convert step\n // TODO we should consider moving the texttemplate formatting logic to the plot step\n if(!subplot) {\n subplot = fullLayout[trace.subplot];\n radialAxis = subplot.radialaxis;\n angularAxis = subplot.angularaxis;\n } else {\n radialAxis = subplot.radialAxis;\n angularAxis = subplot.angularAxis;\n }\n\n var rVal = radialAxis.c2l(cdi.r);\n labels.rLabel = Axes.tickText(radialAxis, rVal, true).text;\n\n // N.B here the ° sign is part of the formatted value for thetaunit:'degrees'\n var thetaVal = angularAxis.thetaunit === 'degrees' ? Lib.rad2deg(cdi.theta) : cdi.theta;\n labels.thetaLabel = Axes.tickText(angularAxis, thetaVal, true).text;\n\n return labels;\n};\n\n},{\"../../lib\":515,\"../../plots/cartesian/axes\":566}],1015:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // hovering on fill case\n if(newPointData.index === undefined) {\n return scatterPointData;\n }\n\n var subplot = pointData.subplot;\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n\n if(!subplot.isPtInside(cdi)) return;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n makeHoverPointText(cdi, trace, subplot, newPointData);\n newPointData.hovertemplate = trace.hovertemplate;\n return scatterPointData;\n}\n\nfunction makeHoverPointText(cdi, trace, subplot, pointData) {\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n radialAxis._hovertitle = 'r';\n angularAxis._hovertitle = 'θ';\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(cdi, trace, fullLayout);\n pointData.rLabel = labels.rLabel;\n pointData.thetaLabel = labels.thetaLabel;\n\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var text = [];\n function textPart(ax, val) {\n text.push(ax._hovertitle + ': ' + val);\n }\n\n if(!trace.hovertemplate) {\n var parts = hoverinfo.split('+');\n\n if(parts.indexOf('all') !== -1) parts = ['r', 'theta', 'text'];\n if(parts.indexOf('r') !== -1) textPart(radialAxis, pointData.rLabel);\n if(parts.indexOf('theta') !== -1) textPart(angularAxis, pointData.thetaLabel);\n\n if(parts.indexOf('text') !== -1 && pointData.text) {\n text.push(pointData.text);\n delete pointData.text;\n }\n\n pointData.extraText = text.join('
');\n }\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n makeHoverPointText: makeHoverPointText\n};\n\n},{\"../scatter/hover\":947}],1016:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scatterpolar',\n basePlotModule: _dereq_('../../plots/polar'),\n categories: ['polar', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('../scatter/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/polar\":631,\"../scatter/marker_colorbar\":954,\"../scatter/select\":958,\"../scatter/style\":960,\"./attributes\":1011,\"./calc\":1012,\"./defaults\":1013,\"./format_labels\":1014,\"./hover\":1015,\"./plot\":1017}],1017:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function plot(gd, subplot, moduleCalcData) {\n var mlayer = subplot.layers.frontplot.select('g.scatterlayer');\n\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n\n var plotinfo = {\n xaxis: xa,\n yaxis: ya,\n plot: subplot.framework,\n layerClipId: subplot._hasClipOnAxisFalse ? subplot.clipIds.forTraces : null\n };\n\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n\n // convert:\n // 'c' (r,theta) -> 'geometric' (r,theta) -> (x,y)\n for(var i = 0; i < moduleCalcData.length; i++) {\n var cdi = moduleCalcData[i];\n\n for(var j = 0; j < cdi.length; j++) {\n if(j === 0) {\n cdi[0].trace._xA = xa;\n cdi[0].trace._yA = ya;\n }\n\n var cd = cdi[j];\n var r = cd.r;\n\n if(r === BADNUM) {\n cd.x = cd.y = BADNUM;\n } else {\n var rg = radialAxis.c2g(r);\n var thetag = angularAxis.c2g(cd.theta);\n cd.x = rg * Math.cos(thetag);\n cd.y = rg * Math.sin(thetag);\n }\n }\n }\n\n scatterPlot(gd, plotinfo, moduleCalcData, mlayer);\n};\n\n},{\"../../constants/numerical\":491,\"../scatter/plot\":957}],1018:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPolarAttrs = _dereq_('../scatterpolar/attributes');\nvar scatterGlAttrs = _dereq_('../scattergl/attributes');\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nmodule.exports = {\n mode: scatterPolarAttrs.mode,\n r: scatterPolarAttrs.r,\n theta: scatterPolarAttrs.theta,\n r0: scatterPolarAttrs.r0,\n dr: scatterPolarAttrs.dr,\n theta0: scatterPolarAttrs.theta0,\n dtheta: scatterPolarAttrs.dtheta,\n thetaunit: scatterPolarAttrs.thetaunit,\n\n text: scatterPolarAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['r', 'theta', 'text']\n }),\n hovertext: scatterPolarAttrs.hovertext,\n hovertemplate: scatterPolarAttrs.hovertemplate,\n\n line: scatterGlAttrs.line,\n connectgaps: scatterGlAttrs.connectgaps,\n\n marker: scatterGlAttrs.marker,\n // no cliponaxis\n\n fill: scatterGlAttrs.fill,\n fillcolor: scatterGlAttrs.fillcolor,\n\n textposition: scatterGlAttrs.textposition,\n textfont: scatterGlAttrs.textfont,\n\n hoverinfo: scatterPolarAttrs.hoverinfo,\n // no hoveron\n\n selected: scatterPolarAttrs.selected,\n unselected: scatterPolarAttrs.unselected\n};\n\n},{\"../../plots/template_attributes\":642,\"../scattergl/attributes\":988,\"../scatterpolar/attributes\":1011}],1019:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scatterpolargl',\n basePlotModule: _dereq_('../../plots/polar'),\n categories: ['gl', 'regl', 'polar', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n\n calc: _dereq_('./calc'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('../scattergl/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/polar\":631,\"../scatter/marker_colorbar\":954,\"../scattergl/select\":1001,\"./attributes\":1018,\"./calc\":1020,\"./defaults\":1021,\"./format_labels\":1022,\"./hover\":1023}],1020:[function(_dereq_,module,exports){\n'use strict';\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar convert = _dereq_('../scattergl/convert');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar TOO_MANY_POINTS = _dereq_('../scattergl/constants').TOO_MANY_POINTS;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var radialAxis = fullLayout[subplotId].radialaxis;\n var angularAxis = fullLayout[subplotId].angularaxis;\n var rArray = trace._r = radialAxis.makeCalcdata(trace, 'r');\n var thetaArray = trace._theta = angularAxis.makeCalcdata(trace, 'theta');\n var len = trace._length;\n var stash = {};\n\n if(len < rArray.length) rArray = rArray.slice(0, len);\n if(len < thetaArray.length) thetaArray = thetaArray.slice(0, len);\n\n stash.r = rArray;\n stash.theta = thetaArray;\n\n calcColorscale(gd, trace);\n\n // only compute 'style' options in calc, as position options\n // depend on the radial range and must be set in plot\n var opts = stash.opts = convert.style(gd, trace);\n\n // For graphs with very large number of points and array marker.size,\n // use average marker size instead to speed things up.\n var ppad;\n if(len < TOO_MANY_POINTS) {\n ppad = calcMarkerSize(trace, len);\n } else if(opts.marker) {\n ppad = 2 * (opts.marker.sizeAvg || Math.max(opts.marker.size, 3));\n }\n trace._extremes.x = Axes.findExtremes(radialAxis, rArray, {ppad: ppad});\n\n return [{x: false, y: false, t: stash, trace: trace}];\n};\n\n},{\"../../plots/cartesian/axes\":566,\"../scatter/calc\":937,\"../scatter/colorscale_calc\":939,\"../scattergl/constants\":991,\"../scattergl/convert\":992}],1021:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleRThetaDefaults = _dereq_('../scatterpolar/defaults').handleRThetaDefaults;\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar PTS_LINESONLY = _dereq_('../scatter/constants').PTS_LINESONLY;\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRThetaDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('thetaunit');\n coerce('mode', len < PTS_LINESONLY ? 'lines+markers' : 'lines');\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noAngleRef: true, noStandOff: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n }\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../scatter/constants\":940,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"../scatterpolar/defaults\":1013,\"./attributes\":1018}],1022:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPolarFormatLabels = _dereq_('../scatterpolar/format_labels');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var i = cdi.i;\n if(!('r' in cdi)) cdi.r = trace._r[i];\n if(!('theta' in cdi)) cdi.theta = trace._theta[i];\n return scatterPolarFormatLabels(cdi, trace, fullLayout);\n};\n\n},{\"../scatterpolar/format_labels\":1014}],1023:[function(_dereq_,module,exports){\n'use strict';\n\nvar hover = _dereq_('../scattergl/hover');\nvar makeHoverPointText = _dereq_('../scatterpolar/hover').makeHoverPointText;\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var cd = pointData.cd;\n var stash = cd[0].t;\n var rArray = stash.r;\n var thetaArray = stash.theta;\n\n var scatterPointData = hover.hoverPoints(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n if(newPointData.index === undefined) {\n return scatterPointData;\n }\n\n var subplot = pointData.subplot;\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n\n // augment pointData with r/theta param\n cdi.r = rArray[newPointData.index];\n cdi.theta = thetaArray[newPointData.index];\n\n if(!subplot.isPtInside(cdi)) return;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n makeHoverPointText(cdi, trace, subplot, newPointData);\n\n return scatterPointData;\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints\n};\n\n},{\"../scattergl/hover\":997,\"../scatterpolar/hover\":1015}],1024:[function(_dereq_,module,exports){\narguments[4][905][0].apply(exports,arguments)\n},{\"./base_index\":1019,\"./plot\":1025,\"dup\":905}],1025:[function(_dereq_,module,exports){\n'use strict';\n\nvar cluster = _dereq_('@plotly/point-cluster');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar scatterglPlot = _dereq_('../scattergl/plot');\nvar sceneUpdate = _dereq_('../scattergl/scene_update');\nvar convert = _dereq_('../scattergl/convert');\n\nvar Lib = _dereq_('../../lib');\n\nvar TOO_MANY_POINTS = _dereq_('../scattergl/constants').TOO_MANY_POINTS;\n\nvar reglPrecompiled = {};\n\nmodule.exports = function plot(gd, subplot, cdata) {\n if(!cdata.length) return;\n\n var radialAxis = subplot.radialAxis;\n var angularAxis = subplot.angularAxis;\n var scene = sceneUpdate(gd, subplot);\n\n cdata.forEach(function(cdscatter) {\n if(!cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;\n var cd = cdscatter[0];\n var trace = cd.trace;\n var stash = cd.t;\n var len = trace._length;\n var rArray = stash.r;\n var thetaArray = stash.theta;\n var opts = stash.opts;\n var i;\n\n var subRArray = rArray.slice();\n var subThetaArray = thetaArray.slice();\n\n // filter out by range\n for(i = 0; i < rArray.length; i++) {\n if(!subplot.isPtInside({r: rArray[i], theta: thetaArray[i]})) {\n subRArray[i] = NaN;\n subThetaArray[i] = NaN;\n }\n }\n\n var positions = new Array(len * 2);\n var x = Array(len);\n var y = Array(len);\n\n for(i = 0; i < len; i++) {\n var r = subRArray[i];\n var xx, yy;\n\n if(isNumeric(r)) {\n var rg = radialAxis.c2g(r);\n var thetag = angularAxis.c2g(subThetaArray[i], trace.thetaunit);\n xx = rg * Math.cos(thetag);\n yy = rg * Math.sin(thetag);\n } else {\n xx = yy = NaN;\n }\n x[i] = positions[i * 2] = xx;\n y[i] = positions[i * 2 + 1] = yy;\n }\n\n stash.tree = cluster(positions);\n\n // FIXME: see scattergl.js#109\n if(opts.marker && len >= TOO_MANY_POINTS) {\n opts.marker.cluster = stash.tree;\n }\n\n if(opts.marker) {\n opts.markerSel.positions = opts.markerUnsel.positions = opts.marker.positions = positions;\n }\n\n if(opts.line && positions.length > 1) {\n Lib.extendFlat(\n opts.line,\n convert.linePositions(gd, trace, positions)\n );\n }\n\n if(opts.text) {\n Lib.extendFlat(\n opts.text,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.marker)\n );\n Lib.extendFlat(\n opts.textSel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerSel)\n );\n Lib.extendFlat(\n opts.textUnsel,\n {positions: positions},\n convert.textPosition(gd, trace, opts.text, opts.markerUnsel)\n );\n }\n\n if(opts.fill && !scene.fill2d) scene.fill2d = true;\n if(opts.marker && !scene.scatter2d) scene.scatter2d = true;\n if(opts.line && !scene.line2d) scene.line2d = true;\n if(opts.text && !scene.glText) scene.glText = true;\n\n scene.lineOptions.push(opts.line);\n scene.fillOptions.push(opts.fill);\n scene.markerOptions.push(opts.marker);\n scene.markerSelectedOptions.push(opts.markerSel);\n scene.markerUnselectedOptions.push(opts.markerUnsel);\n scene.textOptions.push(opts.text);\n scene.textSelectedOptions.push(opts.textSel);\n scene.textUnselectedOptions.push(opts.textUnsel);\n scene.selectBatch.push([]);\n scene.unselectBatch.push([]);\n\n stash.x = x;\n stash.y = y;\n stash.rawx = x;\n stash.rawy = y;\n stash.r = rArray;\n stash.theta = thetaArray;\n stash.positions = positions;\n stash._scene = scene;\n stash.index = scene.count;\n scene.count++;\n });\n\n return scatterglPlot(gd, subplot, cdata);\n};\n\nmodule.exports.reglPrecompiled = reglPrecompiled;\n\n},{\"../../lib\":515,\"../scattergl/constants\":991,\"../scattergl/convert\":992,\"../scattergl/plot\":999,\"../scattergl/scene_update\":1000,\"@plotly/point-cluster\":59,\"fast-isnumeric\":190}],1026:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar lineAttrs = scatterAttrs.line;\n\nmodule.exports = {\n mode: scatterAttrs.mode,\n\n real: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n imag: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n text: scatterAttrs.text,\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['real', 'imag', 'text']\n }),\n hovertext: scatterAttrs.hovertext,\n\n line: {\n color: lineAttrs.color,\n width: lineAttrs.width,\n dash: lineAttrs.dash,\n backoff: lineAttrs.backoff,\n shape: extendFlat({}, lineAttrs.shape, {\n values: ['linear', 'spline']\n }),\n smoothing: lineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n\n marker: scatterAttrs.marker,\n cliponaxis: extendFlat({}, scatterAttrs.cliponaxis, {dflt: false}),\n\n textposition: scatterAttrs.textposition,\n textfont: scatterAttrs.textfont,\n\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['real', 'imag', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs(),\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected\n};\n\n},{\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],1027:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\n\nmodule.exports = function calc(gd, trace) {\n var fullLayout = gd._fullLayout;\n var subplotId = trace.subplot;\n var realAxis = fullLayout[subplotId].realaxis;\n var imaginaryAxis = fullLayout[subplotId].imaginaryaxis;\n var realArray = realAxis.makeCalcdata(trace, 'real');\n var imagArray = imaginaryAxis.makeCalcdata(trace, 'imag');\n var len = trace._length;\n var cd = new Array(len);\n\n for(var i = 0; i < len; i++) {\n var real = realArray[i];\n var imag = imagArray[i];\n var cdi = cd[i] = {};\n\n if(isNumeric(real) && isNumeric(imag)) {\n cdi.real = real;\n cdi.imag = imag;\n } else {\n cdi.real = BADNUM;\n }\n }\n\n calcMarkerSize(trace, len);\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../constants/numerical\":491,\"../scatter/arrays_to_calcdata\":935,\"../scatter/calc\":937,\"../scatter/calc_selection\":938,\"../scatter/colorscale_calc\":939,\"fast-isnumeric\":190}],1028:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\nvar PTS_LINESONLY = _dereq_('../scatter/constants').PTS_LINESONLY;\n\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleRealImagDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n coerce('mode', len < PTS_LINESONLY ? 'lines+markers' : 'lines');\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {backoff: true});\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\nfunction handleRealImagDefaults(traceIn, traceOut, layout, coerce) {\n var real = coerce('real');\n var imag = coerce('imag');\n var len;\n\n if(real && imag) {\n len = Math.min(real.length, imag.length);\n }\n\n traceOut._length = len;\n return len;\n}\n\n},{\"../../lib\":515,\"../scatter/constants\":940,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/line_shape_defaults\":951,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":1026}],1029:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n\n labels.realLabel = Axes.tickText(subplot.radialAxis, cdi.real, true).text;\n labels.imagLabel = Axes.tickText(subplot.angularAxis, cdi.imag, true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":566}],1030:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\n\nfunction hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // hovering on fill case\n if(newPointData.index === undefined) {\n return scatterPointData;\n }\n\n var subplot = pointData.subplot;\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n\n if(!subplot.isPtInside(cdi)) return;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n makeHoverPointText(cdi, trace, subplot, newPointData);\n newPointData.hovertemplate = trace.hovertemplate;\n return scatterPointData;\n}\n\nfunction makeHoverPointText(cdi, trace, subplot, pointData) {\n var realAxis = subplot.radialAxis;\n var imaginaryAxis = subplot.angularAxis;\n realAxis._hovertitle = 'real';\n imaginaryAxis._hovertitle = 'imag';\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(cdi, trace, fullLayout);\n pointData.realLabel = labels.realLabel;\n pointData.imagLabel = labels.imagLabel;\n\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var text = [];\n function textPart(ax, val) {\n text.push(ax._hovertitle + ': ' + val);\n }\n\n if(!trace.hovertemplate) {\n var parts = hoverinfo.split('+');\n\n if(parts.indexOf('all') !== -1) parts = ['real', 'imag', 'text'];\n if(parts.indexOf('real') !== -1) textPart(realAxis, pointData.realLabel);\n if(parts.indexOf('imag') !== -1) textPart(imaginaryAxis, pointData.imagLabel);\n\n if(parts.indexOf('text') !== -1 && pointData.text) {\n text.push(pointData.text);\n delete pointData.text;\n }\n\n pointData.extraText = text.join('
');\n }\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints,\n makeHoverPointText: makeHoverPointText\n};\n\n},{\"../scatter/hover\":947}],1031:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'scattersmith',\n basePlotModule: _dereq_('../../plots/smith'),\n categories: ['smith', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('../scatter/select'),\n\n meta: {\n }\n};\n\n},{\"../../plots/smith\":638,\"../scatter/marker_colorbar\":954,\"../scatter/select\":958,\"../scatter/style\":960,\"./attributes\":1026,\"./calc\":1027,\"./defaults\":1028,\"./format_labels\":1029,\"./hover\":1030,\"./plot\":1032}],1032:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar helpers = _dereq_('../../plots/smith/helpers');\nvar smith = helpers.smith;\n\nmodule.exports = function plot(gd, subplot, moduleCalcData) {\n var mlayer = subplot.layers.frontplot.select('g.scatterlayer');\n\n var xa = subplot.xaxis;\n var ya = subplot.yaxis;\n\n var plotinfo = {\n xaxis: xa,\n yaxis: ya,\n plot: subplot.framework,\n layerClipId: subplot._hasClipOnAxisFalse ? subplot.clipIds.forTraces : null\n };\n\n // convert:\n // 'c' (real,imag) -> (x,y)\n for(var i = 0; i < moduleCalcData.length; i++) {\n var cdi = moduleCalcData[i];\n\n for(var j = 0; j < cdi.length; j++) {\n if(j === 0) {\n cdi[0].trace._xA = xa;\n cdi[0].trace._yA = ya;\n }\n\n var cd = cdi[j];\n var real = cd.real;\n\n if(real === BADNUM) {\n cd.x = cd.y = BADNUM;\n } else {\n var t = smith([real, cd.imag]);\n\n cd.x = t[0];\n cd.y = t[1];\n }\n }\n }\n\n scatterPlot(gd, plotinfo, moduleCalcData, mlayer);\n};\n\n},{\"../../constants/numerical\":491,\"../../plots/smith/helpers\":637,\"../scatter/plot\":957}],1033:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar dash = _dereq_('../../components/drawing/attributes').dash;\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterLineAttrs = scatterAttrs.line;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nmodule.exports = {\n a: {\n valType: 'data_array',\n editType: 'calc',\n },\n b: {\n valType: 'data_array',\n editType: 'calc',\n },\n c: {\n valType: 'data_array',\n editType: 'calc',\n },\n sum: {\n valType: 'number',\n dflt: 0,\n min: 0,\n editType: 'calc',\n },\n mode: extendFlat({}, scatterAttrs.mode, {dflt: 'markers'}),\n text: extendFlat({}, scatterAttrs.text, {\n }),\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: ['a', 'b', 'c', 'text']\n }),\n hovertext: extendFlat({}, scatterAttrs.hovertext, {\n }),\n line: {\n color: scatterLineAttrs.color,\n width: scatterLineAttrs.width,\n dash: dash,\n backoff: scatterLineAttrs.backoff,\n shape: extendFlat({}, scatterLineAttrs.shape,\n {values: ['linear', 'spline']}),\n smoothing: scatterLineAttrs.smoothing,\n editType: 'calc'\n },\n connectgaps: scatterAttrs.connectgaps,\n cliponaxis: scatterAttrs.cliponaxis,\n fill: extendFlat({}, scatterAttrs.fill, {\n values: ['none', 'toself', 'tonext'],\n dflt: 'none',\n }),\n fillcolor: scatterAttrs.fillcolor,\n marker: extendFlat({\n symbol: scatterMarkerAttrs.symbol,\n opacity: scatterMarkerAttrs.opacity,\n angle: scatterMarkerAttrs.angle,\n angleref: scatterMarkerAttrs.angleref,\n standoff: scatterMarkerAttrs.standoff,\n maxdisplayed: scatterMarkerAttrs.maxdisplayed,\n size: scatterMarkerAttrs.size,\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n line: extendFlat({\n width: scatterMarkerLineAttrs.width,\n editType: 'calc'\n },\n colorScaleAttrs('marker.line')\n ),\n gradient: scatterMarkerAttrs.gradient,\n editType: 'calc'\n },\n colorScaleAttrs('marker')\n ),\n\n textfont: scatterAttrs.textfont,\n textposition: scatterAttrs.textposition,\n\n selected: scatterAttrs.selected,\n unselected: scatterAttrs.unselected,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['a', 'b', 'c', 'text', 'name']\n }),\n hoveron: scatterAttrs.hoveron,\n hovertemplate: hovertemplateAttrs(),\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../components/drawing/attributes\":388,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936}],1034:[function(_dereq_,module,exports){\n'use strict';\n\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar arraysToCalcdata = _dereq_('../scatter/arrays_to_calcdata');\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\n\nvar dataArrays = ['a', 'b', 'c'];\nvar arraysToFill = {a: ['b', 'c'], b: ['a', 'c'], c: ['a', 'b']};\n\nmodule.exports = function calc(gd, trace) {\n var ternary = gd._fullLayout[trace.subplot];\n var displaySum = ternary.sum;\n var normSum = trace.sum || displaySum;\n var arrays = {a: trace.a, b: trace.b, c: trace.c};\n\n var i, j, dataArray, newArray, fillArray1, fillArray2;\n\n // fill in one missing component\n for(i = 0; i < dataArrays.length; i++) {\n dataArray = dataArrays[i];\n if(arrays[dataArray]) continue;\n\n fillArray1 = arrays[arraysToFill[dataArray][0]];\n fillArray2 = arrays[arraysToFill[dataArray][1]];\n newArray = new Array(fillArray1.length);\n for(j = 0; j < fillArray1.length; j++) {\n newArray[j] = normSum - fillArray1[j] - fillArray2[j];\n }\n arrays[dataArray] = newArray;\n }\n\n // make the calcdata array\n var serieslen = trace._length;\n var cd = new Array(serieslen);\n var a, b, c, norm, x, y;\n for(i = 0; i < serieslen; i++) {\n a = arrays.a[i];\n b = arrays.b[i];\n c = arrays.c[i];\n if(isNumeric(a) && isNumeric(b) && isNumeric(c)) {\n a = +a;\n b = +b;\n c = +c;\n norm = displaySum / (a + b + c);\n if(norm !== 1) {\n a *= norm;\n b *= norm;\n c *= norm;\n }\n // map a, b, c onto x and y where the full scale of y\n // is [0, sum], and x is [-sum, sum]\n // TODO: this makes `a` always the top, `b` the bottom left,\n // and `c` the bottom right. Do we want options to rearrange\n // these?\n y = a;\n x = c - b;\n cd[i] = {x: x, y: y, a: a, b: b, c: c};\n } else cd[i] = {x: false, y: false};\n }\n\n calcMarkerSize(trace, serieslen);\n calcColorscale(gd, trace);\n arraysToCalcdata(cd, trace);\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../scatter/arrays_to_calcdata\":935,\"../scatter/calc\":937,\"../scatter/calc_selection\":938,\"../scatter/colorscale_calc\":939,\"fast-isnumeric\":190}],1035:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar constants = _dereq_('../scatter/constants');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar handleLineDefaults = _dereq_('../scatter/line_defaults');\nvar handleLineShapeDefaults = _dereq_('../scatter/line_shape_defaults');\nvar handleTextDefaults = _dereq_('../scatter/text_defaults');\nvar handleFillColorDefaults = _dereq_('../scatter/fillcolor_defaults');\n\nvar attributes = _dereq_('./attributes');\n\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var a = coerce('a');\n var b = coerce('b');\n var c = coerce('c');\n var len;\n\n // allow any one array to be missing, len is the minimum length of those\n // present. Note that after coerce data_array's are either Arrays (which\n // are truthy even if empty) or undefined. As in scatter, an empty array\n // is different from undefined, because it can signify that this data is\n // not known yet but expected in the future\n if(a) {\n len = a.length;\n if(b) {\n len = Math.min(len, b.length);\n if(c) len = Math.min(len, c.length);\n } else if(c) len = Math.min(len, c.length);\n else len = 0;\n } else if(b && c) {\n len = Math.min(b.length, c.length);\n }\n\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._length = len;\n\n coerce('sum');\n\n coerce('text');\n coerce('hovertext');\n if(traceOut.hoveron !== 'fills') coerce('hovertemplate');\n\n var defaultMode = len < constants.PTS_LINESONLY ? 'lines+markers' : 'lines';\n coerce('mode', defaultMode);\n\n if(subTypes.hasLines(traceOut)) {\n handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce, {backoff: true});\n handleLineShapeDefaults(traceIn, traceOut, coerce);\n coerce('connectgaps');\n }\n\n if(subTypes.hasMarkers(traceOut)) {\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {gradient: true});\n }\n\n if(subTypes.hasText(traceOut)) {\n coerce('texttemplate');\n handleTextDefaults(traceIn, traceOut, layout, coerce);\n }\n\n var dfltHoverOn = [];\n\n if(subTypes.hasMarkers(traceOut) || subTypes.hasText(traceOut)) {\n coerce('cliponaxis');\n coerce('marker.maxdisplayed');\n dfltHoverOn.push('points');\n }\n\n coerce('fill');\n if(traceOut.fill !== 'none') {\n handleFillColorDefaults(traceIn, traceOut, defaultColor, coerce);\n if(!subTypes.hasLines(traceOut)) handleLineShapeDefaults(traceIn, traceOut, coerce);\n }\n\n if(traceOut.fill === 'tonext' || traceOut.fill === 'toself') {\n dfltHoverOn.push('fills');\n }\n coerce('hoveron', dfltHoverOn.join('+') || 'points');\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\n},{\"../../lib\":515,\"../scatter/constants\":940,\"../scatter/fillcolor_defaults\":944,\"../scatter/line_defaults\":949,\"../scatter/line_shape_defaults\":951,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scatter/text_defaults\":962,\"./attributes\":1033}],1036:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt, trace, cd, pointNumber) {\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n if(cd[pointNumber]) {\n var cdi = cd[pointNumber];\n\n // N.B. These are the normalized coordinates.\n out.a = cdi.a;\n out.b = cdi.b;\n out.c = cdi.c;\n } else {\n // for fill-hover only\n out.a = pt.a;\n out.b = pt.b;\n out.c = pt.c;\n }\n\n return out;\n};\n\n},{}],1037:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\n\nmodule.exports = function formatLabels(cdi, trace, fullLayout) {\n var labels = {};\n\n var subplot = fullLayout[trace.subplot]._subplot;\n labels.aLabel = Axes.tickText(subplot.aaxis, cdi.a, true).text;\n labels.bLabel = Axes.tickText(subplot.baxis, cdi.b, true).text;\n labels.cLabel = Axes.tickText(subplot.caxis, cdi.c, true).text;\n\n return labels;\n};\n\n},{\"../../plots/cartesian/axes\":566}],1038:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterHover = _dereq_('../scatter/hover');\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode) {\n var scatterPointData = scatterHover(pointData, xval, yval, hovermode);\n if(!scatterPointData || scatterPointData[0].index === false) return;\n\n var newPointData = scatterPointData[0];\n\n // if hovering on a fill, we don't show any point data so the label is\n // unchanged from what scatter gives us - except that it needs to\n // be constrained to the trianglular plot area, not just the rectangular\n // area defined by the synthetic x and y axes\n // TODO: in some cases the vertical middle of the shape is not within\n // the triangular viewport at all, so the label can become disconnected\n // from the shape entirely. But calculating what portion of the shape\n // is actually visible, as constrained by the diagonal axis lines, is not\n // so easy and anyway we lost the information we would have needed to do\n // this inside scatterHover.\n if(newPointData.index === undefined) {\n var yFracUp = 1 - (newPointData.y0 / pointData.ya._length);\n var xLen = pointData.xa._length;\n var xMin = xLen * yFracUp / 2;\n var xMax = xLen - xMin;\n newPointData.x0 = Math.max(Math.min(newPointData.x0, xMax), xMin);\n newPointData.x1 = Math.max(Math.min(newPointData.x1, xMax), xMin);\n return scatterPointData;\n }\n\n var cdi = newPointData.cd[newPointData.index];\n var trace = newPointData.trace;\n var subplot = newPointData.subplot;\n\n newPointData.a = cdi.a;\n newPointData.b = cdi.b;\n newPointData.c = cdi.c;\n\n newPointData.xLabelVal = undefined;\n newPointData.yLabelVal = undefined;\n\n var fullLayout = {};\n fullLayout[trace.subplot] = {_subplot: subplot};\n var labels = trace._module.formatLabels(cdi, trace, fullLayout);\n newPointData.aLabel = labels.aLabel;\n newPointData.bLabel = labels.bLabel;\n newPointData.cLabel = labels.cLabel;\n\n var hoverinfo = cdi.hi || trace.hoverinfo;\n var text = [];\n function textPart(ax, val) {\n text.push(ax._hovertitle + ': ' + val);\n }\n if(!trace.hovertemplate) {\n var parts = hoverinfo.split('+');\n if(parts.indexOf('all') !== -1) parts = ['a', 'b', 'c'];\n if(parts.indexOf('a') !== -1) textPart(subplot.aaxis, newPointData.aLabel);\n if(parts.indexOf('b') !== -1) textPart(subplot.baxis, newPointData.bLabel);\n if(parts.indexOf('c') !== -1) textPart(subplot.caxis, newPointData.cLabel);\n }\n newPointData.extraText = text.join('
');\n newPointData.hovertemplate = trace.hovertemplate;\n return scatterPointData;\n};\n\n},{\"../scatter/hover\":947}],1039:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n formatLabels: _dereq_('./format_labels'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('../scatter/style').style,\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../scatter/select'),\n eventData: _dereq_('./event_data'),\n\n moduleType: 'trace',\n name: 'scatterternary',\n basePlotModule: _dereq_('../../plots/ternary'),\n categories: ['ternary', 'symbols', 'showLegend', 'scatter-like'],\n meta: {\n }\n};\n\n},{\"../../plots/ternary\":643,\"../scatter/marker_colorbar\":954,\"../scatter/select\":958,\"../scatter/style\":960,\"./attributes\":1033,\"./calc\":1034,\"./defaults\":1035,\"./event_data\":1036,\"./format_labels\":1037,\"./hover\":1038,\"./plot\":1040}],1040:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterPlot = _dereq_('../scatter/plot');\n\nmodule.exports = function plot(gd, ternary, moduleCalcData) {\n var plotContainer = ternary.plotContainer;\n\n // remove all nodes inside the scatter layer\n plotContainer.select('.scatterlayer').selectAll('*').remove();\n\n // mimic cartesian plotinfo\n var xa = ternary.xaxis;\n var ya = ternary.yaxis;\n\n var plotinfo = {\n xaxis: xa,\n yaxis: ya,\n plot: plotContainer,\n layerClipId: ternary._hasClipOnAxisFalse ? ternary.clipIdRelative : null\n };\n\n var scatterLayer = ternary.layers.frontplot.select('g.scatterlayer');\n\n for(var i = 0; i < moduleCalcData.length; i++) {\n var cdi = moduleCalcData[i];\n if(cdi.length) {\n cdi[0].trace._xA = xa;\n cdi[0].trace._yA = ya;\n }\n }\n\n scatterPlot(gd, plotinfo, moduleCalcData, scatterLayer);\n};\n\n},{\"../scatter/plot\":957}],1041:[function(_dereq_,module,exports){\n'use strict';\n\nvar scatterAttrs = _dereq_('../scatter/attributes');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar scatterGlAttrs = _dereq_('../scattergl/attributes');\nvar cartesianIdRegex = _dereq_('../../plots/cartesian/constants').idRegex;\nvar templatedArray = _dereq_('../../plot_api/plot_template').templatedArray;\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar scatterMarkerAttrs = scatterAttrs.marker;\nvar scatterMarkerLineAttrs = scatterMarkerAttrs.line;\n\nvar markerLineAttrs = extendFlat(colorScaleAttrs('marker.line', {editTypeOverride: 'calc'}), {\n width: extendFlat({}, scatterMarkerLineAttrs.width, {editType: 'calc'}),\n editType: 'calc'\n});\n\nvar markerAttrs = extendFlat(colorScaleAttrs('marker'), {\n symbol: scatterMarkerAttrs.symbol,\n angle: scatterMarkerAttrs.angle,\n size: extendFlat({}, scatterMarkerAttrs.size, {editType: 'markerSize'}),\n sizeref: scatterMarkerAttrs.sizeref,\n sizemin: scatterMarkerAttrs.sizemin,\n sizemode: scatterMarkerAttrs.sizemode,\n opacity: scatterMarkerAttrs.opacity,\n colorbar: scatterMarkerAttrs.colorbar,\n line: markerLineAttrs,\n editType: 'calc'\n});\n\nmarkerAttrs.color.editType = markerAttrs.cmin.editType = markerAttrs.cmax.editType = 'style';\n\nfunction makeAxesValObject(axLetter) {\n return {\n valType: 'info_array',\n freeLength: true,\n editType: 'calc',\n items: {\n valType: 'subplotid',\n regex: cartesianIdRegex[axLetter],\n editType: 'plot'\n },\n };\n}\n\nmodule.exports = {\n dimensions: templatedArray('dimension', {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n label: {\n valType: 'string',\n editType: 'calc',\n },\n values: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n axis: {\n type: {\n valType: 'enumerated',\n values: ['linear', 'log', 'date', 'category'],\n editType: 'calc+clearAxisTypes',\n },\n\n // TODO make 'true' the default in v3?\n matches: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n editType: 'calc+clearAxisTypes'\n },\n\n // TODO should add an attribute to pin down x only vars and y only vars\n // like https://seaborn.pydata.org/generated/seaborn.pairplot.html\n // x_vars and y_vars\n\n // maybe more axis defaulting option e.g. `showgrid: false`\n\n editType: 'calc+clearAxisTypes'\n }),\n\n // mode: {}, (only 'markers' for now)\n\n text: extendFlat({}, scatterGlAttrs.text, {\n }),\n hovertext: extendFlat({}, scatterGlAttrs.hovertext, {\n }),\n\n hovertemplate: hovertemplateAttrs(),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n marker: markerAttrs,\n\n xaxes: makeAxesValObject('x'),\n yaxes: makeAxesValObject('y'),\n\n diagonal: {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n\n // type: 'scattergl' | 'histogram' | 'box' | 'violin'\n // ...\n // more options\n\n editType: 'calc'\n },\n\n showupperhalf: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n showlowerhalf: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n\n selected: {\n marker: scatterGlAttrs.selected.marker,\n editType: 'calc'\n },\n unselected: {\n marker: scatterGlAttrs.unselected.marker,\n editType: 'calc'\n },\n\n opacity: scatterGlAttrs.opacity\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/plot_template\":555,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/cartesian/constants\":573,\"../../plots/template_attributes\":642,\"../scatter/attributes\":936,\"../scattergl/attributes\":988}],1042:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Grid = _dereq_('../../components/grid');\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'splom',\n\n categories: ['gl', 'regl', 'cartesian', 'symbols', 'showLegend', 'scatter-like'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n hoverPoints: _dereq_('./hover').hoverPoints,\n selectPoints: _dereq_('./select'),\n editStyle: _dereq_('./edit_style'),\n\n meta: {\n }\n};\n\n// splom traces use the 'grid' component to generate their axes,\n// register it here\nRegistry.register(Grid);\n\n},{\"../../components/grid\":411,\"../../registry\":647,\"../scatter/marker_colorbar\":954,\"./attributes\":1041,\"./calc\":1044,\"./defaults\":1045,\"./edit_style\":1046,\"./hover\":1048,\"./plot\":1050,\"./select\":1052}],1043:[function(_dereq_,module,exports){\n'use strict';\n\nvar createLine = _dereq_('regl-line2d');\n\nvar Registry = _dereq_('../../registry');\nvar prepareRegl = _dereq_('../../lib/prepare_regl');\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar Cartesian = _dereq_('../../plots/cartesian');\nvar getFromId = _dereq_('../../plots/cartesian/axis_ids').getFromId;\nvar shouldShowZeroLine = _dereq_('../../plots/cartesian/axes').shouldShowZeroLine;\n\nvar SPLOM = 'splom';\n\nvar reglPrecompiled = {};\n\nfunction plot(gd) {\n var fullLayout = gd._fullLayout;\n var _module = Registry.getModule(SPLOM);\n var splomCalcData = getModuleCalcData(gd.calcdata, _module)[0];\n\n var success = prepareRegl(gd, ['ANGLE_instanced_arrays', 'OES_element_index_uint'], reglPrecompiled);\n if(!success) return;\n\n if(fullLayout._hasOnlyLargeSploms) {\n updateGrid(gd);\n }\n\n _module.plot(gd, {}, splomCalcData);\n}\n\nfunction drag(gd) {\n var cd = gd.calcdata;\n var fullLayout = gd._fullLayout;\n\n if(fullLayout._hasOnlyLargeSploms) {\n updateGrid(gd);\n }\n\n for(var i = 0; i < cd.length; i++) {\n var cd0 = cd[i][0];\n var trace = cd0.trace;\n var scene = fullLayout._splomScenes[trace.uid];\n\n if(trace.type === 'splom' && scene && scene.matrix) {\n dragOne(gd, trace, scene);\n }\n }\n}\n\nfunction dragOne(gd, trace, scene) {\n var visibleLength = scene.matrixOptions.data.length;\n var visibleDims = trace._visibleDims;\n var ranges = scene.viewOpts.ranges = new Array(visibleLength);\n\n for(var k = 0; k < visibleDims.length; k++) {\n var i = visibleDims[k];\n var rng = ranges[k] = new Array(4);\n\n var xa = getFromId(gd, trace._diag[i][0]);\n if(xa) {\n rng[0] = xa.r2l(xa.range[0]);\n rng[2] = xa.r2l(xa.range[1]);\n }\n\n var ya = getFromId(gd, trace._diag[i][1]);\n if(ya) {\n rng[1] = ya.r2l(ya.range[0]);\n rng[3] = ya.r2l(ya.range[1]);\n }\n }\n\n if(scene.selectBatch.length || scene.unselectBatch.length) {\n scene.matrix.update({ranges: ranges}, {ranges: ranges});\n } else {\n scene.matrix.update({ranges: ranges});\n }\n}\n\nfunction updateGrid(gd) {\n var fullLayout = gd._fullLayout;\n var regl = fullLayout._glcanvas.data()[0].regl;\n var splomGrid = fullLayout._splomGrid;\n\n if(!splomGrid) {\n splomGrid = fullLayout._splomGrid = createLine(regl);\n }\n splomGrid.update(makeGridData(gd));\n}\n\nfunction makeGridData(gd) {\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var fullView = [\n 0, 0,\n fullLayout.width * plotGlPixelRatio,\n fullLayout.height * plotGlPixelRatio\n ];\n var lookup = {};\n var k;\n\n function push(prefix, ax, x0, x1, y0, y1) {\n x0 *= plotGlPixelRatio;\n x1 *= plotGlPixelRatio;\n y0 *= plotGlPixelRatio;\n y1 *= plotGlPixelRatio;\n\n var lcolor = ax[prefix + 'color'];\n var lwidth = ax[prefix + 'width'];\n var key = String(lcolor + lwidth);\n\n if(key in lookup) {\n lookup[key].data.push(NaN, NaN, x0, x1, y0, y1);\n } else {\n lookup[key] = {\n data: [x0, x1, y0, y1],\n join: 'rect',\n thickness: lwidth * plotGlPixelRatio,\n color: lcolor,\n viewport: fullView,\n range: fullView,\n overlay: false\n };\n }\n }\n\n for(k in fullLayout._splomSubplots) {\n var sp = fullLayout._plots[k];\n var xa = sp.xaxis;\n var ya = sp.yaxis;\n var xVals = xa._gridVals;\n var yVals = ya._gridVals;\n var xOffset = xa._offset;\n var xLength = xa._length;\n var yLength = ya._length;\n\n // ya.l2p assumes top-to-bottom coordinate system (a la SVG),\n // we need to compute bottom-to-top offsets and slopes:\n var yOffset = gs.b + ya.domain[0] * gs.h;\n var ym = -ya._m;\n var yb = -ym * ya.r2l(ya.range[0], ya.calendar);\n var x, y;\n\n if(xa.showgrid) {\n for(k = 0; k < xVals.length; k++) {\n x = xOffset + xa.l2p(xVals[k].x);\n push('grid', xa, x, yOffset, x, yOffset + yLength);\n }\n }\n if(ya.showgrid) {\n for(k = 0; k < yVals.length; k++) {\n y = yOffset + yb + ym * yVals[k].x;\n push('grid', ya, xOffset, y, xOffset + xLength, y);\n }\n }\n if(shouldShowZeroLine(gd, xa, ya)) {\n x = xOffset + xa.l2p(0);\n push('zeroline', xa, x, yOffset, x, yOffset + yLength);\n }\n if(shouldShowZeroLine(gd, ya, xa)) {\n y = yOffset + yb + 0;\n push('zeroline', ya, xOffset, y, xOffset + xLength, y);\n }\n }\n\n var gridBatches = [];\n for(k in lookup) {\n gridBatches.push(lookup[k]);\n }\n\n return gridBatches;\n}\n\nfunction clean(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var lookup = {};\n var i;\n\n if(oldFullLayout._splomScenes) {\n for(i = 0; i < newFullData.length; i++) {\n var newTrace = newFullData[i];\n if(newTrace.type === 'splom') {\n lookup[newTrace.uid] = 1;\n }\n }\n for(i = 0; i < oldFullData.length; i++) {\n var oldTrace = oldFullData[i];\n if(!lookup[oldTrace.uid]) {\n var scene = oldFullLayout._splomScenes[oldTrace.uid];\n if(scene && scene.destroy) scene.destroy();\n // must first set scene to null in order to get garbage collected\n oldFullLayout._splomScenes[oldTrace.uid] = null;\n delete oldFullLayout._splomScenes[oldTrace.uid];\n }\n }\n }\n\n if(Object.keys(oldFullLayout._splomScenes || {}).length === 0) {\n delete oldFullLayout._splomScenes;\n }\n\n if(oldFullLayout._splomGrid &&\n (!newFullLayout._hasOnlyLargeSploms && oldFullLayout._hasOnlyLargeSploms)) {\n // must first set scene to null in order to get garbage collected\n oldFullLayout._splomGrid.destroy();\n oldFullLayout._splomGrid = null;\n delete oldFullLayout._splomGrid;\n }\n\n Cartesian.clean(newFullData, newFullLayout, oldFullData, oldFullLayout);\n}\n\nmodule.exports = {\n name: SPLOM,\n attr: Cartesian.attr,\n attrRegex: Cartesian.attrRegex,\n layoutAttributes: Cartesian.layoutAttributes,\n supplyLayoutDefaults: Cartesian.supplyLayoutDefaults,\n drawFramework: Cartesian.drawFramework,\n plot: plot,\n drag: drag,\n updateGrid: updateGrid,\n clean: clean,\n updateFx: Cartesian.updateFx,\n toSVG: Cartesian.toSVG,\n reglPrecompiled: reglPrecompiled\n};\n\n},{\"../../lib/prepare_regl\":528,\"../../plots/cartesian\":578,\"../../plots/cartesian/axes\":566,\"../../plots/cartesian/axis_ids\":570,\"../../plots/get_data\":602,\"../../registry\":647,\"regl-line2d\":281}],1044:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\n\nvar calcMarkerSize = _dereq_('../scatter/calc').calcMarkerSize;\nvar calcAxisExpansion = _dereq_('../scatter/calc').calcAxisExpansion;\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar convertMarkerSelection = _dereq_('../scattergl/convert').markerSelection;\nvar convertMarkerStyle = _dereq_('../scattergl/convert').markerStyle;\nvar sceneUpdate = _dereq_('./scene_update');\n\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar TOO_MANY_POINTS = _dereq_('../scattergl/constants').TOO_MANY_POINTS;\n\nmodule.exports = function calc(gd, trace) {\n var dimensions = trace.dimensions;\n var commonLength = trace._length;\n var opts = {};\n // 'c' for calculated, 'l' for linear,\n // only differ here for log axes, pass ldata to createMatrix as 'data'\n var cdata = opts.cdata = [];\n var ldata = opts.data = [];\n // keep track of visible dimensions\n var visibleDims = trace._visibleDims = [];\n var i, k, dim, xa, ya;\n\n function makeCalcdata(ax, dim) {\n // call makeCalcdata with fake input\n var ccol = ax.makeCalcdata({\n v: dim.values,\n vcalendar: trace.calendar\n }, 'v');\n\n for(var j = 0; j < ccol.length; j++) {\n ccol[j] = ccol[j] === BADNUM ? NaN : ccol[j];\n }\n cdata.push(ccol);\n ldata.push(ax.type === 'log' ? Lib.simpleMap(ccol, ax.c2l) : ccol);\n }\n\n for(i = 0; i < dimensions.length; i++) {\n dim = dimensions[i];\n\n if(dim.visible) {\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]);\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]);\n\n // if corresponding x & y axes don't have matching types, skip dim\n if(xa && ya && xa.type !== ya.type) {\n Lib.log('Skipping splom dimension ' + i + ' with conflicting axis types');\n continue;\n }\n\n if(xa) {\n makeCalcdata(xa, dim);\n if(ya && ya.type === 'category') {\n ya._categories = xa._categories.slice();\n }\n } else {\n // should not make it here, if both xa and ya undefined\n makeCalcdata(ya, dim);\n }\n\n visibleDims.push(i);\n }\n }\n\n calcColorscale(gd, trace);\n Lib.extendFlat(opts, convertMarkerStyle(gd, trace));\n\n var visibleLength = cdata.length;\n var hasTooManyPoints = (visibleLength * commonLength) > TOO_MANY_POINTS;\n\n // Reuse SVG scatter axis expansion routine.\n // For graphs with very large number of points and array marker.size,\n // use average marker size instead to speed things up.\n var ppad;\n if(hasTooManyPoints) {\n ppad = opts.sizeAvg || Math.max(opts.size, 3);\n } else {\n ppad = calcMarkerSize(trace, commonLength);\n }\n\n for(k = 0; k < visibleDims.length; k++) {\n i = visibleDims[k];\n dim = dimensions[i];\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]) || {};\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]) || {};\n calcAxisExpansion(gd, trace, xa, ya, cdata[k], cdata[k], ppad);\n }\n\n var scene = sceneUpdate(gd, trace);\n if(!scene.matrix) scene.matrix = true;\n scene.matrixOptions = opts;\n\n scene.selectedOptions = convertMarkerSelection(gd, trace, trace.selected);\n scene.unselectedOptions = convertMarkerSelection(gd, trace, trace.unselected);\n\n return [{x: false, y: false, t: {}, trace: trace}];\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/axis_ids\":570,\"../scatter/calc\":937,\"../scatter/colorscale_calc\":939,\"../scattergl/constants\":991,\"../scattergl/convert\":992,\"./scene_update\":1051}],1045:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar handleArrayContainerDefaults = _dereq_('../../plots/array_container_defaults');\n\nvar attributes = _dereq_('./attributes');\nvar subTypes = _dereq_('../scatter/subtypes');\nvar handleMarkerDefaults = _dereq_('../scatter/marker_defaults');\nvar mergeLength = _dereq_('../parcoords/merge_length');\nvar isOpenSymbol = _dereq_('../scattergl/helpers').isOpenSymbol;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var dimensions = handleArrayContainerDefaults(traceIn, traceOut, {\n name: 'dimensions',\n handleItemDefaults: dimensionDefaults\n });\n\n var showDiag = coerce('diagonal.visible');\n var showUpper = coerce('showupperhalf');\n var showLower = coerce('showlowerhalf');\n\n var dimLength = mergeLength(traceOut, dimensions, 'values');\n\n if(!dimLength || (!showDiag && !showUpper && !showLower)) {\n traceOut.visible = false;\n return;\n }\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, {noAngleRef: true, noStandOff: true});\n\n var isOpen = isOpenSymbol(traceOut.marker.symbol);\n var isBubble = subTypes.isBubble(traceOut);\n coerce('marker.line.width', isOpen || isBubble ? 1 : 0);\n\n handleAxisDefaults(traceIn, traceOut, layout, coerce);\n\n Lib.coerceSelectionMarkerOpacity(traceOut, coerce);\n};\n\nfunction dimensionDefaults(dimIn, dimOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(dimIn, dimOut, attributes.dimensions, attr, dflt);\n }\n\n coerce('label');\n var values = coerce('values');\n\n if(!(values && values.length)) dimOut.visible = false;\n else coerce('visible');\n\n coerce('axis.type');\n coerce('axis.matches');\n}\n\nfunction handleAxisDefaults(traceIn, traceOut, layout, coerce) {\n var dimensions = traceOut.dimensions;\n var dimLength = dimensions.length;\n var showUpper = traceOut.showupperhalf;\n var showLower = traceOut.showlowerhalf;\n var showDiag = traceOut.diagonal.visible;\n var i, j;\n\n var xAxesDflt = new Array(dimLength);\n var yAxesDflt = new Array(dimLength);\n\n for(i = 0; i < dimLength; i++) {\n var suffix = i ? i + 1 : '';\n xAxesDflt[i] = 'x' + suffix;\n yAxesDflt[i] = 'y' + suffix;\n }\n\n var xaxes = coerce('xaxes', xAxesDflt);\n var yaxes = coerce('yaxes', yAxesDflt);\n\n // build list of [x,y] axis corresponding to each dimensions[i],\n // very useful for passing options to regl-splom\n var diag = traceOut._diag = new Array(dimLength);\n\n // lookup for 'drawn' x|y axes, to avoid costly indexOf downstream\n traceOut._xaxes = {};\n traceOut._yaxes = {};\n\n // list of 'drawn' x|y axes, use to generate list of subplots\n var xList = [];\n var yList = [];\n\n function fillAxisStashes(axId, counterAxId, dim, list) {\n if(!axId) return;\n\n var axLetter = axId.charAt(0);\n var stash = layout._splomAxes[axLetter];\n\n traceOut['_' + axLetter + 'axes'][axId] = 1;\n list.push(axId);\n\n if(!(axId in stash)) {\n var s = stash[axId] = {};\n if(dim) {\n s.label = dim.label || '';\n if(dim.visible && dim.axis) {\n if(dim.axis.type) s.type = dim.axis.type;\n if(dim.axis.matches) s.matches = counterAxId;\n }\n }\n }\n }\n\n // cases where showDiag and showLower or showUpper are false\n // no special treatment as the 'drawn' x-axes and y-axes no longer match\n // the dimensions items and xaxes|yaxes 1-to-1\n var mustShiftX = !showDiag && !showLower;\n var mustShiftY = !showDiag && !showUpper;\n\n traceOut._axesDim = {};\n for(i = 0; i < dimLength; i++) {\n var dim = dimensions[i];\n var i0 = i === 0;\n var iN = i === dimLength - 1;\n\n var xaId = (i0 && mustShiftX) || (iN && mustShiftY) ?\n undefined :\n xaxes[i];\n\n var yaId = (i0 && mustShiftY) || (iN && mustShiftX) ?\n undefined :\n yaxes[i];\n\n fillAxisStashes(xaId, yaId, dim, xList);\n fillAxisStashes(yaId, xaId, dim, yList);\n diag[i] = [xaId, yaId];\n traceOut._axesDim[xaId] = i;\n traceOut._axesDim[yaId] = i;\n }\n\n // fill in splom subplot keys\n for(i = 0; i < xList.length; i++) {\n for(j = 0; j < yList.length; j++) {\n var id = xList[i] + yList[j];\n\n if(i > j && showUpper) {\n layout._splomSubplots[id] = 1;\n } else if(i < j && showLower) {\n layout._splomSubplots[id] = 1;\n } else if(i === j && (showDiag || !showLower || !showUpper)) {\n // need to include diagonal subplots when\n // hiding one half and the diagonal\n layout._splomSubplots[id] = 1;\n }\n }\n }\n\n // when lower half is omitted, or when just the diagonal is gone,\n // override grid default to make sure axes remain on\n // the left/bottom of the plot area\n if(!showLower || (!showDiag && showUpper && showLower)) {\n layout._splomGridDflt.xside = 'bottom';\n layout._splomGridDflt.yside = 'left';\n }\n}\n\n},{\"../../lib\":515,\"../../plots/array_container_defaults\":561,\"../parcoords/merge_length\":907,\"../scatter/marker_defaults\":955,\"../scatter/subtypes\":961,\"../scattergl/helpers\":996,\"./attributes\":1041}],1046:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar calcColorscale = _dereq_('../scatter/colorscale_calc');\nvar convertMarkerStyle = _dereq_('../scattergl/convert').markerStyle;\n\nmodule.exports = function editStyle(gd, cd0) {\n var trace = cd0.trace;\n var scene = gd._fullLayout._splomScenes[trace.uid];\n\n if(scene) {\n calcColorscale(gd, trace);\n\n Lib.extendFlat(scene.matrixOptions, convertMarkerStyle(gd, trace));\n // TODO [un]selected styles?\n\n var opts = Lib.extendFlat({}, scene.matrixOptions, scene.viewOpts);\n\n // TODO this is too long for arrayOk attributes!\n scene.matrix.update(opts, null);\n }\n};\n\n},{\"../../lib\":515,\"../scatter/colorscale_calc\":939,\"../scattergl/convert\":992}],1047:[function(_dereq_,module,exports){\n'use strict';\n\nexports.getDimIndex = function getDimIndex(trace, ax) {\n var axId = ax._id;\n var axLetter = axId.charAt(0);\n var ind = {x: 0, y: 1}[axLetter];\n var visibleDims = trace._visibleDims;\n\n for(var k = 0; k < visibleDims.length; k++) {\n var i = visibleDims[k];\n if(trace._diag[i][ind] === axId) return k;\n }\n return false;\n};\n\n},{}],1048:[function(_dereq_,module,exports){\n'use strict';\n\nvar helpers = _dereq_('./helpers');\nvar calcHover = _dereq_('../scattergl/hover').calcHover;\n\nfunction hoverPoints(pointData, xval, yval) {\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var scene = pointData.scene;\n var cdata = scene.matrixOptions.cdata;\n var xa = pointData.xa;\n var ya = pointData.ya;\n var xpx = xa.c2p(xval);\n var ypx = ya.c2p(yval);\n var maxDistance = pointData.distance;\n\n var xi = helpers.getDimIndex(trace, xa);\n var yi = helpers.getDimIndex(trace, ya);\n if(xi === false || yi === false) return [pointData];\n\n var x = cdata[xi];\n var y = cdata[yi];\n\n var id, dxy;\n var minDist = maxDistance;\n\n for(var i = 0; i < x.length; i++) {\n var ptx = x[i];\n var pty = y[i];\n var dx = xa.c2p(ptx) - xpx;\n var dy = ya.c2p(pty) - ypx;\n var dist = Math.sqrt(dx * dx + dy * dy);\n\n if(dist < minDist) {\n minDist = dxy = dist;\n id = i;\n }\n }\n\n pointData.index = id;\n pointData.distance = minDist;\n pointData.dxy = dxy;\n\n if(id === undefined) return [pointData];\n\n return [calcHover(pointData, x, y, trace)];\n}\n\nmodule.exports = {\n hoverPoints: hoverPoints\n};\n\n},{\"../scattergl/hover\":997,\"./helpers\":1047}],1049:[function(_dereq_,module,exports){\n'use strict';\n\nvar index = _dereq_('./base_index');\n\nindex.basePlotModule = _dereq_('./base_plot'),\n\nmodule.exports = index;\n\n},{\"./base_index\":1042,\"./base_plot\":1043}],1050:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMatrix = _dereq_('regl-splom');\n\nvar Lib = _dereq_('../../lib');\nvar AxisIDs = _dereq_('../../plots/cartesian/axis_ids');\nvar selectMode = _dereq_('../../components/dragelement/helpers').selectMode;\n\nmodule.exports = function plot(gd, _, splomCalcData) {\n if(!splomCalcData.length) return;\n\n for(var i = 0; i < splomCalcData.length; i++) {\n plotOne(gd, splomCalcData[i][0]);\n }\n};\n\nfunction plotOne(gd, cd0) {\n var fullLayout = gd._fullLayout;\n var gs = fullLayout._size;\n var trace = cd0.trace;\n var stash = cd0.t;\n var scene = fullLayout._splomScenes[trace.uid];\n var matrixOpts = scene.matrixOptions;\n var cdata = matrixOpts.cdata;\n var regl = fullLayout._glcanvas.data()[0].regl;\n var dragmode = fullLayout.dragmode;\n var xa, ya;\n var i, j, k;\n\n if(cdata.length === 0) return;\n\n // augment options with proper upper/lower halves\n // regl-splom's default grid starts from bottom-left\n matrixOpts.lower = trace.showupperhalf;\n matrixOpts.upper = trace.showlowerhalf;\n matrixOpts.diagonal = trace.diagonal.visible;\n\n var visibleDims = trace._visibleDims;\n var visibleLength = cdata.length;\n var viewOpts = scene.viewOpts = {};\n viewOpts.ranges = new Array(visibleLength);\n viewOpts.domains = new Array(visibleLength);\n\n for(k = 0; k < visibleDims.length; k++) {\n i = visibleDims[k];\n\n var rng = viewOpts.ranges[k] = new Array(4);\n var dmn = viewOpts.domains[k] = new Array(4);\n\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]);\n if(xa) {\n rng[0] = xa._rl[0];\n rng[2] = xa._rl[1];\n dmn[0] = xa.domain[0];\n dmn[2] = xa.domain[1];\n }\n\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]);\n if(ya) {\n rng[1] = ya._rl[0];\n rng[3] = ya._rl[1];\n dmn[1] = ya.domain[0];\n dmn[3] = ya.domain[1];\n }\n }\n\n var plotGlPixelRatio = gd._context.plotGlPixelRatio;\n var l = gs.l * plotGlPixelRatio;\n var b = gs.b * plotGlPixelRatio;\n var w = gs.w * plotGlPixelRatio;\n var h = gs.h * plotGlPixelRatio;\n\n viewOpts.viewport = [l, b, w + l, h + b];\n\n if(scene.matrix === true) {\n scene.matrix = createMatrix(regl);\n }\n\n var clickSelectEnabled = fullLayout.clickmode.indexOf('select') > -1;\n var isSelectMode = selectMode(dragmode) ||\n !!trace.selectedpoints || clickSelectEnabled;\n var needsBaseUpdate = true;\n\n if(isSelectMode) {\n var commonLength = trace._length;\n\n // regenerate scene batch, if traces number changed during selection\n if(trace.selectedpoints) {\n scene.selectBatch = trace.selectedpoints;\n\n var selPts = trace.selectedpoints;\n var selDict = {};\n for(i = 0; i < selPts.length; i++) {\n selDict[selPts[i]] = true;\n }\n var unselPts = [];\n for(i = 0; i < commonLength; i++) {\n if(!selDict[i]) unselPts.push(i);\n }\n scene.unselectBatch = unselPts;\n }\n\n // precalculate px coords since we are not going to pan during select\n var xpx = stash.xpx = new Array(visibleLength);\n var ypx = stash.ypx = new Array(visibleLength);\n\n for(k = 0; k < visibleDims.length; k++) {\n i = visibleDims[k];\n\n xa = AxisIDs.getFromId(gd, trace._diag[i][0]);\n if(xa) {\n xpx[k] = new Array(commonLength);\n for(j = 0; j < commonLength; j++) {\n xpx[k][j] = xa.c2p(cdata[k][j]);\n }\n }\n\n ya = AxisIDs.getFromId(gd, trace._diag[i][1]);\n if(ya) {\n ypx[k] = new Array(commonLength);\n for(j = 0; j < commonLength; j++) {\n ypx[k][j] = ya.c2p(cdata[k][j]);\n }\n }\n }\n\n if(scene.selectBatch.length || scene.unselectBatch.length) {\n var unselOpts = Lib.extendFlat({}, matrixOpts, scene.unselectedOptions, viewOpts);\n var selOpts = Lib.extendFlat({}, matrixOpts, scene.selectedOptions, viewOpts);\n scene.matrix.update(unselOpts, selOpts);\n needsBaseUpdate = false;\n }\n } else {\n stash.xpx = stash.ypx = null;\n }\n\n if(needsBaseUpdate) {\n var opts = Lib.extendFlat({}, matrixOpts, viewOpts);\n scene.matrix.update(opts, null);\n }\n}\n\n},{\"../../components/dragelement/helpers\":385,\"../../lib\":515,\"../../plots/cartesian/axis_ids\":570,\"regl-splom\":283}],1051:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nmodule.exports = function sceneUpdate(gd, trace) {\n var fullLayout = gd._fullLayout;\n var uid = trace.uid;\n\n // must place ref to 'scene' in fullLayout, so that:\n // - it can be relinked properly on updates\n // - it can be destroyed properly when needed\n var splomScenes = fullLayout._splomScenes;\n if(!splomScenes) splomScenes = fullLayout._splomScenes = {};\n\n var reset = {\n dirty: true,\n selectBatch: [],\n unselectBatch: []\n };\n\n var first = {\n matrix: false,\n selectBatch: [],\n unselectBatch: []\n };\n\n var scene = splomScenes[trace.uid];\n\n if(!scene) {\n scene = splomScenes[uid] = Lib.extendFlat({}, reset, first);\n\n scene.draw = function draw() {\n if(scene.matrix && scene.matrix.draw) {\n if(scene.selectBatch.length || scene.unselectBatch.length) {\n scene.matrix.draw(scene.unselectBatch, scene.selectBatch);\n } else {\n scene.matrix.draw();\n }\n }\n\n scene.dirty = false;\n };\n\n // remove scene resources\n scene.destroy = function destroy() {\n if(scene.matrix && scene.matrix.destroy) {\n scene.matrix.destroy();\n }\n scene.matrixOptions = null;\n scene.selectBatch = null;\n scene.unselectBatch = null;\n scene = null;\n };\n }\n\n // In case if we have scene from the last calc - reset data\n if(!scene.dirty) {\n Lib.extendFlat(scene, reset);\n }\n\n return scene;\n};\n\n},{\"../../lib\":515}],1052:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar pushUnique = Lib.pushUnique;\nvar subTypes = _dereq_('../scatter/subtypes');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function select(searchInfo, selectionTester) {\n var cd = searchInfo.cd;\n var trace = cd[0].trace;\n var stash = cd[0].t;\n var scene = searchInfo.scene;\n var cdata = scene.matrixOptions.cdata;\n var xa = searchInfo.xaxis;\n var ya = searchInfo.yaxis;\n var selection = [];\n\n if(!scene) return selection;\n\n var hasOnlyLines = (!subTypes.hasMarkers(trace) && !subTypes.hasText(trace));\n if(trace.visible !== true || hasOnlyLines) return selection;\n\n var xi = helpers.getDimIndex(trace, xa);\n var yi = helpers.getDimIndex(trace, ya);\n if(xi === false || yi === false) return selection;\n\n var xpx = stash.xpx[xi];\n var ypx = stash.ypx[yi];\n var x = cdata[xi];\n var y = cdata[yi];\n var els = (searchInfo.scene.selectBatch || []).slice();\n var unels = [];\n\n // degenerate polygon does not enable selection\n // filter out points by visible scatter ones\n if(selectionTester !== false && !selectionTester.degenerate) {\n for(var i = 0; i < x.length; i++) {\n if(selectionTester.contains([xpx[i], ypx[i]], null, i, searchInfo)) {\n selection.push({\n pointNumber: i,\n x: x[i],\n y: y[i]\n });\n\n pushUnique(els, i);\n } else if(els.indexOf(i) !== -1) {\n pushUnique(els, i);\n } else {\n unels.push(i);\n }\n }\n }\n\n var matrixOpts = scene.matrixOptions;\n\n if(!els.length && !unels.length) {\n scene.matrix.update(matrixOpts, null);\n } else if(!scene.selectBatch.length && !scene.unselectBatch.length) {\n scene.matrix.update(\n scene.unselectedOptions,\n Lib.extendFlat({}, matrixOpts, scene.selectedOptions, scene.viewOpts)\n );\n }\n\n scene.selectBatch = els;\n scene.unselectBatch = unels;\n\n return selection;\n};\n\n},{\"../../lib\":515,\"../scatter/subtypes\":961,\"./helpers\":1047}],1053:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar mesh3dAttrs = _dereq_('../mesh3d/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nvar attrs = {\n x: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n y: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n z: {\n valType: 'data_array',\n editType: 'calc+clearAxisTypes',\n },\n\n u: {\n valType: 'data_array',\n editType: 'calc',\n },\n v: {\n valType: 'data_array',\n editType: 'calc',\n },\n w: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n starts: {\n x: {\n valType: 'data_array',\n editType: 'calc',\n },\n y: {\n valType: 'data_array',\n editType: 'calc',\n },\n z: {\n valType: 'data_array',\n editType: 'calc',\n },\n editType: 'calc'\n },\n\n maxdisplayed: {\n valType: 'integer',\n min: 0,\n dflt: 1000,\n editType: 'calc',\n },\n\n // TODO\n //\n // Should add 'absolute' (like cone traces have), but currently gl-streamtube3d's\n // `absoluteTubeSize` doesn't behave well enough for our needs.\n //\n // 'fixed' would be a nice addition to plot stream 'lines', see\n // https://github.com/plotly/plotly.js/commit/812be20750e21e0a1831975001c248d365850f73#r29129877\n //\n // sizemode: {\n // valType: 'enumerated',\n // values: ['scaled', 'absolute', 'fixed'],\n // dflt: 'scaled',\n // editType: 'calc',\n //\n // },\n\n sizeref: {\n valType: 'number',\n editType: 'calc',\n min: 0,\n dflt: 1,\n },\n\n text: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n hovertemplate: hovertemplateAttrs({editType: 'calc'}, {\n keys: [\n 'tubex', 'tubey', 'tubez',\n 'tubeu', 'tubev', 'tubew',\n 'norm', 'divergence'\n ]\n }),\n uhoverformat: axisHoverFormat('u', 1),\n vhoverformat: axisHoverFormat('v', 1),\n whoverformat: axisHoverFormat('w', 1),\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n};\n\nextendFlat(attrs, colorScaleAttrs('', {\n colorAttr: 'u/v/w norm',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}));\n\nvar fromMesh3d = ['opacity', 'lightposition', 'lighting'];\nfromMesh3d.forEach(function(k) {\n attrs[k] = mesh3dAttrs[k];\n});\n\nattrs.hoverinfo = extendFlat({}, baseAttrs.hoverinfo, {\n editType: 'calc',\n flags: ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'divergence', 'text', 'name'],\n dflt: 'x+y+z+norm+text+name'\n});\n\nattrs.transforms = undefined;\n\nmodule.exports = attrs;\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../mesh3d/attributes\":876}],1054:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\nfunction calc(gd, trace) {\n trace._len = Math.min(\n trace.u.length,\n trace.v.length,\n trace.w.length,\n trace.x.length,\n trace.y.length,\n trace.z.length\n );\n\n trace._u = filter(trace.u, trace._len);\n trace._v = filter(trace.v, trace._len);\n trace._w = filter(trace.w, trace._len);\n trace._x = filter(trace.x, trace._len);\n trace._y = filter(trace.y, trace._len);\n trace._z = filter(trace.z, trace._len);\n\n var grid = processGrid(trace);\n trace._gridFill = grid.fill;\n trace._Xs = grid.Xs;\n trace._Ys = grid.Ys;\n trace._Zs = grid.Zs;\n trace._len = grid.len;\n\n var slen = 0;\n var startx, starty, startz;\n if(trace.starts) {\n startx = filter(trace.starts.x || []);\n starty = filter(trace.starts.y || []);\n startz = filter(trace.starts.z || []);\n slen = Math.min(startx.length, starty.length, startz.length);\n }\n trace._startsX = startx || [];\n trace._startsY = starty || [];\n trace._startsZ = startz || [];\n\n var normMax = 0;\n var normMin = Infinity;\n var i;\n for(i = 0; i < trace._len; i++) {\n var u = trace._u[i];\n var v = trace._v[i];\n var w = trace._w[i];\n var norm = Math.sqrt(u * u + v * v + w * w);\n\n normMax = Math.max(normMax, norm);\n normMin = Math.min(normMin, norm);\n }\n\n colorscaleCalc(gd, trace, {\n vals: [normMin, normMax],\n containerStr: '',\n cLetter: 'c'\n });\n\n for(i = 0; i < slen; i++) {\n var sx = startx[i];\n grid.xMax = Math.max(grid.xMax, sx);\n grid.xMin = Math.min(grid.xMin, sx);\n\n var sy = starty[i];\n grid.yMax = Math.max(grid.yMax, sy);\n grid.yMin = Math.min(grid.yMin, sy);\n\n var sz = startz[i];\n grid.zMax = Math.max(grid.zMax, sz);\n grid.zMin = Math.min(grid.zMin, sz);\n }\n\n trace._slen = slen;\n trace._normMax = normMax;\n trace._xbnds = [grid.xMin, grid.xMax];\n trace._ybnds = [grid.yMin, grid.yMax];\n trace._zbnds = [grid.zMin, grid.zMax];\n}\n\nfunction processGrid(trace) {\n var x = trace._x;\n var y = trace._y;\n var z = trace._z;\n var len = trace._len;\n\n var i, j, k;\n\n var xMax = -Infinity;\n var xMin = Infinity;\n var yMax = -Infinity;\n var yMin = Infinity;\n var zMax = -Infinity;\n var zMin = Infinity;\n\n var gridFill = '';\n var filledX;\n var filledY;\n var filledZ;\n var firstX, lastX;\n var firstY, lastY;\n var firstZ, lastZ;\n if(len) {\n firstX = x[0];\n firstY = y[0];\n firstZ = z[0];\n }\n if(len > 1) {\n lastX = x[len - 1];\n lastY = y[len - 1];\n lastZ = z[len - 1];\n }\n\n for(i = 0; i < len; i++) {\n xMax = Math.max(xMax, x[i]);\n xMin = Math.min(xMin, x[i]);\n\n yMax = Math.max(yMax, y[i]);\n yMin = Math.min(yMin, y[i]);\n\n zMax = Math.max(zMax, z[i]);\n zMin = Math.min(zMin, z[i]);\n\n if(!filledX && x[i] !== firstX) {\n filledX = true;\n gridFill += 'x';\n }\n if(!filledY && y[i] !== firstY) {\n filledY = true;\n gridFill += 'y';\n }\n if(!filledZ && z[i] !== firstZ) {\n filledZ = true;\n gridFill += 'z';\n }\n }\n // fill if not filled - case of having dimension(s) with one item\n if(!filledX) gridFill += 'x';\n if(!filledY) gridFill += 'y';\n if(!filledZ) gridFill += 'z';\n\n var Xs = distinctVals(trace._x);\n var Ys = distinctVals(trace._y);\n var Zs = distinctVals(trace._z);\n\n gridFill = gridFill.replace('x', (firstX > lastX ? '-' : '+') + 'x');\n gridFill = gridFill.replace('y', (firstY > lastY ? '-' : '+') + 'y');\n gridFill = gridFill.replace('z', (firstZ > lastZ ? '-' : '+') + 'z');\n\n var empty = function() {\n len = 0;\n Xs = [];\n Ys = [];\n Zs = [];\n };\n\n // Over-specified mesh case, this would error in tube2mesh\n if(!len || len < Xs.length * Ys.length * Zs.length) empty();\n\n var getArray = function(c) { return c === 'x' ? x : c === 'y' ? y : z; };\n var getVals = function(c) { return c === 'x' ? Xs : c === 'y' ? Ys : Zs; };\n var getDir = function(c) { return c[len - 1] < c[0] ? -1 : 1; };\n\n var arrK = getArray(gridFill[1]);\n var arrJ = getArray(gridFill[3]);\n var arrI = getArray(gridFill[5]);\n var nk = getVals(gridFill[1]).length;\n var nj = getVals(gridFill[3]).length;\n var ni = getVals(gridFill[5]).length;\n\n var arbitrary = false;\n\n var getIndex = function(_i, _j, _k) {\n return nk * (nj * _i + _j) + _k;\n };\n\n var dirK = getDir(getArray(gridFill[1]));\n var dirJ = getDir(getArray(gridFill[3]));\n var dirI = getDir(getArray(gridFill[5]));\n\n for(i = 0; i < ni - 1; i++) {\n for(j = 0; j < nj - 1; j++) {\n for(k = 0; k < nk - 1; k++) {\n var q000 = getIndex(i, j, k);\n var q001 = getIndex(i, j, k + 1);\n var q010 = getIndex(i, j + 1, k);\n var q100 = getIndex(i + 1, j, k);\n\n if(\n !(arrK[q000] * dirK < arrK[q001] * dirK) ||\n !(arrJ[q000] * dirJ < arrJ[q010] * dirJ) ||\n !(arrI[q000] * dirI < arrI[q100] * dirI)\n ) {\n arbitrary = true;\n }\n\n if(arbitrary) break;\n }\n if(arbitrary) break;\n }\n if(arbitrary) break;\n }\n\n if(arbitrary) {\n Lib.warn('Encountered arbitrary coordinates! Unable to input data grid.');\n empty();\n }\n\n return {\n xMin: xMin,\n yMin: yMin,\n zMin: zMin,\n xMax: xMax,\n yMax: yMax,\n zMax: zMax,\n Xs: Xs,\n Ys: Ys,\n Zs: Zs,\n len: len,\n fill: gridFill\n };\n}\n\nfunction distinctVals(col) {\n return Lib.distinctVals(col).vals;\n}\n\nfunction filter(arr, len) {\n if(len === undefined) len = arr.length;\n\n // no need for casting typed arrays to numbers\n if(Lib.isTypedArray(arr)) return arr.subarray(0, len);\n\n var values = [];\n for(var i = 0; i < len; i++) {\n values[i] = +arr[i];\n }\n return values;\n}\n\nmodule.exports = {\n calc: calc,\n filter: filter,\n processGrid: processGrid\n};\n\n},{\"../../components/colorscale/calc\":375,\"../../lib\":515}],1055:[function(_dereq_,module,exports){\n'use strict';\n\nvar tube2mesh = _dereq_('../../../stackgl_modules').gl_streamtube3d;\nvar createTubeMesh = tube2mesh.createTubeMesh;\n\nvar Lib = _dereq_('../../lib');\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nvar axisName2scaleIndex = {xaxis: 0, yaxis: 1, zaxis: 2};\n\nfunction Streamtube(scene, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = null;\n this.data = null;\n}\n\nvar proto = Streamtube.prototype;\n\nproto.handlePick = function(selection) {\n var sceneLayout = this.scene.fullSceneLayout;\n var dataScale = this.scene.dataScale;\n\n function fromDataScale(v, axisName) {\n var ax = sceneLayout[axisName];\n var scale = dataScale[axisName2scaleIndex[axisName]];\n return ax.l2c(v) / scale;\n }\n\n if(selection.object === this.mesh) {\n var pos = selection.data.position;\n var uvx = selection.data.velocity;\n\n selection.traceCoordinate = [\n fromDataScale(pos[0], 'xaxis'),\n fromDataScale(pos[1], 'yaxis'),\n fromDataScale(pos[2], 'zaxis'),\n\n fromDataScale(uvx[0], 'xaxis'),\n fromDataScale(uvx[1], 'yaxis'),\n fromDataScale(uvx[2], 'zaxis'),\n\n // u/v/w norm\n selection.data.intensity * this.data._normMax,\n // divergence\n selection.data.divergence\n ];\n\n selection.textLabel = this.data.hovertext || this.data.text;\n\n return true;\n }\n};\n\nfunction getDfltStartingPositions(vec) {\n var len = vec.length;\n var s;\n\n if(len > 2) {\n s = vec.slice(1, len - 1);\n } else if(len === 2) {\n s = [(vec[0] + vec[1]) / 2];\n } else {\n s = vec;\n }\n return s;\n}\n\nfunction getBoundPads(vec) {\n var len = vec.length;\n if(len === 1) {\n return [0.5, 0.5];\n } else {\n return [vec[1] - vec[0], vec[len - 1] - vec[len - 2]];\n }\n}\n\nfunction convert(scene, trace) {\n var sceneLayout = scene.fullSceneLayout;\n var dataScale = scene.dataScale;\n var len = trace._len;\n var tubeOpts = {};\n\n function toDataCoords(arr, axisName) {\n var ax = sceneLayout[axisName];\n var scale = dataScale[axisName2scaleIndex[axisName]];\n return Lib.simpleMap(arr, function(v) { return ax.d2l(v) * scale; });\n }\n\n tubeOpts.vectors = zip3(\n toDataCoords(trace._u, 'xaxis'),\n toDataCoords(trace._v, 'yaxis'),\n toDataCoords(trace._w, 'zaxis'),\n len\n );\n\n // Over-specified mesh case, this would error in tube2mesh\n if(!len) {\n return {\n positions: [],\n cells: []\n };\n }\n\n var meshx = toDataCoords(trace._Xs, 'xaxis');\n var meshy = toDataCoords(trace._Ys, 'yaxis');\n var meshz = toDataCoords(trace._Zs, 'zaxis');\n\n tubeOpts.meshgrid = [meshx, meshy, meshz];\n tubeOpts.gridFill = trace._gridFill;\n\n var slen = trace._slen;\n if(slen) {\n tubeOpts.startingPositions = zip3(\n toDataCoords(trace._startsX, 'xaxis'),\n toDataCoords(trace._startsY, 'yaxis'),\n toDataCoords(trace._startsZ, 'zaxis')\n );\n } else {\n // Default starting positions:\n //\n // if len>2, cut xz plane at min-y,\n // takes all x/y/z pts on that plane except those on the edges\n // to generate \"well-defined\" tubes,\n //\n // if len=2, take position halfway between two the pts,\n //\n // if len=1, take that pt\n var sy0 = meshy[0];\n var sx = getDfltStartingPositions(meshx);\n var sz = getDfltStartingPositions(meshz);\n var startingPositions = new Array(sx.length * sz.length);\n var m = 0;\n\n for(var i = 0; i < sx.length; i++) {\n for(var k = 0; k < sz.length; k++) {\n startingPositions[m++] = [sx[i], sy0, sz[k]];\n }\n }\n tubeOpts.startingPositions = startingPositions;\n }\n\n tubeOpts.colormap = parseColorScale(trace);\n tubeOpts.tubeSize = trace.sizeref;\n tubeOpts.maxLength = trace.maxdisplayed;\n\n // add some padding around the bounds\n // to e.g. allow tubes starting from a slice of the x/y/z mesh\n // to go beyond bounds a little bit w/o getting clipped\n var xbnds = toDataCoords(trace._xbnds, 'xaxis');\n var ybnds = toDataCoords(trace._ybnds, 'yaxis');\n var zbnds = toDataCoords(trace._zbnds, 'zaxis');\n var xpads = getBoundPads(meshx);\n var ypads = getBoundPads(meshy);\n var zpads = getBoundPads(meshz);\n\n var bounds = [\n [xbnds[0] - xpads[0], ybnds[0] - ypads[0], zbnds[0] - zpads[0]],\n [xbnds[1] + xpads[1], ybnds[1] + ypads[1], zbnds[1] + zpads[1]]\n ];\n\n var meshData = tube2mesh(tubeOpts, bounds);\n\n // N.B. cmin/cmax correspond to the min/max vector norm\n // in the u/v/w arrays, which in general is NOT equal to max\n // intensity that colors the tubes.\n var cOpts = extractOpts(trace);\n meshData.vertexIntensityBounds = [cOpts.min / trace._normMax, cOpts.max / trace._normMax];\n\n // pass gl-mesh3d lighting attributes\n var lp = trace.lightposition;\n meshData.lightPosition = [lp.x, lp.y, lp.z];\n meshData.ambient = trace.lighting.ambient;\n meshData.diffuse = trace.lighting.diffuse;\n meshData.specular = trace.lighting.specular;\n meshData.roughness = trace.lighting.roughness;\n meshData.fresnel = trace.lighting.fresnel;\n meshData.opacity = trace.opacity;\n\n // stash autorange pad value\n trace._pad = meshData.tubeScale * trace.sizeref * 2;\n\n return meshData;\n}\n\nproto.update = function(data) {\n this.data = data;\n\n var meshData = convert(this.scene, data);\n this.mesh.update(meshData);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createStreamtubeTrace(scene, data) {\n var gl = scene.glplot.gl;\n\n var meshData = convert(scene, data);\n var mesh = createTubeMesh(gl, meshData);\n\n var streamtube = new Streamtube(scene, data.uid);\n streamtube.mesh = mesh;\n streamtube.data = data;\n mesh._trace = streamtube;\n\n scene.glplot.add(mesh);\n\n return streamtube;\n}\n\nmodule.exports = createStreamtubeTrace;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/colorscale\":379,\"../../lib\":515,\"../../lib/gl_format_color\":511,\"../../plots/gl3d/zip3\":618}],1056:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var u = coerce('u');\n var v = coerce('v');\n var w = coerce('w');\n\n var x = coerce('x');\n var y = coerce('y');\n var z = coerce('z');\n\n if(\n !u || !u.length || !v || !v.length || !w || !w.length ||\n !x || !x.length || !y || !y.length || !z || !z.length\n ) {\n traceOut.visible = false;\n return;\n }\n\n coerce('starts.x');\n coerce('starts.y');\n coerce('starts.z');\n\n coerce('maxdisplayed');\n coerce('sizeref');\n\n coerce('lighting.ambient');\n coerce('lighting.diffuse');\n coerce('lighting.specular');\n coerce('lighting.roughness');\n coerce('lighting.fresnel');\n coerce('lightposition.x');\n coerce('lightposition.y');\n coerce('lightposition.z');\n\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'});\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('uhoverformat');\n coerce('vhoverformat');\n coerce('whoverformat');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // disable 1D transforms (for now)\n // x/y/z and u/v/w have matching lengths,\n // but they don't have to match with starts.(x|y|z)\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"./attributes\":1053}],1057:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'streamtube',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n calc: _dereq_('./calc').calc,\n plot: _dereq_('./convert'),\n eventData: function(out, pt) {\n out.tubex = out.x;\n out.tubey = out.y;\n out.tubez = out.z;\n\n out.tubeu = pt.traceCoordinate[3];\n out.tubev = pt.traceCoordinate[4];\n out.tubew = pt.traceCoordinate[5];\n\n out.norm = pt.traceCoordinate[6];\n out.divergence = pt.traceCoordinate[7];\n\n // Does not correspond to input x/y/z, so delete them\n delete out.x;\n delete out.y;\n delete out.z;\n\n return out;\n },\n\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":607,\"./attributes\":1053,\"./calc\":1054,\"./convert\":1055,\"./defaults\":1056}],1058:[function(_dereq_,module,exports){\n'use strict';\n\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar pieAttrs = _dereq_('../pie/attributes');\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: {\n valType: 'data_array',\n editType: 'calc',\n },\n parents: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n values: {\n valType: 'data_array',\n editType: 'calc',\n },\n branchvalues: {\n valType: 'enumerated',\n values: ['remainder', 'total'],\n dflt: 'remainder',\n editType: 'calc',\n },\n count: {\n valType: 'flaglist',\n flags: [\n 'branches',\n 'leaves'\n ],\n dflt: 'leaves',\n editType: 'calc',\n },\n\n level: {\n valType: 'any',\n editType: 'plot',\n anim: true,\n },\n maxdepth: {\n valType: 'integer',\n editType: 'plot',\n dflt: -1,\n },\n\n marker: extendFlat({\n colors: {\n valType: 'data_array',\n editType: 'calc',\n },\n\n // colorinheritance: {\n // valType: 'enumerated',\n // values: ['per-branch', 'per-label', false]\n // },\n\n line: {\n color: extendFlat({}, pieAttrs.marker.line.color, {\n dflt: null,\n }),\n width: extendFlat({}, pieAttrs.marker.line.width, {dflt: 1}),\n editType: 'calc'\n },\n editType: 'calc'\n },\n colorScaleAttrs('marker', {\n colorAttr: 'colors',\n anim: false // TODO: set to anim: true?\n })\n ),\n\n leaf: {\n opacity: {\n valType: 'number',\n editType: 'style',\n min: 0,\n max: 1,\n },\n editType: 'plot'\n },\n\n text: pieAttrs.text,\n textinfo: {\n valType: 'flaglist',\n flags: [\n 'label',\n 'text',\n 'value',\n 'current path',\n 'percent root',\n 'percent entry',\n 'percent parent'\n ],\n extras: ['none'],\n editType: 'plot',\n },\n\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n hovertext: pieAttrs.hovertext,\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: [\n 'label',\n 'text',\n 'value',\n 'name',\n 'current path',\n 'percent root',\n 'percent entry',\n 'percent parent'\n ],\n dflt: 'label+text+value+name'\n }),\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textfont: pieAttrs.textfont,\n insidetextorientation: pieAttrs.insidetextorientation,\n insidetextfont: pieAttrs.insidetextfont,\n outsidetextfont: extendFlat({}, pieAttrs.outsidetextfont, {\n }),\n rotation: {\n valType: 'angle',\n dflt: 0,\n editType: 'plot',\n },\n sort: pieAttrs.sort,\n\n root: {\n color: {\n valType: 'color',\n editType: 'calc',\n dflt: 'rgba(0,0,0,0)',\n },\n editType: 'calc'\n },\n\n domain: domainAttrs({name: 'sunburst', trace: true, editType: 'calc'})\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/domain\":593,\"../../plots/template_attributes\":642,\"../pie/attributes\":910,\"./constants\":1061}],1059:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'sunburst';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":628}],1060:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar isNumeric = _dereq_('fast-isnumeric');\n\nvar Lib = _dereq_('../../lib');\nvar makeColorScaleFn = _dereq_('../../components/colorscale').makeColorScaleFuncFromTrace;\nvar makePullColorFn = _dereq_('../pie/calc').makePullColorFn;\nvar generateExtendedColors = _dereq_('../pie/calc').generateExtendedColors;\nvar colorscaleCalc = _dereq_('../../components/colorscale').calc;\n\nvar ALMOST_EQUAL = _dereq_('../../constants/numerical').ALMOST_EQUAL;\n\nvar sunburstExtendedColorWays = {};\nvar treemapExtendedColorWays = {};\nvar icicleExtendedColorWays = {};\n\nexports.calc = function(gd, trace) {\n var fullLayout = gd._fullLayout;\n var ids = trace.ids;\n var hasIds = Lib.isArrayOrTypedArray(ids);\n var labels = trace.labels;\n var parents = trace.parents;\n var values = trace.values;\n var hasValues = Lib.isArrayOrTypedArray(values);\n var cd = [];\n\n var parent2children = {};\n var refs = {};\n var addToLookup = function(parent, v) {\n if(parent2children[parent]) parent2children[parent].push(v);\n else parent2children[parent] = [v];\n refs[v] = 1;\n };\n\n // treat number `0` as valid\n var isValidKey = function(k) {\n return k || typeof k === 'number';\n };\n\n var isValidVal = function(i) {\n return !hasValues || (isNumeric(values[i]) && values[i] >= 0);\n };\n\n var len;\n var isValid;\n var getId;\n\n if(hasIds) {\n len = Math.min(ids.length, parents.length);\n isValid = function(i) { return isValidKey(ids[i]) && isValidVal(i); };\n getId = function(i) { return String(ids[i]); };\n } else {\n len = Math.min(labels.length, parents.length);\n isValid = function(i) { return isValidKey(labels[i]) && isValidVal(i); };\n // TODO We could allow some label / parent duplication\n //\n // From AJ:\n // It would work OK for one level\n // (multiple rows with the same name and different parents -\n // or even the same parent) but if that name is then used as a parent\n // which one is it?\n getId = function(i) { return String(labels[i]); };\n }\n\n if(hasValues) len = Math.min(len, values.length);\n\n for(var i = 0; i < len; i++) {\n if(isValid(i)) {\n var id = getId(i);\n var pid = isValidKey(parents[i]) ? String(parents[i]) : '';\n\n var cdi = {\n i: i,\n id: id,\n pid: pid,\n label: isValidKey(labels[i]) ? String(labels[i]) : ''\n };\n\n if(hasValues) cdi.v = +values[i];\n cd.push(cdi);\n addToLookup(pid, id);\n }\n }\n\n if(!parent2children['']) {\n var impliedRoots = [];\n var k;\n for(k in parent2children) {\n if(!refs[k]) {\n impliedRoots.push(k);\n }\n }\n\n // if an `id` has no ref in the `parents` array,\n // take it as being the root node\n\n if(impliedRoots.length === 1) {\n k = impliedRoots[0];\n cd.unshift({\n hasImpliedRoot: true,\n id: k,\n pid: '',\n label: k\n });\n } else {\n return Lib.warn([\n 'Multiple implied roots, cannot build', trace.type, 'hierarchy of', trace.name + '.',\n 'These roots include:', impliedRoots.join(', ')\n ].join(' '));\n }\n } else if(parent2children[''].length > 1) {\n var dummyId = Lib.randstr();\n\n // if multiple rows linked to the root node,\n // add dummy \"root of roots\" node to make d3 build the hierarchy successfully\n\n for(var j = 0; j < cd.length; j++) {\n if(cd[j].pid === '') {\n cd[j].pid = dummyId;\n }\n }\n\n cd.unshift({\n hasMultipleRoots: true,\n id: dummyId,\n pid: '',\n label: ''\n });\n }\n\n // TODO might be better to replace stratify() with our own algorithm\n var root;\n try {\n root = d3Hierarchy.stratify()\n .id(function(d) { return d.id; })\n .parentId(function(d) { return d.pid; })(cd);\n } catch(e) {\n return Lib.warn([\n 'Failed to build', trace.type, 'hierarchy of', trace.name + '.',\n 'Error:', e.message\n ].join(' '));\n }\n\n var hierarchy = d3Hierarchy.hierarchy(root);\n var failed = false;\n\n if(hasValues) {\n switch(trace.branchvalues) {\n case 'remainder':\n hierarchy.sum(function(d) { return d.data.v; });\n break;\n case 'total':\n hierarchy.each(function(d) {\n var cdi = d.data.data;\n var v = cdi.v;\n\n if(d.children) {\n var partialSum = d.children.reduce(function(a, c) {\n return a + c.data.data.v;\n }, 0);\n\n // N.B. we must fill in `value` for generated sectors\n // with the partialSum to compute the correct partition\n if(cdi.hasImpliedRoot || cdi.hasMultipleRoots) {\n v = partialSum;\n }\n\n if(v < partialSum * ALMOST_EQUAL) {\n failed = true;\n return Lib.warn([\n 'Total value for node', d.data.data.id, 'of', trace.name,\n 'is smaller than the sum of its children.',\n '\\nparent value =', v,\n '\\nchildren sum =', partialSum\n ].join(' '));\n }\n }\n\n d.value = v;\n });\n break;\n }\n } else {\n countDescendants(hierarchy, trace, {\n branches: trace.count.indexOf('branches') !== -1,\n leaves: trace.count.indexOf('leaves') !== -1\n });\n }\n\n if(failed) return;\n\n // TODO add way to sort by height also?\n if(trace.sort) {\n hierarchy.sort(function(a, b) { return b.value - a.value; });\n }\n\n var pullColor;\n var scaleColor;\n var colors = trace.marker.colors || [];\n var hasColors = !!colors.length;\n\n if(trace._hasColorscale) {\n if(!hasColors) {\n colors = hasValues ? trace.values : trace._values;\n }\n\n colorscaleCalc(gd, trace, {\n vals: colors,\n containerStr: 'marker',\n cLetter: 'c'\n });\n\n scaleColor = makeColorScaleFn(trace.marker);\n } else {\n pullColor = makePullColorFn(fullLayout['_' + trace.type + 'colormap']);\n }\n\n // TODO keep track of 'root-children' (i.e. branch) for hover info etc.\n\n hierarchy.each(function(d) {\n var cdi = d.data.data;\n // N.B. this mutates items in `cd`\n cdi.color = trace._hasColorscale ?\n scaleColor(colors[cdi.i]) :\n pullColor(colors[cdi.i], cdi.id);\n });\n\n cd[0].hierarchy = hierarchy;\n\n return cd;\n};\n\n/*\n * `calc` filled in (and collated) explicit colors.\n * Now we need to propagate these explicit colors to other traces,\n * and fill in default colors.\n * This is done after sorting, so we pick defaults\n * in the order slices will be displayed\n */\nexports._runCrossTraceCalc = function(desiredType, gd) {\n var fullLayout = gd._fullLayout;\n var calcdata = gd.calcdata;\n var colorWay = fullLayout[desiredType + 'colorway'];\n var colorMap = fullLayout['_' + desiredType + 'colormap'];\n\n if(fullLayout['extend' + desiredType + 'colors']) {\n colorWay = generateExtendedColors(colorWay,\n desiredType === 'icicle' ? icicleExtendedColorWays :\n desiredType === 'treemap' ? treemapExtendedColorWays :\n sunburstExtendedColorWays\n );\n }\n var dfltColorCount = 0;\n\n var rootColor;\n function pickColor(d) {\n var cdi = d.data.data;\n var id = cdi.id;\n\n if(cdi.color === false) {\n if(colorMap[id]) {\n // have we seen this label and assigned a color to it in a previous trace?\n cdi.color = colorMap[id];\n } else if(d.parent) {\n if(d.parent.parent) {\n // from third-level on, inherit from parent\n cdi.color = d.parent.data.data.color;\n } else {\n // pick new color for second level\n colorMap[id] = cdi.color = colorWay[dfltColorCount % colorWay.length];\n dfltColorCount++;\n }\n } else {\n // set root color. no coloring by default.\n cdi.color = rootColor;\n }\n }\n }\n\n for(var i = 0; i < calcdata.length; i++) {\n var cd = calcdata[i];\n var cd0 = cd[0];\n if(cd0.trace.type === desiredType && cd0.hierarchy) {\n rootColor = cd0.trace.root.color;\n cd0.hierarchy.each(pickColor);\n }\n }\n};\n\nexports.crossTraceCalc = function(gd) {\n return exports._runCrossTraceCalc('sunburst', gd);\n};\n\nfunction countDescendants(node, trace, opts) {\n var nChild = 0;\n\n var children = node.children;\n if(children) {\n var len = children.length;\n\n for(var i = 0; i < len; i++) {\n nChild += countDescendants(children[i], trace, opts);\n }\n\n if(opts.branches) nChild++; // count this branch\n } else {\n if(opts.leaves) nChild++; // count this leaf\n }\n\n // save to the node\n node.value = node.data.data.value = nChild;\n\n // save to the trace\n if(!trace._values) trace._values = [];\n trace._values[node.data.data.i] = nChild;\n\n return nChild;\n}\n\n},{\"../../components/colorscale\":379,\"../../constants/numerical\":491,\"../../lib\":515,\"../pie/calc\":912,\"d3-hierarchy\":115,\"fast-isnumeric\":190}],1061:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n CLICK_TRANSITION_TIME: 750,\n CLICK_TRANSITION_EASING: 'linear',\n eventDataKeys: [\n // string\n 'currentPath',\n 'root',\n 'entry',\n // no need to add 'parent' here\n\n // percentages i.e. ratios\n 'percentRoot',\n 'percentEntry',\n 'percentParent'\n ]\n};\n\n},{}],1062:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar hasColorscale = Colorscale.hasColorscale;\nvar colorscaleDefaults = Colorscale.handleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var parents = coerce('parents');\n\n if(!labels || !labels.length || !parents || !parents.length) {\n traceOut.visible = false;\n return;\n }\n\n var vals = coerce('values');\n if(vals && vals.length) {\n coerce('branchvalues');\n } else {\n coerce('count');\n }\n\n coerce('level');\n coerce('maxdepth');\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n coerce('marker.colors');\n var withColorscale = traceOut._hasColorscale = (\n hasColorscale(traceIn, 'marker', 'colors') ||\n (traceIn.marker || {}).coloraxis // N.B. special logic to consider \"values\" colorscales\n );\n if(withColorscale) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n }\n\n coerce('leaf.opacity', withColorscale ? 1 : 0.7);\n\n var text = coerce('text');\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo', Array.isArray(text) ? 'text+label' : 'label');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = 'auto';\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n\n coerce('insidetextorientation');\n\n coerce('sort');\n\n coerce('rotation');\n\n coerce('root.color');\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // do not support transforms for now\n traceOut._length = null;\n};\n\n},{\"../../components/colorscale\":379,\"../../lib\":515,\"../../plots/domain\":593,\"../bar/defaults\":661,\"./attributes\":1058}],1063:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Registry = _dereq_('../../registry');\nvar appendArrayPointValue = _dereq_('../../components/fx/helpers').appendArrayPointValue;\nvar Fx = _dereq_('../../components/fx');\nvar Lib = _dereq_('../../lib');\nvar Events = _dereq_('../../lib/events');\n\nvar helpers = _dereq_('./helpers');\nvar pieHelpers = _dereq_('../pie/helpers');\n\nvar formatValue = pieHelpers.formatPieValue;\n\nmodule.exports = function attachFxHandlers(sliceTop, entry, gd, cd, opts) {\n var cd0 = cd[0];\n var trace = cd0.trace;\n var hierarchy = cd0.hierarchy;\n\n var isSunburst = trace.type === 'sunburst';\n var isTreemapOrIcicle =\n trace.type === 'treemap' ||\n trace.type === 'icicle';\n\n // hover state vars\n // have we drawn a hover label, so it should be cleared later\n if(!('_hasHoverLabel' in trace)) trace._hasHoverLabel = false;\n // have we emitted a hover event, so later an unhover event should be emitted\n // note that click events do not depend on this - you can still get them\n // with hovermode: false or if you were earlier dragging, then clicked\n // in the same slice that you moused up in\n if(!('_hasHoverEvent' in trace)) trace._hasHoverEvent = false;\n\n var onMouseOver = function(pt) {\n var fullLayoutNow = gd._fullLayout;\n\n if(gd._dragging || fullLayoutNow.hovermode === false) return;\n\n var traceNow = gd._fullData[trace.index];\n var cdi = pt.data.data;\n var ptNumber = cdi.i;\n var isRoot = helpers.isHierarchyRoot(pt);\n var parent = helpers.getParent(hierarchy, pt);\n\n var val = helpers.getValue(pt);\n\n var _cast = function(astr) {\n return Lib.castOption(traceNow, ptNumber, astr);\n };\n\n var hovertemplate = _cast('hovertemplate');\n var hoverinfo = Fx.castHoverinfo(traceNow, fullLayoutNow, ptNumber);\n var separators = fullLayoutNow.separators;\n\n var eventData;\n\n if(hovertemplate || (hoverinfo && hoverinfo !== 'none' && hoverinfo !== 'skip')) {\n var hoverCenterX;\n var hoverCenterY;\n if(isSunburst) {\n hoverCenterX = cd0.cx + pt.pxmid[0] * (1 - pt.rInscribed);\n hoverCenterY = cd0.cy + pt.pxmid[1] * (1 - pt.rInscribed);\n }\n if(isTreemapOrIcicle) {\n hoverCenterX = pt._hoverX;\n hoverCenterY = pt._hoverY;\n }\n\n var hoverPt = {};\n var parts = [];\n var thisText = [];\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n\n if(hoverinfo) {\n parts = hoverinfo === 'all' ?\n traceNow._module.attributes.hoverinfo.flags :\n hoverinfo.split('+');\n }\n\n hoverPt.label = cdi.label;\n if(hasFlag('label') && hoverPt.label) thisText.push(hoverPt.label);\n\n if(cdi.hasOwnProperty('v')) {\n hoverPt.value = cdi.v;\n hoverPt.valueLabel = formatValue(hoverPt.value, separators);\n if(hasFlag('value')) thisText.push(hoverPt.valueLabel);\n }\n\n hoverPt.currentPath = pt.currentPath = helpers.getPath(pt.data);\n if(hasFlag('current path') && !isRoot) {\n thisText.push(hoverPt.currentPath);\n }\n\n var tx;\n var allPercents = [];\n var insertPercent = function() {\n if(allPercents.indexOf(tx) === -1) { // no need to add redundant info\n thisText.push(tx);\n allPercents.push(tx);\n }\n };\n\n hoverPt.percentParent = pt.percentParent = val / helpers.getValue(parent);\n hoverPt.parent = pt.parentString = helpers.getPtLabel(parent);\n if(hasFlag('percent parent')) {\n tx = helpers.formatPercent(hoverPt.percentParent, separators) + ' of ' + hoverPt.parent;\n insertPercent();\n }\n\n hoverPt.percentEntry = pt.percentEntry = val / helpers.getValue(entry);\n hoverPt.entry = pt.entry = helpers.getPtLabel(entry);\n if(hasFlag('percent entry') && !isRoot && !pt.onPathbar) {\n tx = helpers.formatPercent(hoverPt.percentEntry, separators) + ' of ' + hoverPt.entry;\n insertPercent();\n }\n\n hoverPt.percentRoot = pt.percentRoot = val / helpers.getValue(hierarchy);\n hoverPt.root = pt.root = helpers.getPtLabel(hierarchy);\n if(hasFlag('percent root') && !isRoot) {\n tx = helpers.formatPercent(hoverPt.percentRoot, separators) + ' of ' + hoverPt.root;\n insertPercent();\n }\n\n hoverPt.text = _cast('hovertext') || _cast('text');\n if(hasFlag('text')) {\n tx = hoverPt.text;\n if(Lib.isValidTextValue(tx)) thisText.push(tx);\n }\n\n eventData = [makeEventData(pt, traceNow, opts.eventDataKeys)];\n\n var hoverItems = {\n trace: traceNow,\n y: hoverCenterY,\n _x0: pt._x0,\n _x1: pt._x1,\n _y0: pt._y0,\n _y1: pt._y1,\n text: thisText.join('
'),\n name: (hovertemplate || hasFlag('name')) ? traceNow.name : undefined,\n color: _cast('hoverlabel.bgcolor') || cdi.color,\n borderColor: _cast('hoverlabel.bordercolor'),\n fontFamily: _cast('hoverlabel.font.family'),\n fontSize: _cast('hoverlabel.font.size'),\n fontColor: _cast('hoverlabel.font.color'),\n nameLength: _cast('hoverlabel.namelength'),\n textAlign: _cast('hoverlabel.align'),\n hovertemplate: hovertemplate,\n hovertemplateLabels: hoverPt,\n eventData: eventData\n };\n\n if(isSunburst) {\n hoverItems.x0 = hoverCenterX - pt.rInscribed * pt.rpx1;\n hoverItems.x1 = hoverCenterX + pt.rInscribed * pt.rpx1;\n hoverItems.idealAlign = pt.pxmid[0] < 0 ? 'left' : 'right';\n }\n if(isTreemapOrIcicle) {\n hoverItems.x = hoverCenterX;\n hoverItems.idealAlign = hoverCenterX < 0 ? 'left' : 'right';\n }\n\n var bbox = [];\n Fx.loneHover(hoverItems, {\n container: fullLayoutNow._hoverlayer.node(),\n outerContainer: fullLayoutNow._paper.node(),\n gd: gd,\n inOut_bbox: bbox\n });\n eventData[0].bbox = bbox[0];\n\n trace._hasHoverLabel = true;\n }\n\n if(isTreemapOrIcicle) {\n var slice = sliceTop.select('path.surface');\n opts.styleOne(slice, pt, traceNow, {\n hovered: true\n });\n }\n\n trace._hasHoverEvent = true;\n gd.emit('plotly_hover', {\n points: eventData || [makeEventData(pt, traceNow, opts.eventDataKeys)],\n event: d3.event\n });\n };\n\n var onMouseOut = function(evt) {\n var fullLayoutNow = gd._fullLayout;\n var traceNow = gd._fullData[trace.index];\n var pt = d3.select(this).datum();\n\n if(trace._hasHoverEvent) {\n evt.originalEvent = d3.event;\n gd.emit('plotly_unhover', {\n points: [makeEventData(pt, traceNow, opts.eventDataKeys)],\n event: d3.event\n });\n trace._hasHoverEvent = false;\n }\n\n if(trace._hasHoverLabel) {\n Fx.loneUnhover(fullLayoutNow._hoverlayer.node());\n trace._hasHoverLabel = false;\n }\n\n if(isTreemapOrIcicle) {\n var slice = sliceTop.select('path.surface');\n opts.styleOne(slice, pt, traceNow, {\n hovered: false\n });\n }\n };\n\n var onClick = function(pt) {\n // TODO: this does not support right-click. If we want to support it, we\n // would likely need to change pie to use dragElement instead of straight\n // mapbox event binding. Or perhaps better, make a simple wrapper with the\n // right mousedown, mousemove, and mouseup handlers just for a left/right click\n // mapbox would use this too.\n var fullLayoutNow = gd._fullLayout;\n var traceNow = gd._fullData[trace.index];\n\n var noTransition = isSunburst && (helpers.isHierarchyRoot(pt) || helpers.isLeaf(pt));\n\n var id = helpers.getPtId(pt);\n var nextEntry = helpers.isEntry(pt) ?\n helpers.findEntryWithChild(hierarchy, id) :\n helpers.findEntryWithLevel(hierarchy, id);\n var nextLevel = helpers.getPtId(nextEntry);\n\n var typeClickEvtData = {\n points: [makeEventData(pt, traceNow, opts.eventDataKeys)],\n event: d3.event\n };\n if(!noTransition) typeClickEvtData.nextLevel = nextLevel;\n\n var clickVal = Events.triggerHandler(gd, 'plotly_' + trace.type + 'click', typeClickEvtData);\n\n if(clickVal !== false && fullLayoutNow.hovermode) {\n gd._hoverdata = [makeEventData(pt, traceNow, opts.eventDataKeys)];\n Fx.click(gd, d3.event);\n }\n\n // if click does not trigger a transition, we're done!\n if(noTransition) return;\n\n // if custom handler returns false, we're done!\n if(clickVal === false) return;\n\n // skip if triggered from dragging a nearby cartesian subplot\n if(gd._dragging) return;\n\n // skip during transitions, to avoid potential bugs\n // we could remove this check later\n if(gd._transitioning) return;\n\n // store 'old' level in guiEdit stash, so that subsequent Plotly.react\n // calls with the same uirevision can start from the same entry\n Registry.call('_storeDirectGUIEdit', traceNow, fullLayoutNow._tracePreGUI[traceNow.uid], {\n level: traceNow.level\n });\n\n var frame = {\n data: [{level: nextLevel}],\n traces: [trace.index]\n };\n\n var animOpts = {\n frame: {\n redraw: false,\n duration: opts.transitionTime\n },\n transition: {\n duration: opts.transitionTime,\n easing: opts.transitionEasing\n },\n mode: 'immediate',\n fromcurrent: true\n };\n\n Fx.loneUnhover(fullLayoutNow._hoverlayer.node());\n Registry.call('animate', gd, frame, animOpts);\n };\n\n sliceTop.on('mouseover', onMouseOver);\n sliceTop.on('mouseout', onMouseOut);\n sliceTop.on('click', onClick);\n};\n\nfunction makeEventData(pt, trace, keys) {\n var cdi = pt.data.data;\n\n var out = {\n curveNumber: trace.index,\n pointNumber: cdi.i,\n data: trace._input,\n fullData: trace,\n\n // TODO more things like 'children', 'siblings', 'hierarchy?\n };\n\n for(var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if(key in pt) out[key] = pt[key];\n }\n // handle special case of parent\n if('parentString' in pt && !helpers.isHierarchyRoot(pt)) out.parent = pt.parentString;\n\n appendArrayPointValue(out, trace, cdi.i);\n\n return out;\n}\n\n},{\"../../components/fx\":407,\"../../components/fx/helpers\":403,\"../../lib\":515,\"../../lib/events\":504,\"../../registry\":647,\"../pie/helpers\":915,\"./helpers\":1064,\"@plotly/d3\":58}],1064:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\nvar setCursor = _dereq_('../../lib/setcursor');\nvar pieHelpers = _dereq_('../pie/helpers');\n\nexports.findEntryWithLevel = function(hierarchy, level) {\n var out;\n if(level) {\n hierarchy.eachAfter(function(pt) {\n if(exports.getPtId(pt) === level) {\n return out = pt.copy();\n }\n });\n }\n return out || hierarchy;\n};\n\nexports.findEntryWithChild = function(hierarchy, childId) {\n var out;\n hierarchy.eachAfter(function(pt) {\n var children = pt.children || [];\n for(var i = 0; i < children.length; i++) {\n var child = children[i];\n if(exports.getPtId(child) === childId) {\n return out = pt.copy();\n }\n }\n });\n return out || hierarchy;\n};\n\nexports.isEntry = function(pt) {\n return !pt.parent;\n};\n\nexports.isLeaf = function(pt) {\n return !pt.children;\n};\n\nexports.getPtId = function(pt) {\n return pt.data.data.id;\n};\n\nexports.getPtLabel = function(pt) {\n return pt.data.data.label;\n};\n\nexports.getValue = function(d) {\n return d.value;\n};\n\nexports.isHierarchyRoot = function(pt) {\n return getParentId(pt) === '';\n};\n\nexports.setSliceCursor = function(sliceTop, gd, opts) {\n var hide = opts.isTransitioning;\n if(!hide) {\n var pt = sliceTop.datum();\n hide = (\n (opts.hideOnRoot && exports.isHierarchyRoot(pt)) ||\n (opts.hideOnLeaves && exports.isLeaf(pt))\n );\n }\n setCursor(sliceTop, hide ? null : 'pointer');\n};\n\nfunction determineOutsideTextFont(trace, pt, layoutFont) {\n return {\n color: exports.getOutsideTextFontKey('color', trace, pt, layoutFont),\n family: exports.getOutsideTextFontKey('family', trace, pt, layoutFont),\n size: exports.getOutsideTextFontKey('size', trace, pt, layoutFont)\n };\n}\n\nfunction determineInsideTextFont(trace, pt, layoutFont, opts) {\n var onPathbar = (opts || {}).onPathbar;\n\n var cdi = pt.data.data;\n var ptNumber = cdi.i;\n\n var customColor = Lib.castOption(trace, ptNumber,\n (onPathbar ? 'pathbar.textfont' : 'insidetextfont') + '.color'\n );\n\n if(!customColor && trace._input.textfont) {\n // Why not simply using trace.textfont? Because if not set, it\n // defaults to layout.font which has a default color. But if\n // textfont.color and insidetextfont.color don't supply a value,\n // a contrasting color shall be used.\n customColor = Lib.castOption(trace._input, ptNumber, 'textfont.color');\n }\n\n return {\n color: customColor || Color.contrast(cdi.color),\n family: exports.getInsideTextFontKey('family', trace, pt, layoutFont, opts),\n size: exports.getInsideTextFontKey('size', trace, pt, layoutFont, opts)\n };\n}\n\nexports.getInsideTextFontKey = function(keyStr, trace, pt, layoutFont, opts) {\n var onPathbar = (opts || {}).onPathbar;\n var cont = onPathbar ? 'pathbar.textfont' : 'insidetextfont';\n var ptNumber = pt.data.data.i;\n\n return (\n Lib.castOption(trace, ptNumber, cont + '.' + keyStr) ||\n Lib.castOption(trace, ptNumber, 'textfont.' + keyStr) ||\n layoutFont.size\n );\n};\n\nexports.getOutsideTextFontKey = function(keyStr, trace, pt, layoutFont) {\n var ptNumber = pt.data.data.i;\n\n return (\n Lib.castOption(trace, ptNumber, 'outsidetextfont.' + keyStr) ||\n Lib.castOption(trace, ptNumber, 'textfont.' + keyStr) ||\n layoutFont.size\n );\n};\n\nexports.isOutsideText = function(trace, pt) {\n return !trace._hasColorscale && exports.isHierarchyRoot(pt);\n};\n\nexports.determineTextFont = function(trace, pt, layoutFont, opts) {\n return exports.isOutsideText(trace, pt) ?\n determineOutsideTextFont(trace, pt, layoutFont) :\n determineInsideTextFont(trace, pt, layoutFont, opts);\n};\n\nexports.hasTransition = function(transitionOpts) {\n // We could optimize hasTransition per trace,\n // as sunburst, treemap & icicle have no cross-trace logic!\n return !!(transitionOpts && transitionOpts.duration > 0);\n};\n\nexports.getMaxDepth = function(trace) {\n return trace.maxdepth >= 0 ? trace.maxdepth : Infinity;\n};\n\nexports.isHeader = function(pt, trace) { // it is only used in treemap.\n return !(exports.isLeaf(pt) || pt.depth === trace._maxDepth - 1);\n};\n\nfunction getParentId(pt) {\n return pt.data.data.pid;\n}\n\nexports.getParent = function(hierarchy, pt) {\n return exports.findEntryWithLevel(hierarchy, getParentId(pt));\n};\n\nexports.listPath = function(d, keyStr) {\n var parent = d.parent;\n if(!parent) return [];\n var list = keyStr ? [parent.data[keyStr]] : [parent];\n return exports.listPath(parent, keyStr).concat(list);\n};\n\nexports.getPath = function(d) {\n return exports.listPath(d, 'label').join('/') + '/';\n};\n\nexports.formatValue = pieHelpers.formatPieValue;\n\n// TODO: should combine the two in a separate PR - Also please note Lib.formatPercent should support separators.\nexports.formatPercent = function(v, separators) {\n var tx = Lib.formatPercent(v, 0); // use funnel(area) version\n if(tx === '0%') tx = pieHelpers.formatPiePercent(v, separators); // use pie version\n return tx;\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../lib/setcursor\":536,\"../pie/helpers\":915}],1065:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'sunburst',\n basePlotModule: _dereq_('./base_plot'),\n categories: [],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot').plot,\n style: _dereq_('./style').style,\n\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n meta: {\n }\n};\n\n},{\"../scatter/marker_colorbar\":954,\"./attributes\":1058,\"./base_plot\":1059,\"./calc\":1060,\"./defaults\":1062,\"./layout_attributes\":1066,\"./layout_defaults\":1067,\"./plot\":1068,\"./style\":1069}],1066:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n sunburstcolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendsunburstcolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],1067:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n coerce('sunburstcolorway', layoutOut.colorway);\n coerce('extendsunburstcolors');\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":1066}],1068:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar interpolate = _dereq_('d3-interpolate').interpolate;\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Lib = _dereq_('../../lib');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar piePlot = _dereq_('../pie/plot');\nvar getRotationAngle = _dereq_('../pie/helpers').getRotationAngle;\nvar computeTransform = piePlot.computeTransform;\nvar transformInsideText = piePlot.transformInsideText;\nvar styleOne = _dereq_('./style').styleOne;\nvar resizeText = _dereq_('../bar/style').resizeText;\nvar attachFxHandlers = _dereq_('./fx');\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('./helpers');\n\nexports.plot = function(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {\n var fullLayout = gd._fullLayout;\n var layer = fullLayout._sunburstlayer;\n var join, onComplete;\n\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n var isFullReplot = !transitionOpts;\n var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);\n\n clearMinTextSize('sunburst', fullLayout);\n\n join = layer.selectAll('g.trace.sunburst')\n .data(cdmodule, function(cd) { return cd[0].trace.uid; });\n\n // using same 'stroke-linejoin' as pie traces\n join.enter().append('g')\n .classed('trace', true)\n .classed('sunburst', true)\n .attr('stroke-linejoin', 'round');\n\n join.order();\n\n if(hasTransition) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n\n var transition = d3.transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); });\n\n transition.each(function() {\n // Must run the selection again since otherwise enters/updates get grouped together\n // and these get executed out of order. Except we need them in order!\n layer.selectAll('g.trace').each(function(cd) {\n plotOne(gd, cd, this, transitionOpts);\n });\n });\n } else {\n join.each(function(cd) {\n plotOne(gd, cd, this, transitionOpts);\n });\n\n if(fullLayout.uniformtext.mode) {\n resizeText(gd, fullLayout._sunburstlayer.selectAll('.trace'), 'sunburst');\n }\n }\n\n if(isFullReplot) {\n join.exit().remove();\n }\n};\n\nfunction plotOne(gd, cd, element, transitionOpts) {\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);\n\n var gTrace = d3.select(element);\n var slices = gTrace.selectAll('g.slice');\n\n var cd0 = cd[0];\n var trace = cd0.trace;\n var hierarchy = cd0.hierarchy;\n var entry = helpers.findEntryWithLevel(hierarchy, trace.level);\n var maxDepth = helpers.getMaxDepth(trace);\n\n var gs = fullLayout._size;\n var domain = trace.domain;\n var vpw = gs.w * (domain.x[1] - domain.x[0]);\n var vph = gs.h * (domain.y[1] - domain.y[0]);\n var rMax = 0.5 * Math.min(vpw, vph);\n var cx = cd0.cx = gs.l + gs.w * (domain.x[1] + domain.x[0]) / 2;\n var cy = cd0.cy = gs.t + gs.h * (1 - domain.y[0]) - vph / 2;\n\n if(!entry) {\n return slices.remove();\n }\n\n // previous root 'pt' (can be empty)\n var prevEntry = null;\n // stash of 'previous' position data used by tweening functions\n var prevLookup = {};\n\n if(hasTransition) {\n // Important: do this before binding new sliceData!\n slices.each(function(pt) {\n prevLookup[helpers.getPtId(pt)] = {\n rpx0: pt.rpx0,\n rpx1: pt.rpx1,\n x0: pt.x0,\n x1: pt.x1,\n transform: pt.transform\n };\n\n if(!prevEntry && helpers.isEntry(pt)) {\n prevEntry = pt;\n }\n });\n }\n\n // N.B. slice data isn't the calcdata,\n // grab corresponding calcdata item in sliceData[i].data.data\n var sliceData = partition(entry).descendants();\n\n var maxHeight = entry.height + 1;\n var yOffset = 0;\n var cutoff = maxDepth;\n // N.B. handle multiple-root special case\n if(cd0.hasMultipleRoots && helpers.isHierarchyRoot(entry)) {\n sliceData = sliceData.slice(1);\n maxHeight -= 1;\n yOffset = 1;\n cutoff += 1;\n }\n\n // filter out slices that won't show up on graph\n sliceData = sliceData.filter(function(pt) { return pt.y1 <= cutoff; });\n\n var baseX = getRotationAngle(trace.rotation);\n if(baseX) {\n sliceData.forEach(function(pt) {\n pt.x0 += baseX;\n pt.x1 += baseX;\n });\n }\n\n // partition span ('y') to sector radial px value\n var maxY = Math.min(maxHeight, maxDepth);\n var y2rpx = function(y) { return (y - yOffset) / maxY * rMax; };\n // (radial px value, partition angle ('x')) to px [x,y]\n var rx2px = function(r, x) { return [r * Math.cos(x), -r * Math.sin(x)]; };\n // slice path generation fn\n var pathSlice = function(d) { return Lib.pathAnnulus(d.rpx0, d.rpx1, d.x0, d.x1, cx, cy); };\n // slice text translate x/y\n\n var getTargetX = function(d) { return cx + getTextXY(d)[0] * (d.transform.rCenter || 0) + (d.transform.x || 0); };\n var getTargetY = function(d) { return cy + getTextXY(d)[1] * (d.transform.rCenter || 0) + (d.transform.y || 0); };\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n slices.enter().append('g')\n .classed('slice', true);\n\n if(hasTransition) {\n slices.exit().transition()\n .each(function() {\n var sliceTop = d3.select(this);\n\n var slicePath = sliceTop.select('path.surface');\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeExitSliceInterpolator(pt2);\n return function(t) { return pathSlice(interp(t)); };\n });\n\n var sliceTextGroup = sliceTop.select('g.slicetext');\n sliceTextGroup.attr('opacity', 0);\n })\n .remove();\n } else {\n slices.exit().remove();\n }\n\n slices.order();\n\n // next x1 (i.e. sector end angle) of previous entry\n var nextX1ofPrevEntry = null;\n if(hasTransition && prevEntry) {\n var prevEntryId = helpers.getPtId(prevEntry);\n slices.each(function(pt) {\n if(nextX1ofPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {\n nextX1ofPrevEntry = pt.x1;\n }\n });\n }\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: true,\n hideOnLeaves: true,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', isStatic ? 'none' : 'all');\n });\n\n pt.rpx0 = y2rpx(pt.y0);\n pt.rpx1 = y2rpx(pt.y1);\n pt.xmid = (pt.x0 + pt.x1) / 2;\n pt.pxmid = rx2px(pt.rpx1, pt.xmid);\n pt.midangle = -(pt.xmid - Math.PI / 2);\n pt.startangle = -(pt.x0 - Math.PI / 2);\n pt.stopangle = -(pt.x1 - Math.PI / 2);\n pt.halfangle = 0.5 * Math.min(Lib.angleDelta(pt.x0, pt.x1) || Math.PI, Math.PI);\n pt.ring = 1 - (pt.rpx0 / pt.rpx1);\n pt.rInscribed = getInscribedRadiusFraction(pt, trace);\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(pt2);\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, {\n hideOnRoot: true,\n hideOnLeaves: true,\n isTransitioning: gd._transitioning\n });\n\n slicePath.call(styleOne, pt, trace);\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(exports.formatSliceLabel(pt, entry, trace, cd, fullLayout))\n .classed('slicetext', true)\n .attr('text-anchor', 'middle')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n // position the text relative to the slice\n var textBB = Drawing.bBox(sliceText.node());\n pt.transform = transformInsideText(textBB, pt, cd0);\n pt.transform.targetX = getTargetX(pt);\n pt.transform.targetY = getTargetY(pt);\n\n var strTransform = function(d, textBB) {\n var transform = d.transform;\n computeTransform(transform, textBB);\n\n transform.fontSize = font.size;\n recordMinTextSize(trace.type, transform, fullLayout);\n\n return Lib.getTextTransform(transform);\n };\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2);\n return function(t) { return strTransform(interp(t), textBB); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt, textBB));\n }\n });\n\n function makeExitSliceInterpolator(pt) {\n var id = helpers.getPtId(pt);\n var prev = prevLookup[id];\n var entryPrev = prevLookup[helpers.getPtId(entry)];\n var next;\n\n if(entryPrev) {\n var a = (pt.x1 > entryPrev.x1 ? 2 * Math.PI : 0) + baseX;\n // if pt to remove:\n // - if 'below' where the root-node used to be: shrink it radially inward\n // - otherwise, collapse it clockwise or counterclockwise which ever is shortest to theta=0\n next = pt.rpx1 < entryPrev.rpx1 ?\n {x0: pt.x0, x1: pt.x1, rpx0: 0, rpx1: 0} :\n {x0: a, x1: a, rpx0: pt.rpx0, rpx1: pt.rpx1};\n } else {\n // this happens when maxdepth is set, when leaves must\n // be removed and the rootPt is new (i.e. does not have a 'prev' object)\n var parent;\n var parentId = helpers.getPtId(pt.parent);\n slices.each(function(pt2) {\n if(helpers.getPtId(pt2) === parentId) {\n return parent = pt2;\n }\n });\n var parentChildren = parent.children;\n var ci;\n parentChildren.forEach(function(pt2, i) {\n if(helpers.getPtId(pt2) === id) {\n return ci = i;\n }\n });\n var n = parentChildren.length;\n var interp = interpolate(parent.x0, parent.x1);\n next = {\n rpx0: rMax, rpx1: rMax,\n x0: interp(ci / n), x1: interp((ci + 1) / n)\n };\n }\n\n return interpolate(prev, next);\n }\n\n function makeUpdateSliceInterpolator(pt) {\n var prev0 = prevLookup[helpers.getPtId(pt)];\n var prev;\n var next = {x0: pt.x0, x1: pt.x1, rpx0: pt.rpx0, rpx1: pt.rpx1};\n\n if(prev0) {\n // if pt already on graph, this is easy\n prev = prev0;\n } else {\n // for new pts:\n if(prevEntry) {\n // if trace was visible before\n if(pt.parent) {\n if(nextX1ofPrevEntry) {\n // if new branch, twist it in clockwise or\n // counterclockwise which ever is shorter to\n // its final angle\n var a = (pt.x1 > nextX1ofPrevEntry ? 2 * Math.PI : 0) + baseX;\n prev = {x0: a, x1: a};\n } else {\n // if new leaf (when maxdepth is set),\n // grow it radially and angularly from\n // its parent node\n prev = {rpx0: rMax, rpx1: rMax};\n Lib.extendFlat(prev, interpX0X1FromParent(pt));\n }\n } else {\n // if new root-node, grow it radially\n prev = {rpx0: 0, rpx1: 0};\n }\n } else {\n // start sector of new traces from theta=0\n prev = {x0: baseX, x1: baseX};\n }\n }\n\n return interpolate(prev, next);\n }\n\n function makeUpdateTextInterpolator(pt) {\n var prev0 = prevLookup[helpers.getPtId(pt)];\n var prev;\n var transform = pt.transform;\n\n if(prev0) {\n prev = prev0;\n } else {\n prev = {\n rpx1: pt.rpx1,\n transform: {\n textPosAngle: transform.textPosAngle,\n scale: 0,\n rotate: transform.rotate,\n rCenter: transform.rCenter,\n x: transform.x,\n y: transform.y\n }\n };\n\n // for new pts:\n if(prevEntry) {\n // if trace was visible before\n if(pt.parent) {\n if(nextX1ofPrevEntry) {\n // if new branch, twist it in clockwise or\n // counterclockwise which ever is shorter to\n // its final angle\n var a = pt.x1 > nextX1ofPrevEntry ? 2 * Math.PI : 0;\n prev.x0 = prev.x1 = a;\n } else {\n // if leaf\n Lib.extendFlat(prev, interpX0X1FromParent(pt));\n }\n } else {\n // if new root-node\n prev.x0 = prev.x1 = baseX;\n }\n } else {\n // on new traces\n prev.x0 = prev.x1 = baseX;\n }\n }\n\n var textPosAngleFn = interpolate(prev.transform.textPosAngle, pt.transform.textPosAngle);\n var rpx1Fn = interpolate(prev.rpx1, pt.rpx1);\n var x0Fn = interpolate(prev.x0, pt.x0);\n var x1Fn = interpolate(prev.x1, pt.x1);\n var scaleFn = interpolate(prev.transform.scale, transform.scale);\n var rotateFn = interpolate(prev.transform.rotate, transform.rotate);\n\n // smooth out start/end from entry, to try to keep text inside sector\n // while keeping transition smooth\n var pow = transform.rCenter === 0 ? 3 :\n prev.transform.rCenter === 0 ? 1 / 3 :\n 1;\n var _rCenterFn = interpolate(prev.transform.rCenter, transform.rCenter);\n var rCenterFn = function(t) { return _rCenterFn(Math.pow(t, pow)); };\n\n return function(t) {\n var rpx1 = rpx1Fn(t);\n var x0 = x0Fn(t);\n var x1 = x1Fn(t);\n var rCenter = rCenterFn(t);\n var pxmid = rx2px(rpx1, (x0 + x1) / 2);\n var textPosAngle = textPosAngleFn(t);\n\n var d = {\n pxmid: pxmid,\n rpx1: rpx1,\n transform: {\n textPosAngle: textPosAngle,\n rCenter: rCenter,\n x: transform.x,\n y: transform.y\n }\n };\n\n recordMinTextSize(trace.type, transform, fullLayout);\n return {\n transform: {\n targetX: getTargetX(d),\n targetY: getTargetY(d),\n scale: scaleFn(t),\n rotate: rotateFn(t),\n rCenter: rCenter\n }\n };\n };\n }\n\n function interpX0X1FromParent(pt) {\n var parent = pt.parent;\n var parentPrev = prevLookup[helpers.getPtId(parent)];\n var out = {};\n\n if(parentPrev) {\n // if parent is visible\n var parentChildren = parent.children;\n var ci = parentChildren.indexOf(pt);\n var n = parentChildren.length;\n var interp = interpolate(parentPrev.x0, parentPrev.x1);\n out.x0 = interp(ci / n);\n out.x1 = interp(ci / n);\n } else {\n // w/o visible parent\n // TODO !!! HOW ???\n out.x0 = out.x1 = 0;\n }\n\n return out;\n }\n}\n\n// x[0-1] keys are angles [radians]\n// y[0-1] keys are hierarchy heights [integers]\nfunction partition(entry) {\n return d3Hierarchy.partition()\n .size([2 * Math.PI, entry.height + 1])(entry);\n}\n\nexports.formatSliceLabel = function(pt, entry, trace, cd, fullLayout) {\n var texttemplate = trace.texttemplate;\n var textinfo = trace.textinfo;\n\n if(!texttemplate && (!textinfo || textinfo === 'none')) {\n return '';\n }\n\n var separators = fullLayout.separators;\n var cd0 = cd[0];\n var cdi = pt.data.data;\n var hierarchy = cd0.hierarchy;\n var isRoot = helpers.isHierarchyRoot(pt);\n var parent = helpers.getParent(hierarchy, pt);\n var val = helpers.getValue(pt);\n\n if(!texttemplate) {\n var parts = textinfo.split('+');\n var hasFlag = function(flag) { return parts.indexOf(flag) !== -1; };\n var thisText = [];\n var tx;\n\n if(hasFlag('label') && cdi.label) {\n thisText.push(cdi.label);\n }\n\n if(cdi.hasOwnProperty('v') && hasFlag('value')) {\n thisText.push(helpers.formatValue(cdi.v, separators));\n }\n\n if(!isRoot) {\n if(hasFlag('current path')) {\n thisText.push(helpers.getPath(pt.data));\n }\n\n var nPercent = 0;\n if(hasFlag('percent parent')) nPercent++;\n if(hasFlag('percent entry')) nPercent++;\n if(hasFlag('percent root')) nPercent++;\n var hasMultiplePercents = nPercent > 1;\n\n if(nPercent) {\n var percent;\n var addPercent = function(key) {\n tx = helpers.formatPercent(percent, separators);\n\n if(hasMultiplePercents) tx += ' of ' + key;\n thisText.push(tx);\n };\n\n if(hasFlag('percent parent') && !isRoot) {\n percent = val / helpers.getValue(parent);\n addPercent('parent');\n }\n if(hasFlag('percent entry')) {\n percent = val / helpers.getValue(entry);\n addPercent('entry');\n }\n if(hasFlag('percent root')) {\n percent = val / helpers.getValue(hierarchy);\n addPercent('root');\n }\n }\n }\n\n if(hasFlag('text')) {\n tx = Lib.castOption(trace, cdi.i, 'text');\n if(Lib.isValidTextValue(tx)) thisText.push(tx);\n }\n\n return thisText.join('
');\n }\n\n var txt = Lib.castOption(trace, cdi.i, 'texttemplate');\n if(!txt) return '';\n var obj = {};\n if(cdi.label) obj.label = cdi.label;\n if(cdi.hasOwnProperty('v')) {\n obj.value = cdi.v;\n obj.valueLabel = helpers.formatValue(cdi.v, separators);\n }\n\n obj.currentPath = helpers.getPath(pt.data);\n\n if(!isRoot) {\n obj.percentParent = val / helpers.getValue(parent);\n obj.percentParentLabel = helpers.formatPercent(\n obj.percentParent, separators\n );\n obj.parent = helpers.getPtLabel(parent);\n }\n\n obj.percentEntry = val / helpers.getValue(entry);\n obj.percentEntryLabel = helpers.formatPercent(\n obj.percentEntry, separators\n );\n obj.entry = helpers.getPtLabel(entry);\n\n obj.percentRoot = val / helpers.getValue(hierarchy);\n obj.percentRootLabel = helpers.formatPercent(\n obj.percentRoot, separators\n );\n obj.root = helpers.getPtLabel(hierarchy);\n\n if(cdi.hasOwnProperty('color')) {\n obj.color = cdi.color;\n }\n var ptTx = Lib.castOption(trace, cdi.i, 'text');\n if(Lib.isValidTextValue(ptTx) || ptTx === '') obj.text = ptTx;\n obj.customdata = Lib.castOption(trace, cdi.i, 'customdata');\n return Lib.texttemplateString(txt, obj, fullLayout._d3locale, obj, trace._meta || {});\n};\n\nfunction getInscribedRadiusFraction(pt) {\n if(pt.rpx0 === 0 && Lib.isFullCircle([pt.x0, pt.x1])) {\n // special case of 100% with no hole\n return 1;\n } else {\n return Math.max(0, Math.min(\n 1 / (1 + 1 / Math.sin(pt.halfangle)),\n pt.ring / 2\n ));\n }\n}\n\nfunction getTextXY(d) {\n return getCoords(d.rpx1, d.transform.textPosAngle);\n}\n\nfunction getCoords(r, angle) {\n return [r * Math.sin(angle), -r * Math.cos(angle)];\n}\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../bar/style\":671,\"../bar/uniform_text\":673,\"../pie/helpers\":915,\"../pie/plot\":919,\"./constants\":1061,\"./fx\":1063,\"./helpers\":1064,\"./style\":1069,\"@plotly/d3\":58,\"d3-hierarchy\":115,\"d3-interpolate\":116}],1069:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nfunction style(gd) {\n var s = gd._fullLayout._sunburstlayer.selectAll('.trace');\n resizeText(gd, s, 'sunburst');\n\n s.each(function(cd) {\n var gTrace = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n gTrace.style('opacity', trace.opacity);\n\n gTrace.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace);\n });\n });\n}\n\nfunction styleOne(s, pt, trace) {\n var cdi = pt.data.data;\n var isLeaf = !pt.children;\n var ptNumber = cdi.i;\n var lineColor = Lib.castOption(trace, ptNumber, 'marker.line.color') || Color.defaultLine;\n var lineWidth = Lib.castOption(trace, ptNumber, 'marker.line.width') || 0;\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, cdi.color)\n .call(Color.stroke, lineColor)\n .style('opacity', isLeaf ? trace.leaf.opacity : null);\n}\n\nmodule.exports = {\n style: style,\n styleOne: styleOne\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../bar/uniform_text\":673,\"@plotly/d3\":58}],1070:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nfunction makeContourProjAttr(axLetter) {\n return {\n valType: 'boolean',\n dflt: false,\n };\n}\n\nfunction makeContourAttr(axLetter) {\n return {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n start: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n // impliedEdits: {'^autocontour': false},\n },\n end: {\n valType: 'number',\n dflt: null,\n editType: 'plot',\n // impliedEdits: {'^autocontour': false},\n },\n size: {\n valType: 'number',\n dflt: null,\n min: 0,\n editType: 'plot',\n // impliedEdits: {'^autocontour': false},\n },\n project: {\n x: makeContourProjAttr('x'),\n y: makeContourProjAttr('y'),\n z: makeContourProjAttr('z')\n },\n color: {\n valType: 'color',\n dflt: Color.defaultLine,\n },\n usecolormap: {\n valType: 'boolean',\n dflt: false,\n },\n width: {\n valType: 'number',\n min: 1,\n max: 16,\n dflt: 2,\n },\n highlight: {\n valType: 'boolean',\n dflt: true,\n },\n highlightcolor: {\n valType: 'color',\n dflt: Color.defaultLine,\n },\n highlightwidth: {\n valType: 'number',\n min: 1,\n max: 16,\n dflt: 2,\n }\n };\n}\n\nvar attrs = module.exports = overrideAll(extendFlat({\n z: {\n valType: 'data_array',\n },\n x: {\n valType: 'data_array',\n },\n y: {\n valType: 'data_array',\n },\n\n text: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertext: {\n valType: 'string',\n dflt: '',\n arrayOk: true,\n },\n hovertemplate: hovertemplateAttrs(),\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n zhoverformat: axisHoverFormat('z'),\n\n connectgaps: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n\n surfacecolor: {\n valType: 'data_array',\n },\n},\n\ncolorScaleAttrs('', {\n colorAttr: 'z or surfacecolor',\n showScaleDflt: true,\n autoColorDflt: false,\n editTypeOverride: 'calc'\n}), {\n contours: {\n x: makeContourAttr('x'),\n y: makeContourAttr('y'),\n z: makeContourAttr('z')\n },\n hidesurface: {\n valType: 'boolean',\n dflt: false,\n },\n\n lightposition: {\n x: {\n valType: 'number',\n min: -1e5,\n max: 1e5,\n dflt: 10,\n },\n y: {\n valType: 'number',\n min: -1e5,\n max: 1e5,\n dflt: 1e4,\n },\n z: {\n valType: 'number',\n min: -1e5,\n max: 1e5,\n dflt: 0,\n }\n },\n\n lighting: {\n ambient: {\n valType: 'number',\n min: 0.00,\n max: 1.0,\n dflt: 0.8,\n },\n diffuse: {\n valType: 'number',\n min: 0.00,\n max: 1.00,\n dflt: 0.8,\n },\n specular: {\n valType: 'number',\n min: 0.00,\n max: 2.00,\n dflt: 0.05,\n },\n roughness: {\n valType: 'number',\n min: 0.00,\n max: 1.00,\n dflt: 0.5,\n },\n fresnel: {\n valType: 'number',\n min: 0.00,\n max: 5.00,\n dflt: 0.2,\n }\n },\n\n opacity: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n },\n\n opacityscale: {\n valType: 'any',\n editType: 'calc',\n },\n\n _deprecated: {\n zauto: extendFlat({}, colorScaleAttrs.zauto, {\n }),\n zmin: extendFlat({}, colorScaleAttrs.zmin, {\n }),\n zmax: extendFlat({}, colorScaleAttrs.zmax, {\n })\n },\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false}),\n}), 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = 'calc+clearAxisTypes';\nattrs.transforms = undefined;\n\n},{\"../../components/color\":367,\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642}],1071:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorscaleCalc = _dereq_('../../components/colorscale/calc');\n\n\n// Compute auto-z and autocolorscale if applicable\nmodule.exports = function calc(gd, trace) {\n if(trace.surfacecolor) {\n colorscaleCalc(gd, trace, {\n vals: trace.surfacecolor,\n containerStr: '',\n cLetter: 'c'\n });\n } else {\n colorscaleCalc(gd, trace, {\n vals: trace.z,\n containerStr: '',\n cLetter: 'c'\n });\n }\n};\n\n},{\"../../components/colorscale/calc\":375}],1072:[function(_dereq_,module,exports){\n'use strict';\n\nvar createSurface = _dereq_('../../../stackgl_modules').gl_surface3d;\n\nvar ndarray = _dereq_('../../../stackgl_modules').ndarray;\nvar ndarrayInterp2d = _dereq_('../../../stackgl_modules').ndarray_linear_interpolate.d2;\n\nvar interp2d = _dereq_('../heatmap/interp2d');\nvar findEmpties = _dereq_('../heatmap/find_empties');\n\nvar isArrayOrTypedArray = _dereq_('../../lib').isArrayOrTypedArray;\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\n\nfunction SurfaceTrace(scene, surface, uid) {\n this.scene = scene;\n this.uid = uid;\n this.surface = surface;\n this.data = null;\n this.showContour = [false, false, false];\n this.contourStart = [null, null, null];\n this.contourEnd = [null, null, null];\n this.contourSize = [0, 0, 0];\n this.minValues = [Infinity, Infinity, Infinity];\n this.maxValues = [-Infinity, -Infinity, -Infinity];\n this.dataScaleX = 1.0;\n this.dataScaleY = 1.0;\n this.refineData = true;\n this.objectOffset = [0, 0, 0];\n}\n\nvar proto = SurfaceTrace.prototype;\n\nproto.getXat = function(a, b, calendar, axis) {\n var v = (\n (!isArrayOrTypedArray(this.data.x)) ?\n a :\n (isArrayOrTypedArray(this.data.x[0])) ?\n this.data.x[b][a] :\n this.data.x[a]\n );\n\n return (calendar === undefined) ? v : axis.d2l(v, 0, calendar);\n};\n\nproto.getYat = function(a, b, calendar, axis) {\n var v = (\n (!isArrayOrTypedArray(this.data.y)) ?\n b :\n (isArrayOrTypedArray(this.data.y[0])) ?\n this.data.y[b][a] :\n this.data.y[b]\n );\n\n return (calendar === undefined) ? v : axis.d2l(v, 0, calendar);\n};\n\nproto.getZat = function(a, b, calendar, axis) {\n var v = this.data.z[b][a];\n\n if(v === null && this.data.connectgaps && this.data._interpolatedZ) {\n v = this.data._interpolatedZ[b][a];\n }\n\n return (calendar === undefined) ? v : axis.d2l(v, 0, calendar);\n};\n\nproto.handlePick = function(selection) {\n if(selection.object === this.surface) {\n var xRatio = (selection.data.index[0] - 1) / this.dataScaleX - 1;\n var yRatio = (selection.data.index[1] - 1) / this.dataScaleY - 1;\n\n var j = Math.max(Math.min(Math.round(xRatio), this.data.z[0].length - 1), 0);\n var k = Math.max(Math.min(Math.round(yRatio), this.data._ylength - 1), 0);\n\n selection.index = [j, k];\n\n selection.traceCoordinate = [\n this.getXat(j, k),\n this.getYat(j, k),\n this.getZat(j, k)\n ];\n\n selection.dataCoordinate = [\n this.getXat(j, k, this.data.xcalendar, this.scene.fullSceneLayout.xaxis),\n this.getYat(j, k, this.data.ycalendar, this.scene.fullSceneLayout.yaxis),\n this.getZat(j, k, this.data.zcalendar, this.scene.fullSceneLayout.zaxis)\n ];\n\n for(var i = 0; i < 3; i++) {\n var v = selection.dataCoordinate[i];\n if(v !== null && v !== undefined) {\n selection.dataCoordinate[i] *= this.scene.dataScale[i];\n }\n }\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[k] && text[k][j] !== undefined) {\n selection.textLabel = text[k][j];\n } else if(text) {\n selection.textLabel = text;\n } else {\n selection.textLabel = '';\n }\n\n selection.data.dataCoordinate = selection.dataCoordinate.slice();\n\n this.surface.highlight(selection.data);\n\n // Snap spikes to data coordinate\n this.scene.glplot.spikes.position = selection.dataCoordinate;\n\n return true;\n }\n};\n\nfunction isColormapCircular(colormap) {\n var first = colormap[0].rgb;\n var last = colormap[colormap.length - 1].rgb;\n\n return (\n first[0] === last[0] &&\n first[1] === last[1] &&\n first[2] === last[2] &&\n first[3] === last[3]\n );\n}\n\nvar shortPrimes = [\n 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,\n 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199,\n 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293,\n 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397,\n 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499,\n 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599,\n 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691,\n 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797,\n 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887,\n 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997,\n 1009, 1013, 1019, 1021, 1031, 1033, 1039, 1049, 1051, 1061, 1063, 1069, 1087, 1091, 1093, 1097,\n 1103, 1109, 1117, 1123, 1129, 1151, 1153, 1163, 1171, 1181, 1187, 1193,\n 1201, 1213, 1217, 1223, 1229, 1231, 1237, 1249, 1259, 1277, 1279, 1283, 1289, 1291, 1297,\n 1301, 1303, 1307, 1319, 1321, 1327, 1361, 1367, 1373, 1381, 1399,\n 1409, 1423, 1427, 1429, 1433, 1439, 1447, 1451, 1453, 1459, 1471, 1481, 1483, 1487, 1489, 1493, 1499,\n 1511, 1523, 1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579, 1583, 1597,\n 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1637, 1657, 1663, 1667, 1669, 1693, 1697, 1699,\n 1709, 1721, 1723, 1733, 1741, 1747, 1753, 1759, 1777, 1783, 1787, 1789,\n 1801, 1811, 1823, 1831, 1847, 1861, 1867, 1871, 1873, 1877, 1879, 1889,\n 1901, 1907, 1913, 1931, 1933, 1949, 1951, 1973, 1979, 1987, 1993, 1997, 1999,\n 2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063, 2069, 2081, 2083, 2087, 2089, 2099,\n 2111, 2113, 2129, 2131, 2137, 2141, 2143, 2153, 2161, 2179,\n 2203, 2207, 2213, 2221, 2237, 2239, 2243, 2251, 2267, 2269, 2273, 2281, 2287, 2293, 2297,\n 2309, 2311, 2333, 2339, 2341, 2347, 2351, 2357, 2371, 2377, 2381, 2383, 2389, 2393, 2399,\n 2411, 2417, 2423, 2437, 2441, 2447, 2459, 2467, 2473, 2477,\n 2503, 2521, 2531, 2539, 2543, 2549, 2551, 2557, 2579, 2591, 2593,\n 2609, 2617, 2621, 2633, 2647, 2657, 2659, 2663, 2671, 2677, 2683, 2687, 2689, 2693, 2699,\n 2707, 2711, 2713, 2719, 2729, 2731, 2741, 2749, 2753, 2767, 2777, 2789, 2791, 2797,\n 2801, 2803, 2819, 2833, 2837, 2843, 2851, 2857, 2861, 2879, 2887, 2897,\n 2903, 2909, 2917, 2927, 2939, 2953, 2957, 2963, 2969, 2971, 2999\n];\n\nfunction getPow(a, b) {\n if(a < b) return 0;\n var n = 0;\n while(Math.floor(a % b) === 0) {\n a /= b;\n n++;\n }\n return n;\n}\n\nfunction getFactors(a) {\n var powers = [];\n for(var i = 0; i < shortPrimes.length; i++) {\n var b = shortPrimes[i];\n powers.push(\n getPow(a, b)\n );\n }\n return powers;\n}\n\nfunction smallestDivisor(a) {\n var A = getFactors(a);\n var result = a;\n for(var i = 0; i < shortPrimes.length; i++) {\n if(A[i] > 0) {\n result = shortPrimes[i];\n break;\n }\n }\n return result;\n}\n\nfunction leastCommonMultiple(a, b) {\n if(a < 1 || b < 1) return undefined;\n var A = getFactors(a);\n var B = getFactors(b);\n var n = 1;\n for(var i = 0; i < shortPrimes.length; i++) {\n n *= Math.pow(\n shortPrimes[i], Math.max(A[i], B[i])\n );\n }\n return n;\n}\n\nfunction arrayLCM(A) {\n if(A.length === 0) return undefined;\n var n = 1;\n for(var i = 0; i < A.length; i++) {\n n = leastCommonMultiple(n, A[i]);\n }\n return n;\n}\n\nproto.calcXnums = function(xlen) {\n var i;\n var nums = [];\n for(i = 1; i < xlen; i++) {\n var a = this.getXat(i - 1, 0);\n var b = this.getXat(i, 0);\n\n if(b !== a &&\n a !== undefined && a !== null &&\n b !== undefined && b !== null) {\n nums[i - 1] = Math.abs(b - a);\n } else {\n nums[i - 1] = 0;\n }\n }\n\n var totalDist = 0;\n for(i = 1; i < xlen; i++) {\n totalDist += nums[i - 1];\n }\n\n for(i = 1; i < xlen; i++) {\n if(nums[i - 1] === 0) {\n nums[i - 1] = 1;\n } else {\n nums[i - 1] = Math.round(totalDist / nums[i - 1]);\n }\n }\n\n return nums;\n};\n\nproto.calcYnums = function(ylen) {\n var i;\n var nums = [];\n for(i = 1; i < ylen; i++) {\n var a = this.getYat(0, i - 1);\n var b = this.getYat(0, i);\n\n if(b !== a &&\n a !== undefined && a !== null &&\n b !== undefined && b !== null) {\n nums[i - 1] = Math.abs(b - a);\n } else {\n nums[i - 1] = 0;\n }\n }\n\n var totalDist = 0;\n for(i = 1; i < ylen; i++) {\n totalDist += nums[i - 1];\n }\n\n for(i = 1; i < ylen; i++) {\n if(nums[i - 1] === 0) {\n nums[i - 1] = 1;\n } else {\n nums[i - 1] = Math.round(totalDist / nums[i - 1]);\n }\n }\n\n return nums;\n};\n\nvar highlyComposites = [1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, 720, 840, 1260];\n\nvar MIN_RESOLUTION = highlyComposites[9];\nvar MAX_RESOLUTION = highlyComposites[13];\n\nproto.estimateScale = function(resSrc, axis) {\n var nums = (axis === 0) ?\n this.calcXnums(resSrc) :\n this.calcYnums(resSrc);\n\n var resDst = 1 + arrayLCM(nums);\n\n while(resDst < MIN_RESOLUTION) {\n resDst *= 2;\n }\n\n while(resDst > MAX_RESOLUTION) {\n resDst--;\n resDst /= smallestDivisor(resDst);\n resDst++;\n\n if(resDst < MIN_RESOLUTION) {\n // resDst = MIN_RESOLUTION; // option 1: use min resolution\n resDst = MAX_RESOLUTION; // option 2: use max resolution\n }\n }\n\n var scale = Math.round(resDst / resSrc);\n return (scale > 1) ? scale : 1;\n};\n\n// based on Mikola Lysenko's ndarray-homography\n// see https://github.com/scijs/ndarray-homography\n\nfunction fnHomography(out, inp, X) {\n var w = X[8] + X[2] * inp[0] + X[5] * inp[1];\n out[0] = (X[6] + X[0] * inp[0] + X[3] * inp[1]) / w;\n out[1] = (X[7] + X[1] * inp[0] + X[4] * inp[1]) / w;\n return out;\n}\n\nfunction homography(dest, src, X) {\n warp(dest, src, fnHomography, X);\n return dest;\n}\n\n// based on Mikola Lysenko's ndarray-warp\n// see https://github.com/scijs/ndarray-warp\n\nfunction warp(dest, src, func, X) {\n var warped = [0, 0];\n var ni = dest.shape[0];\n var nj = dest.shape[1];\n for(var i = 0; i < ni; i++) {\n for(var j = 0; j < nj; j++) {\n func(warped, [i, j], X);\n dest.set(i, j, ndarrayInterp2d(src, warped[0], warped[1]));\n }\n }\n return dest;\n}\n\nproto.refineCoords = function(coords) {\n var scaleW = this.dataScaleX;\n var scaleH = this.dataScaleY;\n\n var width = coords[0].shape[0];\n var height = coords[0].shape[1];\n\n var newWidth = Math.floor(coords[0].shape[0] * scaleW + 1) | 0;\n var newHeight = Math.floor(coords[0].shape[1] * scaleH + 1) | 0;\n\n // Pad coords by +1\n var padWidth = 1 + width + 1;\n var padHeight = 1 + height + 1;\n var padImg = ndarray(new Float32Array(padWidth * padHeight), [padWidth, padHeight]);\n var X = [\n 1 / scaleW, 0, 0,\n 0, 1 / scaleH, 0,\n 0, 0, 1\n ];\n\n for(var i = 0; i < coords.length; ++i) {\n this.surface.padField(padImg, coords[i]);\n\n var scaledImg = ndarray(new Float32Array(newWidth * newHeight), [newWidth, newHeight]);\n homography(scaledImg, padImg, X);\n coords[i] = scaledImg;\n }\n};\n\nfunction insertIfNewLevel(arr, newValue) {\n var found = false;\n for(var k = 0; k < arr.length; k++) {\n if(newValue === arr[k]) {\n found = true;\n break;\n }\n }\n if(found === false) arr.push(newValue);\n}\n\nproto.setContourLevels = function() {\n var newLevels = [[], [], []];\n var useNewLevels = [false, false, false];\n var needsUpdate = false;\n\n var i, j, value;\n\n for(i = 0; i < 3; ++i) {\n if(this.showContour[i]) {\n needsUpdate = true;\n\n if(\n this.contourSize[i] > 0 &&\n this.contourStart[i] !== null &&\n this.contourEnd[i] !== null &&\n this.contourEnd[i] > this.contourStart[i]\n ) {\n useNewLevels[i] = true;\n\n for(j = this.contourStart[i]; j < this.contourEnd[i]; j += this.contourSize[i]) {\n value = j * this.scene.dataScale[i];\n\n insertIfNewLevel(newLevels[i], value);\n }\n }\n }\n }\n\n if(needsUpdate) {\n var allLevels = [[], [], []];\n for(i = 0; i < 3; ++i) {\n if(this.showContour[i]) {\n allLevels[i] = useNewLevels[i] ? newLevels[i] : this.scene.contourLevels[i];\n }\n }\n this.surface.update({ levels: allLevels });\n }\n};\n\nproto.update = function(data) {\n var scene = this.scene;\n var sceneLayout = scene.fullSceneLayout;\n var surface = this.surface;\n var colormap = parseColorScale(data);\n var scaleFactor = scene.dataScale;\n var xlen = data.z[0].length;\n var ylen = data._ylength;\n var contourLevels = scene.contourLevels;\n\n // Save data\n this.data = data;\n\n /*\n * Fill and transpose zdata.\n * Consistent with 'heatmap' and 'contour', plotly 'surface'\n * 'z' are such that sub-arrays correspond to y-coords\n * and that the sub-array entries correspond to a x-coords,\n * which is the transpose of 'gl-surface-plot'.\n */\n\n var i, j, k, v;\n var rawCoords = [];\n for(i = 0; i < 3; i++) {\n rawCoords[i] = [];\n for(j = 0; j < xlen; j++) {\n rawCoords[i][j] = [];\n /*\n for(k = 0; k < ylen; k++) {\n rawCoords[i][j][k] = undefined;\n }\n */\n }\n }\n\n // coords x, y & z\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n rawCoords[0][j][k] = this.getXat(j, k, data.xcalendar, sceneLayout.xaxis);\n rawCoords[1][j][k] = this.getYat(j, k, data.ycalendar, sceneLayout.yaxis);\n rawCoords[2][j][k] = this.getZat(j, k, data.zcalendar, sceneLayout.zaxis);\n }\n }\n\n if(data.connectgaps) {\n data._emptypoints = findEmpties(rawCoords[2]);\n interp2d(rawCoords[2], data._emptypoints);\n\n data._interpolatedZ = [];\n for(j = 0; j < xlen; j++) {\n data._interpolatedZ[j] = [];\n for(k = 0; k < ylen; k++) {\n data._interpolatedZ[j][k] = rawCoords[2][j][k];\n }\n }\n }\n\n // Note: log axes are not defined in surfaces yet.\n // but they could be defined here...\n\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n v = rawCoords[i][j][k];\n if(v === null || v === undefined) {\n rawCoords[i][j][k] = NaN;\n } else {\n v = rawCoords[i][j][k] *= scaleFactor[i];\n }\n }\n }\n }\n\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n v = rawCoords[i][j][k];\n if(v !== null && v !== undefined) {\n if(this.minValues[i] > v) {\n this.minValues[i] = v;\n }\n if(this.maxValues[i] < v) {\n this.maxValues[i] = v;\n }\n }\n }\n }\n }\n\n for(i = 0; i < 3; i++) {\n this.objectOffset[i] = 0.5 * (this.minValues[i] + this.maxValues[i]);\n }\n\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n v = rawCoords[i][j][k];\n if(v !== null && v !== undefined) {\n rawCoords[i][j][k] -= this.objectOffset[i];\n }\n }\n }\n }\n\n // convert processed raw data to Float32 matrices\n var coords = [\n ndarray(new Float32Array(xlen * ylen), [xlen, ylen]),\n ndarray(new Float32Array(xlen * ylen), [xlen, ylen]),\n ndarray(new Float32Array(xlen * ylen), [xlen, ylen])\n ];\n for(i = 0; i < 3; i++) {\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n coords[i].set(j, k, rawCoords[i][j][k]);\n }\n }\n }\n rawCoords = []; // free memory\n\n var params = {\n colormap: colormap,\n levels: [[], [], []],\n showContour: [true, true, true],\n showSurface: !data.hidesurface,\n contourProject: [\n [false, false, false],\n [false, false, false],\n [false, false, false]\n ],\n contourWidth: [1, 1, 1],\n contourColor: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]],\n contourTint: [1, 1, 1],\n dynamicColor: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]],\n dynamicWidth: [1, 1, 1],\n dynamicTint: [1, 1, 1],\n opacityscale: data.opacityscale,\n opacity: data.opacity\n };\n\n var cOpts = extractOpts(data);\n params.intensityBounds = [cOpts.min, cOpts.max];\n\n // Refine surface color if necessary\n if(data.surfacecolor) {\n var intensity = ndarray(new Float32Array(xlen * ylen), [xlen, ylen]);\n\n for(j = 0; j < xlen; j++) {\n for(k = 0; k < ylen; k++) {\n intensity.set(j, k, data.surfacecolor[k][j]);\n }\n }\n\n coords.push(intensity);\n } else {\n // when 'z' is used as 'intensity',\n // we must scale its value\n params.intensityBounds[0] *= scaleFactor[2];\n params.intensityBounds[1] *= scaleFactor[2];\n }\n\n if(MAX_RESOLUTION < coords[0].shape[0] ||\n MAX_RESOLUTION < coords[0].shape[1]) {\n this.refineData = false;\n }\n\n if(this.refineData === true) {\n this.dataScaleX = this.estimateScale(coords[0].shape[0], 0);\n this.dataScaleY = this.estimateScale(coords[0].shape[1], 1);\n if(this.dataScaleX !== 1 || this.dataScaleY !== 1) {\n this.refineCoords(coords);\n }\n }\n\n if(data.surfacecolor) {\n params.intensity = coords.pop();\n }\n\n var highlightEnable = [true, true, true];\n var axis = ['x', 'y', 'z'];\n\n for(i = 0; i < 3; ++i) {\n var contourParams = data.contours[axis[i]];\n highlightEnable[i] = contourParams.highlight;\n\n params.showContour[i] = contourParams.show || contourParams.highlight;\n if(!params.showContour[i]) continue;\n\n params.contourProject[i] = [\n contourParams.project.x,\n contourParams.project.y,\n contourParams.project.z\n ];\n\n if(contourParams.show) {\n this.showContour[i] = true;\n params.levels[i] = contourLevels[i];\n surface.highlightColor[i] = params.contourColor[i] = str2RgbaArray(contourParams.color);\n\n if(contourParams.usecolormap) {\n surface.highlightTint[i] = params.contourTint[i] = 0;\n } else {\n surface.highlightTint[i] = params.contourTint[i] = 1;\n }\n params.contourWidth[i] = contourParams.width;\n\n this.contourStart[i] = contourParams.start;\n this.contourEnd[i] = contourParams.end;\n this.contourSize[i] = contourParams.size;\n } else {\n this.showContour[i] = false;\n\n this.contourStart[i] = null;\n this.contourEnd[i] = null;\n this.contourSize[i] = 0;\n }\n\n if(contourParams.highlight) {\n params.dynamicColor[i] = str2RgbaArray(contourParams.highlightcolor);\n params.dynamicWidth[i] = contourParams.highlightwidth;\n }\n }\n\n // see https://github.com/plotly/plotly.js/issues/940\n if(isColormapCircular(colormap)) {\n params.vertexColor = true;\n }\n\n params.objectOffset = this.objectOffset;\n\n params.coords = coords;\n surface.update(params);\n\n surface.visible = data.visible;\n surface.enableDynamic = highlightEnable;\n surface.enableHighlight = highlightEnable;\n\n surface.snapToData = true;\n\n if('lighting' in data) {\n surface.ambientLight = data.lighting.ambient;\n surface.diffuseLight = data.lighting.diffuse;\n surface.specularLight = data.lighting.specular;\n surface.roughness = data.lighting.roughness;\n surface.fresnel = data.lighting.fresnel;\n }\n\n if('lightposition' in data) {\n surface.lightPosition = [data.lightposition.x, data.lightposition.y, data.lightposition.z];\n }\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.surface);\n this.surface.dispose();\n};\n\nfunction createSurfaceTrace(scene, data) {\n var gl = scene.glplot.gl;\n var surface = createSurface({ gl: gl });\n var result = new SurfaceTrace(scene, surface, data.uid);\n surface._trace = result;\n result.update(data);\n scene.glplot.add(surface);\n return result;\n}\n\nmodule.exports = createSurfaceTrace;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/colorscale\":379,\"../../lib\":515,\"../../lib/gl_format_color\":511,\"../../lib/str2rgbarray\":540,\"../heatmap/find_empties\":807,\"../heatmap/interp2d\":810}],1073:[function(_dereq_,module,exports){\n'use strict';\n\nvar Registry = _dereq_('../../registry');\nvar Lib = _dereq_('../../lib');\n\nvar colorscaleDefaults = _dereq_('../../components/colorscale/defaults');\nvar attributes = _dereq_('./attributes');\n\nvar MIN = 0.1; // Note: often we don't want the data cube to be disappeared\n\nfunction createWave(n, minOpacity) {\n var arr = [];\n var steps = 32; // Max: 256\n for(var i = 0; i < steps; i++) {\n var u = i / (steps - 1);\n var v = minOpacity + (1 - minOpacity) * (1 - Math.pow(Math.sin(n * u * Math.PI), 2));\n arr.push([\n u,\n Math.max(0, Math.min(1, v))\n ]);\n }\n return arr;\n}\n\nfunction isValidScaleArray(scl) {\n var highestVal = 0;\n\n if(!Array.isArray(scl) || scl.length < 2) return false;\n\n if(!scl[0] || !scl[scl.length - 1]) return false;\n\n if(+scl[0][0] !== 0 || +scl[scl.length - 1][0] !== 1) return false;\n\n for(var i = 0; i < scl.length; i++) {\n var si = scl[i];\n\n if(si.length !== 2 || +si[0] < highestVal) {\n return false;\n }\n\n highestVal = +si[0];\n }\n\n return true;\n}\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n var i, j;\n\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var x = coerce('x');\n var y = coerce('y');\n\n var z = coerce('z');\n if(!z || !z.length ||\n (x ? (x.length < 1) : false) ||\n (y ? (y.length < 1) : false)\n ) {\n traceOut.visible = false;\n return;\n }\n\n traceOut._xlength = (Array.isArray(x) && Lib.isArrayOrTypedArray(x[0])) ? z.length : z[0].length;\n traceOut._ylength = z.length;\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleTraceDefaults');\n handleCalendarDefaults(traceIn, traceOut, ['x', 'y', 'z'], layout);\n\n coerce('text');\n coerce('hovertext');\n coerce('hovertemplate');\n coerce('xhoverformat');\n coerce('yhoverformat');\n coerce('zhoverformat');\n\n // Coerce remaining properties\n [\n 'lighting.ambient',\n 'lighting.diffuse',\n 'lighting.specular',\n 'lighting.roughness',\n 'lighting.fresnel',\n 'lightposition.x',\n 'lightposition.y',\n 'lightposition.z',\n 'hidesurface',\n 'connectgaps',\n 'opacity'\n ].forEach(function(x) { coerce(x); });\n\n var surfaceColor = coerce('surfacecolor');\n\n var dims = ['x', 'y', 'z'];\n for(i = 0; i < 3; ++i) {\n var contourDim = 'contours.' + dims[i];\n var show = coerce(contourDim + '.show');\n var highlight = coerce(contourDim + '.highlight');\n\n if(show || highlight) {\n for(j = 0; j < 3; ++j) {\n coerce(contourDim + '.project.' + dims[j]);\n }\n }\n\n if(show) {\n coerce(contourDim + '.color');\n coerce(contourDim + '.width');\n coerce(contourDim + '.usecolormap');\n }\n\n if(highlight) {\n coerce(contourDim + '.highlightcolor');\n coerce(contourDim + '.highlightwidth');\n }\n\n coerce(contourDim + '.start');\n coerce(contourDim + '.end');\n coerce(contourDim + '.size');\n }\n\n // backward compatibility block\n if(!surfaceColor) {\n mapLegacy(traceIn, 'zmin', 'cmin');\n mapLegacy(traceIn, 'zmax', 'cmax');\n mapLegacy(traceIn, 'zauto', 'cauto');\n }\n\n // TODO if contours.?.usecolormap are false and hidesurface is true\n // the colorbar shouldn't be shown by default\n\n colorscaleDefaults(\n traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'c'}\n );\n\n opacityscaleDefaults(traceIn, traceOut, layout, coerce);\n\n // disable 1D transforms - currently surface does NOT support column data like heatmap does\n // you can use mesh3d for this use case, but not surface\n traceOut._length = null;\n}\n\nfunction opacityscaleDefaults(traceIn, traceOut, layout, coerce) {\n var opacityscale = coerce('opacityscale');\n if(opacityscale === 'max') {\n traceOut.opacityscale = [[0, MIN], [1, 1]];\n } else if(opacityscale === 'min') {\n traceOut.opacityscale = [[0, 1], [1, MIN]];\n } else if(opacityscale === 'extremes') {\n traceOut.opacityscale = createWave(1, MIN);\n } else if(!isValidScaleArray(opacityscale)) {\n traceOut.opacityscale = undefined;\n }\n}\n\nfunction mapLegacy(traceIn, oldAttr, newAttr) {\n if(oldAttr in traceIn && !(newAttr in traceIn)) {\n traceIn[newAttr] = traceIn[oldAttr];\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n opacityscaleDefaults: opacityscaleDefaults\n};\n\n},{\"../../components/colorscale/defaults\":377,\"../../lib\":515,\"../../registry\":647,\"./attributes\":1070}],1074:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n calc: _dereq_('./calc'),\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'surface',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', '2dMap', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":607,\"./attributes\":1070,\"./calc\":1071,\"./convert\":1072,\"./defaults\":1073}],1075:[function(_dereq_,module,exports){\n'use strict';\n\nvar annAttrs = _dereq_('../../components/annotations/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\nvar fontAttrs = _dereq_('../../plots/font_attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar descriptionOnlyNumbers = _dereq_('../../plots/cartesian/axis_format_attributes').descriptionOnlyNumbers;\n\nvar attrs = module.exports = overrideAll({\n domain: domainAttrs({name: 'table', trace: true}),\n\n columnwidth: {\n valType: 'number',\n arrayOk: true,\n dflt: null,\n },\n\n columnorder: {\n valType: 'data_array',\n },\n\n header: {\n\n values: {\n valType: 'data_array',\n dflt: [],\n },\n\n format: {\n valType: 'data_array',\n dflt: [],\n description: descriptionOnlyNumbers('cell value')\n },\n\n prefix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n suffix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n height: {\n valType: 'number',\n dflt: 28,\n },\n\n align: extendFlat({}, annAttrs.align, {arrayOk: true}),\n\n line: {\n width: {\n valType: 'number',\n arrayOk: true,\n dflt: 1,\n },\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'grey',\n }\n },\n\n fill: {\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'white',\n }\n },\n\n font: extendFlat({}, fontAttrs({arrayOk: true}))\n },\n\n cells: {\n\n values: {\n valType: 'data_array',\n dflt: [],\n },\n\n format: {\n valType: 'data_array',\n dflt: [],\n description: descriptionOnlyNumbers('cell value')\n },\n\n prefix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n suffix: {\n valType: 'string',\n arrayOk: true,\n dflt: null,\n },\n\n height: {\n valType: 'number',\n dflt: 20,\n },\n\n align: extendFlat({}, annAttrs.align, {arrayOk: true}),\n\n line: {\n width: {\n valType: 'number',\n arrayOk: true,\n dflt: 1,\n },\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'grey',\n }\n },\n\n fill: {\n color: {\n valType: 'color',\n arrayOk: true,\n dflt: 'white',\n }\n },\n\n font: extendFlat({}, fontAttrs({arrayOk: true}))\n }\n}, 'calc', 'from-root');\nattrs.transforms = undefined;\n\n},{\"../../components/annotations/attributes\":350,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/domain\":593,\"../../plots/font_attributes\":594}],1076:[function(_dereq_,module,exports){\n'use strict';\n\nvar getModuleCalcData = _dereq_('../../plots/get_data').getModuleCalcData;\nvar tablePlot = _dereq_('./plot');\n\nvar TABLE = 'table';\n\nexports.name = TABLE;\n\nexports.plot = function(gd) {\n var calcData = getModuleCalcData(gd.calcdata, TABLE)[0];\n if(calcData.length) tablePlot(gd, calcData);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n var hadTable = (oldFullLayout._has && oldFullLayout._has(TABLE));\n var hasTable = (newFullLayout._has && newFullLayout._has(TABLE));\n\n if(hadTable && !hasTable) {\n oldFullLayout._paperdiv.selectAll('.table').remove();\n }\n};\n\n},{\"../../plots/get_data\":602,\"./plot\":1083}],1077:[function(_dereq_,module,exports){\n'use strict';\n\nvar wrap = _dereq_('../../lib/gup').wrap;\n\nmodule.exports = function calc() {\n // we don't actually need to include the trace here, since that will be added\n // by Plots.doCalcdata, and that's all we actually need later.\n return wrap({});\n};\n\n},{\"../../lib/gup\":512}],1078:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n cellPad: 8,\n columnExtentOffset: 10,\n columnTitleOffset: 28,\n emptyHeaderHeight: 16,\n latexCheck: /^\\$.*\\$$/,\n goldenRatio: 1.618,\n lineBreaker: '
',\n maxDimensionCount: 60,\n overdrag: 45,\n releaseTransitionDuration: 120,\n releaseTransitionEase: 'cubic-out',\n scrollbarCaptureWidth: 18,\n scrollbarHideDelay: 1000,\n scrollbarHideDuration: 1000,\n scrollbarOffset: 5,\n scrollbarWidth: 8,\n transitionDuration: 100,\n transitionEase: 'cubic-out',\n uplift: 5,\n wrapSpacer: ' ',\n wrapSplitCharacter: ' ',\n cn: {\n // general class names\n table: 'table',\n tableControlView: 'table-control-view',\n scrollBackground: 'scroll-background',\n yColumn: 'y-column',\n columnBlock: 'column-block',\n scrollAreaClip: 'scroll-area-clip',\n scrollAreaClipRect: 'scroll-area-clip-rect',\n columnBoundary: 'column-boundary',\n columnBoundaryClippath: 'column-boundary-clippath',\n columnBoundaryRect: 'column-boundary-rect',\n columnCells: 'column-cells',\n columnCell: 'column-cell',\n cellRect: 'cell-rect',\n cellText: 'cell-text',\n cellTextHolder: 'cell-text-holder',\n\n // scroll related class names\n scrollbarKit: 'scrollbar-kit',\n scrollbar: 'scrollbar',\n scrollbarSlider: 'scrollbar-slider',\n scrollbarGlyph: 'scrollbar-glyph',\n scrollbarCaptureZone: 'scrollbar-capture-zone'\n }\n};\n\n},{}],1079:[function(_dereq_,module,exports){\n'use strict';\n\nvar c = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar isNumeric = _dereq_('fast-isnumeric');\n\n// pure functions, don't alter but passes on `gd` and parts of `trace` without deep copying\nmodule.exports = function calc(gd, trace) {\n var cellsValues = squareStringMatrix(trace.cells.values);\n var slicer = function(a) {\n return a.slice(trace.header.values.length, a.length);\n };\n var headerValuesIn = squareStringMatrix(trace.header.values);\n if(headerValuesIn.length && !headerValuesIn[0].length) {\n headerValuesIn[0] = [''];\n headerValuesIn = squareStringMatrix(headerValuesIn);\n }\n var headerValues = headerValuesIn\n .concat(slicer(cellsValues).map(function() {\n return emptyStrings((headerValuesIn[0] || ['']).length);\n }));\n\n var domain = trace.domain;\n var groupWidth = Math.floor(gd._fullLayout._size.w * (domain.x[1] - domain.x[0]));\n var groupHeight = Math.floor(gd._fullLayout._size.h * (domain.y[1] - domain.y[0]));\n var headerRowHeights = trace.header.values.length ?\n headerValues[0].map(function() { return trace.header.height; }) :\n [c.emptyHeaderHeight];\n var rowHeights = cellsValues.length ? cellsValues[0].map(function() { return trace.cells.height; }) : [];\n var headerHeight = headerRowHeights.reduce(sum, 0);\n var scrollHeight = groupHeight - headerHeight;\n var minimumFillHeight = scrollHeight + c.uplift;\n var anchorToRowBlock = makeAnchorToRowBlock(rowHeights, minimumFillHeight);\n var anchorToHeaderRowBlock = makeAnchorToRowBlock(headerRowHeights, headerHeight);\n var headerRowBlocks = makeRowBlock(anchorToHeaderRowBlock, []);\n var rowBlocks = makeRowBlock(anchorToRowBlock, headerRowBlocks);\n var uniqueKeys = {};\n var columnOrder = trace._fullInput.columnorder.concat(slicer(cellsValues.map(function(d, i) {return i;})));\n var columnWidths = headerValues.map(function(d, i) {\n var value = Array.isArray(trace.columnwidth) ?\n trace.columnwidth[Math.min(i, trace.columnwidth.length - 1)] :\n trace.columnwidth;\n return isNumeric(value) ? Number(value) : 1;\n });\n var totalColumnWidths = columnWidths.reduce(sum, 0);\n\n // fit columns in the available vertical space as there's no vertical scrolling now\n columnWidths = columnWidths.map(function(d) { return d / totalColumnWidths * groupWidth; });\n\n var maxLineWidth = Math.max(arrayMax(trace.header.line.width), arrayMax(trace.cells.line.width));\n\n var calcdata = {\n // include staticPlot in the key so if it changes we delete and redraw\n key: trace.uid + gd._context.staticPlot,\n translateX: domain.x[0] * gd._fullLayout._size.w,\n translateY: gd._fullLayout._size.h * (1 - domain.y[1]),\n size: gd._fullLayout._size,\n width: groupWidth,\n maxLineWidth: maxLineWidth,\n height: groupHeight,\n columnOrder: columnOrder, // will be mutated on column move, todo use in callback\n groupHeight: groupHeight,\n rowBlocks: rowBlocks,\n headerRowBlocks: headerRowBlocks,\n scrollY: 0, // will be mutated on scroll\n cells: extendFlat({}, trace.cells, {values: cellsValues}),\n headerCells: extendFlat({}, trace.header, {values: headerValues}),\n gdColumns: headerValues.map(function(d) {return d[0];}),\n gdColumnsOriginalOrder: headerValues.map(function(d) {return d[0];}),\n prevPages: [0, 0],\n scrollbarState: {scrollbarScrollInProgress: false},\n columns: headerValues.map(function(label, i) {\n var foundKey = uniqueKeys[label];\n uniqueKeys[label] = (foundKey || 0) + 1;\n var key = label + '__' + uniqueKeys[label];\n return {\n key: key,\n label: label,\n specIndex: i,\n xIndex: columnOrder[i],\n xScale: xScale,\n x: undefined, // initialized below\n calcdata: undefined, // initialized below\n columnWidth: columnWidths[i]\n };\n })\n };\n\n calcdata.columns.forEach(function(col) {\n col.calcdata = calcdata;\n col.x = xScale(col);\n });\n\n return calcdata;\n};\n\nfunction arrayMax(maybeArray) {\n if(Array.isArray(maybeArray)) {\n var max = 0;\n for(var i = 0; i < maybeArray.length; i++) {\n max = Math.max(max, arrayMax(maybeArray[i]));\n }\n return max;\n }\n return maybeArray;\n}\n\nfunction sum(a, b) { return a + b; }\n\n// fill matrix in place to equal lengths\n// and ensure it's uniformly 2D\nfunction squareStringMatrix(matrixIn) {\n var matrix = matrixIn.slice();\n var minLen = Infinity;\n var maxLen = 0;\n var i;\n for(i = 0; i < matrix.length; i++) {\n if(!Array.isArray(matrix[i])) matrix[i] = [matrix[i]];\n minLen = Math.min(minLen, matrix[i].length);\n maxLen = Math.max(maxLen, matrix[i].length);\n }\n\n if(minLen !== maxLen) {\n for(i = 0; i < matrix.length; i++) {\n var padLen = maxLen - matrix[i].length;\n if(padLen) matrix[i] = matrix[i].concat(emptyStrings(padLen));\n }\n }\n return matrix;\n}\n\nfunction emptyStrings(len) {\n var padArray = new Array(len);\n for(var j = 0; j < len; j++) padArray[j] = '';\n return padArray;\n}\n\nfunction xScale(d) {\n return d.calcdata.columns.reduce(function(prev, next) {\n return next.xIndex < d.xIndex ? prev + next.columnWidth : prev;\n }, 0);\n}\n\nfunction makeRowBlock(anchorToRowBlock, auxiliary) {\n var blockAnchorKeys = Object.keys(anchorToRowBlock);\n return blockAnchorKeys.map(function(k) {return extendFlat({}, anchorToRowBlock[k], {auxiliaryBlocks: auxiliary});});\n}\n\nfunction makeAnchorToRowBlock(rowHeights, minimumFillHeight) {\n var anchorToRowBlock = {};\n var currentRowHeight;\n var currentAnchor = 0;\n var currentBlockHeight = 0;\n var currentBlock = makeIdentity();\n var currentFirstRowIndex = 0;\n var blockCounter = 0;\n for(var i = 0; i < rowHeights.length; i++) {\n currentRowHeight = rowHeights[i];\n currentBlock.rows.push({\n rowIndex: i,\n rowHeight: currentRowHeight\n });\n currentBlockHeight += currentRowHeight;\n if(currentBlockHeight >= minimumFillHeight || i === rowHeights.length - 1) {\n anchorToRowBlock[currentAnchor] = currentBlock;\n currentBlock.key = blockCounter++;\n currentBlock.firstRowIndex = currentFirstRowIndex;\n currentBlock.lastRowIndex = i;\n currentBlock = makeIdentity();\n currentAnchor += currentBlockHeight;\n currentFirstRowIndex = i + 1;\n currentBlockHeight = 0;\n }\n }\n\n return anchorToRowBlock;\n}\n\nfunction makeIdentity() {\n return {\n firstRowIndex: null,\n lastRowIndex: null,\n rows: []\n };\n}\n\n},{\"../../lib/extend\":505,\"./constants\":1078,\"fast-isnumeric\":190}],1080:[function(_dereq_,module,exports){\n'use strict';\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\n// pure functions, don't alter but passes on `gd` and parts of `trace` without deep copying\n\nexports.splitToPanels = function(d) {\n var prevPages = [0, 0];\n var headerPanel = extendFlat({}, d, {\n key: 'header',\n type: 'header',\n page: 0,\n prevPages: prevPages,\n currentRepaint: [null, null],\n dragHandle: true,\n values: d.calcdata.headerCells.values[d.specIndex],\n rowBlocks: d.calcdata.headerRowBlocks,\n calcdata: extendFlat({}, d.calcdata, {cells: d.calcdata.headerCells})\n });\n var revolverPanel1 = extendFlat({}, d, {\n key: 'cells1',\n type: 'cells',\n page: 0,\n prevPages: prevPages,\n currentRepaint: [null, null],\n dragHandle: false,\n values: d.calcdata.cells.values[d.specIndex],\n rowBlocks: d.calcdata.rowBlocks\n });\n var revolverPanel2 = extendFlat({}, d, {\n key: 'cells2',\n type: 'cells',\n page: 1,\n prevPages: prevPages,\n currentRepaint: [null, null],\n dragHandle: false,\n values: d.calcdata.cells.values[d.specIndex],\n rowBlocks: d.calcdata.rowBlocks\n });\n // order due to SVG using painter's algo:\n return [revolverPanel1, revolverPanel2, headerPanel];\n};\n\nexports.splitToCells = function(d) {\n var fromTo = rowFromTo(d);\n return (d.values || []).slice(fromTo[0], fromTo[1]).map(function(v, i) {\n // By keeping identical key, a DOM node removal, creation and addition is spared, important when visible\n // grid has a lot of elements (quadratic with xcol/ycol count).\n // But it has to be busted when `svgUtil.convertToTspans` is used as it reshapes cell subtrees asynchronously,\n // and by that time the user may have scrolled away, resulting in stale overwrites. The real solution will be\n // to turn `svgUtil.convertToTspans` into a cancelable request, in which case no key busting is needed.\n var buster = (typeof v === 'string') && v.match(/[<$&> ]/) ? '_keybuster_' + Math.random() : '';\n return {\n // keyWithinBlock: /*fromTo[0] + */i, // optimized future version - no busting\n // keyWithinBlock: fromTo[0] + i, // initial always-unoptimized version - janky scrolling with 5+ columns\n keyWithinBlock: i + buster, // current compromise: regular content is very fast; async content is possible\n key: fromTo[0] + i,\n column: d,\n calcdata: d.calcdata,\n page: d.page,\n rowBlocks: d.rowBlocks,\n value: v\n };\n });\n};\n\nfunction rowFromTo(d) {\n var rowBlock = d.rowBlocks[d.page];\n // fixme rowBlock truthiness check is due to ugly hack of placing 2nd panel as d.page = -1\n var rowFrom = rowBlock ? rowBlock.rows[0].rowIndex : 0;\n var rowTo = rowBlock ? rowFrom + rowBlock.rows.length : 0;\n return [rowFrom, rowTo];\n}\n\n},{\"../../lib/extend\":505}],1081:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\n\nfunction defaultColumnOrder(traceOut, coerce) {\n var specifiedColumnOrder = traceOut.columnorder || [];\n var commonLength = traceOut.header.values.length;\n var truncated = specifiedColumnOrder.slice(0, commonLength);\n var sorted = truncated.slice().sort(function(a, b) {return a - b;});\n var oneStepped = truncated.map(function(d) {return sorted.indexOf(d);});\n for(var i = oneStepped.length; i < commonLength; i++) {\n oneStepped.push(i);\n }\n coerce('columnorder', oneStepped);\n}\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n coerce('columnwidth');\n\n coerce('header.values');\n coerce('header.format');\n coerce('header.align');\n\n coerce('header.prefix');\n coerce('header.suffix');\n coerce('header.height');\n coerce('header.line.width');\n coerce('header.line.color');\n coerce('header.fill.color');\n Lib.coerceFont(coerce, 'header.font', Lib.extendFlat({}, layout.font));\n\n defaultColumnOrder(traceOut, coerce);\n\n coerce('cells.values');\n coerce('cells.format');\n coerce('cells.align');\n coerce('cells.prefix');\n coerce('cells.suffix');\n coerce('cells.height');\n coerce('cells.line.width');\n coerce('cells.line.color');\n coerce('cells.fill.color');\n Lib.coerceFont(coerce, 'cells.font', Lib.extendFlat({}, layout.font));\n\n // disable 1D transforms\n traceOut._length = null;\n};\n\n},{\"../../lib\":515,\"../../plots/domain\":593,\"./attributes\":1075}],1082:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('./calc'),\n plot: _dereq_('./plot'),\n\n moduleType: 'trace',\n name: 'table',\n basePlotModule: _dereq_('./base_plot'),\n categories: ['noOpacity'],\n meta: {\n }\n};\n\n},{\"./attributes\":1075,\"./base_plot\":1076,\"./calc\":1077,\"./defaults\":1081,\"./plot\":1083}],1083:[function(_dereq_,module,exports){\n'use strict';\n\nvar c = _dereq_('./constants');\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar numberFormat = Lib.numberFormat;\nvar gup = _dereq_('../../lib/gup');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgUtil = _dereq_('../../lib/svg_text_utils');\nvar raiseToTop = _dereq_('../../lib').raiseToTop;\nvar strTranslate = _dereq_('../../lib').strTranslate;\nvar cancelEeaseColumn = _dereq_('../../lib').cancelTransition;\nvar prepareData = _dereq_('./data_preparation_helper');\nvar splitData = _dereq_('./data_split_helpers');\nvar Color = _dereq_('../../components/color');\n\nmodule.exports = function plot(gd, wrappedTraceHolders) {\n var dynamic = !gd._context.staticPlot;\n\n var table = gd._fullLayout._paper.selectAll('.' + c.cn.table)\n .data(wrappedTraceHolders.map(function(wrappedTraceHolder) {\n var traceHolder = gup.unwrap(wrappedTraceHolder);\n var trace = traceHolder.trace;\n return prepareData(gd, trace);\n }), gup.keyFun);\n\n table.exit().remove();\n\n table.enter()\n .append('g')\n .classed(c.cn.table, true)\n .attr('overflow', 'visible')\n .style('box-sizing', 'content-box')\n .style('position', 'absolute')\n .style('left', 0)\n .style('overflow', 'visible')\n .style('shape-rendering', 'crispEdges')\n .style('pointer-events', 'all');\n\n table\n .attr('width', function(d) {return d.width + d.size.l + d.size.r;})\n .attr('height', function(d) {return d.height + d.size.t + d.size.b;})\n .attr('transform', function(d) {\n return strTranslate(d.translateX, d.translateY);\n });\n\n var tableControlView = table.selectAll('.' + c.cn.tableControlView)\n .data(gup.repeat, gup.keyFun);\n\n var cvEnter = tableControlView.enter()\n .append('g')\n .classed(c.cn.tableControlView, true)\n .style('box-sizing', 'content-box');\n if(dynamic) {\n var wheelEvent = 'onwheel' in document ? 'wheel' : 'mousewheel';\n cvEnter\n .on('mousemove', function(d) {\n tableControlView\n .filter(function(dd) {return d === dd;})\n .call(renderScrollbarKit, gd);\n })\n .on(wheelEvent, function(d) {\n if(d.scrollbarState.wheeling) return;\n d.scrollbarState.wheeling = true;\n var newY = d.scrollY + d3.event.deltaY;\n var noChange = makeDragRow(gd, tableControlView, null, newY)(d);\n if(!noChange) {\n d3.event.stopPropagation();\n d3.event.preventDefault();\n }\n d.scrollbarState.wheeling = false;\n })\n .call(renderScrollbarKit, gd, true);\n }\n\n tableControlView\n .attr('transform', function(d) {return strTranslate(d.size.l, d.size.t);});\n\n // scrollBackground merely ensures that mouse events are captured even on crazy fast scrollwheeling\n // otherwise rendering glitches may occur\n var scrollBackground = tableControlView.selectAll('.' + c.cn.scrollBackground)\n .data(gup.repeat, gup.keyFun);\n\n scrollBackground.enter()\n .append('rect')\n .classed(c.cn.scrollBackground, true)\n .attr('fill', 'none');\n\n scrollBackground\n .attr('width', function(d) {return d.width;})\n .attr('height', function(d) {return d.height;});\n\n tableControlView.each(function(d) {\n Drawing.setClipUrl(d3.select(this), scrollAreaBottomClipKey(gd, d), gd);\n });\n\n var yColumn = tableControlView.selectAll('.' + c.cn.yColumn)\n .data(function(vm) {return vm.columns;}, gup.keyFun);\n\n yColumn.enter()\n .append('g')\n .classed(c.cn.yColumn, true);\n\n yColumn.exit().remove();\n\n yColumn.attr('transform', function(d) {return strTranslate(d.x, 0);});\n\n if(dynamic) {\n yColumn.call(d3.behavior.drag()\n .origin(function(d) {\n var movedColumn = d3.select(this);\n easeColumn(movedColumn, d, -c.uplift);\n raiseToTop(this);\n d.calcdata.columnDragInProgress = true;\n renderScrollbarKit(tableControlView.filter(function(dd) {return d.calcdata.key === dd.key;}), gd);\n return d;\n })\n .on('drag', function(d) {\n var movedColumn = d3.select(this);\n var getter = function(dd) {return (d === dd ? d3.event.x : dd.x) + dd.columnWidth / 2;};\n d.x = Math.max(-c.overdrag, Math.min(d.calcdata.width + c.overdrag - d.columnWidth, d3.event.x));\n\n var sortableColumns = flatData(yColumn).filter(function(dd) {return dd.calcdata.key === d.calcdata.key;});\n var newOrder = sortableColumns.sort(function(a, b) {return getter(a) - getter(b);});\n newOrder.forEach(function(dd, i) {\n dd.xIndex = i;\n dd.x = d === dd ? dd.x : dd.xScale(dd);\n });\n\n yColumn.filter(function(dd) {return d !== dd;})\n .transition()\n .ease(c.transitionEase)\n .duration(c.transitionDuration)\n .attr('transform', function(d) {return strTranslate(d.x, 0);});\n movedColumn\n .call(cancelEeaseColumn)\n .attr('transform', strTranslate(d.x, -c.uplift));\n })\n .on('dragend', function(d) {\n var movedColumn = d3.select(this);\n var p = d.calcdata;\n d.x = d.xScale(d);\n d.calcdata.columnDragInProgress = false;\n easeColumn(movedColumn, d, 0);\n columnMoved(gd, p, p.columns.map(function(dd) {return dd.xIndex;}));\n })\n );\n }\n\n yColumn.each(function(d) {\n Drawing.setClipUrl(d3.select(this), columnBoundaryClipKey(gd, d), gd);\n });\n\n var columnBlock = yColumn.selectAll('.' + c.cn.columnBlock)\n .data(splitData.splitToPanels, gup.keyFun);\n\n columnBlock.enter()\n .append('g')\n .classed(c.cn.columnBlock, true)\n .attr('id', function(d) {return d.key;});\n\n columnBlock\n .style('cursor', function(d) {\n return d.dragHandle ? 'ew-resize' : d.calcdata.scrollbarState.barWiggleRoom ? 'ns-resize' : 'default';\n });\n\n var headerColumnBlock = columnBlock.filter(headerBlock);\n var cellsColumnBlock = columnBlock.filter(cellsBlock);\n\n if(dynamic) {\n cellsColumnBlock.call(d3.behavior.drag()\n .origin(function(d) {\n d3.event.stopPropagation();\n return d;\n })\n .on('drag', makeDragRow(gd, tableControlView, -1))\n .on('dragend', function() {\n // fixme emit plotly notification\n })\n );\n }\n\n // initial rendering: header is rendered first, as it may may have async LaTeX (show header first)\n // but blocks are _entered_ the way they are due to painter's algo (header on top)\n renderColumnCellTree(gd, tableControlView, headerColumnBlock, columnBlock);\n renderColumnCellTree(gd, tableControlView, cellsColumnBlock, columnBlock);\n\n var scrollAreaClip = tableControlView.selectAll('.' + c.cn.scrollAreaClip)\n .data(gup.repeat, gup.keyFun);\n\n scrollAreaClip.enter()\n .append('clipPath')\n .classed(c.cn.scrollAreaClip, true)\n .attr('id', function(d) {return scrollAreaBottomClipKey(gd, d);});\n\n var scrollAreaClipRect = scrollAreaClip.selectAll('.' + c.cn.scrollAreaClipRect)\n .data(gup.repeat, gup.keyFun);\n\n scrollAreaClipRect.enter()\n .append('rect')\n .classed(c.cn.scrollAreaClipRect, true)\n .attr('x', -c.overdrag)\n .attr('y', -c.uplift)\n .attr('fill', 'none');\n\n scrollAreaClipRect\n .attr('width', function(d) {return d.width + 2 * c.overdrag;})\n .attr('height', function(d) {return d.height + c.uplift;});\n\n var columnBoundary = yColumn.selectAll('.' + c.cn.columnBoundary)\n .data(gup.repeat, gup.keyFun);\n\n columnBoundary.enter()\n .append('g')\n .classed(c.cn.columnBoundary, true);\n\n var columnBoundaryClippath = yColumn.selectAll('.' + c.cn.columnBoundaryClippath)\n .data(gup.repeat, gup.keyFun);\n\n // SVG spec doesn't mandate wrapping into a and doesn't seem to cause a speed difference\n columnBoundaryClippath.enter()\n .append('clipPath')\n .classed(c.cn.columnBoundaryClippath, true);\n\n columnBoundaryClippath\n .attr('id', function(d) {return columnBoundaryClipKey(gd, d);});\n\n var columnBoundaryRect = columnBoundaryClippath.selectAll('.' + c.cn.columnBoundaryRect)\n .data(gup.repeat, gup.keyFun);\n\n columnBoundaryRect.enter()\n .append('rect')\n .classed(c.cn.columnBoundaryRect, true)\n .attr('fill', 'none');\n\n columnBoundaryRect\n .attr('width', function(d) { return d.columnWidth + 2 * roundHalfWidth(d); })\n .attr('height', function(d) {return d.calcdata.height + 2 * roundHalfWidth(d) + c.uplift;})\n .attr('x', function(d) { return -roundHalfWidth(d); })\n .attr('y', function(d) { return -roundHalfWidth(d); });\n\n updateBlockYPosition(null, cellsColumnBlock, tableControlView);\n};\n\nfunction roundHalfWidth(d) {\n return Math.ceil(d.calcdata.maxLineWidth / 2);\n}\n\nfunction scrollAreaBottomClipKey(gd, d) {\n return 'clip' + gd._fullLayout._uid + '_scrollAreaBottomClip_' + d.key;\n}\n\nfunction columnBoundaryClipKey(gd, d) {\n return 'clip' + gd._fullLayout._uid + '_columnBoundaryClippath_' + d.calcdata.key + '_' + d.specIndex;\n}\n\nfunction flatData(selection) {\n return [].concat.apply([], selection.map(function(g) {return g;}))\n .map(function(g) {return g.__data__;});\n}\n\nfunction renderScrollbarKit(tableControlView, gd, bypassVisibleBar) {\n function calcTotalHeight(d) {\n var blocks = d.rowBlocks;\n return firstRowAnchor(blocks, blocks.length - 1) + (blocks.length ? rowsHeight(blocks[blocks.length - 1], Infinity) : 1);\n }\n\n var scrollbarKit = tableControlView.selectAll('.' + c.cn.scrollbarKit)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarKit.enter()\n .append('g')\n .classed(c.cn.scrollbarKit, true)\n .style('shape-rendering', 'geometricPrecision');\n\n scrollbarKit\n .each(function(d) {\n var s = d.scrollbarState;\n s.totalHeight = calcTotalHeight(d);\n s.scrollableAreaHeight = d.groupHeight - headerHeight(d);\n s.currentlyVisibleHeight = Math.min(s.totalHeight, s.scrollableAreaHeight);\n s.ratio = s.currentlyVisibleHeight / s.totalHeight;\n s.barLength = Math.max(s.ratio * s.currentlyVisibleHeight, c.goldenRatio * c.scrollbarWidth);\n s.barWiggleRoom = s.currentlyVisibleHeight - s.barLength;\n s.wiggleRoom = Math.max(0, s.totalHeight - s.scrollableAreaHeight);\n s.topY = s.barWiggleRoom === 0 ? 0 : (d.scrollY / s.wiggleRoom) * s.barWiggleRoom;\n s.bottomY = s.topY + s.barLength;\n s.dragMultiplier = s.wiggleRoom / s.barWiggleRoom;\n })\n .attr('transform', function(d) {\n var xPosition = d.width + c.scrollbarWidth / 2 + c.scrollbarOffset;\n return strTranslate(xPosition, headerHeight(d));\n });\n\n var scrollbar = scrollbarKit.selectAll('.' + c.cn.scrollbar)\n .data(gup.repeat, gup.keyFun);\n\n scrollbar.enter()\n .append('g')\n .classed(c.cn.scrollbar, true);\n\n var scrollbarSlider = scrollbar.selectAll('.' + c.cn.scrollbarSlider)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarSlider.enter()\n .append('g')\n .classed(c.cn.scrollbarSlider, true);\n\n scrollbarSlider\n .attr('transform', function(d) {\n return strTranslate(0, d.scrollbarState.topY || 0);\n });\n\n var scrollbarGlyph = scrollbarSlider.selectAll('.' + c.cn.scrollbarGlyph)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarGlyph.enter()\n .append('line')\n .classed(c.cn.scrollbarGlyph, true)\n .attr('stroke', 'black')\n .attr('stroke-width', c.scrollbarWidth)\n .attr('stroke-linecap', 'round')\n .attr('y1', c.scrollbarWidth / 2);\n\n scrollbarGlyph\n .attr('y2', function(d) {\n return d.scrollbarState.barLength - c.scrollbarWidth / 2;\n })\n .attr('stroke-opacity', function(d) {\n return d.columnDragInProgress || !d.scrollbarState.barWiggleRoom || bypassVisibleBar ? 0 : 0.4;\n });\n\n // cancel transition: possible pending (also, delayed) transition\n scrollbarGlyph\n .transition().delay(0).duration(0);\n\n scrollbarGlyph\n .transition().delay(c.scrollbarHideDelay).duration(c.scrollbarHideDuration)\n .attr('stroke-opacity', 0);\n\n var scrollbarCaptureZone = scrollbar.selectAll('.' + c.cn.scrollbarCaptureZone)\n .data(gup.repeat, gup.keyFun);\n\n scrollbarCaptureZone.enter()\n .append('line')\n .classed(c.cn.scrollbarCaptureZone, true)\n .attr('stroke', 'white')\n .attr('stroke-opacity', 0.01) // some browser might get rid of a 0 opacity element\n .attr('stroke-width', c.scrollbarCaptureWidth)\n .attr('stroke-linecap', 'butt')\n .attr('y1', 0)\n .on('mousedown', function(d) {\n var y = d3.event.y;\n var bbox = this.getBoundingClientRect();\n var s = d.scrollbarState;\n var pixelVal = y - bbox.top;\n var inverseScale = d3.scale.linear().domain([0, s.scrollableAreaHeight]).range([0, s.totalHeight]).clamp(true);\n if(!(s.topY <= pixelVal && pixelVal <= s.bottomY)) {\n makeDragRow(gd, tableControlView, null, inverseScale(pixelVal - s.barLength / 2))(d);\n }\n })\n .call(d3.behavior.drag()\n .origin(function(d) {\n d3.event.stopPropagation();\n d.scrollbarState.scrollbarScrollInProgress = true;\n return d;\n })\n .on('drag', makeDragRow(gd, tableControlView))\n .on('dragend', function() {\n // fixme emit Plotly event\n })\n );\n\n scrollbarCaptureZone\n .attr('y2', function(d) {\n return d.scrollbarState.scrollableAreaHeight;\n });\n\n // Remove scroll glyph and capture zone on static plots\n // as they don't render properly when converted to PDF\n // in the Chrome PDF viewer\n // https://github.com/plotly/streambed/issues/11618\n if(gd._context.staticPlot) {\n scrollbarGlyph.remove();\n scrollbarCaptureZone.remove();\n }\n}\n\nfunction renderColumnCellTree(gd, tableControlView, columnBlock, allColumnBlock) {\n // fixme this perf hotspot\n // this is performance critical code as scrolling calls it on every revolver switch\n // it appears sufficiently fast but there are plenty of low-hanging fruits for performance optimization\n\n var columnCells = renderColumnCells(columnBlock);\n\n var columnCell = renderColumnCell(columnCells);\n\n supplyStylingValues(columnCell);\n\n var cellRect = renderCellRect(columnCell);\n\n sizeAndStyleRect(cellRect);\n\n var cellTextHolder = renderCellTextHolder(columnCell);\n\n var cellText = renderCellText(cellTextHolder);\n\n setFont(cellText);\n populateCellText(cellText, tableControlView, allColumnBlock, gd);\n\n // doing this at the end when text, and text stlying are set\n setCellHeightAndPositionY(columnCell);\n}\n\nfunction renderColumnCells(columnBlock) {\n var columnCells = columnBlock.selectAll('.' + c.cn.columnCells)\n .data(gup.repeat, gup.keyFun);\n\n columnCells.enter()\n .append('g')\n .classed(c.cn.columnCells, true);\n\n columnCells.exit()\n .remove();\n\n return columnCells;\n}\n\nfunction renderColumnCell(columnCells) {\n var columnCell = columnCells.selectAll('.' + c.cn.columnCell)\n .data(splitData.splitToCells, function(d) {return d.keyWithinBlock;});\n\n columnCell.enter()\n .append('g')\n .classed(c.cn.columnCell, true);\n\n columnCell.exit()\n .remove();\n\n return columnCell;\n}\n\nfunction renderCellRect(columnCell) {\n var cellRect = columnCell.selectAll('.' + c.cn.cellRect)\n .data(gup.repeat, function(d) {return d.keyWithinBlock;});\n\n cellRect.enter()\n .append('rect')\n .classed(c.cn.cellRect, true);\n\n return cellRect;\n}\n\nfunction renderCellText(cellTextHolder) {\n var cellText = cellTextHolder.selectAll('.' + c.cn.cellText)\n .data(gup.repeat, function(d) {return d.keyWithinBlock;});\n\n cellText.enter()\n .append('text')\n .classed(c.cn.cellText, true)\n .style('cursor', function() {return 'auto';})\n .on('mousedown', function() {d3.event.stopPropagation();});\n\n return cellText;\n}\n\nfunction renderCellTextHolder(columnCell) {\n var cellTextHolder = columnCell.selectAll('.' + c.cn.cellTextHolder)\n .data(gup.repeat, function(d) {return d.keyWithinBlock;});\n\n cellTextHolder.enter()\n .append('g')\n .classed(c.cn.cellTextHolder, true)\n .style('shape-rendering', 'geometricPrecision');\n\n return cellTextHolder;\n}\n\nfunction supplyStylingValues(columnCell) {\n columnCell\n .each(function(d, i) {\n var spec = d.calcdata.cells.font;\n var col = d.column.specIndex;\n var font = {\n size: gridPick(spec.size, col, i),\n color: gridPick(spec.color, col, i),\n family: gridPick(spec.family, col, i)\n };\n d.rowNumber = d.key;\n d.align = gridPick(d.calcdata.cells.align, col, i);\n d.cellBorderWidth = gridPick(d.calcdata.cells.line.width, col, i);\n d.font = font;\n });\n}\n\nfunction setFont(cellText) {\n cellText\n .each(function(d) {\n Drawing.font(d3.select(this), d.font);\n });\n}\n\nfunction sizeAndStyleRect(cellRect) {\n cellRect\n .attr('width', function(d) {return d.column.columnWidth;})\n .attr('stroke-width', function(d) {return d.cellBorderWidth;})\n .each(function(d) {\n var atomicSelection = d3.select(this);\n Color.stroke(atomicSelection, gridPick(d.calcdata.cells.line.color, d.column.specIndex, d.rowNumber));\n Color.fill(atomicSelection, gridPick(d.calcdata.cells.fill.color, d.column.specIndex, d.rowNumber));\n });\n}\n\nfunction populateCellText(cellText, tableControlView, allColumnBlock, gd) {\n cellText\n .text(function(d) {\n var col = d.column.specIndex;\n var row = d.rowNumber;\n\n var userSuppliedContent = d.value;\n var stringSupplied = (typeof userSuppliedContent === 'string');\n var hasBreaks = stringSupplied && userSuppliedContent.match(/
/i);\n var userBrokenText = !stringSupplied || hasBreaks;\n d.mayHaveMarkup = stringSupplied && userSuppliedContent.match(/[<&>]/);\n\n var latex = isLatex(userSuppliedContent);\n d.latex = latex;\n\n var prefix = latex ? '' : gridPick(d.calcdata.cells.prefix, col, row) || '';\n var suffix = latex ? '' : gridPick(d.calcdata.cells.suffix, col, row) || '';\n var format = latex ? null : gridPick(d.calcdata.cells.format, col, row) || null;\n\n var prefixSuffixedText = prefix + (format ? numberFormat(format)(d.value) : d.value) + suffix;\n\n var hasWrapSplitCharacter;\n d.wrappingNeeded = !d.wrapped && !userBrokenText && !latex && (hasWrapSplitCharacter = hasWrapCharacter(prefixSuffixedText));\n d.cellHeightMayIncrease = hasBreaks || latex || d.mayHaveMarkup || (hasWrapSplitCharacter === void(0) ? hasWrapCharacter(prefixSuffixedText) : hasWrapSplitCharacter);\n d.needsConvertToTspans = d.mayHaveMarkup || d.wrappingNeeded || d.latex;\n\n var textToRender;\n if(d.wrappingNeeded) {\n var hrefPreservedText = c.wrapSplitCharacter === ' ' ? prefixSuffixedText.replace(/ pTop) {\n pages.push(blockIndex);\n }\n pTop += rowsHeight;\n\n // consider this nice final optimization; put it in `for` condition - caveat, currently the\n // block.allRowsHeight relies on being invalidated, so enabling this opt may not be safe\n // if(pages.length > 1) break;\n }\n\n return pages;\n}\n\nfunction updateBlockYPosition(gd, cellsColumnBlock, tableControlView) {\n var d = flatData(cellsColumnBlock)[0];\n if(d === undefined) return;\n var blocks = d.rowBlocks;\n var calcdata = d.calcdata;\n\n var bottom = firstRowAnchor(blocks, blocks.length);\n var scrollHeight = d.calcdata.groupHeight - headerHeight(d);\n var scrollY = calcdata.scrollY = Math.max(0, Math.min(bottom - scrollHeight, calcdata.scrollY));\n\n var pages = findPagesAndCacheHeights(blocks, scrollY, scrollHeight);\n if(pages.length === 1) {\n if(pages[0] === blocks.length - 1) {\n pages.unshift(pages[0] - 1);\n } else {\n pages.push(pages[0] + 1);\n }\n }\n\n // make phased out page jump by 2 while leaving stationary page intact\n if(pages[0] % 2) {\n pages.reverse();\n }\n\n cellsColumnBlock\n .each(function(d, i) {\n // these values will also be needed when a block is translated again due to growing cell height\n d.page = pages[i];\n d.scrollY = scrollY;\n });\n\n cellsColumnBlock\n .attr('transform', function(d) {\n var yTranslate = firstRowAnchor(d.rowBlocks, d.page) - d.scrollY;\n return strTranslate(0, yTranslate);\n });\n\n // conditionally rerendering panel 0 and 1\n if(gd) {\n conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, d.prevPages, d, 0);\n conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, d.prevPages, d, 1);\n renderScrollbarKit(tableControlView, gd);\n }\n}\n\nfunction makeDragRow(gd, allTableControlView, optionalMultiplier, optionalPosition) {\n return function dragRow(eventD) {\n // may come from whichever DOM event target: drag, wheel, bar... eventD corresponds to event target\n var d = eventD.calcdata ? eventD.calcdata : eventD;\n var tableControlView = allTableControlView.filter(function(dd) {return d.key === dd.key;});\n var multiplier = optionalMultiplier || d.scrollbarState.dragMultiplier;\n\n var initialScrollY = d.scrollY;\n\n d.scrollY = optionalPosition === void(0) ? d.scrollY + multiplier * d3.event.dy : optionalPosition;\n var cellsColumnBlock = tableControlView.selectAll('.' + c.cn.yColumn).selectAll('.' + c.cn.columnBlock).filter(cellsBlock);\n updateBlockYPosition(gd, cellsColumnBlock, tableControlView);\n\n // return false if we've \"used\" the scroll, ie it did something,\n // so the event shouldn't bubble (if appropriate)\n return d.scrollY === initialScrollY;\n };\n}\n\nfunction conditionalPanelRerender(gd, tableControlView, cellsColumnBlock, pages, prevPages, d, revolverIndex) {\n var shouldComponentUpdate = pages[revolverIndex] !== prevPages[revolverIndex];\n if(shouldComponentUpdate) {\n clearTimeout(d.currentRepaint[revolverIndex]);\n d.currentRepaint[revolverIndex] = setTimeout(function() {\n // setTimeout might lag rendering but yields a smoother scroll, because fast scrolling makes\n // some repaints invisible ie. wasteful (DOM work blocks the main thread)\n var toRerender = cellsColumnBlock.filter(function(d, i) {return i === revolverIndex && pages[i] !== prevPages[i];});\n renderColumnCellTree(gd, tableControlView, toRerender, cellsColumnBlock);\n prevPages[revolverIndex] = pages[revolverIndex];\n });\n }\n}\n\nfunction wrapTextMaker(columnBlock, element, tableControlView, gd) {\n return function wrapText() {\n var cellTextHolder = d3.select(element.parentNode);\n cellTextHolder\n .each(function(d) {\n var fragments = d.fragments;\n cellTextHolder.selectAll('tspan.line').each(function(dd, i) {\n fragments[i].width = this.getComputedTextLength();\n });\n // last element is only for measuring the separator character, so it's ignored:\n var separatorLength = fragments[fragments.length - 1].width;\n var rest = fragments.slice(0, -1);\n var currentRow = [];\n var currentAddition, currentAdditionLength;\n var currentRowLength = 0;\n var rowLengthLimit = d.column.columnWidth - 2 * c.cellPad;\n d.value = '';\n while(rest.length) {\n currentAddition = rest.shift();\n currentAdditionLength = currentAddition.width + separatorLength;\n if(currentRowLength + currentAdditionLength > rowLengthLimit) {\n d.value += currentRow.join(c.wrapSpacer) + c.lineBreaker;\n currentRow = [];\n currentRowLength = 0;\n }\n currentRow.push(currentAddition.text);\n currentRowLength += currentAdditionLength;\n }\n if(currentRowLength) {\n d.value += currentRow.join(c.wrapSpacer);\n }\n d.wrapped = true;\n });\n\n // the pre-wrapped text was rendered only for the text measurements\n cellTextHolder.selectAll('tspan.line').remove();\n\n // resupply text, now wrapped\n populateCellText(cellTextHolder.select('.' + c.cn.cellText), tableControlView, columnBlock, gd);\n d3.select(element.parentNode.parentNode).call(setCellHeightAndPositionY);\n };\n}\n\nfunction updateYPositionMaker(columnBlock, element, tableControlView, gd, d) {\n return function updateYPosition() {\n if(d.settledY) return;\n var cellTextHolder = d3.select(element.parentNode);\n var l = getBlock(d);\n var rowIndex = d.key - l.firstRowIndex;\n\n var declaredRowHeight = l.rows[rowIndex].rowHeight;\n\n var requiredHeight = d.cellHeightMayIncrease ? element.parentNode.getBoundingClientRect().height + 2 * c.cellPad : declaredRowHeight;\n\n var finalHeight = Math.max(requiredHeight, declaredRowHeight);\n var increase = finalHeight - l.rows[rowIndex].rowHeight;\n\n if(increase) {\n // current row height increased\n l.rows[rowIndex].rowHeight = finalHeight;\n\n columnBlock\n .selectAll('.' + c.cn.columnCell)\n .call(setCellHeightAndPositionY);\n\n updateBlockYPosition(null, columnBlock.filter(cellsBlock), 0);\n\n // if d.column.type === 'header', then the scrollbar has to be pushed downward to the scrollable area\n // if d.column.type === 'cells', it can still be relevant if total scrolling content height is less than the\n // scrollable window, as increases to row heights may need scrollbar updates\n renderScrollbarKit(tableControlView, gd, true);\n }\n\n cellTextHolder\n .attr('transform', function() {\n // this code block is only invoked for items where d.cellHeightMayIncrease is truthy\n var element = this;\n var columnCellElement = element.parentNode;\n var box = columnCellElement.getBoundingClientRect();\n var rectBox = d3.select(element.parentNode).select('.' + c.cn.cellRect).node().getBoundingClientRect();\n var currentTransform = element.transform.baseVal.consolidate();\n var yPosition = rectBox.top - box.top + (currentTransform ? currentTransform.matrix.f : c.cellPad);\n return strTranslate(xPosition(d, d3.select(element.parentNode).select('.' + c.cn.cellTextHolder).node().getBoundingClientRect().width), yPosition);\n });\n\n d.settledY = true;\n };\n}\n\nfunction xPosition(d, optionalWidth) {\n switch(d.align) {\n case 'left': return c.cellPad;\n case 'right': return d.column.columnWidth - (optionalWidth || 0) - c.cellPad;\n case 'center': return (d.column.columnWidth - (optionalWidth || 0)) / 2;\n default: return c.cellPad;\n }\n}\n\nfunction setCellHeightAndPositionY(columnCell) {\n columnCell\n .attr('transform', function(d) {\n var headerHeight = d.rowBlocks[0].auxiliaryBlocks.reduce(function(p, n) {return p + rowsHeight(n, Infinity);}, 0);\n var l = getBlock(d);\n var rowAnchor = rowsHeight(l, d.key);\n var yOffset = rowAnchor + headerHeight;\n return strTranslate(0, yOffset);\n })\n .selectAll('.' + c.cn.cellRect)\n .attr('height', function(d) {return getRow(getBlock(d), d.key).rowHeight;});\n}\n\nfunction firstRowAnchor(blocks, page) {\n var total = 0;\n for(var i = page - 1; i >= 0; i--) {\n total += allRowsHeight(blocks[i]);\n }\n return total;\n}\n\nfunction rowsHeight(rowBlock, key) {\n var total = 0;\n for(var i = 0; i < rowBlock.rows.length && rowBlock.rows[i].rowIndex < key; i++) {\n total += rowBlock.rows[i].rowHeight;\n }\n return total;\n}\n\nfunction allRowsHeight(rowBlock) {\n var cached = rowBlock.allRowsHeight;\n\n if(cached !== void(0)) {\n return cached;\n }\n\n var total = 0;\n for(var i = 0; i < rowBlock.rows.length; i++) {\n total += rowBlock.rows[i].rowHeight;\n }\n rowBlock.allRowsHeight = total;\n\n return total;\n}\n\nfunction getBlock(d) {return d.rowBlocks[d.page];}\nfunction getRow(l, i) {return l.rows[i - l.firstRowIndex];}\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/gup\":512,\"../../lib/svg_text_utils\":541,\"./constants\":1078,\"./data_preparation_helper\":1079,\"./data_split_helpers\":1080,\"@plotly/d3\":58}],1084:[function(_dereq_,module,exports){\n'use strict';\n\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar domainAttrs = _dereq_('../../plots/domain').attributes;\nvar pieAttrs = _dereq_('../pie/attributes');\nvar sunburstAttrs = _dereq_('../sunburst/attributes');\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\n\nmodule.exports = {\n labels: sunburstAttrs.labels,\n parents: sunburstAttrs.parents,\n\n values: sunburstAttrs.values,\n branchvalues: sunburstAttrs.branchvalues,\n count: sunburstAttrs.count,\n\n level: sunburstAttrs.level,\n maxdepth: sunburstAttrs.maxdepth,\n\n tiling: {\n packing: {\n valType: 'enumerated',\n values: [\n 'squarify',\n 'binary',\n 'dice',\n 'slice',\n 'slice-dice',\n 'dice-slice'\n ],\n dflt: 'squarify',\n editType: 'plot',\n },\n\n squarifyratio: {\n valType: 'number',\n min: 1,\n dflt: 1,\n editType: 'plot',\n },\n\n flip: {\n valType: 'flaglist',\n flags: [\n 'x',\n 'y'\n ],\n dflt: '',\n editType: 'plot',\n },\n\n pad: {\n valType: 'number',\n min: 0,\n dflt: 3,\n editType: 'plot',\n },\n\n editType: 'calc',\n },\n\n marker: extendFlat({\n pad: {\n t: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n l: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n r: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n b: {\n valType: 'number',\n min: 0,\n editType: 'plot',\n },\n\n editType: 'calc'\n },\n\n colors: sunburstAttrs.marker.colors,\n\n depthfade: {\n valType: 'enumerated',\n values: [true, false, 'reversed'],\n editType: 'style',\n },\n\n line: sunburstAttrs.marker.line,\n\n editType: 'calc'\n },\n colorScaleAttrs('marker', {\n colorAttr: 'colors',\n anim: false // TODO: set to anim: true?\n })\n ),\n\n pathbar: {\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n\n side: {\n valType: 'enumerated',\n values: [\n 'top',\n 'bottom'\n ],\n dflt: 'top',\n editType: 'plot',\n },\n\n edgeshape: {\n valType: 'enumerated',\n values: [\n '>',\n '<',\n '|',\n '/',\n '\\\\'\n ],\n dflt: '>',\n editType: 'plot',\n },\n\n thickness: {\n valType: 'number',\n min: 12,\n editType: 'plot',\n },\n\n textfont: extendFlat({}, pieAttrs.textfont, {\n }),\n\n editType: 'calc'\n },\n\n text: pieAttrs.text,\n textinfo: sunburstAttrs.textinfo,\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label', 'value'])\n }),\n\n hovertext: pieAttrs.hovertext,\n hoverinfo: sunburstAttrs.hoverinfo,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n textfont: pieAttrs.textfont,\n insidetextfont: pieAttrs.insidetextfont,\n outsidetextfont: extendFlat({}, pieAttrs.outsidetextfont, {\n }),\n\n textposition: {\n valType: 'enumerated',\n values: [\n 'top left', 'top center', 'top right',\n 'middle left', 'middle center', 'middle right',\n 'bottom left', 'bottom center', 'bottom right'\n ],\n dflt: 'top left',\n editType: 'plot',\n },\n sort: pieAttrs.sort,\n root: sunburstAttrs.root,\n\n domain: domainAttrs({name: 'treemap', trace: true, editType: 'calc'}),\n};\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plots/domain\":593,\"../../plots/template_attributes\":642,\"../pie/attributes\":910,\"../sunburst/attributes\":1058,\"./constants\":1087}],1085:[function(_dereq_,module,exports){\n'use strict';\n\nvar plots = _dereq_('../../plots/plots');\n\nexports.name = 'treemap';\n\nexports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {\n plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);\n};\n\nexports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {\n plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);\n};\n\n},{\"../../plots/plots\":628}],1086:[function(_dereq_,module,exports){\n'use strict';\n\nvar calc = _dereq_('../sunburst/calc');\n\nexports.calc = function(gd, trace) {\n return calc.calc(gd, trace);\n};\n\nexports.crossTraceCalc = function(gd) {\n return calc._runCrossTraceCalc('treemap', gd);\n};\n\n},{\"../sunburst/calc\":1060}],1087:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n CLICK_TRANSITION_TIME: 750,\n CLICK_TRANSITION_EASING: 'poly',\n eventDataKeys: [\n // string\n 'currentPath',\n 'root',\n 'entry',\n // no need to add 'parent' here\n\n // percentages i.e. ratios\n 'percentRoot',\n 'percentEntry',\n 'percentParent'\n ],\n gapWithPathbar: 1 // i.e. one pixel\n};\n\n},{}],1088:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar handleDomainDefaults = _dereq_('../../plots/domain').defaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\n\nvar Colorscale = _dereq_('../../components/colorscale');\nvar hasColorscale = Colorscale.hasColorscale;\nvar colorscaleDefaults = Colorscale.handleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var labels = coerce('labels');\n var parents = coerce('parents');\n\n if(!labels || !labels.length || !parents || !parents.length) {\n traceOut.visible = false;\n return;\n }\n\n var vals = coerce('values');\n if(vals && vals.length) {\n coerce('branchvalues');\n } else {\n coerce('count');\n }\n\n coerce('level');\n coerce('maxdepth');\n\n var packing = coerce('tiling.packing');\n if(packing === 'squarify') {\n coerce('tiling.squarifyratio');\n }\n\n coerce('tiling.flip');\n coerce('tiling.pad');\n\n var text = coerce('text');\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo', Array.isArray(text) ? 'text+label' : 'label');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var hasPathbar = coerce('pathbar.visible');\n\n var textposition = 'auto';\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n hasPathbar: hasPathbar,\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: false,\n moduleHasCliponaxis: false,\n moduleHasTextangle: false,\n moduleHasInsideanchor: false\n });\n coerce('textposition');\n var bottomText = traceOut.textposition.indexOf('bottom') !== -1;\n\n var lineWidth = coerce('marker.line.width');\n if(lineWidth) coerce('marker.line.color', layout.paper_bgcolor);\n\n var colors = coerce('marker.colors');\n var withColorscale = traceOut._hasColorscale = (\n hasColorscale(traceIn, 'marker', 'colors') ||\n (traceIn.marker || {}).coloraxis // N.B. special logic to consider \"values\" colorscales\n );\n if(withColorscale) {\n colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});\n } else {\n coerce('marker.depthfade', !(colors || []).length);\n }\n\n var headerSize = traceOut.textfont.size * 2;\n\n coerce('marker.pad.t', bottomText ? headerSize / 4 : headerSize);\n coerce('marker.pad.l', headerSize / 4);\n coerce('marker.pad.r', headerSize / 4);\n coerce('marker.pad.b', bottomText ? headerSize : headerSize / 4);\n\n traceOut._hovered = {\n marker: {\n line: {\n width: 2,\n color: Color.contrast(layout.paper_bgcolor)\n }\n }\n };\n\n if(hasPathbar) {\n // This works even for multi-line labels as treemap pathbar trim out line breaks\n coerce('pathbar.thickness', traceOut.pathbar.textfont.size + 2 * TEXTPAD);\n\n coerce('pathbar.side');\n coerce('pathbar.edgeshape');\n }\n\n coerce('sort');\n\n coerce('root.color');\n\n handleDomainDefaults(traceOut, layout, coerce);\n\n // do not support transforms for now\n traceOut._length = null;\n};\n\n},{\"../../components/color\":367,\"../../components/colorscale\":379,\"../../lib\":515,\"../../plots/domain\":593,\"../bar/constants\":659,\"../bar/defaults\":661,\"./attributes\":1084}],1089:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar helpers = _dereq_('../sunburst/helpers');\nvar uniformText = _dereq_('../bar/uniform_text');\nvar clearMinTextSize = uniformText.clearMinTextSize;\nvar resizeText = _dereq_('../bar/style').resizeText;\n\nvar plotOne = _dereq_('./plot_one');\n\nmodule.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback, opts) {\n var type = opts.type;\n var drawDescendants = opts.drawDescendants;\n\n var fullLayout = gd._fullLayout;\n var layer = fullLayout['_' + type + 'layer'];\n var join, onComplete;\n\n // If transition config is provided, then it is only a partial replot and traces not\n // updated are removed.\n var isFullReplot = !transitionOpts;\n\n clearMinTextSize(type, fullLayout);\n\n join = layer.selectAll('g.trace.' + type)\n .data(cdmodule, function(cd) { return cd[0].trace.uid; });\n\n join.enter().append('g')\n .classed('trace', true)\n .classed(type, true);\n\n join.order();\n\n if(!fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts)) {\n if(makeOnCompleteCallback) {\n // If it was passed a callback to register completion, make a callback. If\n // this is created, then it must be executed on completion, otherwise the\n // pos-transition redraw will not execute:\n onComplete = makeOnCompleteCallback();\n }\n\n var transition = d3.transition()\n .duration(transitionOpts.duration)\n .ease(transitionOpts.easing)\n .each('end', function() { onComplete && onComplete(); })\n .each('interrupt', function() { onComplete && onComplete(); });\n\n transition.each(function() {\n // Must run the selection again since otherwise enters/updates get grouped together\n // and these get executed out of order. Except we need them in order!\n layer.selectAll('g.trace').each(function(cd) {\n plotOne(gd, cd, this, transitionOpts, drawDescendants);\n });\n });\n } else {\n join.each(function(cd) {\n plotOne(gd, cd, this, transitionOpts, drawDescendants);\n });\n\n if(fullLayout.uniformtext.mode) {\n resizeText(gd, layer.selectAll('.trace'), type);\n }\n }\n\n if(isFullReplot) {\n join.exit().remove();\n }\n};\n\n},{\"../bar/style\":671,\"../bar/uniform_text\":673,\"../sunburst/helpers\":1064,\"./plot_one\":1098,\"@plotly/d3\":58}],1090:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar partition = _dereq_('./partition');\nvar styleOne = _dereq_('./style').styleOne;\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('../sunburst/helpers');\nvar attachFxHandlers = _dereq_('../sunburst/fx');\n\nvar onPathbar = true; // for Ancestors\n\nmodule.exports = function drawAncestors(gd, cd, entry, slices, opts) {\n var barDifY = opts.barDifY;\n var width = opts.width;\n var height = opts.height;\n var viewX = opts.viewX;\n var viewY = opts.viewY;\n var pathSlice = opts.pathSlice;\n var toMoveInsideSlice = opts.toMoveInsideSlice;\n var strTransform = opts.strTransform;\n var hasTransition = opts.hasTransition;\n var handleSlicesExit = opts.handleSlicesExit;\n var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;\n var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;\n var refRect = {};\n\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n var hierarchy = cd0.hierarchy;\n\n var eachWidth = width / trace._entryDepth;\n\n var pathIds = helpers.listPath(entry.data, 'id');\n\n var sliceData = partition(hierarchy.copy(), [width, height], {\n packing: 'dice',\n pad: {\n inner: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }\n }).descendants();\n\n // edit slices that show up on graph\n sliceData = sliceData.filter(function(pt) {\n var level = pathIds.indexOf(pt.data.id);\n if(level === -1) return false;\n\n pt.x0 = eachWidth * level;\n pt.x1 = eachWidth * (level + 1);\n pt.y0 = barDifY;\n pt.y1 = barDifY + height;\n\n pt.onPathbar = true;\n\n return true;\n });\n\n sliceData.reverse();\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n slices.enter().append('g')\n .classed('pathbar', true);\n\n handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);\n\n slices.order();\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: false,\n hideOnLeaves: false,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n // for bbox\n pt._x0 = viewX(pt.x0);\n pt._x1 = viewX(pt.x1);\n pt._y0 = viewY(pt.y0);\n pt._y1 = viewY(pt.y1);\n\n pt._hoverX = viewX(pt.x1 - Math.min(width, height) / 2);\n pt._hoverY = viewY(pt.y1 - height / 2);\n\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', isStatic ? 'none' : 'all');\n });\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(pt2, onPathbar, refRect, [width, height]);\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n styleOne: styleOne,\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, {\n hideOnRoot: false,\n hideOnLeaves: false,\n isTransitioning: gd._transitioning\n });\n\n slicePath.call(styleOne, pt, trace, {\n hovered: false\n });\n\n pt._text = (helpers.getPtLabel(pt) || '').split('
').join(' ') || '';\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font, {\n onPathbar: true\n }));\n\n sliceText.text(pt._text || ' ') // use one space character instead of a blank string to avoid jumps during transition\n .classed('slicetext', true)\n .attr('text-anchor', 'start')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n pt.textBB = Drawing.bBox(sliceText.node());\n pt.transform = toMoveInsideSlice(pt, {\n fontSize: font.size,\n onPathbar: true\n });\n pt.transform.fontSize = font.size;\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2, onPathbar, refRect, [width, height]);\n return function(t) { return strTransform(interp(t)); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt));\n }\n });\n};\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../sunburst/fx\":1063,\"../sunburst/helpers\":1064,\"./constants\":1087,\"./partition\":1096,\"./style\":1099,\"@plotly/d3\":58}],1091:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar svgTextUtils = _dereq_('../../lib/svg_text_utils');\n\nvar partition = _dereq_('./partition');\nvar styleOne = _dereq_('./style').styleOne;\nvar constants = _dereq_('./constants');\nvar helpers = _dereq_('../sunburst/helpers');\nvar attachFxHandlers = _dereq_('../sunburst/fx');\nvar formatSliceLabel = _dereq_('../sunburst/plot').formatSliceLabel;\n\nvar onPathbar = false; // for Descendants\n\nmodule.exports = function drawDescendants(gd, cd, entry, slices, opts) {\n var width = opts.width;\n var height = opts.height;\n var viewX = opts.viewX;\n var viewY = opts.viewY;\n var pathSlice = opts.pathSlice;\n var toMoveInsideSlice = opts.toMoveInsideSlice;\n var strTransform = opts.strTransform;\n var hasTransition = opts.hasTransition;\n var handleSlicesExit = opts.handleSlicesExit;\n var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;\n var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;\n var prevEntry = opts.prevEntry;\n var refRect = {};\n\n var isStatic = gd._context.staticPlot;\n\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n var hasLeft = trace.textposition.indexOf('left') !== -1;\n var hasRight = trace.textposition.indexOf('right') !== -1;\n var hasBottom = trace.textposition.indexOf('bottom') !== -1;\n\n var noRoomForHeader = (!hasBottom && !trace.marker.pad.t) || (hasBottom && !trace.marker.pad.b);\n\n // N.B. slice data isn't the calcdata,\n // grab corresponding calcdata item in sliceData[i].data.data\n var allData = partition(entry, [width, height], {\n packing: trace.tiling.packing,\n squarifyratio: trace.tiling.squarifyratio,\n flipX: trace.tiling.flip.indexOf('x') > -1,\n flipY: trace.tiling.flip.indexOf('y') > -1,\n pad: {\n inner: trace.tiling.pad,\n top: trace.marker.pad.t,\n left: trace.marker.pad.l,\n right: trace.marker.pad.r,\n bottom: trace.marker.pad.b,\n }\n });\n\n var sliceData = allData.descendants();\n\n var minVisibleDepth = Infinity;\n var maxVisibleDepth = -Infinity;\n sliceData.forEach(function(pt) {\n var depth = pt.depth;\n if(depth >= trace._maxDepth) {\n // hide slices that won't show up on graph\n pt.x0 = pt.x1 = (pt.x0 + pt.x1) / 2;\n pt.y0 = pt.y1 = (pt.y0 + pt.y1) / 2;\n } else {\n minVisibleDepth = Math.min(minVisibleDepth, depth);\n maxVisibleDepth = Math.max(maxVisibleDepth, depth);\n }\n });\n\n slices = slices.data(sliceData, helpers.getPtId);\n\n trace._maxVisibleLayers = isFinite(maxVisibleDepth) ? maxVisibleDepth - minVisibleDepth + 1 : 0;\n\n slices.enter().append('g')\n .classed('slice', true);\n\n handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);\n\n slices.order();\n\n // next coords of previous entry\n var nextOfPrevEntry = null;\n if(hasTransition && prevEntry) {\n var prevEntryId = helpers.getPtId(prevEntry);\n slices.each(function(pt) {\n if(nextOfPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {\n nextOfPrevEntry = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n }\n });\n }\n\n var getRefRect = function() {\n return nextOfPrevEntry || {\n x0: 0,\n x1: width,\n y0: 0,\n y1: height\n };\n };\n\n var updateSlices = slices;\n if(hasTransition) {\n updateSlices = updateSlices.transition().each('end', function() {\n // N.B. gd._transitioning is (still) *true* by the time\n // transition updates get here\n var sliceTop = d3.select(this);\n helpers.setSliceCursor(sliceTop, gd, {\n hideOnRoot: true,\n hideOnLeaves: false,\n isTransitioning: false\n });\n });\n }\n\n updateSlices.each(function(pt) {\n var isHeader = helpers.isHeader(pt, trace);\n\n // for bbox\n pt._x0 = viewX(pt.x0);\n pt._x1 = viewX(pt.x1);\n pt._y0 = viewY(pt.y0);\n pt._y1 = viewY(pt.y1);\n\n pt._hoverX = viewX(pt.x1 - trace.marker.pad.r),\n pt._hoverY = hasBottom ?\n viewY(pt.y1 - trace.marker.pad.b / 2) :\n viewY(pt.y0 + trace.marker.pad.t / 2);\n\n var sliceTop = d3.select(this);\n\n var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {\n s.style('pointer-events', isStatic ? 'none' : 'all');\n });\n\n if(hasTransition) {\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeUpdateSliceInterpolator(pt2, onPathbar, getRefRect(), [width, height]);\n return function(t) { return pathSlice(interp(t)); };\n });\n } else {\n slicePath.attr('d', pathSlice);\n }\n\n sliceTop\n .call(attachFxHandlers, entry, gd, cd, {\n styleOne: styleOne,\n eventDataKeys: constants.eventDataKeys,\n transitionTime: constants.CLICK_TRANSITION_TIME,\n transitionEasing: constants.CLICK_TRANSITION_EASING\n })\n .call(helpers.setSliceCursor, gd, { isTransitioning: gd._transitioning });\n\n slicePath.call(styleOne, pt, trace, {\n hovered: false\n });\n\n if(pt.x0 === pt.x1 || pt.y0 === pt.y1) {\n pt._text = '';\n } else {\n if(isHeader) {\n pt._text = noRoomForHeader ? '' : helpers.getPtLabel(pt) || '';\n } else {\n pt._text = formatSliceLabel(pt, entry, trace, cd, fullLayout) || '';\n }\n }\n\n var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');\n var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {\n // prohibit tex interpretation until we can handle\n // tex and regular text together\n s.attr('data-notex', 1);\n });\n\n var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));\n\n sliceText.text(pt._text || ' ') // use one space character instead of a blank string to avoid jumps during transition\n .classed('slicetext', true)\n .attr('text-anchor', hasRight ? 'end' : (hasLeft || isHeader) ? 'start' : 'middle')\n .call(Drawing.font, font)\n .call(svgTextUtils.convertToTspans, gd);\n\n pt.textBB = Drawing.bBox(sliceText.node());\n pt.transform = toMoveInsideSlice(pt, {\n fontSize: font.size,\n isHeader: isHeader\n });\n pt.transform.fontSize = font.size;\n\n if(hasTransition) {\n sliceText.transition().attrTween('transform', function(pt2) {\n var interp = makeUpdateTextInterpolator(pt2, onPathbar, getRefRect(), [width, height]);\n return function(t) { return strTransform(interp(t)); };\n });\n } else {\n sliceText.attr('transform', strTransform(pt));\n }\n });\n\n return nextOfPrevEntry;\n};\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../../lib/svg_text_utils\":541,\"../sunburst/fx\":1063,\"../sunburst/helpers\":1064,\"../sunburst/plot\":1068,\"./constants\":1087,\"./partition\":1096,\"./style\":1099,\"@plotly/d3\":58}],1092:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function flipTree(node, size, opts) {\n var tmp;\n\n if(opts.swapXY) {\n // swap x0 and y0\n tmp = node.x0;\n node.x0 = node.y0;\n node.y0 = tmp;\n\n // swap x1 and y1\n tmp = node.x1;\n node.x1 = node.y1;\n node.y1 = tmp;\n }\n\n if(opts.flipX) {\n tmp = node.x0;\n node.x0 = size[0] - node.x1;\n node.x1 = size[0] - tmp;\n }\n\n if(opts.flipY) {\n tmp = node.y0;\n node.y0 = size[1] - node.y1;\n node.y1 = size[1] - tmp;\n }\n\n var children = node.children;\n if(children) {\n for(var i = 0; i < children.length; i++) {\n flipTree(children[i], size, opts);\n }\n }\n};\n\n},{}],1093:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n moduleType: 'trace',\n name: 'treemap',\n basePlotModule: _dereq_('./base_plot'),\n categories: [],\n animatable: true,\n\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n\n calc: _dereq_('./calc').calc,\n crossTraceCalc: _dereq_('./calc').crossTraceCalc,\n\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n\n colorbar: _dereq_('../scatter/marker_colorbar'),\n\n meta: {\n }\n};\n\n},{\"../scatter/marker_colorbar\":954,\"./attributes\":1084,\"./base_plot\":1085,\"./calc\":1086,\"./defaults\":1088,\"./layout_attributes\":1094,\"./layout_defaults\":1095,\"./plot\":1097,\"./style\":1099}],1094:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n treemapcolorway: {\n valType: 'colorlist',\n editType: 'calc',\n },\n extendtreemapcolors: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n }\n};\n\n},{}],1095:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n coerce('treemapcolorway', layoutOut.colorway);\n coerce('extendtreemapcolors');\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":1094}],1096:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3Hierarchy = _dereq_('d3-hierarchy');\nvar flipTree = _dereq_('./flip_tree');\n\nmodule.exports = function partition(entry, size, opts) {\n var flipX = opts.flipX;\n var flipY = opts.flipY;\n var swapXY = opts.packing === 'dice-slice';\n\n var top = opts.pad[flipY ? 'bottom' : 'top'];\n var left = opts.pad[flipX ? 'right' : 'left'];\n var right = opts.pad[flipX ? 'left' : 'right'];\n var bottom = opts.pad[flipY ? 'top' : 'bottom'];\n\n var tmp;\n if(swapXY) {\n tmp = left;\n left = top;\n top = tmp;\n\n tmp = right;\n right = bottom;\n bottom = tmp;\n }\n\n var result = d3Hierarchy\n .treemap()\n .tile(getTilingMethod(opts.packing, opts.squarifyratio))\n .paddingInner(opts.pad.inner)\n .paddingLeft(left)\n .paddingRight(right)\n .paddingTop(top)\n .paddingBottom(bottom)\n .size(\n swapXY ? [size[1], size[0]] : size\n )(entry);\n\n if(swapXY || flipX || flipY) {\n flipTree(result, size, {\n swapXY: swapXY,\n flipX: flipX,\n flipY: flipY\n });\n }\n return result;\n};\n\nfunction getTilingMethod(key, squarifyratio) {\n switch(key) {\n case 'squarify':\n return d3Hierarchy.treemapSquarify.ratio(squarifyratio);\n case 'binary':\n return d3Hierarchy.treemapBinary;\n case 'dice':\n return d3Hierarchy.treemapDice;\n case 'slice':\n return d3Hierarchy.treemapSlice;\n default: // i.e. 'slice-dice' | 'dice-slice'\n return d3Hierarchy.treemapSliceDice;\n }\n}\n\n},{\"./flip_tree\":1092,\"d3-hierarchy\":115}],1097:[function(_dereq_,module,exports){\n'use strict';\n\nvar draw = _dereq_('./draw');\nvar drawDescendants = _dereq_('./draw_descendants');\n\nmodule.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {\n return draw(gd, cdmodule, transitionOpts, makeOnCompleteCallback, {\n type: 'treemap',\n drawDescendants: drawDescendants\n });\n};\n\n},{\"./draw\":1089,\"./draw_descendants\":1091}],1098:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar interpolate = _dereq_('d3-interpolate').interpolate;\n\nvar helpers = _dereq_('../sunburst/helpers');\n\nvar Lib = _dereq_('../../lib');\nvar TEXTPAD = _dereq_('../bar/constants').TEXTPAD;\nvar barPlot = _dereq_('../bar/plot');\nvar toMoveInsideBar = barPlot.toMoveInsideBar;\nvar uniformText = _dereq_('../bar/uniform_text');\nvar recordMinTextSize = uniformText.recordMinTextSize;\nvar constants = _dereq_('./constants');\nvar drawAncestors = _dereq_('./draw_ancestors');\n\nfunction getKey(pt) {\n return helpers.isHierarchyRoot(pt) ?\n '' : // don't use the dummyId\n helpers.getPtId(pt);\n}\n\nmodule.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendants) {\n var fullLayout = gd._fullLayout;\n var cd0 = cd[0];\n var trace = cd0.trace;\n var type = trace.type;\n var isIcicle = type === 'icicle';\n\n var hierarchy = cd0.hierarchy;\n var entry = helpers.findEntryWithLevel(hierarchy, trace.level);\n\n var gTrace = d3.select(element);\n var selAncestors = gTrace.selectAll('g.pathbar');\n var selDescendants = gTrace.selectAll('g.slice');\n\n if(!entry) {\n selAncestors.remove();\n selDescendants.remove();\n return;\n }\n\n var isRoot = helpers.isHierarchyRoot(entry);\n var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);\n\n var maxDepth = helpers.getMaxDepth(trace);\n var hasVisibleDepth = function(pt) {\n return pt.data.depth - entry.data.depth < maxDepth;\n };\n\n var gs = fullLayout._size;\n var domain = trace.domain;\n\n var vpw = gs.w * (domain.x[1] - domain.x[0]);\n var vph = gs.h * (domain.y[1] - domain.y[0]);\n var barW = vpw;\n var barH = trace.pathbar.thickness;\n var barPad = trace.marker.line.width + constants.gapWithPathbar;\n var barDifY = !trace.pathbar.visible ? 0 :\n trace.pathbar.side.indexOf('bottom') > -1 ? vph + barPad : -(barH + barPad);\n\n var pathbarOrigin = {\n x0: barW, // slide to the right\n x1: barW,\n y0: barDifY,\n y1: barDifY + barH\n };\n\n var findClosestEdge = function(pt, ref, size) {\n var e = trace.tiling.pad;\n var isLeftOfRect = function(x) { return x - e <= ref.x0; };\n var isRightOfRect = function(x) { return x + e >= ref.x1; };\n var isBottomOfRect = function(y) { return y - e <= ref.y0; };\n var isTopOfRect = function(y) { return y + e >= ref.y1; };\n\n if(pt.x0 === ref.x0 && pt.x1 === ref.x1 && pt.y0 === ref.y0 && pt.y1 === ref.y1) {\n return {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n }\n\n return {\n x0: isLeftOfRect(pt.x0 - e) ? 0 : isRightOfRect(pt.x0 - e) ? size[0] : pt.x0,\n x1: isLeftOfRect(pt.x1 + e) ? 0 : isRightOfRect(pt.x1 + e) ? size[0] : pt.x1,\n y0: isBottomOfRect(pt.y0 - e) ? 0 : isTopOfRect(pt.y0 - e) ? size[1] : pt.y0,\n y1: isBottomOfRect(pt.y1 + e) ? 0 : isTopOfRect(pt.y1 + e) ? size[1] : pt.y1\n };\n };\n\n // stash of 'previous' position data used by tweening functions\n var prevEntry = null;\n var prevLookupPathbar = {};\n var prevLookupSlices = {};\n var nextOfPrevEntry = null;\n var getPrev = function(pt, onPathbar) {\n return onPathbar ?\n prevLookupPathbar[getKey(pt)] :\n prevLookupSlices[getKey(pt)];\n };\n\n var getOrigin = function(pt, onPathbar, refRect, size) {\n if(onPathbar) {\n return prevLookupPathbar[getKey(hierarchy)] || pathbarOrigin;\n } else {\n var ref = prevLookupSlices[trace.level] || refRect;\n\n if(hasVisibleDepth(pt)) { // case of an empty object - happens when maxdepth is set\n return findClosestEdge(pt, ref, size);\n }\n }\n return {};\n };\n\n // N.B. handle multiple-root special case\n if(cd0.hasMultipleRoots && isRoot) {\n maxDepth++;\n }\n\n trace._maxDepth = maxDepth;\n trace._backgroundColor = fullLayout.paper_bgcolor;\n trace._entryDepth = entry.data.depth;\n trace._atRootLevel = isRoot;\n\n var cenX = -vpw / 2 + gs.l + gs.w * (domain.x[1] + domain.x[0]) / 2;\n var cenY = -vph / 2 + gs.t + gs.h * (1 - (domain.y[1] + domain.y[0]) / 2);\n\n var viewMapX = function(x) { return cenX + x; };\n var viewMapY = function(y) { return cenY + y; };\n\n var barY0 = viewMapY(0);\n var barX0 = viewMapX(0);\n\n var viewBarX = function(x) { return barX0 + x; };\n var viewBarY = function(y) { return barY0 + y; };\n\n function pos(x, y) {\n return x + ',' + y;\n }\n\n var xStart = viewBarX(0);\n var limitX0 = function(p) { p.x = Math.max(xStart, p.x); };\n\n var edgeshape = trace.pathbar.edgeshape;\n\n // pathbar(directory) path generation fn\n var pathAncestor = function(d) {\n var _x0 = viewBarX(Math.max(Math.min(d.x0, d.x0), 0));\n var _x1 = viewBarX(Math.min(Math.max(d.x1, d.x1), barW));\n var _y0 = viewBarY(d.y0);\n var _y1 = viewBarY(d.y1);\n\n var halfH = barH / 2;\n\n var pL = {};\n var pR = {};\n\n pL.x = _x0;\n pR.x = _x1;\n\n pL.y = pR.y = (_y0 + _y1) / 2;\n\n var pA = {x: _x0, y: _y0};\n var pB = {x: _x1, y: _y0};\n var pC = {x: _x1, y: _y1};\n var pD = {x: _x0, y: _y1};\n\n if(edgeshape === '>') {\n pA.x -= halfH;\n pB.x -= halfH;\n pC.x -= halfH;\n pD.x -= halfH;\n } else if(edgeshape === '/') {\n pC.x -= halfH;\n pD.x -= halfH;\n pL.x -= halfH / 2;\n pR.x -= halfH / 2;\n } else if(edgeshape === '\\\\') {\n pA.x -= halfH;\n pB.x -= halfH;\n pL.x -= halfH / 2;\n pR.x -= halfH / 2;\n } else if(edgeshape === '<') {\n pL.x -= halfH;\n pR.x -= halfH;\n }\n\n limitX0(pA);\n limitX0(pD);\n limitX0(pL);\n\n limitX0(pB);\n limitX0(pC);\n limitX0(pR);\n\n return (\n 'M' + pos(pA.x, pA.y) +\n 'L' + pos(pB.x, pB.y) +\n 'L' + pos(pR.x, pR.y) +\n 'L' + pos(pC.x, pC.y) +\n 'L' + pos(pD.x, pD.y) +\n 'L' + pos(pL.x, pL.y) +\n 'Z'\n );\n };\n\n // slice path generation fn\n var pathDescendant = function(d) {\n var _x0 = viewMapX(d.x0);\n var _x1 = viewMapX(d.x1);\n var _y0 = viewMapY(d.y0);\n var _y1 = viewMapY(d.y1);\n\n var dx = _x1 - _x0;\n var dy = _y1 - _y0;\n if(!dx || !dy) return '';\n\n var FILLET = 0; // TODO: may expose this constant\n\n var r = (\n dx > 2 * FILLET &&\n dy > 2 * FILLET\n ) ? FILLET : 0;\n\n var arc = function(rx, ry) { return r ? 'a' + pos(r, r) + ' 0 0 1 ' + pos(rx, ry) : ''; };\n\n return (\n 'M' + pos(_x0, _y0 + r) +\n arc(r, -r) +\n 'L' + pos(_x1 - r, _y0) +\n arc(r, r) +\n 'L' + pos(_x1, _y1 - r) +\n arc(-r, r) +\n 'L' + pos(_x0 + r, _y1) +\n arc(-r, -r) + 'Z'\n );\n };\n\n var toMoveInsideSlice = function(pt, opts) {\n var x0 = pt.x0;\n var x1 = pt.x1;\n var y0 = pt.y0;\n var y1 = pt.y1;\n var textBB = pt.textBB;\n\n var hasFlag = function(f) { return trace.textposition.indexOf(f) !== -1; };\n\n var hasBottom = hasFlag('bottom');\n var hasTop = hasFlag('top') || (opts.isHeader && !hasBottom);\n\n var anchor =\n hasTop ? 'start' :\n hasBottom ? 'end' : 'middle';\n\n var hasRight = hasFlag('right');\n var hasLeft = hasFlag('left') || opts.onPathbar;\n\n var leftToRight =\n hasLeft ? -1 :\n hasRight ? 1 : 0;\n\n // Note that `pad` is just an integer for `icicle`` traces where\n // `pad` is a hashmap for treemap: pad.t, pad.b, pad.l, and pad.r\n var pad = trace[isIcicle ? 'tiling' : 'marker'].pad;\n if(opts.isHeader) {\n x0 += (isIcicle ? pad : pad.l) - TEXTPAD;\n x1 -= (isIcicle ? pad : pad.r) - TEXTPAD;\n if(x0 >= x1) {\n var mid = (x0 + x1) / 2;\n x0 = mid;\n x1 = mid;\n }\n\n // limit the drawing area for headers\n var limY;\n if(hasBottom) {\n limY = y1 - (isIcicle ? pad : pad.b);\n if(y0 < limY && limY < y1) y0 = limY;\n } else {\n limY = y0 + (isIcicle ? pad : pad.t);\n if(y0 < limY && limY < y1) y1 = limY;\n }\n }\n\n // position the text relative to the slice\n var transform = toMoveInsideBar(x0, x1, y0, y1, textBB, {\n isHorizontal: false,\n constrained: true,\n angle: 0,\n anchor: anchor,\n leftToRight: leftToRight\n });\n transform.fontSize = opts.fontSize;\n\n transform.targetX = viewMapX(transform.targetX);\n transform.targetY = viewMapY(transform.targetY);\n\n if(isNaN(transform.targetX) || isNaN(transform.targetY)) {\n return {};\n }\n\n if(x0 !== x1 && y0 !== y1) {\n recordMinTextSize(trace.type, transform, fullLayout);\n }\n\n return {\n scale: transform.scale,\n rotate: transform.rotate,\n textX: transform.textX,\n textY: transform.textY,\n anchorX: transform.anchorX,\n anchorY: transform.anchorY,\n targetX: transform.targetX,\n targetY: transform.targetY\n };\n };\n\n var interpFromParent = function(pt, onPathbar) {\n var parentPrev;\n var i = 0;\n var Q = pt;\n while(!parentPrev && i < maxDepth) { // loop to find a parent/grandParent on the previous graph\n i++;\n Q = Q.parent;\n if(Q) {\n parentPrev = getPrev(Q, onPathbar);\n } else i = maxDepth;\n }\n return parentPrev || {};\n };\n\n var makeExitSliceInterpolator = function(pt, onPathbar, refRect, size) {\n var prev = getPrev(pt, onPathbar);\n var next;\n\n if(onPathbar) {\n next = pathbarOrigin;\n } else {\n var entryPrev = getPrev(entry, onPathbar);\n if(entryPrev) {\n // 'entryPrev' is here has the previous coordinates of the entry\n // node, which corresponds to the last \"clicked\" node when zooming in\n next = findClosestEdge(pt, entryPrev, size);\n } else {\n // this happens when maxdepth is set, when leaves must\n // be removed and the entry is new (i.e. does not have a 'prev' object)\n next = {};\n }\n }\n\n return interpolate(prev, next);\n };\n\n var makeUpdateSliceInterpolator = function(pt, onPathbar, refRect, size, opts) {\n var prev0 = getPrev(pt, onPathbar);\n var prev;\n\n if(prev0) {\n // if pt already on graph, this is easy\n prev = prev0;\n } else {\n // for new pts:\n if(onPathbar) {\n prev = pathbarOrigin;\n } else {\n if(prevEntry) {\n // if trace was visible before\n if(pt.parent) {\n var ref = nextOfPrevEntry || refRect;\n\n if(ref && !onPathbar) {\n prev = findClosestEdge(pt, ref, size);\n } else {\n // if new leaf (when maxdepth is set),\n // grow it from its parent node\n prev = {};\n Lib.extendFlat(prev, interpFromParent(pt, onPathbar));\n }\n } else {\n prev = Lib.extendFlat({}, pt);\n if(isIcicle) {\n if(opts.orientation === 'h') {\n if(opts.flipX) prev.x0 = pt.x1;\n else prev.x1 = 0;\n } else {\n if(opts.flipY) prev.y0 = pt.y1;\n else prev.y1 = 0;\n }\n }\n }\n } else {\n prev = {};\n }\n }\n }\n\n return interpolate(prev, {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n });\n };\n\n var makeUpdateTextInterpolator = function(pt, onPathbar, refRect, size) {\n var prev0 = getPrev(pt, onPathbar);\n var prev = {};\n var origin = getOrigin(pt, onPathbar, refRect, size);\n\n Lib.extendFlat(prev, {\n transform: toMoveInsideSlice({\n x0: origin.x0,\n x1: origin.x1,\n y0: origin.y0,\n y1: origin.y1,\n textBB: pt.textBB,\n _text: pt._text\n }, {\n isHeader: helpers.isHeader(pt, trace)\n })\n });\n\n if(prev0) {\n // if pt already on graph, this is easy\n prev = prev0;\n } else {\n // for new pts:\n if(pt.parent) {\n Lib.extendFlat(prev, interpFromParent(pt, onPathbar));\n }\n }\n\n var transform = pt.transform;\n if(pt.x0 !== pt.x1 && pt.y0 !== pt.y1) {\n recordMinTextSize(trace.type, transform, fullLayout);\n }\n\n return interpolate(prev, {\n transform: {\n scale: transform.scale,\n rotate: transform.rotate,\n textX: transform.textX,\n textY: transform.textY,\n anchorX: transform.anchorX,\n anchorY: transform.anchorY,\n targetX: transform.targetX,\n targetY: transform.targetY\n }\n });\n };\n\n var handleSlicesExit = function(slices, onPathbar, refRect, size, pathSlice) {\n var width = size[0];\n var height = size[1];\n\n if(hasTransition) {\n slices.exit().transition()\n .each(function() {\n var sliceTop = d3.select(this);\n\n var slicePath = sliceTop.select('path.surface');\n slicePath.transition().attrTween('d', function(pt2) {\n var interp = makeExitSliceInterpolator(pt2, onPathbar, refRect, [width, height]);\n return function(t) { return pathSlice(interp(t)); };\n });\n\n var sliceTextGroup = sliceTop.select('g.slicetext');\n sliceTextGroup.attr('opacity', 0);\n })\n .remove();\n } else {\n slices.exit().remove();\n }\n };\n\n var strTransform = function(d) {\n var transform = d.transform;\n\n if(d.x0 !== d.x1 && d.y0 !== d.y1) {\n recordMinTextSize(trace.type, transform, fullLayout);\n }\n\n return Lib.getTextTransform({\n textX: transform.textX,\n textY: transform.textY,\n anchorX: transform.anchorX,\n anchorY: transform.anchorY,\n targetX: transform.targetX,\n targetY: transform.targetY,\n scale: transform.scale,\n rotate: transform.rotate\n });\n };\n\n if(hasTransition) {\n // Important: do this before binding new sliceData!\n\n selAncestors.each(function(pt) {\n prevLookupPathbar[getKey(pt)] = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n\n if(pt.transform) {\n prevLookupPathbar[getKey(pt)].transform = {\n textX: pt.transform.textX,\n textY: pt.transform.textY,\n anchorX: pt.transform.anchorX,\n anchorY: pt.transform.anchorY,\n targetX: pt.transform.targetX,\n targetY: pt.transform.targetY,\n scale: pt.transform.scale,\n rotate: pt.transform.rotate\n };\n }\n });\n\n selDescendants.each(function(pt) {\n prevLookupSlices[getKey(pt)] = {\n x0: pt.x0,\n x1: pt.x1,\n y0: pt.y0,\n y1: pt.y1\n };\n\n if(pt.transform) {\n prevLookupSlices[getKey(pt)].transform = {\n textX: pt.transform.textX,\n textY: pt.transform.textY,\n anchorX: pt.transform.anchorX,\n anchorY: pt.transform.anchorY,\n targetX: pt.transform.targetX,\n targetY: pt.transform.targetY,\n scale: pt.transform.scale,\n rotate: pt.transform.rotate\n };\n }\n\n if(!prevEntry && helpers.isEntry(pt)) {\n prevEntry = pt;\n }\n });\n }\n\n nextOfPrevEntry = drawDescendants(gd, cd, entry, selDescendants, {\n width: vpw,\n height: vph,\n\n viewX: viewMapX,\n viewY: viewMapY,\n\n pathSlice: pathDescendant,\n toMoveInsideSlice: toMoveInsideSlice,\n\n prevEntry: prevEntry,\n makeUpdateSliceInterpolator: makeUpdateSliceInterpolator,\n makeUpdateTextInterpolator: makeUpdateTextInterpolator,\n\n handleSlicesExit: handleSlicesExit,\n hasTransition: hasTransition,\n strTransform: strTransform\n });\n\n if(trace.pathbar.visible) {\n drawAncestors(gd, cd, entry, selAncestors, {\n barDifY: barDifY,\n width: barW,\n height: barH,\n\n viewX: viewBarX,\n viewY: viewBarY,\n\n pathSlice: pathAncestor,\n toMoveInsideSlice: toMoveInsideSlice,\n\n makeUpdateSliceInterpolator: makeUpdateSliceInterpolator,\n makeUpdateTextInterpolator: makeUpdateTextInterpolator,\n\n handleSlicesExit: handleSlicesExit,\n hasTransition: hasTransition,\n strTransform: strTransform\n });\n } else {\n selAncestors.remove();\n }\n};\n\n},{\"../../lib\":515,\"../bar/constants\":659,\"../bar/plot\":668,\"../bar/uniform_text\":673,\"../sunburst/helpers\":1064,\"./constants\":1087,\"./draw_ancestors\":1090,\"@plotly/d3\":58,\"d3-interpolate\":116}],1099:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar helpers = _dereq_('../sunburst/helpers');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\n\nfunction style(gd) {\n var s = gd._fullLayout._treemaplayer.selectAll('.trace');\n resizeText(gd, s, 'treemap');\n\n s.each(function(cd) {\n var gTrace = d3.select(this);\n var cd0 = cd[0];\n var trace = cd0.trace;\n\n gTrace.style('opacity', trace.opacity);\n\n gTrace.selectAll('path.surface').each(function(pt) {\n d3.select(this).call(styleOne, pt, trace, {\n hovered: false\n });\n });\n });\n}\n\nfunction styleOne(s, pt, trace, opts) {\n var hovered = (opts || {}).hovered;\n var cdi = pt.data.data;\n var ptNumber = cdi.i;\n var lineColor;\n var lineWidth;\n var fillColor = cdi.color;\n var isRoot = helpers.isHierarchyRoot(pt);\n var opacity = 1;\n\n if(hovered) {\n lineColor = trace._hovered.marker.line.color;\n lineWidth = trace._hovered.marker.line.width;\n } else {\n if(isRoot && fillColor === trace.root.color) {\n opacity = 100;\n lineColor = 'rgba(0,0,0,0)';\n lineWidth = 0;\n } else {\n lineColor = Lib.castOption(trace, ptNumber, 'marker.line.color') || Color.defaultLine;\n lineWidth = Lib.castOption(trace, ptNumber, 'marker.line.width') || 0;\n\n if(!trace._hasColorscale && !pt.onPathbar) {\n var depthfade = trace.marker.depthfade;\n if(depthfade) {\n var fadedColor = Color.combine(Color.addOpacity(trace._backgroundColor, 0.75), fillColor);\n var n;\n\n if(depthfade === true) {\n var maxDepth = helpers.getMaxDepth(trace);\n if(isFinite(maxDepth)) {\n if(helpers.isLeaf(pt)) {\n n = 0;\n } else {\n n = (trace._maxVisibleLayers) - (pt.data.depth - trace._entryDepth);\n }\n } else {\n n = pt.data.height + 1;\n }\n } else { // i.e. case of depthfade === 'reversed'\n n = pt.data.depth - trace._entryDepth;\n if(!trace._atRootLevel) n++;\n }\n\n if(n > 0) {\n for(var i = 0; i < n; i++) {\n var ratio = 0.5 * i / n;\n fillColor = Color.combine(Color.addOpacity(fadedColor, ratio), fillColor);\n }\n }\n }\n }\n }\n }\n\n s.style('stroke-width', lineWidth)\n .call(Color.fill, fillColor)\n .call(Color.stroke, lineColor)\n .style('opacity', opacity);\n}\n\nmodule.exports = {\n style: style,\n styleOne: styleOne\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../bar/uniform_text\":673,\"../sunburst/helpers\":1064,\"@plotly/d3\":58}],1100:[function(_dereq_,module,exports){\n'use strict';\n\nvar boxAttrs = _dereq_('../box/attributes');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\n\nmodule.exports = {\n y: boxAttrs.y,\n x: boxAttrs.x,\n x0: boxAttrs.x0,\n y0: boxAttrs.y0,\n\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n name: extendFlat({}, boxAttrs.name, {\n }),\n orientation: extendFlat({}, boxAttrs.orientation, {\n }),\n\n bandwidth: {\n valType: 'number',\n min: 0,\n editType: 'calc',\n },\n\n scalegroup: {\n valType: 'string',\n dflt: '',\n editType: 'calc',\n },\n scalemode: {\n valType: 'enumerated',\n values: ['width', 'count'],\n dflt: 'width',\n editType: 'calc',\n },\n\n spanmode: {\n valType: 'enumerated',\n values: ['soft', 'hard', 'manual'],\n dflt: 'soft',\n editType: 'calc',\n },\n span: {\n valType: 'info_array',\n items: [\n {valType: 'any', editType: 'calc'},\n {valType: 'any', editType: 'calc'}\n ],\n editType: 'calc',\n },\n\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n dflt: 2,\n editType: 'style',\n },\n editType: 'plot'\n },\n fillcolor: boxAttrs.fillcolor,\n\n points: extendFlat({}, boxAttrs.boxpoints, {\n }),\n jitter: extendFlat({}, boxAttrs.jitter, {\n }),\n pointpos: extendFlat({}, boxAttrs.pointpos, {\n }),\n\n width: extendFlat({}, boxAttrs.width, {\n }),\n\n marker: boxAttrs.marker,\n text: boxAttrs.text,\n hovertext: boxAttrs.hovertext,\n hovertemplate: boxAttrs.hovertemplate,\n\n quartilemethod: boxAttrs.quartilemethod,\n\n box: {\n visible: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n width: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0.25,\n editType: 'plot',\n },\n fillcolor: {\n valType: 'color',\n editType: 'style',\n },\n line: {\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'plot'\n },\n\n meanline: {\n visible: {\n valType: 'boolean',\n dflt: false,\n editType: 'plot',\n },\n color: {\n valType: 'color',\n editType: 'style',\n },\n width: {\n valType: 'number',\n min: 0,\n editType: 'style',\n },\n editType: 'plot'\n },\n\n side: {\n valType: 'enumerated',\n values: ['both', 'positive', 'negative'],\n dflt: 'both',\n editType: 'calc',\n },\n\n offsetgroup: boxAttrs.offsetgroup,\n alignmentgroup: boxAttrs.alignmentgroup,\n\n selected: boxAttrs.selected,\n unselected: boxAttrs.unselected,\n\n hoveron: {\n valType: 'flaglist',\n flags: ['violins', 'points', 'kde'],\n dflt: 'violins+points+kde',\n extras: ['all'],\n editType: 'style',\n }\n};\n\n},{\"../../lib/extend\":505,\"../../plots/cartesian/axis_format_attributes\":569,\"../box/attributes\":682}],1101:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar boxCalc = _dereq_('../box/calc');\nvar helpers = _dereq_('./helpers');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nmodule.exports = function calc(gd, trace) {\n var cd = boxCalc(gd, trace);\n\n if(cd[0].t.empty) return cd;\n\n var fullLayout = gd._fullLayout;\n var valAxis = Axes.getFromId(\n gd,\n trace[trace.orientation === 'h' ? 'xaxis' : 'yaxis']\n );\n\n var spanMin = Infinity;\n var spanMax = -Infinity;\n var maxKDE = 0;\n var maxCount = 0;\n\n for(var i = 0; i < cd.length; i++) {\n var cdi = cd[i];\n var vals = cdi.pts.map(helpers.extractVal);\n\n var bandwidth = cdi.bandwidth = calcBandwidth(trace, cdi, vals);\n var span = cdi.span = calcSpan(trace, cdi, valAxis, bandwidth);\n\n if(cdi.min === cdi.max && bandwidth === 0) {\n // if span is zero and bandwidth is zero, we want a violin with zero width\n span = cdi.span = [cdi.min, cdi.max];\n cdi.density = [{v: 1, t: span[0]}];\n cdi.bandwidth = bandwidth;\n maxKDE = Math.max(maxKDE, 1);\n } else {\n // step that well covers the bandwidth and is multiple of span distance\n var dist = span[1] - span[0];\n var n = Math.ceil(dist / (bandwidth / 3));\n var step = dist / n;\n\n if(!isFinite(step) || !isFinite(n)) {\n Lib.error('Something went wrong with computing the violin span');\n cd[0].t.empty = true;\n return cd;\n }\n\n var kde = helpers.makeKDE(cdi, trace, vals);\n cdi.density = new Array(n);\n\n for(var k = 0, t = span[0]; t < (span[1] + step / 2); k++, t += step) {\n var v = kde(t);\n cdi.density[k] = {v: v, t: t};\n maxKDE = Math.max(maxKDE, v);\n }\n }\n\n maxCount = Math.max(maxCount, vals.length);\n spanMin = Math.min(spanMin, span[0]);\n spanMax = Math.max(spanMax, span[1]);\n }\n\n var extremes = Axes.findExtremes(valAxis, [spanMin, spanMax], {padded: true});\n trace._extremes[valAxis._id] = extremes;\n\n if(trace.width) {\n cd[0].t.maxKDE = maxKDE;\n } else {\n var violinScaleGroupStats = fullLayout._violinScaleGroupStats;\n var scaleGroup = trace.scalegroup;\n var groupStats = violinScaleGroupStats[scaleGroup];\n\n if(groupStats) {\n groupStats.maxKDE = Math.max(groupStats.maxKDE, maxKDE);\n groupStats.maxCount = Math.max(groupStats.maxCount, maxCount);\n } else {\n violinScaleGroupStats[scaleGroup] = {\n maxKDE: maxKDE,\n maxCount: maxCount\n };\n }\n }\n\n cd[0].t.labels.kde = Lib._(gd, 'kde:');\n\n return cd;\n};\n\n// Default to Silveman's rule of thumb\n// - https://stats.stackexchange.com/a/6671\n// - https://en.wikipedia.org/wiki/Kernel_density_estimation#A_rule-of-thumb_bandwidth_estimator\n// - https://github.com/statsmodels/statsmodels/blob/master/statsmodels/nonparametric/bandwidths.py\nfunction silvermanRule(len, ssd, iqr) {\n var a = Math.min(ssd, iqr / 1.349);\n return 1.059 * a * Math.pow(len, -0.2);\n}\n\nfunction calcBandwidth(trace, cdi, vals) {\n var span = cdi.max - cdi.min;\n\n // If span is zero\n if(!span) {\n if(trace.bandwidth) {\n return trace.bandwidth;\n } else {\n // if span is zero and no bandwidth is specified\n // it returns zero bandwidth which is a special case\n return 0;\n }\n }\n\n // Limit how small the bandwidth can be.\n //\n // Silverman's rule of thumb can be \"very\" small\n // when IQR does a poor job at describing the spread\n // of the distribution.\n // We also want to limit custom bandwidths\n // to not blow up kde computations.\n\n if(trace.bandwidth) {\n return Math.max(trace.bandwidth, span / 1e4);\n } else {\n var len = vals.length;\n var ssd = Lib.stdev(vals, len - 1, cdi.mean);\n return Math.max(\n silvermanRule(len, ssd, cdi.q3 - cdi.q1),\n span / 100\n );\n }\n}\n\nfunction calcSpan(trace, cdi, valAxis, bandwidth) {\n var spanmode = trace.spanmode;\n var spanIn = trace.span || [];\n var spanTight = [cdi.min, cdi.max];\n var spanLoose = [cdi.min - 2 * bandwidth, cdi.max + 2 * bandwidth];\n var spanOut;\n\n function calcSpanItem(index) {\n var s = spanIn[index];\n var sc = valAxis.type === 'multicategory' ?\n valAxis.r2c(s) :\n valAxis.d2c(s, 0, trace[cdi.valLetter + 'calendar']);\n return sc === BADNUM ? spanLoose[index] : sc;\n }\n\n if(spanmode === 'soft') {\n spanOut = spanLoose;\n } else if(spanmode === 'hard') {\n spanOut = spanTight;\n } else {\n spanOut = [calcSpanItem(0), calcSpanItem(1)];\n }\n\n // to reuse the equal-range-item block\n var dummyAx = {\n type: 'linear',\n range: spanOut\n };\n Axes.setConvert(dummyAx);\n dummyAx.cleanRange();\n\n return spanOut;\n}\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../box/calc\":683,\"./helpers\":1104}],1102:[function(_dereq_,module,exports){\n'use strict';\n\nvar setPositionOffset = _dereq_('../box/cross_trace_calc').setPositionOffset;\nvar orientations = ['v', 'h'];\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n for(var i = 0; i < orientations.length; i++) {\n var orientation = orientations[i];\n var posAxis = orientation === 'h' ? ya : xa;\n var violinList = [];\n\n for(var j = 0; j < calcdata.length; j++) {\n var cd = calcdata[j];\n var t = cd[0].t;\n var trace = cd[0].trace;\n\n if(trace.visible === true && trace.type === 'violin' &&\n !t.empty &&\n trace.orientation === orientation &&\n trace.xaxis === xa._id &&\n trace.yaxis === ya._id\n ) {\n violinList.push(j);\n }\n }\n\n setPositionOffset('violin', gd, violinList, posAxis);\n }\n};\n\n},{\"../box/cross_trace_calc\":684}],1103:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar Color = _dereq_('../../components/color');\n\nvar boxDefaults = _dereq_('../box/defaults');\nvar attributes = _dereq_('./attributes');\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n function coerce2(attr, dflt) {\n return Lib.coerce2(traceIn, traceOut, attributes, attr, dflt);\n }\n\n boxDefaults.handleSampleDefaults(traceIn, traceOut, coerce, layout);\n if(traceOut.visible === false) return;\n\n coerce('bandwidth');\n coerce('side');\n\n var width = coerce('width');\n if(!width) {\n coerce('scalegroup', traceOut.name);\n coerce('scalemode');\n }\n\n var span = coerce('span');\n var spanmodeDflt;\n if(Array.isArray(span)) spanmodeDflt = 'manual';\n coerce('spanmode', spanmodeDflt);\n\n var lineColor = coerce('line.color', (traceIn.marker || {}).color || defaultColor);\n var lineWidth = coerce('line.width');\n var fillColor = coerce('fillcolor', Color.addOpacity(traceOut.line.color, 0.5));\n\n boxDefaults.handlePointsDefaults(traceIn, traceOut, coerce, {prefix: ''});\n\n var boxWidth = coerce2('box.width');\n var boxFillColor = coerce2('box.fillcolor', fillColor);\n var boxLineColor = coerce2('box.line.color', lineColor);\n var boxLineWidth = coerce2('box.line.width', lineWidth);\n var boxVisible = coerce('box.visible', Boolean(boxWidth || boxFillColor || boxLineColor || boxLineWidth));\n if(!boxVisible) traceOut.box = {visible: false};\n\n var meanLineColor = coerce2('meanline.color', lineColor);\n var meanLineWidth = coerce2('meanline.width', lineWidth);\n var meanLineVisible = coerce('meanline.visible', Boolean(meanLineColor || meanLineWidth));\n if(!meanLineVisible) traceOut.meanline = {visible: false};\n\n coerce('quartilemethod');\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../box/defaults\":685,\"./attributes\":1100}],1104:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\n// Maybe add kernels more down the road,\n// but note that the default `spanmode: 'soft'` bounds might have\n// to become kernel-dependent\nvar kernels = {\n gaussian: function(v) {\n return (1 / Math.sqrt(2 * Math.PI)) * Math.exp(-0.5 * v * v);\n }\n};\n\nexports.makeKDE = function(calcItem, trace, vals) {\n var len = vals.length;\n var kernel = kernels.gaussian;\n var bandwidth = calcItem.bandwidth;\n var factor = 1 / (len * bandwidth);\n\n // don't use Lib.aggNums to skip isNumeric checks\n return function(x) {\n var sum = 0;\n for(var i = 0; i < len; i++) {\n sum += kernel((x - vals[i]) / bandwidth);\n }\n return factor * sum;\n };\n};\n\nexports.getPositionOnKdePath = function(calcItem, trace, valuePx) {\n var posLetter, valLetter;\n\n if(trace.orientation === 'h') {\n posLetter = 'y';\n valLetter = 'x';\n } else {\n posLetter = 'x';\n valLetter = 'y';\n }\n\n var pointOnPath = Lib.findPointOnPath(\n calcItem.path,\n valuePx,\n valLetter,\n {pathLength: calcItem.pathLength}\n );\n\n var posCenterPx = calcItem.posCenterPx;\n var posOnPath0 = pointOnPath[posLetter];\n var posOnPath1 = trace.side === 'both' ?\n 2 * posCenterPx - posOnPath0 :\n posCenterPx;\n\n return [posOnPath0, posOnPath1];\n};\n\nexports.getKdeValue = function(calcItem, trace, valueDist) {\n var vals = calcItem.pts.map(exports.extractVal);\n var kde = exports.makeKDE(calcItem, trace, vals);\n return kde(valueDist) / calcItem.posDensityScale;\n};\n\nexports.extractVal = function(o) { return o.v; };\n\n},{\"../../lib\":515}],1105:[function(_dereq_,module,exports){\n'use strict';\n\nvar Color = _dereq_('../../components/color');\nvar Lib = _dereq_('../../lib');\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar boxHoverPoints = _dereq_('../box/hover');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n if(!opts) opts = {};\n var hoverLayer = opts.hoverLayer;\n\n var cd = pointData.cd;\n var trace = cd[0].trace;\n var hoveron = trace.hoveron;\n var hasHoveronViolins = hoveron.indexOf('violins') !== -1;\n var hasHoveronKDE = hoveron.indexOf('kde') !== -1;\n var closeData = [];\n var closePtData;\n var violinLineAttrs;\n\n if(hasHoveronViolins || hasHoveronKDE) {\n var closeBoxData = boxHoverPoints.hoverOnBoxes(pointData, xval, yval, hovermode);\n\n if(hasHoveronKDE && closeBoxData.length > 0) {\n var xa = pointData.xa;\n var ya = pointData.ya;\n var pLetter, vLetter, pAxis, vAxis, vVal;\n\n if(trace.orientation === 'h') {\n vVal = xval;\n pLetter = 'y';\n pAxis = ya;\n vLetter = 'x';\n vAxis = xa;\n } else {\n vVal = yval;\n pLetter = 'x';\n pAxis = xa;\n vLetter = 'y';\n vAxis = ya;\n }\n\n var di = cd[pointData.index];\n\n if(vVal >= di.span[0] && vVal <= di.span[1]) {\n var kdePointData = Lib.extendFlat({}, pointData);\n var vValPx = vAxis.c2p(vVal, true);\n var kdeVal = helpers.getKdeValue(di, trace, vVal);\n var pOnPath = helpers.getPositionOnKdePath(di, trace, vValPx);\n var paOffset = pAxis._offset;\n var paLength = pAxis._length;\n\n kdePointData[pLetter + '0'] = pOnPath[0];\n kdePointData[pLetter + '1'] = pOnPath[1];\n kdePointData[vLetter + '0'] = kdePointData[vLetter + '1'] = vValPx;\n kdePointData[vLetter + 'Label'] = vLetter + ': ' + Axes.hoverLabelText(vAxis, vVal, trace[vLetter + 'hoverformat']) + ', ' + cd[0].t.labels.kde + ' ' + kdeVal.toFixed(3);\n\n // move the spike to the KDE point\n var medId = 0;\n for(var k = 0; k < closeBoxData.length; k++) {\n if(closeBoxData[k].attr === 'med') {\n medId = k;\n break;\n }\n }\n\n kdePointData.spikeDistance = closeBoxData[medId].spikeDistance;\n var spikePosAttr = pLetter + 'Spike';\n kdePointData[spikePosAttr] = closeBoxData[medId][spikePosAttr];\n closeBoxData[medId].spikeDistance = undefined;\n closeBoxData[medId][spikePosAttr] = undefined;\n\n // no hovertemplate support yet\n kdePointData.hovertemplate = false;\n\n closeData.push(kdePointData);\n\n violinLineAttrs = {};\n violinLineAttrs[pLetter + '1'] = Lib.constrain(paOffset + pOnPath[0], paOffset, paOffset + paLength);\n violinLineAttrs[pLetter + '2'] = Lib.constrain(paOffset + pOnPath[1], paOffset, paOffset + paLength);\n violinLineAttrs[vLetter + '1'] = violinLineAttrs[vLetter + '2'] = vAxis._offset + vValPx;\n }\n }\n\n if(hasHoveronViolins) {\n closeData = closeData.concat(closeBoxData);\n }\n }\n\n if(hoveron.indexOf('points') !== -1) {\n closePtData = boxHoverPoints.hoverOnPoints(pointData, xval, yval);\n }\n\n // update violin line (if any)\n var violinLine = hoverLayer.selectAll('.violinline-' + trace.uid)\n .data(violinLineAttrs ? [0] : []);\n violinLine.enter().append('line')\n .classed('violinline-' + trace.uid, true)\n .attr('stroke-width', 1.5);\n violinLine.exit().remove();\n violinLine.attr(violinLineAttrs).call(Color.stroke, pointData.color);\n\n // same combine logic as box hoverPoints\n if(hovermode === 'closest') {\n if(closePtData) return [closePtData];\n return closeData;\n }\n if(closePtData) {\n closeData.push(closePtData);\n return closeData;\n }\n return closeData;\n};\n\n},{\"../../components/color\":367,\"../../lib\":515,\"../../plots/cartesian/axes\":566,\"../box/hover\":687,\"./helpers\":1104}],1106:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults'),\n crossTraceDefaults: _dereq_('../box/defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style'),\n styleOnSelect: _dereq_('../scatter/style').styleOnSelect,\n hoverPoints: _dereq_('./hover'),\n selectPoints: _dereq_('../box/select'),\n\n moduleType: 'trace',\n name: 'violin',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['cartesian', 'svg', 'symbols', 'oriented', 'box-violin', 'showLegend', 'violinLayout', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../box/defaults\":685,\"../box/select\":692,\"../scatter/style\":960,\"./attributes\":1100,\"./calc\":1101,\"./cross_trace_calc\":1102,\"./defaults\":1103,\"./hover\":1105,\"./layout_attributes\":1107,\"./layout_defaults\":1108,\"./plot\":1109,\"./style\":1110}],1107:[function(_dereq_,module,exports){\n'use strict';\n\nvar boxLayoutAttrs = _dereq_('../box/layout_attributes');\nvar extendFlat = _dereq_('../../lib').extendFlat;\n\nmodule.exports = {\n violinmode: extendFlat({}, boxLayoutAttrs.boxmode, {\n }),\n violingap: extendFlat({}, boxLayoutAttrs.boxgap, {\n }),\n violingroupgap: extendFlat({}, boxLayoutAttrs.boxgroupgap, {\n })\n};\n\n},{\"../../lib\":515,\"../box/layout_attributes\":689}],1108:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\nvar boxLayoutDefaults = _dereq_('../box/layout_defaults');\n\nmodule.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n boxLayoutDefaults._supply(layoutIn, layoutOut, fullData, coerce, 'violin');\n};\n\n},{\"../../lib\":515,\"../box/layout_defaults\":690,\"./layout_attributes\":1107}],1109:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\n\nvar boxPlot = _dereq_('../box/plot');\nvar linePoints = _dereq_('../scatter/line_points');\nvar helpers = _dereq_('./helpers');\n\nmodule.exports = function plot(gd, plotinfo, cdViolins, violinLayer) {\n var fullLayout = gd._fullLayout;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n function makePath(pts, trace) {\n var segments = linePoints(pts, {\n xaxis: xa,\n yaxis: ya,\n trace: trace,\n connectGaps: true,\n baseTolerance: 0.75,\n shape: 'spline',\n simplify: true,\n linearized: true\n });\n return Drawing.smoothopen(segments[0], 1);\n }\n\n Lib.makeTraceGroups(violinLayer, cdViolins, 'trace violins').each(function(cd) {\n var plotGroup = d3.select(this);\n var cd0 = cd[0];\n var t = cd0.t;\n var trace = cd0.trace;\n\n if(trace.visible !== true || t.empty) {\n plotGroup.remove();\n return;\n }\n\n var bPos = t.bPos;\n var bdPos = t.bdPos;\n var valAxis = plotinfo[t.valLetter + 'axis'];\n var posAxis = plotinfo[t.posLetter + 'axis'];\n var hasBothSides = trace.side === 'both';\n var hasPositiveSide = hasBothSides || trace.side === 'positive';\n var hasNegativeSide = hasBothSides || trace.side === 'negative';\n\n var violins = plotGroup.selectAll('path.violin').data(Lib.identity);\n\n violins.enter().append('path')\n .style('vector-effect', 'non-scaling-stroke')\n .attr('class', 'violin');\n\n violins.exit().remove();\n\n violins.each(function(d) {\n var pathSel = d3.select(this);\n var density = d.density;\n var len = density.length;\n var posCenter = posAxis.c2l(d.pos + bPos, true);\n var posCenterPx = posAxis.l2p(posCenter);\n\n var scale;\n if(trace.width) {\n scale = t.maxKDE / bdPos;\n } else {\n var groupStats = fullLayout._violinScaleGroupStats[trace.scalegroup];\n scale = trace.scalemode === 'count' ?\n (groupStats.maxKDE / bdPos) * (groupStats.maxCount / d.pts.length) :\n groupStats.maxKDE / bdPos;\n }\n\n var pathPos, pathNeg, path;\n var i, k, pts, pt;\n\n if(hasPositiveSide) {\n pts = new Array(len);\n for(i = 0; i < len; i++) {\n pt = pts[i] = {};\n pt[t.posLetter] = posCenter + (density[i].v / scale);\n pt[t.valLetter] = valAxis.c2l(density[i].t, true);\n }\n pathPos = makePath(pts, trace);\n }\n\n if(hasNegativeSide) {\n pts = new Array(len);\n for(k = 0, i = len - 1; k < len; k++, i--) {\n pt = pts[k] = {};\n pt[t.posLetter] = posCenter - (density[i].v / scale);\n pt[t.valLetter] = valAxis.c2l(density[i].t, true);\n }\n pathNeg = makePath(pts, trace);\n }\n\n if(hasBothSides) {\n path = pathPos + 'L' + pathNeg.substr(1) + 'Z';\n } else {\n var startPt = [posCenterPx, valAxis.c2p(density[0].t)];\n var endPt = [posCenterPx, valAxis.c2p(density[len - 1].t)];\n\n if(trace.orientation === 'h') {\n startPt.reverse();\n endPt.reverse();\n }\n\n if(hasPositiveSide) {\n path = 'M' + startPt + 'L' + pathPos.substr(1) + 'L' + endPt;\n } else {\n path = 'M' + endPt + 'L' + pathNeg.substr(1) + 'L' + startPt;\n }\n }\n pathSel.attr('d', path);\n\n // save a few things used in getPositionOnKdePath, getKdeValue\n // on hover and for meanline draw block below\n d.posCenterPx = posCenterPx;\n d.posDensityScale = scale * bdPos;\n d.path = pathSel.node();\n d.pathLength = d.path.getTotalLength() / (hasBothSides ? 2 : 1);\n });\n\n var boxAttrs = trace.box;\n var boxWidth = boxAttrs.width;\n var boxLineWidth = (boxAttrs.line || {}).width;\n var bdPosScaled;\n var bPosPxOffset;\n\n if(hasBothSides) {\n bdPosScaled = bdPos * boxWidth;\n bPosPxOffset = 0;\n } else if(hasPositiveSide) {\n bdPosScaled = [0, bdPos * boxWidth / 2];\n bPosPxOffset = boxLineWidth * {x: 1, y: -1}[t.posLetter];\n } else {\n bdPosScaled = [bdPos * boxWidth / 2, 0];\n bPosPxOffset = boxLineWidth * {x: -1, y: 1}[t.posLetter];\n }\n\n // inner box\n boxPlot.plotBoxAndWhiskers(plotGroup, {pos: posAxis, val: valAxis}, trace, {\n bPos: bPos,\n bdPos: bdPosScaled,\n bPosPxOffset: bPosPxOffset\n });\n\n // meanline insider box\n boxPlot.plotBoxMean(plotGroup, {pos: posAxis, val: valAxis}, trace, {\n bPos: bPos,\n bdPos: bdPosScaled,\n bPosPxOffset: bPosPxOffset\n });\n\n var fn;\n if(!trace.box.visible && trace.meanline.visible) {\n fn = Lib.identity;\n }\n\n // N.B. use different class name than boxPlot.plotBoxMean,\n // to avoid selectAll conflict\n var meanPaths = plotGroup.selectAll('path.meanline').data(fn || []);\n meanPaths.enter().append('path')\n .attr('class', 'meanline')\n .style('fill', 'none')\n .style('vector-effect', 'non-scaling-stroke');\n meanPaths.exit().remove();\n meanPaths.each(function(d) {\n var v = valAxis.c2p(d.mean, true);\n var p = helpers.getPositionOnKdePath(d, trace, v);\n\n d3.select(this).attr('d',\n trace.orientation === 'h' ?\n 'M' + v + ',' + p[0] + 'V' + p[1] :\n 'M' + p[0] + ',' + v + 'H' + p[1]\n );\n });\n\n boxPlot.plotPoints(plotGroup, {x: xa, y: ya}, trace, t);\n });\n};\n\n},{\"../../components/drawing\":389,\"../../lib\":515,\"../box/plot\":691,\"../scatter/line_points\":950,\"./helpers\":1104,\"@plotly/d3\":58}],1110:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Color = _dereq_('../../components/color');\nvar stylePoints = _dereq_('../scatter/style').stylePoints;\n\nmodule.exports = function style(gd) {\n var s = d3.select(gd).selectAll('g.trace.violins');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var trace = d[0].trace;\n var sel = d3.select(this);\n var box = trace.box || {};\n var boxLine = box.line || {};\n var meanline = trace.meanline || {};\n var meanLineWidth = meanline.width;\n\n sel.selectAll('path.violin')\n .style('stroke-width', trace.line.width + 'px')\n .call(Color.stroke, trace.line.color)\n .call(Color.fill, trace.fillcolor);\n\n sel.selectAll('path.box')\n .style('stroke-width', boxLine.width + 'px')\n .call(Color.stroke, boxLine.color)\n .call(Color.fill, box.fillcolor);\n\n var meanLineStyle = {\n 'stroke-width': meanLineWidth + 'px',\n 'stroke-dasharray': (2 * meanLineWidth) + 'px,' + meanLineWidth + 'px'\n };\n\n sel.selectAll('path.mean')\n .style(meanLineStyle)\n .call(Color.stroke, meanline.color);\n\n sel.selectAll('path.meanline')\n .style(meanLineStyle)\n .call(Color.stroke, meanline.color);\n\n stylePoints(sel, trace, gd);\n });\n};\n\n},{\"../../components/color\":367,\"../scatter/style\":960,\"@plotly/d3\":58}],1111:[function(_dereq_,module,exports){\n'use strict';\n\nvar colorScaleAttrs = _dereq_('../../components/colorscale/attributes');\nvar isosurfaceAttrs = _dereq_('../isosurface/attributes');\nvar surfaceAttrs = _dereq_('../surface/attributes');\nvar baseAttrs = _dereq_('../../plots/attributes');\n\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar overrideAll = _dereq_('../../plot_api/edit_types').overrideAll;\n\nvar attrs = module.exports = overrideAll(extendFlat({\n x: isosurfaceAttrs.x,\n y: isosurfaceAttrs.y,\n z: isosurfaceAttrs.z,\n value: isosurfaceAttrs.value,\n isomin: isosurfaceAttrs.isomin,\n isomax: isosurfaceAttrs.isomax,\n surface: isosurfaceAttrs.surface,\n spaceframe: {\n show: {\n valType: 'boolean',\n dflt: false,\n },\n fill: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 1,\n }\n },\n\n slices: isosurfaceAttrs.slices,\n caps: isosurfaceAttrs.caps,\n text: isosurfaceAttrs.text,\n hovertext: isosurfaceAttrs.hovertext,\n xhoverformat: isosurfaceAttrs.xhoverformat,\n yhoverformat: isosurfaceAttrs.yhoverformat,\n zhoverformat: isosurfaceAttrs.zhoverformat,\n valuehoverformat: isosurfaceAttrs.valuehoverformat,\n hovertemplate: isosurfaceAttrs.hovertemplate\n},\n\ncolorScaleAttrs('', {\n colorAttr: '`value`',\n showScaleDflt: true,\n editTypeOverride: 'calc'\n}), {\n\n colorbar: isosurfaceAttrs.colorbar,\n opacity: isosurfaceAttrs.opacity,\n opacityscale: surfaceAttrs.opacityscale,\n\n lightposition: isosurfaceAttrs.lightposition,\n lighting: isosurfaceAttrs.lighting,\n flatshading: isosurfaceAttrs.flatshading,\n contour: isosurfaceAttrs.contour,\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo),\n showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})\n}), 'calc', 'nested');\n\nattrs.x.editType = attrs.y.editType = attrs.z.editType = attrs.value.editType = 'calc+clearAxisTypes';\nattrs.transforms = undefined;\n\n},{\"../../components/colorscale/attributes\":374,\"../../lib/extend\":505,\"../../plot_api/edit_types\":548,\"../../plots/attributes\":562,\"../isosurface/attributes\":871,\"../surface/attributes\":1070}],1112:[function(_dereq_,module,exports){\n'use strict';\n\nvar createMesh = _dereq_('../../../stackgl_modules').gl_mesh3d;\n\nvar parseColorScale = _dereq_('../../lib/gl_format_color').parseColorScale;\nvar str2RgbaArray = _dereq_('../../lib/str2rgbarray');\nvar extractOpts = _dereq_('../../components/colorscale').extractOpts;\nvar zip3 = _dereq_('../../plots/gl3d/zip3');\n\nvar findNearestOnAxis = _dereq_('../isosurface/convert').findNearestOnAxis;\nvar generateIsoMeshes = _dereq_('../isosurface/convert').generateIsoMeshes;\n\nfunction VolumeTrace(scene, mesh, uid) {\n this.scene = scene;\n this.uid = uid;\n this.mesh = mesh;\n this.name = '';\n this.data = null;\n this.showContour = false;\n}\n\nvar proto = VolumeTrace.prototype;\n\nproto.handlePick = function(selection) {\n if(selection.object === this.mesh) {\n var rawId = selection.data.index;\n\n var x = this.data._meshX[rawId];\n var y = this.data._meshY[rawId];\n var z = this.data._meshZ[rawId];\n\n var height = this.data._Ys.length;\n var depth = this.data._Zs.length;\n\n var i = findNearestOnAxis(x, this.data._Xs).id;\n var j = findNearestOnAxis(y, this.data._Ys).id;\n var k = findNearestOnAxis(z, this.data._Zs).id;\n\n var selectIndex = selection.index = k + depth * j + depth * height * i;\n\n selection.traceCoordinate = [\n this.data._meshX[selectIndex],\n this.data._meshY[selectIndex],\n this.data._meshZ[selectIndex],\n this.data._value[selectIndex]\n ];\n\n var text = this.data.hovertext || this.data.text;\n if(Array.isArray(text) && text[selectIndex] !== undefined) {\n selection.textLabel = text[selectIndex];\n } else if(text) {\n selection.textLabel = text;\n }\n\n return true;\n }\n};\n\nproto.update = function(data) {\n var scene = this.scene;\n var layout = scene.fullSceneLayout;\n\n this.data = generateIsoMeshes(data);\n\n // Unpack position data\n function toDataCoords(axis, coord, scale, calendar) {\n return coord.map(function(x) {\n return axis.d2l(x, 0, calendar) * scale;\n });\n }\n\n var positions = zip3(\n toDataCoords(layout.xaxis, data._meshX, scene.dataScale[0], data.xcalendar),\n toDataCoords(layout.yaxis, data._meshY, scene.dataScale[1], data.ycalendar),\n toDataCoords(layout.zaxis, data._meshZ, scene.dataScale[2], data.zcalendar));\n\n var cells = zip3(data._meshI, data._meshJ, data._meshK);\n\n var config = {\n positions: positions,\n cells: cells,\n lightPosition: [data.lightposition.x, data.lightposition.y, data.lightposition.z],\n ambient: data.lighting.ambient,\n diffuse: data.lighting.diffuse,\n specular: data.lighting.specular,\n roughness: data.lighting.roughness,\n fresnel: data.lighting.fresnel,\n vertexNormalsEpsilon: data.lighting.vertexnormalsepsilon,\n faceNormalsEpsilon: data.lighting.facenormalsepsilon,\n opacity: data.opacity,\n opacityscale: data.opacityscale,\n contourEnable: data.contour.show,\n contourColor: str2RgbaArray(data.contour.color).slice(0, 3),\n contourWidth: data.contour.width,\n useFacetNormals: data.flatshading\n };\n\n var cOpts = extractOpts(data);\n config.vertexIntensity = data._meshIntensity;\n config.vertexIntensityBounds = [cOpts.min, cOpts.max];\n config.colormap = parseColorScale(data);\n\n // Update mesh\n this.mesh.update(config);\n};\n\nproto.dispose = function() {\n this.scene.glplot.remove(this.mesh);\n this.mesh.dispose();\n};\n\nfunction createVolumeTrace(scene, data) {\n var gl = scene.glplot.gl;\n var mesh = createMesh({gl: gl});\n var result = new VolumeTrace(scene, mesh, data.uid);\n\n mesh._trace = result;\n result.update(data);\n scene.glplot.add(mesh);\n return result;\n}\n\nmodule.exports = createVolumeTrace;\n\n},{\"../../../stackgl_modules\":1133,\"../../components/colorscale\":379,\"../../lib/gl_format_color\":511,\"../../lib/str2rgbarray\":540,\"../../plots/gl3d/zip3\":618,\"../isosurface/convert\":873}],1113:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar attributes = _dereq_('./attributes');\nvar supplyIsoDefaults = _dereq_('../isosurface/defaults').supplyIsoDefaults;\nvar opacityscaleDefaults = _dereq_('../surface/defaults').opacityscaleDefaults;\n\nmodule.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n supplyIsoDefaults(traceIn, traceOut, defaultColor, layout, coerce);\n\n opacityscaleDefaults(traceIn, traceOut, layout, coerce);\n};\n\n},{\"../../lib\":515,\"../isosurface/defaults\":874,\"../surface/defaults\":1073,\"./attributes\":1111}],1114:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n supplyDefaults: _dereq_('./defaults'),\n calc: _dereq_('../isosurface/calc'),\n colorbar: {\n min: 'cmin',\n max: 'cmax'\n },\n plot: _dereq_('./convert'),\n\n moduleType: 'trace',\n name: 'volume',\n basePlotModule: _dereq_('../../plots/gl3d'),\n categories: ['gl3d', 'showLegend'],\n meta: {\n }\n};\n\n},{\"../../plots/gl3d\":607,\"../isosurface/calc\":872,\"./attributes\":1111,\"./convert\":1112,\"./defaults\":1113}],1115:[function(_dereq_,module,exports){\n'use strict';\n\nvar barAttrs = _dereq_('../bar/attributes');\nvar lineAttrs = _dereq_('../scatter/attributes').line;\nvar baseAttrs = _dereq_('../../plots/attributes');\nvar axisHoverFormat = _dereq_('../../plots/cartesian/axis_format_attributes').axisHoverFormat;\nvar hovertemplateAttrs = _dereq_('../../plots/template_attributes').hovertemplateAttrs;\nvar texttemplateAttrs = _dereq_('../../plots/template_attributes').texttemplateAttrs;\nvar constants = _dereq_('./constants');\nvar extendFlat = _dereq_('../../lib/extend').extendFlat;\nvar Color = _dereq_('../../components/color');\n\nfunction directionAttrs(dirTxt) {\n return {\n marker: {\n color: extendFlat({}, barAttrs.marker.color, {\n arrayOk: false,\n editType: 'style',\n }),\n line: {\n color: extendFlat({}, barAttrs.marker.line.color, {\n arrayOk: false,\n editType: 'style',\n }),\n width: extendFlat({}, barAttrs.marker.line.width, {\n arrayOk: false,\n editType: 'style',\n }),\n editType: 'style',\n },\n editType: 'style'\n },\n editType: 'style'\n };\n}\n\nmodule.exports = {\n measure: {\n valType: 'data_array',\n dflt: [],\n editType: 'calc',\n },\n\n base: {\n valType: 'number',\n dflt: null,\n arrayOk: false,\n editType: 'calc',\n },\n\n x: barAttrs.x,\n x0: barAttrs.x0,\n dx: barAttrs.dx,\n y: barAttrs.y,\n y0: barAttrs.y0,\n dy: barAttrs.dy,\n\n xperiod: barAttrs.xperiod,\n yperiod: barAttrs.yperiod,\n xperiod0: barAttrs.xperiod0,\n yperiod0: barAttrs.yperiod0,\n xperiodalignment: barAttrs.xperiodalignment,\n yperiodalignment: barAttrs.yperiodalignment,\n xhoverformat: axisHoverFormat('x'),\n yhoverformat: axisHoverFormat('y'),\n\n hovertext: barAttrs.hovertext,\n hovertemplate: hovertemplateAttrs({}, {\n keys: constants.eventDataKeys\n }),\n\n hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {\n flags: ['name', 'x', 'y', 'text', 'initial', 'delta', 'final']\n }),\n\n textinfo: {\n valType: 'flaglist',\n flags: ['label', 'text', 'initial', 'delta', 'final'],\n extras: ['none'],\n editType: 'plot',\n arrayOk: false,\n },\n // TODO: incorporate `label` and `value` in the eventData\n texttemplate: texttemplateAttrs({editType: 'plot'}, {\n keys: constants.eventDataKeys.concat(['label'])\n }),\n text: barAttrs.text,\n textposition: barAttrs.textposition,\n insidetextanchor: barAttrs.insidetextanchor,\n textangle: barAttrs.textangle,\n textfont: barAttrs.textfont,\n insidetextfont: barAttrs.insidetextfont,\n outsidetextfont: barAttrs.outsidetextfont,\n constraintext: barAttrs.constraintext,\n\n cliponaxis: barAttrs.cliponaxis,\n orientation: barAttrs.orientation,\n\n offset: barAttrs.offset,\n width: barAttrs.width,\n\n increasing: directionAttrs('increasing'),\n decreasing: directionAttrs('decreasing'),\n totals: directionAttrs('intermediate sums and total'),\n\n connector: {\n line: {\n color: extendFlat({}, lineAttrs.color, {dflt: Color.defaultLine}),\n width: extendFlat({}, lineAttrs.width, {\n editType: 'plot', // i.e. to adjust bars is mode: 'between'. See https://github.com/plotly/plotly.js/issues/3787\n }),\n dash: lineAttrs.dash,\n editType: 'plot'\n },\n mode: {\n valType: 'enumerated',\n values: ['spanning', 'between'],\n dflt: 'between',\n editType: 'plot',\n },\n visible: {\n valType: 'boolean',\n dflt: true,\n editType: 'plot',\n },\n editType: 'plot'\n },\n\n offsetgroup: barAttrs.offsetgroup,\n alignmentgroup: barAttrs.alignmentgroup\n};\n\n},{\"../../components/color\":367,\"../../lib/extend\":505,\"../../plots/attributes\":562,\"../../plots/cartesian/axis_format_attributes\":569,\"../../plots/template_attributes\":642,\"../bar/attributes\":657,\"../scatter/attributes\":936,\"./constants\":1117}],1116:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../../plots/cartesian/axes');\nvar alignPeriod = _dereq_('../../plots/cartesian/align_period');\nvar mergeArray = _dereq_('../../lib').mergeArray;\nvar calcSelection = _dereq_('../scatter/calc_selection');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\n\nfunction isAbsolute(a) {\n return (a === 'a' || a === 'absolute');\n}\n\nfunction isTotal(a) {\n return (a === 't' || a === 'total');\n}\n\nmodule.exports = function calc(gd, trace) {\n var xa = Axes.getFromId(gd, trace.xaxis || 'x');\n var ya = Axes.getFromId(gd, trace.yaxis || 'y');\n var size, pos, origPos, pObj, hasPeriod, pLetter;\n\n if(trace.orientation === 'h') {\n size = xa.makeCalcdata(trace, 'x');\n origPos = ya.makeCalcdata(trace, 'y');\n pObj = alignPeriod(trace, ya, 'y', origPos);\n hasPeriod = !!trace.yperiodalignment;\n pLetter = 'y';\n } else {\n size = ya.makeCalcdata(trace, 'y');\n origPos = xa.makeCalcdata(trace, 'x');\n pObj = alignPeriod(trace, xa, 'x', origPos);\n hasPeriod = !!trace.xperiodalignment;\n pLetter = 'x';\n }\n pos = pObj.vals;\n\n // create the \"calculated data\" to plot\n var serieslen = Math.min(pos.length, size.length);\n var cd = new Array(serieslen);\n\n // set position and size (as well as for waterfall total size)\n var previousSum = 0;\n var newSize;\n // trace-wide flags\n var hasTotals = false;\n\n for(var i = 0; i < serieslen; i++) {\n var amount = size[i] || 0;\n\n var connectToNext = false;\n if(size[i] !== BADNUM || isTotal(trace.measure[i]) || isAbsolute(trace.measure[i])) {\n if(i + 1 < serieslen && (size[i + 1] !== BADNUM || isTotal(trace.measure[i + 1]) || isAbsolute(trace.measure[i + 1]))) {\n connectToNext = true;\n }\n }\n\n var cdi = cd[i] = {\n i: i,\n p: pos[i],\n s: amount,\n rawS: amount,\n cNext: connectToNext\n };\n\n if(isAbsolute(trace.measure[i])) {\n previousSum = cdi.s;\n\n cdi.isSum = true;\n cdi.dir = 'totals';\n cdi.s = previousSum;\n } else if(isTotal(trace.measure[i])) {\n cdi.isSum = true;\n cdi.dir = 'totals';\n cdi.s = previousSum;\n } else {\n // default: relative\n cdi.isSum = false;\n cdi.dir = cdi.rawS < 0 ? 'decreasing' : 'increasing';\n newSize = cdi.s;\n cdi.s = previousSum + newSize;\n previousSum += newSize;\n }\n\n if(cdi.dir === 'totals') {\n hasTotals = true;\n }\n\n if(hasPeriod) {\n cd[i].orig_p = origPos[i]; // used by hover\n cd[i][pLetter + 'End'] = pObj.ends[i];\n cd[i][pLetter + 'Start'] = pObj.starts[i];\n }\n\n if(trace.ids) {\n cdi.id = String(trace.ids[i]);\n }\n\n cdi.v = (trace.base || 0) + previousSum;\n }\n\n if(cd.length) cd[0].hasTotals = hasTotals;\n\n mergeArray(trace.text, cd, 'tx');\n mergeArray(trace.hovertext, cd, 'htx');\n calcSelection(cd, trace);\n\n return cd;\n};\n\n},{\"../../constants/numerical\":491,\"../../lib\":515,\"../../plots/cartesian/align_period\":563,\"../../plots/cartesian/axes\":566,\"../scatter/calc_selection\":938}],1117:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n eventDataKeys: [\n 'initial',\n 'delta',\n 'final'\n ]\n};\n\n},{}],1118:[function(_dereq_,module,exports){\n'use strict';\n\nvar setGroupPositions = _dereq_('../bar/cross_trace_calc').setGroupPositions;\n\nmodule.exports = function crossTraceCalc(gd, plotinfo) {\n var fullLayout = gd._fullLayout;\n var fullData = gd._fullData;\n var calcdata = gd.calcdata;\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n var waterfalls = [];\n var waterfallsVert = [];\n var waterfallsHorz = [];\n var cd, i;\n\n for(i = 0; i < fullData.length; i++) {\n var fullTrace = fullData[i];\n\n if(\n fullTrace.visible === true &&\n fullTrace.xaxis === xa._id &&\n fullTrace.yaxis === ya._id &&\n fullTrace.type === 'waterfall'\n ) {\n cd = calcdata[i];\n\n if(fullTrace.orientation === 'h') {\n waterfallsHorz.push(cd);\n } else {\n waterfallsVert.push(cd);\n }\n\n waterfalls.push(cd);\n }\n }\n\n var opts = {\n mode: fullLayout.waterfallmode,\n norm: fullLayout.waterfallnorm,\n gap: fullLayout.waterfallgap,\n groupgap: fullLayout.waterfallgroupgap\n };\n\n setGroupPositions(gd, xa, ya, waterfallsVert, opts);\n setGroupPositions(gd, ya, xa, waterfallsHorz, opts);\n\n for(i = 0; i < waterfalls.length; i++) {\n cd = waterfalls[i];\n\n for(var j = 0; j < cd.length; j++) {\n var di = cd[j];\n\n if(di.isSum === false) {\n di.s0 += (j === 0) ? 0 : cd[j - 1].s;\n }\n\n if(j + 1 < cd.length) {\n cd[j].nextP0 = cd[j + 1].p0;\n cd[j].nextS0 = cd[j + 1].s0;\n }\n }\n }\n};\n\n},{\"../bar/cross_trace_calc\":660}],1119:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\n\nvar handleGroupingDefaults = _dereq_('../bar/defaults').handleGroupingDefaults;\nvar handleText = _dereq_('../bar/defaults').handleText;\nvar handleXYDefaults = _dereq_('../scatter/xy_defaults');\nvar handlePeriodDefaults = _dereq_('../scatter/period_defaults');\nvar attributes = _dereq_('./attributes');\nvar Color = _dereq_('../../components/color');\nvar delta = _dereq_('../../constants/delta.js');\n\nvar INCREASING_COLOR = delta.INCREASING.COLOR;\nvar DECREASING_COLOR = delta.DECREASING.COLOR;\nvar TOTALS_COLOR = '#4499FF';\n\nfunction handleDirection(coerce, direction, defaultColor) {\n coerce(direction + '.marker.color', defaultColor);\n coerce(direction + '.marker.line.color', Color.defaultLine);\n coerce(direction + '.marker.line.width');\n}\n\nfunction supplyDefaults(traceIn, traceOut, defaultColor, layout) {\n function coerce(attr, dflt) {\n return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);\n }\n\n var len = handleXYDefaults(traceIn, traceOut, layout, coerce);\n if(!len) {\n traceOut.visible = false;\n return;\n }\n\n handlePeriodDefaults(traceIn, traceOut, layout, coerce);\n coerce('xhoverformat');\n coerce('yhoverformat');\n\n coerce('measure');\n\n coerce('orientation', (traceOut.x && !traceOut.y) ? 'h' : 'v');\n coerce('base');\n coerce('offset');\n coerce('width');\n\n coerce('text');\n\n coerce('hovertext');\n coerce('hovertemplate');\n\n var textposition = coerce('textposition');\n handleText(traceIn, traceOut, layout, coerce, textposition, {\n moduleHasSelected: false,\n moduleHasUnselected: false,\n moduleHasConstrain: true,\n moduleHasCliponaxis: true,\n moduleHasTextangle: true,\n moduleHasInsideanchor: true\n });\n\n\n if(traceOut.textposition !== 'none') {\n coerce('texttemplate');\n if(!traceOut.texttemplate) coerce('textinfo');\n }\n\n handleDirection(coerce, 'increasing', INCREASING_COLOR);\n handleDirection(coerce, 'decreasing', DECREASING_COLOR);\n handleDirection(coerce, 'totals', TOTALS_COLOR);\n\n var connectorVisible = coerce('connector.visible');\n if(connectorVisible) {\n coerce('connector.mode');\n var connectorLineWidth = coerce('connector.line.width');\n if(connectorLineWidth) {\n coerce('connector.line.color');\n coerce('connector.line.dash');\n }\n }\n}\n\nfunction crossTraceDefaults(fullData, fullLayout) {\n var traceIn, traceOut;\n\n function coerce(attr) {\n return Lib.coerce(traceOut._input, traceOut, attributes, attr);\n }\n\n if(fullLayout.waterfallmode === 'group') {\n for(var i = 0; i < fullData.length; i++) {\n traceOut = fullData[i];\n traceIn = traceOut._input;\n\n handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);\n }\n }\n}\n\nmodule.exports = {\n supplyDefaults: supplyDefaults,\n crossTraceDefaults: crossTraceDefaults\n};\n\n},{\"../../components/color\":367,\"../../constants/delta.js\":485,\"../../lib\":515,\"../bar/defaults\":661,\"../scatter/period_defaults\":956,\"../scatter/xy_defaults\":963,\"./attributes\":1115}],1120:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = function eventData(out, pt /* , trace, cd, pointNumber */) {\n // standard cartesian event data\n out.x = 'xVal' in pt ? pt.xVal : pt.x;\n out.y = 'yVal' in pt ? pt.yVal : pt.y;\n\n // for funnel\n if('initial' in pt) out.initial = pt.initial;\n if('delta' in pt) out.delta = pt.delta;\n if('final' in pt) out.final = pt.final;\n\n if(pt.xa) out.xaxis = pt.xa;\n if(pt.ya) out.yaxis = pt.ya;\n\n return out;\n};\n\n},{}],1121:[function(_dereq_,module,exports){\n'use strict';\n\nvar hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;\nvar opacity = _dereq_('../../components/color').opacity;\nvar hoverOnBars = _dereq_('../bar/hover').hoverOnBars;\nvar delta = _dereq_('../../constants/delta.js');\n\nvar DIRSYMBOL = {\n increasing: delta.INCREASING.SYMBOL,\n decreasing: delta.DECREASING.SYMBOL\n};\n\nmodule.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {\n var point = hoverOnBars(pointData, xval, yval, hovermode, opts);\n if(!point) return;\n\n var cd = point.cd;\n var trace = cd[0].trace;\n var isHorizontal = (trace.orientation === 'h');\n\n var vLetter = isHorizontal ? 'x' : 'y';\n var vAxis = isHorizontal ? pointData.xa : pointData.ya;\n\n function formatNumber(a) {\n return hoverLabelText(vAxis, a, trace[vLetter + 'hoverformat']);\n }\n\n // the closest data point\n var index = point.index;\n var di = cd[index];\n\n var size = (di.isSum) ? di.b + di.s : di.rawS;\n\n if(!di.isSum) {\n point.initial = di.b + di.s - size;\n point.delta = size;\n point.final = point.initial + point.delta;\n\n var v = formatNumber(Math.abs(point.delta));\n point.deltaLabel = size < 0 ? '(' + v + ')' : v;\n point.finalLabel = formatNumber(point.final);\n point.initialLabel = formatNumber(point.initial);\n }\n\n var hoverinfo = di.hi || trace.hoverinfo;\n var text = [];\n if(hoverinfo && hoverinfo !== 'none' && hoverinfo !== 'skip') {\n var isAll = (hoverinfo === 'all');\n var parts = hoverinfo.split('+');\n\n var hasFlag = function(flag) { return isAll || parts.indexOf(flag) !== -1; };\n\n if(!di.isSum) {\n if(hasFlag('final') &&\n (isHorizontal ? !hasFlag('x') : !hasFlag('y')) // don't display redundant info.\n ) {\n text.push(point.finalLabel);\n }\n if(hasFlag('delta')) {\n if(size < 0) {\n text.push(point.deltaLabel + ' ' + DIRSYMBOL.decreasing);\n } else {\n text.push(point.deltaLabel + ' ' + DIRSYMBOL.increasing);\n }\n }\n if(hasFlag('initial')) {\n text.push('Initial: ' + point.initialLabel);\n }\n }\n }\n\n if(text.length) point.extraText = text.join('
');\n\n point.color = getTraceColor(trace, di);\n\n return [point];\n};\n\nfunction getTraceColor(trace, di) {\n var cont = trace[di.dir].marker;\n var mc = cont.color;\n var mlc = cont.line.color;\n var mlw = cont.line.width;\n if(opacity(mc)) return mc;\n else if(opacity(mlc) && mlw) return mlc;\n}\n\n},{\"../../components/color\":367,\"../../constants/delta.js\":485,\"../../plots/cartesian/axes\":566,\"../bar/hover\":664}],1122:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n attributes: _dereq_('./attributes'),\n layoutAttributes: _dereq_('./layout_attributes'),\n supplyDefaults: _dereq_('./defaults').supplyDefaults,\n crossTraceDefaults: _dereq_('./defaults').crossTraceDefaults,\n supplyLayoutDefaults: _dereq_('./layout_defaults'),\n calc: _dereq_('./calc'),\n crossTraceCalc: _dereq_('./cross_trace_calc'),\n plot: _dereq_('./plot'),\n style: _dereq_('./style').style,\n hoverPoints: _dereq_('./hover'),\n eventData: _dereq_('./event_data'),\n\n selectPoints: _dereq_('../bar/select'),\n\n moduleType: 'trace',\n name: 'waterfall',\n basePlotModule: _dereq_('../../plots/cartesian'),\n categories: ['bar-like', 'cartesian', 'svg', 'oriented', 'showLegend', 'zoomScale'],\n meta: {\n }\n};\n\n},{\"../../plots/cartesian\":578,\"../bar/select\":669,\"./attributes\":1115,\"./calc\":1116,\"./cross_trace_calc\":1118,\"./defaults\":1119,\"./event_data\":1120,\"./hover\":1121,\"./layout_attributes\":1123,\"./layout_defaults\":1124,\"./plot\":1125,\"./style\":1126}],1123:[function(_dereq_,module,exports){\n'use strict';\n\nmodule.exports = {\n waterfallmode: {\n valType: 'enumerated',\n values: ['group', 'overlay'],\n dflt: 'group',\n editType: 'calc',\n },\n waterfallgap: {\n valType: 'number',\n min: 0,\n max: 1,\n editType: 'calc',\n },\n waterfallgroupgap: {\n valType: 'number',\n min: 0,\n max: 1,\n dflt: 0,\n editType: 'calc',\n }\n};\n\n},{}],1124:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../../lib');\nvar layoutAttributes = _dereq_('./layout_attributes');\n\nmodule.exports = function(layoutIn, layoutOut, fullData) {\n var hasTraceType = false;\n\n function coerce(attr, dflt) {\n return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);\n }\n\n for(var i = 0; i < fullData.length; i++) {\n var trace = fullData[i];\n\n if(trace.visible && trace.type === 'waterfall') {\n hasTraceType = true;\n break;\n }\n }\n\n if(hasTraceType) {\n coerce('waterfallmode');\n coerce('waterfallgap', 0.2);\n coerce('waterfallgroupgap');\n }\n};\n\n},{\"../../lib\":515,\"./layout_attributes\":1123}],1125:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\nvar Lib = _dereq_('../../lib');\nvar Drawing = _dereq_('../../components/drawing');\nvar BADNUM = _dereq_('../../constants/numerical').BADNUM;\nvar barPlot = _dereq_('../bar/plot');\nvar clearMinTextSize = _dereq_('../bar/uniform_text').clearMinTextSize;\n\nmodule.exports = function plot(gd, plotinfo, cdModule, traceLayer) {\n var fullLayout = gd._fullLayout;\n\n clearMinTextSize('waterfall', fullLayout);\n\n barPlot.plot(gd, plotinfo, cdModule, traceLayer, {\n mode: fullLayout.waterfallmode,\n norm: fullLayout.waterfallmode,\n gap: fullLayout.waterfallgap,\n groupgap: fullLayout.waterfallgroupgap\n });\n\n plotConnectors(gd, plotinfo, cdModule, traceLayer);\n};\n\nfunction plotConnectors(gd, plotinfo, cdModule, traceLayer) {\n var xa = plotinfo.xaxis;\n var ya = plotinfo.yaxis;\n\n Lib.makeTraceGroups(traceLayer, cdModule, 'trace bars').each(function(cd) {\n var plotGroup = d3.select(this);\n var trace = cd[0].trace;\n\n var group = Lib.ensureSingle(plotGroup, 'g', 'lines');\n\n if(!trace.connector || !trace.connector.visible) {\n group.remove();\n return;\n }\n\n var isHorizontal = (trace.orientation === 'h');\n var mode = trace.connector.mode;\n\n var connectors = group.selectAll('g.line').data(Lib.identity);\n\n connectors.enter().append('g')\n .classed('line', true);\n\n connectors.exit().remove();\n\n var len = connectors.size();\n\n connectors.each(function(di, i) {\n // don't draw lines between nulls\n if(i !== len - 1 && !di.cNext) return;\n\n var xy = getXY(di, xa, ya, isHorizontal);\n var x = xy[0];\n var y = xy[1];\n\n var shape = '';\n\n if(\n x[0] !== BADNUM && y[0] !== BADNUM &&\n x[1] !== BADNUM && y[1] !== BADNUM\n ) {\n if(mode === 'spanning') {\n if(!di.isSum && i > 0) {\n if(isHorizontal) {\n shape += 'M' + x[0] + ',' + y[1] + 'V' + y[0];\n } else {\n shape += 'M' + x[1] + ',' + y[0] + 'H' + x[0];\n }\n }\n }\n\n if(mode !== 'between') {\n if(di.isSum || i < len - 1) {\n if(isHorizontal) {\n shape += 'M' + x[1] + ',' + y[0] + 'V' + y[1];\n } else {\n shape += 'M' + x[0] + ',' + y[1] + 'H' + x[1];\n }\n }\n }\n\n if(x[2] !== BADNUM && y[2] !== BADNUM) {\n if(isHorizontal) {\n shape += 'M' + x[1] + ',' + y[1] + 'V' + y[2];\n } else {\n shape += 'M' + x[1] + ',' + y[1] + 'H' + x[2];\n }\n }\n }\n\n if(shape === '') shape = 'M0,0Z';\n\n Lib.ensureSingle(d3.select(this), 'path')\n .attr('d', shape)\n .call(Drawing.setClipUrl, plotinfo.layerClipId, gd);\n });\n });\n}\n\nfunction getXY(di, xa, ya, isHorizontal) {\n var s = [];\n var p = [];\n\n var sAxis = isHorizontal ? xa : ya;\n var pAxis = isHorizontal ? ya : xa;\n\n s[0] = sAxis.c2p(di.s0, true);\n p[0] = pAxis.c2p(di.p0, true);\n\n s[1] = sAxis.c2p(di.s1, true);\n p[1] = pAxis.c2p(di.p1, true);\n\n s[2] = sAxis.c2p(di.nextS0, true);\n p[2] = pAxis.c2p(di.nextP0, true);\n\n return isHorizontal ? [s, p] : [p, s];\n}\n\n},{\"../../components/drawing\":389,\"../../constants/numerical\":491,\"../../lib\":515,\"../bar/plot\":668,\"../bar/uniform_text\":673,\"@plotly/d3\":58}],1126:[function(_dereq_,module,exports){\n'use strict';\n\nvar d3 = _dereq_('@plotly/d3');\n\nvar Drawing = _dereq_('../../components/drawing');\nvar Color = _dereq_('../../components/color');\nvar DESELECTDIM = _dereq_('../../constants/interactions').DESELECTDIM;\nvar barStyle = _dereq_('../bar/style');\nvar resizeText = _dereq_('../bar/uniform_text').resizeText;\nvar styleTextPoints = barStyle.styleTextPoints;\n\nfunction style(gd, cd, sel) {\n var s = sel ? sel : d3.select(gd).selectAll('g.waterfalllayer').selectAll('g.trace');\n resizeText(gd, s, 'waterfall');\n\n s.style('opacity', function(d) { return d[0].trace.opacity; });\n\n s.each(function(d) {\n var gTrace = d3.select(this);\n var trace = d[0].trace;\n\n gTrace.selectAll('.point > path').each(function(di) {\n if(!di.isBlank) {\n var cont = trace[di.dir].marker;\n\n d3.select(this)\n .call(Color.fill, cont.color)\n .call(Color.stroke, cont.line.color)\n .call(Drawing.dashLine, cont.line.dash, cont.line.width)\n .style('opacity', trace.selectedpoints && !di.selected ? DESELECTDIM : 1);\n }\n });\n\n styleTextPoints(gTrace, trace, gd);\n\n gTrace.selectAll('.lines').each(function() {\n var cont = trace.connector.line;\n\n Drawing.lineGroupStyle(\n d3.select(this).selectAll('path'),\n cont.width,\n cont.color,\n cont.dash\n );\n });\n });\n}\n\nmodule.exports = {\n style: style\n};\n\n},{\"../../components/color\":367,\"../../components/drawing\":389,\"../../constants/interactions\":490,\"../bar/style\":671,\"../bar/uniform_text\":673,\"@plotly/d3\":58}],1127:[function(_dereq_,module,exports){\n'use strict';\n\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar Lib = _dereq_('../lib');\nvar PlotSchema = _dereq_('../plot_api/plot_schema');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nexports.moduleType = 'transform';\n\nexports.name = 'aggregate';\n\nvar attrs = exports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n groups: {\n // TODO: groupby should support string or array grouping this way too\n // currently groupby only allows a grouping array\n valType: 'string',\n strict: true,\n noBlank: true,\n arrayOk: true,\n dflt: 'x',\n editType: 'calc',\n },\n aggregations: {\n _isLinkedToArray: 'aggregation',\n target: {\n valType: 'string',\n editType: 'calc',\n },\n func: {\n valType: 'enumerated',\n values: ['count', 'sum', 'avg', 'median', 'mode', 'rms', 'stddev', 'min', 'max', 'first', 'last', 'change', 'range'],\n dflt: 'first',\n editType: 'calc',\n },\n funcmode: {\n valType: 'enumerated',\n values: ['sample', 'population'],\n dflt: 'sample',\n editType: 'calc',\n },\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n editType: 'calc'\n },\n editType: 'calc'\n};\n\nvar aggAttrs = attrs.aggregations;\n\n/**\n * Supply transform attributes defaults\n *\n * @param {object} transformIn\n * object linked to trace.transforms[i] with 'func' set to exports.name\n * @param {object} traceOut\n * the _fullData trace this transform applies to\n * @param {object} layout\n * the plot's (not-so-full) layout\n * @param {object} traceIn\n * the input data trace this transform applies to\n *\n * @return {object} transformOut\n * copy of transformIn that contains attribute defaults\n */\nexports.supplyDefaults = function(transformIn, traceOut) {\n var transformOut = {};\n var i;\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, attrs, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(!enabled) return transformOut;\n\n /*\n * Normally _arrayAttrs is calculated during doCalc, but that comes later.\n * Anyway this can change due to *count* aggregations (see below) so it's not\n * necessarily the same set.\n *\n * For performance we turn it into an object of truthy values\n * we'll use 1 for arrays we haven't aggregated yet, 0 for finished arrays,\n * as distinct from undefined which means this array isn't present in the input\n * missing arrays can still be aggregate outputs for *count* aggregations.\n */\n var arrayAttrArray = PlotSchema.findArrayAttributes(traceOut);\n var arrayAttrs = {};\n for(i = 0; i < arrayAttrArray.length; i++) arrayAttrs[arrayAttrArray[i]] = 1;\n\n var groups = coerce('groups');\n\n if(!Array.isArray(groups)) {\n if(!arrayAttrs[groups]) {\n transformOut.enabled = false;\n return transformOut;\n }\n arrayAttrs[groups] = 0;\n }\n\n var aggregationsIn = transformIn.aggregations || [];\n var aggregationsOut = transformOut.aggregations = new Array(aggregationsIn.length);\n var aggregationOut;\n\n function coercei(attr, dflt) {\n return Lib.coerce(aggregationsIn[i], aggregationOut, aggAttrs, attr, dflt);\n }\n\n for(i = 0; i < aggregationsIn.length; i++) {\n aggregationOut = {_index: i};\n var target = coercei('target');\n var func = coercei('func');\n var enabledi = coercei('enabled');\n\n // add this aggregation to the output only if it's the first instance\n // of a valid target attribute - or an unused target attribute with \"count\"\n if(enabledi && target && (arrayAttrs[target] || (func === 'count' && arrayAttrs[target] === undefined))) {\n if(func === 'stddev') coercei('funcmode');\n\n arrayAttrs[target] = 0;\n aggregationsOut[i] = aggregationOut;\n } else aggregationsOut[i] = {enabled: false, _index: i};\n }\n\n // any array attributes we haven't yet covered, fill them with the default aggregation\n for(i = 0; i < arrayAttrArray.length; i++) {\n if(arrayAttrs[arrayAttrArray[i]]) {\n aggregationsOut.push({\n target: arrayAttrArray[i],\n func: aggAttrs.func.dflt,\n enabled: true,\n _index: -1\n });\n }\n }\n\n return transformOut;\n};\n\n\nexports.calcTransform = function(gd, trace, opts) {\n if(!opts.enabled) return;\n\n var groups = opts.groups;\n\n var groupArray = Lib.getTargetArray(trace, {target: groups});\n if(!groupArray) return;\n\n var i, vi, groupIndex, newGrouping;\n\n var groupIndices = {};\n var indexToPoints = {};\n var groupings = [];\n\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n\n var len = groupArray.length;\n if(trace._length) len = Math.min(len, trace._length);\n\n for(i = 0; i < len; i++) {\n vi = groupArray[i];\n groupIndex = groupIndices[vi];\n if(groupIndex === undefined) {\n groupIndices[vi] = groupings.length;\n newGrouping = [i];\n groupings.push(newGrouping);\n indexToPoints[groupIndices[vi]] = originalPointsAccessor(i);\n } else {\n groupings[groupIndex].push(i);\n indexToPoints[groupIndices[vi]] = (indexToPoints[groupIndices[vi]] || []).concat(originalPointsAccessor(i));\n }\n }\n\n opts._indexToPoints = indexToPoints;\n\n var aggregations = opts.aggregations;\n\n for(i = 0; i < aggregations.length; i++) {\n aggregateOneArray(gd, trace, groupings, aggregations[i]);\n }\n\n if(typeof groups === 'string') {\n aggregateOneArray(gd, trace, groupings, {\n target: groups,\n func: 'first',\n enabled: true\n });\n }\n\n trace._length = groupings.length;\n};\n\nfunction aggregateOneArray(gd, trace, groupings, aggregation) {\n if(!aggregation.enabled) return;\n\n var attr = aggregation.target;\n var targetNP = Lib.nestedProperty(trace, attr);\n var arrayIn = targetNP.get();\n var conversions = Axes.getDataConversions(gd, trace, attr, arrayIn);\n var func = getAggregateFunction(aggregation, conversions);\n\n var arrayOut = new Array(groupings.length);\n for(var i = 0; i < groupings.length; i++) {\n arrayOut[i] = func(arrayIn, groupings[i]);\n }\n targetNP.set(arrayOut);\n\n if(aggregation.func === 'count') {\n // count does not depend on an input array, so it's likely not part of _arrayAttrs yet\n // but after this transform it most definitely *is* an array attribute.\n Lib.pushUnique(trace._arrayAttrs, attr);\n }\n}\n\nfunction getAggregateFunction(opts, conversions) {\n var func = opts.func;\n var d2c = conversions.d2c;\n var c2d = conversions.c2d;\n\n switch(func) {\n // count, first, and last don't depend on anything about the data\n // point back to pure functions for performance\n case 'count':\n return count;\n case 'first':\n return first;\n case 'last':\n return last;\n\n case 'sum':\n // This will produce output in all cases even though it's nonsensical\n // for date or category data.\n return function(array, indices) {\n var total = 0;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) total += vi;\n }\n return c2d(total);\n };\n\n case 'avg':\n // Generally meaningless for category data but it still does something.\n return function(array, indices) {\n var total = 0;\n var cnt = 0;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n total += vi;\n cnt++;\n }\n }\n return cnt ? c2d(total / cnt) : BADNUM;\n };\n\n case 'min':\n return function(array, indices) {\n var out = Infinity;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) out = Math.min(out, vi);\n }\n return (out === Infinity) ? BADNUM : c2d(out);\n };\n\n case 'max':\n return function(array, indices) {\n var out = -Infinity;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) out = Math.max(out, vi);\n }\n return (out === -Infinity) ? BADNUM : c2d(out);\n };\n\n case 'range':\n return function(array, indices) {\n var min = Infinity;\n var max = -Infinity;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n min = Math.min(min, vi);\n max = Math.max(max, vi);\n }\n }\n return (max === -Infinity || min === Infinity) ? BADNUM : c2d(max - min);\n };\n\n case 'change':\n return function(array, indices) {\n var first = d2c(array[indices[0]]);\n var last = d2c(array[indices[indices.length - 1]]);\n return (first === BADNUM || last === BADNUM) ? BADNUM : c2d(last - first);\n };\n\n case 'median':\n return function(array, indices) {\n var sortCalc = [];\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) sortCalc.push(vi);\n }\n if(!sortCalc.length) return BADNUM;\n sortCalc.sort(Lib.sorterAsc);\n var mid = (sortCalc.length - 1) / 2;\n return c2d((sortCalc[Math.floor(mid)] + sortCalc[Math.ceil(mid)]) / 2);\n };\n\n case 'mode':\n return function(array, indices) {\n var counts = {};\n var maxCnt = 0;\n var out = BADNUM;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n var counti = counts[vi] = (counts[vi] || 0) + 1;\n if(counti > maxCnt) {\n maxCnt = counti;\n out = vi;\n }\n }\n }\n return maxCnt ? c2d(out) : BADNUM;\n };\n\n case 'rms':\n return function(array, indices) {\n var total = 0;\n var cnt = 0;\n for(var i = 0; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n total += vi * vi;\n cnt++;\n }\n }\n return cnt ? c2d(Math.sqrt(total / cnt)) : BADNUM;\n };\n\n case 'stddev':\n return function(array, indices) {\n // balance numerical stability with performance:\n // so that we call d2c once per element but don't need to\n // store them, reference all to the first element\n var total = 0;\n var total2 = 0;\n var cnt = 1;\n var v0 = BADNUM;\n var i;\n for(i = 0; i < indices.length && v0 === BADNUM; i++) {\n v0 = d2c(array[indices[i]]);\n }\n if(v0 === BADNUM) return BADNUM;\n\n for(; i < indices.length; i++) {\n var vi = d2c(array[indices[i]]);\n if(vi !== BADNUM) {\n var dv = vi - v0;\n total += dv;\n total2 += dv * dv;\n cnt++;\n }\n }\n\n // This is population std dev, if we want sample std dev\n // we would need (...) / (cnt - 1)\n // Also note there's no c2d here - that means for dates the result\n // is a number of milliseconds, and for categories it's a number\n // of category differences, which is not generically meaningful but\n // as in other cases we don't forbid it.\n var norm = (opts.funcmode === 'sample') ? (cnt - 1) : cnt;\n // this is debatable: should a count of 1 return sample stddev of\n // 0 or undefined?\n if(!norm) return 0;\n return Math.sqrt((total2 - (total * total / cnt)) / norm);\n };\n }\n}\n\nfunction count(array, indices) {\n return indices.length;\n}\n\nfunction first(array, indices) {\n return array[indices[0]];\n}\n\nfunction last(array, indices) {\n return array[indices[indices.length - 1]];\n}\n\n},{\"../constants/numerical\":491,\"../lib\":515,\"../plot_api/plot_schema\":554,\"../plots/cartesian/axes\":566,\"./helpers\":1130}],1128:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Registry = _dereq_('../registry');\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\n\nvar filterOps = _dereq_('../constants/filter_ops');\nvar COMPARISON_OPS = filterOps.COMPARISON_OPS;\nvar INTERVAL_OPS = filterOps.INTERVAL_OPS;\nvar SET_OPS = filterOps.SET_OPS;\n\nexports.moduleType = 'transform';\n\nexports.name = 'filter';\n\nexports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n target: {\n valType: 'string',\n strict: true,\n noBlank: true,\n arrayOk: true,\n dflt: 'x',\n editType: 'calc',\n },\n operation: {\n valType: 'enumerated',\n values: []\n .concat(COMPARISON_OPS)\n .concat(INTERVAL_OPS)\n .concat(SET_OPS),\n dflt: '=',\n editType: 'calc',\n },\n value: {\n valType: 'any',\n dflt: 0,\n editType: 'calc',\n },\n preservegaps: {\n valType: 'boolean',\n dflt: false,\n editType: 'calc',\n },\n editType: 'calc'\n};\n\nexports.supplyDefaults = function(transformIn) {\n var transformOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, exports.attributes, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(enabled) {\n var target = coerce('target');\n\n if(Lib.isArrayOrTypedArray(target) && target.length === 0) {\n transformOut.enabled = false;\n return transformOut;\n }\n\n coerce('preservegaps');\n coerce('operation');\n coerce('value');\n\n var handleCalendarDefaults = Registry.getComponentMethod('calendars', 'handleDefaults');\n handleCalendarDefaults(transformIn, transformOut, 'valuecalendar', null);\n handleCalendarDefaults(transformIn, transformOut, 'targetcalendar', null);\n }\n\n return transformOut;\n};\n\nexports.calcTransform = function(gd, trace, opts) {\n if(!opts.enabled) return;\n\n var targetArray = Lib.getTargetArray(trace, opts);\n if(!targetArray) return;\n\n var target = opts.target;\n\n var len = targetArray.length;\n if(trace._length) len = Math.min(len, trace._length);\n\n var targetCalendar = opts.targetcalendar;\n var arrayAttrs = trace._arrayAttrs;\n var preservegaps = opts.preservegaps;\n\n // even if you provide targetcalendar, if target is a string and there\n // is a calendar attribute matching target it will get used instead.\n if(typeof target === 'string') {\n var attrTargetCalendar = Lib.nestedProperty(trace, target + 'calendar').get();\n if(attrTargetCalendar) targetCalendar = attrTargetCalendar;\n }\n\n var d2c = Axes.getDataToCoordFunc(gd, trace, target, targetArray);\n var filterFunc = getFilterFunc(opts, d2c, targetCalendar);\n var originalArrays = {};\n var indexToPoints = {};\n var index = 0;\n\n function forAllAttrs(fn, index) {\n for(var j = 0; j < arrayAttrs.length; j++) {\n var np = Lib.nestedProperty(trace, arrayAttrs[j]);\n fn(np, index);\n }\n }\n\n var initFn;\n var fillFn;\n if(preservegaps) {\n initFn = function(np) {\n originalArrays[np.astr] = Lib.extendDeep([], np.get());\n np.set(new Array(len));\n };\n fillFn = function(np, index) {\n var val = originalArrays[np.astr][index];\n np.get()[index] = val;\n };\n } else {\n initFn = function(np) {\n originalArrays[np.astr] = Lib.extendDeep([], np.get());\n np.set([]);\n };\n fillFn = function(np, index) {\n var val = originalArrays[np.astr][index];\n np.get().push(val);\n };\n }\n\n // copy all original array attribute values, and clear arrays in trace\n forAllAttrs(initFn);\n\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n\n // loop through filter array, fill trace arrays if passed\n for(var i = 0; i < len; i++) {\n var passed = filterFunc(targetArray[i]);\n if(passed) {\n forAllAttrs(fillFn, i);\n indexToPoints[index++] = originalPointsAccessor(i);\n } else if(preservegaps) index++;\n }\n\n opts._indexToPoints = indexToPoints;\n trace._length = index;\n};\n\nfunction getFilterFunc(opts, d2c, targetCalendar) {\n var operation = opts.operation;\n var value = opts.value;\n var hasArrayValue = Array.isArray(value);\n\n function isOperationIn(array) {\n return array.indexOf(operation) !== -1;\n }\n\n var d2cValue = function(v) { return d2c(v, 0, opts.valuecalendar); };\n var d2cTarget = function(v) { return d2c(v, 0, targetCalendar); };\n\n var coercedValue;\n\n if(isOperationIn(COMPARISON_OPS)) {\n coercedValue = hasArrayValue ? d2cValue(value[0]) : d2cValue(value);\n } else if(isOperationIn(INTERVAL_OPS)) {\n coercedValue = hasArrayValue ?\n [d2cValue(value[0]), d2cValue(value[1])] :\n [d2cValue(value), d2cValue(value)];\n } else if(isOperationIn(SET_OPS)) {\n coercedValue = hasArrayValue ? value.map(d2cValue) : [d2cValue(value)];\n }\n\n switch(operation) {\n case '=':\n return function(v) { return d2cTarget(v) === coercedValue; };\n\n case '!=':\n return function(v) { return d2cTarget(v) !== coercedValue; };\n\n case '<':\n return function(v) { return d2cTarget(v) < coercedValue; };\n\n case '<=':\n return function(v) { return d2cTarget(v) <= coercedValue; };\n\n case '>':\n return function(v) { return d2cTarget(v) > coercedValue; };\n\n case '>=':\n return function(v) { return d2cTarget(v) >= coercedValue; };\n\n case '[]':\n return function(v) {\n var cv = d2cTarget(v);\n return cv >= coercedValue[0] && cv <= coercedValue[1];\n };\n\n case '()':\n return function(v) {\n var cv = d2cTarget(v);\n return cv > coercedValue[0] && cv < coercedValue[1];\n };\n\n case '[)':\n return function(v) {\n var cv = d2cTarget(v);\n return cv >= coercedValue[0] && cv < coercedValue[1];\n };\n\n case '(]':\n return function(v) {\n var cv = d2cTarget(v);\n return cv > coercedValue[0] && cv <= coercedValue[1];\n };\n\n case '][':\n return function(v) {\n var cv = d2cTarget(v);\n return cv <= coercedValue[0] || cv >= coercedValue[1];\n };\n\n case ')(':\n return function(v) {\n var cv = d2cTarget(v);\n return cv < coercedValue[0] || cv > coercedValue[1];\n };\n\n case '](':\n return function(v) {\n var cv = d2cTarget(v);\n return cv <= coercedValue[0] || cv > coercedValue[1];\n };\n\n case ')[':\n return function(v) {\n var cv = d2cTarget(v);\n return cv < coercedValue[0] || cv >= coercedValue[1];\n };\n\n case '{}':\n return function(v) {\n return coercedValue.indexOf(d2cTarget(v)) !== -1;\n };\n\n case '}{':\n return function(v) {\n return coercedValue.indexOf(d2cTarget(v)) === -1;\n };\n }\n}\n\n},{\"../constants/filter_ops\":487,\"../lib\":515,\"../plots/cartesian/axes\":566,\"../registry\":647,\"./helpers\":1130}],1129:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar PlotSchema = _dereq_('../plot_api/plot_schema');\nvar Plots = _dereq_('../plots/plots');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\n\nexports.moduleType = 'transform';\n\nexports.name = 'groupby';\n\nexports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n groups: {\n valType: 'data_array',\n dflt: [],\n editType: 'calc',\n },\n nameformat: {\n valType: 'string',\n editType: 'calc',\n },\n styles: {\n _isLinkedToArray: 'style',\n target: {\n valType: 'string',\n editType: 'calc',\n },\n value: {\n valType: 'any',\n dflt: {},\n editType: 'calc',\n _compareAsJSON: true\n },\n editType: 'calc'\n },\n editType: 'calc'\n};\n\n/**\n * Supply transform attributes defaults\n *\n * @param {object} transformIn\n * object linked to trace.transforms[i] with 'type' set to exports.name\n * @param {object} traceOut\n * the _fullData trace this transform applies to\n * @param {object} layout\n * the plot's (not-so-full) layout\n * @param {object} traceIn\n * the input data trace this transform applies to\n *\n * @return {object} transformOut\n * copy of transformIn that contains attribute defaults\n */\nexports.supplyDefaults = function(transformIn, traceOut, layout) {\n var i;\n var transformOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, exports.attributes, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(!enabled) return transformOut;\n\n coerce('groups');\n coerce('nameformat', layout._dataLength > 1 ? '%{group} (%{trace})' : '%{group}');\n\n var styleIn = transformIn.styles;\n var styleOut = transformOut.styles = [];\n\n if(styleIn) {\n for(i = 0; i < styleIn.length; i++) {\n var thisStyle = styleOut[i] = {};\n Lib.coerce(styleIn[i], styleOut[i], exports.attributes.styles, 'target');\n var value = Lib.coerce(styleIn[i], styleOut[i], exports.attributes.styles, 'value');\n\n // so that you can edit value in place and have Plotly.react notice it, or\n // rebuild it every time and have Plotly.react NOT think it changed:\n // use _compareAsJSON to say we should diff the _JSON_value\n if(Lib.isPlainObject(value)) thisStyle.value = Lib.extendDeep({}, value);\n else if(value) delete thisStyle.value;\n }\n }\n\n return transformOut;\n};\n\n\n/**\n * Apply transform !!!\n *\n * @param {array} data\n * array of transformed traces (is [fullTrace] upon first transform)\n *\n * @param {object} state\n * state object which includes:\n * - transform {object} full transform attributes\n * - fullTrace {object} full trace object which is being transformed\n * - fullData {array} full pre-transform(s) data array\n * - layout {object} the plot's (not-so-full) layout\n *\n * @return {object} newData\n * array of transformed traces\n */\nexports.transform = function(data, state) {\n var newTraces, i, j;\n var newData = [];\n\n for(i = 0; i < data.length; i++) {\n newTraces = transformOne(data[i], state);\n\n for(j = 0; j < newTraces.length; j++) {\n newData.push(newTraces[j]);\n }\n }\n\n return newData;\n};\n\nfunction transformOne(trace, state) {\n var i, j, k, attr, srcArray, groupName, newTrace, transforms, arrayLookup;\n var groupNameObj;\n\n var opts = state.transform;\n var transformIndex = state.transformIndex;\n var groups = trace.transforms[transformIndex].groups;\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n\n if(!(Lib.isArrayOrTypedArray(groups)) || groups.length === 0) {\n return [trace];\n }\n\n var groupNames = Lib.filterUnique(groups);\n var newData = new Array(groupNames.length);\n var len = groups.length;\n\n var arrayAttrs = PlotSchema.findArrayAttributes(trace);\n\n var styles = opts.styles || [];\n var styleLookup = {};\n for(i = 0; i < styles.length; i++) {\n styleLookup[styles[i].target] = styles[i].value;\n }\n\n if(opts.styles) {\n groupNameObj = Lib.keyedContainer(opts, 'styles', 'target', 'value.name');\n }\n\n // An index to map group name --> expanded trace index\n var indexLookup = {};\n var indexCnts = {};\n\n for(i = 0; i < groupNames.length; i++) {\n groupName = groupNames[i];\n indexLookup[groupName] = i;\n indexCnts[groupName] = 0;\n\n // Start with a deep extend that just copies array references.\n newTrace = newData[i] = Lib.extendDeepNoArrays({}, trace);\n newTrace._group = groupName;\n newTrace.transforms[transformIndex]._indexToPoints = {};\n\n var suppliedName = null;\n if(groupNameObj) {\n suppliedName = groupNameObj.get(groupName);\n }\n\n if(suppliedName || suppliedName === '') {\n newTrace.name = suppliedName;\n } else {\n newTrace.name = Lib.templateString(opts.nameformat, {\n trace: trace.name,\n group: groupName\n });\n }\n\n // In order for groups to apply correctly to other transform data (e.g.\n // a filter transform), we have to break the connection and clone the\n // transforms so that each group writes grouped values into a different\n // destination. This function does not break the array reference\n // connection between the split transforms it creates. That's handled in\n // initialize, which creates a new empty array for each arrayAttr.\n transforms = newTrace.transforms;\n newTrace.transforms = [];\n for(j = 0; j < transforms.length; j++) {\n newTrace.transforms[j] = Lib.extendDeepNoArrays({}, transforms[j]);\n }\n\n // Initialize empty arrays for the arrayAttrs, to be split in the next step\n for(j = 0; j < arrayAttrs.length; j++) {\n Lib.nestedProperty(newTrace, arrayAttrs[j]).set([]);\n }\n }\n\n // For each array attribute including those nested inside this and other\n // transforms (small note that we technically only need to do this for\n // transforms that have not yet been applied):\n for(k = 0; k < arrayAttrs.length; k++) {\n attr = arrayAttrs[k];\n\n // Cache all the arrays to which we'll push:\n for(j = 0, arrayLookup = []; j < groupNames.length; j++) {\n arrayLookup[j] = Lib.nestedProperty(newData[j], attr).get();\n }\n\n // Get the input data:\n srcArray = Lib.nestedProperty(trace, attr).get();\n\n // Send each data point to the appropriate expanded trace:\n for(j = 0; j < len; j++) {\n // Map group data --> trace index --> array and push data onto it\n arrayLookup[indexLookup[groups[j]]].push(srcArray[j]);\n }\n }\n\n for(j = 0; j < len; j++) {\n newTrace = newData[indexLookup[groups[j]]];\n\n var indexToPoints = newTrace.transforms[transformIndex]._indexToPoints;\n indexToPoints[indexCnts[groups[j]]] = originalPointsAccessor(j);\n indexCnts[groups[j]]++;\n }\n\n for(i = 0; i < groupNames.length; i++) {\n groupName = groupNames[i];\n newTrace = newData[i];\n\n Plots.clearExpandedTraceDefaultColors(newTrace);\n\n // there's no need to coerce styleLookup[groupName] here\n // as another round of supplyDefaults is done on the transformed traces\n newTrace = Lib.extendDeepNoArrays(newTrace, styleLookup[groupName] || {});\n }\n\n return newData;\n}\n\n},{\"../lib\":515,\"../plot_api/plot_schema\":554,\"../plots/plots\":628,\"./helpers\":1130}],1130:[function(_dereq_,module,exports){\n'use strict';\n\nexports.pointsAccessorFunction = function(transforms, opts) {\n var tr;\n var prevIndexToPoints;\n for(var i = 0; i < transforms.length; i++) {\n tr = transforms[i];\n if(tr === opts) break;\n if(!tr._indexToPoints || tr.enabled === false) continue;\n prevIndexToPoints = tr._indexToPoints;\n }\n var originalPointsAccessor = prevIndexToPoints ?\n function(i) {return prevIndexToPoints[i];} :\n function(i) {return [i];};\n return originalPointsAccessor;\n};\n\n},{}],1131:[function(_dereq_,module,exports){\n'use strict';\n\nvar Lib = _dereq_('../lib');\nvar Axes = _dereq_('../plots/cartesian/axes');\nvar pointsAccessorFunction = _dereq_('./helpers').pointsAccessorFunction;\n\nvar BADNUM = _dereq_('../constants/numerical').BADNUM;\n\nexports.moduleType = 'transform';\n\nexports.name = 'sort';\n\nexports.attributes = {\n enabled: {\n valType: 'boolean',\n dflt: true,\n editType: 'calc',\n },\n target: {\n valType: 'string',\n strict: true,\n noBlank: true,\n arrayOk: true,\n dflt: 'x',\n editType: 'calc',\n },\n order: {\n valType: 'enumerated',\n values: ['ascending', 'descending'],\n dflt: 'ascending',\n editType: 'calc',\n },\n editType: 'calc'\n};\n\nexports.supplyDefaults = function(transformIn) {\n var transformOut = {};\n\n function coerce(attr, dflt) {\n return Lib.coerce(transformIn, transformOut, exports.attributes, attr, dflt);\n }\n\n var enabled = coerce('enabled');\n\n if(enabled) {\n coerce('target');\n coerce('order');\n }\n\n return transformOut;\n};\n\nexports.calcTransform = function(gd, trace, opts) {\n if(!opts.enabled) return;\n\n var targetArray = Lib.getTargetArray(trace, opts);\n if(!targetArray) return;\n\n var target = opts.target;\n\n var len = targetArray.length;\n if(trace._length) len = Math.min(len, trace._length);\n\n var arrayAttrs = trace._arrayAttrs;\n var d2c = Axes.getDataToCoordFunc(gd, trace, target, targetArray);\n var indices = getIndices(opts, targetArray, d2c, len);\n var originalPointsAccessor = pointsAccessorFunction(trace.transforms, opts);\n var indexToPoints = {};\n var i, j;\n\n for(i = 0; i < arrayAttrs.length; i++) {\n var np = Lib.nestedProperty(trace, arrayAttrs[i]);\n var arrayOld = np.get();\n var arrayNew = new Array(len);\n\n for(j = 0; j < len; j++) {\n arrayNew[j] = arrayOld[indices[j]];\n }\n\n np.set(arrayNew);\n }\n\n for(j = 0; j < len; j++) {\n indexToPoints[j] = originalPointsAccessor(indices[j]);\n }\n\n opts._indexToPoints = indexToPoints;\n trace._length = len;\n};\n\nfunction getIndices(opts, targetArray, d2c, len) {\n var sortedArray = new Array(len);\n var indices = new Array(len);\n var i;\n\n for(i = 0; i < len; i++) {\n sortedArray[i] = {v: targetArray[i], i: i};\n }\n\n sortedArray.sort(getSortFunc(opts, d2c));\n\n for(i = 0; i < len; i++) {\n indices[i] = sortedArray[i].i;\n }\n\n return indices;\n}\n\nfunction getSortFunc(opts, d2c) {\n switch(opts.order) {\n case 'ascending':\n return function(a, b) {\n var ac = d2c(a.v);\n var bc = d2c(b.v);\n if(ac === BADNUM) {\n return 1;\n }\n if(bc === BADNUM) {\n return -1;\n }\n return ac - bc;\n };\n case 'descending':\n return function(a, b) {\n var ac = d2c(a.v);\n var bc = d2c(b.v);\n if(ac === BADNUM) {\n return 1;\n }\n if(bc === BADNUM) {\n return -1;\n }\n return bc - ac;\n };\n }\n}\n\n},{\"../constants/numerical\":491,\"../lib\":515,\"../plots/cartesian/axes\":566,\"./helpers\":1130}],1132:[function(_dereq_,module,exports){\n'use strict';\n\n// package version injected by `npm run preprocess`\nexports.version = '2.16.3';\n\n},{}],1133:[function(_dereq_,module,exports){\n(function (global){(function (){\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.stackgl = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof _dereq_&&_dereq_;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof _dereq_&&_dereq_,i=0;i 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},{}],2:[function(_glvis_,module,exports){\n\n},{}],3:[function(_glvis_,module,exports){\n(function (Buffer){(function (){\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\nvar base64 = _glvis_('base64-js')\nvar ieee754 = _glvis_('ieee754')\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 arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } }\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 buf.__proto__ = 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\n// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\nif (typeof Symbol !== 'undefined' && Symbol.species != null &&\n Buffer[Symbol.species] === Buffer) {\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true,\n enumerable: false,\n writable: false\n })\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 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 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\nBuffer.prototype.__proto__ = Uint8Array.prototype\nBuffer.__proto__ = 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 buf.__proto__ = Buffer.prototype\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}\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) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 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 += toHex(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 newBuf.__proto__ = Buffer.prototype\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 }\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 toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\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}).call(this)}).call(this,_glvis_(\"buffer\").Buffer)\n},{\"base64-js\":1,\"buffer\":3,\"ieee754\":4}],4:[function(_glvis_,module,exports){\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},{}],5:[function(_glvis_,module,exports){\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\n},{}],6:[function(_glvis_,module,exports){\nmodule.exports = {\n alpha_shape: _glvis_('alpha-shape'),\n convex_hull: _glvis_('convex-hull'),\n delaunay_triangulate: _glvis_('delaunay-triangulate'),\n gl_cone3d: _glvis_('gl-cone3d'),\n gl_error3d: _glvis_('gl-error3d'),\n gl_heatmap2d: _glvis_('gl-heatmap2d'),\n gl_line3d: _glvis_('gl-line3d'),\n gl_mesh3d: _glvis_('gl-mesh3d'),\n gl_plot2d: _glvis_('gl-plot2d'),\n gl_plot3d: _glvis_('gl-plot3d'),\n gl_pointcloud2d: _glvis_('gl-pointcloud2d'),\n gl_scatter3d: _glvis_('gl-scatter3d'),\n gl_select_box: _glvis_('gl-select-box'),\n gl_spikes2d: _glvis_('gl-spikes2d'),\n gl_streamtube3d: _glvis_('gl-streamtube3d'),\n gl_surface3d: _glvis_('gl-surface3d'),\n ndarray: _glvis_('ndarray'),\n ndarray_linear_interpolate: _glvis_('ndarray-linear-interpolate'),\n};\n\n},{\"alpha-shape\":12,\"convex-hull\":58,\"delaunay-triangulate\":63,\"gl-cone3d\":79,\"gl-error3d\":84,\"gl-heatmap2d\":88,\"gl-line3d\":91,\"gl-mesh3d\":112,\"gl-plot2d\":118,\"gl-plot3d\":121,\"gl-pointcloud2d\":123,\"gl-scatter3d\":128,\"gl-select-box\":130,\"gl-spikes2d\":139,\"gl-streamtube3d\":143,\"gl-surface3d\":145,\"ndarray\":259,\"ndarray-linear-interpolate\":253}],7:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createViewController\n\nvar createTurntable = _glvis_('turntable-camera-controller')\nvar createOrbit = _glvis_('orbit-camera-controller')\nvar createMatrix = _glvis_('matrix-camera-controller')\n\nfunction ViewController(controllers, mode) {\n this._controllerNames = Object.keys(controllers)\n this._controllerList = this._controllerNames.map(function(n) {\n return controllers[n]\n })\n this._mode = mode\n this._active = controllers[mode]\n if(!this._active) {\n this._mode = 'turntable'\n this._active = controllers.turntable\n }\n this.modes = this._controllerNames\n this.computedMatrix = this._active.computedMatrix\n this.computedEye = this._active.computedEye\n this.computedUp = this._active.computedUp\n this.computedCenter = this._active.computedCenter\n this.computedRadius = this._active.computedRadius\n}\n\nvar proto = ViewController.prototype\n\nproto.flush = function(a0) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].flush(a0)\n }\n}\nproto.idle = function(a0) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].idle(a0)\n }\n}\nproto.lookAt = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].lookAt(a0, a1, a2, a3)\n }\n}\nproto.rotate = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].rotate(a0, a1, a2, a3)\n }\n}\nproto.pan = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].pan(a0, a1, a2, a3)\n }\n}\nproto.translate = function(a0, a1, a2, a3) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].translate(a0, a1, a2, a3)\n }\n}\nproto.setMatrix = function(a0, a1) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].setMatrix(a0, a1)\n }\n}\nproto.setDistanceLimits = function(a0, a1) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].setDistanceLimits(a0, a1)\n }\n}\nproto.setDistance = function(a0, a1) {\n var cc = this._controllerList\n for (var i = 0; i < cc.length; ++i) {\n cc[i].setDistance(a0, a1)\n }\n}\n\nproto.recalcMatrix = function(t) {\n this._active.recalcMatrix(t)\n}\n\nproto.getDistance = function(t) {\n return this._active.getDistance(t)\n}\nproto.getDistanceLimits = function(out) {\n return this._active.getDistanceLimits(out)\n}\n\nproto.lastT = function() {\n return this._active.lastT()\n}\n\nproto.setMode = function(mode) {\n if(mode === this._mode) {\n return\n }\n var idx = this._controllerNames.indexOf(mode)\n if(idx < 0) {\n return\n }\n var prev = this._active\n var next = this._controllerList[idx]\n var lastT = Math.max(prev.lastT(), next.lastT())\n\n prev.recalcMatrix(lastT)\n next.setMatrix(lastT, prev.computedMatrix)\n\n this._active = next\n this._mode = mode\n\n //Update matrix properties\n this.computedMatrix = this._active.computedMatrix\n this.computedEye = this._active.computedEye\n this.computedUp = this._active.computedUp\n this.computedCenter = this._active.computedCenter\n this.computedRadius = this._active.computedRadius\n}\n\nproto.getMode = function() {\n return this._mode\n}\n\nfunction createViewController(options) {\n options = options || {}\n\n var eye = options.eye || [0,0,1]\n var center = options.center || [0,0,0]\n var up = options.up || [0,1,0]\n var limits = options.distanceLimits || [0, Infinity]\n var mode = options.mode || 'turntable'\n\n var turntable = createTurntable()\n var orbit = createOrbit()\n var matrix = createMatrix()\n\n turntable.setDistanceLimits(limits[0], limits[1])\n turntable.lookAt(0, eye, center, up)\n orbit.setDistanceLimits(limits[0], limits[1])\n orbit.lookAt(0, eye, center, up)\n matrix.setDistanceLimits(limits[0], limits[1])\n matrix.lookAt(0, eye, center, up)\n\n return new ViewController({\n turntable: turntable,\n orbit: orbit,\n matrix: matrix\n }, mode)\n}\n},{\"matrix-camera-controller\":245,\"orbit-camera-controller\":263,\"turntable-camera-controller\":305}],8:[function(_glvis_,module,exports){\n'use strict'\n\nvar weakMap = typeof WeakMap === 'undefined' ? _glvis_('weak-map') : WeakMap\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\n\nvar TriangleCache = new weakMap()\n\nfunction createABigTriangle(gl) {\n\n var triangleVAO = TriangleCache.get(gl)\n var handle = triangleVAO && (triangleVAO._triangleBuffer.handle || triangleVAO._triangleBuffer.buffer)\n if(!handle || !gl.isBuffer(handle)) {\n var buf = createBuffer(gl, new Float32Array([-1, -1, -1, 4, 4, -1]))\n triangleVAO = createVAO(gl, [\n { buffer: buf,\n type: gl.FLOAT,\n size: 2\n }\n ])\n triangleVAO._triangleBuffer = buf\n TriangleCache.set(gl, triangleVAO)\n }\n triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, 3)\n triangleVAO.unbind()\n}\n\nmodule.exports = createABigTriangle\n\n},{\"gl-buffer\":78,\"gl-vao\":150,\"weak-map\":313}],9:[function(_glvis_,module,exports){\nvar padLeft = _glvis_('pad-left')\n\nmodule.exports = addLineNumbers\nfunction addLineNumbers (string, start, delim) {\n start = typeof start === 'number' ? start : 1\n delim = delim || ': '\n\n var lines = string.split(/\\r?\\n/)\n var totalDigits = String(lines.length + start - 1).length\n return lines.map(function (line, i) {\n var c = i + start\n var digits = String(c).length\n var prefix = padLeft(c, totalDigits - digits)\n return prefix + delim + line\n }).join('\\n')\n}\n\n},{\"pad-left\":264}],10:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = affineHull\n\nvar orient = _glvis_('robust-orientation')\n\nfunction linearlyIndependent(points, d) {\n var nhull = new Array(d+1)\n for(var i=0; i 0) {\n a = a.ushln(shift)\n } else if(shift < 0) {\n b = b.ushln(-shift)\n }\n return rationalize(a, b)\n}\n\n},{\"./div\":17,\"./is-rat\":19,\"./lib/is-bn\":23,\"./lib/num-to-bn\":24,\"./lib/rationalize\":25,\"./lib/str-to-bn\":26}],19:[function(_glvis_,module,exports){\n'use strict'\n\nvar isBN = _glvis_('./lib/is-bn')\n\nmodule.exports = isRat\n\nfunction isRat(x) {\n return Array.isArray(x) && x.length === 2 && isBN(x[0]) && isBN(x[1])\n}\n\n},{\"./lib/is-bn\":23}],20:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\n\nmodule.exports = sign\n\nfunction sign (x) {\n return x.cmp(new BN(0))\n}\n\n},{\"bn.js\":33}],21:[function(_glvis_,module,exports){\n'use strict'\n\nvar sign = _glvis_('./bn-sign')\n\nmodule.exports = bn2num\n\n//TODO: Make this better\nfunction bn2num(b) {\n var l = b.length\n var words = b.words\n var out = 0\n if (l === 1) {\n out = words[0]\n } else if (l === 2) {\n out = words[0] + (words[1] * 0x4000000)\n } else {\n for (var i = 0; i < l; i++) {\n var w = words[i]\n out += w * Math.pow(0x4000000, i)\n }\n }\n return sign(b) * out\n}\n\n},{\"./bn-sign\":20}],22:[function(_glvis_,module,exports){\n'use strict'\n\nvar db = _glvis_('double-bits')\nvar ctz = _glvis_('bit-twiddle').countTrailingZeros\n\nmodule.exports = ctzNumber\n\n//Counts the number of trailing zeros\nfunction ctzNumber(x) {\n var l = ctz(db.lo(x))\n if(l < 32) {\n return l\n }\n var h = ctz(db.hi(x))\n if(h > 20) {\n return 52\n }\n return h + 32\n}\n\n},{\"bit-twiddle\":32,\"double-bits\":64}],23:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\n\nmodule.exports = isBN\n\n//Test if x is a bignumber\n//FIXME: obviously this is the wrong way to do it\nfunction isBN(x) {\n return x && typeof x === 'object' && Boolean(x.words)\n}\n\n},{\"bn.js\":33}],24:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\nvar db = _glvis_('double-bits')\n\nmodule.exports = num2bn\n\nfunction num2bn(x) {\n var e = db.exponent(x)\n if(e < 52) {\n return new BN(x)\n } else {\n return (new BN(x * Math.pow(2, 52-e))).ushln(e-52)\n }\n}\n\n},{\"bn.js\":33,\"double-bits\":64}],25:[function(_glvis_,module,exports){\n'use strict'\n\nvar num2bn = _glvis_('./num-to-bn')\nvar sign = _glvis_('./bn-sign')\n\nmodule.exports = rationalize\n\nfunction rationalize(numer, denom) {\n var snumer = sign(numer)\n var sdenom = sign(denom)\n if(snumer === 0) {\n return [num2bn(0), num2bn(1)]\n }\n if(sdenom === 0) {\n return [num2bn(0), num2bn(0)]\n }\n if(sdenom < 0) {\n numer = numer.neg()\n denom = denom.neg()\n }\n var d = numer.gcd(denom)\n if(d.cmpn(1)) {\n return [ numer.div(d), denom.div(d) ]\n }\n return [ numer, denom ]\n}\n\n},{\"./bn-sign\":20,\"./num-to-bn\":24}],26:[function(_glvis_,module,exports){\n'use strict'\n\nvar BN = _glvis_('bn.js')\n\nmodule.exports = str2BN\n\nfunction str2BN(x) {\n return new BN(x)\n}\n\n},{\"bn.js\":33}],27:[function(_glvis_,module,exports){\n'use strict'\n\nvar rationalize = _glvis_('./lib/rationalize')\n\nmodule.exports = mul\n\nfunction mul(a, b) {\n return rationalize(a[0].mul(b[0]), a[1].mul(b[1]))\n}\n\n},{\"./lib/rationalize\":25}],28:[function(_glvis_,module,exports){\n'use strict'\n\nvar bnsign = _glvis_('./lib/bn-sign')\n\nmodule.exports = sign\n\nfunction sign(x) {\n return bnsign(x[0]) * bnsign(x[1])\n}\n\n},{\"./lib/bn-sign\":20}],29:[function(_glvis_,module,exports){\n'use strict'\n\nvar rationalize = _glvis_('./lib/rationalize')\n\nmodule.exports = sub\n\nfunction sub(a, b) {\n return rationalize(a[0].mul(b[1]).sub(a[1].mul(b[0])), a[1].mul(b[1]))\n}\n\n},{\"./lib/rationalize\":25}],30:[function(_glvis_,module,exports){\n'use strict'\n\nvar bn2num = _glvis_('./lib/bn-to-num')\nvar ctz = _glvis_('./lib/ctz')\n\nmodule.exports = roundRat\n\n// Round a rational to the closest float\nfunction roundRat (f) {\n var a = f[0]\n var b = f[1]\n if (a.cmpn(0) === 0) {\n return 0\n }\n var h = a.abs().divmod(b.abs())\n var iv = h.div\n var x = bn2num(iv)\n var ir = h.mod\n var sgn = (a.negative !== b.negative) ? -1 : 1\n if (ir.cmpn(0) === 0) {\n return sgn * x\n }\n if (x) {\n var s = ctz(x) + 4\n var y = bn2num(ir.ushln(s).divRound(b))\n return sgn * (x + y * Math.pow(2, -s))\n } else {\n var ybits = b.bitLength() - ir.bitLength() + 53\n var y = bn2num(ir.ushln(ybits).divRound(b))\n if (ybits < 1023) {\n return sgn * y * Math.pow(2, -ybits)\n }\n y *= Math.pow(2, -1023)\n return sgn * y * Math.pow(2, 1023 - ybits)\n }\n}\n\n},{\"./lib/bn-to-num\":21,\"./lib/ctz\":22}],31:[function(_glvis_,module,exports){\n\"use strict\"\n\n// (a, y, c, l, h) = (array, y[, cmp, lo, hi])\n\nfunction ge(a, y, c, l, h) {\n var i = h + 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p >= 0) { i = m; h = m - 1 } else { l = m + 1 }\n }\n return i;\n};\n\nfunction gt(a, y, c, l, h) {\n var i = h + 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p > 0) { i = m; h = m - 1 } else { l = m + 1 }\n }\n return i;\n};\n\nfunction lt(a, y, c, l, h) {\n var i = l - 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p < 0) { i = m; l = m + 1 } else { h = m - 1 }\n }\n return i;\n};\n\nfunction le(a, y, c, l, h) {\n var i = l - 1;\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p <= 0) { i = m; l = m + 1 } else { h = m - 1 }\n }\n return i;\n};\n\nfunction eq(a, y, c, l, h) {\n while (l <= h) {\n var m = (l + h) >>> 1, x = a[m];\n var p = (c !== undefined) ? c(x, y) : (x - y);\n if (p === 0) { return m }\n if (p <= 0) { l = m + 1 } else { h = m - 1 }\n }\n return -1;\n};\n\nfunction norm(a, y, c, l, h, f) {\n if (typeof c === 'function') {\n return f(a, y, c, (l === undefined) ? 0 : l | 0, (h === undefined) ? a.length - 1 : h | 0);\n }\n return f(a, y, undefined, (c === undefined) ? 0 : c | 0, (l === undefined) ? a.length - 1 : l | 0);\n}\n\nmodule.exports = {\n ge: function(a, y, c, l, h) { return norm(a, y, c, l, h, ge)},\n gt: function(a, y, c, l, h) { return norm(a, y, c, l, h, gt)},\n lt: function(a, y, c, l, h) { return norm(a, y, c, l, h, lt)},\n le: function(a, y, c, l, h) { return norm(a, y, c, l, h, le)},\n eq: function(a, y, c, l, h) { return norm(a, y, c, l, h, eq)}\n}\n\n},{}],32:[function(_glvis_,module,exports){\n/**\n * Bit twiddling hacks for JavaScript.\n *\n * Author: Mikola Lysenko\n *\n * Ported from Stanford bit twiddling hack library:\n * http://graphics.stanford.edu/~seander/bithacks.html\n */\n\n\"use strict\"; \"use restrict\";\n\n//Number of bits in an integer\nvar INT_BITS = 32;\n\n//Constants\nexports.INT_BITS = INT_BITS;\nexports.INT_MAX = 0x7fffffff;\nexports.INT_MIN = -1<<(INT_BITS-1);\n\n//Returns -1, 0, +1 depending on sign of x\nexports.sign = function(v) {\n return (v > 0) - (v < 0);\n}\n\n//Computes absolute value of integer\nexports.abs = function(v) {\n var mask = v >> (INT_BITS-1);\n return (v ^ mask) - mask;\n}\n\n//Computes minimum of integers x and y\nexports.min = function(x, y) {\n return y ^ ((x ^ y) & -(x < y));\n}\n\n//Computes maximum of integers x and y\nexports.max = function(x, y) {\n return x ^ ((x ^ y) & -(x < y));\n}\n\n//Checks if a number is a power of two\nexports.isPow2 = function(v) {\n return !(v & (v-1)) && (!!v);\n}\n\n//Computes log base 2 of v\nexports.log2 = function(v) {\n var r, shift;\n r = (v > 0xFFFF) << 4; v >>>= r;\n shift = (v > 0xFF ) << 3; v >>>= shift; r |= shift;\n shift = (v > 0xF ) << 2; v >>>= shift; r |= shift;\n shift = (v > 0x3 ) << 1; v >>>= shift; r |= shift;\n return r | (v >> 1);\n}\n\n//Computes log base 10 of v\nexports.log10 = function(v) {\n return (v >= 1000000000) ? 9 : (v >= 100000000) ? 8 : (v >= 10000000) ? 7 :\n (v >= 1000000) ? 6 : (v >= 100000) ? 5 : (v >= 10000) ? 4 :\n (v >= 1000) ? 3 : (v >= 100) ? 2 : (v >= 10) ? 1 : 0;\n}\n\n//Counts number of bits\nexports.popCount = function(v) {\n v = v - ((v >>> 1) & 0x55555555);\n v = (v & 0x33333333) + ((v >>> 2) & 0x33333333);\n return ((v + (v >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;\n}\n\n//Counts number of trailing zeros\nfunction countTrailingZeros(v) {\n var c = 32;\n v &= -v;\n if (v) c--;\n if (v & 0x0000FFFF) c -= 16;\n if (v & 0x00FF00FF) c -= 8;\n if (v & 0x0F0F0F0F) c -= 4;\n if (v & 0x33333333) c -= 2;\n if (v & 0x55555555) c -= 1;\n return c;\n}\nexports.countTrailingZeros = countTrailingZeros;\n\n//Rounds to next power of 2\nexports.nextPow2 = function(v) {\n v += v === 0;\n --v;\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v + 1;\n}\n\n//Rounds down to previous power of 2\nexports.prevPow2 = function(v) {\n v |= v >>> 1;\n v |= v >>> 2;\n v |= v >>> 4;\n v |= v >>> 8;\n v |= v >>> 16;\n return v - (v>>>1);\n}\n\n//Computes parity of word\nexports.parity = function(v) {\n v ^= v >>> 16;\n v ^= v >>> 8;\n v ^= v >>> 4;\n v &= 0xf;\n return (0x6996 >>> v) & 1;\n}\n\nvar REVERSE_TABLE = new Array(256);\n\n(function(tab) {\n for(var i=0; i<256; ++i) {\n var v = i, r = i, s = 7;\n for (v >>>= 1; v; v >>>= 1) {\n r <<= 1;\n r |= v & 1;\n --s;\n }\n tab[i] = (r << s) & 0xff;\n }\n})(REVERSE_TABLE);\n\n//Reverse bits in a 32 bit word\nexports.reverse = function(v) {\n return (REVERSE_TABLE[ v & 0xff] << 24) |\n (REVERSE_TABLE[(v >>> 8) & 0xff] << 16) |\n (REVERSE_TABLE[(v >>> 16) & 0xff] << 8) |\n REVERSE_TABLE[(v >>> 24) & 0xff];\n}\n\n//Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes\nexports.interleave2 = function(x, y) {\n x &= 0xFFFF;\n x = (x | (x << 8)) & 0x00FF00FF;\n x = (x | (x << 4)) & 0x0F0F0F0F;\n x = (x | (x << 2)) & 0x33333333;\n x = (x | (x << 1)) & 0x55555555;\n\n y &= 0xFFFF;\n y = (y | (y << 8)) & 0x00FF00FF;\n y = (y | (y << 4)) & 0x0F0F0F0F;\n y = (y | (y << 2)) & 0x33333333;\n y = (y | (y << 1)) & 0x55555555;\n\n return x | (y << 1);\n}\n\n//Extracts the nth interleaved component\nexports.deinterleave2 = function(v, n) {\n v = (v >>> n) & 0x55555555;\n v = (v | (v >>> 1)) & 0x33333333;\n v = (v | (v >>> 2)) & 0x0F0F0F0F;\n v = (v | (v >>> 4)) & 0x00FF00FF;\n v = (v | (v >>> 16)) & 0x000FFFF;\n return (v << 16) >> 16;\n}\n\n\n//Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes\nexports.interleave3 = function(x, y, z) {\n x &= 0x3FF;\n x = (x | (x<<16)) & 4278190335;\n x = (x | (x<<8)) & 251719695;\n x = (x | (x<<4)) & 3272356035;\n x = (x | (x<<2)) & 1227133513;\n\n y &= 0x3FF;\n y = (y | (y<<16)) & 4278190335;\n y = (y | (y<<8)) & 251719695;\n y = (y | (y<<4)) & 3272356035;\n y = (y | (y<<2)) & 1227133513;\n x |= (y << 1);\n \n z &= 0x3FF;\n z = (z | (z<<16)) & 4278190335;\n z = (z | (z<<8)) & 251719695;\n z = (z | (z<<4)) & 3272356035;\n z = (z | (z<<2)) & 1227133513;\n \n return x | (z << 2);\n}\n\n//Extracts nth interleaved component of a 3-tuple\nexports.deinterleave3 = function(v, n) {\n v = (v >>> n) & 1227133513;\n v = (v | (v>>>2)) & 3272356035;\n v = (v | (v>>>4)) & 251719695;\n v = (v | (v>>>8)) & 4278190335;\n v = (v | (v>>>16)) & 0x3FF;\n return (v<<22)>>22;\n}\n\n//Computes next combination in colexicographic order (this is mistakenly called nextPermutation on the bit twiddling hacks page)\nexports.nextCombination = function(v) {\n var t = v | (v - 1);\n return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1));\n}\n\n\n},{}],33:[function(_glvis_,module,exports){\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 = _glvis_('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\n},{\"buffer\":2}],34:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boundary\n\nfunction boundary (cells) {\n var i, j, k\n var n = cells.length\n var sz = 0\n for (i = 0; i < n; ++i) {\n sz += cells[i].length\n }\n var result = new Array(sz)\n var ptr = 0\n for (i = 0; i < n; ++i) {\n var c = cells[i]\n var d = c.length\n for (j = 0; j < d; ++j) {\n var b = result[ptr++] = new Array(d - 1)\n var p = 0\n for (k = 0; k < d; ++k) {\n if (k === j) {\n continue\n }\n b[p++] = c[k]\n }\n if (j & 1) {\n var tmp = b[1]\n b[1] = b[0]\n b[0] = tmp\n }\n }\n }\n return result\n}\n\n},{}],35:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boxIntersectWrapper\n\nvar pool = _glvis_('typedarray-pool')\nvar sweep = _glvis_('./lib/sweep')\nvar boxIntersectIter = _glvis_('./lib/intersect')\n\nfunction boxEmpty(d, box) {\n for(var j=0; j>>1\n if(d <= 0) {\n return\n }\n\n var retval\n\n //Convert red boxes\n var redList = pool.mallocDouble(2*d*n)\n var redIds = pool.mallocInt32(n)\n n = convertBoxes(red, d, redList, redIds)\n\n if(n > 0) {\n if(d === 1 && full) {\n //Special case: 1d complete\n sweep.init(n)\n retval = sweep.sweepComplete(\n d, visit,\n 0, n, redList, redIds,\n 0, n, redList, redIds)\n } else {\n\n //Convert blue boxes\n var blueList = pool.mallocDouble(2*d*m)\n var blueIds = pool.mallocInt32(m)\n m = convertBoxes(blue, d, blueList, blueIds)\n\n if(m > 0) {\n sweep.init(n+m)\n\n if(d === 1) {\n //Special case: 1d bipartite\n retval = sweep.sweepBipartite(\n d, visit,\n 0, n, redList, redIds,\n 0, m, blueList, blueIds)\n } else {\n //General case: d>1\n retval = boxIntersectIter(\n d, visit, full,\n n, redList, redIds,\n m, blueList, blueIds)\n }\n\n pool.free(blueList)\n pool.free(blueIds)\n }\n }\n\n pool.free(redList)\n pool.free(redIds)\n }\n\n return retval\n}\n\n\nvar RESULT\n\nfunction appendItem(i,j) {\n RESULT.push([i,j])\n}\n\nfunction intersectFullArray(x) {\n RESULT = []\n boxIntersect(x, x, appendItem, true)\n return RESULT\n}\n\nfunction intersectBipartiteArray(x, y) {\n RESULT = []\n boxIntersect(x, y, appendItem, false)\n return RESULT\n}\n\n//User-friendly wrapper, handle full input and no-visitor cases\nfunction boxIntersectWrapper(arg0, arg1, arg2) {\n switch(arguments.length) {\n case 1:\n return intersectFullArray(arg0)\n case 2:\n if(typeof arg1 === 'function') {\n return boxIntersect(arg0, arg0, arg1, true)\n } else {\n return intersectBipartiteArray(arg0, arg1)\n }\n case 3:\n return boxIntersect(arg0, arg1, arg2, false)\n default:\n throw new Error('box-intersect: Invalid arguments')\n }\n}\n},{\"./lib/intersect\":37,\"./lib/sweep\":41,\"typedarray-pool\":308}],36:[function(_glvis_,module,exports){\n'use strict'\n\nfunction full() {\n function bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n Q: for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], y1 = bb[ax + bp + d], yi = bi[j]\n if (y1 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceBlueFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], y1 = bb[ax + bp + d], yi = bi[j]\n Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n if (y1 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n if (re - rs > be - bs) {\n return bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n else {\n return bruteForceBlueFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n }\n return bruteForceFull\n}\n\nfunction partial() {\n function bruteForceRedFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n Q: for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n if (y0 <= x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(yi, xi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceRed(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n Q: for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n if (y0 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceBlueFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n if (y0 <= x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(yi, xi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForceBlue(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) {\n var es = 2 * d\n for (var j = bs, bp = es * bs; j < be; ++j, bp += es) {\n var y0 = bb[ax + bp], yi = bi[j]\n Q: for (var i = rs, rp = es * rs; i < re; ++i, rp += es) {\n var x0 = rb[ax + rp], x1 = rb[ax + rp + d], xi = ri[i]\n if (y0 < x0 || x1 < y0) continue\n for (var k = ax + 1; k < d; ++k) {\n var r0 = rb[k + rp], r1 = rb[k + d + rp], b0 = bb[k + bp], b1 = bb[k + d + bp]\n if (r1 < b0 || b1 < r0) continue Q\n }\n var rv = vv(xi, yi)\n if (rv !== void 0) return rv\n }\n }\n }\n function bruteForcePartial(d, ax, vv, fp, rs, re, rb, ri, bs, be, bb, bi) {\n if (re - rs > be - bs) {\n if (fp) {\n return bruteForceRedFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n else {\n return bruteForceRed(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n }\n else {\n if (fp) {\n return bruteForceBlueFlip(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n else {\n return bruteForceBlue(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi)\n }\n }\n }\n return bruteForcePartial\n}\n\nfunction bruteForcePlanner(isFull) {\n return isFull ? full() : partial()\n\n}\n\nexports.partial = bruteForcePlanner(false)\nexports.full = bruteForcePlanner(true)\n},{}],37:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boxIntersectIter\n\nvar pool = _glvis_('typedarray-pool')\nvar bits = _glvis_('bit-twiddle')\nvar bruteForce = _glvis_('./brute')\nvar bruteForcePartial = bruteForce.partial\nvar bruteForceFull = bruteForce.full\nvar sweep = _glvis_('./sweep')\nvar findMedian = _glvis_('./median')\nvar genPartition = _glvis_('./partition')\n\n//Twiddle parameters\nvar BRUTE_FORCE_CUTOFF = 128 //Cut off for brute force search\nvar SCAN_CUTOFF = (1<<22) //Cut off for two way scan\nvar SCAN_COMPLETE_CUTOFF = (1<<22)\n\n//Partition functions\nvar partitionInteriorContainsInterval = genPartition(\n '!(lo>=p0)&&!(p1>=hi)')\n\nvar partitionStartEqual = genPartition(\n 'lo===p0')\n\nvar partitionStartLessThan = genPartition(\n 'lo 0) {\n top -= 1\n\n var iptr = top * IFRAME_SIZE\n var axis = BOX_ISTACK[iptr]\n var redStart = BOX_ISTACK[iptr+1]\n var redEnd = BOX_ISTACK[iptr+2]\n var blueStart = BOX_ISTACK[iptr+3]\n var blueEnd = BOX_ISTACK[iptr+4]\n var state = BOX_ISTACK[iptr+5]\n\n var dptr = top * DFRAME_SIZE\n var lo = BOX_DSTACK[dptr]\n var hi = BOX_DSTACK[dptr+1]\n\n //Unpack state info\n var flip = (state & 1)\n var full = !!(state & 16)\n\n //Unpack indices\n var red = xBoxes\n var redIndex = xIndex\n var blue = yBoxes\n var blueIndex = yIndex\n if(flip) {\n red = yBoxes\n redIndex = yIndex\n blue = xBoxes\n blueIndex = xIndex\n }\n\n if(state & 2) {\n redEnd = partitionStartLessThan(\n d, axis,\n redStart, redEnd, red, redIndex,\n hi)\n if(redStart >= redEnd) {\n continue\n }\n }\n if(state & 4) {\n redStart = partitionEndLessThanEqual(\n d, axis,\n redStart, redEnd, red, redIndex,\n lo)\n if(redStart >= redEnd) {\n continue\n }\n }\n\n var redCount = redEnd - redStart\n var blueCount = blueEnd - blueStart\n\n if(full) {\n if(d * redCount * (redCount + blueCount) < SCAN_COMPLETE_CUTOFF) {\n retval = sweep.scanComplete(\n d, axis, visit,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n continue\n }\n } else {\n if(d * Math.min(redCount, blueCount) < BRUTE_FORCE_CUTOFF) {\n //If input small, then use brute force\n retval = bruteForcePartial(\n d, axis, visit, flip,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n continue\n } else if(d * redCount * blueCount < SCAN_CUTOFF) {\n //If input medium sized, then use sweep and prune\n retval = sweep.scanBipartite(\n d, axis, visit, flip,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n continue\n }\n }\n\n //First, find all red intervals whose interior contains (lo,hi)\n var red0 = partitionInteriorContainsInterval(\n d, axis,\n redStart, redEnd, red, redIndex,\n lo, hi)\n\n //Lower dimensional case\n if(redStart < red0) {\n\n if(d * (red0 - redStart) < BRUTE_FORCE_CUTOFF) {\n //Special case for small inputs: use brute force\n retval = bruteForceFull(\n d, axis+1, visit,\n redStart, red0, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n } else if(axis === d-2) {\n if(flip) {\n retval = sweep.sweepBipartite(\n d, visit,\n blueStart, blueEnd, blue, blueIndex,\n redStart, red0, red, redIndex)\n } else {\n retval = sweep.sweepBipartite(\n d, visit,\n redStart, red0, red, redIndex,\n blueStart, blueEnd, blue, blueIndex)\n }\n if(retval !== void 0) {\n return retval\n }\n } else {\n iterPush(top++,\n axis+1,\n redStart, red0,\n blueStart, blueEnd,\n flip,\n -Infinity, Infinity)\n iterPush(top++,\n axis+1,\n blueStart, blueEnd,\n redStart, red0,\n flip^1,\n -Infinity, Infinity)\n }\n }\n\n //Divide and conquer phase\n if(red0 < redEnd) {\n\n //Cut blue into 3 parts:\n //\n // Points < mid point\n // Points = mid point\n // Points > mid point\n //\n var blue0 = findMedian(\n d, axis,\n blueStart, blueEnd, blue, blueIndex)\n var mid = blue[elemSize * blue0 + axis]\n var blue1 = partitionStartEqual(\n d, axis,\n blue0, blueEnd, blue, blueIndex,\n mid)\n\n //Right case\n if(blue1 < blueEnd) {\n iterPush(top++,\n axis,\n red0, redEnd,\n blue1, blueEnd,\n (flip|4) + (full ? 16 : 0),\n mid, hi)\n }\n\n //Left case\n if(blueStart < blue0) {\n iterPush(top++,\n axis,\n red0, redEnd,\n blueStart, blue0,\n (flip|2) + (full ? 16 : 0),\n lo, mid)\n }\n\n //Center case (the hard part)\n if(blue0 + 1 === blue1) {\n //Optimization: Range with exactly 1 point, use a brute force scan\n if(full) {\n retval = onePointFull(\n d, axis, visit,\n red0, redEnd, red, redIndex,\n blue0, blue, blueIndex[blue0])\n } else {\n retval = onePointPartial(\n d, axis, visit, flip,\n red0, redEnd, red, redIndex,\n blue0, blue, blueIndex[blue0])\n }\n if(retval !== void 0) {\n return retval\n }\n } else if(blue0 < blue1) {\n var red1\n if(full) {\n //If full intersection, need to handle special case\n red1 = partitionContainsPoint(\n d, axis,\n red0, redEnd, red, redIndex,\n mid)\n if(red0 < red1) {\n var redX = partitionStartEqual(\n d, axis,\n red0, red1, red, redIndex,\n mid)\n if(axis === d-2) {\n //Degenerate sweep intersection:\n // [red0, redX] with [blue0, blue1]\n if(red0 < redX) {\n retval = sweep.sweepComplete(\n d, visit,\n red0, redX, red, redIndex,\n blue0, blue1, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n }\n\n //Normal sweep intersection:\n // [redX, red1] with [blue0, blue1]\n if(redX < red1) {\n retval = sweep.sweepBipartite(\n d, visit,\n redX, red1, red, redIndex,\n blue0, blue1, blue, blueIndex)\n if(retval !== void 0) {\n return retval\n }\n }\n } else {\n if(red0 < redX) {\n iterPush(top++,\n axis+1,\n red0, redX,\n blue0, blue1,\n 16,\n -Infinity, Infinity)\n }\n if(redX < red1) {\n iterPush(top++,\n axis+1,\n redX, red1,\n blue0, blue1,\n 0,\n -Infinity, Infinity)\n iterPush(top++,\n axis+1,\n blue0, blue1,\n redX, red1,\n 1,\n -Infinity, Infinity)\n }\n }\n }\n } else {\n if(flip) {\n red1 = partitionContainsPointProper(\n d, axis,\n red0, redEnd, red, redIndex,\n mid)\n } else {\n red1 = partitionContainsPoint(\n d, axis,\n red0, redEnd, red, redIndex,\n mid)\n }\n if(red0 < red1) {\n if(axis === d-2) {\n if(flip) {\n retval = sweep.sweepBipartite(\n d, visit,\n blue0, blue1, blue, blueIndex,\n red0, red1, red, redIndex)\n } else {\n retval = sweep.sweepBipartite(\n d, visit,\n red0, red1, red, redIndex,\n blue0, blue1, blue, blueIndex)\n }\n } else {\n iterPush(top++,\n axis+1,\n red0, red1,\n blue0, blue1,\n flip,\n -Infinity, Infinity)\n iterPush(top++,\n axis+1,\n blue0, blue1,\n red0, red1,\n flip^1,\n -Infinity, Infinity)\n }\n }\n }\n }\n }\n }\n}\n},{\"./brute\":36,\"./median\":38,\"./partition\":39,\"./sweep\":41,\"bit-twiddle\":32,\"typedarray-pool\":308}],38:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = findMedian\n\nvar genPartition = _glvis_('./partition')\n\nvar partitionStartLessThan = genPartition('lostart && boxes[ptr+axis] > x;\n --j, ptr-=elemSize) {\n //Swap\n var aPtr = ptr\n var bPtr = ptr+elemSize\n for(var k=0; k>> 1)\n var elemSize = 2*d\n var pivot = mid\n var value = boxes[elemSize*mid+axis]\n\n while(lo < hi) {\n if(hi - lo < PARTITION_THRESHOLD) {\n insertionSort(d, axis, lo, hi, boxes, ids)\n value = boxes[elemSize*mid+axis]\n break\n }\n\n //Select pivot using median-of-3\n var count = hi - lo\n var pivot0 = (Math.random()*count+lo)|0\n var value0 = boxes[elemSize*pivot0 + axis]\n var pivot1 = (Math.random()*count+lo)|0\n var value1 = boxes[elemSize*pivot1 + axis]\n var pivot2 = (Math.random()*count+lo)|0\n var value2 = boxes[elemSize*pivot2 + axis]\n if(value0 <= value1) {\n if(value2 >= value1) {\n pivot = pivot1\n value = value1\n } else if(value0 >= value2) {\n pivot = pivot0\n value = value0\n } else {\n pivot = pivot2\n value = value2\n }\n } else {\n if(value1 >= value2) {\n pivot = pivot1\n value = value1\n } else if(value2 >= value0) {\n pivot = pivot0\n value = value0\n } else {\n pivot = pivot2\n value = value2\n }\n }\n\n //Swap pivot to end of array\n var aPtr = elemSize * (hi-1)\n var bPtr = elemSize * pivot\n for(var i=0; i=p0)&&!(p1>=hi)': lo_lessThan_p0_and_p1_lessThan_hi\n}\n\nfunction genPartition(predicate) {\n return P2F[predicate]\n}\n\n// lo===p0\nfunction lo_equal_p0(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var lo = e[k + n];\n if (lo === p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n } var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo p; ++p, k += j) {\n var lo = e[k + n];\n if (lo < p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n } var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo<=p0\nfunction lo_lessOrEqual_p0(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var hi = e[k + o];\n if (hi <= p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n } return m\n}\n\n// hi<=p0\nfunction hi_lessOrEqual_p0(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var hi = e[k + o];\n if (hi <= p0) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo<=p0&&p0<=hi\nfunction lo_lassOrEqual_p0_and_p0_lessOrEqual_hi(a, b, c, d, e, f, p0) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var lo = e[k + n], hi = e[k + o];\n if (lo <= p0 && p0 <= hi) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// lo p; ++p, k += j) {\n var lo = e[k + n], hi = e[k + o];\n if (lo < p0 && p0 <= hi) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n// !(lo>=p0)&&!(p1>=hi)\nfunction lo_lessThan_p0_and_p1_lessThan_hi(a, b, c, d, e, f, p0, p1) {\n for (var j = 2 * a, k = j * c, l = k, m = c, n = b, o = a + b, p = c; d > p; ++p, k += j) {\n var lo = e[k + n], hi = e[k + o];\n if (!(lo >= p0) && !(p1 >= hi)) if (m === p) m += 1, l += j; else {\n for (var s = 0; j > s; ++s) {\n var t = e[k + s]; e[k + s] = e[l], e[l++] = t\n }\n var u = f[p]; f[p] = f[m], f[m++] = u\n }\n }\n return m\n}\n\n},{}],40:[function(_glvis_,module,exports){\n'use strict';\n\n//This code is extracted from ndarray-sort\n//It is inlined here as a temporary workaround\n\nmodule.exports = wrapper;\n\nvar INSERT_SORT_CUTOFF = 32\n\nfunction wrapper(data, n0) {\n if (n0 <= 4*INSERT_SORT_CUTOFF) {\n insertionSort(0, n0 - 1, data);\n } else {\n quickSort(0, n0 - 1, data);\n }\n}\n\nfunction insertionSort(left, right, data) {\n var ptr = 2*(left+1)\n for(var i=left+1; i<=right; ++i) {\n var a = data[ptr++]\n var b = data[ptr++]\n var j = i\n var jptr = ptr-2\n while(j-- > left) {\n var x = data[jptr-2]\n var y = data[jptr-1]\n if(x < a) {\n break\n } else if(x === a && y < b) {\n break\n }\n data[jptr] = x\n data[jptr+1] = y\n jptr -= 2\n }\n data[jptr] = a\n data[jptr+1] = b\n }\n}\n\nfunction swap(i, j, data) {\n i *= 2\n j *= 2\n var x = data[i]\n var y = data[i+1]\n data[i] = data[j]\n data[i+1] = data[j+1]\n data[j] = x\n data[j+1] = y\n}\n\nfunction move(i, j, data) {\n i *= 2\n j *= 2\n data[i] = data[j]\n data[i+1] = data[j+1]\n}\n\nfunction rotate(i, j, k, data) {\n i *= 2\n j *= 2\n k *= 2\n var x = data[i]\n var y = data[i+1]\n data[i] = data[j]\n data[i+1] = data[j+1]\n data[j] = data[k]\n data[j+1] = data[k+1]\n data[k] = x\n data[k+1] = y\n}\n\nfunction shufflePivot(i, j, px, py, data) {\n i *= 2\n j *= 2\n data[i] = data[j]\n data[j] = px\n data[i+1] = data[j+1]\n data[j+1] = py\n}\n\nfunction compare(i, j, data) {\n i *= 2\n j *= 2\n var x = data[i],\n y = data[j]\n if(x < y) {\n return false\n } else if(x === y) {\n return data[i+1] > data[j+1]\n }\n return true\n}\n\nfunction comparePivot(i, y, b, data) {\n i *= 2\n var x = data[i]\n if(x < y) {\n return true\n } else if(x === y) {\n return data[i+1] < b\n }\n return false\n}\n\nfunction quickSort(left, right, data) {\n var sixth = (right - left + 1) / 6 | 0, \n index1 = left + sixth, \n index5 = right - sixth, \n index3 = left + right >> 1, \n index2 = index3 - sixth, \n index4 = index3 + sixth, \n el1 = index1, \n el2 = index2, \n el3 = index3, \n el4 = index4, \n el5 = index5, \n less = left + 1, \n great = right - 1, \n tmp = 0\n if(compare(el1, el2, data)) {\n tmp = el1\n el1 = el2\n el2 = tmp\n }\n if(compare(el4, el5, data)) {\n tmp = el4\n el4 = el5\n el5 = tmp\n }\n if(compare(el1, el3, data)) {\n tmp = el1\n el1 = el3\n el3 = tmp\n }\n if(compare(el2, el3, data)) {\n tmp = el2\n el2 = el3\n el3 = tmp\n }\n if(compare(el1, el4, data)) {\n tmp = el1\n el1 = el4\n el4 = tmp\n }\n if(compare(el3, el4, data)) {\n tmp = el3\n el3 = el4\n el4 = tmp\n }\n if(compare(el2, el5, data)) {\n tmp = el2\n el2 = el5\n el5 = tmp\n }\n if(compare(el2, el3, data)) {\n tmp = el2\n el2 = el3\n el3 = tmp\n }\n if(compare(el4, el5, data)) {\n tmp = el4\n el4 = el5\n el5 = tmp\n }\n\n var pivot1X = data[2*el2]\n var pivot1Y = data[2*el2+1]\n var pivot2X = data[2*el4]\n var pivot2Y = data[2*el4+1]\n\n var ptr0 = 2 * el1;\n var ptr2 = 2 * el3;\n var ptr4 = 2 * el5;\n var ptr5 = 2 * index1;\n var ptr6 = 2 * index3;\n var ptr7 = 2 * index5;\n for (var i1 = 0; i1 < 2; ++i1) {\n var x = data[ptr0+i1];\n var y = data[ptr2+i1];\n var z = data[ptr4+i1];\n data[ptr5+i1] = x;\n data[ptr6+i1] = y;\n data[ptr7+i1] = z;\n }\n\n move(index2, left, data)\n move(index4, right, data)\n for (var k = less; k <= great; ++k) {\n if (comparePivot(k, pivot1X, pivot1Y, data)) {\n if (k !== less) {\n swap(k, less, data)\n }\n ++less;\n } else {\n if (!comparePivot(k, pivot2X, pivot2Y, data)) {\n while (true) {\n if (!comparePivot(great, pivot2X, pivot2Y, data)) {\n if (--great < k) {\n break;\n }\n continue;\n } else {\n if (comparePivot(great, pivot1X, pivot1Y, data)) {\n rotate(k, less, great, data)\n ++less;\n --great;\n } else {\n swap(k, great, data)\n --great;\n }\n break;\n }\n }\n }\n }\n }\n shufflePivot(left, less-1, pivot1X, pivot1Y, data)\n shufflePivot(right, great+1, pivot2X, pivot2Y, data)\n if (less - 2 - left <= INSERT_SORT_CUTOFF) {\n insertionSort(left, less - 2, data);\n } else {\n quickSort(left, less - 2, data);\n }\n if (right - (great + 2) <= INSERT_SORT_CUTOFF) {\n insertionSort(great + 2, right, data);\n } else {\n quickSort(great + 2, right, data);\n }\n if (great - less <= INSERT_SORT_CUTOFF) {\n insertionSort(less, great, data);\n } else {\n quickSort(less, great, data);\n }\n}\n},{}],41:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = {\n init: sqInit,\n sweepBipartite: sweepBipartite,\n sweepComplete: sweepComplete,\n scanBipartite: scanBipartite,\n scanComplete: scanComplete\n}\n\nvar pool = _glvis_('typedarray-pool')\nvar bits = _glvis_('bit-twiddle')\nvar isort = _glvis_('./sort')\n\n//Flag for blue\nvar BLUE_FLAG = (1<<28)\n\n//1D sweep event queue stuff (use pool to save space)\nvar INIT_CAPACITY = 1024\nvar RED_SWEEP_QUEUE = pool.mallocInt32(INIT_CAPACITY)\nvar RED_SWEEP_INDEX = pool.mallocInt32(INIT_CAPACITY)\nvar BLUE_SWEEP_QUEUE = pool.mallocInt32(INIT_CAPACITY)\nvar BLUE_SWEEP_INDEX = pool.mallocInt32(INIT_CAPACITY)\nvar COMMON_SWEEP_QUEUE = pool.mallocInt32(INIT_CAPACITY)\nvar COMMON_SWEEP_INDEX = pool.mallocInt32(INIT_CAPACITY)\nvar SWEEP_EVENTS = pool.mallocDouble(INIT_CAPACITY * 8)\n\n//Reserves memory for the 1D sweep data structures\nfunction sqInit(count) {\n var rcount = bits.nextPow2(count)\n if(RED_SWEEP_QUEUE.length < rcount) {\n pool.free(RED_SWEEP_QUEUE)\n RED_SWEEP_QUEUE = pool.mallocInt32(rcount)\n }\n if(RED_SWEEP_INDEX.length < rcount) {\n pool.free(RED_SWEEP_INDEX)\n RED_SWEEP_INDEX = pool.mallocInt32(rcount)\n }\n if(BLUE_SWEEP_QUEUE.length < rcount) {\n pool.free(BLUE_SWEEP_QUEUE)\n BLUE_SWEEP_QUEUE = pool.mallocInt32(rcount)\n }\n if(BLUE_SWEEP_INDEX.length < rcount) {\n pool.free(BLUE_SWEEP_INDEX)\n BLUE_SWEEP_INDEX = pool.mallocInt32(rcount)\n }\n if(COMMON_SWEEP_QUEUE.length < rcount) {\n pool.free(COMMON_SWEEP_QUEUE)\n COMMON_SWEEP_QUEUE = pool.mallocInt32(rcount)\n }\n if(COMMON_SWEEP_INDEX.length < rcount) {\n pool.free(COMMON_SWEEP_INDEX)\n COMMON_SWEEP_INDEX = pool.mallocInt32(rcount)\n }\n var eventLength = 8 * rcount\n if(SWEEP_EVENTS.length < eventLength) {\n pool.free(SWEEP_EVENTS)\n SWEEP_EVENTS = pool.mallocDouble(eventLength)\n }\n}\n\n//Remove an item from the active queue in O(1)\nfunction sqPop(queue, index, count, item) {\n var idx = index[item]\n var top = queue[count-1]\n queue[idx] = top\n index[top] = idx\n}\n\n//Insert an item into the active queue in O(1)\nfunction sqPush(queue, index, count, item) {\n queue[count] = item\n index[item] = count\n}\n\n//Recursion base case: use 1D sweep algorithm\nfunction sweepBipartite(\n d, visit,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex) {\n\n //store events as pairs [coordinate, idx]\n //\n // red create: -(idx+1)\n // red destroy: idx\n // blue create: -(idx+BLUE_FLAG)\n // blue destroy: idx+BLUE_FLAG\n //\n var ptr = 0\n var elemSize = 2*d\n var istart = d-1\n var iend = elemSize-1\n\n for(var i=redStart; iright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n var blueActive = 0\n for(var i=0; i= BLUE_FLAG) {\n //blue destroy event\n e = (e-BLUE_FLAG)|0\n sqPop(BLUE_SWEEP_QUEUE, BLUE_SWEEP_INDEX, blueActive--, e)\n } else if(e >= 0) {\n //red destroy event\n sqPop(RED_SWEEP_QUEUE, RED_SWEEP_INDEX, redActive--, e)\n } else if(e <= -BLUE_FLAG) {\n //blue create event\n e = (-e-BLUE_FLAG)|0\n for(var j=0; jright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n var blueActive = 0\n var commonActive = 0\n for(var i=0; i>1) === (SWEEP_EVENTS[2*i+3]>>1)) {\n color = 2\n i += 1\n }\n \n if(e < 0) {\n //Create event\n var id = -(e>>1) - 1\n\n //Intersect with common\n for(var j=0; j>1) - 1\n if(color === 0) {\n //Red\n sqPop(RED_SWEEP_QUEUE, RED_SWEEP_INDEX, redActive--, id)\n } else if(color === 1) {\n //Blue\n sqPop(BLUE_SWEEP_QUEUE, BLUE_SWEEP_INDEX, blueActive--, id)\n } else if(color === 2) {\n //Both\n sqPop(COMMON_SWEEP_QUEUE, COMMON_SWEEP_INDEX, commonActive--, id)\n }\n }\n }\n}\n\n//Sweep and prune/scanline algorithm:\n// Scan along axis, detect intersections\n// Brute force all boxes along axis\nfunction scanBipartite(\n d, axis, visit, flip,\n redStart, redEnd, red, redIndex,\n blueStart, blueEnd, blue, blueIndex) {\n \n var ptr = 0\n var elemSize = 2*d\n var istart = axis\n var iend = axis+d\n\n var redShift = 1\n var blueShift = 1\n if(flip) {\n blueShift = BLUE_FLAG\n } else {\n redShift = BLUE_FLAG\n }\n\n for(var i=redStart; iright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n for(var i=0; i= BLUE_FLAG) {\n isRed = !flip\n idx -= BLUE_FLAG \n } else {\n isRed = !!flip\n idx -= 1\n }\n if(isRed) {\n sqPush(RED_SWEEP_QUEUE, RED_SWEEP_INDEX, redActive++, idx)\n } else {\n var blueId = blueIndex[idx]\n var bluePtr = elemSize * idx\n \n var b0 = blue[bluePtr+axis+1]\n var b1 = blue[bluePtr+axis+1+d]\n\nred_loop:\n for(var j=0; jright\n var n = ptr >>> 1\n isort(SWEEP_EVENTS, n)\n \n var redActive = 0\n for(var i=0; i= BLUE_FLAG) {\n RED_SWEEP_QUEUE[redActive++] = idx - BLUE_FLAG\n } else {\n idx -= 1\n var blueId = blueIndex[idx]\n var bluePtr = elemSize * idx\n\n var b0 = blue[bluePtr+axis+1]\n var b1 = blue[bluePtr+axis+1+d]\n\nred_loop:\n for(var j=0; j=0; --j) {\n if(RED_SWEEP_QUEUE[j] === idx) {\n for(var k=j+1; k 0) {\n var b = stack.pop()\n var a = stack.pop()\n\n //Find opposite pairs\n var x = -1, y = -1\n var star = stars[a]\n for(var i=1; i= 0) {\n continue\n }\n\n //Flip the edge\n triangulation.flip(a, b)\n\n //Test flipping neighboring edges\n testFlip(points, triangulation, stack, x, a, y)\n testFlip(points, triangulation, stack, a, y, x)\n testFlip(points, triangulation, stack, y, b, x)\n testFlip(points, triangulation, stack, b, x, y)\n }\n}\n\n},{\"binary-search-bounds\":31,\"robust-in-sphere\":282}],44:[function(_glvis_,module,exports){\n'use strict'\n\nvar bsearch = _glvis_('binary-search-bounds')\n\nmodule.exports = classifyFaces\n\nfunction FaceIndex(cells, neighbor, constraint, flags, active, next, boundary) {\n this.cells = cells\n this.neighbor = neighbor\n this.flags = flags\n this.constraint = constraint\n this.active = active\n this.next = next\n this.boundary = boundary\n}\n\nvar proto = FaceIndex.prototype\n\nfunction compareCell(a, b) {\n return a[0] - b[0] ||\n a[1] - b[1] ||\n a[2] - b[2]\n}\n\nproto.locate = (function() {\n var key = [0,0,0]\n return function(a, b, c) {\n var x = a, y = b, z = c\n if(b < c) {\n if(b < a) {\n x = b\n y = c\n z = a\n }\n } else if(c < a) {\n x = c\n y = a\n z = b\n }\n if(x < 0) {\n return -1\n }\n key[0] = x\n key[1] = y\n key[2] = z\n return bsearch.eq(this.cells, key, compareCell)\n }\n})()\n\nfunction indexCells(triangulation, infinity) {\n //First get cells and canonicalize\n var cells = triangulation.cells()\n var nc = cells.length\n for(var i=0; i 0 || next.length > 0) {\n while(active.length > 0) {\n var t = active.pop()\n if(flags[t] === -side) {\n continue\n }\n flags[t] = side\n var c = cells[t]\n for(var j=0; j<3; ++j) {\n var f = neighbor[3*t+j]\n if(f >= 0 && flags[f] === 0) {\n if(constraint[3*t+j]) {\n next.push(f)\n } else {\n active.push(f)\n flags[f] = side\n }\n }\n }\n }\n\n //Swap arrays and loop\n var tmp = next\n next = active\n active = tmp\n next.length = 0\n side = -side\n }\n\n var result = filterCells(cells, flags, target)\n if(infinity) {\n return result.concat(index.boundary)\n }\n return result\n}\n\n},{\"binary-search-bounds\":31}],45:[function(_glvis_,module,exports){\n'use strict'\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar orient = _glvis_('robust-orientation')[3]\n\nvar EVENT_POINT = 0\nvar EVENT_END = 1\nvar EVENT_START = 2\n\nmodule.exports = monotoneTriangulate\n\n//A partial convex hull fragment, made of two unimonotone polygons\nfunction PartialHull(a, b, idx, lowerIds, upperIds) {\n this.a = a\n this.b = b\n this.idx = idx\n this.lowerIds = lowerIds\n this.upperIds = upperIds\n}\n\n//An event in the sweep line procedure\nfunction Event(a, b, type, idx) {\n this.a = a\n this.b = b\n this.type = type\n this.idx = idx\n}\n\n//This is used to compare events for the sweep line procedure\n// Points are:\n// 1. sorted lexicographically\n// 2. sorted by type (point < end < start)\n// 3. segments sorted by winding order\n// 4. sorted by index\nfunction compareEvent(a, b) {\n var d =\n (a.a[0] - b.a[0]) ||\n (a.a[1] - b.a[1]) ||\n (a.type - b.type)\n if(d) { return d }\n if(a.type !== EVENT_POINT) {\n d = orient(a.a, a.b, b.b)\n if(d) { return d }\n }\n return a.idx - b.idx\n}\n\nfunction testPoint(hull, p) {\n return orient(hull.a, hull.b, p)\n}\n\nfunction addPoint(cells, hulls, points, p, idx) {\n var lo = bsearch.lt(hulls, p, testPoint)\n var hi = bsearch.gt(hulls, p, testPoint)\n for(var i=lo; i 1 && orient(\n points[lowerIds[m-2]],\n points[lowerIds[m-1]],\n p) > 0) {\n cells.push(\n [lowerIds[m-1],\n lowerIds[m-2],\n idx])\n m -= 1\n }\n lowerIds.length = m\n lowerIds.push(idx)\n\n //Insert p into upper hull\n var upperIds = hull.upperIds\n var m = upperIds.length\n while(m > 1 && orient(\n points[upperIds[m-2]],\n points[upperIds[m-1]],\n p) < 0) {\n cells.push(\n [upperIds[m-2],\n upperIds[m-1],\n idx])\n m -= 1\n }\n upperIds.length = m\n upperIds.push(idx)\n }\n}\n\nfunction findSplit(hull, edge) {\n var d\n if(hull.a[0] < edge.a[0]) {\n d = orient(hull.a, hull.b, edge.a)\n } else {\n d = orient(edge.b, edge.a, hull.a)\n }\n if(d) { return d }\n if(edge.b[0] < hull.b[0]) {\n d = orient(hull.a, hull.b, edge.b)\n } else {\n d = orient(edge.b, edge.a, hull.b)\n }\n return d || hull.idx - edge.idx\n}\n\nfunction splitHulls(hulls, points, event) {\n var splitIdx = bsearch.le(hulls, event, findSplit)\n var hull = hulls[splitIdx]\n var upperIds = hull.upperIds\n var x = upperIds[upperIds.length-1]\n hull.upperIds = [x]\n hulls.splice(splitIdx+1, 0,\n new PartialHull(event.a, event.b, event.idx, [x], upperIds))\n}\n\n\nfunction mergeHulls(hulls, points, event) {\n //Swap pointers for merge search\n var tmp = event.a\n event.a = event.b\n event.b = tmp\n var mergeIdx = bsearch.eq(hulls, event, findSplit)\n var upper = hulls[mergeIdx]\n var lower = hulls[mergeIdx-1]\n lower.upperIds = upper.upperIds\n hulls.splice(mergeIdx, 1)\n}\n\n\nfunction monotoneTriangulate(points, edges) {\n\n var numPoints = points.length\n var numEdges = edges.length\n\n var events = []\n\n //Create point events\n for(var i=0; i b[0]) {\n events.push(\n new Event(b, a, EVENT_START, i),\n new Event(a, b, EVENT_END, i))\n }\n }\n\n //Sort events\n events.sort(compareEvent)\n\n //Initialize hull\n var minX = events[0].a[0] - (1 + Math.abs(events[0].a[0])) * Math.pow(2, -52)\n var hull = [ new PartialHull([minX, 1], [minX, 0], -1, [], [], [], []) ]\n\n //Process events in order\n var cells = []\n for(var i=0, numEvents=events.length; i= 0\n }\n})()\n\nproto.removeTriangle = function(i, j, k) {\n var stars = this.stars\n removePair(stars[i], j, k)\n removePair(stars[j], k, i)\n removePair(stars[k], i, j)\n}\n\nproto.addTriangle = function(i, j, k) {\n var stars = this.stars\n stars[i].push(j, k)\n stars[j].push(k, i)\n stars[k].push(i, j)\n}\n\nproto.opposite = function(j, i) {\n var list = this.stars[i]\n for(var k=1, n=list.length; k= 0; --i) {\n var junction = junctions[i]\n e = junction[0]\n\n var edge = edges[e]\n var s = edge[0]\n var t = edge[1]\n\n // Check if edge is not lexicographically sorted\n var a = floatPoints[s]\n var b = floatPoints[t]\n if (((a[0] - b[0]) || (a[1] - b[1])) < 0) {\n var tmp = s\n s = t\n t = tmp\n }\n\n // Split leading edge\n edge[0] = s\n var last = edge[1] = junction[1]\n\n // If we are grouping edges by color, remember to track data\n var color\n if (useColor) {\n color = edge[2]\n }\n\n // Split other edges\n while (i > 0 && junctions[i - 1][0] === e) {\n var junction = junctions[--i]\n var next = junction[1]\n if (useColor) {\n edges.push([last, next, color])\n } else {\n edges.push([last, next])\n }\n last = next\n }\n\n // Add final edge\n if (useColor) {\n edges.push([last, t, color])\n } else {\n edges.push([last, t])\n }\n }\n\n // Return constructed rational points\n return ratPoints\n}\n\n// Merge overlapping points\nfunction dedupPoints (floatPoints, ratPoints, floatBounds) {\n var numPoints = ratPoints.length\n var uf = new UnionFind(numPoints)\n\n // Compute rational bounds\n var bounds = []\n for (var i = 0; i < ratPoints.length; ++i) {\n var p = ratPoints[i]\n var xb = boundRat(p[0])\n var yb = boundRat(p[1])\n bounds.push([\n nextafter(xb[0], -Infinity),\n nextafter(yb[0], -Infinity),\n nextafter(xb[1], Infinity),\n nextafter(yb[1], Infinity)\n ])\n }\n\n // Link all points with over lapping boxes\n boxIntersect(bounds, function (i, j) {\n uf.link(i, j)\n })\n\n // Do 1 pass over points to combine points in label sets\n var noDupes = true\n var labels = new Array(numPoints)\n for (var i = 0; i < numPoints; ++i) {\n var j = uf.find(i)\n if (j !== i) {\n // Clear no-dupes flag, zero out label\n noDupes = false\n // Make each point the top-left point from its cell\n floatPoints[j] = [\n Math.min(floatPoints[i][0], floatPoints[j][0]),\n Math.min(floatPoints[i][1], floatPoints[j][1])\n ]\n }\n }\n\n // If no duplicates, return null to signal termination\n if (noDupes) {\n return null\n }\n\n var ptr = 0\n for (var i = 0; i < numPoints; ++i) {\n var j = uf.find(i)\n if (j === i) {\n labels[i] = ptr\n floatPoints[ptr++] = floatPoints[i]\n } else {\n labels[i] = -1\n }\n }\n\n floatPoints.length = ptr\n\n // Do a second pass to fix up missing labels\n for (var i = 0; i < numPoints; ++i) {\n if (labels[i] < 0) {\n labels[i] = labels[uf.find(i)]\n }\n }\n\n // Return resulting union-find data structure\n return labels\n}\n\nfunction compareLex2 (a, b) { return (a[0] - b[0]) || (a[1] - b[1]) }\nfunction compareLex3 (a, b) {\n var d = (a[0] - b[0]) || (a[1] - b[1])\n if (d) {\n return d\n }\n if (a[2] < b[2]) {\n return -1\n } else if (a[2] > b[2]) {\n return 1\n }\n return 0\n}\n\n// Remove duplicate edge labels\nfunction dedupEdges (edges, labels, useColor) {\n if (edges.length === 0) {\n return\n }\n if (labels) {\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n var a = labels[e[0]]\n var b = labels[e[1]]\n e[0] = Math.min(a, b)\n e[1] = Math.max(a, b)\n }\n } else {\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n var a = e[0]\n var b = e[1]\n e[0] = Math.min(a, b)\n e[1] = Math.max(a, b)\n }\n }\n if (useColor) {\n edges.sort(compareLex3)\n } else {\n edges.sort(compareLex2)\n }\n var ptr = 1\n for (var i = 1; i < edges.length; ++i) {\n var prev = edges[i - 1]\n var next = edges[i]\n if (next[0] === prev[0] && next[1] === prev[1] &&\n (!useColor || next[2] === prev[2])) {\n continue\n }\n edges[ptr++] = next\n }\n edges.length = ptr\n}\n\nfunction preRound (points, edges, useColor) {\n var labels = dedupPoints(points, [], boundPoints(points))\n dedupEdges(edges, labels, useColor)\n return !!labels\n}\n\n// Repeat until convergence\nfunction snapRound (points, edges, useColor) {\n // 1. find edge crossings\n var edgeBounds = boundEdges(points, edges)\n var crossings = getCrossings(points, edges, edgeBounds)\n\n // 2. find t-junctions\n var vertBounds = boundPoints(points)\n var tjunctions = getTJunctions(points, edges, edgeBounds, vertBounds)\n\n // 3. cut edges, construct rational points\n var ratPoints = cutEdges(points, edges, crossings, tjunctions, useColor)\n\n // 4. dedupe verts\n var labels = dedupPoints(points, ratPoints, vertBounds)\n\n // 5. dedupe edges\n dedupEdges(edges, labels, useColor)\n\n // 6. check termination\n if (!labels) {\n return (crossings.length > 0 || tjunctions.length > 0)\n }\n\n // More iterations necessary\n return true\n}\n\n// Main loop, runs PSLG clean up until completion\nfunction cleanPSLG (points, edges, colors) {\n // If using colors, augment edges with color data\n var prevEdges\n if (colors) {\n prevEdges = edges\n var augEdges = new Array(edges.length)\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n augEdges[i] = [e[0], e[1], colors[i]]\n }\n edges = augEdges\n }\n\n // First round: remove duplicate edges and points\n var modified = preRound(points, edges, !!colors)\n\n // Run snap rounding until convergence\n while (snapRound(points, edges, !!colors)) {\n modified = true\n }\n\n // Strip color tags\n if (!!colors && modified) {\n prevEdges.length = 0\n colors.length = 0\n for (var i = 0; i < edges.length; ++i) {\n var e = edges[i]\n prevEdges.push([e[0], e[1]])\n colors.push(e[2])\n }\n }\n\n return modified\n}\n\n},{\"./lib/rat-seg-intersect\":51,\"big-rat\":18,\"big-rat/cmp\":16,\"big-rat/to-float\":30,\"box-intersect\":35,\"nextafter\":260,\"rat-vec\":273,\"robust-segment-intersect\":287,\"union-find\":309}],51:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = solveIntersection\n\nvar ratMul = _glvis_('big-rat/mul')\nvar ratDiv = _glvis_('big-rat/div')\nvar ratSub = _glvis_('big-rat/sub')\nvar ratSign = _glvis_('big-rat/sign')\nvar rvSub = _glvis_('rat-vec/sub')\nvar rvAdd = _glvis_('rat-vec/add')\nvar rvMuls = _glvis_('rat-vec/muls')\n\nfunction ratPerp (a, b) {\n return ratSub(ratMul(a[0], b[1]), ratMul(a[1], b[0]))\n}\n\n// Solve for intersection\n// x = a + t (b-a)\n// (x - c) ^ (d-c) = 0\n// (t * (b-a) + (a-c) ) ^ (d-c) = 0\n// t * (b-a)^(d-c) = (d-c)^(a-c)\n// t = (d-c)^(a-c) / (b-a)^(d-c)\n\nfunction solveIntersection (a, b, c, d) {\n var ba = rvSub(b, a)\n var dc = rvSub(d, c)\n\n var baXdc = ratPerp(ba, dc)\n\n if (ratSign(baXdc) === 0) {\n return null\n }\n\n var ac = rvSub(a, c)\n var dcXac = ratPerp(dc, ac)\n\n var t = ratDiv(dcXac, baXdc)\n var s = rvMuls(ba, t)\n var r = rvAdd(a, s)\n\n return r\n}\n\n},{\"big-rat/div\":17,\"big-rat/mul\":27,\"big-rat/sign\":28,\"big-rat/sub\":29,\"rat-vec/add\":272,\"rat-vec/muls\":274,\"rat-vec/sub\":275}],52:[function(_glvis_,module,exports){\nmodule.exports={\n\t\"jet\":[{\"index\":0,\"rgb\":[0,0,131]},{\"index\":0.125,\"rgb\":[0,60,170]},{\"index\":0.375,\"rgb\":[5,255,255]},{\"index\":0.625,\"rgb\":[255,255,0]},{\"index\":0.875,\"rgb\":[250,0,0]},{\"index\":1,\"rgb\":[128,0,0]}],\n\n\t\"hsv\":[{\"index\":0,\"rgb\":[255,0,0]},{\"index\":0.169,\"rgb\":[253,255,2]},{\"index\":0.173,\"rgb\":[247,255,2]},{\"index\":0.337,\"rgb\":[0,252,4]},{\"index\":0.341,\"rgb\":[0,252,10]},{\"index\":0.506,\"rgb\":[1,249,255]},{\"index\":0.671,\"rgb\":[2,0,253]},{\"index\":0.675,\"rgb\":[8,0,253]},{\"index\":0.839,\"rgb\":[255,0,251]},{\"index\":0.843,\"rgb\":[255,0,245]},{\"index\":1,\"rgb\":[255,0,6]}],\n\n\t\"hot\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.3,\"rgb\":[230,0,0]},{\"index\":0.6,\"rgb\":[255,210,0]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"spring\":[{\"index\":0,\"rgb\":[255,0,255]},{\"index\":1,\"rgb\":[255,255,0]}],\n\n\t\"summer\":[{\"index\":0,\"rgb\":[0,128,102]},{\"index\":1,\"rgb\":[255,255,102]}],\n\n\t\"autumn\":[{\"index\":0,\"rgb\":[255,0,0]},{\"index\":1,\"rgb\":[255,255,0]}],\n\n\t\"winter\":[{\"index\":0,\"rgb\":[0,0,255]},{\"index\":1,\"rgb\":[0,255,128]}],\n\n\t\"bone\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.376,\"rgb\":[84,84,116]},{\"index\":0.753,\"rgb\":[169,200,200]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"copper\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.804,\"rgb\":[255,160,102]},{\"index\":1,\"rgb\":[255,199,127]}],\n\n\t\"greys\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"yignbu\":[{\"index\":0,\"rgb\":[8,29,88]},{\"index\":0.125,\"rgb\":[37,52,148]},{\"index\":0.25,\"rgb\":[34,94,168]},{\"index\":0.375,\"rgb\":[29,145,192]},{\"index\":0.5,\"rgb\":[65,182,196]},{\"index\":0.625,\"rgb\":[127,205,187]},{\"index\":0.75,\"rgb\":[199,233,180]},{\"index\":0.875,\"rgb\":[237,248,217]},{\"index\":1,\"rgb\":[255,255,217]}],\n\n\t\"greens\":[{\"index\":0,\"rgb\":[0,68,27]},{\"index\":0.125,\"rgb\":[0,109,44]},{\"index\":0.25,\"rgb\":[35,139,69]},{\"index\":0.375,\"rgb\":[65,171,93]},{\"index\":0.5,\"rgb\":[116,196,118]},{\"index\":0.625,\"rgb\":[161,217,155]},{\"index\":0.75,\"rgb\":[199,233,192]},{\"index\":0.875,\"rgb\":[229,245,224]},{\"index\":1,\"rgb\":[247,252,245]}],\n\n\t\"yiorrd\":[{\"index\":0,\"rgb\":[128,0,38]},{\"index\":0.125,\"rgb\":[189,0,38]},{\"index\":0.25,\"rgb\":[227,26,28]},{\"index\":0.375,\"rgb\":[252,78,42]},{\"index\":0.5,\"rgb\":[253,141,60]},{\"index\":0.625,\"rgb\":[254,178,76]},{\"index\":0.75,\"rgb\":[254,217,118]},{\"index\":0.875,\"rgb\":[255,237,160]},{\"index\":1,\"rgb\":[255,255,204]}],\n\n\t\"bluered\":[{\"index\":0,\"rgb\":[0,0,255]},{\"index\":1,\"rgb\":[255,0,0]}],\n\n\t\"rdbu\":[{\"index\":0,\"rgb\":[5,10,172]},{\"index\":0.35,\"rgb\":[106,137,247]},{\"index\":0.5,\"rgb\":[190,190,190]},{\"index\":0.6,\"rgb\":[220,170,132]},{\"index\":0.7,\"rgb\":[230,145,90]},{\"index\":1,\"rgb\":[178,10,28]}],\n\n\t\"picnic\":[{\"index\":0,\"rgb\":[0,0,255]},{\"index\":0.1,\"rgb\":[51,153,255]},{\"index\":0.2,\"rgb\":[102,204,255]},{\"index\":0.3,\"rgb\":[153,204,255]},{\"index\":0.4,\"rgb\":[204,204,255]},{\"index\":0.5,\"rgb\":[255,255,255]},{\"index\":0.6,\"rgb\":[255,204,255]},{\"index\":0.7,\"rgb\":[255,153,255]},{\"index\":0.8,\"rgb\":[255,102,204]},{\"index\":0.9,\"rgb\":[255,102,102]},{\"index\":1,\"rgb\":[255,0,0]}],\n\n\t\"rainbow\":[{\"index\":0,\"rgb\":[150,0,90]},{\"index\":0.125,\"rgb\":[0,0,200]},{\"index\":0.25,\"rgb\":[0,25,255]},{\"index\":0.375,\"rgb\":[0,152,255]},{\"index\":0.5,\"rgb\":[44,255,150]},{\"index\":0.625,\"rgb\":[151,255,0]},{\"index\":0.75,\"rgb\":[255,234,0]},{\"index\":0.875,\"rgb\":[255,111,0]},{\"index\":1,\"rgb\":[255,0,0]}],\n\n\t\"portland\":[{\"index\":0,\"rgb\":[12,51,131]},{\"index\":0.25,\"rgb\":[10,136,186]},{\"index\":0.5,\"rgb\":[242,211,56]},{\"index\":0.75,\"rgb\":[242,143,56]},{\"index\":1,\"rgb\":[217,30,30]}],\n\n\t\"blackbody\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.2,\"rgb\":[230,0,0]},{\"index\":0.4,\"rgb\":[230,210,0]},{\"index\":0.7,\"rgb\":[255,255,255]},{\"index\":1,\"rgb\":[160,200,255]}],\n\n\t\"earth\":[{\"index\":0,\"rgb\":[0,0,130]},{\"index\":0.1,\"rgb\":[0,180,180]},{\"index\":0.2,\"rgb\":[40,210,40]},{\"index\":0.4,\"rgb\":[230,230,50]},{\"index\":0.6,\"rgb\":[120,70,20]},{\"index\":1,\"rgb\":[255,255,255]}],\n\n\t\"electric\":[{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.15,\"rgb\":[30,0,100]},{\"index\":0.4,\"rgb\":[120,0,100]},{\"index\":0.6,\"rgb\":[160,90,0]},{\"index\":0.8,\"rgb\":[230,200,0]},{\"index\":1,\"rgb\":[255,250,220]}],\n\n\t\"alpha\": [{\"index\":0, \"rgb\": [255,255,255,0]},{\"index\":1, \"rgb\": [255,255,255,1]}],\n\n\t\"viridis\": [{\"index\":0,\"rgb\":[68,1,84]},{\"index\":0.13,\"rgb\":[71,44,122]},{\"index\":0.25,\"rgb\":[59,81,139]},{\"index\":0.38,\"rgb\":[44,113,142]},{\"index\":0.5,\"rgb\":[33,144,141]},{\"index\":0.63,\"rgb\":[39,173,129]},{\"index\":0.75,\"rgb\":[92,200,99]},{\"index\":0.88,\"rgb\":[170,220,50]},{\"index\":1,\"rgb\":[253,231,37]}],\n\n\t\"inferno\": [{\"index\":0,\"rgb\":[0,0,4]},{\"index\":0.13,\"rgb\":[31,12,72]},{\"index\":0.25,\"rgb\":[85,15,109]},{\"index\":0.38,\"rgb\":[136,34,106]},{\"index\":0.5,\"rgb\":[186,54,85]},{\"index\":0.63,\"rgb\":[227,89,51]},{\"index\":0.75,\"rgb\":[249,140,10]},{\"index\":0.88,\"rgb\":[249,201,50]},{\"index\":1,\"rgb\":[252,255,164]}],\n\n\t\"magma\": [{\"index\":0,\"rgb\":[0,0,4]},{\"index\":0.13,\"rgb\":[28,16,68]},{\"index\":0.25,\"rgb\":[79,18,123]},{\"index\":0.38,\"rgb\":[129,37,129]},{\"index\":0.5,\"rgb\":[181,54,122]},{\"index\":0.63,\"rgb\":[229,80,100]},{\"index\":0.75,\"rgb\":[251,135,97]},{\"index\":0.88,\"rgb\":[254,194,135]},{\"index\":1,\"rgb\":[252,253,191]}],\n\n\t\"plasma\": [{\"index\":0,\"rgb\":[13,8,135]},{\"index\":0.13,\"rgb\":[75,3,161]},{\"index\":0.25,\"rgb\":[125,3,168]},{\"index\":0.38,\"rgb\":[168,34,150]},{\"index\":0.5,\"rgb\":[203,70,121]},{\"index\":0.63,\"rgb\":[229,107,93]},{\"index\":0.75,\"rgb\":[248,148,65]},{\"index\":0.88,\"rgb\":[253,195,40]},{\"index\":1,\"rgb\":[240,249,33]}],\n\n\t\"warm\": [{\"index\":0,\"rgb\":[125,0,179]},{\"index\":0.13,\"rgb\":[172,0,187]},{\"index\":0.25,\"rgb\":[219,0,170]},{\"index\":0.38,\"rgb\":[255,0,130]},{\"index\":0.5,\"rgb\":[255,63,74]},{\"index\":0.63,\"rgb\":[255,123,0]},{\"index\":0.75,\"rgb\":[234,176,0]},{\"index\":0.88,\"rgb\":[190,228,0]},{\"index\":1,\"rgb\":[147,255,0]}],\n\n\t\"cool\": [{\"index\":0,\"rgb\":[125,0,179]},{\"index\":0.13,\"rgb\":[116,0,218]},{\"index\":0.25,\"rgb\":[98,74,237]},{\"index\":0.38,\"rgb\":[68,146,231]},{\"index\":0.5,\"rgb\":[0,204,197]},{\"index\":0.63,\"rgb\":[0,247,146]},{\"index\":0.75,\"rgb\":[0,255,88]},{\"index\":0.88,\"rgb\":[40,255,8]},{\"index\":1,\"rgb\":[147,255,0]}],\n\n\t\"rainbow-soft\": [{\"index\":0,\"rgb\":[125,0,179]},{\"index\":0.1,\"rgb\":[199,0,180]},{\"index\":0.2,\"rgb\":[255,0,121]},{\"index\":0.3,\"rgb\":[255,108,0]},{\"index\":0.4,\"rgb\":[222,194,0]},{\"index\":0.5,\"rgb\":[150,255,0]},{\"index\":0.6,\"rgb\":[0,255,55]},{\"index\":0.7,\"rgb\":[0,246,150]},{\"index\":0.8,\"rgb\":[50,167,222]},{\"index\":0.9,\"rgb\":[103,51,235]},{\"index\":1,\"rgb\":[124,0,186]}],\n\n\t\"bathymetry\": [{\"index\":0,\"rgb\":[40,26,44]},{\"index\":0.13,\"rgb\":[59,49,90]},{\"index\":0.25,\"rgb\":[64,76,139]},{\"index\":0.38,\"rgb\":[63,110,151]},{\"index\":0.5,\"rgb\":[72,142,158]},{\"index\":0.63,\"rgb\":[85,174,163]},{\"index\":0.75,\"rgb\":[120,206,163]},{\"index\":0.88,\"rgb\":[187,230,172]},{\"index\":1,\"rgb\":[253,254,204]}],\n\n\t\"cdom\": [{\"index\":0,\"rgb\":[47,15,62]},{\"index\":0.13,\"rgb\":[87,23,86]},{\"index\":0.25,\"rgb\":[130,28,99]},{\"index\":0.38,\"rgb\":[171,41,96]},{\"index\":0.5,\"rgb\":[206,67,86]},{\"index\":0.63,\"rgb\":[230,106,84]},{\"index\":0.75,\"rgb\":[242,149,103]},{\"index\":0.88,\"rgb\":[249,193,135]},{\"index\":1,\"rgb\":[254,237,176]}],\n\n\t\"chlorophyll\": [{\"index\":0,\"rgb\":[18,36,20]},{\"index\":0.13,\"rgb\":[25,63,41]},{\"index\":0.25,\"rgb\":[24,91,59]},{\"index\":0.38,\"rgb\":[13,119,72]},{\"index\":0.5,\"rgb\":[18,148,80]},{\"index\":0.63,\"rgb\":[80,173,89]},{\"index\":0.75,\"rgb\":[132,196,122]},{\"index\":0.88,\"rgb\":[175,221,162]},{\"index\":1,\"rgb\":[215,249,208]}],\n\n\t\"density\": [{\"index\":0,\"rgb\":[54,14,36]},{\"index\":0.13,\"rgb\":[89,23,80]},{\"index\":0.25,\"rgb\":[110,45,132]},{\"index\":0.38,\"rgb\":[120,77,178]},{\"index\":0.5,\"rgb\":[120,113,213]},{\"index\":0.63,\"rgb\":[115,151,228]},{\"index\":0.75,\"rgb\":[134,185,227]},{\"index\":0.88,\"rgb\":[177,214,227]},{\"index\":1,\"rgb\":[230,241,241]}],\n\n\t\"freesurface-blue\": [{\"index\":0,\"rgb\":[30,4,110]},{\"index\":0.13,\"rgb\":[47,14,176]},{\"index\":0.25,\"rgb\":[41,45,236]},{\"index\":0.38,\"rgb\":[25,99,212]},{\"index\":0.5,\"rgb\":[68,131,200]},{\"index\":0.63,\"rgb\":[114,156,197]},{\"index\":0.75,\"rgb\":[157,181,203]},{\"index\":0.88,\"rgb\":[200,208,216]},{\"index\":1,\"rgb\":[241,237,236]}],\n\n\t\"freesurface-red\": [{\"index\":0,\"rgb\":[60,9,18]},{\"index\":0.13,\"rgb\":[100,17,27]},{\"index\":0.25,\"rgb\":[142,20,29]},{\"index\":0.38,\"rgb\":[177,43,27]},{\"index\":0.5,\"rgb\":[192,87,63]},{\"index\":0.63,\"rgb\":[205,125,105]},{\"index\":0.75,\"rgb\":[216,162,148]},{\"index\":0.88,\"rgb\":[227,199,193]},{\"index\":1,\"rgb\":[241,237,236]}],\n\n\t\"oxygen\": [{\"index\":0,\"rgb\":[64,5,5]},{\"index\":0.13,\"rgb\":[106,6,15]},{\"index\":0.25,\"rgb\":[144,26,7]},{\"index\":0.38,\"rgb\":[168,64,3]},{\"index\":0.5,\"rgb\":[188,100,4]},{\"index\":0.63,\"rgb\":[206,136,11]},{\"index\":0.75,\"rgb\":[220,174,25]},{\"index\":0.88,\"rgb\":[231,215,44]},{\"index\":1,\"rgb\":[248,254,105]}],\n\n\t\"par\": [{\"index\":0,\"rgb\":[51,20,24]},{\"index\":0.13,\"rgb\":[90,32,35]},{\"index\":0.25,\"rgb\":[129,44,34]},{\"index\":0.38,\"rgb\":[159,68,25]},{\"index\":0.5,\"rgb\":[182,99,19]},{\"index\":0.63,\"rgb\":[199,134,22]},{\"index\":0.75,\"rgb\":[212,171,35]},{\"index\":0.88,\"rgb\":[221,210,54]},{\"index\":1,\"rgb\":[225,253,75]}],\n\n\t\"phase\": [{\"index\":0,\"rgb\":[145,105,18]},{\"index\":0.13,\"rgb\":[184,71,38]},{\"index\":0.25,\"rgb\":[186,58,115]},{\"index\":0.38,\"rgb\":[160,71,185]},{\"index\":0.5,\"rgb\":[110,97,218]},{\"index\":0.63,\"rgb\":[50,123,164]},{\"index\":0.75,\"rgb\":[31,131,110]},{\"index\":0.88,\"rgb\":[77,129,34]},{\"index\":1,\"rgb\":[145,105,18]}],\n\n\t\"salinity\": [{\"index\":0,\"rgb\":[42,24,108]},{\"index\":0.13,\"rgb\":[33,50,162]},{\"index\":0.25,\"rgb\":[15,90,145]},{\"index\":0.38,\"rgb\":[40,118,137]},{\"index\":0.5,\"rgb\":[59,146,135]},{\"index\":0.63,\"rgb\":[79,175,126]},{\"index\":0.75,\"rgb\":[120,203,104]},{\"index\":0.88,\"rgb\":[193,221,100]},{\"index\":1,\"rgb\":[253,239,154]}],\n\n\t\"temperature\": [{\"index\":0,\"rgb\":[4,35,51]},{\"index\":0.13,\"rgb\":[23,51,122]},{\"index\":0.25,\"rgb\":[85,59,157]},{\"index\":0.38,\"rgb\":[129,79,143]},{\"index\":0.5,\"rgb\":[175,95,130]},{\"index\":0.63,\"rgb\":[222,112,101]},{\"index\":0.75,\"rgb\":[249,146,66]},{\"index\":0.88,\"rgb\":[249,196,65]},{\"index\":1,\"rgb\":[232,250,91]}],\n\n\t\"turbidity\": [{\"index\":0,\"rgb\":[34,31,27]},{\"index\":0.13,\"rgb\":[65,50,41]},{\"index\":0.25,\"rgb\":[98,69,52]},{\"index\":0.38,\"rgb\":[131,89,57]},{\"index\":0.5,\"rgb\":[161,112,59]},{\"index\":0.63,\"rgb\":[185,140,66]},{\"index\":0.75,\"rgb\":[202,174,88]},{\"index\":0.88,\"rgb\":[216,209,126]},{\"index\":1,\"rgb\":[233,246,171]}],\n\n\t\"velocity-blue\": [{\"index\":0,\"rgb\":[17,32,64]},{\"index\":0.13,\"rgb\":[35,52,116]},{\"index\":0.25,\"rgb\":[29,81,156]},{\"index\":0.38,\"rgb\":[31,113,162]},{\"index\":0.5,\"rgb\":[50,144,169]},{\"index\":0.63,\"rgb\":[87,173,176]},{\"index\":0.75,\"rgb\":[149,196,189]},{\"index\":0.88,\"rgb\":[203,221,211]},{\"index\":1,\"rgb\":[254,251,230]}],\n\n\t\"velocity-green\": [{\"index\":0,\"rgb\":[23,35,19]},{\"index\":0.13,\"rgb\":[24,64,38]},{\"index\":0.25,\"rgb\":[11,95,45]},{\"index\":0.38,\"rgb\":[39,123,35]},{\"index\":0.5,\"rgb\":[95,146,12]},{\"index\":0.63,\"rgb\":[152,165,18]},{\"index\":0.75,\"rgb\":[201,186,69]},{\"index\":0.88,\"rgb\":[233,216,137]},{\"index\":1,\"rgb\":[255,253,205]}],\n\n\t\"cubehelix\": [{\"index\":0,\"rgb\":[0,0,0]},{\"index\":0.07,\"rgb\":[22,5,59]},{\"index\":0.13,\"rgb\":[60,4,105]},{\"index\":0.2,\"rgb\":[109,1,135]},{\"index\":0.27,\"rgb\":[161,0,147]},{\"index\":0.33,\"rgb\":[210,2,142]},{\"index\":0.4,\"rgb\":[251,11,123]},{\"index\":0.47,\"rgb\":[255,29,97]},{\"index\":0.53,\"rgb\":[255,54,69]},{\"index\":0.6,\"rgb\":[255,85,46]},{\"index\":0.67,\"rgb\":[255,120,34]},{\"index\":0.73,\"rgb\":[255,157,37]},{\"index\":0.8,\"rgb\":[241,191,57]},{\"index\":0.87,\"rgb\":[224,220,93]},{\"index\":0.93,\"rgb\":[218,241,142]},{\"index\":1,\"rgb\":[227,253,198]}]\n};\n\n},{}],53:[function(_glvis_,module,exports){\n/*\n * Ben Postlethwaite\n * January 2013\n * License MIT\n */\n'use strict';\n\nvar colorScale = _glvis_('./colorScale');\nvar lerp = _glvis_('lerp')\n\nmodule.exports = createColormap;\n\nfunction createColormap (spec) {\n /*\n * Default Options\n */\n var indicies, fromrgba, torgba,\n nsteps, cmap, colormap, format,\n nshades, colors, alpha, i;\n\n if ( !spec ) spec = {};\n\n nshades = (spec.nshades || 72) - 1;\n format = spec.format || 'hex';\n\n colormap = spec.colormap;\n if (!colormap) colormap = 'jet';\n\n if (typeof colormap === 'string') {\n colormap = colormap.toLowerCase();\n\n if (!colorScale[colormap]) {\n throw Error(colormap + ' not a supported colorscale');\n }\n\n cmap = colorScale[colormap];\n\n } else if (Array.isArray(colormap)) {\n cmap = colormap.slice();\n\n } else {\n throw Error('unsupported colormap option', colormap);\n }\n\n if (cmap.length > nshades + 1) {\n throw new Error(\n colormap+' map requires nshades to be at least size '+cmap.length\n );\n }\n\n if (!Array.isArray(spec.alpha)) {\n\n if (typeof spec.alpha === 'number') {\n alpha = [spec.alpha, spec.alpha];\n\n } else {\n alpha = [1, 1];\n }\n\n } else if (spec.alpha.length !== 2) {\n alpha = [1, 1];\n\n } else {\n alpha = spec.alpha.slice();\n }\n\n // map index points from 0..1 to 0..n-1\n indicies = cmap.map(function(c) {\n return Math.round(c.index * nshades);\n });\n\n // Add alpha channel to the map\n alpha[0] = Math.min(Math.max(alpha[0], 0), 1);\n alpha[1] = Math.min(Math.max(alpha[1], 0), 1);\n\n var steps = cmap.map(function(c, i) {\n var index = cmap[i].index\n\n var rgba = cmap[i].rgb.slice();\n\n // if user supplies their own map use it\n if (rgba.length === 4 && rgba[3] >= 0 && rgba[3] <= 1) {\n return rgba\n }\n rgba[3] = alpha[0] + (alpha[1] - alpha[0])*index;\n\n return rgba\n })\n\n\n /*\n * map increasing linear values between indicies to\n * linear steps in colorvalues\n */\n var colors = []\n for (i = 0; i < indicies.length-1; ++i) {\n nsteps = indicies[i+1] - indicies[i];\n fromrgba = steps[i];\n torgba = steps[i+1];\n\n for (var j = 0; j < nsteps; j++) {\n var amt = j / nsteps\n colors.push([\n Math.round(lerp(fromrgba[0], torgba[0], amt)),\n Math.round(lerp(fromrgba[1], torgba[1], amt)),\n Math.round(lerp(fromrgba[2], torgba[2], amt)),\n lerp(fromrgba[3], torgba[3], amt)\n ])\n }\n }\n\n //add 1 step as last value\n colors.push(cmap[cmap.length - 1].rgb.concat(alpha[1]))\n\n if (format === 'hex') colors = colors.map( rgb2hex );\n else if (format === 'rgbaString') colors = colors.map( rgbaStr );\n else if (format === 'float') colors = colors.map( rgb2float );\n\n return colors;\n};\n\nfunction rgb2float (rgba) {\n return [\n rgba[0] / 255,\n rgba[1] / 255,\n rgba[2] / 255,\n rgba[3]\n ]\n}\n\nfunction rgb2hex (rgba) {\n var dig, hex = '#';\n for (var i = 0; i < 3; ++i) {\n dig = rgba[i];\n dig = dig.toString(16);\n hex += ('00' + dig).substr( dig.length );\n }\n return hex;\n}\n\nfunction rgbaStr (rgba) {\n return 'rgba(' + rgba.join(',') + ')';\n}\n\n},{\"./colorScale\":52,\"lerp\":240}],54:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = compareAngle\n\nvar orient = _glvis_(\"robust-orientation\")\nvar sgn = _glvis_(\"signum\")\nvar twoSum = _glvis_(\"two-sum\")\nvar robustProduct = _glvis_(\"robust-product\")\nvar robustSum = _glvis_(\"robust-sum\")\n\nfunction testInterior(a, b, c) {\n var x0 = twoSum(a[0], -b[0])\n var y0 = twoSum(a[1], -b[1])\n var x1 = twoSum(c[0], -b[0])\n var y1 = twoSum(c[1], -b[1])\n\n var d = robustSum(\n robustProduct(x0, x1),\n robustProduct(y0, y1))\n\n return d[d.length-1] >= 0\n}\n\nfunction compareAngle(a, b, c, d) {\n var bcd = orient(b, c, d)\n if(bcd === 0) {\n //Handle degenerate cases\n var sabc = sgn(orient(a, b, c))\n var sabd = sgn(orient(a, b, d))\n if(sabc === sabd) {\n if(sabc === 0) {\n var ic = testInterior(a, b, c)\n var id = testInterior(a, b, d)\n if(ic === id) {\n return 0\n } else if(ic) {\n return 1\n } else {\n return -1\n }\n }\n return 0\n } else if(sabd === 0) {\n if(sabc > 0) {\n return -1\n } else if(testInterior(a, b, d)) {\n return -1\n } else {\n return 1\n }\n } else if(sabc === 0) {\n if(sabd > 0) {\n return 1\n } else if(testInterior(a, b, c)) {\n return 1\n } else {\n return -1\n }\n }\n return sgn(sabd - sabc)\n }\n var abc = orient(a, b, c)\n if(abc > 0) {\n if(bcd > 0 && orient(a, b, d) > 0) {\n return 1\n }\n return -1\n } else if(abc < 0) {\n if(bcd > 0 || orient(a, b, d) > 0) {\n return 1\n }\n return -1\n } else {\n var abd = orient(a, b, d)\n if(abd > 0) {\n return 1\n } else {\n if(testInterior(a, b, c)) {\n return 1\n } else {\n return -1\n }\n }\n }\n}\n},{\"robust-orientation\":284,\"robust-product\":285,\"robust-sum\":289,\"signum\":55,\"two-sum\":307}],55:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = function signum(x) {\n if(x < 0) { return -1 }\n if(x > 0) { return 1 }\n return 0.0\n}\n},{}],56:[function(_glvis_,module,exports){\nmodule.exports = compareCells\n\nvar min = Math.min\n\nfunction compareInt(a, b) {\n return a - b\n}\n\nfunction compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0\n case 1:\n return a[0] - b[0]\n case 2:\n return (a[0]+a[1]-b[0]-b[1]) ||\n min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n t = l1+a[2] - (m1+b[2])\n if(t) {\n return t\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n return min(l0, a[2]) - min(m0, b[2]) ||\n min(l0+a[2], l1) - min(m0+b[2], m1)\n case 4:\n var aw=a[0], ax=a[1], ay=a[2], az=a[3]\n , bw=b[0], bx=b[1], by=b[2], bz=b[3]\n return (aw+ax+ay+az)-(bw+bx+by+bz) ||\n min(aw,ax,ay,az)-min(bw,bx,by,bz,bw) ||\n min(aw+ax,aw+ay,aw+az,ax+ay,ax+az,ay+az) -\n min(bw+bx,bw+by,bw+bz,bx+by,bx+bz,by+bz) ||\n min(aw+ax+ay,aw+ax+az,aw+ay+az,ax+ay+az) -\n min(bw+bx+by,bw+bx+bz,bw+by+bz,bx+by+bz)\n default:\n var as = a.slice().sort(compareInt)\n var bs = b.slice().sort(compareInt)\n for(var i=0; i points[hi][0]) {\n hi = i\n }\n }\n if(lo < hi) {\n return [[lo], [hi]]\n } else if(lo > hi) {\n return [[hi], [lo]]\n } else {\n return [[lo]]\n }\n}\n},{}],60:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = convexHull2D\n\nvar monotoneHull = _glvis_('monotone-convex-hull-2d')\n\nfunction convexHull2D(points) {\n var hull = monotoneHull(points)\n var h = hull.length\n if(h <= 2) {\n return []\n }\n var edges = new Array(h)\n var a = hull[h-1]\n for(var i=0; i= front[k]) {\n x += 1\n }\n }\n c[j] = x\n }\n }\n }\n return cells\n}\n\nfunction convexHullnD(points, d) {\n try {\n return ich(points, true)\n } catch(e) {\n //If point set is degenerate, try to find a basis and rerun it\n var ah = aff(points)\n if(ah.length <= d) {\n //No basis, no try\n return []\n }\n var npoints = permute(points, ah)\n var nhull = ich(npoints, true)\n return invPermute(nhull, ah)\n }\n}\n},{\"affine-hull\":10,\"incremental-convex-hull\":233}],62:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction dcubicHermite(p0, v0, p1, v1, t, f) {\n var dh00 = 6*t*t-6*t,\n dh10 = 3*t*t-4*t + 1,\n dh01 = -6*t*t+6*t,\n dh11 = 3*t*t-2*t\n if(p0.length) {\n if(!f) {\n f = new Array(p0.length)\n }\n for(var i=p0.length-1; i>=0; --i) {\n f[i] = dh00*p0[i] + dh10*v0[i] + dh01*p1[i] + dh11*v1[i]\n }\n return f\n }\n return dh00*p0 + dh10*v0 + dh01*p1[i] + dh11*v1\n}\n\nfunction cubicHermite(p0, v0, p1, v1, t, f) {\n var ti = (t-1), t2 = t*t, ti2 = ti*ti,\n h00 = (1+2*t)*ti2,\n h10 = t*ti2,\n h01 = t2*(3-2*t),\n h11 = t2*ti\n if(p0.length) {\n if(!f) {\n f = new Array(p0.length)\n }\n for(var i=p0.length-1; i>=0; --i) {\n f[i] = h00*p0[i] + h10*v0[i] + h01*p1[i] + h11*v1[i]\n }\n return f\n }\n return h00*p0 + h10*v0 + h01*p1 + h11*v1\n}\n\nmodule.exports = cubicHermite\nmodule.exports.derivative = dcubicHermite\n},{}],63:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar ch = _glvis_(\"incremental-convex-hull\")\nvar uniq = _glvis_(\"uniq\")\n\nmodule.exports = triangulate\n\nfunction LiftedPoint(p, i) {\n this.point = p\n this.index = i\n}\n\nfunction compareLifted(a, b) {\n var ap = a.point\n var bp = b.point\n var d = ap.length\n for(var i=0; i= 2) {\n return false\n }\n }\n cell[j] = v\n }\n return true\n })\n } else {\n hull = hull.filter(function(cell) {\n for(var i=0; i<=d; ++i) {\n var v = dindex[cell[i]]\n if(v < 0) {\n return false\n }\n cell[i] = v\n }\n return true\n })\n }\n\n if(d & 1) {\n for(var i=0; i>> 31\n}\n\nmodule.exports.exponent = function(n) {\n var b = module.exports.hi(n)\n return ((b<<1) >>> 21) - 1023\n}\n\nmodule.exports.fraction = function(n) {\n var lo = module.exports.lo(n)\n var hi = module.exports.hi(n)\n var b = hi & ((1<<20) - 1)\n if(hi & 0x7ff00000) {\n b += (1<<20)\n }\n return [lo, b]\n}\n\nmodule.exports.denormalized = function(n) {\n var hi = module.exports.hi(n)\n return !(hi & 0x7ff00000)\n}\n}).call(this)}).call(this,_glvis_(\"buffer\").Buffer)\n},{\"buffer\":3}],65:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction dupe_array(count, value, i) {\n var c = count[i]|0\n if(c <= 0) {\n return []\n }\n var result = new Array(c), j\n if(i === count.length-1) {\n for(j=0; j 0) {\n return dupe_number(count|0, value)\n }\n break\n case \"object\":\n if(typeof (count.length) === \"number\") {\n return dupe_array(count, value, 0)\n }\n break\n }\n return []\n}\n\nmodule.exports = dupe\n},{}],66:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = edgeToAdjacency\n\nvar uniq = _glvis_(\"uniq\")\n\nfunction edgeToAdjacency(edges, numVertices) {\n var numEdges = edges.length\n if(typeof numVertices !== \"number\") {\n numVertices = 0\n for(var i=0; i= n-1) {\n var ptr = state.length-1\n var tf = t - time[n-1]\n for(var i=0; i= n-1) {\n var ptr = state.length-1\n var tf = t - time[n-1]\n for(var i=0; i=0; --i) {\n if(velocity[--ptr]) {\n return false\n }\n }\n return true\n}\n\nproto.jump = function(t) {\n var t0 = this.lastT()\n var d = this.dimension\n if(t < t0 || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var ptr = state.length-this.dimension\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n this._time.push(t0, t)\n for(var j=0; j<2; ++j) {\n for(var i=0; i0; --i) {\n state.push(clamp(lo[i-1], hi[i-1], arguments[i]))\n velocity.push(0)\n }\n}\n\nproto.push = function(t) {\n var t0 = this.lastT()\n var d = this.dimension\n if(t < t0 || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var ptr = state.length-this.dimension\n var dt = t - t0\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n var sf = (dt > 1e-6) ? 1/dt : 0\n this._time.push(t)\n for(var i=d; i>0; --i) {\n var xc = clamp(lo[i-1], hi[i-1], arguments[i])\n state.push(xc)\n velocity.push((xc - state[ptr++]) * sf)\n }\n}\n\nproto.set = function(t) {\n var d = this.dimension\n if(t < this.lastT() || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n this._time.push(t)\n for(var i=d; i>0; --i) {\n state.push(clamp(lo[i-1], hi[i-1], arguments[i]))\n velocity.push(0)\n }\n}\n\nproto.move = function(t) {\n var t0 = this.lastT()\n var d = this.dimension\n if(t <= t0 || arguments.length !== d+1) {\n return\n }\n var state = this._state\n var velocity = this._velocity\n var statePtr = state.length - this.dimension\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n var dt = t - t0\n var sf = (dt > 1e-6) ? 1/dt : 0.0\n this._time.push(t)\n for(var i=d; i>0; --i) {\n var dx = arguments[i]\n state.push(clamp(lo[i-1], hi[i-1], state[statePtr++] + dx))\n velocity.push(dx * sf)\n }\n}\n\nproto.idle = function(t) {\n var t0 = this.lastT()\n if(t < t0) {\n return\n }\n var d = this.dimension\n var state = this._state\n var velocity = this._velocity\n var statePtr = state.length-d\n var bounds = this.bounds\n var lo = bounds[0]\n var hi = bounds[1]\n var dt = t - t0\n this._time.push(t)\n for(var i=d-1; i>=0; --i) {\n state.push(clamp(lo[i], hi[i], state[statePtr] + dt * velocity[statePtr]))\n velocity.push(0)\n statePtr += 1\n }\n}\n\nfunction getZero(d) {\n var result = new Array(d)\n for(var i=0; i=0; --s) {\n var n = n_stack[s]\n if(d_stack[s] <= 0) {\n n_stack[s] = new RBNode(n._color, n.key, n.value, n_stack[s+1], n.right, n._count+1)\n } else {\n n_stack[s] = new RBNode(n._color, n.key, n.value, n.left, n_stack[s+1], n._count+1)\n }\n }\n //Rebalance tree using rotations\n //console.log(\"start insert\", key, d_stack)\n for(var s=n_stack.length-1; s>1; --s) {\n var p = n_stack[s-1]\n var n = n_stack[s]\n if(p._color === BLACK || n._color === BLACK) {\n break\n }\n var pp = n_stack[s-2]\n if(pp.left === p) {\n if(p.left === n) {\n var y = pp.right\n if(y && y._color === RED) {\n //console.log(\"LLr\")\n p._color = BLACK\n pp.right = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"LLb\")\n pp._color = RED\n pp.left = p.right\n p._color = BLACK\n p.right = pp\n n_stack[s-2] = p\n n_stack[s-1] = n\n recount(pp)\n recount(p)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.left === pp) {\n ppp.left = p\n } else {\n ppp.right = p\n }\n }\n break\n }\n } else {\n var y = pp.right\n if(y && y._color === RED) {\n //console.log(\"LRr\")\n p._color = BLACK\n pp.right = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"LRb\")\n p.right = n.left\n pp._color = RED\n pp.left = n.right\n n._color = BLACK\n n.left = p\n n.right = pp\n n_stack[s-2] = n\n n_stack[s-1] = p\n recount(pp)\n recount(p)\n recount(n)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.left === pp) {\n ppp.left = n\n } else {\n ppp.right = n\n }\n }\n break\n }\n }\n } else {\n if(p.right === n) {\n var y = pp.left\n if(y && y._color === RED) {\n //console.log(\"RRr\", y.key)\n p._color = BLACK\n pp.left = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"RRb\")\n pp._color = RED\n pp.right = p.left\n p._color = BLACK\n p.left = pp\n n_stack[s-2] = p\n n_stack[s-1] = n\n recount(pp)\n recount(p)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.right === pp) {\n ppp.right = p\n } else {\n ppp.left = p\n }\n }\n break\n }\n } else {\n var y = pp.left\n if(y && y._color === RED) {\n //console.log(\"RLr\")\n p._color = BLACK\n pp.left = repaint(BLACK, y)\n pp._color = RED\n s -= 1\n } else {\n //console.log(\"RLb\")\n p.left = n.right\n pp._color = RED\n pp.right = n.left\n n._color = BLACK\n n.right = p\n n.left = pp\n n_stack[s-2] = n\n n_stack[s-1] = p\n recount(pp)\n recount(p)\n recount(n)\n if(s >= 3) {\n var ppp = n_stack[s-3]\n if(ppp.right === pp) {\n ppp.right = n\n } else {\n ppp.left = n\n }\n }\n break\n }\n }\n }\n }\n //Return new tree\n n_stack[0]._color = BLACK\n return new RedBlackTree(cmp, n_stack[0])\n}\n\n\n//Visit all nodes inorder\nfunction doVisitFull(visit, node) {\n if(node.left) {\n var v = doVisitFull(visit, node.left)\n if(v) { return v }\n }\n var v = visit(node.key, node.value)\n if(v) { return v }\n if(node.right) {\n return doVisitFull(visit, node.right)\n }\n}\n\n//Visit half nodes in order\nfunction doVisitHalf(lo, compare, visit, node) {\n var l = compare(lo, node.key)\n if(l <= 0) {\n if(node.left) {\n var v = doVisitHalf(lo, compare, visit, node.left)\n if(v) { return v }\n }\n var v = visit(node.key, node.value)\n if(v) { return v }\n }\n if(node.right) {\n return doVisitHalf(lo, compare, visit, node.right)\n }\n}\n\n//Visit all nodes within a range\nfunction doVisit(lo, hi, compare, visit, node) {\n var l = compare(lo, node.key)\n var h = compare(hi, node.key)\n var v\n if(l <= 0) {\n if(node.left) {\n v = doVisit(lo, hi, compare, visit, node.left)\n if(v) { return v }\n }\n if(h > 0) {\n v = visit(node.key, node.value)\n if(v) { return v }\n }\n }\n if(h > 0 && node.right) {\n return doVisit(lo, hi, compare, visit, node.right)\n }\n}\n\n\nproto.forEach = function rbTreeForEach(visit, lo, hi) {\n if(!this.root) {\n return\n }\n switch(arguments.length) {\n case 1:\n return doVisitFull(visit, this.root)\n break\n\n case 2:\n return doVisitHalf(lo, this._compare, visit, this.root)\n break\n\n case 3:\n if(this._compare(lo, hi) >= 0) {\n return\n }\n return doVisit(lo, hi, this._compare, visit, this.root)\n break\n }\n}\n\n//First item in list\nObject.defineProperty(proto, \"begin\", {\n get: function() {\n var stack = []\n var n = this.root\n while(n) {\n stack.push(n)\n n = n.left\n }\n return new RedBlackTreeIterator(this, stack)\n }\n})\n\n//Last item in list\nObject.defineProperty(proto, \"end\", {\n get: function() {\n var stack = []\n var n = this.root\n while(n) {\n stack.push(n)\n n = n.right\n }\n return new RedBlackTreeIterator(this, stack)\n }\n})\n\n//Find the ith item in the tree\nproto.at = function(idx) {\n if(idx < 0) {\n return new RedBlackTreeIterator(this, [])\n }\n var n = this.root\n var stack = []\n while(true) {\n stack.push(n)\n if(n.left) {\n if(idx < n.left._count) {\n n = n.left\n continue\n }\n idx -= n.left._count\n }\n if(!idx) {\n return new RedBlackTreeIterator(this, stack)\n }\n idx -= 1\n if(n.right) {\n if(idx >= n.right._count) {\n break\n }\n n = n.right\n } else {\n break\n }\n }\n return new RedBlackTreeIterator(this, [])\n}\n\nproto.ge = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d <= 0) {\n last_ptr = stack.length\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\nproto.gt = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d < 0) {\n last_ptr = stack.length\n }\n if(d < 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\nproto.lt = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d > 0) {\n last_ptr = stack.length\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\nproto.le = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n var last_ptr = 0\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d >= 0) {\n last_ptr = stack.length\n }\n if(d < 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n stack.length = last_ptr\n return new RedBlackTreeIterator(this, stack)\n}\n\n//Finds the item with key if it exists\nproto.find = function(key) {\n var cmp = this._compare\n var n = this.root\n var stack = []\n while(n) {\n var d = cmp(key, n.key)\n stack.push(n)\n if(d === 0) {\n return new RedBlackTreeIterator(this, stack)\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n return new RedBlackTreeIterator(this, [])\n}\n\n//Removes item with key from tree\nproto.remove = function(key) {\n var iter = this.find(key)\n if(iter) {\n return iter.remove()\n }\n return this\n}\n\n//Returns the item at `key`\nproto.get = function(key) {\n var cmp = this._compare\n var n = this.root\n while(n) {\n var d = cmp(key, n.key)\n if(d === 0) {\n return n.value\n }\n if(d <= 0) {\n n = n.left\n } else {\n n = n.right\n }\n }\n return\n}\n\n//Iterator for red black tree\nfunction RedBlackTreeIterator(tree, stack) {\n this.tree = tree\n this._stack = stack\n}\n\nvar iproto = RedBlackTreeIterator.prototype\n\n//Test if iterator is valid\nObject.defineProperty(iproto, \"valid\", {\n get: function() {\n return this._stack.length > 0\n }\n})\n\n//Node of the iterator\nObject.defineProperty(iproto, \"node\", {\n get: function() {\n if(this._stack.length > 0) {\n return this._stack[this._stack.length-1]\n }\n return null\n },\n enumerable: true\n})\n\n//Makes a copy of an iterator\niproto.clone = function() {\n return new RedBlackTreeIterator(this.tree, this._stack.slice())\n}\n\n//Swaps two nodes\nfunction swapNode(n, v) {\n n.key = v.key\n n.value = v.value\n n.left = v.left\n n.right = v.right\n n._color = v._color\n n._count = v._count\n}\n\n//Fix up a double black node in a tree\nfunction fixDoubleBlack(stack) {\n var n, p, s, z\n for(var i=stack.length-1; i>=0; --i) {\n n = stack[i]\n if(i === 0) {\n n._color = BLACK\n return\n }\n //console.log(\"visit node:\", n.key, i, stack[i].key, stack[i-1].key)\n p = stack[i-1]\n if(p.left === n) {\n //console.log(\"left child\")\n s = p.right\n if(s.right && s.right._color === RED) {\n //console.log(\"case 1: right sibling child red\")\n s = p.right = cloneNode(s)\n z = s.right = cloneNode(s.right)\n p.right = s.left\n s.left = p\n s.right = z\n s._color = p._color\n n._color = BLACK\n p._color = BLACK\n z._color = BLACK\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.left === p) {\n pp.left = s\n } else {\n pp.right = s\n }\n }\n stack[i-1] = s\n return\n } else if(s.left && s.left._color === RED) {\n //console.log(\"case 1: left sibling child red\")\n s = p.right = cloneNode(s)\n z = s.left = cloneNode(s.left)\n p.right = z.left\n s.left = z.right\n z.left = p\n z.right = s\n z._color = p._color\n p._color = BLACK\n s._color = BLACK\n n._color = BLACK\n recount(p)\n recount(s)\n recount(z)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.left === p) {\n pp.left = z\n } else {\n pp.right = z\n }\n }\n stack[i-1] = z\n return\n }\n if(s._color === BLACK) {\n if(p._color === RED) {\n //console.log(\"case 2: black sibling, red parent\", p.right.value)\n p._color = BLACK\n p.right = repaint(RED, s)\n return\n } else {\n //console.log(\"case 2: black sibling, black parent\", p.right.value)\n p.right = repaint(RED, s)\n continue \n }\n } else {\n //console.log(\"case 3: red sibling\")\n s = cloneNode(s)\n p.right = s.left\n s.left = p\n s._color = p._color\n p._color = RED\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.left === p) {\n pp.left = s\n } else {\n pp.right = s\n }\n }\n stack[i-1] = s\n stack[i] = p\n if(i+1 < stack.length) {\n stack[i+1] = n\n } else {\n stack.push(n)\n }\n i = i+2\n }\n } else {\n //console.log(\"right child\")\n s = p.left\n if(s.left && s.left._color === RED) {\n //console.log(\"case 1: left sibling child red\", p.value, p._color)\n s = p.left = cloneNode(s)\n z = s.left = cloneNode(s.left)\n p.left = s.right\n s.right = p\n s.left = z\n s._color = p._color\n n._color = BLACK\n p._color = BLACK\n z._color = BLACK\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.right === p) {\n pp.right = s\n } else {\n pp.left = s\n }\n }\n stack[i-1] = s\n return\n } else if(s.right && s.right._color === RED) {\n //console.log(\"case 1: right sibling child red\")\n s = p.left = cloneNode(s)\n z = s.right = cloneNode(s.right)\n p.left = z.right\n s.right = z.left\n z.right = p\n z.left = s\n z._color = p._color\n p._color = BLACK\n s._color = BLACK\n n._color = BLACK\n recount(p)\n recount(s)\n recount(z)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.right === p) {\n pp.right = z\n } else {\n pp.left = z\n }\n }\n stack[i-1] = z\n return\n }\n if(s._color === BLACK) {\n if(p._color === RED) {\n //console.log(\"case 2: black sibling, red parent\")\n p._color = BLACK\n p.left = repaint(RED, s)\n return\n } else {\n //console.log(\"case 2: black sibling, black parent\")\n p.left = repaint(RED, s)\n continue \n }\n } else {\n //console.log(\"case 3: red sibling\")\n s = cloneNode(s)\n p.left = s.right\n s.right = p\n s._color = p._color\n p._color = RED\n recount(p)\n recount(s)\n if(i > 1) {\n var pp = stack[i-2]\n if(pp.right === p) {\n pp.right = s\n } else {\n pp.left = s\n }\n }\n stack[i-1] = s\n stack[i] = p\n if(i+1 < stack.length) {\n stack[i+1] = n\n } else {\n stack.push(n)\n }\n i = i+2\n }\n }\n }\n}\n\n//Removes item at iterator from tree\niproto.remove = function() {\n var stack = this._stack\n if(stack.length === 0) {\n return this.tree\n }\n //First copy path to node\n var cstack = new Array(stack.length)\n var n = stack[stack.length-1]\n cstack[cstack.length-1] = new RBNode(n._color, n.key, n.value, n.left, n.right, n._count)\n for(var i=stack.length-2; i>=0; --i) {\n var n = stack[i]\n if(n.left === stack[i+1]) {\n cstack[i] = new RBNode(n._color, n.key, n.value, cstack[i+1], n.right, n._count)\n } else {\n cstack[i] = new RBNode(n._color, n.key, n.value, n.left, cstack[i+1], n._count)\n }\n }\n\n //Get node\n n = cstack[cstack.length-1]\n //console.log(\"start remove: \", n.value)\n\n //If not leaf, then swap with previous node\n if(n.left && n.right) {\n //console.log(\"moving to leaf\")\n\n //First walk to previous leaf\n var split = cstack.length\n n = n.left\n while(n.right) {\n cstack.push(n)\n n = n.right\n }\n //Copy path to leaf\n var v = cstack[split-1]\n cstack.push(new RBNode(n._color, v.key, v.value, n.left, n.right, n._count))\n cstack[split-1].key = n.key\n cstack[split-1].value = n.value\n\n //Fix up stack\n for(var i=cstack.length-2; i>=split; --i) {\n n = cstack[i]\n cstack[i] = new RBNode(n._color, n.key, n.value, n.left, cstack[i+1], n._count)\n }\n cstack[split-1].left = cstack[split]\n }\n //console.log(\"stack=\", cstack.map(function(v) { return v.value }))\n\n //Remove leaf node\n n = cstack[cstack.length-1]\n if(n._color === RED) {\n //Easy case: removing red leaf\n //console.log(\"RED leaf\")\n var p = cstack[cstack.length-2]\n if(p.left === n) {\n p.left = null\n } else if(p.right === n) {\n p.right = null\n }\n cstack.pop()\n for(var i=0; i 0) {\n return this._stack[this._stack.length-1].key\n }\n return\n },\n enumerable: true\n})\n\n//Returns value\nObject.defineProperty(iproto, \"value\", {\n get: function() {\n if(this._stack.length > 0) {\n return this._stack[this._stack.length-1].value\n }\n return\n },\n enumerable: true\n})\n\n\n//Returns the position of this iterator in the sorted list\nObject.defineProperty(iproto, \"index\", {\n get: function() {\n var idx = 0\n var stack = this._stack\n if(stack.length === 0) {\n var r = this.tree.root\n if(r) {\n return r._count\n }\n return 0\n } else if(stack[stack.length-1].left) {\n idx = stack[stack.length-1].left._count\n }\n for(var s=stack.length-2; s>=0; --s) {\n if(stack[s+1] === stack[s].right) {\n ++idx\n if(stack[s].left) {\n idx += stack[s].left._count\n }\n }\n }\n return idx\n },\n enumerable: true\n})\n\n//Advances iterator to next element in list\niproto.next = function() {\n var stack = this._stack\n if(stack.length === 0) {\n return\n }\n var n = stack[stack.length-1]\n if(n.right) {\n n = n.right\n while(n) {\n stack.push(n)\n n = n.left\n }\n } else {\n stack.pop()\n while(stack.length > 0 && stack[stack.length-1].right === n) {\n n = stack[stack.length-1]\n stack.pop()\n }\n }\n}\n\n//Checks if iterator is at end of tree\nObject.defineProperty(iproto, \"hasNext\", {\n get: function() {\n var stack = this._stack\n if(stack.length === 0) {\n return false\n }\n if(stack[stack.length-1].right) {\n return true\n }\n for(var s=stack.length-1; s>0; --s) {\n if(stack[s-1].left === stack[s]) {\n return true\n }\n }\n return false\n }\n})\n\n//Update value\niproto.update = function(value) {\n var stack = this._stack\n if(stack.length === 0) {\n throw new Error(\"Can't update empty node!\")\n }\n var cstack = new Array(stack.length)\n var n = stack[stack.length-1]\n cstack[cstack.length-1] = new RBNode(n._color, n.key, value, n.left, n.right, n._count)\n for(var i=stack.length-2; i>=0; --i) {\n n = stack[i]\n if(n.left === stack[i+1]) {\n cstack[i] = new RBNode(n._color, n.key, n.value, cstack[i+1], n.right, n._count)\n } else {\n cstack[i] = new RBNode(n._color, n.key, n.value, n.left, cstack[i+1], n._count)\n }\n }\n return new RedBlackTree(this.tree._compare, cstack[0])\n}\n\n//Moves iterator backward one element\niproto.prev = function() {\n var stack = this._stack\n if(stack.length === 0) {\n return\n }\n var n = stack[stack.length-1]\n if(n.left) {\n n = n.left\n while(n) {\n stack.push(n)\n n = n.right\n }\n } else {\n stack.pop()\n while(stack.length > 0 && stack[stack.length-1].left === n) {\n n = stack[stack.length-1]\n stack.pop()\n }\n }\n}\n\n//Checks if iterator is at start of tree\nObject.defineProperty(iproto, \"hasPrev\", {\n get: function() {\n var stack = this._stack\n if(stack.length === 0) {\n return false\n }\n if(stack[stack.length-1].left) {\n return true\n }\n for(var s=stack.length-1; s>0; --s) {\n if(stack[s-1].right === stack[s]) {\n return true\n }\n }\n return false\n }\n})\n\n//Default comparison function\nfunction defaultCompare(a, b) {\n if(a < b) {\n return -1\n }\n if(a > b) {\n return 1\n }\n return 0\n}\n\n//Build a tree\nfunction createRBTree(compare) {\n return new RedBlackTree(compare || defaultCompare, null)\n}\n},{}],70:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createAxes\n\nvar createText = _glvis_('./lib/text.js')\nvar createLines = _glvis_('./lib/lines.js')\nvar createBackground = _glvis_('./lib/background.js')\nvar getCubeProperties = _glvis_('./lib/cube.js')\nvar Ticks = _glvis_('./lib/ticks.js')\n\nvar identity = new Float32Array([\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1])\n\nfunction copyVec3(a, b) {\n a[0] = b[0]\n a[1] = b[1]\n a[2] = b[2]\n return a\n}\n\nfunction Axes(gl) {\n this.gl = gl\n\n this.pixelRatio = 1\n\n this.bounds = [ [-10, -10, -10],\n [ 10, 10, 10] ]\n this.ticks = [ [], [], [] ]\n this.autoTicks = true\n this.tickSpacing = [ 1, 1, 1 ]\n\n this.tickEnable = [ true, true, true ]\n this.tickFont = [ 'sans-serif', 'sans-serif', 'sans-serif' ]\n this.tickSize = [ 12, 12, 12 ]\n this.tickAngle = [ 0, 0, 0 ]\n this.tickAlign = [ 'auto', 'auto', 'auto' ]\n this.tickColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n this.tickPad = [ 10, 10, 10 ]\n\n this.lastCubeProps = {\n cubeEdges: [0,0,0],\n axis: [0,0,0]\n }\n\n this.labels = [ 'x', 'y', 'z' ]\n this.labelEnable = [ true, true, true ]\n this.labelFont = 'sans-serif'\n this.labelSize = [ 20, 20, 20 ]\n this.labelAngle = [ 0, 0, 0 ]\n this.labelAlign = [ 'auto', 'auto', 'auto' ]\n this.labelColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n this.labelPad = [ 10, 10, 10 ]\n\n this.lineEnable = [ true, true, true ]\n this.lineMirror = [ false, false, false ]\n this.lineWidth = [ 1, 1, 1 ]\n this.lineColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n\n this.lineTickEnable = [ true, true, true ]\n this.lineTickMirror = [ false, false, false ]\n this.lineTickLength = [ 0, 0, 0 ]\n this.lineTickWidth = [ 1, 1, 1 ]\n this.lineTickColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n\n this.gridEnable = [ true, true, true ]\n this.gridWidth = [ 1, 1, 1 ]\n this.gridColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n\n this.zeroEnable = [ true, true, true ]\n this.zeroLineColor = [ [0,0,0,1], [0,0,0,1], [0,0,0,1] ]\n this.zeroLineWidth = [ 2, 2, 2 ]\n\n this.backgroundEnable = [ false, false, false ]\n this.backgroundColor = [ [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5],\n [0.8, 0.8, 0.8, 0.5] ]\n\n this._firstInit = true\n this._text = null\n this._lines = null\n this._background = createBackground(gl)\n}\n\nvar proto = Axes.prototype\n\nproto.update = function(options) {\n options = options || {}\n\n //Option parsing helper functions\n function parseOption(nest, cons, name) {\n if(name in options) {\n var opt = options[name]\n var prev = this[name]\n var next\n if(nest ? (Array.isArray(opt) && Array.isArray(opt[0])) :\n Array.isArray(opt) ) {\n this[name] = next = [ cons(opt[0]), cons(opt[1]), cons(opt[2]) ]\n } else {\n this[name] = next = [ cons(opt), cons(opt), cons(opt) ]\n }\n for(var i=0; i<3; ++i) {\n if(next[i] !== prev[i]) {\n return true\n }\n }\n }\n return false\n }\n\n var NUMBER = parseOption.bind(this, false, Number)\n var BOOLEAN = parseOption.bind(this, false, Boolean)\n var STRING = parseOption.bind(this, false, String)\n var COLOR = parseOption.bind(this, true, function(v) {\n if(Array.isArray(v)) {\n if(v.length === 3) {\n return [ +v[0], +v[1], +v[2], 1.0 ]\n } else if(v.length === 4) {\n return [ +v[0], +v[1], +v[2], +v[3] ]\n }\n }\n return [ 0, 0, 0, 1 ]\n })\n\n //Tick marks and bounds\n var nextTicks\n var ticksUpdate = false\n var boundsChanged = false\n if('bounds' in options) {\n var bounds = options.bounds\ni_loop:\n for(var i=0; i<2; ++i) {\n for(var j=0; j<3; ++j) {\n if(bounds[i][j] !== this.bounds[i][j]) {\n boundsChanged = true\n }\n this.bounds[i][j] = bounds[i][j]\n }\n }\n }\n if('ticks' in options) {\n nextTicks = options.ticks\n ticksUpdate = true\n this.autoTicks = false\n for(var i=0; i<3; ++i) {\n this.tickSpacing[i] = 0.0\n }\n } else if(NUMBER('tickSpacing')) {\n this.autoTicks = true\n boundsChanged = true\n }\n\n if(this._firstInit) {\n if(!('ticks' in options || 'tickSpacing' in options)) {\n this.autoTicks = true\n }\n\n //Force tick recomputation on first update\n boundsChanged = true\n ticksUpdate = true\n this._firstInit = false\n }\n\n if(boundsChanged && this.autoTicks) {\n nextTicks = Ticks.create(this.bounds, this.tickSpacing)\n ticksUpdate = true\n }\n\n //Compare next ticks to previous ticks, only update if needed\n if(ticksUpdate) {\n for(var i=0; i<3; ++i) {\n nextTicks[i].sort(function(a,b) {\n return a.x-b.x\n })\n }\n if(Ticks.equal(nextTicks, this.ticks)) {\n ticksUpdate = false\n } else {\n this.ticks = nextTicks\n }\n }\n\n //Parse tick properties\n BOOLEAN('tickEnable')\n if(STRING('tickFont')) {\n ticksUpdate = true //If font changes, must rebuild vbo\n }\n NUMBER('tickSize')\n NUMBER('tickAngle')\n NUMBER('tickPad')\n COLOR('tickColor')\n\n //Axis labels\n var labelUpdate = STRING('labels')\n if(STRING('labelFont')) {\n labelUpdate = true\n }\n BOOLEAN('labelEnable')\n NUMBER('labelSize')\n NUMBER('labelPad')\n COLOR('labelColor')\n\n //Axis lines\n BOOLEAN('lineEnable')\n BOOLEAN('lineMirror')\n NUMBER('lineWidth')\n COLOR('lineColor')\n\n //Axis line ticks\n BOOLEAN('lineTickEnable')\n BOOLEAN('lineTickMirror')\n NUMBER('lineTickLength')\n NUMBER('lineTickWidth')\n COLOR('lineTickColor')\n\n //Grid lines\n BOOLEAN('gridEnable')\n NUMBER('gridWidth')\n COLOR('gridColor')\n\n //Zero line\n BOOLEAN('zeroEnable')\n COLOR('zeroLineColor')\n NUMBER('zeroLineWidth')\n\n //Background\n BOOLEAN('backgroundEnable')\n COLOR('backgroundColor')\n\n //Update text if necessary\n if(!this._text) {\n this._text = createText(\n this.gl,\n this.bounds,\n this.labels,\n this.labelFont,\n this.ticks,\n this.tickFont)\n } else if(this._text && (labelUpdate || ticksUpdate)) {\n this._text.update(\n this.bounds,\n this.labels,\n this.labelFont,\n this.ticks,\n this.tickFont)\n }\n\n //Update lines if necessary\n if(this._lines && ticksUpdate) {\n this._lines.dispose()\n this._lines = null\n }\n if(!this._lines) {\n this._lines = createLines(this.gl, this.bounds, this.ticks)\n }\n}\n\nfunction OffsetInfo() {\n this.primalOffset = [0,0,0]\n this.primalMinor = [0,0,0]\n this.mirrorOffset = [0,0,0]\n this.mirrorMinor = [0,0,0]\n}\n\nvar LINE_OFFSET = [ new OffsetInfo(), new OffsetInfo(), new OffsetInfo() ]\n\nfunction computeLineOffset(result, i, bounds, cubeEdges, cubeAxis) {\n var primalOffset = result.primalOffset\n var primalMinor = result.primalMinor\n var dualOffset = result.mirrorOffset\n var dualMinor = result.mirrorMinor\n var e = cubeEdges[i]\n\n //Calculate offsets\n for(var j=0; j<3; ++j) {\n if(i === j) {\n continue\n }\n var a = primalOffset,\n b = dualOffset,\n c = primalMinor,\n d = dualMinor\n if(e & (1< 0) {\n c[j] = -1\n d[j] = 0\n } else {\n c[j] = 0\n d[j] = +1\n }\n }\n}\n\nvar CUBE_ENABLE = [0,0,0]\nvar DEFAULT_PARAMS = {\n model: identity,\n view: identity,\n projection: identity,\n _ortho: false\n}\n\nproto.isOpaque = function() {\n return true\n}\n\nproto.isTransparent = function() {\n return false\n}\n\nproto.drawTransparent = function(params) {}\n\nvar ALIGN_OPTION_AUTO = 0 // i.e. as defined in the shader the text would rotate to stay upwards range: [-90,90]\n\nvar PRIMAL_MINOR = [0,0,0]\nvar MIRROR_MINOR = [0,0,0]\nvar PRIMAL_OFFSET = [0,0,0]\n\nproto.draw = function(params) {\n params = params || DEFAULT_PARAMS\n\n var gl = this.gl\n\n //Geometry for camera and axes\n var model = params.model || identity\n var view = params.view || identity\n var projection = params.projection || identity\n var bounds = this.bounds\n var isOrtho = params._ortho || false\n\n //Unpack axis info\n var cubeParams = getCubeProperties(model, view, projection, bounds, isOrtho)\n var cubeEdges = cubeParams.cubeEdges\n var cubeAxis = cubeParams.axis\n\n var cx = view[12]\n var cy = view[13]\n var cz = view[14]\n var cw = view[15]\n\n var orthoFix = (isOrtho) ? 2 : 1 // double up padding for orthographic ticks & labels\n var pixelScaleF = orthoFix * this.pixelRatio * (projection[3]*cx + projection[7]*cy + projection[11]*cz + projection[15]*cw) / gl.drawingBufferHeight\n\n for(var i=0; i<3; ++i) {\n this.lastCubeProps.cubeEdges[i] = cubeEdges[i]\n this.lastCubeProps.axis[i] = cubeAxis[i]\n }\n\n //Compute axis info\n var lineOffset = LINE_OFFSET\n for(var i=0; i<3; ++i) {\n computeLineOffset(\n LINE_OFFSET[i],\n i,\n this.bounds,\n cubeEdges,\n cubeAxis)\n }\n\n //Set up state parameters\n var gl = this.gl\n\n //Draw background first\n var cubeEnable = CUBE_ENABLE\n for(var i=0; i<3; ++i) {\n if(this.backgroundEnable[i]) {\n cubeEnable[i] = cubeAxis[i]\n } else {\n cubeEnable[i] = 0\n }\n }\n\n this._background.draw(\n model,\n view,\n projection,\n bounds,\n cubeEnable,\n this.backgroundColor)\n\n //Draw lines\n this._lines.bind(\n model,\n view,\n projection,\n this)\n\n //First draw grid lines and zero lines\n for(var i=0; i<3; ++i) {\n var x = [0,0,0]\n if(cubeAxis[i] > 0) {\n x[i] = bounds[1][i]\n } else {\n x[i] = bounds[0][i]\n }\n\n //Draw grid lines\n for(var j=0; j<2; ++j) {\n var u = (i + 1 + j) % 3\n var v = (i + 1 + (j^1)) % 3\n if(this.gridEnable[u]) {\n this._lines.drawGrid(u, v, this.bounds, x, this.gridColor[u], this.gridWidth[u]*this.pixelRatio)\n }\n }\n\n //Draw zero lines (need to do this AFTER all grid lines are drawn)\n for(var j=0; j<2; ++j) {\n var u = (i + 1 + j) % 3\n var v = (i + 1 + (j^1)) % 3\n if(this.zeroEnable[v]) {\n //Check if zero line in bounds\n if(Math.min(bounds[0][v], bounds[1][v]) <= 0 && Math.max(bounds[0][v], bounds[1][v]) >= 0) {\n this._lines.drawZero(u, v, this.bounds, x, this.zeroLineColor[v], this.zeroLineWidth[v]*this.pixelRatio)\n }\n }\n }\n }\n\n //Then draw axis lines and tick marks\n for(var i=0; i<3; ++i) {\n\n //Draw axis lines\n if(this.lineEnable[i]) {\n this._lines.drawAxisLine(i, this.bounds, lineOffset[i].primalOffset, this.lineColor[i], this.lineWidth[i]*this.pixelRatio)\n }\n if(this.lineMirror[i]) {\n this._lines.drawAxisLine(i, this.bounds, lineOffset[i].mirrorOffset, this.lineColor[i], this.lineWidth[i]*this.pixelRatio)\n }\n\n //Compute minor axes\n var primalMinor = copyVec3(PRIMAL_MINOR, lineOffset[i].primalMinor)\n var mirrorMinor = copyVec3(MIRROR_MINOR, lineOffset[i].mirrorMinor)\n var tickLength = this.lineTickLength\n for(var j=0; j<3; ++j) {\n var scaleFactor = pixelScaleF / model[5*j]\n primalMinor[j] *= tickLength[j] * scaleFactor\n mirrorMinor[j] *= tickLength[j] * scaleFactor\n }\n\n\n\n //Draw axis line ticks\n if(this.lineTickEnable[i]) {\n this._lines.drawAxisTicks(i, lineOffset[i].primalOffset, primalMinor, this.lineTickColor[i], this.lineTickWidth[i]*this.pixelRatio)\n }\n if(this.lineTickMirror[i]) {\n this._lines.drawAxisTicks(i, lineOffset[i].mirrorOffset, mirrorMinor, this.lineTickColor[i], this.lineTickWidth[i]*this.pixelRatio)\n }\n }\n this._lines.unbind()\n\n //Draw text sprites\n this._text.bind(\n model,\n view,\n projection,\n this.pixelRatio)\n\n var alignOpt // options in shader are from this list {-1, 0, 1, 2, 3, ..., n}\n // -1: backward compatible\n // 0: raw data\n // 1: auto align, free angles\n // 2: auto align, horizontal or vertical\n //3-n: auto align, round to n directions e.g. 12 -> round to angles with 30-degree steps\n\n var hv_ratio = 0.5 // can have an effect on the ratio between horizontals and verticals when using option 2\n\n var enableAlign\n var alignDir\n\n function alignTo(i) {\n alignDir = [0,0,0]\n alignDir[i] = 1\n }\n\n function solveTickAlignments(i, minor, major) {\n\n var i1 = (i + 1) % 3\n var i2 = (i + 2) % 3\n\n var A = minor[i1]\n var B = minor[i2]\n var C = major[i1]\n var D = major[i2]\n\n if ((A > 0) && (D > 0)) { alignTo(i1); return; }\n else if ((A > 0) && (D < 0)) { alignTo(i1); return; }\n else if ((A < 0) && (D > 0)) { alignTo(i1); return; }\n else if ((A < 0) && (D < 0)) { alignTo(i1); return; }\n else if ((B > 0) && (C > 0)) { alignTo(i2); return; }\n else if ((B > 0) && (C < 0)) { alignTo(i2); return; }\n else if ((B < 0) && (C > 0)) { alignTo(i2); return; }\n else if ((B < 0) && (C < 0)) { alignTo(i2); return; }\n }\n\n for(var i=0; i<3; ++i) {\n\n var minor = lineOffset[i].primalMinor\n var major = lineOffset[i].mirrorMinor\n\n var offset = copyVec3(PRIMAL_OFFSET, lineOffset[i].primalOffset)\n\n for(var j=0; j<3; ++j) {\n if(this.lineTickEnable[i]) {\n offset[j] += pixelScaleF * minor[j] * Math.max(this.lineTickLength[j], 0) / model[5*j]\n }\n }\n\n var axis = [0,0,0]\n axis[i] = 1\n\n //Draw tick text\n if(this.tickEnable[i]) {\n\n if(this.tickAngle[i] === -3600) {\n this.tickAngle[i] = 0\n this.tickAlign[i] = 'auto'\n } else {\n this.tickAlign[i] = -1\n }\n\n enableAlign = 1;\n\n alignOpt = [this.tickAlign[i], hv_ratio, enableAlign]\n if(alignOpt[0] === 'auto') alignOpt[0] = ALIGN_OPTION_AUTO\n else alignOpt[0] = parseInt('' + alignOpt[0])\n\n alignDir = [0,0,0]\n solveTickAlignments(i, minor, major)\n\n //Add tick padding\n for(var j=0; j<3; ++j) {\n offset[j] += pixelScaleF * minor[j] * this.tickPad[j] / model[5*j]\n }\n\n //Draw axis\n this._text.drawTicks(\n i,\n this.tickSize[i],\n this.tickAngle[i],\n offset,\n this.tickColor[i],\n axis,\n alignDir,\n alignOpt)\n }\n\n //Draw labels\n if(this.labelEnable[i]) {\n\n enableAlign = 0\n alignDir = [0,0,0]\n if(this.labels[i].length > 4) { // for large label axis enable alignDir to axis\n alignTo(i)\n enableAlign = 1\n }\n\n alignOpt = [this.labelAlign[i], hv_ratio, enableAlign]\n if(alignOpt[0] === 'auto') alignOpt[0] = ALIGN_OPTION_AUTO\n else alignOpt[0] = parseInt('' + alignOpt[0])\n\n //Add label padding\n for(var j=0; j<3; ++j) {\n offset[j] += pixelScaleF * minor[j] * this.labelPad[j] / model[5*j]\n }\n offset[i] += 0.5 * (bounds[0][i] + bounds[1][i])\n\n //Draw axis\n this._text.drawLabel(\n i,\n this.labelSize[i],\n this.labelAngle[i],\n offset,\n this.labelColor[i],\n [0,0,0],\n alignDir,\n alignOpt)\n }\n }\n\n this._text.unbind()\n}\n\nproto.dispose = function() {\n this._text.dispose()\n this._lines.dispose()\n this._background.dispose()\n this._lines = null\n this._text = null\n this._background = null\n this.gl = null\n}\n\nfunction createAxes(gl, options) {\n var axes = new Axes(gl)\n axes.update(options)\n return axes\n}\n\n},{\"./lib/background.js\":71,\"./lib/cube.js\":72,\"./lib/lines.js\":73,\"./lib/text.js\":75,\"./lib/ticks.js\":76}],71:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createBackgroundCube\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createShader = _glvis_('./shaders').bg\n\nfunction BackgroundCube(gl, buffer, vao, shader) {\n this.gl = gl\n this.buffer = buffer\n this.vao = vao\n this.shader = shader\n}\n\nvar proto = BackgroundCube.prototype\n\nproto.draw = function(model, view, projection, bounds, enable, colors) {\n var needsBG = false\n for(var i=0; i<3; ++i) {\n needsBG = needsBG || enable[i]\n }\n if(!needsBG) {\n return\n }\n\n var gl = this.gl\n\n gl.enable(gl.POLYGON_OFFSET_FILL)\n gl.polygonOffset(1, 2)\n\n this.shader.bind()\n this.shader.uniforms = {\n model: model,\n view: view,\n projection: projection,\n bounds: bounds,\n enable: enable,\n colors: colors\n }\n this.vao.bind()\n this.vao.draw(this.gl.TRIANGLES, 36)\n this.vao.unbind()\n\n gl.disable(gl.POLYGON_OFFSET_FILL)\n}\n\nproto.dispose = function() {\n this.vao.dispose()\n this.buffer.dispose()\n this.shader.dispose()\n}\n\nfunction createBackgroundCube(gl) {\n //Create cube vertices\n var vertices = []\n var indices = []\n var ptr = 0\n for(var d=0; d<3; ++d) {\n var u = (d+1) % 3\n var v = (d+2) % 3\n var x = [0,0,0]\n var c = [0,0,0]\n for(var s=-1; s<=1; s+=2) {\n indices.push(ptr, ptr+2, ptr+1,\n ptr+1, ptr+2, ptr+3)\n x[d] = s\n c[d] = s\n for(var i=-1; i<=1; i+=2) {\n x[u] = i\n for(var j=-1; j<=1; j+=2) {\n x[v] = j\n vertices.push(x[0], x[1], x[2],\n c[0], c[1], c[2])\n ptr += 1\n }\n }\n //Swap u and v\n var tt = u\n u = v\n v = tt\n }\n }\n\n //Allocate buffer and vertex array\n var buffer = createBuffer(gl, new Float32Array(vertices))\n var elements = createBuffer(gl, new Uint16Array(indices), gl.ELEMENT_ARRAY_BUFFER)\n var vao = createVAO(gl, [\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 0,\n stride: 24\n },\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 12,\n stride: 24\n }\n ], elements)\n\n //Create shader object\n var shader = createShader(gl)\n shader.attributes.position.location = 0\n shader.attributes.normal.location = 1\n\n return new BackgroundCube(gl, buffer, vao, shader)\n}\n\n},{\"./shaders\":74,\"gl-buffer\":78,\"gl-vao\":150}],72:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = getCubeEdges\n\nvar bits = _glvis_('bit-twiddle')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar splitPoly = _glvis_('split-polygon')\nvar orient = _glvis_('robust-orientation')\n\nvar mvp = new Array(16)\nvar pCubeVerts = new Array(8)\nvar cubeVerts = new Array(8)\nvar x = new Array(3)\nvar zero3 = [0,0,0]\n\n;(function() {\n for(var i=0; i<8; ++i) {\n pCubeVerts[i] =[1,1,1,1]\n cubeVerts[i] = [1,1,1]\n }\n})()\n\n\nfunction transformHg(result, x, mat) {\n for(var i=0; i<4; ++i) {\n result[i] = mat[12+i]\n for(var j=0; j<3; ++j) {\n result[i] += x[j]*mat[4*j+i]\n }\n }\n}\n\nvar FRUSTUM_PLANES = [\n [ 0, 0, 1, 0, 0],\n [ 0, 0,-1, 1, 0],\n [ 0,-1, 0, 1, 0],\n [ 0, 1, 0, 1, 0],\n [-1, 0, 0, 1, 0],\n [ 1, 0, 0, 1, 0]\n]\n\nfunction polygonArea(p) {\n for(var i=0; i o0) {\n closest |= 1< o0) {\n closest |= 1< cubeVerts[i][1]) {\n bottom = i\n }\n }\n\n //Find left/right neighbors of bottom vertex\n var left = -1\n for(var i=0; i<3; ++i) {\n var idx = bottom ^ (1< cubeVerts[right][0]) {\n right = idx\n }\n }\n\n //Determine edge axis coordinates\n var cubeEdges = CUBE_EDGES\n cubeEdges[0] = cubeEdges[1] = cubeEdges[2] = 0\n cubeEdges[bits.log2(left^bottom)] = bottom&left\n cubeEdges[bits.log2(bottom^right)] = bottom&right\n var top = right ^ 7\n if(top === closest || top === farthest) {\n top = left ^ 7\n cubeEdges[bits.log2(right^top)] = top&right\n } else {\n cubeEdges[bits.log2(left^top)] = top&left\n }\n\n //Determine visible faces\n var axis = CUBE_AXIS\n var cutCorner = closest\n for(var d=0; d<3; ++d) {\n if(cutCorner & (1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\\n b - PI :\\n b;\\n}\\n\\nfloat look_horizontal_or_vertical(float a, float ratio) {\\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\\n // if ratio is set to 0.5 then it is 50%, 50%.\\n // when using a higher ratio e.g. 0.75 the result would\\n // likely be more horizontal than vertical.\\n\\n float b = positive_angle(a);\\n\\n return\\n (b < ( ratio) * HALF_PI) ? 0.0 :\\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\\n 0.0;\\n}\\n\\nfloat roundTo(float a, float b) {\\n return float(b * floor((a + 0.5 * b) / b));\\n}\\n\\nfloat look_round_n_directions(float a, int n) {\\n float b = positive_angle(a);\\n float div = TWO_PI / float(n);\\n float c = roundTo(b, div);\\n return look_upwards(c);\\n}\\n\\nfloat applyAlignOption(float rawAngle, float delta) {\\n return\\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\\n rawAngle; // otherwise return back raw input angle\\n}\\n\\nbool isAxisTitle = (axis.x == 0.0) &&\\n (axis.y == 0.0) &&\\n (axis.z == 0.0);\\n\\nvoid main() {\\n //Compute world offset\\n float axisDistance = position.z;\\n vec3 dataPosition = axisDistance * axis + offset;\\n\\n float beta = angle; // i.e. user defined attributes for each tick\\n\\n float axisAngle;\\n float clipAngle;\\n float flip;\\n\\n if (enableAlign) {\\n axisAngle = (isAxisTitle) ? HALF_PI :\\n computeViewAngle(dataPosition, dataPosition + axis);\\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\\n\\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\\n\\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\\n\\n beta += applyAlignOption(clipAngle, flip * PI);\\n }\\n\\n //Compute plane offset\\n vec2 planeCoord = position.xy * pixelScale;\\n\\n mat2 planeXform = scale * mat2(\\n cos(beta), sin(beta),\\n -sin(beta), cos(beta)\\n );\\n\\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\\n\\n //Compute clip position\\n vec3 clipPosition = project(dataPosition);\\n\\n //Apply text offset in clip coordinates\\n clipPosition += vec3(viewOffset, 0.0);\\n\\n //Done\\n gl_Position = vec4(clipPosition, 1.0);\\n}\"])\nvar textFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\"])\nexports.text = function(gl) {\n return createShader(gl, textVert, textFrag, null, [\n {name: 'position', type: 'vec3'}\n ])\n}\n\nvar bgVert = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 enable;\\nuniform vec3 bounds[2];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n\\n vec3 signAxis = sign(bounds[1] - bounds[0]);\\n\\n vec3 realNormal = signAxis * normal;\\n\\n if(dot(realNormal, enable) > 0.0) {\\n vec3 minRange = min(bounds[0], bounds[1]);\\n vec3 maxRange = max(bounds[0], bounds[1]);\\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\\n } else {\\n gl_Position = vec4(0,0,0,0);\\n }\\n\\n colorChannel = abs(realNormal);\\n}\"])\nvar bgFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec4 colors[3];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n gl_FragColor = colorChannel.x * colors[0] +\\n colorChannel.y * colors[1] +\\n colorChannel.z * colors[2];\\n}\"])\nexports.bg = function(gl) {\n return createShader(gl, bgVert, bgFrag, null, [\n {name: 'position', type: 'vec3'},\n {name: 'normal', type: 'vec3'}\n ])\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],75:[function(_glvis_,module,exports){\n(function (process){(function (){\n\"use strict\"\n\nmodule.exports = createTextSprites\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar vectorizeText = _glvis_('vectorize-text')\nvar createShader = _glvis_('./shaders').text\n\nvar globals = window || process.global || {}\nvar __TEXT_CACHE = globals.__TEXT_CACHE || {}\nglobals.__TEXT_CACHE = {}\n\n//Vertex buffer format for text is:\n//\n/// [x,y,z] = Spatial coordinate\n//\n\nvar VERTEX_SIZE = 3\n\nfunction TextSprites(\n gl,\n shader,\n buffer,\n vao) {\n this.gl = gl\n this.shader = shader\n this.buffer = buffer\n this.vao = vao\n this.tickOffset =\n this.tickCount =\n this.labelOffset =\n this.labelCount = null\n}\n\nvar proto = TextSprites.prototype\n\n//Bind textures for rendering\nvar SHAPE = [0,0]\nproto.bind = function(model, view, projection, pixelScale) {\n this.vao.bind()\n this.shader.bind()\n var uniforms = this.shader.uniforms\n uniforms.model = model\n uniforms.view = view\n uniforms.projection = projection\n uniforms.pixelScale = pixelScale\n SHAPE[0] = this.gl.drawingBufferWidth\n SHAPE[1] = this.gl.drawingBufferHeight\n this.shader.uniforms.resolution = SHAPE\n}\n\nproto.unbind = function() {\n this.vao.unbind()\n}\n\nproto.update = function(bounds, labels, labelFont, ticks, tickFont) {\n var data = []\n\n function addItem(t, text, font, size, lineSpacing, styletags) {\n var fontcache = __TEXT_CACHE[font]\n if(!fontcache) {\n fontcache = __TEXT_CACHE[font] = {}\n }\n var mesh = fontcache[text]\n if(!mesh) {\n mesh = fontcache[text] = tryVectorizeText(text, {\n triangles: true,\n font: font,\n textAlign: 'center',\n textBaseline: 'middle',\n lineSpacing: lineSpacing,\n styletags: styletags\n })\n }\n var scale = (size || 12) / 12\n var positions = mesh.positions\n var cells = mesh.cells\n for(var i=0, nc=cells.length; i=0; --j) {\n var p = positions[c[j]]\n data.push(scale*p[0], -scale*p[1], t)\n }\n }\n }\n\n //Generate sprites for all 3 axes, store data in texture atlases\n var tickOffset = [0,0,0]\n var tickCount = [0,0,0]\n var labelOffset = [0,0,0]\n var labelCount = [0,0,0]\n var lineSpacing = 1.25\n var styletags = {\n breaklines:true,\n bolds: true,\n italics: true,\n subscripts:true,\n superscripts:true\n }\n for(var d=0; d<3; ++d) {\n\n //Generate label\n labelOffset[d] = (data.length/VERTEX_SIZE)|0\n addItem(\n 0.5*(bounds[0][d]+bounds[1][d]),\n labels[d],\n labelFont[d],\n 12, // labelFontSize\n lineSpacing,\n styletags\n )\n labelCount[d] = ((data.length/VERTEX_SIZE)|0) - labelOffset[d]\n\n //Generate sprites for tick marks\n tickOffset[d] = (data.length/VERTEX_SIZE)|0\n for(var i=0; i= 0) {\n sigFigs = stepStr.length - u - 1\n }\n var shift = Math.pow(10, sigFigs)\n var x = Math.round(spacing * i * shift)\n var xstr = x + \"\"\n if(xstr.indexOf(\"e\") >= 0) {\n return xstr\n }\n var xi = x / shift, xf = x % shift\n if(x < 0) {\n xi = -Math.ceil(xi)|0\n xf = (-xf)|0\n } else {\n xi = Math.floor(xi)|0\n xf = xf|0\n }\n var xis = \"\" + xi \n if(x < 0) {\n xis = \"-\" + xis\n }\n if(sigFigs) {\n var xs = \"\" + xf\n while(xs.length < sigFigs) {\n xs = \"0\" + xs\n }\n return xis + \".\" + xs\n } else {\n return xis\n }\n}\n\nfunction defaultTicks(bounds, tickSpacing) {\n var array = []\n for(var d=0; d<3; ++d) {\n var ticks = []\n var m = 0.5*(bounds[0][d]+bounds[1][d])\n for(var t=0; t*tickSpacing[d]<=bounds[1][d]; ++t) {\n ticks.push({x: t*tickSpacing[d], text: prettyPrint(tickSpacing[d], t)})\n }\n for(var t=-1; t*tickSpacing[d]>=bounds[0][d]; --t) {\n ticks.push({x: t*tickSpacing[d], text: prettyPrint(tickSpacing[d], t)})\n }\n array.push(ticks)\n }\n return array\n}\n\nfunction ticksEqual(ticksA, ticksB) {\n for(var i=0; i<3; ++i) {\n if(ticksA[i].length !== ticksB[i].length) {\n return false\n }\n for(var j=0; j len) {\n throw new Error(\"gl-buffer: If resizing buffer, must not specify offset\")\n }\n gl.bufferSubData(type, offset, data)\n return len\n}\n\nfunction makeScratchTypeArray(array, dtype) {\n var res = pool.malloc(array.length, dtype)\n var n = array.length\n for(var i=0; i=0; --i) {\n if(stride[i] !== n) {\n return false\n }\n n *= shape[i]\n }\n return true\n}\n\nproto.update = function(array, offset) {\n if(typeof offset !== \"number\") {\n offset = -1\n }\n this.bind()\n if(typeof array === \"object\" && typeof array.shape !== \"undefined\") { //ndarray\n var dtype = array.dtype\n if(SUPPORTED_TYPES.indexOf(dtype) < 0) {\n dtype = \"float32\"\n }\n if(this.type === this.gl.ELEMENT_ARRAY_BUFFER) {\n var ext = gl.getExtension('OES_element_index_uint')\n if(ext && dtype !== \"uint16\") {\n dtype = \"uint32\"\n } else {\n dtype = \"uint16\"\n }\n }\n if(dtype === array.dtype && isPacked(array.shape, array.stride)) {\n if(array.offset === 0 && array.data.length === array.shape[0]) {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, array.data, offset)\n } else {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, array.data.subarray(array.offset, array.shape[0]), offset)\n }\n } else {\n var tmp = pool.malloc(array.size, dtype)\n var ndt = ndarray(tmp, array.shape)\n ops.assign(ndt, array)\n if(offset < 0) {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, tmp, offset)\n } else {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, tmp.subarray(0, array.size), offset)\n }\n pool.free(tmp)\n }\n } else if(Array.isArray(array)) { //Vanilla array\n var t\n if(this.type === this.gl.ELEMENT_ARRAY_BUFFER) {\n t = makeScratchTypeArray(array, \"uint16\")\n } else {\n t = makeScratchTypeArray(array, \"float32\")\n }\n if(offset < 0) {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, t, offset)\n } else {\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, t.subarray(0, array.length), offset)\n }\n pool.free(t)\n } else if(typeof array === \"object\" && typeof array.length === \"number\") { //Typed array\n this.length = updateTypeArray(this.gl, this.type, this.length, this.usage, array, offset)\n } else if(typeof array === \"number\" || array === undefined) { //Number/default\n if(offset >= 0) {\n throw new Error(\"gl-buffer: Cannot specify offset when resizing buffer\")\n }\n array = array | 0\n if(array <= 0) {\n array = 1\n }\n this.gl.bufferData(this.type, array|0, this.usage)\n this.length = array\n } else { //Error, case should not happen\n throw new Error(\"gl-buffer: Invalid data type\")\n }\n}\n\nfunction createBuffer(gl, data, type, usage) {\n type = type || gl.ARRAY_BUFFER\n usage = usage || gl.DYNAMIC_DRAW\n if(type !== gl.ARRAY_BUFFER && type !== gl.ELEMENT_ARRAY_BUFFER) {\n throw new Error(\"gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER\")\n }\n if(usage !== gl.DYNAMIC_DRAW && usage !== gl.STATIC_DRAW && usage !== gl.STREAM_DRAW) {\n throw new Error(\"gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\")\n }\n var handle = gl.createBuffer()\n var result = new GLBuffer(gl, type, handle, 0, usage)\n result.update(data)\n return result\n}\n\nmodule.exports = createBuffer\n\n},{\"ndarray\":259,\"ndarray-ops\":254,\"typedarray-pool\":308}],79:[function(_glvis_,module,exports){\n\"use strict\";\n\nvar vec3 = _glvis_('gl-vec3');\n\nmodule.exports = function(vectorfield, bounds) {\n\tvar positions = vectorfield.positions;\n\tvar vectors = vectorfield.vectors;\n\tvar geo = {\n\t\tpositions: [],\n\t\tvertexIntensity: [],\n\t\tvertexIntensityBounds: vectorfield.vertexIntensityBounds,\n\t\tvectors: [],\n\t\tcells: [],\n\t\tconeOffset: vectorfield.coneOffset,\n\t\tcolormap: vectorfield.colormap\n\t};\n\n\tif (vectorfield.positions.length === 0) {\n\t\tif (bounds) {\n\t\t\tbounds[0] = [0,0,0];\n\t\t\tbounds[1] = [0,0,0];\n\t\t}\n\t\treturn geo;\n\t}\n\n\t// Compute bounding box for the dataset.\n\t// Compute maximum velocity for the dataset to use for scaling the cones.\n\tvar maxNorm = 0;\n\tvar minX = Infinity, maxX = -Infinity;\n\tvar minY = Infinity, maxY = -Infinity;\n\tvar minZ = Infinity, maxZ = -Infinity;\n\tvar p2 = null;\n\tvar u2 = null;\n\tvar positionVectors = [];\n\tvar vectorScale = Infinity;\n\tvar skipIt = false;\n\tfor (var i = 0; i < positions.length; i++) {\n\t\tvar p = positions[i];\n\t\tminX = Math.min(p[0], minX);\n\t\tmaxX = Math.max(p[0], maxX);\n\t\tminY = Math.min(p[1], minY);\n\t\tmaxY = Math.max(p[1], maxY);\n\t\tminZ = Math.min(p[2], minZ);\n\t\tmaxZ = Math.max(p[2], maxZ);\n\t\tvar u = vectors[i];\n\n\t\tif (vec3.length(u) > maxNorm) {\n\t\t\tmaxNorm = vec3.length(u);\n\t\t}\n\t\tif (i) {\n\t\t\t// Find vector scale [w/ units of time] using \"successive\" positions\n\t\t\t// (not \"adjacent\" with would be O(n^2)),\n\t\t\t//\n\t\t\t// The vector scale corresponds to the minimum \"time\" to travel across two\n\t\t\t// two adjacent positions at the average velocity of those two adjacent positions\n\n\t\t\tvar q = (2 * vec3.distance(p2, p) / (vec3.length(u2) + vec3.length(u)));\n\t\t\tif(q) {\n\t\t\t\tvectorScale = Math.min(vectorScale, q);\n\t\t\t\tskipIt = false;\n\t\t\t} else {\n\t\t\t\tskipIt = true;\n\t\t\t}\n\t\t}\n\t\tif(!skipIt) {\n\t\t\tp2 = p;\n\t\t\tu2 = u;\n\t\t}\n\t\tpositionVectors.push(u);\n\t}\n\tvar minV = [minX, minY, minZ];\n\tvar maxV = [maxX, maxY, maxZ];\n\tif (bounds) {\n\t\tbounds[0] = minV;\n\t\tbounds[1] = maxV;\n\t}\n\tif (maxNorm === 0) {\n\t\tmaxNorm = 1;\n\t}\n\n\t// Inverted max norm would map vector with norm maxNorm to 1 coord space units in length\n\tvar invertedMaxNorm = 1 / maxNorm;\n\n\tif (!isFinite(vectorScale)) {\n\t\tvectorScale = 1.0;\n\t}\n\tgeo.vectorScale = vectorScale;\n\n\tvar coneScale = vectorfield.coneSize || 0.5;\n\n\tif (vectorfield.absoluteConeSize) {\n\t\tconeScale = vectorfield.absoluteConeSize * invertedMaxNorm;\n\t}\n\n\tgeo.coneScale = coneScale;\n\n\t// Build the cone model.\n\tfor (var i = 0, j = 0; i < positions.length; i++) {\n\t\tvar p = positions[i];\n\t\tvar x = p[0], y = p[1], z = p[2];\n\t\tvar d = positionVectors[i];\n\t\tvar intensity = vec3.length(d) * invertedMaxNorm;\n\t\tfor (var k = 0, l = 8; k < l; k++) {\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\t\t\tgeo.positions.push([x, y, z, j++]);\n\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\t\t\tgeo.vectors.push(d);\n\n\t\t\tgeo.vertexIntensity.push(intensity, intensity, intensity);\n\t\t\tgeo.vertexIntensity.push(intensity, intensity, intensity);\n\n\t\t\tvar m = geo.positions.length;\n\t\t\tgeo.cells.push([m-6, m-5, m-4], [m-3, m-2, m-1]);\n\t\t}\n\t}\n\n\treturn geo;\n};\n\nvar shaders = _glvis_('./lib/shaders');\nmodule.exports.createMesh = _glvis_('./create_mesh');\nmodule.exports.createConeMesh = function(gl, params) {\n\treturn module.exports.createMesh(gl, params, {\n\t\tshaders: shaders,\n\t\ttraceType: 'cone'\n\t});\n}\n\n},{\"./create_mesh\":80,\"./lib/shaders\":81,\"gl-vec3\":169}],80:[function(_glvis_,module,exports){\n'use strict'\n\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar invert = _glvis_('gl-mat4/invert')\nvar ndarray = _glvis_('ndarray')\nvar colormap = _glvis_('colormap')\n\nvar IDENTITY = [\n 1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\nfunction VectorMesh(gl\n , texture\n , triShader\n , pickShader\n , trianglePositions\n , triangleVectors\n , triangleIds\n , triangleColors\n , triangleUVs\n , triangleVAO\n , traceType) {\n\n this.gl = gl\n this.pixelRatio = 1\n this.cells = []\n this.positions = []\n this.intensity = []\n this.texture = texture\n this.dirty = true\n\n this.triShader = triShader\n this.pickShader = pickShader\n\n this.trianglePositions = trianglePositions\n this.triangleVectors = triangleVectors\n this.triangleColors = triangleColors\n this.triangleUVs = triangleUVs\n this.triangleIds = triangleIds\n this.triangleVAO = triangleVAO\n this.triangleCount = 0\n\n this.pickId = 1\n this.bounds = [\n [ Infinity, Infinity, Infinity],\n [-Infinity,-Infinity,-Infinity] ]\n this.clipBounds = [\n [-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity] ]\n\n this.lightPosition = [1e5, 1e5, 0]\n this.ambientLight = 0.8\n this.diffuseLight = 0.8\n this.specularLight = 2.0\n this.roughness = 0.5\n this.fresnel = 1.5\n\n this.opacity = 1\n\n this.traceType = traceType\n this.tubeScale = 1 // used in streamtube\n this.coneScale = 2 // used in cone\n this.vectorScale = 1 // used in cone\n this.coneOffset = 0.25 // used in cone\n\n this._model = IDENTITY\n this._view = IDENTITY\n this._projection = IDENTITY\n this._resolution = [1,1]\n}\n\nvar proto = VectorMesh.prototype\n\nproto.isOpaque = function() {\n return this.opacity >= 1\n}\n\nproto.isTransparent = function() {\n return this.opacity < 1\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function(id) {\n this.pickId = id\n}\n\nfunction genColormap(param) {\n var colors = colormap({\n colormap: param\n , nshades: 256\n , format: 'rgba'\n })\n\n var result = new Uint8Array(256*4)\n for(var i=0; i<256; ++i) {\n var c = colors[i]\n for(var j=0; j<3; ++j) {\n result[4*i+j] = c[j]\n }\n result[4*i+3] = c[3]*255\n }\n\n return ndarray(result, [256,256,4], [4,0,1])\n}\n\nfunction takeZComponent(array) {\n var n = array.length\n var result = new Array(n)\n for(var i=0; i 0) {\n var shader = this.triShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n}\n\nproto.drawPick = function(params) {\n params = params || {}\n\n var gl = this.gl\n\n var model = params.model || IDENTITY\n var view = params.view || IDENTITY\n var projection = params.projection || IDENTITY\n\n var clipBounds = [[-1e6,-1e6,-1e6],[1e6,1e6,1e6]]\n for(var i=0; i<3; ++i) {\n clipBounds[0][i] = Math.max(clipBounds[0][i], this.clipBounds[0][i])\n clipBounds[1][i] = Math.min(clipBounds[1][i], this.clipBounds[1][i])\n }\n\n //Save camera parameters\n this._model = [].slice.call(model)\n this._view = [].slice.call(view)\n this._projection = [].slice.call(projection)\n this._resolution = [gl.drawingBufferWidth, gl.drawingBufferHeight]\n\n var uniforms = {\n model: model,\n view: view,\n projection: projection,\n clipBounds: clipBounds,\n\n tubeScale: this.tubeScale,\n vectorScale: this.vectorScale,\n coneScale: this.coneScale,\n coneOffset: this.coneOffset,\n\n pickId: this.pickId / 255.0,\n }\n\n var shader = this.pickShader\n shader.bind()\n shader.uniforms = uniforms\n\n if(this.triangleCount > 0) {\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n}\n\n\nproto.pick = function(pickData) {\n if(!pickData) {\n return null\n }\n if(pickData.id !== this.pickId) {\n return null\n }\n\n var cellId = pickData.value[0] + 256*pickData.value[1] + 65536*pickData.value[2]\n var cell = this.cells[cellId]\n var pos = this.positions[cell[1]].slice(0, 3)\n\n var result = {\n position: pos,\n dataCoordinate: pos,\n index: Math.floor(cell[1] / 48)\n }\n\n\n if(this.traceType === 'cone') {\n result.index = Math.floor(cell[1] / 48)\n } else if(this.traceType === 'streamtube') {\n result.intensity = this.intensity[cell[1]]\n result.velocity = this.vectors[cell[1]].slice(0, 3)\n result.divergence = this.vectors[cell[1]][3]\n result.index = cellId\n }\n\n return result\n}\n\n\nproto.dispose = function() {\n this.texture.dispose()\n\n this.triShader.dispose()\n this.pickShader.dispose()\n\n this.triangleVAO.dispose()\n this.trianglePositions.dispose()\n this.triangleVectors.dispose()\n this.triangleColors.dispose()\n this.triangleUVs.dispose()\n this.triangleIds.dispose()\n}\n\nfunction createMeshShader(gl, shaders) {\n var shader = createShader(gl,\n shaders.meshShader.vertex,\n shaders.meshShader.fragment,\n null,\n shaders.meshShader.attributes\n )\n\n shader.attributes.position.location = 0\n shader.attributes.color.location = 2\n shader.attributes.uv.location = 3\n shader.attributes.vector.location = 4\n return shader\n}\n\n\nfunction createPickShader(gl, shaders) {\n var shader = createShader(gl,\n shaders.pickShader.vertex,\n shaders.pickShader.fragment,\n null,\n shaders.pickShader.attributes\n )\n\n shader.attributes.position.location = 0\n shader.attributes.id.location = 1\n shader.attributes.vector.location = 4\n return shader\n}\n\n\nfunction createVectorMesh(gl, params, opts) {\n var shaders = opts.shaders\n\n if (arguments.length === 1) {\n params = gl\n gl = params.gl\n }\n\n\n var triShader = createMeshShader(gl, shaders)\n var pickShader = createPickShader(gl, shaders)\n var meshTexture = createTexture(gl,\n ndarray(new Uint8Array([255,255,255,255]), [1,1,4]))\n meshTexture.generateMipmap()\n meshTexture.minFilter = gl.LINEAR_MIPMAP_LINEAR\n meshTexture.magFilter = gl.LINEAR\n\n var trianglePositions = createBuffer(gl)\n var triangleVectors = createBuffer(gl)\n var triangleColors = createBuffer(gl)\n var triangleUVs = createBuffer(gl)\n var triangleIds = createBuffer(gl)\n var triangleVAO = createVAO(gl, [\n { buffer: trianglePositions,\n type: gl.FLOAT,\n size: 4\n },\n { buffer: triangleIds,\n type: gl.UNSIGNED_BYTE,\n size: 4,\n normalized: true\n },\n { buffer: triangleColors,\n type: gl.FLOAT,\n size: 4\n },\n { buffer: triangleUVs,\n type: gl.FLOAT,\n size: 2\n },\n { buffer: triangleVectors,\n type: gl.FLOAT,\n size: 4\n }\n ])\n\n var mesh = new VectorMesh(gl\n , meshTexture\n , triShader\n , pickShader\n , trianglePositions\n , triangleVectors\n , triangleIds\n , triangleColors\n , triangleUVs\n , triangleVAO\n , opts.traceType || 'cone'\n )\n\n mesh.update(params)\n\n return mesh\n}\n\nmodule.exports = createVectorMesh\n\n},{\"colormap\":53,\"gl-buffer\":78,\"gl-mat4/invert\":98,\"gl-mat4/multiply\":100,\"gl-shader\":132,\"gl-texture2d\":146,\"gl-vao\":150,\"ndarray\":259}],81:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\n\nvar triVertSrc = glslify([\"precision highp float;\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n float index = rawIndex - floor(rawIndex /\\n (segmentCount * 6.0)) *\\n (segmentCount * 6.0);\\n\\n float segment = floor(0.001 + index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n float nextAngle = (\\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\\n (segmentIndex > 4.99 && segmentIndex < 5.01)\\n ) ? 1.0 : 0.0;\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex < 3.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec3 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\n\\nuniform float vectorScale, coneScale, coneOffset;\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 eyePosition, lightPosition;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * conePosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\\n\\n // vec4 m_position = model * vec4(conePosition, 1.0);\\n vec4 t_position = view * conePosition;\\n gl_Position = projection * t_position;\\n\\n f_color = color;\\n f_data = conePosition.xyz;\\n f_position = position.xyz;\\n f_uv = uv;\\n}\\n\"])\nvar triFragSrc = glslify([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\\n\"])\nvar pickVertSrc = glslify([\"precision highp float;\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n float index = rawIndex - floor(rawIndex /\\n (segmentCount * 6.0)) *\\n (segmentCount * 6.0);\\n\\n float segment = floor(0.001 + index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n float nextAngle = (\\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\\n (segmentIndex > 4.99 && segmentIndex < 5.01)\\n ) ? 1.0 : 0.0;\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex < 3.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform float vectorScale, coneScale, coneOffset;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n gl_Position = projection * view * conePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"])\n\nexports.meshShader = {\n vertex: triVertSrc,\n fragment: triFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'},\n {name: 'vector', type: 'vec3'}\n ]\n}\nexports.pickShader = {\n vertex: pickVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'id', type: 'vec4'},\n {name: 'vector', type: 'vec3'}\n ]\n}\n\n},{\"glslify\":231}],82:[function(_glvis_,module,exports){\nmodule.exports = {\n 0: 'NONE',\n 1: 'ONE',\n 2: 'LINE_LOOP',\n 3: 'LINE_STRIP',\n 4: 'TRIANGLES',\n 5: 'TRIANGLE_STRIP',\n 6: 'TRIANGLE_FAN',\n 256: 'DEPTH_BUFFER_BIT',\n 512: 'NEVER',\n 513: 'LESS',\n 514: 'EQUAL',\n 515: 'LEQUAL',\n 516: 'GREATER',\n 517: 'NOTEQUAL',\n 518: 'GEQUAL',\n 519: 'ALWAYS',\n 768: 'SRC_COLOR',\n 769: 'ONE_MINUS_SRC_COLOR',\n 770: 'SRC_ALPHA',\n 771: 'ONE_MINUS_SRC_ALPHA',\n 772: 'DST_ALPHA',\n 773: 'ONE_MINUS_DST_ALPHA',\n 774: 'DST_COLOR',\n 775: 'ONE_MINUS_DST_COLOR',\n 776: 'SRC_ALPHA_SATURATE',\n 1024: 'STENCIL_BUFFER_BIT',\n 1028: 'FRONT',\n 1029: 'BACK',\n 1032: 'FRONT_AND_BACK',\n 1280: 'INVALID_ENUM',\n 1281: 'INVALID_VALUE',\n 1282: 'INVALID_OPERATION',\n 1285: 'OUT_OF_MEMORY',\n 1286: 'INVALID_FRAMEBUFFER_OPERATION',\n 2304: 'CW',\n 2305: 'CCW',\n 2849: 'LINE_WIDTH',\n 2884: 'CULL_FACE',\n 2885: 'CULL_FACE_MODE',\n 2886: 'FRONT_FACE',\n 2928: 'DEPTH_RANGE',\n 2929: 'DEPTH_TEST',\n 2930: 'DEPTH_WRITEMASK',\n 2931: 'DEPTH_CLEAR_VALUE',\n 2932: 'DEPTH_FUNC',\n 2960: 'STENCIL_TEST',\n 2961: 'STENCIL_CLEAR_VALUE',\n 2962: 'STENCIL_FUNC',\n 2963: 'STENCIL_VALUE_MASK',\n 2964: 'STENCIL_FAIL',\n 2965: 'STENCIL_PASS_DEPTH_FAIL',\n 2966: 'STENCIL_PASS_DEPTH_PASS',\n 2967: 'STENCIL_REF',\n 2968: 'STENCIL_WRITEMASK',\n 2978: 'VIEWPORT',\n 3024: 'DITHER',\n 3042: 'BLEND',\n 3088: 'SCISSOR_BOX',\n 3089: 'SCISSOR_TEST',\n 3106: 'COLOR_CLEAR_VALUE',\n 3107: 'COLOR_WRITEMASK',\n 3317: 'UNPACK_ALIGNMENT',\n 3333: 'PACK_ALIGNMENT',\n 3379: 'MAX_TEXTURE_SIZE',\n 3386: 'MAX_VIEWPORT_DIMS',\n 3408: 'SUBPIXEL_BITS',\n 3410: 'RED_BITS',\n 3411: 'GREEN_BITS',\n 3412: 'BLUE_BITS',\n 3413: 'ALPHA_BITS',\n 3414: 'DEPTH_BITS',\n 3415: 'STENCIL_BITS',\n 3553: 'TEXTURE_2D',\n 4352: 'DONT_CARE',\n 4353: 'FASTEST',\n 4354: 'NICEST',\n 5120: 'BYTE',\n 5121: 'UNSIGNED_BYTE',\n 5122: 'SHORT',\n 5123: 'UNSIGNED_SHORT',\n 5124: 'INT',\n 5125: 'UNSIGNED_INT',\n 5126: 'FLOAT',\n 5386: 'INVERT',\n 5890: 'TEXTURE',\n 6401: 'STENCIL_INDEX',\n 6402: 'DEPTH_COMPONENT',\n 6406: 'ALPHA',\n 6407: 'RGB',\n 6408: 'RGBA',\n 6409: 'LUMINANCE',\n 6410: 'LUMINANCE_ALPHA',\n 7680: 'KEEP',\n 7681: 'REPLACE',\n 7682: 'INCR',\n 7683: 'DECR',\n 7936: 'VENDOR',\n 7937: 'RENDERER',\n 7938: 'VERSION',\n 9728: 'NEAREST',\n 9729: 'LINEAR',\n 9984: 'NEAREST_MIPMAP_NEAREST',\n 9985: 'LINEAR_MIPMAP_NEAREST',\n 9986: 'NEAREST_MIPMAP_LINEAR',\n 9987: 'LINEAR_MIPMAP_LINEAR',\n 10240: 'TEXTURE_MAG_FILTER',\n 10241: 'TEXTURE_MIN_FILTER',\n 10242: 'TEXTURE_WRAP_S',\n 10243: 'TEXTURE_WRAP_T',\n 10497: 'REPEAT',\n 10752: 'POLYGON_OFFSET_UNITS',\n 16384: 'COLOR_BUFFER_BIT',\n 32769: 'CONSTANT_COLOR',\n 32770: 'ONE_MINUS_CONSTANT_COLOR',\n 32771: 'CONSTANT_ALPHA',\n 32772: 'ONE_MINUS_CONSTANT_ALPHA',\n 32773: 'BLEND_COLOR',\n 32774: 'FUNC_ADD',\n 32777: 'BLEND_EQUATION_RGB',\n 32778: 'FUNC_SUBTRACT',\n 32779: 'FUNC_REVERSE_SUBTRACT',\n 32819: 'UNSIGNED_SHORT_4_4_4_4',\n 32820: 'UNSIGNED_SHORT_5_5_5_1',\n 32823: 'POLYGON_OFFSET_FILL',\n 32824: 'POLYGON_OFFSET_FACTOR',\n 32854: 'RGBA4',\n 32855: 'RGB5_A1',\n 32873: 'TEXTURE_BINDING_2D',\n 32926: 'SAMPLE_ALPHA_TO_COVERAGE',\n 32928: 'SAMPLE_COVERAGE',\n 32936: 'SAMPLE_BUFFERS',\n 32937: 'SAMPLES',\n 32938: 'SAMPLE_COVERAGE_VALUE',\n 32939: 'SAMPLE_COVERAGE_INVERT',\n 32968: 'BLEND_DST_RGB',\n 32969: 'BLEND_SRC_RGB',\n 32970: 'BLEND_DST_ALPHA',\n 32971: 'BLEND_SRC_ALPHA',\n 33071: 'CLAMP_TO_EDGE',\n 33170: 'GENERATE_MIPMAP_HINT',\n 33189: 'DEPTH_COMPONENT16',\n 33306: 'DEPTH_STENCIL_ATTACHMENT',\n 33635: 'UNSIGNED_SHORT_5_6_5',\n 33648: 'MIRRORED_REPEAT',\n 33901: 'ALIASED_POINT_SIZE_RANGE',\n 33902: 'ALIASED_LINE_WIDTH_RANGE',\n 33984: 'TEXTURE0',\n 33985: 'TEXTURE1',\n 33986: 'TEXTURE2',\n 33987: 'TEXTURE3',\n 33988: 'TEXTURE4',\n 33989: 'TEXTURE5',\n 33990: 'TEXTURE6',\n 33991: 'TEXTURE7',\n 33992: 'TEXTURE8',\n 33993: 'TEXTURE9',\n 33994: 'TEXTURE10',\n 33995: 'TEXTURE11',\n 33996: 'TEXTURE12',\n 33997: 'TEXTURE13',\n 33998: 'TEXTURE14',\n 33999: 'TEXTURE15',\n 34000: 'TEXTURE16',\n 34001: 'TEXTURE17',\n 34002: 'TEXTURE18',\n 34003: 'TEXTURE19',\n 34004: 'TEXTURE20',\n 34005: 'TEXTURE21',\n 34006: 'TEXTURE22',\n 34007: 'TEXTURE23',\n 34008: 'TEXTURE24',\n 34009: 'TEXTURE25',\n 34010: 'TEXTURE26',\n 34011: 'TEXTURE27',\n 34012: 'TEXTURE28',\n 34013: 'TEXTURE29',\n 34014: 'TEXTURE30',\n 34015: 'TEXTURE31',\n 34016: 'ACTIVE_TEXTURE',\n 34024: 'MAX_RENDERBUFFER_SIZE',\n 34041: 'DEPTH_STENCIL',\n 34055: 'INCR_WRAP',\n 34056: 'DECR_WRAP',\n 34067: 'TEXTURE_CUBE_MAP',\n 34068: 'TEXTURE_BINDING_CUBE_MAP',\n 34069: 'TEXTURE_CUBE_MAP_POSITIVE_X',\n 34070: 'TEXTURE_CUBE_MAP_NEGATIVE_X',\n 34071: 'TEXTURE_CUBE_MAP_POSITIVE_Y',\n 34072: 'TEXTURE_CUBE_MAP_NEGATIVE_Y',\n 34073: 'TEXTURE_CUBE_MAP_POSITIVE_Z',\n 34074: 'TEXTURE_CUBE_MAP_NEGATIVE_Z',\n 34076: 'MAX_CUBE_MAP_TEXTURE_SIZE',\n 34338: 'VERTEX_ATTRIB_ARRAY_ENABLED',\n 34339: 'VERTEX_ATTRIB_ARRAY_SIZE',\n 34340: 'VERTEX_ATTRIB_ARRAY_STRIDE',\n 34341: 'VERTEX_ATTRIB_ARRAY_TYPE',\n 34342: 'CURRENT_VERTEX_ATTRIB',\n 34373: 'VERTEX_ATTRIB_ARRAY_POINTER',\n 34466: 'NUM_COMPRESSED_TEXTURE_FORMATS',\n 34467: 'COMPRESSED_TEXTURE_FORMATS',\n 34660: 'BUFFER_SIZE',\n 34661: 'BUFFER_USAGE',\n 34816: 'STENCIL_BACK_FUNC',\n 34817: 'STENCIL_BACK_FAIL',\n 34818: 'STENCIL_BACK_PASS_DEPTH_FAIL',\n 34819: 'STENCIL_BACK_PASS_DEPTH_PASS',\n 34877: 'BLEND_EQUATION_ALPHA',\n 34921: 'MAX_VERTEX_ATTRIBS',\n 34922: 'VERTEX_ATTRIB_ARRAY_NORMALIZED',\n 34930: 'MAX_TEXTURE_IMAGE_UNITS',\n 34962: 'ARRAY_BUFFER',\n 34963: 'ELEMENT_ARRAY_BUFFER',\n 34964: 'ARRAY_BUFFER_BINDING',\n 34965: 'ELEMENT_ARRAY_BUFFER_BINDING',\n 34975: 'VERTEX_ATTRIB_ARRAY_BUFFER_BINDING',\n 35040: 'STREAM_DRAW',\n 35044: 'STATIC_DRAW',\n 35048: 'DYNAMIC_DRAW',\n 35632: 'FRAGMENT_SHADER',\n 35633: 'VERTEX_SHADER',\n 35660: 'MAX_VERTEX_TEXTURE_IMAGE_UNITS',\n 35661: 'MAX_COMBINED_TEXTURE_IMAGE_UNITS',\n 35663: 'SHADER_TYPE',\n 35664: 'FLOAT_VEC2',\n 35665: 'FLOAT_VEC3',\n 35666: 'FLOAT_VEC4',\n 35667: 'INT_VEC2',\n 35668: 'INT_VEC3',\n 35669: 'INT_VEC4',\n 35670: 'BOOL',\n 35671: 'BOOL_VEC2',\n 35672: 'BOOL_VEC3',\n 35673: 'BOOL_VEC4',\n 35674: 'FLOAT_MAT2',\n 35675: 'FLOAT_MAT3',\n 35676: 'FLOAT_MAT4',\n 35678: 'SAMPLER_2D',\n 35680: 'SAMPLER_CUBE',\n 35712: 'DELETE_STATUS',\n 35713: 'COMPILE_STATUS',\n 35714: 'LINK_STATUS',\n 35715: 'VALIDATE_STATUS',\n 35716: 'INFO_LOG_LENGTH',\n 35717: 'ATTACHED_SHADERS',\n 35718: 'ACTIVE_UNIFORMS',\n 35719: 'ACTIVE_UNIFORM_MAX_LENGTH',\n 35720: 'SHADER_SOURCE_LENGTH',\n 35721: 'ACTIVE_ATTRIBUTES',\n 35722: 'ACTIVE_ATTRIBUTE_MAX_LENGTH',\n 35724: 'SHADING_LANGUAGE_VERSION',\n 35725: 'CURRENT_PROGRAM',\n 36003: 'STENCIL_BACK_REF',\n 36004: 'STENCIL_BACK_VALUE_MASK',\n 36005: 'STENCIL_BACK_WRITEMASK',\n 36006: 'FRAMEBUFFER_BINDING',\n 36007: 'RENDERBUFFER_BINDING',\n 36048: 'FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE',\n 36049: 'FRAMEBUFFER_ATTACHMENT_OBJECT_NAME',\n 36050: 'FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL',\n 36051: 'FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE',\n 36053: 'FRAMEBUFFER_COMPLETE',\n 36054: 'FRAMEBUFFER_INCOMPLETE_ATTACHMENT',\n 36055: 'FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT',\n 36057: 'FRAMEBUFFER_INCOMPLETE_DIMENSIONS',\n 36061: 'FRAMEBUFFER_UNSUPPORTED',\n 36064: 'COLOR_ATTACHMENT0',\n 36096: 'DEPTH_ATTACHMENT',\n 36128: 'STENCIL_ATTACHMENT',\n 36160: 'FRAMEBUFFER',\n 36161: 'RENDERBUFFER',\n 36162: 'RENDERBUFFER_WIDTH',\n 36163: 'RENDERBUFFER_HEIGHT',\n 36164: 'RENDERBUFFER_INTERNAL_FORMAT',\n 36168: 'STENCIL_INDEX8',\n 36176: 'RENDERBUFFER_RED_SIZE',\n 36177: 'RENDERBUFFER_GREEN_SIZE',\n 36178: 'RENDERBUFFER_BLUE_SIZE',\n 36179: 'RENDERBUFFER_ALPHA_SIZE',\n 36180: 'RENDERBUFFER_DEPTH_SIZE',\n 36181: 'RENDERBUFFER_STENCIL_SIZE',\n 36194: 'RGB565',\n 36336: 'LOW_FLOAT',\n 36337: 'MEDIUM_FLOAT',\n 36338: 'HIGH_FLOAT',\n 36339: 'LOW_INT',\n 36340: 'MEDIUM_INT',\n 36341: 'HIGH_INT',\n 36346: 'SHADER_COMPILER',\n 36347: 'MAX_VERTEX_UNIFORM_VECTORS',\n 36348: 'MAX_VARYING_VECTORS',\n 36349: 'MAX_FRAGMENT_UNIFORM_VECTORS',\n 37440: 'UNPACK_FLIP_Y_WEBGL',\n 37441: 'UNPACK_PREMULTIPLY_ALPHA_WEBGL',\n 37442: 'CONTEXT_LOST_WEBGL',\n 37443: 'UNPACK_COLORSPACE_CONVERSION_WEBGL',\n 37444: 'BROWSER_DEFAULT_WEBGL'\n}\n\n},{}],83:[function(_glvis_,module,exports){\nvar gl10 = _glvis_('./1.0/numbers')\n\nmodule.exports = function lookupConstant (number) {\n return gl10[number]\n}\n\n},{\"./1.0/numbers\":82}],84:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createErrorBars\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createShader = _glvis_('./shaders/index')\n\nvar IDENTITY = [1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\nfunction ErrorBars(gl, buffer, vao, shader) {\n this.gl = gl\n this.shader = shader\n this.buffer = buffer\n this.vao = vao\n this.pixelRatio = 1\n this.bounds = [[ Infinity, Infinity, Infinity], [-Infinity,-Infinity,-Infinity]]\n this.clipBounds = [[-Infinity,-Infinity,-Infinity], [ Infinity, Infinity, Infinity]]\n this.lineWidth = [1,1,1]\n this.capSize = [10,10,10]\n this.lineCount = [0,0,0]\n this.lineOffset = [0,0,0]\n this.opacity = 1\n this.hasAlpha = false\n}\n\nvar proto = ErrorBars.prototype\n\nproto.isOpaque = function() {\n return !this.hasAlpha\n}\n\nproto.isTransparent = function() {\n return this.hasAlpha\n}\n\nproto.drawTransparent = proto.draw = function(cameraParams) {\n var gl = this.gl\n var uniforms = this.shader.uniforms\n\n this.shader.bind()\n var view = uniforms.view = cameraParams.view || IDENTITY\n var projection = uniforms.projection = cameraParams.projection || IDENTITY\n uniforms.model = cameraParams.model || IDENTITY\n uniforms.clipBounds = this.clipBounds\n uniforms.opacity = this.opacity\n\n\n var cx = view[12]\n var cy = view[13]\n var cz = view[14]\n var cw = view[15]\n\n var isOrtho = cameraParams._ortho || false\n var orthoFix = (isOrtho) ? 2 : 1 // double up padding for orthographic ticks & labels\n var pixelScaleF = orthoFix * this.pixelRatio * (projection[3]*cx + projection[7]*cy + projection[11]*cz + projection[15]*cw) / gl.drawingBufferHeight\n\n this.vao.bind()\n for(var i=0; i<3; ++i) {\n gl.lineWidth(this.lineWidth[i] * this.pixelRatio)\n uniforms.capSize = this.capSize[i] * pixelScaleF\n if (this.lineCount[i]) {\n gl.drawArrays(gl.LINES, this.lineOffset[i], this.lineCount[i])\n }\n }\n this.vao.unbind()\n}\n\nfunction updateBounds(bounds, point) {\n for(var i=0; i<3; ++i) {\n bounds[0][i] = Math.min(bounds[0][i], point[i])\n bounds[1][i] = Math.max(bounds[1][i], point[i])\n }\n}\n\nvar FACE_TABLE = (function(){\n var table = new Array(3)\n for(var d=0; d<3; ++d) {\n var row = []\n for(var j=1; j<=2; ++j) {\n for(var s=-1; s<=1; s+=2) {\n var u = (j+d) % 3\n var y = [0,0,0]\n y[u] = s\n row.push(y)\n }\n }\n table[d] = row\n }\n return table\n})()\n\n\nfunction emitFace(verts, x, c, d) {\n var offsets = FACE_TABLE[d]\n for(var i=0; i 0) {\n var x = p.slice()\n x[j] += e[1][j]\n verts.push(p[0], p[1], p[2],\n c[0], c[1], c[2], c[3],\n 0, 0, 0,\n x[0], x[1], x[2],\n c[0], c[1], c[2], c[3],\n 0, 0, 0)\n updateBounds(this.bounds, x)\n vertexCount += 2 + emitFace(verts, x, c, j)\n }\n }\n this.lineCount[j] = vertexCount - this.lineOffset[j]\n }\n this.buffer.update(verts)\n }\n}\n\nproto.dispose = function() {\n this.shader.dispose()\n this.buffer.dispose()\n this.vao.dispose()\n}\n\nfunction createErrorBars(options) {\n var gl = options.gl\n var buffer = createBuffer(gl)\n var vao = createVAO(gl, [\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 0,\n stride: 40\n },\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 4,\n offset: 12,\n stride: 40\n },\n {\n buffer: buffer,\n type: gl.FLOAT,\n size: 3,\n offset: 28,\n stride: 40\n }\n ])\n\n var shader = createShader(gl)\n shader.attributes.position.location = 0\n shader.attributes.color.location = 1\n shader.attributes.offset.location = 2\n\n var result = new ErrorBars(gl, buffer, vao, shader)\n result.update(options)\n return result\n}\n\n},{\"./shaders/index\":85,\"gl-buffer\":78,\"gl-vao\":150}],85:[function(_glvis_,module,exports){\n'use strict'\n\nvar glslify = _glvis_('glslify')\nvar createShader = _glvis_('gl-shader')\n\nvar vertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, offset;\\nattribute vec4 color;\\nuniform mat4 model, view, projection;\\nuniform float capSize;\\nvarying vec4 fragColor;\\nvarying vec3 fragPosition;\\n\\nvoid main() {\\n vec4 worldPosition = model * vec4(position, 1.0);\\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\\n gl_Position = projection * view * worldPosition;\\n fragColor = color;\\n fragPosition = position;\\n}\"])\nvar fragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float opacity;\\nvarying vec3 fragPosition;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (\\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\\n fragColor.a * opacity == 0.\\n ) discard;\\n\\n gl_FragColor = opacity * fragColor;\\n}\"])\n\nmodule.exports = function(gl) {\n return createShader(gl, vertSrc, fragSrc, null, [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'offset', type: 'vec3'}\n ])\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],86:[function(_glvis_,module,exports){\n'use strict'\n\nvar createTexture = _glvis_('gl-texture2d')\n\nmodule.exports = createFBO\n\nvar colorAttachmentArrays = null\nvar FRAMEBUFFER_UNSUPPORTED\nvar FRAMEBUFFER_INCOMPLETE_ATTACHMENT\nvar FRAMEBUFFER_INCOMPLETE_DIMENSIONS\nvar FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\n\nfunction saveFBOState(gl) {\n var fbo = gl.getParameter(gl.FRAMEBUFFER_BINDING)\n var rbo = gl.getParameter(gl.RENDERBUFFER_BINDING)\n var tex = gl.getParameter(gl.TEXTURE_BINDING_2D)\n return [fbo, rbo, tex]\n}\n\nfunction restoreFBOState(gl, data) {\n gl.bindFramebuffer(gl.FRAMEBUFFER, data[0])\n gl.bindRenderbuffer(gl.RENDERBUFFER, data[1])\n gl.bindTexture(gl.TEXTURE_2D, data[2])\n}\n\nfunction lazyInitColorAttachments(gl, ext) {\n var maxColorAttachments = gl.getParameter(ext.MAX_COLOR_ATTACHMENTS_WEBGL)\n colorAttachmentArrays = new Array(maxColorAttachments + 1)\n for(var i=0; i<=maxColorAttachments; ++i) {\n var x = new Array(maxColorAttachments)\n for(var j=0; j 1) {\n ext.drawBuffersWEBGL(colorAttachmentArrays[numColors])\n }\n\n //Allocate depth/stencil buffers\n var WEBGL_depth_texture = gl.getExtension('WEBGL_depth_texture')\n if(WEBGL_depth_texture) {\n if(useStencil) {\n fbo.depth = initTexture(gl, width, height,\n WEBGL_depth_texture.UNSIGNED_INT_24_8_WEBGL,\n gl.DEPTH_STENCIL,\n gl.DEPTH_STENCIL_ATTACHMENT)\n } else if(useDepth) {\n fbo.depth = initTexture(gl, width, height,\n gl.UNSIGNED_SHORT,\n gl.DEPTH_COMPONENT,\n gl.DEPTH_ATTACHMENT)\n }\n } else {\n if(useDepth && useStencil) {\n fbo._depth_rb = initRenderBuffer(gl, width, height, gl.DEPTH_STENCIL, gl.DEPTH_STENCIL_ATTACHMENT)\n } else if(useDepth) {\n fbo._depth_rb = initRenderBuffer(gl, width, height, gl.DEPTH_COMPONENT16, gl.DEPTH_ATTACHMENT)\n } else if(useStencil) {\n fbo._depth_rb = initRenderBuffer(gl, width, height, gl.STENCIL_INDEX, gl.STENCIL_ATTACHMENT)\n }\n }\n\n //Check frame buffer state\n var status = gl.checkFramebufferStatus(gl.FRAMEBUFFER)\n if(status !== gl.FRAMEBUFFER_COMPLETE) {\n\n //Release all partially allocated resources\n fbo._destroyed = true\n\n //Release all resources\n gl.bindFramebuffer(gl.FRAMEBUFFER, null)\n gl.deleteFramebuffer(fbo.handle)\n fbo.handle = null\n if(fbo.depth) {\n fbo.depth.dispose()\n fbo.depth = null\n }\n if(fbo._depth_rb) {\n gl.deleteRenderbuffer(fbo._depth_rb)\n fbo._depth_rb = null\n }\n for(var i=0; i maxFBOSize ||\n h < 0 || h > maxFBOSize) {\n throw new Error('gl-fbo: Can\\'t resize FBO, invalid dimensions')\n }\n\n //Update shape\n fbo._shape[0] = w\n fbo._shape[1] = h\n\n //Save framebuffer state\n var state = saveFBOState(gl)\n\n //Resize framebuffer attachments\n for(var i=0; i maxFBOSize || height < 0 || height > maxFBOSize) {\n throw new Error('gl-fbo: Parameters are too large for FBO')\n }\n\n //Handle each option type\n options = options || {}\n\n //Figure out number of color buffers to use\n var numColors = 1\n if('color' in options) {\n numColors = Math.max(options.color|0, 0)\n if(numColors < 0) {\n throw new Error('gl-fbo: Must specify a nonnegative number of colors')\n }\n if(numColors > 1) {\n //Check if multiple render targets supported\n if(!WEBGL_draw_buffers) {\n throw new Error('gl-fbo: Multiple draw buffer extension not supported')\n } else if(numColors > gl.getParameter(WEBGL_draw_buffers.MAX_COLOR_ATTACHMENTS_WEBGL)) {\n throw new Error('gl-fbo: Context does not support ' + numColors + ' draw buffers')\n }\n }\n }\n\n //Determine whether to use floating point textures\n var colorType = gl.UNSIGNED_BYTE\n var OES_texture_float = gl.getExtension('OES_texture_float')\n if(options.float && numColors > 0) {\n if(!OES_texture_float) {\n throw new Error('gl-fbo: Context does not support floating point textures')\n }\n colorType = gl.FLOAT\n } else if(options.preferFloat && numColors > 0) {\n if(OES_texture_float) {\n colorType = gl.FLOAT\n }\n }\n\n //Check if we should use depth buffer\n var useDepth = true\n if('depth' in options) {\n useDepth = !!options.depth\n }\n\n //Check if we should use a stencil buffer\n var useStencil = false\n if('stencil' in options) {\n useStencil = !!options.stencil\n }\n\n return new Framebuffer(\n gl,\n width,\n height,\n colorType,\n numColors,\n useDepth,\n useStencil,\n WEBGL_draw_buffers)\n}\n\n},{\"gl-texture2d\":146}],87:[function(_glvis_,module,exports){\n\nvar sprintf = _glvis_('sprintf-js').sprintf;\nvar glConstants = _glvis_('gl-constants/lookup');\nvar shaderName = _glvis_('glsl-shader-name');\nvar addLineNumbers = _glvis_('add-line-numbers');\n\nmodule.exports = formatCompilerError;\n\nfunction formatCompilerError(errLog, src, type) {\n \"use strict\";\n\n var name = shaderName(src) || 'of unknown name (see npm glsl-shader-name)';\n\n var typeName = 'unknown type';\n if (type !== undefined) {\n typeName = type === glConstants.FRAGMENT_SHADER ? 'fragment' : 'vertex'\n }\n\n var longForm = sprintf('Error compiling %s shader %s:\\n', typeName, name);\n var shortForm = sprintf(\"%s%s\", longForm, errLog);\n\n var errorStrings = errLog.split('\\n');\n var errors = {};\n\n for (var i = 0; i < errorStrings.length; i++) {\n var errorString = errorStrings[i];\n if (errorString === '' || errorString === \"\\0\") continue;\n var lineNo = parseInt(errorString.split(':')[2]);\n if (isNaN(lineNo)) {\n throw new Error(sprintf('Could not parse error: %s', errorString));\n }\n errors[lineNo] = errorString;\n }\n\n var lines = addLineNumbers(src).split('\\n');\n\n for (var i = 0; i < lines.length; i++) {\n if (!errors[i+3] && !errors[i+2] && !errors[i+1]) continue;\n var line = lines[i];\n longForm += line + '\\n';\n if (errors[i+1]) {\n var e = errors[i+1];\n e = e.substr(e.split(':', 3).join(':').length + 1).trim();\n longForm += sprintf('^^^ %s\\n\\n', e);\n }\n }\n\n return {\n long: longForm.trim(),\n short: shortForm.trim()\n };\n}\n\n\n},{\"add-line-numbers\":9,\"gl-constants/lookup\":83,\"glsl-shader-name\":223,\"sprintf-js\":301}],88:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createHeatmap2D\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar iota = _glvis_('iota-array')\nvar pool = _glvis_('typedarray-pool')\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\n\nvar shaders = _glvis_('./lib/shaders')\n\nfunction GLHeatmap2D (\n plot,\n shader,\n pickShader,\n positionBuffer,\n weightBuffer,\n colorBuffer,\n idBuffer) {\n this.plot = plot\n this.shader = shader\n this.pickShader = pickShader\n this.positionBuffer = positionBuffer\n this.weightBuffer = weightBuffer\n this.colorBuffer = colorBuffer\n this.idBuffer = idBuffer\n this.xData = []\n this.yData = []\n this.shape = [0, 0]\n this.bounds = [Infinity, Infinity, -Infinity, -Infinity]\n this.pickOffset = 0\n}\n\nvar proto = GLHeatmap2D.prototype\n\nvar WEIGHTS = [\n 0, 0,\n 1, 0,\n 0, 1,\n 1, 0,\n 1, 1,\n 0, 1\n]\n\nproto.draw = (function () {\n var MATRIX = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 1\n ]\n\n return function () {\n var plot = this.plot\n var shader = this.shader\n var bounds = this.bounds\n var numVertices = this.numVertices\n\n if (numVertices <= 0) {\n return\n }\n\n var gl = plot.gl\n var dataBox = plot.dataBox\n\n var boundX = bounds[2] - bounds[0]\n var boundY = bounds[3] - bounds[1]\n var dataX = dataBox[2] - dataBox[0]\n var dataY = dataBox[3] - dataBox[1]\n\n MATRIX[0] = 2.0 * boundX / dataX\n MATRIX[4] = 2.0 * boundY / dataY\n MATRIX[6] = 2.0 * (bounds[0] - dataBox[0]) / dataX - 1.0\n MATRIX[7] = 2.0 * (bounds[1] - dataBox[1]) / dataY - 1.0\n\n shader.bind()\n\n var uniforms = shader.uniforms\n uniforms.viewTransform = MATRIX\n\n uniforms.shape = this.shape\n\n var attributes = shader.attributes\n this.positionBuffer.bind()\n attributes.position.pointer()\n\n this.weightBuffer.bind()\n attributes.weight.pointer(gl.UNSIGNED_BYTE, false)\n\n this.colorBuffer.bind()\n attributes.color.pointer(gl.UNSIGNED_BYTE, true)\n\n gl.drawArrays(gl.TRIANGLES, 0, numVertices)\n }\n})()\n\nproto.drawPick = (function () {\n var MATRIX = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 1\n ]\n\n var PICK_VECTOR = [0, 0, 0, 0]\n\n return function (pickOffset) {\n var plot = this.plot\n var shader = this.pickShader\n var bounds = this.bounds\n var numVertices = this.numVertices\n\n if (numVertices <= 0) {\n return\n }\n\n var gl = plot.gl\n var dataBox = plot.dataBox\n\n var boundX = bounds[2] - bounds[0]\n var boundY = bounds[3] - bounds[1]\n var dataX = dataBox[2] - dataBox[0]\n var dataY = dataBox[3] - dataBox[1]\n\n MATRIX[0] = 2.0 * boundX / dataX\n MATRIX[4] = 2.0 * boundY / dataY\n MATRIX[6] = 2.0 * (bounds[0] - dataBox[0]) / dataX - 1.0\n MATRIX[7] = 2.0 * (bounds[1] - dataBox[1]) / dataY - 1.0\n\n for (var i = 0; i < 4; ++i) {\n PICK_VECTOR[i] = (pickOffset >> (i * 8)) & 0xff\n }\n\n this.pickOffset = pickOffset\n\n shader.bind()\n\n var uniforms = shader.uniforms\n uniforms.viewTransform = MATRIX\n uniforms.pickOffset = PICK_VECTOR\n uniforms.shape = this.shape\n\n var attributes = shader.attributes\n this.positionBuffer.bind()\n attributes.position.pointer()\n\n this.weightBuffer.bind()\n attributes.weight.pointer(gl.UNSIGNED_BYTE, false)\n\n this.idBuffer.bind()\n attributes.pickId.pointer(gl.UNSIGNED_BYTE, false)\n\n gl.drawArrays(gl.TRIANGLES, 0, numVertices)\n\n return pickOffset + this.shape[0] * this.shape[1]\n }\n})()\n\nproto.pick = function (x, y, value) {\n var pickOffset = this.pickOffset\n var pointCount = this.shape[0] * this.shape[1]\n if (value < pickOffset || value >= pickOffset + pointCount) {\n return null\n }\n var pointId = value - pickOffset\n var xData = this.xData\n var yData = this.yData\n return {\n object: this,\n pointId: pointId,\n dataCoord: [\n xData[pointId % this.shape[0]],\n yData[(pointId / this.shape[0]) | 0]]\n }\n}\n\nproto.update = function (options) {\n options = options || {}\n\n var shape = options.shape || [0, 0]\n\n var x = options.x || iota(shape[0])\n var y = options.y || iota(shape[1])\n var z = options.z || new Float32Array(shape[0] * shape[1])\n\n var isSmooth = options.zsmooth !== false\n\n this.xData = x\n this.yData = y\n\n var colorLevels = options.colorLevels || [0]\n var colorValues = options.colorValues || [0, 0, 0, 1]\n var colorCount = colorLevels.length\n\n var bounds = this.bounds\n var lox, loy, hix, hiy\n if (isSmooth) {\n lox = bounds[0] = x[0]\n loy = bounds[1] = y[0]\n hix = bounds[2] = x[x.length - 1]\n hiy = bounds[3] = y[y.length - 1]\n } else {\n // To get squares to centre on data values\n lox = bounds[0] = x[0] + (x[1] - x[0]) / 2 // starting x value\n loy = bounds[1] = y[0] + (y[1] - y[0]) / 2 // starting y value\n\n // Bounds needs to add half a square on each end\n hix = bounds[2] = x[x.length - 1] + (x[x.length - 1] - x[x.length - 2]) / 2\n hiy = bounds[3] = y[y.length - 1] + (y[y.length - 1] - y[y.length - 2]) / 2\n\n // N.B. Resolution = 1 / range\n }\n var xs = 1.0 / (hix - lox)\n var ys = 1.0 / (hiy - loy)\n\n var numX = shape[0]\n var numY = shape[1]\n\n this.shape = [numX, numY]\n\n var numVerts = (\n isSmooth ? (numX - 1) * (numY - 1) : numX * numY\n ) * (WEIGHTS.length >>> 1)\n\n this.numVertices = numVerts\n\n var colors = pool.mallocUint8(numVerts * 4)\n var positions = pool.mallocFloat32(numVerts * 2)\n var weights = pool.mallocUint8 (numVerts * 2)\n var ids = pool.mallocUint32(numVerts)\n\n var ptr = 0\n\n var ni = isSmooth ? numX - 1 : numX\n var nj = isSmooth ? numY - 1 : numY\n\n for (var j = 0; j < nj; ++j) {\n var yc0, yc1\n\n if (isSmooth) {\n yc0 = ys * (y[j] - loy)\n yc1 = ys * (y[j + 1] - loy)\n } else {\n yc0 = j < numY - 1 ? ys * (y[j] - (y[j + 1] - y[j])/2 - loy) : ys * (y[j] - (y[j] - y[j - 1])/2 - loy)\n yc1 = j < numY - 1 ? ys * (y[j] + (y[j + 1] - y[j])/2 - loy) : ys * (y[j] + (y[j] - y[j - 1])/2 - loy)\n }\n\n for (var i = 0; i < ni; ++i) {\n var xc0, xc1\n\n if (isSmooth) {\n xc0 = xs * (x[i] - lox)\n xc1 = xs * (x[i + 1] - lox)\n } else {\n xc0 = i < numX - 1 ? xs * (x[i] - (x[i + 1] - x[i])/2 - lox) : xs * (x[i] - (x[i] - x[i - 1])/2 - lox)\n xc1 = i < numX - 1 ? xs * (x[i] + (x[i + 1] - x[i])/2 - lox) : xs * (x[i] + (x[i] - x[i - 1])/2 - lox)\n }\n\n for (var dd = 0; dd < WEIGHTS.length; dd += 2) {\n var dx = WEIGHTS[dd]\n var dy = WEIGHTS[dd + 1]\n var offset = isSmooth ? (j + dy) * numX + (i + dx) : j * numX + i\n var zc = z[offset]\n var colorIdx = bsearch.le(colorLevels, zc)\n var r, g, b, a\n if (colorIdx < 0) {\n r = colorValues[0]\n g = colorValues[1]\n b = colorValues[2]\n a = colorValues[3]\n } else if (colorIdx === colorCount - 1) {\n r = colorValues[4 * colorCount - 4]\n g = colorValues[4 * colorCount - 3]\n b = colorValues[4 * colorCount - 2]\n a = colorValues[4 * colorCount - 1]\n } else {\n var t = (zc - colorLevels[colorIdx]) /\n (colorLevels[colorIdx + 1] - colorLevels[colorIdx])\n var ti = 1.0 - t\n var i0 = 4 * colorIdx\n var i1 = 4 * (colorIdx + 1)\n r = ti * colorValues[i0] + t * colorValues[i1]\n g = ti * colorValues[i0 + 1] + t * colorValues[i1 + 1]\n b = ti * colorValues[i0 + 2] + t * colorValues[i1 + 2]\n a = ti * colorValues[i0 + 3] + t * colorValues[i1 + 3]\n }\n\n colors[4 * ptr] = 255 * r\n colors[4 * ptr + 1] = 255 * g\n colors[4 * ptr + 2] = 255 * b\n colors[4 * ptr + 3] = 255 * a\n\n positions[2*ptr] = xc0*.5 + xc1*.5;\n positions[2*ptr+1] = yc0*.5 + yc1*.5;\n\n weights[2*ptr] = dx;\n weights[2*ptr+1] = dy;\n\n ids[ptr] = j * numX + i\n\n ptr += 1\n }\n }\n }\n\n this.positionBuffer.update(positions)\n this.weightBuffer.update(weights)\n this.colorBuffer.update(colors)\n this.idBuffer.update(ids)\n\n pool.free(positions)\n pool.free(colors)\n pool.free(weights)\n pool.free(ids)\n}\n\nproto.dispose = function () {\n this.shader.dispose()\n this.pickShader.dispose()\n this.positionBuffer.dispose()\n this.weightBuffer.dispose()\n this.colorBuffer.dispose()\n this.idBuffer.dispose()\n this.plot.removeObject(this)\n}\n\nfunction createHeatmap2D (plot, options) {\n var gl = plot.gl\n\n var shader = createShader(gl, shaders.vertex, shaders.fragment)\n var pickShader = createShader(gl, shaders.pickVertex, shaders.pickFragment)\n\n var positionBuffer = createBuffer(gl)\n var weightBuffer = createBuffer(gl)\n var colorBuffer = createBuffer(gl)\n var idBuffer = createBuffer(gl)\n\n var heatmap = new GLHeatmap2D(\n plot,\n shader,\n pickShader,\n positionBuffer,\n weightBuffer,\n colorBuffer,\n idBuffer)\n\n heatmap.update(options)\n plot.addObject(heatmap)\n\n return heatmap\n}\n\n},{\"./lib/shaders\":89,\"binary-search-bounds\":31,\"gl-buffer\":78,\"gl-shader\":132,\"iota-array\":235,\"typedarray-pool\":308}],89:[function(_glvis_,module,exports){\n'use strict'\n\nvar glslify = _glvis_('glslify')\n\nmodule.exports = {\n fragment: glslify([\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\\n}\\n\"]),\n vertex: glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 color;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n fragColor = color;\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"]),\n pickFragment: glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nuniform vec2 shape;\\nuniform vec4 pickOffset;\\n\\nvoid main() {\\n vec2 d = step(.5, vWeight);\\n vec4 id = fragId + pickOffset;\\n id.x += d.x + d.y*shape.x;\\n\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_FragColor = id/255.;\\n}\\n\"]),\n pickVertex: glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nvoid main() {\\n vWeight = weight;\\n\\n fragId = pickId;\\n\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"])\n}\n\n},{\"glslify\":231}],90:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\nvar createShader = _glvis_('gl-shader')\n\nvar vertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, nextPosition;\\nattribute float arcLength, lineWidth;\\nattribute vec4 color;\\n\\nuniform vec2 screenShape;\\nuniform float pixelRatio;\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 fragColor;\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\n\\nvec4 project(vec3 p) {\\n return projection * view * model * vec4(p, 1.0);\\n}\\n\\nvoid main() {\\n vec4 startPoint = project(position);\\n vec4 endPoint = project(nextPosition);\\n\\n vec2 A = startPoint.xy / startPoint.w;\\n vec2 B = endPoint.xy / endPoint.w;\\n\\n float clipAngle = atan(\\n (B.y - A.y) * screenShape.y,\\n (B.x - A.x) * screenShape.x\\n );\\n\\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\\n sin(clipAngle),\\n -cos(clipAngle)\\n ) / screenShape;\\n\\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\\n\\n worldPosition = position;\\n pixelArcLength = arcLength;\\n fragColor = color;\\n}\\n\"])\nvar forwardFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D dashTexture;\\nuniform float dashScale;\\nuniform float opacity;\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (\\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\\n fragColor.a * opacity == 0.\\n ) discard;\\n\\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\\n if(dashWeight < 0.5) {\\n discard;\\n }\\n gl_FragColor = fragColor * opacity;\\n}\\n\"])\nvar pickFrag = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\n#define FLOAT_MAX 1.70141184e38\\n#define FLOAT_MIN 1.17549435e-38\\n\\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\\nvec4 packFloat(float v) {\\n float av = abs(v);\\n\\n //Handle special cases\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\\n }\\n\\n vec4 c = vec4(0,0,0,0);\\n\\n //Compute exponent and mantissa\\n float e = floor(log2(av));\\n float m = av * pow(2.0, -e) - 1.0;\\n\\n //Unpack mantissa\\n c[1] = floor(128.0 * m);\\n m -= c[1] / 128.0;\\n c[2] = floor(32768.0 * m);\\n m -= c[2] / 32768.0;\\n c[3] = floor(8388608.0 * m);\\n\\n //Unpack exponent\\n float ebias = e + 127.0;\\n c[0] = floor(ebias / 2.0);\\n ebias -= c[0] * 2.0;\\n c[1] += floor(ebias) * 128.0;\\n\\n //Unpack sign bit\\n c[0] += 128.0 * step(0.0, -v);\\n\\n //Scale back to range\\n return c / 255.0;\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform float pickId;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\\n\\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\\n}\"])\n\nvar ATTRIBUTES = [\n {name: 'position', type: 'vec3'},\n {name: 'nextPosition', type: 'vec3'},\n {name: 'arcLength', type: 'float'},\n {name: 'lineWidth', type: 'float'},\n {name: 'color', type: 'vec4'}\n]\n\nexports.createShader = function(gl) {\n return createShader(gl, vertSrc, forwardFrag, null, ATTRIBUTES)\n}\n\nexports.createPickShader = function(gl) {\n return createShader(gl, vertSrc, pickFrag, null, ATTRIBUTES)\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],91:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createLinePlot\n\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\n\nvar UINT8_VIEW = new Uint8Array(4)\nvar FLOAT_VIEW = new Float32Array(UINT8_VIEW.buffer)\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.js\nfunction unpackFloat(x, y, z, w) {\n UINT8_VIEW[0] = w\n UINT8_VIEW[1] = z\n UINT8_VIEW[2] = y\n UINT8_VIEW[3] = x\n return FLOAT_VIEW[0]\n}\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar ndarray = _glvis_('ndarray')\nvar shaders = _glvis_('./lib/shaders')\n\nvar createShader = shaders.createShader\nvar createPickShader = shaders.createPickShader\n\nvar identity = [1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1]\n\nfunction distance (a, b) {\n var s = 0.0\n for (var i = 0; i < 3; ++i) {\n var d = a[i] - b[i]\n s += d * d\n }\n return Math.sqrt(s)\n}\n\nfunction filterClipBounds (bounds) {\n var result = [[-1e6, -1e6, -1e6], [1e6, 1e6, 1e6]]\n for (var i = 0; i < 3; ++i) {\n result[0][i] = Math.max(bounds[0][i], result[0][i])\n result[1][i] = Math.min(bounds[1][i], result[1][i])\n }\n return result\n}\n\nfunction PickResult (tau, position, index, dataCoordinate) {\n this.arcLength = tau\n this.position = position\n this.index = index\n this.dataCoordinate = dataCoordinate\n}\n\nfunction LinePlot (gl, shader, pickShader, buffer, vao, texture) {\n this.gl = gl\n this.shader = shader\n this.pickShader = pickShader\n this.buffer = buffer\n this.vao = vao\n this.clipBounds = [\n [ -Infinity, -Infinity, -Infinity ],\n [ Infinity, Infinity, Infinity ]]\n this.points = []\n this.arcLength = []\n this.vertexCount = 0\n this.bounds = [[0, 0, 0], [0, 0, 0]]\n this.pickId = 0\n this.lineWidth = 1\n this.texture = texture\n this.dashScale = 1\n this.opacity = 1\n this.hasAlpha = false\n this.dirty = true\n this.pixelRatio = 1\n}\n\nvar proto = LinePlot.prototype\n\nproto.isTransparent = function () {\n return this.hasAlpha\n}\n\nproto.isOpaque = function () {\n return !this.hasAlpha\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function (id) {\n this.pickId = id\n}\n\nproto.drawTransparent = proto.draw = function (camera) {\n if (!this.vertexCount) return\n var gl = this.gl\n var shader = this.shader\n var vao = this.vao\n shader.bind()\n shader.uniforms = {\n model: camera.model || identity,\n view: camera.view || identity,\n projection: camera.projection || identity,\n clipBounds: filterClipBounds(this.clipBounds),\n dashTexture: this.texture.bind(),\n dashScale: this.dashScale / this.arcLength[this.arcLength.length - 1],\n opacity: this.opacity,\n screenShape: [gl.drawingBufferWidth, gl.drawingBufferHeight],\n pixelRatio: this.pixelRatio\n }\n vao.bind()\n vao.draw(gl.TRIANGLE_STRIP, this.vertexCount)\n vao.unbind()\n}\n\nproto.drawPick = function (camera) {\n if (!this.vertexCount) return\n var gl = this.gl\n var shader = this.pickShader\n var vao = this.vao\n shader.bind()\n shader.uniforms = {\n model: camera.model || identity,\n view: camera.view || identity,\n projection: camera.projection || identity,\n pickId: this.pickId,\n clipBounds: filterClipBounds(this.clipBounds),\n screenShape: [gl.drawingBufferWidth, gl.drawingBufferHeight],\n pixelRatio: this.pixelRatio\n }\n vao.bind()\n vao.draw(gl.TRIANGLE_STRIP, this.vertexCount)\n vao.unbind()\n}\n\nproto.update = function (options) {\n var i, j\n\n this.dirty = true\n\n var connectGaps = !!options.connectGaps\n\n if ('dashScale' in options) {\n this.dashScale = options.dashScale\n }\n\n this.hasAlpha = false // default to no transparent draw\n if ('opacity' in options) {\n this.opacity = +options.opacity\n if(this.opacity < 1) {\n this.hasAlpha = true;\n }\n }\n\n // Recalculate buffer data\n var buffer = []\n var arcLengthArray = []\n var pointArray = []\n var arcLength = 0.0\n var vertexCount = 0\n var bounds = [\n [ Infinity, Infinity, Infinity ],\n [ -Infinity, -Infinity, -Infinity ]]\n\n var positions = options.position || options.positions\n if (positions) {\n\n // Default color\n var colors = options.color || options.colors || [0, 0, 0, 1]\n\n var lineWidth = options.lineWidth || 1\n\n var hadGap = false\n\n fill_loop:\n for (i = 1; i < positions.length; ++i) {\n var a = positions[i - 1]\n var b = positions[i]\n\n arcLengthArray.push(arcLength)\n pointArray.push(a.slice())\n\n for (j = 0; j < 3; ++j) {\n if (isNaN(a[j]) || isNaN(b[j]) ||\n !isFinite(a[j]) || !isFinite(b[j])) {\n\n if (!connectGaps && buffer.length > 0) {\n for (var k = 0; k < 24; ++k) {\n buffer.push(buffer[buffer.length - 12])\n }\n vertexCount += 2\n hadGap = true\n }\n\n continue fill_loop\n }\n bounds[0][j] = Math.min(bounds[0][j], a[j], b[j])\n bounds[1][j] = Math.max(bounds[1][j], a[j], b[j])\n }\n\n var acolor, bcolor\n if (Array.isArray(colors[0])) {\n acolor = (colors.length > i - 1) ? colors[i - 1] : // using index value\n (colors.length > 0) ? colors[colors.length - 1] : // using last item\n [0, 0, 0, 1]; // using black\n\n bcolor = (colors.length > i) ? colors[i] : // using index value\n (colors.length > 0) ? colors[colors.length - 1] : // using last item\n [0, 0, 0, 1]; // using black\n } else {\n acolor = bcolor = colors\n }\n\n if (acolor.length === 3) {\n acolor = [acolor[0], acolor[1], acolor[2], 1]\n }\n if (bcolor.length === 3) {\n bcolor = [bcolor[0], bcolor[1], bcolor[2], 1]\n }\n\n if(!this.hasAlpha && acolor[3] < 1) this.hasAlpha = true\n\n var w0\n if (Array.isArray(lineWidth)) {\n w0 = (lineWidth.length > i - 1) ? lineWidth[i - 1] : // using index value\n (lineWidth.length > 0) ? lineWidth[lineWidth.length - 1] : // using last item\n [0, 0, 0, 1]; // using black\n } else {\n w0 = lineWidth\n }\n\n var t0 = arcLength\n arcLength += distance(a, b)\n\n if (hadGap) {\n for (j = 0; j < 2; ++j) {\n buffer.push(\n a[0], a[1], a[2], b[0], b[1], b[2], t0, w0, acolor[0], acolor[1], acolor[2], acolor[3])\n }\n vertexCount += 2\n hadGap = false\n }\n\n buffer.push(\n a[0], a[1], a[2], b[0], b[1], b[2], t0, w0, acolor[0], acolor[1], acolor[2], acolor[3],\n a[0], a[1], a[2], b[0], b[1], b[2], t0, -w0, acolor[0], acolor[1], acolor[2], acolor[3],\n b[0], b[1], b[2], a[0], a[1], a[2], arcLength, -w0, bcolor[0], bcolor[1], bcolor[2], bcolor[3],\n b[0], b[1], b[2], a[0], a[1], a[2], arcLength, w0, bcolor[0], bcolor[1], bcolor[2], bcolor[3])\n\n vertexCount += 4\n }\n }\n this.buffer.update(buffer)\n\n arcLengthArray.push(arcLength)\n pointArray.push(positions[positions.length - 1].slice())\n\n this.bounds = bounds\n\n this.vertexCount = vertexCount\n\n this.points = pointArray\n this.arcLength = arcLengthArray\n\n if ('dashes' in options) {\n var dashArray = options.dashes\n\n // Calculate prefix sum\n var prefixSum = dashArray.slice()\n prefixSum.unshift(0)\n for (i = 1; i < prefixSum.length; ++i) {\n prefixSum[i] = prefixSum[i - 1] + prefixSum[i]\n }\n\n var dashTexture = ndarray(new Array(256 * 4), [256, 1, 4])\n for (i = 0; i < 256; ++i) {\n for (j = 0; j < 4; ++j) {\n dashTexture.set(i, 0, j, 0)\n }\n if (bsearch.le(prefixSum, prefixSum[prefixSum.length - 1] * i / 255.0) & 1) {\n dashTexture.set(i, 0, 0, 0)\n } else {\n dashTexture.set(i, 0, 0, 255)\n }\n }\n\n this.texture.setPixels(dashTexture)\n }\n}\n\nproto.dispose = function () {\n this.shader.dispose()\n this.vao.dispose()\n this.buffer.dispose()\n}\n\nproto.pick = function (selection) {\n if (!selection) {\n return null\n }\n if (selection.id !== this.pickId) {\n return null\n }\n var tau = unpackFloat(\n selection.value[0],\n selection.value[1],\n selection.value[2],\n 0)\n var index = bsearch.le(this.arcLength, tau)\n if (index < 0) {\n return null\n }\n if (index === this.arcLength.length - 1) {\n return new PickResult(\n this.arcLength[this.arcLength.length - 1],\n this.points[this.points.length - 1].slice(),\n index)\n }\n var a = this.points[index]\n var b = this.points[Math.min(index + 1, this.points.length - 1)]\n var t = (tau - this.arcLength[index]) / (this.arcLength[index + 1] - this.arcLength[index])\n var ti = 1.0 - t\n var x = [0, 0, 0]\n for (var i = 0; i < 3; ++i) {\n x[i] = ti * a[i] + t * b[i]\n }\n var dataIndex = Math.min((t < 0.5) ? index : (index + 1), this.points.length - 1)\n return new PickResult(\n tau,\n x,\n dataIndex,\n this.points[dataIndex])\n}\n\nfunction createLinePlot (options) {\n var gl = options.gl || (options.scene && options.scene.gl)\n\n var shader = createShader(gl)\n shader.attributes.position.location = 0\n shader.attributes.nextPosition.location = 1\n shader.attributes.arcLength.location = 2\n shader.attributes.lineWidth.location = 3\n shader.attributes.color.location = 4\n\n var pickShader = createPickShader(gl)\n pickShader.attributes.position.location = 0\n pickShader.attributes.nextPosition.location = 1\n pickShader.attributes.arcLength.location = 2\n pickShader.attributes.lineWidth.location = 3\n pickShader.attributes.color.location = 4\n\n var buffer = createBuffer(gl)\n var vao = createVAO(gl, [\n {\n 'buffer': buffer,\n 'size': 3,\n 'offset': 0,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 3,\n 'offset': 12,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 1,\n 'offset': 24,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 1,\n 'offset': 28,\n 'stride': 48\n },\n {\n 'buffer': buffer,\n 'size': 4,\n 'offset': 32,\n 'stride': 48\n }\n ])\n\n // Create texture for dash pattern\n var defaultTexture = ndarray(new Array(256 * 4), [256, 1, 4])\n for (var i = 0; i < 256 * 4; ++i) {\n defaultTexture.data[i] = 255\n }\n var texture = createTexture(gl, defaultTexture)\n texture.wrap = gl.REPEAT\n\n var linePlot = new LinePlot(gl, shader, pickShader, buffer, vao, texture)\n linePlot.update(options)\n return linePlot\n}\n\n},{\"./lib/shaders\":90,\"binary-search-bounds\":31,\"gl-buffer\":78,\"gl-texture2d\":146,\"gl-vao\":150,\"ndarray\":259}],92:[function(_glvis_,module,exports){\nmodule.exports = clone;\n\n/**\n * Creates a new mat4 initialized with values from an existing matrix\n *\n * @param {mat4} a matrix to clone\n * @returns {mat4} a new 4x4 matrix\n */\nfunction clone(a) {\n var out = new Float32Array(16);\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],93:[function(_glvis_,module,exports){\nmodule.exports = create;\n\n/**\n * Creates a new identity mat4\n *\n * @returns {mat4} a new 4x4 matrix\n */\nfunction create() {\n var out = new Float32Array(16);\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n};\n},{}],94:[function(_glvis_,module,exports){\nmodule.exports = determinant;\n\n/**\n * Calculates the determinant of a mat4\n *\n * @param {mat4} a the source matrix\n * @returns {Number} determinant of a\n */\nfunction determinant(a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32;\n\n // Calculate the determinant\n return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n};\n},{}],95:[function(_glvis_,module,exports){\nmodule.exports = fromQuat;\n\n/**\n * Creates a matrix from a quaternion rotation.\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @returns {mat4} out\n */\nfunction fromQuat(out, q) {\n var x = q[0], y = q[1], z = q[2], w = q[3],\n x2 = x + x,\n y2 = y + y,\n z2 = z + z,\n\n xx = x * x2,\n yx = y * x2,\n yy = y * y2,\n zx = z * x2,\n zy = z * y2,\n zz = z * z2,\n wx = w * x2,\n wy = w * y2,\n wz = w * z2;\n\n out[0] = 1 - yy - zz;\n out[1] = yx + wz;\n out[2] = zx - wy;\n out[3] = 0;\n\n out[4] = yx - wz;\n out[5] = 1 - xx - zz;\n out[6] = zy + wx;\n out[7] = 0;\n\n out[8] = zx + wy;\n out[9] = zy - wx;\n out[10] = 1 - xx - yy;\n out[11] = 0;\n\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n\n return out;\n};\n},{}],96:[function(_glvis_,module,exports){\nmodule.exports = fromRotationTranslation;\n\n/**\n * Creates a matrix from a quaternion rotation and vector translation\n * This is equivalent to (but much faster than):\n *\n * mat4.identity(dest);\n * mat4.translate(dest, vec);\n * var quatMat = mat4.create();\n * quat4.toMat4(quat, quatMat);\n * mat4.multiply(dest, quatMat);\n *\n * @param {mat4} out mat4 receiving operation result\n * @param {quat4} q Rotation quaternion\n * @param {vec3} v Translation vector\n * @returns {mat4} out\n */\nfunction fromRotationTranslation(out, q, v) {\n // Quaternion math\n var x = q[0], y = q[1], z = q[2], w = q[3],\n x2 = x + x,\n y2 = y + y,\n z2 = z + z,\n\n xx = x * x2,\n xy = x * y2,\n xz = x * z2,\n yy = y * y2,\n yz = y * z2,\n zz = z * z2,\n wx = w * x2,\n wy = w * y2,\n wz = w * z2;\n\n out[0] = 1 - (yy + zz);\n out[1] = xy + wz;\n out[2] = xz - wy;\n out[3] = 0;\n out[4] = xy - wz;\n out[5] = 1 - (xx + zz);\n out[6] = yz + wx;\n out[7] = 0;\n out[8] = xz + wy;\n out[9] = yz - wx;\n out[10] = 1 - (xx + yy);\n out[11] = 0;\n out[12] = v[0];\n out[13] = v[1];\n out[14] = v[2];\n out[15] = 1;\n \n return out;\n};\n},{}],97:[function(_glvis_,module,exports){\nmodule.exports = identity;\n\n/**\n * Set a mat4 to the identity matrix\n *\n * @param {mat4} out the receiving matrix\n * @returns {mat4} out\n */\nfunction identity(out) {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = 1;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 1;\n out[11] = 0;\n out[12] = 0;\n out[13] = 0;\n out[14] = 0;\n out[15] = 1;\n return out;\n};\n},{}],98:[function(_glvis_,module,exports){\nmodule.exports = invert;\n\n/**\n * Inverts a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction invert(out, a) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32,\n\n // Calculate the determinant\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n\n if (!det) { \n return null; \n }\n det = 1.0 / det;\n\n out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n\n return out;\n};\n},{}],99:[function(_glvis_,module,exports){\nvar identity = _glvis_('./identity');\n\nmodule.exports = lookAt;\n\n/**\n * Generates a look-at matrix with the given eye position, focal point, and up axis\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {vec3} eye Position of the viewer\n * @param {vec3} center Point the viewer is looking at\n * @param {vec3} up vec3 pointing up\n * @returns {mat4} out\n */\nfunction lookAt(out, eye, center, up) {\n var x0, x1, x2, y0, y1, y2, z0, z1, z2, len,\n eyex = eye[0],\n eyey = eye[1],\n eyez = eye[2],\n upx = up[0],\n upy = up[1],\n upz = up[2],\n centerx = center[0],\n centery = center[1],\n centerz = center[2];\n\n if (Math.abs(eyex - centerx) < 0.000001 &&\n Math.abs(eyey - centery) < 0.000001 &&\n Math.abs(eyez - centerz) < 0.000001) {\n return identity(out);\n }\n\n z0 = eyex - centerx;\n z1 = eyey - centery;\n z2 = eyez - centerz;\n\n len = 1 / Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2);\n z0 *= len;\n z1 *= len;\n z2 *= len;\n\n x0 = upy * z2 - upz * z1;\n x1 = upz * z0 - upx * z2;\n x2 = upx * z1 - upy * z0;\n len = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2);\n if (!len) {\n x0 = 0;\n x1 = 0;\n x2 = 0;\n } else {\n len = 1 / len;\n x0 *= len;\n x1 *= len;\n x2 *= len;\n }\n\n y0 = z1 * x2 - z2 * x1;\n y1 = z2 * x0 - z0 * x2;\n y2 = z0 * x1 - z1 * x0;\n\n len = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2);\n if (!len) {\n y0 = 0;\n y1 = 0;\n y2 = 0;\n } else {\n len = 1 / len;\n y0 *= len;\n y1 *= len;\n y2 *= len;\n }\n\n out[0] = x0;\n out[1] = y0;\n out[2] = z0;\n out[3] = 0;\n out[4] = x1;\n out[5] = y1;\n out[6] = z1;\n out[7] = 0;\n out[8] = x2;\n out[9] = y2;\n out[10] = z2;\n out[11] = 0;\n out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez);\n out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez);\n out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez);\n out[15] = 1;\n\n return out;\n};\n},{\"./identity\":97}],100:[function(_glvis_,module,exports){\nmodule.exports = multiply;\n\n/**\n * Multiplies two mat4's\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the first operand\n * @param {mat4} b the second operand\n * @returns {mat4} out\n */\nfunction multiply(out, a, b) {\n var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],\n a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],\n a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11],\n a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];\n\n // Cache only the current line of the second matrix\n var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; \n out[0] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[1] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[2] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[3] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[4]; b1 = b[5]; b2 = b[6]; b3 = b[7];\n out[4] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[5] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[6] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[7] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[8]; b1 = b[9]; b2 = b[10]; b3 = b[11];\n out[8] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[9] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[10] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[11] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n\n b0 = b[12]; b1 = b[13]; b2 = b[14]; b3 = b[15];\n out[12] = b0*a00 + b1*a10 + b2*a20 + b3*a30;\n out[13] = b0*a01 + b1*a11 + b2*a21 + b3*a31;\n out[14] = b0*a02 + b1*a12 + b2*a22 + b3*a32;\n out[15] = b0*a03 + b1*a13 + b2*a23 + b3*a33;\n return out;\n};\n},{}],101:[function(_glvis_,module,exports){\nmodule.exports = ortho;\n\n/**\n * Generates a orthogonal projection matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} left Left bound of the frustum\n * @param {number} right Right bound of the frustum\n * @param {number} bottom Bottom bound of the frustum\n * @param {number} top Top bound of the frustum\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction ortho(out, left, right, bottom, top, near, far) {\n var lr = 1 / (left - right),\n bt = 1 / (bottom - top),\n nf = 1 / (near - far);\n out[0] = -2 * lr;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = -2 * bt;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = 2 * nf;\n out[11] = 0;\n out[12] = (left + right) * lr;\n out[13] = (top + bottom) * bt;\n out[14] = (far + near) * nf;\n out[15] = 1;\n return out;\n};\n},{}],102:[function(_glvis_,module,exports){\nmodule.exports = perspective;\n\n/**\n * Generates a perspective projection matrix with the given bounds\n *\n * @param {mat4} out mat4 frustum matrix will be written into\n * @param {number} fovy Vertical field of view in radians\n * @param {number} aspect Aspect ratio. typically viewport width/height\n * @param {number} near Near bound of the frustum\n * @param {number} far Far bound of the frustum\n * @returns {mat4} out\n */\nfunction perspective(out, fovy, aspect, near, far) {\n var f = 1.0 / Math.tan(fovy / 2),\n nf = 1 / (near - far);\n out[0] = f / aspect;\n out[1] = 0;\n out[2] = 0;\n out[3] = 0;\n out[4] = 0;\n out[5] = f;\n out[6] = 0;\n out[7] = 0;\n out[8] = 0;\n out[9] = 0;\n out[10] = (far + near) * nf;\n out[11] = -1;\n out[12] = 0;\n out[13] = 0;\n out[14] = (2 * far * near) * nf;\n out[15] = 0;\n return out;\n};\n},{}],103:[function(_glvis_,module,exports){\nmodule.exports = rotate;\n\n/**\n * Rotates a mat4 by the given angle\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @param {vec3} axis the axis to rotate around\n * @returns {mat4} out\n */\nfunction rotate(out, a, rad, axis) {\n var x = axis[0], y = axis[1], z = axis[2],\n len = Math.sqrt(x * x + y * y + z * z),\n s, c, t,\n a00, a01, a02, a03,\n a10, a11, a12, a13,\n a20, a21, a22, a23,\n b00, b01, b02,\n b10, b11, b12,\n b20, b21, b22;\n\n if (Math.abs(len) < 0.000001) { return null; }\n \n len = 1 / len;\n x *= len;\n y *= len;\n z *= len;\n\n s = Math.sin(rad);\n c = Math.cos(rad);\n t = 1 - c;\n\n a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3];\n a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7];\n a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11];\n\n // Construct the elements of the rotation matrix\n b00 = x * x * t + c; b01 = y * x * t + z * s; b02 = z * x * t - y * s;\n b10 = x * y * t - z * s; b11 = y * y * t + c; b12 = z * y * t + x * s;\n b20 = x * z * t + y * s; b21 = y * z * t - x * s; b22 = z * z * t + c;\n\n // Perform rotation-specific matrix multiplication\n out[0] = a00 * b00 + a10 * b01 + a20 * b02;\n out[1] = a01 * b00 + a11 * b01 + a21 * b02;\n out[2] = a02 * b00 + a12 * b01 + a22 * b02;\n out[3] = a03 * b00 + a13 * b01 + a23 * b02;\n out[4] = a00 * b10 + a10 * b11 + a20 * b12;\n out[5] = a01 * b10 + a11 * b11 + a21 * b12;\n out[6] = a02 * b10 + a12 * b11 + a22 * b12;\n out[7] = a03 * b10 + a13 * b11 + a23 * b12;\n out[8] = a00 * b20 + a10 * b21 + a20 * b22;\n out[9] = a01 * b20 + a11 * b21 + a21 * b22;\n out[10] = a02 * b20 + a12 * b21 + a22 * b22;\n out[11] = a03 * b20 + a13 * b21 + a23 * b22;\n\n if (a !== out) { // If the source and destination differ, copy the unchanged last row\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n return out;\n};\n},{}],104:[function(_glvis_,module,exports){\nmodule.exports = rotateX;\n\n/**\n * Rotates a matrix by the given angle around the X axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateX(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged rows\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[4] = a10 * c + a20 * s;\n out[5] = a11 * c + a21 * s;\n out[6] = a12 * c + a22 * s;\n out[7] = a13 * c + a23 * s;\n out[8] = a20 * c - a10 * s;\n out[9] = a21 * c - a11 * s;\n out[10] = a22 * c - a12 * s;\n out[11] = a23 * c - a13 * s;\n return out;\n};\n},{}],105:[function(_glvis_,module,exports){\nmodule.exports = rotateY;\n\n/**\n * Rotates a matrix by the given angle around the Y axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateY(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged rows\n out[4] = a[4];\n out[5] = a[5];\n out[6] = a[6];\n out[7] = a[7];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[0] = a00 * c - a20 * s;\n out[1] = a01 * c - a21 * s;\n out[2] = a02 * c - a22 * s;\n out[3] = a03 * c - a23 * s;\n out[8] = a00 * s + a20 * c;\n out[9] = a01 * s + a21 * c;\n out[10] = a02 * s + a22 * c;\n out[11] = a03 * s + a23 * c;\n return out;\n};\n},{}],106:[function(_glvis_,module,exports){\nmodule.exports = rotateZ;\n\n/**\n * Rotates a matrix by the given angle around the Z axis\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to rotate\n * @param {Number} rad the angle to rotate the matrix by\n * @returns {mat4} out\n */\nfunction rotateZ(out, a, rad) {\n var s = Math.sin(rad),\n c = Math.cos(rad),\n a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7];\n\n if (a !== out) { // If the source and destination differ, copy the unchanged last row\n out[8] = a[8];\n out[9] = a[9];\n out[10] = a[10];\n out[11] = a[11];\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n }\n\n // Perform axis-specific matrix multiplication\n out[0] = a00 * c + a10 * s;\n out[1] = a01 * c + a11 * s;\n out[2] = a02 * c + a12 * s;\n out[3] = a03 * c + a13 * s;\n out[4] = a10 * c - a00 * s;\n out[5] = a11 * c - a01 * s;\n out[6] = a12 * c - a02 * s;\n out[7] = a13 * c - a03 * s;\n return out;\n};\n},{}],107:[function(_glvis_,module,exports){\nmodule.exports = scale;\n\n/**\n * Scales the mat4 by the dimensions in the given vec3\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to scale\n * @param {vec3} v the vec3 to scale the matrix by\n * @returns {mat4} out\n **/\nfunction scale(out, a, v) {\n var x = v[0], y = v[1], z = v[2];\n\n out[0] = a[0] * x;\n out[1] = a[1] * x;\n out[2] = a[2] * x;\n out[3] = a[3] * x;\n out[4] = a[4] * y;\n out[5] = a[5] * y;\n out[6] = a[6] * y;\n out[7] = a[7] * y;\n out[8] = a[8] * z;\n out[9] = a[9] * z;\n out[10] = a[10] * z;\n out[11] = a[11] * z;\n out[12] = a[12];\n out[13] = a[13];\n out[14] = a[14];\n out[15] = a[15];\n return out;\n};\n},{}],108:[function(_glvis_,module,exports){\nmodule.exports = translate;\n\n/**\n * Translate a mat4 by the given vector\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the matrix to translate\n * @param {vec3} v vector to translate by\n * @returns {mat4} out\n */\nfunction translate(out, a, v) {\n var x = v[0], y = v[1], z = v[2],\n a00, a01, a02, a03,\n a10, a11, a12, a13,\n a20, a21, a22, a23;\n\n if (a === out) {\n out[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\n out[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\n out[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\n out[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\n } else {\n a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3];\n a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7];\n a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11];\n\n out[0] = a00; out[1] = a01; out[2] = a02; out[3] = a03;\n out[4] = a10; out[5] = a11; out[6] = a12; out[7] = a13;\n out[8] = a20; out[9] = a21; out[10] = a22; out[11] = a23;\n\n out[12] = a00 * x + a10 * y + a20 * z + a[12];\n out[13] = a01 * x + a11 * y + a21 * z + a[13];\n out[14] = a02 * x + a12 * y + a22 * z + a[14];\n out[15] = a03 * x + a13 * y + a23 * z + a[15];\n }\n\n return out;\n};\n},{}],109:[function(_glvis_,module,exports){\nmodule.exports = transpose;\n\n/**\n * Transpose the values of a mat4\n *\n * @param {mat4} out the receiving matrix\n * @param {mat4} a the source matrix\n * @returns {mat4} out\n */\nfunction transpose(out, a) {\n // If we are transposing ourselves we can skip a few steps but have to cache some values\n if (out === a) {\n var a01 = a[1], a02 = a[2], a03 = a[3],\n a12 = a[6], a13 = a[7],\n a23 = a[11];\n\n out[1] = a[4];\n out[2] = a[8];\n out[3] = a[12];\n out[4] = a01;\n out[6] = a[9];\n out[7] = a[13];\n out[8] = a02;\n out[9] = a12;\n out[11] = a[14];\n out[12] = a03;\n out[13] = a13;\n out[14] = a23;\n } else {\n out[0] = a[0];\n out[1] = a[4];\n out[2] = a[8];\n out[3] = a[12];\n out[4] = a[1];\n out[5] = a[5];\n out[6] = a[9];\n out[7] = a[13];\n out[8] = a[2];\n out[9] = a[6];\n out[10] = a[10];\n out[11] = a[14];\n out[12] = a[3];\n out[13] = a[7];\n out[14] = a[11];\n out[15] = a[15];\n }\n \n return out;\n};\n},{}],110:[function(_glvis_,module,exports){\n'use strict'\n\nvar barycentric = _glvis_('barycentric')\nvar closestPointToTriangle = _glvis_('polytope-closest-point/lib/closest_point_2d.js')\n\nmodule.exports = closestPointToPickLocation\n\nfunction xformMatrix(m, v) {\n var out = [0,0,0,0]\n for(var i=0; i<4; ++i) {\n for(var j=0; j<4; ++j) {\n out[j] += m[4*i + j] * v[i]\n }\n }\n return out\n}\n\nfunction projectVertex(v, model, view, projection, resolution) {\n var p = xformMatrix(projection,\n xformMatrix(view,\n xformMatrix(model, [v[0], v[1], v[2], 1])))\n for(var i=0; i<3; ++i) {\n p[i] /= p[3]\n }\n return [ 0.5 * resolution[0] * (1.0+p[0]), 0.5 * resolution[1] * (1.0-p[1]) ]\n}\n\nfunction barycentricCoord(simplex, point) {\n if(simplex.length === 2) {\n var d0 = 0.0\n var d1 = 0.0\n for(var i=0; i<2; ++i) {\n d0 += Math.pow(point[i] - simplex[0][i], 2)\n d1 += Math.pow(point[i] - simplex[1][i], 2)\n }\n d0 = Math.sqrt(d0)\n d1 = Math.sqrt(d1)\n if(d0+d1 < 1e-6) {\n return [1,0]\n }\n return [d1/(d0+d1),d0/(d1+d0)]\n } else if(simplex.length === 3) {\n var closestPoint = [0,0]\n closestPointToTriangle(simplex[0], simplex[1], simplex[2], point, closestPoint)\n return barycentric(simplex, closestPoint)\n }\n return []\n}\n\nfunction interpolate(simplex, weights) {\n var result = [0,0,0]\n for(var i=0; i 1.0001) {\n return null\n }\n s += weights[i]\n }\n if(Math.abs(s - 1.0) > 0.001) {\n return null\n }\n return [closestIndex, interpolate(simplex, weights), weights]\n}\n},{\"barycentric\":14,\"polytope-closest-point/lib/closest_point_2d.js\":270}],111:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\n\nvar triVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, normal;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model\\n , view\\n , projection\\n , inverseModel;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvec4 project(vec3 p) {\\n return projection * view * model * vec4(p, 1.0);\\n}\\n\\nvoid main() {\\n gl_Position = project(position);\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * vec4(position , 1.0);\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\\n\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\\n\"])\nvar triFragSrc = glslify([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (f_color.a == 0.0 ||\\n outOfRange(clipBounds[0], clipBounds[1], f_data)\\n ) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\\n\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * f_color.a;\\n}\\n\"])\nvar edgeVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\"])\nvar edgeFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\\n\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"])\nvar pointVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\nattribute float pointSize;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n }\\n gl_PointSize = pointSize;\\n f_color = color;\\n f_uv = uv;\\n}\"])\nvar pointFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\\n if(dot(pointR, pointR) > 0.25) {\\n discard;\\n }\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"])\nvar pickVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_id = id;\\n f_position = position;\\n}\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"])\nvar pickPointVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute float pointSize;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n gl_PointSize = pointSize;\\n }\\n f_id = id;\\n f_position = position;\\n}\"])\nvar contourVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n}\"])\nvar contourFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec3 contourColor;\\n\\nvoid main() {\\n gl_FragColor = vec4(contourColor, 1.0);\\n}\\n\"])\n\nexports.meshShader = {\n vertex: triVertSrc,\n fragment: triFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'normal', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'}\n ]\n}\nexports.wireShader = {\n vertex: edgeVertSrc,\n fragment: edgeFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'}\n ]\n}\nexports.pointShader = {\n vertex: pointVertSrc,\n fragment: pointFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'},\n {name: 'pointSize', type: 'float'}\n ]\n}\nexports.pickShader = {\n vertex: pickVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'id', type: 'vec4'}\n ]\n}\nexports.pointPickShader = {\n vertex: pickPointVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'},\n {name: 'pointSize', type: 'float'},\n {name: 'id', type: 'vec4'}\n ]\n}\nexports.contourShader = {\n vertex: contourVertSrc,\n fragment: contourFragSrc,\n attributes: [\n {name: 'position', type: 'vec3'}\n ]\n}\n\n},{\"glslify\":231}],112:[function(_glvis_,module,exports){\n'use strict'\n\nvar DEFAULT_VERTEX_NORMALS_EPSILON = 1e-6; // may be too large if triangles are very small\nvar DEFAULT_FACE_NORMALS_EPSILON = 1e-6;\n\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\nvar normals = _glvis_('normals')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar invert = _glvis_('gl-mat4/invert')\nvar ndarray = _glvis_('ndarray')\nvar colormap = _glvis_('colormap')\nvar getContour = _glvis_('simplicial-complex-contour')\nvar pool = _glvis_('typedarray-pool')\nvar shaders = _glvis_('./lib/shaders')\nvar closestPoint = _glvis_('./lib/closest-point')\n\nvar meshShader = shaders.meshShader\nvar wireShader = shaders.wireShader\nvar pointShader = shaders.pointShader\nvar pickShader = shaders.pickShader\nvar pointPickShader = shaders.pointPickShader\nvar contourShader = shaders.contourShader\n\nvar IDENTITY = [\n 1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\n\nfunction SimplicialMesh(gl\n , texture\n , triShader\n , lineShader\n , pointShader\n , pickShader\n , pointPickShader\n , contourShader\n , trianglePositions\n , triangleIds\n , triangleColors\n , triangleUVs\n , triangleNormals\n , triangleVAO\n , edgePositions\n , edgeIds\n , edgeColors\n , edgeUVs\n , edgeVAO\n , pointPositions\n , pointIds\n , pointColors\n , pointUVs\n , pointSizes\n , pointVAO\n , contourPositions\n , contourVAO) {\n\n this.gl = gl\n this.pixelRatio = 1\n this.cells = []\n this.positions = []\n this.intensity = []\n this.texture = texture\n this.dirty = true\n\n this.triShader = triShader\n this.lineShader = lineShader\n this.pointShader = pointShader\n this.pickShader = pickShader\n this.pointPickShader = pointPickShader\n this.contourShader = contourShader\n\n this.trianglePositions = trianglePositions\n this.triangleColors = triangleColors\n this.triangleNormals = triangleNormals\n this.triangleUVs = triangleUVs\n this.triangleIds = triangleIds\n this.triangleVAO = triangleVAO\n this.triangleCount = 0\n\n this.lineWidth = 1\n this.edgePositions = edgePositions\n this.edgeColors = edgeColors\n this.edgeUVs = edgeUVs\n this.edgeIds = edgeIds\n this.edgeVAO = edgeVAO\n this.edgeCount = 0\n\n this.pointPositions = pointPositions\n this.pointColors = pointColors\n this.pointUVs = pointUVs\n this.pointSizes = pointSizes\n this.pointIds = pointIds\n this.pointVAO = pointVAO\n this.pointCount = 0\n\n this.contourLineWidth = 1\n this.contourPositions = contourPositions\n this.contourVAO = contourVAO\n this.contourCount = 0\n this.contourColor = [0,0,0]\n this.contourEnable = true\n\n this.pickVertex = true;\n this.pickId = 1\n this.bounds = [\n [ Infinity, Infinity, Infinity],\n [-Infinity,-Infinity,-Infinity] ]\n this.clipBounds = [\n [-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity] ]\n\n this.lightPosition = [1e5, 1e5, 0]\n this.ambientLight = 0.8\n this.diffuseLight = 0.8\n this.specularLight = 2.0\n this.roughness = 0.5\n this.fresnel = 1.5\n\n this.opacity = 1.0\n this.hasAlpha = false\n this.opacityscale = false\n\n this._model = IDENTITY\n this._view = IDENTITY\n this._projection = IDENTITY\n this._resolution = [1,1]\n}\n\nvar proto = SimplicialMesh.prototype\n\nproto.isOpaque = function() {\n return !this.hasAlpha\n}\n\nproto.isTransparent = function() {\n return this.hasAlpha\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function(id) {\n this.pickId = id\n}\n\nfunction getOpacityFromScale(ratio, opacityscale) {\n\n if(!opacityscale) return 1\n if(!opacityscale.length) return 1\n\n for(var i = 0; i < opacityscale.length; ++i) {\n if(opacityscale.length < 2) return 1\n if(opacityscale[i][0] === ratio) return opacityscale[i][1]\n if(opacityscale[i][0] > ratio && i > 0) {\n var d = (opacityscale[i][0] - ratio) / (opacityscale[i][0] - opacityscale[i - 1][0])\n return opacityscale[i][1] * (1 - d) + d * opacityscale[i - 1][1]\n }\n }\n\n return 1\n}\n\nfunction genColormap(param, opacityscale) {\n var colors = colormap({\n colormap: param\n , nshades: 256\n , format: 'rgba'\n })\n\n var result = new Uint8Array(256*4)\n for(var i=0; i<256; ++i) {\n var c = colors[i]\n for(var j=0; j<3; ++j) {\n result[4*i+j] = c[j]\n }\n if(!opacityscale) {\n result[4*i+3] = 255 * c[3]\n } else {\n result[4*i+3] = 255 * getOpacityFromScale(i / 255.0, opacityscale)\n }\n }\n\n return ndarray(result, [256,256,4], [4,0,1])\n}\n\nfunction takeZComponent(array) {\n var n = array.length\n var result = new Array(n)\n for(var i=0; i 0) {\n var shader = this.triShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n\n if(this.edgeCount > 0 && this.lineWidth > 0) {\n var shader = this.lineShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.edgeVAO.bind()\n gl.lineWidth(this.lineWidth * this.pixelRatio)\n gl.drawArrays(gl.LINES, 0, this.edgeCount*2)\n this.edgeVAO.unbind()\n }\n\n if(this.pointCount > 0) {\n var shader = this.pointShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.pointVAO.bind()\n gl.drawArrays(gl.POINTS, 0, this.pointCount)\n this.pointVAO.unbind()\n }\n\n if(this.contourEnable && this.contourCount > 0 && this.contourLineWidth > 0) {\n var shader = this.contourShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.contourVAO.bind()\n gl.drawArrays(gl.LINES, 0, this.contourCount)\n this.contourVAO.unbind()\n }\n}\n\nproto.drawPick = function(params) {\n params = params || {}\n\n var gl = this.gl\n\n var model = params.model || IDENTITY\n var view = params.view || IDENTITY\n var projection = params.projection || IDENTITY\n\n var clipBounds = [[-1e6,-1e6,-1e6],[1e6,1e6,1e6]]\n for(var i=0; i<3; ++i) {\n clipBounds[0][i] = Math.max(clipBounds[0][i], this.clipBounds[0][i])\n clipBounds[1][i] = Math.min(clipBounds[1][i], this.clipBounds[1][i])\n }\n\n //Save camera parameters\n this._model = [].slice.call(model)\n this._view = [].slice.call(view)\n this._projection = [].slice.call(projection)\n this._resolution = [gl.drawingBufferWidth, gl.drawingBufferHeight]\n\n var uniforms = {\n model: model,\n view: view,\n projection: projection,\n clipBounds: clipBounds,\n pickId: this.pickId / 255.0,\n }\n\n var shader = this.pickShader\n shader.bind()\n shader.uniforms = uniforms\n\n if(this.triangleCount > 0) {\n this.triangleVAO.bind()\n gl.drawArrays(gl.TRIANGLES, 0, this.triangleCount*3)\n this.triangleVAO.unbind()\n }\n\n if(this.edgeCount > 0) {\n this.edgeVAO.bind()\n gl.lineWidth(this.lineWidth * this.pixelRatio)\n gl.drawArrays(gl.LINES, 0, this.edgeCount*2)\n this.edgeVAO.unbind()\n }\n\n if(this.pointCount > 0) {\n var shader = this.pointPickShader\n shader.bind()\n shader.uniforms = uniforms\n\n this.pointVAO.bind()\n gl.drawArrays(gl.POINTS, 0, this.pointCount)\n this.pointVAO.unbind()\n }\n}\n\n\nproto.pick = function(pickData) {\n if(!pickData) {\n return null\n }\n if(pickData.id !== this.pickId) {\n return null\n }\n\n var cellId = pickData.value[0] + 256*pickData.value[1] + 65536*pickData.value[2]\n var cell = this.cells[cellId]\n var positions = this.positions\n\n var simplex = new Array(cell.length)\n for(var i=0; i tickOffset[start]) {\n shader.uniforms.dataAxis = DATA_AXIS\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = textColor[axis]\n shader.uniforms.angle = textAngle[axis]\n gl.drawArrays(\n gl.TRIANGLES,\n tickOffset[start],\n tickOffset[end] - tickOffset[start])\n }\n }\n if(labelEnable[axis] && labelCount) {\n SCREEN_OFFSET[axis^1] -= screenScale * pixelRatio * labelPad[axis]\n shader.uniforms.dataAxis = ZERO_2\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = labelColor[axis]\n shader.uniforms.angle = labelAngle[axis]\n gl.drawArrays(\n gl.TRIANGLES,\n labelOffset,\n labelCount)\n }\n\n SCREEN_OFFSET[axis^1] = screenScale * viewBox[2+(axis^1)] - 1.0\n if(tickEnable[axis+2]) {\n SCREEN_OFFSET[axis^1] += screenScale * pixelRatio * tickPad[axis+2]\n if(start < end && tickOffset[end] > tickOffset[start]) {\n shader.uniforms.dataAxis = DATA_AXIS\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = textColor[axis+2]\n shader.uniforms.angle = textAngle[axis+2]\n gl.drawArrays(\n gl.TRIANGLES,\n tickOffset[start],\n tickOffset[end] - tickOffset[start])\n }\n }\n if(labelEnable[axis+2] && labelCount) {\n SCREEN_OFFSET[axis^1] += screenScale * pixelRatio * labelPad[axis+2]\n shader.uniforms.dataAxis = ZERO_2\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.color = labelColor[axis+2]\n shader.uniforms.angle = labelAngle[axis+2]\n gl.drawArrays(\n gl.TRIANGLES,\n labelOffset,\n labelCount)\n }\n\n }\n})()\n\nproto.drawTitle = (function() {\n var DATA_AXIS = [0,0]\n var SCREEN_OFFSET = [0,0]\n\n return function() {\n var plot = this.plot\n var shader = this.shader\n var gl = plot.gl\n var screenBox = plot.screenBox\n var titleCenter = plot.titleCenter\n var titleAngle = plot.titleAngle\n var titleColor = plot.titleColor\n var pixelRatio = plot.pixelRatio\n\n if(!this.titleCount) {\n return\n }\n\n for(var i=0; i<2; ++i) {\n SCREEN_OFFSET[i] = 2.0 * (titleCenter[i]*pixelRatio - screenBox[i]) /\n (screenBox[2+i] - screenBox[i]) - 1\n }\n\n shader.bind()\n shader.uniforms.dataAxis = DATA_AXIS\n shader.uniforms.screenOffset = SCREEN_OFFSET\n shader.uniforms.angle = titleAngle\n shader.uniforms.color = titleColor\n\n gl.drawArrays(gl.TRIANGLES, this.titleOffset, this.titleCount)\n }\n})()\n\nproto.bind = (function() {\n var DATA_SHIFT = [0,0]\n var DATA_SCALE = [0,0]\n var TEXT_SCALE = [0,0]\n\n return function() {\n var plot = this.plot\n var shader = this.shader\n var bounds = plot._tickBounds\n var dataBox = plot.dataBox\n var screenBox = plot.screenBox\n var viewBox = plot.viewBox\n\n shader.bind()\n\n //Set up coordinate scaling uniforms\n for(var i=0; i<2; ++i) {\n\n var lo = bounds[i]\n var hi = bounds[i+2]\n var boundScale = hi - lo\n var dataCenter = 0.5 * (dataBox[i+2] + dataBox[i])\n var dataWidth = (dataBox[i+2] - dataBox[i])\n\n var viewLo = viewBox[i]\n var viewHi = viewBox[i+2]\n var viewScale = viewHi - viewLo\n var screenLo = screenBox[i]\n var screenHi = screenBox[i+2]\n var screenScale = screenHi - screenLo\n\n DATA_SCALE[i] = 2.0 * boundScale / dataWidth * viewScale / screenScale\n DATA_SHIFT[i] = 2.0 * (lo - dataCenter) / dataWidth * viewScale / screenScale\n }\n\n TEXT_SCALE[1] = 2.0 * plot.pixelRatio / (screenBox[3] - screenBox[1])\n TEXT_SCALE[0] = TEXT_SCALE[1] * (screenBox[3] - screenBox[1]) / (screenBox[2] - screenBox[0])\n\n shader.uniforms.dataScale = DATA_SCALE\n shader.uniforms.dataShift = DATA_SHIFT\n shader.uniforms.textScale = TEXT_SCALE\n\n //Set attributes\n this.vbo.bind()\n shader.attributes.textCoordinate.pointer()\n }\n})()\n\nproto.update = function(options) {\n var vertices = []\n var axesTicks = options.ticks\n var bounds = options.bounds\n var i, j, k, data, scale, dimension\n\n for(dimension=0; dimension<2; ++dimension) {\n var offsets = [Math.floor(vertices.length/3)], tickX = [-Infinity]\n\n //Copy vertices over to buffer\n var ticks = axesTicks[dimension]\n for(i=0; i= 0)) {\n continue\n }\n\n var zeroIntercept = screenBox[i] -\n dataBox[i] * (screenBox[i+2] - screenBox[i]) / (dataBox[i+2] - dataBox[i])\n\n if(i === 0) {\n line.drawLine(\n zeroIntercept, screenBox[1], zeroIntercept, screenBox[3],\n zeroLineWidth[i],\n zeroLineColor[i])\n } else {\n line.drawLine(\n screenBox[0], zeroIntercept, screenBox[2], zeroIntercept,\n zeroLineWidth[i],\n zeroLineColor[i])\n }\n }\n }\n\n //Draw traces\n for(var i=0; i=0; --i) {\n this.objects[i].dispose()\n }\n this.objects.length = 0\n for(var i=this.overlays.length-1; i>=0; --i) {\n this.overlays[i].dispose()\n }\n this.overlays.length = 0\n\n this.gl = null\n}\n\nproto.addObject = function(object) {\n if(this.objects.indexOf(object) < 0) {\n this.objects.push(object)\n this.setDirty()\n }\n}\n\nproto.removeObject = function(object) {\n var objects = this.objects\n for(var i=0; i Math.abs(dy)) {\n view.rotate(t, 0, 0, -dx * flipX * Math.PI * camera.rotateSpeed / window.innerWidth)\n } else {\n if(!camera._ortho) {\n var kzoom = -camera.zoomSpeed * flipY * dy / window.innerHeight * (t - view.lastT()) / 20.0\n view.pan(t, 0, 0, distance * (Math.exp(kzoom) - 1))\n }\n }\n }, true)\n }\n\n camera.enableMouseListeners()\n\n return camera\n}\n\n},{\"3d-view\":7,\"has-passive-events\":232,\"mouse-change\":247,\"mouse-event-offset\":248,\"mouse-wheel\":250,\"right-now\":278}],120:[function(_glvis_,module,exports){\nvar glslify = _glvis_('glslify')\nvar createShader = _glvis_('gl-shader')\n\nvar vertSrc = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\nattribute vec2 position;\\nvarying vec2 uv;\\nvoid main() {\\n uv = position;\\n gl_Position = vec4(position, 0, 1);\\n}\"])\nvar fragSrc = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D accumBuffer;\\nvarying vec2 uv;\\n\\nvoid main() {\\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\\n gl_FragColor = min(vec4(1,1,1,1), accum);\\n}\"])\n\nmodule.exports = function(gl) {\n return createShader(gl, vertSrc, fragSrc, null, [ { name: 'position', type: 'vec2'}])\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],121:[function(_glvis_,module,exports){\n'use strict'\n\nvar createCamera = _glvis_('./camera.js')\nvar createAxes = _glvis_('gl-axes3d')\nvar axesRanges = _glvis_('gl-axes3d/properties')\nvar createSpikes = _glvis_('gl-spikes3d')\nvar createSelect = _glvis_('gl-select-static')\nvar createFBO = _glvis_('gl-fbo')\nvar drawTriangle = _glvis_('a-big-triangle')\nvar mouseChange = _glvis_('mouse-change')\nvar perspective = _glvis_('gl-mat4/perspective')\nvar ortho = _glvis_('gl-mat4/ortho')\nvar createShader = _glvis_('./lib/shader')\nvar isMobile = _glvis_('is-mobile')({ tablet: true, featureDetect: true })\n\nmodule.exports = {\n createScene: createScene,\n createCamera: createCamera\n}\n\nfunction MouseSelect() {\n this.mouse = [-1,-1]\n this.screen = null\n this.distance = Infinity\n this.index = null\n this.dataCoordinate = null\n this.dataPosition = null\n this.object = null\n this.data = null\n}\n\nfunction getContext(canvas, options) {\n var gl = null\n try {\n gl = canvas.getContext('webgl', options)\n if(!gl) {\n gl = canvas.getContext('experimental-webgl', options)\n }\n } catch(e) {\n return null\n }\n return gl\n}\n\nfunction roundUpPow10(x) {\n var y = Math.round(Math.log(Math.abs(x)) / Math.log(10))\n if(y < 0) {\n var base = Math.round(Math.pow(10, -y))\n return Math.ceil(x*base) / base\n } else if(y > 0) {\n var base = Math.round(Math.pow(10, y))\n return Math.ceil(x/base) * base\n }\n return Math.ceil(x)\n}\n\nfunction defaultBool(x) {\n if(typeof x === 'boolean') {\n return x\n }\n return true\n}\n\nfunction createScene(options) {\n options = options || {}\n options.camera = options.camera || {}\n\n var canvas = options.canvas\n if(!canvas) {\n canvas = document.createElement('canvas')\n if(options.container) {\n var container = options.container\n container.appendChild(canvas)\n } else {\n document.body.appendChild(canvas)\n }\n }\n\n var gl = options.gl\n if(!gl) {\n if(options.glOptions) {\n isMobile = !!options.glOptions.preserveDrawingBuffer\n }\n\n gl = getContext(canvas,\n options.glOptions || {\n premultipliedAlpha: true,\n antialias: true,\n preserveDrawingBuffer: isMobile\n })\n }\n if(!gl) {\n throw new Error('webgl not supported')\n }\n\n //Initial bounds\n var bounds = options.bounds || [[-10,-10,-10], [10,10,10]]\n\n //Create selection\n var selection = new MouseSelect()\n\n //Accumulation buffer\n var accumBuffer = createFBO(gl,\n gl.drawingBufferWidth, gl.drawingBufferHeight, {\n preferFloat: !isMobile\n })\n\n var accumShader = createShader(gl)\n\n var isOrtho =\n (options.cameraObject && options.cameraObject._ortho === true) ||\n (options.camera.projection && options.camera.projection.type === 'orthographic') ||\n false\n\n //Create a camera\n var cameraOptions = {\n eye: options.camera.eye || [2,0,0],\n center: options.camera.center || [0,0,0],\n up: options.camera.up || [0,1,0],\n zoomMin: options.camera.zoomMax || 0.1,\n zoomMax: options.camera.zoomMin || 100,\n mode: options.camera.mode || 'turntable',\n _ortho: isOrtho\n }\n\n //Create axes\n var axesOptions = options.axes || {}\n var axes = createAxes(gl, axesOptions)\n axes.enable = !axesOptions.disable\n\n //Create spikes\n var spikeOptions = options.spikes || {}\n var spikes = createSpikes(gl, spikeOptions)\n\n //Object list is empty initially\n var objects = []\n var pickBufferIds = []\n var pickBufferCount = []\n var pickBuffers = []\n\n //Dirty flag, skip redraw if scene static\n var dirty = true\n var pickDirty = true\n\n var projection = new Array(16)\n var model = new Array(16)\n\n var cameraParams = {\n view: null,\n projection: projection,\n model: model,\n _ortho: false\n }\n\n var pickDirty = true\n\n var viewShape = [ gl.drawingBufferWidth, gl.drawingBufferHeight ]\n\n var camera = options.cameraObject || createCamera(canvas, cameraOptions)\n\n //Create scene object\n var scene = {\n gl: gl,\n contextLost: false,\n pixelRatio: options.pixelRatio || 1,\n canvas: canvas,\n selection: selection,\n camera: camera,\n axes: axes,\n axesPixels: null,\n spikes: spikes,\n bounds: bounds,\n objects: objects,\n shape: viewShape,\n aspect: options.aspectRatio || [1,1,1],\n pickRadius: options.pickRadius || 10,\n zNear: options.zNear || 0.01,\n zFar: options.zFar || 1000,\n fovy: options.fovy || Math.PI/4,\n clearColor: options.clearColor || [0,0,0,0],\n autoResize: defaultBool(options.autoResize),\n autoBounds: defaultBool(options.autoBounds),\n autoScale: !!options.autoScale,\n autoCenter: defaultBool(options.autoCenter),\n clipToBounds: defaultBool(options.clipToBounds),\n snapToData: !!options.snapToData,\n onselect: options.onselect || null,\n onrender: options.onrender || null,\n onclick: options.onclick || null,\n cameraParams: cameraParams,\n oncontextloss: null,\n mouseListener: null,\n _stopped: false,\n\n getAspectratio: function() {\n return {\n x: this.aspect[0],\n y: this.aspect[1],\n z: this.aspect[2]\n }\n },\n\n setAspectratio: function(aspectratio) {\n this.aspect[0] = aspectratio.x\n this.aspect[1] = aspectratio.y\n this.aspect[2] = aspectratio.z\n pickDirty = true\n },\n\n setBounds: function(axisIndex, range) {\n this.bounds[0][axisIndex] = range.min\n this.bounds[1][axisIndex] = range.max\n },\n\n setClearColor: function(clearColor) {\n this.clearColor = clearColor\n },\n\n clearRGBA: function() {\n this.gl.clearColor(\n this.clearColor[0],\n this.clearColor[1],\n this.clearColor[2],\n this.clearColor[3]\n )\n\n this.gl.clear(\n this.gl.COLOR_BUFFER_BIT |\n this.gl.DEPTH_BUFFER_BIT\n )\n }\n }\n\n var pickShape = [ (gl.drawingBufferWidth/scene.pixelRatio)|0, (gl.drawingBufferHeight/scene.pixelRatio)|0 ]\n\n function resizeListener() {\n if(scene._stopped) {\n return\n }\n if(!scene.autoResize) {\n return\n }\n var parent = canvas.parentNode\n var width = 1\n var height = 1\n if(parent && parent !== document.body) {\n width = parent.clientWidth\n height = parent.clientHeight\n } else {\n width = window.innerWidth\n height = window.innerHeight\n }\n var nextWidth = Math.ceil(width * scene.pixelRatio)|0\n var nextHeight = Math.ceil(height * scene.pixelRatio)|0\n if(nextWidth !== canvas.width || nextHeight !== canvas.height) {\n canvas.width = nextWidth\n canvas.height = nextHeight\n var style = canvas.style\n style.position = style.position || 'absolute'\n style.left = '0px'\n style.top = '0px'\n style.width = width + 'px'\n style.height = height + 'px'\n dirty = true\n }\n }\n if(scene.autoResize) {\n resizeListener()\n }\n window.addEventListener('resize', resizeListener)\n\n function reallocPickIds() {\n var numObjs = objects.length\n var numPick = pickBuffers.length\n for(var i=0; i 0 && pickBufferCount[numPick-1] === 0) {\n pickBufferCount.pop()\n pickBuffers.pop().dispose()\n }\n }\n\n scene.update = function(options) {\n\n if(scene._stopped) {\n return\n }\n options = options || {}\n dirty = true\n pickDirty = true\n }\n\n scene.add = function(obj) {\n if(scene._stopped) {\n return\n }\n obj.axes = axes\n objects.push(obj)\n pickBufferIds.push(-1)\n dirty = true\n pickDirty = true\n reallocPickIds()\n }\n\n scene.remove = function(obj) {\n if(scene._stopped) {\n return\n }\n var idx = objects.indexOf(obj)\n if(idx < 0) {\n return\n }\n objects.splice(idx, 1)\n pickBufferIds.pop()\n dirty = true\n pickDirty = true\n reallocPickIds()\n }\n\n scene.dispose = function() {\n if(scene._stopped) {\n return\n }\n\n scene._stopped = true\n\n window.removeEventListener('resize', resizeListener)\n canvas.removeEventListener('webglcontextlost', checkContextLoss)\n scene.mouseListener.enabled = false\n\n if(scene.contextLost) {\n return\n }\n\n //Destroy objects\n axes.dispose()\n spikes.dispose()\n for(var i=0; i selection.distance) {\n continue\n }\n for(var j=0; j 1.0) {\\n discard;\\n }\\n baseColor = mix(borderColor, color, step(radius, centerFraction));\\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\\n }\\n}\\n\"])\nexports.pickVertex = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n gl_PointSize = pointSize;\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n fragId = id;\\n}\\n\"])\nexports.pickFragment = glslify([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\\n\"])\n\n},{\"glslify\":231}],123:[function(_glvis_,module,exports){\n'use strict'\n\nvar createShader = _glvis_('gl-shader')\nvar createBuffer = _glvis_('gl-buffer')\n\nvar pool = _glvis_('typedarray-pool')\n\nvar SHADERS = _glvis_('./lib/shader')\n\nmodule.exports = createPointcloud2D\n\nfunction Pointcloud2D(plot, offsetBuffer, pickBuffer, shader, pickShader) {\n this.plot = plot\n this.offsetBuffer = offsetBuffer\n this.pickBuffer = pickBuffer\n this.shader = shader\n this.pickShader = pickShader\n this.sizeMin = 0.5\n this.sizeMinCap = 2\n this.sizeMax = 20\n this.areaRatio = 1.0\n this.pointCount = 0\n this.color = [1, 0, 0, 1]\n this.borderColor = [0, 0, 0, 1]\n this.blend = false\n this.pickOffset = 0\n this.points = null\n}\n\nvar proto = Pointcloud2D.prototype\n\nproto.dispose = function() {\n this.shader.dispose()\n this.pickShader.dispose()\n this.offsetBuffer.dispose()\n this.pickBuffer.dispose()\n this.plot.removeObject(this)\n}\n\nproto.update = function(options) {\n\n var i\n\n options = options || {}\n\n function dflt(opt, value) {\n if(opt in options) {\n return options[opt]\n }\n return value\n }\n\n this.sizeMin = dflt('sizeMin', 0.5)\n // this.sizeMinCap = dflt('sizeMinCap', 2)\n this.sizeMax = dflt('sizeMax', 20)\n this.color = dflt('color', [1, 0, 0, 1]).slice()\n this.areaRatio = dflt('areaRatio', 1)\n this.borderColor = dflt('borderColor', [0, 0, 0, 1]).slice()\n this.blend = dflt('blend', false)\n\n //Update point data\n\n // Attempt straight-through processing (STP) to avoid allocation and copy\n // TODO eventually abstract out STP logic, maybe into `pool` or a layer above\n var pointCount = options.positions.length >>> 1\n var dataStraightThrough = options.positions instanceof Float32Array\n var idStraightThrough = options.idToIndex instanceof Int32Array && options.idToIndex.length >= pointCount // permit larger to help reuse\n\n var data = options.positions\n var packed = dataStraightThrough ? data : pool.mallocFloat32(data.length)\n var packedId = idStraightThrough ? options.idToIndex : pool.mallocInt32(pointCount)\n\n if(!dataStraightThrough) {\n packed.set(data)\n }\n\n if(!idStraightThrough) {\n packed.set(data)\n for(i = 0; i < pointCount; i++) {\n packedId[i] = i\n }\n }\n\n this.points = data\n\n this.offsetBuffer.update(packed)\n this.pickBuffer.update(packedId)\n\n if(!dataStraightThrough) {\n pool.free(packed)\n }\n\n if(!idStraightThrough) {\n pool.free(packedId)\n }\n\n this.pointCount = pointCount\n this.pickOffset = 0\n}\n\nfunction count(points, dataBox) {\n var visiblePointCountEstimate = 0\n var length = points.length >>> 1\n var i\n for(i = 0; i < length; i++) {\n var x = points[i * 2]\n var y = points[i * 2 + 1]\n if(x >= dataBox[0] && x <= dataBox[2] && y >= dataBox[1] && y <= dataBox[3])\n visiblePointCountEstimate++\n }\n return visiblePointCountEstimate\n}\n\nproto.unifiedDraw = (function() {\n var MATRIX = [1, 0, 0,\n 0, 1, 0,\n 0, 0, 1]\n var PICK_VEC4 = [0, 0, 0, 0]\nreturn function(pickOffset) {\n var pick = pickOffset !== void(0)\n\n var shader = pick ? this.pickShader : this.shader\n var gl = this.plot.gl\n var dataBox = this.plot.dataBox\n\n if(this.pointCount === 0) {\n return pickOffset\n }\n\n var dataX = dataBox[2] - dataBox[0]\n var dataY = dataBox[3] - dataBox[1]\n\n var visiblePointCountEstimate = count(this.points, dataBox)\n var basicPointSize = this.plot.pickPixelRatio * Math.max(Math.min(this.sizeMinCap, this.sizeMin), Math.min(this.sizeMax, this.sizeMax / Math.pow(visiblePointCountEstimate, 0.33333)))\n\n MATRIX[0] = 2.0 / dataX\n MATRIX[4] = 2.0 / dataY\n MATRIX[6] = -2.0 * dataBox[0] / dataX - 1.0\n MATRIX[7] = -2.0 * dataBox[1] / dataY - 1.0\n\n this.offsetBuffer.bind()\n\n shader.bind()\n shader.attributes.position.pointer()\n shader.uniforms.matrix = MATRIX\n shader.uniforms.color = this.color\n shader.uniforms.borderColor = this.borderColor\n shader.uniforms.pointCloud = basicPointSize < 5\n shader.uniforms.pointSize = basicPointSize\n shader.uniforms.centerFraction = Math.min(1, Math.max(0, Math.sqrt(1 - this.areaRatio)))\n\n if(pick) {\n\n PICK_VEC4[0] = ( pickOffset & 0xff)\n PICK_VEC4[1] = ((pickOffset >> 8) & 0xff)\n PICK_VEC4[2] = ((pickOffset >> 16) & 0xff)\n PICK_VEC4[3] = ((pickOffset >> 24) & 0xff)\n\n this.pickBuffer.bind()\n shader.attributes.pickId.pointer(gl.UNSIGNED_BYTE)\n shader.uniforms.pickOffset = PICK_VEC4\n this.pickOffset = pickOffset\n }\n\n // Worth switching these off, but we can't make assumptions about other\n // renderers, so let's restore it after each draw\n var blend = gl.getParameter(gl.BLEND)\n var dither = gl.getParameter(gl.DITHER)\n\n if(blend && !this.blend)\n gl.disable(gl.BLEND)\n if(dither)\n gl.disable(gl.DITHER)\n\n gl.drawArrays(gl.POINTS, 0, this.pointCount)\n\n if(blend && !this.blend)\n gl.enable(gl.BLEND)\n if(dither)\n gl.enable(gl.DITHER)\n\n return pickOffset + this.pointCount\n}\n})()\n\nproto.draw = proto.unifiedDraw\nproto.drawPick = proto.unifiedDraw\n\nproto.pick = function(x, y, value) {\n var pickOffset = this.pickOffset\n var pointCount = this.pointCount\n if(value < pickOffset || value >= pickOffset + pointCount) {\n return null\n }\n var pointId = value - pickOffset\n var points = this.points\n return {\n object: this,\n pointId: pointId,\n dataCoord: [points[2 * pointId], points[2 * pointId + 1] ]\n }\n}\n\nfunction createPointcloud2D(plot, options) {\n var gl = plot.gl\n var buffer = createBuffer(gl)\n var pickBuffer = createBuffer(gl)\n var shader = createShader(gl, SHADERS.pointVertex, SHADERS.pointFragment)\n var pickShader = createShader(gl, SHADERS.pickVertex, SHADERS.pickFragment)\n\n var result = new Pointcloud2D(plot, buffer, pickBuffer, shader, pickShader)\n result.update(options)\n\n //Register with plot\n plot.addObject(result)\n\n return result\n}\n\n},{\"./lib/shader\":122,\"gl-buffer\":78,\"gl-shader\":132,\"typedarray-pool\":308}],124:[function(_glvis_,module,exports){\nmodule.exports = slerp\n\n/**\n * Performs a spherical linear interpolation between two quat\n *\n * @param {quat} out the receiving quaternion\n * @param {quat} a the first operand\n * @param {quat} b the second operand\n * @param {Number} t interpolation amount between the two inputs\n * @returns {quat} out\n */\nfunction slerp (out, a, b, t) {\n // benchmarks:\n // http://jsperf.com/quaternion-slerp-implementations\n\n var ax = a[0], ay = a[1], az = a[2], aw = a[3],\n bx = b[0], by = b[1], bz = b[2], bw = b[3]\n\n var omega, cosom, sinom, scale0, scale1\n\n // calc cosine\n cosom = ax * bx + ay * by + az * bz + aw * bw\n // adjust signs (if necessary)\n if (cosom < 0.0) {\n cosom = -cosom\n bx = -bx\n by = -by\n bz = -bz\n bw = -bw\n }\n // calculate coefficients\n if ((1.0 - cosom) > 0.000001) {\n // standard case (slerp)\n omega = Math.acos(cosom)\n sinom = Math.sin(omega)\n scale0 = Math.sin((1.0 - t) * omega) / sinom\n scale1 = Math.sin(t * omega) / sinom\n } else {\n // \"from\" and \"to\" quaternions are very close\n // ... so we can do a linear interpolation\n scale0 = 1.0 - t\n scale1 = t\n }\n // calculate final values\n out[0] = scale0 * ax + scale1 * bx\n out[1] = scale0 * ay + scale1 * by\n out[2] = scale0 * az + scale1 * bz\n out[3] = scale0 * aw + scale1 * bw\n\n return out\n}\n\n},{}],125:[function(_glvis_,module,exports){\n'use strict';\n\nmodule.exports = function(a){\n return (!a && a !== 0) ? '' : a.toString();\n}\n\n},{}],126:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar vectorizeText = _glvis_(\"vectorize-text\")\n\nmodule.exports = getGlyph\n\nvar GLYPH_CACHE = {}\n\nfunction getGlyph(symbol, font, pixelRatio) {\n var fontCache = GLYPH_CACHE[font]\n if(!fontCache) {\n fontCache = GLYPH_CACHE[font] = {}\n }\n if(symbol in fontCache) {\n return fontCache[symbol]\n }\n\n var config = {\n textAlign: \"center\",\n textBaseline: \"middle\",\n lineHeight: 1.0,\n font: font,\n lineSpacing: 1.25,\n styletags: {\n breaklines:true,\n bolds: true,\n italics: true,\n subscripts:true,\n superscripts:true\n }\n }\n\n //Get line and triangle meshes for glyph\n config.triangles = true\n var triSymbol = vectorizeText(symbol, config)\n config.triangles = false\n var lineSymbol = vectorizeText(symbol, config)\n\n var i, j\n\n if(pixelRatio && pixelRatio !== 1) {\n for(i = 0; i < triSymbol.positions.length; ++i){\n for(j = 0; j < triSymbol.positions[i].length; ++j){\n triSymbol.positions[i][j] /= pixelRatio;\n }\n }\n\n for(i = 0; i < lineSymbol.positions.length; ++i){\n for(j = 0; j < lineSymbol.positions[i].length; ++j){\n lineSymbol.positions[i][j] /= pixelRatio;\n }\n }\n }\n\n //Calculate bounding box\n var bounds = [[Infinity,Infinity], [-Infinity,-Infinity]]\n var n = lineSymbol.positions.length\n for(i = 0; i < n; ++i) {\n var p = lineSymbol.positions[i]\n for(j=0; j<2; ++j) {\n bounds[0][j] = Math.min(bounds[0][j], p[j])\n bounds[1][j] = Math.max(bounds[1][j], p[j])\n }\n }\n\n //Save cached symbol\n return fontCache[symbol] = [triSymbol, lineSymbol, bounds]\n}\n},{\"vectorize-text\":311}],127:[function(_glvis_,module,exports){\nvar createShaderWrapper = _glvis_('gl-shader')\nvar glslify = _glvis_('glslify')\n\nvar perspectiveVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform vec4 highlightId;\\nuniform float highlightScale;\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = 1.0;\\n if(distance(highlightId, id) < 0.0001) {\\n scale = highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1);\\n vec4 viewPosition = view * worldPosition;\\n viewPosition = viewPosition / viewPosition.w;\\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"])\nvar orthographicVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float highlightScale, pixelRatio;\\nuniform vec4 highlightId;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = pixelRatio;\\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\\n scale *= highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1.0);\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n\\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"])\nvar projectionVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform float highlightScale;\\nuniform vec4 highlightId;\\nuniform vec3 axes[2];\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float scale, pixelRatio;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float lscale = pixelRatio * scale;\\n if(distance(highlightId, id) < 0.0001) {\\n lscale *= highlightScale;\\n }\\n\\n vec4 clipCenter = projection * view * model * vec4(position, 1);\\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = dataPosition;\\n }\\n}\\n\"])\nvar drawFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float opacity;\\n\\nvarying vec4 interpColor;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (\\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\\n interpColor.a * opacity == 0.\\n ) discard;\\n gl_FragColor = interpColor * opacity;\\n}\\n\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float pickGroup;\\n\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\\n\\n gl_FragColor = vec4(pickGroup, pickId.bgr);\\n}\"])\n\nvar ATTRIBUTES = [\n {name: 'position', type: 'vec3'},\n {name: 'color', type: 'vec4'},\n {name: 'glyph', type: 'vec2'},\n {name: 'id', type: 'vec4'}\n]\n\nvar perspective = {\n vertex: perspectiveVertSrc,\n fragment: drawFragSrc,\n attributes: ATTRIBUTES\n },\n ortho = {\n vertex: orthographicVertSrc,\n fragment: drawFragSrc,\n attributes: ATTRIBUTES\n },\n project = {\n vertex: projectionVertSrc,\n fragment: drawFragSrc,\n attributes: ATTRIBUTES\n },\n pickPerspective = {\n vertex: perspectiveVertSrc,\n fragment: pickFragSrc,\n attributes: ATTRIBUTES\n },\n pickOrtho = {\n vertex: orthographicVertSrc,\n fragment: pickFragSrc,\n attributes: ATTRIBUTES\n },\n pickProject = {\n vertex: projectionVertSrc,\n fragment: pickFragSrc,\n attributes: ATTRIBUTES\n }\n\nfunction createShader(gl, src) {\n var shader = createShaderWrapper(gl, src)\n var attr = shader.attributes\n attr.position.location = 0\n attr.color.location = 1\n attr.glyph.location = 2\n attr.id.location = 3\n return shader\n}\n\nexports.createPerspective = function(gl) {\n return createShader(gl, perspective)\n}\nexports.createOrtho = function(gl) {\n return createShader(gl, ortho)\n}\nexports.createProject = function(gl) {\n return createShader(gl, project)\n}\nexports.createPickPerspective = function(gl) {\n return createShader(gl, pickPerspective)\n}\nexports.createPickOrtho = function(gl) {\n return createShader(gl, pickOrtho)\n}\nexports.createPickProject = function(gl) {\n return createShader(gl, pickProject)\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],128:[function(_glvis_,module,exports){\n'use strict'\n\nvar isAllBlank = _glvis_('is-string-blank')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar pool = _glvis_('typedarray-pool')\nvar mat4mult = _glvis_('gl-mat4/multiply')\nvar shaders = _glvis_('./lib/shaders')\nvar getGlyph = _glvis_('./lib/glyphs')\nvar getSimpleString = _glvis_('./lib/get-simple-string')\n\nvar IDENTITY = [1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n\nmodule.exports = createPointCloud\n\nfunction transformMat4(x, m) {\n var x0 = x[0]\n var x1 = x[1]\n var x2 = x[2]\n var x3 = x[3]\n x[0] = m[0] * x0 + m[4] * x1 + m[8] * x2 + m[12] * x3\n x[1] = m[1] * x0 + m[5] * x1 + m[9] * x2 + m[13] * x3\n x[2] = m[2] * x0 + m[6] * x1 + m[10] * x2 + m[14] * x3\n x[3] = m[3] * x0 + m[7] * x1 + m[11] * x2 + m[15] * x3\n return x\n}\n\nfunction project(p, v, m, x) {\n transformMat4(x, x, m)\n transformMat4(x, x, v)\n return transformMat4(x, x, p)\n}\n\nfunction ScatterPlotPickResult(index, position) {\n this.index = index\n this.dataCoordinate = this.position = position\n}\n\nfunction fixOpacity(a) {\n if(a === true) return 1\n if(a > 1) return 1\n return a\n}\n\nfunction PointCloud(\n gl,\n shader,\n orthoShader,\n projectShader,\n pointBuffer,\n colorBuffer,\n glyphBuffer,\n idBuffer,\n vao,\n pickPerspectiveShader,\n pickOrthoShader,\n pickProjectShader) {\n\n this.gl = gl\n\n this.pixelRatio = 1\n\n this.shader = shader\n this.orthoShader = orthoShader\n this.projectShader = projectShader\n\n this.pointBuffer = pointBuffer\n this.colorBuffer = colorBuffer\n this.glyphBuffer = glyphBuffer\n this.idBuffer = idBuffer\n this.vao = vao\n this.vertexCount = 0\n this.lineVertexCount = 0\n\n this.opacity = 1\n this.hasAlpha = false\n\n this.lineWidth = 0\n this.projectScale = [2.0/3.0, 2.0/3.0, 2.0/3.0]\n this.projectOpacity = [1, 1, 1]\n this.projectHasAlpha = false\n\n this.pickId = 0\n this.pickPerspectiveShader = pickPerspectiveShader\n this.pickOrthoShader = pickOrthoShader\n this.pickProjectShader = pickProjectShader\n this.points = []\n\n this._selectResult = new ScatterPlotPickResult(0, [0,0,0])\n\n this.useOrtho = true\n this.bounds = [[ Infinity,Infinity,Infinity],\n [-Infinity,-Infinity,-Infinity]]\n\n //Axes projections\n this.axesProject = [ true, true, true ]\n this.axesBounds = [[-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity]]\n\n this.highlightId = [1,1,1,1]\n this.highlightScale = 2\n\n this.clipBounds = [[-Infinity,-Infinity,-Infinity],\n [ Infinity, Infinity, Infinity]]\n\n this.dirty = true\n}\n\nvar proto = PointCloud.prototype\n\nproto.pickSlots = 1\n\nproto.setPickBase = function(pickBase) {\n this.pickId = pickBase\n}\n\nproto.isTransparent = function() {\n if(this.hasAlpha) {\n return true\n }\n for(var i=0; i<3; ++i) {\n if(this.axesProject[i] && this.projectHasAlpha) {\n return true\n }\n }\n return false\n}\n\nproto.isOpaque = function() {\n if(!this.hasAlpha) {\n return true\n }\n for(var i=0; i<3; ++i) {\n if(this.axesProject[i] && !this.projectHasAlpha) {\n return true\n }\n }\n return false\n}\n\nvar VIEW_SHAPE = [0,0]\nvar U_VEC = [0,0,0]\nvar V_VEC = [0,0,0]\nvar MU_VEC = [0,0,0,1]\nvar MV_VEC = [0,0,0,1]\nvar SCRATCH_MATRIX = IDENTITY.slice()\nvar SCRATCH_VEC = [0,0,0]\nvar CLIP_BOUNDS = [[0,0,0], [0,0,0]]\n\nfunction zeroVec(a) {\n a[0] = a[1] = a[2] = 0\n return a\n}\n\nfunction augment(hg, af) {\n hg[0] = af[0]\n hg[1] = af[1]\n hg[2] = af[2]\n hg[3] = 1\n return hg\n}\n\nfunction setComponent(out, v, i, x) {\n out[0] = v[0]\n out[1] = v[1]\n out[2] = v[2]\n out[i] = x\n return out\n}\n\nfunction getClipBounds(bounds) {\n var result = CLIP_BOUNDS\n for(var i=0; i<2; ++i) {\n for(var j=0; j<3; ++j) {\n result[i][j] = Math.max(Math.min(bounds[i][j], 1e8), -1e8)\n }\n }\n return result\n}\n\nfunction drawProject(shader, points, camera, pixelRatio) {\n var axesProject = points.axesProject\n\n var gl = points.gl\n var uniforms = shader.uniforms\n var model = camera.model || IDENTITY\n var view = camera.view || IDENTITY\n var projection = camera.projection || IDENTITY\n var bounds = points.axesBounds\n var clipBounds = getClipBounds(points.clipBounds)\n\n var cubeAxis\n if(points.axes && points.axes.lastCubeProps) {\n cubeAxis = points.axes.lastCubeProps.axis\n } else {\n cubeAxis = [1,1,1]\n }\n\n VIEW_SHAPE[0] = 2.0/gl.drawingBufferWidth\n VIEW_SHAPE[1] = 2.0/gl.drawingBufferHeight\n\n shader.bind()\n uniforms.view = view\n uniforms.projection = projection\n uniforms.screenSize = VIEW_SHAPE\n uniforms.highlightId = points.highlightId\n uniforms.highlightScale = points.highlightScale\n uniforms.clipBounds = clipBounds\n uniforms.pickGroup = points.pickId / 255.0\n uniforms.pixelRatio = pixelRatio\n\n for(var i=0; i<3; ++i) {\n if(!axesProject[i]) {\n continue\n }\n\n uniforms.scale = points.projectScale[i]\n uniforms.opacity = points.projectOpacity[i]\n\n //Project model matrix\n var pmodel = SCRATCH_MATRIX\n for(var j=0; j<16; ++j) {\n pmodel[j] = 0\n }\n for(var j=0; j<4; ++j) {\n pmodel[5*j] = 1\n }\n pmodel[5*i] = 0\n if(cubeAxis[i] < 0) {\n pmodel[12+i] = bounds[0][i]\n } else {\n pmodel[12+i] = bounds[1][i]\n }\n mat4mult(pmodel, model, pmodel)\n uniforms.model = pmodel\n\n //Compute initial axes\n var u = (i+1)%3\n var v = (i+2)%3\n var du = zeroVec(U_VEC)\n var dv = zeroVec(V_VEC)\n du[u] = 1\n dv[v] = 1\n\n //Align orientation relative to viewer\n var mdu = project(projection, view, model, augment(MU_VEC, du))\n var mdv = project(projection, view, model, augment(MV_VEC, dv))\n if(Math.abs(mdu[1]) > Math.abs(mdv[1])) {\n var tmp = mdu\n mdu = mdv\n mdv = tmp\n tmp = du\n du = dv\n dv = tmp\n var t = u\n u = v\n v = t\n }\n if(mdu[0] < 0) {\n du[u] = -1\n }\n if(mdv[1] > 0) {\n dv[v] = -1\n }\n var su = 0.0\n var sv = 0.0\n for(var j=0; j<4; ++j) {\n su += Math.pow(model[4*u+j], 2)\n sv += Math.pow(model[4*v+j], 2)\n }\n du[u] /= Math.sqrt(su)\n dv[v] /= Math.sqrt(sv)\n uniforms.axes[0] = du\n uniforms.axes[1] = dv\n\n //Update fragment clip bounds\n uniforms.fragClipBounds[0] = setComponent(SCRATCH_VEC, clipBounds[0], i, -1e8)\n uniforms.fragClipBounds[1] = setComponent(SCRATCH_VEC, clipBounds[1], i, 1e8)\n\n points.vao.bind()\n\n //Draw interior\n points.vao.draw(gl.TRIANGLES, points.vertexCount)\n\n //Draw edges\n if(points.lineWidth > 0) {\n gl.lineWidth(points.lineWidth * pixelRatio)\n points.vao.draw(gl.LINES, points.lineVertexCount, points.vertexCount)\n }\n\n points.vao.unbind()\n }\n}\n\n\nvar NEG_INFINITY3 = [-1e8, -1e8, -1e8]\nvar POS_INFINITY3 = [1e8, 1e8, 1e8]\nvar CLIP_GROUP = [NEG_INFINITY3, POS_INFINITY3]\n\nfunction drawFull(shader, pshader, points, camera, pixelRatio, transparent, forceDraw) {\n var gl = points.gl\n\n if(transparent === points.projectHasAlpha || forceDraw) {\n drawProject(pshader, points, camera, pixelRatio)\n }\n\n if(transparent === points.hasAlpha || forceDraw) {\n\n shader.bind()\n var uniforms = shader.uniforms\n\n uniforms.model = camera.model || IDENTITY\n uniforms.view = camera.view || IDENTITY\n uniforms.projection = camera.projection || IDENTITY\n\n VIEW_SHAPE[0] = 2.0/gl.drawingBufferWidth\n VIEW_SHAPE[1] = 2.0/gl.drawingBufferHeight\n uniforms.screenSize = VIEW_SHAPE\n\n uniforms.highlightId = points.highlightId\n uniforms.highlightScale = points.highlightScale\n\n uniforms.fragClipBounds = CLIP_GROUP\n uniforms.clipBounds = points.axes.bounds\n\n uniforms.opacity = points.opacity\n uniforms.pickGroup = points.pickId / 255.0\n\n uniforms.pixelRatio = pixelRatio\n\n points.vao.bind()\n\n //Draw interior\n points.vao.draw(gl.TRIANGLES, points.vertexCount)\n\n //Draw edges\n if(points.lineWidth > 0) {\n gl.lineWidth(points.lineWidth * pixelRatio)\n points.vao.draw(gl.LINES, points.lineVertexCount, points.vertexCount)\n }\n\n points.vao.unbind()\n }\n\n\n}\n\nproto.draw = function(camera) {\n var shader = this.useOrtho ? this.orthoShader : this.shader\n drawFull(shader, this.projectShader, this, camera, this.pixelRatio, false, false)\n}\n\nproto.drawTransparent = function(camera) {\n var shader = this.useOrtho ? this.orthoShader : this.shader\n drawFull(shader, this.projectShader, this, camera, this.pixelRatio, true, false)\n}\n\nproto.drawPick = function(camera) {\n var shader = this.useOrtho ? this.pickOrthoShader : this.pickPerspectiveShader\n drawFull(shader, this.pickProjectShader, this, camera, 1, true, true)\n}\n\nproto.pick = function(selected) {\n if(!selected) {\n return null\n }\n if(selected.id !== this.pickId) {\n return null\n }\n var x = selected.value[2] + (selected.value[1]<<8) + (selected.value[0]<<16)\n if(x >= this.pointCount || x < 0) {\n return null\n }\n\n //Unpack result\n var coord = this.points[x]\n var result = this._selectResult\n result.index = x\n for(var i=0; i<3; ++i) {\n result.position[i] = result.dataCoordinate[i] = coord[i]\n }\n return result\n}\n\nproto.highlight = function(selection) {\n if(!selection) {\n this.highlightId = [1,1,1,1]\n } else {\n var pointId = selection.index\n var a0 = pointId &0xff\n var a1 = (pointId>>8) &0xff\n var a2 = (pointId>>16)&0xff\n this.highlightId = [a0/255.0, a1/255.0, a2/255.0, 0]\n }\n}\n\nfunction get_glyphData(glyphs, index, font, pixelRatio) {\n var str\n\n // use the data if presented in an array\n if(Array.isArray(glyphs)) {\n if(index < glyphs.length) {\n str = glyphs[index]\n } else {\n str = undefined\n }\n } else {\n str = glyphs\n }\n\n str = getSimpleString(str) // this would handle undefined cases\n\n var visible = true\n if(isAllBlank(str)) {\n str = '▼' // Note: this special character may have minimum number of surfaces\n visible = false\n }\n\n var glyph = getGlyph(str, font, pixelRatio)\n\n return { mesh:glyph[0],\n lines:glyph[1],\n bounds:glyph[2],\n visible:visible };\n}\n\n\n\nproto.update = function(options) {\n\n options = options || {}\n\n if('perspective' in options) {\n this.useOrtho = !options.perspective\n }\n if('orthographic' in options) {\n this.useOrtho = !!options.orthographic\n }\n if('lineWidth' in options) {\n this.lineWidth = options.lineWidth\n }\n if('project' in options) {\n if(Array.isArray(options.project)) {\n this.axesProject = options.project\n } else {\n var v = !!options.project\n this.axesProject = [v,v,v]\n }\n }\n if('projectScale' in options) {\n if(Array.isArray(options.projectScale)) {\n this.projectScale = options.projectScale.slice()\n } else {\n var s = +options.projectScale\n this.projectScale = [s,s,s]\n }\n }\n\n this.projectHasAlpha = false // default to no transparent draw\n if('projectOpacity' in options) {\n if(Array.isArray(options.projectOpacity)) {\n this.projectOpacity = options.projectOpacity.slice()\n } else {\n var s = +options.projectOpacity\n this.projectOpacity = [s,s,s]\n }\n for(var i=0; i<3; ++i) {\n this.projectOpacity[i] = fixOpacity(this.projectOpacity[i]);\n if(this.projectOpacity[i] < 1) {\n this.projectHasAlpha = true;\n }\n }\n }\n\n this.hasAlpha = false // default to no transparent draw\n if('opacity' in options) {\n this.opacity = fixOpacity(options.opacity)\n if(this.opacity < 1) {\n this.hasAlpha = true;\n }\n }\n\n //Set dirty flag\n this.dirty = true\n\n //Create new buffers\n var points = options.position\n\n //Text font\n var font = options.font || 'normal'\n var alignment = options.alignment || [0,0]\n\n var alignmentX;\n var alignmentY;\n if (alignment.length === 2) {\n alignmentX = alignment[0]\n alignmentY = alignment[1]\n } else {\n alignmentX = []\n alignmentY = []\n for (var i = 0; i < alignment.length; ++i) {\n alignmentX[i] = alignment[i][0]\n alignmentY[i] = alignment[i][1]\n }\n }\n\n //Bounds\n var lowerBound = [ Infinity, Infinity, Infinity]\n var upperBound = [-Infinity,-Infinity,-Infinity]\n\n //Unpack options\n var glyphs = options.glyph\n var colors = options.color\n var sizes = options.size\n var angles = options.angle\n var lineColors = options.lineColor\n\n //Picking geometry\n var pickCounter = -1\n\n //First do pass to compute buffer sizes\n var triVertexCount = 0\n var lineVertexCount = 0\n\n var numPoints = 0;\n\n if(points.length) {\n\n //Count number of points and buffer size\n numPoints = points.length\n\n count_loop:\n for(var i=0; i 0) {\n var triOffset = 0\n var lineOffset = triVertexCount\n var color = [0,0,0,1]\n var lineColor = [0,0,0,1]\n\n var isColorArray = Array.isArray(colors) && Array.isArray(colors[0])\n var isLineColorArray = Array.isArray(lineColors) && Array.isArray(lineColors[0])\n\n fill_loop:\n for(var i=0; i 0) ? (1 - glyphBounds[0][0]) :\n (textOffsetX < 0) ? (1 + glyphBounds[1][0]) : 1;\n\n textOffsetY *= (textOffsetY > 0) ? (1 - glyphBounds[0][1]) :\n (textOffsetY < 0) ? (1 + glyphBounds[1][1]) : 1;\n\n var textOffset = [textOffsetX, textOffsetY]\n\n //Write out inner marker\n var cells = glyphMesh.cells || []\n var verts = glyphMesh.positions || []\n\n for(var j=0; j 0) {\n\n //Draw border\n var w = lineWidth * pixelRatio\n boxes.drawBox(loX-w, loY-w, hiX+w, loY+w, borderColor)\n boxes.drawBox(loX-w, hiY-w, hiX+w, hiY+w, borderColor)\n boxes.drawBox(loX-w, loY-w, loX+w, hiY+w, borderColor)\n boxes.drawBox(hiX-w, loY-w, hiX+w, hiY+w, borderColor)\n }\n}\n\nproto.update = function(options) {\n options = options || {}\n\n this.innerFill = !!options.innerFill\n this.outerFill = !!options.outerFill\n this.innerColor = (options.innerColor || [0,0,0,0.5]).slice()\n this.outerColor = (options.outerColor || [0,0,0,0.5]).slice()\n this.borderColor = (options.borderColor || [0,0,0,1]).slice()\n this.borderWidth = options.borderWidth || 0\n this.selectBox = (options.selectBox || this.selectBox).slice()\n}\n\nproto.dispose = function() {\n this.boxBuffer.dispose()\n this.boxShader.dispose()\n this.plot.removeOverlay(this)\n}\n\nfunction createSelectBox(plot, options) {\n var gl = plot.gl\n var buffer = createBuffer(gl, [\n 0, 0,\n 0, 1,\n 1, 0,\n 1, 1 ])\n var shader = createShader(gl, SHADERS.boxVertex, SHADERS.boxFragment)\n var selectBox = new SelectBox(plot, buffer, shader)\n selectBox.update(options)\n plot.addOverlay(selectBox)\n return selectBox\n}\n\n},{\"./lib/shaders\":129,\"gl-buffer\":78,\"gl-shader\":132}],131:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createSelectBuffer\n\nvar createFBO = _glvis_('gl-fbo')\nvar pool = _glvis_('typedarray-pool')\nvar ndarray = _glvis_('ndarray')\nvar nextPow2 = _glvis_('bit-twiddle').nextPow2\n\nvar selectRange = function(arr, x, y) {\n var closestD2 = 1e8\n var closestX = -1\n var closestY = -1\n\n var ni = arr.shape[0]\n var nj = arr.shape[1]\n for(var i = 0; i < ni; i++) {\n for(var j = 0; j < nj; j++) {\n var r = arr.get(i, j, 0)\n var g = arr.get(i, j, 1)\n var b = arr.get(i, j, 2)\n var a = arr.get(i, j, 3)\n\n if(r < 255 || g < 255 || b < 255 || a < 255) {\n var dx = x - i\n var dy = y - j\n var d2 = dx*dx + dy*dy\n if(d2 < closestD2) {\n closestD2 = d2\n closestX = i\n closestY = j\n }\n }\n }\n }\n\n return [closestX, closestY, closestD2]\n}\n\nfunction SelectResult(x, y, id, value, distance) {\n this.coord = [x, y]\n this.id = id\n this.value = value\n this.distance = distance\n}\n\nfunction SelectBuffer(gl, fbo, buffer) {\n this.gl = gl\n this.fbo = fbo\n this.buffer = buffer\n this._readTimeout = null\n var self = this\n\n this._readCallback = function() {\n if(!self.gl) {\n return\n }\n fbo.bind()\n gl.readPixels(0,0,fbo.shape[0],fbo.shape[1],gl.RGBA,gl.UNSIGNED_BYTE,self.buffer)\n self._readTimeout = null\n }\n}\n\nvar proto = SelectBuffer.prototype\n\nObject.defineProperty(proto, 'shape', {\n get: function() {\n if(!this.gl) {\n return [0,0]\n }\n return this.fbo.shape.slice()\n },\n set: function(v) {\n if(!this.gl) {\n return\n }\n this.fbo.shape = v\n var c = this.fbo.shape[0]\n var r = this.fbo.shape[1]\n if(r*c*4 > this.buffer.length) {\n pool.free(this.buffer)\n var buffer = this.buffer = pool.mallocUint8(nextPow2(r*c*4))\n for(var i=0; i oldAttribCount) {\n for(i = oldAttribCount; i < newAttribCount; i++) {\n this.gl.enableVertexAttribArray(i)\n }\n } else if(oldAttribCount > newAttribCount) {\n for(i = newAttribCount; i < oldAttribCount; i++) {\n this.gl.disableVertexAttribArray(i)\n }\n }\n\n this.gl.lastAttribCount = newAttribCount\n\n this.gl.useProgram(this.program)\n}\n\nproto.dispose = function() {\n\n // disabling vertex attributes so new shader starts with zero\n // and it's also useful if all shaders are disposed but the\n // gl context is reused for subsequent replotting\n var oldAttribCount = this.gl.lastAttribCount\n for (var i = 0; i < oldAttribCount; i++) {\n this.gl.disableVertexAttribArray(i)\n }\n this.gl.lastAttribCount = 0\n\n if(this._fref) {\n this._fref.dispose()\n }\n if(this._vref) {\n this._vref.dispose()\n }\n this.attributes =\n this.types =\n this.vertShader =\n this.fragShader =\n this.program =\n this._relink =\n this._fref =\n this._vref = null\n}\n\nfunction compareAttributes(a, b) {\n if(a.name < b.name) {\n return -1\n }\n return 1\n}\n\n//Update export hook for glslify-live\nproto.update = function(\n vertSource\n , fragSource\n , uniforms\n , attributes) {\n\n //If only one object passed, assume glslify style output\n if(!fragSource || arguments.length === 1) {\n var obj = vertSource\n vertSource = obj.vertex\n fragSource = obj.fragment\n uniforms = obj.uniforms\n attributes = obj.attributes\n }\n\n var wrapper = this\n var gl = wrapper.gl\n\n //Compile vertex and fragment shaders\n var pvref = wrapper._vref\n wrapper._vref = shaderCache.shader(gl, gl.VERTEX_SHADER, vertSource)\n if(pvref) {\n pvref.dispose()\n }\n wrapper.vertShader = wrapper._vref.shader\n var pfref = this._fref\n wrapper._fref = shaderCache.shader(gl, gl.FRAGMENT_SHADER, fragSource)\n if(pfref) {\n pfref.dispose()\n }\n wrapper.fragShader = wrapper._fref.shader\n\n //If uniforms/attributes is not specified, use RT reflection\n if(!uniforms || !attributes) {\n\n //Create initial test program\n var testProgram = gl.createProgram()\n gl.attachShader(testProgram, wrapper.fragShader)\n gl.attachShader(testProgram, wrapper.vertShader)\n gl.linkProgram(testProgram)\n if(!gl.getProgramParameter(testProgram, gl.LINK_STATUS)) {\n var errLog = gl.getProgramInfoLog(testProgram)\n throw new GLError(errLog, 'Error linking program:' + errLog)\n }\n\n //Load data from runtime\n uniforms = uniforms || runtime.uniforms(gl, testProgram)\n attributes = attributes || runtime.attributes(gl, testProgram)\n\n //Release test program\n gl.deleteProgram(testProgram)\n }\n\n //Sort attributes lexicographically\n // overrides undefined WebGL behavior for attribute locations\n attributes = attributes.slice()\n attributes.sort(compareAttributes)\n\n //Convert attribute types, read out locations\n var attributeUnpacked = []\n var attributeNames = []\n var attributeLocations = []\n var i\n for(i=0; i= 0) {\n var size = attr.type.charAt(attr.type.length-1)|0\n var locVector = new Array(size)\n for(var j=0; j= 0) {\n curLocation += 1\n }\n attributeLocations[i] = curLocation\n }\n }\n\n //Rebuild program and recompute all uniform locations\n var uniformLocations = new Array(uniforms.length)\n function relink() {\n wrapper.program = shaderCache.program(\n gl\n , wrapper._vref\n , wrapper._fref\n , attributeNames\n , attributeLocations)\n\n for(var i=0; i= 0) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid data type for attribute ' + name + ': ' + type)\n }\n addVectorAttribute(\n gl\n , wrapper\n , locs[0]\n , locations\n , d\n , obj\n , name)\n } else if(type.indexOf('mat') >= 0) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid data type for attribute ' + name + ': ' + type)\n }\n addMatrixAttribute(\n gl\n , wrapper\n , locs\n , locations\n , d\n , obj\n , name)\n } else {\n throw new GLError('', 'Unknown data type for attribute ' + name + ': ' + type)\n }\n break\n }\n }\n return obj\n}\n\n},{\"./GLError\":133}],135:[function(_glvis_,module,exports){\n'use strict'\n\nvar coallesceUniforms = _glvis_('./reflect')\nvar GLError = _glvis_(\"./GLError\")\n\nmodule.exports = createUniformWrapper\n\n//Binds a function and returns a value\nfunction identity(x) {\n return function() {\n return x\n }\n}\n\nfunction makeVector(length, fill) {\n var result = new Array(length)\n for(var i=0; i 4) {\n throw new GLError('', 'Invalid data type')\n }\n switch(t.charAt(0)) {\n case 'b':\n case 'i':\n gl['uniform' + d + 'iv'](locations[idx], objPath)\n break\n case 'v':\n gl['uniform' + d + 'fv'](locations[idx], objPath)\n break\n default:\n throw new GLError('', 'Unrecognized data type for vector ' + name + ': ' + t)\n }\n } else if(t.indexOf('mat') === 0 && t.length === 4) {\n d = t.charCodeAt(t.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid uniform dimension type for matrix ' + name + ': ' + t)\n }\n gl['uniformMatrix' + d + 'fv'](locations[idx], false, objPath)\n break\n } else {\n throw new GLError('', 'Unknown uniform data type for ' + name + ': ' + t)\n }\n }\n }\n }\n }\n }\n\n function enumerateIndices(prefix, type) {\n if(typeof type !== 'object') {\n return [ [prefix, type] ]\n }\n var indices = []\n for(var id in type) {\n var prop = type[id]\n var tprefix = prefix\n if(parseInt(id) + '' === id) {\n tprefix += '[' + id + ']'\n } else {\n tprefix += '.' + id\n }\n if(typeof prop === 'object') {\n indices.push.apply(indices, enumerateIndices(tprefix, prop))\n } else {\n indices.push([tprefix, prop])\n }\n }\n return indices\n }\n\n\n function defaultValue(type) {\n switch(type) {\n case 'bool':\n return false\n case 'int':\n case 'sampler2D':\n case 'samplerCube':\n return 0\n case 'float':\n return 0.0\n default:\n var vidx = type.indexOf('vec')\n if(0 <= vidx && vidx <= 1 && type.length === 4 + vidx) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid data type')\n }\n if(type.charAt(0) === 'b') {\n return makeVector(d, false)\n }\n return makeVector(d, 0)\n } else if(type.indexOf('mat') === 0 && type.length === 4) {\n var d = type.charCodeAt(type.length-1) - 48\n if(d < 2 || d > 4) {\n throw new GLError('', 'Invalid uniform dimension type for matrix ' + name + ': ' + type)\n }\n return makeVector(d*d, 0)\n } else {\n throw new GLError('', 'Unknown uniform data type for ' + name + ': ' + type)\n }\n }\n }\n\n function storeProperty(obj, prop, type) {\n if(typeof type === 'object') {\n var child = processObject(type)\n Object.defineProperty(obj, prop, {\n get: identity(child),\n set: makeSetter(type),\n enumerable: true,\n configurable: false\n })\n } else {\n if(locations[type]) {\n Object.defineProperty(obj, prop, {\n get: makeGetter(type),\n set: makeSetter(type),\n enumerable: true,\n configurable: false\n })\n } else {\n obj[prop] = defaultValue(uniforms[type].type)\n }\n }\n }\n\n function processObject(obj) {\n var result\n if(Array.isArray(obj)) {\n result = new Array(obj.length)\n for(var i=0; i 1) {\n if(!(x[0] in o)) {\n o[x[0]] = []\n }\n o = o[x[0]]\n for(var k=1; k 1) {\n for(var j=0; j 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\n\\nuniform float vectorScale, tubeScale;\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 eyePosition, lightPosition;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * tubePosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\\n\\n // vec4 m_position = model * vec4(tubePosition, 1.0);\\n vec4 t_position = view * tubePosition;\\n gl_Position = projection * t_position;\\n\\n f_color = color;\\n f_data = tubePosition.xyz;\\n f_position = position.xyz;\\n f_uv = uv;\\n}\\n\"])\nvar triFragSrc = glslify([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\\n\"])\nvar pickVertSrc = glslify([\"precision highp float;\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform float tubeScale;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n gl_Position = projection * view * tubePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"])\nvar pickFragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"])\n\nexports.meshShader = {\n vertex: triVertSrc,\n fragment: triFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'color', type: 'vec4'},\n {name: 'uv', type: 'vec2'},\n {name: 'vector', type: 'vec4'}\n ]\n}\nexports.pickShader = {\n vertex: pickVertSrc,\n fragment: pickFragSrc,\n attributes: [\n {name: 'position', type: 'vec4'},\n {name: 'id', type: 'vec4'},\n {name: 'vector', type: 'vec4'}\n ]\n}\n\n},{\"glslify\":231}],143:[function(_glvis_,module,exports){\n\"use strict\";\n\nvar vec3 = _glvis_('gl-vec3');\nvar vec4 = _glvis_('gl-vec4');\nvar GRID_TYPES = ['xyz', 'xzy', 'yxz', 'yzx', 'zxy', 'zyx'];\n\nvar streamToTube = function(stream, maxDivergence, minDistance, maxNorm) {\n\tvar points = stream.points;\n\tvar velocities = stream.velocities;\n\tvar divergences = stream.divergences;\n\n\tvar verts = [];\n\tvar faces = [];\n\tvar vectors = [];\n\tvar previousVerts = [];\n\tvar currentVerts = [];\n\tvar intensities = [];\n\tvar previousIntensity = 0;\n\tvar currentIntensity = 0;\n\tvar currentVector = vec4.create();\n\tvar previousVector = vec4.create();\n\n\tvar facets = 8;\n\n\tfor (var i = 0; i < points.length; i++) {\n\t\tvar p = points[i];\n\t\tvar fwd = velocities[i];\n\t\tvar r = divergences[i];\n\t\tif (maxDivergence === 0) {\n\t\t\tr = minDistance * 0.05;\n\t\t}\n\t\tcurrentIntensity = vec3.length(fwd) / maxNorm;\n\n\t\tcurrentVector = vec4.create();\n\t\tvec3.copy(currentVector, fwd);\n\t\tcurrentVector[3] = r;\n\n\t\tfor (var a = 0; a < facets; a++) {\n\t\t\tcurrentVerts[a] = [p[0], p[1], p[2], a];\n\t\t}\n\t\tif (previousVerts.length > 0) {\n\t\t\tfor (var a = 0; a < facets; a++) {\n\t\t\t\tvar a1 = (a+1) % facets;\n\t\t\t\tverts.push(\n\t\t\t\t\tpreviousVerts[a],\n\t\t\t\t\tcurrentVerts[a],\n\t\t\t\t\tcurrentVerts[a1],\n\n\t\t\t\t\tcurrentVerts[a1],\n\t\t\t\t\tpreviousVerts[a1],\n\t\t\t\t\tpreviousVerts[a]\n\t\t\t\t);\n\t\t\t\tvectors.push(\n\t\t\t\t\tpreviousVector,\n\t\t\t\t\tcurrentVector,\n\t\t\t\t\tcurrentVector,\n\n\t\t\t\t\tcurrentVector,\n\t\t\t\t\tpreviousVector,\n\t\t\t\t\tpreviousVector\n\t\t\t\t);\n\t\t\t\tintensities.push(\n\t\t\t\t\tpreviousIntensity,\n\t\t\t\t\tcurrentIntensity,\n\t\t\t\t\tcurrentIntensity,\n\n\t\t\t\t\tcurrentIntensity,\n\t\t\t\t\tpreviousIntensity,\n\t\t\t\t\tpreviousIntensity\n\t\t\t\t);\n\n\t\t\t\tvar len = verts.length;\n\t\t\t\tfaces.push(\n\t\t\t\t\t[len-6, len-5, len-4],\n\t\t\t\t\t[len-3, len-2, len-1]\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tvar tmp1 = previousVerts;\n\t\tpreviousVerts = currentVerts;\n\t\tcurrentVerts = tmp1;\n\n\t\tvar tmp2 = previousVector;\n\t\tpreviousVector = currentVector;\n\t\tcurrentVector = tmp2;\n\n\t\tvar tmp3 = previousIntensity;\n\t\tpreviousIntensity = currentIntensity;\n\t\tcurrentIntensity = tmp3;\n\t}\n\treturn {\n\t\tpositions: verts,\n\t\tcells: faces,\n\t\tvectors: vectors,\n\t\tvertexIntensity: intensities\n\t};\n};\n\nvar createTubes = function(streams, colormap, maxDivergence, minDistance) {\n\n\tvar maxNorm = 0;\n\tfor (var i=0; i v) return i-1;\n }\n return i;\n};\n\nvar clamp = function(v, min, max) {\n\treturn v < min ? min : (v > max ? max : v);\n};\n\nvar sampleMeshgrid = function(point, vectorField, gridInfo) {\n\tvar vectors = vectorField.vectors;\n\tvar meshgrid = vectorField.meshgrid;\n\n\tvar x = point[0];\n\tvar y = point[1];\n\tvar z = point[2];\n\n\tvar w = meshgrid[0].length;\n\tvar h = meshgrid[1].length;\n\tvar d = meshgrid[2].length;\n\n\t// Find the index of the nearest smaller value in the meshgrid for each coordinate of (x,y,z).\n\t// The nearest smaller value index for x is the index x0 such that\n\t// meshgrid[0][x0] < x and for all x1 > x0, meshgrid[0][x1] >= x.\n\tvar x0 = findLastSmallerIndex(meshgrid[0], x);\n\tvar y0 = findLastSmallerIndex(meshgrid[1], y);\n\tvar z0 = findLastSmallerIndex(meshgrid[2], z);\n\n\t// Get the nearest larger meshgrid value indices.\n\t// From the above \"nearest smaller value\", we know that\n\t// meshgrid[0][x0] < x\n\t// meshgrid[0][x0+1] >= x\n\tvar x1 = x0 + 1;\n\tvar y1 = y0 + 1;\n\tvar z1 = z0 + 1;\n\n\tx0 = clamp(x0, 0, w-1);\n\tx1 = clamp(x1, 0, w-1);\n\ty0 = clamp(y0, 0, h-1);\n\ty1 = clamp(y1, 0, h-1);\n\tz0 = clamp(z0, 0, d-1);\n\tz1 = clamp(z1, 0, d-1);\n\n\t// Reject points outside the meshgrid, return a zero vector.\n\tif (x0 < 0 || y0 < 0 || z0 < 0 || x1 > w-1 || y1 > h-1 || z1 > d-1) {\n\t\treturn vec3.create();\n\t}\n\n\t// Normalize point coordinates to 0..1 scaling factor between x0 and x1.\n\tvar mX0 = meshgrid[0][x0];\n\tvar mX1 = meshgrid[0][x1];\n\tvar mY0 = meshgrid[1][y0];\n\tvar mY1 = meshgrid[1][y1];\n\tvar mZ0 = meshgrid[2][z0];\n\tvar mZ1 = meshgrid[2][z1];\n\tvar xf = (x - mX0) / (mX1 - mX0);\n\tvar yf = (y - mY0) / (mY1 - mY0);\n\tvar zf = (z - mZ0) / (mZ1 - mZ0);\n\n\tif (!isFinite(xf)) xf = 0.5;\n\tif (!isFinite(yf)) yf = 0.5;\n\tif (!isFinite(zf)) zf = 0.5;\n\n\tvar x0off;\n\tvar x1off;\n\tvar y0off;\n\tvar y1off;\n\tvar z0off;\n\tvar z1off;\n\n\tif(gridInfo.reversedX) {\n\t\tx0 = w - 1 - x0;\n\t\tx1 = w - 1 - x1;\n\t}\n\n\tif(gridInfo.reversedY) {\n\t\ty0 = h - 1 - y0;\n\t\ty1 = h - 1 - y1;\n\t}\n\n\tif(gridInfo.reversedZ) {\n\t\tz0 = d - 1 - z0;\n\t\tz1 = d - 1 - z1;\n\t}\n\n\tswitch(gridInfo.filled) {\n\t\tcase 5: // 'zyx'\n\t\t\tz0off = z0;\n\t\t\tz1off = z1;\n\t\t\ty0off = y0*d;\n\t\t\ty1off = y1*d;\n\t\t\tx0off = x0*d*h;\n\t\t\tx1off = x1*d*h;\n\t\t\tbreak;\n\n\t\tcase 4: // 'zxy'\n\t\t\tz0off = z0;\n\t\t\tz1off = z1;\n\t\t\tx0off = x0*d;\n\t\t\tx1off = x1*d;\n\t\t\ty0off = y0*d*w;\n\t\t\ty1off = y1*d*w;\n\t\t\tbreak;\n\n\t\tcase 3: // 'yzx'\n\t\t\ty0off = y0;\n\t\t\ty1off = y1;\n\t\t\tz0off = z0*h;\n\t\t\tz1off = z1*h;\n\t\t\tx0off = x0*h*d;\n\t\t\tx1off = x1*h*d;\n\t\t\tbreak;\n\n\t\tcase 2: // 'yxz'\n\t\t\ty0off = y0;\n\t\t\ty1off = y1;\n\t\t\tx0off = x0*h;\n\t\t\tx1off = x1*h;\n\t\t\tz0off = z0*h*w;\n\t\t\tz1off = z1*h*w;\n\t\t\tbreak;\n\n\t\tcase 1: // 'xzy'\n\t\t\tx0off = x0;\n\t\t\tx1off = x1;\n\t\t\tz0off = z0*w;\n\t\t\tz1off = z1*w;\n\t\t\ty0off = y0*w*d;\n\t\t\ty1off = y1*w*d;\n\t\t\tbreak;\n\n\t\tdefault: // case 0: // 'xyz'\n\t\t\tx0off = x0;\n\t\t\tx1off = x1;\n\t\t\ty0off = y0*w;\n\t\t\ty1off = y1*w;\n\t\t\tz0off = z0*w*h;\n\t\t\tz1off = z1*w*h;\n\t\t\tbreak;\n\t}\n\n\t// Sample data vectors around the (x,y,z) point.\n\tvar v000 = vectors[x0off + y0off + z0off];\n\tvar v001 = vectors[x0off + y0off + z1off];\n\tvar v010 = vectors[x0off + y1off + z0off];\n\tvar v011 = vectors[x0off + y1off + z1off];\n\tvar v100 = vectors[x1off + y0off + z0off];\n\tvar v101 = vectors[x1off + y0off + z1off];\n\tvar v110 = vectors[x1off + y1off + z0off];\n\tvar v111 = vectors[x1off + y1off + z1off];\n\n\tvar c00 = vec3.create();\n\tvar c01 = vec3.create();\n\tvar c10 = vec3.create();\n\tvar c11 = vec3.create();\n\n\tvec3.lerp(c00, v000, v100, xf);\n\tvec3.lerp(c01, v001, v101, xf);\n\tvec3.lerp(c10, v010, v110, xf);\n\tvec3.lerp(c11, v011, v111, xf);\n\n\tvar c0 = vec3.create();\n\tvar c1 = vec3.create();\n\n\tvec3.lerp(c0, c00, c10, yf);\n\tvec3.lerp(c1, c01, c11, yf);\n\n\tvar c = vec3.create();\n\n\tvec3.lerp(c, c0, c1, zf);\n\n\treturn c;\n};\n\n\nvar vabs = function(dst, v) {\n\tvar x = v[0];\n\tvar y = v[1];\n\tvar z = v[2];\n\tdst[0] = x < 0 ? -x : x;\n\tdst[1] = y < 0 ? -y : y;\n\tdst[2] = z < 0 ? -z : z;\n\treturn dst;\n};\n\nvar findMinSeparation = function(xs) {\n\tvar minSeparation = Infinity;\n\txs.sort(function(a, b) { return a - b; });\n\tvar len = xs.length;\n\tfor (var i=1; i maxX ||\n\t\t\ty < minY || y > maxY ||\n\t\t\tz < minZ || z > maxZ\n\t\t);\n\t};\n\n\tvar boundsSize = vec3.distance(bounds[0], bounds[1]);\n\tvar maxStepSize = 10 * boundsSize / maxLength;\n\tvar maxStepSizeSq = maxStepSize * maxStepSize;\n\n\tvar minDistance = 1;\n\tvar maxDivergence = 0; // For component-wise divergence vec3.create();\n\n\t// In case we need to do component-wise divergence visualization\n\t// var tmp = vec3.create();\n\n\tvar len = positions.length;\n\tif (len > 1) {\n\t\tminDistance = calculateMinPositionDistance(positions);\n\t}\n\n\tfor (var i = 0; i < len; i++) {\n\t\tvar p = vec3.create();\n\t\tvec3.copy(p, positions[i]);\n\n\t\tvar stream = [p];\n\t\tvar velocities = [];\n\t\tvar v = getVelocity(p);\n\t\tvar op = p;\n\t\tvelocities.push(v);\n\n\t\tvar divergences = [];\n\n\t\tvar dv = getDivergence(p, v);\n\t\tvar dvLength = vec3.length(dv);\n\t\tif (isFinite(dvLength) && dvLength > maxDivergence) {\n\t\t\tmaxDivergence = dvLength;\n\t\t}\n\t\t// In case we need to do component-wise divergence visualization\n\t\t// vec3.max(maxDivergence, maxDivergence, vabs(tmp, dv));\n\t\tdivergences.push(dvLength);\n\n\t\tstreams.push({points: stream, velocities: velocities, divergences: divergences});\n\n\t\tvar j = 0;\n\n\t\twhile (j < maxLength * 100 && stream.length < maxLength && inBounds(p)) {\n\t\t\tj++;\n\t\t\tvar np = vec3.clone(v);\n\t\t\tvar sqLen = vec3.squaredLength(np);\n\t\t\tif (sqLen === 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (sqLen > maxStepSizeSq) {\n\t\t\t\tvec3.scale(np, np, maxStepSize / Math.sqrt(sqLen));\n\t\t\t}\n\t\t\tvec3.add(np, np, p);\n\n\t\t\tv = getVelocity(np);\n\n\t\t\tif (vec3.squaredDistance(op, np) - maxStepSizeSq > -0.0001 * maxStepSizeSq) {\n\t\t\t\tstream.push(np);\n\t\t\t\top = np;\n\t\t\t\tvelocities.push(v);\n\t\t\t\tvar dv = getDivergence(np, v);\n\t\t\t\tvar dvLength = vec3.length(dv);\n\t\t\t\tif (isFinite(dvLength) && dvLength > maxDivergence) {\n\t\t\t\t\tmaxDivergence = dvLength;\n\t\t\t\t}\n\t\t\t\t// In case we need to do component-wise divergence visualization\n\t\t\t\t//vec3.max(maxDivergence, maxDivergence, vabs(tmp, dv));\n\t\t\t\tdivergences.push(dvLength);\n\t\t\t}\n\n\t\t\tp = np;\n\t\t}\n\t}\n\n\tvar tubes = createTubes(streams, vectorField.colormap, maxDivergence, minDistance);\n\n\tif (absoluteTubeSize) {\n\t\ttubes.tubeScale = absoluteTubeSize;\n\t} else {\n\t\t// Avoid division by zero.\n\t\tif (maxDivergence === 0) {\n\t\t\tmaxDivergence = 1;\n\t\t}\n\t\ttubes.tubeScale = tubeSize * 0.5 * minDistance / maxDivergence;\n\t}\n\n\treturn tubes;\n};\n\nvar shaders = _glvis_('./lib/shaders');\nvar createMesh = _glvis_('gl-cone3d').createMesh;\nmodule.exports.createTubeMesh = function(gl, params) {\n\treturn createMesh(gl, params, {\n\t\tshaders: shaders,\n\t\ttraceType: 'streamtube'\n\t});\n}\n\n},{\"./lib/shaders\":142,\"gl-cone3d\":79,\"gl-vec3\":169,\"gl-vec4\":205}],144:[function(_glvis_,module,exports){\nvar createShader = _glvis_('gl-shader')\nvar glslify = _glvis_('glslify')\n\nvar vertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute vec3 f;\\nattribute vec3 normal;\\n\\nuniform vec3 objectOffset;\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 lightPosition, eyePosition;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 localCoordinate = vec3(uv.zw, f.x);\\n worldCoordinate = objectOffset + localCoordinate;\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n vec4 clipPosition = projection * view * worldPosition;\\n gl_Position = clipPosition;\\n kill = f.y;\\n value = f.z;\\n planeCoordinate = uv.xy;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * worldPosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n lightDirection = lightPosition - cameraCoordinate.xyz;\\n eyeDirection = eyePosition - cameraCoordinate.xyz;\\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\\n}\\n\"])\nvar fragSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat beckmannSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness) {\\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 lowerBound, upperBound;\\nuniform float contourTint;\\nuniform vec4 contourColor;\\nuniform sampler2D colormap;\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform float vertexColor;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n if (\\n kill > 0.0 ||\\n vColor.a == 0.0 ||\\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\\n ) discard;\\n\\n vec3 N = normalize(surfaceNormal);\\n vec3 V = normalize(eyeDirection);\\n vec3 L = normalize(lightDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n //decide how to interpolate color — in vertex or in fragment\\n vec4 surfaceColor =\\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\\n step(.5, vertexColor) * vColor;\\n\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\\n}\\n\"])\nvar contourVertSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute float f;\\n\\nuniform vec3 objectOffset;\\nuniform mat3 permutation;\\nuniform mat4 model, view, projection;\\nuniform float height, zOffset;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\\n worldCoordinate = objectOffset + dataCoordinate;\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n\\n vec4 clipPosition = projection * view * worldPosition;\\n clipPosition.z += zOffset;\\n\\n gl_Position = clipPosition;\\n value = f + objectOffset.z;\\n kill = -1.0;\\n planeCoordinate = uv.zw;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Don't do lighting for contours\\n surfaceNormal = vec3(1,0,0);\\n eyeDirection = vec3(0,1,0);\\n lightDirection = vec3(0,0,1);\\n}\\n\"])\nvar pickSrc = glslify([\"precision highp float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec2 shape;\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 surfaceNormal;\\n\\nvec2 splitFloat(float v) {\\n float vh = 255.0 * v;\\n float upper = floor(vh);\\n float lower = fract(vh);\\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\\n}\\n\\nvoid main() {\\n if ((kill > 0.0) ||\\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\\n\\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\\n}\\n\"])\n\nexports.createShader = function (gl) {\n var shader = createShader(gl, vertSrc, fragSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'vec3'},\n {name: 'normal', type: 'vec3'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n shader.attributes.normal.location = 2\n return shader\n}\nexports.createPickShader = function (gl) {\n var shader = createShader(gl, vertSrc, pickSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'vec3'},\n {name: 'normal', type: 'vec3'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n shader.attributes.normal.location = 2\n return shader\n}\nexports.createContourShader = function (gl) {\n var shader = createShader(gl, contourVertSrc, fragSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'float'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n return shader\n}\nexports.createPickContourShader = function (gl) {\n var shader = createShader(gl, contourVertSrc, pickSrc, null, [\n {name: 'uv', type: 'vec4'},\n {name: 'f', type: 'float'}\n ])\n shader.attributes.uv.location = 0\n shader.attributes.f.location = 1\n return shader\n}\n\n},{\"gl-shader\":132,\"glslify\":231}],145:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createSurfacePlot\n\nvar bits = _glvis_('bit-twiddle')\nvar createBuffer = _glvis_('gl-buffer')\nvar createVAO = _glvis_('gl-vao')\nvar createTexture = _glvis_('gl-texture2d')\nvar pool = _glvis_('typedarray-pool')\nvar colormap = _glvis_('colormap')\nvar ops = _glvis_('ndarray-ops')\nvar pack = _glvis_('ndarray-pack')\nvar ndarray = _glvis_('ndarray')\nvar surfaceNets = _glvis_('surface-nets')\nvar multiply = _glvis_('gl-mat4/multiply')\nvar invert = _glvis_('gl-mat4/invert')\nvar bsearch = _glvis_('binary-search-bounds')\nvar gradient = _glvis_('ndarray-gradient')\nvar shaders = _glvis_('./lib/shaders')\n\nvar createShader = shaders.createShader\nvar createContourShader = shaders.createContourShader\nvar createPickShader = shaders.createPickShader\nvar createPickContourShader = shaders.createPickContourShader\n\nvar SURFACE_VERTEX_SIZE = 4 * (4 + 3 + 3)\n\nvar IDENTITY = [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1 ]\n\nvar QUAD = [\n [0, 0],\n [0, 1],\n [1, 0],\n [1, 1],\n [1, 0],\n [0, 1]\n]\n\nvar PERMUTATIONS = [\n [0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0]\n]\n\n;(function () {\n for (var i = 0; i < 3; ++i) {\n var p = PERMUTATIONS[i]\n var u = (i + 1) % 3\n var v = (i + 2) % 3\n p[u + 0] = 1\n p[v + 3] = 1\n p[i + 6] = 1\n }\n})()\n\nfunction SurfacePickResult (position, index, uv, level, dataCoordinate) {\n this.position = position\n this.index = index\n this.uv = uv\n this.level = level\n this.dataCoordinate = dataCoordinate\n}\n\nvar N_COLORS = 256\n\nfunction SurfacePlot (\n gl,\n shape,\n bounds,\n shader,\n pickShader,\n coordinates,\n vao,\n colorMap,\n contourShader,\n contourPickShader,\n contourBuffer,\n contourVAO,\n dynamicBuffer,\n dynamicVAO,\n objectOffset) {\n this.gl = gl\n this.shape = shape\n this.bounds = bounds\n this.objectOffset = objectOffset\n this.intensityBounds = []\n\n this._shader = shader\n this._pickShader = pickShader\n this._coordinateBuffer = coordinates\n this._vao = vao\n this._colorMap = colorMap\n\n this._contourShader = contourShader\n this._contourPickShader = contourPickShader\n this._contourBuffer = contourBuffer\n this._contourVAO = contourVAO\n this._contourOffsets = [[], [], []]\n this._contourCounts = [[], [], []]\n this._vertexCount = 0\n\n this._pickResult = new SurfacePickResult([0, 0, 0], [0, 0], [0, 0], [0, 0, 0], [0, 0, 0])\n\n this._dynamicBuffer = dynamicBuffer\n this._dynamicVAO = dynamicVAO\n this._dynamicOffsets = [0, 0, 0]\n this._dynamicCounts = [0, 0, 0]\n\n this.contourWidth = [ 1, 1, 1 ]\n this.contourLevels = [[1], [1], [1]]\n this.contourTint = [0, 0, 0]\n this.contourColor = [[0.5, 0.5, 0.5, 1], [0.5, 0.5, 0.5, 1], [0.5, 0.5, 0.5, 1]]\n\n this.showContour = true\n this.showSurface = true\n\n this.enableHighlight = [true, true, true]\n this.highlightColor = [[0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1]]\n this.highlightTint = [ 1, 1, 1 ]\n this.highlightLevel = [-1, -1, -1]\n\n // Dynamic contour options\n this.enableDynamic = [ true, true, true ]\n this.dynamicLevel = [ NaN, NaN, NaN ]\n this.dynamicColor = [ [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1] ]\n this.dynamicTint = [ 1, 1, 1 ]\n this.dynamicWidth = [ 1, 1, 1 ]\n\n this.axesBounds = [[Infinity, Infinity, Infinity], [-Infinity, -Infinity, -Infinity]]\n this.surfaceProject = [ false, false, false ]\n this.contourProject = [[ false, false, false ],\n [ false, false, false ],\n [ false, false, false ]]\n\n this.colorBounds = [ false, false ]\n\n // Store xyz fields, need this for picking\n this._field = [\n ndarray(pool.mallocFloat(1024), [0, 0]),\n ndarray(pool.mallocFloat(1024), [0, 0]),\n ndarray(pool.mallocFloat(1024), [0, 0]) ]\n\n this.pickId = 1\n this.clipBounds = [[-Infinity, -Infinity, -Infinity], [Infinity, Infinity, Infinity]]\n\n this.snapToData = false\n\n this.pixelRatio = 1\n\n this.opacity = 1.0\n\n this.lightPosition = [10, 10000, 0]\n this.ambientLight = 0.8\n this.diffuseLight = 0.8\n this.specularLight = 2.0\n this.roughness = 0.5\n this.fresnel = 1.5\n this.vertexColor = 0\n\n this.dirty = true\n}\n\nvar proto = SurfacePlot.prototype\n\nproto.genColormap = function (name, opacityscale) {\n var hasAlpha = false\n\n var x = pack([colormap({\n colormap: name,\n nshades: N_COLORS,\n format: 'rgba'\n }).map(function (c, i) {\n var a = opacityscale ? getOpacityFromScale(i / 255.0, opacityscale) : c[3]\n if(a < 1) hasAlpha = true\n return [c[0], c[1], c[2], 255 * a]\n })])\n ops.divseq(x, 255.0)\n\n this.hasAlphaScale = hasAlpha\n return x\n}\n\nproto.isTransparent = function () {\n return this.opacity < 1 || this.hasAlphaScale\n}\n\nproto.isOpaque = function () {\n return !this.isTransparent()\n}\n\nproto.pickSlots = 1\n\nproto.setPickBase = function (id) {\n this.pickId = id\n}\n\nfunction getOpacityFromScale(ratio, opacityscale) { // copied form gl-mesh3d\n if(!opacityscale) return 1\n if(!opacityscale.length) return 1\n\n for(var i = 0; i < opacityscale.length; ++i) {\n if(opacityscale.length < 2) return 1\n if(opacityscale[i][0] === ratio) return opacityscale[i][1]\n if(opacityscale[i][0] > ratio && i > 0) {\n var d = (opacityscale[i][0] - ratio) / (opacityscale[i][0] - opacityscale[i - 1][0])\n return opacityscale[i][1] * (1 - d) + d * opacityscale[i - 1][1]\n }\n }\n\n return 1\n}\n\nvar ZERO_VEC = [0, 0, 0]\n\nvar PROJECT_DATA = {\n showSurface: false,\n showContour: false,\n projections: [IDENTITY.slice(), IDENTITY.slice(), IDENTITY.slice()],\n clipBounds: [\n [[0, 0, 0], [0, 0, 0]],\n [[0, 0, 0], [0, 0, 0]],\n [[0, 0, 0], [0, 0, 0]]]\n}\n\nfunction computeProjectionData (camera, obj) {\n var i, j, k\n\n // Compute cube properties\n var cubeAxis = (obj.axes && obj.axes.lastCubeProps.axis) || ZERO_VEC\n\n var showSurface = obj.showSurface\n var showContour = obj.showContour\n\n for (i = 0; i < 3; ++i) {\n showSurface = showSurface || obj.surfaceProject[i]\n for (j = 0; j < 3; ++j) {\n showContour = showContour || obj.contourProject[i][j]\n }\n }\n\n for (i = 0; i < 3; ++i) {\n // Construct projection onto axis\n var axisSquish = PROJECT_DATA.projections[i]\n for (j = 0; j < 16; ++j) {\n axisSquish[j] = 0\n }\n for (j = 0; j < 4; ++j) {\n axisSquish[5 * j] = 1\n }\n axisSquish[5 * i] = 0\n axisSquish[12 + i] = obj.axesBounds[+(cubeAxis[i] > 0)][i]\n multiply(axisSquish, camera.model, axisSquish)\n\n var nclipBounds = PROJECT_DATA.clipBounds[i]\n for (k = 0; k < 2; ++k) {\n for (j = 0; j < 3; ++j) {\n nclipBounds[k][j] = camera.clipBounds[k][j]\n }\n }\n nclipBounds[0][i] = -1e8\n nclipBounds[1][i] = 1e8\n }\n\n PROJECT_DATA.showSurface = showSurface\n PROJECT_DATA.showContour = showContour\n\n return PROJECT_DATA\n}\n\nvar UNIFORMS = {\n model: IDENTITY,\n view: IDENTITY,\n projection: IDENTITY,\n inverseModel: IDENTITY.slice(),\n lowerBound: [0, 0, 0],\n upperBound: [0, 0, 0],\n colorMap: 0,\n clipBounds: [[0, 0, 0], [0, 0, 0]],\n height: 0.0,\n contourTint: 0,\n contourColor: [0, 0, 0, 1],\n permutation: [1, 0, 0, 0, 1, 0, 0, 0, 1],\n zOffset: -1e-4,\n objectOffset: [0, 0, 0],\n kambient: 1,\n kdiffuse: 1,\n kspecular: 1,\n lightPosition: [1000, 1000, 1000],\n eyePosition: [0, 0, 0],\n roughness: 1,\n fresnel: 1,\n opacity: 1,\n vertexColor: 0\n}\n\nvar MATRIX_INVERSE = IDENTITY.slice()\nvar DEFAULT_PERM = [1, 0, 0, 0, 1, 0, 0, 0, 1]\n\nfunction drawCore (params, transparent) {\n params = params || {}\n var gl = this.gl\n\n gl.disable(gl.CULL_FACE)\n\n this._colorMap.bind(0)\n\n var uniforms = UNIFORMS\n uniforms.model = params.model || IDENTITY\n uniforms.view = params.view || IDENTITY\n uniforms.projection = params.projection || IDENTITY\n uniforms.lowerBound = [this.bounds[0][0], this.bounds[0][1], this.colorBounds[0] || this.bounds[0][2]]\n uniforms.upperBound = [this.bounds[1][0], this.bounds[1][1], this.colorBounds[1] || this.bounds[1][2]]\n uniforms.objectOffset = this.objectOffset\n uniforms.contourColor = this.contourColor[0]\n\n uniforms.inverseModel = invert(uniforms.inverseModel, uniforms.model)\n\n for (var i = 0; i < 2; ++i) {\n var clipClamped = uniforms.clipBounds[i]\n for (var j = 0; j < 3; ++j) {\n clipClamped[j] = Math.min(Math.max(this.clipBounds[i][j], -1e8), 1e8)\n }\n }\n\n uniforms.kambient = this.ambientLight\n uniforms.kdiffuse = this.diffuseLight\n uniforms.kspecular = this.specularLight\n\n uniforms.roughness = this.roughness\n uniforms.fresnel = this.fresnel\n uniforms.opacity = this.opacity\n\n uniforms.height = 0.0\n uniforms.permutation = DEFAULT_PERM\n\n uniforms.vertexColor = this.vertexColor\n\n // Compute camera matrix inverse\n var invCameraMatrix = MATRIX_INVERSE\n multiply(invCameraMatrix, uniforms.view, uniforms.model)\n multiply(invCameraMatrix, uniforms.projection, invCameraMatrix)\n invert(invCameraMatrix, invCameraMatrix)\n\n for (i = 0; i < 3; ++i) {\n uniforms.eyePosition[i] = invCameraMatrix[12 + i] / invCameraMatrix[15]\n }\n\n var w = invCameraMatrix[15]\n for (i = 0; i < 3; ++i) {\n w += this.lightPosition[i] * invCameraMatrix[4 * i + 3]\n }\n for (i = 0; i < 3; ++i) {\n var s = invCameraMatrix[12 + i]\n for (j = 0; j < 3; ++j) {\n s += invCameraMatrix[4 * j + i] * this.lightPosition[j]\n }\n uniforms.lightPosition[i] = s / w\n }\n\n var projectData = computeProjectionData(uniforms, this)\n\n if (projectData.showSurface) {\n // Set up uniforms\n this._shader.bind()\n this._shader.uniforms = uniforms\n\n // Draw it\n this._vao.bind()\n\n if (this.showSurface && this._vertexCount) {\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n }\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n if (!this.surfaceProject[i] || !this.vertexCount) {\n continue\n }\n this._shader.uniforms.model = projectData.projections[i]\n this._shader.uniforms.clipBounds = projectData.clipBounds[i]\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n }\n\n this._vao.unbind()\n }\n\n if (projectData.showContour) {\n var shader = this._contourShader\n\n // Don't apply lighting to contours\n uniforms.kambient = 1.0\n uniforms.kdiffuse = 0.0\n uniforms.kspecular = 0.0\n uniforms.opacity = 1.0\n\n shader.bind()\n shader.uniforms = uniforms\n\n // Draw contour lines\n var vao = this._contourVAO\n vao.bind()\n\n // Draw contour levels\n for (i = 0; i < 3; ++i) {\n shader.uniforms.permutation = PERMUTATIONS[i]\n gl.lineWidth(this.contourWidth[i] * this.pixelRatio)\n\n for (j = 0; j < this.contourLevels[i].length; ++j) {\n if (j === this.highlightLevel[i]) {\n shader.uniforms.contourColor = this.highlightColor[i]\n shader.uniforms.contourTint = this.highlightTint[i]\n } else if (j === 0 || (j - 1) === this.highlightLevel[i]) {\n shader.uniforms.contourColor = this.contourColor[i]\n shader.uniforms.contourTint = this.contourTint[i]\n }\n if (!this._contourCounts[i][j]) {\n continue\n }\n\n shader.uniforms.height = this.contourLevels[i][j]\n vao.draw(gl.LINES, this._contourCounts[i][j], this._contourOffsets[i][j])\n }\n }\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n shader.uniforms.model = projectData.projections[i]\n shader.uniforms.clipBounds = projectData.clipBounds[i]\n for (j = 0; j < 3; ++j) {\n if (!this.contourProject[i][j]) {\n continue\n }\n shader.uniforms.permutation = PERMUTATIONS[j]\n gl.lineWidth(this.contourWidth[j] * this.pixelRatio)\n for (var k = 0; k < this.contourLevels[j].length; ++k) {\n if (k === this.highlightLevel[j]) {\n shader.uniforms.contourColor = this.highlightColor[j]\n shader.uniforms.contourTint = this.highlightTint[j]\n } else if (k === 0 || (k - 1) === this.highlightLevel[j]) {\n shader.uniforms.contourColor = this.contourColor[j]\n shader.uniforms.contourTint = this.contourTint[j]\n }\n if (!this._contourCounts[j][k]) {\n continue\n }\n\n shader.uniforms.height = this.contourLevels[j][k]\n vao.draw(gl.LINES, this._contourCounts[j][k], this._contourOffsets[j][k])\n }\n }\n }\n\n vao.unbind()\n\n // Draw dynamic contours\n vao = this._dynamicVAO\n vao.bind()\n\n // Draw contour levels\n for (i = 0; i < 3; ++i) {\n if (this._dynamicCounts[i] === 0) {\n continue\n }\n\n shader.uniforms.model = uniforms.model\n shader.uniforms.clipBounds = uniforms.clipBounds\n shader.uniforms.permutation = PERMUTATIONS[i]\n gl.lineWidth(this.dynamicWidth[i] * this.pixelRatio)\n\n shader.uniforms.contourColor = this.dynamicColor[i]\n shader.uniforms.contourTint = this.dynamicTint[i]\n shader.uniforms.height = this.dynamicLevel[i]\n vao.draw(gl.LINES, this._dynamicCounts[i], this._dynamicOffsets[i])\n\n for (j = 0; j < 3; ++j) {\n if (!this.contourProject[j][i]) {\n continue\n }\n\n shader.uniforms.model = projectData.projections[j]\n shader.uniforms.clipBounds = projectData.clipBounds[j]\n vao.draw(gl.LINES, this._dynamicCounts[i], this._dynamicOffsets[i])\n }\n }\n\n vao.unbind()\n }\n}\n\nproto.draw = function (params) {\n return drawCore.call(this, params, false)\n}\n\nproto.drawTransparent = function (params) {\n return drawCore.call(this, params, true)\n}\n\nvar PICK_UNIFORMS = {\n model: IDENTITY,\n view: IDENTITY,\n projection: IDENTITY,\n inverseModel: IDENTITY,\n clipBounds: [[0, 0, 0], [0, 0, 0]],\n height: 0.0,\n shape: [0, 0],\n pickId: 0,\n lowerBound: [0, 0, 0],\n upperBound: [0, 0, 0],\n zOffset: 0.0,\n objectOffset: [0, 0, 0],\n permutation: [1, 0, 0, 0, 1, 0, 0, 0, 1],\n lightPosition: [0, 0, 0],\n eyePosition: [0, 0, 0]\n}\n\nproto.drawPick = function (params) {\n params = params || {}\n var gl = this.gl\n gl.disable(gl.CULL_FACE)\n\n var uniforms = PICK_UNIFORMS\n uniforms.model = params.model || IDENTITY\n uniforms.view = params.view || IDENTITY\n uniforms.projection = params.projection || IDENTITY\n uniforms.shape = this._field[2].shape\n uniforms.pickId = this.pickId / 255.0\n uniforms.lowerBound = this.bounds[0]\n uniforms.upperBound = this.bounds[1]\n uniforms.objectOffset = this.objectOffset\n uniforms.permutation = DEFAULT_PERM\n\n for (var i = 0; i < 2; ++i) {\n var clipClamped = uniforms.clipBounds[i]\n for (var j = 0; j < 3; ++j) {\n clipClamped[j] = Math.min(Math.max(this.clipBounds[i][j], -1e8), 1e8)\n }\n }\n\n var projectData = computeProjectionData(uniforms, this)\n\n if (projectData.showSurface) {\n // Set up uniforms\n this._pickShader.bind()\n this._pickShader.uniforms = uniforms\n\n // Draw it\n this._vao.bind()\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n if (!this.surfaceProject[i]) {\n continue\n }\n this._pickShader.uniforms.model = projectData.projections[i]\n this._pickShader.uniforms.clipBounds = projectData.clipBounds[i]\n this._vao.draw(gl.TRIANGLES, this._vertexCount)\n }\n\n this._vao.unbind()\n }\n\n if (projectData.showContour) {\n var shader = this._contourPickShader\n\n shader.bind()\n shader.uniforms = uniforms\n\n var vao = this._contourVAO\n vao.bind()\n\n for (j = 0; j < 3; ++j) {\n gl.lineWidth(this.contourWidth[j] * this.pixelRatio)\n shader.uniforms.permutation = PERMUTATIONS[j]\n for (i = 0; i < this.contourLevels[j].length; ++i) {\n if (this._contourCounts[j][i]) {\n shader.uniforms.height = this.contourLevels[j][i]\n vao.draw(gl.LINES, this._contourCounts[j][i], this._contourOffsets[j][i])\n }\n }\n }\n\n // Draw projections of surface\n for (i = 0; i < 3; ++i) {\n shader.uniforms.model = projectData.projections[i]\n shader.uniforms.clipBounds = projectData.clipBounds[i]\n\n for (j = 0; j < 3; ++j) {\n if (!this.contourProject[i][j]) {\n continue\n }\n\n shader.uniforms.permutation = PERMUTATIONS[j]\n gl.lineWidth(this.contourWidth[j] * this.pixelRatio)\n for (var k = 0; k < this.contourLevels[j].length; ++k) {\n if (this._contourCounts[j][k]) {\n shader.uniforms.height = this.contourLevels[j][k]\n vao.draw(gl.LINES, this._contourCounts[j][k], this._contourOffsets[j][k])\n }\n }\n }\n }\n\n vao.unbind()\n }\n}\n\nproto.pick = function (selection) {\n if (!selection) {\n return null\n }\n\n if (selection.id !== this.pickId) {\n return null\n }\n\n var shape = this._field[2].shape\n\n var result = this._pickResult\n\n // Compute uv coordinate\n var x = shape[0] * (selection.value[0] + (selection.value[2] >> 4) / 16.0) / 255.0\n var ix = Math.floor(x)\n var fx = x - ix\n\n var y = shape[1] * (selection.value[1] + (selection.value[2] & 15) / 16.0) / 255.0\n var iy = Math.floor(y)\n var fy = y - iy\n\n ix += 1\n iy += 1\n\n // Compute xyz coordinate\n var pos = result.position\n pos[0] = pos[1] = pos[2] = 0\n for (var dx = 0; dx < 2; ++dx) {\n var s = dx ? fx : 1.0 - fx\n for (var dy = 0; dy < 2; ++dy) {\n var t = dy ? fy : 1.0 - fy\n\n var r = ix + dx\n var c = iy + dy\n var w = s * t\n\n for (var i = 0; i < 3; ++i) {\n pos[i] += this._field[i].get(r, c) * w\n }\n }\n }\n\n // Find closest level\n var levelIndex = this._pickResult.level\n for (var j = 0; j < 3; ++j) {\n levelIndex[j] = bsearch.le(this.contourLevels[j], pos[j])\n if (levelIndex[j] < 0) {\n if (this.contourLevels[j].length > 0) {\n levelIndex[j] = 0\n }\n } else if (levelIndex[j] < this.contourLevels[j].length - 1) {\n var a = this.contourLevels[j][levelIndex[j]]\n var b = this.contourLevels[j][levelIndex[j] + 1]\n if (Math.abs(a - pos[j]) > Math.abs(b - pos[j])) {\n levelIndex[j] += 1\n }\n }\n }\n\n result.index[0] = fx < 0.5 ? ix : (ix + 1)\n result.index[1] = fy < 0.5 ? iy : (iy + 1)\n\n result.uv[0] = x / shape[0]\n result.uv[1] = y / shape[1]\n\n for (i = 0; i < 3; ++i) {\n result.dataCoordinate[i] = this._field[i].get(result.index[0], result.index[1])\n }\n\n return result\n}\n\nproto.padField = function(dstField, srcField) {\n var srcShape = srcField.shape.slice()\n var dstShape = dstField.shape.slice()\n\n // Center\n ops.assign(dstField.lo(1, 1).hi(srcShape[0], srcShape[1]), srcField)\n\n // Edges\n ops.assign(dstField.lo(1).hi(srcShape[0], 1),\n srcField.hi(srcShape[0], 1))\n ops.assign(dstField.lo(1, dstShape[1] - 1).hi(srcShape[0], 1),\n srcField.lo(0, srcShape[1] - 1).hi(srcShape[0], 1))\n ops.assign(dstField.lo(0, 1).hi(1, srcShape[1]),\n srcField.hi(1))\n ops.assign(dstField.lo(dstShape[0] - 1, 1).hi(1, srcShape[1]),\n srcField.lo(srcShape[0] - 1))\n // Corners\n dstField.set(0, 0, srcField.get(0, 0))\n dstField.set(0, dstShape[1] - 1, srcField.get(0, srcShape[1] - 1))\n dstField.set(dstShape[0] - 1, 0, srcField.get(srcShape[0] - 1, 0))\n dstField.set(dstShape[0] - 1, dstShape[1] - 1, srcField.get(srcShape[0] - 1, srcShape[1] - 1))\n}\n\nfunction handleArray (param, ctor) {\n if (Array.isArray(param)) {\n return [ ctor(param[0]), ctor(param[1]), ctor(param[2]) ]\n }\n return [ ctor(param), ctor(param), ctor(param) ]\n}\n\nfunction toColor (x) {\n if (Array.isArray(x)) {\n if (x.length === 3) {\n return [x[0], x[1], x[2], 1]\n }\n return [x[0], x[1], x[2], x[3]]\n }\n return [0, 0, 0, 1]\n}\n\nfunction handleColor (param) {\n if (Array.isArray(param)) {\n if (Array.isArray(param)) {\n return [\n toColor(param[0]),\n toColor(param[1]),\n toColor(param[2]) ]\n } else {\n var c = toColor(param)\n return [\n c.slice(),\n c.slice(),\n c.slice() ]\n }\n }\n}\n\nproto.update = function (params) {\n params = params || {}\n\n this.objectOffset = params.objectOffset || this.objectOffset\n\n this.dirty = true\n\n if ('contourWidth' in params) {\n this.contourWidth = handleArray(params.contourWidth, Number)\n }\n if ('showContour' in params) {\n this.showContour = handleArray(params.showContour, Boolean)\n }\n if ('showSurface' in params) {\n this.showSurface = !!params.showSurface\n }\n if ('contourTint' in params) {\n this.contourTint = handleArray(params.contourTint, Boolean)\n }\n if ('contourColor' in params) {\n this.contourColor = handleColor(params.contourColor)\n }\n if ('contourProject' in params) {\n this.contourProject = handleArray(params.contourProject, function (x) {\n return handleArray(x, Boolean)\n })\n }\n if ('surfaceProject' in params) {\n this.surfaceProject = params.surfaceProject\n }\n if ('dynamicColor' in params) {\n this.dynamicColor = handleColor(params.dynamicColor)\n }\n if ('dynamicTint' in params) {\n this.dynamicTint = handleArray(params.dynamicTint, Number)\n }\n if ('dynamicWidth' in params) {\n this.dynamicWidth = handleArray(params.dynamicWidth, Number)\n }\n if ('opacity' in params) {\n this.opacity = params.opacity\n }\n if('opacityscale' in params) {\n this.opacityscale = params.opacityscale\n }\n if ('colorBounds' in params) {\n this.colorBounds = params.colorBounds\n }\n if ('vertexColor' in params) {\n this.vertexColor = params.vertexColor ? 1 : 0;\n }\n if ('colormap' in params) {\n this._colorMap.setPixels(this.genColormap(params.colormap, this.opacityscale))\n }\n\n var field = params.field || (params.coords && params.coords[2]) || null\n var levelsChanged = false\n\n if (!field) {\n if (this._field[2].shape[0] || this._field[2].shape[2]) {\n field = this._field[2].lo(1, 1).hi(this._field[2].shape[0] - 2, this._field[2].shape[1] - 2)\n } else {\n field = this._field[2].hi(0, 0)\n }\n }\n\n // Update field\n if ('field' in params || 'coords' in params) {\n var fsize = (field.shape[0] + 2) * (field.shape[1] + 2)\n\n // Resize if necessary\n if (fsize > this._field[2].data.length) {\n pool.freeFloat(this._field[2].data)\n this._field[2].data = pool.mallocFloat(bits.nextPow2(fsize))\n }\n\n // Pad field\n this._field[2] = ndarray(this._field[2].data, [field.shape[0] + 2, field.shape[1] + 2])\n this.padField(this._field[2], field)\n\n // Save shape of field\n this.shape = field.shape.slice()\n var shape = this.shape\n\n // Resize coordinate fields if necessary\n for (var i = 0; i < 2; ++i) {\n if (this._field[2].size > this._field[i].data.length) {\n pool.freeFloat(this._field[i].data)\n this._field[i].data = pool.mallocFloat(this._field[2].size)\n }\n this._field[i] = ndarray(this._field[i].data, [shape[0] + 2, shape[1] + 2])\n }\n\n // Generate x/y coordinates\n if (params.coords) {\n var coords = params.coords\n if (!Array.isArray(coords) || coords.length !== 3) {\n throw new Error('gl-surface: invalid coordinates for x/y')\n }\n for (i = 0; i < 2; ++i) {\n var coord = coords[i]\n for (j = 0; j < 2; ++j) {\n if (coord.shape[j] !== shape[j]) {\n throw new Error('gl-surface: coords have incorrect shape')\n }\n }\n this.padField(this._field[i], coord)\n }\n } else if (params.ticks) {\n var ticks = params.ticks\n if (!Array.isArray(ticks) || ticks.length !== 2) {\n throw new Error('gl-surface: invalid ticks')\n }\n for (i = 0; i < 2; ++i) {\n var tick = ticks[i]\n if (Array.isArray(tick) || tick.length) {\n tick = ndarray(tick)\n }\n if (tick.shape[0] !== shape[i]) {\n throw new Error('gl-surface: invalid tick length')\n }\n // Make a copy view of the tick array\n var tick2 = ndarray(tick.data, shape)\n tick2.stride[i] = tick.stride[0]\n tick2.stride[i ^ 1] = 0\n\n // Fill in field array\n this.padField(this._field[i], tick2)\n }\n } else {\n for (i = 0; i < 2; ++i) {\n var offset = [0, 0]\n offset[i] = 1\n this._field[i] = ndarray(this._field[i].data, [shape[0] + 2, shape[1] + 2], offset, 0)\n }\n this._field[0].set(0, 0, 0)\n for (var j = 0; j < shape[0]; ++j) {\n this._field[0].set(j + 1, 0, j)\n }\n this._field[0].set(shape[0] + 1, 0, shape[0] - 1)\n this._field[1].set(0, 0, 0)\n for (j = 0; j < shape[1]; ++j) {\n this._field[1].set(0, j + 1, j)\n }\n this._field[1].set(0, shape[1] + 1, shape[1] - 1)\n }\n\n // Save shape\n var fields = this._field\n\n // Compute surface normals\n var dfields = ndarray(pool.mallocFloat(fields[2].size * 3 * 2), [3, shape[0] + 2, shape[1] + 2, 2])\n for (i = 0; i < 3; ++i) {\n gradient(dfields.pick(i), fields[i], 'mirror')\n }\n var normals = ndarray(pool.mallocFloat(fields[2].size * 3), [shape[0] + 2, shape[1] + 2, 3])\n for (i = 0; i < shape[0] + 2; ++i) {\n for (j = 0; j < shape[1] + 2; ++j) {\n var dxdu = dfields.get(0, i, j, 0)\n var dxdv = dfields.get(0, i, j, 1)\n var dydu = dfields.get(1, i, j, 0)\n var dydv = dfields.get(1, i, j, 1)\n var dzdu = dfields.get(2, i, j, 0)\n var dzdv = dfields.get(2, i, j, 1)\n\n var nx = dydu * dzdv - dydv * dzdu\n var ny = dzdu * dxdv - dzdv * dxdu\n var nz = dxdu * dydv - dxdv * dydu\n\n var nl = Math.sqrt(nx * nx + ny * ny + nz * nz)\n if (nl < 1e-8) {\n nl = Math.max(Math.abs(nx), Math.abs(ny), Math.abs(nz))\n if (nl < 1e-8) {\n nz = 1.0\n ny = nx = 0.0\n nl = 1.0\n } else {\n nl = 1.0 / nl\n }\n } else {\n nl = 1.0 / Math.sqrt(nl)\n }\n\n normals.set(i, j, 0, nx * nl)\n normals.set(i, j, 1, ny * nl)\n normals.set(i, j, 2, nz * nl)\n }\n }\n pool.free(dfields.data)\n\n // Initialize surface\n var lo = [ Infinity, Infinity, Infinity ]\n var hi = [ -Infinity, -Infinity, -Infinity ]\n var lo_intensity = Infinity\n var hi_intensity = -Infinity\n var count = (shape[0] - 1) * (shape[1] - 1) * 6\n var tverts = pool.mallocFloat(bits.nextPow2(10 * count))\n var tptr = 0\n var vertexCount = 0\n for (i = 0; i < shape[0] - 1; ++i) {\n j_loop:\n for (j = 0; j < shape[1] - 1; ++j) {\n // Test for NaNs\n for (var dx = 0; dx < 2; ++dx) {\n for (var dy = 0; dy < 2; ++dy) {\n for (var k = 0; k < 3; ++k) {\n var f = this._field[k].get(1 + i + dx, 1 + j + dy)\n if (isNaN(f) || !isFinite(f)) {\n continue j_loop\n }\n }\n }\n }\n for (k = 0; k < 6; ++k) {\n var r = i + QUAD[k][0]\n var c = j + QUAD[k][1]\n\n var tx = this._field[0].get(r + 1, c + 1)\n var ty = this._field[1].get(r + 1, c + 1)\n f = this._field[2].get(r + 1, c + 1)\n\n nx = normals.get(r + 1, c + 1, 0)\n ny = normals.get(r + 1, c + 1, 1)\n nz = normals.get(r + 1, c + 1, 2)\n\n if (params.intensity) {\n vf = params.intensity.get(r, c)\n }\n\n var vf = (params.intensity) ?\n params.intensity.get(r, c) :\n f + this.objectOffset[2];\n\n tverts[tptr++] = r\n tverts[tptr++] = c\n tverts[tptr++] = tx\n tverts[tptr++] = ty\n tverts[tptr++] = f\n tverts[tptr++] = 0\n tverts[tptr++] = vf\n tverts[tptr++] = nx\n tverts[tptr++] = ny\n tverts[tptr++] = nz\n\n lo[0] = Math.min(lo[0], tx + this.objectOffset[0])\n lo[1] = Math.min(lo[1], ty + this.objectOffset[1])\n lo[2] = Math.min(lo[2], f + this.objectOffset[2])\n lo_intensity = Math.min(lo_intensity, vf)\n\n hi[0] = Math.max(hi[0], tx + this.objectOffset[0])\n hi[1] = Math.max(hi[1], ty + this.objectOffset[1])\n hi[2] = Math.max(hi[2], f + this.objectOffset[2])\n hi_intensity = Math.max(hi_intensity, vf)\n\n vertexCount += 1\n }\n }\n }\n\n if (params.intensityBounds) {\n lo_intensity = +params.intensityBounds[0]\n hi_intensity = +params.intensityBounds[1]\n }\n\n // Scale all vertex intensities\n for (i = 6; i < tptr; i += 10) {\n tverts[i] = (tverts[i] - lo_intensity) / (hi_intensity - lo_intensity)\n }\n\n this._vertexCount = vertexCount\n this._coordinateBuffer.update(tverts.subarray(0, tptr))\n pool.freeFloat(tverts)\n pool.free(normals.data)\n\n // Update bounds\n this.bounds = [lo, hi]\n\n // Save intensity\n this.intensity = params.intensity || this._field[2]\n\n if(this.intensityBounds[0] !== lo_intensity || this.intensityBounds[1] !== hi_intensity) {\n levelsChanged = true\n }\n\n // Save intensity bound\n this.intensityBounds = [lo_intensity, hi_intensity]\n }\n\n // Update level crossings\n if ('levels' in params) {\n var levels = params.levels\n if (!Array.isArray(levels[0])) {\n levels = [ [], [], levels ]\n } else {\n levels = levels.slice()\n }\n for (i = 0; i < 3; ++i) {\n levels[i] = levels[i].slice()\n levels[i].sort(function (a, b) {\n return a - b\n })\n }\n for (i = 0; i < 3; ++i) {\n for (j = 0; j < levels[i].length; ++j) {\n levels[i][j] -= this.objectOffset[i]\n }\n }\n change_test:\n for (i = 0; i < 3; ++i) {\n if (levels[i].length !== this.contourLevels[i].length) {\n levelsChanged = true\n break\n }\n for (j = 0; j < levels[i].length; ++j) {\n if (levels[i][j] !== this.contourLevels[i][j]) {\n levelsChanged = true\n break change_test\n }\n }\n }\n this.contourLevels = levels\n }\n\n if (levelsChanged) {\n fields = this._field\n shape = this.shape\n\n // Update contour lines\n var contourVerts = []\n\n for (var dim = 0; dim < 3; ++dim) {\n var contourLevel = this.contourLevels[dim]\n\n var levelOffsets = []\n var levelCounts = []\n\n var parts = [0, 0, 0]\n\n for (i = 0; i < contourLevel.length; ++i) {\n var graph = surfaceNets(this._field[dim], contourLevel[i])\n\n levelOffsets.push((contourVerts.length / 5) | 0)\n vertexCount = 0\n\n edge_loop:\n for (j = 0; j < graph.cells.length; ++j) {\n var e = graph.cells[j]\n for (k = 0; k < 2; ++k) {\n var p = graph.positions[e[k]]\n\n var x = p[0]\n var ix = Math.floor(x) | 0\n var fx = x - ix\n\n var y = p[1]\n var iy = Math.floor(y) | 0\n var fy = y - iy\n\n var hole = false\n axis_loop:\n for (var axis = 0; axis < 3; ++axis) {\n parts[axis] = 0.0\n var iu = (dim + axis + 1) % 3\n for (dx = 0; dx < 2; ++dx) {\n var s = dx ? fx : 1.0 - fx\n r = Math.min(Math.max(ix + dx, 0), shape[0]) | 0\n for (dy = 0; dy < 2; ++dy) {\n var t = dy ? fy : 1.0 - fy\n c = Math.min(Math.max(iy + dy, 0), shape[1]) | 0\n\n if (axis < 2) {\n f = this._field[iu].get(r, c)\n } else {\n f = (this.intensity.get(r, c) - this.intensityBounds[0]) / (this.intensityBounds[1] - this.intensityBounds[0])\n }\n if (!isFinite(f) || isNaN(f)) {\n hole = true\n break axis_loop\n }\n\n var w = s * t\n parts[axis] += w * f\n }\n }\n }\n\n if (!hole) {\n contourVerts.push(\n parts[0],\n parts[1],\n p[0],\n p[1],\n parts[2]\n )\n vertexCount += 1\n } else {\n if (k > 0) {\n // If we already added first edge, pop off verts\n for (var l = 0; l < 5; ++l) {\n contourVerts.pop()\n }\n vertexCount -= 1\n }\n continue edge_loop\n }\n }\n }\n levelCounts.push(vertexCount)\n }\n\n // Store results\n this._contourOffsets[dim] = levelOffsets\n this._contourCounts[dim] = levelCounts\n\n }\n\n var floatBuffer = pool.mallocFloat(contourVerts.length)\n for (i = 0; i < contourVerts.length; ++i) {\n floatBuffer[i] = contourVerts[i]\n }\n this._contourBuffer.update(floatBuffer)\n pool.freeFloat(floatBuffer)\n }\n}\n\nproto.dispose = function () {\n this._shader.dispose()\n this._vao.dispose()\n this._coordinateBuffer.dispose()\n this._colorMap.dispose()\n this._contourBuffer.dispose()\n this._contourVAO.dispose()\n this._contourShader.dispose()\n this._contourPickShader.dispose()\n this._dynamicBuffer.dispose()\n this._dynamicVAO.dispose()\n for (var i = 0; i < 3; ++i) {\n pool.freeFloat(this._field[i].data)\n }\n}\n\nproto.highlight = function (selection) {\n var i\n\n if (!selection) {\n this._dynamicCounts = [0, 0, 0]\n this.dyanamicLevel = [NaN, NaN, NaN]\n this.highlightLevel = [-1, -1, -1]\n return\n }\n\n for (i = 0; i < 3; ++i) {\n if (this.enableHighlight[i]) {\n this.highlightLevel[i] = selection.level[i]\n } else {\n this.highlightLevel[i] = -1\n }\n }\n\n var levels\n if (this.snapToData) {\n levels = selection.dataCoordinate\n } else {\n levels = selection.position\n }\n for (i = 0; i < 3; ++i) {\n levels[i] -= this.objectOffset[i]\n }\n if ((!this.enableDynamic[0] || levels[0] === this.dynamicLevel[0]) &&\n (!this.enableDynamic[1] || levels[1] === this.dynamicLevel[1]) &&\n (!this.enableDynamic[2] || levels[2] === this.dynamicLevel[2])) {\n return\n }\n\n var vertexCount = 0\n var shape = this.shape\n var scratchBuffer = pool.mallocFloat(12 * shape[0] * shape[1])\n\n for (var d = 0; d < 3; ++d) {\n if (!this.enableDynamic[d]) {\n this.dynamicLevel[d] = NaN\n this._dynamicCounts[d] = 0\n continue\n }\n\n this.dynamicLevel[d] = levels[d]\n\n var u = (d + 1) % 3\n var v = (d + 2) % 3\n\n var f = this._field[d]\n var g = this._field[u]\n var h = this._field[v]\n\n var graph = surfaceNets(f, levels[d])\n var edges = graph.cells\n var positions = graph.positions\n\n this._dynamicOffsets[d] = vertexCount\n\n for (i = 0; i < edges.length; ++i) {\n var e = edges[i]\n for (var j = 0; j < 2; ++j) {\n var p = positions[e[j]]\n\n var x = +p[0]\n var ix = x | 0\n var jx = Math.min(ix + 1, shape[0]) | 0\n var fx = x - ix\n var hx = 1.0 - fx\n\n var y = +p[1]\n var iy = y | 0\n var jy = Math.min(iy + 1, shape[1]) | 0\n var fy = y - iy\n var hy = 1.0 - fy\n\n var w00 = hx * hy\n var w01 = hx * fy\n var w10 = fx * hy\n var w11 = fx * fy\n\n var cu = w00 * g.get(ix, iy) +\n w01 * g.get(ix, jy) +\n w10 * g.get(jx, iy) +\n w11 * g.get(jx, jy)\n\n var cv = w00 * h.get(ix, iy) +\n w01 * h.get(ix, jy) +\n w10 * h.get(jx, iy) +\n w11 * h.get(jx, jy)\n\n if (isNaN(cu) || isNaN(cv)) {\n if (j) {\n vertexCount -= 1\n }\n break\n }\n\n scratchBuffer[2 * vertexCount + 0] = cu\n scratchBuffer[2 * vertexCount + 1] = cv\n\n vertexCount += 1\n }\n }\n\n this._dynamicCounts[d] = vertexCount - this._dynamicOffsets[d]\n }\n\n this._dynamicBuffer.update(scratchBuffer.subarray(0, 2 * vertexCount))\n pool.freeFloat(scratchBuffer)\n}\n\nfunction createSurfacePlot (params) {\n var gl = params.gl\n\n var shader = createShader(gl)\n var pickShader = createPickShader(gl)\n var contourShader = createContourShader(gl)\n var contourPickShader = createPickContourShader(gl)\n\n var coordinateBuffer = createBuffer(gl)\n var vao = createVAO(gl, [\n { buffer: coordinateBuffer,\n size: 4,\n stride: SURFACE_VERTEX_SIZE,\n offset: 0\n },\n { buffer: coordinateBuffer,\n size: 3,\n stride: SURFACE_VERTEX_SIZE,\n offset: 16\n },\n {\n buffer: coordinateBuffer,\n size: 3,\n stride: SURFACE_VERTEX_SIZE,\n offset: 28\n }\n ])\n\n var contourBuffer = createBuffer(gl)\n var contourVAO = createVAO(gl, [\n {\n buffer: contourBuffer,\n size: 4,\n stride: 20,\n offset: 0\n },\n {\n buffer: contourBuffer,\n size: 1,\n stride: 20,\n offset: 16\n }\n ])\n\n var dynamicBuffer = createBuffer(gl)\n var dynamicVAO = createVAO(gl, [\n {\n buffer: dynamicBuffer,\n size: 2,\n type: gl.FLOAT\n }])\n\n var cmap = createTexture(gl, 1, N_COLORS, gl.RGBA, gl.UNSIGNED_BYTE)\n cmap.minFilter = gl.LINEAR\n cmap.magFilter = gl.LINEAR\n\n var surface = new SurfacePlot(\n gl,\n [0, 0], // shape\n [[0, 0, 0], [0, 0, 0]], // bounds\n shader,\n pickShader,\n coordinateBuffer,\n vao,\n cmap,\n contourShader,\n contourPickShader,\n contourBuffer,\n contourVAO,\n dynamicBuffer,\n dynamicVAO,\n [0, 0, 0] // objectOffset\n )\n\n var nparams = {\n levels: [[], [], []]\n }\n for (var id in params) {\n nparams[id] = params[id]\n }\n nparams.colormap = nparams.colormap || 'jet'\n\n surface.update(nparams)\n\n return surface\n}\n\n},{\"./lib/shaders\":144,\"binary-search-bounds\":31,\"bit-twiddle\":32,\"colormap\":53,\"gl-buffer\":78,\"gl-mat4/invert\":98,\"gl-mat4/multiply\":100,\"gl-texture2d\":146,\"gl-vao\":150,\"ndarray\":259,\"ndarray-gradient\":252,\"ndarray-ops\":254,\"ndarray-pack\":255,\"surface-nets\":302,\"typedarray-pool\":308}],146:[function(_glvis_,module,exports){\n'use strict'\n\nvar ndarray = _glvis_('ndarray')\nvar ops = _glvis_('ndarray-ops')\nvar pool = _glvis_('typedarray-pool')\n\nmodule.exports = createTexture2D\n\nvar linearTypes = null\nvar filterTypes = null\nvar wrapTypes = null\n\nfunction lazyInitLinearTypes(gl) {\n linearTypes = [\n gl.LINEAR,\n gl.NEAREST_MIPMAP_LINEAR,\n gl.LINEAR_MIPMAP_NEAREST,\n gl.LINEAR_MIPMAP_NEAREST\n ]\n filterTypes = [\n gl.NEAREST,\n gl.LINEAR,\n gl.NEAREST_MIPMAP_NEAREST,\n gl.NEAREST_MIPMAP_LINEAR,\n gl.LINEAR_MIPMAP_NEAREST,\n gl.LINEAR_MIPMAP_LINEAR\n ]\n wrapTypes = [\n gl.REPEAT,\n gl.CLAMP_TO_EDGE,\n gl.MIRRORED_REPEAT\n ]\n}\n\nfunction acceptTextureDOM (obj) {\n return (\n ('undefined' != typeof HTMLCanvasElement && obj instanceof HTMLCanvasElement) ||\n ('undefined' != typeof HTMLImageElement && obj instanceof HTMLImageElement) ||\n ('undefined' != typeof HTMLVideoElement && obj instanceof HTMLVideoElement) ||\n ('undefined' != typeof ImageData && obj instanceof ImageData))\n}\n\nvar convertFloatToUint8 = function(out, inp) {\n ops.muls(out, inp, 255.0)\n}\n\nfunction reshapeTexture(tex, w, h) {\n var gl = tex.gl\n var maxSize = gl.getParameter(gl.MAX_TEXTURE_SIZE)\n if(w < 0 || w > maxSize || h < 0 || h > maxSize) {\n throw new Error('gl-texture2d: Invalid texture size')\n }\n tex._shape = [w, h]\n tex.bind()\n gl.texImage2D(gl.TEXTURE_2D, 0, tex.format, w, h, 0, tex.format, tex.type, null)\n tex._mipLevels = [0]\n return tex\n}\n\nfunction Texture2D(gl, handle, width, height, format, type) {\n this.gl = gl\n this.handle = handle\n this.format = format\n this.type = type\n this._shape = [width, height]\n this._mipLevels = [0]\n this._magFilter = gl.NEAREST\n this._minFilter = gl.NEAREST\n this._wrapS = gl.CLAMP_TO_EDGE\n this._wrapT = gl.CLAMP_TO_EDGE\n this._anisoSamples = 1\n\n var parent = this\n var wrapVector = [this._wrapS, this._wrapT]\n Object.defineProperties(wrapVector, [\n {\n get: function() {\n return parent._wrapS\n },\n set: function(v) {\n return parent.wrapS = v\n }\n },\n {\n get: function() {\n return parent._wrapT\n },\n set: function(v) {\n return parent.wrapT = v\n }\n }\n ])\n this._wrapVector = wrapVector\n\n var shapeVector = [this._shape[0], this._shape[1]]\n Object.defineProperties(shapeVector, [\n {\n get: function() {\n return parent._shape[0]\n },\n set: function(v) {\n return parent.width = v\n }\n },\n {\n get: function() {\n return parent._shape[1]\n },\n set: function(v) {\n return parent.height = v\n }\n }\n ])\n this._shapeVector = shapeVector\n}\n\nvar proto = Texture2D.prototype\n\nObject.defineProperties(proto, {\n minFilter: {\n get: function() {\n return this._minFilter\n },\n set: function(v) {\n this.bind()\n var gl = this.gl\n if(this.type === gl.FLOAT && linearTypes.indexOf(v) >= 0) {\n if(!gl.getExtension('OES_texture_float_linear')) {\n v = gl.NEAREST\n }\n }\n if(filterTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown filter mode ' + v)\n }\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, v)\n return this._minFilter = v\n }\n },\n magFilter: {\n get: function() {\n return this._magFilter\n },\n set: function(v) {\n this.bind()\n var gl = this.gl\n if(this.type === gl.FLOAT && linearTypes.indexOf(v) >= 0) {\n if(!gl.getExtension('OES_texture_float_linear')) {\n v = gl.NEAREST\n }\n }\n if(filterTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown filter mode ' + v)\n }\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, v)\n return this._magFilter = v\n }\n },\n mipSamples: {\n get: function() {\n return this._anisoSamples\n },\n set: function(i) {\n var psamples = this._anisoSamples\n this._anisoSamples = Math.max(i, 1)|0\n if(psamples !== this._anisoSamples) {\n var ext = this.gl.getExtension('EXT_texture_filter_anisotropic')\n if(ext) {\n this.gl.texParameterf(this.gl.TEXTURE_2D, ext.TEXTURE_MAX_ANISOTROPY_EXT, this._anisoSamples)\n }\n }\n return this._anisoSamples\n }\n },\n wrapS: {\n get: function() {\n return this._wrapS\n },\n set: function(v) {\n this.bind()\n if(wrapTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown wrap mode ' + v)\n }\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_S, v)\n return this._wrapS = v\n }\n },\n wrapT: {\n get: function() {\n return this._wrapT\n },\n set: function(v) {\n this.bind()\n if(wrapTypes.indexOf(v) < 0) {\n throw new Error('gl-texture2d: Unknown wrap mode ' + v)\n }\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_T, v)\n return this._wrapT = v\n }\n },\n wrap: {\n get: function() {\n return this._wrapVector\n },\n set: function(v) {\n if(!Array.isArray(v)) {\n v = [v,v]\n }\n if(v.length !== 2) {\n throw new Error('gl-texture2d: Must specify wrap mode for rows and columns')\n }\n for(var i=0; i<2; ++i) {\n if(wrapTypes.indexOf(v[i]) < 0) {\n throw new Error('gl-texture2d: Unknown wrap mode ' + v)\n }\n }\n this._wrapS = v[0]\n this._wrapT = v[1]\n\n var gl = this.gl\n this.bind()\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this._wrapS)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this._wrapT)\n\n return v\n }\n },\n shape: {\n get: function() {\n return this._shapeVector\n },\n set: function(x) {\n if(!Array.isArray(x)) {\n x = [x|0,x|0]\n } else {\n if(x.length !== 2) {\n throw new Error('gl-texture2d: Invalid texture shape')\n }\n }\n reshapeTexture(this, x[0]|0, x[1]|0)\n return [x[0]|0, x[1]|0]\n }\n },\n width: {\n get: function() {\n return this._shape[0]\n },\n set: function(w) {\n w = w|0\n reshapeTexture(this, w, this._shape[1])\n return w\n }\n },\n height: {\n get: function() {\n return this._shape[1]\n },\n set: function(h) {\n h = h|0\n reshapeTexture(this, this._shape[0], h)\n return h\n }\n }\n})\n\nproto.bind = function(unit) {\n var gl = this.gl\n if(unit !== undefined) {\n gl.activeTexture(gl.TEXTURE0 + (unit|0))\n }\n gl.bindTexture(gl.TEXTURE_2D, this.handle)\n if(unit !== undefined) {\n return (unit|0)\n }\n return gl.getParameter(gl.ACTIVE_TEXTURE) - gl.TEXTURE0\n}\n\nproto.dispose = function() {\n this.gl.deleteTexture(this.handle)\n}\n\nproto.generateMipmap = function() {\n this.bind()\n this.gl.generateMipmap(this.gl.TEXTURE_2D)\n\n //Update mip levels\n var l = Math.min(this._shape[0], this._shape[1])\n for(var i=0; l>0; ++i, l>>>=1) {\n if(this._mipLevels.indexOf(i) < 0) {\n this._mipLevels.push(i)\n }\n }\n}\n\nproto.setPixels = function(data, x_off, y_off, mip_level) {\n var gl = this.gl\n this.bind()\n if(Array.isArray(x_off)) {\n mip_level = y_off\n y_off = x_off[1]|0\n x_off = x_off[0]|0\n } else {\n x_off = x_off || 0\n y_off = y_off || 0\n }\n mip_level = mip_level || 0\n var directData = acceptTextureDOM(data) ? data : data.raw\n if(directData) {\n var needsMip = this._mipLevels.indexOf(mip_level) < 0\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, 0, this.format, this.format, this.type, directData)\n this._mipLevels.push(mip_level)\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, this.format, this.type, directData)\n }\n } else if(data.shape && data.stride && data.data) {\n if(data.shape.length < 2 ||\n x_off + data.shape[1] > this._shape[1]>>>mip_level ||\n y_off + data.shape[0] > this._shape[0]>>>mip_level ||\n x_off < 0 ||\n y_off < 0) {\n throw new Error('gl-texture2d: Texture dimensions are out of bounds')\n }\n texSubImageArray(gl, x_off, y_off, mip_level, this.format, this.type, this._mipLevels, data)\n } else {\n throw new Error('gl-texture2d: Unsupported data type')\n }\n}\n\n\nfunction isPacked(shape, stride) {\n if(shape.length === 3) {\n return (stride[2] === 1) &&\n (stride[1] === shape[0]*shape[2]) &&\n (stride[0] === shape[2])\n }\n return (stride[0] === 1) &&\n (stride[1] === shape[0])\n}\n\nfunction texSubImageArray(gl, x_off, y_off, mip_level, cformat, ctype, mipLevels, array) {\n var dtype = array.dtype\n var shape = array.shape.slice()\n if(shape.length < 2 || shape.length > 3) {\n throw new Error('gl-texture2d: Invalid ndarray, must be 2d or 3d')\n }\n var type = 0, format = 0\n var packed = isPacked(shape, array.stride.slice())\n if(dtype === 'float32') {\n type = gl.FLOAT\n } else if(dtype === 'float64') {\n type = gl.FLOAT\n packed = false\n dtype = 'float32'\n } else if(dtype === 'uint8') {\n type = gl.UNSIGNED_BYTE\n } else {\n type = gl.UNSIGNED_BYTE\n packed = false\n dtype = 'uint8'\n }\n var channels = 1\n if(shape.length === 2) {\n format = gl.LUMINANCE\n shape = [shape[0], shape[1], 1]\n array = ndarray(array.data, shape, [array.stride[0], array.stride[1], 1], array.offset)\n } else if(shape.length === 3) {\n if(shape[2] === 1) {\n format = gl.ALPHA\n } else if(shape[2] === 2) {\n format = gl.LUMINANCE_ALPHA\n } else if(shape[2] === 3) {\n format = gl.RGB\n } else if(shape[2] === 4) {\n format = gl.RGBA\n } else {\n throw new Error('gl-texture2d: Invalid shape for pixel coords')\n }\n channels = shape[2]\n } else {\n throw new Error('gl-texture2d: Invalid shape for texture')\n }\n //For 1-channel textures allow conversion between formats\n if((format === gl.LUMINANCE || format === gl.ALPHA) &&\n (cformat === gl.LUMINANCE || cformat === gl.ALPHA)) {\n format = cformat\n }\n if(format !== cformat) {\n throw new Error('gl-texture2d: Incompatible texture format for setPixels')\n }\n var size = array.size\n var needsMip = mipLevels.indexOf(mip_level) < 0\n if(needsMip) {\n mipLevels.push(mip_level)\n }\n if(type === ctype && packed) {\n //Array data types are compatible, can directly copy into texture\n if(array.offset === 0 && array.data.length === size) {\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, mip_level, cformat, shape[0], shape[1], 0, cformat, ctype, array.data)\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, shape[0], shape[1], cformat, ctype, array.data)\n }\n } else {\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, mip_level, cformat, shape[0], shape[1], 0, cformat, ctype, array.data.subarray(array.offset, array.offset+size))\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, shape[0], shape[1], cformat, ctype, array.data.subarray(array.offset, array.offset+size))\n }\n }\n } else {\n //Need to do type conversion to pack data into buffer\n var pack_buffer\n if(ctype === gl.FLOAT) {\n pack_buffer = pool.mallocFloat32(size)\n } else {\n pack_buffer = pool.mallocUint8(size)\n }\n var pack_view = ndarray(pack_buffer, shape, [shape[2], shape[2]*shape[0], 1])\n if(type === gl.FLOAT && ctype === gl.UNSIGNED_BYTE) {\n convertFloatToUint8(pack_view, array)\n } else {\n ops.assign(pack_view, array)\n }\n if(needsMip) {\n gl.texImage2D(gl.TEXTURE_2D, mip_level, cformat, shape[0], shape[1], 0, cformat, ctype, pack_buffer.subarray(0, size))\n } else {\n gl.texSubImage2D(gl.TEXTURE_2D, mip_level, x_off, y_off, shape[0], shape[1], cformat, ctype, pack_buffer.subarray(0, size))\n }\n if(ctype === gl.FLOAT) {\n pool.freeFloat32(pack_buffer)\n } else {\n pool.freeUint8(pack_buffer)\n }\n }\n}\n\nfunction initTexture(gl) {\n var tex = gl.createTexture()\n gl.bindTexture(gl.TEXTURE_2D, tex)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)\n return tex\n}\n\nfunction createTextureShape(gl, width, height, format, type) {\n var maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE)\n if(width < 0 || width > maxTextureSize || height < 0 || height > maxTextureSize) {\n throw new Error('gl-texture2d: Invalid texture shape')\n }\n if(type === gl.FLOAT && !gl.getExtension('OES_texture_float')) {\n throw new Error('gl-texture2d: Floating point textures not supported on this platform')\n }\n var tex = initTexture(gl)\n gl.texImage2D(gl.TEXTURE_2D, 0, format, width, height, 0, format, type, null)\n return new Texture2D(gl, tex, width, height, format, type)\n}\n\nfunction createTextureDOM(gl, directData, width, height, format, type) {\n var tex = initTexture(gl)\n gl.texImage2D(gl.TEXTURE_2D, 0, format, format, type, directData)\n return new Texture2D(gl, tex, width, height, format, type)\n}\n\n//Creates a texture from an ndarray\nfunction createTextureArray(gl, array) {\n var dtype = array.dtype\n var shape = array.shape.slice()\n var maxSize = gl.getParameter(gl.MAX_TEXTURE_SIZE)\n if(shape[0] < 0 || shape[0] > maxSize || shape[1] < 0 || shape[1] > maxSize) {\n throw new Error('gl-texture2d: Invalid texture size')\n }\n var packed = isPacked(shape, array.stride.slice())\n var type = 0\n if(dtype === 'float32') {\n type = gl.FLOAT\n } else if(dtype === 'float64') {\n type = gl.FLOAT\n packed = false\n dtype = 'float32'\n } else if(dtype === 'uint8') {\n type = gl.UNSIGNED_BYTE\n } else {\n type = gl.UNSIGNED_BYTE\n packed = false\n dtype = 'uint8'\n }\n var format = 0\n if(shape.length === 2) {\n format = gl.LUMINANCE\n shape = [shape[0], shape[1], 1]\n array = ndarray(array.data, shape, [array.stride[0], array.stride[1], 1], array.offset)\n } else if(shape.length === 3) {\n if(shape[2] === 1) {\n format = gl.ALPHA\n } else if(shape[2] === 2) {\n format = gl.LUMINANCE_ALPHA\n } else if(shape[2] === 3) {\n format = gl.RGB\n } else if(shape[2] === 4) {\n format = gl.RGBA\n } else {\n throw new Error('gl-texture2d: Invalid shape for pixel coords')\n }\n } else {\n throw new Error('gl-texture2d: Invalid shape for texture')\n }\n if(type === gl.FLOAT && !gl.getExtension('OES_texture_float')) {\n type = gl.UNSIGNED_BYTE\n packed = false\n }\n var buffer, buf_store\n var size = array.size\n if(!packed) {\n var stride = [shape[2], shape[2]*shape[0], 1]\n buf_store = pool.malloc(size, dtype)\n var buf_array = ndarray(buf_store, shape, stride, 0)\n if((dtype === 'float32' || dtype === 'float64') && type === gl.UNSIGNED_BYTE) {\n convertFloatToUint8(buf_array, array)\n } else {\n ops.assign(buf_array, array)\n }\n buffer = buf_store.subarray(0, size)\n } else if (array.offset === 0 && array.data.length === size) {\n buffer = array.data\n } else {\n buffer = array.data.subarray(array.offset, array.offset + size)\n }\n var tex = initTexture(gl)\n gl.texImage2D(gl.TEXTURE_2D, 0, format, shape[0], shape[1], 0, format, type, buffer)\n if(!packed) {\n pool.free(buf_store)\n }\n return new Texture2D(gl, tex, shape[0], shape[1], format, type)\n}\n\nfunction createTexture2D(gl) {\n if(arguments.length <= 1) {\n throw new Error('gl-texture2d: Missing arguments for texture2d constructor')\n }\n if(!linearTypes) {\n lazyInitLinearTypes(gl)\n }\n if(typeof arguments[1] === 'number') {\n return createTextureShape(gl, arguments[1], arguments[2], arguments[3]||gl.RGBA, arguments[4]||gl.UNSIGNED_BYTE)\n }\n if(Array.isArray(arguments[1])) {\n return createTextureShape(gl, arguments[1][0]|0, arguments[1][1]|0, arguments[2]||gl.RGBA, arguments[3]||gl.UNSIGNED_BYTE)\n }\n if(typeof arguments[1] === 'object') {\n var obj = arguments[1]\n var directData = acceptTextureDOM(obj) ? obj : obj.raw\n if (directData) {\n return createTextureDOM(gl, directData, obj.width|0, obj.height|0, arguments[2]||gl.RGBA, arguments[3]||gl.UNSIGNED_BYTE)\n } else if(obj.shape && obj.data && obj.stride) {\n return createTextureArray(gl, obj)\n }\n }\n throw new Error('gl-texture2d: Invalid arguments for texture2d constructor')\n}\n\n},{\"ndarray\":259,\"ndarray-ops\":254,\"typedarray-pool\":308}],147:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction doBind(gl, elements, attributes) {\n if(elements) {\n elements.bind()\n } else {\n gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, null)\n }\n var nattribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS)|0\n if(attributes) {\n if(attributes.length > nattribs) {\n throw new Error(\"gl-vao: Too many vertex attributes\")\n }\n for(var i=0; i 1.0){\n return 0\n } else {\n return Math.acos(cosine)\n } \n}\n\n},{\"./dot\":162,\"./fromValues\":168,\"./normalize\":179}],153:[function(_glvis_,module,exports){\nmodule.exports = ceil\n\n/**\n * Math.ceil the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to ceil\n * @returns {vec3} out\n */\nfunction ceil(out, a) {\n out[0] = Math.ceil(a[0])\n out[1] = Math.ceil(a[1])\n out[2] = Math.ceil(a[2])\n return out\n}\n\n},{}],154:[function(_glvis_,module,exports){\nmodule.exports = clone;\n\n/**\n * Creates a new vec3 initialized with values from an existing vector\n *\n * @param {vec3} a vector to clone\n * @returns {vec3} a new 3D vector\n */\nfunction clone(a) {\n var out = new Float32Array(3)\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n return out\n}\n},{}],155:[function(_glvis_,module,exports){\nmodule.exports = copy;\n\n/**\n * Copy the values from one vec3 to another\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the source vector\n * @returns {vec3} out\n */\nfunction copy(out, a) {\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n return out\n}\n},{}],156:[function(_glvis_,module,exports){\nmodule.exports = create;\n\n/**\n * Creates a new, empty vec3\n *\n * @returns {vec3} a new 3D vector\n */\nfunction create() {\n var out = new Float32Array(3)\n out[0] = 0\n out[1] = 0\n out[2] = 0\n return out\n}\n},{}],157:[function(_glvis_,module,exports){\nmodule.exports = cross;\n\n/**\n * Computes the cross product of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction cross(out, a, b) {\n var ax = a[0], ay = a[1], az = a[2],\n bx = b[0], by = b[1], bz = b[2]\n\n out[0] = ay * bz - az * by\n out[1] = az * bx - ax * bz\n out[2] = ax * by - ay * bx\n return out\n}\n},{}],158:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./distance')\n\n},{\"./distance\":159}],159:[function(_glvis_,module,exports){\nmodule.exports = distance;\n\n/**\n * Calculates the euclidian distance between two vec3's\n *\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance(a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2]\n return Math.sqrt(x*x + y*y + z*z)\n}\n},{}],160:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./divide')\n\n},{\"./divide\":161}],161:[function(_glvis_,module,exports){\nmodule.exports = divide;\n\n/**\n * Divides two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction divide(out, a, b) {\n out[0] = a[0] / b[0]\n out[1] = a[1] / b[1]\n out[2] = a[2] / b[2]\n return out\n}\n},{}],162:[function(_glvis_,module,exports){\nmodule.exports = dot;\n\n/**\n * Calculates the dot product of two vec3's\n *\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]\n}\n},{}],163:[function(_glvis_,module,exports){\nmodule.exports = 0.000001\n\n},{}],164:[function(_glvis_,module,exports){\nmodule.exports = equals\n\nvar EPSILON = _glvis_('./epsilon')\n\n/**\n * Returns whether or not the vectors have approximately the same elements in the same position.\n *\n * @param {vec3} a The first vector.\n * @param {vec3} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction equals(a, b) {\n var a0 = a[0]\n var a1 = a[1]\n var a2 = a[2]\n var b0 = b[0]\n var b1 = b[1]\n var b2 = b[2]\n return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) &&\n Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) &&\n Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)))\n}\n\n},{\"./epsilon\":163}],165:[function(_glvis_,module,exports){\nmodule.exports = exactEquals\n\n/**\n * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)\n *\n * @param {vec3} a The first vector.\n * @param {vec3} b The second vector.\n * @returns {Boolean} True if the vectors are equal, false otherwise.\n */\nfunction exactEquals(a, b) {\n return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]\n}\n\n},{}],166:[function(_glvis_,module,exports){\nmodule.exports = floor\n\n/**\n * Math.floor the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to floor\n * @returns {vec3} out\n */\nfunction floor(out, a) {\n out[0] = Math.floor(a[0])\n out[1] = Math.floor(a[1])\n out[2] = Math.floor(a[2])\n return out\n}\n\n},{}],167:[function(_glvis_,module,exports){\nmodule.exports = forEach;\n\nvar vec = _glvis_('./create')()\n\n/**\n * Perform some operation over an array of vec3s.\n *\n * @param {Array} a the array of vectors to iterate over\n * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed\n * @param {Number} offset Number of elements to skip at the beginning of the array\n * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array\n * @param {Function} fn Function to call for each vector in the array\n * @param {Object} [arg] additional argument to pass to fn\n * @returns {Array} a\n * @function\n */\nfunction forEach(a, stride, offset, count, fn, arg) {\n var i, l\n if(!stride) {\n stride = 3\n }\n\n if(!offset) {\n offset = 0\n }\n \n if(count) {\n l = Math.min((count * stride) + offset, a.length)\n } else {\n l = a.length\n }\n\n for(i = offset; i < l; i += stride) {\n vec[0] = a[i] \n vec[1] = a[i+1] \n vec[2] = a[i+2]\n fn(vec, vec, arg)\n a[i] = vec[0] \n a[i+1] = vec[1] \n a[i+2] = vec[2]\n }\n \n return a\n}\n},{\"./create\":156}],168:[function(_glvis_,module,exports){\nmodule.exports = fromValues;\n\n/**\n * Creates a new vec3 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @returns {vec3} a new 3D vector\n */\nfunction fromValues(x, y, z) {\n var out = new Float32Array(3)\n out[0] = x\n out[1] = y\n out[2] = z\n return out\n}\n},{}],169:[function(_glvis_,module,exports){\nmodule.exports = {\n EPSILON: _glvis_('./epsilon')\n , create: _glvis_('./create')\n , clone: _glvis_('./clone')\n , angle: _glvis_('./angle')\n , fromValues: _glvis_('./fromValues')\n , copy: _glvis_('./copy')\n , set: _glvis_('./set')\n , equals: _glvis_('./equals')\n , exactEquals: _glvis_('./exactEquals')\n , add: _glvis_('./add')\n , subtract: _glvis_('./subtract')\n , sub: _glvis_('./sub')\n , multiply: _glvis_('./multiply')\n , mul: _glvis_('./mul')\n , divide: _glvis_('./divide')\n , div: _glvis_('./div')\n , min: _glvis_('./min')\n , max: _glvis_('./max')\n , floor: _glvis_('./floor')\n , ceil: _glvis_('./ceil')\n , round: _glvis_('./round')\n , scale: _glvis_('./scale')\n , scaleAndAdd: _glvis_('./scaleAndAdd')\n , distance: _glvis_('./distance')\n , dist: _glvis_('./dist')\n , squaredDistance: _glvis_('./squaredDistance')\n , sqrDist: _glvis_('./sqrDist')\n , length: _glvis_('./length')\n , len: _glvis_('./len')\n , squaredLength: _glvis_('./squaredLength')\n , sqrLen: _glvis_('./sqrLen')\n , negate: _glvis_('./negate')\n , inverse: _glvis_('./inverse')\n , normalize: _glvis_('./normalize')\n , dot: _glvis_('./dot')\n , cross: _glvis_('./cross')\n , lerp: _glvis_('./lerp')\n , random: _glvis_('./random')\n , transformMat4: _glvis_('./transformMat4')\n , transformMat3: _glvis_('./transformMat3')\n , transformQuat: _glvis_('./transformQuat')\n , rotateX: _glvis_('./rotateX')\n , rotateY: _glvis_('./rotateY')\n , rotateZ: _glvis_('./rotateZ')\n , forEach: _glvis_('./forEach')\n}\n\n},{\"./add\":151,\"./angle\":152,\"./ceil\":153,\"./clone\":154,\"./copy\":155,\"./create\":156,\"./cross\":157,\"./dist\":158,\"./distance\":159,\"./div\":160,\"./divide\":161,\"./dot\":162,\"./epsilon\":163,\"./equals\":164,\"./exactEquals\":165,\"./floor\":166,\"./forEach\":167,\"./fromValues\":168,\"./inverse\":170,\"./len\":171,\"./length\":172,\"./lerp\":173,\"./max\":174,\"./min\":175,\"./mul\":176,\"./multiply\":177,\"./negate\":178,\"./normalize\":179,\"./random\":180,\"./rotateX\":181,\"./rotateY\":182,\"./rotateZ\":183,\"./round\":184,\"./scale\":185,\"./scaleAndAdd\":186,\"./set\":187,\"./sqrDist\":188,\"./sqrLen\":189,\"./squaredDistance\":190,\"./squaredLength\":191,\"./sub\":192,\"./subtract\":193,\"./transformMat3\":194,\"./transformMat4\":195,\"./transformQuat\":196}],170:[function(_glvis_,module,exports){\nmodule.exports = inverse;\n\n/**\n * Returns the inverse of the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to invert\n * @returns {vec3} out\n */\nfunction inverse(out, a) {\n out[0] = 1.0 / a[0]\n out[1] = 1.0 / a[1]\n out[2] = 1.0 / a[2]\n return out\n}\n},{}],171:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./length')\n\n},{\"./length\":172}],172:[function(_glvis_,module,exports){\nmodule.exports = length;\n\n/**\n * Calculates the length of a vec3\n *\n * @param {vec3} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length(a) {\n var x = a[0],\n y = a[1],\n z = a[2]\n return Math.sqrt(x*x + y*y + z*z)\n}\n},{}],173:[function(_glvis_,module,exports){\nmodule.exports = lerp;\n\n/**\n * Performs a linear interpolation between two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @param {Number} t interpolation amount between the two inputs\n * @returns {vec3} out\n */\nfunction lerp(out, a, b, t) {\n var ax = a[0],\n ay = a[1],\n az = a[2]\n out[0] = ax + t * (b[0] - ax)\n out[1] = ay + t * (b[1] - ay)\n out[2] = az + t * (b[2] - az)\n return out\n}\n},{}],174:[function(_glvis_,module,exports){\nmodule.exports = max;\n\n/**\n * Returns the maximum of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction max(out, a, b) {\n out[0] = Math.max(a[0], b[0])\n out[1] = Math.max(a[1], b[1])\n out[2] = Math.max(a[2], b[2])\n return out\n}\n},{}],175:[function(_glvis_,module,exports){\nmodule.exports = min;\n\n/**\n * Returns the minimum of two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction min(out, a, b) {\n out[0] = Math.min(a[0], b[0])\n out[1] = Math.min(a[1], b[1])\n out[2] = Math.min(a[2], b[2])\n return out\n}\n},{}],176:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./multiply')\n\n},{\"./multiply\":177}],177:[function(_glvis_,module,exports){\nmodule.exports = multiply;\n\n/**\n * Multiplies two vec3's\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction multiply(out, a, b) {\n out[0] = a[0] * b[0]\n out[1] = a[1] * b[1]\n out[2] = a[2] * b[2]\n return out\n}\n},{}],178:[function(_glvis_,module,exports){\nmodule.exports = negate;\n\n/**\n * Negates the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to negate\n * @returns {vec3} out\n */\nfunction negate(out, a) {\n out[0] = -a[0]\n out[1] = -a[1]\n out[2] = -a[2]\n return out\n}\n},{}],179:[function(_glvis_,module,exports){\nmodule.exports = normalize;\n\n/**\n * Normalize a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to normalize\n * @returns {vec3} out\n */\nfunction normalize(out, a) {\n var x = a[0],\n y = a[1],\n z = a[2]\n var len = x*x + y*y + z*z\n if (len > 0) {\n //TODO: evaluate use of glm_invsqrt here?\n len = 1 / Math.sqrt(len)\n out[0] = a[0] * len\n out[1] = a[1] * len\n out[2] = a[2] * len\n }\n return out\n}\n},{}],180:[function(_glvis_,module,exports){\nmodule.exports = random;\n\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec3} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec3} out\n */\nfunction random(out, scale) {\n scale = scale || 1.0\n\n var r = Math.random() * 2.0 * Math.PI\n var z = (Math.random() * 2.0) - 1.0\n var zScale = Math.sqrt(1.0-z*z) * scale\n\n out[0] = Math.cos(r) * zScale\n out[1] = Math.sin(r) * zScale\n out[2] = z * scale\n return out\n}\n},{}],181:[function(_glvis_,module,exports){\nmodule.exports = rotateX;\n\n/**\n * Rotate a 3D vector around the x-axis\n * @param {vec3} out The receiving vec3\n * @param {vec3} a The vec3 point to rotate\n * @param {vec3} b The origin of the rotation\n * @param {Number} c The angle of rotation\n * @returns {vec3} out\n */\nfunction rotateX(out, a, b, c){\n var by = b[1]\n var bz = b[2]\n\n // Translate point to the origin\n var py = a[1] - by\n var pz = a[2] - bz\n\n var sc = Math.sin(c)\n var cc = Math.cos(c)\n\n // perform rotation and translate to correct position\n out[0] = a[0]\n out[1] = by + py * cc - pz * sc\n out[2] = bz + py * sc + pz * cc\n\n return out\n}\n\n},{}],182:[function(_glvis_,module,exports){\nmodule.exports = rotateY;\n\n/**\n * Rotate a 3D vector around the y-axis\n * @param {vec3} out The receiving vec3\n * @param {vec3} a The vec3 point to rotate\n * @param {vec3} b The origin of the rotation\n * @param {Number} c The angle of rotation\n * @returns {vec3} out\n */\nfunction rotateY(out, a, b, c){\n var bx = b[0]\n var bz = b[2]\n\n // translate point to the origin\n var px = a[0] - bx\n var pz = a[2] - bz\n \n var sc = Math.sin(c)\n var cc = Math.cos(c)\n \n // perform rotation and translate to correct position\n out[0] = bx + pz * sc + px * cc\n out[1] = a[1]\n out[2] = bz + pz * cc - px * sc\n \n return out\n}\n\n},{}],183:[function(_glvis_,module,exports){\nmodule.exports = rotateZ;\n\n/**\n * Rotate a 3D vector around the z-axis\n * @param {vec3} out The receiving vec3\n * @param {vec3} a The vec3 point to rotate\n * @param {vec3} b The origin of the rotation\n * @param {Number} c The angle of rotation\n * @returns {vec3} out\n */\nfunction rotateZ(out, a, b, c){\n var bx = b[0]\n var by = b[1]\n\n //Translate point to the origin\n var px = a[0] - bx\n var py = a[1] - by\n \n var sc = Math.sin(c)\n var cc = Math.cos(c)\n\n // perform rotation and translate to correct position\n out[0] = bx + px * cc - py * sc\n out[1] = by + px * sc + py * cc\n out[2] = a[2]\n \n return out\n}\n\n},{}],184:[function(_glvis_,module,exports){\nmodule.exports = round\n\n/**\n * Math.round the components of a vec3\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a vector to round\n * @returns {vec3} out\n */\nfunction round(out, a) {\n out[0] = Math.round(a[0])\n out[1] = Math.round(a[1])\n out[2] = Math.round(a[2])\n return out\n}\n\n},{}],185:[function(_glvis_,module,exports){\nmodule.exports = scale;\n\n/**\n * Scales a vec3 by a scalar number\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec3} out\n */\nfunction scale(out, a, b) {\n out[0] = a[0] * b\n out[1] = a[1] * b\n out[2] = a[2] * b\n return out\n}\n},{}],186:[function(_glvis_,module,exports){\nmodule.exports = scaleAndAdd;\n\n/**\n * Adds two vec3's after scaling the second operand by a scalar value\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec3} out\n */\nfunction scaleAndAdd(out, a, b, scale) {\n out[0] = a[0] + (b[0] * scale)\n out[1] = a[1] + (b[1] * scale)\n out[2] = a[2] + (b[2] * scale)\n return out\n}\n},{}],187:[function(_glvis_,module,exports){\nmodule.exports = set;\n\n/**\n * Set the components of a vec3 to the given values\n *\n * @param {vec3} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @returns {vec3} out\n */\nfunction set(out, x, y, z) {\n out[0] = x\n out[1] = y\n out[2] = z\n return out\n}\n},{}],188:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./squaredDistance')\n\n},{\"./squaredDistance\":190}],189:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./squaredLength')\n\n},{\"./squaredLength\":191}],190:[function(_glvis_,module,exports){\nmodule.exports = squaredDistance;\n\n/**\n * Calculates the squared euclidian distance between two vec3's\n *\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance(a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2]\n return x*x + y*y + z*z\n}\n},{}],191:[function(_glvis_,module,exports){\nmodule.exports = squaredLength;\n\n/**\n * Calculates the squared length of a vec3\n *\n * @param {vec3} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength(a) {\n var x = a[0],\n y = a[1],\n z = a[2]\n return x*x + y*y + z*z\n}\n},{}],192:[function(_glvis_,module,exports){\nmodule.exports = _glvis_('./subtract')\n\n},{\"./subtract\":193}],193:[function(_glvis_,module,exports){\nmodule.exports = subtract;\n\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the first operand\n * @param {vec3} b the second operand\n * @returns {vec3} out\n */\nfunction subtract(out, a, b) {\n out[0] = a[0] - b[0]\n out[1] = a[1] - b[1]\n out[2] = a[2] - b[2]\n return out\n}\n},{}],194:[function(_glvis_,module,exports){\nmodule.exports = transformMat3;\n\n/**\n * Transforms the vec3 with a mat3.\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to transform\n * @param {mat4} m the 3x3 matrix to transform with\n * @returns {vec3} out\n */\nfunction transformMat3(out, a, m) {\n var x = a[0], y = a[1], z = a[2]\n out[0] = x * m[0] + y * m[3] + z * m[6]\n out[1] = x * m[1] + y * m[4] + z * m[7]\n out[2] = x * m[2] + y * m[5] + z * m[8]\n return out\n}\n},{}],195:[function(_glvis_,module,exports){\nmodule.exports = transformMat4;\n\n/**\n * Transforms the vec3 with a mat4.\n * 4th vector component is implicitly '1'\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to transform\n * @param {mat4} m matrix to transform with\n * @returns {vec3} out\n */\nfunction transformMat4(out, a, m) {\n var x = a[0], y = a[1], z = a[2],\n w = m[3] * x + m[7] * y + m[11] * z + m[15]\n w = w || 1.0\n out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w\n out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w\n out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w\n return out\n}\n},{}],196:[function(_glvis_,module,exports){\nmodule.exports = transformQuat;\n\n/**\n * Transforms the vec3 with a quat\n *\n * @param {vec3} out the receiving vector\n * @param {vec3} a the vector to transform\n * @param {quat} q quaternion to transform with\n * @returns {vec3} out\n */\nfunction transformQuat(out, a, q) {\n // benchmarks: http://jsperf.com/quaternion-transform-vec3-implementations\n\n var x = a[0], y = a[1], z = a[2],\n qx = q[0], qy = q[1], qz = q[2], qw = q[3],\n\n // calculate quat * vec\n ix = qw * x + qy * z - qz * y,\n iy = qw * y + qz * x - qx * z,\n iz = qw * z + qx * y - qy * x,\n iw = -qx * x - qy * y - qz * z\n\n // calculate result * inverse quat\n out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy\n out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz\n out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx\n return out\n}\n},{}],197:[function(_glvis_,module,exports){\nmodule.exports = add\n\n/**\n * Adds two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction add (out, a, b) {\n out[0] = a[0] + b[0]\n out[1] = a[1] + b[1]\n out[2] = a[2] + b[2]\n out[3] = a[3] + b[3]\n return out\n}\n\n},{}],198:[function(_glvis_,module,exports){\nmodule.exports = clone\n\n/**\n * Creates a new vec4 initialized with values from an existing vector\n *\n * @param {vec4} a vector to clone\n * @returns {vec4} a new 4D vector\n */\nfunction clone (a) {\n var out = new Float32Array(4)\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n out[3] = a[3]\n return out\n}\n\n},{}],199:[function(_glvis_,module,exports){\nmodule.exports = copy\n\n/**\n * Copy the values from one vec4 to another\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the source vector\n * @returns {vec4} out\n */\nfunction copy (out, a) {\n out[0] = a[0]\n out[1] = a[1]\n out[2] = a[2]\n out[3] = a[3]\n return out\n}\n\n},{}],200:[function(_glvis_,module,exports){\nmodule.exports = create\n\n/**\n * Creates a new, empty vec4\n *\n * @returns {vec4} a new 4D vector\n */\nfunction create () {\n var out = new Float32Array(4)\n out[0] = 0\n out[1] = 0\n out[2] = 0\n out[3] = 0\n return out\n}\n\n},{}],201:[function(_glvis_,module,exports){\nmodule.exports = distance\n\n/**\n * Calculates the euclidian distance between two vec4's\n *\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {Number} distance between a and b\n */\nfunction distance (a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2],\n w = b[3] - a[3]\n return Math.sqrt(x * x + y * y + z * z + w * w)\n}\n\n},{}],202:[function(_glvis_,module,exports){\nmodule.exports = divide\n\n/**\n * Divides two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction divide (out, a, b) {\n out[0] = a[0] / b[0]\n out[1] = a[1] / b[1]\n out[2] = a[2] / b[2]\n out[3] = a[3] / b[3]\n return out\n}\n\n},{}],203:[function(_glvis_,module,exports){\nmodule.exports = dot\n\n/**\n * Calculates the dot product of two vec4's\n *\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {Number} dot product of a and b\n */\nfunction dot (a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]\n}\n\n},{}],204:[function(_glvis_,module,exports){\nmodule.exports = fromValues\n\n/**\n * Creates a new vec4 initialized with the given values\n *\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {vec4} a new 4D vector\n */\nfunction fromValues (x, y, z, w) {\n var out = new Float32Array(4)\n out[0] = x\n out[1] = y\n out[2] = z\n out[3] = w\n return out\n}\n\n},{}],205:[function(_glvis_,module,exports){\nmodule.exports = {\n create: _glvis_('./create'),\n clone: _glvis_('./clone'),\n fromValues: _glvis_('./fromValues'),\n copy: _glvis_('./copy'),\n set: _glvis_('./set'),\n add: _glvis_('./add'),\n subtract: _glvis_('./subtract'),\n multiply: _glvis_('./multiply'),\n divide: _glvis_('./divide'),\n min: _glvis_('./min'),\n max: _glvis_('./max'),\n scale: _glvis_('./scale'),\n scaleAndAdd: _glvis_('./scaleAndAdd'),\n distance: _glvis_('./distance'),\n squaredDistance: _glvis_('./squaredDistance'),\n length: _glvis_('./length'),\n squaredLength: _glvis_('./squaredLength'),\n negate: _glvis_('./negate'),\n inverse: _glvis_('./inverse'),\n normalize: _glvis_('./normalize'),\n dot: _glvis_('./dot'),\n lerp: _glvis_('./lerp'),\n random: _glvis_('./random'),\n transformMat4: _glvis_('./transformMat4'),\n transformQuat: _glvis_('./transformQuat')\n}\n\n},{\"./add\":197,\"./clone\":198,\"./copy\":199,\"./create\":200,\"./distance\":201,\"./divide\":202,\"./dot\":203,\"./fromValues\":204,\"./inverse\":206,\"./length\":207,\"./lerp\":208,\"./max\":209,\"./min\":210,\"./multiply\":211,\"./negate\":212,\"./normalize\":213,\"./random\":214,\"./scale\":215,\"./scaleAndAdd\":216,\"./set\":217,\"./squaredDistance\":218,\"./squaredLength\":219,\"./subtract\":220,\"./transformMat4\":221,\"./transformQuat\":222}],206:[function(_glvis_,module,exports){\nmodule.exports = inverse\n\n/**\n * Returns the inverse of the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a vector to invert\n * @returns {vec4} out\n */\nfunction inverse (out, a) {\n out[0] = 1.0 / a[0]\n out[1] = 1.0 / a[1]\n out[2] = 1.0 / a[2]\n out[3] = 1.0 / a[3]\n return out\n}\n\n},{}],207:[function(_glvis_,module,exports){\nmodule.exports = length\n\n/**\n * Calculates the length of a vec4\n *\n * @param {vec4} a vector to calculate length of\n * @returns {Number} length of a\n */\nfunction length (a) {\n var x = a[0],\n y = a[1],\n z = a[2],\n w = a[3]\n return Math.sqrt(x * x + y * y + z * z + w * w)\n}\n\n},{}],208:[function(_glvis_,module,exports){\nmodule.exports = lerp\n\n/**\n * Performs a linear interpolation between two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @param {Number} t interpolation amount between the two inputs\n * @returns {vec4} out\n */\nfunction lerp (out, a, b, t) {\n var ax = a[0],\n ay = a[1],\n az = a[2],\n aw = a[3]\n out[0] = ax + t * (b[0] - ax)\n out[1] = ay + t * (b[1] - ay)\n out[2] = az + t * (b[2] - az)\n out[3] = aw + t * (b[3] - aw)\n return out\n}\n\n},{}],209:[function(_glvis_,module,exports){\nmodule.exports = max\n\n/**\n * Returns the maximum of two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction max (out, a, b) {\n out[0] = Math.max(a[0], b[0])\n out[1] = Math.max(a[1], b[1])\n out[2] = Math.max(a[2], b[2])\n out[3] = Math.max(a[3], b[3])\n return out\n}\n\n},{}],210:[function(_glvis_,module,exports){\nmodule.exports = min\n\n/**\n * Returns the minimum of two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction min (out, a, b) {\n out[0] = Math.min(a[0], b[0])\n out[1] = Math.min(a[1], b[1])\n out[2] = Math.min(a[2], b[2])\n out[3] = Math.min(a[3], b[3])\n return out\n}\n\n},{}],211:[function(_glvis_,module,exports){\nmodule.exports = multiply\n\n/**\n * Multiplies two vec4's\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction multiply (out, a, b) {\n out[0] = a[0] * b[0]\n out[1] = a[1] * b[1]\n out[2] = a[2] * b[2]\n out[3] = a[3] * b[3]\n return out\n}\n\n},{}],212:[function(_glvis_,module,exports){\nmodule.exports = negate\n\n/**\n * Negates the components of a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a vector to negate\n * @returns {vec4} out\n */\nfunction negate (out, a) {\n out[0] = -a[0]\n out[1] = -a[1]\n out[2] = -a[2]\n out[3] = -a[3]\n return out\n}\n\n},{}],213:[function(_glvis_,module,exports){\nmodule.exports = normalize\n\n/**\n * Normalize a vec4\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a vector to normalize\n * @returns {vec4} out\n */\nfunction normalize (out, a) {\n var x = a[0],\n y = a[1],\n z = a[2],\n w = a[3]\n var len = x * x + y * y + z * z + w * w\n if (len > 0) {\n len = 1 / Math.sqrt(len)\n out[0] = x * len\n out[1] = y * len\n out[2] = z * len\n out[3] = w * len\n }\n return out\n}\n\n},{}],214:[function(_glvis_,module,exports){\nvar vecNormalize = _glvis_('./normalize')\nvar vecScale = _glvis_('./scale')\n\nmodule.exports = random\n\n/**\n * Generates a random vector with the given scale\n *\n * @param {vec4} out the receiving vector\n * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned\n * @returns {vec4} out\n */\nfunction random (out, scale) {\n scale = scale || 1.0\n\n // TODO: This is a pretty awful way of doing this. Find something better.\n out[0] = Math.random()\n out[1] = Math.random()\n out[2] = Math.random()\n out[3] = Math.random()\n vecNormalize(out, out)\n vecScale(out, out, scale)\n return out\n}\n\n},{\"./normalize\":213,\"./scale\":215}],215:[function(_glvis_,module,exports){\nmodule.exports = scale\n\n/**\n * Scales a vec4 by a scalar number\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the vector to scale\n * @param {Number} b amount to scale the vector by\n * @returns {vec4} out\n */\nfunction scale (out, a, b) {\n out[0] = a[0] * b\n out[1] = a[1] * b\n out[2] = a[2] * b\n out[3] = a[3] * b\n return out\n}\n\n},{}],216:[function(_glvis_,module,exports){\nmodule.exports = scaleAndAdd\n\n/**\n * Adds two vec4's after scaling the second operand by a scalar value\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @param {Number} scale the amount to scale b by before adding\n * @returns {vec4} out\n */\nfunction scaleAndAdd (out, a, b, scale) {\n out[0] = a[0] + (b[0] * scale)\n out[1] = a[1] + (b[1] * scale)\n out[2] = a[2] + (b[2] * scale)\n out[3] = a[3] + (b[3] * scale)\n return out\n}\n\n},{}],217:[function(_glvis_,module,exports){\nmodule.exports = set\n\n/**\n * Set the components of a vec4 to the given values\n *\n * @param {vec4} out the receiving vector\n * @param {Number} x X component\n * @param {Number} y Y component\n * @param {Number} z Z component\n * @param {Number} w W component\n * @returns {vec4} out\n */\nfunction set (out, x, y, z, w) {\n out[0] = x\n out[1] = y\n out[2] = z\n out[3] = w\n return out\n}\n\n},{}],218:[function(_glvis_,module,exports){\nmodule.exports = squaredDistance\n\n/**\n * Calculates the squared euclidian distance between two vec4's\n *\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {Number} squared distance between a and b\n */\nfunction squaredDistance (a, b) {\n var x = b[0] - a[0],\n y = b[1] - a[1],\n z = b[2] - a[2],\n w = b[3] - a[3]\n return x * x + y * y + z * z + w * w\n}\n\n},{}],219:[function(_glvis_,module,exports){\nmodule.exports = squaredLength\n\n/**\n * Calculates the squared length of a vec4\n *\n * @param {vec4} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfunction squaredLength (a) {\n var x = a[0],\n y = a[1],\n z = a[2],\n w = a[3]\n return x * x + y * y + z * z + w * w\n}\n\n},{}],220:[function(_glvis_,module,exports){\nmodule.exports = subtract\n\n/**\n * Subtracts vector b from vector a\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the first operand\n * @param {vec4} b the second operand\n * @returns {vec4} out\n */\nfunction subtract (out, a, b) {\n out[0] = a[0] - b[0]\n out[1] = a[1] - b[1]\n out[2] = a[2] - b[2]\n out[3] = a[3] - b[3]\n return out\n}\n\n},{}],221:[function(_glvis_,module,exports){\nmodule.exports = transformMat4\n\n/**\n * Transforms the vec4 with a mat4.\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the vector to transform\n * @param {mat4} m matrix to transform with\n * @returns {vec4} out\n */\nfunction transformMat4 (out, a, m) {\n var x = a[0], y = a[1], z = a[2], w = a[3]\n out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w\n out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w\n out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w\n out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w\n return out\n}\n\n},{}],222:[function(_glvis_,module,exports){\nmodule.exports = transformQuat\n\n/**\n * Transforms the vec4 with a quat\n *\n * @param {vec4} out the receiving vector\n * @param {vec4} a the vector to transform\n * @param {quat} q quaternion to transform with\n * @returns {vec4} out\n */\nfunction transformQuat (out, a, q) {\n var x = a[0], y = a[1], z = a[2],\n qx = q[0], qy = q[1], qz = q[2], qw = q[3],\n\n // calculate quat * vec\n ix = qw * x + qy * z - qz * y,\n iy = qw * y + qz * x - qx * z,\n iz = qw * z + qx * y - qy * x,\n iw = -qx * x - qy * y - qz * z\n\n // calculate result * inverse quat\n out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy\n out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz\n out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx\n out[3] = a[3]\n return out\n}\n\n},{}],223:[function(_glvis_,module,exports){\nvar tokenize = _glvis_('glsl-tokenizer')\nvar atob = _glvis_('atob-lite')\n\nmodule.exports = getName\n\nfunction getName(src) {\n var tokens = Array.isArray(src)\n ? src\n : tokenize(src)\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n if (token.type !== 'preprocessor') continue\n var match = token.data.match(/\\#define\\s+SHADER_NAME(_B64)?\\s+(.+)$/)\n if (!match) continue\n if (!match[2]) continue\n\n var b64 = match[1]\n var name = match[2]\n\n return (b64 ? atob(name) : name).trim()\n }\n}\n\n},{\"atob-lite\":13,\"glsl-tokenizer\":230}],224:[function(_glvis_,module,exports){\nmodule.exports = tokenize\r\n\r\nvar literals100 = _glvis_('./lib/literals')\r\n , operators = _glvis_('./lib/operators')\r\n , builtins100 = _glvis_('./lib/builtins')\r\n , literals300es = _glvis_('./lib/literals-300es')\r\n , builtins300es = _glvis_('./lib/builtins-300es')\r\n\r\nvar NORMAL = 999 // <-- never emitted\r\n , TOKEN = 9999 // <-- never emitted\r\n , BLOCK_COMMENT = 0\r\n , LINE_COMMENT = 1\r\n , PREPROCESSOR = 2\r\n , OPERATOR = 3\r\n , INTEGER = 4\r\n , FLOAT = 5\r\n , IDENT = 6\r\n , BUILTIN = 7\r\n , KEYWORD = 8\r\n , WHITESPACE = 9\r\n , EOF = 10\r\n , HEX = 11\r\n\r\nvar map = [\r\n 'block-comment'\r\n , 'line-comment'\r\n , 'preprocessor'\r\n , 'operator'\r\n , 'integer'\r\n , 'float'\r\n , 'ident'\r\n , 'builtin'\r\n , 'keyword'\r\n , 'whitespace'\r\n , 'eof'\r\n , 'integer'\r\n]\r\n\r\nfunction tokenize(opt) {\r\n var i = 0\r\n , total = 0\r\n , mode = NORMAL\r\n , c\r\n , last\r\n , content = []\r\n , tokens = []\r\n , token_idx = 0\r\n , token_offs = 0\r\n , line = 1\r\n , col = 0\r\n , start = 0\r\n , isnum = false\r\n , isoperator = false\r\n , input = ''\r\n , len\r\n\r\n opt = opt || {}\r\n var allBuiltins = builtins100\r\n var allLiterals = literals100\r\n if (opt.version === '300 es') {\r\n allBuiltins = builtins300es\r\n allLiterals = literals300es\r\n }\r\n\r\n // cache by name\r\n var builtinsDict = {}, literalsDict = {}\r\n for (var i = 0; i < allBuiltins.length; i++) {\r\n builtinsDict[allBuiltins[i]] = true\r\n }\r\n for (var i = 0; i < allLiterals.length; i++) {\r\n literalsDict[allLiterals[i]] = true\r\n }\r\n\r\n return function(data) {\r\n tokens = []\r\n if (data !== null) return write(data)\r\n return end()\r\n }\r\n\r\n function token(data) {\r\n if (data.length) {\r\n tokens.push({\r\n type: map[mode]\r\n , data: data\r\n , position: start\r\n , line: line\r\n , column: col\r\n })\r\n }\r\n }\r\n\r\n function write(chunk) {\r\n i = 0\r\n\r\n if (chunk.toString) chunk = chunk.toString()\r\n\r\n input += chunk.replace(/\\r\\n/g, '\\n')\r\n len = input.length\r\n\r\n\r\n var last\r\n\r\n while(c = input[i], i < len) {\r\n last = i\r\n\r\n switch(mode) {\r\n case BLOCK_COMMENT: i = block_comment(); break\r\n case LINE_COMMENT: i = line_comment(); break\r\n case PREPROCESSOR: i = preprocessor(); break\r\n case OPERATOR: i = operator(); break\r\n case INTEGER: i = integer(); break\r\n case HEX: i = hex(); break\r\n case FLOAT: i = decimal(); break\r\n case TOKEN: i = readtoken(); break\r\n case WHITESPACE: i = whitespace(); break\r\n case NORMAL: i = normal(); break\r\n }\r\n\r\n if(last !== i) {\r\n switch(input[last]) {\r\n case '\\n': col = 0; ++line; break\r\n default: ++col; break\r\n }\r\n }\r\n }\r\n\r\n total += i\r\n input = input.slice(i)\r\n return tokens\r\n }\r\n\r\n function end(chunk) {\r\n if(content.length) {\r\n token(content.join(''))\r\n }\r\n\r\n mode = EOF\r\n token('(eof)')\r\n return tokens\r\n }\r\n\r\n function normal() {\r\n content = content.length ? [] : content\r\n\r\n if(last === '/' && c === '*') {\r\n start = total + i - 1\r\n mode = BLOCK_COMMENT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(last === '/' && c === '/') {\r\n start = total + i - 1\r\n mode = LINE_COMMENT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(c === '#') {\r\n mode = PREPROCESSOR\r\n start = total + i\r\n return i\r\n }\r\n\r\n if(/\\s/.test(c)) {\r\n mode = WHITESPACE\r\n start = total + i\r\n return i\r\n }\r\n\r\n isnum = /\\d/.test(c)\r\n isoperator = /[^\\w_]/.test(c)\r\n\r\n start = total + i\r\n mode = isnum ? INTEGER : isoperator ? OPERATOR : TOKEN\r\n return i\r\n }\r\n\r\n function whitespace() {\r\n if(/[^\\s]/g.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function preprocessor() {\r\n if((c === '\\r' || c === '\\n') && last !== '\\\\') {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function line_comment() {\r\n return preprocessor()\r\n }\r\n\r\n function block_comment() {\r\n if(c === '/' && last === '*') {\r\n content.push(c)\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i + 1\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function operator() {\r\n if(last === '.' && /\\d/.test(c)) {\r\n mode = FLOAT\r\n return i\r\n }\r\n\r\n if(last === '/' && c === '*') {\r\n mode = BLOCK_COMMENT\r\n return i\r\n }\r\n\r\n if(last === '/' && c === '/') {\r\n mode = LINE_COMMENT\r\n return i\r\n }\r\n\r\n if(c === '.' && content.length) {\r\n while(determine_operator(content));\r\n\r\n mode = FLOAT\r\n return i\r\n }\r\n\r\n if(c === ';' || c === ')' || c === '(') {\r\n if(content.length) while(determine_operator(content));\r\n token(c)\r\n mode = NORMAL\r\n return i + 1\r\n }\r\n\r\n var is_composite_operator = content.length === 2 && c !== '='\r\n if(/[\\w_\\d\\s]/.test(c) || is_composite_operator) {\r\n while(determine_operator(content));\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function determine_operator(buf) {\r\n var j = 0\r\n , idx\r\n , res\r\n\r\n do {\r\n idx = operators.indexOf(buf.slice(0, buf.length + j).join(''))\r\n res = operators[idx]\r\n\r\n if(idx === -1) {\r\n if(j-- + buf.length > 0) continue\r\n res = buf.slice(0, 1).join('')\r\n }\r\n\r\n token(res)\r\n\r\n start += res.length\r\n content = content.slice(res.length)\r\n return content.length\r\n } while(1)\r\n }\r\n\r\n function hex() {\r\n if(/[^a-fA-F0-9]/.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function integer() {\r\n if(c === '.') {\r\n content.push(c)\r\n mode = FLOAT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(/[eE]/.test(c)) {\r\n content.push(c)\r\n mode = FLOAT\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(c === 'x' && content.length === 1 && content[0] === '0') {\r\n mode = HEX\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(/[^\\d]/.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function decimal() {\r\n if(c === 'f') {\r\n content.push(c)\r\n last = c\r\n i += 1\r\n }\r\n\r\n if(/[eE]/.test(c)) {\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if ((c === '-' || c === '+') && /[eE]/.test(last)) {\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n if(/[^\\d]/.test(c)) {\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n\r\n function readtoken() {\r\n if(/[^\\d\\w_]/.test(c)) {\r\n var contentstr = content.join('')\r\n if(literalsDict[contentstr]) {\r\n mode = KEYWORD\r\n } else if(builtinsDict[contentstr]) {\r\n mode = BUILTIN\r\n } else {\r\n mode = IDENT\r\n }\r\n token(content.join(''))\r\n mode = NORMAL\r\n return i\r\n }\r\n content.push(c)\r\n last = c\r\n return i + 1\r\n }\r\n}\r\n\n},{\"./lib/builtins\":226,\"./lib/builtins-300es\":225,\"./lib/literals\":228,\"./lib/literals-300es\":227,\"./lib/operators\":229}],225:[function(_glvis_,module,exports){\n// 300es builtins/reserved words that were previously valid in v100\r\nvar v100 = _glvis_('./builtins')\r\n\r\n// The texture2D|Cube functions have been removed\r\n// And the gl_ features are updated\r\nv100 = v100.slice().filter(function (b) {\r\n return !/^(gl\\_|texture)/.test(b)\r\n})\r\n\r\nmodule.exports = v100.concat([\r\n // the updated gl_ constants\r\n 'gl_VertexID'\r\n , 'gl_InstanceID'\r\n , 'gl_Position'\r\n , 'gl_PointSize'\r\n , 'gl_FragCoord'\r\n , 'gl_FrontFacing'\r\n , 'gl_FragDepth'\r\n , 'gl_PointCoord'\r\n , 'gl_MaxVertexAttribs'\r\n , 'gl_MaxVertexUniformVectors'\r\n , 'gl_MaxVertexOutputVectors'\r\n , 'gl_MaxFragmentInputVectors'\r\n , 'gl_MaxVertexTextureImageUnits'\r\n , 'gl_MaxCombinedTextureImageUnits'\r\n , 'gl_MaxTextureImageUnits'\r\n , 'gl_MaxFragmentUniformVectors'\r\n , 'gl_MaxDrawBuffers'\r\n , 'gl_MinProgramTexelOffset'\r\n , 'gl_MaxProgramTexelOffset'\r\n , 'gl_DepthRangeParameters'\r\n , 'gl_DepthRange'\r\n\r\n // other builtins\r\n , 'trunc'\r\n , 'round'\r\n , 'roundEven'\r\n , 'isnan'\r\n , 'isinf'\r\n , 'floatBitsToInt'\r\n , 'floatBitsToUint'\r\n , 'intBitsToFloat'\r\n , 'uintBitsToFloat'\r\n , 'packSnorm2x16'\r\n , 'unpackSnorm2x16'\r\n , 'packUnorm2x16'\r\n , 'unpackUnorm2x16'\r\n , 'packHalf2x16'\r\n , 'unpackHalf2x16'\r\n , 'outerProduct'\r\n , 'transpose'\r\n , 'determinant'\r\n , 'inverse'\r\n , 'texture'\r\n , 'textureSize'\r\n , 'textureProj'\r\n , 'textureLod'\r\n , 'textureOffset'\r\n , 'texelFetch'\r\n , 'texelFetchOffset'\r\n , 'textureProjOffset'\r\n , 'textureLodOffset'\r\n , 'textureProjLod'\r\n , 'textureProjLodOffset'\r\n , 'textureGrad'\r\n , 'textureGradOffset'\r\n , 'textureProjGrad'\r\n , 'textureProjGradOffset'\r\n])\r\n\n},{\"./builtins\":226}],226:[function(_glvis_,module,exports){\nmodule.exports = [\r\n // Keep this list sorted\r\n 'abs'\r\n , 'acos'\r\n , 'all'\r\n , 'any'\r\n , 'asin'\r\n , 'atan'\r\n , 'ceil'\r\n , 'clamp'\r\n , 'cos'\r\n , 'cross'\r\n , 'dFdx'\r\n , 'dFdy'\r\n , 'degrees'\r\n , 'distance'\r\n , 'dot'\r\n , 'equal'\r\n , 'exp'\r\n , 'exp2'\r\n , 'faceforward'\r\n , 'floor'\r\n , 'fract'\r\n , 'gl_BackColor'\r\n , 'gl_BackLightModelProduct'\r\n , 'gl_BackLightProduct'\r\n , 'gl_BackMaterial'\r\n , 'gl_BackSecondaryColor'\r\n , 'gl_ClipPlane'\r\n , 'gl_ClipVertex'\r\n , 'gl_Color'\r\n , 'gl_DepthRange'\r\n , 'gl_DepthRangeParameters'\r\n , 'gl_EyePlaneQ'\r\n , 'gl_EyePlaneR'\r\n , 'gl_EyePlaneS'\r\n , 'gl_EyePlaneT'\r\n , 'gl_Fog'\r\n , 'gl_FogCoord'\r\n , 'gl_FogFragCoord'\r\n , 'gl_FogParameters'\r\n , 'gl_FragColor'\r\n , 'gl_FragCoord'\r\n , 'gl_FragData'\r\n , 'gl_FragDepth'\r\n , 'gl_FragDepthEXT'\r\n , 'gl_FrontColor'\r\n , 'gl_FrontFacing'\r\n , 'gl_FrontLightModelProduct'\r\n , 'gl_FrontLightProduct'\r\n , 'gl_FrontMaterial'\r\n , 'gl_FrontSecondaryColor'\r\n , 'gl_LightModel'\r\n , 'gl_LightModelParameters'\r\n , 'gl_LightModelProducts'\r\n , 'gl_LightProducts'\r\n , 'gl_LightSource'\r\n , 'gl_LightSourceParameters'\r\n , 'gl_MaterialParameters'\r\n , 'gl_MaxClipPlanes'\r\n , 'gl_MaxCombinedTextureImageUnits'\r\n , 'gl_MaxDrawBuffers'\r\n , 'gl_MaxFragmentUniformComponents'\r\n , 'gl_MaxLights'\r\n , 'gl_MaxTextureCoords'\r\n , 'gl_MaxTextureImageUnits'\r\n , 'gl_MaxTextureUnits'\r\n , 'gl_MaxVaryingFloats'\r\n , 'gl_MaxVertexAttribs'\r\n , 'gl_MaxVertexTextureImageUnits'\r\n , 'gl_MaxVertexUniformComponents'\r\n , 'gl_ModelViewMatrix'\r\n , 'gl_ModelViewMatrixInverse'\r\n , 'gl_ModelViewMatrixInverseTranspose'\r\n , 'gl_ModelViewMatrixTranspose'\r\n , 'gl_ModelViewProjectionMatrix'\r\n , 'gl_ModelViewProjectionMatrixInverse'\r\n , 'gl_ModelViewProjectionMatrixInverseTranspose'\r\n , 'gl_ModelViewProjectionMatrixTranspose'\r\n , 'gl_MultiTexCoord0'\r\n , 'gl_MultiTexCoord1'\r\n , 'gl_MultiTexCoord2'\r\n , 'gl_MultiTexCoord3'\r\n , 'gl_MultiTexCoord4'\r\n , 'gl_MultiTexCoord5'\r\n , 'gl_MultiTexCoord6'\r\n , 'gl_MultiTexCoord7'\r\n , 'gl_Normal'\r\n , 'gl_NormalMatrix'\r\n , 'gl_NormalScale'\r\n , 'gl_ObjectPlaneQ'\r\n , 'gl_ObjectPlaneR'\r\n , 'gl_ObjectPlaneS'\r\n , 'gl_ObjectPlaneT'\r\n , 'gl_Point'\r\n , 'gl_PointCoord'\r\n , 'gl_PointParameters'\r\n , 'gl_PointSize'\r\n , 'gl_Position'\r\n , 'gl_ProjectionMatrix'\r\n , 'gl_ProjectionMatrixInverse'\r\n , 'gl_ProjectionMatrixInverseTranspose'\r\n , 'gl_ProjectionMatrixTranspose'\r\n , 'gl_SecondaryColor'\r\n , 'gl_TexCoord'\r\n , 'gl_TextureEnvColor'\r\n , 'gl_TextureMatrix'\r\n , 'gl_TextureMatrixInverse'\r\n , 'gl_TextureMatrixInverseTranspose'\r\n , 'gl_TextureMatrixTranspose'\r\n , 'gl_Vertex'\r\n , 'greaterThan'\r\n , 'greaterThanEqual'\r\n , 'inversesqrt'\r\n , 'length'\r\n , 'lessThan'\r\n , 'lessThanEqual'\r\n , 'log'\r\n , 'log2'\r\n , 'matrixCompMult'\r\n , 'max'\r\n , 'min'\r\n , 'mix'\r\n , 'mod'\r\n , 'normalize'\r\n , 'not'\r\n , 'notEqual'\r\n , 'pow'\r\n , 'radians'\r\n , 'reflect'\r\n , 'refract'\r\n , 'sign'\r\n , 'sin'\r\n , 'smoothstep'\r\n , 'sqrt'\r\n , 'step'\r\n , 'tan'\r\n , 'texture2D'\r\n , 'texture2DLod'\r\n , 'texture2DProj'\r\n , 'texture2DProjLod'\r\n , 'textureCube'\r\n , 'textureCubeLod'\r\n , 'texture2DLodEXT'\r\n , 'texture2DProjLodEXT'\r\n , 'textureCubeLodEXT'\r\n , 'texture2DGradEXT'\r\n , 'texture2DProjGradEXT'\r\n , 'textureCubeGradEXT'\r\n]\r\n\n},{}],227:[function(_glvis_,module,exports){\nvar v100 = _glvis_('./literals')\r\n\r\nmodule.exports = v100.slice().concat([\r\n 'layout'\r\n , 'centroid'\r\n , 'smooth'\r\n , 'case'\r\n , 'mat2x2'\r\n , 'mat2x3'\r\n , 'mat2x4'\r\n , 'mat3x2'\r\n , 'mat3x3'\r\n , 'mat3x4'\r\n , 'mat4x2'\r\n , 'mat4x3'\r\n , 'mat4x4'\r\n , 'uvec2'\r\n , 'uvec3'\r\n , 'uvec4'\r\n , 'samplerCubeShadow'\r\n , 'sampler2DArray'\r\n , 'sampler2DArrayShadow'\r\n , 'isampler2D'\r\n , 'isampler3D'\r\n , 'isamplerCube'\r\n , 'isampler2DArray'\r\n , 'usampler2D'\r\n , 'usampler3D'\r\n , 'usamplerCube'\r\n , 'usampler2DArray'\r\n , 'coherent'\r\n , 'restrict'\r\n , 'readonly'\r\n , 'writeonly'\r\n , 'resource'\r\n , 'atomic_uint'\r\n , 'noperspective'\r\n , 'patch'\r\n , 'sample'\r\n , 'subroutine'\r\n , 'common'\r\n , 'partition'\r\n , 'active'\r\n , 'filter'\r\n , 'image1D'\r\n , 'image2D'\r\n , 'image3D'\r\n , 'imageCube'\r\n , 'iimage1D'\r\n , 'iimage2D'\r\n , 'iimage3D'\r\n , 'iimageCube'\r\n , 'uimage1D'\r\n , 'uimage2D'\r\n , 'uimage3D'\r\n , 'uimageCube'\r\n , 'image1DArray'\r\n , 'image2DArray'\r\n , 'iimage1DArray'\r\n , 'iimage2DArray'\r\n , 'uimage1DArray'\r\n , 'uimage2DArray'\r\n , 'image1DShadow'\r\n , 'image2DShadow'\r\n , 'image1DArrayShadow'\r\n , 'image2DArrayShadow'\r\n , 'imageBuffer'\r\n , 'iimageBuffer'\r\n , 'uimageBuffer'\r\n , 'sampler1DArray'\r\n , 'sampler1DArrayShadow'\r\n , 'isampler1D'\r\n , 'isampler1DArray'\r\n , 'usampler1D'\r\n , 'usampler1DArray'\r\n , 'isampler2DRect'\r\n , 'usampler2DRect'\r\n , 'samplerBuffer'\r\n , 'isamplerBuffer'\r\n , 'usamplerBuffer'\r\n , 'sampler2DMS'\r\n , 'isampler2DMS'\r\n , 'usampler2DMS'\r\n , 'sampler2DMSArray'\r\n , 'isampler2DMSArray'\r\n , 'usampler2DMSArray'\r\n])\r\n\n},{\"./literals\":228}],228:[function(_glvis_,module,exports){\nmodule.exports = [\r\n // current\r\n 'precision'\r\n , 'highp'\r\n , 'mediump'\r\n , 'lowp'\r\n , 'attribute'\r\n , 'const'\r\n , 'uniform'\r\n , 'varying'\r\n , 'break'\r\n , 'continue'\r\n , 'do'\r\n , 'for'\r\n , 'while'\r\n , 'if'\r\n , 'else'\r\n , 'in'\r\n , 'out'\r\n , 'inout'\r\n , 'float'\r\n , 'int'\r\n , 'uint'\r\n , 'void'\r\n , 'bool'\r\n , 'true'\r\n , 'false'\r\n , 'discard'\r\n , 'return'\r\n , 'mat2'\r\n , 'mat3'\r\n , 'mat4'\r\n , 'vec2'\r\n , 'vec3'\r\n , 'vec4'\r\n , 'ivec2'\r\n , 'ivec3'\r\n , 'ivec4'\r\n , 'bvec2'\r\n , 'bvec3'\r\n , 'bvec4'\r\n , 'sampler1D'\r\n , 'sampler2D'\r\n , 'sampler3D'\r\n , 'samplerCube'\r\n , 'sampler1DShadow'\r\n , 'sampler2DShadow'\r\n , 'struct'\r\n\r\n // future\r\n , 'asm'\r\n , 'class'\r\n , 'union'\r\n , 'enum'\r\n , 'typedef'\r\n , 'template'\r\n , 'this'\r\n , 'packed'\r\n , 'goto'\r\n , 'switch'\r\n , 'default'\r\n , 'inline'\r\n , 'noinline'\r\n , 'volatile'\r\n , 'public'\r\n , 'static'\r\n , 'extern'\r\n , 'external'\r\n , 'interface'\r\n , 'long'\r\n , 'short'\r\n , 'double'\r\n , 'half'\r\n , 'fixed'\r\n , 'unsigned'\r\n , 'input'\r\n , 'output'\r\n , 'hvec2'\r\n , 'hvec3'\r\n , 'hvec4'\r\n , 'dvec2'\r\n , 'dvec3'\r\n , 'dvec4'\r\n , 'fvec2'\r\n , 'fvec3'\r\n , 'fvec4'\r\n , 'sampler2DRect'\r\n , 'sampler3DRect'\r\n , 'sampler2DRectShadow'\r\n , 'sizeof'\r\n , 'cast'\r\n , 'namespace'\r\n , 'using'\r\n]\r\n\n},{}],229:[function(_glvis_,module,exports){\nmodule.exports = [\r\n '<<='\r\n , '>>='\r\n , '++'\r\n , '--'\r\n , '<<'\r\n , '>>'\r\n , '<='\r\n , '>='\r\n , '=='\r\n , '!='\r\n , '&&'\r\n , '||'\r\n , '+='\r\n , '-='\r\n , '*='\r\n , '/='\r\n , '%='\r\n , '&='\r\n , '^^'\r\n , '^='\r\n , '|='\r\n , '('\r\n , ')'\r\n , '['\r\n , ']'\r\n , '.'\r\n , '!'\r\n , '~'\r\n , '*'\r\n , '/'\r\n , '%'\r\n , '+'\r\n , '-'\r\n , '<'\r\n , '>'\r\n , '&'\r\n , '^'\r\n , '|'\r\n , '?'\r\n , ':'\r\n , '='\r\n , ','\r\n , ';'\r\n , '{'\r\n , '}'\r\n]\r\n\n},{}],230:[function(_glvis_,module,exports){\nvar tokenize = _glvis_('./index')\r\n\r\nmodule.exports = tokenizeString\r\n\r\nfunction tokenizeString(str, opt) {\r\n var generator = tokenize(opt)\r\n var tokens = []\r\n\r\n tokens = tokens.concat(generator(str))\r\n tokens = tokens.concat(generator(null))\r\n\r\n return tokens\r\n}\r\n\n},{\"./index\":224}],231:[function(_glvis_,module,exports){\nmodule.exports = function(strings) {\n if (typeof strings === 'string') strings = [strings]\n var exprs = [].slice.call(arguments,1)\n var parts = []\n for (var i = 0; i < strings.length-1; i++) {\n parts.push(strings[i], exprs[i] || '')\n }\n parts.push(strings[i])\n return parts.join('')\n}\n\n},{}],232:[function(_glvis_,module,exports){\n'use strict'\r\n\r\nvar isBrowser = _glvis_('is-browser')\r\n\r\nfunction detect() {\r\n\tvar supported = false\r\n\r\n\ttry {\r\n\t\tvar opts = Object.defineProperty({}, 'passive', {\r\n\t\t\tget: function() {\r\n\t\t\t\tsupported = true\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\twindow.addEventListener('test', null, opts)\r\n\t\twindow.removeEventListener('test', null, opts)\r\n\t} catch(e) {\r\n\t\tsupported = false\r\n\t}\r\n\r\n\treturn supported\r\n}\r\n\r\nmodule.exports = isBrowser && detect()\r\n\n},{\"is-browser\":236}],233:[function(_glvis_,module,exports){\n\"use strict\"\n\n//High level idea:\n// 1. Use Clarkson's incremental construction to find convex hull\n// 2. Point location in triangulation by jump and walk\n\nmodule.exports = incrementalConvexHull\n\nvar orient = _glvis_(\"robust-orientation\")\nvar compareCell = _glvis_(\"simplicial-complex\").compareCells\n\nfunction Simplex(vertices, adjacent, boundary) {\n this.vertices = vertices\n this.adjacent = adjacent\n this.boundary = boundary\n this.lastVisited = -1\n}\n\nSimplex.prototype.flip = function() {\n var t = this.vertices[0]\n this.vertices[0] = this.vertices[1]\n this.vertices[1] = t\n var u = this.adjacent[0]\n this.adjacent[0] = this.adjacent[1]\n this.adjacent[1] = u\n}\n\nfunction GlueFacet(vertices, cell, index) {\n this.vertices = vertices\n this.cell = cell\n this.index = index\n}\n\nfunction compareGlue(a, b) {\n return compareCell(a.vertices, b.vertices)\n}\n\nfunction wrapper(test) {\n return function() {\n var tuple = this.tuple\n return test.apply(this, tuple)\n }\n}\n\nfunction bakeOrient(d) {\n var test = orient[d+1]\n if(!test) {\n test = orient\n }\n return wrapper(test)\n}\n\nvar BAKED = []\n\nfunction Triangulation(dimension, vertices, simplices) {\n this.dimension = dimension\n this.vertices = vertices\n this.simplices = simplices\n this.interior = simplices.filter(function(c) {\n return !c.boundary\n })\n\n this.tuple = new Array(dimension+1)\n for(var i=0; i<=dimension; ++i) {\n this.tuple[i] = this.vertices[i]\n }\n\n var o = BAKED[dimension]\n if(!o) {\n o = BAKED[dimension] = bakeOrient(dimension)\n }\n this.orient = o\n}\n\nvar proto = Triangulation.prototype\n\n//Degenerate situation where we are on boundary, but coplanar to face\nproto.handleBoundaryDegeneracy = function(cell, point) {\n var d = this.dimension\n var n = this.vertices.length - 1\n var tuple = this.tuple\n var verts = this.vertices\n\n //Dumb solution: Just do dfs from boundary cell until we find any peak, or terminate\n var toVisit = [ cell ]\n cell.lastVisited = -n\n while(toVisit.length > 0) {\n cell = toVisit.pop()\n var cellAdj = cell.adjacent\n for(var i=0; i<=d; ++i) {\n var neighbor = cellAdj[i]\n if(!neighbor.boundary || neighbor.lastVisited <= -n) {\n continue\n }\n var nv = neighbor.vertices\n for(var j=0; j<=d; ++j) {\n var vv = nv[j]\n if(vv < 0) {\n tuple[j] = point\n } else {\n tuple[j] = verts[vv]\n }\n }\n var o = this.orient()\n if(o > 0) {\n return neighbor\n }\n neighbor.lastVisited = -n\n if(o === 0) {\n toVisit.push(neighbor)\n }\n }\n }\n return null\n}\n\nproto.walk = function(point, random) {\n //Alias local properties\n var n = this.vertices.length - 1\n var d = this.dimension\n var verts = this.vertices\n var tuple = this.tuple\n\n //Compute initial jump cell\n var initIndex = random ? (this.interior.length * Math.random())|0 : (this.interior.length-1)\n var cell = this.interior[ initIndex ]\n\n //Start walking\nouterLoop:\n while(!cell.boundary) {\n var cellVerts = cell.vertices\n var cellAdj = cell.adjacent\n\n for(var i=0; i<=d; ++i) {\n tuple[i] = verts[cellVerts[i]]\n }\n cell.lastVisited = n\n\n //Find farthest adjacent cell\n for(var i=0; i<=d; ++i) {\n var neighbor = cellAdj[i]\n if(neighbor.lastVisited >= n) {\n continue\n }\n var prev = tuple[i]\n tuple[i] = point\n var o = this.orient()\n tuple[i] = prev\n if(o < 0) {\n cell = neighbor\n continue outerLoop\n } else {\n if(!neighbor.boundary) {\n neighbor.lastVisited = n\n } else {\n neighbor.lastVisited = -n\n }\n }\n }\n return\n }\n\n return cell\n}\n\nproto.addPeaks = function(point, cell) {\n var n = this.vertices.length - 1\n var d = this.dimension\n var verts = this.vertices\n var tuple = this.tuple\n var interior = this.interior\n var simplices = this.simplices\n\n //Walking finished at boundary, time to add peaks\n var tovisit = [ cell ]\n\n //Stretch initial boundary cell into a peak\n cell.lastVisited = n\n cell.vertices[cell.vertices.indexOf(-1)] = n\n cell.boundary = false\n interior.push(cell)\n\n //Record a list of all new boundaries created by added peaks so we can glue them together when we are all done\n var glueFacets = []\n\n //Do a traversal of the boundary walking outward from starting peak\n while(tovisit.length > 0) {\n //Pop off peak and walk over adjacent cells\n var cell = tovisit.pop()\n var cellVerts = cell.vertices\n var cellAdj = cell.adjacent\n var indexOfN = cellVerts.indexOf(n)\n if(indexOfN < 0) {\n continue\n }\n\n for(var i=0; i<=d; ++i) {\n if(i === indexOfN) {\n continue\n }\n\n //For each boundary neighbor of the cell\n var neighbor = cellAdj[i]\n if(!neighbor.boundary || neighbor.lastVisited >= n) {\n continue\n }\n\n var nv = neighbor.vertices\n\n //Test if neighbor is a peak\n if(neighbor.lastVisited !== -n) {\n //Compute orientation of p relative to each boundary peak\n var indexOfNeg1 = 0\n for(var j=0; j<=d; ++j) {\n if(nv[j] < 0) {\n indexOfNeg1 = j\n tuple[j] = point\n } else {\n tuple[j] = verts[nv[j]]\n }\n }\n var o = this.orient()\n\n //Test if neighbor cell is also a peak\n if(o > 0) {\n nv[indexOfNeg1] = n\n neighbor.boundary = false\n interior.push(neighbor)\n tovisit.push(neighbor)\n neighbor.lastVisited = n\n continue\n } else {\n neighbor.lastVisited = -n\n }\n }\n\n var na = neighbor.adjacent\n\n //Otherwise, replace neighbor with new face\n var vverts = cellVerts.slice()\n var vadj = cellAdj.slice()\n var ncell = new Simplex(vverts, vadj, true)\n simplices.push(ncell)\n\n //Connect to neighbor\n var opposite = na.indexOf(cell)\n if(opposite < 0) {\n continue\n }\n na[opposite] = ncell\n vadj[indexOfN] = neighbor\n\n //Connect to cell\n vverts[i] = -1\n vadj[i] = cell\n cellAdj[i] = ncell\n\n //Flip facet\n ncell.flip()\n\n //Add to glue list\n for(var j=0; j<=d; ++j) {\n var uu = vverts[j]\n if(uu < 0 || uu === n) {\n continue\n }\n var nface = new Array(d-1)\n var nptr = 0\n for(var k=0; k<=d; ++k) {\n var vv = vverts[k]\n if(vv < 0 || k === j) {\n continue\n }\n nface[nptr++] = vv\n }\n glueFacets.push(new GlueFacet(nface, ncell, j))\n }\n }\n }\n\n //Glue boundary facets together\n glueFacets.sort(compareGlue)\n\n for(var i=0; i+1= 0) {\n bcell[ptr++] = cv[j]\n } else {\n parity = j&1\n }\n }\n if(parity === (d&1)) {\n var t = bcell[0]\n bcell[0] = bcell[1]\n bcell[1] = t\n }\n boundary.push(bcell)\n }\n }\n return boundary\n}\n\nfunction incrementalConvexHull(points, randomSearch) {\n var n = points.length\n if(n === 0) {\n throw new Error(\"Must have at least d+1 points\")\n }\n var d = points[0].length\n if(n <= d) {\n throw new Error(\"Must input at least d+1 points\")\n }\n\n //FIXME: This could be degenerate, but need to select d+1 non-coplanar points to bootstrap process\n var initialSimplex = points.slice(0, d+1)\n\n //Make sure initial simplex is positively oriented\n var o = orient.apply(void 0, initialSimplex)\n if(o === 0) {\n throw new Error(\"Input not in general position\")\n }\n var initialCoords = new Array(d+1)\n for(var i=0; i<=d; ++i) {\n initialCoords[i] = i\n }\n if(o < 0) {\n initialCoords[0] = 1\n initialCoords[1] = 0\n }\n\n //Create initial topological index, glue pointers together (kind of messy)\n var initialCell = new Simplex(initialCoords, new Array(d+1), false)\n var boundary = initialCell.adjacent\n var list = new Array(d+2)\n for(var i=0; i<=d; ++i) {\n var verts = initialCoords.slice()\n for(var j=0; j<=d; ++j) {\n if(j === i) {\n verts[j] = -1\n }\n }\n var t = verts[0]\n verts[0] = verts[1]\n verts[1] = t\n var cell = new Simplex(verts, new Array(d+1), true)\n boundary[i] = cell\n list[i] = cell\n }\n list[d+1] = initialCell\n for(var i=0; i<=d; ++i) {\n var verts = boundary[i].vertices\n var adj = boundary[i].adjacent\n for(var j=0; j<=d; ++j) {\n var v = verts[j]\n if(v < 0) {\n adj[j] = initialCell\n continue\n }\n for(var k=0; k<=d; ++k) {\n if(boundary[k].vertices.indexOf(v) < 0) {\n adj[j] = boundary[k]\n }\n }\n }\n }\n\n //Initialize triangles\n var triangles = new Triangulation(d, initialSimplex, list)\n\n //Insert remaining points\n var useRandom = !!randomSearch\n for(var i=d+1; i 3*(weight+1)) {\n rebuildWithInterval(this, interval)\n } else {\n this.left.insert(interval)\n }\n } else {\n this.left = createIntervalTree([interval])\n }\n } else if(interval[0] > this.mid) {\n if(this.right) {\n if(4*(this.right.count+1) > 3*(weight+1)) {\n rebuildWithInterval(this, interval)\n } else {\n this.right.insert(interval)\n }\n } else {\n this.right = createIntervalTree([interval])\n }\n } else {\n var l = bounds.ge(this.leftPoints, interval, compareBegin)\n var r = bounds.ge(this.rightPoints, interval, compareEnd)\n this.leftPoints.splice(l, 0, interval)\n this.rightPoints.splice(r, 0, interval)\n }\n}\n\nproto.remove = function(interval) {\n var weight = this.count - this.leftPoints\n if(interval[1] < this.mid) {\n if(!this.left) {\n return NOT_FOUND\n }\n var rw = this.right ? this.right.count : 0\n if(4 * rw > 3 * (weight-1)) {\n return rebuildWithoutInterval(this, interval)\n }\n var r = this.left.remove(interval)\n if(r === EMPTY) {\n this.left = null\n this.count -= 1\n return SUCCESS\n } else if(r === SUCCESS) {\n this.count -= 1\n }\n return r\n } else if(interval[0] > this.mid) {\n if(!this.right) {\n return NOT_FOUND\n }\n var lw = this.left ? this.left.count : 0\n if(4 * lw > 3 * (weight-1)) {\n return rebuildWithoutInterval(this, interval)\n }\n var r = this.right.remove(interval)\n if(r === EMPTY) {\n this.right = null\n this.count -= 1\n return SUCCESS\n } else if(r === SUCCESS) {\n this.count -= 1\n }\n return r\n } else {\n if(this.count === 1) {\n if(this.leftPoints[0] === interval) {\n return EMPTY\n } else {\n return NOT_FOUND\n }\n }\n if(this.leftPoints.length === 1 && this.leftPoints[0] === interval) {\n if(this.left && this.right) {\n var p = this\n var n = this.left\n while(n.right) {\n p = n\n n = n.right\n }\n if(p === this) {\n n.right = this.right\n } else {\n var l = this.left\n var r = this.right\n p.count -= n.count\n p.right = n.left\n n.left = l\n n.right = r\n }\n copy(this, n)\n this.count = (this.left?this.left.count:0) + (this.right?this.right.count:0) + this.leftPoints.length\n } else if(this.left) {\n copy(this, this.left)\n } else {\n copy(this, this.right)\n }\n return SUCCESS\n }\n for(var l = bounds.ge(this.leftPoints, interval, compareBegin); l=0 && arr[i][1] >= lo; --i) {\n var r = cb(arr[i])\n if(r) { return r }\n }\n}\n\nfunction reportRange(arr, cb) {\n for(var i=0; i this.mid) {\n if(this.right) {\n var r = this.right.queryPoint(x, cb)\n if(r) { return r }\n }\n return reportRightRange(this.rightPoints, x, cb)\n } else {\n return reportRange(this.leftPoints, cb)\n }\n}\n\nproto.queryInterval = function(lo, hi, cb) {\n if(lo < this.mid && this.left) {\n var r = this.left.queryInterval(lo, hi, cb)\n if(r) { return r }\n }\n if(hi > this.mid && this.right) {\n var r = this.right.queryInterval(lo, hi, cb)\n if(r) { return r }\n }\n if(hi < this.mid) {\n return reportLeftRange(this.leftPoints, hi, cb)\n } else if(lo > this.mid) {\n return reportRightRange(this.rightPoints, lo, cb)\n } else {\n return reportRange(this.leftPoints, cb)\n }\n}\n\nfunction compareNumbers(a, b) {\n return a - b\n}\n\nfunction compareBegin(a, b) {\n var d = a[0] - b[0]\n if(d) { return d }\n return a[1] - b[1]\n}\n\nfunction compareEnd(a, b) {\n var d = a[1] - b[1]\n if(d) { return d }\n return a[0] - b[0]\n}\n\nfunction createIntervalTree(intervals) {\n if(intervals.length === 0) {\n return null\n }\n var pts = []\n for(var i=0; i>1]\n\n var leftIntervals = []\n var rightIntervals = []\n var centerIntervals = []\n for(var i=0; i\n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n\n},{}],238:[function(_glvis_,module,exports){\n'use strict'\r\n\r\nmodule.exports = isMobile\r\nmodule.exports.isMobile = isMobile\r\nmodule.exports.default = isMobile\r\n\r\nvar mobileRE = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i\r\n\r\nvar tabletRE = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i\r\n\r\nfunction isMobile (opts) {\r\n if (!opts) opts = {}\r\n var ua = opts.ua\r\n if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent\r\n if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {\r\n ua = ua.headers['user-agent']\r\n }\r\n if (typeof ua !== 'string') return false\r\n\r\n var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)\r\n\r\n if (\r\n !result &&\r\n opts.tablet &&\r\n opts.featureDetect &&\r\n navigator &&\r\n navigator.maxTouchPoints > 1 &&\r\n ua.indexOf('Macintosh') !== -1 &&\r\n ua.indexOf('Safari') !== -1\r\n ) {\r\n result = true\r\n }\r\n\r\n return result\r\n}\r\n\n},{}],239:[function(_glvis_,module,exports){\n'use strict';\r\n\r\n/**\r\n * Is this string all whitespace?\r\n * This solution kind of makes my brain hurt, but it's significantly faster\r\n * than !str.trim() or any other solution I could find.\r\n *\r\n * whitespace codes from: http://en.wikipedia.org/wiki/Whitespace_character\r\n * and verified with:\r\n *\r\n * for(var i = 0; i < 65536; i++) {\r\n * var s = String.fromCharCode(i);\r\n * if(+s===0 && !s.trim()) console.log(i, s);\r\n * }\r\n *\r\n * which counts a couple of these as *not* whitespace, but finds nothing else\r\n * that *is* whitespace. Note that charCodeAt stops at 16 bits, but it appears\r\n * that there are no whitespace characters above this, and code points above\r\n * this do not map onto white space characters.\r\n */\r\n\r\nmodule.exports = function(str){\r\n var l = str.length,\r\n a;\r\n for(var i = 0; i < l; i++) {\r\n a = str.charCodeAt(i);\r\n if((a < 9 || a > 13) && (a !== 32) && (a !== 133) && (a !== 160) &&\r\n (a !== 5760) && (a !== 6158) && (a < 8192 || a > 8205) &&\r\n (a !== 8232) && (a !== 8233) && (a !== 8239) && (a !== 8287) &&\r\n (a !== 8288) && (a !== 12288) && (a !== 65279)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\n},{}],240:[function(_glvis_,module,exports){\nfunction lerp(v0, v1, t) {\n return v0*(1-t)+v1*t\n}\nmodule.exports = lerp\n},{}],241:[function(_glvis_,module,exports){\n/*jshint unused:true*/\n/*\nInput: matrix ; a 4x4 matrix\nOutput: translation ; a 3 component vector\n scale ; a 3 component vector\n skew ; skew factors XY,XZ,YZ represented as a 3 component vector\n perspective ; a 4 component vector\n quaternion ; a 4 component vector\nReturns false if the matrix cannot be decomposed, true if it can\n\n\nReferences:\nhttps://github.com/kamicane/matrix3d/blob/master/lib/Matrix3d.js\nhttps://github.com/ChromiumWebApps/chromium/blob/master/ui/gfx/transform_util.cc\nhttp://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix\n*/\n\nvar normalize = _glvis_('./normalize')\n\nvar create = _glvis_('gl-mat4/create')\nvar clone = _glvis_('gl-mat4/clone')\nvar determinant = _glvis_('gl-mat4/determinant')\nvar invert = _glvis_('gl-mat4/invert')\nvar transpose = _glvis_('gl-mat4/transpose')\nvar vec3 = {\n length: _glvis_('gl-vec3/length'),\n normalize: _glvis_('gl-vec3/normalize'),\n dot: _glvis_('gl-vec3/dot'),\n cross: _glvis_('gl-vec3/cross')\n}\n\nvar tmp = create()\nvar perspectiveMatrix = create()\nvar tmpVec4 = [0, 0, 0, 0]\nvar row = [ [0,0,0], [0,0,0], [0,0,0] ]\nvar pdum3 = [0,0,0]\n\nmodule.exports = function decomposeMat4(matrix, translation, scale, skew, perspective, quaternion) {\n if (!translation) translation = [0,0,0]\n if (!scale) scale = [0,0,0]\n if (!skew) skew = [0,0,0]\n if (!perspective) perspective = [0,0,0,1]\n if (!quaternion) quaternion = [0,0,0,1]\n\n //normalize, if not possible then bail out early\n if (!normalize(tmp, matrix))\n return false\n\n // perspectiveMatrix is used to solve for perspective, but it also provides\n // an easy way to test for singularity of the upper 3x3 component.\n clone(perspectiveMatrix, tmp)\n\n perspectiveMatrix[3] = 0\n perspectiveMatrix[7] = 0\n perspectiveMatrix[11] = 0\n perspectiveMatrix[15] = 1\n\n // If the perspectiveMatrix is not invertible, we are also unable to\n // decompose, so we'll bail early. Constant taken from SkMatrix44::invert.\n if (Math.abs(determinant(perspectiveMatrix) < 1e-8))\n return false\n\n var a03 = tmp[3], a13 = tmp[7], a23 = tmp[11],\n a30 = tmp[12], a31 = tmp[13], a32 = tmp[14], a33 = tmp[15]\n\n // First, isolate perspective.\n if (a03 !== 0 || a13 !== 0 || a23 !== 0) {\n tmpVec4[0] = a03\n tmpVec4[1] = a13\n tmpVec4[2] = a23\n tmpVec4[3] = a33\n\n // Solve the equation by inverting perspectiveMatrix and multiplying\n // rightHandSide by the inverse.\n // resuing the perspectiveMatrix here since it's no longer needed\n var ret = invert(perspectiveMatrix, perspectiveMatrix)\n if (!ret) return false\n transpose(perspectiveMatrix, perspectiveMatrix)\n\n //multiply by transposed inverse perspective matrix, into perspective vec4\n vec4multMat4(perspective, tmpVec4, perspectiveMatrix)\n } else { \n //no perspective\n perspective[0] = perspective[1] = perspective[2] = 0\n perspective[3] = 1\n }\n\n // Next take care of translation\n translation[0] = a30\n translation[1] = a31\n translation[2] = a32\n\n // Now get scale and shear. 'row' is a 3 element array of 3 component vectors\n mat3from4(row, tmp)\n\n // Compute X scale factor and normalize first row.\n scale[0] = vec3.length(row[0])\n vec3.normalize(row[0], row[0])\n\n // Compute XY shear factor and make 2nd row orthogonal to 1st.\n skew[0] = vec3.dot(row[0], row[1])\n combine(row[1], row[1], row[0], 1.0, -skew[0])\n\n // Now, compute Y scale and normalize 2nd row.\n scale[1] = vec3.length(row[1])\n vec3.normalize(row[1], row[1])\n skew[0] /= scale[1]\n\n // Compute XZ and YZ shears, orthogonalize 3rd row\n skew[1] = vec3.dot(row[0], row[2])\n combine(row[2], row[2], row[0], 1.0, -skew[1])\n skew[2] = vec3.dot(row[1], row[2])\n combine(row[2], row[2], row[1], 1.0, -skew[2])\n\n // Next, get Z scale and normalize 3rd row.\n scale[2] = vec3.length(row[2])\n vec3.normalize(row[2], row[2])\n skew[1] /= scale[2]\n skew[2] /= scale[2]\n\n\n // At this point, the matrix (in rows) is orthonormal.\n // Check for a coordinate system flip. If the determinant\n // is -1, then negate the matrix and the scaling factors.\n vec3.cross(pdum3, row[1], row[2])\n if (vec3.dot(row[0], pdum3) < 0) {\n for (var i = 0; i < 3; i++) {\n scale[i] *= -1;\n row[i][0] *= -1\n row[i][1] *= -1\n row[i][2] *= -1\n }\n }\n\n // Now, get the rotations out\n quaternion[0] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0))\n quaternion[1] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0))\n quaternion[2] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0))\n quaternion[3] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0))\n\n if (row[2][1] > row[1][2])\n quaternion[0] = -quaternion[0]\n if (row[0][2] > row[2][0])\n quaternion[1] = -quaternion[1]\n if (row[1][0] > row[0][1])\n quaternion[2] = -quaternion[2]\n return true\n}\n\n//will be replaced by gl-vec4 eventually\nfunction vec4multMat4(out, a, m) {\n var x = a[0], y = a[1], z = a[2], w = a[3];\n out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;\n out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;\n out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w;\n out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w;\n return out;\n}\n\n//gets upper-left of a 4x4 matrix into a 3x3 of vectors\nfunction mat3from4(out, mat4x4) {\n out[0][0] = mat4x4[0]\n out[0][1] = mat4x4[1]\n out[0][2] = mat4x4[2]\n \n out[1][0] = mat4x4[4]\n out[1][1] = mat4x4[5]\n out[1][2] = mat4x4[6]\n\n out[2][0] = mat4x4[8]\n out[2][1] = mat4x4[9]\n out[2][2] = mat4x4[10]\n}\n\nfunction combine(out, a, b, scale1, scale2) {\n out[0] = a[0] * scale1 + b[0] * scale2\n out[1] = a[1] * scale1 + b[1] * scale2\n out[2] = a[2] * scale1 + b[2] * scale2\n}\n},{\"./normalize\":242,\"gl-mat4/clone\":92,\"gl-mat4/create\":93,\"gl-mat4/determinant\":94,\"gl-mat4/invert\":98,\"gl-mat4/transpose\":109,\"gl-vec3/cross\":157,\"gl-vec3/dot\":162,\"gl-vec3/length\":172,\"gl-vec3/normalize\":179}],242:[function(_glvis_,module,exports){\nmodule.exports = function normalize(out, mat) {\n var m44 = mat[15]\n // Cannot normalize.\n if (m44 === 0) \n return false\n var scale = 1 / m44\n for (var i=0; i<16; i++)\n out[i] = mat[i] * scale\n return true\n}\n},{}],243:[function(_glvis_,module,exports){\nvar lerp = _glvis_('gl-vec3/lerp')\n\nvar recompose = _glvis_('mat4-recompose')\nvar decompose = _glvis_('mat4-decompose')\nvar determinant = _glvis_('gl-mat4/determinant')\nvar slerp = _glvis_('quat-slerp')\n\nvar state0 = state()\nvar state1 = state()\nvar tmp = state()\n\nmodule.exports = interpolate\nfunction interpolate(out, start, end, alpha) {\n if (determinant(start) === 0 || determinant(end) === 0)\n return false\n\n //decompose the start and end matrices into individual components\n var r0 = decompose(start, state0.translate, state0.scale, state0.skew, state0.perspective, state0.quaternion)\n var r1 = decompose(end, state1.translate, state1.scale, state1.skew, state1.perspective, state1.quaternion)\n if (!r0 || !r1)\n return false \n\n\n //now lerp/slerp the start and end components into a temporary lerp(tmptranslate, state0.translate, state1.translate, alpha)\n lerp(tmp.translate, state0.translate, state1.translate, alpha)\n lerp(tmp.skew, state0.skew, state1.skew, alpha)\n lerp(tmp.scale, state0.scale, state1.scale, alpha)\n lerp(tmp.perspective, state0.perspective, state1.perspective, alpha)\n slerp(tmp.quaternion, state0.quaternion, state1.quaternion, alpha)\n\n //and recompose into our 'out' matrix\n recompose(out, tmp.translate, tmp.scale, tmp.skew, tmp.perspective, tmp.quaternion)\n return true\n}\n\nfunction state() {\n return {\n translate: vec3(),\n scale: vec3(1),\n skew: vec3(),\n perspective: vec4(),\n quaternion: vec4()\n }\n}\n\nfunction vec3(n) {\n return [n||0,n||0,n||0]\n}\n\nfunction vec4() {\n return [0,0,0,1]\n}\n},{\"gl-mat4/determinant\":94,\"gl-vec3/lerp\":173,\"mat4-decompose\":241,\"mat4-recompose\":244,\"quat-slerp\":271}],244:[function(_glvis_,module,exports){\n/*\nInput: translation ; a 3 component vector\n scale ; a 3 component vector\n skew ; skew factors XY,XZ,YZ represented as a 3 component vector\n perspective ; a 4 component vector\n quaternion ; a 4 component vector\nOutput: matrix ; a 4x4 matrix\n\nFrom: http://www.w3.org/TR/css3-transforms/#recomposing-to-a-3d-matrix\n*/\n\nvar mat4 = {\n identity: _glvis_('gl-mat4/identity'),\n translate: _glvis_('gl-mat4/translate'),\n multiply: _glvis_('gl-mat4/multiply'),\n create: _glvis_('gl-mat4/create'),\n scale: _glvis_('gl-mat4/scale'),\n fromRotationTranslation: _glvis_('gl-mat4/fromRotationTranslation')\n}\n\nvar rotationMatrix = mat4.create()\nvar temp = mat4.create()\n\nmodule.exports = function recomposeMat4(matrix, translation, scale, skew, perspective, quaternion) {\n mat4.identity(matrix)\n\n //apply translation & rotation\n mat4.fromRotationTranslation(matrix, quaternion, translation)\n\n //apply perspective\n matrix[3] = perspective[0]\n matrix[7] = perspective[1]\n matrix[11] = perspective[2]\n matrix[15] = perspective[3]\n \n // apply skew\n // temp is a identity 4x4 matrix initially\n mat4.identity(temp)\n\n if (skew[2] !== 0) {\n temp[9] = skew[2]\n mat4.multiply(matrix, matrix, temp)\n }\n\n if (skew[1] !== 0) {\n temp[9] = 0\n temp[8] = skew[1]\n mat4.multiply(matrix, matrix, temp)\n }\n\n if (skew[0] !== 0) {\n temp[8] = 0\n temp[4] = skew[0]\n mat4.multiply(matrix, matrix, temp)\n }\n\n //apply scale\n mat4.scale(matrix, matrix, scale)\n return matrix\n}\n},{\"gl-mat4/create\":93,\"gl-mat4/fromRotationTranslation\":96,\"gl-mat4/identity\":97,\"gl-mat4/multiply\":100,\"gl-mat4/scale\":107,\"gl-mat4/translate\":108}],245:[function(_glvis_,module,exports){\n'use strict'\n\nvar bsearch = _glvis_('binary-search-bounds')\nvar m4interp = _glvis_('mat4-interpolate')\nvar invert44 = _glvis_('gl-mat4/invert')\nvar rotateX = _glvis_('gl-mat4/rotateX')\nvar rotateY = _glvis_('gl-mat4/rotateY')\nvar rotateZ = _glvis_('gl-mat4/rotateZ')\nvar lookAt = _glvis_('gl-mat4/lookAt')\nvar translate = _glvis_('gl-mat4/translate')\nvar scale = _glvis_('gl-mat4/scale')\nvar normalize = _glvis_('gl-vec3/normalize')\n\nvar DEFAULT_CENTER = [0,0,0]\n\nmodule.exports = createMatrixCameraController\n\nfunction MatrixCameraController(initialMatrix) {\n this._components = initialMatrix.slice()\n this._time = [0]\n this.prevMatrix = initialMatrix.slice()\n this.nextMatrix = initialMatrix.slice()\n this.computedMatrix = initialMatrix.slice()\n this.computedInverse = initialMatrix.slice()\n this.computedEye = [0,0,0]\n this.computedUp = [0,0,0]\n this.computedCenter = [0,0,0]\n this.computedRadius = [0]\n this._limits = [-Infinity, Infinity]\n}\n\nvar proto = MatrixCameraController.prototype\n\nproto.recalcMatrix = function(t) {\n var time = this._time\n var tidx = bsearch.le(time, t)\n var mat = this.computedMatrix\n if(tidx < 0) {\n return\n }\n var comps = this._components\n if(tidx === time.length-1) {\n var ptr = 16*tidx\n for(var i=0; i<16; ++i) {\n mat[i] = comps[ptr++]\n }\n } else {\n var dt = (time[tidx+1] - time[tidx])\n var ptr = 16*tidx\n var prev = this.prevMatrix\n var allEqual = true\n for(var i=0; i<16; ++i) {\n prev[i] = comps[ptr++]\n }\n var next = this.nextMatrix\n for(var i=0; i<16; ++i) {\n next[i] = comps[ptr++]\n allEqual = allEqual && (prev[i] === next[i])\n }\n if(dt < 1e-6 || allEqual) {\n for(var i=0; i<16; ++i) {\n mat[i] = prev[i]\n }\n } else {\n m4interp(mat, prev, next, (t - time[tidx])/dt)\n }\n }\n\n var up = this.computedUp\n up[0] = mat[1]\n up[1] = mat[5]\n up[2] = mat[9]\n normalize(up, up)\n\n var imat = this.computedInverse\n invert44(imat, mat)\n var eye = this.computedEye\n var w = imat[15]\n eye[0] = imat[12]/w\n eye[1] = imat[13]/w\n eye[2] = imat[14]/w\n\n var center = this.computedCenter\n var radius = Math.exp(this.computedRadius[0])\n for(var i=0; i<3; ++i) {\n center[i] = eye[i] - mat[2+4*i] * radius\n }\n}\n\nproto.idle = function(t) {\n if(t < this.lastT()) {\n return\n }\n var mc = this._components\n var ptr = mc.length-16\n for(var i=0; i<16; ++i) {\n mc.push(mc[ptr++])\n }\n this._time.push(t)\n}\n\nproto.flush = function(t) {\n var idx = bsearch.gt(this._time, t) - 2\n if(idx < 0) {\n return\n }\n this._time.splice(0, idx)\n this._components.splice(0, 16*idx)\n}\n\nproto.lastT = function() {\n return this._time[this._time.length-1]\n}\n\nproto.lookAt = function(t, eye, center, up) {\n this.recalcMatrix(t)\n eye = eye || this.computedEye\n center = center || DEFAULT_CENTER\n up = up || this.computedUp\n this.setMatrix(t, lookAt(this.computedMatrix, eye, center, up))\n var d2 = 0.0\n for(var i=0; i<3; ++i) {\n d2 += Math.pow(center[i] - eye[i], 2)\n }\n d2 = Math.log(Math.sqrt(d2))\n this.computedRadius[0] = d2\n}\n\nproto.rotate = function(t, yaw, pitch, roll) {\n this.recalcMatrix(t)\n var mat = this.computedInverse\n if(yaw) rotateY(mat, mat, yaw)\n if(pitch) rotateX(mat, mat, pitch)\n if(roll) rotateZ(mat, mat, roll)\n this.setMatrix(t, invert44(this.computedMatrix, mat))\n}\n\nvar tvec = [0,0,0]\n\nproto.pan = function(t, dx, dy, dz) {\n tvec[0] = -(dx || 0.0)\n tvec[1] = -(dy || 0.0)\n tvec[2] = -(dz || 0.0)\n this.recalcMatrix(t)\n var mat = this.computedInverse\n translate(mat, mat, tvec)\n this.setMatrix(t, invert44(mat, mat))\n}\n\nproto.translate = function(t, dx, dy, dz) {\n tvec[0] = dx || 0.0\n tvec[1] = dy || 0.0\n tvec[2] = dz || 0.0\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n translate(mat, mat, tvec)\n this.setMatrix(t, mat)\n}\n\nproto.setMatrix = function(t, mat) {\n if(t < this.lastT()) {\n return\n }\n this._time.push(t)\n for(var i=0; i<16; ++i) {\n this._components.push(mat[i])\n }\n}\n\nproto.setDistance = function(t, d) {\n this.computedRadius[0] = d\n}\n\nproto.setDistanceLimits = function(a,b) {\n var lim = this._limits\n lim[0] = a\n lim[1] = b\n}\n\nproto.getDistanceLimits = function(out) {\n var lim = this._limits\n if(out) {\n out[0] = lim[0]\n out[1] = lim[1]\n return out\n }\n return lim\n}\n\nfunction createMatrixCameraController(options) {\n options = options || {}\n var matrix = options.matrix || \n [1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,1]\n return new MatrixCameraController(matrix)\n}\n\n},{\"binary-search-bounds\":31,\"gl-mat4/invert\":98,\"gl-mat4/lookAt\":99,\"gl-mat4/rotateX\":104,\"gl-mat4/rotateY\":105,\"gl-mat4/rotateZ\":106,\"gl-mat4/scale\":107,\"gl-mat4/translate\":108,\"gl-vec3/normalize\":179,\"mat4-interpolate\":243}],246:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = monotoneConvexHull2D\n\nvar orient = _glvis_('robust-orientation')[3]\n\nfunction monotoneConvexHull2D(points) {\n var n = points.length\n\n if(n < 3) {\n var result = new Array(n)\n for(var i=0; i 1 && orient(\n points[lower[m-2]], \n points[lower[m-1]], \n p) <= 0) {\n m -= 1\n lower.pop()\n }\n lower.push(idx)\n\n //Insert into upper list\n m = upper.length\n while(m > 1 && orient(\n points[upper[m-2]], \n points[upper[m-1]], \n p) >= 0) {\n m -= 1\n upper.pop()\n }\n upper.push(idx)\n }\n\n //Merge lists together\n var result = new Array(upper.length + lower.length - 2)\n var ptr = 0\n for(var i=0, nl=lower.length; i0; --j) {\n result[ptr++] = upper[j]\n }\n\n //Return result\n return result\n}\n},{\"robust-orientation\":284}],247:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = mouseListen\n\nvar mouse = _glvis_('mouse-event')\n\nfunction mouseListen (element, callback) {\n if (!callback) {\n callback = element\n element = window\n }\n\n var buttonState = 0\n var x = 0\n var y = 0\n var mods = {\n shift: false,\n alt: false,\n control: false,\n meta: false\n }\n var attached = false\n\n function updateMods (ev) {\n var changed = false\n if ('altKey' in ev) {\n changed = changed || ev.altKey !== mods.alt\n mods.alt = !!ev.altKey\n }\n if ('shiftKey' in ev) {\n changed = changed || ev.shiftKey !== mods.shift\n mods.shift = !!ev.shiftKey\n }\n if ('ctrlKey' in ev) {\n changed = changed || ev.ctrlKey !== mods.control\n mods.control = !!ev.ctrlKey\n }\n if ('metaKey' in ev) {\n changed = changed || ev.metaKey !== mods.meta\n mods.meta = !!ev.metaKey\n }\n return changed\n }\n\n function handleEvent (nextButtons, ev) {\n var nextX = mouse.x(ev)\n var nextY = mouse.y(ev)\n if ('buttons' in ev) {\n nextButtons = ev.buttons | 0\n }\n if (nextButtons !== buttonState ||\n nextX !== x ||\n nextY !== y ||\n updateMods(ev)) {\n buttonState = nextButtons | 0\n x = nextX || 0\n y = nextY || 0\n callback && callback(buttonState, x, y, mods)\n }\n }\n\n function clearState (ev) {\n handleEvent(0, ev)\n }\n\n function handleBlur () {\n if (buttonState ||\n x ||\n y ||\n mods.shift ||\n mods.alt ||\n mods.meta ||\n mods.control) {\n x = y = 0\n buttonState = 0\n mods.shift = mods.alt = mods.control = mods.meta = false\n callback && callback(0, 0, 0, mods)\n }\n }\n\n function handleMods (ev) {\n if (updateMods(ev)) {\n callback && callback(buttonState, x, y, mods)\n }\n }\n\n function handleMouseMove (ev) {\n if (mouse.buttons(ev) === 0) {\n handleEvent(0, ev)\n } else {\n handleEvent(buttonState, ev)\n }\n }\n\n function handleMouseDown (ev) {\n handleEvent(buttonState | mouse.buttons(ev), ev)\n }\n\n function handleMouseUp (ev) {\n handleEvent(buttonState & ~mouse.buttons(ev), ev)\n }\n\n function attachListeners () {\n if (attached) {\n return\n }\n attached = true\n\n element.addEventListener('mousemove', handleMouseMove)\n\n element.addEventListener('mousedown', handleMouseDown)\n\n element.addEventListener('mouseup', handleMouseUp)\n\n element.addEventListener('mouseleave', clearState)\n element.addEventListener('mouseenter', clearState)\n element.addEventListener('mouseout', clearState)\n element.addEventListener('mouseover', clearState)\n\n element.addEventListener('blur', handleBlur)\n\n element.addEventListener('keyup', handleMods)\n element.addEventListener('keydown', handleMods)\n element.addEventListener('keypress', handleMods)\n\n if (element !== window) {\n window.addEventListener('blur', handleBlur)\n\n window.addEventListener('keyup', handleMods)\n window.addEventListener('keydown', handleMods)\n window.addEventListener('keypress', handleMods)\n }\n }\n\n function detachListeners () {\n if (!attached) {\n return\n }\n attached = false\n\n element.removeEventListener('mousemove', handleMouseMove)\n\n element.removeEventListener('mousedown', handleMouseDown)\n\n element.removeEventListener('mouseup', handleMouseUp)\n\n element.removeEventListener('mouseleave', clearState)\n element.removeEventListener('mouseenter', clearState)\n element.removeEventListener('mouseout', clearState)\n element.removeEventListener('mouseover', clearState)\n\n element.removeEventListener('blur', handleBlur)\n\n element.removeEventListener('keyup', handleMods)\n element.removeEventListener('keydown', handleMods)\n element.removeEventListener('keypress', handleMods)\n\n if (element !== window) {\n window.removeEventListener('blur', handleBlur)\n\n window.removeEventListener('keyup', handleMods)\n window.removeEventListener('keydown', handleMods)\n window.removeEventListener('keypress', handleMods)\n }\n }\n\n // Attach listeners\n attachListeners()\n\n var result = {\n element: element\n }\n\n Object.defineProperties(result, {\n enabled: {\n get: function () { return attached },\n set: function (f) {\n if (f) {\n attachListeners()\n } else {\n detachListeners()\n }\n },\n enumerable: true\n },\n buttons: {\n get: function () { return buttonState },\n enumerable: true\n },\n x: {\n get: function () { return x },\n enumerable: true\n },\n y: {\n get: function () { return y },\n enumerable: true\n },\n mods: {\n get: function () { return mods },\n enumerable: true\n }\n })\n\n return result\n}\n\n},{\"mouse-event\":249}],248:[function(_glvis_,module,exports){\nvar rootPosition = { left: 0, top: 0 }\n\nmodule.exports = mouseEventOffset\nfunction mouseEventOffset (ev, target, out) {\n target = target || ev.currentTarget || ev.srcElement\n if (!Array.isArray(out)) {\n out = [ 0, 0 ]\n }\n var cx = ev.clientX || 0\n var cy = ev.clientY || 0\n var rect = getBoundingClientOffset(target)\n out[0] = cx - rect.left\n out[1] = cy - rect.top\n return out\n}\n\nfunction getBoundingClientOffset (element) {\n if (element === window ||\n element === document ||\n element === document.body) {\n return rootPosition\n } else {\n return element.getBoundingClientRect()\n }\n}\n\n},{}],249:[function(_glvis_,module,exports){\n'use strict'\n\nfunction mouseButtons(ev) {\n if(typeof ev === 'object') {\n if('buttons' in ev) {\n return ev.buttons\n } else if('which' in ev) {\n var b = ev.which\n if(b === 2) {\n return 4\n } else if(b === 3) {\n return 2\n } else if(b > 0) {\n return 1<<(b-1)\n }\n } else if('button' in ev) {\n var b = ev.button\n if(b === 1) {\n return 4\n } else if(b === 2) {\n return 2\n } else if(b >= 0) {\n return 1< 0) {\n i1 = 1\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_0\n if (s0 > 0) {\n i0 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n }\n X += 1\n p0 += u0_0\n for (i0 = 2; i0 < s0; ++i0) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_0\n }\n }\n p0 += u0_1\n X = 0\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n for (i1 = 2; i1 < s1; ++i1) {\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_0\n if (s0 > 0) {\n i0 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_0\n for (i0 = 2; i0 < s0; ++i0) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_0\n }\n }\n if (i1 & 1) {\n X = 0\n }\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n p0 += u0_1\n }\n }\n freeUint32(V)\n freeUint32(P)\n }\n },\n \"false,1,0\": function anonymous(vertex, face, phase, mallocUint32, freeUint32) {\n return function extractContour1_0(a0, x0, x1, x2) {\n var s0 = a0.shape[0] | 0,\n s1 = a0.shape[1] | 0,\n d0 = a0.data,\n o0 = a0.offset | 0,\n t0_0 = a0.stride[0] | 0,\n t0_1 = a0.stride[1] | 0,\n p0 = o0,\n c0_0,\n d0_1 = -t0_0 | 0,\n c0_1 = 0,\n d0_2 = -t0_1 | 0,\n c0_2 = 0,\n d0_3 = (-t0_0 - t0_1) | 0,\n c0_3 = 0,\n u0_1 = t0_1 | 0,\n u0_0 = (t0_0 - t0_1 * s1) | 0,\n i0 = 0,\n i1 = 0,\n N = 0,\n Q = (2 * s1) | 0,\n P = mallocUint32(Q),\n V = mallocUint32(Q),\n X = 0,\n b0 = 0,\n e2 = -1 | 0,\n y2 = -1 | 0,\n b2 = 0,\n e1 = -s1 | 0,\n y1 = s1 | 0,\n b1 = 0,\n e3 = (-s1 - 1) | 0,\n y3 = (s1 - 1) | 0,\n b3 = 0,\n v0 = 0,\n T = 0\n for (i1 = 0; i1 < s1; ++i1) {\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_1\n }\n p0 += u0_0\n if (s0 > 0) {\n i0 = 1\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_1\n if (s1 > 0) {\n i1 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n }\n X += 1\n p0 += u0_1\n for (i1 = 2; i1 < s1; ++i1) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_1\n }\n }\n p0 += u0_0\n X = 0\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n for (i0 = 2; i0 < s0; ++i0) {\n P[X++] = phase(d0[p0], x0, x1, x2)\n p0 += u0_1\n if (s1 > 0) {\n i1 = 1\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_1\n for (i1 = 2; i1 < s1; ++i1) {\n c0_0 = d0[p0]\n b0 = P[X] = phase(c0_0, x0, x1, x2)\n b1 = P[X + e1]\n b2 = P[X + e2]\n b3 = P[X + e3]\n if (b0 !== b1 || b0 !== b2 || b0 !== b3) {\n c0_1 = d0[p0 + d0_1]\n c0_2 = d0[p0 + d0_2]\n c0_3 = d0[p0 + d0_3]\n vertex(i0, i1, c0_0, c0_1, c0_2, c0_3, b0, b1, b2, b3, x0, x1, x2)\n v0 = V[X] = N++\n if (b3 !== b2) {\n face(V[X + e2], v0, c0_2, c0_3, b2, b3, x0, x1, x2)\n }\n if (b3 !== b1) {\n face(V[X + e1], v0, c0_3, c0_1, b3, b1, x0, x1, x2)\n }\n }\n X += 1\n p0 += u0_1\n }\n }\n if (i0 & 1) {\n X = 0\n }\n T = e1\n e1 = y1\n y1 = T\n T = e2\n e2 = y2\n y2 = T\n T = e3\n e3 = y3\n y3 = T\n p0 += u0_0\n }\n }\n freeUint32(V)\n freeUint32(P)\n }\n },\n}\n\n//Generates the surface procedure\nfunction compileSurfaceProcedure(vertexFunc, faceFunc, phaseFunc, scalarArgs, order, typesig) {\n var key = [typesig, order].join(',')\n var proc = allFns[key]\n\n return proc(\n vertexFunc,\n faceFunc,\n phaseFunc,\n pool.mallocUint32,\n pool.freeUint32)\n}\n\nfunction createSurfaceExtractor(args) {\n function error(msg) {\n throw new Error(\"ndarray-extract-contour: \" + msg)\n }\n if(typeof args !== \"object\") {\n error(\"Must specify arguments\")\n }\n var order = args.order\n if(!Array.isArray(order)) {\n error(\"Must specify order\")\n }\n var arrays = args.arrayArguments||1\n if(arrays < 1) {\n error(\"Must have at least one array argument\")\n }\n var scalars = args.scalarArguments||0\n if(scalars < 0) {\n error(\"Scalar arg count must be > 0\")\n }\n if(typeof args.vertex !== \"function\") {\n error(\"Must specify vertex creation function\")\n }\n if(typeof args.cell !== \"function\") {\n error(\"Must specify cell creation function\")\n }\n if(typeof args.phase !== \"function\") {\n error(\"Must specify phase function\")\n }\n var getters = args.getters || []\n var typesig = new Array(arrays)\n for(var i=0; i= 0) {\n typesig[i] = true\n } else {\n typesig[i] = false\n }\n }\n return compileSurfaceProcedure(\n args.vertex,\n args.cell,\n args.phase,\n scalars,\n order,\n typesig)\n}\n},{\"typedarray-pool\":308}],252:[function(_glvis_,module,exports){\n'use strict'\n\nvar dup = _glvis_('dup')\n\nvar CACHED_CWiseOp = {\n zero: function(SS, a0, t0, p0) {\n var s0 = SS[0], t0p0 = t0[0]\n p0 |= 0\n var i0 = 0, d0s0 = t0p0\n for (i0 = 0; i0 < s0; ++i0) {\n a0[p0] = 0\n p0 += d0s0\n }\n },\n\n fdTemplate1: function(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], t0p0 = t0[0], t1p0 = t1[0], q0 = -1 * t0p0, q1 = t0p0\n p0 |= 0\n p1 |= 0\n var i0 = 0, d0s0 = t0p0, d1s0 = t1p0\n for (i0 = 0; i0 < s0; ++i0) {\n a1[p1] = 0.5 * (a0[p0 + q0] - a0[p0 + q1])\n p0 += d0s0\n p1 += d1s0\n }\n },\n\n fdTemplate2: function(SS, a0, t0, p0, a1, t1, p1, a2, t2, p2) {\n var s0 = SS[0], s1 = SS[1], t0p0 = t0[0], t0p1 = t0[1], t1p0 = t1[0], t1p1 = t1[1], t2p0 = t2[0], t2p1 = t2[1], q0 = -1 * t0p0, q1 = t0p0, q2 = -1 * t0p1, q3 = t0p1\n p0 |= 0\n p1 |= 0\n p2 |= 0\n var i0 = 0, i1 = 0, d0s0 = t0p1, d0s1 = (t0p0 - s1 * t0p1), d1s0 = t1p1, d1s1 = (t1p0 - s1 * t1p1), d2s0 = t2p1, d2s1 = (t2p0 - s1 * t2p1)\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s1; ++i0) {\n a1[p1] = 0.5 * (a0[p0 + q0] - a0[p0 + q1]); a2[p2] = 0.5 * (a0[p0 + q2] - a0[p0 + q3])\n p0 += d0s0\n p1 += d1s0\n p2 += d2s0\n }\n p0 += d0s1\n p1 += d1s1\n p2 += d2s1\n }\n }\n}\n\nvar CACHED_thunk = {\n cdiff: function(compile) {\n var CACHED = {}\n return function cdiff_cwise_thunk(array0, array1, array2) {\n var t0 = array0.dtype, r0 = array0.order, t1 = array1.dtype, r1 = array1.order, t2 = array2.dtype, r2 = array2.order, type = [t0, r0.join(), t1, r1.join(), t2, r2.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0, t1, r1, t2, r2]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, array1.data, array1.stride, array1.offset | 0, array2.data, array2.stride, array2.offset | 0)\n }\n },\n\n zero: function(compile) {\n var CACHED = {}\n return function zero_cwise_thunk(array0) {\n var t0 = array0.dtype, r0 = array0.order, type = [t0, r0.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0)\n }\n },\n\n fdTemplate1: function(compile) {\n var CACHED = {}\n return function fdTemplate1_cwise_thunk(array0, array1) {\n var t0 = array0.dtype, r0 = array0.order, t1 = array1.dtype, r1 = array1.order, type = [t0, r0.join(), t1, r1.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0, t1, r1]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, array1.data, array1.stride, array1.offset | 0)\n }\n },\n\n fdTemplate2: function(compile) {\n var CACHED = {}\n return function fdTemplate2_cwise_thunk(array0, array1, array4) {\n var t0 = array0.dtype, r0 = array0.order, t1 = array1.dtype, r1 = array1.order, t4 = array4.dtype, r4 = array4.order, type = [t0, r0.join(), t1, r1.join(), t4, r4.join()].join(), proc = CACHED[type]\n if (!proc) { CACHED[type] = proc = compile([t0, r0, t1, r1, t4, r4]) } return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, array1.data, array1.stride, array1.offset | 0, array4.data, array4.stride, array4.offset | 0)\n }\n },\n}\n\nfunction createThunk(proc) {\n var thunk = CACHED_thunk[proc.funcName]\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction compile(proc) {\n return CACHED_CWiseOp[proc.funcName]\n}\n\nfunction cwiseCompiler(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\n\nvar TEMPLATE_CACHE = {}\nvar GRADIENT_CACHE = {}\n\nvar EmptyProc = {\n body: \"\",\n args: [],\n thisVars: [],\n localVars: []\n}\n\nvar centralDiff = cwiseCompiler({\n funcName: 'cdiff'\n})\n\nvar zeroOut = cwiseCompiler({\n funcName: 'zero'\n})\n\nfunction generateTemplate(d) {\n if(d in TEMPLATE_CACHE) {\n return TEMPLATE_CACHE[d]\n }\n return TEMPLATE_CACHE[d] = cwiseCompiler({\n funcName: 'fdTemplate' + d\n })\n}\n\nfunction CACHED_link(diff, zero, grad1, grad2) {\n return function(dst, src) {\n var s = src.shape.slice()\n if (1 && s[0] > 2 && s[1] > 2) {\n grad2(\n src\n .pick(-1, -1)\n .lo(1, 1)\n .hi(s[0] - 2, s[1] - 2),\n dst\n .pick(-1, -1, 0)\n .lo(1, 1)\n .hi(s[0] - 2, s[1] - 2),\n dst\n .pick(-1, -1, 1)\n .lo(1, 1)\n .hi(s[0] - 2, s[1] - 2)\n )\n }\n if (1 && s[1] > 2) {\n grad1(\n src\n .pick(0, -1)\n .lo(1)\n .hi(s[1] - 2),\n dst\n .pick(0, -1, 1)\n .lo(1)\n .hi(s[1] - 2)\n )\n zero(\n dst\n .pick(0, -1, 0)\n .lo(1)\n .hi(s[1] - 2)\n )\n }\n if (1 && s[1] > 2) {\n grad1(\n src\n .pick(s[0] - 1, -1)\n .lo(1)\n .hi(s[1] - 2),\n dst\n .pick(s[0] - 1, -1, 1)\n .lo(1)\n .hi(s[1] - 2)\n )\n zero(\n dst\n .pick(s[0] - 1, -1, 0)\n .lo(1)\n .hi(s[1] - 2)\n )\n }\n if (1 && s[0] > 2) {\n grad1(\n src\n .pick(-1, 0)\n .lo(1)\n .hi(s[0] - 2),\n dst\n .pick(-1, 0, 0)\n .lo(1)\n .hi(s[0] - 2)\n )\n zero(\n dst\n .pick(-1, 0, 1)\n .lo(1)\n .hi(s[0] - 2)\n )\n }\n if (1 && s[0] > 2) {\n grad1(\n src\n .pick(-1, s[1] - 1)\n .lo(1)\n .hi(s[0] - 2),\n dst\n .pick(-1, s[1] - 1, 0)\n .lo(1)\n .hi(s[0] - 2)\n )\n zero(\n dst\n .pick(-1, s[1] - 1, 1)\n .lo(1)\n .hi(s[0] - 2)\n )\n }\n dst.set(0, 0, 0, 0)\n dst.set(0, 0, 1, 0)\n dst.set(s[0] - 1, 0, 0, 0)\n dst.set(s[0] - 1, 0, 1, 0)\n dst.set(0, s[1] - 1, 0, 0)\n dst.set(0, s[1] - 1, 1, 0)\n dst.set(s[0] - 1, s[1] - 1, 0, 0)\n dst.set(s[0] - 1, s[1] - 1, 1, 0)\n return dst\n }\n}\n\n\nfunction generateGradient(boundaryConditions) {\n var token = boundaryConditions.join()\n var proc = GRADIENT_CACHE[token]\n if(proc) {\n return proc\n }\n\n var d = boundaryConditions.length\n\n var linkArgs = [ centralDiff, zeroOut ]\n for(var i=1; i<=d; ++i) {\n linkArgs.push(generateTemplate(i))\n }\n\n var link = CACHED_link\n\n var proc = link.apply(void 0, linkArgs)\n\n GRADIENT_CACHE[token] = proc\n return proc\n}\n\nmodule.exports = function gradient(out, inp, bc) {\n if(!Array.isArray(bc)) {\n if(typeof bc === 'string') {\n bc = dup(inp.dimension, bc)\n } else {\n bc = dup(inp.dimension, 'clamp')\n }\n }\n if(inp.size === 0) {\n return out\n }\n if(inp.dimension === 0) {\n out.set(0)\n return out\n }\n var cached = generateGradient(bc)\n return cached(out, inp)\n}\n},{\"dup\":65}],253:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction interp1d(arr, x) {\n var ix = Math.floor(x)\n , fx = x - ix\n , s0 = 0 <= ix && ix < arr.shape[0]\n , s1 = 0 <= ix+1 && ix+1 < arr.shape[0]\n , w0 = s0 ? +arr.get(ix) : 0.0\n , w1 = s1 ? +arr.get(ix+1) : 0.0\n return (1.0-fx)*w0 + fx*w1\n}\n\nfunction interp2d(arr, x, y) {\n var ix = Math.floor(x)\n , fx = x - ix\n , s0 = 0 <= ix && ix < arr.shape[0]\n , s1 = 0 <= ix+1 && ix+1 < arr.shape[0]\n , iy = Math.floor(y)\n , fy = y - iy\n , t0 = 0 <= iy && iy < arr.shape[1]\n , t1 = 0 <= iy+1 && iy+1 < arr.shape[1]\n , w00 = s0&&t0 ? arr.get(ix ,iy ) : 0.0\n , w01 = s0&&t1 ? arr.get(ix ,iy+1) : 0.0\n , w10 = s1&&t0 ? arr.get(ix+1,iy ) : 0.0\n , w11 = s1&&t1 ? arr.get(ix+1,iy+1) : 0.0\n return (1.0-fy) * ((1.0-fx)*w00 + fx*w10) + fy * ((1.0-fx)*w01 + fx*w11)\n}\n\nfunction interp3d(arr, x, y, z) {\n var ix = Math.floor(x)\n , fx = x - ix\n , s0 = 0 <= ix && ix < arr.shape[0]\n , s1 = 0 <= ix+1 && ix+1 < arr.shape[0]\n , iy = Math.floor(y)\n , fy = y - iy\n , t0 = 0 <= iy && iy < arr.shape[1]\n , t1 = 0 <= iy+1 && iy+1 < arr.shape[1]\n , iz = Math.floor(z)\n , fz = z - iz\n , u0 = 0 <= iz && iz < arr.shape[2]\n , u1 = 0 <= iz+1 && iz+1 < arr.shape[2]\n , w000 = s0&&t0&&u0 ? arr.get(ix,iy,iz) : 0.0\n , w010 = s0&&t1&&u0 ? arr.get(ix,iy+1,iz) : 0.0\n , w100 = s1&&t0&&u0 ? arr.get(ix+1,iy,iz) : 0.0\n , w110 = s1&&t1&&u0 ? arr.get(ix+1,iy+1,iz) : 0.0\n , w001 = s0&&t0&&u1 ? arr.get(ix,iy,iz+1) : 0.0\n , w011 = s0&&t1&&u1 ? arr.get(ix,iy+1,iz+1) : 0.0\n , w101 = s1&&t0&&u1 ? arr.get(ix+1,iy,iz+1) : 0.0\n , w111 = s1&&t1&&u1 ? arr.get(ix+1,iy+1,iz+1) : 0.0\n return (1.0-fz) * ((1.0-fy) * ((1.0-fx)*w000 + fx*w100) + fy * ((1.0-fx)*w010 + fx*w110)) + fz * ((1.0-fy) * ((1.0-fx)*w001 + fx*w101) + fy * ((1.0-fx)*w011 + fx*w111))\n}\n\nfunction interpNd(arr) {\n var d = arr.shape.length|0\n , ix = new Array(d)\n , fx = new Array(d)\n , s0 = new Array(d)\n , s1 = new Array(d)\n , i, t\n for(i=0; i 0;) {\n if (j1 < 64) {\n s0 = j1\n j1 = 0\n } else {\n s0 = 64\n j1 -= 64\n }\n for (var j2 = SS[1] | 0; j2 > 0;) {\n if (j2 < 64) {\n s1 = j2\n j2 = 0\n } else {\n s1 = 64\n j2 -= 64\n }\n p0 = (offset0 + j1 * t0p0 + j2 * t0p1)\n p1 = (offset1 + j1 * t1p0 + j2 * t1p1)\n var i0 = 0, i1 = 0, i2 = 0, d0s0 = t0p2, d0s1 = (t0p0 - s2 * t0p2), d0s2 = (t0p1 - s0 * t0p0), d1s0 = t1p2, d1s1 = (t1p0 - s2 * t1p2), d1s2 = (t1p1 - s0 * t1p0)\n for (i2 = 0; i2 < s1; ++i2) {\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n a0[p0] = a1[p1] * Y0\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n p0 += d0s2\n p1 += d1s2\n }\n }\n }\n }\n },\n 'float32,1,0,float32,1,0': function () {\n return function assign_cwise_loop_1s0m2f32(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], t0p0 = t0[0], t0p1 = t0[1], t1p0 = t1[0], t1p1 = t1[1]\n p0 |= 0\n p1 |= 0\n var i0 = 0, i1 = 0, d0s0 = t0p1, d0s1 = (t0p0 - s1 * t0p1), d1s0 = t1p1, d1s1 = (t1p0 - s1 * t1p1)\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s1; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n }\n },\n 'float32,1,0,float32,0,1': function () {\n return function assign_cwise_loop_1s0m0f32(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], t0p0 = t0[0], t0p1 = t0[1], t1p0 = t1[0], t1p1 = t1[1]\n p0 |= 0\n p1 |= 0\n var offset0 = p0\n var offset1 = p1\n for (var j0 = SS[1] | 0; j0 > 0;) {\n if (j0 < 64) {\n s1 = j0\n j0 = 0\n } else {\n s1 = 64\n j0 -= 64\n }\n for (var j1 = SS[0] | 0; j1 > 0;) {\n if (j1 < 64) {\n s0 = j1\n j1 = 0\n } else {\n s0 = 64\n j1 -= 64\n }\n p0 = (offset0 + j0 * t0p1 + j1 * t0p0)\n p1 = (offset1 + j0 * t1p1 + j1 * t1p0)\n var i0 = 0, i1 = 0, d0s0 = t0p1, d0s1 = (t0p0 - s1 * t0p1), d1s0 = t1p1, d1s1 = (t1p0 - s1 * t1p1)\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s1; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n }\n }\n }\n },\n 'uint8,2,0,1,uint8,1,2,0': function () {\n return function assign_cwise_loop_2s0s1m0u8(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], s2 = SS[2], t0p0 = t0[0], t0p1 = t0[1], t0p2 = t0[2], t1p0 = t1[0], t1p1 = t1[1], t1p2 = t1[2]\n p0 |= 0\n p1 |= 0\n var offset0 = p0\n var offset1 = p1\n for (var j0 = SS[2] | 0; j0 > 0;) {\n if (j0 < 64) {\n s2 = j0\n j0 = 0\n } else {\n s2 = 64\n j0 -= 64\n }\n for (var j1 = SS[0] | 0; j1 > 0;) {\n if (j1 < 64) {\n s0 = j1\n j1 = 0\n } else {\n s0 = 64\n j1 -= 64\n }\n for (var j2 = SS[1] | 0; j2 > 0;) {\n if (j2 < 64) {\n s1 = j2\n j2 = 0\n } else {\n s1 = 64\n j2 -= 64\n }\n p0 = (offset0 + j0 * t0p2 + j1 * t0p0 + j2 * t0p1)\n p1 = (offset1 + j0 * t1p2 + j1 * t1p0 + j2 * t1p1)\n var i0 = 0, i1 = 0, i2 = 0, d0s0 = t0p2, d0s1 = (t0p0 - s2 * t0p2), d0s2 = (t0p1 - s0 * t0p0), d1s0 = t1p2, d1s1 = (t1p0 - s2 * t1p2), d1s2 = (t1p1 - s0 * t1p0)\n for (i2 = 0; i2 < s1; ++i2) {\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n p0 += d0s2\n p1 += d1s2\n }\n }\n }\n }\n }\n },\n 'uint8,2,0,1,array,2,0,1': function () {\n return function assign_cwise_loop_2s0s1m3u8a(SS, a0, t0, p0, a1, t1, p1) {\n var s0 = SS[0], s1 = SS[1], s2 = SS[2], t0p0 = t0[0], t0p1 = t0[1], t0p2 = t0[2], t1p0 = t1[0], t1p1 = t1[1], t1p2 = t1[2]\n p0 |= 0\n p1 |= 0\n var i0 = 0, i1 = 0, i2 = 0, d0s0 = t0p2, d0s1 = (t0p0 - s2 * t0p2), d0s2 = (t0p1 - s0 * t0p0), d1s0 = t1p2, d1s1 = (t1p0 - s2 * t1p2), d1s2 = (t1p1 - s0 * t1p0)\n for (i2 = 0; i2 < s1; ++i2) {\n for (i1 = 0; i1 < s0; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n a0[p0] = a1[p1]\n p0 += d0s0\n p1 += d1s0\n }\n p0 += d0s1\n p1 += d1s1\n }\n p0 += d0s2\n p1 += d1s2\n }\n }\n },\n}\n\n//Generates a cwise operator\nfunction generateCWiseOp(proc, typesig) {\n var key = typesig.join(',')\n var f = CACHED_CWiseOp[key]\n return f()\n}\n\nvar compile = generateCWiseOp\n\nvar CACHED_thunk = {\n mul: function (compile) {\n var CACHED = {}\n return function mul_cwise_thunk(array0, array1, array2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n t2 = array2.dtype,\n r2 = array2.order,\n type = [t0, r0.join(), t1, r1.join(), t2, r2.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1, t2, r2])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n array2.data,\n array2.stride,\n array2.offset | 0\n )\n }\n },\n muls: function (compile) {\n var CACHED = {}\n return function muls_cwise_thunk(array0, array1, scalar2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n type = [t0, r0.join(), t1, r1.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n scalar2\n )\n }\n },\n mulseq: function (compile) {\n var CACHED = {}\n return function mulseq_cwise_thunk(array0, scalar1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0])\n }\n return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, scalar1)\n }\n },\n div: function (compile) {\n var CACHED = {}\n return function div_cwise_thunk(array0, array1, array2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n t2 = array2.dtype,\n r2 = array2.order,\n type = [t0, r0.join(), t1, r1.join(), t2, r2.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1, t2, r2])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n array2.data,\n array2.stride,\n array2.offset | 0\n )\n }\n },\n divs: function (compile) {\n var CACHED = {}\n return function divs_cwise_thunk(array0, array1, scalar2) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n type = [t0, r0.join(), t1, r1.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0,\n scalar2\n )\n }\n },\n divseq: function (compile) {\n var CACHED = {}\n return function divseq_cwise_thunk(array0, scalar1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0])\n }\n return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, scalar1)\n }\n },\n assign: function (compile) {\n var CACHED = {}\n return function assign_cwise_thunk(array0, array1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n t1 = array1.dtype,\n r1 = array1.order,\n type = [t0, r0.join(), t1, r1.join()].join(),\n proc = CACHED[type]\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0, t1, r1])\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n array1.data,\n array1.stride,\n array1.offset | 0\n )\n }\n },\n}\n\nfunction createThunk(proc) {\n var thunk = CACHED_thunk[proc.funcName]\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction makeOp(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\nvar assign_ops = {\n mul: \"*\",\n div: \"/\",\n}\n;(function(){\n for(var id in assign_ops) {\n exports[id] = makeOp({\n funcName: id\n })\n exports[id+\"s\"] = makeOp({\n funcName: id+\"s\"\n })\n exports[id+\"seq\"] = makeOp({\n funcName: id+\"seq\"\n })\n }\n})();\n\nexports.assign = makeOp({\n funcName: \"assign\" })\n\n},{}],255:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar ndarray = _glvis_(\"ndarray\")\nvar do_convert = _glvis_(\"./doConvert.js\")\n\nmodule.exports = function convert(arr, result) {\n var shape = [], c = arr, sz = 1\n while(Array.isArray(c)) {\n shape.push(c.length)\n sz *= c.length\n c = c[0]\n }\n if(shape.length === 0) {\n return ndarray()\n }\n if(!result) {\n result = ndarray(new Float64Array(sz), shape)\n }\n do_convert(result, arr)\n return result\n}\n\n},{\"./doConvert.js\":256,\"ndarray\":259}],256:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction CwiseOp() {\n return function (SS, a0, t0, p0, Y0) {\n var s0 = SS[0],\n s1 = SS[1],\n s2 = SS[2],\n t0p0 = t0[0],\n t0p1 = t0[1],\n t0p2 = t0[2],\n index = [0, 0, 0];\n p0 |= 0;\n var i0 = 0,\n i1 = 0,\n i2 = 0,\n d0s0 = t0p2,\n d0s1 = t0p1 - s2 * t0p2,\n d0s2 = t0p0 - s1 * t0p1;\n for (i2 = 0; i2 < s0; ++i2) {\n for (i1 = 0; i1 < s1; ++i1) {\n for (i0 = 0; i0 < s2; ++i0) {\n {\n var _inline_1_v = Y0,\n _inline_1_i;\n for (\n _inline_1_i = 0;\n _inline_1_i < index.length - 1;\n ++_inline_1_i\n ) {\n _inline_1_v = _inline_1_v[index[_inline_1_i]];\n }\n a0[p0] = _inline_1_v[index[index.length - 1]];\n }\n p0 += d0s0;\n ++index[2];\n }\n p0 += d0s1;\n index[2] -= s2;\n ++index[1];\n }\n p0 += d0s2;\n index[1] -= s1;\n ++index[0];\n }\n };\n}\n\n//Generates a cwise operator\nfunction generateCWiseOp() {\n return CwiseOp()\n}\n\nvar compile = generateCWiseOp\n\nfunction thunk(compile) {\n var CACHED = {};\n return function convert_cwise_thunk(array0, scalar1) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type];\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0]);\n }\n return proc(\n array0.shape.slice(0),\n array0.data,\n array0.stride,\n array0.offset | 0,\n scalar1\n );\n };\n}\n\nfunction createThunk(proc) {\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction compileCwise(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\nmodule.exports = compileCwise({\n funcName: \"convert\"\n});\n\n},{}],257:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar pool = _glvis_(\"typedarray-pool\")\n\nfunction getMallocFree(dtype) {\n switch(dtype) {\n case \"uint32\":\n return [pool.mallocUint32, pool.freeUint32]\n default:\n return null\n }\n}\n\nvar CACHED_insertionSort = {\n \"uint32,1,0\": function (malloc, free) {\n return function ndarrayInsertionSort1d0uint32(left, right, data, offset, s0, s1, n0, n1, d1, e1, f1) {\n var i,\n j,\n cptr,\n ptr = left * s0 + offset,\n i1,\n scratch = malloc(n1),\n dptr,\n sptr,\n a,\n b\n for (i = left + 1; i <= right; ++i) {\n j = i\n ptr += s0\n cptr = ptr\n dptr = 0\n sptr = ptr\n for (i1 = 0; i1 < n1; ++i1) {\n scratch[dptr++] = data[sptr]\n sptr += d1\n }\n __g: while (j-- > left) {\n dptr = 0\n sptr = cptr - s0\n __l: for (i1 = 0; i1 < n1; ++i1) {\n a = data[sptr]\n b = scratch[dptr]\n if (a < b) {\n break __g\n }\n if (a > b) {\n break __l\n }\n sptr += e1\n dptr += f1\n }\n dptr = cptr\n sptr = cptr - s0\n for (i1 = 0; i1 < n1; ++i1) {\n data[dptr] = data[sptr]\n dptr += d1\n sptr += d1\n }\n cptr -= s0\n }\n dptr = cptr\n sptr = 0\n for (i1 = 0; i1 < n1; ++i1) {\n data[dptr] = scratch[sptr++]\n dptr += d1\n }\n }\n free(scratch)\n }\n },\n}\n\nfunction createInsertionSort(order, dtype) {\n var allocator = getMallocFree(dtype)\n var key = [dtype, order].join(',')\n var result = CACHED_insertionSort[key]\n\n if(allocator) {\n return result(allocator[0], allocator[1])\n } else {\n return result()\n }\n}\n\nvar CACHED_quickSort = {\n \"uint32,1,0\": function (insertionSort, malloc, free) {\n return function ndarrayQuickSort1d0uint32(left, right, data, offset, s0, s1, n0, n1, d1, e1, f1) {\n var sixth = ((right - left + 1) / 6) | 0,\n index1 = left + sixth,\n index5 = right - sixth,\n index3 = (left + right) >> 1,\n index2 = index3 - sixth,\n index4 = index3 + sixth,\n el1 = index1,\n el2 = index2,\n el3 = index3,\n el4 = index4,\n el5 = index5,\n less = left + 1,\n great = right - 1,\n pivots_are_equal = true,\n tmp,\n tmp0,\n x,\n y,\n z,\n k,\n ptr0,\n ptr1,\n ptr2,\n comp_pivot1 = 0,\n comp_pivot2 = 0,\n comp = 0,\n i1,\n b_ptr0,\n b_ptr1,\n b_ptr2,\n b_ptr3,\n b_ptr4,\n b_ptr5,\n b_ptr6,\n b_ptr7,\n ptr3,\n ptr4,\n ptr5,\n ptr6,\n ptr7,\n pivot_ptr,\n ptr_shift,\n elementSize = n1,\n pivot1 = malloc(elementSize),\n pivot2 = malloc(elementSize)\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el2\n ptr_shift = offset\n __l1: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el1\n el1 = el2\n el2 = tmp0\n break __l1\n }\n if (comp < 0) {\n break __l1\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el4\n b_ptr1 = s0 * el5\n ptr_shift = offset\n __l2: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el4\n el4 = el5\n el5 = tmp0\n break __l2\n }\n if (comp < 0) {\n break __l2\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el3\n ptr_shift = offset\n __l3: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el1\n el1 = el3\n el3 = tmp0\n break __l3\n }\n if (comp < 0) {\n break __l3\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el2\n b_ptr1 = s0 * el3\n ptr_shift = offset\n __l4: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el2\n el2 = el3\n el3 = tmp0\n break __l4\n }\n if (comp < 0) {\n break __l4\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el4\n ptr_shift = offset\n __l5: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el1\n el1 = el4\n el4 = tmp0\n break __l5\n }\n if (comp < 0) {\n break __l5\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el3\n b_ptr1 = s0 * el4\n ptr_shift = offset\n __l6: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el3\n el3 = el4\n el4 = tmp0\n break __l6\n }\n if (comp < 0) {\n break __l6\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el2\n b_ptr1 = s0 * el5\n ptr_shift = offset\n __l7: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el2\n el2 = el5\n el5 = tmp0\n break __l7\n }\n if (comp < 0) {\n break __l7\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el2\n b_ptr1 = s0 * el3\n ptr_shift = offset\n __l8: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el2\n el2 = el3\n el3 = tmp0\n break __l8\n }\n if (comp < 0) {\n break __l8\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el4\n b_ptr1 = s0 * el5\n ptr_shift = offset\n __l9: for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n comp = data[ptr0] - data[ptr1]\n if (comp > 0) {\n tmp0 = el4\n el4 = el5\n el5 = tmp0\n break __l9\n }\n if (comp < 0) {\n break __l9\n }\n ptr_shift += e1\n }\n b_ptr0 = s0 * el1\n b_ptr1 = s0 * el2\n b_ptr2 = s0 * el3\n b_ptr3 = s0 * el4\n b_ptr4 = s0 * el5\n b_ptr5 = s0 * index1\n b_ptr6 = s0 * index3\n b_ptr7 = s0 * index5\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n ptr3 = b_ptr3 + ptr_shift\n ptr4 = b_ptr4 + ptr_shift\n ptr5 = b_ptr5 + ptr_shift\n ptr6 = b_ptr6 + ptr_shift\n ptr7 = b_ptr7 + ptr_shift\n pivot1[pivot_ptr] = data[ptr1]\n pivot2[pivot_ptr] = data[ptr3]\n pivots_are_equal = pivots_are_equal && pivot1[pivot_ptr] === pivot2[pivot_ptr]\n x = data[ptr0]\n y = data[ptr2]\n z = data[ptr4]\n data[ptr5] = x\n data[ptr6] = y\n data[ptr7] = z\n ++pivot_ptr\n ptr_shift += d1\n }\n b_ptr0 = s0 * index2\n b_ptr1 = s0 * left\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n ptr_shift += d1\n }\n b_ptr0 = s0 * index4\n b_ptr1 = s0 * right\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n ptr_shift += d1\n }\n if (pivots_are_equal) {\n for (k = less; k <= great; ++k) {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l10: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l10\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp === 0) {\n continue\n }\n if (comp < 0) {\n if (k !== less) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n }\n ++less\n } else {\n while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l11: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l11\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp > 0) {\n great--\n } else if (comp < 0) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n b_ptr2 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = data[ptr2]\n data[ptr2] = tmp\n ptr_shift += d1\n }\n ++less\n --great\n break\n } else {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n --great\n break\n }\n }\n }\n }\n } else {\n for (k = less; k <= great; ++k) {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l12: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot1 = data[ptr0] - pivot1[pivot_ptr]\n if (comp_pivot1 !== 0) {\n break __l12\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot1 < 0) {\n if (k !== less) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n }\n ++less\n } else {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l13: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot2 = data[ptr0] - pivot2[pivot_ptr]\n if (comp_pivot2 !== 0) {\n break __l13\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot2 > 0) {\n while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l14: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot2[pivot_ptr]\n if (comp !== 0) {\n break __l14\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp > 0) {\n if (--great < k) {\n break\n }\n continue\n } else {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l15: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l15\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp < 0) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n b_ptr2 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = data[ptr2]\n data[ptr2] = tmp\n ptr_shift += d1\n }\n ++less\n --great\n } else {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n --great\n }\n break\n }\n }\n }\n }\n }\n }\n b_ptr0 = s0 * left\n b_ptr1 = s0 * (less - 1)\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n data[ptr1] = pivot1[pivot_ptr]\n ++pivot_ptr\n ptr_shift += d1\n }\n b_ptr0 = s0 * right\n b_ptr1 = s0 * (great + 1)\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n data[ptr0] = data[ptr1]\n data[ptr1] = pivot2[pivot_ptr]\n ++pivot_ptr\n ptr_shift += d1\n }\n if (less - 2 - left <= 32) {\n insertionSort(left, less - 2, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n ndarrayQuickSort1d0uint32(left, less - 2, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n if (right - (great + 2) <= 32) {\n insertionSort(great + 2, right, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n ndarrayQuickSort1d0uint32(great + 2, right, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n if (pivots_are_equal) {\n free(pivot1)\n free(pivot2)\n return\n }\n if (less < index1 && great > index5) {\n __l16: while (true) {\n ptr0 = offset + less * s0\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n if (data[ptr0] !== pivot1[pivot_ptr]) {\n break __l16\n }\n ++pivot_ptr\n ptr0 += d1\n }\n ++less\n }\n __l17: while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n if (data[ptr0] !== pivot2[pivot_ptr]) {\n break __l17\n }\n ++pivot_ptr\n ptr0 += d1\n }\n --great\n }\n for (k = less; k <= great; ++k) {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l18: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot1 = data[ptr0] - pivot1[pivot_ptr]\n if (comp_pivot1 !== 0) {\n break __l18\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot1 === 0) {\n if (k !== less) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n }\n ++less\n } else {\n ptr0 = offset + k * s0\n pivot_ptr = 0\n __l19: for (i1 = 0; i1 < n1; ++i1) {\n comp_pivot2 = data[ptr0] - pivot2[pivot_ptr]\n if (comp_pivot2 !== 0) {\n break __l19\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp_pivot2 === 0) {\n while (true) {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l20: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot2[pivot_ptr]\n if (comp !== 0) {\n break __l20\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp === 0) {\n if (--great < k) {\n break\n }\n continue\n } else {\n ptr0 = offset + great * s0\n pivot_ptr = 0\n __l21: for (i1 = 0; i1 < n1; ++i1) {\n comp = data[ptr0] - pivot1[pivot_ptr]\n if (comp !== 0) {\n break __l21\n }\n pivot_ptr += f1\n ptr0 += e1\n }\n if (comp < 0) {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * less\n b_ptr2 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n ptr2 = b_ptr2 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = data[ptr2]\n data[ptr2] = tmp\n ptr_shift += d1\n }\n ++less\n --great\n } else {\n b_ptr0 = s0 * k\n b_ptr1 = s0 * great\n ptr_shift = offset\n for (i1 = 0; i1 < n1; ++i1) {\n ptr0 = b_ptr0 + ptr_shift\n ptr1 = b_ptr1 + ptr_shift\n tmp = data[ptr0]\n data[ptr0] = data[ptr1]\n data[ptr1] = tmp\n ptr_shift += d1\n }\n --great\n }\n break\n }\n }\n }\n }\n }\n }\n free(pivot1)\n free(pivot2)\n if (great - less <= 32) {\n insertionSort(less, great, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n ndarrayQuickSort1d0uint32(less, great, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n }\n },\n}\n\nfunction createQuickSort(order, dtype, insertionSort) {\n var allocator = getMallocFree(dtype)\n var key = [dtype, order].join(',')\n var result = CACHED_quickSort[key]\n\n if(order.length > 1 && allocator) {\n return result(insertionSort, allocator[0], allocator[1])\n } else {\n return result(insertionSort)\n }\n}\n\nvar CACHED_sort = {\n \"uint32,1,0\": function (insertionSort, quickSort) {\n return function (array) {\n var data = array.data,\n offset = array.offset | 0,\n shape = array.shape,\n stride = array.stride,\n s0 = stride[0] | 0,\n n0 = shape[0] | 0,\n s1 = stride[1] | 0,\n n1 = shape[1] | 0,\n d1 = s1,\n e1 = s1,\n f1 = 1\n if (n0 <= 32) {\n insertionSort(0, n0 - 1, data, offset, s0, s1, n0, n1, d1, e1, f1)\n } else {\n quickSort(0, n0 - 1, data, offset, s0, s1, n0, n1, d1, e1, f1)\n }\n }\n },\n}\n\nfunction compileSort(order, dtype) {\n var key = [dtype, order].join(',')\n var result = CACHED_sort[key]\n\n var insertionSort = createInsertionSort(order, dtype)\n var quickSort = createQuickSort(order, dtype, insertionSort)\n return result(insertionSort, quickSort)\n}\n\nmodule.exports = compileSort\n},{\"typedarray-pool\":308}],258:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar compile = _glvis_(\"./lib/compile_sort.js\")\nvar CACHE = {}\n\nfunction sort(array) {\n var order = array.order\n var dtype = array.dtype\n var typeSig = [order, dtype ]\n var typeName = typeSig.join(\":\")\n var compiled = CACHE[typeName]\n if(!compiled) {\n CACHE[typeName] = compiled = compile(order, dtype)\n }\n compiled(array)\n return array\n}\n\nmodule.exports = sort\n},{\"./lib/compile_sort.js\":257}],259:[function(_glvis_,module,exports){\nvar isBuffer = _glvis_(\"is-buffer\")\n\nvar hasTypedArrays = ((typeof Float64Array) !== \"undefined\")\n\nfunction compare1st(a, b) {\n return a[0] - b[0]\n}\n\nfunction order() {\n var stride = this.stride\n var terms = new Array(stride.length)\n var i\n for(i=0; i= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n return new View(this.data, a0, c0, b)\n }\n proto.step = function step(i0) {\n var a0 = this.shape[0],\n b0 = this.stride[0],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n return new View(this.data, a0, b0, c)\n }\n proto.transpose = function transpose(i0) {\n i0 = i0 === undefined ? 0 : i0 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], b[i0], this.offset)\n }\n proto.pick = function pick(i0) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], stride[0], offset)\n }\n },\n 2: function (dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, c0, c1, d) {\n this.data = a\n this.shape = [b0, b1]\n this.stride = [c0, c1]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 2\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1]\n },\n })\n Object.defineProperty(proto, \"order\", {\n get: function order() {\n return Math.abs(this.stride[0]) > Math.abs(this.stride[1]) ? [1, 0] : [0, 1]\n },\n })\n proto.set = function set(i0, i1, v) {\n return dtype === \"generic\"\n ? this.data.set(this.offset + this.stride[0] * i0 + this.stride[1] * i1, v)\n : (this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1] = v)\n }\n proto.get = function get(i0, i1) {\n return dtype === \"generic\"\n ? this.data.get(this.offset + this.stride[0] * i0 + this.stride[1] * i1)\n : this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1]\n }\n proto.index = function index(i0, i1) {\n return this.offset + this.stride[0] * i0 + this.stride[1] * i1\n }\n proto.hi = function hi(i0, i1) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n this.stride[0],\n this.stride[1],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n c0 = this.stride[0],\n c1 = this.stride[1]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n return new View(this.data, a0, a1, c0, c1, b)\n }\n proto.step = function step(i0, i1) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n b0 = this.stride[0],\n b1 = this.stride[1],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n return new View(this.data, a0, a1, b0, b1, c)\n }\n proto.transpose = function transpose(i0, i1) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], b[i0], b[i1], this.offset)\n }\n proto.pick = function pick(i0, i1) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], shape[1], stride[0], stride[1], offset)\n }\n },\n 3: function (dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, b2, c0, c1, c2, d) {\n this.data = a\n this.shape = [b0, b1, b2]\n this.stride = [c0, c1, c2]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 3\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1] * this.shape[2]\n },\n })\n Object.defineProperty(proto, \"order\", {\n get: function order() {\n var s0 = Math.abs(this.stride[0]),\n s1 = Math.abs(this.stride[1]),\n s2 = Math.abs(this.stride[2])\n if (s0 > s1) {\n if (s1 > s2) {\n return [2, 1, 0]\n } else if (s0 > s2) {\n return [1, 2, 0]\n } else {\n return [1, 0, 2]\n }\n } else if (s0 > s2) {\n return [2, 0, 1]\n } else if (s2 > s1) {\n return [0, 1, 2]\n } else {\n return [0, 2, 1]\n }\n },\n })\n proto.set = function set(i0, i1, i2, v) {\n return dtype === \"generic\"\n ? this.data.set(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2, v)\n : (this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2] = v)\n }\n proto.get = function get(i0, i1, i2) {\n return dtype === \"generic\"\n ? this.data.get(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2)\n : this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2]\n }\n proto.index = function index(i0, i1, i2) {\n return this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2\n }\n proto.hi = function hi(i0, i1, i2) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n typeof i2 !== \"number\" || i2 < 0 ? this.shape[2] : i2 | 0,\n this.stride[0],\n this.stride[1],\n this.stride[2],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1, i2) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n c0 = this.stride[0],\n c1 = this.stride[1],\n c2 = this.stride[2]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n d = i2 | 0\n b += c2 * d\n a2 -= d\n }\n return new View(this.data, a0, a1, a2, c0, c1, c2, b)\n }\n proto.step = function step(i0, i1, i2) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n b0 = this.stride[0],\n b1 = this.stride[1],\n b2 = this.stride[2],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n if (typeof i2 === \"number\") {\n d = i2 | 0\n if (d < 0) {\n c += b2 * (a2 - 1)\n a2 = ceil(-a2 / d)\n } else {\n a2 = ceil(a2 / d)\n }\n b2 *= d\n }\n return new View(this.data, a0, a1, a2, b0, b1, b2, c)\n }\n proto.transpose = function transpose(i0, i1, i2) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n i2 = i2 === undefined ? 2 : i2 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], a[i2], b[i0], b[i1], b[i2], this.offset)\n }\n proto.pick = function pick(i0, i1, i2) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n c = (c + this.stride[2] * i2) | 0\n } else {\n a.push(this.shape[2])\n b.push(this.stride[2])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], shape[1], shape[2], stride[0], stride[1], stride[2], offset)\n }\n },\n 4: function (dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, b2, b3, c0, c1, c2, c3, d) {\n this.data = a\n this.shape = [b0, b1, b2, b3]\n this.stride = [c0, c1, c2, c3]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 4\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1] * this.shape[2] * this.shape[3]\n },\n })\n Object.defineProperty(proto, \"order\", { get: ORDER })\n proto.set = function set(i0, i1, i2, i3, v) {\n return dtype === \"generic\"\n ? this.data.set(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3, v)\n : (this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3] = v)\n }\n proto.get = function get(i0, i1, i2, i3) {\n return dtype === \"generic\"\n ? this.data.get(this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3)\n : this.data[this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3]\n }\n proto.index = function index(i0, i1, i2, i3) {\n return this.offset + this.stride[0] * i0 + this.stride[1] * i1 + this.stride[2] * i2 + this.stride[3] * i3\n }\n proto.hi = function hi(i0, i1, i2, i3) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n typeof i2 !== \"number\" || i2 < 0 ? this.shape[2] : i2 | 0,\n typeof i3 !== \"number\" || i3 < 0 ? this.shape[3] : i3 | 0,\n this.stride[0],\n this.stride[1],\n this.stride[2],\n this.stride[3],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1, i2, i3) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n c0 = this.stride[0],\n c1 = this.stride[1],\n c2 = this.stride[2],\n c3 = this.stride[3]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n d = i2 | 0\n b += c2 * d\n a2 -= d\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n d = i3 | 0\n b += c3 * d\n a3 -= d\n }\n return new View(this.data, a0, a1, a2, a3, c0, c1, c2, c3, b)\n }\n proto.step = function step(i0, i1, i2, i3) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n b0 = this.stride[0],\n b1 = this.stride[1],\n b2 = this.stride[2],\n b3 = this.stride[3],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n if (typeof i2 === \"number\") {\n d = i2 | 0\n if (d < 0) {\n c += b2 * (a2 - 1)\n a2 = ceil(-a2 / d)\n } else {\n a2 = ceil(a2 / d)\n }\n b2 *= d\n }\n if (typeof i3 === \"number\") {\n d = i3 | 0\n if (d < 0) {\n c += b3 * (a3 - 1)\n a3 = ceil(-a3 / d)\n } else {\n a3 = ceil(a3 / d)\n }\n b3 *= d\n }\n return new View(this.data, a0, a1, a2, a3, b0, b1, b2, b3, c)\n }\n proto.transpose = function transpose(i0, i1, i2, i3) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n i2 = i2 === undefined ? 2 : i2 | 0\n i3 = i3 === undefined ? 3 : i3 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], a[i2], a[i3], b[i0], b[i1], b[i2], b[i3], this.offset)\n }\n proto.pick = function pick(i0, i1, i2, i3) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n c = (c + this.stride[2] * i2) | 0\n } else {\n a.push(this.shape[2])\n b.push(this.stride[2])\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n c = (c + this.stride[3] * i3) | 0\n } else {\n a.push(this.shape[3])\n b.push(this.stride[3])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(data, shape[0], shape[1], shape[2], shape[3], stride[0], stride[1], stride[2], stride[3], offset)\n }\n },\n 5: function anonymous(dtype, CTOR_LIST, ORDER) {\n function View(a, b0, b1, b2, b3, b4, c0, c1, c2, c3, c4, d) {\n this.data = a\n this.shape = [b0, b1, b2, b3, b4]\n this.stride = [c0, c1, c2, c3, c4]\n this.offset = d | 0\n }\n var proto = View.prototype\n proto.dtype = dtype\n proto.dimension = 5\n Object.defineProperty(proto, \"size\", {\n get: function size() {\n return this.shape[0] * this.shape[1] * this.shape[2] * this.shape[3] * this.shape[4]\n },\n })\n Object.defineProperty(proto, \"order\", { get: ORDER })\n proto.set = function set(i0, i1, i2, i3, i4, v) {\n return dtype === \"generic\"\n ? this.data.set(\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4,\n v\n )\n : (this.data[\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n ] = v)\n }\n proto.get = function get(i0, i1, i2, i3, i4) {\n return dtype === \"generic\"\n ? this.data.get(\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n )\n : this.data[\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n ]\n }\n proto.index = function index(i0, i1, i2, i3, i4) {\n return (\n this.offset +\n this.stride[0] * i0 +\n this.stride[1] * i1 +\n this.stride[2] * i2 +\n this.stride[3] * i3 +\n this.stride[4] * i4\n )\n }\n proto.hi = function hi(i0, i1, i2, i3, i4) {\n return new View(\n this.data,\n typeof i0 !== \"number\" || i0 < 0 ? this.shape[0] : i0 | 0,\n typeof i1 !== \"number\" || i1 < 0 ? this.shape[1] : i1 | 0,\n typeof i2 !== \"number\" || i2 < 0 ? this.shape[2] : i2 | 0,\n typeof i3 !== \"number\" || i3 < 0 ? this.shape[3] : i3 | 0,\n typeof i4 !== \"number\" || i4 < 0 ? this.shape[4] : i4 | 0,\n this.stride[0],\n this.stride[1],\n this.stride[2],\n this.stride[3],\n this.stride[4],\n this.offset\n )\n }\n proto.lo = function lo(i0, i1, i2, i3, i4) {\n var b = this.offset,\n d = 0,\n a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n a4 = this.shape[4],\n c0 = this.stride[0],\n c1 = this.stride[1],\n c2 = this.stride[2],\n c3 = this.stride[3],\n c4 = this.stride[4]\n if (typeof i0 === \"number\" && i0 >= 0) {\n d = i0 | 0\n b += c0 * d\n a0 -= d\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n d = i1 | 0\n b += c1 * d\n a1 -= d\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n d = i2 | 0\n b += c2 * d\n a2 -= d\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n d = i3 | 0\n b += c3 * d\n a3 -= d\n }\n if (typeof i4 === \"number\" && i4 >= 0) {\n d = i4 | 0\n b += c4 * d\n a4 -= d\n }\n return new View(this.data, a0, a1, a2, a3, a4, c0, c1, c2, c3, c4, b)\n }\n proto.step = function step(i0, i1, i2, i3, i4) {\n var a0 = this.shape[0],\n a1 = this.shape[1],\n a2 = this.shape[2],\n a3 = this.shape[3],\n a4 = this.shape[4],\n b0 = this.stride[0],\n b1 = this.stride[1],\n b2 = this.stride[2],\n b3 = this.stride[3],\n b4 = this.stride[4],\n c = this.offset,\n d = 0,\n ceil = Math.ceil\n if (typeof i0 === \"number\") {\n d = i0 | 0\n if (d < 0) {\n c += b0 * (a0 - 1)\n a0 = ceil(-a0 / d)\n } else {\n a0 = ceil(a0 / d)\n }\n b0 *= d\n }\n if (typeof i1 === \"number\") {\n d = i1 | 0\n if (d < 0) {\n c += b1 * (a1 - 1)\n a1 = ceil(-a1 / d)\n } else {\n a1 = ceil(a1 / d)\n }\n b1 *= d\n }\n if (typeof i2 === \"number\") {\n d = i2 | 0\n if (d < 0) {\n c += b2 * (a2 - 1)\n a2 = ceil(-a2 / d)\n } else {\n a2 = ceil(a2 / d)\n }\n b2 *= d\n }\n if (typeof i3 === \"number\") {\n d = i3 | 0\n if (d < 0) {\n c += b3 * (a3 - 1)\n a3 = ceil(-a3 / d)\n } else {\n a3 = ceil(a3 / d)\n }\n b3 *= d\n }\n if (typeof i4 === \"number\") {\n d = i4 | 0\n if (d < 0) {\n c += b4 * (a4 - 1)\n a4 = ceil(-a4 / d)\n } else {\n a4 = ceil(a4 / d)\n }\n b4 *= d\n }\n return new View(this.data, a0, a1, a2, a3, a4, b0, b1, b2, b3, b4, c)\n }\n proto.transpose = function transpose(i0, i1, i2, i3, i4) {\n i0 = i0 === undefined ? 0 : i0 | 0\n i1 = i1 === undefined ? 1 : i1 | 0\n i2 = i2 === undefined ? 2 : i2 | 0\n i3 = i3 === undefined ? 3 : i3 | 0\n i4 = i4 === undefined ? 4 : i4 | 0\n var a = this.shape,\n b = this.stride\n return new View(this.data, a[i0], a[i1], a[i2], a[i3], a[i4], b[i0], b[i1], b[i2], b[i3], b[i4], this.offset)\n }\n proto.pick = function pick(i0, i1, i2, i3, i4) {\n var a = [],\n b = [],\n c = this.offset\n if (typeof i0 === \"number\" && i0 >= 0) {\n c = (c + this.stride[0] * i0) | 0\n } else {\n a.push(this.shape[0])\n b.push(this.stride[0])\n }\n if (typeof i1 === \"number\" && i1 >= 0) {\n c = (c + this.stride[1] * i1) | 0\n } else {\n a.push(this.shape[1])\n b.push(this.stride[1])\n }\n if (typeof i2 === \"number\" && i2 >= 0) {\n c = (c + this.stride[2] * i2) | 0\n } else {\n a.push(this.shape[2])\n b.push(this.stride[2])\n }\n if (typeof i3 === \"number\" && i3 >= 0) {\n c = (c + this.stride[3] * i3) | 0\n } else {\n a.push(this.shape[3])\n b.push(this.stride[3])\n }\n if (typeof i4 === \"number\" && i4 >= 0) {\n c = (c + this.stride[4] * i4) | 0\n } else {\n a.push(this.shape[4])\n b.push(this.stride[4])\n }\n var ctor = CTOR_LIST[a.length + 1]\n return ctor(this.data, a, b, c)\n }\n return function construct(data, shape, stride, offset) {\n return new View(\n data,\n shape[0],\n shape[1],\n shape[2],\n shape[3],\n shape[4],\n stride[0],\n stride[1],\n stride[2],\n stride[3],\n stride[4],\n offset\n )\n }\n },\n}\n\n\nfunction compileConstructor(inType, inDimension) {\n var dKey = inDimension === -1 ? 'T' : String(inDimension)\n\n var procedure = allFns[dKey]\n if(inDimension === -1) {\n return procedure(inType)\n } else if(inDimension === 0) {\n return procedure(inType, CACHED_CONSTRUCTORS[inType][0])\n }\n return procedure(inType, CACHED_CONSTRUCTORS[inType], order)\n}\n\nfunction arrayDType(data) {\n if(isBuffer(data)) {\n return \"buffer\"\n }\n if(hasTypedArrays) {\n switch(Object.prototype.toString.call(data)) {\n case \"[object Float64Array]\":\n return \"float64\"\n case \"[object Float32Array]\":\n return \"float32\"\n case \"[object Int8Array]\":\n return \"int8\"\n case \"[object Int16Array]\":\n return \"int16\"\n case \"[object Int32Array]\":\n return \"int32\"\n case \"[object Uint8ClampedArray]\":\n return \"uint8_clamped\"\n case \"[object Uint8Array]\":\n return \"uint8\"\n case \"[object Uint16Array]\":\n return \"uint16\"\n case \"[object Uint32Array]\":\n return \"uint32\"\n case \"[object BigInt64Array]\":\n return \"bigint64\"\n case \"[object BigUint64Array]\":\n return \"biguint64\"\n }\n }\n if(Array.isArray(data)) {\n return \"array\"\n }\n return \"generic\"\n}\n\nvar CACHED_CONSTRUCTORS = {\n \"generic\":[],\n \"buffer\":[],\n \"array\":[],\n\n // typed arrays\n \"float32\":[],\n \"float64\":[],\n \"int8\":[],\n \"int16\":[],\n \"int32\":[],\n \"uint8_clamped\":[],\n \"uint8\":[],\n \"uint16\":[],\n \"uint32\":[],\n \"bigint64\": [],\n \"biguint64\": []\n}\n\n;(function() {\n for(var id in CACHED_CONSTRUCTORS) {\n CACHED_CONSTRUCTORS[id].push(compileConstructor(id, -1))\n }\n});\n\nfunction wrappedNDArrayCtor(data, shape, stride, offset) {\n if(data === undefined) {\n var ctor = CACHED_CONSTRUCTORS.array[0]\n return ctor([])\n } else if(typeof data === \"number\") {\n data = [data]\n }\n if(shape === undefined) {\n shape = [ data.length ]\n }\n var d = shape.length\n if(stride === undefined) {\n stride = new Array(d)\n for(var i=d-1, sz=1; i>=0; --i) {\n stride[i] = sz\n sz *= shape[i]\n }\n }\n if(offset === undefined) {\n offset = 0\n for(var i=0; i>>0\n\nmodule.exports = nextafter\n\nfunction nextafter(x, y) {\n if(isNaN(x) || isNaN(y)) {\n return NaN\n }\n if(x === y) {\n return x\n }\n if(x === 0) {\n if(y < 0) {\n return -SMALLEST_DENORM\n } else {\n return SMALLEST_DENORM\n }\n }\n var hi = doubleBits.hi(x)\n var lo = doubleBits.lo(x)\n if((y > x) === (x > 0)) {\n if(lo === UINT_MAX) {\n hi += 1\n lo = 0\n } else {\n lo += 1\n }\n } else {\n if(lo === 0) {\n lo = UINT_MAX\n hi -= 1\n } else {\n lo -= 1\n }\n }\n return doubleBits.pack(lo, hi)\n}\n},{\"double-bits\":64}],261:[function(_glvis_,module,exports){\nvar DEFAULT_NORMALS_EPSILON = 1e-6;\nvar DEFAULT_FACE_EPSILON = 1e-6;\n\n//Estimate the vertex normals of a mesh\nexports.vertexNormals = function(faces, positions, specifiedEpsilon) {\n\n var N = positions.length;\n var normals = new Array(N);\n var epsilon = specifiedEpsilon === void(0) ? DEFAULT_NORMALS_EPSILON : specifiedEpsilon;\n\n //Initialize normal array\n for(var i=0; i epsilon) {\n var norm = normals[c];\n var w = 1.0 / Math.sqrt(m01 * m21);\n for(var k=0; k<3; ++k) {\n var u = (k+1)%3;\n var v = (k+2)%3;\n norm[k] += w * (d21[u] * d01[v] - d21[v] * d01[u]);\n }\n }\n }\n }\n\n //Scale all normals to unit length\n for(var i=0; i epsilon) {\n var w = 1.0 / Math.sqrt(m);\n for(var k=0; k<3; ++k) {\n norm[k] *= w;\n }\n } else {\n for(var k=0; k<3; ++k) {\n norm[k] = 0.0;\n }\n }\n }\n\n //Return the resulting set of patches\n return normals;\n}\n\n//Compute face normals of a mesh\nexports.faceNormals = function(faces, positions, specifiedEpsilon) {\n\n var N = faces.length;\n var normals = new Array(N);\n var epsilon = specifiedEpsilon === void(0) ? DEFAULT_FACE_EPSILON : specifiedEpsilon;\n\n for(var i=0; i epsilon) {\n l = 1.0 / Math.sqrt(l);\n } else {\n l = 0.0;\n }\n for(var j=0; j<3; ++j) {\n n[j] *= l;\n }\n normals[i] = n;\n }\n return normals;\n}\n\n\n\n},{}],262:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = quatFromFrame\n\nfunction quatFromFrame(\n out,\n rx, ry, rz,\n ux, uy, uz,\n fx, fy, fz) {\n var tr = rx + uy + fz\n if(l > 0) {\n var l = Math.sqrt(tr + 1.0)\n out[0] = 0.5 * (uz - fy) / l\n out[1] = 0.5 * (fx - rz) / l\n out[2] = 0.5 * (ry - uy) / l\n out[3] = 0.5 * l\n } else {\n var tf = Math.max(rx, uy, fz)\n var l = Math.sqrt(2 * tf - tr + 1.0)\n if(rx >= tf) {\n //x y z order\n out[0] = 0.5 * l\n out[1] = 0.5 * (ux + ry) / l\n out[2] = 0.5 * (fx + rz) / l\n out[3] = 0.5 * (uz - fy) / l\n } else if(uy >= tf) {\n //y z x order\n out[0] = 0.5 * (ry + ux) / l\n out[1] = 0.5 * l\n out[2] = 0.5 * (fy + uz) / l\n out[3] = 0.5 * (fx - rz) / l\n } else {\n //z x y order\n out[0] = 0.5 * (rz + fx) / l\n out[1] = 0.5 * (uz + fy) / l\n out[2] = 0.5 * l\n out[3] = 0.5 * (ry - ux) / l\n }\n }\n return out\n}\n},{}],263:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = createOrbitController\n\nvar filterVector = _glvis_('filtered-vector')\nvar lookAt = _glvis_('gl-mat4/lookAt')\nvar mat4FromQuat = _glvis_('gl-mat4/fromQuat')\nvar invert44 = _glvis_('gl-mat4/invert')\nvar quatFromFrame = _glvis_('./lib/quatFromFrame')\n\nfunction len3(x,y,z) {\n return Math.sqrt(Math.pow(x,2) + Math.pow(y,2) + Math.pow(z,2))\n}\n\nfunction len4(w,x,y,z) {\n return Math.sqrt(Math.pow(w,2) + Math.pow(x,2) + Math.pow(y,2) + Math.pow(z,2))\n}\n\nfunction normalize4(out, a) {\n var ax = a[0]\n var ay = a[1]\n var az = a[2]\n var aw = a[3]\n var al = len4(ax, ay, az, aw)\n if(al > 1e-6) {\n out[0] = ax/al\n out[1] = ay/al\n out[2] = az/al\n out[3] = aw/al\n } else {\n out[0] = out[1] = out[2] = 0.0\n out[3] = 1.0\n }\n}\n\nfunction OrbitCameraController(initQuat, initCenter, initRadius) {\n this.radius = filterVector([initRadius])\n this.center = filterVector(initCenter)\n this.rotation = filterVector(initQuat)\n\n this.computedRadius = this.radius.curve(0)\n this.computedCenter = this.center.curve(0)\n this.computedRotation = this.rotation.curve(0)\n this.computedUp = [0.1,0,0]\n this.computedEye = [0.1,0,0]\n this.computedMatrix = [0.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]\n\n this.recalcMatrix(0)\n}\n\nvar proto = OrbitCameraController.prototype\n\nproto.lastT = function() {\n return Math.max(\n this.radius.lastT(),\n this.center.lastT(),\n this.rotation.lastT())\n}\n\nproto.recalcMatrix = function(t) {\n this.radius.curve(t)\n this.center.curve(t)\n this.rotation.curve(t)\n\n var quat = this.computedRotation\n normalize4(quat, quat)\n\n var mat = this.computedMatrix\n mat4FromQuat(mat, quat)\n\n var center = this.computedCenter\n var eye = this.computedEye\n var up = this.computedUp\n var radius = Math.exp(this.computedRadius[0])\n\n eye[0] = center[0] + radius * mat[2]\n eye[1] = center[1] + radius * mat[6]\n eye[2] = center[2] + radius * mat[10]\n up[0] = mat[1]\n up[1] = mat[5]\n up[2] = mat[9]\n\n for(var i=0; i<3; ++i) {\n var rr = 0.0\n for(var j=0; j<3; ++j) {\n rr += mat[i+4*j] * eye[j]\n }\n mat[12+i] = -rr\n }\n}\n\nproto.getMatrix = function(t, result) {\n this.recalcMatrix(t)\n var m = this.computedMatrix\n if(result) {\n for(var i=0; i<16; ++i) {\n result[i] = m[i]\n }\n return result\n }\n return m\n}\n\nproto.idle = function(t) {\n this.center.idle(t)\n this.radius.idle(t)\n this.rotation.idle(t)\n}\n\nproto.flush = function(t) {\n this.center.flush(t)\n this.radius.flush(t)\n this.rotation.flush(t)\n}\n\nproto.pan = function(t, dx, dy, dz) {\n dx = dx || 0.0\n dy = dy || 0.0\n dz = dz || 0.0\n\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n\n var ux = mat[1]\n var uy = mat[5]\n var uz = mat[9]\n var ul = len3(ux, uy, uz)\n ux /= ul\n uy /= ul\n uz /= ul\n\n var rx = mat[0]\n var ry = mat[4]\n var rz = mat[8]\n var ru = rx * ux + ry * uy + rz * uz\n rx -= ux * ru\n ry -= uy * ru\n rz -= uz * ru\n var rl = len3(rx, ry, rz)\n rx /= rl\n ry /= rl\n rz /= rl\n\n var fx = mat[2]\n var fy = mat[6]\n var fz = mat[10]\n var fu = fx * ux + fy * uy + fz * uz\n var fr = fx * rx + fy * ry + fz * rz\n fx -= fu * ux + fr * rx\n fy -= fu * uy + fr * ry\n fz -= fu * uz + fr * rz\n var fl = len3(fx, fy, fz)\n fx /= fl\n fy /= fl\n fz /= fl\n\n var vx = rx * dx + ux * dy\n var vy = ry * dx + uy * dy\n var vz = rz * dx + uz * dy\n\n this.center.move(t, vx, vy, vz)\n\n //Update z-component of radius\n var radius = Math.exp(this.computedRadius[0])\n radius = Math.max(1e-4, radius + dz)\n this.radius.set(t, Math.log(radius))\n}\n\nproto.rotate = function(t, dx, dy, dz) {\n this.recalcMatrix(t)\n\n dx = dx||0.0\n dy = dy||0.0\n\n var mat = this.computedMatrix\n\n var rx = mat[0]\n var ry = mat[4]\n var rz = mat[8]\n\n var ux = mat[1]\n var uy = mat[5]\n var uz = mat[9]\n\n var fx = mat[2]\n var fy = mat[6]\n var fz = mat[10]\n\n var qx = dx * rx + dy * ux\n var qy = dx * ry + dy * uy\n var qz = dx * rz + dy * uz\n\n var bx = -(fy * qz - fz * qy)\n var by = -(fz * qx - fx * qz)\n var bz = -(fx * qy - fy * qx) \n var bw = Math.sqrt(Math.max(0.0, 1.0 - Math.pow(bx,2) - Math.pow(by,2) - Math.pow(bz,2)))\n var bl = len4(bx, by, bz, bw)\n if(bl > 1e-6) {\n bx /= bl\n by /= bl\n bz /= bl\n bw /= bl\n } else {\n bx = by = bz = 0.0\n bw = 1.0\n }\n\n var rotation = this.computedRotation\n var ax = rotation[0]\n var ay = rotation[1]\n var az = rotation[2]\n var aw = rotation[3]\n\n var cx = ax*bw + aw*bx + ay*bz - az*by\n var cy = ay*bw + aw*by + az*bx - ax*bz\n var cz = az*bw + aw*bz + ax*by - ay*bx\n var cw = aw*bw - ax*bx - ay*by - az*bz\n \n //Apply roll\n if(dz) {\n bx = fx\n by = fy\n bz = fz\n var s = Math.sin(dz) / len3(bx, by, bz)\n bx *= s\n by *= s\n bz *= s\n bw = Math.cos(dx)\n cx = cx*bw + cw*bx + cy*bz - cz*by\n cy = cy*bw + cw*by + cz*bx - cx*bz\n cz = cz*bw + cw*bz + cx*by - cy*bx\n cw = cw*bw - cx*bx - cy*by - cz*bz\n }\n\n var cl = len4(cx, cy, cz, cw)\n if(cl > 1e-6) {\n cx /= cl\n cy /= cl\n cz /= cl\n cw /= cl\n } else {\n cx = cy = cz = 0.0\n cw = 1.0\n }\n\n this.rotation.set(t, cx, cy, cz, cw)\n}\n\nproto.lookAt = function(t, eye, center, up) {\n this.recalcMatrix(t)\n\n center = center || this.computedCenter\n eye = eye || this.computedEye\n up = up || this.computedUp\n\n var mat = this.computedMatrix\n lookAt(mat, eye, center, up)\n\n var rotation = this.computedRotation\n quatFromFrame(rotation,\n mat[0], mat[1], mat[2],\n mat[4], mat[5], mat[6],\n mat[8], mat[9], mat[10])\n normalize4(rotation, rotation)\n this.rotation.set(t, rotation[0], rotation[1], rotation[2], rotation[3])\n\n var fl = 0.0\n for(var i=0; i<3; ++i) {\n fl += Math.pow(center[i] - eye[i], 2)\n }\n this.radius.set(t, 0.5 * Math.log(Math.max(fl, 1e-6)))\n\n this.center.set(t, center[0], center[1], center[2])\n}\n\nproto.translate = function(t, dx, dy, dz) {\n this.center.move(t,\n dx||0.0,\n dy||0.0,\n dz||0.0)\n}\n\nproto.setMatrix = function(t, matrix) {\n\n var rotation = this.computedRotation\n quatFromFrame(rotation,\n matrix[0], matrix[1], matrix[2],\n matrix[4], matrix[5], matrix[6],\n matrix[8], matrix[9], matrix[10])\n normalize4(rotation, rotation)\n this.rotation.set(t, rotation[0], rotation[1], rotation[2], rotation[3])\n\n var mat = this.computedMatrix\n invert44(mat, matrix)\n var w = mat[15]\n if(Math.abs(w) > 1e-6) {\n var cx = mat[12]/w\n var cy = mat[13]/w\n var cz = mat[14]/w\n\n this.recalcMatrix(t) \n var r = Math.exp(this.computedRadius[0])\n this.center.set(t, cx-mat[2]*r, cy-mat[6]*r, cz-mat[10]*r)\n this.radius.idle(t)\n } else {\n this.center.idle(t)\n this.radius.idle(t)\n }\n}\n\nproto.setDistance = function(t, d) {\n if(d > 0) {\n this.radius.set(t, Math.log(d))\n }\n}\n\nproto.setDistanceLimits = function(lo, hi) {\n if(lo > 0) {\n lo = Math.log(lo)\n } else {\n lo = -Infinity \n }\n if(hi > 0) {\n hi = Math.log(hi)\n } else {\n hi = Infinity\n }\n hi = Math.max(hi, lo)\n this.radius.bounds[0][0] = lo\n this.radius.bounds[1][0] = hi\n}\n\nproto.getDistanceLimits = function(out) {\n var bounds = this.radius.bounds\n if(out) {\n out[0] = Math.exp(bounds[0][0])\n out[1] = Math.exp(bounds[1][0])\n return out\n }\n return [ Math.exp(bounds[0][0]), Math.exp(bounds[1][0]) ]\n}\n\nproto.toJSON = function() {\n this.recalcMatrix(this.lastT())\n return {\n center: this.computedCenter.slice(),\n rotation: this.computedRotation.slice(),\n distance: Math.log(this.computedRadius[0]),\n zoomMin: this.radius.bounds[0][0],\n zoomMax: this.radius.bounds[1][0]\n }\n}\n\nproto.fromJSON = function(options) {\n var t = this.lastT()\n var c = options.center\n if(c) {\n this.center.set(t, c[0], c[1], c[2])\n }\n var r = options.rotation\n if(r) {\n this.rotation.set(t, r[0], r[1], r[2], r[3])\n }\n var d = options.distance\n if(d && d > 0) {\n this.radius.set(t, Math.log(d))\n }\n this.setDistanceLimits(options.zoomMin, options.zoomMax)\n}\n\nfunction createOrbitController(options) {\n options = options || {}\n var center = options.center || [0,0,0]\n var rotation = options.rotation || [0,0,0,1]\n var radius = options.radius || 1.0\n\n center = [].slice.call(center, 0, 3)\n rotation = [].slice.call(rotation, 0, 4)\n normalize4(rotation, rotation)\n\n var result = new OrbitCameraController(\n rotation,\n center,\n Math.log(radius))\n\n result.setDistanceLimits(options.zoomMin, options.zoomMax)\n\n if('eye' in options || 'up' in options) {\n result.lookAt(0, options.eye, options.center, options.up)\n }\n\n return result\n}\n},{\"./lib/quatFromFrame\":262,\"filtered-vector\":68,\"gl-mat4/fromQuat\":95,\"gl-mat4/invert\":98,\"gl-mat4/lookAt\":99}],264:[function(_glvis_,module,exports){\n/*!\n * pad-left \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar repeat = _glvis_('repeat-string');\n\nmodule.exports = function padLeft(str, num, ch) {\n ch = typeof ch !== 'undefined' ? (ch + '') : ' ';\n return repeat(ch, num) + str;\n};\n},{\"repeat-string\":277}],265:[function(_glvis_,module,exports){\nmodule.exports = function parseUnit(str, out) {\n if (!out)\n out = [ 0, '' ]\n\n str = String(str)\n var num = parseFloat(str, 10)\n out[0] = num\n out[1] = str.match(/[\\d.\\-\\+]*\\s*(.*)/)[1] || ''\n return out\n}\n},{}],266:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = planarDual\n\nvar compareAngle = _glvis_(\"compare-angle\")\n\nfunction planarDual(cells, positions) {\n\n var numVertices = positions.length|0\n var numEdges = cells.length\n var adj = [new Array(numVertices), new Array(numVertices)]\n for(var i=0; i 0) {\n nextCell = adj[i][b][0]\n nextDir = i\n break\n }\n }\n nextVertex = nextCell[nextDir^1]\n\n for(var dir=0; dir<2; ++dir) {\n var nbhd = adj[dir][b]\n for(var k=0; k 0) {\n nextCell = e\n nextVertex = p\n nextDir = dir\n }\n }\n }\n if(noCut) {\n return nextVertex\n }\n if(nextCell) {\n cut(nextCell, nextDir)\n }\n return nextVertex\n }\n\n function extractCycle(v, dir) {\n var e0 = adj[dir][v][0]\n var cycle = [v]\n cut(e0, dir)\n var u = e0[dir^1]\n var d0 = dir\n while(true) {\n while(u !== v) {\n cycle.push(u)\n u = next(cycle[cycle.length-2], u, false)\n }\n if(adj[0][v].length + adj[1][v].length === 0) {\n break\n }\n var a = cycle[cycle.length-1]\n var b = v\n var c = cycle[1]\n var d = next(a, b, true)\n if(compareAngle(positions[a], positions[b], positions[c], positions[d]) < 0) {\n break\n }\n cycle.push(v)\n u = next(a, b)\n }\n return cycle\n }\n\n function shouldGlue(pcycle, ncycle) {\n return (ncycle[1] === ncycle[ncycle.length-1])\n }\n\n for(var i=0; i 0) {\n var ni = adj[0][i].length\n var ncycle = extractCycle(i,j)\n if(shouldGlue(pcycle, ncycle)) {\n //Glue together trivial cycles\n pcycle.push.apply(pcycle, ncycle)\n } else {\n if(pcycle.length > 0) {\n cycles.push(pcycle)\n }\n pcycle = ncycle\n }\n }\n if(pcycle.length > 0) {\n cycles.push(pcycle)\n }\n }\n }\n\n //Combine paths and loops together\n return cycles\n}\n},{\"compare-angle\":54}],267:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = trimLeaves\n\nvar e2a = _glvis_('edges-to-adjacency-list')\n\nfunction trimLeaves(edges, positions) {\n var adj = e2a(edges, positions.length)\n var live = new Array(positions.length)\n var nbhd = new Array(positions.length)\n\n var dead = []\n for(var i=0; i 0) {\n var v = dead.pop()\n live[v] = false\n var n = adj[v]\n for(var i=0; i 0\n }\n\n //Extract all clockwise faces\n faces = faces.filter(ccw)\n\n //Detect which loops are contained in one another to handle parent-of relation\n var numFaces = faces.length\n var parent = new Array(numFaces)\n var containment = new Array(numFaces)\n for(var i=0; i 0) {\n var top = toVisit.pop()\n var nbhd = fadj[top]\n uniq(nbhd, function(a,b) {\n return a-b\n })\n var nnbhr = nbhd.length\n var p = parity[top]\n var polyline\n if(p === 0) {\n var c = faces[top]\n polyline = [c]\n }\n for(var i=0; i= 0) {\n continue\n }\n parity[f] = p^1\n toVisit.push(f)\n if(p === 0) {\n var c = faces[f]\n if(!sharedBoundary(c)) {\n c.reverse()\n polyline.push(c)\n }\n }\n }\n if(p === 0) {\n result.push(polyline)\n }\n }\n\n return result\n}\n},{\"./lib/trim-leaves\":267,\"edges-to-adjacency-list\":66,\"planar-dual\":266,\"point-in-big-polygon\":269,\"robust-sum\":289,\"two-product\":306,\"uniq\":310}],269:[function(_glvis_,module,exports){\nmodule.exports = preprocessPolygon\n\nvar orient = _glvis_('robust-orientation')[3]\nvar makeSlabs = _glvis_('slab-decomposition')\nvar makeIntervalTree = _glvis_('interval-tree-1d')\nvar bsearch = _glvis_('binary-search-bounds')\n\nfunction visitInterval() {\n return true\n}\n\nfunction intervalSearch(table) {\n return function(x, y) {\n var tree = table[x]\n if(tree) {\n return !!tree.queryPoint(y, visitInterval)\n }\n return false\n }\n}\n\nfunction buildVerticalIndex(segments) {\n var table = {}\n for(var i=0; i 0 && coordinates[bucket] === p[0]) {\n root = slabs[bucket-1]\n } else {\n return 1\n }\n }\n var lastOrientation = 1\n while(root) {\n var s = root.key\n var o = orient(p, s[0], s[1])\n if(s[0][0] < s[1][0]) {\n if(o < 0) {\n root = root.left\n } else if(o > 0) {\n lastOrientation = -1\n root = root.right\n } else {\n return 0\n }\n } else {\n if(o > 0) {\n root = root.left\n } else if(o < 0) {\n lastOrientation = 1\n root = root.right\n } else {\n return 0\n }\n }\n }\n return lastOrientation\n }\n}\n\nfunction classifyEmpty(p) {\n return 1\n}\n\nfunction createClassifyVertical(testVertical) {\n return function classify(p) {\n if(testVertical(p[0], p[1])) {\n return 0\n }\n return 1\n }\n}\n\nfunction createClassifyPointDegen(testVertical, testNormal) {\n return function classify(p) {\n if(testVertical(p[0], p[1])) {\n return 0\n }\n return testNormal(p)\n }\n}\n\nfunction preprocessPolygon(loops) {\n //Compute number of loops\n var numLoops = loops.length\n\n //Unpack segments\n var segments = []\n var vsegments = []\n var ptr = 0\n for(var i=0; i= a00) {\n s = 1.0;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = -b0/a00;\n sqrDistance = b0*s + c;\n }\n } else {\n s = 0;\n if (b1 >= 0) {\n t = 0;\n sqrDistance = c;\n } else if (-b1 >= a11) {\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n t = -b1/a11;\n sqrDistance = b1*t + c;\n }\n }\n } else { // region 3\n s = 0;\n if (b1 >= 0) {\n t = 0;\n sqrDistance = c;\n } else if (-b1 >= a11) {\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n t = -b1/a11;\n sqrDistance = b1*t + c;\n }\n }\n } else if (t < 0) { // region 5\n t = 0;\n if (b0 >= 0) {\n s = 0;\n sqrDistance = c;\n } else if (-b0 >= a00) {\n s = 1;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = -b0/a00;\n sqrDistance = b0*s + c;\n }\n } else { // region 0\n // minimum at interior point\n var invDet = 1.0 / det;\n s *= invDet;\n t *= invDet;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) + t*(a01*s + a11*t + 2.0*b1) + c;\n }\n } else {\n var tmp0, tmp1, numer, denom;\n \n if (s < 0) { // region 2\n tmp0 = a01 + b0;\n tmp1 = a11 + b1;\n if (tmp1 > tmp0) {\n numer = tmp1 - tmp0;\n denom = a00 - 2.0*a01 + a11;\n if (numer >= denom) {\n s = 1;\n t = 0;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = numer/denom;\n t = 1 - s;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) +\n t*(a01*s + a11*t + 2.0*b1) + c;\n }\n } else {\n s = 0;\n if (tmp1 <= 0) {\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else if (b1 >= 0) {\n t = 0;\n sqrDistance = c;\n } else {\n t = -b1/a11;\n sqrDistance = b1*t + c;\n }\n }\n } else if (t < 0) { // region 6\n tmp0 = a01 + b1;\n tmp1 = a00 + b0;\n if (tmp1 > tmp0) {\n numer = tmp1 - tmp0;\n denom = a00 - 2.0*a01 + a11;\n if (numer >= denom) {\n t = 1;\n s = 0;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n t = numer/denom;\n s = 1 - t;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) +\n t*(a01*s + a11*t + 2.0*b1) + c;\n }\n } else {\n t = 0;\n if (tmp1 <= 0) {\n s = 1;\n sqrDistance = a00 + 2.0*b0 + c;\n } else if (b0 >= 0) {\n s = 0;\n sqrDistance = c;\n } else {\n s = -b0/a00;\n sqrDistance = b0*s + c;\n }\n }\n } else { // region 1\n numer = a11 + b1 - a01 - b0;\n if (numer <= 0) {\n s = 0;\n t = 1;\n sqrDistance = a11 + 2.0*b1 + c;\n } else {\n denom = a00 - 2.0*a01 + a11;\n if (numer >= denom) {\n s = 1;\n t = 0;\n sqrDistance = a00 + 2.0*b0 + c;\n } else {\n s = numer/denom;\n t = 1 - s;\n sqrDistance = s*(a00*s + a01*t + 2.0*b0) +\n t*(a01*s + a11*t + 2.0*b1) + c;\n }\n }\n }\n }\n var u = 1.0 - s - t;\n for(var i=0; i 0) {\n var f = cells[ptr-1]\n if(compareCell(c, f) === 0 &&\n orientation(f) !== o) {\n ptr -= 1\n continue\n }\n }\n cells[ptr++] = c\n }\n cells.length = ptr\n return cells\n}\n\n},{\"cell-orientation\":47,\"compare-cell\":56,\"compare-oriented-cell\":57}],277:[function(_glvis_,module,exports){\n/*!\n * repeat-string \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Results cache\n */\n\nvar res = '';\nvar cache;\n\n/**\n * Expose `repeat`\n */\n\nmodule.exports = repeat;\n\n/**\n * Repeat the given `string` the specified `number`\n * of times.\n *\n * **Example:**\n *\n * ```js\n * var repeat = require('repeat-string');\n * repeat('A', 5);\n * //=> AAAAA\n * ```\n *\n * @param {String} `string` The string to repeat\n * @param {Number} `number` The number of times to repeat the string\n * @return {String} Repeated string\n * @api public\n */\n\nfunction repeat(str, num) {\n if (typeof str !== 'string') {\n throw new TypeError('expected a string');\n }\n\n // cover common, quick use cases\n if (num === 1) return str;\n if (num === 2) return str + str;\n\n var max = str.length * num;\n if (cache !== str || typeof cache === 'undefined') {\n cache = str;\n res = '';\n } else if (res.length >= max) {\n return res.substr(0, max);\n }\n\n while (max > res.length && num > 1) {\n if (num & 1) {\n res += str;\n }\n\n num >>= 1;\n str += str;\n }\n\n res += str;\n res = res.substr(0, max);\n return res;\n}\n\n},{}],278:[function(_glvis_,module,exports){\n(function (global){(function (){\nmodule.exports =\n global.performance &&\n global.performance.now ? function now() {\n return performance.now()\n } : Date.now || function now() {\n return +new Date\n }\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],279:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = compressExpansion\n\nfunction compressExpansion(e) {\n var m = e.length\n var Q = e[e.length-1]\n var bottom = m\n for(var i=m-2; i>=0; --i) {\n var a = Q\n var b = e[i]\n Q = a + b\n var bv = Q - a\n var q = b - bv\n if(q) {\n e[--bottom] = Q\n Q = q\n }\n }\n var top = 0\n for(var i=bottom; i 0) {\n if(r <= 0) {\n return det\n } else {\n s = l + r\n }\n } else if(l < 0) {\n if(r >= 0) {\n return det\n } else {\n s = -(l + r)\n }\n } else {\n return det\n }\n var tol = ERRBOUND3 * s\n if(det >= tol || det <= -tol) {\n return det\n }\n return orientation3Exact(a, b, c)\n },\n function orientation4(a,b,c,d) {\n var adx = a[0] - d[0]\n var bdx = b[0] - d[0]\n var cdx = c[0] - d[0]\n var ady = a[1] - d[1]\n var bdy = b[1] - d[1]\n var cdy = c[1] - d[1]\n var adz = a[2] - d[2]\n var bdz = b[2] - d[2]\n var cdz = c[2] - d[2]\n var bdxcdy = bdx * cdy\n var cdxbdy = cdx * bdy\n var cdxady = cdx * ady\n var adxcdy = adx * cdy\n var adxbdy = adx * bdy\n var bdxady = bdx * ady\n var det = adz * (bdxcdy - cdxbdy)\n + bdz * (cdxady - adxcdy)\n + cdz * (adxbdy - bdxady)\n var permanent = (Math.abs(bdxcdy) + Math.abs(cdxbdy)) * Math.abs(adz)\n + (Math.abs(cdxady) + Math.abs(adxcdy)) * Math.abs(bdz)\n + (Math.abs(adxbdy) + Math.abs(bdxady)) * Math.abs(cdz)\n var tol = ERRBOUND4 * permanent\n if ((det > tol) || (-det > tol)) {\n return det\n }\n return orientation4Exact(a,b,c,d)\n }\n]\n\nfunction slowOrient(args) {\n var proc = CACHED[args.length]\n if(!proc) {\n proc = CACHED[args.length] = orientation(args.length)\n }\n return proc.apply(undefined, args)\n}\n\nfunction proc (slow, o0, o1, o2, o3, o4, o5) {\n return function getOrientation(a0, a1, a2, a3, a4) {\n switch (arguments.length) {\n case 0:\n case 1:\n return 0;\n case 2:\n return o2(a0, a1)\n case 3:\n return o3(a0, a1, a2)\n case 4:\n return o4(a0, a1, a2, a3)\n case 5:\n return o5(a0, a1, a2, a3, a4)\n }\n\n var s = new Array(arguments.length)\n for (var i = 0; i < arguments.length; ++i) {\n s[i] = arguments[i]\n }\n return slow(s)\n }\n}\n\nfunction generateOrientationProc() {\n while(CACHED.length <= NUM_EXPAND) {\n CACHED.push(orientation(CACHED.length))\n }\n module.exports = proc.apply(undefined, [slowOrient].concat(CACHED))\n for(var i=0; i<=NUM_EXPAND; ++i) {\n module.exports[i] = CACHED[i]\n }\n}\n\ngenerateOrientationProc()\n},{\"robust-scale\":286,\"robust-subtract\":288,\"robust-sum\":289,\"two-product\":306}],285:[function(_glvis_,module,exports){\n\"use strict\"\n\nvar robustSum = _glvis_(\"robust-sum\")\nvar robustScale = _glvis_(\"robust-scale\")\n\nmodule.exports = robustProduct\n\nfunction robustProduct(a, b) {\n if(a.length === 1) {\n return robustScale(b, a[0])\n }\n if(b.length === 1) {\n return robustScale(a, b[0])\n }\n if(a.length === 0 || b.length === 0) {\n return [0]\n }\n var r = [0]\n if(a.length < b.length) {\n for(var i=0; i 0 && y0 > 0) || (x0 < 0 && y0 < 0)) {\n return false\n }\n\n var x1 = orient(b0, a0, a1)\n var y1 = orient(b1, a0, a1)\n if((x1 > 0 && y1 > 0) || (x1 < 0 && y1 < 0)) {\n return false\n }\n\n //Check for degenerate collinear case\n if(x0 === 0 && y0 === 0 && x1 === 0 && y1 === 0) {\n return checkCollinear(a0, a1, b0, b1)\n }\n\n return true\n}\n},{\"robust-orientation\":284}],288:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = robustSubtract\n\n//Easy case: Add two scalars\nfunction scalarScalar(a, b) {\n var x = a + b\n var bv = x - a\n var av = x - bv\n var br = b - bv\n var ar = a - av\n var y = ar + br\n if(y) {\n return [y, x]\n }\n return [x]\n}\n\nfunction robustSubtract(e, f) {\n var ne = e.length|0\n var nf = f.length|0\n if(ne === 1 && nf === 1) {\n return scalarScalar(e[0], -f[0])\n }\n var n = ne + nf\n var g = new Array(n)\n var count = 0\n var eptr = 0\n var fptr = 0\n var abs = Math.abs\n var ei = e[eptr]\n var ea = abs(ei)\n var fi = -f[fptr]\n var fa = abs(fi)\n var a, b\n if(ea < fa) {\n b = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n b = fi\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n fa = abs(fi)\n }\n }\n if((eptr < ne && ea < fa) || (fptr >= nf)) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n fa = abs(fi)\n }\n }\n var x = a + b\n var bv = x - a\n var y = b - bv\n var q0 = y\n var q1 = x\n var _x, _bv, _av, _br, _ar\n while(eptr < ne && fptr < nf) {\n if(ea < fa) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n fa = abs(fi)\n }\n }\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n }\n while(eptr < ne) {\n a = ei\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n }\n }\n while(fptr < nf) {\n a = fi\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n } \n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n fptr += 1\n if(fptr < nf) {\n fi = -f[fptr]\n }\n }\n if(q0) {\n g[count++] = q0\n }\n if(q1) {\n g[count++] = q1\n }\n if(!count) {\n g[count++] = 0.0 \n }\n g.length = count\n return g\n}\n},{}],289:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = linearExpansionSum\n\n//Easy case: Add two scalars\nfunction scalarScalar(a, b) {\n var x = a + b\n var bv = x - a\n var av = x - bv\n var br = b - bv\n var ar = a - av\n var y = ar + br\n if(y) {\n return [y, x]\n }\n return [x]\n}\n\nfunction linearExpansionSum(e, f) {\n var ne = e.length|0\n var nf = f.length|0\n if(ne === 1 && nf === 1) {\n return scalarScalar(e[0], f[0])\n }\n var n = ne + nf\n var g = new Array(n)\n var count = 0\n var eptr = 0\n var fptr = 0\n var abs = Math.abs\n var ei = e[eptr]\n var ea = abs(ei)\n var fi = f[fptr]\n var fa = abs(fi)\n var a, b\n if(ea < fa) {\n b = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n b = fi\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n fa = abs(fi)\n }\n }\n if((eptr < ne && ea < fa) || (fptr >= nf)) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n fa = abs(fi)\n }\n }\n var x = a + b\n var bv = x - a\n var y = b - bv\n var q0 = y\n var q1 = x\n var _x, _bv, _av, _br, _ar\n while(eptr < ne && fptr < nf) {\n if(ea < fa) {\n a = ei\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n ea = abs(ei)\n }\n } else {\n a = fi\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n fa = abs(fi)\n }\n }\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n }\n while(eptr < ne) {\n a = ei\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n }\n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n eptr += 1\n if(eptr < ne) {\n ei = e[eptr]\n }\n }\n while(fptr < nf) {\n a = fi\n b = q0\n x = a + b\n bv = x - a\n y = b - bv\n if(y) {\n g[count++] = y\n } \n _x = q1 + x\n _bv = _x - q1\n _av = _x - _bv\n _br = x - _bv\n _ar = q1 - _av\n q0 = _ar + _br\n q1 = _x\n fptr += 1\n if(fptr < nf) {\n fi = f[fptr]\n }\n }\n if(q0) {\n g[count++] = q0\n }\n if(q1) {\n g[count++] = q1\n }\n if(!count) {\n g[count++] = 0.0 \n }\n g.length = count\n return g\n}\n},{}],290:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = boundary\n\nvar bnd = _glvis_('boundary-cells')\nvar reduce = _glvis_('reduce-simplicial-complex')\n\nfunction boundary(cells) {\n return reduce(bnd(cells))\n}\n\n},{\"boundary-cells\":34,\"reduce-simplicial-complex\":276}],291:[function(_glvis_,module,exports){\n'use strict'\n\nmodule.exports = extractContour\n\nvar ndarray = _glvis_('ndarray')\nvar pool = _glvis_('typedarray-pool')\nvar ndsort = _glvis_('ndarray-sort')\n\nvar contourAlgorithm = _glvis_('./lib/codegen')\n\nfunction getDimension(cells) {\n var numCells = cells.length\n var d = 0\n for(var i=0; i> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour0d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n }\n return R\n }\n return getContour0d\n },\n function cellPolygonizer_1() {\n function B(C, E, i, j) {\n var a = Math.min(i, j) | 0,\n b = Math.max(i, j) | 0,\n l = C[2 * a],\n h = C[2 * a + 1]\n while (l < h) {\n var m = (l + h) >> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour1d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n if (l === 2) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1)\n if (M === 0 || M === 3) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0])])\n break\n case 3:\n break\n }\n }\n }\n return R\n }\n return getContour1d\n },\n function cellPolygonizer_2() {\n function B(C, E, i, j) {\n var a = Math.min(i, j) | 0,\n b = Math.max(i, j) | 0,\n l = C[2 * a],\n h = C[2 * a + 1]\n while (l < h) {\n var m = (l + h) >> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour2d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n if (l === 3) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1) + (S[c[2]] << 2)\n if (M === 0 || M === 7) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[1], c[2])])\n break\n case 3:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[1], c[2])])\n break\n case 4:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[2], c[0])])\n break\n case 5:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[0], c[1])])\n break\n case 6:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[2], c[0])])\n break\n case 7:\n break\n }\n } else if (l === 2) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1)\n if (M === 0 || M === 3) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0])])\n break\n case 3:\n break\n }\n }\n }\n return R\n }\n return getContour2d\n },\n function cellPolygonizer_3() {\n function B(C, E, i, j) {\n var a = Math.min(i, j) | 0,\n b = Math.max(i, j) | 0,\n l = C[2 * a],\n h = C[2 * a + 1]\n while (l < h) {\n var m = (l + h) >> 1,\n v = E[2 * m + 1]\n if (v === b) {\n return m\n }\n if (b < v) {\n h = m\n } else {\n l = m + 1\n }\n }\n return l\n }\n function getContour3d(F, E, C, S) {\n var n = F.length,\n R = []\n for (var i = 0; i < n; ++i) {\n var c = F[i],\n l = c.length\n if (l === 4) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1) + (S[c[2]] << 2) + (S[c[3]] << 3)\n if (M === 0 || M === 15) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1]), B(C, E, c[0], c[2]), B(C, E, c[0], c[3])])\n break\n case 2:\n R.push([B(C, E, c[1], c[2]), B(C, E, c[1], c[0]), B(C, E, c[1], c[3])])\n break\n case 3:\n R.push([B(C, E, c[1], c[2]), B(C, E, c[0], c[2]), B(C, E, c[0], c[3])], [B(C, E, c[1], c[3]), B(C, E, c[1], c[2]), B(C, E, c[0], c[3])])\n break\n case 4:\n R.push([B(C, E, c[2], c[0]), B(C, E, c[2], c[1]), B(C, E, c[2], c[3])])\n break\n case 5:\n R.push([B(C, E, c[0], c[1]), B(C, E, c[2], c[1]), B(C, E, c[0], c[3])], [B(C, E, c[2], c[1]), B(C, E, c[2], c[3]), B(C, E, c[0], c[3])])\n break\n case 6:\n R.push([B(C, E, c[2], c[0]), B(C, E, c[1], c[0]), B(C, E, c[1], c[3])], [B(C, E, c[2], c[3]), B(C, E, c[2], c[0]), B(C, E, c[1], c[3])])\n break\n case 7:\n R.push([B(C, E, c[0], c[3]), B(C, E, c[1], c[3]), B(C, E, c[2], c[3])])\n break\n case 8:\n R.push([B(C, E, c[3], c[1]), B(C, E, c[3], c[0]), B(C, E, c[3], c[2])])\n break\n case 9:\n R.push([B(C, E, c[3], c[1]), B(C, E, c[0], c[1]), B(C, E, c[0], c[2])], [B(C, E, c[3], c[2]), B(C, E, c[3], c[1]), B(C, E, c[0], c[2])])\n break\n case 10:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[3], c[0]), B(C, E, c[1], c[2])], [B(C, E, c[3], c[0]), B(C, E, c[3], c[2]), B(C, E, c[1], c[2])])\n break\n case 11:\n R.push([B(C, E, c[1], c[2]), B(C, E, c[0], c[2]), B(C, E, c[3], c[2])])\n break\n case 12:\n R.push([B(C, E, c[3], c[0]), B(C, E, c[2], c[0]), B(C, E, c[2], c[1])], [B(C, E, c[3], c[1]), B(C, E, c[3], c[0]), B(C, E, c[2], c[1])])\n break\n case 13:\n R.push([B(C, E, c[0], c[1]), B(C, E, c[2], c[1]), B(C, E, c[3], c[1])])\n break\n case 14:\n R.push([B(C, E, c[2], c[0]), B(C, E, c[1], c[0]), B(C, E, c[3], c[0])])\n break\n case 15:\n break\n }\n } else if (l === 3) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1) + (S[c[2]] << 2)\n if (M === 0 || M === 7) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[1], c[2])])\n break\n case 3:\n R.push([B(C, E, c[0], c[2]), B(C, E, c[1], c[2])])\n break\n case 4:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[2], c[0])])\n break\n case 5:\n R.push([B(C, E, c[2], c[1]), B(C, E, c[0], c[1])])\n break\n case 6:\n R.push([B(C, E, c[1], c[0]), B(C, E, c[2], c[0])])\n break\n case 7:\n break\n }\n } else if (l === 2) {\n var M = (S[c[0]] << 0) + (S[c[1]] << 1)\n if (M === 0 || M === 3) {\n continue\n }\n switch (M) {\n case 0:\n break\n case 1:\n R.push([B(C, E, c[0], c[1])])\n break\n case 2:\n R.push([B(C, E, c[1], c[0])])\n break\n case 3:\n break\n }\n }\n }\n return R\n }\n return getContour3d\n }\n]\n\nfunction getPolygonizer(d) {\n return allFns[d]();\n}\n\n},{}],293:[function(_glvis_,module,exports){\n\"use strict\"; \"use restrict\";\n\nvar bits = _glvis_(\"bit-twiddle\")\n , UnionFind = _glvis_(\"union-find\")\n\n//Returns the dimension of a cell complex\nfunction dimension(cells) {\n var d = 0\n , max = Math.max\n for(var i=0, il=cells.length; i> 1\n , s = compareCells(cells[mid], c)\n if(s <= 0) {\n if(s === 0) {\n r = mid\n }\n lo = mid + 1\n } else if(s > 0) {\n hi = mid - 1\n }\n }\n return r\n}\nexports.findCell = findCell;\n\n//Builds an index for an n-cell. This is more general than dual, but less efficient\nfunction incidence(from_cells, to_cells) {\n var index = new Array(from_cells.length)\n for(var i=0, il=index.length; i= from_cells.length || compareCells(from_cells[idx], b) !== 0) {\n break\n }\n }\n }\n }\n return index\n}\nexports.incidence = incidence\n\n//Computes the dual of the mesh. This is basically an optimized version of buildIndex for the situation where from_cells is just the list of vertices\nfunction dual(cells, vertex_count) {\n if(!vertex_count) {\n return incidence(unique(skeleton(cells, 0)), cells, 0)\n }\n var res = new Array(vertex_count)\n for(var i=0; i>> k) & 1) {\n b.push(c[k])\n }\n }\n result.push(b)\n }\n }\n return normalize(result)\n}\nexports.explode = explode\n\n//Enumerates all of the n-cells of a cell complex\nfunction skeleton(cells, n) {\n if(n < 0) {\n return []\n }\n var result = []\n , k0 = (1<<(n+1))-1\n for(var i=0; i> 1\n }\n return (i >> 1) - 1\n }\n\n //Bubble element i down the heap\n function heapDown(i) {\n var w = heapWeight(i)\n while(true) {\n var tw = w\n var left = 2*i + 1\n var right = 2*(i + 1)\n var next = i\n if(left < heapCount) {\n var lw = heapWeight(left)\n if(lw < tw) {\n next = left\n tw = lw\n }\n }\n if(right < heapCount) {\n var rw = heapWeight(right)\n if(rw < tw) {\n next = right\n }\n }\n if(next === i) {\n return i\n }\n heapSwap(i, next)\n i = next \n }\n }\n\n //Bubbles element i up the heap\n function heapUp(i) {\n var w = heapWeight(i)\n while(i > 0) {\n var parent = heapParent(i)\n if(parent >= 0) {\n var pw = heapWeight(parent)\n if(w < pw) {\n heapSwap(i, parent)\n i = parent\n continue\n }\n }\n return i\n }\n }\n\n //Pop minimum element\n function heapPop() {\n if(heapCount > 0) {\n var head = heap[0]\n heapSwap(0, heapCount-1)\n heapCount -= 1\n heapDown(0)\n return head\n }\n return -1\n }\n\n //Update heap item i\n function heapUpdate(i, w) {\n var a = heap[i]\n if(weights[a] === w) {\n return i\n }\n weights[a] = -Infinity\n heapUp(i)\n heapPop()\n weights[a] = w\n heapCount += 1\n return heapUp(heapCount-1)\n }\n\n //Kills a vertex (assume vertex already removed from heap)\n function kill(i) {\n if(dead[i]) {\n return\n }\n //Kill vertex\n dead[i] = true\n //Fixup topology\n var s = inv[i]\n var t = outv[i]\n if(inv[t] >= 0) {\n inv[t] = s\n }\n if(outv[s] >= 0) {\n outv[s] = t\n }\n\n //Update weights on s and t\n if(index[s] >= 0) {\n heapUpdate(index[s], computeWeight(s))\n }\n if(index[t] >= 0) {\n heapUpdate(index[t], computeWeight(t))\n }\n }\n\n //Initialize weights and heap\n var heap = []\n var index = new Array(n)\n for(var i=0; i>1; i>=0; --i) {\n heapDown(i)\n }\n \n //Kill vertices\n while(true) {\n var hmin = heapPop()\n if((hmin < 0) || (weights[hmin] > minArea)) {\n break\n }\n kill(hmin)\n }\n\n //Build collapsed vertex table\n var npositions = []\n for(var i=0; i= 0 && tout >= 0 && tin !== tout) {\n var cin = index[tin]\n var cout = index[tout]\n if(cin !== cout) {\n ncells.push([ cin, cout ])\n }\n }\n })\n\n //Normalize result\n sc.unique(sc.normalize(ncells))\n\n //Return final list of cells\n return {\n positions: npositions,\n edges: ncells\n }\n}\n},{\"robust-orientation\":284,\"simplicial-complex\":295}],298:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = orderSegments\n\nvar orient = _glvis_(\"robust-orientation\")\n\nfunction horizontalOrder(a, b) {\n var bl, br\n if(b[0][0] < b[1][0]) {\n bl = b[0]\n br = b[1]\n } else if(b[0][0] > b[1][0]) {\n bl = b[1]\n br = b[0]\n } else {\n var alo = Math.min(a[0][1], a[1][1])\n var ahi = Math.max(a[0][1], a[1][1])\n var blo = Math.min(b[0][1], b[1][1])\n var bhi = Math.max(b[0][1], b[1][1])\n if(ahi < blo) {\n return ahi - blo\n }\n if(alo > bhi) {\n return alo - bhi\n }\n return ahi - bhi\n }\n var al, ar\n if(a[0][1] < a[1][1]) {\n al = a[0]\n ar = a[1]\n } else {\n al = a[1]\n ar = a[0]\n }\n var d = orient(br, bl, al)\n if(d) {\n return d\n }\n d = orient(br, bl, ar)\n if(d) {\n return d\n }\n return ar - br\n}\n\nfunction orderSegments(b, a) {\n var al, ar\n if(a[0][0] < a[1][0]) {\n al = a[0]\n ar = a[1]\n } else if(a[0][0] > a[1][0]) {\n al = a[1]\n ar = a[0]\n } else {\n return horizontalOrder(a, b)\n }\n var bl, br\n if(b[0][0] < b[1][0]) {\n bl = b[0]\n br = b[1]\n } else if(b[0][0] > b[1][0]) {\n bl = b[1]\n br = b[0]\n } else {\n return -horizontalOrder(b, a)\n }\n var d1 = orient(al, ar, br)\n var d2 = orient(al, ar, bl)\n if(d1 < 0) {\n if(d2 <= 0) {\n return d1\n }\n } else if(d1 > 0) {\n if(d2 >= 0) {\n return d1\n }\n } else if(d2) {\n return d2\n }\n d1 = orient(br, bl, ar)\n d2 = orient(br, bl, al)\n if(d1 < 0) {\n if(d2 <= 0) {\n return d1\n }\n } else if(d1 > 0) {\n if(d2 >= 0) {\n return d1\n }\n } else if(d2) {\n return d2\n }\n return ar[0] - br[0]\n}\n},{\"robust-orientation\":284}],299:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = createSlabDecomposition\n\nvar bounds = _glvis_(\"binary-search-bounds\")\nvar createRBTree = _glvis_(\"functional-red-black-tree\")\nvar orient = _glvis_(\"robust-orientation\")\nvar orderSegments = _glvis_(\"./lib/order-segments\")\n\nfunction SlabDecomposition(slabs, coordinates, horizontal) {\n this.slabs = slabs\n this.coordinates = coordinates\n this.horizontal = horizontal\n}\n\nvar proto = SlabDecomposition.prototype\n\nfunction compareHorizontal(e, y) {\n return e.y - y\n}\n\nfunction searchBucket(root, p) {\n var lastNode = null\n while(root) {\n var seg = root.key\n var l, r\n if(seg[0][0] < seg[1][0]) {\n l = seg[0]\n r = seg[1]\n } else {\n l = seg[1]\n r = seg[0]\n }\n var o = orient(l, r, p)\n if(o < 0) {\n root = root.left\n } else if(o > 0) {\n if(p[0] !== seg[1][0]) {\n lastNode = root\n root = root.right\n } else {\n var val = searchBucket(root.right, p)\n if(val) {\n return val\n }\n root = root.left\n }\n } else {\n if(p[0] !== seg[1][0]) {\n return root\n } else {\n var val = searchBucket(root.right, p)\n if(val) {\n return val\n }\n root = root.left\n }\n }\n }\n return lastNode\n}\n\nproto.castUp = function(p) {\n var bucket = bounds.le(this.coordinates, p[0])\n if(bucket < 0) {\n return -1\n }\n var root = this.slabs[bucket]\n var hitNode = searchBucket(this.slabs[bucket], p)\n var lastHit = -1\n if(hitNode) {\n lastHit = hitNode.value\n }\n //Edge case: need to handle horizontal segments (sucks)\n if(this.coordinates[bucket] === p[0]) {\n var lastSegment = null\n if(hitNode) {\n lastSegment = hitNode.key\n }\n if(bucket > 0) {\n var otherHitNode = searchBucket(this.slabs[bucket-1], p)\n if(otherHitNode) {\n if(lastSegment) {\n if(orderSegments(otherHitNode.key, lastSegment) > 0) {\n lastSegment = otherHitNode.key\n lastHit = otherHitNode.value\n }\n } else {\n lastHit = otherHitNode.value\n lastSegment = otherHitNode.key\n }\n }\n }\n var horiz = this.horizontal[bucket]\n if(horiz.length > 0) {\n var hbucket = bounds.ge(horiz, p[1], compareHorizontal)\n if(hbucket < horiz.length) {\n var e = horiz[hbucket]\n if(p[1] === e.y) {\n if(e.closed) {\n return e.index\n } else {\n while(hbucket < horiz.length-1 && horiz[hbucket+1].y === p[1]) {\n hbucket = hbucket+1\n e = horiz[hbucket]\n if(e.closed) {\n return e.index\n }\n }\n if(e.y === p[1] && !e.start) {\n hbucket = hbucket+1\n if(hbucket >= horiz.length) {\n return lastHit\n }\n e = horiz[hbucket]\n }\n }\n }\n //Check if e is above/below last segment\n if(e.start) {\n if(lastSegment) {\n var o = orient(lastSegment[0], lastSegment[1], [p[0], e.y])\n if(lastSegment[0][0] > lastSegment[1][0]) {\n o = -o\n }\n if(o > 0) {\n lastHit = e.index\n }\n } else {\n lastHit = e.index\n }\n } else if(e.y !== p[1]) {\n lastHit = e.index\n }\n }\n }\n }\n return lastHit\n}\n\nfunction IntervalSegment(y, index, start, closed) {\n this.y = y\n this.index = index\n this.start = start\n this.closed = closed\n}\n\nfunction Event(x, segment, create, index) {\n this.x = x\n this.segment = segment\n this.create = create\n this.index = index\n}\n\n\nfunction createSlabDecomposition(segments) {\n var numSegments = segments.length\n var numEvents = 2 * numSegments\n var events = new Array(numEvents)\n for(var i=0; i 1.0) {\n t = 1.0\n }\n var ti = 1.0 - t\n var n = a.length\n var r = new Array(n)\n for(var i=0; i 0) || (a > 0 && b < 0)) {\n var p = lerpW(s, b, t, a)\n pos.push(p)\n neg.push(p.slice())\n }\n if(b < 0) {\n neg.push(t.slice())\n } else if(b > 0) {\n pos.push(t.slice())\n } else {\n pos.push(t.slice())\n neg.push(t.slice())\n }\n a = b\n }\n return { positive: pos, negative: neg }\n}\n\nfunction positive(points, plane) {\n var pos = []\n var a = planeT(points[points.length-1], plane)\n for(var s=points[points.length-1], t=points[0], i=0; i 0) || (a > 0 && b < 0)) {\n pos.push(lerpW(s, b, t, a))\n }\n if(b >= 0) {\n pos.push(t.slice())\n }\n a = b\n }\n return pos\n}\n\nfunction negative(points, plane) {\n var neg = []\n var a = planeT(points[points.length-1], plane)\n for(var s=points[points.length-1], t=points[0], i=0; i 0) || (a > 0 && b < 0)) {\n neg.push(lerpW(s, b, t, a))\n }\n if(b <= 0) {\n neg.push(t.slice())\n }\n a = b\n }\n return neg\n}\n},{\"robust-dot-product\":281,\"robust-sum\":289}],301:[function(_glvis_,module,exports){\n/* global window, exports, define */\n\n!function() {\n 'use strict'\n\n var re = {\n not_string: /[^s]/,\n not_bool: /[^t]/,\n not_type: /[^T]/,\n not_primitive: /[^v]/,\n number: /[diefg]/,\n numeric_arg: /[bcdiefguxX]/,\n json: /[j]/,\n not_json: /[^j]/,\n text: /^[^\\x25]+/,\n modulo: /^\\x25{2}/,\n placeholder: /^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,\n key: /^([a-z_][a-z_\\d]*)/i,\n key_access: /^\\.([a-z_][a-z_\\d]*)/i,\n index_access: /^\\[(\\d+)\\]/,\n sign: /^[+-]/\n }\n\n function sprintf(key) {\n // `arguments` is not an array, but should be fine for this call\n return sprintf_format(sprintf_parse(key), arguments)\n }\n\n function vsprintf(fmt, argv) {\n return sprintf.apply(null, [fmt].concat(argv || []))\n }\n\n function sprintf_format(parse_tree, argv) {\n var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign\n for (i = 0; i < tree_length; i++) {\n if (typeof parse_tree[i] === 'string') {\n output += parse_tree[i]\n }\n else if (typeof parse_tree[i] === 'object') {\n ph = parse_tree[i] // convenience purposes only\n if (ph.keys) { // keyword argument\n arg = argv[cursor]\n for (k = 0; k < ph.keys.length; k++) {\n if (arg == undefined) {\n throw new Error(sprintf('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"', ph.keys[k], ph.keys[k-1]))\n }\n arg = arg[ph.keys[k]]\n }\n }\n else if (ph.param_no) { // positional argument (explicit)\n arg = argv[ph.param_no]\n }\n else { // positional argument (implicit)\n arg = argv[cursor++]\n }\n\n if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {\n arg = arg()\n }\n\n if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {\n throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))\n }\n\n if (re.number.test(ph.type)) {\n is_positive = arg >= 0\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2)\n break\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10))\n break\n case 'd':\n case 'i':\n arg = parseInt(arg, 10)\n break\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)\n break\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()\n break\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)\n break\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)\n break\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8)\n break\n case 's':\n arg = String(arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 't':\n arg = String(!!arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'u':\n arg = parseInt(arg, 10) >>> 0\n break\n case 'v':\n arg = arg.valueOf()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16)\n break\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()\n break\n }\n if (re.json.test(ph.type)) {\n output += arg\n }\n else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-'\n arg = arg.toString().replace(re.sign, '')\n }\n else {\n sign = ''\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '\n pad_length = ph.width - (sign + arg).length\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)\n }\n }\n }\n return output\n }\n\n var sprintf_cache = Object.create(null)\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt]\n }\n\n var _fmt = fmt, match, parse_tree = [], arg_names = 0\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0])\n }\n else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%')\n }\n else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1\n var field_list = [], replacement_field = match[2], field_match = []\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n }\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n match[2] = field_list\n }\n else {\n arg_names |= 2\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n )\n }\n else {\n throw new SyntaxError('[sprintf] unexpected placeholder')\n }\n _fmt = _fmt.substring(match[0].length)\n }\n return sprintf_cache[fmt] = parse_tree\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (typeof exports !== 'undefined') {\n exports['sprintf'] = sprintf\n exports['vsprintf'] = vsprintf\n }\n if (typeof window !== 'undefined') {\n window['sprintf'] = sprintf\n window['vsprintf'] = vsprintf\n\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n }\n })\n }\n }\n /* eslint-enable quote-props */\n}(); // eslint-disable-line\n\n},{}],302:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = surfaceNets\n\nvar generateContourExtractor = _glvis_(\"ndarray-extract-contour\")\nvar zeroCrossings = _glvis_(\"zero-crossings\")\n\nvar allFns = {\n \"2d\": function (genContour, order, dtype) {\n var contour = genContour({\n order: order,\n scalarArguments: 3,\n getters: dtype === \"generic\" ? [0] : undefined,\n phase: function phaseFunc(p, a, b, c) {\n return (p > c) | 0;\n },\n vertex: function vertexFunc(d0, d1, v0, v1, v2, v3, p0, p1, p2, p3, a, b, c) {\n var m = ((p0 << 0) + (p1 << 1) + (p2 << 2) + (p3 << 3)) | 0;\n if (m === 0 || m === 15) {\n return;\n }\n switch (m) {\n case 0:\n a.push([d0 - 0.5, d1 - 0.5]);\n break;\n case 1:\n a.push([d0 - 0.25 - (0.25 * (v1 + v0 - 2 * c)) / (v0 - v1), d1 - 0.25 - (0.25 * (v2 + v0 - 2 * c)) / (v0 - v2)]);\n break;\n case 2:\n a.push([d0 - 0.75 - (0.25 * (-v1 - v0 + 2 * c)) / (v1 - v0), d1 - 0.25 - (0.25 * (v3 + v1 - 2 * c)) / (v1 - v3)]);\n break;\n case 3:\n a.push([d0 - 0.5, d1 - 0.5 - (0.5 * (v2 + v0 + v3 + v1 - 4 * c)) / (v0 - v2 + v1 - v3)]);\n break;\n case 4:\n a.push([d0 - 0.25 - (0.25 * (v3 + v2 - 2 * c)) / (v2 - v3), d1 - 0.75 - (0.25 * (-v2 - v0 + 2 * c)) / (v2 - v0)]);\n break;\n case 5:\n a.push([d0 - 0.5 - (0.5 * (v1 + v0 + v3 + v2 - 4 * c)) / (v0 - v1 + v2 - v3), d1 - 0.5]);\n break;\n case 6:\n a.push([d0 - 0.5 - (0.25 * (-v1 - v0 + v3 + v2)) / (v1 - v0 + v2 - v3), d1 - 0.5 - (0.25 * (-v2 - v0 + v3 + v1)) / (v2 - v0 + v1 - v3)]);\n break;\n case 7:\n a.push([d0 - 0.75 - (0.25 * (v3 + v2 - 2 * c)) / (v2 - v3), d1 - 0.75 - (0.25 * (v3 + v1 - 2 * c)) / (v1 - v3)]);\n break;\n case 8:\n a.push([d0 - 0.75 - (0.25 * (-v3 - v2 + 2 * c)) / (v3 - v2), d1 - 0.75 - (0.25 * (-v3 - v1 + 2 * c)) / (v3 - v1)]);\n break;\n case 9:\n a.push([d0 - 0.5 - (0.25 * (v1 + v0 + -v3 - v2)) / (v0 - v1 + v3 - v2), d1 - 0.5 - (0.25 * (v2 + v0 + -v3 - v1)) / (v0 - v2 + v3 - v1)]);\n break;\n case 10:\n a.push([d0 - 0.5 - (0.5 * (-v1 - v0 + -v3 - v2 + 4 * c)) / (v1 - v0 + v3 - v2), d1 - 0.5]);\n break;\n case 11:\n a.push([d0 - 0.25 - (0.25 * (-v3 - v2 + 2 * c)) / (v3 - v2), d1 - 0.75 - (0.25 * (v2 + v0 - 2 * c)) / (v0 - v2)]);\n break;\n case 12:\n a.push([d0 - 0.5, d1 - 0.5 - (0.5 * (-v2 - v0 + -v3 - v1 + 4 * c)) / (v2 - v0 + v3 - v1)]);\n break;\n case 13:\n a.push([d0 - 0.75 - (0.25 * (v1 + v0 - 2 * c)) / (v0 - v1), d1 - 0.25 - (0.25 * (-v3 - v1 + 2 * c)) / (v3 - v1)]);\n break;\n case 14:\n a.push([d0 - 0.25 - (0.25 * (-v1 - v0 + 2 * c)) / (v1 - v0), d1 - 0.25 - (0.25 * (-v2 - v0 + 2 * c)) / (v2 - v0)]);\n break;\n case 15:\n a.push([d0 - 0.5, d1 - 0.5]);\n break;\n }\n },\n cell: function cellFunc(v0, v1, c0, c1, p0, p1, a, b, c) {\n if (p0) {\n b.push([v0, v1]);\n } else {\n b.push([v1, v0]);\n }\n },\n });\n return function (array, level) {\n var verts = [],\n cells = [];\n contour(array, verts, cells, level);\n return { positions: verts, cells: cells };\n };\n }\n}\n\nfunction buildSurfaceNets(order, dtype) {\n var inKey = order.length + 'd'\n var fn = allFns[inKey]\n if(fn) return fn(generateContourExtractor, order, dtype)\n}\n\n//1D case: Need to handle specially\nfunction mesh1D(array, level) {\n var zc = zeroCrossings(array, level)\n var n = zc.length\n var npos = new Array(n)\n var ncel = new Array(n)\n for(var i=0; i0) {\n shapeX += 0.02\n }\n }\n\n var data = new Float32Array(bufferSize)\n var ptr = 0\n var xOffset = -0.5 * shapeX\n for(var i=0; i Math.max(vy, vz)) {\n u[2] = 1\n } else if(vy > Math.max(vx, vz)) {\n u[0] = 1\n } else {\n u[1] = 1\n }\n\n var vv = 0\n var uv = 0\n for(var i=0; i<3; ++i ) {\n vv += v[i] * v[i]\n uv += u[i] * v[i]\n }\n for(var i=0; i<3; ++i) {\n u[i] -= (uv / vv) * v[i]\n }\n normalize3(u, u)\n return u\n}\n\nfunction TurntableController(zoomMin, zoomMax, center, up, right, radius, theta, phi) {\n this.center = filterVector(center)\n this.up = filterVector(up)\n this.right = filterVector(right)\n this.radius = filterVector([radius])\n this.angle = filterVector([theta, phi])\n this.angle.bounds = [[-Infinity,-Math.PI/2], [Infinity,Math.PI/2]]\n this.setDistanceLimits(zoomMin, zoomMax)\n\n this.computedCenter = this.center.curve(0)\n this.computedUp = this.up.curve(0)\n this.computedRight = this.right.curve(0)\n this.computedRadius = this.radius.curve(0)\n this.computedAngle = this.angle.curve(0)\n this.computedToward = [0,0,0]\n this.computedEye = [0,0,0]\n this.computedMatrix = new Array(16)\n for(var i=0; i<16; ++i) {\n this.computedMatrix[i] = 0.5\n }\n\n this.recalcMatrix(0)\n}\n\nvar proto = TurntableController.prototype\n\nproto.setDistanceLimits = function(minDist, maxDist) {\n if(minDist > 0) {\n minDist = Math.log(minDist)\n } else {\n minDist = -Infinity\n }\n if(maxDist > 0) {\n maxDist = Math.log(maxDist)\n } else {\n maxDist = Infinity\n }\n maxDist = Math.max(maxDist, minDist)\n this.radius.bounds[0][0] = minDist\n this.radius.bounds[1][0] = maxDist\n}\n\nproto.getDistanceLimits = function(out) {\n var bounds = this.radius.bounds[0]\n if(out) {\n out[0] = Math.exp(bounds[0][0])\n out[1] = Math.exp(bounds[1][0])\n return out\n }\n return [ Math.exp(bounds[0][0]), Math.exp(bounds[1][0]) ]\n}\n\nproto.recalcMatrix = function(t) {\n //Recompute curves\n this.center.curve(t)\n this.up.curve(t)\n this.right.curve(t)\n this.radius.curve(t)\n this.angle.curve(t)\n\n //Compute frame for camera matrix\n var up = this.computedUp\n var right = this.computedRight\n var uu = 0.0\n var ur = 0.0\n for(var i=0; i<3; ++i) {\n ur += up[i] * right[i]\n uu += up[i] * up[i]\n }\n var ul = Math.sqrt(uu)\n var rr = 0.0\n for(var i=0; i<3; ++i) {\n right[i] -= up[i] * ur / uu\n rr += right[i] * right[i]\n up[i] /= ul\n }\n var rl = Math.sqrt(rr)\n for(var i=0; i<3; ++i) {\n right[i] /= rl\n }\n\n //Compute toward vector\n var toward = this.computedToward\n cross(toward, up, right)\n normalize3(toward, toward)\n\n //Compute angular parameters\n var radius = Math.exp(this.computedRadius[0])\n var theta = this.computedAngle[0]\n var phi = this.computedAngle[1]\n\n var ctheta = Math.cos(theta)\n var stheta = Math.sin(theta)\n var cphi = Math.cos(phi)\n var sphi = Math.sin(phi)\n\n var center = this.computedCenter\n\n var wx = ctheta * cphi \n var wy = stheta * cphi\n var wz = sphi\n\n var sx = -ctheta * sphi\n var sy = -stheta * sphi\n var sz = cphi\n\n var eye = this.computedEye\n var mat = this.computedMatrix\n for(var i=0; i<3; ++i) {\n var x = wx * right[i] + wy * toward[i] + wz * up[i]\n mat[4*i+1] = sx * right[i] + sy * toward[i] + sz * up[i]\n mat[4*i+2] = x\n mat[4*i+3] = 0.0\n }\n\n var ax = mat[1]\n var ay = mat[5]\n var az = mat[9]\n var bx = mat[2]\n var by = mat[6]\n var bz = mat[10]\n var cx = ay * bz - az * by\n var cy = az * bx - ax * bz\n var cz = ax * by - ay * bx\n var cl = len3(cx, cy, cz)\n cx /= cl\n cy /= cl\n cz /= cl\n mat[0] = cx\n mat[4] = cy\n mat[8] = cz\n\n for(var i=0; i<3; ++i) {\n eye[i] = center[i] + mat[2+4*i]*radius\n }\n\n for(var i=0; i<3; ++i) {\n var rr = 0.0\n for(var j=0; j<3; ++j) {\n rr += mat[i+4*j] * eye[j]\n }\n mat[12+i] = -rr\n }\n mat[15] = 1.0\n}\n\nproto.getMatrix = function(t, result) {\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n if(result) {\n for(var i=0; i<16; ++i) {\n result[i] = mat[i]\n }\n return result\n }\n return mat\n}\n\nvar zAxis = [0,0,0]\nproto.rotate = function(t, dtheta, dphi, droll) {\n this.angle.move(t, dtheta, dphi)\n if(droll) {\n this.recalcMatrix(t)\n\n var mat = this.computedMatrix\n zAxis[0] = mat[2]\n zAxis[1] = mat[6]\n zAxis[2] = mat[10]\n\n var up = this.computedUp\n var right = this.computedRight\n var toward = this.computedToward\n\n for(var i=0; i<3; ++i) {\n mat[4*i] = up[i]\n mat[4*i+1] = right[i]\n mat[4*i+2] = toward[i]\n }\n rotateM(mat, mat, droll, zAxis)\n for(var i=0; i<3; ++i) {\n up[i] = mat[4*i]\n right[i] = mat[4*i+1]\n }\n\n this.up.set(t, up[0], up[1], up[2])\n this.right.set(t, right[0], right[1], right[2])\n }\n}\n\nproto.pan = function(t, dx, dy, dz) {\n dx = dx || 0.0\n dy = dy || 0.0\n dz = dz || 0.0\n\n this.recalcMatrix(t)\n var mat = this.computedMatrix\n\n var dist = Math.exp(this.computedRadius[0])\n\n var ux = mat[1]\n var uy = mat[5]\n var uz = mat[9]\n var ul = len3(ux, uy, uz)\n ux /= ul\n uy /= ul\n uz /= ul\n\n var rx = mat[0]\n var ry = mat[4]\n var rz = mat[8]\n var ru = rx * ux + ry * uy + rz * uz\n rx -= ux * ru\n ry -= uy * ru\n rz -= uz * ru\n var rl = len3(rx, ry, rz)\n rx /= rl\n ry /= rl\n rz /= rl\n\n var vx = rx * dx + ux * dy\n var vy = ry * dx + uy * dy\n var vz = rz * dx + uz * dy\n this.center.move(t, vx, vy, vz)\n\n //Update z-component of radius\n var radius = Math.exp(this.computedRadius[0])\n radius = Math.max(1e-4, radius + dz)\n this.radius.set(t, Math.log(radius))\n}\n\nproto.translate = function(t, dx, dy, dz) {\n this.center.move(t,\n dx||0.0,\n dy||0.0,\n dz||0.0)\n}\n\n//Recenters the coordinate axes\nproto.setMatrix = function(t, mat, axes, noSnap) {\n \n //Get the axes for tare\n var ushift = 1\n if(typeof axes === 'number') {\n ushift = (axes)|0\n } \n if(ushift < 0 || ushift > 3) {\n ushift = 1\n }\n var vshift = (ushift + 2) % 3\n var fshift = (ushift + 1) % 3\n\n //Recompute state for new t value\n if(!mat) { \n this.recalcMatrix(t)\n mat = this.computedMatrix\n }\n\n //Get right and up vectors\n var ux = mat[ushift]\n var uy = mat[ushift+4]\n var uz = mat[ushift+8]\n if(!noSnap) {\n var ul = len3(ux, uy, uz)\n ux /= ul\n uy /= ul\n uz /= ul\n } else {\n var ax = Math.abs(ux)\n var ay = Math.abs(uy)\n var az = Math.abs(uz)\n var am = Math.max(ax,ay,az)\n if(ax === am) {\n ux = (ux < 0) ? -1 : 1\n uy = uz = 0\n } else if(az === am) {\n uz = (uz < 0) ? -1 : 1\n ux = uy = 0\n } else {\n uy = (uy < 0) ? -1 : 1\n ux = uz = 0\n }\n }\n\n var rx = mat[vshift]\n var ry = mat[vshift+4]\n var rz = mat[vshift+8]\n var ru = rx * ux + ry * uy + rz * uz\n rx -= ux * ru\n ry -= uy * ru\n rz -= uz * ru\n var rl = len3(rx, ry, rz)\n rx /= rl\n ry /= rl\n rz /= rl\n \n var fx = uy * rz - uz * ry\n var fy = uz * rx - ux * rz\n var fz = ux * ry - uy * rx\n var fl = len3(fx, fy, fz)\n fx /= fl\n fy /= fl\n fz /= fl\n\n this.center.jump(t, ex, ey, ez)\n this.radius.idle(t)\n this.up.jump(t, ux, uy, uz)\n this.right.jump(t, rx, ry, rz)\n\n var phi, theta\n if(ushift === 2) {\n var cx = mat[1]\n var cy = mat[5]\n var cz = mat[9]\n var cr = cx * rx + cy * ry + cz * rz\n var cf = cx * fx + cy * fy + cz * fz\n if(tu < 0) {\n phi = -Math.PI/2\n } else {\n phi = Math.PI/2\n }\n theta = Math.atan2(cf, cr)\n } else {\n var tx = mat[2]\n var ty = mat[6]\n var tz = mat[10]\n var tu = tx * ux + ty * uy + tz * uz\n var tr = tx * rx + ty * ry + tz * rz\n var tf = tx * fx + ty * fy + tz * fz\n\n phi = Math.asin(clamp1(tu))\n theta = Math.atan2(tf, tr)\n }\n\n this.angle.jump(t, theta, phi)\n\n this.recalcMatrix(t)\n var dx = mat[2]\n var dy = mat[6]\n var dz = mat[10]\n\n var imat = this.computedMatrix\n invert44(imat, mat)\n var w = imat[15]\n var ex = imat[12] / w\n var ey = imat[13] / w\n var ez = imat[14] / w\n\n var gs = Math.exp(this.computedRadius[0])\n this.center.jump(t, ex-dx*gs, ey-dy*gs, ez-dz*gs)\n}\n\nproto.lastT = function() {\n return Math.max(\n this.center.lastT(),\n this.up.lastT(),\n this.right.lastT(),\n this.radius.lastT(),\n this.angle.lastT())\n}\n\nproto.idle = function(t) {\n this.center.idle(t)\n this.up.idle(t)\n this.right.idle(t)\n this.radius.idle(t)\n this.angle.idle(t)\n}\n\nproto.flush = function(t) {\n this.center.flush(t)\n this.up.flush(t)\n this.right.flush(t)\n this.radius.flush(t)\n this.angle.flush(t)\n}\n\nproto.setDistance = function(t, d) {\n if(d > 0) {\n this.radius.set(t, Math.log(d))\n }\n}\n\nproto.lookAt = function(t, eye, center, up) {\n this.recalcMatrix(t)\n\n eye = eye || this.computedEye\n center = center || this.computedCenter\n up = up || this.computedUp\n\n var ux = up[0]\n var uy = up[1]\n var uz = up[2]\n var ul = len3(ux, uy, uz)\n if(ul < 1e-6) {\n return\n }\n ux /= ul\n uy /= ul\n uz /= ul\n\n var tx = eye[0] - center[0]\n var ty = eye[1] - center[1]\n var tz = eye[2] - center[2]\n var tl = len3(tx, ty, tz)\n if(tl < 1e-6) {\n return\n }\n tx /= tl\n ty /= tl\n tz /= tl\n\n var right = this.computedRight\n var rx = right[0]\n var ry = right[1]\n var rz = right[2]\n var ru = ux*rx + uy*ry + uz*rz\n rx -= ru * ux\n ry -= ru * uy\n rz -= ru * uz\n var rl = len3(rx, ry, rz)\n\n if(rl < 0.01) {\n rx = uy * tz - uz * ty\n ry = uz * tx - ux * tz\n rz = ux * ty - uy * tx\n rl = len3(rx, ry, rz)\n if(rl < 1e-6) {\n return\n }\n }\n rx /= rl\n ry /= rl\n rz /= rl\n\n this.up.set(t, ux, uy, uz)\n this.right.set(t, rx, ry, rz)\n this.center.set(t, center[0], center[1], center[2])\n this.radius.set(t, Math.log(tl))\n\n var fx = uy * rz - uz * ry\n var fy = uz * rx - ux * rz\n var fz = ux * ry - uy * rx\n var fl = len3(fx, fy, fz)\n fx /= fl\n fy /= fl\n fz /= fl\n\n var tu = ux*tx + uy*ty + uz*tz\n var tr = rx*tx + ry*ty + rz*tz\n var tf = fx*tx + fy*ty + fz*tz\n\n var phi = Math.asin(clamp1(tu))\n var theta = Math.atan2(tf, tr)\n\n var angleState = this.angle._state\n var lastTheta = angleState[angleState.length-1]\n var lastPhi = angleState[angleState.length-2]\n lastTheta = lastTheta % (2.0 * Math.PI)\n var dp = Math.abs(lastTheta + 2.0 * Math.PI - theta)\n var d0 = Math.abs(lastTheta - theta)\n var dn = Math.abs(lastTheta - 2.0 * Math.PI - theta)\n if(dp < d0) {\n lastTheta += 2.0 * Math.PI\n }\n if(dn < d0) {\n lastTheta -= 2.0 * Math.PI\n }\n\n this.angle.jump(this.angle.lastT(), lastTheta, lastPhi)\n this.angle.set(t, theta, phi)\n}\n\nfunction createTurntableController(options) {\n options = options || {}\n\n var center = options.center || [0,0,0]\n var up = options.up || [0,1,0]\n var right = options.right || findOrthoPair(up)\n var radius = options.radius || 1.0\n var theta = options.theta || 0.0\n var phi = options.phi || 0.0\n\n center = [].slice.call(center, 0, 3)\n\n up = [].slice.call(up, 0, 3)\n normalize3(up, up)\n\n right = [].slice.call(right, 0, 3)\n normalize3(right, right)\n\n if('eye' in options) {\n var eye = options.eye\n var toward = [\n eye[0]-center[0],\n eye[1]-center[1],\n eye[2]-center[2]\n ]\n cross(right, toward, up)\n if(len3(right[0], right[1], right[2]) < 1e-6) {\n right = findOrthoPair(up)\n } else {\n normalize3(right, right)\n }\n\n radius = len3(toward[0], toward[1], toward[2])\n\n var ut = dot3(up, toward) / radius\n var rt = dot3(right, toward) / radius\n phi = Math.acos(ut)\n theta = Math.acos(rt)\n }\n\n //Use logarithmic coordinates for radius\n radius = Math.log(radius)\n\n //Return the controller\n return new TurntableController(\n options.zoomMin,\n options.zoomMax,\n center,\n up,\n right,\n radius,\n theta,\n phi)\n}\n},{\"filtered-vector\":68,\"gl-mat4/invert\":98,\"gl-mat4/rotate\":103,\"gl-vec3/cross\":157,\"gl-vec3/dot\":162,\"gl-vec3/normalize\":179}],306:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = twoProduct\n\nvar SPLITTER = +(Math.pow(2, 27) + 1.0)\n\nfunction twoProduct(a, b, result) {\n var x = a * b\n\n var c = SPLITTER * a\n var abig = c - a\n var ahi = c - abig\n var alo = a - ahi\n\n var d = SPLITTER * b\n var bbig = d - b\n var bhi = d - bbig\n var blo = b - bhi\n\n var err1 = x - (ahi * bhi)\n var err2 = err1 - (alo * bhi)\n var err3 = err2 - (ahi * blo)\n\n var y = alo * blo - err3\n\n if(result) {\n result[0] = y\n result[1] = x\n return result\n }\n\n return [ y, x ]\n}\n},{}],307:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = fastTwoSum\n\nfunction fastTwoSum(a, b, result) {\n\tvar x = a + b\n\tvar bv = x - a\n\tvar av = x - bv\n\tvar br = b - bv\n\tvar ar = a - av\n\tif(result) {\n\t\tresult[0] = ar + br\n\t\tresult[1] = x\n\t\treturn result\n\t}\n\treturn [ar+br, x]\n}\n},{}],308:[function(_glvis_,module,exports){\n(function (global){(function (){\n'use strict'\n\nvar bits = _glvis_('bit-twiddle')\nvar dup = _glvis_('dup')\nvar Buffer = _glvis_('buffer').Buffer\n\n//Legacy pool support\nif(!global.__TYPEDARRAY_POOL) {\n global.__TYPEDARRAY_POOL = {\n UINT8 : dup([32, 0])\n , UINT16 : dup([32, 0])\n , UINT32 : dup([32, 0])\n , BIGUINT64 : dup([32, 0])\n , INT8 : dup([32, 0])\n , INT16 : dup([32, 0])\n , INT32 : dup([32, 0])\n , BIGINT64 : dup([32, 0])\n , FLOAT : dup([32, 0])\n , DOUBLE : dup([32, 0])\n , DATA : dup([32, 0])\n , UINT8C : dup([32, 0])\n , BUFFER : dup([32, 0])\n }\n}\n\nvar hasUint8C = (typeof Uint8ClampedArray) !== 'undefined'\nvar hasBigUint64 = (typeof BigUint64Array) !== 'undefined'\nvar hasBigInt64 = (typeof BigInt64Array) !== 'undefined'\nvar POOL = global.__TYPEDARRAY_POOL\n\n//Upgrade pool\nif(!POOL.UINT8C) {\n POOL.UINT8C = dup([32, 0])\n}\nif(!POOL.BIGUINT64) {\n POOL.BIGUINT64 = dup([32, 0])\n}\nif(!POOL.BIGINT64) {\n POOL.BIGINT64 = dup([32, 0])\n}\nif(!POOL.BUFFER) {\n POOL.BUFFER = dup([32, 0])\n}\n\n//New technique: Only allocate from ArrayBufferView and Buffer\nvar DATA = POOL.DATA\n , BUFFER = POOL.BUFFER\n\nexports.free = function free(array) {\n if(Buffer.isBuffer(array)) {\n BUFFER[bits.log2(array.length)].push(array)\n } else {\n if(Object.prototype.toString.call(array) !== '[object ArrayBuffer]') {\n array = array.buffer\n }\n if(!array) {\n return\n }\n var n = array.length || array.byteLength\n var log_n = bits.log2(n)|0\n DATA[log_n].push(array)\n }\n}\n\nfunction freeArrayBuffer(buffer) {\n if(!buffer) {\n return\n }\n var n = buffer.length || buffer.byteLength\n var log_n = bits.log2(n)\n DATA[log_n].push(buffer)\n}\n\nfunction freeTypedArray(array) {\n freeArrayBuffer(array.buffer)\n}\n\nexports.freeUint8 =\nexports.freeUint16 =\nexports.freeUint32 =\nexports.freeBigUint64 =\nexports.freeInt8 =\nexports.freeInt16 =\nexports.freeInt32 =\nexports.freeBigInt64 =\nexports.freeFloat32 = \nexports.freeFloat =\nexports.freeFloat64 = \nexports.freeDouble = \nexports.freeUint8Clamped = \nexports.freeDataView = freeTypedArray\n\nexports.freeArrayBuffer = freeArrayBuffer\n\nexports.freeBuffer = function freeBuffer(array) {\n BUFFER[bits.log2(array.length)].push(array)\n}\n\nexports.malloc = function malloc(n, dtype) {\n if(dtype === undefined || dtype === 'arraybuffer') {\n return mallocArrayBuffer(n)\n } else {\n switch(dtype) {\n case 'uint8':\n return mallocUint8(n)\n case 'uint16':\n return mallocUint16(n)\n case 'uint32':\n return mallocUint32(n)\n case 'int8':\n return mallocInt8(n)\n case 'int16':\n return mallocInt16(n)\n case 'int32':\n return mallocInt32(n)\n case 'float':\n case 'float32':\n return mallocFloat(n)\n case 'double':\n case 'float64':\n return mallocDouble(n)\n case 'uint8_clamped':\n return mallocUint8Clamped(n)\n case 'bigint64':\n return mallocBigInt64(n)\n case 'biguint64':\n return mallocBigUint64(n)\n case 'buffer':\n return mallocBuffer(n)\n case 'data':\n case 'dataview':\n return mallocDataView(n)\n\n default:\n return null\n }\n }\n return null\n}\n\nfunction mallocArrayBuffer(n) {\n var n = bits.nextPow2(n)\n var log_n = bits.log2(n)\n var d = DATA[log_n]\n if(d.length > 0) {\n return d.pop()\n }\n return new ArrayBuffer(n)\n}\nexports.mallocArrayBuffer = mallocArrayBuffer\n\nfunction mallocUint8(n) {\n return new Uint8Array(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocUint8 = mallocUint8\n\nfunction mallocUint16(n) {\n return new Uint16Array(mallocArrayBuffer(2*n), 0, n)\n}\nexports.mallocUint16 = mallocUint16\n\nfunction mallocUint32(n) {\n return new Uint32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocUint32 = mallocUint32\n\nfunction mallocInt8(n) {\n return new Int8Array(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocInt8 = mallocInt8\n\nfunction mallocInt16(n) {\n return new Int16Array(mallocArrayBuffer(2*n), 0, n)\n}\nexports.mallocInt16 = mallocInt16\n\nfunction mallocInt32(n) {\n return new Int32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocInt32 = mallocInt32\n\nfunction mallocFloat(n) {\n return new Float32Array(mallocArrayBuffer(4*n), 0, n)\n}\nexports.mallocFloat32 = exports.mallocFloat = mallocFloat\n\nfunction mallocDouble(n) {\n return new Float64Array(mallocArrayBuffer(8*n), 0, n)\n}\nexports.mallocFloat64 = exports.mallocDouble = mallocDouble\n\nfunction mallocUint8Clamped(n) {\n if(hasUint8C) {\n return new Uint8ClampedArray(mallocArrayBuffer(n), 0, n)\n } else {\n return mallocUint8(n)\n }\n}\nexports.mallocUint8Clamped = mallocUint8Clamped\n\nfunction mallocBigUint64(n) {\n if(hasBigUint64) {\n return new BigUint64Array(mallocArrayBuffer(8*n), 0, n)\n } else {\n return null;\n }\n}\nexports.mallocBigUint64 = mallocBigUint64\n\nfunction mallocBigInt64(n) {\n if (hasBigInt64) {\n return new BigInt64Array(mallocArrayBuffer(8*n), 0, n)\n } else {\n return null;\n }\n}\nexports.mallocBigInt64 = mallocBigInt64\n\nfunction mallocDataView(n) {\n return new DataView(mallocArrayBuffer(n), 0, n)\n}\nexports.mallocDataView = mallocDataView\n\nfunction mallocBuffer(n) {\n n = bits.nextPow2(n)\n var log_n = bits.log2(n)\n var cache = BUFFER[log_n]\n if(cache.length > 0) {\n return cache.pop()\n }\n return new Buffer(n)\n}\nexports.mallocBuffer = mallocBuffer\n\nexports.clearCache = function clearCache() {\n for(var i=0; i<32; ++i) {\n POOL.UINT8[i].length = 0\n POOL.UINT16[i].length = 0\n POOL.UINT32[i].length = 0\n POOL.INT8[i].length = 0\n POOL.INT16[i].length = 0\n POOL.INT32[i].length = 0\n POOL.FLOAT[i].length = 0\n POOL.DOUBLE[i].length = 0\n POOL.BIGUINT64[i].length = 0\n POOL.BIGINT64[i].length = 0\n POOL.UINT8C[i].length = 0\n DATA[i].length = 0\n BUFFER[i].length = 0\n }\n}\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"bit-twiddle\":32,\"buffer\":3,\"dup\":65}],309:[function(_glvis_,module,exports){\n\"use strict\"; \"use restrict\";\n\nmodule.exports = UnionFind;\n\nfunction UnionFind(count) {\n this.roots = new Array(count);\n this.ranks = new Array(count);\n \n for(var i=0; i\"\n var clsTag = \"\"\n\n var nOPN = opnTag.length\n var nCLS = clsTag.length\n\n var isRecursive = (TAG_CHR[0] === CHR_super0) ||\n (TAG_CHR[0] === CHR_sub0);\n\n var a = 0\n var b = -nCLS\n while (a > -1) {\n a = str.indexOf(opnTag, a)\n if(a === -1) break\n\n b = str.indexOf(clsTag, a + nOPN)\n if(b === -1) break\n\n if(b <= a) break\n\n for(var i = a; i < b + nCLS; ++i){\n if((i < a + nOPN) || (i >= b)) {\n map[i] = null\n str = str.substr(0, i) + \" \" + str.substr(i + 1)\n } else {\n if(map[i] !== null) {\n var pos = map[i].indexOf(TAG_CHR[0])\n if(pos === -1) {\n map[i] += TAG_CHR\n } else { // i.e. to handle multiple sub/super-scripts\n if(isRecursive) {\n // i.e to increase the sub/sup number\n map[i] = map[i].substr(0, pos + 1) + (1 + parseInt(map[i][pos + 1])) + map[i].substr(pos + 2)\n }\n }\n }\n }\n }\n\n var start = a + nOPN\n var remainingStr = str.substr(start, b - start)\n\n var c = remainingStr.indexOf(opnTag)\n if(c !== -1) a = c\n else a = b + nCLS\n }\n\n return map\n}\n\nfunction transformPositions(positions, options, size) {\n var align = options.textAlign || \"start\"\n var baseline = options.textBaseline || \"alphabetic\"\n\n var lo = [1<<30, 1<<30]\n var hi = [0,0]\n var n = positions.length\n for(var i=0; i/g, '\\n') // replace
tags with \\n in the string\n } else {\n rawString = rawString.replace(/\\/g, ' ') // don't accept
tags in the input and replace with space in this case\n }\n\n var activeStyle = \"\"\n var map = []\n for(j = 0; j < rawString.length; ++j) {\n map[j] = activeStyle\n }\n\n if(styletags.bolds === true) map = parseTag(TAG_bold, CHR_bold, rawString, map)\n if(styletags.italics === true) map = parseTag(TAG_italic, CHR_italic, rawString, map)\n if(styletags.superscripts === true) map = parseTag(TAG_super, CHR_super, rawString, map)\n if(styletags.subscripts === true) map = parseTag(TAG_sub, CHR_sub, rawString, map)\n\n var allStyles = []\n var plainText = \"\"\n for(j = 0; j < rawString.length; ++j) {\n if(map[j] !== null) {\n plainText += rawString[j]\n allStyles.push(map[j])\n }\n }\n\n var allTexts = plainText.split('\\n')\n\n var numberOfLines = allTexts.length\n var lineHeight = Math.round(lineSpacing * fontSize)\n var offsetX = fontSize\n var offsetY = fontSize * 2\n var maxWidth = 0\n var minHeight = numberOfLines * lineHeight + offsetY\n\n if(canvas.height < minHeight) {\n canvas.height = minHeight\n }\n\n context.fillStyle = \"#000\"\n context.fillRect(0, 0, canvas.width, canvas.height)\n\n context.fillStyle = \"#fff\"\n var i, j, xPos, yPos, zPos\n var nDone = 0\n\n var buffer = \"\"\n function writeBuffer() {\n if(buffer !== \"\") {\n var delta = context.measureText(buffer).width\n\n context.fillText(buffer, offsetX + xPos, offsetY + yPos)\n xPos += delta\n }\n }\n\n function getTextFontSize() {\n return \"\" + Math.round(zPos) + \"px \";\n }\n\n function changeStyle(oldStyle, newStyle) {\n var ctxFont = \"\" + context.font;\n\n if(styletags.subscripts === true) {\n var oldIndex_Sub = oldStyle.indexOf(CHR_sub0);\n var newIndex_Sub = newStyle.indexOf(CHR_sub0);\n\n var oldSub = (oldIndex_Sub > -1) ? parseInt(oldStyle[1 + oldIndex_Sub]) : 0;\n var newSub = (newIndex_Sub > -1) ? parseInt(newStyle[1 + newIndex_Sub]) : 0;\n\n if(oldSub !== newSub) {\n ctxFont = ctxFont.replace(getTextFontSize(), \"?px \")\n zPos *= Math.pow(0.75, (newSub - oldSub))\n ctxFont = ctxFont.replace(\"?px \", getTextFontSize())\n }\n yPos += 0.25 * lineHeight * (newSub - oldSub);\n }\n\n if(styletags.superscripts === true) {\n var oldIndex_Super = oldStyle.indexOf(CHR_super0);\n var newIndex_Super = newStyle.indexOf(CHR_super0);\n\n var oldSuper = (oldIndex_Super > -1) ? parseInt(oldStyle[1 + oldIndex_Super]) : 0;\n var newSuper = (newIndex_Super > -1) ? parseInt(newStyle[1 + newIndex_Super]) : 0;\n\n if(oldSuper !== newSuper) {\n ctxFont = ctxFont.replace(getTextFontSize(), \"?px \")\n zPos *= Math.pow(0.75, (newSuper - oldSuper))\n ctxFont = ctxFont.replace(\"?px \", getTextFontSize())\n }\n yPos -= 0.25 * lineHeight * (newSuper - oldSuper);\n }\n\n if(styletags.bolds === true) {\n var wasBold = (oldStyle.indexOf(CHR_bold) > -1)\n var is_Bold = (newStyle.indexOf(CHR_bold) > -1)\n\n if(!wasBold && is_Bold) {\n if(wasItalic) {\n ctxFont = ctxFont.replace(\"italic \", \"italic bold \")\n } else {\n ctxFont = \"bold \" + ctxFont\n }\n }\n if(wasBold && !is_Bold) {\n ctxFont = ctxFont.replace(\"bold \", '')\n }\n }\n\n if(styletags.italics === true) {\n var wasItalic = (oldStyle.indexOf(CHR_italic) > -1)\n var is_Italic = (newStyle.indexOf(CHR_italic) > -1)\n\n if(!wasItalic && is_Italic) {\n ctxFont = \"italic \" + ctxFont\n }\n if(wasItalic && !is_Italic) {\n ctxFont = ctxFont.replace(\"italic \", '')\n }\n }\n context.font = ctxFont\n }\n\n for(i = 0; i < numberOfLines; ++i) {\n var txt = allTexts[i] + '\\n'\n xPos = 0\n yPos = i * lineHeight\n zPos = fontSize\n\n buffer = \"\"\n \n for(j = 0; j < txt.length; ++j) {\n var style = (j + nDone < allStyles.length) ? allStyles[j + nDone] : allStyles[allStyles.length - 1]\n if(activeStyle === style) {\n buffer += txt[j]\n } else {\n writeBuffer()\n buffer = txt[j]\n\n if(style !== undefined) {\n changeStyle(activeStyle, style)\n activeStyle = style\n }\n }\n }\n writeBuffer()\n\n nDone += txt.length\n\n var width = Math.round(xPos + 2 * offsetX) | 0\n if(maxWidth < width) maxWidth = width\n }\n\n //Cut pixels from image\n var xCut = maxWidth\n var yCut = offsetY + lineHeight * numberOfLines\n var pixels = ndarray(context.getImageData(0, 0, xCut, yCut).data, [yCut, xCut, 4])\n return pixels.pick(-1, -1, 0).transpose(1, 0)\n}\n\nfunction getContour(pixels, doSimplify) {\n var contour = surfaceNets(pixels, 128)\n if(doSimplify) {\n return simplify(contour.cells, contour.positions, 0.25)\n }\n return {\n edges: contour.cells,\n positions: contour.positions\n }\n}\n\nfunction processPixelsImpl(pixels, options, size, simplify) {\n //Extract contour\n var contour = getContour(pixels, simplify)\n\n //Apply warp to positions\n var positions = transformPositions(contour.positions, options, size)\n var edges = contour.edges\n var flip = \"ccw\" === options.orientation\n\n //Clean up the PSLG, resolve self intersections, etc.\n cleanPSLG(positions, edges)\n\n //If triangulate flag passed, triangulate the result\n if(options.polygons || options.polygon || options.polyline) {\n var result = toPolygonCrappy(edges, positions)\n var nresult = new Array(result.length)\n for(var i=0; i 0) size =\n options.size\n\n if(options.lineSpacing &&\n options.lineSpacing > 0) lineSpacing =\n options.lineSpacing\n\n if(options.styletags &&\n options.styletags.breaklines) styletags.breaklines =\n options.styletags.breaklines ? true : false\n\n if(options.styletags &&\n options.styletags.bolds) styletags.bolds =\n options.styletags.bolds ? true : false\n\n if(options.styletags &&\n options.styletags.italics) styletags.italics =\n options.styletags.italics ? true : false\n\n if(options.styletags &&\n options.styletags.subscripts) styletags.subscripts =\n options.styletags.subscripts ? true : false\n\n if(options.styletags &&\n options.styletags.superscripts) styletags.superscripts =\n options.styletags.superscripts ? true : false\n }\n\n context.font = [\n options.fontStyle,\n options.fontVariant,\n options.fontWeight,\n size + \"px\",\n options.font\n ].filter(function(d) {return d}).join(\" \")\n context.textAlign = \"start\"\n context.textBaseline = \"alphabetic\"\n context.direction = \"ltr\"\n\n var pixels = getPixels(canvas, context, str, size, lineSpacing, styletags)\n\n return processPixels(pixels, options, size)\n}\n\n},{\"cdt2d\":42,\"clean-pslg\":50,\"ndarray\":259,\"planar-graph-to-polyline\":268,\"simplify-planar-graph\":297,\"surface-nets\":302}],313:[function(_glvis_,module,exports){\n// Copyright (C) 2011 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview Install a leaky WeakMap emulation on platforms that\n * don't provide a built-in one.\n *\n *

Assumes that an ES5 platform where, if {@code WeakMap} is\n * already present, then it conforms to the anticipated ES6\n * specification. To run this file on an ES5 or almost ES5\n * implementation where the {@code WeakMap} specification does not\n * quite conform, run repairES5.js first.\n *\n *

Even though WeakMapModule is not global, the linter thinks it\n * is, which is why it is in the overrides list below.\n *\n *

NOTE: Before using this WeakMap emulation in a non-SES\n * environment, see the note below about hiddenRecord.\n *\n * @author Mark S. Miller\n * @requires crypto, ArrayBuffer, Uint8Array, navigator, console\n * @overrides WeakMap, ses, Proxy\n * @overrides WeakMapModule\n */\n\n/**\n * This {@code WeakMap} emulation is observably equivalent to the\n * ES-Harmony WeakMap, but with leakier garbage collection properties.\n *\n *

As with true WeakMaps, in this emulation, a key does not\n * retain maps indexed by that key and (crucially) a map does not\n * retain the keys it indexes. A map by itself also does not retain\n * the values associated with that map.\n *\n *

However, the values associated with a key in some map are\n * retained so long as that key is retained and those associations are\n * not overridden. For example, when used to support membranes, all\n * values exported from a given membrane will live for the lifetime\n * they would have had in the absence of an interposed membrane. Even\n * when the membrane is revoked, all objects that would have been\n * reachable in the absence of revocation will still be reachable, as\n * far as the GC can tell, even though they will no longer be relevant\n * to ongoing computation.\n *\n *

The API implemented here is approximately the API as implemented\n * in FF6.0a1 and agreed to by MarkM, Andreas Gal, and Dave Herman,\n * rather than the offially approved proposal page. TODO(erights):\n * upgrade the ecmascript WeakMap proposal page to explain this API\n * change and present to EcmaScript committee for their approval.\n *\n *

The first difference between the emulation here and that in\n * FF6.0a1 is the presence of non enumerable {@code get___, has___,\n * set___, and delete___} methods on WeakMap instances to represent\n * what would be the hidden internal properties of a primitive\n * implementation. Whereas the FF6.0a1 WeakMap.prototype methods\n * require their {@code this} to be a genuine WeakMap instance (i.e.,\n * an object of {@code [[Class]]} \"WeakMap}), since there is nothing\n * unforgeable about the pseudo-internal method names used here,\n * nothing prevents these emulated prototype methods from being\n * applied to non-WeakMaps with pseudo-internal methods of the same\n * names.\n *\n *

Another difference is that our emulated {@code\n * WeakMap.prototype} is not itself a WeakMap. A problem with the\n * current FF6.0a1 API is that WeakMap.prototype is itself a WeakMap\n * providing ambient mutability and an ambient communications\n * channel. Thus, if a WeakMap is already present and has this\n * problem, repairES5.js wraps it in a safe wrappper in order to\n * prevent access to this channel. (See\n * PATCH_MUTABLE_FROZEN_WEAKMAP_PROTO in repairES5.js).\n */\n\n/**\n * If this is a full secureable ES5 platform and the ES-Harmony {@code WeakMap} is\n * absent, install an approximate emulation.\n *\n *

If WeakMap is present but cannot store some objects, use our approximate\n * emulation as a wrapper.\n *\n *

If this is almost a secureable ES5 platform, then WeakMap.js\n * should be run after repairES5.js.\n *\n *

See {@code WeakMap} for documentation of the garbage collection\n * properties of this WeakMap emulation.\n */\n(function WeakMapModule() {\n \"use strict\";\n\n if (typeof ses !== 'undefined' && ses.ok && !ses.ok()) {\n // already too broken, so give up\n return;\n }\n\n /**\n * In some cases (current Firefox), we must make a choice betweeen a\n * WeakMap which is capable of using all varieties of host objects as\n * keys and one which is capable of safely using proxies as keys. See\n * comments below about HostWeakMap and DoubleWeakMap for details.\n *\n * This function (which is a global, not exposed to guests) marks a\n * WeakMap as permitted to do what is necessary to index all host\n * objects, at the cost of making it unsafe for proxies.\n *\n * Do not apply this function to anything which is not a genuine\n * fresh WeakMap.\n */\n function weakMapPermitHostObjects(map) {\n // identity of function used as a secret -- good enough and cheap\n if (map.permitHostObjects___) {\n map.permitHostObjects___(weakMapPermitHostObjects);\n }\n }\n if (typeof ses !== 'undefined') {\n ses.weakMapPermitHostObjects = weakMapPermitHostObjects;\n }\n\n // IE 11 has no Proxy but has a broken WeakMap such that we need to patch\n // it using DoubleWeakMap; this flag tells DoubleWeakMap so.\n var doubleWeakMapCheckSilentFailure = false;\n\n // Check if there is already a good-enough WeakMap implementation, and if so\n // exit without replacing it.\n if (typeof WeakMap === 'function') {\n var HostWeakMap = WeakMap;\n // There is a WeakMap -- is it good enough?\n if (typeof navigator !== 'undefined' &&\n /Firefox/.test(navigator.userAgent)) {\n // We're now *assuming not*, because as of this writing (2013-05-06)\n // Firefox's WeakMaps have a miscellany of objects they won't accept, and\n // we don't want to make an exhaustive list, and testing for just one\n // will be a problem if that one is fixed alone (as they did for Event).\n\n // If there is a platform that we *can* reliably test on, here's how to\n // do it:\n // var problematic = ... ;\n // var testHostMap = new HostWeakMap();\n // try {\n // testHostMap.set(problematic, 1); // Firefox 20 will throw here\n // if (testHostMap.get(problematic) === 1) {\n // return;\n // }\n // } catch (e) {}\n\n } else {\n // IE 11 bug: WeakMaps silently fail to store frozen objects.\n var testMap = new HostWeakMap();\n var testObject = Object.freeze({});\n testMap.set(testObject, 1);\n if (testMap.get(testObject) !== 1) {\n doubleWeakMapCheckSilentFailure = true;\n // Fall through to installing our WeakMap.\n } else {\n module.exports = WeakMap;\n return;\n }\n }\n }\n\n var hop = Object.prototype.hasOwnProperty;\n var gopn = Object.getOwnPropertyNames;\n var defProp = Object.defineProperty;\n var isExtensible = Object.isExtensible;\n\n /**\n * Security depends on HIDDEN_NAME being both unguessable and\n * undiscoverable by untrusted code.\n *\n *

Given the known weaknesses of Math.random() on existing\n * browsers, it does not generate unguessability we can be confident\n * of.\n *\n *

It is the monkey patching logic in this file that is intended\n * to ensure undiscoverability. The basic idea is that there are\n * three fundamental means of discovering properties of an object:\n * The for/in loop, Object.keys(), and Object.getOwnPropertyNames(),\n * as well as some proposed ES6 extensions that appear on our\n * whitelist. The first two only discover enumerable properties, and\n * we only use HIDDEN_NAME to name a non-enumerable property, so the\n * only remaining threat should be getOwnPropertyNames and some\n * proposed ES6 extensions that appear on our whitelist. We monkey\n * patch them to remove HIDDEN_NAME from the list of properties they\n * returns.\n *\n *

TODO(erights): On a platform with built-in Proxies, proxies\n * could be used to trap and thereby discover the HIDDEN_NAME, so we\n * need to monkey patch Proxy.create, Proxy.createFunction, etc, in\n * order to wrap the provided handler with the real handler which\n * filters out all traps using HIDDEN_NAME.\n *\n *

TODO(erights): Revisit Mike Stay's suggestion that we use an\n * encapsulated function at a not-necessarily-secret name, which\n * uses the Stiegler shared-state rights amplification pattern to\n * reveal the associated value only to the WeakMap in which this key\n * is associated with that value. Since only the key retains the\n * function, the function can also remember the key without causing\n * leakage of the key, so this doesn't violate our general gc\n * goals. In addition, because the name need not be a guarded\n * secret, we could efficiently handle cross-frame frozen keys.\n */\n var HIDDEN_NAME_PREFIX = 'weakmap:';\n var HIDDEN_NAME = HIDDEN_NAME_PREFIX + 'ident:' + Math.random() + '___';\n\n if (typeof crypto !== 'undefined' &&\n typeof crypto.getRandomValues === 'function' &&\n typeof ArrayBuffer === 'function' &&\n typeof Uint8Array === 'function') {\n var ab = new ArrayBuffer(25);\n var u8s = new Uint8Array(ab);\n crypto.getRandomValues(u8s);\n HIDDEN_NAME = HIDDEN_NAME_PREFIX + 'rand:' +\n Array.prototype.map.call(u8s, function(u8) {\n return (u8 % 36).toString(36);\n }).join('') + '___';\n }\n\n function isNotHiddenName(name) {\n return !(\n name.substr(0, HIDDEN_NAME_PREFIX.length) == HIDDEN_NAME_PREFIX &&\n name.substr(name.length - 3) === '___');\n }\n\n /**\n * Monkey patch getOwnPropertyNames to avoid revealing the\n * HIDDEN_NAME.\n *\n *

The ES5.1 spec requires each name to appear only once, but as\n * of this writing, this requirement is controversial for ES6, so we\n * made this code robust against this case. If the resulting extra\n * search turns out to be expensive, we can probably relax this once\n * ES6 is adequately supported on all major browsers, iff no browser\n * versions we support at that time have relaxed this constraint\n * without providing built-in ES6 WeakMaps.\n */\n defProp(Object, 'getOwnPropertyNames', {\n value: function fakeGetOwnPropertyNames(obj) {\n return gopn(obj).filter(isNotHiddenName);\n }\n });\n\n /**\n * getPropertyNames is not in ES5 but it is proposed for ES6 and\n * does appear in our whitelist, so we need to clean it too.\n */\n if ('getPropertyNames' in Object) {\n var originalGetPropertyNames = Object.getPropertyNames;\n defProp(Object, 'getPropertyNames', {\n value: function fakeGetPropertyNames(obj) {\n return originalGetPropertyNames(obj).filter(isNotHiddenName);\n }\n });\n }\n\n /**\n *

To treat objects as identity-keys with reasonable efficiency\n * on ES5 by itself (i.e., without any object-keyed collections), we\n * need to add a hidden property to such key objects when we\n * can. This raises several issues:\n *

    \n *
  • Arranging to add this property to objects before we lose the\n * chance, and\n *
  • Hiding the existence of this new property from most\n * JavaScript code.\n *
  • Preventing certification theft, where one object is\n * created falsely claiming to be the key of an association\n * actually keyed by another object.\n *
  • Preventing value theft, where untrusted code with\n * access to a key object but not a weak map nevertheless\n * obtains access to the value associated with that key in that\n * weak map.\n *
\n * We do so by\n *
    \n *
  • Making the name of the hidden property unguessable, so \"[]\"\n * indexing, which we cannot intercept, cannot be used to access\n * a property without knowing the name.\n *
  • Making the hidden property non-enumerable, so we need not\n * worry about for-in loops or {@code Object.keys},\n *
  • monkey patching those reflective methods that would\n * prevent extensions, to add this hidden property first,\n *
  • monkey patching those methods that would reveal this\n * hidden property.\n *
\n * Unfortunately, because of same-origin iframes, we cannot reliably\n * add this hidden property before an object becomes\n * non-extensible. Instead, if we encounter a non-extensible object\n * without a hidden record that we can detect (whether or not it has\n * a hidden record stored under a name secret to us), then we just\n * use the key object itself to represent its identity in a brute\n * force leaky map stored in the weak map, losing all the advantages\n * of weakness for these.\n */\n function getHiddenRecord(key) {\n if (key !== Object(key)) {\n throw new TypeError('Not an object: ' + key);\n }\n var hiddenRecord = key[HIDDEN_NAME];\n if (hiddenRecord && hiddenRecord.key === key) { return hiddenRecord; }\n if (!isExtensible(key)) {\n // Weak map must brute force, as explained in doc-comment above.\n return void 0;\n }\n\n // The hiddenRecord and the key point directly at each other, via\n // the \"key\" and HIDDEN_NAME properties respectively. The key\n // field is for quickly verifying that this hidden record is an\n // own property, not a hidden record from up the prototype chain.\n //\n // NOTE: Because this WeakMap emulation is meant only for systems like\n // SES where Object.prototype is frozen without any numeric\n // properties, it is ok to use an object literal for the hiddenRecord.\n // This has two advantages:\n // * It is much faster in a performance critical place\n // * It avoids relying on Object.create(null), which had been\n // problematic on Chrome 28.0.1480.0. See\n // https://code.google.com/p/google-caja/issues/detail?id=1687\n hiddenRecord = { key: key };\n\n // When using this WeakMap emulation on platforms where\n // Object.prototype might not be frozen and Object.create(null) is\n // reliable, use the following two commented out lines instead.\n // hiddenRecord = Object.create(null);\n // hiddenRecord.key = key;\n\n // Please contact us if you need this to work on platforms where\n // Object.prototype might not be frozen and\n // Object.create(null) might not be reliable.\n\n try {\n defProp(key, HIDDEN_NAME, {\n value: hiddenRecord,\n writable: false,\n enumerable: false,\n configurable: false\n });\n return hiddenRecord;\n } catch (error) {\n // Under some circumstances, isExtensible seems to misreport whether\n // the HIDDEN_NAME can be defined.\n // The circumstances have not been isolated, but at least affect\n // Node.js v0.10.26 on TravisCI / Linux, but not the same version of\n // Node.js on OS X.\n return void 0;\n }\n }\n\n /**\n * Monkey patch operations that would make their argument\n * non-extensible.\n *\n *

The monkey patched versions throw a TypeError if their\n * argument is not an object, so it should only be done to functions\n * that should throw a TypeError anyway if their argument is not an\n * object.\n */\n (function(){\n var oldFreeze = Object.freeze;\n defProp(Object, 'freeze', {\n value: function identifyingFreeze(obj) {\n getHiddenRecord(obj);\n return oldFreeze(obj);\n }\n });\n var oldSeal = Object.seal;\n defProp(Object, 'seal', {\n value: function identifyingSeal(obj) {\n getHiddenRecord(obj);\n return oldSeal(obj);\n }\n });\n var oldPreventExtensions = Object.preventExtensions;\n defProp(Object, 'preventExtensions', {\n value: function identifyingPreventExtensions(obj) {\n getHiddenRecord(obj);\n return oldPreventExtensions(obj);\n }\n });\n })();\n\n function constFunc(func) {\n func.prototype = null;\n return Object.freeze(func);\n }\n\n var calledAsFunctionWarningDone = false;\n function calledAsFunctionWarning() {\n // Future ES6 WeakMap is currently (2013-09-10) expected to reject WeakMap()\n // but we used to permit it and do it ourselves, so warn only.\n if (!calledAsFunctionWarningDone && typeof console !== 'undefined') {\n calledAsFunctionWarningDone = true;\n console.warn('WeakMap should be invoked as new WeakMap(), not ' +\n 'WeakMap(). This will be an error in the future.');\n }\n }\n\n var nextId = 0;\n\n var OurWeakMap = function() {\n if (!(this instanceof OurWeakMap)) { // approximate test for new ...()\n calledAsFunctionWarning();\n }\n\n // We are currently (12/25/2012) never encountering any prematurely\n // non-extensible keys.\n var keys = []; // brute force for prematurely non-extensible keys.\n var values = []; // brute force for corresponding values.\n var id = nextId++;\n\n function get___(key, opt_default) {\n var index;\n var hiddenRecord = getHiddenRecord(key);\n if (hiddenRecord) {\n return id in hiddenRecord ? hiddenRecord[id] : opt_default;\n } else {\n index = keys.indexOf(key);\n return index >= 0 ? values[index] : opt_default;\n }\n }\n\n function has___(key) {\n var hiddenRecord = getHiddenRecord(key);\n if (hiddenRecord) {\n return id in hiddenRecord;\n } else {\n return keys.indexOf(key) >= 0;\n }\n }\n\n function set___(key, value) {\n var index;\n var hiddenRecord = getHiddenRecord(key);\n if (hiddenRecord) {\n hiddenRecord[id] = value;\n } else {\n index = keys.indexOf(key);\n if (index >= 0) {\n values[index] = value;\n } else {\n // Since some browsers preemptively terminate slow turns but\n // then continue computing with presumably corrupted heap\n // state, we here defensively get keys.length first and then\n // use it to update both the values and keys arrays, keeping\n // them in sync.\n index = keys.length;\n values[index] = value;\n // If we crash here, values will be one longer than keys.\n keys[index] = key;\n }\n }\n return this;\n }\n\n function delete___(key) {\n var hiddenRecord = getHiddenRecord(key);\n var index, lastIndex;\n if (hiddenRecord) {\n return id in hiddenRecord && delete hiddenRecord[id];\n } else {\n index = keys.indexOf(key);\n if (index < 0) {\n return false;\n }\n // Since some browsers preemptively terminate slow turns but\n // then continue computing with potentially corrupted heap\n // state, we here defensively get keys.length first and then use\n // it to update both the keys and the values array, keeping\n // them in sync. We update the two with an order of assignments,\n // such that any prefix of these assignments will preserve the\n // key/value correspondence, either before or after the delete.\n // Note that this needs to work correctly when index === lastIndex.\n lastIndex = keys.length - 1;\n keys[index] = void 0;\n // If we crash here, there's a void 0 in the keys array, but\n // no operation will cause a \"keys.indexOf(void 0)\", since\n // getHiddenRecord(void 0) will always throw an error first.\n values[index] = values[lastIndex];\n // If we crash here, values[index] cannot be found here,\n // because keys[index] is void 0.\n keys[index] = keys[lastIndex];\n // If index === lastIndex and we crash here, then keys[index]\n // is still void 0, since the aliasing killed the previous key.\n keys.length = lastIndex;\n // If we crash here, keys will be one shorter than values.\n values.length = lastIndex;\n return true;\n }\n }\n\n return Object.create(OurWeakMap.prototype, {\n get___: { value: constFunc(get___) },\n has___: { value: constFunc(has___) },\n set___: { value: constFunc(set___) },\n delete___: { value: constFunc(delete___) }\n });\n };\n\n OurWeakMap.prototype = Object.create(Object.prototype, {\n get: {\n /**\n * Return the value most recently associated with key, or\n * opt_default if none.\n */\n value: function get(key, opt_default) {\n return this.get___(key, opt_default);\n },\n writable: true,\n configurable: true\n },\n\n has: {\n /**\n * Is there a value associated with key in this WeakMap?\n */\n value: function has(key) {\n return this.has___(key);\n },\n writable: true,\n configurable: true\n },\n\n set: {\n /**\n * Associate value with key in this WeakMap, overwriting any\n * previous association if present.\n */\n value: function set(key, value) {\n return this.set___(key, value);\n },\n writable: true,\n configurable: true\n },\n\n 'delete': {\n /**\n * Remove any association for key in this WeakMap, returning\n * whether there was one.\n *\n *

Note that the boolean return here does not work like the\n * {@code delete} operator. The {@code delete} operator returns\n * whether the deletion succeeds at bringing about a state in\n * which the deleted property is absent. The {@code delete}\n * operator therefore returns true if the property was already\n * absent, whereas this {@code delete} method returns false if\n * the association was already absent.\n */\n value: function remove(key) {\n return this.delete___(key);\n },\n writable: true,\n configurable: true\n }\n });\n\n if (typeof HostWeakMap === 'function') {\n (function() {\n // If we got here, then the platform has a WeakMap but we are concerned\n // that it may refuse to store some key types. Therefore, make a map\n // implementation which makes use of both as possible.\n\n // In this mode we are always using double maps, so we are not proxy-safe.\n // This combination does not occur in any known browser, but we had best\n // be safe.\n if (doubleWeakMapCheckSilentFailure && typeof Proxy !== 'undefined') {\n Proxy = undefined;\n }\n\n function DoubleWeakMap() {\n if (!(this instanceof OurWeakMap)) { // approximate test for new ...()\n calledAsFunctionWarning();\n }\n\n // Preferable, truly weak map.\n var hmap = new HostWeakMap();\n\n // Our hidden-property-based pseudo-weak-map. Lazily initialized in the\n // 'set' implementation; thus we can avoid performing extra lookups if\n // we know all entries actually stored are entered in 'hmap'.\n var omap = undefined;\n\n // Hidden-property maps are not compatible with proxies because proxies\n // can observe the hidden name and either accidentally expose it or fail\n // to allow the hidden property to be set. Therefore, we do not allow\n // arbitrary WeakMaps to switch to using hidden properties, but only\n // those which need the ability, and unprivileged code is not allowed\n // to set the flag.\n //\n // (Except in doubleWeakMapCheckSilentFailure mode in which case we\n // disable proxies.)\n var enableSwitching = false;\n\n function dget(key, opt_default) {\n if (omap) {\n return hmap.has(key) ? hmap.get(key)\n : omap.get___(key, opt_default);\n } else {\n return hmap.get(key, opt_default);\n }\n }\n\n function dhas(key) {\n return hmap.has(key) || (omap ? omap.has___(key) : false);\n }\n\n var dset;\n if (doubleWeakMapCheckSilentFailure) {\n dset = function(key, value) {\n hmap.set(key, value);\n if (!hmap.has(key)) {\n if (!omap) { omap = new OurWeakMap(); }\n omap.set(key, value);\n }\n return this;\n };\n } else {\n dset = function(key, value) {\n if (enableSwitching) {\n try {\n hmap.set(key, value);\n } catch (e) {\n if (!omap) { omap = new OurWeakMap(); }\n omap.set___(key, value);\n }\n } else {\n hmap.set(key, value);\n }\n return this;\n };\n }\n\n function ddelete(key) {\n var result = !!hmap['delete'](key);\n if (omap) { return omap.delete___(key) || result; }\n return result;\n }\n\n return Object.create(OurWeakMap.prototype, {\n get___: { value: constFunc(dget) },\n has___: { value: constFunc(dhas) },\n set___: { value: constFunc(dset) },\n delete___: { value: constFunc(ddelete) },\n permitHostObjects___: { value: constFunc(function(token) {\n if (token === weakMapPermitHostObjects) {\n enableSwitching = true;\n } else {\n throw new Error('bogus call to permitHostObjects___');\n }\n })}\n });\n }\n DoubleWeakMap.prototype = OurWeakMap.prototype;\n module.exports = DoubleWeakMap;\n\n // define .constructor to hide OurWeakMap ctor\n Object.defineProperty(WeakMap.prototype, 'constructor', {\n value: WeakMap,\n enumerable: false, // as default .constructor is\n configurable: true,\n writable: true\n });\n })();\n } else {\n // There is no host WeakMap, so we must use the emulation.\n\n // Emulated WeakMaps are incompatible with native proxies (because proxies\n // can observe the hidden name), so we must disable Proxy usage (in\n // ArrayLike and Domado, currently).\n if (typeof Proxy !== 'undefined') {\n Proxy = undefined;\n }\n\n module.exports = OurWeakMap;\n }\n})();\n\n},{}],314:[function(_glvis_,module,exports){\nvar hiddenStore = _glvis_('./hidden-store.js');\n\nmodule.exports = createStore;\n\nfunction createStore() {\n var key = {};\n\n return function (obj) {\n if ((typeof obj !== 'object' || obj === null) &&\n typeof obj !== 'function'\n ) {\n throw new Error('Weakmap-shim: Key must be object')\n }\n\n var store = obj.valueOf(key);\n return store && store.identity === key ?\n store : hiddenStore(obj, key);\n };\n}\n\n},{\"./hidden-store.js\":315}],315:[function(_glvis_,module,exports){\nmodule.exports = hiddenStore;\n\nfunction hiddenStore(obj, key) {\n var store = { identity: key };\n var valueOf = obj.valueOf;\n\n Object.defineProperty(obj, \"valueOf\", {\n value: function (value) {\n return value !== key ?\n valueOf.apply(this, arguments) : store;\n },\n writable: true\n });\n\n return store;\n}\n\n},{}],316:[function(_glvis_,module,exports){\n// Original - @Gozola.\n// https://gist.github.com/Gozala/1269991\n// This is a reimplemented version (with a few bug fixes).\n\nvar createStore = _glvis_('./create-store.js');\n\nmodule.exports = weakMap;\n\nfunction weakMap() {\n var privates = createStore();\n\n return {\n 'get': function (key, fallback) {\n var store = privates(key)\n return store.hasOwnProperty('value') ?\n store.value : fallback\n },\n 'set': function (key, value) {\n privates(key).value = value;\n return this;\n },\n 'has': function(key) {\n return 'value' in privates(key);\n },\n 'delete': function (key) {\n return delete privates(key).value;\n }\n }\n}\n\n},{\"./create-store.js\":314}],317:[function(_glvis_,module,exports){\n\"use strict\"\n\nfunction CWiseOp() {\n return function(SS, a0, t0, p0, Y0, Y1) {\n var s0 = SS[0],\n t0p0 = t0[0],\n index = [0],\n q0 = t0p0\n p0 |= 0\n var i0 = 0,\n d0s0 = t0p0\n for (i0 = 0; i0 < s0; ++i0) {\n {\n var da = a0[p0] - Y1\n var db = a0[p0 + q0] - Y1\n if (da >= 0 !== db >= 0) {\n Y0.push(index[0] + 0.5 + (0.5 * (da + db)) / (da - db))\n }\n }\n p0 += d0s0\n ++index[0]\n }\n }\n}\n\n//Generates a cwise operator\nfunction generateCWiseOp() {\n return CWiseOp()\n}\n\nvar compile = generateCWiseOp\n\nfunction thunk(compile) {\n var CACHED = {}\n return function zeroCrossings_cwise_thunk(array0, scalar2, scalar3) {\n var t0 = array0.dtype,\n r0 = array0.order,\n type = [t0, r0.join()].join(),\n proc = CACHED[type]\n\n if (!proc) {\n CACHED[type] = proc = compile([t0, r0])\n }\n\n return proc(array0.shape.slice(0), array0.data, array0.stride, array0.offset | 0, scalar2, scalar3)\n }\n}\n\nfunction createThunk(proc) {\n return thunk(compile.bind(undefined, proc))\n}\n\nfunction compileCwise(user_args) {\n return createThunk({\n funcName: user_args.funcName\n })\n}\n\nmodule.exports = compileCwise({\n funcName: 'zeroCrossings'\n})\n\n},{}],318:[function(_glvis_,module,exports){\n\"use strict\"\n\nmodule.exports = findZeroCrossings\n\nvar core = _glvis_(\"./lib/zc-core\")\n\nfunction findZeroCrossings(array, level) {\n var cross = []\n level = +level || 0.0\n core(array.hi(array.shape[0]-1), cross, level)\n return cross\n}\n},{\"./lib/zc-core\":317}]},{},[6])(6)\n});\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}]},{},[27])(27)\n});\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 {\n if (this.unmounting) {\n return;\n }\n if (!this.el) {\n throw new Error('Missing element reference');\n }\n // eslint-disable-next-line consistent-return\n return Plotly.react(this.el, {\n data: this.props.data,\n layout: this.props.layout,\n config: this.props.config,\n frames: this.props.frames,\n });\n })\n .then(() => {\n if (this.unmounting) {\n return;\n }\n this.syncWindowResize(shouldInvokeResizeHandler);\n this.syncEventHandlers();\n this.figureCallback(figureCallbackFunction);\n if (shouldAttachUpdateEvents) {\n this.attachUpdateEvents();\n }\n })\n .catch((err) => {\n if (this.props.onError) {\n this.props.onError(err);\n }\n });\n }\n\n componentDidMount() {\n this.unmounting = false;\n\n this.updatePlotly(true, this.props.onInitialized, true);\n }\n\n componentDidUpdate(prevProps) {\n this.unmounting = false;\n\n // frames *always* changes identity so fall back to check length only :(\n const numPrevFrames =\n prevProps.frames && prevProps.frames.length ? prevProps.frames.length : 0;\n const numNextFrames =\n this.props.frames && this.props.frames.length ? this.props.frames.length : 0;\n\n const figureChanged = !(\n prevProps.layout === this.props.layout &&\n prevProps.data === this.props.data &&\n prevProps.config === this.props.config &&\n numNextFrames === numPrevFrames\n );\n const revisionDefined = prevProps.revision !== void 0;\n const revisionChanged = prevProps.revision !== this.props.revision;\n\n if (!figureChanged && (!revisionDefined || (revisionDefined && !revisionChanged))) {\n return;\n }\n\n this.updatePlotly(false, this.props.onUpdate, false);\n }\n\n componentWillUnmount() {\n this.unmounting = true;\n\n this.figureCallback(this.props.onPurge);\n\n if (this.resizeHandler && isBrowser) {\n window.removeEventListener('resize', this.resizeHandler);\n this.resizeHandler = null;\n }\n\n this.removeUpdateEvents();\n\n Plotly.purge(this.el);\n }\n\n attachUpdateEvents() {\n if (!this.el || !this.el.removeListener) {\n return;\n }\n\n updateEvents.forEach((updateEvent) => {\n this.el.on(updateEvent, this.handleUpdate);\n });\n }\n\n removeUpdateEvents() {\n if (!this.el || !this.el.removeListener) {\n return;\n }\n\n updateEvents.forEach((updateEvent) => {\n this.el.removeListener(updateEvent, this.handleUpdate);\n });\n }\n\n handleUpdate() {\n this.figureCallback(this.props.onUpdate);\n }\n\n figureCallback(callback) {\n if (typeof callback === 'function') {\n const {data, layout} = this.el;\n const frames = this.el._transitionData ? this.el._transitionData._frames : null;\n const figure = {data, layout, frames};\n callback(figure, this.el);\n }\n }\n\n syncWindowResize(invoke) {\n if (!isBrowser) {\n return;\n }\n\n if (this.props.useResizeHandler && !this.resizeHandler) {\n this.resizeHandler = () => Plotly.Plots.resize(this.el);\n window.addEventListener('resize', this.resizeHandler);\n if (invoke) {\n this.resizeHandler();\n }\n } else if (!this.props.useResizeHandler && this.resizeHandler) {\n window.removeEventListener('resize', this.resizeHandler);\n this.resizeHandler = null;\n }\n }\n\n getRef(el) {\n this.el = el;\n\n if (this.props.debug && isBrowser) {\n window.gd = this.el;\n }\n }\n\n // Attach and remove event handlers as they're added or removed from props:\n syncEventHandlers() {\n eventNames.forEach((eventName) => {\n const prop = this.props['on' + eventName];\n const handler = this.handlers[eventName];\n const hasHandler = Boolean(handler);\n\n if (prop && !hasHandler) {\n this.addEventHandler(eventName, prop);\n } else if (!prop && hasHandler) {\n // Needs to be removed:\n this.removeEventHandler(eventName);\n } else if (prop && hasHandler && prop !== handler) {\n // replace the handler\n this.removeEventHandler(eventName);\n this.addEventHandler(eventName, prop);\n }\n });\n }\n\n addEventHandler(eventName, prop) {\n this.handlers[eventName] = prop;\n this.el.on(this.getPlotlyEventName(eventName), this.handlers[eventName]);\n }\n\n removeEventHandler(eventName) {\n this.el.removeListener(this.getPlotlyEventName(eventName), this.handlers[eventName]);\n delete this.handlers[eventName];\n }\n\n getPlotlyEventName(eventName) {\n return 'plotly_' + eventName.toLowerCase();\n }\n\n render() {\n return (\n \n );\n }\n }\n\n PlotlyComponent.propTypes = {\n data: PropTypes.arrayOf(PropTypes.object),\n config: PropTypes.object,\n layout: PropTypes.object,\n frames: PropTypes.arrayOf(PropTypes.object),\n revision: PropTypes.number,\n onInitialized: PropTypes.func,\n onPurge: PropTypes.func,\n onError: PropTypes.func,\n onUpdate: PropTypes.func,\n debug: PropTypes.bool,\n style: PropTypes.object,\n className: PropTypes.string,\n useResizeHandler: PropTypes.bool,\n divId: PropTypes.string,\n };\n\n eventNames.forEach((eventName) => {\n PlotlyComponent.propTypes['on' + eventName] = PropTypes.func;\n });\n\n PlotlyComponent.defaultProps = {\n debug: false,\n useResizeHandler: false,\n data: [],\n style: {position: 'relative', display: 'inline-block'},\n };\n\n return PlotlyComponent;\n}\n","import plotComponentFactory from './factory';\nimport Plotly from 'plotly.js/dist/plotly';\n\nconst PlotComponent = plotComponentFactory(Plotly);\n\nexport default PlotComponent;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","'use strict'\nmodule.exports = (typeof self === 'object' && self.self === self && self) ||\n (typeof global === 'object' && global.global === global && global) ||\n this\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","// 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};","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","export default function _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 return obj;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Settings.\n * @exports CarbonComponents.settings\n * @type Object\n * @property {boolean} [disableAutoInit]\n * Disables automatic instantiation of components.\n * By default (`CarbonComponents.disableAutoInit` is `false`),\n * carbon-components attempts to instantiate components automatically\n * by searching for elements with `data-component-name` (e.g. `data-loading`) attribute\n * or upon DOM events (e.g. clicking) on such elements.\n * See each components' static `.init()` methods for details.\n * @property {string} [prefix=bx]\n * Brand prefix. Should be in sync with `$prefix` Sass variable in carbon-components/src/globals/scss/_vars.scss.\n * // @todo given that the default value is so long, is it appropriate to put in the JSDoc?\n * @property {string} [selectorTabbable]\n * A selector selecting tabbable/focusable nodes.\n * By default selectorTabbable references links, areas, inputs, buttons, selects, textareas,\n * iframes, objects, embeds, or elements explicitly using tabindex or contenteditable attributes\n * as long as the element is not `disabled` or the `tabindex=\"-1\"`.\n * @property {string} [selectorFocusable]\n * CSS selector that selects major nodes that are click focusable\n * This property is identical to selectorTabbable with the exception of\n * the `:not([tabindex='-1'])` pseudo class\n */\nvar settings = {\n prefix: 'bx',\n selectorTabbable: \"\\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\\n textarea:not([disabled]):not([tabindex='-1']),\\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\\n \",\n selectorFocusable: \"\\n a[href], area[href], input:not([disabled]),\\n button:not([disabled]),select:not([disabled]),\\n textarea:not([disabled]),\\n iframe, object, embed, *[tabindex], *[contenteditable=true]\\n \"\n};\nvar settings_1 = settings;\nexport { settings_1 as default };","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { settings } from 'carbon-components';\nimport React from 'react';\nexport var PrefixContext = /*#__PURE__*/React.createContext(settings.prefix);\nexport function usePrefix() {\n return React.useContext(PrefixContext);\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"children\", \"tagName\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar Content = function Content(_ref) {\n var customClassName = _ref.className,\n children = _ref.children,\n tagName = _ref.tagName,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx(\"\".concat(prefix, \"--content\"), customClassName);\n return /*#__PURE__*/React.createElement(tagName, _objectSpread(_objectSpread({}, rest), {}, {\n className: className\n }), children);\n};\n\nContent.propTypes = {\n /**\n * Provide children nodes to be rendered in the content container\n */\n children: PropTypes.node,\n\n /**\n * Optionally provide a custom class name that is applied to the container\n */\n className: PropTypes.string,\n\n /**\n * Optionally specify the tag of the content node. Defaults to `main`\n */\n tagName: PropTypes.string\n};\nContent.defaultProps = {\n tagName: 'main'\n};\nexport default Content;","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React, { useState, useCallback } from 'react'; // eslint-disable-next-line react/prop-types\n\nvar HeaderContainer = function HeaderContainer(_ref) {\n var isSideNavExpanded = _ref.isSideNavExpanded,\n Children = _ref.render;\n\n //state for expandable sidenav\n var _useState = useState(isSideNavExpanded),\n _useState2 = _slicedToArray(_useState, 2),\n isSideNavExpandedState = _useState2[0],\n setIsSideNavExpandedState = _useState2[1];\n\n var handleHeaderMenuButtonClick = useCallback(function () {\n setIsSideNavExpandedState(function (prevIsSideNavExpanded) {\n return !prevIsSideNavExpanded;\n });\n }, [setIsSideNavExpandedState]);\n return /*#__PURE__*/React.createElement(Children, {\n isSideNavExpanded: isSideNavExpandedState,\n onClickSideNavExpand: handleHeaderMenuButtonClick\n });\n};\n\nHeaderContainer.propTypes = {\n /**\n * Optionally provide a custom class name that is applied to the underlying

\n */\n isSideNavExpanded: PropTypes.bool\n};\nHeaderContainer.defaultProps = {\n isSideNavExpanded: false\n};\nexport default HeaderContainer;","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * @param {object} propTypes The list of type checkers, keyed by prop names.\n * @returns {object}\n * The new prop type checkers that checks if one of the given props exist,\n * in addition to the original type checkings.\n */\nexport default function isRequiredOneOf(propTypes) {\n var names = Object.keys(propTypes);\n\n var checker = function checker(propType) {\n return function (props, propName, componentName) {\n if (process.env.NODE_ENV !== \"production\" && names.every(function (name) {\n return typeof props[name] === 'undefined';\n })) {\n return new Error(\"\".concat(componentName, \" requires one of the following props: \").concat(names.join(', ')));\n }\n\n for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n\n return propType.apply(void 0, [props, propName, componentName].concat(rest));\n };\n };\n\n return names.reduce(function (o, name) {\n return _objectSpread(_objectSpread({}, o), {}, _defineProperty({}, name, checker(propTypes[name])));\n }, {});\n}","/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport isRequiredOneOf from './isRequiredOneOf';\nexport var AriaLabelPropType = isRequiredOneOf({\n 'aria-label': PropTypes.string,\n 'aria-labelledby': PropTypes.string\n});","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"children\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { AriaLabelPropType } from '../../prop-types/AriaPropTypes';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar Header = function Header(_ref) {\n var customClassName = _ref.className,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx(\"\".concat(prefix, \"--header\"), customClassName);\n return /*#__PURE__*/React.createElement(\"header\", _extends({}, rest, {\n className: className\n }), children);\n};\n\nHeader.propTypes = _objectSpread(_objectSpread({}, AriaLabelPropType), {}, {\n /**\n * Optionally provide a custom class name that is applied to the underlying
\n */\n className: PropTypes.string\n});\nexport default Header;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\", \"className\", \"href\", \"tabIndex\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar SkipToContent = function SkipToContent(_ref) {\n var children = _ref.children,\n customClassName = _ref.className,\n href = _ref.href,\n tabIndex = _ref.tabIndex,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx(\"\".concat(prefix, \"--skip-to-content\"), customClassName);\n return /*#__PURE__*/React.createElement(\"a\", _extends({}, rest, {\n className: className,\n href: href,\n tabIndex: tabIndex\n }), children);\n};\n\nSkipToContent.propTypes = {\n /**\n * Provide text to display in the SkipToContent `a` tag\n */\n children: PropTypes.string.isRequired,\n className: PropTypes.string,\n\n /**\n * Provide the `href` to the id of the element on your package that is the\n * main content.\n */\n href: PropTypes.string.isRequired,\n\n /**\n * Optionally override the default tabindex of 0\n */\n tabIndex: PropTypes.string\n};\nSkipToContent.defaultProps = {\n children: 'Skip to main content',\n href: '#main-content',\n tabIndex: '0'\n};\nexport default SkipToContent;","function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\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 = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\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 _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar _excluded = [\"width\", \"height\", \"viewBox\"],\n _excluded2 = [\"tabindex\"];\n\n/**\n * Copyright IBM Corp. 2018, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar defaultAttributes = {\n // Reference:\n // https://github.com/IBM/carbon-components-react/issues/1392\n // https://github.com/PolymerElements/iron-iconset-svg/pull/47\n // `focusable` is a string attribute which is why we do not use a boolean here\n focusable: 'false',\n preserveAspectRatio: 'xMidYMid meet'\n};\n/**\n * Get supplementary HTML attributes for a given element based on existing\n * attributes.\n */\n\nfunction getAttributes() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n width = _ref.width,\n height = _ref.height,\n _ref$viewBox = _ref.viewBox,\n viewBox = _ref$viewBox === void 0 ? \"0 0 \".concat(width, \" \").concat(height) : _ref$viewBox,\n attributes = _objectWithoutProperties(_ref, _excluded);\n\n var tabindex = attributes.tabindex,\n rest = _objectWithoutProperties(attributes, _excluded2);\n\n var iconAttributes = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultAttributes), rest), {}, {\n width: width,\n height: height,\n viewBox: viewBox\n }); // TODO: attributes.title assumes that the consumer will implement and\n // correctly set `aria-labelledby`.\n\n\n if (iconAttributes['aria-label'] || iconAttributes['aria-labelledby'] || iconAttributes.title) {\n iconAttributes.role = 'img'; // Reference:\n // https://allyjs.io/tutorials/focusing-in-svg.html\n\n if (tabindex !== undefined && tabindex !== null) {\n iconAttributes.focusable = 'true';\n iconAttributes.tabindex = tabindex;\n }\n } else {\n iconAttributes['aria-hidden'] = true;\n }\n\n return iconAttributes;\n}\n\n/**\n * Copyright IBM Corp. 2018, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * Convert an icon descriptor to a String\n */\n\nfunction toString(descriptor) {\n var _descriptor$elem = descriptor.elem,\n elem = _descriptor$elem === void 0 ? 'svg' : _descriptor$elem,\n _descriptor$attrs = descriptor.attrs,\n attrs = _descriptor$attrs === void 0 ? {} : _descriptor$attrs,\n _descriptor$content = descriptor.content,\n content = _descriptor$content === void 0 ? [] : _descriptor$content;\n var children = content.map(toString).join('');\n\n if (elem !== 'svg') {\n return \"<\".concat(elem, \" \").concat(formatAttributes(attrs), \">\").concat(children, \"\");\n }\n\n return \"<\".concat(elem, \" \").concat(formatAttributes(getAttributes(attrs)), \">\").concat(children, \"\");\n}\nfunction formatAttributes(attrs) {\n return Object.keys(attrs).reduce(function (acc, key, index) {\n var attribute = \"\".concat(key, \"=\\\"\").concat(attrs[key], \"\\\"\");\n\n if (index === 0) {\n return attribute;\n }\n\n return acc + ' ' + attribute;\n }, '');\n}\n\n/**\n * Copyright IBM Corp. 2018, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * Convert an icon descriptor to a DOM node.\n */\n\nfunction toSVG(descriptor) {\n var _descriptor$elem = descriptor.elem,\n elem = _descriptor$elem === void 0 ? 'svg' : _descriptor$elem,\n _descriptor$attrs = descriptor.attrs,\n attrs = _descriptor$attrs === void 0 ? {} : _descriptor$attrs,\n _descriptor$content = descriptor.content,\n content = _descriptor$content === void 0 ? [] : _descriptor$content;\n var node = document.createElementNS('http://www.w3.org/2000/svg', elem);\n var attributes = elem !== 'svg' ? attrs : getAttributes(attrs);\n Object.keys(attributes).forEach(function (key) {\n node.setAttribute(key, attrs[key]);\n });\n\n for (var i = 0; i < content.length; i++) {\n node.appendChild(toSVG(content[i]));\n }\n\n return node;\n}\n\nexport { defaultAttributes, formatAttributes, getAttributes, toSVG, toString };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { getAttributes } from '@carbon/icon-helpers';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\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 = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\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 _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nvar _excluded = [\"className\", \"children\", \"tabIndex\"],\n _excluded2 = [\"tabindex\"];\nvar Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref, ref) {\n var className = _ref.className,\n children = _ref.children,\n tabIndex = _ref.tabIndex,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var _getAttributes = getAttributes(_objectSpread2(_objectSpread2({}, rest), {}, {\n tabindex: tabIndex\n })),\n tabindex = _getAttributes.tabindex,\n props = _objectWithoutProperties(_getAttributes, _excluded2);\n\n if (className) {\n props.className = className;\n }\n\n if (tabindex !== undefined && tabindex !== null) {\n props.tabIndex = tabindex;\n }\n\n if (ref) {\n props.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement('svg', props, children);\n});\nIcon.displayName = 'Icon';\nIcon.propTypes = {\n 'aria-hidden': PropTypes.string,\n 'aria-label': PropTypes.string,\n 'aria-labelledby': PropTypes.string,\n children: PropTypes.node,\n className: PropTypes.string,\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n preserveAspectRatio: PropTypes.string,\n tabIndex: PropTypes.string,\n viewBox: PropTypes.string,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n xmlns: PropTypes.string\n};\nIcon.defaultProps = {\n xmlns: 'http://www.w3.org/2000/svg',\n preserveAspectRatio: 'xMidYMid meet'\n};\n\nexport { Icon as I, _objectWithoutProperties as _, _extends as a };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-9ecdf98c.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _path83, _path84, _path85, _circle, _path86, _path87, _circle2, _path88, _path89, _circle3, _path90, _path91, _circle4, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _circle5, _path179, _path180, _path181, _circle6, _path182, _path183, _path184, _circle7, _path185, _path186, _path187, _circle8, _path188, _path189, _circle9, _path190, _circle10, _path191, _circle11, _path192, _circle12, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _path214, _path215, _path216, _path217, _path218, _path219, _path220, _path221, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _path243, _path244, _path245, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _circle13, _circle14, _path289, _path290, _circle15, _circle16, _path291, _path292, _circle17, _circle18, _path293, _path294, _circle19, _circle20, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _circle21, _path310, _path311, _circle22, _path312, _path313, _circle23, _path314, _path315, _circle24, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384, _path385, _path386, _path387, _path388, _path389, _path390, _path391, _path392, _path393, _path394, _path395, _path396, _path397, _path398, _path399, _path400, _path401, _path402, _path403, _path404, _path405, _path406, _path407, _path408, _path409, _path410, _path411, _path412, _path413, _path414, _path415, _path416, _path417, _path418, _path419, _path420, _path421, _path422, _path423, _path424, _path425, _path426, _path427, _path428, _path429, _path430, _path431, _path432;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar didWarnAboutDeprecation = {};\nvar MagicWand20 = /*#__PURE__*/React.forwardRef(function MagicWand20(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5ZM25.4131,28l-11-10.999L17,14.4141l11,11Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWand16 = /*#__PURE__*/React.forwardRef(function MagicWand16(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5ZM25.4131,28l-11-10.999L17,14.4141l11,11Z\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled32 = /*#__PURE__*/React.forwardRef(function MagicWandFilled32(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled24 = /*#__PURE__*/React.forwardRef(function MagicWandFilled24(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled20 = /*#__PURE__*/React.forwardRef(function MagicWandFilled20(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar MagicWandFilled16 = /*#__PURE__*/React.forwardRef(function MagicWandFilled16(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.4141,24,12,6.5859a2.0476,2.0476,0,0,0-2.8281,0l-2.586,2.586a2.0021,2.0021,0,0,0,0,2.8281L23.999,29.4141a2.0024,2.0024,0,0,0,2.8281,0l2.587-2.5865a1.9993,1.9993,0,0,0,0-2.8281ZM8,10.5859,10.5859,8l5,5-2.5866,2.5869-5-5Z\"\n })), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 14.586H5.414V17.414H2.586z\",\n transform: \"rotate(-45 4 16)\"\n })), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.586 2.586H17.414V5.414H14.586z\",\n transform: \"rotate(-45 16 4)\"\n })), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.586 2.586H5.414V5.414H2.586z\",\n transform: \"rotate(-45 4 4)\"\n })), children);\n});\nvar WatsonHealthMagnify32 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify32(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar WatsonHealthMagnify24 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify24(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar WatsonHealthMagnify20 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify20(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar WatsonHealthMagnify16 = /*#__PURE__*/React.forwardRef(function WatsonHealthMagnify16(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,21H4V4H22v8h2V4a2,2,0,0,0-2-2H4A2,2,0,0,0,2,4V21a2,2,0,0,0,2,2h8Z\"\n })), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,28.58l-3.11-3.11a6,6,0,1,0-1.42,1.42L28.58,30ZM22,26a4,4,0,1,1,4-4A4,4,0,0,1,22,26Z\"\n })), children);\n});\nvar MailAll32 = /*#__PURE__*/React.forwardRef(function MailAll32(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailAll24 = /*#__PURE__*/React.forwardRef(function MailAll24(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailAll20 = /*#__PURE__*/React.forwardRef(function MailAll20(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailAll16 = /*#__PURE__*/React.forwardRef(function MailAll16(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z\"\n })), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z\"\n })), children);\n});\nvar MailReply32 = /*#__PURE__*/React.forwardRef(function MailReply32(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar MailReply24 = /*#__PURE__*/React.forwardRef(function MailReply24(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar MailReply20 = /*#__PURE__*/React.forwardRef(function MailReply20(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar MailReply16 = /*#__PURE__*/React.forwardRef(function MailReply16(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,18l-1.4141,1.4141L26.1672,22H18a4,4,0,0,0,0,8h2V28H18a2,2,0,0,1,0-4h8.1672l-2.5827,2.5874L25,28l5-5Z\"\n })), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,22H4L3.9966,6.9064l11.4341,7.9159a1.0008,1.0008,0,0,0,1.1386,0L28,6.9086,28,16h2V6a2.0025,2.0025,0,0,0-2-2H4A2,2,0,0,0,2,5.9965V22a2.0026,2.0026,0,0,0,2,2h6ZM25.7986,6,16,12.7837,6.2014,6Z\"\n })), children);\n});\nvar WatsonHealthMammogram32 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram32(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar WatsonHealthMammogram24 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram24(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar WatsonHealthMammogram20 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram20(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar WatsonHealthMammogram16 = /*#__PURE__*/React.forwardRef(function WatsonHealthMammogram16(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 32L32 32 32 25 30 25 30 30 25 30 25 32zM25 27H22V17h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 27zm-1-2h1a1.0006 1.0006 0 001-1V20a1.0006 1.0006 0 00-1-1H24zM20 27H14V23a2.002 2.002 0 012-2h2V19H14V17h4a2.0023 2.0023 0 012 2v2a2.0023 2.0023 0 01-2 2H16v2h4zM25 15H22V5h3a3.0033 3.0033 0 013 3v4A3.0033 3.0033 0 0125 15zm-1-2h1a1.0009 1.0009 0 001-1V8a1.0009 1.0009 0 00-1-1H24zM18 5H14V7h4V9H15v2h3v2H14v2h4a2.0027 2.0027 0 002-2V7A2.0023 2.0023 0 0018 5zM10 27H8V23.9541C3.2847 23.5117 2 19.9443 2 18c0-3.0146 2.082-4.5015 3.9189-5.814C7.5723 11.0054 9 9.9854 9 8V5h2V8c0 3.0146-2.082 4.5015-3.9189 5.814C5.4277 14.9946 4 16.0146 4 18c.0054.4033.1914 4 5 4a1 1 0 011 1zM7 0L0 0 0 7 2 7 2 2 7 2 7 0z\"\n })), children);\n});\nvar MammogramStacked32 = /*#__PURE__*/React.forwardRef(function MammogramStacked32(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked32']) {\n didWarnAboutDeprecation['MammogramStacked32'] = true;\n console.warn(\"The MammogramStacked32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar MammogramStacked24 = /*#__PURE__*/React.forwardRef(function MammogramStacked24(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked24']) {\n didWarnAboutDeprecation['MammogramStacked24'] = true;\n console.warn(\"The MammogramStacked24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar MammogramStacked20 = /*#__PURE__*/React.forwardRef(function MammogramStacked20(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked20']) {\n didWarnAboutDeprecation['MammogramStacked20'] = true;\n console.warn(\"The MammogramStacked20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar MammogramStacked16 = /*#__PURE__*/React.forwardRef(function MammogramStacked16(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MammogramStacked16']) {\n didWarnAboutDeprecation['MammogramStacked16'] = true;\n console.warn(\"The MammogramStacked16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,16H28V4H16V2H28a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25,23H23V9H9V7H23a2.0023,2.0023,0,0,1,2,2Z\"\n })), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,30H4a2.0023,2.0023,0,0,1-2-2V14a2.002,2.002,0,0,1,2-2H18a2.0023,2.0023,0,0,1,2,2V28A2.0027,2.0027,0,0,1,18,30ZM4,14V28H18.002L18,14Z\"\n })), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,18h1V16H13a5.0083,5.0083,0,0,0-4.8989,4H7v2H8.1011A5.0083,5.0083,0,0,0,13,26h1V24H13a3,3,0,0,1,0-6Z\"\n })), children);\n});\nvar ManageProtection32 = /*#__PURE__*/React.forwardRef(function ManageProtection32(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManageProtection24 = /*#__PURE__*/React.forwardRef(function ManageProtection24(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManageProtection20 = /*#__PURE__*/React.forwardRef(function ManageProtection20(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManageProtection16 = /*#__PURE__*/React.forwardRef(function ManageProtection16(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z\"\n })), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,25.277V6h8V16.8048a7,7,0,0,1-3.7,6.1731Z\"\n })), children);\n});\nvar ManagedSolutions32 = /*#__PURE__*/React.forwardRef(function ManagedSolutions32(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar ManagedSolutions24 = /*#__PURE__*/React.forwardRef(function ManagedSolutions24(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar ManagedSolutions20 = /*#__PURE__*/React.forwardRef(function ManagedSolutions20(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar ManagedSolutions16 = /*#__PURE__*/React.forwardRef(function ManagedSolutions16(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 23L25 23 25 18 23 18 23 23 18 23 18 25 23 25 23 30 25 30 25 25 30 25 30 23z\"\n })), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.1273,11.8394l1.1807.2136a5.7919,5.7919,0,0,1,2.6247,1.1445A5.4219,5.4219,0,0,1,29.9532,18h2.0293a7.5022,7.5022,0,0,0-6.15-7.8848,10.0067,10.0067,0,0,0-7.9387-7.9336,10.0025,10.0025,0,0,0-11.72,7.9336A7.5055,7.5055,0,0,0,.0576,18.4088,7.6841,7.6841,0,0,0,7.7725,25H14V23H7.6978a5.6323,5.6323,0,0,1-5.6024-4.4859,5.5064,5.5064,0,0,1,4.4338-6.4306l1.3488-.2441.2138-1.11a8.2061,8.2061,0,0,1,6.7427-6.6426,7.9714,7.9714,0,0,1,3.0138.13,8.1442,8.1442,0,0,1,6.0526,6.4464Z\"\n })), children);\n});\nvar Map32 = /*#__PURE__*/React.forwardRef(function Map32(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar Map24 = /*#__PURE__*/React.forwardRef(function Map24(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar Map20 = /*#__PURE__*/React.forwardRef(function Map20(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar Map16 = /*#__PURE__*/React.forwardRef(function Map16(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,24l-6.09-8.6A8.14,8.14,0,0,1,16,2a8.08,8.08,0,0,1,8,8.13,8.2,8.2,0,0,1-1.8,5.13ZM16,4a6.07,6.07,0,0,0-6,6.13,6.19,6.19,0,0,0,1.49,4L16,20.52,20.63,14A6.24,6.24,0,0,0,22,10.13,6.07,6.07,0,0,0,16,4Z\"\n })), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"9\",\n r: \"2\"\n })), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,12H26v2h2V28H4V14H6V12H4a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V14A2,2,0,0,0,28,12Z\"\n })), children);\n});\nvar MapCenter32 = /*#__PURE__*/React.forwardRef(function MapCenter32(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26H25V30H23zM23 18H25V22H23zM26 23H30V25H26zM18 23H22V25H18zM25.3418 10.06l-22-8A1 1 0 002.06 3.3415l8 22A1.0011 1.0011 0 0010.9839 26H11a1 1 0 00.9287-.6289L15.77 15.7692l9.6015-3.8408a1 1 0 00-.0293-1.8687zM14.6284 14.0709v0l-.3979.1591-.1591.3979 0 0-3.0268 7.5678L4.6719 4.6715l17.5244 6.3726z\"\n })), children);\n});\nvar MapCenter24 = /*#__PURE__*/React.forwardRef(function MapCenter24(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26H25V30H23zM23 18H25V22H23zM26 23H30V25H26zM18 23H22V25H18zM25.3418 10.06l-22-8A1 1 0 002.06 3.3415l8 22A1.0011 1.0011 0 0010.9839 26H11a1 1 0 00.9287-.6289L15.77 15.7692l9.6015-3.8408a1 1 0 00-.0293-1.8687zM14.6284 14.0709v0l-.3979.1591-.1591.3979 0 0-3.0268 7.5678L4.6719 4.6715l17.5244 6.3726z\"\n })), children);\n});\nvar MapCenter20 = /*#__PURE__*/React.forwardRef(function MapCenter20(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26H25V30H23zM23 18H25V22H23zM26 23H30V25H26zM18 23H22V25H18zM25.3418 10.06l-22-8A1 1 0 002.06 3.3415l8 22A1.0011 1.0011 0 0010.9839 26H11a1 1 0 00.9287-.6289L15.77 15.7692l9.6015-3.8408a1 1 0 00-.0293-1.8687zM14.6284 14.0709v0l-.3979.1591-.1591.3979 0 0-3.0268 7.5678L4.6719 4.6715l17.5244 6.3726z\"\n })), children);\n});\nvar MapCenter16 = /*#__PURE__*/React.forwardRef(function MapCenter16(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 26H25V30H23zM23 18H25V22H23zM26 23H30V25H26zM18 23H22V25H18zM25.3418 10.06l-22-8A1 1 0 002.06 3.3415l8 22A1.0011 1.0011 0 0010.9839 26H11a1 1 0 00.9287-.6289L15.77 15.7692l9.6015-3.8408a1 1 0 00-.0293-1.8687zM14.6284 14.0709v0l-.3979.1591-.1591.3979 0 0-3.0268 7.5678L4.6719 4.6715l17.5244 6.3726z\"\n })), children);\n});\nvar MapIdentify32 = /*#__PURE__*/React.forwardRef(function MapIdentify32(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 8H17V14H15zM15 18H17V24H15zM18 15H24V17H18zM8 15H14V17H8zM4 10H2V4A2.0021 2.0021 0 014 2h6V4H4zM10 30H4a2.0021 2.0021 0 01-2-2V22H4v6h6zM28 30H22V28h6V22h2v6A2.0021 2.0021 0 0128 30zM30 10H28V4H22V2h6a2.0021 2.0021 0 012 2z\"\n })), children);\n});\nvar MapIdentify24 = /*#__PURE__*/React.forwardRef(function MapIdentify24(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 8H17V14H15zM15 18H17V24H15zM18 15H24V17H18zM8 15H14V17H8zM4 10H2V4A2.0021 2.0021 0 014 2h6V4H4zM10 30H4a2.0021 2.0021 0 01-2-2V22H4v6h6zM28 30H22V28h6V22h2v6A2.0021 2.0021 0 0128 30zM30 10H28V4H22V2h6a2.0021 2.0021 0 012 2z\"\n })), children);\n});\nvar MapIdentify20 = /*#__PURE__*/React.forwardRef(function MapIdentify20(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 8H17V14H15zM15 18H17V24H15zM18 15H24V17H18zM8 15H14V17H8zM4 10H2V4A2.0021 2.0021 0 014 2h6V4H4zM10 30H4a2.0021 2.0021 0 01-2-2V22H4v6h6zM28 30H22V28h6V22h2v6A2.0021 2.0021 0 0128 30zM30 10H28V4H22V2h6a2.0021 2.0021 0 012 2z\"\n })), children);\n});\nvar MapIdentify16 = /*#__PURE__*/React.forwardRef(function MapIdentify16(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 8H17V14H15zM15 18H17V24H15zM18 15H24V17H18zM8 15H14V17H8zM4 10H2V4A2.0021 2.0021 0 014 2h6V4H4zM10 30H4a2.0021 2.0021 0 01-2-2V22H4v6h6zM28 30H22V28h6V22h2v6A2.0021 2.0021 0 0128 30zM30 10H28V4H22V2h6a2.0021 2.0021 0 012 2z\"\n })), children);\n});\nvar MapBoundary32 = /*#__PURE__*/React.forwardRef(function MapBoundary32(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundary24 = /*#__PURE__*/React.forwardRef(function MapBoundary24(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundary20 = /*#__PURE__*/React.forwardRef(function MapBoundary20(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundary16 = /*#__PURE__*/React.forwardRef(function MapBoundary16(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 10H14V14H12zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM16 4H28V16H16z\"\n })), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 29.997L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.773 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 29.997z\"\n })), children);\n});\nvar MapBoundaryVegetation32 = /*#__PURE__*/React.forwardRef(function MapBoundaryVegetation32(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16H18V14h5V10a2 2 0 012-2h1.5a1.5 1.5 0 00.2837-2.9734l-.7109-.1355L25.9982 4.32a2.6322 2.6322 0 00-1.68-2.1823 2.5051 2.5051 0 00-3.0836 1.3042l-.3032.6472-.71-.0771a2.0185 2.0185 0 00-2.17 2.4343A2.0976 2.0976 0 0020.1261 8H21v2h-.7817A4.1491 4.1491 0 0116.012 6.3136a4.0047 4.0047 0 013.7414-4.306A4.5006 4.5006 0 0127.8267 3.26a3.5051 3.5051 0 012.1422 3.7094A3.6283 3.6283 0 0126.3172 10H25v4h3zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM12 10H14V14H12z\"\n })), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 30L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.776 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 30z\"\n })), children);\n});\nvar MapBoundaryVegetation24 = /*#__PURE__*/React.forwardRef(function MapBoundaryVegetation24(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16H18V14h5V10a2 2 0 012-2h1.5a1.5 1.5 0 00.2837-2.9734l-.7109-.1355L25.9982 4.32a2.6322 2.6322 0 00-1.68-2.1823 2.5051 2.5051 0 00-3.0836 1.3042l-.3032.6472-.71-.0771a2.0185 2.0185 0 00-2.17 2.4343A2.0976 2.0976 0 0020.1261 8H21v2h-.7817A4.1491 4.1491 0 0116.012 6.3136a4.0047 4.0047 0 013.7414-4.306A4.5006 4.5006 0 0127.8267 3.26a3.5051 3.5051 0 012.1422 3.7094A3.6283 3.6283 0 0126.3172 10H25v4h3zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM12 10H14V14H12z\"\n })), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 30L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.776 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 30z\"\n })), children);\n});\nvar MapBoundaryVegetation20 = /*#__PURE__*/React.forwardRef(function MapBoundaryVegetation20(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16H18V14h5V10a2 2 0 012-2h1.5a1.5 1.5 0 00.2837-2.9734l-.7109-.1355L25.9982 4.32a2.6322 2.6322 0 00-1.68-2.1823 2.5051 2.5051 0 00-3.0836 1.3042l-.3032.6472-.71-.0771a2.0185 2.0185 0 00-2.17 2.4343A2.0976 2.0976 0 0020.1261 8H21v2h-.7817A4.1491 4.1491 0 0116.012 6.3136a4.0047 4.0047 0 013.7414-4.306A4.5006 4.5006 0 0127.8267 3.26a3.5051 3.5051 0 012.1422 3.7094A3.6283 3.6283 0 0126.3172 10H25v4h3zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM12 10H14V14H12z\"\n })), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 30L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.776 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 30z\"\n })), children);\n});\nvar MapBoundaryVegetation16 = /*#__PURE__*/React.forwardRef(function MapBoundaryVegetation16(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16H18V14h5V10a2 2 0 012-2h1.5a1.5 1.5 0 00.2837-2.9734l-.7109-.1355L25.9982 4.32a2.6322 2.6322 0 00-1.68-2.1823 2.5051 2.5051 0 00-3.0836 1.3042l-.3032.6472-.71-.0771a2.0185 2.0185 0 00-2.17 2.4343A2.0976 2.0976 0 0020.1261 8H21v2h-.7817A4.1491 4.1491 0 0116.012 6.3136a4.0047 4.0047 0 013.7414-4.306A4.5006 4.5006 0 0127.8267 3.26a3.5051 3.5051 0 012.1422 3.7094A3.6283 3.6283 0 0126.3172 10H25v4h3zM18 18H22V20H18zM14 18L14 16 12 16 12 20 16 20 16 18 14 18zM12 10H14V14H12z\"\n })), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.885 30L11.819 26.142 4 27.989 4 4 14 4 14 8 12 8 12 6 6 6 6 25.461 12.181 24.001 18.115 27.776 22.818 26 26 26 26 20 24 20 24 18 28 18 28 28 23.182 28 17.885 30z\"\n })), children);\n});\nvar MarineWarning32 = /*#__PURE__*/React.forwardRef(function MarineWarning32(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MarineWarning24 = /*#__PURE__*/React.forwardRef(function MarineWarning24(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MarineWarning20 = /*#__PURE__*/React.forwardRef(function MarineWarning20(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MarineWarning16 = /*#__PURE__*/React.forwardRef(function MarineWarning16(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,20H7a1,1,0,0,0-.97,1.2422L6.9692,25H9.0308l-.75-3H23.7192l-.75,3h2.0616l.9394-3.7578A1,1,0,0,0,25,20H14V3a1,1,0,0,0-1.7993-.6011L2.2075,15.3906A1,1,0,0,0,3,17h9ZM5.0308,15,12,5.94V15Z\"\n })), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.9058,25.751A2.998,2.998,0,0,1,24,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,20,25a.9894.9894,0,0,0-.9468.6787A3.44,3.44,0,0,1,16,28a3.4376,3.4376,0,0,1-3.0513-2.3164A1.007,1.007,0,0,0,12,25a.971.971,0,0,0-.9468.6787A3.44,3.44,0,0,1,8,28a2.998,2.998,0,0,1-2.9058-2.249l-1.9365.498A4.9965,4.9965,0,0,0,8,30a4.9316,4.9316,0,0,0,4-1.9873,5.0192,5.0192,0,0,0,8,0A4.9316,4.9316,0,0,0,24,30a4.9965,4.9965,0,0,0,4.8423-3.751Z\"\n })), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M23.75,10h-1.5V6h1.5ZM23,11a1,1,0,1,0,1,1A1,1,0,0,0,23,11Z\"\n })), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.9115,13.9355,23.6284,2.3706a.7181.7181,0,0,0-1.2568,0L16.0885,13.9355A.72.72,0,0,0,16.72,15H29.28A.72.72,0,0,0,29.9115,13.9355ZM22.25,6h1.5v4h-1.5ZM23,13a1,1,0,1,1,1-1A1,1,0,0,1,23,13Z\"\n })), children);\n});\nvar MathCurve32 = /*#__PURE__*/React.forwardRef(function MathCurve32(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar MathCurve24 = /*#__PURE__*/React.forwardRef(function MathCurve24(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar MathCurve20 = /*#__PURE__*/React.forwardRef(function MathCurve20(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar MathCurve16 = /*#__PURE__*/React.forwardRef(function MathCurve16(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3555,23.0581C12.77,24.5918,15.6208,26,17.9514,26a3.8729,3.8729,0,0,0,2.856-1.084c2.2859-2.29.14-6.3979-1.938-10.3721L24.67,8.7427c1.07.686,2.1038,1.4253,3.0117,2.124L29,9.3486c-.7783-.6064-1.772-1.3383-2.8721-2.0634L30,3.4131,28.5859,2,24.3794,6.2061c-3.3164-1.91-7.1079-3.2461-9.2288-1.1216-2.0388,2.0425-.5512,5.5317,1.2683,9.082l-6.3071,6.3066c-1.0322-.7133-1.9985-1.4448-2.8-2.101L6,19.8848c.6145.5058,1.5513,1.2451,2.6653,2.0351L4,26.585V2H2V28a2,2,0,0,0,2,2H30V28H5.4133ZM16.5647,6.501c1.1357-1.1377,3.6931-.2862,6.3372,1.1831l-4.9947,4.9941C16.5942,10.0591,15.5562,7.5112,16.5647,6.501Zm.8215,9.5259c1.58,3.0317,3.1822,6.2959,2.0071,7.4726-1.3125,1.3145-4.5227-.0254-7.572-1.9077Z\"\n })), children);\n});\nvar QMatrix32 = /*#__PURE__*/React.forwardRef(function QMatrix32(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar QMatrix24 = /*#__PURE__*/React.forwardRef(function QMatrix24(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar QMatrix20 = /*#__PURE__*/React.forwardRef(function QMatrix20(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar QMatrix16 = /*#__PURE__*/React.forwardRef(function QMatrix16(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 13L18 4 16 4 16 6 13 6 13 8 16 8 16 13 13 13 13 15 21 15 21 13 18 13zM16.5 20A3.5 3.5 0 1113 23.5 3.5 3.5 0 0116.5 20m0-2A5.5 5.5 0 1022 23.5 5.5 5.5 0 0016.5 18zM8 30L2 30 2 2 8 2 8 4 4 4 4 28 8 28 8 30zM30 30L24 30 24 28 28 28 28 4 24 4 24 2 30 2 30 30z\"\n })), children);\n});\nvar Maximize32 = /*#__PURE__*/React.forwardRef(function Maximize32(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z\"\n })), children);\n});\nvar Maximize24 = /*#__PURE__*/React.forwardRef(function Maximize24(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z\"\n })), children);\n});\nvar Maximize20 = /*#__PURE__*/React.forwardRef(function Maximize20(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z\"\n })), children);\n});\nvar Maximize16 = /*#__PURE__*/React.forwardRef(function Maximize16(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z\"\n })), children);\n});\nvar MediaLibrary32 = /*#__PURE__*/React.forwardRef(function MediaLibrary32(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibrary24 = /*#__PURE__*/React.forwardRef(function MediaLibrary24(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibrary20 = /*#__PURE__*/React.forwardRef(function MediaLibrary20(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibrary16 = /*#__PURE__*/React.forwardRef(function MediaLibrary16(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 15L13 23 13 23 20 19 13 15z\"\n })), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 28H6a2.0021 2.0021 0 01-2-2V12a2.0021 2.0021 0 012-2H26a2.0021 2.0021 0 012 2V26A2.0021 2.0021 0 0126 28zM6 12V26H26V12zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibraryFilled32 = /*#__PURE__*/React.forwardRef(function MediaLibraryFilled32(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M13 15L13 23 13 23 20 19 13 15z\",\n \"data-icon-path\": \"inner-path\"\n })), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 10H6a2.0023 2.0023 0 00-2 2V26a2.0023 2.0023 0 002 2H26a2.0023 2.0023 0 002-2V12A2.0023 2.0023 0 0026 10zM13 23h0V15l7 4zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibraryFilled24 = /*#__PURE__*/React.forwardRef(function MediaLibraryFilled24(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M13 15L13 23 13 23 20 19 13 15z\",\n \"data-icon-path\": \"inner-path\"\n })), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 10H6a2.0023 2.0023 0 00-2 2V26a2.0023 2.0023 0 002 2H26a2.0023 2.0023 0 002-2V12A2.0023 2.0023 0 0026 10zM13 23h0V15l7 4zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibraryFilled20 = /*#__PURE__*/React.forwardRef(function MediaLibraryFilled20(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M13 15L13 23 13 23 20 19 13 15z\",\n \"data-icon-path\": \"inner-path\"\n })), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 10H6a2.0023 2.0023 0 00-2 2V26a2.0023 2.0023 0 002 2H26a2.0023 2.0023 0 002-2V12A2.0023 2.0023 0 0026 10zM13 23h0V15l7 4zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaLibraryFilled16 = /*#__PURE__*/React.forwardRef(function MediaLibraryFilled16(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M13 15L13 23 13 23 20 19 13 15z\",\n \"data-icon-path\": \"inner-path\"\n })), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 10H6a2.0023 2.0023 0 00-2 2V26a2.0023 2.0023 0 002 2H26a2.0023 2.0023 0 002-2V12A2.0023 2.0023 0 0026 10zM13 23h0V15l7 4zM6 6H26V8H6zM8 2H24V4H8z\"\n })), children);\n});\nvar MediaCast32 = /*#__PURE__*/React.forwardRef(function MediaCast32(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H5a3 3 0 00-3-3zM9 26H7a5.0057 5.0057 0 00-5-5V19A7.0078 7.0078 0 019 26z\"\n })), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,26H11a9.01,9.01,0,0,0-9-9V15A11.0125,11.0125,0,0,1,13,26Z\"\n })), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H15V24H28V8H4v5H2V8A2.0021,2.0021,0,0,1,4,6H28a2.0021,2.0021,0,0,1,2,2V24A2.0021,2.0021,0,0,1,28,26Z\"\n })), children);\n});\nvar MediaCast24 = /*#__PURE__*/React.forwardRef(function MediaCast24(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H5a3 3 0 00-3-3zM9 26H7a5.0057 5.0057 0 00-5-5V19A7.0078 7.0078 0 019 26z\"\n })), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,26H11a9.01,9.01,0,0,0-9-9V15A11.0125,11.0125,0,0,1,13,26Z\"\n })), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H15V24H28V8H4v5H2V8A2.0021,2.0021,0,0,1,4,6H28a2.0021,2.0021,0,0,1,2,2V24A2.0021,2.0021,0,0,1,28,26Z\"\n })), children);\n});\nvar MediaCast20 = /*#__PURE__*/React.forwardRef(function MediaCast20(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H5a3 3 0 00-3-3zM9 26H7a5.0057 5.0057 0 00-5-5V19A7.0078 7.0078 0 019 26z\"\n })), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,26H11a9.01,9.01,0,0,0-9-9V15A11.0125,11.0125,0,0,1,13,26Z\"\n })), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H15V24H28V8H4v5H2V8A2.0021,2.0021,0,0,1,4,6H28a2.0021,2.0021,0,0,1,2,2V24A2.0021,2.0021,0,0,1,28,26Z\"\n })), children);\n});\nvar MediaCast16 = /*#__PURE__*/React.forwardRef(function MediaCast16(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 26H5a3 3 0 00-3-3zM9 26H7a5.0057 5.0057 0 00-5-5V19A7.0078 7.0078 0 019 26z\"\n })), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13,26H11a9.01,9.01,0,0,0-9-9V15A11.0125,11.0125,0,0,1,13,26Z\"\n })), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H15V24H28V8H4v5H2V8A2.0021,2.0021,0,0,1,4,6H28a2.0021,2.0021,0,0,1,2,2V24A2.0021,2.0021,0,0,1,28,26Z\"\n })), children);\n});\nvar Medication32 = /*#__PURE__*/React.forwardRef(function Medication32(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Medication24 = /*#__PURE__*/React.forwardRef(function Medication24(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Medication20 = /*#__PURE__*/React.forwardRef(function Medication20(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar Medication16 = /*#__PURE__*/React.forwardRef(function Medication16(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z\"\n })), children);\n});\nvar MedicationAlert32 = /*#__PURE__*/React.forwardRef(function MedicationAlert32(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationAlert24 = /*#__PURE__*/React.forwardRef(function MedicationAlert24(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationAlert20 = /*#__PURE__*/React.forwardRef(function MedicationAlert20(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationAlert16 = /*#__PURE__*/React.forwardRef(function MedicationAlert16(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 19H24V24H22z\"\n })), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,31a8,8,0,1,1,8-8A8,8,0,0,1,23,31Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,23,17Z\"\n })), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"23\",\n cy: \"26\",\n r: \"1\"\n })), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2h8V28H6V26h5V12H6V10H18v3h2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM9,14V24H6V14ZM4,8V4H20V8Z\"\n })), children);\n});\nvar MedicationReminder32 = /*#__PURE__*/React.forwardRef(function MedicationReminder32(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar MedicationReminder24 = /*#__PURE__*/React.forwardRef(function MedicationReminder24(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar MedicationReminder20 = /*#__PURE__*/React.forwardRef(function MedicationReminder20(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar MedicationReminder16 = /*#__PURE__*/React.forwardRef(function MedicationReminder16(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,2H4A2,2,0,0,0,2,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,20,2ZM6,14H9V24H6ZM18,28H6V26h5V12H6V10H18ZM4,8V4H20V8Z\"\n })), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"26\",\n cy: \"16\",\n r: \"4\"\n })), children);\n});\nvar Menu32 = /*#__PURE__*/React.forwardRef(function Menu32(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z\"\n })), children);\n});\nvar Menu24 = /*#__PURE__*/React.forwardRef(function Menu24(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z\"\n })), children);\n});\nvar Menu20 = /*#__PURE__*/React.forwardRef(function Menu20(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z\"\n })), children);\n});\nvar Menu16 = /*#__PURE__*/React.forwardRef(function Menu16(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z\"\n })), children);\n});\nvar MessageQueue32 = /*#__PURE__*/React.forwardRef(function MessageQueue32(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar MessageQueue24 = /*#__PURE__*/React.forwardRef(function MessageQueue24(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar MessageQueue20 = /*#__PURE__*/React.forwardRef(function MessageQueue20(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar MessageQueue16 = /*#__PURE__*/React.forwardRef(function MessageQueue16(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,28H4a2.0021,2.0021,0,0,1-2-2V21H4v5H28V21h2v5A2.0021,2.0021,0,0,1,28,28Z\"\n })), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 21H25V23H7zM7 16H25V18H7zM7 11H25V13H7zM7 6H25V8H7z\"\n })), children);\n});\nvar Meter32 = /*#__PURE__*/React.forwardRef(function Meter32(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Meter24 = /*#__PURE__*/React.forwardRef(function Meter24(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Meter20 = /*#__PURE__*/React.forwardRef(function Meter20(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar Meter16 = /*#__PURE__*/React.forwardRef(function Meter16(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 16a9.9283 9.9283 0 00-1.1392-4.6182l-1.4961 1.4961A7.9483 7.9483 0 0124 16zM23.4141 10L22 8.5859l-4.7147 4.7147A2.9659 2.9659 0 0016 13a3 3 0 103 3 2.9659 2.9659 0 00-.3006-1.2853zM16 17a1 1 0 111-1A1.0013 1.0013 0 0116 17zM16 8a7.9515 7.9515 0 013.1223.6353l1.4961-1.4961A9.9864 9.9864 0 006 16H8A8.0092 8.0092 0 0116 8z\"\n })), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar MeterAlt32 = /*#__PURE__*/React.forwardRef(function MeterAlt32(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar MeterAlt24 = /*#__PURE__*/React.forwardRef(function MeterAlt24(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar MeterAlt20 = /*#__PURE__*/React.forwardRef(function MeterAlt20(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar MeterAlt16 = /*#__PURE__*/React.forwardRef(function MeterAlt16(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 20a13.8535 13.8535 0 00-2.2291-7.5288l-1.4452 1.4453A11.8917 11.8917 0 0128 20zM28 9.414L26.5859 8 18.019 16.5669A3.9521 3.9521 0 0016 16a4 4 0 104 4 3.9533 3.9533 0 00-.5669-2.0191zM16 22a2 2 0 112-2A2.0023 2.0023 0 0116 22zM16 8a11.9086 11.9086 0 016.0833 1.6743l1.4536-1.4536A13.9773 13.9773 0 002 20H4A12.0137 12.0137 0 0116 8z\"\n })), children);\n});\nvar Microphone32 = /*#__PURE__*/React.forwardRef(function Microphone32(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar Microphone24 = /*#__PURE__*/React.forwardRef(function Microphone24(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar Microphone20 = /*#__PURE__*/React.forwardRef(function Microphone20(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar Microphone16 = /*#__PURE__*/React.forwardRef(function Microphone16(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22ZM13,7a3,3,0,0,1,6,0V17a3,3,0,0,1-6,0Z\"\n })), children);\n});\nvar MicrophoneFilled32 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled32(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneFilled24 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled24(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneFilled20 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled20(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneFilled16 = /*#__PURE__*/React.forwardRef(function MicrophoneFilled16(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23,14v3A7,7,0,0,1,9,17V14H7v3a9,9,0,0,0,8,8.94V28H11v2H21V28H17V25.94A9,9,0,0,0,25,17V14Z\"\n })), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,22a5,5,0,0,0,5-5V7A5,5,0,0,0,11,7V17A5,5,0,0,0,16,22Z\"\n })), children);\n});\nvar MicrophoneOff32 = /*#__PURE__*/React.forwardRef(function MicrophoneOff32(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOff24 = /*#__PURE__*/React.forwardRef(function MicrophoneOff24(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOff20 = /*#__PURE__*/React.forwardRef(function MicrophoneOff20(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOff16 = /*#__PURE__*/React.forwardRef(function MicrophoneOff16(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.18 18.57A7.41 7.41 0 019 17V14H7v3a8.84 8.84 0 00.58 3.18zM13 15V7a3 3 0 016 0V8.75l2-2A5 5 0 0011 7v8zM23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zm-4 0a3 3 0 01-4.9 2.31L19 14.42z\"\n })), children);\n});\nvar MicrophoneOffFilled32 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled32(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar MicrophoneOffFilled24 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled24(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar MicrophoneOffFilled20 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled20(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar MicrophoneOffFilled16 = /*#__PURE__*/React.forwardRef(function MicrophoneOffFilled16(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 17a7 7 0 01-11.73 5.14l1.42-1.41A5 5 0 0021 17V12.42l9-9L28.59 2 2 28.59 3.41 30l6.44-6.44A8.91 8.91 0 0015 25.94V28H11v2H21V28H17V25.94A9 9 0 0025 17V14H23zM9 17.32c0-.11 0-.21 0-.32V14H7v3a9 9 0 00.25 2.09zM20.76 5.58A5 5 0 0011 7v8.34z\"\n })), children);\n});\nvar Microscope32 = /*#__PURE__*/React.forwardRef(function Microscope32(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Microscope24 = /*#__PURE__*/React.forwardRef(function Microscope24(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Microscope20 = /*#__PURE__*/React.forwardRef(function Microscope20(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Microscope16 = /*#__PURE__*/React.forwardRef(function Microscope16(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z\"\n })), children);\n});\nvar Migrate32 = /*#__PURE__*/React.forwardRef(function Migrate32(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar Migrate24 = /*#__PURE__*/React.forwardRef(function Migrate24(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar Migrate20 = /*#__PURE__*/React.forwardRef(function Migrate20(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar Migrate16 = /*#__PURE__*/React.forwardRef(function Migrate16(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 2H6A2 2 0 004 4V8a2 2 0 002 2h9v6.17l-2.59-2.58L11 15l5 5 5-5-1.41-1.41L17 16.17V10h9a2 2 0 002-2V4A2 2 0 0026 2zM6 4h4V8H6zM26 8H12V4H26zM26 22H6a2 2 0 00-2 2v4a2 2 0 002 2H26a2 2 0 002-2V24A2 2 0 0026 22zM6 24H20v4H6zm20 4H22V24h4z\"\n })), children);\n});\nvar MigrateAlt32 = /*#__PURE__*/React.forwardRef(function MigrateAlt32(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar MigrateAlt24 = /*#__PURE__*/React.forwardRef(function MigrateAlt24(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar MigrateAlt20 = /*#__PURE__*/React.forwardRef(function MigrateAlt20(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar MigrateAlt16 = /*#__PURE__*/React.forwardRef(function MigrateAlt16(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,4H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4Zm0,22H12V20H10v6H4V17H20.1719l-3.586,3.5859L18,22l6-6-6-6-1.4141,1.4141L20.1719,15H4V6h6v6h2V6H28Z\"\n })), children);\n});\nvar Milestone32 = /*#__PURE__*/React.forwardRef(function Milestone32(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Milestone24 = /*#__PURE__*/React.forwardRef(function Milestone24(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Milestone20 = /*#__PURE__*/React.forwardRef(function Milestone20(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar Milestone16 = /*#__PURE__*/React.forwardRef(function Milestone16(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5857,6.5859A1.9865,1.9865,0,0,0,23.1714,6H16V2H14V6H6A2.0025,2.0025,0,0,0,4,8v6a2.0025,2.0025,0,0,0,2,2h8V30h2V16h7.1714a1.9865,1.9865,0,0,0,1.4143-.5859L29,11ZM23.1714,14H6V8H23.1716l3,3Z\"\n })), children);\n});\nvar MilitaryCamp32 = /*#__PURE__*/React.forwardRef(function MilitaryCamp32(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,28v-10.48a2.0035,2.0035,0,0,0-.853-1.6387L17,9.48V8h6V2H15V9.48L5.8528,15.8823A2.0023,2.0023,0,0,0,5,17.5205V28H2v2H30V28ZM17,4h4V6H17ZM7,17.5205l9-6.3,9,6.3V28H17V20H15v8H7Z\"\n })), children);\n});\nvar MilitaryCamp24 = /*#__PURE__*/React.forwardRef(function MilitaryCamp24(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,28v-10.48a2.0035,2.0035,0,0,0-.853-1.6387L17,9.48V8h6V2H15V9.48L5.8528,15.8823A2.0023,2.0023,0,0,0,5,17.5205V28H2v2H30V28ZM17,4h4V6H17ZM7,17.5205l9-6.3,9,6.3V28H17V20H15v8H7Z\"\n })), children);\n});\nvar MilitaryCamp20 = /*#__PURE__*/React.forwardRef(function MilitaryCamp20(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,28v-10.48a2.0035,2.0035,0,0,0-.853-1.6387L17,9.48V8h6V2H15V9.48L5.8528,15.8823A2.0023,2.0023,0,0,0,5,17.5205V28H2v2H30V28ZM17,4h4V6H17ZM7,17.5205l9-6.3,9,6.3V28H17V20H15v8H7Z\"\n })), children);\n});\nvar MilitaryCamp16 = /*#__PURE__*/React.forwardRef(function MilitaryCamp16(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27,28v-10.48a2.0035,2.0035,0,0,0-.853-1.6387L17,9.48V8h6V2H15V9.48L5.8528,15.8823A2.0023,2.0023,0,0,0,5,17.5205V28H2v2H30V28ZM17,4h4V6H17ZM7,17.5205l9-6.3,9,6.3V28H17V20H15v8H7Z\"\n })), children);\n});\nvar Minimize32 = /*#__PURE__*/React.forwardRef(function Minimize32(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z\"\n })), children);\n});\nvar Minimize24 = /*#__PURE__*/React.forwardRef(function Minimize24(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z\"\n })), children);\n});\nvar Minimize20 = /*#__PURE__*/React.forwardRef(function Minimize20(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z\"\n })), children);\n});\nvar Minimize16 = /*#__PURE__*/React.forwardRef(function Minimize16(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z\"\n })), children);\n});\nvar Misuse32 = /*#__PURE__*/React.forwardRef(function Misuse32(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9\\tl5.4,5.4L21.4,9l1.6,1.6L17.6,16l5.4,5.4L21.4,23z\"\n })), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9l5.4,5.4L21.4,9l1.6,1.6L17.6,16\\tl5.4,5.4L21.4,23z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar Misuse24 = /*#__PURE__*/React.forwardRef(function Misuse24(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.2,17.5L12,13.3l-4.2,4.2l-1.3-1.3l4.2-4.2L6.5,7.8l1.3-1.3\\tl4.2,4.2l4.2-4.2l1.3,1.3L13.3,12l4.2,4.2L16.2,17.5z\"\n })), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M16.2,17.5L12,13.3l-4.2,4.2l-1.3-1.3l4.2-4.2L6.5,7.8l1.3-1.3l4.2,4.2l4.2-4.2l1.3,1.3\\tL13.3,12l4.2,4.2L16.2,17.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar Misuse20 = /*#__PURE__*/React.forwardRef(function Misuse20(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5L10,11l-3.5,3.5l-1-1L9,10L5.5,6.5l1-1L10,9l3.5-3.5l1,1\\tL11,10l3.5,3.5L13.5,14.5z\"\n })), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M13.5,14.5L10,11l-3.5,3.5l-1-1L9,10L5.5,6.5l1-1L10,9l3.5-3.5l1,1L11,10l3.5,3.5L13.5,14.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar Misuse16 = /*#__PURE__*/React.forwardRef(function Misuse16(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2\\tl2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z\"\n })), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8\\tl2.7,2.7L10.7,11.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar MisuseAlt32 = /*#__PURE__*/React.forwardRef(function MisuseAlt32(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt32']) {\n didWarnAboutDeprecation['MisuseAlt32'] = true;\n console.warn(\"The MisuseAlt32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseAlt24 = /*#__PURE__*/React.forwardRef(function MisuseAlt24(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt24']) {\n didWarnAboutDeprecation['MisuseAlt24'] = true;\n console.warn(\"The MisuseAlt24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseAlt20 = /*#__PURE__*/React.forwardRef(function MisuseAlt20(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt20']) {\n didWarnAboutDeprecation['MisuseAlt20'] = true;\n console.warn(\"The MisuseAlt20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseAlt16 = /*#__PURE__*/React.forwardRef(function MisuseAlt16(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['MisuseAlt16']) {\n didWarnAboutDeprecation['MisuseAlt16'] = true;\n console.warn(\"The MisuseAlt16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.41 23L16 17.591 10.59 23 9 21.41 14.409 16 9 10.591 10.591 9 16 14.409 21.409 9 23 10.591 17.591 16 23 21.41 21.41 23z\"\n })), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,4A12,12,0,1,1,4,16,12.0136,12.0136,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Z\"\n })), children);\n});\nvar MisuseOutline32 = /*#__PURE__*/React.forwardRef(function MisuseOutline32(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar MisuseOutline24 = /*#__PURE__*/React.forwardRef(function MisuseOutline24(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar MisuseOutline20 = /*#__PURE__*/React.forwardRef(function MisuseOutline20(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar MisuseOutline16 = /*#__PURE__*/React.forwardRef(function MisuseOutline16(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z\"\n })), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.7 11.5L8 8.8 5.3 11.5 4.5 10.7 7.2 8 4.5 5.3 5.3 4.5 8 7.2 10.7 4.5 11.5 5.3 8.8 8 11.5 10.7z\"\n })), children);\n});\nvar MixedRainHail32 = /*#__PURE__*/React.forwardRef(function MixedRainHail32(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle14 || (_circle14 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar MixedRainHail24 = /*#__PURE__*/React.forwardRef(function MixedRainHail24(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle15 || (_circle15 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle16 || (_circle16 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar MixedRainHail20 = /*#__PURE__*/React.forwardRef(function MixedRainHail20(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle17 || (_circle17 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle18 || (_circle18 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar MixedRainHail16 = /*#__PURE__*/React.forwardRef(function MixedRainHail16(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle19 || (_circle19 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"24.5\",\n cy: \"25.5\",\n r: \"1.5\"\n })), _circle20 || (_circle20 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"21.5\",\n cy: \"29.5\",\n r: \"1.5\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.868 30.496L14.132 29.504 17.276 24 11.277 24 16.132 15.504 17.868 16.496 14.723 22 20.724 22 15.868 30.496z\"\n })), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 32a1 1 0 01-.8944-1.4474l2-4.0005a1 1 0 111.7888.8947l-2 4A.9981.9981 0 019 32zM24.8008 9.1362a8.9943 8.9943 0 00-17.6006 0 6.4929 6.4929 0 00.23 12.7681L6.106 24.5527a1 1 0 101.7885.8946l2-4a1 1 0 00-.447-1.3418A.9786.9786 0 009 20.01V20H8.5a4.4975 4.4975 0 01-.356-8.981l.8155-.0639.0991-.812a6.9938 6.9938 0 0113.8838 0l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 20H23v2h.5A6.4974 6.4974 0 0024.8008 9.1362z\"\n })), children);\n});\nvar Mobile32 = /*#__PURE__*/React.forwardRef(function Mobile32(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar Mobile24 = /*#__PURE__*/React.forwardRef(function Mobile24(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar Mobile20 = /*#__PURE__*/React.forwardRef(function Mobile20(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar Mobile16 = /*#__PURE__*/React.forwardRef(function Mobile16(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2H22a2.0027,2.0027,0,0,0,2-2V6A2.0023,2.0023,0,0,0,22,4Zm0,2,0,2H10V6ZM10,28V10H22l0,18Z\"\n })), children);\n});\nvar MobileAdd32 = /*#__PURE__*/React.forwardRef(function MobileAdd32(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAdd24 = /*#__PURE__*/React.forwardRef(function MobileAdd24(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAdd20 = /*#__PURE__*/React.forwardRef(function MobileAdd20(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAdd16 = /*#__PURE__*/React.forwardRef(function MobileAdd16(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 24L24 24 24 20 22 20 22 24 18 24 18 26 22 26 22 30 24 30 24 26 28 26 28 24z\"\n })), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v7h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6l0-2ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileAudio32 = /*#__PURE__*/React.forwardRef(function MobileAudio32(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle21 || (_circle21 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileAudio24 = /*#__PURE__*/React.forwardRef(function MobileAudio24(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle22 || (_circle22 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileAudio20 = /*#__PURE__*/React.forwardRef(function MobileAudio20(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle23 || (_circle23 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileAudio16 = /*#__PURE__*/React.forwardRef(function MobileAudio16(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 12H30V15H28zM24 7H26V20H24zM20 11H22V16H20zM16 9H18V18H16zM12 12H14V15H12z\"\n })), _circle24 || (_circle24 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"13.5\",\n cy: \"24.5\",\n r: \"1.5\"\n })), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,30H7a2.0023,2.0023,0,0,1-2-2V4A2.0023,2.0023,0,0,1,7,2H20V4H7V28H20V24h2v4A2.0023,2.0023,0,0,1,20,30Z\"\n })), children);\n});\nvar MobileCheck32 = /*#__PURE__*/React.forwardRef(function MobileCheck32(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileCheck24 = /*#__PURE__*/React.forwardRef(function MobileCheck24(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileCheck20 = /*#__PURE__*/React.forwardRef(function MobileCheck20(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileCheck16 = /*#__PURE__*/React.forwardRef(function MobileCheck16(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 27.18L17.41 24.59 16 26 20 30 28 22 26.59 20.59 20 27.18z\"\n })), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v9h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h4V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload32 = /*#__PURE__*/React.forwardRef(function MobileDownload32(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload24 = /*#__PURE__*/React.forwardRef(function MobileDownload24(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload20 = /*#__PURE__*/React.forwardRef(function MobileDownload20(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileDownload16 = /*#__PURE__*/React.forwardRef(function MobileDownload16(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 25L26.586 23.586 24 26.172 24 18 22 18 22 26.172 19.414 23.586 18 25 23 30 28 25z\"\n })), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,28V10H22v5h2V6a2.0023,2.0023,0,0,0-2-2H10A2.002,2.002,0,0,0,8,6V28a2.0023,2.0023,0,0,0,2,2h6V28ZM10,6H22l0,2H10Z\"\n })), children);\n});\nvar MobileLandscape32 = /*#__PURE__*/React.forwardRef(function MobileLandscape32(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobileLandscape24 = /*#__PURE__*/React.forwardRef(function MobileLandscape24(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobileLandscape20 = /*#__PURE__*/React.forwardRef(function MobileLandscape20(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobileLandscape16 = /*#__PURE__*/React.forwardRef(function MobileLandscape16(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3,10V22a2.002,2.002,0,0,0,2,2H27a2.0023,2.0023,0,0,0,2-2V10a2.0027,2.0027,0,0,0-2-2H5A2.0023,2.0023,0,0,0,3,10Zm2,0,2,0V22H5ZM27,22H9V10H27Z\"\n })), children);\n});\nvar MobilityServices32 = /*#__PURE__*/React.forwardRef(function MobilityServices32(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar MobilityServices24 = /*#__PURE__*/React.forwardRef(function MobilityServices24(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar MobilityServices20 = /*#__PURE__*/React.forwardRef(function MobilityServices20(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar MobilityServices16 = /*#__PURE__*/React.forwardRef(function MobilityServices16(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.3379 19.9336l-7.7324-2.7783L18.374 13.0967A2.99 2.99 0 0016.0537 12H8.0576a2.9982 2.9982 0 00-2.48 1.3115L2.8662 17.2949A4.9884 4.9884 0 002 20.1074V26a1 1 0 001 1H5.1421a3.9806 3.9806 0 007.7158 0h6.2842a3.9806 3.9806 0 007.7158 0H29a1 1 0 001-1V20.875A1 1 0 0029.3379 19.9336zM9 28a2 2 0 112-2A2.0027 2.0027 0 019 28zm14 0a2 2 0 112-2A2.0025 2.0025 0 0123 28zm5-3H26.8579a3.9806 3.9806 0 00-7.7158 0H12.8579a3.9806 3.9806 0 00-7.7158 0H4V20.1074A2.9977 2.9977 0 014.52 18.4189l2.711-3.9814A.9992.9992 0 018.0576 14h7.9961a.9928.9928 0 01.7647.3545l3.3994 4.2685a1.0007 1.0007 0 00.4443.3184L28 21.5781zM28 2H24a2.0023 2.0023 0 00-2 2v8a2.0023 2.0023 0 002 2h4a2.0023 2.0023 0 002-2V4A2.0023 2.0023 0 0028 2zm0 2V6H24V4zm-4 8V8h4v4z\"\n })), children);\n});\nvar Model32 = /*#__PURE__*/React.forwardRef(function Model32(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar Model24 = /*#__PURE__*/React.forwardRef(function Model24(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar Model20 = /*#__PURE__*/React.forwardRef(function Model20(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar Model16 = /*#__PURE__*/React.forwardRef(function Model16(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,16,29.5269,30.2842,13.0454ZM27,12H21.5543l-3.75-6H22.5ZM10.3021,14l3.7536,10.23L5.19,14Zm2.13,0H19.568l-3.569,9.7212Zm.3725-2L16,6.8867,19.1957,12Zm8.8935,2H26.81L17.9427,24.2314ZM9.5,6h4.6957l-3.75,6H5Z\"\n })), children);\n});\nvar ModelAlt32 = /*#__PURE__*/React.forwardRef(function ModelAlt32(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelAlt24 = /*#__PURE__*/React.forwardRef(function ModelAlt24(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelAlt20 = /*#__PURE__*/React.forwardRef(function ModelAlt20(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelAlt16 = /*#__PURE__*/React.forwardRef(function ModelAlt16(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.4473,16.1055,23,13.3818V7a1,1,0,0,0-.5527-.8945l-6-3a1.0008,1.0008,0,0,0-.8946,0l-6,3A1,1,0,0,0,9,7v6.3818L3.5527,16.1055A1,1,0,0,0,3,17v7a1,1,0,0,0,.5527.8945l6,3a1.001,1.001,0,0,0,.8946,0L16,25.1182l5.5527,2.7763a1.001,1.001,0,0,0,.8946,0l6-3A1,1,0,0,0,29,24V17A1,1,0,0,0,28.4473,16.1055ZM21,13.3818l-4,2V10.6182l4-2ZM16,5.1182,19.7637,7,16,8.8818,12.2363,7Zm-5,3.5,4,2v4.7636l-4-2ZM9,25.3818l-4-2V18.6182l4,2Zm1-6.5L6.2363,17,10,15.1182,13.7637,17Zm1,1.7364,4-2v4.7636l-4,2Zm10,4.7636-4-2V18.6182l4,2Zm1-6.5L18.2363,17,22,15.1182,25.7637,17Zm5,4.5-4,2V20.6182l4-2Z\"\n })), children);\n});\nvar ModelReference32 = /*#__PURE__*/React.forwardRef(function ModelReference32(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelReference24 = /*#__PURE__*/React.forwardRef(function ModelReference24(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelReference20 = /*#__PURE__*/React.forwardRef(function ModelReference20(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelReference16 = /*#__PURE__*/React.forwardRef(function ModelReference16(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,4H8.5L1.7158,13.0454,6.01,18l1.5114-1.31L5.19,14h5.2554L16,22.8867,21.5544,14H26.81L15.8125,26.6919,17.3242,28l12.96-14.9546ZM5,12,9.5,6h4.6958l-3.75,6ZM16,6.8867,19.1958,12H12.8042Zm0,12.2266L12.8044,14h6.3912ZM21.5542,12l-3.75-6H22.5L27,12Z\"\n })), children);\n});\nvar ModelBuilder32 = /*#__PURE__*/React.forwardRef(function ModelBuilder32(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilder24 = /*#__PURE__*/React.forwardRef(function ModelBuilder24(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilder20 = /*#__PURE__*/React.forwardRef(function ModelBuilder20(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilder16 = /*#__PURE__*/React.forwardRef(function ModelBuilder16(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12v8A3.0037,3.0037,0,0,1,13,23H10V20H2v8h8V25H13A5.0062,5.0062,0,0,0,18,20V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8ZM8,26H4V22H8ZM28,10H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference32 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference32(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference24 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference24(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference20 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference20(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar ModelBuilderReference16 = /*#__PURE__*/React.forwardRef(function ModelBuilderReference16(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22,4V7H10V4H2v8h8V9h7.0234A4.9463,4.9463,0,0,0,16,12V28h2V12a2.9982,2.9982,0,0,1,2.9971-3H22v3h8V4ZM8,10H4V6H8Zm20,0H24V6h4Z\"\n })), children);\n});\nvar Money32 = /*#__PURE__*/React.forwardRef(function Money32(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Money24 = /*#__PURE__*/React.forwardRef(function Money24(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Money20 = /*#__PURE__*/React.forwardRef(function Money20(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Money16 = /*#__PURE__*/React.forwardRef(function Money16(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z\"\n })), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z\"\n })), children);\n});\nvar Monster32 = /*#__PURE__*/React.forwardRef(function Monster32(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monster24 = /*#__PURE__*/React.forwardRef(function Monster24(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monster20 = /*#__PURE__*/React.forwardRef(function Monster20(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path385 || (_path385 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monster16 = /*#__PURE__*/React.forwardRef(function Monster16(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path386 || (_path386 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23 22L21 22 21 20 19 20 19 22 17 22 17 20 15 20 15 22 13 22 13 20 11 20 11 22 9 22 9 24 11 24 11 26 13 26 13 24 15 24 15 26 17 26 17 24 19 24 19 26 21 26 21 24 23 24 23 22z\"\n })), _path387 || (_path387 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,11H27V4a2.0025,2.0025,0,0,0-2-2H7A2.0025,2.0025,0,0,0,5,4v7H4a2.0025,2.0025,0,0,0-2,2v4a2.0025,2.0025,0,0,0,2,2H5v4a7.0078,7.0078,0,0,0,7,7h8a7.0078,7.0078,0,0,0,7-7V19h1a2.0025,2.0025,0,0,0,2-2V13A2.0025,2.0025,0,0,0,28,11ZM25,4V7.3818L22.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L18,7.8818,14.4473,6.1055a1.0008,1.0008,0,0,0-.8946,0L10,7.8818l-3-1.5V4Zm3,13H25v6a5.0057,5.0057,0,0,1-5,5H12a5.0057,5.0057,0,0,1-5-5V17H4V13H7V8.6182L9.5527,9.8945a1.0008,1.0008,0,0,0,.8946,0L14,8.1182l3.5527,1.7763a1.001,1.001,0,0,0,.8946,0L22,8.1182l3,1.5V13h3Z\"\n })), _path388 || (_path388 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 14H14V16H9zM18 14H23V16H18z\"\n })), children);\n});\nvar Monument32 = /*#__PURE__*/React.forwardRef(function Monument32(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path389 || (_path389 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Monument24 = /*#__PURE__*/React.forwardRef(function Monument24(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path390 || (_path390 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Monument20 = /*#__PURE__*/React.forwardRef(function Monument20(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path391 || (_path391 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Monument16 = /*#__PURE__*/React.forwardRef(function Monument16(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path392 || (_path392 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,28V6L16,2,12,6V28H2v2H30V28Zm-6,0V6.8281l2-2,2,2V28Z\"\n })), children);\n});\nvar Moon32 = /*#__PURE__*/React.forwardRef(function Moon32(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path393 || (_path393 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moon24 = /*#__PURE__*/React.forwardRef(function Moon24(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path394 || (_path394 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moon20 = /*#__PURE__*/React.forwardRef(function Moon20(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path395 || (_path395 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moon16 = /*#__PURE__*/React.forwardRef(function Moon16(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path396 || (_path396 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z\"\n })), children);\n});\nvar Moonrise32 = /*#__PURE__*/React.forwardRef(function Moonrise32(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path397 || (_path397 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonrise24 = /*#__PURE__*/React.forwardRef(function Moonrise24(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path398 || (_path398 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonrise20 = /*#__PURE__*/React.forwardRef(function Moonrise20(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path399 || (_path399 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonrise16 = /*#__PURE__*/React.forwardRef(function Moonrise16(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path400 || (_path400 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 2L11 7 12.41 8.41 15 5.83 15 6 15 14 17 14 17 6 17 5.83 19.59 8.41 21 7 16 2z\"\n })), children);\n});\nvar Moonset32 = /*#__PURE__*/React.forwardRef(function Moonset32(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path401 || (_path401 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar Moonset24 = /*#__PURE__*/React.forwardRef(function Moonset24(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path402 || (_path402 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar Moonset20 = /*#__PURE__*/React.forwardRef(function Moonset20(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path403 || (_path403 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar Moonset16 = /*#__PURE__*/React.forwardRef(function Moonset16(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path404 || (_path404 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 28H30V30H2zM26 26H24a7.987 7.987 0 00-2.0371-5.3335l1.49-1.334A9.9835 9.9835 0 0126 26zM16 26H14a9.9268 9.9268 0 013.7539-7.804A7.89 7.89 0 0016 18a8.0092 8.0092 0 00-8 8H6A10.0113 10.0113 0 0116 16a9.8923 9.8923 0 014.4458 1.0515 1 1 0 010 1.79A7.9567 7.9567 0 0016 26zM16 14L11 9 12.41 7.59 15 10.17 15 10 15 2 17 2 17 10 17 10.17 19.59 7.59 21 9 16 14z\"\n })), children);\n});\nvar MostlyCloudy32 = /*#__PURE__*/React.forwardRef(function MostlyCloudy32(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path405 || (_path405 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path406 || (_path406 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path407 || (_path407 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path408 || (_path408 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path409 || (_path409 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudy24 = /*#__PURE__*/React.forwardRef(function MostlyCloudy24(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path410 || (_path410 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path411 || (_path411 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path412 || (_path412 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path413 || (_path413 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path414 || (_path414 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudy20 = /*#__PURE__*/React.forwardRef(function MostlyCloudy20(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path415 || (_path415 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path416 || (_path416 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path417 || (_path417 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path418 || (_path418 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path419 || (_path419 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudy16 = /*#__PURE__*/React.forwardRef(function MostlyCloudy16(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path420 || (_path420 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.743,18.6872A6.05,6.05,0,0,0,22.8,17.6006a5.9977,5.9977,0,1,0-10.7334-4.4444,7.5568,7.5568,0,0,0-5.7158,5.0879A5.9926,5.9926,0,0,0,8,30H19a5.9854,5.9854,0,0,0,2.743-11.3128ZM18,10a4.0042,4.0042,0,0,1,4,4,3.9613,3.9613,0,0,1-.8,2.3994,4.0122,4.0122,0,0,1-.94.8917,7.5416,7.5416,0,0,0-6.1339-4.2395A3.9985,3.9985,0,0,1,18,10Zm1,18H8a3.9928,3.9928,0,0,1-.6729-7.93L7.99,19.958l.1456-.6562a5.4958,5.4958,0,0,1,10.729,0l.1464.6562.6622.1123A3.9928,3.9928,0,0,1,19,28Z\",\n transform: \"translate(0 .005)\"\n })), _path421 || (_path421 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 13.005H30V15.005H26z\"\n })), _path422 || (_path422 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.071 5.929H27.071V7.929H23.071z\",\n transform: \"rotate(-45 25.077 6.931)\"\n })), _path423 || (_path423 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 2.005H19V6.005H17z\"\n })), _path424 || (_path424 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.929 4.929H11.929V8.929H9.929z\",\n transform: \"rotate(-45 10.935 6.931)\"\n })), children);\n});\nvar MostlyCloudyNight32 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight32(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path425 || (_path425 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar MostlyCloudyNight24 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight24(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path426 || (_path426 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar MostlyCloudyNight20 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight20(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path427 || (_path427 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar MostlyCloudyNight16 = /*#__PURE__*/React.forwardRef(function MostlyCloudyNight16(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path428 || (_path428 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.8438,15.0347a1.5169,1.5169,0,0,0-1.23-.8658,5.3547,5.3547,0,0,1-3.4094-1.7158A6.4653,6.4653,0,0,1,23.918,6.0605a1.6025,1.6025,0,0,0-.2989-1.5459,1.4543,1.4543,0,0,0-1.36-.4931l-.0191.0039a7.927,7.927,0,0,0-6.22,7.4307A7.3638,7.3638,0,0,0,13.5,11a7.5511,7.5511,0,0,0-7.1494,5.2441A5.9926,5.9926,0,0,0,8,28H19a5.9771,5.9771,0,0,0,5.6147-8.0884,7.5054,7.5054,0,0,0,5.1324-3.3569A1.5372,1.5372,0,0,0,29.8438,15.0347ZM19,26H8a3.9926,3.9926,0,0,1-.6733-7.9292l.663-.1128.1456-.6562a5.496,5.496,0,0,1,10.7294,0l.1456.6562.6626.1128A3.9925,3.9925,0,0,1,19,26Zm4.4653-8.001h-.0217a5.9581,5.9581,0,0,0-2.7942-1.7549,7.5068,7.5068,0,0,0-2.6008-3.6767c-.01-.1016-.0361-.1978-.041-.3008a6.078,6.078,0,0,1,3.7907-6.05,8.4577,8.4577,0,0,0,1.94,7.5967A7.4007,7.4007,0,0,0,27.64,16.041,5.4286,5.4286,0,0,1,23.4653,17.999Z\"\n })), children);\n});\nvar Mountain32 = /*#__PURE__*/React.forwardRef(function Mountain32(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path429 || (_path429 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mountain24 = /*#__PURE__*/React.forwardRef(function Mountain24(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path430 || (_path430 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mountain20 = /*#__PURE__*/React.forwardRef(function Mountain20(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path431 || (_path431 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\nvar Mountain16 = /*#__PURE__*/React.forwardRef(function Mountain16(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path432 || (_path432 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.6343,26,17.7888,5.1055a2,2,0,0,0-3.5879.021L4.3657,26H2v2H30V26ZM15.99,5.979,20.9473,16.5,19,17.7979l-3-2-3,2-1.9551-1.3033ZM10.1846,18.3247,13,20.2021l3-2,3,2,2.8091-1.873L25.4233,26H6.5752Z\"\n })), children);\n});\n\nexport { MagicWand16, MagicWand20, MagicWandFilled16, MagicWandFilled20, MagicWandFilled24, MagicWandFilled32, MailAll16, MailAll20, MailAll24, MailAll32, MailReply16, MailReply20, MailReply24, MailReply32, MammogramStacked16, MammogramStacked20, MammogramStacked24, MammogramStacked32, ManageProtection16, ManageProtection20, ManageProtection24, ManageProtection32, ManagedSolutions16, ManagedSolutions20, ManagedSolutions24, ManagedSolutions32, Map16, Map20, Map24, Map32, MapBoundary16, MapBoundary20, MapBoundary24, MapBoundary32, MapBoundaryVegetation16, MapBoundaryVegetation20, MapBoundaryVegetation24, MapBoundaryVegetation32, MapCenter16, MapCenter20, MapCenter24, MapCenter32, MapIdentify16, MapIdentify20, MapIdentify24, MapIdentify32, MarineWarning16, MarineWarning20, MarineWarning24, MarineWarning32, MathCurve16, MathCurve20, MathCurve24, MathCurve32, Maximize16, Maximize20, Maximize24, Maximize32, MediaCast16, MediaCast20, MediaCast24, MediaCast32, MediaLibrary16, MediaLibrary20, MediaLibrary24, MediaLibrary32, MediaLibraryFilled16, MediaLibraryFilled20, MediaLibraryFilled24, MediaLibraryFilled32, Medication16, Medication20, Medication24, Medication32, MedicationAlert16, MedicationAlert20, MedicationAlert24, MedicationAlert32, MedicationReminder16, MedicationReminder20, MedicationReminder24, MedicationReminder32, Menu16, Menu20, Menu24, Menu32, MessageQueue16, MessageQueue20, MessageQueue24, MessageQueue32, Meter16, Meter20, Meter24, Meter32, MeterAlt16, MeterAlt20, MeterAlt24, MeterAlt32, Microphone16, Microphone20, Microphone24, Microphone32, MicrophoneFilled16, MicrophoneFilled20, MicrophoneFilled24, MicrophoneFilled32, MicrophoneOff16, MicrophoneOff20, MicrophoneOff24, MicrophoneOff32, MicrophoneOffFilled16, MicrophoneOffFilled20, MicrophoneOffFilled24, MicrophoneOffFilled32, Microscope16, Microscope20, Microscope24, Microscope32, Migrate16, Migrate20, Migrate24, Migrate32, MigrateAlt16, MigrateAlt20, MigrateAlt24, MigrateAlt32, Milestone16, Milestone20, Milestone24, Milestone32, MilitaryCamp16, MilitaryCamp20, MilitaryCamp24, MilitaryCamp32, Minimize16, Minimize20, Minimize24, Minimize32, Misuse16, Misuse20, Misuse24, Misuse32, MisuseAlt16, MisuseAlt20, MisuseAlt24, MisuseAlt32, MisuseOutline16, MisuseOutline20, MisuseOutline24, MisuseOutline32, MixedRainHail16, MixedRainHail20, MixedRainHail24, MixedRainHail32, Mobile16, Mobile20, Mobile24, Mobile32, MobileAdd16, MobileAdd20, MobileAdd24, MobileAdd32, MobileAudio16, MobileAudio20, MobileAudio24, MobileAudio32, MobileCheck16, MobileCheck20, MobileCheck24, MobileCheck32, MobileDownload16, MobileDownload20, MobileDownload24, MobileDownload32, MobileLandscape16, MobileLandscape20, MobileLandscape24, MobileLandscape32, MobilityServices16, MobilityServices20, MobilityServices24, MobilityServices32, Model16, Model20, Model24, Model32, ModelAlt16, ModelAlt20, ModelAlt24, ModelAlt32, ModelBuilder16, ModelBuilder20, ModelBuilder24, ModelBuilder32, ModelBuilderReference16, ModelBuilderReference20, ModelBuilderReference24, ModelBuilderReference32, ModelReference16, ModelReference20, ModelReference24, ModelReference32, Money16, Money20, Money24, Money32, Monster16, Monster20, Monster24, Monster32, Monument16, Monument20, Monument24, Monument32, Moon16, Moon20, Moon24, Moon32, Moonrise16, Moonrise20, Moonrise24, Moonrise32, Moonset16, Moonset20, Moonset24, Moonset32, MostlyCloudy16, MostlyCloudy20, MostlyCloudy24, MostlyCloudy32, MostlyCloudyNight16, MostlyCloudyNight20, MostlyCloudyNight24, MostlyCloudyNight32, Mountain16, Mountain20, Mountain24, Mountain32, QMatrix16, QMatrix20, QMatrix24, QMatrix32, WatsonHealthMagnify16, WatsonHealthMagnify20, WatsonHealthMagnify24, WatsonHealthMagnify32, WatsonHealthMammogram16, WatsonHealthMammogram20, WatsonHealthMammogram24, WatsonHealthMammogram32 };\n","/**\n * Copyright IBM Corp. 2019, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nimport { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-9ecdf98c.js';\nimport React from 'react';\nimport '@carbon/icon-helpers';\nimport 'prop-types';\n\nvar _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55, _path56, _path57, _path58, _path59, _path60, _path61, _path62, _path63, _path64, _path65, _path66, _path67, _path68, _path69, _path70, _path71, _path72, _path73, _path74, _path75, _path76, _path77, _path78, _path79, _path80, _path81, _path82, _path83, _path84, _path85, _path86, _path87, _path88, _path89, _path90, _path91, _path92, _path93, _path94, _path95, _path96, _path97, _path98, _path99, _path100, _path101, _path102, _path103, _path104, _path105, _path106, _path107, _path108, _path109, _path110, _path111, _path112, _path113, _path114, _path115, _path116, _path117, _path118, _path119, _path120, _path121, _path122, _path123, _path124, _path125, _path126, _path127, _path128, _path129, _path130, _path131, _path132, _path133, _path134, _path135, _path136, _path137, _path138, _path139, _path140, _path141, _path142, _path143, _path144, _path145, _path146, _path147, _path148, _path149, _path150, _path151, _path152, _path153, _path154, _path155, _path156, _path157, _path158, _path159, _path160, _path161, _path162, _path163, _path164, _path165, _path166, _path167, _path168, _path169, _path170, _path171, _path172, _path173, _path174, _path175, _path176, _path177, _path178, _path179, _path180, _path181, _path182, _path183, _path184, _path185, _path186, _path187, _path188, _path189, _path190, _path191, _path192, _path193, _path194, _path195, _path196, _path197, _path198, _path199, _path200, _path201, _path202, _path203, _path204, _path205, _path206, _path207, _path208, _path209, _path210, _path211, _path212, _path213, _circle, _path214, _circle2, _path215, _circle3, _path216, _circle4, _path217, _circle5, _circle6, _circle7, _circle8, _path218, _path219, _path220, _path221, _circle9, _path222, _path223, _path224, _path225, _path226, _path227, _path228, _path229, _path230, _path231, _path232, _path233, _path234, _path235, _path236, _path237, _path238, _path239, _path240, _path241, _path242, _circle10, _path243, _circle11, _path244, _circle12, _path245, _circle13, _path246, _path247, _path248, _path249, _path250, _path251, _path252, _path253, _path254, _path255, _path256, _path257, _path258, _path259, _path260, _path261, _path262, _path263, _path264, _path265, _path266, _path267, _path268, _path269, _path270, _path271, _path272, _path273, _path274, _path275, _path276, _path277, _path278, _path279, _path280, _path281, _path282, _path283, _path284, _path285, _path286, _path287, _path288, _path289, _path290, _path291, _path292, _path293, _path294, _path295, _path296, _path297, _path298, _path299, _path300, _path301, _path302, _path303, _path304, _path305, _path306, _path307, _path308, _path309, _path310, _path311, _path312, _path313, _path314, _path315, _path316, _path317, _path318, _path319, _path320, _path321, _path322, _path323, _path324, _path325, _path326, _path327, _path328, _path329, _path330, _path331, _path332, _path333, _path334, _path335, _path336, _path337, _path338, _path339, _path340, _path341, _path342, _path343, _path344, _path345, _path346, _path347, _path348, _path349, _path350, _path351, _path352, _path353, _path354, _path355, _path356, _path357, _path358, _path359, _path360, _path361, _path362, _path363, _path364, _path365, _path366, _path367, _path368, _path369, _path370, _path371, _path372, _path373, _path374, _path375, _path376, _path377, _path378, _path379, _path380, _path381, _path382, _path383, _path384, _path385, _path386, _path387, _path388, _path389;\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"],\n _excluded3 = [\"children\"],\n _excluded4 = [\"children\"],\n _excluded5 = [\"children\"],\n _excluded6 = [\"children\"],\n _excluded7 = [\"children\"],\n _excluded8 = [\"children\"],\n _excluded9 = [\"children\"],\n _excluded10 = [\"children\"],\n _excluded11 = [\"children\"],\n _excluded12 = [\"children\"],\n _excluded13 = [\"children\"],\n _excluded14 = [\"children\"],\n _excluded15 = [\"children\"],\n _excluded16 = [\"children\"],\n _excluded17 = [\"children\"],\n _excluded18 = [\"children\"],\n _excluded19 = [\"children\"],\n _excluded20 = [\"children\"],\n _excluded21 = [\"children\"],\n _excluded22 = [\"children\"],\n _excluded23 = [\"children\"],\n _excluded24 = [\"children\"],\n _excluded25 = [\"children\"],\n _excluded26 = [\"children\"],\n _excluded27 = [\"children\"],\n _excluded28 = [\"children\"],\n _excluded29 = [\"children\"],\n _excluded30 = [\"children\"],\n _excluded31 = [\"children\"],\n _excluded32 = [\"children\"],\n _excluded33 = [\"children\"],\n _excluded34 = [\"children\"],\n _excluded35 = [\"children\"],\n _excluded36 = [\"children\"],\n _excluded37 = [\"children\"],\n _excluded38 = [\"children\"],\n _excluded39 = [\"children\"],\n _excluded40 = [\"children\"],\n _excluded41 = [\"children\"],\n _excluded42 = [\"children\"],\n _excluded43 = [\"children\"],\n _excluded44 = [\"children\"],\n _excluded45 = [\"children\"],\n _excluded46 = [\"children\"],\n _excluded47 = [\"children\"],\n _excluded48 = [\"children\"],\n _excluded49 = [\"children\"],\n _excluded50 = [\"children\"],\n _excluded51 = [\"children\"],\n _excluded52 = [\"children\"],\n _excluded53 = [\"children\"],\n _excluded54 = [\"children\"],\n _excluded55 = [\"children\"],\n _excluded56 = [\"children\"],\n _excluded57 = [\"children\"],\n _excluded58 = [\"children\"],\n _excluded59 = [\"children\"],\n _excluded60 = [\"children\"],\n _excluded61 = [\"children\"],\n _excluded62 = [\"children\"],\n _excluded63 = [\"children\"],\n _excluded64 = [\"children\"],\n _excluded65 = [\"children\"],\n _excluded66 = [\"children\"],\n _excluded67 = [\"children\"],\n _excluded68 = [\"children\"],\n _excluded69 = [\"children\"],\n _excluded70 = [\"children\"],\n _excluded71 = [\"children\"],\n _excluded72 = [\"children\"],\n _excluded73 = [\"children\"],\n _excluded74 = [\"children\"],\n _excluded75 = [\"children\"],\n _excluded76 = [\"children\"],\n _excluded77 = [\"children\"],\n _excluded78 = [\"children\"],\n _excluded79 = [\"children\"],\n _excluded80 = [\"children\"],\n _excluded81 = [\"children\"],\n _excluded82 = [\"children\"],\n _excluded83 = [\"children\"],\n _excluded84 = [\"children\"],\n _excluded85 = [\"children\"],\n _excluded86 = [\"children\"],\n _excluded87 = [\"children\"],\n _excluded88 = [\"children\"],\n _excluded89 = [\"children\"],\n _excluded90 = [\"children\"],\n _excluded91 = [\"children\"],\n _excluded92 = [\"children\"],\n _excluded93 = [\"children\"],\n _excluded94 = [\"children\"],\n _excluded95 = [\"children\"],\n _excluded96 = [\"children\"],\n _excluded97 = [\"children\"],\n _excluded98 = [\"children\"],\n _excluded99 = [\"children\"],\n _excluded100 = [\"children\"],\n _excluded101 = [\"children\"],\n _excluded102 = [\"children\"],\n _excluded103 = [\"children\"],\n _excluded104 = [\"children\"],\n _excluded105 = [\"children\"],\n _excluded106 = [\"children\"],\n _excluded107 = [\"children\"],\n _excluded108 = [\"children\"],\n _excluded109 = [\"children\"],\n _excluded110 = [\"children\"],\n _excluded111 = [\"children\"],\n _excluded112 = [\"children\"],\n _excluded113 = [\"children\"],\n _excluded114 = [\"children\"],\n _excluded115 = [\"children\"],\n _excluded116 = [\"children\"],\n _excluded117 = [\"children\"],\n _excluded118 = [\"children\"],\n _excluded119 = [\"children\"],\n _excluded120 = [\"children\"],\n _excluded121 = [\"children\"],\n _excluded122 = [\"children\"],\n _excluded123 = [\"children\"],\n _excluded124 = [\"children\"],\n _excluded125 = [\"children\"],\n _excluded126 = [\"children\"],\n _excluded127 = [\"children\"],\n _excluded128 = [\"children\"],\n _excluded129 = [\"children\"],\n _excluded130 = [\"children\"],\n _excluded131 = [\"children\"],\n _excluded132 = [\"children\"],\n _excluded133 = [\"children\"],\n _excluded134 = [\"children\"],\n _excluded135 = [\"children\"],\n _excluded136 = [\"children\"],\n _excluded137 = [\"children\"],\n _excluded138 = [\"children\"],\n _excluded139 = [\"children\"],\n _excluded140 = [\"children\"],\n _excluded141 = [\"children\"],\n _excluded142 = [\"children\"],\n _excluded143 = [\"children\"],\n _excluded144 = [\"children\"],\n _excluded145 = [\"children\"],\n _excluded146 = [\"children\"],\n _excluded147 = [\"children\"],\n _excluded148 = [\"children\"],\n _excluded149 = [\"children\"],\n _excluded150 = [\"children\"],\n _excluded151 = [\"children\"],\n _excluded152 = [\"children\"],\n _excluded153 = [\"children\"],\n _excluded154 = [\"children\"],\n _excluded155 = [\"children\"],\n _excluded156 = [\"children\"],\n _excluded157 = [\"children\"],\n _excluded158 = [\"children\"],\n _excluded159 = [\"children\"],\n _excluded160 = [\"children\"],\n _excluded161 = [\"children\"],\n _excluded162 = [\"children\"],\n _excluded163 = [\"children\"],\n _excluded164 = [\"children\"],\n _excluded165 = [\"children\"],\n _excluded166 = [\"children\"],\n _excluded167 = [\"children\"],\n _excluded168 = [\"children\"],\n _excluded169 = [\"children\"],\n _excluded170 = [\"children\"],\n _excluded171 = [\"children\"],\n _excluded172 = [\"children\"],\n _excluded173 = [\"children\"],\n _excluded174 = [\"children\"],\n _excluded175 = [\"children\"],\n _excluded176 = [\"children\"],\n _excluded177 = [\"children\"],\n _excluded178 = [\"children\"],\n _excluded179 = [\"children\"],\n _excluded180 = [\"children\"],\n _excluded181 = [\"children\"],\n _excluded182 = [\"children\"],\n _excluded183 = [\"children\"],\n _excluded184 = [\"children\"],\n _excluded185 = [\"children\"],\n _excluded186 = [\"children\"],\n _excluded187 = [\"children\"],\n _excluded188 = [\"children\"],\n _excluded189 = [\"children\"],\n _excluded190 = [\"children\"],\n _excluded191 = [\"children\"],\n _excluded192 = [\"children\"],\n _excluded193 = [\"children\"],\n _excluded194 = [\"children\"],\n _excluded195 = [\"children\"],\n _excluded196 = [\"children\"],\n _excluded197 = [\"children\"],\n _excluded198 = [\"children\"],\n _excluded199 = [\"children\"],\n _excluded200 = [\"children\"],\n _excluded201 = [\"children\"],\n _excluded202 = [\"children\"],\n _excluded203 = [\"children\"],\n _excluded204 = [\"children\"],\n _excluded205 = [\"children\"],\n _excluded206 = [\"children\"],\n _excluded207 = [\"children\"],\n _excluded208 = [\"children\"],\n _excluded209 = [\"children\"],\n _excluded210 = [\"children\"],\n _excluded211 = [\"children\"],\n _excluded212 = [\"children\"],\n _excluded213 = [\"children\"],\n _excluded214 = [\"children\"],\n _excluded215 = [\"children\"],\n _excluded216 = [\"children\"],\n _excluded217 = [\"children\"],\n _excluded218 = [\"children\"],\n _excluded219 = [\"children\"],\n _excluded220 = [\"children\"],\n _excluded221 = [\"children\"],\n _excluded222 = [\"children\"],\n _excluded223 = [\"children\"],\n _excluded224 = [\"children\"],\n _excluded225 = [\"children\"],\n _excluded226 = [\"children\"],\n _excluded227 = [\"children\"],\n _excluded228 = [\"children\"],\n _excluded229 = [\"children\"],\n _excluded230 = [\"children\"],\n _excluded231 = [\"children\"],\n _excluded232 = [\"children\"],\n _excluded233 = [\"children\"],\n _excluded234 = [\"children\"],\n _excluded235 = [\"children\"],\n _excluded236 = [\"children\"],\n _excluded237 = [\"children\"],\n _excluded238 = [\"children\"],\n _excluded239 = [\"children\"],\n _excluded240 = [\"children\"],\n _excluded241 = [\"children\"],\n _excluded242 = [\"children\"],\n _excluded243 = [\"children\"],\n _excluded244 = [\"children\"],\n _excluded245 = [\"children\"],\n _excluded246 = [\"children\"],\n _excluded247 = [\"children\"],\n _excluded248 = [\"children\"],\n _excluded249 = [\"children\"],\n _excluded250 = [\"children\"];\nvar didWarnAboutDeprecation = {};\nvar CheckboxIndeterminateFilled32 = /*#__PURE__*/React.forwardRef(function CheckboxIndeterminateFilled32(_ref, ref) {\n var children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M22,18H10V14H22Z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckboxIndeterminateFilled24 = /*#__PURE__*/React.forwardRef(function CheckboxIndeterminateFilled24(_ref2, ref) {\n var children = _ref2.children,\n rest = _objectWithoutProperties(_ref2, _excluded2);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M22,18H10V14H22Z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckboxIndeterminateFilled20 = /*#__PURE__*/React.forwardRef(function CheckboxIndeterminateFilled20(_ref3, ref) {\n var children = _ref3.children,\n rest = _objectWithoutProperties(_ref3, _excluded3);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M22,18H10V14H22Z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckboxIndeterminateFilled16 = /*#__PURE__*/React.forwardRef(function CheckboxIndeterminateFilled16(_ref4, ref) {\n var children = _ref4.children,\n rest = _objectWithoutProperties(_ref4, _excluded4);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M22,18H10V14H22Z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckboxUndeterminate32 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminate32(_ref5, ref) {\n var children = _ref5.children,\n rest = _objectWithoutProperties(_ref5, _excluded5);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminate32']) {\n didWarnAboutDeprecation['CheckboxUndeterminate32'] = true;\n console.warn(\"The CheckboxUndeterminate32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14H22V18H10z\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CheckboxUndeterminate24 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminate24(_ref6, ref) {\n var children = _ref6.children,\n rest = _objectWithoutProperties(_ref6, _excluded6);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminate24']) {\n didWarnAboutDeprecation['CheckboxUndeterminate24'] = true;\n console.warn(\"The CheckboxUndeterminate24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14H22V18H10z\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CheckboxUndeterminate20 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminate20(_ref7, ref) {\n var children = _ref7.children,\n rest = _objectWithoutProperties(_ref7, _excluded7);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminate20']) {\n didWarnAboutDeprecation['CheckboxUndeterminate20'] = true;\n console.warn(\"The CheckboxUndeterminate20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14H22V18H10z\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CheckboxUndeterminate16 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminate16(_ref8, ref) {\n var children = _ref8.children,\n rest = _objectWithoutProperties(_ref8, _excluded8);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminate16']) {\n didWarnAboutDeprecation['CheckboxUndeterminate16'] = true;\n console.warn(\"The CheckboxUndeterminate16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 14H22V18H10z\"\n })), _path16 || (_path16 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CheckboxUndeterminateFilled32 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminateFilled32(_ref9, ref) {\n var children = _ref9.children,\n rest = _objectWithoutProperties(_ref9, _excluded9);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminateFilled32']) {\n didWarnAboutDeprecation['CheckboxUndeterminateFilled32'] = true;\n console.warn(\"The CheckboxUndeterminateFilled32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path17 || (_path17 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), children);\n});\nvar CheckboxUndeterminateFilled24 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminateFilled24(_ref10, ref) {\n var children = _ref10.children,\n rest = _objectWithoutProperties(_ref10, _excluded10);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminateFilled24']) {\n didWarnAboutDeprecation['CheckboxUndeterminateFilled24'] = true;\n console.warn(\"The CheckboxUndeterminateFilled24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path18 || (_path18 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), children);\n});\nvar CheckboxUndeterminateFilled20 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminateFilled20(_ref11, ref) {\n var children = _ref11.children,\n rest = _objectWithoutProperties(_ref11, _excluded11);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminateFilled20']) {\n didWarnAboutDeprecation['CheckboxUndeterminateFilled20'] = true;\n console.warn(\"The CheckboxUndeterminateFilled20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path19 || (_path19 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), children);\n});\nvar CheckboxUndeterminateFilled16 = /*#__PURE__*/React.forwardRef(function CheckboxUndeterminateFilled16(_ref12, ref) {\n var children = _ref12.children,\n rest = _objectWithoutProperties(_ref12, _excluded12);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CheckboxUndeterminateFilled16']) {\n didWarnAboutDeprecation['CheckboxUndeterminateFilled16'] = true;\n console.warn(\"The CheckboxUndeterminateFilled16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path20 || (_path20 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM22,18H10V14H22Z\"\n })), children);\n});\nvar Checkmark32 = /*#__PURE__*/React.forwardRef(function Checkmark32(_ref13, ref) {\n var children = _ref13.children,\n rest = _objectWithoutProperties(_ref13, _excluded13);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path21 || (_path21 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z\"\n })), children);\n});\nvar Checkmark24 = /*#__PURE__*/React.forwardRef(function Checkmark24(_ref14, ref) {\n var children = _ref14.children,\n rest = _objectWithoutProperties(_ref14, _excluded14);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path22 || (_path22 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z\"\n })), children);\n});\nvar Checkmark20 = /*#__PURE__*/React.forwardRef(function Checkmark20(_ref15, ref) {\n var children = _ref15.children,\n rest = _objectWithoutProperties(_ref15, _excluded15);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path23 || (_path23 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z\"\n })), _path24 || (_path24 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z\"\n })), children);\n});\nvar Checkmark16 = /*#__PURE__*/React.forwardRef(function Checkmark16(_ref16, ref) {\n var children = _ref16.children,\n rest = _objectWithoutProperties(_ref16, _excluded16);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path25 || (_path25 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z\"\n })), children);\n});\nvar CheckmarkFilled32 = /*#__PURE__*/React.forwardRef(function CheckmarkFilled32(_ref17, ref) {\n var children = _ref17.children,\n rest = _objectWithoutProperties(_ref17, _excluded17);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path26 || (_path26 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z\"\n })), _path27 || (_path27 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilled24 = /*#__PURE__*/React.forwardRef(function CheckmarkFilled24(_ref18, ref) {\n var children = _ref18.children,\n rest = _objectWithoutProperties(_ref18, _excluded18);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path28 || (_path28 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z\"\n })), _path29 || (_path29 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar CheckmarkFilled20 = /*#__PURE__*/React.forwardRef(function CheckmarkFilled20(_ref19, ref) {\n var children = _ref19.children,\n rest = _objectWithoutProperties(_ref19, _excluded19);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path30 || (_path30 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z\"\n })), _path31 || (_path31 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar CheckmarkFilled16 = /*#__PURE__*/React.forwardRef(function CheckmarkFilled16(_ref20, ref) {\n var children = _ref20.children,\n rest = _objectWithoutProperties(_ref20, _excluded20);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path32 || (_path32 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z\"\n })), _path33 || (_path33 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar CheckmarkFilledError32 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledError32(_ref21, ref) {\n var children = _ref21.children,\n rest = _objectWithoutProperties(_ref21, _excluded21);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path34 || (_path34 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,24a6,6,0,1,0-6,6A6.0066,6.0066,0,0,0,30,24Zm-2,0a3.9521,3.9521,0,0,1-.5669,2.019L21.981,20.5669A3.9529,3.9529,0,0,1,24,20,4.0045,4.0045,0,0,1,28,24Zm-8,0a3.9521,3.9521,0,0,1,.5669-2.019l5.4521,5.4521A3.9529,3.9529,0,0,1,24,28,4.0045,4.0045,0,0,1,20,24Z\"\n })), _path35 || (_path35 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,2,23.82V24a8,8,0,0,1,8-8h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path36 || (_path36 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledError24 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledError24(_ref22, ref) {\n var children = _ref22.children,\n rest = _objectWithoutProperties(_ref22, _excluded22);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path37 || (_path37 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,24a6,6,0,1,0-6,6A6.0066,6.0066,0,0,0,30,24Zm-2,0a3.9521,3.9521,0,0,1-.5669,2.019L21.981,20.5669A3.9529,3.9529,0,0,1,24,20,4.0045,4.0045,0,0,1,28,24Zm-8,0a3.9521,3.9521,0,0,1,.5669-2.019l5.4521,5.4521A3.9529,3.9529,0,0,1,24,28,4.0045,4.0045,0,0,1,20,24Z\"\n })), _path38 || (_path38 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,2,23.82V24a8,8,0,0,1,8-8h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path39 || (_path39 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledError20 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledError20(_ref23, ref) {\n var children = _ref23.children,\n rest = _objectWithoutProperties(_ref23, _excluded23);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path40 || (_path40 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,24a6,6,0,1,0-6,6A6.0066,6.0066,0,0,0,30,24Zm-2,0a3.9521,3.9521,0,0,1-.5669,2.019L21.981,20.5669A3.9529,3.9529,0,0,1,24,20,4.0045,4.0045,0,0,1,28,24Zm-8,0a3.9521,3.9521,0,0,1,.5669-2.019l5.4521,5.4521A3.9529,3.9529,0,0,1,24,28,4.0045,4.0045,0,0,1,20,24Z\"\n })), _path41 || (_path41 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,2,23.82V24a8,8,0,0,1,8-8h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path42 || (_path42 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledError16 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledError16(_ref24, ref) {\n var children = _ref24.children,\n rest = _objectWithoutProperties(_ref24, _excluded24);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path43 || (_path43 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,24a6,6,0,1,0-6,6A6.0066,6.0066,0,0,0,30,24Zm-2,0a3.9521,3.9521,0,0,1-.5669,2.019L21.981,20.5669A3.9529,3.9529,0,0,1,24,20,4.0045,4.0045,0,0,1,28,24Zm-8,0a3.9521,3.9521,0,0,1,.5669-2.019l5.4521,5.4521A3.9529,3.9529,0,0,1,24,28,4.0045,4.0045,0,0,1,20,24Z\"\n })), _path44 || (_path44 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,2,23.82V24a8,8,0,0,1,8-8h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path45 || (_path45 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledWarning32 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledWarning32(_ref25, ref) {\n var children = _ref25.children,\n rest = _objectWithoutProperties(_ref25, _excluded25);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path46 || (_path46 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,3.3928,23.5059l3.9246-7.8492A2.9846,2.9846,0,0,1,24,16h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path47 || (_path47 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.38,28H20.6178L24,21.2358ZM24,18a1,1,0,0,0-.8947.5527l-5,10A1.0005,1.0005,0,0,0,19,30H29a1,1,0,0,0,.9214-1.3892L24.8946,18.5527A1,1,0,0,0,24,18Z\"\n })), _path48 || (_path48 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledWarning24 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledWarning24(_ref26, ref) {\n var children = _ref26.children,\n rest = _objectWithoutProperties(_ref26, _excluded26);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path49 || (_path49 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,3.3928,23.5059l3.9246-7.8492A2.9846,2.9846,0,0,1,24,16h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path50 || (_path50 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.38,28H20.6178L24,21.2358ZM24,18a1,1,0,0,0-.8947.5527l-5,10A1.0005,1.0005,0,0,0,19,30H29a1,1,0,0,0,.9214-1.3892L24.8946,18.5527A1,1,0,0,0,24,18Z\"\n })), _path51 || (_path51 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledWarning20 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledWarning20(_ref27, ref) {\n var children = _ref27.children,\n rest = _objectWithoutProperties(_ref27, _excluded27);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path52 || (_path52 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,3.3928,23.5059l3.9246-7.8492A2.9846,2.9846,0,0,1,24,16h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path53 || (_path53 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.38,28H20.6178L24,21.2358ZM24,18a1,1,0,0,0-.8947.5527l-5,10A1.0005,1.0005,0,0,0,19,30H29a1,1,0,0,0,.9214-1.3892L24.8946,18.5527A1,1,0,0,0,24,18Z\"\n })), _path54 || (_path54 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkFilledWarning16 = /*#__PURE__*/React.forwardRef(function CheckmarkFilledWarning16(_ref28, ref) {\n var children = _ref28.children,\n rest = _objectWithoutProperties(_ref28, _excluded28);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path55 || (_path55 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,2a12,12,0,1,0,3.3928,23.5059l3.9246-7.8492A2.9846,2.9846,0,0,1,24,16h1.82A11.9348,11.9348,0,0,0,14,2ZM12,18.5908l-4-4L9.5908,13,12,15.4092,17.4092,10,19,11.5908Z\"\n })), _path56 || (_path56 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.38,28H20.6178L24,21.2358ZM24,18a1,1,0,0,0-.8947.5527l-5,10A1.0005,1.0005,0,0,0,19,30H29a1,1,0,0,0,.9214-1.3892L24.8946,18.5527A1,1,0,0,0,24,18Z\"\n })), _path57 || (_path57 = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n d: \"M12 18.591L8 14.591 9.591 13 12 15.409 17.409 10 19 11.591 12 18.591z\",\n \"data-icon-path\": \"inner-path\"\n })), children);\n});\nvar CheckmarkOutline32 = /*#__PURE__*/React.forwardRef(function CheckmarkOutline32(_ref29, ref) {\n var children = _ref29.children,\n rest = _objectWithoutProperties(_ref29, _excluded29);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path58 || (_path58 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z\"\n })), _path59 || (_path59 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar CheckmarkOutline24 = /*#__PURE__*/React.forwardRef(function CheckmarkOutline24(_ref30, ref) {\n var children = _ref30.children,\n rest = _objectWithoutProperties(_ref30, _excluded30);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path60 || (_path60 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z\"\n })), _path61 || (_path61 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar CheckmarkOutline20 = /*#__PURE__*/React.forwardRef(function CheckmarkOutline20(_ref31, ref) {\n var children = _ref31.children,\n rest = _objectWithoutProperties(_ref31, _excluded31);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path62 || (_path62 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z\"\n })), _path63 || (_path63 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar CheckmarkOutline16 = /*#__PURE__*/React.forwardRef(function CheckmarkOutline16(_ref32, ref) {\n var children = _ref32.children,\n rest = _objectWithoutProperties(_ref32, _excluded32);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path64 || (_path64 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z\"\n })), _path65 || (_path65 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z\"\n })), children);\n});\nvar CheckmarkOutlineError32 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineError32(_ref33, ref) {\n var children = _ref33.children,\n rest = _objectWithoutProperties(_ref33, _excluded33);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path66 || (_path66 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path67 || (_path67 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM30 24a6 6 0 10-6 6A6.0066 6.0066 0 0030 24zm-2 0a3.9521 3.9521 0 01-.5669 2.019L21.981 20.5669A3.9529 3.9529 0 0124 20 4.0045 4.0045 0 0128 24zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 28 4.0045 4.0045 0 0120 24z\"\n })), children);\n});\nvar CheckmarkOutlineError24 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineError24(_ref34, ref) {\n var children = _ref34.children,\n rest = _objectWithoutProperties(_ref34, _excluded34);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path68 || (_path68 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path69 || (_path69 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM30 24a6 6 0 10-6 6A6.0066 6.0066 0 0030 24zm-2 0a3.9521 3.9521 0 01-.5669 2.019L21.981 20.5669A3.9529 3.9529 0 0124 20 4.0045 4.0045 0 0128 24zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 28 4.0045 4.0045 0 0120 24z\"\n })), children);\n});\nvar CheckmarkOutlineError20 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineError20(_ref35, ref) {\n var children = _ref35.children,\n rest = _objectWithoutProperties(_ref35, _excluded35);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path70 || (_path70 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path71 || (_path71 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM30 24a6 6 0 10-6 6A6.0066 6.0066 0 0030 24zm-2 0a3.9521 3.9521 0 01-.5669 2.019L21.981 20.5669A3.9529 3.9529 0 0124 20 4.0045 4.0045 0 0128 24zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 28 4.0045 4.0045 0 0120 24z\"\n })), children);\n});\nvar CheckmarkOutlineError16 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineError16(_ref36, ref) {\n var children = _ref36.children,\n rest = _objectWithoutProperties(_ref36, _excluded36);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path72 || (_path72 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path73 || (_path73 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM30 24a6 6 0 10-6 6A6.0066 6.0066 0 0030 24zm-2 0a3.9521 3.9521 0 01-.5669 2.019L21.981 20.5669A3.9529 3.9529 0 0124 20 4.0045 4.0045 0 0128 24zm-8 0a3.9521 3.9521 0 01.5669-2.019l5.4521 5.4521A3.9529 3.9529 0 0124 28 4.0045 4.0045 0 0120 24z\"\n })), children);\n});\nvar CheckmarkOutlineWarning32 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineWarning32(_ref37, ref) {\n var children = _ref37.children,\n rest = _objectWithoutProperties(_ref37, _excluded37);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path74 || (_path74 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path75 || (_path75 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM27.38 28H20.6178L24 21.2358zM24 18a1 1 0 00-.8947.5527l-5 10A1.0005 1.0005 0 0019 30H29a1 1 0 00.9214-1.3892L24.8946 18.5527A1 1 0 0024 18z\"\n })), children);\n});\nvar CheckmarkOutlineWarning24 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineWarning24(_ref38, ref) {\n var children = _ref38.children,\n rest = _objectWithoutProperties(_ref38, _excluded38);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path76 || (_path76 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path77 || (_path77 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM27.38 28H20.6178L24 21.2358zM24 18a1 1 0 00-.8947.5527l-5 10A1.0005 1.0005 0 0019 30H29a1 1 0 00.9214-1.3892L24.8946 18.5527A1 1 0 0024 18z\"\n })), children);\n});\nvar CheckmarkOutlineWarning20 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineWarning20(_ref39, ref) {\n var children = _ref39.children,\n rest = _objectWithoutProperties(_ref39, _excluded39);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path78 || (_path78 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path79 || (_path79 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM27.38 28H20.6178L24 21.2358zM24 18a1 1 0 00-.8947.5527l-5 10A1.0005 1.0005 0 0019 30H29a1 1 0 00.9214-1.3892L24.8946 18.5527A1 1 0 0024 18z\"\n })), children);\n});\nvar CheckmarkOutlineWarning16 = /*#__PURE__*/React.forwardRef(function CheckmarkOutlineWarning16(_ref40, ref) {\n var children = _ref40.children,\n rest = _objectWithoutProperties(_ref40, _excluded40);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path80 || (_path80 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14,24A10,10,0,1,1,24,14h2A12,12,0,1,0,14,26Z\"\n })), _path81 || (_path81 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 15.59L9.41 13 8 14.41 12 18.41 19 11.41 17.59 10 12 15.59zM27.38 28H20.6178L24 21.2358zM24 18a1 1 0 00-.8947.5527l-5 10A1.0005 1.0005 0 0019 30H29a1 1 0 00.9214-1.3892L24.8946 18.5527A1 1 0 0024 18z\"\n })), children);\n});\nvar Chemistry32 = /*#__PURE__*/React.forwardRef(function Chemistry32(_ref41, ref) {\n var children = _ref41.children,\n rest = _objectWithoutProperties(_ref41, _excluded41);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path82 || (_path82 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.2314,23.6182,20,13.6748V4h2V2H10V4h2v9.6748L4.7686,23.6182A4.0183,4.0183,0,0,0,8.0186,30H23.9814a4.0183,4.0183,0,0,0,3.25-6.3818ZM14,14.3252V4h4V14.3252L20.6728,18H11.3272ZM23.9814,28H8.0186a2.0192,2.0192,0,0,1-1.6329-3.2061L9.8726,20H22.1274l3.4869,4.7939A2.0192,2.0192,0,0,1,23.9814,28Z\"\n })), children);\n});\nvar Chemistry24 = /*#__PURE__*/React.forwardRef(function Chemistry24(_ref42, ref) {\n var children = _ref42.children,\n rest = _objectWithoutProperties(_ref42, _excluded42);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path83 || (_path83 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.2314,23.6182,20,13.6748V4h2V2H10V4h2v9.6748L4.7686,23.6182A4.0183,4.0183,0,0,0,8.0186,30H23.9814a4.0183,4.0183,0,0,0,3.25-6.3818ZM14,14.3252V4h4V14.3252L20.6728,18H11.3272ZM23.9814,28H8.0186a2.0192,2.0192,0,0,1-1.6329-3.2061L9.8726,20H22.1274l3.4869,4.7939A2.0192,2.0192,0,0,1,23.9814,28Z\"\n })), children);\n});\nvar Chemistry20 = /*#__PURE__*/React.forwardRef(function Chemistry20(_ref43, ref) {\n var children = _ref43.children,\n rest = _objectWithoutProperties(_ref43, _excluded43);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path84 || (_path84 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.2314,23.6182,20,13.6748V4h2V2H10V4h2v9.6748L4.7686,23.6182A4.0183,4.0183,0,0,0,8.0186,30H23.9814a4.0183,4.0183,0,0,0,3.25-6.3818ZM14,14.3252V4h4V14.3252L20.6728,18H11.3272ZM23.9814,28H8.0186a2.0192,2.0192,0,0,1-1.6329-3.2061L9.8726,20H22.1274l3.4869,4.7939A2.0192,2.0192,0,0,1,23.9814,28Z\"\n })), children);\n});\nvar Chemistry16 = /*#__PURE__*/React.forwardRef(function Chemistry16(_ref44, ref) {\n var children = _ref44.children,\n rest = _objectWithoutProperties(_ref44, _excluded44);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path85 || (_path85 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.2314,23.6182,20,13.6748V4h2V2H10V4h2v9.6748L4.7686,23.6182A4.0183,4.0183,0,0,0,8.0186,30H23.9814a4.0183,4.0183,0,0,0,3.25-6.3818ZM14,14.3252V4h4V14.3252L20.6728,18H11.3272ZM23.9814,28H8.0186a2.0192,2.0192,0,0,1-1.6329-3.2061L9.8726,20H22.1274l3.4869,4.7939A2.0192,2.0192,0,0,1,23.9814,28Z\"\n })), children);\n});\nvar ChemistryReference32 = /*#__PURE__*/React.forwardRef(function ChemistryReference32(_ref45, ref) {\n var children = _ref45.children,\n rest = _objectWithoutProperties(_ref45, _excluded45);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path86 || (_path86 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path87 || (_path87 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,13.67V4h2V2H10V4h2v9.67L9.58,17h2.4767L14,14.33V4h4V14.33l7.61,10.46a2.0133,2.0133,0,0,1-.44,2.82,2.0406,2.0406,0,0,1-1.19.39H15v2h8.98a4.0154,4.0154,0,0,0,3.25-6.38Z\"\n })), children);\n});\nvar ChemistryReference24 = /*#__PURE__*/React.forwardRef(function ChemistryReference24(_ref46, ref) {\n var children = _ref46.children,\n rest = _objectWithoutProperties(_ref46, _excluded46);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path88 || (_path88 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path89 || (_path89 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,13.67V4h2V2H10V4h2v9.67L9.58,17h2.4767L14,14.33V4h4V14.33l7.61,10.46a2.0133,2.0133,0,0,1-.44,2.82,2.0406,2.0406,0,0,1-1.19.39H15v2h8.98a4.0154,4.0154,0,0,0,3.25-6.38Z\"\n })), children);\n});\nvar ChemistryReference20 = /*#__PURE__*/React.forwardRef(function ChemistryReference20(_ref47, ref) {\n var children = _ref47.children,\n rest = _objectWithoutProperties(_ref47, _excluded47);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path90 || (_path90 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path91 || (_path91 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,13.67V4h2V2H10V4h2v9.67L9.58,17h2.4767L14,14.33V4h4V14.33l7.61,10.46a2.0133,2.0133,0,0,1-.44,2.82,2.0406,2.0406,0,0,1-1.19.39H15v2h8.98a4.0154,4.0154,0,0,0,3.25-6.38Z\"\n })), children);\n});\nvar ChemistryReference16 = /*#__PURE__*/React.forwardRef(function ChemistryReference16(_ref48, ref) {\n var children = _ref48.children,\n rest = _objectWithoutProperties(_ref48, _excluded48);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path92 || (_path92 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 20L4 22 8.586 22 2 28.586 3.414 30 10 23.414 10 28 12 28 12 20 4 20z\"\n })), _path93 || (_path93 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,13.67V4h2V2H10V4h2v9.67L9.58,17h2.4767L14,14.33V4h4V14.33l7.61,10.46a2.0133,2.0133,0,0,1-.44,2.82,2.0406,2.0406,0,0,1-1.19.39H15v2h8.98a4.0154,4.0154,0,0,0,3.25-6.38Z\"\n })), children);\n});\nvar ChevronDown32 = /*#__PURE__*/React.forwardRef(function ChevronDown32(_ref49, ref) {\n var children = _ref49.children,\n rest = _objectWithoutProperties(_ref49, _excluded49);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path94 || (_path94 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z\"\n })), children);\n});\nvar ChevronDown24 = /*#__PURE__*/React.forwardRef(function ChevronDown24(_ref50, ref) {\n var children = _ref50.children,\n rest = _objectWithoutProperties(_ref50, _excluded50);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path95 || (_path95 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z\"\n })), children);\n});\nvar ChevronDown20 = /*#__PURE__*/React.forwardRef(function ChevronDown20(_ref51, ref) {\n var children = _ref51.children,\n rest = _objectWithoutProperties(_ref51, _excluded51);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path96 || (_path96 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z\"\n })), children);\n});\nvar ChevronDown16 = /*#__PURE__*/React.forwardRef(function ChevronDown16(_ref52, ref) {\n var children = _ref52.children,\n rest = _objectWithoutProperties(_ref52, _excluded52);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path97 || (_path97 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z\"\n })), children);\n});\nvar ChevronDownGlyph = /*#__PURE__*/React.forwardRef(function ChevronDownGlyph(_ref53, ref) {\n var children = _ref53.children,\n rest = _objectWithoutProperties(_ref53, _excluded53);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 10,\n height: 6,\n viewBox: \"0 0 10 6\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path98 || (_path98 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z\"\n })), children);\n});\nvar ChevronLeft32 = /*#__PURE__*/React.forwardRef(function ChevronLeft32(_ref54, ref) {\n var children = _ref54.children,\n rest = _objectWithoutProperties(_ref54, _excluded54);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path99 || (_path99 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z\"\n })), children);\n});\nvar ChevronLeft24 = /*#__PURE__*/React.forwardRef(function ChevronLeft24(_ref55, ref) {\n var children = _ref55.children,\n rest = _objectWithoutProperties(_ref55, _excluded55);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path100 || (_path100 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z\"\n })), children);\n});\nvar ChevronLeft20 = /*#__PURE__*/React.forwardRef(function ChevronLeft20(_ref56, ref) {\n var children = _ref56.children,\n rest = _objectWithoutProperties(_ref56, _excluded56);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path101 || (_path101 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z\"\n })), children);\n});\nvar ChevronLeft16 = /*#__PURE__*/React.forwardRef(function ChevronLeft16(_ref57, ref) {\n var children = _ref57.children,\n rest = _objectWithoutProperties(_ref57, _excluded57);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path102 || (_path102 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z\"\n })), children);\n});\nvar ChevronLeftGlyph = /*#__PURE__*/React.forwardRef(function ChevronLeftGlyph(_ref58, ref) {\n var children = _ref58.children,\n rest = _objectWithoutProperties(_ref58, _excluded58);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 6,\n height: 10,\n viewBox: \"0 0 6 10\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path103 || (_path103 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 5L5 0 5.7 0.7 1.4 5 5.7 9.3 5 10z\"\n })), children);\n});\nvar ChevronMini32 = /*#__PURE__*/React.forwardRef(function ChevronMini32(_ref59, ref) {\n var children = _ref59.children,\n rest = _objectWithoutProperties(_ref59, _excluded59);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path104 || (_path104 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 19L31 31 19 31 31 19z\"\n })), children);\n});\nvar ChevronMini24 = /*#__PURE__*/React.forwardRef(function ChevronMini24(_ref60, ref) {\n var children = _ref60.children,\n rest = _objectWithoutProperties(_ref60, _excluded60);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path105 || (_path105 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 19L31 31 19 31 31 19z\"\n })), children);\n});\nvar ChevronMini20 = /*#__PURE__*/React.forwardRef(function ChevronMini20(_ref61, ref) {\n var children = _ref61.children,\n rest = _objectWithoutProperties(_ref61, _excluded61);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path106 || (_path106 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M31 19L31 31 19 31 31 19z\"\n })), children);\n});\nvar ChevronMini16 = /*#__PURE__*/React.forwardRef(function ChevronMini16(_ref62, ref) {\n var children = _ref62.children,\n rest = _objectWithoutProperties(_ref62, _excluded62);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path107 || (_path107 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 9L15 15 9 15z\"\n })), children);\n});\nvar ChevronRight32 = /*#__PURE__*/React.forwardRef(function ChevronRight32(_ref63, ref) {\n var children = _ref63.children,\n rest = _objectWithoutProperties(_ref63, _excluded63);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path108 || (_path108 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z\"\n })), children);\n});\nvar ChevronRight24 = /*#__PURE__*/React.forwardRef(function ChevronRight24(_ref64, ref) {\n var children = _ref64.children,\n rest = _objectWithoutProperties(_ref64, _excluded64);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path109 || (_path109 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z\"\n })), children);\n});\nvar ChevronRight20 = /*#__PURE__*/React.forwardRef(function ChevronRight20(_ref65, ref) {\n var children = _ref65.children,\n rest = _objectWithoutProperties(_ref65, _excluded65);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path110 || (_path110 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z\"\n })), children);\n});\nvar ChevronRight16 = /*#__PURE__*/React.forwardRef(function ChevronRight16(_ref66, ref) {\n var children = _ref66.children,\n rest = _objectWithoutProperties(_ref66, _excluded66);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path111 || (_path111 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z\"\n })), children);\n});\nvar ChevronRightGlyph = /*#__PURE__*/React.forwardRef(function ChevronRightGlyph(_ref67, ref) {\n var children = _ref67.children,\n rest = _objectWithoutProperties(_ref67, _excluded67);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 6,\n height: 10,\n viewBox: \"0 0 6 10\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path112 || (_path112 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z\"\n })), children);\n});\nvar ChevronSort32 = /*#__PURE__*/React.forwardRef(function ChevronSort32(_ref68, ref) {\n var children = _ref68.children,\n rest = _objectWithoutProperties(_ref68, _excluded68);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path113 || (_path113 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 28L9 21 10.41 19.59 16 25.17 21.59 19.59 23 21 16 28zM16 4L23 11 21.59 12.41 16 6.83 10.41 12.41 9 11 16 4z\"\n })), children);\n});\nvar ChevronSort24 = /*#__PURE__*/React.forwardRef(function ChevronSort24(_ref69, ref) {\n var children = _ref69.children,\n rest = _objectWithoutProperties(_ref69, _excluded69);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path114 || (_path114 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 28L9 21 10.41 19.59 16 25.17 21.59 19.59 23 21 16 28zM16 4L23 11 21.59 12.41 16 6.83 10.41 12.41 9 11 16 4z\"\n })), children);\n});\nvar ChevronSort20 = /*#__PURE__*/React.forwardRef(function ChevronSort20(_ref70, ref) {\n var children = _ref70.children,\n rest = _objectWithoutProperties(_ref70, _excluded70);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path115 || (_path115 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 28L9 21 10.41 19.59 16 25.17 21.59 19.59 23 21 16 28zM16 4L23 11 21.59 12.41 16 6.83 10.41 12.41 9 11 16 4z\"\n })), children);\n});\nvar ChevronSort16 = /*#__PURE__*/React.forwardRef(function ChevronSort16(_ref71, ref) {\n var children = _ref71.children,\n rest = _objectWithoutProperties(_ref71, _excluded71);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path116 || (_path116 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 14L4.5 10.5 5.2 9.8 8 12.6 10.8 9.8 11.5 10.5zM8 2L11.5 5.5 10.8 6.2 8 3.4 5.2 6.2 4.5 5.5z\"\n })), children);\n});\nvar ChevronSortDown32 = /*#__PURE__*/React.forwardRef(function ChevronSortDown32(_ref72, ref) {\n var children = _ref72.children,\n rest = _objectWithoutProperties(_ref72, _excluded72);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path117 || (_path117 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 28L9 21 10.4 19.6 16 25.2 21.6 19.6 23 21z\"\n })), children);\n});\nvar ChevronSortDown24 = /*#__PURE__*/React.forwardRef(function ChevronSortDown24(_ref73, ref) {\n var children = _ref73.children,\n rest = _objectWithoutProperties(_ref73, _excluded73);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path118 || (_path118 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 28L9 21 10.4 19.6 16 25.2 21.6 19.6 23 21z\"\n })), children);\n});\nvar ChevronSortDown20 = /*#__PURE__*/React.forwardRef(function ChevronSortDown20(_ref74, ref) {\n var children = _ref74.children,\n rest = _objectWithoutProperties(_ref74, _excluded74);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path119 || (_path119 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 28L9 21 10.4 19.6 16 25.2 21.6 19.6 23 21z\"\n })), children);\n});\nvar ChevronSortDown16 = /*#__PURE__*/React.forwardRef(function ChevronSortDown16(_ref75, ref) {\n var children = _ref75.children,\n rest = _objectWithoutProperties(_ref75, _excluded75);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path120 || (_path120 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 14L4.5 10.5 5.2 9.8 8 12.6 10.8 9.8 11.5 10.5z\"\n })), children);\n});\nvar ChevronSortUp32 = /*#__PURE__*/React.forwardRef(function ChevronSortUp32(_ref76, ref) {\n var children = _ref76.children,\n rest = _objectWithoutProperties(_ref76, _excluded76);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path121 || (_path121 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 4L23 11 21.6 12.4 16 6.8 10.4 12.4 9 11z\"\n })), children);\n});\nvar ChevronSortUp24 = /*#__PURE__*/React.forwardRef(function ChevronSortUp24(_ref77, ref) {\n var children = _ref77.children,\n rest = _objectWithoutProperties(_ref77, _excluded77);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path122 || (_path122 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 4L23 11 21.6 12.4 16 6.8 10.4 12.4 9 11z\"\n })), children);\n});\nvar ChevronSortUp20 = /*#__PURE__*/React.forwardRef(function ChevronSortUp20(_ref78, ref) {\n var children = _ref78.children,\n rest = _objectWithoutProperties(_ref78, _excluded78);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path123 || (_path123 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 4L23 11 21.6 12.4 16 6.8 10.4 12.4 9 11z\"\n })), children);\n});\nvar ChevronSortUp16 = /*#__PURE__*/React.forwardRef(function ChevronSortUp16(_ref79, ref) {\n var children = _ref79.children,\n rest = _objectWithoutProperties(_ref79, _excluded79);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path124 || (_path124 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 2L11.5 5.5 10.8 6.2 8 3.4 5.2 6.2 4.5 5.5z\"\n })), children);\n});\nvar ChevronUp32 = /*#__PURE__*/React.forwardRef(function ChevronUp32(_ref80, ref) {\n var children = _ref80.children,\n rest = _objectWithoutProperties(_ref80, _excluded80);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path125 || (_path125 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10L26 20 24.6 21.4 16 12.8 7.4 21.4 6 20z\"\n })), children);\n});\nvar ChevronUp24 = /*#__PURE__*/React.forwardRef(function ChevronUp24(_ref81, ref) {\n var children = _ref81.children,\n rest = _objectWithoutProperties(_ref81, _excluded81);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path126 || (_path126 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10L26 20 24.6 21.4 16 12.8 7.4 21.4 6 20z\"\n })), children);\n});\nvar ChevronUp20 = /*#__PURE__*/React.forwardRef(function ChevronUp20(_ref82, ref) {\n var children = _ref82.children,\n rest = _objectWithoutProperties(_ref82, _excluded82);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path127 || (_path127 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 10L26 20 24.6 21.4 16 12.8 7.4 21.4 6 20z\"\n })), children);\n});\nvar ChevronUp16 = /*#__PURE__*/React.forwardRef(function ChevronUp16(_ref83, ref) {\n var children = _ref83.children,\n rest = _objectWithoutProperties(_ref83, _excluded83);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path128 || (_path128 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z\"\n })), children);\n});\nvar ChevronUpGlyph = /*#__PURE__*/React.forwardRef(function ChevronUpGlyph(_ref84, ref) {\n var children = _ref84.children,\n rest = _objectWithoutProperties(_ref84, _excluded84);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 10,\n height: 6,\n viewBox: \"0 0 10 6\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path129 || (_path129 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 0L10 5 9.3 5.7 5 1.4 0.7 5.7 0 5z\"\n })), children);\n});\nvar Chip32 = /*#__PURE__*/React.forwardRef(function Chip32(_ref85, ref) {\n var children = _ref85.children,\n rest = _objectWithoutProperties(_ref85, _excluded85);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path130 || (_path130 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11,11V21H21V11Zm8,8H13V13h6Z\"\n })), _path131 || (_path131 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,13V11H26V8a2,2,0,0,0-2-2H21V2H19V6H13V2H11V6H8A2,2,0,0,0,6,8v3H2v2H6v6H2v2H6v3a2,2,0,0,0,2,2h3v4h2V26h6v4h2V26h3a2,2,0,0,0,2-2V21h4V19H26V13ZM24,24H8V8H24Z\"\n })), children);\n});\nvar Chip24 = /*#__PURE__*/React.forwardRef(function Chip24(_ref86, ref) {\n var children = _ref86.children,\n rest = _objectWithoutProperties(_ref86, _excluded86);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path132 || (_path132 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11,11V21H21V11Zm8,8H13V13h6Z\"\n })), _path133 || (_path133 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,13V11H26V8a2,2,0,0,0-2-2H21V2H19V6H13V2H11V6H8A2,2,0,0,0,6,8v3H2v2H6v6H2v2H6v3a2,2,0,0,0,2,2h3v4h2V26h6v4h2V26h3a2,2,0,0,0,2-2V21h4V19H26V13ZM24,24H8V8H24Z\"\n })), children);\n});\nvar Chip20 = /*#__PURE__*/React.forwardRef(function Chip20(_ref87, ref) {\n var children = _ref87.children,\n rest = _objectWithoutProperties(_ref87, _excluded87);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path134 || (_path134 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11,11V21H21V11Zm8,8H13V13h6Z\"\n })), _path135 || (_path135 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,13V11H26V8a2,2,0,0,0-2-2H21V2H19V6H13V2H11V6H8A2,2,0,0,0,6,8v3H2v2H6v6H2v2H6v3a2,2,0,0,0,2,2h3v4h2V26h6v4h2V26h3a2,2,0,0,0,2-2V21h4V19H26V13ZM24,24H8V8H24Z\"\n })), children);\n});\nvar Chip16 = /*#__PURE__*/React.forwardRef(function Chip16(_ref88, ref) {\n var children = _ref88.children,\n rest = _objectWithoutProperties(_ref88, _excluded88);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path136 || (_path136 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11,11V21H21V11Zm8,8H13V13h6Z\"\n })), _path137 || (_path137 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,13V11H26V8a2,2,0,0,0-2-2H21V2H19V6H13V2H11V6H8A2,2,0,0,0,6,8v3H2v2H6v6H2v2H6v3a2,2,0,0,0,2,2h3v4h2V26h6v4h2V26h3a2,2,0,0,0,2-2V21h4V19H26V13ZM24,24H8V8H24Z\"\n })), children);\n});\nvar Choices32 = /*#__PURE__*/React.forwardRef(function Choices32(_ref89, ref) {\n var children = _ref89.children,\n rest = _objectWithoutProperties(_ref89, _excluded89);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path138 || (_path138 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 13L28 4 19 4 19 6 24.586 6 16 14.586 7.414 6 13 6 13 4 4 4 4 13 6 13 6 7.414 15 16.414 15 26 4 26 4 28 28 28 28 26 17 26 17 16.414 26 7.414 26 13 28 13z\"\n })), children);\n});\nvar Choices24 = /*#__PURE__*/React.forwardRef(function Choices24(_ref90, ref) {\n var children = _ref90.children,\n rest = _objectWithoutProperties(_ref90, _excluded90);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path139 || (_path139 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 13L28 4 19 4 19 6 24.586 6 16 14.586 7.414 6 13 6 13 4 4 4 4 13 6 13 6 7.414 15 16.414 15 26 4 26 4 28 28 28 28 26 17 26 17 16.414 26 7.414 26 13 28 13z\"\n })), children);\n});\nvar Choices20 = /*#__PURE__*/React.forwardRef(function Choices20(_ref91, ref) {\n var children = _ref91.children,\n rest = _objectWithoutProperties(_ref91, _excluded91);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path140 || (_path140 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 13L28 4 19 4 19 6 24.586 6 16 14.586 7.414 6 13 6 13 4 4 4 4 13 6 13 6 7.414 15 16.414 15 26 4 26 4 28 28 28 28 26 17 26 17 16.414 26 7.414 26 13 28 13z\"\n })), children);\n});\nvar Choices16 = /*#__PURE__*/React.forwardRef(function Choices16(_ref92, ref) {\n var children = _ref92.children,\n rest = _objectWithoutProperties(_ref92, _excluded92);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path141 || (_path141 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 13L28 4 19 4 19 6 24.586 6 16 14.586 7.414 6 13 6 13 4 4 4 4 13 6 13 6 7.414 15 16.414 15 26 4 26 4 28 28 28 28 26 17 26 17 16.414 26 7.414 26 13 28 13z\"\n })), children);\n});\nvar ChooseItem32 = /*#__PURE__*/React.forwardRef(function ChooseItem32(_ref93, ref) {\n var children = _ref93.children,\n rest = _objectWithoutProperties(_ref93, _excluded93);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path142 || (_path142 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6H30V26H28zM17 6L15.57 7.393 23.15 15 2 15 2 17 23.15 17 15.57 24.573 17 26 27 16 17 6z\"\n })), children);\n});\nvar ChooseItem24 = /*#__PURE__*/React.forwardRef(function ChooseItem24(_ref94, ref) {\n var children = _ref94.children,\n rest = _objectWithoutProperties(_ref94, _excluded94);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path143 || (_path143 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6H30V26H28zM17 6L15.57 7.393 23.15 15 2 15 2 17 23.15 17 15.57 24.573 17 26 27 16 17 6z\"\n })), children);\n});\nvar ChooseItem20 = /*#__PURE__*/React.forwardRef(function ChooseItem20(_ref95, ref) {\n var children = _ref95.children,\n rest = _objectWithoutProperties(_ref95, _excluded95);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path144 || (_path144 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6H30V26H28zM17 6L15.57 7.393 23.15 15 2 15 2 17 23.15 17 15.57 24.573 17 26 27 16 17 6z\"\n })), children);\n});\nvar ChooseItem16 = /*#__PURE__*/React.forwardRef(function ChooseItem16(_ref96, ref) {\n var children = _ref96.children,\n rest = _objectWithoutProperties(_ref96, _excluded96);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path145 || (_path145 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 6H30V26H28zM17 6L15.57 7.393 23.15 15 2 15 2 17 23.15 17 15.57 24.573 17 26 27 16 17 6z\"\n })), children);\n});\nvar ChoroplethMap32 = /*#__PURE__*/React.forwardRef(function ChoroplethMap32(_ref97, ref) {\n var children = _ref97.children,\n rest = _objectWithoutProperties(_ref97, _excluded97);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path146 || (_path146 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.2427,4.03l-8-2a1.0065,1.0065,0,0,0-.6143.0415l-9.7,3.88L3.2427,4.03A1,1,0,0,0,2,5V27a1,1,0,0,0,.7573.97l8,2A1.0244,1.0244,0,0,0,11,30a.9953.9953,0,0,0,.3716-.0718l9.7-3.88,7.686,1.9219A1,1,0,0,0,30,27V5A1,1,0,0,0,29.2427,4.03ZM28,11H22V4.2806l6,1.5ZM10,19H4V13h6Zm2-8V7.6771l8-3.2V11Zm8,2v6H12V13Zm-8,8h8v3.3227l-8,3.2Zm10-8h6v6H22ZM10,7.7806V11H4V6.2806ZM4,21h6v6.7192l-6-1.5Zm18,3.2187V21h6v4.7192Z\"\n })), children);\n});\nvar ChoroplethMap24 = /*#__PURE__*/React.forwardRef(function ChoroplethMap24(_ref98, ref) {\n var children = _ref98.children,\n rest = _objectWithoutProperties(_ref98, _excluded98);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path147 || (_path147 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.2427,4.03l-8-2a1.0065,1.0065,0,0,0-.6143.0415l-9.7,3.88L3.2427,4.03A1,1,0,0,0,2,5V27a1,1,0,0,0,.7573.97l8,2A1.0244,1.0244,0,0,0,11,30a.9953.9953,0,0,0,.3716-.0718l9.7-3.88,7.686,1.9219A1,1,0,0,0,30,27V5A1,1,0,0,0,29.2427,4.03ZM28,11H22V4.2806l6,1.5ZM10,19H4V13h6Zm2-8V7.6771l8-3.2V11Zm8,2v6H12V13Zm-8,8h8v3.3227l-8,3.2Zm10-8h6v6H22ZM10,7.7806V11H4V6.2806ZM4,21h6v6.7192l-6-1.5Zm18,3.2187V21h6v4.7192Z\"\n })), children);\n});\nvar ChoroplethMap20 = /*#__PURE__*/React.forwardRef(function ChoroplethMap20(_ref99, ref) {\n var children = _ref99.children,\n rest = _objectWithoutProperties(_ref99, _excluded99);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path148 || (_path148 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.2427,4.03l-8-2a1.0065,1.0065,0,0,0-.6143.0415l-9.7,3.88L3.2427,4.03A1,1,0,0,0,2,5V27a1,1,0,0,0,.7573.97l8,2A1.0244,1.0244,0,0,0,11,30a.9953.9953,0,0,0,.3716-.0718l9.7-3.88,7.686,1.9219A1,1,0,0,0,30,27V5A1,1,0,0,0,29.2427,4.03ZM28,11H22V4.2806l6,1.5ZM10,19H4V13h6Zm2-8V7.6771l8-3.2V11Zm8,2v6H12V13Zm-8,8h8v3.3227l-8,3.2Zm10-8h6v6H22ZM10,7.7806V11H4V6.2806ZM4,21h6v6.7192l-6-1.5Zm18,3.2187V21h6v4.7192Z\"\n })), children);\n});\nvar ChoroplethMap16 = /*#__PURE__*/React.forwardRef(function ChoroplethMap16(_ref100, ref) {\n var children = _ref100.children,\n rest = _objectWithoutProperties(_ref100, _excluded100);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path149 || (_path149 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.2427,4.03l-8-2a1.0065,1.0065,0,0,0-.6143.0415l-9.7,3.88L3.2427,4.03A1,1,0,0,0,2,5V27a1,1,0,0,0,.7573.97l8,2A1.0244,1.0244,0,0,0,11,30a.9953.9953,0,0,0,.3716-.0718l9.7-3.88,7.686,1.9219A1,1,0,0,0,30,27V5A1,1,0,0,0,29.2427,4.03ZM28,11H22V4.2806l6,1.5ZM10,19H4V13h6Zm2-8V7.6771l8-3.2V11Zm8,2v6H12V13Zm-8,8h8v3.3227l-8,3.2Zm10-8h6v6H22ZM10,7.7806V11H4V6.2806ZM4,21h6v6.7192l-6-1.5Zm18,3.2187V21h6v4.7192Z\"\n })), children);\n});\nvar CicsCmas32 = /*#__PURE__*/React.forwardRef(function CicsCmas32(_ref101, ref) {\n var children = _ref101.children,\n rest = _objectWithoutProperties(_ref101, _excluded101);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path150 || (_path150 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.3335 30H26V28h4V26H28a2.002 2.002 0 01-2-2V21.6665A1.6684 1.6684 0 0127.6665 20H32v2H28v2h2a2.002 2.002 0 012 2v2.3335A1.6684 1.6684 0 0130.3335 30zM22.3335 20h-2.667A1.6665 1.6665 0 0018 21.6665V30h2V26h2v4h2V21.6665A1.6665 1.6665 0 0022.3335 20zM20 24V22h2v2zM12.5 24L11 20 9 20 9 30 11 30 11 23 12.5 27 14 23 14 30 16 30 16 20 14 20 12.5 24zM1 22v6.5A1.4727 1.4727 0 002.5 30H7V28H3V22H7V20H3A2.0059 2.0059 0 001 22zM13 8L11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11 13 11 13 8z\"\n })), _path151 || (_path151 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,6H26V18h2V6a2.0059,2.0059,0,0,0-2-2H6A2.0059,2.0059,0,0,0,4,6V18H6Z\"\n })), children);\n});\nvar CicsCmas24 = /*#__PURE__*/React.forwardRef(function CicsCmas24(_ref102, ref) {\n var children = _ref102.children,\n rest = _objectWithoutProperties(_ref102, _excluded102);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path152 || (_path152 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.3335 30H26V28h4V26H28a2.002 2.002 0 01-2-2V21.6665A1.6684 1.6684 0 0127.6665 20H32v2H28v2h2a2.002 2.002 0 012 2v2.3335A1.6684 1.6684 0 0130.3335 30zM22.3335 20h-2.667A1.6665 1.6665 0 0018 21.6665V30h2V26h2v4h2V21.6665A1.6665 1.6665 0 0022.3335 20zM20 24V22h2v2zM12.5 24L11 20 9 20 9 30 11 30 11 23 12.5 27 14 23 14 30 16 30 16 20 14 20 12.5 24zM1 22v6.5A1.4727 1.4727 0 002.5 30H7V28H3V22H7V20H3A2.0059 2.0059 0 001 22zM13 8L11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11 13 11 13 8z\"\n })), _path153 || (_path153 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,6H26V18h2V6a2.0059,2.0059,0,0,0-2-2H6A2.0059,2.0059,0,0,0,4,6V18H6Z\"\n })), children);\n});\nvar CicsCmas20 = /*#__PURE__*/React.forwardRef(function CicsCmas20(_ref103, ref) {\n var children = _ref103.children,\n rest = _objectWithoutProperties(_ref103, _excluded103);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path154 || (_path154 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.3335 30H26V28h4V26H28a2.002 2.002 0 01-2-2V21.6665A1.6684 1.6684 0 0127.6665 20H32v2H28v2h2a2.002 2.002 0 012 2v2.3335A1.6684 1.6684 0 0130.3335 30zM22.3335 20h-2.667A1.6665 1.6665 0 0018 21.6665V30h2V26h2v4h2V21.6665A1.6665 1.6665 0 0022.3335 20zM20 24V22h2v2zM12.5 24L11 20 9 20 9 30 11 30 11 23 12.5 27 14 23 14 30 16 30 16 20 14 20 12.5 24zM1 22v6.5A1.4727 1.4727 0 002.5 30H7V28H3V22H7V20H3A2.0059 2.0059 0 001 22zM13 8L11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11 13 11 13 8z\"\n })), _path155 || (_path155 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,6H26V18h2V6a2.0059,2.0059,0,0,0-2-2H6A2.0059,2.0059,0,0,0,4,6V18H6Z\"\n })), children);\n});\nvar CicsCmas16 = /*#__PURE__*/React.forwardRef(function CicsCmas16(_ref104, ref) {\n var children = _ref104.children,\n rest = _objectWithoutProperties(_ref104, _excluded104);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path156 || (_path156 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.3335 30H26V28h4V26H28a2.002 2.002 0 01-2-2V21.6665A1.6684 1.6684 0 0127.6665 20H32v2H28v2h2a2.002 2.002 0 012 2v2.3335A1.6684 1.6684 0 0130.3335 30zM22.3335 20h-2.667A1.6665 1.6665 0 0018 21.6665V30h2V26h2v4h2V21.6665A1.6665 1.6665 0 0022.3335 20zM20 24V22h2v2zM12.5 24L11 20 9 20 9 30 11 30 11 23 12.5 27 14 23 14 30 16 30 16 20 14 20 12.5 24zM1 22v6.5A1.4727 1.4727 0 002.5 30H7V28H3V22H7V20H3A2.0059 2.0059 0 001 22zM13 8L11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11 13 11 13 8z\"\n })), _path157 || (_path157 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6,6H26V18h2V6a2.0059,2.0059,0,0,0-2-2H6A2.0059,2.0059,0,0,0,4,6V18H6Z\"\n })), children);\n});\nvar CicsExplorer32 = /*#__PURE__*/React.forwardRef(function CicsExplorer32(_ref105, ref) {\n var children = _ref105.children,\n rest = _objectWithoutProperties(_ref105, _excluded105);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path158 || (_path158 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 16L19.4 14.6 21.7 10.3 17.4 12.6 16 8 14.6 12.6 10.3 10.3 12.6 14.6 8 16 12.6 17.4 10.3 21.7 14.6 19.4 16 24 17.4 19.4 21.7 21.7 19.4 17.4 24 16z\"\n })), _path159 || (_path159 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CicsExplorer24 = /*#__PURE__*/React.forwardRef(function CicsExplorer24(_ref106, ref) {\n var children = _ref106.children,\n rest = _objectWithoutProperties(_ref106, _excluded106);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path160 || (_path160 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 16L19.4 14.6 21.7 10.3 17.4 12.6 16 8 14.6 12.6 10.3 10.3 12.6 14.6 8 16 12.6 17.4 10.3 21.7 14.6 19.4 16 24 17.4 19.4 21.7 21.7 19.4 17.4 24 16z\"\n })), _path161 || (_path161 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CicsExplorer20 = /*#__PURE__*/React.forwardRef(function CicsExplorer20(_ref107, ref) {\n var children = _ref107.children,\n rest = _objectWithoutProperties(_ref107, _excluded107);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path162 || (_path162 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 16L19.4 14.6 21.7 10.3 17.4 12.6 16 8 14.6 12.6 10.3 10.3 12.6 14.6 8 16 12.6 17.4 10.3 21.7 14.6 19.4 16 24 17.4 19.4 21.7 21.7 19.4 17.4 24 16z\"\n })), _path163 || (_path163 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CicsExplorer16 = /*#__PURE__*/React.forwardRef(function CicsExplorer16(_ref108, ref) {\n var children = _ref108.children,\n rest = _objectWithoutProperties(_ref108, _excluded108);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path164 || (_path164 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 16L19.4 14.6 21.7 10.3 17.4 12.6 16 8 14.6 12.6 10.3 10.3 12.6 14.6 8 16 12.6 17.4 10.3 21.7 14.6 19.4 16 24 17.4 19.4 21.7 21.7 19.4 17.4 24 16z\"\n })), _path165 || (_path165 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CicsSystemGroup32 = /*#__PURE__*/React.forwardRef(function CicsSystemGroup32(_ref109, ref) {\n var children = _ref109.children,\n rest = _objectWithoutProperties(_ref109, _excluded109);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path166 || (_path166 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 2H23V4h5V28H23v2h5a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0028 2zM14 17H8a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V18A.9448.9448 0 0014 17zm-1 6H9V19h4z\"\n })), _path167 || (_path167 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 24V18a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6A1.0021 1.0021 0 0025 24zm-2-1H19V19h4zM14 7H8A.9448.9448 0 007 8v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V8A.9448.9448 0 0014 7zm-1 6H9V9h4zM18 15h6a.9448.9448 0 001-1V8a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6A1.0021 1.0021 0 0018 15zm1-6h4v4H19z\"\n })), _path168 || (_path168 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,4H9V2H4A2.0059,2.0059,0,0,0,2,4V28a2.0059,2.0059,0,0,0,2,2H9V28H4Z\"\n })), children);\n});\nvar CicsSystemGroup24 = /*#__PURE__*/React.forwardRef(function CicsSystemGroup24(_ref110, ref) {\n var children = _ref110.children,\n rest = _objectWithoutProperties(_ref110, _excluded110);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path169 || (_path169 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 2H23V4h5V28H23v2h5a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0028 2zM14 17H8a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V18A.9448.9448 0 0014 17zm-1 6H9V19h4z\"\n })), _path170 || (_path170 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 24V18a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6A1.0021 1.0021 0 0025 24zm-2-1H19V19h4zM14 7H8A.9448.9448 0 007 8v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V8A.9448.9448 0 0014 7zm-1 6H9V9h4zM18 15h6a.9448.9448 0 001-1V8a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6A1.0021 1.0021 0 0018 15zm1-6h4v4H19z\"\n })), _path171 || (_path171 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,4H9V2H4A2.0059,2.0059,0,0,0,2,4V28a2.0059,2.0059,0,0,0,2,2H9V28H4Z\"\n })), children);\n});\nvar CicsSystemGroup20 = /*#__PURE__*/React.forwardRef(function CicsSystemGroup20(_ref111, ref) {\n var children = _ref111.children,\n rest = _objectWithoutProperties(_ref111, _excluded111);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path172 || (_path172 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 2H23V4h5V28H23v2h5a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0028 2zM14 17H8a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V18A.9448.9448 0 0014 17zm-1 6H9V19h4z\"\n })), _path173 || (_path173 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 24V18a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6A1.0021 1.0021 0 0025 24zm-2-1H19V19h4zM14 7H8A.9448.9448 0 007 8v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V8A.9448.9448 0 0014 7zm-1 6H9V9h4zM18 15h6a.9448.9448 0 001-1V8a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6A1.0021 1.0021 0 0018 15zm1-6h4v4H19z\"\n })), _path174 || (_path174 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,4H9V2H4A2.0059,2.0059,0,0,0,2,4V28a2.0059,2.0059,0,0,0,2,2H9V28H4Z\"\n })), children);\n});\nvar CicsSystemGroup16 = /*#__PURE__*/React.forwardRef(function CicsSystemGroup16(_ref112, ref) {\n var children = _ref112.children,\n rest = _objectWithoutProperties(_ref112, _excluded112);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path175 || (_path175 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 2H23V4h5V28H23v2h5a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0028 2zM14 17H8a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V18A.9448.9448 0 0014 17zm-1 6H9V19h4z\"\n })), _path176 || (_path176 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25 24V18a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6a.9448.9448 0 001 1h6A1.0021 1.0021 0 0025 24zm-2-1H19V19h4zM14 7H8A.9448.9448 0 007 8v6a.9448.9448 0 001 1h6a.9448.9448 0 001-1V8A.9448.9448 0 0014 7zm-1 6H9V9h4zM18 15h6a.9448.9448 0 001-1V8a.9448.9448 0 00-1-1H18a.9448.9448 0 00-1 1v6A1.0021 1.0021 0 0018 15zm1-6h4v4H19z\"\n })), _path177 || (_path177 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4,4H9V2H4A2.0059,2.0059,0,0,0,2,4V28a2.0059,2.0059,0,0,0,2,2H9V28H4Z\"\n })), children);\n});\nvar CicsWuiRegion32 = /*#__PURE__*/React.forwardRef(function CicsWuiRegion32(_ref113, ref) {\n var children = _ref113.children,\n rest = _objectWithoutProperties(_ref113, _excluded113);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path178 || (_path178 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22L24 22 24 28 22 28 22 30 28 30 28 28 26 28 26 22 28 22 28 20 22 20 22 22zM18 28H16V20H14v8.6A1.4529 1.4529 0 0015.5 30h3A1.4529 1.4529 0 0020 28.6V20H18zM10.2 20L10 28.5 9 22 7 22 6 28.5 5.8 20 4 20 4.72 30 7 30 8 23.5 9 30 11.28 30 12 20 10.2 20zM16 11L13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11z\"\n })), _path179 || (_path179 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V18H6V6H26V18h2V6A2.0059,2.0059,0,0,0,26,4Z\"\n })), children);\n});\nvar CicsWuiRegion24 = /*#__PURE__*/React.forwardRef(function CicsWuiRegion24(_ref114, ref) {\n var children = _ref114.children,\n rest = _objectWithoutProperties(_ref114, _excluded114);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path180 || (_path180 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22L24 22 24 28 22 28 22 30 28 30 28 28 26 28 26 22 28 22 28 20 22 20 22 22zM18 28H16V20H14v8.6A1.4529 1.4529 0 0015.5 30h3A1.4529 1.4529 0 0020 28.6V20H18zM10.2 20L10 28.5 9 22 7 22 6 28.5 5.8 20 4 20 4.72 30 7 30 8 23.5 9 30 11.28 30 12 20 10.2 20zM16 11L13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11z\"\n })), _path181 || (_path181 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V18H6V6H26V18h2V6A2.0059,2.0059,0,0,0,26,4Z\"\n })), children);\n});\nvar CicsWuiRegion20 = /*#__PURE__*/React.forwardRef(function CicsWuiRegion20(_ref115, ref) {\n var children = _ref115.children,\n rest = _objectWithoutProperties(_ref115, _excluded115);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path182 || (_path182 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22L24 22 24 28 22 28 22 30 28 30 28 28 26 28 26 22 28 22 28 20 22 20 22 22zM18 28H16V20H14v8.6A1.4529 1.4529 0 0015.5 30h3A1.4529 1.4529 0 0020 28.6V20H18zM10.2 20L10 28.5 9 22 7 22 6 28.5 5.8 20 4 20 4.72 30 7 30 8 23.5 9 30 11.28 30 12 20 10.2 20zM16 11L13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11z\"\n })), _path183 || (_path183 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V18H6V6H26V18h2V6A2.0059,2.0059,0,0,0,26,4Z\"\n })), children);\n});\nvar CicsWuiRegion16 = /*#__PURE__*/React.forwardRef(function CicsWuiRegion16(_ref116, ref) {\n var children = _ref116.children,\n rest = _objectWithoutProperties(_ref116, _excluded116);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path184 || (_path184 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22L24 22 24 28 22 28 22 30 28 30 28 28 26 28 26 22 28 22 28 20 22 20 22 22zM18 28H16V20H14v8.6A1.4529 1.4529 0 0015.5 30h3A1.4529 1.4529 0 0020 28.6V20H18zM10.2 20L10 28.5 9 22 7 22 6 28.5 5.8 20 4 20 4.72 30 7 30 8 23.5 9 30 11.28 30 12 20 10.2 20zM16 11L13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13 16 11z\"\n })), _path185 || (_path185 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V18H6V6H26V18h2V6A2.0059,2.0059,0,0,0,26,4Z\"\n })), children);\n});\nvar CicsRegion32 = /*#__PURE__*/React.forwardRef(function CicsRegion32(_ref117, ref) {\n var children = _ref117.children,\n rest = _objectWithoutProperties(_ref117, _excluded117);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path186 || (_path186 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 18L21 18.7 21 16 19 16 19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18zM16 13L16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13z\"\n })), _path187 || (_path187 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V6A2.0059,2.0059,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CicsRegion24 = /*#__PURE__*/React.forwardRef(function CicsRegion24(_ref118, ref) {\n var children = _ref118.children,\n rest = _objectWithoutProperties(_ref118, _excluded118);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path188 || (_path188 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 18L21 18.7 21 16 19 16 19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18zM16 13L16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13z\"\n })), _path189 || (_path189 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V6A2.0059,2.0059,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CicsRegion20 = /*#__PURE__*/React.forwardRef(function CicsRegion20(_ref119, ref) {\n var children = _ref119.children,\n rest = _objectWithoutProperties(_ref119, _excluded119);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path190 || (_path190 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 18L21 18.7 21 16 19 16 19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18zM16 13L16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13z\"\n })), _path191 || (_path191 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V6A2.0059,2.0059,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CicsRegion16 = /*#__PURE__*/React.forwardRef(function CicsRegion16(_ref120, ref) {\n var children = _ref120.children,\n rest = _objectWithoutProperties(_ref120, _excluded120);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path192 || (_path192 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 18L21 18.7 21 16 19 16 19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18zM16 13L16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16 13 13 16 13z\"\n })), _path193 || (_path193 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V6A2.0059,2.0059,0,0,0,26,4ZM6,26V6H26V26Z\"\n })), children);\n});\nvar CicsRegionRouting32 = /*#__PURE__*/React.forwardRef(function CicsRegionRouting32(_ref121, ref) {\n var children = _ref121.children,\n rest = _objectWithoutProperties(_ref121, _excluded121);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path194 || (_path194 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 2L22 4 26.6 4 20 10.6 21.4 12 28 5.4 28 10 30 10 30 2 22 2zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path195 || (_path195 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionRouting24 = /*#__PURE__*/React.forwardRef(function CicsRegionRouting24(_ref122, ref) {\n var children = _ref122.children,\n rest = _objectWithoutProperties(_ref122, _excluded122);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path196 || (_path196 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 2L22 4 26.6 4 20 10.6 21.4 12 28 5.4 28 10 30 10 30 2 22 2zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path197 || (_path197 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionRouting20 = /*#__PURE__*/React.forwardRef(function CicsRegionRouting20(_ref123, ref) {\n var children = _ref123.children,\n rest = _objectWithoutProperties(_ref123, _excluded123);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path198 || (_path198 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 2L22 4 26.6 4 20 10.6 21.4 12 28 5.4 28 10 30 10 30 2 22 2zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path199 || (_path199 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionRouting16 = /*#__PURE__*/React.forwardRef(function CicsRegionRouting16(_ref124, ref) {\n var children = _ref124.children,\n rest = _objectWithoutProperties(_ref124, _excluded124);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path200 || (_path200 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 2L22 4 26.6 4 20 10.6 21.4 12 28 5.4 28 10 30 10 30 2 22 2zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path201 || (_path201 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionTarget32 = /*#__PURE__*/React.forwardRef(function CicsRegionTarget32(_ref125, ref) {\n var children = _ref125.children,\n rest = _objectWithoutProperties(_ref125, _excluded125);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path202 || (_path202 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 7H28V10H26zM29 4H32V6H29zM26 0H28V3H26zM22 4H25V6H22zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path203 || (_path203 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionTarget24 = /*#__PURE__*/React.forwardRef(function CicsRegionTarget24(_ref126, ref) {\n var children = _ref126.children,\n rest = _objectWithoutProperties(_ref126, _excluded126);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path204 || (_path204 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 7H28V10H26zM29 4H32V6H29zM26 0H28V3H26zM22 4H25V6H22zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path205 || (_path205 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionTarget20 = /*#__PURE__*/React.forwardRef(function CicsRegionTarget20(_ref127, ref) {\n var children = _ref127.children,\n rest = _objectWithoutProperties(_ref127, _excluded127);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path206 || (_path206 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 7H28V10H26zM29 4H32V6H29zM26 0H28V3H26zM22 4H25V6H22zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path207 || (_path207 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar CicsRegionTarget16 = /*#__PURE__*/React.forwardRef(function CicsRegionTarget16(_ref128, ref) {\n var children = _ref128.children,\n rest = _objectWithoutProperties(_ref128, _excluded128);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path208 || (_path208 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26 7H28V10H26zM29 4H32V6H29zM26 0H28V3H26zM22 4H25V6H22zM19 16L19 18.7 16.5 18 16 19.9 18.4 20.6 17 23 18.7 24 20 21.8 21.3 24 23 23 21.6 20.6 24 19.9 23.5 18 21 18.7 21 16 19 16zM13 16L13 13 16 13 16 11 13 11 13 8 11 8 11 11 8 11 8 13 11 13 11 16 13 16z\"\n })), _path209 || (_path209 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26,26H6V6H19V4H6A2.0059,2.0059,0,0,0,4,6V26a2.0059,2.0059,0,0,0,2,2H26a2.0059,2.0059,0,0,0,2-2V13H26Z\"\n })), children);\n});\nvar Cicsplex32 = /*#__PURE__*/React.forwardRef(function Cicsplex32(_ref129, ref) {\n var children = _ref129.children,\n rest = _objectWithoutProperties(_ref129, _excluded129);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path210 || (_path210 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 18.6V17H6v1.6A7.3833 7.3833 0 0013.4 26H15V24H13.4A5.3775 5.3775 0 018 18.6zM28 18H20a2.0059 2.0059 0 00-2 2v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V20A2.0059 2.0059 0 0028 18zM20 28V20h8v8zM24 13.4V15h2V13.4A7.3833 7.3833 0 0018.6 6H17V8h1.6A5.3775 5.3775 0 0124 13.4zM12 2H4A2.0059 2.0059 0 002 4v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0012 2zM4 12V4h8v8z\"\n })), children);\n});\nvar Cicsplex24 = /*#__PURE__*/React.forwardRef(function Cicsplex24(_ref130, ref) {\n var children = _ref130.children,\n rest = _objectWithoutProperties(_ref130, _excluded130);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path211 || (_path211 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 18.6V17H6v1.6A7.3833 7.3833 0 0013.4 26H15V24H13.4A5.3775 5.3775 0 018 18.6zM28 18H20a2.0059 2.0059 0 00-2 2v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V20A2.0059 2.0059 0 0028 18zM20 28V20h8v8zM24 13.4V15h2V13.4A7.3833 7.3833 0 0018.6 6H17V8h1.6A5.3775 5.3775 0 0124 13.4zM12 2H4A2.0059 2.0059 0 002 4v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0012 2zM4 12V4h8v8z\"\n })), children);\n});\nvar Cicsplex20 = /*#__PURE__*/React.forwardRef(function Cicsplex20(_ref131, ref) {\n var children = _ref131.children,\n rest = _objectWithoutProperties(_ref131, _excluded131);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path212 || (_path212 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 18.6V17H6v1.6A7.3833 7.3833 0 0013.4 26H15V24H13.4A5.3775 5.3775 0 018 18.6zM28 18H20a2.0059 2.0059 0 00-2 2v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V20A2.0059 2.0059 0 0028 18zM20 28V20h8v8zM24 13.4V15h2V13.4A7.3833 7.3833 0 0018.6 6H17V8h1.6A5.3775 5.3775 0 0124 13.4zM12 2H4A2.0059 2.0059 0 002 4v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0012 2zM4 12V4h8v8z\"\n })), children);\n});\nvar Cicsplex16 = /*#__PURE__*/React.forwardRef(function Cicsplex16(_ref132, ref) {\n var children = _ref132.children,\n rest = _objectWithoutProperties(_ref132, _excluded132);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path213 || (_path213 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 18.6V17H6v1.6A7.3833 7.3833 0 0013.4 26H15V24H13.4A5.3775 5.3775 0 018 18.6zM28 18H20a2.0059 2.0059 0 00-2 2v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V20A2.0059 2.0059 0 0028 18zM20 28V20h8v8zM24 13.4V15h2V13.4A7.3833 7.3833 0 0018.6 6H17V8h1.6A5.3775 5.3775 0 0124 13.4zM12 2H4A2.0059 2.0059 0 002 4v8a2.0059 2.0059 0 002 2h8a2.0059 2.0059 0 002-2V4A2.0059 2.0059 0 0012 2zM4 12V4h8v8z\"\n })), children);\n});\nvar CircleFilled32 = /*#__PURE__*/React.forwardRef(function CircleFilled32(_ref133, ref) {\n var children = _ref133.children,\n rest = _objectWithoutProperties(_ref133, _excluded133);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"10\"\n })), _path214 || (_path214 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CircleFilled24 = /*#__PURE__*/React.forwardRef(function CircleFilled24(_ref134, ref) {\n var children = _ref134.children,\n rest = _objectWithoutProperties(_ref134, _excluded134);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"10\"\n })), _path215 || (_path215 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CircleFilled20 = /*#__PURE__*/React.forwardRef(function CircleFilled20(_ref135, ref) {\n var children = _ref135.children,\n rest = _objectWithoutProperties(_ref135, _excluded135);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"10\"\n })), _path216 || (_path216 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CircleFilled16 = /*#__PURE__*/React.forwardRef(function CircleFilled16(_ref136, ref) {\n var children = _ref136.children,\n rest = _objectWithoutProperties(_ref136, _excluded136);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle4 || (_circle4 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"10\"\n })), _path217 || (_path217 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14.0158,14.0158,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12.0137,12.0137,0,0,0,16,4Z\"\n })), children);\n});\nvar CircleSolid32 = /*#__PURE__*/React.forwardRef(function CircleSolid32(_ref137, ref) {\n var children = _ref137.children,\n rest = _objectWithoutProperties(_ref137, _excluded137);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle5 || (_circle5 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"14\"\n })), children);\n});\nvar CircleSolid24 = /*#__PURE__*/React.forwardRef(function CircleSolid24(_ref138, ref) {\n var children = _ref138.children,\n rest = _objectWithoutProperties(_ref138, _excluded138);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle6 || (_circle6 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"14\"\n })), children);\n});\nvar CircleSolid20 = /*#__PURE__*/React.forwardRef(function CircleSolid20(_ref139, ref) {\n var children = _ref139.children,\n rest = _objectWithoutProperties(_ref139, _excluded139);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle7 || (_circle7 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"14\"\n })), children);\n});\nvar CircleSolid16 = /*#__PURE__*/React.forwardRef(function CircleSolid16(_ref140, ref) {\n var children = _ref140.children,\n rest = _objectWithoutProperties(_ref140, _excluded140);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle8 || (_circle8 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"16\",\n cy: \"16\",\n r: \"14\"\n })), children);\n});\nvar CircleDash32 = /*#__PURE__*/React.forwardRef(function CircleDash32(_ref141, ref) {\n var children = _ref141.children,\n rest = _objectWithoutProperties(_ref141, _excluded141);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path218 || (_path218 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.7 4.7a14.7 14.7 0 00-3 3.1L6.3 9A13.26 13.26 0 018.9 6.3zM4.6 12.3l-1.9-.6A12.51 12.51 0 002 16H4A11.48 11.48 0 014.6 12.3zM2.7 20.4a14.4 14.4 0 002 3.9l1.6-1.2a12.89 12.89 0 01-1.7-3.3zM7.8 27.3a14.4 14.4 0 003.9 2l.6-1.9A12.89 12.89 0 019 25.7zM11.7 2.7l.6 1.9A11.48 11.48 0 0116 4V2A12.51 12.51 0 0011.7 2.7zM24.2 27.3a15.18 15.18 0 003.1-3.1L25.7 23A11.53 11.53 0 0123 25.7zM27.4 19.7l1.9.6A15.47 15.47 0 0030 16H28A11.48 11.48 0 0127.4 19.7zM29.2 11.6a14.4 14.4 0 00-2-3.9L25.6 8.9a12.89 12.89 0 011.7 3.3zM24.1 4.6a14.4 14.4 0 00-3.9-2l-.6 1.9a12.89 12.89 0 013.3 1.7zM20.3 29.3l-.6-1.9A11.48 11.48 0 0116 28v2A21.42 21.42 0 0020.3 29.3z\"\n })), children);\n});\nvar CircleDash24 = /*#__PURE__*/React.forwardRef(function CircleDash24(_ref142, ref) {\n var children = _ref142.children,\n rest = _objectWithoutProperties(_ref142, _excluded142);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path219 || (_path219 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.7 4.7a14.7 14.7 0 00-3 3.1L6.3 9A13.26 13.26 0 018.9 6.3zM4.6 12.3l-1.9-.6A12.51 12.51 0 002 16H4A11.48 11.48 0 014.6 12.3zM2.7 20.4a14.4 14.4 0 002 3.9l1.6-1.2a12.89 12.89 0 01-1.7-3.3zM7.8 27.3a14.4 14.4 0 003.9 2l.6-1.9A12.89 12.89 0 019 25.7zM11.7 2.7l.6 1.9A11.48 11.48 0 0116 4V2A12.51 12.51 0 0011.7 2.7zM24.2 27.3a15.18 15.18 0 003.1-3.1L25.7 23A11.53 11.53 0 0123 25.7zM27.4 19.7l1.9.6A15.47 15.47 0 0030 16H28A11.48 11.48 0 0127.4 19.7zM29.2 11.6a14.4 14.4 0 00-2-3.9L25.6 8.9a12.89 12.89 0 011.7 3.3zM24.1 4.6a14.4 14.4 0 00-3.9-2l-.6 1.9a12.89 12.89 0 013.3 1.7zM20.3 29.3l-.6-1.9A11.48 11.48 0 0116 28v2A21.42 21.42 0 0020.3 29.3z\"\n })), children);\n});\nvar CircleDash20 = /*#__PURE__*/React.forwardRef(function CircleDash20(_ref143, ref) {\n var children = _ref143.children,\n rest = _objectWithoutProperties(_ref143, _excluded143);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path220 || (_path220 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.7 4.7a14.7 14.7 0 00-3 3.1L6.3 9A13.26 13.26 0 018.9 6.3zM4.6 12.3l-1.9-.6A12.51 12.51 0 002 16H4A11.48 11.48 0 014.6 12.3zM2.7 20.4a14.4 14.4 0 002 3.9l1.6-1.2a12.89 12.89 0 01-1.7-3.3zM7.8 27.3a14.4 14.4 0 003.9 2l.6-1.9A12.89 12.89 0 019 25.7zM11.7 2.7l.6 1.9A11.48 11.48 0 0116 4V2A12.51 12.51 0 0011.7 2.7zM24.2 27.3a15.18 15.18 0 003.1-3.1L25.7 23A11.53 11.53 0 0123 25.7zM27.4 19.7l1.9.6A15.47 15.47 0 0030 16H28A11.48 11.48 0 0127.4 19.7zM29.2 11.6a14.4 14.4 0 00-2-3.9L25.6 8.9a12.89 12.89 0 011.7 3.3zM24.1 4.6a14.4 14.4 0 00-3.9-2l-.6 1.9a12.89 12.89 0 013.3 1.7zM20.3 29.3l-.6-1.9A11.48 11.48 0 0116 28v2A21.42 21.42 0 0020.3 29.3z\"\n })), children);\n});\nvar CircleDash16 = /*#__PURE__*/React.forwardRef(function CircleDash16(_ref144, ref) {\n var children = _ref144.children,\n rest = _objectWithoutProperties(_ref144, _excluded144);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path221 || (_path221 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.7 4.7a14.7 14.7 0 00-3 3.1L6.3 9A13.26 13.26 0 018.9 6.3zM4.6 12.3l-1.9-.6A12.51 12.51 0 002 16H4A11.48 11.48 0 014.6 12.3zM2.7 20.4a14.4 14.4 0 002 3.9l1.6-1.2a12.89 12.89 0 01-1.7-3.3zM7.8 27.3a14.4 14.4 0 003.9 2l.6-1.9A12.89 12.89 0 019 25.7zM11.7 2.7l.6 1.9A11.48 11.48 0 0116 4V2A12.51 12.51 0 0011.7 2.7zM24.2 27.3a15.18 15.18 0 003.1-3.1L25.7 23A11.53 11.53 0 0123 25.7zM27.4 19.7l1.9.6A15.47 15.47 0 0030 16H28A11.48 11.48 0 0127.4 19.7zM29.2 11.6a14.4 14.4 0 00-2-3.9L25.6 8.9a12.89 12.89 0 011.7 3.3zM24.1 4.6a14.4 14.4 0 00-3.9-2l-.6 1.9a12.89 12.89 0 013.3 1.7zM20.3 29.3l-.6-1.9A11.48 11.48 0 0116 28v2A21.42 21.42 0 0020.3 29.3z\"\n })), children);\n});\nvar CircleFillGlyph = /*#__PURE__*/React.forwardRef(function CircleFillGlyph(_ref145, ref) {\n var children = _ref145.children,\n rest = _objectWithoutProperties(_ref145, _excluded145);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle9 || (_circle9 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"8\",\n cy: \"8\",\n r: \"6\"\n })), children);\n});\nvar WatsonHealthCircleMeasurement32 = /*#__PURE__*/React.forwardRef(function WatsonHealthCircleMeasurement32(_ref146, ref) {\n var children = _ref146.children,\n rest = _objectWithoutProperties(_ref146, _excluded146);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path222 || (_path222 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z\"\n })), _path223 || (_path223 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,12.41V16h2V9H16v2h3.59L11,19.59V16H9v7h7V21H12.41Z\"\n })), children);\n});\nvar WatsonHealthCircleMeasurement24 = /*#__PURE__*/React.forwardRef(function WatsonHealthCircleMeasurement24(_ref147, ref) {\n var children = _ref147.children,\n rest = _objectWithoutProperties(_ref147, _excluded147);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path224 || (_path224 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z\"\n })), _path225 || (_path225 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,12.41V16h2V9H16v2h3.59L11,19.59V16H9v7h7V21H12.41Z\"\n })), children);\n});\nvar WatsonHealthCircleMeasurement20 = /*#__PURE__*/React.forwardRef(function WatsonHealthCircleMeasurement20(_ref148, ref) {\n var children = _ref148.children,\n rest = _objectWithoutProperties(_ref148, _excluded148);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path226 || (_path226 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z\"\n })), _path227 || (_path227 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,12.41V16h2V9H16v2h3.59L11,19.59V16H9v7h7V21H12.41Z\"\n })), children);\n});\nvar WatsonHealthCircleMeasurement16 = /*#__PURE__*/React.forwardRef(function WatsonHealthCircleMeasurement16(_ref149, ref) {\n var children = _ref149.children,\n rest = _objectWithoutProperties(_ref149, _excluded149);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path228 || (_path228 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z\"\n })), _path229 || (_path229 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21,12.41V16h2V9H16v2h3.59L11,19.59V16H9v7h7V21H12.41Z\"\n })), children);\n});\nvar CirclePacking32 = /*#__PURE__*/React.forwardRef(function CirclePacking32(_ref150, ref) {\n var children = _ref150.children,\n rest = _objectWithoutProperties(_ref150, _excluded150);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path230 || (_path230 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm7.5,7A3.5,3.5,0,1,1,20,12.5,3.5041,3.5041,0,0,1,23.5,9Zm.4348-1.978C23.791,7.0107,23.6467,7,23.5,7a5.4826,5.4826,0,0,0-4.1323,1.8784,8.0109,8.0109,0,0,0-5.5664-4.6675A11.8554,11.8554,0,0,1,23.9348,7.022ZM16,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,28ZM12,18a6,6,0,1,1,6-6A6.0067,6.0067,0,0,1,12,18ZM4,16a11.97,11.97,0,0,1,.2112-2.1987,7.9921,7.9921,0,0,0,7.3459,6.1762,5.9581,5.9581,0,0,0-.89,6.7564A12.0025,12.0025,0,0,1,4,16ZM21.3325,26.7339a5.9834,5.9834,0,0,0-4.1782-8.6206,8.02,8.02,0,0,0,1.9126-2.3672,5.4883,5.4883,0,0,0,8.9167-.0679c.003.1079.0164.2134.0164.3218A12.0025,12.0025,0,0,1,21.3325,26.7339Z\"\n })), children);\n});\nvar CirclePacking24 = /*#__PURE__*/React.forwardRef(function CirclePacking24(_ref151, ref) {\n var children = _ref151.children,\n rest = _objectWithoutProperties(_ref151, _excluded151);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path231 || (_path231 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm7.5,7A3.5,3.5,0,1,1,20,12.5,3.5041,3.5041,0,0,1,23.5,9Zm.4348-1.978C23.791,7.0107,23.6467,7,23.5,7a5.4826,5.4826,0,0,0-4.1323,1.8784,8.0109,8.0109,0,0,0-5.5664-4.6675A11.8554,11.8554,0,0,1,23.9348,7.022ZM16,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,28ZM12,18a6,6,0,1,1,6-6A6.0067,6.0067,0,0,1,12,18ZM4,16a11.97,11.97,0,0,1,.2112-2.1987,7.9921,7.9921,0,0,0,7.3459,6.1762,5.9581,5.9581,0,0,0-.89,6.7564A12.0025,12.0025,0,0,1,4,16ZM21.3325,26.7339a5.9834,5.9834,0,0,0-4.1782-8.6206,8.02,8.02,0,0,0,1.9126-2.3672,5.4883,5.4883,0,0,0,8.9167-.0679c.003.1079.0164.2134.0164.3218A12.0025,12.0025,0,0,1,21.3325,26.7339Z\"\n })), children);\n});\nvar CirclePacking20 = /*#__PURE__*/React.forwardRef(function CirclePacking20(_ref152, ref) {\n var children = _ref152.children,\n rest = _objectWithoutProperties(_ref152, _excluded152);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path232 || (_path232 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm7.5,7A3.5,3.5,0,1,1,20,12.5,3.5041,3.5041,0,0,1,23.5,9Zm.4348-1.978C23.791,7.0107,23.6467,7,23.5,7a5.4826,5.4826,0,0,0-4.1323,1.8784,8.0109,8.0109,0,0,0-5.5664-4.6675A11.8554,11.8554,0,0,1,23.9348,7.022ZM16,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,28ZM12,18a6,6,0,1,1,6-6A6.0067,6.0067,0,0,1,12,18ZM4,16a11.97,11.97,0,0,1,.2112-2.1987,7.9921,7.9921,0,0,0,7.3459,6.1762,5.9581,5.9581,0,0,0-.89,6.7564A12.0025,12.0025,0,0,1,4,16ZM21.3325,26.7339a5.9834,5.9834,0,0,0-4.1782-8.6206,8.02,8.02,0,0,0,1.9126-2.3672,5.4883,5.4883,0,0,0,8.9167-.0679c.003.1079.0164.2134.0164.3218A12.0025,12.0025,0,0,1,21.3325,26.7339Z\"\n })), children);\n});\nvar CirclePacking16 = /*#__PURE__*/React.forwardRef(function CirclePacking16(_ref153, ref) {\n var children = _ref153.children,\n rest = _objectWithoutProperties(_ref153, _excluded153);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path233 || (_path233 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm7.5,7A3.5,3.5,0,1,1,20,12.5,3.5041,3.5041,0,0,1,23.5,9Zm.4348-1.978C23.791,7.0107,23.6467,7,23.5,7a5.4826,5.4826,0,0,0-4.1323,1.8784,8.0109,8.0109,0,0,0-5.5664-4.6675A11.8554,11.8554,0,0,1,23.9348,7.022ZM16,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,16,28ZM12,18a6,6,0,1,1,6-6A6.0067,6.0067,0,0,1,12,18ZM4,16a11.97,11.97,0,0,1,.2112-2.1987,7.9921,7.9921,0,0,0,7.3459,6.1762,5.9581,5.9581,0,0,0-.89,6.7564A12.0025,12.0025,0,0,1,4,16ZM21.3325,26.7339a5.9834,5.9834,0,0,0-4.1782-8.6206,8.02,8.02,0,0,0,1.9126-2.3672,5.4883,5.4883,0,0,0,8.9167-.0679c.003.1079.0164.2134.0164.3218A12.0025,12.0025,0,0,1,21.3325,26.7339Z\"\n })), children);\n});\nvar CircleStrokeGlyph = /*#__PURE__*/React.forwardRef(function CircleStrokeGlyph(_ref154, ref) {\n var children = _ref154.children,\n rest = _objectWithoutProperties(_ref154, _excluded154);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path234 || (_path234 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,4A4,4,0,1,1,4,8,4.0045,4.0045,0,0,1,8,4M8,2a6,6,0,1,0,6,6A6,6,0,0,0,8,2Z\"\n })), children);\n});\nvar QCircuitComposer32 = /*#__PURE__*/React.forwardRef(function QCircuitComposer32(_ref155, ref) {\n var children = _ref155.children,\n rest = _objectWithoutProperties(_ref155, _excluded155);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path235 || (_path235 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path236 || (_path236 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V6a2,2,0,0,0-2-2H8A2,2,0,0,0,6,6v9H2v2H6v9a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V17h4ZM8,26V6H24V26Z\"\n })), children);\n});\nvar QCircuitComposer24 = /*#__PURE__*/React.forwardRef(function QCircuitComposer24(_ref156, ref) {\n var children = _ref156.children,\n rest = _objectWithoutProperties(_ref156, _excluded156);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path237 || (_path237 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path238 || (_path238 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V6a2,2,0,0,0-2-2H8A2,2,0,0,0,6,6v9H2v2H6v9a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V17h4ZM8,26V6H24V26Z\"\n })), children);\n});\nvar QCircuitComposer20 = /*#__PURE__*/React.forwardRef(function QCircuitComposer20(_ref157, ref) {\n var children = _ref157.children,\n rest = _objectWithoutProperties(_ref157, _excluded157);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path239 || (_path239 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path240 || (_path240 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V6a2,2,0,0,0-2-2H8A2,2,0,0,0,6,6v9H2v2H6v9a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V17h4ZM8,26V6H24V26Z\"\n })), children);\n});\nvar QCircuitComposer16 = /*#__PURE__*/React.forwardRef(function QCircuitComposer16(_ref158, ref) {\n var children = _ref158.children,\n rest = _objectWithoutProperties(_ref158, _excluded158);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path241 || (_path241 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 9L18 15 14 15 14 9 12 9 12 23 14 23 14 17 18 17 18 23 20 23 20 9 18 9z\"\n })), _path242 || (_path242 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,15H26V6a2,2,0,0,0-2-2H8A2,2,0,0,0,6,6v9H2v2H6v9a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V17h4ZM8,26V6H24V26Z\"\n })), children);\n});\nvar Classification32 = /*#__PURE__*/React.forwardRef(function Classification32(_ref159, ref) {\n var children = _ref159.children,\n rest = _objectWithoutProperties(_ref159, _excluded159);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle10 || (_circle10 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"15\",\n cy: \"19\",\n r: \"1\"\n })), _path243 || (_path243 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.7,9.3l-7-7A.9087.9087,0,0,0,20,2H10A2.0058,2.0058,0,0,0,8,4V14H6a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H8v4a2.0058,2.0058,0,0,0,2,2H26a2.0058,2.0058,0,0,0,2-2V10A.9092.9092,0,0,0,27.7,9.3ZM20,4.4,25.6,10H20ZM6,16h9.5972L19,19l-3.3926,3H6ZM26,28H10V24h5.6089a2.0076,2.0076,0,0,0,1.3135-.4927l3.3833-2.9917a2.0015,2.0015,0,0,0,.01-3.0229l-3.4033-3.0083A1.9961,1.9961,0,0,0,15.6089,14H10V4h8v6a2.0058,2.0058,0,0,0,2,2h6Z\"\n })), children);\n});\nvar Classification24 = /*#__PURE__*/React.forwardRef(function Classification24(_ref160, ref) {\n var children = _ref160.children,\n rest = _objectWithoutProperties(_ref160, _excluded160);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle11 || (_circle11 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"15\",\n cy: \"19\",\n r: \"1\"\n })), _path244 || (_path244 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.7,9.3l-7-7A.9087.9087,0,0,0,20,2H10A2.0058,2.0058,0,0,0,8,4V14H6a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H8v4a2.0058,2.0058,0,0,0,2,2H26a2.0058,2.0058,0,0,0,2-2V10A.9092.9092,0,0,0,27.7,9.3ZM20,4.4,25.6,10H20ZM6,16h9.5972L19,19l-3.3926,3H6ZM26,28H10V24h5.6089a2.0076,2.0076,0,0,0,1.3135-.4927l3.3833-2.9917a2.0015,2.0015,0,0,0,.01-3.0229l-3.4033-3.0083A1.9961,1.9961,0,0,0,15.6089,14H10V4h8v6a2.0058,2.0058,0,0,0,2,2h6Z\"\n })), children);\n});\nvar Classification20 = /*#__PURE__*/React.forwardRef(function Classification20(_ref161, ref) {\n var children = _ref161.children,\n rest = _objectWithoutProperties(_ref161, _excluded161);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle12 || (_circle12 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"15\",\n cy: \"19\",\n r: \"1\"\n })), _path245 || (_path245 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.7,9.3l-7-7A.9087.9087,0,0,0,20,2H10A2.0058,2.0058,0,0,0,8,4V14H6a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H8v4a2.0058,2.0058,0,0,0,2,2H26a2.0058,2.0058,0,0,0,2-2V10A.9092.9092,0,0,0,27.7,9.3ZM20,4.4,25.6,10H20ZM6,16h9.5972L19,19l-3.3926,3H6ZM26,28H10V24h5.6089a2.0076,2.0076,0,0,0,1.3135-.4927l3.3833-2.9917a2.0015,2.0015,0,0,0,.01-3.0229l-3.4033-3.0083A1.9961,1.9961,0,0,0,15.6089,14H10V4h8v6a2.0058,2.0058,0,0,0,2,2h6Z\"\n })), children);\n});\nvar Classification16 = /*#__PURE__*/React.forwardRef(function Classification16(_ref162, ref) {\n var children = _ref162.children,\n rest = _objectWithoutProperties(_ref162, _excluded162);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _circle13 || (_circle13 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: \"15\",\n cy: \"19\",\n r: \"1\"\n })), _path246 || (_path246 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.7,9.3l-7-7A.9087.9087,0,0,0,20,2H10A2.0058,2.0058,0,0,0,8,4V14H6a2.0023,2.0023,0,0,0-2,2v6a2.0023,2.0023,0,0,0,2,2H8v4a2.0058,2.0058,0,0,0,2,2H26a2.0058,2.0058,0,0,0,2-2V10A.9092.9092,0,0,0,27.7,9.3ZM20,4.4,25.6,10H20ZM6,16h9.5972L19,19l-3.3926,3H6ZM26,28H10V24h5.6089a2.0076,2.0076,0,0,0,1.3135-.4927l3.3833-2.9917a2.0015,2.0015,0,0,0,.01-3.0229l-3.4033-3.0083A1.9961,1.9961,0,0,0,15.6089,14H10V4h8v6a2.0058,2.0058,0,0,0,2,2h6Z\"\n })), children);\n});\nvar ClassifierLanguage32 = /*#__PURE__*/React.forwardRef(function ClassifierLanguage32(_ref163, ref) {\n var children = _ref163.children,\n rest = _objectWithoutProperties(_ref163, _excluded163);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path247 || (_path247 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 10V2H22v8h3v4H23v2h7V14H27V10zM24 4h4V8H24zM20 23.41L18.59 22 16 24.59 13.41 22 12 23.41 14.59 26 12 28.59 13.41 30 16 27.41 18.59 30 20 28.59 17.41 26 20 23.41zM20 14L12 14 12 16 15 16 15 21 17 21 17 16 20 16 20 14zM7 9.86a4 4 0 10-2 0V14H2v2H9V14H7zM4 6A2 2 0 116 8 2 2 0 014 6z\"\n })), children);\n});\nvar ClassifierLanguage24 = /*#__PURE__*/React.forwardRef(function ClassifierLanguage24(_ref164, ref) {\n var children = _ref164.children,\n rest = _objectWithoutProperties(_ref164, _excluded164);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path248 || (_path248 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 10V2H22v8h3v4H23v2h7V14H27V10zM24 4h4V8H24zM20 23.41L18.59 22 16 24.59 13.41 22 12 23.41 14.59 26 12 28.59 13.41 30 16 27.41 18.59 30 20 28.59 17.41 26 20 23.41zM20 14L12 14 12 16 15 16 15 21 17 21 17 16 20 16 20 14zM7 9.86a4 4 0 10-2 0V14H2v2H9V14H7zM4 6A2 2 0 116 8 2 2 0 014 6z\"\n })), children);\n});\nvar ClassifierLanguage20 = /*#__PURE__*/React.forwardRef(function ClassifierLanguage20(_ref165, ref) {\n var children = _ref165.children,\n rest = _objectWithoutProperties(_ref165, _excluded165);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path249 || (_path249 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 10V2H22v8h3v4H23v2h7V14H27V10zM24 4h4V8H24zM20 23.41L18.59 22 16 24.59 13.41 22 12 23.41 14.59 26 12 28.59 13.41 30 16 27.41 18.59 30 20 28.59 17.41 26 20 23.41zM20 14L12 14 12 16 15 16 15 21 17 21 17 16 20 16 20 14zM7 9.86a4 4 0 10-2 0V14H2v2H9V14H7zM4 6A2 2 0 116 8 2 2 0 014 6z\"\n })), children);\n});\nvar ClassifierLanguage16 = /*#__PURE__*/React.forwardRef(function ClassifierLanguage16(_ref166, ref) {\n var children = _ref166.children,\n rest = _objectWithoutProperties(_ref166, _excluded166);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path250 || (_path250 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30 10V2H22v8h3v4H23v2h7V14H27V10zM24 4h4V8H24zM20 23.41L18.59 22 16 24.59 13.41 22 12 23.41 14.59 26 12 28.59 13.41 30 16 27.41 18.59 30 20 28.59 17.41 26 20 23.41zM20 14L12 14 12 16 15 16 15 21 17 21 17 16 20 16 20 14zM7 9.86a4 4 0 10-2 0V14H2v2H9V14H7zM4 6A2 2 0 116 8 2 2 0 014 6z\"\n })), children);\n});\nvar Clean32 = /*#__PURE__*/React.forwardRef(function Clean32(_ref167, ref) {\n var children = _ref167.children,\n rest = _objectWithoutProperties(_ref167, _excluded167);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path251 || (_path251 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 18H26V20H20z\",\n transform: \"rotate(-180 23 19)\"\n })), _path252 || (_path252 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26H30V28H24z\",\n transform: \"rotate(-180 27 27)\"\n })), _path253 || (_path253 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22H28V24H22z\",\n transform: \"rotate(-180 25 23)\"\n })), _path254 || (_path254 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.0029,20a4.8952,4.8952,0,0,0-2.4044-4.1729L22,3,20.2691,2,12.6933,15.126A5.6988,5.6988,0,0,0,7.45,16.6289C3.7064,20.24,3.9963,28.6821,4.01,29.04a1,1,0,0,0,1,.96H20.0012a1,1,0,0,0,.6-1.8C17.0615,25.5439,17.0029,20.0537,17.0029,20ZM11.93,16.9971A3.11,3.11,0,0,1,15.0041,20c0,.0381.0019.208.0168.4688L9.1215,17.8452A3.8,3.8,0,0,1,11.93,16.9971ZM15.4494,28A5.2,5.2,0,0,1,14,25H12a6.4993,6.4993,0,0,0,.9684,3H10.7451A16.6166,16.6166,0,0,1,10,24H8a17.3424,17.3424,0,0,0,.6652,4H6c.031-1.8364.29-5.8921,1.8027-8.5527l7.533,3.35A13.0253,13.0253,0,0,0,17.5968,28Z\"\n })), children);\n});\nvar Clean24 = /*#__PURE__*/React.forwardRef(function Clean24(_ref168, ref) {\n var children = _ref168.children,\n rest = _objectWithoutProperties(_ref168, _excluded168);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path255 || (_path255 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 18H26V20H20z\",\n transform: \"rotate(-180 23 19)\"\n })), _path256 || (_path256 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26H30V28H24z\",\n transform: \"rotate(-180 27 27)\"\n })), _path257 || (_path257 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22H28V24H22z\",\n transform: \"rotate(-180 25 23)\"\n })), _path258 || (_path258 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.0029,20a4.8952,4.8952,0,0,0-2.4044-4.1729L22,3,20.2691,2,12.6933,15.126A5.6988,5.6988,0,0,0,7.45,16.6289C3.7064,20.24,3.9963,28.6821,4.01,29.04a1,1,0,0,0,1,.96H20.0012a1,1,0,0,0,.6-1.8C17.0615,25.5439,17.0029,20.0537,17.0029,20ZM11.93,16.9971A3.11,3.11,0,0,1,15.0041,20c0,.0381.0019.208.0168.4688L9.1215,17.8452A3.8,3.8,0,0,1,11.93,16.9971ZM15.4494,28A5.2,5.2,0,0,1,14,25H12a6.4993,6.4993,0,0,0,.9684,3H10.7451A16.6166,16.6166,0,0,1,10,24H8a17.3424,17.3424,0,0,0,.6652,4H6c.031-1.8364.29-5.8921,1.8027-8.5527l7.533,3.35A13.0253,13.0253,0,0,0,17.5968,28Z\"\n })), children);\n});\nvar Clean20 = /*#__PURE__*/React.forwardRef(function Clean20(_ref169, ref) {\n var children = _ref169.children,\n rest = _objectWithoutProperties(_ref169, _excluded169);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path259 || (_path259 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 18H26V20H20z\",\n transform: \"rotate(-180 23 19)\"\n })), _path260 || (_path260 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26H30V28H24z\",\n transform: \"rotate(-180 27 27)\"\n })), _path261 || (_path261 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22H28V24H22z\",\n transform: \"rotate(-180 25 23)\"\n })), _path262 || (_path262 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.0029,20a4.8952,4.8952,0,0,0-2.4044-4.1729L22,3,20.2691,2,12.6933,15.126A5.6988,5.6988,0,0,0,7.45,16.6289C3.7064,20.24,3.9963,28.6821,4.01,29.04a1,1,0,0,0,1,.96H20.0012a1,1,0,0,0,.6-1.8C17.0615,25.5439,17.0029,20.0537,17.0029,20ZM11.93,16.9971A3.11,3.11,0,0,1,15.0041,20c0,.0381.0019.208.0168.4688L9.1215,17.8452A3.8,3.8,0,0,1,11.93,16.9971ZM15.4494,28A5.2,5.2,0,0,1,14,25H12a6.4993,6.4993,0,0,0,.9684,3H10.7451A16.6166,16.6166,0,0,1,10,24H8a17.3424,17.3424,0,0,0,.6652,4H6c.031-1.8364.29-5.8921,1.8027-8.5527l7.533,3.35A13.0253,13.0253,0,0,0,17.5968,28Z\"\n })), children);\n});\nvar Clean16 = /*#__PURE__*/React.forwardRef(function Clean16(_ref170, ref) {\n var children = _ref170.children,\n rest = _objectWithoutProperties(_ref170, _excluded170);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path263 || (_path263 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 18H26V20H20z\",\n transform: \"rotate(-180 23 19)\"\n })), _path264 || (_path264 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 26H30V28H24z\",\n transform: \"rotate(-180 27 27)\"\n })), _path265 || (_path265 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 22H28V24H22z\",\n transform: \"rotate(-180 25 23)\"\n })), _path266 || (_path266 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.0029,20a4.8952,4.8952,0,0,0-2.4044-4.1729L22,3,20.2691,2,12.6933,15.126A5.6988,5.6988,0,0,0,7.45,16.6289C3.7064,20.24,3.9963,28.6821,4.01,29.04a1,1,0,0,0,1,.96H20.0012a1,1,0,0,0,.6-1.8C17.0615,25.5439,17.0029,20.0537,17.0029,20ZM11.93,16.9971A3.11,3.11,0,0,1,15.0041,20c0,.0381.0019.208.0168.4688L9.1215,17.8452A3.8,3.8,0,0,1,11.93,16.9971ZM15.4494,28A5.2,5.2,0,0,1,14,25H12a6.4993,6.4993,0,0,0,.9684,3H10.7451A16.6166,16.6166,0,0,1,10,24H8a17.3424,17.3424,0,0,0,.6652,4H6c.031-1.8364.29-5.8921,1.8027-8.5527l7.533,3.35A13.0253,13.0253,0,0,0,17.5968,28Z\"\n })), children);\n});\nvar Close32 = /*#__PURE__*/React.forwardRef(function Close32(_ref171, ref) {\n var children = _ref171.children,\n rest = _objectWithoutProperties(_ref171, _excluded171);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path267 || (_path267 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"\n })), children);\n});\nvar Close24 = /*#__PURE__*/React.forwardRef(function Close24(_ref172, ref) {\n var children = _ref172.children,\n rest = _objectWithoutProperties(_ref172, _excluded172);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path268 || (_path268 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"\n })), children);\n});\nvar Close20 = /*#__PURE__*/React.forwardRef(function Close20(_ref173, ref) {\n var children = _ref173.children,\n rest = _objectWithoutProperties(_ref173, _excluded173);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path269 || (_path269 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"\n })), children);\n});\nvar Close16 = /*#__PURE__*/React.forwardRef(function Close16(_ref174, ref) {\n var children = _ref174.children,\n rest = _objectWithoutProperties(_ref174, _excluded174);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path270 || (_path270 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z\"\n })), children);\n});\nvar CloseFilled32 = /*#__PURE__*/React.forwardRef(function CloseFilled32(_ref175, ref) {\n var children = _ref175.children,\n rest = _objectWithoutProperties(_ref175, _excluded175);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path271 || (_path271 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9\\tl5.4,5.4L21.4,9l1.6,1.6L17.6,16l5.4,5.4L21.4,23z\"\n })), _path272 || (_path272 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.4 16L9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4 21.4 23 16 17.6 10.6 23 9 21.4 14.4 16\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar CloseFilled24 = /*#__PURE__*/React.forwardRef(function CloseFilled24(_ref176, ref) {\n var children = _ref176.children,\n rest = _objectWithoutProperties(_ref176, _excluded176);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path273 || (_path273 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9\\tl5.4,5.4L21.4,9l1.6,1.6L17.6,16l5.4,5.4L21.4,23z\"\n })), _path274 || (_path274 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.4 16L9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4 21.4 23 16 17.6 10.6 23 9 21.4 14.4 16\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar CloseFilled20 = /*#__PURE__*/React.forwardRef(function CloseFilled20(_ref177, ref) {\n var children = _ref177.children,\n rest = _objectWithoutProperties(_ref177, _excluded177);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path275 || (_path275 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M21.4,23L16,17.6L10.6,23L9,21.4l5.4-5.4L9,10.6L10.6,9\\tl5.4,5.4L21.4,9l1.6,1.6L17.6,16l5.4,5.4L21.4,23z\"\n })), _path276 || (_path276 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14.4 16L9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4 21.4 23 16 17.6 10.6 23 9 21.4 14.4 16\",\n \"data-icon-path\": \"inner-path\",\n opacity: \"0\"\n })), children);\n});\nvar CloseFilled16 = /*#__PURE__*/React.forwardRef(function CloseFilled16(_ref178, ref) {\n var children = _ref178.children,\n rest = _objectWithoutProperties(_ref178, _excluded178);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path277 || (_path277 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2\\tl2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z\"\n })), children);\n});\nvar CloseOutline32 = /*#__PURE__*/React.forwardRef(function CloseOutline32(_ref179, ref) {\n var children = _ref179.children,\n rest = _objectWithoutProperties(_ref179, _excluded179);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path278 || (_path278 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path279 || (_path279 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar CloseOutline24 = /*#__PURE__*/React.forwardRef(function CloseOutline24(_ref180, ref) {\n var children = _ref180.children,\n rest = _objectWithoutProperties(_ref180, _excluded180);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path280 || (_path280 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path281 || (_path281 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar CloseOutline20 = /*#__PURE__*/React.forwardRef(function CloseOutline20(_ref181, ref) {\n var children = _ref181.children,\n rest = _objectWithoutProperties(_ref181, _excluded181);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path282 || (_path282 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path283 || (_path283 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar CloseOutline16 = /*#__PURE__*/React.forwardRef(function CloseOutline16(_ref182, ref) {\n var children = _ref182.children,\n rest = _objectWithoutProperties(_ref182, _excluded182);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path284 || (_path284 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12\\tS22.6,28,16,28z\"\n })), _path285 || (_path285 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z\"\n })), children);\n});\nvar ClosedCaption32 = /*#__PURE__*/React.forwardRef(function ClosedCaption32(_ref183, ref) {\n var children = _ref183.children,\n rest = _objectWithoutProperties(_ref183, _excluded183);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path286 || (_path286 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21H10a2 2 0 01-2-2V13a2 2 0 012-2h5v2H10v6h5zM25 21H20a2 2 0 01-2-2V13a2 2 0 012-2h5v2H20v6h5z\"\n })), _path287 || (_path287 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar ClosedCaption24 = /*#__PURE__*/React.forwardRef(function ClosedCaption24(_ref184, ref) {\n var children = _ref184.children,\n rest = _objectWithoutProperties(_ref184, _excluded184);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path288 || (_path288 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21H10a2 2 0 01-2-2V13a2 2 0 012-2h5v2H10v6h5zM25 21H20a2 2 0 01-2-2V13a2 2 0 012-2h5v2H20v6h5z\"\n })), _path289 || (_path289 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar ClosedCaption20 = /*#__PURE__*/React.forwardRef(function ClosedCaption20(_ref185, ref) {\n var children = _ref185.children,\n rest = _objectWithoutProperties(_ref185, _excluded185);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path290 || (_path290 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21H10a2 2 0 01-2-2V13a2 2 0 012-2h5v2H10v6h5zM25 21H20a2 2 0 01-2-2V13a2 2 0 012-2h5v2H20v6h5z\"\n })), _path291 || (_path291 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar ClosedCaption16 = /*#__PURE__*/React.forwardRef(function ClosedCaption16(_ref186, ref) {\n var children = _ref186.children,\n rest = _objectWithoutProperties(_ref186, _excluded186);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path292 || (_path292 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 21H10a2 2 0 01-2-2V13a2 2 0 012-2h5v2H10v6h5zM25 21H20a2 2 0 01-2-2V13a2 2 0 012-2h5v2H20v6h5z\"\n })), _path293 || (_path293 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H28a2,2,0,0,1,2,2V24A2,2,0,0,1,28,26ZM4,8V24H28V8Z\"\n })), children);\n});\nvar ClosedCaptionAlt32 = /*#__PURE__*/React.forwardRef(function ClosedCaptionAlt32(_ref187, ref) {\n var children = _ref187.children,\n rest = _objectWithoutProperties(_ref187, _excluded187);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path294 || (_path294 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 17H25V19H19zM11 17H17V19H11zM6 17H9V19H6zM22 13H26V15H22zM13 13H20V15H13zM6 13H11V15H6z\"\n })), _path295 || (_path295 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.7358,30,16,29l4-7h6a1.9966,1.9966,0,0,0,2-2V8a1.9966,1.9966,0,0,0-2-2H6A1.9966,1.9966,0,0,0,4,8V20a1.9966,1.9966,0,0,0,2,2h9v2H6a3.9993,3.9993,0,0,1-4-4V8A3.9988,3.9988,0,0,1,6,4H26a3.9988,3.9988,0,0,1,4,4V20a3.9993,3.9993,0,0,1-4,4H21.1646Z\"\n })), children);\n});\nvar ClosedCaptionAlt24 = /*#__PURE__*/React.forwardRef(function ClosedCaptionAlt24(_ref188, ref) {\n var children = _ref188.children,\n rest = _objectWithoutProperties(_ref188, _excluded188);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path296 || (_path296 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 17H25V19H19zM11 17H17V19H11zM6 17H9V19H6zM22 13H26V15H22zM13 13H20V15H13zM6 13H11V15H6z\"\n })), _path297 || (_path297 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.7358,30,16,29l4-7h6a1.9966,1.9966,0,0,0,2-2V8a1.9966,1.9966,0,0,0-2-2H6A1.9966,1.9966,0,0,0,4,8V20a1.9966,1.9966,0,0,0,2,2h9v2H6a3.9993,3.9993,0,0,1-4-4V8A3.9988,3.9988,0,0,1,6,4H26a3.9988,3.9988,0,0,1,4,4V20a3.9993,3.9993,0,0,1-4,4H21.1646Z\"\n })), children);\n});\nvar ClosedCaptionAlt20 = /*#__PURE__*/React.forwardRef(function ClosedCaptionAlt20(_ref189, ref) {\n var children = _ref189.children,\n rest = _objectWithoutProperties(_ref189, _excluded189);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path298 || (_path298 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 17H25V19H19zM11 17H17V19H11zM6 17H9V19H6zM22 13H26V15H22zM13 13H20V15H13zM6 13H11V15H6z\"\n })), _path299 || (_path299 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.7358,30,16,29l4-7h6a1.9966,1.9966,0,0,0,2-2V8a1.9966,1.9966,0,0,0-2-2H6A1.9966,1.9966,0,0,0,4,8V20a1.9966,1.9966,0,0,0,2,2h9v2H6a3.9993,3.9993,0,0,1-4-4V8A3.9988,3.9988,0,0,1,6,4H26a3.9988,3.9988,0,0,1,4,4V20a3.9993,3.9993,0,0,1-4,4H21.1646Z\"\n })), children);\n});\nvar ClosedCaptionAlt16 = /*#__PURE__*/React.forwardRef(function ClosedCaptionAlt16(_ref190, ref) {\n var children = _ref190.children,\n rest = _objectWithoutProperties(_ref190, _excluded190);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path300 || (_path300 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 17H25V19H19zM11 17H17V19H11zM6 17H9V19H6zM22 13H26V15H22zM13 13H20V15H13zM6 13H11V15H6z\"\n })), _path301 || (_path301 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.7358,30,16,29l4-7h6a1.9966,1.9966,0,0,0,2-2V8a1.9966,1.9966,0,0,0-2-2H6A1.9966,1.9966,0,0,0,4,8V20a1.9966,1.9966,0,0,0,2,2h9v2H6a3.9993,3.9993,0,0,1-4-4V8A3.9988,3.9988,0,0,1,6,4H26a3.9988,3.9988,0,0,1,4,4V20a3.9993,3.9993,0,0,1-4,4H21.1646Z\"\n })), children);\n});\nvar ClosedCaptionFilled32 = /*#__PURE__*/React.forwardRef(function ClosedCaptionFilled32(_ref191, ref) {\n var children = _ref191.children,\n rest = _objectWithoutProperties(_ref191, _excluded191);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path302 || (_path302 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM15,13H10v6h5v2H10a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Zm10,0H20v6h5v2H20a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Z\"\n })), children);\n});\nvar ClosedCaptionFilled24 = /*#__PURE__*/React.forwardRef(function ClosedCaptionFilled24(_ref192, ref) {\n var children = _ref192.children,\n rest = _objectWithoutProperties(_ref192, _excluded192);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path303 || (_path303 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM15,13H10v6h5v2H10a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Zm10,0H20v6h5v2H20a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Z\"\n })), children);\n});\nvar ClosedCaptionFilled20 = /*#__PURE__*/React.forwardRef(function ClosedCaptionFilled20(_ref193, ref) {\n var children = _ref193.children,\n rest = _objectWithoutProperties(_ref193, _excluded193);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path304 || (_path304 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM15,13H10v6h5v2H10a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Zm10,0H20v6h5v2H20a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Z\"\n })), children);\n});\nvar ClosedCaptionFilled16 = /*#__PURE__*/React.forwardRef(function ClosedCaptionFilled16(_ref194, ref) {\n var children = _ref194.children,\n rest = _objectWithoutProperties(_ref194, _excluded194);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path305 || (_path305 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,6H4A2,2,0,0,0,2,8V24a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V8A2,2,0,0,0,28,6ZM15,13H10v6h5v2H10a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Zm10,0H20v6h5v2H20a2,2,0,0,1-2-2V13a2,2,0,0,1,2-2h5Z\"\n })), children);\n});\nvar Cloud32 = /*#__PURE__*/React.forwardRef(function Cloud32(_ref195, ref) {\n var children = _ref195.children,\n rest = _objectWithoutProperties(_ref195, _excluded195);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path306 || (_path306 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,7h0a7.66,7.66,0,0,1,1.51.15,8,8,0,0,1,6.35,6.34l.26,1.35,1.35.24a5.5,5.5,0,0,1-1,10.92H7.5a5.5,5.5,0,0,1-1-10.92l1.34-.24.26-1.35A8,8,0,0,1,16,7m0-2a10,10,0,0,0-9.83,8.12A7.5,7.5,0,0,0,7.49,28h17a7.5,7.5,0,0,0,1.32-14.88,10,10,0,0,0-7.94-7.94A10.27,10.27,0,0,0,16,5Z\"\n })), children);\n});\nvar Cloud24 = /*#__PURE__*/React.forwardRef(function Cloud24(_ref196, ref) {\n var children = _ref196.children,\n rest = _objectWithoutProperties(_ref196, _excluded196);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path307 || (_path307 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,7h0a7.66,7.66,0,0,1,1.51.15,8,8,0,0,1,6.35,6.34l.26,1.35,1.35.24a5.5,5.5,0,0,1-1,10.92H7.5a5.5,5.5,0,0,1-1-10.92l1.34-.24.26-1.35A8,8,0,0,1,16,7m0-2a10,10,0,0,0-9.83,8.12A7.5,7.5,0,0,0,7.49,28h17a7.5,7.5,0,0,0,1.32-14.88,10,10,0,0,0-7.94-7.94A10.27,10.27,0,0,0,16,5Z\"\n })), children);\n});\nvar Cloud20 = /*#__PURE__*/React.forwardRef(function Cloud20(_ref197, ref) {\n var children = _ref197.children,\n rest = _objectWithoutProperties(_ref197, _excluded197);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path308 || (_path308 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,7h0a7.66,7.66,0,0,1,1.51.15,8,8,0,0,1,6.35,6.34l.26,1.35,1.35.24a5.5,5.5,0,0,1-1,10.92H7.5a5.5,5.5,0,0,1-1-10.92l1.34-.24.26-1.35A8,8,0,0,1,16,7m0-2a10,10,0,0,0-9.83,8.12A7.5,7.5,0,0,0,7.49,28h17a7.5,7.5,0,0,0,1.32-14.88,10,10,0,0,0-7.94-7.94A10.27,10.27,0,0,0,16,5Z\"\n })), children);\n});\nvar Cloud16 = /*#__PURE__*/React.forwardRef(function Cloud16(_ref198, ref) {\n var children = _ref198.children,\n rest = _objectWithoutProperties(_ref198, _excluded198);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path309 || (_path309 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16,7h0a7.66,7.66,0,0,1,1.51.15,8,8,0,0,1,6.35,6.34l.26,1.35,1.35.24a5.5,5.5,0,0,1-1,10.92H7.5a5.5,5.5,0,0,1-1-10.92l1.34-.24.26-1.35A8,8,0,0,1,16,7m0-2a10,10,0,0,0-9.83,8.12A7.5,7.5,0,0,0,7.49,28h17a7.5,7.5,0,0,0,1.32-14.88,10,10,0,0,0-7.94-7.94A10.27,10.27,0,0,0,16,5Z\"\n })), children);\n});\nvar CloudAlerting32 = /*#__PURE__*/React.forwardRef(function CloudAlerting32(_ref199, ref) {\n var children = _ref199.children,\n rest = _objectWithoutProperties(_ref199, _excluded199);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path310 || (_path310 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H15V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path311 || (_path311 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H17a1,1,0,0,1-.8574-1.5144l6-10a1,1,0,0,1,1.7154,0l6,10A1,1,0,0,1,29,14ZM18.7661,12h8.4678L23,4.9436Z\"\n })), children);\n});\nvar CloudAlerting24 = /*#__PURE__*/React.forwardRef(function CloudAlerting24(_ref200, ref) {\n var children = _ref200.children,\n rest = _objectWithoutProperties(_ref200, _excluded200);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path312 || (_path312 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H15V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path313 || (_path313 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H17a1,1,0,0,1-.8574-1.5144l6-10a1,1,0,0,1,1.7154,0l6,10A1,1,0,0,1,29,14ZM18.7661,12h8.4678L23,4.9436Z\"\n })), children);\n});\nvar CloudAlerting20 = /*#__PURE__*/React.forwardRef(function CloudAlerting20(_ref201, ref) {\n var children = _ref201.children,\n rest = _objectWithoutProperties(_ref201, _excluded201);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path314 || (_path314 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H15V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path315 || (_path315 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H17a1,1,0,0,1-.8574-1.5144l6-10a1,1,0,0,1,1.7154,0l6,10A1,1,0,0,1,29,14ZM18.7661,12h8.4678L23,4.9436Z\"\n })), children);\n});\nvar CloudAlerting16 = /*#__PURE__*/React.forwardRef(function CloudAlerting16(_ref202, ref) {\n var children = _ref202.children,\n rest = _objectWithoutProperties(_ref202, _excluded202);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path316 || (_path316 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H15V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path317 || (_path317 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29,14H17a1,1,0,0,1-.8574-1.5144l6-10a1,1,0,0,1,1.7154,0l6,10A1,1,0,0,1,29,14ZM18.7661,12h8.4678L23,4.9436Z\"\n })), children);\n});\nvar CloudAuditing32 = /*#__PURE__*/React.forwardRef(function CloudAuditing32(_ref203, ref) {\n var children = _ref203.children,\n rest = _objectWithoutProperties(_ref203, _excluded203);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path318 || (_path318 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path319 || (_path319 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L16 10.04 17.59 8.47 21 11.85 28.41 4.5 30 6.08 21 15z\"\n })), children);\n});\nvar CloudAuditing24 = /*#__PURE__*/React.forwardRef(function CloudAuditing24(_ref204, ref) {\n var children = _ref204.children,\n rest = _objectWithoutProperties(_ref204, _excluded204);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path320 || (_path320 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path321 || (_path321 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L16 10.04 17.59 8.47 21 11.85 28.41 4.5 30 6.08 21 15z\"\n })), children);\n});\nvar CloudAuditing20 = /*#__PURE__*/React.forwardRef(function CloudAuditing20(_ref205, ref) {\n var children = _ref205.children,\n rest = _objectWithoutProperties(_ref205, _excluded205);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path322 || (_path322 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path323 || (_path323 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L16 10.04 17.59 8.47 21 11.85 28.41 4.5 30 6.08 21 15z\"\n })), children);\n});\nvar CloudAuditing16 = /*#__PURE__*/React.forwardRef(function CloudAuditing16(_ref206, ref) {\n var children = _ref206.children,\n rest = _objectWithoutProperties(_ref206, _excluded206);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path324 || (_path324 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6H16V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path325 || (_path325 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 15L16 10.04 17.59 8.47 21 11.85 28.41 4.5 30 6.08 21 15z\"\n })), children);\n});\nvar CloudDataOps32 = /*#__PURE__*/React.forwardRef(function CloudDataOps32(_ref207, ref) {\n var children = _ref207.children,\n rest = _objectWithoutProperties(_ref207, _excluded207);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path326 || (_path326 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 18H30V28H28zM24 14H26V28H24zM20 22H22V28H20zM22.175 10L23.76 8.7339A9.9522 9.9522 0 0017.89 5.1816 10.0025 10.0025 0 006.17 13.1152 7.5054 7.5054 0 00.0544 21.4087 7.6843 7.6843 0 007.7692 28H16V26H7.6945a5.632 5.632 0 01-5.6023-4.4858 5.5064 5.5064 0 014.4339-6.4307l1.3486-.2441.2139-1.11a8.206 8.206 0 016.7426-6.6426 7.9666 7.9666 0 013.0137.13A7.8037 7.8037 0 0122.175 10z\"\n })), children);\n});\nvar CloudDataOps24 = /*#__PURE__*/React.forwardRef(function CloudDataOps24(_ref208, ref) {\n var children = _ref208.children,\n rest = _objectWithoutProperties(_ref208, _excluded208);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path327 || (_path327 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 18H30V28H28zM24 14H26V28H24zM20 22H22V28H20zM22.175 10L23.76 8.7339A9.9522 9.9522 0 0017.89 5.1816 10.0025 10.0025 0 006.17 13.1152 7.5054 7.5054 0 00.0544 21.4087 7.6843 7.6843 0 007.7692 28H16V26H7.6945a5.632 5.632 0 01-5.6023-4.4858 5.5064 5.5064 0 014.4339-6.4307l1.3486-.2441.2139-1.11a8.206 8.206 0 016.7426-6.6426 7.9666 7.9666 0 013.0137.13A7.8037 7.8037 0 0122.175 10z\"\n })), children);\n});\nvar CloudDataOps20 = /*#__PURE__*/React.forwardRef(function CloudDataOps20(_ref209, ref) {\n var children = _ref209.children,\n rest = _objectWithoutProperties(_ref209, _excluded209);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path328 || (_path328 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 18H30V28H28zM24 14H26V28H24zM20 22H22V28H20zM22.175 10L23.76 8.7339A9.9522 9.9522 0 0017.89 5.1816 10.0025 10.0025 0 006.17 13.1152 7.5054 7.5054 0 00.0544 21.4087 7.6843 7.6843 0 007.7692 28H16V26H7.6945a5.632 5.632 0 01-5.6023-4.4858 5.5064 5.5064 0 014.4339-6.4307l1.3486-.2441.2139-1.11a8.206 8.206 0 016.7426-6.6426 7.9666 7.9666 0 013.0137.13A7.8037 7.8037 0 0122.175 10z\"\n })), children);\n});\nvar CloudDataOps16 = /*#__PURE__*/React.forwardRef(function CloudDataOps16(_ref210, ref) {\n var children = _ref210.children,\n rest = _objectWithoutProperties(_ref210, _excluded210);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path329 || (_path329 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 18H30V28H28zM24 14H26V28H24zM20 22H22V28H20zM22.175 10L23.76 8.7339A9.9522 9.9522 0 0017.89 5.1816 10.0025 10.0025 0 006.17 13.1152 7.5054 7.5054 0 00.0544 21.4087 7.6843 7.6843 0 007.7692 28H16V26H7.6945a5.632 5.632 0 01-5.6023-4.4858 5.5064 5.5064 0 014.4339-6.4307l1.3486-.2441.2139-1.11a8.206 8.206 0 016.7426-6.6426 7.9666 7.9666 0 013.0137.13A7.8037 7.8037 0 0122.175 10z\"\n })), children);\n});\nvar CloudDownload32 = /*#__PURE__*/React.forwardRef(function CloudDownload32(_ref211, ref) {\n var children = _ref211.children,\n rest = _objectWithoutProperties(_ref211, _excluded211);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path330 || (_path330 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), _path331 || (_path331 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 26.17L17 14 15 14 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17z\"\n })), children);\n});\nvar CloudDownload24 = /*#__PURE__*/React.forwardRef(function CloudDownload24(_ref212, ref) {\n var children = _ref212.children,\n rest = _objectWithoutProperties(_ref212, _excluded212);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path332 || (_path332 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), _path333 || (_path333 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 26.17L17 14 15 14 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17z\"\n })), children);\n});\nvar CloudDownload20 = /*#__PURE__*/React.forwardRef(function CloudDownload20(_ref213, ref) {\n var children = _ref213.children,\n rest = _objectWithoutProperties(_ref213, _excluded213);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path334 || (_path334 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), _path335 || (_path335 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 26.17L17 14 15 14 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17z\"\n })), children);\n});\nvar CloudDownload16 = /*#__PURE__*/React.forwardRef(function CloudDownload16(_ref214, ref) {\n var children = _ref214.children,\n rest = _objectWithoutProperties(_ref214, _excluded214);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path336 || (_path336 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), _path337 || (_path337 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17 26.17L17 14 15 14 15 26.17 12.41 23.59 11 25 16 30 21 25 19.59 23.59 17 26.17z\"\n })), children);\n});\nvar CloudLightning32 = /*#__PURE__*/React.forwardRef(function CloudLightning32(_ref215, ref) {\n var children = _ref215.children,\n rest = _objectWithoutProperties(_ref215, _excluded215);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudLightning32']) {\n didWarnAboutDeprecation['CloudLightning32'] = true;\n console.warn(\"The CloudLightning32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path338 || (_path338 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.61,29.92a1,1,0,0,1-.6-1.07L12.83,17H8a1,1,0,0,1-1-1.23l3-13A1,1,0,0,1,11,2H21a1,1,0,0,1,.78.37,1,1,0,0,1,.2.85L20.25,11H25a1,1,0,0,1,.9.56,1,1,0,0,1-.11,1l-13,17A1,1,0,0,1,12,30,1.09,1.09,0,0,1,11.61,29.92ZM17.75,13l2-9H11.8L9.26,15h5.91L13.58,25.28,23,13Z\"\n })), children);\n});\nvar CloudLightning24 = /*#__PURE__*/React.forwardRef(function CloudLightning24(_ref216, ref) {\n var children = _ref216.children,\n rest = _objectWithoutProperties(_ref216, _excluded216);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudLightning24']) {\n didWarnAboutDeprecation['CloudLightning24'] = true;\n console.warn(\"The CloudLightning24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path339 || (_path339 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.61,29.92a1,1,0,0,1-.6-1.07L12.83,17H8a1,1,0,0,1-1-1.23l3-13A1,1,0,0,1,11,2H21a1,1,0,0,1,.78.37,1,1,0,0,1,.2.85L20.25,11H25a1,1,0,0,1,.9.56,1,1,0,0,1-.11,1l-13,17A1,1,0,0,1,12,30,1.09,1.09,0,0,1,11.61,29.92ZM17.75,13l2-9H11.8L9.26,15h5.91L13.58,25.28,23,13Z\"\n })), children);\n});\nvar CloudLightning20 = /*#__PURE__*/React.forwardRef(function CloudLightning20(_ref217, ref) {\n var children = _ref217.children,\n rest = _objectWithoutProperties(_ref217, _excluded217);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudLightning20']) {\n didWarnAboutDeprecation['CloudLightning20'] = true;\n console.warn(\"The CloudLightning20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path340 || (_path340 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.61,29.92a1,1,0,0,1-.6-1.07L12.83,17H8a1,1,0,0,1-1-1.23l3-13A1,1,0,0,1,11,2H21a1,1,0,0,1,.78.37,1,1,0,0,1,.2.85L20.25,11H25a1,1,0,0,1,.9.56,1,1,0,0,1-.11,1l-13,17A1,1,0,0,1,12,30,1.09,1.09,0,0,1,11.61,29.92ZM17.75,13l2-9H11.8L9.26,15h5.91L13.58,25.28,23,13Z\"\n })), children);\n});\nvar CloudLightning16 = /*#__PURE__*/React.forwardRef(function CloudLightning16(_ref218, ref) {\n var children = _ref218.children,\n rest = _objectWithoutProperties(_ref218, _excluded218);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudLightning16']) {\n didWarnAboutDeprecation['CloudLightning16'] = true;\n console.warn(\"The CloudLightning16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path341 || (_path341 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.61,29.92a1,1,0,0,1-.6-1.07L12.83,17H8a1,1,0,0,1-1-1.23l3-13A1,1,0,0,1,11,2H21a1,1,0,0,1,.78.37,1,1,0,0,1,.2.85L20.25,11H25a1,1,0,0,1,.9.56,1,1,0,0,1-.11,1l-13,17A1,1,0,0,1,12,30,1.09,1.09,0,0,1,11.61,29.92ZM17.75,13l2-9H11.8L9.26,15h5.91L13.58,25.28,23,13Z\"\n })), children);\n});\nvar CloudLogging32 = /*#__PURE__*/React.forwardRef(function CloudLogging32(_ref219, ref) {\n var children = _ref219.children,\n rest = _objectWithoutProperties(_ref219, _excluded219);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path342 || (_path342 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16v6H4V6H15V4H4A2 2 0 002 6V22a2 2 0 002 2h8v4H8v2H24V28H20V24h8a2 2 0 002-2V16zM18 28H14V24h4zM18 4H30V6H18z\"\n })), _path343 || (_path343 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H30V10H18zM18 12H24V14H18z\"\n })), children);\n});\nvar CloudLogging24 = /*#__PURE__*/React.forwardRef(function CloudLogging24(_ref220, ref) {\n var children = _ref220.children,\n rest = _objectWithoutProperties(_ref220, _excluded220);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path344 || (_path344 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16v6H4V6H15V4H4A2 2 0 002 6V22a2 2 0 002 2h8v4H8v2H24V28H20V24h8a2 2 0 002-2V16zM18 28H14V24h4zM18 4H30V6H18z\"\n })), _path345 || (_path345 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H30V10H18zM18 12H24V14H18z\"\n })), children);\n});\nvar CloudLogging20 = /*#__PURE__*/React.forwardRef(function CloudLogging20(_ref221, ref) {\n var children = _ref221.children,\n rest = _objectWithoutProperties(_ref221, _excluded221);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path346 || (_path346 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16v6H4V6H15V4H4A2 2 0 002 6V22a2 2 0 002 2h8v4H8v2H24V28H20V24h8a2 2 0 002-2V16zM18 28H14V24h4zM18 4H30V6H18z\"\n })), _path347 || (_path347 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H30V10H18zM18 12H24V14H18z\"\n })), children);\n});\nvar CloudLogging16 = /*#__PURE__*/React.forwardRef(function CloudLogging16(_ref222, ref) {\n var children = _ref222.children,\n rest = _objectWithoutProperties(_ref222, _excluded222);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path348 || (_path348 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28 16v6H4V6H15V4H4A2 2 0 002 6V22a2 2 0 002 2h8v4H8v2H24V28H20V24h8a2 2 0 002-2V16zM18 28H14V24h4zM18 4H30V6H18z\"\n })), _path349 || (_path349 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18 8H30V10H18zM18 12H24V14H18z\"\n })), children);\n});\nvar CloudMonitoring32 = /*#__PURE__*/React.forwardRef(function CloudMonitoring32(_ref223, ref) {\n var children = _ref223.children,\n rest = _objectWithoutProperties(_ref223, _excluded223);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path350 || (_path350 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6h7V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path351 || (_path351 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,18h-.01a1,1,0,0,1-.9511-.7253L15.2456,11H11V9h5a1,1,0,0,1,.9615.7252l1.0742,3.7589,3.0088-9.7783A1.0142,1.0142,0,0,1,22,3a.98.98,0,0,1,.9487.6838L24.7207,9H30v2H24a1,1,0,0,1-.9487-.6838l-1.0132-3.04L18.9556,17.2942A1,1,0,0,1,18,18Z\"\n })), children);\n});\nvar CloudMonitoring24 = /*#__PURE__*/React.forwardRef(function CloudMonitoring24(_ref224, ref) {\n var children = _ref224.children,\n rest = _objectWithoutProperties(_ref224, _excluded224);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path352 || (_path352 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6h7V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path353 || (_path353 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,18h-.01a1,1,0,0,1-.9511-.7253L15.2456,11H11V9h5a1,1,0,0,1,.9615.7252l1.0742,3.7589,3.0088-9.7783A1.0142,1.0142,0,0,1,22,3a.98.98,0,0,1,.9487.6838L24.7207,9H30v2H24a1,1,0,0,1-.9487-.6838l-1.0132-3.04L18.9556,17.2942A1,1,0,0,1,18,18Z\"\n })), children);\n});\nvar CloudMonitoring20 = /*#__PURE__*/React.forwardRef(function CloudMonitoring20(_ref225, ref) {\n var children = _ref225.children,\n rest = _objectWithoutProperties(_ref225, _excluded225);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path354 || (_path354 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6h7V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path355 || (_path355 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,18h-.01a1,1,0,0,1-.9511-.7253L15.2456,11H11V9h5a1,1,0,0,1,.9615.7252l1.0742,3.7589,3.0088-9.7783A1.0142,1.0142,0,0,1,22,3a.98.98,0,0,1,.9487.6838L24.7207,9H30v2H24a1,1,0,0,1-.9487-.6838l-1.0132-3.04L18.9556,17.2942A1,1,0,0,1,18,18Z\"\n })), children);\n});\nvar CloudMonitoring16 = /*#__PURE__*/React.forwardRef(function CloudMonitoring16(_ref226, ref) {\n var children = _ref226.children,\n rest = _objectWithoutProperties(_ref226, _excluded226);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path356 || (_path356 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,16v6H4V6h7V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V16ZM18,28H14V24h4Z\"\n })), _path357 || (_path357 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18,18h-.01a1,1,0,0,1-.9511-.7253L15.2456,11H11V9h5a1,1,0,0,1,.9615.7252l1.0742,3.7589,3.0088-9.7783A1.0142,1.0142,0,0,1,22,3a.98.98,0,0,1,.9487.6838L24.7207,9H30v2H24a1,1,0,0,1-.9487-.6838l-1.0132-3.04L18.9556,17.2942A1,1,0,0,1,18,18Z\"\n })), children);\n});\nvar CloudOffline32 = /*#__PURE__*/React.forwardRef(function CloudOffline32(_ref227, ref) {\n var children = _ref227.children,\n rest = _objectWithoutProperties(_ref227, _excluded227);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path358 || (_path358 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008 12.1362a8.8694 8.8694 0 00-.9795-2.5434L30 3.4142 28.5872 2 2 28.5872 3.4142 30l5-5H23.5a6.4974 6.4974 0 001.3008-12.8638zM23.5 23H10.4141L22.3418 11.0723a6.9049 6.9049 0 01.6006 2.0708l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 23zM4.2964 23.4487l1.4313-1.4311A4.4774 4.4774 0 018.144 14.019l.8155-.0639.0991-.812a6.9867 6.9867 0 0110.63-5.0865l1.4431-1.4428A8.9859 8.9859 0 007.2 12.1362 6.4891 6.4891 0 004.2964 23.4487z\"\n })), children);\n});\nvar CloudOffline24 = /*#__PURE__*/React.forwardRef(function CloudOffline24(_ref228, ref) {\n var children = _ref228.children,\n rest = _objectWithoutProperties(_ref228, _excluded228);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path359 || (_path359 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008 12.1362a8.8694 8.8694 0 00-.9795-2.5434L30 3.4142 28.5872 2 2 28.5872 3.4142 30l5-5H23.5a6.4974 6.4974 0 001.3008-12.8638zM23.5 23H10.4141L22.3418 11.0723a6.9049 6.9049 0 01.6006 2.0708l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 23zM4.2964 23.4487l1.4313-1.4311A4.4774 4.4774 0 018.144 14.019l.8155-.0639.0991-.812a6.9867 6.9867 0 0110.63-5.0865l1.4431-1.4428A8.9859 8.9859 0 007.2 12.1362 6.4891 6.4891 0 004.2964 23.4487z\"\n })), children);\n});\nvar CloudOffline20 = /*#__PURE__*/React.forwardRef(function CloudOffline20(_ref229, ref) {\n var children = _ref229.children,\n rest = _objectWithoutProperties(_ref229, _excluded229);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path360 || (_path360 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008 12.1362a8.8694 8.8694 0 00-.9795-2.5434L30 3.4142 28.5872 2 2 28.5872 3.4142 30l5-5H23.5a6.4974 6.4974 0 001.3008-12.8638zM23.5 23H10.4141L22.3418 11.0723a6.9049 6.9049 0 01.6006 2.0708l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 23zM4.2964 23.4487l1.4313-1.4311A4.4774 4.4774 0 018.144 14.019l.8155-.0639.0991-.812a6.9867 6.9867 0 0110.63-5.0865l1.4431-1.4428A8.9859 8.9859 0 007.2 12.1362 6.4891 6.4891 0 004.2964 23.4487z\"\n })), children);\n});\nvar CloudOffline16 = /*#__PURE__*/React.forwardRef(function CloudOffline16(_ref230, ref) {\n var children = _ref230.children,\n rest = _objectWithoutProperties(_ref230, _excluded230);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path361 || (_path361 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.8008 12.1362a8.8694 8.8694 0 00-.9795-2.5434L30 3.4142 28.5872 2 2 28.5872 3.4142 30l5-5H23.5a6.4974 6.4974 0 001.3008-12.8638zM23.5 23H10.4141L22.3418 11.0723a6.9049 6.9049 0 01.6006 2.0708l.0986.812.8154.0639A4.4975 4.4975 0 0123.5 23zM4.2964 23.4487l1.4313-1.4311A4.4774 4.4774 0 018.144 14.019l.8155-.0639.0991-.812a6.9867 6.9867 0 0110.63-5.0865l1.4431-1.4428A8.9859 8.9859 0 007.2 12.1362 6.4891 6.4891 0 004.2964 23.4487z\"\n })), children);\n});\nvar CloudRain32 = /*#__PURE__*/React.forwardRef(function CloudRain32(_ref231, ref) {\n var children = _ref231.children,\n rest = _objectWithoutProperties(_ref231, _excluded231);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudRain32']) {\n didWarnAboutDeprecation['CloudRain32'] = true;\n console.warn(\"The CloudRain32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path362 || (_path362 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM14 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0114 30zM20 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0120 30zM8 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 018 30z\"\n })), children);\n});\nvar CloudRain24 = /*#__PURE__*/React.forwardRef(function CloudRain24(_ref232, ref) {\n var children = _ref232.children,\n rest = _objectWithoutProperties(_ref232, _excluded232);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudRain24']) {\n didWarnAboutDeprecation['CloudRain24'] = true;\n console.warn(\"The CloudRain24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path363 || (_path363 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM14 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0114 30zM20 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0120 30zM8 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 018 30z\"\n })), children);\n});\nvar CloudRain20 = /*#__PURE__*/React.forwardRef(function CloudRain20(_ref233, ref) {\n var children = _ref233.children,\n rest = _objectWithoutProperties(_ref233, _excluded233);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudRain20']) {\n didWarnAboutDeprecation['CloudRain20'] = true;\n console.warn(\"The CloudRain20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path364 || (_path364 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM14 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0114 30zM20 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0120 30zM8 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 018 30z\"\n })), children);\n});\nvar CloudRain16 = /*#__PURE__*/React.forwardRef(function CloudRain16(_ref234, ref) {\n var children = _ref234.children,\n rest = _objectWithoutProperties(_ref234, _excluded234);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudRain16']) {\n didWarnAboutDeprecation['CloudRain16'] = true;\n console.warn(\"The CloudRain16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path365 || (_path365 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM14 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0114 30zM20 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 0120 30zM8 30a.93.93 0 01-.45-.11 1 1 0 01-.44-1.34l2-4a1 1 0 111.78.9l-2 4A1 1 0 018 30z\"\n })), children);\n});\nvar CloudServiceManagement32 = /*#__PURE__*/React.forwardRef(function CloudServiceManagement32(_ref235, ref) {\n var children = _ref235.children,\n rest = _objectWithoutProperties(_ref235, _excluded235);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path366 || (_path366 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H14V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path367 || (_path367 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,10V8H27.8989a4.9678,4.9678,0,0,0-.7319-1.7529l1.49-1.49-1.414-1.414-1.49,1.49A4.9678,4.9678,0,0,0,24,4.1011V2H22V4.1011a4.9678,4.9678,0,0,0-1.7529.7319l-1.49-1.49-1.414,1.414,1.49,1.49A4.9678,4.9678,0,0,0,18.1011,8H16v2h2.1011a4.9678,4.9678,0,0,0,.7319,1.7529l-1.49,1.49,1.414,1.414,1.49-1.49A4.9678,4.9678,0,0,0,22,13.8989V16h2V13.8989a4.9678,4.9678,0,0,0,1.7529-.7319l1.49,1.49,1.414-1.414-1.49-1.49A4.9678,4.9678,0,0,0,27.8989,10Zm-7,2a3,3,0,1,1,3-3A3.0033,3.0033,0,0,1,23,12Z\"\n })), children);\n});\nvar CloudServiceManagement24 = /*#__PURE__*/React.forwardRef(function CloudServiceManagement24(_ref236, ref) {\n var children = _ref236.children,\n rest = _objectWithoutProperties(_ref236, _excluded236);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path368 || (_path368 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H14V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path369 || (_path369 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,10V8H27.8989a4.9678,4.9678,0,0,0-.7319-1.7529l1.49-1.49-1.414-1.414-1.49,1.49A4.9678,4.9678,0,0,0,24,4.1011V2H22V4.1011a4.9678,4.9678,0,0,0-1.7529.7319l-1.49-1.49-1.414,1.414,1.49,1.49A4.9678,4.9678,0,0,0,18.1011,8H16v2h2.1011a4.9678,4.9678,0,0,0,.7319,1.7529l-1.49,1.49,1.414,1.414,1.49-1.49A4.9678,4.9678,0,0,0,22,13.8989V16h2V13.8989a4.9678,4.9678,0,0,0,1.7529-.7319l1.49,1.49,1.414-1.414-1.49-1.49A4.9678,4.9678,0,0,0,27.8989,10Zm-7,2a3,3,0,1,1,3-3A3.0033,3.0033,0,0,1,23,12Z\"\n })), children);\n});\nvar CloudServiceManagement20 = /*#__PURE__*/React.forwardRef(function CloudServiceManagement20(_ref237, ref) {\n var children = _ref237.children,\n rest = _objectWithoutProperties(_ref237, _excluded237);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path370 || (_path370 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H14V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path371 || (_path371 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,10V8H27.8989a4.9678,4.9678,0,0,0-.7319-1.7529l1.49-1.49-1.414-1.414-1.49,1.49A4.9678,4.9678,0,0,0,24,4.1011V2H22V4.1011a4.9678,4.9678,0,0,0-1.7529.7319l-1.49-1.49-1.414,1.414,1.49,1.49A4.9678,4.9678,0,0,0,18.1011,8H16v2h2.1011a4.9678,4.9678,0,0,0,.7319,1.7529l-1.49,1.49,1.414,1.414,1.49-1.49A4.9678,4.9678,0,0,0,22,13.8989V16h2V13.8989a4.9678,4.9678,0,0,0,1.7529-.7319l1.49,1.49,1.414-1.414-1.49-1.49A4.9678,4.9678,0,0,0,27.8989,10Zm-7,2a3,3,0,1,1,3-3A3.0033,3.0033,0,0,1,23,12Z\"\n })), children);\n});\nvar CloudServiceManagement16 = /*#__PURE__*/React.forwardRef(function CloudServiceManagement16(_ref238, ref) {\n var children = _ref238.children,\n rest = _objectWithoutProperties(_ref238, _excluded238);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path372 || (_path372 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28,17v5H4V6H14V4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V17ZM18,28H14V24h4Z\"\n })), _path373 || (_path373 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30,10V8H27.8989a4.9678,4.9678,0,0,0-.7319-1.7529l1.49-1.49-1.414-1.414-1.49,1.49A4.9678,4.9678,0,0,0,24,4.1011V2H22V4.1011a4.9678,4.9678,0,0,0-1.7529.7319l-1.49-1.49-1.414,1.414,1.49,1.49A4.9678,4.9678,0,0,0,18.1011,8H16v2h2.1011a4.9678,4.9678,0,0,0,.7319,1.7529l-1.49,1.49,1.414,1.414,1.49-1.49A4.9678,4.9678,0,0,0,22,13.8989V16h2V13.8989a4.9678,4.9678,0,0,0,1.7529-.7319l1.49,1.49,1.414-1.414-1.49-1.49A4.9678,4.9678,0,0,0,27.8989,10Zm-7,2a3,3,0,1,1,3-3A3.0033,3.0033,0,0,1,23,12Z\"\n })), children);\n});\nvar CloudSnow32 = /*#__PURE__*/React.forwardRef(function CloudSnow32(_ref239, ref) {\n var children = _ref239.children,\n rest = _objectWithoutProperties(_ref239, _excluded239);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudSnow32']) {\n didWarnAboutDeprecation['CloudSnow32'] = true;\n console.warn(\"The CloudSnow32 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path374 || (_path374 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM12 25.05L10.95 24 9.5 25.45 8.05 24 7 25.05 8.45 26.5 7 27.95 8.05 29 9.5 27.55 10.95 29 12 27.95 10.55 26.5 12 25.05zM26 25.05L24.95 24 23.5 25.45 22.05 24 21 25.05 22.45 26.5 21 27.95 22.05 29 23.5 27.55 24.95 29 26 27.95 24.55 26.5 26 25.05zM19 27.05L17.95 26 16.5 27.45 15.05 26 14 27.05 15.45 28.5 14 29.95 15.05 31 16.5 29.55 17.95 31 19 29.95 17.55 28.5 19 27.05z\"\n })), children);\n});\nvar CloudSnow24 = /*#__PURE__*/React.forwardRef(function CloudSnow24(_ref240, ref) {\n var children = _ref240.children,\n rest = _objectWithoutProperties(_ref240, _excluded240);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudSnow24']) {\n didWarnAboutDeprecation['CloudSnow24'] = true;\n console.warn(\"The CloudSnow24 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path375 || (_path375 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM12 25.05L10.95 24 9.5 25.45 8.05 24 7 25.05 8.45 26.5 7 27.95 8.05 29 9.5 27.55 10.95 29 12 27.95 10.55 26.5 12 25.05zM26 25.05L24.95 24 23.5 25.45 22.05 24 21 25.05 22.45 26.5 21 27.95 22.05 29 23.5 27.55 24.95 29 26 27.95 24.55 26.5 26 25.05zM19 27.05L17.95 26 16.5 27.45 15.05 26 14 27.05 15.45 28.5 14 29.95 15.05 31 16.5 29.55 17.95 31 19 29.95 17.55 28.5 19 27.05z\"\n })), children);\n});\nvar CloudSnow20 = /*#__PURE__*/React.forwardRef(function CloudSnow20(_ref241, ref) {\n var children = _ref241.children,\n rest = _objectWithoutProperties(_ref241, _excluded241);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudSnow20']) {\n didWarnAboutDeprecation['CloudSnow20'] = true;\n console.warn(\"The CloudSnow20 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path376 || (_path376 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM12 25.05L10.95 24 9.5 25.45 8.05 24 7 25.05 8.45 26.5 7 27.95 8.05 29 9.5 27.55 10.95 29 12 27.95 10.55 26.5 12 25.05zM26 25.05L24.95 24 23.5 25.45 22.05 24 21 25.05 22.45 26.5 21 27.95 22.05 29 23.5 27.55 24.95 29 26 27.95 24.55 26.5 26 25.05zM19 27.05L17.95 26 16.5 27.45 15.05 26 14 27.05 15.45 28.5 14 29.95 15.05 31 16.5 29.55 17.95 31 19 29.95 17.55 28.5 19 27.05z\"\n })), children);\n});\nvar CloudSnow16 = /*#__PURE__*/React.forwardRef(function CloudSnow16(_ref242, ref) {\n var children = _ref242.children,\n rest = _objectWithoutProperties(_ref242, _excluded242);\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnAboutDeprecation['CloudSnow16']) {\n didWarnAboutDeprecation['CloudSnow16'] = true;\n console.warn(\"The CloudSnow16 component has been deprecated and will be \" + \"removed in the next major version of @carbon/icons-react.\");\n }\n }\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path377 || (_path377 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5 22H8.5A6.5 6.5 0 017.2 9.14a9 9 0 0117.6 0A6.5 6.5 0 0123.5 22zM16 4a7 7 0 00-6.94 6.14L9 11 8.14 11a4.5 4.5 0 00.36 9h15a4.5 4.5 0 00.36-9L23 11l-.1-.82A7 7 0 0016 4zM12 25.05L10.95 24 9.5 25.45 8.05 24 7 25.05 8.45 26.5 7 27.95 8.05 29 9.5 27.55 10.95 29 12 27.95 10.55 26.5 12 25.05zM26 25.05L24.95 24 23.5 25.45 22.05 24 21 25.05 22.45 26.5 21 27.95 22.05 29 23.5 27.55 24.95 29 26 27.95 24.55 26.5 26 25.05zM19 27.05L17.95 26 16.5 27.45 15.05 26 14 27.05 15.45 28.5 14 29.95 15.05 31 16.5 29.55 17.95 31 19 29.95 17.55 28.5 19 27.05z\"\n })), children);\n});\nvar CloudUpload32 = /*#__PURE__*/React.forwardRef(function CloudUpload32(_ref243, ref) {\n var children = _ref243.children,\n rest = _objectWithoutProperties(_ref243, _excluded243);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path378 || (_path378 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z\"\n })), _path379 || (_path379 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), children);\n});\nvar CloudUpload24 = /*#__PURE__*/React.forwardRef(function CloudUpload24(_ref244, ref) {\n var children = _ref244.children,\n rest = _objectWithoutProperties(_ref244, _excluded244);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path380 || (_path380 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z\"\n })), _path381 || (_path381 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), children);\n});\nvar CloudUpload20 = /*#__PURE__*/React.forwardRef(function CloudUpload20(_ref245, ref) {\n var children = _ref245.children,\n rest = _objectWithoutProperties(_ref245, _excluded245);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path382 || (_path382 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z\"\n })), _path383 || (_path383 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), children);\n});\nvar CloudUpload16 = /*#__PURE__*/React.forwardRef(function CloudUpload16(_ref246, ref) {\n var children = _ref246.children,\n rest = _objectWithoutProperties(_ref246, _excluded246);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path384 || (_path384 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z\"\n })), _path385 || (_path385 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z\"\n })), children);\n});\nvar CloudApp32 = /*#__PURE__*/React.forwardRef(function CloudApp32(_ref247, ref) {\n var children = _ref247.children,\n rest = _objectWithoutProperties(_ref247, _excluded247);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path386 || (_path386 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z\"\n })), children);\n});\nvar CloudApp24 = /*#__PURE__*/React.forwardRef(function CloudApp24(_ref248, ref) {\n var children = _ref248.children,\n rest = _objectWithoutProperties(_ref248, _excluded248);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path387 || (_path387 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z\"\n })), children);\n});\nvar CloudApp20 = /*#__PURE__*/React.forwardRef(function CloudApp20(_ref249, ref) {\n var children = _ref249.children,\n rest = _objectWithoutProperties(_ref249, _excluded249);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path388 || (_path388 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z\"\n })), children);\n});\nvar CloudApp16 = /*#__PURE__*/React.forwardRef(function CloudApp16(_ref250, ref) {\n var children = _ref250.children,\n rest = _objectWithoutProperties(_ref250, _excluded250);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 32 32\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"currentColor\",\n ref: ref\n }, rest), _path389 || (_path389 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z\"\n })), children);\n});\n\nexport { CheckboxIndeterminateFilled16, CheckboxIndeterminateFilled20, CheckboxIndeterminateFilled24, CheckboxIndeterminateFilled32, CheckboxUndeterminate16, CheckboxUndeterminate20, CheckboxUndeterminate24, CheckboxUndeterminate32, CheckboxUndeterminateFilled16, CheckboxUndeterminateFilled20, CheckboxUndeterminateFilled24, CheckboxUndeterminateFilled32, Checkmark16, Checkmark20, Checkmark24, Checkmark32, CheckmarkFilled16, CheckmarkFilled20, CheckmarkFilled24, CheckmarkFilled32, CheckmarkFilledError16, CheckmarkFilledError20, CheckmarkFilledError24, CheckmarkFilledError32, CheckmarkFilledWarning16, CheckmarkFilledWarning20, CheckmarkFilledWarning24, CheckmarkFilledWarning32, CheckmarkOutline16, CheckmarkOutline20, CheckmarkOutline24, CheckmarkOutline32, CheckmarkOutlineError16, CheckmarkOutlineError20, CheckmarkOutlineError24, CheckmarkOutlineError32, CheckmarkOutlineWarning16, CheckmarkOutlineWarning20, CheckmarkOutlineWarning24, CheckmarkOutlineWarning32, Chemistry16, Chemistry20, Chemistry24, Chemistry32, ChemistryReference16, ChemistryReference20, ChemistryReference24, ChemistryReference32, ChevronDown16, ChevronDown20, ChevronDown24, ChevronDown32, ChevronDownGlyph, ChevronLeft16, ChevronLeft20, ChevronLeft24, ChevronLeft32, ChevronLeftGlyph, ChevronMini16, ChevronMini20, ChevronMini24, ChevronMini32, ChevronRight16, ChevronRight20, ChevronRight24, ChevronRight32, ChevronRightGlyph, ChevronSort16, ChevronSort20, ChevronSort24, ChevronSort32, ChevronSortDown16, ChevronSortDown20, ChevronSortDown24, ChevronSortDown32, ChevronSortUp16, ChevronSortUp20, ChevronSortUp24, ChevronSortUp32, ChevronUp16, ChevronUp20, ChevronUp24, ChevronUp32, ChevronUpGlyph, Chip16, Chip20, Chip24, Chip32, Choices16, Choices20, Choices24, Choices32, ChooseItem16, ChooseItem20, ChooseItem24, ChooseItem32, ChoroplethMap16, ChoroplethMap20, ChoroplethMap24, ChoroplethMap32, CicsCmas16, CicsCmas20, CicsCmas24, CicsCmas32, CicsExplorer16, CicsExplorer20, CicsExplorer24, CicsExplorer32, CicsRegion16, CicsRegion20, CicsRegion24, CicsRegion32, CicsRegionRouting16, CicsRegionRouting20, CicsRegionRouting24, CicsRegionRouting32, CicsRegionTarget16, CicsRegionTarget20, CicsRegionTarget24, CicsRegionTarget32, CicsSystemGroup16, CicsSystemGroup20, CicsSystemGroup24, CicsSystemGroup32, CicsWuiRegion16, CicsWuiRegion20, CicsWuiRegion24, CicsWuiRegion32, Cicsplex16, Cicsplex20, Cicsplex24, Cicsplex32, CircleDash16, CircleDash20, CircleDash24, CircleDash32, CircleFillGlyph, CircleFilled16, CircleFilled20, CircleFilled24, CircleFilled32, CirclePacking16, CirclePacking20, CirclePacking24, CirclePacking32, CircleSolid16, CircleSolid20, CircleSolid24, CircleSolid32, CircleStrokeGlyph, Classification16, Classification20, Classification24, Classification32, ClassifierLanguage16, ClassifierLanguage20, ClassifierLanguage24, ClassifierLanguage32, Clean16, Clean20, Clean24, Clean32, Close16, Close20, Close24, Close32, CloseFilled16, CloseFilled20, CloseFilled24, CloseFilled32, CloseOutline16, CloseOutline20, CloseOutline24, CloseOutline32, ClosedCaption16, ClosedCaption20, ClosedCaption24, ClosedCaption32, ClosedCaptionAlt16, ClosedCaptionAlt20, ClosedCaptionAlt24, ClosedCaptionAlt32, ClosedCaptionFilled16, ClosedCaptionFilled20, ClosedCaptionFilled24, ClosedCaptionFilled32, Cloud16, Cloud20, Cloud24, Cloud32, CloudAlerting16, CloudAlerting20, CloudAlerting24, CloudAlerting32, CloudApp16, CloudApp20, CloudApp24, CloudApp32, CloudAuditing16, CloudAuditing20, CloudAuditing24, CloudAuditing32, CloudDataOps16, CloudDataOps20, CloudDataOps24, CloudDataOps32, CloudDownload16, CloudDownload20, CloudDownload24, CloudDownload32, CloudLightning16, CloudLightning20, CloudLightning24, CloudLightning32, CloudLogging16, CloudLogging20, CloudLogging24, CloudLogging32, CloudMonitoring16, CloudMonitoring20, CloudMonitoring24, CloudMonitoring32, CloudOffline16, CloudOffline20, CloudOffline24, CloudOffline32, CloudRain16, CloudRain20, CloudRain24, CloudRain32, CloudServiceManagement16, CloudServiceManagement20, CloudServiceManagement24, CloudServiceManagement32, CloudSnow16, CloudSnow20, CloudSnow24, CloudSnow32, CloudUpload16, CloudUpload20, CloudUpload24, CloudUpload32, QCircuitComposer16, QCircuitComposer20, QCircuitComposer24, QCircuitComposer32, WatsonHealthCircleMeasurement16, WatsonHealthCircleMeasurement20, WatsonHealthCircleMeasurement24, WatsonHealthCircleMeasurement32 };\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"aria-label\", \"aria-labelledby\", \"className\", \"renderMenuIcon\", \"renderCloseIcon\", \"onClick\", \"isActive\", \"isCollapsible\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { Close20, Menu20 } from '@carbon/icons-react';\nimport cx from 'classnames';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { AriaLabelPropType } from '../../prop-types/AriaPropTypes';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar HeaderMenuButton = function HeaderMenuButton(_ref) {\n var _cx;\n\n var ariaLabel = _ref['aria-label'],\n ariaLabelledBy = _ref['aria-labelledby'],\n customClassName = _ref.className,\n renderMenuIcon = _ref.renderMenuIcon,\n renderCloseIcon = _ref.renderCloseIcon,\n onClick = _ref.onClick,\n isActive = _ref.isActive,\n isCollapsible = _ref.isCollapsible,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var className = cx((_cx = {}, _defineProperty(_cx, customClassName, !!customClassName), _defineProperty(_cx, \"\".concat(prefix, \"--header__action\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--header__menu-trigger\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--header__action--active\"), isActive), _defineProperty(_cx, \"\".concat(prefix, \"--header__menu-toggle\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--header__menu-toggle__hidden\"), !isCollapsible), _cx));\n var accessibilityLabel = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy\n };\n var menuIcon = renderMenuIcon ? renderMenuIcon : /*#__PURE__*/React.createElement(Menu20, null);\n var closeIcon = renderCloseIcon ? renderCloseIcon : /*#__PURE__*/React.createElement(Close20, null);\n return /*#__PURE__*/React.createElement(\"button\", _extends({}, rest, accessibilityLabel, {\n className: className,\n title: ariaLabel,\n type: \"button\",\n onClick: onClick\n }), isActive ? closeIcon : menuIcon);\n};\n\nHeaderMenuButton.propTypes = _objectSpread(_objectSpread({}, AriaLabelPropType), {}, {\n /**\n * Optionally provide a custom class name that is applied to the underlying\n * button\n */\n className: PropTypes.string,\n isActive: PropTypes.bool,\n\n /**\n * Optionally provide an onClick handler that is called when the underlying\n * button fires it's onclick event\n */\n onClick: PropTypes.func\n});\nexport default HeaderMenuButton;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"element\", \"isSideNavExpanded\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n/**\n * Link is a custom component that allows us to supporting rendering elements\n * other than `a` in our markup. The goal is to allow users to support passing\n * in their own components to support use-cases like `react-router` or\n * `@reach/router`\n */\n\nvar Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {\n var element = props.element,\n isSideNavExpanded = props.isSideNavExpanded,\n rest = _objectWithoutProperties(props, _excluded);\n\n return /*#__PURE__*/React.createElement(element, _objectSpread(_objectSpread({}, rest), {}, {\n ref: ref\n }));\n});\nvar LinkPropTypes = {\n /**\n * The base element to use to build the link. Defaults to `a`, can also accept\n * alternative tag names or custom components like `Link` from `react-router`.\n */\n element: PropTypes.elementType,\n\n /**\n * Property to indicate if the side nav container is open (or not). Use to\n * keep local state and styling in step with the SideNav expansion state.\n */\n isSideNavExpanded: PropTypes.bool\n};\nLink.displayName = 'Link';\nLink.propTypes = LinkPropTypes;\nLink.defaultProps = {\n element: 'a'\n};\nexport { LinkPropTypes };\nexport default Link;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\", \"className\", \"prefix\", \"href\"];\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; }\n\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; }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport Link, { LinkPropTypes } from './Link';\nimport { usePrefix } from '../../internal/usePrefix';\n\nvar HeaderName = function HeaderName(_ref) {\n var children = _ref.children,\n customClassName = _ref.className,\n prefix = _ref.prefix,\n href = _ref.href,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var selectorPrefix = usePrefix();\n var className = cx(\"\".concat(selectorPrefix, \"--header__name\"), customClassName);\n return /*#__PURE__*/React.createElement(Link, _extends({}, rest, {\n className: className,\n href: href\n }), prefix && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(selectorPrefix, \"--header__name--prefix\")\n }, prefix), \"\\xA0\"), children);\n};\n\nHeaderName.propTypes = _objectSpread(_objectSpread({}, LinkPropTypes), {}, {\n /**\n * Pass in children that are either a string or can be read as a string by\n * screen readers\n */\n children: PropTypes.node.isRequired,\n\n /**\n * Optionally provide a custom class to apply to the underlying `
  • ` node\n */\n className: PropTypes.string,\n\n /**\n * Provide an href for the name to link to\n */\n href: PropTypes.string,\n\n /**\n * Optionally specify a prefix to your header name. Useful for companies, for\n * example: IBM [Product Name] versus solely [Product Name]\n */\n prefix: PropTypes.string\n});\nHeaderName.defaultProps = {\n prefix: 'IBM'\n};\nexport default HeaderName;","/**\n * Copyright IBM Corp. 2015, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar enabled$1 = {};\n\ntry {\n if (process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES) {\n if (process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES === 'true') {\n enabled$1.enableCssCustomProperties = true;\n } else {\n enabled$1.enableCssCustomProperties = false;\n }\n } else {\n enabled$1.enableCssCustomProperties = false;\n }\n\n if (process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE) {\n if (process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE === 'true') {\n enabled$1.enableUseControlledStateWithValue = true;\n } else {\n enabled$1.enableUseControlledStateWithValue = false;\n }\n } else {\n enabled$1.enableUseControlledStateWithValue = false;\n }\n\n if (process.env.CARBON_ENABLE_CSS_GRID) {\n if (process.env.CARBON_ENABLE_CSS_GRID === 'true') {\n enabled$1.enableCssGrid = true;\n } else {\n enabled$1.enableCssGrid = false;\n }\n } else {\n enabled$1.enableCssGrid = false;\n }\n\n if (process.env.CARBON_ENABLE_V11_RELEASE) {\n if (process.env.CARBON_ENABLE_V11_RELEASE === 'true') {\n enabled$1.enableV11Release = true;\n } else {\n enabled$1.enableV11Release = false;\n }\n } else {\n enabled$1.enableV11Release = false;\n }\n} catch (error) {\n enabled$1.enableCssCustomProperties = false;\n enabled$1.enableUseControlledStateWithValue = false;\n enabled$1.enableCssGrid = false;\n enabled$1.enableV11Release = false;\n}\n\nvar featureFlagInfo = [{\n name: \"enable-css-custom-properties\",\n description: \"Describe what the flag does\",\n enabled: enabled$1.enableCssCustomProperties\n}, {\n name: \"enable-use-controlled-state-with-value\",\n description: \"Enable components to be created in either a controlled or uncontrolled mode\\n\",\n enabled: enabled$1.enableUseControlledStateWithValue\n}, {\n name: \"enable-css-grid\",\n description: \"Enable CSS Grid Layout in the Grid and Column React components\\n\",\n enabled: enabled$1.enableCssGrid\n}, {\n name: \"enable-v11-release\",\n description: \"Enable the features and functionality for the v11 Release\\n\",\n enabled: enabled$1.enableV11Release\n}];\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function () {};\n\n return {\n s: F,\n n: function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function (e) {\n throw e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function () {\n it = it.call(o);\n },\n n: function () {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function (e) {\n didErr = true;\n err = e;\n },\n f: function () {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\n\n/**\n * Copyright IBM Corp. 2015, 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar FeatureFlagScope = /*#__PURE__*/function () {\n function FeatureFlagScope(flags) {\n var _this = this;\n\n _classCallCheck(this, FeatureFlagScope);\n\n this.flags = new Map();\n\n if (flags) {\n Object.keys(flags).forEach(function (key) {\n _this.flags.set(key, flags[key]);\n });\n }\n }\n /**\n * Check to see if a flag exists\n * @param {string} name\n */\n\n\n _createClass(FeatureFlagScope, [{\n key: \"checkForFlag\",\n value: function checkForFlag(name) {\n if (!this.flags.has(name)) {\n throw new Error(\"Unable to find a feature flag with the name: `\".concat(name, \"`\"));\n }\n }\n /**\n * Add a feature flag\n * @param {string} name\n * @param {boolean} enabled\n */\n\n }, {\n key: \"add\",\n value: function add(name, enabled) {\n if (this.flags.has(name)) {\n throw new Error(\"The feature flag: \".concat(name, \" already exists\"));\n }\n\n this.flags.set(name, enabled);\n }\n /**\n * Enable a feature flag\n * @param {string} name\n */\n\n }, {\n key: \"enable\",\n value: function enable(name) {\n this.checkForFlag(name);\n this.flags.set(name, true);\n }\n /**\n * Disable a feature flag\n * @param {string} name\n */\n\n }, {\n key: \"disable\",\n value: function disable(name) {\n this.checkForFlag(name);\n this.flags.set(name, false);\n }\n /**\n * Merge the given feature flags with the current set of feature flags.\n * Duplicate keys will be set to the value in the given feature flags.\n * @param {object} flags\n */\n\n }, {\n key: \"merge\",\n value: function merge(flags) {\n var _this2 = this;\n\n Object.keys(flags).forEach(function (key) {\n _this2.flags.set(key, flags[key]);\n });\n }\n /**\n * @param {FeatureFlagScope} scope\n */\n\n }, {\n key: \"mergeWithScope\",\n value: function mergeWithScope(scope) {\n var _iterator = _createForOfIteratorHelper(scope.flags),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _slicedToArray(_step.value, 2),\n key = _step$value[0],\n value = _step$value[1];\n\n if (this.flags.has(key)) {\n continue;\n }\n\n this.flags.set(key, value);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n /**\n * Check if a feature flag is enabled\n * @param {string} name\n * @returns {boolean}\n */\n\n }, {\n key: \"enabled\",\n value: function enabled(name) {\n this.checkForFlag(name);\n return this.flags.get(name);\n }\n }]);\n\n return FeatureFlagScope;\n}();\n\nvar FeatureFlags = createScope();\n\nfor (var i = 0; i < featureFlagInfo.length; i++) {\n var featureFlag = featureFlagInfo[i];\n FeatureFlags.add(featureFlag.name, featureFlag.enabled);\n}\nfunction createScope(flags) {\n return new FeatureFlagScope(flags);\n}\nfunction add() {\n return FeatureFlags.add.apply(FeatureFlags, arguments);\n}\nfunction enable() {\n return FeatureFlags.enable.apply(FeatureFlags, arguments);\n}\nfunction disable() {\n return FeatureFlags.disable.apply(FeatureFlags, arguments);\n}\nfunction enabled() {\n return FeatureFlags.enabled.apply(FeatureFlags, arguments);\n}\nfunction merge() {\n return FeatureFlags.merge.apply(FeatureFlags, arguments);\n}\n\nexport { FeatureFlags, add, createScope, disable, enable, enabled, merge };\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"aria-label\", \"aria-labelledby\", \"children\", \"className\"];\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; }\n\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; }\n\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); }; }\n\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; } }\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { AriaLabelPropType } from '../../prop-types/AriaPropTypes';\nimport { PrefixContext } from '../../internal/usePrefix';\n\nvar HeaderNavigation = /*#__PURE__*/function (_React$Component) {\n _inherits(HeaderNavigation, _React$Component);\n\n var _super = _createSuper(HeaderNavigation);\n\n function HeaderNavigation(props) {\n var _this;\n\n _classCallCheck(this, HeaderNavigation);\n\n _this = _super.call(this, props);\n\n _defineProperty(_assertThisInitialized(_this), \"handleItemRef\", function (index) {\n return function (node) {\n _this.items[index] = node;\n };\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_renderNavItem\", function (child, index) {\n if ( /*#__PURE__*/React.isValidElement(child)) {\n return /*#__PURE__*/React.cloneElement(child, {\n ref: _this.handleItemRef(index)\n });\n }\n });\n\n _this.items = [];\n _this.state = {\n selectedIndex: 0\n };\n return _this;\n }\n\n _createClass(HeaderNavigation, [{\n key: \"render\",\n value: function render() {\n var prefix = this.context;\n\n var _this$props = this.props,\n ariaLabel = _this$props['aria-label'],\n ariaLabelledBy = _this$props['aria-labelledby'],\n children = _this$props.children,\n customClassName = _this$props.className,\n rest = _objectWithoutProperties(_this$props, _excluded);\n\n var className = cx(\"\".concat(prefix, \"--header__nav\"), customClassName); // Assign both label strategies in this option, only one should be defined\n // so when we spread that should be the one that is applied to the node\n\n var accessibilityLabel = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy\n };\n return /*#__PURE__*/React.createElement(\"nav\", _extends({}, rest, accessibilityLabel, {\n className: className\n }), /*#__PURE__*/React.createElement(\"ul\", _extends({}, accessibilityLabel, {\n className: \"\".concat(prefix, \"--header__menu-bar\")\n }), React.Children.map(children, this._renderNavItem)));\n }\n /**\n * Render an individual menuitem, adding a `ref` for each child inside of\n * `this.items` to properly manage focus.\n */\n\n }]);\n\n return HeaderNavigation;\n}(React.Component);\n\n_defineProperty(HeaderNavigation, \"propTypes\", _objectSpread(_objectSpread({}, AriaLabelPropType), {}, {\n /**\n * Provide valid children of HeaderNavigation, for example `HeaderMenuItem`\n * or `HeaderMenu`\n */\n children: PropTypes.node,\n\n /**\n * Optionally provide a custom class to apply to the underlying